primereact 9.2.3 → 9.3.1
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 +5 -9
- 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.cjs.js +1 -0
- package/api/api.cjs.min.js +1 -1
- 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 +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 +49 -39
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +17 -2
- package/calendar/calendar.esm.js +50 -40
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +46 -41
- 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 +3633 -160
- package/core/core.min.js +102 -10
- package/datatable/datatable.cjs.js +195 -90
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +50 -8
- package/datatable/datatable.esm.js +196 -91
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +181 -92
- 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 +88 -23
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +46 -0
- package/image/image.esm.js +89 -24
- package/image/image.esm.min.js +1 -1
- package/image/image.js +83 -25
- 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/inputmask/inputmask.d.ts +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/inputtextarea/inputtextarea.cjs.js +2 -2
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +2 -2
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +2 -2
- package/inputtextarea/inputtextarea.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/mention/mention.cjs.js +3 -2
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +3 -2
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +3 -2
- package/mention/mention.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.d.ts +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 +136 -54
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +10 -1
- package/messages/messages.esm.js +136 -54
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +133 -56
- 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 +58 -21
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +17 -0
- package/paginator/paginator.esm.js +59 -22
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +56 -23
- 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 +15 -4
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +10 -1
- package/password/password.esm.js +16 -5
- package/password/password.esm.min.js +1 -1
- package/password/password.js +15 -6
- 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 +2789 -816
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +2744 -817
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +2789 -816
- 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 +180 -149
- 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 +35 -17
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +15 -2
- package/tabview/tabview.esm.js +36 -18
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +34 -19
- package/tabview/tabview.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +13 -5
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +5 -0
- package/tieredmenu/tieredmenu.esm.js +13 -5
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +14 -7
- 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 +5 -199
package/slidemenu/slidemenu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.slidemenu = (function (exports, React, PrimeReact, csstransition, hooks, overlayservice, portal, utils) {
|
|
2
|
+
this.primereact.slidemenu = (function (exports, React, PrimeReact, csstransition, hooks, overlayservice, portal, utils, angleright, chevronleft) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -100,6 +100,7 @@ this.primereact.slidemenu = (function (exports, React, PrimeReact, csstransition
|
|
|
100
100
|
__TYPE: 'SlideMenu',
|
|
101
101
|
appendTo: null,
|
|
102
102
|
autoZIndex: true,
|
|
103
|
+
backIcon: null,
|
|
103
104
|
backLabel: 'Back',
|
|
104
105
|
baseZIndex: 0,
|
|
105
106
|
className: null,
|
|
@@ -113,6 +114,7 @@ this.primereact.slidemenu = (function (exports, React, PrimeReact, csstransition
|
|
|
113
114
|
onNavigate: null,
|
|
114
115
|
popup: false,
|
|
115
116
|
style: null,
|
|
117
|
+
submenuIcon: null,
|
|
116
118
|
transitionOptions: null,
|
|
117
119
|
viewportHeight: 175,
|
|
118
120
|
children: undefined
|
|
@@ -215,7 +217,8 @@ this.primereact.slidemenu = (function (exports, React, PrimeReact, csstransition
|
|
|
215
217
|
menuWidth: props.menuWidth,
|
|
216
218
|
effectDuration: props.effectDuration,
|
|
217
219
|
onForward: props.onForward,
|
|
218
|
-
parentActive: item === activeItemState
|
|
220
|
+
parentActive: item === activeItemState,
|
|
221
|
+
submenuIcon: props.submenuIcon
|
|
219
222
|
});
|
|
220
223
|
}
|
|
221
224
|
return null;
|
|
@@ -234,18 +237,22 @@ this.primereact.slidemenu = (function (exports, React, PrimeReact, csstransition
|
|
|
234
237
|
'p-disabled': item.disabled
|
|
235
238
|
}, item.className);
|
|
236
239
|
var iconClassName = utils.classNames('p-menuitem-icon', item.icon);
|
|
237
|
-
var submenuIconClassName = 'p-submenu-icon pi pi-fw pi-angle-right';
|
|
238
240
|
var icon = utils.IconUtils.getJSXIcon(item.icon, {
|
|
239
241
|
className: 'p-menuitem-icon'
|
|
240
242
|
}, {
|
|
241
243
|
props: props.menuProps
|
|
242
244
|
});
|
|
245
|
+
var submenuIconClassName = 'p-submenu-icon';
|
|
246
|
+
var submenuIcon = item.items && utils.IconUtils.getJSXIcon(props.submenuIcon || /*#__PURE__*/React__namespace.createElement(angleright.AngleRightIcon, {
|
|
247
|
+
className: submenuIconClassName
|
|
248
|
+
}), {
|
|
249
|
+
className: submenuIconClassName
|
|
250
|
+
}, {
|
|
251
|
+
props: props
|
|
252
|
+
});
|
|
243
253
|
var label = item.label && /*#__PURE__*/React__namespace.createElement("span", {
|
|
244
254
|
className: "p-menuitem-text"
|
|
245
255
|
}, item.label);
|
|
246
|
-
var submenuIcon = item.items && /*#__PURE__*/React__namespace.createElement("span", {
|
|
247
|
-
className: submenuIconClassName
|
|
248
|
-
});
|
|
249
256
|
var submenu = createSubmenu(item, index);
|
|
250
257
|
var content = /*#__PURE__*/React__namespace.createElement("a", {
|
|
251
258
|
href: item.url || '#',
|
|
@@ -409,13 +416,20 @@ this.primereact.slidemenu = (function (exports, React, PrimeReact, csstransition
|
|
|
409
416
|
var className = utils.classNames('p-slidemenu-backward', {
|
|
410
417
|
'p-hidden': levelState === 0
|
|
411
418
|
});
|
|
419
|
+
var iconClassName = 'p-slidemenu-backward-icon';
|
|
420
|
+
var icon = props.backIcon || /*#__PURE__*/React__namespace.createElement(chevronleft.ChevronLeftIcon, {
|
|
421
|
+
className: iconClassName
|
|
422
|
+
});
|
|
423
|
+
var backIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
424
|
+
className: iconClassName
|
|
425
|
+
}, {
|
|
426
|
+
props: props
|
|
427
|
+
});
|
|
412
428
|
return /*#__PURE__*/React__namespace.createElement("div", {
|
|
413
429
|
ref: backward,
|
|
414
430
|
className: className,
|
|
415
431
|
onClick: navigateBack
|
|
416
|
-
}, /*#__PURE__*/React__namespace.createElement("span",
|
|
417
|
-
className: "p-slidemenu-backward-icon pi pi-fw pi-chevron-left"
|
|
418
|
-
}), /*#__PURE__*/React__namespace.createElement("span", null, props.backLabel));
|
|
432
|
+
}, backIcon, /*#__PURE__*/React__namespace.createElement("span", null, props.backLabel));
|
|
419
433
|
};
|
|
420
434
|
var createElement = function createElement() {
|
|
421
435
|
var otherProps = SlideMenuBase.getOtherProps(props);
|
|
@@ -462,7 +476,8 @@ this.primereact.slidemenu = (function (exports, React, PrimeReact, csstransition
|
|
|
462
476
|
effectDuration: props.effectDuration,
|
|
463
477
|
level: levelState,
|
|
464
478
|
parentActive: levelState === 0,
|
|
465
|
-
onForward: navigateForward
|
|
479
|
+
onForward: navigateForward,
|
|
480
|
+
submenuIcon: props.submenuIcon
|
|
466
481
|
})), backward)));
|
|
467
482
|
};
|
|
468
483
|
var element = createElement();
|
|
@@ -479,4 +494,4 @@ this.primereact.slidemenu = (function (exports, React, PrimeReact, csstransition
|
|
|
479
494
|
|
|
480
495
|
return exports;
|
|
481
496
|
|
|
482
|
-
})({}, React, primereact.api, primereact.csstransition, primereact.hooks, primereact.overlayservice, primereact.portal, primereact.utils);
|
|
497
|
+
})({}, React, primereact.api, primereact.csstransition, primereact.hooks, primereact.overlayservice, primereact.portal, primereact.utils, primereact.icons.angleright, primereact.icons.chevronleft);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.slidemenu=function(e,t,n,r,i,
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.slidemenu=function(e,t,n,r,o,i,a,u,l,c){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function m(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 p=m(t),f=s(n);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 b(e){if(Array.isArray(e))return e}function v(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}function y(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 g(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}function h(){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 b(e)||v(e,t)||g(e,t)||h()}var S={defaultProps:{__TYPE:"SlideMenu",appendTo:null,autoZIndex:!0,backIcon:null,backLabel:"Back",baseZIndex:0,className:null,easing:"ease-out",effectDuration:250,id:null,menuWidth:190,model:null,onHide:null,onShow:null,onNavigate:null,popup:!1,style:null,submenuIcon:null,transitionOptions:null,viewportHeight:175,children:void 0},getProps:function(e){return u.ObjectUtils.getMergedProps(e,S.defaultProps)},getOtherProps:function(e){return u.ObjectUtils.getDiffProps(e,S.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 N(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 j(e){var t=N(e,"string");return"symbol"===E(t)?t:String(t)}function w(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(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 I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=p.memo((function(e){var t=O(p.useState(null),2),n=t[0],r=t[1],o=O(p.useState({}),2),i=o[0],a=o[1],c=function(t,n,o){if(n.disabled)t.preventDefault();else if(n.url||t.preventDefault(),n.command&&n.command({originalEvent:t,item:n}),n.items){var u=f(n,o);a(I(I({},i),{},w({},u,!0))),r(n),e.onForward()}},s=function(e){return p.createElement("li",{key:"separator_"+e,className:"p-menu-separator"})},m=function(t,r){var o=i[f(t,r)];return t.items&&o?p.createElement(x,{menuProps:e.menuProps,model:t.items,index:e.index+1,menuWidth:e.menuWidth,effectDuration:e.effectDuration,onForward:e.onForward,parentActive:t===n,submenuIcon:e.submenuIcon}):null},f=function(e,t){return e.label+"_"+t},d=function(t,r){if(!1===t.visible)return null;var o=f(t,r),i=n===t,a=u.classNames("p-menuitem",{"p-menuitem-active":i,"p-disabled":t.disabled},t.className),s=u.classNames("p-menuitem-icon",t.icon),d=u.IconUtils.getJSXIcon(t.icon,{className:"p-menuitem-icon"},{props:e.menuProps}),b="p-submenu-icon",v=t.items&&u.IconUtils.getJSXIcon(e.submenuIcon||p.createElement(l.AngleRightIcon,{className:b}),{className:b},{props:e}),y=t.label&&p.createElement("span",{className:"p-menuitem-text"},t.label),g=m(t,r),h=p.createElement("a",{href:t.url||"#",className:"p-menuitem-link",target:t.target,onClick:function(e){return c(e,t,r)},"aria-disabled":t.disabled},d,y,v);t.template&&(h=u.ObjectUtils.getJSXElement(t.template,t,{onClick:function(e){return c(e,t,r)},className:"p-menuitem-link",labelClassName:"p-menuitem-text",iconClassName:s,submenuIconClassName:b,element:h,props:e,active:i}));return p.createElement("li",{key:o,id:t.id,className:a,style:t.style},h,g)},b=function(e,t){return e.separator?s(t):d(e,t)},v={width:e.menuWidth+"px",left:e.root?-1*e.level*e.menuWidth+"px":e.menuWidth+"px",transitionProperty:e.root?"left":"none",transitionDuration:e.effectDuration+"ms",transitionTimingFunction:e.easing},y=u.classNames({"p-slidemenu-rootlist":e.root,"p-submenu-list":!e.root,"p-active-submenu":e.parentActive}),g=e.model?e.model.map(b):null;return p.createElement("ul",{className:y,style:v},g)}));x.displayName="SlideMenuSub";var k=p.memo(p.forwardRef((function(e,t){var n=S.getProps(e),l=O(p.useState(0),2),s=l[0],m=l[1],b=O(p.useState(!1),2),v=b[0],y=b[1],g=p.useRef(null),h=p.useRef(null),E=p.useRef(null),N=p.useRef(null),j=O(o.useOverlayListener({target:h,overlay:g,listener:function(e,t){t.valid&&C(e)},when:v}),2),w=j[0],P=j[1],I=function(e){n.popup&&i.OverlayService.emit("overlay-click",{originalEvent:e,target:h.current})},k=function(){m((function(e){return e+1}))},D=function(){m((function(e){return e-1}))},U=function(e){n.popup&&(v?C(e):A(e))},A=function(e){h.current=e.currentTarget,y(!0),n.onShow&&n.onShow(e)},C=function(e){h.current=e.currentTarget,y(!1),n.onHide&&n.onHide(e)},T=function(){n.autoZIndex&&u.ZIndexUtils.set("menu",g.current,f.default.autoZIndex,n.baseZIndex||f.default.zIndex.menu),u.DomHandler.absolutePosition(g.current,h.current)},M=function(){w()},R=function(){h.current=null,P()},W=function(){u.ZIndexUtils.clear(g.current),m(0)};o.useUpdateEffect((function(){m(0)}),[n.model]),o.useUpdateEffect((function(){n.onNavigate&&n.onNavigate({level:s})}),[s]),o.useUnmountEffect((function(){u.ZIndexUtils.clear(g.current)})),p.useImperativeHandle(t,(function(){return{props:n,toggle:U,show:A,hide:C,navigateForward:k,navigateBack:D,setLevelState:m,getElement:function(){return g.current}}}));var Z=function(){var e=u.classNames("p-slidemenu-backward",{"p-hidden":0===s}),t="p-slidemenu-backward-icon",r=u.IconUtils.getJSXIcon(n.backIcon||p.createElement(c.ChevronLeftIcon,{className:t}),{className:t},{props:n});return p.createElement("div",{ref:E,className:e,onClick:D},r,p.createElement("span",null,n.backLabel))},_=function(){var e=S.getOtherProps(n),t=u.classNames("p-slidemenu p-component",{"p-slidemenu-overlay":n.popup},n.className),o={height:n.viewportHeight+"px"},i=Z();return p.createElement(r.CSSTransition,{nodeRef:g,classNames:"p-connected-overlay",in:!n.popup||v,timeout:{enter:120,exit:100},options:n.transitionOptions,unmountOnExit:!0,onEnter:T,onEntered:M,onExit:R,onExited:W},p.createElement("div",d({ref:g,id:n.id,className:t,style:n.style},e,{onClick:I}),p.createElement("div",{className:"p-slidemenu-wrapper",style:o},p.createElement("div",{className:"p-slidemenu-content",ref:N},p.createElement(x,{menuProps:n,model:n.model,root:!0,index:0,menuWidth:n.menuWidth,effectDuration:n.effectDuration,level:s,parentActive:0===s,onForward:k,submenuIcon:n.submenuIcon})),i)))}();return n.popup?p.createElement(a.Portal,{element:_,appendTo:n.appendTo}):_})));return k.displayName="SlideMenu",e.SlideMenu=k,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.csstransition,primereact.hooks,primereact.overlayservice,primereact.portal,primereact.utils,primereact.icons.angleright,primereact.icons.chevronleft);
|
|
@@ -7,6 +7,8 @@ var button = require('primereact/button');
|
|
|
7
7
|
var hooks = require('primereact/hooks');
|
|
8
8
|
var ripple = require('primereact/ripple');
|
|
9
9
|
var utils = require('primereact/utils');
|
|
10
|
+
var plus = require('primereact/icons/plus');
|
|
11
|
+
var minus = require('primereact/icons/minus');
|
|
10
12
|
|
|
11
13
|
function _interopNamespace(e) {
|
|
12
14
|
if (e && e.__esModule) return e;
|
|
@@ -160,7 +162,7 @@ var SpeedDialBase = {
|
|
|
160
162
|
'aria-label': null,
|
|
161
163
|
maskStyle: null,
|
|
162
164
|
maskClassName: null,
|
|
163
|
-
showIcon:
|
|
165
|
+
showIcon: null,
|
|
164
166
|
hideIcon: null,
|
|
165
167
|
rotateAnimation: true,
|
|
166
168
|
onVisibleChange: null,
|
|
@@ -405,29 +407,28 @@ var SpeedDial = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
405
407
|
'p-speeddial-rotate': props.rotateAnimation && !props.hideIcon
|
|
406
408
|
}, props.buttonClassName);
|
|
407
409
|
var iconClassName = utils.classNames((_classNames = {}, _defineProperty(_classNames, "".concat(props.showIcon), !visible && !!props.showIcon || !props.hideIcon), _defineProperty(_classNames, "".concat(props.hideIcon), visible && !!props.hideIcon), _classNames));
|
|
408
|
-
var icon =
|
|
409
|
-
|
|
410
|
+
var icon = showIconVisible ? props.showIcon || /*#__PURE__*/React__namespace.createElement(plus.PlusIcon, {
|
|
411
|
+
className: iconClassName,
|
|
412
|
+
onClick: onClick
|
|
413
|
+
}) : hideIconVisible ? props.hideIcon || /*#__PURE__*/React__namespace.createElement(minus.MinusIcon, {
|
|
414
|
+
className: iconClassName,
|
|
415
|
+
onClick: onClick
|
|
416
|
+
}) : null;
|
|
417
|
+
var toggleIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
418
|
+
className: iconClassName
|
|
419
|
+
}, {
|
|
420
|
+
props: props,
|
|
421
|
+
visible: visible
|
|
410
422
|
});
|
|
411
423
|
var content = /*#__PURE__*/React__namespace.createElement(button.Button, {
|
|
412
424
|
type: "button",
|
|
413
425
|
style: props.buttonStyle,
|
|
414
426
|
className: className,
|
|
415
|
-
icon:
|
|
427
|
+
icon: toggleIcon,
|
|
416
428
|
onClick: onClick,
|
|
417
429
|
disabled: props.disabled,
|
|
418
430
|
"aria-label": props['aria-label']
|
|
419
431
|
});
|
|
420
|
-
if (props.buttonTemplate) {
|
|
421
|
-
var defaultContentOptions = {
|
|
422
|
-
onClick: onClick,
|
|
423
|
-
className: className,
|
|
424
|
-
iconClassName: iconClassName,
|
|
425
|
-
element: content,
|
|
426
|
-
props: props,
|
|
427
|
-
visible: visible
|
|
428
|
-
};
|
|
429
|
-
return utils.ObjectUtils.getJSXElement(props.buttonTemplate, defaultContentOptions);
|
|
430
|
-
}
|
|
431
432
|
return content;
|
|
432
433
|
};
|
|
433
434
|
var createMask = function createMask() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/button"),n=require("primereact/hooks"),r=require("primereact/ripple"),i=require("primereact/utils");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/button"),n=require("primereact/hooks"),r=require("primereact/ripple"),i=require("primereact/utils"),o=require("primereact/icons/plus"),l=require("primereact/icons/minus");function a(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 c=a(e);function s(){return s=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},s.apply(this,arguments)}function u(e){return u="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},u(e)}function f(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function p(e){var t=f(e,"string");return"symbol"===u(t)?t:String(t)}function d(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 m(e){if(Array.isArray(e))return e}function b(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,l,a=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw i}}return a}}function y(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 y(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)?y(e,t):void 0}}function v(){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 g(e,t){return m(e)||b(e,t)||h(e,t)||v()}var O={defaultProps:{__TYPE:"SpeedDial",id:null,model:null,visible:!1,style:null,className:null,direction:"up",transitionDelay:30,type:"linear",radius:0,mask:!1,disabled:!1,hideOnClickOutside:!0,buttonStyle:null,buttonClassName:null,buttonTemplate:null,"aria-label":null,maskStyle:null,maskClassName:null,showIcon:null,hideIcon:null,rotateAnimation:!0,onVisibleChange:null,onClick:null,onShow:null,onHide:null,children:void 0},getProps:function(e){return i.ObjectUtils.getMergedProps(e,O.defaultProps)},getOtherProps:function(e){return i.ObjectUtils.getDiffProps(e,O.defaultProps)}};function S(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 j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P=c.memo(c.forwardRef((function(e,a){var u,f=O.getProps(e),p=g(c.useState(!1),2),m=p[0],b=p[1],y=c.useRef(!1),h=c.useRef(null),v=c.useRef(null),S=f.onVisibleChange?f.visible:m,P=g(n.useEventListener({type:"click",listener:function(e){!y.current&&x(e)&&k(),y.current=!1},when:m}),2),w=P[0],N=P[1],I=function(){f.onVisibleChange?f.onVisibleChange(!0):b(!0),f.onShow&&f.onShow()},k=function(){f.onVisibleChange?f.onVisibleChange(!1):b(!1),f.onHide&&f.onHide()},C=function(e){S?k():I(),f.onClick&&f.onClick(e),y.current=!0},E=function(e,t){t.command&&t.command({originalEvent:e,item:t}),k(),y.current=!0,e.preventDefault()},x=function(e){return h.current&&!(h.current.isSameNode(e.target)||h.current.contains(e.target))},M=function(e){return(S?e:f.model.length-e-1)*f.transitionDelay},D=function(e){var t=f.type;if("linear"!==t){var n=f.model.length,r=f.radius||20*n;if("circle"===t){var i=2*Math.PI/n;return{left:"calc(".concat(r*Math.cos(i*e),"px + var(--item-diff-x, 0px))"),top:"calc(".concat(r*Math.sin(i*e),"px + var(--item-diff-y, 0px))")}}if("semi-circle"===t){var o=f.direction,l=Math.PI/(n-1),a="calc(".concat(r*Math.cos(l*e),"px + var(--item-diff-x, 0px))"),c="calc(".concat(r*Math.sin(l*e),"px + var(--item-diff-y, 0px))");if("up"===o)return{left:a,bottom:c};if("down"===o)return{left:a,top:c};if("left"===o)return{right:c,top:a};if("right"===o)return{left:c,top:a}}else if("quarter-circle"===t){var s=f.direction,u=Math.PI/(2*(n-1)),p="calc(".concat(r*Math.cos(u*e),"px + var(--item-diff-x, 0px))"),d="calc(".concat(r*Math.sin(u*e),"px + var(--item-diff-y, 0px))");if("up-left"===s)return{right:p,bottom:d};if("up-right"===s)return{left:p,bottom:d};if("down-left"===s)return{right:d,top:p};if("down-right"===s)return{left:d,top:p}}}return{}},q=function(e){var t=M(e),n=D(e);return j({transitionDelay:"".concat(t,"ms")},n)};n.useMountEffect((function(){if("linear"!==f.type){var e=i.DomHandler.findSingle(h.current,".p-speeddial-button"),t=i.DomHandler.findSingle(v.current,".p-speeddial-item");if(e&&t){var n=Math.abs(e.offsetWidth-t.offsetWidth),r=Math.abs(e.offsetHeight-t.offsetHeight);v.current.style.setProperty("--item-diff-x","".concat(n/2,"px")),v.current.style.setProperty("--item-diff-y","".concat(r/2,"px"))}}})),n.useUpdateEffect((function(){return m&&f.hideOnClickOutside&&w(),function(){f.hideOnClickOutside&&N()}}),[m]),c.useImperativeHandle(a,(function(){return{props:f,show:I,hide:k,getElement:function(){return h.current}}}));var A,H=function(e,t){if(!1===e.visible)return null;var n=q(t),o=e.icon,l=e.label,a=e.template,s=e.url,u=e.target,p=i.classNames("p-speeddial-action",{"p-disabled":e.disabled}),d=i.classNames("p-speeddial-action-icon",o),m=i.IconUtils.getJSXIcon(o,{className:"p-speeddial-action-icon"},{props:f}),b=c.createElement("a",{href:s||"#",role:"menuitem",className:p,target:u,"data-pr-tooltip":l,onClick:function(t){return E(t,e)}},m,c.createElement(r.Ripple,null));a&&(b=i.ObjectUtils.getJSXElement(a,e,{onClick:function(t){return E(t,e)},className:p,iconClassName:d,element:b,props:f,visible:S}));return c.createElement("li",{key:t,className:"p-speeddial-item",style:n,role:"none"},b)},U=O.getOtherProps(f),V=i.classNames("p-speeddial p-component p-speeddial-".concat(f.type),(d(u={},"p-speeddial-direction-".concat(f.direction),"circle"!==f.type),d(u,"p-speeddial-opened",S),d(u,"p-disabled",f.disabled),u),f.className),_=function(){var e,n=!S&&!!f.showIcon||!f.hideIcon,r=S&&!!f.hideIcon,a=i.classNames("p-speeddial-button p-button-rounded",{"p-speeddial-rotate":f.rotateAnimation&&!f.hideIcon},f.buttonClassName),s=i.classNames((d(e={},"".concat(f.showIcon),!S&&!!f.showIcon||!f.hideIcon),d(e,"".concat(f.hideIcon),S&&!!f.hideIcon),e)),u=i.IconUtils.getJSXIcon(n?f.showIcon||c.createElement(o.PlusIcon,{className:s,onClick:C}):r?f.hideIcon||c.createElement(l.MinusIcon,{className:s,onClick:C}):null,{className:s},{props:f,visible:S});return c.createElement(t.Button,{type:"button",style:f.buttonStyle,className:a,icon:u,onClick:C,disabled:f.disabled,"aria-label":f["aria-label"]})}(),R=(A=f.model?f.model.map(H):null,c.createElement("ul",{ref:v,className:"p-speeddial-list",role:"menu"},A)),T=function(){if(f.mask){var e=i.classNames("p-speeddial-mask",{"p-speeddial-mask-visible":S},f.maskClassName);return c.createElement("div",{className:e,style:f.maskStyle})}return null}();return c.createElement(c.Fragment,null,c.createElement("div",s({ref:h,id:f.id,className:V,style:f.style},U),_,R),T)})));P.displayName="SpeedDial",exports.SpeedDial=P;
|
package/speeddial/speeddial.d.ts
CHANGED
|
@@ -112,13 +112,12 @@ export interface SpeedDialProps extends Omit<React.DetailedHTMLProps<React.HTMLA
|
|
|
112
112
|
maskClassName?: string | undefined;
|
|
113
113
|
/**
|
|
114
114
|
* Show icon of the button element.
|
|
115
|
-
* @defaultValue pi pi-plus
|
|
116
115
|
*/
|
|
117
|
-
showIcon?: IconType<SpeedDialProps
|
|
116
|
+
showIcon?: IconType<SpeedDialProps> | undefined;
|
|
118
117
|
/**
|
|
119
118
|
* Hide icon of the button element.
|
|
120
119
|
*/
|
|
121
|
-
hideIcon?: IconType<SpeedDialProps
|
|
120
|
+
hideIcon?: IconType<SpeedDialProps> | undefined;
|
|
122
121
|
/**
|
|
123
122
|
* Defined to rotate showIcon when hideIcon is not present.
|
|
124
123
|
* @defaultValue true
|
|
@@ -3,6 +3,8 @@ import { Button } from 'primereact/button';
|
|
|
3
3
|
import { useEventListener, useMountEffect, useUpdateEffect } from 'primereact/hooks';
|
|
4
4
|
import { Ripple } from 'primereact/ripple';
|
|
5
5
|
import { ObjectUtils, DomHandler, classNames, IconUtils } from 'primereact/utils';
|
|
6
|
+
import { PlusIcon } from 'primereact/icons/plus';
|
|
7
|
+
import { MinusIcon } from 'primereact/icons/minus';
|
|
6
8
|
|
|
7
9
|
function _extends() {
|
|
8
10
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -136,7 +138,7 @@ var SpeedDialBase = {
|
|
|
136
138
|
'aria-label': null,
|
|
137
139
|
maskStyle: null,
|
|
138
140
|
maskClassName: null,
|
|
139
|
-
showIcon:
|
|
141
|
+
showIcon: null,
|
|
140
142
|
hideIcon: null,
|
|
141
143
|
rotateAnimation: true,
|
|
142
144
|
onVisibleChange: null,
|
|
@@ -381,29 +383,28 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
381
383
|
'p-speeddial-rotate': props.rotateAnimation && !props.hideIcon
|
|
382
384
|
}, props.buttonClassName);
|
|
383
385
|
var iconClassName = classNames((_classNames = {}, _defineProperty(_classNames, "".concat(props.showIcon), !visible && !!props.showIcon || !props.hideIcon), _defineProperty(_classNames, "".concat(props.hideIcon), visible && !!props.hideIcon), _classNames));
|
|
384
|
-
var icon =
|
|
385
|
-
|
|
386
|
+
var icon = showIconVisible ? props.showIcon || /*#__PURE__*/React.createElement(PlusIcon, {
|
|
387
|
+
className: iconClassName,
|
|
388
|
+
onClick: onClick
|
|
389
|
+
}) : hideIconVisible ? props.hideIcon || /*#__PURE__*/React.createElement(MinusIcon, {
|
|
390
|
+
className: iconClassName,
|
|
391
|
+
onClick: onClick
|
|
392
|
+
}) : null;
|
|
393
|
+
var toggleIcon = IconUtils.getJSXIcon(icon, {
|
|
394
|
+
className: iconClassName
|
|
395
|
+
}, {
|
|
396
|
+
props: props,
|
|
397
|
+
visible: visible
|
|
386
398
|
});
|
|
387
399
|
var content = /*#__PURE__*/React.createElement(Button, {
|
|
388
400
|
type: "button",
|
|
389
401
|
style: props.buttonStyle,
|
|
390
402
|
className: className,
|
|
391
|
-
icon:
|
|
403
|
+
icon: toggleIcon,
|
|
392
404
|
onClick: onClick,
|
|
393
405
|
disabled: props.disabled,
|
|
394
406
|
"aria-label": props['aria-label']
|
|
395
407
|
});
|
|
396
|
-
if (props.buttonTemplate) {
|
|
397
|
-
var defaultContentOptions = {
|
|
398
|
-
onClick: onClick,
|
|
399
|
-
className: className,
|
|
400
|
-
iconClassName: iconClassName,
|
|
401
|
-
element: content,
|
|
402
|
-
props: props,
|
|
403
|
-
visible: visible
|
|
404
|
-
};
|
|
405
|
-
return ObjectUtils.getJSXElement(props.buttonTemplate, defaultContentOptions);
|
|
406
|
-
}
|
|
407
408
|
return content;
|
|
408
409
|
};
|
|
409
410
|
var createMask = function createMask() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{Button as t}from"primereact/button";import{useEventListener as n,useMountEffect as r,useUpdateEffect as i}from"primereact/hooks";import{Ripple as o}from"primereact/ripple";import{ObjectUtils as l,DomHandler as a,classNames as c,IconUtils as u}from"primereact/utils";function
|
|
1
|
+
import*as e from"react";import{Button as t}from"primereact/button";import{useEventListener as n,useMountEffect as r,useUpdateEffect as i}from"primereact/hooks";import{Ripple as o}from"primereact/ripple";import{ObjectUtils as l,DomHandler as a,classNames as c,IconUtils as u}from"primereact/utils";import{PlusIcon as s}from"primereact/icons/plus";import{MinusIcon as p}from"primereact/icons/minus";function f(){return f=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},f.apply(this,arguments)}function m(e){return m="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},m(e)}function d(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function b(e){var t=d(e,"string");return"symbol"===m(t)?t:String(t)}function y(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){if(Array.isArray(e))return e}function v(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,l,a=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw i}}return a}}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 O(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 S(){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 w(e,t){return h(e)||v(e,t)||O(e,t)||S()}var P={defaultProps:{__TYPE:"SpeedDial",id:null,model:null,visible:!1,style:null,className:null,direction:"up",transitionDelay:30,type:"linear",radius:0,mask:!1,disabled:!1,hideOnClickOutside:!0,buttonStyle:null,buttonClassName:null,buttonTemplate:null,"aria-label":null,maskStyle:null,maskClassName:null,showIcon:null,hideIcon:null,rotateAnimation:!0,onVisibleChange:null,onClick:null,onShow:null,onHide:null,children:void 0},getProps:function(e){return l.getMergedProps(e,P.defaultProps)},getOtherProps:function(e){return l.getDiffProps(e,P.defaultProps)}};function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=e.memo(e.forwardRef((function(m,d){var b,h=P.getProps(m),v=w(e.useState(!1),2),g=v[0],O=v[1],S=e.useRef(!1),k=e.useRef(null),j=e.useRef(null),I=h.onVisibleChange?h.visible:g,N=w(n({type:"click",listener:function(e){!S.current&&V(e)&&D(),S.current=!1},when:g}),2),x=N[0],E=N[1],M=function(){h.onVisibleChange?h.onVisibleChange(!0):O(!0),h.onShow&&h.onShow()},D=function(){h.onVisibleChange?h.onVisibleChange(!1):O(!1),h.onHide&&h.onHide()},A=function(e){I?D():M(),h.onClick&&h.onClick(e),S.current=!0},H=function(e,t){t.command&&t.command({originalEvent:e,item:t}),D(),S.current=!0,e.preventDefault()},V=function(e){return k.current&&!(k.current.isSameNode(e.target)||k.current.contains(e.target))},R=function(e){return(I?e:h.model.length-e-1)*h.transitionDelay},T=function(e){var t=h.type;if("linear"!==t){var n=h.model.length,r=h.radius||20*n;if("circle"===t){var i=2*Math.PI/n;return{left:"calc(".concat(r*Math.cos(i*e),"px + var(--item-diff-x, 0px))"),top:"calc(".concat(r*Math.sin(i*e),"px + var(--item-diff-y, 0px))")}}if("semi-circle"===t){var o=h.direction,l=Math.PI/(n-1),a="calc(".concat(r*Math.cos(l*e),"px + var(--item-diff-x, 0px))"),c="calc(".concat(r*Math.sin(l*e),"px + var(--item-diff-y, 0px))");if("up"===o)return{left:a,bottom:c};if("down"===o)return{left:a,top:c};if("left"===o)return{right:c,top:a};if("right"===o)return{left:c,top:a}}else if("quarter-circle"===t){var u=h.direction,s=Math.PI/(2*(n-1)),p="calc(".concat(r*Math.cos(s*e),"px + var(--item-diff-x, 0px))"),f="calc(".concat(r*Math.sin(s*e),"px + var(--item-diff-y, 0px))");if("up-left"===u)return{right:p,bottom:f};if("up-right"===u)return{left:p,bottom:f};if("down-left"===u)return{right:f,top:p};if("down-right"===u)return{left:f,top:p}}}return{}},J=function(e){var t=R(e),n=T(e);return C({transitionDelay:"".concat(t,"ms")},n)};r((function(){if("linear"!==h.type){var e=a.findSingle(k.current,".p-speeddial-button"),t=a.findSingle(j.current,".p-speeddial-item");if(e&&t){var n=Math.abs(e.offsetWidth-t.offsetWidth),r=Math.abs(e.offsetHeight-t.offsetHeight);j.current.style.setProperty("--item-diff-x","".concat(n/2,"px")),j.current.style.setProperty("--item-diff-y","".concat(r/2,"px"))}}})),i((function(){return g&&h.hideOnClickOutside&&x(),function(){h.hideOnClickOutside&&E()}}),[g]),e.useImperativeHandle(d,(function(){return{props:h,show:M,hide:D,getElement:function(){return k.current}}}));var X,W=function(t,n){if(!1===t.visible)return null;var r=J(n),i=t.icon,a=t.label,s=t.template,p=t.url,f=t.target,m=c("p-speeddial-action",{"p-disabled":t.disabled}),d=c("p-speeddial-action-icon",i),b=u.getJSXIcon(i,{className:"p-speeddial-action-icon"},{props:h}),y=e.createElement("a",{href:p||"#",role:"menuitem",className:m,target:f,"data-pr-tooltip":a,onClick:function(e){return H(e,t)}},b,e.createElement(o,null));s&&(y=l.getJSXElement(s,t,{onClick:function(e){return H(e,t)},className:m,iconClassName:d,element:y,props:h,visible:I}));return e.createElement("li",{key:n,className:"p-speeddial-item",style:r,role:"none"},y)},_=P.getOtherProps(h),q=c("p-speeddial p-component p-speeddial-".concat(h.type),(y(b={},"p-speeddial-direction-".concat(h.direction),"circle"!==h.type),y(b,"p-speeddial-opened",I),y(b,"p-disabled",h.disabled),b),h.className),F=function(){var n,r=!I&&!!h.showIcon||!h.hideIcon,i=I&&!!h.hideIcon,o=c("p-speeddial-button p-button-rounded",{"p-speeddial-rotate":h.rotateAnimation&&!h.hideIcon},h.buttonClassName),l=c((y(n={},"".concat(h.showIcon),!I&&!!h.showIcon||!h.hideIcon),y(n,"".concat(h.hideIcon),I&&!!h.hideIcon),n)),a=u.getJSXIcon(r?h.showIcon||e.createElement(s,{className:l,onClick:A}):i?h.hideIcon||e.createElement(p,{className:l,onClick:A}):null,{className:l},{props:h,visible:I});return e.createElement(t,{type:"button",style:h.buttonStyle,className:o,icon:a,onClick:A,disabled:h.disabled,"aria-label":h["aria-label"]})}(),U=(X=h.model?h.model.map(W):null,e.createElement("ul",{ref:j,className:"p-speeddial-list",role:"menu"},X)),Y=function(){if(h.mask){var t=c("p-speeddial-mask",{"p-speeddial-mask-visible":I},h.maskClassName);return e.createElement("div",{className:t,style:h.maskStyle})}return null}();return e.createElement(e.Fragment,null,e.createElement("div",f({ref:k,id:h.id,className:q,style:h.style},_),F,U),Y)})));j.displayName="SpeedDial";export{j as SpeedDial};
|
package/speeddial/speeddial.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.speeddial = (function (exports, React, button, hooks, ripple, utils) {
|
|
2
|
+
this.primereact.speeddial = (function (exports, React, button, hooks, ripple, utils, plus, minus) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopNamespace(e) {
|
|
@@ -154,7 +154,7 @@ this.primereact.speeddial = (function (exports, React, button, hooks, ripple, ut
|
|
|
154
154
|
'aria-label': null,
|
|
155
155
|
maskStyle: null,
|
|
156
156
|
maskClassName: null,
|
|
157
|
-
showIcon:
|
|
157
|
+
showIcon: null,
|
|
158
158
|
hideIcon: null,
|
|
159
159
|
rotateAnimation: true,
|
|
160
160
|
onVisibleChange: null,
|
|
@@ -399,29 +399,28 @@ this.primereact.speeddial = (function (exports, React, button, hooks, ripple, ut
|
|
|
399
399
|
'p-speeddial-rotate': props.rotateAnimation && !props.hideIcon
|
|
400
400
|
}, props.buttonClassName);
|
|
401
401
|
var iconClassName = utils.classNames((_classNames = {}, _defineProperty(_classNames, "".concat(props.showIcon), !visible && !!props.showIcon || !props.hideIcon), _defineProperty(_classNames, "".concat(props.hideIcon), visible && !!props.hideIcon), _classNames));
|
|
402
|
-
var icon =
|
|
403
|
-
|
|
402
|
+
var icon = showIconVisible ? props.showIcon || /*#__PURE__*/React__namespace.createElement(plus.PlusIcon, {
|
|
403
|
+
className: iconClassName,
|
|
404
|
+
onClick: onClick
|
|
405
|
+
}) : hideIconVisible ? props.hideIcon || /*#__PURE__*/React__namespace.createElement(minus.MinusIcon, {
|
|
406
|
+
className: iconClassName,
|
|
407
|
+
onClick: onClick
|
|
408
|
+
}) : null;
|
|
409
|
+
var toggleIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
410
|
+
className: iconClassName
|
|
411
|
+
}, {
|
|
412
|
+
props: props,
|
|
413
|
+
visible: visible
|
|
404
414
|
});
|
|
405
415
|
var content = /*#__PURE__*/React__namespace.createElement(button.Button, {
|
|
406
416
|
type: "button",
|
|
407
417
|
style: props.buttonStyle,
|
|
408
418
|
className: className,
|
|
409
|
-
icon:
|
|
419
|
+
icon: toggleIcon,
|
|
410
420
|
onClick: onClick,
|
|
411
421
|
disabled: props.disabled,
|
|
412
422
|
"aria-label": props['aria-label']
|
|
413
423
|
});
|
|
414
|
-
if (props.buttonTemplate) {
|
|
415
|
-
var defaultContentOptions = {
|
|
416
|
-
onClick: onClick,
|
|
417
|
-
className: className,
|
|
418
|
-
iconClassName: iconClassName,
|
|
419
|
-
element: content,
|
|
420
|
-
props: props,
|
|
421
|
-
visible: visible
|
|
422
|
-
};
|
|
423
|
-
return utils.ObjectUtils.getJSXElement(props.buttonTemplate, defaultContentOptions);
|
|
424
|
-
}
|
|
425
424
|
return content;
|
|
426
425
|
};
|
|
427
426
|
var createMask = function createMask() {
|
|
@@ -456,4 +455,4 @@ this.primereact.speeddial = (function (exports, React, button, hooks, ripple, ut
|
|
|
456
455
|
|
|
457
456
|
return exports;
|
|
458
457
|
|
|
459
|
-
})({}, React, primereact.button, primereact.hooks, primereact.ripple, primereact.utils);
|
|
458
|
+
})({}, React, primereact.button, primereact.hooks, primereact.ripple, primereact.utils, primereact.icons.plus, primereact.icons.minus);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.speeddial=function(e,t,n,r,i,o){"use strict";function
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.speeddial=function(e,t,n,r,i,o,l,a){"use strict";function c(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 s=c(t);function u(){return u=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},u.apply(this,arguments)}function f(e){return f="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},f(e)}function p(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function d(e){var t=p(e,"string");return"symbol"===f(t)?t:String(t)}function m(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(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,i,o,l,a=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw i}}return a}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function 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 O(e,t){return b(e)||y(e,t)||v(e,t)||g()}var S={defaultProps:{__TYPE:"SpeedDial",id:null,model:null,visible:!1,style:null,className:null,direction:"up",transitionDelay:30,type:"linear",radius:0,mask:!1,disabled:!1,hideOnClickOutside:!0,buttonStyle:null,buttonClassName:null,buttonTemplate:null,"aria-label":null,maskStyle:null,maskClassName:null,showIcon:null,hideIcon:null,rotateAnimation:!0,onVisibleChange:null,onClick:null,onShow:null,onHide:null,children:void 0},getProps:function(e){return o.ObjectUtils.getMergedProps(e,S.defaultProps)},getOtherProps:function(e){return o.ObjectUtils.getDiffProps(e,S.defaultProps)}};function j(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 P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=s.memo(s.forwardRef((function(e,t){var c,f=S.getProps(e),p=O(s.useState(!1),2),d=p[0],b=p[1],y=s.useRef(!1),h=s.useRef(null),v=s.useRef(null),g=f.onVisibleChange?f.visible:d,j=O(r.useEventListener({type:"click",listener:function(e){!y.current&&x(e)&&k(),y.current=!1},when:d}),2),w=j[0],N=j[1],I=function(){f.onVisibleChange?f.onVisibleChange(!0):b(!0),f.onShow&&f.onShow()},k=function(){f.onVisibleChange?f.onVisibleChange(!1):b(!1),f.onHide&&f.onHide()},C=function(e){g?k():I(),f.onClick&&f.onClick(e),y.current=!0},E=function(e,t){t.command&&t.command({originalEvent:e,item:t}),k(),y.current=!0,e.preventDefault()},x=function(e){return h.current&&!(h.current.isSameNode(e.target)||h.current.contains(e.target))},M=function(e){return(g?e:f.model.length-e-1)*f.transitionDelay},D=function(e){var t=f.type;if("linear"!==t){var n=f.model.length,r=f.radius||20*n;if("circle"===t){var i=2*Math.PI/n;return{left:"calc(".concat(r*Math.cos(i*e),"px + var(--item-diff-x, 0px))"),top:"calc(".concat(r*Math.sin(i*e),"px + var(--item-diff-y, 0px))")}}if("semi-circle"===t){var o=f.direction,l=Math.PI/(n-1),a="calc(".concat(r*Math.cos(l*e),"px + var(--item-diff-x, 0px))"),c="calc(".concat(r*Math.sin(l*e),"px + var(--item-diff-y, 0px))");if("up"===o)return{left:a,bottom:c};if("down"===o)return{left:a,top:c};if("left"===o)return{right:c,top:a};if("right"===o)return{left:c,top:a}}else if("quarter-circle"===t){var s=f.direction,u=Math.PI/(2*(n-1)),p="calc(".concat(r*Math.cos(u*e),"px + var(--item-diff-x, 0px))"),d="calc(".concat(r*Math.sin(u*e),"px + var(--item-diff-y, 0px))");if("up-left"===s)return{right:p,bottom:d};if("up-right"===s)return{left:p,bottom:d};if("down-left"===s)return{right:d,top:p};if("down-right"===s)return{left:d,top:p}}}return{}},A=function(e){var t=M(e),n=D(e);return P({transitionDelay:"".concat(t,"ms")},n)};r.useMountEffect((function(){if("linear"!==f.type){var e=o.DomHandler.findSingle(h.current,".p-speeddial-button"),t=o.DomHandler.findSingle(v.current,".p-speeddial-item");if(e&&t){var n=Math.abs(e.offsetWidth-t.offsetWidth),r=Math.abs(e.offsetHeight-t.offsetHeight);v.current.style.setProperty("--item-diff-x","".concat(n/2,"px")),v.current.style.setProperty("--item-diff-y","".concat(r/2,"px"))}}})),r.useUpdateEffect((function(){return d&&f.hideOnClickOutside&&w(),function(){f.hideOnClickOutside&&N()}}),[d]),s.useImperativeHandle(t,(function(){return{props:f,show:I,hide:k,getElement:function(){return h.current}}}));var H,U=function(e,t){if(!1===e.visible)return null;var n=A(t),r=e.icon,l=e.label,a=e.template,c=e.url,u=e.target,p=o.classNames("p-speeddial-action",{"p-disabled":e.disabled}),d=o.classNames("p-speeddial-action-icon",r),m=o.IconUtils.getJSXIcon(r,{className:"p-speeddial-action-icon"},{props:f}),b=s.createElement("a",{href:c||"#",role:"menuitem",className:p,target:u,"data-pr-tooltip":l,onClick:function(t){return E(t,e)}},m,s.createElement(i.Ripple,null));a&&(b=o.ObjectUtils.getJSXElement(a,e,{onClick:function(t){return E(t,e)},className:p,iconClassName:d,element:b,props:f,visible:g}));return s.createElement("li",{key:t,className:"p-speeddial-item",style:n,role:"none"},b)},R=S.getOtherProps(f),V=o.classNames("p-speeddial p-component p-speeddial-".concat(f.type),(m(c={},"p-speeddial-direction-".concat(f.direction),"circle"!==f.type),m(c,"p-speeddial-opened",g),m(c,"p-disabled",f.disabled),c),f.className),_=function(){var e,t=!g&&!!f.showIcon||!f.hideIcon,r=g&&!!f.hideIcon,i=o.classNames("p-speeddial-button p-button-rounded",{"p-speeddial-rotate":f.rotateAnimation&&!f.hideIcon},f.buttonClassName),c=o.classNames((m(e={},"".concat(f.showIcon),!g&&!!f.showIcon||!f.hideIcon),m(e,"".concat(f.hideIcon),g&&!!f.hideIcon),e)),u=o.IconUtils.getJSXIcon(t?f.showIcon||s.createElement(l.PlusIcon,{className:c,onClick:C}):r?f.hideIcon||s.createElement(a.MinusIcon,{className:c,onClick:C}):null,{className:c},{props:f,visible:g});return s.createElement(n.Button,{type:"button",style:f.buttonStyle,className:i,icon:u,onClick:C,disabled:f.disabled,"aria-label":f["aria-label"]})}(),T=(H=f.model?f.model.map(U):null,s.createElement("ul",{ref:v,className:"p-speeddial-list",role:"menu"},H)),J=function(){if(f.mask){var e=o.classNames("p-speeddial-mask",{"p-speeddial-mask-visible":g},f.maskClassName);return s.createElement("div",{className:e,style:f.maskStyle})}return null}();return s.createElement(s.Fragment,null,s.createElement("div",u({ref:h,id:f.id,className:V,style:f.style},R),_,T),J)})));return w.displayName="SpeedDial",e.SpeedDial=w,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.button,primereact.hooks,primereact.ripple,primereact.utils,primereact.icons.plus,primereact.icons.minus);
|
|
@@ -11,6 +11,7 @@ var tooltip = require('primereact/tooltip');
|
|
|
11
11
|
var utils = require('primereact/utils');
|
|
12
12
|
var csstransition = require('primereact/csstransition');
|
|
13
13
|
var portal = require('primereact/portal');
|
|
14
|
+
var chevrondown = require('primereact/icons/chevrondown');
|
|
14
15
|
|
|
15
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
17
|
|
|
@@ -153,7 +154,7 @@ var SplitButtonBase = {
|
|
|
153
154
|
label: null,
|
|
154
155
|
icon: null,
|
|
155
156
|
loading: false,
|
|
156
|
-
loadingIcon:
|
|
157
|
+
loadingIcon: null,
|
|
157
158
|
model: null,
|
|
158
159
|
disabled: null,
|
|
159
160
|
style: null,
|
|
@@ -176,7 +177,7 @@ var SplitButtonBase = {
|
|
|
176
177
|
tooltipOptions: null,
|
|
177
178
|
buttonTemplate: null,
|
|
178
179
|
transitionOptions: null,
|
|
179
|
-
dropdownIcon:
|
|
180
|
+
dropdownIcon: null,
|
|
180
181
|
onClick: null,
|
|
181
182
|
onShow: null,
|
|
182
183
|
onHide: null,
|
|
@@ -413,6 +414,18 @@ var SplitButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
|
|
|
413
414
|
var buttonContent = props.buttonTemplate ? utils.ObjectUtils.getJSXElement(props.buttonTemplate, props) : null;
|
|
414
415
|
var items = createItems();
|
|
415
416
|
var menuId = idState + '_menu';
|
|
417
|
+
var dropdownIcon = function dropdownIcon() {
|
|
418
|
+
var iconClassName = 'p-button-icon p-c';
|
|
419
|
+
var icon = props.dropdownIcon || /*#__PURE__*/React__namespace.createElement(chevrondown.ChevronDownIcon, {
|
|
420
|
+
className: iconClassName
|
|
421
|
+
});
|
|
422
|
+
var dropdownIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
423
|
+
className: iconClassName
|
|
424
|
+
}, {
|
|
425
|
+
props: props
|
|
426
|
+
});
|
|
427
|
+
return dropdownIcon;
|
|
428
|
+
};
|
|
416
429
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
417
430
|
ref: elementRef,
|
|
418
431
|
id: idState,
|
|
@@ -432,7 +445,7 @@ var SplitButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
|
|
|
432
445
|
}, props.buttonProps), buttonContent), /*#__PURE__*/React__namespace.createElement(button.Button, _extends({
|
|
433
446
|
type: "button",
|
|
434
447
|
className: menuButtonClassName,
|
|
435
|
-
icon:
|
|
448
|
+
icon: dropdownIcon,
|
|
436
449
|
onClick: onDropdownButtonClick,
|
|
437
450
|
disabled: props.disabled,
|
|
438
451
|
"aria-expanded": overlayVisibleState,
|