primereact 9.3.1 → 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/README.md +18 -31
- package/accordion/accordion.cjs.js +88 -90
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +90 -1
- package/accordion/accordion.esm.js +89 -91
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +89 -92
- package/accordion/accordion.min.js +1 -1
- 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 +33 -11
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +4 -0
- package/autocomplete/autocomplete.esm.js +33 -11
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +32 -10
- package/autocomplete/autocomplete.min.css +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +71 -22
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +37 -1
- package/avatar/avatar.esm.js +72 -23
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +72 -24
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +26 -42
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.d.ts +24 -0
- package/avatargroup/avatargroup.esm.js +13 -29
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +52 -69
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +12 -28
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.d.ts +26 -0
- package/badge/badge.esm.js +13 -29
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +13 -30
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +12 -28
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.d.ts +38 -0
- package/blockui/blockui.esm.js +13 -29
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +13 -30
- package/blockui/blockui.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/button/button.cjs.js +49 -42
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +42 -1
- package/button/button.esm.js +50 -43
- package/button/button.esm.min.js +1 -1
- package/button/button.js +49 -43
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +37 -23
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +5 -2
- package/calendar/calendar.esm.js +37 -23
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +34 -20
- package/calendar/calendar.min.js +1 -1
- package/card/card.cjs.js +52 -63
- package/card/card.cjs.min.js +1 -1
- package/card/card.d.ts +56 -0
- package/card/card.esm.js +39 -50
- package/card/card.esm.min.js +1 -1
- package/card/card.js +86 -98
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +151 -110
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +113 -1
- package/carousel/carousel.esm.js +151 -110
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +148 -108
- 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 +31 -42
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.d.ts +35 -0
- package/chart/chart.esm.js +18 -29
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +140 -152
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +40 -19
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +19 -1
- package/checkbox/checkbox.esm.js +41 -20
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +41 -20
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +45 -42
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +53 -1
- package/chip/chip.esm.js +46 -43
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +46 -44
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +37 -22
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +5 -0
- package/chips/chips.esm.js +37 -22
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +37 -23
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +11 -4
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +13 -0
- package/colorpicker/colorpicker.esm.js +11 -4
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +11 -4
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.d.ts +6 -2
- package/componentbase/componentbase.cjs.js +105 -0
- package/componentbase/componentbase.cjs.min.js +1 -0
- package/componentbase/componentbase.esm.js +101 -0
- package/componentbase/componentbase.esm.min.js +1 -0
- package/componentbase/componentbase.js +109 -0
- package/componentbase/componentbase.min.js +1 -0
- package/componentbase/package.json +6 -0
- package/confirmdialog/confirmdialog.cjs.js +44 -27
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +90 -2
- package/confirmdialog/confirmdialog.esm.js +45 -28
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +45 -29
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +53 -50
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +70 -1
- package/confirmpopup/confirmpopup.esm.js +54 -51
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +54 -52
- package/confirmpopup/confirmpopup.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 +16510 -5273
- package/core/core.min.js +41 -39
- package/datatable/datatable.cjs.js +253 -210
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +20 -7
- package/datatable/datatable.esm.js +253 -210
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +246 -203
- package/datatable/datatable.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +13 -26
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.d.ts +38 -0
- package/deferredcontent/deferredcontent.esm.js +14 -27
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +14 -28
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +83 -83
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +85 -3
- package/dialog/dialog.esm.js +83 -83
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +81 -82
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +35 -51
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.d.ts +30 -0
- package/divider/divider.esm.js +22 -38
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +66 -83
- package/divider/divider.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 +46 -20
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +6 -1
- package/dropdown/dropdown.esm.js +46 -20
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +45 -19
- package/dropdown/dropdown.min.js +1 -1
- package/fieldset/fieldset.cjs.js +55 -54
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.d.ts +77 -1
- package/fieldset/fieldset.esm.js +56 -55
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +56 -56
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +181 -151
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +150 -1
- package/fileupload/fileupload.esm.js +182 -152
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +182 -153
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +136 -118
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +156 -2
- package/galleria/galleria.esm.js +137 -119
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +135 -118
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +20 -3
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +17 -3
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +21 -5
- 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 +506 -103
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +130 -3
- package/image/image.esm.js +507 -104
- package/image/image.esm.min.js +1 -1
- package/image/image.js +503 -101
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +33 -51
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.d.ts +51 -1
- package/inplace/inplace.esm.js +33 -51
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +33 -52
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +24 -18
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +24 -18
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +24 -18
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +8 -6
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +8 -6
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +8 -6
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +13 -2
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +5 -0
- package/inputswitch/inputswitch.esm.js +13 -2
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +14 -4
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +7 -8
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +7 -8
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +7 -8
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +3 -4
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +3 -4
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +3 -4
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/listbox/listbox.cjs.js +12 -4
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +12 -4
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +12 -4
- package/listbox/listbox.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/mention/mention.cjs.js +3 -4
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +3 -4
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +3 -4
- package/mention/mention.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/menuitem/menuitem.d.ts +0 -2
- 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 +78 -74
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +51 -2
- package/messages/messages.esm.js +78 -74
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +78 -75
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +74 -47
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +9 -0
- package/multiselect/multiselect.esm.js +75 -48
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +73 -46
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +21 -13
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +5 -0
- package/multistatecheckbox/multistatecheckbox.esm.js +21 -13
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +21 -13
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +18 -2
- package/overlaypanel/overlaypanel.cjs.js +40 -46
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +45 -1
- package/overlaypanel/overlaypanel.esm.js +41 -47
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +41 -48
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.d.ts +3 -3
- package/panel/panel.cjs.js +78 -63
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +100 -1
- package/panel/panel.esm.js +79 -64
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +79 -65
- package/panel/panel.min.js +1 -1
- 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 +4240 -3058
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +4240 -3059
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +4240 -3058
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +45 -57
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.d.ts +38 -0
- package/progressbar/progressbar.esm.js +32 -44
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +105 -118
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +37 -51
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.d.ts +34 -0
- package/progressspinner/progressspinner.esm.js +24 -38
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +75 -90
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +42 -20
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +19 -1
- package/radiobutton/radiobutton.esm.js +42 -20
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +43 -22
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +15 -7
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +15 -7
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +14 -6
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +195 -187
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +16 -7
- package/resources/themes/arya-green/theme.css +16 -7
- package/resources/themes/arya-orange/theme.css +16 -7
- package/resources/themes/arya-purple/theme.css +16 -7
- package/resources/themes/bootstrap4-dark-blue/theme.css +16 -7
- package/resources/themes/bootstrap4-dark-purple/theme.css +16 -7
- package/resources/themes/bootstrap4-light-blue/theme.css +16 -7
- package/resources/themes/bootstrap4-light-purple/theme.css +16 -7
- package/resources/themes/fluent-light/theme.css +16 -7
- package/resources/themes/lara-dark-blue/theme.css +16 -7
- package/resources/themes/lara-dark-indigo/theme.css +16 -7
- package/resources/themes/lara-dark-purple/theme.css +16 -7
- package/resources/themes/lara-dark-teal/theme.css +16 -7
- package/resources/themes/lara-light-blue/theme.css +16 -7
- package/resources/themes/lara-light-indigo/theme.css +16 -7
- package/resources/themes/lara-light-purple/theme.css +16 -7
- package/resources/themes/lara-light-teal/theme.css +16 -7
- package/resources/themes/luna-amber/theme.css +16 -7
- package/resources/themes/luna-blue/theme.css +16 -7
- package/resources/themes/luna-green/theme.css +16 -7
- package/resources/themes/luna-pink/theme.css +16 -7
- package/resources/themes/md-dark-deeppurple/theme.css +16 -7
- package/resources/themes/md-dark-indigo/theme.css +16 -7
- package/resources/themes/md-light-deeppurple/theme.css +16 -7
- package/resources/themes/md-light-indigo/theme.css +16 -7
- package/resources/themes/mdc-dark-deeppurple/theme.css +16 -7
- package/resources/themes/mdc-dark-indigo/theme.css +16 -7
- package/resources/themes/mdc-light-deeppurple/theme.css +16 -7
- package/resources/themes/mdc-light-indigo/theme.css +16 -7
- package/resources/themes/mira/theme.css +16 -7
- package/resources/themes/nano/theme.css +16 -7
- package/resources/themes/nova/theme.css +16 -7
- package/resources/themes/nova-accent/theme.css +16 -7
- package/resources/themes/nova-alt/theme.css +16 -7
- package/resources/themes/rhea/theme.css +16 -7
- package/resources/themes/saga-blue/theme.css +16 -7
- package/resources/themes/saga-green/theme.css +16 -7
- package/resources/themes/saga-orange/theme.css +16 -7
- package/resources/themes/saga-purple/theme.css +16 -7
- package/resources/themes/soho-dark/theme.css +16 -7
- package/resources/themes/soho-light/theme.css +16 -7
- package/resources/themes/tailwind-light/theme.css +16 -7
- package/resources/themes/vela-blue/theme.css +16 -7
- package/resources/themes/vela-green/theme.css +16 -7
- package/resources/themes/vela-orange/theme.css +16 -7
- package/resources/themes/vela-purple/theme.css +16 -7
- package/resources/themes/viva-dark/theme.css +16 -7
- package/resources/themes/viva-light/theme.css +16 -7
- package/scrollpanel/scrollpanel.cjs.js +39 -52
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.d.ts +42 -0
- package/scrollpanel/scrollpanel.esm.js +26 -39
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +193 -207
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +64 -36
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +42 -1
- package/scrolltop/scrolltop.esm.js +65 -37
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +65 -38
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +6 -2
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +6 -2
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +6 -2
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +88 -52
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +58 -1
- package/sidebar/sidebar.esm.js +89 -53
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +89 -54
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +26 -42
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.d.ts +26 -0
- package/skeleton/skeleton.esm.js +13 -29
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +70 -87
- package/skeleton/skeleton.min.js +1 -1
- 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/speeddial/speeddial.cjs.js +63 -56
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +64 -1
- package/speeddial/speeddial.esm.js +64 -57
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +62 -56
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +50 -40
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +59 -1
- package/splitbutton/splitbutton.esm.js +51 -41
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +50 -41
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +68 -70
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +60 -0
- package/splitter/splitter.esm.js +69 -71
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +69 -72
- package/splitter/splitter.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/styleclass/styleclass.cjs.js +9 -7
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +9 -7
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +9 -7
- package/styleclass/styleclass.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/tabview/tabview.cjs.js +142 -122
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +132 -1
- package/tabview/tabview.esm.js +143 -123
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +143 -124
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +18 -30
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +34 -1
- package/tag/tag.esm.js +19 -31
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +19 -32
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +49 -52
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.d.ts +73 -0
- package/terminal/terminal.esm.js +50 -53
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +50 -54
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.d.ts +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/timeline/timeline.d.ts +1 -1
- package/toast/toast.cjs.js +85 -81
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +124 -2
- package/toast/toast.esm.js +86 -82
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +83 -80
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +12 -2
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +12 -2
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +13 -4
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +35 -49
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +44 -0
- package/toolbar/toolbar.esm.js +22 -36
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +72 -87
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +31 -37
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +55 -0
- package/tooltip/tooltip.esm.js +32 -38
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +32 -39
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +5 -0
- package/tree/tree.d.ts +1 -1
- package/treenode/treenode.d.ts +5 -1
- package/treeselect/treeselect.cjs.js +12 -5
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +6 -1
- package/treeselect/treeselect.esm.js +12 -5
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +11 -4
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +10 -3
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +1 -1
- package/treetable/treetable.esm.js +10 -3
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +10 -3
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +22 -11
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +5 -0
- package/tristatecheckbox/tristatecheckbox.esm.js +22 -11
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +21 -11
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +735 -676
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +5 -1
- package/utils/utils.esm.js +732 -677
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +736 -678
- package/utils/utils.min.js +1 -1
- package/web-types.json +13 -1
package/carousel/carousel.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.carousel = (function (exports, React, PrimeReact, hooks,
|
|
2
|
+
this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevrondown, chevronleft, chevronright, chevronup, ripple, utils, componentbase) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -25,19 +25,45 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
25
25
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
26
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
27
27
|
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
function _typeof(obj) {
|
|
29
|
+
"@babel/helpers - typeof";
|
|
30
|
+
|
|
31
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
32
|
+
return typeof obj;
|
|
33
|
+
} : function (obj) {
|
|
34
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
35
|
+
}, _typeof(obj);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function _toPrimitive(input, hint) {
|
|
39
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
40
|
+
var prim = input[Symbol.toPrimitive];
|
|
41
|
+
if (prim !== undefined) {
|
|
42
|
+
var res = prim.call(input, hint || "default");
|
|
43
|
+
if (_typeof(res) !== "object") return res;
|
|
44
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45
|
+
}
|
|
46
|
+
return (hint === "string" ? String : Number)(input);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function _toPropertyKey(arg) {
|
|
50
|
+
var key = _toPrimitive(arg, "string");
|
|
51
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function _defineProperty(obj, key, value) {
|
|
55
|
+
key = _toPropertyKey(key);
|
|
56
|
+
if (key in obj) {
|
|
57
|
+
Object.defineProperty(obj, key, {
|
|
58
|
+
value: value,
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true
|
|
62
|
+
});
|
|
63
|
+
} else {
|
|
64
|
+
obj[key] = value;
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
41
67
|
}
|
|
42
68
|
|
|
43
69
|
function _arrayLikeToArray(arr, len) {
|
|
@@ -111,7 +137,7 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
111
137
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
112
138
|
}
|
|
113
139
|
|
|
114
|
-
var CarouselBase = {
|
|
140
|
+
var CarouselBase = componentbase.ComponentBase.extend({
|
|
115
141
|
defaultProps: {
|
|
116
142
|
__TYPE: 'Carousel',
|
|
117
143
|
id: null,
|
|
@@ -138,15 +164,11 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
138
164
|
indicatorsContentClassName: null,
|
|
139
165
|
onPageChange: null,
|
|
140
166
|
children: undefined
|
|
141
|
-
},
|
|
142
|
-
getProps: function getProps(props) {
|
|
143
|
-
return utils.ObjectUtils.getMergedProps(props, CarouselBase.defaultProps);
|
|
144
|
-
},
|
|
145
|
-
getOtherProps: function getOtherProps(props) {
|
|
146
|
-
return utils.ObjectUtils.getDiffProps(props, CarouselBase.defaultProps);
|
|
147
167
|
}
|
|
148
|
-
};
|
|
168
|
+
});
|
|
149
169
|
|
|
170
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
171
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
150
172
|
var CarouselItem = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
151
173
|
var content = props.template(props.item);
|
|
152
174
|
var className = utils.classNames(props.className, 'p-carousel-item', {
|
|
@@ -154,9 +176,11 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
154
176
|
'p-carousel-item-start': props.start,
|
|
155
177
|
'p-carousel-item-end': props.end
|
|
156
178
|
});
|
|
157
|
-
|
|
179
|
+
var ptParams = props.className && props.className === 'p-carousel-item-cloned' ? props.ptm('itemCloned') : props.ptm('item');
|
|
180
|
+
var itemClonedProps = utils.mergeProps({
|
|
158
181
|
className: className
|
|
159
|
-
},
|
|
182
|
+
}, ptParams);
|
|
183
|
+
return /*#__PURE__*/React__namespace.createElement("div", itemClonedProps, content);
|
|
160
184
|
});
|
|
161
185
|
var Carousel = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
162
186
|
var props = CarouselBase.getProps(inProps);
|
|
@@ -176,6 +200,16 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
176
200
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
177
201
|
pageState = _React$useState8[0],
|
|
178
202
|
setPageState = _React$useState8[1];
|
|
203
|
+
var _CarouselBase$setMeta = CarouselBase.setMetaData({
|
|
204
|
+
props: props,
|
|
205
|
+
state: {
|
|
206
|
+
numVisible: numVisibleState,
|
|
207
|
+
numScroll: numScrollState,
|
|
208
|
+
totalShiftedItems: totalShiftedItemsState,
|
|
209
|
+
page: pageState
|
|
210
|
+
}
|
|
211
|
+
}),
|
|
212
|
+
ptm = _CarouselBase$setMeta.ptm;
|
|
179
213
|
var elementRef = React__namespace.useRef(null);
|
|
180
214
|
var itemsContainerRef = React__namespace.useRef(null);
|
|
181
215
|
var remainingItems = React__namespace.useRef(0);
|
|
@@ -194,9 +228,10 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
194
228
|
var isVertical = props.orientation === 'vertical';
|
|
195
229
|
var circular = props.circular || !!props.autoplayInterval;
|
|
196
230
|
var isCircular = circular && props.value && props.value.length >= numVisibleState;
|
|
197
|
-
var currentPage = props.onPageChange ? props.page : pageState;
|
|
198
231
|
var totalIndicators = props.value ? Math.max(Math.ceil((props.value.length - numVisibleState) / numScrollState) + 1, 0) : 0;
|
|
199
232
|
var isAutoplay = totalIndicators && props.autoplayInterval && allowAutoplay.current;
|
|
233
|
+
var isControlled = props.onPageChange && !isAutoplay;
|
|
234
|
+
var currentPage = isControlled ? props.page : pageState;
|
|
200
235
|
var _useResizeListener = hooks.useResizeListener({
|
|
201
236
|
listener: function listener() {
|
|
202
237
|
calculatePosition();
|
|
@@ -237,15 +272,8 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
237
272
|
changePosition(totalShiftedItems);
|
|
238
273
|
itemsContainerRef.current.style.transition = 'transform 500ms ease 0s';
|
|
239
274
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
props.onPageChange({
|
|
243
|
-
page: page
|
|
244
|
-
});
|
|
245
|
-
} else {
|
|
246
|
-
setPageState(page);
|
|
247
|
-
setTotalShiftedItemsState(totalShiftedItems);
|
|
248
|
-
}
|
|
275
|
+
changePage(page);
|
|
276
|
+
setTotalShiftedItemsState(totalShiftedItems);
|
|
249
277
|
};
|
|
250
278
|
var calculatePosition = function calculatePosition() {
|
|
251
279
|
if (itemsContainerRef.current && responsiveOptions.current) {
|
|
@@ -268,13 +296,7 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
268
296
|
}
|
|
269
297
|
setTotalShiftedItemsState(totalShiftedItems);
|
|
270
298
|
setNumScrollState(matchedResponsiveData.numScroll);
|
|
271
|
-
|
|
272
|
-
props.onPageChange({
|
|
273
|
-
page: page
|
|
274
|
-
});
|
|
275
|
-
} else {
|
|
276
|
-
setPageState(page);
|
|
277
|
-
}
|
|
299
|
+
changePage(page);
|
|
278
300
|
}
|
|
279
301
|
if (numVisibleState !== matchedResponsiveData.numVisible) {
|
|
280
302
|
setNumVisibleState(matchedResponsiveData.numVisible);
|
|
@@ -315,19 +337,19 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
315
337
|
}
|
|
316
338
|
}
|
|
317
339
|
};
|
|
318
|
-
var
|
|
340
|
+
var _onTouchStart = function onTouchStart(e) {
|
|
319
341
|
var touchobj = e.changedTouches[0];
|
|
320
342
|
startPos.current = {
|
|
321
343
|
x: touchobj.pageX,
|
|
322
344
|
y: touchobj.pageY
|
|
323
345
|
};
|
|
324
346
|
};
|
|
325
|
-
var
|
|
347
|
+
var _onTouchMove = function onTouchMove(e) {
|
|
326
348
|
if (e.cancelable) {
|
|
327
349
|
e.preventDefault();
|
|
328
350
|
}
|
|
329
351
|
};
|
|
330
|
-
var
|
|
352
|
+
var _onTouchEnd = function onTouchEnd(e) {
|
|
331
353
|
var touchobj = e.changedTouches[0];
|
|
332
354
|
if (isVertical) {
|
|
333
355
|
changePageOnTouch(e, touchobj.pageY - startPos.current.y);
|
|
@@ -384,6 +406,12 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
384
406
|
itemsContainerRef.current.style.transform = isVertical ? "translate3d(0, ".concat(totalShiftedItems * (100 / numVisibleState), "%, 0)") : "translate3d(".concat(totalShiftedItems * (100 / numVisibleState), "%, 0, 0)");
|
|
385
407
|
}
|
|
386
408
|
};
|
|
409
|
+
var changePage = function changePage(page) {
|
|
410
|
+
!isControlled && setPageState(page);
|
|
411
|
+
props.onPageChange && props.onPageChange({
|
|
412
|
+
page: page
|
|
413
|
+
});
|
|
414
|
+
};
|
|
387
415
|
React__namespace.useImperativeHandle(ref, function () {
|
|
388
416
|
return {
|
|
389
417
|
props: props,
|
|
@@ -413,13 +441,7 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
413
441
|
var page = currentPage;
|
|
414
442
|
if (totalIndicators !== 0 && page >= totalIndicators) {
|
|
415
443
|
page = totalIndicators - 1;
|
|
416
|
-
|
|
417
|
-
props.onPageChange({
|
|
418
|
-
page: page
|
|
419
|
-
});
|
|
420
|
-
} else {
|
|
421
|
-
setPageState(page);
|
|
422
|
-
}
|
|
444
|
+
changePage(page);
|
|
423
445
|
stateChanged = true;
|
|
424
446
|
}
|
|
425
447
|
totalShiftedItems = page * numScrollState * -1;
|
|
@@ -487,7 +509,8 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
487
509
|
item: item,
|
|
488
510
|
active: isActive,
|
|
489
511
|
start: start,
|
|
490
|
-
end: end
|
|
512
|
+
end: end,
|
|
513
|
+
ptm: ptm
|
|
491
514
|
});
|
|
492
515
|
});
|
|
493
516
|
clonedElements = props.value.slice(0, numVisibleState);
|
|
@@ -503,7 +526,8 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
503
526
|
item: item,
|
|
504
527
|
active: isActive,
|
|
505
528
|
start: start,
|
|
506
|
-
end: end
|
|
529
|
+
end: end,
|
|
530
|
+
ptm: ptm
|
|
507
531
|
});
|
|
508
532
|
});
|
|
509
533
|
}
|
|
@@ -519,7 +543,8 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
519
543
|
item: item,
|
|
520
544
|
active: isActive,
|
|
521
545
|
start: start,
|
|
522
|
-
end: end
|
|
546
|
+
end: end,
|
|
547
|
+
ptm: ptm
|
|
523
548
|
});
|
|
524
549
|
});
|
|
525
550
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, clonedItemsForStarting, items, clonedItemsForFinishing);
|
|
@@ -527,17 +552,19 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
527
552
|
};
|
|
528
553
|
var createHeader = function createHeader() {
|
|
529
554
|
if (props.header) {
|
|
530
|
-
|
|
531
|
-
className:
|
|
532
|
-
},
|
|
555
|
+
var headerProps = utils.mergeProps({
|
|
556
|
+
className: 'p-carousel-header'
|
|
557
|
+
}, ptm('header'));
|
|
558
|
+
return /*#__PURE__*/React__namespace.createElement("div", headerProps, props.header);
|
|
533
559
|
}
|
|
534
560
|
return null;
|
|
535
561
|
};
|
|
536
562
|
var createFooter = function createFooter() {
|
|
537
563
|
if (props.footer) {
|
|
538
|
-
|
|
539
|
-
className:
|
|
540
|
-
},
|
|
564
|
+
var footerProps = utils.mergeProps({
|
|
565
|
+
className: 'p-carousel-footer'
|
|
566
|
+
}, ptm('footer'));
|
|
567
|
+
return /*#__PURE__*/React__namespace.createElement("div", footerProps, props.footer);
|
|
541
568
|
}
|
|
542
569
|
return null;
|
|
543
570
|
};
|
|
@@ -547,21 +574,30 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
547
574
|
var backwardNavigator = createBackwardNavigator();
|
|
548
575
|
var forwardNavigator = createForwardNavigator();
|
|
549
576
|
var className = utils.classNames('p-carousel-container', props.containerClassName);
|
|
550
|
-
|
|
551
|
-
className:
|
|
552
|
-
}, backwardNavigator, /*#__PURE__*/React__namespace.createElement("div", {
|
|
553
|
-
className: "p-carousel-items-content",
|
|
577
|
+
var itemsContentProps = utils.mergeProps({
|
|
578
|
+
className: 'p-carousel-items-content',
|
|
554
579
|
style: {
|
|
555
580
|
height: height
|
|
556
581
|
},
|
|
557
|
-
onTouchStart: onTouchStart
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
582
|
+
onTouchStart: function onTouchStart(e) {
|
|
583
|
+
return _onTouchStart(e);
|
|
584
|
+
},
|
|
585
|
+
onTouchMove: function onTouchMove(e) {
|
|
586
|
+
return _onTouchMove(e);
|
|
587
|
+
},
|
|
588
|
+
onTouchEnd: function onTouchEnd(e) {
|
|
589
|
+
return _onTouchEnd(e);
|
|
590
|
+
}
|
|
591
|
+
}, ptm('itemsContent'));
|
|
592
|
+
var containerProps = utils.mergeProps({
|
|
593
|
+
className: className
|
|
594
|
+
}, ptm('container'));
|
|
595
|
+
var itemsContainerProps = utils.mergeProps({
|
|
561
596
|
ref: itemsContainerRef,
|
|
562
|
-
className:
|
|
597
|
+
className: 'p-carousel-items-container',
|
|
563
598
|
onTransitionEnd: onTransitionEnd
|
|
564
|
-
},
|
|
599
|
+
}, ptm('itemsContainer'));
|
|
600
|
+
return /*#__PURE__*/React__namespace.createElement("div", containerProps, backwardNavigator, /*#__PURE__*/React__namespace.createElement("div", itemsContentProps, /*#__PURE__*/React__namespace.createElement("div", itemsContainerProps, items)), forwardNavigator);
|
|
565
601
|
};
|
|
566
602
|
var createBackwardNavigator = function createBackwardNavigator() {
|
|
567
603
|
if (props.showNavigators) {
|
|
@@ -570,23 +606,23 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
570
606
|
'p-disabled': isDisabled
|
|
571
607
|
});
|
|
572
608
|
var iconClassName = 'p-carousel-prev-icon';
|
|
573
|
-
var
|
|
609
|
+
var previousButtonIconProps = utils.mergeProps({
|
|
574
610
|
className: iconClassName
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
})
|
|
578
|
-
var backwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
579
|
-
className: _className
|
|
580
|
-
}, {
|
|
611
|
+
}, ptm('previousButtonIcon'));
|
|
612
|
+
var icon = isVertical ? props.prevIcon || /*#__PURE__*/React__namespace.createElement(chevronup.ChevronUpIcon, previousButtonIconProps) : props.prevIcon || /*#__PURE__*/React__namespace.createElement(chevronleft.ChevronLeftIcon, previousButtonIconProps);
|
|
613
|
+
var backwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, previousButtonIconProps), {
|
|
581
614
|
props: props
|
|
582
615
|
});
|
|
583
|
-
|
|
584
|
-
type:
|
|
616
|
+
var previousButtonProps = utils.mergeProps({
|
|
617
|
+
type: 'button',
|
|
585
618
|
className: _className,
|
|
586
|
-
onClick:
|
|
619
|
+
onClick: function onClick(e) {
|
|
620
|
+
return navBackward(e);
|
|
621
|
+
},
|
|
587
622
|
disabled: isDisabled,
|
|
588
|
-
|
|
589
|
-
},
|
|
623
|
+
'aria-label': PrimeReact.ariaLabel('previousPageLabel')
|
|
624
|
+
}, ptm('previousButton'));
|
|
625
|
+
return /*#__PURE__*/React__namespace.createElement("button", previousButtonProps, backwardNavigatorIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
590
626
|
}
|
|
591
627
|
return null;
|
|
592
628
|
};
|
|
@@ -597,23 +633,23 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
597
633
|
'p-disabled': isDisabled
|
|
598
634
|
});
|
|
599
635
|
var iconClassName = 'p-carousel-next-icon';
|
|
600
|
-
var
|
|
636
|
+
var nextButtonIconProps = utils.mergeProps({
|
|
601
637
|
className: iconClassName
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
})
|
|
605
|
-
var forwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
606
|
-
className: _className2
|
|
607
|
-
}, {
|
|
638
|
+
}, ptm('nextButtonIcon'));
|
|
639
|
+
var icon = isVertical ? props.nextIcon || /*#__PURE__*/React__namespace.createElement(chevrondown.ChevronDownIcon, nextButtonIconProps) : props.nextIcon || /*#__PURE__*/React__namespace.createElement(chevronright.ChevronRightIcon, nextButtonIconProps);
|
|
640
|
+
var forwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, nextButtonIconProps), {
|
|
608
641
|
props: props
|
|
609
642
|
});
|
|
610
|
-
|
|
611
|
-
type:
|
|
643
|
+
var nextButtonProps = utils.mergeProps({
|
|
644
|
+
type: 'button',
|
|
612
645
|
className: _className2,
|
|
613
|
-
onClick:
|
|
646
|
+
onClick: function onClick(e) {
|
|
647
|
+
return navForward(e);
|
|
648
|
+
},
|
|
614
649
|
disabled: isDisabled,
|
|
615
|
-
|
|
616
|
-
},
|
|
650
|
+
'aria-label': PrimeReact.ariaLabel('nextPageLabel')
|
|
651
|
+
}, ptm('nextButton'));
|
|
652
|
+
return /*#__PURE__*/React__namespace.createElement("button", nextButtonProps, forwardNavigatorIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
617
653
|
}
|
|
618
654
|
return null;
|
|
619
655
|
};
|
|
@@ -623,17 +659,19 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
623
659
|
var className = utils.classNames('p-carousel-indicator', {
|
|
624
660
|
'p-highlight': isActive
|
|
625
661
|
});
|
|
626
|
-
|
|
662
|
+
var indicatorProps = utils.mergeProps({
|
|
627
663
|
key: key,
|
|
628
664
|
className: className
|
|
629
|
-
},
|
|
630
|
-
|
|
631
|
-
|
|
665
|
+
}, ptm('indicator'));
|
|
666
|
+
var indicatorButtonProps = utils.mergeProps({
|
|
667
|
+
type: 'button',
|
|
668
|
+
className: 'p-link',
|
|
632
669
|
onClick: function onClick(e) {
|
|
633
670
|
return onDotClick(e, index);
|
|
634
671
|
},
|
|
635
|
-
|
|
636
|
-
},
|
|
672
|
+
'aria-label': "".concat(PrimeReact.ariaLabel('pageLabel'), " ").concat(index + 1)
|
|
673
|
+
}, ptm('indicatorButton'));
|
|
674
|
+
return /*#__PURE__*/React__namespace.createElement("li", indicatorProps, /*#__PURE__*/React__namespace.createElement("button", indicatorButtonProps, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)));
|
|
637
675
|
};
|
|
638
676
|
var createIndicators = function createIndicators() {
|
|
639
677
|
if (props.showIndicators) {
|
|
@@ -642,13 +680,13 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
642
680
|
for (var i = 0; i < totalIndicators; i++) {
|
|
643
681
|
_indicators.push(createIndicator(i));
|
|
644
682
|
}
|
|
645
|
-
|
|
683
|
+
var indicatorsProps = utils.mergeProps({
|
|
646
684
|
className: _className3
|
|
647
|
-
},
|
|
685
|
+
}, ptm('indicators'));
|
|
686
|
+
return /*#__PURE__*/React__namespace.createElement("ul", indicatorsProps, _indicators);
|
|
648
687
|
}
|
|
649
688
|
return null;
|
|
650
689
|
};
|
|
651
|
-
var otherProps = CarouselBase.getOtherProps(props);
|
|
652
690
|
var className = utils.classNames('p-carousel p-component', {
|
|
653
691
|
'p-carousel-vertical': isVertical,
|
|
654
692
|
'p-carousel-horizontal': !isVertical
|
|
@@ -658,14 +696,16 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
658
696
|
var indicators = createIndicators();
|
|
659
697
|
var header = createHeader();
|
|
660
698
|
var footer = createFooter();
|
|
661
|
-
|
|
662
|
-
ref: elementRef,
|
|
699
|
+
var rootProps = utils.mergeProps({
|
|
663
700
|
id: props.id,
|
|
701
|
+
ref: elementRef,
|
|
664
702
|
className: className,
|
|
665
703
|
style: props.style
|
|
666
|
-
},
|
|
704
|
+
}, CarouselBase.getOtherProps(props), ptm('root'));
|
|
705
|
+
var contentProps = utils.mergeProps({
|
|
667
706
|
className: contentClassName
|
|
668
|
-
}, content
|
|
707
|
+
}, ptm('content'));
|
|
708
|
+
return /*#__PURE__*/React__namespace.createElement("div", rootProps, header, /*#__PURE__*/React__namespace.createElement("div", contentProps, content, indicators), footer);
|
|
669
709
|
}));
|
|
670
710
|
CarouselItem.displayName = 'CarouselItem';
|
|
671
711
|
Carousel.displayName = 'Carousel';
|
|
@@ -676,4 +716,4 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, ripple,
|
|
|
676
716
|
|
|
677
717
|
return exports;
|
|
678
718
|
|
|
679
|
-
})({}, React, primereact.api, primereact.hooks, primereact.
|
|
719
|
+
})({}, React, primereact.api, primereact.hooks, primereact.icons.chevrondown, primereact.icons.chevronleft, primereact.icons.chevronright, primereact.icons.chevronup, primereact.ripple, primereact.utils, primereact.componentbase);
|
package/carousel/carousel.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.carousel=function(e,t,n,r,a,l,c,o,u,i){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function p(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 m=p(t),f=s(n);function v(){return v=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},v.apply(this,arguments)}function d(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 h(e){if(Array.isArray(e))return d(e)}function g(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}function y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(e){if(Array.isArray(e))return e}function I(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,l,c,o=[],u=!0,i=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);u=!0);}catch(e){i=!0,a=e}finally{try{if(!u&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(i)throw a}}return o}}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 C(e,t){return N(e)||I(e,t)||b(e,t)||E()}var P={defaultProps:{__TYPE:"Carousel",id:null,value:null,page:0,header:null,footer:null,style:null,className:null,itemTemplate:null,circular:!1,showIndicators:!0,showNavigators:!0,autoplayInterval:0,numVisible:1,numScroll:1,prevIcon:null,nextIcon:null,responsiveOptions:null,orientation:"horizontal",verticalViewPortHeight:"300px",contentClassName:null,containerClassName:null,indicatorsContentClassName:null,onPageChange:null,children:void 0},getProps:function(e){return l.ObjectUtils.getMergedProps(e,P.defaultProps)},getOtherProps:function(e){return l.ObjectUtils.getDiffProps(e,P.defaultProps)}},S=m.memo((function(e){var t=e.template(e.item),n=l.classNames(e.className,"p-carousel-item",{"p-carousel-item-active":e.active,"p-carousel-item-start":e.start,"p-carousel-item-end":e.end});return m.createElement("div",{className:n},t)})),O=m.memo(m.forwardRef((function(e,t){var s=P.getProps(e),p=C(m.useState(s.numVisible),2),d=p[0],N=p[1],I=C(m.useState(s.numScroll),2),E=I[0],O=I[1],w=C(m.useState(s.page*s.numScroll*-1),2),j=w[0],R=w[1],k=C(m.useState(s.page),2),x=k[0],T=k[1],M=m.useRef(null),A=m.useRef(null),U=m.useRef(0),V=m.useRef(!!s.autoplayInterval),D=m.useRef(""),L=m.useRef(20),_=m.useRef(null),H=m.useRef(null),z=m.useRef(null),X=m.useRef(!1),Y=m.useRef(null),J=r.usePrevious(E),q=r.usePrevious(d),F=r.usePrevious(s.value),W=r.usePrevious(s.page),$="vertical"===s.orientation,B=s.circular||!!s.autoplayInterval,G=B&&s.value&&s.value.length>=d,K=s.onPageChange?s.page:x,Q=s.value?Math.max(Math.ceil((s.value.length-d)/E)+1,0):0,Z=Q&&s.autoplayInterval&&V.current,ee=C(r.useResizeListener({listener:function(){ne()},when:s.responsiveOptions}),1)[0],te=function(e,t){var n=j;null!=t?(n=E*t*-1,G&&(n-=d),X.current=!1):(n+=E*e,X.current&&(n+=U.current-E*e,X.current=!1),t=Math.abs(Math.floor((G?n+d:n)/E)));G&&x===Q-1&&-1===e?(n=-1*(s.value.length+d),t=0):G&&0===x&&1===e?(n=0,t=Q-1):t===Q-1&&U.current>0&&(n+=-1*U.current-E*e,X.current=!0),A.current&&(l.DomHandler.removeClass(A.current,"p-items-hidden"),fe(n),A.current.style.transition="transform 500ms ease 0s"),s.onPageChange?(R(n),s.onPageChange({page:t})):(T(t),R(n))},ne=function(){if(A.current&&Y.current){for(var e=window.innerWidth,t={numVisible:s.numVisible,numScroll:s.numScroll},n=0;n<Y.current.length;n++){var r=Y.current[n];parseInt(r.breakpoint,10)>=e&&(t=r)}if(E!==t.numScroll){var a=Math.floor(K*E/t.numScroll),l=t.numScroll*a*-1;G&&(l-=t.numVisible),R(l),O(t.numScroll),s.onPageChange?s.onPageChange({page:a}):T(a)}d!==t.numVisible&&N(t.numVisible)}},re=function(e,t){(B||0!==K)&&te(1,t),V.current=!1,e.cancelable&&e.preventDefault()},ae=function(e,t){(B||K<Q-1)&&te(-1,t),V.current=!1,e.cancelable&&e.preventDefault()},le=function(e,t){t>K?ae(e,t):t<K&&re(e,t)},ce=function(e){A.current&&"transform"===e.propertyName&&(l.DomHandler.addClass(A.current,"p-items-hidden"),A.current.style.transition="",0!==x&&x!==Q-1||!G||fe(j))},oe=function(e){var t=e.changedTouches[0];_.current={x:t.pageX,y:t.pageY}},ue=function(e){e.cancelable&&e.preventDefault()},ie=function(e){var t=e.changedTouches[0];se(e,$?t.pageY-_.current.y:t.pageX-_.current.x)},se=function(e,t){Math.abs(t)>L&&(t<0?ae(e):re(e))},pe=function(){H.current&&clearInterval(H.current)},me=function(){z.current||(z.current=l.DomHandler.createInlineStyle(f.default.nonce));var e,t="\n .p-carousel[".concat(D.current,"] .p-carousel-item {\n flex: 1 0 ").concat(100/d,"%\n }\n ");if(s.responsiveOptions){Y.current=h(e=s.responsiveOptions)||g(e)||b(e)||y(),Y.current.sort((function(e,t){return l.ObjectUtils.sort(e.breakpoint,t.breakpoint,-1,f.default.locale,f.default.nullSortOrder)}));for(var n=0;n<Y.current.length;n++){var r=Y.current[n];t+="\n @media screen and (max-width: ".concat(r.breakpoint,") {\n .p-carousel[").concat(D.current,"] .p-carousel-item {\n flex: 1 0 ").concat(100/r.numVisible,"%\n }\n }\n ")}}z.current.innerHTML=t},fe=function(e){A.current&&(A.current.style.transform=$?"translate3d(0, ".concat(e*(100/d),"%, 0)"):"translate3d(".concat(e*(100/d),"%, 0, 0)"))};m.useImperativeHandle(t,(function(){return{props:s,getElement:function(){return M.current}}})),r.useMountEffect((function(){M.current&&(D.current=l.UniqueComponentId(),M.current.setAttribute(D.current,"")),me(),ne(),fe(j),ee()})),r.useUpdateEffect((function(){var e=!1,t=j;if(s.autoplayInterval&&pe(),J!==E||q!==d||s.value&&F&&F.length!==s.value.length){U.current=(s.value.length-d)%E;var n=K;0!==Q&&n>=Q&&(n=Q-1,s.onPageChange?s.onPageChange({page:n}):T(n),e=!0),t=n*E*-1,G&&(t-=d),n===Q-1&&U.current>0?(t+=-1*U.current+E,X.current=!0):X.current=!1,t!==j&&(R(t),e=!0),fe(t)}G&&(0===x?t=-1*d:0===t&&(t=-1*s.value.length,U.current>0&&(X.current=!0)),t!==j&&(R(t),e=!0)),W!==s.page&&(s.page>W&&s.page<=Q-1?te(-1,s.page):s.page<W&&te(1,s.page)),!e&&Z&&(H.current=setInterval((function(){te(-1,x===Q-1?0:x+1)}),s.autoplayInterval))})),r.useUnmountEffect((function(){s.autoplayInterval&&pe()}));var ve=function(){if(s.value&&s.value.length){var e=null,t=null;if(G){var n=null;e=(n=s.value.slice(-1*d)).map((function(e,t){return m.createElement(S,{key:t+"_scloned",className:"p-carousel-item-cloned",template:s.itemTemplate,item:e,active:-1*j===s.value.length+d,start:0===t,end:t===n.length-1})})),t=(n=s.value.slice(0,d)).map((function(e,t){return m.createElement(S,{key:t+"_fcloned",className:"p-carousel-item-cloned",template:s.itemTemplate,item:e,active:0===j,start:0===t,end:t===n.length-1})}))}var r=s.value.map((function(e,t){var n=G?-1*(j+d):-1*j,r=n+d-1;return m.createElement(S,{key:t,template:s.itemTemplate,item:e,active:n<=t&&r>=t,start:n===t,end:r===t})}));return m.createElement(m.Fragment,null,e,r,t)}},de=function(){if(s.showNavigators){var e=(!B||s.value&&s.value.length<d)&&0===K,t=l.classNames("p-carousel-prev p-link",{"p-disabled":e}),r="p-carousel-prev-icon",o=l.IconUtils.getJSXIcon($?s.prevIcon||m.createElement(c.ChevronUpIcon,{className:r}):s.prevIcon||m.createElement(i.ChevronLeftIcon,{className:r}),{className:t},{props:s});return m.createElement("button",{type:"button",className:t,onClick:re,disabled:e,"aria-label":n.ariaLabel("previousPageLabel")},o,m.createElement(a.Ripple,null))}return null},he=function(){if(s.showNavigators){var e=(!B||s.value&&s.value.length<d)&&(K===Q-1||0===Q),t=l.classNames("p-carousel-next p-link",{"p-disabled":e}),r="p-carousel-next-icon",c=l.IconUtils.getJSXIcon($?s.nextIcon||m.createElement(u.ChevronDownIcon,{className:r}):s.nextIcon||m.createElement(o.ChevronRightIcon,{className:r}),{className:t},{props:s});return m.createElement("button",{type:"button",className:t,onClick:ae,disabled:e,"aria-label":n.ariaLabel("nextPageLabel")},c,m.createElement(a.Ripple,null))}return null},ge=function(e){var t="carousel-indicator-"+e,r=l.classNames("p-carousel-indicator",{"p-highlight":K===e});return m.createElement("li",{key:t,className:r},m.createElement("button",{type:"button",className:"p-link",onClick:function(t){return le(t,e)},"aria-label":"".concat(n.ariaLabel("pageLabel")," ").concat(e+1)},m.createElement(a.Ripple,null)))},be=P.getOtherProps(s),ye=l.classNames("p-carousel p-component",{"p-carousel-vertical":$,"p-carousel-horizontal":!$},s.className),Ne=l.classNames("p-carousel-content",s.contentClassName),Ie=function(){var e=ve(),t=$?s.verticalViewPortHeight:"auto",n=de(),r=he(),a=l.classNames("p-carousel-container",s.containerClassName);return m.createElement("div",{className:a},n,m.createElement("div",{className:"p-carousel-items-content",style:{height:t},onTouchStart:oe,onTouchMove:ue,onTouchEnd:ie},m.createElement("div",{ref:A,className:"p-carousel-items-container",onTransitionEnd:ce},e)),r)}(),Ee=function(){if(s.showIndicators){for(var e=l.classNames("p-carousel-indicators p-reset",s.indicatorsContentClassName),t=[],n=0;n<Q;n++)t.push(ge(n));return m.createElement("ul",{className:e},t)}return null}(),Ce=s.header?m.createElement("div",{className:"p-carousel-header"},s.header):null,Pe=s.footer?m.createElement("div",{className:"p-carousel-footer"},s.footer):null;return m.createElement("div",v({ref:M,id:s.id,className:ye,style:s.style},be),Ce,m.createElement("div",{className:Ne},Ie,Ee),Pe)})));return S.displayName="CarouselItem",O.displayName="Carousel",e.Carousel=O,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.hooks,primereact.ripple,primereact.utils,primereact.icons.chevronup,primereact.icons.chevronright,primereact.icons.chevrondown,primereact.icons.chevronleft);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.carousel=function(e,t,r,n,a,o,l,u,c,i,s){"use strict";function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function p(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 f=p(t),v=m(r);function d(e){return d="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},d(e)}function g(e,t){if("object"!==d(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function b(e){var t=g(e,"string");return"symbol"===d(t)?t:String(t)}function h(e,t,r){return(t=b(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(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 P(e){if(Array.isArray(e))return y(e)}function N(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function I(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e){if(Array.isArray(e))return e}function O(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,l,u=[],c=!0,i=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){i=!0,a=e}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(i)throw a}}return u}}function C(){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 E(e)||O(e,t)||I(e,t)||C()}var j=s.ComponentBase.extend({defaultProps:{__TYPE:"Carousel",id:null,value:null,page:0,header:null,footer:null,style:null,className:null,itemTemplate:null,circular:!1,showIndicators:!0,showNavigators:!0,autoplayInterval:0,numVisible:1,numScroll:1,prevIcon:null,nextIcon:null,responsiveOptions:null,orientation:"horizontal",verticalViewPortHeight:"300px",contentClassName:null,containerClassName:null,indicatorsContentClassName:null,onPageChange: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 k(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){h(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 x=f.memo((function(e){var t=e.template(e.item),r=i.classNames(e.className,"p-carousel-item",{"p-carousel-item-active":e.active,"p-carousel-item-start":e.start,"p-carousel-item-end":e.end}),n=e.ptm(e.className&&"p-carousel-item-cloned"===e.className?"itemCloned":"item"),a=i.mergeProps({className:r},n);return f.createElement("div",a,t)})),T=f.memo(f.forwardRef((function(e,t){var s=j.getProps(e),m=w(f.useState(s.numVisible),2),p=m[0],d=m[1],g=w(f.useState(s.numScroll),2),b=g[0],h=g[1],y=w(f.useState(s.page*s.numScroll*-1),2),E=y[0],O=y[1],C=w(f.useState(s.page),2),R=C[0],T=C[1],D=j.setMetaData({props:s,state:{numVisible:p,numScroll:b,totalShiftedItems:E,page:R}}).ptm,M=f.useRef(null),V=f.useRef(null),A=f.useRef(0),L=f.useRef(!!s.autoplayInterval),U=f.useRef(""),_=f.useRef(20),H=f.useRef(null),B=f.useRef(null),z=f.useRef(null),X=f.useRef(!1),Y=f.useRef(null),J=n.usePrevious(b),q=n.usePrevious(p),F=n.usePrevious(s.value),W=n.usePrevious(s.page),$="vertical"===s.orientation,G=s.circular||!!s.autoplayInterval,K=G&&s.value&&s.value.length>=p,Q=s.value?Math.max(Math.ceil((s.value.length-p)/b)+1,0):0,Z=Q&&s.autoplayInterval&&L.current,ee=s.onPageChange&&!Z,te=ee?s.page:R,re=w(n.useResizeListener({listener:function(){ae()},when:s.responsiveOptions}),1)[0],ne=function(e,t){var r=E;null!=t?(r=b*t*-1,K&&(r-=p),X.current=!1):(r+=b*e,X.current&&(r+=A.current-b*e,X.current=!1),t=Math.abs(Math.floor((K?r+p:r)/b)));K&&R===Q-1&&-1===e?(r=-1*(s.value.length+p),t=0):K&&0===R&&1===e?(r=0,t=Q-1):t===Q-1&&A.current>0&&(r+=-1*A.current-b*e,X.current=!0),V.current&&(i.DomHandler.removeClass(V.current,"p-items-hidden"),de(r),V.current.style.transition="transform 500ms ease 0s"),ge(t),O(r)},ae=function(){if(V.current&&Y.current){for(var e=window.innerWidth,t={numVisible:s.numVisible,numScroll:s.numScroll},r=0;r<Y.current.length;r++){var n=Y.current[r];parseInt(n.breakpoint,10)>=e&&(t=n)}if(b!==t.numScroll){var a=Math.floor(te*b/t.numScroll),o=t.numScroll*a*-1;K&&(o-=t.numVisible),O(o),h(t.numScroll),ge(a)}p!==t.numVisible&&d(t.numVisible)}},oe=function(e,t){(G||0!==te)&&ne(1,t),L.current=!1,e.cancelable&&e.preventDefault()},le=function(e,t){(G||te<Q-1)&&ne(-1,t),L.current=!1,e.cancelable&&e.preventDefault()},ue=function(e,t){t>te?le(e,t):t<te&&oe(e,t)},ce=function(e){V.current&&"transform"===e.propertyName&&(i.DomHandler.addClass(V.current,"p-items-hidden"),V.current.style.transition="",0!==R&&R!==Q-1||!K||de(E))},ie=function(e){var t=e.changedTouches[0];H.current={x:t.pageX,y:t.pageY}},se=function(e){e.cancelable&&e.preventDefault()},me=function(e){var t=e.changedTouches[0];pe(e,$?t.pageY-H.current.y:t.pageX-H.current.x)},pe=function(e,t){Math.abs(t)>_&&(t<0?le(e):oe(e))},fe=function(){B.current&&clearInterval(B.current)},ve=function(){z.current||(z.current=i.DomHandler.createInlineStyle(v.default.nonce));var e,t="\n .p-carousel[".concat(U.current,"] .p-carousel-item {\n flex: 1 0 ").concat(100/p,"%\n }\n ");if(s.responsiveOptions){Y.current=P(e=s.responsiveOptions)||N(e)||I(e)||S(),Y.current.sort((function(e,t){return i.ObjectUtils.sort(e.breakpoint,t.breakpoint,-1,v.default.locale,v.default.nullSortOrder)}));for(var r=0;r<Y.current.length;r++){var n=Y.current[r];t+="\n @media screen and (max-width: ".concat(n.breakpoint,") {\n .p-carousel[").concat(U.current,"] .p-carousel-item {\n flex: 1 0 ").concat(100/n.numVisible,"%\n }\n }\n ")}}z.current.innerHTML=t},de=function(e){V.current&&(V.current.style.transform=$?"translate3d(0, ".concat(e*(100/p),"%, 0)"):"translate3d(".concat(e*(100/p),"%, 0, 0)"))},ge=function(e){!ee&&T(e),s.onPageChange&&s.onPageChange({page:e})};f.useImperativeHandle(t,(function(){return{props:s,getElement:function(){return M.current}}})),n.useMountEffect((function(){M.current&&(U.current=i.UniqueComponentId(),M.current.setAttribute(U.current,"")),ve(),ae(),de(E),re()})),n.useUpdateEffect((function(){var e=!1,t=E;if(s.autoplayInterval&&fe(),J!==b||q!==p||s.value&&F&&F.length!==s.value.length){A.current=(s.value.length-p)%b;var r=te;0!==Q&&r>=Q&&(ge(r=Q-1),e=!0),t=r*b*-1,K&&(t-=p),r===Q-1&&A.current>0?(t+=-1*A.current+b,X.current=!0):X.current=!1,t!==E&&(O(t),e=!0),de(t)}K&&(0===R?t=-1*p:0===t&&(t=-1*s.value.length,A.current>0&&(X.current=!0)),t!==E&&(O(t),e=!0)),W!==s.page&&(s.page>W&&s.page<=Q-1?ne(-1,s.page):s.page<W&&ne(1,s.page)),!e&&Z&&(B.current=setInterval((function(){ne(-1,R===Q-1?0:R+1)}),s.autoplayInterval))})),n.useUnmountEffect((function(){s.autoplayInterval&&fe()}));var be=function(){if(s.value&&s.value.length){var e=null,t=null;if(K){var r=null;e=(r=s.value.slice(-1*p)).map((function(e,t){return f.createElement(x,{key:t+"_scloned",className:"p-carousel-item-cloned",template:s.itemTemplate,item:e,active:-1*E===s.value.length+p,start:0===t,end:t===r.length-1,ptm:D})})),t=(r=s.value.slice(0,p)).map((function(e,t){return f.createElement(x,{key:t+"_fcloned",className:"p-carousel-item-cloned",template:s.itemTemplate,item:e,active:0===E,start:0===t,end:t===r.length-1,ptm:D})}))}var n=s.value.map((function(e,t){var r=K?-1*(E+p):-1*E,n=r+p-1;return f.createElement(x,{key:t,template:s.itemTemplate,item:e,active:r<=t&&n>=t,start:r===t,end:n===t,ptm:D})}));return f.createElement(f.Fragment,null,e,n,t)}},he=function(){if(s.showNavigators){var e=(!G||s.value&&s.value.length<p)&&0===te,t=i.classNames("p-carousel-prev p-link",{"p-disabled":e}),n=i.mergeProps({className:"p-carousel-prev-icon"},D("previousButtonIcon")),a=i.IconUtils.getJSXIcon($?s.prevIcon||f.createElement(u.ChevronUpIcon,n):s.prevIcon||f.createElement(o.ChevronLeftIcon,n),k({},n),{props:s}),l=i.mergeProps({type:"button",className:t,onClick:function(e){return oe(e)},disabled:e,"aria-label":r.ariaLabel("previousPageLabel")},D("previousButton"));return f.createElement("button",l,a,f.createElement(c.Ripple,null))}return null},ye=function(){if(s.showNavigators){var e=(!G||s.value&&s.value.length<p)&&(te===Q-1||0===Q),t=i.classNames("p-carousel-next p-link",{"p-disabled":e}),n=i.mergeProps({className:"p-carousel-next-icon"},D("nextButtonIcon")),o=i.IconUtils.getJSXIcon($?s.nextIcon||f.createElement(a.ChevronDownIcon,n):s.nextIcon||f.createElement(l.ChevronRightIcon,n),k({},n),{props:s}),u=i.mergeProps({type:"button",className:t,onClick:function(e){return le(e)},disabled:e,"aria-label":r.ariaLabel("nextPageLabel")},D("nextButton"));return f.createElement("button",u,o,f.createElement(c.Ripple,null))}return null},Pe=function(e){var t="carousel-indicator-"+e,n=i.classNames("p-carousel-indicator",{"p-highlight":te===e}),a=i.mergeProps({key:t,className:n},D("indicator")),o=i.mergeProps({type:"button",className:"p-link",onClick:function(t){return ue(t,e)},"aria-label":"".concat(r.ariaLabel("pageLabel")," ").concat(e+1)},D("indicatorButton"));return f.createElement("li",a,f.createElement("button",o,f.createElement(c.Ripple,null)))},Ne=i.classNames("p-carousel p-component",{"p-carousel-vertical":$,"p-carousel-horizontal":!$},s.className),Ie=i.classNames("p-carousel-content",s.contentClassName),Se=function(){var e=be(),t=$?s.verticalViewPortHeight:"auto",r=he(),n=ye(),a=i.classNames("p-carousel-container",s.containerClassName),o=i.mergeProps({className:"p-carousel-items-content",style:{height:t},onTouchStart:function(e){return ie(e)},onTouchMove:function(e){return se(e)},onTouchEnd:function(e){return me(e)}},D("itemsContent")),l=i.mergeProps({className:a},D("container")),u=i.mergeProps({ref:V,className:"p-carousel-items-container",onTransitionEnd:ce},D("itemsContainer"));return f.createElement("div",l,r,f.createElement("div",o,f.createElement("div",u,e)),n)}(),Ee=function(){if(s.showIndicators){for(var e=i.classNames("p-carousel-indicators p-reset",s.indicatorsContentClassName),t=[],r=0;r<Q;r++)t.push(Pe(r));var n=i.mergeProps({className:e},D("indicators"));return f.createElement("ul",n,t)}return null}(),Oe=function(){if(s.header){var e=i.mergeProps({className:"p-carousel-header"},D("header"));return f.createElement("div",e,s.header)}return null}(),Ce=function(){if(s.footer){var e=i.mergeProps({className:"p-carousel-footer"},D("footer"));return f.createElement("div",e,s.footer)}return null}(),we=i.mergeProps({id:s.id,ref:M,className:Ne,style:s.style},j.getOtherProps(s),D("root")),je=i.mergeProps({className:Ie},D("content"));return f.createElement("div",we,Oe,f.createElement("div",je,Se,Ee),Ce)})));return x.displayName="CarouselItem",T.displayName="Carousel",e.Carousel=T,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.hooks,primereact.icons.chevrondown,primereact.icons.chevronleft,primereact.icons.chevronright,primereact.icons.chevronup,primereact.ripple,primereact.utils,primereact.componentbase);
|
|
@@ -6,12 +6,12 @@ var React = require('react');
|
|
|
6
6
|
var PrimeReact = require('primereact/api');
|
|
7
7
|
var csstransition = require('primereact/csstransition');
|
|
8
8
|
var hooks = require('primereact/hooks');
|
|
9
|
+
var chevrondown = require('primereact/icons/chevrondown');
|
|
9
10
|
var overlayservice = require('primereact/overlayservice');
|
|
10
11
|
var portal = require('primereact/portal');
|
|
11
12
|
var utils = require('primereact/utils');
|
|
12
13
|
var ripple = require('primereact/ripple');
|
|
13
14
|
var angleright = require('primereact/icons/angleright');
|
|
14
|
-
var chevrondown = require('primereact/icons/chevrondown');
|
|
15
15
|
|
|
16
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
17
|
|
|
@@ -109,36 +109,37 @@ function _slicedToArray(arr, i) {
|
|
|
109
109
|
var CascadeSelectBase = {
|
|
110
110
|
defaultProps: {
|
|
111
111
|
__TYPE: 'CascadeSelect',
|
|
112
|
+
appendTo: null,
|
|
113
|
+
ariaLabelledBy: null,
|
|
114
|
+
autoFocus: false,
|
|
115
|
+
breakpoint: undefined,
|
|
116
|
+
className: null,
|
|
117
|
+
dataKey: null,
|
|
118
|
+
disabled: false,
|
|
119
|
+
dropdownIcon: null,
|
|
112
120
|
id: null,
|
|
121
|
+
inputId: null,
|
|
113
122
|
inputRef: null,
|
|
114
|
-
|
|
115
|
-
className: null,
|
|
116
|
-
value: null,
|
|
123
|
+
itemTemplate: null,
|
|
117
124
|
name: null,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
125
|
+
onBeforeHide: null,
|
|
126
|
+
onBeforeShow: null,
|
|
127
|
+
onChange: null,
|
|
128
|
+
onGroupChange: null,
|
|
129
|
+
onHide: null,
|
|
130
|
+
onShow: null,
|
|
131
|
+
optionGroupChildren: null,
|
|
121
132
|
optionGroupIcon: null,
|
|
122
133
|
optionGroupLabel: null,
|
|
123
|
-
|
|
134
|
+
optionLabel: null,
|
|
135
|
+
optionValue: null,
|
|
136
|
+
options: null,
|
|
124
137
|
placeholder: null,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
dataKey: null,
|
|
128
|
-
breakpoint: undefined,
|
|
129
|
-
inputId: null,
|
|
138
|
+
scrollHeight: '400px',
|
|
139
|
+
style: null,
|
|
130
140
|
tabIndex: null,
|
|
131
|
-
ariaLabelledBy: null,
|
|
132
|
-
appendTo: null,
|
|
133
141
|
transitionOptions: null,
|
|
134
|
-
|
|
135
|
-
scrollHeight: '400px',
|
|
136
|
-
onChange: null,
|
|
137
|
-
onGroupChange: null,
|
|
138
|
-
onBeforeShow: null,
|
|
139
|
-
onBeforeHide: null,
|
|
140
|
-
onShow: null,
|
|
141
|
-
onHide: null,
|
|
142
|
+
value: null,
|
|
142
143
|
children: undefined
|
|
143
144
|
},
|
|
144
145
|
getProps: function getProps(props) {
|
|
@@ -576,6 +577,9 @@ var CascadeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__name
|
|
|
576
577
|
if (props.breakpoint) {
|
|
577
578
|
!attributeSelectorState && setAttributeSelectorState(utils.UniqueComponentId());
|
|
578
579
|
}
|
|
580
|
+
if (props.autoFocus) {
|
|
581
|
+
utils.DomHandler.focus(inputRef.current, props.autoFocus);
|
|
582
|
+
}
|
|
579
583
|
});
|
|
580
584
|
React__namespace.useEffect(function () {
|
|
581
585
|
utils.ObjectUtils.combinedRefs(inputRef, props.inputRef);
|