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/select/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { findSingle, getFocusableElements, isVisible, focus, isTouchDevice, relativePosition, getOuterWidth, absolutePosition, addStyle, getLastFocusableElement, getFirstFocusableElement, isAndroid } from '@primeuix/utils/dom';
|
|
2
|
+
import { isNotEmpty, findLastIndex, equals, isPrintableCharacter, resolveFieldData } from '@primeuix/utils/object';
|
|
3
3
|
import { ZIndex } from '@primeuix/utils/zindex';
|
|
4
4
|
import { FilterService } from '@primevue/core/api';
|
|
5
|
-
import {
|
|
5
|
+
import { ConnectedOverlayScrollHandler } from '@primevue/core/utils';
|
|
6
6
|
import BlankIcon from '@primevue/icons/blank';
|
|
7
7
|
import CheckIcon from '@primevue/icons/check';
|
|
8
8
|
import ChevronDownIcon from '@primevue/icons/chevrondown';
|
|
@@ -18,7 +18,7 @@ import Ripple from 'primevue/ripple';
|
|
|
18
18
|
import VirtualScroller from 'primevue/virtualscroller';
|
|
19
19
|
import BaseInput from '@primevue/core/baseinput';
|
|
20
20
|
import SelectStyle from 'primevue/select/style';
|
|
21
|
-
import { resolveComponent, resolveDirective,
|
|
21
|
+
import { resolveComponent, resolveDirective, createElementBlock, openBlock, mergeProps, renderSlot, createCommentVNode, createElementVNode, createVNode, createTextVNode, toDisplayString, normalizeClass, createBlock, resolveDynamicComponent, withCtx, Transition, normalizeProps, createSlots, Fragment, renderList, withDirectives } from 'vue';
|
|
22
22
|
|
|
23
23
|
var script$1 = {
|
|
24
24
|
name: 'BaseSelect',
|
|
@@ -205,10 +205,10 @@ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Sym
|
|
|
205
205
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
206
206
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
207
207
|
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; }
|
|
208
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
209
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable:
|
|
208
|
+
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; }
|
|
209
|
+
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; }
|
|
210
210
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
211
|
-
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
|
|
211
|
+
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); }
|
|
212
212
|
var script = {
|
|
213
213
|
name: 'Select',
|
|
214
214
|
"extends": script$1,
|
|
@@ -218,6 +218,7 @@ var script = {
|
|
|
218
218
|
scrollHandler: null,
|
|
219
219
|
resizeListener: null,
|
|
220
220
|
labelClickListener: null,
|
|
221
|
+
matchMediaOrientationListener: null,
|
|
221
222
|
overlay: null,
|
|
222
223
|
list: null,
|
|
223
224
|
virtualScroller: null,
|
|
@@ -226,18 +227,15 @@ var script = {
|
|
|
226
227
|
isModelValueChanged: false,
|
|
227
228
|
data: function data() {
|
|
228
229
|
return {
|
|
229
|
-
id: this.$attrs.id,
|
|
230
230
|
clicked: false,
|
|
231
231
|
focused: false,
|
|
232
232
|
focusedOptionIndex: -1,
|
|
233
233
|
filterValue: null,
|
|
234
|
-
overlayVisible: false
|
|
234
|
+
overlayVisible: false,
|
|
235
|
+
queryOrientation: null
|
|
235
236
|
};
|
|
236
237
|
},
|
|
237
238
|
watch: {
|
|
238
|
-
'$attrs.id': function $attrsId(newValue) {
|
|
239
|
-
this.id = newValue || UniqueComponentId();
|
|
240
|
-
},
|
|
241
239
|
modelValue: function modelValue() {
|
|
242
240
|
this.isModelValueChanged = true;
|
|
243
241
|
},
|
|
@@ -246,9 +244,9 @@ var script = {
|
|
|
246
244
|
}
|
|
247
245
|
},
|
|
248
246
|
mounted: function mounted() {
|
|
249
|
-
this.id = this.id || UniqueComponentId();
|
|
250
247
|
this.autoUpdateModel();
|
|
251
248
|
this.bindLabelClickListener();
|
|
249
|
+
this.bindMatchMediaOrientationListener();
|
|
252
250
|
},
|
|
253
251
|
updated: function updated() {
|
|
254
252
|
if (this.overlayVisible && this.isModelValueChanged) {
|
|
@@ -260,6 +258,7 @@ var script = {
|
|
|
260
258
|
this.unbindOutsideClickListener();
|
|
261
259
|
this.unbindResizeListener();
|
|
262
260
|
this.unbindLabelClickListener();
|
|
261
|
+
this.unbindMatchMediaOrientationListener();
|
|
263
262
|
if (this.scrollHandler) {
|
|
264
263
|
this.scrollHandler.destroy();
|
|
265
264
|
this.scrollHandler = null;
|
|
@@ -639,6 +638,7 @@ var script = {
|
|
|
639
638
|
this.scrollInView();
|
|
640
639
|
setTimeout(function () {
|
|
641
640
|
_this3.autoFilterFocus && _this3.filter && focus(_this3.$refs.filterInput.$el);
|
|
641
|
+
_this3.autoUpdateModel();
|
|
642
642
|
}, 1);
|
|
643
643
|
},
|
|
644
644
|
onOverlayAfterEnter: function onOverlayAfterEnter() {
|
|
@@ -654,7 +654,9 @@ var script = {
|
|
|
654
654
|
this.unbindResizeListener();
|
|
655
655
|
if (this.autoFilterFocus && this.filter && !this.editable) {
|
|
656
656
|
this.$nextTick(function () {
|
|
657
|
-
|
|
657
|
+
if (_this4.$refs.filterInput) {
|
|
658
|
+
focus(_this4.$refs.filterInput.$el);
|
|
659
|
+
}
|
|
658
660
|
});
|
|
659
661
|
}
|
|
660
662
|
this.$emit('hide');
|
|
@@ -679,12 +681,12 @@ var script = {
|
|
|
679
681
|
_this5.hide();
|
|
680
682
|
}
|
|
681
683
|
};
|
|
682
|
-
document.addEventListener('click', this.outsideClickListener);
|
|
684
|
+
document.addEventListener('click', this.outsideClickListener, true);
|
|
683
685
|
}
|
|
684
686
|
},
|
|
685
687
|
unbindOutsideClickListener: function unbindOutsideClickListener() {
|
|
686
688
|
if (this.outsideClickListener) {
|
|
687
|
-
document.removeEventListener('click', this.outsideClickListener);
|
|
689
|
+
document.removeEventListener('click', this.outsideClickListener, true);
|
|
688
690
|
this.outsideClickListener = null;
|
|
689
691
|
}
|
|
690
692
|
},
|
|
@@ -741,12 +743,34 @@ var script = {
|
|
|
741
743
|
}
|
|
742
744
|
}
|
|
743
745
|
},
|
|
746
|
+
bindMatchMediaOrientationListener: function bindMatchMediaOrientationListener() {
|
|
747
|
+
var _this9 = this;
|
|
748
|
+
if (!this.matchMediaOrientationListener) {
|
|
749
|
+
var query = matchMedia("(orientation: portrait)");
|
|
750
|
+
this.queryOrientation = query;
|
|
751
|
+
this.matchMediaOrientationListener = function () {
|
|
752
|
+
_this9.alignOverlay();
|
|
753
|
+
};
|
|
754
|
+
this.queryOrientation.addEventListener('change', this.matchMediaOrientationListener);
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
unbindMatchMediaOrientationListener: function unbindMatchMediaOrientationListener() {
|
|
758
|
+
if (this.matchMediaOrientationListener) {
|
|
759
|
+
this.queryOrientation.removeEventListener('change', this.matchMediaOrientationListener);
|
|
760
|
+
this.queryOrientation = null;
|
|
761
|
+
this.matchMediaOrientationListener = null;
|
|
762
|
+
}
|
|
763
|
+
},
|
|
744
764
|
hasFocusableElements: function hasFocusableElements() {
|
|
745
765
|
return getFocusableElements(this.overlay, ':not([data-p-hidden-focusable="true"])').length > 0;
|
|
746
766
|
},
|
|
747
|
-
|
|
767
|
+
isOptionExactMatched: function isOptionExactMatched(option) {
|
|
748
768
|
var _this$getOptionLabel;
|
|
749
|
-
return this.isValidOption(option) && typeof this.getOptionLabel(option) === 'string' && ((_this$getOptionLabel = this.getOptionLabel(option)) === null || _this$getOptionLabel === void 0 ? void 0 : _this$getOptionLabel.toLocaleLowerCase(this.filterLocale)
|
|
769
|
+
return this.isValidOption(option) && typeof this.getOptionLabel(option) === 'string' && ((_this$getOptionLabel = this.getOptionLabel(option)) === null || _this$getOptionLabel === void 0 ? void 0 : _this$getOptionLabel.toLocaleLowerCase(this.filterLocale)) == this.searchValue.toLocaleLowerCase(this.filterLocale);
|
|
770
|
+
},
|
|
771
|
+
isOptionStartsWith: function isOptionStartsWith(option) {
|
|
772
|
+
var _this$getOptionLabel2;
|
|
773
|
+
return this.isValidOption(option) && typeof this.getOptionLabel(option) === 'string' && ((_this$getOptionLabel2 = this.getOptionLabel(option)) === null || _this$getOptionLabel2 === void 0 ? void 0 : _this$getOptionLabel2.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)));
|
|
750
774
|
},
|
|
751
775
|
isValidOption: function isValidOption(option) {
|
|
752
776
|
return isNotEmpty(option) && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
@@ -758,35 +782,35 @@ var script = {
|
|
|
758
782
|
return equals(this.d_value, this.getOptionValue(option), this.equalityKey);
|
|
759
783
|
},
|
|
760
784
|
findFirstOptionIndex: function findFirstOptionIndex() {
|
|
761
|
-
var
|
|
785
|
+
var _this10 = this;
|
|
762
786
|
return this.visibleOptions.findIndex(function (option) {
|
|
763
|
-
return
|
|
787
|
+
return _this10.isValidOption(option);
|
|
764
788
|
});
|
|
765
789
|
},
|
|
766
790
|
findLastOptionIndex: function findLastOptionIndex() {
|
|
767
|
-
var
|
|
791
|
+
var _this11 = this;
|
|
768
792
|
return findLastIndex(this.visibleOptions, function (option) {
|
|
769
|
-
return
|
|
793
|
+
return _this11.isValidOption(option);
|
|
770
794
|
});
|
|
771
795
|
},
|
|
772
796
|
findNextOptionIndex: function findNextOptionIndex(index) {
|
|
773
|
-
var
|
|
797
|
+
var _this12 = this;
|
|
774
798
|
var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
775
|
-
return
|
|
799
|
+
return _this12.isValidOption(option);
|
|
776
800
|
}) : -1;
|
|
777
801
|
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
778
802
|
},
|
|
779
803
|
findPrevOptionIndex: function findPrevOptionIndex(index) {
|
|
780
|
-
var
|
|
804
|
+
var _this13 = this;
|
|
781
805
|
var matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
782
|
-
return
|
|
806
|
+
return _this13.isValidOption(option);
|
|
783
807
|
}) : -1;
|
|
784
808
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
785
809
|
},
|
|
786
810
|
findSelectedOptionIndex: function findSelectedOptionIndex() {
|
|
787
|
-
var
|
|
811
|
+
var _this14 = this;
|
|
788
812
|
return this.$filled ? this.visibleOptions.findIndex(function (option) {
|
|
789
|
-
return
|
|
813
|
+
return _this14.isValidSelectedOption(option);
|
|
790
814
|
}) : -1;
|
|
791
815
|
},
|
|
792
816
|
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
@@ -798,21 +822,17 @@ var script = {
|
|
|
798
822
|
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
|
799
823
|
},
|
|
800
824
|
searchOptions: function searchOptions(event, _char) {
|
|
801
|
-
var
|
|
825
|
+
var _this15 = this;
|
|
802
826
|
this.searchValue = (this.searchValue || '') + _char;
|
|
803
827
|
var optionIndex = -1;
|
|
804
828
|
var matched = false;
|
|
805
829
|
if (isNotEmpty(this.searchValue)) {
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex(function (option) {
|
|
811
|
-
return _this14.isOptionMatched(option);
|
|
812
|
-
}) : optionIndex + this.focusedOptionIndex;
|
|
813
|
-
} else {
|
|
830
|
+
optionIndex = this.visibleOptions.findIndex(function (option) {
|
|
831
|
+
return _this15.isOptionExactMatched(option);
|
|
832
|
+
});
|
|
833
|
+
if (optionIndex === -1) {
|
|
814
834
|
optionIndex = this.visibleOptions.findIndex(function (option) {
|
|
815
|
-
return
|
|
835
|
+
return _this15.isOptionStartsWith(option);
|
|
816
836
|
});
|
|
817
837
|
}
|
|
818
838
|
if (optionIndex !== -1) {
|
|
@@ -829,8 +849,8 @@ var script = {
|
|
|
829
849
|
clearTimeout(this.searchTimeout);
|
|
830
850
|
}
|
|
831
851
|
this.searchTimeout = setTimeout(function () {
|
|
832
|
-
|
|
833
|
-
|
|
852
|
+
_this15.searchValue = '';
|
|
853
|
+
_this15.searchTimeout = null;
|
|
834
854
|
}, 500);
|
|
835
855
|
return matched;
|
|
836
856
|
},
|
|
@@ -844,24 +864,26 @@ var script = {
|
|
|
844
864
|
}
|
|
845
865
|
},
|
|
846
866
|
scrollInView: function scrollInView() {
|
|
847
|
-
var
|
|
867
|
+
var _this16 = this;
|
|
848
868
|
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
849
869
|
this.$nextTick(function () {
|
|
850
|
-
var id = index !== -1 ? "".concat(
|
|
851
|
-
var element = findSingle(
|
|
870
|
+
var id = index !== -1 ? "".concat(_this16.$id, "_").concat(index) : _this16.focusedOptionId;
|
|
871
|
+
var element = findSingle(_this16.list, "li[id=\"".concat(id, "\"]"));
|
|
852
872
|
if (element) {
|
|
853
873
|
element.scrollIntoView && element.scrollIntoView({
|
|
854
874
|
block: 'nearest',
|
|
855
875
|
inline: 'start'
|
|
856
876
|
});
|
|
857
|
-
} else if (!
|
|
858
|
-
|
|
877
|
+
} else if (!_this16.virtualScrollerDisabled) {
|
|
878
|
+
_this16.virtualScroller && _this16.virtualScroller.scrollToIndex(index !== -1 ? index : _this16.focusedOptionIndex);
|
|
859
879
|
}
|
|
860
880
|
});
|
|
861
881
|
},
|
|
862
882
|
autoUpdateModel: function autoUpdateModel() {
|
|
863
|
-
if (this.
|
|
883
|
+
if (this.autoOptionFocus) {
|
|
864
884
|
this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
885
|
+
}
|
|
886
|
+
if (this.selectOnFocus && this.autoOptionFocus && !this.$filled) {
|
|
865
887
|
this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], false);
|
|
866
888
|
}
|
|
867
889
|
},
|
|
@@ -873,14 +895,14 @@ var script = {
|
|
|
873
895
|
});
|
|
874
896
|
},
|
|
875
897
|
flatOptions: function flatOptions(options) {
|
|
876
|
-
var
|
|
898
|
+
var _this17 = this;
|
|
877
899
|
return (options || []).reduce(function (result, option, index) {
|
|
878
900
|
result.push({
|
|
879
901
|
optionGroup: option,
|
|
880
902
|
group: true,
|
|
881
903
|
index: index
|
|
882
904
|
});
|
|
883
|
-
var optionGroupChildren =
|
|
905
|
+
var optionGroupChildren = _this17.getOptionGroupChildren(option);
|
|
884
906
|
optionGroupChildren && optionGroupChildren.forEach(function (o) {
|
|
885
907
|
return result.push(o);
|
|
886
908
|
});
|
|
@@ -900,7 +922,7 @@ var script = {
|
|
|
900
922
|
},
|
|
901
923
|
computed: {
|
|
902
924
|
visibleOptions: function visibleOptions() {
|
|
903
|
-
var
|
|
925
|
+
var _this18 = this;
|
|
904
926
|
var options = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
|
|
905
927
|
if (this.filterValue) {
|
|
906
928
|
var filteredOptions = FilterService.filter(options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
|
|
@@ -908,11 +930,11 @@ var script = {
|
|
|
908
930
|
var optionGroups = this.options || [];
|
|
909
931
|
var filtered = [];
|
|
910
932
|
optionGroups.forEach(function (group) {
|
|
911
|
-
var groupChildren =
|
|
933
|
+
var groupChildren = _this18.getOptionGroupChildren(group);
|
|
912
934
|
var filteredItems = groupChildren.filter(function (item) {
|
|
913
935
|
return filteredOptions.includes(item);
|
|
914
936
|
});
|
|
915
|
-
if (filteredItems.length > 0) filtered.push(_objectSpread(_objectSpread({}, group), {}, _defineProperty({}, typeof
|
|
937
|
+
if (filteredItems.length > 0) filtered.push(_objectSpread(_objectSpread({}, group), {}, _defineProperty({}, typeof _this18.optionGroupChildren === 'string' ? _this18.optionGroupChildren : 'items', _toConsumableArray(filteredItems))));
|
|
916
938
|
});
|
|
917
939
|
return this.flatOptions(filtered);
|
|
918
940
|
}
|
|
@@ -960,12 +982,12 @@ var script = {
|
|
|
960
982
|
return this.$filled ? this.selectionMessageText.replaceAll('{0}', '1') : this.emptySelectionMessageText;
|
|
961
983
|
},
|
|
962
984
|
focusedOptionId: function focusedOptionId() {
|
|
963
|
-
return this.focusedOptionIndex !== -1 ? "".concat(this
|
|
985
|
+
return this.focusedOptionIndex !== -1 ? "".concat(this.$id, "_").concat(this.focusedOptionIndex) : null;
|
|
964
986
|
},
|
|
965
987
|
ariaSetSize: function ariaSetSize() {
|
|
966
|
-
var
|
|
988
|
+
var _this19 = this;
|
|
967
989
|
return this.visibleOptions.filter(function (option) {
|
|
968
|
-
return !
|
|
990
|
+
return !_this19.isOptionGroup(option);
|
|
969
991
|
}).length;
|
|
970
992
|
},
|
|
971
993
|
isClearIconVisible: function isClearIconVisible() {
|
|
@@ -995,7 +1017,7 @@ var script = {
|
|
|
995
1017
|
|
|
996
1018
|
var _hoisted_1 = ["id"];
|
|
997
1019
|
var _hoisted_2 = ["id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"];
|
|
998
|
-
var _hoisted_3 = ["id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-disabled"];
|
|
1020
|
+
var _hoisted_3 = ["id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid", "aria-disabled"];
|
|
999
1021
|
var _hoisted_4 = ["id"];
|
|
1000
1022
|
var _hoisted_5 = ["id"];
|
|
1001
1023
|
var _hoisted_6 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-selected", "data-p-focused", "data-p-disabled"];
|
|
@@ -1012,7 +1034,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1012
1034
|
var _directive_ripple = resolveDirective("ripple");
|
|
1013
1035
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
1014
1036
|
ref: "container",
|
|
1015
|
-
id:
|
|
1037
|
+
id: _ctx.$id,
|
|
1016
1038
|
"class": _ctx.cx('root'),
|
|
1017
1039
|
onClick: _cache[11] || (_cache[11] = function () {
|
|
1018
1040
|
return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);
|
|
@@ -1034,7 +1056,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1034
1056
|
"aria-labelledby": _ctx.ariaLabelledby,
|
|
1035
1057
|
"aria-haspopup": "listbox",
|
|
1036
1058
|
"aria-expanded": $data.overlayVisible,
|
|
1037
|
-
"aria-controls":
|
|
1059
|
+
"aria-controls": _ctx.$id + '_list',
|
|
1038
1060
|
"aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
|
|
1039
1061
|
"aria-invalid": _ctx.invalid || undefined,
|
|
1040
1062
|
onFocus: _cache[0] || (_cache[0] = function () {
|
|
@@ -1061,8 +1083,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1061
1083
|
"aria-labelledby": _ctx.ariaLabelledby,
|
|
1062
1084
|
"aria-haspopup": "listbox",
|
|
1063
1085
|
"aria-expanded": $data.overlayVisible,
|
|
1064
|
-
"aria-controls":
|
|
1086
|
+
"aria-controls": _ctx.$id + '_list',
|
|
1065
1087
|
"aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
|
|
1088
|
+
"aria-invalid": _ctx.invalid || undefined,
|
|
1066
1089
|
"aria-disabled": _ctx.disabled,
|
|
1067
1090
|
onFocus: _cache[4] || (_cache[4] = function () {
|
|
1068
1091
|
return $options.onFocus && $options.onFocus.apply($options, arguments);
|
|
@@ -1173,12 +1196,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1173
1196
|
unstyled: _ctx.unstyled,
|
|
1174
1197
|
role: "searchbox",
|
|
1175
1198
|
autocomplete: "off",
|
|
1176
|
-
"aria-owns":
|
|
1199
|
+
"aria-owns": _ctx.$id + '_list',
|
|
1177
1200
|
"aria-activedescendant": $options.focusedOptionId,
|
|
1178
1201
|
onKeydown: $options.onFilterKeyDown,
|
|
1179
1202
|
onBlur: $options.onFilterBlur,
|
|
1180
1203
|
onInput: $options.onFilterChange,
|
|
1181
|
-
pt: _ctx.ptm('pcFilter')
|
|
1204
|
+
pt: _ctx.ptm('pcFilter'),
|
|
1205
|
+
formControl: {
|
|
1206
|
+
novalidate: true
|
|
1207
|
+
}
|
|
1182
1208
|
}, null, 8, ["value", "onVnodeMounted", "onVnodeUpdated", "class", "placeholder", "variant", "unstyled", "aria-owns", "aria-activedescendant", "onKeydown", "onBlur", "onInput", "pt"]), createVNode(_component_InputIcon, {
|
|
1183
1209
|
unstyled: _ctx.unstyled,
|
|
1184
1210
|
pt: _ctx.ptm('pcFilterIconContainer')
|
|
@@ -1230,7 +1256,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1230
1256
|
ref: function ref(el) {
|
|
1231
1257
|
return $options.listRef(el, contentRef);
|
|
1232
1258
|
},
|
|
1233
|
-
id:
|
|
1259
|
+
id: _ctx.$id + '_list',
|
|
1234
1260
|
"class": [_ctx.cx('list'), styleClass],
|
|
1235
1261
|
style: contentStyle,
|
|
1236
1262
|
role: "listbox"
|
|
@@ -1239,7 +1265,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1239
1265
|
key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
|
|
1240
1266
|
}, [$options.isOptionGroup(option) ? (openBlock(), createElementBlock("li", mergeProps({
|
|
1241
1267
|
key: 0,
|
|
1242
|
-
id:
|
|
1268
|
+
id: _ctx.$id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
1243
1269
|
style: {
|
|
1244
1270
|
height: itemSize ? itemSize + 'px' : undefined
|
|
1245
1271
|
},
|
|
@@ -1256,7 +1282,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1256
1282
|
}, _ctx.ptm('optionGroupLabel')), toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 17)];
|
|
1257
1283
|
})], 16, _hoisted_5)) : withDirectives((openBlock(), createElementBlock("li", mergeProps({
|
|
1258
1284
|
key: 1,
|
|
1259
|
-
id:
|
|
1285
|
+
id: _ctx.$id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
1260
1286
|
"class": _ctx.cx('option', {
|
|
1261
1287
|
option: option,
|
|
1262
1288
|
focusedOption: $options.getOptionIndex(i, getItemOptions)
|