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
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var
|
|
6
|
+
var api = require('primereact/api');
|
|
7
7
|
var chevronright = require('primereact/icons/chevronright');
|
|
8
|
+
var utils = require('primereact/utils');
|
|
9
|
+
var componentbase = require('primereact/componentbase');
|
|
8
10
|
|
|
9
11
|
function _interopNamespace(e) {
|
|
10
12
|
if (e && e.__esModule) return e;
|
|
@@ -26,22 +28,48 @@ function _interopNamespace(e) {
|
|
|
26
28
|
|
|
27
29
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
30
|
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
function _typeof(obj) {
|
|
32
|
+
"@babel/helpers - typeof";
|
|
33
|
+
|
|
34
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
35
|
+
return typeof obj;
|
|
36
|
+
} : function (obj) {
|
|
37
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
38
|
+
}, _typeof(obj);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function _toPrimitive(input, hint) {
|
|
42
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
43
|
+
var prim = input[Symbol.toPrimitive];
|
|
44
|
+
if (prim !== undefined) {
|
|
45
|
+
var res = prim.call(input, hint || "default");
|
|
46
|
+
if (_typeof(res) !== "object") return res;
|
|
47
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
48
|
+
}
|
|
49
|
+
return (hint === "string" ? String : Number)(input);
|
|
42
50
|
}
|
|
43
51
|
|
|
44
|
-
|
|
52
|
+
function _toPropertyKey(arg) {
|
|
53
|
+
var key = _toPrimitive(arg, "string");
|
|
54
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function _defineProperty(obj, key, value) {
|
|
58
|
+
key = _toPropertyKey(key);
|
|
59
|
+
if (key in obj) {
|
|
60
|
+
Object.defineProperty(obj, key, {
|
|
61
|
+
value: value,
|
|
62
|
+
enumerable: true,
|
|
63
|
+
configurable: true,
|
|
64
|
+
writable: true
|
|
65
|
+
});
|
|
66
|
+
} else {
|
|
67
|
+
obj[key] = value;
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
var BreadCrumbBase = componentbase.ComponentBase.extend({
|
|
45
73
|
defaultProps: {
|
|
46
74
|
__TYPE: 'BreadCrumb',
|
|
47
75
|
id: null,
|
|
@@ -51,17 +79,18 @@ var BreadCrumbBase = {
|
|
|
51
79
|
style: null,
|
|
52
80
|
className: null,
|
|
53
81
|
children: undefined
|
|
54
|
-
},
|
|
55
|
-
getProps: function getProps(props) {
|
|
56
|
-
return utils.ObjectUtils.getMergedProps(props, BreadCrumbBase.defaultProps);
|
|
57
|
-
},
|
|
58
|
-
getOtherProps: function getOtherProps(props) {
|
|
59
|
-
return utils.ObjectUtils.getDiffProps(props, BreadCrumbBase.defaultProps);
|
|
60
82
|
}
|
|
61
|
-
};
|
|
83
|
+
});
|
|
62
84
|
|
|
85
|
+
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; }
|
|
86
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
63
87
|
var BreadCrumb = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
64
|
-
var
|
|
88
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
89
|
+
var props = BreadCrumbBase.getProps(inProps, context);
|
|
90
|
+
var _BreadCrumbBase$setMe = BreadCrumbBase.setMetaData({
|
|
91
|
+
props: props
|
|
92
|
+
}),
|
|
93
|
+
ptm = _BreadCrumbBase$setMe.ptm;
|
|
65
94
|
var elementRef = React__namespace.useRef(null);
|
|
66
95
|
var itemClick = function itemClick(event, item) {
|
|
67
96
|
if (item.disabled) {
|
|
@@ -90,24 +119,31 @@ var BreadCrumb = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
90
119
|
disabled = home.disabled,
|
|
91
120
|
style = home.style,
|
|
92
121
|
_className = home.className,
|
|
93
|
-
template = home.template
|
|
122
|
+
template = home.template,
|
|
123
|
+
_label = home.label;
|
|
94
124
|
var _className2 = utils.classNames('p-breadcrumb-home', {
|
|
95
125
|
'p-disabled': disabled
|
|
96
126
|
}, _className);
|
|
97
|
-
var
|
|
127
|
+
var iconProps = utils.mergeProps({
|
|
98
128
|
className: 'p-menuitem-icon'
|
|
99
|
-
},
|
|
129
|
+
}, ptm('icon'));
|
|
130
|
+
var icon = utils.IconUtils.getJSXIcon(_icon, _objectSpread({}, iconProps), {
|
|
100
131
|
props: props
|
|
101
132
|
});
|
|
102
|
-
var
|
|
133
|
+
var actionProps = utils.mergeProps({
|
|
103
134
|
href: url || '#',
|
|
104
|
-
className:
|
|
105
|
-
|
|
135
|
+
className: 'p-menuitem-link',
|
|
136
|
+
'aria-disabled': disabled,
|
|
106
137
|
target: target,
|
|
107
138
|
onClick: function onClick(event) {
|
|
108
139
|
return itemClick(event, home);
|
|
109
140
|
}
|
|
110
|
-
},
|
|
141
|
+
}, ptm('action'));
|
|
142
|
+
var labelProps = utils.mergeProps({
|
|
143
|
+
className: 'p-menuitem-text'
|
|
144
|
+
}, ptm('label'));
|
|
145
|
+
var label = _label && /*#__PURE__*/React__namespace.createElement("span", labelProps, _label);
|
|
146
|
+
var content = /*#__PURE__*/React__namespace.createElement("a", actionProps, icon, label);
|
|
111
147
|
if (template) {
|
|
112
148
|
var defaultContentOptions = {
|
|
113
149
|
onClick: function onClick(event) {
|
|
@@ -120,44 +156,49 @@ var BreadCrumb = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
120
156
|
};
|
|
121
157
|
content = utils.ObjectUtils.getJSXElement(template, home, defaultContentOptions);
|
|
122
158
|
}
|
|
123
|
-
|
|
159
|
+
var menuitemProps = utils.mergeProps({
|
|
124
160
|
className: _className2,
|
|
125
161
|
style: style
|
|
126
|
-
},
|
|
162
|
+
}, ptm('menuitem'));
|
|
163
|
+
return /*#__PURE__*/React__namespace.createElement("li", menuitemProps, content);
|
|
127
164
|
}
|
|
128
165
|
return null;
|
|
129
166
|
};
|
|
130
167
|
var createSeparator = function createSeparator() {
|
|
131
168
|
var iconClassName = 'p-breadcrumb-chevron';
|
|
132
|
-
var
|
|
133
|
-
className: iconClassName
|
|
134
|
-
});
|
|
135
|
-
var separatorIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
169
|
+
var separatorIconProps = utils.mergeProps({
|
|
136
170
|
className: iconClassName
|
|
137
|
-
},
|
|
171
|
+
}, ptm('separatorIcon'));
|
|
172
|
+
var icon = props.separatorIcon || /*#__PURE__*/React__namespace.createElement(chevronright.ChevronRightIcon, separatorIconProps);
|
|
173
|
+
var separatorIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, separatorIconProps), {
|
|
138
174
|
props: props
|
|
139
175
|
});
|
|
140
|
-
|
|
176
|
+
var separatorProps = utils.mergeProps({
|
|
177
|
+
className: 'p-menuitem-separator'
|
|
178
|
+
}, ptm('separator'));
|
|
179
|
+
return /*#__PURE__*/React__namespace.createElement("li", separatorProps, separatorIcon);
|
|
141
180
|
};
|
|
142
181
|
var createMenuitem = function createMenuitem(item) {
|
|
143
182
|
if (item.visible === false) {
|
|
144
183
|
return null;
|
|
145
184
|
}
|
|
146
|
-
var className = utils.classNames(item.className, {
|
|
185
|
+
var className = utils.classNames('p-menuitem', item.className, {
|
|
147
186
|
'p-disabled': item.disabled
|
|
148
187
|
});
|
|
149
|
-
var
|
|
150
|
-
className:
|
|
151
|
-
},
|
|
152
|
-
var
|
|
188
|
+
var labelProps = utils.mergeProps({
|
|
189
|
+
className: 'p-menuitem-text'
|
|
190
|
+
}, ptm('label'));
|
|
191
|
+
var label = item.label && /*#__PURE__*/React__namespace.createElement("span", labelProps, item.label);
|
|
192
|
+
var actionProps = utils.mergeProps({
|
|
153
193
|
href: item.url || '#',
|
|
154
|
-
className:
|
|
194
|
+
className: 'p-menuitem-link',
|
|
155
195
|
target: item.target,
|
|
156
196
|
onClick: function onClick(event) {
|
|
157
197
|
return itemClick(event, item);
|
|
158
198
|
},
|
|
159
|
-
|
|
160
|
-
},
|
|
199
|
+
'aria-disabled': item.disabled
|
|
200
|
+
}, ptm('action'));
|
|
201
|
+
var content = /*#__PURE__*/React__namespace.createElement("a", actionProps, label);
|
|
161
202
|
if (item.template) {
|
|
162
203
|
var defaultContentOptions = {
|
|
163
204
|
onClick: function onClick(event) {
|
|
@@ -170,10 +211,11 @@ var BreadCrumb = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
170
211
|
};
|
|
171
212
|
content = utils.ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);
|
|
172
213
|
}
|
|
173
|
-
|
|
214
|
+
var menuitemProps = utils.mergeProps({
|
|
174
215
|
className: className,
|
|
175
216
|
style: item.style
|
|
176
|
-
},
|
|
217
|
+
}, ptm('menuitem'));
|
|
218
|
+
return /*#__PURE__*/React__namespace.createElement("li", menuitemProps, content);
|
|
177
219
|
};
|
|
178
220
|
var createMenuitems = function createMenuitems() {
|
|
179
221
|
if (props.model) {
|
|
@@ -200,18 +242,21 @@ var BreadCrumb = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
200
242
|
}
|
|
201
243
|
};
|
|
202
244
|
});
|
|
203
|
-
var otherProps = BreadCrumbBase.getOtherProps(props);
|
|
204
245
|
var className = utils.classNames('p-breadcrumb p-component', props.className);
|
|
205
246
|
var home = createHome();
|
|
206
247
|
var items = createMenuitems();
|
|
207
248
|
var separator = createSeparator();
|
|
208
|
-
|
|
249
|
+
var menuProps = utils.mergeProps({
|
|
250
|
+
className: 'p-breadcrumb-list'
|
|
251
|
+
}, ptm('menu'));
|
|
252
|
+
var rootProps = utils.mergeProps({
|
|
209
253
|
id: props.id,
|
|
210
254
|
ref: elementRef,
|
|
211
255
|
className: className,
|
|
212
256
|
style: props.style,
|
|
213
|
-
|
|
214
|
-
},
|
|
257
|
+
'aria-label': 'Breadcrumb'
|
|
258
|
+
}, BreadCrumbBase.getOtherProps(props), ptm('root'));
|
|
259
|
+
return /*#__PURE__*/React__namespace.createElement("nav", rootProps, /*#__PURE__*/React__namespace.createElement("ul", menuProps, home, separator, items));
|
|
215
260
|
}));
|
|
216
261
|
BreadCrumb.displayName = 'BreadCrumb';
|
|
217
262
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("primereact/api"),t=require("primereact/icons/chevronright"),n=require("primereact/utils"),a=require("primereact/componentbase");function l(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var o=l(e);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 c(e,r){if("object"!==i(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function m(e){var r=c(e,"string");return"symbol"===i(r)?r:String(r)}function u(e,r,t){return(r=m(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var s=a.ComponentBase.extend({defaultProps:{__TYPE:"BreadCrumb",id:null,model:null,home:null,separatorIcon:null,style:null,className:null,children:void 0}});function p(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function b(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?p(Object(t),!0).forEach((function(r){u(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var f=o.memo(o.forwardRef((function(e,a){var l=o.useContext(r.PrimeReactContext),i=s.getProps(e,l),c=s.setMetaData({props:i}).ptm,m=o.useRef(null),u=function(e,r){r.disabled?e.preventDefault():(r.url||e.preventDefault(),r.command&&r.command({originalEvent:e,item:r}))},p=function(){var e=n.mergeProps({className:"p-breadcrumb-chevron"},c("separatorIcon")),r=n.IconUtils.getJSXIcon(i.separatorIcon||o.createElement(t.ChevronRightIcon,e),b({},e),{props:i}),a=n.mergeProps({className:"p-menuitem-separator"},c("separator"));return o.createElement("li",a,r)},f=function(e){if(!1===e.visible)return null;var r=n.classNames("p-menuitem",e.className,{"p-disabled":e.disabled}),t=n.mergeProps({className:"p-menuitem-text"},c("label")),a=e.label&&o.createElement("span",t,e.label),l=n.mergeProps({href:e.url||"#",className:"p-menuitem-link",target:e.target,onClick:function(r){return u(r,e)},"aria-disabled":e.disabled},c("action")),m=o.createElement("a",l,a);e.template&&(m=n.ObjectUtils.getJSXElement(e.template,e,{onClick:function(r){return u(r,e)},className:"p-menuitem-link",labelClassName:"p-menuitem-text",element:m,props:i}));var s=n.mergeProps({className:r,style:e.style},c("menuitem"));return o.createElement("li",s,m)};o.useImperativeHandle(a,(function(){return{props:i,getElement:function(){return m.current}}}));var d=n.classNames("p-breadcrumb p-component",i.className),g=function(){var e=i.home;if(e){if(!1===e.visible)return null;var r=e.icon,t=e.target,a=e.url,l=e.disabled,m=e.style,s=e.template,p=e.label,f=n.classNames("p-breadcrumb-home",{"p-disabled":l},e.className),d=n.mergeProps({className:"p-menuitem-icon"},c("icon")),g=n.IconUtils.getJSXIcon(r,b({},d),{props:i}),v=n.mergeProps({href:a||"#",className:"p-menuitem-link","aria-disabled":l,target:t,onClick:function(r){return u(r,e)}},c("action")),y=n.mergeProps({className:"p-menuitem-text"},c("label")),P=o.createElement("a",v,g,p&&o.createElement("span",y,p));if(s)P=n.ObjectUtils.getJSXElement(s,e,{onClick:function(r){return u(r,e)},className:"p-menuitem-link",labelClassName:"p-menuitem-text",element:P,props:i});var O=n.mergeProps({className:f,style:m},c("menuitem"));return o.createElement("li",O,P)}return null}(),v=function(){if(i.model){var e=i.model.map((function(e,r){if(!1===e.visible)return null;var t=f(e),n=r===i.model.length-1?null:p();return o.createElement(o.Fragment,{key:e.label+"_"+r},t,n)}));return e}return null}(),y=p(),P=n.mergeProps({className:"p-breadcrumb-list"},c("menu")),O=n.mergeProps({id:i.id,ref:m,className:d,style:i.style,"aria-label":"Breadcrumb"},s.getOtherProps(i),c("root"));return o.createElement("nav",O,o.createElement("ul",P,g,y,v))})));f.displayName="BreadCrumb",exports.BreadCrumb=f;
|
|
@@ -9,8 +9,55 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
import { MenuItem } from '../menuitem';
|
|
12
|
-
import { IconType } from '../utils/utils';
|
|
12
|
+
import { IconType, PassThroughType } from '../utils/utils';
|
|
13
13
|
|
|
14
|
+
export declare type BreadCrumbPassThroughType<T> = PassThroughType<T, BreadCrumbPassThroughMethodOptions>;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Custom passthrough(pt) option method.
|
|
18
|
+
*/
|
|
19
|
+
export interface BreadCrumbPassThroughMethodOptions {
|
|
20
|
+
props: BreadCrumbProps;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Custom passthrough(pt) options.
|
|
25
|
+
* @see {@link BreadCrumbProps.pt}
|
|
26
|
+
*/
|
|
27
|
+
export interface BreadCrumbPassThroughOptions {
|
|
28
|
+
/**
|
|
29
|
+
* Uses to pass attributes to the root's DOM element.
|
|
30
|
+
*/
|
|
31
|
+
root?: BreadCrumbPassThroughType<React.HTMLAttributes<HTMLElement>>;
|
|
32
|
+
/**
|
|
33
|
+
* Uses to pass attributes to the list's DOM element.
|
|
34
|
+
*/
|
|
35
|
+
menu?: BreadCrumbPassThroughType<React.HTMLAttributes<HTMLUListElement>>;
|
|
36
|
+
/**
|
|
37
|
+
* Uses to pass attributes to the list item's DOM element.
|
|
38
|
+
*/
|
|
39
|
+
menuitem?: BreadCrumbPassThroughType<React.HTMLAttributes<HTMLLIElement>>;
|
|
40
|
+
/**
|
|
41
|
+
* Uses to pass attributes to the action's DOM element.
|
|
42
|
+
*/
|
|
43
|
+
action?: BreadCrumbPassThroughType<React.HTMLAttributes<HTMLAnchorElement>>;
|
|
44
|
+
/**
|
|
45
|
+
* Uses to pass attributes to the icon's DOM element.
|
|
46
|
+
*/
|
|
47
|
+
icon?: BreadCrumbPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
48
|
+
/**
|
|
49
|
+
* Uses to pass attributes to the label's DOM element.
|
|
50
|
+
*/
|
|
51
|
+
label?: BreadCrumbPassThroughType<React.HTMLAttributes<HTMLSpanElement>>;
|
|
52
|
+
/**
|
|
53
|
+
* Uses to pass attributes to the separator's DOM element.
|
|
54
|
+
*/
|
|
55
|
+
separator?: BreadCrumbPassThroughType<React.HTMLAttributes<HTMLLIElement>>;
|
|
56
|
+
/**
|
|
57
|
+
* Uses to pass attributes to the separator icon's DOM element.
|
|
58
|
+
*/
|
|
59
|
+
separatorIcon?: BreadCrumbPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
60
|
+
}
|
|
14
61
|
/**
|
|
15
62
|
* Defines valid properties in BreadCrumb component. In addition to these, all properties of HTMLElement can be used in this component.
|
|
16
63
|
* @group Properties
|
|
@@ -33,6 +80,11 @@ export interface BreadCrumbProps extends Omit<React.DetailedHTMLProps<React.HTML
|
|
|
33
80
|
* @readonly
|
|
34
81
|
*/
|
|
35
82
|
children?: React.ReactNode | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
85
|
+
* @type {BreadCrumbPassThroughOptions}
|
|
86
|
+
*/
|
|
87
|
+
pt?: BreadCrumbPassThroughOptions;
|
|
36
88
|
}
|
|
37
89
|
|
|
38
90
|
/**
|
|
@@ -1,23 +1,51 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PrimeReactContext } from 'primereact/api';
|
|
3
3
|
import { ChevronRightIcon } from 'primereact/icons/chevronright';
|
|
4
|
+
import { classNames, mergeProps, IconUtils, ObjectUtils } from 'primereact/utils';
|
|
5
|
+
import { ComponentBase } from 'primereact/componentbase';
|
|
4
6
|
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
function _typeof(obj) {
|
|
8
|
+
"@babel/helpers - typeof";
|
|
9
|
+
|
|
10
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
11
|
+
return typeof obj;
|
|
12
|
+
} : function (obj) {
|
|
13
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
14
|
+
}, _typeof(obj);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function _toPrimitive(input, hint) {
|
|
18
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
19
|
+
var prim = input[Symbol.toPrimitive];
|
|
20
|
+
if (prim !== undefined) {
|
|
21
|
+
var res = prim.call(input, hint || "default");
|
|
22
|
+
if (_typeof(res) !== "object") return res;
|
|
23
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
24
|
+
}
|
|
25
|
+
return (hint === "string" ? String : Number)(input);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function _toPropertyKey(arg) {
|
|
29
|
+
var key = _toPrimitive(arg, "string");
|
|
30
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function _defineProperty(obj, key, value) {
|
|
34
|
+
key = _toPropertyKey(key);
|
|
35
|
+
if (key in obj) {
|
|
36
|
+
Object.defineProperty(obj, key, {
|
|
37
|
+
value: value,
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true,
|
|
40
|
+
writable: true
|
|
41
|
+
});
|
|
42
|
+
} else {
|
|
43
|
+
obj[key] = value;
|
|
44
|
+
}
|
|
45
|
+
return obj;
|
|
18
46
|
}
|
|
19
47
|
|
|
20
|
-
var BreadCrumbBase = {
|
|
48
|
+
var BreadCrumbBase = ComponentBase.extend({
|
|
21
49
|
defaultProps: {
|
|
22
50
|
__TYPE: 'BreadCrumb',
|
|
23
51
|
id: null,
|
|
@@ -27,17 +55,18 @@ var BreadCrumbBase = {
|
|
|
27
55
|
style: null,
|
|
28
56
|
className: null,
|
|
29
57
|
children: undefined
|
|
30
|
-
},
|
|
31
|
-
getProps: function getProps(props) {
|
|
32
|
-
return ObjectUtils.getMergedProps(props, BreadCrumbBase.defaultProps);
|
|
33
|
-
},
|
|
34
|
-
getOtherProps: function getOtherProps(props) {
|
|
35
|
-
return ObjectUtils.getDiffProps(props, BreadCrumbBase.defaultProps);
|
|
36
58
|
}
|
|
37
|
-
};
|
|
59
|
+
});
|
|
38
60
|
|
|
61
|
+
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; }
|
|
62
|
+
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; }
|
|
39
63
|
var BreadCrumb = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
40
|
-
var
|
|
64
|
+
var context = React.useContext(PrimeReactContext);
|
|
65
|
+
var props = BreadCrumbBase.getProps(inProps, context);
|
|
66
|
+
var _BreadCrumbBase$setMe = BreadCrumbBase.setMetaData({
|
|
67
|
+
props: props
|
|
68
|
+
}),
|
|
69
|
+
ptm = _BreadCrumbBase$setMe.ptm;
|
|
41
70
|
var elementRef = React.useRef(null);
|
|
42
71
|
var itemClick = function itemClick(event, item) {
|
|
43
72
|
if (item.disabled) {
|
|
@@ -66,24 +95,31 @@ var BreadCrumb = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
66
95
|
disabled = home.disabled,
|
|
67
96
|
style = home.style,
|
|
68
97
|
_className = home.className,
|
|
69
|
-
template = home.template
|
|
98
|
+
template = home.template,
|
|
99
|
+
_label = home.label;
|
|
70
100
|
var _className2 = classNames('p-breadcrumb-home', {
|
|
71
101
|
'p-disabled': disabled
|
|
72
102
|
}, _className);
|
|
73
|
-
var
|
|
103
|
+
var iconProps = mergeProps({
|
|
74
104
|
className: 'p-menuitem-icon'
|
|
75
|
-
},
|
|
105
|
+
}, ptm('icon'));
|
|
106
|
+
var icon = IconUtils.getJSXIcon(_icon, _objectSpread({}, iconProps), {
|
|
76
107
|
props: props
|
|
77
108
|
});
|
|
78
|
-
var
|
|
109
|
+
var actionProps = mergeProps({
|
|
79
110
|
href: url || '#',
|
|
80
|
-
className:
|
|
81
|
-
|
|
111
|
+
className: 'p-menuitem-link',
|
|
112
|
+
'aria-disabled': disabled,
|
|
82
113
|
target: target,
|
|
83
114
|
onClick: function onClick(event) {
|
|
84
115
|
return itemClick(event, home);
|
|
85
116
|
}
|
|
86
|
-
},
|
|
117
|
+
}, ptm('action'));
|
|
118
|
+
var labelProps = mergeProps({
|
|
119
|
+
className: 'p-menuitem-text'
|
|
120
|
+
}, ptm('label'));
|
|
121
|
+
var label = _label && /*#__PURE__*/React.createElement("span", labelProps, _label);
|
|
122
|
+
var content = /*#__PURE__*/React.createElement("a", actionProps, icon, label);
|
|
87
123
|
if (template) {
|
|
88
124
|
var defaultContentOptions = {
|
|
89
125
|
onClick: function onClick(event) {
|
|
@@ -96,44 +132,49 @@ var BreadCrumb = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
96
132
|
};
|
|
97
133
|
content = ObjectUtils.getJSXElement(template, home, defaultContentOptions);
|
|
98
134
|
}
|
|
99
|
-
|
|
135
|
+
var menuitemProps = mergeProps({
|
|
100
136
|
className: _className2,
|
|
101
137
|
style: style
|
|
102
|
-
},
|
|
138
|
+
}, ptm('menuitem'));
|
|
139
|
+
return /*#__PURE__*/React.createElement("li", menuitemProps, content);
|
|
103
140
|
}
|
|
104
141
|
return null;
|
|
105
142
|
};
|
|
106
143
|
var createSeparator = function createSeparator() {
|
|
107
144
|
var iconClassName = 'p-breadcrumb-chevron';
|
|
108
|
-
var
|
|
109
|
-
className: iconClassName
|
|
110
|
-
});
|
|
111
|
-
var separatorIcon = IconUtils.getJSXIcon(icon, {
|
|
145
|
+
var separatorIconProps = mergeProps({
|
|
112
146
|
className: iconClassName
|
|
113
|
-
},
|
|
147
|
+
}, ptm('separatorIcon'));
|
|
148
|
+
var icon = props.separatorIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, separatorIconProps);
|
|
149
|
+
var separatorIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, separatorIconProps), {
|
|
114
150
|
props: props
|
|
115
151
|
});
|
|
116
|
-
|
|
152
|
+
var separatorProps = mergeProps({
|
|
153
|
+
className: 'p-menuitem-separator'
|
|
154
|
+
}, ptm('separator'));
|
|
155
|
+
return /*#__PURE__*/React.createElement("li", separatorProps, separatorIcon);
|
|
117
156
|
};
|
|
118
157
|
var createMenuitem = function createMenuitem(item) {
|
|
119
158
|
if (item.visible === false) {
|
|
120
159
|
return null;
|
|
121
160
|
}
|
|
122
|
-
var className = classNames(item.className, {
|
|
161
|
+
var className = classNames('p-menuitem', item.className, {
|
|
123
162
|
'p-disabled': item.disabled
|
|
124
163
|
});
|
|
125
|
-
var
|
|
126
|
-
className:
|
|
127
|
-
},
|
|
128
|
-
var
|
|
164
|
+
var labelProps = mergeProps({
|
|
165
|
+
className: 'p-menuitem-text'
|
|
166
|
+
}, ptm('label'));
|
|
167
|
+
var label = item.label && /*#__PURE__*/React.createElement("span", labelProps, item.label);
|
|
168
|
+
var actionProps = mergeProps({
|
|
129
169
|
href: item.url || '#',
|
|
130
|
-
className:
|
|
170
|
+
className: 'p-menuitem-link',
|
|
131
171
|
target: item.target,
|
|
132
172
|
onClick: function onClick(event) {
|
|
133
173
|
return itemClick(event, item);
|
|
134
174
|
},
|
|
135
|
-
|
|
136
|
-
},
|
|
175
|
+
'aria-disabled': item.disabled
|
|
176
|
+
}, ptm('action'));
|
|
177
|
+
var content = /*#__PURE__*/React.createElement("a", actionProps, label);
|
|
137
178
|
if (item.template) {
|
|
138
179
|
var defaultContentOptions = {
|
|
139
180
|
onClick: function onClick(event) {
|
|
@@ -146,10 +187,11 @@ var BreadCrumb = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
146
187
|
};
|
|
147
188
|
content = ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);
|
|
148
189
|
}
|
|
149
|
-
|
|
190
|
+
var menuitemProps = mergeProps({
|
|
150
191
|
className: className,
|
|
151
192
|
style: item.style
|
|
152
|
-
},
|
|
193
|
+
}, ptm('menuitem'));
|
|
194
|
+
return /*#__PURE__*/React.createElement("li", menuitemProps, content);
|
|
153
195
|
};
|
|
154
196
|
var createMenuitems = function createMenuitems() {
|
|
155
197
|
if (props.model) {
|
|
@@ -176,18 +218,21 @@ var BreadCrumb = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
176
218
|
}
|
|
177
219
|
};
|
|
178
220
|
});
|
|
179
|
-
var otherProps = BreadCrumbBase.getOtherProps(props);
|
|
180
221
|
var className = classNames('p-breadcrumb p-component', props.className);
|
|
181
222
|
var home = createHome();
|
|
182
223
|
var items = createMenuitems();
|
|
183
224
|
var separator = createSeparator();
|
|
184
|
-
|
|
225
|
+
var menuProps = mergeProps({
|
|
226
|
+
className: 'p-breadcrumb-list'
|
|
227
|
+
}, ptm('menu'));
|
|
228
|
+
var rootProps = mergeProps({
|
|
185
229
|
id: props.id,
|
|
186
230
|
ref: elementRef,
|
|
187
231
|
className: className,
|
|
188
232
|
style: props.style,
|
|
189
|
-
|
|
190
|
-
},
|
|
233
|
+
'aria-label': 'Breadcrumb'
|
|
234
|
+
}, BreadCrumbBase.getOtherProps(props), ptm('root'));
|
|
235
|
+
return /*#__PURE__*/React.createElement("nav", rootProps, /*#__PURE__*/React.createElement("ul", menuProps, home, separator, items));
|
|
191
236
|
}));
|
|
192
237
|
BreadCrumb.displayName = 'BreadCrumb';
|
|
193
238
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{
|
|
1
|
+
import*as e from"react";import{PrimeReactContext as t}from"primereact/api";import{ChevronRightIcon as r}from"primereact/icons/chevronright";import{classNames as n,mergeProps as a,IconUtils as l,ObjectUtils as i}from"primereact/utils";import{ComponentBase as o}from"primereact/componentbase";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 u(e,t){if("object"!==m(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function c(e){var t=u(e,"string");return"symbol"===m(t)?t:String(t)}function s(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}var p=o.extend({defaultProps:{__TYPE:"BreadCrumb",id:null,model:null,home:null,separatorIcon:null,style:null,className:null,children:void 0}});function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d=e.memo(e.forwardRef((function(o,m){var u=e.useContext(t),c=p.getProps(o,u),s=p.setMetaData({props:c}).ptm,f=e.useRef(null),d=function(e,t){t.disabled?e.preventDefault():(t.url||e.preventDefault(),t.command&&t.command({originalEvent:e,item:t}))},y=function(){var t=a({className:"p-breadcrumb-chevron"},s("separatorIcon")),n=l.getJSXIcon(c.separatorIcon||e.createElement(r,t),b({},t),{props:c}),i=a({className:"p-menuitem-separator"},s("separator"));return e.createElement("li",i,n)},v=function(t){if(!1===t.visible)return null;var r=n("p-menuitem",t.className,{"p-disabled":t.disabled}),l=a({className:"p-menuitem-text"},s("label")),o=t.label&&e.createElement("span",l,t.label),m=a({href:t.url||"#",className:"p-menuitem-link",target:t.target,onClick:function(e){return d(e,t)},"aria-disabled":t.disabled},s("action")),u=e.createElement("a",m,o);t.template&&(u=i.getJSXElement(t.template,t,{onClick:function(e){return d(e,t)},className:"p-menuitem-link",labelClassName:"p-menuitem-text",element:u,props:c}));var p=a({className:r,style:t.style},s("menuitem"));return e.createElement("li",p,u)};e.useImperativeHandle(m,(function(){return{props:c,getElement:function(){return f.current}}}));var g=n("p-breadcrumb p-component",c.className),N=function(){var t=c.home;if(t){if(!1===t.visible)return null;var r=t.icon,o=t.target,m=t.url,u=t.disabled,p=t.style,f=t.template,y=t.label,v=n("p-breadcrumb-home",{"p-disabled":u},t.className),g=a({className:"p-menuitem-icon"},s("icon")),N=l.getJSXIcon(r,b({},g),{props:c}),E=a({href:m||"#",className:"p-menuitem-link","aria-disabled":u,target:o,onClick:function(e){return d(e,t)}},s("action")),O=a({className:"p-menuitem-text"},s("label")),h=e.createElement("a",E,N,y&&e.createElement("span",O,y));if(f)h=i.getJSXElement(f,t,{onClick:function(e){return d(e,t)},className:"p-menuitem-link",labelClassName:"p-menuitem-text",element:h,props:c});var P=a({className:v,style:p},s("menuitem"));return e.createElement("li",P,h)}return null}(),E=function(){if(c.model){var t=c.model.map((function(t,r){if(!1===t.visible)return null;var n=v(t),a=r===c.model.length-1?null:y();return e.createElement(e.Fragment,{key:t.label+"_"+r},n,a)}));return t}return null}(),O=y(),h=a({className:"p-breadcrumb-list"},s("menu")),P=a({id:c.id,ref:f,className:g,style:c.style,"aria-label":"Breadcrumb"},p.getOtherProps(c),s("root"));return e.createElement("nav",P,e.createElement("ul",h,N,O,E))})));d.displayName="BreadCrumb";export{d as BreadCrumb};
|