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/galleria/galleria.d.ts
CHANGED
|
@@ -9,7 +9,156 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
import { CSSTransitionProps } from '../csstransition';
|
|
12
|
-
import { IconType } from '../utils/utils';
|
|
12
|
+
import { IconType, PassThroughType } from '../utils/utils';
|
|
13
|
+
|
|
14
|
+
export declare type GalleriaPassThroughType<T> = PassThroughType<T, GalleriaThroughMethodOptions>;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Custom passthrough(pt) option method.
|
|
18
|
+
*/
|
|
19
|
+
export interface GalleriaThroughMethodOptions {
|
|
20
|
+
props: GalleriaProps;
|
|
21
|
+
state: GalleriaState;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Custom passthrough(pt) options.
|
|
26
|
+
* @see {@link GalleriaProps.pt}
|
|
27
|
+
*/
|
|
28
|
+
export interface GalleriaPassThroughOptions {
|
|
29
|
+
/**
|
|
30
|
+
* Uses to pass attributes to the root's DOM element.
|
|
31
|
+
*/
|
|
32
|
+
root?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
33
|
+
/**
|
|
34
|
+
* Uses to pass attributes to the close button's DOM element.
|
|
35
|
+
*/
|
|
36
|
+
closeButton?: GalleriaPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
37
|
+
/**
|
|
38
|
+
* Uses to pass attributes to the close icon's DOM element.
|
|
39
|
+
*/
|
|
40
|
+
closeIcon?: GalleriaPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
41
|
+
/**
|
|
42
|
+
* Uses to pass attributes to the header's DOM element.
|
|
43
|
+
*/
|
|
44
|
+
header?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
45
|
+
/**
|
|
46
|
+
* Uses to pass attributes to the content's DOM element.
|
|
47
|
+
*/
|
|
48
|
+
content?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
49
|
+
/**
|
|
50
|
+
* Uses to pass attributes to the footer's DOM element.
|
|
51
|
+
*/
|
|
52
|
+
footer?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
53
|
+
/**
|
|
54
|
+
* Uses to pass attributes to the item wrapper's DOM element.
|
|
55
|
+
*/
|
|
56
|
+
itemWrapper?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
57
|
+
/**
|
|
58
|
+
* Uses to pass attributes to the item container's DOM element.
|
|
59
|
+
*/
|
|
60
|
+
itemContainer?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
61
|
+
/**
|
|
62
|
+
* Uses to pass attributes to the previous item button's DOM element.
|
|
63
|
+
*/
|
|
64
|
+
previousItemButton?: GalleriaPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
65
|
+
/**
|
|
66
|
+
* Uses to pass attributes to the previous item icon's DOM element.
|
|
67
|
+
*/
|
|
68
|
+
previousItemIcon?: GalleriaPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
69
|
+
/**
|
|
70
|
+
* Uses to pass attributes to the item's DOM element.
|
|
71
|
+
*/
|
|
72
|
+
item?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
73
|
+
/**
|
|
74
|
+
* Uses to pass attributes to the next item button's DOM element.
|
|
75
|
+
*/
|
|
76
|
+
nextItemButton?: GalleriaPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
77
|
+
/**
|
|
78
|
+
* Uses to pass attributes to the next item icon's DOM element.
|
|
79
|
+
*/
|
|
80
|
+
nextItemIcon?: GalleriaPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
81
|
+
/**
|
|
82
|
+
* Uses to pass attributes to the caption's DOM element.
|
|
83
|
+
*/
|
|
84
|
+
caption?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
85
|
+
/**
|
|
86
|
+
* Uses to pass attributes to the indicators's DOM element.
|
|
87
|
+
*/
|
|
88
|
+
indicators?: GalleriaPassThroughType<React.HTMLAttributes<HTMLUListElement>>;
|
|
89
|
+
/**
|
|
90
|
+
* Uses to pass attributes to the indicator's DOM element.
|
|
91
|
+
*/
|
|
92
|
+
indicator?: GalleriaPassThroughType<React.HTMLAttributes<HTMLLIElement>>;
|
|
93
|
+
/**
|
|
94
|
+
* Uses to pass attributes to the thumbnail wrapper's DOM element.
|
|
95
|
+
*/
|
|
96
|
+
thumbnailWrapper?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
97
|
+
/**
|
|
98
|
+
* Uses to pass attributes to the thumbnail container's DOM element.
|
|
99
|
+
*/
|
|
100
|
+
thumbnailContainer?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
101
|
+
/**
|
|
102
|
+
* Uses to pass attributes to the previous thumbnail button's DOM element.
|
|
103
|
+
*/
|
|
104
|
+
previousThumbnailButton?: GalleriaPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
105
|
+
/**
|
|
106
|
+
* Uses to pass attributes to the previous thumbnail icon's DOM element.
|
|
107
|
+
*/
|
|
108
|
+
previousThumbnailIcon?: GalleriaPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
109
|
+
/**
|
|
110
|
+
* Uses to pass attributes to the thumbnail items container's DOM element.
|
|
111
|
+
*/
|
|
112
|
+
thumbnailItemsContainer?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
113
|
+
/**
|
|
114
|
+
* Uses to pass attributes to the thumbnail items' DOM element.
|
|
115
|
+
*/
|
|
116
|
+
thumbnailItems?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
117
|
+
/**
|
|
118
|
+
* Uses to pass attributes to the thumbnail item's DOM element.
|
|
119
|
+
*/
|
|
120
|
+
thumbnailItem?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
121
|
+
/**
|
|
122
|
+
* Uses to pass attributes to the thumbnail item content's DOM element.
|
|
123
|
+
*/
|
|
124
|
+
thumbnailItemContent?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
125
|
+
/**
|
|
126
|
+
* Uses to pass attributes to the next thumbnail button's DOM element.
|
|
127
|
+
*/
|
|
128
|
+
nextThumbnailButton?: GalleriaPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
129
|
+
/**
|
|
130
|
+
* Uses to pass attributes to the next thumbnail icon's DOM element.
|
|
131
|
+
*/
|
|
132
|
+
nextThumbnailIcon?: GalleriaPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
133
|
+
/**
|
|
134
|
+
* Uses to pass attributes to the mask's DOM element.
|
|
135
|
+
*/
|
|
136
|
+
mask?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Defines current inline state in Galleria component.
|
|
141
|
+
*/
|
|
142
|
+
export interface GalleriaState {
|
|
143
|
+
/**
|
|
144
|
+
* Current visible state as a boolean.
|
|
145
|
+
* @default false
|
|
146
|
+
*/
|
|
147
|
+
visible: number;
|
|
148
|
+
/**
|
|
149
|
+
* Number of items per page as a number.
|
|
150
|
+
*/
|
|
151
|
+
numVisible: number;
|
|
152
|
+
/**
|
|
153
|
+
* Current slide show active state.
|
|
154
|
+
* @default false
|
|
155
|
+
*/
|
|
156
|
+
slideShowActive: number;
|
|
157
|
+
/**
|
|
158
|
+
* Current active item index as a number.
|
|
159
|
+
*/
|
|
160
|
+
activeIndex: number;
|
|
161
|
+
}
|
|
13
162
|
|
|
14
163
|
/**
|
|
15
164
|
* Custom galleria responsive options
|
|
@@ -41,7 +190,7 @@ interface GalleriaItemChangeEvent {
|
|
|
41
190
|
* Defines valid properties in Galleria component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
42
191
|
* @group Properties
|
|
43
192
|
*/
|
|
44
|
-
export interface GalleriaProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
|
|
193
|
+
export interface GalleriaProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref' | 'pt'> {
|
|
45
194
|
/**
|
|
46
195
|
* An array of objects to display.
|
|
47
196
|
*/
|
|
@@ -200,6 +349,11 @@ export interface GalleriaProps extends Omit<React.DetailedHTMLProps<React.HTMLAt
|
|
|
200
349
|
* @readonly
|
|
201
350
|
*/
|
|
202
351
|
children?: React.ReactNode | undefined;
|
|
352
|
+
/**
|
|
353
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
354
|
+
* @type {GalleriaPassThroughOptions}
|
|
355
|
+
*/
|
|
356
|
+
pt?: GalleriaPassThroughOptions;
|
|
203
357
|
}
|
|
204
358
|
|
|
205
359
|
/**
|
package/galleria/galleria.esm.js
CHANGED
|
@@ -2,29 +2,15 @@ import * as React from 'react';
|
|
|
2
2
|
import PrimeReact, { localeOption } from 'primereact/api';
|
|
3
3
|
import { CSSTransition } from 'primereact/csstransition';
|
|
4
4
|
import { useMountEffect, usePrevious, useResizeListener, useUpdateEffect, useInterval, useUnmountEffect } from 'primereact/hooks';
|
|
5
|
+
import { TimesIcon } from 'primereact/icons/times';
|
|
5
6
|
import { Portal } from 'primereact/portal';
|
|
6
7
|
import { Ripple } from 'primereact/ripple';
|
|
7
|
-
import {
|
|
8
|
+
import { mergeProps, classNames, IconUtils, UniqueComponentId, DomHandler, ObjectUtils, ZIndexUtils } from 'primereact/utils';
|
|
9
|
+
import { ComponentBase } from 'primereact/componentbase';
|
|
8
10
|
import { ChevronLeftIcon } from 'primereact/icons/chevronleft';
|
|
9
11
|
import { ChevronRightIcon } from 'primereact/icons/chevronright';
|
|
10
|
-
import { ChevronUpIcon } from 'primereact/icons/chevronup';
|
|
11
12
|
import { ChevronDownIcon } from 'primereact/icons/chevrondown';
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
function _extends() {
|
|
15
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
16
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
17
|
-
var source = arguments[i];
|
|
18
|
-
for (var key in source) {
|
|
19
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
20
|
-
target[key] = source[key];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return target;
|
|
25
|
-
};
|
|
26
|
-
return _extends.apply(this, arguments);
|
|
27
|
-
}
|
|
13
|
+
import { ChevronUpIcon } from 'primereact/icons/chevronup';
|
|
28
14
|
|
|
29
15
|
function _typeof(obj) {
|
|
30
16
|
"@babel/helpers - typeof";
|
|
@@ -122,7 +108,7 @@ function _slicedToArray(arr, i) {
|
|
|
122
108
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
123
109
|
}
|
|
124
110
|
|
|
125
|
-
var GalleriaBase = {
|
|
111
|
+
var GalleriaBase = ComponentBase.extend({
|
|
126
112
|
defaultProps: {
|
|
127
113
|
__TYPE: 'Galleria',
|
|
128
114
|
id: null,
|
|
@@ -161,15 +147,11 @@ var GalleriaBase = {
|
|
|
161
147
|
transitionOptions: null,
|
|
162
148
|
onItemChange: null,
|
|
163
149
|
children: undefined
|
|
164
|
-
},
|
|
165
|
-
getProps: function getProps(props) {
|
|
166
|
-
return ObjectUtils.getMergedProps(props, GalleriaBase.defaultProps);
|
|
167
|
-
},
|
|
168
|
-
getOtherProps: function getOtherProps(props) {
|
|
169
|
-
return ObjectUtils.getDiffProps(props, GalleriaBase.defaultProps);
|
|
170
150
|
}
|
|
171
|
-
};
|
|
151
|
+
});
|
|
172
152
|
|
|
153
|
+
function ownKeys$2(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; }
|
|
154
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
173
155
|
var GalleriaItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
174
156
|
var next = function next() {
|
|
175
157
|
var nextItemIndex = props.activeItemIndex + 1;
|
|
@@ -236,20 +218,20 @@ var GalleriaItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
236
218
|
'p-disabled': isDisabled
|
|
237
219
|
});
|
|
238
220
|
var iconClassName = 'p-galleria-item-prev-icon';
|
|
239
|
-
var
|
|
221
|
+
var previousItemIconProps = mergeProps({
|
|
240
222
|
className: iconClassName
|
|
241
|
-
});
|
|
242
|
-
var
|
|
243
|
-
|
|
244
|
-
}, {
|
|
223
|
+
}, props.ptm('previousItemIcon'));
|
|
224
|
+
var icon = props.itemPrevIcon || /*#__PURE__*/React.createElement(ChevronLeftIcon, previousItemIconProps);
|
|
225
|
+
var itemPrevIcon = IconUtils.getJSXIcon(icon, _objectSpread$2({}, previousItemIconProps), {
|
|
245
226
|
props: props
|
|
246
227
|
});
|
|
247
|
-
|
|
248
|
-
type:
|
|
228
|
+
var previousItemButtonProps = mergeProps({
|
|
229
|
+
type: 'button',
|
|
249
230
|
className: buttonClassName,
|
|
250
231
|
onClick: navBackward,
|
|
251
232
|
disabled: isDisabled
|
|
252
|
-
},
|
|
233
|
+
}, props.ptm('previousItemButton'));
|
|
234
|
+
return /*#__PURE__*/React.createElement("button", previousItemButtonProps, itemPrevIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
253
235
|
}
|
|
254
236
|
return null;
|
|
255
237
|
};
|
|
@@ -260,29 +242,30 @@ var GalleriaItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
260
242
|
'p-disabled': isDisabled
|
|
261
243
|
});
|
|
262
244
|
var iconClassName = 'p-galleria-item-next-icon';
|
|
263
|
-
var
|
|
245
|
+
var nextItemIconProps = mergeProps({
|
|
264
246
|
className: iconClassName
|
|
265
|
-
});
|
|
266
|
-
var
|
|
267
|
-
|
|
268
|
-
}, {
|
|
247
|
+
}, props.ptm('nextItemIcon'));
|
|
248
|
+
var icon = props.itemNextIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, nextItemIconProps);
|
|
249
|
+
var itemNextIcon = IconUtils.getJSXIcon(icon, _objectSpread$2({}, nextItemIconProps), {
|
|
269
250
|
props: props
|
|
270
251
|
});
|
|
271
|
-
|
|
272
|
-
type:
|
|
252
|
+
var nextItemButtonProps = mergeProps({
|
|
253
|
+
type: 'button',
|
|
273
254
|
className: buttonClassName,
|
|
274
255
|
onClick: navForward,
|
|
275
256
|
disabled: isDisabled
|
|
276
|
-
},
|
|
257
|
+
}, props.ptm('nextItemButton'));
|
|
258
|
+
return /*#__PURE__*/React.createElement("button", nextItemButtonProps, itemNextIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
277
259
|
}
|
|
278
260
|
return null;
|
|
279
261
|
};
|
|
280
262
|
var createCaption = function createCaption() {
|
|
263
|
+
var captionProps = mergeProps({
|
|
264
|
+
className: 'p-galleria-caption'
|
|
265
|
+
}, props.ptm('caption'));
|
|
281
266
|
if (props.caption) {
|
|
282
267
|
var _content = props.caption(props.value[props.activeItemIndex]);
|
|
283
|
-
return /*#__PURE__*/React.createElement("div",
|
|
284
|
-
className: "p-galleria-caption"
|
|
285
|
-
}, _content);
|
|
268
|
+
return /*#__PURE__*/React.createElement("div", captionProps, _content);
|
|
286
269
|
}
|
|
287
270
|
return null;
|
|
288
271
|
};
|
|
@@ -293,14 +276,7 @@ var GalleriaItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
293
276
|
'p-highlight': isActive
|
|
294
277
|
});
|
|
295
278
|
var indicator = props.indicator && props.indicator(index);
|
|
296
|
-
|
|
297
|
-
indicator = /*#__PURE__*/React.createElement("button", {
|
|
298
|
-
type: "button",
|
|
299
|
-
tabIndex: -1,
|
|
300
|
-
className: "p-link"
|
|
301
|
-
}, /*#__PURE__*/React.createElement(Ripple, null));
|
|
302
|
-
}
|
|
303
|
-
return /*#__PURE__*/React.createElement("li", {
|
|
279
|
+
var indicatorProps = mergeProps({
|
|
304
280
|
className: className,
|
|
305
281
|
key: key,
|
|
306
282
|
tabIndex: 0,
|
|
@@ -313,18 +289,27 @@ var GalleriaItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
313
289
|
onKeyDown: function onKeyDown(e) {
|
|
314
290
|
return onIndicatorKeyDown(e, index);
|
|
315
291
|
}
|
|
316
|
-
}, indicator);
|
|
292
|
+
}, props.ptm('indicator'));
|
|
293
|
+
if (!indicator) {
|
|
294
|
+
indicator = /*#__PURE__*/React.createElement("button", {
|
|
295
|
+
type: "button",
|
|
296
|
+
tabIndex: -1,
|
|
297
|
+
className: "p-link"
|
|
298
|
+
}, /*#__PURE__*/React.createElement(Ripple, null));
|
|
299
|
+
}
|
|
300
|
+
return /*#__PURE__*/React.createElement("li", indicatorProps, indicator);
|
|
317
301
|
};
|
|
318
302
|
var createIndicators = function createIndicators() {
|
|
319
303
|
if (props.showIndicators) {
|
|
320
304
|
var className = classNames('p-galleria-indicators p-reset', props.indicatorsContentClassName);
|
|
321
305
|
var _indicators = [];
|
|
306
|
+
var indicatorsProps = mergeProps({
|
|
307
|
+
className: className
|
|
308
|
+
}, props.ptm('indicators'));
|
|
322
309
|
for (var i = 0; i < props.value.length; i++) {
|
|
323
310
|
_indicators.push(createIndicator(i));
|
|
324
311
|
}
|
|
325
|
-
return /*#__PURE__*/React.createElement("ul",
|
|
326
|
-
className: className
|
|
327
|
-
}, _indicators);
|
|
312
|
+
return /*#__PURE__*/React.createElement("ul", indicatorsProps, _indicators);
|
|
328
313
|
}
|
|
329
314
|
return null;
|
|
330
315
|
};
|
|
@@ -333,14 +318,17 @@ var GalleriaItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
333
318
|
var forwardNavigator = createForwardNavigator();
|
|
334
319
|
var caption = createCaption();
|
|
335
320
|
var indicators = createIndicators();
|
|
336
|
-
|
|
321
|
+
var itemWrapperProps = mergeProps({
|
|
337
322
|
ref: ref,
|
|
338
|
-
className:
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
323
|
+
className: 'p-galleria-item-wrapper'
|
|
324
|
+
}, props.ptm('itemWrapper'));
|
|
325
|
+
var itemContainerProps = mergeProps({
|
|
326
|
+
className: 'p-galleria-item-container'
|
|
327
|
+
}, props.ptm('itemContainer'));
|
|
328
|
+
var itemProps = mergeProps({
|
|
329
|
+
className: 'p-galleria-item'
|
|
330
|
+
}, props.ptm('item'));
|
|
331
|
+
return /*#__PURE__*/React.createElement("div", itemWrapperProps, /*#__PURE__*/React.createElement("div", itemContainerProps, backwardNavigator, /*#__PURE__*/React.createElement("div", itemProps, content), forwardNavigator, caption), indicators);
|
|
344
332
|
}));
|
|
345
333
|
GalleriaItem.displayName = 'GalleriaItem';
|
|
346
334
|
|
|
@@ -360,6 +348,8 @@ function _toConsumableArray(arr) {
|
|
|
360
348
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
361
349
|
}
|
|
362
350
|
|
|
351
|
+
function ownKeys$1(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; }
|
|
352
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
363
353
|
var GalleriaThumbnailItem = /*#__PURE__*/React.memo(function (props) {
|
|
364
354
|
var onItemClick = function onItemClick(event) {
|
|
365
355
|
props.onItemClick({
|
|
@@ -383,14 +373,16 @@ var GalleriaThumbnailItem = /*#__PURE__*/React.memo(function (props) {
|
|
|
383
373
|
'p-galleria-thumbnail-item-start': props.start,
|
|
384
374
|
'p-galleria-thumbnail-item-end': props.end
|
|
385
375
|
}, props.className);
|
|
386
|
-
|
|
376
|
+
var thumbnailItemProps = mergeProps({
|
|
387
377
|
className: className
|
|
388
|
-
},
|
|
389
|
-
|
|
378
|
+
}, props.ptm('thumbnailItem'));
|
|
379
|
+
var thumbnailItemContentProps = mergeProps({
|
|
380
|
+
className: 'p-galleria-thumbnail-item-content',
|
|
390
381
|
tabIndex: tabIndex,
|
|
391
382
|
onClick: onItemClick,
|
|
392
383
|
onKeyDown: onItemKeyDown
|
|
393
|
-
},
|
|
384
|
+
}, props.ptm('thumbnailItemContent'));
|
|
385
|
+
return /*#__PURE__*/React.createElement("div", thumbnailItemProps, /*#__PURE__*/React.createElement("div", thumbnailItemContentProps, content));
|
|
394
386
|
});
|
|
395
387
|
var GalleriaThumbnails = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
396
388
|
var _React$useState = React.useState(props.numVisible),
|
|
@@ -617,7 +609,8 @@ var GalleriaThumbnails = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
|
|
|
617
609
|
start: start,
|
|
618
610
|
end: end,
|
|
619
611
|
onItemClick: onItemClick,
|
|
620
|
-
current: current
|
|
612
|
+
current: current,
|
|
613
|
+
ptm: props.ptm
|
|
621
614
|
});
|
|
622
615
|
});
|
|
623
616
|
};
|
|
@@ -628,21 +621,19 @@ var GalleriaThumbnails = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
|
|
|
628
621
|
'p-disabled': isDisabled
|
|
629
622
|
});
|
|
630
623
|
var iconClassName = 'p-galleria-thumbnail-prev-icon';
|
|
631
|
-
var
|
|
624
|
+
var previousThumbnailIconProps = mergeProps({
|
|
632
625
|
className: iconClassName
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
})
|
|
636
|
-
var prevThumbnailIcon = IconUtils.getJSXIcon(icon, {
|
|
637
|
-
className: iconClassName
|
|
638
|
-
}, {
|
|
626
|
+
}, props.ptm('previousThumbnailIcon'));
|
|
627
|
+
var icon = props.isVertical ? props.prevThumbnailIcon || /*#__PURE__*/React.createElement(ChevronUpIcon, previousThumbnailIconProps) : props.prevThumbnailIcon || /*#__PURE__*/React.createElement(ChevronLeftIcon, previousThumbnailIconProps);
|
|
628
|
+
var prevThumbnailIcon = IconUtils.getJSXIcon(icon, _objectSpread$1({}, previousThumbnailIconProps), {
|
|
639
629
|
props: props
|
|
640
630
|
});
|
|
641
|
-
|
|
631
|
+
var previousThumbnailButtonProps = mergeProps({
|
|
642
632
|
className: buttonClassName,
|
|
643
633
|
onClick: navBackward,
|
|
644
634
|
disabled: isDisabled
|
|
645
|
-
},
|
|
635
|
+
}, props.ptm('previousThumbnailButton'));
|
|
636
|
+
return /*#__PURE__*/React.createElement("button", previousThumbnailButtonProps, prevThumbnailIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
646
637
|
}
|
|
647
638
|
return null;
|
|
648
639
|
};
|
|
@@ -653,21 +644,19 @@ var GalleriaThumbnails = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
|
|
|
653
644
|
'p-disabled': isDisabled
|
|
654
645
|
});
|
|
655
646
|
var iconClassName = 'p-galleria-thumbnail-next-icon';
|
|
656
|
-
var
|
|
657
|
-
className: iconClassName
|
|
658
|
-
}) : props.nextThumbnailIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, {
|
|
659
|
-
className: iconClassName
|
|
660
|
-
});
|
|
661
|
-
var nextThumbnailIcon = IconUtils.getJSXIcon(icon, {
|
|
647
|
+
var nextThumbnailIconProps = mergeProps({
|
|
662
648
|
className: iconClassName
|
|
663
|
-
},
|
|
649
|
+
}, props.ptm('nextThumbnailIcon'));
|
|
650
|
+
var icon = props.isVertical ? props.nextThumbnailIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, nextThumbnailIconProps) : props.nextThumbnailIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, nextThumbnailIconProps);
|
|
651
|
+
var nextThumbnailIcon = IconUtils.getJSXIcon(icon, _objectSpread$1({}, nextThumbnailIconProps), {
|
|
664
652
|
props: props
|
|
665
653
|
});
|
|
666
|
-
|
|
654
|
+
var nextThumbnailButtonProps = mergeProps({
|
|
667
655
|
className: buttonClassName,
|
|
668
656
|
onClick: navForward,
|
|
669
657
|
disabled: isDisabled
|
|
670
|
-
},
|
|
658
|
+
}, props.ptm('nextThumbnailButton'));
|
|
659
|
+
return /*#__PURE__*/React.createElement("button", nextThumbnailButtonProps, nextThumbnailIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
671
660
|
}
|
|
672
661
|
return null;
|
|
673
662
|
};
|
|
@@ -676,26 +665,30 @@ var GalleriaThumbnails = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
|
|
|
676
665
|
var height = props.isVertical ? props.contentHeight : '';
|
|
677
666
|
var backwardNavigator = createBackwardNavigator();
|
|
678
667
|
var forwardNavigator = createForwardNavigator();
|
|
679
|
-
|
|
680
|
-
className:
|
|
681
|
-
},
|
|
682
|
-
|
|
668
|
+
var thumbnailContainerProps = mergeProps({
|
|
669
|
+
className: 'p-galleria-thumbnail-container'
|
|
670
|
+
}, props.ptm('thumbnailContainer'));
|
|
671
|
+
var thumbnailItemsContainerProps = mergeProps({
|
|
672
|
+
className: 'p-galleria-thumbnail-items-container',
|
|
683
673
|
style: {
|
|
684
674
|
height: height
|
|
685
675
|
}
|
|
686
|
-
},
|
|
676
|
+
}, props.ptm('thumbnailItemsContainer'));
|
|
677
|
+
var thumbnailItemsProps = mergeProps({
|
|
687
678
|
ref: itemsContainerRef,
|
|
688
|
-
className:
|
|
679
|
+
className: 'p-galleria-thumbnail-items',
|
|
689
680
|
onTransitionEnd: onTransitionEnd,
|
|
690
681
|
onTouchStart: onTouchStart,
|
|
691
682
|
onTouchMove: onTouchMove,
|
|
692
683
|
onTouchEnd: onTouchEnd
|
|
693
|
-
},
|
|
684
|
+
}, props.ptm('thumbnailItems'));
|
|
685
|
+
return /*#__PURE__*/React.createElement("div", thumbnailContainerProps, backwardNavigator, /*#__PURE__*/React.createElement("div", thumbnailItemsContainerProps, /*#__PURE__*/React.createElement("div", thumbnailItemsProps, items)), forwardNavigator);
|
|
694
686
|
};
|
|
695
687
|
var content = createContent();
|
|
696
|
-
|
|
697
|
-
className:
|
|
698
|
-
},
|
|
688
|
+
var thumbnailWrapperProps = mergeProps({
|
|
689
|
+
className: 'p-galleria-thumbnail-wrapper'
|
|
690
|
+
}, props.ptm('thumbnailWrapper'));
|
|
691
|
+
return /*#__PURE__*/React.createElement("div", thumbnailWrapperProps, content);
|
|
699
692
|
}));
|
|
700
693
|
GalleriaThumbnailItem.displayName = 'GalleriaThumbnailItem';
|
|
701
694
|
GalleriaThumbnails.displayName = 'GalleriaThumbnails';
|
|
@@ -725,6 +718,16 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
725
718
|
var maskRef = React.useRef(null);
|
|
726
719
|
var activeItemIndex = props.onItemChange ? props.activeIndex : activeIndexState;
|
|
727
720
|
var isVertical = props.thumbnailsPosition === 'left' || props.thumbnailsPosition === 'right';
|
|
721
|
+
var _GalleriaBase$setMeta = GalleriaBase.setMetaData({
|
|
722
|
+
props: props,
|
|
723
|
+
state: {
|
|
724
|
+
visible: visibleState,
|
|
725
|
+
numVisible: numVisibleState,
|
|
726
|
+
slideShowActive: slideShowActiveState,
|
|
727
|
+
activeIndex: activeIndexState
|
|
728
|
+
}
|
|
729
|
+
}),
|
|
730
|
+
ptm = _GalleriaBase$setMeta.ptm;
|
|
728
731
|
useInterval(function () {
|
|
729
732
|
onActiveItemChange({
|
|
730
733
|
index: props.circular && props.value.length - 1 === activeItemIndex ? 0 : activeItemIndex + 1
|
|
@@ -813,23 +816,24 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
813
816
|
};
|
|
814
817
|
});
|
|
815
818
|
var createHeader = function createHeader() {
|
|
819
|
+
var headerProps = mergeProps({
|
|
820
|
+
className: 'p-galleria-header'
|
|
821
|
+
}, ptm('header'));
|
|
816
822
|
if (props.header) {
|
|
817
|
-
return /*#__PURE__*/React.createElement("div",
|
|
818
|
-
className: "p-galleria-header"
|
|
819
|
-
}, props.header);
|
|
823
|
+
return /*#__PURE__*/React.createElement("div", headerProps, props.header);
|
|
820
824
|
}
|
|
821
825
|
return null;
|
|
822
826
|
};
|
|
823
827
|
var createFooter = function createFooter() {
|
|
828
|
+
var footerProps = mergeProps({
|
|
829
|
+
className: 'p-galleria-footer'
|
|
830
|
+
}, ptm('footer'));
|
|
824
831
|
if (props.footer) {
|
|
825
|
-
return /*#__PURE__*/React.createElement("div",
|
|
826
|
-
className: "p-galleria-footer"
|
|
827
|
-
}, props.footer);
|
|
832
|
+
return /*#__PURE__*/React.createElement("div", footerProps, props.footer);
|
|
828
833
|
}
|
|
829
834
|
return null;
|
|
830
835
|
};
|
|
831
836
|
var createElement = function createElement() {
|
|
832
|
-
var otherProps = GalleriaBase.getOtherProps(props);
|
|
833
837
|
var thumbnailsPosClassName = props.showThumbnails && getPositionClassName('p-galleria-thumbnails', props.thumbnailsPosition);
|
|
834
838
|
var indicatorPosClassName = props.showIndicators && getPositionClassName('p-galleria-indicators', props.indicatorsPosition);
|
|
835
839
|
var galleriaClassName = classNames('p-galleria p-component', props.className, {
|
|
@@ -843,26 +847,32 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
843
847
|
className: 'p-galleria-close-icon',
|
|
844
848
|
'aria-hidden': true
|
|
845
849
|
};
|
|
846
|
-
var
|
|
847
|
-
|
|
850
|
+
var closeIconProps = mergeProps({
|
|
851
|
+
className: iconProps
|
|
852
|
+
}, ptm('closeIcon'));
|
|
853
|
+
var icon = props.closeIcon || /*#__PURE__*/React.createElement(TimesIcon, closeIconProps);
|
|
854
|
+
var closeIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, closeIconProps), {
|
|
848
855
|
props: props
|
|
849
856
|
});
|
|
850
|
-
var
|
|
851
|
-
type:
|
|
852
|
-
className:
|
|
853
|
-
|
|
857
|
+
var closeButtonProps = mergeProps({
|
|
858
|
+
type: 'button',
|
|
859
|
+
className: 'p-galleria-close p-link',
|
|
860
|
+
'aria-label': localeOption('close'),
|
|
854
861
|
onClick: hide
|
|
855
|
-
},
|
|
862
|
+
}, ptm('closeButton'));
|
|
863
|
+
var closeButton = props.fullScreen && /*#__PURE__*/React.createElement("button", closeButtonProps, closeIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
856
864
|
var header = createHeader();
|
|
857
865
|
var footer = createFooter();
|
|
858
|
-
var
|
|
866
|
+
var rootProps = mergeProps({
|
|
859
867
|
ref: elementRef,
|
|
860
868
|
id: props.id,
|
|
861
869
|
className: galleriaClassName,
|
|
862
870
|
style: props.style
|
|
863
|
-
},
|
|
864
|
-
|
|
865
|
-
|
|
871
|
+
}, GalleriaBase.getOtherProps(props), ptm('root'));
|
|
872
|
+
var contentProps = mergeProps({
|
|
873
|
+
className: 'p-galleria-content'
|
|
874
|
+
}, ptm('content'));
|
|
875
|
+
var element = /*#__PURE__*/React.createElement("div", rootProps, closeButton, header, /*#__PURE__*/React.createElement("div", contentProps, /*#__PURE__*/React.createElement(GalleriaItem, {
|
|
866
876
|
ref: previewContentRef,
|
|
867
877
|
value: props.value,
|
|
868
878
|
activeItemIndex: activeItemIndex,
|
|
@@ -879,7 +889,8 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
879
889
|
autoPlay: props.autoPlay,
|
|
880
890
|
slideShowActive: slideShowActiveState,
|
|
881
891
|
startSlideShow: startSlideShow,
|
|
882
|
-
stopSlideShow: stopSlideShow
|
|
892
|
+
stopSlideShow: stopSlideShow,
|
|
893
|
+
ptm: ptm
|
|
883
894
|
}), props.showThumbnails && /*#__PURE__*/React.createElement(GalleriaThumbnails, {
|
|
884
895
|
value: props.value,
|
|
885
896
|
activeItemIndex: activeItemIndex,
|
|
@@ -895,7 +906,8 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
895
906
|
showThumbnailNavigators: props.showThumbnailNavigators,
|
|
896
907
|
autoPlay: props.autoPlay,
|
|
897
908
|
slideShowActive: slideShowActiveState,
|
|
898
|
-
stopSlideShow: stopSlideShow
|
|
909
|
+
stopSlideShow: stopSlideShow,
|
|
910
|
+
ptm: ptm
|
|
899
911
|
})), footer);
|
|
900
912
|
return element;
|
|
901
913
|
};
|
|
@@ -905,10 +917,11 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
905
917
|
var maskClassName = classNames('p-galleria-mask', {
|
|
906
918
|
'p-galleria-visible': visibleState
|
|
907
919
|
});
|
|
908
|
-
var
|
|
920
|
+
var maskProps = mergeProps({
|
|
909
921
|
ref: maskRef,
|
|
910
922
|
className: maskClassName
|
|
911
|
-
},
|
|
923
|
+
}, ptm('mask'));
|
|
924
|
+
var galleriaWrapper = /*#__PURE__*/React.createElement("div", maskProps, /*#__PURE__*/React.createElement(CSSTransition, {
|
|
912
925
|
nodeRef: elementRef,
|
|
913
926
|
classNames: "p-galleria",
|
|
914
927
|
"in": visibleState,
|