primereact 10.6.5 → 10.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/api/api.d.ts +8 -0
- package/button/button.cjs.js +1 -0
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +1 -0
- package/button/button.esm.min.js +1 -1
- package/button/button.js +1 -0
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +81 -45
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +8 -10
- package/calendar/calendar.esm.js +81 -45
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +81 -45
- package/calendar/calendar.min.js +1 -1
- package/chart/chart.d.ts +1 -13
- package/checkbox/checkbox.cjs.js +64 -0
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +12 -0
- package/checkbox/checkbox.esm.js +64 -0
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +64 -0
- package/checkbox/checkbox.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +18 -4
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +19 -5
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +18 -4
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.d.ts +36 -14
- package/core/core.js +213 -58
- package/core/core.min.js +12 -12
- package/csstransition/csstransition.cjs.js +0 -6
- package/csstransition/csstransition.esm.js +0 -6
- package/csstransition/csstransition.js +0 -6
- package/datatable/datatable.cjs.js +157 -100
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +1 -1
- package/datatable/datatable.esm.js +157 -100
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +157 -100
- package/datatable/datatable.min.js +1 -1
- package/dialog/dialog.cjs.js +19 -4
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +19 -4
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +19 -4
- package/dialog/dialog.min.js +1 -1
- package/dropdown/dropdown.cjs.js +10 -8
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +10 -8
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +10 -8
- package/dropdown/dropdown.min.js +1 -1
- package/focustrap/focustrap.cjs.js +12 -1
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +12 -1
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +12 -1
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/galleria.cjs.js +7 -0
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +8 -1
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +7 -0
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +2 -1
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +2 -1
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +2 -1
- package/hooks/hooks.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +17 -13
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +17 -13
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +17 -13
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +26 -3
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +27 -4
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +26 -3
- package/inputotp/inputotp.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -1
- package/keyfilter/keyfilter.cjs.js +1 -1
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +1 -1
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +1 -1
- package/keyfilter/keyfilter.min.js +1 -1
- package/listbox/listbox.cjs.js +23 -35
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +23 -35
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +23 -35
- package/listbox/listbox.min.js +1 -1
- package/menubar/menubar.d.ts +9 -0
- package/metergroup/metergroup.cjs.js +5 -4
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.d.ts +3 -10
- package/metergroup/metergroup.esm.js +5 -4
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +5 -4
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/multiselect.cjs.js +11 -2
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +11 -2
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +11 -2
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +9 -0
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +9 -0
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +9 -0
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +0 -1
- package/organizationchart/organizationchart.esm.js +0 -1
- package/organizationchart/organizationchart.js +0 -1
- package/package.json +4 -4
- package/paginator/paginator.cjs.js +1 -1
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +1 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +1 -1
- package/paginator/paginator.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +13 -12
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +13 -12
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +13 -12
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +10 -81
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +10 -81
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +10 -81
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +2 -2
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +2 -2
- package/password/password.esm.min.js +1 -1
- package/password/password.js +2 -2
- package/password/password.min.js +1 -1
- package/primereact.all.cjs.js +2826 -1797
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +2823 -1798
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +2826 -1797
- package/primereact.all.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +13 -10
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +13 -10
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +13 -10
- package/radiobutton/radiobutton.min.js +1 -1
- package/resources/images/line.gif +0 -0
- package/resources/themes/arya-blue/theme.css +62 -0
- package/resources/themes/arya-green/theme.css +62 -0
- package/resources/themes/arya-orange/theme.css +62 -0
- package/resources/themes/bootstrap4-dark-blue/theme.css +62 -0
- package/resources/themes/bootstrap4-dark-purple/theme.css +207 -43
- package/resources/themes/bootstrap4-light-blue/theme.css +62 -0
- package/resources/themes/bootstrap4-light-purple/theme.css +207 -43
- package/resources/themes/fluent-light/theme.css +62 -0
- package/resources/themes/lara-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-amber/theme.css +62 -9
- package/resources/themes/lara-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-blue/theme.css +62 -9
- package/resources/themes/lara-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-cyan/theme.css +62 -9
- package/resources/themes/lara-dark-green/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-green/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-green/theme.css +62 -9
- package/resources/themes/lara-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/theme.css +62 -9
- package/resources/themes/lara-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-pink/theme.css +62 -9
- package/resources/themes/lara-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-teal/theme.css +62 -9
- package/resources/themes/lara-light-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-amber/theme.css +62 -9
- package/resources/themes/lara-light-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-blue/theme.css +62 -9
- package/resources/themes/lara-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-cyan/theme.css +62 -9
- package/resources/themes/lara-light-green/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-green/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-green/theme.css +62 -9
- package/resources/themes/lara-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-indigo/theme.css +62 -9
- package/resources/themes/lara-light-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-pink/theme.css +62 -9
- package/resources/themes/lara-light-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-teal/theme.css +62 -9
- package/resources/themes/luna-amber/theme.css +62 -0
- package/resources/themes/luna-blue/theme.css +62 -0
- package/resources/themes/luna-green/theme.css +62 -0
- package/resources/themes/luna-pink/theme.css +62 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/md-dark-deeppurple/theme.css +225 -43
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/md-dark-indigo/theme.css +213 -151
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/md-light-deeppurple/theme.css +225 -43
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/md-light-indigo/theme.css +62 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/mdc-dark-deeppurple/theme.css +225 -43
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/mdc-dark-indigo/theme.css +213 -151
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/mdc-light-deeppurple/theme.css +225 -43
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/mdc-light-indigo/theme.css +62 -0
- package/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/mira/theme.css +62 -0
- package/resources/themes/nano/theme.css +62 -0
- package/resources/themes/nova/theme.css +62 -0
- package/resources/themes/nova-accent/theme.css +62 -0
- package/resources/themes/nova-alt/theme.css +62 -0
- package/resources/themes/rhea/theme.css +62 -0
- package/resources/themes/saga-blue/theme.css +62 -0
- package/resources/themes/saga-green/theme.css +62 -0
- package/resources/themes/saga-orange/theme.css +62 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-dark/theme.css +87 -25
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-light/theme.css +62 -0
- package/resources/themes/tailwind-light/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Light.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/tailwind-light/theme.css +62 -0
- package/resources/themes/vela-blue/theme.css +62 -0
- package/resources/themes/vela-green/theme.css +62 -0
- package/resources/themes/vela-orange/theme.css +62 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-dark/theme.css +62 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-light/theme.css +62 -0
- package/sidebar/sidebar.d.ts +4 -0
- package/splitbutton/splitbutton.cjs.js +0 -1
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +0 -1
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +0 -1
- package/splitbutton/splitbutton.min.js +1 -1
- package/tabview/tabview.cjs.js +0 -3
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +1 -1
- package/tabview/tabview.esm.js +0 -3
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +0 -3
- package/tabview/tabview.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +0 -1
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +0 -1
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +0 -1
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/tooltip/tooltip.cjs.js +12 -3
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +13 -4
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +12 -3
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +5 -0
- package/tree/tree.cjs.js +60 -14
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +60 -14
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +60 -14
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +0 -1
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +0 -1
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +0 -1
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +249 -9
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +29 -0
- package/treetable/treetable.esm.js +249 -9
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +249 -9
- package/treetable/treetable.min.js +1 -1
- package/utils/utils.cjs.js +3 -6
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +7 -4
- package/utils/utils.esm.js +3 -6
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +3 -6
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +23 -1
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +23 -1
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +23 -1
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +77 -30
|
@@ -156,6 +156,7 @@ var ColumnBase = ComponentBase.extend({
|
|
|
156
156
|
body: null,
|
|
157
157
|
bodyClassName: null,
|
|
158
158
|
bodyStyle: null,
|
|
159
|
+
cellEditValidateOnClose: false,
|
|
159
160
|
cellEditValidator: null,
|
|
160
161
|
cellEditValidatorEvent: 'click',
|
|
161
162
|
className: null,
|
|
@@ -349,6 +350,8 @@ var TreeTableBase = ComponentBase.extend({
|
|
|
349
350
|
columnResizeMode: 'fit',
|
|
350
351
|
contextMenuSelectionKey: null,
|
|
351
352
|
currentPageReportTemplate: '({currentPage} of {totalPages})',
|
|
353
|
+
customRestoreState: null,
|
|
354
|
+
customSaveState: null,
|
|
352
355
|
defaultSortOrder: 1,
|
|
353
356
|
emptyMessage: null,
|
|
354
357
|
expandedKeys: null,
|
|
@@ -386,6 +389,8 @@ var TreeTableBase = ComponentBase.extend({
|
|
|
386
389
|
onSelect: null,
|
|
387
390
|
onSelectionChange: null,
|
|
388
391
|
onSort: null,
|
|
392
|
+
onStateRestore: null,
|
|
393
|
+
onStateSave: null,
|
|
389
394
|
onToggle: null,
|
|
390
395
|
onUnselect: null,
|
|
391
396
|
onValueChange: null,
|
|
@@ -418,6 +423,8 @@ var TreeTableBase = ComponentBase.extend({
|
|
|
418
423
|
sortIcon: null,
|
|
419
424
|
sortMode: 'single',
|
|
420
425
|
sortOrder: null,
|
|
426
|
+
stateKey: null,
|
|
427
|
+
stateStorage: null,
|
|
421
428
|
stripedRows: false,
|
|
422
429
|
style: null,
|
|
423
430
|
tabIndex: 0,
|
|
@@ -731,8 +738,15 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
731
738
|
var mergeProps = useMergeProps();
|
|
732
739
|
var context = React.useContext(PrimeReactContext);
|
|
733
740
|
var props = CheckboxBase.getProps(inProps, context);
|
|
741
|
+
var _React$useState = React.useState(false),
|
|
742
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
743
|
+
focusedState = _React$useState2[0],
|
|
744
|
+
setFocusedState = _React$useState2[1];
|
|
734
745
|
var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
|
|
735
746
|
props: props,
|
|
747
|
+
state: {
|
|
748
|
+
focused: focusedState
|
|
749
|
+
},
|
|
736
750
|
context: {
|
|
737
751
|
checked: props.checked === props.trueValue,
|
|
738
752
|
disabled: props.disabled
|
|
@@ -786,10 +800,12 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
786
800
|
};
|
|
787
801
|
var _onFocus = function onFocus() {
|
|
788
802
|
var _props$onFocus;
|
|
803
|
+
setFocusedState(true);
|
|
789
804
|
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
|
|
790
805
|
};
|
|
791
806
|
var _onBlur = function onBlur() {
|
|
792
807
|
var _props$onBlur;
|
|
808
|
+
setFocusedState(false);
|
|
793
809
|
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
|
|
794
810
|
};
|
|
795
811
|
React.useImperativeHandle(ref, function () {
|
|
@@ -1469,7 +1485,6 @@ var TreeTableRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
1469
1485
|
}, getRowPTOptions('row'), {
|
|
1470
1486
|
className: classNames(rowClassName, props.node.className) // #5983 must be last so all unstyled merging takes place first
|
|
1471
1487
|
});
|
|
1472
|
-
|
|
1473
1488
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tr", _extends({
|
|
1474
1489
|
ref: elementRef
|
|
1475
1490
|
}, rowProps), cells), children);
|
|
@@ -2372,6 +2387,19 @@ var TreeTableScrollableView = /*#__PURE__*/React.memo(function (props) {
|
|
|
2372
2387
|
});
|
|
2373
2388
|
TreeTableScrollableView.displayName = 'TreeTableScrollableView';
|
|
2374
2389
|
|
|
2390
|
+
var getStorage = function getStorage(stateStorageProp) {
|
|
2391
|
+
switch (stateStorageProp) {
|
|
2392
|
+
case 'local':
|
|
2393
|
+
return window.localStorage;
|
|
2394
|
+
case 'session':
|
|
2395
|
+
return window.sessionStorage;
|
|
2396
|
+
case 'custom':
|
|
2397
|
+
return null;
|
|
2398
|
+
default:
|
|
2399
|
+
throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
|
|
2400
|
+
}
|
|
2401
|
+
};
|
|
2402
|
+
|
|
2375
2403
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2376
2404
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2377
2405
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
@@ -2474,6 +2502,152 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
2474
2502
|
_useEventListener4 = _slicedToArray(_useEventListener3, 2),
|
|
2475
2503
|
bindDocumentMouseUpListener = _useEventListener4[0],
|
|
2476
2504
|
unbindDocumentMouseUpListener = _useEventListener4[1];
|
|
2505
|
+
var isCustomStateStorage = function isCustomStateStorage() {
|
|
2506
|
+
return props.stateStorage === 'custom';
|
|
2507
|
+
};
|
|
2508
|
+
var isStateful = function isStateful() {
|
|
2509
|
+
return props.stateKey != null || isCustomStateStorage();
|
|
2510
|
+
};
|
|
2511
|
+
var saveState = function saveState() {
|
|
2512
|
+
var state = {};
|
|
2513
|
+
if (props.paginator) {
|
|
2514
|
+
state.first = getFirst();
|
|
2515
|
+
state.rows = getRows();
|
|
2516
|
+
}
|
|
2517
|
+
var sortField = getSortField();
|
|
2518
|
+
if (sortField) {
|
|
2519
|
+
state.sortField = sortField;
|
|
2520
|
+
state.sortOrder = getSortOrder();
|
|
2521
|
+
}
|
|
2522
|
+
var multiSortMeta = getMultiSortMeta();
|
|
2523
|
+
if (multiSortMeta) {
|
|
2524
|
+
state.multiSortMeta = multiSortMeta;
|
|
2525
|
+
}
|
|
2526
|
+
if (hasFilter()) {
|
|
2527
|
+
state.filters = getFilters();
|
|
2528
|
+
}
|
|
2529
|
+
if (props.reorderableColumns) {
|
|
2530
|
+
state.columnOrder = columnOrderState;
|
|
2531
|
+
}
|
|
2532
|
+
state.expandedKeysState = expandedKeysState;
|
|
2533
|
+
if (props.selectionKeys && props.onSelectionChange) {
|
|
2534
|
+
state.selectionKeys = props.selectionKeys;
|
|
2535
|
+
}
|
|
2536
|
+
if (isCustomStateStorage()) {
|
|
2537
|
+
if (props.customSaveState) {
|
|
2538
|
+
props.customSaveState(state);
|
|
2539
|
+
}
|
|
2540
|
+
} else {
|
|
2541
|
+
var storage = getStorage(props.stateStorage);
|
|
2542
|
+
if (ObjectUtils.isNotEmpty(state)) {
|
|
2543
|
+
storage.setItem(props.stateKey, JSON.stringify(state));
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
if (props.onStateSave) {
|
|
2547
|
+
props.onStateSave(state);
|
|
2548
|
+
}
|
|
2549
|
+
};
|
|
2550
|
+
var clearState = function clearState() {
|
|
2551
|
+
var storage = getStorage(props.stateStorage);
|
|
2552
|
+
if (storage && props.stateKey) {
|
|
2553
|
+
storage.removeItem(props.stateKey);
|
|
2554
|
+
}
|
|
2555
|
+
};
|
|
2556
|
+
var restoreState = function restoreState() {
|
|
2557
|
+
var restoredState = {};
|
|
2558
|
+
if (isCustomStateStorage()) {
|
|
2559
|
+
if (props.customRestoreState) {
|
|
2560
|
+
restoredState = props.customRestoreState();
|
|
2561
|
+
}
|
|
2562
|
+
} else {
|
|
2563
|
+
var storage = getStorage(props.stateStorage);
|
|
2564
|
+
var stateString = storage.getItem(props.stateKey);
|
|
2565
|
+
var dateFormat = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
|
|
2566
|
+
var reviver = function reviver(key, value) {
|
|
2567
|
+
return typeof value === 'string' && dateFormat.test(value) ? new Date(value) : value;
|
|
2568
|
+
};
|
|
2569
|
+
if (stateString) {
|
|
2570
|
+
restoredState = JSON.parse(stateString, reviver);
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
_restoreState(restoredState);
|
|
2574
|
+
};
|
|
2575
|
+
var restoreTableState = function restoreTableState(restoredState) {
|
|
2576
|
+
_restoreState(restoredState);
|
|
2577
|
+
};
|
|
2578
|
+
var _restoreState = function _restoreState() {
|
|
2579
|
+
var restoredState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2580
|
+
if (ObjectUtils.isNotEmpty(restoredState)) {
|
|
2581
|
+
if (props.paginator) {
|
|
2582
|
+
if (props.onPage) {
|
|
2583
|
+
var getOnPageParams = function getOnPageParams(first, rows) {
|
|
2584
|
+
var totalRecords = getTotalRecords(processedData());
|
|
2585
|
+
var pageCount = Math.ceil(totalRecords / rows) || 1;
|
|
2586
|
+
var page = Math.floor(first / rows);
|
|
2587
|
+
return {
|
|
2588
|
+
first: first,
|
|
2589
|
+
rows: rows,
|
|
2590
|
+
page: page,
|
|
2591
|
+
pageCount: pageCount
|
|
2592
|
+
};
|
|
2593
|
+
};
|
|
2594
|
+
props.onPage(createEvent(getOnPageParams(restoredState.first, restoredState.rows)));
|
|
2595
|
+
} else {
|
|
2596
|
+
setFirstState(restoredState.first);
|
|
2597
|
+
setRowsState(restoredState.rows);
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
if (restoredState.sortField) {
|
|
2601
|
+
if (props.onSort) {
|
|
2602
|
+
props.onSort(createEvent({
|
|
2603
|
+
sortField: restoredState.sortField,
|
|
2604
|
+
sortOrder: restoredState.sortOrder
|
|
2605
|
+
}));
|
|
2606
|
+
} else {
|
|
2607
|
+
setSortFieldState(restoredState.sortField);
|
|
2608
|
+
setSortOrderState(restoredState.sortOrder);
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2611
|
+
if (restoredState.multiSortMeta) {
|
|
2612
|
+
if (props.onSort) {
|
|
2613
|
+
props.onSort(createEvent({
|
|
2614
|
+
multiSortMeta: restoredState.multiSortMeta
|
|
2615
|
+
}));
|
|
2616
|
+
} else {
|
|
2617
|
+
setMultiSortMetaState(restoredState.multiSortMeta);
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
if (restoredState.filters) {
|
|
2621
|
+
if (props.onFilter) {
|
|
2622
|
+
props.onFilter(createEvent({
|
|
2623
|
+
filters: restoredState.filters
|
|
2624
|
+
}));
|
|
2625
|
+
} else {
|
|
2626
|
+
setFiltersState(cloneFilters(restoredState.filters));
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
if (props.reorderableColumns) {
|
|
2630
|
+
setColumnOrderState(restoredState.columnOrder);
|
|
2631
|
+
}
|
|
2632
|
+
if (restoredState.expandedKeysState) {
|
|
2633
|
+
if (props.onToggle) {
|
|
2634
|
+
props.onRowToggle({
|
|
2635
|
+
data: restoredState.expandedKeysState
|
|
2636
|
+
});
|
|
2637
|
+
} else {
|
|
2638
|
+
setExpandedKeysState(restoredState.expandedKeysState);
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
if (restoredState.selectionKeys && props.onSelectionChange) {
|
|
2642
|
+
props.onSelectionChange({
|
|
2643
|
+
value: restoredState.selectionKeys
|
|
2644
|
+
});
|
|
2645
|
+
}
|
|
2646
|
+
if (props.onStateRestore) {
|
|
2647
|
+
props.onStateRestore(restoredState);
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2650
|
+
};
|
|
2477
2651
|
var onToggle = function onToggle(event) {
|
|
2478
2652
|
var originalEvent = event.originalEvent,
|
|
2479
2653
|
value = event.value,
|
|
@@ -2698,6 +2872,46 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
2698
2872
|
}));
|
|
2699
2873
|
}
|
|
2700
2874
|
};
|
|
2875
|
+
var cloneFilters = function cloneFilters(filters) {
|
|
2876
|
+
filters = filters || props.filters;
|
|
2877
|
+
var cloned = {};
|
|
2878
|
+
if (filters) {
|
|
2879
|
+
Object.entries(filters).forEach(function (_ref) {
|
|
2880
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
2881
|
+
prop = _ref2[0],
|
|
2882
|
+
value = _ref2[1];
|
|
2883
|
+
cloned[prop] = value;
|
|
2884
|
+
});
|
|
2885
|
+
} else {
|
|
2886
|
+
var columns = getColumns();
|
|
2887
|
+
cloned = columns.reduce(function (filters, col) {
|
|
2888
|
+
var field = getColumnProp(col, 'filterField') || getColumnProp(col, 'field');
|
|
2889
|
+
var filterFunction = getColumnProp(col, 'filterFunction');
|
|
2890
|
+
var dataType = getColumnProp(col, 'dataType');
|
|
2891
|
+
var matchMode = getColumnProp(col, 'filterMatchMode') || (context && context.filterMatchModeOptions[dataType] || PrimeReact.filterMatchModeOptions[dataType] ? context && context.filterMatchModeOptions[dataType][0] || PrimeReact.filterMatchModeOptions[dataType][0] : FilterMatchMode.STARTS_WITH);
|
|
2892
|
+
var constraint = {
|
|
2893
|
+
value: null,
|
|
2894
|
+
matchMode: matchMode
|
|
2895
|
+
};
|
|
2896
|
+
if (filterFunction) {
|
|
2897
|
+
FilterService.register("custom_".concat(field), function () {
|
|
2898
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2899
|
+
args[_key] = arguments[_key];
|
|
2900
|
+
}
|
|
2901
|
+
return filterFunction.apply(void 0, args.concat([{
|
|
2902
|
+
column: col
|
|
2903
|
+
}]));
|
|
2904
|
+
});
|
|
2905
|
+
}
|
|
2906
|
+
filters[field] = constraint;
|
|
2907
|
+
return filters;
|
|
2908
|
+
}, {});
|
|
2909
|
+
}
|
|
2910
|
+
return cloned;
|
|
2911
|
+
};
|
|
2912
|
+
var hasFilter = function hasFilter() {
|
|
2913
|
+
return ObjectUtils.isNotEmpty(getFilters());
|
|
2914
|
+
};
|
|
2701
2915
|
var isFilterBlank = function isFilterBlank(filter) {
|
|
2702
2916
|
if (filter !== null && filter !== undefined) {
|
|
2703
2917
|
if (typeof filter === 'string' && filter.trim().length === 0 || filter instanceof Array && filter.length === 0) {
|
|
@@ -2776,6 +2990,9 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
2776
2990
|
delta: delta
|
|
2777
2991
|
});
|
|
2778
2992
|
}
|
|
2993
|
+
if (isStateful()) {
|
|
2994
|
+
saveState();
|
|
2995
|
+
}
|
|
2779
2996
|
}
|
|
2780
2997
|
resizerHelperRef.current.style.display = 'none';
|
|
2781
2998
|
resizeColumn.current = null;
|
|
@@ -2829,7 +3046,6 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
2829
3046
|
draggedColumn.current = column;
|
|
2830
3047
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
2831
3048
|
};
|
|
2832
|
-
|
|
2833
3049
|
var onColumnDragOver = function onColumnDragOver(e) {
|
|
2834
3050
|
var event = e.originalEvent,
|
|
2835
3051
|
column = e.column;
|
|
@@ -3162,12 +3378,12 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
3162
3378
|
}
|
|
3163
3379
|
}
|
|
3164
3380
|
};
|
|
3165
|
-
var isFilterMatched = function isFilterMatched(node,
|
|
3166
|
-
var filterField =
|
|
3167
|
-
filterValue =
|
|
3168
|
-
filterConstraint =
|
|
3169
|
-
isStrictMode =
|
|
3170
|
-
options =
|
|
3381
|
+
var isFilterMatched = function isFilterMatched(node, _ref3) {
|
|
3382
|
+
var filterField = _ref3.filterField,
|
|
3383
|
+
filterValue = _ref3.filterValue,
|
|
3384
|
+
filterConstraint = _ref3.filterConstraint,
|
|
3385
|
+
isStrictMode = _ref3.isStrictMode,
|
|
3386
|
+
options = _ref3.options;
|
|
3171
3387
|
var matched = false;
|
|
3172
3388
|
var dataFieldValue = ObjectUtils.resolveFieldData(node.data, filterField);
|
|
3173
3389
|
if (filterConstraint(dataFieldValue, filterValue, props.filterLocale, options)) {
|
|
@@ -3215,6 +3431,16 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
3215
3431
|
}
|
|
3216
3432
|
return data;
|
|
3217
3433
|
};
|
|
3434
|
+
useMountEffect(function () {
|
|
3435
|
+
if (isStateful()) {
|
|
3436
|
+
restoreState();
|
|
3437
|
+
}
|
|
3438
|
+
});
|
|
3439
|
+
useUpdateEffect(function () {
|
|
3440
|
+
if (isStateful()) {
|
|
3441
|
+
saveState();
|
|
3442
|
+
}
|
|
3443
|
+
});
|
|
3218
3444
|
useUpdateEffect(function () {
|
|
3219
3445
|
if (childFocusEvent.current) {
|
|
3220
3446
|
var nodeElement = childFocusEvent.current.target;
|
|
@@ -3229,12 +3455,26 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
3229
3455
|
React.useImperativeHandle(ref, function () {
|
|
3230
3456
|
return {
|
|
3231
3457
|
props: props,
|
|
3458
|
+
clearState: clearState,
|
|
3232
3459
|
filter: filter,
|
|
3233
3460
|
getElement: function getElement() {
|
|
3234
3461
|
return elementRef.current;
|
|
3235
|
-
}
|
|
3462
|
+
},
|
|
3463
|
+
restoreState: restoreState,
|
|
3464
|
+
restoreTableState: restoreTableState,
|
|
3465
|
+
saveState: saveState
|
|
3236
3466
|
};
|
|
3237
3467
|
});
|
|
3468
|
+
var createEvent = function createEvent(event) {
|
|
3469
|
+
return _objectSpread({
|
|
3470
|
+
first: getFirst(),
|
|
3471
|
+
rows: getRows(),
|
|
3472
|
+
sortField: getSortField(),
|
|
3473
|
+
sortOrder: getSortOrder(),
|
|
3474
|
+
multiSortMeta: getMultiSortMeta(),
|
|
3475
|
+
filters: getFilters()
|
|
3476
|
+
}, event);
|
|
3477
|
+
};
|
|
3238
3478
|
var createTableHeader = function createTableHeader(columns, columnGroup) {
|
|
3239
3479
|
var sortField = getSortField();
|
|
3240
3480
|
var sortOrder = getSortOrder();
|