primereact 9.3.1 → 9.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -31
- package/accordion/accordion.cjs.js +88 -90
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +90 -1
- package/accordion/accordion.esm.js +89 -91
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +89 -92
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +1 -0
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +7 -6
- package/api/api.esm.js +1 -0
- package/api/api.esm.min.js +1 -1
- package/api/api.js +1 -0
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +33 -11
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +4 -0
- package/autocomplete/autocomplete.esm.js +33 -11
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +32 -10
- package/autocomplete/autocomplete.min.css +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +71 -22
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +37 -1
- package/avatar/avatar.esm.js +72 -23
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +72 -24
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +26 -42
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.d.ts +24 -0
- package/avatargroup/avatargroup.esm.js +13 -29
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +52 -69
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +12 -28
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.d.ts +26 -0
- package/badge/badge.esm.js +13 -29
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +13 -30
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +12 -28
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.d.ts +38 -0
- package/blockui/blockui.esm.js +13 -29
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +13 -30
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +87 -49
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +53 -1
- package/breadcrumb/breadcrumb.esm.js +88 -50
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +88 -51
- package/breadcrumb/breadcrumb.min.css +1 -1
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +49 -42
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +42 -1
- package/button/button.esm.js +50 -43
- package/button/button.esm.min.js +1 -1
- package/button/button.js +49 -43
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +37 -23
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +5 -2
- package/calendar/calendar.esm.js +37 -23
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +34 -20
- package/calendar/calendar.min.js +1 -1
- package/card/card.cjs.js +52 -63
- package/card/card.cjs.min.js +1 -1
- package/card/card.d.ts +56 -0
- package/card/card.esm.js +39 -50
- package/card/card.esm.min.js +1 -1
- package/card/card.js +86 -98
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +151 -110
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +113 -1
- package/carousel/carousel.esm.js +151 -110
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +148 -108
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +27 -23
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +5 -0
- package/cascadeselect/cascadeselect.esm.js +27 -23
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +28 -24
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +31 -42
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.d.ts +35 -0
- package/chart/chart.esm.js +18 -29
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +140 -152
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +40 -19
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +19 -1
- package/checkbox/checkbox.esm.js +41 -20
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +41 -20
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +45 -42
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +53 -1
- package/chip/chip.esm.js +46 -43
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +46 -44
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +37 -22
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +5 -0
- package/chips/chips.esm.js +37 -22
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +37 -23
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +11 -4
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +13 -0
- package/colorpicker/colorpicker.esm.js +11 -4
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +11 -4
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.d.ts +6 -2
- package/componentbase/componentbase.cjs.js +105 -0
- package/componentbase/componentbase.cjs.min.js +1 -0
- package/componentbase/componentbase.esm.js +101 -0
- package/componentbase/componentbase.esm.min.js +1 -0
- package/componentbase/componentbase.js +109 -0
- package/componentbase/componentbase.min.js +1 -0
- package/componentbase/package.json +6 -0
- package/confirmdialog/confirmdialog.cjs.js +44 -27
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +90 -2
- package/confirmdialog/confirmdialog.esm.js +45 -28
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +45 -29
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +53 -50
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +70 -1
- package/confirmpopup/confirmpopup.esm.js +54 -51
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +54 -52
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +111 -61
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +92 -1
- package/contextmenu/contextmenu.esm.js +112 -62
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +112 -63
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +16510 -5273
- package/core/core.min.js +41 -39
- package/datatable/datatable.cjs.js +253 -210
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +20 -7
- package/datatable/datatable.esm.js +253 -210
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +246 -203
- package/datatable/datatable.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +13 -26
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.d.ts +38 -0
- package/deferredcontent/deferredcontent.esm.js +14 -27
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +14 -28
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +83 -83
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +85 -3
- package/dialog/dialog.esm.js +83 -83
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +81 -82
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +35 -51
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.d.ts +30 -0
- package/divider/divider.esm.js +22 -38
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +66 -83
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +82 -45
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +66 -0
- package/dock/dock.esm.js +83 -46
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +83 -47
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +46 -20
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +6 -1
- package/dropdown/dropdown.esm.js +46 -20
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +45 -19
- package/dropdown/dropdown.min.js +1 -1
- package/fieldset/fieldset.cjs.js +55 -54
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.d.ts +77 -1
- package/fieldset/fieldset.esm.js +56 -55
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +56 -56
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +181 -151
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +150 -1
- package/fileupload/fileupload.esm.js +182 -152
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +182 -153
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +136 -118
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +156 -2
- package/galleria/galleria.esm.js +137 -119
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +135 -118
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +20 -3
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +17 -3
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +21 -5
- package/hooks/hooks.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +410 -2
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +410 -2
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +410 -2
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +410 -2
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +410 -2
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +410 -2
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +410 -2
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +410 -2
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +410 -2
- package/icons/ban/index.min.js +1 -1
- package/icons/download/index.cjs.js +410 -2
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +410 -2
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +410 -2
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +410 -2
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +410 -2
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +410 -2
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +410 -2
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +410 -2
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +410 -2
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +410 -2
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +410 -2
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +410 -2
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +410 -2
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +410 -2
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +410 -2
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +410 -2
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +410 -2
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +410 -2
- package/icons/infocircle/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +410 -2
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +410 -2
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +410 -2
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +410 -2
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +410 -2
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +410 -2
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +410 -2
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +410 -2
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +410 -2
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +410 -2
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +410 -2
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +410 -2
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +410 -2
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +410 -2
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +410 -2
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +410 -2
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +410 -2
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +410 -2
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +410 -2
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +410 -2
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +410 -2
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +410 -2
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +410 -2
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +410 -2
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +410 -2
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +410 -2
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +410 -2
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +410 -2
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +410 -2
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +410 -2
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +410 -2
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +410 -2
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +410 -2
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +410 -2
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +410 -2
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +410 -2
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +410 -2
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +410 -2
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +410 -2
- package/icons/thlarge/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +410 -2
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +410 -2
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +410 -2
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +410 -2
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +410 -2
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +410 -2
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +410 -2
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +410 -2
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +410 -2
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +410 -2
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +410 -2
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +410 -2
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +410 -2
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +410 -2
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +410 -2
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +410 -2
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +410 -2
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +410 -2
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +506 -103
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +130 -3
- package/image/image.esm.js +507 -104
- package/image/image.esm.min.js +1 -1
- package/image/image.js +503 -101
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +33 -51
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.d.ts +51 -1
- package/inplace/inplace.esm.js +33 -51
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +33 -52
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +24 -18
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +24 -18
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +24 -18
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +8 -6
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +8 -6
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +8 -6
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +13 -2
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +5 -0
- package/inputswitch/inputswitch.esm.js +13 -2
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +14 -4
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +7 -8
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +7 -8
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +7 -8
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +3 -4
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +3 -4
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +3 -4
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/listbox/listbox.cjs.js +12 -4
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +12 -4
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +12 -4
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +147 -96
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +142 -2
- package/megamenu/megamenu.esm.js +147 -96
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +145 -95
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +3 -4
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +3 -4
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +3 -4
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +94 -55
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +71 -0
- package/menu/menu.esm.js +95 -56
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +95 -57
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +118 -110
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +94 -1
- package/menubar/menubar.esm.js +119 -111
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +119 -112
- package/menubar/menubar.min.js +1 -1
- package/menuitem/menuitem.d.ts +0 -2
- package/message/message.cjs.js +66 -46
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +35 -2
- package/message/message.esm.js +67 -47
- package/message/message.esm.min.js +1 -1
- package/message/message.js +67 -48
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +78 -74
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +51 -2
- package/messages/messages.esm.js +78 -74
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +78 -75
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +74 -47
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +9 -0
- package/multiselect/multiselect.esm.js +75 -48
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +73 -46
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +21 -13
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +5 -0
- package/multistatecheckbox/multistatecheckbox.esm.js +21 -13
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +21 -13
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +18 -2
- package/overlaypanel/overlaypanel.cjs.js +40 -46
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +45 -1
- package/overlaypanel/overlaypanel.esm.js +41 -47
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +41 -48
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.d.ts +3 -3
- package/panel/panel.cjs.js +78 -63
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +100 -1
- package/panel/panel.esm.js +79 -64
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +79 -65
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +145 -83
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +124 -2
- package/panelmenu/panelmenu.esm.js +145 -83
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +144 -83
- package/panelmenu/panelmenu.min.js +1 -1
- package/primereact.all.cjs.js +4240 -3058
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +4240 -3059
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +4240 -3058
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +45 -57
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.d.ts +38 -0
- package/progressbar/progressbar.esm.js +32 -44
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +105 -118
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +37 -51
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.d.ts +34 -0
- package/progressspinner/progressspinner.esm.js +24 -38
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +75 -90
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +42 -20
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +19 -1
- package/radiobutton/radiobutton.esm.js +42 -20
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +43 -22
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +15 -7
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +15 -7
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +14 -6
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +195 -187
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +16 -7
- package/resources/themes/arya-green/theme.css +16 -7
- package/resources/themes/arya-orange/theme.css +16 -7
- package/resources/themes/arya-purple/theme.css +16 -7
- package/resources/themes/bootstrap4-dark-blue/theme.css +16 -7
- package/resources/themes/bootstrap4-dark-purple/theme.css +16 -7
- package/resources/themes/bootstrap4-light-blue/theme.css +16 -7
- package/resources/themes/bootstrap4-light-purple/theme.css +16 -7
- package/resources/themes/fluent-light/theme.css +16 -7
- package/resources/themes/lara-dark-blue/theme.css +16 -7
- package/resources/themes/lara-dark-indigo/theme.css +16 -7
- package/resources/themes/lara-dark-purple/theme.css +16 -7
- package/resources/themes/lara-dark-teal/theme.css +16 -7
- package/resources/themes/lara-light-blue/theme.css +16 -7
- package/resources/themes/lara-light-indigo/theme.css +16 -7
- package/resources/themes/lara-light-purple/theme.css +16 -7
- package/resources/themes/lara-light-teal/theme.css +16 -7
- package/resources/themes/luna-amber/theme.css +16 -7
- package/resources/themes/luna-blue/theme.css +16 -7
- package/resources/themes/luna-green/theme.css +16 -7
- package/resources/themes/luna-pink/theme.css +16 -7
- package/resources/themes/md-dark-deeppurple/theme.css +16 -7
- package/resources/themes/md-dark-indigo/theme.css +16 -7
- package/resources/themes/md-light-deeppurple/theme.css +16 -7
- package/resources/themes/md-light-indigo/theme.css +16 -7
- package/resources/themes/mdc-dark-deeppurple/theme.css +16 -7
- package/resources/themes/mdc-dark-indigo/theme.css +16 -7
- package/resources/themes/mdc-light-deeppurple/theme.css +16 -7
- package/resources/themes/mdc-light-indigo/theme.css +16 -7
- package/resources/themes/mira/theme.css +16 -7
- package/resources/themes/nano/theme.css +16 -7
- package/resources/themes/nova/theme.css +16 -7
- package/resources/themes/nova-accent/theme.css +16 -7
- package/resources/themes/nova-alt/theme.css +16 -7
- package/resources/themes/rhea/theme.css +16 -7
- package/resources/themes/saga-blue/theme.css +16 -7
- package/resources/themes/saga-green/theme.css +16 -7
- package/resources/themes/saga-orange/theme.css +16 -7
- package/resources/themes/saga-purple/theme.css +16 -7
- package/resources/themes/soho-dark/theme.css +16 -7
- package/resources/themes/soho-light/theme.css +16 -7
- package/resources/themes/tailwind-light/theme.css +16 -7
- package/resources/themes/vela-blue/theme.css +16 -7
- package/resources/themes/vela-green/theme.css +16 -7
- package/resources/themes/vela-orange/theme.css +16 -7
- package/resources/themes/vela-purple/theme.css +16 -7
- package/resources/themes/viva-dark/theme.css +16 -7
- package/resources/themes/viva-light/theme.css +16 -7
- package/scrollpanel/scrollpanel.cjs.js +39 -52
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.d.ts +42 -0
- package/scrollpanel/scrollpanel.esm.js +26 -39
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +193 -207
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +64 -36
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +42 -1
- package/scrolltop/scrolltop.esm.js +65 -37
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +65 -38
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +6 -2
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +6 -2
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +6 -2
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +88 -52
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +58 -1
- package/sidebar/sidebar.esm.js +89 -53
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +89 -54
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +26 -42
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.d.ts +26 -0
- package/skeleton/skeleton.esm.js +13 -29
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +70 -87
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +121 -111
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +98 -1
- package/slidemenu/slidemenu.esm.js +122 -112
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +122 -113
- package/slidemenu/slidemenu.min.js +1 -1
- package/speeddial/speeddial.cjs.js +63 -56
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +64 -1
- package/speeddial/speeddial.esm.js +64 -57
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +62 -56
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +50 -40
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +59 -1
- package/splitbutton/splitbutton.esm.js +51 -41
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +50 -41
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +68 -70
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +60 -0
- package/splitter/splitter.esm.js +69 -71
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +69 -72
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +78 -45
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +50 -0
- package/steps/steps.esm.js +79 -46
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +79 -47
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +9 -7
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +9 -7
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +9 -7
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +83 -47
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +62 -0
- package/tabmenu/tabmenu.esm.js +84 -48
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +84 -49
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +142 -122
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +132 -1
- package/tabview/tabview.esm.js +143 -123
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +143 -124
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +18 -30
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +34 -1
- package/tag/tag.esm.js +19 -31
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +19 -32
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +49 -52
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.d.ts +73 -0
- package/terminal/terminal.esm.js +50 -53
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +50 -54
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.d.ts +1 -1
- package/tieredmenu/tieredmenu.cjs.js +104 -59
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +83 -2
- package/tieredmenu/tieredmenu.esm.js +105 -60
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +105 -61
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.d.ts +1 -1
- package/toast/toast.cjs.js +85 -81
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +124 -2
- package/toast/toast.esm.js +86 -82
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +83 -80
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +12 -2
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +12 -2
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +13 -4
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +35 -49
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +44 -0
- package/toolbar/toolbar.esm.js +22 -36
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +72 -87
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +31 -37
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +55 -0
- package/tooltip/tooltip.esm.js +32 -38
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +32 -39
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +5 -0
- package/tree/tree.d.ts +1 -1
- package/treenode/treenode.d.ts +5 -1
- package/treeselect/treeselect.cjs.js +12 -5
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +6 -1
- package/treeselect/treeselect.esm.js +12 -5
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +11 -4
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +10 -3
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +1 -1
- package/treetable/treetable.esm.js +10 -3
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +10 -3
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +22 -11
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +5 -0
- package/tristatecheckbox/tristatecheckbox.esm.js +22 -11
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +21 -11
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +735 -676
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +5 -1
- package/utils/utils.esm.js +732 -677
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +736 -678
- package/utils/utils.min.js +1 -1
- package/web-types.json +13 -1
package/steps/steps.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.steps = (function (exports, React, utils) {
|
|
2
|
+
this.primereact.steps = (function (exports, React, utils, componentbase) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopNamespace(e) {
|
|
@@ -22,22 +22,48 @@ this.primereact.steps = (function (exports, React, utils) {
|
|
|
22
22
|
|
|
23
23
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
24
|
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
25
|
+
function _typeof(obj) {
|
|
26
|
+
"@babel/helpers - typeof";
|
|
27
|
+
|
|
28
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
29
|
+
return typeof obj;
|
|
30
|
+
} : function (obj) {
|
|
31
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
32
|
+
}, _typeof(obj);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function _toPrimitive(input, hint) {
|
|
36
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
37
|
+
var prim = input[Symbol.toPrimitive];
|
|
38
|
+
if (prim !== undefined) {
|
|
39
|
+
var res = prim.call(input, hint || "default");
|
|
40
|
+
if (_typeof(res) !== "object") return res;
|
|
41
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
42
|
+
}
|
|
43
|
+
return (hint === "string" ? String : Number)(input);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function _toPropertyKey(arg) {
|
|
47
|
+
var key = _toPrimitive(arg, "string");
|
|
48
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function _defineProperty(obj, key, value) {
|
|
52
|
+
key = _toPropertyKey(key);
|
|
53
|
+
if (key in obj) {
|
|
54
|
+
Object.defineProperty(obj, key, {
|
|
55
|
+
value: value,
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true,
|
|
58
|
+
writable: true
|
|
59
|
+
});
|
|
60
|
+
} else {
|
|
61
|
+
obj[key] = value;
|
|
62
|
+
}
|
|
63
|
+
return obj;
|
|
38
64
|
}
|
|
39
65
|
|
|
40
|
-
var StepsBase = {
|
|
66
|
+
var StepsBase = componentbase.ComponentBase.extend({
|
|
41
67
|
defaultProps: {
|
|
42
68
|
__TYPE: 'Steps',
|
|
43
69
|
id: null,
|
|
@@ -48,18 +74,18 @@ this.primereact.steps = (function (exports, React, utils) {
|
|
|
48
74
|
className: null,
|
|
49
75
|
onSelect: null,
|
|
50
76
|
children: undefined
|
|
51
|
-
},
|
|
52
|
-
getProps: function getProps(props) {
|
|
53
|
-
return utils.ObjectUtils.getMergedProps(props, StepsBase.defaultProps);
|
|
54
|
-
},
|
|
55
|
-
getOtherProps: function getOtherProps(props) {
|
|
56
|
-
return utils.ObjectUtils.getDiffProps(props, StepsBase.defaultProps);
|
|
57
77
|
}
|
|
58
|
-
};
|
|
78
|
+
});
|
|
59
79
|
|
|
80
|
+
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; }
|
|
81
|
+
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; }
|
|
60
82
|
var Steps = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
61
83
|
var props = StepsBase.getProps(inProps);
|
|
62
84
|
var elementRef = React__namespace.useRef(null);
|
|
85
|
+
var _StepsBase$setMetaDat = StepsBase.setMetaData({
|
|
86
|
+
props: props
|
|
87
|
+
}),
|
|
88
|
+
ptm = _StepsBase$setMetaDat.ptm;
|
|
63
89
|
var itemClick = function itemClick(event, item, index) {
|
|
64
90
|
if (props.readOnly || item.disabled) {
|
|
65
91
|
event.preventDefault();
|
|
@@ -96,26 +122,30 @@ this.primereact.steps = (function (exports, React, utils) {
|
|
|
96
122
|
'p-disabled': disabled
|
|
97
123
|
});
|
|
98
124
|
var iconClassName = utils.classNames('p-menuitem-icon', item.icon);
|
|
99
|
-
var
|
|
100
|
-
className:
|
|
101
|
-
},
|
|
125
|
+
var iconProps = utils.mergeProps({
|
|
126
|
+
className: iconClassName
|
|
127
|
+
}, ptm('icon'));
|
|
128
|
+
var icon = utils.IconUtils.getJSXIcon(item.icon, _objectSpread({}, iconProps), {
|
|
102
129
|
props: props
|
|
103
130
|
});
|
|
104
|
-
var
|
|
105
|
-
className:
|
|
106
|
-
},
|
|
107
|
-
var
|
|
131
|
+
var labelProps = utils.mergeProps({
|
|
132
|
+
className: 'p-steps-title'
|
|
133
|
+
}, ptm('label'));
|
|
134
|
+
var label = item.label && /*#__PURE__*/React__namespace.createElement("span", labelProps, item.label);
|
|
135
|
+
var stepProps = utils.mergeProps({
|
|
136
|
+
className: 'p-steps-number'
|
|
137
|
+
}, ptm('step'));
|
|
138
|
+
var actionProps = utils.mergeProps({
|
|
108
139
|
href: item.url || '#',
|
|
109
|
-
className:
|
|
110
|
-
role:
|
|
140
|
+
className: 'p-menuitem-link',
|
|
141
|
+
role: 'presentation',
|
|
111
142
|
target: item.target,
|
|
112
143
|
onClick: function onClick(event) {
|
|
113
144
|
return itemClick(event, item, index);
|
|
114
145
|
},
|
|
115
146
|
tabIndex: tabIndex
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
}, index + 1), icon, label);
|
|
147
|
+
}, ptm('action'));
|
|
148
|
+
var content = /*#__PURE__*/React__namespace.createElement("a", actionProps, /*#__PURE__*/React__namespace.createElement("span", stepProps, index + 1), icon, label);
|
|
119
149
|
if (item.template) {
|
|
120
150
|
var defaultContentOptions = {
|
|
121
151
|
onClick: function onClick(event) {
|
|
@@ -133,22 +163,24 @@ this.primereact.steps = (function (exports, React, utils) {
|
|
|
133
163
|
};
|
|
134
164
|
content = utils.ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);
|
|
135
165
|
}
|
|
136
|
-
|
|
166
|
+
var menuItemProps = utils.mergeProps({
|
|
137
167
|
key: key,
|
|
138
168
|
id: item.id,
|
|
139
169
|
className: className,
|
|
140
170
|
style: item.style,
|
|
141
|
-
role:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
},
|
|
171
|
+
role: 'tab',
|
|
172
|
+
'aria-selected': active,
|
|
173
|
+
'aria-expanded': active
|
|
174
|
+
}, ptm('menuitem'));
|
|
175
|
+
return /*#__PURE__*/React__namespace.createElement("li", menuItemProps, content);
|
|
145
176
|
};
|
|
146
177
|
var createItems = function createItems() {
|
|
178
|
+
var menuProps = utils.mergeProps({
|
|
179
|
+
role: 'tablist'
|
|
180
|
+
}, ptm('menu'));
|
|
147
181
|
if (props.model) {
|
|
148
182
|
var _items = props.model.map(createItem);
|
|
149
|
-
return /*#__PURE__*/React__namespace.createElement("ul",
|
|
150
|
-
role: "tablist"
|
|
151
|
-
}, _items);
|
|
183
|
+
return /*#__PURE__*/React__namespace.createElement("ul", menuProps, _items);
|
|
152
184
|
}
|
|
153
185
|
return null;
|
|
154
186
|
};
|
|
@@ -160,17 +192,17 @@ this.primereact.steps = (function (exports, React, utils) {
|
|
|
160
192
|
}
|
|
161
193
|
};
|
|
162
194
|
});
|
|
163
|
-
var otherProps = StepsBase.getOtherProps(props);
|
|
164
195
|
var className = utils.classNames('p-steps p-component', {
|
|
165
196
|
'p-readonly': props.readOnly
|
|
166
197
|
}, props.className);
|
|
167
|
-
var
|
|
168
|
-
return /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
198
|
+
var rootProps = utils.mergeProps({
|
|
169
199
|
id: props.id,
|
|
170
200
|
ref: elementRef,
|
|
171
201
|
className: className,
|
|
172
202
|
style: props.style
|
|
173
|
-
},
|
|
203
|
+
}, StepsBase.getOtherProps(props), ptm('root'));
|
|
204
|
+
var items = createItems();
|
|
205
|
+
return /*#__PURE__*/React__namespace.createElement("div", rootProps, items);
|
|
174
206
|
}));
|
|
175
207
|
Steps.displayName = 'Steps';
|
|
176
208
|
|
|
@@ -180,4 +212,4 @@ this.primereact.steps = (function (exports, React, utils) {
|
|
|
180
212
|
|
|
181
213
|
return exports;
|
|
182
214
|
|
|
183
|
-
})({}, React, primereact.utils);
|
|
215
|
+
})({}, React, primereact.utils, primereact.componentbase);
|
package/steps/steps.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.steps=function(e,t,n){"use strict";function
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.steps=function(e,t,r,n){"use strict";function l(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 a=l(t);function i(e){return i="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},i(e)}function o(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function s(e){var t=o(e,"string");return"symbol"===i(t)?t:String(t)}function c(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=n.ComponentBase.extend({defaultProps:{__TYPE:"Steps",id:null,model:null,activeIndex:0,readOnly:!0,style:null,className:null,onSelect:null,children:void 0}});function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f=a.memo(a.forwardRef((function(e,t){var n=u.getProps(e),l=a.useRef(null),i=u.setMetaData({props:n}).ptm,o=function(e,t,r){n.readOnly||t.disabled?e.preventDefault():(n.onSelect&&n.onSelect({originalEvent:e,item:t,index:r}),t.url||e.preventDefault(),t.command&&t.command({originalEvent:e,item:t,index:r}))},s=function(e,t){if(!1===e.visible)return null;var l=e.label+"_"+t,s=t===n.activeIndex,c=e.disabled||t!==n.activeIndex&&n.readOnly,u=c?-1:"",p=r.classNames("p-steps-item",e.className,{"p-highlight p-steps-current":s,"p-disabled":c}),f=r.classNames("p-menuitem-icon",e.icon),b=r.mergeProps({className:f},i("icon")),d=r.IconUtils.getJSXIcon(e.icon,m({},b),{props:n}),y=r.mergeProps({className:"p-steps-title"},i("label")),v=e.label&&a.createElement("span",y,e.label),g=r.mergeProps({className:"p-steps-number"},i("step")),O=r.mergeProps({href:e.url||"#",className:"p-menuitem-link",role:"presentation",target:e.target,onClick:function(r){return o(r,e,t)},tabIndex:u},i("action")),P=a.createElement("a",O,a.createElement("span",g,t+1),d,v);e.template&&(P=r.ObjectUtils.getJSXElement(e.template,e,{onClick:function(r){return o(r,e,t)},className:"p-menuitem-link",labelClassName:"p-steps-title",numberClassName:"p-steps-number",iconClassName:f,element:P,props:n,tabIndex:u,active:s,disabled:c}));var j=r.mergeProps({key:l,id:e.id,className:p,style:e.style,role:"tab","aria-selected":s,"aria-expanded":s},i("menuitem"));return a.createElement("li",j,P)};a.useImperativeHandle(t,(function(){return{props:n,getElement:function(){return l.current}}}));var c=r.classNames("p-steps p-component",{"p-readonly":n.readOnly},n.className),p=r.mergeProps({id:n.id,ref:l,className:c,style:n.style},u.getOtherProps(n),i("root")),f=function(){var e=r.mergeProps({role:"tablist"},i("menu"));if(n.model){var t=n.model.map(s);return a.createElement("ul",e,t)}return null}();return a.createElement("div",p,f)})));return f.displayName="Steps",e.Steps=f,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils,primereact.componentbase);
|
|
@@ -229,21 +229,23 @@ var StyleClass = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref
|
|
|
229
229
|
}
|
|
230
230
|
switch (props.selector) {
|
|
231
231
|
case '@next':
|
|
232
|
-
return elementRef.current.nextElementSibling;
|
|
232
|
+
return elementRef.current && elementRef.current.nextElementSibling;
|
|
233
233
|
case '@prev':
|
|
234
|
-
return elementRef.current.previousElementSibling;
|
|
234
|
+
return elementRef.current && elementRef.current.previousElementSibling;
|
|
235
235
|
case '@parent':
|
|
236
|
-
return elementRef.current.parentElement;
|
|
236
|
+
return elementRef.current && elementRef.current.parentElement;
|
|
237
237
|
case '@grandparent':
|
|
238
|
-
return elementRef.current.parentElement.parentElement;
|
|
238
|
+
return elementRef.current && elementRef.current.parentElement.parentElement;
|
|
239
239
|
default:
|
|
240
240
|
return document.querySelector(props.selector);
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
243
|
var init = function init() {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
244
|
+
Promise.resolve().then(function () {
|
|
245
|
+
elementRef.current = utils.ObjectUtils.getRefElement(props.nodeRef);
|
|
246
|
+
bindClickListener({
|
|
247
|
+
target: elementRef.current
|
|
248
|
+
});
|
|
247
249
|
});
|
|
248
250
|
};
|
|
249
251
|
var destroy = function destroy() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("primereact/hooks"),t=require("primereact/utils");function n(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var a=n(e);function l(e){if(Array.isArray(e))return e}function s(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,l,s,u=[],c=!0,o=!1;try{if(l=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=l.call(t)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(e){o=!0,a=e}finally{try{if(!c&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(o)throw a}}return u}}function u(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function c(e,r){if(e){if("string"==typeof e)return u(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,r):void 0}}function o(){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,r){return l(e)||s(e,r)||c(e,r)||o()}var m={defaultProps:{__TYPE:"StyleClass",nodeRef:null,selector:null,enterClassName:null,enterActiveClassName:null,enterToClassName:null,leaveClassName:null,leaveActiveClassName:null,leaveToClassName:null,hideOnOutsideClick:!1,toggleClassName:null,children:void 0},getProps:function(e){return t.ObjectUtils.getMergedProps(e,m.defaultProps)},getOtherProps:function(e){return t.ObjectUtils.getDiffProps(e,m.defaultProps)}},d=a.forwardRef((function(e,n){var l=m.getProps(e),s=a.useRef(null),u=a.useRef(!1),c=a.useRef(null),o=i(r.useEventListener({type:"animationend",listener:function(){t.DomHandler.removeClass(s.current,l.enterActiveClassName),l.enterToClassName&&t.DomHandler.addClass(s.current,l.enterToClassName),f(),"slidedown"===l.enterActiveClassName&&(s.current.style.maxHeight=""),u.current=!1}}),2),d=o[0],f=o[1],C=i(r.useEventListener({type:"animationend",listener:function(){t.DomHandler.removeClass(s.current,l.leaveActiveClassName),l.leaveToClassName&&t.DomHandler.addClass(s.current,l.leaveToClassName),g(),u.current=!1}}),2),v=C[0],g=C[1],p=i(r.useEventListener({type:"click",listener:function(e){
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("primereact/hooks"),t=require("primereact/utils");function n(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var a=n(e);function l(e){if(Array.isArray(e))return e}function s(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,l,s,u=[],c=!0,o=!1;try{if(l=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=l.call(t)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(e){o=!0,a=e}finally{try{if(!c&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(o)throw a}}return u}}function u(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function c(e,r){if(e){if("string"==typeof e)return u(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,r):void 0}}function o(){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,r){return l(e)||s(e,r)||c(e,r)||o()}var m={defaultProps:{__TYPE:"StyleClass",nodeRef:null,selector:null,enterClassName:null,enterActiveClassName:null,enterToClassName:null,leaveClassName:null,leaveActiveClassName:null,leaveToClassName:null,hideOnOutsideClick:!1,toggleClassName:null,children:void 0},getProps:function(e){return t.ObjectUtils.getMergedProps(e,m.defaultProps)},getOtherProps:function(e){return t.ObjectUtils.getDiffProps(e,m.defaultProps)}},d=a.forwardRef((function(e,n){var l=m.getProps(e),s=a.useRef(null),u=a.useRef(!1),c=a.useRef(null),o=i(r.useEventListener({type:"animationend",listener:function(){t.DomHandler.removeClass(s.current,l.enterActiveClassName),l.enterToClassName&&t.DomHandler.addClass(s.current,l.enterToClassName),f(),"slidedown"===l.enterActiveClassName&&(s.current.style.maxHeight=""),u.current=!1}}),2),d=o[0],f=o[1],C=i(r.useEventListener({type:"animationend",listener:function(){t.DomHandler.removeClass(s.current,l.leaveActiveClassName),l.leaveToClassName&&t.DomHandler.addClass(s.current,l.leaveToClassName),g(),u.current=!1}}),2),v=C[0],g=C[1],p=i(r.useEventListener({type:"click",listener:function(e){P(s.current)&&"static"!==getComputedStyle(s.current).getPropertyValue("position")?j(e)&&O():y()},when:l.hideOnOutsideClick}),2),N=p[0],y=p[1],h=i(r.useEventListener({type:"click",listener:function(){s.current=E(),l.toggleClassName?t.DomHandler.hasClass(s.current,l.toggleClassName)?t.DomHandler.removeClass(s.current,l.toggleClassName):t.DomHandler.addClass(s.current,l.toggleClassName):t.DomHandler.isVisible(s.current)?O():D()}}),2),b=h[0],H=h[1],D=function(){l.enterActiveClassName?u.current||(u.current=!0,"slidedown"===l.enterActiveClassName&&(s.current.style.height="0px",t.DomHandler.removeClass(s.current,"hidden"),s.current.style.maxHeight=s.current.scrollHeight+"px",t.DomHandler.addClass(s.current,"hidden"),s.current.style.height=""),t.DomHandler.addClass(s.current,l.enterActiveClassName),l.enterClassName&&t.DomHandler.removeClass(s.current,l.enterClassName),d({target:s.current})):(l.enterClassName&&t.DomHandler.removeClass(s.current,l.enterClassName),l.enterToClassName&&t.DomHandler.addClass(s.current,l.enterToClassName)),N({target:c.current&&c.current.ownerDocument})},O=function(){l.leaveActiveClassName?u.current||(u.current=!0,t.DomHandler.addClass(s.current,l.leaveActiveClassName),l.leaveClassName&&t.DomHandler.removeClass(s.current,l.leaveClassName),v({target:s.current})):(l.leaveClassName&&t.DomHandler.removeClass(s.current,l.leaveClassName),l.leaveToClassName&&t.DomHandler.addClass(s.current,l.leaveToClassName)),l.hideOnOutsideClick&&y()},E=function(){if(s.current)return s.current;switch(l.selector){case"@next":return c.current&&c.current.nextElementSibling;case"@prev":return c.current&&c.current.previousElementSibling;case"@parent":return c.current&&c.current.parentElement;case"@grandparent":return c.current&&c.current.parentElement.parentElement;default:return document.querySelector(l.selector)}},A=function(){Promise.resolve().then((function(){c.current=t.ObjectUtils.getRefElement(l.nodeRef),b({target:c.current})}))},P=function(e){return null!==e.offsetParent},j=function(e){return!c.current.isSameNode(e.target)&&!c.current.contains(e.target)&&!s.current.contains(e.target)};return a.useImperativeHandle(n,(function(){return{props:l,getElement:function(){return c.current},getTarget:function(){return s.current}}})),r.useMountEffect((function(){A()})),r.useUpdateEffect((function(){return A(),function(){H()}})),r.useUnmountEffect((function(){H(),y(),s.current=null})),l.children}));d.displayName="StyleClass",exports.StyleClass=d;
|
|
@@ -205,21 +205,23 @@ var StyleClass = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
205
205
|
}
|
|
206
206
|
switch (props.selector) {
|
|
207
207
|
case '@next':
|
|
208
|
-
return elementRef.current.nextElementSibling;
|
|
208
|
+
return elementRef.current && elementRef.current.nextElementSibling;
|
|
209
209
|
case '@prev':
|
|
210
|
-
return elementRef.current.previousElementSibling;
|
|
210
|
+
return elementRef.current && elementRef.current.previousElementSibling;
|
|
211
211
|
case '@parent':
|
|
212
|
-
return elementRef.current.parentElement;
|
|
212
|
+
return elementRef.current && elementRef.current.parentElement;
|
|
213
213
|
case '@grandparent':
|
|
214
|
-
return elementRef.current.parentElement.parentElement;
|
|
214
|
+
return elementRef.current && elementRef.current.parentElement.parentElement;
|
|
215
215
|
default:
|
|
216
216
|
return document.querySelector(props.selector);
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
219
|
var init = function init() {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
Promise.resolve().then(function () {
|
|
221
|
+
elementRef.current = ObjectUtils.getRefElement(props.nodeRef);
|
|
222
|
+
bindClickListener({
|
|
223
|
+
target: elementRef.current
|
|
224
|
+
});
|
|
223
225
|
});
|
|
224
226
|
};
|
|
225
227
|
var destroy = function destroy() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{useEventListener as r,useMountEffect as t,useUpdateEffect as n,useUnmountEffect as a}from"primereact/hooks";import{ObjectUtils as l,DomHandler as s}from"primereact/utils";function u(e){if(Array.isArray(e))return e}function c(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,l,s,u=[],c=!0,o=!1;try{if(l=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=l.call(t)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(e){o=!0,a=e}finally{try{if(!c&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(o)throw a}}return u}}function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function i(e,r){if(e){if("string"==typeof e)return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,r):void 0}}function m(){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 f(e,r){return u(e)||c(e,r)||i(e,r)||m()}var C={defaultProps:{__TYPE:"StyleClass",nodeRef:null,selector:null,enterClassName:null,enterActiveClassName:null,enterToClassName:null,leaveClassName:null,leaveActiveClassName:null,leaveToClassName:null,hideOnOutsideClick:!1,toggleClassName:null,children:void 0},getProps:function(e){return l.getMergedProps(e,C.defaultProps)},getOtherProps:function(e){return l.getDiffProps(e,C.defaultProps)}},d=e.forwardRef((function(u,c){var o=C.getProps(u),i=e.useRef(null),m=e.useRef(!1),d=e.useRef(null),v=f(r({type:"animationend",listener:function(){s.removeClass(i.current,o.enterActiveClassName),o.enterToClassName&&s.addClass(i.current,o.enterToClassName),p(),"slidedown"===o.enterActiveClassName&&(i.current.style.maxHeight=""),m.current=!1}}),2),g=v[0],p=v[1],N=f(r({type:"animationend",listener:function(){s.removeClass(i.current,o.leaveActiveClassName),o.leaveToClassName&&s.addClass(i.current,o.leaveToClassName),h(),m.current=!1}}),2),y=N[0],h=N[1],A=f(r({type:"click",listener:function(e){k(i.current)&&"static"!==getComputedStyle(i.current).getPropertyValue("position")?j(e)&&E():T()},when:o.hideOnOutsideClick}),2),b=A[0],T=A[1],
|
|
1
|
+
import*as e from"react";import{useEventListener as r,useMountEffect as t,useUpdateEffect as n,useUnmountEffect as a}from"primereact/hooks";import{ObjectUtils as l,DomHandler as s}from"primereact/utils";function u(e){if(Array.isArray(e))return e}function c(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,l,s,u=[],c=!0,o=!1;try{if(l=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=l.call(t)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(e){o=!0,a=e}finally{try{if(!c&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(o)throw a}}return u}}function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function i(e,r){if(e){if("string"==typeof e)return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,r):void 0}}function m(){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 f(e,r){return u(e)||c(e,r)||i(e,r)||m()}var C={defaultProps:{__TYPE:"StyleClass",nodeRef:null,selector:null,enterClassName:null,enterActiveClassName:null,enterToClassName:null,leaveClassName:null,leaveActiveClassName:null,leaveToClassName:null,hideOnOutsideClick:!1,toggleClassName:null,children:void 0},getProps:function(e){return l.getMergedProps(e,C.defaultProps)},getOtherProps:function(e){return l.getDiffProps(e,C.defaultProps)}},d=e.forwardRef((function(u,c){var o=C.getProps(u),i=e.useRef(null),m=e.useRef(!1),d=e.useRef(null),v=f(r({type:"animationend",listener:function(){s.removeClass(i.current,o.enterActiveClassName),o.enterToClassName&&s.addClass(i.current,o.enterToClassName),p(),"slidedown"===o.enterActiveClassName&&(i.current.style.maxHeight=""),m.current=!1}}),2),g=v[0],p=v[1],N=f(r({type:"animationend",listener:function(){s.removeClass(i.current,o.leaveActiveClassName),o.leaveToClassName&&s.addClass(i.current,o.leaveToClassName),h(),m.current=!1}}),2),y=N[0],h=N[1],A=f(r({type:"click",listener:function(e){k(i.current)&&"static"!==getComputedStyle(i.current).getPropertyValue("position")?j(e)&&E():T()},when:o.hideOnOutsideClick}),2),b=A[0],T=A[1],P=f(r({type:"click",listener:function(){i.current=x(),o.toggleClassName?s.hasClass(i.current,o.toggleClassName)?s.removeClass(i.current,o.toggleClassName):s.addClass(i.current,o.toggleClassName):s.isVisible(i.current)?E():w()}}),2),S=P[0],O=P[1],w=function(){o.enterActiveClassName?m.current||(m.current=!0,"slidedown"===o.enterActiveClassName&&(i.current.style.height="0px",s.removeClass(i.current,"hidden"),i.current.style.maxHeight=i.current.scrollHeight+"px",s.addClass(i.current,"hidden"),i.current.style.height=""),s.addClass(i.current,o.enterActiveClassName),o.enterClassName&&s.removeClass(i.current,o.enterClassName),g({target:i.current})):(o.enterClassName&&s.removeClass(i.current,o.enterClassName),o.enterToClassName&&s.addClass(i.current,o.enterToClassName)),b({target:d.current&&d.current.ownerDocument})},E=function(){o.leaveActiveClassName?m.current||(m.current=!0,s.addClass(i.current,o.leaveActiveClassName),o.leaveClassName&&s.removeClass(i.current,o.leaveClassName),y({target:i.current})):(o.leaveClassName&&s.removeClass(i.current,o.leaveClassName),o.leaveToClassName&&s.addClass(i.current,o.leaveToClassName)),o.hideOnOutsideClick&&T()},x=function(){if(i.current)return i.current;switch(o.selector){case"@next":return d.current&&d.current.nextElementSibling;case"@prev":return d.current&&d.current.previousElementSibling;case"@parent":return d.current&&d.current.parentElement;case"@grandparent":return d.current&&d.current.parentElement.parentElement;default:return document.querySelector(o.selector)}},R=function(){Promise.resolve().then((function(){d.current=l.getRefElement(o.nodeRef),S({target:d.current})}))},k=function(e){return null!==e.offsetParent},j=function(e){return!d.current.isSameNode(e.target)&&!d.current.contains(e.target)&&!i.current.contains(e.target)};return e.useImperativeHandle(c,(function(){return{props:o,getElement:function(){return d.current},getTarget:function(){return i.current}}})),t((function(){R()})),n((function(){return R(),function(){O()}})),a((function(){O(),T(),i.current=null})),o.children}));d.displayName="StyleClass";export{d as StyleClass};
|
package/styleclass/styleclass.js
CHANGED
|
@@ -225,21 +225,23 @@ this.primereact.styleclass = (function (exports, React, hooks, utils) {
|
|
|
225
225
|
}
|
|
226
226
|
switch (props.selector) {
|
|
227
227
|
case '@next':
|
|
228
|
-
return elementRef.current.nextElementSibling;
|
|
228
|
+
return elementRef.current && elementRef.current.nextElementSibling;
|
|
229
229
|
case '@prev':
|
|
230
|
-
return elementRef.current.previousElementSibling;
|
|
230
|
+
return elementRef.current && elementRef.current.previousElementSibling;
|
|
231
231
|
case '@parent':
|
|
232
|
-
return elementRef.current.parentElement;
|
|
232
|
+
return elementRef.current && elementRef.current.parentElement;
|
|
233
233
|
case '@grandparent':
|
|
234
|
-
return elementRef.current.parentElement.parentElement;
|
|
234
|
+
return elementRef.current && elementRef.current.parentElement.parentElement;
|
|
235
235
|
default:
|
|
236
236
|
return document.querySelector(props.selector);
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
239
|
var init = function init() {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
Promise.resolve().then(function () {
|
|
241
|
+
elementRef.current = utils.ObjectUtils.getRefElement(props.nodeRef);
|
|
242
|
+
bindClickListener({
|
|
243
|
+
target: elementRef.current
|
|
244
|
+
});
|
|
243
245
|
});
|
|
244
246
|
};
|
|
245
247
|
var destroy = function destroy() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.styleclass=function(e,r,t,n){"use strict";function a(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var l=a(r);function s(e){if(Array.isArray(e))return e}function u(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,l,s,u=[],c=!0,o=!1;try{if(l=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=l.call(t)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(e){o=!0,a=e}finally{try{if(!c&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(o)throw a}}return u}}function c(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function o(e,r){if(e){if("string"==typeof e)return c(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,r):void 0}}function i(){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 m(e,r){return s(e)||u(e,r)||o(e,r)||i()}var d={defaultProps:{__TYPE:"StyleClass",nodeRef:null,selector:null,enterClassName:null,enterActiveClassName:null,enterToClassName:null,leaveClassName:null,leaveActiveClassName:null,leaveToClassName:null,hideOnOutsideClick:!1,toggleClassName:null,children:void 0},getProps:function(e){return n.ObjectUtils.getMergedProps(e,d.defaultProps)},getOtherProps:function(e){return n.ObjectUtils.getDiffProps(e,d.defaultProps)}},f=l.forwardRef((function(e,r){var a=d.getProps(e),s=l.useRef(null),u=l.useRef(!1),c=l.useRef(null),o=m(t.useEventListener({type:"animationend",listener:function(){n.DomHandler.removeClass(s.current,a.enterActiveClassName),a.enterToClassName&&n.DomHandler.addClass(s.current,a.enterToClassName),f(),"slidedown"===a.enterActiveClassName&&(s.current.style.maxHeight=""),u.current=!1}}),2),i=o[0],f=o[1],C=m(t.useEventListener({type:"animationend",listener:function(){n.DomHandler.removeClass(s.current,a.leaveActiveClassName),a.leaveToClassName&&n.DomHandler.addClass(s.current,a.leaveToClassName),p(),u.current=!1}}),2),v=C[0],p=C[1],g=m(t.useEventListener({type:"click",listener:function(e){
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.styleclass=function(e,r,t,n){"use strict";function a(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var l=a(r);function s(e){if(Array.isArray(e))return e}function u(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,l,s,u=[],c=!0,o=!1;try{if(l=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=l.call(t)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(e){o=!0,a=e}finally{try{if(!c&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(o)throw a}}return u}}function c(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function o(e,r){if(e){if("string"==typeof e)return c(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,r):void 0}}function i(){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 m(e,r){return s(e)||u(e,r)||o(e,r)||i()}var d={defaultProps:{__TYPE:"StyleClass",nodeRef:null,selector:null,enterClassName:null,enterActiveClassName:null,enterToClassName:null,leaveClassName:null,leaveActiveClassName:null,leaveToClassName:null,hideOnOutsideClick:!1,toggleClassName:null,children:void 0},getProps:function(e){return n.ObjectUtils.getMergedProps(e,d.defaultProps)},getOtherProps:function(e){return n.ObjectUtils.getDiffProps(e,d.defaultProps)}},f=l.forwardRef((function(e,r){var a=d.getProps(e),s=l.useRef(null),u=l.useRef(!1),c=l.useRef(null),o=m(t.useEventListener({type:"animationend",listener:function(){n.DomHandler.removeClass(s.current,a.enterActiveClassName),a.enterToClassName&&n.DomHandler.addClass(s.current,a.enterToClassName),f(),"slidedown"===a.enterActiveClassName&&(s.current.style.maxHeight=""),u.current=!1}}),2),i=o[0],f=o[1],C=m(t.useEventListener({type:"animationend",listener:function(){n.DomHandler.removeClass(s.current,a.leaveActiveClassName),a.leaveToClassName&&n.DomHandler.addClass(s.current,a.leaveToClassName),p(),u.current=!1}}),2),v=C[0],p=C[1],g=m(t.useEventListener({type:"click",listener:function(e){P(s.current)&&"static"!==getComputedStyle(s.current).getPropertyValue("position")?j(e)&&O():N()},when:a.hideOnOutsideClick}),2),y=g[0],N=g[1],h=m(t.useEventListener({type:"click",listener:function(){s.current=E(),a.toggleClassName?n.DomHandler.hasClass(s.current,a.toggleClassName)?n.DomHandler.removeClass(s.current,a.toggleClassName):n.DomHandler.addClass(s.current,a.toggleClassName):n.DomHandler.isVisible(s.current)?O():D()}}),2),b=h[0],H=h[1],D=function(){a.enterActiveClassName?u.current||(u.current=!0,"slidedown"===a.enterActiveClassName&&(s.current.style.height="0px",n.DomHandler.removeClass(s.current,"hidden"),s.current.style.maxHeight=s.current.scrollHeight+"px",n.DomHandler.addClass(s.current,"hidden"),s.current.style.height=""),n.DomHandler.addClass(s.current,a.enterActiveClassName),a.enterClassName&&n.DomHandler.removeClass(s.current,a.enterClassName),i({target:s.current})):(a.enterClassName&&n.DomHandler.removeClass(s.current,a.enterClassName),a.enterToClassName&&n.DomHandler.addClass(s.current,a.enterToClassName)),y({target:c.current&&c.current.ownerDocument})},O=function(){a.leaveActiveClassName?u.current||(u.current=!0,n.DomHandler.addClass(s.current,a.leaveActiveClassName),a.leaveClassName&&n.DomHandler.removeClass(s.current,a.leaveClassName),v({target:s.current})):(a.leaveClassName&&n.DomHandler.removeClass(s.current,a.leaveClassName),a.leaveToClassName&&n.DomHandler.addClass(s.current,a.leaveToClassName)),a.hideOnOutsideClick&&N()},E=function(){if(s.current)return s.current;switch(a.selector){case"@next":return c.current&&c.current.nextElementSibling;case"@prev":return c.current&&c.current.previousElementSibling;case"@parent":return c.current&&c.current.parentElement;case"@grandparent":return c.current&&c.current.parentElement.parentElement;default:return document.querySelector(a.selector)}},A=function(){Promise.resolve().then((function(){c.current=n.ObjectUtils.getRefElement(a.nodeRef),b({target:c.current})}))},P=function(e){return null!==e.offsetParent},j=function(e){return!c.current.isSameNode(e.target)&&!c.current.contains(e.target)&&!s.current.contains(e.target)};return l.useImperativeHandle(r,(function(){return{props:a,getElement:function(){return c.current},getTarget:function(){return s.current}}})),t.useMountEffect((function(){A()})),t.useUpdateEffect((function(){return A(),function(){H()}})),t.useUnmountEffect((function(){H(),N(),s.current=null})),a.children}));return f.displayName="StyleClass",e.StyleClass=f,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.hooks,primereact.utils);
|
package/tabmenu/tabmenu.cjs.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var ripple = require('primereact/ripple');
|
|
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,45 @@ 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 _typeof(obj) {
|
|
31
|
+
"@babel/helpers - typeof";
|
|
32
|
+
|
|
33
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
34
|
+
return typeof obj;
|
|
35
|
+
} : function (obj) {
|
|
36
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
37
|
+
}, _typeof(obj);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function _toPrimitive(input, hint) {
|
|
41
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
42
|
+
var prim = input[Symbol.toPrimitive];
|
|
43
|
+
if (prim !== undefined) {
|
|
44
|
+
var res = prim.call(input, hint || "default");
|
|
45
|
+
if (_typeof(res) !== "object") return res;
|
|
46
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
47
|
+
}
|
|
48
|
+
return (hint === "string" ? String : Number)(input);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function _toPropertyKey(arg) {
|
|
52
|
+
var key = _toPrimitive(arg, "string");
|
|
53
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function _defineProperty(obj, key, value) {
|
|
57
|
+
key = _toPropertyKey(key);
|
|
58
|
+
if (key in obj) {
|
|
59
|
+
Object.defineProperty(obj, key, {
|
|
60
|
+
value: value,
|
|
61
|
+
enumerable: true,
|
|
62
|
+
configurable: true,
|
|
63
|
+
writable: true
|
|
64
|
+
});
|
|
65
|
+
} else {
|
|
66
|
+
obj[key] = value;
|
|
67
|
+
}
|
|
68
|
+
return obj;
|
|
42
69
|
}
|
|
43
70
|
|
|
44
71
|
function _arrayWithHoles(arr) {
|
|
@@ -96,7 +123,7 @@ function _slicedToArray(arr, i) {
|
|
|
96
123
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
97
124
|
}
|
|
98
125
|
|
|
99
|
-
var TabMenuBase = {
|
|
126
|
+
var TabMenuBase = componentbase.ComponentBase.extend({
|
|
100
127
|
defaultProps: {
|
|
101
128
|
__TYPE: 'TabMenu',
|
|
102
129
|
id: null,
|
|
@@ -106,15 +133,11 @@ var TabMenuBase = {
|
|
|
106
133
|
className: null,
|
|
107
134
|
onTabChange: null,
|
|
108
135
|
children: undefined
|
|
109
|
-
},
|
|
110
|
-
getProps: function getProps(props) {
|
|
111
|
-
return utils.ObjectUtils.getMergedProps(props, TabMenuBase.defaultProps);
|
|
112
|
-
},
|
|
113
|
-
getOtherProps: function getOtherProps(props) {
|
|
114
|
-
return utils.ObjectUtils.getDiffProps(props, TabMenuBase.defaultProps);
|
|
115
136
|
}
|
|
116
|
-
};
|
|
137
|
+
});
|
|
117
138
|
|
|
139
|
+
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; }
|
|
140
|
+
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; }
|
|
118
141
|
var TabMenu = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
119
142
|
var props = TabMenuBase.getProps(inProps);
|
|
120
143
|
var _React$useState = React__namespace.useState(props.activeIndex),
|
|
@@ -126,6 +149,13 @@ var TabMenu = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
|
|
|
126
149
|
var navRef = React__namespace.useRef(null);
|
|
127
150
|
var tabsRef = React__namespace.useRef({});
|
|
128
151
|
var activeIndex = props.onTabChange ? props.activeIndex : activeIndexState;
|
|
152
|
+
var _TabMenuBase$setMetaD = TabMenuBase.setMetaData({
|
|
153
|
+
props: props,
|
|
154
|
+
state: {
|
|
155
|
+
activeIndex: activeIndexState
|
|
156
|
+
}
|
|
157
|
+
}),
|
|
158
|
+
ptm = _TabMenuBase$setMetaD.ptm;
|
|
129
159
|
var itemClick = function itemClick(event, item, index) {
|
|
130
160
|
if (item.disabled) {
|
|
131
161
|
event.preventDefault();
|
|
@@ -190,23 +220,26 @@ var TabMenu = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
|
|
|
190
220
|
'p-disabled': disabled
|
|
191
221
|
}, _className);
|
|
192
222
|
var iconClassName = utils.classNames('p-menuitem-icon', _icon);
|
|
193
|
-
var
|
|
194
|
-
className:
|
|
195
|
-
},
|
|
223
|
+
var iconProps = utils.mergeProps({
|
|
224
|
+
className: iconClassName
|
|
225
|
+
}, ptm('icon'));
|
|
226
|
+
var icon = utils.IconUtils.getJSXIcon(_icon, _objectSpread({}, iconProps), {
|
|
196
227
|
props: props
|
|
197
228
|
});
|
|
198
|
-
var
|
|
199
|
-
className:
|
|
200
|
-
},
|
|
201
|
-
var
|
|
229
|
+
var labelProps = utils.mergeProps({
|
|
230
|
+
className: 'p-menuitem-text'
|
|
231
|
+
}, ptm('label'));
|
|
232
|
+
var label = _label && /*#__PURE__*/React__namespace.createElement("span", labelProps, _label);
|
|
233
|
+
var actionProps = utils.mergeProps({
|
|
202
234
|
href: url || '#',
|
|
203
|
-
className:
|
|
235
|
+
className: 'p-menuitem-link',
|
|
204
236
|
target: target,
|
|
205
237
|
onClick: function onClick(event) {
|
|
206
238
|
return itemClick(event, item, index);
|
|
207
239
|
},
|
|
208
|
-
role:
|
|
209
|
-
},
|
|
240
|
+
role: 'presentation'
|
|
241
|
+
}, ptm('action'));
|
|
242
|
+
var content = /*#__PURE__*/React__namespace.createElement("a", actionProps, icon, label, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
210
243
|
if (template) {
|
|
211
244
|
var defaultContentOptions = {
|
|
212
245
|
onClick: function onClick(event) {
|
|
@@ -223,37 +256,40 @@ var TabMenu = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
|
|
|
223
256
|
};
|
|
224
257
|
content = utils.ObjectUtils.getJSXElement(template, item, defaultContentOptions);
|
|
225
258
|
}
|
|
226
|
-
|
|
259
|
+
var menuItemProps = utils.mergeProps({
|
|
227
260
|
ref: tabsRef.current["tab_".concat(index)],
|
|
228
261
|
key: key,
|
|
229
262
|
className: className,
|
|
230
263
|
style: style,
|
|
231
|
-
role:
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
},
|
|
264
|
+
role: 'tab',
|
|
265
|
+
'aria-selected': active,
|
|
266
|
+
'aria-expanded': active,
|
|
267
|
+
'aria-disabled': disabled
|
|
268
|
+
}, ptm('menuitem'));
|
|
269
|
+
return /*#__PURE__*/React__namespace.createElement("li", menuItemProps, content);
|
|
236
270
|
};
|
|
237
271
|
var createItems = function createItems() {
|
|
238
272
|
return props.model.map(createMenuItem);
|
|
239
273
|
};
|
|
240
274
|
if (props.model) {
|
|
241
|
-
var otherProps = TabMenuBase.getOtherProps(props);
|
|
242
275
|
var className = utils.classNames('p-tabmenu p-component', props.className);
|
|
243
276
|
var items = createItems();
|
|
244
|
-
|
|
277
|
+
var inkbarProps = utils.mergeProps({
|
|
278
|
+
ref: inkbarRef,
|
|
279
|
+
className: 'p-tabmenu-ink-bar'
|
|
280
|
+
}, ptm('inkbar'));
|
|
281
|
+
var menuProps = utils.mergeProps({
|
|
282
|
+
ref: navRef,
|
|
283
|
+
className: 'p-tabmenu-nav p-reset',
|
|
284
|
+
role: 'tablist'
|
|
285
|
+
}, ptm('menu'));
|
|
286
|
+
var rootProps = utils.mergeProps({
|
|
245
287
|
id: props.id,
|
|
246
288
|
ref: elementRef,
|
|
247
289
|
className: className,
|
|
248
290
|
style: props.style
|
|
249
|
-
},
|
|
250
|
-
|
|
251
|
-
className: "p-tabmenu-nav p-reset",
|
|
252
|
-
role: "tablist"
|
|
253
|
-
}, items, /*#__PURE__*/React__namespace.createElement("li", {
|
|
254
|
-
ref: inkbarRef,
|
|
255
|
-
className: "p-tabmenu-ink-bar"
|
|
256
|
-
})));
|
|
291
|
+
}, TabMenuBase.getOtherProps(props), ptm('root'));
|
|
292
|
+
return /*#__PURE__*/React__namespace.createElement("div", rootProps, /*#__PURE__*/React__namespace.createElement("ul", menuProps, items, /*#__PURE__*/React__namespace.createElement("li", inkbarProps)));
|
|
257
293
|
}
|
|
258
294
|
return null;
|
|
259
295
|
}));
|