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
|
@@ -2,12 +2,13 @@ import * as React from 'react';
|
|
|
2
2
|
import PrimeReact from 'primereact/api';
|
|
3
3
|
import { Button } from 'primereact/button';
|
|
4
4
|
import { useOverlayListener, useMountEffect, useUnmountEffect } from 'primereact/hooks';
|
|
5
|
+
import { ChevronDownIcon } from 'primereact/icons/chevrondown';
|
|
5
6
|
import { OverlayService } from 'primereact/overlayservice';
|
|
6
7
|
import { Tooltip } from 'primereact/tooltip';
|
|
7
|
-
import {
|
|
8
|
+
import { classNames, IconUtils, ObjectUtils, UniqueComponentId, ZIndexUtils, mergeProps, DomHandler } from 'primereact/utils';
|
|
9
|
+
import { ComponentBase } from 'primereact/componentbase';
|
|
8
10
|
import { CSSTransition } from 'primereact/csstransition';
|
|
9
11
|
import { Portal } from 'primereact/portal';
|
|
10
|
-
import { ChevronDownIcon } from 'primereact/icons/chevrondown';
|
|
11
12
|
|
|
12
13
|
function _extends() {
|
|
13
14
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -120,7 +121,7 @@ function _slicedToArray(arr, i) {
|
|
|
120
121
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
121
122
|
}
|
|
122
123
|
|
|
123
|
-
var SplitButtonBase = {
|
|
124
|
+
var SplitButtonBase = ComponentBase.extend({
|
|
124
125
|
defaultProps: {
|
|
125
126
|
__TYPE: 'SplitButton',
|
|
126
127
|
id: null,
|
|
@@ -155,14 +156,8 @@ var SplitButtonBase = {
|
|
|
155
156
|
onShow: null,
|
|
156
157
|
onHide: null,
|
|
157
158
|
children: undefined
|
|
158
|
-
},
|
|
159
|
-
getProps: function getProps(props) {
|
|
160
|
-
return ObjectUtils.getMergedProps(props, SplitButtonBase.defaultProps);
|
|
161
|
-
},
|
|
162
|
-
getOtherProps: function getOtherProps(props) {
|
|
163
|
-
return ObjectUtils.getDiffProps(props, SplitButtonBase.defaultProps);
|
|
164
159
|
}
|
|
165
|
-
};
|
|
160
|
+
});
|
|
166
161
|
|
|
167
162
|
var SplitButtonItem = /*#__PURE__*/React.memo(function (props) {
|
|
168
163
|
var onClick = function onClick(e) {
|
|
@@ -275,6 +270,8 @@ var SplitButtonPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
275
270
|
});
|
|
276
271
|
SplitButtonPanel.displayName = 'SplitButtonPanel';
|
|
277
272
|
|
|
273
|
+
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; }
|
|
274
|
+
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; }
|
|
278
275
|
var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
279
276
|
var _classNames;
|
|
280
277
|
var props = SplitButtonBase.getProps(inProps);
|
|
@@ -289,6 +286,14 @@ var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
289
286
|
var elementRef = React.useRef(null);
|
|
290
287
|
var defaultButtonRef = React.useRef(null);
|
|
291
288
|
var overlayRef = React.useRef(null);
|
|
289
|
+
var _SplitButtonBase$setM = SplitButtonBase.setMetaData({
|
|
290
|
+
props: props,
|
|
291
|
+
state: {
|
|
292
|
+
id: idState,
|
|
293
|
+
overlayVisible: overlayVisibleState
|
|
294
|
+
}
|
|
295
|
+
}),
|
|
296
|
+
ptm = _SplitButtonBase$setM.ptm;
|
|
292
297
|
var _useOverlayListener = useOverlayListener({
|
|
293
298
|
target: elementRef,
|
|
294
299
|
overlay: overlayRef,
|
|
@@ -372,7 +377,6 @@ var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
372
377
|
return null;
|
|
373
378
|
}
|
|
374
379
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
375
|
-
var otherProps = SplitButtonBase.getOtherProps(props);
|
|
376
380
|
var sizeMapping = {
|
|
377
381
|
large: 'lg',
|
|
378
382
|
small: 'sm'
|
|
@@ -388,43 +392,28 @@ var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
388
392
|
var items = createItems();
|
|
389
393
|
var menuId = idState + '_menu';
|
|
390
394
|
var dropdownIcon = function dropdownIcon() {
|
|
391
|
-
var
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
var dropdownIcon = IconUtils.getJSXIcon(icon, {
|
|
396
|
-
className: iconClassName
|
|
397
|
-
}, {
|
|
395
|
+
var iconProps = mergeProps({
|
|
396
|
+
className: 'p-button-icon p-c'
|
|
397
|
+
}, ptm('icon'));
|
|
398
|
+
var icon = props.dropdownIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, iconProps);
|
|
399
|
+
var dropdownIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, iconProps), {
|
|
398
400
|
props: props
|
|
399
401
|
});
|
|
400
402
|
return dropdownIcon;
|
|
401
403
|
};
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
id: idState,
|
|
405
|
-
className: className,
|
|
406
|
-
style: props.style
|
|
407
|
-
}, otherProps), /*#__PURE__*/React.createElement(Button, _extends({
|
|
408
|
-
ref: defaultButtonRef,
|
|
409
|
-
type: "button",
|
|
410
|
-
className: buttonClassName,
|
|
411
|
-
icon: props.icon,
|
|
412
|
-
loading: props.loading,
|
|
413
|
-
loadingIcon: props.loadingIcon,
|
|
414
|
-
label: props.label,
|
|
415
|
-
onClick: props.onClick,
|
|
416
|
-
disabled: props.disabled,
|
|
417
|
-
tabIndex: props.tabIndex
|
|
418
|
-
}, props.buttonProps), buttonContent), /*#__PURE__*/React.createElement(Button, _extends({
|
|
419
|
-
type: "button",
|
|
404
|
+
var menuButtonProps = mergeProps(_objectSpread(_objectSpread({
|
|
405
|
+
type: 'button',
|
|
420
406
|
className: menuButtonClassName,
|
|
421
407
|
icon: dropdownIcon,
|
|
422
408
|
onClick: onDropdownButtonClick,
|
|
423
409
|
disabled: props.disabled,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
}, props.menuButtonProps)
|
|
410
|
+
'aria-expanded': overlayVisibleState,
|
|
411
|
+
'aria-haspopup': true,
|
|
412
|
+
'aria-controls': overlayVisibleState ? menuId : null
|
|
413
|
+
}, props.menuButtonProps), {}, {
|
|
414
|
+
pt: ptm('menuButton')
|
|
415
|
+
}));
|
|
416
|
+
var menuProps = mergeProps({
|
|
428
417
|
ref: overlayRef,
|
|
429
418
|
appendTo: props.appendTo,
|
|
430
419
|
menuId: menuId,
|
|
@@ -437,7 +426,28 @@ var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
437
426
|
onExit: onOverlayExit,
|
|
438
427
|
onExited: onOverlayExited,
|
|
439
428
|
transitionOptions: props.transitionOptions
|
|
440
|
-
},
|
|
429
|
+
}, ptm('menu'));
|
|
430
|
+
var splitButtonProps = mergeProps(_objectSpread(_objectSpread({
|
|
431
|
+
ref: defaultButtonRef,
|
|
432
|
+
type: 'button',
|
|
433
|
+
className: buttonClassName,
|
|
434
|
+
icon: props.icon,
|
|
435
|
+
loading: props.loading,
|
|
436
|
+
loadingIcon: props.loadingIcon,
|
|
437
|
+
label: props.label,
|
|
438
|
+
onClick: props.onClick,
|
|
439
|
+
disabled: props.disabled,
|
|
440
|
+
tabIndex: props.tabIndex
|
|
441
|
+
}, props.buttonProps), {}, {
|
|
442
|
+
pt: ptm('button')
|
|
443
|
+
}));
|
|
444
|
+
var rootProps = mergeProps({
|
|
445
|
+
ref: elementRef,
|
|
446
|
+
id: idState,
|
|
447
|
+
className: className,
|
|
448
|
+
style: props.style
|
|
449
|
+
}, SplitButtonBase.getOtherProps(props), ptm('root'));
|
|
450
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", rootProps, /*#__PURE__*/React.createElement(Button, splitButtonProps, buttonContent), /*#__PURE__*/React.createElement(Button, menuButtonProps), /*#__PURE__*/React.createElement(SplitButtonPanel, menuProps, items)), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
441
451
|
target: elementRef,
|
|
442
452
|
content: props.tooltip
|
|
443
453
|
}, props.tooltipOptions)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import t from"primereact/api";import{Button as n}from"primereact/button";import{useOverlayListener as
|
|
1
|
+
import*as e from"react";import t from"primereact/api";import{Button as n}from"primereact/button";import{useOverlayListener as r,useMountEffect as o,useUnmountEffect as l}from"primereact/hooks";import{ChevronDownIcon as i}from"primereact/icons/chevrondown";import{OverlayService as a}from"primereact/overlayservice";import{Tooltip as u}from"primereact/tooltip";import{classNames as m,IconUtils as c,ObjectUtils as s,UniqueComponentId as p,ZIndexUtils as d,mergeProps as f,DomHandler as b}from"primereact/utils";import{ComponentBase as y}from"primereact/componentbase";import{CSSTransition as v}from"primereact/csstransition";import{Portal as g}from"primereact/portal";function E(){return E=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},E.apply(this,arguments)}function O(e){return O="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},O(e)}function S(e,t){if("object"!==O(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function N(e){var t=S(e,"string");return"symbol"===O(t)?t:String(t)}function h(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){if(Array.isArray(e))return e}function C(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,a=[],u=!0,m=!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)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){m=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(m)throw o}}return a}}function P(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 j(e,t){if(e){if("string"==typeof e)return P(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)?P(e,t):void 0}}function x(){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 I(e,t){return w(e)||C(e,t)||j(e,t)||x()}var k=y.extend({defaultProps:{__TYPE:"SplitButton",id:null,label:null,icon:null,loading:!1,loadingIcon:null,model:null,disabled:null,style:null,className:null,buttonClassName:null,menuStyle:null,menuClassName:null,menuButtonClassName:null,buttonProps:null,menuButtonProps:null,tabIndex:null,severity:null,rounded:!1,raised:!1,outlined:!1,text:!1,size:null,appendTo:null,tooltip:null,tooltipOptions:null,buttonTemplate:null,transitionOptions:null,dropdownIcon:null,onClick:null,onShow:null,onHide:null,children:void 0}}),T=e.memo((function(t){var n=function(e){t.menuitem.command&&t.menuitem.command({originalEvent:e,item:t.menuitem}),t.onItemClick&&t.onItemClick(e),e.preventDefault()},r=function(){if(!1===t.menuitem.visible)return null;var r=t.menuitem,o=r.icon,l=r.label,i=r.template,a=r.url,u=r.target,p=m("p-menuitem-link",r.className,{"p-disabled":r.disabled}),d=m("p-menuitem-icon",o),f=c.getJSXIcon(o,{className:"p-menuitem-icon"},{props:t.splitButtonProps}),b=e.createElement("a",{href:a||"#",role:"menuitem",className:p,target:u,onClick:n,"aria-label":l},f,l&&e.createElement("span",{className:"p-menuitem-text"},l));i&&(b=s.getJSXElement(i,t.menuitem,{onClick:n,className:p,labelClassName:"p-menuitem-text",iconClassName:d,element:b,props:t}));return e.createElement("li",{className:"p-menuitem",role:"none"},b)};return t.menuitem.separator?e.createElement("li",{className:"p-menu-separator",role:"separator"}):r()}));T.displayName="SplitButtonItem";var B=e.forwardRef((function(t,n){var r,o=(r=m("p-menu p-menu-overlay p-component",t.menuClassName),e.createElement(v,{nodeRef:n,classNames:"p-connected-overlay",in:t.in,timeout:{enter:120,exit:100},options:t.transitionOptions,unmountOnExit:!0,onEnter:t.onEnter,onEntered:t.onEntered,onExit:t.onExit,onExited:t.onExited},e.createElement("div",{ref:n,className:r,style:t.menuStyle,onClick:t.onClick},e.createElement("ul",{id:t.menuId,className:"p-menu-list p-reset",role:"menu"},t.children))));return e.createElement(g,{element:o,appendTo:t.appendTo})}));function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}B.displayName="SplitButtonPanel";var R=e.memo(e.forwardRef((function(y,v){var g,O=k.getProps(y),S=I(e.useState(O.id),2),N=S[0],w=S[1],C=I(e.useState(!1),2),P=C[0],j=C[1],x=e.useRef(null),A=e.useRef(null),R=e.useRef(null),H=k.setMetaData({props:O,state:{id:N,overlayVisible:P}}).ptm,J=I(r({target:x,overlay:R,listener:function(e,t){t.valid&&F()},when:P}),2),X=J[0],z=J[1],_=function(){F()},M=function(){j(!0)},F=function(){j(!1)},U=function(){b.alignOverlay(R.current,A.current.parentElement,O.appendTo||t.appendTo)};o((function(){N||w(p())})),l((function(){d.clear(R.current)})),e.useImperativeHandle(v,(function(){return{props:O,show:M,hide:F,getElement:function(){return x.current}}}));if(!1===O.visible)return null;var V=s.isNotEmpty(O.tooltip),Y={large:"lg",small:"sm"}[O.size],Z=m("p-splitbutton p-component",O.className,(h(g={"p-disabled":O.disabled,"p-button-loading-label-only":O.loading&&!O.icon&&O.label},"p-button-".concat(O.severity),O.severity),h(g,"p-button-raised",O.raised),h(g,"p-button-rounded",O.rounded),h(g,"p-button-text",O.text),h(g,"p-button-outlined",O.outlined),h(g,"p-button-".concat(Y),Y),g)),$=m("p-splitbutton-defaultbutton",O.buttonClassName),q=m("p-splitbutton-menubutton",O.menuButtonClassName),G=O.buttonTemplate?s.getJSXElement(O.buttonTemplate,O):null,K=O.model?O.model.map((function(t,n){return e.createElement(T,{splitButtonProps:O,menuitem:t,key:n,onItemClick:_})})):null,L=N+"_menu",Q=f(D(D({type:"button",className:q,icon:function(){var t=f({className:"p-button-icon p-c"},H("icon")),n=c.getJSXIcon(O.dropdownIcon||e.createElement(i,t),D({},t),{props:O});return n},onClick:function(){P?F():M()},disabled:O.disabled,"aria-expanded":P,"aria-haspopup":!0,"aria-controls":P?L:null},O.menuButtonProps),{},{pt:H("menuButton")})),W=f({ref:R,appendTo:O.appendTo,menuId:L,menuStyle:O.menuStyle,menuClassName:O.menuClassName,onClick:function(e){a.emit("overlay-click",{originalEvent:e,target:x.current})},in:P,onEnter:function(){d.set("overlay",R.current,t.autoZIndex,t.zIndex.overlay),U()},onEntered:function(){X(),O.onShow&&O.onShow()},onExit:function(){z()},onExited:function(){d.clear(R.current),O.onHide&&O.onHide()},transitionOptions:O.transitionOptions},H("menu")),ee=f(D(D({ref:A,type:"button",className:$,icon:O.icon,loading:O.loading,loadingIcon:O.loadingIcon,label:O.label,onClick:O.onClick,disabled:O.disabled,tabIndex:O.tabIndex},O.buttonProps),{},{pt:H("button")})),te=f({ref:x,id:N,className:Z,style:O.style},k.getOtherProps(O),H("root"));return e.createElement(e.Fragment,null,e.createElement("div",te,e.createElement(n,ee,G),e.createElement(n,Q),e.createElement(B,W,K)),V&&e.createElement(u,E({target:x,content:O.tooltip},O.tooltipOptions)))})));R.displayName="SplitButton";export{R as SplitButton};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hooks, overlayservice, tooltip, utils, csstransition, portal
|
|
2
|
+
this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hooks, chevrondown, overlayservice, tooltip, utils, componentbase, csstransition, portal) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -136,7 +136,7 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
136
136
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
var SplitButtonBase = {
|
|
139
|
+
var SplitButtonBase = componentbase.ComponentBase.extend({
|
|
140
140
|
defaultProps: {
|
|
141
141
|
__TYPE: 'SplitButton',
|
|
142
142
|
id: null,
|
|
@@ -171,14 +171,8 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
171
171
|
onShow: null,
|
|
172
172
|
onHide: null,
|
|
173
173
|
children: undefined
|
|
174
|
-
},
|
|
175
|
-
getProps: function getProps(props) {
|
|
176
|
-
return utils.ObjectUtils.getMergedProps(props, SplitButtonBase.defaultProps);
|
|
177
|
-
},
|
|
178
|
-
getOtherProps: function getOtherProps(props) {
|
|
179
|
-
return utils.ObjectUtils.getDiffProps(props, SplitButtonBase.defaultProps);
|
|
180
174
|
}
|
|
181
|
-
};
|
|
175
|
+
});
|
|
182
176
|
|
|
183
177
|
var SplitButtonItem = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
184
178
|
var onClick = function onClick(e) {
|
|
@@ -291,6 +285,8 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
291
285
|
});
|
|
292
286
|
SplitButtonPanel.displayName = 'SplitButtonPanel';
|
|
293
287
|
|
|
288
|
+
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; }
|
|
289
|
+
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; }
|
|
294
290
|
var SplitButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
295
291
|
var _classNames;
|
|
296
292
|
var props = SplitButtonBase.getProps(inProps);
|
|
@@ -305,6 +301,14 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
305
301
|
var elementRef = React__namespace.useRef(null);
|
|
306
302
|
var defaultButtonRef = React__namespace.useRef(null);
|
|
307
303
|
var overlayRef = React__namespace.useRef(null);
|
|
304
|
+
var _SplitButtonBase$setM = SplitButtonBase.setMetaData({
|
|
305
|
+
props: props,
|
|
306
|
+
state: {
|
|
307
|
+
id: idState,
|
|
308
|
+
overlayVisible: overlayVisibleState
|
|
309
|
+
}
|
|
310
|
+
}),
|
|
311
|
+
ptm = _SplitButtonBase$setM.ptm;
|
|
308
312
|
var _useOverlayListener = hooks.useOverlayListener({
|
|
309
313
|
target: elementRef,
|
|
310
314
|
overlay: overlayRef,
|
|
@@ -388,7 +392,6 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
388
392
|
return null;
|
|
389
393
|
}
|
|
390
394
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
391
|
-
var otherProps = SplitButtonBase.getOtherProps(props);
|
|
392
395
|
var sizeMapping = {
|
|
393
396
|
large: 'lg',
|
|
394
397
|
small: 'sm'
|
|
@@ -404,43 +407,28 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
404
407
|
var items = createItems();
|
|
405
408
|
var menuId = idState + '_menu';
|
|
406
409
|
var dropdownIcon = function dropdownIcon() {
|
|
407
|
-
var
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
var dropdownIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
412
|
-
className: iconClassName
|
|
413
|
-
}, {
|
|
410
|
+
var iconProps = utils.mergeProps({
|
|
411
|
+
className: 'p-button-icon p-c'
|
|
412
|
+
}, ptm('icon'));
|
|
413
|
+
var icon = props.dropdownIcon || /*#__PURE__*/React__namespace.createElement(chevrondown.ChevronDownIcon, iconProps);
|
|
414
|
+
var dropdownIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, iconProps), {
|
|
414
415
|
props: props
|
|
415
416
|
});
|
|
416
417
|
return dropdownIcon;
|
|
417
418
|
};
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
id: idState,
|
|
421
|
-
className: className,
|
|
422
|
-
style: props.style
|
|
423
|
-
}, otherProps), /*#__PURE__*/React__namespace.createElement(button.Button, _extends({
|
|
424
|
-
ref: defaultButtonRef,
|
|
425
|
-
type: "button",
|
|
426
|
-
className: buttonClassName,
|
|
427
|
-
icon: props.icon,
|
|
428
|
-
loading: props.loading,
|
|
429
|
-
loadingIcon: props.loadingIcon,
|
|
430
|
-
label: props.label,
|
|
431
|
-
onClick: props.onClick,
|
|
432
|
-
disabled: props.disabled,
|
|
433
|
-
tabIndex: props.tabIndex
|
|
434
|
-
}, props.buttonProps), buttonContent), /*#__PURE__*/React__namespace.createElement(button.Button, _extends({
|
|
435
|
-
type: "button",
|
|
419
|
+
var menuButtonProps = utils.mergeProps(_objectSpread(_objectSpread({
|
|
420
|
+
type: 'button',
|
|
436
421
|
className: menuButtonClassName,
|
|
437
422
|
icon: dropdownIcon,
|
|
438
423
|
onClick: onDropdownButtonClick,
|
|
439
424
|
disabled: props.disabled,
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}, props.menuButtonProps)
|
|
425
|
+
'aria-expanded': overlayVisibleState,
|
|
426
|
+
'aria-haspopup': true,
|
|
427
|
+
'aria-controls': overlayVisibleState ? menuId : null
|
|
428
|
+
}, props.menuButtonProps), {}, {
|
|
429
|
+
pt: ptm('menuButton')
|
|
430
|
+
}));
|
|
431
|
+
var menuProps = utils.mergeProps({
|
|
444
432
|
ref: overlayRef,
|
|
445
433
|
appendTo: props.appendTo,
|
|
446
434
|
menuId: menuId,
|
|
@@ -453,7 +441,28 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
453
441
|
onExit: onOverlayExit,
|
|
454
442
|
onExited: onOverlayExited,
|
|
455
443
|
transitionOptions: props.transitionOptions
|
|
456
|
-
},
|
|
444
|
+
}, ptm('menu'));
|
|
445
|
+
var splitButtonProps = utils.mergeProps(_objectSpread(_objectSpread({
|
|
446
|
+
ref: defaultButtonRef,
|
|
447
|
+
type: 'button',
|
|
448
|
+
className: buttonClassName,
|
|
449
|
+
icon: props.icon,
|
|
450
|
+
loading: props.loading,
|
|
451
|
+
loadingIcon: props.loadingIcon,
|
|
452
|
+
label: props.label,
|
|
453
|
+
onClick: props.onClick,
|
|
454
|
+
disabled: props.disabled,
|
|
455
|
+
tabIndex: props.tabIndex
|
|
456
|
+
}, props.buttonProps), {}, {
|
|
457
|
+
pt: ptm('button')
|
|
458
|
+
}));
|
|
459
|
+
var rootProps = utils.mergeProps({
|
|
460
|
+
ref: elementRef,
|
|
461
|
+
id: idState,
|
|
462
|
+
className: className,
|
|
463
|
+
style: props.style
|
|
464
|
+
}, SplitButtonBase.getOtherProps(props), ptm('root'));
|
|
465
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", rootProps, /*#__PURE__*/React__namespace.createElement(button.Button, splitButtonProps, buttonContent), /*#__PURE__*/React__namespace.createElement(button.Button, menuButtonProps), /*#__PURE__*/React__namespace.createElement(SplitButtonPanel, menuProps, items)), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
457
466
|
target: elementRef,
|
|
458
467
|
content: props.tooltip
|
|
459
468
|
}, props.tooltipOptions)));
|
|
@@ -466,4 +475,4 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
466
475
|
|
|
467
476
|
return exports;
|
|
468
477
|
|
|
469
|
-
})({}, React, primereact.api, primereact.button, primereact.hooks, primereact.overlayservice, primereact.tooltip, primereact.utils, primereact.
|
|
478
|
+
})({}, React, primereact.api, primereact.button, primereact.hooks, primereact.icons.chevrondown, primereact.overlayservice, primereact.tooltip, primereact.utils, primereact.componentbase, primereact.csstransition, primereact.portal);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.splitbutton=function(e,t,n,r,o,l,i,a,u,s,
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.splitbutton=function(e,t,n,r,o,l,i,a,u,c,s,m){"use strict";function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function d(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var f=d(t),b=p(n);function y(){return y=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},y.apply(this,arguments)}function v(e){return v="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},v(e)}function g(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function O(e){var t=g(e,"string");return"symbol"===v(t)?t:String(t)}function E(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e){if(Array.isArray(e))return e}function S(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,a=[],u=!0,c=!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)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}function h(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 j(e,t){if(e){if("string"==typeof e)return h(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)?h(e,t):void 0}}function P(){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 I(e,t){return N(e)||S(e,t)||j(e,t)||P()}var C=c.ComponentBase.extend({defaultProps:{__TYPE:"SplitButton",id:null,label:null,icon:null,loading:!1,loadingIcon:null,model:null,disabled:null,style:null,className:null,buttonClassName:null,menuStyle:null,menuClassName:null,menuButtonClassName:null,buttonProps:null,menuButtonProps:null,tabIndex:null,severity:null,rounded:!1,raised:!1,outlined:!1,text:!1,size:null,appendTo:null,tooltip:null,tooltipOptions:null,buttonTemplate:null,transitionOptions:null,dropdownIcon:null,onClick:null,onShow:null,onHide:null,children:void 0}}),w=f.memo((function(e){var t=function(t){e.menuitem.command&&e.menuitem.command({originalEvent:t,item:e.menuitem}),e.onItemClick&&e.onItemClick(t),t.preventDefault()},n=function(){if(!1===e.menuitem.visible)return null;var n=e.menuitem,r=n.icon,o=n.label,l=n.template,i=n.url,a=n.target,c=u.classNames("p-menuitem-link",n.className,{"p-disabled":n.disabled}),s=u.classNames("p-menuitem-icon",r),m=u.IconUtils.getJSXIcon(r,{className:"p-menuitem-icon"},{props:e.splitButtonProps}),p=f.createElement("a",{href:i||"#",role:"menuitem",className:c,target:a,onClick:t,"aria-label":o},m,o&&f.createElement("span",{className:"p-menuitem-text"},o));l&&(p=u.ObjectUtils.getJSXElement(l,e.menuitem,{onClick:t,className:c,labelClassName:"p-menuitem-text",iconClassName:s,element:p,props:e}));return f.createElement("li",{className:"p-menuitem",role:"none"},p)};return e.menuitem.separator?f.createElement("li",{className:"p-menu-separator",role:"separator"}):n()}));w.displayName="SplitButtonItem";var x=f.forwardRef((function(e,t){var n,r=(n=u.classNames("p-menu p-menu-overlay p-component",e.menuClassName),f.createElement(s.CSSTransition,{nodeRef:t,classNames:"p-connected-overlay",in:e.in,timeout:{enter:120,exit:100},options:e.transitionOptions,unmountOnExit:!0,onEnter:e.onEnter,onEntered:e.onEntered,onExit:e.onExit,onExited:e.onExited},f.createElement("div",{ref:t,className:n,style:e.menuStyle,onClick:e.onClick},f.createElement("ul",{id:e.menuId,className:"p-menu-list p-reset",role:"menu"},e.children))));return f.createElement(m.Portal,{element:r,appendTo:e.appendTo})}));function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}x.displayName="SplitButtonPanel";var T=f.memo(f.forwardRef((function(e,t){var n,c=C.getProps(e),s=I(f.useState(c.id),2),m=s[0],p=s[1],d=I(f.useState(!1),2),v=d[0],g=d[1],O=f.useRef(null),N=f.useRef(null),S=f.useRef(null),h=C.setMetaData({props:c,state:{id:m,overlayVisible:v}}).ptm,j=I(o.useOverlayListener({target:O,overlay:S,listener:function(e,t){t.valid&&D()},when:v}),2),P=j[0],k=j[1],T=function(){D()},U=function(){g(!0)},D=function(){g(!1)},R=function(){u.DomHandler.alignOverlay(S.current,N.current.parentElement,c.appendTo||b.default.appendTo)};o.useMountEffect((function(){m||p(u.UniqueComponentId())})),o.useUnmountEffect((function(){u.ZIndexUtils.clear(S.current)})),f.useImperativeHandle(t,(function(){return{props:c,show:U,hide:D,getElement:function(){return O.current}}}));if(!1===c.visible)return null;var _=u.ObjectUtils.isNotEmpty(c.tooltip),A={large:"lg",small:"sm"}[c.size],H=u.classNames("p-splitbutton p-component",c.className,(E(n={"p-disabled":c.disabled,"p-button-loading-label-only":c.loading&&!c.icon&&c.label},"p-button-".concat(c.severity),c.severity),E(n,"p-button-raised",c.raised),E(n,"p-button-rounded",c.rounded),E(n,"p-button-text",c.text),E(n,"p-button-outlined",c.outlined),E(n,"p-button-".concat(A),A),n)),M=u.classNames("p-splitbutton-defaultbutton",c.buttonClassName),z=u.classNames("p-splitbutton-menubutton",c.menuButtonClassName),J=c.buttonTemplate?u.ObjectUtils.getJSXElement(c.buttonTemplate,c):null,X=c.model?c.model.map((function(e,t){return f.createElement(w,{splitButtonProps:c,menuitem:e,key:t,onItemClick:T})})):null,Z=m+"_menu",q=u.mergeProps(B(B({type:"button",className:z,icon:function(){var e=u.mergeProps({className:"p-button-icon p-c"},h("icon")),t=u.IconUtils.getJSXIcon(c.dropdownIcon||f.createElement(l.ChevronDownIcon,e),B({},e),{props:c});return t},onClick:function(){v?D():U()},disabled:c.disabled,"aria-expanded":v,"aria-haspopup":!0,"aria-controls":v?Z:null},c.menuButtonProps),{},{pt:h("menuButton")})),F=u.mergeProps({ref:S,appendTo:c.appendTo,menuId:Z,menuStyle:c.menuStyle,menuClassName:c.menuClassName,onClick:function(e){i.OverlayService.emit("overlay-click",{originalEvent:e,target:O.current})},in:v,onEnter:function(){u.ZIndexUtils.set("overlay",S.current,b.default.autoZIndex,b.default.zIndex.overlay),R()},onEntered:function(){P(),c.onShow&&c.onShow()},onExit:function(){k()},onExited:function(){u.ZIndexUtils.clear(S.current),c.onHide&&c.onHide()},transitionOptions:c.transitionOptions},h("menu")),L=u.mergeProps(B(B({ref:N,type:"button",className:M,icon:c.icon,loading:c.loading,loadingIcon:c.loadingIcon,label:c.label,onClick:c.onClick,disabled:c.disabled,tabIndex:c.tabIndex},c.buttonProps),{},{pt:h("button")})),V=u.mergeProps({ref:O,id:m,className:H,style:c.style},C.getOtherProps(c),h("root"));return f.createElement(f.Fragment,null,f.createElement("div",V,f.createElement(r.Button,L,J),f.createElement(r.Button,q),f.createElement(x,F,X)),_&&f.createElement(a.Tooltip,y({target:O,content:c.tooltip},c.tooltipOptions)))})));return T.displayName="SplitButton",e.SplitButton=T,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.button,primereact.hooks,primereact.icons.chevrondown,primereact.overlayservice,primereact.tooltip,primereact.utils,primereact.componentbase,primereact.csstransition,primereact.portal);
|
package/splitter/splitter.cjs.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var hooks = require('primereact/hooks');
|
|
7
7
|
var utils = require('primereact/utils');
|
|
8
|
+
var componentbase = require('primereact/componentbase');
|
|
8
9
|
|
|
9
10
|
function _interopNamespace(e) {
|
|
10
11
|
if (e && e.__esModule) return e;
|
|
@@ -26,19 +27,35 @@ function _interopNamespace(e) {
|
|
|
26
27
|
|
|
27
28
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
29
|
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
function _arrayLikeToArray(arr, len) {
|
|
31
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
32
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
33
|
+
return arr2;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function _arrayWithoutHoles(arr) {
|
|
37
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function _iterableToArray(iter) {
|
|
41
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
45
|
+
if (!o) return;
|
|
46
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
47
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
48
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
49
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
50
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function _nonIterableSpread() {
|
|
54
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function _toConsumableArray(arr) {
|
|
58
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
42
59
|
}
|
|
43
60
|
|
|
44
61
|
function _typeof(obj) {
|
|
@@ -82,37 +99,6 @@ function _defineProperty(obj, key, value) {
|
|
|
82
99
|
return obj;
|
|
83
100
|
}
|
|
84
101
|
|
|
85
|
-
function _arrayLikeToArray(arr, len) {
|
|
86
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
87
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
88
|
-
return arr2;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
function _arrayWithoutHoles(arr) {
|
|
92
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function _iterableToArray(iter) {
|
|
96
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
100
|
-
if (!o) return;
|
|
101
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
102
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
103
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
104
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
105
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function _nonIterableSpread() {
|
|
109
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function _toConsumableArray(arr) {
|
|
113
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
114
|
-
}
|
|
115
|
-
|
|
116
102
|
function _arrayWithHoles(arr) {
|
|
117
103
|
if (Array.isArray(arr)) return arr;
|
|
118
104
|
}
|
|
@@ -153,7 +139,7 @@ function _slicedToArray(arr, i) {
|
|
|
153
139
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
154
140
|
}
|
|
155
141
|
|
|
156
|
-
var SplitterBase = {
|
|
142
|
+
var SplitterBase = componentbase.ComponentBase.extend({
|
|
157
143
|
defaultProps: {
|
|
158
144
|
__TYPE: 'Splitter',
|
|
159
145
|
className: null,
|
|
@@ -165,15 +151,9 @@ var SplitterBase = {
|
|
|
165
151
|
stateStorage: 'session',
|
|
166
152
|
style: null,
|
|
167
153
|
children: undefined
|
|
168
|
-
},
|
|
169
|
-
getProps: function getProps(props) {
|
|
170
|
-
return utils.ObjectUtils.getMergedProps(props, SplitterBase.defaultProps);
|
|
171
|
-
},
|
|
172
|
-
getOtherProps: function getOtherProps(props) {
|
|
173
|
-
return utils.ObjectUtils.getDiffProps(props, SplitterBase.defaultProps);
|
|
174
154
|
}
|
|
175
|
-
};
|
|
176
|
-
var SplitterPanelBase = {
|
|
155
|
+
});
|
|
156
|
+
var SplitterPanelBase = componentbase.ComponentBase.extend({
|
|
177
157
|
defaultProps: {
|
|
178
158
|
__TYPE: 'SplitterPanel',
|
|
179
159
|
className: null,
|
|
@@ -191,7 +171,7 @@ var SplitterPanelBase = {
|
|
|
191
171
|
getCProp: function getCProp(panel, name) {
|
|
192
172
|
return utils.ObjectUtils.getComponentProp(panel, name, SplitterPanelBase.defaultProps);
|
|
193
173
|
}
|
|
194
|
-
};
|
|
174
|
+
});
|
|
195
175
|
|
|
196
176
|
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; }
|
|
197
177
|
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; }
|
|
@@ -220,6 +200,21 @@ var Splitter = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
220
200
|
var panelSize = function panelSize(sizes, index) {
|
|
221
201
|
return index in sizes ? sizes[index] : props.children && [].concat(props.children)[index].props.size || 100 / childrenLength;
|
|
222
202
|
};
|
|
203
|
+
var metaData = {
|
|
204
|
+
props: props,
|
|
205
|
+
state: {
|
|
206
|
+
panelSizes: panelSizes
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
var _SplitterBase$setMeta = SplitterBase.setMetaData(_objectSpread({}, metaData)),
|
|
210
|
+
ptm = _SplitterBase$setMeta.ptm,
|
|
211
|
+
ptmo = _SplitterBase$setMeta.ptmo;
|
|
212
|
+
var getPanelPT = function getPanelPT(panel, key) {
|
|
213
|
+
return ptmo(getPanelProp(panel, 'pt'), key, {
|
|
214
|
+
props: panel.props,
|
|
215
|
+
parent: metaData
|
|
216
|
+
});
|
|
217
|
+
};
|
|
223
218
|
var _useEventListener = hooks.useEventListener({
|
|
224
219
|
type: 'mousemove',
|
|
225
220
|
listener: function listener(event) {
|
|
@@ -382,18 +377,17 @@ var Splitter = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
382
377
|
if (isStateful) restoreState();
|
|
383
378
|
}, [restoreState, isStateful]);
|
|
384
379
|
var createPanel = function createPanel(panel, index) {
|
|
385
|
-
var otherProps = SplitterPanelBase.getCOtherProps(panel);
|
|
386
380
|
var panelClassName = utils.classNames('p-splitter-panel', getPanelProp(panel, 'className'));
|
|
387
381
|
var gutterStyle = props.layout === 'horizontal' ? {
|
|
388
382
|
width: props.gutterSize + 'px'
|
|
389
383
|
} : {
|
|
390
384
|
height: props.gutterSize + 'px'
|
|
391
385
|
};
|
|
392
|
-
var
|
|
386
|
+
var gutterProps = utils.mergeProps({
|
|
393
387
|
ref: function ref(el) {
|
|
394
388
|
return gutterRefs.current[index] = el;
|
|
395
389
|
},
|
|
396
|
-
className:
|
|
390
|
+
className: 'p-splitter-gutter',
|
|
397
391
|
style: gutterStyle,
|
|
398
392
|
onMouseDown: function onMouseDown(event) {
|
|
399
393
|
return onGutterMouseDown(event, index);
|
|
@@ -407,30 +401,34 @@ var Splitter = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
407
401
|
onTouchEnd: function onTouchEnd(event) {
|
|
408
402
|
return onGutterTouchEnd(event);
|
|
409
403
|
}
|
|
410
|
-
},
|
|
411
|
-
|
|
412
|
-
|
|
404
|
+
}, ptm('gutter'));
|
|
405
|
+
var gutterHandlerProps = utils.mergeProps({
|
|
406
|
+
className: 'p-splitter-gutter-handle'
|
|
407
|
+
}, ptm('gutterHandler'));
|
|
408
|
+
var gutter = index !== props.children.length - 1 && /*#__PURE__*/React__namespace.createElement("div", gutterProps, /*#__PURE__*/React__namespace.createElement("div", gutterHandlerProps));
|
|
413
409
|
var flexBasis = 'calc(' + panelSize(panelSizes, index) + '% - ' + (childrenLength - 1) * props.gutterSize + 'px)';
|
|
414
|
-
|
|
410
|
+
var rootProps = utils.mergeProps({
|
|
415
411
|
key: index,
|
|
416
412
|
className: panelClassName,
|
|
417
413
|
style: _objectSpread(_objectSpread({}, getPanelProp(panel, 'style')), {}, {
|
|
418
414
|
flexBasis: flexBasis
|
|
419
|
-
})
|
|
420
|
-
|
|
415
|
+
}),
|
|
416
|
+
role: 'presentation'
|
|
417
|
+
}, getPanelPT(panel, 'root'));
|
|
418
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", rootProps, getPanelProp(panel, 'children')), gutter);
|
|
421
419
|
};
|
|
422
420
|
var createPanels = function createPanels() {
|
|
423
421
|
return React__namespace.Children.map(props.children, createPanel);
|
|
424
422
|
};
|
|
425
|
-
var otherProps = SplitterBase.getOtherProps(props);
|
|
426
423
|
var className = utils.classNames("p-splitter p-component p-splitter-".concat(props.layout), props.className);
|
|
427
|
-
var
|
|
428
|
-
return /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
429
|
-
ref: elementRef,
|
|
424
|
+
var rootProps = utils.mergeProps({
|
|
430
425
|
id: props.id,
|
|
431
|
-
|
|
432
|
-
style: props.style
|
|
433
|
-
|
|
426
|
+
ref: elementRef,
|
|
427
|
+
style: props.style,
|
|
428
|
+
className: className
|
|
429
|
+
}, SplitterBase.getOtherProps(props), ptm('root'));
|
|
430
|
+
var panels = createPanels();
|
|
431
|
+
return /*#__PURE__*/React__namespace.createElement("div", rootProps, panels);
|
|
434
432
|
}));
|
|
435
433
|
SplitterPanel.displayName = 'SplitterPanel';
|
|
436
434
|
Splitter.displayName = 'Splitter';
|