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/fileupload/fileupload.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.fileupload = (function (exports, React, api, button, messages, progressbar, ripple, utils, plus, upload, times) {
|
|
2
|
+
this.primereact.fileupload = (function (exports, React, api, button, messages, progressbar, ripple, utils, componentbase, plus, upload, times) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopNamespace(e) {
|
|
@@ -22,6 +22,47 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
22
22
|
|
|
23
23
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
24
|
|
|
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;
|
|
64
|
+
}
|
|
65
|
+
|
|
25
66
|
function _extends() {
|
|
26
67
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
27
68
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -112,7 +153,7 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
112
153
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
|
|
113
154
|
}
|
|
114
155
|
|
|
115
|
-
var FileUploadBase = {
|
|
156
|
+
var FileUploadBase = componentbase.ComponentBase.extend({
|
|
116
157
|
defaultProps: {
|
|
117
158
|
__TYPE: 'FileUpload',
|
|
118
159
|
id: null,
|
|
@@ -129,7 +170,7 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
129
170
|
invalidFileSizeMessageDetail: 'maximum upload size is {0}.',
|
|
130
171
|
style: null,
|
|
131
172
|
className: null,
|
|
132
|
-
|
|
173
|
+
withCredentials: false,
|
|
133
174
|
previewWidth: 50,
|
|
134
175
|
chooseLabel: null,
|
|
135
176
|
uploadLabel: null,
|
|
@@ -177,57 +218,10 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
177
218
|
uploadHandler: null,
|
|
178
219
|
onRemove: null,
|
|
179
220
|
children: undefined
|
|
180
|
-
},
|
|
181
|
-
getProps: function getProps(props) {
|
|
182
|
-
return utils.ObjectUtils.getMergedProps(props, FileUploadBase.defaultProps);
|
|
183
|
-
},
|
|
184
|
-
getOtherProps: function getOtherProps(props) {
|
|
185
|
-
return utils.ObjectUtils.getDiffProps(props, FileUploadBase.defaultProps);
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
function _typeof(obj) {
|
|
190
|
-
"@babel/helpers - typeof";
|
|
191
|
-
|
|
192
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
193
|
-
return typeof obj;
|
|
194
|
-
} : function (obj) {
|
|
195
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
196
|
-
}, _typeof(obj);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
function _toPrimitive(input, hint) {
|
|
200
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
201
|
-
var prim = input[Symbol.toPrimitive];
|
|
202
|
-
if (prim !== undefined) {
|
|
203
|
-
var res = prim.call(input, hint || "default");
|
|
204
|
-
if (_typeof(res) !== "object") return res;
|
|
205
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
206
221
|
}
|
|
207
|
-
|
|
208
|
-
}
|
|
222
|
+
});
|
|
209
223
|
|
|
210
|
-
|
|
211
|
-
var key = _toPrimitive(arg, "string");
|
|
212
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
function _defineProperty(obj, key, value) {
|
|
216
|
-
key = _toPropertyKey(key);
|
|
217
|
-
if (key in obj) {
|
|
218
|
-
Object.defineProperty(obj, key, {
|
|
219
|
-
value: value,
|
|
220
|
-
enumerable: true,
|
|
221
|
-
configurable: true,
|
|
222
|
-
writable: true
|
|
223
|
-
});
|
|
224
|
-
} else {
|
|
225
|
-
obj[key] = value;
|
|
226
|
-
}
|
|
227
|
-
return obj;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
var BadgeBase = {
|
|
224
|
+
var BadgeBase = componentbase.ComponentBase.extend({
|
|
231
225
|
defaultProps: {
|
|
232
226
|
__TYPE: 'Badge',
|
|
233
227
|
value: null,
|
|
@@ -236,19 +230,16 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
236
230
|
style: null,
|
|
237
231
|
className: null,
|
|
238
232
|
children: undefined
|
|
239
|
-
},
|
|
240
|
-
getProps: function getProps(props) {
|
|
241
|
-
return utils.ObjectUtils.getMergedProps(props, BadgeBase.defaultProps);
|
|
242
|
-
},
|
|
243
|
-
getOtherProps: function getOtherProps(props) {
|
|
244
|
-
return utils.ObjectUtils.getDiffProps(props, BadgeBase.defaultProps);
|
|
245
233
|
}
|
|
246
|
-
};
|
|
234
|
+
});
|
|
247
235
|
|
|
248
236
|
var Badge = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
249
237
|
var props = BadgeBase.getProps(inProps);
|
|
238
|
+
var _BadgeBase$setMetaDat = BadgeBase.setMetaData({
|
|
239
|
+
props: props
|
|
240
|
+
}),
|
|
241
|
+
ptm = _BadgeBase$setMetaDat.ptm;
|
|
250
242
|
var elementRef = React__namespace.useRef(null);
|
|
251
|
-
var otherProps = BadgeBase.getOtherProps(props);
|
|
252
243
|
var className = utils.classNames('p-badge p-component', _defineProperty({
|
|
253
244
|
'p-badge-no-gutter': utils.ObjectUtils.isNotEmpty(props.value) && String(props.value).length === 1,
|
|
254
245
|
'p-badge-dot': utils.ObjectUtils.isEmpty(props.value),
|
|
@@ -263,14 +254,17 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
263
254
|
}
|
|
264
255
|
};
|
|
265
256
|
});
|
|
266
|
-
|
|
257
|
+
var rootProps = utils.mergeProps({
|
|
267
258
|
ref: elementRef,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
},
|
|
259
|
+
style: props.style,
|
|
260
|
+
className: className
|
|
261
|
+
}, BadgeBase.getOtherProps(props), ptm('root'));
|
|
262
|
+
return /*#__PURE__*/React__namespace.createElement("span", rootProps, props.value);
|
|
271
263
|
}));
|
|
272
264
|
Badge.displayName = 'Badge';
|
|
273
265
|
|
|
266
|
+
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; }
|
|
267
|
+
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; }
|
|
274
268
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
275
269
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
276
270
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
@@ -296,6 +290,17 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
296
290
|
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
297
291
|
uploadingState = _React$useState10[0],
|
|
298
292
|
setUploadingState = _React$useState10[1];
|
|
293
|
+
var _FileUploadBase$setMe = FileUploadBase.setMetaData({
|
|
294
|
+
props: props,
|
|
295
|
+
state: {
|
|
296
|
+
progress: progressState,
|
|
297
|
+
uploading: uploadingState,
|
|
298
|
+
uploadedFiles: uploadedFilesState,
|
|
299
|
+
files: filesState,
|
|
300
|
+
focused: focusedState
|
|
301
|
+
}
|
|
302
|
+
}),
|
|
303
|
+
ptm = _FileUploadBase$setMe.ptm;
|
|
299
304
|
var fileInputRef = React__namespace.useRef(null);
|
|
300
305
|
var messagesRef = React__namespace.useRef(null);
|
|
301
306
|
var contentRef = React__namespace.useRef(null);
|
|
@@ -535,20 +540,20 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
535
540
|
var onBlur = function onBlur() {
|
|
536
541
|
setFocusedState(false);
|
|
537
542
|
};
|
|
538
|
-
var
|
|
543
|
+
var _onKeyDown = function onKeyDown(event) {
|
|
539
544
|
if (event.which === 13) {
|
|
540
545
|
// enter
|
|
541
546
|
choose();
|
|
542
547
|
}
|
|
543
548
|
};
|
|
544
|
-
var
|
|
549
|
+
var _onDragEnter = function onDragEnter(event) {
|
|
545
550
|
if (!disabled) {
|
|
546
551
|
event.dataTransfer.dropEffect = 'copy';
|
|
547
552
|
event.stopPropagation();
|
|
548
553
|
event.preventDefault();
|
|
549
554
|
}
|
|
550
555
|
};
|
|
551
|
-
var
|
|
556
|
+
var _onDragOver = function onDragOver(event) {
|
|
552
557
|
if (!disabled) {
|
|
553
558
|
event.dataTransfer.dropEffect = 'copy';
|
|
554
559
|
utils.DomHandler.addClass(contentRef.current, 'p-fileupload-highlight');
|
|
@@ -556,13 +561,13 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
556
561
|
event.preventDefault();
|
|
557
562
|
}
|
|
558
563
|
};
|
|
559
|
-
var
|
|
564
|
+
var _onDragLeave = function onDragLeave(event) {
|
|
560
565
|
if (!disabled) {
|
|
561
566
|
event.dataTransfer.dropEffect = 'copy';
|
|
562
567
|
utils.DomHandler.removeClass(contentRef.current, 'p-fileupload-highlight');
|
|
563
568
|
}
|
|
564
569
|
};
|
|
565
|
-
var
|
|
570
|
+
var _onDrop = function onDrop(event) {
|
|
566
571
|
if (props.disabled) {
|
|
567
572
|
return;
|
|
568
573
|
}
|
|
@@ -617,71 +622,84 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
617
622
|
var iconClassName = utils.classNames('p-button-icon p-clickable', {
|
|
618
623
|
'p-button-icon-left': !iconOnly
|
|
619
624
|
});
|
|
620
|
-
var
|
|
621
|
-
className: labelClassName
|
|
625
|
+
var chooseButtonLabelProps = utils.mergeProps({
|
|
626
|
+
className: labelClassName
|
|
627
|
+
}, ptm('chooseButtonLabel'));
|
|
628
|
+
var label = iconOnly ? /*#__PURE__*/React__namespace.createElement("span", _extends({}, chooseButtonLabelProps, {
|
|
622
629
|
dangerouslySetInnerHTML: {
|
|
623
630
|
__html: ' '
|
|
624
631
|
}
|
|
625
|
-
}) : /*#__PURE__*/React__namespace.createElement("span",
|
|
626
|
-
|
|
627
|
-
}, chooseButtonLabel);
|
|
628
|
-
var input = /*#__PURE__*/React__namespace.createElement("input", {
|
|
632
|
+
})) : /*#__PURE__*/React__namespace.createElement("span", chooseButtonLabelProps, chooseButtonLabel);
|
|
633
|
+
var inputProps = utils.mergeProps({
|
|
629
634
|
ref: fileInputRef,
|
|
630
|
-
type:
|
|
631
|
-
onChange:
|
|
635
|
+
type: 'file',
|
|
636
|
+
onChange: function onChange(e) {
|
|
637
|
+
return onFileSelect(e);
|
|
638
|
+
},
|
|
632
639
|
multiple: props.multiple,
|
|
633
640
|
accept: props.accept,
|
|
634
641
|
disabled: chooseDisabled
|
|
635
|
-
});
|
|
636
|
-
var
|
|
637
|
-
|
|
638
|
-
});
|
|
639
|
-
var chooseIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
642
|
+
}, ptm('input'));
|
|
643
|
+
var input = /*#__PURE__*/React__namespace.createElement("input", inputProps);
|
|
644
|
+
var chooseIconProps = utils.mergeProps({
|
|
640
645
|
className: iconClassName
|
|
641
|
-
},
|
|
646
|
+
}, ptm('chooseIcon'));
|
|
647
|
+
var icon = _icon || /*#__PURE__*/React__namespace.createElement(plus.PlusIcon, chooseIconProps);
|
|
648
|
+
var chooseIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, chooseIconProps), {
|
|
642
649
|
props: props
|
|
643
650
|
});
|
|
644
|
-
|
|
651
|
+
var chooseButtonProps = utils.mergeProps({
|
|
645
652
|
className: chooseClassName,
|
|
646
653
|
style: style,
|
|
647
654
|
onClick: choose,
|
|
648
|
-
onKeyDown: onKeyDown
|
|
655
|
+
onKeyDown: function onKeyDown(e) {
|
|
656
|
+
return _onKeyDown(e);
|
|
657
|
+
},
|
|
649
658
|
onFocus: onFocus,
|
|
650
659
|
onBlur: onBlur,
|
|
651
660
|
tabIndex: 0
|
|
652
|
-
},
|
|
661
|
+
}, ptm('chooseButton'));
|
|
662
|
+
return /*#__PURE__*/React__namespace.createElement("span", chooseButtonProps, input, chooseIcon, label, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
653
663
|
};
|
|
654
664
|
var onRemoveClick = function onRemoveClick(e, badgeOptions, index) {
|
|
655
665
|
if (badgeOptions.severity === 'warning') remove(e, index);else removeUploadedFiles(e, index);
|
|
656
666
|
};
|
|
657
667
|
var createFile = function createFile(file, index, badgeOptions) {
|
|
658
668
|
var key = file.name + file.type + file.size;
|
|
659
|
-
var
|
|
660
|
-
role:
|
|
661
|
-
className:
|
|
662
|
-
alt: file.name,
|
|
669
|
+
var thumbnailProps = utils.mergeProps({
|
|
670
|
+
role: 'presentation',
|
|
671
|
+
className: 'p-fileupload-file-thumbnail',
|
|
663
672
|
src: file.objectURL,
|
|
664
673
|
width: props.previewWidth
|
|
665
|
-
})
|
|
666
|
-
var
|
|
667
|
-
|
|
668
|
-
}
|
|
669
|
-
var
|
|
670
|
-
var
|
|
674
|
+
}, ptm('thumbnail'));
|
|
675
|
+
var preview = isImage(file) ? /*#__PURE__*/React__namespace.createElement("img", _extends({}, thumbnailProps, {
|
|
676
|
+
alt: file.name
|
|
677
|
+
})) : null;
|
|
678
|
+
var detailsProps = utils.mergeProps(ptm('details'));
|
|
679
|
+
var fileSizeProps = utils.mergeProps(ptm('fileSize'));
|
|
680
|
+
var fileNameProps = utils.mergeProps({
|
|
681
|
+
className: 'p-fileupload-filename'
|
|
682
|
+
}, ptm('fileName'));
|
|
683
|
+
var actionsProps = utils.mergeProps(ptm('actions'));
|
|
684
|
+
var fileName = /*#__PURE__*/React__namespace.createElement("div", fileNameProps, file.name);
|
|
685
|
+
var size = /*#__PURE__*/React__namespace.createElement("div", fileSizeProps, formatSize(file.size));
|
|
686
|
+
var contentBody = /*#__PURE__*/React__namespace.createElement("div", detailsProps, /*#__PURE__*/React__namespace.createElement("div", fileNameProps, " ", file.name), /*#__PURE__*/React__namespace.createElement("span", fileSizeProps, formatSize(file.size)), /*#__PURE__*/React__namespace.createElement(Badge, {
|
|
671
687
|
className: "p-fileupload-file-badge",
|
|
672
688
|
value: badgeOptions.value,
|
|
673
|
-
severity: badgeOptions.severity
|
|
689
|
+
severity: badgeOptions.severity,
|
|
690
|
+
pt: ptm('badge')
|
|
674
691
|
}));
|
|
675
|
-
var removeButton = /*#__PURE__*/React__namespace.createElement("div",
|
|
692
|
+
var removeButton = /*#__PURE__*/React__namespace.createElement("div", actionsProps, /*#__PURE__*/React__namespace.createElement(button.Button, {
|
|
676
693
|
type: "button",
|
|
677
694
|
icon: props.removeIcon || /*#__PURE__*/React__namespace.createElement(times.TimesIcon, null),
|
|
678
695
|
text: true,
|
|
679
696
|
rounded: true,
|
|
680
|
-
|
|
697
|
+
severity: "danger",
|
|
681
698
|
onClick: function onClick(e) {
|
|
682
699
|
return onRemoveClick(e, badgeOptions, index);
|
|
683
700
|
},
|
|
684
|
-
disabled: disabled
|
|
701
|
+
disabled: disabled,
|
|
702
|
+
pt: ptm('removeButton')
|
|
685
703
|
}));
|
|
686
704
|
var content = /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, preview, contentBody, removeButton);
|
|
687
705
|
if (props.itemTemplate) {
|
|
@@ -700,10 +718,11 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
700
718
|
};
|
|
701
719
|
content = utils.ObjectUtils.getJSXElement(props.itemTemplate, file, defaultContentOptions);
|
|
702
720
|
}
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
},
|
|
721
|
+
var fileProps = utils.mergeProps({
|
|
722
|
+
key: key,
|
|
723
|
+
className: 'p-fileupload-row'
|
|
724
|
+
}, ptm('file'));
|
|
725
|
+
return /*#__PURE__*/React__namespace.createElement("div", fileProps, content);
|
|
707
726
|
};
|
|
708
727
|
var createFiles = function createFiles() {
|
|
709
728
|
var badgeOptions = {
|
|
@@ -734,11 +753,11 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
734
753
|
}
|
|
735
754
|
return /*#__PURE__*/React__namespace.createElement(progressbar.ProgressBar, {
|
|
736
755
|
value: progressState,
|
|
737
|
-
showValue: false
|
|
756
|
+
showValue: false,
|
|
757
|
+
pt: ptm('progressbar')
|
|
738
758
|
});
|
|
739
759
|
};
|
|
740
760
|
var createAdvanced = function createAdvanced() {
|
|
741
|
-
var otherProps = FileUploadBase.getOtherProps(props);
|
|
742
761
|
var className = utils.classNames('p-fileupload p-fileupload-advanced p-component', props.className);
|
|
743
762
|
var headerClassName = utils.classNames('p-fileupload-buttonbar', props.headerClassName);
|
|
744
763
|
var contentClassName = utils.classNames('p-fileupload-content', props.contentClassName);
|
|
@@ -753,21 +772,19 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
753
772
|
var uploadIconClassName = utils.classNames('p-button-icon p-c', {
|
|
754
773
|
'p-button-icon-left': !uploadOptions.iconOnly
|
|
755
774
|
});
|
|
756
|
-
var
|
|
757
|
-
className: uploadIconClassName
|
|
758
|
-
}), {
|
|
775
|
+
var uploadIconProps = utils.mergeProps({
|
|
759
776
|
className: uploadIconClassName
|
|
760
|
-
},
|
|
777
|
+
}, ptm('uploadIcon'));
|
|
778
|
+
var uploadIcon = utils.IconUtils.getJSXIcon(uploadOptions.icon || /*#__PURE__*/React__namespace.createElement(upload.UploadIcon, uploadIconProps), _objectSpread({}, uploadIconProps), {
|
|
761
779
|
props: props
|
|
762
780
|
});
|
|
763
781
|
var cancelIconClassName = utils.classNames('p-button-icon p-c', {
|
|
764
782
|
'p-button-icon-left': !cancelOptions.iconOnly
|
|
765
783
|
});
|
|
766
|
-
var
|
|
784
|
+
var cancelIconProps = utils.mergeProps({
|
|
767
785
|
className: cancelIconClassName
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
}, {
|
|
786
|
+
}, ptm('cancelIcon'));
|
|
787
|
+
var cancelIcon = utils.IconUtils.getJSXIcon(cancelOptions.icon || /*#__PURE__*/React__namespace.createElement(times.TimesIcon, cancelIconProps), _objectSpread({}, cancelIconProps), {
|
|
771
788
|
props: props
|
|
772
789
|
});
|
|
773
790
|
uploadButton = /*#__PURE__*/React__namespace.createElement(button.Button, {
|
|
@@ -777,7 +794,8 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
777
794
|
onClick: upload$1,
|
|
778
795
|
disabled: uploadDisabled,
|
|
779
796
|
style: uploadOptions.style,
|
|
780
|
-
className: uploadOptions.className
|
|
797
|
+
className: uploadOptions.className,
|
|
798
|
+
pt: ptm('uploadButton')
|
|
781
799
|
});
|
|
782
800
|
cancelButton = /*#__PURE__*/React__namespace.createElement(button.Button, {
|
|
783
801
|
type: "button",
|
|
@@ -786,7 +804,8 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
786
804
|
onClick: clear,
|
|
787
805
|
disabled: cancelDisabled,
|
|
788
806
|
style: cancelOptions.style,
|
|
789
|
-
className: cancelOptions.className
|
|
807
|
+
className: cancelOptions.className,
|
|
808
|
+
pt: ptm('cancelButton')
|
|
790
809
|
});
|
|
791
810
|
}
|
|
792
811
|
if (hasFiles) {
|
|
@@ -796,10 +815,11 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
796
815
|
if (hasUploadedFiles) {
|
|
797
816
|
uplaodedFilesList = createUploadedFiles();
|
|
798
817
|
}
|
|
799
|
-
var
|
|
818
|
+
var buttonbarProps = utils.mergeProps({
|
|
800
819
|
className: headerClassName,
|
|
801
820
|
style: props.headerStyle
|
|
802
|
-
},
|
|
821
|
+
}, ptm('buttonbar'));
|
|
822
|
+
var header = /*#__PURE__*/React__namespace.createElement("div", buttonbarProps, chooseButton, uploadButton, cancelButton);
|
|
803
823
|
if (props.headerTemplate) {
|
|
804
824
|
var defaultContentOptions = {
|
|
805
825
|
className: headerClassName,
|
|
@@ -811,54 +831,58 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
811
831
|
};
|
|
812
832
|
header = utils.ObjectUtils.getJSXElement(props.headerTemplate, defaultContentOptions);
|
|
813
833
|
}
|
|
814
|
-
|
|
834
|
+
var rootProps = utils.mergeProps({
|
|
815
835
|
id: props.id,
|
|
816
836
|
className: className,
|
|
817
837
|
style: props.style
|
|
818
|
-
},
|
|
838
|
+
}, FileUploadBase.getOtherProps(props), ptm('root'));
|
|
839
|
+
var contentProps = utils.mergeProps({
|
|
819
840
|
ref: contentRef,
|
|
820
841
|
className: contentClassName,
|
|
821
842
|
style: props.contentStyle,
|
|
822
|
-
onDragEnter: onDragEnter
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
843
|
+
onDragEnter: function onDragEnter(e) {
|
|
844
|
+
return _onDragEnter(e);
|
|
845
|
+
},
|
|
846
|
+
onDragOver: function onDragOver(e) {
|
|
847
|
+
return _onDragOver(e);
|
|
848
|
+
},
|
|
849
|
+
onDragLeave: function onDragLeave(e) {
|
|
850
|
+
return _onDragLeave(e);
|
|
851
|
+
},
|
|
852
|
+
onDrop: function onDrop(e) {
|
|
853
|
+
return _onDrop(e);
|
|
854
|
+
}
|
|
855
|
+
}, ptm('content'));
|
|
856
|
+
return /*#__PURE__*/React__namespace.createElement("div", rootProps, header, /*#__PURE__*/React__namespace.createElement("div", contentProps, progressBar, /*#__PURE__*/React__namespace.createElement(messages.Messages, {
|
|
827
857
|
ref: messagesRef
|
|
828
858
|
}), hasFiles ? filesList : null, hasUploadedFiles ? uplaodedFilesList : null, emptyContent));
|
|
829
859
|
};
|
|
830
860
|
var createBasic = function createBasic() {
|
|
831
861
|
var chooseOptions = props.chooseOptions;
|
|
832
|
-
var otherProps = FileUploadBase.getOtherProps(props);
|
|
833
862
|
var className = utils.classNames('p-fileupload p-fileupload-basic p-component', props.className);
|
|
834
863
|
var buttonClassName = utils.classNames('p-button p-component p-fileupload-choose', {
|
|
835
864
|
'p-fileupload-choose-selected': hasFiles,
|
|
836
865
|
'p-disabled': disabled,
|
|
837
866
|
'p-focus': focusedState
|
|
838
867
|
}, chooseOptions.className);
|
|
839
|
-
var iconClassName = utils.classNames('p-button-icon', {
|
|
840
|
-
'p-button-icon-left': !chooseOptions.iconOnly
|
|
841
|
-
});
|
|
842
|
-
var icon = chooseOptions.icon ? chooseOptions.icon : !chooseOptions.icon && (!hasFiles || props.auto) ? /*#__PURE__*/React__namespace.createElement(plus.PlusIcon, {
|
|
843
|
-
className: iconClassName
|
|
844
|
-
}) : !chooseOptions.icon && hasFiles && !props.auto && /*#__PURE__*/React__namespace.createElement(upload.UploadIcon, {
|
|
845
|
-
className: iconClassName
|
|
846
|
-
});
|
|
847
868
|
var labelClassName = 'p-button-label p-clickable';
|
|
848
|
-
var
|
|
849
|
-
className: labelClassName
|
|
869
|
+
var labelProps = utils.mergeProps({
|
|
870
|
+
className: labelClassName
|
|
871
|
+
}, ptm('label'));
|
|
872
|
+
var chooseLabel = chooseOptions.iconOnly ? /*#__PURE__*/React__namespace.createElement("span", _extends({}, labelProps, {
|
|
850
873
|
dangerouslySetInnerHTML: {
|
|
851
874
|
__html: ' '
|
|
852
875
|
}
|
|
853
|
-
}) : /*#__PURE__*/React__namespace.createElement("span",
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
var chooseIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
876
|
+
})) : /*#__PURE__*/React__namespace.createElement("span", labelProps, chooseButtonLabel);
|
|
877
|
+
var label = props.auto ? chooseLabel : /*#__PURE__*/React__namespace.createElement("span", labelProps, hasFiles ? filesState[0].name : chooseLabel);
|
|
878
|
+
var iconClassName = utils.classNames('p-button-icon', {
|
|
879
|
+
'p-button-icon-left': !chooseOptions.iconOnly
|
|
880
|
+
});
|
|
881
|
+
var chooseIconProps = utils.mergeProps({
|
|
860
882
|
className: iconClassName
|
|
861
|
-
},
|
|
883
|
+
}, ptm('chooseIcon'));
|
|
884
|
+
var icon = chooseOptions.icon ? chooseOptions.icon : !chooseOptions.icon && (!hasFiles || props.auto) ? /*#__PURE__*/React__namespace.createElement(plus.PlusIcon, chooseIconProps) : !chooseOptions.icon && hasFiles && !props.auto && /*#__PURE__*/React__namespace.createElement(upload.UploadIcon, chooseIconProps);
|
|
885
|
+
var chooseIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, chooseIconProps), {
|
|
862
886
|
props: props,
|
|
863
887
|
hasFiles: hasFiles
|
|
864
888
|
});
|
|
@@ -870,20 +894,25 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
870
894
|
disabled: disabled,
|
|
871
895
|
onChange: onFileSelect
|
|
872
896
|
});
|
|
873
|
-
|
|
897
|
+
var rootProps = utils.mergeProps({
|
|
874
898
|
className: className,
|
|
875
899
|
style: props.style
|
|
876
|
-
},
|
|
877
|
-
|
|
878
|
-
}), /*#__PURE__*/React__namespace.createElement("span", {
|
|
900
|
+
}, FileUploadBase.getOtherProps(props), ptm('root'));
|
|
901
|
+
var basicButtonProps = utils.mergeProps({
|
|
879
902
|
className: buttonClassName,
|
|
880
903
|
style: chooseOptions.style,
|
|
904
|
+
tabIndex: 0,
|
|
881
905
|
onMouseUp: onSimpleUploaderClick,
|
|
882
|
-
onKeyDown: onKeyDown
|
|
906
|
+
onKeyDown: function onKeyDown(e) {
|
|
907
|
+
return _onKeyDown(e);
|
|
908
|
+
},
|
|
883
909
|
onFocus: onFocus,
|
|
884
|
-
onBlur: onBlur
|
|
885
|
-
|
|
886
|
-
|
|
910
|
+
onBlur: onBlur
|
|
911
|
+
}, FileUploadBase.getOtherProps(props), ptm('basicButton'));
|
|
912
|
+
return /*#__PURE__*/React__namespace.createElement("div", rootProps, /*#__PURE__*/React__namespace.createElement(messages.Messages, {
|
|
913
|
+
ref: messagesRef,
|
|
914
|
+
pt: ptm('message')
|
|
915
|
+
}), /*#__PURE__*/React__namespace.createElement("span", basicButtonProps, chooseIcon, label, input, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)));
|
|
887
916
|
};
|
|
888
917
|
if (props.mode === 'advanced') return createAdvanced();else if (props.mode === 'basic') return createBasic();
|
|
889
918
|
}));
|
|
@@ -895,4 +924,4 @@ this.primereact.fileupload = (function (exports, React, api, button, messages, p
|
|
|
895
924
|
|
|
896
925
|
return exports;
|
|
897
926
|
|
|
898
|
-
})({}, React, primereact.api, primereact.button, primereact.messages, primereact.progressbar, primereact.ripple, primereact.utils, primereact.icons.plus, primereact.icons.upload, primereact.icons.times);
|
|
927
|
+
})({}, React, primereact.api, primereact.button, primereact.messages, primereact.progressbar, primereact.ripple, primereact.utils, primereact.componentbase, primereact.icons.plus, primereact.icons.upload, primereact.icons.times);
|