primereact 10.5.0 → 10.5.1
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/api/api.d.ts +2 -2
- package/autocomplete/autocomplete.cjs.js +2 -3
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +2 -3
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +2 -3
- package/autocomplete/autocomplete.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +4 -3
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +4 -3
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +4 -3
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +2 -3
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +2 -3
- package/button/button.esm.min.js +1 -1
- package/button/button.js +2 -3
- package/button/button.min.js +1 -1
- package/checkbox/checkbox.cjs.js +2 -3
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +2 -3
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +2 -3
- package/checkbox/checkbox.min.js +1 -1
- package/chips/chips.cjs.js +2 -3
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +2 -3
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +2 -3
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +2 -3
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +2 -3
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +2 -3
- package/colorpicker/colorpicker.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +6 -2
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +6 -2
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +7 -3
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +4 -3
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +4 -3
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +4 -3
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1733 -19015
- package/core/core.min.js +33 -33
- package/datatable/datatable.cjs.js +6 -5
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +10 -2
- package/datatable/datatable.esm.js +6 -5
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +6 -5
- package/datatable/datatable.min.js +1 -1
- package/dropdown/dropdown.cjs.js +26 -25
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +26 -25
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +26 -25
- package/dropdown/dropdown.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +2 -642
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +2 -642
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +2 -642
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +2 -642
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +2 -642
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +2 -642
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +2 -642
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +2 -642
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +2 -642
- package/icons/ban/index.min.js +1 -1
- package/icons/blank/index.cjs.js +62 -0
- package/icons/blank/index.cjs.min.js +1 -0
- package/icons/blank/index.d.ts +19 -0
- package/icons/blank/index.esm.js +38 -0
- package/icons/blank/index.esm.min.js +1 -0
- package/icons/blank/index.js +65 -0
- package/icons/blank/index.min.js +1 -0
- package/icons/blank/package.json +7 -0
- package/icons/download/index.cjs.js +2 -642
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +2 -642
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +2 -642
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +2 -642
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +2 -642
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +2 -642
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +2 -642
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +2 -642
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +2 -642
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +2 -642
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +2 -642
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +2 -642
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +2 -642
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +2 -642
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +2 -642
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +2 -642
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +2 -642
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +2 -642
- package/icons/infocircle/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +2 -642
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +2 -642
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +2 -642
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +2 -642
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +2 -642
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +2 -642
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +2 -642
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +2 -642
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +2 -642
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +2 -642
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +2 -642
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +2 -642
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +2 -642
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +2 -642
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +2 -642
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +2 -642
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +2 -642
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +2 -642
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +2 -642
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +2 -642
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +2 -642
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +2 -642
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +2 -642
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +2 -642
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +2 -642
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +2 -642
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +2 -642
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +2 -642
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +2 -642
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +2 -642
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +2 -642
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +2 -642
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +2 -642
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +2 -642
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +2 -642
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +2 -642
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +2 -642
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +2 -642
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +2 -642
- package/icons/thlarge/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +2 -642
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +2 -642
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +2 -642
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +2 -642
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +2 -642
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +2 -642
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +2 -642
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +2 -642
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +2 -642
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +2 -642
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +2 -642
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +2 -642
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +2 -642
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +2 -642
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +2 -642
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +2 -642
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +2 -642
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +2 -642
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +7 -566
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +9 -568
- package/image/image.esm.min.js +1 -1
- package/image/image.js +7 -566
- package/image/image.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +2 -3
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +2 -3
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +2 -3
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +2 -3
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +2 -3
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +2 -3
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +2 -3
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +2 -3
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +2 -3
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +2 -3
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +2 -3
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +2 -3
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/listbox/listbox.cjs.js +3 -4
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +3 -4
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +3 -4
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +3 -3
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +3 -3
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +3 -3
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +2 -3
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +2 -3
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +2 -3
- package/mention/mention.min.js +1 -1
- package/menubar/menubar.cjs.js +18 -14
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +18 -14
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +18 -14
- package/menubar/menubar.min.js +1 -1
- package/multiselect/multiselect.cjs.js +63 -37
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +63 -37
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +63 -37
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +2 -3
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +2 -3
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +2 -3
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/package.json +1 -1
- package/panelmenu/panelmenu.cjs.js +6 -9
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +18 -0
- package/panelmenu/panelmenu.esm.js +6 -9
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +6 -9
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +11 -1
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +11 -1
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +11 -1
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +34 -24
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +34 -24
- package/password/password.esm.min.js +1 -1
- package/password/password.js +34 -24
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +1 -1
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +1 -1
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +1 -1
- package/picklist/picklist.min.js +1 -1
- package/primereact.all.cjs.js +310 -758
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +310 -758
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +310 -758
- package/primereact.all.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +2 -4
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +2 -4
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +2 -4
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +2 -3
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +2 -3
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +2 -3
- package/rating/rating.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +3 -4
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +3 -4
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +3 -4
- package/selectbutton/selectbutton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +4 -3
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +4 -3
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +4 -3
- package/slidemenu/slidemenu.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +9 -12
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +9 -12
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +9 -12
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +9 -14
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +9 -14
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +9 -14
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +4 -3
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +4 -3
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +4 -3
- package/steps/steps.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +4 -3
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +4 -3
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +4 -3
- package/tabmenu/tabmenu.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +6 -8
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +6 -8
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +6 -8
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +2 -3
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +2 -3
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +2 -3
- package/togglebutton/togglebutton.min.js +1 -1
- package/tree/tree.cjs.js +32 -31
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +5 -0
- package/tree/tree.esm.js +32 -31
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +32 -31
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +3 -4
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +3 -4
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +3 -4
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +1 -1
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +1 -1
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +1 -1
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +3 -4
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +3 -4
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +3 -4
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/web-types.json +65 -1
package/icons/eyeslash/index.js
CHANGED
|
@@ -38,640 +38,8 @@ this.primereact.icons.eyeslash = (function (exports, React, iconbase) {
|
|
|
38
38
|
return _extends.apply(this, arguments);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
function _arrayWithHoles(arr) {
|
|
42
|
-
if (Array.isArray(arr)) return arr;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function _iterableToArrayLimit(r, l) {
|
|
46
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
47
|
-
if (null != t) {
|
|
48
|
-
var e,
|
|
49
|
-
n,
|
|
50
|
-
i,
|
|
51
|
-
u,
|
|
52
|
-
a = [],
|
|
53
|
-
f = !0,
|
|
54
|
-
o = !1;
|
|
55
|
-
try {
|
|
56
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
57
|
-
if (Object(t) !== t) return;
|
|
58
|
-
f = !1;
|
|
59
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
60
|
-
} catch (r) {
|
|
61
|
-
o = !0, n = r;
|
|
62
|
-
} finally {
|
|
63
|
-
try {
|
|
64
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
65
|
-
} finally {
|
|
66
|
-
if (o) throw n;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return a;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
function _arrayLikeToArray$1(arr, len) {
|
|
74
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
75
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
76
|
-
return arr2;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
function _unsupportedIterableToArray$1(o, minLen) {
|
|
80
|
-
if (!o) return;
|
|
81
|
-
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
|
|
82
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
83
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
84
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
85
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function _nonIterableRest() {
|
|
89
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function _slicedToArray(arr, i) {
|
|
93
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function _typeof(o) {
|
|
97
|
-
"@babel/helpers - typeof";
|
|
98
|
-
|
|
99
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
100
|
-
return typeof o;
|
|
101
|
-
} : function (o) {
|
|
102
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
103
|
-
}, _typeof(o);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function _arrayWithoutHoles(arr) {
|
|
107
|
-
if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
function _iterableToArray(iter) {
|
|
111
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function _nonIterableSpread() {
|
|
115
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function _toConsumableArray(arr) {
|
|
119
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread();
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
function _classCallCheck(instance, Constructor) {
|
|
123
|
-
if (!(instance instanceof Constructor)) {
|
|
124
|
-
throw new TypeError("Cannot call a class as a function");
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
function _toPrimitive(input, hint) {
|
|
129
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
130
|
-
var prim = input[Symbol.toPrimitive];
|
|
131
|
-
if (prim !== undefined) {
|
|
132
|
-
var res = prim.call(input, hint || "default");
|
|
133
|
-
if (_typeof(res) !== "object") return res;
|
|
134
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
135
|
-
}
|
|
136
|
-
return (hint === "string" ? String : Number)(input);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
function _toPropertyKey(arg) {
|
|
140
|
-
var key = _toPrimitive(arg, "string");
|
|
141
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function _defineProperties(target, props) {
|
|
145
|
-
for (var i = 0; i < props.length; i++) {
|
|
146
|
-
var descriptor = props[i];
|
|
147
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
148
|
-
descriptor.configurable = true;
|
|
149
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
150
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
154
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
155
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
156
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
157
|
-
writable: false
|
|
158
|
-
});
|
|
159
|
-
return Constructor;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
163
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
164
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
165
|
-
var ObjectUtils = /*#__PURE__*/function () {
|
|
166
|
-
function ObjectUtils() {
|
|
167
|
-
_classCallCheck(this, ObjectUtils);
|
|
168
|
-
}
|
|
169
|
-
_createClass(ObjectUtils, null, [{
|
|
170
|
-
key: "equals",
|
|
171
|
-
value: function equals(obj1, obj2, field) {
|
|
172
|
-
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') {
|
|
173
|
-
return this.deepEquals(this.resolveFieldData(obj1, field), this.resolveFieldData(obj2, field));
|
|
174
|
-
}
|
|
175
|
-
return this.deepEquals(obj1, obj2);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
180
|
-
* @param {*} a the first JSON object
|
|
181
|
-
* @param {*} b the second JSON object
|
|
182
|
-
* @returns true if equals, false it not
|
|
183
|
-
*/
|
|
184
|
-
}, {
|
|
185
|
-
key: "deepEquals",
|
|
186
|
-
value: function deepEquals(a, b) {
|
|
187
|
-
if (a === b) return true;
|
|
188
|
-
if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
|
|
189
|
-
var arrA = Array.isArray(a),
|
|
190
|
-
arrB = Array.isArray(b),
|
|
191
|
-
i,
|
|
192
|
-
length,
|
|
193
|
-
key;
|
|
194
|
-
if (arrA && arrB) {
|
|
195
|
-
length = a.length;
|
|
196
|
-
if (length !== b.length) return false;
|
|
197
|
-
for (i = length; i-- !== 0;) if (!this.deepEquals(a[i], b[i])) return false;
|
|
198
|
-
return true;
|
|
199
|
-
}
|
|
200
|
-
if (arrA !== arrB) return false;
|
|
201
|
-
var dateA = a instanceof Date,
|
|
202
|
-
dateB = b instanceof Date;
|
|
203
|
-
if (dateA !== dateB) return false;
|
|
204
|
-
if (dateA && dateB) return a.getTime() === b.getTime();
|
|
205
|
-
var regexpA = a instanceof RegExp,
|
|
206
|
-
regexpB = b instanceof RegExp;
|
|
207
|
-
if (regexpA !== regexpB) return false;
|
|
208
|
-
if (regexpA && regexpB) return a.toString() === b.toString();
|
|
209
|
-
var keys = Object.keys(a);
|
|
210
|
-
length = keys.length;
|
|
211
|
-
if (length !== Object.keys(b).length) return false;
|
|
212
|
-
for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
213
|
-
for (i = length; i-- !== 0;) {
|
|
214
|
-
key = keys[i];
|
|
215
|
-
if (!this.deepEquals(a[key], b[key])) return false;
|
|
216
|
-
}
|
|
217
|
-
return true;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/*eslint no-self-compare: "off"*/
|
|
221
|
-
return a !== a && b !== b;
|
|
222
|
-
}
|
|
223
|
-
}, {
|
|
224
|
-
key: "resolveFieldData",
|
|
225
|
-
value: function resolveFieldData(data, field) {
|
|
226
|
-
if (!data || !field) {
|
|
227
|
-
// short circuit if there is nothing to resolve
|
|
228
|
-
return null;
|
|
229
|
-
}
|
|
230
|
-
try {
|
|
231
|
-
var value = data[field];
|
|
232
|
-
if (this.isNotEmpty(value)) return value;
|
|
233
|
-
} catch (_unused) {
|
|
234
|
-
// Performance optimization: https://github.com/primefaces/primereact/issues/4797
|
|
235
|
-
// do nothing and continue to other methods to resolve field data
|
|
236
|
-
}
|
|
237
|
-
if (Object.keys(data).length) {
|
|
238
|
-
if (this.isFunction(field)) {
|
|
239
|
-
return field(data);
|
|
240
|
-
} else if (this.isNotEmpty(data[field])) {
|
|
241
|
-
return data[field];
|
|
242
|
-
} else if (field.indexOf('.') === -1) {
|
|
243
|
-
return data[field];
|
|
244
|
-
} else {
|
|
245
|
-
var fields = field.split('.');
|
|
246
|
-
var _value = data;
|
|
247
|
-
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
248
|
-
if (_value == null) {
|
|
249
|
-
return null;
|
|
250
|
-
}
|
|
251
|
-
_value = _value[fields[i]];
|
|
252
|
-
}
|
|
253
|
-
return _value;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
return null;
|
|
257
|
-
}
|
|
258
|
-
}, {
|
|
259
|
-
key: "findDiffKeys",
|
|
260
|
-
value: function findDiffKeys(obj1, obj2) {
|
|
261
|
-
if (!obj1 || !obj2) {
|
|
262
|
-
return {};
|
|
263
|
-
}
|
|
264
|
-
return Object.keys(obj1).filter(function (key) {
|
|
265
|
-
return !obj2.hasOwnProperty(key);
|
|
266
|
-
}).reduce(function (result, current) {
|
|
267
|
-
result[current] = obj1[current];
|
|
268
|
-
return result;
|
|
269
|
-
}, {});
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Removes keys from a JSON object that start with a string such as "data" to get all "data-id" type properties.
|
|
274
|
-
*
|
|
275
|
-
* @param {any} obj the JSON object to reduce
|
|
276
|
-
* @param {string[]} startsWiths the string(s) to check if the property starts with this key
|
|
277
|
-
* @returns the JSON object containing only the key/values that match the startsWith string
|
|
278
|
-
*/
|
|
279
|
-
}, {
|
|
280
|
-
key: "reduceKeys",
|
|
281
|
-
value: function reduceKeys(obj, startsWiths) {
|
|
282
|
-
var result = {};
|
|
283
|
-
if (!obj || !startsWiths || startsWiths.length === 0) {
|
|
284
|
-
return result;
|
|
285
|
-
}
|
|
286
|
-
Object.keys(obj).filter(function (key) {
|
|
287
|
-
return startsWiths.some(function (value) {
|
|
288
|
-
return key.startsWith(value);
|
|
289
|
-
});
|
|
290
|
-
}).forEach(function (key) {
|
|
291
|
-
result[key] = obj[key];
|
|
292
|
-
delete obj[key];
|
|
293
|
-
});
|
|
294
|
-
return result;
|
|
295
|
-
}
|
|
296
|
-
}, {
|
|
297
|
-
key: "reorderArray",
|
|
298
|
-
value: function reorderArray(value, from, to) {
|
|
299
|
-
if (value && from !== to) {
|
|
300
|
-
if (to >= value.length) {
|
|
301
|
-
to %= value.length;
|
|
302
|
-
from %= value.length;
|
|
303
|
-
}
|
|
304
|
-
value.splice(to, 0, value.splice(from, 1)[0]);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}, {
|
|
308
|
-
key: "findIndexInList",
|
|
309
|
-
value: function findIndexInList(value, list, dataKey) {
|
|
310
|
-
var _this = this;
|
|
311
|
-
if (list) {
|
|
312
|
-
return dataKey ? list.findIndex(function (item) {
|
|
313
|
-
return _this.equals(item, value, dataKey);
|
|
314
|
-
}) : list.findIndex(function (item) {
|
|
315
|
-
return item === value;
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
return -1;
|
|
319
|
-
}
|
|
320
|
-
}, {
|
|
321
|
-
key: "getJSXElement",
|
|
322
|
-
value: function getJSXElement(obj) {
|
|
323
|
-
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
324
|
-
params[_key - 1] = arguments[_key];
|
|
325
|
-
}
|
|
326
|
-
return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
|
|
327
|
-
}
|
|
328
|
-
}, {
|
|
329
|
-
key: "getItemValue",
|
|
330
|
-
value: function getItemValue(obj) {
|
|
331
|
-
for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
332
|
-
params[_key2 - 1] = arguments[_key2];
|
|
333
|
-
}
|
|
334
|
-
return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
|
|
335
|
-
}
|
|
336
|
-
}, {
|
|
337
|
-
key: "getProp",
|
|
338
|
-
value: function getProp(props) {
|
|
339
|
-
var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
340
|
-
var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
341
|
-
var value = props ? props[prop] : undefined;
|
|
342
|
-
return value === undefined ? defaultProps[prop] : value;
|
|
343
|
-
}
|
|
344
|
-
}, {
|
|
345
|
-
key: "getPropCaseInsensitive",
|
|
346
|
-
value: function getPropCaseInsensitive(props, prop) {
|
|
347
|
-
var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
348
|
-
var fkey = this.toFlatCase(prop);
|
|
349
|
-
for (var key in props) {
|
|
350
|
-
if (props.hasOwnProperty(key) && this.toFlatCase(key) === fkey) {
|
|
351
|
-
return props[key];
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
for (var _key3 in defaultProps) {
|
|
355
|
-
if (defaultProps.hasOwnProperty(_key3) && this.toFlatCase(_key3) === fkey) {
|
|
356
|
-
return defaultProps[_key3];
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
return undefined; // Property not found
|
|
360
|
-
}
|
|
361
|
-
}, {
|
|
362
|
-
key: "getMergedProps",
|
|
363
|
-
value: function getMergedProps(props, defaultProps) {
|
|
364
|
-
return Object.assign({}, defaultProps, props);
|
|
365
|
-
}
|
|
366
|
-
}, {
|
|
367
|
-
key: "getDiffProps",
|
|
368
|
-
value: function getDiffProps(props, defaultProps) {
|
|
369
|
-
return this.findDiffKeys(props, defaultProps);
|
|
370
|
-
}
|
|
371
|
-
}, {
|
|
372
|
-
key: "getPropValue",
|
|
373
|
-
value: function getPropValue(obj) {
|
|
374
|
-
for (var _len3 = arguments.length, params = new Array(_len3 > 1 ? _len3 - 1 : 0), _key4 = 1; _key4 < _len3; _key4++) {
|
|
375
|
-
params[_key4 - 1] = arguments[_key4];
|
|
376
|
-
}
|
|
377
|
-
return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
|
|
378
|
-
}
|
|
379
|
-
}, {
|
|
380
|
-
key: "getComponentProp",
|
|
381
|
-
value: function getComponentProp(component) {
|
|
382
|
-
var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
383
|
-
var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
384
|
-
return this.isNotEmpty(component) ? this.getProp(component.props, prop, defaultProps) : undefined;
|
|
385
|
-
}
|
|
386
|
-
}, {
|
|
387
|
-
key: "getComponentProps",
|
|
388
|
-
value: function getComponentProps(component, defaultProps) {
|
|
389
|
-
return this.isNotEmpty(component) ? this.getMergedProps(component.props, defaultProps) : undefined;
|
|
390
|
-
}
|
|
391
|
-
}, {
|
|
392
|
-
key: "getComponentDiffProps",
|
|
393
|
-
value: function getComponentDiffProps(component, defaultProps) {
|
|
394
|
-
return this.isNotEmpty(component) ? this.getDiffProps(component.props, defaultProps) : undefined;
|
|
395
|
-
}
|
|
396
|
-
}, {
|
|
397
|
-
key: "isValidChild",
|
|
398
|
-
value: function isValidChild(child, type, validTypes) {
|
|
399
|
-
/* eslint-disable */
|
|
400
|
-
if (child) {
|
|
401
|
-
var _child$type;
|
|
402
|
-
var childType = this.getComponentProp(child, '__TYPE') || (child.type ? child.type.displayName : undefined);
|
|
403
|
-
|
|
404
|
-
// for App Router in Next.js ^14,
|
|
405
|
-
if (!childType && child !== null && child !== void 0 && (_child$type = child.type) !== null && _child$type !== void 0 && (_child$type = _child$type._payload) !== null && _child$type !== void 0 && _child$type.value) {
|
|
406
|
-
childType = child.type._payload.value.find(function (v) {
|
|
407
|
-
return v === type;
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
var isValid = childType === type;
|
|
411
|
-
try {
|
|
412
|
-
var messageTypes; if ("production" !== 'production' && !isValid) ;
|
|
413
|
-
} catch (error) {
|
|
414
|
-
// NOOP
|
|
415
|
-
}
|
|
416
|
-
return isValid;
|
|
417
|
-
}
|
|
418
|
-
return false;
|
|
419
|
-
/* eslint-enable */
|
|
420
|
-
}
|
|
421
|
-
}, {
|
|
422
|
-
key: "getRefElement",
|
|
423
|
-
value: function getRefElement(ref) {
|
|
424
|
-
if (ref) {
|
|
425
|
-
return _typeof(ref) === 'object' && ref.hasOwnProperty('current') ? ref.current : ref;
|
|
426
|
-
}
|
|
427
|
-
return null;
|
|
428
|
-
}
|
|
429
|
-
}, {
|
|
430
|
-
key: "combinedRefs",
|
|
431
|
-
value: function combinedRefs(innerRef, forwardRef) {
|
|
432
|
-
if (innerRef && forwardRef) {
|
|
433
|
-
if (typeof forwardRef === 'function') {
|
|
434
|
-
forwardRef(innerRef.current);
|
|
435
|
-
} else {
|
|
436
|
-
forwardRef.current = innerRef.current;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
}, {
|
|
441
|
-
key: "removeAccents",
|
|
442
|
-
value: function removeAccents(str) {
|
|
443
|
-
if (str && str.search(/[\xC0-\xFF]/g) > -1) {
|
|
444
|
-
str = str.replace(/[\xC0-\xC5]/g, 'A').replace(/[\xC6]/g, 'AE').replace(/[\xC7]/g, 'C').replace(/[\xC8-\xCB]/g, 'E').replace(/[\xCC-\xCF]/g, 'I').replace(/[\xD0]/g, 'D').replace(/[\xD1]/g, 'N').replace(/[\xD2-\xD6\xD8]/g, 'O').replace(/[\xD9-\xDC]/g, 'U').replace(/[\xDD]/g, 'Y').replace(/[\xDE]/g, 'P').replace(/[\xE0-\xE5]/g, 'a').replace(/[\xE6]/g, 'ae').replace(/[\xE7]/g, 'c').replace(/[\xE8-\xEB]/g, 'e').replace(/[\xEC-\xEF]/g, 'i').replace(/[\xF1]/g, 'n').replace(/[\xF2-\xF6\xF8]/g, 'o').replace(/[\xF9-\xFC]/g, 'u').replace(/[\xFE]/g, 'p').replace(/[\xFD\xFF]/g, 'y');
|
|
445
|
-
}
|
|
446
|
-
return str;
|
|
447
|
-
}
|
|
448
|
-
}, {
|
|
449
|
-
key: "toFlatCase",
|
|
450
|
-
value: function toFlatCase(str) {
|
|
451
|
-
// convert snake, kebab, camel and pascal cases to flat case
|
|
452
|
-
return this.isNotEmpty(str) && this.isString(str) ? str.replace(/(-|_)/g, '').toLowerCase() : str;
|
|
453
|
-
}
|
|
454
|
-
}, {
|
|
455
|
-
key: "toCapitalCase",
|
|
456
|
-
value: function toCapitalCase(str) {
|
|
457
|
-
return this.isNotEmpty(str) && this.isString(str) ? str[0].toUpperCase() + str.slice(1) : str;
|
|
458
|
-
}
|
|
459
|
-
}, {
|
|
460
|
-
key: "trim",
|
|
461
|
-
value: function trim(value) {
|
|
462
|
-
// trim only if the value is actually a string
|
|
463
|
-
return this.isNotEmpty(value) && this.isString(value) ? value.trim() : value;
|
|
464
|
-
}
|
|
465
|
-
}, {
|
|
466
|
-
key: "isEmpty",
|
|
467
|
-
value: function isEmpty(value) {
|
|
468
|
-
return value === null || value === undefined || value === '' || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && _typeof(value) === 'object' && Object.keys(value).length === 0;
|
|
469
|
-
}
|
|
470
|
-
}, {
|
|
471
|
-
key: "isNotEmpty",
|
|
472
|
-
value: function isNotEmpty(value) {
|
|
473
|
-
return !this.isEmpty(value);
|
|
474
|
-
}
|
|
475
|
-
}, {
|
|
476
|
-
key: "isFunction",
|
|
477
|
-
value: function isFunction(value) {
|
|
478
|
-
return !!(value && value.constructor && value.call && value.apply);
|
|
479
|
-
}
|
|
480
|
-
}, {
|
|
481
|
-
key: "isObject",
|
|
482
|
-
value: function isObject(value) {
|
|
483
|
-
return value !== null && value instanceof Object && value.constructor === Object;
|
|
484
|
-
}
|
|
485
|
-
}, {
|
|
486
|
-
key: "isDate",
|
|
487
|
-
value: function isDate(value) {
|
|
488
|
-
return value !== null && value instanceof Date && value.constructor === Date;
|
|
489
|
-
}
|
|
490
|
-
}, {
|
|
491
|
-
key: "isArray",
|
|
492
|
-
value: function isArray(value) {
|
|
493
|
-
return value !== null && Array.isArray(value);
|
|
494
|
-
}
|
|
495
|
-
}, {
|
|
496
|
-
key: "isString",
|
|
497
|
-
value: function isString(value) {
|
|
498
|
-
return value !== null && typeof value === 'string';
|
|
499
|
-
}
|
|
500
|
-
}, {
|
|
501
|
-
key: "isPrintableCharacter",
|
|
502
|
-
value: function isPrintableCharacter() {
|
|
503
|
-
var _char = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
504
|
-
return this.isNotEmpty(_char) && _char.length === 1 && _char.match(/\S| /);
|
|
505
|
-
}
|
|
506
|
-
}, {
|
|
507
|
-
key: "isLetter",
|
|
508
|
-
value: function isLetter(_char2) {
|
|
509
|
-
return /^[a-zA-Z\u00C0-\u017F]$/.test(_char2);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
|
|
514
|
-
* https://caniuse.com/mdn-javascript_builtins_array_findlast
|
|
515
|
-
*/
|
|
516
|
-
}, {
|
|
517
|
-
key: "findLast",
|
|
518
|
-
value: function findLast(arr, callback) {
|
|
519
|
-
var item;
|
|
520
|
-
if (this.isNotEmpty(arr)) {
|
|
521
|
-
try {
|
|
522
|
-
item = arr.findLast(callback);
|
|
523
|
-
} catch (_unused2) {
|
|
524
|
-
item = _toConsumableArray(arr).reverse().find(callback);
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
return item;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
/**
|
|
531
|
-
* Firefox-v103 does not currently support the "findLastIndex" method. It is stated that this method will be supported with Firefox-v104.
|
|
532
|
-
* https://caniuse.com/mdn-javascript_builtins_array_findlastindex
|
|
533
|
-
*/
|
|
534
|
-
}, {
|
|
535
|
-
key: "findLastIndex",
|
|
536
|
-
value: function findLastIndex(arr, callback) {
|
|
537
|
-
var index = -1;
|
|
538
|
-
if (this.isNotEmpty(arr)) {
|
|
539
|
-
try {
|
|
540
|
-
index = arr.findLastIndex(callback);
|
|
541
|
-
} catch (_unused3) {
|
|
542
|
-
index = arr.lastIndexOf(_toConsumableArray(arr).reverse().find(callback));
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
return index;
|
|
546
|
-
}
|
|
547
|
-
}, {
|
|
548
|
-
key: "sort",
|
|
549
|
-
value: function sort(value1, value2) {
|
|
550
|
-
var order = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
551
|
-
var comparator = arguments.length > 3 ? arguments[3] : undefined;
|
|
552
|
-
var nullSortOrder = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
|
|
553
|
-
var result = this.compare(value1, value2, comparator, order);
|
|
554
|
-
var finalSortOrder = order;
|
|
555
|
-
|
|
556
|
-
// nullSortOrder == 1 means Excel like sort nulls at bottom
|
|
557
|
-
if (this.isEmpty(value1) || this.isEmpty(value2)) {
|
|
558
|
-
finalSortOrder = nullSortOrder === 1 ? order : nullSortOrder;
|
|
559
|
-
}
|
|
560
|
-
return finalSortOrder * result;
|
|
561
|
-
}
|
|
562
|
-
}, {
|
|
563
|
-
key: "compare",
|
|
564
|
-
value: function compare(value1, value2, comparator) {
|
|
565
|
-
var order = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
566
|
-
var result = -1;
|
|
567
|
-
var emptyValue1 = this.isEmpty(value1);
|
|
568
|
-
var emptyValue2 = this.isEmpty(value2);
|
|
569
|
-
if (emptyValue1 && emptyValue2) result = 0;else if (emptyValue1) result = order;else if (emptyValue2) result = -order;else if (typeof value1 === 'string' && typeof value2 === 'string') result = comparator(value1, value2);else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
570
|
-
return result;
|
|
571
|
-
}
|
|
572
|
-
}, {
|
|
573
|
-
key: "localeComparator",
|
|
574
|
-
value: function localeComparator(locale) {
|
|
575
|
-
//performance gain using Int.Collator. It is not recommended to use localeCompare against large arrays.
|
|
576
|
-
return new Intl.Collator(locale, {
|
|
577
|
-
numeric: true
|
|
578
|
-
}).compare;
|
|
579
|
-
}
|
|
580
|
-
}, {
|
|
581
|
-
key: "findChildrenByKey",
|
|
582
|
-
value: function findChildrenByKey(data, key) {
|
|
583
|
-
var _iterator = _createForOfIteratorHelper(data),
|
|
584
|
-
_step;
|
|
585
|
-
try {
|
|
586
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
587
|
-
var item = _step.value;
|
|
588
|
-
if (item.key === key) {
|
|
589
|
-
return item.children || [];
|
|
590
|
-
} else if (item.children) {
|
|
591
|
-
var result = this.findChildrenByKey(item.children, key);
|
|
592
|
-
if (result.length > 0) {
|
|
593
|
-
return result;
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
} catch (err) {
|
|
598
|
-
_iterator.e(err);
|
|
599
|
-
} finally {
|
|
600
|
-
_iterator.f();
|
|
601
|
-
}
|
|
602
|
-
return [];
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* This function takes mutates and object with a new value given
|
|
607
|
-
* a specific field. This will handle deeply nested fields that
|
|
608
|
-
* need to be modified or created.
|
|
609
|
-
*
|
|
610
|
-
* e.g:
|
|
611
|
-
* data = {
|
|
612
|
-
* nested: {
|
|
613
|
-
* foo: "bar"
|
|
614
|
-
* }
|
|
615
|
-
* }
|
|
616
|
-
*
|
|
617
|
-
* field = "nested.foo"
|
|
618
|
-
* value = "baz"
|
|
619
|
-
*
|
|
620
|
-
* The function will mutate data to be
|
|
621
|
-
* e.g:
|
|
622
|
-
* data = {
|
|
623
|
-
* nested: {
|
|
624
|
-
* foo: "baz"
|
|
625
|
-
* }
|
|
626
|
-
* }
|
|
627
|
-
*
|
|
628
|
-
* @param {object} data the object to be modified
|
|
629
|
-
* @param {string} field the field in the object to replace
|
|
630
|
-
* @param {any} value the value to have replaced in the field
|
|
631
|
-
*/
|
|
632
|
-
}, {
|
|
633
|
-
key: "mutateFieldData",
|
|
634
|
-
value: function mutateFieldData(data, field, value) {
|
|
635
|
-
if (_typeof(data) !== 'object' || typeof field !== 'string') {
|
|
636
|
-
// short circuit if there is nothing to resolve
|
|
637
|
-
return;
|
|
638
|
-
}
|
|
639
|
-
var fields = field.split('.');
|
|
640
|
-
var obj = data;
|
|
641
|
-
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
642
|
-
// Check if we are on the last field
|
|
643
|
-
if (i + 1 - len === 0) {
|
|
644
|
-
obj[fields[i]] = value;
|
|
645
|
-
break;
|
|
646
|
-
}
|
|
647
|
-
if (!obj[fields[i]]) {
|
|
648
|
-
obj[fields[i]] = {};
|
|
649
|
-
}
|
|
650
|
-
obj = obj[fields[i]];
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
}]);
|
|
654
|
-
return ObjectUtils;
|
|
655
|
-
}();
|
|
656
|
-
|
|
657
|
-
var lastId = 0;
|
|
658
|
-
function UniqueComponentId() {
|
|
659
|
-
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pr_id_';
|
|
660
|
-
lastId++;
|
|
661
|
-
return "".concat(prefix).concat(lastId);
|
|
662
|
-
}
|
|
663
|
-
|
|
664
41
|
var EyeSlashIcon = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
665
42
|
var pti = iconbase.IconBase.getPTI(inProps);
|
|
666
|
-
var _React$useState = React__namespace.useState(inProps.id),
|
|
667
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
668
|
-
pathId = _React$useState2[0],
|
|
669
|
-
setPathId = _React$useState2[1];
|
|
670
|
-
React__namespace.useEffect(function () {
|
|
671
|
-
if (ObjectUtils.isEmpty(pathId)) {
|
|
672
|
-
setPathId(UniqueComponentId('pr_icon_clip_'));
|
|
673
|
-
}
|
|
674
|
-
}, [pathId]);
|
|
675
43
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
676
44
|
ref: ref,
|
|
677
45
|
width: "14",
|
|
@@ -679,20 +47,12 @@ this.primereact.icons.eyeslash = (function (exports, React, iconbase) {
|
|
|
679
47
|
viewBox: "0 0 14 14",
|
|
680
48
|
fill: "none",
|
|
681
49
|
xmlns: "http://www.w3.org/2000/svg"
|
|
682
|
-
}, pti), /*#__PURE__*/React__namespace.createElement("
|
|
683
|
-
clipPath: "url(#".concat(pathId, ")")
|
|
684
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
50
|
+
}, pti), /*#__PURE__*/React__namespace.createElement("path", {
|
|
685
51
|
fillRule: "evenodd",
|
|
686
52
|
clipRule: "evenodd",
|
|
687
53
|
d: "M13.9414 6.74792C13.9437 6.75295 13.9455 6.757 13.9469 6.76003C13.982 6.8394 14.0001 6.9252 14.0001 7.01195C14.0001 7.0987 13.982 7.1845 13.9469 7.26386C13.6004 8.00059 13.1711 8.69549 12.6674 9.33515C12.6115 9.4071 12.54 9.46538 12.4582 9.50556C12.3765 9.54574 12.2866 9.56678 12.1955 9.56707C12.0834 9.56671 11.9737 9.53496 11.8788 9.47541C11.7838 9.41586 11.7074 9.3309 11.6583 9.23015C11.6092 9.12941 11.5893 9.01691 11.6008 8.90543C11.6124 8.79394 11.6549 8.68793 11.7237 8.5994C12.1065 8.09726 12.4437 7.56199 12.7313 6.99995C12.2595 6.08027 10.3402 2.8014 6.99732 2.8014C6.63723 2.80218 6.27816 2.83969 5.92569 2.91336C5.77666 2.93304 5.62568 2.89606 5.50263 2.80972C5.37958 2.72337 5.29344 2.59398 5.26125 2.44714C5.22907 2.30031 5.2532 2.14674 5.32885 2.01685C5.40451 1.88696 5.52618 1.79021 5.66978 1.74576C6.10574 1.64961 6.55089 1.60134 6.99732 1.60181C11.5916 1.60181 13.7864 6.40856 13.9414 6.74792ZM2.20333 1.61685C2.35871 1.61411 2.5091 1.67179 2.6228 1.77774L12.2195 11.3744C12.3318 11.4869 12.3949 11.6393 12.3949 11.7983C12.3949 11.9572 12.3318 12.1097 12.2195 12.2221C12.107 12.3345 11.9546 12.3976 11.7956 12.3976C11.6367 12.3976 11.4842 12.3345 11.3718 12.2221L10.5081 11.3584C9.46549 12.0426 8.24432 12.4042 6.99729 12.3981C2.403 12.3981 0.208197 7.59135 0.0532336 7.25198C0.0509364 7.24694 0.0490875 7.2429 0.0476856 7.23986C0.0162332 7.16518 3.05176e-05 7.08497 3.05176e-05 7.00394C3.05176e-05 6.92291 0.0162332 6.8427 0.0476856 6.76802C0.631261 5.47831 1.46902 4.31959 2.51084 3.36119L1.77509 2.62545C1.66914 2.51175 1.61146 2.36136 1.61421 2.20597C1.61695 2.05059 1.6799 1.90233 1.78979 1.79244C1.89968 1.68254 2.04794 1.6196 2.20333 1.61685ZM7.45314 8.35147L5.68574 6.57609V6.5361C5.5872 6.78938 5.56498 7.06597 5.62183 7.33173C5.67868 7.59749 5.8121 7.84078 6.00563 8.03158C6.19567 8.21043 6.43052 8.33458 6.68533 8.39089C6.94014 8.44721 7.20543 8.43359 7.45314 8.35147ZM1.26327 6.99994C1.7351 7.91163 3.64645 11.1985 6.99729 11.1985C7.9267 11.2048 8.8408 10.9618 9.64438 10.4947L8.35682 9.20718C7.86027 9.51441 7.27449 9.64491 6.69448 9.57752C6.11446 9.51014 5.57421 9.24881 5.16131 8.83592C4.74842 8.42303 4.4871 7.88277 4.41971 7.30276C4.35232 6.72274 4.48282 6.13697 4.79005 5.64041L3.35855 4.2089C2.4954 5.00336 1.78523 5.94935 1.26327 6.99994Z",
|
|
688
54
|
fill: "currentColor"
|
|
689
|
-
}))
|
|
690
|
-
id: pathId
|
|
691
|
-
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
692
|
-
width: "14",
|
|
693
|
-
height: "14",
|
|
694
|
-
fill: "white"
|
|
695
|
-
}))));
|
|
55
|
+
}));
|
|
696
56
|
}));
|
|
697
57
|
EyeSlashIcon.displayName = 'EyeSlashIcon';
|
|
698
58
|
|