primevue 3.45.0 → 3.47.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/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 +6 -2
- package/autocomplete/autocomplete.cjs.js +30 -19
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +30 -19
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +30 -19
- 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/BaseCalendar.vue +1 -1
- package/calendar/Calendar.d.ts +53 -2
- package/calendar/Calendar.vue +12 -0
- package/calendar/calendar.cjs.js +13 -1
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +13 -1
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +13 -1
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +4 -0
- package/card/Card.vue +7 -5
- package/card/card.cjs.js +6 -3
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +6 -3
- package/card/card.esm.min.js +1 -1
- package/card/card.js +6 -3
- package/card/card.min.js +1 -1
- package/card/style/cardstyle.cjs.js +1 -0
- package/card/style/cardstyle.cjs.min.js +1 -1
- package/card/style/cardstyle.esm.js +1 -0
- package/card/style/cardstyle.esm.min.js +1 -1
- package/card/style/cardstyle.js +1 -0
- package/card/style/cardstyle.min.js +1 -1
- package/cascadeselect/BaseCascadeSelect.vue +6 -2
- package/cascadeselect/CascadeSelect.d.ts +47 -1
- package/cascadeselect/CascadeSelect.vue +56 -35
- package/cascadeselect/CascadeSelectSub.vue +26 -6
- package/cascadeselect/cascadeselect.cjs.js +118 -58
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +118 -58
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +118 -58
- 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/colorpicker/BaseColorPicker.vue +1 -1
- package/colorpicker/ColorPicker.d.ts +1 -1
- package/colorpicker/colorpicker.cjs.js +1 -1
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +1 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +1 -1
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.d.ts +15 -44
- package/confirmdialog/ConfirmDialog.vue +1 -1
- package/confirmdialog/confirmdialog.cjs.js +1 -1
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +1 -1
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +1 -1
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmdialog/style/confirmdialogstyle.cjs.js +3 -6
- package/confirmdialog/style/confirmdialogstyle.cjs.min.js +1 -1
- package/confirmdialog/style/confirmdialogstyle.esm.js +3 -6
- package/confirmdialog/style/confirmdialogstyle.esm.min.js +1 -1
- package/confirmdialog/style/confirmdialogstyle.js +3 -6
- package/confirmdialog/style/confirmdialogstyle.min.js +1 -1
- package/confirmpopup/ConfirmPopup.vue +2 -2
- package/confirmpopup/confirmpopup.cjs.js +2 -2
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +2 -2
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +2 -2
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/confirmpopup/style/confirmpopupstyle.cjs.js +5 -8
- package/confirmpopup/style/confirmpopupstyle.cjs.min.js +1 -1
- package/confirmpopup/style/confirmpopupstyle.esm.js +5 -8
- package/confirmpopup/style/confirmpopupstyle.esm.min.js +1 -1
- package/confirmpopup/style/confirmpopupstyle.js +5 -8
- package/confirmpopup/style/confirmpopupstyle.min.js +1 -1
- package/contextmenu/BaseContextMenu.vue +1 -1
- package/contextmenu/ContextMenu.vue +8 -8
- package/contextmenu/ContextMenuSub.vue +6 -1
- package/contextmenu/contextmenu.cjs.js +18 -11
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +18 -11
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +18 -11
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +973 -679
- package/core/core.min.js +70 -62
- package/datatable/BaseDataTable.vue +4 -0
- package/datatable/BodyCell.vue +11 -1
- package/datatable/BodyRow.vue +16 -9
- package/datatable/ColumnFilter.vue +5 -2
- package/datatable/DataTable.d.ts +5 -0
- package/datatable/DataTable.vue +2 -2
- package/datatable/HeaderCell.vue +2 -0
- 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 +120 -199
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +119 -200
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +120 -201
- package/datatable/datatable.min.js +1 -1
- package/datatable/style/datatablestyle.cjs.js +24 -73
- package/datatable/style/datatablestyle.cjs.min.js +1 -1
- package/datatable/style/datatablestyle.esm.js +24 -73
- package/datatable/style/datatablestyle.esm.min.js +1 -1
- package/datatable/style/datatablestyle.js +24 -73
- package/datatable/style/datatablestyle.min.js +1 -1
- package/dialog/BaseDialog.vue +1 -1
- package/dialog/dialog.cjs.js +1 -1
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +1 -1
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +1 -1
- package/dialog/dialog.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 +18 -2
- package/dropdown/Dropdown.d.ts +37 -1
- package/dropdown/Dropdown.vue +68 -40
- package/dropdown/dropdown.cjs.js +96 -46
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +94 -46
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +96 -48
- 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 +4 -10
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +4 -10
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +6 -11
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowdown/index.vue +2 -8
- package/icons/arrowup/index.cjs.js +4 -10
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +4 -10
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +6 -11
- package/icons/arrowup/index.min.js +1 -1
- package/icons/arrowup/index.vue +2 -8
- package/icons/ban/index.cjs.js +4 -10
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +4 -10
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +6 -11
- package/icons/ban/index.min.js +1 -1
- package/icons/ban/index.vue +2 -8
- 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 +4 -10
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +4 -10
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +6 -11
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/exclamationtriangle/index.vue +2 -8
- package/icons/eyeslash/index.cjs.js +4 -10
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +4 -10
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +6 -11
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/eyeslash/index.vue +2 -8
- package/icons/filter/index.cjs.js +4 -10
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +4 -10
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +6 -11
- package/icons/filter/index.min.js +1 -1
- package/icons/filter/index.vue +2 -8
- package/icons/filterslash/index.cjs.js +4 -10
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +4 -10
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +6 -11
- package/icons/filterslash/index.min.js +1 -1
- package/icons/filterslash/index.vue +2 -8
- package/icons/infocircle/index.cjs.js +4 -10
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +4 -10
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +6 -11
- package/icons/infocircle/index.min.js +1 -1
- package/icons/infocircle/index.vue +2 -8
- package/icons/pencil/index.cjs.js +4 -10
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +4 -10
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +6 -11
- package/icons/pencil/index.min.js +1 -1
- package/icons/pencil/index.vue +2 -8
- package/icons/plus/index.cjs.js +4 -10
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +4 -10
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +6 -11
- package/icons/plus/index.min.js +1 -1
- package/icons/plus/index.vue +2 -8
- package/icons/refresh/index.cjs.js +4 -10
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +4 -10
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +6 -11
- package/icons/refresh/index.min.js +1 -1
- package/icons/refresh/index.vue +2 -8
- package/icons/search/index.cjs.js +4 -10
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +4 -10
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +6 -11
- package/icons/search/index.min.js +1 -1
- package/icons/search/index.vue +2 -8
- package/icons/searchminus/index.cjs.js +4 -10
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +4 -10
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +6 -11
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchminus/index.vue +2 -8
- package/icons/searchplus/index.cjs.js +4 -10
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +4 -10
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +6 -11
- package/icons/searchplus/index.min.js +1 -1
- package/icons/searchplus/index.vue +2 -8
- package/icons/sortalt/index.cjs.js +4 -10
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +4 -10
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +6 -11
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortalt/index.vue +2 -8
- package/icons/sortamountdown/index.cjs.js +4 -10
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +4 -10
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +6 -11
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountdown/index.vue +2 -8
- package/icons/sortamountupalt/index.cjs.js +4 -10
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +4 -10
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +6 -11
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/sortamountupalt/index.vue +2 -8
- package/icons/spinner/index.cjs.js +4 -10
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +4 -10
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +6 -11
- package/icons/spinner/index.min.js +1 -1
- package/icons/spinner/index.vue +2 -8
- package/icons/star/index.cjs.js +4 -10
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +4 -10
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +6 -11
- package/icons/star/index.min.js +1 -1
- package/icons/star/index.vue +2 -8
- package/icons/starfill/index.cjs.js +4 -10
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +4 -10
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +6 -11
- package/icons/starfill/index.min.js +1 -1
- package/icons/starfill/index.vue +2 -8
- package/icons/thlarge/index.cjs.js +4 -10
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +4 -10
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +6 -11
- package/icons/thlarge/index.min.js +1 -1
- package/icons/thlarge/index.vue +2 -8
- package/icons/timescircle/index.cjs.js +4 -10
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +4 -10
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +6 -11
- package/icons/timescircle/index.min.js +1 -1
- package/icons/timescircle/index.vue +2 -8
- package/icons/trash/index.cjs.js +4 -10
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +4 -10
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +6 -11
- package/icons/trash/index.min.js +1 -1
- package/icons/trash/index.vue +2 -8
- package/icons/undo/index.cjs.js +4 -10
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +4 -10
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +6 -11
- package/icons/undo/index.min.js +1 -1
- package/icons/undo/index.vue +2 -8
- package/icons/upload/index.cjs.js +4 -10
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +4 -10
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +6 -11
- package/icons/upload/index.min.js +1 -1
- package/icons/upload/index.vue +2 -8
- package/icons/windowmaximize/index.cjs.js +4 -10
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +4 -10
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +6 -11
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowmaximize/index.vue +2 -8
- package/icons/windowminimize/index.cjs.js +4 -10
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +4 -10
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +6 -11
- package/icons/windowminimize/index.min.js +1 -1
- package/icons/windowminimize/index.vue +2 -8
- package/inputnumber/InputNumber.vue +22 -9
- package/inputnumber/inputnumber.cjs.js +17 -6
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +18 -7
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +17 -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 +88 -50
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +88 -50
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +88 -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/menu/BaseMenu.vue +1 -1
- package/menu/menu.cjs.js +1 -1
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +1 -1
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +1 -1
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.vue +3 -2
- package/menubar/MenubarSub.vue +5 -1
- package/menubar/menubar.cjs.js +12 -5
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +12 -5
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +12 -5
- 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 +10 -2
- package/multiselect/MultiSelect.d.ts +13 -19
- package/multiselect/MultiSelect.vue +108 -76
- package/multiselect/multiselect.cjs.js +174 -134
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +174 -135
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +175 -136
- 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 +72 -52
- package/orderlist/orderlist.cjs.js +79 -56
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +79 -56
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +79 -56
- 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/BaseOverlayPanel.vue +1 -1
- package/overlaypanel/OverlayPanel.d.ts +4 -0
- package/overlaypanel/OverlayPanel.vue +1 -1
- package/overlaypanel/overlaypanel.cjs.js +2 -2
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +2 -2
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +2 -2
- 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/password/BasePassword.vue +1 -1
- package/password/password.cjs.js +1 -1
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +1 -1
- package/password/password.esm.min.js +1 -1
- package/password/password.js +1 -1
- package/password/password.min.js +1 -1
- package/picklist/BasePickList.vue +8 -0
- package/picklist/PickList.d.ts +10 -0
- package/picklist/PickList.vue +72 -37
- package/picklist/picklist.cjs.js +81 -46
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +81 -46
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +81 -46
- package/picklist/picklist.min.js +1 -1
- package/portal/Portal.vue +1 -1
- package/portal/portal.cjs.js +1 -1
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +1 -1
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +1 -1
- package/portal/portal.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 +432 -351
- package/resources/themes/arya-green/theme.css +432 -351
- package/resources/themes/arya-orange/theme.css +432 -351
- package/resources/themes/arya-purple/theme.css +432 -351
- 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 +533 -403
- package/resources/themes/bootstrap4-dark-purple/theme.css +533 -403
- package/resources/themes/bootstrap4-light-blue/theme.css +533 -403
- package/resources/themes/bootstrap4-light-purple/theme.css +533 -403
- package/resources/themes/fluent-light/theme.css +431 -350
- package/resources/themes/lara-dark-amber/theme.css +534 -404
- package/resources/themes/lara-dark-blue/theme.css +534 -404
- package/resources/themes/lara-dark-cyan/theme.css +534 -404
- package/resources/themes/lara-dark-green/theme.css +534 -404
- package/resources/themes/lara-dark-indigo/theme.css +534 -404
- package/resources/themes/lara-dark-pink/theme.css +534 -404
- package/resources/themes/lara-dark-purple/theme.css +534 -404
- package/resources/themes/lara-dark-teal/theme.css +534 -404
- package/resources/themes/lara-light-amber/theme.css +535 -405
- package/resources/themes/lara-light-blue/theme.css +535 -405
- package/resources/themes/lara-light-cyan/theme.css +535 -405
- package/resources/themes/lara-light-green/theme.css +535 -405
- package/resources/themes/lara-light-indigo/theme.css +535 -405
- package/resources/themes/lara-light-pink/theme.css +535 -405
- package/resources/themes/lara-light-purple/theme.css +535 -405
- package/resources/themes/lara-light-teal/theme.css +535 -405
- package/resources/themes/luna-amber/theme.css +432 -351
- package/resources/themes/luna-blue/theme.css +432 -351
- package/resources/themes/luna-green/theme.css +432 -351
- package/resources/themes/luna-pink/theme.css +432 -351
- package/resources/themes/md-dark-deeppurple/theme.css +696 -431
- package/resources/themes/md-dark-indigo/theme.css +696 -431
- package/resources/themes/md-light-deeppurple/theme.css +700 -435
- package/resources/themes/md-light-indigo/theme.css +700 -435
- package/resources/themes/mdc-dark-deeppurple/theme.css +696 -431
- package/resources/themes/mdc-dark-indigo/theme.css +696 -431
- package/resources/themes/mdc-light-deeppurple/theme.css +700 -435
- package/resources/themes/mdc-light-indigo/theme.css +700 -435
- package/resources/themes/mira/theme.css +486 -405
- package/resources/themes/nano/theme.css +432 -351
- package/resources/themes/nova/theme.css +432 -351
- package/resources/themes/nova-accent/theme.css +432 -351
- package/resources/themes/nova-alt/theme.css +432 -351
- package/resources/themes/nova-vue/theme.css +432 -351
- package/resources/themes/rhea/theme.css +432 -351
- package/resources/themes/saga-blue/theme.css +432 -351
- package/resources/themes/saga-green/theme.css +432 -351
- package/resources/themes/saga-orange/theme.css +432 -351
- package/resources/themes/saga-purple/theme.css +432 -351
- package/resources/themes/soho-dark/theme.css +534 -404
- package/resources/themes/soho-light/theme.css +534 -404
- package/resources/themes/tailwind-light/theme.css +432 -351
- package/resources/themes/vela-blue/theme.css +432 -351
- package/resources/themes/vela-green/theme.css +432 -351
- package/resources/themes/vela-orange/theme.css +432 -351
- package/resources/themes/vela-purple/theme.css +432 -351
- package/resources/themes/viva-dark/theme.css +535 -405
- package/resources/themes/viva-light/theme.css +535 -405
- package/sidebar/Sidebar.vue +16 -1
- package/sidebar/sidebar.cjs.js +17 -5
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +17 -5
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +17 -5
- package/sidebar/sidebar.min.js +1 -1
- 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/BaseSplitButton.vue +1 -1
- package/splitbutton/splitbutton.cjs.js +1 -1
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +1 -1
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +1 -1
- package/splitbutton/splitbutton.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/steps/Steps.vue +2 -1
- package/steps/steps.cjs.js +3 -2
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +3 -2
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +3 -2
- package/steps/steps.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/BaseTieredMenu.vue +1 -1
- package/tieredmenu/TieredMenu.d.ts +4 -0
- package/tieredmenu/TieredMenu.vue +1 -1
- package/tieredmenu/TieredMenuSub.vue +5 -1
- package/tieredmenu/tieredmenu.cjs.js +12 -5
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +12 -5
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +12 -5
- 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/tooltip/style/tooltipstyle.cjs.js +1 -1
- package/tooltip/style/tooltipstyle.cjs.min.js +1 -1
- package/tooltip/style/tooltipstyle.esm.js +1 -1
- package/tooltip/style/tooltipstyle.esm.min.js +1 -1
- package/tooltip/style/tooltipstyle.js +1 -1
- package/tooltip/style/tooltipstyle.min.js +1 -1
- package/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/treeselect/BaseTreeSelect.vue +1 -1
- package/treeselect/TreeSelect.vue +0 -4
- package/treeselect/treeselect.cjs.js +1 -5
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +1 -5
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +1 -5
- package/treeselect/treeselect.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
|
@@ -33,6 +33,14 @@ var script$1 = {
|
|
|
33
33
|
type: Boolean,
|
|
34
34
|
"default": false
|
|
35
35
|
},
|
|
36
|
+
autoOptionFocus: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
"default": true
|
|
39
|
+
},
|
|
40
|
+
focusOnHover: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
"default": true
|
|
43
|
+
},
|
|
36
44
|
responsive: {
|
|
37
45
|
type: Boolean,
|
|
38
46
|
"default": true
|
|
@@ -144,14 +152,9 @@ var script = {
|
|
|
144
152
|
return ObjectUtils.findIndexInList(item, this.d_selection) != -1;
|
|
145
153
|
},
|
|
146
154
|
onListFocus: function onListFocus(event) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
this.focused = true;
|
|
151
|
-
var index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
|
|
152
|
-
this.changeFocusedOptionIndex(index);
|
|
153
|
-
this.$emit('focus', event);
|
|
154
|
-
}
|
|
155
|
+
this.focused = true;
|
|
156
|
+
this.findCurrentFocusedIndex();
|
|
157
|
+
this.$emit('focus', event);
|
|
155
158
|
},
|
|
156
159
|
onListBlur: function onListBlur(event) {
|
|
157
160
|
this.focused = false;
|
|
@@ -187,12 +190,18 @@ var script = {
|
|
|
187
190
|
}
|
|
188
191
|
}
|
|
189
192
|
},
|
|
190
|
-
onOptionMouseDown: function onOptionMouseDown(index) {
|
|
193
|
+
onOptionMouseDown: function onOptionMouseDown(event, index) {
|
|
191
194
|
this.focused = true;
|
|
192
|
-
this.focusedOptionIndex = index;
|
|
195
|
+
this.focusedOptionIndex = "".concat(this.id, "_").concat(index);
|
|
196
|
+
event.preventDefault();
|
|
197
|
+
},
|
|
198
|
+
onOptionMouseMove: function onOptionMouseMove(index) {
|
|
199
|
+
if (this.focusOnHover && this.focused) {
|
|
200
|
+
this.changeFocusedOptionIndex(index);
|
|
201
|
+
}
|
|
193
202
|
},
|
|
194
203
|
onArrowDownKey: function onArrowDownKey(event) {
|
|
195
|
-
var optionIndex = this.findNextOptionIndex(this.
|
|
204
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex() : this.findFirstSelectedOptionIndex();
|
|
196
205
|
this.changeFocusedOptionIndex(optionIndex);
|
|
197
206
|
if (event.shiftKey) {
|
|
198
207
|
this.onEnterKey(event);
|
|
@@ -200,7 +209,7 @@ var script = {
|
|
|
200
209
|
event.preventDefault();
|
|
201
210
|
},
|
|
202
211
|
onArrowUpKey: function onArrowUpKey(event) {
|
|
203
|
-
var optionIndex = this.findPrevOptionIndex(this.
|
|
212
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex() : this.findLastSelectedOptionIndex();
|
|
204
213
|
this.changeFocusedOptionIndex(optionIndex);
|
|
205
214
|
if (event.shiftKey) {
|
|
206
215
|
this.onEnterKey(event);
|
|
@@ -209,11 +218,7 @@ var script = {
|
|
|
209
218
|
},
|
|
210
219
|
onHomeKey: function onHomeKey(event) {
|
|
211
220
|
if (event.ctrlKey && event.shiftKey) {
|
|
212
|
-
var
|
|
213
|
-
var focusedItem = DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
|
|
214
|
-
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
215
|
-
return item === focusedItem;
|
|
216
|
-
});
|
|
221
|
+
var matchedOptionIndex = this.findMatchedOptionIndex();
|
|
217
222
|
this.d_selection = _toConsumableArray(this.modelValue).slice(0, matchedOptionIndex + 1);
|
|
218
223
|
this.$emit('update:selection', this.d_selection);
|
|
219
224
|
this.$emit('selection-change', {
|
|
@@ -227,11 +232,7 @@ var script = {
|
|
|
227
232
|
},
|
|
228
233
|
onEndKey: function onEndKey(event) {
|
|
229
234
|
if (event.ctrlKey && event.shiftKey) {
|
|
230
|
-
var
|
|
231
|
-
var focusedItem = DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
|
|
232
|
-
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
233
|
-
return item === focusedItem;
|
|
234
|
-
});
|
|
235
|
+
var matchedOptionIndex = this.findMatchedOptionIndex();
|
|
235
236
|
this.d_selection = _toConsumableArray(this.modelValue).slice(matchedOptionIndex, items.length);
|
|
236
237
|
this.$emit('update:selection', this.d_selection);
|
|
237
238
|
this.$emit('selection-change', {
|
|
@@ -239,28 +240,20 @@ var script = {
|
|
|
239
240
|
value: this.d_selection
|
|
240
241
|
});
|
|
241
242
|
} else {
|
|
242
|
-
this.changeFocusedOptionIndex(
|
|
243
|
+
this.changeFocusedOptionIndex(this.findAllItems().length - 1);
|
|
243
244
|
}
|
|
244
245
|
event.preventDefault();
|
|
245
246
|
},
|
|
246
247
|
onEnterKey: function onEnterKey(event) {
|
|
247
|
-
var
|
|
248
|
-
var focusedItem = DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
|
|
249
|
-
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
250
|
-
return item === focusedItem;
|
|
251
|
-
});
|
|
248
|
+
var matchedOptionIndex = this.findMatchedOptionIndex();
|
|
252
249
|
this.onItemClick(event, this.modelValue[matchedOptionIndex], matchedOptionIndex);
|
|
253
250
|
event.preventDefault();
|
|
254
251
|
},
|
|
255
252
|
onSpaceKey: function onSpaceKey(event) {
|
|
256
253
|
event.preventDefault();
|
|
257
254
|
if (event.shiftKey && this.d_selection && this.d_selection.length > 0) {
|
|
258
|
-
var items = DomHandler.find(this.list, '[data-pc-section="item"]');
|
|
259
255
|
var selectedItemIndex = ObjectUtils.findIndexInList(this.d_selection[0], _toConsumableArray(this.modelValue));
|
|
260
|
-
var
|
|
261
|
-
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
262
|
-
return item === focusedItem;
|
|
263
|
-
});
|
|
256
|
+
var matchedOptionIndex = this.findMatchedOptionIndex();
|
|
264
257
|
this.d_selection = _toConsumableArray(this.modelValue).slice(Math.min(selectedItemIndex, matchedOptionIndex), Math.max(selectedItemIndex, matchedOptionIndex) + 1);
|
|
265
258
|
this.$emit('update:selection', this.d_selection);
|
|
266
259
|
this.$emit('selection-change', {
|
|
@@ -271,22 +264,54 @@ var script = {
|
|
|
271
264
|
this.onEnterKey(event);
|
|
272
265
|
}
|
|
273
266
|
},
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
267
|
+
findAllItems: function findAllItems() {
|
|
268
|
+
return DomHandler.find(this.list, '[data-pc-section="item"]');
|
|
269
|
+
},
|
|
270
|
+
findFocusedItem: function findFocusedItem() {
|
|
271
|
+
return DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
|
|
272
|
+
},
|
|
273
|
+
findCurrentFocusedIndex: function findCurrentFocusedIndex() {
|
|
274
|
+
this.focusedOptionIndex = this.findFirstSelectedOptionIndex();
|
|
275
|
+
if (this.autoOptionFocus && this.focusedOptionIndex === -1) {
|
|
276
|
+
this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
277
|
+
}
|
|
278
|
+
this.scrollInView(this.focusedOptionIndex);
|
|
279
|
+
},
|
|
280
|
+
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
281
|
+
var firstFocusableItem = DomHandler.findSingle(this.list, '[data-pc-section="item"]');
|
|
282
|
+
return DomHandler.getAttribute(firstFocusableItem, 'id');
|
|
283
|
+
},
|
|
284
|
+
findFirstSelectedOptionIndex: function findFirstSelectedOptionIndex() {
|
|
285
|
+
if (this.hasSelectedOption) {
|
|
286
|
+
var selectedFirstItem = DomHandler.findSingle(this.list, '[data-p-highlight="true"]');
|
|
287
|
+
return DomHandler.getAttribute(selectedFirstItem, 'id');
|
|
288
|
+
}
|
|
289
|
+
return -1;
|
|
290
|
+
},
|
|
291
|
+
findLastSelectedOptionIndex: function findLastSelectedOptionIndex() {
|
|
292
|
+
if (this.hasSelectedOption) {
|
|
293
|
+
var selectedItems = DomHandler.find(this.list, '[data-p-highlight="true"]');
|
|
294
|
+
return ObjectUtils.findIndexInList(selectedItems[selectedItems.length - 1], this.list.children);
|
|
295
|
+
}
|
|
296
|
+
return -1;
|
|
297
|
+
},
|
|
298
|
+
findMatchedOptionIndex: function findMatchedOptionIndex() {
|
|
299
|
+
var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.focusedOptionIndex;
|
|
300
|
+
var items = this.findAllItems();
|
|
301
|
+
return _toConsumableArray(items).findIndex(function (link) {
|
|
302
|
+
return link.id === id;
|
|
278
303
|
});
|
|
304
|
+
},
|
|
305
|
+
findNextOptionIndex: function findNextOptionIndex() {
|
|
306
|
+
var matchedOptionIndex = this.findMatchedOptionIndex();
|
|
279
307
|
return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;
|
|
280
308
|
},
|
|
281
|
-
findPrevOptionIndex: function findPrevOptionIndex(
|
|
282
|
-
var
|
|
283
|
-
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
|
|
284
|
-
return link.id === index;
|
|
285
|
-
});
|
|
309
|
+
findPrevOptionIndex: function findPrevOptionIndex() {
|
|
310
|
+
var matchedOptionIndex = this.findMatchedOptionIndex();
|
|
286
311
|
return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;
|
|
287
312
|
},
|
|
288
313
|
changeFocusedOptionIndex: function changeFocusedOptionIndex(index) {
|
|
289
|
-
var items =
|
|
314
|
+
var items = this.findAllItems();
|
|
290
315
|
var order = index >= items.length ? items.length - 1 : index < 0 ? 0 : index;
|
|
291
316
|
this.focusedOptionIndex = items[order] ? items[order].getAttribute('id') : -1;
|
|
292
317
|
this.scrollInView(this.focusedOptionIndex);
|
|
@@ -397,7 +422,7 @@ var script = {
|
|
|
397
422
|
var selectedIndex = ObjectUtils.findIndexInList(item, this.d_selection);
|
|
398
423
|
var selected = selectedIndex != -1;
|
|
399
424
|
var metaSelection = this.itemTouched ? false : this.metaKeySelection;
|
|
400
|
-
var selectedId =
|
|
425
|
+
var selectedId = this.findAllItems()[index].getAttribute('id');
|
|
401
426
|
this.focusedOptionIndex = selectedId;
|
|
402
427
|
if (metaSelection) {
|
|
403
428
|
var metaKey = event.metaKey || event.ctrlKey;
|
|
@@ -428,14 +453,6 @@ var script = {
|
|
|
428
453
|
onItemTouchEnd: function onItemTouchEnd() {
|
|
429
454
|
this.itemTouched = true;
|
|
430
455
|
},
|
|
431
|
-
findNextItem: function findNextItem(item) {
|
|
432
|
-
var nextItem = item.nextElementSibling;
|
|
433
|
-
if (nextItem) return !(DomHandler.getAttribute(nextItem, 'data-pc-section') === 'item') ? this.findNextItem(nextItem) : nextItem;else return null;
|
|
434
|
-
},
|
|
435
|
-
findPrevItem: function findPrevItem(item) {
|
|
436
|
-
var prevItem = item.previousElementSibling;
|
|
437
|
-
if (prevItem) return !(DomHandler.getAttribute(nextItem, 'data-pc-section') === 'item') ? this.findPrevItem(prevItem) : prevItem;else return null;
|
|
438
|
-
},
|
|
439
456
|
updateListScroll: function updateListScroll() {
|
|
440
457
|
var listItems = DomHandler.find(this.list, '[data-pc-section="item"][data-p-highlight="true"]');
|
|
441
458
|
if (listItems && listItems.length) {
|
|
@@ -500,6 +517,9 @@ var script = {
|
|
|
500
517
|
},
|
|
501
518
|
moveBottomAriaLabel: function moveBottomAriaLabel() {
|
|
502
519
|
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveBottom : undefined;
|
|
520
|
+
},
|
|
521
|
+
hasSelectedOption: function hasSelectedOption() {
|
|
522
|
+
return ObjectUtils.isNotEmpty(this.d_selection);
|
|
503
523
|
}
|
|
504
524
|
},
|
|
505
525
|
components: {
|
|
@@ -520,7 +540,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
520
540
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
521
541
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
522
542
|
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); }
|
|
523
|
-
var _hoisted_1 = ["id", "onClick", "
|
|
543
|
+
var _hoisted_1 = ["id", "onClick", "onMousedown", "onMousemove", "aria-selected", "data-p-highlight", "data-p-focused"];
|
|
524
544
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
525
545
|
var _component_AngleUpIcon = resolveComponent("AngleUpIcon");
|
|
526
546
|
var _component_OLButton = resolveComponent("OLButton");
|
|
@@ -642,10 +662,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
642
662
|
onTouchend: _cache[0] || (_cache[0] = function () {
|
|
643
663
|
return $options.onItemTouchEnd && $options.onItemTouchEnd.apply($options, arguments);
|
|
644
664
|
}),
|
|
645
|
-
"aria-selected": $options.isSelected(item),
|
|
646
665
|
onMousedown: function onMousedown($event) {
|
|
647
|
-
return $options.onOptionMouseDown(i);
|
|
648
|
-
}
|
|
666
|
+
return $options.onOptionMouseDown($event, i);
|
|
667
|
+
},
|
|
668
|
+
onMousemove: function onMousemove($event) {
|
|
669
|
+
return $options.onOptionMouseMove(i);
|
|
670
|
+
},
|
|
671
|
+
"aria-selected": $options.isSelected(item)
|
|
649
672
|
}, $options.getPTOptions(item, 'item', i), {
|
|
650
673
|
"data-p-highlight": $options.isSelected(item),
|
|
651
674
|
"data-p-focused": "".concat($data.id, "_").concat(i) === $options.focusedOptionId
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"primevue/button";import e from"primevue/icons/angledoubledown";import i from"primevue/icons/angledoubleup";import n from"primevue/icons/angledown";import o from"primevue/icons/angleup";import r from"primevue/ripple";import{UniqueComponentId as s,ObjectUtils as l,DomHandler as c}from"primevue/utils";import a from"primevue/basecomponent";import d from"primevue/orderlist/style";import{resolveComponent as u,resolveDirective as p,openBlock as h,createElementBlock as m,mergeProps as f,createElementVNode as v,renderSlot as y,createVNode as b,withCtx as g,createCommentVNode as I,TransitionGroup as x,Fragment as w,renderList as O,withDirectives as _}from"vue";function D(t){return E(t)||A(t)||$(t)||S()}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $(t,e){if(t){if("string"==typeof t)return K(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?K(t,e):void 0}}function A(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function E(t){if(Array.isArray(t))return K(t)}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var B={name:"OrderList",extends:{name:"BaseOrderList",extends:a,props:{modelValue:{type:Array,default:null},selection:{type:Array,default:null},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!1},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1},tabindex:{type:Number,default:0},listProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:d,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,list:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:!1,focusedOptionIndex:-1}},watch:{"$attrs.id":function(t){this.id=t||s()}},beforeUnmount:function(){this.destroyStyle()},updated:function(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted:function(){this.id=this.id||s(),this.responsive&&this.createStyle()},methods:{getItemKey:function(t,e){return this.dataKey?l.resolveFieldData(t,this.dataKey):e},getPTOptions:function(t,e,i){return this.ptm(e,{context:{active:this.isSelected(t),focused:"".concat(this.id,"_").concat(i)===this.focusedOptionId}})},isSelected:function(t){return-1!=l.findIndexInList(t,this.d_selection)},onListFocus:function(t){var e=c.findSingle(this.list,'[data-p-highlight="true"]')||c.findSingle(this.list,'[data-pc-section="item"]');if(e){var i=l.findIndexInList(e,this.list.children);this.focused=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:e?i:-1),this.$emit("focus",t)}},onListBlur:function(t){this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",t)},onListKeyDown:function(t){switch(t.code){case"ArrowDown":this.onArrowDownKey(t);break;case"ArrowUp":this.onArrowUpKey(t);break;case"Home":this.onHomeKey(t);break;case"End":this.onEndKey(t);break;case"Enter":case"NumpadEnter":this.onEnterKey(t);break;case"Space":this.onSpaceKey(t);break;case"KeyA":t.ctrlKey&&(this.d_selection=D(this.modelValue),this.$emit("update:selection",this.d_selection),t.preventDefault())}},onOptionMouseDown:function(t){this.focused=!0,this.focusedOptionIndex=t},onArrowDownKey:function(t){var e=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e),t.shiftKey&&this.onEnterKey(t),t.preventDefault()},onArrowUpKey:function(t){var e=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e),t.shiftKey&&this.onEnterKey(t),t.preventDefault()},onHomeKey:function(t){if(t.ctrlKey&&t.shiftKey){var e=c.find(this.list,'[data-pc-section="item"]'),i=c.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),n=D(e).findIndex((function(t){return t===i}));this.d_selection=D(this.modelValue).slice(0,n+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:t,value:this.d_selection})}else this.changeFocusedOptionIndex(0);t.preventDefault()},onEndKey:function(t){if(t.ctrlKey&&t.shiftKey){var e=c.find(this.list,'[data-pc-section="item"]'),i=c.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),n=D(e).findIndex((function(t){return t===i}));this.d_selection=D(this.modelValue).slice(n,e.length),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:t,value:this.d_selection})}else this.changeFocusedOptionIndex(c.find(this.list,'[data-pc-section="item"]').length-1);t.preventDefault()},onEnterKey:function(t){var e=c.find(this.list,'[data-pc-section="item"]'),i=c.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),n=D(e).findIndex((function(t){return t===i}));this.onItemClick(t,this.modelValue[n],n),t.preventDefault()},onSpaceKey:function(t){if(t.preventDefault(),t.shiftKey&&this.d_selection&&this.d_selection.length>0){var e=c.find(this.list,'[data-pc-section="item"]'),i=l.findIndexInList(this.d_selection[0],D(this.modelValue)),n=c.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),o=D(e).findIndex((function(t){return t===n}));this.d_selection=D(this.modelValue).slice(Math.min(i,o),Math.max(i,o)+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:t,value:this.d_selection})}else this.onEnterKey(t)},findNextOptionIndex:function(t){var e=D(c.find(this.list,'[data-pc-section="item"]')).findIndex((function(e){return e.id===t}));return e>-1?e+1:0},findPrevOptionIndex:function(t){var e=D(c.find(this.list,'[data-pc-section="item"]')).findIndex((function(e){return e.id===t}));return e>-1?e-1:0},changeFocusedOptionIndex:function(t){var e=c.find(this.list,'[data-pc-section="item"]'),i=t>=e.length?e.length-1:t<0?0:t;this.focusedOptionIndex=e[i]?e[i].getAttribute("id"):-1,this.scrollInView(this.focusedOptionIndex)},scrollInView:function(t){var e=c.findSingle(this.list,'[data-pc-section="item"][id="'.concat(t,'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},moveUp:function(t){if(this.d_selection){for(var e=D(this.modelValue),i=0;i<this.d_selection.length;i++){var n=l.findIndexInList(this.d_selection[i],e);if(0===n)break;var o=e[n-1];e[n-1]=e[n],e[n]=o}this.reorderDirection="up",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},moveTop:function(t){if(this.d_selection){for(var e=D(this.modelValue),i=0;i<this.d_selection.length;i++){var n=l.findIndexInList(this.d_selection[i],e);if(0===n)break;var o=e.splice(n,1)[0];e.unshift(o)}this.reorderDirection="top",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},moveDown:function(t){if(this.d_selection){for(var e=D(this.modelValue),i=this.d_selection.length-1;i>=0;i--){var n=l.findIndexInList(this.d_selection[i],e);if(n===e.length-1)break;var o=e[n+1];e[n+1]=e[n],e[n]=o}this.reorderDirection="down",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},moveBottom:function(t){if(this.d_selection){for(var e=D(this.modelValue),i=this.d_selection.length-1;i>=0;i--){var n=l.findIndexInList(this.d_selection[i],e);if(n===e.length-1)break;var o=e.splice(n,1)[0];e.push(o)}this.reorderDirection="bottom",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},onItemClick:function(t,e,i){this.itemTouched=!1;var n=l.findIndexInList(e,this.d_selection),o=-1!=n,r=!this.itemTouched&&this.metaKeySelection,s=c.find(this.list,'[data-pc-section="item"]')[i].getAttribute("id");if(this.focusedOptionIndex=s,r){var a=t.metaKey||t.ctrlKey;o&&a?this.d_selection=this.d_selection.filter((function(t,e){return e!==n})):(this.d_selection=a&&this.d_selection?D(this.d_selection):[],l.insertIntoOrderedArray(e,i,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter((function(t,e){return e!==n})):(this.d_selection=this.d_selection?D(this.d_selection):[],l.insertIntoOrderedArray(e,i,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:t,value:this.d_selection})},onItemTouchEnd:function(){this.itemTouched=!0},findNextItem:function(t){var e=t.nextElementSibling;return e?"item"!==c.getAttribute(e,"data-pc-section")?this.findNextItem(e):e:null},findPrevItem:function(t){var e=t.previousElementSibling;return e?"item"!==c.getAttribute(nextItem,"data-pc-section")?this.findPrevItem(e):e:null},updateListScroll:function(){var t=c.find(this.list,'[data-pc-section="item"][data-p-highlight="true"]');if(t&&t.length)switch(this.reorderDirection){case"up":c.scrollInView(this.list,t[0]);break;case"top":this.list.scrollTop=0;break;case"down":c.scrollInView(this.list,t[t.length-1]);break;case"bottom":this.list.scrollTop=this.list.scrollHeight}},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var t;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",c.setAttribute(this.styleElement,"nonce",null===(t=this.$primevue)||void 0===t||null===(t=t.config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce),document.head.appendChild(this.styleElement);var e="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-orderlist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=e}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(){if(!this.d_selection||!this.d_selection.length)return!0},listRef:function(t){this.list=t?t.$el:void 0}},computed:{attributeSelector:function(){return s()},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0}},components:{OLButton:t,AngleUpIcon:o,AngleDownIcon:n,AngleDoubleUpIcon:i,AngleDoubleDownIcon:e},directives:{ripple:r}};function L(t){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L(t)}function k(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function P(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?k(Object(i),!0).forEach((function(e){V(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function V(t,e,i){var n;return(e="symbol"==L(n=T(e,"string"))?n:String(n))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function T(t,e){if("object"!=L(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var U=["id","onClick","aria-selected","onMousedown","data-p-highlight","data-p-focused"];B.render=function(t,e,i,n,o,r){var s=u("AngleUpIcon"),l=u("OLButton"),c=u("AngleDoubleUpIcon"),a=u("AngleDownIcon"),d=u("AngleDoubleDownIcon"),D=p("ripple");return h(),m("div",f({class:t.cx("root")},t.ptm("root")),[v("div",f({class:t.cx("controls")},t.ptm("controls")),[y(t.$slots,"controlsstart"),b(l,f({type:"button",onClick:r.moveUp,"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled()},t.moveUpButtonProps,{pt:t.ptm("moveUpButton"),unstyled:t.unstyled,"data-pc-section":"moveupbutton"}),{icon:g((function(){return[y(t.$slots,"moveupicon",{},(function(){return[b(s,f(t.ptm("moveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),b(l,f({type:"button",onClick:r.moveTop,"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled()},t.moveTopButtonProps,{pt:t.ptm("moveTopButton"),unstyled:t.unstyled,"data-pc-section":"movetopbutton"}),{icon:g((function(){return[y(t.$slots,"movetopicon",{},(function(){return[b(c,f(t.ptm("moveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),b(l,f({type:"button",onClick:r.moveDown,"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled()},t.moveDownButtonProps,{pt:t.ptm("moveDownButton"),unstyled:t.unstyled,"data-pc-section":"movedownbutton"}),{icon:g((function(){return[y(t.$slots,"movedownicon",{},(function(){return[b(a,f(t.ptm("moveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),b(l,f({type:"button",onClick:r.moveBottom,"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled()},t.moveBottomButtonProps,{pt:t.ptm("moveBottomButton"),unstyled:t.unstyled,"data-pc-section":"movebottombutton"}),{icon:g((function(){return[y(t.$slots,"movebottomicon",{},(function(){return[b(d,f(t.ptm("moveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),y(t.$slots,"controlsend")],16),v("div",f({class:t.cx("container")},t.ptm("container")),[t.$slots.header?(h(),m("div",f({key:0,class:t.cx("header")},t.ptm("header")),[y(t.$slots,"header")],16)):I("",!0),b(x,f({ref:r.listRef,id:o.id+"_list",name:"p-orderlist-flip",tag:"ul",class:t.cx("list"),style:t.listStyle,role:"listbox","aria-multiselectable":"true",tabindex:t.tabindex,"aria-activedescendant":o.focused?r.focusedOptionId:void 0,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,onFocus:r.onListFocus,onBlur:r.onListBlur,onKeydown:r.onListKeyDown},P(P(P({},t.listProps),t.ptm("list")),t.ptm("transition"))),{default:g((function(){return[(h(!0),m(w,null,O(t.modelValue,(function(i,n){return _((h(),m("li",f({key:r.getItemKey(i,n),id:o.id+"_"+n,role:"option",class:t.cx("item",{item:i,id:"".concat(o.id,"_").concat(n)}),onClick:function(t){return r.onItemClick(t,i,n)},onTouchend:e[0]||(e[0]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),"aria-selected":r.isSelected(i),onMousedown:function(t){return r.onOptionMouseDown(n)}},r.getPTOptions(i,"item",n),{"data-p-highlight":r.isSelected(i),"data-p-focused":"".concat(o.id,"_").concat(n)===r.focusedOptionId}),[y(t.$slots,"item",{item:i,index:n})],16,U)),[[D]])})),128))]})),_:3},16,["id","class","style","tabindex","aria-activedescendant","aria-label","aria-labelledby","onFocus","onBlur","onKeydown"])],16)],16)};export{B as default};
|
|
1
|
+
import t from"primevue/button";import e from"primevue/icons/angledoubledown";import i from"primevue/icons/angledoubleup";import n from"primevue/icons/angledown";import o from"primevue/icons/angleup";import s from"primevue/ripple";import{UniqueComponentId as r,ObjectUtils as l,DomHandler as c}from"primevue/utils";import d from"primevue/basecomponent";import a from"primevue/orderlist/style";import{resolveComponent as u,resolveDirective as h,openBlock as p,createElementBlock as f,mergeProps as m,createElementVNode as v,renderSlot as y,createVNode as b,withCtx as g,createCommentVNode as I,TransitionGroup as O,Fragment as x,renderList as w,withDirectives as _}from"vue";function D(t){return B(t)||$(t)||A(t)||S()}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(t,e){if(t){if("string"==typeof t)return E(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?E(t,e):void 0}}function $(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function B(t){if(Array.isArray(t))return E(t)}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var K={name:"OrderList",extends:{name:"BaseOrderList",extends:d,props:{modelValue:{type:Array,default:null},selection:{type:Array,default:null},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!1},autoOptionFocus:{type:Boolean,default:!0},focusOnHover:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1},tabindex:{type:Number,default:0},listProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:a,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,list:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:!1,focusedOptionIndex:-1}},watch:{"$attrs.id":function(t){this.id=t||r()}},beforeUnmount:function(){this.destroyStyle()},updated:function(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted:function(){this.id=this.id||r(),this.responsive&&this.createStyle()},methods:{getItemKey:function(t,e){return this.dataKey?l.resolveFieldData(t,this.dataKey):e},getPTOptions:function(t,e,i){return this.ptm(e,{context:{active:this.isSelected(t),focused:"".concat(this.id,"_").concat(i)===this.focusedOptionId}})},isSelected:function(t){return-1!=l.findIndexInList(t,this.d_selection)},onListFocus:function(t){this.focused=!0,this.findCurrentFocusedIndex(),this.$emit("focus",t)},onListBlur:function(t){this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",t)},onListKeyDown:function(t){switch(t.code){case"ArrowDown":this.onArrowDownKey(t);break;case"ArrowUp":this.onArrowUpKey(t);break;case"Home":this.onHomeKey(t);break;case"End":this.onEndKey(t);break;case"Enter":case"NumpadEnter":this.onEnterKey(t);break;case"Space":this.onSpaceKey(t);break;case"KeyA":t.ctrlKey&&(this.d_selection=D(this.modelValue),this.$emit("update:selection",this.d_selection),t.preventDefault())}},onOptionMouseDown:function(t,e){this.focused=!0,this.focusedOptionIndex="".concat(this.id,"_").concat(e),t.preventDefault()},onOptionMouseMove:function(t){this.focusOnHover&&this.focused&&this.changeFocusedOptionIndex(t)},onArrowDownKey:function(t){var e=-1!==this.focusedOptionIndex?this.findNextOptionIndex():this.findFirstSelectedOptionIndex();this.changeFocusedOptionIndex(e),t.shiftKey&&this.onEnterKey(t),t.preventDefault()},onArrowUpKey:function(t){var e=-1!==this.focusedOptionIndex?this.findPrevOptionIndex():this.findLastSelectedOptionIndex();this.changeFocusedOptionIndex(e),t.shiftKey&&this.onEnterKey(t),t.preventDefault()},onHomeKey:function(t){if(t.ctrlKey&&t.shiftKey){var e=this.findMatchedOptionIndex();this.d_selection=D(this.modelValue).slice(0,e+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:t,value:this.d_selection})}else this.changeFocusedOptionIndex(0);t.preventDefault()},onEndKey:function(t){if(t.ctrlKey&&t.shiftKey){var e=this.findMatchedOptionIndex();this.d_selection=D(this.modelValue).slice(e,items.length),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:t,value:this.d_selection})}else this.changeFocusedOptionIndex(this.findAllItems().length-1);t.preventDefault()},onEnterKey:function(t){var e=this.findMatchedOptionIndex();this.onItemClick(t,this.modelValue[e],e),t.preventDefault()},onSpaceKey:function(t){if(t.preventDefault(),t.shiftKey&&this.d_selection&&this.d_selection.length>0){var e=l.findIndexInList(this.d_selection[0],D(this.modelValue)),i=this.findMatchedOptionIndex();this.d_selection=D(this.modelValue).slice(Math.min(e,i),Math.max(e,i)+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:t,value:this.d_selection})}else this.onEnterKey(t)},findAllItems:function(){return c.find(this.list,'[data-pc-section="item"]')},findFocusedItem:function(){return c.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]"))},findCurrentFocusedIndex:function(){this.focusedOptionIndex=this.findFirstSelectedOptionIndex(),this.autoOptionFocus&&-1===this.focusedOptionIndex&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex()),this.scrollInView(this.focusedOptionIndex)},findFirstFocusedOptionIndex:function(){var t=c.findSingle(this.list,'[data-pc-section="item"]');return c.getAttribute(t,"id")},findFirstSelectedOptionIndex:function(){if(this.hasSelectedOption){var t=c.findSingle(this.list,'[data-p-highlight="true"]');return c.getAttribute(t,"id")}return-1},findLastSelectedOptionIndex:function(){if(this.hasSelectedOption){var t=c.find(this.list,'[data-p-highlight="true"]');return l.findIndexInList(t[t.length-1],this.list.children)}return-1},findMatchedOptionIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.focusedOptionIndex;return D(this.findAllItems()).findIndex((function(e){return e.id===t}))},findNextOptionIndex:function(){var t=this.findMatchedOptionIndex();return t>-1?t+1:0},findPrevOptionIndex:function(){var t=this.findMatchedOptionIndex();return t>-1?t-1:0},changeFocusedOptionIndex:function(t){var e=this.findAllItems(),i=t>=e.length?e.length-1:t<0?0:t;this.focusedOptionIndex=e[i]?e[i].getAttribute("id"):-1,this.scrollInView(this.focusedOptionIndex)},scrollInView:function(t){var e=c.findSingle(this.list,'[data-pc-section="item"][id="'.concat(t,'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},moveUp:function(t){if(this.d_selection){for(var e=D(this.modelValue),i=0;i<this.d_selection.length;i++){var n=l.findIndexInList(this.d_selection[i],e);if(0===n)break;var o=e[n-1];e[n-1]=e[n],e[n]=o}this.reorderDirection="up",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},moveTop:function(t){if(this.d_selection){for(var e=D(this.modelValue),i=0;i<this.d_selection.length;i++){var n=l.findIndexInList(this.d_selection[i],e);if(0===n)break;var o=e.splice(n,1)[0];e.unshift(o)}this.reorderDirection="top",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},moveDown:function(t){if(this.d_selection){for(var e=D(this.modelValue),i=this.d_selection.length-1;i>=0;i--){var n=l.findIndexInList(this.d_selection[i],e);if(n===e.length-1)break;var o=e[n+1];e[n+1]=e[n],e[n]=o}this.reorderDirection="down",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},moveBottom:function(t){if(this.d_selection){for(var e=D(this.modelValue),i=this.d_selection.length-1;i>=0;i--){var n=l.findIndexInList(this.d_selection[i],e);if(n===e.length-1)break;var o=e.splice(n,1)[0];e.push(o)}this.reorderDirection="bottom",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},onItemClick:function(t,e,i){this.itemTouched=!1;var n=l.findIndexInList(e,this.d_selection),o=-1!=n,s=!this.itemTouched&&this.metaKeySelection,r=this.findAllItems()[i].getAttribute("id");if(this.focusedOptionIndex=r,s){var c=t.metaKey||t.ctrlKey;o&&c?this.d_selection=this.d_selection.filter((function(t,e){return e!==n})):(this.d_selection=c&&this.d_selection?D(this.d_selection):[],l.insertIntoOrderedArray(e,i,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter((function(t,e){return e!==n})):(this.d_selection=this.d_selection?D(this.d_selection):[],l.insertIntoOrderedArray(e,i,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:t,value:this.d_selection})},onItemTouchEnd:function(){this.itemTouched=!0},updateListScroll:function(){var t=c.find(this.list,'[data-pc-section="item"][data-p-highlight="true"]');if(t&&t.length)switch(this.reorderDirection){case"up":c.scrollInView(this.list,t[0]);break;case"top":this.list.scrollTop=0;break;case"down":c.scrollInView(this.list,t[t.length-1]);break;case"bottom":this.list.scrollTop=this.list.scrollHeight}},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var t;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",c.setAttribute(this.styleElement,"nonce",null===(t=this.$primevue)||void 0===t||null===(t=t.config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce),document.head.appendChild(this.styleElement);var e="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-orderlist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=e}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(){if(!this.d_selection||!this.d_selection.length)return!0},listRef:function(t){this.list=t?t.$el:void 0}},computed:{attributeSelector:function(){return r()},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0},hasSelectedOption:function(){return l.isNotEmpty(this.d_selection)}},components:{OLButton:t,AngleUpIcon:o,AngleDownIcon:n,AngleDoubleUpIcon:i,AngleDoubleDownIcon:e},directives:{ripple:s}};function L(t){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L(t)}function k(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function V(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?k(Object(i),!0).forEach((function(e){P(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function P(t,e,i){var n;return(e="symbol"==L(n=T(e,"string"))?n:String(n))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function T(t,e){if("object"!=L(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var F=["id","onClick","onMousedown","onMousemove","aria-selected","data-p-highlight","data-p-focused"];K.render=function(t,e,i,n,o,s){var r=u("AngleUpIcon"),l=u("OLButton"),c=u("AngleDoubleUpIcon"),d=u("AngleDownIcon"),a=u("AngleDoubleDownIcon"),D=h("ripple");return p(),f("div",m({class:t.cx("root")},t.ptm("root")),[v("div",m({class:t.cx("controls")},t.ptm("controls")),[y(t.$slots,"controlsstart"),b(l,m({type:"button",onClick:s.moveUp,"aria-label":s.moveUpAriaLabel,disabled:s.moveDisabled()},t.moveUpButtonProps,{pt:t.ptm("moveUpButton"),unstyled:t.unstyled,"data-pc-section":"moveupbutton"}),{icon:g((function(){return[y(t.$slots,"moveupicon",{},(function(){return[b(r,m(t.ptm("moveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),b(l,m({type:"button",onClick:s.moveTop,"aria-label":s.moveTopAriaLabel,disabled:s.moveDisabled()},t.moveTopButtonProps,{pt:t.ptm("moveTopButton"),unstyled:t.unstyled,"data-pc-section":"movetopbutton"}),{icon:g((function(){return[y(t.$slots,"movetopicon",{},(function(){return[b(c,m(t.ptm("moveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),b(l,m({type:"button",onClick:s.moveDown,"aria-label":s.moveDownAriaLabel,disabled:s.moveDisabled()},t.moveDownButtonProps,{pt:t.ptm("moveDownButton"),unstyled:t.unstyled,"data-pc-section":"movedownbutton"}),{icon:g((function(){return[y(t.$slots,"movedownicon",{},(function(){return[b(d,m(t.ptm("moveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),b(l,m({type:"button",onClick:s.moveBottom,"aria-label":s.moveBottomAriaLabel,disabled:s.moveDisabled()},t.moveBottomButtonProps,{pt:t.ptm("moveBottomButton"),unstyled:t.unstyled,"data-pc-section":"movebottombutton"}),{icon:g((function(){return[y(t.$slots,"movebottomicon",{},(function(){return[b(a,m(t.ptm("moveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),y(t.$slots,"controlsend")],16),v("div",m({class:t.cx("container")},t.ptm("container")),[t.$slots.header?(p(),f("div",m({key:0,class:t.cx("header")},t.ptm("header")),[y(t.$slots,"header")],16)):I("",!0),b(O,m({ref:s.listRef,id:o.id+"_list",name:"p-orderlist-flip",tag:"ul",class:t.cx("list"),style:t.listStyle,role:"listbox","aria-multiselectable":"true",tabindex:t.tabindex,"aria-activedescendant":o.focused?s.focusedOptionId:void 0,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,onFocus:s.onListFocus,onBlur:s.onListBlur,onKeydown:s.onListKeyDown},V(V(V({},t.listProps),t.ptm("list")),t.ptm("transition"))),{default:g((function(){return[(p(!0),f(x,null,w(t.modelValue,(function(i,n){return _((p(),f("li",m({key:s.getItemKey(i,n),id:o.id+"_"+n,role:"option",class:t.cx("item",{item:i,id:"".concat(o.id,"_").concat(n)}),onClick:function(t){return s.onItemClick(t,i,n)},onTouchend:e[0]||(e[0]=function(){return s.onItemTouchEnd&&s.onItemTouchEnd.apply(s,arguments)}),onMousedown:function(t){return s.onOptionMouseDown(t,n)},onMousemove:function(t){return s.onOptionMouseMove(n)},"aria-selected":s.isSelected(i)},s.getPTOptions(i,"item",n),{"data-p-highlight":s.isSelected(i),"data-p-focused":"".concat(o.id,"_").concat(n)===s.focusedOptionId}),[y(t.$slots,"item",{item:i,index:n})],16,F)),[[D]])})),128))]})),_:3},16,["id","class","style","tabindex","aria-activedescendant","aria-label","aria-labelledby","onFocus","onBlur","onKeydown"])],16)],16)};export{K as default};
|
package/orderlist/orderlist.js
CHANGED
|
@@ -37,6 +37,14 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
|
|
|
37
37
|
type: Boolean,
|
|
38
38
|
"default": false
|
|
39
39
|
},
|
|
40
|
+
autoOptionFocus: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
"default": true
|
|
43
|
+
},
|
|
44
|
+
focusOnHover: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
"default": true
|
|
47
|
+
},
|
|
40
48
|
responsive: {
|
|
41
49
|
type: Boolean,
|
|
42
50
|
"default": true
|
|
@@ -148,14 +156,9 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
|
|
|
148
156
|
return utils.ObjectUtils.findIndexInList(item, this.d_selection) != -1;
|
|
149
157
|
},
|
|
150
158
|
onListFocus: function onListFocus(event) {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
this.focused = true;
|
|
155
|
-
var index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
|
|
156
|
-
this.changeFocusedOptionIndex(index);
|
|
157
|
-
this.$emit('focus', event);
|
|
158
|
-
}
|
|
159
|
+
this.focused = true;
|
|
160
|
+
this.findCurrentFocusedIndex();
|
|
161
|
+
this.$emit('focus', event);
|
|
159
162
|
},
|
|
160
163
|
onListBlur: function onListBlur(event) {
|
|
161
164
|
this.focused = false;
|
|
@@ -191,12 +194,18 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
|
|
|
191
194
|
}
|
|
192
195
|
}
|
|
193
196
|
},
|
|
194
|
-
onOptionMouseDown: function onOptionMouseDown(index) {
|
|
197
|
+
onOptionMouseDown: function onOptionMouseDown(event, index) {
|
|
195
198
|
this.focused = true;
|
|
196
|
-
this.focusedOptionIndex = index;
|
|
199
|
+
this.focusedOptionIndex = "".concat(this.id, "_").concat(index);
|
|
200
|
+
event.preventDefault();
|
|
201
|
+
},
|
|
202
|
+
onOptionMouseMove: function onOptionMouseMove(index) {
|
|
203
|
+
if (this.focusOnHover && this.focused) {
|
|
204
|
+
this.changeFocusedOptionIndex(index);
|
|
205
|
+
}
|
|
197
206
|
},
|
|
198
207
|
onArrowDownKey: function onArrowDownKey(event) {
|
|
199
|
-
var optionIndex = this.findNextOptionIndex(this.
|
|
208
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex() : this.findFirstSelectedOptionIndex();
|
|
200
209
|
this.changeFocusedOptionIndex(optionIndex);
|
|
201
210
|
if (event.shiftKey) {
|
|
202
211
|
this.onEnterKey(event);
|
|
@@ -204,7 +213,7 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
|
|
|
204
213
|
event.preventDefault();
|
|
205
214
|
},
|
|
206
215
|
onArrowUpKey: function onArrowUpKey(event) {
|
|
207
|
-
var optionIndex = this.findPrevOptionIndex(this.
|
|
216
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex() : this.findLastSelectedOptionIndex();
|
|
208
217
|
this.changeFocusedOptionIndex(optionIndex);
|
|
209
218
|
if (event.shiftKey) {
|
|
210
219
|
this.onEnterKey(event);
|
|
@@ -213,11 +222,7 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
|
|
|
213
222
|
},
|
|
214
223
|
onHomeKey: function onHomeKey(event) {
|
|
215
224
|
if (event.ctrlKey && event.shiftKey) {
|
|
216
|
-
var
|
|
217
|
-
var focusedItem = utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
|
|
218
|
-
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
219
|
-
return item === focusedItem;
|
|
220
|
-
});
|
|
225
|
+
var matchedOptionIndex = this.findMatchedOptionIndex();
|
|
221
226
|
this.d_selection = _toConsumableArray(this.modelValue).slice(0, matchedOptionIndex + 1);
|
|
222
227
|
this.$emit('update:selection', this.d_selection);
|
|
223
228
|
this.$emit('selection-change', {
|
|
@@ -231,11 +236,7 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
|
|
|
231
236
|
},
|
|
232
237
|
onEndKey: function onEndKey(event) {
|
|
233
238
|
if (event.ctrlKey && event.shiftKey) {
|
|
234
|
-
var
|
|
235
|
-
var focusedItem = utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
|
|
236
|
-
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
237
|
-
return item === focusedItem;
|
|
238
|
-
});
|
|
239
|
+
var matchedOptionIndex = this.findMatchedOptionIndex();
|
|
239
240
|
this.d_selection = _toConsumableArray(this.modelValue).slice(matchedOptionIndex, items.length);
|
|
240
241
|
this.$emit('update:selection', this.d_selection);
|
|
241
242
|
this.$emit('selection-change', {
|
|
@@ -243,28 +244,20 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
|
|
|
243
244
|
value: this.d_selection
|
|
244
245
|
});
|
|
245
246
|
} else {
|
|
246
|
-
this.changeFocusedOptionIndex(
|
|
247
|
+
this.changeFocusedOptionIndex(this.findAllItems().length - 1);
|
|
247
248
|
}
|
|
248
249
|
event.preventDefault();
|
|
249
250
|
},
|
|
250
251
|
onEnterKey: function onEnterKey(event) {
|
|
251
|
-
var
|
|
252
|
-
var focusedItem = utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
|
|
253
|
-
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
254
|
-
return item === focusedItem;
|
|
255
|
-
});
|
|
252
|
+
var matchedOptionIndex = this.findMatchedOptionIndex();
|
|
256
253
|
this.onItemClick(event, this.modelValue[matchedOptionIndex], matchedOptionIndex);
|
|
257
254
|
event.preventDefault();
|
|
258
255
|
},
|
|
259
256
|
onSpaceKey: function onSpaceKey(event) {
|
|
260
257
|
event.preventDefault();
|
|
261
258
|
if (event.shiftKey && this.d_selection && this.d_selection.length > 0) {
|
|
262
|
-
var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
|
|
263
259
|
var selectedItemIndex = utils.ObjectUtils.findIndexInList(this.d_selection[0], _toConsumableArray(this.modelValue));
|
|
264
|
-
var
|
|
265
|
-
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
266
|
-
return item === focusedItem;
|
|
267
|
-
});
|
|
260
|
+
var matchedOptionIndex = this.findMatchedOptionIndex();
|
|
268
261
|
this.d_selection = _toConsumableArray(this.modelValue).slice(Math.min(selectedItemIndex, matchedOptionIndex), Math.max(selectedItemIndex, matchedOptionIndex) + 1);
|
|
269
262
|
this.$emit('update:selection', this.d_selection);
|
|
270
263
|
this.$emit('selection-change', {
|
|
@@ -275,22 +268,54 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
|
|
|
275
268
|
this.onEnterKey(event);
|
|
276
269
|
}
|
|
277
270
|
},
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
271
|
+
findAllItems: function findAllItems() {
|
|
272
|
+
return utils.DomHandler.find(this.list, '[data-pc-section="item"]');
|
|
273
|
+
},
|
|
274
|
+
findFocusedItem: function findFocusedItem() {
|
|
275
|
+
return utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
|
|
276
|
+
},
|
|
277
|
+
findCurrentFocusedIndex: function findCurrentFocusedIndex() {
|
|
278
|
+
this.focusedOptionIndex = this.findFirstSelectedOptionIndex();
|
|
279
|
+
if (this.autoOptionFocus && this.focusedOptionIndex === -1) {
|
|
280
|
+
this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
281
|
+
}
|
|
282
|
+
this.scrollInView(this.focusedOptionIndex);
|
|
283
|
+
},
|
|
284
|
+
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
285
|
+
var firstFocusableItem = utils.DomHandler.findSingle(this.list, '[data-pc-section="item"]');
|
|
286
|
+
return utils.DomHandler.getAttribute(firstFocusableItem, 'id');
|
|
287
|
+
},
|
|
288
|
+
findFirstSelectedOptionIndex: function findFirstSelectedOptionIndex() {
|
|
289
|
+
if (this.hasSelectedOption) {
|
|
290
|
+
var selectedFirstItem = utils.DomHandler.findSingle(this.list, '[data-p-highlight="true"]');
|
|
291
|
+
return utils.DomHandler.getAttribute(selectedFirstItem, 'id');
|
|
292
|
+
}
|
|
293
|
+
return -1;
|
|
294
|
+
},
|
|
295
|
+
findLastSelectedOptionIndex: function findLastSelectedOptionIndex() {
|
|
296
|
+
if (this.hasSelectedOption) {
|
|
297
|
+
var selectedItems = utils.DomHandler.find(this.list, '[data-p-highlight="true"]');
|
|
298
|
+
return utils.ObjectUtils.findIndexInList(selectedItems[selectedItems.length - 1], this.list.children);
|
|
299
|
+
}
|
|
300
|
+
return -1;
|
|
301
|
+
},
|
|
302
|
+
findMatchedOptionIndex: function findMatchedOptionIndex() {
|
|
303
|
+
var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.focusedOptionIndex;
|
|
304
|
+
var items = this.findAllItems();
|
|
305
|
+
return _toConsumableArray(items).findIndex(function (link) {
|
|
306
|
+
return link.id === id;
|
|
282
307
|
});
|
|
308
|
+
},
|
|
309
|
+
findNextOptionIndex: function findNextOptionIndex() {
|
|
310
|
+
var matchedOptionIndex = this.findMatchedOptionIndex();
|
|
283
311
|
return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;
|
|
284
312
|
},
|
|
285
|
-
findPrevOptionIndex: function findPrevOptionIndex(
|
|
286
|
-
var
|
|
287
|
-
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
|
|
288
|
-
return link.id === index;
|
|
289
|
-
});
|
|
313
|
+
findPrevOptionIndex: function findPrevOptionIndex() {
|
|
314
|
+
var matchedOptionIndex = this.findMatchedOptionIndex();
|
|
290
315
|
return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;
|
|
291
316
|
},
|
|
292
317
|
changeFocusedOptionIndex: function changeFocusedOptionIndex(index) {
|
|
293
|
-
var items =
|
|
318
|
+
var items = this.findAllItems();
|
|
294
319
|
var order = index >= items.length ? items.length - 1 : index < 0 ? 0 : index;
|
|
295
320
|
this.focusedOptionIndex = items[order] ? items[order].getAttribute('id') : -1;
|
|
296
321
|
this.scrollInView(this.focusedOptionIndex);
|
|
@@ -401,7 +426,7 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
|
|
|
401
426
|
var selectedIndex = utils.ObjectUtils.findIndexInList(item, this.d_selection);
|
|
402
427
|
var selected = selectedIndex != -1;
|
|
403
428
|
var metaSelection = this.itemTouched ? false : this.metaKeySelection;
|
|
404
|
-
var selectedId =
|
|
429
|
+
var selectedId = this.findAllItems()[index].getAttribute('id');
|
|
405
430
|
this.focusedOptionIndex = selectedId;
|
|
406
431
|
if (metaSelection) {
|
|
407
432
|
var metaKey = event.metaKey || event.ctrlKey;
|
|
@@ -432,14 +457,6 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
|
|
|
432
457
|
onItemTouchEnd: function onItemTouchEnd() {
|
|
433
458
|
this.itemTouched = true;
|
|
434
459
|
},
|
|
435
|
-
findNextItem: function findNextItem(item) {
|
|
436
|
-
var nextItem = item.nextElementSibling;
|
|
437
|
-
if (nextItem) return !(utils.DomHandler.getAttribute(nextItem, 'data-pc-section') === 'item') ? this.findNextItem(nextItem) : nextItem;else return null;
|
|
438
|
-
},
|
|
439
|
-
findPrevItem: function findPrevItem(item) {
|
|
440
|
-
var prevItem = item.previousElementSibling;
|
|
441
|
-
if (prevItem) return !(utils.DomHandler.getAttribute(nextItem, 'data-pc-section') === 'item') ? this.findPrevItem(prevItem) : prevItem;else return null;
|
|
442
|
-
},
|
|
443
460
|
updateListScroll: function updateListScroll() {
|
|
444
461
|
var listItems = utils.DomHandler.find(this.list, '[data-pc-section="item"][data-p-highlight="true"]');
|
|
445
462
|
if (listItems && listItems.length) {
|
|
@@ -504,6 +521,9 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
|
|
|
504
521
|
},
|
|
505
522
|
moveBottomAriaLabel: function moveBottomAriaLabel() {
|
|
506
523
|
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveBottom : undefined;
|
|
524
|
+
},
|
|
525
|
+
hasSelectedOption: function hasSelectedOption() {
|
|
526
|
+
return utils.ObjectUtils.isNotEmpty(this.d_selection);
|
|
507
527
|
}
|
|
508
528
|
},
|
|
509
529
|
components: {
|
|
@@ -524,7 +544,7 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
|
|
|
524
544
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
525
545
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
526
546
|
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); }
|
|
527
|
-
var _hoisted_1 = ["id", "onClick", "
|
|
547
|
+
var _hoisted_1 = ["id", "onClick", "onMousedown", "onMousemove", "aria-selected", "data-p-highlight", "data-p-focused"];
|
|
528
548
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
529
549
|
var _component_AngleUpIcon = vue.resolveComponent("AngleUpIcon");
|
|
530
550
|
var _component_OLButton = vue.resolveComponent("OLButton");
|
|
@@ -646,10 +666,13 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
|
|
|
646
666
|
onTouchend: _cache[0] || (_cache[0] = function () {
|
|
647
667
|
return $options.onItemTouchEnd && $options.onItemTouchEnd.apply($options, arguments);
|
|
648
668
|
}),
|
|
649
|
-
"aria-selected": $options.isSelected(item),
|
|
650
669
|
onMousedown: function onMousedown($event) {
|
|
651
|
-
return $options.onOptionMouseDown(i);
|
|
652
|
-
}
|
|
670
|
+
return $options.onOptionMouseDown($event, i);
|
|
671
|
+
},
|
|
672
|
+
onMousemove: function onMousemove($event) {
|
|
673
|
+
return $options.onOptionMouseMove(i);
|
|
674
|
+
},
|
|
675
|
+
"aria-selected": $options.isSelected(item)
|
|
653
676
|
}, $options.getPTOptions(item, 'item', i), {
|
|
654
677
|
"data-p-highlight": $options.isSelected(item),
|
|
655
678
|
"data-p-focused": "".concat($data.id, "_").concat(i) === $options.focusedOptionId
|