primevue 3.12.2 → 3.12.5
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 +32 -20
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +34 -22
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +33 -21
- 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 +61 -54
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +59 -52
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +62 -55
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +9 -6
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +11 -8
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +10 -7
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +1 -1
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +3 -3
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +2 -2
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +3 -1
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +5 -3
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +4 -2
- package/badge/badge.min.js +1 -1
- package/badgedirective/badgedirective.esm.js +1 -1
- package/badgedirective/badgedirective.esm.min.js +1 -1
- package/badgedirective/badgedirective.js +1 -1
- package/blockui/blockui.cjs.js +1 -1
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +3 -3
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +2 -2
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +25 -23
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +27 -25
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +26 -24
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +13 -12
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +14 -13
- package/button/button.esm.min.js +1 -1
- package/button/button.js +14 -13
- package/button/button.min.js +1 -1
- package/calendar/Calendar.vue +3 -0
- package/calendar/calendar.cjs.js +235 -207
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +234 -206
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +236 -208
- package/calendar/calendar.min.js +1 -1
- package/card/card.cjs.js +7 -7
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +9 -9
- package/card/card.esm.min.js +1 -1
- package/card/card.js +8 -8
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +56 -48
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +57 -49
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +57 -49
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +37 -30
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +37 -30
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +38 -31
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +7 -8
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +7 -6
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +6 -5
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +16 -14
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +18 -16
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +17 -15
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +13 -12
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +15 -14
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +14 -13
- package/chip/chip.min.js +1 -1
- package/chips/Chips.vue +1 -1
- package/chips/chips.cjs.js +23 -21
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +25 -23
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +24 -22
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +28 -27
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +29 -28
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +29 -28
- package/colorpicker/colorpicker.min.js +1 -1
- 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/config.cjs.js +1 -1
- package/config/config.esm.js +1 -2
- 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/confirmationoptions/ConfirmationOptions.d.ts +8 -0
- 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 +15 -13
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +11 -9
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +16 -14
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/ConfirmPopup.vue +2 -1
- package/confirmpopup/confirmpopup.cjs.js +20 -17
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +16 -13
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +21 -18
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +33 -30
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +34 -31
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +34 -31
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +396 -334
- package/core/core.min.js +13 -13
- package/datatable/DataTable.d.ts +1 -1
- package/datatable/datatable.cjs.js +355 -328
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +345 -318
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +356 -329
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +4 -0
- package/dataview/DataView.vue +8 -1
- package/dataview/dataview.cjs.js +26 -15
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +27 -16
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +27 -16
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +17 -15
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +19 -17
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +18 -16
- package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +1 -1
- 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 +2 -2
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +33 -27
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +34 -28
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +34 -28
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +3 -3
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +5 -5
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +4 -4
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +26 -23
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +26 -23
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +27 -24
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +67 -59
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +66 -58
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +68 -60
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +22 -22
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +23 -23
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +23 -23
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +22 -17
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +23 -18
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +23 -18
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +64 -59
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +62 -57
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +65 -60
- package/fileupload/fileupload.min.js +1 -1
- package/fullcalendar/fullcalendar.cjs.js +1 -31
- package/fullcalendar/fullcalendar.cjs.min.js +1 -1
- package/fullcalendar/fullcalendar.esm.js +3 -33
- package/fullcalendar/fullcalendar.esm.min.js +1 -1
- package/fullcalendar/fullcalendar.js +2 -32
- package/fullcalendar/fullcalendar.min.js +1 -1
- package/galleria/galleria.cjs.js +92 -78
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +91 -77
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +93 -79
- package/galleria/galleria.min.js +1 -1
- package/image/image.cjs.js +55 -47
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +57 -49
- package/image/image.esm.min.js +1 -1
- package/image/image.js +56 -48
- package/image/image.min.js +1 -1
- package/inlinemessage/inlinemessage.cjs.js +6 -4
- package/inlinemessage/inlinemessage.cjs.min.js +1 -1
- package/inlinemessage/inlinemessage.esm.js +8 -6
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +7 -5
- package/inlinemessage/inlinemessage.min.js +1 -1
- package/inplace/inplace.cjs.js +12 -9
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +13 -10
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +13 -10
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +7 -7
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +9 -9
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +8 -8
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +6 -6
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +6 -6
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +7 -7
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +13 -12
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +15 -14
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +14 -13
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +5 -3
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +7 -5
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +6 -4
- package/inputtext/inputtext.min.js +1 -1
- package/knob/knob.cjs.js +21 -14
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +23 -16
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +22 -15
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +37 -34
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +37 -34
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +38 -35
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +73 -66
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +74 -67
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +74 -67
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.vue +4 -1
- package/menu/menu.cjs.js +41 -36
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +41 -36
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +42 -37
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +47 -40
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +48 -41
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +48 -41
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +15 -12
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +16 -13
- package/message/message.esm.min.js +1 -1
- package/message/message.js +16 -13
- package/message/message.min.js +1 -1
- package/multiselect/multiselect.cjs.js +106 -94
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +105 -93
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +107 -95
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.vue +4 -4
- package/orderlist/orderlist.cjs.js +19 -16
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +19 -16
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +20 -17
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +42 -37
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +44 -39
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +43 -38
- package/organizationchart/organizationchart.min.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 +18 -16
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +15 -13
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +19 -17
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +59 -54
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +53 -48
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +60 -55
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +21 -16
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +22 -17
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +22 -17
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +62 -57
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +64 -59
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +63 -58
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.vue +1 -1
- package/password/password.cjs.js +17 -17
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +17 -17
- package/password/password.esm.min.js +1 -1
- package/password/password.js +18 -18
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +38 -34
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +38 -34
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +39 -35
- package/picklist/picklist.min.js +1 -1
- package/progressbar/progressbar.cjs.js +14 -12
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +16 -14
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +15 -13
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +6 -5
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +8 -7
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +7 -6
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +18 -15
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +20 -17
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +19 -16
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/Rating.vue +1 -1
- package/rating/rating.cjs.js +14 -9
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +16 -11
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +15 -10
- package/rating/rating.min.js +1 -1
- package/resources/primevue.css +5 -3
- package/resources/primevue.min.css +1 -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.cjs.js +9 -9
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +11 -11
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +10 -10
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/ScrollTop.vue +1 -1
- package/scrolltop/scrolltop.cjs.js +7 -5
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +9 -7
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +8 -6
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +12 -11
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +13 -12
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +13 -12
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +16 -13
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +17 -14
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +17 -14
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +3 -3
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +5 -5
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +4 -4
- package/skeleton/skeleton.min.js +1 -1
- package/slider/slider.cjs.js +33 -29
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +35 -31
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +34 -30
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +23 -21
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +22 -20
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +24 -22
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +7 -9
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +7 -9
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +8 -10
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +13 -9
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +15 -11
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +14 -10
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/splitterpanel.cjs.js +2 -2
- package/splitterpanel/splitterpanel.cjs.min.js +1 -1
- package/splitterpanel/splitterpanel.esm.js +4 -4
- package/splitterpanel/splitterpanel.esm.min.js +1 -1
- package/splitterpanel/splitterpanel.js +3 -3
- package/splitterpanel/splitterpanel.min.js +1 -1
- package/steps/steps.cjs.js +28 -25
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +30 -27
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +29 -26
- package/steps/steps.min.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 +25 -23
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +26 -24
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +26 -24
- package/tabmenu/tabmenu.min.js +1 -1
- 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 +41 -36
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +42 -37
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +42 -37
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +4 -4
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +6 -6
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +5 -5
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +17 -17
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +16 -16
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +18 -18
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.esm.js +1 -1
- package/terminalservice/terminalservice.esm.min.js +1 -1
- package/terminalservice/terminalservice.js +1 -1
- package/textarea/textarea.cjs.js +5 -3
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +7 -5
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +6 -4
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +35 -32
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +35 -32
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +36 -33
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +1 -1
- package/timeline/timeline.cjs.js +10 -8
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +12 -10
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +11 -9
- package/timeline/timeline.min.js +1 -1
- package/toast/Toast.vue +2 -2
- package/toast/toast.cjs.js +29 -26
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +25 -22
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +30 -27
- package/toast/toast.min.js +1 -1
- 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 +10 -9
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +11 -10
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +11 -10
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +3 -3
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +5 -5
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +4 -4
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +13 -1
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +14 -2
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +14 -2
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +56 -41
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +57 -42
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +57 -42
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +38 -35
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +37 -34
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +39 -36
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/TreeTable.d.ts +1 -1
- package/treetable/treetable.cjs.js +97 -88
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +97 -88
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +98 -89
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +16 -14
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +18 -16
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +17 -15
- package/tristatecheckbox/tristatecheckbox.min.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 +14 -2
- package/vetur-tags.json +5 -2
- package/virtualscroller/virtualscroller.cjs.js +15 -15
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +17 -17
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +16 -16
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +33 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/utils"),t=require("vue"),n={name:"ScrollTop",scrollListener:null,container:null,data:()=>({visible:!1}),props:{target:{type:String,default:"window"},threshold:{type:Number,default:400},icon:{type:String,default:"pi pi-chevron-up"},behavior:{type:String,default:"smooth"}},mounted(){"window"===this.target?this.bindDocumentScrollListener():"parent"===this.target&&this.bindParentScrollListener()},beforeUnmount(){"window"===this.target?this.unbindDocumentScrollListener():"parent"===this.target&&this.unbindParentScrollListener(),this.container&&(e.ZIndexUtils.clear(this.container),this.overlay=null)},methods:{onClick(){("window"===this.target?window:this.$el.parentElement).scroll({top:0,behavior:this.behavior})},checkVisibility(e){e>this.threshold?this.visible=!0:this.visible=!1},bindParentScrollListener(){this.scrollListener=()=>{this.checkVisibility(this.$el.parentElement.scrollTop)},this.$el.parentElement.addEventListener("scroll",this.scrollListener)},bindDocumentScrollListener(){this.scrollListener=()=>{this.checkVisibility(e.DomHandler.getWindowScrollTop())},window.addEventListener("scroll",this.scrollListener)},unbindParentScrollListener(){this.scrollListener&&(this.$el.parentElement.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},unbindDocumentScrollListener(){this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},onEnter(t){e.ZIndexUtils.set("overlay",t,this.$primevue.config.zIndex.overlay)},onAfterLeave(t){e.ZIndexUtils.clear(t)},containerRef(e){this.container=e}},computed:{containerClass(){return["p-scrolltop p-link p-component",{"p-scrolltop-sticky":"window"!==this.target}]},iconClass(){return["p-scrolltop-icon",this.icon]}}};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("\n.p-scrolltop {\n position: fixed;\n bottom: 20px;\n right: 20px;\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}\n.p-scrolltop-sticky {\n position: sticky;\n}\n.p-scrolltop-sticky.p-link {\n margin-left: auto;\n}\n.p-scrolltop-enter-from {\n opacity: 0;\n}\n.p-scrolltop-enter-active {\n -webkit-transition: opacity .15s;\n transition: opacity .15s;\n}\n.p-scrolltop.p-scrolltop-leave-to {\n opacity: 0;\n}\n.p-scrolltop-leave-active {\n -webkit-transition: opacity .15s;\n transition: opacity .15s;\n}\n"),n.render=function(e,n,i,o,r
|
|
1
|
+
"use strict";var e=require("primevue/utils"),t=require("vue"),n={name:"ScrollTop",scrollListener:null,container:null,data:()=>({visible:!1}),props:{target:{type:String,default:"window"},threshold:{type:Number,default:400},icon:{type:String,default:"pi pi-chevron-up"},behavior:{type:String,default:"smooth"}},mounted(){"window"===this.target?this.bindDocumentScrollListener():"parent"===this.target&&this.bindParentScrollListener()},beforeUnmount(){"window"===this.target?this.unbindDocumentScrollListener():"parent"===this.target&&this.unbindParentScrollListener(),this.container&&(e.ZIndexUtils.clear(this.container),this.overlay=null)},methods:{onClick(){("window"===this.target?window:this.$el.parentElement).scroll({top:0,behavior:this.behavior})},checkVisibility(e){e>this.threshold?this.visible=!0:this.visible=!1},bindParentScrollListener(){this.scrollListener=()=>{this.checkVisibility(this.$el.parentElement.scrollTop)},this.$el.parentElement.addEventListener("scroll",this.scrollListener)},bindDocumentScrollListener(){this.scrollListener=()=>{this.checkVisibility(e.DomHandler.getWindowScrollTop())},window.addEventListener("scroll",this.scrollListener)},unbindParentScrollListener(){this.scrollListener&&(this.$el.parentElement.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},unbindDocumentScrollListener(){this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},onEnter(t){e.ZIndexUtils.set("overlay",t,this.$primevue.config.zIndex.overlay)},onAfterLeave(t){e.ZIndexUtils.clear(t)},containerRef(e){this.container=e}},computed:{containerClass(){return["p-scrolltop p-link p-component",{"p-scrolltop-sticky":"window"!==this.target}]},iconClass(){return["p-scrolltop-icon",this.icon]}}};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("\n.p-scrolltop {\n position: fixed;\n bottom: 20px;\n right: 20px;\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}\n.p-scrolltop-sticky {\n position: sticky;\n}\n.p-scrolltop-sticky.p-link {\n margin-left: auto;\n}\n.p-scrolltop-enter-from {\n opacity: 0;\n}\n.p-scrolltop-enter-active {\n -webkit-transition: opacity .15s;\n transition: opacity .15s;\n}\n.p-scrolltop.p-scrolltop-leave-to {\n opacity: 0;\n}\n.p-scrolltop-leave-active {\n -webkit-transition: opacity .15s;\n transition: opacity .15s;\n}\n"),n.render=function(e,n,i,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"p-scrolltop",appear:"",onEnter:r.onEnter,onAfterLeave:r.onAfterLeave},{default:t.withCtx((()=>[l.visible?(t.openBlock(),t.createElementBlock("button",{key:0,ref:r.containerRef,class:t.normalizeClass(r.containerClass),onClick:n[0]||(n[0]=(...e)=>r.onClick&&r.onClick(...e)),type:"button"},[t.createElementVNode("span",{class:t.normalizeClass(r.iconClass)},null,2)],2)):t.createCommentVNode("",!0)])),_:1},8,["onEnter","onAfterLeave"])},module.exports=n;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZIndexUtils, DomHandler } from 'primevue/utils';
|
|
2
|
-
import { openBlock, createBlock, Transition, withCtx,
|
|
2
|
+
import { openBlock, createBlock, Transition, withCtx, createElementBlock, normalizeClass, createElementVNode, createCommentVNode } from 'vue';
|
|
3
3
|
|
|
4
4
|
var script = {
|
|
5
5
|
name: 'ScrollTop',
|
|
@@ -48,7 +48,7 @@ var script = {
|
|
|
48
48
|
methods: {
|
|
49
49
|
onClick() {
|
|
50
50
|
let scrollElement = this.target === 'window' ? window : this.$el.parentElement;
|
|
51
|
-
|
|
51
|
+
scrollElement.scroll({
|
|
52
52
|
top: 0,
|
|
53
53
|
behavior: this.behavior
|
|
54
54
|
});
|
|
@@ -114,14 +114,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
114
114
|
}, {
|
|
115
115
|
default: withCtx(() => [
|
|
116
116
|
($data.visible)
|
|
117
|
-
? (openBlock(),
|
|
117
|
+
? (openBlock(), createElementBlock("button", {
|
|
118
118
|
key: 0,
|
|
119
119
|
ref: $options.containerRef,
|
|
120
|
-
class: $options.containerClass,
|
|
121
|
-
onClick: _cache[
|
|
120
|
+
class: normalizeClass($options.containerClass),
|
|
121
|
+
onClick: _cache[0] || (_cache[0] = (...args) => ($options.onClick && $options.onClick(...args))),
|
|
122
122
|
type: "button"
|
|
123
123
|
}, [
|
|
124
|
-
|
|
124
|
+
createElementVNode("span", {
|
|
125
|
+
class: normalizeClass($options.iconClass)
|
|
126
|
+
}, null, 2)
|
|
125
127
|
], 2))
|
|
126
128
|
: createCommentVNode("", true)
|
|
127
129
|
]),
|
|
@@ -161,4 +163,4 @@ styleInject(css_248z);
|
|
|
161
163
|
|
|
162
164
|
script.render = render;
|
|
163
165
|
|
|
164
|
-
export default
|
|
166
|
+
export { script as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ZIndexUtils as e,DomHandler as t}from"primevue/utils";import{openBlock as n,createBlock as i,Transition as o,withCtx as r,
|
|
1
|
+
import{ZIndexUtils as e,DomHandler as t}from"primevue/utils";import{openBlock as n,createBlock as i,Transition as o,withCtx as r,createElementBlock as l,normalizeClass as s,createElementVNode as c,createCommentVNode as a}from"vue";var p={name:"ScrollTop",scrollListener:null,container:null,data:()=>({visible:!1}),props:{target:{type:String,default:"window"},threshold:{type:Number,default:400},icon:{type:String,default:"pi pi-chevron-up"},behavior:{type:String,default:"smooth"}},mounted(){"window"===this.target?this.bindDocumentScrollListener():"parent"===this.target&&this.bindParentScrollListener()},beforeUnmount(){"window"===this.target?this.unbindDocumentScrollListener():"parent"===this.target&&this.unbindParentScrollListener(),this.container&&(e.clear(this.container),this.overlay=null)},methods:{onClick(){("window"===this.target?window:this.$el.parentElement).scroll({top:0,behavior:this.behavior})},checkVisibility(e){e>this.threshold?this.visible=!0:this.visible=!1},bindParentScrollListener(){this.scrollListener=()=>{this.checkVisibility(this.$el.parentElement.scrollTop)},this.$el.parentElement.addEventListener("scroll",this.scrollListener)},bindDocumentScrollListener(){this.scrollListener=()=>{this.checkVisibility(t.getWindowScrollTop())},window.addEventListener("scroll",this.scrollListener)},unbindParentScrollListener(){this.scrollListener&&(this.$el.parentElement.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},unbindDocumentScrollListener(){this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},onEnter(t){e.set("overlay",t,this.$primevue.config.zIndex.overlay)},onAfterLeave(t){e.clear(t)},containerRef(e){this.container=e}},computed:{containerClass(){return["p-scrolltop p-link p-component",{"p-scrolltop-sticky":"window"!==this.target}]},iconClass(){return["p-scrolltop-icon",this.icon]}}};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("\n.p-scrolltop {\n position: fixed;\n bottom: 20px;\n right: 20px;\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}\n.p-scrolltop-sticky {\n position: sticky;\n}\n.p-scrolltop-sticky.p-link {\n margin-left: auto;\n}\n.p-scrolltop-enter-from {\n opacity: 0;\n}\n.p-scrolltop-enter-active {\n -webkit-transition: opacity .15s;\n transition: opacity .15s;\n}\n.p-scrolltop.p-scrolltop-leave-to {\n opacity: 0;\n}\n.p-scrolltop-leave-active {\n -webkit-transition: opacity .15s;\n transition: opacity .15s;\n}\n"),p.render=function(e,t,p,h,d,u){return n(),i(o,{name:"p-scrolltop",appear:"",onEnter:u.onEnter,onAfterLeave:u.onAfterLeave},{default:r((()=>[d.visible?(n(),l("button",{key:0,ref:u.containerRef,class:s(u.containerClass),onClick:t[0]||(t[0]=(...e)=>u.onClick&&u.onClick(...e)),type:"button"},[c("span",{class:s(u.iconClass)},null,2)],2)):a("",!0)])),_:1},8,["onEnter","onAfterLeave"])};export{p as default};
|
package/scrolltop/scrolltop.js
CHANGED
|
@@ -49,7 +49,7 @@ this.primevue.scrolltop = (function (utils, vue) {
|
|
|
49
49
|
methods: {
|
|
50
50
|
onClick() {
|
|
51
51
|
let scrollElement = this.target === 'window' ? window : this.$el.parentElement;
|
|
52
|
-
|
|
52
|
+
scrollElement.scroll({
|
|
53
53
|
top: 0,
|
|
54
54
|
behavior: this.behavior
|
|
55
55
|
});
|
|
@@ -115,14 +115,16 @@ this.primevue.scrolltop = (function (utils, vue) {
|
|
|
115
115
|
}, {
|
|
116
116
|
default: vue.withCtx(() => [
|
|
117
117
|
($data.visible)
|
|
118
|
-
? (vue.openBlock(), vue.
|
|
118
|
+
? (vue.openBlock(), vue.createElementBlock("button", {
|
|
119
119
|
key: 0,
|
|
120
120
|
ref: $options.containerRef,
|
|
121
|
-
class: $options.containerClass,
|
|
122
|
-
onClick: _cache[
|
|
121
|
+
class: vue.normalizeClass($options.containerClass),
|
|
122
|
+
onClick: _cache[0] || (_cache[0] = (...args) => ($options.onClick && $options.onClick(...args))),
|
|
123
123
|
type: "button"
|
|
124
124
|
}, [
|
|
125
|
-
vue.
|
|
125
|
+
vue.createElementVNode("span", {
|
|
126
|
+
class: vue.normalizeClass($options.iconClass)
|
|
127
|
+
}, null, 2)
|
|
126
128
|
], 2))
|
|
127
129
|
: vue.createCommentVNode("", true)
|
|
128
130
|
]),
|
|
@@ -164,4 +166,4 @@ this.primevue.scrolltop = (function (utils, vue) {
|
|
|
164
166
|
|
|
165
167
|
return script;
|
|
166
168
|
|
|
167
|
-
}(primevue.utils, Vue)
|
|
169
|
+
})(primevue.utils, Vue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.scrolltop=function(e,t){"use strict";var n={name:"ScrollTop",scrollListener:null,container:null,data:()=>({visible:!1}),props:{target:{type:String,default:"window"},threshold:{type:Number,default:400},icon:{type:String,default:"pi pi-chevron-up"},behavior:{type:String,default:"smooth"}},mounted(){"window"===this.target?this.bindDocumentScrollListener():"parent"===this.target&&this.bindParentScrollListener()},beforeUnmount(){"window"===this.target?this.unbindDocumentScrollListener():"parent"===this.target&&this.unbindParentScrollListener(),this.container&&(e.ZIndexUtils.clear(this.container),this.overlay=null)},methods:{onClick(){("window"===this.target?window:this.$el.parentElement).scroll({top:0,behavior:this.behavior})},checkVisibility(e){e>this.threshold?this.visible=!0:this.visible=!1},bindParentScrollListener(){this.scrollListener=()=>{this.checkVisibility(this.$el.parentElement.scrollTop)},this.$el.parentElement.addEventListener("scroll",this.scrollListener)},bindDocumentScrollListener(){this.scrollListener=()=>{this.checkVisibility(e.DomHandler.getWindowScrollTop())},window.addEventListener("scroll",this.scrollListener)},unbindParentScrollListener(){this.scrollListener&&(this.$el.parentElement.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},unbindDocumentScrollListener(){this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},onEnter(t){e.ZIndexUtils.set("overlay",t,this.$primevue.config.zIndex.overlay)},onAfterLeave(t){e.ZIndexUtils.clear(t)},containerRef(e){this.container=e}},computed:{containerClass(){return["p-scrolltop p-link p-component",{"p-scrolltop-sticky":"window"!==this.target}]},iconClass(){return["p-scrolltop-icon",this.icon]}}};return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("\n.p-scrolltop {\n position: fixed;\n bottom: 20px;\n right: 20px;\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}\n.p-scrolltop-sticky {\n position: sticky;\n}\n.p-scrolltop-sticky.p-link {\n margin-left: auto;\n}\n.p-scrolltop-enter-from {\n opacity: 0;\n}\n.p-scrolltop-enter-active {\n -webkit-transition: opacity .15s;\n transition: opacity .15s;\n}\n.p-scrolltop.p-scrolltop-leave-to {\n opacity: 0;\n}\n.p-scrolltop-leave-active {\n -webkit-transition: opacity .15s;\n transition: opacity .15s;\n}\n"),n.render=function(e,n,i,o,r
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.scrolltop=function(e,t){"use strict";var n={name:"ScrollTop",scrollListener:null,container:null,data:()=>({visible:!1}),props:{target:{type:String,default:"window"},threshold:{type:Number,default:400},icon:{type:String,default:"pi pi-chevron-up"},behavior:{type:String,default:"smooth"}},mounted(){"window"===this.target?this.bindDocumentScrollListener():"parent"===this.target&&this.bindParentScrollListener()},beforeUnmount(){"window"===this.target?this.unbindDocumentScrollListener():"parent"===this.target&&this.unbindParentScrollListener(),this.container&&(e.ZIndexUtils.clear(this.container),this.overlay=null)},methods:{onClick(){("window"===this.target?window:this.$el.parentElement).scroll({top:0,behavior:this.behavior})},checkVisibility(e){e>this.threshold?this.visible=!0:this.visible=!1},bindParentScrollListener(){this.scrollListener=()=>{this.checkVisibility(this.$el.parentElement.scrollTop)},this.$el.parentElement.addEventListener("scroll",this.scrollListener)},bindDocumentScrollListener(){this.scrollListener=()=>{this.checkVisibility(e.DomHandler.getWindowScrollTop())},window.addEventListener("scroll",this.scrollListener)},unbindParentScrollListener(){this.scrollListener&&(this.$el.parentElement.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},unbindDocumentScrollListener(){this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},onEnter(t){e.ZIndexUtils.set("overlay",t,this.$primevue.config.zIndex.overlay)},onAfterLeave(t){e.ZIndexUtils.clear(t)},containerRef(e){this.container=e}},computed:{containerClass(){return["p-scrolltop p-link p-component",{"p-scrolltop-sticky":"window"!==this.target}]},iconClass(){return["p-scrolltop-icon",this.icon]}}};return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("\n.p-scrolltop {\n position: fixed;\n bottom: 20px;\n right: 20px;\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}\n.p-scrolltop-sticky {\n position: sticky;\n}\n.p-scrolltop-sticky.p-link {\n margin-left: auto;\n}\n.p-scrolltop-enter-from {\n opacity: 0;\n}\n.p-scrolltop-enter-active {\n -webkit-transition: opacity .15s;\n transition: opacity .15s;\n}\n.p-scrolltop.p-scrolltop-leave-to {\n opacity: 0;\n}\n.p-scrolltop-leave-active {\n -webkit-transition: opacity .15s;\n transition: opacity .15s;\n}\n"),n.render=function(e,n,i,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"p-scrolltop",appear:"",onEnter:r.onEnter,onAfterLeave:r.onAfterLeave},{default:t.withCtx((()=>[l.visible?(t.openBlock(),t.createElementBlock("button",{key:0,ref:r.containerRef,class:t.normalizeClass(r.containerClass),onClick:n[0]||(n[0]=(...e)=>r.onClick&&r.onClick(...e)),type:"button"},[t.createElementVNode("span",{class:t.normalizeClass(r.iconClass)},null,2)],2)):t.createCommentVNode("",!0)])),_:1},8,["onEnter","onAfterLeave"])},n}(primevue.utils,Vue);
|
|
@@ -101,21 +101,22 @@ var script = {
|
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
directives: {
|
|
104
|
-
'ripple': Ripple__default[
|
|
104
|
+
'ripple': Ripple__default["default"]
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
-
const _hoisted_1 =
|
|
108
|
+
const _hoisted_1 = ["aria-label", "aria-pressed", "onClick", "onKeydown", "tabindex", "aria-labelledby"];
|
|
109
|
+
const _hoisted_2 = { class: "p-button-label" };
|
|
109
110
|
|
|
110
111
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
111
112
|
const _directive_ripple = vue.resolveDirective("ripple");
|
|
112
113
|
|
|
113
|
-
return (vue.openBlock(), vue.
|
|
114
|
-
class: $options.containerClass,
|
|
114
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
115
|
+
class: vue.normalizeClass($options.containerClass),
|
|
115
116
|
role: "group"
|
|
116
117
|
}, [
|
|
117
|
-
(vue.openBlock(true), vue.
|
|
118
|
-
return vue.withDirectives((vue.openBlock(), vue.
|
|
118
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.options, (option, i) => {
|
|
119
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
119
120
|
key: $options.getOptionRenderKey(option),
|
|
120
121
|
"aria-label": $options.getOptionLabel(option),
|
|
121
122
|
role: "button",
|
|
@@ -126,18 +127,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
126
127
|
vue.withKeys(vue.withModifiers($event => ($options.onOptionSelect($event, option)), ["prevent"]), ["space"])
|
|
127
128
|
],
|
|
128
129
|
tabindex: $options.isOptionDisabled(option) ? null : '0',
|
|
129
|
-
onFocus: _cache[
|
|
130
|
-
onBlur: _cache[
|
|
130
|
+
onFocus: _cache[0] || (_cache[0] = $event => ($options.onFocus($event))),
|
|
131
|
+
onBlur: _cache[1] || (_cache[1] = $event => ($options.onBlur($event))),
|
|
131
132
|
"aria-labelledby": $props.ariaLabelledBy,
|
|
132
|
-
class: $options.getButtonClass(option)
|
|
133
|
+
class: vue.normalizeClass($options.getButtonClass(option))
|
|
133
134
|
}, [
|
|
134
135
|
vue.renderSlot(_ctx.$slots, "option", {
|
|
135
136
|
option: option,
|
|
136
137
|
index: i
|
|
137
138
|
}, () => [
|
|
138
|
-
vue.
|
|
139
|
+
vue.createElementVNode("span", _hoisted_2, vue.toDisplayString($options.getOptionLabel(option)), 1)
|
|
139
140
|
])
|
|
140
|
-
], 42,
|
|
141
|
+
], 42, _hoisted_1)), [
|
|
141
142
|
[_directive_ripple]
|
|
142
143
|
])
|
|
143
144
|
}), 128))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/utils"),t=require("primevue/ripple"),
|
|
1
|
+
"use strict";var e=require("primevue/utils"),t=require("primevue/ripple"),l=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o={name:"SelectButton",emits:["update:modelValue","focus","blur","change"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,disabled:Boolean,dataKey:null,ariaLabelledBy:null},methods:{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)},isOptionDisabled(t){return!!this.optionDisabled&&e.ObjectUtils.resolveFieldData(t,this.optionDisabled)},onOptionSelect(t,l){if(this.disabled||this.isOptionDisabled(l))return;let i,o=this.isSelected(l),s=this.getOptionValue(l);i=this.multiple?o?this.modelValue.filter((t=>!e.ObjectUtils.equals(t,s,this.equalityKey))):this.modelValue?[...this.modelValue,s]:[s]:s,this.$emit("update:modelValue",i),this.$emit("change",{event:t,value:i})},isSelected(t){let l=!1,i=this.getOptionValue(t);if(this.multiple){if(this.modelValue)for(let t of this.modelValue)if(e.ObjectUtils.equals(t,i,this.equalityKey)){l=!0;break}}else l=e.ObjectUtils.equals(this.modelValue,i,this.equalityKey);return l},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)},getButtonClass(e){return["p-button p-component",{"p-highlight":this.isSelected(e),"p-disabled":this.isOptionDisabled(e)}]}},computed:{containerClass(){return["p-selectbutton p-buttonset p-component",{"p-disabled":this.disabled}]},equalityKey(){return this.optionValue?null:this.dataKey}},directives:{ripple:i(t).default}};const s=["aria-label","aria-pressed","onClick","onKeydown","tabindex","aria-labelledby"],a={class:"p-button-label"};o.render=function(e,t,i,o,n,r){const u=l.resolveDirective("ripple");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.containerClass),role:"group"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.options,((o,n)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:r.getOptionRenderKey(o),"aria-label":r.getOptionLabel(o),role:"button","aria-pressed":r.isSelected(o),onClick:e=>r.onOptionSelect(e,o,n),onKeydown:[l.withKeys(l.withModifiers((e=>r.onOptionSelect(e,o,n)),["prevent"]),["enter"]),l.withKeys(l.withModifiers((e=>r.onOptionSelect(e,o)),["prevent"]),["space"])],tabindex:r.isOptionDisabled(o)?null:"0",onFocus:t[0]||(t[0]=e=>r.onFocus(e)),onBlur:t[1]||(t[1]=e=>r.onBlur(e)),"aria-labelledby":i.ariaLabelledBy,class:l.normalizeClass(r.getButtonClass(o))},[l.renderSlot(e.$slots,"option",{option:o,index:n},(()=>[l.createElementVNode("span",a,l.toDisplayString(r.getOptionLabel(o)),1)]))],42,s)),[[u]]))),128))],2)},module.exports=o;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ObjectUtils } from 'primevue/utils';
|
|
2
2
|
import Ripple from 'primevue/ripple';
|
|
3
|
-
import { resolveDirective, openBlock,
|
|
3
|
+
import { resolveDirective, openBlock, createElementBlock, normalizeClass, Fragment, renderList, withDirectives, withKeys, withModifiers, renderSlot, createElementVNode, toDisplayString } from 'vue';
|
|
4
4
|
|
|
5
5
|
var script = {
|
|
6
6
|
name: 'SelectButton',
|
|
@@ -99,17 +99,18 @@ var script = {
|
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
const _hoisted_1 =
|
|
102
|
+
const _hoisted_1 = ["aria-label", "aria-pressed", "onClick", "onKeydown", "tabindex", "aria-labelledby"];
|
|
103
|
+
const _hoisted_2 = { class: "p-button-label" };
|
|
103
104
|
|
|
104
105
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
105
106
|
const _directive_ripple = resolveDirective("ripple");
|
|
106
107
|
|
|
107
|
-
return (openBlock(),
|
|
108
|
-
class: $options.containerClass,
|
|
108
|
+
return (openBlock(), createElementBlock("div", {
|
|
109
|
+
class: normalizeClass($options.containerClass),
|
|
109
110
|
role: "group"
|
|
110
111
|
}, [
|
|
111
|
-
(openBlock(true),
|
|
112
|
-
return withDirectives((openBlock(),
|
|
112
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.options, (option, i) => {
|
|
113
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
113
114
|
key: $options.getOptionRenderKey(option),
|
|
114
115
|
"aria-label": $options.getOptionLabel(option),
|
|
115
116
|
role: "button",
|
|
@@ -120,18 +121,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
120
121
|
withKeys(withModifiers($event => ($options.onOptionSelect($event, option)), ["prevent"]), ["space"])
|
|
121
122
|
],
|
|
122
123
|
tabindex: $options.isOptionDisabled(option) ? null : '0',
|
|
123
|
-
onFocus: _cache[
|
|
124
|
-
onBlur: _cache[
|
|
124
|
+
onFocus: _cache[0] || (_cache[0] = $event => ($options.onFocus($event))),
|
|
125
|
+
onBlur: _cache[1] || (_cache[1] = $event => ($options.onBlur($event))),
|
|
125
126
|
"aria-labelledby": $props.ariaLabelledBy,
|
|
126
|
-
class: $options.getButtonClass(option)
|
|
127
|
+
class: normalizeClass($options.getButtonClass(option))
|
|
127
128
|
}, [
|
|
128
129
|
renderSlot(_ctx.$slots, "option", {
|
|
129
130
|
option: option,
|
|
130
131
|
index: i
|
|
131
132
|
}, () => [
|
|
132
|
-
|
|
133
|
+
createElementVNode("span", _hoisted_2, toDisplayString($options.getOptionLabel(option)), 1)
|
|
133
134
|
])
|
|
134
|
-
], 42,
|
|
135
|
+
], 42, _hoisted_1)), [
|
|
135
136
|
[_directive_ripple]
|
|
136
137
|
])
|
|
137
138
|
}), 128))
|
|
@@ -140,4 +141,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
140
141
|
|
|
141
142
|
script.render = render;
|
|
142
143
|
|
|
143
|
-
export default
|
|
144
|
+
export { script as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ObjectUtils as e}from"primevue/utils";import t from"primevue/ripple";import{resolveDirective as l,openBlock as i,
|
|
1
|
+
import{ObjectUtils as e}from"primevue/utils";import t from"primevue/ripple";import{resolveDirective as l,openBlock as i,createElementBlock as o,normalizeClass as a,Fragment as n,renderList as s,withDirectives as u,withKeys as r,withModifiers as p,renderSlot as d,createElementVNode as h,toDisplayString as b}from"vue";var c={name:"SelectButton",emits:["update:modelValue","focus","blur","change"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,disabled:Boolean,dataKey:null,ariaLabelledBy:null},methods:{getOptionLabel(t){return this.optionLabel?e.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.resolveFieldData(t,this.optionValue):t},getOptionRenderKey(t){return this.dataKey?e.resolveFieldData(t,this.dataKey):this.getOptionLabel(t)},isOptionDisabled(t){return!!this.optionDisabled&&e.resolveFieldData(t,this.optionDisabled)},onOptionSelect(t,l){if(this.disabled||this.isOptionDisabled(l))return;let i,o=this.isSelected(l),a=this.getOptionValue(l);i=this.multiple?o?this.modelValue.filter((t=>!e.equals(t,a,this.equalityKey))):this.modelValue?[...this.modelValue,a]:[a]:a,this.$emit("update:modelValue",i),this.$emit("change",{event:t,value:i})},isSelected(t){let l=!1,i=this.getOptionValue(t);if(this.multiple){if(this.modelValue)for(let t of this.modelValue)if(e.equals(t,i,this.equalityKey)){l=!0;break}}else l=e.equals(this.modelValue,i,this.equalityKey);return l},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)},getButtonClass(e){return["p-button p-component",{"p-highlight":this.isSelected(e),"p-disabled":this.isOptionDisabled(e)}]}},computed:{containerClass(){return["p-selectbutton p-buttonset p-component",{"p-disabled":this.disabled}]},equalityKey(){return this.optionValue?null:this.dataKey}},directives:{ripple:t}};const m=["aria-label","aria-pressed","onClick","onKeydown","tabindex","aria-labelledby"],y={class:"p-button-label"};c.render=function(e,t,c,O,g,V){const v=l("ripple");return i(),o("div",{class:a(V.containerClass),role:"group"},[(i(!0),o(n,null,s(c.options,((l,n)=>u((i(),o("div",{key:V.getOptionRenderKey(l),"aria-label":V.getOptionLabel(l),role:"button","aria-pressed":V.isSelected(l),onClick:e=>V.onOptionSelect(e,l,n),onKeydown:[r(p((e=>V.onOptionSelect(e,l,n)),["prevent"]),["enter"]),r(p((e=>V.onOptionSelect(e,l)),["prevent"]),["space"])],tabindex:V.isOptionDisabled(l)?null:"0",onFocus:t[0]||(t[0]=e=>V.onFocus(e)),onBlur:t[1]||(t[1]=e=>V.onBlur(e)),"aria-labelledby":c.ariaLabelledBy,class:a(V.getButtonClass(l))},[d(e.$slots,"option",{option:l,index:n},(()=>[h("span",y,b(V.getOptionLabel(l)),1)]))],42,m)),[[v]]))),128))],2)};export{c as default};
|
|
@@ -99,21 +99,22 @@ this.primevue.selectbutton = (function (utils, Ripple, vue) {
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
directives: {
|
|
102
|
-
'ripple': Ripple__default[
|
|
102
|
+
'ripple': Ripple__default["default"]
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
const _hoisted_1 =
|
|
106
|
+
const _hoisted_1 = ["aria-label", "aria-pressed", "onClick", "onKeydown", "tabindex", "aria-labelledby"];
|
|
107
|
+
const _hoisted_2 = { class: "p-button-label" };
|
|
107
108
|
|
|
108
109
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
109
110
|
const _directive_ripple = vue.resolveDirective("ripple");
|
|
110
111
|
|
|
111
|
-
return (vue.openBlock(), vue.
|
|
112
|
-
class: $options.containerClass,
|
|
112
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
113
|
+
class: vue.normalizeClass($options.containerClass),
|
|
113
114
|
role: "group"
|
|
114
115
|
}, [
|
|
115
|
-
(vue.openBlock(true), vue.
|
|
116
|
-
return vue.withDirectives((vue.openBlock(), vue.
|
|
116
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.options, (option, i) => {
|
|
117
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
117
118
|
key: $options.getOptionRenderKey(option),
|
|
118
119
|
"aria-label": $options.getOptionLabel(option),
|
|
119
120
|
role: "button",
|
|
@@ -124,18 +125,18 @@ this.primevue.selectbutton = (function (utils, Ripple, vue) {
|
|
|
124
125
|
vue.withKeys(vue.withModifiers($event => ($options.onOptionSelect($event, option)), ["prevent"]), ["space"])
|
|
125
126
|
],
|
|
126
127
|
tabindex: $options.isOptionDisabled(option) ? null : '0',
|
|
127
|
-
onFocus: _cache[
|
|
128
|
-
onBlur: _cache[
|
|
128
|
+
onFocus: _cache[0] || (_cache[0] = $event => ($options.onFocus($event))),
|
|
129
|
+
onBlur: _cache[1] || (_cache[1] = $event => ($options.onBlur($event))),
|
|
129
130
|
"aria-labelledby": $props.ariaLabelledBy,
|
|
130
|
-
class: $options.getButtonClass(option)
|
|
131
|
+
class: vue.normalizeClass($options.getButtonClass(option))
|
|
131
132
|
}, [
|
|
132
133
|
vue.renderSlot(_ctx.$slots, "option", {
|
|
133
134
|
option: option,
|
|
134
135
|
index: i
|
|
135
136
|
}, () => [
|
|
136
|
-
vue.
|
|
137
|
+
vue.createElementVNode("span", _hoisted_2, vue.toDisplayString($options.getOptionLabel(option)), 1)
|
|
137
138
|
])
|
|
138
|
-
], 42,
|
|
139
|
+
], 42, _hoisted_1)), [
|
|
139
140
|
[_directive_ripple]
|
|
140
141
|
])
|
|
141
142
|
}), 128))
|
|
@@ -146,4 +147,4 @@ this.primevue.selectbutton = (function (utils, Ripple, vue) {
|
|
|
146
147
|
|
|
147
148
|
return script;
|
|
148
149
|
|
|
149
|
-
}(primevue.utils, primevue.ripple, Vue)
|
|
150
|
+
})(primevue.utils, primevue.ripple, Vue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.selectbutton=function(e,t,i){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o={name:"SelectButton",emits:["update:modelValue","focus","blur","change"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,disabled:Boolean,dataKey:null,ariaLabelledBy:null},methods:{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)},isOptionDisabled(t){return!!this.optionDisabled&&e.ObjectUtils.resolveFieldData(t,this.optionDisabled)},onOptionSelect(t,i){if(this.disabled||this.isOptionDisabled(i))return;let l,o=this.isSelected(i),s=this.getOptionValue(i);l=this.multiple?o?this.modelValue.filter((t=>!e.ObjectUtils.equals(t,s,this.equalityKey))):this.modelValue?[...this.modelValue,s]:[s]:s,this.$emit("update:modelValue",l),this.$emit("change",{event:t,value:l})},isSelected(t){let i=!1,l=this.getOptionValue(t);if(this.multiple){if(this.modelValue)for(let t of this.modelValue)if(e.ObjectUtils.equals(t,l,this.equalityKey)){i=!0;break}}else i=e.ObjectUtils.equals(this.modelValue,l,this.equalityKey);return i},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)},getButtonClass(e){return["p-button p-component",{"p-highlight":this.isSelected(e),"p-disabled":this.isOptionDisabled(e)}]}},computed:{containerClass(){return["p-selectbutton p-buttonset p-component",{"p-disabled":this.disabled}]},equalityKey(){return this.optionValue?null:this.dataKey}},directives:{ripple:l(t).default}};const s={class:"p-button-label"};return o.render=function(e,t,l,o,
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.selectbutton=function(e,t,i){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o={name:"SelectButton",emits:["update:modelValue","focus","blur","change"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,disabled:Boolean,dataKey:null,ariaLabelledBy:null},methods:{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)},isOptionDisabled(t){return!!this.optionDisabled&&e.ObjectUtils.resolveFieldData(t,this.optionDisabled)},onOptionSelect(t,i){if(this.disabled||this.isOptionDisabled(i))return;let l,o=this.isSelected(i),s=this.getOptionValue(i);l=this.multiple?o?this.modelValue.filter((t=>!e.ObjectUtils.equals(t,s,this.equalityKey))):this.modelValue?[...this.modelValue,s]:[s]:s,this.$emit("update:modelValue",l),this.$emit("change",{event:t,value:l})},isSelected(t){let i=!1,l=this.getOptionValue(t);if(this.multiple){if(this.modelValue)for(let t of this.modelValue)if(e.ObjectUtils.equals(t,l,this.equalityKey)){i=!0;break}}else i=e.ObjectUtils.equals(this.modelValue,l,this.equalityKey);return i},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)},getButtonClass(e){return["p-button p-component",{"p-highlight":this.isSelected(e),"p-disabled":this.isOptionDisabled(e)}]}},computed:{containerClass(){return["p-selectbutton p-buttonset p-component",{"p-disabled":this.disabled}]},equalityKey(){return this.optionValue?null:this.dataKey}},directives:{ripple:l(t).default}};const s=["aria-label","aria-pressed","onClick","onKeydown","tabindex","aria-labelledby"],n={class:"p-button-label"};return o.render=function(e,t,l,o,a,r){const u=i.resolveDirective("ripple");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.containerClass),role:"group"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.options,((o,a)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:r.getOptionRenderKey(o),"aria-label":r.getOptionLabel(o),role:"button","aria-pressed":r.isSelected(o),onClick:e=>r.onOptionSelect(e,o,a),onKeydown:[i.withKeys(i.withModifiers((e=>r.onOptionSelect(e,o,a)),["prevent"]),["enter"]),i.withKeys(i.withModifiers((e=>r.onOptionSelect(e,o)),["prevent"]),["space"])],tabindex:r.isOptionDisabled(o)?null:"0",onFocus:t[0]||(t[0]=e=>r.onFocus(e)),onBlur:t[1]||(t[1]=e=>r.onBlur(e)),"aria-labelledby":l.ariaLabelledBy,class:i.normalizeClass(r.getButtonClass(o))},[i.renderSlot(e.$slots,"option",{option:o,index:a},(()=>[i.createElementVNode("span",n,i.toDisplayString(r.getOptionLabel(o)),1)]))],42,s)),[[u]]))),128))],2)},o}(primevue.utils,primevue.ripple,Vue);
|
package/sidebar/sidebar.cjs.js
CHANGED
|
@@ -149,13 +149,18 @@ var script = {
|
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
directives: {
|
|
152
|
-
'ripple': Ripple__default[
|
|
152
|
+
'ripple': Ripple__default["default"]
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
-
const _hoisted_1 =
|
|
157
|
-
const _hoisted_2 =
|
|
158
|
-
const _hoisted_3 =
|
|
156
|
+
const _hoisted_1 = ["aria-modal"];
|
|
157
|
+
const _hoisted_2 = { class: "p-sidebar-header" };
|
|
158
|
+
const _hoisted_3 = ["aria-label"];
|
|
159
|
+
const _hoisted_4 = /*#__PURE__*/vue.createElementVNode("span", { class: "p-sidebar-close-icon pi pi-times" }, null, -1);
|
|
160
|
+
const _hoisted_5 = [
|
|
161
|
+
_hoisted_4
|
|
162
|
+
];
|
|
163
|
+
const _hoisted_6 = { class: "p-sidebar-content" };
|
|
159
164
|
|
|
160
165
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
161
166
|
const _directive_ripple = vue.resolveDirective("ripple");
|
|
@@ -170,32 +175,30 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
170
175
|
}, {
|
|
171
176
|
default: vue.withCtx(() => [
|
|
172
177
|
($props.visible)
|
|
173
|
-
? (vue.openBlock(), vue.
|
|
178
|
+
? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
174
179
|
key: 0,
|
|
175
180
|
class: $options.containerClass,
|
|
176
181
|
ref: $options.containerRef,
|
|
177
182
|
role: "complementary",
|
|
178
183
|
"aria-modal": $props.modal
|
|
179
184
|
}, _ctx.$attrs), [
|
|
180
|
-
vue.
|
|
185
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
181
186
|
($props.showCloseIcon)
|
|
182
|
-
? vue.withDirectives((vue.openBlock(), vue.
|
|
187
|
+
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
|
|
183
188
|
key: 0,
|
|
184
189
|
class: "p-sidebar-close p-sidebar-icon p-link",
|
|
185
|
-
onClick: _cache[
|
|
190
|
+
onClick: _cache[0] || (_cache[0] = (...args) => ($options.hide && $options.hide(...args))),
|
|
186
191
|
"aria-label": $props.ariaCloseLabel,
|
|
187
192
|
type: "button"
|
|
188
|
-
}, [
|
|
189
|
-
_hoisted_2
|
|
190
|
-
], 8, ["aria-label"])), [
|
|
193
|
+
}, _hoisted_5, 8, _hoisted_3)), [
|
|
191
194
|
[_directive_ripple]
|
|
192
195
|
])
|
|
193
196
|
: vue.createCommentVNode("", true)
|
|
194
197
|
]),
|
|
195
|
-
vue.
|
|
198
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
196
199
|
vue.renderSlot(_ctx.$slots, "default")
|
|
197
200
|
])
|
|
198
|
-
], 16,
|
|
201
|
+
], 16, _hoisted_1))
|
|
199
202
|
: vue.createCommentVNode("", true)
|
|
200
203
|
]),
|
|
201
204
|
_: 3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/utils"),t=require("primevue/ripple"),n=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s={name:"Sidebar",emits:["update:visible","show","hide"],inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},position:{type:String,default:"left"},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},dismissable:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},ariaCloseLabel:{type:String,default:"close"}},mask:null,maskClickListener:null,container:null,beforeUnmount(){this.destroyModal(),this.container&&this.autoZIndex&&e.ZIndexUtils.clear(this.container),this.container=null},methods:{hide(){this.$emit("update:visible",!1)},onEnter(t){this.$emit("show"),this.autoZIndex&&e.ZIndexUtils.set("modal",t,this.baseZIndex||this.$primevue.config.zIndex.modal),this.focus(),this.modal&&!this.fullScreen&&this.enableModality()},onLeave(){this.$emit("hide"),this.modal&&!this.fullScreen&&this.disableModality()},onAfterLeave(t){this.autoZIndex&&e.ZIndexUtils.clear(t)},focus(){let t=e.DomHandler.findSingle(this.container,"input,button");t&&t.focus()},enableModality(){this.mask||(this.mask=document.createElement("div"),this.mask.setAttribute("class","p-sidebar-mask p-component-overlay p-component-overlay-enter"),this.mask.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1),this.dismissable&&this.bindMaskClickListener(),document.body.appendChild(this.mask),e.DomHandler.addClass(document.body,"p-overflow-hidden"))},disableModality(){this.mask&&(e.DomHandler.addClass(this.mask,"p-component-overlay-leave"),this.mask.addEventListener("animationend",(()=>{this.destroyModal()})))},bindMaskClickListener(){this.maskClickListener||(this.maskClickListener=()=>{this.hide()},this.mask.addEventListener("click",this.maskClickListener))},unbindMaskClickListener(){this.maskClickListener&&(this.mask.removeEventListener("click",this.maskClickListener),this.maskClickListener=null)},destroyModal(){this.mask&&(this.unbindMaskClickListener(),document.body.removeChild(this.mask),e.DomHandler.removeClass(document.body,"p-overflow-hidden"),this.mask=null)},containerRef(e){this.container=e}},computed:{containerClass(){return["p-sidebar p-component p-sidebar-"+this.position,{"p-sidebar-active":this.visible,"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},fullScreen(){return"full"===this.position}},directives:{ripple:i(t).default}};const a={class:"p-sidebar-header"},
|
|
1
|
+
"use strict";var e=require("primevue/utils"),t=require("primevue/ripple"),n=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s={name:"Sidebar",emits:["update:visible","show","hide"],inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},position:{type:String,default:"left"},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},dismissable:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},ariaCloseLabel:{type:String,default:"close"}},mask:null,maskClickListener:null,container:null,beforeUnmount(){this.destroyModal(),this.container&&this.autoZIndex&&e.ZIndexUtils.clear(this.container),this.container=null},methods:{hide(){this.$emit("update:visible",!1)},onEnter(t){this.$emit("show"),this.autoZIndex&&e.ZIndexUtils.set("modal",t,this.baseZIndex||this.$primevue.config.zIndex.modal),this.focus(),this.modal&&!this.fullScreen&&this.enableModality()},onLeave(){this.$emit("hide"),this.modal&&!this.fullScreen&&this.disableModality()},onAfterLeave(t){this.autoZIndex&&e.ZIndexUtils.clear(t)},focus(){let t=e.DomHandler.findSingle(this.container,"input,button");t&&t.focus()},enableModality(){this.mask||(this.mask=document.createElement("div"),this.mask.setAttribute("class","p-sidebar-mask p-component-overlay p-component-overlay-enter"),this.mask.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1),this.dismissable&&this.bindMaskClickListener(),document.body.appendChild(this.mask),e.DomHandler.addClass(document.body,"p-overflow-hidden"))},disableModality(){this.mask&&(e.DomHandler.addClass(this.mask,"p-component-overlay-leave"),this.mask.addEventListener("animationend",(()=>{this.destroyModal()})))},bindMaskClickListener(){this.maskClickListener||(this.maskClickListener=()=>{this.hide()},this.mask.addEventListener("click",this.maskClickListener))},unbindMaskClickListener(){this.maskClickListener&&(this.mask.removeEventListener("click",this.maskClickListener),this.maskClickListener=null)},destroyModal(){this.mask&&(this.unbindMaskClickListener(),document.body.removeChild(this.mask),e.DomHandler.removeClass(document.body,"p-overflow-hidden"),this.mask=null)},containerRef(e){this.container=e}},computed:{containerClass(){return["p-sidebar p-component p-sidebar-"+this.position,{"p-sidebar-active":this.visible,"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},fullScreen(){return"full"===this.position}},directives:{ripple:i(t).default}};const a=["aria-modal"],r={class:"p-sidebar-header"},o=["aria-label"],l=[n.createElementVNode("span",{class:"p-sidebar-close-icon pi pi-times"},null,-1)],d={class:"p-sidebar-content"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===n&&i.firstChild?i.insertBefore(s,i.firstChild):i.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-sidebar {\n position: fixed;\n -webkit-transition: -webkit-transform .3s;\n transition: -webkit-transform .3s;\n transition: transform .3s;\n transition: transform .3s, -webkit-transform .3s;\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}\n.p-sidebar-content {\n position: relative;\n overflow-y: auto;\n}\n.p-sidebar-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: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.p-sidebar-icon {\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 position: relative;\n overflow: hidden;\n}\n.p-sidebar-left {\n top: 0;\n left: 0;\n width: 20rem;\n height: 100%;\n}\n.p-sidebar-right {\n top: 0;\n right: 0;\n width: 20rem;\n height: 100%;\n}\n.p-sidebar-top {\n top: 0;\n left: 0;\n width: 100%;\n height: 10rem;\n}\n.p-sidebar-bottom {\n bottom: 0;\n left: 0;\n width: 100%;\n height: 10rem;\n}\n.p-sidebar-full {\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n -webkit-transition: none;\n transition: none;\n}\n.p-sidebar-left.p-sidebar-enter-from,\n.p-sidebar-left.p-sidebar-leave-to {\n -webkit-transform: translateX(-100%);\n transform: translateX(-100%);\n}\n.p-sidebar-right.p-sidebar-enter-from,\n.p-sidebar-right.p-sidebar-leave-to {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n.p-sidebar-top.p-sidebar-enter-from,\n.p-sidebar-top.p-sidebar-leave-to {\n -webkit-transform: translateY(-100%);\n transform: translateY(-100%);\n}\n.p-sidebar-bottom.p-sidebar-enter-from,\n.p-sidebar-bottom.p-sidebar-leave-to {\n -webkit-transform: translateY(100%);\n transform: translateY(100%);\n}\n.p-sidebar-full.p-sidebar-enter-from,\n.p-sidebar-full.p-sidebar-leave-to {\n opacity: 0;\n}\n.p-sidebar-full.p-sidebar-enter-active,\n.p-sidebar-full.p-sidebar-leave-active {\n -webkit-transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);\n transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);\n}\n.p-sidebar-left.p-sidebar-sm,\n.p-sidebar-right.p-sidebar-sm {\n width: 20rem;\n}\n.p-sidebar-left.p-sidebar-md,\n.p-sidebar-right.p-sidebar-md {\n width: 40rem;\n}\n.p-sidebar-left.p-sidebar-lg,\n.p-sidebar-right.p-sidebar-lg {\n width: 60rem;\n}\n.p-sidebar-top.p-sidebar-sm,\n.p-sidebar-bottom.p-sidebar-sm {\n height: 10rem;\n}\n.p-sidebar-top.p-sidebar-md,\n.p-sidebar-bottom.p-sidebar-md {\n height: 20rem;\n}\n.p-sidebar-top.p-sidebar-lg,\n.p-sidebar-bottom.p-sidebar-lg {\n height: 30rem;\n}\n@media screen and (max-width: 64em) {\n.p-sidebar-left.p-sidebar-lg,\n .p-sidebar-left.p-sidebar-md,\n .p-sidebar-right.p-sidebar-lg,\n .p-sidebar-right.p-sidebar-md {\n width: 20rem;\n}\n}\n"),s.render=function(e,t,i,s,p,b){const m=n.resolveDirective("ripple");return n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"p-sidebar",onEnter:b.onEnter,onLeave:b.onLeave,onAfterLeave:b.onAfterLeave,appear:""},{default:n.withCtx((()=>[i.visible?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0,class:b.containerClass,ref:b.containerRef,role:"complementary","aria-modal":i.modal},e.$attrs),[n.createElementVNode("div",r,[i.showCloseIcon?n.withDirectives((n.openBlock(),n.createElementBlock("button",{key:0,class:"p-sidebar-close p-sidebar-icon p-link",onClick:t[0]||(t[0]=(...e)=>b.hide&&b.hide(...e)),"aria-label":i.ariaCloseLabel,type:"button"},l,8,o)),[[m]]):n.createCommentVNode("",!0)]),n.createElementVNode("div",d,[n.renderSlot(e.$slots,"default")])],16,a)):n.createCommentVNode("",!0)])),_:3},8,["onEnter","onLeave","onAfterLeave"])])},module.exports=s;
|
package/sidebar/sidebar.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ZIndexUtils, DomHandler } from 'primevue/utils';
|
|
2
2
|
import Ripple from 'primevue/ripple';
|
|
3
|
-
import { resolveDirective, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, mergeProps, withDirectives, createCommentVNode, renderSlot } from 'vue';
|
|
3
|
+
import { resolveDirective, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, createElementBlock, mergeProps, createElementVNode, withDirectives, createCommentVNode, renderSlot } from 'vue';
|
|
4
4
|
|
|
5
5
|
var script = {
|
|
6
6
|
name: 'Sidebar',
|
|
@@ -147,9 +147,14 @@ var script = {
|
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
-
const _hoisted_1 =
|
|
151
|
-
const _hoisted_2 =
|
|
152
|
-
const _hoisted_3 =
|
|
150
|
+
const _hoisted_1 = ["aria-modal"];
|
|
151
|
+
const _hoisted_2 = { class: "p-sidebar-header" };
|
|
152
|
+
const _hoisted_3 = ["aria-label"];
|
|
153
|
+
const _hoisted_4 = /*#__PURE__*/createElementVNode("span", { class: "p-sidebar-close-icon pi pi-times" }, null, -1);
|
|
154
|
+
const _hoisted_5 = [
|
|
155
|
+
_hoisted_4
|
|
156
|
+
];
|
|
157
|
+
const _hoisted_6 = { class: "p-sidebar-content" };
|
|
153
158
|
|
|
154
159
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
155
160
|
const _directive_ripple = resolveDirective("ripple");
|
|
@@ -164,32 +169,30 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
164
169
|
}, {
|
|
165
170
|
default: withCtx(() => [
|
|
166
171
|
($props.visible)
|
|
167
|
-
? (openBlock(),
|
|
172
|
+
? (openBlock(), createElementBlock("div", mergeProps({
|
|
168
173
|
key: 0,
|
|
169
174
|
class: $options.containerClass,
|
|
170
175
|
ref: $options.containerRef,
|
|
171
176
|
role: "complementary",
|
|
172
177
|
"aria-modal": $props.modal
|
|
173
178
|
}, _ctx.$attrs), [
|
|
174
|
-
|
|
179
|
+
createElementVNode("div", _hoisted_2, [
|
|
175
180
|
($props.showCloseIcon)
|
|
176
|
-
? withDirectives((openBlock(),
|
|
181
|
+
? withDirectives((openBlock(), createElementBlock("button", {
|
|
177
182
|
key: 0,
|
|
178
183
|
class: "p-sidebar-close p-sidebar-icon p-link",
|
|
179
|
-
onClick: _cache[
|
|
184
|
+
onClick: _cache[0] || (_cache[0] = (...args) => ($options.hide && $options.hide(...args))),
|
|
180
185
|
"aria-label": $props.ariaCloseLabel,
|
|
181
186
|
type: "button"
|
|
182
|
-
}, [
|
|
183
|
-
_hoisted_2
|
|
184
|
-
], 8, ["aria-label"])), [
|
|
187
|
+
}, _hoisted_5, 8, _hoisted_3)), [
|
|
185
188
|
[_directive_ripple]
|
|
186
189
|
])
|
|
187
190
|
: createCommentVNode("", true)
|
|
188
191
|
]),
|
|
189
|
-
|
|
192
|
+
createElementVNode("div", _hoisted_6, [
|
|
190
193
|
renderSlot(_ctx.$slots, "default")
|
|
191
194
|
])
|
|
192
|
-
], 16,
|
|
195
|
+
], 16, _hoisted_1))
|
|
193
196
|
: createCommentVNode("", true)
|
|
194
197
|
]),
|
|
195
198
|
_: 3
|
|
@@ -229,4 +232,4 @@ styleInject(css_248z);
|
|
|
229
232
|
|
|
230
233
|
script.render = render;
|
|
231
234
|
|
|
232
|
-
export default
|
|
235
|
+
export { script as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ZIndexUtils as e,DomHandler as t}from"primevue/utils";import i from"primevue/ripple";import{resolveDirective as n,openBlock as s,createBlock as a,Teleport as r,createVNode as o,Transition as d,withCtx as l,
|
|
1
|
+
import{ZIndexUtils as e,DomHandler as t}from"primevue/utils";import i from"primevue/ripple";import{resolveDirective as n,openBlock as s,createBlock as a,Teleport as r,createVNode as o,Transition as d,withCtx as l,createElementBlock as p,mergeProps as b,createElementVNode as m,withDirectives as h,createCommentVNode as c,renderSlot as f}from"vue";var u={name:"Sidebar",emits:["update:visible","show","hide"],inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},position:{type:String,default:"left"},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},dismissable:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},ariaCloseLabel:{type:String,default:"close"}},mask:null,maskClickListener:null,container:null,beforeUnmount(){this.destroyModal(),this.container&&this.autoZIndex&&e.clear(this.container),this.container=null},methods:{hide(){this.$emit("update:visible",!1)},onEnter(t){this.$emit("show"),this.autoZIndex&&e.set("modal",t,this.baseZIndex||this.$primevue.config.zIndex.modal),this.focus(),this.modal&&!this.fullScreen&&this.enableModality()},onLeave(){this.$emit("hide"),this.modal&&!this.fullScreen&&this.disableModality()},onAfterLeave(t){this.autoZIndex&&e.clear(t)},focus(){let e=t.findSingle(this.container,"input,button");e&&e.focus()},enableModality(){this.mask||(this.mask=document.createElement("div"),this.mask.setAttribute("class","p-sidebar-mask p-component-overlay p-component-overlay-enter"),this.mask.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1),this.dismissable&&this.bindMaskClickListener(),document.body.appendChild(this.mask),t.addClass(document.body,"p-overflow-hidden"))},disableModality(){this.mask&&(t.addClass(this.mask,"p-component-overlay-leave"),this.mask.addEventListener("animationend",(()=>{this.destroyModal()})))},bindMaskClickListener(){this.maskClickListener||(this.maskClickListener=()=>{this.hide()},this.mask.addEventListener("click",this.maskClickListener))},unbindMaskClickListener(){this.maskClickListener&&(this.mask.removeEventListener("click",this.maskClickListener),this.maskClickListener=null)},destroyModal(){this.mask&&(this.unbindMaskClickListener(),document.body.removeChild(this.mask),t.removeClass(document.body,"p-overflow-hidden"),this.mask=null)},containerRef(e){this.container=e}},computed:{containerClass(){return["p-sidebar p-component p-sidebar-"+this.position,{"p-sidebar-active":this.visible,"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},fullScreen(){return"full"===this.position}},directives:{ripple:i}};const k=["aria-modal"],v={class:"p-sidebar-header"},y=["aria-label"],x=[m("span",{class:"p-sidebar-close-icon pi pi-times"},null,-1)],g={class:"p-sidebar-content"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-sidebar {\n position: fixed;\n -webkit-transition: -webkit-transform .3s;\n transition: -webkit-transform .3s;\n transition: transform .3s;\n transition: transform .3s, -webkit-transform .3s;\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}\n.p-sidebar-content {\n position: relative;\n overflow-y: auto;\n}\n.p-sidebar-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: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.p-sidebar-icon {\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 position: relative;\n overflow: hidden;\n}\n.p-sidebar-left {\n top: 0;\n left: 0;\n width: 20rem;\n height: 100%;\n}\n.p-sidebar-right {\n top: 0;\n right: 0;\n width: 20rem;\n height: 100%;\n}\n.p-sidebar-top {\n top: 0;\n left: 0;\n width: 100%;\n height: 10rem;\n}\n.p-sidebar-bottom {\n bottom: 0;\n left: 0;\n width: 100%;\n height: 10rem;\n}\n.p-sidebar-full {\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n -webkit-transition: none;\n transition: none;\n}\n.p-sidebar-left.p-sidebar-enter-from,\n.p-sidebar-left.p-sidebar-leave-to {\n -webkit-transform: translateX(-100%);\n transform: translateX(-100%);\n}\n.p-sidebar-right.p-sidebar-enter-from,\n.p-sidebar-right.p-sidebar-leave-to {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n.p-sidebar-top.p-sidebar-enter-from,\n.p-sidebar-top.p-sidebar-leave-to {\n -webkit-transform: translateY(-100%);\n transform: translateY(-100%);\n}\n.p-sidebar-bottom.p-sidebar-enter-from,\n.p-sidebar-bottom.p-sidebar-leave-to {\n -webkit-transform: translateY(100%);\n transform: translateY(100%);\n}\n.p-sidebar-full.p-sidebar-enter-from,\n.p-sidebar-full.p-sidebar-leave-to {\n opacity: 0;\n}\n.p-sidebar-full.p-sidebar-enter-active,\n.p-sidebar-full.p-sidebar-leave-active {\n -webkit-transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);\n transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);\n}\n.p-sidebar-left.p-sidebar-sm,\n.p-sidebar-right.p-sidebar-sm {\n width: 20rem;\n}\n.p-sidebar-left.p-sidebar-md,\n.p-sidebar-right.p-sidebar-md {\n width: 40rem;\n}\n.p-sidebar-left.p-sidebar-lg,\n.p-sidebar-right.p-sidebar-lg {\n width: 60rem;\n}\n.p-sidebar-top.p-sidebar-sm,\n.p-sidebar-bottom.p-sidebar-sm {\n height: 10rem;\n}\n.p-sidebar-top.p-sidebar-md,\n.p-sidebar-bottom.p-sidebar-md {\n height: 20rem;\n}\n.p-sidebar-top.p-sidebar-lg,\n.p-sidebar-bottom.p-sidebar-lg {\n height: 30rem;\n}\n@media screen and (max-width: 64em) {\n.p-sidebar-left.p-sidebar-lg,\n .p-sidebar-left.p-sidebar-md,\n .p-sidebar-right.p-sidebar-lg,\n .p-sidebar-right.p-sidebar-md {\n width: 20rem;\n}\n}\n"),u.render=function(e,t,i,u,w,C){const L=n("ripple");return s(),a(r,{to:"body"},[o(d,{name:"p-sidebar",onEnter:C.onEnter,onLeave:C.onLeave,onAfterLeave:C.onAfterLeave,appear:""},{default:l((()=>[i.visible?(s(),p("div",b({key:0,class:C.containerClass,ref:C.containerRef,role:"complementary","aria-modal":i.modal},e.$attrs),[m("div",v,[i.showCloseIcon?h((s(),p("button",{key:0,class:"p-sidebar-close p-sidebar-icon p-link",onClick:t[0]||(t[0]=(...e)=>C.hide&&C.hide(...e)),"aria-label":i.ariaCloseLabel,type:"button"},x,8,y)),[[L]]):c("",!0)]),m("div",g,[f(e.$slots,"default")])],16,k)):c("",!0)])),_:3},8,["onEnter","onLeave","onAfterLeave"])])};export{u as default};
|