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/chips/chips.esm.mjs
DELETED
|
@@ -1,500 +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 { useMountEffect } from 'primereact/hooks';
|
|
6
|
-
import { TimesCircleIcon } from 'primereact/icons/timescircle';
|
|
7
|
-
import { KeyFilter } from 'primereact/keyfilter';
|
|
8
|
-
import { Tooltip } from 'primereact/tooltip';
|
|
9
|
-
import { classNames, ObjectUtils, DomHandler, mergeProps, IconUtils } from 'primereact/utils';
|
|
10
|
-
|
|
11
|
-
function _extends() {
|
|
12
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
13
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
-
var source = arguments[i];
|
|
15
|
-
for (var key in source) {
|
|
16
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17
|
-
target[key] = source[key];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return target;
|
|
22
|
-
};
|
|
23
|
-
return _extends.apply(this, arguments);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function _typeof(o) {
|
|
27
|
-
"@babel/helpers - typeof";
|
|
28
|
-
|
|
29
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
30
|
-
return typeof o;
|
|
31
|
-
} : function (o) {
|
|
32
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
33
|
-
}, _typeof(o);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function _toPrimitive(input, hint) {
|
|
37
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
38
|
-
var prim = input[Symbol.toPrimitive];
|
|
39
|
-
if (prim !== undefined) {
|
|
40
|
-
var res = prim.call(input, hint || "default");
|
|
41
|
-
if (_typeof(res) !== "object") return res;
|
|
42
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
43
|
-
}
|
|
44
|
-
return (hint === "string" ? String : Number)(input);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function _toPropertyKey(arg) {
|
|
48
|
-
var key = _toPrimitive(arg, "string");
|
|
49
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function _defineProperty(obj, key, value) {
|
|
53
|
-
key = _toPropertyKey(key);
|
|
54
|
-
if (key in obj) {
|
|
55
|
-
Object.defineProperty(obj, key, {
|
|
56
|
-
value: value,
|
|
57
|
-
enumerable: true,
|
|
58
|
-
configurable: true,
|
|
59
|
-
writable: true
|
|
60
|
-
});
|
|
61
|
-
} else {
|
|
62
|
-
obj[key] = value;
|
|
63
|
-
}
|
|
64
|
-
return obj;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function _arrayLikeToArray(arr, len) {
|
|
68
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
69
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
70
|
-
return arr2;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
function _arrayWithoutHoles(arr) {
|
|
74
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
function _iterableToArray(iter) {
|
|
78
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
82
|
-
if (!o) return;
|
|
83
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
84
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
85
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
86
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
87
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
function _nonIterableSpread() {
|
|
91
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
function _toConsumableArray(arr) {
|
|
95
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function _arrayWithHoles(arr) {
|
|
99
|
-
if (Array.isArray(arr)) return arr;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function _iterableToArrayLimit(r, l) {
|
|
103
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
104
|
-
if (null != t) {
|
|
105
|
-
var e,
|
|
106
|
-
n,
|
|
107
|
-
i,
|
|
108
|
-
u,
|
|
109
|
-
a = [],
|
|
110
|
-
f = !0,
|
|
111
|
-
o = !1;
|
|
112
|
-
try {
|
|
113
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
114
|
-
if (Object(t) !== t) return;
|
|
115
|
-
f = !1;
|
|
116
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
117
|
-
} catch (r) {
|
|
118
|
-
o = !0, n = r;
|
|
119
|
-
} finally {
|
|
120
|
-
try {
|
|
121
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
122
|
-
} finally {
|
|
123
|
-
if (o) throw n;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return a;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
function _nonIterableRest() {
|
|
131
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
function _slicedToArray(arr, i) {
|
|
135
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
var styles = "\n@layer primereact {\n .p-chips {\n display: inline-flex;\n }\n \n .p-chips-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n }\n \n .p-chips-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n }\n \n .p-chips-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n }\n \n .p-chips-token-icon {\n cursor: pointer;\n }\n \n .p-chips-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n }\n \n .p-fluid .p-chips {\n display: flex;\n }\n \n .p-chips-icon-left,\n .p-chips-icon-right {\n position: relative;\n display: inline-block;\n }\n \n .p-chips-icon-left > i,\n .p-chips-icon-right > i,\n .p-chips-icon-left > svg,\n .p-chips-icon-right > svg,\n .p-chips-icon-left > .p-chips-prefix,\n .p-chips-icon-right > .p-chips-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n \n .p-fluid .p-chips-icon-left,\n .p-fluid .p-chips-icon-right {\n display: block;\n width: 100%;\n }\n}\n";
|
|
139
|
-
var classes = {
|
|
140
|
-
removeTokenIcon: 'p-chips-token-icon',
|
|
141
|
-
label: 'p-chips-token-label',
|
|
142
|
-
token: 'p-chips-token p-highlight',
|
|
143
|
-
inputToken: 'p-chips-input-token',
|
|
144
|
-
container: function container(_ref) {
|
|
145
|
-
var props = _ref.props,
|
|
146
|
-
focusedState = _ref.focusedState;
|
|
147
|
-
return classNames('p-inputtext p-chips-multiple-container', {
|
|
148
|
-
'p-disabled': props.disabled,
|
|
149
|
-
'p-focus': focusedState
|
|
150
|
-
});
|
|
151
|
-
},
|
|
152
|
-
root: function root(_ref2) {
|
|
153
|
-
var isFilled = _ref2.isFilled,
|
|
154
|
-
focusedState = _ref2.focusedState;
|
|
155
|
-
return classNames('p-chips p-component p-inputwrapper', {
|
|
156
|
-
'p-inputwrapper-filled': isFilled,
|
|
157
|
-
'p-inputwrapper-focus': focusedState
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
var ChipsBase = ComponentBase.extend({
|
|
162
|
-
defaultProps: {
|
|
163
|
-
__TYPE: 'Chips',
|
|
164
|
-
addOnBlur: null,
|
|
165
|
-
allowDuplicate: true,
|
|
166
|
-
ariaLabelledBy: null,
|
|
167
|
-
autoFocus: false,
|
|
168
|
-
className: null,
|
|
169
|
-
disabled: null,
|
|
170
|
-
id: null,
|
|
171
|
-
inputId: null,
|
|
172
|
-
inputRef: null,
|
|
173
|
-
itemTemplate: null,
|
|
174
|
-
keyfilter: null,
|
|
175
|
-
max: null,
|
|
176
|
-
name: null,
|
|
177
|
-
onAdd: null,
|
|
178
|
-
onBlur: null,
|
|
179
|
-
onChange: null,
|
|
180
|
-
onFocus: null,
|
|
181
|
-
onKeyDown: null,
|
|
182
|
-
onRemove: null,
|
|
183
|
-
placeholder: null,
|
|
184
|
-
readOnly: false,
|
|
185
|
-
removable: true,
|
|
186
|
-
removeIcon: null,
|
|
187
|
-
separator: null,
|
|
188
|
-
style: null,
|
|
189
|
-
tooltip: null,
|
|
190
|
-
tooltipOptions: null,
|
|
191
|
-
value: null,
|
|
192
|
-
children: undefined
|
|
193
|
-
},
|
|
194
|
-
css: {
|
|
195
|
-
classes: classes,
|
|
196
|
-
styles: styles
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
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; }
|
|
201
|
-
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; }
|
|
202
|
-
var Chips = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
203
|
-
var context = React.useContext(PrimeReactContext);
|
|
204
|
-
var props = ChipsBase.getProps(inProps, context);
|
|
205
|
-
var _React$useState = React.useState(false),
|
|
206
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
207
|
-
focusedState = _React$useState2[0],
|
|
208
|
-
setFocusedState = _React$useState2[1];
|
|
209
|
-
var _ChipsBase$setMetaDat = ChipsBase.setMetaData({
|
|
210
|
-
props: props,
|
|
211
|
-
state: {
|
|
212
|
-
focused: focusedState
|
|
213
|
-
}
|
|
214
|
-
}),
|
|
215
|
-
ptm = _ChipsBase$setMetaDat.ptm,
|
|
216
|
-
cx = _ChipsBase$setMetaDat.cx,
|
|
217
|
-
isUnstyled = _ChipsBase$setMetaDat.isUnstyled;
|
|
218
|
-
useHandleStyle(ChipsBase.css.styles, isUnstyled, {
|
|
219
|
-
name: 'chips'
|
|
220
|
-
});
|
|
221
|
-
var elementRef = React.useRef(null);
|
|
222
|
-
var listRef = React.useRef(null);
|
|
223
|
-
var inputRef = React.useRef(props.inputRef);
|
|
224
|
-
var removeItem = function removeItem(event, index) {
|
|
225
|
-
if (props.disabled && props.readOnly) {
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
|
-
var values = _toConsumableArray(props.value);
|
|
229
|
-
var removedItem = values.splice(index, 1);
|
|
230
|
-
if (!isRemovable(removedItem, index)) {
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
if (props.onRemove) {
|
|
234
|
-
props.onRemove({
|
|
235
|
-
originalEvent: event,
|
|
236
|
-
value: removedItem
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
if (props.onChange) {
|
|
240
|
-
props.onChange({
|
|
241
|
-
originalEvent: event,
|
|
242
|
-
value: values,
|
|
243
|
-
stopPropagation: function stopPropagation() {
|
|
244
|
-
event.stopPropagation();
|
|
245
|
-
},
|
|
246
|
-
preventDefault: function preventDefault() {
|
|
247
|
-
event.preventDefault();
|
|
248
|
-
},
|
|
249
|
-
target: {
|
|
250
|
-
name: props.name,
|
|
251
|
-
id: props.id,
|
|
252
|
-
value: values
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
|
-
var addItem = function addItem(event, item, preventDefault) {
|
|
258
|
-
if (item && item.trim().length) {
|
|
259
|
-
var values = props.value ? _toConsumableArray(props.value) : [];
|
|
260
|
-
if (props.allowDuplicate || values.indexOf(item) === -1) {
|
|
261
|
-
var allowAddition = true;
|
|
262
|
-
if (props.onAdd) {
|
|
263
|
-
allowAddition = props.onAdd({
|
|
264
|
-
originalEvent: event,
|
|
265
|
-
value: item
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
if (allowAddition !== false) {
|
|
269
|
-
values.push(item);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
updateInput(event, values, preventDefault);
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
var onWrapperClick = function onWrapperClick() {
|
|
276
|
-
DomHandler.focus(inputRef.current);
|
|
277
|
-
};
|
|
278
|
-
var _onKeyDown = function onKeyDown(event) {
|
|
279
|
-
var inputValue = event.target.value;
|
|
280
|
-
var values = props.value || [];
|
|
281
|
-
props.onKeyDown && props.onKeyDown(event);
|
|
282
|
-
|
|
283
|
-
// do not continue if the user defined keydown wants to prevent
|
|
284
|
-
if (event.defaultPrevented) {
|
|
285
|
-
return;
|
|
286
|
-
}
|
|
287
|
-
switch (event.key) {
|
|
288
|
-
case 'Backspace':
|
|
289
|
-
if (inputRef.current.value.length === 0 && values.length > 0) {
|
|
290
|
-
removeItem(event, values.length - 1);
|
|
291
|
-
}
|
|
292
|
-
break;
|
|
293
|
-
case 'Enter':
|
|
294
|
-
if (inputValue && inputValue.trim().length && (!props.max || props.max > values.length)) {
|
|
295
|
-
addItem(event, inputValue, true);
|
|
296
|
-
}
|
|
297
|
-
break;
|
|
298
|
-
default:
|
|
299
|
-
if (props.keyfilter) {
|
|
300
|
-
KeyFilter.onKeyPress(event, props.keyfilter);
|
|
301
|
-
}
|
|
302
|
-
if (isMaxedOut()) {
|
|
303
|
-
event.preventDefault();
|
|
304
|
-
} else if (props.separator === ',') {
|
|
305
|
-
// GitHub #3885 Android Opera gives strange code 229 for comma
|
|
306
|
-
if (event.key === props.separator || DomHandler.isAndroid() && event.which === 229) {
|
|
307
|
-
addItem(event, inputValue, true);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
break;
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
var updateInput = function updateInput(event, items, preventDefault) {
|
|
314
|
-
if (props.onChange) {
|
|
315
|
-
props.onChange({
|
|
316
|
-
originalEvent: event,
|
|
317
|
-
value: items,
|
|
318
|
-
stopPropagation: function stopPropagation() {
|
|
319
|
-
event.stopPropagation();
|
|
320
|
-
},
|
|
321
|
-
preventDefault: function preventDefault() {
|
|
322
|
-
event.preventDefault();
|
|
323
|
-
},
|
|
324
|
-
target: {
|
|
325
|
-
name: props.name,
|
|
326
|
-
id: props.id,
|
|
327
|
-
value: items
|
|
328
|
-
}
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
inputRef.current.value = '';
|
|
332
|
-
preventDefault && event.preventDefault();
|
|
333
|
-
};
|
|
334
|
-
var _onPaste = function onPaste(event) {
|
|
335
|
-
if (props.separator) {
|
|
336
|
-
var pastedData = (event.clipboardData || window['clipboardData']).getData('Text');
|
|
337
|
-
if (props.keyfilter) {
|
|
338
|
-
KeyFilter.onPaste(event, props.keyfilter);
|
|
339
|
-
}
|
|
340
|
-
if (pastedData) {
|
|
341
|
-
var values = props.value || [];
|
|
342
|
-
var pastedValues = pastedData.split(props.separator);
|
|
343
|
-
pastedValues = pastedValues.filter(function (val) {
|
|
344
|
-
return (props.allowDuplicate || values.indexOf(val) === -1) && val.trim().length;
|
|
345
|
-
});
|
|
346
|
-
values = [].concat(_toConsumableArray(values), _toConsumableArray(pastedValues));
|
|
347
|
-
updateInput(event, values, true);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
var _onFocus = function onFocus(event) {
|
|
352
|
-
setFocusedState(true);
|
|
353
|
-
props.onFocus && props.onFocus(event);
|
|
354
|
-
};
|
|
355
|
-
var _onBlur = function onBlur(event) {
|
|
356
|
-
if (props.addOnBlur) {
|
|
357
|
-
var inputValue = event.target.value;
|
|
358
|
-
var values = props.value || [];
|
|
359
|
-
if (inputValue && inputValue.trim().length && (!props.max || props.max > values.length)) {
|
|
360
|
-
addItem(event, inputValue, true);
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
setFocusedState(false);
|
|
364
|
-
props.onBlur && props.onBlur(event);
|
|
365
|
-
};
|
|
366
|
-
var isMaxedOut = function isMaxedOut() {
|
|
367
|
-
return props.max && props.value && props.max === props.value.length;
|
|
368
|
-
};
|
|
369
|
-
var currentValue = inputRef.current && inputRef.current.value;
|
|
370
|
-
var isFilled = React.useMemo(function () {
|
|
371
|
-
return ObjectUtils.isNotEmpty(props.value) || ObjectUtils.isNotEmpty(currentValue);
|
|
372
|
-
}, [props.value, currentValue]);
|
|
373
|
-
var isRemovable = function isRemovable(value, index) {
|
|
374
|
-
return ObjectUtils.getPropValue(props.removable, {
|
|
375
|
-
value: value,
|
|
376
|
-
index: index,
|
|
377
|
-
props: props
|
|
378
|
-
});
|
|
379
|
-
};
|
|
380
|
-
React.useImperativeHandle(ref, function () {
|
|
381
|
-
return {
|
|
382
|
-
props: props,
|
|
383
|
-
focus: function focus() {
|
|
384
|
-
return DomHandler.focus(inputRef.current);
|
|
385
|
-
},
|
|
386
|
-
getElement: function getElement() {
|
|
387
|
-
return elementRef.current;
|
|
388
|
-
},
|
|
389
|
-
getInput: function getInput() {
|
|
390
|
-
return inputRef.current;
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
});
|
|
394
|
-
React.useEffect(function () {
|
|
395
|
-
ObjectUtils.combinedRefs(inputRef, props.inputRef);
|
|
396
|
-
}, [inputRef, props.inputRef]);
|
|
397
|
-
useMountEffect(function () {
|
|
398
|
-
if (props.autoFocus) {
|
|
399
|
-
DomHandler.focus(inputRef.current, props.autoFocus);
|
|
400
|
-
}
|
|
401
|
-
});
|
|
402
|
-
var createRemoveIcon = function createRemoveIcon(value, index) {
|
|
403
|
-
var iconProps = mergeProps({
|
|
404
|
-
className: cx('removeTokenIcon'),
|
|
405
|
-
onClick: function onClick(event) {
|
|
406
|
-
return removeItem(event, index);
|
|
407
|
-
}
|
|
408
|
-
}, ptm('removeTokenIcon'));
|
|
409
|
-
var icon = props.removeIcon || /*#__PURE__*/React.createElement(TimesCircleIcon, iconProps);
|
|
410
|
-
var removeIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, iconProps), {
|
|
411
|
-
props: props
|
|
412
|
-
});
|
|
413
|
-
if (!props.disabled && !props.readOnly && isRemovable(value, index)) {
|
|
414
|
-
return removeIcon;
|
|
415
|
-
}
|
|
416
|
-
return null;
|
|
417
|
-
};
|
|
418
|
-
var createItem = function createItem(value, index) {
|
|
419
|
-
var content = props.itemTemplate ? props.itemTemplate(value) : value;
|
|
420
|
-
var labelProps = mergeProps({
|
|
421
|
-
className: cx('label')
|
|
422
|
-
}, ptm('label'));
|
|
423
|
-
var label = /*#__PURE__*/React.createElement("span", labelProps, content);
|
|
424
|
-
var icon = createRemoveIcon(value, index);
|
|
425
|
-
var tokenProps = mergeProps({
|
|
426
|
-
key: index,
|
|
427
|
-
className: cx('token'),
|
|
428
|
-
'data-p-highlight': true
|
|
429
|
-
}, ptm('token'));
|
|
430
|
-
return /*#__PURE__*/React.createElement("li", tokenProps, label, icon);
|
|
431
|
-
};
|
|
432
|
-
var createInput = function createInput() {
|
|
433
|
-
var inputTokenProps = mergeProps({
|
|
434
|
-
className: cx('inputToken')
|
|
435
|
-
}, ptm('inputToken'));
|
|
436
|
-
var inputProps = mergeProps(_objectSpread({
|
|
437
|
-
id: props.inputId,
|
|
438
|
-
ref: inputRef,
|
|
439
|
-
placeholder: props.placeholder,
|
|
440
|
-
type: 'text',
|
|
441
|
-
name: props.name,
|
|
442
|
-
disabled: props.disabled || isMaxedOut(),
|
|
443
|
-
onKeyDown: function onKeyDown(e) {
|
|
444
|
-
return _onKeyDown(e);
|
|
445
|
-
},
|
|
446
|
-
onPaste: function onPaste(e) {
|
|
447
|
-
return _onPaste(e);
|
|
448
|
-
},
|
|
449
|
-
onFocus: function onFocus(e) {
|
|
450
|
-
return _onFocus(e);
|
|
451
|
-
},
|
|
452
|
-
onBlur: function onBlur(e) {
|
|
453
|
-
return _onBlur(e);
|
|
454
|
-
},
|
|
455
|
-
readOnly: props.readOnly
|
|
456
|
-
}, ariaProps), ptm('input'));
|
|
457
|
-
return /*#__PURE__*/React.createElement("li", inputTokenProps, /*#__PURE__*/React.createElement("input", inputProps));
|
|
458
|
-
};
|
|
459
|
-
var createItems = function createItems() {
|
|
460
|
-
return props.value ? props.value.map(createItem) : null;
|
|
461
|
-
};
|
|
462
|
-
var createList = function createList() {
|
|
463
|
-
var items = createItems();
|
|
464
|
-
var input = createInput();
|
|
465
|
-
var containerProps = mergeProps({
|
|
466
|
-
ref: listRef,
|
|
467
|
-
className: cx('container', {
|
|
468
|
-
focusedState: focusedState
|
|
469
|
-
}),
|
|
470
|
-
onClick: function onClick(e) {
|
|
471
|
-
return onWrapperClick();
|
|
472
|
-
},
|
|
473
|
-
'data-p-disabled': props.disabled,
|
|
474
|
-
'data-p-focus': focusedState
|
|
475
|
-
}, ptm('container'));
|
|
476
|
-
return /*#__PURE__*/React.createElement("ul", containerProps, items, input);
|
|
477
|
-
};
|
|
478
|
-
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
479
|
-
var otherProps = ChipsBase.getOtherProps(props);
|
|
480
|
-
var ariaProps = ObjectUtils.reduceKeys(otherProps, DomHandler.ARIA_PROPS);
|
|
481
|
-
var list = createList();
|
|
482
|
-
var rootProps = mergeProps({
|
|
483
|
-
id: props.id,
|
|
484
|
-
ref: elementRef,
|
|
485
|
-
className: classNames(props.className, cx('root', {
|
|
486
|
-
isFilled: isFilled,
|
|
487
|
-
focusedState: focusedState
|
|
488
|
-
})),
|
|
489
|
-
style: props.style
|
|
490
|
-
}, ptm('root'));
|
|
491
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", rootProps, list), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
492
|
-
target: inputRef,
|
|
493
|
-
content: props.tooltip
|
|
494
|
-
}, props.tooltipOptions, {
|
|
495
|
-
pt: ptm('tooltip')
|
|
496
|
-
})));
|
|
497
|
-
}));
|
|
498
|
-
Chips.displayName = 'Chips';
|
|
499
|
-
|
|
500
|
-
export { Chips };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import n,{PrimeReactContext as r}from"primereact/api";import{useOverlayListener as t,useEventListener as o,useMountEffect as i,useUpdateEffect as l,useUnmountEffect as c}from"primereact/hooks";import{OverlayService as a}from"primereact/overlayservice";import{Tooltip as u}from"primereact/tooltip";import{classNames as p,mergeProps as s,DomHandler as f,ObjectUtils as d,ZIndexUtils as m}from"primereact/utils";import{ComponentBase as h,useHandleStyle as b}from"primereact/componentbase";import{CSSTransition as g}from"primereact/csstransition";import{Portal as y}from"primereact/portal";function v(e){return v="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},v(e)}function x(e,n){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,n||"default");if("object"!==v(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function k(e){var n=x(e,"string");return"symbol"===v(n)?n:String(n)}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},w.apply(this,arguments)}function E(e){if(Array.isArray(e))return e}function O(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,l,c=[],a=!0,u=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;a=!1}else for(;!(a=(t=i.call(r)).done)&&(c.push(t.value),c.length!==n);a=!0);}catch(e){u=!0,o=e}finally{try{if(!a&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(u)throw o}}return c}}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function M(e,n){if(e){if("string"==typeof e)return S(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,n):void 0}}function C(){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 N(e,n){return E(e)||O(e,n)||M(e,n)||C()}var P=h.extend({defaultProps:{__TYPE:"ColorPicker",appendTo:null,autoFocus:!1,children:void 0,className:null,defaultColor:"ff0000",disabled:!1,format:"hex",id:null,inline:!1,inputClassName:null,inputId:null,inputRef:null,inputStyle:null,onChange:null,onHide:null,onShow:null,panelClassName:null,panelStyle:null,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,transitionOptions:null,value:null},css:{classes:{root:function(e){var n=e.props;return p("p-colorpicker p-component",{"p-colorpicker-overlay":!n.inline},n.className)},input:function(e){var n=e.props;return p("p-colorpicker-preview p-inputtext",n.inputClassName,{"p-disabled":n.disabled})},panel:function(e){var r=e.panelProps,t=e.context;return p("p-colorpicker-panel",r.panelClassName,{"p-colorpicker-overlay-panel":!r.inline,"p-disabled":r.disabled,"p-input-filled":t&&"filled"===t.inputStyle||"filled"===n.inputStyle,"p-ripple-disabled":t&&!1===t.ripple||!1===n.ripple})},content:"p-colorpicker-content",hueHandle:"p-colorpicker-hue-handle",hue:"p-colorpicker-hue",colorHandle:"p-colorpicker-color-handle",color:"p-colorpicker-color",selector:"p-colorpicker-color-selector",transition:"p-connected-overlay"},styles:"\n@layer primereact {\n .p-colorpicker {\n display: inline-block;\n }\n \n .p-colorpicker-dragging {\n cursor: pointer;\n }\n \n .p-colorpicker-overlay {\n position: relative;\n }\n \n .p-colorpicker-panel {\n position: relative;\n width: 193px;\n height: 166px;\n }\n \n .p-colorpicker-overlay-panel {\n position: absolute;\n top: 0;\n left: 0;\n }\n \n .p-colorpicker-preview {\n cursor: pointer;\n }\n \n .p-colorpicker-panel .p-colorpicker-content {\n position: relative;\n }\n \n .p-colorpicker-panel .p-colorpicker-color-selector {\n width: 150px;\n height: 150px;\n top: 8px;\n left: 8px;\n position: absolute;\n }\n \n .p-colorpicker-panel .p-colorpicker-color {\n width: 150px;\n height: 150px;\n }\n \n .p-colorpicker-panel .p-colorpicker-color-handle {\n position: absolute;\n top: 0px;\n left: 150px;\n border-radius: 100%;\n width: 10px;\n height: 10px;\n border-width: 1px;\n border-style: solid;\n margin: -5px 0 0 -5px;\n cursor: pointer;\n opacity: 0.85;\n }\n \n .p-colorpicker-panel .p-colorpicker-hue {\n width: 17px;\n height: 150px;\n top: 8px;\n left: 167px;\n position: absolute;\n opacity: 0.85;\n }\n \n .p-colorpicker-panel .p-colorpicker-hue-handle {\n position: absolute;\n top: 150px;\n left: 0px;\n width: 21px;\n margin-left: -2px;\n margin-top: -5px;\n height: 10px;\n border-width: 2px;\n border-style: solid;\n opacity: 0.85;\n cursor: pointer;\n }\n \n .p-colorpicker-panel .p-colorpicker-color {\n background: linear-gradient(to top, #000 0%, rgb(0 0 0 / 0) 100%), linear-gradient(to right, #fff 0%, rgb(255 255 255 / 0) 100%)\n }\n .p-colorpicker-panel .p-colorpicker-hue {\n background: linear-gradient(0deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red)\n }\n}\n"}}),T=e.forwardRef((function(n,t){var o,i,l=e.useContext(r),c=n.ptm,a=n.cx,u=(o=s({className:a("panel",{panelProps:n,context:l}),style:n.panelStyle,onClick:n.onClick},c("panel",{hostName:n.hostName})),i=s({classNames:a("transition"),in:n.in,timeout:{enter:120,exit:100},options:n.transitionOptions,unmountOnExit:!0,onEnter:n.onEnter,onEntered:n.onEntered,onExit:n.onExit,onExited:n.onExited},c("transition",{hostName:n.hostName})),e.createElement(g,w({nodeRef:t},i),e.createElement("div",w({ref:t},o),n.children)));return n.inline?u:e.createElement(y,{element:u,appendTo:n.appendTo})}));function j(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function R(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?j(Object(r),!0).forEach((function(n){var t,o,i;t=e,i=r[n],(o=k(o=n))in t?Object.defineProperty(t,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}T.displayName="ColorPickerPanel";var I=e.memo(e.forwardRef((function(p,h){var g=e.useContext(r),y=P.getProps(p,g),v=N(e.useState(!1),2),x=v[0],k=v[1],E=P.setMetaData({props:y,state:{overlayVisible:x}}),O=E.ptm,S=E.cx,M=E.isUnstyled;b(P.css.styles,M,{name:"colorpicker"});var C=e.useRef(null),j=e.useRef(null),I=e.useRef(y.inputRef),D=e.useRef(null),H=e.useRef(null),Y=e.useRef(null),A=e.useRef(null),F=e.useRef(!1),z=e.useRef(null),B=e.useRef(!1),U=N(t({target:C,overlay:j,listener:function(e,n){n.valid&&de()},when:x}),2),X=U[0],Z=U[1],_=N(o({type:"mousemove",listener:function(e){B.current&&te(e),F.current&&J(e)}}),2),K=_[0],L=_[1],V=N(o({type:"mouseup",listener:function(){B.current=F.current=!1,f.removeClass(C.current,"p-colorpicker-dragging"),L(),q()}}),2),$=V[0],q=V[1],G=function(e){y.disabled||(F.current=!0,J(e),!M&&f.addClass(C.current,"p-colorpicker-dragging"))},J=function(e){var n=A.current.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);z.current=ge({h:Math.floor(360*(150-Math.max(0,Math.min(150,(e.pageY||e.changedTouches[0].pageY)-n)))/150),s:100,b:100}),ae(),pe(),oe()},Q=function(e){y.disabled||(B.current=!0,te(e),!M&&f.addClass(C.current,"p-colorpicker-dragging"),e.preventDefault())},W=function(e){B.current&&(te(e),e.preventDefault()),F.current&&(J(e),e.preventDefault())},ee=function(){B.current=!1,F.current=!1,!M&&f.removeClass(C.current,"p-colorpicker-dragging"),re()},ne=function(){K(),$()},re=function(){L(),q()},te=function(e){var n=D.current.getBoundingClientRect(),r=n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),t=n.left+document.body.scrollLeft,o=Math.floor(100*Math.max(0,Math.min(150,(e.pageX||e.changedTouches[0].pageX)-t))/150),i=Math.floor(100*(150-Math.max(0,Math.min(150,(e.pageY||e.changedTouches[0].pageY)-r)))/150);z.current=ge({h:z.current.h,s:o,b:i}),ue(),se(),oe()},oe=function(){switch(y.format){case"hex":ce(Ee(z.current));break;case"rgb":ce(ke(z.current));break;case"hsb":ce(z.current)}},ie=function(e){var n;if(e)switch(y.format){case"hex":n=ve(e);break;case"rgb":n=xe(e);break;case"hsb":n=e}else n=ve(y.defaultColor);return n},le=function(e){z.current=ie(e)},ce=function(e){y.onChange&&y.onChange({value:e,stopPropagation:function(){},preventDefault:function(){},target:{name:y.name,id:y.id,value:e}})},ae=function(){if(D.current){var e=ge({h:z.current.h,s:100,b:100});D.current.style.backgroundColor="#"+Ee(e)}},ue=function(){H.current&&(H.current.style.left=Math.floor(150*z.current.s/100)+"px",H.current.style.top=Math.floor(150*(100-z.current.b)/100)+"px")},pe=function(){Y.current&&(Y.current.style.top=Math.floor(150-150*z.current.h/360)+"px")},se=function(){I.current&&(I.current.style.backgroundColor="#"+Ee(z.current))},fe=function(){k(!0)},de=function(){k(!1)},me=function(){he()},he=function(){x?de():fe()},be=function(e){switch(e.which){case 32:he(),e.preventDefault();break;case 27:case 9:de()}},ge=function(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}},ye=function(e){var n=parseInt(e.indexOf("#")>-1?e.substring(1):e,16);return{r:n>>16,g:(65280&n)>>8,b:255&n}},ve=function(e){return xe(ye(e))},xe=function(e){var n={h:0,s:0,b:0},r=Math.min(e.r,e.g,e.b),t=Math.max(e.r,e.g,e.b),o=t-r;return n.b=t,n.s=0!==t?255*o/t:0,n.h=0!==n.s?e.r===t?(e.g-e.b)/o:e.g===t?2+(e.b-e.r)/o:4+(e.r-e.g)/o:-1,n.h*=60,n.h<0&&(n.h+=360),n.s*=100/255,n.b*=100/255,n},ke=function(e){var n={r:null,g:null,b:null},r=Math.round(e.h),t=Math.round(255*e.s/100),o=Math.round(255*e.b/100);if(0===t)n={r:o,g:o,b:o};else{var i=o,l=(255-t)*o/255,c=r%60*(i-l)/60;360===r&&(r=0),r<60?(n.r=i,n.b=l,n.g=l+c):r<120?(n.g=i,n.b=l,n.r=i-c):r<180?(n.g=i,n.r=l,n.b=l+c):r<240?(n.b=i,n.r=l,n.g=i-c):r<300?(n.b=i,n.g=l,n.r=l+c):r<360?(n.r=i,n.g=l,n.b=i-c):(n.r=0,n.g=0,n.b=0)}return{r:Math.round(n.r),g:Math.round(n.g),b:Math.round(n.b)}},we=function(e){var n=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var r in n)1===n[r].length&&(n[r]="0"+n[r]);return n.join("")},Ee=function(e){return we(ke(e))},Oe=function(){pe(),ue(),se(),ae()},Se=function(){I.current&&f.alignOverlay(j.current,I.current.parentElement,y.appendTo||g&&g.appendTo||n.appendTo)};e.useImperativeHandle(h,(function(){return{props:y,show:fe,hide:de,focus:function(){return f.focus(I.current)},getElement:function(){return C.current},getOverlay:function(){return j.current},getInput:function(){return I.current}}})),e.useEffect((function(){d.combinedRefs(I,y.inputRef)}),[I,y.inputRef]),i((function(){le(y.value),Oe(),y.autoFocus&&f.focus(I.current,y.autoFocus)})),l((function(){B.current||F.current||le(y.value)}),[y.value]),l((function(){Oe()})),c((function(){m.clear(j.current)}));var Me,Ce,Ne,Pe,Te,je,Re,Ie,De=d.isNotEmpty(y.tooltip),He=(Me=s({ref:D,className:S("selector"),onMouseDown:function(e){return n=e,void(y.disabled||(ne(),Q(n)));var n},onTouchStart:function(e){return Q(e)},onTouchMove:function(e){return W(e)},onTouchEnd:ee},O("selector")),Ce=s({className:S("color")},O("color")),Ne=s({ref:H,className:S("colorHandle")},O("colorHandle")),je=e.createElement("div",Me,e.createElement("div",Ce,e.createElement("div",Ne))),Pe=s({className:S("hue"),onMouseDown:function(e){return n=e,void(y.disabled||(ne(),G(n)));var n},onTouchStart:function(e){return G(e)},onTouchMove:function(e){return W(e)},onTouchEnd:ee},O("hue")),Te=s({className:S("hueHandle")},O("hueHandle")),Re=e.createElement("div",w({ref:A},Pe),e.createElement("div",w({ref:Y},Te))),Ie=s({className:S("content")},O("content")),e.createElement("div",Ie,je,Re)),Ye=function(){if(!y.inline){var n=P.getOtherProps(y),r=s(R({ref:I,type:"text",readOnly:!0,className:S("input"),style:y.inputStyle,id:y.inputId,tabIndex:y.tabIndex,disabled:y.disabled,onClick:me,onKeyDown:be},n),O("input"));return e.createElement("input",r)}return null}(),Ae=s({id:y.id,ref:C,style:y.style,className:S("root")},P.getOtherProps(y),O("root"));return e.createElement(e.Fragment,null,e.createElement("div",Ae,Ye,e.createElement(T,{hostName:"ColorPicker",ref:j,appendTo:y.appendTo,inline:y.inline,disabled:y.disabled,panelStyle:y.panelStyle,panelClassName:y.panelClassName,onClick:function(e){y.inline||a.emit("overlay-click",{originalEvent:e,target:C.current})},in:y.inline||x,onEnter:function(){var e=y.inline?void 0:{position:"absolute",top:"0",left:"0"};m.set("overlay",j.current,g&&g.autoZIndex||n.autoZIndex,g&&g.zIndex.overlay||n.zIndex.overlay),f.addStyles(j.current,e),Se()},onEntered:function(){X(),y.onShow&&y.onShow()},onExit:function(){Z()},onExited:function(){m.clear(j.current),y.onHide&&y.onHide()},transitionOptions:y.transitionOptions,ptm:O,cx:S},He)),De&&e.createElement(u,w({target:C,content:y.tooltip},y.tooltipOptions,{pt:O("tooltip")})))})));I.displayName="ColorPicker";export{I as ColorPicker};
|