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,268 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import PrimeReact, { PrimeReactContext } from 'primereact/api';
|
|
4
|
-
import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
|
|
5
|
-
import { CSSTransition } from 'primereact/csstransition';
|
|
6
|
-
import { useEventListener, useUnmountEffect } from 'primereact/hooks';
|
|
7
|
-
import { ChevronUpIcon } from 'primereact/icons/chevronup';
|
|
8
|
-
import { Ripple } from 'primereact/ripple';
|
|
9
|
-
import { classNames, DomHandler, ZIndexUtils, mergeProps, IconUtils } from 'primereact/utils';
|
|
10
|
-
|
|
11
|
-
function _extends() {
|
|
12
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
13
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
-
var source = arguments[i];
|
|
15
|
-
for (var key in source) {
|
|
16
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17
|
-
target[key] = source[key];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return target;
|
|
22
|
-
};
|
|
23
|
-
return _extends.apply(this, arguments);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function _typeof(o) {
|
|
27
|
-
"@babel/helpers - typeof";
|
|
28
|
-
|
|
29
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
30
|
-
return typeof o;
|
|
31
|
-
} : function (o) {
|
|
32
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
33
|
-
}, _typeof(o);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function _toPrimitive(input, hint) {
|
|
37
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
38
|
-
var prim = input[Symbol.toPrimitive];
|
|
39
|
-
if (prim !== undefined) {
|
|
40
|
-
var res = prim.call(input, hint || "default");
|
|
41
|
-
if (_typeof(res) !== "object") return res;
|
|
42
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
43
|
-
}
|
|
44
|
-
return (hint === "string" ? String : Number)(input);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function _toPropertyKey(arg) {
|
|
48
|
-
var key = _toPrimitive(arg, "string");
|
|
49
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function _defineProperty(obj, key, value) {
|
|
53
|
-
key = _toPropertyKey(key);
|
|
54
|
-
if (key in obj) {
|
|
55
|
-
Object.defineProperty(obj, key, {
|
|
56
|
-
value: value,
|
|
57
|
-
enumerable: true,
|
|
58
|
-
configurable: true,
|
|
59
|
-
writable: true
|
|
60
|
-
});
|
|
61
|
-
} else {
|
|
62
|
-
obj[key] = value;
|
|
63
|
-
}
|
|
64
|
-
return obj;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function _arrayWithHoles(arr) {
|
|
68
|
-
if (Array.isArray(arr)) return arr;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function _iterableToArrayLimit(r, l) {
|
|
72
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
73
|
-
if (null != t) {
|
|
74
|
-
var e,
|
|
75
|
-
n,
|
|
76
|
-
i,
|
|
77
|
-
u,
|
|
78
|
-
a = [],
|
|
79
|
-
f = !0,
|
|
80
|
-
o = !1;
|
|
81
|
-
try {
|
|
82
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
83
|
-
if (Object(t) !== t) return;
|
|
84
|
-
f = !1;
|
|
85
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
86
|
-
} catch (r) {
|
|
87
|
-
o = !0, n = r;
|
|
88
|
-
} finally {
|
|
89
|
-
try {
|
|
90
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
91
|
-
} finally {
|
|
92
|
-
if (o) throw n;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return a;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function _arrayLikeToArray(arr, len) {
|
|
100
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
101
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
102
|
-
return arr2;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
106
|
-
if (!o) return;
|
|
107
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
108
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
109
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
110
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
111
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function _nonIterableRest() {
|
|
115
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function _slicedToArray(arr, i) {
|
|
119
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
var classes = {
|
|
123
|
-
root: function root(_ref) {
|
|
124
|
-
var props = _ref.props;
|
|
125
|
-
return classNames('p-scrolltop p-link p-component', {
|
|
126
|
-
'p-scrolltop-sticky': props.target !== 'window'
|
|
127
|
-
});
|
|
128
|
-
},
|
|
129
|
-
icon: 'p-scrolltop-icon',
|
|
130
|
-
transition: 'p-scrolltop'
|
|
131
|
-
};
|
|
132
|
-
var styles = "\n@layer primereact {\n .p-scrolltop {\n position: fixed;\n bottom: 20px;\n right: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-scrolltop-sticky {\n position: sticky;\n }\n \n .p-scrolltop-sticky.p-link {\n margin-left: auto;\n }\n \n .p-scrolltop-helper {\n display: none !important;\n }\n \n .p-scrolltop-enter {\n opacity: 0;\n }\n \n .p-scrolltop-enter-active {\n opacity: 1;\n transition: opacity .15s;\n }\n \n .p-scrolltop-exit {\n opacity: 1;\n }\n \n .p-scrolltop-exit-active {\n opacity: 0;\n transition: opacity .15s;\n }\n}\n";
|
|
133
|
-
var ScrollTopBase = ComponentBase.extend({
|
|
134
|
-
defaultProps: {
|
|
135
|
-
__TYPE: 'ScrollTop',
|
|
136
|
-
target: 'window',
|
|
137
|
-
threshold: 400,
|
|
138
|
-
icon: null,
|
|
139
|
-
behavior: 'smooth',
|
|
140
|
-
className: null,
|
|
141
|
-
style: null,
|
|
142
|
-
transitionOptions: null,
|
|
143
|
-
onShow: null,
|
|
144
|
-
onHide: null,
|
|
145
|
-
children: undefined
|
|
146
|
-
},
|
|
147
|
-
css: {
|
|
148
|
-
classes: classes,
|
|
149
|
-
styles: styles
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
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; }
|
|
154
|
-
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; }
|
|
155
|
-
var ScrollTop = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
156
|
-
var _React$useState = React.useState(false),
|
|
157
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
158
|
-
visibleState = _React$useState2[0],
|
|
159
|
-
setVisibleState = _React$useState2[1];
|
|
160
|
-
var context = React.useContext(PrimeReactContext);
|
|
161
|
-
var props = ScrollTopBase.getProps(inProps, context);
|
|
162
|
-
var _ScrollTopBase$setMet = ScrollTopBase.setMetaData({
|
|
163
|
-
props: props,
|
|
164
|
-
state: {
|
|
165
|
-
visible: visibleState
|
|
166
|
-
}
|
|
167
|
-
}),
|
|
168
|
-
ptm = _ScrollTopBase$setMet.ptm,
|
|
169
|
-
cx = _ScrollTopBase$setMet.cx,
|
|
170
|
-
isUnstyled = _ScrollTopBase$setMet.isUnstyled;
|
|
171
|
-
useHandleStyle(ScrollTopBase.css.styles, isUnstyled, {
|
|
172
|
-
name: 'scrolltop'
|
|
173
|
-
});
|
|
174
|
-
var scrollElementRef = React.useRef(null);
|
|
175
|
-
var helperRef = React.useRef(null);
|
|
176
|
-
var isTargetParent = props.target === 'parent';
|
|
177
|
-
var _useEventListener = useEventListener({
|
|
178
|
-
target: function target() {
|
|
179
|
-
return helperRef.current && helperRef.current.parentElement;
|
|
180
|
-
},
|
|
181
|
-
type: 'scroll',
|
|
182
|
-
listener: function listener(event) {
|
|
183
|
-
checkVisibility(event.currentTarget.scrollTop);
|
|
184
|
-
}
|
|
185
|
-
}),
|
|
186
|
-
_useEventListener2 = _slicedToArray(_useEventListener, 1),
|
|
187
|
-
bindParentScrollListener = _useEventListener2[0];
|
|
188
|
-
var _useEventListener3 = useEventListener({
|
|
189
|
-
target: 'window',
|
|
190
|
-
type: 'scroll',
|
|
191
|
-
listener: function listener(event) {
|
|
192
|
-
event && checkVisibility(DomHandler.getWindowScrollTop());
|
|
193
|
-
}
|
|
194
|
-
}),
|
|
195
|
-
_useEventListener4 = _slicedToArray(_useEventListener3, 1),
|
|
196
|
-
bindDocumentScrollListener = _useEventListener4[0];
|
|
197
|
-
var onClick = function onClick() {
|
|
198
|
-
var scrollElement = props.target === 'window' ? window : helperRef.current.parentElement;
|
|
199
|
-
scrollElement.scroll({
|
|
200
|
-
top: 0,
|
|
201
|
-
behavior: props.behavior
|
|
202
|
-
});
|
|
203
|
-
};
|
|
204
|
-
var checkVisibility = function checkVisibility(scrollY) {
|
|
205
|
-
setVisibleState(scrollY > props.threshold);
|
|
206
|
-
};
|
|
207
|
-
var onEnter = function onEnter() {
|
|
208
|
-
ZIndexUtils.set('overlay', scrollElementRef.current, context && context.autoZIndex || PrimeReact.autoZIndex, context && context.zIndex['overlay'] || PrimeReact.zIndex['overlay']);
|
|
209
|
-
};
|
|
210
|
-
var onEntered = function onEntered() {
|
|
211
|
-
props.onShow && props.onShow();
|
|
212
|
-
};
|
|
213
|
-
var onExited = function onExited() {
|
|
214
|
-
ZIndexUtils.clear(scrollElementRef.current);
|
|
215
|
-
props.onHide && props.onHide();
|
|
216
|
-
};
|
|
217
|
-
React.useImperativeHandle(ref, function () {
|
|
218
|
-
return {
|
|
219
|
-
props: props,
|
|
220
|
-
getElement: function getElement() {
|
|
221
|
-
return elementRef.current;
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
});
|
|
225
|
-
React.useEffect(function () {
|
|
226
|
-
if (props.target === 'window') bindDocumentScrollListener();else if (props.target === 'parent') bindParentScrollListener();
|
|
227
|
-
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
228
|
-
|
|
229
|
-
useUnmountEffect(function () {
|
|
230
|
-
ZIndexUtils.clear(scrollElementRef.current);
|
|
231
|
-
});
|
|
232
|
-
var iconProps = mergeProps({
|
|
233
|
-
className: cx('icon')
|
|
234
|
-
}, ptm('icon'));
|
|
235
|
-
var icon = props.icon || /*#__PURE__*/React.createElement(ChevronUpIcon, iconProps);
|
|
236
|
-
var scrollIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, iconProps), {
|
|
237
|
-
props: props
|
|
238
|
-
});
|
|
239
|
-
var rootProps = mergeProps({
|
|
240
|
-
ref: scrollElementRef,
|
|
241
|
-
type: 'button',
|
|
242
|
-
className: classNames(props.className, cx('root')),
|
|
243
|
-
style: props.style,
|
|
244
|
-
onClick: onClick
|
|
245
|
-
}, ScrollTopBase.getOtherProps(props), ptm('root'));
|
|
246
|
-
var transitionProps = mergeProps({
|
|
247
|
-
classNames: cx('transition'),
|
|
248
|
-
"in": visibleState,
|
|
249
|
-
timeout: {
|
|
250
|
-
enter: 150,
|
|
251
|
-
exit: 150
|
|
252
|
-
},
|
|
253
|
-
options: props.transitionOptions,
|
|
254
|
-
unmountOnExit: true,
|
|
255
|
-
onEnter: onEnter,
|
|
256
|
-
onEntered: onEntered,
|
|
257
|
-
onExited: onExited
|
|
258
|
-
}, ptm('transition'));
|
|
259
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CSSTransition, _extends({
|
|
260
|
-
nodeRef: scrollElementRef
|
|
261
|
-
}, transitionProps), /*#__PURE__*/React.createElement("button", rootProps, scrollIcon, /*#__PURE__*/React.createElement(Ripple, null))), isTargetParent && /*#__PURE__*/React.createElement("span", {
|
|
262
|
-
ref: helperRef,
|
|
263
|
-
className: "p-scrolltop-helper"
|
|
264
|
-
}));
|
|
265
|
-
}));
|
|
266
|
-
ScrollTop.displayName = 'ScrollTop';
|
|
267
|
-
|
|
268
|
-
export { ScrollTop };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{Tooltip as t}from"primereact/tooltip";import{classNames as n,mergeProps as o,ObjectUtils as l,DomHandler as r}from"primereact/utils";import{ComponentBase as a}from"primereact/componentbase";import{Ripple as i}from"primereact/ripple";import{PrimeReactContext as u}from"primereact/api";function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function p(e){if(Array.isArray(e))return c(e)}function m(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(e){return p(e)||m(e)||d(e)||f()}var v=a.extend({defaultProps:{__TYPE:"SelectButton",id:null,value:null,options:null,optionLabel:null,optionValue:null,optionDisabled:null,tabIndex:null,multiple:!1,unselectable:!0,disabled:!1,style:null,className:null,dataKey:null,tooltip:null,tooltipOptions:null,itemTemplate:null,onChange:null,children:void 0},css:{classes:{root:function(e){return n("p-selectbutton p-buttonset p-component",e.props.className)},button:function(e){var t=e.itemProps;return n("p-button p-component",{"p-highlight":t.selected,"p-disabled":t.disabled,"p-focus":e.focusedState})},label:"p-button-label p-c"}}});function y(e){if(Array.isArray(e))return e}function g(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,l,r,a,i=[],u=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=r.call(n)).done)&&(i.push(o.value),i.length!==t);u=!0);}catch(e){s=!0,l=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw l}}return i}}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var E=e.memo((function(t){var r,a,u,s=e.useState(!1),c=(a=2,y(r=s)||g(r,a)||d(r,a)||h()),p=c[0],m=c[1],f=t.ptm,b=t.cx,v=function(e){return f(e,{hostName:t.hostName,context:{selected:t.selected,disabled:t.disabled,option:t.option}})},E=function(e){t.onClick&&t.onClick({originalEvent:e,option:t.option})},S=(u=o({className:b("label")},v("label")),t.template?l.getJSXElement(t.template,t.option):e.createElement("span",u,t.label)),N=o({className:n(t.className,b("button",{itemProps:t,focusedState:p})),role:"button","aria-label":t.label,"aria-pressed":t.selected,onClick:E,onKeyDown:function(e){32===e.which&&(E(e),e.preventDefault())},tabIndex:t.tabIndex,onFocus:function(){m(!0)},onBlur:function(){m(!1)}},v("button"));return e.createElement("div",N,S,!t.disabled&&e.createElement(i,null))}));E.displayName="SelectButtonItem";var S=e.memo(e.forwardRef((function(n,a){var i=e.useContext(u),c=v.getProps(n,i),p=e.useRef(null),m=v.setMetaData({props:c}),d=m.ptm,f=m.cx,y=function(e){if(!c.disabled&&!S(e.option)){var t=N(e.option);if(!t||c.unselectable){var n,o=h(e.option);if(c.multiple){var r=c.value?b(c.value):[];n=t?r.filter((function(e){return!l.equals(e,o,c.dataKey)})):[].concat(b(r),[o])}else n=t?null:o;c.onChange&&c.onChange({originalEvent:e.originalEvent,value:n,stopPropagation:function(){e.originalEvent.stopPropagation()},preventDefault:function(){e.originalEvent.preventDefault()},target:{name:c.name,id:c.id,value:n}})}}},g=function(e){return c.optionLabel?l.resolveFieldData(e,c.optionLabel):e&&void 0!==e.label?e.label:e},h=function(e){return c.optionValue?l.resolveFieldData(e,c.optionValue):e&&void 0!==e.value?e.value:e},S=function(e){return c.optionDisabled?l.isFunction(c.optionDisabled)?c.optionDisabled(e):l.resolveFieldData(e,c.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled},N=function(e){var t=h(e);return c.multiple?!(!c.value||!c.value.length)&&c.value.some((function(e){return l.equals(e,t,c.dataKey)})):l.equals(c.value,t,c.dataKey)};e.useImperativeHandle(a,(function(){return{props:c,focus:function(){return r.focusFirstElement(p.current)},getElement:function(){return p.current}}}));var D=l.isNotEmpty(c.tooltip),x=c.options&&c.options.length?c.options.map((function(t,n){var o=c.disabled||S(t),l=g(t),r=o?null:0,a=N(t);return e.createElement(E,{hostName:"SelectButton",key:l+"_"+n,label:l,className:t.className,option:t,onClick:y,template:c.itemTemplate,selected:a,tabIndex:r,disabled:o,ptm:d,cx:f})})):null,I=o({ref:p,id:c.id,className:f("root"),style:c.style,role:"group"},v.getOtherProps(c),d("root"));return e.createElement(e.Fragment,null,e.createElement("div",I,x),D&&e.createElement(t,s({target:p,content:c.tooltip},c.tooltipOptions,{pt:d("tooltip")})))})));S.displayName="SelectButton";export{S as SelectButton};
|
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Tooltip } from 'primereact/tooltip';
|
|
4
|
-
import { classNames, mergeProps, ObjectUtils, DomHandler } from 'primereact/utils';
|
|
5
|
-
import { ComponentBase } from 'primereact/componentbase';
|
|
6
|
-
import { Ripple } from 'primereact/ripple';
|
|
7
|
-
import { PrimeReactContext } from 'primereact/api';
|
|
8
|
-
|
|
9
|
-
function _extends() {
|
|
10
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
11
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
12
|
-
var source = arguments[i];
|
|
13
|
-
for (var key in source) {
|
|
14
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
15
|
-
target[key] = source[key];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
return _extends.apply(this, arguments);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function _arrayLikeToArray(arr, len) {
|
|
25
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
26
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
27
|
-
return arr2;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function _arrayWithoutHoles(arr) {
|
|
31
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function _iterableToArray(iter) {
|
|
35
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
39
|
-
if (!o) return;
|
|
40
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
41
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
42
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
43
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function _nonIterableSpread() {
|
|
48
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function _toConsumableArray(arr) {
|
|
52
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
var classes = {
|
|
56
|
-
root: function root(_ref) {
|
|
57
|
-
var props = _ref.props;
|
|
58
|
-
return classNames('p-selectbutton p-buttonset p-component', props.className);
|
|
59
|
-
},
|
|
60
|
-
button: function button(_ref2) {
|
|
61
|
-
var props = _ref2.itemProps,
|
|
62
|
-
focusedState = _ref2.focusedState;
|
|
63
|
-
return classNames('p-button p-component', {
|
|
64
|
-
'p-highlight': props.selected,
|
|
65
|
-
'p-disabled': props.disabled,
|
|
66
|
-
'p-focus': focusedState
|
|
67
|
-
});
|
|
68
|
-
},
|
|
69
|
-
label: 'p-button-label p-c'
|
|
70
|
-
};
|
|
71
|
-
var SelectButtonBase = ComponentBase.extend({
|
|
72
|
-
defaultProps: {
|
|
73
|
-
__TYPE: 'SelectButton',
|
|
74
|
-
id: null,
|
|
75
|
-
value: null,
|
|
76
|
-
options: null,
|
|
77
|
-
optionLabel: null,
|
|
78
|
-
optionValue: null,
|
|
79
|
-
optionDisabled: null,
|
|
80
|
-
tabIndex: null,
|
|
81
|
-
multiple: false,
|
|
82
|
-
unselectable: true,
|
|
83
|
-
disabled: false,
|
|
84
|
-
style: null,
|
|
85
|
-
className: null,
|
|
86
|
-
dataKey: null,
|
|
87
|
-
tooltip: null,
|
|
88
|
-
tooltipOptions: null,
|
|
89
|
-
itemTemplate: null,
|
|
90
|
-
onChange: null,
|
|
91
|
-
children: undefined
|
|
92
|
-
},
|
|
93
|
-
css: {
|
|
94
|
-
classes: classes
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
function _arrayWithHoles(arr) {
|
|
99
|
-
if (Array.isArray(arr)) return arr;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function _iterableToArrayLimit(r, l) {
|
|
103
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
104
|
-
if (null != t) {
|
|
105
|
-
var e,
|
|
106
|
-
n,
|
|
107
|
-
i,
|
|
108
|
-
u,
|
|
109
|
-
a = [],
|
|
110
|
-
f = !0,
|
|
111
|
-
o = !1;
|
|
112
|
-
try {
|
|
113
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
114
|
-
if (Object(t) !== t) return;
|
|
115
|
-
f = !1;
|
|
116
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
117
|
-
} catch (r) {
|
|
118
|
-
o = !0, n = r;
|
|
119
|
-
} finally {
|
|
120
|
-
try {
|
|
121
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
122
|
-
} finally {
|
|
123
|
-
if (o) throw n;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return a;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
function _nonIterableRest() {
|
|
131
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
function _slicedToArray(arr, i) {
|
|
135
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
var SelectButtonItem = /*#__PURE__*/React.memo(function (props) {
|
|
139
|
-
var _React$useState = React.useState(false),
|
|
140
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
141
|
-
focusedState = _React$useState2[0],
|
|
142
|
-
setFocusedState = _React$useState2[1];
|
|
143
|
-
var ptm = props.ptm,
|
|
144
|
-
cx = props.cx;
|
|
145
|
-
var getPTOptions = function getPTOptions(key) {
|
|
146
|
-
return ptm(key, {
|
|
147
|
-
hostName: props.hostName,
|
|
148
|
-
context: {
|
|
149
|
-
selected: props.selected,
|
|
150
|
-
disabled: props.disabled,
|
|
151
|
-
option: props.option
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
};
|
|
155
|
-
var onClick = function onClick(event) {
|
|
156
|
-
if (props.onClick) {
|
|
157
|
-
props.onClick({
|
|
158
|
-
originalEvent: event,
|
|
159
|
-
option: props.option
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
var onFocus = function onFocus() {
|
|
164
|
-
setFocusedState(true);
|
|
165
|
-
};
|
|
166
|
-
var onBlur = function onBlur() {
|
|
167
|
-
setFocusedState(false);
|
|
168
|
-
};
|
|
169
|
-
var onKeyDown = function onKeyDown(event) {
|
|
170
|
-
var keyCode = event.which;
|
|
171
|
-
if (keyCode === 32) {
|
|
172
|
-
onClick(event);
|
|
173
|
-
event.preventDefault();
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
var createContent = function createContent() {
|
|
177
|
-
var labelProps = mergeProps({
|
|
178
|
-
className: cx('label')
|
|
179
|
-
}, getPTOptions('label'));
|
|
180
|
-
return props.template ? ObjectUtils.getJSXElement(props.template, props.option) : /*#__PURE__*/React.createElement("span", labelProps, props.label);
|
|
181
|
-
};
|
|
182
|
-
var content = createContent();
|
|
183
|
-
var buttonProps = mergeProps({
|
|
184
|
-
className: classNames(props.className, cx('button', {
|
|
185
|
-
itemProps: props,
|
|
186
|
-
focusedState: focusedState
|
|
187
|
-
})),
|
|
188
|
-
role: 'button',
|
|
189
|
-
'aria-label': props.label,
|
|
190
|
-
'aria-pressed': props.selected,
|
|
191
|
-
onClick: onClick,
|
|
192
|
-
onKeyDown: onKeyDown,
|
|
193
|
-
tabIndex: props.tabIndex,
|
|
194
|
-
onFocus: onFocus,
|
|
195
|
-
onBlur: onBlur
|
|
196
|
-
}, getPTOptions('button'));
|
|
197
|
-
return /*#__PURE__*/React.createElement("div", buttonProps, content, !props.disabled && /*#__PURE__*/React.createElement(Ripple, null));
|
|
198
|
-
});
|
|
199
|
-
SelectButtonItem.displayName = 'SelectButtonItem';
|
|
200
|
-
|
|
201
|
-
var SelectButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
202
|
-
var context = React.useContext(PrimeReactContext);
|
|
203
|
-
var props = SelectButtonBase.getProps(inProps, context);
|
|
204
|
-
var elementRef = React.useRef(null);
|
|
205
|
-
var _SelectButtonBase$set = SelectButtonBase.setMetaData({
|
|
206
|
-
props: props
|
|
207
|
-
}),
|
|
208
|
-
ptm = _SelectButtonBase$set.ptm,
|
|
209
|
-
cx = _SelectButtonBase$set.cx;
|
|
210
|
-
var onOptionClick = function onOptionClick(event) {
|
|
211
|
-
if (props.disabled || isOptionDisabled(event.option)) {
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
var selected = isSelected(event.option);
|
|
215
|
-
if (selected && !props.unselectable) {
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
var optionValue = getOptionValue(event.option);
|
|
219
|
-
var newValue;
|
|
220
|
-
if (props.multiple) {
|
|
221
|
-
var currentValue = props.value ? _toConsumableArray(props.value) : [];
|
|
222
|
-
newValue = selected ? currentValue.filter(function (val) {
|
|
223
|
-
return !ObjectUtils.equals(val, optionValue, props.dataKey);
|
|
224
|
-
}) : [].concat(_toConsumableArray(currentValue), [optionValue]);
|
|
225
|
-
} else {
|
|
226
|
-
newValue = selected ? null : optionValue;
|
|
227
|
-
}
|
|
228
|
-
if (props.onChange) {
|
|
229
|
-
props.onChange({
|
|
230
|
-
originalEvent: event.originalEvent,
|
|
231
|
-
value: newValue,
|
|
232
|
-
stopPropagation: function stopPropagation() {
|
|
233
|
-
event.originalEvent.stopPropagation();
|
|
234
|
-
},
|
|
235
|
-
preventDefault: function preventDefault() {
|
|
236
|
-
event.originalEvent.preventDefault();
|
|
237
|
-
},
|
|
238
|
-
target: {
|
|
239
|
-
name: props.name,
|
|
240
|
-
id: props.id,
|
|
241
|
-
value: newValue
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
var getOptionLabel = function getOptionLabel(option) {
|
|
247
|
-
return props.optionLabel ? ObjectUtils.resolveFieldData(option, props.optionLabel) : option && option['label'] !== undefined ? option['label'] : option;
|
|
248
|
-
};
|
|
249
|
-
var getOptionValue = function getOptionValue(option) {
|
|
250
|
-
return props.optionValue ? ObjectUtils.resolveFieldData(option, props.optionValue) : option && option['value'] !== undefined ? option['value'] : option;
|
|
251
|
-
};
|
|
252
|
-
var isOptionDisabled = function isOptionDisabled(option) {
|
|
253
|
-
if (props.optionDisabled) {
|
|
254
|
-
return ObjectUtils.isFunction(props.optionDisabled) ? props.optionDisabled(option) : ObjectUtils.resolveFieldData(option, props.optionDisabled);
|
|
255
|
-
}
|
|
256
|
-
return option && option['disabled'] !== undefined ? option['disabled'] : false;
|
|
257
|
-
};
|
|
258
|
-
var isSelected = function isSelected(option) {
|
|
259
|
-
var optionValue = getOptionValue(option);
|
|
260
|
-
if (props.multiple) {
|
|
261
|
-
if (props.value && props.value.length) {
|
|
262
|
-
return props.value.some(function (val) {
|
|
263
|
-
return ObjectUtils.equals(val, optionValue, props.dataKey);
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
} else {
|
|
267
|
-
return ObjectUtils.equals(props.value, optionValue, props.dataKey);
|
|
268
|
-
}
|
|
269
|
-
return false;
|
|
270
|
-
};
|
|
271
|
-
var createItems = function createItems() {
|
|
272
|
-
if (props.options && props.options.length) {
|
|
273
|
-
return props.options.map(function (option, index) {
|
|
274
|
-
var isDisabled = props.disabled || isOptionDisabled(option);
|
|
275
|
-
var optionLabel = getOptionLabel(option);
|
|
276
|
-
var tabIndex = isDisabled ? null : 0;
|
|
277
|
-
var selected = isSelected(option);
|
|
278
|
-
var key = optionLabel + '_' + index;
|
|
279
|
-
return /*#__PURE__*/React.createElement(SelectButtonItem, {
|
|
280
|
-
hostName: "SelectButton",
|
|
281
|
-
key: key,
|
|
282
|
-
label: optionLabel,
|
|
283
|
-
className: option.className,
|
|
284
|
-
option: option,
|
|
285
|
-
onClick: onOptionClick,
|
|
286
|
-
template: props.itemTemplate,
|
|
287
|
-
selected: selected,
|
|
288
|
-
tabIndex: tabIndex,
|
|
289
|
-
disabled: isDisabled,
|
|
290
|
-
ptm: ptm,
|
|
291
|
-
cx: cx
|
|
292
|
-
});
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
return null;
|
|
296
|
-
};
|
|
297
|
-
React.useImperativeHandle(ref, function () {
|
|
298
|
-
return {
|
|
299
|
-
props: props,
|
|
300
|
-
focus: function focus() {
|
|
301
|
-
return DomHandler.focusFirstElement(elementRef.current);
|
|
302
|
-
},
|
|
303
|
-
getElement: function getElement() {
|
|
304
|
-
return elementRef.current;
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
|
-
});
|
|
308
|
-
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
309
|
-
var items = createItems();
|
|
310
|
-
var rootProps = mergeProps({
|
|
311
|
-
ref: elementRef,
|
|
312
|
-
id: props.id,
|
|
313
|
-
className: cx('root'),
|
|
314
|
-
style: props.style,
|
|
315
|
-
role: 'group'
|
|
316
|
-
}, SelectButtonBase.getOtherProps(props), ptm('root'));
|
|
317
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", rootProps, items), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
318
|
-
target: elementRef,
|
|
319
|
-
content: props.tooltip
|
|
320
|
-
}, props.tooltipOptions, {
|
|
321
|
-
pt: ptm('tooltip')
|
|
322
|
-
})));
|
|
323
|
-
}));
|
|
324
|
-
SelectButton.displayName = 'SelectButton';
|
|
325
|
-
|
|
326
|
-
export { SelectButton };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import n,{PrimeReactContext as t,localeOption as r}from"primereact/api";import{ComponentBase as i,useHandleStyle as o}from"primereact/componentbase";import{CSSTransition as a}from"primereact/csstransition";import{useEventListener as s,useMountEffect as l,useUpdateEffect as p,useUnmountEffect as c}from"primereact/hooks";import{TimesIcon as d}from"primereact/icons/times";import{Portal as u}from"primereact/portal";import{Ripple as b}from"primereact/ripple";import{classNames as m,DomHandler as f,ObjectUtils as v,ZIndexUtils as h,mergeProps as y,IconUtils as g}from"primereact/utils";function x(){return x=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},x.apply(this,arguments)}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function S(e,n){if("object"!==w(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function E(e){var n=S(e,"string");return"symbol"===w(n)?n:String(n)}function O(e){if(Array.isArray(e))return e}function k(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o,a,s=[],l=!0,p=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=o.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(e){p=!0,i=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(p)throw i}}return s}}function j(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function I(e,n){if(e){if("string"==typeof e)return j(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?j(e,n):void 0}}function P(){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 C(e,n){return O(e)||k(e,n)||I(e,n)||P()}var N=i.extend({defaultProps:{__TYPE:"Sidebar",id:null,style:null,className:null,maskStyle:null,maskClassName:null,visible:!1,position:"left",fullScreen:!1,blockScroll:!1,baseZIndex:0,dismissable:!0,showCloseIcon:!0,closeIcon:null,ariaCloseLabel:null,closeOnEscape:!0,icons:null,modal:!0,appendTo:null,transitionOptions:null,onShow:null,onHide:null,children:void 0},css:{classes:{closeButton:"p-sidebar-close p-sidebar-icon p-link",closeIcon:"p-sidebar-close-icon",mask:function(e){var n=e.props,t=e.maskVisibleState,r=["left","right","top","bottom"].find((function(e){return e===n.position}));return m("p-sidebar-mask",r?"p-sidebar-".concat(r):"",{"p-component-overlay p-component-overlay-enter":n.modal,"p-sidebar-mask-scrollblocker":n.blockScroll,"p-sidebar-visible":t,"p-sidebar-full":n.fullScreen},n.maskClassName)},header:function(e){return m("p-sidebar-header",{"p-sidebar-custom-header":e.props.header})},content:"p-sidebar-content",icons:"p-sidebar-icons",root:function(e){var t=e.context;return m("p-sidebar p-component",e.props.className,{"p-input-filled":t&&"filled"===t.inputStyle||"filled"===n.inputStyle,"p-ripple-disabled":t&&!1===t.ripple||!1===n.ripple})},transition:"p-sidebar"},styles:"\n@layer primereact {\n .p-sidebar-mask {\n display: none;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n background-color: transparent;\n transition-property: background-color;\n }\n \n .p-sidebar-visible {\n display: flex;\n }\n \n .p-sidebar-mask.p-component-overlay {\n pointer-events: auto;\n }\n \n .p-sidebar {\n display: flex;\n flex-direction: column;\n pointer-events: auto;\n transform: translate3d(0px, 0px, 0px);\n position: relative;\n }\n \n .p-sidebar-content {\n overflow-y: auto;\n flex-grow: 1;\n }\n \n .p-sidebar-header {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n }\n \n .p-sidebar-custom-header {\n justify-content: space-between;\n }\n \n .p-sidebar-icons {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n }\n \n .p-sidebar-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-sidebar-full .p-sidebar {\n transition: none;\n transform: none;\n width: 100vw !important;\n height: 100vh !important;\n max-height: 100%;\n top: 0px !important;\n left: 0px !important;\n }\n \n /* Animation */\n /* Top, Bottom, Left and Right */\n .p-sidebar-top .p-sidebar-enter,\n .p-sidebar-top .p-sidebar-exit-active {\n transform: translate3d(0px, -100%, 0px);\n }\n \n .p-sidebar-bottom .p-sidebar-enter,\n .p-sidebar-bottom .p-sidebar-exit-active {\n transform: translate3d(0px, 100%, 0px);\n }\n \n .p-sidebar-left .p-sidebar-enter,\n .p-sidebar-left .p-sidebar-exit-active {\n transform: translate3d(-100%, 0px, 0px);\n }\n \n .p-sidebar-right .p-sidebar-enter,\n .p-sidebar-right .p-sidebar-exit-active {\n transform: translate3d(100%, 0px, 0px);\n }\n \n .p-sidebar-top .p-sidebar-enter-active,\n .p-sidebar-bottom .p-sidebar-enter-active,\n .p-sidebar-left .p-sidebar-enter-active,\n .p-sidebar-right .p-sidebar-enter-active {\n transform: translate3d(0px, 0px, 0px);\n transition: all 0.3s;\n }\n \n .p-sidebar-top .p-sidebar-enter-done,\n .p-sidebar-bottom .p-sidebar-enter-done,\n .p-sidebar-left .p-sidebar-enter-done,\n .p-sidebar-right .p-sidebar-enter-done {\n transform: none;\n }\n \n .p-sidebar-top .p-sidebar-exit-active,\n .p-sidebar-bottom .p-sidebar-exit-active,\n .p-sidebar-left .p-sidebar-exit-active,\n .p-sidebar-right .p-sidebar-exit-active {\n transition: all 0.3s;\n }\n \n /* Full */\n .p-sidebar-full .p-sidebar-enter {\n opacity: 0;\n transform: scale(0.5);\n }\n \n .p-sidebar-full .p-sidebar-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 0.15s cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-sidebar-full .p-sidebar-enter-done {\n transform: none;\n }\n \n .p-sidebar-full .p-sidebar-exit-active {\n opacity: 0;\n transform: scale(0.5);\n transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);\n }\n \n /* Size */\n .p-sidebar-left .p-sidebar {\n width: 20rem;\n height: 100%;\n }\n \n .p-sidebar-right .p-sidebar {\n width: 20rem;\n height: 100%;\n }\n \n .p-sidebar-top .p-sidebar {\n height: 10rem;\n width: 100%;\n }\n \n .p-sidebar-bottom .p-sidebar {\n height: 10rem;\n width: 100%;\n }\n \n .p-sidebar-left .p-sidebar-sm,\n .p-sidebar-right .p-sidebar-sm {\n width: 20rem;\n }\n \n .p-sidebar-left .p-sidebar-md,\n .p-sidebar-right .p-sidebar-md {\n width: 40rem;\n }\n \n .p-sidebar-left .p-sidebar-lg,\n .p-sidebar-right .p-sidebar-lg {\n width: 60rem;\n }\n \n .p-sidebar-top .p-sidebar-sm,\n .p-sidebar-bottom .p-sidebar-sm {\n height: 10rem;\n }\n \n .p-sidebar-top .p-sidebar-md,\n .p-sidebar-bottom .p-sidebar-md {\n height: 20rem;\n }\n \n .p-sidebar-top .p-sidebar-lg,\n .p-sidebar-bottom .p-sidebar-lg {\n height: 30rem;\n }\n \n .p-sidebar-left .p-sidebar-view,\n .p-sidebar-right .p-sidebar-view,\n .p-sidebar-top .p-sidebar-view,\n .p-sidebar-bottom .p-sidebar-view {\n width: 100%;\n height: 100%;\n }\n \n .p-sidebar-left .p-sidebar-content,\n .p-sidebar-right .p-sidebar-content,\n .p-sidebar-top .p-sidebar-content,\n .p-sidebar-bottom .p-sidebar-content {\n width: 100%;\n height: 100%;\n }\n \n @media screen and (max-width: 64em) {\n .p-sidebar-left .p-sidebar-lg,\n .p-sidebar-left .p-sidebar-md,\n .p-sidebar-right .p-sidebar-lg,\n .p-sidebar-right .p-sidebar-md {\n width: 20rem;\n }\n } \n}\n",inlineStyles:{mask:function(e){var n=e.props;return{position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:"left"===n.position?"flex-start":"right"===n.position?"flex-end":"center",alignItems:"top"===n.position?"flex-start":"bottom"===n.position?"flex-end":"center"}}}}}),R=function(n){var t=e.useRef(void 0);return e.useEffect((function(){t.current=n})),t.current},T=function(n,t,r){var i,o,a,s,l,p,c,d,u,b,m,h,y,g,x,w=(s=void 0===(a=(i={type:"keydown",listener:function(e){"Esc"!==e.key&&"Escape"!==e.key||(e.stopImmediatePropagation(),r(e))}}).target)?"document":a,l=i.type,p=i.listener,c=i.options,u=void 0===(d=i.when)||d,b=e.useRef(null),m=e.useRef(null),h=R(p),y=R(c),g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v.isNotEmpty(e.target)&&(x(),(e.when||u)&&(b.current=f.getTargetElement(e.target))),!m.current&&b.current&&(m.current=function(e){return p&&p(e)},b.current.addEventListener(l,m.current,c))},x=function(){m.current&&(b.current.removeEventListener(l,m.current,c),m.current=null)},e.useEffect((function(){u?b.current=f.getTargetElement(s):(x(),b.current=null)}),[s,u]),e.useEffect((function(){!m.current||""+h==""+p&&y===c||(x(),u&&g())}),[p,c,u]),o=function(){x()},e.useEffect((function(){return o}),[]),[g,x]),S=C(w,2),E=S[0],O=S[1];return e.useEffect((function(){if(t&&n.current)return E(),function(){O()}})),[n,r]};function A(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?A(Object(t),!0).forEach((function(n){var r,i,o;r=e,o=t[n],(i=E(i=n))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):A(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var L=e.forwardRef((function(i,m){var w=e.useContext(t),S=N.getProps(i,w),E=C(e.useState(!1),2),O=E[0],k=E[1],j=C(e.useState(!1),2),I=j[0],P=j[1],R=N.setMetaData({props:S,state:{containerVisible:O}}),A=R.ptm,L=R.cx,Z=R.sx;o(N.css.styles,R.isUnstyled,{name:"sidebar"});var z=e.useRef(null),B=e.useRef(null),M=e.useRef(null);T(B,S.closeOnEscape,(function(e){h.get(B.current)===h.getCurrent("modal",w&&w.autoZIndex||n.autoZIndex)&&X(e)}));var H=C(s({type:"click",listener:function(e){0===e.button&&V(e)&&X(e)}}),2),J=H[0],U=H[1],V=function(e){return z&&z.current&&!z.current.contains(e.target)},X=function(e){S.onHide(),e.preventDefault()},_=function(){var e;S.onShow&&S.onShow(),!((e=document.activeElement)&&z&&z.current.contains(e))&&S.showCloseIcon&&M.current.focus(),Y()},F=function(){S.modal&&f.addClass(B.current,"p-component-overlay-leave")},W=function(){h.clear(B.current),k(!1),$()},Y=function(){S.dismissable&&!S.modal&&J(),S.blockScroll&&(f.addClass(document.body,"p-overflow-hidden"),document.body.style.setProperty("--scrollbar-width",f.calculateScrollbarWidth()+"px"))},$=function(){U(),S.blockScroll&&(f.removeClass(document.body,"p-overflow-hidden"),document.body.style.removeProperty("--scrollbar-width"))};e.useImperativeHandle(m,(function(){return{props:S,getElement:function(){return z.current},gteMask:function(){return B.current},getCloseIcon:function(){return M.current}}})),l((function(){S.visible&&k(!0)})),p((function(){S.visible&&!O&&k(!0),S.visible!==I&&O&&P(S.visible)})),p((function(){O&&(h.set("modal",B.current,w&&w.autoZIndex||n.autoZIndex,S.baseZIndex||w&&w.zIndex.modal||n.zIndex.modal),P(!0))}),[O]),p((function(){I&&(U(),S.dismissable&&!S.modal&&J())}),[S.dismissable,S.modal,I]),c((function(){$(),B.current&&h.clear(B.current)}));var q,G,K,Q,ee,ne,te,re,ie,oe,ae,se=function(){var n=y({type:"button",ref:M,className:L("closeButton"),onClick:function(e){return X(e)},"aria-label":o},A("closeButton")),t=y({className:L("closeIcon")},A("closeIcon")),i=g.getJSXIcon(S.closeIcon||e.createElement(d,t),D({},t),{props:S}),o=S.ariaCloseLabel||r("close");return S.showCloseIcon?e.createElement("button",n,i,e.createElement(b,null)):null};return O&&(q=se(),G=S.icons?v.getJSXElement(S.icons,S):null,K=S.header?v.getJSXElement(S.header,S):null,Q={enter:S.fullScreen?150:300,exit:S.fullScreen?150:300},ee=y({ref:B,style:Z("mask"),className:L("mask",{maskVisibleState:O}),onMouseDown:function(e){return n=e,void(S.dismissable&&S.modal&&B.current===n.target&&X(n));var n}},A("mask")),ne=y({id:S.id,className:L("root",{context:w}),style:S.style,role:"complementary"},N.getOtherProps(S),A("root")),te=y({className:L("header")},A("header")),re=y({className:L("content")},A("content")),ie=y({className:L("icons")},A("icons")),oe=y({classNames:L("transition"),in:I,timeout:Q,options:S.transitionOptions,unmountOnExit:!0,onEntered:_,onExiting:F,onExited:W},A("transition")),ae=e.createElement("div",ee,e.createElement(a,x({nodeRef:z},oe),e.createElement("div",x({ref:z},ne),e.createElement("div",te,K,e.createElement("div",ie,G,q)),e.createElement("div",re,S.children)))),e.createElement(u,{element:ae,appendTo:S.appendTo,visible:!0}))}));L.displayName="Sidebar";export{L as Sidebar};
|