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/blockui/blockui.esm.js
CHANGED
|
@@ -2,22 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import PrimeReact from 'primereact/api';
|
|
3
3
|
import { useMountEffect, useUpdateEffect, useUnmountEffect } from 'primereact/hooks';
|
|
4
4
|
import { Portal } from 'primereact/portal';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
function _extends() {
|
|
8
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
9
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
10
|
-
var source = arguments[i];
|
|
11
|
-
for (var key in source) {
|
|
12
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
13
|
-
target[key] = source[key];
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return target;
|
|
18
|
-
};
|
|
19
|
-
return _extends.apply(this, arguments);
|
|
20
|
-
}
|
|
5
|
+
import { DomHandler, ZIndexUtils, classNames, mergeProps, ObjectUtils } from 'primereact/utils';
|
|
6
|
+
import { ComponentBase } from 'primereact/componentbase';
|
|
21
7
|
|
|
22
8
|
function _arrayWithHoles(arr) {
|
|
23
9
|
if (Array.isArray(arr)) return arr;
|
|
@@ -74,7 +60,7 @@ function _slicedToArray(arr, i) {
|
|
|
74
60
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
75
61
|
}
|
|
76
62
|
|
|
77
|
-
var BlockUIBase = {
|
|
63
|
+
var BlockUIBase = ComponentBase.extend({
|
|
78
64
|
defaultProps: {
|
|
79
65
|
__TYPE: 'BlockUI',
|
|
80
66
|
autoZIndex: true,
|
|
@@ -90,14 +76,8 @@ var BlockUIBase = {
|
|
|
90
76
|
style: null,
|
|
91
77
|
template: null,
|
|
92
78
|
children: undefined
|
|
93
|
-
},
|
|
94
|
-
getProps: function getProps(props) {
|
|
95
|
-
return ObjectUtils.getMergedProps(props, BlockUIBase.defaultProps);
|
|
96
|
-
},
|
|
97
|
-
getOtherProps: function getOtherProps(props) {
|
|
98
|
-
return ObjectUtils.getDiffProps(props, BlockUIBase.defaultProps);
|
|
99
79
|
}
|
|
100
|
-
};
|
|
80
|
+
});
|
|
101
81
|
|
|
102
82
|
var BlockUI = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
103
83
|
var props = BlockUIBase.getProps(inProps);
|
|
@@ -107,6 +87,10 @@ var BlockUI = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
107
87
|
setVisibleState = _React$useState2[1];
|
|
108
88
|
var elementRef = React.useRef(null);
|
|
109
89
|
var maskRef = React.useRef(null);
|
|
90
|
+
var _BlockUIBase$setMetaD = BlockUIBase.setMetaData({
|
|
91
|
+
props: props
|
|
92
|
+
}),
|
|
93
|
+
ptm = _BlockUIBase$setMetaD.ptm;
|
|
110
94
|
var block = function block() {
|
|
111
95
|
setVisibleState(true);
|
|
112
96
|
};
|
|
@@ -179,15 +163,15 @@ var BlockUI = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
179
163
|
}
|
|
180
164
|
return null;
|
|
181
165
|
};
|
|
182
|
-
var otherProps = BlockUIBase.getOtherProps(props);
|
|
183
166
|
var mask = createMask();
|
|
184
167
|
var className = classNames('p-blockui-container', props.containerClassName);
|
|
185
|
-
|
|
168
|
+
var rootProps = mergeProps({
|
|
186
169
|
id: props.id,
|
|
187
170
|
ref: elementRef,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
},
|
|
171
|
+
style: props.containerStyle,
|
|
172
|
+
className: className
|
|
173
|
+
}, BlockUIBase.getOtherProps(props), ptm('root'));
|
|
174
|
+
return /*#__PURE__*/React.createElement("div", rootProps, props.children, mask);
|
|
191
175
|
});
|
|
192
176
|
BlockUI.displayName = 'BlockUI';
|
|
193
177
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import n from"primereact/api";import{useMountEffect as
|
|
1
|
+
import*as e from"react";import n from"primereact/api";import{useMountEffect as t,useUpdateEffect as r,useUnmountEffect as o}from"primereact/hooks";import{Portal as l}from"primereact/portal";import{DomHandler as a,ZIndexUtils as c,classNames as u,mergeProps as i,ObjectUtils as d}from"primereact/utils";import{ComponentBase as m}from"primereact/componentbase";function f(e){if(Array.isArray(e))return e}function s(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,l,a,c=[],u=!0,i=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=l.call(t)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(e){i=!0,o=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(i)throw o}}return c}}function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function y(e,n){if(e){if("string"==typeof e)return p(e,n);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)?p(e,n):void 0}}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var v=m.extend({defaultProps:{__TYPE:"BlockUI",autoZIndex:!0,baseZIndex:0,blocked:!1,className:null,containerClassName:null,containerStyle:null,fullScreen:!1,id:null,onBlocked:null,onUnblocked:null,style:null,template:null,children:void 0}}),k=e.forwardRef((function(m,p){var k,h,S=v.getProps(m),I=e.useState(S.blocked),g=(h=2,f(k=I)||s(k,h)||y(k,h)||b()),x=g[0],E=g[1],w=e.useRef(null),C=e.useRef(null),N=v.setMetaData({props:S}).ptm,A=function(){E(!0)},U=function(){var e=function(){E(!1),S.fullScreen&&a.removeClass(document.body,"p-overflow-hidden"),S.onUnblocked&&S.onUnblocked()};C.current?(a.addClass(C.current,"p-component-overlay-leave"),C.current.addEventListener("animationend",(function(){c.clear(C.current),e()}))):e()},j=function(){if(S.fullScreen&&(a.addClass(document.body,"p-overflow-hidden"),document.activeElement.blur()),S.autoZIndex){var e=S.fullScreen?"modal":"overlay";c.set(e,C.current,n.autoZIndex,S.baseZIndex||n.zIndex[e])}S.onBlocked&&S.onBlocked()};t((function(){x&&A()})),r((function(){S.blocked?A():U()}),[S.blocked]),o((function(){S.fullScreen&&a.removeClass(document.body,"p-overflow-hidden"),c.clear(C.current)})),e.useImperativeHandle(p,(function(){return{props:S,block:A,unblock:U,getElement:function(){return w.current}}}));var B=function(){if(x){var n=S.fullScreen?document.body:"self",t=u("p-blockui p-component-overlay p-component-overlay-enter",{"p-blockui-document":S.fullScreen},S.className),r=S.template?d.getJSXElement(S.template,S):null;return e.createElement(l,{element:e.createElement("div",{ref:C,className:t,style:S.style},r),appendTo:n,onMounted:j})}return null}(),O=u("p-blockui-container",S.containerClassName),Z=i({id:S.id,ref:w,style:S.containerStyle,className:O},v.getOtherProps(S),N("root"));return e.createElement("div",Z,S.children,B)}));k.displayName="BlockUI";export{k as BlockUI};
|
package/blockui/blockui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.blockui = (function (exports, React, PrimeReact, hooks, portal, utils) {
|
|
2
|
+
this.primereact.blockui = (function (exports, React, PrimeReact, hooks, portal, utils, componentbase) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -25,21 +25,6 @@ this.primereact.blockui = (function (exports, React, PrimeReact, hooks, portal,
|
|
|
25
25
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
26
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
27
27
|
|
|
28
|
-
function _extends() {
|
|
29
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
30
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
31
|
-
var source = arguments[i];
|
|
32
|
-
for (var key in source) {
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34
|
-
target[key] = source[key];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return target;
|
|
39
|
-
};
|
|
40
|
-
return _extends.apply(this, arguments);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
28
|
function _arrayWithHoles(arr) {
|
|
44
29
|
if (Array.isArray(arr)) return arr;
|
|
45
30
|
}
|
|
@@ -95,7 +80,7 @@ this.primereact.blockui = (function (exports, React, PrimeReact, hooks, portal,
|
|
|
95
80
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
96
81
|
}
|
|
97
82
|
|
|
98
|
-
var BlockUIBase = {
|
|
83
|
+
var BlockUIBase = componentbase.ComponentBase.extend({
|
|
99
84
|
defaultProps: {
|
|
100
85
|
__TYPE: 'BlockUI',
|
|
101
86
|
autoZIndex: true,
|
|
@@ -111,14 +96,8 @@ this.primereact.blockui = (function (exports, React, PrimeReact, hooks, portal,
|
|
|
111
96
|
style: null,
|
|
112
97
|
template: null,
|
|
113
98
|
children: undefined
|
|
114
|
-
},
|
|
115
|
-
getProps: function getProps(props) {
|
|
116
|
-
return utils.ObjectUtils.getMergedProps(props, BlockUIBase.defaultProps);
|
|
117
|
-
},
|
|
118
|
-
getOtherProps: function getOtherProps(props) {
|
|
119
|
-
return utils.ObjectUtils.getDiffProps(props, BlockUIBase.defaultProps);
|
|
120
99
|
}
|
|
121
|
-
};
|
|
100
|
+
});
|
|
122
101
|
|
|
123
102
|
var BlockUI = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
124
103
|
var props = BlockUIBase.getProps(inProps);
|
|
@@ -128,6 +107,10 @@ this.primereact.blockui = (function (exports, React, PrimeReact, hooks, portal,
|
|
|
128
107
|
setVisibleState = _React$useState2[1];
|
|
129
108
|
var elementRef = React__namespace.useRef(null);
|
|
130
109
|
var maskRef = React__namespace.useRef(null);
|
|
110
|
+
var _BlockUIBase$setMetaD = BlockUIBase.setMetaData({
|
|
111
|
+
props: props
|
|
112
|
+
}),
|
|
113
|
+
ptm = _BlockUIBase$setMetaD.ptm;
|
|
131
114
|
var block = function block() {
|
|
132
115
|
setVisibleState(true);
|
|
133
116
|
};
|
|
@@ -200,15 +183,15 @@ this.primereact.blockui = (function (exports, React, PrimeReact, hooks, portal,
|
|
|
200
183
|
}
|
|
201
184
|
return null;
|
|
202
185
|
};
|
|
203
|
-
var otherProps = BlockUIBase.getOtherProps(props);
|
|
204
186
|
var mask = createMask();
|
|
205
187
|
var className = utils.classNames('p-blockui-container', props.containerClassName);
|
|
206
|
-
|
|
188
|
+
var rootProps = utils.mergeProps({
|
|
207
189
|
id: props.id,
|
|
208
190
|
ref: elementRef,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
},
|
|
191
|
+
style: props.containerStyle,
|
|
192
|
+
className: className
|
|
193
|
+
}, BlockUIBase.getOtherProps(props), ptm('root'));
|
|
194
|
+
return /*#__PURE__*/React__namespace.createElement("div", rootProps, props.children, mask);
|
|
212
195
|
});
|
|
213
196
|
BlockUI.displayName = 'BlockUI';
|
|
214
197
|
|
|
@@ -218,4 +201,4 @@ this.primereact.blockui = (function (exports, React, PrimeReact, hooks, portal,
|
|
|
218
201
|
|
|
219
202
|
return exports;
|
|
220
203
|
|
|
221
|
-
})({}, React, primereact.api, primereact.hooks, primereact.portal, primereact.utils);
|
|
204
|
+
})({}, React, primereact.api, primereact.hooks, primereact.portal, primereact.utils, primereact.componentbase);
|
package/blockui/blockui.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.blockui=function(e,t,n,r,l,o){"use strict";function
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.blockui=function(e,t,n,r,l,o,a){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function u(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 i=u(t),d=c(n);function s(e){if(Array.isArray(e))return e}function f(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,o,a,c=[],u=!0,i=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){i=!0,l=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(i)throw l}}return c}}function m(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 p(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var y=a.ComponentBase.extend({defaultProps:{__TYPE:"BlockUI",autoZIndex:!0,baseZIndex:0,blocked:!1,className:null,containerClassName:null,containerStyle:null,fullScreen:!1,id:null,onBlocked:null,onUnblocked:null,style:null,template:null,children:void 0}}),v=i.forwardRef((function(e,t){var n,a,c=y.getProps(e),u=i.useState(c.blocked),m=(a=2,s(n=u)||f(n,a)||p(n,a)||b()),v=m[0],k=m[1],h=i.useRef(null),I=i.useRef(null),S=y.setMetaData({props:c}).ptm,g=function(){k(!0)},j=function(){var e=function(){k(!1),c.fullScreen&&o.DomHandler.removeClass(document.body,"p-overflow-hidden"),c.onUnblocked&&c.onUnblocked()};I.current?(o.DomHandler.addClass(I.current,"p-component-overlay-leave"),I.current.addEventListener("animationend",(function(){o.ZIndexUtils.clear(I.current),e()}))):e()},E=function(){if(c.fullScreen&&(o.DomHandler.addClass(document.body,"p-overflow-hidden"),document.activeElement.blur()),c.autoZIndex){var e=c.fullScreen?"modal":"overlay";o.ZIndexUtils.set(e,I.current,d.default.autoZIndex,c.baseZIndex||d.default.zIndex[e])}c.onBlocked&&c.onBlocked()};r.useMountEffect((function(){v&&g()})),r.useUpdateEffect((function(){c.blocked?g():j()}),[c.blocked]),r.useUnmountEffect((function(){c.fullScreen&&o.DomHandler.removeClass(document.body,"p-overflow-hidden"),o.ZIndexUtils.clear(I.current)})),i.useImperativeHandle(t,(function(){return{props:c,block:g,unblock:j,getElement:function(){return h.current}}}));var O=function(){if(v){var e=c.fullScreen?document.body:"self",t=o.classNames("p-blockui p-component-overlay p-component-overlay-enter",{"p-blockui-document":c.fullScreen},c.className),n=c.template?o.ObjectUtils.getJSXElement(c.template,c):null;return i.createElement(l.Portal,{element:i.createElement("div",{ref:I,className:t,style:c.style},n),appendTo:e,onMounted:E})}return null}(),U=o.classNames("p-blockui-container",c.containerClassName),x=o.mergeProps({id:c.id,ref:h,style:c.containerStyle,className:U},y.getOtherProps(c),S("root"));return i.createElement("div",x,c.children,O)}));return v.displayName="BlockUI",e.BlockUI=v,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.hooks,primereact.portal,primereact.utils,primereact.componentbase);
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var utils = require('primereact/utils');
|
|
7
|
+
var componentbase = require('primereact/componentbase');
|
|
7
8
|
var chevronright = require('primereact/icons/chevronright');
|
|
8
9
|
|
|
9
10
|
function _interopNamespace(e) {
|
|
@@ -26,22 +27,48 @@ 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
|
-
var BreadCrumbBase = {
|
|
71
|
+
var BreadCrumbBase = componentbase.ComponentBase.extend({
|
|
45
72
|
defaultProps: {
|
|
46
73
|
__TYPE: 'BreadCrumb',
|
|
47
74
|
id: null,
|
|
@@ -51,17 +78,17 @@ var BreadCrumbBase = {
|
|
|
51
78
|
style: null,
|
|
52
79
|
className: null,
|
|
53
80
|
children: undefined
|
|
54
|
-
},
|
|
55
|
-
getProps: function getProps(props) {
|
|
56
|
-
return utils.ObjectUtils.getMergedProps(props, BreadCrumbBase.defaultProps);
|
|
57
|
-
},
|
|
58
|
-
getOtherProps: function getOtherProps(props) {
|
|
59
|
-
return utils.ObjectUtils.getDiffProps(props, BreadCrumbBase.defaultProps);
|
|
60
81
|
}
|
|
61
|
-
};
|
|
82
|
+
});
|
|
62
83
|
|
|
84
|
+
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; }
|
|
85
|
+
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; }
|
|
63
86
|
var BreadCrumb = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
64
87
|
var props = BreadCrumbBase.getProps(inProps);
|
|
88
|
+
var _BreadCrumbBase$setMe = BreadCrumbBase.setMetaData({
|
|
89
|
+
props: props
|
|
90
|
+
}),
|
|
91
|
+
ptm = _BreadCrumbBase$setMe.ptm;
|
|
65
92
|
var elementRef = React__namespace.useRef(null);
|
|
66
93
|
var itemClick = function itemClick(event, item) {
|
|
67
94
|
if (item.disabled) {
|
|
@@ -94,20 +121,22 @@ var BreadCrumb = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
94
121
|
var _className2 = utils.classNames('p-breadcrumb-home', {
|
|
95
122
|
'p-disabled': disabled
|
|
96
123
|
}, _className);
|
|
97
|
-
var
|
|
124
|
+
var iconProps = utils.mergeProps({
|
|
98
125
|
className: 'p-menuitem-icon'
|
|
99
|
-
},
|
|
126
|
+
}, ptm('icon'));
|
|
127
|
+
var icon = utils.IconUtils.getJSXIcon(_icon, _objectSpread({}, iconProps), {
|
|
100
128
|
props: props
|
|
101
129
|
});
|
|
102
|
-
var
|
|
130
|
+
var actionProps = utils.mergeProps({
|
|
103
131
|
href: url || '#',
|
|
104
|
-
className:
|
|
105
|
-
|
|
132
|
+
className: 'p-menuitem-link',
|
|
133
|
+
'aria-disabled': disabled,
|
|
106
134
|
target: target,
|
|
107
135
|
onClick: function onClick(event) {
|
|
108
136
|
return itemClick(event, home);
|
|
109
137
|
}
|
|
110
|
-
},
|
|
138
|
+
}, ptm('action'));
|
|
139
|
+
var content = /*#__PURE__*/React__namespace.createElement("a", actionProps, icon);
|
|
111
140
|
if (template) {
|
|
112
141
|
var defaultContentOptions = {
|
|
113
142
|
onClick: function onClick(event) {
|
|
@@ -120,44 +149,49 @@ var BreadCrumb = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
120
149
|
};
|
|
121
150
|
content = utils.ObjectUtils.getJSXElement(template, home, defaultContentOptions);
|
|
122
151
|
}
|
|
123
|
-
|
|
152
|
+
var menuitemProps = utils.mergeProps({
|
|
124
153
|
className: _className2,
|
|
125
154
|
style: style
|
|
126
|
-
},
|
|
155
|
+
}, ptm('menuitem'));
|
|
156
|
+
return /*#__PURE__*/React__namespace.createElement("li", menuitemProps, content);
|
|
127
157
|
}
|
|
128
158
|
return null;
|
|
129
159
|
};
|
|
130
160
|
var createSeparator = function createSeparator() {
|
|
131
161
|
var iconClassName = 'p-breadcrumb-chevron';
|
|
132
|
-
var
|
|
133
|
-
className: iconClassName
|
|
134
|
-
});
|
|
135
|
-
var separatorIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
162
|
+
var separatorIconProps = utils.mergeProps({
|
|
136
163
|
className: iconClassName
|
|
137
|
-
},
|
|
164
|
+
}, ptm('separatorIcon'));
|
|
165
|
+
var icon = props.separatorIcon || /*#__PURE__*/React__namespace.createElement(chevronright.ChevronRightIcon, separatorIconProps);
|
|
166
|
+
var separatorIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, separatorIconProps), {
|
|
138
167
|
props: props
|
|
139
168
|
});
|
|
140
|
-
|
|
169
|
+
var separatorProps = utils.mergeProps({
|
|
170
|
+
className: 'p-menuitem-separator'
|
|
171
|
+
}, ptm('separator'));
|
|
172
|
+
return /*#__PURE__*/React__namespace.createElement("li", separatorProps, separatorIcon);
|
|
141
173
|
};
|
|
142
174
|
var createMenuitem = function createMenuitem(item) {
|
|
143
175
|
if (item.visible === false) {
|
|
144
176
|
return null;
|
|
145
177
|
}
|
|
146
|
-
var className = utils.classNames(item.className, {
|
|
178
|
+
var className = utils.classNames('p-menuitem', item.className, {
|
|
147
179
|
'p-disabled': item.disabled
|
|
148
180
|
});
|
|
149
|
-
var
|
|
150
|
-
className:
|
|
151
|
-
},
|
|
152
|
-
var
|
|
181
|
+
var labelProps = utils.mergeProps({
|
|
182
|
+
className: 'p-menuitem-text'
|
|
183
|
+
}, ptm('label'));
|
|
184
|
+
var label = item.label && /*#__PURE__*/React__namespace.createElement("span", labelProps, item.label);
|
|
185
|
+
var actionProps = utils.mergeProps({
|
|
153
186
|
href: item.url || '#',
|
|
154
|
-
className:
|
|
187
|
+
className: 'p-menuitem-link',
|
|
155
188
|
target: item.target,
|
|
156
189
|
onClick: function onClick(event) {
|
|
157
190
|
return itemClick(event, item);
|
|
158
191
|
},
|
|
159
|
-
|
|
160
|
-
},
|
|
192
|
+
'aria-disabled': item.disabled
|
|
193
|
+
}, ptm('action'));
|
|
194
|
+
var content = /*#__PURE__*/React__namespace.createElement("a", actionProps, label);
|
|
161
195
|
if (item.template) {
|
|
162
196
|
var defaultContentOptions = {
|
|
163
197
|
onClick: function onClick(event) {
|
|
@@ -170,10 +204,11 @@ var BreadCrumb = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
170
204
|
};
|
|
171
205
|
content = utils.ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);
|
|
172
206
|
}
|
|
173
|
-
|
|
207
|
+
var menuitemProps = utils.mergeProps({
|
|
174
208
|
className: className,
|
|
175
209
|
style: item.style
|
|
176
|
-
},
|
|
210
|
+
}, ptm('menuitem'));
|
|
211
|
+
return /*#__PURE__*/React__namespace.createElement("li", menuitemProps, content);
|
|
177
212
|
};
|
|
178
213
|
var createMenuitems = function createMenuitems() {
|
|
179
214
|
if (props.model) {
|
|
@@ -200,18 +235,21 @@ var BreadCrumb = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
200
235
|
}
|
|
201
236
|
};
|
|
202
237
|
});
|
|
203
|
-
var otherProps = BreadCrumbBase.getOtherProps(props);
|
|
204
238
|
var className = utils.classNames('p-breadcrumb p-component', props.className);
|
|
205
239
|
var home = createHome();
|
|
206
240
|
var items = createMenuitems();
|
|
207
241
|
var separator = createSeparator();
|
|
208
|
-
|
|
242
|
+
var menuProps = utils.mergeProps({
|
|
243
|
+
className: 'p-breadcrumb-list'
|
|
244
|
+
}, ptm('menu'));
|
|
245
|
+
var rootProps = utils.mergeProps({
|
|
209
246
|
id: props.id,
|
|
210
247
|
ref: elementRef,
|
|
211
248
|
className: className,
|
|
212
249
|
style: props.style,
|
|
213
|
-
|
|
214
|
-
},
|
|
250
|
+
'aria-label': 'Breadcrumb'
|
|
251
|
+
}, BreadCrumbBase.getOtherProps(props), ptm('root'));
|
|
252
|
+
return /*#__PURE__*/React__namespace.createElement("nav", rootProps, /*#__PURE__*/React__namespace.createElement("ul", menuProps, home, separator, items));
|
|
215
253
|
}));
|
|
216
254
|
BreadCrumb.displayName = 'BreadCrumb';
|
|
217
255
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("primereact/utils"),t=require("primereact/componentbase"),n=require("primereact/icons/chevronright");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(e);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 i(e,r){if("object"!==o(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function u(e){var r=i(e,"string");return"symbol"===o(r)?r:String(r)}function c(e,r,t){return(r=u(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var s=t.ComponentBase.extend({defaultProps:{__TYPE:"BreadCrumb",id:null,model:null,home:null,separatorIcon:null,style:null,className:null,children:void 0}});function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?m(Object(t),!0).forEach((function(r){c(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var b=l.memo(l.forwardRef((function(e,t){var a=s.getProps(e),o=s.setMetaData({props:a}).ptm,i=l.useRef(null),u=function(e,r){r.disabled?e.preventDefault():(r.url||e.preventDefault(),r.command&&r.command({originalEvent:e,item:r}))},c=function(){var e=r.mergeProps({className:"p-breadcrumb-chevron"},o("separatorIcon")),t=r.IconUtils.getJSXIcon(a.separatorIcon||l.createElement(n.ChevronRightIcon,e),p({},e),{props:a}),i=r.mergeProps({className:"p-menuitem-separator"},o("separator"));return l.createElement("li",i,t)},m=function(e){if(!1===e.visible)return null;var t=r.classNames("p-menuitem",e.className,{"p-disabled":e.disabled}),n=r.mergeProps({className:"p-menuitem-text"},o("label")),i=e.label&&l.createElement("span",n,e.label),c=r.mergeProps({href:e.url||"#",className:"p-menuitem-link",target:e.target,onClick:function(r){return u(r,e)},"aria-disabled":e.disabled},o("action")),s=l.createElement("a",c,i);e.template&&(s=r.ObjectUtils.getJSXElement(e.template,e,{onClick:function(r){return u(r,e)},className:"p-menuitem-link",labelClassName:"p-menuitem-text",element:s,props:a}));var m=r.mergeProps({className:t,style:e.style},o("menuitem"));return l.createElement("li",m,s)};l.useImperativeHandle(t,(function(){return{props:a,getElement:function(){return i.current}}}));var b=r.classNames("p-breadcrumb p-component",a.className),f=function(){var e=a.home;if(e){if(!1===e.visible)return null;var t=e.icon,n=e.target,i=e.url,c=e.disabled,s=e.style,m=e.template,b=r.classNames("p-breadcrumb-home",{"p-disabled":c},e.className),f=r.mergeProps({className:"p-menuitem-icon"},o("icon")),d=r.IconUtils.getJSXIcon(t,p({},f),{props:a}),v=r.mergeProps({href:i||"#",className:"p-menuitem-link","aria-disabled":c,target:n,onClick:function(r){return u(r,e)}},o("action")),g=l.createElement("a",v,d);if(m)g=r.ObjectUtils.getJSXElement(m,e,{onClick:function(r){return u(r,e)},className:"p-menuitem-link",labelClassName:"p-menuitem-text",element:g,props:a});var y=r.mergeProps({className:b,style:s},o("menuitem"));return l.createElement("li",y,g)}return null}(),d=function(){if(a.model){var e=a.model.map((function(e,r){if(!1===e.visible)return null;var t=m(e),n=r===a.model.length-1?null:c();return l.createElement(l.Fragment,{key:e.label+"_"+r},t,n)}));return e}return null}(),v=c(),g=r.mergeProps({className:"p-breadcrumb-list"},o("menu")),y=r.mergeProps({id:a.id,ref:i,className:b,style:a.style,"aria-label":"Breadcrumb"},s.getOtherProps(a),o("root"));return l.createElement("nav",y,l.createElement("ul",g,f,v,d))})));b.displayName="BreadCrumb",exports.BreadCrumb=b;
|
|
@@ -9,8 +9,55 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
import { MenuItem } from '../menuitem';
|
|
12
|
-
import { IconType } from '../utils/utils';
|
|
12
|
+
import { IconType, PassThroughType } from '../utils/utils';
|
|
13
13
|
|
|
14
|
+
export declare type BreadCrumbPassThroughType<T> = PassThroughType<T, BreadCrumbPassThroughMethodOptions>;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Custom passthrough(pt) option method.
|
|
18
|
+
*/
|
|
19
|
+
export interface BreadCrumbPassThroughMethodOptions {
|
|
20
|
+
props: BreadCrumbProps;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Custom passthrough(pt) options.
|
|
25
|
+
* @see {@link BreadCrumbProps.pt}
|
|
26
|
+
*/
|
|
27
|
+
export interface BreadCrumbPassThroughOptions {
|
|
28
|
+
/**
|
|
29
|
+
* Uses to pass attributes to the root's DOM element.
|
|
30
|
+
*/
|
|
31
|
+
root?: BreadCrumbPassThroughType<React.HTMLAttributes<HTMLElement>>;
|
|
32
|
+
/**
|
|
33
|
+
* Uses to pass attributes to the list's DOM element.
|
|
34
|
+
*/
|
|
35
|
+
menu?: BreadCrumbPassThroughType<React.HTMLAttributes<HTMLUListElement>>;
|
|
36
|
+
/**
|
|
37
|
+
* Uses to pass attributes to the list item's DOM element.
|
|
38
|
+
*/
|
|
39
|
+
menuitem?: BreadCrumbPassThroughType<React.HTMLAttributes<HTMLLIElement>>;
|
|
40
|
+
/**
|
|
41
|
+
* Uses to pass attributes to the action's DOM element.
|
|
42
|
+
*/
|
|
43
|
+
action?: BreadCrumbPassThroughType<React.HTMLAttributes<HTMLAnchorElement>>;
|
|
44
|
+
/**
|
|
45
|
+
* Uses to pass attributes to the icon's DOM element.
|
|
46
|
+
*/
|
|
47
|
+
icon?: BreadCrumbPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
48
|
+
/**
|
|
49
|
+
* Uses to pass attributes to the label's DOM element.
|
|
50
|
+
*/
|
|
51
|
+
label?: BreadCrumbPassThroughType<React.HTMLAttributes<HTMLSpanElement>>;
|
|
52
|
+
/**
|
|
53
|
+
* Uses to pass attributes to the separator's DOM element.
|
|
54
|
+
*/
|
|
55
|
+
separator?: BreadCrumbPassThroughType<React.HTMLAttributes<HTMLLIElement>>;
|
|
56
|
+
/**
|
|
57
|
+
* Uses to pass attributes to the separator icon's DOM element.
|
|
58
|
+
*/
|
|
59
|
+
separatorIcon?: BreadCrumbPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
60
|
+
}
|
|
14
61
|
/**
|
|
15
62
|
* Defines valid properties in BreadCrumb component. In addition to these, all properties of HTMLElement can be used in this component.
|
|
16
63
|
* @group Properties
|
|
@@ -33,6 +80,11 @@ export interface BreadCrumbProps extends Omit<React.DetailedHTMLProps<React.HTML
|
|
|
33
80
|
* @readonly
|
|
34
81
|
*/
|
|
35
82
|
children?: React.ReactNode | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
85
|
+
* @type {BreadCrumbPassThroughOptions}
|
|
86
|
+
*/
|
|
87
|
+
pt?: BreadCrumbPassThroughOptions;
|
|
36
88
|
}
|
|
37
89
|
|
|
38
90
|
/**
|