primereact 10.0.0 → 10.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/accordion/accordion.esm.js +0 -1
- package/api/api.esm.js +0 -1
- package/autocomplete/autocomplete.esm.js +8 -7
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/avatar/avatar.esm.js +0 -1
- package/avatargroup/avatargroup.esm.js +0 -1
- package/badge/badge.esm.js +0 -1
- package/blockui/blockui.esm.js +3 -1
- package/blockui/blockui.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +0 -1
- package/button/button.esm.js +0 -1
- package/calendar/calendar.esm.js +2 -1
- package/calendar/calendar.esm.min.js +1 -1
- package/card/card.esm.js +0 -1
- package/carousel/carousel.esm.js +7 -8
- package/carousel/carousel.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +0 -1
- package/chart/chart.esm.js +0 -1
- package/checkbox/checkbox.esm.js +0 -1
- package/chip/chip.esm.js +0 -1
- package/chips/chips.esm.js +0 -1
- package/colorpicker/colorpicker.esm.js +0 -1
- package/column/column.esm.js +0 -1
- package/columngroup/columngroup.esm.js +0 -1
- package/componentbase/componentbase.cjs.js +12 -7
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +23 -13
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +12 -7
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +0 -1
- package/confirmpopup/confirmpopup.esm.js +0 -1
- package/contextmenu/contextmenu.esm.js +0 -1
- package/core/core.js +12 -7
- package/core/core.min.js +1 -1
- package/csstransition/csstransition.esm.js +0 -1
- package/datascroller/datascroller.esm.js +0 -1
- package/datatable/datatable.esm.js +0 -1
- package/dataview/dataview.esm.js +0 -1
- package/deferredcontent/deferredcontent.esm.js +0 -1
- package/dialog/dialog.esm.js +2 -1
- package/dialog/dialog.esm.min.js +1 -1
- package/divider/divider.esm.js +0 -1
- package/dock/dock.esm.js +0 -1
- package/dropdown/dropdown.esm.js +0 -1
- package/editor/editor.esm.js +0 -1
- package/fieldset/fieldset.esm.js +0 -1
- package/fileupload/fileupload.esm.js +0 -1
- package/galleria/galleria.esm.js +11 -7
- package/galleria/galleria.esm.min.js +1 -1
- package/hooks/hooks.esm.js +0 -6
- package/iconbase/iconbase.esm.js +0 -1
- package/icons/angledoubledown/index.esm.js +0 -1
- package/icons/angledoubleleft/index.esm.js +0 -1
- package/icons/angledoubleright/index.esm.js +0 -1
- package/icons/angledoubleup/index.esm.js +0 -1
- package/icons/angledown/index.esm.js +0 -1
- package/icons/angleleft/index.esm.js +0 -1
- package/icons/angleright/index.esm.js +0 -1
- package/icons/angleup/index.esm.js +0 -1
- package/icons/arrowdown/index.esm.js +0 -1
- package/icons/arrowup/index.esm.js +0 -1
- package/icons/ban/index.esm.js +0 -1
- package/icons/bars/index.esm.js +0 -1
- package/icons/calendar/index.esm.js +0 -1
- package/icons/check/index.esm.js +0 -1
- package/icons/chevrondown/index.esm.js +0 -1
- package/icons/chevronleft/index.esm.js +0 -1
- package/icons/chevronright/index.esm.js +0 -1
- package/icons/chevronup/index.esm.js +0 -1
- package/icons/download/index.esm.js +0 -1
- package/icons/exclamationtriangle/index.esm.js +0 -1
- package/icons/eye/index.esm.js +0 -1
- package/icons/eyeslash/index.esm.js +0 -1
- package/icons/filter/index.esm.js +0 -1
- package/icons/filterslash/index.esm.js +0 -1
- package/icons/infocircle/index.esm.js +0 -1
- package/icons/minus/index.esm.js +0 -1
- package/icons/pencil/index.esm.js +0 -1
- package/icons/plus/index.esm.js +0 -1
- package/icons/refresh/index.esm.js +0 -1
- package/icons/search/index.esm.js +0 -1
- package/icons/searchminus/index.esm.js +0 -1
- package/icons/searchplus/index.esm.js +0 -1
- package/icons/sortalt/index.esm.js +0 -1
- package/icons/sortamountdown/index.esm.js +0 -1
- package/icons/sortamountupalt/index.esm.js +0 -1
- package/icons/spinner/index.esm.js +0 -1
- package/icons/star/index.esm.js +0 -1
- package/icons/starfill/index.esm.js +0 -1
- package/icons/thlarge/index.esm.js +0 -1
- package/icons/times/index.esm.js +0 -1
- package/icons/timescircle/index.esm.js +0 -1
- package/icons/trash/index.esm.js +0 -1
- package/icons/undo/index.esm.js +0 -1
- package/icons/upload/index.esm.js +0 -1
- package/icons/windowmaximize/index.esm.js +0 -1
- package/icons/windowminimize/index.esm.js +0 -1
- package/image/image.esm.js +2 -1
- package/image/image.esm.min.js +1 -1
- package/inplace/inplace.esm.js +0 -1
- package/inputmask/inputmask.esm.js +0 -1
- package/inputnumber/inputnumber.esm.js +0 -1
- package/inputswitch/inputswitch.esm.js +0 -1
- package/inputtext/inputtext.esm.js +0 -1
- package/inputtextarea/inputtextarea.esm.js +0 -1
- package/keyfilter/keyfilter.esm.js +0 -1
- package/knob/knob.esm.js +0 -1
- package/listbox/listbox.esm.js +0 -1
- package/megamenu/megamenu.esm.js +0 -1
- package/mention/mention.esm.js +0 -1
- package/menu/menu.esm.js +0 -1
- package/menubar/menubar.esm.js +0 -1
- package/message/message.esm.js +0 -1
- package/messages/messages.esm.js +1 -2
- package/messages/messages.esm.min.js +1 -1
- package/multiselect/multiselect.esm.js +0 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +0 -1
- package/orderlist/orderlist.esm.js +9 -5
- package/orderlist/orderlist.esm.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +0 -1
- package/overlaypanel/overlaypanel.esm.js +0 -1
- package/overlayservice/overlayservice.esm.js +0 -1
- package/package.json +2 -2
- package/paginator/paginator.esm.js +0 -1
- package/panel/panel.esm.js +0 -1
- package/panelmenu/panelmenu.esm.js +0 -1
- package/passthrough/index.esm.js +0 -1
- package/passthrough/tailwind/index.cjs.js +2 -4
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +149 -148
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +2 -4
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.esm.js +0 -1
- package/picklist/picklist.esm.js +0 -1
- package/portal/portal.esm.js +0 -1
- package/primereact.all.cjs.js +12 -7
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +70 -42
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +12 -7
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.esm.js +0 -1
- package/progressspinner/progressspinner.esm.js +0 -1
- package/radiobutton/radiobutton.esm.js +0 -1
- package/rating/rating.esm.js +0 -1
- package/ripple/ripple.esm.js +0 -1
- package/row/row.esm.js +0 -1
- package/scrollpanel/scrollpanel.esm.js +0 -1
- package/scrolltop/scrolltop.esm.js +0 -1
- package/selectbutton/selectbutton.esm.js +0 -1
- package/sidebar/sidebar.esm.js +2 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/skeleton/skeleton.esm.js +0 -1
- package/slidemenu/slidemenu.esm.js +0 -1
- package/slider/slider.esm.js +0 -1
- package/speeddial/speeddial.esm.js +0 -1
- package/splitbutton/splitbutton.esm.js +0 -1
- package/splitter/splitter.esm.js +0 -1
- package/steps/steps.esm.js +0 -1
- package/styleclass/styleclass.esm.js +0 -1
- package/tabmenu/tabmenu.esm.js +0 -1
- package/tabview/tabview.esm.js +0 -1
- package/tag/tag.esm.js +0 -1
- package/terminal/terminal.esm.js +0 -1
- package/terminalservice/terminalservice.esm.js +0 -1
- package/tieredmenu/tieredmenu.esm.js +0 -1
- package/timeline/timeline.esm.js +0 -1
- package/toast/toast.esm.js +0 -1
- package/togglebutton/togglebutton.esm.js +0 -1
- package/toolbar/toolbar.esm.js +0 -1
- package/tooltip/tooltip.esm.js +0 -1
- package/tree/tree.esm.js +0 -1
- package/treeselect/treeselect.esm.js +0 -1
- package/treetable/treetable.esm.js +0 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +0 -1
- package/utils/utils.esm.js +0 -1
- package/virtualscroller/virtualscroller.esm.js +0 -1
- package/web-types.json +1 -1
- package/accordion/accordion.esm.min.mjs +0 -1
- package/accordion/accordion.esm.mjs +0 -420
- package/api/api.esm.min.mjs +0 -1
- package/api/api.esm.mjs +0 -943
- package/autocomplete/autocomplete.esm.min.mjs +0 -1
- package/autocomplete/autocomplete.esm.mjs +0 -1128
- package/avatar/avatar.esm.min.mjs +0 -1
- package/avatar/avatar.esm.mjs +0 -244
- package/avatargroup/avatargroup.esm.min.mjs +0 -1
- package/avatargroup/avatargroup.esm.mjs +0 -54
- package/badge/badge.esm.min.mjs +0 -1
- package/badge/badge.esm.mjs +0 -109
- package/blockui/blockui.esm.min.mjs +0 -1
- package/blockui/blockui.esm.mjs +0 -267
- package/breadcrumb/breadcrumb.esm.min.mjs +0 -1
- package/breadcrumb/breadcrumb.esm.mjs +0 -350
- package/button/button.esm.min.mjs +0 -1
- package/button/button.esm.mjs +0 -294
- package/calendar/calendar.esm.min.mjs +0 -1
- package/calendar/calendar.esm.mjs +0 -3474
- package/card/card.esm.min.mjs +0 -1
- package/card/card.esm.mjs +0 -97
- package/carousel/carousel.esm.min.mjs +0 -1
- package/carousel/carousel.esm.mjs +0 -800
- package/cascadeselect/cascadeselect.esm.min.mjs +0 -1
- package/cascadeselect/cascadeselect.esm.mjs +0 -818
- package/chart/chart.esm.min.mjs +0 -1
- package/chart/chart.esm.mjs +0 -154
- package/checkbox/checkbox.esm.min.mjs +0 -1
- package/checkbox/checkbox.esm.mjs +0 -356
- package/chip/chip.esm.min.mjs +0 -1
- package/chip/chip.esm.mjs +0 -247
- package/chips/chips.esm.min.mjs +0 -1
- package/chips/chips.esm.mjs +0 -500
- package/colorpicker/colorpicker.esm.min.mjs +0 -1
- package/colorpicker/colorpicker.esm.mjs +0 -787
- package/column/column.esm.min.mjs +0 -1
- package/column/column.esm.mjs +0 -7
- package/columngroup/columngroup.esm.min.mjs +0 -1
- package/columngroup/columngroup.esm.mjs +0 -5
- package/componentbase/componentbase.esm.min.mjs +0 -1
- package/componentbase/componentbase.esm.mjs +0 -328
- package/confirmdialog/confirmdialog.esm.min.mjs +0 -1
- package/confirmdialog/confirmdialog.esm.mjs +0 -375
- package/confirmpopup/confirmpopup.esm.min.mjs +0 -1
- package/confirmpopup/confirmpopup.esm.mjs +0 -609
- package/contextmenu/contextmenu.esm.min.mjs +0 -1
- package/contextmenu/contextmenu.esm.mjs +0 -663
- package/csstransition/csstransition.esm.min.mjs +0 -1
- package/csstransition/csstransition.esm.mjs +0 -137
- package/datascroller/datascroller.esm.min.mjs +0 -1
- package/datascroller/datascroller.esm.mjs +0 -319
- package/datatable/datatable.esm.min.mjs +0 -1
- package/datatable/datatable.esm.mjs +0 -6635
- package/dataview/dataview.esm.min.mjs +0 -1
- package/dataview/dataview.esm.mjs +0 -505
- package/deferredcontent/deferredcontent.esm.min.mjs +0 -1
- package/deferredcontent/deferredcontent.esm.mjs +0 -132
- package/dialog/dialog.esm.min.mjs +0 -1
- package/dialog/dialog.esm.mjs +0 -984
- package/divider/divider.esm.min.mjs +0 -1
- package/divider/divider.esm.mjs +0 -78
- package/dock/dock.esm.min.mjs +0 -1
- package/dock/dock.esm.mjs +0 -347
- package/dropdown/dropdown.esm.min.mjs +0 -1
- package/dropdown/dropdown.esm.mjs +0 -1379
- package/editor/editor.esm.min.mjs +0 -1
- package/editor/editor.esm.mjs +0 -337
- package/fieldset/fieldset.esm.min.mjs +0 -1
- package/fieldset/fieldset.esm.mjs +0 -269
- package/fileupload/fileupload.esm.min.mjs +0 -1
- package/fileupload/fileupload.esm.mjs +0 -1004
- package/galleria/galleria.esm.min.mjs +0 -1
- package/galleria/galleria.esm.mjs +0 -1094
- package/hooks/hooks.esm.min.mjs +0 -1
- package/hooks/hooks.esm.mjs +0 -1036
- package/iconbase/iconbase.esm.min.mjs +0 -1
- package/iconbase/iconbase.esm.mjs +0 -32
- package/icons/angledoubledown/index.esm.min.mjs +0 -1
- package/icons/angledoubledown/index.esm.mjs +0 -38
- package/icons/angledoubleleft/index.esm.min.mjs +0 -1
- package/icons/angledoubleleft/index.esm.mjs +0 -38
- package/icons/angledoubleright/index.esm.min.mjs +0 -1
- package/icons/angledoubleright/index.esm.mjs +0 -38
- package/icons/angledoubleup/index.esm.min.mjs +0 -1
- package/icons/angledoubleup/index.esm.mjs +0 -38
- package/icons/angledown/index.esm.min.mjs +0 -1
- package/icons/angledown/index.esm.mjs +0 -36
- package/icons/angleleft/index.esm.min.mjs +0 -1
- package/icons/angleleft/index.esm.mjs +0 -36
- package/icons/angleright/index.esm.min.mjs +0 -1
- package/icons/angleright/index.esm.mjs +0 -36
- package/icons/angleup/index.esm.min.mjs +0 -1
- package/icons/angleup/index.esm.mjs +0 -36
- package/icons/arrowdown/index.esm.min.mjs +0 -1
- package/icons/arrowdown/index.esm.mjs +0 -660
- package/icons/arrowup/index.esm.min.mjs +0 -1
- package/icons/arrowup/index.esm.mjs +0 -660
- package/icons/ban/index.esm.min.mjs +0 -1
- package/icons/ban/index.esm.mjs +0 -658
- package/icons/bars/index.esm.min.mjs +0 -1
- package/icons/bars/index.esm.mjs +0 -38
- package/icons/calendar/index.esm.min.mjs +0 -1
- package/icons/calendar/index.esm.mjs +0 -36
- package/icons/check/index.esm.min.mjs +0 -1
- package/icons/check/index.esm.mjs +0 -36
- package/icons/chevrondown/index.esm.min.mjs +0 -1
- package/icons/chevrondown/index.esm.mjs +0 -36
- package/icons/chevronleft/index.esm.min.mjs +0 -1
- package/icons/chevronleft/index.esm.mjs +0 -36
- package/icons/chevronright/index.esm.min.mjs +0 -1
- package/icons/chevronright/index.esm.mjs +0 -36
- package/icons/chevronup/index.esm.min.mjs +0 -1
- package/icons/chevronup/index.esm.mjs +0 -36
- package/icons/download/index.esm.min.mjs +0 -1
- package/icons/download/index.esm.mjs +0 -660
- package/icons/exclamationtriangle/index.esm.min.mjs +0 -1
- package/icons/exclamationtriangle/index.esm.mjs +0 -664
- package/icons/eye/index.esm.min.mjs +0 -1
- package/icons/eye/index.esm.mjs +0 -38
- package/icons/eyeslash/index.esm.min.mjs +0 -1
- package/icons/eyeslash/index.esm.mjs +0 -660
- package/icons/filter/index.esm.min.mjs +0 -1
- package/icons/filter/index.esm.mjs +0 -658
- package/icons/filterslash/index.esm.min.mjs +0 -1
- package/icons/filterslash/index.esm.mjs +0 -660
- package/icons/infocircle/index.esm.min.mjs +0 -1
- package/icons/infocircle/index.esm.mjs +0 -660
- package/icons/minus/index.esm.min.mjs +0 -1
- package/icons/minus/index.esm.mjs +0 -36
- package/icons/pencil/index.esm.min.mjs +0 -1
- package/icons/pencil/index.esm.mjs +0 -658
- package/icons/plus/index.esm.min.mjs +0 -1
- package/icons/plus/index.esm.mjs +0 -658
- package/icons/refresh/index.esm.min.mjs +0 -1
- package/icons/refresh/index.esm.mjs +0 -660
- package/icons/search/index.esm.min.mjs +0 -1
- package/icons/search/index.esm.mjs +0 -660
- package/icons/searchminus/index.esm.min.mjs +0 -1
- package/icons/searchminus/index.esm.mjs +0 -660
- package/icons/searchplus/index.esm.min.mjs +0 -1
- package/icons/searchplus/index.esm.mjs +0 -660
- package/icons/sortalt/index.esm.min.mjs +0 -1
- package/icons/sortalt/index.esm.mjs +0 -667
- package/icons/sortamountdown/index.esm.min.mjs +0 -1
- package/icons/sortamountdown/index.esm.mjs +0 -673
- package/icons/sortamountupalt/index.esm.min.mjs +0 -1
- package/icons/sortamountupalt/index.esm.mjs +0 -673
- package/icons/spinner/index.esm.min.mjs +0 -1
- package/icons/spinner/index.esm.mjs +0 -658
- package/icons/star/index.esm.min.mjs +0 -1
- package/icons/star/index.esm.mjs +0 -658
- package/icons/starfill/index.esm.min.mjs +0 -1
- package/icons/starfill/index.esm.mjs +0 -658
- package/icons/thlarge/index.esm.min.mjs +0 -1
- package/icons/thlarge/index.esm.mjs +0 -660
- package/icons/times/index.esm.min.mjs +0 -1
- package/icons/times/index.esm.mjs +0 -36
- package/icons/timescircle/index.esm.min.mjs +0 -1
- package/icons/timescircle/index.esm.mjs +0 -660
- package/icons/trash/index.esm.min.mjs +0 -1
- package/icons/trash/index.esm.mjs +0 -660
- package/icons/undo/index.esm.min.mjs +0 -1
- package/icons/undo/index.esm.mjs +0 -660
- package/icons/upload/index.esm.min.mjs +0 -1
- package/icons/upload/index.esm.mjs +0 -660
- package/icons/windowmaximize/index.esm.min.mjs +0 -1
- package/icons/windowmaximize/index.esm.mjs +0 -660
- package/icons/windowminimize/index.esm.min.mjs +0 -1
- package/icons/windowminimize/index.esm.mjs +0 -660
- package/image/image.esm.min.mjs +0 -1
- package/image/image.esm.mjs +0 -1163
- package/inplace/inplace.esm.min.mjs +0 -1
- package/inplace/inplace.esm.mjs +0 -242
- package/inputmask/inputmask.esm.min.mjs +0 -1
- package/inputmask/inputmask.esm.mjs +0 -559
- package/inputnumber/inputnumber.esm.min.mjs +0 -1
- package/inputnumber/inputnumber.esm.mjs +0 -1208
- package/inputswitch/inputswitch.esm.min.mjs +0 -1
- package/inputswitch/inputswitch.esm.mjs +0 -290
- package/inputtext/inputtext.esm.min.mjs +0 -1
- package/inputtext/inputtext.esm.mjs +0 -170
- package/inputtextarea/inputtextarea.esm.min.mjs +0 -1
- package/inputtextarea/inputtextarea.esm.mjs +0 -219
- package/keyfilter/keyfilter.esm.min.mjs +0 -1
- package/keyfilter/keyfilter.esm.mjs +0 -107
- package/knob/knob.esm.min.mjs +0 -1
- package/knob/knob.esm.mjs +0 -317
- package/listbox/listbox.esm.min.mjs +0 -1
- package/listbox/listbox.esm.mjs +0 -809
- package/megamenu/megamenu.esm.min.mjs +0 -1
- package/megamenu/megamenu.esm.mjs +0 -715
- package/mention/mention.esm.min.mjs +0 -1
- package/mention/mention.esm.mjs +0 -770
- package/menu/menu.esm.min.mjs +0 -1
- package/menu/menu.esm.mjs +0 -484
- package/menubar/menubar.esm.min.mjs +0 -1
- package/menubar/menubar.esm.mjs +0 -583
- package/message/message.esm.min.mjs +0 -1
- package/message/message.esm.mjs +0 -168
- package/messages/messages.esm.min.mjs +0 -1
- package/messages/messages.esm.mjs +0 -438
- package/multiselect/multiselect.esm.min.mjs +0 -1
- package/multiselect/multiselect.esm.mjs +0 -1723
- package/multistatecheckbox/multistatecheckbox.esm.min.mjs +0 -1
- package/multistatecheckbox/multistatecheckbox.esm.mjs +0 -351
- package/orderlist/orderlist.esm.min.mjs +0 -1
- package/orderlist/orderlist.esm.mjs +0 -820
- package/organizationchart/organizationchart.esm.min.mjs +0 -1
- package/organizationchart/organizationchart.esm.mjs +0 -479
- package/overlaypanel/overlaypanel.esm.min.mjs +0 -1
- package/overlaypanel/overlaypanel.esm.mjs +0 -515
- package/overlayservice/overlayservice.esm.min.mjs +0 -1
- package/overlayservice/overlayservice.esm.mjs +0 -6
- package/paginator/paginator.esm.min.mjs +0 -1
- package/paginator/paginator.esm.mjs +0 -932
- package/panel/panel.esm.min.mjs +0 -1
- package/panel/panel.esm.mjs +0 -315
- package/panelmenu/panelmenu.esm.min.mjs +0 -1
- package/panelmenu/panelmenu.esm.mjs +0 -644
- package/passthrough/index.esm.min.mjs +0 -1
- package/passthrough/index.esm.mjs +0 -70
- package/passthrough/tailwind/index.esm.min.mjs +0 -1
- package/passthrough/tailwind/index.esm.mjs +0 -3513
- package/password/password.esm.min.mjs +0 -1
- package/password/password.esm.mjs +0 -566
- package/picklist/picklist.esm.min.mjs +0 -1
- package/picklist/picklist.esm.mjs +0 -1118
- package/portal/portal.esm.min.mjs +0 -1
- package/portal/portal.esm.mjs +0 -109
- package/primereact.all.esm.min.mjs +0 -1
- package/primereact.all.esm.mjs +0 -51669
- package/progressbar/progressbar.esm.min.mjs +0 -1
- package/progressbar/progressbar.esm.mjs +0 -189
- package/progressspinner/progressspinner.esm.min.mjs +0 -1
- package/progressspinner/progressspinner.esm.mjs +0 -87
- package/radiobutton/radiobutton.esm.min.mjs +0 -1
- package/radiobutton/radiobutton.esm.mjs +0 -328
- package/rating/rating.esm.min.mjs +0 -1
- package/rating/rating.esm.mjs +0 -272
- package/ripple/ripple.esm.min.mjs +0 -1
- package/ripple/ripple.esm.mjs +0 -99
- package/row/row.esm.min.mjs +0 -1
- package/row/row.esm.mjs +0 -35
- package/scrollpanel/scrollpanel.esm.min.mjs +0 -1
- package/scrollpanel/scrollpanel.esm.mjs +0 -209
- package/scrolltop/scrolltop.esm.min.mjs +0 -1
- package/scrolltop/scrolltop.esm.mjs +0 -268
- package/selectbutton/selectbutton.esm.min.mjs +0 -1
- package/selectbutton/selectbutton.esm.mjs +0 -326
- package/sidebar/sidebar.esm.min.mjs +0 -1
- package/sidebar/sidebar.esm.mjs +0 -544
- package/skeleton/skeleton.esm.min.mjs +0 -1
- package/skeleton/skeleton.esm.mjs +0 -124
- package/slidemenu/slidemenu.esm.min.mjs +0 -1
- package/slidemenu/slidemenu.esm.mjs +0 -688
- package/slider/slider.esm.min.mjs +0 -1
- package/slider/slider.esm.mjs +0 -477
- package/speeddial/speeddial.esm.min.mjs +0 -1
- package/speeddial/speeddial.esm.mjs +0 -520
- package/splitbutton/splitbutton.esm.min.mjs +0 -1
- package/splitbutton/splitbutton.esm.mjs +0 -544
- package/splitter/splitter.esm.min.mjs +0 -1
- package/splitter/splitter.esm.mjs +0 -465
- package/steps/steps.esm.min.mjs +0 -1
- package/steps/steps.esm.mjs +0 -293
- package/styleclass/styleclass.esm.min.mjs +0 -1
- package/styleclass/styleclass.esm.mjs +0 -268
- package/tabmenu/tabmenu.esm.min.mjs +0 -1
- package/tabmenu/tabmenu.esm.mjs +0 -331
- package/tabview/tabview.esm.min.mjs +0 -1
- package/tabview/tabview.esm.mjs +0 -677
- package/tag/tag.esm.min.mjs +0 -1
- package/tag/tag.esm.mjs +0 -116
- package/terminal/terminal.esm.min.mjs +0 -1
- package/terminal/terminal.esm.mjs +0 -279
- package/terminalservice/terminalservice.esm.min.mjs +0 -1
- package/terminalservice/terminalservice.esm.mjs +0 -6
- package/tieredmenu/tieredmenu.esm.min.mjs +0 -1
- package/tieredmenu/tieredmenu.esm.mjs +0 -698
- package/timeline/timeline.esm.min.mjs +0 -1
- package/timeline/timeline.esm.mjs +0 -163
- package/toast/toast.esm.min.mjs +0 -1
- package/toast/toast.esm.mjs +0 -738
- package/togglebutton/togglebutton.esm.min.mjs +0 -1
- package/togglebutton/togglebutton.esm.mjs +0 -216
- package/toolbar/toolbar.esm.min.mjs +0 -1
- package/toolbar/toolbar.esm.mjs +0 -78
- package/tooltip/tooltip.esm.min.mjs +0 -1
- package/tooltip/tooltip.esm.mjs +0 -695
- package/tree/tree.esm.min.mjs +0 -1
- package/tree/tree.esm.mjs +0 -1402
- package/treeselect/treeselect.esm.min.mjs +0 -1
- package/treeselect/treeselect.esm.mjs +0 -929
- package/treetable/treetable.esm.min.mjs +0 -1
- package/treetable/treetable.esm.mjs +0 -3093
- package/tristatecheckbox/tristatecheckbox.esm.min.mjs +0 -1
- package/tristatecheckbox/tristatecheckbox.esm.mjs +0 -291
- package/utils/utils.esm.min.mjs +0 -1
- package/utils/utils.esm.mjs +0 -2382
- package/virtualscroller/virtualscroller.esm.min.mjs +0 -1
- package/virtualscroller/virtualscroller.esm.mjs +0 -971
|
@@ -1,520 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { PrimeReactContext } from 'primereact/api';
|
|
4
|
-
import { Button } from 'primereact/button';
|
|
5
|
-
import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
|
|
6
|
-
import { useEventListener, useMountEffect, useUpdateEffect } from 'primereact/hooks';
|
|
7
|
-
import { MinusIcon } from 'primereact/icons/minus';
|
|
8
|
-
import { PlusIcon } from 'primereact/icons/plus';
|
|
9
|
-
import { Ripple } from 'primereact/ripple';
|
|
10
|
-
import { classNames, DomHandler, mergeProps, IconUtils, ObjectUtils } from 'primereact/utils';
|
|
11
|
-
|
|
12
|
-
function _extends() {
|
|
13
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
14
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
15
|
-
var source = arguments[i];
|
|
16
|
-
for (var key in source) {
|
|
17
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
18
|
-
target[key] = source[key];
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return target;
|
|
23
|
-
};
|
|
24
|
-
return _extends.apply(this, arguments);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function _typeof(o) {
|
|
28
|
-
"@babel/helpers - typeof";
|
|
29
|
-
|
|
30
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
31
|
-
return typeof o;
|
|
32
|
-
} : function (o) {
|
|
33
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
34
|
-
}, _typeof(o);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function _toPrimitive(input, hint) {
|
|
38
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
39
|
-
var prim = input[Symbol.toPrimitive];
|
|
40
|
-
if (prim !== undefined) {
|
|
41
|
-
var res = prim.call(input, hint || "default");
|
|
42
|
-
if (_typeof(res) !== "object") return res;
|
|
43
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44
|
-
}
|
|
45
|
-
return (hint === "string" ? String : Number)(input);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function _toPropertyKey(arg) {
|
|
49
|
-
var key = _toPrimitive(arg, "string");
|
|
50
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function _defineProperty(obj, key, value) {
|
|
54
|
-
key = _toPropertyKey(key);
|
|
55
|
-
if (key in obj) {
|
|
56
|
-
Object.defineProperty(obj, key, {
|
|
57
|
-
value: value,
|
|
58
|
-
enumerable: true,
|
|
59
|
-
configurable: true,
|
|
60
|
-
writable: true
|
|
61
|
-
});
|
|
62
|
-
} else {
|
|
63
|
-
obj[key] = value;
|
|
64
|
-
}
|
|
65
|
-
return obj;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function _arrayWithHoles(arr) {
|
|
69
|
-
if (Array.isArray(arr)) return arr;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function _iterableToArrayLimit(r, l) {
|
|
73
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
74
|
-
if (null != t) {
|
|
75
|
-
var e,
|
|
76
|
-
n,
|
|
77
|
-
i,
|
|
78
|
-
u,
|
|
79
|
-
a = [],
|
|
80
|
-
f = !0,
|
|
81
|
-
o = !1;
|
|
82
|
-
try {
|
|
83
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
84
|
-
if (Object(t) !== t) return;
|
|
85
|
-
f = !1;
|
|
86
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
87
|
-
} catch (r) {
|
|
88
|
-
o = !0, n = r;
|
|
89
|
-
} finally {
|
|
90
|
-
try {
|
|
91
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
92
|
-
} finally {
|
|
93
|
-
if (o) throw n;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return a;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function _arrayLikeToArray(arr, len) {
|
|
101
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
102
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
103
|
-
return arr2;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
107
|
-
if (!o) return;
|
|
108
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
109
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
110
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
111
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
112
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function _nonIterableRest() {
|
|
116
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
function _slicedToArray(arr, i) {
|
|
120
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
var styles = "\n@layer primereact {\n .p-speeddial {\n position: absolute;\n display: flex;\n z-index: 1;\n }\n \n .p-speeddial-list {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: top 0s linear 0.2s;\n pointer-events: none;\n }\n \n .p-speeddial-item {\n transform: scale(0);\n opacity: 0;\n transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 0.8s;\n will-change: transform;\n }\n \n .p-speeddial-action {\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n text-decoration: none;\n }\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 \n .p-speeddial-rotate {\n transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n will-change: transform;\n }\n \n .p-speeddial-mask {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n transition: opacity 250ms cubic-bezier(0.25, 0.8, 0.25, 1);\n }\n \n .p-speeddial-mask-visible {\n pointer-events: none;\n opacity: 1;\n transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);\n }\n \n .p-speeddial-opened .p-speeddial-list {\n pointer-events: auto;\n }\n \n .p-speeddial-opened .p-speeddial-item {\n transform: scale(1);\n opacity: 1;\n }\n \n .p-speeddial-opened .p-speeddial-rotate {\n transform: rotate(45deg);\n }\n}\n";
|
|
124
|
-
var classes = {
|
|
125
|
-
root: function root(_ref) {
|
|
126
|
-
var _classNames;
|
|
127
|
-
var props = _ref.props,
|
|
128
|
-
visible = _ref.visible;
|
|
129
|
-
return classNames("p-speeddial p-component p-speeddial-".concat(props.type), (_classNames = {}, _defineProperty(_classNames, "p-speeddial-direction-".concat(props.direction), props.type !== 'circle'), _defineProperty(_classNames, 'p-speeddial-opened', visible), _defineProperty(_classNames, 'p-disabled', props.disabled), _classNames));
|
|
130
|
-
},
|
|
131
|
-
button: function button(_ref2) {
|
|
132
|
-
var props = _ref2.props;
|
|
133
|
-
return classNames('p-speeddial-button p-button-rounded', {
|
|
134
|
-
'p-speeddial-rotate': props.rotateAnimation && !props.hideIcon
|
|
135
|
-
});
|
|
136
|
-
},
|
|
137
|
-
mask: function mask(_ref3) {
|
|
138
|
-
var visible = _ref3.visible;
|
|
139
|
-
return classNames('p-speeddial-mask', {
|
|
140
|
-
'p-speeddial-mask-visible': visible
|
|
141
|
-
});
|
|
142
|
-
},
|
|
143
|
-
action: function action(_ref4) {
|
|
144
|
-
var disabled = _ref4.disabled;
|
|
145
|
-
return classNames('p-speeddial-action', {
|
|
146
|
-
'p-disabled': disabled
|
|
147
|
-
});
|
|
148
|
-
},
|
|
149
|
-
actionIcon: function actionIcon(_ref5) {
|
|
150
|
-
var _icon = _ref5._icon;
|
|
151
|
-
return classNames('p-speeddial-action-icon', _icon);
|
|
152
|
-
},
|
|
153
|
-
menu: 'p-speeddial-list',
|
|
154
|
-
menuitem: 'p-speeddial-item'
|
|
155
|
-
};
|
|
156
|
-
var inlineStyles = {
|
|
157
|
-
root: function root(_ref6) {
|
|
158
|
-
var props = _ref6.props;
|
|
159
|
-
return {
|
|
160
|
-
alignItems: props.direction === 'up' || props.direction === 'down' ? 'center' : '',
|
|
161
|
-
justifyContent: props.direction === 'left' || props.direction === 'right' ? 'center' : '',
|
|
162
|
-
flexDirection: props.direction === 'up' ? 'column-reverse' : props.direction === 'down' ? 'column' : props.direction === 'left' ? 'row-reverse' : props.direction === 'right' ? 'row' : null
|
|
163
|
-
};
|
|
164
|
-
},
|
|
165
|
-
menu: function menu(_ref7) {
|
|
166
|
-
var props = _ref7.props;
|
|
167
|
-
return {
|
|
168
|
-
flexDirection: props.direction === 'up' ? 'column-reverse' : props.direction === 'down' ? 'column' : props.direction === 'left' ? 'row-reverse' : props.direction === 'right' ? 'row' : null
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
var SpeedDialBase = ComponentBase.extend({
|
|
173
|
-
defaultProps: {
|
|
174
|
-
__TYPE: 'SpeedDial',
|
|
175
|
-
id: null,
|
|
176
|
-
model: null,
|
|
177
|
-
visible: false,
|
|
178
|
-
style: null,
|
|
179
|
-
className: null,
|
|
180
|
-
direction: 'up',
|
|
181
|
-
transitionDelay: 30,
|
|
182
|
-
type: 'linear',
|
|
183
|
-
radius: 0,
|
|
184
|
-
mask: false,
|
|
185
|
-
disabled: false,
|
|
186
|
-
hideOnClickOutside: true,
|
|
187
|
-
buttonStyle: null,
|
|
188
|
-
buttonClassName: null,
|
|
189
|
-
buttonTemplate: null,
|
|
190
|
-
'aria-label': null,
|
|
191
|
-
maskStyle: null,
|
|
192
|
-
maskClassName: null,
|
|
193
|
-
showIcon: null,
|
|
194
|
-
hideIcon: null,
|
|
195
|
-
rotateAnimation: true,
|
|
196
|
-
onVisibleChange: null,
|
|
197
|
-
onClick: null,
|
|
198
|
-
onShow: null,
|
|
199
|
-
onHide: null,
|
|
200
|
-
children: undefined
|
|
201
|
-
},
|
|
202
|
-
css: {
|
|
203
|
-
classes: classes,
|
|
204
|
-
styles: styles,
|
|
205
|
-
inlineStyles: inlineStyles
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
210
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
211
|
-
var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
212
|
-
var _React$useState = React.useState(false),
|
|
213
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
214
|
-
visibleState = _React$useState2[0],
|
|
215
|
-
setVisibleState = _React$useState2[1];
|
|
216
|
-
var context = React.useContext(PrimeReactContext);
|
|
217
|
-
var props = SpeedDialBase.getProps(inProps, context);
|
|
218
|
-
var visible = props.onVisibleChange ? props.visible : visibleState;
|
|
219
|
-
var metaData = {
|
|
220
|
-
props: props,
|
|
221
|
-
state: {
|
|
222
|
-
visible: visible
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
var _SpeedDialBase$setMet = SpeedDialBase.setMetaData(metaData),
|
|
226
|
-
ptm = _SpeedDialBase$setMet.ptm,
|
|
227
|
-
cx = _SpeedDialBase$setMet.cx,
|
|
228
|
-
sx = _SpeedDialBase$setMet.sx,
|
|
229
|
-
isUnstyled = _SpeedDialBase$setMet.isUnstyled;
|
|
230
|
-
useHandleStyle(SpeedDialBase.css.styles, isUnstyled, {
|
|
231
|
-
name: 'speeddial'
|
|
232
|
-
});
|
|
233
|
-
var isItemClicked = React.useRef(false);
|
|
234
|
-
var elementRef = React.useRef(null);
|
|
235
|
-
var listRef = React.useRef(null);
|
|
236
|
-
var _useEventListener = useEventListener({
|
|
237
|
-
type: 'click',
|
|
238
|
-
listener: function listener(event) {
|
|
239
|
-
if (!isItemClicked.current && isOutsideClicked(event)) {
|
|
240
|
-
hide();
|
|
241
|
-
}
|
|
242
|
-
isItemClicked.current = false;
|
|
243
|
-
},
|
|
244
|
-
when: visibleState
|
|
245
|
-
}),
|
|
246
|
-
_useEventListener2 = _slicedToArray(_useEventListener, 2),
|
|
247
|
-
bindDocumentClickListener = _useEventListener2[0],
|
|
248
|
-
unbindDocumentClickListener = _useEventListener2[1];
|
|
249
|
-
var show = function show() {
|
|
250
|
-
props.onVisibleChange ? props.onVisibleChange(true) : setVisibleState(true);
|
|
251
|
-
props.onShow && props.onShow();
|
|
252
|
-
};
|
|
253
|
-
var hide = function hide() {
|
|
254
|
-
props.onVisibleChange ? props.onVisibleChange(false) : setVisibleState(false);
|
|
255
|
-
props.onHide && props.onHide();
|
|
256
|
-
};
|
|
257
|
-
var _onClick = function onClick(e) {
|
|
258
|
-
visible ? hide() : show();
|
|
259
|
-
props.onClick && props.onClick(e);
|
|
260
|
-
isItemClicked.current = true;
|
|
261
|
-
};
|
|
262
|
-
var onItemClick = function onItemClick(e, item) {
|
|
263
|
-
item.command && item.command({
|
|
264
|
-
originalEvent: e,
|
|
265
|
-
item: item
|
|
266
|
-
});
|
|
267
|
-
hide();
|
|
268
|
-
isItemClicked.current = true;
|
|
269
|
-
e.preventDefault();
|
|
270
|
-
};
|
|
271
|
-
var isOutsideClicked = function isOutsideClicked(event) {
|
|
272
|
-
return elementRef.current && !(elementRef.current.isSameNode(event.target) || elementRef.current.contains(event.target));
|
|
273
|
-
};
|
|
274
|
-
var calculateTransitionDelay = function calculateTransitionDelay(index) {
|
|
275
|
-
var length = props.model.length;
|
|
276
|
-
return (visible ? index : length - index - 1) * props.transitionDelay;
|
|
277
|
-
};
|
|
278
|
-
var calculatePointStyle = function calculatePointStyle(index) {
|
|
279
|
-
var type = props.type;
|
|
280
|
-
if (type !== 'linear') {
|
|
281
|
-
var length = props.model.length;
|
|
282
|
-
var radius = props.radius || length * 20;
|
|
283
|
-
if (type === 'circle') {
|
|
284
|
-
var step = 2 * Math.PI / length;
|
|
285
|
-
return {
|
|
286
|
-
left: "calc(".concat(radius * Math.cos(step * index), "px + var(--item-diff-x, 0px))"),
|
|
287
|
-
top: "calc(".concat(radius * Math.sin(step * index), "px + var(--item-diff-y, 0px))")
|
|
288
|
-
};
|
|
289
|
-
} else if (type === 'semi-circle') {
|
|
290
|
-
var direction = props.direction;
|
|
291
|
-
var _step = Math.PI / (length - 1);
|
|
292
|
-
var x = "calc(".concat(radius * Math.cos(_step * index), "px + var(--item-diff-x, 0px))");
|
|
293
|
-
var y = "calc(".concat(radius * Math.sin(_step * index), "px + var(--item-diff-y, 0px))");
|
|
294
|
-
if (direction === 'up') {
|
|
295
|
-
return {
|
|
296
|
-
left: x,
|
|
297
|
-
bottom: y
|
|
298
|
-
};
|
|
299
|
-
} else if (direction === 'down') {
|
|
300
|
-
return {
|
|
301
|
-
left: x,
|
|
302
|
-
top: y
|
|
303
|
-
};
|
|
304
|
-
} else if (direction === 'left') {
|
|
305
|
-
return {
|
|
306
|
-
right: y,
|
|
307
|
-
top: x
|
|
308
|
-
};
|
|
309
|
-
} else if (direction === 'right') {
|
|
310
|
-
return {
|
|
311
|
-
left: y,
|
|
312
|
-
top: x
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
} else if (type === 'quarter-circle') {
|
|
316
|
-
var _direction = props.direction;
|
|
317
|
-
var _step2 = Math.PI / (2 * (length - 1));
|
|
318
|
-
var _x = "calc(".concat(radius * Math.cos(_step2 * index), "px + var(--item-diff-x, 0px))");
|
|
319
|
-
var _y = "calc(".concat(radius * Math.sin(_step2 * index), "px + var(--item-diff-y, 0px))");
|
|
320
|
-
if (_direction === 'up-left') {
|
|
321
|
-
return {
|
|
322
|
-
right: _x,
|
|
323
|
-
bottom: _y
|
|
324
|
-
};
|
|
325
|
-
} else if (_direction === 'up-right') {
|
|
326
|
-
return {
|
|
327
|
-
left: _x,
|
|
328
|
-
bottom: _y
|
|
329
|
-
};
|
|
330
|
-
} else if (_direction === 'down-left') {
|
|
331
|
-
return {
|
|
332
|
-
right: _y,
|
|
333
|
-
top: _x
|
|
334
|
-
};
|
|
335
|
-
} else if (_direction === 'down-right') {
|
|
336
|
-
return {
|
|
337
|
-
left: _y,
|
|
338
|
-
top: _x
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
return {};
|
|
344
|
-
};
|
|
345
|
-
var getItemStyle = function getItemStyle(index) {
|
|
346
|
-
var transitionDelay = calculateTransitionDelay(index);
|
|
347
|
-
var pointStyle = calculatePointStyle(index);
|
|
348
|
-
return _objectSpread({
|
|
349
|
-
transitionDelay: "".concat(transitionDelay, "ms")
|
|
350
|
-
}, pointStyle);
|
|
351
|
-
};
|
|
352
|
-
useMountEffect(function () {
|
|
353
|
-
if (props.type !== 'linear') {
|
|
354
|
-
var _button = DomHandler.findSingle(elementRef.current, '.p-speeddial-button');
|
|
355
|
-
var firstItem = DomHandler.findSingle(listRef.current, '.p-speeddial-item');
|
|
356
|
-
if (_button && firstItem) {
|
|
357
|
-
var wDiff = Math.abs(_button.offsetWidth - firstItem.offsetWidth);
|
|
358
|
-
var hDiff = Math.abs(_button.offsetHeight - firstItem.offsetHeight);
|
|
359
|
-
listRef.current.style.setProperty('--item-diff-x', "".concat(wDiff / 2, "px"));
|
|
360
|
-
listRef.current.style.setProperty('--item-diff-y', "".concat(hDiff / 2, "px"));
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
});
|
|
364
|
-
useUpdateEffect(function () {
|
|
365
|
-
if (visibleState) {
|
|
366
|
-
props.hideOnClickOutside && bindDocumentClickListener();
|
|
367
|
-
}
|
|
368
|
-
return function () {
|
|
369
|
-
props.hideOnClickOutside && unbindDocumentClickListener();
|
|
370
|
-
};
|
|
371
|
-
}, [visibleState]);
|
|
372
|
-
React.useImperativeHandle(ref, function () {
|
|
373
|
-
return {
|
|
374
|
-
props: props,
|
|
375
|
-
show: show,
|
|
376
|
-
hide: hide,
|
|
377
|
-
getElement: function getElement() {
|
|
378
|
-
return elementRef.current;
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
|
-
});
|
|
382
|
-
var createItem = function createItem(item, index) {
|
|
383
|
-
if (item.visible === false) {
|
|
384
|
-
return null;
|
|
385
|
-
}
|
|
386
|
-
var disabled = item.disabled,
|
|
387
|
-
_icon = item.icon,
|
|
388
|
-
label = item.label,
|
|
389
|
-
template = item.template,
|
|
390
|
-
url = item.url,
|
|
391
|
-
target = item.target;
|
|
392
|
-
var contentClassName = classNames('p-speeddial-action', {
|
|
393
|
-
'p-disabled': disabled
|
|
394
|
-
});
|
|
395
|
-
var iconClassName = classNames('p-speeddial-action-icon', _icon);
|
|
396
|
-
var actionIconProps = mergeProps({
|
|
397
|
-
className: cx('actionIcon')
|
|
398
|
-
}, ptm('actionIcon'));
|
|
399
|
-
var actionProps = mergeProps({
|
|
400
|
-
href: url || '#',
|
|
401
|
-
role: 'menuitem',
|
|
402
|
-
className: cx('action', {
|
|
403
|
-
disabled: disabled
|
|
404
|
-
}),
|
|
405
|
-
target: target,
|
|
406
|
-
'data-pr-tooltip': label,
|
|
407
|
-
onClick: function onClick(e) {
|
|
408
|
-
return onItemClick(e, item);
|
|
409
|
-
}
|
|
410
|
-
}, ptm('action'));
|
|
411
|
-
var icon = IconUtils.getJSXIcon(_icon, _objectSpread({}, actionIconProps), {
|
|
412
|
-
props: props
|
|
413
|
-
});
|
|
414
|
-
var content = /*#__PURE__*/React.createElement("a", actionProps, icon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
415
|
-
if (template) {
|
|
416
|
-
var defaultContentOptions = {
|
|
417
|
-
onClick: function onClick(e) {
|
|
418
|
-
return onItemClick(e, item);
|
|
419
|
-
},
|
|
420
|
-
className: contentClassName,
|
|
421
|
-
iconClassName: iconClassName,
|
|
422
|
-
element: content,
|
|
423
|
-
props: props,
|
|
424
|
-
visible: visible
|
|
425
|
-
};
|
|
426
|
-
content = ObjectUtils.getJSXElement(template, item, defaultContentOptions);
|
|
427
|
-
}
|
|
428
|
-
var menuItemProps = mergeProps({
|
|
429
|
-
key: index,
|
|
430
|
-
className: cx('menuitem'),
|
|
431
|
-
style: getItemStyle(index),
|
|
432
|
-
role: 'none'
|
|
433
|
-
}, ptm('menuitem'));
|
|
434
|
-
return /*#__PURE__*/React.createElement("li", menuItemProps, content);
|
|
435
|
-
};
|
|
436
|
-
var createItems = function createItems() {
|
|
437
|
-
return props.model ? props.model.map(createItem) : null;
|
|
438
|
-
};
|
|
439
|
-
var createList = function createList() {
|
|
440
|
-
var items = createItems();
|
|
441
|
-
var menuProps = mergeProps({
|
|
442
|
-
ref: listRef,
|
|
443
|
-
className: cx('menu'),
|
|
444
|
-
style: sx('menu'),
|
|
445
|
-
role: 'menu'
|
|
446
|
-
}, ptm('menu'));
|
|
447
|
-
return /*#__PURE__*/React.createElement("ul", menuProps, items);
|
|
448
|
-
};
|
|
449
|
-
var createButton = function createButton() {
|
|
450
|
-
var _classNames;
|
|
451
|
-
var showIconVisible = !visible && !!props.showIcon || !props.hideIcon;
|
|
452
|
-
var hideIconVisible = visible && !!props.hideIcon;
|
|
453
|
-
var className = classNames('p-speeddial-button p-button-rounded', {
|
|
454
|
-
'p-speeddial-rotate': props.rotateAnimation && !props.hideIcon
|
|
455
|
-
}, props.buttonClassName);
|
|
456
|
-
var iconClassName = classNames((_classNames = {}, _defineProperty(_classNames, "".concat(props.showIcon), !visible && !!props.showIcon || !props.hideIcon), _defineProperty(_classNames, "".concat(props.hideIcon), visible && !!props.hideIcon), _classNames));
|
|
457
|
-
var icon = showIconVisible ? props.showIcon || /*#__PURE__*/React.createElement(PlusIcon, null) : hideIconVisible ? props.hideIcon || /*#__PURE__*/React.createElement(MinusIcon, null) : null;
|
|
458
|
-
var toggleIcon = IconUtils.getJSXIcon(icon, undefined, {
|
|
459
|
-
props: props,
|
|
460
|
-
visible: visible
|
|
461
|
-
});
|
|
462
|
-
var buttonProps = mergeProps({
|
|
463
|
-
type: 'button',
|
|
464
|
-
style: props.buttonStyle,
|
|
465
|
-
className: classNames(props.buttonClassName, cx('button')),
|
|
466
|
-
icon: toggleIcon,
|
|
467
|
-
onClick: function onClick(e) {
|
|
468
|
-
return _onClick(e);
|
|
469
|
-
},
|
|
470
|
-
disabled: props.disabled,
|
|
471
|
-
'aria-label': props['aria-label'],
|
|
472
|
-
pt: ptm('button'),
|
|
473
|
-
unstyled: props.unstyled,
|
|
474
|
-
__parentMetadata: {
|
|
475
|
-
parent: metaData
|
|
476
|
-
}
|
|
477
|
-
});
|
|
478
|
-
var content = /*#__PURE__*/React.createElement(Button, buttonProps);
|
|
479
|
-
if (props.buttonTemplate) {
|
|
480
|
-
var defaultContentOptions = {
|
|
481
|
-
onClick: _onClick,
|
|
482
|
-
className: className,
|
|
483
|
-
iconClassName: iconClassName,
|
|
484
|
-
element: content,
|
|
485
|
-
props: props,
|
|
486
|
-
visible: visible
|
|
487
|
-
};
|
|
488
|
-
return ObjectUtils.getJSXElement(props.buttonTemplate, defaultContentOptions);
|
|
489
|
-
}
|
|
490
|
-
return content;
|
|
491
|
-
};
|
|
492
|
-
var createMask = function createMask() {
|
|
493
|
-
if (props.mask) {
|
|
494
|
-
var maskProps = mergeProps({
|
|
495
|
-
className: classNames(props.maskClassName, cx('mask', {
|
|
496
|
-
visible: visible
|
|
497
|
-
})),
|
|
498
|
-
style: props.maskStyle
|
|
499
|
-
}, ptm('mask'));
|
|
500
|
-
return /*#__PURE__*/React.createElement("div", maskProps);
|
|
501
|
-
}
|
|
502
|
-
return null;
|
|
503
|
-
};
|
|
504
|
-
var button = createButton();
|
|
505
|
-
var list = createList();
|
|
506
|
-
var mask = createMask();
|
|
507
|
-
var rootProps = mergeProps({
|
|
508
|
-
className: classNames(props.className, cx('root', {
|
|
509
|
-
visible: visible
|
|
510
|
-
})),
|
|
511
|
-
style: _objectSpread(_objectSpread({}, props.style), sx('root'))
|
|
512
|
-
}, SpeedDialBase.getOtherProps(props), ptm('root'));
|
|
513
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({
|
|
514
|
-
id: props.id,
|
|
515
|
-
ref: elementRef
|
|
516
|
-
}, rootProps), button, list), mask);
|
|
517
|
-
}));
|
|
518
|
-
SpeedDial.displayName = 'SpeedDial';
|
|
519
|
-
|
|
520
|
-
export { SpeedDial };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as t from"react";import e,{PrimeReactContext as n}from"primereact/api";import{Button as r}from"primereact/button";import{ComponentBase as o,useHandleStyle as i}from"primereact/componentbase";import{useOverlayListener as l,useMountEffect as u,useUnmountEffect as a}from"primereact/hooks";import{ChevronDownIcon as p}from"primereact/icons/chevrondown";import{OverlayService as s}from"primereact/overlayservice";import{Tooltip as c}from"primereact/tooltip";import{classNames as m,mergeProps as b,IconUtils as d,ObjectUtils as f,UniqueComponentId as y,ZIndexUtils as v,DomHandler as O}from"primereact/utils";import{CSSTransition as g}from"primereact/csstransition";import{Portal as h}from"primereact/portal";function j(){return j=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},j.apply(this,arguments)}function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function P(t,e){if("object"!==E(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function S(t){var e=P(t,"string");return"symbol"===E(e)?e:String(e)}function N(t,e,n){return(e=S(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){if(Array.isArray(t))return t}function x(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,l,u=[],a=!0,p=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);a=!0);}catch(t){p=!0,o=t}finally{try{if(!a&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(p)throw o}}return u}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function C(t,e){if(t){if("string"==typeof t)return I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(t,e):void 0}}function k(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(t,e){return w(t)||x(t,e)||C(t,e)||k()}var T=o.extend({defaultProps:{__TYPE:"SplitButton",id:null,label:null,icon:null,loading:!1,loadingIcon:null,model:null,disabled:null,style:null,className:null,buttonClassName:null,menuStyle:null,menuClassName:null,menuButtonClassName:null,buttonProps:null,menuButtonProps:null,tabIndex:null,severity:null,rounded:!1,raised:!1,outlined:!1,text:!1,size:null,appendTo:null,tooltip:null,tooltipOptions:null,buttonTemplate:null,transitionOptions:null,dropdownIcon:null,onClick:null,onShow:null,onHide:null,children:void 0},css:{classes:{icon:"p-button-icon p-c",root:function(t){var e,n=t.props,r=t.size;return m("p-splitbutton p-component",(N(e={"p-disabled":n.disabled,"p-button-loading-label-only":n.loading&&!n.icon&&n.label},"p-button-".concat(n.severity),n.severity),N(e,"p-button-raised",n.raised),N(e,"p-button-rounded",n.rounded),N(e,"p-button-text",n.text),N(e,"p-button-outlined",n.outlined),N(e,"p-button-".concat(r),r),e))},menu:function(t){return m("p-menu p-menu-overlay p-component",t.subProps.menuClassName)},menuList:"p-menu-list p-reset",separator:"p-menu-separator",menuIcon:"p-menuitem-icon",menuLabel:"p-menuitem-text",anchor:function(t){return m("p-menuitem-link",t._className,{"p-disabled":t.disabled})},menuItem:"p-menuitem",transition:"p-connected-overlay"},styles:"\n@layer primereact {\n .p-splitbutton {\n display: inline-flex;\n position: relative;\n }\n \n .p-splitbutton .p-splitbutton-defaultbutton,\n .p-splitbutton.p-button-rounded > .p-splitbutton-defaultbutton.p-button,\n .p-splitbutton.p-button-outlined > .p-splitbutton-defaultbutton.p-button {\n flex: 1 1 auto;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-right: 0 none;\n }\n \n .p-splitbutton-menubutton,\n .p-splitbutton.p-button-rounded > .p-splitbutton-menubutton.p-button,\n .p-splitbutton.p-button-outlined > .p-splitbutton-menubutton.p-button {\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n \n .p-splitbutton .p-menu {\n min-width: 100%;\n }\n \n .p-fluid .p-splitbutton {\n display: flex;\n }\n}\n"}});function B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?B(Object(n),!0).forEach((function(e){N(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _=t.memo((function(e){var n,r=e.ptm,o=e.cx,i=function(t,n){return r(t,z({hostName:e.hostName},n))},l=function(t){e.menuitem.command&&e.menuitem.command({originalEvent:t,item:e.menuitem}),e.onItemClick&&e.onItemClick(t),t.preventDefault()},u=function(){if(!1===e.menuitem.visible)return null;var n=e.menuitem,r=n.icon,u=n.label,a=n.template,p=n.url,s=n.target,c=m("p-menuitem-link",n.className,{"p-disabled":n.disabled}),y=m("p-menuitem-icon",r),v=b({className:o("menuIcon")},i("menuIcon")),O=d.getJSXIcon(r,z({},v),{props:e.splitButtonProps}),g=b({className:o("menuLabel")},i("menuLabel")),h=u&&t.createElement("span",g,u),j=b({href:p||"#",role:"menuitem",className:o("anchor"),target:s,onClick:l,"aria-label":u},i("anchor")),E=t.createElement("a",j,O,h);a&&(E=f.getJSXElement(a,e.menuitem,{onClick:l,className:c,labelClassName:"p-menuitem-text",iconClassName:y,element:E,props:e}));var P=b({className:o("menuItem"),role:"none"},i("menuItem"));return t.createElement("li",P,E)};return e.menuitem.separator?(n=b({className:o("separator"),role:"separator"},i("separator")),t.createElement("li",n)):u()}));function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){N(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}_.displayName="SplitButtonItem";var R=t.forwardRef((function(e,n){var r,o,i,l=e.ptm,u=e.cx,a=function(t,n){return l(t,L({hostName:e.hostName},n))},p=(r=b({ref:n,className:u("menu",{subProps:e}),style:e.menuStyle,onClick:e.onClick},a("menu")),o=b({id:e.menuId,className:u("menuList"),role:"menu"},a("menuList")),i=b({classNames:u("transition"),in:e.in,timeout:{enter:120,exit:100},options:e.transitionOptions,unmountOnExit:!0,onEnter:e.onEnter,onEntered:e.onEntered,onExit:e.onExit,onExited:e.onExited},a("transition")),t.createElement(g,j({nodeRef:n},i),t.createElement("div",r,t.createElement("ul",o,e.children))));return t.createElement(h,{element:p,appendTo:e.appendTo})}));function H(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function J(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach((function(e){N(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}R.displayName="SplitButtonPanel";var M=t.memo(t.forwardRef((function(o,g){var h=t.useContext(n),E=T.getProps(o,h),P=D(t.useState(E.id),2),S=P[0],N=P[1],w=D(t.useState(!1),2),x=w[0],I=w[1],C=t.useRef(null),k=t.useRef(null),B=t.useRef(null),z={props:E,state:{id:S,overlayVisible:x}},A=T.setMetaData(z),L=A.ptm,H=A.cx;i(T.css.styles,A.isUnstyled,{name:"splitbutton"});var M=D(l({target:C,overlay:B,listener:function(t,e){e.valid&&V()},when:x}),2),X=M[0],U=M[1],Z=function(){V()},F=function(){I(!0)},V=function(){I(!1)},Y=function(){O.alignOverlay(B.current,k.current.parentElement,E.appendTo||h&&h.appendTo||e.appendTo)};u((function(){S||N(y())})),a((function(){v.clear(B.current)})),t.useImperativeHandle(g,(function(){return{props:E,show:F,hide:V,getElement:function(){return C.current}}}));if(!1===E.visible)return null;var $=f.isNotEmpty(E.tooltip),q={large:"lg",small:"sm"}[E.size],G=m("p-splitbutton-defaultbutton",E.buttonClassName),K=m("p-splitbutton-menubutton",E.menuButtonClassName),Q=E.buttonTemplate?f.getJSXElement(E.buttonTemplate,E):null,W=E.model?E.model.map((function(e,n){return t.createElement(_,{hostName:"SplitButton",splitButtonProps:E,menuitem:e,key:n,onItemClick:Z,ptm:L,cx:H})})):null,tt=S+"_menu",et=b({ref:C,id:S,className:m(E.className,H("root",{size:q})),style:E.style},T.getOtherProps(E),L("root"));return t.createElement(t.Fragment,null,t.createElement("div",et,t.createElement(r,j({ref:k,type:"button",className:G,icon:E.icon,loading:E.loading,loadingIcon:E.loadingIcon,label:E.label,onClick:E.onClick,disabled:E.disabled,tabIndex:E.tabIndex,size:E.size},E.buttonProps,{pt:L("button"),__parentMetadata:{parent:z},unstyled:E.unstyled}),Q),t.createElement(r,j({type:"button",className:K,icon:function(){var e=b({className:H("icon")},L("icon")),n=d.getJSXIcon(E.dropdownIcon||t.createElement(p,e),J({},e),{props:E});return n},onClick:function(){x?V():F()},disabled:E.disabled,"aria-expanded":x,"aria-haspopup":"true","aria-controls":x?tt:null},E.menuButtonProps,{size:E.size,pt:L("menuButton"),__parentMetadata:{parent:z},unstyled:E.unstyled})),t.createElement(R,{hostName:"SplitButton",ref:B,appendTo:E.appendTo,menuId:tt,menuStyle:E.menuStyle,menuClassName:E.menuClassName,onClick:function(t){s.emit("overlay-click",{originalEvent:t,target:C.current})},in:x,onEnter:function(){v.set("overlay",B.current,h&&h.autoZIndex||e.autoZIndex,h&&h.zIndex.overlay||e.zIndex.overlay),O.addStyles(B.current,{position:"absolute",top:"0",left:"0"}),Y()},onEntered:function(){X(),E.onShow&&E.onShow()},onExit:function(){U()},onExited:function(){v.clear(B.current),E.onHide&&E.onHide()},transitionOptions:E.transitionOptions,ptm:L,cx:H},W)),$&&t.createElement(c,j({target:C,content:E.tooltip},E.tooltipOptions,{pt:L("tooltip")})))})));M.displayName="SplitButton";export{M as SplitButton};
|