primereact 9.4.0 → 9.6.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 +2 -1
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +3 -2
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +2 -1
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +215 -3
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +882 -8
- package/api/api.esm.js +210 -4
- package/api/api.esm.min.js +1 -1
- package/api/api.js +216 -5
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +148 -89
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +138 -2
- package/autocomplete/autocomplete.esm.js +150 -91
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +149 -91
- package/autocomplete/autocomplete.min.css +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +3 -1
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +1 -1
- package/avatar/avatar.esm.js +3 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +4 -3
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +3 -1
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +3 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +4 -3
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +3 -1
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +3 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +4 -3
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +4 -3
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +4 -3
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +5 -4
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +97 -52
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +53 -1
- package/breadcrumb/breadcrumb.esm.js +97 -52
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +96 -53
- package/breadcrumb/breadcrumb.min.css +1 -1
- 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.d.ts +6 -0
- 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 +322 -223
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +272 -3
- package/calendar/calendar.esm.js +324 -225
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +323 -225
- package/calendar/calendar.min.js +1 -1
- package/card/card.cjs.js +3 -1
- package/card/card.cjs.min.js +1 -1
- package/card/card.d.ts +5 -11
- package/card/card.esm.js +3 -1
- package/card/card.esm.min.js +1 -1
- package/card/card.js +4 -3
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +154 -92
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +121 -1
- package/carousel/carousel.esm.js +156 -94
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +155 -94
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +181 -108
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +100 -1
- package/cascadeselect/cascadeselect.esm.js +183 -110
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +180 -108
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +31 -44
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.d.ts +30 -0
- package/chart/chart.esm.js +18 -31
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +141 -156
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +113 -48
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +65 -1
- package/checkbox/checkbox.esm.js +115 -50
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +113 -50
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +3 -1
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +1 -1
- package/chip/chip.esm.js +3 -1
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +4 -3
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +84 -55
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +78 -6
- package/chips/chips.esm.js +85 -56
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +83 -57
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +123 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +81 -0
- package/colorpicker/colorpicker.esm.js +125 -51
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +124 -51
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.cjs.js +2 -0
- package/column/column.d.ts +298 -1
- package/column/column.esm.js +2 -0
- package/column/column.js +2 -0
- package/columngroup/columngroup.d.ts +28 -0
- package/componentbase/componentbase.cjs.js +29 -5
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +25 -5
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +30 -7
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +4 -3
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +5 -4
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +4 -3
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +5 -4
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +6 -5
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +5 -4
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +121 -69
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +92 -1
- package/contextmenu/contextmenu.esm.js +123 -71
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +122 -71
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +14005 -2381
- package/core/core.min.js +47 -47
- package/csstransition/csstransition.cjs.js +3 -2
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +3 -2
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +4 -3
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +34 -43
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +51 -1
- package/datascroller/datascroller.esm.js +36 -45
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +35 -45
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +1089 -649
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +191 -3
- package/datatable/datatable.esm.js +1091 -651
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +1090 -651
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +125 -109
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +105 -2
- package/dataview/dataview.esm.js +127 -111
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +123 -108
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +3 -1
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +3 -1
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +4 -3
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +6 -5
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +7 -6
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +6 -5
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +3 -1
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +3 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +4 -3
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +85 -46
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +66 -0
- package/dock/dock.esm.js +86 -47
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +85 -48
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +170 -120
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +154 -2
- package/dropdown/dropdown.esm.js +172 -122
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +170 -121
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +95 -116
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +50 -0
- package/editor/editor.esm.js +96 -117
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +95 -118
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +3 -1
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +3 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +4 -3
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +234 -191
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +160 -1
- package/fileupload/fileupload.esm.js +235 -192
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +231 -188
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +139 -124
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +156 -2
- package/galleria/galleria.esm.js +141 -126
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +138 -124
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +10 -3
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +7 -3
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +11 -5
- package/hooks/hooks.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +415 -2
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +415 -2
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +415 -2
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +415 -2
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +415 -2
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +415 -2
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +415 -2
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +415 -2
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +415 -2
- package/icons/ban/index.min.js +1 -1
- package/icons/download/index.cjs.js +415 -2
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +415 -2
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +415 -2
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +415 -2
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +415 -2
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +415 -2
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +415 -2
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +415 -2
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +415 -2
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +415 -2
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +415 -2
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +415 -2
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +415 -2
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +415 -2
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +415 -2
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +415 -2
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +415 -2
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +415 -2
- package/icons/infocircle/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +415 -2
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +415 -2
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +415 -2
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +415 -2
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +415 -2
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +415 -2
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +415 -2
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +415 -2
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +415 -2
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +415 -2
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +415 -2
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +415 -2
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +415 -2
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +415 -2
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +415 -2
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +415 -2
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +415 -2
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +415 -2
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +415 -2
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +415 -2
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +415 -2
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +415 -2
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +415 -2
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +415 -2
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +415 -2
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +415 -2
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +415 -2
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +415 -2
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +415 -2
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +415 -2
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +415 -2
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +415 -2
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +415 -2
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +415 -2
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +415 -2
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +415 -2
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +415 -2
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +415 -2
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +415 -2
- package/icons/thlarge/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +415 -2
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +415 -2
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +415 -2
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +415 -2
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +415 -2
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +415 -2
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +415 -2
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +415 -2
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +415 -2
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +415 -2
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +415 -2
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +415 -2
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +415 -2
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +415 -2
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +415 -2
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +415 -2
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +415 -2
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +415 -2
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +480 -80
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +130 -3
- package/image/image.esm.js +483 -83
- package/image/image.esm.min.js +1 -1
- package/image/image.js +481 -82
- package/image/image.min.css +1 -1
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +2 -1
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +3 -2
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +2 -1
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +26 -26
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +7 -2
- package/inputmask/inputmask.esm.js +27 -27
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +26 -28
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +68 -48
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +62 -1
- package/inputnumber/inputnumber.esm.js +66 -49
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +68 -50
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +84 -25
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +61 -0
- package/inputswitch/inputswitch.esm.js +85 -26
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +83 -27
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +25 -15
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +32 -0
- package/inputtext/inputtext.esm.js +26 -16
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +25 -17
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +25 -15
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +33 -1
- package/inputtextarea/inputtextarea.esm.js +26 -16
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +25 -17
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +25 -9
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +25 -9
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +25 -11
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +44 -43
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +42 -0
- package/knob/knob.esm.js +45 -44
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +44 -45
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +86 -56
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +103 -3
- package/listbox/listbox.esm.js +88 -58
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +86 -57
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +151 -99
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +142 -2
- package/megamenu/megamenu.esm.js +152 -100
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +149 -98
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +87 -61
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +80 -1
- package/mention/mention.esm.js +89 -63
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +88 -63
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +99 -59
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +71 -0
- package/menu/menu.esm.js +101 -61
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +100 -61
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +122 -114
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +94 -1
- package/menubar/menubar.esm.js +124 -116
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +122 -115
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +69 -47
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +35 -2
- package/message/message.esm.js +70 -48
- package/message/message.esm.min.js +1 -1
- package/message/message.js +69 -49
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +65 -63
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +51 -2
- package/messages/messages.esm.js +66 -64
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +65 -64
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +249 -193
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +185 -3
- package/multiselect/multiselect.esm.js +252 -196
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +249 -194
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +47 -33
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +61 -2
- package/multistatecheckbox/multistatecheckbox.esm.js +49 -35
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +48 -35
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +188 -110
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +118 -2
- package/orderlist/orderlist.esm.js +190 -112
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +186 -109
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +139 -73
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +89 -2
- package/organizationchart/organizationchart.esm.js +140 -74
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +139 -75
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +7 -6
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +5 -0
- package/overlaypanel/overlaypanel.esm.js +8 -7
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +8 -7
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +172 -166
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +111 -5
- package/paginator/paginator.esm.js +174 -168
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +172 -167
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +3 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +3 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +4 -3
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +148 -84
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +124 -2
- package/panelmenu/panelmenu.esm.js +148 -84
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +146 -84
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +89 -46
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +98 -2
- package/password/password.esm.js +91 -48
- package/password/password.esm.min.js +1 -1
- package/password/password.js +88 -46
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +146 -82
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +133 -1
- package/picklist/picklist.esm.js +148 -84
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +143 -80
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +3 -2
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +3 -2
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +4 -3
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +6656 -4389
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +6655 -4390
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +6656 -4389
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +3 -1
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +3 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +4 -3
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +3 -1
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +3 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +4 -3
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +90 -30
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +66 -1
- package/radiobutton/radiobutton.esm.js +91 -31
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +89 -32
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +47 -36
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.d.ts +64 -1
- package/rating/rating.esm.js +48 -37
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +47 -38
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +475 -465
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +33 -8
- package/resources/themes/arya-green/theme.css +33 -8
- package/resources/themes/arya-orange/theme.css +33 -8
- package/resources/themes/arya-purple/theme.css +33 -8
- package/resources/themes/bootstrap4-dark-blue/theme.css +33 -8
- package/resources/themes/bootstrap4-dark-purple/theme.css +33 -8
- package/resources/themes/bootstrap4-light-blue/theme.css +33 -8
- package/resources/themes/bootstrap4-light-purple/theme.css +33 -8
- package/resources/themes/fluent-light/theme.css +33 -8
- package/resources/themes/lara-dark-blue/theme.css +33 -8
- package/resources/themes/lara-dark-indigo/theme.css +33 -8
- package/resources/themes/lara-dark-purple/theme.css +33 -8
- package/resources/themes/lara-dark-teal/theme.css +33 -8
- package/resources/themes/lara-light-blue/theme.css +33 -8
- package/resources/themes/lara-light-indigo/theme.css +33 -8
- package/resources/themes/lara-light-purple/theme.css +33 -8
- package/resources/themes/lara-light-teal/theme.css +33 -8
- package/resources/themes/luna-amber/theme.css +33 -8
- package/resources/themes/luna-blue/theme.css +33 -8
- package/resources/themes/luna-green/theme.css +33 -8
- package/resources/themes/luna-pink/theme.css +33 -8
- package/resources/themes/md-dark-deeppurple/theme.css +33 -8
- package/resources/themes/md-dark-indigo/theme.css +33 -8
- package/resources/themes/md-light-deeppurple/theme.css +33 -8
- package/resources/themes/md-light-indigo/theme.css +33 -8
- package/resources/themes/mdc-dark-deeppurple/theme.css +33 -8
- package/resources/themes/mdc-dark-indigo/theme.css +33 -8
- package/resources/themes/mdc-light-deeppurple/theme.css +33 -8
- package/resources/themes/mdc-light-indigo/theme.css +33 -8
- package/resources/themes/mira/theme.css +33 -8
- package/resources/themes/nano/theme.css +33 -8
- package/resources/themes/nova/theme.css +33 -8
- package/resources/themes/nova-accent/theme.css +33 -8
- package/resources/themes/nova-alt/theme.css +33 -8
- package/resources/themes/rhea/theme.css +33 -8
- package/resources/themes/saga-blue/theme.css +33 -8
- package/resources/themes/saga-green/theme.css +33 -8
- package/resources/themes/saga-orange/theme.css +33 -8
- package/resources/themes/saga-purple/theme.css +33 -8
- package/resources/themes/soho-dark/theme.css +33 -8
- package/resources/themes/soho-light/theme.css +33 -8
- package/resources/themes/tailwind-light/theme.css +45 -20
- package/resources/themes/vela-blue/theme.css +33 -8
- package/resources/themes/vela-green/theme.css +33 -8
- package/resources/themes/vela-orange/theme.css +33 -8
- package/resources/themes/vela-purple/theme.css +33 -8
- package/resources/themes/viva-dark/theme.css +33 -8
- package/resources/themes/viva-light/theme.css +33 -8
- package/ripple/ripple.cjs.js +3 -2
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +3 -2
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +4 -3
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +28 -41
- package/row/row.cjs.min.js +1 -1
- package/row/row.d.ts +28 -0
- package/row/row.esm.js +15 -28
- package/row/row.esm.min.js +1 -1
- package/row/row.js +49 -64
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +3 -1
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +3 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +4 -3
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +9 -7
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +11 -9
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +10 -8
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +37 -25
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +52 -1
- package/selectbutton/selectbutton.esm.js +38 -26
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +37 -27
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +7 -6
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +8 -7
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +8 -7
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +4 -3
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +4 -3
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +5 -5
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +125 -114
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +103 -1
- package/slidemenu/slidemenu.esm.js +127 -116
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +125 -115
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +71 -39
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.d.ts +34 -1
- package/slider/slider.esm.js +72 -40
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +71 -41
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +3 -1
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +3 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +4 -3
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +74 -63
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +39 -11
- package/splitbutton/splitbutton.esm.js +76 -65
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +74 -63
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +3 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +10 -0
- package/splitter/splitter.esm.js +3 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +4 -3
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +81 -46
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +50 -0
- package/steps/steps.esm.js +82 -47
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +81 -48
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +3 -1
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +3 -1
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +4 -3
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +86 -48
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +62 -0
- package/tabmenu/tabmenu.esm.js +87 -49
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +86 -50
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +8 -5
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +9 -6
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +7 -4
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +3 -1
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +3 -1
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +4 -3
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +3 -1
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +3 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +4 -3
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +110 -64
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +83 -2
- package/tieredmenu/tieredmenu.esm.js +112 -66
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +111 -66
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +51 -43
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +51 -1
- package/timeline/timeline.esm.js +52 -44
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +51 -45
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +118 -75
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +122 -4
- package/toast/toast.esm.js +120 -77
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +116 -74
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +74 -21
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +40 -2
- package/togglebutton/togglebutton.esm.js +75 -22
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +73 -23
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +3 -1
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +5 -11
- package/toolbar/toolbar.esm.js +3 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +4 -3
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +3 -2
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +7 -7
- package/tooltip/tooltip.esm.js +4 -3
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +3 -2
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +118 -88
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +139 -1
- package/tree/tree.esm.js +120 -90
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +116 -87
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +135 -102
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +143 -2
- package/treeselect/treeselect.esm.js +137 -104
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +136 -104
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +385 -198
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +305 -2
- package/treetable/treetable.esm.js +387 -200
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +383 -197
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +97 -40
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +64 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +99 -42
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +97 -42
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +31 -5
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.esm.js +28 -5
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +32 -7
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +43 -29
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +78 -1
- package/virtualscroller/virtualscroller.esm.js +44 -30
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +43 -31
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +1 -1
package/tieredmenu/tieredmenu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransition, hooks, overlayservice, portal, utils, ripple, angleright) {
|
|
2
|
+
this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransition, hooks, overlayservice, portal, utils, componentbase, ripple, angleright) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -25,21 +25,6 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
25
25
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
26
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
27
27
|
|
|
28
|
-
function _extends() {
|
|
29
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
30
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
31
|
-
var source = arguments[i];
|
|
32
|
-
for (var key in source) {
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34
|
-
target[key] = source[key];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return target;
|
|
39
|
-
};
|
|
40
|
-
return _extends.apply(this, arguments);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
28
|
function _arrayWithHoles(arr) {
|
|
44
29
|
if (Array.isArray(arr)) return arr;
|
|
45
30
|
}
|
|
@@ -95,7 +80,7 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
95
80
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
96
81
|
}
|
|
97
82
|
|
|
98
|
-
var TieredMenuBase = {
|
|
83
|
+
var TieredMenuBase = componentbase.ComponentBase.extend({
|
|
99
84
|
defaultProps: {
|
|
100
85
|
__TYPE: 'TieredMenu',
|
|
101
86
|
id: null,
|
|
@@ -113,21 +98,65 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
113
98
|
onHide: null,
|
|
114
99
|
submenuIcon: null,
|
|
115
100
|
children: undefined
|
|
116
|
-
},
|
|
117
|
-
getProps: function getProps(props) {
|
|
118
|
-
return utils.ObjectUtils.getMergedProps(props, TieredMenuBase.defaultProps);
|
|
119
|
-
},
|
|
120
|
-
getOtherProps: function getOtherProps(props) {
|
|
121
|
-
return utils.ObjectUtils.getDiffProps(props, TieredMenuBase.defaultProps);
|
|
122
101
|
}
|
|
123
|
-
};
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
function _typeof(obj) {
|
|
105
|
+
"@babel/helpers - typeof";
|
|
106
|
+
|
|
107
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
108
|
+
return typeof obj;
|
|
109
|
+
} : function (obj) {
|
|
110
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
111
|
+
}, _typeof(obj);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function _toPrimitive(input, hint) {
|
|
115
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
116
|
+
var prim = input[Symbol.toPrimitive];
|
|
117
|
+
if (prim !== undefined) {
|
|
118
|
+
var res = prim.call(input, hint || "default");
|
|
119
|
+
if (_typeof(res) !== "object") return res;
|
|
120
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
121
|
+
}
|
|
122
|
+
return (hint === "string" ? String : Number)(input);
|
|
123
|
+
}
|
|
124
124
|
|
|
125
|
+
function _toPropertyKey(arg) {
|
|
126
|
+
var key = _toPrimitive(arg, "string");
|
|
127
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function _defineProperty(obj, key, value) {
|
|
131
|
+
key = _toPropertyKey(key);
|
|
132
|
+
if (key in obj) {
|
|
133
|
+
Object.defineProperty(obj, key, {
|
|
134
|
+
value: value,
|
|
135
|
+
enumerable: true,
|
|
136
|
+
configurable: true,
|
|
137
|
+
writable: true
|
|
138
|
+
});
|
|
139
|
+
} else {
|
|
140
|
+
obj[key] = value;
|
|
141
|
+
}
|
|
142
|
+
return obj;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
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; }
|
|
146
|
+
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; }
|
|
125
147
|
var TieredMenuSub = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
126
148
|
var _React$useState = React__namespace.useState(null),
|
|
127
149
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
128
150
|
activeItemState = _React$useState2[0],
|
|
129
151
|
setActiveItemState = _React$useState2[1];
|
|
130
152
|
var elementRef = React__namespace.useRef(null);
|
|
153
|
+
var getPTOptions = function getPTOptions(item, key) {
|
|
154
|
+
return props.ptm(key, {
|
|
155
|
+
context: {
|
|
156
|
+
active: activeItemState === item
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
};
|
|
131
160
|
var _useEventListener = hooks.useEventListener({
|
|
132
161
|
type: 'click',
|
|
133
162
|
listener: function listener(event) {
|
|
@@ -268,11 +297,12 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
268
297
|
}, [activeItemState]);
|
|
269
298
|
var createSeparator = function createSeparator(index) {
|
|
270
299
|
var key = 'separator_' + index;
|
|
271
|
-
|
|
300
|
+
var separatorProps = utils.mergeProps({
|
|
272
301
|
key: key,
|
|
273
|
-
className:
|
|
274
|
-
role:
|
|
275
|
-
});
|
|
302
|
+
className: 'p-menu-separator',
|
|
303
|
+
role: 'separator'
|
|
304
|
+
}, props.ptm('separator'));
|
|
305
|
+
return /*#__PURE__*/React__namespace.createElement("li", separatorProps);
|
|
276
306
|
};
|
|
277
307
|
var createSubmenu = function createSubmenu(item) {
|
|
278
308
|
if (item.items) {
|
|
@@ -285,7 +315,8 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
285
315
|
parentActive: item === activeItemState,
|
|
286
316
|
isMobileMode: props.isMobileMode,
|
|
287
317
|
onItemToggle: props.onItemToggle,
|
|
288
|
-
submenuIcon: props.submenuIcon
|
|
318
|
+
submenuIcon: props.submenuIcon,
|
|
319
|
+
ptm: props.ptm
|
|
289
320
|
});
|
|
290
321
|
}
|
|
291
322
|
return null;
|
|
@@ -313,37 +344,39 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
313
344
|
'p-disabled': disabled
|
|
314
345
|
});
|
|
315
346
|
var iconClassName = utils.classNames('p-menuitem-icon', _icon);
|
|
316
|
-
var
|
|
317
|
-
className:
|
|
318
|
-
},
|
|
347
|
+
var iconProps = utils.mergeProps({
|
|
348
|
+
className: iconClassName
|
|
349
|
+
}, getPTOptions(item, 'icon'));
|
|
350
|
+
var icon = utils.IconUtils.getJSXIcon(_icon, _objectSpread({}, iconProps), {
|
|
319
351
|
props: props.menuProps
|
|
320
352
|
});
|
|
321
|
-
var
|
|
322
|
-
className:
|
|
323
|
-
},
|
|
353
|
+
var labelProps = utils.mergeProps({
|
|
354
|
+
className: 'p-menuitem-text'
|
|
355
|
+
}, getPTOptions(item, 'label'));
|
|
356
|
+
var label = _label && /*#__PURE__*/React__namespace.createElement("span", labelProps, _label);
|
|
324
357
|
var submenuIconClassName = 'p-submenu-icon';
|
|
325
|
-
var
|
|
358
|
+
var submenuIconProps = utils.mergeProps({
|
|
326
359
|
className: submenuIconClassName
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
}, {
|
|
360
|
+
}, getPTOptions(item, 'submenuIcon'));
|
|
361
|
+
var submenuIcon = item.items && utils.IconUtils.getJSXIcon(props.submenuIcon || /*#__PURE__*/React__namespace.createElement(angleright.AngleRightIcon, submenuIconProps), _objectSpread({}, submenuIconProps), {
|
|
330
362
|
props: props.menuProps
|
|
331
363
|
});
|
|
332
364
|
var submenu = createSubmenu(item);
|
|
333
|
-
var
|
|
365
|
+
var actionProps = utils.mergeProps({
|
|
334
366
|
href: url || '#',
|
|
335
367
|
className: linkClassName,
|
|
336
368
|
target: target,
|
|
337
|
-
role:
|
|
338
|
-
|
|
369
|
+
role: 'menuitem',
|
|
370
|
+
'aria-haspopup': items != null,
|
|
339
371
|
onClick: function onClick(event) {
|
|
340
372
|
return onItemClick(event, item);
|
|
341
373
|
},
|
|
342
374
|
onKeyDown: function onKeyDown(event) {
|
|
343
375
|
return onItemKeyDown(event, item);
|
|
344
376
|
},
|
|
345
|
-
|
|
346
|
-
},
|
|
377
|
+
'aria-disabled': disabled
|
|
378
|
+
}, getPTOptions(item, 'action'));
|
|
379
|
+
var content = /*#__PURE__*/React__namespace.createElement("a", actionProps, icon, label, submenuIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
347
380
|
if (template) {
|
|
348
381
|
var defaultContentOptions = {
|
|
349
382
|
onClick: function onClick(event) {
|
|
@@ -363,7 +396,7 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
363
396
|
};
|
|
364
397
|
content = utils.ObjectUtils.getJSXElement(template, item, defaultContentOptions);
|
|
365
398
|
}
|
|
366
|
-
|
|
399
|
+
var menuitemProps = utils.mergeProps({
|
|
367
400
|
key: key,
|
|
368
401
|
id: item.id,
|
|
369
402
|
className: className,
|
|
@@ -371,8 +404,9 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
371
404
|
onMouseEnter: function onMouseEnter(event) {
|
|
372
405
|
return onItemMouseEnter(event, item);
|
|
373
406
|
},
|
|
374
|
-
role:
|
|
375
|
-
},
|
|
407
|
+
role: 'none'
|
|
408
|
+
}, getPTOptions(item, 'menuitem'));
|
|
409
|
+
return /*#__PURE__*/React__namespace.createElement("li", menuitemProps, content, submenu);
|
|
376
410
|
};
|
|
377
411
|
var createItem = function createItem(item, index) {
|
|
378
412
|
return item.separator ? createSeparator(index) : createMenuItem(item, index);
|
|
@@ -384,17 +418,19 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
384
418
|
'p-submenu-list': !props.root
|
|
385
419
|
});
|
|
386
420
|
var submenu = createMenu();
|
|
387
|
-
|
|
421
|
+
var menuProps = utils.mergeProps({
|
|
388
422
|
ref: elementRef,
|
|
389
423
|
className: className,
|
|
390
424
|
role: props.root ? 'menubar' : 'menu',
|
|
391
|
-
|
|
392
|
-
},
|
|
425
|
+
'aria-orientation': 'horizontal'
|
|
426
|
+
}, props.ptm('menu'));
|
|
427
|
+
return /*#__PURE__*/React__namespace.createElement("ul", menuProps, submenu);
|
|
393
428
|
});
|
|
394
429
|
TieredMenuSub.displayName = 'TieredMenuSub';
|
|
395
430
|
|
|
396
431
|
var TieredMenu = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
397
|
-
var
|
|
432
|
+
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
433
|
+
var props = TieredMenuBase.getProps(inProps, context);
|
|
398
434
|
var _React$useState = React__namespace.useState(!props.popup),
|
|
399
435
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
400
436
|
visibleState = _React$useState2[0],
|
|
@@ -403,6 +439,14 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
403
439
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
404
440
|
attributeSelectorState = _React$useState4[0],
|
|
405
441
|
setAttributeSelectorState = _React$useState4[1];
|
|
442
|
+
var _TieredMenuBase$setMe = TieredMenuBase.setMetaData({
|
|
443
|
+
props: props,
|
|
444
|
+
state: {
|
|
445
|
+
visible: visibleState,
|
|
446
|
+
attributeSelector: attributeSelectorState
|
|
447
|
+
}
|
|
448
|
+
}),
|
|
449
|
+
ptm = _TieredMenuBase$setMe.ptm;
|
|
406
450
|
var menuRef = React__namespace.useRef(null);
|
|
407
451
|
var targetRef = React__namespace.useRef(null);
|
|
408
452
|
var styleElementRef = React__namespace.useRef(null);
|
|
@@ -451,7 +495,7 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
451
495
|
};
|
|
452
496
|
var createStyle = function createStyle() {
|
|
453
497
|
if (!styleElementRef.current) {
|
|
454
|
-
styleElementRef.current = utils.DomHandler.createInlineStyle(PrimeReact__default["default"].nonce);
|
|
498
|
+
styleElementRef.current = utils.DomHandler.createInlineStyle(context && context.nonce || PrimeReact__default["default"].nonce);
|
|
455
499
|
var selector = "".concat(attributeSelectorState);
|
|
456
500
|
var innerHTML = "\n@media screen and (max-width: ".concat(props.breakpoint, ") {\n .p-tieredmenu[").concat(selector, "] > ul {\n max-height: ").concat(props.scrollHeight, ";\n overflow: ").concat(props.scrollHeight ? 'auto' : '', ";\n }\n\n .p-tieredmenu[").concat(selector, "] .p-submenu-list {\n position: relative;\n }\n\n .p-tieredmenu[").concat(selector, "] .p-menuitem-active > .p-submenu-list {\n left: 0 !important;\n box-shadow: none;\n border-radius: 0;\n padding: 0 0 0 calc(var(--inline-spacing) * 2); /* @todo */\n }\n\n .p-tieredmenu[").concat(selector, "] .p-menuitem-active > .p-menuitem-link > .p-submenu-icon {\n transform: rotate(-180deg);\n }\n\n .p-tieredmenu[").concat(selector, "] .p-submenu-icon:before {\n content: \"\\e930\";\n }\n\n ").concat(!props.popup ? ".p-tieredmenu[".concat(selector, "] { width: 100%; }") : '', "\n}\n");
|
|
457
501
|
styleElementRef.current.innerHTML = innerHTML;
|
|
@@ -462,7 +506,7 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
462
506
|
};
|
|
463
507
|
var onEnter = function onEnter() {
|
|
464
508
|
if (props.autoZIndex) {
|
|
465
|
-
utils.ZIndexUtils.set('menu', menuRef.current, PrimeReact__default["default"].autoZIndex, props.baseZIndex || PrimeReact__default["default"].zIndex['menu']);
|
|
509
|
+
utils.ZIndexUtils.set('menu', menuRef.current, context && context.autoZIndex || PrimeReact__default["default"].autoZIndex, props.baseZIndex || context && context.zIndex['menu'] || PrimeReact__default["default"].zIndex['menu']);
|
|
466
510
|
}
|
|
467
511
|
utils.DomHandler.absolutePosition(menuRef.current, targetRef.current);
|
|
468
512
|
if (attributeSelectorState && props.breakpoint) {
|
|
@@ -510,12 +554,19 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
510
554
|
};
|
|
511
555
|
});
|
|
512
556
|
var createElement = function createElement() {
|
|
513
|
-
|
|
557
|
+
TieredMenuBase.getOtherProps(props);
|
|
514
558
|
var className = utils.classNames('p-tieredmenu p-component', {
|
|
515
559
|
'p-tieredmenu-overlay': props.popup,
|
|
516
|
-
'p-input-filled': PrimeReact__default["default"].inputStyle === 'filled',
|
|
517
|
-
'p-ripple-disabled': PrimeReact__default["default"].ripple === false
|
|
560
|
+
'p-input-filled': context && context.inputStyle === 'filled' || PrimeReact__default["default"].inputStyle === 'filled',
|
|
561
|
+
'p-ripple-disabled': context && context.ripple === false || PrimeReact__default["default"].ripple === false
|
|
518
562
|
}, props.className);
|
|
563
|
+
var rootProps = utils.mergeProps({
|
|
564
|
+
ref: menuRef,
|
|
565
|
+
id: props.id,
|
|
566
|
+
className: className,
|
|
567
|
+
style: props.style,
|
|
568
|
+
onClick: onPanelClick
|
|
569
|
+
}, TieredMenuBase.getOtherProps(props), ptm('root'));
|
|
519
570
|
return /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, {
|
|
520
571
|
nodeRef: menuRef,
|
|
521
572
|
classNames: "p-connected-overlay",
|
|
@@ -530,14 +581,7 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
530
581
|
onEntered: onEntered,
|
|
531
582
|
onExit: onExit,
|
|
532
583
|
onExited: onExited
|
|
533
|
-
}, /*#__PURE__*/React__namespace.createElement("div",
|
|
534
|
-
ref: menuRef,
|
|
535
|
-
id: props.id,
|
|
536
|
-
className: className,
|
|
537
|
-
style: props.style
|
|
538
|
-
}, otherProps, {
|
|
539
|
-
onClick: onPanelClick
|
|
540
|
-
}), /*#__PURE__*/React__namespace.createElement(TieredMenuSub, {
|
|
584
|
+
}, /*#__PURE__*/React__namespace.createElement("div", rootProps, /*#__PURE__*/React__namespace.createElement(TieredMenuSub, {
|
|
541
585
|
menuProps: props,
|
|
542
586
|
model: props.model,
|
|
543
587
|
root: true,
|
|
@@ -545,7 +589,8 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
545
589
|
onHide: hide,
|
|
546
590
|
isMobileMode: isMobileMode,
|
|
547
591
|
onItemToggle: onItemToggle,
|
|
548
|
-
submenuIcon: props.submenuIcon
|
|
592
|
+
submenuIcon: props.submenuIcon,
|
|
593
|
+
ptm: ptm
|
|
549
594
|
})));
|
|
550
595
|
};
|
|
551
596
|
var element = createElement();
|
|
@@ -562,4 +607,4 @@ this.primereact.tieredmenu = (function (exports, React, PrimeReact, csstransitio
|
|
|
562
607
|
|
|
563
608
|
return exports;
|
|
564
609
|
|
|
565
|
-
})({}, React, primereact.api, primereact.csstransition, primereact.hooks, primereact.overlayservice, primereact.portal, primereact.utils, primereact.ripple, primereact.icons.angleright);
|
|
610
|
+
})({}, React, primereact.api, primereact.csstransition, primereact.hooks, primereact.overlayservice, primereact.portal, primereact.utils, primereact.componentbase, primereact.ripple, primereact.icons.angleright);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.tieredmenu=function(e,n,t,r,o,i,u,l,a,c){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function p(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var m=p(n),d=s(t);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},f.apply(this,arguments)}function b(e){if(Array.isArray(e))return e}function g(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,l=[],a=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;a=!1}else for(;!(a=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{if(!a&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(c)throw o}}return l}}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function h(e,n){if(e){if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,n):void 0}}function y(){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 E(e,n){return b(e)||g(e,n)||h(e,n)||y()}var I={defaultProps:{__TYPE:"TieredMenu",id:null,model:null,popup:!1,style:null,className:null,autoZIndex:!0,baseZIndex:0,breakpoint:void 0,scrollHeight:"400px",appendTo:null,transitionOptions:null,onShow:null,onHide:null,submenuIcon:null,children:void 0},getProps:function(e){return l.ObjectUtils.getMergedProps(e,I.defaultProps)},getOtherProps:function(e){return l.ObjectUtils.getDiffProps(e,I.defaultProps)}},M=m.memo((function(e){var n=E(m.useState(null),2),t=n[0],r=n[1],i=m.useRef(null),u=E(o.useEventListener({type:"click",listener:function(n){e.isMobileMode||!i.current||i.current.contains(n.target)||r(null)}}),1)[0],s=E(o.useResizeListener({listener:function(){!e.isMobileMode&&r(null)}}),1)[0],p=function(){if(i.current){var e=i.current.parentElement,n=l.DomHandler.getOffset(e),t=l.DomHandler.getViewport(),r=i.current.offsetParent?i.current.offsetWidth:l.DomHandler.getHiddenElementOuterWidth(i.current),o=l.DomHandler.getOuterWidth(e.children[0]),u=parseInt(n.top,10)+i.current.offsetHeight-l.DomHandler.getWindowScrollTop();i.current.style.top=u>t.height?t.height-u+"px":"0px",parseInt(n.left,10)+o+r>t.width-l.DomHandler.calculateScrollbarWidth()&&l.DomHandler.addClass(i.current,"p-submenu-list-flipped")}},d=function(n,o){o.disabled||e.isMobileMode?n.preventDefault():e.root?(t||e.popup)&&r(o):r(o)},f=function(n,o){o.disabled?n.preventDefault():(o.url||n.preventDefault(),o.command&&o.command({originalEvent:n,item:o}),(e.root||e.isMobileMode)&&o.items&&r(t&&o===t?null:o),o.items||y(n))},b=function(n,t){var o=n.currentTarget.parentElement;switch(n.which){case 40:var i=v(o);i&&i.children[0].focus(),n.preventDefault();break;case 38:var u=h(o);u&&u.children[0].focus(),n.preventDefault();break;case 39:t.items&&(r(t),setTimeout((function(){o.children[1].children[0].children[0].focus()}),50)),n.preventDefault()}e.onKeyDown&&e.onKeyDown(n,o)},g=function(e,n){37===e.which&&(r(null),n.parentElement.previousElementSibling.focus())},v=function e(n){var t=n.nextElementSibling;return t?l.DomHandler.hasClass(t,"p-disabled")||!l.DomHandler.hasClass(t,"p-menuitem")?e(t):t:null},h=function e(n){var t=n.previousElementSibling;return t?l.DomHandler.hasClass(t,"p-disabled")||!l.DomHandler.hasClass(t,"p-menuitem")?e(t):t:null},y=function(n){e.isMobileMode&&!e.popup||(r(null),e.onLeafClick&&e.onLeafClick(n),e.onHide&&e.onHide(n))};o.useMountEffect((function(){u(),s()})),o.useUpdateEffect((function(){e.parentActive||r(null),e.root||!e.parentActive||e.isMobileMode||p()}),[e.parentActive]),o.useUpdateEffect((function(){e.onItemToggle&&e.onItemToggle()}),[t]);var I=function(e){return m.createElement("li",{key:"separator_"+e,className:"p-menu-separator",role:"separator"})},w=function(n){return n.items?m.createElement(M,{menuProps:e.menuProps,model:n.items,onLeafClick:y,popup:e.popup,onKeyDown:g,parentActive:n===t,isMobileMode:e.isMobileMode,onItemToggle:e.onItemToggle,submenuIcon:e.submenuIcon}):null},D=function(n,r){if(!1===n.visible)return null;var o=n.style,i=n.disabled,u=n.icon,s=n.label,p=n.items,g=n.target,v=n.url,h=n.template,y=s+"_"+r,E=t===n,I=l.classNames("p-menuitem",{"p-menuitem-active":E},n.className),M=l.classNames("p-menuitem-link",{"p-disabled":i}),D=l.classNames("p-menuitem-icon",u),H=l.IconUtils.getJSXIcon(u,{className:"p-menuitem-icon"},{props:e.menuProps}),O=s&&m.createElement("span",{className:"p-menuitem-text"},s),S="p-submenu-icon",x=n.items&&l.IconUtils.getJSXIcon(e.submenuIcon||m.createElement(c.AngleRightIcon,{className:S}),{className:S},{props:e.menuProps}),N=w(n),k=m.createElement("a",{href:v||"#",className:M,target:g,role:"menuitem","aria-haspopup":null!=p,onClick:function(e){return f(e,n)},onKeyDown:function(e){return b(e,n)},"aria-disabled":i},H,O,x,m.createElement(a.Ripple,null));h&&(k=l.ObjectUtils.getJSXElement(h,n,{onClick:function(e){return f(e,n)},onKeyDown:function(e){return b(e,n)},className:M,labelClassName:"p-menuitem-text",iconClassName:D,submenuIconClassName:S,element:k,props:e,active:E,disabled:i}));return m.createElement("li",{key:y,id:n.id,className:I,style:o,onMouseEnter:function(e){return d(e,n)},role:"none"},k,N)},H=function(e,n){return e.separator?I(n):D(e,n)},O=l.classNames({"p-submenu-list":!e.root}),S=e.model?e.model.map(H):null;return m.createElement("ul",{ref:i,className:O,role:e.root?"menubar":"menu","aria-orientation":"horizontal"},S)}));M.displayName="TieredMenuSub";var w=m.memo(m.forwardRef((function(e,n){var t=I.getProps(e),a=E(m.useState(!t.popup),2),c=a[0],s=a[1],p=E(m.useState(null),2),b=p[0],g=p[1],v=m.useRef(null),h=m.useRef(null),y=m.useRef(null),w=o.useMatchMedia("screen and (max-width: ".concat(t.breakpoint,")"),!!t.breakpoint),D=E(o.useOverlayListener({target:h,overlay:v,listener:function(e,n){n.valid&&k(e)},when:c}),2),H=D[0],O=D[1],S=function(e){t.popup&&i.OverlayService.emit("overlay-click",{originalEvent:e,target:h.current})},x=function(e){t.popup&&(c?k(e):N(e))},N=function(e){h.current=e.currentTarget,s(!0),t.onShow&&t.onShow(e)},k=function(e){t.popup&&(h.current=e.currentTarget,s(!1),t.onHide&&t.onHide(e))},P=function(){t.popup&&w&&l.DomHandler.absolutePosition(v.current,h.current)},T=function(){if(!y.current){y.current=l.DomHandler.createInlineStyle(d.default.nonce);var e="".concat(b),n="\n@media screen and (max-width: ".concat(t.breakpoint,") {\n .p-tieredmenu[").concat(e,"] > ul {\n max-height: ").concat(t.scrollHeight,";\n overflow: ").concat(t.scrollHeight?"auto":"",";\n }\n\n .p-tieredmenu[").concat(e,"] .p-submenu-list {\n position: relative;\n }\n\n .p-tieredmenu[").concat(e,"] .p-menuitem-active > .p-submenu-list {\n left: 0 !important;\n box-shadow: none;\n border-radius: 0;\n padding: 0 0 0 calc(var(--inline-spacing) * 2); /* @todo */\n }\n\n .p-tieredmenu[").concat(e,"] .p-menuitem-active > .p-menuitem-link > .p-submenu-icon {\n transform: rotate(-180deg);\n }\n\n .p-tieredmenu[").concat(e,'] .p-submenu-icon:before {\n content: "\\e930";\n }\n\n ').concat(t.popup?"":".p-tieredmenu[".concat(e,"] { width: 100%; }"),"\n}\n");y.current.innerHTML=n}},j=function(){y.current=l.DomHandler.removeInlineStyle(y.current)},C=function(){t.autoZIndex&&l.ZIndexUtils.set("menu",v.current,d.default.autoZIndex,t.baseZIndex||d.default.zIndex.menu),l.DomHandler.absolutePosition(v.current,h.current),b&&t.breakpoint&&(v.current.setAttribute(b,""),T())},U=function(){H()},A=function(){h.current=null,O()},R=function(){l.ZIndexUtils.clear(v.current),j()};o.useMountEffect((function(){t.breakpoint&&!b&&g(l.UniqueComponentId())})),o.useUpdateEffect((function(){return b&&v.current&&(v.current.setAttribute(b,""),T()),function(){j()}}),[b,t.breakpoint]),o.useUnmountEffect((function(){l.ZIndexUtils.clear(v.current)})),m.useImperativeHandle(n,(function(){return{props:t,toggle:x,show:N,hide:k,getElement:function(){return v.current}}}));var Z,_,L=(Z=I.getOtherProps(t),_=l.classNames("p-tieredmenu p-component",{"p-tieredmenu-overlay":t.popup,"p-input-filled":"filled"===d.default.inputStyle,"p-ripple-disabled":!1===d.default.ripple},t.className),m.createElement(r.CSSTransition,{nodeRef:v,classNames:"p-connected-overlay",in:c,timeout:{enter:120,exit:100},options:t.transitionOptions,unmountOnExit:!0,onEnter:C,onEntered:U,onExit:A,onExited:R},m.createElement("div",f({ref:v,id:t.id,className:_,style:t.style},Z,{onClick:S}),m.createElement(M,{menuProps:t,model:t.model,root:!0,popup:t.popup,onHide:k,isMobileMode:w,onItemToggle:P,submenuIcon:t.submenuIcon}))));return t.popup?m.createElement(u.Portal,{element:L,appendTo:t.appendTo}):L})));return w.displayName="TieredMenu",e.TieredMenu=w,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.csstransition,primereact.hooks,primereact.overlayservice,primereact.portal,primereact.utils,primereact.ripple,primereact.icons.angleright);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.tieredmenu=function(e,n,t,r,o,i,u,l,a,c,s){"use strict";function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function m(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var f=m(n),d=p(t);function b(e){if(Array.isArray(e))return e}function v(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,l=[],a=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;a=!1}else for(;!(a=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{if(!a&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(c)throw o}}return l}}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function y(e,n){if(e){if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,n):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 E(e,n){return b(e)||v(e,n)||y(e,n)||h()}var O=a.ComponentBase.extend({defaultProps:{__TYPE:"TieredMenu",id:null,model:null,popup:!1,style:null,className:null,autoZIndex:!0,baseZIndex:0,breakpoint:void 0,scrollHeight:"400px",appendTo:null,transitionOptions:null,onShow:null,onHide:null,submenuIcon:null,children:void 0}});function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function S(e,n){if("object"!==I(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function P(e){var n=S(e,"string");return"symbol"===I(n)?n:String(n)}function w(e,n,t){return(n=P(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){w(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var x=f.memo((function(e){var n=E(f.useState(null),2),t=n[0],r=n[1],i=f.useRef(null),u=function(n,r){return e.ptm(r,{context:{active:t===n}})},a=E(o.useEventListener({type:"click",listener:function(n){e.isMobileMode||!i.current||i.current.contains(n.target)||r(null)}}),1)[0],p=E(o.useResizeListener({listener:function(){!e.isMobileMode&&r(null)}}),1)[0],m=function(){if(i.current){var e=i.current.parentElement,n=l.DomHandler.getOffset(e),t=l.DomHandler.getViewport(),r=i.current.offsetParent?i.current.offsetWidth:l.DomHandler.getHiddenElementOuterWidth(i.current),o=l.DomHandler.getOuterWidth(e.children[0]),u=parseInt(n.top,10)+i.current.offsetHeight-l.DomHandler.getWindowScrollTop();i.current.style.top=u>t.height?t.height-u+"px":"0px",parseInt(n.left,10)+o+r>t.width-l.DomHandler.calculateScrollbarWidth()&&l.DomHandler.addClass(i.current,"p-submenu-list-flipped")}},d=function(n,o){o.disabled||e.isMobileMode?n.preventDefault():e.root?(t||e.popup)&&r(o):r(o)},b=function(n,o){o.disabled?n.preventDefault():(o.url||n.preventDefault(),o.command&&o.command({originalEvent:n,item:o}),(e.root||e.isMobileMode)&&o.items&&r(t&&o===t?null:o),o.items||O(n))},v=function(n,t){var o=n.currentTarget.parentElement;switch(n.which){case 40:var i=y(o);i&&i.children[0].focus(),n.preventDefault();break;case 38:var u=h(o);u&&u.children[0].focus(),n.preventDefault();break;case 39:t.items&&(r(t),setTimeout((function(){o.children[1].children[0].children[0].focus()}),50)),n.preventDefault()}e.onKeyDown&&e.onKeyDown(n,o)},g=function(e,n){37===e.which&&(r(null),n.parentElement.previousElementSibling.focus())},y=function e(n){var t=n.nextElementSibling;return t?l.DomHandler.hasClass(t,"p-disabled")||!l.DomHandler.hasClass(t,"p-menuitem")?e(t):t:null},h=function e(n){var t=n.previousElementSibling;return t?l.DomHandler.hasClass(t,"p-disabled")||!l.DomHandler.hasClass(t,"p-menuitem")?e(t):t:null},O=function(n){e.isMobileMode&&!e.popup||(r(null),e.onLeafClick&&e.onLeafClick(n),e.onHide&&e.onHide(n))};o.useMountEffect((function(){a(),p()})),o.useUpdateEffect((function(){e.parentActive||r(null),e.root||!e.parentActive||e.isMobileMode||m()}),[e.parentActive]),o.useUpdateEffect((function(){e.onItemToggle&&e.onItemToggle()}),[t]);var I=function(n){var t=l.mergeProps({key:"separator_"+n,className:"p-menu-separator",role:"separator"},e.ptm("separator"));return f.createElement("li",t)},S=function(n){return n.items?f.createElement(x,{menuProps:e.menuProps,model:n.items,onLeafClick:O,popup:e.popup,onKeyDown:g,parentActive:n===t,isMobileMode:e.isMobileMode,onItemToggle:e.onItemToggle,submenuIcon:e.submenuIcon,ptm:e.ptm}):null},P=function(n,r){if(!1===n.visible)return null;var o=n.style,i=n.disabled,a=n.icon,p=n.label,m=n.items,g=n.target,y=n.url,h=n.template,E=p+"_"+r,O=t===n,I=l.classNames("p-menuitem",{"p-menuitem-active":O},n.className),P=l.classNames("p-menuitem-link",{"p-disabled":i}),w=l.classNames("p-menuitem-icon",a),D=l.mergeProps({className:w},u(n,"icon")),x=l.IconUtils.getJSXIcon(a,M({},D),{props:e.menuProps}),H=l.mergeProps({className:"p-menuitem-text"},u(n,"label")),j=p&&f.createElement("span",H,p),k="p-submenu-icon",N=l.mergeProps({className:k},u(n,"submenuIcon")),T=n.items&&l.IconUtils.getJSXIcon(e.submenuIcon||f.createElement(s.AngleRightIcon,N),M({},N),{props:e.menuProps}),C=S(n),A=l.mergeProps({href:y||"#",className:P,target:g,role:"menuitem","aria-haspopup":null!=m,onClick:function(e){return b(e,n)},onKeyDown:function(e){return v(e,n)},"aria-disabled":i},u(n,"action")),U=f.createElement("a",A,x,j,T,f.createElement(c.Ripple,null));h&&(U=l.ObjectUtils.getJSXElement(h,n,{onClick:function(e){return b(e,n)},onKeyDown:function(e){return v(e,n)},className:P,labelClassName:"p-menuitem-text",iconClassName:w,submenuIconClassName:k,element:U,props:e,active:O,disabled:i}));var R=l.mergeProps({key:E,id:n.id,className:I,style:o,onMouseEnter:function(e){return d(e,n)},role:"none"},u(n,"menuitem"));return f.createElement("li",R,U,C)},w=function(e,n){return e.separator?I(n):P(e,n)},D=l.classNames({"p-submenu-list":!e.root}),H=e.model?e.model.map(w):null,j=l.mergeProps({ref:i,className:D,role:e.root?"menubar":"menu","aria-orientation":"horizontal"},e.ptm("menu"));return f.createElement("ul",j,H)}));x.displayName="TieredMenuSub";var H=f.memo(f.forwardRef((function(e,n){var a=f.useContext(t.PrimeReactContext),c=O.getProps(e,a),s=E(f.useState(!c.popup),2),p=s[0],m=s[1],b=E(f.useState(null),2),v=b[0],g=b[1],y=O.setMetaData({props:c,state:{visible:p,attributeSelector:v}}).ptm,h=f.useRef(null),I=f.useRef(null),S=f.useRef(null),P=o.useMatchMedia("screen and (max-width: ".concat(c.breakpoint,")"),!!c.breakpoint),w=E(o.useOverlayListener({target:I,overlay:h,listener:function(e,n){n.valid&&N(e)},when:p}),2),D=w[0],M=w[1],H=function(e){c.popup&&i.OverlayService.emit("overlay-click",{originalEvent:e,target:I.current})},j=function(e){c.popup&&(p?N(e):k(e))},k=function(e){I.current=e.currentTarget,m(!0),c.onShow&&c.onShow(e)},N=function(e){c.popup&&(I.current=e.currentTarget,m(!1),c.onHide&&c.onHide(e))},T=function(){c.popup&&P&&l.DomHandler.absolutePosition(h.current,I.current)},C=function(){if(!S.current){S.current=l.DomHandler.createInlineStyle(a&&a.nonce||d.default.nonce);var e="".concat(v),n="\n@media screen and (max-width: ".concat(c.breakpoint,") {\n .p-tieredmenu[").concat(e,"] > ul {\n max-height: ").concat(c.scrollHeight,";\n overflow: ").concat(c.scrollHeight?"auto":"",";\n }\n\n .p-tieredmenu[").concat(e,"] .p-submenu-list {\n position: relative;\n }\n\n .p-tieredmenu[").concat(e,"] .p-menuitem-active > .p-submenu-list {\n left: 0 !important;\n box-shadow: none;\n border-radius: 0;\n padding: 0 0 0 calc(var(--inline-spacing) * 2); /* @todo */\n }\n\n .p-tieredmenu[").concat(e,"] .p-menuitem-active > .p-menuitem-link > .p-submenu-icon {\n transform: rotate(-180deg);\n }\n\n .p-tieredmenu[").concat(e,'] .p-submenu-icon:before {\n content: "\\e930";\n }\n\n ').concat(c.popup?"":".p-tieredmenu[".concat(e,"] { width: 100%; }"),"\n}\n");S.current.innerHTML=n}},A=function(){S.current=l.DomHandler.removeInlineStyle(S.current)},U=function(){c.autoZIndex&&l.ZIndexUtils.set("menu",h.current,a&&a.autoZIndex||d.default.autoZIndex,c.baseZIndex||a&&a.zIndex.menu||d.default.zIndex.menu),l.DomHandler.absolutePosition(h.current,I.current),v&&c.breakpoint&&(h.current.setAttribute(v,""),C())},R=function(){D()},Z=function(){I.current=null,M()},_=function(){l.ZIndexUtils.clear(h.current),A()};o.useMountEffect((function(){c.breakpoint&&!v&&g(l.UniqueComponentId())})),o.useUpdateEffect((function(){return v&&h.current&&(h.current.setAttribute(v,""),C()),function(){A()}}),[v,c.breakpoint]),o.useUnmountEffect((function(){l.ZIndexUtils.clear(h.current)})),f.useImperativeHandle(n,(function(){return{props:c,toggle:j,show:k,hide:N,getElement:function(){return h.current}}}));var L=function(){O.getOtherProps(c);var e=l.classNames("p-tieredmenu p-component",{"p-tieredmenu-overlay":c.popup,"p-input-filled":a&&"filled"===a.inputStyle||"filled"===d.default.inputStyle,"p-ripple-disabled":a&&!1===a.ripple||!1===d.default.ripple},c.className),n=l.mergeProps({ref:h,id:c.id,className:e,style:c.style,onClick:H},O.getOtherProps(c),y("root"));return f.createElement(r.CSSTransition,{nodeRef:h,classNames:"p-connected-overlay",in:p,timeout:{enter:120,exit:100},options:c.transitionOptions,unmountOnExit:!0,onEnter:U,onEntered:R,onExit:Z,onExited:_},f.createElement("div",n,f.createElement(x,{menuProps:c,model:c.model,root:!0,popup:c.popup,onHide:N,isMobileMode:P,onItemToggle:T,submenuIcon:c.submenuIcon,ptm:y})))}();return c.popup?f.createElement(u.Portal,{element:L,appendTo:c.appendTo}):L})));return H.displayName="TieredMenu",e.TieredMenu=H,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.csstransition,primereact.hooks,primereact.overlayservice,primereact.portal,primereact.utils,primereact.componentbase,primereact.ripple,primereact.icons.angleright);
|
package/timeline/timeline.cjs.js
CHANGED
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var utils = require('primereact/utils');
|
|
7
|
+
var componentbase = require('primereact/componentbase');
|
|
8
|
+
var api = require('primereact/api');
|
|
7
9
|
|
|
8
10
|
function _interopNamespace(e) {
|
|
9
11
|
if (e && e.__esModule) return e;
|
|
@@ -25,21 +27,6 @@ function _interopNamespace(e) {
|
|
|
25
27
|
|
|
26
28
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
29
|
|
|
28
|
-
function _extends() {
|
|
29
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
30
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
31
|
-
var source = arguments[i];
|
|
32
|
-
for (var key in source) {
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34
|
-
target[key] = source[key];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return target;
|
|
39
|
-
};
|
|
40
|
-
return _extends.apply(this, arguments);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
30
|
function _typeof(obj) {
|
|
44
31
|
"@babel/helpers - typeof";
|
|
45
32
|
|
|
@@ -81,7 +68,22 @@ function _defineProperty(obj, key, value) {
|
|
|
81
68
|
return obj;
|
|
82
69
|
}
|
|
83
70
|
|
|
84
|
-
|
|
71
|
+
function _extends() {
|
|
72
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
73
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
74
|
+
var source = arguments[i];
|
|
75
|
+
for (var key in source) {
|
|
76
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
77
|
+
target[key] = source[key];
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return target;
|
|
82
|
+
};
|
|
83
|
+
return _extends.apply(this, arguments);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
var TimelineBase = componentbase.ComponentBase.extend({
|
|
85
87
|
defaultProps: {
|
|
86
88
|
__TYPE: 'Timeline',
|
|
87
89
|
align: 'left',
|
|
@@ -93,18 +95,17 @@ var TimelineBase = {
|
|
|
93
95
|
opposite: null,
|
|
94
96
|
value: null,
|
|
95
97
|
children: undefined
|
|
96
|
-
},
|
|
97
|
-
getProps: function getProps(props) {
|
|
98
|
-
return utils.ObjectUtils.getMergedProps(props, TimelineBase.defaultProps);
|
|
99
|
-
},
|
|
100
|
-
getOtherProps: function getOtherProps(props) {
|
|
101
|
-
return utils.ObjectUtils.getDiffProps(props, TimelineBase.defaultProps);
|
|
102
98
|
}
|
|
103
|
-
};
|
|
99
|
+
});
|
|
104
100
|
|
|
105
101
|
var Timeline = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
106
102
|
var _classNames;
|
|
107
|
-
var
|
|
103
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
104
|
+
var props = TimelineBase.getProps(inProps, context);
|
|
105
|
+
var _TimelineBase$setMeta = TimelineBase.setMetaData({
|
|
106
|
+
props: props
|
|
107
|
+
}),
|
|
108
|
+
ptm = _TimelineBase$setMeta.ptm;
|
|
108
109
|
var elementRef = React__namespace.useRef(null);
|
|
109
110
|
var getKey = function getKey(item, index) {
|
|
110
111
|
return props.dataKey ? utils.ObjectUtils.resolveFieldData(item, props.dataKey) : "pr_id__".concat(index);
|
|
@@ -112,23 +113,30 @@ var Timeline = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
112
113
|
var createEvents = function createEvents() {
|
|
113
114
|
return props.value && props.value.map(function (item, index) {
|
|
114
115
|
var opposite = utils.ObjectUtils.getJSXElement(props.opposite, item, index);
|
|
115
|
-
var
|
|
116
|
-
className:
|
|
117
|
-
});
|
|
118
|
-
var
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
var markerProps = utils.mergeProps({
|
|
117
|
+
className: 'p-timeline-event-marker'
|
|
118
|
+
}, ptm('marker'));
|
|
119
|
+
var marker = utils.ObjectUtils.getJSXElement(props.marker, item, index) || /*#__PURE__*/React__namespace.createElement("div", markerProps);
|
|
120
|
+
var connectorProps = utils.mergeProps({
|
|
121
|
+
className: 'p-timeline-event-connector'
|
|
122
|
+
}, ptm('connector'));
|
|
123
|
+
var connector = index !== props.value.length - 1 && /*#__PURE__*/React__namespace.createElement("div", connectorProps);
|
|
121
124
|
var content = utils.ObjectUtils.getJSXElement(props.content, item, index);
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
className:
|
|
127
|
-
}, opposite)
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
125
|
+
var eventProps = utils.mergeProps({
|
|
126
|
+
className: 'p-timeline-event'
|
|
127
|
+
}, ptm('event'));
|
|
128
|
+
var oppositeProps = utils.mergeProps({
|
|
129
|
+
className: 'p-timeline-event-opposite'
|
|
130
|
+
}, ptm('opposite'));
|
|
131
|
+
var separatorProps = utils.mergeProps({
|
|
132
|
+
className: 'p-timeline-event-separator'
|
|
133
|
+
}, ptm('separator'));
|
|
134
|
+
var contentProps = utils.mergeProps({
|
|
135
|
+
className: 'p-timeline-event-content'
|
|
136
|
+
}, ptm('content'));
|
|
137
|
+
return /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
138
|
+
key: getKey(item, index)
|
|
139
|
+
}, eventProps), /*#__PURE__*/React__namespace.createElement("div", oppositeProps, opposite), /*#__PURE__*/React__namespace.createElement("div", separatorProps, marker, connector), /*#__PURE__*/React__namespace.createElement("div", contentProps, content));
|
|
132
140
|
});
|
|
133
141
|
};
|
|
134
142
|
React__namespace.useImperativeHandle(ref, function () {
|
|
@@ -139,13 +147,13 @@ var Timeline = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
139
147
|
}
|
|
140
148
|
};
|
|
141
149
|
});
|
|
142
|
-
var otherProps = TimelineBase.getOtherProps(props);
|
|
143
150
|
var className = utils.classNames('p-timeline p-component', (_classNames = {}, _defineProperty(_classNames, "p-timeline-".concat(props.align), true), _defineProperty(_classNames, "p-timeline-".concat(props.layout), true), _classNames), props.className);
|
|
144
151
|
var events = createEvents();
|
|
145
|
-
|
|
152
|
+
var rootProps = utils.mergeProps({
|
|
146
153
|
ref: elementRef,
|
|
147
154
|
className: className
|
|
148
|
-
},
|
|
155
|
+
}, TimelineBase.getOtherProps(props), ptm('root'));
|
|
156
|
+
return /*#__PURE__*/React__namespace.createElement("div", rootProps, events);
|
|
149
157
|
}));
|
|
150
158
|
Timeline.displayName = 'Timeline';
|
|
151
159
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/utils");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/utils"),r=require("primereact/componentbase"),n=require("primereact/api");function i(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 o=i(e);function a(e){return a="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},a(e)}function l(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function c(e){var t=l(e,"string");return"symbol"===a(t)?t:String(t)}function u(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(){return m=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},m.apply(this,arguments)}var s=r.ComponentBase.extend({defaultProps:{__TYPE:"Timeline",align:"left",className:null,content:null,dataKey:null,layout:"vertical",marker:null,opposite:null,value:null,children:void 0}}),p=o.memo(o.forwardRef((function(e,r){var i,a=o.useContext(n.PrimeReactContext),l=s.getProps(e,a),c=s.setMetaData({props:l}).ptm,p=o.useRef(null),f=function(e,r){return l.dataKey?t.ObjectUtils.resolveFieldData(e,l.dataKey):"pr_id__".concat(r)};o.useImperativeHandle(r,(function(){return{props:l,getElement:function(){return p.current}}}));var v=t.classNames("p-timeline p-component",(u(i={},"p-timeline-".concat(l.align),!0),u(i,"p-timeline-".concat(l.layout),!0),i),l.className),b=l.value&&l.value.map((function(e,r){var n=t.ObjectUtils.getJSXElement(l.opposite,e,r),i=t.mergeProps({className:"p-timeline-event-marker"},c("marker")),a=t.ObjectUtils.getJSXElement(l.marker,e,r)||o.createElement("div",i),u=t.mergeProps({className:"p-timeline-event-connector"},c("connector")),s=r!==l.value.length-1&&o.createElement("div",u),p=t.ObjectUtils.getJSXElement(l.content,e,r),v=t.mergeProps({className:"p-timeline-event"},c("event")),b=t.mergeProps({className:"p-timeline-event-opposite"},c("opposite")),y=t.mergeProps({className:"p-timeline-event-separator"},c("separator")),d=t.mergeProps({className:"p-timeline-event-content"},c("content"));return o.createElement("div",m({key:f(e,r)},v),o.createElement("div",b,n),o.createElement("div",y,a,s),o.createElement("div",d,p))})),y=t.mergeProps({ref:p,className:v},s.getOtherProps(l),c("root"));return o.createElement("div",y,b)})));p.displayName="Timeline",exports.Timeline=p;
|
package/timeline/timeline.d.ts
CHANGED
|
@@ -8,12 +8,57 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
import * as React from 'react';
|
|
11
|
+
import { PassThroughType } from '../utils/utils';
|
|
12
|
+
|
|
13
|
+
export declare type TimelinePassThroughType<T> = PassThroughType<T, TimelinePassThroughMethodOptions>;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Custom passthrough(pt) option method.
|
|
17
|
+
*/
|
|
18
|
+
export interface TimelinePassThroughMethodOptions {
|
|
19
|
+
props: Timeline;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Custom passthrough(pt) options.
|
|
24
|
+
* @see {@link TimelineProps.pt}
|
|
25
|
+
*/
|
|
26
|
+
export interface TimelinePassThroughOptions {
|
|
27
|
+
/**
|
|
28
|
+
* Uses to pass attributes to the root's DOM element.
|
|
29
|
+
*/
|
|
30
|
+
root?: TimelinePassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
31
|
+
/**
|
|
32
|
+
* Uses to pass attributes to the event's DOM element.
|
|
33
|
+
*/
|
|
34
|
+
event?: TimelinePassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
35
|
+
/**
|
|
36
|
+
* Uses to pass attributes to the opposite's DOM element.
|
|
37
|
+
*/
|
|
38
|
+
opposite?: TimelinePassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
39
|
+
/**
|
|
40
|
+
* Uses to pass attributes to the separator's DOM element.
|
|
41
|
+
*/
|
|
42
|
+
separator?: TimelinePassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
43
|
+
/**
|
|
44
|
+
* Uses to pass attributes to the marker's DOM element.
|
|
45
|
+
*/
|
|
46
|
+
marker?: TimelinePassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
47
|
+
/**
|
|
48
|
+
* Uses to pass attributes to the connector's DOM element.
|
|
49
|
+
*/
|
|
50
|
+
connector?: TimelinePassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
51
|
+
/**
|
|
52
|
+
* Uses to pass attributes to the content's DOM element.
|
|
53
|
+
*/
|
|
54
|
+
content?: TimelinePassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
55
|
+
}
|
|
11
56
|
|
|
12
57
|
/**
|
|
13
58
|
* Defines valid properties in Timeline component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
14
59
|
* @group Properties
|
|
15
60
|
*/
|
|
16
|
-
export interface TimelineProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref' | 'content'> {
|
|
61
|
+
export interface TimelineProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref' | 'content' | 'pt'> {
|
|
17
62
|
/**
|
|
18
63
|
* Position of the timeline bar relative to the content. Valid values are "left", "right for vertical layout and "top", "bottom" for horizontal layout.
|
|
19
64
|
* @defaultValue left
|
|
@@ -49,6 +94,11 @@ export interface TimelineProps extends Omit<React.DetailedHTMLProps<React.HTMLAt
|
|
|
49
94
|
* An array of events to display.
|
|
50
95
|
*/
|
|
51
96
|
value?: any[] | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
99
|
+
* @type {TimelinePassThroughOptions}
|
|
100
|
+
*/
|
|
101
|
+
pt?: TimelinePassThroughOptions;
|
|
52
102
|
}
|
|
53
103
|
|
|
54
104
|
/**
|