primereact 10.9.6 → 10.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/accordion/accordion.cjs.js +3 -2
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +3 -2
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +3 -2
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +37 -37
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +4 -0
- package/api/api.esm.js +37 -37
- package/api/api.esm.min.js +1 -1
- package/api/api.js +37 -37
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +2 -1
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +2 -1
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +2 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.min.js +1 -1
- package/buttongroup/buttongroup.cjs.min.js +1 -1
- package/buttongroup/buttongroup.esm.min.js +1 -1
- package/buttongroup/buttongroup.min.js +1 -1
- package/calendar/calendar.cjs.js +59 -39
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +59 -39
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +59 -39
- package/calendar/calendar.min.js +1 -1
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.min.js +1 -1
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +9 -1
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +9 -1
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +9 -1
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +27 -4
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +27 -4
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +27 -4
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +2 -1
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +2 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +2 -1
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +1 -1
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +1 -1
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +1 -1
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +1 -1
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +1 -1
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +1 -1
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +32 -30
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +32 -30
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +32 -30
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +169 -89
- package/core/core.min.js +67 -67
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +176 -127
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +66 -7
- package/datatable/datatable.esm.js +176 -127
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +177 -128
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +5 -8
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +5 -8
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +5 -8
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +3 -3
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +3 -3
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +3 -3
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +15 -9
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +15 -9
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +15 -9
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +1 -1
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +3 -3
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +3 -3
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +3 -3
- package/fileupload/fileupload.min.js +1 -1
- package/floatlabel/floatlabel.cjs.min.js +1 -1
- package/floatlabel/floatlabel.esm.min.js +1 -1
- package/floatlabel/floatlabel.min.js +1 -1
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +7 -7
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +7 -7
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +7 -7
- package/hooks/hooks.min.js +1 -1
- package/iconfield/iconfield.cjs.min.js +1 -1
- package/iconfield/iconfield.esm.min.js +1 -1
- package/iconfield/iconfield.min.js +1 -1
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.min.js +1 -1
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.min.js +1 -1
- package/icons/blank/index.cjs.min.js +1 -1
- package/icons/blank/index.esm.min.js +1 -1
- package/icons/blank/index.min.js +1 -1
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.min.js +1 -1
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.min.js +1 -1
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.min.js +1 -1
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.min.js +1 -1
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.min.js +1 -1
- package/inputicon/inputicon.cjs.min.js +1 -1
- package/inputicon/inputicon.esm.min.js +1 -1
- package/inputicon/inputicon.min.js +1 -1
- package/inputmask/inputmask.cjs.js +1 -0
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +1 -0
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +1 -0
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +61 -4
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +61 -4
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +61 -4
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +16 -8
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +16 -8
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +16 -8
- package/inputotp/inputotp.min.js +1 -1
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +1 -0
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +1 -0
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +1 -0
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +1 -0
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +1 -0
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +1 -0
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +3 -3
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +3 -3
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +3 -3
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +40 -33
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +40 -33
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +40 -33
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +7 -5
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +7 -5
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +7 -5
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +3 -3
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +3 -3
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +3 -3
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +26 -21
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +22 -0
- package/menubar/menubar.esm.js +26 -21
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +26 -21
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.min.js +1 -1
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/multiselect.cjs.js +16 -6
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +16 -6
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +16 -6
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +5 -1
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +10 -0
- package/multistatecheckbox/multistatecheckbox.esm.js +6 -2
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +5 -1
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +16 -8
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +16 -8
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +16 -8
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +109 -76
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +109 -76
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +109 -76
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +16 -1
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +16 -1
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +16 -1
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlayservice/overlayservice.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +15 -7
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +15 -7
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +15 -7
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +393 -393
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +393 -393
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +393 -393
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +5 -4
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +5 -4
- package/password/password.esm.min.js +1 -1
- package/password/password.js +5 -4
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +17 -21
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +17 -21
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +17 -21
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +831 -546
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +831 -546
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +831 -546
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-green/theme.css +3 -0
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.min.js +1 -1
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +6 -4
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +6 -4
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +6 -4
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +1 -1
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +1 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +1 -1
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +34 -28
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +34 -28
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +34 -28
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +1 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +1 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +1 -1
- package/splitter/splitter.min.js +1 -1
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.min.js +1 -1
- package/stepperpanel/stepperpanel.cjs.min.js +1 -1
- package/stepperpanel/stepperpanel.esm.min.js +1 -1
- package/stepperpanel/stepperpanel.min.js +1 -1
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +7 -3
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +7 -3
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +7 -3
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +32 -27
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +32 -27
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +32 -27
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +3 -3
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +3 -3
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +3 -3
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +6 -2
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +6 -2
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +6 -2
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +28 -16
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +28 -16
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +28 -16
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +13 -16
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +13 -16
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +13 -16
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +10 -10
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +10 -10
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +10 -10
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +25 -7
|
@@ -16,7 +16,6 @@ import { ChevronDownIcon } from 'primereact/icons/chevrondown';
|
|
|
16
16
|
import { ChevronRightIcon } from 'primereact/icons/chevronright';
|
|
17
17
|
import { PencilIcon } from 'primereact/icons/pencil';
|
|
18
18
|
import { TimesIcon } from 'primereact/icons/times';
|
|
19
|
-
import { OverlayService } from 'primereact/overlayservice';
|
|
20
19
|
import { Ripple } from 'primereact/ripple';
|
|
21
20
|
import { Tooltip } from 'primereact/tooltip';
|
|
22
21
|
import { Button } from 'primereact/button';
|
|
@@ -27,6 +26,7 @@ import { FilterSlashIcon } from 'primereact/icons/filterslash';
|
|
|
27
26
|
import { PlusIcon } from 'primereact/icons/plus';
|
|
28
27
|
import { TrashIcon } from 'primereact/icons/trash';
|
|
29
28
|
import { InputText } from 'primereact/inputtext';
|
|
29
|
+
import { OverlayService } from 'primereact/overlayservice';
|
|
30
30
|
import { Portal } from 'primereact/portal';
|
|
31
31
|
import { SortAltIcon } from 'primereact/icons/sortalt';
|
|
32
32
|
import { SortAmountDownIcon } from 'primereact/icons/sortamountdown';
|
|
@@ -374,10 +374,10 @@ var classes$2 = {
|
|
|
374
374
|
});
|
|
375
375
|
},
|
|
376
376
|
filterSeparator: 'p-column-filter-separator',
|
|
377
|
-
filterRowItem: function filterRowItem(
|
|
378
|
-
var isRowMatchModeSelected =
|
|
379
|
-
isShowMatchModes =
|
|
380
|
-
value =
|
|
377
|
+
filterRowItem: function filterRowItem(_ref0) {
|
|
378
|
+
var isRowMatchModeSelected = _ref0.isRowMatchModeSelected,
|
|
379
|
+
isShowMatchModes = _ref0.isShowMatchModes,
|
|
380
|
+
value = _ref0.value;
|
|
381
381
|
return isShowMatchModes() ? classNames('p-column-filter-row-item', {
|
|
382
382
|
'p-highlight': value && isRowMatchModeSelected(value)
|
|
383
383
|
}) : undefined;
|
|
@@ -388,18 +388,18 @@ var classes$2 = {
|
|
|
388
388
|
filterConstraint: 'p-column-filter-constraint',
|
|
389
389
|
filterAddRule: 'p-column-filter-add-rule',
|
|
390
390
|
filterButtonBar: 'p-column-filter-buttonbar',
|
|
391
|
-
filterOverlay: function filterOverlay(
|
|
392
|
-
var props =
|
|
393
|
-
context =
|
|
394
|
-
getColumnProp =
|
|
391
|
+
filterOverlay: function filterOverlay(_ref1) {
|
|
392
|
+
var props = _ref1.columnFilterProps,
|
|
393
|
+
context = _ref1.context,
|
|
394
|
+
getColumnProp = _ref1.getColumnProp;
|
|
395
395
|
return classNames('p-column-filter-overlay p-component p-fluid', getColumnProp('filterMenuClassName'), {
|
|
396
396
|
'p-column-filter-overlay-menu': props.display === 'menu',
|
|
397
397
|
'p-input-filled': context && context.inputStyle === 'filled' || PrimeReact$1.inputStyle === 'filled',
|
|
398
398
|
'p-ripple-disabled': context && context.ripple === false || PrimeReact$1.ripple === false
|
|
399
399
|
});
|
|
400
400
|
},
|
|
401
|
-
columnFilter: function columnFilter(
|
|
402
|
-
var props =
|
|
401
|
+
columnFilter: function columnFilter(_ref10) {
|
|
402
|
+
var props = _ref10.columnFilterProps;
|
|
403
403
|
return classNames('p-column-filter p-fluid', {
|
|
404
404
|
'p-column-filter-row': props.display === 'row',
|
|
405
405
|
'p-column-filter-menu': props.display === 'menu'
|
|
@@ -411,13 +411,13 @@ var classes$2 = {
|
|
|
411
411
|
sortIcon: 'p-sortable-column-icon',
|
|
412
412
|
headerTitle: 'p-column-title',
|
|
413
413
|
headerContent: 'p-column-header-content',
|
|
414
|
-
headerCell: function headerCell(
|
|
415
|
-
var props =
|
|
416
|
-
frozen =
|
|
417
|
-
sortMeta =
|
|
418
|
-
align =
|
|
419
|
-
_isSortableDisabled =
|
|
420
|
-
getColumnProp =
|
|
414
|
+
headerCell: function headerCell(_ref11) {
|
|
415
|
+
var props = _ref11.headerProps,
|
|
416
|
+
frozen = _ref11.frozen,
|
|
417
|
+
sortMeta = _ref11.sortMeta,
|
|
418
|
+
align = _ref11.align,
|
|
419
|
+
_isSortableDisabled = _ref11._isSortableDisabled,
|
|
420
|
+
getColumnProp = _ref11.getColumnProp;
|
|
421
421
|
return ObjectUtils.isEmpty(props) ? classNames('p-filter-column', {
|
|
422
422
|
'p-frozen-column': frozen
|
|
423
423
|
}) : classNames(_defineProperty({
|
|
@@ -431,9 +431,9 @@ var classes$2 = {
|
|
|
431
431
|
'p-reorderable-column': props.reorderableColumns && getColumnProp('reorderable') && !frozen
|
|
432
432
|
}, "p-align-".concat(align), !!align));
|
|
433
433
|
},
|
|
434
|
-
footerCell: function footerCell(
|
|
435
|
-
var getColumnProp =
|
|
436
|
-
align =
|
|
434
|
+
footerCell: function footerCell(_ref12) {
|
|
435
|
+
var getColumnProp = _ref12.getColumnProp,
|
|
436
|
+
align = _ref12.align;
|
|
437
437
|
return classNames(_defineProperty({
|
|
438
438
|
'p-frozen-column': getColumnProp('frozen')
|
|
439
439
|
}, "p-align-".concat(align), !!align));
|
|
@@ -447,12 +447,12 @@ var inlineStyles = {
|
|
|
447
447
|
resizeHelper: {
|
|
448
448
|
display: 'none'
|
|
449
449
|
},
|
|
450
|
-
reorderIndicatorUp: function reorderIndicatorUp(
|
|
451
|
-
var style =
|
|
450
|
+
reorderIndicatorUp: function reorderIndicatorUp(_ref13) {
|
|
451
|
+
var style = _ref13.style;
|
|
452
452
|
return _objectSpread$f({}, style);
|
|
453
453
|
},
|
|
454
|
-
reorderIndicatorDown: function reorderIndicatorDown(
|
|
455
|
-
var style =
|
|
454
|
+
reorderIndicatorDown: function reorderIndicatorDown(_ref14) {
|
|
455
|
+
var style = _ref14.style;
|
|
456
456
|
return _objectSpread$f({}, style);
|
|
457
457
|
}
|
|
458
458
|
};
|
|
@@ -462,6 +462,9 @@ var DataTableBase = ComponentBase.extend({
|
|
|
462
462
|
alwaysShowPaginator: true,
|
|
463
463
|
breakpoint: '960px',
|
|
464
464
|
cellClassName: null,
|
|
465
|
+
cellMemo: true,
|
|
466
|
+
cellMemoProps: ['rowData', 'field', 'allowCellSelection', 'isCellSelected', 'editMode', 'rowIndex', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'frozenCol', 'alignFrozenCol'],
|
|
467
|
+
cellMemoPropsDepth: 1,
|
|
465
468
|
cellSelection: false,
|
|
466
469
|
checkIcon: null,
|
|
467
470
|
className: null,
|
|
@@ -894,7 +897,6 @@ var RowCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
894
897
|
var tabIndex = props.disabled ? null : '0';
|
|
895
898
|
var checkboxProps = {
|
|
896
899
|
role: 'checkbox',
|
|
897
|
-
'aria-checked': props.checked,
|
|
898
900
|
tabIndex: tabIndex,
|
|
899
901
|
onChange: onChange,
|
|
900
902
|
'aria-label': props.ariaLabel,
|
|
@@ -1164,8 +1166,6 @@ var Cell = function Cell(props) {
|
|
|
1164
1166
|
setStyleObjectState = _React$useState6[1];
|
|
1165
1167
|
var elementRef = React.useRef(null);
|
|
1166
1168
|
var keyHelperRef = React.useRef(null);
|
|
1167
|
-
var overlayEventListener = React.useRef(null);
|
|
1168
|
-
var selfClick = React.useRef(false);
|
|
1169
1169
|
var focusTimeout = React.useRef(null);
|
|
1170
1170
|
var initFocusTimeout = React.useRef(null);
|
|
1171
1171
|
var editingRowDataStateRef = React.useRef(null);
|
|
@@ -1202,17 +1202,20 @@ var Cell = function Cell(props) {
|
|
|
1202
1202
|
var cellEditValidateOnClose = function cellEditValidateOnClose() {
|
|
1203
1203
|
return getColumnProp('cellEditValidateOnClose');
|
|
1204
1204
|
};
|
|
1205
|
+
var isIgnoredElement = function isIgnoredElement(element) {
|
|
1206
|
+
var isOverlay = function isOverlay(el) {
|
|
1207
|
+
return el.getAttribute && el.getAttribute('data-pr-is-overlay');
|
|
1208
|
+
};
|
|
1209
|
+
return isOverlay(element) || DomHandler.getParents(element).find(function (el) {
|
|
1210
|
+
return isOverlay(el);
|
|
1211
|
+
});
|
|
1212
|
+
};
|
|
1205
1213
|
var _useEventListener = useEventListener({
|
|
1206
1214
|
type: 'click',
|
|
1207
1215
|
listener: function listener(e) {
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
switchCellToViewMode(e, true);
|
|
1213
|
-
}
|
|
1214
|
-
}, 0);
|
|
1215
|
-
selfClick.current = false;
|
|
1216
|
+
if (!isIgnoredElement(e.target) && isOutsideClicked(e.target)) {
|
|
1217
|
+
switchCellToViewMode(e, true);
|
|
1218
|
+
}
|
|
1216
1219
|
},
|
|
1217
1220
|
options: true,
|
|
1218
1221
|
when: isEditable()
|
|
@@ -1257,10 +1260,6 @@ var Cell = function Cell(props) {
|
|
|
1257
1260
|
setTimeout(function () {
|
|
1258
1261
|
setEditingState(false);
|
|
1259
1262
|
unbindDocumentClickListener();
|
|
1260
|
-
OverlayService.off('overlay-click', overlayEventListener.current);
|
|
1261
|
-
overlayEventListener.current = null;
|
|
1262
|
-
editingRowDataStateRef.current = null;
|
|
1263
|
-
selfClick.current = false;
|
|
1264
1263
|
}, 1);
|
|
1265
1264
|
};
|
|
1266
1265
|
var switchCellToViewMode = function switchCellToViewMode(event, submit) {
|
|
@@ -1304,7 +1303,7 @@ var Cell = function Cell(props) {
|
|
|
1304
1303
|
editingRowDataStateRef.current = editingRowData;
|
|
1305
1304
|
};
|
|
1306
1305
|
var _onClick = function onClick(event) {
|
|
1307
|
-
props.onClick(event, getCellCallbackParams(event), isEditable(), editingState, setEditingState,
|
|
1306
|
+
props.onClick(event, getCellCallbackParams(event), isEditable(), editingState, setEditingState, props.column, bindDocumentClickListener);
|
|
1308
1307
|
};
|
|
1309
1308
|
var _onMouseDown = function onMouseDown(event) {
|
|
1310
1309
|
var params = getCellCallbackParams(event);
|
|
@@ -1376,7 +1375,6 @@ var Cell = function Cell(props) {
|
|
|
1376
1375
|
}
|
|
1377
1376
|
};
|
|
1378
1377
|
var _onBlur = function onBlur(event) {
|
|
1379
|
-
selfClick.current = false;
|
|
1380
1378
|
if (props.editMode !== 'row' && editingState && getColumnProp('cellEditValidatorEvent') === 'blur') {
|
|
1381
1379
|
switchCellToViewMode(event, true);
|
|
1382
1380
|
}
|
|
@@ -1457,9 +1455,8 @@ var Cell = function Cell(props) {
|
|
|
1457
1455
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1458
1456
|
}, [editingState]);
|
|
1459
1457
|
useUnmountEffect(function () {
|
|
1460
|
-
if (
|
|
1461
|
-
|
|
1462
|
-
overlayEventListener.current = null;
|
|
1458
|
+
if (editingRowDataStateRef.current) {
|
|
1459
|
+
editingRowDataStateRef.current = null;
|
|
1463
1460
|
}
|
|
1464
1461
|
});
|
|
1465
1462
|
var createLoading = function createLoading() {
|
|
@@ -1763,6 +1760,7 @@ var Cell = function Cell(props) {
|
|
|
1763
1760
|
var RadioCheckCell = /*#__PURE__*/React.memo(function (props) {
|
|
1764
1761
|
return /*#__PURE__*/React.createElement(Cell, props);
|
|
1765
1762
|
}, function (prevProps, nextProps) {
|
|
1763
|
+
if (nextProps.cellMemo === false) return false;
|
|
1766
1764
|
var keysToCompare = ['isRowSelected', 'field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData'];
|
|
1767
1765
|
return ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
|
|
1768
1766
|
});
|
|
@@ -2246,8 +2244,13 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
2246
2244
|
} else {
|
|
2247
2245
|
var left = 0;
|
|
2248
2246
|
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
2249
|
-
|
|
2250
|
-
|
|
2247
|
+
while (prev) {
|
|
2248
|
+
if (prev.classList.contains('p-frozen-column')) {
|
|
2249
|
+
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
2250
|
+
elementRef.current.style.left = left + 'px';
|
|
2251
|
+
break;
|
|
2252
|
+
}
|
|
2253
|
+
prev = prev.previousElementSibling;
|
|
2251
2254
|
}
|
|
2252
2255
|
styleObject.left = left + 'px';
|
|
2253
2256
|
}
|
|
@@ -2255,9 +2258,8 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
2255
2258
|
!isSameStyle && setStyleObjectState(styleObject);
|
|
2256
2259
|
}
|
|
2257
2260
|
}, []);
|
|
2258
|
-
var onCellClick = function onCellClick(event, params, isEditable, editingState, setEditingState,
|
|
2261
|
+
var onCellClick = function onCellClick(event, params, isEditable, editingState, setEditingState, column, bindDocumentClickListener) {
|
|
2259
2262
|
if (props.editMode !== 'row' && isEditable && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.isRowSelected)) {
|
|
2260
|
-
selfClick.current = true;
|
|
2261
2263
|
var onBeforeCellEditShow = getColumnProp(column, 'onBeforeCellEditShow');
|
|
2262
2264
|
var onCellEditInit = getColumnProp(column, 'onCellEditInit');
|
|
2263
2265
|
var cellEditValidatorEvent = getColumnProp(column, 'cellEditValidatorEvent');
|
|
@@ -2288,12 +2290,6 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
2288
2290
|
}
|
|
2289
2291
|
if (cellEditValidatorEvent === 'click') {
|
|
2290
2292
|
bindDocumentClickListener();
|
|
2291
|
-
overlayEventListener.current = function (e) {
|
|
2292
|
-
if (!isOutsideClicked(e.target)) {
|
|
2293
|
-
selfClick.current = true;
|
|
2294
|
-
}
|
|
2295
|
-
};
|
|
2296
|
-
OverlayService.on('overlay-click', overlayEventListener.current);
|
|
2297
2293
|
}
|
|
2298
2294
|
}, 1);
|
|
2299
2295
|
}
|
|
@@ -3362,23 +3358,20 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
3362
3358
|
}
|
|
3363
3359
|
});
|
|
3364
3360
|
var createEmptyContent = function createEmptyContent() {
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
return /*#__PURE__*/React.createElement("tr", emptyMessageProps, /*#__PURE__*/React.createElement("td", bodyCellProps, _content));
|
|
3380
|
-
}
|
|
3381
|
-
return null;
|
|
3361
|
+
var colSpan = getColumnsLength();
|
|
3362
|
+
var content = ObjectUtils.getJSXElement(props.emptyMessage, {
|
|
3363
|
+
props: props.tableProps,
|
|
3364
|
+
frozen: props.frozenRow
|
|
3365
|
+
}) || localeOption('emptyMessage');
|
|
3366
|
+
var emptyMessageProps = mergeProps({
|
|
3367
|
+
className: cx('emptyMessage'),
|
|
3368
|
+
role: 'row'
|
|
3369
|
+
}, ptm('emptyMessage'));
|
|
3370
|
+
var bodyCellProps = mergeProps({
|
|
3371
|
+
colSpan: colSpan,
|
|
3372
|
+
role: 'cell'
|
|
3373
|
+
}, getColumnPTOptions('root'), getColumnPTOptions('bodyCell'));
|
|
3374
|
+
return /*#__PURE__*/React.createElement("tr", emptyMessageProps, /*#__PURE__*/React.createElement("td", bodyCellProps, content));
|
|
3382
3375
|
};
|
|
3383
3376
|
var createGroupHeader = function createGroupHeader(rowData, rowIndex, expanded, colSpan) {
|
|
3384
3377
|
if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, rowIndex - props.first)) {
|
|
@@ -3399,7 +3392,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
3399
3392
|
props: props.tableProps,
|
|
3400
3393
|
customRendering: false
|
|
3401
3394
|
};
|
|
3402
|
-
var
|
|
3395
|
+
var _content = ObjectUtils.getJSXElement(props.rowGroupHeaderTemplate, rowData, options);
|
|
3403
3396
|
|
|
3404
3397
|
// check if the user wants complete control of the rendering
|
|
3405
3398
|
if (!options.customRendering) {
|
|
@@ -3409,14 +3402,14 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
3409
3402
|
var rowGroupHeaderNameProps = mergeProps({
|
|
3410
3403
|
className: cx('rowGroupHeaderName')
|
|
3411
3404
|
}, ptm('rowGroupHeaderName'));
|
|
3412
|
-
|
|
3405
|
+
_content = /*#__PURE__*/React.createElement("td", bodyCellProps, toggler, /*#__PURE__*/React.createElement("span", rowGroupHeaderNameProps, _content));
|
|
3413
3406
|
}
|
|
3414
3407
|
var rowGroupHeaderProps = mergeProps({
|
|
3415
3408
|
className: cx('rowGroupHeader'),
|
|
3416
3409
|
style: style,
|
|
3417
3410
|
role: 'row'
|
|
3418
3411
|
}, ptm('rowGroupHeader'));
|
|
3419
|
-
return /*#__PURE__*/React.createElement("tr", rowGroupHeaderProps,
|
|
3412
|
+
return /*#__PURE__*/React.createElement("tr", rowGroupHeaderProps, _content);
|
|
3420
3413
|
}
|
|
3421
3414
|
return null;
|
|
3422
3415
|
};
|
|
@@ -3513,7 +3506,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
3513
3506
|
index: rowIndex,
|
|
3514
3507
|
customRendering: false
|
|
3515
3508
|
};
|
|
3516
|
-
var
|
|
3509
|
+
var _content2 = ObjectUtils.getJSXElement(props.rowExpansionTemplate, rowData, options);
|
|
3517
3510
|
|
|
3518
3511
|
// check if the user wants complete control of the rendering
|
|
3519
3512
|
if (!options.customRendering) {
|
|
@@ -3521,20 +3514,20 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
3521
3514
|
colSpan: colSpan,
|
|
3522
3515
|
role: 'cell'
|
|
3523
3516
|
}, getColumnPTOptions('root'), getColumnPTOptions('bodyCell'));
|
|
3524
|
-
|
|
3517
|
+
_content2 = /*#__PURE__*/React.createElement("td", bodyCellProps, _content2);
|
|
3525
3518
|
}
|
|
3526
3519
|
var rowExpansionProps = mergeProps({
|
|
3527
3520
|
id: id,
|
|
3528
3521
|
className: cx('rowExpansion'),
|
|
3529
3522
|
role: 'row'
|
|
3530
3523
|
}, ptm('rowExpansion'));
|
|
3531
|
-
return /*#__PURE__*/React.createElement("tr", rowExpansionProps,
|
|
3524
|
+
return /*#__PURE__*/React.createElement("tr", rowExpansionProps, _content2);
|
|
3532
3525
|
}
|
|
3533
3526
|
return null;
|
|
3534
3527
|
};
|
|
3535
3528
|
var createGroupFooter = function createGroupFooter(rowData, rowIndex, expanded, colSpan) {
|
|
3536
3529
|
if (isSubheaderGrouping && shouldRenderRowGroupFooter(props.value, rowData, rowIndex - props.first, expanded)) {
|
|
3537
|
-
var
|
|
3530
|
+
var _content3 = ObjectUtils.getJSXElement(props.rowGroupFooterTemplate, rowData, {
|
|
3538
3531
|
index: rowIndex,
|
|
3539
3532
|
colSpan: colSpan,
|
|
3540
3533
|
props: props.tableProps
|
|
@@ -3543,7 +3536,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
3543
3536
|
className: cx('rowGroupFooter'),
|
|
3544
3537
|
role: 'row'
|
|
3545
3538
|
}, ptm('rowGroupFooter'));
|
|
3546
|
-
return /*#__PURE__*/React.createElement("tr", rowGroupFooterProps,
|
|
3539
|
+
return /*#__PURE__*/React.createElement("tr", rowGroupFooterProps, _content3);
|
|
3547
3540
|
}
|
|
3548
3541
|
return null;
|
|
3549
3542
|
};
|
|
@@ -3653,16 +3646,21 @@ var FooterCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
3653
3646
|
var _align = getColumnProp('alignFrozen');
|
|
3654
3647
|
if (_align === 'right') {
|
|
3655
3648
|
var right = 0;
|
|
3656
|
-
var next = elementRef.current.nextElementSibling;
|
|
3649
|
+
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
3657
3650
|
if (next && next.classList.contains('p-frozen-column')) {
|
|
3658
3651
|
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
3659
3652
|
}
|
|
3660
3653
|
styleObject.right = right + 'px';
|
|
3661
3654
|
} else {
|
|
3662
3655
|
var left = 0;
|
|
3663
|
-
var prev = elementRef.current.previousElementSibling;
|
|
3664
|
-
|
|
3665
|
-
|
|
3656
|
+
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
3657
|
+
while (prev) {
|
|
3658
|
+
if (prev && prev.classList.contains('p-frozen-column')) {
|
|
3659
|
+
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
3660
|
+
elementRef.current.style.left = left + 'px';
|
|
3661
|
+
break;
|
|
3662
|
+
}
|
|
3663
|
+
prev = prev.previousElementSibling;
|
|
3666
3664
|
}
|
|
3667
3665
|
styleObject.left = left + 'px';
|
|
3668
3666
|
}
|
|
@@ -4345,7 +4343,7 @@ var ColumnFilter = /*#__PURE__*/React.memo(function (props) {
|
|
|
4345
4343
|
};
|
|
4346
4344
|
} else {
|
|
4347
4345
|
filters[field].value = null;
|
|
4348
|
-
filters[field].matchMode = defaultConstraint.matchMode;
|
|
4346
|
+
filters[field].matchMode = defaultConstraint ? defaultConstraint.matchMode : filters[field].matchMode;
|
|
4349
4347
|
}
|
|
4350
4348
|
filterClearCallback && filterClearCallback();
|
|
4351
4349
|
props.onFilterChange(filters);
|
|
@@ -4412,6 +4410,7 @@ var ColumnFilter = /*#__PURE__*/React.memo(function (props) {
|
|
|
4412
4410
|
}
|
|
4413
4411
|
};
|
|
4414
4412
|
var onRowMatchModeChange = function onRowMatchModeChange(matchMode) {
|
|
4413
|
+
var _iconRef$current;
|
|
4415
4414
|
var filterMatchModeChangeCallback = getColumnProp('onFilterMatchModeChange');
|
|
4416
4415
|
var filters = _objectSpread$4({}, props.filters);
|
|
4417
4416
|
filters[field].matchMode = matchMode;
|
|
@@ -4422,6 +4421,7 @@ var ColumnFilter = /*#__PURE__*/React.memo(function (props) {
|
|
|
4422
4421
|
props.onFilterChange(filters);
|
|
4423
4422
|
props.onFilterApply();
|
|
4424
4423
|
hide();
|
|
4424
|
+
(_iconRef$current = iconRef.current) === null || _iconRef$current === void 0 || _iconRef$current.focus();
|
|
4425
4425
|
};
|
|
4426
4426
|
var onRowMatchModeKeyDown = function onRowMatchModeKeyDown(event, matchMode, clear) {
|
|
4427
4427
|
var item = event.target;
|
|
@@ -5064,7 +5064,6 @@ var HeaderCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
5064
5064
|
var tabIndex = props.disabled ? null : 0;
|
|
5065
5065
|
var headerCheckboxProps = {
|
|
5066
5066
|
role: 'checkbox',
|
|
5067
|
-
'aria-checked': props.checked,
|
|
5068
5067
|
'aria-label': props.checked ? ariaLabel('selectAll') : ariaLabel('unselectAll'),
|
|
5069
5068
|
tabIndex: tabIndex,
|
|
5070
5069
|
onChange: onChange,
|
|
@@ -5181,24 +5180,54 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
5181
5180
|
var align = getColumnProp('alignFrozen');
|
|
5182
5181
|
if (align === 'right') {
|
|
5183
5182
|
var right = 0;
|
|
5184
|
-
var next = elementRef.current.nextElementSibling;
|
|
5183
|
+
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
5185
5184
|
if (next && next.classList.contains('p-frozen-column')) {
|
|
5186
5185
|
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
5187
5186
|
}
|
|
5188
5187
|
styleObject.right = right + 'px';
|
|
5189
5188
|
} else {
|
|
5189
|
+
var _elementRef$current, _elementRef$current2;
|
|
5190
5190
|
var left = 0;
|
|
5191
|
-
var prev = elementRef.current.previousElementSibling;
|
|
5192
|
-
|
|
5193
|
-
|
|
5191
|
+
var prev = (_elementRef$current = elementRef.current) === null || _elementRef$current === void 0 ? void 0 : _elementRef$current.previousElementSibling;
|
|
5192
|
+
var thead = (_elementRef$current2 = elementRef.current) === null || _elementRef$current2 === void 0 ? void 0 : _elementRef$current2.closest('thead');
|
|
5193
|
+
var scrollContainer = thead === null || thead === void 0 ? void 0 : thead.parentElement.parentElement;
|
|
5194
|
+
var scrollLeft = (scrollContainer === null || scrollContainer === void 0 ? void 0 : scrollContainer.scrollLeft) || 0;
|
|
5195
|
+
var isMultiRow = thead && thead.querySelectorAll('tr').length > 1;
|
|
5196
|
+
if (elementRef.current) {
|
|
5197
|
+
if (!isMultiRow) {
|
|
5198
|
+
while (prev) {
|
|
5199
|
+
if (prev.classList.contains('p-frozen-column')) {
|
|
5200
|
+
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
5201
|
+
break;
|
|
5202
|
+
}
|
|
5203
|
+
prev = prev.previousElementSibling;
|
|
5204
|
+
}
|
|
5205
|
+
} else {
|
|
5206
|
+
var targetLeft = elementRef.current.offsetLeft - scrollLeft;
|
|
5207
|
+
var frozenCells = Array.from(thead.querySelectorAll('th.p-frozen-column'));
|
|
5208
|
+
var candidate = null;
|
|
5209
|
+
for (var _i = 0, _frozenCells = frozenCells; _i < _frozenCells.length; _i++) {
|
|
5210
|
+
var cell = _frozenCells[_i];
|
|
5211
|
+
var cellLeft = cell.offsetLeft - scrollLeft;
|
|
5212
|
+
var cellRight = cellLeft + DomHandler.getOuterWidth(cell);
|
|
5213
|
+
if (cellRight <= targetLeft && (!candidate || cellRight > candidate.offsetLeft + DomHandler.getOuterWidth(candidate))) {
|
|
5214
|
+
candidate = cell;
|
|
5215
|
+
}
|
|
5216
|
+
}
|
|
5217
|
+
if (candidate) {
|
|
5218
|
+
left = candidate.offsetLeft + DomHandler.getOuterWidth(candidate) - scrollLeft;
|
|
5219
|
+
}
|
|
5220
|
+
}
|
|
5194
5221
|
}
|
|
5195
5222
|
styleObject.left = left + 'px';
|
|
5196
5223
|
}
|
|
5197
5224
|
var filterRow = elementRef.current.parentElement.nextElementSibling;
|
|
5198
5225
|
if (filterRow) {
|
|
5199
5226
|
var _index = DomHandler.index(elementRef.current);
|
|
5200
|
-
filterRow.children[_index]
|
|
5201
|
-
|
|
5227
|
+
if (filterRow.children[_index]) {
|
|
5228
|
+
filterRow.children[_index].style.left = styleObject.left;
|
|
5229
|
+
filterRow.children[_index].style.right = styleObject.right;
|
|
5230
|
+
}
|
|
5202
5231
|
}
|
|
5203
5232
|
var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
|
|
5204
5233
|
!isSameStyle && setStyleObjectState(styleObject);
|
|
@@ -5756,37 +5785,37 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5756
5785
|
sortOrderState = _React$useState8[0],
|
|
5757
5786
|
setSortOrderState = _React$useState8[1];
|
|
5758
5787
|
var _React$useState9 = React.useState(props.multiSortMeta),
|
|
5759
|
-
_React$
|
|
5760
|
-
multiSortMetaState = _React$
|
|
5761
|
-
setMultiSortMetaState = _React$
|
|
5762
|
-
var _React$
|
|
5788
|
+
_React$useState0 = _slicedToArray(_React$useState9, 2),
|
|
5789
|
+
multiSortMetaState = _React$useState0[0],
|
|
5790
|
+
setMultiSortMetaState = _React$useState0[1];
|
|
5791
|
+
var _React$useState1 = React.useState(props.filters),
|
|
5792
|
+
_React$useState10 = _slicedToArray(_React$useState1, 2),
|
|
5793
|
+
filtersState = _React$useState10[0],
|
|
5794
|
+
setFiltersState = _React$useState10[1];
|
|
5795
|
+
var _React$useState11 = React.useState([]),
|
|
5763
5796
|
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
var _React$useState13 = React.useState(
|
|
5797
|
+
columnOrderState = _React$useState12[0],
|
|
5798
|
+
setColumnOrderState = _React$useState12[1];
|
|
5799
|
+
var _React$useState13 = React.useState(null),
|
|
5767
5800
|
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
var _React$useState15 = React.useState(
|
|
5801
|
+
groupRowsSortMetaState = _React$useState14[0],
|
|
5802
|
+
setGroupRowsSortMetaState = _React$useState14[1];
|
|
5803
|
+
var _React$useState15 = React.useState({}),
|
|
5771
5804
|
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
5772
|
-
|
|
5773
|
-
|
|
5805
|
+
editingMetaState = _React$useState16[0],
|
|
5806
|
+
setEditingMetaState = _React$useState16[1];
|
|
5774
5807
|
var _React$useState17 = React.useState({}),
|
|
5775
5808
|
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
var _React$useState19 = React.useState(
|
|
5809
|
+
frozenEditingMetaState = _React$useState18[0],
|
|
5810
|
+
setFrozenEditingMetaState = _React$useState18[1];
|
|
5811
|
+
var _React$useState19 = React.useState(props.rows),
|
|
5779
5812
|
_React$useState20 = _slicedToArray(_React$useState19, 2),
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
var _React$useState21 = React.useState(
|
|
5813
|
+
d_rowsState = _React$useState20[0],
|
|
5814
|
+
setD_rowsState = _React$useState20[1];
|
|
5815
|
+
var _React$useState21 = React.useState({}),
|
|
5783
5816
|
_React$useState22 = _slicedToArray(_React$useState21, 2),
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
var _React$useState23 = React.useState({}),
|
|
5787
|
-
_React$useState24 = _slicedToArray(_React$useState23, 2),
|
|
5788
|
-
d_filtersState = _React$useState24[0],
|
|
5789
|
-
setD_filtersState = _React$useState24[1];
|
|
5817
|
+
d_filtersState = _React$useState22[0],
|
|
5818
|
+
setD_filtersState = _React$useState22[1];
|
|
5790
5819
|
var metaData = {
|
|
5791
5820
|
props: props,
|
|
5792
5821
|
state: {
|
|
@@ -5839,6 +5868,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5839
5868
|
var columnSortFunction = React.useRef(null);
|
|
5840
5869
|
var columnField = React.useRef(null);
|
|
5841
5870
|
var filterTimeout = React.useRef(null);
|
|
5871
|
+
var restoredRef = React.useRef(false);
|
|
5842
5872
|
if (props.rows !== d_rowsState && !props.onPage) {
|
|
5843
5873
|
setRowsState(props.rows);
|
|
5844
5874
|
setD_rowsState(props.rows);
|
|
@@ -6041,17 +6071,32 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
6041
6071
|
multiSortMeta: restoredState.multiSortMeta
|
|
6042
6072
|
}));
|
|
6043
6073
|
} else {
|
|
6074
|
+
var lastMeta = restoredState.multiSortMeta[restoredState.multiSortMeta.length - 1];
|
|
6075
|
+
var field = lastMeta && lastMeta.field ? lastMeta.field : null;
|
|
6076
|
+
if (field) {
|
|
6077
|
+
var sortColumn = findColumnByKey(getColumns(), field);
|
|
6078
|
+
if (sortColumn) {
|
|
6079
|
+
var sortFunction = getColumnProp(sortColumn, 'sortFunction');
|
|
6080
|
+
var sortable = getColumnProp(sortColumn, 'sortable');
|
|
6081
|
+
if (sortFunction && sortable) {
|
|
6082
|
+
columnSortFunction.current = sortFunction;
|
|
6083
|
+
columnSortable.current = sortable;
|
|
6084
|
+
columnField.current = field;
|
|
6085
|
+
}
|
|
6086
|
+
}
|
|
6087
|
+
}
|
|
6044
6088
|
setMultiSortMetaState(restoredState.multiSortMeta);
|
|
6045
6089
|
}
|
|
6046
6090
|
}
|
|
6047
6091
|
if (restoredState.filters) {
|
|
6048
|
-
|
|
6092
|
+
var clonedFilters = cloneFilters(restoredState.filters);
|
|
6093
|
+
setD_filtersState(clonedFilters);
|
|
6049
6094
|
if (props.onFilter) {
|
|
6050
6095
|
props.onFilter(createEvent({
|
|
6051
|
-
filters:
|
|
6096
|
+
filters: clonedFilters
|
|
6052
6097
|
}));
|
|
6053
6098
|
} else {
|
|
6054
|
-
setFiltersState(
|
|
6099
|
+
setFiltersState(clonedFilters);
|
|
6055
6100
|
}
|
|
6056
6101
|
}
|
|
6057
6102
|
if (props.resizableColumns) {
|
|
@@ -7062,15 +7107,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
7062
7107
|
attributeSelector.current = UniqueComponentId();
|
|
7063
7108
|
elementRef.current.setAttribute(attributeSelector.current, '');
|
|
7064
7109
|
}
|
|
7065
|
-
|
|
7066
|
-
//setFiltersState(cloneFilters(props.filters)); // Github #4248
|
|
7067
7110
|
setD_filtersState(cloneFilters(props.filters));
|
|
7068
|
-
if (isStateful()) {
|
|
7069
|
-
restoreState();
|
|
7070
|
-
if (props.resizableColumns) {
|
|
7071
|
-
restoreColumnWidths();
|
|
7072
|
-
}
|
|
7073
|
-
}
|
|
7074
7111
|
});
|
|
7075
7112
|
useUpdateEffect(function () {
|
|
7076
7113
|
if (props.responsiveLayout === 'stack' && !props.scrollable) {
|
|
@@ -7080,6 +7117,15 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
7080
7117
|
destroyResponsiveStyle();
|
|
7081
7118
|
};
|
|
7082
7119
|
}, [props.breakpoint]);
|
|
7120
|
+
useUpdateEffect(function () {
|
|
7121
|
+
if (!restoredRef.current && isStateful()) {
|
|
7122
|
+
restoredRef.current = true;
|
|
7123
|
+
restoreState();
|
|
7124
|
+
if (props.resizableColumns) {
|
|
7125
|
+
restoreColumnWidths();
|
|
7126
|
+
}
|
|
7127
|
+
}
|
|
7128
|
+
}, [context]);
|
|
7083
7129
|
useUpdateEffect(function () {
|
|
7084
7130
|
var filters = cloneFilters(props.filters);
|
|
7085
7131
|
setFiltersState(filters);
|
|
@@ -7156,6 +7202,9 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
7156
7202
|
},
|
|
7157
7203
|
getVirtualScroller: function getVirtualScroller() {
|
|
7158
7204
|
return virtualScrollerRef.current;
|
|
7205
|
+
},
|
|
7206
|
+
getProcessedData: function getProcessedData() {
|
|
7207
|
+
return processedData();
|
|
7159
7208
|
}
|
|
7160
7209
|
};
|
|
7161
7210
|
});
|