primevue 3.44.0 → 3.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/Accordion.vue +1 -0
- package/accordion/accordion.cjs.js +1 -0
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +1 -0
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +1 -0
- package/accordion/accordion.min.js +1 -1
- package/basecomponent/BaseComponent.vue +1 -1
- package/basecomponent/basecomponent.cjs.js +2 -2
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +2 -2
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +2 -2
- package/basecomponent/basecomponent.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.cjs.js +1 -1
- package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.esm.js +1 -1
- package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.js +1 -1
- package/basecomponent/style/basecomponentstyle.min.js +1 -1
- package/baseicon/BaseIcon.vue +8 -14
- package/baseicon/baseicon.cjs.js +10 -15
- package/baseicon/baseicon.cjs.min.js +1 -1
- package/baseicon/baseicon.esm.js +10 -15
- package/baseicon/baseicon.esm.min.js +1 -1
- package/baseicon/baseicon.js +10 -15
- package/baseicon/baseicon.min.js +1 -1
- package/calendar/Calendar.vue +5 -2
- package/calendar/calendar.cjs.js +5 -2
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +5 -2
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +5 -2
- package/calendar/calendar.min.js +1 -1
- package/cascadeselect/CascadeSelect.vue +1 -0
- package/cascadeselect/cascadeselect.cjs.js +1 -0
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +1 -0
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +1 -0
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.cjs.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.cjs.min.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.esm.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.esm.min.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.min.js +1 -1
- package/chips/Chips.vue +1 -0
- package/chips/chips.cjs.js +1 -0
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +1 -0
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +1 -0
- package/chips/chips.min.js +1 -1
- package/column/Column.vue +7 -0
- package/column/column.cjs.js +9 -0
- package/column/column.cjs.min.js +1 -1
- package/column/column.esm.js +9 -0
- package/column/column.esm.min.js +1 -1
- package/column/column.js +9 -0
- package/column/column.min.js +1 -1
- package/columngroup/ColumnGroup.vue +7 -0
- package/columngroup/columngroup.cjs.js +9 -0
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.js +9 -0
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +9 -0
- package/columngroup/columngroup.min.js +1 -1
- package/confirmdialog/ConfirmDialog.d.ts +1 -1
- package/confirmpopup/ConfirmPopup.vue +2 -2
- package/confirmpopup/confirmpopup.cjs.js +2 -2
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +2 -2
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +2 -2
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.vue +1 -0
- package/contextmenu/contextmenu.cjs.js +1 -0
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +1 -0
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +1 -0
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +276 -132
- package/core/core.min.js +22 -22
- package/datatable/BaseDataTable.vue +2 -2
- package/datatable/BodyRow.vue +578 -0
- package/datatable/ColumnFilter.vue +1 -0
- package/datatable/DataTable.d.ts +1 -1
- package/datatable/DataTable.vue +111 -132
- package/datatable/HeaderCell.vue +9 -7
- package/datatable/TableBody.vue +74 -414
- package/datatable/TableFooter.vue +19 -26
- package/datatable/TableHeader.vue +19 -26
- package/datatable/datatable.cjs.js +891 -634
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +892 -635
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +891 -634
- package/datatable/datatable.min.js +1 -1
- package/datatable/style/datatablestyle.cjs.js +5 -4
- package/datatable/style/datatablestyle.cjs.min.js +1 -1
- package/datatable/style/datatablestyle.esm.js +5 -4
- package/datatable/style/datatablestyle.esm.min.js +1 -1
- package/datatable/style/datatablestyle.js +5 -4
- package/datatable/style/datatablestyle.min.js +1 -1
- package/dialog/style/dialogstyle.cjs.js +1 -1
- package/dialog/style/dialogstyle.cjs.min.js +1 -1
- package/dialog/style/dialogstyle.esm.js +1 -1
- package/dialog/style/dialogstyle.esm.min.js +1 -1
- package/dialog/style/dialogstyle.js +1 -1
- package/dialog/style/dialogstyle.min.js +1 -1
- package/dock/DockSub.vue +1 -0
- package/dock/dock.cjs.js +1 -0
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +1 -0
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +1 -0
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.vue +26 -0
- package/dropdown/dropdown.cjs.js +49 -25
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +49 -25
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +49 -25
- package/dropdown/dropdown.min.js +1 -1
- package/fieldset/Fieldset.vue +1 -1
- package/fieldset/fieldset.cjs.js +1 -1
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +1 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +1 -1
- package/fieldset/fieldset.min.js +1 -1
- package/galleria/GalleriaItem.vue +1 -0
- package/galleria/GalleriaThumbnails.vue +1 -1
- package/galleria/galleria.cjs.js +2 -1
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +2 -1
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +2 -1
- package/galleria/galleria.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +10 -7
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +11 -8
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +10 -7
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountdown/index.vue +1 -21
- package/icons/sortamountupalt/index.cjs.js +10 -7
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +11 -8
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +10 -7
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/sortamountupalt/index.vue +1 -21
- package/image/Image.vue +2 -6
- package/image/image.cjs.js +2 -5
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +2 -5
- package/image/image.esm.min.js +1 -1
- package/image/image.js +2 -5
- package/image/image.min.js +1 -1
- package/image/style/imagestyle.cjs.js +1 -1
- package/image/style/imagestyle.cjs.min.js +1 -1
- package/image/style/imagestyle.esm.js +1 -1
- package/image/style/imagestyle.esm.min.js +1 -1
- package/image/style/imagestyle.js +1 -1
- package/image/style/imagestyle.min.js +1 -1
- package/inputnumber/BaseInputNumber.vue +7 -0
- package/inputnumber/InputNumber.d.ts +7 -0
- package/inputnumber/InputNumber.vue +4 -3
- package/inputnumber/inputnumber.cjs.js +13 -3
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +13 -3
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +13 -3
- package/inputnumber/inputnumber.min.js +1 -1
- package/knob/Knob.vue +1 -1
- package/knob/knob.cjs.js +1 -1
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +1 -1
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +1 -1
- package/knob/knob.min.js +1 -1
- package/listbox/BaseListbox.vue +1 -1
- package/listbox/Listbox.d.ts +1 -1
- package/listbox/Listbox.vue +2 -0
- package/listbox/listbox.cjs.js +3 -1
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +3 -1
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +3 -1
- package/listbox/listbox.min.js +1 -1
- package/megamenu/MegaMenu.vue +2 -1
- package/megamenu/megamenu.cjs.js +2 -1
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +2 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +2 -1
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.vue +1 -0
- package/menu/menu.cjs.js +1 -0
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +1 -0
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +1 -0
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.vue +2 -1
- package/menubar/menubar.cjs.js +2 -1
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +2 -1
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +2 -1
- package/menubar/menubar.min.js +1 -1
- package/menuitem/MenuItem.d.ts +0 -6
- package/message/style/messagestyle.cjs.js +1 -1
- package/message/style/messagestyle.cjs.min.js +1 -1
- package/message/style/messagestyle.esm.js +1 -1
- package/message/style/messagestyle.esm.min.js +1 -1
- package/message/style/messagestyle.js +1 -1
- package/message/style/messagestyle.min.js +1 -1
- package/multiselect/MultiSelect.vue +2 -0
- package/multiselect/multiselect.cjs.js +2 -0
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +2 -0
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +2 -0
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/BaseOrderList.vue +1 -1
- package/orderlist/OrderList.d.ts +1 -1
- package/orderlist/OrderList.vue +1 -0
- package/orderlist/orderlist.cjs.js +2 -1
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +2 -1
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +2 -1
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChartNode.vue +1 -1
- package/organizationchart/organizationchart.cjs.js +1 -1
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +1 -1
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +1 -1
- package/organizationchart/organizationchart.min.js +1 -1
- package/package.json +1 -1
- package/paginator/Paginator.vue +4 -4
- package/paginator/paginator.cjs.js +2 -2
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +2 -2
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +2 -2
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.vue +1 -1
- package/panel/panel.cjs.js +1 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +1 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +1 -1
- package/panel/panel.min.js +1 -1
- package/panelmenu/PanelMenu.vue +1 -0
- package/panelmenu/PanelMenuList.vue +1 -0
- package/panelmenu/panelmenu.cjs.js +2 -0
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +2 -0
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +2 -0
- package/panelmenu/panelmenu.min.js +1 -1
- package/picklist/BasePickList.vue +1 -1
- package/picklist/PickList.d.ts +1 -1
- package/picklist/PickList.vue +2 -1
- package/picklist/picklist.cjs.js +3 -2
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +3 -2
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +3 -2
- package/picklist/picklist.min.js +1 -1
- package/picklist/style/pickliststyle.cjs.js +1 -1
- package/picklist/style/pickliststyle.cjs.min.js +1 -1
- package/picklist/style/pickliststyle.esm.js +1 -1
- package/picklist/style/pickliststyle.esm.min.js +1 -1
- package/picklist/style/pickliststyle.js +1 -1
- package/picklist/style/pickliststyle.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +4 -4
- package/resources/themes/arya-green/theme.css +4 -4
- package/resources/themes/arya-orange/theme.css +4 -4
- package/resources/themes/arya-purple/theme.css +4 -4
- package/resources/themes/bootstrap4-dark-blue/theme.css +4 -4
- package/resources/themes/bootstrap4-dark-purple/theme.css +4 -4
- package/resources/themes/bootstrap4-light-blue/theme.css +4 -4
- package/resources/themes/bootstrap4-light-purple/theme.css +4 -4
- package/resources/themes/fluent-light/theme.css +4 -4
- package/resources/themes/lara-dark-amber/theme.css +4 -4
- package/resources/themes/lara-dark-blue/theme.css +4 -4
- package/resources/themes/lara-dark-cyan/theme.css +4 -4
- package/resources/themes/lara-dark-green/theme.css +4 -4
- package/resources/themes/lara-dark-indigo/theme.css +4 -4
- package/resources/themes/lara-dark-pink/theme.css +4 -4
- package/resources/themes/lara-dark-purple/theme.css +4 -4
- package/resources/themes/lara-dark-teal/theme.css +4 -4
- package/resources/themes/lara-light-amber/theme.css +4 -4
- package/resources/themes/lara-light-blue/theme.css +4 -4
- package/resources/themes/lara-light-cyan/theme.css +4 -4
- package/resources/themes/lara-light-green/theme.css +4 -4
- package/resources/themes/lara-light-indigo/theme.css +4 -4
- package/resources/themes/lara-light-pink/theme.css +4 -4
- package/resources/themes/lara-light-purple/theme.css +4 -4
- package/resources/themes/lara-light-teal/theme.css +44 -44
- package/resources/themes/luna-amber/theme.css +4 -4
- package/resources/themes/luna-blue/theme.css +4 -4
- package/resources/themes/luna-green/theme.css +4 -4
- package/resources/themes/luna-pink/theme.css +4 -4
- package/resources/themes/md-dark-deeppurple/theme.css +4 -4
- package/resources/themes/md-dark-indigo/theme.css +4 -4
- package/resources/themes/md-light-deeppurple/theme.css +4 -4
- package/resources/themes/md-light-indigo/theme.css +4 -4
- package/resources/themes/mdc-dark-deeppurple/theme.css +4 -4
- package/resources/themes/mdc-dark-indigo/theme.css +4 -4
- package/resources/themes/mdc-light-deeppurple/theme.css +4 -4
- package/resources/themes/mdc-light-indigo/theme.css +4 -4
- package/resources/themes/mira/theme.css +4 -4
- package/resources/themes/nano/theme.css +4 -4
- package/resources/themes/nova/theme.css +4 -4
- package/resources/themes/nova-accent/theme.css +4 -4
- package/resources/themes/nova-alt/theme.css +4 -4
- package/resources/themes/nova-vue/theme.css +4 -4
- package/resources/themes/rhea/theme.css +4 -4
- package/resources/themes/saga-blue/theme.css +4 -4
- package/resources/themes/saga-green/theme.css +4 -4
- package/resources/themes/saga-orange/theme.css +4 -4
- package/resources/themes/saga-purple/theme.css +4 -4
- package/resources/themes/soho-dark/theme.css +4 -4
- package/resources/themes/soho-light/theme.css +4 -4
- package/resources/themes/tailwind-light/theme.css +4 -4
- package/resources/themes/vela-blue/theme.css +4 -4
- package/resources/themes/vela-green/theme.css +4 -4
- package/resources/themes/vela-orange/theme.css +4 -4
- package/resources/themes/vela-purple/theme.css +4 -4
- package/resources/themes/viva-dark/theme.css +4 -4
- package/resources/themes/viva-light/theme.css +4 -4
- package/ripple/style/ripplestyle.cjs.js +1 -1
- package/ripple/style/ripplestyle.cjs.min.js +1 -1
- package/ripple/style/ripplestyle.esm.js +1 -1
- package/ripple/style/ripplestyle.esm.min.js +1 -1
- package/ripple/style/ripplestyle.js +1 -1
- package/ripple/style/ripplestyle.min.js +1 -1
- package/row/Row.vue +7 -0
- package/row/row.cjs.js +9 -0
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +9 -0
- package/row/row.esm.min.js +1 -1
- package/row/row.js +9 -0
- package/row/row.min.js +1 -1
- package/slider/Slider.vue +26 -19
- package/slider/slider.cjs.js +19 -11
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +19 -11
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +19 -11
- package/slider/slider.min.js +1 -1
- package/speeddial/SpeedDial.vue +1 -0
- package/speeddial/speeddial.cjs.js +1 -0
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +1 -0
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +1 -0
- package/speeddial/speeddial.min.js +1 -1
- package/steps/Steps.vue +1 -0
- package/steps/steps.cjs.js +1 -0
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +1 -0
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +1 -0
- package/steps/steps.min.js +1 -1
- package/tabmenu/TabMenu.vue +1 -0
- package/tabmenu/tabmenu.cjs.js +1 -0
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +1 -0
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +1 -0
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/TabView.vue +1 -0
- package/tabview/tabview.cjs.js +1 -0
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +1 -0
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +1 -0
- package/tabview/tabview.min.js +1 -1
- package/terminal/Terminal.vue +1 -1
- package/terminal/terminal.cjs.js +1 -1
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +1 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +1 -1
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/TieredMenu.vue +1 -0
- package/tieredmenu/tieredmenu.cjs.js +1 -0
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +1 -0
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +1 -0
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/tree/BaseTree.vue +1 -1
- package/tree/Tree.d.ts +1 -1
- package/tree/Tree.vue +1 -1
- package/tree/TreeNode.vue +1 -0
- package/tree/tree.cjs.js +3 -2
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +3 -2
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +3 -2
- package/tree/tree.min.js +1 -1
- package/treeselect/BaseTreeSelect.vue +1 -1
- package/treeselect/TreeSelect.d.ts +1 -1
- package/treeselect/TreeSelect.vue +1 -0
- package/treeselect/treeselect.cjs.js +2 -1
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +2 -1
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +2 -1
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BaseTreeTable.vue +5 -1
- package/treetable/HeaderCell.vue +1 -1
- package/treetable/TreeTable.d.ts +6 -1
- package/treetable/TreeTable.vue +32 -24
- package/treetable/TreeTableRow.vue +32 -20
- package/treetable/style/treetablestyle.cjs.js +1 -1
- package/treetable/style/treetablestyle.cjs.min.js +1 -1
- package/treetable/style/treetablestyle.esm.js +1 -1
- package/treetable/style/treetablestyle.esm.min.js +1 -1
- package/treetable/style/treetablestyle.js +1 -1
- package/treetable/style/treetablestyle.min.js +1 -1
- package/treetable/treetable.cjs.js +70 -43
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +71 -44
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +70 -43
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.vue +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +1 -1
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/Utils.d.ts +9 -0
- package/utils/utils.cjs.js +142 -41
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +142 -42
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +142 -41
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +4 -0
- package/vetur-tags.json +1 -0
- package/virtualscroller/VirtualScroller.vue +19 -15
- package/virtualscroller/style/virtualscrollerstyle.cjs.js +1 -1
- package/virtualscroller/style/virtualscrollerstyle.cjs.min.js +1 -1
- package/virtualscroller/style/virtualscrollerstyle.esm.js +1 -1
- package/virtualscroller/style/virtualscrollerstyle.esm.min.js +1 -1
- package/virtualscroller/style/virtualscrollerstyle.js +1 -1
- package/virtualscroller/style/virtualscrollerstyle.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +19 -15
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +19 -15
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +19 -15
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +11 -1
package/utils/utils.js
CHANGED
|
@@ -2,16 +2,16 @@ this.primevue = this.primevue || {};
|
|
|
2
2
|
this.primevue.utils = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$
|
|
6
|
-
function _toConsumableArray$
|
|
7
|
-
function _nonIterableSpread$
|
|
8
|
-
function _iterableToArray$
|
|
9
|
-
function _arrayWithoutHoles$
|
|
10
|
-
function _typeof$
|
|
11
|
-
function _slicedToArray$1(arr, i) { return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$
|
|
5
|
+
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
6
|
+
function _toConsumableArray$3(arr) { return _arrayWithoutHoles$3(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableSpread$3(); }
|
|
7
|
+
function _nonIterableSpread$3() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
8
|
+
function _iterableToArray$3(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
9
|
+
function _arrayWithoutHoles$3(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$3(arr); }
|
|
10
|
+
function _typeof$3(o) { "@babel/helpers - typeof"; return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$3(o); }
|
|
11
|
+
function _slicedToArray$1(arr, i) { return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$1(); }
|
|
12
12
|
function _nonIterableRest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
-
function _unsupportedIterableToArray$
|
|
14
|
-
function _arrayLikeToArray$
|
|
13
|
+
function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$3(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }
|
|
14
|
+
function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
15
15
|
function _iterableToArrayLimit$1(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
16
|
function _arrayWithHoles$1(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
17
|
var DomHandler = {
|
|
@@ -101,7 +101,8 @@ this.primevue.utils = (function (exports) {
|
|
|
101
101
|
},
|
|
102
102
|
index: function index(element) {
|
|
103
103
|
if (element) {
|
|
104
|
-
var
|
|
104
|
+
var _this$getParentNode;
|
|
105
|
+
var children = (_this$getParentNode = this.getParentNode(element)) === null || _this$getParentNode === void 0 ? void 0 : _this$getParentNode.childNodes;
|
|
105
106
|
var num = 0;
|
|
106
107
|
for (var i = 0; i < children.length; i++) {
|
|
107
108
|
if (children[i] === element) return num;
|
|
@@ -192,7 +193,7 @@ this.primevue.utils = (function (exports) {
|
|
|
192
193
|
var styles = element !== null && element !== void 0 && (_element$$attrs = element.$attrs) !== null && _element$$attrs !== void 0 && _element$$attrs[rule] ? [element === null || element === void 0 || (_element$$attrs2 = element.$attrs) === null || _element$$attrs2 === void 0 ? void 0 : _element$$attrs2[rule]] : [];
|
|
193
194
|
return [value].flat().reduce(function (cv, v) {
|
|
194
195
|
if (v !== null && v !== undefined) {
|
|
195
|
-
var type = _typeof$
|
|
196
|
+
var type = _typeof$3(v);
|
|
196
197
|
if (type === 'string' || type === 'number') {
|
|
197
198
|
cv.push(v);
|
|
198
199
|
} else if (type === 'object') {
|
|
@@ -221,7 +222,7 @@ this.primevue.utils = (function (exports) {
|
|
|
221
222
|
} else if (key === 'p-bind') {
|
|
222
223
|
_this3.setAttributes(element, value);
|
|
223
224
|
} else {
|
|
224
|
-
value = key === 'class' ? _toConsumableArray$
|
|
225
|
+
value = key === 'class' ? _toConsumableArray$3(new Set(computedStyles('class', value))).join(' ').trim() : key === 'style' ? computedStyles('style', value).join(';').trim() : value;
|
|
225
226
|
(element.$attrs = element.$attrs || {}) && (element.$attrs[key] = value);
|
|
226
227
|
element.setAttribute(key, value);
|
|
227
228
|
}
|
|
@@ -356,9 +357,17 @@ this.primevue.utils = (function (exports) {
|
|
|
356
357
|
element.style.left = left;
|
|
357
358
|
}
|
|
358
359
|
},
|
|
360
|
+
getParentNode: function getParentNode(element) {
|
|
361
|
+
var parent = element === null || element === void 0 ? void 0 : element.parentNode;
|
|
362
|
+
if (parent && parent.host) {
|
|
363
|
+
parent = parent.host;
|
|
364
|
+
}
|
|
365
|
+
return parent;
|
|
366
|
+
},
|
|
359
367
|
getParents: function getParents(element) {
|
|
360
368
|
var parents = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
361
|
-
|
|
369
|
+
var parent = this.getParentNode(element);
|
|
370
|
+
return parent === null ? parents : this.getParents(parent, parents.concat([parent]));
|
|
362
371
|
},
|
|
363
372
|
getScrollableParents: function getScrollableParents(element) {
|
|
364
373
|
var scrollableParents = [];
|
|
@@ -483,7 +492,7 @@ this.primevue.utils = (function (exports) {
|
|
|
483
492
|
if (this.isElement(target)) target.appendChild(element);else if (target.el && target.elElement) target.elElement.appendChild(element);else throw new Error('Cannot append ' + target + ' to ' + element);
|
|
484
493
|
},
|
|
485
494
|
isElement: function isElement(obj) {
|
|
486
|
-
return (typeof HTMLElement === "undefined" ? "undefined" : _typeof$
|
|
495
|
+
return (typeof HTMLElement === "undefined" ? "undefined" : _typeof$3(HTMLElement)) === 'object' ? obj instanceof HTMLElement : obj && _typeof$3(obj) === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string';
|
|
487
496
|
},
|
|
488
497
|
scrollInView: function scrollInView(container, item) {
|
|
489
498
|
var borderTopValue = getComputedStyle(container).getPropertyValue('borderTopWidth');
|
|
@@ -571,7 +580,7 @@ this.primevue.utils = (function (exports) {
|
|
|
571
580
|
element[methodName].apply(element, args);
|
|
572
581
|
},
|
|
573
582
|
isExist: function isExist(element) {
|
|
574
|
-
return !!(element !== null && typeof element !== 'undefined' && element.nodeName && element
|
|
583
|
+
return !!(element !== null && typeof element !== 'undefined' && element.nodeName && this.getParentNode(element));
|
|
575
584
|
},
|
|
576
585
|
isClient: function isClient() {
|
|
577
586
|
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
@@ -715,20 +724,20 @@ this.primevue.utils = (function (exports) {
|
|
|
715
724
|
}
|
|
716
725
|
};
|
|
717
726
|
|
|
718
|
-
function _typeof$
|
|
719
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
720
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
721
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
722
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof$
|
|
723
|
-
function _toPrimitive(t, r) { if ("object" != _typeof$
|
|
727
|
+
function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
|
|
728
|
+
function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
729
|
+
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$1(descriptor.key), descriptor); } }
|
|
730
|
+
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
731
|
+
function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$2(i) ? i : String(i); }
|
|
732
|
+
function _toPrimitive$1(t, r) { if ("object" != _typeof$2(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$2(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
724
733
|
var ConnectedOverlayScrollHandler = /*#__PURE__*/function () {
|
|
725
734
|
function ConnectedOverlayScrollHandler(element) {
|
|
726
735
|
var listener = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
727
|
-
_classCallCheck(this, ConnectedOverlayScrollHandler);
|
|
736
|
+
_classCallCheck$1(this, ConnectedOverlayScrollHandler);
|
|
728
737
|
this.element = element;
|
|
729
738
|
this.listener = listener;
|
|
730
739
|
}
|
|
731
|
-
_createClass(ConnectedOverlayScrollHandler, [{
|
|
740
|
+
_createClass$1(ConnectedOverlayScrollHandler, [{
|
|
732
741
|
key: "bindScrollListener",
|
|
733
742
|
value: function bindScrollListener() {
|
|
734
743
|
this.scrollableParents = DomHandler.getScrollableParents(this.element);
|
|
@@ -782,25 +791,25 @@ this.primevue.utils = (function (exports) {
|
|
|
782
791
|
};
|
|
783
792
|
}
|
|
784
793
|
|
|
785
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$
|
|
794
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest(); }
|
|
786
795
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
787
796
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
788
797
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
789
|
-
function _toConsumableArray$
|
|
790
|
-
function _nonIterableSpread$
|
|
791
|
-
function _iterableToArray$
|
|
792
|
-
function _arrayWithoutHoles$
|
|
793
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$
|
|
794
|
-
function _unsupportedIterableToArray$
|
|
795
|
-
function _arrayLikeToArray$
|
|
796
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
798
|
+
function _toConsumableArray$2(arr) { return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2(); }
|
|
799
|
+
function _nonIterableSpread$2() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
800
|
+
function _iterableToArray$2(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
801
|
+
function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
|
|
802
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
803
|
+
function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
|
|
804
|
+
function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
805
|
+
function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
|
|
797
806
|
var ObjectUtils = {
|
|
798
807
|
equals: function equals(obj1, obj2, field) {
|
|
799
808
|
if (field) return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
800
809
|
},
|
|
801
810
|
deepEquals: function deepEquals(a, b) {
|
|
802
811
|
if (a === b) return true;
|
|
803
|
-
if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
|
|
812
|
+
if (a && b && _typeof$1(a) == 'object' && _typeof$1(b) == 'object') {
|
|
804
813
|
var arrA = Array.isArray(a),
|
|
805
814
|
arrB = Array.isArray(b),
|
|
806
815
|
i,
|
|
@@ -965,11 +974,13 @@ this.primevue.utils = (function (exports) {
|
|
|
965
974
|
return str;
|
|
966
975
|
},
|
|
967
976
|
getVNodeProp: function getVNodeProp(vnode, prop) {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
977
|
+
if (vnode) {
|
|
978
|
+
var props = vnode.props;
|
|
979
|
+
if (props) {
|
|
980
|
+
var kebabProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
981
|
+
var propName = Object.prototype.hasOwnProperty.call(props, kebabProp) ? kebabProp : prop;
|
|
982
|
+
return vnode.type["extends"].props[prop].type === Boolean && props[propName] === '' ? true : props[propName];
|
|
983
|
+
}
|
|
973
984
|
}
|
|
974
985
|
return null;
|
|
975
986
|
},
|
|
@@ -989,7 +1000,7 @@ this.primevue.utils = (function (exports) {
|
|
|
989
1000
|
}) ? str[0].toUpperCase() + str.slice(1) : str;
|
|
990
1001
|
},
|
|
991
1002
|
isEmpty: function isEmpty(value) {
|
|
992
|
-
return value === null || value === undefined || value === '' || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && _typeof(value) === 'object' && Object.keys(value).length === 0;
|
|
1003
|
+
return value === null || value === undefined || value === '' || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && _typeof$1(value) === 'object' && Object.keys(value).length === 0;
|
|
993
1004
|
},
|
|
994
1005
|
isNotEmpty: function isNotEmpty(value) {
|
|
995
1006
|
return !this.isEmpty(value);
|
|
@@ -1026,7 +1037,7 @@ this.primevue.utils = (function (exports) {
|
|
|
1026
1037
|
try {
|
|
1027
1038
|
item = arr.findLast(callback);
|
|
1028
1039
|
} catch (_unused2) {
|
|
1029
|
-
item = _toConsumableArray$
|
|
1040
|
+
item = _toConsumableArray$2(arr).reverse().find(callback);
|
|
1030
1041
|
}
|
|
1031
1042
|
}
|
|
1032
1043
|
return item;
|
|
@@ -1041,7 +1052,7 @@ this.primevue.utils = (function (exports) {
|
|
|
1041
1052
|
try {
|
|
1042
1053
|
index = arr.findLastIndex(callback);
|
|
1043
1054
|
} catch (_unused3) {
|
|
1044
|
-
index = arr.lastIndexOf(_toConsumableArray$
|
|
1055
|
+
index = arr.lastIndexOf(_toConsumableArray$2(arr).reverse().find(callback));
|
|
1045
1056
|
}
|
|
1046
1057
|
}
|
|
1047
1058
|
return index;
|
|
@@ -1113,6 +1124,95 @@ this.primevue.utils = (function (exports) {
|
|
|
1113
1124
|
}
|
|
1114
1125
|
};
|
|
1115
1126
|
|
|
1127
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1128
|
+
function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
|
|
1129
|
+
function _nonIterableSpread$1() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1130
|
+
function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
|
|
1131
|
+
function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
1132
|
+
function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
|
|
1133
|
+
function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
1134
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1135
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
1136
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1137
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1138
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
1139
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1140
|
+
var _default = /*#__PURE__*/function () {
|
|
1141
|
+
function _default(_ref) {
|
|
1142
|
+
var init = _ref.init,
|
|
1143
|
+
type = _ref.type;
|
|
1144
|
+
_classCallCheck(this, _default);
|
|
1145
|
+
_defineProperty(this, "helpers", void 0);
|
|
1146
|
+
_defineProperty(this, "type", void 0);
|
|
1147
|
+
this.helpers = new Set(init);
|
|
1148
|
+
this.type = type;
|
|
1149
|
+
}
|
|
1150
|
+
_createClass(_default, [{
|
|
1151
|
+
key: "add",
|
|
1152
|
+
value: function add(instance) {
|
|
1153
|
+
this.helpers.add(instance);
|
|
1154
|
+
}
|
|
1155
|
+
}, {
|
|
1156
|
+
key: "update",
|
|
1157
|
+
value: function update() {
|
|
1158
|
+
// @todo
|
|
1159
|
+
}
|
|
1160
|
+
}, {
|
|
1161
|
+
key: "delete",
|
|
1162
|
+
value: function _delete(instance) {
|
|
1163
|
+
this.helpers["delete"](instance);
|
|
1164
|
+
}
|
|
1165
|
+
}, {
|
|
1166
|
+
key: "clear",
|
|
1167
|
+
value: function clear() {
|
|
1168
|
+
this.helpers.clear();
|
|
1169
|
+
}
|
|
1170
|
+
}, {
|
|
1171
|
+
key: "get",
|
|
1172
|
+
value: function get(parentInstance, slots) {
|
|
1173
|
+
var children = this._get(parentInstance, slots);
|
|
1174
|
+
var computed = children ? this._recursive(_toConsumableArray$1(this.helpers), children) : null;
|
|
1175
|
+
return ObjectUtils.isNotEmpty(computed) ? computed : null;
|
|
1176
|
+
}
|
|
1177
|
+
}, {
|
|
1178
|
+
key: "_isMatched",
|
|
1179
|
+
value: function _isMatched(instance, key) {
|
|
1180
|
+
var _parent$vnode;
|
|
1181
|
+
var parent = instance === null || instance === void 0 ? void 0 : instance.parent;
|
|
1182
|
+
return (parent === null || parent === void 0 || (_parent$vnode = parent.vnode) === null || _parent$vnode === void 0 ? void 0 : _parent$vnode.key) === key || parent && this._isMatched(parent, key) || false;
|
|
1183
|
+
}
|
|
1184
|
+
}, {
|
|
1185
|
+
key: "_get",
|
|
1186
|
+
value: function _get(parentInstance, slots) {
|
|
1187
|
+
var _ref2, _ref2$default;
|
|
1188
|
+
return ((_ref2 = slots || (parentInstance === null || parentInstance === void 0 ? void 0 : parentInstance.$slots)) === null || _ref2 === void 0 || (_ref2$default = _ref2["default"]) === null || _ref2$default === void 0 ? void 0 : _ref2$default.call(_ref2)) || null;
|
|
1189
|
+
}
|
|
1190
|
+
}, {
|
|
1191
|
+
key: "_recursive",
|
|
1192
|
+
value: function _recursive() {
|
|
1193
|
+
var _this = this;
|
|
1194
|
+
var helpers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
1195
|
+
var children = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
1196
|
+
var components = [];
|
|
1197
|
+
children.forEach(function (child) {
|
|
1198
|
+
if (child.children instanceof Array) {
|
|
1199
|
+
components = components.concat(_this._recursive(components, child.children));
|
|
1200
|
+
} else if (child.type.name === _this.type) {
|
|
1201
|
+
components.push(child);
|
|
1202
|
+
} else if (ObjectUtils.isNotEmpty(child.key)) {
|
|
1203
|
+
components = components.concat(helpers.filter(function (c) {
|
|
1204
|
+
return _this._isMatched(c, child.key);
|
|
1205
|
+
}).map(function (c) {
|
|
1206
|
+
return c.vnode;
|
|
1207
|
+
}));
|
|
1208
|
+
}
|
|
1209
|
+
});
|
|
1210
|
+
return components;
|
|
1211
|
+
}
|
|
1212
|
+
}]);
|
|
1213
|
+
return _default;
|
|
1214
|
+
}();
|
|
1215
|
+
|
|
1116
1216
|
var lastId = 0;
|
|
1117
1217
|
function UniqueComponentId () {
|
|
1118
1218
|
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pv_id_';
|
|
@@ -1181,6 +1281,7 @@ this.primevue.utils = (function (exports) {
|
|
|
1181
1281
|
exports.ConnectedOverlayScrollHandler = ConnectedOverlayScrollHandler;
|
|
1182
1282
|
exports.DomHandler = DomHandler;
|
|
1183
1283
|
exports.EventBus = primebus;
|
|
1284
|
+
exports.HelperSet = _default;
|
|
1184
1285
|
exports.ObjectUtils = ObjectUtils;
|
|
1185
1286
|
exports.UniqueComponentId = UniqueComponentId;
|
|
1186
1287
|
exports.ZIndexUtils = ZIndexUtils;
|
package/utils/utils.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.utils=function(t){"use strict";function e(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){a=!0,o=t},f:function(){try{l||null==n.return||n.return()}finally{if(a)throw o}}}}function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function i(t){if(Array.isArray(t))return u(t)}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function l(t,e){return f(t)||c(t,e)||s(t,e)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,l,a=[],s=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw i}}return a}}function f(t){if(Array.isArray(t))return t}var d={innerWidth:function(t){if(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}return 0},width:function(t){if(t){var e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),e}return 0},getWindowScrollTop:function(){var t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)},getWindowScrollLeft:function(){var t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)},getOuterWidth:function(t,e){if(t){var n=t.offsetWidth;if(e){var r=getComputedStyle(t);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0},getOuterHeight:function(t,e){if(t){var n=t.offsetHeight;if(e){var r=getComputedStyle(t);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0},getClientHeight:function(t,e){if(t){var n=t.clientHeight;if(e){var r=getComputedStyle(t);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0},getViewport:function(){var t=window,e=document,n=e.documentElement,r=e.getElementsByTagName("body")[0];return{width:t.innerWidth||n.clientWidth||r.clientWidth,height:t.innerHeight||n.clientHeight||r.clientHeight}},getOffset:function(t){if(t){var e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}},index:function(t){if(t)for(var e=t.parentNode.childNodes,n=0,r=0;r<e.length;r++){if(e[r]===t)return n;1===e[r].nodeType&&n++}return-1},addMultipleClasses:function(t,e){var n=this;t&&e&&[e].flat().filter(Boolean).forEach((function(e){return e.split(" ").forEach((function(e){return n.addClass(t,e)}))}))},removeMultipleClasses:function(t,e){var n=this;t&&e&&[e].flat().filter(Boolean).forEach((function(e){return e.split(" ").forEach((function(e){return n.removeClass(t,e)}))}))},addClass:function(t,e){t&&e&&!this.hasClass(t,e)&&(t.classList?t.classList.add(e):t.className+=" "+e)},removeClass:function(t,e){t&&e&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))},hasClass:function(t,e){return!!t&&(t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className))},addStyles:function(t){t&&Object.entries(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).forEach((function(e){var n=l(e,2);return t.style[n[0]]=n[1]}))},find:function(t,e){return this.isElement(t)?t.querySelectorAll(e):[]},findSingle:function(t,e){return this.isElement(t)?t.querySelector(e):null},createElement:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t){var n=document.createElement(t);this.setAttributes(n,e);for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return n.append.apply(n,i),n}},setAttribute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;this.isElement(t)&&null!=n&&t.setAttribute(e,n)},setAttributes:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isElement(t)){var u=function e(n,r){var i,a,s=null!=t&&null!==(i=t.$attrs)&&void 0!==i&&i[n]?[null==t||null===(a=t.$attrs)||void 0===a?void 0:a[n]]:[];return[r].flat().reduce((function(t,r){if(null!=r){var i=o(r);if("string"===i||"number"===i)t.push(r);else if("object"===i){var a=Array.isArray(r)?e(n,r):Object.entries(r).map((function(t){var e=l(t,2),r=e[0],i=e[1];return"style"!==n||!i&&0!==i?i?r:void 0:"".concat(r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(i)}));t=a.length?t.concat(a.filter((function(t){return!!t}))):t}}return t}),s)};Object.entries(a).forEach((function(o){var a,c=l(o,2),f=c[0],d=c[1];if(null!=d){var h=f.match(/^on(.+)/);h?t.addEventListener(h[1].toLowerCase(),d):"p-bind"===f?e.setAttributes(t,d):(d="class"===f?(a=new Set(u("class",d)),i(a)||r(a)||s(a)||n()).join(" ").trim():"style"===f?u("style",d).join(";").trim():d,(t.$attrs=t.$attrs||{})&&(t.$attrs[f]=d),t.setAttribute(f,d))}}))}},getAttribute:function(t,e){if(this.isElement(t)){var n=t.getAttribute(e);return isNaN(n)?"true"===n||"false"===n?"true"===n:n:+n}},isAttributeEquals:function(t,e,n){return!!this.isElement(t)&&this.getAttribute(t,e)===n},isAttributeNotEquals:function(t,e,n){return!this.isAttributeEquals(t,e,n)},getHeight:function(t){if(t){var e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)}return 0},getWidth:function(t){if(t){var e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)}return 0},absolutePosition:function(t,e){if(t){var n,r,i=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),o=i.height,l=i.width,a=e.offsetHeight,s=e.offsetWidth,u=e.getBoundingClientRect(),c=this.getWindowScrollTop(),f=this.getWindowScrollLeft(),d=this.getViewport();u.top+a+o>d.height?(n=u.top+c-o,t.style.transformOrigin="bottom",n<0&&(n=c)):(n=a+u.top+c,t.style.transformOrigin="top"),r=u.left+l>d.width?Math.max(0,u.left+f+s-l):u.left+f,t.style.top=n+"px",t.style.left=r+"px"}},relativePosition:function(t,e){if(t){var n,r,i=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),o=e.offsetHeight,l=e.getBoundingClientRect(),a=this.getViewport();l.top+o+i.height>a.height?(n=-1*i.height,t.style.transformOrigin="bottom",l.top+n<0&&(n=-1*l.top)):(n=o,t.style.transformOrigin="top"),r=i.width>a.width?-1*l.left:l.left+i.width>a.width?-1*(l.left+i.width-a.width):0,t.style.top=n+"px",t.style.left=r+"px"}},nestedPosition:function(t,e){if(t){var n,r=t.parentElement,i=this.getOffset(r),o=this.getViewport(),l=t.offsetParent?t.offsetWidth:this.getHiddenElementOuterWidth(t),a=this.getOuterWidth(r.children[0]);parseInt(i.left,10)+a+l>o.width-this.calculateScrollbarWidth()?parseInt(i.left,10)<l?e%2==1?n=parseInt(i.left,10)?"-"+parseInt(i.left,10)+"px":"100%":e%2==0&&(n=o.width-l-this.calculateScrollbarWidth()+"px"):n="-100%":n="100%",t.style.top="0px",t.style.left=n}},getParents:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null===t.parentNode?e:this.getParents(t.parentNode,e.concat([t.parentNode]))},getScrollableParents:function(t){var n=[];if(t){var r,i=this.getParents(t),o=/(auto|scroll)/,l=function(t){try{var e=window.getComputedStyle(t,null);return o.test(e.getPropertyValue("overflow"))||o.test(e.getPropertyValue("overflowX"))||o.test(e.getPropertyValue("overflowY"))}catch(t){return!1}},a=e(i);try{for(a.s();!(r=a.n()).done;){var s=r.value,u=1===s.nodeType&&s.dataset.scrollselectors;if(u){var c,f=e(u.split(","));try{for(f.s();!(c=f.n()).done;){var d=this.findSingle(s,c.value);d&&l(d)&&n.push(d)}}catch(t){f.e(t)}finally{f.f()}}9!==s.nodeType&&l(s)&&n.push(s)}}catch(t){a.e(t)}finally{a.f()}}return n},getHiddenElementOuterHeight:function(t){if(t){t.style.visibility="hidden",t.style.display="block";var e=t.offsetHeight;return t.style.display="none",t.style.visibility="visible",e}return 0},getHiddenElementOuterWidth:function(t){if(t){t.style.visibility="hidden",t.style.display="block";var e=t.offsetWidth;return t.style.display="none",t.style.visibility="visible",e}return 0},getHiddenElementDimensions:function(t){if(t){var e={};return t.style.visibility="hidden",t.style.display="block",e.width=t.offsetWidth,e.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible",e}return 0},fadeIn:function(t,e){if(t){t.style.opacity=0;var n=+new Date,r=0;!function i(){r=+t.style.opacity+((new Date).getTime()-n)/e,t.style.opacity=r,n=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))}()}},fadeOut:function(t,e){if(t)var n=1,r=50/e,i=setInterval((function(){(n-=r)<=0&&(n=0,clearInterval(i)),t.style.opacity=n}),50)},getUserAgent:function(){return navigator.userAgent},appendChild:function(t,e){if(this.isElement(e))e.appendChild(t);else{if(!e.el||!e.elElement)throw new Error("Cannot append "+e+" to "+t);e.elElement.appendChild(t)}},isElement:function(t){return"object"===("undefined"==typeof HTMLElement?"undefined":o(HTMLElement))?t instanceof HTMLElement:t&&"object"===o(t)&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName},scrollInView:function(t,e){var n=getComputedStyle(t).getPropertyValue("borderTopWidth"),r=n?parseFloat(n):0,i=getComputedStyle(t).getPropertyValue("paddingTop"),o=i?parseFloat(i):0,l=t.getBoundingClientRect(),a=e.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-r-o,s=t.scrollTop,u=t.clientHeight,c=this.getOuterHeight(e);a<0?t.scrollTop=s+a:a+c>u&&(t.scrollTop=s+a-u+c)},clearSelection:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(t){}},getSelection:function(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null},calculateScrollbarWidth:function(){if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var t=document.createElement("div");this.addStyles(t,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),this.calculatedScrollbarWidth=e,e},calculateBodyScrollbarWidth:function(){return window.innerWidth-document.documentElement.offsetWidth},getBrowser:function(){if(!this.browser){var t=this.resolveUserAgent();this.browser={},t.browser&&(this.browser[t.browser]=!0,this.browser.version=t.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent:function(){var t=navigator.userAgent.toLowerCase(),e=/(chrome)[ ]([\w.]+)/.exec(t)||/(webkit)[ ]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},isVisible:function(t){return t&&null!=t.offsetParent},invokeElementMethod:function(t,e,n){t[e].apply(t,n)},isExist:function(t){return!(null==t||!t.nodeName||!t.parentNode)},isClient:function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},focus:function(t,e){t&&document.activeElement!==t&&t.focus(e)},isFocusableElement:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return!!this.isElement(t)&&t.matches('button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(e,',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(e,',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(e,',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(e,',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(e,',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(e,',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(e))},getFocusableElements:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=[],o=e(this.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(r,',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r)));try{for(o.s();!(n=o.n()).done;){var l=n.value;"none"!=getComputedStyle(l).display&&"hidden"!=getComputedStyle(l).visibility&&i.push(l)}}catch(t){o.e(t)}finally{o.f()}return i},getFirstFocusableElement:function(t,e){var n=this.getFocusableElements(t,e);return n.length>0?n[0]:null},getLastFocusableElement:function(t,e){var n=this.getFocusableElements(t,e);return n.length>0?n[n.length-1]:null},getNextFocusableElement:function(t,e,n){var r=this.getFocusableElements(t,n),i=r.length>0?r.findIndex((function(t){return t===e})):-1,o=i>-1&&r.length>=i+1?i+1:-1;return o>-1?r[o]:null},getPreviousElementSibling:function(t,e){for(var n=t.previousElementSibling;n;){if(n.matches(e))return n;n=n.previousElementSibling}return null},getNextElementSibling:function(t,e){for(var n=t.nextElementSibling;n;){if(n.matches(e))return n;n=n.nextElementSibling}return null},isClickable:function(t){if(t){var e=t.nodeName,n=t.parentElement&&t.parentElement.nodeName;return"INPUT"===e||"TEXTAREA"===e||"BUTTON"===e||"A"===e||"INPUT"===n||"TEXTAREA"===n||"BUTTON"===n||"A"===n||!!t.closest(".p-button, .p-checkbox, .p-radiobutton")}return!1},applyStyle:function(t,e){if("string"==typeof e)t.style.cssText=e;else for(var n in e)t.style[n]=e[n]},isIOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},isAndroid:function(){return/(android)/i.test(navigator.userAgent)},isTouchDevice:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},hasCSSAnimation:function(t){if(t){var e=getComputedStyle(t);return parseFloat(e.getPropertyValue("animation-duration")||"0")>0}return!1},hasCSSTransition:function(t){if(t){var e=getComputedStyle(t);return parseFloat(e.getPropertyValue("transition-duration")||"0")>0}return!1},exportCSV:function(t,e){var n=new Blob([t],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(n,e+".csv");else{var r=document.createElement("a");void 0!==r.download?(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download",e+".csv"),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)):(t="data:text/csv;charset=utf-8,"+t,window.open(encodeURI(t)))}},blockBodyScroll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden";document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,t)},unblockBodyScroll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,t)}};function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,g(r.key),r)}}function g(t){var e=m(t,"string");return"symbol"==h(e)?e:String(e)}function m(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var v=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};p(this,t),this.element=e,this.listener=n}var e,n,r;return e=t,(n=[{key:"bindScrollListener",value:function(){this.scrollableParents=d.getScrollableParents(this.element);for(var t=0;t<this.scrollableParents.length;t++)this.scrollableParents[t].addEventListener("scroll",this.listener)}},{key:"unbindScrollListener",value:function(){if(this.scrollableParents)for(var t=0;t<this.scrollableParents.length;t++)this.scrollableParents[t].removeEventListener("scroll",this.listener)}},{key:"destroy",value:function(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}])&&y(e.prototype,n),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function b(t,e){return E(t)||S(t,e)||I(t,e)||w()}function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,l,a=[],s=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw i}}return a}}function E(t){if(Array.isArray(t))return t}function x(t){return O(t)||C(t)||I(t)||A()}function A(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function O(t){if(Array.isArray(t))return T(t)}function F(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=I(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){a=!0,o=t},f:function(){try{l||null==n.return||n.return()}finally{if(a)throw o}}}}function I(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}var P={equals:function(t,e,n){return n?this.resolveFieldData(t,n)===this.resolveFieldData(e,n):this.deepEquals(t,e)},deepEquals:function(t,e){if(t===e)return!0;if(t&&e&&"object"==j(t)&&"object"==j(e)){var n,r,i,o=Array.isArray(t),l=Array.isArray(e);if(o&&l){if((r=t.length)!=e.length)return!1;for(n=r;0!=n--;)if(!this.deepEquals(t[n],e[n]))return!1;return!0}if(o!=l)return!1;var a=t instanceof Date,s=e instanceof Date;if(a!=s)return!1;if(a&&s)return t.getTime()==e.getTime();var u=t instanceof RegExp,c=e instanceof RegExp;if(u!=c)return!1;if(u&&c)return t.toString()==e.toString();var f=Object.keys(t);if((r=f.length)!==Object.keys(e).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(e,f[n]))return!1;for(n=r;0!=n--;)if(!this.deepEquals(t[i=f[n]],e[i]))return!1;return!0}return t!=t&&e!=e},resolveFieldData:function(t,e){if(!t||!e)return null;try{var n=t[e];if(this.isNotEmpty(n))return n}catch(t){}if(Object.keys(t).length){if(this.isFunction(e))return e(t);if(-1===e.indexOf("."))return t[e];for(var r=e.split("."),i=t,o=0,l=r.length;o<l;++o){if(null==i)return null;i=i[r[o]]}return i}return null},getItemValue:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return this.isFunction(t)?t.apply(void 0,n):t},filter:function(t,e,n){var r=[];if(t){var i,o=F(t);try{for(o.s();!(i=o.n()).done;){var l,a=i.value,s=F(e);try{for(s.s();!(l=s.n()).done;){if(String(this.resolveFieldData(a,l.value)).toLowerCase().indexOf(n.toLowerCase())>-1){r.push(a);break}}}catch(t){s.e(t)}finally{s.f()}}}catch(t){o.e(t)}finally{o.f()}}return r},reorderArray:function(t,e,n){t&&e!==n&&(n>=t.length&&(n%=t.length,e%=t.length),t.splice(n,0,t.splice(e,1)[0]))},findIndexInList:function(t,e){var n=-1;if(e)for(var r=0;r<e.length;r++)if(e[r]===t){n=r;break}return n},contains:function(t,e){if(null!=t&&e&&e.length){var n,r=F(e);try{for(r.s();!(n=r.n()).done;){if(this.equals(t,n.value))return!0}}catch(t){r.e(t)}finally{r.f()}}return!1},insertIntoOrderedArray:function(t,e,n,r){if(n.length>0){for(var i=!1,o=0;o<n.length;o++){if(this.findIndexInList(n[o],r)>e){n.splice(o,0,t),i=!0;break}}i||n.push(t)}else n.push(t)},removeAccents:function(t){return t&&t.search(/[\xC0-\xFF]/g)>-1&&(t=t.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),t},getVNodeProp:function(t,e){var n=t.props;if(n){var r=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=Object.prototype.hasOwnProperty.call(n,r)?r:e;return t.type.extends.props[e].type===Boolean&&""===n[i]||n[i]}return null},toFlatCase:function(t){return this.isString(t)?t.replace(/(-|_)/g,"").toLowerCase():t},toKebabCase:function(t){return this.isString(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(function(t,e){return 0===e?t:"-"+t.toLowerCase()})).toLowerCase():t},toCapitalCase:function(t){return this.isString(t,{empty:!1})?t[0].toUpperCase()+t.slice(1):t},isEmpty:function(t){return null==t||""===t||Array.isArray(t)&&0===t.length||!(t instanceof Date)&&"object"===j(t)&&0===Object.keys(t).length},isNotEmpty:function(t){return!this.isEmpty(t)},isFunction:function(t){return!!(t&&t.constructor&&t.call&&t.apply)},isObject:function(t){return t instanceof Object&&t.constructor===Object&&(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]||0!==Object.keys(t).length)},isDate:function(t){return t instanceof Date&&t.constructor===Date},isArray:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Array.isArray(t)&&(e||0!==t.length)},isString:function(t){return"string"==typeof t&&(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]||""!==t)},isPrintableCharacter:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.isNotEmpty(t)&&1===t.length&&t.match(/\S| /)},findLast:function(t,e){var n;if(this.isNotEmpty(t))try{n=t.findLast(e)}catch(r){n=x(t).reverse().find(e)}return n},findLastIndex:function(t,e){var n=-1;if(this.isNotEmpty(t))try{n=t.findLastIndex(e)}catch(r){n=t.lastIndexOf(x(t).reverse().find(e))}return n},sort:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=this.compare(t,e,arguments.length>3?arguments[3]:void 0,n),o=n;return(this.isEmpty(t)||this.isEmpty(e))&&(o=1===r?n:r),o*i},compare:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=this.isEmpty(t),o=this.isEmpty(e);return i&&o?0:i?r:o?-r:"string"==typeof t&&"string"==typeof e?n(t,e):t<e?-1:t>e?1:0},localeComparator:function(){return new Intl.Collator(void 0,{numeric:!0}).compare},nestedKeys:function(){var t=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).reduce((function(n,r){var i=b(r,2),o=i[0],l=i[1],a=e?"".concat(e,".").concat(o):o;return t.isObject(l)?n=n.concat(t.nestedKeys(l,a)):n.push(a),n}),[])},stringify:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=" ".repeat(r),o=" ".repeat(r+n);return this.isArray(t)?"["+t.map((function(t){return e.stringify(t,n,r+n)})).join(", ")+"]":this.isDate(t)?t.toISOString():this.isFunction(t)?t.toString():this.isObject(t)?"{\n"+Object.entries(t).map((function(t){var i=b(t,2),l=i[0],a=i[1];return"".concat(o).concat(l,": ").concat(e.stringify(a,n,r+n))})).join(",\n")+"\n".concat(i)+"}":JSON.stringify(t)}},L=0;function W(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(t,e){if(t){if("string"==typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(t,e):void 0}}function D(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function H(t){if(Array.isArray(t))return k(t)}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var B,R,U,V,q,M=(B=[],R=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=V(t,e,n),i=r.value+(r.key===t?0:n)+1;return B.push({key:t,value:i}),i},U=function(t,e){return V(t,e).value},V=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(n=B,H(n)||D(n)||N(n)||W()).reverse().find((function(n){return!!e||n.key===t}))||{key:t,value:r}},{get:q=function(t){return t&&parseInt(t.style.zIndex,10)||0},set:function(t,e,n){e&&(e.style.zIndex=String(R(t,!0,n)))},clear:function(t){var e;t&&(e=q(t),B=B.filter((function(t){return t.value!==e})),t.style.zIndex="")},getCurrent:function(t){return U(t,!0)}});return t.ConnectedOverlayScrollHandler=v,t.DomHandler=d,t.EventBus=function(){var t=new Map;return{on:function(e,n){var r=t.get(e);r?r.push(n):r=[n],t.set(e,r)},off:function(e,n){var r=t.get(e);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(e,n){var r=t.get(e);r&&r.slice().map((function(t){t(n)}))}}},t.ObjectUtils=P,t.UniqueComponentId=function(){return L++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pv_id_").concat(L)},t.ZIndexUtils=M,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.utils=function(t){"use strict";function e(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){a=!0,o=t},f:function(){try{l||null==n.return||n.return()}finally{if(a)throw o}}}}function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function i(t){if(Array.isArray(t))return u(t)}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function l(t,e){return f(t)||c(t,e)||s(t,e)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,l,a=[],s=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw i}}return a}}function f(t){if(Array.isArray(t))return t}var d={innerWidth:function(t){if(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}return 0},width:function(t){if(t){var e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),e}return 0},getWindowScrollTop:function(){var t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)},getWindowScrollLeft:function(){var t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)},getOuterWidth:function(t,e){if(t){var n=t.offsetWidth;if(e){var r=getComputedStyle(t);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0},getOuterHeight:function(t,e){if(t){var n=t.offsetHeight;if(e){var r=getComputedStyle(t);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0},getClientHeight:function(t,e){if(t){var n=t.clientHeight;if(e){var r=getComputedStyle(t);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0},getViewport:function(){var t=window,e=document,n=e.documentElement,r=e.getElementsByTagName("body")[0];return{width:t.innerWidth||n.clientWidth||r.clientWidth,height:t.innerHeight||n.clientHeight||r.clientHeight}},getOffset:function(t){if(t){var e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}},index:function(t){if(t)for(var e,n=null===(e=this.getParentNode(t))||void 0===e?void 0:e.childNodes,r=0,i=0;i<n.length;i++){if(n[i]===t)return r;1===n[i].nodeType&&r++}return-1},addMultipleClasses:function(t,e){var n=this;t&&e&&[e].flat().filter(Boolean).forEach((function(e){return e.split(" ").forEach((function(e){return n.addClass(t,e)}))}))},removeMultipleClasses:function(t,e){var n=this;t&&e&&[e].flat().filter(Boolean).forEach((function(e){return e.split(" ").forEach((function(e){return n.removeClass(t,e)}))}))},addClass:function(t,e){t&&e&&!this.hasClass(t,e)&&(t.classList?t.classList.add(e):t.className+=" "+e)},removeClass:function(t,e){t&&e&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))},hasClass:function(t,e){return!!t&&(t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className))},addStyles:function(t){t&&Object.entries(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).forEach((function(e){var n=l(e,2);return t.style[n[0]]=n[1]}))},find:function(t,e){return this.isElement(t)?t.querySelectorAll(e):[]},findSingle:function(t,e){return this.isElement(t)?t.querySelector(e):null},createElement:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t){var n=document.createElement(t);this.setAttributes(n,e);for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return n.append.apply(n,i),n}},setAttribute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;this.isElement(t)&&null!=n&&t.setAttribute(e,n)},setAttributes:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isElement(t)){var u=function e(n,r){var i,a,s=null!=t&&null!==(i=t.$attrs)&&void 0!==i&&i[n]?[null==t||null===(a=t.$attrs)||void 0===a?void 0:a[n]]:[];return[r].flat().reduce((function(t,r){if(null!=r){var i=o(r);if("string"===i||"number"===i)t.push(r);else if("object"===i){var a=Array.isArray(r)?e(n,r):Object.entries(r).map((function(t){var e=l(t,2),r=e[0],i=e[1];return"style"!==n||!i&&0!==i?i?r:void 0:"".concat(r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(i)}));t=a.length?t.concat(a.filter((function(t){return!!t}))):t}}return t}),s)};Object.entries(a).forEach((function(o){var a,c=l(o,2),f=c[0],d=c[1];if(null!=d){var h=f.match(/^on(.+)/);h?t.addEventListener(h[1].toLowerCase(),d):"p-bind"===f?e.setAttributes(t,d):(d="class"===f?(a=new Set(u("class",d)),i(a)||r(a)||s(a)||n()).join(" ").trim():"style"===f?u("style",d).join(";").trim():d,(t.$attrs=t.$attrs||{})&&(t.$attrs[f]=d),t.setAttribute(f,d))}}))}},getAttribute:function(t,e){if(this.isElement(t)){var n=t.getAttribute(e);return isNaN(n)?"true"===n||"false"===n?"true"===n:n:+n}},isAttributeEquals:function(t,e,n){return!!this.isElement(t)&&this.getAttribute(t,e)===n},isAttributeNotEquals:function(t,e,n){return!this.isAttributeEquals(t,e,n)},getHeight:function(t){if(t){var e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)}return 0},getWidth:function(t){if(t){var e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)}return 0},absolutePosition:function(t,e){if(t){var n,r,i=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),o=i.height,l=i.width,a=e.offsetHeight,s=e.offsetWidth,u=e.getBoundingClientRect(),c=this.getWindowScrollTop(),f=this.getWindowScrollLeft(),d=this.getViewport();u.top+a+o>d.height?(n=u.top+c-o,t.style.transformOrigin="bottom",n<0&&(n=c)):(n=a+u.top+c,t.style.transformOrigin="top"),r=u.left+l>d.width?Math.max(0,u.left+f+s-l):u.left+f,t.style.top=n+"px",t.style.left=r+"px"}},relativePosition:function(t,e){if(t){var n,r,i=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),o=e.offsetHeight,l=e.getBoundingClientRect(),a=this.getViewport();l.top+o+i.height>a.height?(n=-1*i.height,t.style.transformOrigin="bottom",l.top+n<0&&(n=-1*l.top)):(n=o,t.style.transformOrigin="top"),r=i.width>a.width?-1*l.left:l.left+i.width>a.width?-1*(l.left+i.width-a.width):0,t.style.top=n+"px",t.style.left=r+"px"}},nestedPosition:function(t,e){if(t){var n,r=t.parentElement,i=this.getOffset(r),o=this.getViewport(),l=t.offsetParent?t.offsetWidth:this.getHiddenElementOuterWidth(t),a=this.getOuterWidth(r.children[0]);parseInt(i.left,10)+a+l>o.width-this.calculateScrollbarWidth()?parseInt(i.left,10)<l?e%2==1?n=parseInt(i.left,10)?"-"+parseInt(i.left,10)+"px":"100%":e%2==0&&(n=o.width-l-this.calculateScrollbarWidth()+"px"):n="-100%":n="100%",t.style.top="0px",t.style.left=n}},getParentNode:function(t){var e=null==t?void 0:t.parentNode;return e&&e.host&&(e=e.host),e},getParents:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.getParentNode(t);return null===n?e:this.getParents(n,e.concat([n]))},getScrollableParents:function(t){var n=[];if(t){var r,i=this.getParents(t),o=/(auto|scroll)/,l=function(t){try{var e=window.getComputedStyle(t,null);return o.test(e.getPropertyValue("overflow"))||o.test(e.getPropertyValue("overflowX"))||o.test(e.getPropertyValue("overflowY"))}catch(t){return!1}},a=e(i);try{for(a.s();!(r=a.n()).done;){var s=r.value,u=1===s.nodeType&&s.dataset.scrollselectors;if(u){var c,f=e(u.split(","));try{for(f.s();!(c=f.n()).done;){var d=this.findSingle(s,c.value);d&&l(d)&&n.push(d)}}catch(t){f.e(t)}finally{f.f()}}9!==s.nodeType&&l(s)&&n.push(s)}}catch(t){a.e(t)}finally{a.f()}}return n},getHiddenElementOuterHeight:function(t){if(t){t.style.visibility="hidden",t.style.display="block";var e=t.offsetHeight;return t.style.display="none",t.style.visibility="visible",e}return 0},getHiddenElementOuterWidth:function(t){if(t){t.style.visibility="hidden",t.style.display="block";var e=t.offsetWidth;return t.style.display="none",t.style.visibility="visible",e}return 0},getHiddenElementDimensions:function(t){if(t){var e={};return t.style.visibility="hidden",t.style.display="block",e.width=t.offsetWidth,e.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible",e}return 0},fadeIn:function(t,e){if(t){t.style.opacity=0;var n=+new Date,r=0;!function i(){r=+t.style.opacity+((new Date).getTime()-n)/e,t.style.opacity=r,n=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))}()}},fadeOut:function(t,e){if(t)var n=1,r=50/e,i=setInterval((function(){(n-=r)<=0&&(n=0,clearInterval(i)),t.style.opacity=n}),50)},getUserAgent:function(){return navigator.userAgent},appendChild:function(t,e){if(this.isElement(e))e.appendChild(t);else{if(!e.el||!e.elElement)throw new Error("Cannot append "+e+" to "+t);e.elElement.appendChild(t)}},isElement:function(t){return"object"===("undefined"==typeof HTMLElement?"undefined":o(HTMLElement))?t instanceof HTMLElement:t&&"object"===o(t)&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName},scrollInView:function(t,e){var n=getComputedStyle(t).getPropertyValue("borderTopWidth"),r=n?parseFloat(n):0,i=getComputedStyle(t).getPropertyValue("paddingTop"),o=i?parseFloat(i):0,l=t.getBoundingClientRect(),a=e.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-r-o,s=t.scrollTop,u=t.clientHeight,c=this.getOuterHeight(e);a<0?t.scrollTop=s+a:a+c>u&&(t.scrollTop=s+a-u+c)},clearSelection:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(t){}},getSelection:function(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null},calculateScrollbarWidth:function(){if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var t=document.createElement("div");this.addStyles(t,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),this.calculatedScrollbarWidth=e,e},calculateBodyScrollbarWidth:function(){return window.innerWidth-document.documentElement.offsetWidth},getBrowser:function(){if(!this.browser){var t=this.resolveUserAgent();this.browser={},t.browser&&(this.browser[t.browser]=!0,this.browser.version=t.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent:function(){var t=navigator.userAgent.toLowerCase(),e=/(chrome)[ ]([\w.]+)/.exec(t)||/(webkit)[ ]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},isVisible:function(t){return t&&null!=t.offsetParent},invokeElementMethod:function(t,e,n){t[e].apply(t,n)},isExist:function(t){return!(null==t||!t.nodeName||!this.getParentNode(t))},isClient:function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},focus:function(t,e){t&&document.activeElement!==t&&t.focus(e)},isFocusableElement:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return!!this.isElement(t)&&t.matches('button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(e,',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(e,',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(e,',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(e,',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(e,',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(e,',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(e))},getFocusableElements:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=[],o=e(this.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(r,',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r)));try{for(o.s();!(n=o.n()).done;){var l=n.value;"none"!=getComputedStyle(l).display&&"hidden"!=getComputedStyle(l).visibility&&i.push(l)}}catch(t){o.e(t)}finally{o.f()}return i},getFirstFocusableElement:function(t,e){var n=this.getFocusableElements(t,e);return n.length>0?n[0]:null},getLastFocusableElement:function(t,e){var n=this.getFocusableElements(t,e);return n.length>0?n[n.length-1]:null},getNextFocusableElement:function(t,e,n){var r=this.getFocusableElements(t,n),i=r.length>0?r.findIndex((function(t){return t===e})):-1,o=i>-1&&r.length>=i+1?i+1:-1;return o>-1?r[o]:null},getPreviousElementSibling:function(t,e){for(var n=t.previousElementSibling;n;){if(n.matches(e))return n;n=n.previousElementSibling}return null},getNextElementSibling:function(t,e){for(var n=t.nextElementSibling;n;){if(n.matches(e))return n;n=n.nextElementSibling}return null},isClickable:function(t){if(t){var e=t.nodeName,n=t.parentElement&&t.parentElement.nodeName;return"INPUT"===e||"TEXTAREA"===e||"BUTTON"===e||"A"===e||"INPUT"===n||"TEXTAREA"===n||"BUTTON"===n||"A"===n||!!t.closest(".p-button, .p-checkbox, .p-radiobutton")}return!1},applyStyle:function(t,e){if("string"==typeof e)t.style.cssText=e;else for(var n in e)t.style[n]=e[n]},isIOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},isAndroid:function(){return/(android)/i.test(navigator.userAgent)},isTouchDevice:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},hasCSSAnimation:function(t){if(t){var e=getComputedStyle(t);return parseFloat(e.getPropertyValue("animation-duration")||"0")>0}return!1},hasCSSTransition:function(t){if(t){var e=getComputedStyle(t);return parseFloat(e.getPropertyValue("transition-duration")||"0")>0}return!1},exportCSV:function(t,e){var n=new Blob([t],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(n,e+".csv");else{var r=document.createElement("a");void 0!==r.download?(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download",e+".csv"),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)):(t="data:text/csv;charset=utf-8,"+t,window.open(encodeURI(t)))}},blockBodyScroll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden";document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,t)},unblockBodyScroll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,t)}};function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,g(r.key),r)}}function g(t){var e=v(t,"string");return"symbol"==h(e)?e:String(e)}function v(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var m=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};p(this,t),this.element=e,this.listener=n}var e,n,r;return e=t,(n=[{key:"bindScrollListener",value:function(){this.scrollableParents=d.getScrollableParents(this.element);for(var t=0;t<this.scrollableParents.length;t++)this.scrollableParents[t].addEventListener("scroll",this.listener)}},{key:"unbindScrollListener",value:function(){if(this.scrollableParents)for(var t=0;t<this.scrollableParents.length;t++)this.scrollableParents[t].removeEventListener("scroll",this.listener)}},{key:"destroy",value:function(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}])&&y(e.prototype,n),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function b(t,e){return E(t)||S(t,e)||I(t,e)||w()}function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,l,a=[],s=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw i}}return a}}function E(t){if(Array.isArray(t))return t}function x(t){return O(t)||C(t)||I(t)||A()}function A(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function O(t){if(Array.isArray(t))return F(t)}function j(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=I(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){a=!0,o=t},f:function(){try{l||null==n.return||n.return()}finally{if(a)throw o}}}}function I(t,e){if(t){if("string"==typeof t)return F(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(t,e):void 0}}function F(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}var P={equals:function(t,e,n){return n?this.resolveFieldData(t,n)===this.resolveFieldData(e,n):this.deepEquals(t,e)},deepEquals:function(t,e){if(t===e)return!0;if(t&&e&&"object"==T(t)&&"object"==T(e)){var n,r,i,o=Array.isArray(t),l=Array.isArray(e);if(o&&l){if((r=t.length)!=e.length)return!1;for(n=r;0!=n--;)if(!this.deepEquals(t[n],e[n]))return!1;return!0}if(o!=l)return!1;var a=t instanceof Date,s=e instanceof Date;if(a!=s)return!1;if(a&&s)return t.getTime()==e.getTime();var u=t instanceof RegExp,c=e instanceof RegExp;if(u!=c)return!1;if(u&&c)return t.toString()==e.toString();var f=Object.keys(t);if((r=f.length)!==Object.keys(e).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(e,f[n]))return!1;for(n=r;0!=n--;)if(!this.deepEquals(t[i=f[n]],e[i]))return!1;return!0}return t!=t&&e!=e},resolveFieldData:function(t,e){if(!t||!e)return null;try{var n=t[e];if(this.isNotEmpty(n))return n}catch(t){}if(Object.keys(t).length){if(this.isFunction(e))return e(t);if(-1===e.indexOf("."))return t[e];for(var r=e.split("."),i=t,o=0,l=r.length;o<l;++o){if(null==i)return null;i=i[r[o]]}return i}return null},getItemValue:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return this.isFunction(t)?t.apply(void 0,n):t},filter:function(t,e,n){var r=[];if(t){var i,o=j(t);try{for(o.s();!(i=o.n()).done;){var l,a=i.value,s=j(e);try{for(s.s();!(l=s.n()).done;){if(String(this.resolveFieldData(a,l.value)).toLowerCase().indexOf(n.toLowerCase())>-1){r.push(a);break}}}catch(t){s.e(t)}finally{s.f()}}}catch(t){o.e(t)}finally{o.f()}}return r},reorderArray:function(t,e,n){t&&e!==n&&(n>=t.length&&(n%=t.length,e%=t.length),t.splice(n,0,t.splice(e,1)[0]))},findIndexInList:function(t,e){var n=-1;if(e)for(var r=0;r<e.length;r++)if(e[r]===t){n=r;break}return n},contains:function(t,e){if(null!=t&&e&&e.length){var n,r=j(e);try{for(r.s();!(n=r.n()).done;){if(this.equals(t,n.value))return!0}}catch(t){r.e(t)}finally{r.f()}}return!1},insertIntoOrderedArray:function(t,e,n,r){if(n.length>0){for(var i=!1,o=0;o<n.length;o++){if(this.findIndexInList(n[o],r)>e){n.splice(o,0,t),i=!0;break}}i||n.push(t)}else n.push(t)},removeAccents:function(t){return t&&t.search(/[\xC0-\xFF]/g)>-1&&(t=t.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),t},getVNodeProp:function(t,e){if(t){var n=t.props;if(n){var r=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=Object.prototype.hasOwnProperty.call(n,r)?r:e;return t.type.extends.props[e].type===Boolean&&""===n[i]||n[i]}}return null},toFlatCase:function(t){return this.isString(t)?t.replace(/(-|_)/g,"").toLowerCase():t},toKebabCase:function(t){return this.isString(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(function(t,e){return 0===e?t:"-"+t.toLowerCase()})).toLowerCase():t},toCapitalCase:function(t){return this.isString(t,{empty:!1})?t[0].toUpperCase()+t.slice(1):t},isEmpty:function(t){return null==t||""===t||Array.isArray(t)&&0===t.length||!(t instanceof Date)&&"object"===T(t)&&0===Object.keys(t).length},isNotEmpty:function(t){return!this.isEmpty(t)},isFunction:function(t){return!!(t&&t.constructor&&t.call&&t.apply)},isObject:function(t){return t instanceof Object&&t.constructor===Object&&(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]||0!==Object.keys(t).length)},isDate:function(t){return t instanceof Date&&t.constructor===Date},isArray:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Array.isArray(t)&&(e||0!==t.length)},isString:function(t){return"string"==typeof t&&(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]||""!==t)},isPrintableCharacter:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.isNotEmpty(t)&&1===t.length&&t.match(/\S| /)},findLast:function(t,e){var n;if(this.isNotEmpty(t))try{n=t.findLast(e)}catch(r){n=x(t).reverse().find(e)}return n},findLastIndex:function(t,e){var n=-1;if(this.isNotEmpty(t))try{n=t.findLastIndex(e)}catch(r){n=t.lastIndexOf(x(t).reverse().find(e))}return n},sort:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=this.compare(t,e,arguments.length>3?arguments[3]:void 0,n),o=n;return(this.isEmpty(t)||this.isEmpty(e))&&(o=1===r?n:r),o*i},compare:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=this.isEmpty(t),o=this.isEmpty(e);return i&&o?0:i?r:o?-r:"string"==typeof t&&"string"==typeof e?n(t,e):t<e?-1:t>e?1:0},localeComparator:function(){return new Intl.Collator(void 0,{numeric:!0}).compare},nestedKeys:function(){var t=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).reduce((function(n,r){var i=b(r,2),o=i[0],l=i[1],a=e?"".concat(e,".").concat(o):o;return t.isObject(l)?n=n.concat(t.nestedKeys(l,a)):n.push(a),n}),[])},stringify:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=" ".repeat(r),o=" ".repeat(r+n);return this.isArray(t)?"["+t.map((function(t){return e.stringify(t,n,r+n)})).join(", ")+"]":this.isDate(t)?t.toISOString():this.isFunction(t)?t.toString():this.isObject(t)?"{\n"+Object.entries(t).map((function(t){var i=b(t,2),l=i[0],a=i[1];return"".concat(o).concat(l,": ").concat(e.stringify(a,n,r+n))})).join(",\n")+"\n".concat(i)+"}":JSON.stringify(t)}};function L(t){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L(t)}function W(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(t,e){if(t){if("string"==typeof t)return D(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(t,e):void 0}}function N(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function H(t){if(Array.isArray(t))return D(t)}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function B(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,M(r.key),r)}}function U(t,e,n){return(e=M(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M(t){var e=V(t,"string");return"symbol"==L(e)?e:String(e)}function V(t,e){if("object"!=L(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var $=function(){function t(e){var n=e.init,r=e.type;B(this,t),U(this,"helpers",void 0),U(this,"type",void 0),this.helpers=new Set(n),this.type=r}var e,n,r;return e=t,n=[{key:"add",value:function(t){this.helpers.add(t)}},{key:"update",value:function(){}},{key:"delete",value:function(t){this.helpers.delete(t)}},{key:"clear",value:function(){this.helpers.clear()}},{key:"get",value:function(t,e){var n,r=this._get(t,e),i=r?this._recursive(H(n=this.helpers)||N(n)||k(n)||W(),r):null;return P.isNotEmpty(i)?i:null}},{key:"_isMatched",value:function(t,e){var n,r=null==t?void 0:t.parent;return(null==r||null===(n=r.vnode)||void 0===n?void 0:n.key)===e||r&&this._isMatched(r,e)||!1}},{key:"_get",value:function(t,e){var n,r;return(null===(n=e||(null==t?void 0:t.$slots))||void 0===n||null===(r=n.default)||void 0===r?void 0:r.call(n))||null}},{key:"_recursive",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(r){r.children instanceof Array?n=n.concat(t._recursive(n,r.children)):r.type.name===t.type?n.push(r):P.isNotEmpty(r.key)&&(n=n.concat(e.filter((function(e){return t._isMatched(e,r.key)})).map((function(t){return t.vnode}))))})),n}}],n&&R(e.prototype,n),r&&R(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),q=0;function _(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function z(t,e){if(t){if("string"==typeof t)return Z(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(t,e):void 0}}function X(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Y(t){if(Array.isArray(t))return Z(t)}function Z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var K,J,G,Q,tt,et=(K=[],J=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=Q(t,e,n),i=r.value+(r.key===t?0:n)+1;return K.push({key:t,value:i}),i},G=function(t,e){return Q(t,e).value},Q=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(n=K,Y(n)||X(n)||z(n)||_()).reverse().find((function(n){return!!e||n.key===t}))||{key:t,value:r}},{get:tt=function(t){return t&&parseInt(t.style.zIndex,10)||0},set:function(t,e,n){e&&(e.style.zIndex=String(J(t,!0,n)))},clear:function(t){var e;t&&(e=tt(t),K=K.filter((function(t){return t.value!==e})),t.style.zIndex="")},getCurrent:function(t){return G(t,!0)}});return t.ConnectedOverlayScrollHandler=m,t.DomHandler=d,t.EventBus=function(){var t=new Map;return{on:function(e,n){var r=t.get(e);r?r.push(n):r=[n],t.set(e,r)},off:function(e,n){var r=t.get(e);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(e,n){var r=t.get(e);r&&r.slice().map((function(t){t(n)}))}}},t.HelperSet=$,t.ObjectUtils=P,t.UniqueComponentId=function(){return q++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pv_id_").concat(q)},t.ZIndexUtils=et,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
package/vetur-attributes.json
CHANGED
|
@@ -4399,6 +4399,10 @@
|
|
|
4399
4399
|
"description": "An array of treenodes.",
|
|
4400
4400
|
"type": "array"
|
|
4401
4401
|
},
|
|
4402
|
+
"treetable/dataKey": {
|
|
4403
|
+
"description": "Name of the field that uniquely identifies the a record in the data.",
|
|
4404
|
+
"type": "string|function"
|
|
4405
|
+
},
|
|
4402
4406
|
"treetable/expandedKeys": {
|
|
4403
4407
|
"description": "A map of keys to represent the state of the tree expansion state in controlled mode.",
|
|
4404
4408
|
"type": "array"
|
package/vetur-tags.json
CHANGED
|
@@ -83,8 +83,10 @@ export default {
|
|
|
83
83
|
numToleratedItems(newValue) {
|
|
84
84
|
this.d_numToleratedItems = newValue;
|
|
85
85
|
},
|
|
86
|
-
loading(newValue) {
|
|
87
|
-
this.
|
|
86
|
+
loading(newValue, oldValue) {
|
|
87
|
+
if (this.lazy && newValue !== oldValue && newValue !== this.d_loading) {
|
|
88
|
+
this.d_loading = newValue;
|
|
89
|
+
}
|
|
88
90
|
},
|
|
89
91
|
items(newValue, oldValue) {
|
|
90
92
|
if (!oldValue || oldValue.length !== (newValue || []).length) {
|
|
@@ -506,26 +508,28 @@ export default {
|
|
|
506
508
|
onScroll(event) {
|
|
507
509
|
this.$emit('scroll', event);
|
|
508
510
|
|
|
509
|
-
if (this.delay
|
|
511
|
+
if (this.delay) {
|
|
510
512
|
if (this.scrollTimeout) {
|
|
511
513
|
clearTimeout(this.scrollTimeout);
|
|
512
514
|
}
|
|
513
515
|
|
|
514
|
-
if (
|
|
515
|
-
|
|
516
|
-
|
|
516
|
+
if (this.isPageChanged()) {
|
|
517
|
+
if (!this.d_loading && this.showLoader) {
|
|
518
|
+
const { isRangeChanged } = this.onScrollPositionChange(event);
|
|
519
|
+
const changed = isRangeChanged || (this.step ? this.isPageChanged() : false);
|
|
517
520
|
|
|
518
|
-
|
|
519
|
-
|
|
521
|
+
changed && (this.d_loading = true);
|
|
522
|
+
}
|
|
520
523
|
|
|
521
|
-
|
|
522
|
-
|
|
524
|
+
this.scrollTimeout = setTimeout(() => {
|
|
525
|
+
this.onScrollChange(event);
|
|
523
526
|
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
527
|
+
if (this.d_loading && this.showLoader && (!this.lazy || this.loading === undefined)) {
|
|
528
|
+
this.d_loading = false;
|
|
529
|
+
this.page = this.getPageByFirst();
|
|
530
|
+
}
|
|
531
|
+
}, this.delay);
|
|
532
|
+
}
|
|
529
533
|
} else {
|
|
530
534
|
this.onScrollChange(event);
|
|
531
535
|
}
|
|
@@ -6,7 +6,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
6
6
|
|
|
7
7
|
var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
|
|
8
8
|
|
|
9
|
-
var css = "\n.p-virtualscroller {\n
|
|
9
|
+
var css = "\n@layer primevue {\n .p-virtualscroller {\n position: relative;\n overflow: auto;\n contain: strict;\n transform: translateZ(0);\n will-change: scroll-position;\n outline: 0 none;\n }\n\n .p-virtualscroller-content {\n position: absolute;\n top: 0;\n left: 0;\n /* contain: content; */\n min-height: 100%;\n min-width: 100%;\n will-change: transform;\n }\n\n .p-virtualscroller-spacer {\n position: absolute;\n top: 0;\n left: 0;\n height: 1px;\n width: 1px;\n transform-origin: 0 0;\n pointer-events: none;\n }\n\n .p-virtualscroller .p-virtualscroller-loader {\n position: sticky;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-virtualscroller-loader.p-component-overlay {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .p-virtualscroller-loading-icon {\n font-size: 2rem;\n }\n\n .p-virtualscroller-loading-icon.p-icon {\n width: 2rem;\n height: 2rem;\n }\n\n .p-virtualscroller-horizontal > .p-virtualscroller-content {\n display: flex;\n }\n\n /* Inline */\n .p-virtualscroller-inline .p-virtualscroller-content {\n position: static;\n }\n}\n";
|
|
10
10
|
var VirtualScrollerStyle = BaseStyle__default["default"].extend({
|
|
11
11
|
name: 'virtualscroller',
|
|
12
12
|
css: css
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function n(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var t=n(require("primevue/base/style")).default.extend({name:"virtualscroller",css:"\n.p-virtualscroller {\n
|
|
1
|
+
"use strict";function n(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var t=n(require("primevue/base/style")).default.extend({name:"virtualscroller",css:"\n@layer primevue {\n .p-virtualscroller {\n position: relative;\n overflow: auto;\n contain: strict;\n transform: translateZ(0);\n will-change: scroll-position;\n outline: 0 none;\n }\n\n .p-virtualscroller-content {\n position: absolute;\n top: 0;\n left: 0;\n /* contain: content; */\n min-height: 100%;\n min-width: 100%;\n will-change: transform;\n }\n\n .p-virtualscroller-spacer {\n position: absolute;\n top: 0;\n left: 0;\n height: 1px;\n width: 1px;\n transform-origin: 0 0;\n pointer-events: none;\n }\n\n .p-virtualscroller .p-virtualscroller-loader {\n position: sticky;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-virtualscroller-loader.p-component-overlay {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .p-virtualscroller-loading-icon {\n font-size: 2rem;\n }\n\n .p-virtualscroller-loading-icon.p-icon {\n width: 2rem;\n height: 2rem;\n }\n\n .p-virtualscroller-horizontal > .p-virtualscroller-content {\n display: flex;\n }\n\n /* Inline */\n .p-virtualscroller-inline .p-virtualscroller-content {\n position: static;\n }\n}\n"});module.exports=t;
|