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,465 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { PrimeReactContext } from 'primereact/api';
|
|
4
|
-
import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
|
|
5
|
-
import { useEventListener } from 'primereact/hooks';
|
|
6
|
-
import { ObjectUtils, classNames, DomHandler, mergeProps } from 'primereact/utils';
|
|
7
|
-
|
|
8
|
-
function _extends() {
|
|
9
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
10
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
11
|
-
var source = arguments[i];
|
|
12
|
-
for (var key in source) {
|
|
13
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
14
|
-
target[key] = source[key];
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
return _extends.apply(this, arguments);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function _arrayLikeToArray(arr, len) {
|
|
24
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
25
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
26
|
-
return arr2;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function _arrayWithoutHoles(arr) {
|
|
30
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function _iterableToArray(iter) {
|
|
34
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
38
|
-
if (!o) return;
|
|
39
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
40
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
41
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
42
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
43
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function _nonIterableSpread() {
|
|
47
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function _toConsumableArray(arr) {
|
|
51
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function _typeof(o) {
|
|
55
|
-
"@babel/helpers - typeof";
|
|
56
|
-
|
|
57
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
58
|
-
return typeof o;
|
|
59
|
-
} : function (o) {
|
|
60
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
61
|
-
}, _typeof(o);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function _toPrimitive(input, hint) {
|
|
65
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
66
|
-
var prim = input[Symbol.toPrimitive];
|
|
67
|
-
if (prim !== undefined) {
|
|
68
|
-
var res = prim.call(input, hint || "default");
|
|
69
|
-
if (_typeof(res) !== "object") return res;
|
|
70
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
71
|
-
}
|
|
72
|
-
return (hint === "string" ? String : Number)(input);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function _toPropertyKey(arg) {
|
|
76
|
-
var key = _toPrimitive(arg, "string");
|
|
77
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function _defineProperty(obj, key, value) {
|
|
81
|
-
key = _toPropertyKey(key);
|
|
82
|
-
if (key in obj) {
|
|
83
|
-
Object.defineProperty(obj, key, {
|
|
84
|
-
value: value,
|
|
85
|
-
enumerable: true,
|
|
86
|
-
configurable: true,
|
|
87
|
-
writable: true
|
|
88
|
-
});
|
|
89
|
-
} else {
|
|
90
|
-
obj[key] = value;
|
|
91
|
-
}
|
|
92
|
-
return obj;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function _arrayWithHoles(arr) {
|
|
96
|
-
if (Array.isArray(arr)) return arr;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function _iterableToArrayLimit(r, l) {
|
|
100
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
101
|
-
if (null != t) {
|
|
102
|
-
var e,
|
|
103
|
-
n,
|
|
104
|
-
i,
|
|
105
|
-
u,
|
|
106
|
-
a = [],
|
|
107
|
-
f = !0,
|
|
108
|
-
o = !1;
|
|
109
|
-
try {
|
|
110
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
111
|
-
if (Object(t) !== t) return;
|
|
112
|
-
f = !1;
|
|
113
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
114
|
-
} catch (r) {
|
|
115
|
-
o = !0, n = r;
|
|
116
|
-
} finally {
|
|
117
|
-
try {
|
|
118
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
119
|
-
} finally {
|
|
120
|
-
if (o) throw n;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return a;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
function _nonIterableRest() {
|
|
128
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
function _slicedToArray(arr, i) {
|
|
132
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
var classes = {
|
|
136
|
-
root: function root(_ref) {
|
|
137
|
-
var props = _ref.props;
|
|
138
|
-
return classNames("p-splitter p-component p-splitter-".concat(props.layout));
|
|
139
|
-
},
|
|
140
|
-
gutter: 'p-splitter-gutter',
|
|
141
|
-
gutterHandler: 'p-splitter-gutter-handle',
|
|
142
|
-
panel: {
|
|
143
|
-
root: 'p-splitter-panel'
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
var styles = "\n@layer primereact {\n .p-splitter {\n display: flex;\n flex-wrap: nowrap;\n }\n \n .p-splitter-vertical {\n flex-direction: column;\n }\n \n .p-splitter-panel {\n flex-grow: 1;\n }\n \n .p-splitter-panel-nested {\n display: flex;\n }\n \n .p-splitter-panel .p-splitter {\n flex-grow: 1;\n border: 0 none;\n }\n \n .p-splitter-gutter {\n flex-grow: 0;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: col-resize;\n }\n \n .p-splitter-horizontal.p-splitter-resizing {\n cursor: col-resize;\n user-select: none;\n }\n \n .p-splitter-horizontal > .p-splitter-gutter > .p-splitter-gutter-handle {\n height: 24px;\n width: 100%;\n }\n \n .p-splitter-horizontal > .p-splitter-gutter {\n cursor: col-resize;\n }\n \n .p-splitter-vertical.p-splitter-resizing {\n cursor: row-resize;\n user-select: none;\n }\n \n .p-splitter-vertical > .p-splitter-gutter {\n cursor: row-resize;\n }\n \n .p-splitter-vertical > .p-splitter-gutter > .p-splitter-gutter-handle {\n width: 24px;\n height: 100%;\n }\n}\n\n";
|
|
147
|
-
var SplitterBase = ComponentBase.extend({
|
|
148
|
-
defaultProps: {
|
|
149
|
-
__TYPE: 'Splitter',
|
|
150
|
-
className: null,
|
|
151
|
-
gutterSize: 4,
|
|
152
|
-
id: null,
|
|
153
|
-
layout: 'horizontal',
|
|
154
|
-
onResizeEnd: null,
|
|
155
|
-
stateKey: null,
|
|
156
|
-
stateStorage: 'session',
|
|
157
|
-
style: null,
|
|
158
|
-
children: undefined
|
|
159
|
-
},
|
|
160
|
-
css: {
|
|
161
|
-
classes: classes,
|
|
162
|
-
styles: styles
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
var SplitterPanelBase = ComponentBase.extend({
|
|
166
|
-
defaultProps: {
|
|
167
|
-
__TYPE: 'SplitterPanel',
|
|
168
|
-
className: null,
|
|
169
|
-
minSize: null,
|
|
170
|
-
size: null,
|
|
171
|
-
style: null,
|
|
172
|
-
children: undefined
|
|
173
|
-
},
|
|
174
|
-
getCProps: function getCProps(panel) {
|
|
175
|
-
return ObjectUtils.getComponentProps(panel, SplitterPanelBase.defaultProps);
|
|
176
|
-
},
|
|
177
|
-
getCOtherProps: function getCOtherProps(panel) {
|
|
178
|
-
return ObjectUtils.getComponentDiffProps(panel, SplitterPanelBase.defaultProps);
|
|
179
|
-
},
|
|
180
|
-
getCProp: function getCProp(panel, name) {
|
|
181
|
-
return ObjectUtils.getComponentProp(panel, name, SplitterPanelBase.defaultProps);
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
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; }
|
|
186
|
-
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; }
|
|
187
|
-
var SplitterPanel = function SplitterPanel() {};
|
|
188
|
-
var Splitter = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
189
|
-
var context = React.useContext(PrimeReactContext);
|
|
190
|
-
var props = SplitterBase.getProps(inProps, context);
|
|
191
|
-
var elementRef = React.useRef(null);
|
|
192
|
-
var gutterRef = React.useRef();
|
|
193
|
-
var gutterRefs = React.useRef({});
|
|
194
|
-
var size = React.useRef(null);
|
|
195
|
-
var dragging = React.useRef(null);
|
|
196
|
-
var startPos = React.useRef(null);
|
|
197
|
-
var prevPanelElement = React.useRef(null);
|
|
198
|
-
var nextPanelElement = React.useRef(null);
|
|
199
|
-
var prevPanelSize = React.useRef(null);
|
|
200
|
-
var prevPanelSizeNew = React.useRef(null);
|
|
201
|
-
var nextPanelSize = React.useRef(null);
|
|
202
|
-
var nextPanelSizeNew = React.useRef(null);
|
|
203
|
-
var prevPanelIndex = React.useRef(null);
|
|
204
|
-
var _React$useState = React.useState([]),
|
|
205
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
206
|
-
panelSizes = _React$useState2[0],
|
|
207
|
-
setPanelSizes = _React$useState2[1];
|
|
208
|
-
var _React$useState3 = React.useState(false),
|
|
209
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
210
|
-
nested = _React$useState4[0],
|
|
211
|
-
setNested = _React$useState4[1];
|
|
212
|
-
var isStateful = props.stateKey != null;
|
|
213
|
-
var childrenLength = props.children && props.children.length || 1;
|
|
214
|
-
var panelSize = function panelSize(sizes, index) {
|
|
215
|
-
return index in sizes ? sizes[index] : props.children && [].concat(props.children)[index].props.size || 100 / childrenLength;
|
|
216
|
-
};
|
|
217
|
-
var metaData = {
|
|
218
|
-
props: props,
|
|
219
|
-
state: {
|
|
220
|
-
panelSizes: panelSizes,
|
|
221
|
-
nested: DomHandler.getAttribute(elementRef.current && elementRef.current.parentElement, 'data-p-splitter-panel-nested') === true
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
var _SplitterBase$setMeta = SplitterBase.setMetaData(_objectSpread({}, metaData)),
|
|
225
|
-
ptm = _SplitterBase$setMeta.ptm,
|
|
226
|
-
cx = _SplitterBase$setMeta.cx,
|
|
227
|
-
isUnstyled = _SplitterBase$setMeta.isUnstyled;
|
|
228
|
-
useHandleStyle(SplitterBase.css.styles, isUnstyled, {
|
|
229
|
-
name: 'splitter'
|
|
230
|
-
});
|
|
231
|
-
var getPanelPT = function getPanelPT(key) {
|
|
232
|
-
return ptm(key, {
|
|
233
|
-
context: {
|
|
234
|
-
nested: nested
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
};
|
|
238
|
-
var _useEventListener = useEventListener({
|
|
239
|
-
type: 'mousemove',
|
|
240
|
-
listener: function listener(event) {
|
|
241
|
-
return onResize(event);
|
|
242
|
-
}
|
|
243
|
-
}),
|
|
244
|
-
_useEventListener2 = _slicedToArray(_useEventListener, 2),
|
|
245
|
-
bindDocumentMouseMoveListener = _useEventListener2[0],
|
|
246
|
-
unbindDocumentMouseMoveListener = _useEventListener2[1];
|
|
247
|
-
var _useEventListener3 = useEventListener({
|
|
248
|
-
type: 'mouseup',
|
|
249
|
-
listener: function listener(event) {
|
|
250
|
-
onResizeEnd(event);
|
|
251
|
-
unbindMouseListeners();
|
|
252
|
-
}
|
|
253
|
-
}),
|
|
254
|
-
_useEventListener4 = _slicedToArray(_useEventListener3, 2),
|
|
255
|
-
bindDocumentMouseUpListener = _useEventListener4[0],
|
|
256
|
-
unbindDocumentMouseUpListener = _useEventListener4[1];
|
|
257
|
-
var bindMouseListeners = function bindMouseListeners() {
|
|
258
|
-
bindDocumentMouseMoveListener();
|
|
259
|
-
bindDocumentMouseUpListener();
|
|
260
|
-
};
|
|
261
|
-
var unbindMouseListeners = function unbindMouseListeners() {
|
|
262
|
-
unbindDocumentMouseMoveListener();
|
|
263
|
-
unbindDocumentMouseUpListener();
|
|
264
|
-
};
|
|
265
|
-
var getPanelProp = function getPanelProp(panel, name) {
|
|
266
|
-
return SplitterPanelBase.getCProp(panel, name);
|
|
267
|
-
};
|
|
268
|
-
var validateResize = function validateResize(newPrevPanelSize, newNextPanelSize) {
|
|
269
|
-
if (newPrevPanelSize > 100 || newPrevPanelSize < 0) return false;
|
|
270
|
-
if (newNextPanelSize > 100 || newNextPanelSize < 0) return false;
|
|
271
|
-
if (props.children[prevPanelIndex.current].props && props.children[prevPanelIndex.current].props.minSize && props.children[prevPanelIndex.current].props.minSize > newPrevPanelSize) {
|
|
272
|
-
return false;
|
|
273
|
-
}
|
|
274
|
-
if (props.children[prevPanelIndex.current + 1].props && props.children[prevPanelIndex.current + 1].props.minSize && props.children[prevPanelIndex.current + 1].props.minSize > newNextPanelSize) {
|
|
275
|
-
return false;
|
|
276
|
-
}
|
|
277
|
-
return true;
|
|
278
|
-
};
|
|
279
|
-
var clear = function clear() {
|
|
280
|
-
dragging.current = false;
|
|
281
|
-
size.current = null;
|
|
282
|
-
startPos.current = null;
|
|
283
|
-
prevPanelElement.current = null;
|
|
284
|
-
nextPanelElement.current = null;
|
|
285
|
-
prevPanelSize.current = null;
|
|
286
|
-
prevPanelSizeNew.current = null;
|
|
287
|
-
nextPanelSize.current = null;
|
|
288
|
-
nextPanelSizeNew.current = null;
|
|
289
|
-
prevPanelIndex.current = null;
|
|
290
|
-
};
|
|
291
|
-
var getStorage = React.useCallback(function () {
|
|
292
|
-
switch (props.stateStorage) {
|
|
293
|
-
case 'local':
|
|
294
|
-
return window.localStorage;
|
|
295
|
-
case 'session':
|
|
296
|
-
return window.sessionStorage;
|
|
297
|
-
default:
|
|
298
|
-
throw new Error(props.stateStorage + ' is not a valid value for the state storage, supported values are "local" and "session".');
|
|
299
|
-
}
|
|
300
|
-
}, [props.stateStorage]);
|
|
301
|
-
var saveState = function saveState(sizes) {
|
|
302
|
-
getStorage().setItem(props.stateKey, JSON.stringify(sizes));
|
|
303
|
-
};
|
|
304
|
-
var restoreState = React.useCallback(function () {
|
|
305
|
-
var stateString = getStorage().getItem(props.stateKey);
|
|
306
|
-
if (stateString) setPanelSizes(JSON.parse(stateString));
|
|
307
|
-
}, [getStorage, props.stateKey]);
|
|
308
|
-
var onResizeStart = function onResizeStart(event, index) {
|
|
309
|
-
gutterRef.current = gutterRefs.current[index];
|
|
310
|
-
var pageX = event.type === 'touchstart' ? event.touches[0].pageX : event.pageX;
|
|
311
|
-
var pageY = event.type === 'touchstart' ? event.touches[0].pageY : event.pageY;
|
|
312
|
-
size.current = props.layout === 'horizontal' ? DomHandler.getWidth(elementRef.current) : DomHandler.getHeight(elementRef.current);
|
|
313
|
-
dragging.current = true;
|
|
314
|
-
startPos.current = props.layout === 'horizontal' ? pageX : pageY;
|
|
315
|
-
prevPanelElement.current = gutterRef.current.previousElementSibling;
|
|
316
|
-
nextPanelElement.current = gutterRef.current.nextElementSibling;
|
|
317
|
-
prevPanelSize.current = 100 * (props.layout === 'horizontal' ? DomHandler.getOuterWidth(prevPanelElement.current, true) : DomHandler.getOuterHeight(prevPanelElement.current, true)) / size.current;
|
|
318
|
-
prevPanelSizeNew.current = prevPanelSize.current;
|
|
319
|
-
nextPanelSize.current = 100 * (props.layout === 'horizontal' ? DomHandler.getOuterWidth(nextPanelElement.current, true) : DomHandler.getOuterHeight(nextPanelElement.current, true)) / size.current;
|
|
320
|
-
nextPanelSizeNew.current = nextPanelSize.current;
|
|
321
|
-
prevPanelIndex.current = index;
|
|
322
|
-
!isUnstyled() && DomHandler.addClass(gutterRef.current, 'p-splitter-gutter-resizing');
|
|
323
|
-
gutterRef.current.setAttribute('data-p-splitter-gutter-resizing', true);
|
|
324
|
-
!isUnstyled() && DomHandler.addClass(elementRef.current, 'p-splitter-resizing');
|
|
325
|
-
elementRef.current.setAttribute('data-p-splitter-resizing', true);
|
|
326
|
-
};
|
|
327
|
-
var onResize = function onResize(event) {
|
|
328
|
-
var newPos;
|
|
329
|
-
var pageX = event.type === 'touchmove' ? event.touches[0].pageX : event.pageX;
|
|
330
|
-
var pageY = event.type === 'touchmove' ? event.touches[0].pageY : event.pageY;
|
|
331
|
-
if (props.layout === 'horizontal') newPos = pageX * 100 / size.current - startPos.current * 100 / size.current;else newPos = pageY * 100 / size.current - startPos.current * 100 / size.current;
|
|
332
|
-
var newPrevPanelSize = prevPanelSize.current + newPos;
|
|
333
|
-
var newNextPanelSize = nextPanelSize.current - newPos;
|
|
334
|
-
if (validateResize(newPrevPanelSize, newNextPanelSize)) {
|
|
335
|
-
prevPanelSizeNew.current = newPrevPanelSize;
|
|
336
|
-
nextPanelSizeNew.current = newNextPanelSize;
|
|
337
|
-
prevPanelElement.current.style.flexBasis = 'calc(' + newPrevPanelSize + '% - ' + (props.children.length - 1) * props.gutterSize + 'px)';
|
|
338
|
-
nextPanelElement.current.style.flexBasis = 'calc(' + newNextPanelSize + '% - ' + (props.children.length - 1) * props.gutterSize + 'px)';
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
var onResizeEnd = function onResizeEnd(event) {
|
|
342
|
-
setPanelSizes(function (prev) {
|
|
343
|
-
var sizes = [];
|
|
344
|
-
for (var index = 0; index < props.children.length; index++) sizes[index] = panelSize(prev, index);
|
|
345
|
-
sizes[prevPanelIndex.current] = prevPanelSizeNew.current;
|
|
346
|
-
sizes[prevPanelIndex.current + 1] = nextPanelSizeNew.current;
|
|
347
|
-
if (props.onResizeEnd) {
|
|
348
|
-
props.onResizeEnd({
|
|
349
|
-
originalEvent: event,
|
|
350
|
-
sizes: sizes
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
if (isStateful) saveState(sizes);
|
|
354
|
-
return sizes;
|
|
355
|
-
});
|
|
356
|
-
!isUnstyled() && DomHandler.removeClass(gutterRef.current, 'p-splitter-gutter-resizing');
|
|
357
|
-
gutterRef.current.setAttribute('data-p-splitter-gutter-resizing', false);
|
|
358
|
-
!isUnstyled() && DomHandler.removeClass(elementRef.current, 'p-splitter-resizing');
|
|
359
|
-
elementRef.current.setAttribute('data-p-splitter-resizing', false);
|
|
360
|
-
clear();
|
|
361
|
-
};
|
|
362
|
-
var onGutterMouseDown = function onGutterMouseDown(event, index) {
|
|
363
|
-
onResizeStart(event, index);
|
|
364
|
-
bindMouseListeners();
|
|
365
|
-
};
|
|
366
|
-
var onGutterTouchStart = function onGutterTouchStart(event, index) {
|
|
367
|
-
onResizeStart(event, index);
|
|
368
|
-
window.addEventListener('touchmove', onGutterTouchMove, {
|
|
369
|
-
passive: false,
|
|
370
|
-
cancelable: false
|
|
371
|
-
});
|
|
372
|
-
window.addEventListener('touchend', onGutterTouchEnd);
|
|
373
|
-
};
|
|
374
|
-
var onGutterTouchMove = function onGutterTouchMove(event) {
|
|
375
|
-
onResize(event);
|
|
376
|
-
};
|
|
377
|
-
var onGutterTouchEnd = function onGutterTouchEnd(event) {
|
|
378
|
-
onResizeEnd(event);
|
|
379
|
-
window.removeEventListener('touchmove', onGutterTouchMove);
|
|
380
|
-
window.removeEventListener('touchend', onGutterTouchEnd);
|
|
381
|
-
};
|
|
382
|
-
React.useImperativeHandle(ref, function () {
|
|
383
|
-
return {
|
|
384
|
-
props: props,
|
|
385
|
-
getElement: function getElement() {
|
|
386
|
-
return elementRef.current;
|
|
387
|
-
}
|
|
388
|
-
};
|
|
389
|
-
});
|
|
390
|
-
React.useEffect(function () {
|
|
391
|
-
var panelElements = _toConsumableArray(elementRef.current.children).filter(function (child) {
|
|
392
|
-
return DomHandler.getAttribute(child, 'data-pc-section') === 'splitterpanel.root';
|
|
393
|
-
});
|
|
394
|
-
panelElements.map(function (panelElement) {
|
|
395
|
-
if (panelElement.childNodes && ObjectUtils.isNotEmpty(DomHandler.find(panelElement, "[data-pc-name='splitter']") && DomHandler.find(panelElement, "[data-pc-section='root']"))) {
|
|
396
|
-
!isUnstyled() && DomHandler.addClass(panelElement, 'p-splitter-panel-nested');
|
|
397
|
-
panelElement.setAttribute('data-p-splitter-panel-nested', true);
|
|
398
|
-
setNested(true);
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
402
|
-
}, []);
|
|
403
|
-
React.useEffect(function () {
|
|
404
|
-
if (isStateful) restoreState();
|
|
405
|
-
}, [restoreState, isStateful]);
|
|
406
|
-
var createPanel = function createPanel(panel, index) {
|
|
407
|
-
var panelClassName = classNames(getPanelProp(panel, 'className'), cx('panel.root'));
|
|
408
|
-
var gutterProps = mergeProps({
|
|
409
|
-
ref: function ref(el) {
|
|
410
|
-
return gutterRefs.current[index] = el;
|
|
411
|
-
},
|
|
412
|
-
className: cx('gutter'),
|
|
413
|
-
style: props.layout === 'horizontal' ? {
|
|
414
|
-
width: props.gutterSize + 'px'
|
|
415
|
-
} : {
|
|
416
|
-
height: props.gutterSize + 'px'
|
|
417
|
-
},
|
|
418
|
-
onMouseDown: function onMouseDown(event) {
|
|
419
|
-
return onGutterMouseDown(event, index);
|
|
420
|
-
},
|
|
421
|
-
onTouchStart: function onTouchStart(event) {
|
|
422
|
-
return onGutterTouchStart(event, index);
|
|
423
|
-
},
|
|
424
|
-
onTouchMove: function onTouchMove(event) {
|
|
425
|
-
return onGutterTouchMove(event);
|
|
426
|
-
},
|
|
427
|
-
onTouchEnd: function onTouchEnd(event) {
|
|
428
|
-
return onGutterTouchEnd(event);
|
|
429
|
-
},
|
|
430
|
-
'data-p-splitter-gutter-resizing': false
|
|
431
|
-
}, ptm('gutter'));
|
|
432
|
-
var gutterHandlerProps = mergeProps({
|
|
433
|
-
className: cx('gutterHandler')
|
|
434
|
-
}, ptm('gutterHandler'));
|
|
435
|
-
var gutter = index !== props.children.length - 1 && /*#__PURE__*/React.createElement("div", gutterProps, /*#__PURE__*/React.createElement("div", gutterHandlerProps));
|
|
436
|
-
var flexBasis = 'calc(' + panelSize(panelSizes, index) + '% - ' + (childrenLength - 1) * props.gutterSize + 'px)';
|
|
437
|
-
var rootProps = mergeProps({
|
|
438
|
-
key: index,
|
|
439
|
-
className: panelClassName,
|
|
440
|
-
style: _objectSpread(_objectSpread({}, getPanelProp(panel, 'style')), {}, {
|
|
441
|
-
flexBasis: flexBasis
|
|
442
|
-
}),
|
|
443
|
-
role: 'presentation',
|
|
444
|
-
'data-p-splitter-panel-nested': false
|
|
445
|
-
}, getPanelPT('splitterpanel.root'));
|
|
446
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", rootProps, getPanelProp(panel, 'children')), gutter);
|
|
447
|
-
};
|
|
448
|
-
var createPanels = function createPanels() {
|
|
449
|
-
return React.Children.map(props.children, createPanel);
|
|
450
|
-
};
|
|
451
|
-
var rootProps = mergeProps({
|
|
452
|
-
id: props.id,
|
|
453
|
-
style: props.style,
|
|
454
|
-
className: classNames(props.className, cx('root')),
|
|
455
|
-
'data-p-splitter-resizing': false
|
|
456
|
-
}, SplitterBase.getOtherProps(props), ptm('root'));
|
|
457
|
-
var panels = createPanels();
|
|
458
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
459
|
-
ref: elementRef
|
|
460
|
-
}, rootProps), panels);
|
|
461
|
-
}));
|
|
462
|
-
SplitterPanel.displayName = 'SplitterPanel';
|
|
463
|
-
Splitter.displayName = 'Splitter';
|
|
464
|
-
|
|
465
|
-
export { Splitter, SplitterPanel };
|
package/steps/steps.esm.min.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{PrimeReactContext as t}from"primereact/api";import{ComponentBase as n,useHandleStyle as r}from"primereact/componentbase";import{useMountEffect as i}from"primereact/hooks";import{classNames as l,UniqueComponentId as o,mergeProps as a,IconUtils as s,ObjectUtils as c}from"primereact/utils";function p(e){return p="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},p(e)}function u(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function m(e){var t=u(e,"string");return"symbol"===p(t)?t:String(t)}function f(e){if(Array.isArray(e))return e}function d(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,o,a=[],s=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}function v(){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 g=n.extend({defaultProps:{__TYPE:"Steps",id:null,model:null,activeIndex:0,readOnly:!0,style:null,className:null,onSelect:null,children:void 0},css:{classes:{icon:function(e){return l("p-menuitem-icon",e.item.icon)},label:"p-steps-title",step:"p-steps-number",action:"p-menuitem-link",menuitem:function(e){return l("p-steps-item",e.item.className,{"p-highlight p-steps-current":e.active,"p-disabled":e.disabled})},root:function(e){var t=e.props;return l("p-steps p-component",{"p-readonly":t.readOnly},t.className)}},styles:"\n@layer primereact {\n .p-steps {\n position: relative;\n }\n \n .p-steps ul {\n padding: 0;\n margin: 0;\n list-style-type: none;\n display: flex;\n }\n \n .p-steps-item {\n position: relative;\n display: flex;\n justify-content: center;\n flex: 1 1 auto;\n }\n \n .p-steps-item .p-menuitem-link {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n overflow: hidden;\n text-decoration: none;\n }\n \n .p-steps.p-readonly .p-steps-item {\n cursor: auto;\n }\n \n .p-steps-item.p-steps-current .p-menuitem-link {\n cursor: default;\n }\n \n .p-steps-title {\n white-space: nowrap;\n }\n \n .p-steps-number {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-steps-title {\n display: block;\n }\n}\n"}});function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){var r,i,l;r=e,l=n[t],(i=m(i=t))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=e.memo(e.forwardRef((function(n,p){var u,m,y=e.useContext(t),O=g.getProps(n,y),S=e.useState(O.id),j=(m=2,f(u=S)||d(u,m)||b(u,m)||v()),x=j[0],w=j[1],E=e.useRef(null),N=g.setMetaData({props:O,state:{id:x}}),P=N.ptm,k=N.cx;r(g.css.styles,N.isUnstyled,{name:"steps"});var I=function(e,t,n){O.readOnly||t.disabled?e.preventDefault():(O.onSelect&&O.onSelect({originalEvent:e,item:t,index:n}),t.url||e.preventDefault(),t.command&&t.command({originalEvent:e,item:t,index:n}))},C=function(t,n){if(!1===t.visible)return null;var r=t.id||x+"_"+n,i=n===O.activeIndex,o=t.disabled||n!==O.activeIndex&&O.readOnly,p=o?-1:"",u=l("p-menuitem-icon",t.icon),m=a({className:k("icon",{item:t})},P("icon")),f=s.getJSXIcon(t.icon,h({},m),{props:O}),d=a({className:k("label")},P("label")),y=t.label&&e.createElement("span",d,t.label),b=a({className:k("step")},P("step")),v=a({href:t.url||"#",className:k("action"),role:"presentation",target:t.target,onClick:function(e){return I(e,t,n)},tabIndex:p},P("action")),g=e.createElement("a",v,e.createElement("span",b,n+1),f,y);t.template&&(g=c.getJSXElement(t.template,t,{onClick:function(e){return I(e,t,n)},className:"p-menuitem-link",labelClassName:"p-steps-title",numberClassName:"p-steps-number",iconClassName:u,element:g,props:O,tabIndex:p,active:i,disabled:o}));var S=a({key:r,id:r,className:k("menuitem",{active:i,disabled:o,item:t}),style:t.style,role:"tab","aria-selected":i,"aria-expanded":i},P("menuitem"));return e.createElement("li",S,g)};i((function(){x||w(o())})),e.useImperativeHandle(p,(function(){return{props:O,getElement:function(){return E.current}}}));var D=a({id:O.id,ref:E,className:k("root"),style:O.style},g.getOtherProps(O),P("root")),A=function(){var t=a({role:"tablist"},P("menu"));if(O.model){var n=O.model.map(C);return e.createElement("ul",t,n)}return null}();return e.createElement("div",D,A)})));S.displayName="Steps";export{S as Steps};
|