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
package/tag/tag.esm.mjs
DELETED
|
@@ -1,116 +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, 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
|
-
var classes = {
|
|
49
|
-
value: 'p-tag-value',
|
|
50
|
-
icon: 'p-tag-icon',
|
|
51
|
-
root: function root(_ref) {
|
|
52
|
-
var _classNames;
|
|
53
|
-
var props = _ref.props;
|
|
54
|
-
return classNames('p-tag p-component', (_classNames = {}, _defineProperty(_classNames, "p-tag-".concat(props.severity), props.severity !== null), _defineProperty(_classNames, 'p-tag-rounded', props.rounded), _classNames));
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
var styles = "\n@layer primereact {\n .p-tag {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-tag-icon,\n .p-tag-value,\n .p-tag-icon.pi {\n line-height: 1.5;\n }\n \n .p-tag.p-tag-rounded {\n border-radius: 10rem;\n }\n}\n";
|
|
58
|
-
var TagBase = ComponentBase.extend({
|
|
59
|
-
defaultProps: {
|
|
60
|
-
__TYPE: 'Tag',
|
|
61
|
-
value: null,
|
|
62
|
-
severity: null,
|
|
63
|
-
rounded: false,
|
|
64
|
-
icon: null,
|
|
65
|
-
style: null,
|
|
66
|
-
className: null,
|
|
67
|
-
children: undefined
|
|
68
|
-
},
|
|
69
|
-
css: {
|
|
70
|
-
classes: classes,
|
|
71
|
-
styles: styles
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
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; }
|
|
76
|
-
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; }
|
|
77
|
-
var Tag = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
78
|
-
var context = React.useContext(PrimeReactContext);
|
|
79
|
-
var props = TagBase.getProps(inProps, context);
|
|
80
|
-
var _TagBase$setMetaData = TagBase.setMetaData({
|
|
81
|
-
props: props
|
|
82
|
-
}),
|
|
83
|
-
ptm = _TagBase$setMetaData.ptm,
|
|
84
|
-
cx = _TagBase$setMetaData.cx,
|
|
85
|
-
isUnstyled = _TagBase$setMetaData.isUnstyled;
|
|
86
|
-
useHandleStyle(TagBase.css.styles, isUnstyled, {
|
|
87
|
-
name: 'tag'
|
|
88
|
-
});
|
|
89
|
-
var elementRef = React.useRef(null);
|
|
90
|
-
var iconProps = mergeProps({
|
|
91
|
-
className: cx('icon')
|
|
92
|
-
}, ptm('icon'));
|
|
93
|
-
var icon = IconUtils.getJSXIcon(props.icon, _objectSpread({}, iconProps), {
|
|
94
|
-
props: props
|
|
95
|
-
});
|
|
96
|
-
React.useImperativeHandle(ref, function () {
|
|
97
|
-
return {
|
|
98
|
-
props: props,
|
|
99
|
-
getElement: function getElement() {
|
|
100
|
-
return elementRef.current;
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
});
|
|
104
|
-
var rootProps = mergeProps({
|
|
105
|
-
ref: elementRef,
|
|
106
|
-
className: classNames(props.className, cx('root')),
|
|
107
|
-
style: props.style
|
|
108
|
-
}, TagBase.getOtherProps(props), ptm('root'));
|
|
109
|
-
var valueProps = mergeProps({
|
|
110
|
-
className: cx('value')
|
|
111
|
-
}, ptm('value'));
|
|
112
|
-
return /*#__PURE__*/React.createElement("span", rootProps, icon, /*#__PURE__*/React.createElement("span", valueProps, props.value), /*#__PURE__*/React.createElement("span", null, props.children));
|
|
113
|
-
});
|
|
114
|
-
Tag.displayName = 'Tag';
|
|
115
|
-
|
|
116
|
-
export { Tag };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{PrimeReactContext as n}from"primereact/api";import{ComponentBase as t,useHandleStyle as r}from"primereact/componentbase";import{TerminalService as o}from"primereact/terminalservice";import{mergeProps as a,DomHandler as l,classNames as i}from"primereact/utils";function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function s(e){if(Array.isArray(e))return c(e)}function m(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function u(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return s(e)||m(e)||u(e)||p()}function d(e){if(Array.isArray(e))return e}function y(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,a,l,i=[],c=!0,s=!1;try{if(a=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=a.call(t)).done)&&(i.push(r.value),i.length!==n);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(s)throw o}}return i}}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,n){return d(e)||y(e,n)||u(e,n)||v()}var g=t.extend({defaultProps:{__TYPE:"Terminal",id:null,style:null,className:null,welcomeMessage:null,prompt:null,children:void 0},css:{classes:{root:"p-terminal p-component",content:"p-terminal-content",container:"p-terminal-prompt-container",command:"p-terminal-command",commandText:"p-terminal-input",prompt:"p-terminal-prompt",response:"p-terminal-response"},styles:"\n@layer primereact {\n .p-terminal {\n height: 18rem;\n overflow: auto;\n }\n \n .p-terminal-prompt-container {\n display: flex;\n align-items: center;\n }\n \n .p-terminal-input {\n flex: 1 1 auto;\n border: 0 none;\n background-color: transparent;\n color: inherit;\n padding: 0;\n outline: 0 none;\n }\n \n .p-terminal-input::-ms-clear {\n display: none;\n } \n}\n"}}),b=e.memo(e.forwardRef((function(t,c){var s=e.useContext(n),m=g.getProps(t,s),u=h(e.useState(""),2),p=u[0],d=u[1],y=h(e.useState([]),2),v=y[0],b=y[1],E=h(e.useState(0),2),w=E[0],x=E[1],S=h(e.useState(""),2),N=S[0],T=S[1],A=e.useRef(null),j=e.useRef(null),C=e.useRef(!1),I=g.setMetaData({props:m,state:{commandText:p,commands:v}}),M=I.ptm,k=I.cx;r(g.css.styles,I.isUnstyled,{name:"terminal"});var O=a({className:k("prompt")},M("prompt")),P=function(e){d(e.target.value)},R=function(e){switch(e.which||e.keyCode){case 38:if(v&&v.length){var n=w-1<0?v.length-1:w-1,t=v[n];x(n),d(t.text)}break;case 13:if(p){var r=f(v);r.push({text:p}),x((function(e){return e+1})),d(""),b(r),T(p),C.current=!0}}};e.useImperativeHandle(c,(function(){return{props:m,focus:function(){return l.focus(j.current)},getElement:function(){return A.current}}})),e.useEffect((function(){var e=function(e){if(v&&v.length>0){var n=f(v);n[n.length-1].response=e,b(n)}},n=function(){b([]),x(0)};return o.on("response",e),o.on("clear",n),function(){o.off("response",e),o.off("clear",n)}}),[v]),e.useEffect((function(){C.current&&(o.emit("command",N),C.current=!1),A.current.scrollTop=A.current.scrollHeight}));var _,D,H=function(n,t){var r=n.text,o=n.response,l=a({key:r+"_"+t},M("commands")),i=a({className:k("command")},M("command")),c=a({className:k("response")},M("response"));return e.createElement("div",l,e.createElement("span",O,m.prompt," "),e.createElement("span",i,r),e.createElement("div",c,o))},U=function(){if(m.welcomeMessage){var n=a(M("welcomeMessage"));return e.createElement("div",n,m.welcomeMessage)}return null}(),K=function(){var n=v.map(H),t=a({className:k("content")},M("content"));return e.createElement("div",t,n)}(),Y=(_=a({className:k("container")},M("container")),D=a({ref:j,value:p,type:"text",className:k("commandText"),autoComplete:"off",onChange:function(e){return P(e)},onKeyDown:function(e){return R(e)}},M("commandText")),e.createElement("div",_,e.createElement("span",O,m.prompt," "),e.createElement("input",D))),$=a({id:m.id,ref:A,className:i(m.className,k("root")),style:m.style,onClick:function(){l.focus(j.current)}},g.getOtherProps(m),M("root"));return e.createElement("div",$,U,K,Y)})));b.displayName="Terminal";export{b as Terminal};
|
|
@@ -1,279 +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 { TerminalService } from 'primereact/terminalservice';
|
|
6
|
-
import { mergeProps, DomHandler, classNames } from 'primereact/utils';
|
|
7
|
-
|
|
8
|
-
function _arrayLikeToArray(arr, len) {
|
|
9
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
10
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
11
|
-
return arr2;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function _arrayWithoutHoles(arr) {
|
|
15
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function _iterableToArray(iter) {
|
|
19
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
23
|
-
if (!o) return;
|
|
24
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
25
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
26
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
27
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
28
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function _nonIterableSpread() {
|
|
32
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function _toConsumableArray(arr) {
|
|
36
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function _arrayWithHoles(arr) {
|
|
40
|
-
if (Array.isArray(arr)) return arr;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function _iterableToArrayLimit(r, l) {
|
|
44
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
45
|
-
if (null != t) {
|
|
46
|
-
var e,
|
|
47
|
-
n,
|
|
48
|
-
i,
|
|
49
|
-
u,
|
|
50
|
-
a = [],
|
|
51
|
-
f = !0,
|
|
52
|
-
o = !1;
|
|
53
|
-
try {
|
|
54
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
55
|
-
if (Object(t) !== t) return;
|
|
56
|
-
f = !1;
|
|
57
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
58
|
-
} catch (r) {
|
|
59
|
-
o = !0, n = r;
|
|
60
|
-
} finally {
|
|
61
|
-
try {
|
|
62
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
63
|
-
} finally {
|
|
64
|
-
if (o) throw n;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return a;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function _nonIterableRest() {
|
|
72
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function _slicedToArray(arr, i) {
|
|
76
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
var classes = {
|
|
80
|
-
root: 'p-terminal p-component',
|
|
81
|
-
content: 'p-terminal-content',
|
|
82
|
-
container: 'p-terminal-prompt-container',
|
|
83
|
-
command: 'p-terminal-command',
|
|
84
|
-
commandText: 'p-terminal-input',
|
|
85
|
-
prompt: 'p-terminal-prompt',
|
|
86
|
-
response: 'p-terminal-response'
|
|
87
|
-
};
|
|
88
|
-
var styles = "\n@layer primereact {\n .p-terminal {\n height: 18rem;\n overflow: auto;\n }\n \n .p-terminal-prompt-container {\n display: flex;\n align-items: center;\n }\n \n .p-terminal-input {\n flex: 1 1 auto;\n border: 0 none;\n background-color: transparent;\n color: inherit;\n padding: 0;\n outline: 0 none;\n }\n \n .p-terminal-input::-ms-clear {\n display: none;\n } \n}\n";
|
|
89
|
-
var TerminalBase = ComponentBase.extend({
|
|
90
|
-
defaultProps: {
|
|
91
|
-
__TYPE: 'Terminal',
|
|
92
|
-
id: null,
|
|
93
|
-
style: null,
|
|
94
|
-
className: null,
|
|
95
|
-
welcomeMessage: null,
|
|
96
|
-
prompt: null,
|
|
97
|
-
children: undefined
|
|
98
|
-
},
|
|
99
|
-
css: {
|
|
100
|
-
classes: classes,
|
|
101
|
-
styles: styles
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
var Terminal = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
106
|
-
var context = React.useContext(PrimeReactContext);
|
|
107
|
-
var props = TerminalBase.getProps(inProps, context);
|
|
108
|
-
var _React$useState = React.useState(''),
|
|
109
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
110
|
-
commandTextState = _React$useState2[0],
|
|
111
|
-
setCommandTextState = _React$useState2[1];
|
|
112
|
-
var _React$useState3 = React.useState([]),
|
|
113
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
114
|
-
commandsState = _React$useState4[0],
|
|
115
|
-
setCommandsState = _React$useState4[1];
|
|
116
|
-
var _React$useState5 = React.useState(0),
|
|
117
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
118
|
-
indexState = _React$useState6[0],
|
|
119
|
-
setIndexState = _React$useState6[1];
|
|
120
|
-
var _React$useState7 = React.useState(''),
|
|
121
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
122
|
-
emittedTextState = _React$useState8[0],
|
|
123
|
-
setEmittedTextState = _React$useState8[1];
|
|
124
|
-
var elementRef = React.useRef(null);
|
|
125
|
-
var inputRef = React.useRef(null);
|
|
126
|
-
var isEmitted = React.useRef(false);
|
|
127
|
-
var _TerminalBase$setMeta = TerminalBase.setMetaData({
|
|
128
|
-
props: props,
|
|
129
|
-
state: {
|
|
130
|
-
commandText: commandTextState,
|
|
131
|
-
commands: commandsState
|
|
132
|
-
}
|
|
133
|
-
}),
|
|
134
|
-
ptm = _TerminalBase$setMeta.ptm,
|
|
135
|
-
cx = _TerminalBase$setMeta.cx,
|
|
136
|
-
isUnstyled = _TerminalBase$setMeta.isUnstyled;
|
|
137
|
-
useHandleStyle(TerminalBase.css.styles, isUnstyled, {
|
|
138
|
-
name: 'terminal'
|
|
139
|
-
});
|
|
140
|
-
var promptProps = mergeProps({
|
|
141
|
-
className: cx('prompt')
|
|
142
|
-
}, ptm('prompt'));
|
|
143
|
-
var onClick = function onClick() {
|
|
144
|
-
DomHandler.focus(inputRef.current);
|
|
145
|
-
};
|
|
146
|
-
var onInputChange = function onInputChange(e) {
|
|
147
|
-
setCommandTextState(e.target.value);
|
|
148
|
-
};
|
|
149
|
-
var onInputKeyDown = function onInputKeyDown(e) {
|
|
150
|
-
var code = e.which || e.keyCode;
|
|
151
|
-
switch (code) {
|
|
152
|
-
//up
|
|
153
|
-
case 38:
|
|
154
|
-
if (commandsState && commandsState.length) {
|
|
155
|
-
var prevIndex = indexState - 1 < 0 ? commandsState.length - 1 : indexState - 1;
|
|
156
|
-
var command = commandsState[prevIndex];
|
|
157
|
-
setIndexState(prevIndex);
|
|
158
|
-
setCommandTextState(command.text);
|
|
159
|
-
}
|
|
160
|
-
break;
|
|
161
|
-
|
|
162
|
-
//enter
|
|
163
|
-
case 13:
|
|
164
|
-
if (!!commandTextState) {
|
|
165
|
-
var newCommands = _toConsumableArray(commandsState);
|
|
166
|
-
newCommands.push({
|
|
167
|
-
text: commandTextState
|
|
168
|
-
});
|
|
169
|
-
setIndexState(function (prevIndex) {
|
|
170
|
-
return prevIndex + 1;
|
|
171
|
-
});
|
|
172
|
-
setCommandTextState('');
|
|
173
|
-
setCommandsState(newCommands);
|
|
174
|
-
setEmittedTextState(commandTextState);
|
|
175
|
-
isEmitted.current = true;
|
|
176
|
-
}
|
|
177
|
-
break;
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
React.useImperativeHandle(ref, function () {
|
|
181
|
-
return {
|
|
182
|
-
props: props,
|
|
183
|
-
focus: function focus() {
|
|
184
|
-
return DomHandler.focus(inputRef.current);
|
|
185
|
-
},
|
|
186
|
-
getElement: function getElement() {
|
|
187
|
-
return elementRef.current;
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
});
|
|
191
|
-
React.useEffect(function () {
|
|
192
|
-
var response = function response(res) {
|
|
193
|
-
if (commandsState && commandsState.length > 0) {
|
|
194
|
-
var commands = _toConsumableArray(commandsState);
|
|
195
|
-
commands[commands.length - 1].response = res;
|
|
196
|
-
setCommandsState(commands);
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
var clear = function clear() {
|
|
200
|
-
setCommandsState([]);
|
|
201
|
-
setIndexState(0);
|
|
202
|
-
};
|
|
203
|
-
TerminalService.on('response', response);
|
|
204
|
-
TerminalService.on('clear', clear);
|
|
205
|
-
return function () {
|
|
206
|
-
TerminalService.off('response', response);
|
|
207
|
-
TerminalService.off('clear', clear);
|
|
208
|
-
};
|
|
209
|
-
}, [commandsState]);
|
|
210
|
-
React.useEffect(function () {
|
|
211
|
-
if (isEmitted.current) {
|
|
212
|
-
TerminalService.emit('command', emittedTextState);
|
|
213
|
-
isEmitted.current = false;
|
|
214
|
-
}
|
|
215
|
-
elementRef.current.scrollTop = elementRef.current.scrollHeight;
|
|
216
|
-
});
|
|
217
|
-
var createWelcomeMessage = function createWelcomeMessage() {
|
|
218
|
-
if (props.welcomeMessage) {
|
|
219
|
-
var welcomeMessageProps = mergeProps(ptm('welcomeMessage'));
|
|
220
|
-
return /*#__PURE__*/React.createElement("div", welcomeMessageProps, props.welcomeMessage);
|
|
221
|
-
}
|
|
222
|
-
return null;
|
|
223
|
-
};
|
|
224
|
-
var createCommand = function createCommand(command, index) {
|
|
225
|
-
var text = command.text,
|
|
226
|
-
response = command.response;
|
|
227
|
-
var key = text + '_' + index;
|
|
228
|
-
var commandsProps = mergeProps({
|
|
229
|
-
key: key
|
|
230
|
-
}, ptm('commands'));
|
|
231
|
-
var commandProps = mergeProps({
|
|
232
|
-
className: cx('command')
|
|
233
|
-
}, ptm('command'));
|
|
234
|
-
var responseProps = mergeProps({
|
|
235
|
-
className: cx('response')
|
|
236
|
-
}, ptm('response'));
|
|
237
|
-
return /*#__PURE__*/React.createElement("div", commandsProps, /*#__PURE__*/React.createElement("span", promptProps, props.prompt, "\xA0"), /*#__PURE__*/React.createElement("span", commandProps, text), /*#__PURE__*/React.createElement("div", responseProps, response));
|
|
238
|
-
};
|
|
239
|
-
var createContent = function createContent() {
|
|
240
|
-
var content = commandsState.map(createCommand);
|
|
241
|
-
var contentProps = mergeProps({
|
|
242
|
-
className: cx('content')
|
|
243
|
-
}, ptm('content'));
|
|
244
|
-
return /*#__PURE__*/React.createElement("div", contentProps, content);
|
|
245
|
-
};
|
|
246
|
-
var createPromptContainer = function createPromptContainer() {
|
|
247
|
-
var containerProps = mergeProps({
|
|
248
|
-
className: cx('container')
|
|
249
|
-
}, ptm('container'));
|
|
250
|
-
var commandTextProps = mergeProps({
|
|
251
|
-
ref: inputRef,
|
|
252
|
-
value: commandTextState,
|
|
253
|
-
type: 'text',
|
|
254
|
-
className: cx('commandText'),
|
|
255
|
-
autoComplete: 'off',
|
|
256
|
-
onChange: function onChange(e) {
|
|
257
|
-
return onInputChange(e);
|
|
258
|
-
},
|
|
259
|
-
onKeyDown: function onKeyDown(e) {
|
|
260
|
-
return onInputKeyDown(e);
|
|
261
|
-
}
|
|
262
|
-
}, ptm('commandText'));
|
|
263
|
-
return /*#__PURE__*/React.createElement("div", containerProps, /*#__PURE__*/React.createElement("span", promptProps, props.prompt, "\xA0"), /*#__PURE__*/React.createElement("input", commandTextProps));
|
|
264
|
-
};
|
|
265
|
-
var welcomeMessage = createWelcomeMessage();
|
|
266
|
-
var content = createContent();
|
|
267
|
-
var prompt = createPromptContainer();
|
|
268
|
-
var rootProps = mergeProps({
|
|
269
|
-
id: props.id,
|
|
270
|
-
ref: elementRef,
|
|
271
|
-
className: classNames(props.className, cx('root')),
|
|
272
|
-
style: props.style,
|
|
273
|
-
onClick: onClick
|
|
274
|
-
}, TerminalBase.getOtherProps(props), ptm('root'));
|
|
275
|
-
return /*#__PURE__*/React.createElement("div", rootProps, welcomeMessage, content, prompt);
|
|
276
|
-
}));
|
|
277
|
-
Terminal.displayName = 'Terminal';
|
|
278
|
-
|
|
279
|
-
export { Terminal };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{EventBus as r}from"primereact/utils";var t=r();export{t as TerminalService};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import n,{PrimeReactContext as t}from"primereact/api";import{ComponentBase as r,useHandleStyle as o}from"primereact/componentbase";import{CSSTransition as i}from"primereact/csstransition";import{useEventListener as u,useResizeListener as a,useMountEffect as l,useUpdateEffect as c,useMatchMedia as s,useOverlayListener as p,useUnmountEffect as m}from"primereact/hooks";import{OverlayService as d}from"primereact/overlayservice";import{Portal as f}from"primereact/portal";import{classNames as b,mergeProps as v,DomHandler as y,IconUtils as h,ObjectUtils as g,UniqueComponentId as x,ZIndexUtils as w}from"primereact/utils";import{AngleRightIcon as S}from"primereact/icons/angleright";import{Ripple as E}from"primereact/ripple";function I(){return I=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},I.apply(this,arguments)}function O(e){if(Array.isArray(e))return e}function P(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,a=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(a.push(r.value),a.length!==n);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}function k(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function N(e,n){if(e){if("string"==typeof e)return k(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?k(e,n):void 0}}function M(){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 j(e,n){return O(e)||P(e,n)||N(e,n)||M()}var T=r.extend({defaultProps:{__TYPE:"TieredMenu",id:null,model:null,popup:!1,style:null,className:null,autoZIndex:!0,baseZIndex:0,breakpoint:void 0,scrollHeight:"400px",appendTo:null,transitionOptions:null,onShow:null,onHide:null,submenuIcon:null,children:void 0},css:{classes:{root:function(e){var t=e.props,r=e.context;return b("p-tieredmenu p-component",{"p-tieredmenu-overlay":t.popup,"p-input-filled":r&&"filled"===r.inputStyle||"filled"===n.inputStyle,"p-ripple-disabled":r&&!1===r.ripple||!1===n.ripple},t.className)},separator:"p-menu-separator",icon:function(e){return b("p-menuitem-icon",e._icon)},label:"p-menuitem-text",submenuIcon:"p-submenu-icon",action:function(e){return b("p-menuitem-link",{"p-disabled":e.disabled})},menuitem:function(e){return b("p-menuitem",{"p-menuitem-active":e.active},e._className)},menu:function(e){return b({"p-submenu-list":!e.subProps.root})},submenu:function(e){return b({"p-submenu-list":!e.subProps.root})},transition:"p-connected-overlay"},styles:"\n@layer primereact {\n .p-tieredmenu-overlay {\n position: absolute;\n }\n \n .p-tieredmenu ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n \n .p-tieredmenu .p-submenu-list {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n display: none;\n }\n \n .p-tieredmenu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n \n .p-tieredmenu .p-menuitem-text {\n line-height: 1;\n }\n \n .p-tieredmenu .p-menuitem {\n position: relative;\n }\n \n .p-tieredmenu .p-menuitem-link .p-submenu-icon {\n margin-left: auto;\n }\n \n .p-tieredmenu .p-menuitem-active > .p-submenu-list {\n display: block;\n left: 100%;\n top: 0;\n }\n \n .p-tieredmenu .p-menuitem-active > .p-submenu-list-flipped {\n left: -100%;\n }\n}\n",inlineStyles:{submenu:function(e){var n=e.subProps;return{display:!n.root&&n.parentActive?"block":"none"}}}}});function C(e){return C="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},C(e)}function D(e,n){if("object"!==C(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function A(e){var n=D(e,"string");return"symbol"===C(n)?n:String(n)}function H(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 _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){var r,o,i;r=e,i=t[n],(o=A(o=n))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var R=e.memo((function(n){var t=j(e.useState(null),2),r=t[0],o=t[1],i=e.useRef(null),s=n.ptm,p=n.cx,m=n.sx,d=function(e,t){return s(t,{hostName:n.hostName,context:{active:r===e}})},f=j(u({type:"click",listener:function(e){n.isMobileMode||!i.current||i.current.contains(e.target)||o(null)}}),1)[0],x=j(a({listener:function(){!n.isMobileMode&&o(null)}}),1)[0],w=function(){if(i.current){var e=i.current.parentElement,n=y.getOffset(e),t=y.getViewport(),r=i.current.offsetParent?i.current.offsetWidth:y.getHiddenElementOuterWidth(i.current),o=y.getOuterWidth(e.children[0]),u=parseInt(n.top,10)+i.current.offsetHeight-y.getWindowScrollTop();i.current.style.top=u>t.height?t.height-u+"px":"0px",parseInt(n.left,10)+o+r>t.width-y.calculateScrollbarWidth()&&y.addClass(i.current,"p-submenu-list-flipped")}},I=function(e,t){t.disabled||n.isMobileMode?e.preventDefault():n.root?(r||n.popup)&&o(t):o(t)},O=function(e,t){t.disabled?e.preventDefault():(t.url||e.preventDefault(),t.command&&t.command({originalEvent:e,item:t}),(n.root||n.isMobileMode)&&t.items&&o(r&&t===r?null:t),t.items||T(e))},P=function(e,t){var r=e.currentTarget.parentElement;switch(e.which){case 40:var i=N(r);i&&i.children[0].focus(),e.preventDefault();break;case 38:var u=M(r);u&&u.children[0].focus(),e.preventDefault();break;case 39:t.items&&(o(t),setTimeout((function(){r.children[1].children[0].children[0].focus()}),50)),e.preventDefault()}n.onKeyDown&&n.onKeyDown(e,r)},k=function(e,n){37===e.which&&(o(null),n.parentElement.previousElementSibling.focus())},N=function e(n){var t=n.nextElementSibling;return t?y.hasClass(t,"p-disabled")||!y.hasClass(t,"p-menuitem")?e(t):t:null},M=function e(n){var t=n.previousElementSibling;return t?y.hasClass(t,"p-disabled")||!y.hasClass(t,"p-menuitem")?e(t):t:null},T=function(e){n.isMobileMode&&!n.popup||(o(null),n.onLeafClick&&n.onLeafClick(e),n.onHide&&n.onHide(e))};l((function(){f(),x()})),c((function(){n.parentActive||o(null),n.root||!n.parentActive||n.isMobileMode||w()}),[n.parentActive]),c((function(){n.onItemToggle&&n.onItemToggle()}),[r]);var C=function(t){var r=v({key:"separator_"+t,className:p("separator"),role:"separator"},s("separator",{hostName:n.hostName}));return e.createElement("li",r)},D=function(t,o){return t.items?e.createElement(R,{id:n.id+"_"+o,menuProps:n.menuProps,model:t.items,onLeafClick:T,popup:n.popup,onKeyDown:k,parentActive:t===r,isMobileMode:n.isMobileMode,onItemToggle:n.onItemToggle,submenuIcon:n.submenuIcon,ptm:n.ptm,cx:p,sx:m}):null},A=function(t,o){if(!1===t.visible)return null;var i=t.className,u=t.style,a=t.disabled,l=t.icon,c=t.label,s=t.items,m=t.target,f=t.url,y=t.template,x=t.id||n.id+"_"+o,w=r===t,k=b("p-menuitem-link",{"p-disabled":a}),N=b("p-menuitem-icon",l),M=v({className:p("icon",{_icon:l})},d(t,"icon")),j=h.getJSXIcon(l,_({},M),{props:n.menuProps}),T=v({className:p("label")},d(t,"label")),C=c&&e.createElement("span",T,c),A=v({className:p("submenuIcon")},d(t,"submenuIcon")),H=t.items&&h.getJSXIcon(n.submenuIcon||e.createElement(S,A),_({},A),{props:n.menuProps}),R=D(t,o),Z=v({href:f||"#",className:p("action",{disabled:a}),target:m,role:"menuitem","aria-haspopup":null!=s,onClick:function(e){return O(e,t)},onKeyDown:function(e){return P(e,t)},"aria-disabled":a},d(t,"action")),K=e.createElement("a",Z,j,C,H,e.createElement(E,null));y&&(K=g.getJSXElement(y,t,{onClick:function(e){return O(e,t)},onKeyDown:function(e){return P(e,t)},className:k,labelClassName:"p-menuitem-text",iconClassName:N,submenuIconClassName:"p-submenu-icon",element:K,props:n,active:w,disabled:a}));var W=v({key:x,id:x,className:p("menuitem",{_className:i,active:w}),style:u,onMouseEnter:function(e){return I(e,t)},role:"none"},d(t,"menuitem"));return e.createElement("li",W,K,R)},H=n.model?n.model.map((function(e,n){return e.separator?C(n):A(e,n)})):null,Z=n.root?"menu":"submenu",K=v({ref:i,className:p(Z,{subProps:n}),style:m(Z,{subProps:n}),role:n.root?"menubar":"menu","aria-orientation":"horizontal"},s(Z,{hostName:n.hostName}));return e.createElement("ul",K,H)}));R.displayName="TieredMenuSub";var Z=e.memo(e.forwardRef((function(r,u){var a=e.useContext(t),b=T.getProps(r,a),h=j(e.useState(b.id),2),g=h[0],S=h[1],E=j(e.useState(!b.popup),2),O=E[0],P=E[1],k=j(e.useState(null),2),N=k[0],M=k[1],C=T.setMetaData({props:b,state:{id:g,visible:O,attributeSelector:N}}),D=C.ptm,A=C.cx,H=C.sx;o(T.css.styles,C.isUnstyled,{name:"tieredmenu"});var _=e.useRef(null),Z=e.useRef(null),K=e.useRef(null),W=s("screen and (max-width: ".concat(b.breakpoint,")"),!!b.breakpoint),z=j(p({target:Z,overlay:_,listener:function(e,n){n.valid&&Y(e)},when:O}),2),L=z[0],J=z[1],X=function(e){b.popup&&d.emit("overlay-click",{originalEvent:e,target:Z.current})},U=function(e){b.popup&&(O?Y(e):V(e))},V=function(e){Z.current=e.currentTarget,P(!0),b.onShow&&b.onShow(e)},Y=function(e){b.popup&&(Z.current=e.currentTarget,P(!1),b.onHide&&b.onHide(e))},$=function(){b.popup&&W&&y.absolutePosition(_.current,Z.current)},q=function(){if(!K.current){K.current=y.createInlineStyle(a&&a.nonce||n.nonce);var e="".concat(N),t="\n@media screen and (max-width: ".concat(b.breakpoint,") {\n .p-tieredmenu[").concat(e,"] > ul {\n max-height: ").concat(b.scrollHeight,";\n overflow: ").concat(b.scrollHeight?"auto":"",";\n }\n\n .p-tieredmenu[").concat(e,"] .p-submenu-list {\n position: relative;\n }\n\n .p-tieredmenu[").concat(e,"] .p-menuitem-active > .p-submenu-list {\n left: 0 !important;\n box-shadow: none;\n border-radius: 0;\n padding: 0 0 0 calc(var(--inline-spacing) * 2); /* @todo */\n }\n\n .p-tieredmenu[").concat(e,"] .p-menuitem-active > .p-menuitem-link > .p-submenu-icon {\n transform: rotate(-180deg);\n }\n\n .p-tieredmenu[").concat(e,'] .p-submenu-icon:before {\n content: "\\e930";\n }\n\n ').concat(b.popup?"":".p-tieredmenu[".concat(e,"] { width: 100%; }"),"\n}\n");K.current.innerHTML=t}},B=function(){K.current=y.removeInlineStyle(K.current)},F=function(){b.autoZIndex&&w.set("menu",_.current,a&&a.autoZIndex||n.autoZIndex,b.baseZIndex||a&&a.zIndex.menu||n.zIndex.menu),y.addStyles(_.current,{position:"absolute",top:"0",left:"0"}),y.absolutePosition(_.current,Z.current),N&&b.breakpoint&&(_.current.setAttribute(N,""),q())},G=function(){L()},Q=function(){Z.current=null,J()},ee=function(){w.clear(_.current),B()};l((function(){var e=x();!g&&S(e),b.breakpoint&&!N&&M(e)})),c((function(){return N&&_.current&&(_.current.setAttribute(N,""),q()),function(){B()}}),[N,b.breakpoint]),m((function(){w.clear(_.current)})),e.useImperativeHandle(u,(function(){return{props:b,toggle:U,show:V,hide:Y,getElement:function(){return _.current}}}));var ne,te,re=(ne=v({ref:_,id:b.id,className:A("root"),style:b.style,onClick:X},T.getOtherProps(b),D("root")),te=v({classNames:A("transition"),in:O,timeout:{enter:120,exit:100},options:b.transitionOptions,unmountOnExit:!0,onEnter:F,onEntered:G,onExit:Q,onExited:ee},D("transition")),e.createElement(i,I({nodeRef:_},te),e.createElement("div",ne,e.createElement(R,{id:g,hostName:"TieredMenu",menuProps:b,model:b.model,root:!0,popup:b.popup,onHide:Y,isMobileMode:W,onItemToggle:$,submenuIcon:b.submenuIcon,ptm:D,cx:A,sx:H}))));return b.popup?e.createElement(f,{element:re,appendTo:b.appendTo}):re})));Z.displayName="TieredMenu";export{Z as TieredMenu};
|