From 796edf4c113932c2c01ec1371e3cc9e228ac5552 Mon Sep 17 00:00:00 2001 From: Mert Sincan Date: Wed, 26 Jun 2024 08:46:26 +0100 Subject: [PATCH] Fixed #5968 - Improve utils methods in all packages --- .../showcase/components/doc/DocSectionNav.vue | 21 +- apps/showcase/directives/CodeHighlight.js | 4 +- apps/showcase/layouts/default.vue | 10 +- apps/showcase/package.json | 2 +- packages/core/package.json | 3 +- packages/core/src/api/FilterService.js | 26 +- packages/core/src/base/style/BaseStyle.js | 14 +- .../core/src/basecomponent/BaseComponent.vue | 43 +- .../core/src/basedirective/BaseDirective.js | 34 +- .../core/src/service/PrimeVueService.d.ts | 8 +- packages/core/src/service/PrimeVueService.js | 2 +- packages/core/src/usestyle/UseStyle.js | 12 +- .../utils/ConnectedOverlayScrollHandler.js | 4 +- packages/core/src/utils/DomHandler.js | 862 ------------------ packages/core/src/utils/EventBus.js | 32 - packages/core/src/utils/HelperSet.js | 6 +- packages/core/src/utils/ObjectUtils.js | 383 -------- packages/core/src/utils/UniqueComponentId.js | 10 +- packages/core/src/utils/Utils.d.ts | 112 +-- packages/core/src/utils/Utils.js | 28 +- packages/core/src/utils/ZIndexUtils.js | 46 - packages/icons/src/baseicon/BaseIcon.vue | 4 +- packages/nuxt-module/package.json | 7 +- packages/nuxt-module/src/register.ts | 13 +- packages/nuxt-module/src/utils.ts | 29 +- packages/primevue/rollup.config.mjs | 2 +- .../src/accordionheader/AccordionHeader.vue | 10 +- .../src/animateonscroll/AnimateOnScroll.js | 14 +- .../src/autocomplete/AutoComplete.vue | 65 +- .../autocomplete/style/AutoCompleteStyle.js | 4 +- .../primevue/src/badge/style/BadgeStyle.js | 6 +- .../src/badgedirective/BadgeDirective.js | 25 +- packages/primevue/src/blockui/BlockUI.vue | 19 +- packages/primevue/src/carousel/Carousel.vue | 30 +- .../src/cascadeselect/CascadeSelect.vue | 75 +- .../src/cascadeselect/CascadeSelectSub.vue | 17 +- packages/primevue/src/checkbox/Checkbox.vue | 6 +- .../primevue/src/colorpicker/ColorPicker.vue | 22 +- .../ConfirmationEventBus.js | 2 +- .../src/confirmpopup/ConfirmPopup.vue | 26 +- .../primevue/src/contextmenu/ContextMenu.vue | 57 +- .../src/contextmenu/ContextMenuSub.vue | 9 +- packages/primevue/src/datatable/BodyCell.vue | 28 +- packages/primevue/src/datatable/BodyRow.vue | 33 +- .../primevue/src/datatable/ColumnFilter.vue | 24 +- packages/primevue/src/datatable/DataTable.vue | 185 ++-- .../primevue/src/datatable/FooterCell.vue | 13 +- .../primevue/src/datatable/HeaderCell.vue | 17 +- packages/primevue/src/datatable/TableBody.vue | 10 +- .../primevue/src/datatable/TableFooter.vue | 4 +- .../primevue/src/datatable/TableHeader.vue | 4 +- packages/primevue/src/dataview/DataView.vue | 12 +- .../primevue/src/datepicker/DatePicker.vue | 87 +- packages/primevue/src/dialog/Dialog.vue | 30 +- packages/primevue/src/dock/DockSub.vue | 18 +- packages/primevue/src/drawer/Drawer.spec.js | 8 +- packages/primevue/src/drawer/Drawer.vue | 17 +- .../DynamicDialogEventBus.js | 2 +- packages/primevue/src/editor/Editor.vue | 4 +- .../primevue/src/fileupload/FileUpload.vue | 8 +- packages/primevue/src/focustrap/FocusTrap.js | 31 +- packages/primevue/src/galleria/Galleria.vue | 17 +- .../primevue/src/galleria/GalleriaItem.vue | 18 +- .../src/galleria/GalleriaThumbnails.vue | 31 +- packages/primevue/src/image/Image.vue | 21 +- packages/primevue/src/inputmask/InputMask.vue | 8 +- .../primevue/src/inputnumber/InputNumber.vue | 13 +- packages/primevue/src/listbox/Listbox.vue | 52 +- packages/primevue/src/megamenu/MegaMenu.vue | 67 +- .../primevue/src/megamenu/MegaMenuSub.vue | 8 +- packages/primevue/src/menu/Menu.vue | 42 +- packages/primevue/src/menu/Menuitem.vue | 4 +- packages/primevue/src/menubar/Menubar.vue | 57 +- packages/primevue/src/menubar/MenubarSub.vue | 6 +- .../primevue/src/multiselect/MultiSelect.vue | 87 +- packages/primevue/src/orderlist/OrderList.vue | 24 +- .../OrganizationChartNode.vue | 4 +- .../src/overlayeventbus/OverlayEventBus.js | 2 +- packages/primevue/src/paginator/Paginator.vue | 5 +- packages/primevue/src/panelmenu/PanelMenu.vue | 40 +- .../primevue/src/panelmenu/PanelMenuList.vue | 47 +- .../primevue/src/panelmenu/PanelMenuSub.vue | 6 +- packages/primevue/src/password/Password.vue | 20 +- packages/primevue/src/picklist/PickList.vue | 34 +- packages/primevue/src/popover/Popover.vue | 28 +- packages/primevue/src/portal/Portal.vue | 4 +- .../primevue/src/radiobutton/RadioButton.vue | 4 +- packages/primevue/src/rating/Rating.vue | 7 +- packages/primevue/src/ripple/Ripple.js | 24 +- .../primevue/src/scrollpanel/ScrollPanel.vue | 27 +- packages/primevue/src/scrolltop/ScrollTop.vue | 11 +- packages/primevue/src/select/Select.vue | 79 +- .../src/selectbutton/SelectButton.vue | 16 +- packages/primevue/src/slider/Slider.vue | 8 +- packages/primevue/src/speeddial/SpeedDial.vue | 33 +- packages/primevue/src/splitter/Splitter.vue | 20 +- packages/primevue/src/step/Step.vue | 7 +- packages/primevue/src/steppanel/StepPanel.vue | 9 +- packages/primevue/src/steps/Steps.vue | 6 +- .../primevue/src/styleclass/StyleClass.js | 34 +- packages/primevue/src/tab/Tab.vue | 11 +- packages/primevue/src/tablist/TabList.vue | 20 +- packages/primevue/src/tabmenu/TabMenu.vue | 22 +- packages/primevue/src/tabpanel/TabPanel.vue | 4 +- packages/primevue/src/tabview/TabView.vue | 25 +- .../src/terminalservice/TerminalService.js | 2 +- .../primevue/src/tieredmenu/TieredMenu.vue | 67 +- .../primevue/src/tieredmenu/TieredMenuSub.vue | 9 +- packages/primevue/src/timeline/Timeline.vue | 4 +- packages/primevue/src/toast/Toast.vue | 15 +- .../src/toasteventbus/ToastEventBus.js | 2 +- .../src/togglebutton/ToggleButton.vue | 4 +- packages/primevue/src/tooltip/Tooltip.js | 71 +- packages/primevue/src/tree/Tree.vue | 4 +- packages/primevue/src/tree/TreeNode.vue | 14 +- .../primevue/src/treeselect/TreeSelect.vue | 42 +- packages/primevue/src/treetable/BodyCell.vue | 16 +- .../primevue/src/treetable/FooterCell.vue | 13 +- .../primevue/src/treetable/HeaderCell.vue | 17 +- packages/primevue/src/treetable/TreeTable.vue | 56 +- .../primevue/src/treetable/TreeTableRow.vue | 43 +- .../src/virtualscroller/VirtualScroller.vue | 26 +- packages/themes/package.json | 2 +- 123 files changed, 1358 insertions(+), 2700 deletions(-) delete mode 100755 packages/core/src/utils/DomHandler.js delete mode 100644 packages/core/src/utils/EventBus.js delete mode 100755 packages/core/src/utils/ObjectUtils.js delete mode 100644 packages/core/src/utils/ZIndexUtils.js diff --git a/apps/showcase/components/doc/DocSectionNav.vue b/apps/showcase/components/doc/DocSectionNav.vue index b878010d6..9f47b7b28 100644 --- a/apps/showcase/components/doc/DocSectionNav.vue +++ b/apps/showcase/components/doc/DocSectionNav.vue @@ -21,7 +21,8 @@