primereact 9.4.0 → 9.6.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/accordion/accordion.cjs.js +2 -1
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +3 -2
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +2 -1
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +215 -3
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +882 -8
- package/api/api.esm.js +210 -4
- package/api/api.esm.min.js +1 -1
- package/api/api.js +216 -5
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +148 -89
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +138 -2
- package/autocomplete/autocomplete.esm.js +150 -91
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +149 -91
- package/autocomplete/autocomplete.min.css +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +3 -1
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +1 -1
- package/avatar/avatar.esm.js +3 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +4 -3
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +3 -1
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +3 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +4 -3
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +3 -1
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +3 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +4 -3
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +4 -3
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +4 -3
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +5 -4
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +97 -52
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +53 -1
- package/breadcrumb/breadcrumb.esm.js +97 -52
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +96 -53
- package/breadcrumb/breadcrumb.min.css +1 -1
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +6 -2
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +6 -0
- package/button/button.esm.js +6 -2
- package/button/button.esm.min.js +1 -1
- package/button/button.js +7 -4
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +322 -223
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +272 -3
- package/calendar/calendar.esm.js +324 -225
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +323 -225
- package/calendar/calendar.min.js +1 -1
- package/card/card.cjs.js +3 -1
- package/card/card.cjs.min.js +1 -1
- package/card/card.d.ts +5 -11
- package/card/card.esm.js +3 -1
- package/card/card.esm.min.js +1 -1
- package/card/card.js +4 -3
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +154 -92
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +121 -1
- package/carousel/carousel.esm.js +156 -94
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +155 -94
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +181 -108
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +100 -1
- package/cascadeselect/cascadeselect.esm.js +183 -110
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +180 -108
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +31 -44
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.d.ts +30 -0
- package/chart/chart.esm.js +18 -31
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +141 -156
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +113 -48
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +65 -1
- package/checkbox/checkbox.esm.js +115 -50
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +113 -50
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +3 -1
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +1 -1
- package/chip/chip.esm.js +3 -1
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +4 -3
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +84 -55
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +78 -6
- package/chips/chips.esm.js +85 -56
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +83 -57
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +123 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +81 -0
- package/colorpicker/colorpicker.esm.js +125 -51
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +124 -51
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.cjs.js +2 -0
- package/column/column.d.ts +298 -1
- package/column/column.esm.js +2 -0
- package/column/column.js +2 -0
- package/columngroup/columngroup.d.ts +28 -0
- package/componentbase/componentbase.cjs.js +29 -5
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +25 -5
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +30 -7
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +4 -3
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +5 -4
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +4 -3
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +5 -4
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +6 -5
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +5 -4
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +121 -69
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +92 -1
- package/contextmenu/contextmenu.esm.js +123 -71
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +122 -71
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +14005 -2381
- package/core/core.min.js +47 -47
- package/csstransition/csstransition.cjs.js +3 -2
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +3 -2
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +4 -3
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +34 -43
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +51 -1
- package/datascroller/datascroller.esm.js +36 -45
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +35 -45
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +1089 -649
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +191 -3
- package/datatable/datatable.esm.js +1091 -651
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +1090 -651
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +125 -109
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +105 -2
- package/dataview/dataview.esm.js +127 -111
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +123 -108
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +3 -1
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +3 -1
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +4 -3
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +6 -5
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +7 -6
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +6 -5
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +3 -1
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +3 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +4 -3
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +85 -46
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +66 -0
- package/dock/dock.esm.js +86 -47
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +85 -48
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +170 -120
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +154 -2
- package/dropdown/dropdown.esm.js +172 -122
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +170 -121
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +95 -116
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +50 -0
- package/editor/editor.esm.js +96 -117
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +95 -118
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +3 -1
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +3 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +4 -3
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +234 -191
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +160 -1
- package/fileupload/fileupload.esm.js +235 -192
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +231 -188
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +139 -124
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +156 -2
- package/galleria/galleria.esm.js +141 -126
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +138 -124
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +10 -3
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +7 -3
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +11 -5
- package/hooks/hooks.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +415 -2
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +415 -2
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +415 -2
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +415 -2
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +415 -2
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +415 -2
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +415 -2
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +415 -2
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +415 -2
- package/icons/ban/index.min.js +1 -1
- package/icons/download/index.cjs.js +415 -2
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +415 -2
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +415 -2
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +415 -2
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +415 -2
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +415 -2
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +415 -2
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +415 -2
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +415 -2
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +415 -2
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +415 -2
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +415 -2
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +415 -2
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +415 -2
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +415 -2
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +415 -2
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +415 -2
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +415 -2
- package/icons/infocircle/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +415 -2
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +415 -2
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +415 -2
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +415 -2
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +415 -2
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +415 -2
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +415 -2
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +415 -2
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +415 -2
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +415 -2
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +415 -2
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +415 -2
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +415 -2
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +415 -2
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +415 -2
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +415 -2
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +415 -2
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +415 -2
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +415 -2
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +415 -2
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +415 -2
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +415 -2
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +415 -2
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +415 -2
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +415 -2
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +415 -2
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +415 -2
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +415 -2
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +415 -2
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +415 -2
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +415 -2
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +415 -2
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +415 -2
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +415 -2
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +415 -2
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +415 -2
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +415 -2
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +415 -2
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +415 -2
- package/icons/thlarge/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +415 -2
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +415 -2
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +415 -2
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +415 -2
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +415 -2
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +415 -2
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +415 -2
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +415 -2
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +415 -2
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +415 -2
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +415 -2
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +415 -2
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +415 -2
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +415 -2
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +415 -2
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +415 -2
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +415 -2
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +415 -2
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +480 -80
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +130 -3
- package/image/image.esm.js +483 -83
- package/image/image.esm.min.js +1 -1
- package/image/image.js +481 -82
- package/image/image.min.css +1 -1
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +2 -1
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +3 -2
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +2 -1
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +26 -26
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +7 -2
- package/inputmask/inputmask.esm.js +27 -27
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +26 -28
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +68 -48
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +62 -1
- package/inputnumber/inputnumber.esm.js +66 -49
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +68 -50
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +84 -25
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +61 -0
- package/inputswitch/inputswitch.esm.js +85 -26
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +83 -27
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +25 -15
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +32 -0
- package/inputtext/inputtext.esm.js +26 -16
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +25 -17
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +25 -15
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +33 -1
- package/inputtextarea/inputtextarea.esm.js +26 -16
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +25 -17
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +25 -9
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +25 -9
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +25 -11
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +44 -43
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +42 -0
- package/knob/knob.esm.js +45 -44
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +44 -45
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +86 -56
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +103 -3
- package/listbox/listbox.esm.js +88 -58
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +86 -57
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +151 -99
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +142 -2
- package/megamenu/megamenu.esm.js +152 -100
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +149 -98
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +87 -61
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +80 -1
- package/mention/mention.esm.js +89 -63
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +88 -63
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +99 -59
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +71 -0
- package/menu/menu.esm.js +101 -61
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +100 -61
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +122 -114
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +94 -1
- package/menubar/menubar.esm.js +124 -116
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +122 -115
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +69 -47
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +35 -2
- package/message/message.esm.js +70 -48
- package/message/message.esm.min.js +1 -1
- package/message/message.js +69 -49
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +65 -63
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +51 -2
- package/messages/messages.esm.js +66 -64
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +65 -64
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +249 -193
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +185 -3
- package/multiselect/multiselect.esm.js +252 -196
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +249 -194
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +47 -33
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +61 -2
- package/multistatecheckbox/multistatecheckbox.esm.js +49 -35
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +48 -35
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +188 -110
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +118 -2
- package/orderlist/orderlist.esm.js +190 -112
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +186 -109
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +139 -73
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +89 -2
- package/organizationchart/organizationchart.esm.js +140 -74
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +139 -75
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +7 -6
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +5 -0
- package/overlaypanel/overlaypanel.esm.js +8 -7
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +8 -7
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +172 -166
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +111 -5
- package/paginator/paginator.esm.js +174 -168
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +172 -167
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +3 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +3 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +4 -3
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +148 -84
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +124 -2
- package/panelmenu/panelmenu.esm.js +148 -84
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +146 -84
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +89 -46
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +98 -2
- package/password/password.esm.js +91 -48
- package/password/password.esm.min.js +1 -1
- package/password/password.js +88 -46
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +146 -82
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +133 -1
- package/picklist/picklist.esm.js +148 -84
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +143 -80
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +3 -2
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +3 -2
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +4 -3
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +6656 -4389
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +6655 -4390
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +6656 -4389
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +3 -1
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +3 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +4 -3
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +3 -1
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +3 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +4 -3
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +90 -30
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +66 -1
- package/radiobutton/radiobutton.esm.js +91 -31
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +89 -32
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +47 -36
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.d.ts +64 -1
- package/rating/rating.esm.js +48 -37
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +47 -38
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +475 -465
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +33 -8
- package/resources/themes/arya-green/theme.css +33 -8
- package/resources/themes/arya-orange/theme.css +33 -8
- package/resources/themes/arya-purple/theme.css +33 -8
- package/resources/themes/bootstrap4-dark-blue/theme.css +33 -8
- package/resources/themes/bootstrap4-dark-purple/theme.css +33 -8
- package/resources/themes/bootstrap4-light-blue/theme.css +33 -8
- package/resources/themes/bootstrap4-light-purple/theme.css +33 -8
- package/resources/themes/fluent-light/theme.css +33 -8
- package/resources/themes/lara-dark-blue/theme.css +33 -8
- package/resources/themes/lara-dark-indigo/theme.css +33 -8
- package/resources/themes/lara-dark-purple/theme.css +33 -8
- package/resources/themes/lara-dark-teal/theme.css +33 -8
- package/resources/themes/lara-light-blue/theme.css +33 -8
- package/resources/themes/lara-light-indigo/theme.css +33 -8
- package/resources/themes/lara-light-purple/theme.css +33 -8
- package/resources/themes/lara-light-teal/theme.css +33 -8
- package/resources/themes/luna-amber/theme.css +33 -8
- package/resources/themes/luna-blue/theme.css +33 -8
- package/resources/themes/luna-green/theme.css +33 -8
- package/resources/themes/luna-pink/theme.css +33 -8
- package/resources/themes/md-dark-deeppurple/theme.css +33 -8
- package/resources/themes/md-dark-indigo/theme.css +33 -8
- package/resources/themes/md-light-deeppurple/theme.css +33 -8
- package/resources/themes/md-light-indigo/theme.css +33 -8
- package/resources/themes/mdc-dark-deeppurple/theme.css +33 -8
- package/resources/themes/mdc-dark-indigo/theme.css +33 -8
- package/resources/themes/mdc-light-deeppurple/theme.css +33 -8
- package/resources/themes/mdc-light-indigo/theme.css +33 -8
- package/resources/themes/mira/theme.css +33 -8
- package/resources/themes/nano/theme.css +33 -8
- package/resources/themes/nova/theme.css +33 -8
- package/resources/themes/nova-accent/theme.css +33 -8
- package/resources/themes/nova-alt/theme.css +33 -8
- package/resources/themes/rhea/theme.css +33 -8
- package/resources/themes/saga-blue/theme.css +33 -8
- package/resources/themes/saga-green/theme.css +33 -8
- package/resources/themes/saga-orange/theme.css +33 -8
- package/resources/themes/saga-purple/theme.css +33 -8
- package/resources/themes/soho-dark/theme.css +33 -8
- package/resources/themes/soho-light/theme.css +33 -8
- package/resources/themes/tailwind-light/theme.css +45 -20
- package/resources/themes/vela-blue/theme.css +33 -8
- package/resources/themes/vela-green/theme.css +33 -8
- package/resources/themes/vela-orange/theme.css +33 -8
- package/resources/themes/vela-purple/theme.css +33 -8
- package/resources/themes/viva-dark/theme.css +33 -8
- package/resources/themes/viva-light/theme.css +33 -8
- package/ripple/ripple.cjs.js +3 -2
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +3 -2
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +4 -3
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +28 -41
- package/row/row.cjs.min.js +1 -1
- package/row/row.d.ts +28 -0
- package/row/row.esm.js +15 -28
- package/row/row.esm.min.js +1 -1
- package/row/row.js +49 -64
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +3 -1
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +3 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +4 -3
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +9 -7
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +11 -9
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +10 -8
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +37 -25
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +52 -1
- package/selectbutton/selectbutton.esm.js +38 -26
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +37 -27
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +7 -6
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +8 -7
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +8 -7
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +4 -3
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +4 -3
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +5 -5
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +125 -114
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +103 -1
- package/slidemenu/slidemenu.esm.js +127 -116
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +125 -115
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +71 -39
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.d.ts +34 -1
- package/slider/slider.esm.js +72 -40
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +71 -41
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +3 -1
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +3 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +4 -3
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +74 -63
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +39 -11
- package/splitbutton/splitbutton.esm.js +76 -65
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +74 -63
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +3 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +10 -0
- package/splitter/splitter.esm.js +3 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +4 -3
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +81 -46
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +50 -0
- package/steps/steps.esm.js +82 -47
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +81 -48
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +3 -1
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +3 -1
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +4 -3
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +86 -48
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +62 -0
- package/tabmenu/tabmenu.esm.js +87 -49
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +86 -50
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +8 -5
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +9 -6
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +7 -4
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +3 -1
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +3 -1
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +4 -3
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +3 -1
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +3 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +4 -3
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +110 -64
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +83 -2
- package/tieredmenu/tieredmenu.esm.js +112 -66
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +111 -66
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +51 -43
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +51 -1
- package/timeline/timeline.esm.js +52 -44
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +51 -45
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +118 -75
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +122 -4
- package/toast/toast.esm.js +120 -77
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +116 -74
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +74 -21
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +40 -2
- package/togglebutton/togglebutton.esm.js +75 -22
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +73 -23
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +3 -1
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +5 -11
- package/toolbar/toolbar.esm.js +3 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +4 -3
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +3 -2
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +7 -7
- package/tooltip/tooltip.esm.js +4 -3
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +3 -2
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +118 -88
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +139 -1
- package/tree/tree.esm.js +120 -90
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +116 -87
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +135 -102
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +143 -2
- package/treeselect/treeselect.esm.js +137 -104
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +136 -104
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +385 -198
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +305 -2
- package/treetable/treetable.esm.js +387 -200
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +383 -197
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +97 -40
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +64 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +99 -42
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +97 -42
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +31 -5
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.esm.js +28 -5
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +32 -7
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +43 -29
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +78 -1
- package/virtualscroller/virtualscroller.esm.js +44 -30
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +43 -31
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +1 -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, chevrondown, chevronleft, chevronright, chevronup, ripple, utils) {
|
|
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, chevron
|
|
|
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, chevron
|
|
|
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, chevron
|
|
|
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,12 +176,15 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
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
|
-
var
|
|
186
|
+
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
187
|
+
var props = CarouselBase.getProps(inProps, context);
|
|
163
188
|
var _React$useState = React__namespace.useState(props.numVisible),
|
|
164
189
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
165
190
|
numVisibleState = _React$useState2[0],
|
|
@@ -176,6 +201,16 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
176
201
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
177
202
|
pageState = _React$useState8[0],
|
|
178
203
|
setPageState = _React$useState8[1];
|
|
204
|
+
var _CarouselBase$setMeta = CarouselBase.setMetaData({
|
|
205
|
+
props: props,
|
|
206
|
+
state: {
|
|
207
|
+
numVisible: numVisibleState,
|
|
208
|
+
numScroll: numScrollState,
|
|
209
|
+
totalShiftedItems: totalShiftedItemsState,
|
|
210
|
+
page: pageState
|
|
211
|
+
}
|
|
212
|
+
}),
|
|
213
|
+
ptm = _CarouselBase$setMeta.ptm;
|
|
179
214
|
var elementRef = React__namespace.useRef(null);
|
|
180
215
|
var itemsContainerRef = React__namespace.useRef(null);
|
|
181
216
|
var remainingItems = React__namespace.useRef(0);
|
|
@@ -303,19 +338,19 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
303
338
|
}
|
|
304
339
|
}
|
|
305
340
|
};
|
|
306
|
-
var
|
|
341
|
+
var _onTouchStart = function onTouchStart(e) {
|
|
307
342
|
var touchobj = e.changedTouches[0];
|
|
308
343
|
startPos.current = {
|
|
309
344
|
x: touchobj.pageX,
|
|
310
345
|
y: touchobj.pageY
|
|
311
346
|
};
|
|
312
347
|
};
|
|
313
|
-
var
|
|
348
|
+
var _onTouchMove = function onTouchMove(e) {
|
|
314
349
|
if (e.cancelable) {
|
|
315
350
|
e.preventDefault();
|
|
316
351
|
}
|
|
317
352
|
};
|
|
318
|
-
var
|
|
353
|
+
var _onTouchEnd = function onTouchEnd(e) {
|
|
319
354
|
var touchobj = e.changedTouches[0];
|
|
320
355
|
if (isVertical) {
|
|
321
356
|
changePageOnTouch(e, touchobj.pageY - startPos.current.y);
|
|
@@ -335,13 +370,15 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
335
370
|
}
|
|
336
371
|
};
|
|
337
372
|
var startAutoplay = function startAutoplay() {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
373
|
+
if (props.autoplayInterval > 0) {
|
|
374
|
+
interval.current = setInterval(function () {
|
|
375
|
+
if (pageState === totalIndicators - 1) {
|
|
376
|
+
step(-1, 0);
|
|
377
|
+
} else {
|
|
378
|
+
step(-1, pageState + 1);
|
|
379
|
+
}
|
|
380
|
+
}, props.autoplayInterval);
|
|
381
|
+
}
|
|
345
382
|
};
|
|
346
383
|
var stopAutoplay = function stopAutoplay() {
|
|
347
384
|
if (interval.current) {
|
|
@@ -350,7 +387,7 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
350
387
|
};
|
|
351
388
|
var createStyle = function createStyle() {
|
|
352
389
|
if (!carouselStyle.current) {
|
|
353
|
-
carouselStyle.current = utils.DomHandler.createInlineStyle(PrimeReact__default["default"].nonce);
|
|
390
|
+
carouselStyle.current = utils.DomHandler.createInlineStyle(context && context.nonce || PrimeReact__default["default"].nonce);
|
|
354
391
|
}
|
|
355
392
|
var innerHTML = "\n .p-carousel[".concat(attributeSelector.current, "] .p-carousel-item {\n flex: 1 0 ").concat(100 / numVisibleState, "%\n }\n ");
|
|
356
393
|
if (props.responsiveOptions) {
|
|
@@ -358,7 +395,7 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
358
395
|
responsiveOptions.current.sort(function (data1, data2) {
|
|
359
396
|
var value1 = data1.breakpoint;
|
|
360
397
|
var value2 = data2.breakpoint;
|
|
361
|
-
return utils.ObjectUtils.sort(value1, value2, -1, PrimeReact__default["default"].locale, PrimeReact__default["default"].nullSortOrder);
|
|
398
|
+
return utils.ObjectUtils.sort(value1, value2, -1, context && context.locale || PrimeReact__default["default"].locale, context && context.nullSortOrder || PrimeReact__default["default"].nullSortOrder);
|
|
362
399
|
});
|
|
363
400
|
for (var i = 0; i < responsiveOptions.current.length; i++) {
|
|
364
401
|
var res = responsiveOptions.current[i];
|
|
@@ -367,6 +404,9 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
367
404
|
}
|
|
368
405
|
carouselStyle.current.innerHTML = innerHTML;
|
|
369
406
|
};
|
|
407
|
+
var destroyStyle = function destroyStyle() {
|
|
408
|
+
carouselStyle.current = utils.DomHandler.removeInlineStyle(carouselStyle.current);
|
|
409
|
+
};
|
|
370
410
|
var changePosition = function changePosition(totalShiftedItems) {
|
|
371
411
|
if (itemsContainerRef.current) {
|
|
372
412
|
itemsContainerRef.current.style.transform = isVertical ? "translate3d(0, ".concat(totalShiftedItems * (100 / numVisibleState), "%, 0)") : "translate3d(".concat(totalShiftedItems * (100 / numVisibleState), "%, 0, 0)");
|
|
@@ -381,6 +421,8 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
381
421
|
React__namespace.useImperativeHandle(ref, function () {
|
|
382
422
|
return {
|
|
383
423
|
props: props,
|
|
424
|
+
startAutoplay: startAutoplay,
|
|
425
|
+
stopAutoplay: stopAutoplay,
|
|
384
426
|
getElement: function getElement() {
|
|
385
427
|
return elementRef.current;
|
|
386
428
|
}
|
|
@@ -455,6 +497,7 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
455
497
|
if (props.autoplayInterval) {
|
|
456
498
|
stopAutoplay();
|
|
457
499
|
}
|
|
500
|
+
destroyStyle();
|
|
458
501
|
});
|
|
459
502
|
var createItems = function createItems() {
|
|
460
503
|
if (props.value && props.value.length) {
|
|
@@ -475,7 +518,8 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
475
518
|
item: item,
|
|
476
519
|
active: isActive,
|
|
477
520
|
start: start,
|
|
478
|
-
end: end
|
|
521
|
+
end: end,
|
|
522
|
+
ptm: ptm
|
|
479
523
|
});
|
|
480
524
|
});
|
|
481
525
|
clonedElements = props.value.slice(0, numVisibleState);
|
|
@@ -491,7 +535,8 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
491
535
|
item: item,
|
|
492
536
|
active: isActive,
|
|
493
537
|
start: start,
|
|
494
|
-
end: end
|
|
538
|
+
end: end,
|
|
539
|
+
ptm: ptm
|
|
495
540
|
});
|
|
496
541
|
});
|
|
497
542
|
}
|
|
@@ -507,7 +552,8 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
507
552
|
item: item,
|
|
508
553
|
active: isActive,
|
|
509
554
|
start: start,
|
|
510
|
-
end: end
|
|
555
|
+
end: end,
|
|
556
|
+
ptm: ptm
|
|
511
557
|
});
|
|
512
558
|
});
|
|
513
559
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, clonedItemsForStarting, items, clonedItemsForFinishing);
|
|
@@ -515,17 +561,19 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
515
561
|
};
|
|
516
562
|
var createHeader = function createHeader() {
|
|
517
563
|
if (props.header) {
|
|
518
|
-
|
|
519
|
-
className:
|
|
520
|
-
},
|
|
564
|
+
var headerProps = utils.mergeProps({
|
|
565
|
+
className: 'p-carousel-header'
|
|
566
|
+
}, ptm('header'));
|
|
567
|
+
return /*#__PURE__*/React__namespace.createElement("div", headerProps, props.header);
|
|
521
568
|
}
|
|
522
569
|
return null;
|
|
523
570
|
};
|
|
524
571
|
var createFooter = function createFooter() {
|
|
525
572
|
if (props.footer) {
|
|
526
|
-
|
|
527
|
-
className:
|
|
528
|
-
},
|
|
573
|
+
var footerProps = utils.mergeProps({
|
|
574
|
+
className: 'p-carousel-footer'
|
|
575
|
+
}, ptm('footer'));
|
|
576
|
+
return /*#__PURE__*/React__namespace.createElement("div", footerProps, props.footer);
|
|
529
577
|
}
|
|
530
578
|
return null;
|
|
531
579
|
};
|
|
@@ -535,21 +583,30 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
535
583
|
var backwardNavigator = createBackwardNavigator();
|
|
536
584
|
var forwardNavigator = createForwardNavigator();
|
|
537
585
|
var className = utils.classNames('p-carousel-container', props.containerClassName);
|
|
538
|
-
|
|
539
|
-
className:
|
|
540
|
-
}, backwardNavigator, /*#__PURE__*/React__namespace.createElement("div", {
|
|
541
|
-
className: "p-carousel-items-content",
|
|
586
|
+
var itemsContentProps = utils.mergeProps({
|
|
587
|
+
className: 'p-carousel-items-content',
|
|
542
588
|
style: {
|
|
543
589
|
height: height
|
|
544
590
|
},
|
|
545
|
-
onTouchStart: onTouchStart
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
591
|
+
onTouchStart: function onTouchStart(e) {
|
|
592
|
+
return _onTouchStart(e);
|
|
593
|
+
},
|
|
594
|
+
onTouchMove: function onTouchMove(e) {
|
|
595
|
+
return _onTouchMove(e);
|
|
596
|
+
},
|
|
597
|
+
onTouchEnd: function onTouchEnd(e) {
|
|
598
|
+
return _onTouchEnd(e);
|
|
599
|
+
}
|
|
600
|
+
}, ptm('itemsContent'));
|
|
601
|
+
var containerProps = utils.mergeProps({
|
|
602
|
+
className: className
|
|
603
|
+
}, ptm('container'));
|
|
604
|
+
var itemsContainerProps = utils.mergeProps({
|
|
549
605
|
ref: itemsContainerRef,
|
|
550
|
-
className:
|
|
606
|
+
className: 'p-carousel-items-container',
|
|
551
607
|
onTransitionEnd: onTransitionEnd
|
|
552
|
-
},
|
|
608
|
+
}, ptm('itemsContainer'));
|
|
609
|
+
return /*#__PURE__*/React__namespace.createElement("div", containerProps, backwardNavigator, /*#__PURE__*/React__namespace.createElement("div", itemsContentProps, /*#__PURE__*/React__namespace.createElement("div", itemsContainerProps, items)), forwardNavigator);
|
|
553
610
|
};
|
|
554
611
|
var createBackwardNavigator = function createBackwardNavigator() {
|
|
555
612
|
if (props.showNavigators) {
|
|
@@ -558,23 +615,23 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
558
615
|
'p-disabled': isDisabled
|
|
559
616
|
});
|
|
560
617
|
var iconClassName = 'p-carousel-prev-icon';
|
|
561
|
-
var
|
|
618
|
+
var previousButtonIconProps = utils.mergeProps({
|
|
562
619
|
className: iconClassName
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
})
|
|
566
|
-
var backwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
567
|
-
className: _className
|
|
568
|
-
}, {
|
|
620
|
+
}, ptm('previousButtonIcon'));
|
|
621
|
+
var icon = isVertical ? props.prevIcon || /*#__PURE__*/React__namespace.createElement(chevronup.ChevronUpIcon, previousButtonIconProps) : props.prevIcon || /*#__PURE__*/React__namespace.createElement(chevronleft.ChevronLeftIcon, previousButtonIconProps);
|
|
622
|
+
var backwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, previousButtonIconProps), {
|
|
569
623
|
props: props
|
|
570
624
|
});
|
|
571
|
-
|
|
572
|
-
type:
|
|
625
|
+
var previousButtonProps = utils.mergeProps({
|
|
626
|
+
type: 'button',
|
|
573
627
|
className: _className,
|
|
574
|
-
onClick:
|
|
628
|
+
onClick: function onClick(e) {
|
|
629
|
+
return navBackward(e);
|
|
630
|
+
},
|
|
575
631
|
disabled: isDisabled,
|
|
576
|
-
|
|
577
|
-
},
|
|
632
|
+
'aria-label': PrimeReact.ariaLabel('previousPageLabel')
|
|
633
|
+
}, ptm('previousButton'));
|
|
634
|
+
return /*#__PURE__*/React__namespace.createElement("button", previousButtonProps, backwardNavigatorIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
578
635
|
}
|
|
579
636
|
return null;
|
|
580
637
|
};
|
|
@@ -585,23 +642,23 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
585
642
|
'p-disabled': isDisabled
|
|
586
643
|
});
|
|
587
644
|
var iconClassName = 'p-carousel-next-icon';
|
|
588
|
-
var
|
|
645
|
+
var nextButtonIconProps = utils.mergeProps({
|
|
589
646
|
className: iconClassName
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
})
|
|
593
|
-
var forwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
594
|
-
className: _className2
|
|
595
|
-
}, {
|
|
647
|
+
}, ptm('nextButtonIcon'));
|
|
648
|
+
var icon = isVertical ? props.nextIcon || /*#__PURE__*/React__namespace.createElement(chevrondown.ChevronDownIcon, nextButtonIconProps) : props.nextIcon || /*#__PURE__*/React__namespace.createElement(chevronright.ChevronRightIcon, nextButtonIconProps);
|
|
649
|
+
var forwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, nextButtonIconProps), {
|
|
596
650
|
props: props
|
|
597
651
|
});
|
|
598
|
-
|
|
599
|
-
type:
|
|
652
|
+
var nextButtonProps = utils.mergeProps({
|
|
653
|
+
type: 'button',
|
|
600
654
|
className: _className2,
|
|
601
|
-
onClick:
|
|
655
|
+
onClick: function onClick(e) {
|
|
656
|
+
return navForward(e);
|
|
657
|
+
},
|
|
602
658
|
disabled: isDisabled,
|
|
603
|
-
|
|
604
|
-
},
|
|
659
|
+
'aria-label': PrimeReact.ariaLabel('nextPageLabel')
|
|
660
|
+
}, ptm('nextButton'));
|
|
661
|
+
return /*#__PURE__*/React__namespace.createElement("button", nextButtonProps, forwardNavigatorIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
605
662
|
}
|
|
606
663
|
return null;
|
|
607
664
|
};
|
|
@@ -611,17 +668,19 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
611
668
|
var className = utils.classNames('p-carousel-indicator', {
|
|
612
669
|
'p-highlight': isActive
|
|
613
670
|
});
|
|
614
|
-
|
|
671
|
+
var indicatorProps = utils.mergeProps({
|
|
615
672
|
key: key,
|
|
616
673
|
className: className
|
|
617
|
-
},
|
|
618
|
-
|
|
619
|
-
|
|
674
|
+
}, ptm('indicator'));
|
|
675
|
+
var indicatorButtonProps = utils.mergeProps({
|
|
676
|
+
type: 'button',
|
|
677
|
+
className: 'p-link',
|
|
620
678
|
onClick: function onClick(e) {
|
|
621
679
|
return onDotClick(e, index);
|
|
622
680
|
},
|
|
623
|
-
|
|
624
|
-
},
|
|
681
|
+
'aria-label': "".concat(PrimeReact.ariaLabel('pageLabel'), " ").concat(index + 1)
|
|
682
|
+
}, ptm('indicatorButton'));
|
|
683
|
+
return /*#__PURE__*/React__namespace.createElement("li", indicatorProps, /*#__PURE__*/React__namespace.createElement("button", indicatorButtonProps, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)));
|
|
625
684
|
};
|
|
626
685
|
var createIndicators = function createIndicators() {
|
|
627
686
|
if (props.showIndicators) {
|
|
@@ -630,13 +689,13 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
630
689
|
for (var i = 0; i < totalIndicators; i++) {
|
|
631
690
|
_indicators.push(createIndicator(i));
|
|
632
691
|
}
|
|
633
|
-
|
|
692
|
+
var indicatorsProps = utils.mergeProps({
|
|
634
693
|
className: _className3
|
|
635
|
-
},
|
|
694
|
+
}, ptm('indicators'));
|
|
695
|
+
return /*#__PURE__*/React__namespace.createElement("ul", indicatorsProps, _indicators);
|
|
636
696
|
}
|
|
637
697
|
return null;
|
|
638
698
|
};
|
|
639
|
-
var otherProps = CarouselBase.getOtherProps(props);
|
|
640
699
|
var className = utils.classNames('p-carousel p-component', {
|
|
641
700
|
'p-carousel-vertical': isVertical,
|
|
642
701
|
'p-carousel-horizontal': !isVertical
|
|
@@ -646,14 +705,16 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
646
705
|
var indicators = createIndicators();
|
|
647
706
|
var header = createHeader();
|
|
648
707
|
var footer = createFooter();
|
|
649
|
-
|
|
650
|
-
ref: elementRef,
|
|
708
|
+
var rootProps = utils.mergeProps({
|
|
651
709
|
id: props.id,
|
|
710
|
+
ref: elementRef,
|
|
652
711
|
className: className,
|
|
653
712
|
style: props.style
|
|
654
|
-
},
|
|
713
|
+
}, CarouselBase.getOtherProps(props), ptm('root'));
|
|
714
|
+
var contentProps = utils.mergeProps({
|
|
655
715
|
className: contentClassName
|
|
656
|
-
}, content
|
|
716
|
+
}, ptm('content'));
|
|
717
|
+
return /*#__PURE__*/React__namespace.createElement("div", rootProps, header, /*#__PURE__*/React__namespace.createElement("div", contentProps, content, indicators), footer);
|
|
657
718
|
}));
|
|
658
719
|
CarouselItem.displayName = 'CarouselItem';
|
|
659
720
|
Carousel.displayName = 'Carousel';
|
|
@@ -664,4 +725,4 @@ this.primereact.carousel = (function (exports, React, PrimeReact, hooks, chevron
|
|
|
664
725
|
|
|
665
726
|
return exports;
|
|
666
727
|
|
|
667
|
-
})({}, React, primereact.api, primereact.hooks, primereact.icons.chevrondown, primereact.icons.chevronleft, primereact.icons.chevronright, primereact.icons.chevronup, primereact.ripple, primereact.utils);
|
|
728
|
+
})({}, 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,u,o,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,u=[],o=!0,i=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;o=!1}else for(;!(o=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{if(!o&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(i)throw a}}return u}}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 i.ObjectUtils.getMergedProps(e,P.defaultProps)},getOtherProps:function(e){return i.ObjectUtils.getDiffProps(e,P.defaultProps)}},S=m.memo((function(e){var t=e.template(e.item),n=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});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.value?Math.max(Math.ceil((s.value.length-d)/E)+1,0):0,Q=K&&s.autoplayInterval&&V.current,Z=s.onPageChange&&!Q,ee=Z?s.page:x,te=C(r.useResizeListener({listener:function(){re()},when:s.responsiveOptions}),1)[0],ne=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===K-1&&-1===e?(n=-1*(s.value.length+d),t=0):G&&0===x&&1===e?(n=0,t=K-1):t===K-1&&U.current>0&&(n+=-1*U.current-E*e,X.current=!0),A.current&&(i.DomHandler.removeClass(A.current,"p-items-hidden"),ve(n),A.current.style.transition="transform 500ms ease 0s"),de(t),R(n)},re=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(ee*E/t.numScroll),l=t.numScroll*a*-1;G&&(l-=t.numVisible),R(l),O(t.numScroll),de(a)}d!==t.numVisible&&N(t.numVisible)}},ae=function(e,t){(B||0!==ee)&&ne(1,t),V.current=!1,e.cancelable&&e.preventDefault()},le=function(e,t){(B||ee<K-1)&&ne(-1,t),V.current=!1,e.cancelable&&e.preventDefault()},ce=function(e,t){t>ee?le(e,t):t<ee&&ae(e,t)},ue=function(e){A.current&&"transform"===e.propertyName&&(i.DomHandler.addClass(A.current,"p-items-hidden"),A.current.style.transition="",0!==x&&x!==K-1||!G||ve(j))},oe=function(e){var t=e.changedTouches[0];_.current={x:t.pageX,y:t.pageY}},ie=function(e){e.cancelable&&e.preventDefault()},se=function(e){var t=e.changedTouches[0];pe(e,$?t.pageY-_.current.y:t.pageX-_.current.x)},pe=function(e,t){Math.abs(t)>L&&(t<0?le(e):ae(e))},me=function(){H.current&&clearInterval(H.current)},fe=function(){z.current||(z.current=i.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 i.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},ve=function(e){A.current&&(A.current.style.transform=$?"translate3d(0, ".concat(e*(100/d),"%, 0)"):"translate3d(".concat(e*(100/d),"%, 0, 0)"))},de=function(e){!Z&&T(e),s.onPageChange&&s.onPageChange({page:e})};m.useImperativeHandle(t,(function(){return{props:s,getElement:function(){return M.current}}})),r.useMountEffect((function(){M.current&&(D.current=i.UniqueComponentId(),M.current.setAttribute(D.current,"")),fe(),re(),ve(j),te()})),r.useUpdateEffect((function(){var e=!1,t=j;if(s.autoplayInterval&&me(),J!==E||q!==d||s.value&&F&&F.length!==s.value.length){U.current=(s.value.length-d)%E;var n=ee;0!==K&&n>=K&&(de(n=K-1),e=!0),t=n*E*-1,G&&(t-=d),n===K-1&&U.current>0?(t+=-1*U.current+E,X.current=!0):X.current=!1,t!==j&&(R(t),e=!0),ve(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<=K-1?ne(-1,s.page):s.page<W&&ne(1,s.page)),!e&&Q&&(H.current=setInterval((function(){ne(-1,x===K-1?0:x+1)}),s.autoplayInterval))})),r.useUnmountEffect((function(){s.autoplayInterval&&me()}));var he=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)}},ge=function(){if(s.showNavigators){var e=(!B||s.value&&s.value.length<d)&&0===ee,t=i.classNames("p-carousel-prev p-link",{"p-disabled":e}),r="p-carousel-prev-icon",a=i.IconUtils.getJSXIcon($?s.prevIcon||m.createElement(u.ChevronUpIcon,{className:r}):s.prevIcon||m.createElement(l.ChevronLeftIcon,{className:r}),{className:t},{props:s});return m.createElement("button",{type:"button",className:t,onClick:ae,disabled:e,"aria-label":n.ariaLabel("previousPageLabel")},a,m.createElement(o.Ripple,null))}return null},be=function(){if(s.showNavigators){var e=(!B||s.value&&s.value.length<d)&&(ee===K-1||0===K),t=i.classNames("p-carousel-next p-link",{"p-disabled":e}),r="p-carousel-next-icon",l=i.IconUtils.getJSXIcon($?s.nextIcon||m.createElement(a.ChevronDownIcon,{className:r}):s.nextIcon||m.createElement(c.ChevronRightIcon,{className:r}),{className:t},{props:s});return m.createElement("button",{type:"button",className:t,onClick:le,disabled:e,"aria-label":n.ariaLabel("nextPageLabel")},l,m.createElement(o.Ripple,null))}return null},ye=function(e){var t="carousel-indicator-"+e,r=i.classNames("p-carousel-indicator",{"p-highlight":ee===e});return m.createElement("li",{key:t,className:r},m.createElement("button",{type:"button",className:"p-link",onClick:function(t){return ce(t,e)},"aria-label":"".concat(n.ariaLabel("pageLabel")," ").concat(e+1)},m.createElement(o.Ripple,null)))},Ne=P.getOtherProps(s),Ie=i.classNames("p-carousel p-component",{"p-carousel-vertical":$,"p-carousel-horizontal":!$},s.className),Ee=i.classNames("p-carousel-content",s.contentClassName),Ce=function(){var e=he(),t=$?s.verticalViewPortHeight:"auto",n=ge(),r=be(),a=i.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:ie,onTouchEnd:se},m.createElement("div",{ref:A,className:"p-carousel-items-container",onTransitionEnd:ue},e)),r)}(),Pe=function(){if(s.showIndicators){for(var e=i.classNames("p-carousel-indicators p-reset",s.indicatorsContentClassName),t=[],n=0;n<K;n++)t.push(ye(n));return m.createElement("ul",{className:e},t)}return null}(),Se=s.header?m.createElement("div",{className:"p-carousel-header"},s.header):null,Oe=s.footer?m.createElement("div",{className:"p-carousel-footer"},s.footer):null;return m.createElement("div",v({ref:M,id:s.id,className:Ie,style:s.style},Ne),Se,m.createElement("div",{className:Ee},Ce,Pe),Oe)})));return S.displayName="CarouselItem",O.displayName="Carousel",e.Carousel=O,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);
|
|
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 x(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 R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var k=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=f.useContext(r.PrimeReactContext),m=j.getProps(e,s),p=w(f.useState(m.numVisible),2),d=p[0],g=p[1],b=w(f.useState(m.numScroll),2),h=b[0],y=b[1],E=w(f.useState(m.page*m.numScroll*-1),2),O=E[0],C=E[1],x=w(f.useState(m.page),2),T=x[0],D=x[1],M=j.setMetaData({props:m,state:{numVisible:d,numScroll:h,totalShiftedItems:O,page:T}}).ptm,A=f.useRef(null),V=f.useRef(null),L=f.useRef(0),H=f.useRef(!!m.autoplayInterval),U=f.useRef(""),_=f.useRef(20),B=f.useRef(null),z=f.useRef(null),X=f.useRef(null),Y=f.useRef(!1),J=f.useRef(null),q=n.usePrevious(h),F=n.usePrevious(d),W=n.usePrevious(m.value),$=n.usePrevious(m.page),G="vertical"===m.orientation,K=m.circular||!!m.autoplayInterval,Q=K&&m.value&&m.value.length>=d,Z=m.value?Math.max(Math.ceil((m.value.length-d)/h)+1,0):0,ee=Z&&m.autoplayInterval&&H.current,te=m.onPageChange&&!ee,re=te?m.page:T,ne=w(n.useResizeListener({listener:function(){oe()},when:m.responsiveOptions}),1)[0],ae=function(e,t){var r=O;null!=t?(r=h*t*-1,Q&&(r-=d),Y.current=!1):(r+=h*e,Y.current&&(r+=L.current-h*e,Y.current=!1),t=Math.abs(Math.floor((Q?r+d:r)/h)));Q&&T===Z-1&&-1===e?(r=-1*(m.value.length+d),t=0):Q&&0===T&&1===e?(r=0,t=Z-1):t===Z-1&&L.current>0&&(r+=-1*L.current-h*e,Y.current=!0),V.current&&(i.DomHandler.removeClass(V.current,"p-items-hidden"),be(r),V.current.style.transition="transform 500ms ease 0s"),he(t),C(r)},oe=function(){if(V.current&&J.current){for(var e=window.innerWidth,t={numVisible:m.numVisible,numScroll:m.numScroll},r=0;r<J.current.length;r++){var n=J.current[r];parseInt(n.breakpoint,10)>=e&&(t=n)}if(h!==t.numScroll){var a=Math.floor(re*h/t.numScroll),o=t.numScroll*a*-1;Q&&(o-=t.numVisible),C(o),y(t.numScroll),he(a)}d!==t.numVisible&&g(t.numVisible)}},le=function(e,t){(K||0!==re)&&ae(1,t),H.current=!1,e.cancelable&&e.preventDefault()},ue=function(e,t){(K||re<Z-1)&&ae(-1,t),H.current=!1,e.cancelable&&e.preventDefault()},ce=function(e,t){t>re?ue(e,t):t<re&&le(e,t)},ie=function(e){V.current&&"transform"===e.propertyName&&(i.DomHandler.addClass(V.current,"p-items-hidden"),V.current.style.transition="",0!==T&&T!==Z-1||!Q||be(O))},se=function(e){var t=e.changedTouches[0];B.current={x:t.pageX,y:t.pageY}},me=function(e){e.cancelable&&e.preventDefault()},pe=function(e){var t=e.changedTouches[0];fe(e,G?t.pageY-B.current.y:t.pageX-B.current.x)},fe=function(e,t){Math.abs(t)>_&&(t<0?ue(e):le(e))},ve=function(){m.autoplayInterval>0&&(z.current=setInterval((function(){ae(-1,T===Z-1?0:T+1)}),m.autoplayInterval))},de=function(){z.current&&clearInterval(z.current)},ge=function(){X.current||(X.current=i.DomHandler.createInlineStyle(s&&s.nonce||v.default.nonce));var e,t="\n .p-carousel[".concat(U.current,"] .p-carousel-item {\n flex: 1 0 ").concat(100/d,"%\n }\n ");if(m.responsiveOptions){J.current=P(e=m.responsiveOptions)||N(e)||I(e)||S(),J.current.sort((function(e,t){return i.ObjectUtils.sort(e.breakpoint,t.breakpoint,-1,s&&s.locale||v.default.locale,s&&s.nullSortOrder||v.default.nullSortOrder)}));for(var r=0;r<J.current.length;r++){var n=J.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 ")}}X.current.innerHTML=t},be=function(e){V.current&&(V.current.style.transform=G?"translate3d(0, ".concat(e*(100/d),"%, 0)"):"translate3d(".concat(e*(100/d),"%, 0, 0)"))},he=function(e){!te&&D(e),m.onPageChange&&m.onPageChange({page:e})};f.useImperativeHandle(t,(function(){return{props:m,startAutoplay:ve,stopAutoplay:de,getElement:function(){return A.current}}})),n.useMountEffect((function(){A.current&&(U.current=i.UniqueComponentId(),A.current.setAttribute(U.current,"")),ge(),oe(),be(O),ne()})),n.useUpdateEffect((function(){var e=!1,t=O;if(m.autoplayInterval&&de(),q!==h||F!==d||m.value&&W&&W.length!==m.value.length){L.current=(m.value.length-d)%h;var r=re;0!==Z&&r>=Z&&(he(r=Z-1),e=!0),t=r*h*-1,Q&&(t-=d),r===Z-1&&L.current>0?(t+=-1*L.current+h,Y.current=!0):Y.current=!1,t!==O&&(C(t),e=!0),be(t)}Q&&(0===T?t=-1*d:0===t&&(t=-1*m.value.length,L.current>0&&(Y.current=!0)),t!==O&&(C(t),e=!0)),$!==m.page&&(m.page>$&&m.page<=Z-1?ae(-1,m.page):m.page<$&&ae(1,m.page)),!e&&ee&&ve()})),n.useUnmountEffect((function(){m.autoplayInterval&&de(),X.current=i.DomHandler.removeInlineStyle(X.current)}));var ye=function(){if(m.value&&m.value.length){var e=null,t=null;if(Q){var r=null;e=(r=m.value.slice(-1*d)).map((function(e,t){return f.createElement(k,{key:t+"_scloned",className:"p-carousel-item-cloned",template:m.itemTemplate,item:e,active:-1*O===m.value.length+d,start:0===t,end:t===r.length-1,ptm:M})})),t=(r=m.value.slice(0,d)).map((function(e,t){return f.createElement(k,{key:t+"_fcloned",className:"p-carousel-item-cloned",template:m.itemTemplate,item:e,active:0===O,start:0===t,end:t===r.length-1,ptm:M})}))}var n=m.value.map((function(e,t){var r=Q?-1*(O+d):-1*O,n=r+d-1;return f.createElement(k,{key:t,template:m.itemTemplate,item:e,active:r<=t&&n>=t,start:r===t,end:n===t,ptm:M})}));return f.createElement(f.Fragment,null,e,n,t)}},Pe=function(){if(m.showNavigators){var e=(!K||m.value&&m.value.length<d)&&0===re,t=i.classNames("p-carousel-prev p-link",{"p-disabled":e}),n=i.mergeProps({className:"p-carousel-prev-icon"},M("previousButtonIcon")),a=i.IconUtils.getJSXIcon(G?m.prevIcon||f.createElement(u.ChevronUpIcon,n):m.prevIcon||f.createElement(o.ChevronLeftIcon,n),R({},n),{props:m}),l=i.mergeProps({type:"button",className:t,onClick:function(e){return le(e)},disabled:e,"aria-label":r.ariaLabel("previousPageLabel")},M("previousButton"));return f.createElement("button",l,a,f.createElement(c.Ripple,null))}return null},Ne=function(){if(m.showNavigators){var e=(!K||m.value&&m.value.length<d)&&(re===Z-1||0===Z),t=i.classNames("p-carousel-next p-link",{"p-disabled":e}),n=i.mergeProps({className:"p-carousel-next-icon"},M("nextButtonIcon")),o=i.IconUtils.getJSXIcon(G?m.nextIcon||f.createElement(a.ChevronDownIcon,n):m.nextIcon||f.createElement(l.ChevronRightIcon,n),R({},n),{props:m}),u=i.mergeProps({type:"button",className:t,onClick:function(e){return ue(e)},disabled:e,"aria-label":r.ariaLabel("nextPageLabel")},M("nextButton"));return f.createElement("button",u,o,f.createElement(c.Ripple,null))}return null},Ie=function(e){var t="carousel-indicator-"+e,n=i.classNames("p-carousel-indicator",{"p-highlight":re===e}),a=i.mergeProps({key:t,className:n},M("indicator")),o=i.mergeProps({type:"button",className:"p-link",onClick:function(t){return ce(t,e)},"aria-label":"".concat(r.ariaLabel("pageLabel")," ").concat(e+1)},M("indicatorButton"));return f.createElement("li",a,f.createElement("button",o,f.createElement(c.Ripple,null)))},Se=i.classNames("p-carousel p-component",{"p-carousel-vertical":G,"p-carousel-horizontal":!G},m.className),Ee=i.classNames("p-carousel-content",m.contentClassName),Oe=function(){var e=ye(),t=G?m.verticalViewPortHeight:"auto",r=Pe(),n=Ne(),a=i.classNames("p-carousel-container",m.containerClassName),o=i.mergeProps({className:"p-carousel-items-content",style:{height:t},onTouchStart:function(e){return se(e)},onTouchMove:function(e){return me(e)},onTouchEnd:function(e){return pe(e)}},M("itemsContent")),l=i.mergeProps({className:a},M("container")),u=i.mergeProps({ref:V,className:"p-carousel-items-container",onTransitionEnd:ie},M("itemsContainer"));return f.createElement("div",l,r,f.createElement("div",o,f.createElement("div",u,e)),n)}(),Ce=function(){if(m.showIndicators){for(var e=i.classNames("p-carousel-indicators p-reset",m.indicatorsContentClassName),t=[],r=0;r<Z;r++)t.push(Ie(r));var n=i.mergeProps({className:e},M("indicators"));return f.createElement("ul",n,t)}return null}(),we=function(){if(m.header){var e=i.mergeProps({className:"p-carousel-header"},M("header"));return f.createElement("div",e,m.header)}return null}(),je=function(){if(m.footer){var e=i.mergeProps({className:"p-carousel-footer"},M("footer"));return f.createElement("div",e,m.footer)}return null}(),xe=i.mergeProps({id:m.id,ref:A,className:Se,style:m.style},j.getOtherProps(m),M("root")),Re=i.mergeProps({className:Ee},M("content"));return f.createElement("div",xe,we,f.createElement("div",Re,Oe,Ce),je)})));return k.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);
|