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 n,useHandleStyle as t}from"primereact/componentbase";import{classNames as a,mergeProps as i}from"primereact/utils";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},o.apply(this,arguments)}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 s(e,r){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,r||"default");if("object"!==l(t))return t;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"===l(r)?r:String(r)}var u=n.extend({defaultProps:{__TYPE:"ProgressBar",__parentMetadata:null,id:null,value:null,showValue:!0,unit:"%",style:null,className:null,mode:"determinate",displayValueTemplate:null,color:null,children:void 0},css:{classes:{root:function(e){return a("indeterminate"===e.props.mode?"p-progressbar p-component p-progressbar-indeterminate":"p-progressbar p-component p-progressbar-determinate")},value:"p-progressbar-value p-progressbar-value-animate",label:"p-progressbar-label",container:"p-progressbar-indeterminate-container"},styles:"\n@layer primereact {\n .p-progressbar {\n position: relative;\n overflow: hidden;\n }\n \n .p-progressbar-determinate .p-progressbar-value {\n height: 100%;\n width: 0%;\n position: absolute;\n display: none;\n border: 0 none;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n }\n \n .p-progressbar-determinate .p-progressbar-label {\n display: inline-flex;\n }\n \n .p-progressbar-determinate .p-progressbar-value-animate {\n transition: width 1s ease-in-out;\n }\n \n .p-progressbar-indeterminate .p-progressbar-value::before {\n content: '';\n position: absolute;\n background-color: inherit;\n top: 0;\n left: 0;\n bottom: 0;\n will-change: left, right;\n -webkit-animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n }\n \n .p-progressbar-indeterminate .p-progressbar-value::after {\n content: '';\n position: absolute;\n background-color: inherit;\n top: 0;\n left: 0;\n bottom: 0;\n will-change: left, right;\n -webkit-animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n -webkit-animation-delay: 1.15s;\n animation-delay: 1.15s;\n }\n}\n\n@-webkit-keyframes p-progressbar-indeterminate-anim {\n 0% {\n left: -35%;\n right: 100%; }\n 60% {\n left: 100%;\n right: -90%; }\n 100% {\n left: 100%;\n right: -90%; }\n}\n@keyframes p-progressbar-indeterminate-anim {\n 0% {\n left: -35%;\n right: 100%; }\n 60% {\n left: 100%;\n right: -90%; }\n 100% {\n left: 100%;\n right: -90%; }\n}\n\n@-webkit-keyframes p-progressbar-indeterminate-anim-short {\n 0% {\n left: -200%;\n right: 100%; }\n 60% {\n left: 107%;\n right: -8%; }\n 100% {\n left: 107%;\n right: -8%; }\n}\n@keyframes p-progressbar-indeterminate-anim-short {\n 0% {\n left: -200%;\n right: 100%; }\n 60% {\n left: 107%;\n right: -8%; }\n 100% {\n left: 107%;\n right: -8%; }\n}\n",inlineStyles:{value:function(e){var r=e.props,n=Math.max(r.value,2);return"indeterminate"===r.mode?{backgroundColor:r.color}:{width:n+"%",display:"flex",backgroundColor:r.value?r.color:"transparent"}}}}});function m(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function c(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?m(Object(n),!0).forEach((function(r){var t,a,i;t=e,i=n[r],(a=p(a=r))in t?Object.defineProperty(t,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[a]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var b=e.memo(e.forwardRef((function(n,l){var s=e.useContext(r),p=u.getProps(n,s),m=u.setMetaData(c({props:p},p.__parentMetadata)),b=m.ptm,f=m.cx;t(u.css.styles,m.isUnstyled,{name:"progressbar"});var d,g,v,y,h=e.useRef(null);if(e.useImperativeHandle(l,(function(){return{props:p,getElement:function(){return h.current}}})),"determinate"===p.mode)return d=p.showValue&&null!=p.value?p.displayValueTemplate?p.displayValueTemplate(p.value):p.value+p.unit:null,g=i({className:f("root"),style:p.style,role:"progressbar","aria-valuemin":"0","aria-valuenow":p.value,"aria-valuemax":"100"},u.getOtherProps(p),b("root")),v=i({className:f("value"),style:{width:p.value+"%",display:"flex",backgroundColor:p.color}},b("value")),y=i({className:f("label")},b("label")),e.createElement("div",o({id:p.id,ref:h},g),e.createElement("div",v,null!=d&&e.createElement("div",y,d)));if("indeterminate"===p.mode)return function(){var r=i({className:a(p.className,f("root")),style:p.style,role:"progressbar"},u.getOtherProps(p),b("root")),n=i({className:f("container")},b("container")),t=i({className:f("value"),style:{backgroundColor:p.color}},b("value"));return e.createElement("div",o({id:p.id,ref:h},r),e.createElement("div",n,e.createElement("div",t)))}();throw new Error(p.mode+" is not a valid mode for the ProgressBar. Valid values are 'determinate' and 'indeterminate'")})));b.displayName="ProgressBar";export{b as ProgressBar};
|
|
@@ -1,189 +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, mergeProps } from 'primereact/utils';
|
|
6
|
-
|
|
7
|
-
function _extends() {
|
|
8
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
9
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
10
|
-
var source = arguments[i];
|
|
11
|
-
for (var key in source) {
|
|
12
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
13
|
-
target[key] = source[key];
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return target;
|
|
18
|
-
};
|
|
19
|
-
return _extends.apply(this, arguments);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function _typeof(o) {
|
|
23
|
-
"@babel/helpers - typeof";
|
|
24
|
-
|
|
25
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
26
|
-
return typeof o;
|
|
27
|
-
} : function (o) {
|
|
28
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
29
|
-
}, _typeof(o);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function _toPrimitive(input, hint) {
|
|
33
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
34
|
-
var prim = input[Symbol.toPrimitive];
|
|
35
|
-
if (prim !== undefined) {
|
|
36
|
-
var res = prim.call(input, hint || "default");
|
|
37
|
-
if (_typeof(res) !== "object") return res;
|
|
38
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
39
|
-
}
|
|
40
|
-
return (hint === "string" ? String : Number)(input);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function _toPropertyKey(arg) {
|
|
44
|
-
var key = _toPrimitive(arg, "string");
|
|
45
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function _defineProperty(obj, key, value) {
|
|
49
|
-
key = _toPropertyKey(key);
|
|
50
|
-
if (key in obj) {
|
|
51
|
-
Object.defineProperty(obj, key, {
|
|
52
|
-
value: value,
|
|
53
|
-
enumerable: true,
|
|
54
|
-
configurable: true,
|
|
55
|
-
writable: true
|
|
56
|
-
});
|
|
57
|
-
} else {
|
|
58
|
-
obj[key] = value;
|
|
59
|
-
}
|
|
60
|
-
return obj;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
var classes = {
|
|
64
|
-
root: function root(_ref) {
|
|
65
|
-
var props = _ref.props;
|
|
66
|
-
return props.mode === 'indeterminate' ? classNames('p-progressbar p-component p-progressbar-indeterminate') : classNames('p-progressbar p-component p-progressbar-determinate');
|
|
67
|
-
},
|
|
68
|
-
value: 'p-progressbar-value p-progressbar-value-animate',
|
|
69
|
-
label: 'p-progressbar-label',
|
|
70
|
-
container: 'p-progressbar-indeterminate-container'
|
|
71
|
-
};
|
|
72
|
-
var styles = "\n@layer primereact {\n .p-progressbar {\n position: relative;\n overflow: hidden;\n }\n \n .p-progressbar-determinate .p-progressbar-value {\n height: 100%;\n width: 0%;\n position: absolute;\n display: none;\n border: 0 none;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n }\n \n .p-progressbar-determinate .p-progressbar-label {\n display: inline-flex;\n }\n \n .p-progressbar-determinate .p-progressbar-value-animate {\n transition: width 1s ease-in-out;\n }\n \n .p-progressbar-indeterminate .p-progressbar-value::before {\n content: '';\n position: absolute;\n background-color: inherit;\n top: 0;\n left: 0;\n bottom: 0;\n will-change: left, right;\n -webkit-animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n }\n \n .p-progressbar-indeterminate .p-progressbar-value::after {\n content: '';\n position: absolute;\n background-color: inherit;\n top: 0;\n left: 0;\n bottom: 0;\n will-change: left, right;\n -webkit-animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n -webkit-animation-delay: 1.15s;\n animation-delay: 1.15s;\n }\n}\n\n@-webkit-keyframes p-progressbar-indeterminate-anim {\n 0% {\n left: -35%;\n right: 100%; }\n 60% {\n left: 100%;\n right: -90%; }\n 100% {\n left: 100%;\n right: -90%; }\n}\n@keyframes p-progressbar-indeterminate-anim {\n 0% {\n left: -35%;\n right: 100%; }\n 60% {\n left: 100%;\n right: -90%; }\n 100% {\n left: 100%;\n right: -90%; }\n}\n\n@-webkit-keyframes p-progressbar-indeterminate-anim-short {\n 0% {\n left: -200%;\n right: 100%; }\n 60% {\n left: 107%;\n right: -8%; }\n 100% {\n left: 107%;\n right: -8%; }\n}\n@keyframes p-progressbar-indeterminate-anim-short {\n 0% {\n left: -200%;\n right: 100%; }\n 60% {\n left: 107%;\n right: -8%; }\n 100% {\n left: 107%;\n right: -8%; }\n}\n";
|
|
73
|
-
var inlineStyles = {
|
|
74
|
-
value: function value(_ref2) {
|
|
75
|
-
var props = _ref2.props;
|
|
76
|
-
var valueWidth = Math.max(props.value, 2); // min 2 to display full label of 0% and 1%
|
|
77
|
-
var valueColor = props.value ? props.color : 'transparent';
|
|
78
|
-
return props.mode === 'indeterminate' ? {
|
|
79
|
-
backgroundColor: props.color
|
|
80
|
-
} : {
|
|
81
|
-
width: valueWidth + '%',
|
|
82
|
-
display: 'flex',
|
|
83
|
-
backgroundColor: valueColor
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
var ProgressBarBase = ComponentBase.extend({
|
|
88
|
-
defaultProps: {
|
|
89
|
-
__TYPE: 'ProgressBar',
|
|
90
|
-
__parentMetadata: null,
|
|
91
|
-
id: null,
|
|
92
|
-
value: null,
|
|
93
|
-
showValue: true,
|
|
94
|
-
unit: '%',
|
|
95
|
-
style: null,
|
|
96
|
-
className: null,
|
|
97
|
-
mode: 'determinate',
|
|
98
|
-
displayValueTemplate: null,
|
|
99
|
-
color: null,
|
|
100
|
-
children: undefined
|
|
101
|
-
},
|
|
102
|
-
css: {
|
|
103
|
-
classes: classes,
|
|
104
|
-
styles: styles,
|
|
105
|
-
inlineStyles: inlineStyles
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
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; }
|
|
110
|
-
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; }
|
|
111
|
-
var ProgressBar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
112
|
-
var context = React.useContext(PrimeReactContext);
|
|
113
|
-
var props = ProgressBarBase.getProps(inProps, context);
|
|
114
|
-
var _ProgressBarBase$setM = ProgressBarBase.setMetaData(_objectSpread({
|
|
115
|
-
props: props
|
|
116
|
-
}, props.__parentMetadata)),
|
|
117
|
-
ptm = _ProgressBarBase$setM.ptm,
|
|
118
|
-
cx = _ProgressBarBase$setM.cx,
|
|
119
|
-
isUnstyled = _ProgressBarBase$setM.isUnstyled;
|
|
120
|
-
useHandleStyle(ProgressBarBase.css.styles, isUnstyled, {
|
|
121
|
-
name: 'progressbar'
|
|
122
|
-
});
|
|
123
|
-
var elementRef = React.useRef(null);
|
|
124
|
-
var createLabel = function createLabel() {
|
|
125
|
-
if (props.showValue && props.value != null) {
|
|
126
|
-
var label = props.displayValueTemplate ? props.displayValueTemplate(props.value) : props.value + props.unit;
|
|
127
|
-
return label;
|
|
128
|
-
}
|
|
129
|
-
return null;
|
|
130
|
-
};
|
|
131
|
-
var createDeterminate = function createDeterminate() {
|
|
132
|
-
var label = createLabel();
|
|
133
|
-
var rootProps = mergeProps({
|
|
134
|
-
className: cx('root'),
|
|
135
|
-
style: props.style,
|
|
136
|
-
role: 'progressbar',
|
|
137
|
-
'aria-valuemin': '0',
|
|
138
|
-
'aria-valuenow': props.value,
|
|
139
|
-
'aria-valuemax': '100'
|
|
140
|
-
}, ProgressBarBase.getOtherProps(props), ptm('root'));
|
|
141
|
-
var valueProps = mergeProps({
|
|
142
|
-
className: cx('value'),
|
|
143
|
-
style: {
|
|
144
|
-
width: props.value + '%',
|
|
145
|
-
display: 'flex',
|
|
146
|
-
backgroundColor: props.color
|
|
147
|
-
}
|
|
148
|
-
}, ptm('value'));
|
|
149
|
-
var labelProps = mergeProps({
|
|
150
|
-
className: cx('label')
|
|
151
|
-
}, ptm('label'));
|
|
152
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
153
|
-
id: props.id,
|
|
154
|
-
ref: elementRef
|
|
155
|
-
}, rootProps), /*#__PURE__*/React.createElement("div", valueProps, label != null && /*#__PURE__*/React.createElement("div", labelProps, label)));
|
|
156
|
-
};
|
|
157
|
-
var createIndeterminate = function createIndeterminate() {
|
|
158
|
-
var rootProps = mergeProps({
|
|
159
|
-
className: classNames(props.className, cx('root')),
|
|
160
|
-
style: props.style,
|
|
161
|
-
role: 'progressbar'
|
|
162
|
-
}, ProgressBarBase.getOtherProps(props), ptm('root'));
|
|
163
|
-
var containerProps = mergeProps({
|
|
164
|
-
className: cx('container')
|
|
165
|
-
}, ptm('container'));
|
|
166
|
-
var valueProps = mergeProps({
|
|
167
|
-
className: cx('value'),
|
|
168
|
-
style: {
|
|
169
|
-
backgroundColor: props.color
|
|
170
|
-
}
|
|
171
|
-
}, ptm('value'));
|
|
172
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
173
|
-
id: props.id,
|
|
174
|
-
ref: elementRef
|
|
175
|
-
}, rootProps), /*#__PURE__*/React.createElement("div", containerProps, /*#__PURE__*/React.createElement("div", valueProps)));
|
|
176
|
-
};
|
|
177
|
-
React.useImperativeHandle(ref, function () {
|
|
178
|
-
return {
|
|
179
|
-
props: props,
|
|
180
|
-
getElement: function getElement() {
|
|
181
|
-
return elementRef.current;
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
});
|
|
185
|
-
if (props.mode === 'determinate') return createDeterminate();else if (props.mode === 'indeterminate') return createIndeterminate();else throw new Error(props.mode + " is not a valid mode for the ProgressBar. Valid values are 'determinate' and 'indeterminate'");
|
|
186
|
-
}));
|
|
187
|
-
ProgressBar.displayName = 'ProgressBar';
|
|
188
|
-
|
|
189
|
-
export { ProgressBar };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as n from"react";import{PrimeReactContext as e}from"primereact/api";import{ComponentBase as r,useHandleStyle as s}from"primereact/componentbase";import{mergeProps as t,classNames as i}from"primereact/utils";var o=r.extend({defaultProps:{__TYPE:"ProgressSpinner",id:null,style:null,className:null,strokeWidth:"2",fill:"none",animationDuration:"2s",children:void 0},css:{classes:{root:"p-progress-spinner",spinner:"p-progress-spinner-svg",circle:"p-progress-spinner-circle"},styles:"\n@layer primereact {\n .p-progress-spinner {\n position: relative;\n margin: 0 auto;\n width: 100px;\n height: 100px;\n display: inline-block;\n }\n \n .p-progress-spinner::before {\n content: '';\n display: block;\n padding-top: 100%;\n }\n \n .p-progress-spinner-svg {\n animation: p-progress-spinner-rotate 2s linear infinite;\n height: 100%;\n transform-origin: center center;\n width: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n margin: auto;\n }\n \n .p-progress-spinner-circle {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: 0;\n stroke: #d62d20;\n animation: p-progress-spinner-dash 1.5s ease-in-out infinite, p-progress-spinner-color 6s ease-in-out infinite;\n stroke-linecap: round;\n }\n}\n\n@keyframes p-progress-spinner-rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n@keyframes p-progress-spinner-dash {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35px;\n }\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124px;\n }\n}\n\n@keyframes p-progress-spinner-color {\n 100%,\n 0% {\n stroke: #d62d20;\n }\n 40% {\n stroke: #0057e7;\n }\n 66% {\n stroke: #008744;\n }\n 80%,\n 90% {\n stroke: #ffa700;\n }\n}\n",inlineStyles:{spinner:function(n){return{animationDuration:n.props.animationDuration}}}}}),a=n.memo(n.forwardRef((function(r,a){var p=n.useContext(e),l=o.getProps(r,p),c=n.useRef(null),m=o.setMetaData({props:l}),d=m.ptm,f=m.cx,g=m.sx;s(o.css.styles,m.isUnstyled,{name:"progressspinner"}),n.useImperativeHandle(a,(function(){return{props:l,getElement:function(){return c.current}}}));var u=t({id:l.id,ref:c,style:l.style,className:i(l.className,f("root")),role:"alert","aria-busy":!0},d("root")),k=t({className:f("spinner"),viewBox:"25 25 50 50",style:g("spinner")},d("spinner")),h=t({className:f("circle"),cx:"50",cy:"50",r:"20",fill:l.fill,strokeWidth:l.strokeWidth,strokeMiterlimit:"10"},d("circle"));return n.createElement("div",u,n.createElement("svg",k,n.createElement("circle",h)))})));a.displayName="ProgressSpinner";export{a as ProgressSpinner};
|
|
@@ -1,87 +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-progress-spinner',
|
|
9
|
-
spinner: 'p-progress-spinner-svg',
|
|
10
|
-
circle: 'p-progress-spinner-circle'
|
|
11
|
-
};
|
|
12
|
-
var styles = "\n@layer primereact {\n .p-progress-spinner {\n position: relative;\n margin: 0 auto;\n width: 100px;\n height: 100px;\n display: inline-block;\n }\n \n .p-progress-spinner::before {\n content: '';\n display: block;\n padding-top: 100%;\n }\n \n .p-progress-spinner-svg {\n animation: p-progress-spinner-rotate 2s linear infinite;\n height: 100%;\n transform-origin: center center;\n width: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n margin: auto;\n }\n \n .p-progress-spinner-circle {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: 0;\n stroke: #d62d20;\n animation: p-progress-spinner-dash 1.5s ease-in-out infinite, p-progress-spinner-color 6s ease-in-out infinite;\n stroke-linecap: round;\n }\n}\n\n@keyframes p-progress-spinner-rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n@keyframes p-progress-spinner-dash {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35px;\n }\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124px;\n }\n}\n\n@keyframes p-progress-spinner-color {\n 100%,\n 0% {\n stroke: #d62d20;\n }\n 40% {\n stroke: #0057e7;\n }\n 66% {\n stroke: #008744;\n }\n 80%,\n 90% {\n stroke: #ffa700;\n }\n}\n";
|
|
13
|
-
var inlineStyles = {
|
|
14
|
-
spinner: function spinner(_ref) {
|
|
15
|
-
var props = _ref.props;
|
|
16
|
-
return {
|
|
17
|
-
animationDuration: props.animationDuration
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
var ProgressSpinnerBase = ComponentBase.extend({
|
|
22
|
-
defaultProps: {
|
|
23
|
-
__TYPE: 'ProgressSpinner',
|
|
24
|
-
id: null,
|
|
25
|
-
style: null,
|
|
26
|
-
className: null,
|
|
27
|
-
strokeWidth: '2',
|
|
28
|
-
fill: 'none',
|
|
29
|
-
animationDuration: '2s',
|
|
30
|
-
children: undefined
|
|
31
|
-
},
|
|
32
|
-
css: {
|
|
33
|
-
classes: classes,
|
|
34
|
-
styles: styles,
|
|
35
|
-
inlineStyles: inlineStyles
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
var ProgressSpinner = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
40
|
-
var context = React.useContext(PrimeReactContext);
|
|
41
|
-
var props = ProgressSpinnerBase.getProps(inProps, context);
|
|
42
|
-
var elementRef = React.useRef(null);
|
|
43
|
-
var _ProgressSpinnerBase$ = ProgressSpinnerBase.setMetaData({
|
|
44
|
-
props: props
|
|
45
|
-
}),
|
|
46
|
-
ptm = _ProgressSpinnerBase$.ptm,
|
|
47
|
-
cx = _ProgressSpinnerBase$.cx,
|
|
48
|
-
sx = _ProgressSpinnerBase$.sx,
|
|
49
|
-
isUnstyled = _ProgressSpinnerBase$.isUnstyled;
|
|
50
|
-
useHandleStyle(ProgressSpinnerBase.css.styles, isUnstyled, {
|
|
51
|
-
name: 'progressspinner'
|
|
52
|
-
});
|
|
53
|
-
React.useImperativeHandle(ref, function () {
|
|
54
|
-
return {
|
|
55
|
-
props: props,
|
|
56
|
-
getElement: function getElement() {
|
|
57
|
-
return elementRef.current;
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
});
|
|
61
|
-
var rootProps = mergeProps({
|
|
62
|
-
id: props.id,
|
|
63
|
-
ref: elementRef,
|
|
64
|
-
style: props.style,
|
|
65
|
-
className: classNames(props.className, cx('root')),
|
|
66
|
-
role: 'alert',
|
|
67
|
-
'aria-busy': true
|
|
68
|
-
}, ptm('root'));
|
|
69
|
-
var spinnerProps = mergeProps({
|
|
70
|
-
className: cx('spinner'),
|
|
71
|
-
viewBox: '25 25 50 50',
|
|
72
|
-
style: sx('spinner')
|
|
73
|
-
}, ptm('spinner'));
|
|
74
|
-
var circleProps = mergeProps({
|
|
75
|
-
className: cx('circle'),
|
|
76
|
-
cx: '50',
|
|
77
|
-
cy: '50',
|
|
78
|
-
r: '20',
|
|
79
|
-
fill: props.fill,
|
|
80
|
-
strokeWidth: props.strokeWidth,
|
|
81
|
-
strokeMiterlimit: '10'
|
|
82
|
-
}, ptm('circle'));
|
|
83
|
-
return /*#__PURE__*/React.createElement("div", rootProps, /*#__PURE__*/React.createElement("svg", spinnerProps, /*#__PURE__*/React.createElement("circle", circleProps)));
|
|
84
|
-
}));
|
|
85
|
-
ProgressSpinner.displayName = 'ProgressSpinner';
|
|
86
|
-
|
|
87
|
-
export { ProgressSpinner };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{PrimeReactContext as t}from"primereact/api";import{useMountEffect as n}from"primereact/hooks";import{Tooltip as r}from"primereact/tooltip";import{classNames as o,ObjectUtils as i,DomHandler as a,mergeProps as c}from"primereact/utils";import{ComponentBase as u,useHandleStyle as l}from"primereact/componentbase";function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}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 f(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 d(e){var t=f(e,"string");return"symbol"===p(t)?t:String(t)}function b(e){if(Array.isArray(e))return e}function m(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}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 v(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 h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var g=u.extend({defaultProps:{__TYPE:"RadioButton",autoFocus:!1,checked:!1,className:null,disabled:!1,id:null,inputId:null,inputRef:null,name:null,onChange:null,onClick:null,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,value:null,children:void 0},css:{classes:{root:function(e){var t=e.props;return o("p-radiobutton p-component",{"p-radiobutton-checked":t.checked,"p-radiobutton-disabled":t.disabled,"p-radiobutton-focused":e.focusedState})},input:function(e){var t=e.props;return o("p-radiobutton-box",{"p-highlight":t.checked,"p-disabled":t.disabled,"p-focus":e.focusedState})},icon:"p-radiobutton-icon"},styles:"\n@layer primereact {\n .p-radiobutton {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n }\n \n .p-radiobutton-box {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-radiobutton-icon {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n transform: translateZ(0) scale(.1);\n border-radius: 50%;\n visibility: hidden;\n }\n \n .p-radiobutton-box.p-highlight .p-radiobutton-icon {\n transform: translateZ(0) scale(1.0, 1.0);\n visibility: visible;\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 k(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,o,i;r=e,i=n[t],(o=d(o=t))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 j=e.memo(e.forwardRef((function(u,p){var f,d,y=e.useContext(t),O=g.getProps(u,y),j=e.useState(!1),P=(d=2,b(f=j)||m(f,d)||v(f,d)||h()),S=P[0],E=P[1],w=e.useRef(null),x=e.useRef(O.inputRef),C=g.setMetaData({props:O,state:{focused:S}}),I=C.ptm,R=C.cx;l(g.css.styles,C.isUnstyled,{name:"radiobutton",styled:!0});var D=function(e){N(e)},N=function(e){if(!O.disabled&&(O.onChange||O.onClick)){var t=O.checked,n=e.target instanceof HTMLDivElement,r=e.target===x.current&&e.target.checked!==t,o=n&&a.hasClass(w.current,"p-radiobutton-checked")===t&&!t;if(r||o){var i=!t,c={originalEvent:e,value:O.value,checked:i,stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{type:"radio",name:O.name,id:O.id,value:O.value,checked:i}};if(O.onClick&&O.onClick(c),e.defaultPrevented)return;O.onChange&&O.onChange(c),o&&(x.current.checked=i)}a.focus(x.current),e.preventDefault()}};e.useEffect((function(){x.current&&(x.current.checked=O.checked)}),[O.checked]),e.useEffect((function(){i.combinedRefs(x,O.inputRef)}),[x,O.inputRef]),n((function(){O.autoFocus&&a.focus(x.current,O.autoFocus)})),e.useImperativeHandle(p,(function(){return{props:O,select:D,focus:function(){return a.focus(x.current)},getElement:function(){return w.current},getInput:function(){return x.current}}}));var A=i.isNotEmpty(O.tooltip),F=g.getOtherProps(O),T=i.reduceKeys(F,a.ARIA_PROPS),q=c({className:o(O.className,R("root",{focusedState:S})),style:O.style,onClick:N},g.getOtherProps(O),I("root")),B=c({className:"p-hidden-accessible"},I("hiddenInputWrapper")),M=c(k({type:"radio",name:O.name,defaultChecked:O.checked,onFocus:function(){E(!0)},onBlur:function(){E(!1)},onKeyDown:function(e){"Space"!==e.code&&" "!==e.key||N(e)},disabled:O.disabled,required:O.required,tabIndex:O.tabIndex},T),I("hiddenInput")),_=c({className:R("input",{focusedState:S})},I("input")),H=c({className:R("icon")},I("icon"));return e.createElement(e.Fragment,null,e.createElement("div",s({id:O.id,ref:w},q),e.createElement("div",B,e.createElement("input",s({id:O.inputId,ref:x},M))),e.createElement("div",_,e.createElement("div",H))),A&&e.createElement(r,s({target:w,content:O.tooltip},O.tooltipOptions,{pt:I("tooltip")})))})));j.displayName="RadioButton";export{j as RadioButton};
|
|
@@ -1,328 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { PrimeReactContext } from 'primereact/api';
|
|
4
|
-
import { useMountEffect } from 'primereact/hooks';
|
|
5
|
-
import { Tooltip } from 'primereact/tooltip';
|
|
6
|
-
import { classNames, ObjectUtils, DomHandler, mergeProps } from 'primereact/utils';
|
|
7
|
-
import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
|
|
8
|
-
|
|
9
|
-
function _extends() {
|
|
10
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
11
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
12
|
-
var source = arguments[i];
|
|
13
|
-
for (var key in source) {
|
|
14
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
15
|
-
target[key] = source[key];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
return _extends.apply(this, arguments);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function _typeof(o) {
|
|
25
|
-
"@babel/helpers - typeof";
|
|
26
|
-
|
|
27
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
28
|
-
return typeof o;
|
|
29
|
-
} : function (o) {
|
|
30
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
31
|
-
}, _typeof(o);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function _toPrimitive(input, hint) {
|
|
35
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
36
|
-
var prim = input[Symbol.toPrimitive];
|
|
37
|
-
if (prim !== undefined) {
|
|
38
|
-
var res = prim.call(input, hint || "default");
|
|
39
|
-
if (_typeof(res) !== "object") return res;
|
|
40
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
41
|
-
}
|
|
42
|
-
return (hint === "string" ? String : Number)(input);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function _toPropertyKey(arg) {
|
|
46
|
-
var key = _toPrimitive(arg, "string");
|
|
47
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function _defineProperty(obj, key, value) {
|
|
51
|
-
key = _toPropertyKey(key);
|
|
52
|
-
if (key in obj) {
|
|
53
|
-
Object.defineProperty(obj, key, {
|
|
54
|
-
value: value,
|
|
55
|
-
enumerable: true,
|
|
56
|
-
configurable: true,
|
|
57
|
-
writable: true
|
|
58
|
-
});
|
|
59
|
-
} else {
|
|
60
|
-
obj[key] = value;
|
|
61
|
-
}
|
|
62
|
-
return obj;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function _arrayWithHoles(arr) {
|
|
66
|
-
if (Array.isArray(arr)) return arr;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function _iterableToArrayLimit(r, l) {
|
|
70
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
71
|
-
if (null != t) {
|
|
72
|
-
var e,
|
|
73
|
-
n,
|
|
74
|
-
i,
|
|
75
|
-
u,
|
|
76
|
-
a = [],
|
|
77
|
-
f = !0,
|
|
78
|
-
o = !1;
|
|
79
|
-
try {
|
|
80
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
81
|
-
if (Object(t) !== t) return;
|
|
82
|
-
f = !1;
|
|
83
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
84
|
-
} catch (r) {
|
|
85
|
-
o = !0, n = r;
|
|
86
|
-
} finally {
|
|
87
|
-
try {
|
|
88
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
89
|
-
} finally {
|
|
90
|
-
if (o) throw n;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return a;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function _arrayLikeToArray(arr, len) {
|
|
98
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
99
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
100
|
-
return arr2;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
104
|
-
if (!o) return;
|
|
105
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
106
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
107
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
108
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
109
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function _nonIterableRest() {
|
|
113
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function _slicedToArray(arr, i) {
|
|
117
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
var classes = {
|
|
121
|
-
root: function root(_ref) {
|
|
122
|
-
var props = _ref.props,
|
|
123
|
-
focusedState = _ref.focusedState;
|
|
124
|
-
return classNames('p-radiobutton p-component', {
|
|
125
|
-
'p-radiobutton-checked': props.checked,
|
|
126
|
-
'p-radiobutton-disabled': props.disabled,
|
|
127
|
-
'p-radiobutton-focused': focusedState
|
|
128
|
-
});
|
|
129
|
-
},
|
|
130
|
-
input: function input(_ref2) {
|
|
131
|
-
var props = _ref2.props,
|
|
132
|
-
focusedState = _ref2.focusedState;
|
|
133
|
-
return classNames('p-radiobutton-box', {
|
|
134
|
-
'p-highlight': props.checked,
|
|
135
|
-
'p-disabled': props.disabled,
|
|
136
|
-
'p-focus': focusedState
|
|
137
|
-
});
|
|
138
|
-
},
|
|
139
|
-
icon: 'p-radiobutton-icon'
|
|
140
|
-
};
|
|
141
|
-
var styles = "\n@layer primereact {\n .p-radiobutton {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n }\n \n .p-radiobutton-box {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-radiobutton-icon {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n transform: translateZ(0) scale(.1);\n border-radius: 50%;\n visibility: hidden;\n }\n \n .p-radiobutton-box.p-highlight .p-radiobutton-icon {\n transform: translateZ(0) scale(1.0, 1.0);\n visibility: visible;\n }\n}\n";
|
|
142
|
-
var RadioButtonBase = ComponentBase.extend({
|
|
143
|
-
defaultProps: {
|
|
144
|
-
__TYPE: 'RadioButton',
|
|
145
|
-
autoFocus: false,
|
|
146
|
-
checked: false,
|
|
147
|
-
className: null,
|
|
148
|
-
disabled: false,
|
|
149
|
-
id: null,
|
|
150
|
-
inputId: null,
|
|
151
|
-
inputRef: null,
|
|
152
|
-
name: null,
|
|
153
|
-
onChange: null,
|
|
154
|
-
onClick: null,
|
|
155
|
-
required: false,
|
|
156
|
-
style: null,
|
|
157
|
-
tabIndex: null,
|
|
158
|
-
tooltip: null,
|
|
159
|
-
tooltipOptions: null,
|
|
160
|
-
value: null,
|
|
161
|
-
children: undefined
|
|
162
|
-
},
|
|
163
|
-
css: {
|
|
164
|
-
classes: classes,
|
|
165
|
-
styles: styles
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
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; }
|
|
170
|
-
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; }
|
|
171
|
-
var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
172
|
-
var context = React.useContext(PrimeReactContext);
|
|
173
|
-
var props = RadioButtonBase.getProps(inProps, context);
|
|
174
|
-
var _React$useState = React.useState(false),
|
|
175
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
176
|
-
focusedState = _React$useState2[0],
|
|
177
|
-
setFocusedState = _React$useState2[1];
|
|
178
|
-
var elementRef = React.useRef(null);
|
|
179
|
-
var inputRef = React.useRef(props.inputRef);
|
|
180
|
-
var _RadioButtonBase$setM = RadioButtonBase.setMetaData({
|
|
181
|
-
props: props,
|
|
182
|
-
state: {
|
|
183
|
-
focused: focusedState
|
|
184
|
-
}
|
|
185
|
-
}),
|
|
186
|
-
ptm = _RadioButtonBase$setM.ptm,
|
|
187
|
-
cx = _RadioButtonBase$setM.cx,
|
|
188
|
-
isUnstyled = _RadioButtonBase$setM.isUnstyled;
|
|
189
|
-
useHandleStyle(RadioButtonBase.css.styles, isUnstyled, {
|
|
190
|
-
name: 'radiobutton',
|
|
191
|
-
styled: true
|
|
192
|
-
});
|
|
193
|
-
var select = function select(event) {
|
|
194
|
-
onClick(event);
|
|
195
|
-
};
|
|
196
|
-
var onClick = function onClick(event) {
|
|
197
|
-
if (props.disabled) {
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
if (props.onChange || props.onClick) {
|
|
201
|
-
var checked = props.checked;
|
|
202
|
-
var radioClicked = event.target instanceof HTMLDivElement;
|
|
203
|
-
var inputClicked = event.target === inputRef.current;
|
|
204
|
-
var isInputToggled = inputClicked && event.target.checked !== checked;
|
|
205
|
-
var isRadioToggled = radioClicked && (DomHandler.hasClass(elementRef.current, 'p-radiobutton-checked') === checked ? !checked : false);
|
|
206
|
-
if (isInputToggled || isRadioToggled) {
|
|
207
|
-
var value = !checked;
|
|
208
|
-
var eventData = {
|
|
209
|
-
originalEvent: event,
|
|
210
|
-
value: props.value,
|
|
211
|
-
checked: value,
|
|
212
|
-
stopPropagation: function stopPropagation() {
|
|
213
|
-
event.stopPropagation();
|
|
214
|
-
},
|
|
215
|
-
preventDefault: function preventDefault() {
|
|
216
|
-
event.preventDefault();
|
|
217
|
-
},
|
|
218
|
-
target: {
|
|
219
|
-
type: 'radio',
|
|
220
|
-
name: props.name,
|
|
221
|
-
id: props.id,
|
|
222
|
-
value: props.value,
|
|
223
|
-
checked: value
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
props.onClick && props.onClick(eventData);
|
|
227
|
-
|
|
228
|
-
// do not continue if the user defined click wants to prevent
|
|
229
|
-
if (event.defaultPrevented) {
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
props.onChange && props.onChange(eventData);
|
|
233
|
-
if (isRadioToggled) {
|
|
234
|
-
inputRef.current.checked = value;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
DomHandler.focus(inputRef.current);
|
|
238
|
-
event.preventDefault();
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
var onFocus = function onFocus() {
|
|
242
|
-
setFocusedState(true);
|
|
243
|
-
};
|
|
244
|
-
var onBlur = function onBlur() {
|
|
245
|
-
setFocusedState(false);
|
|
246
|
-
};
|
|
247
|
-
var onKeyDown = function onKeyDown(event) {
|
|
248
|
-
if (event.code === 'Space' || event.key === ' ') {
|
|
249
|
-
// event.key is for Android support
|
|
250
|
-
onClick(event);
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
React.useEffect(function () {
|
|
254
|
-
if (inputRef.current) {
|
|
255
|
-
inputRef.current.checked = props.checked;
|
|
256
|
-
}
|
|
257
|
-
}, [props.checked]);
|
|
258
|
-
React.useEffect(function () {
|
|
259
|
-
ObjectUtils.combinedRefs(inputRef, props.inputRef);
|
|
260
|
-
}, [inputRef, props.inputRef]);
|
|
261
|
-
useMountEffect(function () {
|
|
262
|
-
if (props.autoFocus) {
|
|
263
|
-
DomHandler.focus(inputRef.current, props.autoFocus);
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
React.useImperativeHandle(ref, function () {
|
|
267
|
-
return {
|
|
268
|
-
props: props,
|
|
269
|
-
select: select,
|
|
270
|
-
focus: function focus() {
|
|
271
|
-
return DomHandler.focus(inputRef.current);
|
|
272
|
-
},
|
|
273
|
-
getElement: function getElement() {
|
|
274
|
-
return elementRef.current;
|
|
275
|
-
},
|
|
276
|
-
getInput: function getInput() {
|
|
277
|
-
return inputRef.current;
|
|
278
|
-
}
|
|
279
|
-
};
|
|
280
|
-
});
|
|
281
|
-
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
282
|
-
var otherProps = RadioButtonBase.getOtherProps(props);
|
|
283
|
-
var ariaProps = ObjectUtils.reduceKeys(otherProps, DomHandler.ARIA_PROPS);
|
|
284
|
-
var rootProps = mergeProps({
|
|
285
|
-
className: classNames(props.className, cx('root', {
|
|
286
|
-
focusedState: focusedState
|
|
287
|
-
})),
|
|
288
|
-
style: props.style,
|
|
289
|
-
onClick: onClick
|
|
290
|
-
}, RadioButtonBase.getOtherProps(props), ptm('root'));
|
|
291
|
-
var hiddenInputWrapperProps = mergeProps({
|
|
292
|
-
className: 'p-hidden-accessible'
|
|
293
|
-
}, ptm('hiddenInputWrapper'));
|
|
294
|
-
var hiddenInputProps = mergeProps(_objectSpread({
|
|
295
|
-
type: 'radio',
|
|
296
|
-
name: props.name,
|
|
297
|
-
defaultChecked: props.checked,
|
|
298
|
-
onFocus: onFocus,
|
|
299
|
-
onBlur: onBlur,
|
|
300
|
-
onKeyDown: onKeyDown,
|
|
301
|
-
disabled: props.disabled,
|
|
302
|
-
required: props.required,
|
|
303
|
-
tabIndex: props.tabIndex
|
|
304
|
-
}, ariaProps), ptm('hiddenInput'));
|
|
305
|
-
var inputProps = mergeProps({
|
|
306
|
-
className: cx('input', {
|
|
307
|
-
focusedState: focusedState
|
|
308
|
-
})
|
|
309
|
-
}, ptm('input'));
|
|
310
|
-
var iconProps = mergeProps({
|
|
311
|
-
className: cx('icon')
|
|
312
|
-
}, ptm('icon'));
|
|
313
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({
|
|
314
|
-
id: props.id,
|
|
315
|
-
ref: elementRef
|
|
316
|
-
}, rootProps), /*#__PURE__*/React.createElement("div", hiddenInputWrapperProps, /*#__PURE__*/React.createElement("input", _extends({
|
|
317
|
-
id: props.inputId,
|
|
318
|
-
ref: inputRef
|
|
319
|
-
}, hiddenInputProps))), /*#__PURE__*/React.createElement("div", inputProps, /*#__PURE__*/React.createElement("div", iconProps))), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
320
|
-
target: elementRef,
|
|
321
|
-
content: props.tooltip
|
|
322
|
-
}, props.tooltipOptions, {
|
|
323
|
-
pt: ptm('tooltip')
|
|
324
|
-
})));
|
|
325
|
-
}));
|
|
326
|
-
RadioButton.displayName = 'RadioButton';
|
|
327
|
-
|
|
328
|
-
export { RadioButton };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{PrimeReactContext as n}from"primereact/api";import{BanIcon as t}from"primereact/icons/ban";import{StarIcon as r}from"primereact/icons/star";import{StarFillIcon as o}from"primereact/icons/starfill";import{Tooltip as a}from"primereact/tooltip";import{classNames as i,ObjectUtils as l,mergeProps as c,IconUtils as p}from"primereact/utils";import{ComponentBase as u,useHandleStyle as s}from"primereact/componentbase";function m(){return m=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},m.apply(this,arguments)}function f(e){return f="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},f(e)}function y(e,n){if("object"!==f(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function g(e){var n=y(e,"string");return"symbol"===f(n)?n:String(n)}var v=u.extend({defaultProps:{__TYPE:"Rating",id:null,value:null,disabled:!1,readOnly:!1,stars:5,cancel:!0,style:null,className:null,tooltip:null,tooltipOptions:null,onChange:null,onIcon:null,offIcon:null,cancelIcon:null,cancelIconProps:null,onIconProps:null,offIconProps:null,children:void 0},css:{classes:{onIcon:"p-rating-icon",item:function(e){return i("p-rating-item",{"p-rating-item-active":e.active})},cancelIcon:"p-rating-icon p-rating-cancel",cancelItem:"p-rating-item p-rating-cancel-item",root:function(e){var n=e.props;return i("p-rating",{"p-disabled":n.disabled,"p-readonly":n.readOnly},n.className)}},styles:"\n@layer primereact {\n .p-rating {\n display: flex;\n align-items: center;\n }\n \n .p-rating-item {\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n }\n \n .p-rating.p-readonly .p-rating-item {\n cursor: default;\n }\n}\n"}});function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?b(Object(t),!0).forEach((function(n){var r,o,a;r=e,a=t[n],(o=g(o=n))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var O=e.memo(e.forwardRef((function(i,u){var f=e.useContext(n),y=v.getProps(i,f),g=e.useRef(null),b=v.setMetaData({props:y}),O=b.ptm,I=b.cx;s(v.css.styles,b.isUnstyled,{name:"rating"});var P=function(e,n){return O(n,{context:{active:e<=y.value}})},E=!y.disabled&&!y.readOnly,j=E?0:null,h=function(e,n){E&&y.onChange&&y.onChange({originalEvent:e,value:n,stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{name:y.name,id:y.id,value:n}}),e.preventDefault()},w=function(e){E&&y.onChange&&y.onChange({originalEvent:e,value:null,stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{name:y.name,id:y.id,value:null}}),e.preventDefault()},D=function(e,n){"Enter"===e.key&&h(e,n)},S=function(e){"Enter"===e.key&&w(e)};e.useImperativeHandle(u,(function(){return{props:y,getElement:function(){return g.current}}}));var N=l.isNotEmpty(y.tooltip),x=c({ref:g,id:y.id,className:I("root"),style:y.style},v.getOtherProps(y),O("root")),C=function(){if(y.cancel){var n=c({className:I("cancelIcon")},O("cancelIcon")),r=p.getJSXIcon(y.cancelIcon||e.createElement(t,n),d(d({},n),y.cancelIconProps),{props:y}),o=c({className:I("cancelItem"),onClick:w,tabIndex:j,onKeyDown:S},O("cancelItem"));return e.createElement("div",o,r)}return null}(),k=Array.from({length:y.stars},(function(e,n){return n+1})).map((function(n){var t=n<=y.value,a=c({className:I("onIcon")},P(y.value,"onIcon")),i=c({className:I("onIcon")},P(y.value,"offIcon")),l=p.getJSXIcon((t?{type:y.onIcon||e.createElement(o,a)}:{type:y.offIcon||e.createElement(r,i)}).type,d({},t?a:i),{props:y}),u=c({key:n,className:I("item",{active:t}),tabIndex:j,onClick:function(e){return h(e,n)},onKeyDown:function(e){return D(e,n)}},P(y.value,"item"));return e.createElement("div",m({key:n},u),l)}));return e.createElement(e.Fragment,null,e.createElement("div",x,C,k),N&&e.createElement(a,m({target:g,content:y.tooltip},y.tooltipOptions,{pt:O("tooltip")})))})));O.displayName="Rating";export{O as Rating};
|