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
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.icons=this.primereact.icons||{},this.primereact.icons.windowminimize=function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i=n(t);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function a(e){if(Array.isArray(e))return e}function u(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,u=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(u.push(n.value),u.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function f(){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 s(e){return s="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},s(e)}function y(e){if(Array.isArray(e))return l(e)}function p(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){return y(e)||p(e)||c(e)||v()}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=void 0,"symbol"===s(i=g(n.key,"string"))?i:String(i)),n)}var i}function C(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=b(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function b(e,t){if(e){if("string"==typeof e)return E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var k=function(){function e(){d(this,e)}var t,r,n;return t=e,n=[{key:"equals",value:function(e,t,r){return r&&e&&"object"===s(e)&&t&&"object"===s(t)?this.deepEquals(this.resolveFieldData(e,r),this.resolveFieldData(t,r)):this.deepEquals(e,t)}},{key:"deepEquals",value:function(e,t){if(e===t)return!0;if(e&&t&&"object"==s(e)&&"object"==s(t)){var r,n,i,o=Array.isArray(e),a=Array.isArray(t);if(o&&a){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!this.deepEquals(e[r],t[r]))return!1;return!0}if(o!==a)return!1;var u=e instanceof Date,l=t instanceof Date;if(u!==l)return!1;if(u&&l)return e.getTime()===t.getTime();var c=e instanceof RegExp,f=t instanceof RegExp;if(c!==f)return!1;if(c&&f)return e.toString()===t.toString();var y=Object.keys(e);if((n=y.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,y[r]))return!1;for(r=n;0!=r--;)if(!this.deepEquals(e[i=y[r]],t[i]))return!1;return!0}return e!=e&&t!=t}},{key:"resolveFieldData",value:function(e,t){if(!e||!t)return null;try{var r=e[t];if(this.isNotEmpty(r))return r}catch(e){}if(Object.keys(e).length){if(this.isFunction(t))return t(e);if(this.isNotEmpty(e[t]))return e[t];if(-1===t.indexOf("."))return e[t];for(var n=t.split("."),i=e,o=0,a=n.length;o<a;++o){if(null==i)return null;i=i[n[o]]}return i}return null}},{key:"findDiffKeys",value:function(e,t){return e&&t?Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)})).reduce((function(t,r){return t[r]=e[r],t}),{}):{}}},{key:"reduceKeys",value:function(e,t){var r={};return e&&t&&0!==t.length?(Object.keys(e).filter((function(e){return t.some((function(t){return e.startsWith(t)}))})).forEach((function(t){r[t]=e[t],delete e[t]})),r):r}},{key:"reorderArray",value:function(e,t,r){e&&t!==r&&(r>=e.length&&(r%=e.length,t%=e.length),e.splice(r,0,e.splice(t,1)[0]))}},{key:"findIndexInList",value:function(e,t,r){var n=this;return t?t.findIndex(r?function(t){return n.equals(t,e,r)}:function(t){return t===e}):-1}},{key:"getJSXElement",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return this.isFunction(e)?e.apply(void 0,r):e}},{key:"getItemValue",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return this.isFunction(e)?e.apply(void 0,r):e}},{key:"getProp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e?e[t]:void 0;return void 0===r?(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})[t]:r}},{key:"getPropCaseInsensitive",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.toFlatCase(t);for(var i in e)if(e.hasOwnProperty(i)&&this.toFlatCase(i)===n)return e[i];for(var o in r)if(r.hasOwnProperty(o)&&this.toFlatCase(o)===n)return r[o]}},{key:"getMergedProps",value:function(e,t){return Object.assign({},t,e)}},{key:"getDiffProps",value:function(e,t){return this.findDiffKeys(e,t)}},{key:"getPropValue",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return this.isFunction(e)?e.apply(void 0,r):e}},{key:"getComponentProp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.isNotEmpty(e)?this.getProp(e.props,t,r):void 0}},{key:"getComponentProps",value:function(e,t){return this.isNotEmpty(e)?this.getMergedProps(e.props,t):void 0}},{key:"getComponentDiffProps",value:function(e,t){return this.isNotEmpty(e)?this.getDiffProps(e.props,t):void 0}},{key:"isValidChild",value:function(e,t,r){if(e){var n,i=this.getComponentProp(e,"__TYPE")||(e.type?e.type.displayName:void 0);!i&&null!=e&&null!==(n=e.type)&&void 0!==n&&null!==(n=n._payload)&&void 0!==n&&n.value&&(i=e.type._payload.value.find((function(e){return e===t})));var o=i===t;return o}return!1}},{key:"getRefElement",value:function(e){return e?"object"===s(e)&&e.hasOwnProperty("current")?e.current:e:null}},{key:"combinedRefs",value:function(e,t){e&&t&&("function"==typeof t?t(e.current):t.current=e.current)}},{key:"removeAccents",value:function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.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")),e}},{key:"toFlatCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.replace(/(-|_)/g,"").toLowerCase():e}},{key:"toCapitalCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e[0].toUpperCase()+e.slice(1):e}},{key:"trim",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.trim():e}},{key:"isEmpty",value:function(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"===s(e)&&0===Object.keys(e).length}},{key:"isNotEmpty",value:function(e){return!this.isEmpty(e)}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"isObject",value:function(e){return null!==e&&e instanceof Object&&e.constructor===Object}},{key:"isDate",value:function(e){return null!==e&&e instanceof Date&&e.constructor===Date}},{key:"isArray",value:function(e){return null!==e&&Array.isArray(e)}},{key:"isString",value:function(e){return null!==e&&"string"==typeof e}},{key:"isPrintableCharacter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)}},{key:"isLetter",value:function(e){return/^[a-zA-Z\u00C0-\u017F]$/.test(e)}},{key:"findLast",value:function(e,t){var r;if(this.isNotEmpty(e))try{r=e.findLast(t)}catch(n){r=h(e).reverse().find(t)}return r}},{key:"findLastIndex",value:function(e,t){var r=-1;if(this.isNotEmpty(e))try{r=e.findLastIndex(t)}catch(n){r=e.lastIndexOf(h(e).reverse().find(t))}return r}},{key:"sort",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=this.compare(e,t,arguments.length>3?arguments[3]:void 0,r),o=r;return(this.isEmpty(e)||this.isEmpty(t))&&(o=1===n?r:n),o*i}},{key:"compare",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=this.isEmpty(e),o=this.isEmpty(t);return i&&o?0:i?n:o?-n:"string"==typeof e&&"string"==typeof t?r(e,t):e<t?-1:e>t?1:0}},{key:"localeComparator",value:function(e){return new Intl.Collator(e,{numeric:!0}).compare}},{key:"findChildrenByKey",value:function(e,t){var r,n=C(e);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(i.key===t)return i.children||[];if(i.children){var o=this.findChildrenByKey(i.children,t);if(o.length>0)return o}}}catch(e){n.e(e)}finally{n.f()}return[]}},{key:"mutateFieldData",value:function(e,t,r){if("object"===s(e)&&"string"==typeof t)for(var n=t.split("."),i=e,o=0,a=n.length;o<a;++o){if(o+1-a==0){i[n[o]]=r;break}i[n[o]]||(i[n[o]]={}),i=i[n[o]]}}}],(r=null)&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),x=0;function w(){return x++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pr_id_").concat(x)}var j=i.memo(i.forwardRef((function(e,t){var n,l,s=r.IconBase.getPTI(e),y=i.useState(e.id),p=(l=2,a(n=y)||u(n,l)||c(n,l)||f()),v=p[0],h=p[1];return i.useEffect((function(){k.isEmpty(v)&&h(w("pr_icon_clip_"))}),[v]),i.createElement("svg",o({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s),i.createElement("g",{clipPath:"url(#".concat(v,")")},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"})),i.createElement("defs",null,i.createElement("clipPath",{id:v},i.createElement("rect",{width:"14",height:"14",fill:"white"}))))})));return j.displayName="WindowMinimizeIcon",e.WindowMinimizeIcon=j,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.iconbase);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.icons=this.primereact.icons||{},this.primereact.icons.windowminimize=function(e,t,r){"use strict";function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=i(t);function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},C.apply(this,arguments)}var c=n.memo(n.forwardRef((function(e,t){var i=r.IconBase.getPTI(e);return n.createElement("svg",C({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"}))})));return c.displayName="WindowMinimizeIcon",e.WindowMinimizeIcon=c,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.iconbase);
|
package/image/image.cjs.js
CHANGED
|
@@ -129,19 +129,19 @@ function _iterableToArrayLimit(r, l) {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
function _arrayLikeToArray
|
|
132
|
+
function _arrayLikeToArray(arr, len) {
|
|
133
133
|
if (len == null || len > arr.length) len = arr.length;
|
|
134
134
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
135
135
|
return arr2;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
function _unsupportedIterableToArray
|
|
138
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
139
139
|
if (!o) return;
|
|
140
|
-
if (typeof o === "string") return _arrayLikeToArray
|
|
140
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
141
141
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
142
142
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
143
143
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
144
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray
|
|
144
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
function _nonIterableRest() {
|
|
@@ -149,562 +149,11 @@ function _nonIterableRest() {
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
function _slicedToArray(arr, i) {
|
|
152
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
function _arrayWithoutHoles(arr) {
|
|
156
|
-
if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
function _iterableToArray(iter) {
|
|
160
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
function _nonIterableSpread() {
|
|
164
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
function _toConsumableArray(arr) {
|
|
168
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread();
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
function _classCallCheck(instance, Constructor) {
|
|
172
|
-
if (!(instance instanceof Constructor)) {
|
|
173
|
-
throw new TypeError("Cannot call a class as a function");
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
function _defineProperties(target, props) {
|
|
178
|
-
for (var i = 0; i < props.length; i++) {
|
|
179
|
-
var descriptor = props[i];
|
|
180
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
181
|
-
descriptor.configurable = true;
|
|
182
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
183
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
187
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
188
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
189
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
190
|
-
writable: false
|
|
191
|
-
});
|
|
192
|
-
return Constructor;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
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; } } }; }
|
|
196
|
-
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); }
|
|
197
|
-
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; }
|
|
198
|
-
var ObjectUtils = /*#__PURE__*/function () {
|
|
199
|
-
function ObjectUtils() {
|
|
200
|
-
_classCallCheck(this, ObjectUtils);
|
|
201
|
-
}
|
|
202
|
-
_createClass(ObjectUtils, null, [{
|
|
203
|
-
key: "equals",
|
|
204
|
-
value: function equals(obj1, obj2, field) {
|
|
205
|
-
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') {
|
|
206
|
-
return this.deepEquals(this.resolveFieldData(obj1, field), this.resolveFieldData(obj2, field));
|
|
207
|
-
}
|
|
208
|
-
return this.deepEquals(obj1, obj2);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
213
|
-
* @param {*} a the first JSON object
|
|
214
|
-
* @param {*} b the second JSON object
|
|
215
|
-
* @returns true if equals, false it not
|
|
216
|
-
*/
|
|
217
|
-
}, {
|
|
218
|
-
key: "deepEquals",
|
|
219
|
-
value: function deepEquals(a, b) {
|
|
220
|
-
if (a === b) return true;
|
|
221
|
-
if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
|
|
222
|
-
var arrA = Array.isArray(a),
|
|
223
|
-
arrB = Array.isArray(b),
|
|
224
|
-
i,
|
|
225
|
-
length,
|
|
226
|
-
key;
|
|
227
|
-
if (arrA && arrB) {
|
|
228
|
-
length = a.length;
|
|
229
|
-
if (length !== b.length) return false;
|
|
230
|
-
for (i = length; i-- !== 0;) if (!this.deepEquals(a[i], b[i])) return false;
|
|
231
|
-
return true;
|
|
232
|
-
}
|
|
233
|
-
if (arrA !== arrB) return false;
|
|
234
|
-
var dateA = a instanceof Date,
|
|
235
|
-
dateB = b instanceof Date;
|
|
236
|
-
if (dateA !== dateB) return false;
|
|
237
|
-
if (dateA && dateB) return a.getTime() === b.getTime();
|
|
238
|
-
var regexpA = a instanceof RegExp,
|
|
239
|
-
regexpB = b instanceof RegExp;
|
|
240
|
-
if (regexpA !== regexpB) return false;
|
|
241
|
-
if (regexpA && regexpB) return a.toString() === b.toString();
|
|
242
|
-
var keys = Object.keys(a);
|
|
243
|
-
length = keys.length;
|
|
244
|
-
if (length !== Object.keys(b).length) return false;
|
|
245
|
-
for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
246
|
-
for (i = length; i-- !== 0;) {
|
|
247
|
-
key = keys[i];
|
|
248
|
-
if (!this.deepEquals(a[key], b[key])) return false;
|
|
249
|
-
}
|
|
250
|
-
return true;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
/*eslint no-self-compare: "off"*/
|
|
254
|
-
return a !== a && b !== b;
|
|
255
|
-
}
|
|
256
|
-
}, {
|
|
257
|
-
key: "resolveFieldData",
|
|
258
|
-
value: function resolveFieldData(data, field) {
|
|
259
|
-
if (!data || !field) {
|
|
260
|
-
// short circuit if there is nothing to resolve
|
|
261
|
-
return null;
|
|
262
|
-
}
|
|
263
|
-
try {
|
|
264
|
-
var value = data[field];
|
|
265
|
-
if (this.isNotEmpty(value)) return value;
|
|
266
|
-
} catch (_unused) {
|
|
267
|
-
// Performance optimization: https://github.com/primefaces/primereact/issues/4797
|
|
268
|
-
// do nothing and continue to other methods to resolve field data
|
|
269
|
-
}
|
|
270
|
-
if (Object.keys(data).length) {
|
|
271
|
-
if (this.isFunction(field)) {
|
|
272
|
-
return field(data);
|
|
273
|
-
} else if (this.isNotEmpty(data[field])) {
|
|
274
|
-
return data[field];
|
|
275
|
-
} else if (field.indexOf('.') === -1) {
|
|
276
|
-
return data[field];
|
|
277
|
-
} else {
|
|
278
|
-
var fields = field.split('.');
|
|
279
|
-
var _value = data;
|
|
280
|
-
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
281
|
-
if (_value == null) {
|
|
282
|
-
return null;
|
|
283
|
-
}
|
|
284
|
-
_value = _value[fields[i]];
|
|
285
|
-
}
|
|
286
|
-
return _value;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
return null;
|
|
290
|
-
}
|
|
291
|
-
}, {
|
|
292
|
-
key: "findDiffKeys",
|
|
293
|
-
value: function findDiffKeys(obj1, obj2) {
|
|
294
|
-
if (!obj1 || !obj2) {
|
|
295
|
-
return {};
|
|
296
|
-
}
|
|
297
|
-
return Object.keys(obj1).filter(function (key) {
|
|
298
|
-
return !obj2.hasOwnProperty(key);
|
|
299
|
-
}).reduce(function (result, current) {
|
|
300
|
-
result[current] = obj1[current];
|
|
301
|
-
return result;
|
|
302
|
-
}, {});
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Removes keys from a JSON object that start with a string such as "data" to get all "data-id" type properties.
|
|
307
|
-
*
|
|
308
|
-
* @param {any} obj the JSON object to reduce
|
|
309
|
-
* @param {string[]} startsWiths the string(s) to check if the property starts with this key
|
|
310
|
-
* @returns the JSON object containing only the key/values that match the startsWith string
|
|
311
|
-
*/
|
|
312
|
-
}, {
|
|
313
|
-
key: "reduceKeys",
|
|
314
|
-
value: function reduceKeys(obj, startsWiths) {
|
|
315
|
-
var result = {};
|
|
316
|
-
if (!obj || !startsWiths || startsWiths.length === 0) {
|
|
317
|
-
return result;
|
|
318
|
-
}
|
|
319
|
-
Object.keys(obj).filter(function (key) {
|
|
320
|
-
return startsWiths.some(function (value) {
|
|
321
|
-
return key.startsWith(value);
|
|
322
|
-
});
|
|
323
|
-
}).forEach(function (key) {
|
|
324
|
-
result[key] = obj[key];
|
|
325
|
-
delete obj[key];
|
|
326
|
-
});
|
|
327
|
-
return result;
|
|
328
|
-
}
|
|
329
|
-
}, {
|
|
330
|
-
key: "reorderArray",
|
|
331
|
-
value: function reorderArray(value, from, to) {
|
|
332
|
-
if (value && from !== to) {
|
|
333
|
-
if (to >= value.length) {
|
|
334
|
-
to %= value.length;
|
|
335
|
-
from %= value.length;
|
|
336
|
-
}
|
|
337
|
-
value.splice(to, 0, value.splice(from, 1)[0]);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}, {
|
|
341
|
-
key: "findIndexInList",
|
|
342
|
-
value: function findIndexInList(value, list, dataKey) {
|
|
343
|
-
var _this = this;
|
|
344
|
-
if (list) {
|
|
345
|
-
return dataKey ? list.findIndex(function (item) {
|
|
346
|
-
return _this.equals(item, value, dataKey);
|
|
347
|
-
}) : list.findIndex(function (item) {
|
|
348
|
-
return item === value;
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
return -1;
|
|
352
|
-
}
|
|
353
|
-
}, {
|
|
354
|
-
key: "getJSXElement",
|
|
355
|
-
value: function getJSXElement(obj) {
|
|
356
|
-
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
357
|
-
params[_key - 1] = arguments[_key];
|
|
358
|
-
}
|
|
359
|
-
return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
|
|
360
|
-
}
|
|
361
|
-
}, {
|
|
362
|
-
key: "getItemValue",
|
|
363
|
-
value: function getItemValue(obj) {
|
|
364
|
-
for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
365
|
-
params[_key2 - 1] = arguments[_key2];
|
|
366
|
-
}
|
|
367
|
-
return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
|
|
368
|
-
}
|
|
369
|
-
}, {
|
|
370
|
-
key: "getProp",
|
|
371
|
-
value: function getProp(props) {
|
|
372
|
-
var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
373
|
-
var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
374
|
-
var value = props ? props[prop] : undefined;
|
|
375
|
-
return value === undefined ? defaultProps[prop] : value;
|
|
376
|
-
}
|
|
377
|
-
}, {
|
|
378
|
-
key: "getPropCaseInsensitive",
|
|
379
|
-
value: function getPropCaseInsensitive(props, prop) {
|
|
380
|
-
var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
381
|
-
var fkey = this.toFlatCase(prop);
|
|
382
|
-
for (var key in props) {
|
|
383
|
-
if (props.hasOwnProperty(key) && this.toFlatCase(key) === fkey) {
|
|
384
|
-
return props[key];
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
for (var _key3 in defaultProps) {
|
|
388
|
-
if (defaultProps.hasOwnProperty(_key3) && this.toFlatCase(_key3) === fkey) {
|
|
389
|
-
return defaultProps[_key3];
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
return undefined; // Property not found
|
|
393
|
-
}
|
|
394
|
-
}, {
|
|
395
|
-
key: "getMergedProps",
|
|
396
|
-
value: function getMergedProps(props, defaultProps) {
|
|
397
|
-
return Object.assign({}, defaultProps, props);
|
|
398
|
-
}
|
|
399
|
-
}, {
|
|
400
|
-
key: "getDiffProps",
|
|
401
|
-
value: function getDiffProps(props, defaultProps) {
|
|
402
|
-
return this.findDiffKeys(props, defaultProps);
|
|
403
|
-
}
|
|
404
|
-
}, {
|
|
405
|
-
key: "getPropValue",
|
|
406
|
-
value: function getPropValue(obj) {
|
|
407
|
-
for (var _len3 = arguments.length, params = new Array(_len3 > 1 ? _len3 - 1 : 0), _key4 = 1; _key4 < _len3; _key4++) {
|
|
408
|
-
params[_key4 - 1] = arguments[_key4];
|
|
409
|
-
}
|
|
410
|
-
return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
|
|
411
|
-
}
|
|
412
|
-
}, {
|
|
413
|
-
key: "getComponentProp",
|
|
414
|
-
value: function getComponentProp(component) {
|
|
415
|
-
var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
416
|
-
var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
417
|
-
return this.isNotEmpty(component) ? this.getProp(component.props, prop, defaultProps) : undefined;
|
|
418
|
-
}
|
|
419
|
-
}, {
|
|
420
|
-
key: "getComponentProps",
|
|
421
|
-
value: function getComponentProps(component, defaultProps) {
|
|
422
|
-
return this.isNotEmpty(component) ? this.getMergedProps(component.props, defaultProps) : undefined;
|
|
423
|
-
}
|
|
424
|
-
}, {
|
|
425
|
-
key: "getComponentDiffProps",
|
|
426
|
-
value: function getComponentDiffProps(component, defaultProps) {
|
|
427
|
-
return this.isNotEmpty(component) ? this.getDiffProps(component.props, defaultProps) : undefined;
|
|
428
|
-
}
|
|
429
|
-
}, {
|
|
430
|
-
key: "isValidChild",
|
|
431
|
-
value: function isValidChild(child, type, validTypes) {
|
|
432
|
-
/* eslint-disable */
|
|
433
|
-
if (child) {
|
|
434
|
-
var _child$type;
|
|
435
|
-
var childType = this.getComponentProp(child, '__TYPE') || (child.type ? child.type.displayName : undefined);
|
|
436
|
-
|
|
437
|
-
// for App Router in Next.js ^14,
|
|
438
|
-
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) {
|
|
439
|
-
childType = child.type._payload.value.find(function (v) {
|
|
440
|
-
return v === type;
|
|
441
|
-
});
|
|
442
|
-
}
|
|
443
|
-
var isValid = childType === type;
|
|
444
|
-
try {
|
|
445
|
-
var messageTypes; if ("production" !== 'production' && !isValid) ;
|
|
446
|
-
} catch (error) {
|
|
447
|
-
// NOOP
|
|
448
|
-
}
|
|
449
|
-
return isValid;
|
|
450
|
-
}
|
|
451
|
-
return false;
|
|
452
|
-
/* eslint-enable */
|
|
453
|
-
}
|
|
454
|
-
}, {
|
|
455
|
-
key: "getRefElement",
|
|
456
|
-
value: function getRefElement(ref) {
|
|
457
|
-
if (ref) {
|
|
458
|
-
return _typeof(ref) === 'object' && ref.hasOwnProperty('current') ? ref.current : ref;
|
|
459
|
-
}
|
|
460
|
-
return null;
|
|
461
|
-
}
|
|
462
|
-
}, {
|
|
463
|
-
key: "combinedRefs",
|
|
464
|
-
value: function combinedRefs(innerRef, forwardRef) {
|
|
465
|
-
if (innerRef && forwardRef) {
|
|
466
|
-
if (typeof forwardRef === 'function') {
|
|
467
|
-
forwardRef(innerRef.current);
|
|
468
|
-
} else {
|
|
469
|
-
forwardRef.current = innerRef.current;
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
}, {
|
|
474
|
-
key: "removeAccents",
|
|
475
|
-
value: function removeAccents(str) {
|
|
476
|
-
if (str && str.search(/[\xC0-\xFF]/g) > -1) {
|
|
477
|
-
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');
|
|
478
|
-
}
|
|
479
|
-
return str;
|
|
480
|
-
}
|
|
481
|
-
}, {
|
|
482
|
-
key: "toFlatCase",
|
|
483
|
-
value: function toFlatCase(str) {
|
|
484
|
-
// convert snake, kebab, camel and pascal cases to flat case
|
|
485
|
-
return this.isNotEmpty(str) && this.isString(str) ? str.replace(/(-|_)/g, '').toLowerCase() : str;
|
|
486
|
-
}
|
|
487
|
-
}, {
|
|
488
|
-
key: "toCapitalCase",
|
|
489
|
-
value: function toCapitalCase(str) {
|
|
490
|
-
return this.isNotEmpty(str) && this.isString(str) ? str[0].toUpperCase() + str.slice(1) : str;
|
|
491
|
-
}
|
|
492
|
-
}, {
|
|
493
|
-
key: "trim",
|
|
494
|
-
value: function trim(value) {
|
|
495
|
-
// trim only if the value is actually a string
|
|
496
|
-
return this.isNotEmpty(value) && this.isString(value) ? value.trim() : value;
|
|
497
|
-
}
|
|
498
|
-
}, {
|
|
499
|
-
key: "isEmpty",
|
|
500
|
-
value: function isEmpty(value) {
|
|
501
|
-
return value === null || value === undefined || value === '' || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && _typeof(value) === 'object' && Object.keys(value).length === 0;
|
|
502
|
-
}
|
|
503
|
-
}, {
|
|
504
|
-
key: "isNotEmpty",
|
|
505
|
-
value: function isNotEmpty(value) {
|
|
506
|
-
return !this.isEmpty(value);
|
|
507
|
-
}
|
|
508
|
-
}, {
|
|
509
|
-
key: "isFunction",
|
|
510
|
-
value: function isFunction(value) {
|
|
511
|
-
return !!(value && value.constructor && value.call && value.apply);
|
|
512
|
-
}
|
|
513
|
-
}, {
|
|
514
|
-
key: "isObject",
|
|
515
|
-
value: function isObject(value) {
|
|
516
|
-
return value !== null && value instanceof Object && value.constructor === Object;
|
|
517
|
-
}
|
|
518
|
-
}, {
|
|
519
|
-
key: "isDate",
|
|
520
|
-
value: function isDate(value) {
|
|
521
|
-
return value !== null && value instanceof Date && value.constructor === Date;
|
|
522
|
-
}
|
|
523
|
-
}, {
|
|
524
|
-
key: "isArray",
|
|
525
|
-
value: function isArray(value) {
|
|
526
|
-
return value !== null && Array.isArray(value);
|
|
527
|
-
}
|
|
528
|
-
}, {
|
|
529
|
-
key: "isString",
|
|
530
|
-
value: function isString(value) {
|
|
531
|
-
return value !== null && typeof value === 'string';
|
|
532
|
-
}
|
|
533
|
-
}, {
|
|
534
|
-
key: "isPrintableCharacter",
|
|
535
|
-
value: function isPrintableCharacter() {
|
|
536
|
-
var _char = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
537
|
-
return this.isNotEmpty(_char) && _char.length === 1 && _char.match(/\S| /);
|
|
538
|
-
}
|
|
539
|
-
}, {
|
|
540
|
-
key: "isLetter",
|
|
541
|
-
value: function isLetter(_char2) {
|
|
542
|
-
return /^[a-zA-Z\u00C0-\u017F]$/.test(_char2);
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
|
|
547
|
-
* https://caniuse.com/mdn-javascript_builtins_array_findlast
|
|
548
|
-
*/
|
|
549
|
-
}, {
|
|
550
|
-
key: "findLast",
|
|
551
|
-
value: function findLast(arr, callback) {
|
|
552
|
-
var item;
|
|
553
|
-
if (this.isNotEmpty(arr)) {
|
|
554
|
-
try {
|
|
555
|
-
item = arr.findLast(callback);
|
|
556
|
-
} catch (_unused2) {
|
|
557
|
-
item = _toConsumableArray(arr).reverse().find(callback);
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
return item;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* Firefox-v103 does not currently support the "findLastIndex" method. It is stated that this method will be supported with Firefox-v104.
|
|
565
|
-
* https://caniuse.com/mdn-javascript_builtins_array_findlastindex
|
|
566
|
-
*/
|
|
567
|
-
}, {
|
|
568
|
-
key: "findLastIndex",
|
|
569
|
-
value: function findLastIndex(arr, callback) {
|
|
570
|
-
var index = -1;
|
|
571
|
-
if (this.isNotEmpty(arr)) {
|
|
572
|
-
try {
|
|
573
|
-
index = arr.findLastIndex(callback);
|
|
574
|
-
} catch (_unused3) {
|
|
575
|
-
index = arr.lastIndexOf(_toConsumableArray(arr).reverse().find(callback));
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
return index;
|
|
579
|
-
}
|
|
580
|
-
}, {
|
|
581
|
-
key: "sort",
|
|
582
|
-
value: function sort(value1, value2) {
|
|
583
|
-
var order = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
584
|
-
var comparator = arguments.length > 3 ? arguments[3] : undefined;
|
|
585
|
-
var nullSortOrder = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
|
|
586
|
-
var result = this.compare(value1, value2, comparator, order);
|
|
587
|
-
var finalSortOrder = order;
|
|
588
|
-
|
|
589
|
-
// nullSortOrder == 1 means Excel like sort nulls at bottom
|
|
590
|
-
if (this.isEmpty(value1) || this.isEmpty(value2)) {
|
|
591
|
-
finalSortOrder = nullSortOrder === 1 ? order : nullSortOrder;
|
|
592
|
-
}
|
|
593
|
-
return finalSortOrder * result;
|
|
594
|
-
}
|
|
595
|
-
}, {
|
|
596
|
-
key: "compare",
|
|
597
|
-
value: function compare(value1, value2, comparator) {
|
|
598
|
-
var order = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
599
|
-
var result = -1;
|
|
600
|
-
var emptyValue1 = this.isEmpty(value1);
|
|
601
|
-
var emptyValue2 = this.isEmpty(value2);
|
|
602
|
-
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;
|
|
603
|
-
return result;
|
|
604
|
-
}
|
|
605
|
-
}, {
|
|
606
|
-
key: "localeComparator",
|
|
607
|
-
value: function localeComparator(locale) {
|
|
608
|
-
//performance gain using Int.Collator. It is not recommended to use localeCompare against large arrays.
|
|
609
|
-
return new Intl.Collator(locale, {
|
|
610
|
-
numeric: true
|
|
611
|
-
}).compare;
|
|
612
|
-
}
|
|
613
|
-
}, {
|
|
614
|
-
key: "findChildrenByKey",
|
|
615
|
-
value: function findChildrenByKey(data, key) {
|
|
616
|
-
var _iterator = _createForOfIteratorHelper(data),
|
|
617
|
-
_step;
|
|
618
|
-
try {
|
|
619
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
620
|
-
var item = _step.value;
|
|
621
|
-
if (item.key === key) {
|
|
622
|
-
return item.children || [];
|
|
623
|
-
} else if (item.children) {
|
|
624
|
-
var result = this.findChildrenByKey(item.children, key);
|
|
625
|
-
if (result.length > 0) {
|
|
626
|
-
return result;
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
} catch (err) {
|
|
631
|
-
_iterator.e(err);
|
|
632
|
-
} finally {
|
|
633
|
-
_iterator.f();
|
|
634
|
-
}
|
|
635
|
-
return [];
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* This function takes mutates and object with a new value given
|
|
640
|
-
* a specific field. This will handle deeply nested fields that
|
|
641
|
-
* need to be modified or created.
|
|
642
|
-
*
|
|
643
|
-
* e.g:
|
|
644
|
-
* data = {
|
|
645
|
-
* nested: {
|
|
646
|
-
* foo: "bar"
|
|
647
|
-
* }
|
|
648
|
-
* }
|
|
649
|
-
*
|
|
650
|
-
* field = "nested.foo"
|
|
651
|
-
* value = "baz"
|
|
652
|
-
*
|
|
653
|
-
* The function will mutate data to be
|
|
654
|
-
* e.g:
|
|
655
|
-
* data = {
|
|
656
|
-
* nested: {
|
|
657
|
-
* foo: "baz"
|
|
658
|
-
* }
|
|
659
|
-
* }
|
|
660
|
-
*
|
|
661
|
-
* @param {object} data the object to be modified
|
|
662
|
-
* @param {string} field the field in the object to replace
|
|
663
|
-
* @param {any} value the value to have replaced in the field
|
|
664
|
-
*/
|
|
665
|
-
}, {
|
|
666
|
-
key: "mutateFieldData",
|
|
667
|
-
value: function mutateFieldData(data, field, value) {
|
|
668
|
-
if (_typeof(data) !== 'object' || typeof field !== 'string') {
|
|
669
|
-
// short circuit if there is nothing to resolve
|
|
670
|
-
return;
|
|
671
|
-
}
|
|
672
|
-
var fields = field.split('.');
|
|
673
|
-
var obj = data;
|
|
674
|
-
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
675
|
-
// Check if we are on the last field
|
|
676
|
-
if (i + 1 - len === 0) {
|
|
677
|
-
obj[fields[i]] = value;
|
|
678
|
-
break;
|
|
679
|
-
}
|
|
680
|
-
if (!obj[fields[i]]) {
|
|
681
|
-
obj[fields[i]] = {};
|
|
682
|
-
}
|
|
683
|
-
obj = obj[fields[i]];
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
}]);
|
|
687
|
-
return ObjectUtils;
|
|
688
|
-
}();
|
|
689
|
-
|
|
690
|
-
var lastId = 0;
|
|
691
|
-
function UniqueComponentId() {
|
|
692
|
-
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pr_id_';
|
|
693
|
-
lastId++;
|
|
694
|
-
return "".concat(prefix).concat(lastId);
|
|
152
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
695
153
|
}
|
|
696
154
|
|
|
697
155
|
var DownloadIcon = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
698
156
|
var pti = iconbase.IconBase.getPTI(inProps);
|
|
699
|
-
var _React$useState = React__namespace.useState(inProps.id),
|
|
700
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
701
|
-
pathId = _React$useState2[0],
|
|
702
|
-
setPathId = _React$useState2[1];
|
|
703
|
-
React__namespace.useEffect(function () {
|
|
704
|
-
if (ObjectUtils.isEmpty(pathId)) {
|
|
705
|
-
setPathId(UniqueComponentId('pr_icon_clip_'));
|
|
706
|
-
}
|
|
707
|
-
}, [pathId]);
|
|
708
157
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
709
158
|
ref: ref,
|
|
710
159
|
width: "14",
|
|
@@ -712,20 +161,12 @@ var DownloadIcon = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
|
|
|
712
161
|
viewBox: "0 0 14 14",
|
|
713
162
|
fill: "none",
|
|
714
163
|
xmlns: "http://www.w3.org/2000/svg"
|
|
715
|
-
}, pti), /*#__PURE__*/React__namespace.createElement("
|
|
716
|
-
clipPath: "url(#".concat(pathId, ")")
|
|
717
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
164
|
+
}, pti), /*#__PURE__*/React__namespace.createElement("path", {
|
|
718
165
|
fillRule: "evenodd",
|
|
719
166
|
clipRule: "evenodd",
|
|
720
167
|
d: "M7.0118 10C6.93296 10.0003 6.85484 9.98495 6.78202 9.95477C6.7091 9.92454 6.64297 9.88008 6.58749 9.82399L3.38288 6.62399C3.27675 6.51025 3.21897 6.35982 3.22171 6.20438C3.22446 6.04893 3.28752 5.90063 3.39761 5.7907C3.5077 5.68077 3.65622 5.6178 3.81188 5.61505C3.96755 5.61231 4.1182 5.67001 4.23211 5.77599L6.41125 7.95201V0.6C6.41125 0.44087 6.47456 0.288258 6.58724 0.175736C6.69993 0.063214 6.85276 0 7.01212 0C7.17148 0 7.32431 0.063214 7.43699 0.175736C7.54968 0.288258 7.61298 0.44087 7.61298 0.6V7.95198L9.7921 5.77599C9.90601 5.67001 10.0567 5.61231 10.2123 5.61505C10.368 5.6178 10.5165 5.68077 10.6266 5.7907C10.7367 5.90063 10.7997 6.04893 10.8025 6.20438C10.8052 6.35982 10.7475 6.51025 10.6413 6.62399L7.43671 9.82399C7.38124 9.88008 7.3151 9.92454 7.24219 9.95477C7.16938 9.98495 7.09127 10.0003 7.01244 10C7.01233 10 7.01223 10 7.01212 10C7.01201 10 7.0119 10 7.0118 10ZM13.45 13.3115C13.0749 13.7235 12.5521 13.971 11.9952 14H2.02889C1.75106 13.9887 1.47819 13.9228 1.2259 13.806C0.973606 13.6893 0.74684 13.524 0.558578 13.3197C0.370316 13.1153 0.224251 12.8759 0.128742 12.6152C0.0332333 12.3544 -0.00984502 12.0774 0.00197194 11.8V9.39999C0.00197194 9.24086 0.065277 9.08825 0.177961 8.97572C0.290645 8.8632 0.443477 8.79999 0.602836 8.79999C0.762195 8.79999 0.915027 8.8632 1.02771 8.97572C1.1404 9.08825 1.2037 9.24086 1.2037 9.39999V11.8C1.18301 12.0375 1.25469 12.2739 1.40385 12.4601C1.55302 12.6463 1.76823 12.768 2.00485 12.8H11.9952C12.2318 12.768 12.4471 12.6463 12.5962 12.4601C12.7454 12.2739 12.8171 12.0375 12.7964 11.8V9.39999C12.7964 9.24086 12.8597 9.08825 12.9724 8.97572C13.085 8.8632 13.2379 8.79999 13.3972 8.79999C13.5566 8.79999 13.7094 8.8632 13.8221 8.97572C13.9348 9.08825 13.9981 9.24086 13.9981 9.39999V11.8C14.0221 12.3563 13.8251 12.8995 13.45 13.3115Z",
|
|
721
168
|
fill: "currentColor"
|
|
722
|
-
}))
|
|
723
|
-
id: pathId
|
|
724
|
-
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
725
|
-
width: "14",
|
|
726
|
-
height: "14",
|
|
727
|
-
fill: "white"
|
|
728
|
-
}))));
|
|
169
|
+
}));
|
|
729
170
|
}));
|
|
730
171
|
DownloadIcon.displayName = 'DownloadIcon';
|
|
731
172
|
|