primevue 4.2.5 → 4.3.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/LICENSE.md +1 -1
- package/accordion/Accordion.vue +0 -8
- package/accordion/index.mjs +1 -9
- package/accordion/index.mjs.map +1 -1
- package/accordion/style/index.mjs +2 -5
- package/accordion/style/index.mjs.map +1 -1
- package/accordioncontent/index.mjs +1 -1
- package/accordionheader/AccordionHeader.vue +2 -2
- package/accordionheader/index.mjs +4 -4
- package/accordionheader/index.mjs.map +1 -1
- package/accordionpanel/index.mjs +1 -1
- package/animateonscroll/index.d.ts +1 -1
- package/animateonscroll/index.mjs +4 -4
- package/animateonscroll/index.mjs.map +1 -1
- package/animateonscroll/style/index.d.ts +1 -1
- package/autocomplete/AutoComplete.vue +90 -23
- package/autocomplete/index.d.ts +19 -2
- package/autocomplete/index.mjs +127 -55
- package/autocomplete/index.mjs.map +1 -1
- package/autocomplete/style/index.mjs +15 -19
- package/autocomplete/style/index.mjs.map +1 -1
- package/avatar/index.mjs +1 -1
- package/avatar/style/index.mjs +4 -7
- package/avatar/style/index.mjs.map +1 -1
- package/avatargroup/index.mjs +1 -1
- package/badge/index.mjs +1 -1
- package/badge/style/index.mjs +6 -9
- package/badge/style/index.mjs.map +1 -1
- package/badgedirective/index.mjs +6 -6
- package/badgedirective/index.mjs.map +1 -1
- package/blockui/BlockUI.vue +2 -1
- package/blockui/index.mjs +3 -2
- package/blockui/index.mjs.map +1 -1
- package/blockui/style/index.mjs +2 -5
- package/blockui/style/index.mjs.map +1 -1
- package/breadcrumb/index.mjs +1 -1
- package/breadcrumb/style/index.mjs +4 -7
- package/breadcrumb/style/index.mjs.map +1 -1
- package/button/Button.vue +1 -1
- package/button/index.d.ts +11 -1
- package/button/index.mjs +5 -4
- package/button/index.mjs.map +1 -1
- package/button/style/index.mjs +9 -12
- package/button/style/index.mjs.map +1 -1
- package/buttongroup/index.mjs +1 -1
- package/buttongroup/style/index.mjs +2 -5
- package/buttongroup/style/index.mjs.map +1 -1
- package/card/index.mjs +1 -1
- package/card/style/index.mjs +2 -5
- package/card/style/index.mjs.map +1 -1
- package/carousel/index.mjs +2 -2
- package/carousel/index.mjs.map +1 -1
- package/carousel/style/index.mjs +19 -22
- package/carousel/style/index.mjs.map +1 -1
- package/cascadeselect/CascadeSelect.vue +16 -17
- package/cascadeselect/CascadeSelectSub.vue +1 -1
- package/cascadeselect/index.d.ts +2 -2
- package/cascadeselect/index.mjs +26 -28
- package/cascadeselect/index.mjs.map +1 -1
- package/cascadeselect/style/index.mjs +17 -19
- package/cascadeselect/style/index.mjs.map +1 -1
- package/chart/index.mjs +4 -4
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.mjs +2 -2
- package/checkbox/index.mjs.map +1 -1
- package/checkbox/style/index.mjs +5 -8
- package/checkbox/style/index.mjs.map +1 -1
- package/checkboxgroup/index.mjs +1 -1
- package/checkboxgroup/style/index.mjs +2 -5
- package/checkboxgroup/style/index.mjs.map +1 -1
- package/chip/index.mjs +1 -1
- package/chip/style/index.mjs +2 -5
- package/chip/style/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +2 -2
- package/colorpicker/index.mjs +7 -7
- package/colorpicker/index.mjs.map +1 -1
- package/colorpicker/style/index.mjs +7 -10
- package/colorpicker/style/index.mjs.map +1 -1
- package/column/BaseColumn.vue +1 -1
- package/column/index.d.ts +2 -2
- package/column/index.mjs +1 -1
- package/column/index.mjs.map +1 -1
- package/columngroup/index.mjs.map +1 -1
- package/confirmdialog/index.d.ts +4 -0
- package/confirmdialog/index.mjs +1 -1
- package/confirmdialog/index.mjs.map +1 -1
- package/confirmdialog/style/index.mjs +2 -5
- package/confirmdialog/style/index.mjs.map +1 -1
- package/confirmpopup/ConfirmPopup.vue +2 -2
- package/confirmpopup/index.mjs +4 -4
- package/confirmpopup/index.mjs.map +1 -1
- package/confirmpopup/style/index.mjs +2 -5
- package/confirmpopup/style/index.mjs.map +1 -1
- package/contextmenu/ContextMenu.vue +6 -12
- package/contextmenu/index.mjs +9 -15
- package/contextmenu/index.mjs.map +1 -1
- package/contextmenu/style/index.mjs +7 -10
- package/contextmenu/style/index.mjs.map +1 -1
- package/datatable/BodyCell.vue +24 -14
- package/datatable/BodyRow.vue +0 -1
- package/datatable/ColumnFilter.vue +10 -16
- package/datatable/DataTable.vue +6 -6
- package/datatable/FilterHeaderCell.vue +189 -0
- package/datatable/FooterCell.vue +2 -2
- package/datatable/HeaderCell.vue +4 -4
- package/datatable/TableBody.vue +3 -10
- package/datatable/TableHeader.vue +23 -50
- package/datatable/index.d.ts +89 -39
- package/datatable/index.mjs +444 -234
- package/datatable/index.mjs.map +1 -1
- package/datatable/style/index.mjs +32 -36
- package/datatable/style/index.mjs.map +1 -1
- package/dataview/index.mjs +2 -2
- package/dataview/index.mjs.map +1 -1
- package/dataview/style/index.mjs +6 -9
- package/dataview/style/index.mjs.map +1 -1
- package/datepicker/BaseDatePicker.vue +0 -4
- package/datepicker/DatePicker.vue +46 -20
- package/datepicker/index.d.ts +2 -6
- package/datepicker/index.mjs +78 -52
- package/datepicker/index.mjs.map +1 -1
- package/datepicker/style/index.mjs +26 -28
- package/datepicker/style/index.mjs.map +1 -1
- package/deferredcontent/index.mjs +1 -1
- package/dialog/Dialog.vue +3 -11
- package/dialog/index.d.ts +1 -1
- package/dialog/index.mjs +7 -14
- package/dialog/index.mjs.map +1 -1
- package/dialog/style/index.mjs +10 -14
- package/dialog/style/index.mjs.map +1 -1
- package/divider/index.mjs +1 -1
- package/divider/style/index.mjs +6 -10
- package/divider/style/index.mjs.map +1 -1
- package/dock/DockSub.vue +5 -13
- package/dock/index.mjs +6 -14
- package/dock/index.mjs.map +1 -1
- package/dock/style/index.mjs +9 -12
- package/dock/style/index.mjs.map +1 -1
- package/drawer/Drawer.vue +7 -4
- package/drawer/index.d.ts +4 -0
- package/drawer/index.mjs +7 -5
- package/drawer/index.mjs.map +1 -1
- package/drawer/style/index.mjs +10 -13
- package/drawer/style/index.mjs.map +1 -1
- package/dynamicdialog/DynamicDialog.vue +5 -5
- package/dynamicdialog/index.mjs +8 -6
- package/dynamicdialog/index.mjs.map +1 -1
- package/editor/Editor.vue +9 -11
- package/editor/index.d.ts +0 -15
- package/editor/index.mjs +16 -16
- package/editor/index.mjs.map +1 -1
- package/editor/style/index.mjs +4 -7
- package/editor/style/index.mjs.map +1 -1
- package/fieldset/Fieldset.vue +4 -12
- package/fieldset/index.mjs +9 -17
- package/fieldset/index.mjs.map +1 -1
- package/fieldset/style/index.mjs +4 -7
- package/fieldset/style/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +9 -7
- package/fileupload/index.d.ts +3 -3
- package/fileupload/index.mjs +12 -10
- package/fileupload/index.mjs.map +1 -1
- package/fileupload/style/index.mjs +4 -7
- package/fileupload/style/index.mjs.map +1 -1
- package/floatlabel/index.mjs +1 -1
- package/floatlabel/style/index.mjs +4 -8
- package/floatlabel/style/index.mjs.map +1 -1
- package/fluid/index.mjs +1 -1
- package/focustrap/index.mjs +4 -4
- package/focustrap/index.mjs.map +1 -1
- package/galleria/Galleria.vue +2 -1
- package/galleria/GalleriaContent.vue +3 -11
- package/galleria/GalleriaThumbnails.vue +15 -8
- package/galleria/index.mjs +28 -30
- package/galleria/index.mjs.map +1 -1
- package/galleria/style/index.mjs +23 -26
- package/galleria/style/index.mjs.map +1 -1
- package/iconfield/index.mjs +1 -1
- package/iconfield/style/index.mjs +2 -5
- package/iconfield/style/index.mjs.map +1 -1
- package/iftalabel/index.mjs +1 -1
- package/iftalabel/style/index.mjs +2 -5
- package/iftalabel/style/index.mjs.map +1 -1
- package/image/Image.vue +2 -1
- package/image/index.d.ts +4 -0
- package/image/index.mjs +6 -5
- package/image/index.mjs.map +1 -1
- package/image/style/index.mjs +8 -11
- package/image/style/index.mjs.map +1 -1
- package/imagecompare/index.mjs +1 -1
- package/imagecompare/style/index.mjs +2 -5
- package/imagecompare/style/index.mjs.map +1 -1
- package/index.d.ts +3 -0
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/inlinemessage/index.mjs +1 -1
- package/inlinemessage/style/index.mjs +7 -10
- package/inlinemessage/style/index.mjs.map +1 -1
- package/inplace/index.mjs +4 -4
- package/inplace/style/index.mjs +4 -7
- package/inplace/style/index.mjs.map +1 -1
- package/inputchips/InputChips.vue +2 -10
- package/inputchips/index.mjs +6 -14
- package/inputchips/index.mjs.map +1 -1
- package/inputchips/style/index.mjs +11 -14
- package/inputchips/style/index.mjs.map +1 -1
- package/inputgroup/index.mjs +1 -1
- package/inputgroup/style/index.mjs +2 -5
- package/inputgroup/style/index.mjs.map +1 -1
- package/inputgroupaddon/index.mjs +1 -1
- package/inputicon/index.mjs +1 -1
- package/inputmask/InputMask.vue +26 -17
- package/inputmask/index.d.ts +2 -2
- package/inputmask/index.mjs +28 -17
- package/inputmask/index.mjs.map +1 -1
- package/inputnumber/InputNumber.vue +17 -6
- package/inputnumber/index.d.ts +4 -4
- package/inputnumber/index.mjs +20 -12
- package/inputnumber/index.mjs.map +1 -1
- package/inputnumber/style/index.mjs +12 -14
- package/inputnumber/style/index.mjs.map +1 -1
- package/inputotp/index.d.ts +23 -8
- package/inputotp/index.mjs +1 -1
- package/inputotp/style/index.mjs +2 -5
- package/inputotp/style/index.mjs.map +1 -1
- package/inputtext/InputText.vue +1 -1
- package/inputtext/index.d.ts +1 -1
- package/inputtext/index.mjs +3 -2
- package/inputtext/index.mjs.map +1 -1
- package/inputtext/style/index.mjs +5 -8
- package/inputtext/style/index.mjs.map +1 -1
- package/keyfilter/index.mjs +8 -9
- package/keyfilter/index.mjs.map +1 -1
- package/knob/index.mjs +3 -3
- package/knob/index.mjs.map +1 -1
- package/knob/style/index.mjs +5 -8
- package/knob/style/index.mjs.map +1 -1
- package/listbox/Listbox.vue +7 -13
- package/listbox/index.mjs +10 -16
- package/listbox/index.mjs.map +1 -1
- package/listbox/style/index.mjs +11 -14
- package/listbox/style/index.mjs.map +1 -1
- package/megamenu/MegaMenu.vue +9 -15
- package/megamenu/index.mjs +12 -18
- package/megamenu/index.mjs.map +1 -1
- package/megamenu/style/index.mjs +15 -18
- package/megamenu/style/index.mjs.map +1 -1
- package/menu/Menu.vue +9 -17
- package/menu/index.d.ts +10 -0
- package/menu/index.mjs +10 -17
- package/menu/index.mjs.map +1 -1
- package/menu/style/index.mjs +6 -9
- package/menu/style/index.mjs.map +1 -1
- package/menubar/Menubar.vue +10 -16
- package/menubar/index.mjs +14 -20
- package/menubar/index.mjs.map +1 -1
- package/menubar/style/index.mjs +10 -13
- package/menubar/style/index.mjs.map +1 -1
- package/message/index.mjs +4 -4
- package/message/style/index.mjs +4 -7
- package/message/style/index.mjs.map +1 -1
- package/metergroup/index.mjs +1 -1
- package/metergroup/style/index.mjs +6 -9
- package/metergroup/style/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +23 -18
- package/multiselect/index.d.ts +12 -6
- package/multiselect/index.mjs +32 -28
- package/multiselect/index.mjs.map +1 -1
- package/multiselect/style/index.mjs +17 -20
- package/multiselect/style/index.mjs.map +1 -1
- package/orderlist/OrderList.vue +1 -10
- package/orderlist/index.mjs +7 -15
- package/orderlist/index.mjs.map +1 -1
- package/orderlist/style/index.mjs +2 -5
- package/orderlist/style/index.mjs.map +1 -1
- package/organizationchart/index.mjs +4 -4
- package/organizationchart/style/index.mjs +9 -12
- package/organizationchart/style/index.mjs.map +1 -1
- package/overlaybadge/index.mjs +1 -1
- package/overlaybadge/style/index.mjs +2 -5
- package/overlaybadge/style/index.mjs.map +1 -1
- package/package.json +6 -5
- package/paginator/index.mjs +2 -2
- package/paginator/index.mjs.map +1 -1
- package/paginator/style/index.mjs +18 -21
- package/paginator/style/index.mjs.map +1 -1
- package/panel/Panel.vue +5 -13
- package/panel/index.mjs +7 -15
- package/panel/index.mjs.map +1 -1
- package/panel/style/index.mjs +4 -7
- package/panel/style/index.mjs.map +1 -1
- package/panelmenu/PanelMenu.vue +2 -12
- package/panelmenu/index.mjs +8 -18
- package/panelmenu/index.mjs.map +1 -1
- package/panelmenu/style/index.mjs +8 -11
- package/panelmenu/style/index.mjs.map +1 -1
- package/passthrough/index.mjs +3 -3
- package/password/Password.vue +3 -10
- package/password/index.d.ts +2 -2
- package/password/index.mjs +9 -16
- package/password/index.mjs.map +1 -1
- package/password/style/index.mjs +8 -11
- package/password/style/index.mjs.map +1 -1
- package/picklist/PickList.vue +2 -9
- package/picklist/index.mjs +8 -14
- package/picklist/index.mjs.map +1 -1
- package/picklist/style/index.mjs +2 -5
- package/picklist/style/index.mjs.map +1 -1
- package/popover/Popover.vue +2 -2
- package/popover/index.mjs +4 -4
- package/popover/index.mjs.map +1 -1
- package/popover/style/index.mjs +2 -5
- package/popover/style/index.mjs.map +1 -1
- package/portal/index.mjs +1 -1
- package/progressbar/index.mjs +1 -1
- package/progressbar/style/index.mjs +4 -7
- package/progressbar/style/index.mjs.map +1 -1
- package/progressspinner/index.mjs +1 -1
- package/progressspinner/style/index.mjs +2 -5
- package/progressspinner/style/index.mjs.map +1 -1
- package/radiobutton/index.d.ts +2 -2
- package/radiobutton/index.mjs +1 -1
- package/radiobutton/index.mjs.map +1 -1
- package/radiobutton/style/index.mjs +5 -8
- package/radiobutton/style/index.mjs.map +1 -1
- package/radiobuttongroup/index.mjs +1 -1
- package/radiobuttongroup/style/index.mjs +2 -5
- package/radiobuttongroup/style/index.mjs.map +1 -1
- package/rating/Rating.vue +6 -11
- package/rating/index.mjs +7 -12
- package/rating/index.mjs.map +1 -1
- package/rating/style/index.mjs +11 -14
- package/rating/style/index.mjs.map +1 -1
- package/ripple/index.mjs +16 -13
- package/ripple/index.mjs.map +1 -1
- package/ripple/style/index.mjs +2 -5
- package/ripple/style/index.mjs.map +1 -1
- package/row/index.mjs.map +1 -1
- package/scrollpanel/ScrollPanel.vue +1 -10
- package/scrollpanel/index.mjs +3 -11
- package/scrollpanel/index.mjs.map +1 -1
- package/scrollpanel/style/index.mjs +2 -5
- package/scrollpanel/style/index.mjs.map +1 -1
- package/scrolltop/index.mjs +1 -1
- package/scrolltop/style/index.mjs +4 -7
- package/scrolltop/style/index.mjs.map +1 -1
- package/select/Select.vue +55 -26
- package/select/index.d.ts +9 -5
- package/select/index.mjs +89 -63
- package/select/index.mjs.map +1 -1
- package/select/style/index.mjs +15 -18
- package/select/style/index.mjs.map +1 -1
- package/selectbutton/index.mjs +3 -3
- package/selectbutton/style/index.mjs +4 -7
- package/selectbutton/style/index.mjs.map +1 -1
- package/skeleton/index.mjs +1 -1
- package/skeleton/style/index.mjs +4 -7
- package/skeleton/style/index.mjs.map +1 -1
- package/slider/Slider.vue +1 -1
- package/slider/index.mjs +3 -3
- package/slider/index.mjs.map +1 -1
- package/slider/style/index.mjs +5 -8
- package/slider/style/index.mjs.map +1 -1
- package/speeddial/SpeedDial.vue +8 -15
- package/speeddial/index.d.ts +1 -1
- package/speeddial/index.mjs +13 -19
- package/speeddial/index.mjs.map +1 -1
- package/speeddial/style/index.mjs +15 -18
- package/speeddial/style/index.mjs.map +1 -1
- package/splitbutton/SplitButton.vue +2 -11
- package/splitbutton/index.d.ts +2 -2
- package/splitbutton/index.mjs +3 -11
- package/splitbutton/index.mjs.map +1 -1
- package/splitbutton/style/index.mjs +5 -8
- package/splitbutton/style/index.mjs.map +1 -1
- package/splitter/Splitter.vue +31 -14
- package/splitter/index.d.ts +1 -1
- package/splitter/index.mjs +28 -14
- package/splitter/index.mjs.map +1 -1
- package/splitter/style/index.mjs +6 -9
- package/splitter/style/index.mjs.map +1 -1
- package/splitterpanel/index.mjs +1 -1
- package/step/index.mjs +1 -1
- package/step/index.mjs.map +1 -1
- package/stepitem/index.mjs +1 -1
- package/stepitem/index.mjs.map +1 -1
- package/steplist/index.mjs +1 -1
- package/steppanel/index.mjs +1 -1
- package/steppanel/index.mjs.map +1 -1
- package/steppanels/index.mjs +1 -1
- package/stepper/Stepper.vue +0 -8
- package/stepper/index.mjs +1 -9
- package/stepper/index.mjs.map +1 -1
- package/stepper/style/index.mjs +4 -7
- package/stepper/style/index.mjs.map +1 -1
- package/steps/index.mjs +2 -2
- package/steps/style/index.mjs +8 -11
- package/steps/style/index.mjs.map +1 -1
- package/styleclass/index.mjs +1 -1
- package/tab/Tab.vue +3 -3
- package/tab/index.mjs +4 -4
- package/tab/index.mjs.map +1 -1
- package/tablist/TabList.vue +2 -2
- package/tablist/index.mjs +4 -4
- package/tablist/index.mjs.map +1 -1
- package/tabmenu/index.mjs +2 -2
- package/tabmenu/index.mjs.map +1 -1
- package/tabmenu/style/index.mjs +6 -9
- package/tabmenu/style/index.mjs.map +1 -1
- package/tabpanel/index.mjs +1 -1
- package/tabpanel/index.mjs.map +1 -1
- package/tabpanels/index.mjs +1 -1
- package/tabs/Tabs.vue +0 -8
- package/tabs/index.mjs +1 -9
- package/tabs/index.mjs.map +1 -1
- package/tabs/style/index.mjs +4 -7
- package/tabs/style/index.mjs.map +1 -1
- package/tabview/TabView.vue +3 -9
- package/tabview/index.mjs +7 -13
- package/tabview/index.mjs.map +1 -1
- package/tabview/style/index.mjs +11 -14
- package/tabview/style/index.mjs.map +1 -1
- package/tag/index.mjs +1 -1
- package/tag/style/index.mjs +4 -7
- package/tag/style/index.mjs.map +1 -1
- package/terminal/index.mjs +1 -1
- package/terminal/style/index.mjs +2 -5
- package/terminal/style/index.mjs.map +1 -1
- package/textarea/Textarea.vue +5 -2
- package/textarea/index.d.ts +4 -4
- package/textarea/index.mjs +7 -3
- package/textarea/index.mjs.map +1 -1
- package/textarea/style/index.mjs +5 -8
- package/textarea/style/index.mjs.map +1 -1
- package/tieredmenu/TieredMenu.vue +8 -13
- package/tieredmenu/index.mjs +11 -16
- package/tieredmenu/index.mjs.map +1 -1
- package/tieredmenu/style/index.mjs +11 -14
- package/tieredmenu/style/index.mjs.map +1 -1
- package/timeline/index.d.ts +4 -0
- package/timeline/index.mjs +1 -1
- package/timeline/style/index.mjs +4 -7
- package/timeline/style/index.mjs.map +1 -1
- package/toast/BaseToast.vue +12 -0
- package/toast/ToastMessage.vue +38 -4
- package/toast/index.d.ts +12 -0
- package/toast/index.mjs +79 -15
- package/toast/index.mjs.map +1 -1
- package/toast/style/index.mjs +12 -15
- package/toast/style/index.mjs.map +1 -1
- package/togglebutton/ToggleButton.vue +1 -0
- package/togglebutton/index.mjs +3 -2
- package/togglebutton/index.mjs.map +1 -1
- package/togglebutton/style/index.mjs +5 -8
- package/togglebutton/style/index.mjs.map +1 -1
- package/toggleswitch/index.mjs +1 -1
- package/toggleswitch/index.mjs.map +1 -1
- package/toggleswitch/style/index.mjs +5 -8
- package/toggleswitch/style/index.mjs.map +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar/style/index.mjs +2 -5
- package/toolbar/style/index.mjs.map +1 -1
- package/tooltip/index.mjs +62 -14
- package/tooltip/index.mjs.map +1 -1
- package/tooltip/style/index.mjs +2 -5
- package/tooltip/style/index.mjs.map +1 -1
- package/tree/Tree.vue +2 -2
- package/tree/index.mjs +16 -16
- package/tree/index.mjs.map +1 -1
- package/tree/style/index.mjs +8 -11
- package/tree/style/index.mjs.map +1 -1
- package/treeselect/TreeSelect.vue +21 -26
- package/treeselect/index.d.ts +2 -2
- package/treeselect/index.mjs +56 -72
- package/treeselect/index.mjs.map +1 -1
- package/treeselect/style/index.mjs +10 -13
- package/treeselect/style/index.mjs.map +1 -1
- package/treetable/BodyCell.vue +8 -5
- package/treetable/FooterCell.vue +2 -2
- package/treetable/HeaderCell.vue +4 -4
- package/treetable/index.d.ts +29 -0
- package/treetable/index.mjs +42 -35
- package/treetable/index.mjs.map +1 -1
- package/treetable/style/index.mjs +22 -25
- package/treetable/style/index.mjs.map +1 -1
- package/umd/primevue.min.js +1 -1
- package/utils/index.d.ts +9 -0
- package/utils/index.mjs +16 -0
- package/utils/index.mjs.map +1 -0
- package/utils/package.json +5 -0
- package/virtualscroller/VirtualScroller.vue +16 -10
- package/virtualscroller/index.mjs +21 -15
- package/virtualscroller/index.mjs.map +1 -1
- package/virtualscroller/style/index.mjs +2 -5
- package/virtualscroller/style/index.mjs.map +1 -1
- package/web-types.json +1 -1
package/autocomplete/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { focus,
|
|
2
|
-
import {
|
|
1
|
+
import { findSingle, focus, isTouchDevice, relativePosition, getOuterWidth, absolutePosition, addStyle } from '@primeuix/utils/dom';
|
|
2
|
+
import { isNotEmpty, findLastIndex, equals, isEmpty, resolveFieldData } from '@primeuix/utils/object';
|
|
3
3
|
import { ZIndex } from '@primeuix/utils/zindex';
|
|
4
|
-
import {
|
|
4
|
+
import { ConnectedOverlayScrollHandler } from '@primevue/core/utils';
|
|
5
5
|
import ChevronDownIcon from '@primevue/icons/chevrondown';
|
|
6
6
|
import SpinnerIcon from '@primevue/icons/spinner';
|
|
7
7
|
import Chip from 'primevue/chip';
|
|
@@ -12,7 +12,7 @@ import Ripple from 'primevue/ripple';
|
|
|
12
12
|
import VirtualScroller from 'primevue/virtualscroller';
|
|
13
13
|
import BaseInput from '@primevue/core/baseinput';
|
|
14
14
|
import AutoCompleteStyle from 'primevue/autocomplete/style';
|
|
15
|
-
import { resolveComponent, resolveDirective,
|
|
15
|
+
import { resolveComponent, resolveDirective, createElementBlock, openBlock, mergeProps, createBlock, createCommentVNode, renderSlot, createElementVNode, createVNode, normalizeStyle, normalizeClass, Fragment, renderList, withCtx, resolveDynamicComponent, toDisplayString, Transition, createSlots, withDirectives, createTextVNode } from 'vue';
|
|
16
16
|
|
|
17
17
|
var script$1 = {
|
|
18
18
|
name: 'BaseAutoComplete',
|
|
@@ -216,9 +216,9 @@ var script = {
|
|
|
216
216
|
virtualScroller: null,
|
|
217
217
|
searchTimeout: null,
|
|
218
218
|
dirty: false,
|
|
219
|
+
startRangeIndex: -1,
|
|
219
220
|
data: function data() {
|
|
220
221
|
return {
|
|
221
|
-
id: this.$attrs.id,
|
|
222
222
|
clicked: false,
|
|
223
223
|
focused: false,
|
|
224
224
|
focusedOptionIndex: -1,
|
|
@@ -228,9 +228,6 @@ var script = {
|
|
|
228
228
|
};
|
|
229
229
|
},
|
|
230
230
|
watch: {
|
|
231
|
-
'$attrs.id': function $attrsId(newValue) {
|
|
232
|
-
this.id = newValue || UniqueComponentId();
|
|
233
|
-
},
|
|
234
231
|
suggestions: function suggestions() {
|
|
235
232
|
if (this.searching) {
|
|
236
233
|
this.show();
|
|
@@ -242,7 +239,6 @@ var script = {
|
|
|
242
239
|
}
|
|
243
240
|
},
|
|
244
241
|
mounted: function mounted() {
|
|
245
|
-
this.id = this.id || UniqueComponentId();
|
|
246
242
|
this.autoUpdateModel();
|
|
247
243
|
},
|
|
248
244
|
updated: function updated() {
|
|
@@ -278,6 +274,8 @@ var script = {
|
|
|
278
274
|
getPTOptions: function getPTOptions(option, itemOptions, index, key) {
|
|
279
275
|
return this.ptm(key, {
|
|
280
276
|
context: {
|
|
277
|
+
option: option,
|
|
278
|
+
index: index,
|
|
281
279
|
selected: this.isSelected(option),
|
|
282
280
|
focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),
|
|
283
281
|
disabled: this.isOptionDisabled(option)
|
|
@@ -380,6 +378,7 @@ var script = {
|
|
|
380
378
|
break;
|
|
381
379
|
case 'Enter':
|
|
382
380
|
case 'NumpadEnter':
|
|
381
|
+
case 'Space':
|
|
383
382
|
this.onEnterKey(event);
|
|
384
383
|
break;
|
|
385
384
|
case 'Escape':
|
|
@@ -388,6 +387,10 @@ var script = {
|
|
|
388
387
|
case 'Tab':
|
|
389
388
|
this.onTabKey(event);
|
|
390
389
|
break;
|
|
390
|
+
case 'ShiftLeft':
|
|
391
|
+
case 'ShiftRight':
|
|
392
|
+
this.onShiftKey(event);
|
|
393
|
+
break;
|
|
391
394
|
case 'Backspace':
|
|
392
395
|
this.onBackspaceKey(event);
|
|
393
396
|
break;
|
|
@@ -520,6 +523,23 @@ var script = {
|
|
|
520
523
|
this.changeFocusedOptionIndex(event, index);
|
|
521
524
|
}
|
|
522
525
|
},
|
|
526
|
+
onOptionSelectRange: function onOptionSelectRange(event) {
|
|
527
|
+
var _this5 = this;
|
|
528
|
+
var start = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;
|
|
529
|
+
var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
|
530
|
+
start === -1 && (start = this.findNearestSelectedOptionIndex(end, true));
|
|
531
|
+
end === -1 && (end = this.findNearestSelectedOptionIndex(start));
|
|
532
|
+
if (start !== -1 && end !== -1) {
|
|
533
|
+
var rangeStart = Math.min(start, end);
|
|
534
|
+
var rangeEnd = Math.max(start, end);
|
|
535
|
+
var value = this.visibleOptions.slice(rangeStart, rangeEnd + 1).filter(function (option) {
|
|
536
|
+
return _this5.isValidOption(option);
|
|
537
|
+
}).map(function (option) {
|
|
538
|
+
return _this5.getOptionValue(option);
|
|
539
|
+
});
|
|
540
|
+
this.updateModel(event, value);
|
|
541
|
+
}
|
|
542
|
+
},
|
|
523
543
|
onOverlayClick: function onOverlayClick(event) {
|
|
524
544
|
OverlayEventBus.emit('overlay-click', {
|
|
525
545
|
originalEvent: event,
|
|
@@ -538,6 +558,9 @@ var script = {
|
|
|
538
558
|
return;
|
|
539
559
|
}
|
|
540
560
|
var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findFirstOptionIndex() : this.findFirstFocusedOptionIndex();
|
|
561
|
+
if (this.multiple && event.shiftKey) {
|
|
562
|
+
this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
|
|
563
|
+
}
|
|
541
564
|
this.changeFocusedOptionIndex(event, optionIndex);
|
|
542
565
|
event.preventDefault();
|
|
543
566
|
},
|
|
@@ -553,6 +576,9 @@ var script = {
|
|
|
553
576
|
event.preventDefault();
|
|
554
577
|
} else {
|
|
555
578
|
var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findLastOptionIndex() : this.findLastFocusedOptionIndex();
|
|
579
|
+
if (this.multiple && event.shiftKey) {
|
|
580
|
+
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
|
|
581
|
+
}
|
|
556
582
|
this.changeFocusedOptionIndex(event, optionIndex);
|
|
557
583
|
event.preventDefault();
|
|
558
584
|
}
|
|
@@ -576,6 +602,11 @@ var script = {
|
|
|
576
602
|
onHomeKey: function onHomeKey(event) {
|
|
577
603
|
var currentTarget = event.currentTarget;
|
|
578
604
|
var len = currentTarget.value.length;
|
|
605
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
606
|
+
var optionIndex = this.findFirstOptionIndex();
|
|
607
|
+
if (this.multiple && event.shiftKey && metaKey) {
|
|
608
|
+
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
|
|
609
|
+
}
|
|
579
610
|
currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);
|
|
580
611
|
this.focusedOptionIndex = -1;
|
|
581
612
|
event.preventDefault();
|
|
@@ -583,6 +614,11 @@ var script = {
|
|
|
583
614
|
onEndKey: function onEndKey(event) {
|
|
584
615
|
var currentTarget = event.currentTarget;
|
|
585
616
|
var len = currentTarget.value.length;
|
|
617
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
618
|
+
var optionIndex = this.findLastOptionIndex();
|
|
619
|
+
if (this.multiple && event.shiftKey && metaKey) {
|
|
620
|
+
this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
|
|
621
|
+
}
|
|
586
622
|
currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);
|
|
587
623
|
this.focusedOptionIndex = -1;
|
|
588
624
|
event.preventDefault();
|
|
@@ -607,7 +643,12 @@ var script = {
|
|
|
607
643
|
this.onArrowDownKey(event);
|
|
608
644
|
} else {
|
|
609
645
|
if (this.focusedOptionIndex !== -1) {
|
|
610
|
-
this.
|
|
646
|
+
if (this.multiple && event.shiftKey) {
|
|
647
|
+
this.onOptionSelectRange(event, this.focusedOptionIndex);
|
|
648
|
+
event.preventDefault();
|
|
649
|
+
} else {
|
|
650
|
+
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
651
|
+
}
|
|
611
652
|
}
|
|
612
653
|
this.hide();
|
|
613
654
|
}
|
|
@@ -624,6 +665,9 @@ var script = {
|
|
|
624
665
|
}
|
|
625
666
|
this.overlayVisible && this.hide();
|
|
626
667
|
},
|
|
668
|
+
onShiftKey: function onShiftKey() {
|
|
669
|
+
this.startRangeIndex = this.focusedOptionIndex;
|
|
670
|
+
},
|
|
627
671
|
onBackspaceKey: function onBackspaceKey(event) {
|
|
628
672
|
if (this.multiple) {
|
|
629
673
|
if (isNotEmpty(this.d_value) && !this.$refs.focusInput.value) {
|
|
@@ -692,28 +736,28 @@ var script = {
|
|
|
692
736
|
}
|
|
693
737
|
},
|
|
694
738
|
bindOutsideClickListener: function bindOutsideClickListener() {
|
|
695
|
-
var
|
|
739
|
+
var _this6 = this;
|
|
696
740
|
if (!this.outsideClickListener) {
|
|
697
741
|
this.outsideClickListener = function (event) {
|
|
698
|
-
if (
|
|
699
|
-
|
|
742
|
+
if (_this6.overlayVisible && _this6.overlay && _this6.isOutsideClicked(event)) {
|
|
743
|
+
_this6.hide();
|
|
700
744
|
}
|
|
701
745
|
};
|
|
702
|
-
document.addEventListener('click', this.outsideClickListener);
|
|
746
|
+
document.addEventListener('click', this.outsideClickListener, true);
|
|
703
747
|
}
|
|
704
748
|
},
|
|
705
749
|
unbindOutsideClickListener: function unbindOutsideClickListener() {
|
|
706
750
|
if (this.outsideClickListener) {
|
|
707
|
-
document.removeEventListener('click', this.outsideClickListener);
|
|
751
|
+
document.removeEventListener('click', this.outsideClickListener, true);
|
|
708
752
|
this.outsideClickListener = null;
|
|
709
753
|
}
|
|
710
754
|
},
|
|
711
755
|
bindScrollListener: function bindScrollListener() {
|
|
712
|
-
var
|
|
756
|
+
var _this7 = this;
|
|
713
757
|
if (!this.scrollHandler) {
|
|
714
758
|
this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, function () {
|
|
715
|
-
if (
|
|
716
|
-
|
|
759
|
+
if (_this7.overlayVisible) {
|
|
760
|
+
_this7.hide();
|
|
717
761
|
}
|
|
718
762
|
});
|
|
719
763
|
}
|
|
@@ -725,11 +769,11 @@ var script = {
|
|
|
725
769
|
}
|
|
726
770
|
},
|
|
727
771
|
bindResizeListener: function bindResizeListener() {
|
|
728
|
-
var
|
|
772
|
+
var _this8 = this;
|
|
729
773
|
if (!this.resizeListener) {
|
|
730
774
|
this.resizeListener = function () {
|
|
731
|
-
if (
|
|
732
|
-
|
|
775
|
+
if (_this8.overlayVisible && !isTouchDevice()) {
|
|
776
|
+
_this8.hide();
|
|
733
777
|
}
|
|
734
778
|
};
|
|
735
779
|
window.addEventListener('resize', this.resizeListener);
|
|
@@ -764,42 +808,42 @@ var script = {
|
|
|
764
808
|
return equals(value1, value2, this.equalityKey);
|
|
765
809
|
},
|
|
766
810
|
isSelected: function isSelected(option) {
|
|
767
|
-
var
|
|
811
|
+
var _this9 = this;
|
|
768
812
|
var optionValue = this.getOptionValue(option);
|
|
769
813
|
return this.multiple ? (this.d_value || []).some(function (value) {
|
|
770
|
-
return
|
|
814
|
+
return _this9.isEquals(value, optionValue);
|
|
771
815
|
}) : this.isEquals(this.d_value, this.getOptionValue(option));
|
|
772
816
|
},
|
|
773
817
|
findFirstOptionIndex: function findFirstOptionIndex() {
|
|
774
|
-
var
|
|
818
|
+
var _this10 = this;
|
|
775
819
|
return this.visibleOptions.findIndex(function (option) {
|
|
776
|
-
return
|
|
820
|
+
return _this10.isValidOption(option);
|
|
777
821
|
});
|
|
778
822
|
},
|
|
779
823
|
findLastOptionIndex: function findLastOptionIndex() {
|
|
780
|
-
var
|
|
824
|
+
var _this11 = this;
|
|
781
825
|
return findLastIndex(this.visibleOptions, function (option) {
|
|
782
|
-
return
|
|
826
|
+
return _this11.isValidOption(option);
|
|
783
827
|
});
|
|
784
828
|
},
|
|
785
829
|
findNextOptionIndex: function findNextOptionIndex(index) {
|
|
786
|
-
var
|
|
830
|
+
var _this12 = this;
|
|
787
831
|
var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
788
|
-
return
|
|
832
|
+
return _this12.isValidOption(option);
|
|
789
833
|
}) : -1;
|
|
790
834
|
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
791
835
|
},
|
|
792
836
|
findPrevOptionIndex: function findPrevOptionIndex(index) {
|
|
793
|
-
var
|
|
837
|
+
var _this13 = this;
|
|
794
838
|
var matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
795
|
-
return
|
|
839
|
+
return _this13.isValidOption(option);
|
|
796
840
|
}) : -1;
|
|
797
841
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
798
842
|
},
|
|
799
843
|
findSelectedOptionIndex: function findSelectedOptionIndex() {
|
|
800
|
-
var
|
|
844
|
+
var _this14 = this;
|
|
801
845
|
return this.$filled ? this.visibleOptions.findIndex(function (option) {
|
|
802
|
-
return
|
|
846
|
+
return _this14.isValidSelectedOption(option);
|
|
803
847
|
}) : -1;
|
|
804
848
|
},
|
|
805
849
|
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
@@ -827,12 +871,12 @@ var script = {
|
|
|
827
871
|
});
|
|
828
872
|
},
|
|
829
873
|
removeOption: function removeOption(event, index) {
|
|
830
|
-
var
|
|
874
|
+
var _this15 = this;
|
|
831
875
|
var removedOption = this.d_value[index];
|
|
832
876
|
var value = this.d_value.filter(function (_, i) {
|
|
833
877
|
return i !== index;
|
|
834
878
|
}).map(function (option) {
|
|
835
|
-
return
|
|
879
|
+
return _this15.getOptionValue(option);
|
|
836
880
|
});
|
|
837
881
|
this.updateModel(event, value);
|
|
838
882
|
this.$emit('item-unselect', {
|
|
@@ -856,18 +900,18 @@ var script = {
|
|
|
856
900
|
}
|
|
857
901
|
},
|
|
858
902
|
scrollInView: function scrollInView() {
|
|
859
|
-
var
|
|
903
|
+
var _this16 = this;
|
|
860
904
|
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
861
905
|
this.$nextTick(function () {
|
|
862
|
-
var id = index !== -1 ? "".concat(
|
|
863
|
-
var element = findSingle(
|
|
906
|
+
var id = index !== -1 ? "".concat(_this16.$id, "_").concat(index) : _this16.focusedOptionId;
|
|
907
|
+
var element = findSingle(_this16.list, "li[id=\"".concat(id, "\"]"));
|
|
864
908
|
if (element) {
|
|
865
909
|
element.scrollIntoView && element.scrollIntoView({
|
|
866
910
|
block: 'nearest',
|
|
867
911
|
inline: 'start'
|
|
868
912
|
});
|
|
869
|
-
} else if (!
|
|
870
|
-
|
|
913
|
+
} else if (!_this16.virtualScrollerDisabled) {
|
|
914
|
+
_this16.virtualScroller && _this16.virtualScroller.scrollToIndex(index !== -1 ? index : _this16.focusedOptionIndex);
|
|
871
915
|
}
|
|
872
916
|
});
|
|
873
917
|
},
|
|
@@ -885,14 +929,14 @@ var script = {
|
|
|
885
929
|
});
|
|
886
930
|
},
|
|
887
931
|
flatOptions: function flatOptions(options) {
|
|
888
|
-
var
|
|
932
|
+
var _this17 = this;
|
|
889
933
|
return (options || []).reduce(function (result, option, index) {
|
|
890
934
|
result.push({
|
|
891
935
|
optionGroup: option,
|
|
892
936
|
group: true,
|
|
893
937
|
index: index
|
|
894
938
|
});
|
|
895
|
-
var optionGroupChildren =
|
|
939
|
+
var optionGroupChildren = _this17.getOptionGroupChildren(option);
|
|
896
940
|
optionGroupChildren && optionGroupChildren.forEach(function (o) {
|
|
897
941
|
return result.push(o);
|
|
898
942
|
});
|
|
@@ -908,6 +952,34 @@ var script = {
|
|
|
908
952
|
},
|
|
909
953
|
virtualScrollerRef: function virtualScrollerRef(el) {
|
|
910
954
|
this.virtualScroller = el;
|
|
955
|
+
},
|
|
956
|
+
findNextSelectedOptionIndex: function findNextSelectedOptionIndex(index) {
|
|
957
|
+
var _this18 = this;
|
|
958
|
+
var matchedOptionIndex = this.$filled && index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
959
|
+
return _this18.isValidSelectedOption(option);
|
|
960
|
+
}) : -1;
|
|
961
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
|
|
962
|
+
},
|
|
963
|
+
findPrevSelectedOptionIndex: function findPrevSelectedOptionIndex(index) {
|
|
964
|
+
var _this19 = this;
|
|
965
|
+
var matchedOptionIndex = this.$filled && index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
966
|
+
return _this19.isValidSelectedOption(option);
|
|
967
|
+
}) : -1;
|
|
968
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
|
|
969
|
+
},
|
|
970
|
+
findNearestSelectedOptionIndex: function findNearestSelectedOptionIndex(index) {
|
|
971
|
+
var firstCheckUp = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
972
|
+
var matchedOptionIndex = -1;
|
|
973
|
+
if (this.$filled) {
|
|
974
|
+
if (firstCheckUp) {
|
|
975
|
+
matchedOptionIndex = this.findPrevSelectedOptionIndex(index);
|
|
976
|
+
matchedOptionIndex = matchedOptionIndex === -1 ? this.findNextSelectedOptionIndex(index) : matchedOptionIndex;
|
|
977
|
+
} else {
|
|
978
|
+
matchedOptionIndex = this.findNextSelectedOptionIndex(index);
|
|
979
|
+
matchedOptionIndex = matchedOptionIndex === -1 ? this.findPrevSelectedOptionIndex(index) : matchedOptionIndex;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
911
983
|
}
|
|
912
984
|
},
|
|
913
985
|
computed: {
|
|
@@ -956,22 +1028,22 @@ var script = {
|
|
|
956
1028
|
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.listLabel : undefined;
|
|
957
1029
|
},
|
|
958
1030
|
focusedOptionId: function focusedOptionId() {
|
|
959
|
-
return this.focusedOptionIndex !== -1 ? "".concat(this
|
|
1031
|
+
return this.focusedOptionIndex !== -1 ? "".concat(this.$id, "_").concat(this.focusedOptionIndex) : null;
|
|
960
1032
|
},
|
|
961
1033
|
focusedMultipleOptionId: function focusedMultipleOptionId() {
|
|
962
|
-
return this.focusedMultipleOptionIndex !== -1 ? "".concat(this
|
|
1034
|
+
return this.focusedMultipleOptionIndex !== -1 ? "".concat(this.$id, "_multiple_option_").concat(this.focusedMultipleOptionIndex) : null;
|
|
963
1035
|
},
|
|
964
1036
|
ariaSetSize: function ariaSetSize() {
|
|
965
|
-
var
|
|
1037
|
+
var _this20 = this;
|
|
966
1038
|
return this.visibleOptions.filter(function (option) {
|
|
967
|
-
return !
|
|
1039
|
+
return !_this20.isOptionGroup(option);
|
|
968
1040
|
}).length;
|
|
969
1041
|
},
|
|
970
1042
|
virtualScrollerDisabled: function virtualScrollerDisabled() {
|
|
971
1043
|
return !this.virtualScrollerOptions;
|
|
972
1044
|
},
|
|
973
1045
|
panelId: function panelId() {
|
|
974
|
-
return this
|
|
1046
|
+
return this.$id + '_panel';
|
|
975
1047
|
}
|
|
976
1048
|
},
|
|
977
1049
|
components: {
|
|
@@ -989,10 +1061,10 @@ var script = {
|
|
|
989
1061
|
|
|
990
1062
|
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); }
|
|
991
1063
|
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; }
|
|
992
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
993
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable:
|
|
1064
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).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; }
|
|
1065
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
994
1066
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
995
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r
|
|
1067
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
996
1068
|
var _hoisted_1 = ["aria-activedescendant"];
|
|
997
1069
|
var _hoisted_2 = ["id", "aria-label", "aria-setsize", "aria-posinset"];
|
|
998
1070
|
var _hoisted_3 = ["id", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"];
|
|
@@ -1067,7 +1139,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1067
1139
|
}, _ctx.ptm('inputMultiple')), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.d_value, function (option, i) {
|
|
1068
1140
|
return openBlock(), createElementBlock("li", mergeProps({
|
|
1069
1141
|
key: "".concat(i, "_").concat($options.getOptionLabel(option)),
|
|
1070
|
-
id:
|
|
1142
|
+
id: _ctx.$id + '_multiple_option_' + i,
|
|
1071
1143
|
"class": _ctx.cx('chipItem', {
|
|
1072
1144
|
i: i
|
|
1073
1145
|
}),
|
|
@@ -1128,7 +1200,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1128
1200
|
"aria-haspopup": "listbox",
|
|
1129
1201
|
"aria-autocomplete": "list",
|
|
1130
1202
|
"aria-expanded": $data.overlayVisible,
|
|
1131
|
-
"aria-controls":
|
|
1203
|
+
"aria-controls": _ctx.$id + '_list',
|
|
1132
1204
|
"aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
|
|
1133
1205
|
"aria-invalid": _ctx.invalid || undefined,
|
|
1134
1206
|
onFocus: _cache[0] || (_cache[0] = function () {
|
|
@@ -1244,7 +1316,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1244
1316
|
ref: function ref(el) {
|
|
1245
1317
|
return $options.listRef(el, contentRef);
|
|
1246
1318
|
},
|
|
1247
|
-
id:
|
|
1319
|
+
id: _ctx.$id + '_list',
|
|
1248
1320
|
"class": [_ctx.cx('list'), styleClass],
|
|
1249
1321
|
style: contentStyle,
|
|
1250
1322
|
role: "listbox",
|
|
@@ -1254,7 +1326,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1254
1326
|
key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
|
|
1255
1327
|
}, [$options.isOptionGroup(option) ? (openBlock(), createElementBlock("li", mergeProps({
|
|
1256
1328
|
key: 0,
|
|
1257
|
-
id:
|
|
1329
|
+
id: _ctx.$id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
1258
1330
|
style: {
|
|
1259
1331
|
height: itemSize ? itemSize + 'px' : undefined
|
|
1260
1332
|
},
|
|
@@ -1268,7 +1340,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1268
1340
|
return [createTextVNode(toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)];
|
|
1269
1341
|
})], 16, _hoisted_7)) : withDirectives((openBlock(), createElementBlock("li", mergeProps({
|
|
1270
1342
|
key: 1,
|
|
1271
|
-
id:
|
|
1343
|
+
id: _ctx.$id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
1272
1344
|
style: {
|
|
1273
1345
|
height: itemSize ? itemSize + 'px' : undefined
|
|
1274
1346
|
},
|