primereact 10.9.3 → 10.9.5
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 +43 -55
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +2 -2
- package/accordion/accordion.esm.js +43 -55
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +43 -55
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +44 -59
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +44 -59
- package/api/api.esm.min.js +1 -1
- package/api/api.js +44 -59
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +56 -56
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +27 -25
- package/autocomplete/autocomplete.esm.js +57 -57
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +56 -56
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +37 -49
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +2 -2
- package/avatar/avatar.esm.js +37 -49
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +37 -49
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.d.ts +2 -2
- package/badge/badge.cjs.js +17 -23
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.d.ts +2 -2
- package/badge/badge.esm.js +17 -23
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +17 -23
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +37 -49
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.d.ts +2 -2
- package/blockui/blockui.esm.js +37 -49
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +37 -49
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +39 -50
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +2 -2
- package/breadcrumb/breadcrumb.esm.js +39 -50
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +39 -50
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +23 -34
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +23 -34
- package/button/button.esm.min.js +1 -1
- package/button/button.js +23 -34
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +56 -60
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +6 -6
- package/calendar/calendar.esm.js +57 -61
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +56 -60
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +43 -55
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +2 -2
- package/carousel/carousel.esm.js +43 -55
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +43 -55
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +49 -54
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +17 -8
- package/cascadeselect/cascadeselect.esm.js +49 -54
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +49 -54
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.d.ts +2 -2
- package/checkbox/checkbox.cjs.js +38 -50
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +4 -4
- package/checkbox/checkbox.esm.js +38 -50
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +38 -50
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +52 -51
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +2 -2
- package/chip/chip.esm.js +54 -53
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +52 -51
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +44 -56
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +2 -2
- package/chips/chips.esm.js +44 -56
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +44 -56
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +47 -51
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +6 -6
- package/colorpicker/colorpicker.esm.js +47 -51
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +47 -51
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +33 -40
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +33 -40
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +33 -40
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +37 -49
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +37 -49
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +37 -49
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +47 -51
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +47 -51
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +47 -51
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +37 -49
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +2 -2
- package/contextmenu/contextmenu.esm.js +37 -49
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +37 -49
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1151 -1449
- package/core/core.min.js +65 -65
- package/csstransition/csstransition.cjs.js +17 -23
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +17 -23
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +17 -23
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +26 -32
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +2 -2
- package/datascroller/datascroller.esm.js +26 -32
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +26 -32
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +411 -358
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +6 -5
- package/datatable/datatable.esm.js +412 -359
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +411 -358
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +46 -58
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +2 -2
- package/dataview/dataview.esm.js +46 -58
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +46 -58
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +14 -15
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.d.ts +2 -2
- package/deferredcontent/deferredcontent.esm.js +14 -15
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +14 -15
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +43 -55
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +12 -12
- package/dialog/dialog.esm.js +43 -55
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +43 -55
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.d.ts +2 -2
- package/dock/dock.cjs.js +43 -55
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +2 -2
- package/dock/dock.esm.js +43 -55
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +43 -55
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +53 -57
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +14 -10
- package/dropdown/dropdown.esm.js +53 -57
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +53 -57
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +37 -49
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +6 -6
- package/editor/editor.esm.js +37 -49
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +37 -49
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +20 -26
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.d.ts +4 -4
- package/fieldset/fieldset.esm.js +20 -26
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +20 -26
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +48 -60
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +4 -4
- package/fileupload/fileupload.esm.js +48 -60
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +48 -60
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/focustrap.cjs.js +17 -23
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +17 -23
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +17 -23
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/galleria.cjs.js +43 -55
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +2 -2
- package/galleria/galleria.esm.js +43 -55
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +43 -55
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +53 -50
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +53 -50
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +53 -50
- package/hooks/hooks.min.js +1 -1
- package/iconfield/iconfield.cjs.js +23 -34
- package/iconfield/iconfield.cjs.min.js +1 -1
- package/iconfield/iconfield.esm.js +23 -34
- package/iconfield/iconfield.esm.min.js +1 -1
- package/iconfield/iconfield.js +23 -34
- package/iconfield/iconfield.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +6 -11
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +6 -11
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +6 -11
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +6 -11
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +6 -11
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +6 -11
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +6 -11
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +6 -11
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +6 -11
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +6 -11
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +6 -11
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +6 -11
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +6 -11
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +6 -11
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +6 -11
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +6 -11
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +6 -11
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +6 -11
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +6 -11
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +6 -11
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +6 -11
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +6 -11
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +6 -11
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +6 -11
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +6 -11
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +6 -11
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +6 -11
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +6 -11
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +6 -11
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +6 -11
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +6 -11
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +6 -11
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +6 -11
- package/icons/ban/index.min.js +1 -1
- package/icons/bars/index.cjs.js +6 -11
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +6 -11
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +6 -11
- package/icons/bars/index.min.js +1 -1
- package/icons/blank/index.cjs.js +6 -11
- package/icons/blank/index.cjs.min.js +1 -1
- package/icons/blank/index.esm.js +6 -11
- package/icons/blank/index.esm.min.js +1 -1
- package/icons/blank/index.js +6 -11
- package/icons/blank/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +6 -11
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +6 -11
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +6 -11
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +6 -11
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +6 -11
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +6 -11
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +6 -11
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +6 -11
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +6 -11
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +6 -11
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +6 -11
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +6 -11
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +6 -11
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +6 -11
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +6 -11
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +6 -11
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +6 -11
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +6 -11
- package/icons/chevronup/index.min.js +1 -1
- package/icons/download/index.cjs.js +6 -11
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +6 -11
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +6 -11
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +6 -11
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +6 -11
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +6 -11
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eye/index.cjs.js +6 -11
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +6 -11
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +6 -11
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +6 -11
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +6 -11
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +6 -11
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +6 -11
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +6 -11
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +6 -11
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +6 -11
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +6 -11
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +6 -11
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +6 -11
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +6 -11
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +6 -11
- package/icons/infocircle/index.min.js +1 -1
- package/icons/minus/index.cjs.js +6 -11
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +6 -11
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +6 -11
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +6 -11
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +6 -11
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +6 -11
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +6 -11
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +6 -11
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +6 -11
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +6 -11
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +6 -11
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +6 -11
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +6 -11
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +6 -11
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +6 -11
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +6 -11
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +6 -11
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +6 -11
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +6 -11
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +6 -11
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +6 -11
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +6 -11
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +6 -11
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +6 -11
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +6 -11
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +6 -11
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +6 -11
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +6 -11
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +6 -11
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +6 -11
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +6 -11
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +6 -11
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +6 -11
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +6 -11
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +6 -11
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +6 -11
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +6 -11
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +6 -11
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +6 -11
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +6 -11
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +6 -11
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +6 -11
- package/icons/thlarge/index.min.js +1 -1
- package/icons/times/index.cjs.js +6 -11
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +6 -11
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +6 -11
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +6 -11
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +6 -11
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +6 -11
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +6 -11
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +6 -11
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +6 -11
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +6 -11
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +6 -11
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +6 -11
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +6 -11
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +6 -11
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +6 -11
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +6 -11
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +6 -11
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +6 -11
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +6 -11
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +6 -11
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +6 -11
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +37 -49
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +4 -4
- package/image/image.esm.js +37 -49
- package/image/image.esm.min.js +1 -1
- package/image/image.js +37 -49
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +14 -15
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.d.ts +2 -2
- package/inplace/inplace.esm.js +14 -15
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +14 -15
- package/inplace/inplace.min.js +1 -1
- package/inputicon/inputicon.cjs.js +23 -34
- package/inputicon/inputicon.cjs.min.js +1 -1
- package/inputicon/inputicon.esm.js +23 -34
- package/inputicon/inputicon.esm.min.js +1 -1
- package/inputicon/inputicon.js +23 -34
- package/inputicon/inputicon.min.js +1 -1
- package/inputmask/inputmask.cjs.js +7 -12
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +2 -2
- package/inputmask/inputmask.esm.js +7 -12
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +7 -12
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +49 -58
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +4 -4
- package/inputnumber/inputnumber.esm.js +49 -58
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +49 -58
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +65 -56
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +65 -56
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +65 -56
- package/inputotp/inputotp.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +23 -34
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +4 -4
- package/inputswitch/inputswitch.esm.js +23 -34
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +23 -34
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +25 -35
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -1
- package/inputtext/inputtext.esm.js +25 -35
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +25 -35
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +23 -34
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +23 -34
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +23 -34
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +16 -17
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +16 -17
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +16 -17
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +15 -16
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +2 -2
- package/knob/knob.esm.js +15 -16
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +15 -16
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +46 -58
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +4 -4
- package/listbox/listbox.esm.js +46 -58
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +46 -58
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +37 -49
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +2 -2
- package/megamenu/megamenu.esm.js +37 -49
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +37 -49
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +61 -64
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +11 -6
- package/mention/mention.esm.js +61 -64
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +61 -64
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +57 -58
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +2 -2
- package/menu/menu.esm.js +58 -59
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +57 -58
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +43 -58
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +8 -8
- package/menubar/menubar.esm.js +43 -58
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +43 -58
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +23 -34
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +2 -2
- package/message/message.esm.js +23 -34
- package/message/message.esm.min.js +1 -1
- package/message/message.js +23 -34
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +43 -55
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +2 -2
- package/messages/messages.esm.js +43 -55
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +43 -55
- package/messages/messages.min.js +1 -1
- package/metergroup/metergroup.cjs.js +23 -34
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.esm.js +23 -34
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +23 -34
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/multiselect.cjs.js +70 -82
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +6 -6
- package/multiselect/multiselect.esm.js +70 -82
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +70 -82
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +38 -50
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +2 -2
- package/multistatecheckbox/multistatecheckbox.esm.js +38 -50
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +38 -50
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +77 -58
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +2 -2
- package/orderlist/orderlist.esm.js +77 -58
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +77 -58
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +43 -55
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +2 -2
- package/organizationchart/organizationchart.esm.js +43 -55
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +43 -55
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +46 -59
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +2 -2
- package/overlaypanel/overlaypanel.esm.js +46 -59
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +46 -59
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +41 -56
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +2 -2
- package/paginator/paginator.esm.js +41 -56
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +41 -56
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +20 -26
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +4 -4
- package/panel/panel.esm.js +20 -26
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +20 -26
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +37 -49
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +2 -2
- package/panelmenu/panelmenu.esm.js +37 -49
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +37 -49
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +17 -23
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.esm.js +17 -23
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +17 -23
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +14 -15
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +14 -15
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +14 -15
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +46 -51
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +6 -6
- package/password/password.esm.js +47 -52
- package/password/password.esm.min.js +1 -1
- package/password/password.js +46 -51
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +50 -65
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +2 -2
- package/picklist/picklist.esm.js +50 -65
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +50 -65
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +14 -15
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +14 -15
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +14 -15
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +858 -539
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +859 -540
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +858 -539
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +23 -34
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.d.ts +2 -2
- package/progressbar/progressbar.esm.js +23 -34
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +23 -34
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.d.ts +2 -2
- package/radiobutton/radiobutton.cjs.js +25 -36
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +5 -5
- package/radiobutton/radiobutton.esm.js +25 -36
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +25 -36
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +37 -49
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.d.ts +2 -2
- package/rating/rating.esm.js +37 -49
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +37 -49
- package/rating/rating.min.js +1 -1
- package/ripple/ripple.cjs.js +37 -49
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +37 -49
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +37 -49
- package/ripple/ripple.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +20 -26
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.d.ts +8 -8
- package/scrollpanel/scrollpanel.esm.js +20 -26
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +20 -26
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +37 -49
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +2 -2
- package/scrolltop/scrolltop.esm.js +37 -49
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +37 -49
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +26 -32
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +2 -2
- package/selectbutton/selectbutton.esm.js +26 -32
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +26 -32
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +37 -49
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +6 -6
- package/sidebar/sidebar.esm.js +37 -49
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +37 -49
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +17 -23
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.d.ts +2 -2
- package/skeleton/skeleton.esm.js +17 -23
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +17 -23
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +46 -51
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +2 -2
- package/slidemenu/slidemenu.esm.js +47 -52
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +46 -51
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +43 -55
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.d.ts +3 -2
- package/slider/slider.esm.js +43 -55
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +43 -55
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +43 -55
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +2 -2
- package/speeddial/speeddial.esm.js +43 -55
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +43 -55
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +37 -49
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +2 -2
- package/splitbutton/splitbutton.esm.js +37 -49
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +37 -49
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +43 -55
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +2 -2
- package/splitter/splitter.esm.js +43 -55
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +43 -55
- package/splitter/splitter.min.js +1 -1
- package/stepper/stepper.cjs.js +39 -50
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.d.ts +8 -3
- package/stepper/stepper.esm.js +39 -50
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +39 -50
- package/stepper/stepper.min.js +1 -1
- package/steps/steps.cjs.js +37 -49
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +2 -2
- package/steps/steps.esm.js +37 -49
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +37 -49
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +14 -15
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.d.ts +4 -4
- package/styleclass/styleclass.esm.js +14 -15
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +14 -15
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +37 -49
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +2 -2
- package/tabmenu/tabmenu.esm.js +37 -49
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +37 -49
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +37 -44
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +2 -2
- package/tabview/tabview.esm.js +37 -44
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +37 -44
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +17 -23
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +2 -2
- package/tag/tag.esm.js +17 -23
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +17 -23
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +20 -21
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.d.ts +2 -2
- package/terminal/terminal.esm.js +20 -21
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +20 -21
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +37 -49
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +2 -2
- package/tieredmenu/tieredmenu.esm.js +37 -49
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +37 -49
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +23 -34
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +4 -4
- package/timeline/timeline.esm.js +23 -34
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +23 -34
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +43 -55
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +2 -2
- package/toast/toast.esm.js +43 -55
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +43 -55
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +23 -34
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +2 -2
- package/togglebutton/togglebutton.esm.js +23 -34
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +23 -34
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.d.ts +2 -2
- package/tooltip/tooltip.cjs.js +43 -55
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +3 -3
- package/tooltip/tooltip.esm.js +43 -55
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +43 -55
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +52 -64
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +2 -2
- package/tree/tree.esm.js +52 -64
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +52 -64
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +61 -66
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +2 -2
- package/treeselect/treeselect.esm.js +61 -66
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +61 -66
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +57 -69
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +2 -2
- package/treetable/treetable.esm.js +57 -69
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +57 -69
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +43 -55
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +2 -2
- package/tristatecheckbox/tristatecheckbox.esm.js +43 -55
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +43 -55
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +197 -99
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +5 -1
- package/utils/utils.esm.js +197 -99
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +197 -99
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +37 -49
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +37 -49
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +37 -49
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +46 -10
package/primereact.all.cjs.js
CHANGED
|
@@ -32,49 +32,43 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
32
32
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
33
33
|
|
|
34
34
|
function _extends() {
|
|
35
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
36
|
-
for (var
|
|
37
|
-
var
|
|
38
|
-
for (var
|
|
39
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
40
|
-
target[key] = source[key];
|
|
41
|
-
}
|
|
42
|
-
}
|
|
35
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
36
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
37
|
+
var t = arguments[e];
|
|
38
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
43
39
|
}
|
|
44
|
-
return
|
|
45
|
-
};
|
|
46
|
-
return _extends.apply(this, arguments);
|
|
40
|
+
return n;
|
|
41
|
+
}, _extends.apply(null, arguments);
|
|
47
42
|
}
|
|
48
43
|
|
|
49
|
-
function _arrayLikeToArray$i(
|
|
50
|
-
|
|
51
|
-
for (var
|
|
52
|
-
return
|
|
44
|
+
function _arrayLikeToArray$i(r, a) {
|
|
45
|
+
(null == a || a > r.length) && (a = r.length);
|
|
46
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
47
|
+
return n;
|
|
53
48
|
}
|
|
54
49
|
|
|
55
|
-
function _arrayWithoutHoles(
|
|
56
|
-
if (Array.isArray(
|
|
50
|
+
function _arrayWithoutHoles(r) {
|
|
51
|
+
if (Array.isArray(r)) return _arrayLikeToArray$i(r);
|
|
57
52
|
}
|
|
58
53
|
|
|
59
|
-
function _iterableToArray(
|
|
60
|
-
if (typeof Symbol
|
|
54
|
+
function _iterableToArray(r) {
|
|
55
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
61
56
|
}
|
|
62
57
|
|
|
63
|
-
function _unsupportedIterableToArray$i(
|
|
64
|
-
if (
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$i(o, minLen);
|
|
58
|
+
function _unsupportedIterableToArray$i(r, a) {
|
|
59
|
+
if (r) {
|
|
60
|
+
if ("string" == typeof r) return _arrayLikeToArray$i(r, a);
|
|
61
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
62
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0;
|
|
63
|
+
}
|
|
70
64
|
}
|
|
71
65
|
|
|
72
66
|
function _nonIterableSpread() {
|
|
73
67
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
74
68
|
}
|
|
75
69
|
|
|
76
|
-
function _toConsumableArray(
|
|
77
|
-
return _arrayWithoutHoles(
|
|
70
|
+
function _toConsumableArray(r) {
|
|
71
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$i(r) || _nonIterableSpread();
|
|
78
72
|
}
|
|
79
73
|
|
|
80
74
|
function _typeof(o) {
|
|
@@ -87,39 +81,33 @@ function _typeof(o) {
|
|
|
87
81
|
}, _typeof(o);
|
|
88
82
|
}
|
|
89
83
|
|
|
90
|
-
function
|
|
91
|
-
if (
|
|
92
|
-
var
|
|
93
|
-
if (
|
|
94
|
-
var
|
|
95
|
-
if (
|
|
84
|
+
function toPrimitive(t, r) {
|
|
85
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
86
|
+
var e = t[Symbol.toPrimitive];
|
|
87
|
+
if (void 0 !== e) {
|
|
88
|
+
var i = e.call(t, r || "default");
|
|
89
|
+
if ("object" != _typeof(i)) return i;
|
|
96
90
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
97
91
|
}
|
|
98
|
-
return (
|
|
92
|
+
return ("string" === r ? String : Number)(t);
|
|
99
93
|
}
|
|
100
94
|
|
|
101
|
-
function
|
|
102
|
-
var
|
|
103
|
-
return _typeof(
|
|
95
|
+
function toPropertyKey(t) {
|
|
96
|
+
var i = toPrimitive(t, "string");
|
|
97
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
104
98
|
}
|
|
105
99
|
|
|
106
|
-
function _defineProperty(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
writable: true
|
|
114
|
-
});
|
|
115
|
-
} else {
|
|
116
|
-
obj[key] = value;
|
|
117
|
-
}
|
|
118
|
-
return obj;
|
|
100
|
+
function _defineProperty(e, r, t) {
|
|
101
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
102
|
+
value: t,
|
|
103
|
+
enumerable: !0,
|
|
104
|
+
configurable: !0,
|
|
105
|
+
writable: !0
|
|
106
|
+
}) : e[r] = t, e;
|
|
119
107
|
}
|
|
120
108
|
|
|
121
|
-
function _arrayWithHoles(
|
|
122
|
-
if (Array.isArray(
|
|
109
|
+
function _arrayWithHoles(r) {
|
|
110
|
+
if (Array.isArray(r)) return r;
|
|
123
111
|
}
|
|
124
112
|
|
|
125
113
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -154,8 +142,8 @@ function _nonIterableRest() {
|
|
|
154
142
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
155
143
|
}
|
|
156
144
|
|
|
157
|
-
function _slicedToArray(
|
|
158
|
-
return _arrayWithHoles(
|
|
145
|
+
function _slicedToArray(r, e) {
|
|
146
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$i(r, e) || _nonIterableRest();
|
|
159
147
|
}
|
|
160
148
|
|
|
161
149
|
var FilterMatchMode = Object.freeze({
|
|
@@ -214,33 +202,25 @@ function classNames() {
|
|
|
214
202
|
return undefined;
|
|
215
203
|
}
|
|
216
204
|
|
|
217
|
-
function _classCallCheck(
|
|
218
|
-
if (!(
|
|
219
|
-
throw new TypeError("Cannot call a class as a function");
|
|
220
|
-
}
|
|
205
|
+
function _classCallCheck(a, n) {
|
|
206
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
221
207
|
}
|
|
222
208
|
|
|
223
|
-
function _defineProperties(
|
|
224
|
-
for (var
|
|
225
|
-
var
|
|
226
|
-
|
|
227
|
-
descriptor.configurable = true;
|
|
228
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
229
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
209
|
+
function _defineProperties(e, r) {
|
|
210
|
+
for (var t = 0; t < r.length; t++) {
|
|
211
|
+
var o = r[t];
|
|
212
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
230
213
|
}
|
|
231
214
|
}
|
|
232
|
-
function _createClass(
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
writable: false
|
|
237
|
-
});
|
|
238
|
-
return Constructor;
|
|
215
|
+
function _createClass(e, r, t) {
|
|
216
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
217
|
+
writable: !1
|
|
218
|
+
}), e;
|
|
239
219
|
}
|
|
240
220
|
|
|
241
|
-
function _createForOfIteratorHelper$h(
|
|
242
|
-
function _unsupportedIterableToArray$h(
|
|
243
|
-
function _arrayLikeToArray$h(
|
|
221
|
+
function _createForOfIteratorHelper$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
222
|
+
function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
|
|
223
|
+
function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
244
224
|
var DomHandler = /*#__PURE__*/function () {
|
|
245
225
|
function DomHandler() {
|
|
246
226
|
_classCallCheck(this, DomHandler);
|
|
@@ -613,11 +593,18 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
613
593
|
element.style.transformOrigin = 'top';
|
|
614
594
|
}
|
|
615
595
|
var targetOffsetPx = targetOffset.left;
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
596
|
+
if (align === 'left') {
|
|
597
|
+
if (targetOffsetPx + elementOuterWidth > viewport.width) {
|
|
598
|
+
left = Math.max(0, targetOffsetPx + windowScrollLeft + targetOuterWidth - elementOuterWidth);
|
|
599
|
+
} else {
|
|
600
|
+
left = targetOffsetPx + windowScrollLeft;
|
|
601
|
+
}
|
|
619
602
|
} else {
|
|
620
|
-
|
|
603
|
+
if (targetOffsetPx + targetOuterWidth - elementOuterWidth < 0) {
|
|
604
|
+
left = windowScrollLeft;
|
|
605
|
+
} else {
|
|
606
|
+
left = targetOffsetPx + targetOuterWidth - elementOuterWidth + windowScrollLeft;
|
|
607
|
+
}
|
|
621
608
|
}
|
|
622
609
|
element.style.top = top + 'px';
|
|
623
610
|
element.style.left = left + 'px';
|
|
@@ -826,13 +813,12 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
826
813
|
/**
|
|
827
814
|
* Gets all scrollable parent elements of a given element
|
|
828
815
|
* @param {HTMLElement} element - The element to find scrollable parents for
|
|
829
|
-
* @param {boolean} hideOverlaysOnDocumentScrolling - Whether to include window/document level scrolling
|
|
830
816
|
* @returns {Array} Array of scrollable parent elements
|
|
831
817
|
*/
|
|
832
818
|
}, {
|
|
833
819
|
key: "getScrollableParents",
|
|
834
820
|
value: function getScrollableParents(element) {
|
|
835
|
-
var
|
|
821
|
+
var _this3 = this;
|
|
836
822
|
var scrollableParents = [];
|
|
837
823
|
if (element) {
|
|
838
824
|
// Get all parent elements
|
|
@@ -855,10 +841,8 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
855
841
|
* @param {HTMLElement} node - Element to add
|
|
856
842
|
*/
|
|
857
843
|
var addScrollableParent = function addScrollableParent(node) {
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
scrollableParents.push(node.nodeName === 'BODY' || node.nodeName === 'HTML' || node.nodeType === 9 ? window : node);
|
|
861
|
-
}
|
|
844
|
+
// For document/body/html elements, add window instead
|
|
845
|
+
scrollableParents.push(node.nodeName === 'BODY' || node.nodeName === 'HTML' || _this3.isDocument(node) ? window : node);
|
|
862
846
|
};
|
|
863
847
|
|
|
864
848
|
// Iterate through all parent elements
|
|
@@ -902,13 +886,6 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
902
886
|
_iterator.f();
|
|
903
887
|
}
|
|
904
888
|
}
|
|
905
|
-
|
|
906
|
-
// Ensure window/body is always included as fallback
|
|
907
|
-
if (!scrollableParents.some(function (node) {
|
|
908
|
-
return node === document.body || node === window;
|
|
909
|
-
})) {
|
|
910
|
-
scrollableParents.push(hideOverlaysOnDocumentScrolling ? window : document.body);
|
|
911
|
-
}
|
|
912
889
|
return scrollableParents;
|
|
913
890
|
}
|
|
914
891
|
}, {
|
|
@@ -1048,6 +1025,11 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
1048
1025
|
value: function isElement(obj) {
|
|
1049
1026
|
return (typeof HTMLElement === "undefined" ? "undefined" : _typeof(HTMLElement)) === 'object' ? obj instanceof HTMLElement : obj && _typeof(obj) === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string';
|
|
1050
1027
|
}
|
|
1028
|
+
}, {
|
|
1029
|
+
key: "isDocument",
|
|
1030
|
+
value: function isDocument(obj) {
|
|
1031
|
+
return (typeof Document === "undefined" ? "undefined" : _typeof(Document)) === 'object' ? obj instanceof Document : obj && _typeof(obj) === 'object' && obj !== null && obj.nodeType === 9;
|
|
1032
|
+
}
|
|
1051
1033
|
}, {
|
|
1052
1034
|
key: "scrollInView",
|
|
1053
1035
|
value: function scrollInView(container, item) {
|
|
@@ -1385,7 +1367,7 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
1385
1367
|
return !!(obj && obj.constructor && obj.call && obj.apply);
|
|
1386
1368
|
};
|
|
1387
1369
|
var element = isFunction(target) ? target() : target;
|
|
1388
|
-
return element
|
|
1370
|
+
return this.isDocument(element) || this.isExist(element) ? element : null;
|
|
1389
1371
|
}
|
|
1390
1372
|
|
|
1391
1373
|
/**
|
|
@@ -1534,9 +1516,9 @@ function EventBus() {
|
|
|
1534
1516
|
};
|
|
1535
1517
|
}
|
|
1536
1518
|
|
|
1537
|
-
function _createForOfIteratorHelper$g(
|
|
1538
|
-
function _unsupportedIterableToArray$g(
|
|
1539
|
-
function _arrayLikeToArray$g(
|
|
1519
|
+
function _createForOfIteratorHelper$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
1520
|
+
function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
|
|
1521
|
+
function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1540
1522
|
var ObjectUtils = /*#__PURE__*/function () {
|
|
1541
1523
|
function ObjectUtils() {
|
|
1542
1524
|
_classCallCheck(this, ObjectUtils);
|
|
@@ -1791,13 +1773,13 @@ var ObjectUtils = /*#__PURE__*/function () {
|
|
|
1791
1773
|
params[_key4 - 1] = arguments[_key4];
|
|
1792
1774
|
}
|
|
1793
1775
|
if (params.length === 1) {
|
|
1794
|
-
// For single parameter, unwrap array if needed
|
|
1776
|
+
// For single parameter case, unwrap array if needed to avoid extra nesting
|
|
1795
1777
|
var param = params[0];
|
|
1796
1778
|
return obj(Array.isArray(param) ? param[0] : param);
|
|
1797
1779
|
}
|
|
1798
1780
|
|
|
1799
1781
|
// Pass all parameters to function
|
|
1800
|
-
return obj(params);
|
|
1782
|
+
return obj.apply(void 0, params);
|
|
1801
1783
|
}
|
|
1802
1784
|
}, {
|
|
1803
1785
|
key: "getComponentProp",
|
|
@@ -2088,6 +2070,122 @@ var ObjectUtils = /*#__PURE__*/function () {
|
|
|
2088
2070
|
obj = obj[fields[i]];
|
|
2089
2071
|
}
|
|
2090
2072
|
}
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* This helper function takes an object and a dot-separated key path. It traverses the object based on the path,
|
|
2076
|
+
* returning the value at the specified depth. If any part of the path is missing or undefined, it returns undefined.
|
|
2077
|
+
*
|
|
2078
|
+
* Example:
|
|
2079
|
+
* const obj = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
|
|
2080
|
+
* const path = 'address.city';
|
|
2081
|
+
* const result = ObjectUtils.getNestedValue(obj, path);
|
|
2082
|
+
* console.log(result); // Output: "Wonderland"
|
|
2083
|
+
*
|
|
2084
|
+
* @param {object} obj - The object to traverse.
|
|
2085
|
+
* @param {string} path - The dot-separated key path.
|
|
2086
|
+
* @returns {*} The value at the specified depth, or undefined if any part of the path is missing or undefined.
|
|
2087
|
+
*/
|
|
2088
|
+
}, {
|
|
2089
|
+
key: "getNestedValue",
|
|
2090
|
+
value: function getNestedValue(obj, path) {
|
|
2091
|
+
return path.split('.').reduce(function (acc, part) {
|
|
2092
|
+
return acc && acc[part] !== undefined ? acc[part] : undefined;
|
|
2093
|
+
}, obj);
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
/**
|
|
2097
|
+
* This function takes an object and a dot-separated key path. It traverses the object based on the path,
|
|
2098
|
+
* returning the value at the specified depth. If any part of the path is missing or undefined, it returns undefined.
|
|
2099
|
+
*
|
|
2100
|
+
* Example:
|
|
2101
|
+
* const objA = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
|
|
2102
|
+
* const objB = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
|
|
2103
|
+
* const result = ObjectUtils.absoluteCompare(objA, objB);
|
|
2104
|
+
* console.log(result); // Output: true
|
|
2105
|
+
*
|
|
2106
|
+
* const objC = { name: 'Alice', address: { city: 'Wonderland', zip: 12346 } };
|
|
2107
|
+
* const result2 = ObjectUtils.absoluteCompare(objA, objC);
|
|
2108
|
+
* console.log(result2); // Output: false
|
|
2109
|
+
*
|
|
2110
|
+
* @param {object} objA - The first object to compare.
|
|
2111
|
+
* @param {object} objB - The second object to compare.
|
|
2112
|
+
* @param {number} [maxDepth=1] - The maximum depth to compare.
|
|
2113
|
+
* @param {number} [currentDepth=0] - The current depth (used internally for recursion).
|
|
2114
|
+
* @returns {boolean} True if the objects are equal within the specified depth, false otherwise.
|
|
2115
|
+
*
|
|
2116
|
+
*/
|
|
2117
|
+
}, {
|
|
2118
|
+
key: "absoluteCompare",
|
|
2119
|
+
value: function absoluteCompare(objA, objB) {
|
|
2120
|
+
var maxDepth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
2121
|
+
var currentDepth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
2122
|
+
if (!objA || !objB) return true;
|
|
2123
|
+
if (currentDepth > maxDepth) return true;
|
|
2124
|
+
if (_typeof(objA) !== _typeof(objB)) return false;
|
|
2125
|
+
var aKeys = Object.keys(objA);
|
|
2126
|
+
var bKeys = Object.keys(objB);
|
|
2127
|
+
if (aKeys.length !== bKeys.length) return false;
|
|
2128
|
+
for (var _i = 0, _aKeys = aKeys; _i < _aKeys.length; _i++) {
|
|
2129
|
+
var key = _aKeys[_i];
|
|
2130
|
+
var aValue = objA[key];
|
|
2131
|
+
var bValue = objB[key];
|
|
2132
|
+
|
|
2133
|
+
// Skip comparison if values are objects
|
|
2134
|
+
var isObject = ObjectUtils.isObject(aValue) && ObjectUtils.isObject(bValue);
|
|
2135
|
+
var isFunction = ObjectUtils.isFunction(aValue) && ObjectUtils.isFunction(bValue);
|
|
2136
|
+
if ((isObject || isFunction) && !this.absoluteCompare(aValue, bValue, maxDepth, currentDepth + 1)) return false;
|
|
2137
|
+
if (!isObject && aValue !== bValue) return false;
|
|
2138
|
+
}
|
|
2139
|
+
return true;
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
/**
|
|
2143
|
+
* This helper function takes two objects and a list of keys to compare. It compares the values of the specified keys
|
|
2144
|
+
* in both objects. If any comparison fails, it returns false. If all specified properties are equal, it returns true.
|
|
2145
|
+
* It performs a shallow comparison using absoluteCompare if no keys are provided.
|
|
2146
|
+
*
|
|
2147
|
+
* Example:
|
|
2148
|
+
* const objA = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
|
|
2149
|
+
* const objB = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
|
|
2150
|
+
* const keysToCompare = ['name', 'address.city', 'address.zip'];
|
|
2151
|
+
* const result = ObjectUtils.selectiveCompare(objA, objB, keysToCompare);
|
|
2152
|
+
* console.log(result); // Output: true
|
|
2153
|
+
*
|
|
2154
|
+
* const objC = { name: 'Alice', address: { city: 'Wonderland', zip: 12346 } };
|
|
2155
|
+
* const result2 = ObjectUtils.selectiveCompare(objA, objC, keysToCompare);
|
|
2156
|
+
* console.log(result2); // Output: false
|
|
2157
|
+
*
|
|
2158
|
+
* @param {object} a - The first object to compare.
|
|
2159
|
+
* @param {object} b - The second object to compare.
|
|
2160
|
+
* @param {string[]} [keysToCompare] - The keys to compare. If not provided, performs a shallow comparison using absoluteCompare.
|
|
2161
|
+
* @returns {boolean} True if all specified properties are equal, false otherwise.
|
|
2162
|
+
*/
|
|
2163
|
+
}, {
|
|
2164
|
+
key: "selectiveCompare",
|
|
2165
|
+
value: function selectiveCompare(a, b, keysToCompare) {
|
|
2166
|
+
if (a === b) return true;
|
|
2167
|
+
if (!a || !b || _typeof(a) !== 'object' || _typeof(b) !== 'object') return false;
|
|
2168
|
+
if (!keysToCompare) return this.absoluteCompare(a, b, 1); // If no keys are provided, the comparison is limited to one depth level.
|
|
2169
|
+
var _iterator2 = _createForOfIteratorHelper$g(keysToCompare),
|
|
2170
|
+
_step2;
|
|
2171
|
+
try {
|
|
2172
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
2173
|
+
var key = _step2.value;
|
|
2174
|
+
var aValue = this.getNestedValue(a, key);
|
|
2175
|
+
var bValue = this.getNestedValue(b, key);
|
|
2176
|
+
var isObject = _typeof(aValue) === 'object' && aValue !== null && _typeof(bValue) === 'object' && bValue !== null;
|
|
2177
|
+
|
|
2178
|
+
// If the current key is an object, they are compared in one further level only.
|
|
2179
|
+
if (isObject && !this.absoluteCompare(aValue, bValue, 1)) return false;
|
|
2180
|
+
if (!isObject && aValue !== bValue) return false;
|
|
2181
|
+
}
|
|
2182
|
+
} catch (err) {
|
|
2183
|
+
_iterator2.e(err);
|
|
2184
|
+
} finally {
|
|
2185
|
+
_iterator2.f();
|
|
2186
|
+
}
|
|
2187
|
+
return true;
|
|
2188
|
+
}
|
|
2091
2189
|
}]);
|
|
2092
2190
|
}();
|
|
2093
2191
|
|
|
@@ -2690,9 +2788,9 @@ function handler() {
|
|
|
2690
2788
|
}
|
|
2691
2789
|
var ZIndexUtils = handler();
|
|
2692
2790
|
|
|
2693
|
-
function _createForOfIteratorHelper$f(
|
|
2694
|
-
function _unsupportedIterableToArray$f(
|
|
2695
|
-
function _arrayLikeToArray$f(
|
|
2791
|
+
function _createForOfIteratorHelper$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
2792
|
+
function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
|
|
2793
|
+
function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
2696
2794
|
var FilterService = {
|
|
2697
2795
|
filter: function filter(value, fields, filterValue, filterMatchMode, filterLocale) {
|
|
2698
2796
|
var filteredItems = [];
|
|
@@ -4414,7 +4512,14 @@ var useOverlayScrollListener = function useOverlayScrollListener(_ref) {
|
|
|
4414
4512
|
}
|
|
4415
4513
|
if (!listenerRef.current && targetRef.current) {
|
|
4416
4514
|
var hideOnScroll = context ? context.hideOverlaysOnDocumentScrolling : PrimeReact.hideOverlaysOnDocumentScrolling;
|
|
4417
|
-
var nodes = scrollableParentsRef.current = DomHandler.getScrollableParents(targetRef.current
|
|
4515
|
+
var nodes = scrollableParentsRef.current = DomHandler.getScrollableParents(targetRef.current);
|
|
4516
|
+
|
|
4517
|
+
// Ensure window/body is always included as fallback
|
|
4518
|
+
if (!nodes.some(function (node) {
|
|
4519
|
+
return node === document.body || node === window;
|
|
4520
|
+
})) {
|
|
4521
|
+
nodes.push(hideOnScroll ? window : document.body);
|
|
4522
|
+
}
|
|
4418
4523
|
listenerRef.current = function (event) {
|
|
4419
4524
|
return listener && listener(event);
|
|
4420
4525
|
};
|
|
@@ -4506,19 +4611,20 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
4506
4611
|
type: 'outside',
|
|
4507
4612
|
valid: event.which !== 3 && isOutsideClicked(event)
|
|
4508
4613
|
});
|
|
4509
|
-
}
|
|
4614
|
+
},
|
|
4615
|
+
when: when
|
|
4510
4616
|
}),
|
|
4511
4617
|
_useEventListener2 = _slicedToArray(_useEventListener, 2),
|
|
4512
4618
|
bindDocumentClickListener = _useEventListener2[0],
|
|
4513
4619
|
unbindDocumentClickListener = _useEventListener2[1];
|
|
4514
4620
|
var _useResizeListener = useResizeListener({
|
|
4515
|
-
target: 'window',
|
|
4516
4621
|
listener: function listener(event) {
|
|
4517
4622
|
_listener && _listener(event, {
|
|
4518
4623
|
type: 'resize',
|
|
4519
4624
|
valid: !DomHandler.isTouchDevice()
|
|
4520
4625
|
});
|
|
4521
|
-
}
|
|
4626
|
+
},
|
|
4627
|
+
when: when
|
|
4522
4628
|
}),
|
|
4523
4629
|
_useResizeListener2 = _slicedToArray(_useResizeListener, 2),
|
|
4524
4630
|
bindWindowResizeListener = _useResizeListener2[0],
|
|
@@ -4531,7 +4637,8 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
4531
4637
|
type: 'orientationchange',
|
|
4532
4638
|
valid: true
|
|
4533
4639
|
});
|
|
4534
|
-
}
|
|
4640
|
+
},
|
|
4641
|
+
when: when
|
|
4535
4642
|
}),
|
|
4536
4643
|
_useEventListener4 = _slicedToArray(_useEventListener3, 2),
|
|
4537
4644
|
bindWindowOrientationChangeListener = _useEventListener4[0],
|
|
@@ -4543,7 +4650,8 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
4543
4650
|
type: 'scroll',
|
|
4544
4651
|
valid: true
|
|
4545
4652
|
});
|
|
4546
|
-
}
|
|
4653
|
+
},
|
|
4654
|
+
when: when
|
|
4547
4655
|
}),
|
|
4548
4656
|
_useOverlayScrollList2 = _slicedToArray(_useOverlayScrollList, 2),
|
|
4549
4657
|
bindOverlayScrollListener = _useOverlayScrollList2[0],
|
|
@@ -6792,7 +6900,8 @@ var InputText = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
6792
6900
|
}, [props.value, props.defaultValue]);
|
|
6793
6901
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
6794
6902
|
React__namespace.useEffect(function () {
|
|
6795
|
-
|
|
6903
|
+
var _elementRef$current;
|
|
6904
|
+
if (isFilled || (_elementRef$current = elementRef.current) !== null && _elementRef$current !== void 0 && _elementRef$current.value) {
|
|
6796
6905
|
DomHandler.addClass(elementRef.current, 'p-filled');
|
|
6797
6906
|
} else {
|
|
6798
6907
|
DomHandler.removeClass(elementRef.current, 'p-filled');
|
|
@@ -8157,7 +8266,15 @@ var AutoComplete = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namesp
|
|
|
8157
8266
|
var type = _ref.type,
|
|
8158
8267
|
valid = _ref.valid;
|
|
8159
8268
|
if (valid) {
|
|
8160
|
-
type === 'outside'
|
|
8269
|
+
if (type === 'outside') {
|
|
8270
|
+
if (!isInputClicked(event)) {
|
|
8271
|
+
hide();
|
|
8272
|
+
}
|
|
8273
|
+
} else if (context.hideOverlaysOnDocumentScrolling) {
|
|
8274
|
+
hide();
|
|
8275
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
8276
|
+
alignOverlay();
|
|
8277
|
+
}
|
|
8161
8278
|
}
|
|
8162
8279
|
},
|
|
8163
8280
|
when: overlayVisibleState
|
|
@@ -8333,6 +8450,9 @@ var AutoComplete = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namesp
|
|
|
8333
8450
|
}
|
|
8334
8451
|
};
|
|
8335
8452
|
var removeItem = function removeItem(event, index) {
|
|
8453
|
+
if (props.disabled || props.readOnly) {
|
|
8454
|
+
return;
|
|
8455
|
+
}
|
|
8336
8456
|
var removedValue = props.value[index];
|
|
8337
8457
|
var newValue = props.value.filter(function (_, i) {
|
|
8338
8458
|
return index !== i;
|
|
@@ -8775,6 +8895,7 @@ var AutoComplete = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namesp
|
|
|
8775
8895
|
listId: listId,
|
|
8776
8896
|
onItemClick: selectItem,
|
|
8777
8897
|
selectedItem: selectedItem,
|
|
8898
|
+
onOverlayHide: hide,
|
|
8778
8899
|
onClick: onPanelClick,
|
|
8779
8900
|
getOptionGroupLabel: getOptionGroupLabel,
|
|
8780
8901
|
getOptionGroupChildren: getOptionGroupChildren,
|
|
@@ -9296,7 +9417,8 @@ var BreadCrumb = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespac
|
|
|
9296
9417
|
onClick: function onClick(event) {
|
|
9297
9418
|
return itemClick(event, item);
|
|
9298
9419
|
},
|
|
9299
|
-
'aria-disabled': item.disabled
|
|
9420
|
+
'aria-disabled': item.disabled,
|
|
9421
|
+
tabIndex: item.disabled ? -1 : undefined
|
|
9300
9422
|
}, ptm('action'));
|
|
9301
9423
|
var content = /*#__PURE__*/React__namespace.createElement("a", actionProps, label);
|
|
9302
9424
|
if (item.template) {
|
|
@@ -9662,9 +9784,9 @@ CalendarPanel.displayName = 'CalendarPanel';
|
|
|
9662
9784
|
|
|
9663
9785
|
function ownKeys$1K(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9664
9786
|
function _objectSpread$1K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9665
|
-
function _createForOfIteratorHelper$e(
|
|
9666
|
-
function _unsupportedIterableToArray$e(
|
|
9667
|
-
function _arrayLikeToArray$e(
|
|
9787
|
+
function _createForOfIteratorHelper$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
9788
|
+
function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
|
|
9789
|
+
function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
9668
9790
|
var Calendar = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
9669
9791
|
var mergeProps = useMergeProps();
|
|
9670
9792
|
var context = React__namespace.useContext(PrimeReactContext);
|
|
@@ -9701,7 +9823,7 @@ var Calendar = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
9701
9823
|
isUnstyled = _CalendarBase$setMeta.isUnstyled;
|
|
9702
9824
|
useGlobalOnEscapeKey({
|
|
9703
9825
|
callback: function callback() {
|
|
9704
|
-
hide();
|
|
9826
|
+
hide(null, reFocusInputField);
|
|
9705
9827
|
},
|
|
9706
9828
|
when: overlayVisibleState && overlayDisplayOrder,
|
|
9707
9829
|
priority: [ESC_KEY_HANDLING_PRIORITIES.OVERLAY_PANEL, overlayDisplayOrder]
|
|
@@ -9752,7 +9874,15 @@ var Calendar = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
9752
9874
|
var type = _ref.type,
|
|
9753
9875
|
valid = _ref.valid;
|
|
9754
9876
|
if (valid) {
|
|
9755
|
-
type === 'outside'
|
|
9877
|
+
if (type === 'outside') {
|
|
9878
|
+
if (!isOverlayClicked.current && !isNavIconClicked(event.target)) {
|
|
9879
|
+
hide('outside');
|
|
9880
|
+
}
|
|
9881
|
+
} else if (context.hideOverlaysOnDocumentScrolling) {
|
|
9882
|
+
hide();
|
|
9883
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
9884
|
+
alignOverlay();
|
|
9885
|
+
}
|
|
9756
9886
|
}
|
|
9757
9887
|
isOverlayClicked.current = false;
|
|
9758
9888
|
},
|
|
@@ -14559,9 +14689,9 @@ var CascadeSelectSub = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
14559
14689
|
return element;
|
|
14560
14690
|
});
|
|
14561
14691
|
|
|
14562
|
-
function _createForOfIteratorHelper$d(
|
|
14563
|
-
function _unsupportedIterableToArray$d(
|
|
14564
|
-
function _arrayLikeToArray$d(
|
|
14692
|
+
function _createForOfIteratorHelper$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
14693
|
+
function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
|
|
14694
|
+
function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14565
14695
|
function ownKeys$1H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14566
14696
|
function _objectSpread$1H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14567
14697
|
var CascadeSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
@@ -14606,8 +14736,15 @@ var CascadeSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__names
|
|
|
14606
14736
|
target: elementRef,
|
|
14607
14737
|
overlay: overlayRef,
|
|
14608
14738
|
listener: function listener(event, _ref) {
|
|
14609
|
-
var valid = _ref.valid
|
|
14610
|
-
|
|
14739
|
+
var valid = _ref.valid,
|
|
14740
|
+
type = _ref.type;
|
|
14741
|
+
if (valid) {
|
|
14742
|
+
if (context.hideOverlaysOnDocumentScrolling || type === 'outside') {
|
|
14743
|
+
hide();
|
|
14744
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
14745
|
+
alignOverlay();
|
|
14746
|
+
}
|
|
14747
|
+
}
|
|
14611
14748
|
},
|
|
14612
14749
|
when: overlayVisibleState
|
|
14613
14750
|
}),
|
|
@@ -15218,7 +15355,7 @@ var Checkbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
15218
15355
|
return props.checked === props.trueValue;
|
|
15219
15356
|
};
|
|
15220
15357
|
var _onChange = function onChange(event) {
|
|
15221
|
-
if (props.disabled || props.
|
|
15358
|
+
if (props.disabled || props.readOnly) {
|
|
15222
15359
|
return;
|
|
15223
15360
|
}
|
|
15224
15361
|
if (props.onChange) {
|
|
@@ -15402,6 +15539,10 @@ var Chip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
15402
15539
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
15403
15540
|
visibleState = _React$useState2[0],
|
|
15404
15541
|
setVisibleState = _React$useState2[1];
|
|
15542
|
+
var _React$useState3 = React__namespace.useState(props.id),
|
|
15543
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
15544
|
+
idState = _React$useState4[0],
|
|
15545
|
+
setIdState = _React$useState4[1];
|
|
15405
15546
|
var _ChipBase$setMetaData = ChipBase.setMetaData({
|
|
15406
15547
|
props: props
|
|
15407
15548
|
}),
|
|
@@ -15419,6 +15560,7 @@ var Chip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
15419
15560
|
var close = function close(event) {
|
|
15420
15561
|
var result = true;
|
|
15421
15562
|
if (props.onRemove) {
|
|
15563
|
+
event.stopPropagation();
|
|
15422
15564
|
result = props.onRemove({
|
|
15423
15565
|
originalEvent: event,
|
|
15424
15566
|
value: props.label || props.image || props.icon
|
|
@@ -15438,7 +15580,7 @@ var Chip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
15438
15580
|
onKeyDown: onKeyDown
|
|
15439
15581
|
}, ptm('removeIcon'));
|
|
15440
15582
|
var icon = props.removeIcon || /*#__PURE__*/React__namespace.createElement(TimesCircleIcon, _extends({}, removeIconProps, {
|
|
15441
|
-
key:
|
|
15583
|
+
key: "".concat(idState, "-removeIcon")
|
|
15442
15584
|
}));
|
|
15443
15585
|
if (props.image) {
|
|
15444
15586
|
var imageProps = mergeProps({
|
|
@@ -15448,7 +15590,7 @@ var Chip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
15448
15590
|
content.push(/*#__PURE__*/React__namespace.createElement("img", _extends({
|
|
15449
15591
|
alt: props.imageAlt
|
|
15450
15592
|
}, imageProps, {
|
|
15451
|
-
key:
|
|
15593
|
+
key: "".concat(idState, "-image")
|
|
15452
15594
|
})));
|
|
15453
15595
|
} else if (props.icon) {
|
|
15454
15596
|
var chipIconProps = mergeProps({
|
|
@@ -15499,6 +15641,14 @@ var Chip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
15499
15641
|
}
|
|
15500
15642
|
};
|
|
15501
15643
|
});
|
|
15644
|
+
useMountEffect(function () {
|
|
15645
|
+
if (!idState) {
|
|
15646
|
+
setIdState(UniqueComponentId());
|
|
15647
|
+
}
|
|
15648
|
+
});
|
|
15649
|
+
if (!idState) {
|
|
15650
|
+
return null;
|
|
15651
|
+
}
|
|
15502
15652
|
return visibleState && createElement();
|
|
15503
15653
|
}));
|
|
15504
15654
|
Chip.displayName = 'Chip';
|
|
@@ -15607,7 +15757,7 @@ var Chips = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.for
|
|
|
15607
15757
|
var listRef = React__namespace.useRef(null);
|
|
15608
15758
|
var inputRef = React__namespace.useRef(props.inputRef);
|
|
15609
15759
|
var removeItem = function removeItem(event, index) {
|
|
15610
|
-
if (props.disabled
|
|
15760
|
+
if (props.disabled || props.readOnly) {
|
|
15611
15761
|
return;
|
|
15612
15762
|
}
|
|
15613
15763
|
var values = _toConsumableArray(props.value);
|
|
@@ -16140,8 +16290,15 @@ var ColorPicker = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
16140
16290
|
target: elementRef,
|
|
16141
16291
|
overlay: overlayRef,
|
|
16142
16292
|
listener: function listener(event, _ref) {
|
|
16143
|
-
var valid = _ref.valid
|
|
16144
|
-
|
|
16293
|
+
var valid = _ref.valid,
|
|
16294
|
+
type = _ref.type;
|
|
16295
|
+
if (valid) {
|
|
16296
|
+
if (context.hideOverlaysOnDocumentScrolling || type === 'outside') {
|
|
16297
|
+
hide();
|
|
16298
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
16299
|
+
alignOverlay();
|
|
16300
|
+
}
|
|
16301
|
+
}
|
|
16145
16302
|
},
|
|
16146
16303
|
when: overlayVisibleState
|
|
16147
16304
|
}),
|
|
@@ -16192,6 +16349,7 @@ var ColorPicker = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
16192
16349
|
hueDragging.current = true;
|
|
16193
16350
|
pickHue(event);
|
|
16194
16351
|
!isUnstyled && DomHandler.addClass(elementRef.current, 'p-colorpicker-dragging');
|
|
16352
|
+
event.preventDefault();
|
|
16195
16353
|
};
|
|
16196
16354
|
var getPositionY = function getPositionY(event) {
|
|
16197
16355
|
if (event.pageY !== undefined) return event.pageY;else if (event.changedTouches !== undefined) return event.changedTouches[0].pageY;else return 0;
|
|
@@ -18013,9 +18171,17 @@ var ConfirmPopup = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namesp
|
|
|
18013
18171
|
var type = _ref.type,
|
|
18014
18172
|
valid = _ref.valid;
|
|
18015
18173
|
if (valid) {
|
|
18016
|
-
type === 'outside'
|
|
18174
|
+
if (type === 'outside') {
|
|
18175
|
+
if (props.dismissable && !isPanelClicked.current) {
|
|
18176
|
+
hide('hide');
|
|
18177
|
+
}
|
|
18178
|
+
isPanelClicked.current = false;
|
|
18179
|
+
} else if (context.hideOverlaysOnDocumentScrolling) {
|
|
18180
|
+
hide('hide');
|
|
18181
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
18182
|
+
align();
|
|
18183
|
+
}
|
|
18017
18184
|
}
|
|
18018
|
-
isPanelClicked.current = false;
|
|
18019
18185
|
},
|
|
18020
18186
|
when: visibleState
|
|
18021
18187
|
}),
|
|
@@ -20667,7 +20833,7 @@ var InputNumber = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
20667
20833
|
if (data) {
|
|
20668
20834
|
var filteredData = parseValue(data);
|
|
20669
20835
|
if (filteredData != null) {
|
|
20670
|
-
if (isFloat(
|
|
20836
|
+
if (isFloat(filteredData)) {
|
|
20671
20837
|
var _formattedValue2 = formatValue(filteredData);
|
|
20672
20838
|
inputRef.current.value = _formattedValue2;
|
|
20673
20839
|
updateModel(event, filteredData);
|
|
@@ -20779,8 +20945,11 @@ var InputNumber = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
20779
20945
|
newValueStr = insertText(inputValue, text, selectionStart, selectionEnd);
|
|
20780
20946
|
updateValue(event, newValueStr, text, 'insert');
|
|
20781
20947
|
} else if (decimalCharIndex === -1 && (maxFractionDigits || props.maxFractionDigits)) {
|
|
20782
|
-
|
|
20783
|
-
|
|
20948
|
+
var allowedDecimal = inputMode !== 'numeric' || inputMode === 'numeric' && (props.min || props.max);
|
|
20949
|
+
if (allowedDecimal) {
|
|
20950
|
+
newValueStr = insertText(inputValue, text, selectionStart, selectionEnd);
|
|
20951
|
+
updateValue(event, newValueStr, text, 'insert');
|
|
20952
|
+
}
|
|
20784
20953
|
}
|
|
20785
20954
|
} else {
|
|
20786
20955
|
var operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
|
|
@@ -22189,9 +22358,9 @@ var DropdownPanel = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__names
|
|
|
22189
22358
|
}));
|
|
22190
22359
|
DropdownPanel.displayName = 'DropdownPanel';
|
|
22191
22360
|
|
|
22192
|
-
function _createForOfIteratorHelper$c(
|
|
22193
|
-
function _unsupportedIterableToArray$c(
|
|
22194
|
-
function _arrayLikeToArray$c(
|
|
22361
|
+
function _createForOfIteratorHelper$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
22362
|
+
function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
|
|
22363
|
+
function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
22195
22364
|
function ownKeys$1n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22196
22365
|
function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22197
22366
|
var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
@@ -22251,7 +22420,15 @@ var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
22251
22420
|
var type = _ref.type,
|
|
22252
22421
|
valid = _ref.valid;
|
|
22253
22422
|
if (valid) {
|
|
22254
|
-
type === 'outside'
|
|
22423
|
+
if (type === 'outside') {
|
|
22424
|
+
if (!isClearClicked(event)) {
|
|
22425
|
+
hide();
|
|
22426
|
+
}
|
|
22427
|
+
} else if (context.hideOverlaysOnDocumentScrolling) {
|
|
22428
|
+
hide();
|
|
22429
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
22430
|
+
alignOverlay();
|
|
22431
|
+
}
|
|
22255
22432
|
}
|
|
22256
22433
|
},
|
|
22257
22434
|
when: overlayVisibleState
|
|
@@ -22450,12 +22627,14 @@ var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
22450
22627
|
case 'ArrowRight':
|
|
22451
22628
|
onArrowLeftKey(event, true);
|
|
22452
22629
|
break;
|
|
22453
|
-
case 'Escape':
|
|
22454
22630
|
case 'Enter':
|
|
22455
22631
|
case 'NumpadEnter':
|
|
22456
22632
|
onEnterKey(event);
|
|
22457
22633
|
event.preventDefault();
|
|
22458
22634
|
break;
|
|
22635
|
+
case 'Escape':
|
|
22636
|
+
onEscapeKey(event);
|
|
22637
|
+
break;
|
|
22459
22638
|
}
|
|
22460
22639
|
};
|
|
22461
22640
|
var hasFocusableElements = function hasFocusableElements() {
|
|
@@ -22975,9 +23154,6 @@ var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
22975
23154
|
virtualScrollerRef.current && virtualScrollerRef.current.scrollInView(0);
|
|
22976
23155
|
}, [filterState]);
|
|
22977
23156
|
useUpdateEffect(function () {
|
|
22978
|
-
if (filterState && (!props.options || props.options.length === 0)) {
|
|
22979
|
-
setFilterState('');
|
|
22980
|
-
}
|
|
22981
23157
|
updateInputField();
|
|
22982
23158
|
if (inputRef.current) {
|
|
22983
23159
|
inputRef.current.selectedIndex = 1;
|
|
@@ -23200,6 +23376,7 @@ var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
23200
23376
|
"in": overlayVisibleState,
|
|
23201
23377
|
isOptionDisabled: isOptionDisabled,
|
|
23202
23378
|
isSelected: isSelected,
|
|
23379
|
+
onOverlayHide: hide,
|
|
23203
23380
|
onClick: onPanelClick,
|
|
23204
23381
|
onEnter: onOverlayEnter,
|
|
23205
23382
|
onEntered: onOverlayEntered,
|
|
@@ -23903,33 +24080,26 @@ var DataTableBase = ComponentBase.extend({
|
|
|
23903
24080
|
}
|
|
23904
24081
|
});
|
|
23905
24082
|
|
|
23906
|
-
function _objectWithoutPropertiesLoose(
|
|
23907
|
-
if (
|
|
23908
|
-
var
|
|
23909
|
-
var
|
|
23910
|
-
|
|
23911
|
-
|
|
23912
|
-
key = sourceKeys[i];
|
|
23913
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
23914
|
-
target[key] = source[key];
|
|
24083
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
24084
|
+
if (null == r) return {};
|
|
24085
|
+
var t = {};
|
|
24086
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
24087
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
24088
|
+
t[n] = r[n];
|
|
23915
24089
|
}
|
|
23916
|
-
return
|
|
24090
|
+
return t;
|
|
23917
24091
|
}
|
|
23918
24092
|
|
|
23919
|
-
function _objectWithoutProperties(
|
|
23920
|
-
if (
|
|
23921
|
-
var
|
|
23922
|
-
|
|
24093
|
+
function _objectWithoutProperties(e, t) {
|
|
24094
|
+
if (null == e) return {};
|
|
24095
|
+
var o,
|
|
24096
|
+
r,
|
|
24097
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
23923
24098
|
if (Object.getOwnPropertySymbols) {
|
|
23924
|
-
var
|
|
23925
|
-
for (
|
|
23926
|
-
key = sourceSymbolKeys[i];
|
|
23927
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
23928
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
23929
|
-
target[key] = source[key];
|
|
23930
|
-
}
|
|
24099
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
24100
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
23931
24101
|
}
|
|
23932
|
-
return
|
|
24102
|
+
return i;
|
|
23933
24103
|
}
|
|
23934
24104
|
|
|
23935
24105
|
var BarsIcon = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
@@ -24086,7 +24256,7 @@ var RadioButton = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
24086
24256
|
onChange(event);
|
|
24087
24257
|
};
|
|
24088
24258
|
var onChange = function onChange(event) {
|
|
24089
|
-
if (props.disabled || props.
|
|
24259
|
+
if (props.disabled || props.readOnly) {
|
|
24090
24260
|
return;
|
|
24091
24261
|
}
|
|
24092
24262
|
if (props.onChange) {
|
|
@@ -24189,7 +24359,7 @@ var RadioButton = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
24189
24359
|
onBlur: onBlur,
|
|
24190
24360
|
onChange: onChange,
|
|
24191
24361
|
disabled: props.disabled,
|
|
24192
|
-
readOnly: props.
|
|
24362
|
+
readOnly: props.readOnly,
|
|
24193
24363
|
required: props.required,
|
|
24194
24364
|
tabIndex: props.tabIndex,
|
|
24195
24365
|
className: cx('input')
|
|
@@ -24262,7 +24432,7 @@ RowRadioButton.displayName = 'RowRadioButton';
|
|
|
24262
24432
|
|
|
24263
24433
|
function ownKeys$1i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24264
24434
|
function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24265
|
-
var
|
|
24435
|
+
var Cell = function Cell(props) {
|
|
24266
24436
|
var mergeProps = useMergeProps();
|
|
24267
24437
|
var _React$useState = React__namespace.useState(props.editing),
|
|
24268
24438
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -24290,13 +24460,9 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24290
24460
|
var getColumnProp = function getColumnProp(name) {
|
|
24291
24461
|
return ColumnBase.getCProp(props.column, name);
|
|
24292
24462
|
};
|
|
24293
|
-
var getColumnProps = function getColumnProps() {
|
|
24294
|
-
return ColumnBase.getCProps(props.column);
|
|
24295
|
-
};
|
|
24296
24463
|
var getColumnPTOptions = function getColumnPTOptions(key) {
|
|
24297
|
-
var cProps = getColumnProps();
|
|
24298
24464
|
var columnMetaData = {
|
|
24299
|
-
props: cProps,
|
|
24465
|
+
props: props.cProps,
|
|
24300
24466
|
parent: props.metaData,
|
|
24301
24467
|
hostName: props.hostName,
|
|
24302
24468
|
state: {
|
|
@@ -24312,10 +24478,8 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24312
24478
|
};
|
|
24313
24479
|
return mergeProps(ptm("column.".concat(key), {
|
|
24314
24480
|
column: columnMetaData
|
|
24315
|
-
}), ptm("column.".concat(key), columnMetaData), ptmo(cProps, key, columnMetaData));
|
|
24481
|
+
}), ptm("column.".concat(key), columnMetaData), ptmo(props.cProps, key, columnMetaData));
|
|
24316
24482
|
};
|
|
24317
|
-
var field = getColumnProp('field') || "field_".concat(props.index);
|
|
24318
|
-
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
24319
24483
|
var isEditable = function isEditable() {
|
|
24320
24484
|
return ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
|
|
24321
24485
|
};
|
|
@@ -24340,34 +24504,22 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24340
24504
|
_useEventListener2 = _slicedToArray(_useEventListener, 2),
|
|
24341
24505
|
bindDocumentClickListener = _useEventListener2[0],
|
|
24342
24506
|
unbindDocumentClickListener = _useEventListener2[1];
|
|
24343
|
-
var isSelected = function isSelected() {
|
|
24344
|
-
return props.selection ? props.selection instanceof Array ? findIndex(props.selection) > -1 : equals(props.selection) : false;
|
|
24345
|
-
};
|
|
24346
|
-
var equalsData = function equalsData(data) {
|
|
24347
|
-
return props.compareSelectionBy === 'equals' ? data === props.rowData : ObjectUtils.equals(data, props.rowData, props.dataKey);
|
|
24348
|
-
};
|
|
24349
|
-
var equals = function equals(selectedCell) {
|
|
24350
|
-
return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsData(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === props.index);
|
|
24351
|
-
};
|
|
24352
24507
|
var isOutsideClicked = function isOutsideClicked(target) {
|
|
24353
24508
|
return elementRef.current && !(elementRef.current.isSameNode(target) || elementRef.current.contains(target));
|
|
24354
24509
|
};
|
|
24355
|
-
var getVirtualScrollerOption = function getVirtualScrollerOption(option) {
|
|
24356
|
-
return props.virtualScrollerOptions ? props.virtualScrollerOptions[option] : null;
|
|
24357
|
-
};
|
|
24358
24510
|
var getStyle = function getStyle() {
|
|
24359
24511
|
var bodyStyle = getColumnProp('bodyStyle');
|
|
24360
24512
|
var columnStyle = getColumnProp('style');
|
|
24361
|
-
return
|
|
24513
|
+
return props.frozenCol ? Object.assign({}, columnStyle, bodyStyle, styleObjectState) : Object.assign({}, columnStyle, bodyStyle);
|
|
24362
24514
|
};
|
|
24363
24515
|
var getCellParams = function getCellParams() {
|
|
24364
24516
|
return {
|
|
24365
|
-
value: resolveFieldData(),
|
|
24366
|
-
field: field,
|
|
24517
|
+
value: props.resolveFieldData(),
|
|
24518
|
+
field: props.field,
|
|
24367
24519
|
rowData: props.rowData,
|
|
24368
24520
|
rowIndex: props.rowIndex,
|
|
24369
24521
|
cellIndex: props.index,
|
|
24370
|
-
selected:
|
|
24522
|
+
selected: props.isCellSelected,
|
|
24371
24523
|
column: props.column,
|
|
24372
24524
|
props: props
|
|
24373
24525
|
};
|
|
@@ -24378,20 +24530,6 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24378
24530
|
originalEvent: event
|
|
24379
24531
|
}, params);
|
|
24380
24532
|
};
|
|
24381
|
-
var resolveFieldData = function resolveFieldData(data) {
|
|
24382
|
-
return ObjectUtils.resolveFieldData(data || props.rowData, field);
|
|
24383
|
-
};
|
|
24384
|
-
var getEditingRowData = function getEditingRowData() {
|
|
24385
|
-
return props.editingMeta && props.editingMeta[editingKey] ? props.editingMeta[editingKey].data : props.rowData;
|
|
24386
|
-
};
|
|
24387
|
-
var getTabIndex = function getTabIndex(cellSelected) {
|
|
24388
|
-
return props.allowCellSelection ? cellSelected ? 0 : props.rowIndex === 0 && props.index === 0 ? props.tabIndex : -1 : null;
|
|
24389
|
-
};
|
|
24390
|
-
var findIndex = function findIndex(collection) {
|
|
24391
|
-
return (collection || []).findIndex(function (data) {
|
|
24392
|
-
return equals(data);
|
|
24393
|
-
});
|
|
24394
|
-
};
|
|
24395
24533
|
var closeCell = function closeCell(event) {
|
|
24396
24534
|
var params = getCellCallbackParams(event);
|
|
24397
24535
|
var onBeforeCellEditHide = getColumnProp('onBeforeCellEditHide');
|
|
@@ -24412,7 +24550,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24412
24550
|
var switchCellToViewMode = function switchCellToViewMode(event, submit) {
|
|
24413
24551
|
var callbackParams = getCellCallbackParams(event);
|
|
24414
24552
|
var newRowData = _objectSpread$1i({}, editingRowDataStateRef.current);
|
|
24415
|
-
var newValue = resolveFieldData(newRowData);
|
|
24553
|
+
var newValue = props.resolveFieldData(newRowData);
|
|
24416
24554
|
var params = _objectSpread$1i(_objectSpread$1i({}, callbackParams), {}, {
|
|
24417
24555
|
newRowData: newRowData,
|
|
24418
24556
|
newValue: newValue
|
|
@@ -24437,128 +24575,20 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24437
24575
|
}
|
|
24438
24576
|
setEditingRowDataState(newRowData);
|
|
24439
24577
|
};
|
|
24440
|
-
var _findNextSelectableCell = function findNextSelectableCell(cell) {
|
|
24441
|
-
var nextCell = cell.nextElementSibling;
|
|
24442
|
-
return nextCell ? DomHandler.getAttribute(nextCell, 'data-p-selectable-cell') ? nextCell : _findNextSelectableCell(nextCell) : null;
|
|
24443
|
-
};
|
|
24444
|
-
var _findPrevSelectableCell = function findPrevSelectableCell(cell) {
|
|
24445
|
-
var prevCell = cell.previousElementSibling;
|
|
24446
|
-
return prevCell ? DomHandler.getAttribute(prevCell, 'data-p-selectable-cell') ? prevCell : _findPrevSelectableCell(prevCell) : null;
|
|
24447
|
-
};
|
|
24448
|
-
var _findDownSelectableCell = function findDownSelectableCell(cell) {
|
|
24449
|
-
var downRow = cell.parentElement.nextElementSibling;
|
|
24450
|
-
var downCell = downRow ? downRow.children[props.index] : null;
|
|
24451
|
-
return downRow && downCell ? DomHandler.getAttribute(downRow, 'data-p-selectable-row') && DomHandler.getAttribute(downCell, 'data-p-selectable-cell') ? downCell : _findDownSelectableCell(downCell) : null;
|
|
24452
|
-
};
|
|
24453
|
-
var _findUpSelectableCell = function findUpSelectableCell(cell) {
|
|
24454
|
-
var upRow = cell.parentElement.previousElementSibling;
|
|
24455
|
-
var upCell = upRow ? upRow.children[props.index] : null;
|
|
24456
|
-
return upRow && upCell ? DomHandler.getAttribute(upRow, 'data-p-selectable-row') && DomHandler.getAttribute(upCell, 'data-p-selectable-cell') ? upCell : _findUpSelectableCell(upCell) : null;
|
|
24457
|
-
};
|
|
24458
|
-
var changeTabIndex = function changeTabIndex(currentCell, nextCell) {
|
|
24459
|
-
if (currentCell && nextCell) {
|
|
24460
|
-
currentCell.tabIndex = -1;
|
|
24461
|
-
nextCell.tabIndex = props.tabIndex;
|
|
24462
|
-
}
|
|
24463
|
-
};
|
|
24464
|
-
var focusOnElement = function focusOnElement() {
|
|
24465
|
-
clearTimeout(focusTimeout.current);
|
|
24466
|
-
focusTimeout.current = setTimeout(function () {
|
|
24467
|
-
if (editingState) {
|
|
24468
|
-
var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
|
|
24469
|
-
focusableEl && focusableEl.focus();
|
|
24470
|
-
}
|
|
24471
|
-
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
24472
|
-
}, 1);
|
|
24473
|
-
};
|
|
24474
|
-
var focusOnInit = function focusOnInit() {
|
|
24475
|
-
clearTimeout(initFocusTimeout.current);
|
|
24476
|
-
initFocusTimeout.current = setTimeout(function () {
|
|
24477
|
-
var focusableEl = props.editMode === 'row' ? DomHandler.findSingle(elementRef.current, '[data-p-row-editor-init="true"]') : null;
|
|
24478
|
-
focusableEl && focusableEl.focus();
|
|
24479
|
-
}, 1);
|
|
24480
|
-
};
|
|
24481
|
-
var updateStickyPosition = function updateStickyPosition() {
|
|
24482
|
-
if (getColumnProp('frozen')) {
|
|
24483
|
-
var styleObject = _objectSpread$1i({}, styleObjectState);
|
|
24484
|
-
var align = getColumnProp('alignFrozen');
|
|
24485
|
-
if (align === 'right') {
|
|
24486
|
-
var right = 0;
|
|
24487
|
-
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
24488
|
-
if (next && next.classList.contains('p-frozen-column')) {
|
|
24489
|
-
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
24490
|
-
}
|
|
24491
|
-
styleObject.right = right + 'px';
|
|
24492
|
-
} else {
|
|
24493
|
-
var left = 0;
|
|
24494
|
-
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
24495
|
-
if (prev && prev.classList.contains('p-frozen-column')) {
|
|
24496
|
-
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
24497
|
-
}
|
|
24498
|
-
styleObject.left = left + 'px';
|
|
24499
|
-
}
|
|
24500
|
-
var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
|
|
24501
|
-
!isSameStyle && setStyleObjectState(styleObject);
|
|
24502
|
-
}
|
|
24503
|
-
};
|
|
24504
24578
|
var editorCallback = function editorCallback(val) {
|
|
24505
24579
|
var editingRowData = _objectSpread$1i({}, editingRowDataState);
|
|
24506
|
-
ObjectUtils.mutateFieldData(editingRowData, field, val);
|
|
24580
|
+
ObjectUtils.mutateFieldData(editingRowData, props.field, val);
|
|
24507
24581
|
setEditingRowDataState(editingRowData);
|
|
24508
24582
|
|
|
24509
24583
|
// update editing meta for complete methods on row mode
|
|
24510
|
-
var currentData = getEditingRowData();
|
|
24584
|
+
var currentData = props.getEditingRowData();
|
|
24511
24585
|
if (currentData) {
|
|
24512
|
-
ObjectUtils.mutateFieldData(currentData, field, val);
|
|
24586
|
+
ObjectUtils.mutateFieldData(currentData, props.field, val);
|
|
24513
24587
|
}
|
|
24514
24588
|
editingRowDataStateRef.current = editingRowData;
|
|
24515
24589
|
};
|
|
24516
24590
|
var _onClick = function onClick(event) {
|
|
24517
|
-
|
|
24518
|
-
if (props.editMode !== 'row' && isEditable() && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.selected)) {
|
|
24519
|
-
selfClick.current = true;
|
|
24520
|
-
var onBeforeCellEditShow = getColumnProp('onBeforeCellEditShow');
|
|
24521
|
-
var onCellEditInit = getColumnProp('onCellEditInit');
|
|
24522
|
-
var cellEditValidatorEvent = getColumnProp('cellEditValidatorEvent');
|
|
24523
|
-
if (onBeforeCellEditShow) {
|
|
24524
|
-
// if user returns false do not show the editor
|
|
24525
|
-
if (onBeforeCellEditShow(params) === false) {
|
|
24526
|
-
return;
|
|
24527
|
-
}
|
|
24528
|
-
|
|
24529
|
-
// if user prevents default stop the editor
|
|
24530
|
-
if (event && event.defaultPrevented) {
|
|
24531
|
-
return;
|
|
24532
|
-
}
|
|
24533
|
-
}
|
|
24534
|
-
|
|
24535
|
-
// If the data is sorted using sort icon, it has been added to wait for the sort operation when any cell is wanted to be opened.
|
|
24536
|
-
setTimeout(function () {
|
|
24537
|
-
setEditingState(true);
|
|
24538
|
-
if (onCellEditInit) {
|
|
24539
|
-
if (onCellEditInit(params) === false) {
|
|
24540
|
-
return;
|
|
24541
|
-
}
|
|
24542
|
-
|
|
24543
|
-
// if user prevents default stop the editor
|
|
24544
|
-
if (event && event.defaultPrevented) {
|
|
24545
|
-
return;
|
|
24546
|
-
}
|
|
24547
|
-
}
|
|
24548
|
-
if (cellEditValidatorEvent === 'click') {
|
|
24549
|
-
bindDocumentClickListener();
|
|
24550
|
-
overlayEventListener.current = function (e) {
|
|
24551
|
-
if (!isOutsideClicked(e.target)) {
|
|
24552
|
-
selfClick.current = true;
|
|
24553
|
-
}
|
|
24554
|
-
};
|
|
24555
|
-
OverlayService.on('overlay-click', overlayEventListener.current);
|
|
24556
|
-
}
|
|
24557
|
-
}, 1);
|
|
24558
|
-
}
|
|
24559
|
-
if (props.allowCellSelection && props.onClick) {
|
|
24560
|
-
props.onClick(params);
|
|
24561
|
-
}
|
|
24591
|
+
props.onClick(event, getCellCallbackParams(event), isEditable(), editingState, setEditingState, selfClick, props.column, bindDocumentClickListener, overlayEventListener);
|
|
24562
24592
|
};
|
|
24563
24593
|
var _onMouseDown = function onMouseDown(event) {
|
|
24564
24594
|
var params = getCellCallbackParams(event);
|
|
@@ -24582,7 +24612,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24582
24612
|
cell = event.currentTarget;
|
|
24583
24613
|
switch (event.code) {
|
|
24584
24614
|
case 'ArrowLeft':
|
|
24585
|
-
var prevCell =
|
|
24615
|
+
var prevCell = props.findPrevSelectableCell(cell);
|
|
24586
24616
|
if (prevCell) {
|
|
24587
24617
|
changeTabIndex(cell, prevCell);
|
|
24588
24618
|
prevCell.focus();
|
|
@@ -24590,7 +24620,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24590
24620
|
event.preventDefault();
|
|
24591
24621
|
break;
|
|
24592
24622
|
case 'ArrowRight':
|
|
24593
|
-
var nextCell =
|
|
24623
|
+
var nextCell = props.findNextSelectableCell(cell);
|
|
24594
24624
|
if (nextCell) {
|
|
24595
24625
|
changeTabIndex(cell, nextCell);
|
|
24596
24626
|
nextCell.focus();
|
|
@@ -24598,7 +24628,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24598
24628
|
event.preventDefault();
|
|
24599
24629
|
break;
|
|
24600
24630
|
case 'ArrowUp':
|
|
24601
|
-
var upCell =
|
|
24631
|
+
var upCell = props.findUpSelectableCell(cell, index);
|
|
24602
24632
|
if (upCell) {
|
|
24603
24633
|
changeTabIndex(cell, upCell);
|
|
24604
24634
|
upCell.focus();
|
|
@@ -24606,7 +24636,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24606
24636
|
event.preventDefault();
|
|
24607
24637
|
break;
|
|
24608
24638
|
case 'ArrowDown':
|
|
24609
|
-
var downCell =
|
|
24639
|
+
var downCell = props.findDownSelectableCell(cell, index);
|
|
24610
24640
|
if (downCell) {
|
|
24611
24641
|
changeTabIndex(cell, downCell);
|
|
24612
24642
|
downCell.focus();
|
|
@@ -24645,13 +24675,6 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24645
24675
|
index: props.rowIndex
|
|
24646
24676
|
});
|
|
24647
24677
|
};
|
|
24648
|
-
var onCheckboxChange = function onCheckboxChange(event) {
|
|
24649
|
-
props.onCheckboxChange({
|
|
24650
|
-
originalEvent: event,
|
|
24651
|
-
data: props.rowData,
|
|
24652
|
-
index: props.rowIndex
|
|
24653
|
-
});
|
|
24654
|
-
};
|
|
24655
24678
|
var onRowToggle = function onRowToggle(event) {
|
|
24656
24679
|
props.onRowToggle({
|
|
24657
24680
|
originalEvent: event,
|
|
@@ -24664,8 +24687,8 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24664
24687
|
props.onRowEditInit({
|
|
24665
24688
|
originalEvent: event,
|
|
24666
24689
|
data: props.rowData,
|
|
24667
|
-
newData: getEditingRowData(),
|
|
24668
|
-
field: field,
|
|
24690
|
+
newData: props.getEditingRowData(),
|
|
24691
|
+
field: props.field,
|
|
24669
24692
|
index: props.rowIndex
|
|
24670
24693
|
});
|
|
24671
24694
|
};
|
|
@@ -24673,32 +24696,26 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24673
24696
|
props.onRowEditSave({
|
|
24674
24697
|
originalEvent: event,
|
|
24675
24698
|
data: props.rowData,
|
|
24676
|
-
newData: getEditingRowData(),
|
|
24677
|
-
field: field,
|
|
24699
|
+
newData: props.getEditingRowData(),
|
|
24700
|
+
field: props.field,
|
|
24678
24701
|
index: props.rowIndex
|
|
24679
24702
|
});
|
|
24680
|
-
focusOnInit();
|
|
24703
|
+
props.focusOnInit(initFocusTimeout, elementRef);
|
|
24681
24704
|
};
|
|
24682
24705
|
var onRowEditCancel = function onRowEditCancel(event) {
|
|
24683
24706
|
props.onRowEditCancel({
|
|
24684
24707
|
originalEvent: event,
|
|
24685
24708
|
data: props.rowData,
|
|
24686
|
-
newData: getEditingRowData(),
|
|
24687
|
-
field: field,
|
|
24709
|
+
newData: props.getEditingRowData(),
|
|
24710
|
+
field: props.field,
|
|
24688
24711
|
index: props.rowIndex
|
|
24689
24712
|
});
|
|
24690
|
-
focusOnInit();
|
|
24713
|
+
props.focusOnInit();
|
|
24691
24714
|
};
|
|
24692
24715
|
React__namespace.useEffect(function () {
|
|
24693
|
-
if (
|
|
24694
|
-
|
|
24695
|
-
|
|
24696
|
-
});
|
|
24697
|
-
React__namespace.useEffect(function () {
|
|
24698
|
-
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
24699
|
-
focusOnElement();
|
|
24700
|
-
}
|
|
24701
|
-
}, [props.editMode, props.editing, editingState]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
24716
|
+
if (props.frozenCol) props.updateStickyPosition(elementRef, props.frozenCol, props.alignFrozenCol, styleObjectState, setStyleObjectState);
|
|
24717
|
+
if (props.editMode === 'cell' || props.editMode === 'row') props.focusOnElement(focusTimeout, editingState, elementRef, keyHelperRef);
|
|
24718
|
+
}, [props.editMode, props.editing, editingState, props.frozenCol, props.alignFrozenCol]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
24702
24719
|
|
|
24703
24720
|
React__namespace.useEffect(function () {
|
|
24704
24721
|
if (props.editMode === 'row' && props.editing !== editingState) {
|
|
@@ -24707,7 +24724,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24707
24724
|
}, [props.editMode, props.editing, editingState]);
|
|
24708
24725
|
useUpdateEffect(function () {
|
|
24709
24726
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
24710
|
-
var editingRowData = getEditingRowData();
|
|
24727
|
+
var editingRowData = props.getEditingRowData();
|
|
24711
24728
|
setEditingRowDataState(editingRowData);
|
|
24712
24729
|
editingRowDataStateRef.current = editingRowData;
|
|
24713
24730
|
}
|
|
@@ -24717,7 +24734,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24717
24734
|
var callbackParams = getCellCallbackParams();
|
|
24718
24735
|
var params = _objectSpread$1i(_objectSpread$1i({}, callbackParams), {}, {
|
|
24719
24736
|
editing: editingState,
|
|
24720
|
-
editingKey: editingKey
|
|
24737
|
+
editingKey: props.editingKey
|
|
24721
24738
|
});
|
|
24722
24739
|
props.onEditingMetaChange(params);
|
|
24723
24740
|
}
|
|
@@ -24730,16 +24747,16 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24730
24747
|
}
|
|
24731
24748
|
});
|
|
24732
24749
|
var createLoading = function createLoading() {
|
|
24733
|
-
var options = getVirtualScrollerOption('getLoaderOptions')(props.rowIndex, {
|
|
24750
|
+
var options = props.getVirtualScrollerOption('getLoaderOptions')(props.rowIndex, {
|
|
24734
24751
|
cellIndex: props.index,
|
|
24735
24752
|
cellFirst: props.index === 0,
|
|
24736
|
-
cellLast: props.index === getVirtualScrollerOption('columns').length - 1,
|
|
24753
|
+
cellLast: props.index === props.getVirtualScrollerOption('columns').length - 1,
|
|
24737
24754
|
cellEven: props.index % 2 === 0,
|
|
24738
24755
|
cellOdd: props.index % 2 !== 0,
|
|
24739
24756
|
column: props.column,
|
|
24740
|
-
field: field
|
|
24757
|
+
field: props.field
|
|
24741
24758
|
});
|
|
24742
|
-
var content = ObjectUtils.getJSXElement(getVirtualScrollerOption('loadingTemplate'), options);
|
|
24759
|
+
var content = ObjectUtils.getJSXElement(props.getVirtualScrollerOption('loadingTemplate'), options);
|
|
24743
24760
|
var bodyCellProps = mergeProps(getColumnPTOptions('bodyCell'), {
|
|
24744
24761
|
role: 'cell'
|
|
24745
24762
|
});
|
|
@@ -24748,20 +24765,20 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24748
24765
|
var createElement = function createElement() {
|
|
24749
24766
|
var content;
|
|
24750
24767
|
var editorKeyHelper;
|
|
24751
|
-
var cellSelected = props.allowCellSelection &&
|
|
24768
|
+
var cellSelected = props.allowCellSelection && props.isCellSelected;
|
|
24752
24769
|
var isRowEditor = props.editMode === 'row';
|
|
24753
|
-
var tabIndex = getTabIndex(cellSelected);
|
|
24770
|
+
var tabIndex = props.getTabIndex(cellSelected, props.index);
|
|
24754
24771
|
var selectionMode = getColumnProp('selectionMode');
|
|
24755
24772
|
var rowReorder = getColumnProp('rowReorder');
|
|
24756
24773
|
var header = getColumnProp('header');
|
|
24757
24774
|
var body = getColumnProp('body');
|
|
24758
24775
|
var editor = getColumnProp('editor');
|
|
24759
|
-
var frozen =
|
|
24776
|
+
var frozen = props.frozenCol;
|
|
24760
24777
|
var align = getColumnProp('align');
|
|
24761
|
-
var value = resolveFieldData();
|
|
24778
|
+
var value = props.resolveFieldData();
|
|
24762
24779
|
var columnBodyOptions = {
|
|
24763
24780
|
column: props.column,
|
|
24764
|
-
field: field,
|
|
24781
|
+
field: props.field,
|
|
24765
24782
|
rowIndex: props.rowIndex,
|
|
24766
24783
|
frozenRow: props.frozenRow,
|
|
24767
24784
|
props: props.tableProps
|
|
@@ -24786,12 +24803,12 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24786
24803
|
if (showSelection) {
|
|
24787
24804
|
var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
|
|
24788
24805
|
var ariaLabelText = ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
|
|
24789
|
-
label = "".concat(props.
|
|
24806
|
+
label = "".concat(props.isRowSelected ? ariaLabel('unselectRow') : ariaLabel('selectRow'), " ").concat(ariaLabelText);
|
|
24790
24807
|
}
|
|
24791
24808
|
content = showSelection && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React__namespace.createElement(RowRadioButton, {
|
|
24792
24809
|
hostName: props.hostName,
|
|
24793
24810
|
column: props.column,
|
|
24794
|
-
checked: props.
|
|
24811
|
+
checked: props.isRowSelected,
|
|
24795
24812
|
disabled: !props.isSelectable({
|
|
24796
24813
|
data: props.rowData,
|
|
24797
24814
|
index: props.rowIndex
|
|
@@ -24806,12 +24823,12 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24806
24823
|
}), selectionMode === 'multiple' && /*#__PURE__*/React__namespace.createElement(RowCheckbox, {
|
|
24807
24824
|
hostName: props.hostName,
|
|
24808
24825
|
column: props.column,
|
|
24809
|
-
checked: props.
|
|
24826
|
+
checked: props.isRowSelected,
|
|
24810
24827
|
disabled: !props.isSelectable({
|
|
24811
24828
|
data: props.rowData,
|
|
24812
24829
|
index: props.rowIndex
|
|
24813
24830
|
}),
|
|
24814
|
-
onChange: onCheckboxChange,
|
|
24831
|
+
onChange: props.onCheckboxChange,
|
|
24815
24832
|
tabIndex: props.tabIndex,
|
|
24816
24833
|
ariaLabel: label,
|
|
24817
24834
|
checkIcon: props.checkIcon,
|
|
@@ -24861,7 +24878,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24861
24878
|
expanderProps.element = content;
|
|
24862
24879
|
content = ObjectUtils.getJSXElement(body, props.rowData, {
|
|
24863
24880
|
column: props.column,
|
|
24864
|
-
field: field,
|
|
24881
|
+
field: props.field,
|
|
24865
24882
|
rowIndex: props.rowIndex,
|
|
24866
24883
|
frozenRow: props.frozenRow,
|
|
24867
24884
|
props: props.tableProps,
|
|
@@ -24935,7 +24952,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24935
24952
|
rowEditorProps.element = content;
|
|
24936
24953
|
content = ObjectUtils.getJSXElement(body, props.rowData, {
|
|
24937
24954
|
column: props.column,
|
|
24938
|
-
field: field,
|
|
24955
|
+
field: props.field,
|
|
24939
24956
|
rowIndex: props.rowIndex,
|
|
24940
24957
|
frozenRow: props.frozenRow,
|
|
24941
24958
|
props: props.tableProps,
|
|
@@ -24945,7 +24962,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24945
24962
|
} else if (body && (!editingState || !editor)) {
|
|
24946
24963
|
content = body ? ObjectUtils.getJSXElement(body, props.rowData, {
|
|
24947
24964
|
column: props.column,
|
|
24948
|
-
field: field,
|
|
24965
|
+
field: props.field,
|
|
24949
24966
|
rowIndex: props.rowIndex,
|
|
24950
24967
|
frozenRow: props.frozenRow,
|
|
24951
24968
|
props: props.tableProps
|
|
@@ -24953,9 +24970,9 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24953
24970
|
} else if (editor && editingState) {
|
|
24954
24971
|
content = ObjectUtils.getJSXElement(editor, {
|
|
24955
24972
|
rowData: editingRowDataState,
|
|
24956
|
-
value: resolveFieldData(editingRowDataState),
|
|
24973
|
+
value: props.resolveFieldData(editingRowDataState),
|
|
24957
24974
|
column: props.column,
|
|
24958
|
-
field: field,
|
|
24975
|
+
field: props.field,
|
|
24959
24976
|
rowIndex: props.rowIndex,
|
|
24960
24977
|
frozenRow: props.frozenRow,
|
|
24961
24978
|
props: props.tableProps,
|
|
@@ -25023,7 +25040,22 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
25023
25040
|
ref: elementRef
|
|
25024
25041
|
}, bodyCellProps), editorKeyHelper, title, content);
|
|
25025
25042
|
};
|
|
25026
|
-
return getVirtualScrollerOption('loading') ? createLoading() : createElement();
|
|
25043
|
+
return props.getVirtualScrollerOption('loading') ? createLoading() : createElement();
|
|
25044
|
+
};
|
|
25045
|
+
|
|
25046
|
+
// RadioCheckCell is used for the Radio and Checkbox selection and has the isRowSelected dependency
|
|
25047
|
+
var RadioCheckCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
25048
|
+
return /*#__PURE__*/React__namespace.createElement(Cell, props);
|
|
25049
|
+
}, function (prevProps, nextProps) {
|
|
25050
|
+
var keysToCompare = ['isRowSelected', 'field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData'];
|
|
25051
|
+
return ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
|
|
25052
|
+
});
|
|
25053
|
+
RadioCheckCell.displayName = 'RadioCheckCell';
|
|
25054
|
+
var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
25055
|
+
return /*#__PURE__*/React__namespace.createElement(Cell, props);
|
|
25056
|
+
}, function (prevProps, nextProps) {
|
|
25057
|
+
var keysToCompare = ['field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData', 'frozenCol', 'alignFrozenCol'];
|
|
25058
|
+
return ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
|
|
25027
25059
|
});
|
|
25028
25060
|
BodyCell.displayName = 'BodyCell';
|
|
25029
25061
|
|
|
@@ -25039,6 +25071,7 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
25039
25071
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
25040
25072
|
ptm = _props$ptCallbacks.ptm,
|
|
25041
25073
|
cx = _props$ptCallbacks.cx;
|
|
25074
|
+
var isRowSelected = !props.allowCellSelection && props.selected || props.contextMenuSelected;
|
|
25042
25075
|
var getBodyRowPTOptions = function getBodyRowPTOptions(key) {
|
|
25043
25076
|
return ptm(key, {
|
|
25044
25077
|
parent: props.metaData,
|
|
@@ -25052,7 +25085,7 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
25052
25085
|
data: props.rowData,
|
|
25053
25086
|
index: props.rowIndex
|
|
25054
25087
|
}),
|
|
25055
|
-
selected:
|
|
25088
|
+
selected: isRowSelected,
|
|
25056
25089
|
stripedRows: props.metaData.props.stripedRows
|
|
25057
25090
|
}
|
|
25058
25091
|
});
|
|
@@ -25081,10 +25114,10 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
25081
25114
|
return equals(rowData, data);
|
|
25082
25115
|
});
|
|
25083
25116
|
};
|
|
25084
|
-
var changeTabIndex = function changeTabIndex(
|
|
25085
|
-
if (
|
|
25086
|
-
|
|
25087
|
-
|
|
25117
|
+
var changeTabIndex = function changeTabIndex(currentElement, nextElement) {
|
|
25118
|
+
if (currentElement && nextElement) {
|
|
25119
|
+
currentElement.tabIndex = -1;
|
|
25120
|
+
nextElement.tabIndex = props.tabIndex;
|
|
25088
25121
|
}
|
|
25089
25122
|
};
|
|
25090
25123
|
var findFirstSelectableRow = function findFirstSelectableRow(row) {
|
|
@@ -25411,32 +25444,176 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
25411
25444
|
onEditChange(e, false);
|
|
25412
25445
|
event.preventDefault();
|
|
25413
25446
|
};
|
|
25447
|
+
var equalsDataCell = function equalsDataCell(data) {
|
|
25448
|
+
return props.compareSelectionBy === 'equals' ? data === props.rowData : ObjectUtils.equals(data, props.rowData, props.dataKey);
|
|
25449
|
+
};
|
|
25450
|
+
var equalsCell = function equalsCell(selectedCell, field, colIndex) {
|
|
25451
|
+
return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsDataCell(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === colIndex);
|
|
25452
|
+
};
|
|
25453
|
+
var findIndexCell = function findIndexCell(collection, field, colIndex) {
|
|
25454
|
+
return (collection || []).findIndex(function (data) {
|
|
25455
|
+
return equalsCell(data, field, colIndex);
|
|
25456
|
+
});
|
|
25457
|
+
};
|
|
25458
|
+
var isCellSelected = function isCellSelected(selection, field, colIndex) {
|
|
25459
|
+
return selection ? selection instanceof Array ? findIndexCell(selection, field, colIndex) > -1 : equalsCell(selection, field, colIndex) : false;
|
|
25460
|
+
};
|
|
25461
|
+
var onCheckboxChange = function onCheckboxChange(event) {
|
|
25462
|
+
props.onCheckboxChange({
|
|
25463
|
+
originalEvent: event,
|
|
25464
|
+
data: props.rowData,
|
|
25465
|
+
index: props.rowIndex
|
|
25466
|
+
});
|
|
25467
|
+
};
|
|
25468
|
+
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
25469
|
+
var getVirtualScrollerOption = React__namespace.useCallback(function (option) {
|
|
25470
|
+
return props.virtualScrollerOptions ? props.virtualScrollerOptions[option] : null;
|
|
25471
|
+
}, [props.virtualScrollerOptions]);
|
|
25472
|
+
var getEditingRowData = function getEditingRowData() {
|
|
25473
|
+
return props.editingMeta && props.editingMeta[editingKey] ? props.editingMeta[editingKey].data : props.rowData;
|
|
25474
|
+
};
|
|
25475
|
+
var getTabIndexCell = React__namespace.useCallback(function (cellSelected, cellIndex) {
|
|
25476
|
+
return props.allowCellSelection ? cellSelected ? 0 : props.rowIndex === 0 && cellIndex === 0 ? props.tabIndex : -1 : null;
|
|
25477
|
+
}, [props.allowCellSelection, props.rowIndex, props.tabIndex]);
|
|
25478
|
+
var findNextSelectableCell = React__namespace.useCallback(function (cell) {
|
|
25479
|
+
var nextCell = cell.nextElementSibling;
|
|
25480
|
+
return nextCell ? DomHandler.getAttribute(nextCell, 'data-p-selectable-cell') ? nextCell : findNextSelectableCell(nextCell) : null;
|
|
25481
|
+
}, []);
|
|
25482
|
+
var findPrevSelectableCell = React__namespace.useCallback(function (cell) {
|
|
25483
|
+
var prevCell = cell.previousElementSibling;
|
|
25484
|
+
return prevCell ? DomHandler.getAttribute(prevCell, 'data-p-selectable-cell') ? prevCell : findPrevSelectableCell(prevCell) : null;
|
|
25485
|
+
}, []);
|
|
25486
|
+
var findDownSelectableCell = React__namespace.useCallback(function (cell, cellIndex) {
|
|
25487
|
+
var downRow = cell.parentElement.nextElementSibling;
|
|
25488
|
+
var downCell = downRow ? downRow.children[cellIndex] : null;
|
|
25489
|
+
return downRow && downCell ? DomHandler.getAttribute(downRow, 'data-p-selectable-row') && DomHandler.getAttribute(downCell, 'data-p-selectable-cell') ? downCell : findDownSelectableCell(downCell) : null;
|
|
25490
|
+
}, []);
|
|
25491
|
+
var findUpSelectableCell = React__namespace.useCallback(function (cell, cellIndex) {
|
|
25492
|
+
var upRow = cell.parentElement.previousElementSibling;
|
|
25493
|
+
var upCell = upRow ? upRow.children[cellIndex] : null;
|
|
25494
|
+
return upRow && upCell ? DomHandler.getAttribute(upRow, 'data-p-selectable-row') && DomHandler.getAttribute(upCell, 'data-p-selectable-cell') ? upCell : findUpSelectableCell(upCell) : null;
|
|
25495
|
+
}, []);
|
|
25496
|
+
var focusOnElement = React__namespace.useCallback(function (focusTimeoutRef, editingState, elementRef, keyHelperRef) {
|
|
25497
|
+
clearTimeout(focusTimeoutRef.current);
|
|
25498
|
+
focusTimeoutRef.current = setTimeout(function () {
|
|
25499
|
+
if (editingState) {
|
|
25500
|
+
var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
|
|
25501
|
+
focusableEl && focusableEl.focus();
|
|
25502
|
+
}
|
|
25503
|
+
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
25504
|
+
}, 1);
|
|
25505
|
+
}, [props.editMode]);
|
|
25506
|
+
var focusOnInit = React__namespace.useCallback(function (initFocusTimeoutRef, elementRef) {
|
|
25507
|
+
clearTimeout(initFocusTimeoutRef.current);
|
|
25508
|
+
initFocusTimeoutRef.current = setTimeout(function () {
|
|
25509
|
+
var focusableEl = props.editMode === 'row' ? DomHandler.findSingle(elementRef.current, '[data-p-row-editor-init="true"]') : null;
|
|
25510
|
+
focusableEl && focusableEl.focus();
|
|
25511
|
+
}, 1);
|
|
25512
|
+
}, [props.editMode]);
|
|
25513
|
+
var updateStickyPosition = React__namespace.useCallback(function (elementRef, frozen, alignFrozen, styleObjectState, setStyleObjectState) {
|
|
25514
|
+
if (frozen) {
|
|
25515
|
+
var styleObject = _objectSpread$1h({}, styleObjectState);
|
|
25516
|
+
if (alignFrozen === 'right') {
|
|
25517
|
+
var right = 0;
|
|
25518
|
+
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
25519
|
+
if (next && next.classList.contains('p-frozen-column')) {
|
|
25520
|
+
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
25521
|
+
}
|
|
25522
|
+
styleObject.right = right + 'px';
|
|
25523
|
+
} else {
|
|
25524
|
+
var left = 0;
|
|
25525
|
+
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
25526
|
+
if (prev && prev.classList.contains('p-frozen-column')) {
|
|
25527
|
+
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
25528
|
+
}
|
|
25529
|
+
styleObject.left = left + 'px';
|
|
25530
|
+
}
|
|
25531
|
+
var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
|
|
25532
|
+
!isSameStyle && setStyleObjectState(styleObject);
|
|
25533
|
+
}
|
|
25534
|
+
}, []);
|
|
25535
|
+
var onCellClick = function onCellClick(event, params, isEditable, editingState, setEditingState, selfClick, column, bindDocumentClickListener, overlayEventListener) {
|
|
25536
|
+
if (props.editMode !== 'row' && isEditable && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.isRowSelected)) {
|
|
25537
|
+
selfClick.current = true;
|
|
25538
|
+
var onBeforeCellEditShow = getColumnProp(column, 'onBeforeCellEditShow');
|
|
25539
|
+
var onCellEditInit = getColumnProp(column, 'onCellEditInit');
|
|
25540
|
+
var cellEditValidatorEvent = getColumnProp(column, 'cellEditValidatorEvent');
|
|
25541
|
+
if (onBeforeCellEditShow) {
|
|
25542
|
+
// if user returns false do not show the editor
|
|
25543
|
+
if (onBeforeCellEditShow(params) === false) {
|
|
25544
|
+
return;
|
|
25545
|
+
}
|
|
25546
|
+
|
|
25547
|
+
// if user prevents default stop the editor
|
|
25548
|
+
if (event && event.defaultPrevented) {
|
|
25549
|
+
return;
|
|
25550
|
+
}
|
|
25551
|
+
}
|
|
25552
|
+
|
|
25553
|
+
// If the data is sorted using sort icon, it has been added to wait for the sort operation when any cell is wanted to be opened.
|
|
25554
|
+
setTimeout(function () {
|
|
25555
|
+
setEditingState(true);
|
|
25556
|
+
if (onCellEditInit) {
|
|
25557
|
+
if (onCellEditInit(params) === false) {
|
|
25558
|
+
return;
|
|
25559
|
+
}
|
|
25560
|
+
|
|
25561
|
+
// if user prevents default stop the editor
|
|
25562
|
+
if (event && event.defaultPrevented) {
|
|
25563
|
+
return;
|
|
25564
|
+
}
|
|
25565
|
+
}
|
|
25566
|
+
if (cellEditValidatorEvent === 'click') {
|
|
25567
|
+
bindDocumentClickListener();
|
|
25568
|
+
overlayEventListener.current = function (e) {
|
|
25569
|
+
if (!isOutsideClicked(e.target)) {
|
|
25570
|
+
selfClick.current = true;
|
|
25571
|
+
}
|
|
25572
|
+
};
|
|
25573
|
+
OverlayService.on('overlay-click', overlayEventListener.current);
|
|
25574
|
+
}
|
|
25575
|
+
}, 1);
|
|
25576
|
+
}
|
|
25577
|
+
if (props.allowCellSelection && props.onCellClick) {
|
|
25578
|
+
props.onCellClick(params);
|
|
25579
|
+
}
|
|
25580
|
+
};
|
|
25414
25581
|
var createContent = function createContent() {
|
|
25415
25582
|
return props.columns.map(function (col, i) {
|
|
25416
25583
|
if (shouldRenderBodyCell(props.value, col, props.index)) {
|
|
25417
25584
|
var key = "".concat(props.rowIndex, "_").concat(getColumnProp(col, 'columnKey') || getColumnProp(col, 'field'), "_").concat(i);
|
|
25418
25585
|
var rowSpan = props.rowGroupMode === 'rowspan' ? calculateRowGroupSize(props.value, col, props.index) : null;
|
|
25419
|
-
|
|
25586
|
+
var field = getColumnProp(col, 'field') || "field_".concat(i);
|
|
25587
|
+
var resolveFieldData = function resolveFieldData(data) {
|
|
25588
|
+
return ObjectUtils.resolveFieldData(data || props.rowData, field);
|
|
25589
|
+
};
|
|
25590
|
+
var selectionMode = getColumnProp(col, 'selectionMode');
|
|
25591
|
+
var cellProps = mergeProps({
|
|
25420
25592
|
hostName: props.hostName,
|
|
25421
|
-
key: key,
|
|
25422
25593
|
allowCellSelection: props.allowCellSelection,
|
|
25423
25594
|
cellClassName: props.cellClassName,
|
|
25424
25595
|
checkIcon: props.checkIcon,
|
|
25425
25596
|
collapsedRowIcon: props.collapsedRowIcon,
|
|
25597
|
+
field: field,
|
|
25598
|
+
resolveFieldData: resolveFieldData,
|
|
25426
25599
|
column: col,
|
|
25427
|
-
|
|
25600
|
+
cProps: props.colsProps[i],
|
|
25428
25601
|
dataKey: props.dataKey,
|
|
25429
25602
|
editMode: props.editMode,
|
|
25430
25603
|
editing: editing,
|
|
25431
25604
|
editingMeta: props.editingMeta,
|
|
25605
|
+
onEditingMetaChange: props.onEditingMetaChange,
|
|
25606
|
+
editingKey: editingKey,
|
|
25607
|
+
getEditingRowData: getEditingRowData,
|
|
25432
25608
|
expanded: props.expanded,
|
|
25433
25609
|
expandedRowIcon: props.expandedRowIcon,
|
|
25434
25610
|
frozenRow: props.frozenRow,
|
|
25611
|
+
frozenCol: getColumnProp(col, 'frozen'),
|
|
25612
|
+
alignFrozenCol: getColumnProp(col, 'alignFrozen'),
|
|
25435
25613
|
index: i,
|
|
25436
25614
|
isSelectable: props.isSelectable,
|
|
25437
|
-
onCheckboxChange:
|
|
25438
|
-
onClick:
|
|
25439
|
-
onEditingMetaChange: props.onEditingMetaChange,
|
|
25615
|
+
onCheckboxChange: onCheckboxChange,
|
|
25616
|
+
onClick: onCellClick,
|
|
25440
25617
|
onMouseDown: props.onCellMouseDown,
|
|
25441
25618
|
onMouseUp: props.onCellMouseUp,
|
|
25442
25619
|
onRadioChange: props.onRadioChange,
|
|
@@ -25452,20 +25629,31 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
25452
25629
|
rowIndex: props.rowIndex,
|
|
25453
25630
|
rowSpan: rowSpan,
|
|
25454
25631
|
selectOnEdit: props.selectOnEdit,
|
|
25455
|
-
|
|
25456
|
-
|
|
25632
|
+
isRowSelected: isRowSelected,
|
|
25633
|
+
isCellSelected: isCellSelected(props.selection, field, i),
|
|
25457
25634
|
selectionAriaLabel: props.tableProps.selectionAriaLabel,
|
|
25458
25635
|
showRowReorderElement: props.showRowReorderElement,
|
|
25459
25636
|
showSelectionElement: props.showSelectionElement,
|
|
25460
25637
|
tabIndex: props.tabIndex,
|
|
25638
|
+
getTabIndex: getTabIndexCell,
|
|
25461
25639
|
tableProps: props.tableProps,
|
|
25462
25640
|
tableSelector: props.tableSelector,
|
|
25463
25641
|
value: props.value,
|
|
25464
|
-
|
|
25642
|
+
getVirtualScrollerOption: getVirtualScrollerOption,
|
|
25465
25643
|
ptCallbacks: props.ptCallbacks,
|
|
25466
25644
|
metaData: props.metaData,
|
|
25467
|
-
unstyled: props.unstyled
|
|
25645
|
+
unstyled: props.unstyled,
|
|
25646
|
+
findNextSelectableCell: findNextSelectableCell,
|
|
25647
|
+
findPrevSelectableCell: findPrevSelectableCell,
|
|
25648
|
+
findDownSelectableCell: findDownSelectableCell,
|
|
25649
|
+
findUpSelectableCell: findUpSelectableCell,
|
|
25650
|
+
focusOnElement: focusOnElement,
|
|
25651
|
+
focusOnInit: focusOnInit,
|
|
25652
|
+
updateStickyPosition: updateStickyPosition
|
|
25468
25653
|
});
|
|
25654
|
+
return /*#__PURE__*/React__namespace.createElement(React.Fragment, {
|
|
25655
|
+
key: key
|
|
25656
|
+
}, selectionMode ? /*#__PURE__*/React__namespace.createElement(RadioCheckCell, cellProps) : /*#__PURE__*/React__namespace.createElement(BodyCell, cellProps));
|
|
25469
25657
|
}
|
|
25470
25658
|
return null;
|
|
25471
25659
|
});
|
|
@@ -25615,8 +25803,11 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25615
25803
|
var getColumnProps = function getColumnProps(column) {
|
|
25616
25804
|
return ColumnBase.getCProps(column);
|
|
25617
25805
|
};
|
|
25806
|
+
var cProps = getColumnProps(props.column);
|
|
25807
|
+
var colsProps = props.columns ? props.columns.map(function (col) {
|
|
25808
|
+
return getColumnProps(col);
|
|
25809
|
+
}) : [];
|
|
25618
25810
|
var getColumnPTOptions = function getColumnPTOptions(key) {
|
|
25619
|
-
var cProps = getColumnProps(props.column);
|
|
25620
25811
|
var columnMetaData = {
|
|
25621
25812
|
props: cProps,
|
|
25622
25813
|
parent: props.metaData,
|
|
@@ -25741,8 +25932,12 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25741
25932
|
var allowSelection = function allowSelection(event) {
|
|
25742
25933
|
return !DomHandler.isClickable(event.originalEvent.target);
|
|
25743
25934
|
};
|
|
25935
|
+
var metaKeySelectionRef = React__namespace.useRef(props.metaKeySelection);
|
|
25936
|
+
React__namespace.useEffect(function () {
|
|
25937
|
+
metaKeySelectionRef.current = props.metaKeySelection;
|
|
25938
|
+
}, [props.metaKeySelection]);
|
|
25744
25939
|
var allowMetaKeySelection = function allowMetaKeySelection(event) {
|
|
25745
|
-
return !rowTouched.current && (!
|
|
25940
|
+
return !rowTouched.current && (!metaKeySelectionRef.current || metaKeySelectionRef.current && (event.originalEvent.metaKey || event.originalEvent.ctrlKey));
|
|
25746
25941
|
};
|
|
25747
25942
|
var allowRangeSelection = function allowRangeSelection(event) {
|
|
25748
25943
|
return isMultipleSelection() && event.originalEvent.shiftKey && anchorRowIndex.current !== null;
|
|
@@ -25763,6 +25958,9 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25763
25958
|
options = options || props.virtualScrollerOptions;
|
|
25764
25959
|
return options ? options[option] : null;
|
|
25765
25960
|
};
|
|
25961
|
+
var getProcessedDataIndex = function getProcessedDataIndex(rowIndex) {
|
|
25962
|
+
return props.lazy ? rowIndex - props.first : rowIndex;
|
|
25963
|
+
};
|
|
25766
25964
|
var findIndex = function findIndex(collection, rowData) {
|
|
25767
25965
|
return (collection || []).findIndex(function (data) {
|
|
25768
25966
|
return equals(rowData, data);
|
|
@@ -25812,6 +26010,10 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25812
26010
|
});
|
|
25813
26011
|
}
|
|
25814
26012
|
};
|
|
26013
|
+
var selectionRef = React__namespace.useRef(props.selection);
|
|
26014
|
+
React__namespace.useEffect(function () {
|
|
26015
|
+
selectionRef.current = props.selection;
|
|
26016
|
+
}, [props.selection]);
|
|
25815
26017
|
var onSingleSelection = function onSingleSelection(_ref) {
|
|
25816
26018
|
var originalEvent = _ref.originalEvent,
|
|
25817
26019
|
data = _ref.data,
|
|
@@ -25825,10 +26027,11 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25825
26027
|
return;
|
|
25826
26028
|
}
|
|
25827
26029
|
var selected = isSelected(data);
|
|
25828
|
-
var
|
|
26030
|
+
var currentSelection = selectionRef.current || [];
|
|
26031
|
+
var newSelection = currentSelection;
|
|
25829
26032
|
if (selected) {
|
|
25830
26033
|
if (toggleable) {
|
|
25831
|
-
|
|
26034
|
+
newSelection = null;
|
|
25832
26035
|
onUnselect({
|
|
25833
26036
|
originalEvent: originalEvent,
|
|
25834
26037
|
data: data,
|
|
@@ -25836,7 +26039,7 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25836
26039
|
});
|
|
25837
26040
|
}
|
|
25838
26041
|
} else {
|
|
25839
|
-
|
|
26042
|
+
newSelection = data;
|
|
25840
26043
|
onSelect({
|
|
25841
26044
|
originalEvent: originalEvent,
|
|
25842
26045
|
data: data,
|
|
@@ -25844,10 +26047,10 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25844
26047
|
});
|
|
25845
26048
|
}
|
|
25846
26049
|
focusOnElement(originalEvent, true);
|
|
25847
|
-
if (props.onSelectionChange &&
|
|
26050
|
+
if (props.onSelectionChange && newSelection !== currentSelection) {
|
|
25848
26051
|
props.onSelectionChange({
|
|
25849
26052
|
originalEvent: originalEvent,
|
|
25850
|
-
value:
|
|
26053
|
+
value: newSelection,
|
|
25851
26054
|
type: type
|
|
25852
26055
|
});
|
|
25853
26056
|
}
|
|
@@ -25865,11 +26068,12 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25865
26068
|
return;
|
|
25866
26069
|
}
|
|
25867
26070
|
var selected = isSelected(data);
|
|
25868
|
-
var
|
|
26071
|
+
var currentSelection = selectionRef.current || [];
|
|
26072
|
+
var newSelection = currentSelection;
|
|
25869
26073
|
if (selected) {
|
|
25870
26074
|
if (toggleable) {
|
|
25871
|
-
var selectionIndex = findIndex(
|
|
25872
|
-
|
|
26075
|
+
var selectionIndex = findIndex(currentSelection, data);
|
|
26076
|
+
newSelection = currentSelection.filter(function (val, i) {
|
|
25873
26077
|
return i !== selectionIndex;
|
|
25874
26078
|
});
|
|
25875
26079
|
onUnselect({
|
|
@@ -25877,15 +26081,15 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25877
26081
|
data: data,
|
|
25878
26082
|
type: type
|
|
25879
26083
|
});
|
|
25880
|
-
} else if (
|
|
25881
|
-
|
|
26084
|
+
} else if (currentSelection.length) {
|
|
26085
|
+
currentSelection.forEach(function (d) {
|
|
25882
26086
|
return onUnselect({
|
|
25883
26087
|
originalEvent: originalEvent,
|
|
25884
26088
|
data: d,
|
|
25885
26089
|
type: type
|
|
25886
26090
|
});
|
|
25887
26091
|
});
|
|
25888
|
-
|
|
26092
|
+
newSelection = [data];
|
|
25889
26093
|
onSelect({
|
|
25890
26094
|
originalEvent: originalEvent,
|
|
25891
26095
|
data: data,
|
|
@@ -25893,18 +26097,18 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25893
26097
|
});
|
|
25894
26098
|
}
|
|
25895
26099
|
} else {
|
|
25896
|
-
|
|
25897
|
-
|
|
26100
|
+
newSelection = ObjectUtils.isObject(currentSelection) ? [currentSelection] : currentSelection;
|
|
26101
|
+
newSelection = toggleable && isMultipleSelection() ? [].concat(_toConsumableArray(newSelection), [data]) : [data];
|
|
25898
26102
|
onSelect({
|
|
25899
26103
|
originalEvent: originalEvent,
|
|
25900
26104
|
data: data,
|
|
25901
26105
|
type: type
|
|
25902
26106
|
});
|
|
25903
26107
|
}
|
|
25904
|
-
if (props.onSelectionChange &&
|
|
26108
|
+
if (props.onSelectionChange && newSelection !== currentSelection) {
|
|
25905
26109
|
props.onSelectionChange({
|
|
25906
26110
|
originalEvent: originalEvent,
|
|
25907
|
-
value:
|
|
26111
|
+
value: newSelection,
|
|
25908
26112
|
type: type
|
|
25909
26113
|
});
|
|
25910
26114
|
}
|
|
@@ -25927,14 +26131,16 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25927
26131
|
var rangeStart;
|
|
25928
26132
|
var rangeEnd;
|
|
25929
26133
|
var isAllowCellSelection = allowCellSelection();
|
|
25930
|
-
|
|
25931
|
-
|
|
25932
|
-
|
|
25933
|
-
|
|
25934
|
-
|
|
25935
|
-
|
|
26134
|
+
var rangeRowIndexInProcessedData = getProcessedDataIndex(rangeRowIndex.current);
|
|
26135
|
+
var anchorRowIndexInProcessedData = getProcessedDataIndex(anchorRowIndex.current);
|
|
26136
|
+
if (rangeRowIndexInProcessedData > anchorRowIndexInProcessedData) {
|
|
26137
|
+
rangeStart = anchorRowIndexInProcessedData;
|
|
26138
|
+
rangeEnd = rangeRowIndexInProcessedData;
|
|
26139
|
+
} else if (rangeRowIndexInProcessedData < anchorRowIndexInProcessedData) {
|
|
26140
|
+
rangeStart = rangeRowIndexInProcessedData;
|
|
26141
|
+
rangeEnd = anchorRowIndexInProcessedData;
|
|
25936
26142
|
} else {
|
|
25937
|
-
rangeStart = rangeEnd =
|
|
26143
|
+
rangeStart = rangeEnd = rangeRowIndexInProcessedData;
|
|
25938
26144
|
}
|
|
25939
26145
|
return isAllowCellSelection ? selectRangeOnCell(event, rangeStart, rangeEnd) : selectRangeOnRow(event, rangeStart, rangeEnd);
|
|
25940
26146
|
};
|
|
@@ -25975,7 +26181,7 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25975
26181
|
for (var i = rowRangeStart; i <= rowRangeEnd; i++) {
|
|
25976
26182
|
var rowData = value[i];
|
|
25977
26183
|
var columns = props.columns;
|
|
25978
|
-
var rowIndex = props.
|
|
26184
|
+
var rowIndex = props.lazy ? i + props.first : i;
|
|
25979
26185
|
for (var j = cellRangeStart; j <= cellRangeEnd; j++) {
|
|
25980
26186
|
var field = getColumnProp(columns[j], 'field');
|
|
25981
26187
|
var _value = ObjectUtils.resolveFieldData(rowData, field);
|
|
@@ -26440,7 +26646,7 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
26440
26646
|
var emptyMessageProps = mergeProps({
|
|
26441
26647
|
className: cx('emptyMessage'),
|
|
26442
26648
|
role: 'row'
|
|
26443
|
-
},
|
|
26649
|
+
}, ptm('emptyMessage'));
|
|
26444
26650
|
var bodyCellProps = mergeProps({
|
|
26445
26651
|
colSpan: colSpan,
|
|
26446
26652
|
role: 'cell'
|
|
@@ -26450,7 +26656,7 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
26450
26656
|
return null;
|
|
26451
26657
|
};
|
|
26452
26658
|
var createGroupHeader = function createGroupHeader(rowData, rowIndex, expanded, colSpan) {
|
|
26453
|
-
if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, rowIndex
|
|
26659
|
+
if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, getProcessedDataIndex(rowIndex))) {
|
|
26454
26660
|
var style = rowGroupHeaderStyle();
|
|
26455
26661
|
var toggler = props.expandableRowGroups && /*#__PURE__*/React__namespace.createElement(RowTogglerButton, {
|
|
26456
26662
|
hostName: props.hostName,
|
|
@@ -26477,14 +26683,14 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
26477
26683
|
}, getColumnPTOptions('root'), getColumnPTOptions('bodyCell'));
|
|
26478
26684
|
var rowGroupHeaderNameProps = mergeProps({
|
|
26479
26685
|
className: cx('rowGroupHeaderName')
|
|
26480
|
-
},
|
|
26686
|
+
}, ptm('rowGroupHeaderName'));
|
|
26481
26687
|
_content2 = /*#__PURE__*/React__namespace.createElement("td", bodyCellProps, toggler, /*#__PURE__*/React__namespace.createElement("span", rowGroupHeaderNameProps, _content2));
|
|
26482
26688
|
}
|
|
26483
26689
|
var rowGroupHeaderProps = mergeProps({
|
|
26484
26690
|
className: cx('rowGroupHeader'),
|
|
26485
26691
|
style: style,
|
|
26486
26692
|
role: 'row'
|
|
26487
|
-
},
|
|
26693
|
+
}, ptm('rowGroupHeader'));
|
|
26488
26694
|
return /*#__PURE__*/React__namespace.createElement("tr", rowGroupHeaderProps, _content2);
|
|
26489
26695
|
}
|
|
26490
26696
|
return null;
|
|
@@ -26504,6 +26710,7 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
26504
26710
|
checkIcon: props.checkIcon,
|
|
26505
26711
|
collapsedRowIcon: props.collapsedRowIcon,
|
|
26506
26712
|
columns: props.columns,
|
|
26713
|
+
colsProps: colsProps,
|
|
26507
26714
|
compareSelectionBy: props.compareSelectionBy,
|
|
26508
26715
|
contextMenuSelected: contextMenuSelected,
|
|
26509
26716
|
dataKey: props.dataKey,
|
|
@@ -26592,7 +26799,7 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
26592
26799
|
id: id,
|
|
26593
26800
|
className: cx('rowExpansion'),
|
|
26594
26801
|
role: 'row'
|
|
26595
|
-
},
|
|
26802
|
+
}, ptm('rowExpansion'));
|
|
26596
26803
|
return /*#__PURE__*/React__namespace.createElement("tr", rowExpansionProps, _content3);
|
|
26597
26804
|
}
|
|
26598
26805
|
return null;
|
|
@@ -26607,7 +26814,7 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
26607
26814
|
var rowGroupFooterProps = mergeProps({
|
|
26608
26815
|
className: cx('rowGroupFooter'),
|
|
26609
26816
|
role: 'row'
|
|
26610
|
-
},
|
|
26817
|
+
}, ptm('rowGroupFooter'));
|
|
26611
26818
|
return /*#__PURE__*/React__namespace.createElement("tr", rowGroupFooterProps, _content4);
|
|
26612
26819
|
}
|
|
26613
26820
|
return null;
|
|
@@ -26983,9 +27190,17 @@ var ColumnFilter = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
26983
27190
|
var type = _ref.type,
|
|
26984
27191
|
valid = _ref.valid;
|
|
26985
27192
|
if (valid) {
|
|
26986
|
-
type === 'outside'
|
|
27193
|
+
if (type === 'outside') {
|
|
27194
|
+
if (!selfClick.current && !isTargetClicked(event.target)) {
|
|
27195
|
+
hide();
|
|
27196
|
+
}
|
|
27197
|
+
selfClick.current = false;
|
|
27198
|
+
} else if (context.hideOverlaysOnDocumentScrolling) {
|
|
27199
|
+
hide();
|
|
27200
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
27201
|
+
DomHandler.alignOverlay(overlayRef.current, iconRef.current, context && context.appendTo || PrimeReact.appendTo, false);
|
|
27202
|
+
}
|
|
26987
27203
|
}
|
|
26988
|
-
selfClick.current = false;
|
|
26989
27204
|
},
|
|
26990
27205
|
when: overlayVisibleState
|
|
26991
27206
|
}),
|
|
@@ -28532,9 +28747,9 @@ var TableHeader = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
28532
28747
|
});
|
|
28533
28748
|
TableHeader.displayName = 'TableHeader';
|
|
28534
28749
|
|
|
28535
|
-
function _createForOfIteratorHelper$b(
|
|
28536
|
-
function _unsupportedIterableToArray$b(
|
|
28537
|
-
function _arrayLikeToArray$b(
|
|
28750
|
+
function _createForOfIteratorHelper$b(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$b(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
28751
|
+
function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$b(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$b(r, a) : void 0; } }
|
|
28752
|
+
function _arrayLikeToArray$b(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
28538
28753
|
function ownKeys$18(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28539
28754
|
function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$18(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$18(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28540
28755
|
var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
@@ -28577,14 +28792,18 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
28577
28792
|
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
28578
28793
|
editingMetaState = _React$useState18[0],
|
|
28579
28794
|
setEditingMetaState = _React$useState18[1];
|
|
28580
|
-
var _React$useState19 = React__namespace.useState(
|
|
28795
|
+
var _React$useState19 = React__namespace.useState({}),
|
|
28581
28796
|
_React$useState20 = _slicedToArray(_React$useState19, 2),
|
|
28582
|
-
|
|
28583
|
-
|
|
28584
|
-
var _React$useState21 = React__namespace.useState(
|
|
28797
|
+
frozenEditingMetaState = _React$useState20[0],
|
|
28798
|
+
setFrozenEditingMetaState = _React$useState20[1];
|
|
28799
|
+
var _React$useState21 = React__namespace.useState(props.rows),
|
|
28585
28800
|
_React$useState22 = _slicedToArray(_React$useState21, 2),
|
|
28586
|
-
|
|
28587
|
-
|
|
28801
|
+
d_rowsState = _React$useState22[0],
|
|
28802
|
+
setD_rowsState = _React$useState22[1];
|
|
28803
|
+
var _React$useState23 = React__namespace.useState({}),
|
|
28804
|
+
_React$useState24 = _slicedToArray(_React$useState23, 2),
|
|
28805
|
+
d_filtersState = _React$useState24[0],
|
|
28806
|
+
setD_filtersState = _React$useState24[1];
|
|
28588
28807
|
var metaData = {
|
|
28589
28808
|
props: props,
|
|
28590
28809
|
state: {
|
|
@@ -28597,6 +28816,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
28597
28816
|
columnOrder: columnOrderState,
|
|
28598
28817
|
groupRowsSortMeta: groupRowsSortMetaState,
|
|
28599
28818
|
editingMeta: editingMetaState,
|
|
28819
|
+
frozenEditingMeta: frozenEditingMetaState,
|
|
28600
28820
|
d_rows: d_rowsState,
|
|
28601
28821
|
d_filters: d_filtersState
|
|
28602
28822
|
},
|
|
@@ -29001,6 +29221,32 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
29001
29221
|
setEditingMetaState({});
|
|
29002
29222
|
}
|
|
29003
29223
|
};
|
|
29224
|
+
var onFrozenEditingMetaChange = function onFrozenEditingMetaChange(e) {
|
|
29225
|
+
var rowData = e.rowData,
|
|
29226
|
+
field = e.field,
|
|
29227
|
+
editingKey = e.editingKey,
|
|
29228
|
+
editing = e.editing;
|
|
29229
|
+
var frozenEditingMeta = _objectSpread$18({}, frozenEditingMetaState);
|
|
29230
|
+
var meta = frozenEditingMeta[editingKey];
|
|
29231
|
+
if (editing) {
|
|
29232
|
+
!meta && (meta = frozenEditingMeta[editingKey] = {
|
|
29233
|
+
data: _objectSpread$18({}, rowData),
|
|
29234
|
+
fields: []
|
|
29235
|
+
});
|
|
29236
|
+
meta.fields.push(field);
|
|
29237
|
+
} else if (meta) {
|
|
29238
|
+
var fields = meta.fields.filter(function (f) {
|
|
29239
|
+
return f !== field;
|
|
29240
|
+
});
|
|
29241
|
+
!fields.length ? delete frozenEditingMeta[editingKey] : meta.fields = fields;
|
|
29242
|
+
}
|
|
29243
|
+
setFrozenEditingMetaState(frozenEditingMeta);
|
|
29244
|
+
};
|
|
29245
|
+
var clearFrozenEditingMetaData = function clearFrozenEditingMetaData() {
|
|
29246
|
+
if (props.editMode && ObjectUtils.isNotEmpty(frozenEditingMetaState)) {
|
|
29247
|
+
setFrozenEditingMetaState({});
|
|
29248
|
+
}
|
|
29249
|
+
};
|
|
29004
29250
|
var onColumnResizeStart = function onColumnResizeStart(e) {
|
|
29005
29251
|
createBeforeResizeStyleElement();
|
|
29006
29252
|
var event = e.originalEvent,
|
|
@@ -29291,6 +29537,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
29291
29537
|
};
|
|
29292
29538
|
var onPageChange = function onPageChange(e) {
|
|
29293
29539
|
clearEditingMetaData();
|
|
29540
|
+
clearFrozenEditingMetaData();
|
|
29294
29541
|
if (props.onPage) {
|
|
29295
29542
|
props.onPage(createEvent(e));
|
|
29296
29543
|
} else {
|
|
@@ -29303,6 +29550,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
29303
29550
|
};
|
|
29304
29551
|
var onSortChange = function onSortChange(e) {
|
|
29305
29552
|
clearEditingMetaData();
|
|
29553
|
+
clearFrozenEditingMetaData();
|
|
29306
29554
|
var event = e.originalEvent,
|
|
29307
29555
|
column = e.column,
|
|
29308
29556
|
sortableDisabledFields = e.sortableDisabledFields;
|
|
@@ -29480,6 +29728,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
29480
29728
|
};
|
|
29481
29729
|
var onFilterChange = function onFilterChange(filters) {
|
|
29482
29730
|
clearEditingMetaData();
|
|
29731
|
+
clearFrozenEditingMetaData();
|
|
29483
29732
|
setD_filtersState(filters);
|
|
29484
29733
|
};
|
|
29485
29734
|
var onFilterApply = function onFilterApply(filtersToApply) {
|
|
@@ -29669,6 +29918,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
29669
29918
|
setD_filtersState(cloneFilters(props.filters));
|
|
29670
29919
|
setGroupRowsSortMetaState(null);
|
|
29671
29920
|
setEditingMetaState({});
|
|
29921
|
+
setFrozenEditingMetaState({});
|
|
29672
29922
|
if (!props.onPage) {
|
|
29673
29923
|
setFirstState(props.first);
|
|
29674
29924
|
setRowsState(props.rows);
|
|
@@ -30033,7 +30283,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
30033
30283
|
dataKey: props.dataKey,
|
|
30034
30284
|
dragSelection: props.dragSelection,
|
|
30035
30285
|
editMode: props.editMode,
|
|
30036
|
-
editingMeta:
|
|
30286
|
+
editingMeta: frozenEditingMetaState,
|
|
30037
30287
|
editingRows: props.editingRows,
|
|
30038
30288
|
emptyMessage: props.emptyMessage,
|
|
30039
30289
|
expandableRowGroups: props.expandableRowGroups,
|
|
@@ -30052,7 +30302,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
30052
30302
|
onCellUnselect: props.onCellUnselect,
|
|
30053
30303
|
onContextMenu: props.onContextMenu,
|
|
30054
30304
|
onContextMenuSelectionChange: props.onContextMenuSelectionChange,
|
|
30055
|
-
onEditingMetaChange:
|
|
30305
|
+
onEditingMetaChange: onFrozenEditingMetaChange,
|
|
30056
30306
|
onRowClick: props.onRowClick,
|
|
30057
30307
|
onRowCollapse: props.onRowCollapse,
|
|
30058
30308
|
onRowDoubleClick: props.onRowDoubleClick,
|
|
@@ -30499,9 +30749,9 @@ var DataViewLayoutOptionsBase = ComponentBase.extend({
|
|
|
30499
30749
|
}
|
|
30500
30750
|
});
|
|
30501
30751
|
|
|
30502
|
-
function _createForOfIteratorHelper$a(
|
|
30503
|
-
function _unsupportedIterableToArray$a(
|
|
30504
|
-
function _arrayLikeToArray$a(
|
|
30752
|
+
function _createForOfIteratorHelper$a(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$a(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
30753
|
+
function _unsupportedIterableToArray$a(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$a(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$a(r, a) : void 0; } }
|
|
30754
|
+
function _arrayLikeToArray$a(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
30505
30755
|
function ownKeys$17(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30506
30756
|
function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$17(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$17(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30507
30757
|
var DataViewLayoutOptions = /*#__PURE__*/React__namespace.memo(function (inProps) {
|
|
@@ -31804,8 +32054,8 @@ var Fieldset = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
31804
32054
|
});
|
|
31805
32055
|
Fieldset.displayName = 'Fieldset';
|
|
31806
32056
|
|
|
31807
|
-
function _readOnlyError(
|
|
31808
|
-
throw new TypeError("
|
|
32057
|
+
function _readOnlyError(r) {
|
|
32058
|
+
throw new TypeError('"' + r + '" is read-only');
|
|
31809
32059
|
}
|
|
31810
32060
|
|
|
31811
32061
|
var UploadIcon = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
@@ -32431,9 +32681,9 @@ var FileUploadBase = ComponentBase.extend({
|
|
|
32431
32681
|
|
|
32432
32682
|
function ownKeys$11(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32433
32683
|
function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$11(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$11(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32434
|
-
function _createForOfIteratorHelper$9(
|
|
32435
|
-
function _unsupportedIterableToArray$9(
|
|
32436
|
-
function _arrayLikeToArray$9(
|
|
32684
|
+
function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
32685
|
+
function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0; } }
|
|
32686
|
+
function _arrayLikeToArray$9(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
32437
32687
|
var FileUpload = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
32438
32688
|
var mergeProps = useMergeProps();
|
|
32439
32689
|
var context = React__namespace.useContext(PrimeReactContext);
|
|
@@ -35633,7 +35883,7 @@ var InputMask = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
35633
35883
|
var updateValue = function updateValue(allow) {
|
|
35634
35884
|
var pos;
|
|
35635
35885
|
if (elementRef.current) {
|
|
35636
|
-
if (props.value
|
|
35886
|
+
if (ObjectUtils.isEmpty(props.value)) {
|
|
35637
35887
|
elementRef.current.value = '';
|
|
35638
35888
|
} else {
|
|
35639
35889
|
elementRef.current.value = props.value;
|
|
@@ -36127,7 +36377,7 @@ var KnobBase = ComponentBase.extend({
|
|
|
36127
36377
|
});
|
|
36128
36378
|
}
|
|
36129
36379
|
},
|
|
36130
|
-
styles: "\n @keyframes dash-frame {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n @layer primereact {\n .p-knob-range {\n fill: none;\n transition: stroke .1s ease-in;\n }\n .p-knob-value {\n animation-name: dash-frame;\n animation-fill-mode: forwards;\n fill: none;\n }\n .p-knob-text {\n font-size: 1.3rem;\n text-align: center;\n }\n }\n "
|
|
36380
|
+
styles: "\n @keyframes dash-frame {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n @layer primereact {\n .p-knob-range {\n fill: none;\n transition: stroke .1s ease-in;\n cursor: pointer;\n }\n .p-knob-value {\n animation-name: dash-frame;\n animation-fill-mode: forwards;\n fill: none;\n }\n .p-knob-text {\n font-size: 1.3rem;\n text-align: center;\n }\n }\n "
|
|
36131
36381
|
}
|
|
36132
36382
|
});
|
|
36133
36383
|
|
|
@@ -36655,9 +36905,9 @@ ListBoxItem.displayName = 'ListBoxItem';
|
|
|
36655
36905
|
|
|
36656
36906
|
function ownKeys$U(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
36657
36907
|
function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$U(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$U(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
36658
|
-
function _createForOfIteratorHelper$8(
|
|
36659
|
-
function _unsupportedIterableToArray$8(
|
|
36660
|
-
function _arrayLikeToArray$8(
|
|
36908
|
+
function _createForOfIteratorHelper$8(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$8(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
36909
|
+
function _unsupportedIterableToArray$8(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$8(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$8(r, a) : void 0; } }
|
|
36910
|
+
function _arrayLikeToArray$8(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
36661
36911
|
var ListBox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
36662
36912
|
var mergeProps = useMergeProps();
|
|
36663
36913
|
var context = React__namespace.useContext(PrimeReactContext);
|
|
@@ -38744,13 +38994,6 @@ var MentionBase = ComponentBase.extend({
|
|
|
38744
38994
|
inputRef: null,
|
|
38745
38995
|
inputStyle: null,
|
|
38746
38996
|
itemTemplate: null,
|
|
38747
|
-
panelClassName: null,
|
|
38748
|
-
panelStyle: null,
|
|
38749
|
-
scrollHeight: '200px',
|
|
38750
|
-
style: null,
|
|
38751
|
-
suggestions: null,
|
|
38752
|
-
transitionOptions: null,
|
|
38753
|
-
trigger: '@',
|
|
38754
38997
|
onBlur: null,
|
|
38755
38998
|
onChange: null,
|
|
38756
38999
|
onFocus: null,
|
|
@@ -38759,6 +39002,14 @@ var MentionBase = ComponentBase.extend({
|
|
|
38759
39002
|
onSearch: null,
|
|
38760
39003
|
onSelect: null,
|
|
38761
39004
|
onShow: null,
|
|
39005
|
+
panelClassName: null,
|
|
39006
|
+
panelStyle: null,
|
|
39007
|
+
scrollHeight: '200px',
|
|
39008
|
+
style: null,
|
|
39009
|
+
suggestions: null,
|
|
39010
|
+
transitionOptions: null,
|
|
39011
|
+
trigger: '@',
|
|
39012
|
+
variant: null,
|
|
38762
39013
|
children: undefined
|
|
38763
39014
|
},
|
|
38764
39015
|
css: {
|
|
@@ -38827,8 +39078,15 @@ var Mention = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.f
|
|
|
38827
39078
|
target: elementRef,
|
|
38828
39079
|
overlay: overlayRef,
|
|
38829
39080
|
listener: function listener(event, _ref) {
|
|
38830
|
-
var valid = _ref.valid
|
|
38831
|
-
|
|
39081
|
+
var valid = _ref.valid,
|
|
39082
|
+
type = _ref.type;
|
|
39083
|
+
if (valid) {
|
|
39084
|
+
if (context.hideOverlaysOnDocumentScrolling || type === 'outside') {
|
|
39085
|
+
hide();
|
|
39086
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
39087
|
+
alignOverlay();
|
|
39088
|
+
}
|
|
39089
|
+
}
|
|
38832
39090
|
},
|
|
38833
39091
|
when: overlayVisibleState
|
|
38834
39092
|
}),
|
|
@@ -39231,6 +39489,7 @@ var Mention = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.f
|
|
|
39231
39489
|
style: props.inputStyle
|
|
39232
39490
|
}, inputProps), {}, {
|
|
39233
39491
|
unstyled: props.unstyled,
|
|
39492
|
+
variant: props.variant,
|
|
39234
39493
|
autoResize: props.autoResize,
|
|
39235
39494
|
onFocus: onFocus,
|
|
39236
39495
|
onBlur: onBlur,
|
|
@@ -39398,10 +39657,15 @@ var Menu = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
39398
39657
|
target: targetRef,
|
|
39399
39658
|
overlay: menuRef,
|
|
39400
39659
|
listener: function listener(event, _ref) {
|
|
39401
|
-
var valid = _ref.valid
|
|
39660
|
+
var valid = _ref.valid,
|
|
39661
|
+
type = _ref.type;
|
|
39402
39662
|
if (valid) {
|
|
39403
|
-
|
|
39404
|
-
|
|
39663
|
+
if (context.hideOverlaysOnDocumentScrolling || type === 'outside') {
|
|
39664
|
+
hide(event);
|
|
39665
|
+
setFocusedOptionIndex(-1);
|
|
39666
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
39667
|
+
DomHandler.absolutePosition(menuRef.current, targetRef.current, props.popupAlignment);
|
|
39668
|
+
}
|
|
39405
39669
|
}
|
|
39406
39670
|
},
|
|
39407
39671
|
when: visibleState
|
|
@@ -39457,6 +39721,9 @@ var Menu = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
39457
39721
|
props.onFocus && props.onFocus(event);
|
|
39458
39722
|
};
|
|
39459
39723
|
var onListBlur = function onListBlur(event) {
|
|
39724
|
+
var currentTarget = event.currentTarget,
|
|
39725
|
+
relatedTarget = event.relatedTarget;
|
|
39726
|
+
if (relatedTarget && currentTarget.contains(relatedTarget)) return;
|
|
39460
39727
|
setFocused(false);
|
|
39461
39728
|
setFocusedOptionIndex(-1);
|
|
39462
39729
|
props.onBlur && props.onBlur(event);
|
|
@@ -39700,6 +39967,9 @@ var Menu = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
39700
39967
|
onClick: function onClick(event) {
|
|
39701
39968
|
return onItemClick(event, item, key);
|
|
39702
39969
|
},
|
|
39970
|
+
onMouseMove: function onMouseMove(event) {
|
|
39971
|
+
return onItemMouseMove(event, key);
|
|
39972
|
+
},
|
|
39703
39973
|
className: linkClassName,
|
|
39704
39974
|
tabIndex: '-1',
|
|
39705
39975
|
labelClassName: 'p-menuitem-text',
|
|
@@ -40056,7 +40326,6 @@ var MenubarSub = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespac
|
|
|
40056
40326
|
'aria-disabled': disabled,
|
|
40057
40327
|
'aria-expanded': group ? active : undefined,
|
|
40058
40328
|
'aria-haspopup': group && !item.url ? 'menu' : undefined,
|
|
40059
|
-
'aria-level': props.level + 1,
|
|
40060
40329
|
'aria-setsize': getAriaSetSize(),
|
|
40061
40330
|
'aria-posinset': getAriaPosInset(index),
|
|
40062
40331
|
'data-p-highlight': active,
|
|
@@ -40174,12 +40443,13 @@ var Menubar = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.f
|
|
|
40174
40443
|
var _useEventListener = useEventListener({
|
|
40175
40444
|
type: 'click',
|
|
40176
40445
|
listener: function listener(event) {
|
|
40177
|
-
|
|
40178
|
-
|
|
40179
|
-
|
|
40180
|
-
hide();
|
|
40181
|
-
}
|
|
40446
|
+
var isOutsideButton = menuButtonRef.current && !menuButtonRef.current.contains(event.target);
|
|
40447
|
+
if (isOutsideButton) {
|
|
40448
|
+
hide();
|
|
40182
40449
|
}
|
|
40450
|
+
},
|
|
40451
|
+
options: {
|
|
40452
|
+
capture: true
|
|
40183
40453
|
}
|
|
40184
40454
|
}),
|
|
40185
40455
|
_useEventListener2 = _slicedToArray(_useEventListener, 2),
|
|
@@ -40234,9 +40504,6 @@ var Menubar = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.f
|
|
|
40234
40504
|
var menuButtonKeydown = function menuButtonKeydown(event) {
|
|
40235
40505
|
(event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && toggle(event);
|
|
40236
40506
|
};
|
|
40237
|
-
var isOutsideClicked = function isOutsideClicked(event) {
|
|
40238
|
-
return rootMenuRef.current !== event.target && !rootMenuRef.current.contains(event.target) && menuButtonRef.current !== event.target && !menuButtonRef.current.contains(event.target);
|
|
40239
|
-
};
|
|
40240
40507
|
var getItemProp = function getItemProp(item, name) {
|
|
40241
40508
|
return item ? ObjectUtils.getItemValue(item[name]) : undefined;
|
|
40242
40509
|
};
|
|
@@ -41086,12 +41353,13 @@ var MeterGroup = function MeterGroup(inProps) {
|
|
|
41086
41353
|
|
|
41087
41354
|
var classes$w = {
|
|
41088
41355
|
root: function root(_ref) {
|
|
41356
|
+
var _props$value;
|
|
41089
41357
|
var props = _ref.props,
|
|
41090
41358
|
context = _ref.context,
|
|
41091
41359
|
focusedState = _ref.focusedState,
|
|
41092
41360
|
overlayVisibleState = _ref.overlayVisibleState;
|
|
41093
41361
|
return classNames('p-multiselect p-component p-inputwrapper', {
|
|
41094
|
-
'p-multiselect-chip': props.display === 'chip' && (props.maxSelectedLabels == null ? true : props.value.length <= props.maxSelectedLabels),
|
|
41362
|
+
'p-multiselect-chip': props.display === 'chip' && (props.maxSelectedLabels == null ? true : ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) <= props.maxSelectedLabels),
|
|
41095
41363
|
'p-disabled': props.disabled,
|
|
41096
41364
|
'p-invalid': props.invalid,
|
|
41097
41365
|
'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled',
|
|
@@ -41102,12 +41370,13 @@ var classes$w = {
|
|
|
41102
41370
|
});
|
|
41103
41371
|
},
|
|
41104
41372
|
label: function label(_ref2) {
|
|
41373
|
+
var _props$value2;
|
|
41105
41374
|
var props = _ref2.props,
|
|
41106
41375
|
empty = _ref2.empty;
|
|
41107
41376
|
return classNames('p-multiselect-label', {
|
|
41108
41377
|
'p-placeholder': empty && props.placeholder,
|
|
41109
41378
|
'p-multiselect-label-empty': empty && !props.placeholder && !props.selectedItemTemplate,
|
|
41110
|
-
'p-multiselect-items-label': !empty && props.display !== 'chip' && props.value.length > props.maxSelectedLabels
|
|
41379
|
+
'p-multiselect-items-label': !empty && props.display !== 'chip' && ((_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.length) > props.maxSelectedLabels
|
|
41111
41380
|
});
|
|
41112
41381
|
},
|
|
41113
41382
|
panel: function panel(_ref3) {
|
|
@@ -41240,7 +41509,7 @@ var MultiSelectBase = ComponentBase.extend({
|
|
|
41240
41509
|
selectAll: false,
|
|
41241
41510
|
selectAllLabel: null,
|
|
41242
41511
|
selectedItemTemplate: null,
|
|
41243
|
-
selectedItemsLabel:
|
|
41512
|
+
selectedItemsLabel: undefined,
|
|
41244
41513
|
selectionLimit: null,
|
|
41245
41514
|
showClear: false,
|
|
41246
41515
|
showSelectAll: true,
|
|
@@ -41771,9 +42040,9 @@ MultiSelectPanel.displayName = 'MultiSelectPanel';
|
|
|
41771
42040
|
|
|
41772
42041
|
function ownKeys$J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
41773
42042
|
function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
41774
|
-
function _createForOfIteratorHelper$7(
|
|
41775
|
-
function _unsupportedIterableToArray$7(
|
|
41776
|
-
function _arrayLikeToArray$7(
|
|
42043
|
+
function _createForOfIteratorHelper$7(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$7(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
42044
|
+
function _unsupportedIterableToArray$7(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$7(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$7(r, a) : void 0; } }
|
|
42045
|
+
function _arrayLikeToArray$7(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
41777
42046
|
var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
41778
42047
|
var mergeProps = useMergeProps();
|
|
41779
42048
|
var context = React__namespace.useContext(PrimeReactContext);
|
|
@@ -41839,9 +42108,13 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
41839
42108
|
valid = _ref.valid;
|
|
41840
42109
|
if (valid) {
|
|
41841
42110
|
if (type === 'outside') {
|
|
41842
|
-
!isClearClicked(event) && !isSelectAllClicked(event)
|
|
41843
|
-
|
|
42111
|
+
if (!isClearClicked(event) && !isSelectAllClicked(event)) {
|
|
42112
|
+
hide();
|
|
42113
|
+
}
|
|
42114
|
+
} else if (context.hideOverlaysOnDocumentScrolling) {
|
|
41844
42115
|
hide();
|
|
42116
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
42117
|
+
alignOverlay();
|
|
41845
42118
|
}
|
|
41846
42119
|
}
|
|
41847
42120
|
},
|
|
@@ -42515,15 +42788,17 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42515
42788
|
var getSelectedItemsLabel = function getSelectedItemsLabel() {
|
|
42516
42789
|
var pattern = /{(.*?)}/;
|
|
42517
42790
|
var selectedItemsLabel = props.selectedItemsLabel || localeOption('selectionMessage');
|
|
42791
|
+
var valueLength = props.value ? props.value.length : 0;
|
|
42518
42792
|
if (pattern.test(selectedItemsLabel)) {
|
|
42519
|
-
return selectedItemsLabel.replace(selectedItemsLabel.match(pattern)[0],
|
|
42793
|
+
return selectedItemsLabel.replace(selectedItemsLabel.match(pattern)[0], valueLength + '');
|
|
42520
42794
|
}
|
|
42521
42795
|
return selectedItemsLabel;
|
|
42522
42796
|
};
|
|
42523
42797
|
var getLabel = function getLabel() {
|
|
42524
42798
|
var label;
|
|
42525
42799
|
if (!empty && !props.fixedPlaceholder) {
|
|
42526
|
-
|
|
42800
|
+
var _props$value;
|
|
42801
|
+
if (ObjectUtils.isNotEmpty(props.maxSelectedLabels) && ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) > props.maxSelectedLabels) {
|
|
42527
42802
|
return getSelectedItemsLabel();
|
|
42528
42803
|
}
|
|
42529
42804
|
if (ObjectUtils.isArray(props.value)) {
|
|
@@ -42536,7 +42811,8 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42536
42811
|
return label;
|
|
42537
42812
|
};
|
|
42538
42813
|
var getLabelContent = function getLabelContent() {
|
|
42539
|
-
|
|
42814
|
+
var valueLength = props.value ? props.value.length : 0;
|
|
42815
|
+
if (ObjectUtils.isNotEmpty(props.maxSelectedLabels) && valueLength > props.maxSelectedLabels) {
|
|
42540
42816
|
return getSelectedItemsLabel();
|
|
42541
42817
|
}
|
|
42542
42818
|
if (props.selectedItemTemplate) {
|
|
@@ -42551,7 +42827,7 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42551
42827
|
return ObjectUtils.getJSXElement(props.selectedItemTemplate);
|
|
42552
42828
|
}
|
|
42553
42829
|
if (props.display === 'chip' && !empty) {
|
|
42554
|
-
var value = props.value.slice(0, props.maxSelectedLabels ||
|
|
42830
|
+
var value = props.value.slice(0, props.maxSelectedLabels || valueLength);
|
|
42555
42831
|
return value.map(function (val, i) {
|
|
42556
42832
|
var context = {
|
|
42557
42833
|
context: {
|
|
@@ -42644,8 +42920,6 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42644
42920
|
}
|
|
42645
42921
|
};
|
|
42646
42922
|
var onRemoveTokenIconKeyDown = function onRemoveTokenIconKeyDown(event, val) {
|
|
42647
|
-
event.preventDefault();
|
|
42648
|
-
event.stopPropagation();
|
|
42649
42923
|
switch (event.code) {
|
|
42650
42924
|
case 'Space':
|
|
42651
42925
|
case 'NumpadEnter':
|
|
@@ -42654,6 +42928,8 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42654
42928
|
break;
|
|
42655
42929
|
}
|
|
42656
42930
|
removeChip(event, val);
|
|
42931
|
+
event.preventDefault();
|
|
42932
|
+
event.stopPropagation();
|
|
42657
42933
|
break;
|
|
42658
42934
|
}
|
|
42659
42935
|
};
|
|
@@ -42733,15 +43009,6 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42733
43009
|
}, ptm('label'));
|
|
42734
43010
|
return /*#__PURE__*/React__namespace.createElement("div", labelContainerProps, /*#__PURE__*/React__namespace.createElement("div", labelProps, content || props.placeholder || props.emptyMessage || 'empty'));
|
|
42735
43011
|
};
|
|
42736
|
-
var getInputValue = function getInputValue() {
|
|
42737
|
-
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
42738
|
-
if (Array.isArray(value)) {
|
|
42739
|
-
return value.map(function (val) {
|
|
42740
|
-
return getLabelByValue(val);
|
|
42741
|
-
}).join(', ');
|
|
42742
|
-
}
|
|
42743
|
-
return value ? value : '';
|
|
42744
|
-
};
|
|
42745
43012
|
var visibleOptions = getVisibleOptions();
|
|
42746
43013
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
42747
43014
|
var otherProps = MultiSelectBase.getOtherProps(props);
|
|
@@ -42791,7 +43058,7 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42791
43058
|
'aria-expanded': overlayVisibleState,
|
|
42792
43059
|
disabled: props.disabled,
|
|
42793
43060
|
tabIndex: !props.disabled ? props.tabIndex : -1,
|
|
42794
|
-
value:
|
|
43061
|
+
value: getLabel()
|
|
42795
43062
|
}, ariaProps), ptm('input'));
|
|
42796
43063
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", rootProps, /*#__PURE__*/React__namespace.createElement("div", hiddenInputWrapperProps, /*#__PURE__*/React__namespace.createElement("input", _extends({}, inputProps, {
|
|
42797
43064
|
readOnly: true
|
|
@@ -43593,6 +43860,7 @@ var OrderList = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
43593
43860
|
var styleElementRef = React__namespace.useRef(null);
|
|
43594
43861
|
var reorderDirection = React__namespace.useRef(null);
|
|
43595
43862
|
var listElementRef = React__namespace.useRef(null);
|
|
43863
|
+
var reorderedListElementRef = React__namespace.useRef(null);
|
|
43596
43864
|
var metaData = {
|
|
43597
43865
|
props: props,
|
|
43598
43866
|
state: {
|
|
@@ -43818,9 +44086,9 @@ var OrderList = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
43818
44086
|
}
|
|
43819
44087
|
var _focusedOptionIndex = items[order] ? items[order].getAttribute('id') : -1;
|
|
43820
44088
|
setFocusedOptionIndex(_focusedOptionIndex);
|
|
43821
|
-
|
|
44089
|
+
scrollInViewWithFocus(_focusedOptionIndex);
|
|
43822
44090
|
};
|
|
43823
|
-
var
|
|
44091
|
+
var scrollInViewWithFocus = function scrollInViewWithFocus(id) {
|
|
43824
44092
|
var listElement = getListElement();
|
|
43825
44093
|
var element = DomHandler.findSingle(listElement, "[data-pc-section=\"item\"][id=\"".concat(id, "\"]"));
|
|
43826
44094
|
if (element) {
|
|
@@ -43830,6 +44098,33 @@ var OrderList = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
43830
44098
|
});
|
|
43831
44099
|
}
|
|
43832
44100
|
};
|
|
44101
|
+
var scrollInView = function scrollInView(listContainer) {
|
|
44102
|
+
var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
44103
|
+
var selectedItems = listContainer.getElementsByClassName('p-highlight');
|
|
44104
|
+
if (ObjectUtils.isNotEmpty(selectedItems)) {
|
|
44105
|
+
DomHandler.scrollInView(listContainer, direction === -1 ? selectedItems[0] : selectedItems[selectedItems.length - 1]);
|
|
44106
|
+
}
|
|
44107
|
+
};
|
|
44108
|
+
var handleScrollPosition = function handleScrollPosition(listElement, direction) {
|
|
44109
|
+
if (listElement) {
|
|
44110
|
+
switch (direction) {
|
|
44111
|
+
case 'up':
|
|
44112
|
+
scrollInView(listElement, -1);
|
|
44113
|
+
break;
|
|
44114
|
+
case 'top':
|
|
44115
|
+
listElement.scrollTop = 0;
|
|
44116
|
+
break;
|
|
44117
|
+
case 'down':
|
|
44118
|
+
scrollInView(listElement, 1);
|
|
44119
|
+
break;
|
|
44120
|
+
case 'bottom':
|
|
44121
|
+
setTimeout(function () {
|
|
44122
|
+
return listElement.scrollTop = listElement.scrollHeight;
|
|
44123
|
+
}, 100);
|
|
44124
|
+
break;
|
|
44125
|
+
}
|
|
44126
|
+
}
|
|
44127
|
+
};
|
|
43833
44128
|
var onFilter = function onFilter(event) {
|
|
43834
44129
|
var _filterValue = event.target.value;
|
|
43835
44130
|
setFilterValueState(_filterValue);
|
|
@@ -43864,6 +44159,7 @@ var OrderList = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
43864
44159
|
});
|
|
43865
44160
|
}
|
|
43866
44161
|
reorderDirection.current = event.direction;
|
|
44162
|
+
reorderedListElementRef.current = getListElement();
|
|
43867
44163
|
};
|
|
43868
44164
|
var createStyle = function createStyle() {
|
|
43869
44165
|
if (!styleElementRef.current) {
|
|
@@ -43900,7 +44196,9 @@ var OrderList = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
43900
44196
|
setFocusedOptionId(_focusedOptionId);
|
|
43901
44197
|
}, [focusedOptionIndex]);
|
|
43902
44198
|
useUpdateEffect(function () {
|
|
43903
|
-
if (
|
|
44199
|
+
if (reorderedListElementRef.current) {
|
|
44200
|
+
handleScrollPosition(reorderedListElementRef.current, reorderDirection.current);
|
|
44201
|
+
reorderedListElementRef.current = null;
|
|
43904
44202
|
reorderDirection.current = null;
|
|
43905
44203
|
}
|
|
43906
44204
|
});
|
|
@@ -44391,18 +44689,17 @@ var OverlayPanel = /*#__PURE__*/React__namespace.forwardRef(function (inProps, r
|
|
|
44391
44689
|
var type = _ref.type,
|
|
44392
44690
|
valid = _ref.valid;
|
|
44393
44691
|
if (valid) {
|
|
44394
|
-
|
|
44395
|
-
|
|
44396
|
-
|
|
44397
|
-
|
|
44398
|
-
|
|
44399
|
-
|
|
44400
|
-
|
|
44401
|
-
|
|
44402
|
-
|
|
44692
|
+
if (type === 'outside') {
|
|
44693
|
+
if (props.dismissable && !isPanelClicked.current) {
|
|
44694
|
+
hide();
|
|
44695
|
+
}
|
|
44696
|
+
isPanelClicked.current = false;
|
|
44697
|
+
} else if (context.hideOverlaysOnDocumentScrolling) {
|
|
44698
|
+
hide();
|
|
44699
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
44700
|
+
align();
|
|
44403
44701
|
}
|
|
44404
44702
|
}
|
|
44405
|
-
isPanelClicked.current = false;
|
|
44406
44703
|
},
|
|
44407
44704
|
when: visibleState
|
|
44408
44705
|
}),
|
|
@@ -46159,8 +46456,15 @@ var Password = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
46159
46456
|
target: elementRef,
|
|
46160
46457
|
overlay: overlayRef,
|
|
46161
46458
|
listener: function listener(event, _ref) {
|
|
46162
|
-
var valid = _ref.valid
|
|
46163
|
-
|
|
46459
|
+
var valid = _ref.valid,
|
|
46460
|
+
type = _ref.type;
|
|
46461
|
+
if (valid) {
|
|
46462
|
+
if (type === 'outside' || context.hideOverlaysOnDocumentScrolling) {
|
|
46463
|
+
hide();
|
|
46464
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
46465
|
+
alignOverlay();
|
|
46466
|
+
}
|
|
46467
|
+
}
|
|
46164
46468
|
},
|
|
46165
46469
|
when: overlayVisibleState
|
|
46166
46470
|
}),
|
|
@@ -46890,7 +47194,7 @@ var PickListSubList = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__nam
|
|
|
46890
47194
|
var createItems = function createItems() {
|
|
46891
47195
|
if (props.list) {
|
|
46892
47196
|
return props.list.map(function (item, index) {
|
|
46893
|
-
var key = props.parentId + '_' + index;
|
|
47197
|
+
var key = props.parentId + '_' + props.type + '_' + index;
|
|
46894
47198
|
var selected = isSelected(item);
|
|
46895
47199
|
return /*#__PURE__*/React__namespace.createElement(PickListItem, {
|
|
46896
47200
|
hostName: props.hostName,
|
|
@@ -49725,8 +50029,15 @@ var SlideMenu = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
49725
50029
|
target: targetRef,
|
|
49726
50030
|
overlay: menuRef,
|
|
49727
50031
|
listener: function listener(event, _ref) {
|
|
49728
|
-
var valid = _ref.valid
|
|
49729
|
-
|
|
50032
|
+
var valid = _ref.valid,
|
|
50033
|
+
type = _ref.type;
|
|
50034
|
+
if (valid) {
|
|
50035
|
+
if (type === 'outside' || context.hideOverlaysOnDocumentScrolling) {
|
|
50036
|
+
hide(event);
|
|
50037
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
50038
|
+
DomHandler.absolutePosition(menuRef.current, targetRef.current);
|
|
50039
|
+
}
|
|
50040
|
+
}
|
|
49730
50041
|
},
|
|
49731
50042
|
when: visibleState
|
|
49732
50043
|
}),
|
|
@@ -52813,7 +53124,8 @@ var StepperBase = ComponentBase.extend({
|
|
|
52813
53124
|
linear: false,
|
|
52814
53125
|
onChangeStep: null,
|
|
52815
53126
|
start: null,
|
|
52816
|
-
end: null
|
|
53127
|
+
end: null,
|
|
53128
|
+
children: undefined
|
|
52817
53129
|
},
|
|
52818
53130
|
css: {
|
|
52819
53131
|
classes: classes$b,
|
|
@@ -55886,9 +56198,9 @@ var TreeBase = ComponentBase.extend({
|
|
|
55886
56198
|
}
|
|
55887
56199
|
});
|
|
55888
56200
|
|
|
55889
|
-
function _createForOfIteratorHelper$6(
|
|
55890
|
-
function _unsupportedIterableToArray$6(
|
|
55891
|
-
function _arrayLikeToArray$6(
|
|
56201
|
+
function _createForOfIteratorHelper$6(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$6(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
56202
|
+
function _unsupportedIterableToArray$6(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$6(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$6(r, a) : void 0; } }
|
|
56203
|
+
function _arrayLikeToArray$6(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
55892
56204
|
function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
55893
56205
|
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
55894
56206
|
var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
@@ -56697,9 +57009,9 @@ UITreeNode.displayName = 'UITreeNode';
|
|
|
56697
57009
|
|
|
56698
57010
|
function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
56699
57011
|
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
56700
|
-
function _createForOfIteratorHelper$5(
|
|
56701
|
-
function _unsupportedIterableToArray$5(
|
|
56702
|
-
function _arrayLikeToArray$5(
|
|
57012
|
+
function _createForOfIteratorHelper$5(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$5(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
57013
|
+
function _unsupportedIterableToArray$5(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$5(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$5(r, a) : void 0; } }
|
|
57014
|
+
function _arrayLikeToArray$5(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
56703
57015
|
var Tree = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
56704
57016
|
var mergeProps = useMergeProps();
|
|
56705
57017
|
var context = React__namespace.useContext(PrimeReactContext);
|
|
@@ -56829,7 +57141,7 @@ var Tree = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
56829
57141
|
var onDrop = function onDrop(event) {
|
|
56830
57142
|
var _dragState$current;
|
|
56831
57143
|
if (validateDropNode((_dragState$current = dragState.current) === null || _dragState$current === void 0 ? void 0 : _dragState$current.path, event.path)) {
|
|
56832
|
-
var value = _cloneValue(
|
|
57144
|
+
var value = _cloneValue(getRootNode());
|
|
56833
57145
|
var dragPaths = dragState.current.path.split('-');
|
|
56834
57146
|
dragPaths.pop();
|
|
56835
57147
|
var dragNodeParent = _findNode(value, dragPaths);
|
|
@@ -56858,7 +57170,7 @@ var Tree = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
56858
57170
|
};
|
|
56859
57171
|
var onDropPoint = function onDropPoint(event) {
|
|
56860
57172
|
if (validateDropPoint(event)) {
|
|
56861
|
-
var value = _cloneValue(
|
|
57173
|
+
var value = _cloneValue(getRootNode());
|
|
56862
57174
|
var dragPaths = dragState.current.path.split('-');
|
|
56863
57175
|
dragPaths.pop();
|
|
56864
57176
|
var dropPaths = event.path.split('-');
|
|
@@ -57453,9 +57765,9 @@ TreeSelectPanel.displayName = 'TreeSelectPanel';
|
|
|
57453
57765
|
|
|
57454
57766
|
function ownKeys$7(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
57455
57767
|
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
57456
|
-
function _createForOfIteratorHelper$4(
|
|
57457
|
-
function _unsupportedIterableToArray$4(
|
|
57458
|
-
function _arrayLikeToArray$4(
|
|
57768
|
+
function _createForOfIteratorHelper$4(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
57769
|
+
function _unsupportedIterableToArray$4(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$4(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$4(r, a) : void 0; } }
|
|
57770
|
+
function _arrayLikeToArray$4(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
57459
57771
|
var TreeSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
57460
57772
|
var mergeProps = useMergeProps();
|
|
57461
57773
|
var context = React__namespace.useContext(PrimeReactContext);
|
|
@@ -57473,9 +57785,9 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespac
|
|
|
57473
57785
|
expandedKeysState = _React$useState6[0],
|
|
57474
57786
|
setExpandedKeysState = _React$useState6[1];
|
|
57475
57787
|
var _useDebounce = useDebounce('', props.filterDelay || 0),
|
|
57476
|
-
_useDebounce2 = _slicedToArray(_useDebounce, 3)
|
|
57477
|
-
_useDebounce2[0]
|
|
57478
|
-
|
|
57788
|
+
_useDebounce2 = _slicedToArray(_useDebounce, 3),
|
|
57789
|
+
filterValue = _useDebounce2[0],
|
|
57790
|
+
filterValueState = _useDebounce2[1],
|
|
57479
57791
|
setFilterValueState = _useDebounce2[2];
|
|
57480
57792
|
var elementRef = React__namespace.useRef(null);
|
|
57481
57793
|
var overlayRef = React__namespace.useRef(null);
|
|
@@ -57522,8 +57834,15 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespac
|
|
|
57522
57834
|
target: elementRef,
|
|
57523
57835
|
overlay: overlayRef,
|
|
57524
57836
|
listener: function listener(event, _ref) {
|
|
57525
|
-
var valid = _ref.valid
|
|
57526
|
-
|
|
57837
|
+
var valid = _ref.valid,
|
|
57838
|
+
type = _ref.type;
|
|
57839
|
+
if (valid) {
|
|
57840
|
+
if (type === 'outside' || context.hideOverlaysOnDocumentScrolling) {
|
|
57841
|
+
hide();
|
|
57842
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
57843
|
+
alignOverlay();
|
|
57844
|
+
}
|
|
57845
|
+
}
|
|
57527
57846
|
},
|
|
57528
57847
|
when: overlayVisibleState
|
|
57529
57848
|
}),
|
|
@@ -58061,15 +58380,15 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespac
|
|
|
58061
58380
|
};
|
|
58062
58381
|
var createFilterElement = function createFilterElement() {
|
|
58063
58382
|
if (props.filter) {
|
|
58064
|
-
var
|
|
58065
|
-
|
|
58383
|
+
var newValue = props.onFilterValueChange ? props.filterValue : filterValue;
|
|
58384
|
+
newValue = ObjectUtils.isNotEmpty(newValue) ? newValue : '';
|
|
58066
58385
|
var filterContainerProps = mergeProps({
|
|
58067
58386
|
className: cx('filterContainer')
|
|
58068
58387
|
}, ptm('filterContainer'));
|
|
58069
58388
|
var filterProps = mergeProps({
|
|
58070
58389
|
ref: filterInputRef,
|
|
58071
58390
|
type: 'text',
|
|
58072
|
-
value:
|
|
58391
|
+
value: newValue,
|
|
58073
58392
|
autoComplete: 'off',
|
|
58074
58393
|
className: cx('filter'),
|
|
58075
58394
|
placeholder: props.filterPlaceholder,
|
|
@@ -58663,9 +58982,9 @@ var TreeTableBodyCell = function TreeTableBodyCell(props) {
|
|
|
58663
58982
|
};
|
|
58664
58983
|
TreeTableBodyCell.displayName = 'TreeTableBodyCell';
|
|
58665
58984
|
|
|
58666
|
-
function _createForOfIteratorHelper$3(
|
|
58667
|
-
function _unsupportedIterableToArray$3(
|
|
58668
|
-
function _arrayLikeToArray$3(
|
|
58985
|
+
function _createForOfIteratorHelper$3(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$3(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
58986
|
+
function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0; } }
|
|
58987
|
+
function _arrayLikeToArray$3(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
58669
58988
|
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
58670
58989
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
58671
58990
|
var TreeTableRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
@@ -59120,7 +59439,7 @@ var TreeTableRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
59120
59439
|
var partialChecked = isPartialChecked();
|
|
59121
59440
|
var checkboxIconProps = mergeProps({
|
|
59122
59441
|
className: cx('checkIcon')
|
|
59123
|
-
}, getColumnPTOptions('rowCheckbox.icon'));
|
|
59442
|
+
}, getColumnPTOptions(column, 'rowCheckbox.icon'));
|
|
59124
59443
|
var icon = checked ? props.checkboxIcon || /*#__PURE__*/React__namespace.createElement(CheckIcon, checkboxIconProps) : partialChecked ? props.checkboxIcon || /*#__PURE__*/React__namespace.createElement(MinusIcon, null) : null;
|
|
59125
59444
|
var checkIcon = IconUtils.getJSXIcon(icon, {}, {
|
|
59126
59445
|
props: props,
|
|
@@ -59255,9 +59574,9 @@ var TreeTableRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
59255
59574
|
});
|
|
59256
59575
|
TreeTableRow.displayName = 'TreeTableRow';
|
|
59257
59576
|
|
|
59258
|
-
function _createForOfIteratorHelper$2(
|
|
59259
|
-
function _unsupportedIterableToArray$2(
|
|
59260
|
-
function _arrayLikeToArray$2(
|
|
59577
|
+
function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
59578
|
+
function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0; } }
|
|
59579
|
+
function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
59261
59580
|
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
59262
59581
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
59263
59582
|
var TreeTableBody = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
@@ -59573,9 +59892,9 @@ var TreeTableFooter = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
59573
59892
|
});
|
|
59574
59893
|
TreeTableFooter.displayName = 'TreeTableFooter';
|
|
59575
59894
|
|
|
59576
|
-
function _createForOfIteratorHelper$1(
|
|
59577
|
-
function _unsupportedIterableToArray$1(
|
|
59578
|
-
function _arrayLikeToArray$1(
|
|
59895
|
+
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
59896
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
59897
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
59579
59898
|
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
59580
59899
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
59581
59900
|
var TreeTableHeader = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
@@ -60131,9 +60450,9 @@ TreeTableScrollableView.displayName = 'TreeTableScrollableView';
|
|
|
60131
60450
|
|
|
60132
60451
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
60133
60452
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
60134
|
-
function _createForOfIteratorHelper(
|
|
60135
|
-
function _unsupportedIterableToArray(
|
|
60136
|
-
function _arrayLikeToArray(
|
|
60453
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
60454
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
60455
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
60137
60456
|
var TreeTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
60138
60457
|
var mergeProps = useMergeProps();
|
|
60139
60458
|
var context = React__namespace.useContext(PrimeReactContext);
|
|
@@ -61487,7 +61806,7 @@ var TriStateCheckboxBase = ComponentBase.extend({
|
|
|
61487
61806
|
tooltip: null,
|
|
61488
61807
|
tooltipOptions: null,
|
|
61489
61808
|
uncheckIcon: null,
|
|
61490
|
-
value:
|
|
61809
|
+
value: null,
|
|
61491
61810
|
children: undefined
|
|
61492
61811
|
},
|
|
61493
61812
|
css: {
|
|
@@ -61501,7 +61820,7 @@ var TriStateCheckbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__na
|
|
|
61501
61820
|
var mergeProps = useMergeProps();
|
|
61502
61821
|
var context = React__namespace.useContext(PrimeReactContext);
|
|
61503
61822
|
var props = TriStateCheckboxBase.getProps(inProps, context);
|
|
61504
|
-
var _useState = React.useState(
|
|
61823
|
+
var _useState = React.useState(null),
|
|
61505
61824
|
_useState2 = _slicedToArray(_useState, 2),
|
|
61506
61825
|
checkBoxValue = _useState2[0],
|
|
61507
61826
|
setCheckBoxValue = _useState2[1];
|
|
@@ -61516,10 +61835,10 @@ var TriStateCheckbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__na
|
|
|
61516
61835
|
name: 'tristatecheckbox'
|
|
61517
61836
|
});
|
|
61518
61837
|
React.useEffect(function () {
|
|
61519
|
-
if ([true, false,
|
|
61838
|
+
if ([true, false, null].includes(props.value)) {
|
|
61520
61839
|
setCheckBoxValue(props.value);
|
|
61521
61840
|
} else {
|
|
61522
|
-
setCheckBoxValue(
|
|
61841
|
+
setCheckBoxValue(null);
|
|
61523
61842
|
}
|
|
61524
61843
|
}, [props.value]);
|
|
61525
61844
|
var onChange = function onChange(event) {
|
|
@@ -61527,12 +61846,12 @@ var TriStateCheckbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__na
|
|
|
61527
61846
|
return;
|
|
61528
61847
|
}
|
|
61529
61848
|
var newValue;
|
|
61530
|
-
if (checkBoxValue ===
|
|
61849
|
+
if (checkBoxValue === null) {
|
|
61531
61850
|
newValue = true;
|
|
61532
61851
|
} else if (checkBoxValue === true) {
|
|
61533
61852
|
newValue = false;
|
|
61534
61853
|
} else if (checkBoxValue === false) {
|
|
61535
|
-
newValue =
|
|
61854
|
+
newValue = null;
|
|
61536
61855
|
}
|
|
61537
61856
|
if (props.onChange) {
|
|
61538
61857
|
props.onChange({
|