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
package/slider/slider.js
CHANGED
|
@@ -319,68 +319,72 @@ this.primevue.slider = (function (utils, vue) {
|
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
+
const _hoisted_1 = ["aria-valuemin", "aria-valuenow", "aria-valuemax", "aria-labelledby"];
|
|
323
|
+
const _hoisted_2 = ["aria-valuemin", "aria-valuenow", "aria-valuemax", "aria-labelledby"];
|
|
324
|
+
const _hoisted_3 = ["aria-valuemin", "aria-valuenow", "aria-valuemax", "aria-labelledby"];
|
|
325
|
+
|
|
322
326
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
323
|
-
return (vue.openBlock(), vue.
|
|
324
|
-
class: $options.containerClass,
|
|
325
|
-
onClick: _cache[
|
|
327
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
328
|
+
class: vue.normalizeClass($options.containerClass),
|
|
329
|
+
onClick: _cache[15] || (_cache[15] = (...args) => ($options.onBarClick && $options.onBarClick(...args)))
|
|
326
330
|
}, [
|
|
327
|
-
vue.
|
|
331
|
+
vue.createElementVNode("span", {
|
|
328
332
|
class: "p-slider-range",
|
|
329
|
-
style: $options.rangeStyle
|
|
333
|
+
style: vue.normalizeStyle($options.rangeStyle)
|
|
330
334
|
}, null, 4),
|
|
331
335
|
(!$props.range)
|
|
332
|
-
? (vue.openBlock(), vue.
|
|
336
|
+
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
333
337
|
key: 0,
|
|
334
338
|
class: "p-slider-handle",
|
|
335
|
-
style: $options.handleStyle,
|
|
336
|
-
onTouchstart: _cache[
|
|
337
|
-
onTouchmove: _cache[
|
|
338
|
-
onTouchend: _cache[
|
|
339
|
-
onMousedown: _cache[
|
|
340
|
-
onKeydown: _cache[
|
|
339
|
+
style: vue.normalizeStyle($options.handleStyle),
|
|
340
|
+
onTouchstart: _cache[0] || (_cache[0] = $event => ($options.onDragStart($event))),
|
|
341
|
+
onTouchmove: _cache[1] || (_cache[1] = $event => ($options.onDrag($event))),
|
|
342
|
+
onTouchend: _cache[2] || (_cache[2] = $event => ($options.onDragEnd($event))),
|
|
343
|
+
onMousedown: _cache[3] || (_cache[3] = $event => ($options.onMouseDown($event))),
|
|
344
|
+
onKeydown: _cache[4] || (_cache[4] = $event => ($options.onKeyDown($event))),
|
|
341
345
|
tabindex: "0",
|
|
342
346
|
role: "slider",
|
|
343
347
|
"aria-valuemin": $props.min,
|
|
344
348
|
"aria-valuenow": $props.modelValue,
|
|
345
349
|
"aria-valuemax": $props.max,
|
|
346
350
|
"aria-labelledby": $props.ariaLabelledBy
|
|
347
|
-
}, null, 44,
|
|
351
|
+
}, null, 44, _hoisted_1))
|
|
348
352
|
: vue.createCommentVNode("", true),
|
|
349
353
|
($props.range)
|
|
350
|
-
? (vue.openBlock(), vue.
|
|
354
|
+
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
351
355
|
key: 1,
|
|
352
356
|
class: "p-slider-handle",
|
|
353
|
-
style: $options.rangeStartHandleStyle,
|
|
354
|
-
onTouchstart: _cache[
|
|
355
|
-
onTouchmove: _cache[
|
|
356
|
-
onTouchend: _cache[
|
|
357
|
-
onMousedown: _cache[
|
|
358
|
-
onKeydown: _cache[
|
|
357
|
+
style: vue.normalizeStyle($options.rangeStartHandleStyle),
|
|
358
|
+
onTouchstart: _cache[5] || (_cache[5] = $event => ($options.onDragStart($event, 0))),
|
|
359
|
+
onTouchmove: _cache[6] || (_cache[6] = $event => ($options.onDrag($event))),
|
|
360
|
+
onTouchend: _cache[7] || (_cache[7] = $event => ($options.onDragEnd($event))),
|
|
361
|
+
onMousedown: _cache[8] || (_cache[8] = $event => ($options.onMouseDown($event, 0))),
|
|
362
|
+
onKeydown: _cache[9] || (_cache[9] = $event => ($options.onKeyDown($event))),
|
|
359
363
|
tabindex: "0",
|
|
360
364
|
role: "slider",
|
|
361
365
|
"aria-valuemin": $props.min,
|
|
362
366
|
"aria-valuenow": $props.modelValue ? $props.modelValue[0] : null,
|
|
363
367
|
"aria-valuemax": $props.max,
|
|
364
368
|
"aria-labelledby": $props.ariaLabelledBy
|
|
365
|
-
}, null, 44,
|
|
369
|
+
}, null, 44, _hoisted_2))
|
|
366
370
|
: vue.createCommentVNode("", true),
|
|
367
371
|
($props.range)
|
|
368
|
-
? (vue.openBlock(), vue.
|
|
372
|
+
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
369
373
|
key: 2,
|
|
370
374
|
class: "p-slider-handle",
|
|
371
|
-
style: $options.rangeEndHandleStyle,
|
|
372
|
-
onTouchstart: _cache[
|
|
373
|
-
onTouchmove: _cache[
|
|
374
|
-
onTouchend: _cache[
|
|
375
|
-
onMousedown: _cache[
|
|
376
|
-
onKeydown: _cache[
|
|
375
|
+
style: vue.normalizeStyle($options.rangeEndHandleStyle),
|
|
376
|
+
onTouchstart: _cache[10] || (_cache[10] = $event => ($options.onDragStart($event, 1))),
|
|
377
|
+
onTouchmove: _cache[11] || (_cache[11] = $event => ($options.onDrag($event))),
|
|
378
|
+
onTouchend: _cache[12] || (_cache[12] = $event => ($options.onDragEnd($event))),
|
|
379
|
+
onMousedown: _cache[13] || (_cache[13] = $event => ($options.onMouseDown($event, 1))),
|
|
380
|
+
onKeydown: _cache[14] || (_cache[14] = $event => ($options.onKeyDown($event, 1))),
|
|
377
381
|
tabindex: "0",
|
|
378
382
|
role: "slider",
|
|
379
383
|
"aria-valuemin": $props.min,
|
|
380
384
|
"aria-valuenow": $props.modelValue ? $props.modelValue[1] : null,
|
|
381
385
|
"aria-valuemax": $props.max,
|
|
382
386
|
"aria-labelledby": $props.ariaLabelledBy
|
|
383
|
-
}, null, 44,
|
|
387
|
+
}, null, 44, _hoisted_3))
|
|
384
388
|
: vue.createCommentVNode("", true)
|
|
385
389
|
], 2))
|
|
386
390
|
}
|
|
@@ -419,4 +423,4 @@ this.primevue.slider = (function (utils, vue) {
|
|
|
419
423
|
|
|
420
424
|
return script;
|
|
421
425
|
|
|
422
|
-
}(primevue.utils, Vue)
|
|
426
|
+
})(primevue.utils, Vue);
|
package/slider/slider.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.slider=function(e,t){"use strict";var i={name:"Slider",emits:["update:modelValue","change","slideend"],props:{modelValue:[Number,Array],min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:"horizontal"},step:{type:Number,default:null},range:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ariaLabelledBy:{type:String,default:null}},dragging:!1,handleIndex:null,initX:null,initY:null,barWidth:null,barHeight:null,dragListener:null,dragEndListener:null,beforeUnmount(){this.unbindDragListeners()},methods:{updateDomData(){let t=this.$el.getBoundingClientRect();this.initX=t.left+e.DomHandler.getWindowScrollLeft(),this.initY=t.top+e.DomHandler.getWindowScrollTop(),this.barWidth=this.$el.offsetWidth,this.barHeight=this.$el.offsetHeight},setValue(e){let t,i=e.touches?e.touches[0].pageX:e.pageX,n=e.touches?e.touches[0].pageY:e.pageY;t="horizontal"===this.orientation?100*(i-this.initX)/this.barWidth:100*(this.initY+this.barHeight-n)/this.barHeight;let a=(this.max-this.min)*(t/100)+this.min;if(this.step){const e=this.range?this.modelValue[this.handleIndex]:this.modelValue,t=a-e;t<0?a=e+Math.ceil(a/this.step-e/this.step)*this.step:t>0&&(a=e+Math.floor(a/this.step-e/this.step)*this.step)}else a=Math.floor(a);this.updateModel(e,a)},updateModel(e,t){let i,n=parseFloat(t.toFixed(10));if(this.range)if(i=this.modelValue?[...this.modelValue]:[],0==this.handleIndex){let e=this.modelValue?this.modelValue[1]:this.max;n<this.min?n=this.min:n>=e&&(n=e),i[0]=n,i[1]=i[1]||this.max}else{let e=this.modelValue?this.modelValue[0]:this.min;n>this.max?n=this.max:n<=e&&(n=e),i[0]=i[0]||this.min,i[1]=n}else n<this.min?n=this.min:n>this.max&&(n=this.max),i=n;this.$emit("update:modelValue",i),this.$emit("change",i)},onDragStart(t,i){this.disabled||(e.DomHandler.addClass(this.$el,"p-slider-sliding"),this.dragging=!0,this.updateDomData(),this.range&&this.modelValue[0]===this.max?this.handleIndex=0:this.handleIndex=i,t.preventDefault())},onDrag(e){this.dragging&&(this.setValue(e),e.preventDefault())},onDragEnd(t){this.dragging&&(this.dragging=!1,e.DomHandler.removeClass(this.$el,"p-slider-sliding"),this.$emit("slideend",{originalEvent:t,value:this.modelValue}))},onBarClick(t){this.disabled||e.DomHandler.hasClass(t.target,"p-slider-handle")||(this.updateDomData(),this.setValue(t))},onMouseDown(e,t){this.bindDragListeners(),this.onDragStart(e,t)},onKeyDown(e,t){switch(this.handleIndex=t,e.which){case 40:this.vertical&&(this.decrementValue(e,t),e.preventDefault());break;case 38:this.vertical&&(this.incrementValue(e,t),e.preventDefault());break;case 37:this.horizontal&&(this.decrementValue(e,t),e.preventDefault());break;case 39:this.horizontal&&(this.incrementValue(e,t),e.preventDefault())}},decrementValue(e,t){let i;i=this.range?this.step?this.modelValue[t]-this.step:this.modelValue[t]-1:this.step?this.modelValue-this.step:this.modelValue-1,this.updateModel(e,i),e.preventDefault()},incrementValue(e,t){let i;i=this.range?this.step?this.modelValue[t]+this.step:this.modelValue[t]+1:this.step?this.modelValue+this.step:this.modelValue+1,this.updateModel(e,i),e.preventDefault()},bindDragListeners(){this.dragListener||(this.dragListener=this.onDrag.bind(this),document.addEventListener("mousemove",this.dragListener)),this.dragEndListener||(this.dragEndListener=this.onDragEnd.bind(this),document.addEventListener("mouseup",this.dragEndListener))},unbindDragListeners(){this.dragListener&&(document.removeEventListener("mousemove",this.dragListener),this.dragListener=null),this.dragEndListener&&(document.removeEventListener("mouseup",this.dragEndListener),this.dragEndListener=null)}},computed:{containerClass(){return["p-slider p-component",{"p-disabled":this.disabled,"p-slider-horizontal":"horizontal"===this.orientation,"p-slider-vertical":"vertical"===this.orientation}]},horizontal(){return"horizontal"===this.orientation},vertical(){return"vertical"===this.orientation},rangeStyle(){return this.range?this.horizontal?{left:this.rangeStartPosition+"%",width:this.rangeEndPosition-this.rangeStartPosition+"%"}:{bottom:this.rangeStartPosition+"%",height:this.rangeEndPosition-this.rangeStartHandlePosition+"%"}:this.horizontal?{width:this.handlePosition+"%"}:{height:this.handlePosition+"%"}},handleStyle(){return this.horizontal?{left:this.handlePosition+"%"}:{bottom:this.handlePosition+"%"}},handlePosition(){return this.modelValue<this.min?0:this.modelValue>this.max?100:100*(this.modelValue-this.min)/(this.max-this.min)},rangeStartPosition(){return this.modelValue&&this.modelValue[0]?100*(this.modelValue[0]<this.min?0:this.modelValue[0]-this.min)/(this.max-this.min):0},rangeEndPosition(){return this.modelValue&&this.modelValue[1]?100*(this.modelValue[1]>this.max?100:this.modelValue[1]-this.min)/(this.max-this.min):100},rangeStartHandleStyle(){return this.horizontal?{left:this.rangeStartPosition+"%"}:{bottom:this.rangeStartPosition+"%"}},rangeEndHandleStyle(){return this.horizontal?{left:this.rangeEndPosition+"%"}:{bottom:this.rangeEndPosition+"%"}}}};return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===i&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n.p-slider {\n\tposition: relative;\n}\n.p-slider .p-slider-handle {\n\tposition: absolute;\n\tcursor: -webkit-grab;\n\tcursor: grab;\n -ms-touch-action: none;\n touch-action: none;\n display: block;\n}\n.p-slider-range {\n\tposition: absolute;\n display: block;\n}\n.p-slider-horizontal .p-slider-range {\n top: 0;\n left: 0;\n\theight: 100%;\n}\n.p-slider-horizontal .p-slider-handle {\n top: 50%;\n}\n.p-slider-vertical {\n\theight: 100px;\n}\n.p-slider-vertical .p-slider-handle {\n left: 50%;\n}\n.p-slider-vertical .p-slider-range {\n bottom: 0;\n left: 0;\n width: 100%;\n}\n"),i.render=function(e,i,
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.slider=function(e,t){"use strict";var i={name:"Slider",emits:["update:modelValue","change","slideend"],props:{modelValue:[Number,Array],min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:"horizontal"},step:{type:Number,default:null},range:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ariaLabelledBy:{type:String,default:null}},dragging:!1,handleIndex:null,initX:null,initY:null,barWidth:null,barHeight:null,dragListener:null,dragEndListener:null,beforeUnmount(){this.unbindDragListeners()},methods:{updateDomData(){let t=this.$el.getBoundingClientRect();this.initX=t.left+e.DomHandler.getWindowScrollLeft(),this.initY=t.top+e.DomHandler.getWindowScrollTop(),this.barWidth=this.$el.offsetWidth,this.barHeight=this.$el.offsetHeight},setValue(e){let t,i=e.touches?e.touches[0].pageX:e.pageX,n=e.touches?e.touches[0].pageY:e.pageY;t="horizontal"===this.orientation?100*(i-this.initX)/this.barWidth:100*(this.initY+this.barHeight-n)/this.barHeight;let a=(this.max-this.min)*(t/100)+this.min;if(this.step){const e=this.range?this.modelValue[this.handleIndex]:this.modelValue,t=a-e;t<0?a=e+Math.ceil(a/this.step-e/this.step)*this.step:t>0&&(a=e+Math.floor(a/this.step-e/this.step)*this.step)}else a=Math.floor(a);this.updateModel(e,a)},updateModel(e,t){let i,n=parseFloat(t.toFixed(10));if(this.range)if(i=this.modelValue?[...this.modelValue]:[],0==this.handleIndex){let e=this.modelValue?this.modelValue[1]:this.max;n<this.min?n=this.min:n>=e&&(n=e),i[0]=n,i[1]=i[1]||this.max}else{let e=this.modelValue?this.modelValue[0]:this.min;n>this.max?n=this.max:n<=e&&(n=e),i[0]=i[0]||this.min,i[1]=n}else n<this.min?n=this.min:n>this.max&&(n=this.max),i=n;this.$emit("update:modelValue",i),this.$emit("change",i)},onDragStart(t,i){this.disabled||(e.DomHandler.addClass(this.$el,"p-slider-sliding"),this.dragging=!0,this.updateDomData(),this.range&&this.modelValue[0]===this.max?this.handleIndex=0:this.handleIndex=i,t.preventDefault())},onDrag(e){this.dragging&&(this.setValue(e),e.preventDefault())},onDragEnd(t){this.dragging&&(this.dragging=!1,e.DomHandler.removeClass(this.$el,"p-slider-sliding"),this.$emit("slideend",{originalEvent:t,value:this.modelValue}))},onBarClick(t){this.disabled||e.DomHandler.hasClass(t.target,"p-slider-handle")||(this.updateDomData(),this.setValue(t))},onMouseDown(e,t){this.bindDragListeners(),this.onDragStart(e,t)},onKeyDown(e,t){switch(this.handleIndex=t,e.which){case 40:this.vertical&&(this.decrementValue(e,t),e.preventDefault());break;case 38:this.vertical&&(this.incrementValue(e,t),e.preventDefault());break;case 37:this.horizontal&&(this.decrementValue(e,t),e.preventDefault());break;case 39:this.horizontal&&(this.incrementValue(e,t),e.preventDefault())}},decrementValue(e,t){let i;i=this.range?this.step?this.modelValue[t]-this.step:this.modelValue[t]-1:this.step?this.modelValue-this.step:this.modelValue-1,this.updateModel(e,i),e.preventDefault()},incrementValue(e,t){let i;i=this.range?this.step?this.modelValue[t]+this.step:this.modelValue[t]+1:this.step?this.modelValue+this.step:this.modelValue+1,this.updateModel(e,i),e.preventDefault()},bindDragListeners(){this.dragListener||(this.dragListener=this.onDrag.bind(this),document.addEventListener("mousemove",this.dragListener)),this.dragEndListener||(this.dragEndListener=this.onDragEnd.bind(this),document.addEventListener("mouseup",this.dragEndListener))},unbindDragListeners(){this.dragListener&&(document.removeEventListener("mousemove",this.dragListener),this.dragListener=null),this.dragEndListener&&(document.removeEventListener("mouseup",this.dragEndListener),this.dragEndListener=null)}},computed:{containerClass(){return["p-slider p-component",{"p-disabled":this.disabled,"p-slider-horizontal":"horizontal"===this.orientation,"p-slider-vertical":"vertical"===this.orientation}]},horizontal(){return"horizontal"===this.orientation},vertical(){return"vertical"===this.orientation},rangeStyle(){return this.range?this.horizontal?{left:this.rangeStartPosition+"%",width:this.rangeEndPosition-this.rangeStartPosition+"%"}:{bottom:this.rangeStartPosition+"%",height:this.rangeEndPosition-this.rangeStartHandlePosition+"%"}:this.horizontal?{width:this.handlePosition+"%"}:{height:this.handlePosition+"%"}},handleStyle(){return this.horizontal?{left:this.handlePosition+"%"}:{bottom:this.handlePosition+"%"}},handlePosition(){return this.modelValue<this.min?0:this.modelValue>this.max?100:100*(this.modelValue-this.min)/(this.max-this.min)},rangeStartPosition(){return this.modelValue&&this.modelValue[0]?100*(this.modelValue[0]<this.min?0:this.modelValue[0]-this.min)/(this.max-this.min):0},rangeEndPosition(){return this.modelValue&&this.modelValue[1]?100*(this.modelValue[1]>this.max?100:this.modelValue[1]-this.min)/(this.max-this.min):100},rangeStartHandleStyle(){return this.horizontal?{left:this.rangeStartPosition+"%"}:{bottom:this.rangeStartPosition+"%"}},rangeEndHandleStyle(){return this.horizontal?{left:this.rangeEndPosition+"%"}:{bottom:this.rangeEndPosition+"%"}}}};const n=["aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby"],a=["aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby"],l=["aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby"];return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===i&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n.p-slider {\n\tposition: relative;\n}\n.p-slider .p-slider-handle {\n\tposition: absolute;\n\tcursor: -webkit-grab;\n\tcursor: grab;\n -ms-touch-action: none;\n touch-action: none;\n display: block;\n}\n.p-slider-range {\n\tposition: absolute;\n display: block;\n}\n.p-slider-horizontal .p-slider-range {\n top: 0;\n left: 0;\n\theight: 100%;\n}\n.p-slider-horizontal .p-slider-handle {\n top: 50%;\n}\n.p-slider-vertical {\n\theight: 100px;\n}\n.p-slider-vertical .p-slider-handle {\n left: 50%;\n}\n.p-slider-vertical .p-slider-range {\n bottom: 0;\n left: 0;\n width: 100%;\n}\n"),i.render=function(e,i,s,o,r,h){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(h.containerClass),onClick:i[15]||(i[15]=(...e)=>h.onBarClick&&h.onBarClick(...e))},[t.createElementVNode("span",{class:"p-slider-range",style:t.normalizeStyle(h.rangeStyle)},null,4),s.range?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"p-slider-handle",style:t.normalizeStyle(h.handleStyle),onTouchstart:i[0]||(i[0]=e=>h.onDragStart(e)),onTouchmove:i[1]||(i[1]=e=>h.onDrag(e)),onTouchend:i[2]||(i[2]=e=>h.onDragEnd(e)),onMousedown:i[3]||(i[3]=e=>h.onMouseDown(e)),onKeydown:i[4]||(i[4]=e=>h.onKeyDown(e)),tabindex:"0",role:"slider","aria-valuemin":s.min,"aria-valuenow":s.modelValue,"aria-valuemax":s.max,"aria-labelledby":s.ariaLabelledBy},null,44,n)),s.range?(t.openBlock(),t.createElementBlock("span",{key:1,class:"p-slider-handle",style:t.normalizeStyle(h.rangeStartHandleStyle),onTouchstart:i[5]||(i[5]=e=>h.onDragStart(e,0)),onTouchmove:i[6]||(i[6]=e=>h.onDrag(e)),onTouchend:i[7]||(i[7]=e=>h.onDragEnd(e)),onMousedown:i[8]||(i[8]=e=>h.onMouseDown(e,0)),onKeydown:i[9]||(i[9]=e=>h.onKeyDown(e)),tabindex:"0",role:"slider","aria-valuemin":s.min,"aria-valuenow":s.modelValue?s.modelValue[0]:null,"aria-valuemax":s.max,"aria-labelledby":s.ariaLabelledBy},null,44,a)):t.createCommentVNode("",!0),s.range?(t.openBlock(),t.createElementBlock("span",{key:2,class:"p-slider-handle",style:t.normalizeStyle(h.rangeEndHandleStyle),onTouchstart:i[10]||(i[10]=e=>h.onDragStart(e,1)),onTouchmove:i[11]||(i[11]=e=>h.onDrag(e)),onTouchend:i[12]||(i[12]=e=>h.onDragEnd(e)),onMousedown:i[13]||(i[13]=e=>h.onMouseDown(e,1)),onKeydown:i[14]||(i[14]=e=>h.onKeyDown(e,1)),tabindex:"0",role:"slider","aria-valuemin":s.min,"aria-valuenow":s.modelValue?s.modelValue[1]:null,"aria-valuemax":s.max,"aria-labelledby":s.ariaLabelledBy},null,44,l)):t.createCommentVNode("",!0)],2)},i}(primevue.utils,Vue);
|
|
@@ -246,62 +246,64 @@ var script = {
|
|
|
246
246
|
}
|
|
247
247
|
},
|
|
248
248
|
components: {
|
|
249
|
-
'SDButton': Button__default[
|
|
249
|
+
'SDButton': Button__default["default"]
|
|
250
250
|
},
|
|
251
251
|
directives: {
|
|
252
|
-
'ripple': Ripple__default[
|
|
253
|
-
'tooltip': Tooltip__default[
|
|
252
|
+
'ripple': Ripple__default["default"],
|
|
253
|
+
'tooltip': Tooltip__default["default"]
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
256
|
|
|
257
|
+
const _hoisted_1 = ["href", "target", "onClick"];
|
|
258
|
+
|
|
257
259
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
258
260
|
const _component_SDButton = vue.resolveComponent("SDButton");
|
|
259
261
|
const _directive_tooltip = vue.resolveDirective("tooltip");
|
|
260
262
|
const _directive_ripple = vue.resolveDirective("ripple");
|
|
261
263
|
|
|
262
|
-
return (vue.openBlock(), vue.
|
|
263
|
-
vue.
|
|
264
|
+
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
265
|
+
vue.createElementVNode("div", {
|
|
264
266
|
ref: $options.containerRef,
|
|
265
|
-
class: $options.containerClass,
|
|
266
|
-
style: $props.style
|
|
267
|
+
class: vue.normalizeClass($options.containerClass),
|
|
268
|
+
style: vue.normalizeStyle($props.style)
|
|
267
269
|
}, [
|
|
268
270
|
vue.renderSlot(_ctx.$slots, "button", { toggle: $options.onClick }, () => [
|
|
269
271
|
vue.createVNode(_component_SDButton, {
|
|
270
272
|
type: "button",
|
|
271
|
-
class: $options.buttonClassName,
|
|
273
|
+
class: vue.normalizeClass($options.buttonClassName),
|
|
272
274
|
icon: $options.iconClassName,
|
|
273
|
-
onClick: _cache[
|
|
275
|
+
onClick: _cache[0] || (_cache[0] = $event => ($options.onClick($event))),
|
|
274
276
|
disabled: $props.disabled
|
|
275
277
|
}, null, 8, ["class", "icon", "disabled"])
|
|
276
278
|
]),
|
|
277
|
-
vue.
|
|
279
|
+
vue.createElementVNode("ul", {
|
|
278
280
|
ref: $options.listRef,
|
|
279
281
|
class: "p-speeddial-list",
|
|
280
282
|
role: "menu"
|
|
281
283
|
}, [
|
|
282
|
-
(vue.openBlock(true), vue.
|
|
283
|
-
return (vue.openBlock(), vue.
|
|
284
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.model, (item, index) => {
|
|
285
|
+
return (vue.openBlock(), vue.createElementBlock("li", {
|
|
284
286
|
key: index,
|
|
285
287
|
class: "p-speeddial-item",
|
|
286
|
-
style: $options.getItemStyle(index),
|
|
288
|
+
style: vue.normalizeStyle($options.getItemStyle(index)),
|
|
287
289
|
role: "none"
|
|
288
290
|
}, [
|
|
289
291
|
(!_ctx.$slots.item)
|
|
290
|
-
? vue.withDirectives((vue.openBlock(), vue.
|
|
292
|
+
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", {
|
|
291
293
|
key: 0,
|
|
292
294
|
href: item.url || '#',
|
|
293
295
|
role: "menuitem",
|
|
294
|
-
class: ['p-speeddial-action', { 'p-disabled': item.disabled }],
|
|
296
|
+
class: vue.normalizeClass(['p-speeddial-action', { 'p-disabled': item.disabled }]),
|
|
295
297
|
target: item.target,
|
|
296
298
|
onClick: $event => ($options.onItemClick($event, item))
|
|
297
299
|
}, [
|
|
298
300
|
(item.icon)
|
|
299
|
-
? (vue.openBlock(), vue.
|
|
301
|
+
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
300
302
|
key: 0,
|
|
301
|
-
class: ['p-speeddial-action-icon', item.icon]
|
|
303
|
+
class: vue.normalizeClass(['p-speeddial-action-icon', item.icon])
|
|
302
304
|
}, null, 2))
|
|
303
305
|
: vue.createCommentVNode("", true)
|
|
304
|
-
], 10,
|
|
306
|
+
], 10, _hoisted_1)), [
|
|
305
307
|
[_directive_tooltip, {value: item.label, disabled: !$props.tooltipOptions}, $props.tooltipOptions],
|
|
306
308
|
[_directive_ripple]
|
|
307
309
|
])
|
|
@@ -314,10 +316,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
314
316
|
], 512)
|
|
315
317
|
], 6),
|
|
316
318
|
($props.mask)
|
|
317
|
-
? (vue.openBlock(), vue.
|
|
319
|
+
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
318
320
|
key: 0,
|
|
319
|
-
class: $options.maskClassName,
|
|
320
|
-
style: $props.maskStyle
|
|
321
|
+
class: vue.normalizeClass($options.maskClassName),
|
|
322
|
+
style: vue.normalizeStyle($props.maskStyle)
|
|
321
323
|
}, null, 6))
|
|
322
324
|
: vue.createCommentVNode("", true)
|
|
323
325
|
], 64))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/button"),i=require("primevue/ripple"),t=require("primevue/tooltip"),n=require("primevue/utils"),s=require("vue");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=o(e),r=o(i),a=o(t),c={name:"SpeedDial",emits:["click","show","hide"],props:{model:null,visible:{type:Boolean,default:!1},direction:{type:String,default:"up"},transitionDelay:{type:Number,default:30},type:{type:String,default:"linear"},radius:{type:Number,default:0},mask:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hideOnClickOutside:{type:Boolean,default:!0},buttonClass:null,maskStyle:null,maskClass:null,showIcon:{type:String,default:"pi pi-plus"},hideIcon:null,rotateAnimation:{type:Boolean,default:!0},tooltipOptions:null,style:null,class:null},documentClickListener:null,container:null,list:null,data(){return{d_visible:this.visible,isItemClicked:!1}},watch:{visible(e){this.d_visible=e}},mounted(){if("linear"!==this.type){const e=n.DomHandler.findSingle(this.container,".p-speeddial-button"),i=n.DomHandler.findSingle(this.list,".p-speeddial-item");if(e&&i){const t=Math.abs(e.offsetWidth-i.offsetWidth),n=Math.abs(e.offsetHeight-i.offsetHeight);this.list.style.setProperty("--item-diff-x",t/2+"px"),this.list.style.setProperty("--item-diff-y",n/2+"px")}}this.hideOnClickOutside&&this.bindDocumentClickListener()},beforeMount(){this.unbindDocumentClickListener()},methods:{onItemClick(e,i){i.command&&i.command({originalEvent:e,item:i}),this.hide(),this.isItemClicked=!0,e.preventDefault()},onClick(e){this.d_visible?this.hide():this.show(),this.isItemClicked=!0,this.$emit("click",e)},show(){this.d_visible=!0,this.$emit("show")},hide(){this.d_visible=!1,this.$emit("hide")},calculateTransitionDelay(e){const i=this.model.length;return(this.d_visible?e:i-e-1)*this.transitionDelay},calculatePointStyle(e){const i=this.type;if("linear"!==i){const t=this.model.length,n=this.radius||20*t;if("circle"===i){const i=2*Math.PI/t;return{left:`calc(${n*Math.cos(i*e)}px + var(--item-diff-x, 0px))`,top:`calc(${n*Math.sin(i*e)}px + var(--item-diff-y, 0px))`}}if("semi-circle"===i){const i=this.direction,s=Math.PI/(t-1),o=`calc(${n*Math.cos(s*e)}px + var(--item-diff-x, 0px))`,l=`calc(${n*Math.sin(s*e)}px + var(--item-diff-y, 0px))`;if("up"===i)return{left:o,bottom:l};if("down"===i)return{left:o,top:l};if("left"===i)return{right:l,top:o};if("right"===i)return{left:l,top:o}}else if("quarter-circle"===i){const i=this.direction,s=Math.PI/(2*(t-1)),o=`calc(${n*Math.cos(s*e)}px + var(--item-diff-x, 0px))`,l=`calc(${n*Math.sin(s*e)}px + var(--item-diff-y, 0px))`;if("up-left"===i)return{right:o,bottom:l};if("up-right"===i)return{left:o,bottom:l};if("down-left"===i)return{right:l,top:o};if("down-right"===i)return{left:l,top:o}}}return{}},getItemStyle(e){return{transitionDelay:`${this.calculateTransitionDelay(e)}ms`,...this.calculatePointStyle(e)}},bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=e=>{this.d_visible&&this.isOutsideClicked(e)&&this.hide(),this.isItemClicked=!1},document.addEventListener("click",this.documentClickListener))},unbindDocumentClickListener(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)},isOutsideClicked(e){return this.container&&!(this.container.isSameNode(e.target)||this.container.contains(e.target)||this.isItemClicked)},containerRef(e){this.container=e},listRef(e){this.list=e}},computed:{containerClass(){return[`p-speeddial p-component p-speeddial-${this.type}`,{[`p-speeddial-direction-${this.direction}`]:"circle"!==this.type,"p-speeddial-opened":this.d_visible,"p-disabled":this.disabled},this.class]},buttonClassName(){return["p-speeddial-button p-button-rounded",{"p-speeddial-rotate":this.rotateAnimation&&!this.hideIcon},this.buttonClass]},iconClassName(){return this.d_visible&&this.hideIcon?this.hideIcon:this.showIcon},maskClassName(){return["p-speeddial-mask",{"p-speeddial-mask-visible":this.d_visible},this.maskClass]}},components:{SDButton:l.default},directives:{ripple:r.default,tooltip:a.default}};!function(e,i){void 0===i&&(i={});var t=i.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===t&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-speeddial {\n position: absolute;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n z-index: 1;\n}\n.p-speeddial-list {\n margin: 0;\n padding: 0;\n list-style: none;\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 -webkit-transition: top 0s linear 0.2s;\n transition: top 0s linear 0.2s;\n pointer-events: none;\n}\n.p-speeddial-item {\n -webkit-transform: scale(0);\n transform: scale(0);\n opacity: 0;\n -webkit-transition: opacity 0.8s, -webkit-transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: opacity 0.8s, -webkit-transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 0.8s;\n transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 0.8s, -webkit-transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n will-change: transform;\n}\n.p-speeddial-action {\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 border-radius: 50%;\n position: relative;\n overflow: hidden;\n}\n.p-speeddial-circle .p-speeddial-item,\n.p-speeddial-semi-circle .p-speeddial-item,\n.p-speeddial-quarter-circle .p-speeddial-item {\n position: absolute;\n}\n.p-speeddial-rotate {\n -webkit-transition: -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n will-change: transform;\n}\n.p-speeddial-mask {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n -webkit-transition: opacity 250ms cubic-bezier(0.25, 0.8, 0.25, 1);\n transition: opacity 250ms cubic-bezier(0.25, 0.8, 0.25, 1);\n}\n.p-speeddial-mask-visible {\n pointer-events: none;\n opacity: 1;\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-speeddial-opened .p-speeddial-list {\n pointer-events: auto;\n}\n.p-speeddial-opened .p-speeddial-item {\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 1;\n}\n.p-speeddial-opened .p-speeddial-rotate {\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n\n/* Direction */\n.p-speeddial-direction-up {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.p-speeddial-direction-up .p-speeddial-list {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.p-speeddial-direction-down {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-speeddial-direction-down .p-speeddial-list {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-speeddial-direction-left {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.p-speeddial-direction-left .p-speeddial-list {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.p-speeddial-direction-right {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n.p-speeddial-direction-right .p-speeddial-list {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n"),c.render=function(e,i,t,n,o,l){const r=s.resolveComponent("SDButton"),a=s.resolveDirective("tooltip"),c=s.resolveDirective("ripple");return s.openBlock(),s.createBlock(s.Fragment,null,[s.createVNode("div",{ref:l.containerRef,class:l.containerClass,style:t.style},[s.renderSlot(e.$slots,"button",{toggle:l.onClick},(()=>[s.createVNode(r,{type:"button",class:l.buttonClassName,icon:l.iconClassName,onClick:i[1]||(i[1]=e=>l.onClick(e)),disabled:t.disabled},null,8,["class","icon","disabled"])])),s.createVNode("ul",{ref:l.listRef,class:"p-speeddial-list",role:"menu"},[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(t.model,((i,n)=>(s.openBlock(),s.createBlock("li",{key:n,class:"p-speeddial-item",style:l.getItemStyle(n),role:"none"},[e.$slots.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.$slots.item),{key:1,item:i},null,8,["item"])):s.withDirectives((s.openBlock(),s.createBlock("a",{key:0,href:i.url||"#",role:"menuitem",class:["p-speeddial-action",{"p-disabled":i.disabled}],target:i.target,onClick:e=>l.onItemClick(e,i)},[i.icon?(s.openBlock(),s.createBlock("span",{key:0,class:["p-speeddial-action-icon",i.icon]},null,2)):s.createCommentVNode("",!0)],10,["href","target","onClick"])),[[a,{value:i.label,disabled:!t.tooltipOptions},t.tooltipOptions],[c]])],4)))),128))],512)],6),t.mask?(s.openBlock(),s.createBlock("div",{key:0,class:l.maskClassName,style:t.maskStyle},null,6)):s.createCommentVNode("",!0)],64)},module.exports=c;
|
|
1
|
+
"use strict";var e=require("primevue/button"),t=require("primevue/ripple"),i=require("primevue/tooltip"),n=require("primevue/utils"),s=require("vue");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e),r=l(t),a=l(i),c={name:"SpeedDial",emits:["click","show","hide"],props:{model:null,visible:{type:Boolean,default:!1},direction:{type:String,default:"up"},transitionDelay:{type:Number,default:30},type:{type:String,default:"linear"},radius:{type:Number,default:0},mask:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hideOnClickOutside:{type:Boolean,default:!0},buttonClass:null,maskStyle:null,maskClass:null,showIcon:{type:String,default:"pi pi-plus"},hideIcon:null,rotateAnimation:{type:Boolean,default:!0},tooltipOptions:null,style:null,class:null},documentClickListener:null,container:null,list:null,data(){return{d_visible:this.visible,isItemClicked:!1}},watch:{visible(e){this.d_visible=e}},mounted(){if("linear"!==this.type){const e=n.DomHandler.findSingle(this.container,".p-speeddial-button"),t=n.DomHandler.findSingle(this.list,".p-speeddial-item");if(e&&t){const i=Math.abs(e.offsetWidth-t.offsetWidth),n=Math.abs(e.offsetHeight-t.offsetHeight);this.list.style.setProperty("--item-diff-x",i/2+"px"),this.list.style.setProperty("--item-diff-y",n/2+"px")}}this.hideOnClickOutside&&this.bindDocumentClickListener()},beforeMount(){this.unbindDocumentClickListener()},methods:{onItemClick(e,t){t.command&&t.command({originalEvent:e,item:t}),this.hide(),this.isItemClicked=!0,e.preventDefault()},onClick(e){this.d_visible?this.hide():this.show(),this.isItemClicked=!0,this.$emit("click",e)},show(){this.d_visible=!0,this.$emit("show")},hide(){this.d_visible=!1,this.$emit("hide")},calculateTransitionDelay(e){const t=this.model.length;return(this.d_visible?e:t-e-1)*this.transitionDelay},calculatePointStyle(e){const t=this.type;if("linear"!==t){const i=this.model.length,n=this.radius||20*i;if("circle"===t){const t=2*Math.PI/i;return{left:`calc(${n*Math.cos(t*e)}px + var(--item-diff-x, 0px))`,top:`calc(${n*Math.sin(t*e)}px + var(--item-diff-y, 0px))`}}if("semi-circle"===t){const t=this.direction,s=Math.PI/(i-1),l=`calc(${n*Math.cos(s*e)}px + var(--item-diff-x, 0px))`,o=`calc(${n*Math.sin(s*e)}px + var(--item-diff-y, 0px))`;if("up"===t)return{left:l,bottom:o};if("down"===t)return{left:l,top:o};if("left"===t)return{right:o,top:l};if("right"===t)return{left:o,top:l}}else if("quarter-circle"===t){const t=this.direction,s=Math.PI/(2*(i-1)),l=`calc(${n*Math.cos(s*e)}px + var(--item-diff-x, 0px))`,o=`calc(${n*Math.sin(s*e)}px + var(--item-diff-y, 0px))`;if("up-left"===t)return{right:l,bottom:o};if("up-right"===t)return{left:l,bottom:o};if("down-left"===t)return{right:o,top:l};if("down-right"===t)return{left:o,top:l}}}return{}},getItemStyle(e){return{transitionDelay:`${this.calculateTransitionDelay(e)}ms`,...this.calculatePointStyle(e)}},bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=e=>{this.d_visible&&this.isOutsideClicked(e)&&this.hide(),this.isItemClicked=!1},document.addEventListener("click",this.documentClickListener))},unbindDocumentClickListener(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)},isOutsideClicked(e){return this.container&&!(this.container.isSameNode(e.target)||this.container.contains(e.target)||this.isItemClicked)},containerRef(e){this.container=e},listRef(e){this.list=e}},computed:{containerClass(){return[`p-speeddial p-component p-speeddial-${this.type}`,{[`p-speeddial-direction-${this.direction}`]:"circle"!==this.type,"p-speeddial-opened":this.d_visible,"p-disabled":this.disabled},this.class]},buttonClassName(){return["p-speeddial-button p-button-rounded",{"p-speeddial-rotate":this.rotateAnimation&&!this.hideIcon},this.buttonClass]},iconClassName(){return this.d_visible&&this.hideIcon?this.hideIcon:this.showIcon},maskClassName(){return["p-speeddial-mask",{"p-speeddial-mask-visible":this.d_visible},this.maskClass]}},components:{SDButton:o.default},directives:{ripple:r.default,tooltip:a.default}};const d=["href","target","onClick"];!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-speeddial {\n position: absolute;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n z-index: 1;\n}\n.p-speeddial-list {\n margin: 0;\n padding: 0;\n list-style: none;\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 -webkit-transition: top 0s linear 0.2s;\n transition: top 0s linear 0.2s;\n pointer-events: none;\n}\n.p-speeddial-item {\n -webkit-transform: scale(0);\n transform: scale(0);\n opacity: 0;\n -webkit-transition: opacity 0.8s, -webkit-transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: opacity 0.8s, -webkit-transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 0.8s;\n transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 0.8s, -webkit-transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n will-change: transform;\n}\n.p-speeddial-action {\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 border-radius: 50%;\n position: relative;\n overflow: hidden;\n}\n.p-speeddial-circle .p-speeddial-item,\n.p-speeddial-semi-circle .p-speeddial-item,\n.p-speeddial-quarter-circle .p-speeddial-item {\n position: absolute;\n}\n.p-speeddial-rotate {\n -webkit-transition: -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n will-change: transform;\n}\n.p-speeddial-mask {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n -webkit-transition: opacity 250ms cubic-bezier(0.25, 0.8, 0.25, 1);\n transition: opacity 250ms cubic-bezier(0.25, 0.8, 0.25, 1);\n}\n.p-speeddial-mask-visible {\n pointer-events: none;\n opacity: 1;\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-speeddial-opened .p-speeddial-list {\n pointer-events: auto;\n}\n.p-speeddial-opened .p-speeddial-item {\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 1;\n}\n.p-speeddial-opened .p-speeddial-rotate {\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n\n/* Direction */\n.p-speeddial-direction-up {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.p-speeddial-direction-up .p-speeddial-list {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.p-speeddial-direction-down {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-speeddial-direction-down .p-speeddial-list {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-speeddial-direction-left {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.p-speeddial-direction-left .p-speeddial-list {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.p-speeddial-direction-right {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n.p-speeddial-direction-right .p-speeddial-list {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n"),c.render=function(e,t,i,n,l,o){const r=s.resolveComponent("SDButton"),a=s.resolveDirective("tooltip"),c=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",{ref:o.containerRef,class:s.normalizeClass(o.containerClass),style:s.normalizeStyle(i.style)},[s.renderSlot(e.$slots,"button",{toggle:o.onClick},(()=>[s.createVNode(r,{type:"button",class:s.normalizeClass(o.buttonClassName),icon:o.iconClassName,onClick:t[0]||(t[0]=e=>o.onClick(e)),disabled:i.disabled},null,8,["class","icon","disabled"])])),s.createElementVNode("ul",{ref:o.listRef,class:"p-speeddial-list",role:"menu"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.model,((t,n)=>(s.openBlock(),s.createElementBlock("li",{key:n,class:"p-speeddial-item",style:s.normalizeStyle(o.getItemStyle(n)),role:"none"},[e.$slots.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.$slots.item),{key:1,item:t},null,8,["item"])):s.withDirectives((s.openBlock(),s.createElementBlock("a",{key:0,href:t.url||"#",role:"menuitem",class:s.normalizeClass(["p-speeddial-action",{"p-disabled":t.disabled}]),target:t.target,onClick:e=>o.onItemClick(e,t)},[t.icon?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass(["p-speeddial-action-icon",t.icon])},null,2)):s.createCommentVNode("",!0)],10,d)),[[a,{value:t.label,disabled:!i.tooltipOptions},i.tooltipOptions],[c]])],4)))),128))],512)],6),i.mask?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(o.maskClassName),style:s.normalizeStyle(i.maskStyle)},null,6)):s.createCommentVNode("",!0)],64)},module.exports=c;
|
|
@@ -2,7 +2,7 @@ import Button from 'primevue/button';
|
|
|
2
2
|
import Ripple from 'primevue/ripple';
|
|
3
3
|
import Tooltip from 'primevue/tooltip';
|
|
4
4
|
import { DomHandler } from 'primevue/utils';
|
|
5
|
-
import { resolveComponent, resolveDirective, openBlock,
|
|
5
|
+
import { resolveComponent, resolveDirective, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createVNode, renderList, withDirectives, createCommentVNode, createBlock, resolveDynamicComponent } from 'vue';
|
|
6
6
|
|
|
7
7
|
var script = {
|
|
8
8
|
name: 'SpeedDial',
|
|
@@ -246,54 +246,56 @@ var script = {
|
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
248
|
|
|
249
|
+
const _hoisted_1 = ["href", "target", "onClick"];
|
|
250
|
+
|
|
249
251
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
250
252
|
const _component_SDButton = resolveComponent("SDButton");
|
|
251
253
|
const _directive_tooltip = resolveDirective("tooltip");
|
|
252
254
|
const _directive_ripple = resolveDirective("ripple");
|
|
253
255
|
|
|
254
|
-
return (openBlock(),
|
|
255
|
-
|
|
256
|
+
return (openBlock(), createElementBlock(Fragment, null, [
|
|
257
|
+
createElementVNode("div", {
|
|
256
258
|
ref: $options.containerRef,
|
|
257
|
-
class: $options.containerClass,
|
|
258
|
-
style: $props.style
|
|
259
|
+
class: normalizeClass($options.containerClass),
|
|
260
|
+
style: normalizeStyle($props.style)
|
|
259
261
|
}, [
|
|
260
262
|
renderSlot(_ctx.$slots, "button", { toggle: $options.onClick }, () => [
|
|
261
263
|
createVNode(_component_SDButton, {
|
|
262
264
|
type: "button",
|
|
263
|
-
class: $options.buttonClassName,
|
|
265
|
+
class: normalizeClass($options.buttonClassName),
|
|
264
266
|
icon: $options.iconClassName,
|
|
265
|
-
onClick: _cache[
|
|
267
|
+
onClick: _cache[0] || (_cache[0] = $event => ($options.onClick($event))),
|
|
266
268
|
disabled: $props.disabled
|
|
267
269
|
}, null, 8, ["class", "icon", "disabled"])
|
|
268
270
|
]),
|
|
269
|
-
|
|
271
|
+
createElementVNode("ul", {
|
|
270
272
|
ref: $options.listRef,
|
|
271
273
|
class: "p-speeddial-list",
|
|
272
274
|
role: "menu"
|
|
273
275
|
}, [
|
|
274
|
-
(openBlock(true),
|
|
275
|
-
return (openBlock(),
|
|
276
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.model, (item, index) => {
|
|
277
|
+
return (openBlock(), createElementBlock("li", {
|
|
276
278
|
key: index,
|
|
277
279
|
class: "p-speeddial-item",
|
|
278
|
-
style: $options.getItemStyle(index),
|
|
280
|
+
style: normalizeStyle($options.getItemStyle(index)),
|
|
279
281
|
role: "none"
|
|
280
282
|
}, [
|
|
281
283
|
(!_ctx.$slots.item)
|
|
282
|
-
? withDirectives((openBlock(),
|
|
284
|
+
? withDirectives((openBlock(), createElementBlock("a", {
|
|
283
285
|
key: 0,
|
|
284
286
|
href: item.url || '#',
|
|
285
287
|
role: "menuitem",
|
|
286
|
-
class: ['p-speeddial-action', { 'p-disabled': item.disabled }],
|
|
288
|
+
class: normalizeClass(['p-speeddial-action', { 'p-disabled': item.disabled }]),
|
|
287
289
|
target: item.target,
|
|
288
290
|
onClick: $event => ($options.onItemClick($event, item))
|
|
289
291
|
}, [
|
|
290
292
|
(item.icon)
|
|
291
|
-
? (openBlock(),
|
|
293
|
+
? (openBlock(), createElementBlock("span", {
|
|
292
294
|
key: 0,
|
|
293
|
-
class: ['p-speeddial-action-icon', item.icon]
|
|
295
|
+
class: normalizeClass(['p-speeddial-action-icon', item.icon])
|
|
294
296
|
}, null, 2))
|
|
295
297
|
: createCommentVNode("", true)
|
|
296
|
-
], 10,
|
|
298
|
+
], 10, _hoisted_1)), [
|
|
297
299
|
[_directive_tooltip, {value: item.label, disabled: !$props.tooltipOptions}, $props.tooltipOptions],
|
|
298
300
|
[_directive_ripple]
|
|
299
301
|
])
|
|
@@ -306,10 +308,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
306
308
|
], 512)
|
|
307
309
|
], 6),
|
|
308
310
|
($props.mask)
|
|
309
|
-
? (openBlock(),
|
|
311
|
+
? (openBlock(), createElementBlock("div", {
|
|
310
312
|
key: 0,
|
|
311
|
-
class: $options.maskClassName,
|
|
312
|
-
style: $props.maskStyle
|
|
313
|
+
class: normalizeClass($options.maskClassName),
|
|
314
|
+
style: normalizeStyle($props.maskStyle)
|
|
313
315
|
}, null, 6))
|
|
314
316
|
: createCommentVNode("", true)
|
|
315
317
|
], 64))
|
|
@@ -347,4 +349,4 @@ styleInject(css_248z);
|
|
|
347
349
|
|
|
348
350
|
script.render = render;
|
|
349
351
|
|
|
350
|
-
export default
|
|
352
|
+
export { script as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/button";import i from"primevue/ripple";import t from"primevue/tooltip";import{DomHandler as n}from"primevue/utils";import{resolveComponent as s,resolveDirective as l,openBlock as o,createBlock as r,Fragment as a,createVNode as c,renderSlot as d,renderList as p,withDirectives as m,createCommentVNode as u,resolveDynamicComponent as b}from"vue";var f={name:"SpeedDial",emits:["click","show","hide"],props:{model:null,visible:{type:Boolean,default:!1},direction:{type:String,default:"up"},transitionDelay:{type:Number,default:30},type:{type:String,default:"linear"},radius:{type:Number,default:0},mask:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hideOnClickOutside:{type:Boolean,default:!0},buttonClass:null,maskStyle:null,maskClass:null,showIcon:{type:String,default:"pi pi-plus"},hideIcon:null,rotateAnimation:{type:Boolean,default:!0},tooltipOptions:null,style:null,class:null},documentClickListener:null,container:null,list:null,data(){return{d_visible:this.visible,isItemClicked:!1}},watch:{visible(e){this.d_visible=e}},mounted(){if("linear"!==this.type){const e=n.findSingle(this.container,".p-speeddial-button"),i=n.findSingle(this.list,".p-speeddial-item");if(e&&i){const t=Math.abs(e.offsetWidth-i.offsetWidth),n=Math.abs(e.offsetHeight-i.offsetHeight);this.list.style.setProperty("--item-diff-x",t/2+"px"),this.list.style.setProperty("--item-diff-y",n/2+"px")}}this.hideOnClickOutside&&this.bindDocumentClickListener()},beforeMount(){this.unbindDocumentClickListener()},methods:{onItemClick(e,i){i.command&&i.command({originalEvent:e,item:i}),this.hide(),this.isItemClicked=!0,e.preventDefault()},onClick(e){this.d_visible?this.hide():this.show(),this.isItemClicked=!0,this.$emit("click",e)},show(){this.d_visible=!0,this.$emit("show")},hide(){this.d_visible=!1,this.$emit("hide")},calculateTransitionDelay(e){const i=this.model.length;return(this.d_visible?e:i-e-1)*this.transitionDelay},calculatePointStyle(e){const i=this.type;if("linear"!==i){const t=this.model.length,n=this.radius||20*t;if("circle"===i){const i=2*Math.PI/t;return{left:`calc(${n*Math.cos(i*e)}px + var(--item-diff-x, 0px))`,top:`calc(${n*Math.sin(i*e)}px + var(--item-diff-y, 0px))`}}if("semi-circle"===i){const i=this.direction,s=Math.PI/(t-1),l=`calc(${n*Math.cos(s*e)}px + var(--item-diff-x, 0px))`,o=`calc(${n*Math.sin(s*e)}px + var(--item-diff-y, 0px))`;if("up"===i)return{left:l,bottom:o};if("down"===i)return{left:l,top:o};if("left"===i)return{right:o,top:l};if("right"===i)return{left:o,top:l}}else if("quarter-circle"===i){const i=this.direction,s=Math.PI/(2*(t-1)),l=`calc(${n*Math.cos(s*e)}px + var(--item-diff-x, 0px))`,o=`calc(${n*Math.sin(s*e)}px + var(--item-diff-y, 0px))`;if("up-left"===i)return{right:l,bottom:o};if("up-right"===i)return{left:l,bottom:o};if("down-left"===i)return{right:o,top:l};if("down-right"===i)return{left:o,top:l}}}return{}},getItemStyle(e){return{transitionDelay:`${this.calculateTransitionDelay(e)}ms`,...this.calculatePointStyle(e)}},bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=e=>{this.d_visible&&this.isOutsideClicked(e)&&this.hide(),this.isItemClicked=!1},document.addEventListener("click",this.documentClickListener))},unbindDocumentClickListener(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)},isOutsideClicked(e){return this.container&&!(this.container.isSameNode(e.target)||this.container.contains(e.target)||this.isItemClicked)},containerRef(e){this.container=e},listRef(e){this.list=e}},computed:{containerClass(){return[`p-speeddial p-component p-speeddial-${this.type}`,{[`p-speeddial-direction-${this.direction}`]:"circle"!==this.type,"p-speeddial-opened":this.d_visible,"p-disabled":this.disabled},this.class]},buttonClassName(){return["p-speeddial-button p-button-rounded",{"p-speeddial-rotate":this.rotateAnimation&&!this.hideIcon},this.buttonClass]},iconClassName(){return this.d_visible&&this.hideIcon?this.hideIcon:this.showIcon},maskClassName(){return["p-speeddial-mask",{"p-speeddial-mask-visible":this.d_visible},this.maskClass]}},components:{SDButton:e},directives:{ripple:i,tooltip:t}};!function(e,i){void 0===i&&(i={});var t=i.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===t&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-speeddial {\n position: absolute;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n z-index: 1;\n}\n.p-speeddial-list {\n margin: 0;\n padding: 0;\n list-style: none;\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 -webkit-transition: top 0s linear 0.2s;\n transition: top 0s linear 0.2s;\n pointer-events: none;\n}\n.p-speeddial-item {\n -webkit-transform: scale(0);\n transform: scale(0);\n opacity: 0;\n -webkit-transition: opacity 0.8s, -webkit-transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: opacity 0.8s, -webkit-transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 0.8s;\n transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 0.8s, -webkit-transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n will-change: transform;\n}\n.p-speeddial-action {\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 border-radius: 50%;\n position: relative;\n overflow: hidden;\n}\n.p-speeddial-circle .p-speeddial-item,\n.p-speeddial-semi-circle .p-speeddial-item,\n.p-speeddial-quarter-circle .p-speeddial-item {\n position: absolute;\n}\n.p-speeddial-rotate {\n -webkit-transition: -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n will-change: transform;\n}\n.p-speeddial-mask {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n -webkit-transition: opacity 250ms cubic-bezier(0.25, 0.8, 0.25, 1);\n transition: opacity 250ms cubic-bezier(0.25, 0.8, 0.25, 1);\n}\n.p-speeddial-mask-visible {\n pointer-events: none;\n opacity: 1;\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-speeddial-opened .p-speeddial-list {\n pointer-events: auto;\n}\n.p-speeddial-opened .p-speeddial-item {\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 1;\n}\n.p-speeddial-opened .p-speeddial-rotate {\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n\n/* Direction */\n.p-speeddial-direction-up {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.p-speeddial-direction-up .p-speeddial-list {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.p-speeddial-direction-down {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-speeddial-direction-down .p-speeddial-list {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-speeddial-direction-left {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.p-speeddial-direction-left .p-speeddial-list {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.p-speeddial-direction-right {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n.p-speeddial-direction-right .p-speeddial-list {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n"),f.render=function(e,i,t,n,f,h){const k=s("SDButton"),x=l("tooltip"),y=l("ripple");return o(),r(a,null,[c("div",{ref:h.containerRef,class:h.containerClass,style:t.style},[d(e.$slots,"button",{toggle:h.onClick},(()=>[c(k,{type:"button",class:h.buttonClassName,icon:h.iconClassName,onClick:i[1]||(i[1]=e=>h.onClick(e)),disabled:t.disabled},null,8,["class","icon","disabled"])])),c("ul",{ref:h.listRef,class:"p-speeddial-list",role:"menu"},[(o(!0),r(a,null,p(t.model,((i,n)=>(o(),r("li",{key:n,class:"p-speeddial-item",style:h.getItemStyle(n),role:"none"},[e.$slots.item?(o(),r(b(e.$slots.item),{key:1,item:i},null,8,["item"])):m((o(),r("a",{key:0,href:i.url||"#",role:"menuitem",class:["p-speeddial-action",{"p-disabled":i.disabled}],target:i.target,onClick:e=>h.onItemClick(e,i)},[i.icon?(o(),r("span",{key:0,class:["p-speeddial-action-icon",i.icon]},null,2)):u("",!0)],10,["href","target","onClick"])),[[x,{value:i.label,disabled:!t.tooltipOptions},t.tooltipOptions],[y]])],4)))),128))],512)],6),t.mask?(o(),r("div",{key:0,class:h.maskClassName,style:t.maskStyle},null,6)):u("",!0)],64)};export default f;
|
|
1
|
+
import e from"primevue/button";import i from"primevue/ripple";import t from"primevue/tooltip";import{DomHandler as n}from"primevue/utils";import{resolveComponent as s,resolveDirective as l,openBlock as o,createElementBlock as r,Fragment as a,createElementVNode as c,normalizeClass as d,normalizeStyle as p,renderSlot as m,createVNode as u,renderList as b,withDirectives as f,createCommentVNode as h,createBlock as k,resolveDynamicComponent as x}from"vue";var y={name:"SpeedDial",emits:["click","show","hide"],props:{model:null,visible:{type:Boolean,default:!1},direction:{type:String,default:"up"},transitionDelay:{type:Number,default:30},type:{type:String,default:"linear"},radius:{type:Number,default:0},mask:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hideOnClickOutside:{type:Boolean,default:!0},buttonClass:null,maskStyle:null,maskClass:null,showIcon:{type:String,default:"pi pi-plus"},hideIcon:null,rotateAnimation:{type:Boolean,default:!0},tooltipOptions:null,style:null,class:null},documentClickListener:null,container:null,list:null,data(){return{d_visible:this.visible,isItemClicked:!1}},watch:{visible(e){this.d_visible=e}},mounted(){if("linear"!==this.type){const e=n.findSingle(this.container,".p-speeddial-button"),i=n.findSingle(this.list,".p-speeddial-item");if(e&&i){const t=Math.abs(e.offsetWidth-i.offsetWidth),n=Math.abs(e.offsetHeight-i.offsetHeight);this.list.style.setProperty("--item-diff-x",t/2+"px"),this.list.style.setProperty("--item-diff-y",n/2+"px")}}this.hideOnClickOutside&&this.bindDocumentClickListener()},beforeMount(){this.unbindDocumentClickListener()},methods:{onItemClick(e,i){i.command&&i.command({originalEvent:e,item:i}),this.hide(),this.isItemClicked=!0,e.preventDefault()},onClick(e){this.d_visible?this.hide():this.show(),this.isItemClicked=!0,this.$emit("click",e)},show(){this.d_visible=!0,this.$emit("show")},hide(){this.d_visible=!1,this.$emit("hide")},calculateTransitionDelay(e){const i=this.model.length;return(this.d_visible?e:i-e-1)*this.transitionDelay},calculatePointStyle(e){const i=this.type;if("linear"!==i){const t=this.model.length,n=this.radius||20*t;if("circle"===i){const i=2*Math.PI/t;return{left:`calc(${n*Math.cos(i*e)}px + var(--item-diff-x, 0px))`,top:`calc(${n*Math.sin(i*e)}px + var(--item-diff-y, 0px))`}}if("semi-circle"===i){const i=this.direction,s=Math.PI/(t-1),l=`calc(${n*Math.cos(s*e)}px + var(--item-diff-x, 0px))`,o=`calc(${n*Math.sin(s*e)}px + var(--item-diff-y, 0px))`;if("up"===i)return{left:l,bottom:o};if("down"===i)return{left:l,top:o};if("left"===i)return{right:o,top:l};if("right"===i)return{left:o,top:l}}else if("quarter-circle"===i){const i=this.direction,s=Math.PI/(2*(t-1)),l=`calc(${n*Math.cos(s*e)}px + var(--item-diff-x, 0px))`,o=`calc(${n*Math.sin(s*e)}px + var(--item-diff-y, 0px))`;if("up-left"===i)return{right:l,bottom:o};if("up-right"===i)return{left:l,bottom:o};if("down-left"===i)return{right:o,top:l};if("down-right"===i)return{left:o,top:l}}}return{}},getItemStyle(e){return{transitionDelay:`${this.calculateTransitionDelay(e)}ms`,...this.calculatePointStyle(e)}},bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=e=>{this.d_visible&&this.isOutsideClicked(e)&&this.hide(),this.isItemClicked=!1},document.addEventListener("click",this.documentClickListener))},unbindDocumentClickListener(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)},isOutsideClicked(e){return this.container&&!(this.container.isSameNode(e.target)||this.container.contains(e.target)||this.isItemClicked)},containerRef(e){this.container=e},listRef(e){this.list=e}},computed:{containerClass(){return[`p-speeddial p-component p-speeddial-${this.type}`,{[`p-speeddial-direction-${this.direction}`]:"circle"!==this.type,"p-speeddial-opened":this.d_visible,"p-disabled":this.disabled},this.class]},buttonClassName(){return["p-speeddial-button p-button-rounded",{"p-speeddial-rotate":this.rotateAnimation&&!this.hideIcon},this.buttonClass]},iconClassName(){return this.d_visible&&this.hideIcon?this.hideIcon:this.showIcon},maskClassName(){return["p-speeddial-mask",{"p-speeddial-mask-visible":this.d_visible},this.maskClass]}},components:{SDButton:e},directives:{ripple:i,tooltip:t}};const w=["href","target","onClick"];!function(e,i){void 0===i&&(i={});var t=i.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===t&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-speeddial {\n position: absolute;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n z-index: 1;\n}\n.p-speeddial-list {\n margin: 0;\n padding: 0;\n list-style: none;\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 -webkit-transition: top 0s linear 0.2s;\n transition: top 0s linear 0.2s;\n pointer-events: none;\n}\n.p-speeddial-item {\n -webkit-transform: scale(0);\n transform: scale(0);\n opacity: 0;\n -webkit-transition: opacity 0.8s, -webkit-transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: opacity 0.8s, -webkit-transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 0.8s;\n transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 0.8s, -webkit-transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n will-change: transform;\n}\n.p-speeddial-action {\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 border-radius: 50%;\n position: relative;\n overflow: hidden;\n}\n.p-speeddial-circle .p-speeddial-item,\n.p-speeddial-semi-circle .p-speeddial-item,\n.p-speeddial-quarter-circle .p-speeddial-item {\n position: absolute;\n}\n.p-speeddial-rotate {\n -webkit-transition: -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n will-change: transform;\n}\n.p-speeddial-mask {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n -webkit-transition: opacity 250ms cubic-bezier(0.25, 0.8, 0.25, 1);\n transition: opacity 250ms cubic-bezier(0.25, 0.8, 0.25, 1);\n}\n.p-speeddial-mask-visible {\n pointer-events: none;\n opacity: 1;\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-speeddial-opened .p-speeddial-list {\n pointer-events: auto;\n}\n.p-speeddial-opened .p-speeddial-item {\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 1;\n}\n.p-speeddial-opened .p-speeddial-rotate {\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n\n/* Direction */\n.p-speeddial-direction-up {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.p-speeddial-direction-up .p-speeddial-list {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.p-speeddial-direction-down {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-speeddial-direction-down .p-speeddial-list {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-speeddial-direction-left {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.p-speeddial-direction-left .p-speeddial-list {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.p-speeddial-direction-right {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n.p-speeddial-direction-right .p-speeddial-list {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n"),y.render=function(e,i,t,n,y,v){const g=s("SDButton"),C=l("tooltip"),z=l("ripple");return o(),r(a,null,[c("div",{ref:v.containerRef,class:d(v.containerClass),style:p(t.style)},[m(e.$slots,"button",{toggle:v.onClick},(()=>[u(g,{type:"button",class:d(v.buttonClassName),icon:v.iconClassName,onClick:i[0]||(i[0]=e=>v.onClick(e)),disabled:t.disabled},null,8,["class","icon","disabled"])])),c("ul",{ref:v.listRef,class:"p-speeddial-list",role:"menu"},[(o(!0),r(a,null,b(t.model,((i,n)=>(o(),r("li",{key:n,class:"p-speeddial-item",style:p(v.getItemStyle(n)),role:"none"},[e.$slots.item?(o(),k(x(e.$slots.item),{key:1,item:i},null,8,["item"])):f((o(),r("a",{key:0,href:i.url||"#",role:"menuitem",class:d(["p-speeddial-action",{"p-disabled":i.disabled}]),target:i.target,onClick:e=>v.onItemClick(e,i)},[i.icon?(o(),r("span",{key:0,class:d(["p-speeddial-action-icon",i.icon])},null,2)):h("",!0)],10,w)),[[C,{value:i.label,disabled:!t.tooltipOptions},t.tooltipOptions],[z]])],4)))),128))],512)],6),t.mask?(o(),r("div",{key:0,class:d(v.maskClassName),style:p(t.maskStyle)},null,6)):h("",!0)],64)};export{y as default};
|
package/speeddial/speeddial.js
CHANGED
|
@@ -242,62 +242,64 @@ this.primevue.speeddial = (function (Button, Ripple, Tooltip, utils, vue) {
|
|
|
242
242
|
}
|
|
243
243
|
},
|
|
244
244
|
components: {
|
|
245
|
-
'SDButton': Button__default[
|
|
245
|
+
'SDButton': Button__default["default"]
|
|
246
246
|
},
|
|
247
247
|
directives: {
|
|
248
|
-
'ripple': Ripple__default[
|
|
249
|
-
'tooltip': Tooltip__default[
|
|
248
|
+
'ripple': Ripple__default["default"],
|
|
249
|
+
'tooltip': Tooltip__default["default"]
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
252
|
|
|
253
|
+
const _hoisted_1 = ["href", "target", "onClick"];
|
|
254
|
+
|
|
253
255
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
254
256
|
const _component_SDButton = vue.resolveComponent("SDButton");
|
|
255
257
|
const _directive_tooltip = vue.resolveDirective("tooltip");
|
|
256
258
|
const _directive_ripple = vue.resolveDirective("ripple");
|
|
257
259
|
|
|
258
|
-
return (vue.openBlock(), vue.
|
|
259
|
-
vue.
|
|
260
|
+
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
261
|
+
vue.createElementVNode("div", {
|
|
260
262
|
ref: $options.containerRef,
|
|
261
|
-
class: $options.containerClass,
|
|
262
|
-
style: $props.style
|
|
263
|
+
class: vue.normalizeClass($options.containerClass),
|
|
264
|
+
style: vue.normalizeStyle($props.style)
|
|
263
265
|
}, [
|
|
264
266
|
vue.renderSlot(_ctx.$slots, "button", { toggle: $options.onClick }, () => [
|
|
265
267
|
vue.createVNode(_component_SDButton, {
|
|
266
268
|
type: "button",
|
|
267
|
-
class: $options.buttonClassName,
|
|
269
|
+
class: vue.normalizeClass($options.buttonClassName),
|
|
268
270
|
icon: $options.iconClassName,
|
|
269
|
-
onClick: _cache[
|
|
271
|
+
onClick: _cache[0] || (_cache[0] = $event => ($options.onClick($event))),
|
|
270
272
|
disabled: $props.disabled
|
|
271
273
|
}, null, 8, ["class", "icon", "disabled"])
|
|
272
274
|
]),
|
|
273
|
-
vue.
|
|
275
|
+
vue.createElementVNode("ul", {
|
|
274
276
|
ref: $options.listRef,
|
|
275
277
|
class: "p-speeddial-list",
|
|
276
278
|
role: "menu"
|
|
277
279
|
}, [
|
|
278
|
-
(vue.openBlock(true), vue.
|
|
279
|
-
return (vue.openBlock(), vue.
|
|
280
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.model, (item, index) => {
|
|
281
|
+
return (vue.openBlock(), vue.createElementBlock("li", {
|
|
280
282
|
key: index,
|
|
281
283
|
class: "p-speeddial-item",
|
|
282
|
-
style: $options.getItemStyle(index),
|
|
284
|
+
style: vue.normalizeStyle($options.getItemStyle(index)),
|
|
283
285
|
role: "none"
|
|
284
286
|
}, [
|
|
285
287
|
(!_ctx.$slots.item)
|
|
286
|
-
? vue.withDirectives((vue.openBlock(), vue.
|
|
288
|
+
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", {
|
|
287
289
|
key: 0,
|
|
288
290
|
href: item.url || '#',
|
|
289
291
|
role: "menuitem",
|
|
290
|
-
class: ['p-speeddial-action', { 'p-disabled': item.disabled }],
|
|
292
|
+
class: vue.normalizeClass(['p-speeddial-action', { 'p-disabled': item.disabled }]),
|
|
291
293
|
target: item.target,
|
|
292
294
|
onClick: $event => ($options.onItemClick($event, item))
|
|
293
295
|
}, [
|
|
294
296
|
(item.icon)
|
|
295
|
-
? (vue.openBlock(), vue.
|
|
297
|
+
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
296
298
|
key: 0,
|
|
297
|
-
class: ['p-speeddial-action-icon', item.icon]
|
|
299
|
+
class: vue.normalizeClass(['p-speeddial-action-icon', item.icon])
|
|
298
300
|
}, null, 2))
|
|
299
301
|
: vue.createCommentVNode("", true)
|
|
300
|
-
], 10,
|
|
302
|
+
], 10, _hoisted_1)), [
|
|
301
303
|
[_directive_tooltip, {value: item.label, disabled: !$props.tooltipOptions}, $props.tooltipOptions],
|
|
302
304
|
[_directive_ripple]
|
|
303
305
|
])
|
|
@@ -310,10 +312,10 @@ this.primevue.speeddial = (function (Button, Ripple, Tooltip, utils, vue) {
|
|
|
310
312
|
], 512)
|
|
311
313
|
], 6),
|
|
312
314
|
($props.mask)
|
|
313
|
-
? (vue.openBlock(), vue.
|
|
315
|
+
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
314
316
|
key: 0,
|
|
315
|
-
class: $options.maskClassName,
|
|
316
|
-
style: $props.maskStyle
|
|
317
|
+
class: vue.normalizeClass($options.maskClassName),
|
|
318
|
+
style: vue.normalizeStyle($props.maskStyle)
|
|
317
319
|
}, null, 6))
|
|
318
320
|
: vue.createCommentVNode("", true)
|
|
319
321
|
], 64))
|
|
@@ -353,4 +355,4 @@ this.primevue.speeddial = (function (Button, Ripple, Tooltip, utils, vue) {
|
|
|
353
355
|
|
|
354
356
|
return script;
|
|
355
357
|
|
|
356
|
-
}(primevue.button, primevue.ripple, primevue.tooltip, primevue.utils, Vue)
|
|
358
|
+
})(primevue.button, primevue.ripple, primevue.tooltip, primevue.utils, Vue);
|