primereact 9.4.0 → 9.5.0
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.cjs.js +1 -0
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +7 -6
- package/api/api.esm.js +1 -0
- package/api/api.esm.min.js +1 -1
- package/api/api.js +1 -0
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +24 -6
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +4 -0
- package/autocomplete/autocomplete.esm.js +24 -6
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +24 -6
- package/autocomplete/autocomplete.min.css +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +87 -49
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +53 -1
- package/breadcrumb/breadcrumb.esm.js +88 -50
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +88 -51
- package/breadcrumb/breadcrumb.min.css +1 -1
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/calendar/calendar.cjs.js +8 -1
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +5 -2
- package/calendar/calendar.esm.js +8 -1
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +8 -1
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +135 -82
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +113 -1
- package/carousel/carousel.esm.js +136 -83
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +136 -84
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +27 -23
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +5 -0
- package/cascadeselect/cascadeselect.esm.js +27 -23
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +28 -24
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +28 -43
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.d.ts +30 -0
- package/chart/chart.esm.js +15 -30
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +140 -156
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +21 -15
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +5 -0
- package/checkbox/checkbox.esm.js +22 -16
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +21 -15
- package/checkbox/checkbox.min.js +1 -1
- package/chips/chips.cjs.js +24 -17
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +5 -0
- package/chips/chips.esm.js +24 -17
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +25 -19
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +4 -0
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +5 -0
- package/colorpicker/colorpicker.esm.js +4 -0
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +4 -0
- package/colorpicker/colorpicker.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +2 -2
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +2 -2
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +2 -2
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +111 -61
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +92 -1
- package/contextmenu/contextmenu.esm.js +112 -62
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +112 -63
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +12873 -1829
- package/core/core.min.js +34 -34
- package/datatable/datatable.cjs.js +181 -175
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +181 -175
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +181 -175
- package/datatable/datatable.min.js +1 -1
- package/dock/dock.cjs.js +82 -45
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +66 -0
- package/dock/dock.esm.js +83 -46
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +83 -47
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +2 -2
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +2 -2
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +3 -3
- package/dropdown/dropdown.min.js +1 -1
- package/fileupload/fileupload.cjs.js +168 -137
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +150 -1
- package/fileupload/fileupload.esm.js +169 -138
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +168 -137
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +131 -118
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +156 -2
- package/galleria/galleria.esm.js +132 -119
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +130 -118
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +5 -1
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +2 -1
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +6 -3
- package/hooks/hooks.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +410 -2
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +410 -2
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +410 -2
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +410 -2
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +410 -2
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +410 -2
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +410 -2
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +410 -2
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +410 -2
- package/icons/ban/index.min.js +1 -1
- package/icons/download/index.cjs.js +410 -2
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +410 -2
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +410 -2
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +410 -2
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +410 -2
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +410 -2
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +410 -2
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +410 -2
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +410 -2
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +410 -2
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +410 -2
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +410 -2
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +410 -2
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +410 -2
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +410 -2
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +410 -2
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +410 -2
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +410 -2
- package/icons/infocircle/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +410 -2
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +410 -2
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +410 -2
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +410 -2
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +410 -2
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +410 -2
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +410 -2
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +410 -2
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +410 -2
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +410 -2
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +410 -2
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +410 -2
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +410 -2
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +410 -2
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +410 -2
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +410 -2
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +410 -2
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +410 -2
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +410 -2
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +410 -2
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +410 -2
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +410 -2
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +410 -2
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +410 -2
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +410 -2
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +410 -2
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +410 -2
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +410 -2
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +410 -2
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +410 -2
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +410 -2
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +410 -2
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +410 -2
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +410 -2
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +410 -2
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +410 -2
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +410 -2
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +410 -2
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +410 -2
- package/icons/thlarge/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +410 -2
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +410 -2
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +410 -2
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +410 -2
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +410 -2
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +410 -2
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +410 -2
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +410 -2
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +410 -2
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +410 -2
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +410 -2
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +410 -2
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +410 -2
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +410 -2
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +410 -2
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +410 -2
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +410 -2
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +410 -2
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +472 -78
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +130 -3
- package/image/image.esm.js +474 -80
- package/image/image.esm.min.js +1 -1
- package/image/image.js +473 -80
- package/image/image.min.js +1 -1
- package/inputmask/inputmask.cjs.js +18 -16
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +18 -16
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +18 -16
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +0 -2
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +0 -2
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +0 -2
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +7 -0
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +5 -0
- package/inputswitch/inputswitch.esm.js +7 -0
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +8 -2
- package/inputswitch/inputswitch.min.js +1 -1
- package/megamenu/megamenu.cjs.js +147 -96
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +142 -2
- package/megamenu/megamenu.esm.js +147 -96
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +145 -95
- package/megamenu/megamenu.min.js +1 -1
- package/menu/menu.cjs.js +94 -55
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +71 -0
- package/menu/menu.esm.js +95 -56
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +95 -57
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +118 -110
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +94 -1
- package/menubar/menubar.esm.js +119 -111
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +119 -112
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +66 -46
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +35 -2
- package/message/message.esm.js +67 -47
- package/message/message.esm.min.js +1 -1
- package/message/message.js +67 -48
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +63 -62
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +51 -2
- package/messages/messages.esm.js +63 -62
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +63 -63
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +32 -29
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +5 -0
- package/multiselect/multiselect.esm.js +33 -30
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +32 -29
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +15 -11
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +5 -0
- package/multistatecheckbox/multistatecheckbox.esm.js +15 -11
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +15 -11
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.d.ts +3 -3
- package/panelmenu/panelmenu.cjs.js +145 -83
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +124 -2
- package/panelmenu/panelmenu.esm.js +145 -83
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +144 -83
- package/panelmenu/panelmenu.min.js +1 -1
- package/primereact.all.cjs.js +2250 -1578
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +2250 -1578
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +2250 -1578
- package/primereact.all.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +16 -9
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +5 -0
- package/radiobutton/radiobutton.esm.js +16 -9
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +17 -11
- package/radiobutton/radiobutton.min.js +1 -1
- package/resources/primereact.css +275 -267
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +13 -7
- package/resources/themes/arya-green/theme.css +13 -7
- package/resources/themes/arya-orange/theme.css +13 -7
- package/resources/themes/arya-purple/theme.css +13 -7
- package/resources/themes/bootstrap4-dark-blue/theme.css +13 -7
- package/resources/themes/bootstrap4-dark-purple/theme.css +13 -7
- package/resources/themes/bootstrap4-light-blue/theme.css +13 -7
- package/resources/themes/bootstrap4-light-purple/theme.css +13 -7
- package/resources/themes/fluent-light/theme.css +13 -7
- package/resources/themes/lara-dark-blue/theme.css +13 -7
- package/resources/themes/lara-dark-indigo/theme.css +13 -7
- package/resources/themes/lara-dark-purple/theme.css +13 -7
- package/resources/themes/lara-dark-teal/theme.css +13 -7
- package/resources/themes/lara-light-blue/theme.css +13 -7
- package/resources/themes/lara-light-indigo/theme.css +13 -7
- package/resources/themes/lara-light-purple/theme.css +13 -7
- package/resources/themes/lara-light-teal/theme.css +13 -7
- package/resources/themes/luna-amber/theme.css +13 -7
- package/resources/themes/luna-blue/theme.css +13 -7
- package/resources/themes/luna-green/theme.css +13 -7
- package/resources/themes/luna-pink/theme.css +13 -7
- package/resources/themes/md-dark-deeppurple/theme.css +13 -7
- package/resources/themes/md-dark-indigo/theme.css +13 -7
- package/resources/themes/md-light-deeppurple/theme.css +13 -7
- package/resources/themes/md-light-indigo/theme.css +13 -7
- package/resources/themes/mdc-dark-deeppurple/theme.css +13 -7
- package/resources/themes/mdc-dark-indigo/theme.css +13 -7
- package/resources/themes/mdc-light-deeppurple/theme.css +13 -7
- package/resources/themes/mdc-light-indigo/theme.css +13 -7
- package/resources/themes/mira/theme.css +13 -7
- package/resources/themes/nano/theme.css +13 -7
- package/resources/themes/nova/theme.css +13 -7
- package/resources/themes/nova-accent/theme.css +13 -7
- package/resources/themes/nova-alt/theme.css +13 -7
- package/resources/themes/rhea/theme.css +13 -7
- package/resources/themes/saga-blue/theme.css +13 -7
- package/resources/themes/saga-green/theme.css +13 -7
- package/resources/themes/saga-orange/theme.css +13 -7
- package/resources/themes/saga-purple/theme.css +13 -7
- package/resources/themes/soho-dark/theme.css +13 -7
- package/resources/themes/soho-light/theme.css +13 -7
- package/resources/themes/tailwind-light/theme.css +13 -7
- package/resources/themes/vela-blue/theme.css +13 -7
- package/resources/themes/vela-green/theme.css +13 -7
- package/resources/themes/vela-orange/theme.css +13 -7
- package/resources/themes/vela-purple/theme.css +13 -7
- package/resources/themes/viva-dark/theme.css +13 -7
- package/resources/themes/viva-light/theme.css +13 -7
- package/slidemenu/slidemenu.cjs.js +121 -111
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +98 -1
- package/slidemenu/slidemenu.esm.js +122 -112
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +122 -113
- package/slidemenu/slidemenu.min.js +1 -1
- package/steps/steps.cjs.js +78 -45
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +50 -0
- package/steps/steps.esm.js +79 -46
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +79 -47
- package/steps/steps.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +83 -47
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +62 -0
- package/tabmenu/tabmenu.esm.js +84 -48
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +84 -49
- package/tabmenu/tabmenu.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +104 -59
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +83 -2
- package/tieredmenu/tieredmenu.esm.js +105 -60
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +105 -61
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/toast/toast.cjs.js +72 -71
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +120 -2
- package/toast/toast.esm.js +73 -72
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +70 -70
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +6 -0
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +6 -0
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +7 -2
- package/togglebutton/togglebutton.min.js +1 -1
- package/treeselect/treeselect.cjs.js +3 -0
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +5 -0
- package/treeselect/treeselect.esm.js +3 -0
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +3 -0
- package/treeselect/treeselect.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +14 -7
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +5 -0
- package/tristatecheckbox/tristatecheckbox.esm.js +14 -7
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +15 -9
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +25 -4
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.esm.js +22 -4
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +26 -6
- package/utils/utils.min.js +1 -1
- package/web-types.json +1 -1
package/image/image.cjs.js
CHANGED
|
@@ -15,6 +15,7 @@ var times = require('primereact/icons/times');
|
|
|
15
15
|
var undo = require('primereact/icons/undo');
|
|
16
16
|
var portal = require('primereact/portal');
|
|
17
17
|
var utils = require('primereact/utils');
|
|
18
|
+
var componentbase = require('primereact/componentbase');
|
|
18
19
|
|
|
19
20
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
20
21
|
|
|
@@ -54,6 +55,47 @@ function _extends() {
|
|
|
54
55
|
return _extends.apply(this, arguments);
|
|
55
56
|
}
|
|
56
57
|
|
|
58
|
+
function _typeof(obj) {
|
|
59
|
+
"@babel/helpers - typeof";
|
|
60
|
+
|
|
61
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
62
|
+
return typeof obj;
|
|
63
|
+
} : function (obj) {
|
|
64
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
65
|
+
}, _typeof(obj);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function _toPrimitive(input, hint) {
|
|
69
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
70
|
+
var prim = input[Symbol.toPrimitive];
|
|
71
|
+
if (prim !== undefined) {
|
|
72
|
+
var res = prim.call(input, hint || "default");
|
|
73
|
+
if (_typeof(res) !== "object") return res;
|
|
74
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
75
|
+
}
|
|
76
|
+
return (hint === "string" ? String : Number)(input);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function _toPropertyKey(arg) {
|
|
80
|
+
var key = _toPrimitive(arg, "string");
|
|
81
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function _defineProperty(obj, key, value) {
|
|
85
|
+
key = _toPropertyKey(key);
|
|
86
|
+
if (key in obj) {
|
|
87
|
+
Object.defineProperty(obj, key, {
|
|
88
|
+
value: value,
|
|
89
|
+
enumerable: true,
|
|
90
|
+
configurable: true,
|
|
91
|
+
writable: true
|
|
92
|
+
});
|
|
93
|
+
} else {
|
|
94
|
+
obj[key] = value;
|
|
95
|
+
}
|
|
96
|
+
return obj;
|
|
97
|
+
}
|
|
98
|
+
|
|
57
99
|
function _arrayWithHoles(arr) {
|
|
58
100
|
if (Array.isArray(arr)) return arr;
|
|
59
101
|
}
|
|
@@ -109,8 +151,335 @@ function _slicedToArray(arr, i) {
|
|
|
109
151
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
110
152
|
}
|
|
111
153
|
|
|
154
|
+
function _classCallCheck(instance, Constructor) {
|
|
155
|
+
if (!(instance instanceof Constructor)) {
|
|
156
|
+
throw new TypeError("Cannot call a class as a function");
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function _defineProperties(target, props) {
|
|
161
|
+
for (var i = 0; i < props.length; i++) {
|
|
162
|
+
var descriptor = props[i];
|
|
163
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
164
|
+
descriptor.configurable = true;
|
|
165
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
166
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
170
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
171
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
172
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
173
|
+
writable: false
|
|
174
|
+
});
|
|
175
|
+
return Constructor;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
var ObjectUtils = /*#__PURE__*/function () {
|
|
179
|
+
function ObjectUtils() {
|
|
180
|
+
_classCallCheck(this, ObjectUtils);
|
|
181
|
+
}
|
|
182
|
+
_createClass(ObjectUtils, null, [{
|
|
183
|
+
key: "equals",
|
|
184
|
+
value: function equals(obj1, obj2, field) {
|
|
185
|
+
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
186
|
+
}
|
|
187
|
+
}, {
|
|
188
|
+
key: "deepEquals",
|
|
189
|
+
value: function deepEquals(a, b) {
|
|
190
|
+
if (a === b) return true;
|
|
191
|
+
if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
|
|
192
|
+
var arrA = Array.isArray(a),
|
|
193
|
+
arrB = Array.isArray(b),
|
|
194
|
+
i,
|
|
195
|
+
length,
|
|
196
|
+
key;
|
|
197
|
+
if (arrA && arrB) {
|
|
198
|
+
length = a.length;
|
|
199
|
+
if (length !== b.length) return false;
|
|
200
|
+
for (i = length; i-- !== 0;) if (!this.deepEquals(a[i], b[i])) return false;
|
|
201
|
+
return true;
|
|
202
|
+
}
|
|
203
|
+
if (arrA !== arrB) return false;
|
|
204
|
+
var dateA = a instanceof Date,
|
|
205
|
+
dateB = b instanceof Date;
|
|
206
|
+
if (dateA !== dateB) return false;
|
|
207
|
+
if (dateA && dateB) return a.getTime() === b.getTime();
|
|
208
|
+
var regexpA = a instanceof RegExp,
|
|
209
|
+
regexpB = b instanceof RegExp;
|
|
210
|
+
if (regexpA !== regexpB) return false;
|
|
211
|
+
if (regexpA && regexpB) return a.toString() === b.toString();
|
|
212
|
+
var keys = Object.keys(a);
|
|
213
|
+
length = keys.length;
|
|
214
|
+
if (length !== Object.keys(b).length) return false;
|
|
215
|
+
for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
216
|
+
for (i = length; i-- !== 0;) {
|
|
217
|
+
key = keys[i];
|
|
218
|
+
if (!this.deepEquals(a[key], b[key])) return false;
|
|
219
|
+
}
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/*eslint no-self-compare: "off"*/
|
|
224
|
+
return a !== a && b !== b;
|
|
225
|
+
}
|
|
226
|
+
}, {
|
|
227
|
+
key: "resolveFieldData",
|
|
228
|
+
value: function resolveFieldData(data, field) {
|
|
229
|
+
if (data && Object.keys(data).length && field) {
|
|
230
|
+
if (this.isFunction(field)) {
|
|
231
|
+
return field(data);
|
|
232
|
+
} else if (ObjectUtils.isNotEmpty(data[field])) {
|
|
233
|
+
return data[field];
|
|
234
|
+
} else if (field.indexOf('.') === -1) {
|
|
235
|
+
return data[field];
|
|
236
|
+
} else {
|
|
237
|
+
var fields = field.split('.');
|
|
238
|
+
var value = data;
|
|
239
|
+
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
240
|
+
if (value == null) {
|
|
241
|
+
return null;
|
|
242
|
+
}
|
|
243
|
+
value = value[fields[i]];
|
|
244
|
+
}
|
|
245
|
+
return value;
|
|
246
|
+
}
|
|
247
|
+
} else {
|
|
248
|
+
return null;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}, {
|
|
252
|
+
key: "isFunction",
|
|
253
|
+
value: function isFunction(obj) {
|
|
254
|
+
return !!(obj && obj.constructor && obj.call && obj.apply);
|
|
255
|
+
}
|
|
256
|
+
}, {
|
|
257
|
+
key: "isLetter",
|
|
258
|
+
value: function isLetter(_char) {
|
|
259
|
+
return _char && (_char.toUpperCase() != _char.toLowerCase() || _char.codePointAt(0) > 127);
|
|
260
|
+
}
|
|
261
|
+
}, {
|
|
262
|
+
key: "findDiffKeys",
|
|
263
|
+
value: function findDiffKeys(obj1, obj2) {
|
|
264
|
+
if (!obj1 || !obj2) {
|
|
265
|
+
return {};
|
|
266
|
+
}
|
|
267
|
+
return Object.keys(obj1).filter(function (key) {
|
|
268
|
+
return !obj2.hasOwnProperty(key);
|
|
269
|
+
}).reduce(function (result, current) {
|
|
270
|
+
result[current] = obj1[current];
|
|
271
|
+
return result;
|
|
272
|
+
}, {});
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Removes keys from a JSON object that start with a string such as "data" to get all "data-id" type properties.
|
|
277
|
+
*
|
|
278
|
+
* @param {any} obj the JSON object to reduce
|
|
279
|
+
* @param {string[]} startsWiths the string(s) to check if the property starts with this key
|
|
280
|
+
* @returns the JSON object containing only the key/values that match the startsWith string
|
|
281
|
+
*/
|
|
282
|
+
}, {
|
|
283
|
+
key: "reduceKeys",
|
|
284
|
+
value: function reduceKeys(obj, startsWiths) {
|
|
285
|
+
var result = {};
|
|
286
|
+
if (!obj || !startsWiths || startsWiths.length === 0) {
|
|
287
|
+
return result;
|
|
288
|
+
}
|
|
289
|
+
Object.keys(obj).filter(function (key) {
|
|
290
|
+
return startsWiths.some(function (value) {
|
|
291
|
+
return key.startsWith(value);
|
|
292
|
+
});
|
|
293
|
+
}).forEach(function (key) {
|
|
294
|
+
result[key] = obj[key];
|
|
295
|
+
delete obj[key];
|
|
296
|
+
});
|
|
297
|
+
return result;
|
|
298
|
+
}
|
|
299
|
+
}, {
|
|
300
|
+
key: "reorderArray",
|
|
301
|
+
value: function reorderArray(value, from, to) {
|
|
302
|
+
if (value && from !== to) {
|
|
303
|
+
if (to >= value.length) {
|
|
304
|
+
to %= value.length;
|
|
305
|
+
from %= value.length;
|
|
306
|
+
}
|
|
307
|
+
value.splice(to, 0, value.splice(from, 1)[0]);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}, {
|
|
311
|
+
key: "findIndexInList",
|
|
312
|
+
value: function findIndexInList(value, list, dataKey) {
|
|
313
|
+
var _this = this;
|
|
314
|
+
if (list) {
|
|
315
|
+
return dataKey ? list.findIndex(function (item) {
|
|
316
|
+
return _this.equals(item, value, dataKey);
|
|
317
|
+
}) : list.findIndex(function (item) {
|
|
318
|
+
return item === value;
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
return -1;
|
|
322
|
+
}
|
|
323
|
+
}, {
|
|
324
|
+
key: "getJSXElement",
|
|
325
|
+
value: function getJSXElement(obj) {
|
|
326
|
+
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
327
|
+
params[_key - 1] = arguments[_key];
|
|
328
|
+
}
|
|
329
|
+
return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
|
|
330
|
+
}
|
|
331
|
+
}, {
|
|
332
|
+
key: "getProp",
|
|
333
|
+
value: function getProp(props) {
|
|
334
|
+
var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
335
|
+
var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
336
|
+
var value = props ? props[prop] : undefined;
|
|
337
|
+
return value === undefined ? defaultProps[prop] : value;
|
|
338
|
+
}
|
|
339
|
+
}, {
|
|
340
|
+
key: "getMergedProps",
|
|
341
|
+
value: function getMergedProps(props, defaultProps) {
|
|
342
|
+
return Object.assign({}, defaultProps, props);
|
|
343
|
+
}
|
|
344
|
+
}, {
|
|
345
|
+
key: "getDiffProps",
|
|
346
|
+
value: function getDiffProps(props, defaultProps) {
|
|
347
|
+
return this.findDiffKeys(props, defaultProps);
|
|
348
|
+
}
|
|
349
|
+
}, {
|
|
350
|
+
key: "getPropValue",
|
|
351
|
+
value: function getPropValue(obj) {
|
|
352
|
+
for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
353
|
+
params[_key2 - 1] = arguments[_key2];
|
|
354
|
+
}
|
|
355
|
+
return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
|
|
356
|
+
}
|
|
357
|
+
}, {
|
|
358
|
+
key: "getComponentProp",
|
|
359
|
+
value: function getComponentProp(component) {
|
|
360
|
+
var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
361
|
+
var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
362
|
+
return this.isNotEmpty(component) ? this.getProp(component.props, prop, defaultProps) : undefined;
|
|
363
|
+
}
|
|
364
|
+
}, {
|
|
365
|
+
key: "getComponentProps",
|
|
366
|
+
value: function getComponentProps(component, defaultProps) {
|
|
367
|
+
return this.isNotEmpty(component) ? this.getMergedProps(component.props, defaultProps) : undefined;
|
|
368
|
+
}
|
|
369
|
+
}, {
|
|
370
|
+
key: "getComponentDiffProps",
|
|
371
|
+
value: function getComponentDiffProps(component, defaultProps) {
|
|
372
|
+
return this.isNotEmpty(component) ? this.getDiffProps(component.props, defaultProps) : undefined;
|
|
373
|
+
}
|
|
374
|
+
}, {
|
|
375
|
+
key: "isValidChild",
|
|
376
|
+
value: function isValidChild(child, type, validTypes) {
|
|
377
|
+
/* eslint-disable */
|
|
378
|
+
if (child) {
|
|
379
|
+
var childType = this.getComponentProp(child, '__TYPE') || (child.type ? child.type.displayName : undefined);
|
|
380
|
+
var isValid = childType === type;
|
|
381
|
+
try {
|
|
382
|
+
var messageTypes; if ("production" !== 'production' && !isValid) ;
|
|
383
|
+
} catch (error) {
|
|
384
|
+
// NOOP
|
|
385
|
+
}
|
|
386
|
+
return isValid;
|
|
387
|
+
}
|
|
388
|
+
return false;
|
|
389
|
+
/* eslint-enable */
|
|
390
|
+
}
|
|
391
|
+
}, {
|
|
392
|
+
key: "getRefElement",
|
|
393
|
+
value: function getRefElement(ref) {
|
|
394
|
+
if (ref) {
|
|
395
|
+
return _typeof(ref) === 'object' && ref.hasOwnProperty('current') ? ref.current : ref;
|
|
396
|
+
}
|
|
397
|
+
return null;
|
|
398
|
+
}
|
|
399
|
+
}, {
|
|
400
|
+
key: "combinedRefs",
|
|
401
|
+
value: function combinedRefs(innerRef, forwardRef) {
|
|
402
|
+
if (innerRef && forwardRef) {
|
|
403
|
+
if (typeof forwardRef === 'function') {
|
|
404
|
+
forwardRef(innerRef.current);
|
|
405
|
+
} else {
|
|
406
|
+
forwardRef.current = innerRef.current;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}, {
|
|
411
|
+
key: "removeAccents",
|
|
412
|
+
value: function removeAccents(str) {
|
|
413
|
+
if (str && str.search(/[\xC0-\xFF]/g) > -1) {
|
|
414
|
+
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');
|
|
415
|
+
}
|
|
416
|
+
return str;
|
|
417
|
+
}
|
|
418
|
+
}, {
|
|
419
|
+
key: "convertToFlatCase",
|
|
420
|
+
value: function convertToFlatCase(str) {
|
|
421
|
+
// convert snake, kebab, camel and pascal cases to flat case
|
|
422
|
+
return this.isNotEmpty(str) ? str.replace(/(-|_)/g, '').toLowerCase() : str;
|
|
423
|
+
}
|
|
424
|
+
}, {
|
|
425
|
+
key: "isEmpty",
|
|
426
|
+
value: function isEmpty(value) {
|
|
427
|
+
return value === null || value === undefined || value === '' || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && _typeof(value) === 'object' && Object.keys(value).length === 0;
|
|
428
|
+
}
|
|
429
|
+
}, {
|
|
430
|
+
key: "isNotEmpty",
|
|
431
|
+
value: function isNotEmpty(value) {
|
|
432
|
+
return !this.isEmpty(value);
|
|
433
|
+
}
|
|
434
|
+
}, {
|
|
435
|
+
key: "sort",
|
|
436
|
+
value: function sort(value1, value2) {
|
|
437
|
+
var order = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
438
|
+
var locale = arguments.length > 3 ? arguments[3] : undefined;
|
|
439
|
+
var nullSortOrder = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
|
|
440
|
+
var result = ObjectUtils.compare(value1, value2, locale, order);
|
|
441
|
+
var finalSortOrder = order;
|
|
442
|
+
|
|
443
|
+
// nullSortOrder == 1 means Excel like sort nulls at bottom
|
|
444
|
+
if (ObjectUtils.isEmpty(value1) || ObjectUtils.isEmpty(value2)) {
|
|
445
|
+
finalSortOrder = nullSortOrder === 1 ? order : nullSortOrder;
|
|
446
|
+
}
|
|
447
|
+
return finalSortOrder * result;
|
|
448
|
+
}
|
|
449
|
+
}, {
|
|
450
|
+
key: "compare",
|
|
451
|
+
value: function compare(value1, value2, locale) {
|
|
452
|
+
var order = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
453
|
+
var result = -1;
|
|
454
|
+
var emptyValue1 = ObjectUtils.isEmpty(value1);
|
|
455
|
+
var emptyValue2 = ObjectUtils.isEmpty(value2);
|
|
456
|
+
if (emptyValue1 && emptyValue2) result = 0;else if (emptyValue1) result = order;else if (emptyValue2) result = -order;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, locale, {
|
|
457
|
+
numeric: true
|
|
458
|
+
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
459
|
+
return result;
|
|
460
|
+
}
|
|
461
|
+
}]);
|
|
462
|
+
return ObjectUtils;
|
|
463
|
+
}();
|
|
464
|
+
|
|
465
|
+
var lastId = 0;
|
|
466
|
+
function UniqueComponentId() {
|
|
467
|
+
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pr_id_';
|
|
468
|
+
lastId++;
|
|
469
|
+
return "".concat(prefix).concat(lastId);
|
|
470
|
+
}
|
|
471
|
+
|
|
112
472
|
var DownloadIcon = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
113
473
|
var pti = iconbase.IconBase.getPTI(inProps);
|
|
474
|
+
var _React$useState = React__namespace.useState(inProps.id),
|
|
475
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
476
|
+
pathId = _React$useState2[0],
|
|
477
|
+
setPathId = _React$useState2[1];
|
|
478
|
+
React__namespace.useEffect(function () {
|
|
479
|
+
if (ObjectUtils.isEmpty(pathId)) {
|
|
480
|
+
setPathId(UniqueComponentId('pr_icon_clip_'));
|
|
481
|
+
}
|
|
482
|
+
}, [pathId]);
|
|
114
483
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
115
484
|
ref: ref,
|
|
116
485
|
width: "14",
|
|
@@ -119,14 +488,14 @@ var DownloadIcon = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
|
|
|
119
488
|
fill: "none",
|
|
120
489
|
xmlns: "http://www.w3.org/2000/svg"
|
|
121
490
|
}, pti), /*#__PURE__*/React__namespace.createElement("g", {
|
|
122
|
-
clipPath: "url(#
|
|
491
|
+
clipPath: "url(#".concat(pathId, ")")
|
|
123
492
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
124
493
|
fillRule: "evenodd",
|
|
125
494
|
clipRule: "evenodd",
|
|
126
495
|
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",
|
|
127
496
|
fill: "currentColor"
|
|
128
497
|
})), /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
129
|
-
id:
|
|
498
|
+
id: pathId
|
|
130
499
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
131
500
|
width: "14",
|
|
132
501
|
height: "14",
|
|
@@ -135,7 +504,7 @@ var DownloadIcon = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
|
|
|
135
504
|
}));
|
|
136
505
|
DownloadIcon.displayName = 'DownloadIcon';
|
|
137
506
|
|
|
138
|
-
var ImageBase = {
|
|
507
|
+
var ImageBase = componentbase.ComponentBase.extend({
|
|
139
508
|
defaultProps: {
|
|
140
509
|
__TYPE: 'Image',
|
|
141
510
|
alt: null,
|
|
@@ -165,15 +534,11 @@ var ImageBase = {
|
|
|
165
534
|
zoomOutIcon: null,
|
|
166
535
|
zoomSrc: null,
|
|
167
536
|
children: undefined
|
|
168
|
-
},
|
|
169
|
-
getProps: function getProps(props) {
|
|
170
|
-
return utils.ObjectUtils.getMergedProps(props, ImageBase.defaultProps);
|
|
171
|
-
},
|
|
172
|
-
getOtherProps: function getOtherProps(props) {
|
|
173
|
-
return utils.ObjectUtils.getDiffProps(props, ImageBase.defaultProps);
|
|
174
537
|
}
|
|
175
|
-
};
|
|
538
|
+
});
|
|
176
539
|
|
|
540
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
541
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
177
542
|
var Image = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
178
543
|
var props = ImageBase.getProps(inProps);
|
|
179
544
|
var _React$useState = React__namespace.useState(false),
|
|
@@ -197,6 +562,16 @@ var Image = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
197
562
|
var maskRef = React__namespace.useRef(null);
|
|
198
563
|
var previewRef = React__namespace.useRef(null);
|
|
199
564
|
var previewClick = React__namespace.useRef(false);
|
|
565
|
+
var _ImageBase$setMetaDat = ImageBase.setMetaData({
|
|
566
|
+
props: props,
|
|
567
|
+
state: {
|
|
568
|
+
maskVisible: maskVisibleState,
|
|
569
|
+
previewVisible: previewVisibleState,
|
|
570
|
+
rotate: rotateState,
|
|
571
|
+
scale: scaleState
|
|
572
|
+
}
|
|
573
|
+
}),
|
|
574
|
+
ptm = _ImageBase$setMetaDat.ptm;
|
|
200
575
|
var show = function show() {
|
|
201
576
|
if (props.preview) {
|
|
202
577
|
setMaskVisibleState(true);
|
|
@@ -269,11 +644,12 @@ var Image = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
269
644
|
maskRef.current && utils.ZIndexUtils.clear(maskRef.current);
|
|
270
645
|
});
|
|
271
646
|
var createPreview = function createPreview() {
|
|
647
|
+
var buttonProps = utils.mergeProps({
|
|
648
|
+
className: 'p-image-preview-indicator',
|
|
649
|
+
onClick: show
|
|
650
|
+
}, ptm('button'));
|
|
272
651
|
if (props.preview) {
|
|
273
|
-
return /*#__PURE__*/React__namespace.createElement("div",
|
|
274
|
-
className: "p-image-preview-indicator",
|
|
275
|
-
onClick: show
|
|
276
|
-
}, content);
|
|
652
|
+
return /*#__PURE__*/React__namespace.createElement("div", buttonProps, content);
|
|
277
653
|
}
|
|
278
654
|
return null;
|
|
279
655
|
};
|
|
@@ -287,59 +663,86 @@ var Image = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
287
663
|
var imagePreviewStyle = {
|
|
288
664
|
transform: 'rotate(' + rotateState + 'deg) scale(' + scaleState + ')'
|
|
289
665
|
};
|
|
290
|
-
var
|
|
291
|
-
|
|
292
|
-
var
|
|
666
|
+
var zoomOutDisabled = scaleState <= 0.5;
|
|
667
|
+
var zoomInDisabled = scaleState >= 1.5;
|
|
668
|
+
var downloadIconProps = utils.mergeProps(ptm('downloadIcon'));
|
|
669
|
+
var rotateRightIconProps = utils.mergeProps(ptm('rotateRightIcon'));
|
|
670
|
+
var rotateLeftIconProps = utils.mergeProps(ptm('rotateLeftIcon'));
|
|
671
|
+
var zoomOutIconProps = utils.mergeProps(ptm('zoomOutIcon'));
|
|
672
|
+
var zoomInIconProps = utils.mergeProps(ptm('zoomInIcon'));
|
|
673
|
+
var closeIconProps = utils.mergeProps(ptm('closeIcon'));
|
|
674
|
+
var downloadIcon = utils.IconUtils.getJSXIcon(props.downloadIcon || /*#__PURE__*/React__namespace.createElement(DownloadIcon, null), _objectSpread({}, downloadIconProps), {
|
|
293
675
|
props: props
|
|
294
676
|
});
|
|
295
|
-
var rotateRightIcon = utils.IconUtils.getJSXIcon(props.rotateRightIcon || /*#__PURE__*/React__namespace.createElement(refresh.RefreshIcon, null),
|
|
677
|
+
var rotateRightIcon = utils.IconUtils.getJSXIcon(props.rotateRightIcon || /*#__PURE__*/React__namespace.createElement(refresh.RefreshIcon, null), _objectSpread({}, rotateRightIconProps), {
|
|
296
678
|
props: props
|
|
297
679
|
});
|
|
298
|
-
var rotateLeftIcon = utils.IconUtils.getJSXIcon(props.rotateLeftIcon || /*#__PURE__*/React__namespace.createElement(undo.UndoIcon, null),
|
|
680
|
+
var rotateLeftIcon = utils.IconUtils.getJSXIcon(props.rotateLeftIcon || /*#__PURE__*/React__namespace.createElement(undo.UndoIcon, null), _objectSpread({}, rotateLeftIconProps), {
|
|
299
681
|
props: props
|
|
300
682
|
});
|
|
301
|
-
var zoomOutIcon = utils.IconUtils.getJSXIcon(props.zoomOutIcon || /*#__PURE__*/React__namespace.createElement(searchminus.SearchMinusIcon, null),
|
|
683
|
+
var zoomOutIcon = utils.IconUtils.getJSXIcon(props.zoomOutIcon || /*#__PURE__*/React__namespace.createElement(searchminus.SearchMinusIcon, null), _objectSpread({}, zoomOutIconProps), {
|
|
302
684
|
props: props
|
|
303
685
|
});
|
|
304
|
-
var zoomInIcon = utils.IconUtils.getJSXIcon(props.zoomInIcon || /*#__PURE__*/React__namespace.createElement(searchplus.SearchPlusIcon, null),
|
|
686
|
+
var zoomInIcon = utils.IconUtils.getJSXIcon(props.zoomInIcon || /*#__PURE__*/React__namespace.createElement(searchplus.SearchPlusIcon, null), _objectSpread({}, zoomInIconProps), {
|
|
305
687
|
props: props
|
|
306
688
|
});
|
|
307
|
-
var closeIcon = utils.IconUtils.getJSXIcon(props.closeIcon || /*#__PURE__*/React__namespace.createElement(times.TimesIcon, null),
|
|
689
|
+
var closeIcon = utils.IconUtils.getJSXIcon(props.closeIcon || /*#__PURE__*/React__namespace.createElement(times.TimesIcon, null), _objectSpread({}, closeIconProps), {
|
|
308
690
|
props: props
|
|
309
691
|
});
|
|
310
|
-
|
|
692
|
+
var maskProps = utils.mergeProps({
|
|
311
693
|
ref: maskRef,
|
|
312
|
-
className:
|
|
313
|
-
|
|
314
|
-
},
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
className:
|
|
330
|
-
|
|
331
|
-
type:
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
className:
|
|
335
|
-
|
|
336
|
-
type:
|
|
337
|
-
disabled:
|
|
338
|
-
},
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
694
|
+
className: 'p-image-mask p-component-overlay p-component-overlay-enter',
|
|
695
|
+
onPointerUp: hide
|
|
696
|
+
}, ptm('mask'));
|
|
697
|
+
var toolbarProps = utils.mergeProps({
|
|
698
|
+
className: 'p-image-toolbar'
|
|
699
|
+
}, ptm('toolbar'));
|
|
700
|
+
var downloadButtonProps = utils.mergeProps({
|
|
701
|
+
className: 'p-image-action p-link',
|
|
702
|
+
onPointerUp: onDownload,
|
|
703
|
+
type: 'button'
|
|
704
|
+
}, ptm('downloadButton'));
|
|
705
|
+
var rotateRightButtonProps = utils.mergeProps({
|
|
706
|
+
className: 'p-image-action p-link',
|
|
707
|
+
onPointerUp: rotateRight,
|
|
708
|
+
type: 'button'
|
|
709
|
+
}, ptm('rotateRightButton'));
|
|
710
|
+
var rotateLeftButtonProps = utils.mergeProps({
|
|
711
|
+
className: 'p-image-action p-link',
|
|
712
|
+
onPointerUp: rotateLeft,
|
|
713
|
+
type: 'button'
|
|
714
|
+
}, ptm('rotateLeftButton'));
|
|
715
|
+
var zoomOutButtonProps = utils.mergeProps({
|
|
716
|
+
className: 'p-image-action p-link',
|
|
717
|
+
onPointerUp: zoomOut,
|
|
718
|
+
type: 'button',
|
|
719
|
+
disabled: zoomOutDisabled
|
|
720
|
+
}, ptm('zoomOutButton'));
|
|
721
|
+
var zoomInButtonProps = utils.mergeProps({
|
|
722
|
+
className: 'p-image-action p-link',
|
|
723
|
+
onPointerUp: zoomIn,
|
|
724
|
+
type: 'button',
|
|
725
|
+
disabled: zoomInDisabled
|
|
726
|
+
}, ptm('zoomInButton'));
|
|
727
|
+
var closeButtonProps = utils.mergeProps({
|
|
728
|
+
className: 'p-image-action p-link',
|
|
729
|
+
type: 'button',
|
|
730
|
+
'aria-label': PrimeReact.localeOption('close')
|
|
731
|
+
}, ptm('closeButton'));
|
|
732
|
+
var previewProps = utils.mergeProps({
|
|
733
|
+
src: props.zoomSrc || props.src,
|
|
734
|
+
className: 'p-image-preview',
|
|
735
|
+
style: imagePreviewStyle,
|
|
736
|
+
onPointerUp: onPreviewImageClick,
|
|
737
|
+
crossOrigin: crossOrigin,
|
|
738
|
+
referrerPolicy: referrerPolicy,
|
|
739
|
+
useMap: useMap,
|
|
740
|
+
loading: loading
|
|
741
|
+
}, ptm('preview'));
|
|
742
|
+
var previewContainerProps = utils.mergeProps({
|
|
743
|
+
ref: previewRef
|
|
744
|
+
}, ptm('previewContainer'));
|
|
745
|
+
return /*#__PURE__*/React__namespace.createElement("div", maskProps, /*#__PURE__*/React__namespace.createElement("div", toolbarProps, downloadable && /*#__PURE__*/React__namespace.createElement("button", downloadButtonProps, downloadIcon), /*#__PURE__*/React__namespace.createElement("button", rotateRightButtonProps, rotateRightIcon), /*#__PURE__*/React__namespace.createElement("button", rotateLeftButtonProps, rotateLeftIcon), /*#__PURE__*/React__namespace.createElement("button", zoomOutButtonProps, zoomOutIcon), /*#__PURE__*/React__namespace.createElement("button", zoomInButtonProps, zoomInIcon), /*#__PURE__*/React__namespace.createElement("button", closeButtonProps, closeIcon)), /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, {
|
|
343
746
|
nodeRef: previewRef,
|
|
344
747
|
classNames: "p-image-preview",
|
|
345
748
|
"in": previewVisibleState,
|
|
@@ -353,19 +756,9 @@ var Image = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
353
756
|
onExit: onExit,
|
|
354
757
|
onExiting: onExiting,
|
|
355
758
|
onExited: onExited
|
|
356
|
-
}, /*#__PURE__*/React__namespace.createElement("div", {
|
|
357
|
-
|
|
358
|
-
},
|
|
359
|
-
src: props.zoomSrc || props.src,
|
|
360
|
-
className: "p-image-preview",
|
|
361
|
-
style: imagePreviewStyle,
|
|
362
|
-
onClick: onPreviewImageClick,
|
|
363
|
-
alt: alt,
|
|
364
|
-
crossOrigin: crossOrigin,
|
|
365
|
-
referrerPolicy: referrerPolicy,
|
|
366
|
-
useMap: useMap,
|
|
367
|
-
loading: loading
|
|
368
|
-
}))));
|
|
759
|
+
}, /*#__PURE__*/React__namespace.createElement("div", previewContainerProps, /*#__PURE__*/React__namespace.createElement("img", _extends({
|
|
760
|
+
alt: alt
|
|
761
|
+
}, previewProps)))));
|
|
369
762
|
};
|
|
370
763
|
React__namespace.useImperativeHandle(ref, function () {
|
|
371
764
|
return {
|
|
@@ -388,23 +781,21 @@ var Image = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
388
781
|
referrerPolicy = props.referrerPolicy,
|
|
389
782
|
useMap = props.useMap,
|
|
390
783
|
loading = props.loading;
|
|
391
|
-
var otherProps = ImageBase.getOtherProps(props);
|
|
392
784
|
var containerClassName = utils.classNames('p-image p-component', props.className, {
|
|
393
785
|
'p-image-preview-container': props.preview
|
|
394
786
|
});
|
|
395
787
|
var element = createElement();
|
|
396
788
|
var iconClassName = 'p-image-preview-icon';
|
|
397
|
-
var
|
|
398
|
-
className: iconClassName
|
|
399
|
-
});
|
|
400
|
-
var indicatorIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
789
|
+
var iconProp = utils.mergeProps({
|
|
401
790
|
className: iconClassName
|
|
402
|
-
},
|
|
791
|
+
}, ptm('icon'));
|
|
792
|
+
var icon = props.indicatorIcon || /*#__PURE__*/React__namespace.createElement(eye.EyeIcon, iconProp);
|
|
793
|
+
var indicatorIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, iconProp), {
|
|
403
794
|
props: props
|
|
404
795
|
});
|
|
405
796
|
var content = props.template ? utils.ObjectUtils.getJSXElement(props.template, props) : indicatorIcon;
|
|
406
797
|
var preview = createPreview();
|
|
407
|
-
var
|
|
798
|
+
var imageProp = utils.mergeProps({
|
|
408
799
|
ref: imageRef,
|
|
409
800
|
src: src,
|
|
410
801
|
className: props.imageClassName,
|
|
@@ -414,14 +805,17 @@ var Image = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
414
805
|
referrerPolicy: referrerPolicy,
|
|
415
806
|
useMap: useMap,
|
|
416
807
|
loading: loading,
|
|
417
|
-
alt: alt,
|
|
418
808
|
style: props.imageStyle,
|
|
419
809
|
onError: props.onError
|
|
420
|
-
});
|
|
421
|
-
|
|
810
|
+
}, ptm('image'));
|
|
811
|
+
var image = props.src && /*#__PURE__*/React__namespace.createElement("img", _extends({}, imageProp, {
|
|
812
|
+
alt: alt
|
|
813
|
+
}));
|
|
814
|
+
var rootProps = utils.mergeProps({
|
|
422
815
|
ref: elementRef,
|
|
423
816
|
className: containerClassName
|
|
424
|
-
},
|
|
817
|
+
}, ImageBase.getOtherProps(props), ptm('root'));
|
|
818
|
+
return /*#__PURE__*/React__namespace.createElement("span", rootProps, image, preview, maskVisibleState && /*#__PURE__*/React__namespace.createElement(portal.Portal, {
|
|
425
819
|
element: element,
|
|
426
820
|
appendTo: document.body
|
|
427
821
|
}));
|