primevue 3.46.0 → 3.47.1
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/README.md +2 -2
- package/api/api.cjs.js +6 -6
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +6 -6
- package/api/api.esm.min.js +1 -1
- package/api/api.js +6 -6
- package/api/api.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +6 -1
- package/autocomplete/AutoComplete.vue +24 -15
- package/autocomplete/BaseAutoComplete.vue +5 -1
- package/autocomplete/autocomplete.cjs.js +29 -18
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +29 -18
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +29 -18
- package/autocomplete/autocomplete.min.js +1 -1
- package/basecomponent/basecomponent.cjs.js +1 -3
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +1 -3
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +1 -3
- package/basecomponent/basecomponent.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.cjs.js +1 -3
- package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.esm.js +1 -3
- package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.js +1 -3
- package/basecomponent/style/basecomponentstyle.min.js +1 -1
- package/basedirective/basedirective.cjs.js +11 -2
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +11 -2
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +11 -2
- package/basedirective/basedirective.min.js +1 -1
- package/baseicon/BaseIcon.vue +6 -1
- package/baseicon/baseicon.cjs.js +5 -0
- package/baseicon/baseicon.cjs.min.js +1 -1
- package/baseicon/baseicon.esm.js +6 -1
- package/baseicon/baseicon.esm.min.js +1 -1
- package/baseicon/baseicon.js +5 -0
- package/baseicon/baseicon.min.js +1 -1
- package/calendar/Calendar.d.ts +53 -2
- package/calendar/Calendar.vue +12 -0
- package/calendar/calendar.cjs.js +12 -0
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +12 -0
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +12 -0
- package/calendar/calendar.min.js +1 -1
- package/cascadeselect/BaseCascadeSelect.vue +5 -1
- package/cascadeselect/CascadeSelect.d.ts +6 -1
- package/cascadeselect/CascadeSelect.vue +56 -35
- package/cascadeselect/CascadeSelectSub.vue +9 -2
- package/cascadeselect/cascadeselect.cjs.js +99 -52
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +99 -52
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +99 -52
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/BaseCheckbox.vue +0 -4
- package/checkbox/Checkbox.d.ts +17 -34
- package/checkbox/Checkbox.vue +24 -35
- package/checkbox/checkbox.cjs.js +21 -49
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +21 -49
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +21 -49
- package/checkbox/checkbox.min.js +1 -1
- package/checkbox/style/checkboxstyle.cjs.js +5 -11
- package/checkbox/style/checkboxstyle.cjs.min.js +1 -1
- package/checkbox/style/checkboxstyle.esm.js +5 -11
- package/checkbox/style/checkboxstyle.esm.min.js +1 -1
- package/checkbox/style/checkboxstyle.js +5 -11
- package/checkbox/style/checkboxstyle.min.js +1 -1
- package/chips/Chips.vue +2 -1
- package/chips/chips.cjs.js +2 -1
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +2 -1
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +2 -1
- package/chips/chips.min.js +1 -1
- package/column/Column.d.ts +11 -44
- package/confirmpopup/ConfirmPopup.vue +1 -1
- package/confirmpopup/confirmpopup.cjs.js +1 -1
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +1 -1
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +1 -1
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.vue +8 -8
- package/contextmenu/contextmenu.cjs.js +7 -6
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +7 -6
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +7 -6
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +918 -628
- package/core/core.min.js +63 -55
- package/datatable/BaseDataTable.vue +4 -0
- package/datatable/BodyCell.vue +11 -1
- package/datatable/BodyRow.vue +5 -2
- package/datatable/ColumnFilter.vue +5 -2
- package/datatable/DataTable.d.ts +5 -0
- package/datatable/DataTable.vue +2 -2
- package/datatable/HeaderCell.vue +2 -1
- package/datatable/HeaderCheckbox.vue +14 -42
- package/datatable/RowCheckbox.vue +10 -52
- package/datatable/RowRadioButton.vue +11 -32
- package/datatable/TableHeader.vue +3 -1
- package/datatable/datatable.cjs.js +110 -193
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +109 -194
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +110 -195
- package/datatable/datatable.min.js +1 -1
- package/datatable/style/datatablestyle.cjs.js +23 -72
- package/datatable/style/datatablestyle.cjs.min.js +1 -1
- package/datatable/style/datatablestyle.esm.js +23 -72
- package/datatable/style/datatablestyle.esm.min.js +1 -1
- package/datatable/style/datatablestyle.js +23 -72
- package/datatable/style/datatablestyle.min.js +1 -1
- package/dialog/style/dialogstyle.cjs.js +1 -1
- package/dialog/style/dialogstyle.cjs.min.js +1 -1
- package/dialog/style/dialogstyle.esm.js +1 -1
- package/dialog/style/dialogstyle.esm.min.js +1 -1
- package/dialog/style/dialogstyle.js +1 -1
- package/dialog/style/dialogstyle.min.js +1 -1
- package/dropdown/BaseDropdown.vue +17 -1
- package/dropdown/Dropdown.d.ts +37 -1
- package/dropdown/Dropdown.vue +68 -40
- package/dropdown/dropdown.cjs.js +95 -45
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +93 -45
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +95 -47
- package/dropdown/dropdown.min.js +1 -1
- package/dropdown/style/dropdownstyle.cjs.js +7 -2
- package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
- package/dropdown/style/dropdownstyle.esm.js +7 -2
- package/dropdown/style/dropdownstyle.esm.min.js +1 -1
- package/dropdown/style/dropdownstyle.js +7 -2
- package/dropdown/style/dropdownstyle.min.js +1 -1
- package/focustrap/focustrap.cjs.js +15 -2
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +15 -2
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +15 -2
- package/focustrap/focustrap.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +3 -9
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +3 -9
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +5 -10
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowdown/index.vue +1 -7
- package/icons/arrowup/index.cjs.js +3 -9
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +3 -9
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +5 -10
- package/icons/arrowup/index.min.js +1 -1
- package/icons/arrowup/index.vue +1 -7
- package/icons/ban/index.cjs.js +3 -9
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +3 -9
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +5 -10
- package/icons/ban/index.min.js +1 -1
- package/icons/ban/index.vue +1 -7
- package/icons/blank/index.cjs.js +34 -0
- package/icons/blank/index.cjs.min.js +1 -0
- package/icons/blank/index.d.ts +12 -0
- package/icons/blank/index.esm.js +28 -0
- package/icons/blank/index.esm.min.js +1 -0
- package/icons/blank/index.js +36 -0
- package/icons/blank/index.min.js +1 -0
- package/icons/blank/index.vue +13 -0
- package/icons/blank/package.json +9 -0
- package/icons/exclamationtriangle/index.cjs.js +3 -9
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +3 -9
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +5 -10
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/exclamationtriangle/index.vue +1 -7
- package/icons/eyeslash/index.cjs.js +3 -9
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +3 -9
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +5 -10
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/eyeslash/index.vue +1 -7
- package/icons/filter/index.cjs.js +3 -9
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +3 -9
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +5 -10
- package/icons/filter/index.min.js +1 -1
- package/icons/filter/index.vue +1 -7
- package/icons/filterslash/index.cjs.js +3 -9
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +3 -9
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +5 -10
- package/icons/filterslash/index.min.js +1 -1
- package/icons/filterslash/index.vue +1 -7
- package/icons/infocircle/index.cjs.js +3 -9
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +3 -9
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +5 -10
- package/icons/infocircle/index.min.js +1 -1
- package/icons/infocircle/index.vue +1 -7
- package/icons/pencil/index.cjs.js +3 -9
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +3 -9
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +5 -10
- package/icons/pencil/index.min.js +1 -1
- package/icons/pencil/index.vue +1 -7
- package/icons/plus/index.cjs.js +3 -9
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +3 -9
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +5 -10
- package/icons/plus/index.min.js +1 -1
- package/icons/plus/index.vue +1 -7
- package/icons/refresh/index.cjs.js +3 -9
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +3 -9
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +5 -10
- package/icons/refresh/index.min.js +1 -1
- package/icons/refresh/index.vue +1 -7
- package/icons/search/index.cjs.js +3 -9
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +3 -9
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +5 -10
- package/icons/search/index.min.js +1 -1
- package/icons/search/index.vue +1 -7
- package/icons/searchminus/index.cjs.js +3 -9
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +3 -9
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +5 -10
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchminus/index.vue +1 -7
- package/icons/searchplus/index.cjs.js +3 -9
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +3 -9
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +5 -10
- package/icons/searchplus/index.min.js +1 -1
- package/icons/searchplus/index.vue +1 -7
- package/icons/sortalt/index.cjs.js +3 -9
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +3 -9
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +5 -10
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortalt/index.vue +1 -7
- package/icons/sortamountdown/index.cjs.js +3 -9
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +3 -9
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +5 -10
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountdown/index.vue +1 -7
- package/icons/sortamountupalt/index.cjs.js +3 -9
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +3 -9
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +5 -10
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/sortamountupalt/index.vue +1 -7
- package/icons/spinner/index.cjs.js +3 -9
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +3 -9
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +5 -10
- package/icons/spinner/index.min.js +1 -1
- package/icons/spinner/index.vue +1 -7
- package/icons/star/index.cjs.js +3 -9
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +3 -9
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +5 -10
- package/icons/star/index.min.js +1 -1
- package/icons/star/index.vue +1 -7
- package/icons/starfill/index.cjs.js +3 -9
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +3 -9
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +5 -10
- package/icons/starfill/index.min.js +1 -1
- package/icons/starfill/index.vue +1 -7
- package/icons/thlarge/index.cjs.js +3 -9
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +3 -9
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +5 -10
- package/icons/thlarge/index.min.js +1 -1
- package/icons/thlarge/index.vue +1 -7
- package/icons/timescircle/index.cjs.js +3 -9
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +3 -9
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +5 -10
- package/icons/timescircle/index.min.js +1 -1
- package/icons/timescircle/index.vue +1 -7
- package/icons/trash/index.cjs.js +3 -9
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +3 -9
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +5 -10
- package/icons/trash/index.min.js +1 -1
- package/icons/trash/index.vue +1 -7
- package/icons/undo/index.cjs.js +3 -9
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +3 -9
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +5 -10
- package/icons/undo/index.min.js +1 -1
- package/icons/undo/index.vue +1 -7
- package/icons/upload/index.cjs.js +3 -9
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +3 -9
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +5 -10
- package/icons/upload/index.min.js +1 -1
- package/icons/upload/index.vue +1 -7
- package/icons/windowmaximize/index.cjs.js +3 -9
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +3 -9
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +5 -10
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowmaximize/index.vue +1 -7
- package/icons/windowminimize/index.cjs.js +3 -9
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +3 -9
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +5 -10
- package/icons/windowminimize/index.min.js +1 -1
- package/icons/windowminimize/index.vue +1 -7
- package/inputnumber/InputNumber.vue +18 -9
- package/inputnumber/inputnumber.cjs.js +14 -6
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +15 -7
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +14 -6
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/BaseInputSwitch.vue +8 -4
- package/inputswitch/InputSwitch.d.ts +41 -20
- package/inputswitch/InputSwitch.vue +31 -33
- package/inputswitch/inputswitch.cjs.js +38 -42
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +38 -42
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +38 -42
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputswitch/style/inputswitchstyle.cjs.js +4 -4
- package/inputswitch/style/inputswitchstyle.cjs.min.js +1 -1
- package/inputswitch/style/inputswitchstyle.esm.js +4 -4
- package/inputswitch/style/inputswitchstyle.esm.min.js +1 -1
- package/inputswitch/style/inputswitchstyle.js +4 -4
- package/inputswitch/style/inputswitchstyle.min.js +1 -1
- package/listbox/BaseListbox.vue +4 -0
- package/listbox/Listbox.d.ts +6 -1
- package/listbox/Listbox.vue +47 -26
- package/listbox/listbox.cjs.js +89 -50
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +89 -50
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +89 -50
- package/listbox/listbox.min.js +1 -1
- package/listbox/style/listboxstyle.cjs.js +2 -3
- package/listbox/style/listboxstyle.cjs.min.js +1 -1
- package/listbox/style/listboxstyle.esm.js +2 -3
- package/listbox/style/listboxstyle.esm.min.js +1 -1
- package/listbox/style/listboxstyle.js +2 -3
- package/listbox/style/listboxstyle.min.js +1 -1
- package/megamenu/MegaMenu.vue +1 -1
- package/megamenu/megamenu.cjs.js +2 -1
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +2 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +2 -1
- package/megamenu/megamenu.min.js +1 -1
- package/menubar/Menubar.vue +1 -1
- package/menubar/menubar.cjs.js +2 -1
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +2 -1
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +2 -1
- package/menubar/menubar.min.js +1 -1
- package/message/Message.d.ts +4 -0
- package/message/Message.vue +2 -1
- package/message/message.cjs.js +2 -1
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +2 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.js +2 -1
- package/message/message.min.js +1 -1
- package/metergroup/BaseMeterGroup.vue +41 -0
- package/metergroup/MeterGroup.d.ts +302 -0
- package/metergroup/MeterGroup.vue +73 -0
- package/metergroup/MeterGroupLabel.vue +36 -0
- package/metergroup/metergroup.cjs.js +218 -0
- package/metergroup/metergroup.cjs.min.js +1 -0
- package/metergroup/metergroup.esm.js +211 -0
- package/metergroup/metergroup.esm.min.js +1 -0
- package/metergroup/metergroup.js +218 -0
- package/metergroup/metergroup.min.js +1 -0
- package/metergroup/package.json +9 -0
- package/metergroup/style/MeterGroupStyle.d.ts +3 -0
- package/metergroup/style/metergroupstyle.cjs.js +40 -0
- package/metergroup/style/metergroupstyle.cjs.min.js +1 -0
- package/metergroup/style/metergroupstyle.esm.js +34 -0
- package/metergroup/style/metergroupstyle.esm.min.js +1 -0
- package/metergroup/style/metergroupstyle.js +43 -0
- package/metergroup/style/metergroupstyle.min.js +1 -0
- package/metergroup/style/package.json +6 -0
- package/multiselect/BaseMultiSelect.vue +9 -1
- package/multiselect/MultiSelect.d.ts +13 -19
- package/multiselect/MultiSelect.vue +108 -76
- package/multiselect/multiselect.cjs.js +173 -133
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +173 -134
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +174 -135
- package/multiselect/multiselect.min.js +1 -1
- package/multiselect/style/multiselectstyle.cjs.js +7 -30
- package/multiselect/style/multiselectstyle.cjs.min.js +1 -1
- package/multiselect/style/multiselectstyle.esm.js +7 -30
- package/multiselect/style/multiselectstyle.esm.min.js +1 -1
- package/multiselect/style/multiselectstyle.js +7 -30
- package/multiselect/style/multiselectstyle.min.js +1 -1
- package/orderlist/BaseOrderList.vue +8 -0
- package/orderlist/OrderList.d.ts +10 -0
- package/orderlist/OrderList.vue +73 -54
- package/orderlist/orderlist.cjs.js +82 -58
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +82 -58
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +82 -58
- package/orderlist/orderlist.min.js +1 -1
- package/orderlist/style/orderliststyle.cjs.js +1 -1
- package/orderlist/style/orderliststyle.cjs.min.js +1 -1
- package/orderlist/style/orderliststyle.esm.js +1 -1
- package/orderlist/style/orderliststyle.esm.min.js +1 -1
- package/orderlist/style/orderliststyle.js +1 -1
- package/orderlist/style/orderliststyle.min.js +1 -1
- package/overlaypanel/OverlayPanel.d.ts +4 -0
- package/overlaypanel/OverlayPanel.vue +1 -1
- package/overlaypanel/overlaypanel.cjs.js +1 -1
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +1 -1
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +1 -1
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/panelmenu/PanelMenuList.vue +1 -1
- package/panelmenu/panelmenu.cjs.js +2 -1
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +2 -1
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +2 -1
- package/panelmenu/panelmenu.min.js +1 -1
- package/picklist/BasePickList.vue +8 -0
- package/picklist/PickList.d.ts +10 -0
- package/picklist/PickList.vue +73 -38
- package/picklist/picklist.cjs.js +84 -47
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +84 -47
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +84 -47
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.vue +1 -1
- package/progressbar/progressbar.cjs.js +3 -1
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +3 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +3 -1
- package/progressbar/progressbar.min.js +1 -1
- package/radiobutton/BaseRadioButton.vue +9 -4
- package/radiobutton/RadioButton.d.ts +48 -22
- package/radiobutton/RadioButton.vue +36 -23
- package/radiobutton/radiobutton.cjs.js +42 -50
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +42 -50
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +42 -50
- package/radiobutton/radiobutton.min.js +1 -1
- package/radiobutton/style/radiobuttonstyle.cjs.js +5 -11
- package/radiobutton/style/radiobuttonstyle.cjs.min.js +1 -1
- package/radiobutton/style/radiobuttonstyle.esm.js +5 -11
- package/radiobutton/style/radiobuttonstyle.esm.min.js +1 -1
- package/radiobutton/style/radiobuttonstyle.js +5 -11
- package/radiobutton/style/radiobuttonstyle.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +434 -353
- package/resources/themes/arya-green/theme.css +434 -353
- package/resources/themes/arya-orange/theme.css +434 -353
- package/resources/themes/arya-purple/theme.css +434 -353
- package/resources/themes/aura-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-amber/theme.css +7012 -0
- package/resources/themes/aura-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-blue/theme.css +7012 -0
- package/resources/themes/aura-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-cyan/theme.css +7012 -0
- package/resources/themes/aura-dark-green/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-green/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-green/theme.css +7012 -0
- package/resources/themes/aura-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-indigo/theme.css +7012 -0
- package/resources/themes/aura-dark-lime/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-lime/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-lime/theme.css +7012 -0
- package/resources/themes/aura-dark-noir/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-noir/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-noir/theme.css +7012 -0
- package/resources/themes/aura-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-pink/theme.css +7012 -0
- package/resources/themes/aura-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-purple/theme.css +7012 -0
- package/resources/themes/aura-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-teal/theme.css +7012 -0
- package/resources/themes/aura-light-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-amber/theme.css +7014 -0
- package/resources/themes/aura-light-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-blue/theme.css +7014 -0
- package/resources/themes/aura-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-cyan/theme.css +7014 -0
- package/resources/themes/aura-light-green/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-green/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-green/theme.css +7014 -0
- package/resources/themes/aura-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-indigo/theme.css +7014 -0
- package/resources/themes/aura-light-lime/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-lime/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-lime/theme.css +7014 -0
- package/resources/themes/aura-light-noir/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-noir/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-noir/theme.css +7022 -0
- package/resources/themes/aura-light-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-pink/theme.css +7014 -0
- package/resources/themes/aura-light-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-purple/theme.css +7014 -0
- package/resources/themes/aura-light-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-teal/theme.css +7014 -0
- package/resources/themes/bootstrap4-dark-blue/theme.css +531 -401
- package/resources/themes/bootstrap4-dark-purple/theme.css +531 -401
- package/resources/themes/bootstrap4-light-blue/theme.css +531 -401
- package/resources/themes/bootstrap4-light-purple/theme.css +531 -401
- package/resources/themes/fluent-light/theme.css +433 -352
- package/resources/themes/lara-dark-amber/theme.css +532 -402
- package/resources/themes/lara-dark-blue/theme.css +532 -402
- package/resources/themes/lara-dark-cyan/theme.css +532 -402
- package/resources/themes/lara-dark-green/theme.css +532 -402
- package/resources/themes/lara-dark-indigo/theme.css +532 -402
- package/resources/themes/lara-dark-pink/theme.css +532 -402
- package/resources/themes/lara-dark-purple/theme.css +532 -402
- package/resources/themes/lara-dark-teal/theme.css +532 -402
- package/resources/themes/lara-light-amber/theme.css +528 -398
- package/resources/themes/lara-light-blue/theme.css +528 -398
- package/resources/themes/lara-light-cyan/theme.css +528 -398
- package/resources/themes/lara-light-green/theme.css +528 -398
- package/resources/themes/lara-light-indigo/theme.css +528 -398
- package/resources/themes/lara-light-pink/theme.css +528 -398
- package/resources/themes/lara-light-purple/theme.css +528 -398
- package/resources/themes/lara-light-teal/theme.css +528 -398
- package/resources/themes/luna-amber/theme.css +434 -353
- package/resources/themes/luna-blue/theme.css +434 -353
- package/resources/themes/luna-green/theme.css +434 -353
- package/resources/themes/luna-pink/theme.css +434 -353
- package/resources/themes/md-dark-deeppurple/theme.css +694 -429
- package/resources/themes/md-dark-indigo/theme.css +694 -429
- package/resources/themes/md-light-deeppurple/theme.css +698 -433
- package/resources/themes/md-light-indigo/theme.css +698 -433
- package/resources/themes/mdc-dark-deeppurple/theme.css +694 -429
- package/resources/themes/mdc-dark-indigo/theme.css +694 -429
- package/resources/themes/mdc-light-deeppurple/theme.css +698 -433
- package/resources/themes/mdc-light-indigo/theme.css +698 -433
- package/resources/themes/mira/theme.css +484 -403
- package/resources/themes/nano/theme.css +434 -353
- package/resources/themes/nova/theme.css +434 -353
- package/resources/themes/nova-accent/theme.css +434 -353
- package/resources/themes/nova-alt/theme.css +434 -353
- package/resources/themes/nova-vue/theme.css +434 -353
- package/resources/themes/rhea/theme.css +434 -353
- package/resources/themes/saga-blue/theme.css +434 -353
- package/resources/themes/saga-green/theme.css +434 -353
- package/resources/themes/saga-orange/theme.css +434 -353
- package/resources/themes/saga-purple/theme.css +434 -353
- package/resources/themes/soho-dark/theme.css +532 -402
- package/resources/themes/soho-light/theme.css +532 -402
- package/resources/themes/tailwind-light/theme.css +434 -353
- package/resources/themes/vela-blue/theme.css +434 -353
- package/resources/themes/vela-green/theme.css +434 -353
- package/resources/themes/vela-orange/theme.css +434 -353
- package/resources/themes/vela-purple/theme.css +434 -353
- package/resources/themes/viva-dark/theme.css +533 -403
- package/resources/themes/viva-light/theme.css +533 -403
- package/slider/Slider.vue +0 -1
- package/slider/slider.cjs.js +0 -1
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +0 -1
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +0 -1
- package/slider/slider.min.js +1 -1
- package/speeddial/SpeedDial.vue +2 -2
- package/speeddial/speeddial.cjs.js +2 -2
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +2 -2
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +2 -2
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.cjs.js +8 -5
- package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.esm.js +8 -5
- package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.js +8 -5
- package/splitbutton/style/splitbuttonstyle.min.js +1 -1
- package/tabview/TabView.vue +2 -3
- package/tabview/tabview.cjs.js +3 -3
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +3 -3
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +3 -3
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.vue +1 -1
- package/tag/tag.cjs.js +4 -2
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +4 -2
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +4 -2
- package/tag/tag.min.js +1 -1
- package/textarea/Textarea.d.ts +2 -2
- package/tieredmenu/TieredMenu.vue +1 -1
- package/tieredmenu/tieredmenu.cjs.js +2 -1
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +2 -1
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +2 -1
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/togglebutton/BaseToggleButton.vue +4 -4
- package/togglebutton/ToggleButton.d.ts +17 -24
- package/togglebutton/ToggleButton.vue +41 -67
- package/togglebutton/style/togglebuttonstyle.cjs.js +15 -8
- package/togglebutton/style/togglebuttonstyle.cjs.min.js +1 -1
- package/togglebutton/style/togglebuttonstyle.esm.js +15 -8
- package/togglebutton/style/togglebuttonstyle.esm.min.js +1 -1
- package/togglebutton/style/togglebuttonstyle.js +15 -8
- package/togglebutton/style/togglebuttonstyle.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +45 -80
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +46 -81
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +46 -82
- package/togglebutton/togglebutton.min.js +1 -1
- package/tree/BaseTree.vue +4 -0
- package/tree/Tree.d.ts +6 -9
- package/tree/Tree.vue +1 -1
- package/tree/TreeNode.vue +14 -11
- package/tree/style/treestyle.cjs.js +3 -6
- package/tree/style/treestyle.cjs.min.js +1 -1
- package/tree/style/treestyle.esm.js +3 -6
- package/tree/style/treestyle.esm.min.js +1 -1
- package/tree/style/treestyle.js +3 -6
- package/tree/style/treestyle.min.js +1 -1
- package/tree/tree.cjs.js +34 -21
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +34 -22
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +35 -23
- package/tree/tree.min.js +1 -1
- package/treetable/BodyCell.vue +26 -24
- package/treetable/TreeTable.vue +3 -1
- package/treetable/TreeTableRow.vue +2 -0
- package/treetable/style/treetablestyle.cjs.js +4 -13
- package/treetable/style/treetablestyle.cjs.min.js +1 -1
- package/treetable/style/treetablestyle.esm.js +4 -13
- package/treetable/style/treetablestyle.esm.min.js +1 -1
- package/treetable/style/treetablestyle.js +4 -13
- package/treetable/style/treetablestyle.min.js +1 -1
- package/treetable/treetable.cjs.js +39 -44
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +39 -45
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +40 -46
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/BaseTriStateCheckbox.vue +17 -9
- package/tristatecheckbox/TriStateCheckbox.d.ts +34 -23
- package/tristatecheckbox/TriStateCheckbox.vue +49 -61
- package/tristatecheckbox/style/tristatecheckboxstyle.cjs.js +7 -13
- package/tristatecheckbox/style/tristatecheckboxstyle.cjs.min.js +1 -1
- package/tristatecheckbox/style/tristatecheckboxstyle.esm.js +7 -13
- package/tristatecheckbox/style/tristatecheckboxstyle.esm.min.js +1 -1
- package/tristatecheckbox/style/tristatecheckboxstyle.js +7 -13
- package/tristatecheckbox/style/tristatecheckboxstyle.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +69 -87
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +70 -88
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +69 -87
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +14 -6
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +14 -6
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +14 -6
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +24 -0
- package/vetur-tags.json +6 -0
- package/virtualscroller/BaseVirtualScroller.vue +1 -1
- package/virtualscroller/VirtualScroller.vue +58 -50
- package/virtualscroller/virtualscroller.cjs.js +90 -77
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +90 -77
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +90 -77
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +71 -6
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIcon, SpinnerIcon, TimesIcon, TimesCircleIcon, OverlayEventBus, Portal, Ripple, utils, VirtualScroller, BaseComponent, MultiSelectStyle, vue) {
|
|
2
|
+
this.primevue.multiselect = (function (api, Checkbox, CheckIcon, ChevronDownIcon, SearchIcon, SpinnerIcon, TimesIcon, TimesCircleIcon, OverlayEventBus, Portal, Ripple, utils, VirtualScroller, BaseComponent, MultiSelectStyle, vue) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
6
|
|
|
7
|
+
var Checkbox__default = /*#__PURE__*/_interopDefaultLegacy(Checkbox);
|
|
7
8
|
var CheckIcon__default = /*#__PURE__*/_interopDefaultLegacy(CheckIcon);
|
|
8
9
|
var ChevronDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronDownIcon);
|
|
9
10
|
var SearchIcon__default = /*#__PURE__*/_interopDefaultLegacy(SearchIcon);
|
|
@@ -140,12 +141,20 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
140
141
|
},
|
|
141
142
|
autoOptionFocus: {
|
|
142
143
|
type: Boolean,
|
|
143
|
-
"default":
|
|
144
|
+
"default": false
|
|
144
145
|
},
|
|
145
146
|
autoFilterFocus: {
|
|
146
147
|
type: Boolean,
|
|
147
148
|
"default": false
|
|
148
149
|
},
|
|
150
|
+
focusOnHover: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
"default": true
|
|
153
|
+
},
|
|
154
|
+
highlightOnSelect: {
|
|
155
|
+
type: Boolean,
|
|
156
|
+
"default": false
|
|
157
|
+
},
|
|
149
158
|
filterMessage: {
|
|
150
159
|
type: String,
|
|
151
160
|
"default": null
|
|
@@ -213,13 +222,12 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
213
222
|
searchTimeout: null,
|
|
214
223
|
searchValue: '',
|
|
215
224
|
selectOnFocus: false,
|
|
216
|
-
focusOnHover: false,
|
|
217
225
|
data: function data() {
|
|
218
226
|
return {
|
|
219
227
|
id: this.$attrs.id,
|
|
228
|
+
clicked: false,
|
|
220
229
|
focused: false,
|
|
221
230
|
focusedOptionIndex: -1,
|
|
222
|
-
headerCheckboxFocused: false,
|
|
223
231
|
filterValue: null,
|
|
224
232
|
overlayVisible: false
|
|
225
233
|
};
|
|
@@ -264,8 +272,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
264
272
|
getHeaderCheckboxPTOptions: function getHeaderCheckboxPTOptions(key) {
|
|
265
273
|
return this.ptm(key, {
|
|
266
274
|
context: {
|
|
267
|
-
selected: this.allSelected
|
|
268
|
-
focused: this.headerCheckboxFocused
|
|
275
|
+
selected: this.allSelected
|
|
269
276
|
}
|
|
270
277
|
});
|
|
271
278
|
},
|
|
@@ -302,7 +309,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
302
309
|
show: function show(isFocus) {
|
|
303
310
|
this.$emit('before-show');
|
|
304
311
|
this.overlayVisible = true;
|
|
305
|
-
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() :
|
|
312
|
+
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.findSelectedOptionIndex();
|
|
306
313
|
isFocus && utils.DomHandler.focus(this.$refs.focusInput);
|
|
307
314
|
},
|
|
308
315
|
hide: function hide(isFocus) {
|
|
@@ -310,6 +317,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
310
317
|
var _hide = function _hide() {
|
|
311
318
|
_this2.$emit('before-hide');
|
|
312
319
|
_this2.overlayVisible = false;
|
|
320
|
+
_this2.clicked = false;
|
|
313
321
|
_this2.focusedOptionIndex = -1;
|
|
314
322
|
_this2.searchValue = '';
|
|
315
323
|
_this2.resetFilterOnHide && (_this2.filterValue = null);
|
|
@@ -325,11 +333,14 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
325
333
|
return;
|
|
326
334
|
}
|
|
327
335
|
this.focused = true;
|
|
328
|
-
|
|
329
|
-
|
|
336
|
+
if (this.overlayVisible) {
|
|
337
|
+
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.findSelectedOptionIndex();
|
|
338
|
+
this.scrollInView(this.focusedOptionIndex);
|
|
339
|
+
}
|
|
330
340
|
this.$emit('focus', event);
|
|
331
341
|
},
|
|
332
342
|
onBlur: function onBlur(event) {
|
|
343
|
+
this.clicked = false;
|
|
333
344
|
this.focused = false;
|
|
334
345
|
this.focusedOptionIndex = -1;
|
|
335
346
|
this.searchValue = '';
|
|
@@ -394,6 +405,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
394
405
|
}
|
|
395
406
|
break;
|
|
396
407
|
}
|
|
408
|
+
this.clicked = false;
|
|
397
409
|
},
|
|
398
410
|
onContainerClick: function onContainerClick(event) {
|
|
399
411
|
if (this.disabled || this.loading) {
|
|
@@ -402,6 +414,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
402
414
|
if (!this.overlay || !this.overlay.contains(event.target)) {
|
|
403
415
|
this.overlayVisible ? this.hide(true) : this.show(true);
|
|
404
416
|
}
|
|
417
|
+
this.clicked = true;
|
|
405
418
|
},
|
|
406
419
|
onFirstHiddenFocus: function onFirstHiddenFocus(event) {
|
|
407
420
|
var focusableEl = event.relatedTarget === this.$refs.focusInput ? utils.DomHandler.getFirstFocusableElement(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
|
|
@@ -414,12 +427,6 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
414
427
|
onCloseClick: function onCloseClick() {
|
|
415
428
|
this.hide(true);
|
|
416
429
|
},
|
|
417
|
-
onHeaderCheckboxFocus: function onHeaderCheckboxFocus() {
|
|
418
|
-
this.headerCheckboxFocused = true;
|
|
419
|
-
},
|
|
420
|
-
onHeaderCheckboxBlur: function onHeaderCheckboxBlur() {
|
|
421
|
-
this.headerCheckboxFocused = false;
|
|
422
|
-
},
|
|
423
430
|
onOptionSelect: function onOptionSelect(event, option) {
|
|
424
431
|
var _this4 = this;
|
|
425
432
|
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
|
@@ -520,12 +527,15 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
520
527
|
}
|
|
521
528
|
},
|
|
522
529
|
onArrowDownKey: function onArrowDownKey(event) {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
530
|
+
if (!this.overlayVisible) {
|
|
531
|
+
this.show();
|
|
532
|
+
} else {
|
|
533
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findFirstOptionIndex() : this.findFirstFocusedOptionIndex();
|
|
534
|
+
if (event.shiftKey) {
|
|
535
|
+
this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
|
|
536
|
+
}
|
|
537
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
526
538
|
}
|
|
527
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
|
528
|
-
!this.overlayVisible && this.show();
|
|
529
539
|
event.preventDefault();
|
|
530
540
|
},
|
|
531
541
|
onArrowUpKey: function onArrowUpKey(event) {
|
|
@@ -537,7 +547,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
537
547
|
this.overlayVisible && this.hide();
|
|
538
548
|
event.preventDefault();
|
|
539
549
|
} else {
|
|
540
|
-
var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.findLastFocusedOptionIndex();
|
|
550
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findLastOptionIndex() : this.findLastFocusedOptionIndex();
|
|
541
551
|
if (event.shiftKey) {
|
|
542
552
|
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
|
|
543
553
|
}
|
|
@@ -596,6 +606,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
596
606
|
},
|
|
597
607
|
onEnterKey: function onEnterKey(event) {
|
|
598
608
|
if (!this.overlayVisible) {
|
|
609
|
+
this.focusedOptionIndex = -1; // reset
|
|
599
610
|
this.onArrowDownKey(event);
|
|
600
611
|
} else {
|
|
601
612
|
if (this.focusedOptionIndex !== -1) {
|
|
@@ -744,7 +755,6 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
744
755
|
});
|
|
745
756
|
this.updateModel(event, value);
|
|
746
757
|
}
|
|
747
|
-
this.headerCheckboxFocused = true;
|
|
748
758
|
},
|
|
749
759
|
removeOption: function removeOption(event, optionValue) {
|
|
750
760
|
var _this11 = this;
|
|
@@ -760,7 +770,8 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
760
770
|
return utils.DomHandler.getFocusableElements(this.overlay, ':not([data-p-hidden-focusable="true"])').length > 0;
|
|
761
771
|
},
|
|
762
772
|
isOptionMatched: function isOptionMatched(option) {
|
|
763
|
-
|
|
773
|
+
var _this$getOptionLabel;
|
|
774
|
+
return this.isValidOption(option) && ((_this$getOptionLabel = this.getOptionLabel(option)) === null || _this$getOptionLabel === void 0 ? void 0 : _this$getOptionLabel.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)));
|
|
764
775
|
},
|
|
765
776
|
isValidOption: function isValidOption(option) {
|
|
766
777
|
return utils.ObjectUtils.isNotEmpty(option) && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
@@ -768,11 +779,14 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
768
779
|
isValidSelectedOption: function isValidSelectedOption(option) {
|
|
769
780
|
return this.isValidOption(option) && this.isSelected(option);
|
|
770
781
|
},
|
|
782
|
+
isEquals: function isEquals(value1, value2) {
|
|
783
|
+
return utils.ObjectUtils.equals(value1, value2, this.equalityKey);
|
|
784
|
+
},
|
|
771
785
|
isSelected: function isSelected(option) {
|
|
772
786
|
var _this12 = this;
|
|
773
787
|
var optionValue = this.getOptionValue(option);
|
|
774
788
|
return (this.modelValue || []).some(function (value) {
|
|
775
|
-
return
|
|
789
|
+
return _this12.isEquals(value, optionValue);
|
|
776
790
|
});
|
|
777
791
|
},
|
|
778
792
|
findFirstOptionIndex: function findFirstOptionIndex() {
|
|
@@ -801,29 +815,49 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
801
815
|
}) : -1;
|
|
802
816
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
803
817
|
},
|
|
804
|
-
|
|
818
|
+
findSelectedOptionIndex: function findSelectedOptionIndex() {
|
|
805
819
|
var _this17 = this;
|
|
820
|
+
if (this.hasSelectedOption) {
|
|
821
|
+
var _loop = function _loop() {
|
|
822
|
+
var value = _this17.modelValue[index];
|
|
823
|
+
var matchedOptionIndex = _this17.visibleOptions.findIndex(function (option) {
|
|
824
|
+
return _this17.isValidSelectedOption(option) && _this17.isEquals(value, _this17.getOptionValue(option));
|
|
825
|
+
});
|
|
826
|
+
if (matchedOptionIndex > -1) return {
|
|
827
|
+
v: matchedOptionIndex
|
|
828
|
+
};
|
|
829
|
+
},
|
|
830
|
+
_ret;
|
|
831
|
+
for (var index = this.modelValue.length - 1; index >= 0; index--) {
|
|
832
|
+
_ret = _loop();
|
|
833
|
+
if (_ret) return _ret.v;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
return -1;
|
|
837
|
+
},
|
|
838
|
+
findFirstSelectedOptionIndex: function findFirstSelectedOptionIndex() {
|
|
839
|
+
var _this18 = this;
|
|
806
840
|
return this.hasSelectedOption ? this.visibleOptions.findIndex(function (option) {
|
|
807
|
-
return
|
|
841
|
+
return _this18.isValidSelectedOption(option);
|
|
808
842
|
}) : -1;
|
|
809
843
|
},
|
|
810
844
|
findLastSelectedOptionIndex: function findLastSelectedOptionIndex() {
|
|
811
|
-
var
|
|
845
|
+
var _this19 = this;
|
|
812
846
|
return this.hasSelectedOption ? utils.ObjectUtils.findLastIndex(this.visibleOptions, function (option) {
|
|
813
|
-
return
|
|
847
|
+
return _this19.isValidSelectedOption(option);
|
|
814
848
|
}) : -1;
|
|
815
849
|
},
|
|
816
850
|
findNextSelectedOptionIndex: function findNextSelectedOptionIndex(index) {
|
|
817
|
-
var
|
|
851
|
+
var _this20 = this;
|
|
818
852
|
var matchedOptionIndex = this.hasSelectedOption && index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
819
|
-
return
|
|
853
|
+
return _this20.isValidSelectedOption(option);
|
|
820
854
|
}) : -1;
|
|
821
855
|
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
|
|
822
856
|
},
|
|
823
857
|
findPrevSelectedOptionIndex: function findPrevSelectedOptionIndex(index) {
|
|
824
|
-
var
|
|
858
|
+
var _this21 = this;
|
|
825
859
|
var matchedOptionIndex = this.hasSelectedOption && index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
826
|
-
return
|
|
860
|
+
return _this21.isValidSelectedOption(option);
|
|
827
861
|
}) : -1;
|
|
828
862
|
return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
|
|
829
863
|
},
|
|
@@ -842,61 +876,69 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
842
876
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
843
877
|
},
|
|
844
878
|
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
845
|
-
var selectedIndex = this.
|
|
879
|
+
var selectedIndex = this.findSelectedOptionIndex();
|
|
846
880
|
return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
|
|
847
881
|
},
|
|
848
882
|
findLastFocusedOptionIndex: function findLastFocusedOptionIndex() {
|
|
849
|
-
var selectedIndex = this.
|
|
883
|
+
var selectedIndex = this.findSelectedOptionIndex();
|
|
850
884
|
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
|
851
885
|
},
|
|
852
886
|
searchOptions: function searchOptions(event) {
|
|
853
|
-
var
|
|
887
|
+
var _this22 = this;
|
|
854
888
|
this.searchValue = (this.searchValue || '') + event.key;
|
|
855
889
|
var optionIndex = -1;
|
|
856
|
-
if (this.
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
optionIndex
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
890
|
+
if (utils.ObjectUtils.isNotEmpty(this.searchValue)) {
|
|
891
|
+
if (this.focusedOptionIndex !== -1) {
|
|
892
|
+
optionIndex = this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function (option) {
|
|
893
|
+
return _this22.isOptionMatched(option);
|
|
894
|
+
});
|
|
895
|
+
optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex(function (option) {
|
|
896
|
+
return _this22.isOptionMatched(option);
|
|
897
|
+
}) : optionIndex + this.focusedOptionIndex;
|
|
898
|
+
} else {
|
|
899
|
+
optionIndex = this.visibleOptions.findIndex(function (option) {
|
|
900
|
+
return _this22.isOptionMatched(option);
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
if (optionIndex === -1 && this.focusedOptionIndex === -1) {
|
|
904
|
+
optionIndex = this.findFirstFocusedOptionIndex();
|
|
905
|
+
}
|
|
906
|
+
if (optionIndex !== -1) {
|
|
907
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
908
|
+
}
|
|
873
909
|
}
|
|
874
910
|
if (this.searchTimeout) {
|
|
875
911
|
clearTimeout(this.searchTimeout);
|
|
876
912
|
}
|
|
877
913
|
this.searchTimeout = setTimeout(function () {
|
|
878
|
-
|
|
879
|
-
|
|
914
|
+
_this22.searchValue = '';
|
|
915
|
+
_this22.searchTimeout = null;
|
|
880
916
|
}, 500);
|
|
881
917
|
},
|
|
882
918
|
changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {
|
|
883
919
|
if (this.focusedOptionIndex !== index) {
|
|
884
920
|
this.focusedOptionIndex = index;
|
|
885
921
|
this.scrollInView();
|
|
922
|
+
if (this.selectOnFocus) {
|
|
923
|
+
this.onOptionSelect(event, this.visibleOptions[index]);
|
|
924
|
+
}
|
|
886
925
|
}
|
|
887
926
|
},
|
|
888
927
|
scrollInView: function scrollInView() {
|
|
928
|
+
var _this23 = this;
|
|
889
929
|
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
element
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
930
|
+
this.$nextTick(function () {
|
|
931
|
+
var id = index !== -1 ? "".concat(_this23.id, "_").concat(index) : _this23.focusedOptionId;
|
|
932
|
+
var element = utils.DomHandler.findSingle(_this23.list, "li[id=\"".concat(id, "\"]"));
|
|
933
|
+
if (element) {
|
|
934
|
+
element.scrollIntoView && element.scrollIntoView({
|
|
935
|
+
block: 'nearest',
|
|
936
|
+
inline: 'nearest'
|
|
937
|
+
});
|
|
938
|
+
} else if (!_this23.virtualScrollerDisabled) {
|
|
939
|
+
_this23.virtualScroller && _this23.virtualScroller.scrollToIndex(index !== -1 ? index : _this23.focusedOptionIndex);
|
|
940
|
+
}
|
|
941
|
+
});
|
|
900
942
|
},
|
|
901
943
|
autoUpdateModel: function autoUpdateModel() {
|
|
902
944
|
if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {
|
|
@@ -913,14 +955,14 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
913
955
|
});
|
|
914
956
|
},
|
|
915
957
|
flatOptions: function flatOptions(options) {
|
|
916
|
-
var
|
|
958
|
+
var _this24 = this;
|
|
917
959
|
return (options || []).reduce(function (result, option, index) {
|
|
918
960
|
result.push({
|
|
919
961
|
optionGroup: option,
|
|
920
962
|
group: true,
|
|
921
963
|
index: index
|
|
922
964
|
});
|
|
923
|
-
var optionGroupChildren =
|
|
965
|
+
var optionGroupChildren = _this24.getOptionGroupChildren(option);
|
|
924
966
|
optionGroupChildren && optionGroupChildren.forEach(function (o) {
|
|
925
967
|
return result.push(o);
|
|
926
968
|
});
|
|
@@ -940,7 +982,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
940
982
|
},
|
|
941
983
|
computed: {
|
|
942
984
|
visibleOptions: function visibleOptions() {
|
|
943
|
-
var
|
|
985
|
+
var _this25 = this;
|
|
944
986
|
var options = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
|
|
945
987
|
if (this.filterValue) {
|
|
946
988
|
var filteredOptions = api.FilterService.filter(options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
|
|
@@ -948,11 +990,11 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
948
990
|
var optionGroups = this.options || [];
|
|
949
991
|
var filtered = [];
|
|
950
992
|
optionGroups.forEach(function (group) {
|
|
951
|
-
var groupChildren =
|
|
993
|
+
var groupChildren = _this25.getOptionGroupChildren(group);
|
|
952
994
|
var filteredItems = groupChildren.filter(function (item) {
|
|
953
995
|
return filteredOptions.includes(item);
|
|
954
996
|
});
|
|
955
|
-
if (filteredItems.length > 0) filtered.push(_objectSpread$1(_objectSpread$1({}, group), {}, _defineProperty$1({}, typeof
|
|
997
|
+
if (filteredItems.length > 0) filtered.push(_objectSpread$1(_objectSpread$1({}, group), {}, _defineProperty$1({}, typeof _this25.optionGroupChildren === 'string' ? _this25.optionGroupChildren : 'items', _toConsumableArray(filteredItems))));
|
|
956
998
|
});
|
|
957
999
|
return this.flatOptions(filtered);
|
|
958
1000
|
}
|
|
@@ -984,9 +1026,9 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
984
1026
|
return utils.ObjectUtils.isNotEmpty(this.maxSelectedLabels) && this.modelValue && this.modelValue.length > this.maxSelectedLabels ? this.modelValue.slice(0, this.maxSelectedLabels) : this.modelValue;
|
|
985
1027
|
},
|
|
986
1028
|
allSelected: function allSelected() {
|
|
987
|
-
var
|
|
1029
|
+
var _this26 = this;
|
|
988
1030
|
return this.selectAll !== null ? this.selectAll : utils.ObjectUtils.isNotEmpty(this.visibleOptions) && this.visibleOptions.every(function (option) {
|
|
989
|
-
return
|
|
1031
|
+
return _this26.isOptionGroup(option) || _this26.isOptionDisabled(option) || _this26.isSelected(option);
|
|
990
1032
|
});
|
|
991
1033
|
},
|
|
992
1034
|
hasSelectedOption: function hasSelectedOption() {
|
|
@@ -1026,9 +1068,9 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
1026
1068
|
return this.focusedOptionIndex !== -1 ? "".concat(this.id, "_").concat(this.focusedOptionIndex) : null;
|
|
1027
1069
|
},
|
|
1028
1070
|
ariaSetSize: function ariaSetSize() {
|
|
1029
|
-
var
|
|
1071
|
+
var _this27 = this;
|
|
1030
1072
|
return this.visibleOptions.filter(function (option) {
|
|
1031
|
-
return !
|
|
1073
|
+
return !_this27.isOptionGroup(option);
|
|
1032
1074
|
}).length;
|
|
1033
1075
|
},
|
|
1034
1076
|
toggleAllAriaLabel: function toggleAllAriaLabel() {
|
|
@@ -1045,6 +1087,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
1045
1087
|
ripple: Ripple__default["default"]
|
|
1046
1088
|
},
|
|
1047
1089
|
components: {
|
|
1090
|
+
Checkbox: Checkbox__default["default"],
|
|
1048
1091
|
VirtualScroller: VirtualScroller__default["default"],
|
|
1049
1092
|
Portal: Portal__default["default"],
|
|
1050
1093
|
TimesIcon: TimesIcon__default["default"],
|
|
@@ -1064,22 +1107,22 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
1064
1107
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1065
1108
|
var _hoisted_1 = ["id", "disabled", "placeholder", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
|
|
1066
1109
|
var _hoisted_2 = ["onClick"];
|
|
1067
|
-
var _hoisted_3 = ["
|
|
1068
|
-
var _hoisted_4 = ["
|
|
1069
|
-
var _hoisted_5 = ["
|
|
1110
|
+
var _hoisted_3 = ["value", "placeholder", "aria-owns", "aria-activedescendant"];
|
|
1111
|
+
var _hoisted_4 = ["aria-label"];
|
|
1112
|
+
var _hoisted_5 = ["id"];
|
|
1070
1113
|
var _hoisted_6 = ["id"];
|
|
1071
|
-
var _hoisted_7 = ["id"];
|
|
1072
|
-
var _hoisted_8 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-highlight", "data-p-focused", "data-p-disabled"];
|
|
1114
|
+
var _hoisted_7 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-highlight", "data-p-focused", "data-p-disabled"];
|
|
1073
1115
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1074
1116
|
var _component_TimesCircleIcon = vue.resolveComponent("TimesCircleIcon");
|
|
1075
1117
|
var _component_SpinnerIcon = vue.resolveComponent("SpinnerIcon");
|
|
1118
|
+
var _component_Checkbox = vue.resolveComponent("Checkbox");
|
|
1076
1119
|
var _component_VirtualScroller = vue.resolveComponent("VirtualScroller");
|
|
1077
1120
|
var _component_Portal = vue.resolveComponent("Portal");
|
|
1078
1121
|
var _directive_ripple = vue.resolveDirective("ripple");
|
|
1079
1122
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
1080
1123
|
ref: "container",
|
|
1081
1124
|
"class": _ctx.cx('root'),
|
|
1082
|
-
onClick: _cache[
|
|
1125
|
+
onClick: _cache[12] || (_cache[12] = function () {
|
|
1083
1126
|
return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);
|
|
1084
1127
|
})
|
|
1085
1128
|
}, _ctx.ptm('root'), {
|
|
@@ -1203,10 +1246,10 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
1203
1246
|
ref: $options.overlayRef,
|
|
1204
1247
|
style: _ctx.panelStyle,
|
|
1205
1248
|
"class": [_ctx.cx('panel'), _ctx.panelClass],
|
|
1206
|
-
onClick: _cache[
|
|
1249
|
+
onClick: _cache[10] || (_cache[10] = function () {
|
|
1207
1250
|
return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);
|
|
1208
1251
|
}),
|
|
1209
|
-
onKeydown: _cache[
|
|
1252
|
+
onKeydown: _cache[11] || (_cache[11] = function () {
|
|
1210
1253
|
return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
|
|
1211
1254
|
})
|
|
1212
1255
|
}, _objectSpread(_objectSpread({}, _ctx.panelProps), _ctx.ptm('panel'))), [vue.createElementVNode("span", vue.mergeProps({
|
|
@@ -1227,44 +1270,35 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
1227
1270
|
}), _ctx.showToggleAll && _ctx.selectionLimit == null || _ctx.filter ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
1228
1271
|
key: 0,
|
|
1229
1272
|
"class": _ctx.cx('header')
|
|
1230
|
-
}, _ctx.ptm('header')), [_ctx.showToggleAll && _ctx.selectionLimit == null ? (vue.openBlock(), vue.
|
|
1273
|
+
}, _ctx.ptm('header')), [_ctx.showToggleAll && _ctx.selectionLimit == null ? (vue.openBlock(), vue.createBlock(_component_Checkbox, {
|
|
1231
1274
|
key: 0,
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
})
|
|
1236
|
-
}, _ctx.ptm('headerCheckboxContainer')), [vue.createElementVNode("div", vue.mergeProps({
|
|
1237
|
-
"class": "p-hidden-accessible"
|
|
1238
|
-
}, _ctx.ptm('hiddenInputWrapper'), {
|
|
1239
|
-
"data-p-hidden-accessible": true
|
|
1240
|
-
}), [vue.createElementVNode("input", vue.mergeProps({
|
|
1241
|
-
type: "checkbox",
|
|
1242
|
-
readonly: "",
|
|
1243
|
-
checked: $options.allSelected,
|
|
1275
|
+
modelValue: $options.allSelected,
|
|
1276
|
+
binary: true,
|
|
1277
|
+
disabled: _ctx.disabled,
|
|
1244
1278
|
"aria-label": $options.toggleAllAriaLabel,
|
|
1245
|
-
|
|
1246
|
-
|
|
1279
|
+
onChange: $options.onToggleAll,
|
|
1280
|
+
unstyled: _ctx.unstyled,
|
|
1281
|
+
pt: $options.getHeaderCheckboxPTOptions('headerCheckbox')
|
|
1282
|
+
}, {
|
|
1283
|
+
icon: vue.withCtx(function (slotProps) {
|
|
1284
|
+
return [_ctx.$slots.headercheckboxicon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.headercheckboxicon), {
|
|
1285
|
+
key: 0,
|
|
1286
|
+
checked: slotProps.checked,
|
|
1287
|
+
"class": vue.normalizeClass(slotProps["class"])
|
|
1288
|
+
}, null, 8, ["checked", "class"])) : slotProps.checked ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.checkboxIcon ? 'span' : 'CheckIcon'), vue.mergeProps({
|
|
1289
|
+
key: 1,
|
|
1290
|
+
"class": [slotProps["class"], _defineProperty({}, _ctx.checkboxIcon, slotProps.checked)]
|
|
1291
|
+
}, $options.getHeaderCheckboxPTOptions('headerCheckbox.icon')), null, 16, ["class"])) : vue.createCommentVNode("", true)];
|
|
1247
1292
|
}),
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
})
|
|
1251
|
-
}, _ctx.ptm('headerCheckbox')), null, 16, _hoisted_3)], 16), vue.createElementVNode("div", vue.mergeProps({
|
|
1252
|
-
"class": _ctx.cx('headerCheckbox')
|
|
1253
|
-
}, $options.getHeaderCheckboxPTOptions('headerCheckbox')), [vue.renderSlot(_ctx.$slots, "headercheckboxicon", {
|
|
1254
|
-
allSelected: $options.allSelected,
|
|
1255
|
-
"class": vue.normalizeClass(_ctx.cx('headerCheckboxIcon'))
|
|
1256
|
-
}, function () {
|
|
1257
|
-
return [vue.withDirectives((vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.checkboxIcon ? 'span' : 'CheckIcon'), vue.mergeProps({
|
|
1258
|
-
"class": [_ctx.cx('headerCheckboxIcon'), _defineProperty({}, _ctx.checkboxIcon, $options.allSelected)]
|
|
1259
|
-
}, $options.getHeaderCheckboxPTOptions('headerCheckboxIcon')), null, 16, ["class"])), [[vue.vShow, $options.allSelected]])];
|
|
1260
|
-
})], 16)], 16)) : vue.createCommentVNode("", true), _ctx.filter ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
1293
|
+
_: 1
|
|
1294
|
+
}, 8, ["modelValue", "disabled", "aria-label", "onChange", "unstyled", "pt"])) : vue.createCommentVNode("", true), _ctx.filter ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
1261
1295
|
key: 1,
|
|
1262
1296
|
"class": _ctx.cx('filterContainer')
|
|
1263
1297
|
}, _ctx.ptm('filterContainer')), [vue.createElementVNode("input", vue.mergeProps({
|
|
1264
1298
|
ref: "filterInput",
|
|
1265
1299
|
type: "text",
|
|
1266
1300
|
value: $data.filterValue,
|
|
1267
|
-
onVnodeMounted: _cache[
|
|
1301
|
+
onVnodeMounted: _cache[4] || (_cache[4] = function () {
|
|
1268
1302
|
return $options.onFilterUpdated && $options.onFilterUpdated.apply($options, arguments);
|
|
1269
1303
|
}),
|
|
1270
1304
|
"class": _ctx.cx('filterInput'),
|
|
@@ -1273,16 +1307,16 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
1273
1307
|
autocomplete: "off",
|
|
1274
1308
|
"aria-owns": $data.id + '_list',
|
|
1275
1309
|
"aria-activedescendant": $options.focusedOptionId,
|
|
1276
|
-
onKeydown: _cache[
|
|
1310
|
+
onKeydown: _cache[5] || (_cache[5] = function () {
|
|
1277
1311
|
return $options.onFilterKeyDown && $options.onFilterKeyDown.apply($options, arguments);
|
|
1278
1312
|
}),
|
|
1279
|
-
onBlur: _cache[
|
|
1313
|
+
onBlur: _cache[6] || (_cache[6] = function () {
|
|
1280
1314
|
return $options.onFilterBlur && $options.onFilterBlur.apply($options, arguments);
|
|
1281
1315
|
}),
|
|
1282
|
-
onInput: _cache[
|
|
1316
|
+
onInput: _cache[7] || (_cache[7] = function () {
|
|
1283
1317
|
return $options.onFilterChange && $options.onFilterChange.apply($options, arguments);
|
|
1284
1318
|
})
|
|
1285
|
-
}, _objectSpread(_objectSpread({}, _ctx.filterInputProps), _ctx.ptm('filterInput'))), null, 16,
|
|
1319
|
+
}, _objectSpread(_objectSpread({}, _ctx.filterInputProps), _ctx.ptm('filterInput'))), null, 16, _hoisted_3), vue.renderSlot(_ctx.$slots, "filtericon", {
|
|
1286
1320
|
"class": vue.normalizeClass(_ctx.cx('filterIcon'))
|
|
1287
1321
|
}, function () {
|
|
1288
1322
|
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.filterIcon ? 'span' : 'SearchIcon'), vue.mergeProps({
|
|
@@ -1298,7 +1332,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
1298
1332
|
}), vue.toDisplayString($options.filterResultMessageText), 17)) : vue.createCommentVNode("", true), vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
1299
1333
|
"class": _ctx.cx('closeButton'),
|
|
1300
1334
|
"aria-label": $options.closeAriaLabel,
|
|
1301
|
-
onClick: _cache[
|
|
1335
|
+
onClick: _cache[8] || (_cache[8] = function () {
|
|
1302
1336
|
return $options.onCloseClick && $options.onCloseClick.apply($options, arguments);
|
|
1303
1337
|
}),
|
|
1304
1338
|
type: "button"
|
|
@@ -1308,7 +1342,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
1308
1342
|
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.closeIcon ? 'span' : 'TimesIcon'), vue.mergeProps({
|
|
1309
1343
|
"class": [_ctx.cx('closeIcon'), _ctx.closeIcon]
|
|
1310
1344
|
}, _ctx.ptm('closeIcon')), null, 16, ["class"]))];
|
|
1311
|
-
})], 16,
|
|
1345
|
+
})], 16, _hoisted_4)), [[_directive_ripple]])], 16)) : vue.createCommentVNode("", true), vue.createElementVNode("div", vue.mergeProps({
|
|
1312
1346
|
"class": _ctx.cx('wrapper'),
|
|
1313
1347
|
style: {
|
|
1314
1348
|
'max-height': $options.virtualScrollerDisabled ? _ctx.scrollHeight : ''
|
|
@@ -1356,7 +1390,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
1356
1390
|
index: $options.getOptionIndex(i, getItemOptions)
|
|
1357
1391
|
}, function () {
|
|
1358
1392
|
return [vue.createTextVNode(vue.toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)];
|
|
1359
|
-
})], 16,
|
|
1393
|
+
})], 16, _hoisted_6)) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
1360
1394
|
key: 1,
|
|
1361
1395
|
id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
1362
1396
|
style: {
|
|
@@ -1383,25 +1417,30 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
1383
1417
|
"data-p-highlight": $options.isSelected(option),
|
|
1384
1418
|
"data-p-focused": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
|
|
1385
1419
|
"data-p-disabled": $options.isOptionDisabled(option)
|
|
1386
|
-
}), [vue.
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
},
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1420
|
+
}), [vue.createVNode(_component_Checkbox, {
|
|
1421
|
+
modelValue: $options.isSelected(option),
|
|
1422
|
+
binary: true,
|
|
1423
|
+
tabindex: -1,
|
|
1424
|
+
unstyled: _ctx.unstyled,
|
|
1425
|
+
pt: $options.getCheckboxPTOptions(option, getItemOptions, i, 'itemCheckbox')
|
|
1426
|
+
}, {
|
|
1427
|
+
icon: vue.withCtx(function (slotProps) {
|
|
1428
|
+
return [_ctx.$slots.itemcheckboxicon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.itemcheckboxicon), {
|
|
1429
|
+
key: 0,
|
|
1430
|
+
checked: slotProps.checked,
|
|
1431
|
+
"class": vue.normalizeClass(slotProps["class"])
|
|
1432
|
+
}, null, 8, ["checked", "class"])) : slotProps.checked ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.checkboxIcon ? 'span' : 'CheckIcon'), vue.mergeProps({
|
|
1433
|
+
key: 1,
|
|
1434
|
+
"class": [slotProps["class"], _defineProperty({}, _ctx.checkboxIcon, slotProps.checked)]
|
|
1435
|
+
}, $options.getCheckboxPTOptions(option, getItemOptions, i, 'itemCheckbox.icon')), null, 16, ["class"])) : vue.createCommentVNode("", true)];
|
|
1436
|
+
}),
|
|
1437
|
+
_: 2
|
|
1438
|
+
}, 1032, ["modelValue", "unstyled", "pt"]), vue.renderSlot(_ctx.$slots, "option", {
|
|
1400
1439
|
option: option,
|
|
1401
1440
|
index: $options.getOptionIndex(i, getItemOptions)
|
|
1402
1441
|
}, function () {
|
|
1403
1442
|
return [vue.createElementVNode("span", vue.normalizeProps(vue.guardReactiveProps(_ctx.ptm('option'))), vue.toDisplayString($options.getOptionLabel(option)), 17)];
|
|
1404
|
-
})], 16,
|
|
1443
|
+
})], 16, _hoisted_7)), [[_directive_ripple]])], 64);
|
|
1405
1444
|
}), 128)), $data.filterValue && (!items || items && items.length === 0) ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
1406
1445
|
key: 0,
|
|
1407
1446
|
"class": _ctx.cx('emptyMessage'),
|
|
@@ -1414,7 +1453,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
1414
1453
|
role: "option"
|
|
1415
1454
|
}, _ctx.ptm('emptyMessage')), [vue.renderSlot(_ctx.$slots, "empty", {}, function () {
|
|
1416
1455
|
return [vue.createTextVNode(vue.toDisplayString($options.emptyMessageText), 1)];
|
|
1417
|
-
})], 16)) : vue.createCommentVNode("", true)], 16,
|
|
1456
|
+
})], 16)) : vue.createCommentVNode("", true)], 16, _hoisted_5)];
|
|
1418
1457
|
}),
|
|
1419
1458
|
_: 2
|
|
1420
1459
|
}, [_ctx.$slots.loader ? {
|
|
@@ -1448,7 +1487,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
1448
1487
|
"aria-hidden": "true",
|
|
1449
1488
|
"class": "p-hidden-accessible p-hidden-focusable",
|
|
1450
1489
|
tabindex: 0,
|
|
1451
|
-
onFocus: _cache[
|
|
1490
|
+
onFocus: _cache[9] || (_cache[9] = function () {
|
|
1452
1491
|
return $options.onLastHiddenFocus && $options.onLastHiddenFocus.apply($options, arguments);
|
|
1453
1492
|
})
|
|
1454
1493
|
}, _ctx.ptm('hiddenLastFocusableEl'), {
|
|
@@ -1467,4 +1506,4 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
|
|
|
1467
1506
|
|
|
1468
1507
|
return script;
|
|
1469
1508
|
|
|
1470
|
-
})(primevue.api, primevue.icons.check, primevue.icons.chevrondown, primevue.icons.search, primevue.icons.spinner, primevue.icons.times, primevue.icons.timescircle, primevue.overlayeventbus, primevue.portal, primevue.ripple, primevue.utils, primevue.virtualscroller, primevue.basecomponent, primevue.multiselect.style, Vue);
|
|
1509
|
+
})(primevue.api, primevue.checkbox, primevue.icons.check, primevue.icons.chevrondown, primevue.icons.search, primevue.icons.spinner, primevue.icons.times, primevue.icons.timescircle, primevue.overlayeventbus, primevue.portal, primevue.ripple, primevue.utils, primevue.virtualscroller, primevue.basecomponent, primevue.multiselect.style, Vue);
|