primereact 9.2.2 → 9.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.cjs.js +13 -5
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +0 -2
- package/accordion/accordion.esm.js +13 -5
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +13 -7
- package/accordion/accordion.min.js +1 -1
- package/api/api.d.ts +1 -0
- package/autocomplete/autocomplete.cjs.js +75 -59
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +6 -4
- package/autocomplete/autocomplete.esm.js +75 -59
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +74 -61
- package/autocomplete/autocomplete.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +11 -2
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +5 -0
- package/breadcrumb/breadcrumb.esm.js +11 -2
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +12 -4
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +6 -2
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +6 -2
- package/button/button.esm.min.js +1 -1
- package/button/button.js +7 -4
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +47 -38
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +16 -1
- package/calendar/calendar.esm.js +48 -39
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +44 -40
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +28 -12
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +9 -0
- package/carousel/carousel.esm.js +29 -13
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +26 -14
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +23 -7
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +7 -3
- package/cascadeselect/cascadeselect.esm.js +24 -8
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +23 -9
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/checkbox.cjs.js +10 -5
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +1 -2
- package/checkbox/checkbox.esm.js +10 -5
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +11 -7
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +54 -8
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +1 -7
- package/chip/chip.esm.js +54 -8
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +55 -10
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +56 -6
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +5 -0
- package/chips/chips.esm.js +57 -7
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +57 -8
- package/chips/chips.min.js +1 -1
- package/column/column.d.ts +2 -2
- package/contextmenu/contextmenu.cjs.js +16 -23
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +5 -0
- package/contextmenu/contextmenu.esm.js +16 -23
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +17 -25
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +3581 -120
- package/core/core.min.js +101 -9
- package/datatable/datatable.cjs.js +186 -85
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +32 -6
- package/datatable/datatable.esm.js +187 -86
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +172 -87
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +25 -11
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +10 -1
- package/dataview/dataview.esm.js +26 -12
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +24 -13
- package/dataview/dataview.min.js +1 -1
- package/dialog/dialog.cjs.js +74 -10
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +13 -0
- package/dialog/dialog.esm.js +75 -11
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +73 -12
- package/dialog/dialog.min.js +1 -1
- package/dropdown/dropdown.cjs.js +37 -12
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +12 -4
- package/dropdown/dropdown.esm.js +38 -13
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +36 -14
- package/dropdown/dropdown.min.js +1 -1
- package/fieldset/fieldset.cjs.js +14 -5
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.d.ts +9 -0
- package/fieldset/fieldset.esm.js +15 -6
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +14 -7
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +54 -18
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +4 -0
- package/fileupload/fileupload.esm.js +49 -13
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +53 -20
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +113 -27
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +21 -0
- package/galleria/galleria.esm.js +114 -28
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +110 -29
- package/galleria/galleria.min.js +1 -1
- package/iconbase/iconbase.cjs.js +35 -0
- package/iconbase/iconbase.cjs.min.js +1 -0
- package/iconbase/iconbase.d.ts +9 -0
- package/iconbase/iconbase.esm.js +31 -0
- package/iconbase/iconbase.esm.min.js +1 -0
- package/iconbase/iconbase.js +39 -0
- package/iconbase/iconbase.min.css +1 -0
- package/iconbase/iconbase.min.js +1 -0
- package/iconbase/package.json +7 -0
- package/icons/angledoubledown/index.cjs.js +61 -0
- package/icons/angledoubledown/index.cjs.min.js +1 -0
- package/icons/angledoubledown/index.d.ts +19 -0
- package/icons/angledoubledown/index.esm.js +37 -0
- package/icons/angledoubledown/index.esm.min.js +1 -0
- package/icons/angledoubledown/index.js +65 -0
- package/icons/angledoubledown/index.min.js +1 -0
- package/icons/angledoubledown/package.json +7 -0
- package/icons/angledoubleleft/index.cjs.js +61 -0
- package/icons/angledoubleleft/index.cjs.min.js +1 -0
- package/icons/angledoubleleft/index.d.ts +19 -0
- package/icons/angledoubleleft/index.esm.js +37 -0
- package/icons/angledoubleleft/index.esm.min.js +1 -0
- package/icons/angledoubleleft/index.js +65 -0
- package/icons/angledoubleleft/index.min.js +1 -0
- package/icons/angledoubleleft/package.json +7 -0
- package/icons/angledoubleright/index.cjs.js +61 -0
- package/icons/angledoubleright/index.cjs.min.js +1 -0
- package/icons/angledoubleright/index.d.ts +19 -0
- package/icons/angledoubleright/index.esm.js +37 -0
- package/icons/angledoubleright/index.esm.min.js +1 -0
- package/icons/angledoubleright/index.js +65 -0
- package/icons/angledoubleright/index.min.js +1 -0
- package/icons/angledoubleright/package.json +7 -0
- package/icons/angledoubleup/index.cjs.js +61 -0
- package/icons/angledoubleup/index.cjs.min.js +1 -0
- package/icons/angledoubleup/index.d.ts +19 -0
- package/icons/angledoubleup/index.esm.js +37 -0
- package/icons/angledoubleup/index.esm.min.js +1 -0
- package/icons/angledoubleup/index.js +65 -0
- package/icons/angledoubleup/index.min.js +1 -0
- package/icons/angledoubleup/package.json +7 -0
- package/icons/angledown/index.cjs.js +59 -0
- package/icons/angledown/index.cjs.min.js +1 -0
- package/icons/angledown/index.d.ts +19 -0
- package/icons/angledown/index.esm.js +35 -0
- package/icons/angledown/index.esm.min.js +1 -0
- package/icons/angledown/index.js +63 -0
- package/icons/angledown/index.min.js +1 -0
- package/icons/angledown/package.json +7 -0
- package/icons/angleleft/index.cjs.js +59 -0
- package/icons/angleleft/index.cjs.min.js +1 -0
- package/icons/angleleft/index.d.ts +19 -0
- package/icons/angleleft/index.esm.js +35 -0
- package/icons/angleleft/index.esm.min.js +1 -0
- package/icons/angleleft/index.js +63 -0
- package/icons/angleleft/index.min.js +1 -0
- package/icons/angleleft/package.json +7 -0
- package/icons/angleright/index.cjs.js +59 -0
- package/icons/angleright/index.cjs.min.js +1 -0
- package/icons/angleright/index.d.ts +19 -0
- package/icons/angleright/index.esm.js +35 -0
- package/icons/angleright/index.esm.min.js +1 -0
- package/icons/angleright/index.js +63 -0
- package/icons/angleright/index.min.js +1 -0
- package/icons/angleright/package.json +7 -0
- package/icons/angleup/index.cjs.js +59 -0
- package/icons/angleup/index.cjs.min.js +1 -0
- package/icons/angleup/index.d.ts +19 -0
- package/icons/angleup/index.esm.js +35 -0
- package/icons/angleup/index.esm.min.js +1 -0
- package/icons/angleup/index.js +63 -0
- package/icons/angleup/index.min.js +1 -0
- package/icons/angleup/package.json +7 -0
- package/icons/arrowdown/index.cjs.js +69 -0
- package/icons/arrowdown/index.cjs.min.js +1 -0
- package/icons/arrowdown/index.d.ts +19 -0
- package/icons/arrowdown/index.esm.js +45 -0
- package/icons/arrowdown/index.esm.min.js +1 -0
- package/icons/arrowdown/index.js +73 -0
- package/icons/arrowdown/index.min.js +1 -0
- package/icons/arrowdown/package.json +7 -0
- package/icons/arrowup/index.cjs.js +69 -0
- package/icons/arrowup/index.cjs.min.js +1 -0
- package/icons/arrowup/index.d.ts +19 -0
- package/icons/arrowup/index.esm.js +45 -0
- package/icons/arrowup/index.esm.min.js +1 -0
- package/icons/arrowup/index.js +73 -0
- package/icons/arrowup/index.min.js +1 -0
- package/icons/arrowup/package.json +7 -0
- package/icons/ban/index.cjs.js +67 -0
- package/icons/ban/index.cjs.min.js +1 -0
- package/icons/ban/index.d.ts +19 -0
- package/icons/ban/index.esm.js +43 -0
- package/icons/ban/index.esm.min.js +1 -0
- package/icons/ban/index.js +71 -0
- package/icons/ban/index.min.js +1 -0
- package/icons/ban/package.json +7 -0
- package/icons/bars/index.cjs.js +61 -0
- package/icons/bars/index.cjs.min.js +1 -0
- package/icons/bars/index.d.ts +19 -0
- package/icons/bars/index.esm.js +37 -0
- package/icons/bars/index.esm.min.js +1 -0
- package/icons/bars/index.js +65 -0
- package/icons/bars/index.min.js +1 -0
- package/icons/bars/package.json +7 -0
- package/icons/calendar/index.cjs.js +59 -0
- package/icons/calendar/index.cjs.min.js +1 -0
- package/icons/calendar/index.d.ts +19 -0
- package/icons/calendar/index.esm.js +35 -0
- package/icons/calendar/index.esm.min.js +1 -0
- package/icons/calendar/index.js +63 -0
- package/icons/calendar/index.min.js +1 -0
- package/icons/calendar/package.json +7 -0
- package/icons/check/index.cjs.js +59 -0
- package/icons/check/index.cjs.min.js +1 -0
- package/icons/check/index.d.ts +19 -0
- package/icons/check/index.esm.js +35 -0
- package/icons/check/index.esm.min.js +1 -0
- package/icons/check/index.js +63 -0
- package/icons/check/index.min.js +1 -0
- package/icons/check/package.json +7 -0
- package/icons/chevrondown/index.cjs.js +59 -0
- package/icons/chevrondown/index.cjs.min.js +1 -0
- package/icons/chevrondown/index.d.ts +19 -0
- package/icons/chevrondown/index.esm.js +35 -0
- package/icons/chevrondown/index.esm.min.js +1 -0
- package/icons/chevrondown/index.js +63 -0
- package/icons/chevrondown/index.min.js +1 -0
- package/icons/chevrondown/package.json +7 -0
- package/icons/chevronleft/index.cjs.js +59 -0
- package/icons/chevronleft/index.cjs.min.js +1 -0
- package/icons/chevronleft/index.d.ts +19 -0
- package/icons/chevronleft/index.esm.js +35 -0
- package/icons/chevronleft/index.esm.min.js +1 -0
- package/icons/chevronleft/index.js +63 -0
- package/icons/chevronleft/index.min.js +1 -0
- package/icons/chevronleft/package.json +7 -0
- package/icons/chevronright/index.cjs.js +59 -0
- package/icons/chevronright/index.cjs.min.js +1 -0
- package/icons/chevronright/index.d.ts +19 -0
- package/icons/chevronright/index.esm.js +35 -0
- package/icons/chevronright/index.esm.min.js +1 -0
- package/icons/chevronright/index.js +63 -0
- package/icons/chevronright/index.min.js +1 -0
- package/icons/chevronright/package.json +7 -0
- package/icons/chevronup/index.cjs.js +59 -0
- package/icons/chevronup/index.cjs.min.js +1 -0
- package/icons/chevronup/index.d.ts +19 -0
- package/icons/chevronup/index.esm.js +35 -0
- package/icons/chevronup/index.esm.min.js +1 -0
- package/icons/chevronup/index.js +63 -0
- package/icons/chevronup/index.min.js +1 -0
- package/icons/chevronup/package.json +7 -0
- package/icons/download/index.cjs.js +69 -0
- package/icons/download/index.cjs.min.js +1 -0
- package/icons/download/index.d.ts +19 -0
- package/icons/download/index.esm.js +45 -0
- package/icons/download/index.esm.min.js +1 -0
- package/icons/download/index.js +73 -0
- package/icons/download/index.min.js +1 -0
- package/icons/download/package.json +7 -0
- package/icons/exclamationtriangle/index.cjs.js +73 -0
- package/icons/exclamationtriangle/index.cjs.min.js +1 -0
- package/icons/exclamationtriangle/index.d.ts +19 -0
- package/icons/exclamationtriangle/index.esm.js +49 -0
- package/icons/exclamationtriangle/index.esm.min.js +1 -0
- package/icons/exclamationtriangle/index.js +77 -0
- package/icons/exclamationtriangle/index.min.js +1 -0
- package/icons/exclamationtriangle/package.json +7 -0
- package/icons/eye/index.cjs.js +61 -0
- package/icons/eye/index.cjs.min.js +1 -0
- package/icons/eye/index.d.ts +19 -0
- package/icons/eye/index.esm.js +37 -0
- package/icons/eye/index.esm.min.js +1 -0
- package/icons/eye/index.js +65 -0
- package/icons/eye/index.min.js +1 -0
- package/icons/eye/package.json +7 -0
- package/icons/eyeslash/index.cjs.js +69 -0
- package/icons/eyeslash/index.cjs.min.js +1 -0
- package/icons/eyeslash/index.d.ts +19 -0
- package/icons/eyeslash/index.esm.js +45 -0
- package/icons/eyeslash/index.esm.min.js +1 -0
- package/icons/eyeslash/index.js +73 -0
- package/icons/eyeslash/index.min.js +1 -0
- package/icons/eyeslash/package.json +7 -0
- package/icons/filter/index.cjs.js +67 -0
- package/icons/filter/index.cjs.min.js +1 -0
- package/icons/filter/index.d.ts +19 -0
- package/icons/filter/index.esm.js +43 -0
- package/icons/filter/index.esm.min.js +1 -0
- package/icons/filter/index.js +71 -0
- package/icons/filter/index.min.js +1 -0
- package/icons/filter/package.json +7 -0
- package/icons/filterslash/index.cjs.js +69 -0
- package/icons/filterslash/index.cjs.min.js +1 -0
- package/icons/filterslash/index.d.ts +19 -0
- package/icons/filterslash/index.esm.js +45 -0
- package/icons/filterslash/index.esm.min.js +1 -0
- package/icons/filterslash/index.js +73 -0
- package/icons/filterslash/index.min.js +1 -0
- package/icons/filterslash/package.json +7 -0
- package/icons/infocircle/index.cjs.js +69 -0
- package/icons/infocircle/index.cjs.min.js +1 -0
- package/icons/infocircle/index.d.ts +19 -0
- package/icons/infocircle/index.esm.js +45 -0
- package/icons/infocircle/index.esm.min.js +1 -0
- package/icons/infocircle/index.js +73 -0
- package/icons/infocircle/index.min.js +1 -0
- package/icons/infocircle/package.json +7 -0
- package/icons/minus/index.cjs.js +59 -0
- package/icons/minus/index.cjs.min.js +1 -0
- package/icons/minus/index.d.ts +19 -0
- package/icons/minus/index.esm.js +35 -0
- package/icons/minus/index.esm.min.js +1 -0
- package/icons/minus/index.js +63 -0
- package/icons/minus/index.min.js +1 -0
- package/icons/minus/package.json +7 -0
- package/icons/pencil/index.cjs.js +67 -0
- package/icons/pencil/index.cjs.min.js +1 -0
- package/icons/pencil/index.d.ts +19 -0
- package/icons/pencil/index.esm.js +43 -0
- package/icons/pencil/index.esm.min.js +1 -0
- package/icons/pencil/index.js +71 -0
- package/icons/pencil/index.min.js +1 -0
- package/icons/pencil/package.json +7 -0
- package/icons/plus/index.cjs.js +67 -0
- package/icons/plus/index.cjs.min.js +1 -0
- package/icons/plus/index.d.ts +19 -0
- package/icons/plus/index.esm.js +43 -0
- package/icons/plus/index.esm.min.js +1 -0
- package/icons/plus/index.js +71 -0
- package/icons/plus/index.min.js +1 -0
- package/icons/plus/package.json +7 -0
- package/icons/refresh/index.cjs.js +69 -0
- package/icons/refresh/index.cjs.min.js +1 -0
- package/icons/refresh/index.d.ts +19 -0
- package/icons/refresh/index.esm.js +45 -0
- package/icons/refresh/index.esm.min.js +1 -0
- package/icons/refresh/index.js +73 -0
- package/icons/refresh/index.min.js +1 -0
- package/icons/refresh/package.json +7 -0
- package/icons/search/index.cjs.js +69 -0
- package/icons/search/index.cjs.min.js +1 -0
- package/icons/search/index.d.ts +19 -0
- package/icons/search/index.esm.js +45 -0
- package/icons/search/index.esm.min.js +1 -0
- package/icons/search/index.js +73 -0
- package/icons/search/index.min.js +1 -0
- package/icons/search/package.json +7 -0
- package/icons/searchminus/index.cjs.js +69 -0
- package/icons/searchminus/index.cjs.min.js +1 -0
- package/icons/searchminus/index.d.ts +19 -0
- package/icons/searchminus/index.esm.js +45 -0
- package/icons/searchminus/index.esm.min.js +1 -0
- package/icons/searchminus/index.js +73 -0
- package/icons/searchminus/index.min.js +1 -0
- package/icons/searchminus/package.json +7 -0
- package/icons/searchplus/index.cjs.js +69 -0
- package/icons/searchplus/index.cjs.min.js +1 -0
- package/icons/searchplus/index.d.ts +19 -0
- package/icons/searchplus/index.esm.js +45 -0
- package/icons/searchplus/index.esm.min.js +1 -0
- package/icons/searchplus/index.js +73 -0
- package/icons/searchplus/index.min.js +1 -0
- package/icons/searchplus/package.json +7 -0
- package/icons/sortalt/index.cjs.js +76 -0
- package/icons/sortalt/index.cjs.min.js +1 -0
- package/icons/sortalt/index.d.ts +19 -0
- package/icons/sortalt/index.esm.js +52 -0
- package/icons/sortalt/index.esm.min.js +1 -0
- package/icons/sortalt/index.js +80 -0
- package/icons/sortalt/index.min.js +1 -0
- package/icons/sortalt/package.json +7 -0
- package/icons/sortamountdown/index.cjs.js +82 -0
- package/icons/sortamountdown/index.cjs.min.js +1 -0
- package/icons/sortamountdown/index.d.ts +19 -0
- package/icons/sortamountdown/index.esm.js +58 -0
- package/icons/sortamountdown/index.esm.min.js +1 -0
- package/icons/sortamountdown/index.js +86 -0
- package/icons/sortamountdown/index.min.js +1 -0
- package/icons/sortamountdown/package.json +7 -0
- package/icons/sortamountupalt/index.cjs.js +82 -0
- package/icons/sortamountupalt/index.cjs.min.js +1 -0
- package/icons/sortamountupalt/index.d.ts +19 -0
- package/icons/sortamountupalt/index.esm.js +58 -0
- package/icons/sortamountupalt/index.esm.min.js +1 -0
- package/icons/sortamountupalt/index.js +86 -0
- package/icons/sortamountupalt/index.min.js +1 -0
- package/icons/sortamountupalt/package.json +7 -0
- package/icons/spinner/index.cjs.js +67 -0
- package/icons/spinner/index.cjs.min.js +1 -0
- package/icons/spinner/index.d.ts +19 -0
- package/icons/spinner/index.esm.js +43 -0
- package/icons/spinner/index.esm.min.js +1 -0
- package/icons/spinner/index.js +71 -0
- package/icons/spinner/index.min.js +1 -0
- package/icons/spinner/package.json +7 -0
- package/icons/star/index.cjs.js +67 -0
- package/icons/star/index.cjs.min.js +1 -0
- package/icons/star/index.d.ts +19 -0
- package/icons/star/index.esm.js +43 -0
- package/icons/star/index.esm.min.js +1 -0
- package/icons/star/index.js +71 -0
- package/icons/star/index.min.js +1 -0
- package/icons/star/package.json +7 -0
- package/icons/starfill/index.cjs.js +67 -0
- package/icons/starfill/index.cjs.min.js +1 -0
- package/icons/starfill/index.d.ts +19 -0
- package/icons/starfill/index.esm.js +43 -0
- package/icons/starfill/index.esm.min.js +1 -0
- package/icons/starfill/index.js +71 -0
- package/icons/starfill/index.min.js +1 -0
- package/icons/starfill/package.json +7 -0
- package/icons/thlarge/index.cjs.js +69 -0
- package/icons/thlarge/index.cjs.min.js +1 -0
- package/icons/thlarge/index.d.ts +19 -0
- package/icons/thlarge/index.esm.js +45 -0
- package/icons/thlarge/index.esm.min.js +1 -0
- package/icons/thlarge/index.js +73 -0
- package/icons/thlarge/index.min.js +1 -0
- package/icons/thlarge/package.json +7 -0
- package/icons/times/index.cjs.js +59 -0
- package/icons/times/index.cjs.min.js +1 -0
- package/icons/times/index.d.ts +19 -0
- package/icons/times/index.esm.js +35 -0
- package/icons/times/index.esm.min.js +1 -0
- package/icons/times/index.js +63 -0
- package/icons/times/index.min.js +1 -0
- package/icons/times/package.json +7 -0
- package/icons/timescircle/index.cjs.js +69 -0
- package/icons/timescircle/index.cjs.min.js +1 -0
- package/icons/timescircle/index.d.ts +19 -0
- package/icons/timescircle/index.esm.js +45 -0
- package/icons/timescircle/index.esm.min.js +1 -0
- package/icons/timescircle/index.js +73 -0
- package/icons/timescircle/index.min.js +1 -0
- package/icons/timescircle/package.json +7 -0
- package/icons/trash/index.cjs.js +69 -0
- package/icons/trash/index.cjs.min.js +1 -0
- package/icons/trash/index.d.ts +19 -0
- package/icons/trash/index.esm.js +45 -0
- package/icons/trash/index.esm.min.js +1 -0
- package/icons/trash/index.js +73 -0
- package/icons/trash/index.min.js +1 -0
- package/icons/trash/package.json +7 -0
- package/icons/undo/index.cjs.js +69 -0
- package/icons/undo/index.cjs.min.js +1 -0
- package/icons/undo/index.d.ts +19 -0
- package/icons/undo/index.esm.js +45 -0
- package/icons/undo/index.esm.min.js +1 -0
- package/icons/undo/index.js +73 -0
- package/icons/undo/index.min.js +1 -0
- package/icons/undo/package.json +7 -0
- package/icons/upload/index.cjs.js +69 -0
- package/icons/upload/index.cjs.min.js +1 -0
- package/icons/upload/index.d.ts +19 -0
- package/icons/upload/index.esm.js +45 -0
- package/icons/upload/index.esm.min.js +1 -0
- package/icons/upload/index.js +73 -0
- package/icons/upload/index.min.js +1 -0
- package/icons/upload/package.json +7 -0
- package/icons/windowmaximize/index.cjs.js +69 -0
- package/icons/windowmaximize/index.cjs.min.js +1 -0
- package/icons/windowmaximize/index.d.ts +19 -0
- package/icons/windowmaximize/index.esm.js +45 -0
- package/icons/windowmaximize/index.esm.min.js +1 -0
- package/icons/windowmaximize/index.js +73 -0
- package/icons/windowmaximize/index.min.js +1 -0
- package/icons/windowmaximize/package.json +7 -0
- package/icons/windowminimize/index.cjs.js +69 -0
- package/icons/windowminimize/index.cjs.min.js +1 -0
- package/icons/windowminimize/index.d.ts +19 -0
- package/icons/windowminimize/index.esm.js +45 -0
- package/icons/windowminimize/index.esm.min.js +1 -0
- package/icons/windowminimize/index.js +73 -0
- package/icons/windowminimize/index.min.js +1 -0
- package/icons/windowminimize/package.json +7 -0
- package/image/image.cjs.js +73 -21
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +30 -0
- package/image/image.esm.js +74 -22
- package/image/image.esm.min.js +1 -1
- package/image/image.js +68 -23
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +9 -2
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.d.ts +5 -0
- package/inplace/inplace.esm.js +10 -3
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +10 -4
- package/inplace/inplace.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +24 -10
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +0 -2
- package/inputnumber/inputnumber.esm.js +25 -11
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +24 -12
- package/inputnumber/inputnumber.min.js +1 -1
- package/listbox/listbox.cjs.js +14 -4
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +5 -0
- package/listbox/listbox.esm.js +15 -5
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +15 -6
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +22 -10
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +9 -0
- package/megamenu/megamenu.esm.js +22 -10
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +21 -12
- package/megamenu/megamenu.min.js +1 -1
- package/menubar/menubar.cjs.js +67 -10
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +9 -0
- package/menubar/menubar.esm.js +67 -10
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +66 -12
- package/menubar/menubar.min.js +1 -1
- package/menuitem/menuitem.d.ts +2 -0
- package/message/message.cjs.js +32 -11
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +32 -11
- package/message/message.esm.min.js +1 -1
- package/message/message.js +30 -13
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +86 -15
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +5 -1
- package/messages/messages.esm.js +86 -15
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +83 -17
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +100 -36
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +16 -2
- package/multiselect/multiselect.esm.js +100 -36
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +97 -38
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/orderlist.cjs.js +37 -9
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +23 -2
- package/orderlist/orderlist.esm.js +38 -10
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +34 -11
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +23 -8
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +5 -0
- package/organizationchart/organizationchart.esm.js +24 -9
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +23 -10
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +55 -5
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +5 -0
- package/overlaypanel/overlaypanel.esm.js +56 -6
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +56 -7
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +2 -3
- package/paginator/paginator.cjs.js +57 -20
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +17 -0
- package/paginator/paginator.esm.js +58 -21
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +55 -22
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +10 -8
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +0 -2
- package/panel/panel.esm.js +10 -8
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +10 -10
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +17 -14
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +5 -0
- package/panelmenu/panelmenu.esm.js +17 -14
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +17 -16
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +22 -5
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +9 -0
- package/password/password.esm.js +23 -6
- package/password/password.esm.min.js +1 -1
- package/password/password.js +22 -7
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +96 -18
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +41 -0
- package/picklist/picklist.esm.js +98 -20
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +89 -20
- package/picklist/picklist.min.js +1 -1
- package/primereact.all.cjs.js +2713 -765
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +2668 -766
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +2713 -765
- package/primereact.all.min.js +1 -1
- package/rating/rating.cjs.js +22 -10
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.d.ts +5 -8
- package/rating/rating.esm.js +22 -10
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +21 -12
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +505 -474
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +123 -17
- package/resources/themes/arya-green/theme.css +123 -17
- package/resources/themes/arya-orange/theme.css +123 -17
- package/resources/themes/arya-purple/theme.css +123 -17
- package/resources/themes/bootstrap4-dark-blue/theme.css +123 -17
- package/resources/themes/bootstrap4-dark-purple/theme.css +123 -17
- package/resources/themes/bootstrap4-light-blue/theme.css +123 -17
- package/resources/themes/bootstrap4-light-purple/theme.css +123 -17
- package/resources/themes/fluent-light/theme.css +123 -17
- package/resources/themes/lara-dark-blue/theme.css +123 -17
- package/resources/themes/lara-dark-indigo/theme.css +123 -17
- package/resources/themes/lara-dark-purple/theme.css +123 -17
- package/resources/themes/lara-dark-teal/theme.css +123 -17
- package/resources/themes/lara-light-blue/theme.css +130 -24
- package/resources/themes/lara-light-indigo/theme.css +130 -24
- package/resources/themes/lara-light-purple/theme.css +130 -24
- package/resources/themes/lara-light-teal/theme.css +130 -24
- package/resources/themes/luna-amber/theme.css +137 -31
- package/resources/themes/luna-blue/theme.css +137 -31
- package/resources/themes/luna-green/theme.css +137 -31
- package/resources/themes/luna-pink/theme.css +137 -31
- package/resources/themes/md-dark-deeppurple/theme.css +247 -144
- package/resources/themes/md-dark-indigo/theme.css +247 -144
- package/resources/themes/md-light-deeppurple/theme.css +127 -24
- package/resources/themes/md-light-indigo/theme.css +127 -24
- package/resources/themes/mdc-dark-deeppurple/theme.css +247 -144
- package/resources/themes/mdc-dark-indigo/theme.css +247 -144
- package/resources/themes/mdc-light-deeppurple/theme.css +127 -24
- package/resources/themes/mdc-light-indigo/theme.css +127 -24
- package/resources/themes/mira/theme.css +127 -25
- package/resources/themes/nano/theme.css +123 -17
- package/resources/themes/nova/theme.css +123 -17
- package/resources/themes/nova-accent/theme.css +123 -17
- package/resources/themes/nova-alt/theme.css +123 -17
- package/resources/themes/rhea/theme.css +123 -17
- package/resources/themes/saga-blue/theme.css +123 -17
- package/resources/themes/saga-green/theme.css +123 -17
- package/resources/themes/saga-orange/theme.css +123 -17
- package/resources/themes/saga-purple/theme.css +123 -17
- package/resources/themes/soho-dark/theme.css +165 -62
- package/resources/themes/soho-light/theme.css +126 -23
- package/resources/themes/tailwind-light/theme.css +153 -52
- package/resources/themes/vela-blue/theme.css +123 -17
- package/resources/themes/vela-green/theme.css +123 -17
- package/resources/themes/vela-orange/theme.css +123 -17
- package/resources/themes/vela-purple/theme.css +123 -17
- package/resources/themes/viva-dark/theme.css +127 -25
- package/resources/themes/viva-light/theme.css +127 -25
- package/scrolltop/scrolltop.cjs.js +12 -6
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +1 -2
- package/scrolltop/scrolltop.esm.js +12 -6
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +13 -8
- package/scrolltop/scrolltop.min.js +1 -1
- package/sidebar/sidebar.cjs.js +13 -5
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +5 -0
- package/sidebar/sidebar.esm.js +14 -6
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +14 -7
- package/sidebar/sidebar.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +26 -9
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +9 -0
- package/slidemenu/slidemenu.esm.js +26 -9
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +26 -11
- package/slidemenu/slidemenu.min.js +1 -1
- package/speeddial/speeddial.cjs.js +16 -15
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +2 -3
- package/speeddial/speeddial.esm.js +16 -15
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +16 -17
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +16 -3
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +1 -2
- package/splitbutton/splitbutton.esm.js +16 -3
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +17 -5
- package/splitbutton/splitbutton.min.js +1 -1
- package/tabview/tabview.cjs.js +34 -16
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +15 -2
- package/tabview/tabview.esm.js +35 -17
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +33 -18
- package/tabview/tabview.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +12 -4
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +5 -0
- package/tieredmenu/tieredmenu.esm.js +12 -4
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +13 -6
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/toast/toast.cjs.js +53 -15
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +9 -0
- package/toast/toast.esm.js +54 -16
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +50 -17
- package/toast/toast.min.js +1 -1
- package/tree/tree.cjs.js +56 -24
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +18 -2
- package/tree/tree.esm.js +57 -25
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +52 -26
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +37 -14
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +11 -3
- package/treeselect/treeselect.esm.js +38 -15
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +36 -16
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +90 -39
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +18 -2
- package/treetable/treetable.esm.js +91 -40
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +82 -41
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +20 -6
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +9 -0
- package/tristatecheckbox/tristatecheckbox.esm.js +21 -7
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +20 -8
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +14 -4
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +6 -0
- package/virtualscroller/virtualscroller.esm.js +15 -5
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +15 -6
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +1 -1
package/menubar/menubar.esm.js
CHANGED
|
@@ -3,6 +3,9 @@ import PrimeReact from 'primereact/api';
|
|
|
3
3
|
import { useEventListener, useMountEffect, useUpdateEffect, useUnmountEffect } from 'primereact/hooks';
|
|
4
4
|
import { ObjectUtils, classNames, IconUtils, DomHandler, ZIndexUtils } from 'primereact/utils';
|
|
5
5
|
import { Ripple } from 'primereact/ripple';
|
|
6
|
+
import { AngleRightIcon } from 'primereact/icons/angleright';
|
|
7
|
+
import { AngleDownIcon } from 'primereact/icons/angledown';
|
|
8
|
+
import { BarsIcon } from 'primereact/icons/bars';
|
|
6
9
|
|
|
7
10
|
function _extends() {
|
|
8
11
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -82,6 +85,8 @@ var MenubarBase = {
|
|
|
82
85
|
style: null,
|
|
83
86
|
className: null,
|
|
84
87
|
start: null,
|
|
88
|
+
submenuIcon: null,
|
|
89
|
+
menuIcon: null,
|
|
85
90
|
end: null,
|
|
86
91
|
children: undefined
|
|
87
92
|
},
|
|
@@ -93,6 +98,49 @@ var MenubarBase = {
|
|
|
93
98
|
}
|
|
94
99
|
};
|
|
95
100
|
|
|
101
|
+
function _typeof(obj) {
|
|
102
|
+
"@babel/helpers - typeof";
|
|
103
|
+
|
|
104
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
105
|
+
return typeof obj;
|
|
106
|
+
} : function (obj) {
|
|
107
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
108
|
+
}, _typeof(obj);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function _toPrimitive(input, hint) {
|
|
112
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
113
|
+
var prim = input[Symbol.toPrimitive];
|
|
114
|
+
if (prim !== undefined) {
|
|
115
|
+
var res = prim.call(input, hint || "default");
|
|
116
|
+
if (_typeof(res) !== "object") return res;
|
|
117
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
118
|
+
}
|
|
119
|
+
return (hint === "string" ? String : Number)(input);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function _toPropertyKey(arg) {
|
|
123
|
+
var key = _toPrimitive(arg, "string");
|
|
124
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function _defineProperty(obj, key, value) {
|
|
128
|
+
key = _toPropertyKey(key);
|
|
129
|
+
if (key in obj) {
|
|
130
|
+
Object.defineProperty(obj, key, {
|
|
131
|
+
value: value,
|
|
132
|
+
enumerable: true,
|
|
133
|
+
configurable: true,
|
|
134
|
+
writable: true
|
|
135
|
+
});
|
|
136
|
+
} else {
|
|
137
|
+
obj[key] = value;
|
|
138
|
+
}
|
|
139
|
+
return obj;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
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; }
|
|
143
|
+
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; }
|
|
96
144
|
var MenubarSub = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
97
145
|
var _React$useState = React.useState(null),
|
|
98
146
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -236,7 +284,8 @@ var MenubarSub = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
236
284
|
mobileActive: props.mobileActive,
|
|
237
285
|
onLeafClick: onLeafClick,
|
|
238
286
|
onKeyDown: onChildItemKeyDown,
|
|
239
|
-
parentActive: item === activeItemState
|
|
287
|
+
parentActive: item === activeItemState,
|
|
288
|
+
submenuIcon: props.submenuIcon
|
|
240
289
|
});
|
|
241
290
|
}
|
|
242
291
|
return null;
|
|
@@ -253,10 +302,6 @@ var MenubarSub = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
253
302
|
'p-disabled': item.disabled
|
|
254
303
|
});
|
|
255
304
|
var iconClassName = classNames('p-menuitem-icon', item.icon);
|
|
256
|
-
var submenuIconClassName = classNames('p-submenu-icon pi', {
|
|
257
|
-
'pi-angle-down': props.root,
|
|
258
|
-
'pi-angle-right': !props.root
|
|
259
|
-
});
|
|
260
305
|
var icon = IconUtils.getJSXIcon(item.icon, {
|
|
261
306
|
className: 'p-menuitem-icon'
|
|
262
307
|
}, {
|
|
@@ -265,8 +310,17 @@ var MenubarSub = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
265
310
|
var label = item.label && /*#__PURE__*/React.createElement("span", {
|
|
266
311
|
className: "p-menuitem-text"
|
|
267
312
|
}, item.label);
|
|
268
|
-
var
|
|
313
|
+
var submenuIconClassName = 'p-submenu-icon';
|
|
314
|
+
var submenuIcon = item.items && IconUtils.getJSXIcon(!props.root ? props.submenuIcon || /*#__PURE__*/React.createElement(AngleRightIcon, {
|
|
269
315
|
className: submenuIconClassName
|
|
316
|
+
}) : props.submenuIcon || /*#__PURE__*/React.createElement(AngleDownIcon, {
|
|
317
|
+
className: submenuIconClassName
|
|
318
|
+
}), {
|
|
319
|
+
className: submenuIconClassName
|
|
320
|
+
}, {
|
|
321
|
+
props: _objectSpread({
|
|
322
|
+
menuProps: props.menuProps
|
|
323
|
+
}, props)
|
|
270
324
|
});
|
|
271
325
|
var submenu = createSubmenu(item);
|
|
272
326
|
var content = /*#__PURE__*/React.createElement("a", {
|
|
@@ -412,6 +466,10 @@ var Menubar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
412
466
|
if (props.model && props.model.length < 1) {
|
|
413
467
|
return null;
|
|
414
468
|
}
|
|
469
|
+
var icon = props.menuIcon || /*#__PURE__*/React.createElement(BarsIcon, null);
|
|
470
|
+
var menuIcon = IconUtils.getJSXIcon(icon, undefined, {
|
|
471
|
+
props: props
|
|
472
|
+
});
|
|
415
473
|
/* eslint-disable */
|
|
416
474
|
var button = /*#__PURE__*/React.createElement("a", {
|
|
417
475
|
ref: menuButtonRef,
|
|
@@ -420,9 +478,7 @@ var Menubar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
420
478
|
tabIndex: 0,
|
|
421
479
|
className: "p-menubar-button",
|
|
422
480
|
onClick: toggle
|
|
423
|
-
},
|
|
424
|
-
className: "pi pi-bars"
|
|
425
|
-
}));
|
|
481
|
+
}, menuIcon);
|
|
426
482
|
/* eslint-enable */
|
|
427
483
|
|
|
428
484
|
return button;
|
|
@@ -440,7 +496,8 @@ var Menubar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
440
496
|
model: props.model,
|
|
441
497
|
root: true,
|
|
442
498
|
mobileActive: mobileActiveState,
|
|
443
|
-
onLeafClick: onLeafClick
|
|
499
|
+
onLeafClick: onLeafClick,
|
|
500
|
+
submenuIcon: props.submenuIcon
|
|
444
501
|
});
|
|
445
502
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
446
503
|
id: props.id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import t from"primereact/api";import{useEventListener as n,useMountEffect as r,useUpdateEffect as
|
|
1
|
+
import*as e from"react";import t from"primereact/api";import{useEventListener as n,useMountEffect as r,useUpdateEffect as o,useUnmountEffect as u}from"primereact/hooks";import{ObjectUtils as l,classNames as i,IconUtils as a,DomHandler as c,ZIndexUtils as s}from"primereact/utils";import{Ripple as m}from"primereact/ripple";import{AngleRightIcon as f}from"primereact/icons/angleright";import{AngleDownIcon as p}from"primereact/icons/angledown";import{BarsIcon as b}from"primereact/icons/bars";function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function v(e){if(Array.isArray(e))return e}function y(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,u,l,i=[],a=!0,c=!1;try{if(u=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=u.call(n)).done)&&(i.push(r.value),i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{if(!a&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(e){if("string"==typeof e)return g(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)?g(e,t):void 0}}function E(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e,t){return v(e)||y(e,t)||h(e,t)||E()}var P={defaultProps:{__TYPE:"Menubar",id:null,model:null,style:null,className:null,start:null,submenuIcon:null,menuIcon:null,end:null,children:void 0},getProps:function(e){return l.getMergedProps(e,P.defaultProps)},getOtherProps:function(e){return l.getDiffProps(e,P.defaultProps)}};function S(e){return S="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},S(e)}function w(e,t){if("object"!==S(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function N(e){var t=w(e,"string");return"symbol"===S(t)?t:String(t)}function j(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D=e.memo(e.forwardRef((function(t,u){var s=O(e.useState(null),2),b=s[0],d=s[1],v=O(n({type:"click",listener:function(e){u&&u.current&&!u.current.contains(e.target)&&d(null)}}),1)[0],y=function(e,n){n.disabled||t.mobileActive?e.preventDefault():t.root?(b||t.popup)&&d(n):d(n)},g=function(e,t){t.disabled?e.preventDefault():(t.url||e.preventDefault(),t.command&&t.command({originalEvent:e,item:t}),t.items?d(b&&t===b?null:t):k())},h=function(e,n){var r=e.currentTarget.parentElement;switch(e.which){case 40:t.root?n.items&&P(n,r):w(r),e.preventDefault();break;case 38:!t.root&&N(r),e.preventDefault();break;case 39:if(t.root){var o=j(r);o&&o.children[0].focus()}else n.items&&P(n,r);e.preventDefault();break;case 37:t.root&&N(r),e.preventDefault()}t.onKeyDown&&t.onKeyDown(e,r)},E=function(e,n){t.root?38===e.which&&null==n.previousElementSibling&&S(n):37===e.which&&S(n)},P=function(e,t){d(e),setTimeout((function(){t.children[1].children[0].children[0].focus()}),50)},S=function(e){d(null),e.parentElement.previousElementSibling.focus()},w=function(e){var t=j(e);t&&t.children[0].focus()},N=function(e){var t=I(e);t&&t.children[0].focus()},j=function e(t){var n=t.nextElementSibling;return n?c.hasClass(n,"p-disabled")||!c.hasClass(n,"p-menuitem")?e(n):n:null},I=function e(t){var n=t.previousElementSibling;return n?c.hasClass(n,"p-disabled")||!c.hasClass(n,"p-menuitem")?e(n):n:null},k=function(){d(null),t.onLeafClick&&t.onLeafClick()};r((function(){v()})),o((function(){!t.parentActive&&d(null)}),[t.parentActive]);var A=function(t){return e.createElement("li",{key:"separator_"+t,className:"p-menu-separator",role:"separator"})},x=function(n){return n.items?e.createElement(D,{menuProps:t.menuProps,model:n.items,mobileActive:t.mobileActive,onLeafClick:k,onKeyDown:E,parentActive:n===b,submenuIcon:t.submenuIcon}):null},M=function(n,r){if(!1===n.visible)return null;var o=n.label+"_"+r,u=i("p-menuitem",{"p-menuitem-active":b===n},n.className),c=i("p-menuitem-link",{"p-disabled":n.disabled}),s=i("p-menuitem-icon",n.icon),d=a.getJSXIcon(n.icon,{className:"p-menuitem-icon"},{props:t.menuProps}),v=n.label&&e.createElement("span",{className:"p-menuitem-text"},n.label),E="p-submenu-icon",O=n.items&&a.getJSXIcon(t.root?t.submenuIcon||e.createElement(p,{className:E}):t.submenuIcon||e.createElement(f,{className:E}),{className:E},{props:C({menuProps:t.menuProps},t)}),P=x(n),S=e.createElement("a",{href:n.url||"#",role:"menuitem",className:c,target:n.target,"aria-haspopup":null!=n.items,onClick:function(e){return g(e,n)},onKeyDown:function(e){return h(e,n)}},d,v,O,e.createElement(m,null));n.template&&(S=l.getJSXElement(n.template,n,{onClick:function(e){return g(e,n)},onKeyDown:function(e){return h(e,n)},className:c,labelClassName:"p-menuitem-text",iconClassName:s,submenuIconClassName:E,element:S,props:t}));return e.createElement("li",{key:o,role:"none",id:n.id,className:u,style:n.style,onMouseEnter:function(e){return y(e,n)}},S,P)},J=function(e,t){return e.separator?A(t):M(e,t)},R=t.root?"menubar":"menu",X=i({"p-submenu-list":!t.root,"p-menubar-root-list":t.root}),K=t.model?t.model.map(J):null;return e.createElement("ul",{ref:u,className:X,role:R},K)})));D.displayName="MenubarSub";var k=e.memo(e.forwardRef((function(r,c){var m=P.getProps(r),f=O(e.useState(!1),2),p=f[0],v=f[1],y=e.useRef(null),g=e.useRef(null),h=e.useRef(null),E=O(n({type:"click",listener:function(e){p&&j(e)&&v(!1)}}),2),S=E[0],w=E[1],N=function(e){e.preventDefault(),v((function(e){return!e}))},j=function(e){return g.current!==e.target&&!g.current.contains(e.target)&&h.current!==e.target&&!h.current.contains(e.target)};o((function(){p?(s.set("menu",g.current,t.autoZIndex,t.zIndex.menu),S()):(w(),s.clear(g.current))}),[p]),u((function(){s.clear(g.current)})),e.useImperativeHandle(c,(function(){return{props:m,toggle:N,useCustomContent:useCustomContent,getElement:function(){return y.current},getRootMenu:function(){return g.current},getMenuButton:function(){return h.current}}}));var I=P.getOtherProps(m),C=i("p-menubar p-component",{"p-menubar-mobile-active":p},m.className),k=function(){if(m.start){var t=l.getJSXElement(m.start,m);return e.createElement("div",{className:"p-menubar-start"},t)}return null}(),A=function(){if(m.end){var t=l.getJSXElement(m.end,m);return e.createElement("div",{className:"p-menubar-end"},t)}return null}(),x=function(){if(m.model&&m.model.length<1)return null;var t=a.getJSXIcon(m.menuIcon||e.createElement(b,null),void 0,{props:m});return e.createElement("a",{ref:h,href:"#",role:"button",tabIndex:0,className:"p-menubar-button",onClick:N},t)}(),M=e.createElement(D,{ref:g,menuProps:m,model:m.model,root:!0,mobileActive:p,onLeafClick:function(){v(!1)},submenuIcon:m.submenuIcon});return e.createElement("div",d({id:m.id,className:C,style:m.style},I),k,x,M,A)})));k.displayName="Menubar";export{k as Menubar};
|
package/menubar/menubar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.menubar = (function (exports, React, PrimeReact, hooks, utils, ripple) {
|
|
2
|
+
this.primereact.menubar = (function (exports, React, PrimeReact, hooks, utils, ripple, angleright, angledown, bars) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -103,6 +103,8 @@ this.primereact.menubar = (function (exports, React, PrimeReact, hooks, utils, r
|
|
|
103
103
|
style: null,
|
|
104
104
|
className: null,
|
|
105
105
|
start: null,
|
|
106
|
+
submenuIcon: null,
|
|
107
|
+
menuIcon: null,
|
|
106
108
|
end: null,
|
|
107
109
|
children: undefined
|
|
108
110
|
},
|
|
@@ -114,6 +116,49 @@ this.primereact.menubar = (function (exports, React, PrimeReact, hooks, utils, r
|
|
|
114
116
|
}
|
|
115
117
|
};
|
|
116
118
|
|
|
119
|
+
function _typeof(obj) {
|
|
120
|
+
"@babel/helpers - typeof";
|
|
121
|
+
|
|
122
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
123
|
+
return typeof obj;
|
|
124
|
+
} : function (obj) {
|
|
125
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
126
|
+
}, _typeof(obj);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function _toPrimitive(input, hint) {
|
|
130
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
131
|
+
var prim = input[Symbol.toPrimitive];
|
|
132
|
+
if (prim !== undefined) {
|
|
133
|
+
var res = prim.call(input, hint || "default");
|
|
134
|
+
if (_typeof(res) !== "object") return res;
|
|
135
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
136
|
+
}
|
|
137
|
+
return (hint === "string" ? String : Number)(input);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function _toPropertyKey(arg) {
|
|
141
|
+
var key = _toPrimitive(arg, "string");
|
|
142
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function _defineProperty(obj, key, value) {
|
|
146
|
+
key = _toPropertyKey(key);
|
|
147
|
+
if (key in obj) {
|
|
148
|
+
Object.defineProperty(obj, key, {
|
|
149
|
+
value: value,
|
|
150
|
+
enumerable: true,
|
|
151
|
+
configurable: true,
|
|
152
|
+
writable: true
|
|
153
|
+
});
|
|
154
|
+
} else {
|
|
155
|
+
obj[key] = value;
|
|
156
|
+
}
|
|
157
|
+
return obj;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
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; }
|
|
161
|
+
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; }
|
|
117
162
|
var MenubarSub = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
118
163
|
var _React$useState = React__namespace.useState(null),
|
|
119
164
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -257,7 +302,8 @@ this.primereact.menubar = (function (exports, React, PrimeReact, hooks, utils, r
|
|
|
257
302
|
mobileActive: props.mobileActive,
|
|
258
303
|
onLeafClick: onLeafClick,
|
|
259
304
|
onKeyDown: onChildItemKeyDown,
|
|
260
|
-
parentActive: item === activeItemState
|
|
305
|
+
parentActive: item === activeItemState,
|
|
306
|
+
submenuIcon: props.submenuIcon
|
|
261
307
|
});
|
|
262
308
|
}
|
|
263
309
|
return null;
|
|
@@ -274,10 +320,6 @@ this.primereact.menubar = (function (exports, React, PrimeReact, hooks, utils, r
|
|
|
274
320
|
'p-disabled': item.disabled
|
|
275
321
|
});
|
|
276
322
|
var iconClassName = utils.classNames('p-menuitem-icon', item.icon);
|
|
277
|
-
var submenuIconClassName = utils.classNames('p-submenu-icon pi', {
|
|
278
|
-
'pi-angle-down': props.root,
|
|
279
|
-
'pi-angle-right': !props.root
|
|
280
|
-
});
|
|
281
323
|
var icon = utils.IconUtils.getJSXIcon(item.icon, {
|
|
282
324
|
className: 'p-menuitem-icon'
|
|
283
325
|
}, {
|
|
@@ -286,8 +328,17 @@ this.primereact.menubar = (function (exports, React, PrimeReact, hooks, utils, r
|
|
|
286
328
|
var label = item.label && /*#__PURE__*/React__namespace.createElement("span", {
|
|
287
329
|
className: "p-menuitem-text"
|
|
288
330
|
}, item.label);
|
|
289
|
-
var
|
|
331
|
+
var submenuIconClassName = 'p-submenu-icon';
|
|
332
|
+
var submenuIcon = item.items && utils.IconUtils.getJSXIcon(!props.root ? props.submenuIcon || /*#__PURE__*/React__namespace.createElement(angleright.AngleRightIcon, {
|
|
290
333
|
className: submenuIconClassName
|
|
334
|
+
}) : props.submenuIcon || /*#__PURE__*/React__namespace.createElement(angledown.AngleDownIcon, {
|
|
335
|
+
className: submenuIconClassName
|
|
336
|
+
}), {
|
|
337
|
+
className: submenuIconClassName
|
|
338
|
+
}, {
|
|
339
|
+
props: _objectSpread({
|
|
340
|
+
menuProps: props.menuProps
|
|
341
|
+
}, props)
|
|
291
342
|
});
|
|
292
343
|
var submenu = createSubmenu(item);
|
|
293
344
|
var content = /*#__PURE__*/React__namespace.createElement("a", {
|
|
@@ -433,6 +484,10 @@ this.primereact.menubar = (function (exports, React, PrimeReact, hooks, utils, r
|
|
|
433
484
|
if (props.model && props.model.length < 1) {
|
|
434
485
|
return null;
|
|
435
486
|
}
|
|
487
|
+
var icon = props.menuIcon || /*#__PURE__*/React__namespace.createElement(bars.BarsIcon, null);
|
|
488
|
+
var menuIcon = utils.IconUtils.getJSXIcon(icon, undefined, {
|
|
489
|
+
props: props
|
|
490
|
+
});
|
|
436
491
|
/* eslint-disable */
|
|
437
492
|
var button = /*#__PURE__*/React__namespace.createElement("a", {
|
|
438
493
|
ref: menuButtonRef,
|
|
@@ -441,9 +496,7 @@ this.primereact.menubar = (function (exports, React, PrimeReact, hooks, utils, r
|
|
|
441
496
|
tabIndex: 0,
|
|
442
497
|
className: "p-menubar-button",
|
|
443
498
|
onClick: toggle
|
|
444
|
-
},
|
|
445
|
-
className: "pi pi-bars"
|
|
446
|
-
}));
|
|
499
|
+
}, menuIcon);
|
|
447
500
|
/* eslint-enable */
|
|
448
501
|
|
|
449
502
|
return button;
|
|
@@ -461,7 +514,8 @@ this.primereact.menubar = (function (exports, React, PrimeReact, hooks, utils, r
|
|
|
461
514
|
model: props.model,
|
|
462
515
|
root: true,
|
|
463
516
|
mobileActive: mobileActiveState,
|
|
464
|
-
onLeafClick: onLeafClick
|
|
517
|
+
onLeafClick: onLeafClick,
|
|
518
|
+
submenuIcon: props.submenuIcon
|
|
465
519
|
});
|
|
466
520
|
return /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
467
521
|
id: props.id,
|
|
@@ -477,4 +531,4 @@ this.primereact.menubar = (function (exports, React, PrimeReact, hooks, utils, r
|
|
|
477
531
|
|
|
478
532
|
return exports;
|
|
479
533
|
|
|
480
|
-
})({}, React, primereact.api, primereact.hooks, primereact.utils, primereact.ripple);
|
|
534
|
+
})({}, React, primereact.api, primereact.hooks, primereact.utils, primereact.ripple, primereact.icons/angleright, primereact.icons/angledown, primereact.icons/bars);
|
package/menubar/menubar.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.menubar=function(e,t,n,r,l,a){"use strict";function
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.menubar=function(e,t,n,r,o,u,l,a,i){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var m=s(t),f=c(n);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function b(e){if(Array.isArray(e))return e}function d(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,u,l,a=[],i=!0,c=!1;try{if(u=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=u.call(n)).done)&&(a.push(r.value),a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}function v(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 y(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){return b(e)||d(e,t)||y(e,t)||g()}var O={defaultProps:{__TYPE:"Menubar",id:null,model:null,style:null,className:null,start:null,submenuIcon:null,menuIcon:null,end:null,children:void 0},getProps:function(e){return o.ObjectUtils.getMergedProps(e,O.defaultProps)},getOtherProps:function(e){return o.ObjectUtils.getDiffProps(e,O.defaultProps)}};function E(e){return E="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},E(e)}function j(e,t){if("object"!==E(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function P(e){var t=j(e,"string");return"symbol"===E(t)?t:String(t)}function I(e,t,n){return(t=P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=m.memo(m.forwardRef((function(e,t){var n=h(m.useState(null),2),i=n[0],c=n[1],s=h(r.useEventListener({type:"click",listener:function(e){t&&t.current&&!t.current.contains(e.target)&&c(null)}}),1)[0],f=function(t,n){n.disabled||e.mobileActive?t.preventDefault():e.root?(i||e.popup)&&c(n):c(n)},p=function(e,t){t.disabled?e.preventDefault():(t.url||e.preventDefault(),t.command&&t.command({originalEvent:e,item:t}),t.items?c(i&&t===i?null:t):P())},b=function(t,n){var r=t.currentTarget.parentElement;switch(t.which){case 40:e.root?n.items&&v(n,r):g(r),t.preventDefault();break;case 38:!e.root&&O(r),t.preventDefault();break;case 39:if(e.root){var o=E(r);o&&o.children[0].focus()}else n.items&&v(n,r);t.preventDefault();break;case 37:e.root&&O(r),t.preventDefault()}e.onKeyDown&&e.onKeyDown(t,r)},d=function(t,n){e.root?38===t.which&&null==n.previousElementSibling&&y(n):37===t.which&&y(n)},v=function(e,t){c(e),setTimeout((function(){t.children[1].children[0].children[0].focus()}),50)},y=function(e){c(null),e.parentElement.previousElementSibling.focus()},g=function(e){var t=E(e);t&&t.children[0].focus()},O=function(e){var t=j(e);t&&t.children[0].focus()},E=function e(t){var n=t.nextElementSibling;return n?o.DomHandler.hasClass(n,"p-disabled")||!o.DomHandler.hasClass(n,"p-menuitem")?e(n):n:null},j=function e(t){var n=t.previousElementSibling;return n?o.DomHandler.hasClass(n,"p-disabled")||!o.DomHandler.hasClass(n,"p-menuitem")?e(n):n:null},P=function(){c(null),e.onLeafClick&&e.onLeafClick()};r.useMountEffect((function(){s()})),r.useUpdateEffect((function(){!e.parentActive&&c(null)}),[e.parentActive]);var I=function(e){return m.createElement("li",{key:"separator_"+e,className:"p-menu-separator",role:"separator"})},w=function(t){return t.items?m.createElement(S,{menuProps:e.menuProps,model:t.items,mobileActive:e.mobileActive,onLeafClick:P,onKeyDown:d,parentActive:t===i,submenuIcon:e.submenuIcon}):null},D=function(t,n){if(!1===t.visible)return null;var r=t.label+"_"+n,c=o.classNames("p-menuitem",{"p-menuitem-active":i===t},t.className),s=o.classNames("p-menuitem-link",{"p-disabled":t.disabled}),d=o.classNames("p-menuitem-icon",t.icon),v=o.IconUtils.getJSXIcon(t.icon,{className:"p-menuitem-icon"},{props:e.menuProps}),y=t.label&&m.createElement("span",{className:"p-menuitem-text"},t.label),g="p-submenu-icon",h=t.items&&o.IconUtils.getJSXIcon(e.root?e.submenuIcon||m.createElement(a.AngleDownIcon,{className:g}):e.submenuIcon||m.createElement(l.AngleRightIcon,{className:g}),{className:g},{props:N({menuProps:e.menuProps},e)}),O=w(t),E=m.createElement("a",{href:t.url||"#",role:"menuitem",className:s,target:t.target,"aria-haspopup":null!=t.items,onClick:function(e){return p(e,t)},onKeyDown:function(e){return b(e,t)}},v,y,h,m.createElement(u.Ripple,null));t.template&&(E=o.ObjectUtils.getJSXElement(t.template,t,{onClick:function(e){return p(e,t)},onKeyDown:function(e){return b(e,t)},className:s,labelClassName:"p-menuitem-text",iconClassName:d,submenuIconClassName:g,element:E,props:e}));return m.createElement("li",{key:r,role:"none",id:t.id,className:c,style:t.style,onMouseEnter:function(e){return f(e,t)}},E,O)},C=function(e,t){return e.separator?I(t):D(e,t)},k=e.root?"menubar":"menu",A=o.classNames({"p-submenu-list":!e.root,"p-menubar-root-list":e.root}),U=e.model?e.model.map(C):null;return m.createElement("ul",{ref:t,className:A,role:k},U)})));S.displayName="MenubarSub";var D=m.memo(m.forwardRef((function(e,t){var n=O.getProps(e),u=h(m.useState(!1),2),l=u[0],a=u[1],c=m.useRef(null),s=m.useRef(null),b=m.useRef(null),d=h(r.useEventListener({type:"click",listener:function(e){l&&E(e)&&a(!1)}}),2),v=d[0],y=d[1],g=function(e){e.preventDefault(),a((function(e){return!e}))},E=function(e){return s.current!==e.target&&!s.current.contains(e.target)&&b.current!==e.target&&!b.current.contains(e.target)};r.useUpdateEffect((function(){l?(o.ZIndexUtils.set("menu",s.current,f.default.autoZIndex,f.default.zIndex.menu),v()):(y(),o.ZIndexUtils.clear(s.current))}),[l]),r.useUnmountEffect((function(){o.ZIndexUtils.clear(s.current)})),m.useImperativeHandle(t,(function(){return{props:n,toggle:g,useCustomContent:useCustomContent,getElement:function(){return c.current},getRootMenu:function(){return s.current},getMenuButton:function(){return b.current}}}));var j=O.getOtherProps(n),P=o.classNames("p-menubar p-component",{"p-menubar-mobile-active":l},n.className),I=function(){if(n.start){var e=o.ObjectUtils.getJSXElement(n.start,n);return m.createElement("div",{className:"p-menubar-start"},e)}return null}(),w=function(){if(n.end){var e=o.ObjectUtils.getJSXElement(n.end,n);return m.createElement("div",{className:"p-menubar-end"},e)}return null}(),N=function(){if(n.model&&n.model.length<1)return null;var e=o.IconUtils.getJSXIcon(n.menuIcon||m.createElement(i.BarsIcon,null),void 0,{props:n});return m.createElement("a",{ref:b,href:"#",role:"button",tabIndex:0,className:"p-menubar-button",onClick:g},e)}(),D=m.createElement(S,{ref:s,menuProps:n,model:n.model,root:!0,mobileActive:l,onLeafClick:function(){a(!1)},submenuIcon:n.submenuIcon});return m.createElement("div",p({id:n.id,className:P,style:n.style},j),I,N,D,w)})));return D.displayName="Menubar",e.Menubar=D,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.hooks,primereact.utils,primereact.ripple,primereact.icons/angleright,primereact.icons/angledown,primereact.icons/bars);
|
package/menuitem/menuitem.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ interface MenuItemCommandEvent {
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Menu item options
|
|
30
|
+
* @deprecated Since v9.3.0
|
|
30
31
|
*/
|
|
31
32
|
interface MenuItemOptions {
|
|
32
33
|
/**
|
|
@@ -120,6 +121,7 @@ export interface MenuItem {
|
|
|
120
121
|
command?(event: MenuItemCommandEvent): void;
|
|
121
122
|
/**
|
|
122
123
|
* Template of the menuitem.
|
|
124
|
+
* @deprecated Since v9.3.0
|
|
123
125
|
*/
|
|
124
126
|
template?: React.ReactNode | ((item: MenuItem, options: MenuItemOptions) => React.ReactNode);
|
|
125
127
|
/**
|
package/message/message.cjs.js
CHANGED
|
@@ -4,6 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var utils = require('primereact/utils');
|
|
7
|
+
var exclamationtriangle = require('primereact/icons/exclamationtriangle');
|
|
8
|
+
var infocircle = require('primereact/icons/infocircle');
|
|
9
|
+
var timescircle = require('primereact/icons/timescircle');
|
|
10
|
+
var check = require('primereact/icons/check');
|
|
7
11
|
|
|
8
12
|
function _interopNamespace(e) {
|
|
9
13
|
if (e && e.__esModule) return e;
|
|
@@ -68,21 +72,38 @@ var Message = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
|
|
|
68
72
|
return utils.ObjectUtils.getJSXElement(props.content, props);
|
|
69
73
|
}
|
|
70
74
|
var text = utils.ObjectUtils.getJSXElement(props.text, props);
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
'
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
var iconClassName = 'p-inline-message-icon';
|
|
76
|
+
var icon = props.icon;
|
|
77
|
+
if (!icon) {
|
|
78
|
+
switch (props.severity) {
|
|
79
|
+
case 'info':
|
|
80
|
+
icon = /*#__PURE__*/React__namespace.createElement(infocircle.InfoCircleIcon, {
|
|
81
|
+
className: iconClassName
|
|
82
|
+
});
|
|
83
|
+
break;
|
|
84
|
+
case 'warn':
|
|
85
|
+
icon = /*#__PURE__*/React__namespace.createElement(exclamationtriangle.ExclamationTriangleIcon, {
|
|
86
|
+
className: iconClassName
|
|
87
|
+
});
|
|
88
|
+
break;
|
|
89
|
+
case 'error':
|
|
90
|
+
icon = /*#__PURE__*/React__namespace.createElement(timescircle.TimesCircleIcon, {
|
|
91
|
+
className: iconClassName
|
|
92
|
+
});
|
|
93
|
+
break;
|
|
94
|
+
case 'success':
|
|
95
|
+
icon = /*#__PURE__*/React__namespace.createElement(check.CheckIcon, {
|
|
96
|
+
className: iconClassName
|
|
97
|
+
});
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
79
100
|
}
|
|
80
|
-
var
|
|
81
|
-
className:
|
|
101
|
+
var messageIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
102
|
+
className: iconClassName
|
|
82
103
|
}, {
|
|
83
104
|
props: props
|
|
84
105
|
});
|
|
85
|
-
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null,
|
|
106
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, messageIcon, /*#__PURE__*/React__namespace.createElement("span", {
|
|
86
107
|
className: "p-inline-message-text"
|
|
87
108
|
}, text));
|
|
88
109
|
};
|
|
@@ -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/icons/exclamationtriangle"),n=require("primereact/icons/infocircle"),s=require("primereact/icons/timescircle"),i=require("primereact/icons/check");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 c=a(e);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(this,arguments)}var o={defaultProps:{__TYPE:"Message",id:null,className:null,style:null,text:null,icon:null,severity:"info",content:null,children:void 0},getProps:function(e){return r.ObjectUtils.getMergedProps(e,o.defaultProps)},getOtherProps:function(e){return r.ObjectUtils.getDiffProps(e,o.defaultProps)}},u=c.memo(c.forwardRef((function(e,a){var u=o.getProps(e),m=c.useRef(null);c.useImperativeHandle(a,(function(){return{props:u,getElement:function(){return m.current}}}));var p=o.getOtherProps(u),f=r.classNames("p-inline-message p-component",{"p-inline-message-info":"info"===u.severity,"p-inline-message-warn":"warn"===u.severity,"p-inline-message-error":"error"===u.severity,"p-inline-message-success":"success"===u.severity,"p-inline-message-icon-only":!u.text},u.className),g=function(){if(u.content)return r.ObjectUtils.getJSXElement(u.content,u);var e=r.ObjectUtils.getJSXElement(u.text,u),a="p-inline-message-icon",l=u.icon;if(!l)switch(u.severity){case"info":l=c.createElement(n.InfoCircleIcon,{className:a});break;case"warn":l=c.createElement(t.ExclamationTriangleIcon,{className:a});break;case"error":l=c.createElement(s.TimesCircleIcon,{className:a});break;case"success":l=c.createElement(i.CheckIcon,{className:a})}var o=r.IconUtils.getJSXIcon(l,{className:a},{props:u});return c.createElement(c.Fragment,null,o,c.createElement("span",{className:"p-inline-message-text"},e))}();return c.createElement("div",l({id:u.id,ref:m,className:f,style:u.style},p,{role:"alert","aria-live":"polite"}),g)})));u.displayName="Message",exports.Message=u;
|
package/message/message.esm.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ObjectUtils, classNames, IconUtils } from 'primereact/utils';
|
|
3
|
+
import { ExclamationTriangleIcon } from 'primereact/icons/exclamationtriangle';
|
|
4
|
+
import { InfoCircleIcon } from 'primereact/icons/infocircle';
|
|
5
|
+
import { TimesCircleIcon } from 'primereact/icons/timescircle';
|
|
6
|
+
import { CheckIcon } from 'primereact/icons/check';
|
|
3
7
|
|
|
4
8
|
function _extends() {
|
|
5
9
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -44,21 +48,38 @@ var Message = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
44
48
|
return ObjectUtils.getJSXElement(props.content, props);
|
|
45
49
|
}
|
|
46
50
|
var text = ObjectUtils.getJSXElement(props.text, props);
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
'
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
var iconClassName = 'p-inline-message-icon';
|
|
52
|
+
var icon = props.icon;
|
|
53
|
+
if (!icon) {
|
|
54
|
+
switch (props.severity) {
|
|
55
|
+
case 'info':
|
|
56
|
+
icon = /*#__PURE__*/React.createElement(InfoCircleIcon, {
|
|
57
|
+
className: iconClassName
|
|
58
|
+
});
|
|
59
|
+
break;
|
|
60
|
+
case 'warn':
|
|
61
|
+
icon = /*#__PURE__*/React.createElement(ExclamationTriangleIcon, {
|
|
62
|
+
className: iconClassName
|
|
63
|
+
});
|
|
64
|
+
break;
|
|
65
|
+
case 'error':
|
|
66
|
+
icon = /*#__PURE__*/React.createElement(TimesCircleIcon, {
|
|
67
|
+
className: iconClassName
|
|
68
|
+
});
|
|
69
|
+
break;
|
|
70
|
+
case 'success':
|
|
71
|
+
icon = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
72
|
+
className: iconClassName
|
|
73
|
+
});
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
55
76
|
}
|
|
56
|
-
var
|
|
57
|
-
className:
|
|
77
|
+
var messageIcon = IconUtils.getJSXIcon(icon, {
|
|
78
|
+
className: iconClassName
|
|
58
79
|
}, {
|
|
59
80
|
props: props
|
|
60
81
|
});
|
|
61
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
82
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, messageIcon, /*#__PURE__*/React.createElement("span", {
|
|
62
83
|
className: "p-inline-message-text"
|
|
63
84
|
}, text));
|
|
64
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{ObjectUtils as r,classNames as
|
|
1
|
+
import*as e from"react";import{ObjectUtils as r,classNames as t,IconUtils as n}from"primereact/utils";import{ExclamationTriangleIcon as s}from"primereact/icons/exclamationtriangle";import{InfoCircleIcon as a}from"primereact/icons/infocircle";import{TimesCircleIcon as i}from"primereact/icons/timescircle";import{CheckIcon as c}from"primereact/icons/check";function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(this,arguments)}var o={defaultProps:{__TYPE:"Message",id:null,className:null,style:null,text:null,icon:null,severity:"info",content:null,children:void 0},getProps:function(e){return r.getMergedProps(e,o.defaultProps)},getOtherProps:function(e){return r.getDiffProps(e,o.defaultProps)}},m=e.memo(e.forwardRef((function(m,p){var u=o.getProps(m),f=e.useRef(null);e.useImperativeHandle(p,(function(){return{props:u,getElement:function(){return f.current}}}));var g=o.getOtherProps(u),v=t("p-inline-message p-component",{"p-inline-message-info":"info"===u.severity,"p-inline-message-warn":"warn"===u.severity,"p-inline-message-error":"error"===u.severity,"p-inline-message-success":"success"===u.severity,"p-inline-message-icon-only":!u.text},u.className),d=function(){if(u.content)return r.getJSXElement(u.content,u);var t=r.getJSXElement(u.text,u),l="p-inline-message-icon",o=u.icon;if(!o)switch(u.severity){case"info":o=e.createElement(a,{className:l});break;case"warn":o=e.createElement(s,{className:l});break;case"error":o=e.createElement(i,{className:l});break;case"success":o=e.createElement(c,{className:l})}var m=n.getJSXIcon(o,{className:l},{props:u});return e.createElement(e.Fragment,null,m,e.createElement("span",{className:"p-inline-message-text"},t))}();return e.createElement("div",l({id:u.id,ref:f,className:v,style:u.style},g,{role:"alert","aria-live":"polite"}),d)})));m.displayName="Message";export{m as Message};
|
package/message/message.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.message = (function (exports, React, utils) {
|
|
2
|
+
this.primereact.message = (function (exports, React, utils, exclamationtriangle, infocircle, timescircle, check) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopNamespace(e) {
|
|
@@ -65,21 +65,38 @@ this.primereact.message = (function (exports, React, utils) {
|
|
|
65
65
|
return utils.ObjectUtils.getJSXElement(props.content, props);
|
|
66
66
|
}
|
|
67
67
|
var text = utils.ObjectUtils.getJSXElement(props.text, props);
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
'
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
var iconClassName = 'p-inline-message-icon';
|
|
69
|
+
var icon = props.icon;
|
|
70
|
+
if (!icon) {
|
|
71
|
+
switch (props.severity) {
|
|
72
|
+
case 'info':
|
|
73
|
+
icon = /*#__PURE__*/React__namespace.createElement(infocircle.InfoCircleIcon, {
|
|
74
|
+
className: iconClassName
|
|
75
|
+
});
|
|
76
|
+
break;
|
|
77
|
+
case 'warn':
|
|
78
|
+
icon = /*#__PURE__*/React__namespace.createElement(exclamationtriangle.ExclamationTriangleIcon, {
|
|
79
|
+
className: iconClassName
|
|
80
|
+
});
|
|
81
|
+
break;
|
|
82
|
+
case 'error':
|
|
83
|
+
icon = /*#__PURE__*/React__namespace.createElement(timescircle.TimesCircleIcon, {
|
|
84
|
+
className: iconClassName
|
|
85
|
+
});
|
|
86
|
+
break;
|
|
87
|
+
case 'success':
|
|
88
|
+
icon = /*#__PURE__*/React__namespace.createElement(check.CheckIcon, {
|
|
89
|
+
className: iconClassName
|
|
90
|
+
});
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
76
93
|
}
|
|
77
|
-
var
|
|
78
|
-
className:
|
|
94
|
+
var messageIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
95
|
+
className: iconClassName
|
|
79
96
|
}, {
|
|
80
97
|
props: props
|
|
81
98
|
});
|
|
82
|
-
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null,
|
|
99
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, messageIcon, /*#__PURE__*/React__namespace.createElement("span", {
|
|
83
100
|
className: "p-inline-message-text"
|
|
84
101
|
}, text));
|
|
85
102
|
};
|
|
@@ -118,4 +135,4 @@ this.primereact.message = (function (exports, React, utils) {
|
|
|
118
135
|
|
|
119
136
|
return exports;
|
|
120
137
|
|
|
121
|
-
})({}, React, primereact.utils);
|
|
138
|
+
})({}, React, primereact.utils, primereact.icons/exclamationtriangle, primereact.icons/infocircle, primereact.icons/timescircle, primereact.icons/check);
|
package/message/message.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.message=function(e,t,r){"use strict";function
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.message=function(e,t,r,n,s,i,a){"use strict";function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var l=c(t);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}var u={defaultProps:{__TYPE:"Message",id:null,className:null,style:null,text:null,icon:null,severity:"info",content:null,children:void 0},getProps:function(e){return r.ObjectUtils.getMergedProps(e,u.defaultProps)},getOtherProps:function(e){return r.ObjectUtils.getDiffProps(e,u.defaultProps)}},m=l.memo(l.forwardRef((function(e,t){var c=u.getProps(e),m=l.useRef(null);l.useImperativeHandle(t,(function(){return{props:c,getElement:function(){return m.current}}}));var p=u.getOtherProps(c),f=r.classNames("p-inline-message p-component",{"p-inline-message-info":"info"===c.severity,"p-inline-message-warn":"warn"===c.severity,"p-inline-message-error":"error"===c.severity,"p-inline-message-success":"success"===c.severity,"p-inline-message-icon-only":!c.text},c.className),g=function(){if(c.content)return r.ObjectUtils.getJSXElement(c.content,c);var e=r.ObjectUtils.getJSXElement(c.text,c),t="p-inline-message-icon",o=c.icon;if(!o)switch(c.severity){case"info":o=l.createElement(s.InfoCircleIcon,{className:t});break;case"warn":o=l.createElement(n.ExclamationTriangleIcon,{className:t});break;case"error":o=l.createElement(i.TimesCircleIcon,{className:t});break;case"success":o=l.createElement(a.CheckIcon,{className:t})}var u=r.IconUtils.getJSXIcon(o,{className:t},{props:c});return l.createElement(l.Fragment,null,u,l.createElement("span",{className:"p-inline-message-text"},e))}();return l.createElement("div",o({id:c.id,ref:m,className:f,style:c.style},p,{role:"alert","aria-live":"polite"}),g)})));return m.displayName="Message",e.Message=m,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils,primereact.icons/exclamationtriangle,primereact.icons/infocircle,primereact.icons/timescircle,primereact.icons/check);
|