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 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{PrimeReactContext as r}from"primereact/api";import{ComponentBase as t,useHandleStyle as n}from"primereact/componentbase";import{classNames as a,ObjectUtils as o,DomHandler as i,mergeProps as l,IconUtils as c}from"primereact/utils";function u(e){return u="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},u(e)}function s(e,r){if("object"!==u(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function p(e){var r=s(e,"string");return"symbol"===u(r)?r:String(r)}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},m.apply(this,arguments)}function f(e){if(Array.isArray(e))return e}function v(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,i,l=[],c=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=o.call(t)).done)&&(l.push(n.value),l.length!==r);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}function b(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function y(e,r){if(e){if("string"==typeof e)return b(e,r);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)?b(e,r):void 0}}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,r){return f(e)||v(e,r)||y(e,r)||g()}var h=t.extend({defaultProps:{__TYPE:"Avatar",className:null,icon:null,image:null,imageAlt:"avatar",imageFallback:"default",label:null,onImageError:null,shape:"square",size:"normal",style:null,template:null,children:void 0},css:{classes:{root:function(e){var r=e.props,t=e.state;return a("p-avatar p-component",{"p-avatar-image":o.isNotEmpty(r.image)&&!t.imageFailed,"p-avatar-circle":"circle"===r.shape,"p-avatar-lg":"large"===r.size,"p-avatar-xl":"xlarge"===r.size,"p-avatar-clickable":!!r.onClick})},label:"p-avatar-text",icon:"p-avatar-icon"},styles:"\n@layer primereact {\n .p-avatar {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n font-size: 1rem;\n }\n \n .p-avatar.p-avatar-image {\n background-color: transparent;\n }\n \n .p-avatar.p-avatar-circle {\n border-radius: 50%;\n }\n \n .p-avatar.p-avatar-circle img {\n border-radius: 50%;\n }\n \n .p-avatar .p-avatar-icon {\n font-size: 1rem;\n }\n \n .p-avatar img {\n width: 100%;\n height: 100%;\n }\n \n .p-avatar-clickable {\n cursor: pointer;\n }\n}\n"}});function O(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function j(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?O(Object(t),!0).forEach((function(r){var n,a,o;n=e,o=t[r],(a=p(a=r))in n?Object.defineProperty(n,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[a]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var E=e.forwardRef((function(t,u){var s=e.useContext(r),p=h.getProps(t,s),f=e.useRef(null),v=d(e.useState(!1),2),b=v[0],y=v[1],g=d(e.useState(!1),2),O=g[1],E=h.setMetaData({props:p,state:{imageFailed:b,nested:g[0]}}),S=E.ptm,w=E.cx;n(h.css.styles,E.isUnstyled,{name:"avatar"});var P=function(e){"default"===p.imageFallback?p.onImageError||(y(!0),e.target.src=null):e.target.src=p.imageFallback,p.onImageError&&p.onImageError(e)};e.useEffect((function(){var e=i.isAttributeEquals(f.current.parentElement,"data-pc-name","avatargroup");O(e)}),[]),e.useImperativeHandle(u,(function(){return{props:p,getElement:function(){return f.current}}}));var A=l({ref:f,style:p.style,className:a(p.className,w("root",{imageFailed:b}))},h.getOtherProps(p),S("root")),x=p.template?o.getJSXElement(p.template,p):function(){if(o.isNotEmpty(p.image)&&!b){var r=l({src:p.image,onError:P},S("image"));return e.createElement("img",m({alt:p.imageAlt},r))}if(p.label){var t=l({className:w("label")},S("label"));return e.createElement("span",t,p.label)}if(p.icon){var n=l({className:w("icon")},S("icon"));return c.getJSXIcon(p.icon,j({},n),{props:p})}return null}();return e.createElement("div",A,x,p.children)}));E.displayName="Avatar";export{E as Avatar};
|
package/avatar/avatar.esm.mjs
DELETED
|
@@ -1,244 +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 { classNames, ObjectUtils, DomHandler, mergeProps, IconUtils } from 'primereact/utils';
|
|
6
|
-
|
|
7
|
-
function _typeof(o) {
|
|
8
|
-
"@babel/helpers - typeof";
|
|
9
|
-
|
|
10
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
11
|
-
return typeof o;
|
|
12
|
-
} : function (o) {
|
|
13
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
14
|
-
}, _typeof(o);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function _toPrimitive(input, hint) {
|
|
18
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
19
|
-
var prim = input[Symbol.toPrimitive];
|
|
20
|
-
if (prim !== undefined) {
|
|
21
|
-
var res = prim.call(input, hint || "default");
|
|
22
|
-
if (_typeof(res) !== "object") return res;
|
|
23
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
24
|
-
}
|
|
25
|
-
return (hint === "string" ? String : Number)(input);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function _toPropertyKey(arg) {
|
|
29
|
-
var key = _toPrimitive(arg, "string");
|
|
30
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function _defineProperty(obj, key, value) {
|
|
34
|
-
key = _toPropertyKey(key);
|
|
35
|
-
if (key in obj) {
|
|
36
|
-
Object.defineProperty(obj, key, {
|
|
37
|
-
value: value,
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true,
|
|
40
|
-
writable: true
|
|
41
|
-
});
|
|
42
|
-
} else {
|
|
43
|
-
obj[key] = value;
|
|
44
|
-
}
|
|
45
|
-
return obj;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function _extends() {
|
|
49
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
50
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
51
|
-
var source = arguments[i];
|
|
52
|
-
for (var key in source) {
|
|
53
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
54
|
-
target[key] = source[key];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return target;
|
|
59
|
-
};
|
|
60
|
-
return _extends.apply(this, arguments);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function _arrayWithHoles(arr) {
|
|
64
|
-
if (Array.isArray(arr)) return arr;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function _iterableToArrayLimit(r, l) {
|
|
68
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
69
|
-
if (null != t) {
|
|
70
|
-
var e,
|
|
71
|
-
n,
|
|
72
|
-
i,
|
|
73
|
-
u,
|
|
74
|
-
a = [],
|
|
75
|
-
f = !0,
|
|
76
|
-
o = !1;
|
|
77
|
-
try {
|
|
78
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
79
|
-
if (Object(t) !== t) return;
|
|
80
|
-
f = !1;
|
|
81
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
82
|
-
} catch (r) {
|
|
83
|
-
o = !0, n = r;
|
|
84
|
-
} finally {
|
|
85
|
-
try {
|
|
86
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
87
|
-
} finally {
|
|
88
|
-
if (o) throw n;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return a;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function _arrayLikeToArray(arr, len) {
|
|
96
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
97
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
98
|
-
return arr2;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
102
|
-
if (!o) return;
|
|
103
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
104
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
105
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
106
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
107
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
function _nonIterableRest() {
|
|
111
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function _slicedToArray(arr, i) {
|
|
115
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
var classes = {
|
|
119
|
-
root: function root(_ref) {
|
|
120
|
-
var props = _ref.props,
|
|
121
|
-
state = _ref.state;
|
|
122
|
-
return classNames('p-avatar p-component', {
|
|
123
|
-
'p-avatar-image': ObjectUtils.isNotEmpty(props.image) && !state.imageFailed,
|
|
124
|
-
'p-avatar-circle': props.shape === 'circle',
|
|
125
|
-
'p-avatar-lg': props.size === 'large',
|
|
126
|
-
'p-avatar-xl': props.size === 'xlarge',
|
|
127
|
-
'p-avatar-clickable': !!props.onClick
|
|
128
|
-
});
|
|
129
|
-
},
|
|
130
|
-
label: 'p-avatar-text',
|
|
131
|
-
icon: 'p-avatar-icon'
|
|
132
|
-
};
|
|
133
|
-
var styles = "\n@layer primereact {\n .p-avatar {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n font-size: 1rem;\n }\n \n .p-avatar.p-avatar-image {\n background-color: transparent;\n }\n \n .p-avatar.p-avatar-circle {\n border-radius: 50%;\n }\n \n .p-avatar.p-avatar-circle img {\n border-radius: 50%;\n }\n \n .p-avatar .p-avatar-icon {\n font-size: 1rem;\n }\n \n .p-avatar img {\n width: 100%;\n height: 100%;\n }\n \n .p-avatar-clickable {\n cursor: pointer;\n }\n}\n";
|
|
134
|
-
var AvatarBase = ComponentBase.extend({
|
|
135
|
-
defaultProps: {
|
|
136
|
-
__TYPE: 'Avatar',
|
|
137
|
-
className: null,
|
|
138
|
-
icon: null,
|
|
139
|
-
image: null,
|
|
140
|
-
imageAlt: 'avatar',
|
|
141
|
-
imageFallback: 'default',
|
|
142
|
-
label: null,
|
|
143
|
-
onImageError: null,
|
|
144
|
-
shape: 'square',
|
|
145
|
-
size: 'normal',
|
|
146
|
-
style: null,
|
|
147
|
-
template: null,
|
|
148
|
-
children: undefined
|
|
149
|
-
},
|
|
150
|
-
css: {
|
|
151
|
-
classes: classes,
|
|
152
|
-
styles: styles
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
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; }
|
|
157
|
-
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; }
|
|
158
|
-
var Avatar = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
159
|
-
var context = React.useContext(PrimeReactContext);
|
|
160
|
-
var props = AvatarBase.getProps(inProps, context);
|
|
161
|
-
var elementRef = React.useRef(null);
|
|
162
|
-
var _React$useState = React.useState(false),
|
|
163
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
164
|
-
imageFailed = _React$useState2[0],
|
|
165
|
-
setImageFailed = _React$useState2[1];
|
|
166
|
-
var _React$useState3 = React.useState(false),
|
|
167
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
168
|
-
nested = _React$useState4[0],
|
|
169
|
-
setNested = _React$useState4[1];
|
|
170
|
-
var _AvatarBase$setMetaDa = AvatarBase.setMetaData({
|
|
171
|
-
props: props,
|
|
172
|
-
state: {
|
|
173
|
-
imageFailed: imageFailed,
|
|
174
|
-
nested: nested
|
|
175
|
-
}
|
|
176
|
-
}),
|
|
177
|
-
ptm = _AvatarBase$setMetaDa.ptm,
|
|
178
|
-
cx = _AvatarBase$setMetaDa.cx,
|
|
179
|
-
isUnstyled = _AvatarBase$setMetaDa.isUnstyled;
|
|
180
|
-
useHandleStyle(AvatarBase.css.styles, isUnstyled, {
|
|
181
|
-
name: 'avatar'
|
|
182
|
-
});
|
|
183
|
-
var createContent = function createContent() {
|
|
184
|
-
if (ObjectUtils.isNotEmpty(props.image) && !imageFailed) {
|
|
185
|
-
var imageProps = mergeProps({
|
|
186
|
-
src: props.image,
|
|
187
|
-
onError: onImageError
|
|
188
|
-
}, ptm('image'));
|
|
189
|
-
return /*#__PURE__*/React.createElement("img", _extends({
|
|
190
|
-
alt: props.imageAlt
|
|
191
|
-
}, imageProps));
|
|
192
|
-
} else if (props.label) {
|
|
193
|
-
var labelProps = mergeProps({
|
|
194
|
-
className: cx('label')
|
|
195
|
-
}, ptm('label'));
|
|
196
|
-
return /*#__PURE__*/React.createElement("span", labelProps, props.label);
|
|
197
|
-
} else if (props.icon) {
|
|
198
|
-
var iconProps = mergeProps({
|
|
199
|
-
className: cx('icon')
|
|
200
|
-
}, ptm('icon'));
|
|
201
|
-
return IconUtils.getJSXIcon(props.icon, _objectSpread({}, iconProps), {
|
|
202
|
-
props: props
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
return null;
|
|
206
|
-
};
|
|
207
|
-
var onImageError = function onImageError(event) {
|
|
208
|
-
if (props.imageFallback === 'default') {
|
|
209
|
-
if (!props.onImageError) {
|
|
210
|
-
// fallback to label or icon
|
|
211
|
-
setImageFailed(true);
|
|
212
|
-
event.target.src = null;
|
|
213
|
-
}
|
|
214
|
-
} else {
|
|
215
|
-
// try fallback as an image
|
|
216
|
-
event.target.src = props.imageFallback;
|
|
217
|
-
}
|
|
218
|
-
props.onImageError && props.onImageError(event);
|
|
219
|
-
};
|
|
220
|
-
React.useEffect(function () {
|
|
221
|
-
var nested = DomHandler.isAttributeEquals(elementRef.current.parentElement, 'data-pc-name', 'avatargroup');
|
|
222
|
-
setNested(nested);
|
|
223
|
-
}, []);
|
|
224
|
-
React.useImperativeHandle(ref, function () {
|
|
225
|
-
return {
|
|
226
|
-
props: props,
|
|
227
|
-
getElement: function getElement() {
|
|
228
|
-
return elementRef.current;
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
});
|
|
232
|
-
var rootProps = mergeProps({
|
|
233
|
-
ref: elementRef,
|
|
234
|
-
style: props.style,
|
|
235
|
-
className: classNames(props.className, cx('root', {
|
|
236
|
-
imageFailed: imageFailed
|
|
237
|
-
}))
|
|
238
|
-
}, AvatarBase.getOtherProps(props), ptm('root'));
|
|
239
|
-
var content = props.template ? ObjectUtils.getJSXElement(props.template, props) : createContent();
|
|
240
|
-
return /*#__PURE__*/React.createElement("div", rootProps, content, props.children);
|
|
241
|
-
});
|
|
242
|
-
Avatar.displayName = 'Avatar';
|
|
243
|
-
|
|
244
|
-
export { Avatar };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as r from"react";import{PrimeReactContext as e}from"primereact/api";import{ComponentBase as a,useHandleStyle as t}from"primereact/componentbase";import{mergeProps as n,classNames as s}from"primereact/utils";var o=a.extend({defaultProps:{__TYPE:"AvatarGroup",style:null,className:null,children:void 0},css:{classes:{root:"p-avatar-group p-component"},styles:"\n@layer primereact {\n .p-avatar-group .p-avatar + .p-avatar {\n margin-left: -1rem;\n }\n \n .p-avatar-group {\n display: flex;\n align-items: center;\n }\n}\n"}}),p=r.forwardRef((function(a,p){var l=r.useContext(e),m=o.getProps(a,l),i=o.setMetaData({props:m}),c=i.ptm,u=i.cx;t(o.css.styles,i.isUnstyled,{name:"avatargroup"});var v=r.useRef(null);r.useImperativeHandle(p,(function(){return{props:m,getElement:function(){return v.current}}}));var f=n({ref:v,style:m.style,className:s(m.className,u("root"))},o.getOtherProps(m),c("root"));return r.createElement("div",f,m.children)}));p.displayName="AvatarGroup";export{p as AvatarGroup};
|
|
@@ -1,54 +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 { mergeProps, classNames } from 'primereact/utils';
|
|
6
|
-
|
|
7
|
-
var classes = {
|
|
8
|
-
root: 'p-avatar-group p-component'
|
|
9
|
-
};
|
|
10
|
-
var styles = "\n@layer primereact {\n .p-avatar-group .p-avatar + .p-avatar {\n margin-left: -1rem;\n }\n \n .p-avatar-group {\n display: flex;\n align-items: center;\n }\n}\n";
|
|
11
|
-
var AvatarGroupBase = ComponentBase.extend({
|
|
12
|
-
defaultProps: {
|
|
13
|
-
__TYPE: 'AvatarGroup',
|
|
14
|
-
style: null,
|
|
15
|
-
className: null,
|
|
16
|
-
children: undefined
|
|
17
|
-
},
|
|
18
|
-
css: {
|
|
19
|
-
classes: classes,
|
|
20
|
-
styles: styles
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
var AvatarGroup = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
25
|
-
var context = React.useContext(PrimeReactContext);
|
|
26
|
-
var props = AvatarGroupBase.getProps(inProps, context);
|
|
27
|
-
var _AvatarGroupBase$setM = AvatarGroupBase.setMetaData({
|
|
28
|
-
props: props
|
|
29
|
-
}),
|
|
30
|
-
ptm = _AvatarGroupBase$setM.ptm,
|
|
31
|
-
cx = _AvatarGroupBase$setM.cx,
|
|
32
|
-
isUnstyled = _AvatarGroupBase$setM.isUnstyled;
|
|
33
|
-
useHandleStyle(AvatarGroupBase.css.styles, isUnstyled, {
|
|
34
|
-
name: 'avatargroup'
|
|
35
|
-
});
|
|
36
|
-
var elementRef = React.useRef(null);
|
|
37
|
-
React.useImperativeHandle(ref, function () {
|
|
38
|
-
return {
|
|
39
|
-
props: props,
|
|
40
|
-
getElement: function getElement() {
|
|
41
|
-
return elementRef.current;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
});
|
|
45
|
-
var rootProps = mergeProps({
|
|
46
|
-
ref: elementRef,
|
|
47
|
-
style: props.style,
|
|
48
|
-
className: classNames(props.className, cx('root'))
|
|
49
|
-
}, AvatarGroupBase.getOtherProps(props), ptm('root'));
|
|
50
|
-
return /*#__PURE__*/React.createElement("div", rootProps, props.children);
|
|
51
|
-
});
|
|
52
|
-
AvatarGroup.displayName = 'AvatarGroup';
|
|
53
|
-
|
|
54
|
-
export { AvatarGroup };
|
package/badge/badge.esm.min.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{PrimeReactContext as r}from"primereact/api";import{ComponentBase as t,useHandleStyle as n}from"primereact/componentbase";import{classNames as o,ObjectUtils as a,mergeProps as i}from"primereact/utils";function l(e){return l="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},l(e)}function p(e,r){if("object"!==l(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function s(e){var r=p(e,"string");return"symbol"===l(r)?r:String(r)}function u(e,r,t){return(r=s(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var c=t.extend({defaultProps:{__TYPE:"Badge",__parentMetadata:null,value:null,severity:null,size:null,style:null,className:null,children:void 0},css:{classes:{root:function(e){var r=e.props;return o("p-badge p-component",u({"p-badge-no-gutter":a.isNotEmpty(r.value)&&1===String(r.value).length,"p-badge-dot":a.isEmpty(r.value),"p-badge-lg":"large"===r.size,"p-badge-xl":"xlarge"===r.size},"p-badge-".concat(r.severity),null!==r.severity))}},styles:"\n@layer primereact {\n .p-badge {\n display: inline-block;\n border-radius: 10px;\n text-align: center;\n padding: 0 .5rem;\n }\n \n .p-overlay-badge {\n position: relative;\n }\n \n .p-overlay-badge .p-badge {\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%,-50%);\n transform-origin: 100% 0;\n margin: 0;\n }\n \n .p-badge-dot {\n width: .5rem;\n min-width: .5rem;\n height: .5rem;\n border-radius: 50%;\n padding: 0;\n }\n \n .p-badge-no-gutter {\n padding: 0;\n border-radius: 50%;\n }\n}\n"}});function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function b(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?m(Object(t),!0).forEach((function(r){u(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var d=e.memo(e.forwardRef((function(t,a){var l=e.useContext(r),p=c.getProps(t,l),s=c.setMetaData(b({props:p},p.__parentMetadata)),u=s.ptm,m=s.cx;n(c.css.styles,s.isUnstyled,{name:"badge"});var d=e.useRef(null);e.useImperativeHandle(a,(function(){return{props:p,getElement:function(){return d.current}}}));var f=i({ref:d,style:p.style,className:o(p.className,m("root"))},c.getOtherProps(p),u("root"));return e.createElement("span",f,p.value)})));d.displayName="Badge";export{d as Badge};
|
package/badge/badge.esm.mjs
DELETED
|
@@ -1,109 +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 { classNames, ObjectUtils, mergeProps } from 'primereact/utils';
|
|
6
|
-
|
|
7
|
-
function _typeof(o) {
|
|
8
|
-
"@babel/helpers - typeof";
|
|
9
|
-
|
|
10
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
11
|
-
return typeof o;
|
|
12
|
-
} : function (o) {
|
|
13
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
14
|
-
}, _typeof(o);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function _toPrimitive(input, hint) {
|
|
18
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
19
|
-
var prim = input[Symbol.toPrimitive];
|
|
20
|
-
if (prim !== undefined) {
|
|
21
|
-
var res = prim.call(input, hint || "default");
|
|
22
|
-
if (_typeof(res) !== "object") return res;
|
|
23
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
24
|
-
}
|
|
25
|
-
return (hint === "string" ? String : Number)(input);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function _toPropertyKey(arg) {
|
|
29
|
-
var key = _toPrimitive(arg, "string");
|
|
30
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function _defineProperty(obj, key, value) {
|
|
34
|
-
key = _toPropertyKey(key);
|
|
35
|
-
if (key in obj) {
|
|
36
|
-
Object.defineProperty(obj, key, {
|
|
37
|
-
value: value,
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true,
|
|
40
|
-
writable: true
|
|
41
|
-
});
|
|
42
|
-
} else {
|
|
43
|
-
obj[key] = value;
|
|
44
|
-
}
|
|
45
|
-
return obj;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
var classes = {
|
|
49
|
-
root: function root(_ref) {
|
|
50
|
-
var props = _ref.props;
|
|
51
|
-
return classNames('p-badge p-component', _defineProperty({
|
|
52
|
-
'p-badge-no-gutter': ObjectUtils.isNotEmpty(props.value) && String(props.value).length === 1,
|
|
53
|
-
'p-badge-dot': ObjectUtils.isEmpty(props.value),
|
|
54
|
-
'p-badge-lg': props.size === 'large',
|
|
55
|
-
'p-badge-xl': props.size === 'xlarge'
|
|
56
|
-
}, "p-badge-".concat(props.severity), props.severity !== null));
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
var styles = "\n@layer primereact {\n .p-badge {\n display: inline-block;\n border-radius: 10px;\n text-align: center;\n padding: 0 .5rem;\n }\n \n .p-overlay-badge {\n position: relative;\n }\n \n .p-overlay-badge .p-badge {\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%,-50%);\n transform-origin: 100% 0;\n margin: 0;\n }\n \n .p-badge-dot {\n width: .5rem;\n min-width: .5rem;\n height: .5rem;\n border-radius: 50%;\n padding: 0;\n }\n \n .p-badge-no-gutter {\n padding: 0;\n border-radius: 50%;\n }\n}\n";
|
|
60
|
-
var BadgeBase = ComponentBase.extend({
|
|
61
|
-
defaultProps: {
|
|
62
|
-
__TYPE: 'Badge',
|
|
63
|
-
__parentMetadata: null,
|
|
64
|
-
value: null,
|
|
65
|
-
severity: null,
|
|
66
|
-
size: null,
|
|
67
|
-
style: null,
|
|
68
|
-
className: null,
|
|
69
|
-
children: undefined
|
|
70
|
-
},
|
|
71
|
-
css: {
|
|
72
|
-
classes: classes,
|
|
73
|
-
styles: styles
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
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; }
|
|
78
|
-
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; }
|
|
79
|
-
var Badge = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
80
|
-
var context = React.useContext(PrimeReactContext);
|
|
81
|
-
var props = BadgeBase.getProps(inProps, context);
|
|
82
|
-
var _BadgeBase$setMetaDat = BadgeBase.setMetaData(_objectSpread({
|
|
83
|
-
props: props
|
|
84
|
-
}, props.__parentMetadata)),
|
|
85
|
-
ptm = _BadgeBase$setMetaDat.ptm,
|
|
86
|
-
cx = _BadgeBase$setMetaDat.cx,
|
|
87
|
-
isUnstyled = _BadgeBase$setMetaDat.isUnstyled;
|
|
88
|
-
useHandleStyle(BadgeBase.css.styles, isUnstyled, {
|
|
89
|
-
name: 'badge'
|
|
90
|
-
});
|
|
91
|
-
var elementRef = React.useRef(null);
|
|
92
|
-
React.useImperativeHandle(ref, function () {
|
|
93
|
-
return {
|
|
94
|
-
props: props,
|
|
95
|
-
getElement: function getElement() {
|
|
96
|
-
return elementRef.current;
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
});
|
|
100
|
-
var rootProps = mergeProps({
|
|
101
|
-
ref: elementRef,
|
|
102
|
-
style: props.style,
|
|
103
|
-
className: classNames(props.className, cx('root'))
|
|
104
|
-
}, BadgeBase.getOtherProps(props), ptm('root'));
|
|
105
|
-
return /*#__PURE__*/React.createElement("span", rootProps, props.value);
|
|
106
|
-
}));
|
|
107
|
-
Badge.displayName = 'Badge';
|
|
108
|
-
|
|
109
|
-
export { Badge };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import t,{PrimeReactContext as r}from"primereact/api";import{ComponentBase as n,useHandleStyle as o}from"primereact/componentbase";import{useMountEffect as l,useUpdateEffect as c,useUnmountEffect as i}from"primereact/hooks";import{Portal as a}from"primereact/portal";import{classNames as u,DomHandler as s,ZIndexUtils as p,mergeProps as f,ObjectUtils as m}from"primereact/utils";function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function y(e){return y="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},y(e)}function b(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function v(e){var t=b(e,"string");return"symbol"===y(t)?t:String(t)}function h(e){if(Array.isArray(e))return e}function S(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,l,c,i=[],a=!0,u=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;a=!1}else for(;!(a=(n=l.call(r)).done)&&(i.push(n.value),i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{if(!a&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(u)throw o}}return i}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}function O(){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 j=n.extend({defaultProps:{__TYPE:"BlockUI",autoZIndex:!0,baseZIndex:0,blocked:!1,className:null,containerClassName:null,containerStyle:null,fullScreen:!1,id:null,onBlocked:null,onUnblocked:null,style:null,template:null,children:void 0},css:{classes:{root:function(e){return u("p-blockui-container",e.props.containerClassName)},mask:function(e){return u("p-blockui p-component-overlay p-component-overlay-enter",{"p-blockui-document":e.props.fullScreen})}},styles:"\n@layer primereact {\n .p-blockui-container {\n position: relative;\n }\n \n .p-blockui {\n opacity: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-blockui.p-component-overlay {\n position: absolute;\n }\n \n .p-blockui-document.p-component-overlay {\n position: fixed;\n }\n}\n"}});function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){var n,o,l;n=e,l=r[t],(o=v(o=t))in n?Object.defineProperty(n,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[o]=l})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var x=e.forwardRef((function(n,y){var b,v,g=e.useContext(r),w=j.getProps(n,g),x=e.useState(w.blocked),I=(v=2,h(b=x)||S(b,v)||k(b,v)||O()),E=I[0],C=I[1],N=e.useRef(null),U=e.useRef(null),A=j.setMetaData({props:w}),Z=A.ptm,B=A.cx;o(j.css.styles,A.isUnstyled,{name:"blockui"});var D=function(){C(!0)},T=function(){var e=function(){C(!1),w.fullScreen&&s.removeClass(document.body,"p-overflow-hidden"),document.body.style.removeProperty("--scrollbar-width"),w.onUnblocked&&w.onUnblocked()};U.current?(s.addClass(U.current,"p-component-overlay-leave"),U.current.addEventListener("animationend",(function(){p.clear(U.current),e()}))):e()},M=function(){if(w.fullScreen&&(s.addClass(document.body,"p-overflow-hidden"),document.body.style.setProperty("--scrollbar-width",s.calculateScrollbarWidth()+"px"),document.activeElement.blur()),w.autoZIndex){var e=w.fullScreen?"modal":"overlay";p.set(e,U.current,g&&g.autoZIndex||t.autoZIndex,w.baseZIndex||g&&g.zIndex[e]||t.zIndex[e])}w.onBlocked&&w.onBlocked()};l((function(){E&&D()})),c((function(){w.blocked?D():T()}),[w.blocked]),i((function(){w.fullScreen&&(s.removeClass(document.body,"p-overflow-hidden"),document.body.style.removeProperty("--scrollbar-width")),p.clear(U.current)})),e.useImperativeHandle(y,(function(){return{props:w,block:D,unblock:T,getElement:function(){return N.current}}}));var R=function(){if(E){var t=w.fullScreen?document.body:"self",r=f({className:u(w.className,B("mask")),style:P(P({},w.style),{},{position:w.fullScreen?"fixed":"absolute",top:"0",left:"0",width:"100%",height:"100%"})},Z("mask")),n=w.template?m.getJSXElement(w.template,w):null,o=e.createElement("div",d({ref:U},r),n);return e.createElement(a,{element:o,appendTo:t,onMounted:M})}return null}(),z=f({id:w.id,ref:N,style:w.containerStyle,className:B("root")},j.getOtherProps(w),Z("root"));return e.createElement("div",z,w.children,R)}));x.displayName="BlockUI";export{x as BlockUI};
|