primevue 3.20.0 → 3.22.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 +3 -15
- package/accordion/accordion.cjs.js +1 -1
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +1 -1
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +1 -1
- package/accordion/accordion.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +9 -1
- package/autocomplete/AutoComplete.vue +41 -22
- package/autocomplete/autocomplete.cjs.js +53 -25
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +53 -25
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +53 -25
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +1 -1
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +1 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +1 -1
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +1 -1
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +1 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +1 -1
- package/avatargroup/avatargroup.min.js +1 -1
- package/badgedirective/badgedirective.cjs.js +1 -1
- package/badgedirective/badgedirective.cjs.min.js +1 -1
- package/badgedirective/badgedirective.esm.js +1 -1
- package/badgedirective/badgedirective.esm.min.js +1 -1
- package/badgedirective/badgedirective.js +1 -1
- package/badgedirective/badgedirective.min.js +1 -1
- package/breadcrumb/Breadcrumb.vue +1 -1
- package/breadcrumb/breadcrumb.cjs.js +2 -3
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +2 -3
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +2 -3
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/calendar/Calendar.d.ts +1 -1
- package/calendar/Calendar.vue +3 -2
- package/calendar/calendar.cjs.js +4 -3
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +4 -3
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +4 -3
- package/calendar/calendar.min.js +1 -1
- package/carousel/Carousel.d.ts +9 -1
- package/carousel/Carousel.vue +144 -19
- package/carousel/carousel.cjs.js +159 -45
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +160 -46
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +160 -46
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.vue +9 -4
- package/cascadeselect/cascadeselect.cjs.js +9 -4
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +9 -4
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +9 -4
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/Chart.d.ts +5 -0
- package/chart/Chart.vue +5 -1
- package/chart/chart.cjs.js +6 -2
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +7 -3
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +6 -2
- package/chart/chart.min.js +1 -1
- package/checkbox/Checkbox.vue +1 -3
- package/checkbox/checkbox.cjs.js +3 -4
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +4 -5
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +3 -4
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +1 -1
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +1 -1
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +1 -1
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +1 -1
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +1 -1
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +1 -1
- package/chips/chips.min.js +1 -1
- package/colorpicker/ColorPicker.vue +5 -7
- package/colorpicker/colorpicker.cjs.js +5 -7
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +5 -7
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +6 -8
- package/colorpicker/colorpicker.min.js +1 -1
- package/config/PrimeVue.d.ts +37 -0
- package/config/config.cjs.js +38 -1
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +38 -1
- package/config/config.esm.min.js +1 -1
- package/config/config.js +38 -1
- package/config/config.min.js +1 -1
- package/confirmationservice/ConfirmationService.d.ts +1 -1
- package/confirmdialog/ConfirmDialog.vue +1 -1
- package/confirmdialog/confirmdialog.cjs.js +6 -3
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +7 -4
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +6 -3
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/ConfirmPopup.vue +11 -10
- package/confirmpopup/confirmpopup.cjs.js +15 -13
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +15 -13
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +15 -13
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenuSub.vue +3 -5
- package/contextmenu/contextmenu.cjs.js +4 -6
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +4 -6
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +4 -6
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +537 -261
- package/core/core.min.js +13 -13
- package/datatable/BodyCell.vue +39 -14
- package/datatable/ColumnFilter.vue +67 -41
- package/datatable/DataTable.d.ts +11 -3
- package/datatable/DataTable.vue +162 -25
- package/datatable/HeaderCell.vue +12 -6
- package/datatable/HeaderCheckbox.vue +17 -14
- package/datatable/RowCheckbox.vue +28 -13
- package/datatable/RowRadioButton.vue +11 -3
- package/datatable/TableBody.vue +25 -7
- package/datatable/TableFooter.vue +1 -1
- package/datatable/TableHeader.vue +9 -3
- package/datatable/TableLoadingBody.vue +1 -1
- package/datatable/datatable.cjs.js +540 -269
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +539 -269
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +539 -269
- package/datatable/datatable.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.vue +23 -3
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +40 -11
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +40 -11
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +40 -11
- package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
- package/dialog/Dialog.vue +12 -7
- package/dialog/dialog.cjs.js +15 -10
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +15 -10
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +15 -10
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +1 -1
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +1 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +1 -1
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +1 -1
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +1 -1
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +1 -1
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.vue +24 -16
- package/dropdown/dropdown.cjs.js +25 -17
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +25 -17
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +25 -17
- package/dropdown/dropdown.min.js +1 -1
- package/editor/Editor.vue +7 -1
- package/editor/editor.cjs.js +35 -6
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +35 -6
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +35 -6
- package/editor/editor.min.js +1 -1
- package/fieldset/Fieldset.vue +1 -1
- package/fieldset/fieldset.cjs.js +2 -2
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +2 -2
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +3 -3
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/FileUpload.d.ts +51 -1
- package/fileupload/FileUpload.vue +2 -2
- package/fileupload/fileupload.cjs.js +3 -3
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +3 -3
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +3 -3
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/focustrap.cjs.js +86 -64
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +85 -63
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +86 -64
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/Galleria.d.ts +15 -3
- package/galleria/Galleria.vue +36 -6
- package/galleria/GalleriaContent.vue +11 -7
- package/galleria/GalleriaItem.vue +36 -6
- package/galleria/GalleriaThumbnails.vue +108 -4
- package/galleria/galleria.cjs.js +259 -123
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +258 -123
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +259 -124
- package/galleria/galleria.min.js +1 -1
- package/image/Image.vue +71 -13
- package/image/image.cjs.js +113 -40
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +113 -41
- package/image/image.esm.min.js +1 -1
- package/image/image.js +113 -41
- package/image/image.min.js +1 -1
- package/inlinemessage/inlinemessage.cjs.js +1 -1
- package/inlinemessage/inlinemessage.cjs.min.js +1 -1
- package/inlinemessage/inlinemessage.esm.js +1 -1
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +1 -1
- package/inlinemessage/inlinemessage.min.js +1 -1
- package/inplace/inplace.cjs.js +1 -1
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +1 -1
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +1 -1
- package/inplace/inplace.min.js +1 -1
- package/inputnumber/InputNumber.vue +11 -20
- package/inputnumber/inputnumber.cjs.js +12 -21
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +12 -21
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +12 -21
- package/inputnumber/inputnumber.min.js +1 -1
- package/knob/knob.cjs.js +1 -1
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +1 -1
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +1 -1
- package/knob/knob.min.js +1 -1
- package/listbox/Listbox.vue +12 -8
- package/listbox/listbox.cjs.js +13 -9
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +13 -9
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +14 -10
- package/listbox/listbox.min.js +1 -1
- package/megamenu/MegaMenu.vue +10 -1
- package/megamenu/MegaMenuSub.vue +3 -5
- package/megamenu/megamenu.cjs.js +14 -7
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +14 -7
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +14 -7
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.vue +8 -2
- package/menu/menu.cjs.js +9 -3
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +9 -3
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +9 -3
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.vue +7 -2
- package/menubar/MenubarSub.vue +3 -5
- package/menubar/menubar.cjs.js +11 -8
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +11 -8
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +11 -8
- package/menubar/menubar.min.js +1 -1
- package/message/Message.d.ts +5 -1
- package/message/Message.vue +15 -5
- package/message/message.cjs.js +24 -10
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +25 -11
- package/message/message.esm.min.js +1 -1
- package/message/message.js +24 -10
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.vue +53 -36
- package/multiselect/multiselect.cjs.js +54 -37
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +55 -38
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +54 -37
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +33 -1
- package/orderlist/OrderList.vue +265 -63
- package/orderlist/orderlist.cjs.js +280 -70
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +281 -71
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +281 -71
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChartNode.vue +7 -1
- package/organizationchart/organizationchart.cjs.js +8 -2
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +9 -3
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +8 -2
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +1 -1
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +1 -1
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +1 -1
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +2 -2
- package/paginator/CurrentPageReport.vue +0 -1
- package/paginator/JumpToPageDropdown.vue +0 -1
- package/paginator/JumpToPageInput.vue +19 -4
- package/paginator/PageLinks.vue +16 -1
- package/paginator/Paginator.vue +24 -11
- package/paginator/RowsPerPageDropdown.vue +0 -1
- package/paginator/paginator.cjs.js +51 -20
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +51 -20
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +51 -20
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.vue +2 -2
- package/panel/panel.cjs.js +3 -3
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +3 -3
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +4 -4
- package/panel/panel.min.js +1 -1
- package/panelmenu/PanelMenu.vue +4 -4
- package/panelmenu/PanelMenuList.vue +57 -0
- package/panelmenu/PanelMenuSub.vue +3 -5
- package/panelmenu/panelmenu.cjs.js +78 -10
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +78 -10
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +78 -10
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.vue +5 -0
- 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/PickList.d.ts +45 -1
- package/picklist/PickList.vue +305 -58
- package/picklist/picklist.cjs.js +350 -89
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +351 -90
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +351 -90
- package/picklist/picklist.min.js +1 -1
- package/progressbar/progressbar.cjs.js +1 -1
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +1 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +1 -1
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/ProgressSpinner.vue +0 -47
- package/progressspinner/progressspinner.cjs.js +1 -1
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +1 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +1 -1
- package/progressspinner/progressspinner.min.js +1 -1
- package/rating/Rating.d.ts +1 -0
- package/rating/rating.cjs.js +1 -1
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +1 -1
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +1 -1
- package/rating/rating.min.js +1 -1
- package/resources/primevue.css +2 -6
- package/resources/primevue.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +77 -14
- package/resources/themes/arya-green/theme.css +77 -14
- package/resources/themes/arya-orange/theme.css +77 -14
- package/resources/themes/arya-purple/theme.css +77 -14
- package/resources/themes/bootstrap4-dark-blue/theme.css +77 -14
- package/resources/themes/bootstrap4-dark-purple/theme.css +77 -14
- package/resources/themes/bootstrap4-light-blue/theme.css +77 -14
- package/resources/themes/bootstrap4-light-purple/theme.css +77 -14
- package/resources/themes/fluent-light/theme.css +77 -14
- package/resources/themes/lara-dark-blue/theme.css +81 -14
- package/resources/themes/lara-dark-indigo/theme.css +81 -14
- package/resources/themes/lara-dark-purple/theme.css +81 -14
- package/resources/themes/lara-dark-teal/theme.css +81 -14
- package/resources/themes/lara-light-blue/theme.css +81 -14
- package/resources/themes/lara-light-indigo/theme.css +81 -14
- package/resources/themes/lara-light-purple/theme.css +81 -14
- package/resources/themes/lara-light-teal/theme.css +81 -14
- package/resources/themes/luna-amber/theme.css +77 -14
- package/resources/themes/luna-blue/theme.css +77 -14
- package/resources/themes/luna-green/theme.css +77 -14
- package/resources/themes/luna-pink/theme.css +77 -14
- package/resources/themes/md-dark-deeppurple/theme.css +101 -20
- package/resources/themes/md-dark-indigo/theme.css +101 -20
- package/resources/themes/md-light-deeppurple/theme.css +101 -20
- package/resources/themes/md-light-indigo/theme.css +101 -20
- package/resources/themes/mdc-dark-deeppurple/theme.css +101 -20
- package/resources/themes/mdc-dark-indigo/theme.css +101 -20
- package/resources/themes/mdc-light-deeppurple/theme.css +101 -20
- package/resources/themes/mdc-light-indigo/theme.css +101 -20
- package/resources/themes/nova/theme.css +77 -14
- package/resources/themes/nova-accent/theme.css +77 -14
- package/resources/themes/nova-alt/theme.css +77 -14
- package/resources/themes/nova-vue/theme.css +77 -14
- package/resources/themes/rhea/theme.css +77 -14
- package/resources/themes/saga-blue/theme.css +77 -14
- package/resources/themes/saga-green/theme.css +77 -14
- package/resources/themes/saga-orange/theme.css +77 -14
- package/resources/themes/saga-purple/theme.css +77 -14
- package/resources/themes/tailwind-light/theme.css +81 -14
- package/resources/themes/vela-blue/theme.css +77 -14
- package/resources/themes/vela-green/theme.css +77 -14
- package/resources/themes/vela-orange/theme.css +77 -14
- package/resources/themes/vela-purple/theme.css +77 -14
- package/scrollpanel/scrollpanel.cjs.js +1 -1
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +1 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +1 -1
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +1 -1
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +1 -1
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +1 -1
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/SelectButton.vue +1 -1
- package/selectbutton/selectbutton.cjs.js +1 -1
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +1 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +2 -2
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/Sidebar.d.ts +4 -0
- package/sidebar/Sidebar.vue +210 -142
- package/sidebar/sidebar.cjs.js +146 -121
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +147 -122
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +146 -121
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +1 -1
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +1 -1
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +1 -1
- package/skeleton/skeleton.min.js +1 -1
- package/slider/slider.cjs.js +1 -1
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +1 -1
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +1 -1
- package/slider/slider.min.js +1 -1
- package/speeddial/SpeedDial.d.ts +19 -1
- package/speeddial/SpeedDial.vue +254 -7
- package/speeddial/speeddial.cjs.js +255 -14
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +256 -15
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +255 -14
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +20 -4
- package/splitbutton/SplitButton.vue +56 -8
- package/splitbutton/splitbutton.cjs.js +57 -17
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +57 -17
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +57 -17
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.vue +1 -1
- package/splitter/splitter.cjs.js +1 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +1 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +1 -1
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +1 -1
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +1 -1
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +1 -1
- package/steps/steps.min.js +1 -1
- package/tabmenu/TabMenu.vue +4 -16
- package/tabmenu/tabmenu.cjs.js +19 -16
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +19 -16
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +19 -16
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/TabView.vue +2 -2
- 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.cjs.js +1 -1
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +1 -1
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +1 -1
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +1 -1
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +1 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +1 -1
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/TieredMenu.vue +13 -3
- package/tieredmenu/TieredMenuSub.vue +3 -5
- package/tieredmenu/tieredmenu.cjs.js +17 -9
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +17 -9
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +17 -9
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +1 -1
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +1 -1
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +1 -1
- package/timeline/timeline.min.js +1 -1
- package/toast/Toast.d.ts +5 -1
- package/toast/Toast.vue +5 -0
- package/toast/ToastMessage.vue +36 -8
- package/toast/toast.cjs.js +49 -13
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +50 -14
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +49 -13
- package/toast/toast.min.js +1 -1
- package/toolbar/Toolbar.d.ts +6 -0
- package/toolbar/Toolbar.vue +12 -2
- package/toolbar/toolbar.cjs.js +7 -3
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +7 -3
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +7 -3
- package/toolbar/toolbar.min.js +1 -1
- package/tree/Tree.d.ts +8 -0
- package/tree/Tree.vue +10 -2
- package/tree/TreeNode.vue +174 -37
- package/tree/tree.cjs.js +193 -59
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +193 -59
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +193 -59
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.vue +40 -26
- package/treeselect/treeselect.cjs.js +46 -30
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +44 -28
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +45 -29
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BodyCell.vue +4 -4
- package/treetable/HeaderCell.vue +4 -2
- package/treetable/TreeTable.d.ts +4 -0
- package/treetable/TreeTable.vue +43 -17
- package/treetable/TreeTableRow.vue +200 -59
- package/treetable/treetable.cjs.js +798 -621
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +795 -618
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +795 -618
- package/treetable/treetable.min.js +1 -1
- package/utils/utils.cjs.js +67 -47
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +67 -47
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +67 -47
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +35 -283
- package/vetur-tags.json +26 -89
- package/virtualscroller/virtualscroller.cjs.js +1 -1
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +1 -1
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +1 -1
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +94 -998
- package/galleria/GalleriaItemSlot.vue +0 -53
package/picklist/PickList.vue
CHANGED
|
@@ -2,26 +2,41 @@
|
|
|
2
2
|
<div :class="containerClass">
|
|
3
3
|
<div v-if="showSourceControls" class="p-picklist-buttons p-picklist-source-controls">
|
|
4
4
|
<slot name="sourcecontrolsstart"></slot>
|
|
5
|
-
<PLButton type="button" icon="pi pi-angle-up" @click="moveUp($event, 0)"></PLButton>
|
|
6
|
-
<PLButton type="button" icon="pi pi-angle-double-up" @click="moveTop($event, 0)"></PLButton>
|
|
7
|
-
<PLButton type="button" icon="pi pi-angle-down" @click="moveDown($event, 0)"></PLButton>
|
|
8
|
-
<PLButton type="button" icon="pi pi-angle-double-down" @click="moveBottom($event, 0)"></PLButton>
|
|
5
|
+
<PLButton :aria-label="moveUpAriaLabel" :disabled="moveDisabled(0)" v-bind="moveUpButtonProps" type="button" icon="pi pi-angle-up" @click="moveUp($event, 0)"></PLButton>
|
|
6
|
+
<PLButton :aria-label="moveTopAriaLabel" :disabled="moveDisabled(0)" v-bind="moveTopButtonProps" type="button" icon="pi pi-angle-double-up" @click="moveTop($event, 0)"></PLButton>
|
|
7
|
+
<PLButton :aria-label="moveDownAriaLabel" :disabled="moveDisabled(0)" v-bind="moveDownButtonProps" type="button" icon="pi pi-angle-down" @click="moveDown($event, 0)"></PLButton>
|
|
8
|
+
<PLButton :aria-label="moveBottomAriaLabel" :disabled="moveDisabled(0)" v-bind="moveBottomButtonProps" type="button" icon="pi pi-angle-double-down" @click="moveBottom($event, 0)"></PLButton>
|
|
9
9
|
<slot name="sourcecontrolsend"></slot>
|
|
10
10
|
</div>
|
|
11
11
|
<div class="p-picklist-list-wrapper p-picklist-source-wrapper">
|
|
12
12
|
<div v-if="$slots.sourceheader" class="p-picklist-header">
|
|
13
13
|
<slot name="sourceheader"></slot>
|
|
14
14
|
</div>
|
|
15
|
-
<transition-group
|
|
15
|
+
<transition-group
|
|
16
|
+
ref="sourceList"
|
|
17
|
+
:id="idSource + '_list'"
|
|
18
|
+
name="p-picklist-flip"
|
|
19
|
+
tag="ul"
|
|
20
|
+
class="p-picklist-list p-picklist-source"
|
|
21
|
+
:style="listStyle"
|
|
22
|
+
role="listbox"
|
|
23
|
+
aria-multiselectable="true"
|
|
24
|
+
:aria-activedescendant="focused['sourceList'] ? focusedOptionId : undefined"
|
|
25
|
+
:tabindex="sourceList && sourceList.length > 0 ? tabindex : -1"
|
|
26
|
+
@focus="onListFocus($event, 'sourceList')"
|
|
27
|
+
@blur="onListBlur($event, 'sourceList')"
|
|
28
|
+
@keydown="onItemKeyDown($event, 'sourceList')"
|
|
29
|
+
v-bind="sourceListProps"
|
|
30
|
+
>
|
|
16
31
|
<template v-for="(item, i) of sourceList" :key="getItemKey(item, i)">
|
|
17
32
|
<li
|
|
33
|
+
:id="idSource + '_' + i"
|
|
18
34
|
v-ripple
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@click="onItemClick($event, item, 0)"
|
|
35
|
+
:class="itemClass(item, `${idSource}_${i}`, 0)"
|
|
36
|
+
@click="onItemClick($event, item, i, 0)"
|
|
22
37
|
@dblclick="onItemDblClick($event, item, 0)"
|
|
23
|
-
@keydown="onItemKeyDown($event, item, 0)"
|
|
24
38
|
@touchend="onItemTouchEnd"
|
|
39
|
+
@mousedown="onOptionMouseDown(i, 'sourceList')"
|
|
25
40
|
role="option"
|
|
26
41
|
:aria-selected="isSelected(item, 0)"
|
|
27
42
|
>
|
|
@@ -32,25 +47,41 @@
|
|
|
32
47
|
</div>
|
|
33
48
|
<div class="p-picklist-buttons p-picklist-transfer-buttons">
|
|
34
49
|
<slot name="movecontrolsstart"></slot>
|
|
35
|
-
<PLButton type="button" icon="pi pi-angle-right" @click="moveToTarget"></PLButton>
|
|
36
|
-
<PLButton type="button" icon="pi pi-angle-double-right" @click="moveAllToTarget"></PLButton>
|
|
37
|
-
<PLButton type="button" icon="pi pi-angle-left" @click="moveToSource"></PLButton>
|
|
38
|
-
<PLButton type="button" icon="pi pi-angle-double-left" @click="moveAllToSource"></PLButton>
|
|
50
|
+
<PLButton :aria-label="moveToTargetAriaLabel" type="button" icon="pi pi-angle-right" @click="moveToTarget" :disabled="moveDisabled(0)" v-bind="moveToTargetProps"></PLButton>
|
|
51
|
+
<PLButton :aria-label="moveAllToTargetAriaLabel" type="button" icon="pi pi-angle-double-right" @click="moveAllToTarget" :disabled="moveAllDisabled('sourceList')" v-bind="moveAllToTargetProps"></PLButton>
|
|
52
|
+
<PLButton :aria-label="moveToSourceAriaLabel" type="button" icon="pi pi-angle-left" @click="moveToSource" :disabled="moveDisabled(1)" v-bind="moveToSourceProps"></PLButton>
|
|
53
|
+
<PLButton :aria-label="moveAllToSourceAriaLabel" type="button" icon="pi pi-angle-double-left" @click="moveAllToSource" :disabled="moveSourceDisabled('targetList')" v-bind="moveAllToSourceProps"></PLButton>
|
|
39
54
|
<slot name="movecontrolsend"></slot>
|
|
40
55
|
</div>
|
|
41
56
|
<div class="p-picklist-list-wrapper p-picklist-target-wrapper">
|
|
42
57
|
<div v-if="$slots.targetheader" class="p-picklist-header">
|
|
43
58
|
<slot name="targetheader"></slot>
|
|
44
59
|
</div>
|
|
45
|
-
<transition-group
|
|
60
|
+
<transition-group
|
|
61
|
+
ref="targetList"
|
|
62
|
+
:id="idTarget + '_list'"
|
|
63
|
+
name="p-picklist-flip"
|
|
64
|
+
tag="ul"
|
|
65
|
+
class="p-picklist-list p-picklist-target"
|
|
66
|
+
:style="listStyle"
|
|
67
|
+
role="listbox"
|
|
68
|
+
aria-multiselectable="true"
|
|
69
|
+
:aria-activedescendant="focused['targetList'] ? focusedOptionId : undefined"
|
|
70
|
+
:tabindex="targetList && targetList.length > 0 ? tabindex : -1"
|
|
71
|
+
@focus="onListFocus($event, 'targetList')"
|
|
72
|
+
@blur="onListBlur($event, 'targetList')"
|
|
73
|
+
@keydown="onItemKeyDown($event, 'targetList')"
|
|
74
|
+
v-bind="targetListProps"
|
|
75
|
+
>
|
|
46
76
|
<template v-for="(item, i) of targetList" :key="getItemKey(item, i)">
|
|
47
77
|
<li
|
|
78
|
+
:id="idTarget + '_' + i"
|
|
48
79
|
v-ripple
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
@click="onItemClick($event, item, 1)"
|
|
80
|
+
:class="itemClass(item, `${idTarget}_${i}`, 1)"
|
|
81
|
+
@click="onItemClick($event, item, i, 1)"
|
|
52
82
|
@dblclick="onItemDblClick($event, item, 1)"
|
|
53
|
-
@keydown="onItemKeyDown($event,
|
|
83
|
+
@keydown="onItemKeyDown($event, 'targetList')"
|
|
84
|
+
@mousedown="onOptionMouseDown(i, 'targetList')"
|
|
54
85
|
@touchend="onItemTouchEnd"
|
|
55
86
|
role="option"
|
|
56
87
|
:aria-selected="isSelected(item, 1)"
|
|
@@ -62,10 +93,10 @@
|
|
|
62
93
|
</div>
|
|
63
94
|
<div v-if="showTargetControls" class="p-picklist-buttons p-picklist-target-controls">
|
|
64
95
|
<slot name="targetcontrolsstart"></slot>
|
|
65
|
-
<PLButton type="button" icon="pi pi-angle-up" @click="moveUp($event, 1)"></PLButton>
|
|
66
|
-
<PLButton type="button" icon="pi pi-angle-double-up" @click="moveTop($event, 1)"></PLButton>
|
|
67
|
-
<PLButton type="button" icon="pi pi-angle-down" @click="moveDown($event, 1)"></PLButton>
|
|
68
|
-
<PLButton type="button" icon="pi pi-angle-double-down" @click="moveBottom($event, 1)"></PLButton>
|
|
96
|
+
<PLButton :aria-label="moveUpAriaLabel" :disabled="moveDisabled(1)" v-bind="moveUpButtonProps" type="button" icon="pi pi-angle-up" @click="moveUp($event, 1)"></PLButton>
|
|
97
|
+
<PLButton :aria-label="moveTopAriaLabel" :disabled="moveDisabled(1)" v-bind="moveTopButtonProps" type="button" icon="pi pi-angle-double-up" @click="moveTop($event, 1)"></PLButton>
|
|
98
|
+
<PLButton :aria-label="moveDownAriaLabel" :disabled="moveDisabled(1)" v-bind="moveDownButtonProps" type="button" icon="pi pi-angle-down" @click="moveDown($event, 1)"></PLButton>
|
|
99
|
+
<PLButton :aria-label="moveBottomAriaLabel" :disabled="moveDisabled(1)" v-bind="moveBottomButtonProps" type="button" icon="pi pi-angle-double-down" @click="moveBottom($event, 1)"></PLButton>
|
|
69
100
|
<slot name="targetcontrolsend"></slot>
|
|
70
101
|
</div>
|
|
71
102
|
</div>
|
|
@@ -73,12 +104,12 @@
|
|
|
73
104
|
|
|
74
105
|
<script>
|
|
75
106
|
import Button from 'primevue/button';
|
|
76
|
-
import { ObjectUtils, UniqueComponentId, DomHandler } from 'primevue/utils';
|
|
77
107
|
import Ripple from 'primevue/ripple';
|
|
108
|
+
import { DomHandler, ObjectUtils, UniqueComponentId } from 'primevue/utils';
|
|
78
109
|
|
|
79
110
|
export default {
|
|
80
111
|
name: 'PickList',
|
|
81
|
-
emits: ['update:modelValue', 'reorder', 'update:selection', 'selection-change', 'move-to-target', 'move-to-source', 'move-all-to-target', 'move-all-to-source'],
|
|
112
|
+
emits: ['update:modelValue', 'reorder', 'update:selection', 'selection-change', 'move-to-target', 'move-to-source', 'move-all-to-target', 'move-all-to-source', 'focus', 'blur'],
|
|
82
113
|
props: {
|
|
83
114
|
modelValue: {
|
|
84
115
|
type: Array,
|
|
@@ -119,6 +150,50 @@ export default {
|
|
|
119
150
|
showTargetControls: {
|
|
120
151
|
type: Boolean,
|
|
121
152
|
default: true
|
|
153
|
+
},
|
|
154
|
+
targetListProps: {
|
|
155
|
+
type: null,
|
|
156
|
+
default: null
|
|
157
|
+
},
|
|
158
|
+
sourceListProps: {
|
|
159
|
+
type: null,
|
|
160
|
+
default: null
|
|
161
|
+
},
|
|
162
|
+
moveUpButtonProps: {
|
|
163
|
+
type: null,
|
|
164
|
+
default: null
|
|
165
|
+
},
|
|
166
|
+
moveTopButtonProps: {
|
|
167
|
+
type: null,
|
|
168
|
+
default: null
|
|
169
|
+
},
|
|
170
|
+
moveDownButtonProps: {
|
|
171
|
+
type: null,
|
|
172
|
+
default: null
|
|
173
|
+
},
|
|
174
|
+
moveBottomButtonProps: {
|
|
175
|
+
type: null,
|
|
176
|
+
default: null
|
|
177
|
+
},
|
|
178
|
+
moveToTargetProps: {
|
|
179
|
+
type: null,
|
|
180
|
+
default: null
|
|
181
|
+
},
|
|
182
|
+
moveAllToTargetProps: {
|
|
183
|
+
type: null,
|
|
184
|
+
default: null
|
|
185
|
+
},
|
|
186
|
+
moveToSourceProps: {
|
|
187
|
+
type: null,
|
|
188
|
+
default: null
|
|
189
|
+
},
|
|
190
|
+
moveAllToSourceProps: {
|
|
191
|
+
type: null,
|
|
192
|
+
default: null
|
|
193
|
+
},
|
|
194
|
+
tabindex: {
|
|
195
|
+
type: Number,
|
|
196
|
+
default: 0
|
|
122
197
|
}
|
|
123
198
|
},
|
|
124
199
|
itemTouched: false,
|
|
@@ -126,7 +201,12 @@ export default {
|
|
|
126
201
|
styleElement: null,
|
|
127
202
|
data() {
|
|
128
203
|
return {
|
|
129
|
-
d_selection: this.selection
|
|
204
|
+
d_selection: this.selection,
|
|
205
|
+
focused: {
|
|
206
|
+
sourceList: false,
|
|
207
|
+
targetList: false
|
|
208
|
+
},
|
|
209
|
+
focusedOptionIndex: -1
|
|
130
210
|
};
|
|
131
211
|
},
|
|
132
212
|
watch: {
|
|
@@ -156,6 +236,26 @@ export default {
|
|
|
156
236
|
isSelected(item, listIndex) {
|
|
157
237
|
return ObjectUtils.findIndexInList(item, this.d_selection[listIndex]) != -1;
|
|
158
238
|
},
|
|
239
|
+
onListFocus(event, listType) {
|
|
240
|
+
const selectedFirstItem = DomHandler.findSingle(this.$refs[listType].$el, 'li.p-picklist-item.p-highlight');
|
|
241
|
+
const findIndex = ObjectUtils.findIndexInList(selectedFirstItem, this.$refs[listType].$el.children);
|
|
242
|
+
|
|
243
|
+
this.focused[listType] = true;
|
|
244
|
+
|
|
245
|
+
const index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
|
|
246
|
+
|
|
247
|
+
this.changeFocusedOptionIndex(index, listType);
|
|
248
|
+
this.$emit('focus', event);
|
|
249
|
+
},
|
|
250
|
+
onListBlur(event, listType) {
|
|
251
|
+
this.focused[listType] = false;
|
|
252
|
+
this.focusedOptionIndex = -1;
|
|
253
|
+
this.$emit('blur', event);
|
|
254
|
+
},
|
|
255
|
+
onOptionMouseDown(index, listType) {
|
|
256
|
+
this.focused[listType] = true;
|
|
257
|
+
this.focusedOptionIndex = index;
|
|
258
|
+
},
|
|
159
259
|
moveUp(event, listIndex) {
|
|
160
260
|
if (this.d_selection && this.d_selection[listIndex]) {
|
|
161
261
|
let valueList = [...this.modelValue[listIndex]];
|
|
@@ -408,12 +508,17 @@ export default {
|
|
|
408
508
|
});
|
|
409
509
|
}
|
|
410
510
|
},
|
|
411
|
-
onItemClick(event, item, listIndex) {
|
|
511
|
+
onItemClick(event, item, index, listIndex) {
|
|
512
|
+
const listType = listIndex === 0 ? 'sourceList' : 'targetList';
|
|
513
|
+
|
|
412
514
|
this.itemTouched = false;
|
|
413
515
|
const selectionList = this.d_selection[listIndex];
|
|
414
|
-
const selectedIndex = ObjectUtils.findIndexInList(item,
|
|
516
|
+
const selectedIndex = ObjectUtils.findIndexInList(item, this.d_selection);
|
|
415
517
|
const selected = selectedIndex != -1;
|
|
416
518
|
const metaSelection = this.itemTouched ? false : this.metaKeySelection;
|
|
519
|
+
const selectedId = DomHandler.find(this.$refs[listType].$el, '.p-picklist-item')[index].getAttribute('id');
|
|
520
|
+
|
|
521
|
+
this.focusedOptionIndex = selectedId;
|
|
417
522
|
let _selection;
|
|
418
523
|
|
|
419
524
|
if (metaSelection) {
|
|
@@ -452,53 +557,148 @@ export default {
|
|
|
452
557
|
onItemTouchEnd() {
|
|
453
558
|
this.itemTouched = true;
|
|
454
559
|
},
|
|
455
|
-
onItemKeyDown(event,
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
case 40:
|
|
461
|
-
var nextItem = this.findNextItem(listItem);
|
|
462
|
-
|
|
463
|
-
if (nextItem) {
|
|
464
|
-
nextItem.focus();
|
|
465
|
-
}
|
|
560
|
+
onItemKeyDown(event, listType) {
|
|
561
|
+
switch (event.code) {
|
|
562
|
+
case 'ArrowDown':
|
|
563
|
+
this.onArrowDownKey(event, listType);
|
|
564
|
+
break;
|
|
466
565
|
|
|
467
|
-
|
|
566
|
+
case 'ArrowUp':
|
|
567
|
+
this.onArrowUpKey(event, listType);
|
|
468
568
|
break;
|
|
469
569
|
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
570
|
+
case 'Home':
|
|
571
|
+
this.onHomeKey(event, listType);
|
|
572
|
+
break;
|
|
473
573
|
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
574
|
+
case 'End':
|
|
575
|
+
this.onEndKey(event, listType);
|
|
576
|
+
break;
|
|
477
577
|
|
|
478
|
-
|
|
578
|
+
case 'Enter':
|
|
579
|
+
this.onEnterKey(event, listType);
|
|
479
580
|
break;
|
|
480
581
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
this.onItemClick(event, item, listIndex);
|
|
484
|
-
event.preventDefault();
|
|
582
|
+
case 'Space':
|
|
583
|
+
this.onSpaceKey(event, listType);
|
|
485
584
|
break;
|
|
486
585
|
|
|
586
|
+
case 'KeyA':
|
|
587
|
+
if (event.ctrlKey) {
|
|
588
|
+
this.d_selection = [...this.modelValue];
|
|
589
|
+
this.$emit('update:selection', this.d_selection);
|
|
590
|
+
}
|
|
591
|
+
|
|
487
592
|
default:
|
|
488
593
|
break;
|
|
489
594
|
}
|
|
490
595
|
},
|
|
491
|
-
|
|
492
|
-
|
|
596
|
+
onArrowDownKey(event, listType) {
|
|
597
|
+
const optionIndex = this.findNextOptionIndex(this.focusedOptionIndex, listType);
|
|
598
|
+
|
|
599
|
+
this.changeFocusedOptionIndex(optionIndex, listType);
|
|
600
|
+
|
|
601
|
+
if (event.shiftKey) {
|
|
602
|
+
this.onEnterKey(event, listType);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
event.preventDefault();
|
|
606
|
+
},
|
|
607
|
+
onArrowUpKey(event, listType) {
|
|
608
|
+
const optionIndex = this.findPrevOptionIndex(this.focusedOptionIndex, listType);
|
|
609
|
+
|
|
610
|
+
this.changeFocusedOptionIndex(optionIndex, listType);
|
|
611
|
+
|
|
612
|
+
if (event.shiftKey) {
|
|
613
|
+
this.onEnterKey(event, listType);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
event.preventDefault();
|
|
617
|
+
},
|
|
618
|
+
onEnterKey(event, listType) {
|
|
619
|
+
const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
|
|
620
|
+
const focusedItem = DomHandler.findSingle(this.$refs[listType].$el, `li.p-picklist-item[id=${this.focusedOptionIndex}]`);
|
|
621
|
+
const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
|
|
622
|
+
const listId = listType === 'sourceList' ? 0 : 1;
|
|
623
|
+
|
|
624
|
+
this.onItemClick(event, this.modelValue[listId][matchedOptionIndex], matchedOptionIndex, listId);
|
|
625
|
+
|
|
626
|
+
event.preventDefault();
|
|
627
|
+
},
|
|
628
|
+
onSpaceKey(event, listType) {
|
|
629
|
+
event.preventDefault();
|
|
630
|
+
|
|
631
|
+
if (event.shiftKey) {
|
|
632
|
+
const listId = listType === 'sourceList' ? 0 : 1;
|
|
633
|
+
const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
|
|
634
|
+
const selectedItemIndex = ObjectUtils.findIndexInList(this.d_selection[listId][0], [...this.modelValue[listId]]);
|
|
635
|
+
const focusedItem = DomHandler.findSingle(this.$refs[listType].$el, `li.p-picklist-item[id=${this.focusedOptionIndex}]`);
|
|
636
|
+
const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
|
|
637
|
+
|
|
638
|
+
this.d_selection[listId] = [...this.modelValue[listId]].slice(Math.min(selectedItemIndex, matchedOptionIndex), Math.max(selectedItemIndex, matchedOptionIndex) + 1);
|
|
639
|
+
this.$emit('update:selection', this.d_selection);
|
|
640
|
+
} else {
|
|
641
|
+
this.onEnterKey(event, listType);
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
onHomeKey(event, listType) {
|
|
645
|
+
if (event.ctrlKey && event.shiftKey) {
|
|
646
|
+
const listId = listType === 'sourceList' ? 0 : 1;
|
|
647
|
+
const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
|
|
648
|
+
const focusedItem = DomHandler.findSingle(this.$refs[listType].$el, `li.p-picklist-item[id=${this.focusedOptionIndex}]`);
|
|
649
|
+
const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
|
|
650
|
+
|
|
651
|
+
this.d_selection[listId] = [...this.modelValue[listId]].slice(0, matchedOptionIndex + 1);
|
|
652
|
+
this.$emit('update:selection', this.d_selection);
|
|
653
|
+
} else {
|
|
654
|
+
this.changeFocusedOptionIndex(0, listType);
|
|
655
|
+
}
|
|
493
656
|
|
|
494
|
-
|
|
495
|
-
else return null;
|
|
657
|
+
event.preventDefault();
|
|
496
658
|
},
|
|
497
|
-
|
|
498
|
-
|
|
659
|
+
onEndKey(event, listType) {
|
|
660
|
+
const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
|
|
661
|
+
|
|
662
|
+
if (event.ctrlKey && event.shiftKey) {
|
|
663
|
+
const listId = listType === 'sourceList' ? 0 : 1;
|
|
664
|
+
const focusedItem = DomHandler.findSingle(this.$refs[listType].$el, `li.p-picklist-item[id=${this.focusedOptionIndex}]`);
|
|
665
|
+
const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
|
|
499
666
|
|
|
500
|
-
|
|
501
|
-
|
|
667
|
+
this.d_selection[listId] = [...this.modelValue[listId]].slice(matchedOptionIndex, items.length);
|
|
668
|
+
this.$emit('update:selection', this.d_selection);
|
|
669
|
+
} else {
|
|
670
|
+
this.changeFocusedOptionIndex(items.length - 1, listType);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
event.preventDefault();
|
|
674
|
+
},
|
|
675
|
+
findNextOptionIndex(index, listType) {
|
|
676
|
+
const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
|
|
677
|
+
|
|
678
|
+
const matchedOptionIndex = [...items].findIndex((link) => link.id === index);
|
|
679
|
+
|
|
680
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;
|
|
681
|
+
},
|
|
682
|
+
findPrevOptionIndex(index, listType) {
|
|
683
|
+
const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
|
|
684
|
+
const matchedOptionIndex = [...items].findIndex((link) => link.id === index);
|
|
685
|
+
|
|
686
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;
|
|
687
|
+
},
|
|
688
|
+
changeFocusedOptionIndex(index, listType) {
|
|
689
|
+
const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
|
|
690
|
+
|
|
691
|
+
let order = index >= items.length ? items.length - 1 : index < 0 ? 0 : index;
|
|
692
|
+
|
|
693
|
+
this.focusedOptionIndex = items[order].getAttribute('id');
|
|
694
|
+
this.scrollInView(items[order].getAttribute('id'), listType);
|
|
695
|
+
},
|
|
696
|
+
scrollInView(id, listType) {
|
|
697
|
+
const element = DomHandler.findSingle(this.$refs[listType].$el, `li[id="${id}"]`);
|
|
698
|
+
|
|
699
|
+
if (element) {
|
|
700
|
+
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
|
|
701
|
+
}
|
|
502
702
|
},
|
|
503
703
|
updateListScroll(listElement) {
|
|
504
704
|
const listItems = DomHandler.find(listElement, '.p-picklist-item.p-highlight');
|
|
@@ -579,9 +779,32 @@ export default {
|
|
|
579
779
|
document.head.removeChild(this.styleElement);
|
|
580
780
|
this.styleElement = null;
|
|
581
781
|
}
|
|
782
|
+
},
|
|
783
|
+
moveDisabled(index) {
|
|
784
|
+
if (!this.d_selection[index] || !this.d_selection[index].length) {
|
|
785
|
+
return true;
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
moveAllDisabled(list) {
|
|
789
|
+
return ObjectUtils.isEmpty(this[list]);
|
|
790
|
+
},
|
|
791
|
+
moveSourceDisabled() {
|
|
792
|
+
return ObjectUtils.isEmpty(this.targetList);
|
|
793
|
+
},
|
|
794
|
+
itemClass(item, id, listIndex) {
|
|
795
|
+
return ['p-picklist-item', { 'p-highlight': this.isSelected(item, listIndex), 'p-focus': id === this.focusedOptionId }];
|
|
582
796
|
}
|
|
583
797
|
},
|
|
584
798
|
computed: {
|
|
799
|
+
idSource() {
|
|
800
|
+
return this.$attrs.id || UniqueComponentId();
|
|
801
|
+
},
|
|
802
|
+
idTarget() {
|
|
803
|
+
return this.$attrs.id || UniqueComponentId();
|
|
804
|
+
},
|
|
805
|
+
focusedOptionId() {
|
|
806
|
+
return this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : null;
|
|
807
|
+
},
|
|
585
808
|
containerClass() {
|
|
586
809
|
return [
|
|
587
810
|
'p-picklist p-component',
|
|
@@ -598,6 +821,30 @@ export default {
|
|
|
598
821
|
},
|
|
599
822
|
attributeSelector() {
|
|
600
823
|
return UniqueComponentId();
|
|
824
|
+
},
|
|
825
|
+
moveUpAriaLabel() {
|
|
826
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveUp : undefined;
|
|
827
|
+
},
|
|
828
|
+
moveTopAriaLabel() {
|
|
829
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveTop : undefined;
|
|
830
|
+
},
|
|
831
|
+
moveDownAriaLabel() {
|
|
832
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveDown : undefined;
|
|
833
|
+
},
|
|
834
|
+
moveBottomAriaLabel() {
|
|
835
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveBottom : undefined;
|
|
836
|
+
},
|
|
837
|
+
moveToTargetAriaLabel() {
|
|
838
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveToTarget : undefined;
|
|
839
|
+
},
|
|
840
|
+
moveAllToTargetAriaLabel() {
|
|
841
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveAllToTarget : undefined;
|
|
842
|
+
},
|
|
843
|
+
moveToSourceAriaLabel() {
|
|
844
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveToSource : undefined;
|
|
845
|
+
},
|
|
846
|
+
moveAllToSourceAriaLabel() {
|
|
847
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveAllToSource : undefined;
|
|
601
848
|
}
|
|
602
849
|
},
|
|
603
850
|
components: {
|