primevue 3.36.0 → 3.38.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.cjs.js +2 -2
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +2 -2
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +2 -2
- package/accordion/accordion.min.js +1 -1
- package/animateonscroll/animateonscroll.cjs.js +132 -0
- package/animateonscroll/animateonscroll.cjs.min.js +1 -0
- package/animateonscroll/animateonscroll.esm.js +126 -0
- package/animateonscroll/animateonscroll.esm.min.js +1 -0
- package/animateonscroll/animateonscroll.js +133 -0
- package/animateonscroll/animateonscroll.min.js +1 -0
- package/animateonscroll/style/animateonscrollstyle.cjs.js +5 -0
- package/animateonscroll/style/animateonscrollstyle.cjs.min.js +1 -0
- package/animateonscroll/style/animateonscrollstyle.esm.js +3 -0
- package/animateonscroll/style/animateonscrollstyle.esm.min.js +1 -0
- package/animateonscroll/style/animateonscrollstyle.js +10 -0
- package/animateonscroll/style/animateonscrollstyle.min.js +1 -0
- package/autocomplete/autocomplete.cjs.js +1 -1
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +1 -1
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/basedirective/basedirective.cjs.js +3 -1
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +3 -1
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +3 -1
- package/basedirective/basedirective.min.js +1 -1
- package/calendar/calendar.cjs.js +43 -42
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +43 -42
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +43 -42
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +5 -0
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +5 -0
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +5 -0
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +1 -1
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +1 -1
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +1 -1
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/config/config.cjs.js +15 -13
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +15 -13
- package/config/config.esm.min.js +1 -1
- package/config/config.js +15 -13
- package/config/config.min.js +1 -1
- package/confirmpopup/style/confirmpopupstyle.cjs.js +2 -2
- package/confirmpopup/style/confirmpopupstyle.cjs.min.js +1 -1
- package/confirmpopup/style/confirmpopupstyle.esm.js +2 -2
- package/confirmpopup/style/confirmpopupstyle.esm.min.js +1 -1
- package/confirmpopup/style/confirmpopupstyle.js +2 -2
- package/confirmpopup/style/confirmpopupstyle.min.js +1 -1
- 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 +479 -402
- package/core/core.min.js +15 -13
- package/dropdown/dropdown.cjs.js +1 -1
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +1 -1
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +1 -1
- package/dropdown/dropdown.min.js +1 -1
- package/fileupload/fileupload.cjs.js +1 -2
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +1 -2
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +1 -2
- package/fileupload/fileupload.min.js +1 -1
- package/listbox/listbox.cjs.js +1 -1
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +1 -1
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +1 -1
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +4 -3
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +4 -3
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +4 -3
- package/megamenu/megamenu.min.js +1 -1
- package/megamenu/style/megamenustyle.cjs.js +1 -0
- package/megamenu/style/megamenustyle.cjs.min.js +1 -1
- package/megamenu/style/megamenustyle.esm.js +1 -0
- package/megamenu/style/megamenustyle.esm.min.js +1 -1
- package/megamenu/style/megamenustyle.js +1 -0
- package/megamenu/style/megamenustyle.min.js +1 -1
- package/menu/menu.cjs.js +3 -2
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +3 -2
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +3 -2
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +1 -0
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +1 -0
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +1 -0
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +7 -0
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +7 -0
- package/message/message.esm.min.js +1 -1
- package/message/message.js +7 -0
- package/message/message.min.js +1 -1
- package/multiselect/multiselect.cjs.js +5 -4
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +5 -4
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +5 -4
- package/multiselect/multiselect.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +25 -0
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +25 -0
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +25 -0
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +20 -3
- package/panelmenu/panelmenu.cjs.js +20 -5
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +20 -5
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +21 -6
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +397 -371
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +397 -371
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +397 -371
- package/passthrough/tailwind/index.min.js +1 -1
- package/picklist/picklist.cjs.js +2 -2
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +2 -2
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +2 -2
- package/picklist/picklist.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +3 -2
- package/resources/themes/arya-green/theme.css +3 -2
- package/resources/themes/arya-orange/theme.css +3 -2
- package/resources/themes/arya-purple/theme.css +3 -2
- package/resources/themes/bootstrap4-dark-blue/theme.css +3 -2
- package/resources/themes/bootstrap4-dark-purple/theme.css +3 -2
- package/resources/themes/bootstrap4-light-blue/theme.css +3 -2
- package/resources/themes/bootstrap4-light-purple/theme.css +3 -2
- package/resources/themes/fluent-light/theme.css +3 -2
- package/resources/themes/lara-dark-blue/theme.css +678 -651
- package/resources/themes/lara-dark-indigo/theme.css +678 -651
- package/resources/themes/lara-dark-purple/theme.css +678 -651
- package/resources/themes/lara-dark-teal/theme.css +678 -651
- package/resources/themes/lara-light-blue/theme.css +645 -626
- package/resources/themes/lara-light-indigo/theme.css +645 -626
- package/resources/themes/lara-light-purple/theme.css +645 -626
- package/resources/themes/lara-light-teal/theme.css +895 -876
- package/resources/themes/luna-amber/theme.css +3 -2
- package/resources/themes/luna-blue/theme.css +3 -2
- package/resources/themes/luna-green/theme.css +3 -2
- package/resources/themes/luna-pink/theme.css +3 -2
- package/resources/themes/md-dark-deeppurple/theme.css +3 -2
- package/resources/themes/md-dark-indigo/theme.css +3 -2
- package/resources/themes/md-light-deeppurple/theme.css +3 -2
- package/resources/themes/md-light-indigo/theme.css +3 -2
- package/resources/themes/mdc-dark-deeppurple/theme.css +3 -2
- package/resources/themes/mdc-dark-indigo/theme.css +3 -2
- package/resources/themes/mdc-light-deeppurple/theme.css +3 -2
- package/resources/themes/mdc-light-indigo/theme.css +3 -2
- package/resources/themes/mira/theme.css +8 -2
- package/resources/themes/nano/theme.css +9 -2
- package/resources/themes/nova/theme.css +3 -2
- package/resources/themes/nova-accent/theme.css +3 -2
- package/resources/themes/nova-alt/theme.css +3 -2
- package/resources/themes/nova-vue/theme.css +3 -2
- package/resources/themes/rhea/theme.css +3 -2
- package/resources/themes/saga-blue/theme.css +3 -2
- package/resources/themes/saga-green/theme.css +3 -2
- package/resources/themes/saga-orange/theme.css +3 -2
- package/resources/themes/saga-purple/theme.css +3 -2
- package/resources/themes/soho-dark/theme.css +12 -2
- package/resources/themes/soho-light/theme.css +8 -2
- package/resources/themes/tailwind-light/theme.css +3 -2
- package/resources/themes/vela-blue/theme.css +3 -2
- package/resources/themes/vela-green/theme.css +3 -2
- package/resources/themes/vela-orange/theme.css +3 -2
- package/resources/themes/vela-purple/theme.css +3 -2
- package/resources/themes/viva-dark/theme.css +3 -2
- package/resources/themes/viva-light/theme.css +3 -2
- package/scrollpanel/scrollpanel.cjs.js +30 -28
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +30 -28
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +30 -28
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +2 -2
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +2 -2
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +2 -2
- package/selectbutton/selectbutton.min.js +1 -1
- package/slider/slider.cjs.js +1 -1
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +1 -1
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +1 -1
- package/slider/slider.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +3 -1
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +3 -1
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +3 -1
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +6 -4
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +6 -4
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +6 -4
- package/splitter/splitter.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +2 -1
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +2 -1
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +2 -1
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/tooltip/style/tooltipstyle.cjs.js +1 -1
- package/tooltip/style/tooltipstyle.cjs.min.js +1 -1
- package/tooltip/style/tooltipstyle.esm.js +1 -1
- package/tooltip/style/tooltipstyle.esm.min.js +1 -1
- package/tooltip/style/tooltipstyle.js +1 -1
- package/tooltip/style/tooltipstyle.min.js +1 -1
- package/tooltip/tooltip.cjs.js +15 -1
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +15 -1
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +15 -1
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +1 -1
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +1 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +1 -1
- package/tree/tree.min.js +1 -1
- package/utils/utils.cjs.js +20 -8
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +20 -8
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +20 -8
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +4 -0
- package/vetur-tags.json +1 -0
- package/web-types.json +28 -1
- package/LICENSE.md +0 -21
- package/README.md +0 -143
- package/accordion/Accordion.d.ts +0 -225
- package/accordion/Accordion.vue +0 -253
- package/accordion/BaseAccordion.vue +0 -45
- package/accordion/package.json +0 -9
- package/accordion/style/AccordionStyle.d.ts +0 -3
- package/accordion/style/package.json +0 -6
- package/accordiontab/AccordionTab.d.ts +0 -226
- package/accordiontab/AccordionTab.vue +0 -12
- package/accordiontab/BaseAccordionTab.vue +0 -26
- package/accordiontab/package.json +0 -9
- package/accordiontab/style/AccordionTabStyle.d.ts +0 -3
- package/accordiontab/style/package.json +0 -6
- package/api/Api.d.ts +0 -325
- package/api/package.json +0 -6
- package/autocomplete/AutoComplete.d.ts +0 -734
- package/autocomplete/AutoComplete.vue +0 -948
- package/autocomplete/BaseAutoComplete.vue +0 -176
- package/autocomplete/package.json +0 -9
- package/autocomplete/style/AutoCompleteStyle.d.ts +0 -3
- package/autocomplete/style/package.json +0 -6
- package/avatar/Avatar.d.ts +0 -169
- package/avatar/Avatar.vue +0 -32
- package/avatar/BaseAvatar.vue +0 -45
- package/avatar/package.json +0 -9
- package/avatar/style/AvatarStyle.d.ts +0 -3
- package/avatar/style/package.json +0 -6
- package/avatargroup/AvatarGroup.d.ts +0 -89
- package/avatargroup/AvatarGroup.vue +0 -14
- package/avatargroup/BaseAvatarGroup.vue +0 -15
- package/avatargroup/package.json +0 -9
- package/avatargroup/style/AvatarGroupStyle.d.ts +0 -3
- package/avatargroup/style/package.json +0 -6
- package/badge/Badge.d.ts +0 -125
- package/badge/Badge.vue +0 -14
- package/badge/BaseBadge.vue +0 -29
- package/badge/package.json +0 -9
- package/badge/style/BadgeStyle.d.ts +0 -3
- package/badge/style/package.json +0 -6
- package/badgedirective/BadgeDirective.d.ts +0 -158
- package/badgedirective/package.json +0 -6
- package/badgedirective/style/BadgeDirectiveStyle.d.ts +0 -3
- package/badgedirective/style/package.json +0 -6
- package/base/package.json +0 -5
- package/base/style/BaseStyle.d.ts +0 -10
- package/base/style/package.json +0 -6
- package/basecomponent/BaseComponent.d.ts +0 -23
- package/basecomponent/BaseComponent.vue +0 -218
- package/basecomponent/package.json +0 -9
- package/basecomponent/style/BaseComponentStyle.d.ts +0 -3
- package/basecomponent/style/package.json +0 -6
- package/basedirective/BaseDirective.d.ts +0 -38
- package/basedirective/package.json +0 -6
- package/baseicon/BaseIcon.vue +0 -43
- package/baseicon/package.json +0 -8
- package/baseicon/style/BaseIconStyle.d.ts +0 -3
- package/baseicon/style/package.json +0 -6
- package/blockui/BaseBlockUI.vue +0 -33
- package/blockui/BlockUI.d.ts +0 -161
- package/blockui/BlockUI.vue +0 -104
- package/blockui/package.json +0 -9
- package/blockui/style/BlockUIStyle.d.ts +0 -3
- package/blockui/style/package.json +0 -6
- package/breadcrumb/BaseBreadcrumb.vue +0 -29
- package/breadcrumb/Breadcrumb.d.ts +0 -232
- package/breadcrumb/Breadcrumb.vue +0 -35
- package/breadcrumb/BreadcrumbItem.vue +0 -99
- package/breadcrumb/package.json +0 -9
- package/breadcrumb/style/BreadcrumbStyle.d.ts +0 -3
- package/breadcrumb/style/package.json +0 -6
- package/button/BaseButton.vue +0 -81
- package/button/Button.d.ts +0 -248
- package/button/Button.vue +0 -58
- package/button/package.json +0 -9
- package/button/style/ButtonStyle.d.ts +0 -3
- package/button/style/package.json +0 -6
- package/calendar/BaseCalendar.vue +0 -231
- package/calendar/Calendar.d.ts +0 -888
- package/calendar/Calendar.vue +0 -2955
- package/calendar/package.json +0 -9
- package/calendar/style/CalendarStyle.d.ts +0 -3
- package/calendar/style/package.json +0 -6
- package/card/BaseCard.vue +0 -10
- package/card/Card.d.ts +0 -135
- package/card/Card.vue +0 -30
- package/card/package.json +0 -9
- package/card/style/CardStyle.d.ts +0 -3
- package/card/style/package.json +0 -6
- package/carousel/BaseCarousel.vue +0 -66
- package/carousel/Carousel.d.ts +0 -374
- package/carousel/Carousel.vue +0 -630
- package/carousel/package.json +0 -9
- package/carousel/style/CarouselStyle.d.ts +0 -3
- package/carousel/style/package.json +0 -6
- package/cascadeselect/BaseCascadeSelect.vue +0 -119
- package/cascadeselect/CascadeSelect.d.ts +0 -473
- package/cascadeselect/CascadeSelect.vue +0 -741
- package/cascadeselect/CascadeSelectSub.vue +0 -143
- package/cascadeselect/package.json +0 -9
- package/cascadeselect/style/CascadeSelectStyle.d.ts +0 -3
- package/cascadeselect/style/package.json +0 -6
- package/chart/BaseChart.vue +0 -33
- package/chart/Chart.d.ts +0 -195
- package/chart/Chart.vue +0 -96
- package/chart/package.json +0 -9
- package/chart/style/ChartStyle.d.ts +0 -3
- package/chart/style/package.json +0 -6
- package/checkbox/BaseCheckbox.vue +0 -72
- package/checkbox/Checkbox.d.ts +0 -271
- package/checkbox/Checkbox.vue +0 -90
- package/checkbox/package.json +0 -9
- package/checkbox/style/CheckboxStyle.d.ts +0 -3
- package/checkbox/style/package.json +0 -6
- package/chip/BaseChip.vue +0 -37
- package/chip/Chip.d.ts +0 -193
- package/chip/Chip.vue +0 -43
- package/chip/package.json +0 -9
- package/chip/style/ChipStyle.d.ts +0 -3
- package/chip/style/package.json +0 -6
- package/chips/BaseChips.vue +0 -73
- package/chips/Chips.d.ts +0 -286
- package/chips/Chips.vue +0 -256
- package/chips/package.json +0 -9
- package/chips/style/ChipsStyle.d.ts +0 -3
- package/chips/style/package.json +0 -6
- package/colorpicker/BaseColorPicker.vue +0 -54
- package/colorpicker/ColorPicker.d.ts +0 -240
- package/colorpicker/ColorPicker.vue +0 -649
- package/colorpicker/package.json +0 -9
- package/colorpicker/style/ColorPickerStyle.d.ts +0 -3
- package/colorpicker/style/package.json +0 -6
- package/column/BaseColumn.vue +0 -193
- package/column/Column.d.ts +0 -999
- package/column/Column.vue +0 -11
- package/column/package.json +0 -9
- package/column/style/ColumnStyle.d.ts +0 -3
- package/column/style/package.json +0 -6
- package/columngroup/BaseColumnGroup.vue +0 -21
- package/columngroup/ColumnGroup.d.ts +0 -133
- package/columngroup/ColumnGroup.vue +0 -11
- package/columngroup/package.json +0 -9
- package/columngroup/style/ColumnGroupStyle.d.ts +0 -3
- package/columngroup/style/package.json +0 -6
- package/config/PrimeVue.d.ts +0 -374
- package/config/package.json +0 -6
- package/confirmationeventbus/package.json +0 -5
- package/confirmationoptions/ConfirmationOptions.d.ts +0 -84
- package/confirmationoptions/package.json +0 -3
- package/confirmationservice/ConfirmationService.d.ts +0 -40
- package/confirmationservice/package.json +0 -6
- package/confirmdialog/BaseConfirmDialog.vue +0 -26
- package/confirmdialog/ConfirmDialog.d.ts +0 -262
- package/confirmdialog/ConfirmDialog.vue +0 -162
- package/confirmdialog/package.json +0 -9
- package/confirmdialog/style/ConfirmDialogStyle.d.ts +0 -3
- package/confirmdialog/style/package.json +0 -6
- package/confirmpopup/BaseConfirmPopup.vue +0 -18
- package/confirmpopup/ConfirmPopup.d.ts +0 -212
- package/confirmpopup/ConfirmPopup.vue +0 -321
- package/confirmpopup/package.json +0 -9
- package/confirmpopup/style/ConfirmPopupStyle.d.ts +0 -3
- package/confirmpopup/style/package.json +0 -6
- package/contextmenu/BaseContextMenu.vue +0 -53
- package/contextmenu/ContextMenu.d.ts +0 -393
- package/contextmenu/ContextMenu.vue +0 -594
- package/contextmenu/ContextMenuSub.vue +0 -241
- package/contextmenu/package.json +0 -9
- package/contextmenu/style/ContextMenuStyle.d.ts +0 -3
- package/contextmenu/style/package.json +0 -6
- package/datatable/BaseDataTable.vue +0 -281
- package/datatable/BodyCell.vue +0 -538
- package/datatable/ColumnFilter.vue +0 -720
- package/datatable/DataTable.d.ts +0 -1499
- package/datatable/DataTable.vue +0 -2105
- package/datatable/FooterCell.vue +0 -103
- package/datatable/HeaderCell.vue +0 -365
- package/datatable/HeaderCheckbox.vue +0 -94
- package/datatable/RowCheckbox.vue +0 -114
- package/datatable/RowRadioButton.vue +0 -79
- package/datatable/TableBody.vue +0 -639
- package/datatable/TableFooter.vue +0 -136
- package/datatable/TableHeader.vue +0 -336
- package/datatable/package.json +0 -9
- package/datatable/style/DataTableStyle.d.ts +0 -3
- package/datatable/style/package.json +0 -6
- package/dataview/BaseDataView.vue +0 -81
- package/dataview/DataView.d.ts +0 -337
- package/dataview/DataView.vue +0 -170
- package/dataview/package.json +0 -9
- package/dataview/style/DataViewStyle.d.ts +0 -3
- package/dataview/style/package.json +0 -6
- package/dataviewlayoutoptions/BaseDataViewLayoutOptions.vue +0 -18
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +0 -169
- package/dataviewlayoutoptions/DataViewLayoutOptions.vue +0 -57
- package/dataviewlayoutoptions/package.json +0 -9
- package/dataviewlayoutoptions/style/DataViewLayoutOptionsStyle.d.ts +0 -3
- package/dataviewlayoutoptions/style/package.json +0 -6
- package/deferredcontent/DeferredContent.d.ts +0 -133
- package/deferredcontent/DeferredContent.vue +0 -64
- package/deferredcontent/package.json +0 -9
- package/deferredcontent/style/DeferredContentStyle.d.ts +0 -3
- package/deferredcontent/style/package.json +0 -6
- package/dialog/BaseDialog.vue +0 -126
- package/dialog/Dialog.d.ts +0 -409
- package/dialog/Dialog.vue +0 -406
- package/dialog/package.json +0 -9
- package/dialog/style/DialogStyle.d.ts +0 -3
- package/dialog/style/package.json +0 -6
- package/dialogservice/DialogService.d.ts +0 -38
- package/dialogservice/package.json +0 -6
- package/divider/BaseDivider.vue +0 -29
- package/divider/Divider.d.ts +0 -129
- package/divider/Divider.vue +0 -16
- package/divider/package.json +0 -9
- package/divider/style/DividerStyle.d.ts +0 -3
- package/divider/style/package.json +0 -6
- package/dock/BaseDock.vue +0 -45
- package/dock/Dock.d.ts +0 -306
- package/dock/Dock.vue +0 -40
- package/dock/DockSub.vue +0 -309
- package/dock/package.json +0 -9
- package/dock/style/DockStyle.d.ts +0 -3
- package/dock/style/package.json +0 -6
- package/dropdown/BaseDropdown.vue +0 -165
- package/dropdown/Dropdown.d.ts +0 -711
- package/dropdown/Dropdown.vue +0 -929
- package/dropdown/package.json +0 -9
- package/dropdown/style/DropdownStyle.d.ts +0 -3
- package/dropdown/style/package.json +0 -6
- package/dynamicdialog/BaseDynamicDialog.vue +0 -16
- package/dynamicdialog/DynamicDialog.d.ts +0 -52
- package/dynamicdialog/DynamicDialog.vue +0 -77
- package/dynamicdialog/package.json +0 -9
- package/dynamicdialog/style/AccordionStyle.d.ts +0 -3
- package/dynamicdialog/style/package.json +0 -6
- package/dynamicdialogeventbus/package.json +0 -5
- package/dynamicdialogoptions/DynamicDialogOptions.d.ts +0 -93
- package/dynamicdialogoptions/package.json +0 -3
- package/editor/BaseEditor.vue +0 -26
- package/editor/Editor.d.ts +0 -306
- package/editor/Editor.vue +0 -171
- package/editor/package.json +0 -9
- package/editor/style/EditorStyle.d.ts +0 -3
- package/editor/style/package.json +0 -6
- package/fieldset/BaseFieldset.vue +0 -24
- package/fieldset/Fieldset.d.ts +0 -212
- package/fieldset/Fieldset.vue +0 -91
- package/fieldset/package.json +0 -9
- package/fieldset/style/FieldsetStyle.d.ts +0 -3
- package/fieldset/style/package.json +0 -6
- package/fileupload/BaseFileUpload.vue +0 -111
- package/fileupload/FileContent.vue +0 -75
- package/fileupload/FileUpload.d.ts +0 -609
- package/fileupload/FileUpload.vue +0 -415
- package/fileupload/package.json +0 -9
- package/fileupload/style/FileUploadStyle.d.ts +0 -3
- package/fileupload/style/package.json +0 -6
- package/focustrap/FocusTrap.d.ts +0 -95
- package/focustrap/package.json +0 -6
- package/focustrap/style/FocusTrapStyle.d.ts +0 -3
- package/focustrap/style/package.json +0 -6
- package/galleria/BaseGalleria.vue +0 -125
- package/galleria/Galleria.d.ts +0 -519
- package/galleria/Galleria.vue +0 -95
- package/galleria/GalleriaContent.vue +0 -153
- package/galleria/GalleriaItem.vue +0 -201
- package/galleria/GalleriaThumbnails.vue +0 -537
- package/galleria/package.json +0 -9
- package/galleria/style/GalleriaStyle.d.ts +0 -3
- package/galleria/style/package.json +0 -6
- package/icons/angledoubledown/index.d.ts +0 -12
- package/icons/angledoubledown/index.vue +0 -18
- package/icons/angledoubledown/package.json +0 -9
- package/icons/angledoubleleft/index.d.ts +0 -12
- package/icons/angledoubleleft/index.vue +0 -18
- package/icons/angledoubleleft/package.json +0 -9
- package/icons/angledoubleright/index.d.ts +0 -12
- package/icons/angledoubleright/index.vue +0 -18
- package/icons/angledoubleright/package.json +0 -9
- package/icons/angledoubleup/index.d.ts +0 -12
- package/icons/angledoubleup/index.vue +0 -18
- package/icons/angledoubleup/package.json +0 -9
- package/icons/angledown/index.d.ts +0 -12
- package/icons/angledown/index.vue +0 -16
- package/icons/angledown/package.json +0 -9
- package/icons/angleleft/index.d.ts +0 -12
- package/icons/angleleft/index.vue +0 -16
- package/icons/angleleft/package.json +0 -9
- package/icons/angleright/index.d.ts +0 -12
- package/icons/angleright/index.vue +0 -16
- package/icons/angleright/package.json +0 -9
- package/icons/angleup/index.d.ts +0 -12
- package/icons/angleup/index.vue +0 -16
- package/icons/angleup/package.json +0 -9
- package/icons/arrowdown/index.d.ts +0 -12
- package/icons/arrowdown/index.vue +0 -32
- package/icons/arrowdown/package.json +0 -9
- package/icons/arrowup/index.d.ts +0 -12
- package/icons/arrowup/index.vue +0 -32
- package/icons/arrowup/package.json +0 -9
- package/icons/ban/index.d.ts +0 -12
- package/icons/ban/index.vue +0 -30
- package/icons/ban/package.json +0 -9
- package/icons/bars/index.d.ts +0 -12
- package/icons/bars/index.vue +0 -18
- package/icons/bars/package.json +0 -9
- package/icons/calendar/index.d.ts +0 -12
- package/icons/calendar/index.vue +0 -16
- package/icons/calendar/package.json +0 -9
- package/icons/check/index.d.ts +0 -12
- package/icons/check/index.vue +0 -16
- package/icons/check/package.json +0 -9
- package/icons/chevrondown/index.d.ts +0 -12
- package/icons/chevrondown/index.vue +0 -16
- package/icons/chevrondown/package.json +0 -9
- package/icons/chevronleft/index.d.ts +0 -12
- package/icons/chevronleft/index.vue +0 -16
- package/icons/chevronleft/package.json +0 -9
- package/icons/chevronright/index.d.ts +0 -12
- package/icons/chevronright/index.vue +0 -16
- package/icons/chevronright/package.json +0 -9
- package/icons/chevronup/index.d.ts +0 -12
- package/icons/chevronup/index.vue +0 -16
- package/icons/chevronup/package.json +0 -9
- package/icons/exclamationtriangle/index.d.ts +0 -12
- package/icons/exclamationtriangle/index.vue +0 -38
- package/icons/exclamationtriangle/package.json +0 -9
- package/icons/eye/index.d.ts +0 -12
- package/icons/eye/index.vue +0 -18
- package/icons/eye/package.json +0 -9
- package/icons/eyeslash/index.d.ts +0 -12
- package/icons/eyeslash/index.vue +0 -32
- package/icons/eyeslash/package.json +0 -9
- package/icons/filter/index.d.ts +0 -12
- package/icons/filter/index.vue +0 -30
- package/icons/filter/package.json +0 -9
- package/icons/filterslash/index.d.ts +0 -12
- package/icons/filterslash/index.vue +0 -32
- package/icons/filterslash/package.json +0 -9
- package/icons/index.d.ts +0 -12
- package/icons/infocircle/index.d.ts +0 -12
- package/icons/infocircle/index.vue +0 -32
- package/icons/infocircle/package.json +0 -9
- package/icons/minus/index.d.ts +0 -12
- package/icons/minus/index.vue +0 -16
- package/icons/minus/package.json +0 -9
- package/icons/pencil/index.d.ts +0 -12
- package/icons/pencil/index.vue +0 -30
- package/icons/pencil/package.json +0 -9
- package/icons/plus/index.d.ts +0 -12
- package/icons/plus/index.vue +0 -30
- package/icons/plus/package.json +0 -9
- package/icons/refresh/index.d.ts +0 -12
- package/icons/refresh/index.vue +0 -32
- package/icons/refresh/package.json +0 -9
- package/icons/search/index.d.ts +0 -12
- package/icons/search/index.vue +0 -32
- package/icons/search/package.json +0 -9
- package/icons/searchminus/index.d.ts +0 -12
- package/icons/searchminus/index.vue +0 -32
- package/icons/searchminus/package.json +0 -9
- package/icons/searchplus/index.d.ts +0 -12
- package/icons/searchplus/index.vue +0 -32
- package/icons/searchplus/package.json +0 -9
- package/icons/sortalt/index.d.ts +0 -12
- package/icons/sortalt/index.vue +0 -36
- package/icons/sortalt/package.json +0 -9
- package/icons/sortamountdown/index.d.ts +0 -12
- package/icons/sortamountdown/index.vue +0 -50
- package/icons/sortamountdown/package.json +0 -9
- package/icons/sortamountupalt/index.d.ts +0 -12
- package/icons/sortamountupalt/index.vue +0 -50
- package/icons/sortamountupalt/package.json +0 -9
- package/icons/spinner/index.d.ts +0 -12
- package/icons/spinner/index.vue +0 -30
- package/icons/spinner/package.json +0 -9
- package/icons/star/index.d.ts +0 -12
- package/icons/star/index.vue +0 -30
- package/icons/star/package.json +0 -9
- package/icons/starfill/index.d.ts +0 -12
- package/icons/starfill/index.vue +0 -30
- package/icons/starfill/package.json +0 -9
- package/icons/thlarge/index.d.ts +0 -12
- package/icons/thlarge/index.vue +0 -32
- package/icons/thlarge/package.json +0 -9
- package/icons/times/index.d.ts +0 -12
- package/icons/times/index.vue +0 -16
- package/icons/times/package.json +0 -9
- package/icons/timescircle/index.d.ts +0 -12
- package/icons/timescircle/index.vue +0 -32
- package/icons/timescircle/package.json +0 -9
- package/icons/trash/index.d.ts +0 -12
- package/icons/trash/index.vue +0 -32
- package/icons/trash/package.json +0 -9
- package/icons/undo/index.d.ts +0 -12
- package/icons/undo/index.vue +0 -32
- package/icons/undo/package.json +0 -9
- package/icons/upload/index.d.ts +0 -12
- package/icons/upload/index.vue +0 -32
- package/icons/upload/package.json +0 -9
- package/icons/windowmaximize/index.d.ts +0 -12
- package/icons/windowmaximize/index.vue +0 -32
- package/icons/windowmaximize/package.json +0 -9
- package/icons/windowminimize/index.d.ts +0 -12
- package/icons/windowminimize/index.vue +0 -32
- package/icons/windowminimize/package.json +0 -9
- package/image/BaseImage.vue +0 -53
- package/image/Image.d.ts +0 -318
- package/image/Image.vue +0 -232
- package/image/package.json +0 -9
- package/image/style/ImageStyle.d.ts +0 -3
- package/image/style/package.json +0 -6
- package/inlinemessage/BaseInlineMessage.vue +0 -25
- package/inlinemessage/InlineMessage.d.ts +0 -147
- package/inlinemessage/InlineMessage.vue +0 -46
- package/inlinemessage/package.json +0 -9
- package/inlinemessage/style/InlineMessageStyle.d.ts +0 -3
- package/inlinemessage/style/package.json +0 -6
- package/inplace/BaseInplace.vue +0 -41
- package/inplace/Inplace.d.ts +0 -195
- package/inplace/Inplace.vue +0 -71
- package/inplace/package.json +0 -9
- package/inplace/style/InplaceStyle.d.ts +0 -3
- package/inplace/style/package.json +0 -6
- package/inputmask/BaseInputMask.vue +0 -33
- package/inputmask/InputMask.d.ts +0 -186
- package/inputmask/InputMask.vue +0 -512
- package/inputmask/package.json +0 -9
- package/inputmask/style/InputMaskStyle.d.ts +0 -3
- package/inputmask/style/package.json +0 -6
- package/inputnumber/BaseInputNumber.vue +0 -153
- package/inputnumber/InputNumber.d.ts +0 -369
- package/inputnumber/InputNumber.vue +0 -1004
- package/inputnumber/package.json +0 -9
- package/inputnumber/style/InputNumberStyle.d.ts +0 -3
- package/inputnumber/style/package.json +0 -6
- package/inputswitch/BaseInputSwitch.vue +0 -57
- package/inputswitch/InputSwitch.d.ts +0 -198
- package/inputswitch/InputSwitch.vue +0 -64
- package/inputswitch/package.json +0 -9
- package/inputswitch/style/InputSwitchStyle.d.ts +0 -3
- package/inputswitch/style/package.json +0 -6
- package/inputtext/BaseInputText.vue +0 -22
- package/inputtext/InputText.d.ts +0 -142
- package/inputtext/InputText.vue +0 -31
- package/inputtext/package.json +0 -9
- package/inputtext/style/InputTextStyle.d.ts +0 -3
- package/inputtext/style/package.json +0 -6
- package/knob/BaseKnob.vue +0 -81
- package/knob/Knob.d.ts +0 -243
- package/knob/Knob.vue +0 -219
- package/knob/package.json +0 -9
- package/knob/style/KnobStyle.d.ts +0 -3
- package/knob/style/package.json +0 -6
- package/listbox/BaseListbox.vue +0 -89
- package/listbox/Listbox.d.ts +0 -521
- package/listbox/Listbox.vue +0 -717
- package/listbox/package.json +0 -9
- package/listbox/style/ListboxStyle.d.ts +0 -3
- package/listbox/style/package.json +0 -6
- package/megamenu/BaseMegaMenu.vue +0 -45
- package/megamenu/MegaMenu.d.ts +0 -364
- package/megamenu/MegaMenu.vue +0 -590
- package/megamenu/MegaMenuSub.vue +0 -235
- package/megamenu/package.json +0 -9
- package/megamenu/style/MegaMenuStyle.d.ts +0 -3
- package/megamenu/style/package.json +0 -6
- package/menu/BaseMenu.vue +0 -53
- package/menu/Menu.d.ts +0 -354
- package/menu/Menu.vue +0 -373
- package/menu/Menuitem.vue +0 -117
- package/menu/package.json +0 -9
- package/menu/style/MenuStyle.d.ts +0 -3
- package/menu/style/package.json +0 -6
- package/menubar/BaseMenubar.vue +0 -37
- package/menubar/Menubar.d.ts +0 -356
- package/menubar/Menubar.vue +0 -599
- package/menubar/MenubarSub.vue +0 -223
- package/menubar/package.json +0 -9
- package/menubar/style/MenubarStyle.d.ts +0 -3
- package/menubar/style/package.json +0 -6
- package/menuitem/MenuItem.d.ts +0 -95
- package/menuitem/package.json +0 -3
- package/message/BaseMessage.vue +0 -45
- package/message/Message.d.ts +0 -234
- package/message/Message.vue +0 -82
- package/message/package.json +0 -9
- package/message/style/MessageStyle.d.ts +0 -3
- package/message/style/package.json +0 -6
- package/multiselect/BaseMultiSelect.vue +0 -174
- package/multiselect/MultiSelect.d.ts +0 -852
- package/multiselect/MultiSelect.vue +0 -1071
- package/multiselect/package.json +0 -9
- package/multiselect/style/MultiSelectStyle.d.ts +0 -3
- package/multiselect/style/package.json +0 -6
- package/orderlist/BaseOrderList.vue +0 -81
- package/orderlist/OrderList.d.ts +0 -366
- package/orderlist/OrderList.vue +0 -561
- package/orderlist/package.json +0 -9
- package/orderlist/style/OrderListStyle.d.ts +0 -3
- package/orderlist/style/package.json +0 -6
- package/organizationchart/BaseOrganizationChart.vue +0 -37
- package/organizationchart/OrganizationChart.d.ts +0 -342
- package/organizationchart/OrganizationChart.vue +0 -77
- package/organizationchart/OrganizationChartNode.vue +0 -164
- package/organizationchart/package.json +0 -9
- package/organizationchart/style/OrganizationChartStyle.d.ts +0 -3
- package/organizationchart/style/package.json +0 -6
- package/overlayeventbus/package.json +0 -5
- package/overlaypanel/BaseOverlayPanel.vue +0 -45
- package/overlaypanel/OverlayPanel.d.ts +0 -253
- package/overlaypanel/OverlayPanel.vue +0 -300
- package/overlaypanel/package.json +0 -9
- package/overlaypanel/style/OverlayPanelStyle.d.ts +0 -3
- package/overlaypanel/style/package.json +0 -6
- package/paginator/BasePaginator.vue +0 -49
- package/paginator/CurrentPageReport.vue +0 -56
- package/paginator/FirstPageLink.vue +0 -38
- package/paginator/JumpToPageDropdown.vue +0 -56
- package/paginator/JumpToPageInput.vue +0 -57
- package/paginator/LastPageLink.vue +0 -38
- package/paginator/NextPageLink.vue +0 -38
- package/paginator/PageLinks.vue +0 -56
- package/paginator/Paginator.d.ts +0 -367
- package/paginator/Paginator.vue +0 -303
- package/paginator/PrevPageLink.vue +0 -38
- package/paginator/RowsPerPageDropdown.vue +0 -58
- package/paginator/package.json +0 -9
- package/paginator/style/PaginatorStyle.d.ts +0 -3
- package/paginator/style/package.json +0 -6
- package/panel/BasePanel.vue +0 -24
- package/panel/Panel.d.ts +0 -244
- package/panel/Panel.vue +0 -95
- package/panel/package.json +0 -9
- package/panel/style/PanelStyle.d.ts +0 -3
- package/panel/style/package.json +0 -6
- package/panelmenu/BasePanelMenu.vue +0 -33
- package/panelmenu/PanelMenu.d.ts +0 -379
- package/panelmenu/PanelMenu.vue +0 -259
- package/panelmenu/PanelMenuList.vue +0 -397
- package/panelmenu/PanelMenuSub.vue +0 -212
- package/panelmenu/package.json +0 -9
- package/panelmenu/style/PanelMenuStyle.d.ts +0 -3
- package/panelmenu/style/package.json +0 -6
- package/passthrough/index.d.ts +0 -6
- package/passthrough/package.json +0 -6
- package/passthrough/tailwind/index.d.ts +0 -4
- package/passthrough/tailwind/package.json +0 -6
- package/password/BasePassword.vue +0 -114
- package/password/Password.d.ts +0 -346
- package/password/Password.vue +0 -301
- package/password/package.json +0 -9
- package/password/style/PasswordStyle.d.ts +0 -3
- package/password/style/package.json +0 -6
- package/picklist/BasePickList.vue +0 -101
- package/picklist/PickList.d.ts +0 -583
- package/picklist/PickList.vue +0 -892
- package/picklist/package.json +0 -9
- package/picklist/style/PickListStyle.d.ts +0 -3
- package/picklist/style/package.json +0 -6
- package/portal/Portal.d.ts +0 -37
- package/portal/Portal.vue +0 -41
- package/portal/package.json +0 -9
- package/portal/style/PortalStyle.d.ts +0 -3
- package/portal/style/package.json +0 -6
- package/progressbar/BaseProgressBar.vue +0 -29
- package/progressbar/ProgressBar.d.ts +0 -135
- package/progressbar/ProgressBar.vue +0 -35
- package/progressbar/package.json +0 -9
- package/progressbar/style/ProgressBarStyle.d.ts +0 -3
- package/progressbar/style/package.json +0 -6
- package/progressspinner/BaseProgressSpinner.vue +0 -29
- package/progressspinner/ProgressSpinner.d.ts +0 -129
- package/progressspinner/ProgressSpinner.vue +0 -23
- package/progressspinner/package.json +0 -9
- package/progressspinner/style/ProgressSpinnerStyle.d.ts +0 -3
- package/progressspinner/style/package.json +0 -6
- package/radiobutton/BaseRadioButton.vue +0 -51
- package/radiobutton/RadioButton.d.ts +0 -194
- package/radiobutton/RadioButton.vue +0 -52
- package/radiobutton/package.json +0 -9
- package/radiobutton/style/RadioButtonStyle.d.ts +0 -3
- package/radiobutton/style/package.json +0 -6
- package/rating/BaseRating.vue +0 -49
- package/rating/Rating.d.ts +0 -300
- package/rating/Rating.vue +0 -128
- package/rating/package.json +0 -9
- package/rating/style/RatingStyle.d.ts +0 -3
- package/rating/style/package.json +0 -6
- package/ripple/Ripple.d.ts +0 -82
- package/ripple/package.json +0 -6
- package/ripple/style/RippleStyle.d.ts +0 -3
- package/ripple/style/package.json +0 -6
- package/row/Row.d.ts +0 -113
- package/row/Row.vue +0 -11
- package/row/package.json +0 -9
- package/row/style/RowStyle.d.ts +0 -3
- package/row/style/package.json +0 -6
- package/scrollpanel/BaseScrollPanel.vue +0 -21
- package/scrollpanel/ScrollPanel.d.ts +0 -161
- package/scrollpanel/ScrollPanel.vue +0 -360
- package/scrollpanel/package.json +0 -9
- package/scrollpanel/style/ScrollPanelStyle.d.ts +0 -3
- package/scrollpanel/style/package.json +0 -6
- package/scrolltop/BaseScrollTop.vue +0 -33
- package/scrolltop/ScrollTop.d.ts +0 -158
- package/scrolltop/ScrollTop.vue +0 -97
- package/scrolltop/package.json +0 -9
- package/scrolltop/style/ScrollTopStyle.d.ts +0 -3
- package/scrolltop/style/package.json +0 -6
- package/selectbutton/BaseSelectButton.vue +0 -37
- package/selectbutton/SelectButton.d.ts +0 -253
- package/selectbutton/SelectButton.vue +0 -188
- package/selectbutton/package.json +0 -9
- package/selectbutton/style/SelectButtonStyle.d.ts +0 -3
- package/selectbutton/style/package.json +0 -6
- package/sidebar/BaseSidebar.vue +0 -53
- package/sidebar/Sidebar.d.ts +0 -241
- package/sidebar/Sidebar.vue +0 -195
- package/sidebar/package.json +0 -9
- package/sidebar/style/SidebarStyle.d.ts +0 -3
- package/sidebar/style/package.json +0 -6
- package/skeleton/BaseSkeleton.vue +0 -41
- package/skeleton/Skeleton.d.ts +0 -135
- package/skeleton/Skeleton.vue +0 -18
- package/skeleton/package.json +0 -9
- package/skeleton/style/SkeletonStyle.d.ts +0 -3
- package/skeleton/style/package.json +0 -6
- package/slider/BaseSlider.vue +0 -54
- package/slider/Slider.d.ts +0 -201
- package/slider/Slider.vue +0 -325
- package/slider/package.json +0 -9
- package/slider/style/SliderStyle.d.ts +0 -3
- package/slider/style/package.json +0 -6
- package/speeddial/BaseSpeedDial.vue +0 -76
- package/speeddial/SpeedDial.d.ts +0 -364
- package/speeddial/SpeedDial.vue +0 -466
- package/speeddial/package.json +0 -9
- package/speeddial/style/SpeedDialStyle.d.ts +0 -3
- package/speeddial/style/package.json +0 -6
- package/splitbutton/BaseSplitButton.vue +0 -93
- package/splitbutton/SplitButton.d.ts +0 -274
- package/splitbutton/SplitButton.vue +0 -115
- package/splitbutton/package.json +0 -9
- package/splitbutton/style/SplitButtonStyle.d.ts +0 -3
- package/splitbutton/style/package.json +0 -6
- package/splitter/BaseSplitter.vue +0 -37
- package/splitter/Splitter.d.ts +0 -235
- package/splitter/Splitter.vue +0 -378
- package/splitter/package.json +0 -9
- package/splitter/style/SplitterStyle.d.ts +0 -3
- package/splitter/style/package.json +0 -6
- package/splitterpanel/BaseSplitterPanel.vue +0 -25
- package/splitterpanel/SplitterPanel.d.ts +0 -133
- package/splitterpanel/SplitterPanel.vue +0 -28
- package/splitterpanel/package.json +0 -9
- package/splitterpanel/style/SplitterPanelStyle.d.ts +0 -3
- package/splitterpanel/style/package.json +0 -6
- package/steps/BaseSteps.vue +0 -32
- package/steps/Steps.d.ts +0 -217
- package/steps/Steps.vue +0 -208
- package/steps/package.json +0 -9
- package/steps/style/StepsStyle.d.ts +0 -3
- package/steps/style/package.json +0 -6
- package/styleclass/StyleClass.d.ts +0 -100
- package/styleclass/package.json +0 -6
- package/styleclass/style/StyleClassStyle.d.ts +0 -3
- package/styleclass/style/package.json +0 -6
- package/tabmenu/BaseTabMenu.vue +0 -37
- package/tabmenu/TabMenu.d.ts +0 -261
- package/tabmenu/TabMenu.vue +0 -303
- package/tabmenu/package.json +0 -9
- package/tabmenu/style/TabMenuStyle.d.ts +0 -3
- package/tabmenu/style/package.json +0 -6
- package/tabpanel/BaseTabPanel.vue +0 -21
- package/tabpanel/TabPanel.d.ts +0 -198
- package/tabpanel/TabPanel.vue +0 -12
- package/tabpanel/package.json +0 -9
- package/tabpanel/style/TabPanelStyle.d.ts +0 -3
- package/tabpanel/style/package.json +0 -6
- package/tabview/BaseTabView.vue +0 -53
- package/tabview/TabView.d.ts +0 -257
- package/tabview/TabView.vue +0 -372
- package/tabview/package.json +0 -9
- package/tabview/style/TabViewStyle.d.ts +0 -3
- package/tabview/style/package.json +0 -6
- package/tag/BaseTag.vue +0 -21
- package/tag/Tag.d.ts +0 -143
- package/tag/Tag.vue +0 -18
- package/tag/package.json +0 -9
- package/tag/style/TagStyle.d.ts +0 -3
- package/tag/style/package.json +0 -6
- package/terminal/BaseTerminal.vue +0 -25
- package/terminal/Terminal.d.ts +0 -165
- package/terminal/Terminal.vue +0 -57
- package/terminal/package.json +0 -9
- package/terminal/style/TerminalStyle.d.ts +0 -3
- package/terminal/style/package.json +0 -6
- package/terminalservice/TerminalService.d.ts +0 -30
- package/terminalservice/package.json +0 -6
- package/textarea/BaseTextarea.vue +0 -19
- package/textarea/Textarea.d.ts +0 -145
- package/textarea/Textarea.vue +0 -55
- package/textarea/package.json +0 -9
- package/textarea/style/TextareaStyle.d.ts +0 -3
- package/textarea/style/package.json +0 -6
- package/tieredmenu/BaseTieredMenu.vue +0 -57
- package/tieredmenu/TieredMenu.d.ts +0 -395
- package/tieredmenu/TieredMenu.vue +0 -608
- package/tieredmenu/TieredMenuSub.vue +0 -211
- package/tieredmenu/package.json +0 -9
- package/tieredmenu/style/TieredMenuStyle.d.ts +0 -3
- package/tieredmenu/style/package.json +0 -6
- package/timeline/BaseTimeline.vue +0 -27
- package/timeline/Timeline.d.ts +0 -219
- package/timeline/Timeline.vue +0 -43
- package/timeline/package.json +0 -9
- package/timeline/style/TimelineStyle.d.ts +0 -3
- package/timeline/style/package.json +0 -6
- package/toast/BaseToast.vue +0 -61
- package/toast/Toast.d.ts +0 -349
- package/toast/Toast.vue +0 -162
- package/toast/ToastMessage.vue +0 -120
- package/toast/package.json +0 -9
- package/toast/style/ToastStyle.d.ts +0 -3
- package/toast/style/package.json +0 -6
- package/toasteventbus/package.json +0 -5
- package/toastservice/ToastService.d.ts +0 -52
- package/toastservice/package.json +0 -6
- package/togglebutton/BaseToggleButton.vue +0 -64
- package/togglebutton/ToggleButton.d.ts +0 -263
- package/togglebutton/ToggleButton.vue +0 -105
- package/togglebutton/package.json +0 -9
- package/togglebutton/style/ToggleButtonStyle.d.ts +0 -3
- package/togglebutton/style/package.json +0 -6
- package/toolbar/BaseToolbar.vue +0 -21
- package/toolbar/Toolbar.d.ts +0 -139
- package/toolbar/Toolbar.vue +0 -22
- package/toolbar/package.json +0 -9
- package/toolbar/style/ToolbarStyle.d.ts +0 -3
- package/toolbar/style/package.json +0 -6
- package/tooltip/Tooltip.d.ts +0 -197
- package/tooltip/package.json +0 -6
- package/tooltip/style/TooltipStyle.d.ts +0 -3
- package/tooltip/style/package.json +0 -6
- package/tree/BaseTree.vue +0 -81
- package/tree/Tree.d.ts +0 -464
- package/tree/Tree.vue +0 -244
- package/tree/TreeNode.vue +0 -444
- package/tree/package.json +0 -9
- package/tree/style/TreeStyle.d.ts +0 -3
- package/tree/style/package.json +0 -6
- package/treeselect/BaseTreeSelect.vue +0 -87
- package/treeselect/TreeSelect.d.ts +0 -417
- package/treeselect/TreeSelect.vue +0 -441
- package/treeselect/package.json +0 -9
- package/treeselect/style/TreeSelectStyle.d.ts +0 -3
- package/treeselect/style/package.json +0 -6
- package/treetable/BaseTreeTable.vue +0 -173
- package/treetable/BodyCell.vue +0 -217
- package/treetable/FooterCell.vue +0 -103
- package/treetable/HeaderCell.vue +0 -238
- package/treetable/TreeTable.d.ts +0 -804
- package/treetable/TreeTable.vue +0 -853
- package/treetable/TreeTableRow.vue +0 -431
- package/treetable/package.json +0 -9
- package/treetable/style/TreeTableStyle.d.ts +0 -3
- package/treetable/style/package.json +0 -6
- package/tristatecheckbox/BaseTriStateCheckbox.vue +0 -42
- package/tristatecheckbox/TriStateCheckbox.d.ts +0 -244
- package/tristatecheckbox/TriStateCheckbox.vue +0 -111
- package/tristatecheckbox/package.json +0 -9
- package/tristatecheckbox/style/TriStateCheckboxStyle.d.ts +0 -3
- package/tristatecheckbox/style/package.json +0 -6
- package/ts-helpers.d.ts +0 -38
- package/useconfirm/UseConfirm.d.ts +0 -6
- package/useconfirm/package.json +0 -6
- package/usedialog/UseDialog.d.ts +0 -5
- package/usedialog/package.json +0 -6
- package/usestyle/UseStyle.d.ts +0 -21
- package/usestyle/package.json +0 -6
- package/usetoast/UseToast.d.ts +0 -3
- package/usetoast/package.json +0 -6
- package/utils/Utils.d.ts +0 -113
- package/utils/package.json +0 -6
- package/virtualscroller/BaseVirtualScroller.vue +0 -100
- package/virtualscroller/VirtualScroller.d.ts +0 -520
- package/virtualscroller/VirtualScroller.vue +0 -673
- package/virtualscroller/package.json +0 -9
- package/virtualscroller/style/VirtualScrollerStyle.d.ts +0 -3
- package/virtualscroller/style/package.json +0 -6
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
this.primevue = this.primevue || {};
|
|
2
|
+
this.primevue.animateonscroll = (function (utils, BaseDirective) {
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
|
+
|
|
7
|
+
var BaseDirective__default = /*#__PURE__*/_interopDefaultLegacy(BaseDirective);
|
|
8
|
+
|
|
9
|
+
var BaseAnimateOnScroll = BaseDirective__default["default"].extend({});
|
|
10
|
+
|
|
11
|
+
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); }
|
|
12
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
+
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; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
17
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
+
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."); }
|
|
19
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(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(o, minLen); }
|
|
20
|
+
function _arrayLikeToArray(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; }
|
|
21
|
+
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; } }
|
|
22
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
|
+
var AnimateOnScroll = BaseAnimateOnScroll.extend('animateonscroll', {
|
|
24
|
+
created: function created() {
|
|
25
|
+
this.$value = this.$value || {};
|
|
26
|
+
this.$el.style.opacity = this.$value.enterClass ? '0' : '';
|
|
27
|
+
},
|
|
28
|
+
mounted: function mounted() {
|
|
29
|
+
this.$el.setAttribute('data-pd-animateonscroll', true);
|
|
30
|
+
this.bindIntersectionObserver();
|
|
31
|
+
},
|
|
32
|
+
unmounted: function unmounted() {
|
|
33
|
+
this.unbindAnimationEvents();
|
|
34
|
+
this.unbindIntersectionObserver();
|
|
35
|
+
},
|
|
36
|
+
observer: undefined,
|
|
37
|
+
resetObserver: undefined,
|
|
38
|
+
isObserverActive: false,
|
|
39
|
+
animationState: undefined,
|
|
40
|
+
animationEndListener: undefined,
|
|
41
|
+
methods: {
|
|
42
|
+
bindAnimationEvents: function bindAnimationEvents() {
|
|
43
|
+
var _this = this;
|
|
44
|
+
if (!this.animationEndListener) {
|
|
45
|
+
this.animationEndListener = function () {
|
|
46
|
+
utils.DomHandler.removeMultipleClasses(_this.$el, [_this.$value.enterClass, _this.$value.leaveClass]);
|
|
47
|
+
!_this.$modifiers.once && _this.resetObserver.observe(_this.$el);
|
|
48
|
+
_this.unbindAnimationEvents();
|
|
49
|
+
};
|
|
50
|
+
this.$el.addEventListener('animationend', this.animationEndListener);
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
bindIntersectionObserver: function bindIntersectionObserver() {
|
|
54
|
+
var _this2 = this;
|
|
55
|
+
var _this$$value = this.$value,
|
|
56
|
+
root = _this$$value.root,
|
|
57
|
+
rootMargin = _this$$value.rootMargin,
|
|
58
|
+
_this$$value$threshol = _this$$value.threshold,
|
|
59
|
+
threshold = _this$$value$threshol === void 0 ? 0.5 : _this$$value$threshol;
|
|
60
|
+
var options = {
|
|
61
|
+
root: root,
|
|
62
|
+
rootMargin: rootMargin,
|
|
63
|
+
threshold: threshold
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// States
|
|
67
|
+
this.observer = new IntersectionObserver(function (_ref) {
|
|
68
|
+
var _ref2 = _slicedToArray(_ref, 1),
|
|
69
|
+
entry = _ref2[0];
|
|
70
|
+
if (_this2.isObserverActive) {
|
|
71
|
+
if (entry.boundingClientRect.top > 0) {
|
|
72
|
+
entry.isIntersecting ? _this2.enter() : _this2.leave();
|
|
73
|
+
}
|
|
74
|
+
} else if (entry.isIntersecting) {
|
|
75
|
+
_this2.enter();
|
|
76
|
+
}
|
|
77
|
+
_this2.isObserverActive = true;
|
|
78
|
+
}, options);
|
|
79
|
+
setTimeout(function () {
|
|
80
|
+
return _this2.observer.observe(_this2.$el);
|
|
81
|
+
}, 0);
|
|
82
|
+
|
|
83
|
+
// Reset
|
|
84
|
+
this.resetObserver = new IntersectionObserver(function (_ref3) {
|
|
85
|
+
var _ref4 = _slicedToArray(_ref3, 1),
|
|
86
|
+
entry = _ref4[0];
|
|
87
|
+
if (entry.boundingClientRect.top > 0 && !entry.isIntersecting) {
|
|
88
|
+
_this2.$el.style.opacity = _this2.$value.enterClass ? '0' : '';
|
|
89
|
+
utils.DomHandler.removeMultipleClasses(_this2.$el, [_this2.$value.enterClass, _this2.$value.leaveClass]);
|
|
90
|
+
_this2.resetObserver.unobserve(_this2.$el);
|
|
91
|
+
}
|
|
92
|
+
_this2.animationState = undefined;
|
|
93
|
+
}, _objectSpread(_objectSpread({}, options), {}, {
|
|
94
|
+
threshold: 0
|
|
95
|
+
}));
|
|
96
|
+
},
|
|
97
|
+
enter: function enter() {
|
|
98
|
+
if (this.animationState !== 'enter' && this.$value.enterClass) {
|
|
99
|
+
this.$el.style.opacity = '';
|
|
100
|
+
utils.DomHandler.removeMultipleClasses(this.$el, this.$value.leaveClass);
|
|
101
|
+
utils.DomHandler.addMultipleClasses(this.$el, this.$value.enterClass);
|
|
102
|
+
this.$modifiers.once && this.unbindIntersectionObserver(this.$el);
|
|
103
|
+
this.bindAnimationEvents();
|
|
104
|
+
this.animationState = 'enter';
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
leave: function leave() {
|
|
108
|
+
if (this.animationState !== 'leave' && this.$value.leaveClass) {
|
|
109
|
+
this.$el.style.opacity = this.$value.enterClass ? '0' : '';
|
|
110
|
+
utils.DomHandler.removeMultipleClasses(this.$el, this.$value.enterClass);
|
|
111
|
+
utils.DomHandler.addMultipleClasses(this.$el, this.$value.leaveClass);
|
|
112
|
+
this.bindAnimationEvents();
|
|
113
|
+
this.animationState = 'leave';
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
unbindAnimationEvents: function unbindAnimationEvents() {
|
|
117
|
+
if (this.animationEndListener) {
|
|
118
|
+
this.$el.removeEventListener('animationend', this.animationEndListener);
|
|
119
|
+
this.animationEndListener = undefined;
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
unbindIntersectionObserver: function unbindIntersectionObserver() {
|
|
123
|
+
var _this$observer, _this$resetObserver;
|
|
124
|
+
(_this$observer = this.observer) === null || _this$observer === void 0 || _this$observer.unobserve(this.$el);
|
|
125
|
+
(_this$resetObserver = this.resetObserver) === null || _this$resetObserver === void 0 || _this$resetObserver.unobserve(this.$el);
|
|
126
|
+
this.isObserverActive = false;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
return AnimateOnScroll;
|
|
132
|
+
|
|
133
|
+
})(primevue.utils, primevue.basedirective);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.animateonscroll=function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=l(e,"string");return"symbol"===r(t)?t:String(t)}function l(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function u(e,t){return f(e)||d(e,t)||c(e,t)||v()}function v(){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 c(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s,o,a=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function f(e){if(Array.isArray(e))return e}return n(primevue.basedirective).default.extend({}).extend("animateonscroll",{created:function(){this.$value=this.$value||{},this.$el.style.opacity=this.$value.enterClass?"0":""},mounted:function(){this.$el.setAttribute("data-pd-animateonscroll",!0),this.bindIntersectionObserver()},unmounted:function(){this.unbindAnimationEvents(),this.unbindIntersectionObserver()},observer:void 0,resetObserver:void 0,isObserverActive:!1,animationState:void 0,animationEndListener:void 0,methods:{bindAnimationEvents:function(){var t=this;this.animationEndListener||(this.animationEndListener=function(){e.DomHandler.removeMultipleClasses(t.$el,[t.$value.enterClass,t.$value.leaveClass]),!t.$modifiers.once&&t.resetObserver.observe(t.$el),t.unbindAnimationEvents()},this.$el.addEventListener("animationend",this.animationEndListener))},bindIntersectionObserver:function(){var t=this,n=this.$value,r=n.threshold,i={root:n.root,rootMargin:n.rootMargin,threshold:void 0===r?.5:r};this.observer=new IntersectionObserver((function(e){var n=u(e,1)[0];t.isObserverActive?n.boundingClientRect.top>0&&(n.isIntersecting?t.enter():t.leave()):n.isIntersecting&&t.enter(),t.isObserverActive=!0}),i),setTimeout((function(){return t.observer.observe(t.$el)}),0),this.resetObserver=new IntersectionObserver((function(n){var r=u(n,1)[0];r.boundingClientRect.top>0&&!r.isIntersecting&&(t.$el.style.opacity=t.$value.enterClass?"0":"",e.DomHandler.removeMultipleClasses(t.$el,[t.$value.enterClass,t.$value.leaveClass]),t.resetObserver.unobserve(t.$el)),t.animationState=void 0}),s(s({},i),{},{threshold:0}))},enter:function(){"enter"!==this.animationState&&this.$value.enterClass&&(this.$el.style.opacity="",e.DomHandler.removeMultipleClasses(this.$el,this.$value.leaveClass),e.DomHandler.addMultipleClasses(this.$el,this.$value.enterClass),this.$modifiers.once&&this.unbindIntersectionObserver(this.$el),this.bindAnimationEvents(),this.animationState="enter")},leave:function(){"leave"!==this.animationState&&this.$value.leaveClass&&(this.$el.style.opacity=this.$value.enterClass?"0":"",e.DomHandler.removeMultipleClasses(this.$el,this.$value.enterClass),e.DomHandler.addMultipleClasses(this.$el,this.$value.leaveClass),this.bindAnimationEvents(),this.animationState="leave")},unbindAnimationEvents:function(){this.animationEndListener&&(this.$el.removeEventListener("animationend",this.animationEndListener),this.animationEndListener=void 0)},unbindIntersectionObserver:function(){var e,t;null===(e=this.observer)||void 0===e||e.unobserve(this.$el),null===(t=this.resetObserver)||void 0===t||t.unobserve(this.$el),this.isObserverActive=!1}}})}(primevue.utils);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";module.exports={};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a={};export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.animateonscroll=this.primevue.animateonscroll||{},this.primevue.animateonscroll.style=function(){"use strict";return{}}();
|
|
@@ -723,7 +723,7 @@ var script = {
|
|
|
723
723
|
return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.searchLocale) === value.toLocaleLowerCase(this.searchLocale);
|
|
724
724
|
},
|
|
725
725
|
isValidOption: function isValidOption(option) {
|
|
726
|
-
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
726
|
+
return utils.ObjectUtils.isNotEmpty(option) && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
727
727
|
},
|
|
728
728
|
isValidSelectedOption: function isValidSelectedOption(option) {
|
|
729
729
|
return this.isValidOption(option) && this.isSelected(option);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/button"),t=require("primevue/icons/chevrondown"),i=require("primevue/icons/spinner"),n=require("primevue/icons/timescircle"),o=require("primevue/overlayeventbus"),s=require("primevue/portal"),l=require("primevue/ripple"),r=require("primevue/utils"),a=require("primevue/virtualscroller"),u=require("primevue/autocomplete/style"),c=require("primevue/basecomponent"),d=require("vue");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=p(e),f=p(t),m=p(i),y=p(n),v=p(o),b=p(s),g=p(l),O=p(a),x=p(u);function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function S(){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(e,t){if(e){if("string"==typeof e)return L(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?L(e,t):void 0}}function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e){if(Array.isArray(e))return L(e)}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var V={name:"AutoComplete",extends:{name:"BaseAutoComplete",extends:p(c).default,props:{modelValue:null,suggestions:{type:Array,default:null},field:{type:[String,Function],default:null},optionLabel:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:"blank"},autoHighlight:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:Object,default:null},inputClass:{type:[String,Object],default:null},inputProps:{type:null,default:null},panelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},panelProps:{type:null,default:null},dropdownIcon:{type:String,default:void 0},dropdownClass:{type:[String,Object],default:null},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},selectOnFocus:{type:Boolean,default:!1},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},style:x.default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","item-select","item-unselect","dropdown-click","clear","complete","before-show","before-hide","show","hide"],outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,focusOnHover:!1,dirty:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}},watch:{"$attrs.id":function(e){this.id=e||r.UniqueComponentId()},suggestions:function(){this.searching&&(this.show(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1),this.autoUpdateModel()}},mounted:function(){this.id=this.id||r.UniqueComponentId(),this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.alignOverlay()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(r.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.field||this.optionLabel?r.ObjectUtils.resolveFieldData(e,this.field||this.optionLabel):e},getOptionValue:function(e){return e},getOptionRenderKey:function(e,t){return(this.dataKey?r.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&r.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return r.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return r.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&r.DomHandler.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.dirty=e,t.overlayVisible=!1,t.focusedOptionIndex=-1,e&&r.DomHandler.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}},onInput:function(e){var t=this;this.searchTimeout&&clearTimeout(this.searchTimeout);var i=e.target.value;this.multiple||this.updateModel(e,i),0===i.length?(this.hide(),this.$emit("clear")):i.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout((function(){t.search(e,i,"input")}),this.delay)):this.hide()},onChange:function(e){var t=this;if(this.forceSelection){var i=!1;if(this.visibleOptions){var n=this.visibleOptions.find((function(e){return t.isOptionMatched(e,t.$refs.focusInput.value||"")}));void 0!==n&&(i=!0,!this.isSelected(n)&&this.onOptionSelect(e,n))}i||(this.$refs.focusInput.value="",this.$emit("clear"),!this.multiple&&this.updateModel(e,null))}},onMultipleContainerFocus:function(){this.disabled||(this.focused=!0)},onMultipleContainerBlur:function(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}},onContainerClick:function(e){this.disabled||this.searching||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||this.overlay&&this.overlay.contains(e.target)||r.DomHandler.focus(this.$refs.focusInput)},onDropdownClick:function(e){var t=void 0;this.overlayVisible?this.hide(!0):(r.DomHandler.focus(this.$refs.focusInput),t=this.$refs.focusInput.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,t,"dropdown")),this.$emit("dropdown-click",{originalEvent:e,query:t})},onOptionSelect:function(e,t){var i,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value="",this.isSelected(t)||this.updateModel(e,[].concat(C(i=this.modelValue||[])||w(i)||k(i)||S(),[o]))):this.updateModel(e,o),this.$emit("item-select",{originalEvent:e,value:t}),n&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOverlayClick:function(e){v.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){if(this.overlayVisible){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowUpKey:function(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey:function(e){var t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(r.ObjectUtils.isEmpty(t.value)&&this.hasSelectedOption?(r.DomHandler.focus(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.modelValue.length):e.stopPropagation())},onArrowRightKey:function(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey:function(e){var t=e.currentTarget;t.setSelectionRange(0,e.shiftKey?t.value.length:0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey:function(e){var t=e.currentTarget,i=t.value.length;t.setSelectionRange(e.shiftKey?0:i,i),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onBackspaceKey:function(e){if(this.multiple){if(r.ObjectUtils.isNotEmpty(this.modelValue)&&!this.$refs.focusInput.value){var t=this.modelValue[this.modelValue.length-1],i=this.modelValue.slice(0,-1);this.$emit("update:modelValue",i),this.$emit("item-unselect",{originalEvent:e,value:t})}e.stopPropagation()}},onArrowLeftKeyOnMultiple:function(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple:function(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.modelValue.length-1&&(this.focusedMultipleOptionIndex=-1,r.DomHandler.focus(this.$refs.focusInput))},onBackspaceKeyOnMultiple:function(e){-1!==this.focusedMultipleOptionIndex&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter:function(e){r.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),r.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay()},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){r.ZIndexUtils.clear(e)},alignOverlay:function(){var e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput;"self"===this.appendTo?r.DomHandler.relativePosition(this.overlay,e):(this.overlay.style.minWidth=r.DomHandler.getOuterWidth(e)+"px",r.DomHandler.absolutePosition(this.overlay,e))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new r.ConnectedOverlayScrollHandler(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!r.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked:function(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput},isDropdownClicked:function(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},isOptionMatched:function(e,t){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption:function(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return r.ObjectUtils.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return r.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?r.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search:function(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},removeOption:function(e,t){var i=this,n=this.modelValue[t],o=this.modelValue.filter((function(e,i){return i!==t})).map((function(e){return i.getOptionValue(e)}));this.updateModel(e,o),this.$emit("item-unselect",{originalEvent:e,value:n}),this.dirty=!0,r.DomHandler.focus(this.$refs.focusInput)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==t?"".concat(this.id,"_").concat(t):this.focusedOptionId,n=r.DomHandler.findSingle(this.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((function(){e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}),0)},autoUpdateModel:function(){(this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue:function(){if(this.modelValue){if("object"===I(this.modelValue)){var e=this.getOptionLabel(this.modelValue);return null!=e?e:this.modelValue}return this.modelValue}return""},hasSelectedOption:function(){return r.ObjectUtils.isNotEmpty(this.modelValue)},equalityKey:function(){return this.dataKey},searchResultMessageText:function(){return r.ObjectUtils.isNotEmpty(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText:function(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText:function(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue.length:"1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},focusedMultipleOptionId:function(){return-1!==this.focusedMultipleOptionIndex?"".concat(this.id,"_multiple_option_").concat(this.focusedMultipleOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},components:{Button:h.default,VirtualScroller:O.default,Portal:b.default,ChevronDownIcon:f.default,SpinnerIcon:m.default,TimesCircleIcon:y.default},directives:{ripple:g.default}};function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function M(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function B(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?M(Object(i),!0).forEach((function(t){$(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):M(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function $(e,t,i){return(t=E(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function E(e){var t=K(e,"string");return"symbol"===D(t)?t:String(t)}function K(e,t){if("object"!==D(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var P=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],T=["aria-activedescendant"],F=["id","aria-label","aria-setsize","aria-posinset"],A=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],j=["id"],H=["id"],N=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focus","data-p-disabled"];V.render=function(e,t,i,n,o,s){var l=d.resolveComponent("SpinnerIcon"),r=d.resolveComponent("Button"),a=d.resolveComponent("VirtualScroller"),u=d.resolveComponent("Portal"),c=d.resolveDirective("ripple");return d.openBlock(),d.createElementBlock("div",d.mergeProps({ref:"container",class:e.cx("root"),style:e.sx("root"),onClick:t[15]||(t[15]=function(){return s.onContainerClick&&s.onContainerClick.apply(s,arguments)})},e.ptm("root"),{"data-pc-name":"autocomplete"}),[e.multiple?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("input",d.mergeProps({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.inputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[1]||(t[1]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[2]||(t[2]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[3]||(t[3]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[4]||(t[4]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},B(B({},e.inputProps),e.ptm("input"))),null,16,P)),e.multiple?(d.openBlock(),d.createElementBlock("ul",d.mergeProps({key:1,ref:"multiContainer",class:e.cx("container"),tabindex:"-1",role:"listbox","aria-orientation":"horizontal","aria-activedescendant":o.focused?s.focusedMultipleOptionId:void 0,onFocus:t[10]||(t[10]=function(){return s.onMultipleContainerFocus&&s.onMultipleContainerFocus.apply(s,arguments)}),onBlur:t[11]||(t[11]=function(){return s.onMultipleContainerBlur&&s.onMultipleContainerBlur.apply(s,arguments)}),onKeydown:t[12]||(t[12]=function(){return s.onMultipleContainerKeyDown&&s.onMultipleContainerKeyDown.apply(s,arguments)})},e.ptm("container")),[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(e.modelValue,(function(t,i){return d.openBlock(),d.createElementBlock("li",d.mergeProps({key:i,id:o.id+"_multiple_option_"+i,class:e.cx("token",{i:i}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":!0,"aria-setsize":e.modelValue.length,"aria-posinset":i+1},e.ptm("token")),[d.renderSlot(e.$slots,"chip",{value:t},(function(){return[d.createElementVNode("span",d.mergeProps({class:e.cx("tokenLabel")},e.ptm("tokenLabel")),d.toDisplayString(s.getOptionLabel(t)),17)]})),d.renderSlot(e.$slots,"removetokenicon",{class:d.normalizeClass(e.cx("removeTokenIcon")),index:i,onClick:function(e){return s.removeOption(e,i)}},(function(){return[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.removeTokenIcon?"span":"TimesCircleIcon"),d.mergeProps({class:[e.cx("removeTokenIcon"),e.removeTokenIcon],onClick:function(e){return s.removeOption(e,i)},"aria-hidden":"true"},e.ptm("removeTokenIcon")),null,16,["class","onClick"]))]}))],16,F)})),128)),d.createElementVNode("li",d.mergeProps({class:e.cx("inputToken"),role:"option"},e.ptm("inputToken")),[d.createElementVNode("input",d.mergeProps({ref:"focusInput",id:e.inputId,type:"text",style:e.inputStyle,class:e.inputClass,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[5]||(t[5]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[6]||(t[6]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[7]||(t[7]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[8]||(t[8]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[9]||(t[9]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},B(B({},e.inputProps),e.ptm("input"))),null,16,A)],16)],16,T)):d.createCommentVNode("",!0),o.searching||e.loading?d.renderSlot(e.$slots,"loadingicon",{key:2,class:d.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(d.openBlock(),d.createElementBlock("i",d.mergeProps({key:0,class:["pi-spin",e.cx("loadingIcon"),e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(d.openBlock(),d.createBlock(l,d.mergeProps({key:1,class:[e.cx("loadingIcon"),e.loadingIcon],spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):d.createCommentVNode("",!0),e.dropdown?(d.openBlock(),d.createBlock(r,{key:3,ref:"dropdownButton",type:"button",tabindex:"-1",class:d.normalizeClass([e.cx("dropdownButton"),e.dropdownClass]),disabled:e.disabled,"aria-hidden":"true",onClick:s.onDropdownClick,unstyled:e.unstyled,pt:e.ptm("dropdownButton"),"data-pc-section":"dropdownbutton"},{icon:d.withCtx((function(){return[d.renderSlot(e.$slots,"dropdownicon",{class:d.normalizeClass(e.dropdownIcon)},(function(){return[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),d.mergeProps({class:e.dropdownIcon},e.ptm("dropdownButton").icon,{"data-pc-section":"dropdownicon"}),null,16,["class"]))]}))]})),_:3},8,["class","disabled","onClick","unstyled","pt"])):d.createCommentVNode("",!0),d.createElementVNode("span",d.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSearchResult"),{"data-p-hidden-accessible":!0}),d.toDisplayString(s.searchResultMessageText),17),d.createVNode(u,{appendTo:e.appendTo},{default:d.withCtx((function(){return[d.createVNode(d.Transition,d.mergeProps({name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},e.ptm("transition")),{default:d.withCtx((function(){return[o.overlayVisible?(d.openBlock(),d.createElementBlock("div",d.mergeProps({key:0,ref:s.overlayRef,class:[e.cx("panel"),e.panelClass],style:B(B({},e.panelStyle),{},{"max-height":s.virtualScrollerDisabled?e.scrollHeight:""}),onClick:t[13]||(t[13]=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)}),onKeydown:t[14]||(t[14]=function(){return s.onOverlayKeyDown&&s.onOverlayKeyDown.apply(s,arguments)})},B(B({},e.panelProps),e.ptm("panel"))),[d.renderSlot(e.$slots,"header",{value:e.modelValue,suggestions:s.visibleOptions}),d.createVNode(a,d.mergeProps({ref:s.virtualScrollerRef},e.virtualScrollerOptions,{style:{height:e.scrollHeight},items:s.visibleOptions,tabindex:-1,disabled:s.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),d.createSlots({content:d.withCtx((function(t){var i=t.styleClass,n=t.contentRef,l=t.items,r=t.getItemOptions,a=t.contentStyle,u=t.itemSize;return[d.createElementVNode("ul",d.mergeProps({ref:function(e){return s.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox"},e.ptm("list")),[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l,(function(t,i){return d.openBlock(),d.createElementBlock(d.Fragment,{key:s.getOptionRenderKey(t,s.getOptionIndex(i,r))},[s.isOptionGroup(t)?(d.openBlock(),d.createElementBlock("li",d.mergeProps({key:0,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[d.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,item:t.optionGroup,index:s.getOptionIndex(i,r)},(function(){return[d.createTextVNode(d.toDisplayString(s.getOptionGroupLabel(t.optionGroup)),1)]}))],16,H)):d.withDirectives((d.openBlock(),d.createElementBlock("li",d.mergeProps({key:1,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("item",{option:t,i:i,getItemOptions:r}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":s.isSelected(t),"aria-disabled":s.isOptionDisabled(t),"aria-setsize":s.ariaSetSize,"aria-posinset":s.getAriaPosInset(s.getOptionIndex(i,r)),onClick:function(e){return s.onOptionSelect(e,t)},onMousemove:function(e){return s.onOptionMouseMove(e,s.getOptionIndex(i,r))},"data-p-highlight":s.isSelected(t),"data-p-focus":o.focusedOptionIndex===s.getOptionIndex(i,r),"data-p-disabled":s.isOptionDisabled(t)},s.getPTOptions(t,r,i,"item")),[e.$slots.option?d.renderSlot(e.$slots,"option",{key:0,option:t,index:s.getOptionIndex(i,r)},(function(){return[d.createTextVNode(d.toDisplayString(s.getOptionLabel(t)),1)]})):d.renderSlot(e.$slots,"item",{key:1,item:t,index:s.getOptionIndex(i,r)},(function(){return[d.createTextVNode(d.toDisplayString(s.getOptionLabel(t)),1)]}))],16,N)),[[c]])],64)})),128)),!l||l&&0===l.length?(d.openBlock(),d.createElementBlock("li",d.mergeProps({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[d.renderSlot(e.$slots,"empty",{},(function(){return[d.createTextVNode(d.toDisplayString(s.searchResultMessageText),1)]}))],16)):d.createCommentVNode("",!0)],16,j)]})),_:2},[e.$slots.loader?{name:"loader",fn:d.withCtx((function(t){return[d.renderSlot(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["style","items","disabled","pt"]),d.renderSlot(e.$slots,"footer",{value:e.modelValue,suggestions:s.visibleOptions}),d.createElementVNode("span",d.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),d.toDisplayString(s.selectedMessageText),17)],16)):d.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16)},module.exports=V;
|
|
1
|
+
"use strict";var e=require("primevue/button"),t=require("primevue/icons/chevrondown"),i=require("primevue/icons/spinner"),n=require("primevue/icons/timescircle"),o=require("primevue/overlayeventbus"),s=require("primevue/portal"),l=require("primevue/ripple"),r=require("primevue/utils"),a=require("primevue/virtualscroller"),u=require("primevue/autocomplete/style"),c=require("primevue/basecomponent"),d=require("vue");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=p(e),f=p(t),m=p(i),y=p(n),v=p(o),b=p(s),g=p(l),O=p(a),x=p(u);function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function S(){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(e,t){if(e){if("string"==typeof e)return L(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?L(e,t):void 0}}function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e){if(Array.isArray(e))return L(e)}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var V={name:"AutoComplete",extends:{name:"BaseAutoComplete",extends:p(c).default,props:{modelValue:null,suggestions:{type:Array,default:null},field:{type:[String,Function],default:null},optionLabel:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:"blank"},autoHighlight:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:Object,default:null},inputClass:{type:[String,Object],default:null},inputProps:{type:null,default:null},panelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},panelProps:{type:null,default:null},dropdownIcon:{type:String,default:void 0},dropdownClass:{type:[String,Object],default:null},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},selectOnFocus:{type:Boolean,default:!1},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},style:x.default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","item-select","item-unselect","dropdown-click","clear","complete","before-show","before-hide","show","hide"],outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,focusOnHover:!1,dirty:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}},watch:{"$attrs.id":function(e){this.id=e||r.UniqueComponentId()},suggestions:function(){this.searching&&(this.show(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1),this.autoUpdateModel()}},mounted:function(){this.id=this.id||r.UniqueComponentId(),this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.alignOverlay()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(r.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.field||this.optionLabel?r.ObjectUtils.resolveFieldData(e,this.field||this.optionLabel):e},getOptionValue:function(e){return e},getOptionRenderKey:function(e,t){return(this.dataKey?r.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&r.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return r.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return r.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&r.DomHandler.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.dirty=e,t.overlayVisible=!1,t.focusedOptionIndex=-1,e&&r.DomHandler.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}},onInput:function(e){var t=this;this.searchTimeout&&clearTimeout(this.searchTimeout);var i=e.target.value;this.multiple||this.updateModel(e,i),0===i.length?(this.hide(),this.$emit("clear")):i.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout((function(){t.search(e,i,"input")}),this.delay)):this.hide()},onChange:function(e){var t=this;if(this.forceSelection){var i=!1;if(this.visibleOptions){var n=this.visibleOptions.find((function(e){return t.isOptionMatched(e,t.$refs.focusInput.value||"")}));void 0!==n&&(i=!0,!this.isSelected(n)&&this.onOptionSelect(e,n))}i||(this.$refs.focusInput.value="",this.$emit("clear"),!this.multiple&&this.updateModel(e,null))}},onMultipleContainerFocus:function(){this.disabled||(this.focused=!0)},onMultipleContainerBlur:function(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}},onContainerClick:function(e){this.disabled||this.searching||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||this.overlay&&this.overlay.contains(e.target)||r.DomHandler.focus(this.$refs.focusInput)},onDropdownClick:function(e){var t=void 0;this.overlayVisible?this.hide(!0):(r.DomHandler.focus(this.$refs.focusInput),t=this.$refs.focusInput.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,t,"dropdown")),this.$emit("dropdown-click",{originalEvent:e,query:t})},onOptionSelect:function(e,t){var i,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value="",this.isSelected(t)||this.updateModel(e,[].concat(C(i=this.modelValue||[])||w(i)||k(i)||S(),[o]))):this.updateModel(e,o),this.$emit("item-select",{originalEvent:e,value:t}),n&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOverlayClick:function(e){v.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){if(this.overlayVisible){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowUpKey:function(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey:function(e){var t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(r.ObjectUtils.isEmpty(t.value)&&this.hasSelectedOption?(r.DomHandler.focus(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.modelValue.length):e.stopPropagation())},onArrowRightKey:function(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey:function(e){var t=e.currentTarget;t.setSelectionRange(0,e.shiftKey?t.value.length:0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey:function(e){var t=e.currentTarget,i=t.value.length;t.setSelectionRange(e.shiftKey?0:i,i),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onBackspaceKey:function(e){if(this.multiple){if(r.ObjectUtils.isNotEmpty(this.modelValue)&&!this.$refs.focusInput.value){var t=this.modelValue[this.modelValue.length-1],i=this.modelValue.slice(0,-1);this.$emit("update:modelValue",i),this.$emit("item-unselect",{originalEvent:e,value:t})}e.stopPropagation()}},onArrowLeftKeyOnMultiple:function(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple:function(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.modelValue.length-1&&(this.focusedMultipleOptionIndex=-1,r.DomHandler.focus(this.$refs.focusInput))},onBackspaceKeyOnMultiple:function(e){-1!==this.focusedMultipleOptionIndex&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter:function(e){r.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),r.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay()},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){r.ZIndexUtils.clear(e)},alignOverlay:function(){var e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput;"self"===this.appendTo?r.DomHandler.relativePosition(this.overlay,e):(this.overlay.style.minWidth=r.DomHandler.getOuterWidth(e)+"px",r.DomHandler.absolutePosition(this.overlay,e))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new r.ConnectedOverlayScrollHandler(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!r.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked:function(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput},isDropdownClicked:function(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},isOptionMatched:function(e,t){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption:function(e){return r.ObjectUtils.isNotEmpty(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return r.ObjectUtils.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return r.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?r.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search:function(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},removeOption:function(e,t){var i=this,n=this.modelValue[t],o=this.modelValue.filter((function(e,i){return i!==t})).map((function(e){return i.getOptionValue(e)}));this.updateModel(e,o),this.$emit("item-unselect",{originalEvent:e,value:n}),this.dirty=!0,r.DomHandler.focus(this.$refs.focusInput)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==t?"".concat(this.id,"_").concat(t):this.focusedOptionId,n=r.DomHandler.findSingle(this.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((function(){e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}),0)},autoUpdateModel:function(){(this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue:function(){if(this.modelValue){if("object"===I(this.modelValue)){var e=this.getOptionLabel(this.modelValue);return null!=e?e:this.modelValue}return this.modelValue}return""},hasSelectedOption:function(){return r.ObjectUtils.isNotEmpty(this.modelValue)},equalityKey:function(){return this.dataKey},searchResultMessageText:function(){return r.ObjectUtils.isNotEmpty(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText:function(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText:function(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue.length:"1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},focusedMultipleOptionId:function(){return-1!==this.focusedMultipleOptionIndex?"".concat(this.id,"_multiple_option_").concat(this.focusedMultipleOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},components:{Button:h.default,VirtualScroller:O.default,Portal:b.default,ChevronDownIcon:f.default,SpinnerIcon:m.default,TimesCircleIcon:y.default},directives:{ripple:g.default}};function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function M(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function B(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?M(Object(i),!0).forEach((function(t){$(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):M(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function $(e,t,i){return(t=E(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function E(e){var t=K(e,"string");return"symbol"===D(t)?t:String(t)}function K(e,t){if("object"!==D(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var P=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],T=["aria-activedescendant"],F=["id","aria-label","aria-setsize","aria-posinset"],A=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],j=["id"],H=["id"],N=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focus","data-p-disabled"];V.render=function(e,t,i,n,o,s){var l=d.resolveComponent("SpinnerIcon"),r=d.resolveComponent("Button"),a=d.resolveComponent("VirtualScroller"),u=d.resolveComponent("Portal"),c=d.resolveDirective("ripple");return d.openBlock(),d.createElementBlock("div",d.mergeProps({ref:"container",class:e.cx("root"),style:e.sx("root"),onClick:t[15]||(t[15]=function(){return s.onContainerClick&&s.onContainerClick.apply(s,arguments)})},e.ptm("root"),{"data-pc-name":"autocomplete"}),[e.multiple?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("input",d.mergeProps({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.inputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[1]||(t[1]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[2]||(t[2]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[3]||(t[3]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[4]||(t[4]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},B(B({},e.inputProps),e.ptm("input"))),null,16,P)),e.multiple?(d.openBlock(),d.createElementBlock("ul",d.mergeProps({key:1,ref:"multiContainer",class:e.cx("container"),tabindex:"-1",role:"listbox","aria-orientation":"horizontal","aria-activedescendant":o.focused?s.focusedMultipleOptionId:void 0,onFocus:t[10]||(t[10]=function(){return s.onMultipleContainerFocus&&s.onMultipleContainerFocus.apply(s,arguments)}),onBlur:t[11]||(t[11]=function(){return s.onMultipleContainerBlur&&s.onMultipleContainerBlur.apply(s,arguments)}),onKeydown:t[12]||(t[12]=function(){return s.onMultipleContainerKeyDown&&s.onMultipleContainerKeyDown.apply(s,arguments)})},e.ptm("container")),[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(e.modelValue,(function(t,i){return d.openBlock(),d.createElementBlock("li",d.mergeProps({key:i,id:o.id+"_multiple_option_"+i,class:e.cx("token",{i:i}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":!0,"aria-setsize":e.modelValue.length,"aria-posinset":i+1},e.ptm("token")),[d.renderSlot(e.$slots,"chip",{value:t},(function(){return[d.createElementVNode("span",d.mergeProps({class:e.cx("tokenLabel")},e.ptm("tokenLabel")),d.toDisplayString(s.getOptionLabel(t)),17)]})),d.renderSlot(e.$slots,"removetokenicon",{class:d.normalizeClass(e.cx("removeTokenIcon")),index:i,onClick:function(e){return s.removeOption(e,i)}},(function(){return[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.removeTokenIcon?"span":"TimesCircleIcon"),d.mergeProps({class:[e.cx("removeTokenIcon"),e.removeTokenIcon],onClick:function(e){return s.removeOption(e,i)},"aria-hidden":"true"},e.ptm("removeTokenIcon")),null,16,["class","onClick"]))]}))],16,F)})),128)),d.createElementVNode("li",d.mergeProps({class:e.cx("inputToken"),role:"option"},e.ptm("inputToken")),[d.createElementVNode("input",d.mergeProps({ref:"focusInput",id:e.inputId,type:"text",style:e.inputStyle,class:e.inputClass,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[5]||(t[5]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[6]||(t[6]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[7]||(t[7]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[8]||(t[8]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[9]||(t[9]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},B(B({},e.inputProps),e.ptm("input"))),null,16,A)],16)],16,T)):d.createCommentVNode("",!0),o.searching||e.loading?d.renderSlot(e.$slots,"loadingicon",{key:2,class:d.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(d.openBlock(),d.createElementBlock("i",d.mergeProps({key:0,class:["pi-spin",e.cx("loadingIcon"),e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(d.openBlock(),d.createBlock(l,d.mergeProps({key:1,class:[e.cx("loadingIcon"),e.loadingIcon],spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):d.createCommentVNode("",!0),e.dropdown?(d.openBlock(),d.createBlock(r,{key:3,ref:"dropdownButton",type:"button",tabindex:"-1",class:d.normalizeClass([e.cx("dropdownButton"),e.dropdownClass]),disabled:e.disabled,"aria-hidden":"true",onClick:s.onDropdownClick,unstyled:e.unstyled,pt:e.ptm("dropdownButton"),"data-pc-section":"dropdownbutton"},{icon:d.withCtx((function(){return[d.renderSlot(e.$slots,"dropdownicon",{class:d.normalizeClass(e.dropdownIcon)},(function(){return[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),d.mergeProps({class:e.dropdownIcon},e.ptm("dropdownButton").icon,{"data-pc-section":"dropdownicon"}),null,16,["class"]))]}))]})),_:3},8,["class","disabled","onClick","unstyled","pt"])):d.createCommentVNode("",!0),d.createElementVNode("span",d.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSearchResult"),{"data-p-hidden-accessible":!0}),d.toDisplayString(s.searchResultMessageText),17),d.createVNode(u,{appendTo:e.appendTo},{default:d.withCtx((function(){return[d.createVNode(d.Transition,d.mergeProps({name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},e.ptm("transition")),{default:d.withCtx((function(){return[o.overlayVisible?(d.openBlock(),d.createElementBlock("div",d.mergeProps({key:0,ref:s.overlayRef,class:[e.cx("panel"),e.panelClass],style:B(B({},e.panelStyle),{},{"max-height":s.virtualScrollerDisabled?e.scrollHeight:""}),onClick:t[13]||(t[13]=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)}),onKeydown:t[14]||(t[14]=function(){return s.onOverlayKeyDown&&s.onOverlayKeyDown.apply(s,arguments)})},B(B({},e.panelProps),e.ptm("panel"))),[d.renderSlot(e.$slots,"header",{value:e.modelValue,suggestions:s.visibleOptions}),d.createVNode(a,d.mergeProps({ref:s.virtualScrollerRef},e.virtualScrollerOptions,{style:{height:e.scrollHeight},items:s.visibleOptions,tabindex:-1,disabled:s.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),d.createSlots({content:d.withCtx((function(t){var i=t.styleClass,n=t.contentRef,l=t.items,r=t.getItemOptions,a=t.contentStyle,u=t.itemSize;return[d.createElementVNode("ul",d.mergeProps({ref:function(e){return s.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox"},e.ptm("list")),[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l,(function(t,i){return d.openBlock(),d.createElementBlock(d.Fragment,{key:s.getOptionRenderKey(t,s.getOptionIndex(i,r))},[s.isOptionGroup(t)?(d.openBlock(),d.createElementBlock("li",d.mergeProps({key:0,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[d.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,item:t.optionGroup,index:s.getOptionIndex(i,r)},(function(){return[d.createTextVNode(d.toDisplayString(s.getOptionGroupLabel(t.optionGroup)),1)]}))],16,H)):d.withDirectives((d.openBlock(),d.createElementBlock("li",d.mergeProps({key:1,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("item",{option:t,i:i,getItemOptions:r}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":s.isSelected(t),"aria-disabled":s.isOptionDisabled(t),"aria-setsize":s.ariaSetSize,"aria-posinset":s.getAriaPosInset(s.getOptionIndex(i,r)),onClick:function(e){return s.onOptionSelect(e,t)},onMousemove:function(e){return s.onOptionMouseMove(e,s.getOptionIndex(i,r))},"data-p-highlight":s.isSelected(t),"data-p-focus":o.focusedOptionIndex===s.getOptionIndex(i,r),"data-p-disabled":s.isOptionDisabled(t)},s.getPTOptions(t,r,i,"item")),[e.$slots.option?d.renderSlot(e.$slots,"option",{key:0,option:t,index:s.getOptionIndex(i,r)},(function(){return[d.createTextVNode(d.toDisplayString(s.getOptionLabel(t)),1)]})):d.renderSlot(e.$slots,"item",{key:1,item:t,index:s.getOptionIndex(i,r)},(function(){return[d.createTextVNode(d.toDisplayString(s.getOptionLabel(t)),1)]}))],16,N)),[[c]])],64)})),128)),!l||l&&0===l.length?(d.openBlock(),d.createElementBlock("li",d.mergeProps({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[d.renderSlot(e.$slots,"empty",{},(function(){return[d.createTextVNode(d.toDisplayString(s.searchResultMessageText),1)]}))],16)):d.createCommentVNode("",!0)],16,j)]})),_:2},[e.$slots.loader?{name:"loader",fn:d.withCtx((function(t){return[d.renderSlot(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["style","items","disabled","pt"]),d.renderSlot(e.$slots,"footer",{value:e.modelValue,suggestions:s.visibleOptions}),d.createElementVNode("span",d.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),d.toDisplayString(s.selectedMessageText),17)],16)):d.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16)},module.exports=V;
|
|
@@ -708,7 +708,7 @@ var script = {
|
|
|
708
708
|
return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.searchLocale) === value.toLocaleLowerCase(this.searchLocale);
|
|
709
709
|
},
|
|
710
710
|
isValidOption: function isValidOption(option) {
|
|
711
|
-
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
711
|
+
return ObjectUtils.isNotEmpty(option) && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
712
712
|
},
|
|
713
713
|
isValidSelectedOption: function isValidSelectedOption(option) {
|
|
714
714
|
return this.isValidOption(option) && this.isSelected(option);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/button";import t from"primevue/icons/chevrondown";import i from"primevue/icons/spinner";import n from"primevue/icons/timescircle";import o from"primevue/overlayeventbus";import s from"primevue/portal";import l from"primevue/ripple";import{UniqueComponentId as r,ZIndexUtils as a,ObjectUtils as u,DomHandler as c,ConnectedOverlayScrollHandler as d}from"primevue/utils";import p from"primevue/virtualscroller";import h from"primevue/autocomplete/style";import f from"primevue/basecomponent";import{resolveComponent as y,resolveDirective as v,openBlock as m,createElementBlock as b,mergeProps as O,createCommentVNode as g,Fragment as I,renderList as x,renderSlot as S,createElementVNode as w,toDisplayString as k,normalizeClass as L,createBlock as C,resolveDynamicComponent as M,withCtx as V,createVNode as $,Transition as D,createSlots as K,createTextVNode as T,withDirectives as F}from"vue";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function E(){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 B(e,t){if(e){if("string"==typeof e)return j(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?j(e,t):void 0}}function P(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function R(e){if(Array.isArray(e))return j(e)}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var z={name:"AutoComplete",extends:{name:"BaseAutoComplete",extends:f,props:{modelValue:null,suggestions:{type:Array,default:null},field:{type:[String,Function],default:null},optionLabel:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:"blank"},autoHighlight:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:Object,default:null},inputClass:{type:[String,Object],default:null},inputProps:{type:null,default:null},panelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},panelProps:{type:null,default:null},dropdownIcon:{type:String,default:void 0},dropdownClass:{type:[String,Object],default:null},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},selectOnFocus:{type:Boolean,default:!1},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},style:h,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","item-select","item-unselect","dropdown-click","clear","complete","before-show","before-hide","show","hide"],outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,focusOnHover:!1,dirty:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}},watch:{"$attrs.id":function(e){this.id=e||r()},suggestions:function(){this.searching&&(this.show(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1),this.autoUpdateModel()}},mounted:function(){this.id=this.id||r(),this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.alignOverlay()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(a.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.field||this.optionLabel?u.resolveFieldData(e,this.field||this.optionLabel):e},getOptionValue:function(e){return e},getOptionRenderKey:function(e,t){return(this.dataKey?u.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&u.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return u.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return u.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&c.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.dirty=e,t.overlayVisible=!1,t.focusedOptionIndex=-1,e&&c.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}},onInput:function(e){var t=this;this.searchTimeout&&clearTimeout(this.searchTimeout);var i=e.target.value;this.multiple||this.updateModel(e,i),0===i.length?(this.hide(),this.$emit("clear")):i.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout((function(){t.search(e,i,"input")}),this.delay)):this.hide()},onChange:function(e){var t=this;if(this.forceSelection){var i=!1;if(this.visibleOptions){var n=this.visibleOptions.find((function(e){return t.isOptionMatched(e,t.$refs.focusInput.value||"")}));void 0!==n&&(i=!0,!this.isSelected(n)&&this.onOptionSelect(e,n))}i||(this.$refs.focusInput.value="",this.$emit("clear"),!this.multiple&&this.updateModel(e,null))}},onMultipleContainerFocus:function(){this.disabled||(this.focused=!0)},onMultipleContainerBlur:function(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}},onContainerClick:function(e){this.disabled||this.searching||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||this.overlay&&this.overlay.contains(e.target)||c.focus(this.$refs.focusInput)},onDropdownClick:function(e){var t=void 0;this.overlayVisible?this.hide(!0):(c.focus(this.$refs.focusInput),t=this.$refs.focusInput.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,t,"dropdown")),this.$emit("dropdown-click",{originalEvent:e,query:t})},onOptionSelect:function(e,t){var i,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value="",this.isSelected(t)||this.updateModel(e,[].concat(R(i=this.modelValue||[])||P(i)||B(i)||E(),[o]))):this.updateModel(e,o),this.$emit("item-select",{originalEvent:e,value:t}),n&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOverlayClick:function(e){o.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){if(this.overlayVisible){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowUpKey:function(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey:function(e){var t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(u.isEmpty(t.value)&&this.hasSelectedOption?(c.focus(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.modelValue.length):e.stopPropagation())},onArrowRightKey:function(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey:function(e){var t=e.currentTarget;t.setSelectionRange(0,e.shiftKey?t.value.length:0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey:function(e){var t=e.currentTarget,i=t.value.length;t.setSelectionRange(e.shiftKey?0:i,i),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onBackspaceKey:function(e){if(this.multiple){if(u.isNotEmpty(this.modelValue)&&!this.$refs.focusInput.value){var t=this.modelValue[this.modelValue.length-1],i=this.modelValue.slice(0,-1);this.$emit("update:modelValue",i),this.$emit("item-unselect",{originalEvent:e,value:t})}e.stopPropagation()}},onArrowLeftKeyOnMultiple:function(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple:function(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.modelValue.length-1&&(this.focusedMultipleOptionIndex=-1,c.focus(this.$refs.focusInput))},onBackspaceKeyOnMultiple:function(e){-1!==this.focusedMultipleOptionIndex&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter:function(e){a.set("overlay",e,this.$primevue.config.zIndex.overlay),c.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay()},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){a.clear(e)},alignOverlay:function(){var e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput;"self"===this.appendTo?c.relativePosition(this.overlay,e):(this.overlay.style.minWidth=c.getOuterWidth(e)+"px",c.absolutePosition(this.overlay,e))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new d(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!c.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked:function(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput},isDropdownClicked:function(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},isOptionMatched:function(e,t){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption:function(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return u.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return u.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?u.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search:function(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},removeOption:function(e,t){var i=this,n=this.modelValue[t],o=this.modelValue.filter((function(e,i){return i!==t})).map((function(e){return i.getOptionValue(e)}));this.updateModel(e,o),this.$emit("item-unselect",{originalEvent:e,value:n}),this.dirty=!0,c.focus(this.$refs.focusInput)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==t?"".concat(this.id,"_").concat(t):this.focusedOptionId,n=c.findSingle(this.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((function(){e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}),0)},autoUpdateModel:function(){(this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue:function(){if(this.modelValue){if("object"===A(this.modelValue)){var e=this.getOptionLabel(this.modelValue);return null!=e?e:this.modelValue}return this.modelValue}return""},hasSelectedOption:function(){return u.isNotEmpty(this.modelValue)},equalityKey:function(){return this.dataKey},searchResultMessageText:function(){return u.isNotEmpty(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText:function(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText:function(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue.length:"1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},focusedMultipleOptionId:function(){return-1!==this.focusedMultipleOptionIndex?"".concat(this.id,"_multiple_option_").concat(this.focusedMultipleOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},components:{Button:e,VirtualScroller:p,Portal:s,ChevronDownIcon:t,SpinnerIcon:i,TimesCircleIcon:n},directives:{ripple:l}};function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function H(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?H(Object(i),!0).forEach((function(t){U(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):H(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function U(e,t,i){return(t=N(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function N(e){var t=q(e,"string");return"symbol"===G(t)?t:String(t)}function q(e,t){if("object"!==G(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var W=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],J=["aria-activedescendant"],Q=["id","aria-label","aria-setsize","aria-posinset"],X=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],Y=["id"],Z=["id"],ee=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focus","data-p-disabled"];z.render=function(e,t,i,n,o,s){var l=y("SpinnerIcon"),r=y("Button"),a=y("VirtualScroller"),u=y("Portal"),c=v("ripple");return m(),b("div",O({ref:"container",class:e.cx("root"),style:e.sx("root"),onClick:t[15]||(t[15]=function(){return s.onContainerClick&&s.onContainerClick.apply(s,arguments)})},e.ptm("root"),{"data-pc-name":"autocomplete"}),[e.multiple?g("",!0):(m(),b("input",O({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.inputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[1]||(t[1]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[2]||(t[2]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[3]||(t[3]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[4]||(t[4]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},_(_({},e.inputProps),e.ptm("input"))),null,16,W)),e.multiple?(m(),b("ul",O({key:1,ref:"multiContainer",class:e.cx("container"),tabindex:"-1",role:"listbox","aria-orientation":"horizontal","aria-activedescendant":o.focused?s.focusedMultipleOptionId:void 0,onFocus:t[10]||(t[10]=function(){return s.onMultipleContainerFocus&&s.onMultipleContainerFocus.apply(s,arguments)}),onBlur:t[11]||(t[11]=function(){return s.onMultipleContainerBlur&&s.onMultipleContainerBlur.apply(s,arguments)}),onKeydown:t[12]||(t[12]=function(){return s.onMultipleContainerKeyDown&&s.onMultipleContainerKeyDown.apply(s,arguments)})},e.ptm("container")),[(m(!0),b(I,null,x(e.modelValue,(function(t,i){return m(),b("li",O({key:i,id:o.id+"_multiple_option_"+i,class:e.cx("token",{i:i}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":!0,"aria-setsize":e.modelValue.length,"aria-posinset":i+1},e.ptm("token")),[S(e.$slots,"chip",{value:t},(function(){return[w("span",O({class:e.cx("tokenLabel")},e.ptm("tokenLabel")),k(s.getOptionLabel(t)),17)]})),S(e.$slots,"removetokenicon",{class:L(e.cx("removeTokenIcon")),index:i,onClick:function(e){return s.removeOption(e,i)}},(function(){return[(m(),C(M(e.removeTokenIcon?"span":"TimesCircleIcon"),O({class:[e.cx("removeTokenIcon"),e.removeTokenIcon],onClick:function(e){return s.removeOption(e,i)},"aria-hidden":"true"},e.ptm("removeTokenIcon")),null,16,["class","onClick"]))]}))],16,Q)})),128)),w("li",O({class:e.cx("inputToken"),role:"option"},e.ptm("inputToken")),[w("input",O({ref:"focusInput",id:e.inputId,type:"text",style:e.inputStyle,class:e.inputClass,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[5]||(t[5]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[6]||(t[6]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[7]||(t[7]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[8]||(t[8]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[9]||(t[9]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},_(_({},e.inputProps),e.ptm("input"))),null,16,X)],16)],16,J)):g("",!0),o.searching||e.loading?S(e.$slots,"loadingicon",{key:2,class:L(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(m(),b("i",O({key:0,class:["pi-spin",e.cx("loadingIcon"),e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(m(),C(l,O({key:1,class:[e.cx("loadingIcon"),e.loadingIcon],spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):g("",!0),e.dropdown?(m(),C(r,{key:3,ref:"dropdownButton",type:"button",tabindex:"-1",class:L([e.cx("dropdownButton"),e.dropdownClass]),disabled:e.disabled,"aria-hidden":"true",onClick:s.onDropdownClick,unstyled:e.unstyled,pt:e.ptm("dropdownButton"),"data-pc-section":"dropdownbutton"},{icon:V((function(){return[S(e.$slots,"dropdownicon",{class:L(e.dropdownIcon)},(function(){return[(m(),C(M(e.dropdownIcon?"span":"ChevronDownIcon"),O({class:e.dropdownIcon},e.ptm("dropdownButton").icon,{"data-pc-section":"dropdownicon"}),null,16,["class"]))]}))]})),_:3},8,["class","disabled","onClick","unstyled","pt"])):g("",!0),w("span",O({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSearchResult"),{"data-p-hidden-accessible":!0}),k(s.searchResultMessageText),17),$(u,{appendTo:e.appendTo},{default:V((function(){return[$(D,O({name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},e.ptm("transition")),{default:V((function(){return[o.overlayVisible?(m(),b("div",O({key:0,ref:s.overlayRef,class:[e.cx("panel"),e.panelClass],style:_(_({},e.panelStyle),{},{"max-height":s.virtualScrollerDisabled?e.scrollHeight:""}),onClick:t[13]||(t[13]=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)}),onKeydown:t[14]||(t[14]=function(){return s.onOverlayKeyDown&&s.onOverlayKeyDown.apply(s,arguments)})},_(_({},e.panelProps),e.ptm("panel"))),[S(e.$slots,"header",{value:e.modelValue,suggestions:s.visibleOptions}),$(a,O({ref:s.virtualScrollerRef},e.virtualScrollerOptions,{style:{height:e.scrollHeight},items:s.visibleOptions,tabindex:-1,disabled:s.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),K({content:V((function(t){var i=t.styleClass,n=t.contentRef,l=t.items,r=t.getItemOptions,a=t.contentStyle,u=t.itemSize;return[w("ul",O({ref:function(e){return s.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox"},e.ptm("list")),[(m(!0),b(I,null,x(l,(function(t,i){return m(),b(I,{key:s.getOptionRenderKey(t,s.getOptionIndex(i,r))},[s.isOptionGroup(t)?(m(),b("li",O({key:0,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[S(e.$slots,"optiongroup",{option:t.optionGroup,item:t.optionGroup,index:s.getOptionIndex(i,r)},(function(){return[T(k(s.getOptionGroupLabel(t.optionGroup)),1)]}))],16,Z)):F((m(),b("li",O({key:1,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("item",{option:t,i:i,getItemOptions:r}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":s.isSelected(t),"aria-disabled":s.isOptionDisabled(t),"aria-setsize":s.ariaSetSize,"aria-posinset":s.getAriaPosInset(s.getOptionIndex(i,r)),onClick:function(e){return s.onOptionSelect(e,t)},onMousemove:function(e){return s.onOptionMouseMove(e,s.getOptionIndex(i,r))},"data-p-highlight":s.isSelected(t),"data-p-focus":o.focusedOptionIndex===s.getOptionIndex(i,r),"data-p-disabled":s.isOptionDisabled(t)},s.getPTOptions(t,r,i,"item")),[e.$slots.option?S(e.$slots,"option",{key:0,option:t,index:s.getOptionIndex(i,r)},(function(){return[T(k(s.getOptionLabel(t)),1)]})):S(e.$slots,"item",{key:1,item:t,index:s.getOptionIndex(i,r)},(function(){return[T(k(s.getOptionLabel(t)),1)]}))],16,ee)),[[c]])],64)})),128)),!l||l&&0===l.length?(m(),b("li",O({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[S(e.$slots,"empty",{},(function(){return[T(k(s.searchResultMessageText),1)]}))],16)):g("",!0)],16,Y)]})),_:2},[e.$slots.loader?{name:"loader",fn:V((function(t){return[S(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["style","items","disabled","pt"]),S(e.$slots,"footer",{value:e.modelValue,suggestions:s.visibleOptions}),w("span",O({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),k(s.selectedMessageText),17)],16)):g("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16)};export{z as default};
|
|
1
|
+
import e from"primevue/button";import t from"primevue/icons/chevrondown";import i from"primevue/icons/spinner";import n from"primevue/icons/timescircle";import o from"primevue/overlayeventbus";import s from"primevue/portal";import l from"primevue/ripple";import{UniqueComponentId as r,ZIndexUtils as a,ObjectUtils as u,DomHandler as c,ConnectedOverlayScrollHandler as d}from"primevue/utils";import p from"primevue/virtualscroller";import h from"primevue/autocomplete/style";import f from"primevue/basecomponent";import{resolveComponent as y,resolveDirective as v,openBlock as m,createElementBlock as b,mergeProps as O,createCommentVNode as g,Fragment as I,renderList as x,renderSlot as S,createElementVNode as w,toDisplayString as k,normalizeClass as L,createBlock as C,resolveDynamicComponent as M,withCtx as V,createVNode as $,Transition as D,createSlots as K,createTextVNode as T,withDirectives as F}from"vue";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function E(){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 B(e,t){if(e){if("string"==typeof e)return j(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?j(e,t):void 0}}function P(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function R(e){if(Array.isArray(e))return j(e)}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var z={name:"AutoComplete",extends:{name:"BaseAutoComplete",extends:f,props:{modelValue:null,suggestions:{type:Array,default:null},field:{type:[String,Function],default:null},optionLabel:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:"blank"},autoHighlight:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:Object,default:null},inputClass:{type:[String,Object],default:null},inputProps:{type:null,default:null},panelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},panelProps:{type:null,default:null},dropdownIcon:{type:String,default:void 0},dropdownClass:{type:[String,Object],default:null},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},selectOnFocus:{type:Boolean,default:!1},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},style:h,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","item-select","item-unselect","dropdown-click","clear","complete","before-show","before-hide","show","hide"],outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,focusOnHover:!1,dirty:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}},watch:{"$attrs.id":function(e){this.id=e||r()},suggestions:function(){this.searching&&(this.show(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1),this.autoUpdateModel()}},mounted:function(){this.id=this.id||r(),this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.alignOverlay()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(a.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.field||this.optionLabel?u.resolveFieldData(e,this.field||this.optionLabel):e},getOptionValue:function(e){return e},getOptionRenderKey:function(e,t){return(this.dataKey?u.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&u.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return u.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return u.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&c.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.dirty=e,t.overlayVisible=!1,t.focusedOptionIndex=-1,e&&c.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}},onInput:function(e){var t=this;this.searchTimeout&&clearTimeout(this.searchTimeout);var i=e.target.value;this.multiple||this.updateModel(e,i),0===i.length?(this.hide(),this.$emit("clear")):i.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout((function(){t.search(e,i,"input")}),this.delay)):this.hide()},onChange:function(e){var t=this;if(this.forceSelection){var i=!1;if(this.visibleOptions){var n=this.visibleOptions.find((function(e){return t.isOptionMatched(e,t.$refs.focusInput.value||"")}));void 0!==n&&(i=!0,!this.isSelected(n)&&this.onOptionSelect(e,n))}i||(this.$refs.focusInput.value="",this.$emit("clear"),!this.multiple&&this.updateModel(e,null))}},onMultipleContainerFocus:function(){this.disabled||(this.focused=!0)},onMultipleContainerBlur:function(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}},onContainerClick:function(e){this.disabled||this.searching||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||this.overlay&&this.overlay.contains(e.target)||c.focus(this.$refs.focusInput)},onDropdownClick:function(e){var t=void 0;this.overlayVisible?this.hide(!0):(c.focus(this.$refs.focusInput),t=this.$refs.focusInput.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,t,"dropdown")),this.$emit("dropdown-click",{originalEvent:e,query:t})},onOptionSelect:function(e,t){var i,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value="",this.isSelected(t)||this.updateModel(e,[].concat(R(i=this.modelValue||[])||P(i)||B(i)||E(),[o]))):this.updateModel(e,o),this.$emit("item-select",{originalEvent:e,value:t}),n&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOverlayClick:function(e){o.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){if(this.overlayVisible){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowUpKey:function(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey:function(e){var t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(u.isEmpty(t.value)&&this.hasSelectedOption?(c.focus(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.modelValue.length):e.stopPropagation())},onArrowRightKey:function(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey:function(e){var t=e.currentTarget;t.setSelectionRange(0,e.shiftKey?t.value.length:0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey:function(e){var t=e.currentTarget,i=t.value.length;t.setSelectionRange(e.shiftKey?0:i,i),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onBackspaceKey:function(e){if(this.multiple){if(u.isNotEmpty(this.modelValue)&&!this.$refs.focusInput.value){var t=this.modelValue[this.modelValue.length-1],i=this.modelValue.slice(0,-1);this.$emit("update:modelValue",i),this.$emit("item-unselect",{originalEvent:e,value:t})}e.stopPropagation()}},onArrowLeftKeyOnMultiple:function(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple:function(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.modelValue.length-1&&(this.focusedMultipleOptionIndex=-1,c.focus(this.$refs.focusInput))},onBackspaceKeyOnMultiple:function(e){-1!==this.focusedMultipleOptionIndex&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter:function(e){a.set("overlay",e,this.$primevue.config.zIndex.overlay),c.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay()},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){a.clear(e)},alignOverlay:function(){var e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput;"self"===this.appendTo?c.relativePosition(this.overlay,e):(this.overlay.style.minWidth=c.getOuterWidth(e)+"px",c.absolutePosition(this.overlay,e))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new d(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!c.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked:function(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput},isDropdownClicked:function(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},isOptionMatched:function(e,t){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption:function(e){return u.isNotEmpty(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return u.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return u.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?u.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search:function(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},removeOption:function(e,t){var i=this,n=this.modelValue[t],o=this.modelValue.filter((function(e,i){return i!==t})).map((function(e){return i.getOptionValue(e)}));this.updateModel(e,o),this.$emit("item-unselect",{originalEvent:e,value:n}),this.dirty=!0,c.focus(this.$refs.focusInput)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==t?"".concat(this.id,"_").concat(t):this.focusedOptionId,n=c.findSingle(this.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((function(){e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}),0)},autoUpdateModel:function(){(this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue:function(){if(this.modelValue){if("object"===A(this.modelValue)){var e=this.getOptionLabel(this.modelValue);return null!=e?e:this.modelValue}return this.modelValue}return""},hasSelectedOption:function(){return u.isNotEmpty(this.modelValue)},equalityKey:function(){return this.dataKey},searchResultMessageText:function(){return u.isNotEmpty(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText:function(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText:function(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue.length:"1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},focusedMultipleOptionId:function(){return-1!==this.focusedMultipleOptionIndex?"".concat(this.id,"_multiple_option_").concat(this.focusedMultipleOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},components:{Button:e,VirtualScroller:p,Portal:s,ChevronDownIcon:t,SpinnerIcon:i,TimesCircleIcon:n},directives:{ripple:l}};function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function H(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?H(Object(i),!0).forEach((function(t){N(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):H(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function N(e,t,i){return(t=U(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function U(e){var t=q(e,"string");return"symbol"===G(t)?t:String(t)}function q(e,t){if("object"!==G(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var W=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],J=["aria-activedescendant"],Q=["id","aria-label","aria-setsize","aria-posinset"],X=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],Y=["id"],Z=["id"],ee=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focus","data-p-disabled"];z.render=function(e,t,i,n,o,s){var l=y("SpinnerIcon"),r=y("Button"),a=y("VirtualScroller"),u=y("Portal"),c=v("ripple");return m(),b("div",O({ref:"container",class:e.cx("root"),style:e.sx("root"),onClick:t[15]||(t[15]=function(){return s.onContainerClick&&s.onContainerClick.apply(s,arguments)})},e.ptm("root"),{"data-pc-name":"autocomplete"}),[e.multiple?g("",!0):(m(),b("input",O({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.inputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[1]||(t[1]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[2]||(t[2]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[3]||(t[3]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[4]||(t[4]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},_(_({},e.inputProps),e.ptm("input"))),null,16,W)),e.multiple?(m(),b("ul",O({key:1,ref:"multiContainer",class:e.cx("container"),tabindex:"-1",role:"listbox","aria-orientation":"horizontal","aria-activedescendant":o.focused?s.focusedMultipleOptionId:void 0,onFocus:t[10]||(t[10]=function(){return s.onMultipleContainerFocus&&s.onMultipleContainerFocus.apply(s,arguments)}),onBlur:t[11]||(t[11]=function(){return s.onMultipleContainerBlur&&s.onMultipleContainerBlur.apply(s,arguments)}),onKeydown:t[12]||(t[12]=function(){return s.onMultipleContainerKeyDown&&s.onMultipleContainerKeyDown.apply(s,arguments)})},e.ptm("container")),[(m(!0),b(I,null,x(e.modelValue,(function(t,i){return m(),b("li",O({key:i,id:o.id+"_multiple_option_"+i,class:e.cx("token",{i:i}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":!0,"aria-setsize":e.modelValue.length,"aria-posinset":i+1},e.ptm("token")),[S(e.$slots,"chip",{value:t},(function(){return[w("span",O({class:e.cx("tokenLabel")},e.ptm("tokenLabel")),k(s.getOptionLabel(t)),17)]})),S(e.$slots,"removetokenicon",{class:L(e.cx("removeTokenIcon")),index:i,onClick:function(e){return s.removeOption(e,i)}},(function(){return[(m(),C(M(e.removeTokenIcon?"span":"TimesCircleIcon"),O({class:[e.cx("removeTokenIcon"),e.removeTokenIcon],onClick:function(e){return s.removeOption(e,i)},"aria-hidden":"true"},e.ptm("removeTokenIcon")),null,16,["class","onClick"]))]}))],16,Q)})),128)),w("li",O({class:e.cx("inputToken"),role:"option"},e.ptm("inputToken")),[w("input",O({ref:"focusInput",id:e.inputId,type:"text",style:e.inputStyle,class:e.inputClass,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[5]||(t[5]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[6]||(t[6]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[7]||(t[7]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[8]||(t[8]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[9]||(t[9]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},_(_({},e.inputProps),e.ptm("input"))),null,16,X)],16)],16,J)):g("",!0),o.searching||e.loading?S(e.$slots,"loadingicon",{key:2,class:L(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(m(),b("i",O({key:0,class:["pi-spin",e.cx("loadingIcon"),e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(m(),C(l,O({key:1,class:[e.cx("loadingIcon"),e.loadingIcon],spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):g("",!0),e.dropdown?(m(),C(r,{key:3,ref:"dropdownButton",type:"button",tabindex:"-1",class:L([e.cx("dropdownButton"),e.dropdownClass]),disabled:e.disabled,"aria-hidden":"true",onClick:s.onDropdownClick,unstyled:e.unstyled,pt:e.ptm("dropdownButton"),"data-pc-section":"dropdownbutton"},{icon:V((function(){return[S(e.$slots,"dropdownicon",{class:L(e.dropdownIcon)},(function(){return[(m(),C(M(e.dropdownIcon?"span":"ChevronDownIcon"),O({class:e.dropdownIcon},e.ptm("dropdownButton").icon,{"data-pc-section":"dropdownicon"}),null,16,["class"]))]}))]})),_:3},8,["class","disabled","onClick","unstyled","pt"])):g("",!0),w("span",O({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSearchResult"),{"data-p-hidden-accessible":!0}),k(s.searchResultMessageText),17),$(u,{appendTo:e.appendTo},{default:V((function(){return[$(D,O({name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},e.ptm("transition")),{default:V((function(){return[o.overlayVisible?(m(),b("div",O({key:0,ref:s.overlayRef,class:[e.cx("panel"),e.panelClass],style:_(_({},e.panelStyle),{},{"max-height":s.virtualScrollerDisabled?e.scrollHeight:""}),onClick:t[13]||(t[13]=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)}),onKeydown:t[14]||(t[14]=function(){return s.onOverlayKeyDown&&s.onOverlayKeyDown.apply(s,arguments)})},_(_({},e.panelProps),e.ptm("panel"))),[S(e.$slots,"header",{value:e.modelValue,suggestions:s.visibleOptions}),$(a,O({ref:s.virtualScrollerRef},e.virtualScrollerOptions,{style:{height:e.scrollHeight},items:s.visibleOptions,tabindex:-1,disabled:s.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),K({content:V((function(t){var i=t.styleClass,n=t.contentRef,l=t.items,r=t.getItemOptions,a=t.contentStyle,u=t.itemSize;return[w("ul",O({ref:function(e){return s.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox"},e.ptm("list")),[(m(!0),b(I,null,x(l,(function(t,i){return m(),b(I,{key:s.getOptionRenderKey(t,s.getOptionIndex(i,r))},[s.isOptionGroup(t)?(m(),b("li",O({key:0,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[S(e.$slots,"optiongroup",{option:t.optionGroup,item:t.optionGroup,index:s.getOptionIndex(i,r)},(function(){return[T(k(s.getOptionGroupLabel(t.optionGroup)),1)]}))],16,Z)):F((m(),b("li",O({key:1,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("item",{option:t,i:i,getItemOptions:r}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":s.isSelected(t),"aria-disabled":s.isOptionDisabled(t),"aria-setsize":s.ariaSetSize,"aria-posinset":s.getAriaPosInset(s.getOptionIndex(i,r)),onClick:function(e){return s.onOptionSelect(e,t)},onMousemove:function(e){return s.onOptionMouseMove(e,s.getOptionIndex(i,r))},"data-p-highlight":s.isSelected(t),"data-p-focus":o.focusedOptionIndex===s.getOptionIndex(i,r),"data-p-disabled":s.isOptionDisabled(t)},s.getPTOptions(t,r,i,"item")),[e.$slots.option?S(e.$slots,"option",{key:0,option:t,index:s.getOptionIndex(i,r)},(function(){return[T(k(s.getOptionLabel(t)),1)]})):S(e.$slots,"item",{key:1,item:t,index:s.getOptionIndex(i,r)},(function(){return[T(k(s.getOptionLabel(t)),1)]}))],16,ee)),[[c]])],64)})),128)),!l||l&&0===l.length?(m(),b("li",O({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[S(e.$slots,"empty",{},(function(){return[T(k(s.searchResultMessageText),1)]}))],16)):g("",!0)],16,Y)]})),_:2},[e.$slots.loader?{name:"loader",fn:V((function(t){return[S(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["style","items","disabled","pt"]),S(e.$slots,"footer",{value:e.modelValue,suggestions:s.visibleOptions}),w("span",O({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),k(s.selectedMessageText),17)],16)):g("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16)};export{z as default};
|
|
@@ -712,7 +712,7 @@ this.primevue.autocomplete = (function (Button, ChevronDownIcon, SpinnerIcon, Ti
|
|
|
712
712
|
return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.searchLocale) === value.toLocaleLowerCase(this.searchLocale);
|
|
713
713
|
},
|
|
714
714
|
isValidOption: function isValidOption(option) {
|
|
715
|
-
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
715
|
+
return utils.ObjectUtils.isNotEmpty(option) && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
716
716
|
},
|
|
717
717
|
isValidSelectedOption: function isValidSelectedOption(option) {
|
|
718
718
|
return this.isValidOption(option) && this.isSelected(option);
|