primereact 9.5.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 +214 -3
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +876 -3
- package/api/api.esm.js +209 -4
- package/api/api.esm.min.js +1 -1
- package/api/api.js +215 -5
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +132 -91
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +134 -2
- package/autocomplete/autocomplete.esm.js +134 -93
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +133 -93
- 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 +11 -4
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +11 -4
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +11 -5
- 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 +320 -228
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +267 -1
- package/calendar/calendar.esm.js +322 -230
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +321 -230
- 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 +19 -10
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +8 -0
- package/carousel/carousel.esm.js +20 -11
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +19 -10
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +154 -85
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +95 -1
- package/cascadeselect/cascadeselect.esm.js +156 -87
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +154 -86
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +3 -1
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +3 -1
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +4 -3
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +93 -34
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +60 -1
- package/checkbox/checkbox.esm.js +94 -35
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +93 -36
- 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 +60 -38
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +73 -6
- package/chips/chips.esm.js +61 -39
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +60 -40
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +119 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +76 -0
- package/colorpicker/colorpicker.esm.js +121 -51
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +120 -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 +2 -1
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +3 -2
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +2 -1
- 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 +10 -8
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +11 -9
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +10 -8
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1165 -585
- 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 +911 -477
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +191 -3
- package/datatable/datatable.esm.js +913 -479
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +912 -479
- 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 +3 -1
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +3 -1
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +4 -3
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +169 -119
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +154 -2
- package/dropdown/dropdown.esm.js +171 -121
- 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 +67 -55
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +13 -3
- package/fileupload/fileupload.esm.js +68 -56
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +64 -52
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +8 -6
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +9 -7
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +8 -6
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +6 -3
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +7 -4
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +6 -3
- package/hooks/hooks.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +6 -1
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +6 -1
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +6 -1
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +6 -1
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +6 -1
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +6 -1
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +6 -1
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +6 -1
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +6 -1
- package/icons/ban/index.min.js +1 -1
- package/icons/download/index.cjs.js +6 -1
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +6 -1
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +6 -1
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +6 -1
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +6 -1
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +6 -1
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +6 -1
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +6 -1
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +6 -1
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +6 -1
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +6 -1
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +6 -1
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +6 -1
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +6 -1
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +6 -1
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +6 -1
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +6 -1
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +6 -1
- package/icons/infocircle/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +6 -1
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +6 -1
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +6 -1
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +6 -1
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +6 -1
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +6 -1
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +6 -1
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +6 -1
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +6 -1
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +6 -1
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +6 -1
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +6 -1
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +6 -1
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +6 -1
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +6 -1
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +6 -1
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +6 -1
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +6 -1
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +6 -1
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +6 -1
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +6 -1
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +6 -1
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +6 -1
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +6 -1
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +6 -1
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +6 -1
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +6 -1
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +6 -1
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +6 -1
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +6 -1
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +6 -1
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +6 -1
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +6 -1
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +6 -1
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +6 -1
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +6 -1
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +6 -1
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +6 -1
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +6 -1
- package/icons/thlarge/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +6 -1
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +6 -1
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +6 -1
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +6 -1
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +6 -1
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +6 -1
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +6 -1
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +6 -1
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +6 -1
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +6 -1
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +6 -1
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +6 -1
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +6 -1
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +6 -1
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +6 -1
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +6 -1
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +6 -1
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +6 -1
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +9 -3
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +2 -2
- package/image/image.esm.js +10 -4
- package/image/image.esm.min.js +1 -1
- package/image/image.js +9 -3
- 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 +8 -10
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +7 -2
- package/inputmask/inputmask.esm.js +9 -11
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +8 -12
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +68 -46
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +62 -1
- package/inputnumber/inputnumber.esm.js +66 -47
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +68 -48
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +77 -25
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +56 -0
- package/inputswitch/inputswitch.esm.js +78 -26
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +77 -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 +4 -3
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +5 -4
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +4 -3
- 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 +5 -4
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +6 -5
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +5 -4
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +4 -4
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +5 -5
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +5 -5
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +3 -1
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +3 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.js +4 -3
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +2 -1
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +3 -2
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +2 -1
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +220 -167
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +180 -3
- package/multiselect/multiselect.esm.js +222 -169
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +220 -168
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +32 -22
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +56 -2
- package/multistatecheckbox/multistatecheckbox.esm.js +34 -24
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +33 -24
- 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 +108 -2
- 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 +3 -1
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +3 -1
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +4 -3
- 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 +4725 -3130
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +4724 -3131
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +4725 -3130
- 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 +74 -21
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +61 -1
- package/radiobutton/radiobutton.esm.js +75 -22
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +74 -23
- 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 +568 -566
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +20 -1
- package/resources/themes/arya-green/theme.css +20 -1
- package/resources/themes/arya-orange/theme.css +20 -1
- package/resources/themes/arya-purple/theme.css +20 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +20 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +20 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +20 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +20 -1
- package/resources/themes/fluent-light/theme.css +20 -1
- package/resources/themes/lara-dark-blue/theme.css +20 -1
- package/resources/themes/lara-dark-indigo/theme.css +20 -1
- package/resources/themes/lara-dark-purple/theme.css +20 -1
- package/resources/themes/lara-dark-teal/theme.css +20 -1
- package/resources/themes/lara-light-blue/theme.css +20 -1
- package/resources/themes/lara-light-indigo/theme.css +20 -1
- package/resources/themes/lara-light-purple/theme.css +20 -1
- package/resources/themes/lara-light-teal/theme.css +20 -1
- package/resources/themes/luna-amber/theme.css +20 -1
- package/resources/themes/luna-blue/theme.css +20 -1
- package/resources/themes/luna-green/theme.css +20 -1
- package/resources/themes/luna-pink/theme.css +20 -1
- package/resources/themes/md-dark-deeppurple/theme.css +20 -1
- package/resources/themes/md-dark-indigo/theme.css +20 -1
- package/resources/themes/md-light-deeppurple/theme.css +20 -1
- package/resources/themes/md-light-indigo/theme.css +20 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +20 -1
- package/resources/themes/mdc-dark-indigo/theme.css +20 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +20 -1
- package/resources/themes/mdc-light-indigo/theme.css +20 -1
- package/resources/themes/mira/theme.css +20 -1
- package/resources/themes/nano/theme.css +20 -1
- package/resources/themes/nova/theme.css +20 -1
- package/resources/themes/nova-accent/theme.css +20 -1
- package/resources/themes/nova-alt/theme.css +20 -1
- package/resources/themes/rhea/theme.css +20 -1
- package/resources/themes/saga-blue/theme.css +20 -1
- package/resources/themes/saga-green/theme.css +20 -1
- package/resources/themes/saga-orange/theme.css +20 -1
- package/resources/themes/saga-purple/theme.css +20 -1
- package/resources/themes/soho-dark/theme.css +20 -1
- package/resources/themes/soho-light/theme.css +20 -1
- package/resources/themes/tailwind-light/theme.css +32 -13
- package/resources/themes/vela-blue/theme.css +20 -1
- package/resources/themes/vela-green/theme.css +20 -1
- package/resources/themes/vela-orange/theme.css +20 -1
- package/resources/themes/vela-purple/theme.css +20 -1
- package/resources/themes/viva-dark/theme.css +20 -1
- package/resources/themes/viva-light/theme.css +20 -1
- 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 +5 -4
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +5 -0
- package/slidemenu/slidemenu.esm.js +6 -5
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +6 -5
- 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 +3 -1
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +3 -1
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +4 -3
- 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 +3 -1
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +3 -1
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +4 -3
- 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 +6 -5
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +7 -6
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +6 -5
- 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 +46 -4
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +2 -2
- package/toast/toast.esm.js +47 -5
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +46 -4
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +68 -21
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +40 -2
- package/togglebutton/togglebutton.esm.js +69 -22
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +68 -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 +132 -102
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +138 -2
- package/treeselect/treeselect.esm.js +134 -104
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +133 -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 +83 -33
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +59 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +85 -35
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +84 -35
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +6 -1
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.esm.js +6 -1
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +6 -1
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.colorpicker=function(e,n,t,r,o,l,a,u,i){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var 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=s(n),p=c(t);function d(){return d=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},d.apply(this,arguments)}function m(e){if(Array.isArray(e))return e}function h(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,l,a,u=[],i=!0,c=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;i=!1}else for(;!(i=(r=l.call(t)).done)&&(u.push(r.value),u.length!==n);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}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 b(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 v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e,n){return m(e)||h(e,n)||b(e,n)||v()}var E={defaultProps:{__TYPE:"ColorPicker",appendTo:null,autoFocus:!1,children:void 0,className:null,defaultColor:"ff0000",disabled:!1,format:"hex",id:null,inline:!1,inputClassName:null,inputId:null,inputRef:null,inputStyle:null,onChange:null,onHide:null,onShow:null,panelClassName:null,panelStyle:null,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,transitionOptions:null,value:null},getProps:function(e){return a.ObjectUtils.getMergedProps(e,E.defaultProps)},getOtherProps:function(e){return a.ObjectUtils.getDiffProps(e,E.defaultProps)}},O=f.forwardRef((function(e,n){var t,r=(t=a.classNames("p-colorpicker-panel",e.panelClassName,{"p-colorpicker-overlay-panel":!e.inline,"p-disabled":e.disabled,"p-input-filled":"filled"===p.default.inputStyle,"p-ripple-disabled":!1===p.default.ripple}),f.createElement(u.CSSTransition,{nodeRef:n,classNames:"p-connected-overlay",in:e.in,timeout:{enter:120,exit:100},options:e.transitionOptions,unmountOnExit:!0,onEnter:e.onEnter,onEntered:e.onEntered,onExit:e.onExit,onExited:e.onExited},f.createElement("div",{ref:n,className:t,style:e.panelStyle,onClick:e.onClick},e.children)));return e.inline?r:f.createElement(i.Portal,{element:r,appendTo:e.appendTo})}));O.displayName="ColorPickerPanel";var M=f.memo(f.forwardRef((function(e,n){var t=E.getProps(e),u=y(f.useState(!1),2),i=u[0],c=u[1],s=f.useRef(null),m=f.useRef(null),h=f.useRef(t.inputRef),g=f.useRef(null),b=f.useRef(null),v=f.useRef(null),M=f.useRef(null),k=f.useRef(!1),x=f.useRef(null),C=f.useRef(!1),w=y(r.useOverlayListener({target:s,overlay:m,listener:function(e,n){n.valid&&ee()},when:i}),2),N=w[0],S=w[1],T=y(r.useEventListener({type:"mousemove",listener:function(e){C.current&&B(e),k.current&&Y(e)}}),2),P=T[0],R=T[1],j=y(r.useEventListener({type:"mouseup",listener:function(){C.current=k.current=!1,a.DomHandler.removeClass(s.current,"p-colorpicker-dragging"),R(),I()}}),2),D=j[0],I=j[1],H=function(e){t.disabled||(Z(),U(e))},U=function(e){t.disabled||(k.current=!0,Y(e),a.DomHandler.addClass(s.current,"p-colorpicker-dragging"))},Y=function(e){var n=M.current.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);x.current=oe({h:Math.floor(360*(150-Math.max(0,Math.min(150,(e.pageY||e.changedTouches[0].pageY)-n)))/150),s:100,b:100}),G(),Q(),X()},A=function(e){t.disabled||(Z(),_(e))},_=function(e){t.disabled||(C.current=!0,B(e),a.DomHandler.addClass(s.current,"p-colorpicker-dragging"),e.preventDefault())},F=function(e){C.current&&(B(e),e.preventDefault()),k.current&&(Y(e),e.preventDefault())},L=function(){C.current=!1,k.current=!1,a.DomHandler.removeClass(s.current,"p-colorpicker-dragging"),z()},Z=function(){P(),D()},z=function(){R(),I()},B=function(e){var n=g.current.getBoundingClientRect(),t=n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),r=n.left+document.body.scrollLeft,o=Math.floor(100*Math.max(0,Math.min(150,(e.pageX||e.changedTouches[0].pageX)-r))/150),l=Math.floor(100*(150-Math.max(0,Math.min(150,(e.pageY||e.changedTouches[0].pageY)-t)))/150);x.current=oe({h:x.current.h,s:o,b:l}),J(),V(),X()},X=function(){switch(t.format){case"hex":q(se(x.current));break;case"rgb":q(ie(x.current));break;case"hsb":q(x.current)}},K=function(e){var n;if(e)switch(t.format){case"hex":n=ae(e);break;case"rgb":n=ue(e);break;case"hsb":n=e}else n=ae(t.defaultColor);return n},$=function(e){x.current=K(e)},q=function(e){t.onChange&&t.onChange({value:e,stopPropagation:function(){},preventDefault:function(){},target:{name:t.name,id:t.id,value:e}})},G=function(){if(g.current){var e=oe({h:x.current.h,s:100,b:100});g.current.style.backgroundColor="#"+se(e)}},J=function(){b.current&&(b.current.style.left=Math.floor(150*x.current.s/100)+"px",b.current.style.top=Math.floor(150*(100-x.current.b)/100)+"px")},Q=function(){v.current&&(v.current.style.top=Math.floor(150-150*x.current.h/360)+"px")},V=function(){h.current&&(h.current.style.backgroundColor="#"+se(x.current))},W=function(){c(!0)},ee=function(){c(!1)},ne=function(){te()},te=function(){i?ee():W()},re=function(e){switch(e.which){case 32:te(),e.preventDefault();break;case 27:case 9:ee()}},oe=function(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}},le=function(e){var n=parseInt(e.indexOf("#")>-1?e.substring(1):e,16);return{r:n>>16,g:(65280&n)>>8,b:255&n}},ae=function(e){return ue(le(e))},ue=function(e){var n={h:0,s:0,b:0},t=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),o=r-t;return n.b=r,n.s=0!==r?255*o/r:0,n.h=0!==n.s?e.r===r?(e.g-e.b)/o:e.g===r?2+(e.b-e.r)/o:4+(e.r-e.g)/o:-1,n.h*=60,n.h<0&&(n.h+=360),n.s*=100/255,n.b*=100/255,n},ie=function(e){var n={r:null,g:null,b:null},t=Math.round(e.h),r=Math.round(255*e.s/100),o=Math.round(255*e.b/100);if(0===r)n={r:o,g:o,b:o};else{var l=o,a=(255-r)*o/255,u=t%60*(l-a)/60;360===t&&(t=0),t<60?(n.r=l,n.b=a,n.g=a+u):t<120?(n.g=l,n.b=a,n.r=l-u):t<180?(n.g=l,n.r=a,n.b=a+u):t<240?(n.b=l,n.r=a,n.g=l-u):t<300?(n.b=l,n.g=a,n.r=a+u):t<360?(n.r=l,n.g=a,n.b=l-u):(n.r=0,n.g=0,n.b=0)}return{r:Math.round(n.r),g:Math.round(n.g),b:Math.round(n.b)}},ce=function(e){var n=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var t in n)1===n[t].length&&(n[t]="0"+n[t]);return n.join("")},se=function(e){return ce(ie(e))},fe=function(){Q(),J(),V(),G()},pe=function(){h.current&&a.DomHandler.alignOverlay(m.current,h.current.parentElement,t.appendTo||p.default.appendTo)};f.useImperativeHandle(n,(function(){return{props:t,show:W,hide:ee,focus:function(){return a.DomHandler.focus(h.current)},getElement:function(){return s.current},getOverlay:function(){return m.current},getInput:function(){return h.current}}})),f.useEffect((function(){a.ObjectUtils.combinedRefs(h,t.inputRef)}),[h,t.inputRef]),r.useMountEffect((function(){$(t.value),fe(),t.autoFocus&&a.DomHandler.focus(h.current,t.autoFocus)})),r.useUpdateEffect((function(){C.current||k.current||$(t.value)}),[t.value]),r.useUpdateEffect((function(){fe()})),r.useUnmountEffect((function(){a.ZIndexUtils.clear(m.current)}));var de=a.ObjectUtils.isNotEmpty(t.tooltip),me=E.getOtherProps(t),he=a.classNames("p-colorpicker p-component",{"p-colorpicker-overlay":!t.inline},t.className),ge=f.createElement("div",{className:"p-colorpicker-content"},f.createElement("div",{ref:g,className:"p-colorpicker-color-selector",onMouseDown:A,onTouchStart:_,onTouchMove:F,onTouchEnd:L},f.createElement("div",{className:"p-colorpicker-color"},f.createElement("div",{ref:b,className:"p-colorpicker-color-handle"}))),f.createElement("div",{ref:M,className:"p-colorpicker-hue",onMouseDown:H,onTouchStart:U,onTouchMove:F,onTouchEnd:L},f.createElement("div",{ref:v,className:"p-colorpicker-hue-handle"}))),be=function(){if(!t.inline){var e=a.classNames("p-colorpicker-preview p-inputtext",t.inputClassName,{"p-disabled":t.disabled}),n=E.getOtherProps(t);return f.createElement("input",d({ref:h,type:"text",readOnly:!0,className:e,style:t.inputStyle,id:t.inputId,tabIndex:t.tabIndex,disabled:t.disabled,onClick:ne,onKeyDown:re},n))}return null}();return f.createElement(f.Fragment,null,f.createElement("div",d({ref:s,id:t.id,style:t.style,className:he},me),be,f.createElement(O,{ref:m,appendTo:t.appendTo,inline:t.inline,disabled:t.disabled,panelStyle:t.panelStyle,panelClassName:t.panelClassName,onClick:function(e){t.inline||o.OverlayService.emit("overlay-click",{originalEvent:e,target:s.current})},in:t.inline||i,onEnter:function(){a.ZIndexUtils.set("overlay",m.current,p.default.autoZIndex,p.default.zIndex.overlay),pe()},onEntered:function(){N(),t.onShow&&t.onShow()},onExit:function(){S()},onExited:function(){a.ZIndexUtils.clear(m.current),t.onHide&&t.onHide()},transitionOptions:t.transitionOptions},ge)),de&&f.createElement(l.Tooltip,d({target:s,content:t.tooltip},t.tooltipOptions)))})));return M.displayName="ColorPicker",e.ColorPicker=M,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.hooks,primereact.overlayservice,primereact.tooltip,primereact.utils,primereact.csstransition,primereact.portal);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.colorpicker=function(e,t,n,r,o,l,i,a,u,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 t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var f=p(t),d=s(n);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function b(e){return b="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},b(e)}function g(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function h(e){var t=g(e,"string");return"symbol"===b(t)?t:String(t)}function y(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){if(Array.isArray(e))return e}function O(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,a=[],u=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function P(){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 k(e,t){return v(e)||O(e,t)||x(e,t)||P()}var M=a.ComponentBase.extend({defaultProps:{__TYPE:"ColorPicker",appendTo:null,autoFocus:!1,children:void 0,className:null,defaultColor:"ff0000",disabled:!1,format:"hex",id:null,inline:!1,inputClassName:null,inputId:null,inputRef:null,inputStyle:null,onChange:null,onHide:null,onShow:null,panelClassName:null,panelStyle:null,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,transitionOptions:null,value:null}}),S=f.forwardRef((function(e,t){var r,o,l=f.useContext(n.PrimeReactContext),a=(r=i.classNames("p-colorpicker-panel",e.panelClassName,{"p-colorpicker-overlay-panel":!e.inline,"p-disabled":e.disabled,"p-input-filled":l&&"filled"===l.inputStyle||"filled"===d.default.inputStyle,"p-ripple-disabled":l&&!1===l.ripple||!1===d.default.ripple}),o=i.mergeProps({ref:t,className:r,style:e.panelStyle,onClick:e.onClick},e.ptm("panel")),f.createElement(u.CSSTransition,{nodeRef:t,classNames:"p-connected-overlay",in:e.in,timeout:{enter:120,exit:100},options:e.transitionOptions,unmountOnExit:!0,onEnter:e.onEnter,onEntered:e.onEntered,onExit:e.onExit,onExited:e.onExited},f.createElement("div",o,e.children)));return e.inline?a:f.createElement(c.Portal,{element:a,appendTo:e.appendTo})}));function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}S.displayName="ColorPickerPanel";var j=f.memo(f.forwardRef((function(e,t){var a=f.useContext(n.PrimeReactContext),u=M.getProps(e,a),c=k(f.useState(!1),2),s=c[0],p=c[1],b=M.setMetaData({props:u,state:{overlayVisible:s}}).ptm,g=f.useRef(null),h=f.useRef(null),y=f.useRef(u.inputRef),v=f.useRef(null),O=f.useRef(null),E=f.useRef(null),x=f.useRef(null),P=f.useRef(!1),w=f.useRef(null),j=f.useRef(!1),T=k(r.useOverlayListener({target:g,overlay:h,listener:function(e,t){t.valid&&ne()},when:s}),2),N=T[0],R=T[1],D=k(r.useEventListener({type:"mousemove",listener:function(e){j.current&&K(e),P.current&&Z(e)}}),2),I=D[0],H=D[1],U=k(r.useEventListener({type:"mouseup",listener:function(){j.current=P.current=!1,i.DomHandler.removeClass(g.current,"p-colorpicker-dragging"),H(),A()}}),2),Y=U[0],A=U[1],_=function(e){u.disabled||(P.current=!0,Z(e),i.DomHandler.addClass(g.current,"p-colorpicker-dragging"))},Z=function(e){var t=x.current.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);w.current=ie({h:Math.floor(360*(150-Math.max(0,Math.min(150,(e.pageY||e.changedTouches[0].pageY)-t)))/150),s:100,b:100}),J(),W(),V()},F=function(e){u.disabled||(j.current=!0,K(e),i.DomHandler.addClass(g.current,"p-colorpicker-dragging"),e.preventDefault())},L=function(e){j.current&&(K(e),e.preventDefault()),P.current&&(Z(e),e.preventDefault())},z=function(){j.current=!1,P.current=!1,i.DomHandler.removeClass(g.current,"p-colorpicker-dragging"),X()},B=function(){I(),Y()},X=function(){H(),A()},K=function(e){var t=v.current.getBoundingClientRect(),n=t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),r=t.left+document.body.scrollLeft,o=Math.floor(100*Math.max(0,Math.min(150,(e.pageX||e.changedTouches[0].pageX)-r))/150),l=Math.floor(100*(150-Math.max(0,Math.min(150,(e.pageY||e.changedTouches[0].pageY)-n)))/150);w.current=ie({h:w.current.h,s:o,b:l}),Q(),ee(),V()},V=function(){switch(u.format){case"hex":G(fe(w.current));break;case"rgb":G(se(w.current));break;case"hsb":G(w.current)}},$=function(e){var t;if(e)switch(u.format){case"hex":t=ue(e);break;case"rgb":t=ce(e);break;case"hsb":t=e}else t=ue(u.defaultColor);return t},q=function(e){w.current=$(e)},G=function(e){u.onChange&&u.onChange({value:e,stopPropagation:function(){},preventDefault:function(){},target:{name:u.name,id:u.id,value:e}})},J=function(){if(v.current){var e=ie({h:w.current.h,s:100,b:100});v.current.style.backgroundColor="#"+fe(e)}},Q=function(){O.current&&(O.current.style.left=Math.floor(150*w.current.s/100)+"px",O.current.style.top=Math.floor(150*(100-w.current.b)/100)+"px")},W=function(){E.current&&(E.current.style.top=Math.floor(150-150*w.current.h/360)+"px")},ee=function(){y.current&&(y.current.style.backgroundColor="#"+fe(w.current))},te=function(){p(!0)},ne=function(){p(!1)},re=function(){oe()},oe=function(){s?ne():te()},le=function(e){switch(e.which){case 32:oe(),e.preventDefault();break;case 27:case 9:ne()}},ie=function(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}},ae=function(e){var t=parseInt(e.indexOf("#")>-1?e.substring(1):e,16);return{r:t>>16,g:(65280&t)>>8,b:255&t}},ue=function(e){return ce(ae(e))},ce=function(e){var t={h:0,s:0,b:0},n=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),o=r-n;return t.b=r,t.s=0!==r?255*o/r:0,t.h=0!==t.s?e.r===r?(e.g-e.b)/o:e.g===r?2+(e.b-e.r)/o:4+(e.r-e.g)/o:-1,t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t},se=function(e){var t={r:null,g:null,b:null},n=Math.round(e.h),r=Math.round(255*e.s/100),o=Math.round(255*e.b/100);if(0===r)t={r:o,g:o,b:o};else{var l=o,i=(255-r)*o/255,a=n%60*(l-i)/60;360===n&&(n=0),n<60?(t.r=l,t.b=i,t.g=i+a):n<120?(t.g=l,t.b=i,t.r=l-a):n<180?(t.g=l,t.r=i,t.b=i+a):n<240?(t.b=l,t.r=i,t.g=l-a):n<300?(t.b=l,t.g=i,t.r=i+a):n<360?(t.r=l,t.g=i,t.b=l-a):(t.r=0,t.g=0,t.b=0)}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}},pe=function(e){var t=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var n in t)1===t[n].length&&(t[n]="0"+t[n]);return t.join("")},fe=function(e){return pe(se(e))},de=function(){W(),Q(),ee(),J()},me=function(){y.current&&i.DomHandler.alignOverlay(h.current,y.current.parentElement,u.appendTo||a&&a.appendTo||d.default.appendTo)};f.useImperativeHandle(t,(function(){return{props:u,show:te,hide:ne,focus:function(){return i.DomHandler.focus(y.current)},getElement:function(){return g.current},getOverlay:function(){return h.current},getInput:function(){return y.current}}})),f.useEffect((function(){i.ObjectUtils.combinedRefs(y,u.inputRef)}),[y,u.inputRef]),r.useMountEffect((function(){q(u.value),de(),u.autoFocus&&i.DomHandler.focus(y.current,u.autoFocus)})),r.useUpdateEffect((function(){j.current||P.current||q(u.value)}),[u.value]),r.useUpdateEffect((function(){de()})),r.useUnmountEffect((function(){i.ZIndexUtils.clear(h.current)}));var be,ge,he,ye,ve,Oe,Ee,xe,Pe=i.ObjectUtils.isNotEmpty(u.tooltip),ke=i.classNames("p-colorpicker p-component",{"p-colorpicker-overlay":!u.inline},u.className),Me=(be=i.mergeProps({ref:v,className:"p-colorpicker-color-selector",onMouseDown:function(e){return t=e,void(u.disabled||(B(),F(t)));var t},onTouchStart:function(e){return F(e)},onTouchMove:function(e){return L(e)},onTouchEnd:z},b("selector")),ge=i.mergeProps({className:"p-colorpicker-color"},b("color")),he=i.mergeProps({ref:O,className:"p-colorpicker-color-handle"},b("colorHandler")),Oe=f.createElement("div",be,f.createElement("div",ge,f.createElement("div",he))),ye=i.mergeProps({ref:x,className:"p-colorpicker-hue",onMouseDown:function(e){return t=e,void(u.disabled||(B(),_(t)));var t},onTouchStart:function(e){return _(e)},onTouchMove:function(e){return L(e)},onTouchEnd:z},b("hue")),ve=i.mergeProps({ref:E,className:"p-colorpicker-hue-handle"},b("hueHandler")),Ee=f.createElement("div",ye,f.createElement("div",ve)),xe=i.mergeProps({className:"p-colorpicker-content"},b("content")),f.createElement("div",xe,Oe,Ee)),Se=function(){if(!u.inline){var e=i.classNames("p-colorpicker-preview p-inputtext",u.inputClassName,{"p-disabled":u.disabled}),t=M.getOtherProps(u),n=i.mergeProps(C({ref:y,type:"text",readOnly:!0,className:e,style:u.inputStyle,id:u.inputId,tabIndex:u.tabIndex,disabled:u.disabled,onClick:re,onKeyDown:le},t),b("input"));return f.createElement("input",n)}return null}(),we=i.mergeProps({id:u.id,ref:g,style:u.style,className:ke},M.getOtherProps(u),b("root"));return f.createElement(f.Fragment,null,f.createElement("div",we,Se,f.createElement(S,{ref:h,appendTo:u.appendTo,inline:u.inline,disabled:u.disabled,panelStyle:u.panelStyle,panelClassName:u.panelClassName,onClick:function(e){u.inline||o.OverlayService.emit("overlay-click",{originalEvent:e,target:g.current})},in:u.inline||s,onEnter:function(){i.ZIndexUtils.set("overlay",h.current,a&&a.autoZIndex||d.default.autoZIndex,a&&a.zIndex.overlay||d.default.zIndex.overlay),me()},onEntered:function(){N(),u.onShow&&u.onShow()},onExit:function(){R()},onExited:function(){i.ZIndexUtils.clear(h.current),u.onHide&&u.onHide()},transitionOptions:u.transitionOptions,ptm:b},Me)),Pe&&f.createElement(l.Tooltip,m({target:g,content:u.tooltip},u.tooltipOptions,{pt:b("tooltip")})))})));return j.displayName="ColorPicker",e.ColorPicker=j,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.hooks,primereact.overlayservice,primereact.tooltip,primereact.utils,primereact.componentbase,primereact.csstransition,primereact.portal);
|
package/column/column.cjs.js
CHANGED
package/column/column.d.ts
CHANGED
|
@@ -10,7 +10,299 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import * as React from 'react';
|
|
12
12
|
import { TooltipOptions } from '../tooltip/tooltipoptions';
|
|
13
|
-
import { IconType } from '../utils/utils';
|
|
13
|
+
import { IconType, PassThroughType } from '../utils/utils';
|
|
14
|
+
import { DataTablePassThroughOptions } from '../datatable/datatable';
|
|
15
|
+
import { DropdownPassThroughOptions } from '../dropdown/dropdown';
|
|
16
|
+
import { ButtonPassThroughOptions } from '../button/button';
|
|
17
|
+
|
|
18
|
+
export declare type ColumnPassThroughType<T> = PassThroughType<T, ColumnPassThroughMethodOptions>;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Custom passthrough(pt) option method.
|
|
22
|
+
*/
|
|
23
|
+
export interface ColumnPassThroughMethodOptions {
|
|
24
|
+
props: ColumnProps;
|
|
25
|
+
state: ColumnState;
|
|
26
|
+
context: ColumnContext;
|
|
27
|
+
parent: DataTablePassThroughOptions;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Defines current options in Column component.
|
|
32
|
+
*/
|
|
33
|
+
export interface ColumnContext {
|
|
34
|
+
/**
|
|
35
|
+
* Current checked state of row as a boolean.
|
|
36
|
+
* @defaultValue false
|
|
37
|
+
*/
|
|
38
|
+
checked: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Current disabled state of row as a boolean.
|
|
41
|
+
* @defaultValue false
|
|
42
|
+
*/
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Defines current inline state in Column component.
|
|
48
|
+
*/
|
|
49
|
+
export interface ColumnState {
|
|
50
|
+
/**
|
|
51
|
+
* Current editing state of the body cell.
|
|
52
|
+
*/
|
|
53
|
+
editing: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Current editing row data of the body cell.
|
|
56
|
+
*/
|
|
57
|
+
editingRowData: any;
|
|
58
|
+
/**
|
|
59
|
+
* Current style of the body cell.
|
|
60
|
+
*/
|
|
61
|
+
styleObject: object;
|
|
62
|
+
/**
|
|
63
|
+
* Current focused state as a boolean.
|
|
64
|
+
* @defaultValue false
|
|
65
|
+
*/
|
|
66
|
+
focused: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Current style of the rowgroup header.
|
|
69
|
+
*/
|
|
70
|
+
rowGroupHeaderStyleObject: object;
|
|
71
|
+
/**
|
|
72
|
+
* Current sortable disabled fields of the table header.
|
|
73
|
+
*/
|
|
74
|
+
sortableDisabledFields: any[];
|
|
75
|
+
/**
|
|
76
|
+
* Current style of the table header.
|
|
77
|
+
* @defaultValue false
|
|
78
|
+
*/
|
|
79
|
+
allSortableDisabled: boolean;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Custom passthrough(pt) options.
|
|
84
|
+
* @see {@link ColumnProps.pt}
|
|
85
|
+
*/
|
|
86
|
+
export interface ColumnPassThroughOptions {
|
|
87
|
+
/**
|
|
88
|
+
* Uses to pass attributes to the root's DOM element.
|
|
89
|
+
*/
|
|
90
|
+
root?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
91
|
+
/**
|
|
92
|
+
* Uses to pass attributes to the header cell's DOM element.
|
|
93
|
+
*/
|
|
94
|
+
headerCell?: ColumnPassThroughType<React.HTMLAttributes<HTMLTableCellElement>>;
|
|
95
|
+
/**
|
|
96
|
+
* Uses to pass attributes to the column resizer's DOM element.
|
|
97
|
+
*/
|
|
98
|
+
columnResizer?: ColumnPassThroughType<React.HTMLAttributes<HTMLSpanElement>>;
|
|
99
|
+
/**
|
|
100
|
+
* Uses to pass attributes to the header content's DOM element.
|
|
101
|
+
*/
|
|
102
|
+
headerContent?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
103
|
+
/**
|
|
104
|
+
* Uses to pass attributes to the header title's DOM element.
|
|
105
|
+
*/
|
|
106
|
+
headerTitle?: ColumnPassThroughType<React.HTMLAttributes<HTMLSpanElement>>;
|
|
107
|
+
/**
|
|
108
|
+
* Uses to pass attributes to the sort's DOM element.
|
|
109
|
+
*/
|
|
110
|
+
sort?: ColumnPassThroughType<React.HTMLAttributes<HTMLSpanElement>>;
|
|
111
|
+
/**
|
|
112
|
+
* Uses to pass attributes to the sort's DOM element.
|
|
113
|
+
*/
|
|
114
|
+
sortIcon?: ColumnPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
115
|
+
/**
|
|
116
|
+
* Uses to pass attributes to the sort badge's DOM element.
|
|
117
|
+
*/
|
|
118
|
+
sortBadge?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
119
|
+
/**
|
|
120
|
+
* Uses to pass attributes to the checkbox wrapper's DOM element.
|
|
121
|
+
*/
|
|
122
|
+
headerCheckboxWrapper?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
123
|
+
/**
|
|
124
|
+
* Uses to pass attributes to the header checkbox's DOM element.
|
|
125
|
+
*/
|
|
126
|
+
headerCheckbox?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
127
|
+
/**
|
|
128
|
+
* Uses to pass attributes to the header checkbox icon's DOM element.
|
|
129
|
+
*/
|
|
130
|
+
headerCheckboxIcon?: ColumnPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
131
|
+
/**
|
|
132
|
+
* Uses to pass attributes to the column filter's DOM element.
|
|
133
|
+
*/
|
|
134
|
+
columnFilter?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
135
|
+
/**
|
|
136
|
+
* Uses to pass attributes to the filter input's DOM element.
|
|
137
|
+
*/
|
|
138
|
+
filterInput?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
139
|
+
/**
|
|
140
|
+
* Uses to pass attributes to the filter menu button's DOM element.
|
|
141
|
+
*/
|
|
142
|
+
filterMenuButton?: ColumnPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
143
|
+
/**
|
|
144
|
+
* Uses to pass attributes to the header filter clear button's DOM element.
|
|
145
|
+
*/
|
|
146
|
+
headerFilterClearButton?: ColumnPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
147
|
+
/**
|
|
148
|
+
* Uses to pass attributes to the filter clear icon's DOM element.
|
|
149
|
+
*/
|
|
150
|
+
filterClearIcon?: ColumnPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
151
|
+
/**
|
|
152
|
+
* Uses to pass attributes to the filter overlay's DOM element.
|
|
153
|
+
*/
|
|
154
|
+
filterOverlay?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
155
|
+
/**
|
|
156
|
+
* Uses to pass attributes to the filter row items' DOM element.
|
|
157
|
+
*/
|
|
158
|
+
filterRowItems?: ColumnPassThroughType<React.HTMLAttributes<HTMLUListElement>>;
|
|
159
|
+
/**
|
|
160
|
+
* Uses to pass attributes to the filter row item's DOM element.
|
|
161
|
+
*/
|
|
162
|
+
filterRowItem?: ColumnPassThroughType<React.HTMLAttributes<HTMLLIElement>>;
|
|
163
|
+
/**
|
|
164
|
+
* Uses to pass attributes to the filter separator's DOM element.
|
|
165
|
+
*/
|
|
166
|
+
filterSeparator?: ColumnPassThroughType<React.HTMLAttributes<HTMLLIElement>>;
|
|
167
|
+
/**
|
|
168
|
+
* Uses to pass attributes to the filter operator's DOM element.
|
|
169
|
+
*/
|
|
170
|
+
filterOperator?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
171
|
+
/**
|
|
172
|
+
* Uses to pass attributes to the Dropdown component.
|
|
173
|
+
* @see {@link DropdownPassThroughOptions}
|
|
174
|
+
*/
|
|
175
|
+
filterOperatorDropdown?: DropdownPassThroughOptions;
|
|
176
|
+
/**
|
|
177
|
+
* Uses to pass attributes to the filter constraints' DOM element.
|
|
178
|
+
*/
|
|
179
|
+
filterConstraints?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
180
|
+
/**
|
|
181
|
+
* Uses to pass attributes to the filter constraint's DOM element.
|
|
182
|
+
*/
|
|
183
|
+
filterConstraint?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
184
|
+
/**
|
|
185
|
+
* Uses to pass attributes to the Dropdown component.
|
|
186
|
+
* @see {@link DropdownPassThroughOptions}
|
|
187
|
+
*/
|
|
188
|
+
filterMatchModeDropdown?: DropdownPassThroughOptions;
|
|
189
|
+
/**
|
|
190
|
+
* Uses to pass attributes to the filter remove button container's DOM element.
|
|
191
|
+
*/
|
|
192
|
+
filterRemove?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
193
|
+
/**
|
|
194
|
+
* Uses to pass attributes to the Button component.
|
|
195
|
+
* @see {@link DropdownPassThroughOptions}
|
|
196
|
+
*/
|
|
197
|
+
filterRemoveButton?: DropdownPassThroughOptions;
|
|
198
|
+
/**
|
|
199
|
+
* Uses to pass attributes to the filter add rule's DOM element.
|
|
200
|
+
*/
|
|
201
|
+
filterAddRule?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
202
|
+
/**
|
|
203
|
+
* Uses to pass attributes to the Button component.
|
|
204
|
+
* @see {@link DropdownPassThroughOptions}
|
|
205
|
+
*/
|
|
206
|
+
filterAddRuleButton?: DropdownPassThroughOptions;
|
|
207
|
+
/**
|
|
208
|
+
* Uses to pass attributes to the filter buttonbar's DOM element.
|
|
209
|
+
*/
|
|
210
|
+
filterButtonbar?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
211
|
+
/**
|
|
212
|
+
* Uses to pass attributes to the Button component.
|
|
213
|
+
* @see {@link ButtonPassThroughOptions}
|
|
214
|
+
*/
|
|
215
|
+
filterClearButton?: ButtonPassThroughOptions;
|
|
216
|
+
/**
|
|
217
|
+
* Uses to pass attributes to the Button component.
|
|
218
|
+
* @see {@link ButtonPassThroughOptions}
|
|
219
|
+
*/
|
|
220
|
+
filterApplyButton?: ButtonPassThroughOptions;
|
|
221
|
+
/**
|
|
222
|
+
* Uses to pass attributes to the body cell's DOM element.
|
|
223
|
+
*/
|
|
224
|
+
bodyCell?: ColumnPassThroughType<React.HTMLAttributes<HTMLTableCellElement>>;
|
|
225
|
+
/**
|
|
226
|
+
* Uses to pass attributes to the rowgroup toggler's DOM element.
|
|
227
|
+
*/
|
|
228
|
+
rowGroupToggler?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
229
|
+
/**
|
|
230
|
+
* Uses to pass attributes to the rowgroup toggler icon's DOM element.
|
|
231
|
+
*/
|
|
232
|
+
rowGroupTogglerIcon?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
233
|
+
/**
|
|
234
|
+
* Uses to pass attributes to the column title's DOM element.
|
|
235
|
+
*/
|
|
236
|
+
columnTitle?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
237
|
+
/**
|
|
238
|
+
* Uses to pass attributes to the radiobutton wrapper's DOM element.
|
|
239
|
+
*/
|
|
240
|
+
radiobuttonWrapper?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
241
|
+
/**
|
|
242
|
+
* Uses to pass attributes to the radiobutton's DOM element.
|
|
243
|
+
*/
|
|
244
|
+
radiobutton?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
245
|
+
/**
|
|
246
|
+
* Uses to pass attributes to the radiobutton icon's DOM element.
|
|
247
|
+
*/
|
|
248
|
+
radiobuttonIcon?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
249
|
+
/**
|
|
250
|
+
* Uses to pass attributes to the checkbox wrapper's DOM element.
|
|
251
|
+
*/
|
|
252
|
+
checkboxWrapper?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
253
|
+
/**
|
|
254
|
+
* Uses to pass attributes to the checkbox's DOM element.
|
|
255
|
+
*/
|
|
256
|
+
checkbox?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
257
|
+
/**
|
|
258
|
+
* Uses to pass attributes to the checkbox icon's DOM element.
|
|
259
|
+
*/
|
|
260
|
+
checkboxIcon?: ColumnPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
261
|
+
/**
|
|
262
|
+
* Uses to pass attributes to the rowtoggler's DOM element.
|
|
263
|
+
*/
|
|
264
|
+
rowToggler?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
265
|
+
/**
|
|
266
|
+
* Uses to pass attributes to the rowtoggler icon's DOM element.
|
|
267
|
+
*/
|
|
268
|
+
rowTogglerIcon?: ColumnPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
269
|
+
/**
|
|
270
|
+
* Uses to pass attributes to the row editor init button's DOM element.
|
|
271
|
+
*/
|
|
272
|
+
rowEditorInitButton?: ColumnPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
273
|
+
/**
|
|
274
|
+
* Uses to pass attributes to the row editor init icon's DOM element.
|
|
275
|
+
*/
|
|
276
|
+
rowEditorInitIcon?: ColumnPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
277
|
+
/**
|
|
278
|
+
* Uses to pass attributes to the row editor edit button's DOM element.
|
|
279
|
+
*/
|
|
280
|
+
rowEditorEditButton?: ColumnPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
281
|
+
/**
|
|
282
|
+
* Uses to pass attributes to the row editor edit icon's DOM element.
|
|
283
|
+
*/
|
|
284
|
+
rowEditorEditIcon?: ColumnPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
285
|
+
/**
|
|
286
|
+
* Uses to pass attributes to the row editor cancel button's DOM element.
|
|
287
|
+
*/
|
|
288
|
+
rowEditorCancelButton?: ColumnPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
|
|
289
|
+
/**
|
|
290
|
+
* Uses to pass attributes to the row editor cancel icon's DOM element.
|
|
291
|
+
*/
|
|
292
|
+
rowEditorCancelIcon?: ColumnPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
293
|
+
/**
|
|
294
|
+
* Uses to pass attributes to the hidden input wrapper's DOM element.
|
|
295
|
+
*/
|
|
296
|
+
hiddenHeaderInputWrapper?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
297
|
+
/**
|
|
298
|
+
* Uses to pass attributes to the hidden input wrapper's DOM element.
|
|
299
|
+
*/
|
|
300
|
+
hiddenInputWrapper?: ColumnPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
301
|
+
/**
|
|
302
|
+
* Uses to pass attributes to the hidden input's DOM element.
|
|
303
|
+
*/
|
|
304
|
+
hiddenInput?: ColumnPassThroughType<React.HTMLAttributes<HTMLInputElement>>;
|
|
305
|
+
}
|
|
14
306
|
|
|
15
307
|
interface ColumnHeaderOptions {
|
|
16
308
|
/**
|
|
@@ -507,6 +799,11 @@ export interface ColumnProps {
|
|
|
507
799
|
* @readonly
|
|
508
800
|
*/
|
|
509
801
|
children?: React.ReactNode | undefined;
|
|
802
|
+
/**
|
|
803
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
804
|
+
* @type {ColumnPassThroughOptions}
|
|
805
|
+
*/
|
|
806
|
+
pt?: ColumnPassThroughOptions;
|
|
510
807
|
/**
|
|
511
808
|
* Style class of the component.
|
|
512
809
|
*/
|
package/column/column.esm.js
CHANGED
package/column/column.js
CHANGED
|
@@ -9,6 +9,29 @@
|
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
11
|
import * as React from 'react';
|
|
12
|
+
import { DataTablePassThroughOptions } from '../datatable/datatable';
|
|
13
|
+
import { PassThroughType } from '../utils/utils';
|
|
14
|
+
|
|
15
|
+
export declare type ColumnGroupPassThroughType<T> = PassThroughType<T, ColumnGroupPassThroughMethodOptions>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Custom passthrough(pt) option method.
|
|
19
|
+
*/
|
|
20
|
+
export interface ColumnGroupPassThroughMethodOptions {
|
|
21
|
+
props: ColumnGroupProps;
|
|
22
|
+
parent: DataTablePassThroughOptions;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Custom passthrough(pt) options.
|
|
27
|
+
* @see {@link ColumnGroupProps.pt}
|
|
28
|
+
*/
|
|
29
|
+
export interface ColumnGroupPassThroughOptions {
|
|
30
|
+
/**
|
|
31
|
+
* Uses to pass attributes to the root's DOM element.
|
|
32
|
+
*/
|
|
33
|
+
root?: ColumnGroupPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
34
|
+
}
|
|
12
35
|
|
|
13
36
|
/**
|
|
14
37
|
* Defines valid properties in ColumnGroup component.
|
|
@@ -21,6 +44,11 @@ export interface ColumnGroupProps {
|
|
|
21
44
|
* @readonly
|
|
22
45
|
*/
|
|
23
46
|
children?: React.ReactNode | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
49
|
+
* @type {ColumnGroupPassThroughOptions}
|
|
50
|
+
*/
|
|
51
|
+
pt?: ColumnGroupPassThroughOptions;
|
|
24
52
|
}
|
|
25
53
|
|
|
26
54
|
/**
|
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var PrimeReact = require('primereact/api');
|
|
5
6
|
var utils = require('primereact/utils');
|
|
6
7
|
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
11
|
+
|
|
7
12
|
function _typeof(obj) {
|
|
8
13
|
"@babel/helpers - typeof";
|
|
9
14
|
|
|
@@ -51,28 +56,47 @@ var ComponentBase = {
|
|
|
51
56
|
defaultProps: {
|
|
52
57
|
pt: undefined
|
|
53
58
|
},
|
|
59
|
+
context: undefined,
|
|
54
60
|
extend: function extend() {
|
|
55
61
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
56
62
|
var defaultProps = _objectSpread(_objectSpread({}, props.defaultProps), ComponentBase.defaultProps);
|
|
57
63
|
var getProps = function getProps(props) {
|
|
64
|
+
var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
65
|
+
ComponentBase.context = context;
|
|
58
66
|
return utils.ObjectUtils.getMergedProps(props, defaultProps);
|
|
59
67
|
};
|
|
60
68
|
var getOtherProps = function getOtherProps(props) {
|
|
61
69
|
return utils.ObjectUtils.getDiffProps(props, defaultProps);
|
|
62
70
|
};
|
|
63
|
-
var
|
|
71
|
+
var getOptionValue = function getOptionValue() {
|
|
64
72
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
65
73
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
66
|
-
var
|
|
67
|
-
|
|
74
|
+
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
75
|
+
var fKeys = String(utils.ObjectUtils.convertToFlatCase(key)).split('.');
|
|
76
|
+
var fKey = fKeys.shift();
|
|
77
|
+
var matchedPTOption = Object.keys(obj).find(function (k) {
|
|
68
78
|
return utils.ObjectUtils.convertToFlatCase(k) === fKey;
|
|
69
|
-
}) || ''
|
|
79
|
+
}) || '';
|
|
80
|
+
return fKey ? utils.ObjectUtils.isObject(obj) ? getOptionValue(utils.ObjectUtils.getJSXElement(obj[matchedPTOption], params), fKeys.join('.'), params) : undefined : utils.ObjectUtils.getJSXElement(obj, params);
|
|
70
81
|
};
|
|
71
82
|
var getPTValue = function getPTValue() {
|
|
72
83
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
73
84
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
74
85
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
75
|
-
|
|
86
|
+
var datasetPrefix = 'data-pc-';
|
|
87
|
+
var componentName = params.props && params.props.__TYPE && utils.ObjectUtils.convertToFlatCase(params.props.__TYPE) || '';
|
|
88
|
+
var pt = ComponentBase.context.pt || PrimeReact__default["default"].pt || {};
|
|
89
|
+
var defaultPT = function defaultPT(key) {
|
|
90
|
+
return pt && getOptionValue(pt[componentName], key);
|
|
91
|
+
};
|
|
92
|
+
var self = utils.ObjectUtils.getPropValue(obj, key, params)[key];
|
|
93
|
+
var globalPT = defaultPT(key);
|
|
94
|
+
var datasetProps = _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), componentName)), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), utils.ObjectUtils.convertToFlatCase(key)));
|
|
95
|
+
var merged = _objectSpread({}, utils.ObjectUtils.getMergedProps(globalPT, self));
|
|
96
|
+
if (Object.keys(datasetProps).length) {
|
|
97
|
+
merged = _objectSpread(_objectSpread({}, merged), datasetProps);
|
|
98
|
+
}
|
|
99
|
+
return merged;
|
|
76
100
|
};
|
|
77
101
|
var setMetaData = function setMetaData() {
|
|
78
102
|
var metadata = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("primereact/utils");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("primereact/api"),e=require("primereact/utils");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=r(t);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function c(t){var e=i(t,"string");return"symbol"===o(e)?e:String(e)}function u(t,e,r){return(e=c(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var p={defaultProps:{pt:void 0},context:void 0,extend:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=s(s({},t.defaultProps),p.defaultProps),o=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=String(e.ObjectUtils.convertToFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")).split("."),i=o.shift(),c=Object.keys(r).find((function(t){return e.ObjectUtils.convertToFlatCase(t)===i}))||"";return i?e.ObjectUtils.isObject(r)?t(e.ObjectUtils.getJSXElement(r[c],n),o.join("."),n):void 0:e.ObjectUtils.getJSXElement(r,n)},i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c="data-pc-",l=i.props&&i.props.__TYPE&&e.ObjectUtils.convertToFlatCase(i.props.__TYPE)||"",a=p.context.pt||n.default.pt||{},f=e.ObjectUtils.getPropValue(t,r,i)[r],b=function(t){return a&&o(a[l],t)}(r),v=s(s({},"root"===r&&u({},"".concat(c,"name"),l)),{},u({},"".concat(c,"section"),e.ObjectUtils.convertToFlatCase(r))),g=s({},e.ObjectUtils.getMergedProps(b,f));return Object.keys(v).length&&(g=s(s({},g),v)),g};return s(s({getProps:function(t){return p.context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e.ObjectUtils.getMergedProps(t,r)},getOtherProps:function(t){return e.ObjectUtils.getDiffProps(t,r)},setMetaData:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function(){return i(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})};return{ptm:function(){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e((t.props||{}).pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s(s({},t),r))},ptmo:e}}},t),{},{defaultProps:r})}};exports.ComponentBase=p;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import PrimeReact from 'primereact/api';
|
|
1
2
|
import { ObjectUtils } from 'primereact/utils';
|
|
2
3
|
|
|
3
4
|
function _typeof(obj) {
|
|
@@ -47,28 +48,47 @@ var ComponentBase = {
|
|
|
47
48
|
defaultProps: {
|
|
48
49
|
pt: undefined
|
|
49
50
|
},
|
|
51
|
+
context: undefined,
|
|
50
52
|
extend: function extend() {
|
|
51
53
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
52
54
|
var defaultProps = _objectSpread(_objectSpread({}, props.defaultProps), ComponentBase.defaultProps);
|
|
53
55
|
var getProps = function getProps(props) {
|
|
56
|
+
var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
57
|
+
ComponentBase.context = context;
|
|
54
58
|
return ObjectUtils.getMergedProps(props, defaultProps);
|
|
55
59
|
};
|
|
56
60
|
var getOtherProps = function getOtherProps(props) {
|
|
57
61
|
return ObjectUtils.getDiffProps(props, defaultProps);
|
|
58
62
|
};
|
|
59
|
-
var
|
|
63
|
+
var getOptionValue = function getOptionValue() {
|
|
60
64
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
61
65
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
62
|
-
var
|
|
63
|
-
|
|
66
|
+
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
67
|
+
var fKeys = String(ObjectUtils.convertToFlatCase(key)).split('.');
|
|
68
|
+
var fKey = fKeys.shift();
|
|
69
|
+
var matchedPTOption = Object.keys(obj).find(function (k) {
|
|
64
70
|
return ObjectUtils.convertToFlatCase(k) === fKey;
|
|
65
|
-
}) || ''
|
|
71
|
+
}) || '';
|
|
72
|
+
return fKey ? ObjectUtils.isObject(obj) ? getOptionValue(ObjectUtils.getJSXElement(obj[matchedPTOption], params), fKeys.join('.'), params) : undefined : ObjectUtils.getJSXElement(obj, params);
|
|
66
73
|
};
|
|
67
74
|
var getPTValue = function getPTValue() {
|
|
68
75
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
69
76
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
70
77
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
71
|
-
|
|
78
|
+
var datasetPrefix = 'data-pc-';
|
|
79
|
+
var componentName = params.props && params.props.__TYPE && ObjectUtils.convertToFlatCase(params.props.__TYPE) || '';
|
|
80
|
+
var pt = ComponentBase.context.pt || PrimeReact.pt || {};
|
|
81
|
+
var defaultPT = function defaultPT(key) {
|
|
82
|
+
return pt && getOptionValue(pt[componentName], key);
|
|
83
|
+
};
|
|
84
|
+
var self = ObjectUtils.getPropValue(obj, key, params)[key];
|
|
85
|
+
var globalPT = defaultPT(key);
|
|
86
|
+
var datasetProps = _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), componentName)), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), ObjectUtils.convertToFlatCase(key)));
|
|
87
|
+
var merged = _objectSpread({}, ObjectUtils.getMergedProps(globalPT, self));
|
|
88
|
+
if (Object.keys(datasetProps).length) {
|
|
89
|
+
merged = _objectSpread(_objectSpread({}, merged), datasetProps);
|
|
90
|
+
}
|
|
91
|
+
return merged;
|
|
72
92
|
};
|
|
73
93
|
var setMetaData = function setMetaData() {
|
|
74
94
|
var metadata = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ObjectUtils as
|
|
1
|
+
import t from"primereact/api";import{ObjectUtils as e}from"primereact/utils";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function o(t){var e=n(t,"string");return"symbol"===r(e)?e:String(e)}function i(t,e,r){return(e=o(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var p={defaultProps:{pt:void 0},context:void 0,extend:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=u(u({},r.defaultProps),p.defaultProps),o=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=String(e.convertToFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")).split("."),i=o.shift(),c=Object.keys(r).find((function(t){return e.convertToFlatCase(t)===i}))||"";return i?e.isObject(r)?t(e.getJSXElement(r[c],n),o.join("."),n):void 0:e.getJSXElement(r,n)},c=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l="data-pc-",f=c.props&&c.props.__TYPE&&e.convertToFlatCase(c.props.__TYPE)||"",a=p.context.pt||t.pt||{},s=e.getPropValue(r,n,c)[n],v=function(t){return a&&o(a[f],t)}(n),g=u(u({},"root"===n&&i({},"".concat(l,"name"),f)),{},i({},"".concat(l,"section"),e.convertToFlatCase(n))),b=u({},e.getMergedProps(v,s));return Object.keys(g).length&&(b=u(u({},b),g)),b};return u(u({getProps:function(t){return p.context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e.getMergedProps(t,n)},getOtherProps:function(t){return e.getDiffProps(t,n)},setMetaData:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function(){return c(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})};return{ptm:function(){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e((t.props||{}).pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",u(u({},t),r))},ptmo:e}}},r),{},{defaultProps:n})}};export{p as ComponentBase};
|