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.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),n=require("primereact/csstransition"),r=require("primereact/hooks"),o=require("primereact/iconbase"),l=require("primereact/icons/eye"),i=require("primereact/icons/refresh"),a=require("primereact/icons/searchminus"),c=require("primereact/icons/searchplus"),u=require("primereact/icons/times"),s=require("primereact/icons/undo"),m=require("primereact/portal"),p=require("primereact/utils");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function d(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var g=d(e),v=f(t);function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}function h(e){if(Array.isArray(e))return e}function C(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,a=[],c=!0,u=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function E(){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 w(e,t){return h(e)||C(e,t)||b(e,t)||E()}var O=g.memo(g.forwardRef((function(e,t){var n=o.IconBase.getPTI(e);return g.createElement("svg",I({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),g.createElement("g",{clipPath:"url(#clip0_407_20832)"},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",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",fill:"currentColor"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_407_20832"},g.createElement("rect",{width:"14",height:"14",fill:"white"}))))})));O.displayName="DownloadIcon";var S={defaultProps:{__TYPE:"Image",alt:null,className:null,closeIcon:null,crossOrigin:null,decoding:null,downloadIcon:null,downloadable:!1,height:null,imageClassName:null,imageStyle:null,indicatorIcon:null,loading:null,onError:null,onHide:null,onShow:null,preview:!1,referrerPolicy:null,rotateLeftIcon:null,rotateRightIcon:null,src:null,template:null,useMap:null,width:null,zoomInIcon:null,zoomOutIcon:null,zoomSrc:null,children:void 0},getProps:function(e){return p.ObjectUtils.getMergedProps(e,S.defaultProps)},getOtherProps:function(e){return p.ObjectUtils.getDiffProps(e,S.defaultProps)}},P=g.memo(g.forwardRef((function(e,o){var f=S.getProps(e),d=w(g.useState(!1),2),h=d[0],C=d[1],y=w(g.useState(!1),2),b=y[0],E=y[1],P=w(g.useState(0),2),N=P[0],j=P[1],k=w(g.useState(1),2),U=k[0],x=k[1],q=g.useRef(null),R=g.useRef(null),M=g.useRef(null),_=g.useRef(null),z=g.useRef(!1),H=function(){f.preview&&(C(!0),setTimeout((function(){E(!0)}),25))},J=function(){z.current||(E(!1),j(0),x(1)),z.current=!1},X=function(){z.current=!0},A=function(){p.DomHandler.saveAs({name:f.alt,src:f.src}),z.current=!0},T=function(){j((function(e){return e+90})),z.current=!0},L=function(){j((function(e){return e-90})),z.current=!0},V=function(){x((function(e){return e+.1})),z.current=!0},Z=function(){x((function(e){return e-.1})),z.current=!0},D=function(){p.ZIndexUtils.set("modal",M.current,v.default.autoZIndex,v.default.zIndex.modal)},B=function(){f.onShow&&f.onShow()},Y=function(){p.DomHandler.addClass(M.current,"p-component-overlay-leave")},$=function(){f.onHide&&f.onHide()},F=function(){p.ZIndexUtils.clear(M.current),C(!1)};r.useUnmountEffect((function(){M.current&&p.ZIndexUtils.clear(M.current)}));g.useImperativeHandle(o,(function(){return{props:f,show:H,hide:J,getElement:function(){return q.current},getImage:function(){return R.current}}}));var G=f.src,K=f.alt,Q=f.width,W=f.height,ee=f.crossOrigin,te=f.referrerPolicy,ne=f.useMap,re=f.loading,oe=S.getOtherProps(f),le=p.classNames("p-image p-component",f.className,{"p-image-preview-container":f.preview}),ie=function(){var e=f.downloadable,r=f.alt,o=f.crossOrigin,l=f.referrerPolicy,m=f.useMap,d=f.loading,v={transform:"rotate("+N+"deg) scale("+U+")"},I=U<=.5||U>=1.5,h=p.IconUtils.getJSXIcon(f.downloadIcon||g.createElement(O,null),void 0,{props:f}),C=p.IconUtils.getJSXIcon(f.rotateRightIcon||g.createElement(i.RefreshIcon,null),void 0,{props:f}),y=p.IconUtils.getJSXIcon(f.rotateLeftIcon||g.createElement(s.UndoIcon,null),void 0,{props:f}),E=p.IconUtils.getJSXIcon(f.zoomOutIcon||g.createElement(a.SearchMinusIcon,null),void 0,{props:f}),w=p.IconUtils.getJSXIcon(f.zoomInIcon||g.createElement(c.SearchPlusIcon,null),void 0,{props:f}),S=p.IconUtils.getJSXIcon(f.closeIcon||g.createElement(u.TimesIcon,null),void 0,{props:f});return g.createElement("div",{ref:M,className:"p-image-mask p-component-overlay p-component-overlay-enter",onClick:J},g.createElement("div",{className:"p-image-toolbar"},e&&g.createElement("button",{className:"p-image-action p-link",onClick:A,type:"button"},h),g.createElement("button",{className:"p-image-action p-link",onClick:T,type:"button"},C),g.createElement("button",{className:"p-image-action p-link",onClick:L,type:"button"},y),g.createElement("button",{className:"p-image-action p-link",onClick:Z,type:"button",disabled:I},E),g.createElement("button",{className:"p-image-action p-link",onClick:V,type:"button",disabled:I},w),g.createElement("button",{className:"p-image-action p-link",type:"button","aria-label":t.localeOption("close")},S)),g.createElement(n.CSSTransition,{nodeRef:_,classNames:"p-image-preview",in:b,timeout:{enter:150,exit:150},unmountOnExit:!0,onEntering:D,onEntered:B,onExit:Y,onExiting:$,onExited:F},g.createElement("div",{ref:_},g.createElement("img",{src:f.zoomSrc||f.src,className:"p-image-preview",style:v,onClick:X,alt:r,crossOrigin:o,referrerPolicy:l,useMap:m,loading:d}))))}(),ae="p-image-preview-icon",ce=p.IconUtils.getJSXIcon(f.indicatorIcon||g.createElement(l.EyeIcon,{className:ae}),{className:ae},{props:f}),ue=f.template?p.ObjectUtils.getJSXElement(f.template,f):ce,se=f.preview?g.createElement("div",{className:"p-image-preview-indicator",onClick:H},ue):null,me=f.src&&g.createElement("img",{ref:R,src:G,className:f.imageClassName,width:Q,height:W,crossOrigin:ee,referrerPolicy:te,useMap:ne,loading:re,alt:K,style:f.imageStyle,onError:f.onError});return g.createElement("span",I({ref:q,className:le},oe),me,se,h&&g.createElement(m.Portal,{element:ie,appendTo:document.body}))})));P.displayName="Image",exports.Image=P;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),r=require("primereact/csstransition"),n=require("primereact/hooks"),o=require("primereact/iconbase"),i=require("primereact/icons/eye"),a=require("primereact/icons/refresh"),l=require("primereact/icons/searchminus"),c=require("primereact/icons/searchplus"),u=require("primereact/icons/times"),s=require("primereact/icons/undo"),p=require("primereact/portal"),f=require("primereact/utils"),m=require("primereact/componentbase");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function y(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 d=y(e),v=g(t);function h(){return h=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},h.apply(this,arguments)}function b(e){return b="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},b(e)}function E(e,t){if("object"!==b(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function P(e){var t=E(e,"string");return"symbol"===b(t)?t:String(t)}function C(e,t,r){return(t=P(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e){if(Array.isArray(e))return e}function w(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function O(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 x(e,t){if(e){if("string"==typeof e)return O(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)?O(e,t):void 0}}function j(){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 k(e,t){return I(e)||w(e,t)||x(e,t)||j()}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(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,P(n.key),n)}}var N=function(){function e(){S(this,e)}var t,r,n;return t=e,n=[{key:"equals",value:function(e,t,r){return r&&e&&"object"===b(e)&&t&&"object"===b(t)?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"==b(e)&&"object"==b(t)){var r,n,o,i=Array.isArray(e),a=Array.isArray(t);if(i&&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(i!==a)return!1;var l=e instanceof Date,c=t instanceof Date;if(l!==c)return!1;if(l&&c)return e.getTime()===t.getTime();var u=e instanceof RegExp,s=t instanceof RegExp;if(u!==s)return!1;if(u&&s)return e.toString()===t.toString();var p=Object.keys(e);if((n=p.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,p[r]))return!1;for(r=n;0!=r--;)if(!this.deepEquals(e[o=p[r]],t[o]))return!1;return!0}return e!=e&&t!=t}},{key:"resolveFieldData",value:function(t,r){if(t&&Object.keys(t).length&&r){if(this.isFunction(r))return r(t);if(e.isNotEmpty(t[r]))return t[r];if(-1===r.indexOf("."))return t[r];for(var n=r.split("."),o=t,i=0,a=n.length;i<a;++i){if(null==o)return null;o=o[n[i]]}return o}return null}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"isLetter",value:function(e){return e&&(e.toUpperCase()!=e.toLowerCase()||e.codePointAt(0)>127)}},{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:"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:"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=(this.getComponentProp(e,"__TYPE")||(e.type?e.type.displayName:void 0))===t;return n}return!1}},{key:"getRefElement",value:function(e){return e?"object"===b(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:"convertToFlatCase",value:function(e){return this.isNotEmpty(e)?e.replace(/(-|_)/g,"").toLowerCase():e}},{key:"isEmpty",value:function(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"===b(e)&&0===Object.keys(e).length}},{key:"isNotEmpty",value:function(e){return!this.isEmpty(e)}},{key:"sort",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=e.compare(t,r,arguments.length>3?arguments[3]:void 0,n),a=n;return(e.isEmpty(t)||e.isEmpty(r))&&(a=1===o?n:o),a*i}},{key:"compare",value:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=e.isEmpty(t),a=e.isEmpty(r);return i&&a?0:i?o:a?-o:"string"==typeof t&&"string"==typeof r?t.localeCompare(r,n,{numeric:!0}):t<r?-1:t>r?1:0}}],(r=null)&&D(t.prototype,r),n&&D(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),U=0;function F(){return U++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pr_id_").concat(U)}var q=d.memo(d.forwardRef((function(e,t){var r=o.IconBase.getPTI(e),n=k(d.useState(e.id),2),i=n[0],a=n[1];return d.useEffect((function(){N.isEmpty(i)&&a(F("pr_icon_clip_"))}),[i]),d.createElement("svg",h({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),d.createElement("g",{clipPath:"url(#".concat(i,")")},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",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",fill:"currentColor"})),d.createElement("defs",null,d.createElement("clipPath",{id:i},d.createElement("rect",{width:"14",height:"14",fill:"white"}))))})));q.displayName="DownloadIcon";var A=m.ComponentBase.extend({defaultProps:{__TYPE:"Image",alt:null,className:null,closeIcon:null,crossOrigin:null,decoding:null,downloadIcon:null,downloadable:!1,height:null,imageClassName:null,imageStyle:null,indicatorIcon:null,loading:null,onError:null,onHide:null,onShow:null,preview:!1,referrerPolicy:null,rotateLeftIcon:null,rotateRightIcon:null,src:null,template:null,useMap:null,width:null,zoomInIcon:null,zoomOutIcon:null,zoomSrc:null,children:void 0}});function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _=d.memo(d.forwardRef((function(e,o){var m=A.getProps(e),g=k(d.useState(!1),2),y=g[0],b=g[1],E=k(d.useState(!1),2),P=E[0],C=E[1],I=k(d.useState(0),2),w=I[0],O=I[1],x=k(d.useState(1),2),j=x[0],S=x[1],D=d.useRef(null),N=d.useRef(null),U=d.useRef(null),F=d.useRef(null),R=d.useRef(!1),_=A.setMetaData({props:m,state:{maskVisible:y,previewVisible:P,rotate:w,scale:j}}).ptm,T=function(){m.preview&&(b(!0),setTimeout((function(){C(!0)}),25))},z=function(){R.current||(C(!1),O(0),S(1)),R.current=!1},L=function(){R.current=!0},B=function(){f.DomHandler.saveAs({name:m.alt,src:m.src}),R.current=!0},V=function(){O((function(e){return e+90})),R.current=!0},J=function(){O((function(e){return e-90})),R.current=!0},X=function(){S((function(e){return e+.1})),R.current=!0},H=function(){S((function(e){return e-.1})),R.current=!0},Z=function(){f.ZIndexUtils.set("modal",U.current,v.default.autoZIndex,v.default.zIndex.modal)},K=function(){m.onShow&&m.onShow()},Y=function(){f.DomHandler.addClass(U.current,"p-component-overlay-leave")},W=function(){m.onHide&&m.onHide()},$=function(){f.ZIndexUtils.clear(U.current),b(!1)};n.useUnmountEffect((function(){U.current&&f.ZIndexUtils.clear(U.current)}));d.useImperativeHandle(o,(function(){return{props:m,show:T,hide:z,getElement:function(){return D.current},getImage:function(){return N.current}}}));var G,Q=m.src,ee=m.alt,te=m.width,re=m.height,ne=m.crossOrigin,oe=m.referrerPolicy,ie=m.useMap,ae=m.loading,le=f.classNames("p-image p-component",m.className,{"p-image-preview-container":m.preview}),ce=function(){var e=m.downloadable,n=m.alt,o=m.crossOrigin,i=m.referrerPolicy,p=m.useMap,g=m.loading,y={transform:"rotate("+w+"deg) scale("+j+")"},v=j<=.5,b=j>=1.5,E=f.mergeProps(_("downloadIcon")),C=f.mergeProps(_("rotateRightIcon")),I=f.mergeProps(_("rotateLeftIcon")),O=f.mergeProps(_("zoomOutIcon")),x=f.mergeProps(_("zoomInIcon")),k=f.mergeProps(_("closeIcon")),S=f.IconUtils.getJSXIcon(m.downloadIcon||d.createElement(q,null),M({},E),{props:m}),D=f.IconUtils.getJSXIcon(m.rotateRightIcon||d.createElement(a.RefreshIcon,null),M({},C),{props:m}),N=f.IconUtils.getJSXIcon(m.rotateLeftIcon||d.createElement(s.UndoIcon,null),M({},I),{props:m}),A=f.IconUtils.getJSXIcon(m.zoomOutIcon||d.createElement(l.SearchMinusIcon,null),M({},O),{props:m}),R=f.IconUtils.getJSXIcon(m.zoomInIcon||d.createElement(c.SearchPlusIcon,null),M({},x),{props:m}),T=f.IconUtils.getJSXIcon(m.closeIcon||d.createElement(u.TimesIcon,null),M({},k),{props:m}),G=f.mergeProps({ref:U,className:"p-image-mask p-component-overlay p-component-overlay-enter",onPointerUp:z},_("mask")),Q=f.mergeProps({className:"p-image-toolbar"},_("toolbar")),ee=f.mergeProps({className:"p-image-action p-link",onPointerUp:B,type:"button"},_("downloadButton")),te=f.mergeProps({className:"p-image-action p-link",onPointerUp:V,type:"button"},_("rotateRightButton")),re=f.mergeProps({className:"p-image-action p-link",onPointerUp:J,type:"button"},_("rotateLeftButton")),ne=f.mergeProps({className:"p-image-action p-link",onPointerUp:H,type:"button",disabled:v},_("zoomOutButton")),oe=f.mergeProps({className:"p-image-action p-link",onPointerUp:X,type:"button",disabled:b},_("zoomInButton")),ie=f.mergeProps({className:"p-image-action p-link",type:"button","aria-label":t.localeOption("close")},_("closeButton")),ae=f.mergeProps({src:m.zoomSrc||m.src,className:"p-image-preview",style:y,onPointerUp:L,crossOrigin:o,referrerPolicy:i,useMap:p,loading:g},_("preview")),le=f.mergeProps({ref:F},_("previewContainer"));return d.createElement("div",G,d.createElement("div",Q,e&&d.createElement("button",ee,S),d.createElement("button",te,D),d.createElement("button",re,N),d.createElement("button",ne,A),d.createElement("button",oe,R),d.createElement("button",ie,T)),d.createElement(r.CSSTransition,{nodeRef:F,classNames:"p-image-preview",in:P,timeout:{enter:150,exit:150},unmountOnExit:!0,onEntering:Z,onEntered:K,onExit:Y,onExiting:W,onExited:$},d.createElement("div",le,d.createElement("img",h({alt:n},ae)))))}(),ue=f.mergeProps({className:"p-image-preview-icon"},_("icon")),se=f.IconUtils.getJSXIcon(m.indicatorIcon||d.createElement(i.EyeIcon,ue),M({},ue),{props:m}),pe=m.template?f.ObjectUtils.getJSXElement(m.template,m):se,fe=(G=f.mergeProps({className:"p-image-preview-indicator",onClick:T},_("button")),m.preview?d.createElement("div",G,pe):null),me=f.mergeProps({ref:N,src:Q,className:m.imageClassName,width:te,height:re,crossOrigin:ne,referrerPolicy:oe,useMap:ie,loading:ae,style:m.imageStyle,onError:m.onError},_("image")),ge=m.src&&d.createElement("img",h({},me,{alt:ee})),ye=f.mergeProps({ref:D,className:le},A.getOtherProps(m),_("root"));return d.createElement("span",ye,ge,fe,y&&d.createElement(p.Portal,{element:ce,appendTo:document.body}))})));_.displayName="Image",exports.Image=_;
|
package/image/image.d.ts
CHANGED
|
@@ -8,13 +8,135 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
import * as React from 'react';
|
|
11
|
-
import { IconType } from '../utils/utils';
|
|
11
|
+
import { IconType, PassThroughType } from '../utils/utils';
|
|
12
|
+
|
|
13
|
+
export declare type ImagePassThroughType<T> = PassThroughType<T, ImageThroughMethodOptions>;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Custom passthrough(pt) option method.
|
|
17
|
+
*/
|
|
18
|
+
export interface ImageThroughMethodOptions {
|
|
19
|
+
props: ImageProps;
|
|
20
|
+
state: ImageState;
|
|
21
|
+
}
|
|
12
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Custom passthrough(pt) options.
|
|
25
|
+
* @see {@link ImageProps.pt}
|
|
26
|
+
*/
|
|
27
|
+
export interface ImagePassThroughOptions {
|
|
28
|
+
/**
|
|
29
|
+
* Uses to pass attributes to the root's DOM element.
|
|
30
|
+
*/
|
|
31
|
+
root?: ImagePassThroughType<React.HTMLAttributes<HTMLSpanElement>>;
|
|
32
|
+
/**
|
|
33
|
+
* Uses to pass attributes to the image's DOM element.
|
|
34
|
+
*/
|
|
35
|
+
image?: ImagePassThroughType<React.HTMLAttributes<HTMLImageElement>>;
|
|
36
|
+
/**
|
|
37
|
+
* Uses to pass attributes to the button's DOM element.
|
|
38
|
+
*/
|
|
39
|
+
button?: ImagePassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
40
|
+
/**
|
|
41
|
+
* Uses to pass attributes to the icon's DOM element.
|
|
42
|
+
*/
|
|
43
|
+
icon?: ImagePassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
44
|
+
/**
|
|
45
|
+
* Uses to pass attributes to the mask's DOM element.
|
|
46
|
+
*/
|
|
47
|
+
mask?: ImagePassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
48
|
+
/**
|
|
49
|
+
* Uses to pass attributes to the toolbar's DOM element.
|
|
50
|
+
*/
|
|
51
|
+
toolbar?: ImagePassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
52
|
+
/**
|
|
53
|
+
* Uses to pass attributes to the download button's DOM element.
|
|
54
|
+
*/
|
|
55
|
+
downloadButton?: ImagePassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
56
|
+
/**
|
|
57
|
+
* Uses to pass attributes to the download icon's DOM element.
|
|
58
|
+
*/
|
|
59
|
+
downloadIcon?: ImagePassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
60
|
+
/**
|
|
61
|
+
* Uses to pass attributes to the rotate right button's DOM element.
|
|
62
|
+
*/
|
|
63
|
+
rotateRightButton?: ImagePassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
64
|
+
/**
|
|
65
|
+
* Uses to pass attributes to the rotate right icon's DOM element.
|
|
66
|
+
*/
|
|
67
|
+
rotateRightIcon?: ImagePassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
68
|
+
/**
|
|
69
|
+
* Uses to pass attributes to the rotate left button's DOM element.
|
|
70
|
+
*/
|
|
71
|
+
rotateLeftButton?: ImagePassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
72
|
+
/**
|
|
73
|
+
* Uses to pass attributes to the rotate left icon's DOM element.
|
|
74
|
+
*/
|
|
75
|
+
rotateLeftIcon?: ImagePassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
76
|
+
/**
|
|
77
|
+
* Uses to pass attributes to the zoom out button's DOM element.
|
|
78
|
+
*/
|
|
79
|
+
zoomOutButton?: ImagePassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
80
|
+
/**
|
|
81
|
+
* Uses to pass attributes to the zoom out icon's DOM element.
|
|
82
|
+
*/
|
|
83
|
+
zoomOutIcon?: ImagePassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
84
|
+
/**
|
|
85
|
+
* Uses to pass attributes to the zoom in button's DOM element.
|
|
86
|
+
*/
|
|
87
|
+
zoomInButton?: ImagePassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
88
|
+
/**
|
|
89
|
+
* Uses to pass attributes to the zoom in icon's DOM element.
|
|
90
|
+
*/
|
|
91
|
+
zoomInIcon?: ImagePassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
92
|
+
/**
|
|
93
|
+
* Uses to pass attributes to the close button's DOM element.
|
|
94
|
+
*/
|
|
95
|
+
closeButton?: ImagePassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
96
|
+
/**
|
|
97
|
+
* Uses to pass attributes to the close icon's DOM element.
|
|
98
|
+
*/
|
|
99
|
+
closeIcon?: ImagePassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
100
|
+
/**
|
|
101
|
+
* Uses to pass attributes to the preview container's DOM element.
|
|
102
|
+
*/
|
|
103
|
+
previewContainer?: ImagePassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
104
|
+
/**
|
|
105
|
+
* Uses to pass attributes to the preview's DOM element.
|
|
106
|
+
*/
|
|
107
|
+
preview?: ImagePassThroughType<React.HTMLAttributes<HTMLImageElement>>;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Defines current inline state in Image component.
|
|
112
|
+
*/
|
|
113
|
+
export interface ImageState {
|
|
114
|
+
/**
|
|
115
|
+
* Mask visible state as a boolean.
|
|
116
|
+
* @defaultValue false
|
|
117
|
+
*/
|
|
118
|
+
maskVisible: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Preview visible state as a boolean.
|
|
121
|
+
* @defaultValue false
|
|
122
|
+
*/
|
|
123
|
+
previewVisible: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Rotate state as a number.
|
|
126
|
+
* @defaultValue 0
|
|
127
|
+
*/
|
|
128
|
+
rotate: number;
|
|
129
|
+
/**
|
|
130
|
+
* Scale state as a boolean.
|
|
131
|
+
* @defaultValue 1
|
|
132
|
+
*/
|
|
133
|
+
scale: number;
|
|
134
|
+
}
|
|
13
135
|
/**
|
|
14
136
|
* Defines valid properties in Image component. In addition to these, all properties of HTMLSpanElement can be used in this component.
|
|
15
137
|
* @group Properties
|
|
16
138
|
*/
|
|
17
|
-
export interface ImageProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, 'ref'> {
|
|
139
|
+
export interface ImageProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, 'ref' | 'pt'> {
|
|
18
140
|
/**
|
|
19
141
|
* Specifies an alternate text for an area, if the image cannot be displayed.
|
|
20
142
|
*/
|
|
@@ -95,7 +217,7 @@ export interface ImageProps extends Omit<React.DetailedHTMLProps<React.HTMLAttri
|
|
|
95
217
|
*/
|
|
96
218
|
src?: string | undefined;
|
|
97
219
|
/**
|
|
98
|
-
* Changing the default icon when the image is hovered in preview mode.
|
|
220
|
+
* Changing the default icon when the image is hovered in preview mode. Since v9, use `indicatorIcon` instead.
|
|
99
221
|
* @deprecated Since v9, use `indicatorIcon` instead.
|
|
100
222
|
*/
|
|
101
223
|
template?: any | undefined;
|
|
@@ -115,6 +237,11 @@ export interface ImageProps extends Omit<React.DetailedHTMLProps<React.HTMLAttri
|
|
|
115
237
|
* Triggered when the preview overlay is shown.
|
|
116
238
|
*/
|
|
117
239
|
onShow?(): void;
|
|
240
|
+
/**
|
|
241
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
242
|
+
* @type {ImagePassThroughOptions}
|
|
243
|
+
*/
|
|
244
|
+
pt?: ImagePassThroughOptions;
|
|
118
245
|
}
|
|
119
246
|
|
|
120
247
|
/**
|