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
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<li
|
|
50
50
|
v-for="(option, i) of d_value"
|
|
51
51
|
:key="`${i}_${getOptionLabel(option)}`"
|
|
52
|
-
:id="id + '_multiple_option_' + i"
|
|
52
|
+
:id="$id + '_multiple_option_' + i"
|
|
53
53
|
:class="cx('chipItem', { i })"
|
|
54
54
|
role="option"
|
|
55
55
|
:aria-label="getOptionLabel(option)"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
aria-haspopup="listbox"
|
|
85
85
|
aria-autocomplete="list"
|
|
86
86
|
:aria-expanded="overlayVisible"
|
|
87
|
-
:aria-controls="id + '_list'"
|
|
87
|
+
:aria-controls="$id + '_list'"
|
|
88
88
|
:aria-activedescendant="focused ? focusedOptionId : undefined"
|
|
89
89
|
:aria-invalid="invalid || undefined"
|
|
90
90
|
@focus="onFocus"
|
|
@@ -128,11 +128,11 @@
|
|
|
128
128
|
<div :class="cx('listContainer')" :style="{ 'max-height': virtualScrollerDisabled ? scrollHeight : '' }" v-bind="ptm('listContainer')">
|
|
129
129
|
<VirtualScroller :ref="virtualScrollerRef" v-bind="virtualScrollerOptions" :style="{ height: scrollHeight }" :items="visibleOptions" :tabindex="-1" :disabled="virtualScrollerDisabled" :pt="ptm('virtualScroller')">
|
|
130
130
|
<template v-slot:content="{ styleClass, contentRef, items, getItemOptions, contentStyle, itemSize }">
|
|
131
|
-
<ul :ref="(el) => listRef(el, contentRef)" :id="id + '_list'" :class="[cx('list'), styleClass]" :style="contentStyle" role="listbox" :aria-label="listAriaLabel" v-bind="ptm('list')">
|
|
131
|
+
<ul :ref="(el) => listRef(el, contentRef)" :id="$id + '_list'" :class="[cx('list'), styleClass]" :style="contentStyle" role="listbox" :aria-label="listAriaLabel" v-bind="ptm('list')">
|
|
132
132
|
<template v-for="(option, i) of items" :key="getOptionRenderKey(option, getOptionIndex(i, getItemOptions))">
|
|
133
133
|
<li
|
|
134
134
|
v-if="isOptionGroup(option)"
|
|
135
|
-
:id="id + '_' + getOptionIndex(i, getItemOptions)"
|
|
135
|
+
:id="$id + '_' + getOptionIndex(i, getItemOptions)"
|
|
136
136
|
:style="{ height: itemSize ? itemSize + 'px' : undefined }"
|
|
137
137
|
:class="cx('optionGroup')"
|
|
138
138
|
role="option"
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
</li>
|
|
143
143
|
<li
|
|
144
144
|
v-else
|
|
145
|
-
:id="id + '_' + getOptionIndex(i, getItemOptions)"
|
|
145
|
+
:id="$id + '_' + getOptionIndex(i, getItemOptions)"
|
|
146
146
|
v-ripple
|
|
147
147
|
:style="{ height: itemSize ? itemSize + 'px' : undefined }"
|
|
148
148
|
:class="cx('option', { option, i, getItemOptions })"
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
import { absolutePosition, addStyle, findSingle, focus, getOuterWidth, isTouchDevice, relativePosition } from '@primeuix/utils/dom';
|
|
187
187
|
import { equals, findLastIndex, isEmpty, isNotEmpty, resolveFieldData } from '@primeuix/utils/object';
|
|
188
188
|
import { ZIndex } from '@primeuix/utils/zindex';
|
|
189
|
-
import { ConnectedOverlayScrollHandler
|
|
189
|
+
import { ConnectedOverlayScrollHandler } from '@primevue/core/utils';
|
|
190
190
|
import ChevronDownIcon from '@primevue/icons/chevrondown';
|
|
191
191
|
import SpinnerIcon from '@primevue/icons/spinner';
|
|
192
192
|
import Chip from 'primevue/chip';
|
|
@@ -212,9 +212,9 @@ export default {
|
|
|
212
212
|
virtualScroller: null,
|
|
213
213
|
searchTimeout: null,
|
|
214
214
|
dirty: false,
|
|
215
|
+
startRangeIndex: -1,
|
|
215
216
|
data() {
|
|
216
217
|
return {
|
|
217
|
-
id: this.$attrs.id,
|
|
218
218
|
clicked: false,
|
|
219
219
|
focused: false,
|
|
220
220
|
focusedOptionIndex: -1,
|
|
@@ -224,9 +224,6 @@ export default {
|
|
|
224
224
|
};
|
|
225
225
|
},
|
|
226
226
|
watch: {
|
|
227
|
-
'$attrs.id': function (newValue) {
|
|
228
|
-
this.id = newValue || UniqueComponentId();
|
|
229
|
-
},
|
|
230
227
|
suggestions() {
|
|
231
228
|
if (this.searching) {
|
|
232
229
|
this.show();
|
|
@@ -239,7 +236,6 @@ export default {
|
|
|
239
236
|
}
|
|
240
237
|
},
|
|
241
238
|
mounted() {
|
|
242
|
-
this.id = this.id || UniqueComponentId();
|
|
243
239
|
this.autoUpdateModel();
|
|
244
240
|
},
|
|
245
241
|
updated() {
|
|
@@ -277,6 +273,8 @@ export default {
|
|
|
277
273
|
getPTOptions(option, itemOptions, index, key) {
|
|
278
274
|
return this.ptm(key, {
|
|
279
275
|
context: {
|
|
276
|
+
option,
|
|
277
|
+
index,
|
|
280
278
|
selected: this.isSelected(option),
|
|
281
279
|
focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),
|
|
282
280
|
disabled: this.isOptionDisabled(option)
|
|
@@ -389,6 +387,7 @@ export default {
|
|
|
389
387
|
|
|
390
388
|
case 'Enter':
|
|
391
389
|
case 'NumpadEnter':
|
|
390
|
+
case 'Space':
|
|
392
391
|
this.onEnterKey(event);
|
|
393
392
|
break;
|
|
394
393
|
|
|
@@ -400,13 +399,13 @@ export default {
|
|
|
400
399
|
this.onTabKey(event);
|
|
401
400
|
break;
|
|
402
401
|
|
|
403
|
-
case 'Backspace':
|
|
404
|
-
this.onBackspaceKey(event);
|
|
405
|
-
break;
|
|
406
|
-
|
|
407
402
|
case 'ShiftLeft':
|
|
408
403
|
case 'ShiftRight':
|
|
409
|
-
|
|
404
|
+
this.onShiftKey(event);
|
|
405
|
+
break;
|
|
406
|
+
|
|
407
|
+
case 'Backspace':
|
|
408
|
+
this.onBackspaceKey(event);
|
|
410
409
|
break;
|
|
411
410
|
|
|
412
411
|
default:
|
|
@@ -553,6 +552,21 @@ export default {
|
|
|
553
552
|
this.changeFocusedOptionIndex(event, index);
|
|
554
553
|
}
|
|
555
554
|
},
|
|
555
|
+
onOptionSelectRange(event, start = -1, end = -1) {
|
|
556
|
+
start === -1 && (start = this.findNearestSelectedOptionIndex(end, true));
|
|
557
|
+
end === -1 && (end = this.findNearestSelectedOptionIndex(start));
|
|
558
|
+
|
|
559
|
+
if (start !== -1 && end !== -1) {
|
|
560
|
+
const rangeStart = Math.min(start, end);
|
|
561
|
+
const rangeEnd = Math.max(start, end);
|
|
562
|
+
const value = this.visibleOptions
|
|
563
|
+
.slice(rangeStart, rangeEnd + 1)
|
|
564
|
+
.filter((option) => this.isValidOption(option))
|
|
565
|
+
.map((option) => this.getOptionValue(option));
|
|
566
|
+
|
|
567
|
+
this.updateModel(event, value);
|
|
568
|
+
}
|
|
569
|
+
},
|
|
556
570
|
onOverlayClick(event) {
|
|
557
571
|
OverlayEventBus.emit('overlay-click', {
|
|
558
572
|
originalEvent: event,
|
|
@@ -576,6 +590,10 @@ export default {
|
|
|
576
590
|
|
|
577
591
|
const optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findFirstOptionIndex() : this.findFirstFocusedOptionIndex();
|
|
578
592
|
|
|
593
|
+
if (this.multiple && event.shiftKey) {
|
|
594
|
+
this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
|
|
595
|
+
}
|
|
596
|
+
|
|
579
597
|
this.changeFocusedOptionIndex(event, optionIndex);
|
|
580
598
|
|
|
581
599
|
event.preventDefault();
|
|
@@ -595,6 +613,10 @@ export default {
|
|
|
595
613
|
} else {
|
|
596
614
|
const optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findLastOptionIndex() : this.findLastFocusedOptionIndex();
|
|
597
615
|
|
|
616
|
+
if (this.multiple && event.shiftKey) {
|
|
617
|
+
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
|
|
618
|
+
}
|
|
619
|
+
|
|
598
620
|
this.changeFocusedOptionIndex(event, optionIndex);
|
|
599
621
|
|
|
600
622
|
event.preventDefault();
|
|
@@ -622,6 +644,12 @@ export default {
|
|
|
622
644
|
onHomeKey(event) {
|
|
623
645
|
const { currentTarget } = event;
|
|
624
646
|
const len = currentTarget.value.length;
|
|
647
|
+
const metaKey = event.metaKey || event.ctrlKey;
|
|
648
|
+
const optionIndex = this.findFirstOptionIndex();
|
|
649
|
+
|
|
650
|
+
if (this.multiple && event.shiftKey && metaKey) {
|
|
651
|
+
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
|
|
652
|
+
}
|
|
625
653
|
|
|
626
654
|
currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);
|
|
627
655
|
this.focusedOptionIndex = -1;
|
|
@@ -631,6 +659,12 @@ export default {
|
|
|
631
659
|
onEndKey(event) {
|
|
632
660
|
const { currentTarget } = event;
|
|
633
661
|
const len = currentTarget.value.length;
|
|
662
|
+
const metaKey = event.metaKey || event.ctrlKey;
|
|
663
|
+
const optionIndex = this.findLastOptionIndex();
|
|
664
|
+
|
|
665
|
+
if (this.multiple && event.shiftKey && metaKey) {
|
|
666
|
+
this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
|
|
667
|
+
}
|
|
634
668
|
|
|
635
669
|
currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);
|
|
636
670
|
this.focusedOptionIndex = -1;
|
|
@@ -657,7 +691,12 @@ export default {
|
|
|
657
691
|
this.onArrowDownKey(event);
|
|
658
692
|
} else {
|
|
659
693
|
if (this.focusedOptionIndex !== -1) {
|
|
660
|
-
this.
|
|
694
|
+
if (this.multiple && event.shiftKey) {
|
|
695
|
+
this.onOptionSelectRange(event, this.focusedOptionIndex);
|
|
696
|
+
event.preventDefault();
|
|
697
|
+
} else {
|
|
698
|
+
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
699
|
+
}
|
|
661
700
|
}
|
|
662
701
|
|
|
663
702
|
this.hide();
|
|
@@ -677,6 +716,9 @@ export default {
|
|
|
677
716
|
|
|
678
717
|
this.overlayVisible && this.hide();
|
|
679
718
|
},
|
|
719
|
+
onShiftKey() {
|
|
720
|
+
this.startRangeIndex = this.focusedOptionIndex;
|
|
721
|
+
},
|
|
680
722
|
onBackspaceKey(event) {
|
|
681
723
|
if (this.multiple) {
|
|
682
724
|
if (isNotEmpty(this.d_value) && !this.$refs.focusInput.value) {
|
|
@@ -749,12 +791,12 @@ export default {
|
|
|
749
791
|
}
|
|
750
792
|
};
|
|
751
793
|
|
|
752
|
-
document.addEventListener('click', this.outsideClickListener);
|
|
794
|
+
document.addEventListener('click', this.outsideClickListener, true);
|
|
753
795
|
}
|
|
754
796
|
},
|
|
755
797
|
unbindOutsideClickListener() {
|
|
756
798
|
if (this.outsideClickListener) {
|
|
757
|
-
document.removeEventListener('click', this.outsideClickListener);
|
|
799
|
+
document.removeEventListener('click', this.outsideClickListener, true);
|
|
758
800
|
this.outsideClickListener = null;
|
|
759
801
|
}
|
|
760
802
|
},
|
|
@@ -883,7 +925,7 @@ export default {
|
|
|
883
925
|
},
|
|
884
926
|
scrollInView(index = -1) {
|
|
885
927
|
this.$nextTick(() => {
|
|
886
|
-
const id = index !== -1 ? `${this
|
|
928
|
+
const id = index !== -1 ? `${this.$id}_${index}` : this.focusedOptionId;
|
|
887
929
|
const element = findSingle(this.list, `li[id="${id}"]`);
|
|
888
930
|
|
|
889
931
|
if (element) {
|
|
@@ -923,6 +965,31 @@ export default {
|
|
|
923
965
|
},
|
|
924
966
|
virtualScrollerRef(el) {
|
|
925
967
|
this.virtualScroller = el;
|
|
968
|
+
},
|
|
969
|
+
findNextSelectedOptionIndex(index) {
|
|
970
|
+
const matchedOptionIndex = this.$filled && index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex((option) => this.isValidSelectedOption(option)) : -1;
|
|
971
|
+
|
|
972
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
|
|
973
|
+
},
|
|
974
|
+
findPrevSelectedOptionIndex(index) {
|
|
975
|
+
const matchedOptionIndex = this.$filled && index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), (option) => this.isValidSelectedOption(option)) : -1;
|
|
976
|
+
|
|
977
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
|
|
978
|
+
},
|
|
979
|
+
findNearestSelectedOptionIndex(index, firstCheckUp = false) {
|
|
980
|
+
let matchedOptionIndex = -1;
|
|
981
|
+
|
|
982
|
+
if (this.$filled) {
|
|
983
|
+
if (firstCheckUp) {
|
|
984
|
+
matchedOptionIndex = this.findPrevSelectedOptionIndex(index);
|
|
985
|
+
matchedOptionIndex = matchedOptionIndex === -1 ? this.findNextSelectedOptionIndex(index) : matchedOptionIndex;
|
|
986
|
+
} else {
|
|
987
|
+
matchedOptionIndex = this.findNextSelectedOptionIndex(index);
|
|
988
|
+
matchedOptionIndex = matchedOptionIndex === -1 ? this.findPrevSelectedOptionIndex(index) : matchedOptionIndex;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
926
993
|
}
|
|
927
994
|
},
|
|
928
995
|
computed: {
|
|
@@ -972,10 +1039,10 @@ export default {
|
|
|
972
1039
|
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.listLabel : undefined;
|
|
973
1040
|
},
|
|
974
1041
|
focusedOptionId() {
|
|
975
|
-
return this.focusedOptionIndex !== -1 ? `${this
|
|
1042
|
+
return this.focusedOptionIndex !== -1 ? `${this.$id}_${this.focusedOptionIndex}` : null;
|
|
976
1043
|
},
|
|
977
1044
|
focusedMultipleOptionId() {
|
|
978
|
-
return this.focusedMultipleOptionIndex !== -1 ? `${this
|
|
1045
|
+
return this.focusedMultipleOptionIndex !== -1 ? `${this.$id}_multiple_option_${this.focusedMultipleOptionIndex}` : null;
|
|
979
1046
|
},
|
|
980
1047
|
ariaSetSize() {
|
|
981
1048
|
return this.visibleOptions.filter((option) => !this.isOptionGroup(option)).length;
|
|
@@ -984,7 +1051,7 @@ export default {
|
|
|
984
1051
|
return !this.virtualScrollerOptions;
|
|
985
1052
|
},
|
|
986
1053
|
panelId() {
|
|
987
|
-
return this
|
|
1054
|
+
return this.$id + '_panel';
|
|
988
1055
|
}
|
|
989
1056
|
},
|
|
990
1057
|
components: {
|
package/autocomplete/index.d.ts
CHANGED
|
@@ -280,6 +280,14 @@ export interface AutoCompleteState {
|
|
|
280
280
|
* Defines current options in AutoComplete component.
|
|
281
281
|
*/
|
|
282
282
|
export interface AutoCompleteContext {
|
|
283
|
+
/**
|
|
284
|
+
* Current option.
|
|
285
|
+
*/
|
|
286
|
+
option?: any;
|
|
287
|
+
/**
|
|
288
|
+
* Index of the current option.
|
|
289
|
+
*/
|
|
290
|
+
index: number;
|
|
283
291
|
/**
|
|
284
292
|
* Current selection state of the item as a boolean.
|
|
285
293
|
* @defaultValue false
|
|
@@ -383,9 +391,9 @@ export interface AutoCompleteProps {
|
|
|
383
391
|
disabled?: boolean | undefined;
|
|
384
392
|
/**
|
|
385
393
|
* Specifies the input variant of the component.
|
|
386
|
-
* @defaultValue
|
|
394
|
+
* @defaultValue null
|
|
387
395
|
*/
|
|
388
|
-
variant?: 'outlined' | 'filled' | undefined;
|
|
396
|
+
variant?: 'outlined' | 'filled' | undefined | null;
|
|
389
397
|
/**
|
|
390
398
|
* A property to uniquely identify an option.
|
|
391
399
|
*/
|
|
@@ -574,6 +582,15 @@ export interface AutoCompleteSlots {
|
|
|
574
582
|
* A value in the selection
|
|
575
583
|
*/
|
|
576
584
|
value: any;
|
|
585
|
+
/**
|
|
586
|
+
* Index of the token.
|
|
587
|
+
*/
|
|
588
|
+
index: number;
|
|
589
|
+
/**
|
|
590
|
+
* Remove token icon function.
|
|
591
|
+
* @param {Event} event - Browser event
|
|
592
|
+
*/
|
|
593
|
+
removeCallback: (event: Event) => void;
|
|
577
594
|
}): VNode[];
|
|
578
595
|
/**
|
|
579
596
|
* Custom header template of panel.
|