From e1367fd494d072bdec5834e883da682d1cbfd01c Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Mon, 6 May 2024 18:23:01 +0300 Subject: [PATCH] Refactor #5681 --- components/lib/autocomplete/AutoComplete.d.ts | 4 +- components/lib/autocomplete/AutoComplete.vue | 4 +- .../autocomplete/style/AutoCompleteStyle.js | 2 +- components/lib/button/Button.d.ts | 4 +- components/lib/button/Button.vue | 2 +- components/lib/carousel/Carousel.d.ts | 4 +- components/lib/carousel/Carousel.vue | 12 ++-- .../lib/carousel/style/CarouselStyle.js | 4 +- components/lib/column/Column.d.ts | 28 ++++---- .../lib/confirmdialog/ConfirmDialog.d.ts | 4 +- .../lib/confirmdialog/ConfirmDialog.vue | 10 +-- .../confirmdialog/style/ConfirmDialogStyle.js | 4 +- components/lib/confirmpopup/ConfirmPopup.d.ts | 4 +- components/lib/confirmpopup/ConfirmPopup.vue | 12 ++-- .../confirmpopup/style/ConfirmPopupStyle.js | 4 +- components/lib/datatable/BodyCell.vue | 18 ++--- components/lib/datatable/ColumnFilter.vue | 43 ++++++----- components/lib/datatable/DataTable.vue | 8 +-- components/lib/datatable/HeaderCheckbox.vue | 4 +- components/lib/datatable/RowCheckbox.vue | 4 +- components/lib/datatable/RowRadioButton.vue | 2 +- .../lib/datatable/style/DataTableStyle.js | 24 +++---- components/lib/dataview/DataView.d.ts | 2 +- components/lib/dataview/DataView.vue | 8 +-- .../lib/dataview/style/DataViewStyle.js | 2 +- components/lib/datepicker/DatePicker.d.ts | 20 ++++-- components/lib/datepicker/DatePicker.vue | 72 +++++++++---------- .../lib/datepicker/style/DatePickerStyle.js | 14 ++-- components/lib/dialog/Dialog.d.ts | 4 +- components/lib/dialog/Dialog.vue | 14 ++-- components/lib/dialog/style/DialogStyle.js | 4 +- components/lib/drawer/Drawer.d.ts | 4 +- components/lib/drawer/Drawer.vue | 8 +-- components/lib/drawer/style/DrawerStyle.js | 2 +- components/lib/fileupload/FileContent.vue | 6 +- components/lib/fileupload/FileUpload.d.ts | 33 +++++---- components/lib/fileupload/FileUpload.vue | 28 ++++---- .../lib/fileupload/style/FileUploadStyle.js | 10 +-- components/lib/inputchips/InputChips.d.ts | 2 +- components/lib/inputchips/InputChips.vue | 4 +- .../lib/inputchips/style/InputChipsStyle.js | 2 +- components/lib/inputnumber/InputNumber.d.ts | 2 +- components/lib/inputnumber/InputNumber.vue | 4 +- .../lib/inputnumber/style/InputNumberStyle.js | 2 +- components/lib/inputotp/InputOtp.d.ts | 2 +- components/lib/inputotp/InputOtp.vue | 4 +- .../lib/inputotp/style/InputOtpStyle.js | 2 +- components/lib/listbox/Listbox.d.ts | 2 +- components/lib/listbox/Listbox.vue | 4 +- components/lib/listbox/style/ListboxStyle.js | 2 +- components/lib/multiselect/MultiSelect.d.ts | 8 +-- components/lib/multiselect/MultiSelect.vue | 14 ++-- .../lib/multiselect/style/MultiSelectStyle.js | 4 +- components/lib/orderlist/OrderList.d.ts | 10 +-- components/lib/orderlist/OrderList.vue | 18 ++--- .../lib/paginator/JumpToPageDropdown.vue | 4 +- components/lib/paginator/JumpToPageInput.vue | 2 +- components/lib/paginator/Paginator.d.ts | 6 +- .../lib/paginator/RowsPerPageDropdown.vue | 4 +- .../lib/paginator/style/PaginatorStyle.js | 6 +- components/lib/panel/Panel.d.ts | 2 +- components/lib/panel/Panel.vue | 6 +- components/lib/panel/style/PanelStyle.js | 2 +- components/lib/password/Password.d.ts | 2 +- components/lib/password/Password.vue | 4 +- .../lib/password/style/PasswordStyle.js | 2 +- components/lib/picklist/PickList.d.ts | 21 +++--- components/lib/picklist/PickList.vue | 37 +++++----- components/lib/select/Select.d.ts | 4 +- components/lib/select/Select.vue | 4 +- components/lib/select/style/SelectStyle.js | 2 +- components/lib/selectbutton/SelectButton.d.ts | 4 ++ components/lib/selectbutton/SelectButton.vue | 4 +- components/lib/speeddial/SpeedDial.d.ts | 2 +- components/lib/speeddial/SpeedDial.vue | 14 ++-- .../lib/speeddial/style/SpeedDialStyle.js | 2 +- components/lib/splitbutton/SplitButton.d.ts | 9 +-- components/lib/splitbutton/SplitButton.vue | 14 ++-- .../lib/splitbutton/style/SplitButtonStyle.js | 4 +- components/lib/tree/Tree.d.ts | 2 +- components/lib/tree/Tree.vue | 2 +- components/lib/tree/style/TreeStyle.js | 2 +- components/lib/treeselect/TreeSelect.d.ts | 4 +- components/lib/treeselect/TreeSelect.vue | 4 +- .../lib/treeselect/style/TreeSelectStyle.js | 2 +- components/lib/treetable/BodyCell.vue | 4 +- components/lib/treetable/TreeTable.d.ts | 2 +- components/lib/treetable/TreeTable.vue | 8 +-- .../lib/treetable/style/TreeTableStyle.js | 2 +- 89 files changed, 376 insertions(+), 339 deletions(-) diff --git a/components/lib/autocomplete/AutoComplete.d.ts b/components/lib/autocomplete/AutoComplete.d.ts index 4d6d4cbf5..c304d21f5 100755 --- a/components/lib/autocomplete/AutoComplete.d.ts +++ b/components/lib/autocomplete/AutoComplete.d.ts @@ -147,7 +147,7 @@ export interface AutoCompletePassThroughOptions { * Used to pass attributes to the InputText component. * @see {@link InputTextPassThroughOptions} */ - input?: InputTextPassThroughOptions | AutoCompletePassThroughOptionType; + pcInput?: InputTextPassThroughOptions | AutoCompletePassThroughOptionType; /** * Used to pass attributes to the input multiple's DOM element. */ @@ -160,7 +160,7 @@ export interface AutoCompletePassThroughOptions { * Used to pass attributes to the Chip. * @see {@link ChipPassThroughOptions} */ - chipLabel?: ChipPassThroughOptions; + pcChipLabel?: ChipPassThroughOptions; /** * Used to pass attributes to the chip icon's DOM element. */ diff --git a/components/lib/autocomplete/AutoComplete.vue b/components/lib/autocomplete/AutoComplete.vue index c740c3218..8dcde72d0 100755 --- a/components/lib/autocomplete/AutoComplete.vue +++ b/components/lib/autocomplete/AutoComplete.vue @@ -55,9 +55,9 @@ :aria-posinset="i + 1" v-bind="ptm('token')" > - + - + diff --git a/components/lib/autocomplete/style/AutoCompleteStyle.js b/components/lib/autocomplete/style/AutoCompleteStyle.js index 35961e804..9b270b324 100644 --- a/components/lib/autocomplete/style/AutoCompleteStyle.js +++ b/components/lib/autocomplete/style/AutoCompleteStyle.js @@ -245,7 +245,7 @@ const classes = { 'p-focus': instance.focusedMultipleOptionIndex === i } ], - chipLabel: 'p-autocomplete-chip-label', + pcChipLabel: 'p-autocomplete-chip-label', chipIcon: 'p-autocomplete-chip-icon', inputChip: 'p-autocomplete-input-chip', loader: 'p-autocomplete-loader', diff --git a/components/lib/button/Button.d.ts b/components/lib/button/Button.d.ts index 705bd1ec0..437610ead 100755 --- a/components/lib/button/Button.d.ts +++ b/components/lib/button/Button.d.ts @@ -62,9 +62,9 @@ export interface ButtonPassThroughOptions { */ label?: ButtonPassThroughOptionType; /** - * Used to pass attributes to the badge's DOM element. + * Used to pass attributes to the Badge component. */ - badge?: ButtonPassThroughOptionType; + pcBadge?: ButtonPassThroughOptionType; /** * Used to manage all lifecycle hooks. * @see {@link BaseComponent.ComponentHooks} diff --git a/components/lib/button/Button.vue b/components/lib/button/Button.vue index d2c6e2464..53d9682ba 100755 --- a/components/lib/button/Button.vue +++ b/components/lib/button/Button.vue @@ -9,7 +9,7 @@ {{ label }} - + diff --git a/components/lib/carousel/Carousel.d.ts b/components/lib/carousel/Carousel.d.ts index 6cd50cc25..663eb2da4 100755 --- a/components/lib/carousel/Carousel.d.ts +++ b/components/lib/carousel/Carousel.d.ts @@ -88,7 +88,7 @@ export interface CarouselPassThroughOptions { * Used to pass attributes to the previous button's DOM element. * @see {@link ButtonPassThroughOptions} */ - previousButton?: ButtonPassThroughOptions; + pcPreviousButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the viewport's DOM element. */ @@ -109,7 +109,7 @@ export interface CarouselPassThroughOptions { * Used to pass attributes to the next button's DOM element. * @see {@link ButtonPassThroughOptions} */ - nextButton?: ButtonPassThroughOptions; + pcNextButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the indicator list's DOM element. */ diff --git a/components/lib/carousel/Carousel.vue b/components/lib/carousel/Carousel.vue index 6714459dc..6d59821a1 100755 --- a/components/lib/carousel/Carousel.vue +++ b/components/lib/carousel/Carousel.vue @@ -7,18 +7,18 @@
@@ -61,18 +61,18 @@
diff --git a/components/lib/carousel/style/CarouselStyle.js b/components/lib/carousel/style/CarouselStyle.js index b033d8a50..43da2f595 100644 --- a/components/lib/carousel/style/CarouselStyle.js +++ b/components/lib/carousel/style/CarouselStyle.js @@ -102,7 +102,7 @@ const classes = { header: 'p-carousel-header', contentContainer: 'p-carousel-content-container', content: 'p-carousel-content', - previousButton: ({ instance }) => [ + pcPreviousButton: ({ instance }) => [ 'p-carousel-prev-button', { 'p-disabled': instance.backwardIsDisabled @@ -126,7 +126,7 @@ const classes = { 'p-carousel-item-end': instance.lastIndex() === index } ], - nextButton: ({ instance }) => [ + pcNextButton: ({ instance }) => [ 'p-carousel-next-button', { 'p-disabled': instance.forwardIsDisabled diff --git a/components/lib/column/Column.d.ts b/components/lib/column/Column.d.ts index ba61bde26..17ceec71b 100755 --- a/components/lib/column/Column.d.ts +++ b/components/lib/column/Column.d.ts @@ -161,7 +161,7 @@ export interface ColumnPassThroughOptions { /** * Used to pass attributes to the header checkbox's DOM element. */ - headerCheckbox?: CheckboxPassThroughOptionType; + pcHeaderCheckbox?: CheckboxPassThroughOptionType; /** * Used to pass attributes to the column filter's DOM element. */ @@ -173,7 +173,7 @@ export interface ColumnPassThroughOptions { /** * Used to pass attributes to the column filter button's DOM element. */ - columnFilterButton?: ColumnPassThroughOptionType; + pcColumnFilterButton?: ColumnPassThroughOptionType; /** * Used to pass attributes to the filter menu icon's DOM element. */ @@ -181,7 +181,7 @@ export interface ColumnPassThroughOptions { /** * Used to pass attributes to the column filter clear button's DOM element. */ - columnFilterClearButton?: ColumnPassThroughOptionType; + pcColumnFilterClearButton?: ColumnPassThroughOptionType; /** * Used to pass attributes to the filter clear icon's DOM element. */ @@ -210,7 +210,7 @@ export interface ColumnPassThroughOptions { * Used to pass attributes to the Select component. * @see {@link SelectPassThroughOptionType} */ - filterOperatorDropdown?: SelectPassThroughOptionType; + pcFilterOperatorDropdown?: SelectPassThroughOptionType; /** * Used to pass attributes to the filter rule list' DOM element. */ @@ -223,7 +223,7 @@ export interface ColumnPassThroughOptions { * Used to pass attributes to the Select component. * @see {@link SelectPassThroughOptionType} */ - filterConstraintDropdown?: SelectPassThroughOptionType; + pcFilterConstraintDropdown?: SelectPassThroughOptionType; /** * Used to pass attributes to the filter remove button container's DOM element. */ @@ -232,7 +232,7 @@ export interface ColumnPassThroughOptions { * Used to pass attributes to the Button component. * @see {@link ButtonPassThroughOptions} */ - filterRemoveRuleButton?: ButtonPassThroughOptions; + pcFilterRemoveRuleButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the filter add button container's DOM element. */ @@ -241,7 +241,7 @@ export interface ColumnPassThroughOptions { * Used to pass attributes to the Button component. * @see {@link ButtonPassThroughOptions} */ - filterAddButton?: ButtonPassThroughOptions; + pcFilterAddButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the filter buttonbar's DOM element. */ @@ -250,12 +250,12 @@ export interface ColumnPassThroughOptions { * Used to pass attributes to the Button component. * @see {@link ButtonPassThroughOptions} */ - filterClearButton?: ButtonPassThroughOptions; + pcFilterClearButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the Button component. * @see {@link ButtonPassThroughOptions} */ - filterApplyButton?: ButtonPassThroughOptions; + pcFilterApplyButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the row toggler button's DOM element. */ @@ -275,23 +275,23 @@ export interface ColumnPassThroughOptions { /** * Used to pass attributes to the radiobutton's DOM element. */ - rowRadioButton?: RadioButtonPassThroughOptionType; + pcRowRadiobutton?: RadioButtonPassThroughOptionType; /** * Used to pass attributes to the checkbox's DOM element. */ - rowCheckbox?: CheckboxPassThroughOptionType; + pcRowCheckbox?: CheckboxPassThroughOptionType; /** * Used to pass attributes to the row editor init button's DOM element. */ - rowEditorInit?: ColumnPassThroughOptionType; + pcRowEditorInit?: ColumnPassThroughOptionType; /** * Used to pass attributes to the row editor save button's DOM element. */ - rowEditorSave?: ColumnPassThroughOptionType; + pcRowEditorSave?: ColumnPassThroughOptionType; /** * Used to pass attributes to the row editor cancel button's DOM element. */ - rowEditorCancel?: ColumnPassThroughOptionType; + pcRowEditorCancel?: ColumnPassThroughOptionType; /** * Used to pass attributes to the footer cell's DOM element. */ diff --git a/components/lib/confirmdialog/ConfirmDialog.d.ts b/components/lib/confirmdialog/ConfirmDialog.d.ts index d4f2f71f2..e472bd382 100644 --- a/components/lib/confirmdialog/ConfirmDialog.d.ts +++ b/components/lib/confirmdialog/ConfirmDialog.d.ts @@ -109,12 +109,12 @@ export interface ConfirmDialogPassThroughOptions { * Used to pass attributes to the Button component. * @see {@link ButtonPassThroughOptions} */ - rejectButton?: ButtonPassThroughOptions; + pcRejectButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the Button component. * @see {@link ButtonPassThroughOptions} */ - acceptButton?: ButtonPassThroughOptions; + pcAcceptButton?: ButtonPassThroughOptions; /** * Used to manage all lifecycle hooks. * @see {@link BaseComponent.ComponentHooks} diff --git a/components/lib/confirmdialog/ConfirmDialog.vue b/components/lib/confirmdialog/ConfirmDialog.vue index 0a0cab911..8b7eb8009 100644 --- a/components/lib/confirmdialog/ConfirmDialog.vue +++ b/components/lib/confirmdialog/ConfirmDialog.vue @@ -29,25 +29,25 @@