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
package/datatable/datatable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.datatable = (function (exports, React, PrimeReact$1, componentbase, utils, hooks, arrowdown, arrowup, spinner, paginator, virtualscroller, bars, check, chevrondown, chevronright, pencil, times,
|
|
2
|
+
this.primereact.datatable = (function (exports, React, PrimeReact$1, componentbase, utils, hooks, arrowdown, arrowup, spinner, paginator, virtualscroller, bars, check, chevrondown, chevronright, pencil, times, ripple, tooltip, button, csstransition, dropdown, filter, filterslash, plus, trash, inputtext, overlayservice, portal, sortalt, sortamountdown, sortamountupalt) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -368,10 +368,10 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
368
368
|
});
|
|
369
369
|
},
|
|
370
370
|
filterSeparator: 'p-column-filter-separator',
|
|
371
|
-
filterRowItem: function filterRowItem(
|
|
372
|
-
var isRowMatchModeSelected =
|
|
373
|
-
isShowMatchModes =
|
|
374
|
-
value =
|
|
371
|
+
filterRowItem: function filterRowItem(_ref0) {
|
|
372
|
+
var isRowMatchModeSelected = _ref0.isRowMatchModeSelected,
|
|
373
|
+
isShowMatchModes = _ref0.isShowMatchModes,
|
|
374
|
+
value = _ref0.value;
|
|
375
375
|
return isShowMatchModes() ? utils.classNames('p-column-filter-row-item', {
|
|
376
376
|
'p-highlight': value && isRowMatchModeSelected(value)
|
|
377
377
|
}) : undefined;
|
|
@@ -382,18 +382,18 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
382
382
|
filterConstraint: 'p-column-filter-constraint',
|
|
383
383
|
filterAddRule: 'p-column-filter-add-rule',
|
|
384
384
|
filterButtonBar: 'p-column-filter-buttonbar',
|
|
385
|
-
filterOverlay: function filterOverlay(
|
|
386
|
-
var props =
|
|
387
|
-
context =
|
|
388
|
-
getColumnProp =
|
|
385
|
+
filterOverlay: function filterOverlay(_ref1) {
|
|
386
|
+
var props = _ref1.columnFilterProps,
|
|
387
|
+
context = _ref1.context,
|
|
388
|
+
getColumnProp = _ref1.getColumnProp;
|
|
389
389
|
return utils.classNames('p-column-filter-overlay p-component p-fluid', getColumnProp('filterMenuClassName'), {
|
|
390
390
|
'p-column-filter-overlay-menu': props.display === 'menu',
|
|
391
391
|
'p-input-filled': context && context.inputStyle === 'filled' || PrimeReact__default["default"].inputStyle === 'filled',
|
|
392
392
|
'p-ripple-disabled': context && context.ripple === false || PrimeReact__default["default"].ripple === false
|
|
393
393
|
});
|
|
394
394
|
},
|
|
395
|
-
columnFilter: function columnFilter(
|
|
396
|
-
var props =
|
|
395
|
+
columnFilter: function columnFilter(_ref10) {
|
|
396
|
+
var props = _ref10.columnFilterProps;
|
|
397
397
|
return utils.classNames('p-column-filter p-fluid', {
|
|
398
398
|
'p-column-filter-row': props.display === 'row',
|
|
399
399
|
'p-column-filter-menu': props.display === 'menu'
|
|
@@ -405,13 +405,13 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
405
405
|
sortIcon: 'p-sortable-column-icon',
|
|
406
406
|
headerTitle: 'p-column-title',
|
|
407
407
|
headerContent: 'p-column-header-content',
|
|
408
|
-
headerCell: function headerCell(
|
|
409
|
-
var props =
|
|
410
|
-
frozen =
|
|
411
|
-
sortMeta =
|
|
412
|
-
align =
|
|
413
|
-
_isSortableDisabled =
|
|
414
|
-
getColumnProp =
|
|
408
|
+
headerCell: function headerCell(_ref11) {
|
|
409
|
+
var props = _ref11.headerProps,
|
|
410
|
+
frozen = _ref11.frozen,
|
|
411
|
+
sortMeta = _ref11.sortMeta,
|
|
412
|
+
align = _ref11.align,
|
|
413
|
+
_isSortableDisabled = _ref11._isSortableDisabled,
|
|
414
|
+
getColumnProp = _ref11.getColumnProp;
|
|
415
415
|
return utils.ObjectUtils.isEmpty(props) ? utils.classNames('p-filter-column', {
|
|
416
416
|
'p-frozen-column': frozen
|
|
417
417
|
}) : utils.classNames(_defineProperty({
|
|
@@ -425,9 +425,9 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
425
425
|
'p-reorderable-column': props.reorderableColumns && getColumnProp('reorderable') && !frozen
|
|
426
426
|
}, "p-align-".concat(align), !!align));
|
|
427
427
|
},
|
|
428
|
-
footerCell: function footerCell(
|
|
429
|
-
var getColumnProp =
|
|
430
|
-
align =
|
|
428
|
+
footerCell: function footerCell(_ref12) {
|
|
429
|
+
var getColumnProp = _ref12.getColumnProp,
|
|
430
|
+
align = _ref12.align;
|
|
431
431
|
return utils.classNames(_defineProperty({
|
|
432
432
|
'p-frozen-column': getColumnProp('frozen')
|
|
433
433
|
}, "p-align-".concat(align), !!align));
|
|
@@ -441,12 +441,12 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
441
441
|
resizeHelper: {
|
|
442
442
|
display: 'none'
|
|
443
443
|
},
|
|
444
|
-
reorderIndicatorUp: function reorderIndicatorUp(
|
|
445
|
-
var style =
|
|
444
|
+
reorderIndicatorUp: function reorderIndicatorUp(_ref13) {
|
|
445
|
+
var style = _ref13.style;
|
|
446
446
|
return _objectSpread$f({}, style);
|
|
447
447
|
},
|
|
448
|
-
reorderIndicatorDown: function reorderIndicatorDown(
|
|
449
|
-
var style =
|
|
448
|
+
reorderIndicatorDown: function reorderIndicatorDown(_ref14) {
|
|
449
|
+
var style = _ref14.style;
|
|
450
450
|
return _objectSpread$f({}, style);
|
|
451
451
|
}
|
|
452
452
|
};
|
|
@@ -456,6 +456,9 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
456
456
|
alwaysShowPaginator: true,
|
|
457
457
|
breakpoint: '960px',
|
|
458
458
|
cellClassName: null,
|
|
459
|
+
cellMemo: true,
|
|
460
|
+
cellMemoProps: ['rowData', 'field', 'allowCellSelection', 'isCellSelected', 'editMode', 'rowIndex', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'frozenCol', 'alignFrozenCol'],
|
|
461
|
+
cellMemoPropsDepth: 1,
|
|
459
462
|
cellSelection: false,
|
|
460
463
|
checkIcon: null,
|
|
461
464
|
className: null,
|
|
@@ -888,7 +891,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
888
891
|
var tabIndex = props.disabled ? null : '0';
|
|
889
892
|
var checkboxProps = {
|
|
890
893
|
role: 'checkbox',
|
|
891
|
-
'aria-checked': props.checked,
|
|
892
894
|
tabIndex: tabIndex,
|
|
893
895
|
onChange: onChange,
|
|
894
896
|
'aria-label': props.ariaLabel,
|
|
@@ -1158,8 +1160,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1158
1160
|
setStyleObjectState = _React$useState6[1];
|
|
1159
1161
|
var elementRef = React__namespace.useRef(null);
|
|
1160
1162
|
var keyHelperRef = React__namespace.useRef(null);
|
|
1161
|
-
var overlayEventListener = React__namespace.useRef(null);
|
|
1162
|
-
var selfClick = React__namespace.useRef(false);
|
|
1163
1163
|
var focusTimeout = React__namespace.useRef(null);
|
|
1164
1164
|
var initFocusTimeout = React__namespace.useRef(null);
|
|
1165
1165
|
var editingRowDataStateRef = React__namespace.useRef(null);
|
|
@@ -1196,17 +1196,20 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1196
1196
|
var cellEditValidateOnClose = function cellEditValidateOnClose() {
|
|
1197
1197
|
return getColumnProp('cellEditValidateOnClose');
|
|
1198
1198
|
};
|
|
1199
|
+
var isIgnoredElement = function isIgnoredElement(element) {
|
|
1200
|
+
var isOverlay = function isOverlay(el) {
|
|
1201
|
+
return el.getAttribute && el.getAttribute('data-pr-is-overlay');
|
|
1202
|
+
};
|
|
1203
|
+
return isOverlay(element) || utils.DomHandler.getParents(element).find(function (el) {
|
|
1204
|
+
return isOverlay(el);
|
|
1205
|
+
});
|
|
1206
|
+
};
|
|
1199
1207
|
var _useEventListener = hooks.useEventListener({
|
|
1200
1208
|
type: 'click',
|
|
1201
1209
|
listener: function listener(e) {
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
switchCellToViewMode(e, true);
|
|
1207
|
-
}
|
|
1208
|
-
}, 0);
|
|
1209
|
-
selfClick.current = false;
|
|
1210
|
+
if (!isIgnoredElement(e.target) && isOutsideClicked(e.target)) {
|
|
1211
|
+
switchCellToViewMode(e, true);
|
|
1212
|
+
}
|
|
1210
1213
|
},
|
|
1211
1214
|
options: true,
|
|
1212
1215
|
when: isEditable()
|
|
@@ -1251,10 +1254,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1251
1254
|
setTimeout(function () {
|
|
1252
1255
|
setEditingState(false);
|
|
1253
1256
|
unbindDocumentClickListener();
|
|
1254
|
-
overlayservice.OverlayService.off('overlay-click', overlayEventListener.current);
|
|
1255
|
-
overlayEventListener.current = null;
|
|
1256
|
-
editingRowDataStateRef.current = null;
|
|
1257
|
-
selfClick.current = false;
|
|
1258
1257
|
}, 1);
|
|
1259
1258
|
};
|
|
1260
1259
|
var switchCellToViewMode = function switchCellToViewMode(event, submit) {
|
|
@@ -1298,7 +1297,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1298
1297
|
editingRowDataStateRef.current = editingRowData;
|
|
1299
1298
|
};
|
|
1300
1299
|
var _onClick = function onClick(event) {
|
|
1301
|
-
props.onClick(event, getCellCallbackParams(event), isEditable(), editingState, setEditingState,
|
|
1300
|
+
props.onClick(event, getCellCallbackParams(event), isEditable(), editingState, setEditingState, props.column, bindDocumentClickListener);
|
|
1302
1301
|
};
|
|
1303
1302
|
var _onMouseDown = function onMouseDown(event) {
|
|
1304
1303
|
var params = getCellCallbackParams(event);
|
|
@@ -1370,7 +1369,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1370
1369
|
}
|
|
1371
1370
|
};
|
|
1372
1371
|
var _onBlur = function onBlur(event) {
|
|
1373
|
-
selfClick.current = false;
|
|
1374
1372
|
if (props.editMode !== 'row' && editingState && getColumnProp('cellEditValidatorEvent') === 'blur') {
|
|
1375
1373
|
switchCellToViewMode(event, true);
|
|
1376
1374
|
}
|
|
@@ -1451,9 +1449,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1451
1449
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1452
1450
|
}, [editingState]);
|
|
1453
1451
|
hooks.useUnmountEffect(function () {
|
|
1454
|
-
if (
|
|
1455
|
-
|
|
1456
|
-
overlayEventListener.current = null;
|
|
1452
|
+
if (editingRowDataStateRef.current) {
|
|
1453
|
+
editingRowDataStateRef.current = null;
|
|
1457
1454
|
}
|
|
1458
1455
|
});
|
|
1459
1456
|
var createLoading = function createLoading() {
|
|
@@ -1757,6 +1754,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1757
1754
|
var RadioCheckCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
1758
1755
|
return /*#__PURE__*/React__namespace.createElement(Cell, props);
|
|
1759
1756
|
}, function (prevProps, nextProps) {
|
|
1757
|
+
if (nextProps.cellMemo === false) return false;
|
|
1760
1758
|
var keysToCompare = ['isRowSelected', 'field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData'];
|
|
1761
1759
|
return utils.ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
|
|
1762
1760
|
});
|
|
@@ -2240,8 +2238,13 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2240
2238
|
} else {
|
|
2241
2239
|
var left = 0;
|
|
2242
2240
|
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
2243
|
-
|
|
2244
|
-
|
|
2241
|
+
while (prev) {
|
|
2242
|
+
if (prev.classList.contains('p-frozen-column')) {
|
|
2243
|
+
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
2244
|
+
elementRef.current.style.left = left + 'px';
|
|
2245
|
+
break;
|
|
2246
|
+
}
|
|
2247
|
+
prev = prev.previousElementSibling;
|
|
2245
2248
|
}
|
|
2246
2249
|
styleObject.left = left + 'px';
|
|
2247
2250
|
}
|
|
@@ -2249,9 +2252,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2249
2252
|
!isSameStyle && setStyleObjectState(styleObject);
|
|
2250
2253
|
}
|
|
2251
2254
|
}, []);
|
|
2252
|
-
var onCellClick = function onCellClick(event, params, isEditable, editingState, setEditingState,
|
|
2255
|
+
var onCellClick = function onCellClick(event, params, isEditable, editingState, setEditingState, column, bindDocumentClickListener) {
|
|
2253
2256
|
if (props.editMode !== 'row' && isEditable && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.isRowSelected)) {
|
|
2254
|
-
selfClick.current = true;
|
|
2255
2257
|
var onBeforeCellEditShow = getColumnProp(column, 'onBeforeCellEditShow');
|
|
2256
2258
|
var onCellEditInit = getColumnProp(column, 'onCellEditInit');
|
|
2257
2259
|
var cellEditValidatorEvent = getColumnProp(column, 'cellEditValidatorEvent');
|
|
@@ -2282,12 +2284,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2282
2284
|
}
|
|
2283
2285
|
if (cellEditValidatorEvent === 'click') {
|
|
2284
2286
|
bindDocumentClickListener();
|
|
2285
|
-
overlayEventListener.current = function (e) {
|
|
2286
|
-
if (!isOutsideClicked(e.target)) {
|
|
2287
|
-
selfClick.current = true;
|
|
2288
|
-
}
|
|
2289
|
-
};
|
|
2290
|
-
overlayservice.OverlayService.on('overlay-click', overlayEventListener.current);
|
|
2291
2287
|
}
|
|
2292
2288
|
}, 1);
|
|
2293
2289
|
}
|
|
@@ -3356,23 +3352,20 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3356
3352
|
}
|
|
3357
3353
|
});
|
|
3358
3354
|
var createEmptyContent = function createEmptyContent() {
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
return /*#__PURE__*/React__namespace.createElement("tr", emptyMessageProps, /*#__PURE__*/React__namespace.createElement("td", bodyCellProps, _content));
|
|
3374
|
-
}
|
|
3375
|
-
return null;
|
|
3355
|
+
var colSpan = getColumnsLength();
|
|
3356
|
+
var content = utils.ObjectUtils.getJSXElement(props.emptyMessage, {
|
|
3357
|
+
props: props.tableProps,
|
|
3358
|
+
frozen: props.frozenRow
|
|
3359
|
+
}) || PrimeReact$1.localeOption('emptyMessage');
|
|
3360
|
+
var emptyMessageProps = mergeProps({
|
|
3361
|
+
className: cx('emptyMessage'),
|
|
3362
|
+
role: 'row'
|
|
3363
|
+
}, ptm('emptyMessage'));
|
|
3364
|
+
var bodyCellProps = mergeProps({
|
|
3365
|
+
colSpan: colSpan,
|
|
3366
|
+
role: 'cell'
|
|
3367
|
+
}, getColumnPTOptions('root'), getColumnPTOptions('bodyCell'));
|
|
3368
|
+
return /*#__PURE__*/React__namespace.createElement("tr", emptyMessageProps, /*#__PURE__*/React__namespace.createElement("td", bodyCellProps, content));
|
|
3376
3369
|
};
|
|
3377
3370
|
var createGroupHeader = function createGroupHeader(rowData, rowIndex, expanded, colSpan) {
|
|
3378
3371
|
if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, rowIndex - props.first)) {
|
|
@@ -3393,7 +3386,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3393
3386
|
props: props.tableProps,
|
|
3394
3387
|
customRendering: false
|
|
3395
3388
|
};
|
|
3396
|
-
var
|
|
3389
|
+
var _content = utils.ObjectUtils.getJSXElement(props.rowGroupHeaderTemplate, rowData, options);
|
|
3397
3390
|
|
|
3398
3391
|
// check if the user wants complete control of the rendering
|
|
3399
3392
|
if (!options.customRendering) {
|
|
@@ -3403,14 +3396,14 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3403
3396
|
var rowGroupHeaderNameProps = mergeProps({
|
|
3404
3397
|
className: cx('rowGroupHeaderName')
|
|
3405
3398
|
}, ptm('rowGroupHeaderName'));
|
|
3406
|
-
|
|
3399
|
+
_content = /*#__PURE__*/React__namespace.createElement("td", bodyCellProps, toggler, /*#__PURE__*/React__namespace.createElement("span", rowGroupHeaderNameProps, _content));
|
|
3407
3400
|
}
|
|
3408
3401
|
var rowGroupHeaderProps = mergeProps({
|
|
3409
3402
|
className: cx('rowGroupHeader'),
|
|
3410
3403
|
style: style,
|
|
3411
3404
|
role: 'row'
|
|
3412
3405
|
}, ptm('rowGroupHeader'));
|
|
3413
|
-
return /*#__PURE__*/React__namespace.createElement("tr", rowGroupHeaderProps,
|
|
3406
|
+
return /*#__PURE__*/React__namespace.createElement("tr", rowGroupHeaderProps, _content);
|
|
3414
3407
|
}
|
|
3415
3408
|
return null;
|
|
3416
3409
|
};
|
|
@@ -3507,7 +3500,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3507
3500
|
index: rowIndex,
|
|
3508
3501
|
customRendering: false
|
|
3509
3502
|
};
|
|
3510
|
-
var
|
|
3503
|
+
var _content2 = utils.ObjectUtils.getJSXElement(props.rowExpansionTemplate, rowData, options);
|
|
3511
3504
|
|
|
3512
3505
|
// check if the user wants complete control of the rendering
|
|
3513
3506
|
if (!options.customRendering) {
|
|
@@ -3515,20 +3508,20 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3515
3508
|
colSpan: colSpan,
|
|
3516
3509
|
role: 'cell'
|
|
3517
3510
|
}, getColumnPTOptions('root'), getColumnPTOptions('bodyCell'));
|
|
3518
|
-
|
|
3511
|
+
_content2 = /*#__PURE__*/React__namespace.createElement("td", bodyCellProps, _content2);
|
|
3519
3512
|
}
|
|
3520
3513
|
var rowExpansionProps = mergeProps({
|
|
3521
3514
|
id: id,
|
|
3522
3515
|
className: cx('rowExpansion'),
|
|
3523
3516
|
role: 'row'
|
|
3524
3517
|
}, ptm('rowExpansion'));
|
|
3525
|
-
return /*#__PURE__*/React__namespace.createElement("tr", rowExpansionProps,
|
|
3518
|
+
return /*#__PURE__*/React__namespace.createElement("tr", rowExpansionProps, _content2);
|
|
3526
3519
|
}
|
|
3527
3520
|
return null;
|
|
3528
3521
|
};
|
|
3529
3522
|
var createGroupFooter = function createGroupFooter(rowData, rowIndex, expanded, colSpan) {
|
|
3530
3523
|
if (isSubheaderGrouping && shouldRenderRowGroupFooter(props.value, rowData, rowIndex - props.first, expanded)) {
|
|
3531
|
-
var
|
|
3524
|
+
var _content3 = utils.ObjectUtils.getJSXElement(props.rowGroupFooterTemplate, rowData, {
|
|
3532
3525
|
index: rowIndex,
|
|
3533
3526
|
colSpan: colSpan,
|
|
3534
3527
|
props: props.tableProps
|
|
@@ -3537,7 +3530,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3537
3530
|
className: cx('rowGroupFooter'),
|
|
3538
3531
|
role: 'row'
|
|
3539
3532
|
}, ptm('rowGroupFooter'));
|
|
3540
|
-
return /*#__PURE__*/React__namespace.createElement("tr", rowGroupFooterProps,
|
|
3533
|
+
return /*#__PURE__*/React__namespace.createElement("tr", rowGroupFooterProps, _content3);
|
|
3541
3534
|
}
|
|
3542
3535
|
return null;
|
|
3543
3536
|
};
|
|
@@ -3647,16 +3640,21 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3647
3640
|
var _align = getColumnProp('alignFrozen');
|
|
3648
3641
|
if (_align === 'right') {
|
|
3649
3642
|
var right = 0;
|
|
3650
|
-
var next = elementRef.current.nextElementSibling;
|
|
3643
|
+
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
3651
3644
|
if (next && next.classList.contains('p-frozen-column')) {
|
|
3652
3645
|
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
3653
3646
|
}
|
|
3654
3647
|
styleObject.right = right + 'px';
|
|
3655
3648
|
} else {
|
|
3656
3649
|
var left = 0;
|
|
3657
|
-
var prev = elementRef.current.previousElementSibling;
|
|
3658
|
-
|
|
3659
|
-
|
|
3650
|
+
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
3651
|
+
while (prev) {
|
|
3652
|
+
if (prev && prev.classList.contains('p-frozen-column')) {
|
|
3653
|
+
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
3654
|
+
elementRef.current.style.left = left + 'px';
|
|
3655
|
+
break;
|
|
3656
|
+
}
|
|
3657
|
+
prev = prev.previousElementSibling;
|
|
3660
3658
|
}
|
|
3661
3659
|
styleObject.left = left + 'px';
|
|
3662
3660
|
}
|
|
@@ -4339,7 +4337,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
4339
4337
|
};
|
|
4340
4338
|
} else {
|
|
4341
4339
|
filters[field].value = null;
|
|
4342
|
-
filters[field].matchMode = defaultConstraint.matchMode;
|
|
4340
|
+
filters[field].matchMode = defaultConstraint ? defaultConstraint.matchMode : filters[field].matchMode;
|
|
4343
4341
|
}
|
|
4344
4342
|
filterClearCallback && filterClearCallback();
|
|
4345
4343
|
props.onFilterChange(filters);
|
|
@@ -4406,6 +4404,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
4406
4404
|
}
|
|
4407
4405
|
};
|
|
4408
4406
|
var onRowMatchModeChange = function onRowMatchModeChange(matchMode) {
|
|
4407
|
+
var _iconRef$current;
|
|
4409
4408
|
var filterMatchModeChangeCallback = getColumnProp('onFilterMatchModeChange');
|
|
4410
4409
|
var filters = _objectSpread$4({}, props.filters);
|
|
4411
4410
|
filters[field].matchMode = matchMode;
|
|
@@ -4416,6 +4415,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
4416
4415
|
props.onFilterChange(filters);
|
|
4417
4416
|
props.onFilterApply();
|
|
4418
4417
|
hide();
|
|
4418
|
+
(_iconRef$current = iconRef.current) === null || _iconRef$current === void 0 || _iconRef$current.focus();
|
|
4419
4419
|
};
|
|
4420
4420
|
var onRowMatchModeKeyDown = function onRowMatchModeKeyDown(event, matchMode, clear) {
|
|
4421
4421
|
var item = event.target;
|
|
@@ -5058,7 +5058,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5058
5058
|
var tabIndex = props.disabled ? null : 0;
|
|
5059
5059
|
var headerCheckboxProps = {
|
|
5060
5060
|
role: 'checkbox',
|
|
5061
|
-
'aria-checked': props.checked,
|
|
5062
5061
|
'aria-label': props.checked ? ariaLabel('selectAll') : ariaLabel('unselectAll'),
|
|
5063
5062
|
tabIndex: tabIndex,
|
|
5064
5063
|
onChange: onChange,
|
|
@@ -5175,24 +5174,54 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5175
5174
|
var align = getColumnProp('alignFrozen');
|
|
5176
5175
|
if (align === 'right') {
|
|
5177
5176
|
var right = 0;
|
|
5178
|
-
var next = elementRef.current.nextElementSibling;
|
|
5177
|
+
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
5179
5178
|
if (next && next.classList.contains('p-frozen-column')) {
|
|
5180
5179
|
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
5181
5180
|
}
|
|
5182
5181
|
styleObject.right = right + 'px';
|
|
5183
5182
|
} else {
|
|
5183
|
+
var _elementRef$current, _elementRef$current2;
|
|
5184
5184
|
var left = 0;
|
|
5185
|
-
var prev = elementRef.current.previousElementSibling;
|
|
5186
|
-
|
|
5187
|
-
|
|
5185
|
+
var prev = (_elementRef$current = elementRef.current) === null || _elementRef$current === void 0 ? void 0 : _elementRef$current.previousElementSibling;
|
|
5186
|
+
var thead = (_elementRef$current2 = elementRef.current) === null || _elementRef$current2 === void 0 ? void 0 : _elementRef$current2.closest('thead');
|
|
5187
|
+
var scrollContainer = thead === null || thead === void 0 ? void 0 : thead.parentElement.parentElement;
|
|
5188
|
+
var scrollLeft = (scrollContainer === null || scrollContainer === void 0 ? void 0 : scrollContainer.scrollLeft) || 0;
|
|
5189
|
+
var isMultiRow = thead && thead.querySelectorAll('tr').length > 1;
|
|
5190
|
+
if (elementRef.current) {
|
|
5191
|
+
if (!isMultiRow) {
|
|
5192
|
+
while (prev) {
|
|
5193
|
+
if (prev.classList.contains('p-frozen-column')) {
|
|
5194
|
+
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
5195
|
+
break;
|
|
5196
|
+
}
|
|
5197
|
+
prev = prev.previousElementSibling;
|
|
5198
|
+
}
|
|
5199
|
+
} else {
|
|
5200
|
+
var targetLeft = elementRef.current.offsetLeft - scrollLeft;
|
|
5201
|
+
var frozenCells = Array.from(thead.querySelectorAll('th.p-frozen-column'));
|
|
5202
|
+
var candidate = null;
|
|
5203
|
+
for (var _i = 0, _frozenCells = frozenCells; _i < _frozenCells.length; _i++) {
|
|
5204
|
+
var cell = _frozenCells[_i];
|
|
5205
|
+
var cellLeft = cell.offsetLeft - scrollLeft;
|
|
5206
|
+
var cellRight = cellLeft + utils.DomHandler.getOuterWidth(cell);
|
|
5207
|
+
if (cellRight <= targetLeft && (!candidate || cellRight > candidate.offsetLeft + utils.DomHandler.getOuterWidth(candidate))) {
|
|
5208
|
+
candidate = cell;
|
|
5209
|
+
}
|
|
5210
|
+
}
|
|
5211
|
+
if (candidate) {
|
|
5212
|
+
left = candidate.offsetLeft + utils.DomHandler.getOuterWidth(candidate) - scrollLeft;
|
|
5213
|
+
}
|
|
5214
|
+
}
|
|
5188
5215
|
}
|
|
5189
5216
|
styleObject.left = left + 'px';
|
|
5190
5217
|
}
|
|
5191
5218
|
var filterRow = elementRef.current.parentElement.nextElementSibling;
|
|
5192
5219
|
if (filterRow) {
|
|
5193
5220
|
var _index = utils.DomHandler.index(elementRef.current);
|
|
5194
|
-
filterRow.children[_index]
|
|
5195
|
-
|
|
5221
|
+
if (filterRow.children[_index]) {
|
|
5222
|
+
filterRow.children[_index].style.left = styleObject.left;
|
|
5223
|
+
filterRow.children[_index].style.right = styleObject.right;
|
|
5224
|
+
}
|
|
5196
5225
|
}
|
|
5197
5226
|
var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
|
|
5198
5227
|
!isSameStyle && setStyleObjectState(styleObject);
|
|
@@ -5750,37 +5779,37 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5750
5779
|
sortOrderState = _React$useState8[0],
|
|
5751
5780
|
setSortOrderState = _React$useState8[1];
|
|
5752
5781
|
var _React$useState9 = React__namespace.useState(props.multiSortMeta),
|
|
5753
|
-
_React$
|
|
5754
|
-
multiSortMetaState = _React$
|
|
5755
|
-
setMultiSortMetaState = _React$
|
|
5756
|
-
var _React$
|
|
5782
|
+
_React$useState0 = _slicedToArray(_React$useState9, 2),
|
|
5783
|
+
multiSortMetaState = _React$useState0[0],
|
|
5784
|
+
setMultiSortMetaState = _React$useState0[1];
|
|
5785
|
+
var _React$useState1 = React__namespace.useState(props.filters),
|
|
5786
|
+
_React$useState10 = _slicedToArray(_React$useState1, 2),
|
|
5787
|
+
filtersState = _React$useState10[0],
|
|
5788
|
+
setFiltersState = _React$useState10[1];
|
|
5789
|
+
var _React$useState11 = React__namespace.useState([]),
|
|
5757
5790
|
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
var _React$useState13 = React__namespace.useState(
|
|
5791
|
+
columnOrderState = _React$useState12[0],
|
|
5792
|
+
setColumnOrderState = _React$useState12[1];
|
|
5793
|
+
var _React$useState13 = React__namespace.useState(null),
|
|
5761
5794
|
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
var _React$useState15 = React__namespace.useState(
|
|
5795
|
+
groupRowsSortMetaState = _React$useState14[0],
|
|
5796
|
+
setGroupRowsSortMetaState = _React$useState14[1];
|
|
5797
|
+
var _React$useState15 = React__namespace.useState({}),
|
|
5765
5798
|
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
5766
|
-
|
|
5767
|
-
|
|
5799
|
+
editingMetaState = _React$useState16[0],
|
|
5800
|
+
setEditingMetaState = _React$useState16[1];
|
|
5768
5801
|
var _React$useState17 = React__namespace.useState({}),
|
|
5769
5802
|
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
var _React$useState19 = React__namespace.useState(
|
|
5803
|
+
frozenEditingMetaState = _React$useState18[0],
|
|
5804
|
+
setFrozenEditingMetaState = _React$useState18[1];
|
|
5805
|
+
var _React$useState19 = React__namespace.useState(props.rows),
|
|
5773
5806
|
_React$useState20 = _slicedToArray(_React$useState19, 2),
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
var _React$useState21 = React__namespace.useState(
|
|
5807
|
+
d_rowsState = _React$useState20[0],
|
|
5808
|
+
setD_rowsState = _React$useState20[1];
|
|
5809
|
+
var _React$useState21 = React__namespace.useState({}),
|
|
5777
5810
|
_React$useState22 = _slicedToArray(_React$useState21, 2),
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
var _React$useState23 = React__namespace.useState({}),
|
|
5781
|
-
_React$useState24 = _slicedToArray(_React$useState23, 2),
|
|
5782
|
-
d_filtersState = _React$useState24[0],
|
|
5783
|
-
setD_filtersState = _React$useState24[1];
|
|
5811
|
+
d_filtersState = _React$useState22[0],
|
|
5812
|
+
setD_filtersState = _React$useState22[1];
|
|
5784
5813
|
var metaData = {
|
|
5785
5814
|
props: props,
|
|
5786
5815
|
state: {
|
|
@@ -5833,6 +5862,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5833
5862
|
var columnSortFunction = React__namespace.useRef(null);
|
|
5834
5863
|
var columnField = React__namespace.useRef(null);
|
|
5835
5864
|
var filterTimeout = React__namespace.useRef(null);
|
|
5865
|
+
var restoredRef = React__namespace.useRef(false);
|
|
5836
5866
|
if (props.rows !== d_rowsState && !props.onPage) {
|
|
5837
5867
|
setRowsState(props.rows);
|
|
5838
5868
|
setD_rowsState(props.rows);
|
|
@@ -6035,17 +6065,32 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
6035
6065
|
multiSortMeta: restoredState.multiSortMeta
|
|
6036
6066
|
}));
|
|
6037
6067
|
} else {
|
|
6068
|
+
var lastMeta = restoredState.multiSortMeta[restoredState.multiSortMeta.length - 1];
|
|
6069
|
+
var field = lastMeta && lastMeta.field ? lastMeta.field : null;
|
|
6070
|
+
if (field) {
|
|
6071
|
+
var sortColumn = findColumnByKey(getColumns(), field);
|
|
6072
|
+
if (sortColumn) {
|
|
6073
|
+
var sortFunction = getColumnProp(sortColumn, 'sortFunction');
|
|
6074
|
+
var sortable = getColumnProp(sortColumn, 'sortable');
|
|
6075
|
+
if (sortFunction && sortable) {
|
|
6076
|
+
columnSortFunction.current = sortFunction;
|
|
6077
|
+
columnSortable.current = sortable;
|
|
6078
|
+
columnField.current = field;
|
|
6079
|
+
}
|
|
6080
|
+
}
|
|
6081
|
+
}
|
|
6038
6082
|
setMultiSortMetaState(restoredState.multiSortMeta);
|
|
6039
6083
|
}
|
|
6040
6084
|
}
|
|
6041
6085
|
if (restoredState.filters) {
|
|
6042
|
-
|
|
6086
|
+
var clonedFilters = cloneFilters(restoredState.filters);
|
|
6087
|
+
setD_filtersState(clonedFilters);
|
|
6043
6088
|
if (props.onFilter) {
|
|
6044
6089
|
props.onFilter(createEvent({
|
|
6045
|
-
filters:
|
|
6090
|
+
filters: clonedFilters
|
|
6046
6091
|
}));
|
|
6047
6092
|
} else {
|
|
6048
|
-
setFiltersState(
|
|
6093
|
+
setFiltersState(clonedFilters);
|
|
6049
6094
|
}
|
|
6050
6095
|
}
|
|
6051
6096
|
if (props.resizableColumns) {
|
|
@@ -7056,15 +7101,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
7056
7101
|
attributeSelector.current = utils.UniqueComponentId();
|
|
7057
7102
|
elementRef.current.setAttribute(attributeSelector.current, '');
|
|
7058
7103
|
}
|
|
7059
|
-
|
|
7060
|
-
//setFiltersState(cloneFilters(props.filters)); // Github #4248
|
|
7061
7104
|
setD_filtersState(cloneFilters(props.filters));
|
|
7062
|
-
if (isStateful()) {
|
|
7063
|
-
restoreState();
|
|
7064
|
-
if (props.resizableColumns) {
|
|
7065
|
-
restoreColumnWidths();
|
|
7066
|
-
}
|
|
7067
|
-
}
|
|
7068
7105
|
});
|
|
7069
7106
|
hooks.useUpdateEffect(function () {
|
|
7070
7107
|
if (props.responsiveLayout === 'stack' && !props.scrollable) {
|
|
@@ -7074,6 +7111,15 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
7074
7111
|
destroyResponsiveStyle();
|
|
7075
7112
|
};
|
|
7076
7113
|
}, [props.breakpoint]);
|
|
7114
|
+
hooks.useUpdateEffect(function () {
|
|
7115
|
+
if (!restoredRef.current && isStateful()) {
|
|
7116
|
+
restoredRef.current = true;
|
|
7117
|
+
restoreState();
|
|
7118
|
+
if (props.resizableColumns) {
|
|
7119
|
+
restoreColumnWidths();
|
|
7120
|
+
}
|
|
7121
|
+
}
|
|
7122
|
+
}, [context]);
|
|
7077
7123
|
hooks.useUpdateEffect(function () {
|
|
7078
7124
|
var filters = cloneFilters(props.filters);
|
|
7079
7125
|
setFiltersState(filters);
|
|
@@ -7150,6 +7196,9 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
7150
7196
|
},
|
|
7151
7197
|
getVirtualScroller: function getVirtualScroller() {
|
|
7152
7198
|
return virtualScrollerRef.current;
|
|
7199
|
+
},
|
|
7200
|
+
getProcessedData: function getProcessedData() {
|
|
7201
|
+
return processedData();
|
|
7153
7202
|
}
|
|
7154
7203
|
};
|
|
7155
7204
|
});
|
|
@@ -7630,4 +7679,4 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
7630
7679
|
|
|
7631
7680
|
return exports;
|
|
7632
7681
|
|
|
7633
|
-
})({}, React, primereact.api, primereact.componentbase, primereact.utils, primereact.hooks, primereact.icons.arrowdown, primereact.icons.arrowup, primereact.icons.spinner, primereact.paginator, primereact.virtualscroller, primereact.icons.bars, primereact.icons.check, primereact.icons.chevrondown, primereact.icons.chevronright, primereact.icons.pencil, primereact.icons.times, primereact.
|
|
7682
|
+
})({}, React, primereact.api, primereact.componentbase, primereact.utils, primereact.hooks, primereact.icons.arrowdown, primereact.icons.arrowup, primereact.icons.spinner, primereact.paginator, primereact.virtualscroller, primereact.icons.bars, primereact.icons.check, primereact.icons.chevrondown, primereact.icons.chevronright, primereact.icons.pencil, primereact.icons.times, primereact.ripple, primereact.tooltip, primereact.button, primereact.csstransition, primereact.dropdown, primereact.icons.filter, primereact.icons.filterslash, primereact.icons.plus, primereact.icons.trash, primereact.inputtext, primereact.overlayservice, primereact.portal, primereact.icons.sortalt, primereact.icons.sortamountdown, primereact.icons.sortamountupalt);
|