primevue 3.12.0 → 3.12.3
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/accordion/Accordion.d.ts +8 -0
- package/accordion/Accordion.vue +15 -5
- package/accordion/accordion.cjs.js +15 -5
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +16 -6
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +16 -6
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/accordiontab.esm.js +1 -1
- package/accordiontab/accordiontab.esm.min.js +1 -1
- package/accordiontab/accordiontab.js +1 -1
- package/api/api.js +1 -1
- package/autocomplete/autocomplete.cjs.js +4 -4
- package/autocomplete/autocomplete.esm.js +1 -1
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +5 -5
- package/avatar/avatar.esm.js +1 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.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/badge/badge.esm.js +1 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.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/blockui/blockui.esm.js +1 -1
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +1 -1
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +1 -1
- package/button/button.cjs.js +1 -1
- package/button/button.esm.js +1 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +2 -2
- package/calendar/Calendar.d.ts +17 -2
- package/calendar/Calendar.vue +10 -3
- package/calendar/calendar.cjs.js +13 -6
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +11 -4
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +14 -7
- package/calendar/calendar.min.js +1 -1
- package/card/card.esm.js +1 -1
- package/card/card.esm.min.js +1 -1
- package/card/card.js +1 -1
- package/carousel/carousel.cjs.js +1 -1
- package/carousel/carousel.esm.js +1 -1
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +2 -2
- package/cascadeselect/cascadeselect.cjs.js +2 -2
- package/cascadeselect/cascadeselect.esm.js +1 -1
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +3 -3
- package/chart/chart.cjs.js +4 -2
- package/chart/chart.esm.js +1 -1
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +1 -1
- package/checkbox/checkbox.esm.js +1 -1
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.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/chips/Chips.vue +1 -1
- package/chips/chips.cjs.js +1 -1
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +2 -2
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +2 -2
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +1 -1
- package/colorpicker/colorpicker.esm.js +1 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +2 -2
- package/column/Column.d.ts +15 -3
- package/column/column.esm.js +1 -1
- package/column/column.esm.min.js +1 -1
- package/column/column.js +1 -1
- package/columngroup/columngroup.esm.js +1 -1
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +1 -1
- package/config/PrimeVue.d.ts +8 -0
- package/config/config.cjs.js +1 -1
- package/config/config.esm.js +2 -1
- package/config/config.esm.min.js +1 -1
- package/config/config.js +2 -2
- package/confirmationeventbus/confirmationeventbus.esm.js +1 -1
- package/confirmationeventbus/confirmationeventbus.esm.min.js +1 -1
- package/confirmationeventbus/confirmationeventbus.js +1 -1
- package/confirmationservice/ConfirmationService.d.ts +8 -1
- package/confirmationservice/confirmationservice.cjs.js +2 -2
- package/confirmationservice/confirmationservice.esm.js +1 -1
- package/confirmationservice/confirmationservice.esm.min.js +1 -1
- package/confirmationservice/confirmationservice.js +3 -3
- package/confirmdialog/confirmdialog.cjs.js +6 -6
- package/confirmdialog/confirmdialog.esm.js +1 -1
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +7 -7
- package/confirmpopup/ConfirmPopup.vue +3 -2
- package/confirmpopup/confirmpopup.cjs.js +9 -8
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +4 -3
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +10 -9
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +1 -1
- package/contextmenu/contextmenu.esm.js +1 -1
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +2 -2
- package/core/core.js +91 -60
- package/core/core.min.js +5 -5
- package/datatable/BodyCell.vue +17 -8
- package/datatable/DataTable.d.ts +1 -1
- package/datatable/DataTable.vue +17 -14
- package/datatable/RowCheckbox.vue +1 -1
- package/datatable/TableBody.vue +7 -1
- package/datatable/datatable.cjs.js +67 -46
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +56 -35
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +68 -47
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +5 -1
- package/dataview/DataView.vue +8 -1
- package/dataview/dataview.cjs.js +12 -3
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +12 -3
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +13 -4
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +1 -1
- package/deferredcontent/DeferredContent.vue +2 -2
- package/deferredcontent/deferredcontent.cjs.js +2 -2
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +3 -3
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +3 -3
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +1 -1
- package/dialog/dialog.esm.js +1 -1
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +2 -2
- package/divider/divider.esm.js +1 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +1 -1
- package/dock/dock.cjs.js +2 -2
- package/dock/dock.esm.js +1 -1
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +3 -3
- package/dropdown/Dropdown.vue +2 -1
- package/dropdown/dropdown.cjs.js +12 -13
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +11 -12
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +13 -14
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +1 -1
- package/editor/editor.esm.js +1 -1
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +2 -2
- package/fieldset/fieldset.cjs.js +1 -1
- package/fieldset/fieldset.esm.js +1 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +2 -2
- package/fileupload/FileUpload.vue +1 -0
- package/fileupload/fileupload.cjs.js +5 -4
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +2 -1
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +6 -5
- package/fileupload/fileupload.min.js +1 -1
- package/fullcalendar/fullcalendar.esm.js +1 -1
- package/fullcalendar/fullcalendar.esm.min.js +1 -1
- package/fullcalendar/fullcalendar.js +1 -1
- package/galleria/Galleria.vue +2 -8
- package/galleria/galleria.cjs.js +5 -11
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +3 -9
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +6 -12
- package/galleria/galleria.min.js +1 -1
- package/image/image.esm.js +1 -1
- package/image/image.esm.min.js +1 -1
- package/image/image.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/inplace/inplace.cjs.js +1 -1
- package/inplace/inplace.esm.js +1 -1
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +2 -2
- package/inputmask/inputmask.esm.js +1 -1
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +1 -1
- package/inputnumber/InputNumber.d.ts +22 -1
- package/inputnumber/InputNumber.vue +7 -3
- package/inputnumber/inputnumber.cjs.js +8 -4
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +7 -3
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +9 -5
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +1 -1
- package/inputswitch/inputswitch.esm.js +1 -1
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +1 -1
- package/inputtext/inputtext.esm.js +1 -1
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.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/listbox/listbox.cjs.js +2 -2
- package/listbox/listbox.esm.js +1 -1
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +3 -3
- package/megamenu/megamenu.cjs.js +1 -1
- package/megamenu/megamenu.esm.js +1 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +2 -2
- package/menu/Menu.vue +1 -1
- package/menu/menu.cjs.js +3 -3
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +2 -2
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +4 -4
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +1 -1
- package/menubar/menubar.esm.js +1 -1
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +2 -2
- package/message/message.cjs.js +1 -1
- package/message/message.esm.js +1 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.js +2 -2
- package/multiselect/MultiSelect.vue +8 -5
- package/multiselect/multiselect.cjs.js +11 -8
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +9 -6
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +12 -9
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.vue +4 -4
- package/orderlist/orderlist.cjs.js +6 -6
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +5 -5
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +7 -7
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +1 -1
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +1 -1
- package/overlayeventbus/overlayeventbus.esm.js +1 -1
- package/overlayeventbus/overlayeventbus.esm.min.js +1 -1
- package/overlayeventbus/overlayeventbus.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +5 -5
- package/overlaypanel/overlaypanel.esm.js +1 -1
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +6 -6
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +8 -8
- package/paginator/paginator.esm.js +1 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +9 -9
- package/panel/panel.cjs.js +1 -1
- package/panel/panel.esm.js +1 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +2 -2
- package/panelmenu/PanelMenu.vue +9 -4
- package/panelmenu/PanelMenuSub.vue +6 -1
- package/panelmenu/panelmenu.cjs.js +16 -4
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +17 -5
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +17 -5
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.vue +1 -1
- package/password/password.cjs.js +3 -3
- package/password/password.esm.js +2 -2
- package/password/password.esm.min.js +1 -1
- package/password/password.js +4 -4
- package/picklist/picklist.cjs.js +2 -2
- package/picklist/picklist.esm.js +1 -1
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +3 -3
- package/progressbar/progressbar.esm.js +1 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.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/radiobutton/radiobutton.esm.js +1 -1
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +1 -1
- package/rating/Rating.vue +1 -1
- package/rating/rating.cjs.js +1 -1
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +2 -2
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +2 -2
- package/rating/rating.min.js +1 -1
- package/resources/primevue.css +5 -3
- package/resources/primevue.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +263 -1
- package/resources/themes/arya-green/theme.css +263 -1
- package/resources/themes/arya-orange/theme.css +263 -1
- package/resources/themes/arya-purple/theme.css +263 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +263 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +263 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +262 -0
- package/resources/themes/bootstrap4-light-purple/theme.css +262 -0
- package/resources/themes/fluent-light/theme.css +262 -0
- package/resources/themes/lara-dark-blue/theme.css +270 -43
- package/resources/themes/lara-dark-indigo/theme.css +270 -43
- package/resources/themes/lara-dark-purple/theme.css +270 -43
- package/resources/themes/lara-dark-teal/theme.css +270 -43
- package/resources/themes/lara-light-blue/theme.css +362 -135
- package/resources/themes/lara-light-indigo/theme.css +269 -42
- package/resources/themes/lara-light-purple/theme.css +269 -42
- package/resources/themes/lara-light-teal/theme.css +269 -42
- package/resources/themes/luna-amber/theme.css +262 -0
- package/resources/themes/luna-blue/theme.css +262 -0
- package/resources/themes/luna-green/theme.css +262 -0
- package/resources/themes/luna-pink/theme.css +262 -0
- package/resources/themes/md-dark-deeppurple/theme.css +353 -8
- package/resources/themes/md-dark-indigo/theme.css +353 -8
- package/resources/themes/md-light-deeppurple/theme.css +350 -5
- package/resources/themes/md-light-indigo/theme.css +350 -5
- package/resources/themes/mdc-dark-deeppurple/theme.css +353 -8
- package/resources/themes/mdc-dark-indigo/theme.css +353 -8
- package/resources/themes/mdc-light-deeppurple/theme.css +350 -5
- package/resources/themes/mdc-light-indigo/theme.css +350 -5
- package/resources/themes/nova/theme.css +262 -0
- package/resources/themes/nova-accent/theme.css +262 -0
- package/resources/themes/nova-alt/theme.css +262 -0
- package/resources/themes/nova-vue/theme.css +262 -0
- package/resources/themes/rhea/theme.css +262 -0
- package/resources/themes/saga-blue/theme.css +262 -0
- package/resources/themes/saga-green/theme.css +262 -0
- package/resources/themes/saga-orange/theme.css +262 -0
- package/resources/themes/saga-purple/theme.css +262 -0
- package/resources/themes/tailwind-light/theme.css +262 -0
- package/resources/themes/vela-blue/theme.css +263 -1
- package/resources/themes/vela-green/theme.css +263 -1
- package/resources/themes/vela-orange/theme.css +263 -1
- package/resources/themes/vela-purple/theme.css +263 -1
- package/ripple/ripple.esm.js +1 -1
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +1 -1
- package/row/row.esm.js +1 -1
- package/row/row.esm.min.js +1 -1
- package/row/row.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/scrolltop/ScrollTop.vue +1 -1
- package/scrolltop/scrolltop.cjs.js +1 -1
- package/scrolltop/scrolltop.esm.js +2 -2
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +2 -2
- package/selectbutton/selectbutton.cjs.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/sidebar/sidebar.cjs.js +1 -1
- package/sidebar/sidebar.esm.js +1 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +2 -2
- package/skeleton/skeleton.esm.js +1 -1
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +1 -1
- package/slider/Slider.vue +10 -2
- package/slider/slider.cjs.js +9 -1
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +10 -2
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +10 -2
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +3 -3
- package/speeddial/speeddial.esm.js +1 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +4 -4
- package/splitbutton/SplitButton.vue +6 -2
- package/splitbutton/splitbutton.cjs.js +5 -5
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +4 -4
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +6 -6
- package/splitbutton/splitbutton.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/splitterpanel/splitterpanel.esm.js +1 -1
- package/splitterpanel/splitterpanel.esm.min.js +1 -1
- package/splitterpanel/splitterpanel.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/styleclass/styleclass.cjs.js +11 -2
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +12 -3
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +12 -3
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +1 -1
- package/tabmenu/tabmenu.esm.js +1 -1
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +2 -2
- package/tabpanel/tabpanel.esm.js +1 -1
- package/tabpanel/tabpanel.esm.min.js +1 -1
- package/tabpanel/tabpanel.js +1 -1
- package/tabview/tabview.cjs.js +1 -1
- package/tabview/tabview.esm.js +1 -1
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +2 -2
- package/tag/tag.esm.js +1 -1
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +1 -1
- package/terminal/terminal.cjs.js +3 -3
- package/terminal/terminal.esm.js +1 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +4 -4
- package/terminalservice/terminalservice.esm.js +1 -1
- package/terminalservice/terminalservice.esm.min.js +1 -1
- package/terminalservice/terminalservice.js +1 -1
- package/textarea/textarea.esm.js +1 -1
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +1 -1
- package/tieredmenu/TieredMenu.vue +1 -1
- package/tieredmenu/tieredmenu.cjs.js +3 -3
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +2 -2
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +4 -4
- package/tieredmenu/tieredmenu.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/toast/Toast.d.ts +1 -1
- package/toast/toast.cjs.js +7 -7
- package/toast/toast.esm.js +1 -1
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +8 -8
- package/toasteventbus/toasteventbus.esm.js +1 -1
- package/toasteventbus/toasteventbus.esm.min.js +1 -1
- package/toasteventbus/toasteventbus.js +1 -1
- package/toastservice/toastservice.cjs.js +3 -3
- package/toastservice/toastservice.esm.js +1 -1
- package/toastservice/toastservice.esm.min.js +1 -1
- package/toastservice/toastservice.js +4 -4
- package/togglebutton/togglebutton.cjs.js +1 -1
- package/togglebutton/togglebutton.esm.js +1 -1
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +2 -2
- package/toolbar/toolbar.esm.js +1 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +1 -1
- package/tooltip/tooltip.cjs.js +29 -1
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +30 -2
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +30 -2
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +1 -1
- package/tree/tree.esm.js +1 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +2 -2
- package/treeselect/treeselect.cjs.js +3 -3
- package/treeselect/treeselect.esm.js +1 -1
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +4 -4
- package/treetable/treetable.cjs.js +2 -2
- package/treetable/treetable.esm.js +1 -1
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +3 -3
- package/tristatecheckbox/tristatecheckbox.esm.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +1 -1
- package/useconfirm/useconfirm.js +1 -1
- package/usetoast/usetoast.js +1 -1
- package/utils/utils.js +1 -1
- package/vetur-attributes.json +16 -4
- package/vetur-tags.json +6 -3
- package/virtualscroller/virtualscroller.esm.js +1 -1
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +1 -1
- package/web-types.json +87 -6
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
|
@@ -231,8 +231,7 @@ this.primevue.multiselect = (function (utils, OverlayEventBus, api, Ripple, Virt
|
|
|
231
231
|
}
|
|
232
232
|
break;
|
|
233
233
|
|
|
234
|
-
//
|
|
235
|
-
case 13:
|
|
234
|
+
//escape
|
|
236
235
|
case 27:
|
|
237
236
|
if (this.overlayVisible) {
|
|
238
237
|
this.hide();
|
|
@@ -453,7 +452,11 @@ this.primevue.multiselect = (function (utils, OverlayEventBus, api, Ripple, Virt
|
|
|
453
452
|
else if (this.visibleOptions) {
|
|
454
453
|
if (this.optionGroupLabel) {
|
|
455
454
|
value = [];
|
|
456
|
-
this.visibleOptions.forEach(optionGroup =>
|
|
455
|
+
this.visibleOptions.forEach(optionGroup => {
|
|
456
|
+
for (let option of this.getOptionGroupChildren(optionGroup)) {
|
|
457
|
+
value.push(this.getOptionValue(option));
|
|
458
|
+
}
|
|
459
|
+
});
|
|
457
460
|
}
|
|
458
461
|
else {
|
|
459
462
|
value = this.visibleOptions.map(option => this.getOptionValue(option));
|
|
@@ -483,14 +486,14 @@ this.primevue.multiselect = (function (utils, OverlayEventBus, api, Ripple, Virt
|
|
|
483
486
|
this.$emit('change', {originalEvent: event, value: value});
|
|
484
487
|
},
|
|
485
488
|
onOverlayClick(event) {
|
|
486
|
-
OverlayEventBus__default[
|
|
489
|
+
OverlayEventBus__default['default'].emit('overlay-click', {
|
|
487
490
|
originalEvent: event,
|
|
488
491
|
target: this.$el
|
|
489
492
|
});
|
|
490
493
|
}
|
|
491
494
|
},
|
|
492
495
|
computed: {
|
|
493
|
-
|
|
496
|
+
visibleOptions() {
|
|
494
497
|
if (this.filterValue) {
|
|
495
498
|
if (this.optionGroupLabel) {
|
|
496
499
|
let filteredGroups = [];
|
|
@@ -503,7 +506,7 @@ this.primevue.multiselect = (function (utils, OverlayEventBus, api, Ripple, Virt
|
|
|
503
506
|
return filteredGroups
|
|
504
507
|
}
|
|
505
508
|
else {
|
|
506
|
-
return api.FilterService.filter(this.options, this.searchFields, this.filterValue,
|
|
509
|
+
return api.FilterService.filter(this.options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
|
|
507
510
|
}
|
|
508
511
|
}
|
|
509
512
|
else {
|
|
@@ -628,10 +631,10 @@ this.primevue.multiselect = (function (utils, OverlayEventBus, api, Ripple, Virt
|
|
|
628
631
|
}
|
|
629
632
|
},
|
|
630
633
|
directives: {
|
|
631
|
-
'ripple': Ripple__default[
|
|
634
|
+
'ripple': Ripple__default['default']
|
|
632
635
|
},
|
|
633
636
|
components: {
|
|
634
|
-
'VirtualScroller': VirtualScroller__default[
|
|
637
|
+
'VirtualScroller': VirtualScroller__default['default']
|
|
635
638
|
}
|
|
636
639
|
};
|
|
637
640
|
|
|
@@ -977,4 +980,4 @@ this.primevue.multiselect = (function (utils, OverlayEventBus, api, Ripple, Virt
|
|
|
977
980
|
|
|
978
981
|
return script;
|
|
979
982
|
|
|
980
|
-
}
|
|
983
|
+
}(primevue.utils, primevue.overlayeventbus, primevue.api, primevue.ripple, primevue.virtualscroller, Vue));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.multiselect=function(e,t,l,i,n,s){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=o(t),a=o(i),c=o(n),d={name:"MultiSelect",emits:["update:modelValue","before-show","before-hide","change","show","hide","filter","selectall-change"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},placeholder:String,disabled:Boolean,tabindex:String,inputId:String,dataKey:null,filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},ariaLabelledBy:null,appendTo:{type:String,default:"body"},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},display:{type:String,default:"comma"},panelClass:null,selectedItemsLabel:{type:String,default:"{0} items selected"},maxSelectedLabels:{type:Number,default:null},selectionLimit:{type:Number,default:null},showToggleAll:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:"pi pi-spinner pi-spin"},virtualScrollerOptions:{type:Object,default:null},selectAll:{type:Boolean,default:null}},data:()=>({focused:!1,headerCheckboxFocused:!1,filterValue:null,overlayVisible:!1}),outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(e.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel(t){return this.optionLabel?e.ObjectUtils.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.ObjectUtils.resolveFieldData(t,this.optionValue):t},getOptionRenderKey(t){return this.dataKey?e.ObjectUtils.resolveFieldData(t,this.dataKey):this.getOptionLabel(t)},getOptionGroupRenderKey(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupLabel)},getOptionGroupLabel(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupLabel)},getOptionGroupChildren(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupChildren)},isOptionDisabled(t){return!(!this.maxSelectionLimitReached||this.isSelected(t))||!!this.optionDisabled&&e.ObjectUtils.resolveFieldData(t,this.optionDisabled)},getSelectedOptionIndex(){if(null!=this.modelValue&&this.options){if(!this.optionGroupLabel)return this.findOptionIndexInList(this.modelValue,this.options);for(let e=0;e<this.options.length;e++){let t=this.findOptionIndexInList(this.modelValue,this.getOptionGroupChildren(this.options[e]));if(-1!==t)return{group:e,option:t}}}return-1},findOptionIndexInList(t,l){return t?l.findIndex((l=>t.some((t=>e.ObjectUtils.equals(t,this.getOptionValue(l),this.equalityKey))))):-1},isSelected(t){if(this.modelValue){let l=this.getOptionValue(t),i=this.equalityKey;return this.modelValue.some((t=>e.ObjectUtils.equals(t,l,i)))}return!1},show(){this.$emit("before-show"),this.overlayVisible=!0},hide(){this.$emit("before-hide"),this.overlayVisible=!1},onFocus(){this.focused=!0},onBlur(){this.focused=!1},onHeaderCheckboxFocus(){this.headerCheckboxFocused=!0},onHeaderCheckboxBlur(){this.headerCheckboxFocused=!1},onClick(t){this.disabled||this.loading||this.overlay&&this.overlay.contains(t.target)||e.DomHandler.hasClass(t.target,"p-multiselect-close")||(e.DomHandler.hasClass(t.target,"p-multiselect-close"),this.overlayVisible?this.hide():this.show(),this.$refs.focusInput.focus())},onCloseClick(){this.hide()},onKeyDown(e){switch(e.which){case 40:this.visibleOptions&&!this.overlayVisible&&e.altKey&&this.show();break;case 32:this.overlayVisible||(this.show(),e.preventDefault());break;case 13:case 27:this.overlayVisible&&(this.hide(),e.preventDefault());break;case 9:this.hide()}},onOptionSelect(t,l){if(this.disabled||this.isOptionDisabled(l))return;let i=null;i=this.isSelected(l)?this.modelValue.filter((t=>!e.ObjectUtils.equals(t,this.getOptionValue(l),this.equalityKey))):[...this.modelValue||[],this.getOptionValue(l)],this.$emit("update:modelValue",i),this.$emit("change",{originalEvent:t,value:i})},onOptionKeyDown(e,t){let l=e.target;switch(e.which){case 40:var i=this.findNextItem(l);i&&i.focus(),e.preventDefault();break;case 38:var n=this.findPrevItem(l);n&&n.focus(),e.preventDefault();break;case 13:this.onOptionSelect(e,t),e.preventDefault()}},findNextItem(t){let l=t.nextElementSibling;return l?e.DomHandler.hasClass(l,"p-disabled")||e.DomHandler.hasClass(l,"p-multiselect-item-group")?this.findNextItem(l):l:null},findPrevItem(t){let l=t.previousElementSibling;return l?e.DomHandler.hasClass(l,"p-disabled")||e.DomHandler.hasClass(l,"p-multiselect-item-group")?this.findPrevItem(l):l:null},onOverlayEnter(t){if(e.ZIndexUtils.set("overlay",t,this.$primevue.config.zIndex.overlay),this.alignOverlay(),!this.virtualScrollerDisabled){const e=this.getSelectedOptionIndex();-1!==e&&setTimeout((()=>{this.virtualScroller&&this.virtualScroller.scrollToIndex(e)}),0)}},onOverlayAfterEnter(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.filter&&this.$refs.filterInput.focus(),this.$emit("show")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave(t){e.ZIndexUtils.clear(t)},alignOverlay(){this.appendDisabled?e.DomHandler.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=e.DomHandler.getOuterWidth(this.$el)+"px",e.DomHandler.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.isOutsideClicked(e)&&this.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new e.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&this.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&!e.DomHandler.isAndroid()&&this.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked(e){return!(this.$el.isSameNode(e.target)||this.$el.contains(e.target)||this.overlay&&this.overlay.contains(e.target))},getLabelByValue(e){let t;if(this.options)if(this.optionGroupLabel){for(let l of this.options)if(t=this.findOptionByValue(e,this.getOptionGroupChildren(l)),t)break}else t=this.findOptionByValue(e,this.options);return t?this.getOptionLabel(t):null},findOptionByValue(t,l){for(let i of l){let l=this.getOptionValue(i);if(e.ObjectUtils.equals(l,t,this.equalityKey))return i}return null},getSelectedItemsLabel(){let e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue.length+""):this.selectedItemsLabel},onToggleAll(e){if(null!==this.selectAll)this.$emit("selectall-change",{originalEvent:e,checked:!this.allSelected});else{let t=null;this.allSelected?t=[]:this.visibleOptions&&(this.optionGroupLabel?(t=[],this.visibleOptions.forEach((e=>t=[...t,...this.getOptionGroupChildren(e)]))):t=this.visibleOptions.map((e=>this.getOptionValue(e)))),this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})}},onFilterChange(e){this.$emit("filter",{originalEvent:e,value:e.target.value}),this.overlayVisible&&this.alignOverlay()},overlayRef(e){this.overlay=e},virtualScrollerRef(e){this.virtualScroller=e},removeChip(t){let l=this.modelValue.filter((l=>!e.ObjectUtils.equals(l,t,this.equalityKey)));this.$emit("update:modelValue",l),this.$emit("change",{originalEvent:event,value:l})},onOverlayClick(e){r.default.emit("overlay-click",{originalEvent:e,target:this.$el})}},computed:{visibleOptions(){if(this.filterValue){if(this.optionGroupLabel){let e=[];for(let t of this.options){let i=l.FilterService.filter(this.getOptionGroupChildren(t),this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);i&&i.length&&e.push({...t,items:i})}return e}return l.FilterService.filter(this.options,this.searchFields,this.filterValue,"contains",this.filterLocale)}return this.options},containerClass(){return["p-multiselect p-component p-inputwrapper",{"p-multiselect-chip":"chip"===this.display,"p-disabled":this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue&&this.modelValue.length,"p-inputwrapper-focus":this.focused||this.overlayVisible}]},labelClass(){return["p-multiselect-label",{"p-placeholder":this.label===this.placeholder,"p-multiselect-label-empty":!(this.placeholder||this.modelValue&&0!==this.modelValue.length)}]},panelStyleClass(){return["p-multiselect-panel p-component",this.panelClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},label(){let e;if(this.modelValue&&this.modelValue.length){if(this.maxSelectedLabels&&!(this.modelValue.length<=this.maxSelectedLabels))return this.getSelectedItemsLabel();e="";for(let t=0;t<this.modelValue.length;t++)0!==t&&(e+=", "),e+=this.getLabelByValue(this.modelValue[t])}else e=this.placeholder;return e},allSelected(){if(null!==this.selectAll)return this.selectAll;if(this.filterValue&&this.filterValue.trim().length>0){if(0===this.visibleOptions.length)return!1;if(this.optionGroupLabel){for(let e of this.visibleOptions)for(let t of this.getOptionGroupChildren(e))if(!this.isSelected(t))return!1}else for(let e of this.visibleOptions)if(!this.isSelected(e))return!1;return!0}if(this.modelValue&&this.options){let e=0;return this.optionGroupLabel?this.options.forEach((t=>e+=this.getOptionGroupChildren(t).length)):e=this.options.length,e>0&&e===this.modelValue.length}return!1},equalityKey(){return this.optionValue?null:this.dataKey},searchFields(){return this.filterFields||[this.optionLabel]},emptyFilterMessageText(){return this.emptyFilterMessage||this.$primevue.config.locale.emptyFilterMessage},emptyMessageText(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage},appendDisabled(){return"self"===this.appendTo},appendTarget(){return this.appendDisabled?null:this.appendTo},virtualScrollerDisabled(){return!this.virtualScrollerOptions},maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue&&this.modelValue.length===this.selectionLimit},dropdownIconClass(){return["p-multiselect-trigger-icon",this.loading?this.loadingIcon:"pi pi-chevron-down"]}},directives:{ripple:a.default},components:{VirtualScroller:c.default}};const p={class:"p-hidden-accessible"},u={class:"p-multiselect-label-container"},h={class:"p-multiselect-token-label"},m={class:"p-multiselect-trigger"},b={key:0,class:"p-multiselect-header"},f={class:"p-hidden-accessible"},y={key:1,class:"p-multiselect-filter-container"},g=s.createVNode("span",{class:"p-multiselect-filter-icon pi pi-search"},null,-1),v=s.createVNode("span",{class:"p-multiselect-close-icon pi pi-times"},null,-1),k={class:"p-checkbox p-component"},x={class:"p-multiselect-item-group"},V={class:"p-checkbox p-component"},O={key:2,class:"p-multiselect-empty-message"},S={key:3,class:"p-multiselect-empty-message"};return function(e,t){void 0===t&&(t={});var l=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===l&&i.firstChild?i.insertBefore(n,i.firstChild):i.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-multiselect {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n cursor: pointer;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-multiselect-trigger {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-multiselect-label-container {\n overflow: hidden;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n cursor: pointer;\n}\n.p-multiselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n.p-multiselect-token {\n cursor: default;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-multiselect-token-icon {\n cursor: pointer;\n}\n.p-multiselect .p-multiselect-panel {\n min-width: 100%;\n}\n.p-multiselect-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-multiselect-items-wrapper {\n overflow: auto;\n}\n.p-multiselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-multiselect-item {\n cursor: pointer;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-multiselect-item-group {\n cursor: auto;\n}\n.p-multiselect-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-multiselect-filter-container {\n position: relative;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-multiselect-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-multiselect-filter-container .p-inputtext {\n width: 100%;\n}\n.p-multiselect-close {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n margin-left: auto;\n}\n.p-fluid .p-multiselect {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n"),d.render=function(e,t,l,i,n,o){const r=s.resolveComponent("VirtualScroller"),a=s.resolveDirective("ripple");return s.openBlock(),s.createBlock("div",{ref:"container",class:o.containerClass,onClick:t[11]||(t[11]=(...e)=>o.onClick&&o.onClick(...e))},[s.createVNode("div",p,[s.createVNode("input",{ref:"focusInput",type:"text",role:"listbox",id:l.inputId,readonly:"",disabled:l.disabled,onFocus:t[1]||(t[1]=(...e)=>o.onFocus&&o.onFocus(...e)),onBlur:t[2]||(t[2]=(...e)=>o.onBlur&&o.onBlur(...e)),onKeydown:t[3]||(t[3]=(...e)=>o.onKeyDown&&o.onKeyDown(...e)),tabindex:l.tabindex,"aria-haspopup":"true","aria-expanded":n.overlayVisible,"aria-labelledby":l.ariaLabelledBy},null,40,["id","disabled","tabindex","aria-expanded","aria-labelledby"])]),s.createVNode("div",u,[s.createVNode("div",{class:o.labelClass},[s.renderSlot(e.$slots,"value",{value:l.modelValue,placeholder:l.placeholder},(()=>["comma"===l.display?(s.openBlock(),s.createBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString(o.label||"empty"),1)],64)):"chip"===l.display?(s.openBlock(),s.createBlock(s.Fragment,{key:1},[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(l.modelValue,(t=>(s.openBlock(),s.createBlock("div",{class:"p-multiselect-token",key:o.getLabelByValue(t)},[s.renderSlot(e.$slots,"chip",{value:t},(()=>[s.createVNode("span",h,s.toDisplayString(o.getLabelByValue(t)),1)])),l.disabled?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock("span",{key:0,class:"p-multiselect-token-icon pi pi-times-circle",onClick:e=>o.removeChip(t)},null,8,["onClick"]))])))),128)),l.modelValue&&0!==l.modelValue.length?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString(l.placeholder||"empty"),1)],64))],64)):s.createCommentVNode("",!0)]))],2)]),s.createVNode("div",m,[s.renderSlot(e.$slots,"indicator",{},(()=>[s.createVNode("span",{class:o.dropdownIconClass},null,2)]))]),(s.openBlock(),s.createBlock(s.Teleport,{to:o.appendTarget,disabled:o.appendDisabled},[s.createVNode(s.Transition,{name:"p-connected-overlay",onEnter:o.onOverlayEnter,onAfterEnter:o.onOverlayAfterEnter,onLeave:o.onOverlayLeave,onAfterLeave:o.onOverlayAfterLeave},{default:s.withCtx((()=>[n.overlayVisible?(s.openBlock(),s.createBlock("div",{key:0,ref:o.overlayRef,class:o.panelStyleClass,onClick:t[10]||(t[10]=(...e)=>o.onOverlayClick&&o.onOverlayClick(...e))},[s.renderSlot(e.$slots,"header",{value:l.modelValue,options:o.visibleOptions}),l.showToggleAll&&null==l.selectionLimit||l.filter?(s.openBlock(),s.createBlock("div",b,[l.showToggleAll&&null==l.selectionLimit?(s.openBlock(),s.createBlock("div",{key:0,class:"p-checkbox p-component",onClick:t[6]||(t[6]=(...e)=>o.onToggleAll&&o.onToggleAll(...e)),role:"checkbox","aria-checked":o.allSelected},[s.createVNode("div",f,[s.createVNode("input",{type:"checkbox",readonly:"",onFocus:t[4]||(t[4]=(...e)=>o.onHeaderCheckboxFocus&&o.onHeaderCheckboxFocus(...e)),onBlur:t[5]||(t[5]=(...e)=>o.onHeaderCheckboxBlur&&o.onHeaderCheckboxBlur(...e))},null,32)]),s.createVNode("div",{class:["p-checkbox-box",{"p-highlight":o.allSelected,"p-focus":n.headerCheckboxFocused}],role:"checkbox","aria-checked":o.allSelected},[s.createVNode("span",{class:["p-checkbox-icon",{"pi pi-check":o.allSelected}]},null,2)],10,["aria-checked"])],8,["aria-checked"])):s.createCommentVNode("",!0),l.filter?(s.openBlock(),s.createBlock("div",y,[s.withDirectives(s.createVNode("input",{type:"text",ref:"filterInput","onUpdate:modelValue":t[7]||(t[7]=e=>n.filterValue=e),autoComplete:"on",class:"p-multiselect-filter p-inputtext p-component",placeholder:l.filterPlaceholder,onInput:t[8]||(t[8]=(...e)=>o.onFilterChange&&o.onFilterChange(...e))},null,40,["placeholder"]),[[s.vModelText,n.filterValue]]),g])):s.createCommentVNode("",!0),s.withDirectives(s.createVNode("button",{class:"p-multiselect-close p-link",onClick:t[9]||(t[9]=(...e)=>o.onCloseClick&&o.onCloseClick(...e)),type:"button"},[v],512),[[a]])])):s.createCommentVNode("",!0),s.createVNode("div",{class:"p-multiselect-items-wrapper",style:{"max-height":o.virtualScrollerDisabled?l.scrollHeight:""}},[s.createVNode(r,s.mergeProps({ref:o.virtualScrollerRef},l.virtualScrollerOptions,{items:o.visibleOptions,style:{height:l.scrollHeight},disabled:o.virtualScrollerDisabled}),s.createSlots({content:s.withCtx((({styleClass:t,contentRef:i,items:r,getItemOptions:c,contentStyle:d})=>[s.createVNode("ul",{ref:i,class:["p-multiselect-items p-component",t],style:d,role:"listbox","aria-multiselectable":"true"},[l.optionGroupLabel?(s.openBlock(!0),s.createBlock(s.Fragment,{key:1},s.renderList(r,((t,i)=>(s.openBlock(),s.createBlock(s.Fragment,{key:o.getOptionGroupRenderKey(t)},[s.createVNode("li",x,[s.renderSlot(e.$slots,"optiongroup",{option:t,index:o.getOptionIndex(i,c)},(()=>[s.createTextVNode(s.toDisplayString(o.getOptionGroupLabel(t)),1)]))]),(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(o.getOptionGroupChildren(t),((t,i)=>s.withDirectives((s.openBlock(),s.createBlock("li",{class:["p-multiselect-item",{"p-highlight":o.isSelected(t),"p-disabled":o.isOptionDisabled(t)}],role:"option","aria-selected":o.isSelected(t),key:o.getOptionRenderKey(t),onClick:e=>o.onOptionSelect(e,t),onKeydown:e=>o.onOptionKeyDown(e,t),tabindex:l.tabindex||"0","aria-label":o.getOptionLabel(t)},[s.createVNode("div",V,[s.createVNode("div",{class:["p-checkbox-box",{"p-highlight":o.isSelected(t)}]},[s.createVNode("span",{class:["p-checkbox-icon",{"pi pi-check":o.isSelected(t)}]},null,2)],2)]),s.renderSlot(e.$slots,"option",{option:t,index:o.getOptionIndex(i,c)},(()=>[s.createVNode("span",null,s.toDisplayString(o.getOptionLabel(t)),1)]))],42,["aria-selected","onClick","onKeydown","tabindex","aria-label"])),[[a]]))),128))],64)))),128)):(s.openBlock(!0),s.createBlock(s.Fragment,{key:0},s.renderList(r,((t,i)=>s.withDirectives((s.openBlock(),s.createBlock("li",{class:["p-multiselect-item",{"p-highlight":o.isSelected(t),"p-disabled":o.isOptionDisabled(t)}],role:"option","aria-selected":o.isSelected(t),key:o.getOptionRenderKey(t),onClick:e=>o.onOptionSelect(e,t),onKeydown:e=>o.onOptionKeyDown(e,t),tabindex:l.tabindex||"0","aria-label":o.getOptionLabel(t)},[s.createVNode("div",k,[s.createVNode("div",{class:["p-checkbox-box",{"p-highlight":o.isSelected(t)}]},[s.createVNode("span",{class:["p-checkbox-icon",{"pi pi-check":o.isSelected(t)}]},null,2)],2)]),s.renderSlot(e.$slots,"option",{option:t,index:o.getOptionIndex(i,c)},(()=>[s.createVNode("span",null,s.toDisplayString(o.getOptionLabel(t)),1)]))],42,["aria-selected","onClick","onKeydown","tabindex","aria-label"])),[[a]]))),128)),n.filterValue&&(!r||r&&0===r.length)?(s.openBlock(),s.createBlock("li",O,[s.renderSlot(e.$slots,"emptyfilter",{},(()=>[s.createTextVNode(s.toDisplayString(o.emptyFilterMessageText),1)]))])):!l.options||l.options&&0===l.options.length?(s.openBlock(),s.createBlock("li",S,[s.renderSlot(e.$slots,"empty",{},(()=>[s.createTextVNode(s.toDisplayString(o.emptyMessageText),1)]))])):s.createCommentVNode("",!0)],6)])),_:2},[e.$slots.loader?{name:"loader",fn:s.withCtx((({options:t})=>[s.renderSlot(e.$slots,"loader",{options:t})]))}:void 0]),1040,["items","style","disabled"])],4),s.renderSlot(e.$slots,"footer",{value:l.modelValue,options:o.visibleOptions})],2)):s.createCommentVNode("",!0)])),_:3},8,["onEnter","onAfterEnter","onLeave","onAfterLeave"])],8,["to","disabled"]))],2)},d}(primevue.utils,primevue.overlayeventbus,primevue.api,primevue.ripple,primevue.virtualscroller,Vue);
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.multiselect=function(e,t,l,i,n,s){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=o(t),a=o(i),c=o(n),d={name:"MultiSelect",emits:["update:modelValue","before-show","before-hide","change","show","hide","filter","selectall-change"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},placeholder:String,disabled:Boolean,tabindex:String,inputId:String,dataKey:null,filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},ariaLabelledBy:null,appendTo:{type:String,default:"body"},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},display:{type:String,default:"comma"},panelClass:null,selectedItemsLabel:{type:String,default:"{0} items selected"},maxSelectedLabels:{type:Number,default:null},selectionLimit:{type:Number,default:null},showToggleAll:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:"pi pi-spinner pi-spin"},virtualScrollerOptions:{type:Object,default:null},selectAll:{type:Boolean,default:null}},data:()=>({focused:!1,headerCheckboxFocused:!1,filterValue:null,overlayVisible:!1}),outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(e.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel(t){return this.optionLabel?e.ObjectUtils.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.ObjectUtils.resolveFieldData(t,this.optionValue):t},getOptionRenderKey(t){return this.dataKey?e.ObjectUtils.resolveFieldData(t,this.dataKey):this.getOptionLabel(t)},getOptionGroupRenderKey(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupLabel)},getOptionGroupLabel(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupLabel)},getOptionGroupChildren(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupChildren)},isOptionDisabled(t){return!(!this.maxSelectionLimitReached||this.isSelected(t))||!!this.optionDisabled&&e.ObjectUtils.resolveFieldData(t,this.optionDisabled)},getSelectedOptionIndex(){if(null!=this.modelValue&&this.options){if(!this.optionGroupLabel)return this.findOptionIndexInList(this.modelValue,this.options);for(let e=0;e<this.options.length;e++){let t=this.findOptionIndexInList(this.modelValue,this.getOptionGroupChildren(this.options[e]));if(-1!==t)return{group:e,option:t}}}return-1},findOptionIndexInList(t,l){return t?l.findIndex((l=>t.some((t=>e.ObjectUtils.equals(t,this.getOptionValue(l),this.equalityKey))))):-1},isSelected(t){if(this.modelValue){let l=this.getOptionValue(t),i=this.equalityKey;return this.modelValue.some((t=>e.ObjectUtils.equals(t,l,i)))}return!1},show(){this.$emit("before-show"),this.overlayVisible=!0},hide(){this.$emit("before-hide"),this.overlayVisible=!1},onFocus(){this.focused=!0},onBlur(){this.focused=!1},onHeaderCheckboxFocus(){this.headerCheckboxFocused=!0},onHeaderCheckboxBlur(){this.headerCheckboxFocused=!1},onClick(t){this.disabled||this.loading||this.overlay&&this.overlay.contains(t.target)||e.DomHandler.hasClass(t.target,"p-multiselect-close")||(e.DomHandler.hasClass(t.target,"p-multiselect-close"),this.overlayVisible?this.hide():this.show(),this.$refs.focusInput.focus())},onCloseClick(){this.hide()},onKeyDown(e){switch(e.which){case 40:this.visibleOptions&&!this.overlayVisible&&e.altKey&&this.show();break;case 32:this.overlayVisible||(this.show(),e.preventDefault());break;case 27:this.overlayVisible&&(this.hide(),e.preventDefault());break;case 9:this.hide()}},onOptionSelect(t,l){if(this.disabled||this.isOptionDisabled(l))return;let i=null;i=this.isSelected(l)?this.modelValue.filter((t=>!e.ObjectUtils.equals(t,this.getOptionValue(l),this.equalityKey))):[...this.modelValue||[],this.getOptionValue(l)],this.$emit("update:modelValue",i),this.$emit("change",{originalEvent:t,value:i})},onOptionKeyDown(e,t){let l=e.target;switch(e.which){case 40:var i=this.findNextItem(l);i&&i.focus(),e.preventDefault();break;case 38:var n=this.findPrevItem(l);n&&n.focus(),e.preventDefault();break;case 13:this.onOptionSelect(e,t),e.preventDefault()}},findNextItem(t){let l=t.nextElementSibling;return l?e.DomHandler.hasClass(l,"p-disabled")||e.DomHandler.hasClass(l,"p-multiselect-item-group")?this.findNextItem(l):l:null},findPrevItem(t){let l=t.previousElementSibling;return l?e.DomHandler.hasClass(l,"p-disabled")||e.DomHandler.hasClass(l,"p-multiselect-item-group")?this.findPrevItem(l):l:null},onOverlayEnter(t){if(e.ZIndexUtils.set("overlay",t,this.$primevue.config.zIndex.overlay),this.alignOverlay(),!this.virtualScrollerDisabled){const e=this.getSelectedOptionIndex();-1!==e&&setTimeout((()=>{this.virtualScroller&&this.virtualScroller.scrollToIndex(e)}),0)}},onOverlayAfterEnter(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.filter&&this.$refs.filterInput.focus(),this.$emit("show")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave(t){e.ZIndexUtils.clear(t)},alignOverlay(){this.appendDisabled?e.DomHandler.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=e.DomHandler.getOuterWidth(this.$el)+"px",e.DomHandler.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.isOutsideClicked(e)&&this.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new e.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&this.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&!e.DomHandler.isAndroid()&&this.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked(e){return!(this.$el.isSameNode(e.target)||this.$el.contains(e.target)||this.overlay&&this.overlay.contains(e.target))},getLabelByValue(e){let t;if(this.options)if(this.optionGroupLabel){for(let l of this.options)if(t=this.findOptionByValue(e,this.getOptionGroupChildren(l)),t)break}else t=this.findOptionByValue(e,this.options);return t?this.getOptionLabel(t):null},findOptionByValue(t,l){for(let i of l){let l=this.getOptionValue(i);if(e.ObjectUtils.equals(l,t,this.equalityKey))return i}return null},getSelectedItemsLabel(){let e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue.length+""):this.selectedItemsLabel},onToggleAll(e){if(null!==this.selectAll)this.$emit("selectall-change",{originalEvent:e,checked:!this.allSelected});else{let t=null;this.allSelected?t=[]:this.visibleOptions&&(this.optionGroupLabel?(t=[],this.visibleOptions.forEach((e=>{for(let l of this.getOptionGroupChildren(e))t.push(this.getOptionValue(l))}))):t=this.visibleOptions.map((e=>this.getOptionValue(e)))),this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})}},onFilterChange(e){this.$emit("filter",{originalEvent:e,value:e.target.value}),this.overlayVisible&&this.alignOverlay()},overlayRef(e){this.overlay=e},virtualScrollerRef(e){this.virtualScroller=e},removeChip(t){let l=this.modelValue.filter((l=>!e.ObjectUtils.equals(l,t,this.equalityKey)));this.$emit("update:modelValue",l),this.$emit("change",{originalEvent:event,value:l})},onOverlayClick(e){r.default.emit("overlay-click",{originalEvent:e,target:this.$el})}},computed:{visibleOptions(){if(this.filterValue){if(this.optionGroupLabel){let e=[];for(let t of this.options){let i=l.FilterService.filter(this.getOptionGroupChildren(t),this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);i&&i.length&&e.push({...t,items:i})}return e}return l.FilterService.filter(this.options,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale)}return this.options},containerClass(){return["p-multiselect p-component p-inputwrapper",{"p-multiselect-chip":"chip"===this.display,"p-disabled":this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue&&this.modelValue.length,"p-inputwrapper-focus":this.focused||this.overlayVisible}]},labelClass(){return["p-multiselect-label",{"p-placeholder":this.label===this.placeholder,"p-multiselect-label-empty":!(this.placeholder||this.modelValue&&0!==this.modelValue.length)}]},panelStyleClass(){return["p-multiselect-panel p-component",this.panelClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},label(){let e;if(this.modelValue&&this.modelValue.length){if(this.maxSelectedLabels&&!(this.modelValue.length<=this.maxSelectedLabels))return this.getSelectedItemsLabel();e="";for(let t=0;t<this.modelValue.length;t++)0!==t&&(e+=", "),e+=this.getLabelByValue(this.modelValue[t])}else e=this.placeholder;return e},allSelected(){if(null!==this.selectAll)return this.selectAll;if(this.filterValue&&this.filterValue.trim().length>0){if(0===this.visibleOptions.length)return!1;if(this.optionGroupLabel){for(let e of this.visibleOptions)for(let t of this.getOptionGroupChildren(e))if(!this.isSelected(t))return!1}else for(let e of this.visibleOptions)if(!this.isSelected(e))return!1;return!0}if(this.modelValue&&this.options){let e=0;return this.optionGroupLabel?this.options.forEach((t=>e+=this.getOptionGroupChildren(t).length)):e=this.options.length,e>0&&e===this.modelValue.length}return!1},equalityKey(){return this.optionValue?null:this.dataKey},searchFields(){return this.filterFields||[this.optionLabel]},emptyFilterMessageText(){return this.emptyFilterMessage||this.$primevue.config.locale.emptyFilterMessage},emptyMessageText(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage},appendDisabled(){return"self"===this.appendTo},appendTarget(){return this.appendDisabled?null:this.appendTo},virtualScrollerDisabled(){return!this.virtualScrollerOptions},maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue&&this.modelValue.length===this.selectionLimit},dropdownIconClass(){return["p-multiselect-trigger-icon",this.loading?this.loadingIcon:"pi pi-chevron-down"]}},directives:{ripple:a.default},components:{VirtualScroller:c.default}};const p={class:"p-hidden-accessible"},u={class:"p-multiselect-label-container"},h={class:"p-multiselect-token-label"},m={class:"p-multiselect-trigger"},b={key:0,class:"p-multiselect-header"},f={class:"p-hidden-accessible"},y={key:1,class:"p-multiselect-filter-container"},g=s.createVNode("span",{class:"p-multiselect-filter-icon pi pi-search"},null,-1),v=s.createVNode("span",{class:"p-multiselect-close-icon pi pi-times"},null,-1),k={class:"p-checkbox p-component"},x={class:"p-multiselect-item-group"},V={class:"p-checkbox p-component"},O={key:2,class:"p-multiselect-empty-message"},S={key:3,class:"p-multiselect-empty-message"};return function(e,t){void 0===t&&(t={});var l=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===l&&i.firstChild?i.insertBefore(n,i.firstChild):i.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-multiselect {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n cursor: pointer;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-multiselect-trigger {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-multiselect-label-container {\n overflow: hidden;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n cursor: pointer;\n}\n.p-multiselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n.p-multiselect-token {\n cursor: default;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-multiselect-token-icon {\n cursor: pointer;\n}\n.p-multiselect .p-multiselect-panel {\n min-width: 100%;\n}\n.p-multiselect-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-multiselect-items-wrapper {\n overflow: auto;\n}\n.p-multiselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-multiselect-item {\n cursor: pointer;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-multiselect-item-group {\n cursor: auto;\n}\n.p-multiselect-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-multiselect-filter-container {\n position: relative;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-multiselect-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-multiselect-filter-container .p-inputtext {\n width: 100%;\n}\n.p-multiselect-close {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n margin-left: auto;\n}\n.p-fluid .p-multiselect {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n"),d.render=function(e,t,l,i,n,o){const r=s.resolveComponent("VirtualScroller"),a=s.resolveDirective("ripple");return s.openBlock(),s.createBlock("div",{ref:"container",class:o.containerClass,onClick:t[11]||(t[11]=(...e)=>o.onClick&&o.onClick(...e))},[s.createVNode("div",p,[s.createVNode("input",{ref:"focusInput",type:"text",role:"listbox",id:l.inputId,readonly:"",disabled:l.disabled,onFocus:t[1]||(t[1]=(...e)=>o.onFocus&&o.onFocus(...e)),onBlur:t[2]||(t[2]=(...e)=>o.onBlur&&o.onBlur(...e)),onKeydown:t[3]||(t[3]=(...e)=>o.onKeyDown&&o.onKeyDown(...e)),tabindex:l.tabindex,"aria-haspopup":"true","aria-expanded":n.overlayVisible,"aria-labelledby":l.ariaLabelledBy},null,40,["id","disabled","tabindex","aria-expanded","aria-labelledby"])]),s.createVNode("div",u,[s.createVNode("div",{class:o.labelClass},[s.renderSlot(e.$slots,"value",{value:l.modelValue,placeholder:l.placeholder},(()=>["comma"===l.display?(s.openBlock(),s.createBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString(o.label||"empty"),1)],64)):"chip"===l.display?(s.openBlock(),s.createBlock(s.Fragment,{key:1},[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(l.modelValue,(t=>(s.openBlock(),s.createBlock("div",{class:"p-multiselect-token",key:o.getLabelByValue(t)},[s.renderSlot(e.$slots,"chip",{value:t},(()=>[s.createVNode("span",h,s.toDisplayString(o.getLabelByValue(t)),1)])),l.disabled?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock("span",{key:0,class:"p-multiselect-token-icon pi pi-times-circle",onClick:e=>o.removeChip(t)},null,8,["onClick"]))])))),128)),l.modelValue&&0!==l.modelValue.length?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString(l.placeholder||"empty"),1)],64))],64)):s.createCommentVNode("",!0)]))],2)]),s.createVNode("div",m,[s.renderSlot(e.$slots,"indicator",{},(()=>[s.createVNode("span",{class:o.dropdownIconClass},null,2)]))]),(s.openBlock(),s.createBlock(s.Teleport,{to:o.appendTarget,disabled:o.appendDisabled},[s.createVNode(s.Transition,{name:"p-connected-overlay",onEnter:o.onOverlayEnter,onAfterEnter:o.onOverlayAfterEnter,onLeave:o.onOverlayLeave,onAfterLeave:o.onOverlayAfterLeave},{default:s.withCtx((()=>[n.overlayVisible?(s.openBlock(),s.createBlock("div",{key:0,ref:o.overlayRef,class:o.panelStyleClass,onClick:t[10]||(t[10]=(...e)=>o.onOverlayClick&&o.onOverlayClick(...e))},[s.renderSlot(e.$slots,"header",{value:l.modelValue,options:o.visibleOptions}),l.showToggleAll&&null==l.selectionLimit||l.filter?(s.openBlock(),s.createBlock("div",b,[l.showToggleAll&&null==l.selectionLimit?(s.openBlock(),s.createBlock("div",{key:0,class:"p-checkbox p-component",onClick:t[6]||(t[6]=(...e)=>o.onToggleAll&&o.onToggleAll(...e)),role:"checkbox","aria-checked":o.allSelected},[s.createVNode("div",f,[s.createVNode("input",{type:"checkbox",readonly:"",onFocus:t[4]||(t[4]=(...e)=>o.onHeaderCheckboxFocus&&o.onHeaderCheckboxFocus(...e)),onBlur:t[5]||(t[5]=(...e)=>o.onHeaderCheckboxBlur&&o.onHeaderCheckboxBlur(...e))},null,32)]),s.createVNode("div",{class:["p-checkbox-box",{"p-highlight":o.allSelected,"p-focus":n.headerCheckboxFocused}],role:"checkbox","aria-checked":o.allSelected},[s.createVNode("span",{class:["p-checkbox-icon",{"pi pi-check":o.allSelected}]},null,2)],10,["aria-checked"])],8,["aria-checked"])):s.createCommentVNode("",!0),l.filter?(s.openBlock(),s.createBlock("div",y,[s.withDirectives(s.createVNode("input",{type:"text",ref:"filterInput","onUpdate:modelValue":t[7]||(t[7]=e=>n.filterValue=e),autoComplete:"on",class:"p-multiselect-filter p-inputtext p-component",placeholder:l.filterPlaceholder,onInput:t[8]||(t[8]=(...e)=>o.onFilterChange&&o.onFilterChange(...e))},null,40,["placeholder"]),[[s.vModelText,n.filterValue]]),g])):s.createCommentVNode("",!0),s.withDirectives(s.createVNode("button",{class:"p-multiselect-close p-link",onClick:t[9]||(t[9]=(...e)=>o.onCloseClick&&o.onCloseClick(...e)),type:"button"},[v],512),[[a]])])):s.createCommentVNode("",!0),s.createVNode("div",{class:"p-multiselect-items-wrapper",style:{"max-height":o.virtualScrollerDisabled?l.scrollHeight:""}},[s.createVNode(r,s.mergeProps({ref:o.virtualScrollerRef},l.virtualScrollerOptions,{items:o.visibleOptions,style:{height:l.scrollHeight},disabled:o.virtualScrollerDisabled}),s.createSlots({content:s.withCtx((({styleClass:t,contentRef:i,items:r,getItemOptions:c,contentStyle:d})=>[s.createVNode("ul",{ref:i,class:["p-multiselect-items p-component",t],style:d,role:"listbox","aria-multiselectable":"true"},[l.optionGroupLabel?(s.openBlock(!0),s.createBlock(s.Fragment,{key:1},s.renderList(r,((t,i)=>(s.openBlock(),s.createBlock(s.Fragment,{key:o.getOptionGroupRenderKey(t)},[s.createVNode("li",x,[s.renderSlot(e.$slots,"optiongroup",{option:t,index:o.getOptionIndex(i,c)},(()=>[s.createTextVNode(s.toDisplayString(o.getOptionGroupLabel(t)),1)]))]),(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(o.getOptionGroupChildren(t),((t,i)=>s.withDirectives((s.openBlock(),s.createBlock("li",{class:["p-multiselect-item",{"p-highlight":o.isSelected(t),"p-disabled":o.isOptionDisabled(t)}],role:"option","aria-selected":o.isSelected(t),key:o.getOptionRenderKey(t),onClick:e=>o.onOptionSelect(e,t),onKeydown:e=>o.onOptionKeyDown(e,t),tabindex:l.tabindex||"0","aria-label":o.getOptionLabel(t)},[s.createVNode("div",V,[s.createVNode("div",{class:["p-checkbox-box",{"p-highlight":o.isSelected(t)}]},[s.createVNode("span",{class:["p-checkbox-icon",{"pi pi-check":o.isSelected(t)}]},null,2)],2)]),s.renderSlot(e.$slots,"option",{option:t,index:o.getOptionIndex(i,c)},(()=>[s.createVNode("span",null,s.toDisplayString(o.getOptionLabel(t)),1)]))],42,["aria-selected","onClick","onKeydown","tabindex","aria-label"])),[[a]]))),128))],64)))),128)):(s.openBlock(!0),s.createBlock(s.Fragment,{key:0},s.renderList(r,((t,i)=>s.withDirectives((s.openBlock(),s.createBlock("li",{class:["p-multiselect-item",{"p-highlight":o.isSelected(t),"p-disabled":o.isOptionDisabled(t)}],role:"option","aria-selected":o.isSelected(t),key:o.getOptionRenderKey(t),onClick:e=>o.onOptionSelect(e,t),onKeydown:e=>o.onOptionKeyDown(e,t),tabindex:l.tabindex||"0","aria-label":o.getOptionLabel(t)},[s.createVNode("div",k,[s.createVNode("div",{class:["p-checkbox-box",{"p-highlight":o.isSelected(t)}]},[s.createVNode("span",{class:["p-checkbox-icon",{"pi pi-check":o.isSelected(t)}]},null,2)],2)]),s.renderSlot(e.$slots,"option",{option:t,index:o.getOptionIndex(i,c)},(()=>[s.createVNode("span",null,s.toDisplayString(o.getOptionLabel(t)),1)]))],42,["aria-selected","onClick","onKeydown","tabindex","aria-label"])),[[a]]))),128)),n.filterValue&&(!r||r&&0===r.length)?(s.openBlock(),s.createBlock("li",O,[s.renderSlot(e.$slots,"emptyfilter",{},(()=>[s.createTextVNode(s.toDisplayString(o.emptyFilterMessageText),1)]))])):!l.options||l.options&&0===l.options.length?(s.openBlock(),s.createBlock("li",S,[s.renderSlot(e.$slots,"empty",{},(()=>[s.createTextVNode(s.toDisplayString(o.emptyMessageText),1)]))])):s.createCommentVNode("",!0)],6)])),_:2},[e.$slots.loader?{name:"loader",fn:s.withCtx((({options:t})=>[s.renderSlot(e.$slots,"loader",{options:t})]))}:void 0]),1040,["items","style","disabled"])],4),s.renderSlot(e.$slots,"footer",{value:l.modelValue,options:o.visibleOptions})],2)):s.createCommentVNode("",!0)])),_:3},8,["onEnter","onAfterEnter","onLeave","onAfterLeave"])],8,["to","disabled"]))],2)},d}(primevue.utils,primevue.overlayeventbus,primevue.api,primevue.ripple,primevue.virtualscroller,Vue);
|
package/orderlist/OrderList.vue
CHANGED
|
@@ -96,7 +96,7 @@ export default {
|
|
|
96
96
|
isSelected(item) {
|
|
97
97
|
return ObjectUtils.findIndexInList(item, this.d_selection) != -1;
|
|
98
98
|
},
|
|
99
|
-
moveUp() {
|
|
99
|
+
moveUp(event) {
|
|
100
100
|
if (this.d_selection) {
|
|
101
101
|
let value = [...this.modelValue];
|
|
102
102
|
|
|
@@ -124,7 +124,7 @@ export default {
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
|
-
moveTop() {
|
|
127
|
+
moveTop(event) {
|
|
128
128
|
if(this.d_selection) {
|
|
129
129
|
let value = [...this.modelValue];
|
|
130
130
|
|
|
@@ -150,7 +150,7 @@ export default {
|
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
|
-
moveDown() {
|
|
153
|
+
moveDown(event) {
|
|
154
154
|
if(this.d_selection) {
|
|
155
155
|
let value = [...this.modelValue];
|
|
156
156
|
|
|
@@ -178,7 +178,7 @@ export default {
|
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
|
-
moveBottom() {
|
|
181
|
+
moveBottom(event) {
|
|
182
182
|
if (this.d_selection) {
|
|
183
183
|
let value = [...this.modelValue];
|
|
184
184
|
|
|
@@ -76,7 +76,7 @@ var script = {
|
|
|
76
76
|
isSelected(item) {
|
|
77
77
|
return utils.ObjectUtils.findIndexInList(item, this.d_selection) != -1;
|
|
78
78
|
},
|
|
79
|
-
moveUp() {
|
|
79
|
+
moveUp(event) {
|
|
80
80
|
if (this.d_selection) {
|
|
81
81
|
let value = [...this.modelValue];
|
|
82
82
|
|
|
@@ -104,7 +104,7 @@ var script = {
|
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
|
-
moveTop() {
|
|
107
|
+
moveTop(event) {
|
|
108
108
|
if(this.d_selection) {
|
|
109
109
|
let value = [...this.modelValue];
|
|
110
110
|
|
|
@@ -130,7 +130,7 @@ var script = {
|
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
|
-
moveDown() {
|
|
133
|
+
moveDown(event) {
|
|
134
134
|
if(this.d_selection) {
|
|
135
135
|
let value = [...this.modelValue];
|
|
136
136
|
|
|
@@ -158,7 +158,7 @@ var script = {
|
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
|
-
moveBottom() {
|
|
161
|
+
moveBottom(event) {
|
|
162
162
|
if (this.d_selection) {
|
|
163
163
|
let value = [...this.modelValue];
|
|
164
164
|
|
|
@@ -340,10 +340,10 @@ var script = {
|
|
|
340
340
|
}
|
|
341
341
|
},
|
|
342
342
|
components: {
|
|
343
|
-
'OLButton': Button__default[
|
|
343
|
+
'OLButton': Button__default['default']
|
|
344
344
|
},
|
|
345
345
|
directives: {
|
|
346
|
-
'ripple': Ripple__default[
|
|
346
|
+
'ripple': Ripple__default['default']
|
|
347
347
|
}
|
|
348
348
|
};
|
|
349
349
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/button"),t=require("primevue/utils"),i=require("primevue/ripple"),l=require("vue");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),r=n(i),s={name:"OrderList",emits:["update:modelValue","reorder","update:selection","selection-change"],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:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1}},itemTouched:!1,reorderDirection:null,styleElement:null,data(){return{d_selection:this.selection}},beforeUnmount(){this.destroyStyle()},updated(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted(){this.responsive&&this.createStyle()},methods:{getItemKey(e,i){return this.dataKey?t.ObjectUtils.resolveFieldData(e,this.dataKey):i},isSelected(e){return-1!=t.ObjectUtils.findIndexInList(e,this.d_selection)},moveUp(){if(this.d_selection){let
|
|
1
|
+
"use strict";var e=require("primevue/button"),t=require("primevue/utils"),i=require("primevue/ripple"),l=require("vue");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),r=n(i),s={name:"OrderList",emits:["update:modelValue","reorder","update:selection","selection-change"],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:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1}},itemTouched:!1,reorderDirection:null,styleElement:null,data(){return{d_selection:this.selection}},beforeUnmount(){this.destroyStyle()},updated(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted(){this.responsive&&this.createStyle()},methods:{getItemKey(e,i){return this.dataKey?t.ObjectUtils.resolveFieldData(e,this.dataKey):i},isSelected(e){return-1!=t.ObjectUtils.findIndexInList(e,this.d_selection)},moveUp(e){if(this.d_selection){let i=[...this.modelValue];for(let e=0;e<this.d_selection.length;e++){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(0===n)break;{let e=i[n],t=i[n-1];i[n-1]=e,i[n]=t}}this.reorderDirection="up",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveTop(e){if(this.d_selection){let i=[...this.modelValue];for(let e=0;e<this.d_selection.length;e++){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(0===n)break;{let e=i.splice(n,1)[0];i.unshift(e)}}this.reorderDirection="top",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveDown(e){if(this.d_selection){let i=[...this.modelValue];for(let e=this.d_selection.length-1;e>=0;e--){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(n===i.length-1)break;{let e=i[n],t=i[n+1];i[n+1]=e,i[n]=t}}this.reorderDirection="down",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveBottom(e){if(this.d_selection){let i=[...this.modelValue];for(let e=this.d_selection.length-1;e>=0;e--){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(n===i.length-1)break;{let e=i.splice(n,1)[0];i.push(e)}}this.reorderDirection="bottom",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},onItemClick(e,i,l){this.itemTouched=!1;let n=t.ObjectUtils.findIndexInList(i,this.d_selection),o=-1!=n;if(!this.itemTouched&&this.metaKeySelection){let r=e.metaKey||e.ctrlKey;o&&r?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=r&&this.d_selection?[...this.d_selection]:[],t.ObjectUtils.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=this.d_selection?[...this.d_selection]:[],t.ObjectUtils.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd(){this.itemTouched=!0},onItemKeyDown(e,t,i){let l=e.currentTarget;switch(e.which){case 40:var n=this.findNextItem(l);n&&n.focus(),e.preventDefault();break;case 38:var o=this.findPrevItem(l);o&&o.focus(),e.preventDefault();break;case 13:this.onItemClick(e,t,i),e.preventDefault()}},findNextItem(e){let i=e.nextElementSibling;return i?t.DomHandler.hasClass(i,"p-orderlist-item")?i:this.findNextItem(i):null},findPrevItem(e){let i=e.previousElementSibling;return i?t.DomHandler.hasClass(i,"p-orderlist-item")?i:this.findPrevItem(i):null},updateListScroll(){const e=t.DomHandler.find(this.$refs.list.$el,".p-orderlist-item.p-highlight");if(e&&e.length)switch(this.reorderDirection){case"up":t.DomHandler.scrollInView(this.$refs.list.$el,e[0]);break;case"top":this.$refs.list.$el.scrollTop=0;break;case"down":t.DomHandler.scrollInView(this.$refs.list.$el,e[e.length-1]);break;case"bottom":this.$refs.list.$el.scrollTop=this.$refs.list.$el.scrollHeight}},createStyle(){if(!this.styleElement){this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e=`\n@media screen and (max-width: ${this.breakpoint}) {\n .p-orderlist[${this.attributeSelector}] {\n flex-direction: column;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n`;this.styleElement.innerHTML=e}},destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}},computed:{containerClass(){return["p-orderlist p-component",{"p-orderlist-striped":this.stripedRows}]},attributeSelector:()=>t.UniqueComponentId()},components:{OLButton:o.default},directives:{ripple:r.default}};const d={class:"p-orderlist-controls"},c={class:"p-orderlist-list-container"},a={key:0,class:"p-orderlist-header"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&l.firstChild?l.insertBefore(n,l.firstChild):l.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-orderlist {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-orderlist-controls {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-orderlist-list-container {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n}\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n"),s.render=function(e,t,i,n,o,r){const s=l.resolveComponent("OLButton"),h=l.resolveDirective("ripple");return l.openBlock(),l.createBlock("div",{class:r.containerClass},[l.createVNode("div",d,[l.renderSlot(e.$slots,"controlsstart"),l.createVNode(s,{type:"button",icon:"pi pi-angle-up",onClick:r.moveUp},null,8,["onClick"]),l.createVNode(s,{type:"button",icon:"pi pi-angle-double-up",onClick:r.moveTop},null,8,["onClick"]),l.createVNode(s,{type:"button",icon:"pi pi-angle-down",onClick:r.moveDown},null,8,["onClick"]),l.createVNode(s,{type:"button",icon:"pi pi-angle-double-down",onClick:r.moveBottom},null,8,["onClick"]),l.renderSlot(e.$slots,"controlsend")]),l.createVNode("div",c,[e.$slots.header?(l.openBlock(),l.createBlock("div",a,[l.renderSlot(e.$slots,"header")])):l.createCommentVNode("",!0),l.createVNode(l.TransitionGroup,{ref:"list",name:"p-orderlist-flip",tag:"ul",class:"p-orderlist-list",style:i.listStyle,role:"listbox","aria-multiselectable":"multiple"},{default:l.withCtx((()=>[(l.openBlock(!0),l.createBlock(l.Fragment,null,l.renderList(i.modelValue,((i,n)=>l.withDirectives((l.openBlock(),l.createBlock("li",{key:r.getItemKey(i,n),tabindex:"0",class:["p-orderlist-item",{"p-highlight":r.isSelected(i)}],onClick:e=>r.onItemClick(e,i,n),onKeydown:e=>r.onItemKeyDown(e,i,n),onTouchend:t[1]||(t[1]=(...e)=>r.onItemTouchEnd&&r.onItemTouchEnd(...e)),role:"option","aria-selected":r.isSelected(i)},[l.renderSlot(e.$slots,"item",{item:i,index:n})],42,["onClick","onKeydown","aria-selected"])),[[h]]))),128))])),_:3},8,["style"])])],2)},module.exports=s;
|
|
@@ -69,7 +69,7 @@ var script = {
|
|
|
69
69
|
isSelected(item) {
|
|
70
70
|
return ObjectUtils.findIndexInList(item, this.d_selection) != -1;
|
|
71
71
|
},
|
|
72
|
-
moveUp() {
|
|
72
|
+
moveUp(event) {
|
|
73
73
|
if (this.d_selection) {
|
|
74
74
|
let value = [...this.modelValue];
|
|
75
75
|
|
|
@@ -97,7 +97,7 @@ var script = {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
|
-
moveTop() {
|
|
100
|
+
moveTop(event) {
|
|
101
101
|
if(this.d_selection) {
|
|
102
102
|
let value = [...this.modelValue];
|
|
103
103
|
|
|
@@ -123,7 +123,7 @@ var script = {
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
|
-
moveDown() {
|
|
126
|
+
moveDown(event) {
|
|
127
127
|
if(this.d_selection) {
|
|
128
128
|
let value = [...this.modelValue];
|
|
129
129
|
|
|
@@ -151,7 +151,7 @@ var script = {
|
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
|
-
moveBottom() {
|
|
154
|
+
moveBottom(event) {
|
|
155
155
|
if (this.d_selection) {
|
|
156
156
|
let value = [...this.modelValue];
|
|
157
157
|
|
|
@@ -450,4 +450,4 @@ styleInject(css_248z);
|
|
|
450
450
|
|
|
451
451
|
script.render = render;
|
|
452
452
|
|
|
453
|
-
export
|
|
453
|
+
export default script;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/button";import{ObjectUtils as t,DomHandler as i,UniqueComponentId as l}from"primevue/utils";import n from"primevue/ripple";import{resolveComponent as o,resolveDirective as s,openBlock as r,createBlock as d,createVNode as a,renderSlot as c,createCommentVNode as h,TransitionGroup as p,withCtx as u,Fragment as m,renderList as f,withDirectives as y}from"vue";var
|
|
1
|
+
import e from"primevue/button";import{ObjectUtils as t,DomHandler as i,UniqueComponentId as l}from"primevue/utils";import n from"primevue/ripple";import{resolveComponent as o,resolveDirective as s,openBlock as r,createBlock as d,createVNode as a,renderSlot as c,createCommentVNode as h,TransitionGroup as p,withCtx as u,Fragment as m,renderList as f,withDirectives as y}from"vue";var b={name:"OrderList",emits:["update:modelValue","reorder","update:selection","selection-change"],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:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1}},itemTouched:!1,reorderDirection:null,styleElement:null,data(){return{d_selection:this.selection}},beforeUnmount(){this.destroyStyle()},updated(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted(){this.responsive&&this.createStyle()},methods:{getItemKey(e,i){return this.dataKey?t.resolveFieldData(e,this.dataKey):i},isSelected(e){return-1!=t.findIndexInList(e,this.d_selection)},moveUp(e){if(this.d_selection){let i=[...this.modelValue];for(let e=0;e<this.d_selection.length;e++){let l=this.d_selection[e],n=t.findIndexInList(l,i);if(0===n)break;{let e=i[n],t=i[n-1];i[n-1]=e,i[n]=t}}this.reorderDirection="up",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveTop(e){if(this.d_selection){let i=[...this.modelValue];for(let e=0;e<this.d_selection.length;e++){let l=this.d_selection[e],n=t.findIndexInList(l,i);if(0===n)break;{let e=i.splice(n,1)[0];i.unshift(e)}}this.reorderDirection="top",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveDown(e){if(this.d_selection){let i=[...this.modelValue];for(let e=this.d_selection.length-1;e>=0;e--){let l=this.d_selection[e],n=t.findIndexInList(l,i);if(n===i.length-1)break;{let e=i[n],t=i[n+1];i[n+1]=e,i[n]=t}}this.reorderDirection="down",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveBottom(e){if(this.d_selection){let i=[...this.modelValue];for(let e=this.d_selection.length-1;e>=0;e--){let l=this.d_selection[e],n=t.findIndexInList(l,i);if(n===i.length-1)break;{let e=i.splice(n,1)[0];i.push(e)}}this.reorderDirection="bottom",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},onItemClick(e,i,l){this.itemTouched=!1;let n=t.findIndexInList(i,this.d_selection),o=-1!=n;if(!this.itemTouched&&this.metaKeySelection){let s=e.metaKey||e.ctrlKey;o&&s?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=s&&this.d_selection?[...this.d_selection]:[],t.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=this.d_selection?[...this.d_selection]:[],t.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd(){this.itemTouched=!0},onItemKeyDown(e,t,i){let l=e.currentTarget;switch(e.which){case 40:var n=this.findNextItem(l);n&&n.focus(),e.preventDefault();break;case 38:var o=this.findPrevItem(l);o&&o.focus(),e.preventDefault();break;case 13:this.onItemClick(e,t,i),e.preventDefault()}},findNextItem(e){let t=e.nextElementSibling;return t?i.hasClass(t,"p-orderlist-item")?t:this.findNextItem(t):null},findPrevItem(e){let t=e.previousElementSibling;return t?i.hasClass(t,"p-orderlist-item")?t:this.findPrevItem(t):null},updateListScroll(){const e=i.find(this.$refs.list.$el,".p-orderlist-item.p-highlight");if(e&&e.length)switch(this.reorderDirection){case"up":i.scrollInView(this.$refs.list.$el,e[0]);break;case"top":this.$refs.list.$el.scrollTop=0;break;case"down":i.scrollInView(this.$refs.list.$el,e[e.length-1]);break;case"bottom":this.$refs.list.$el.scrollTop=this.$refs.list.$el.scrollHeight}},createStyle(){if(!this.styleElement){this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e=`\n@media screen and (max-width: ${this.breakpoint}) {\n .p-orderlist[${this.attributeSelector}] {\n flex-direction: column;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n`;this.styleElement.innerHTML=e}},destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}},computed:{containerClass(){return["p-orderlist p-component",{"p-orderlist-striped":this.stripedRows}]},attributeSelector:()=>l()},components:{OLButton:e},directives:{ripple:n}};const v={class:"p-orderlist-controls"},g={class:"p-orderlist-list-container"},x={key:0,class:"p-orderlist-header"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&l.firstChild?l.insertBefore(n,l.firstChild):l.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-orderlist {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-orderlist-controls {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-orderlist-list-container {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n}\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n"),b.render=function(e,t,i,l,n,b){const k=o("OLButton"),$=s("ripple");return r(),d("div",{class:b.containerClass},[a("div",v,[c(e.$slots,"controlsstart"),a(k,{type:"button",icon:"pi pi-angle-up",onClick:b.moveUp},null,8,["onClick"]),a(k,{type:"button",icon:"pi pi-angle-double-up",onClick:b.moveTop},null,8,["onClick"]),a(k,{type:"button",icon:"pi pi-angle-down",onClick:b.moveDown},null,8,["onClick"]),a(k,{type:"button",icon:"pi pi-angle-double-down",onClick:b.moveBottom},null,8,["onClick"]),c(e.$slots,"controlsend")]),a("div",g,[e.$slots.header?(r(),d("div",x,[c(e.$slots,"header")])):h("",!0),a(p,{ref:"list",name:"p-orderlist-flip",tag:"ul",class:"p-orderlist-list",style:i.listStyle,role:"listbox","aria-multiselectable":"multiple"},{default:u((()=>[(r(!0),d(m,null,f(i.modelValue,((i,l)=>y((r(),d("li",{key:b.getItemKey(i,l),tabindex:"0",class:["p-orderlist-item",{"p-highlight":b.isSelected(i)}],onClick:e=>b.onItemClick(e,i,l),onKeydown:e=>b.onItemKeyDown(e,i,l),onTouchend:t[1]||(t[1]=(...e)=>b.onItemTouchEnd&&b.onItemTouchEnd(...e)),role:"option","aria-selected":b.isSelected(i)},[c(e.$slots,"item",{item:i,index:l})],42,["onClick","onKeydown","aria-selected"])),[[$]]))),128))])),_:3},8,["style"])])],2)};export default b;
|
package/orderlist/orderlist.js
CHANGED
|
@@ -73,7 +73,7 @@ this.primevue.orderlist = (function (Button, utils, Ripple, vue) {
|
|
|
73
73
|
isSelected(item) {
|
|
74
74
|
return utils.ObjectUtils.findIndexInList(item, this.d_selection) != -1;
|
|
75
75
|
},
|
|
76
|
-
moveUp() {
|
|
76
|
+
moveUp(event) {
|
|
77
77
|
if (this.d_selection) {
|
|
78
78
|
let value = [...this.modelValue];
|
|
79
79
|
|
|
@@ -101,7 +101,7 @@ this.primevue.orderlist = (function (Button, utils, Ripple, vue) {
|
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
|
-
moveTop() {
|
|
104
|
+
moveTop(event) {
|
|
105
105
|
if(this.d_selection) {
|
|
106
106
|
let value = [...this.modelValue];
|
|
107
107
|
|
|
@@ -127,7 +127,7 @@ this.primevue.orderlist = (function (Button, utils, Ripple, vue) {
|
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
|
-
moveDown() {
|
|
130
|
+
moveDown(event) {
|
|
131
131
|
if(this.d_selection) {
|
|
132
132
|
let value = [...this.modelValue];
|
|
133
133
|
|
|
@@ -155,7 +155,7 @@ this.primevue.orderlist = (function (Button, utils, Ripple, vue) {
|
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
|
-
moveBottom() {
|
|
158
|
+
moveBottom(event) {
|
|
159
159
|
if (this.d_selection) {
|
|
160
160
|
let value = [...this.modelValue];
|
|
161
161
|
|
|
@@ -337,10 +337,10 @@ this.primevue.orderlist = (function (Button, utils, Ripple, vue) {
|
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
339
|
components: {
|
|
340
|
-
'OLButton': Button__default[
|
|
340
|
+
'OLButton': Button__default['default']
|
|
341
341
|
},
|
|
342
342
|
directives: {
|
|
343
|
-
'ripple': Ripple__default[
|
|
343
|
+
'ripple': Ripple__default['default']
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
346
|
|
|
@@ -456,4 +456,4 @@ this.primevue.orderlist = (function (Button, utils, Ripple, vue) {
|
|
|
456
456
|
|
|
457
457
|
return script;
|
|
458
458
|
|
|
459
|
-
}
|
|
459
|
+
}(primevue.button, primevue.utils, primevue.ripple, Vue));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.orderlist=function(e,t,i,l){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),s=n(i),r={name:"OrderList",emits:["update:modelValue","reorder","update:selection","selection-change"],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:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1}},itemTouched:!1,reorderDirection:null,styleElement:null,data(){return{d_selection:this.selection}},beforeUnmount(){this.destroyStyle()},updated(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted(){this.responsive&&this.createStyle()},methods:{getItemKey(e,i){return this.dataKey?t.ObjectUtils.resolveFieldData(e,this.dataKey):i},isSelected(e){return-1!=t.ObjectUtils.findIndexInList(e,this.d_selection)},moveUp(){if(this.d_selection){let
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.orderlist=function(e,t,i,l){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),s=n(i),r={name:"OrderList",emits:["update:modelValue","reorder","update:selection","selection-change"],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:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1}},itemTouched:!1,reorderDirection:null,styleElement:null,data(){return{d_selection:this.selection}},beforeUnmount(){this.destroyStyle()},updated(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted(){this.responsive&&this.createStyle()},methods:{getItemKey(e,i){return this.dataKey?t.ObjectUtils.resolveFieldData(e,this.dataKey):i},isSelected(e){return-1!=t.ObjectUtils.findIndexInList(e,this.d_selection)},moveUp(e){if(this.d_selection){let i=[...this.modelValue];for(let e=0;e<this.d_selection.length;e++){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(0===n)break;{let e=i[n],t=i[n-1];i[n-1]=e,i[n]=t}}this.reorderDirection="up",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveTop(e){if(this.d_selection){let i=[...this.modelValue];for(let e=0;e<this.d_selection.length;e++){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(0===n)break;{let e=i.splice(n,1)[0];i.unshift(e)}}this.reorderDirection="top",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveDown(e){if(this.d_selection){let i=[...this.modelValue];for(let e=this.d_selection.length-1;e>=0;e--){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(n===i.length-1)break;{let e=i[n],t=i[n+1];i[n+1]=e,i[n]=t}}this.reorderDirection="down",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveBottom(e){if(this.d_selection){let i=[...this.modelValue];for(let e=this.d_selection.length-1;e>=0;e--){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(n===i.length-1)break;{let e=i.splice(n,1)[0];i.push(e)}}this.reorderDirection="bottom",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},onItemClick(e,i,l){this.itemTouched=!1;let n=t.ObjectUtils.findIndexInList(i,this.d_selection),o=-1!=n;if(!this.itemTouched&&this.metaKeySelection){let s=e.metaKey||e.ctrlKey;o&&s?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=s&&this.d_selection?[...this.d_selection]:[],t.ObjectUtils.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=this.d_selection?[...this.d_selection]:[],t.ObjectUtils.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd(){this.itemTouched=!0},onItemKeyDown(e,t,i){let l=e.currentTarget;switch(e.which){case 40:var n=this.findNextItem(l);n&&n.focus(),e.preventDefault();break;case 38:var o=this.findPrevItem(l);o&&o.focus(),e.preventDefault();break;case 13:this.onItemClick(e,t,i),e.preventDefault()}},findNextItem(e){let i=e.nextElementSibling;return i?t.DomHandler.hasClass(i,"p-orderlist-item")?i:this.findNextItem(i):null},findPrevItem(e){let i=e.previousElementSibling;return i?t.DomHandler.hasClass(i,"p-orderlist-item")?i:this.findPrevItem(i):null},updateListScroll(){const e=t.DomHandler.find(this.$refs.list.$el,".p-orderlist-item.p-highlight");if(e&&e.length)switch(this.reorderDirection){case"up":t.DomHandler.scrollInView(this.$refs.list.$el,e[0]);break;case"top":this.$refs.list.$el.scrollTop=0;break;case"down":t.DomHandler.scrollInView(this.$refs.list.$el,e[e.length-1]);break;case"bottom":this.$refs.list.$el.scrollTop=this.$refs.list.$el.scrollHeight}},createStyle(){if(!this.styleElement){this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e=`\n@media screen and (max-width: ${this.breakpoint}) {\n .p-orderlist[${this.attributeSelector}] {\n flex-direction: column;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n`;this.styleElement.innerHTML=e}},destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}},computed:{containerClass(){return["p-orderlist p-component",{"p-orderlist-striped":this.stripedRows}]},attributeSelector:()=>t.UniqueComponentId()},components:{OLButton:o.default},directives:{ripple:s.default}};const d={class:"p-orderlist-controls"},c={class:"p-orderlist-list-container"},a={key:0,class:"p-orderlist-header"};return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&l.firstChild?l.insertBefore(n,l.firstChild):l.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-orderlist {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-orderlist-controls {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-orderlist-list-container {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n}\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n"),r.render=function(e,t,i,n,o,s){const r=l.resolveComponent("OLButton"),h=l.resolveDirective("ripple");return l.openBlock(),l.createBlock("div",{class:s.containerClass},[l.createVNode("div",d,[l.renderSlot(e.$slots,"controlsstart"),l.createVNode(r,{type:"button",icon:"pi pi-angle-up",onClick:s.moveUp},null,8,["onClick"]),l.createVNode(r,{type:"button",icon:"pi pi-angle-double-up",onClick:s.moveTop},null,8,["onClick"]),l.createVNode(r,{type:"button",icon:"pi pi-angle-down",onClick:s.moveDown},null,8,["onClick"]),l.createVNode(r,{type:"button",icon:"pi pi-angle-double-down",onClick:s.moveBottom},null,8,["onClick"]),l.renderSlot(e.$slots,"controlsend")]),l.createVNode("div",c,[e.$slots.header?(l.openBlock(),l.createBlock("div",a,[l.renderSlot(e.$slots,"header")])):l.createCommentVNode("",!0),l.createVNode(l.TransitionGroup,{ref:"list",name:"p-orderlist-flip",tag:"ul",class:"p-orderlist-list",style:i.listStyle,role:"listbox","aria-multiselectable":"multiple"},{default:l.withCtx((()=>[(l.openBlock(!0),l.createBlock(l.Fragment,null,l.renderList(i.modelValue,((i,n)=>l.withDirectives((l.openBlock(),l.createBlock("li",{key:s.getItemKey(i,n),tabindex:"0",class:["p-orderlist-item",{"p-highlight":s.isSelected(i)}],onClick:e=>s.onItemClick(e,i,n),onKeydown:e=>s.onItemKeyDown(e,i,n),onTouchend:t[1]||(t[1]=(...e)=>s.onItemTouchEnd&&s.onItemTouchEnd(...e)),role:"option","aria-selected":s.isSelected(i)},[l.renderSlot(e.$slots,"item",{item:i,index:n})],42,["onClick","onKeydown","aria-selected"])),[[h]]))),128))])),_:3},8,["style"])])],2)},r}(primevue.button,primevue.utils,primevue.ripple,Vue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DomHandler as e}from"primevue/utils";import{resolveComponent as n,openBlock as t,createBlock as o,createVNode as l,resolveDynamicComponent as i,withKeys as s,createCommentVNode as d,Fragment as a,renderList as c}from"vue";var r={name:"OrganizationChartNode",emits:["node-click","node-toggle"],props:{node:{type:null,default:null},templates:{type:null,default:null},collapsible:{type:Boolean,default:!1},collapsedKeys:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null}},methods:{onNodeClick(n){e.hasClass(n.target,"p-node-toggler")||e.hasClass(n.target,"p-node-toggler-icon")||this.selectionMode&&this.$emit("node-click",this.node)},onChildNodeClick(e){this.$emit("node-click",e)},toggleNode(){this.$emit("node-toggle",this.node)},onChildNodeToggle(e){this.$emit("node-toggle",e)}},computed:{nodeContentClass(){return["p-organizationchart-node-content",this.node.styleClass,{"p-organizationchart-selectable-node":this.selectable,"p-highlight":this.selected}]},leaf(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)},colspan(){return this.node.children&&this.node.children.length?2*this.node.children.length:null},childStyle(){return{visibility:!this.leaf&&this.expanded?"inherit":"hidden"}},expanded(){return void 0===this.collapsedKeys[this.node.key]},selectable(){return this.selectionMode&&!1!==this.node.selectable},selected(){return this.selectable&&this.selectionKeys&&!0===this.selectionKeys[this.node.key]},toggleable(){return this.collapsible&&!1!==this.node.collapsible&&!this.leaf}}};const p={class:"p-organizationchart-table"},h={key:0},g=l("div",{class:"p-organizationchart-line-down"},null,-1),u=l("div",{class:"p-organizationchart-line-down"},null,-1);r.render=function(e,r,y,m,K,b){const f=n("OrganizationChartNode",!0);return t(),o("table",p,[l("tbody",null,[y.node?(t(),o("tr",h,[l("td",{colspan:b.colspan},[l("div",{class:b.nodeContentClass,onClick:r[3]||(r[3]=(...e)=>b.onNodeClick&&b.onNodeClick(...e))},[(t(),o(i(y.templates[y.node.type]||y.templates.default),{node:y.node},null,8,["node"])),b.toggleable?(t(),o("a",{key:0,tabindex:"0",class:"p-node-toggler",onClick:r[1]||(r[1]=(...e)=>b.toggleNode&&b.toggleNode(...e)),onKeydown:r[2]||(r[2]=s(((...e)=>b.toggleNode&&b.toggleNode(...e)),["enter"]))},[l("i",{class:["p-node-toggler-icon pi",{"pi-chevron-down":b.expanded,"pi-chevron-up":!b.expanded}]},null,2)],32)):d("",!0)],2)],8,["colspan"])])):d("",!0),l("tr",{style:b.childStyle,class:"p-organizationchart-lines"},[l("td",{colspan:b.colspan},[g],8,["colspan"])],4),l("tr",{style:b.childStyle,class:"p-organizationchart-lines"},[y.node.children&&1===y.node.children.length?(t(),o("td",{key:0,colspan:b.colspan},[u],8,["colspan"])):d("",!0),y.node.children&&y.node.children.length>1?(t(!0),o(a,{key:1},c(y.node.children,((e,n)=>(t(),o(a,{key:e.key},[l("td",{class:["p-organizationchart-line-left",{"p-organizationchart-line-top":!(0===n)}]}," ",2),l("td",{class:["p-organizationchart-line-right",{"p-organizationchart-line-top":!(n===y.node.children.length-1)}]}," ",2)],64)))),128)):d("",!0)],4),l("tr",{style:b.childStyle,class:"p-organizationchart-nodes"},[(t(!0),o(a,null,c(y.node.children,(e=>(t(),o("td",{key:e.key,colspan:"2"},[l(f,{node:e,templates:y.templates,collapsedKeys:y.collapsedKeys,onNodeToggle:b.onChildNodeToggle,collapsible:y.collapsible,selectionMode:y.selectionMode,selectionKeys:y.selectionKeys,onNodeClick:b.onChildNodeClick},null,8,["node","templates","collapsedKeys","onNodeToggle","collapsible","selectionMode","selectionKeys","onNodeClick"])])))),128))],4)])])};var y={name:"OrganizationChart",emits:["node-unselect","node-select","update:selectionKeys","node-expand","node-collapse","update:collapsedKeys"],props:{value:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},collapsible:{type:Boolean,default:!1},collapsedKeys:{type:null,default:null}},data(){return{d_collapsedKeys:this.collapsedKeys||{}}},watch:{collapsedKeys(e){this.d_collapsedKeys=e}},methods:{onNodeClick(e){const n=e.key;if(this.selectionMode){let t=this.selectionKeys?{...this.selectionKeys}:{};t[n]?(delete t[n],this.$emit("node-unselect",e)):("single"===this.selectionMode&&(t={}),t[n]=!0,this.$emit("node-select",e)),this.$emit("update:selectionKeys",t)}},onNodeToggle(e){const n=e.key;this.d_collapsedKeys[n]?(delete this.d_collapsedKeys[n],this.$emit("node-expand",e)):(this.d_collapsedKeys[n]=!0,this.$emit("node-collapse",e)),this.d_collapsedKeys={...this.d_collapsedKeys},this.$emit("update:collapsedKeys",this.d_collapsedKeys)}},components:{OrganizationChartNode:r}};const m={class:"p-organizationchart p-component"};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===t&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}("\n.p-organizationchart-table {\n border-spacing: 0;\n border-collapse: separate;\n margin: 0 auto;\n}\n.p-organizationchart-table > tbody > tr > td {\n text-align: center;\n vertical-align: top;\n padding: 0 .75rem;\n}\n.p-organizationchart-node-content {\n display: inline-block;\n position: relative;\n}\n.p-organizationchart-node-content .p-node-toggler {\n position: absolute;\n bottom: -.75rem;\n margin-left: -.75rem;\n z-index: 2;\n left: 50%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n width: 1.5rem;\n height: 1.5rem;\n text-decoration: none;\n}\n.p-organizationchart-node-content .p-node-toggler .p-node-toggler-icon {\n position: relative;\n top: .25rem;\n}\n.p-organizationchart-line-down {\n margin: 0 auto;\n height: 20px;\n width: 1px;\n}\n.p-organizationchart-line-right {\n border-radius: 0px;\n}\n.p-organizationchart-line-left {\n border-radius: 0;\n}\n.p-organizationchart-selectable-node {\n cursor: pointer;\n}\n"),y.render=function(e,i,s,d,a,c){const r=n("OrganizationChartNode");return t(),o("div",m,[l(r,{node:s.value,templates:e.$slots,onNodeToggle:c.onNodeToggle,collapsedKeys:a.d_collapsedKeys,collapsible:s.collapsible,onNodeClick:c.onNodeClick,selectionMode:s.selectionMode,selectionKeys:s.selectionKeys},null,8,["node","templates","onNodeToggle","collapsedKeys","collapsible","onNodeClick","selectionMode","selectionKeys"])])};export
|
|
1
|
+
import{DomHandler as e}from"primevue/utils";import{resolveComponent as n,openBlock as t,createBlock as o,createVNode as l,resolveDynamicComponent as i,withKeys as s,createCommentVNode as d,Fragment as a,renderList as c}from"vue";var r={name:"OrganizationChartNode",emits:["node-click","node-toggle"],props:{node:{type:null,default:null},templates:{type:null,default:null},collapsible:{type:Boolean,default:!1},collapsedKeys:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null}},methods:{onNodeClick(n){e.hasClass(n.target,"p-node-toggler")||e.hasClass(n.target,"p-node-toggler-icon")||this.selectionMode&&this.$emit("node-click",this.node)},onChildNodeClick(e){this.$emit("node-click",e)},toggleNode(){this.$emit("node-toggle",this.node)},onChildNodeToggle(e){this.$emit("node-toggle",e)}},computed:{nodeContentClass(){return["p-organizationchart-node-content",this.node.styleClass,{"p-organizationchart-selectable-node":this.selectable,"p-highlight":this.selected}]},leaf(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)},colspan(){return this.node.children&&this.node.children.length?2*this.node.children.length:null},childStyle(){return{visibility:!this.leaf&&this.expanded?"inherit":"hidden"}},expanded(){return void 0===this.collapsedKeys[this.node.key]},selectable(){return this.selectionMode&&!1!==this.node.selectable},selected(){return this.selectable&&this.selectionKeys&&!0===this.selectionKeys[this.node.key]},toggleable(){return this.collapsible&&!1!==this.node.collapsible&&!this.leaf}}};const p={class:"p-organizationchart-table"},h={key:0},g=l("div",{class:"p-organizationchart-line-down"},null,-1),u=l("div",{class:"p-organizationchart-line-down"},null,-1);r.render=function(e,r,y,m,K,b){const f=n("OrganizationChartNode",!0);return t(),o("table",p,[l("tbody",null,[y.node?(t(),o("tr",h,[l("td",{colspan:b.colspan},[l("div",{class:b.nodeContentClass,onClick:r[3]||(r[3]=(...e)=>b.onNodeClick&&b.onNodeClick(...e))},[(t(),o(i(y.templates[y.node.type]||y.templates.default),{node:y.node},null,8,["node"])),b.toggleable?(t(),o("a",{key:0,tabindex:"0",class:"p-node-toggler",onClick:r[1]||(r[1]=(...e)=>b.toggleNode&&b.toggleNode(...e)),onKeydown:r[2]||(r[2]=s(((...e)=>b.toggleNode&&b.toggleNode(...e)),["enter"]))},[l("i",{class:["p-node-toggler-icon pi",{"pi-chevron-down":b.expanded,"pi-chevron-up":!b.expanded}]},null,2)],32)):d("",!0)],2)],8,["colspan"])])):d("",!0),l("tr",{style:b.childStyle,class:"p-organizationchart-lines"},[l("td",{colspan:b.colspan},[g],8,["colspan"])],4),l("tr",{style:b.childStyle,class:"p-organizationchart-lines"},[y.node.children&&1===y.node.children.length?(t(),o("td",{key:0,colspan:b.colspan},[u],8,["colspan"])):d("",!0),y.node.children&&y.node.children.length>1?(t(!0),o(a,{key:1},c(y.node.children,((e,n)=>(t(),o(a,{key:e.key},[l("td",{class:["p-organizationchart-line-left",{"p-organizationchart-line-top":!(0===n)}]}," ",2),l("td",{class:["p-organizationchart-line-right",{"p-organizationchart-line-top":!(n===y.node.children.length-1)}]}," ",2)],64)))),128)):d("",!0)],4),l("tr",{style:b.childStyle,class:"p-organizationchart-nodes"},[(t(!0),o(a,null,c(y.node.children,(e=>(t(),o("td",{key:e.key,colspan:"2"},[l(f,{node:e,templates:y.templates,collapsedKeys:y.collapsedKeys,onNodeToggle:b.onChildNodeToggle,collapsible:y.collapsible,selectionMode:y.selectionMode,selectionKeys:y.selectionKeys,onNodeClick:b.onChildNodeClick},null,8,["node","templates","collapsedKeys","onNodeToggle","collapsible","selectionMode","selectionKeys","onNodeClick"])])))),128))],4)])])};var y={name:"OrganizationChart",emits:["node-unselect","node-select","update:selectionKeys","node-expand","node-collapse","update:collapsedKeys"],props:{value:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},collapsible:{type:Boolean,default:!1},collapsedKeys:{type:null,default:null}},data(){return{d_collapsedKeys:this.collapsedKeys||{}}},watch:{collapsedKeys(e){this.d_collapsedKeys=e}},methods:{onNodeClick(e){const n=e.key;if(this.selectionMode){let t=this.selectionKeys?{...this.selectionKeys}:{};t[n]?(delete t[n],this.$emit("node-unselect",e)):("single"===this.selectionMode&&(t={}),t[n]=!0,this.$emit("node-select",e)),this.$emit("update:selectionKeys",t)}},onNodeToggle(e){const n=e.key;this.d_collapsedKeys[n]?(delete this.d_collapsedKeys[n],this.$emit("node-expand",e)):(this.d_collapsedKeys[n]=!0,this.$emit("node-collapse",e)),this.d_collapsedKeys={...this.d_collapsedKeys},this.$emit("update:collapsedKeys",this.d_collapsedKeys)}},components:{OrganizationChartNode:r}};const m={class:"p-organizationchart p-component"};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===t&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}("\n.p-organizationchart-table {\n border-spacing: 0;\n border-collapse: separate;\n margin: 0 auto;\n}\n.p-organizationchart-table > tbody > tr > td {\n text-align: center;\n vertical-align: top;\n padding: 0 .75rem;\n}\n.p-organizationchart-node-content {\n display: inline-block;\n position: relative;\n}\n.p-organizationchart-node-content .p-node-toggler {\n position: absolute;\n bottom: -.75rem;\n margin-left: -.75rem;\n z-index: 2;\n left: 50%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n width: 1.5rem;\n height: 1.5rem;\n text-decoration: none;\n}\n.p-organizationchart-node-content .p-node-toggler .p-node-toggler-icon {\n position: relative;\n top: .25rem;\n}\n.p-organizationchart-line-down {\n margin: 0 auto;\n height: 20px;\n width: 1px;\n}\n.p-organizationchart-line-right {\n border-radius: 0px;\n}\n.p-organizationchart-line-left {\n border-radius: 0;\n}\n.p-organizationchart-selectable-node {\n cursor: pointer;\n}\n"),y.render=function(e,i,s,d,a,c){const r=n("OrganizationChartNode");return t(),o("div",m,[l(r,{node:s.value,templates:e.$slots,onNodeToggle:c.onNodeToggle,collapsedKeys:a.d_collapsedKeys,collapsible:s.collapsible,onNodeClick:c.onNodeClick,selectionMode:s.selectionMode,selectionKeys:s.selectionKeys},null,8,["node","templates","onNodeToggle","collapsedKeys","collapsible","onNodeClick","selectionMode","selectionKeys"])])};export default y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EventBus as r}from"primevue/utils";var e=r();export
|
|
1
|
+
import{EventBus as r}from"primevue/utils";var e=r();export default e;
|