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
package/datatable/datatable.d.ts
CHANGED
|
@@ -1081,7 +1081,7 @@ interface DataTableBaseProps<TValue extends DataTableValueArray> extends Omit<Re
|
|
|
1081
1081
|
dragSelection?: boolean;
|
|
1082
1082
|
/**
|
|
1083
1083
|
* Defines editing mode, options are "cell" and "row".
|
|
1084
|
-
* @defaultValue
|
|
1084
|
+
* @defaultValue null
|
|
1085
1085
|
*/
|
|
1086
1086
|
editMode?: string | undefined;
|
|
1087
1087
|
/**
|
|
@@ -159,6 +159,19 @@ function _slicedToArray(arr, i) {
|
|
|
159
159
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
var getStorage = function getStorage(stateStorageProp) {
|
|
163
|
+
switch (stateStorageProp) {
|
|
164
|
+
case 'local':
|
|
165
|
+
return window.localStorage;
|
|
166
|
+
case 'session':
|
|
167
|
+
return window.sessionStorage;
|
|
168
|
+
case 'custom':
|
|
169
|
+
return null;
|
|
170
|
+
default:
|
|
171
|
+
throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
|
|
162
175
|
var ColumnBase = ComponentBase.extend({
|
|
163
176
|
defaultProps: {
|
|
164
177
|
__TYPE: 'Column',
|
|
@@ -168,6 +181,7 @@ var ColumnBase = ComponentBase.extend({
|
|
|
168
181
|
body: null,
|
|
169
182
|
bodyClassName: null,
|
|
170
183
|
bodyStyle: null,
|
|
184
|
+
cellEditValidateOnClose: false,
|
|
171
185
|
cellEditValidator: null,
|
|
172
186
|
cellEditValidatorEvent: 'click',
|
|
173
187
|
className: null,
|
|
@@ -692,8 +706,15 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
692
706
|
var mergeProps = useMergeProps();
|
|
693
707
|
var context = React.useContext(PrimeReactContext);
|
|
694
708
|
var props = CheckboxBase.getProps(inProps, context);
|
|
709
|
+
var _React$useState = React.useState(false),
|
|
710
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
711
|
+
focusedState = _React$useState2[0],
|
|
712
|
+
setFocusedState = _React$useState2[1];
|
|
695
713
|
var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
|
|
696
714
|
props: props,
|
|
715
|
+
state: {
|
|
716
|
+
focused: focusedState
|
|
717
|
+
},
|
|
697
718
|
context: {
|
|
698
719
|
checked: props.checked === props.trueValue,
|
|
699
720
|
disabled: props.disabled
|
|
@@ -747,10 +768,12 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
747
768
|
};
|
|
748
769
|
var _onFocus = function onFocus() {
|
|
749
770
|
var _props$onFocus;
|
|
771
|
+
setFocusedState(true);
|
|
750
772
|
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
|
|
751
773
|
};
|
|
752
774
|
var _onBlur = function onBlur() {
|
|
753
775
|
var _props$onBlur;
|
|
776
|
+
setFocusedState(false);
|
|
754
777
|
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
|
|
755
778
|
};
|
|
756
779
|
React.useImperativeHandle(ref, function () {
|
|
@@ -913,9 +936,9 @@ var classes = {
|
|
|
913
936
|
'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled'
|
|
914
937
|
});
|
|
915
938
|
},
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
939
|
+
radiobuttonbox: 'p-radiobutton-box',
|
|
940
|
+
radiobuttoninput: 'p-radiobutton-input',
|
|
941
|
+
radiobuttonicon: 'p-radiobutton-icon'
|
|
919
942
|
};
|
|
920
943
|
var RadioButtonBase = ComponentBase.extend({
|
|
921
944
|
defaultProps: {
|
|
@@ -1054,7 +1077,10 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
1054
1077
|
})),
|
|
1055
1078
|
style: props.style,
|
|
1056
1079
|
'data-p-checked': props.checked
|
|
1057
|
-
},
|
|
1080
|
+
}, otherProps, ptm('root'));
|
|
1081
|
+
delete rootProps.input;
|
|
1082
|
+
delete rootProps.box;
|
|
1083
|
+
delete rootProps.icon;
|
|
1058
1084
|
var createInputElement = function createInputElement() {
|
|
1059
1085
|
var ariaProps = ObjectUtils.reduceKeys(otherProps, DomHandler.ARIA_PROPS);
|
|
1060
1086
|
var inputProps = mergeProps(_objectSpread$b({
|
|
@@ -1069,19 +1095,19 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
1069
1095
|
readOnly: props.readonly,
|
|
1070
1096
|
required: props.required,
|
|
1071
1097
|
tabIndex: props.tabIndex,
|
|
1072
|
-
className: cx('
|
|
1073
|
-
}, ariaProps), ptm('
|
|
1098
|
+
className: cx('radiobuttoninput')
|
|
1099
|
+
}, ariaProps), inProps.input, ptm('radiobuttoninput'));
|
|
1074
1100
|
return /*#__PURE__*/React.createElement("input", _extends({
|
|
1075
1101
|
ref: inputRef
|
|
1076
1102
|
}, inputProps));
|
|
1077
1103
|
};
|
|
1078
1104
|
var createBoxElement = function createBoxElement() {
|
|
1079
1105
|
var boxProps = mergeProps({
|
|
1080
|
-
className: cx('
|
|
1081
|
-
}, ptm('
|
|
1106
|
+
className: cx('radiobuttonbox')
|
|
1107
|
+
}, inProps.box, ptm('radiobuttonbox'));
|
|
1082
1108
|
var iconProps = mergeProps({
|
|
1083
|
-
className: cx('
|
|
1084
|
-
}, ptm('
|
|
1109
|
+
className: cx('radiobuttonicon')
|
|
1110
|
+
}, inProps.icon, ptm('radiobuttonicon'));
|
|
1085
1111
|
return /*#__PURE__*/React.createElement("div", boxProps, /*#__PURE__*/React.createElement("div", iconProps));
|
|
1086
1112
|
};
|
|
1087
1113
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -1129,7 +1155,11 @@ var RowRadioButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
1129
1155
|
checked: props.checked,
|
|
1130
1156
|
disabled: props.disabled,
|
|
1131
1157
|
name: "".concat(props.tableSelector, "_dt_radio"),
|
|
1132
|
-
onChange: onChange
|
|
1158
|
+
onChange: onChange,
|
|
1159
|
+
input: getColumnPTOptions('radiobuttoninput'),
|
|
1160
|
+
box: getColumnPTOptions('radiobuttonbox'),
|
|
1161
|
+
icon: getColumnPTOptions('radiobuttonicon'),
|
|
1162
|
+
unstyled: props.unstyled
|
|
1133
1163
|
}, getColumnPTOptions('radiobutton'));
|
|
1134
1164
|
return /*#__PURE__*/React.createElement(RadioButton, radioButtonProps);
|
|
1135
1165
|
});
|
|
@@ -1155,8 +1185,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1155
1185
|
var keyHelperRef = React.useRef(null);
|
|
1156
1186
|
var overlayEventListener = React.useRef(null);
|
|
1157
1187
|
var selfClick = React.useRef(false);
|
|
1158
|
-
var tabindexTimeout = React.useRef(null);
|
|
1159
1188
|
var initFocusTimeout = React.useRef(null);
|
|
1189
|
+
var editingRowDataStateRef = React.useRef(null);
|
|
1160
1190
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
1161
1191
|
ptm = _props$ptCallbacks.ptm,
|
|
1162
1192
|
ptmo = _props$ptCallbacks.ptmo,
|
|
@@ -1191,7 +1221,10 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1191
1221
|
var field = getColumnProp('field') || "field_".concat(props.index);
|
|
1192
1222
|
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
1193
1223
|
var isEditable = function isEditable() {
|
|
1194
|
-
return getColumnProp('editor');
|
|
1224
|
+
return ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
|
|
1225
|
+
};
|
|
1226
|
+
var cellEditValidateOnClose = function cellEditValidateOnClose() {
|
|
1227
|
+
return getColumnProp('cellEditValidateOnClose');
|
|
1195
1228
|
};
|
|
1196
1229
|
var _useEventListener = useEventListener({
|
|
1197
1230
|
type: 'click',
|
|
@@ -1275,40 +1308,37 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1275
1308
|
unbindDocumentClickListener();
|
|
1276
1309
|
OverlayService.off('overlay-click', overlayEventListener.current);
|
|
1277
1310
|
overlayEventListener.current = null;
|
|
1311
|
+
editingRowDataStateRef.current = null;
|
|
1278
1312
|
selfClick.current = false;
|
|
1279
1313
|
}, 1);
|
|
1280
1314
|
};
|
|
1281
1315
|
var switchCellToViewMode = function switchCellToViewMode(event, submit) {
|
|
1282
1316
|
var callbackParams = getCellCallbackParams(event);
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
newValue: newValue
|
|
1289
|
-
});
|
|
1290
|
-
var onCellEditCancel = getColumnProp('onCellEditCancel');
|
|
1291
|
-
var cellEditValidator = getColumnProp('cellEditValidator');
|
|
1292
|
-
var onCellEditComplete = getColumnProp('onCellEditComplete');
|
|
1293
|
-
if (!submit && onCellEditCancel) {
|
|
1294
|
-
onCellEditCancel(params);
|
|
1295
|
-
}
|
|
1296
|
-
var valid = true;
|
|
1297
|
-
if (!submit && cellEditValidator) {
|
|
1298
|
-
valid = cellEditValidator(params);
|
|
1299
|
-
}
|
|
1300
|
-
if (valid) {
|
|
1301
|
-
if (submit && onCellEditComplete) {
|
|
1302
|
-
setTimeout(function () {
|
|
1303
|
-
return onCellEditComplete(params);
|
|
1304
|
-
});
|
|
1305
|
-
}
|
|
1306
|
-
closeCell(event);
|
|
1307
|
-
} else {
|
|
1308
|
-
event.preventDefault();
|
|
1309
|
-
}
|
|
1310
|
-
return newRowData;
|
|
1317
|
+
var newRowData = _objectSpread$a({}, editingRowDataStateRef.current);
|
|
1318
|
+
var newValue = resolveFieldData(newRowData);
|
|
1319
|
+
var params = _objectSpread$a(_objectSpread$a({}, callbackParams), {}, {
|
|
1320
|
+
newRowData: newRowData,
|
|
1321
|
+
newValue: newValue
|
|
1311
1322
|
});
|
|
1323
|
+
var onCellEditCancel = getColumnProp('onCellEditCancel');
|
|
1324
|
+
var cellEditValidator = getColumnProp('cellEditValidator');
|
|
1325
|
+
var onCellEditComplete = getColumnProp('onCellEditComplete');
|
|
1326
|
+
if (!submit && onCellEditCancel) {
|
|
1327
|
+
onCellEditCancel(params);
|
|
1328
|
+
}
|
|
1329
|
+
var valid = true;
|
|
1330
|
+
if ((!submit || cellEditValidateOnClose()) && cellEditValidator) {
|
|
1331
|
+
valid = cellEditValidator(params);
|
|
1332
|
+
}
|
|
1333
|
+
if (valid) {
|
|
1334
|
+
if (submit && onCellEditComplete) {
|
|
1335
|
+
onCellEditComplete(params);
|
|
1336
|
+
}
|
|
1337
|
+
closeCell(event);
|
|
1338
|
+
} else {
|
|
1339
|
+
event.preventDefault();
|
|
1340
|
+
}
|
|
1341
|
+
setEditingRowDataState(newRowData);
|
|
1312
1342
|
};
|
|
1313
1343
|
var findNextSelectableCell = function findNextSelectableCell(cell) {
|
|
1314
1344
|
var nextCell = cell.nextElementSibling;
|
|
@@ -1335,14 +1365,11 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1335
1365
|
}
|
|
1336
1366
|
};
|
|
1337
1367
|
var focusOnElement = function focusOnElement() {
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
}
|
|
1344
|
-
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
1345
|
-
}, 1);
|
|
1368
|
+
if (editingState) {
|
|
1369
|
+
var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
|
|
1370
|
+
focusableEl && focusableEl.focus();
|
|
1371
|
+
}
|
|
1372
|
+
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
1346
1373
|
};
|
|
1347
1374
|
var focusOnInit = function focusOnInit() {
|
|
1348
1375
|
clearTimeout(initFocusTimeout.current);
|
|
@@ -1384,6 +1411,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1384
1411
|
if (currentData) {
|
|
1385
1412
|
ObjectUtils.mutateFieldData(currentData, field, val);
|
|
1386
1413
|
}
|
|
1414
|
+
editingRowDataStateRef.current = editingRowData;
|
|
1387
1415
|
};
|
|
1388
1416
|
var _onClick = function onClick(event) {
|
|
1389
1417
|
var params = getCellCallbackParams(event);
|
|
@@ -1576,7 +1604,9 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1576
1604
|
}, [props.editMode, props.editing, editingState]);
|
|
1577
1605
|
useUpdateEffect(function () {
|
|
1578
1606
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
1579
|
-
|
|
1607
|
+
var editingRowData = getEditingRowData();
|
|
1608
|
+
setEditingRowDataState(editingRowData);
|
|
1609
|
+
editingRowDataStateRef.current = editingRowData;
|
|
1580
1610
|
}
|
|
1581
1611
|
}, [props.editingMeta]);
|
|
1582
1612
|
React.useEffect(function () {
|
|
@@ -1653,7 +1683,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1653
1683
|
if (showSelection) {
|
|
1654
1684
|
var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
|
|
1655
1685
|
var ariaLabelText = ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
|
|
1656
|
-
label = "".concat(props.selected ? ariaLabel$1('
|
|
1686
|
+
label = "".concat(props.selected ? ariaLabel$1('unselectRow') : ariaLabel$1('selectRow'), " ").concat(ariaLabelText);
|
|
1657
1687
|
}
|
|
1658
1688
|
content = showSelection && /*#__PURE__*/React.createElement(React.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React.createElement(RowRadioButton, {
|
|
1659
1689
|
hostName: props.hostName,
|
|
@@ -1668,7 +1698,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1668
1698
|
tableSelector: props.tableSelector,
|
|
1669
1699
|
ariaLabel: label,
|
|
1670
1700
|
ptCallbacks: props.ptCallbacks,
|
|
1671
|
-
metaData: props.metaData
|
|
1701
|
+
metaData: props.metaData,
|
|
1702
|
+
unstyled: props.unstyled
|
|
1672
1703
|
}), selectionMode === 'multiple' && /*#__PURE__*/React.createElement(RowCheckbox, {
|
|
1673
1704
|
hostName: props.hostName,
|
|
1674
1705
|
column: props.column,
|
|
@@ -1682,17 +1713,19 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1682
1713
|
ariaLabel: label,
|
|
1683
1714
|
checkIcon: props.checkIcon,
|
|
1684
1715
|
ptCallbacks: props.ptCallbacks,
|
|
1685
|
-
metaData: props.metaData
|
|
1716
|
+
metaData: props.metaData,
|
|
1717
|
+
unstyled: props.unstyled
|
|
1686
1718
|
}));
|
|
1687
1719
|
} else if (rowReorder) {
|
|
1688
1720
|
var showReorder = props.showRowReorderElement ? props.showRowReorderElement(props.rowData, {
|
|
1689
1721
|
rowIndex: props.rowIndex,
|
|
1690
1722
|
props: props.tableProps
|
|
1691
1723
|
}) : true;
|
|
1724
|
+
var customIcon = getColumnProp('rowReorderIcon');
|
|
1692
1725
|
var rowReorderIconProps = mergeProps({
|
|
1693
1726
|
className: cx('rowReorderIcon')
|
|
1694
|
-
}, getColumnPTOptions('rowReorderIcon'));
|
|
1695
|
-
var rowReorderIcon =
|
|
1727
|
+
}, customIcon ? null : getColumnPTOptions('rowReorderIcon'));
|
|
1728
|
+
var rowReorderIcon = customIcon || /*#__PURE__*/React.createElement(BarsIcon, rowReorderIconProps);
|
|
1696
1729
|
content = showReorder ? IconUtils.getJSXIcon(rowReorderIcon, _objectSpread$a({}, rowReorderIconProps), {
|
|
1697
1730
|
props: props
|
|
1698
1731
|
}) : null;
|
|
@@ -1844,7 +1877,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1844
1877
|
}, editorKeyHelperProps), /*#__PURE__*/React.createElement("span", editorKeyHelperLabelProps));
|
|
1845
1878
|
/* eslint-enable */
|
|
1846
1879
|
}
|
|
1847
|
-
|
|
1848
1880
|
var bodyCellProps = mergeProps({
|
|
1849
1881
|
style: style,
|
|
1850
1882
|
className: classNames(bodyClassName, getColumnProp('className'), cellClassName, cx('bodyCell', {
|
|
@@ -2136,7 +2168,7 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
2136
2168
|
focusedItem && focusedItem !== firstSelectedRow && (focusedItem.tabIndex = '-1');
|
|
2137
2169
|
} else {
|
|
2138
2170
|
rows[0].tabIndex = '0';
|
|
2139
|
-
focusedItem !== rows[0] && (rows[rowIndex].tabIndex = '-1');
|
|
2171
|
+
focusedItem !== rows[0] && (rows[props.rowIndex].tabIndex = '-1');
|
|
2140
2172
|
}
|
|
2141
2173
|
}
|
|
2142
2174
|
};
|
|
@@ -2328,7 +2360,8 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
2328
2360
|
value: props.value,
|
|
2329
2361
|
virtualScrollerOptions: props.virtualScrollerOptions,
|
|
2330
2362
|
ptCallbacks: props.ptCallbacks,
|
|
2331
|
-
metaData: props.metaData
|
|
2363
|
+
metaData: props.metaData,
|
|
2364
|
+
unstyled: props.unstyled
|
|
2332
2365
|
});
|
|
2333
2366
|
}
|
|
2334
2367
|
return null;
|
|
@@ -2407,7 +2440,6 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
2407
2440
|
}, getBodyRowPTOptions('bodyRow'), {
|
|
2408
2441
|
className: classNames(rowClassName) // #5983 must be last so all unstyled merging takes place first
|
|
2409
2442
|
});
|
|
2410
|
-
|
|
2411
2443
|
return /*#__PURE__*/React.createElement("tr", rowProps, content);
|
|
2412
2444
|
});
|
|
2413
2445
|
BodyRow.displayName = 'BodyRow';
|
|
@@ -3036,6 +3068,7 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
3036
3068
|
var event = e.originalEvent;
|
|
3037
3069
|
if (!isUnsyled && DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle')) {
|
|
3038
3070
|
event.currentTarget.draggable = true;
|
|
3071
|
+
event.target.draggable = false;
|
|
3039
3072
|
} else {
|
|
3040
3073
|
event.currentTarget.draggable = false;
|
|
3041
3074
|
}
|
|
@@ -3114,7 +3147,6 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
3114
3147
|
event.dataTransfer.setData('text', 'b'); // For firefox
|
|
3115
3148
|
}
|
|
3116
3149
|
};
|
|
3117
|
-
|
|
3118
3150
|
var onRowDragOver = function onRowDragOver(e) {
|
|
3119
3151
|
var event = e.originalEvent,
|
|
3120
3152
|
index = e.index;
|
|
@@ -3336,7 +3368,8 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
3336
3368
|
expandedRowIcon: props.expandedRowIcon,
|
|
3337
3369
|
collapsedRowIcon: props.collapsedRowIcon,
|
|
3338
3370
|
ptCallbacks: props.ptCallbacks,
|
|
3339
|
-
metaData: props.metaData
|
|
3371
|
+
metaData: props.metaData,
|
|
3372
|
+
unstyled: props.unstyled
|
|
3340
3373
|
});
|
|
3341
3374
|
var options = {
|
|
3342
3375
|
index: rowIndex,
|
|
@@ -3441,7 +3474,8 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
3441
3474
|
value: props.value,
|
|
3442
3475
|
virtualScrollerOptions: props.virtualScrollerOptions,
|
|
3443
3476
|
ptCallbacks: props.ptCallbacks,
|
|
3444
|
-
metaData: props.metaData
|
|
3477
|
+
metaData: props.metaData,
|
|
3478
|
+
unstyled: props.unstyled
|
|
3445
3479
|
});
|
|
3446
3480
|
}
|
|
3447
3481
|
};
|
|
@@ -4038,6 +4072,15 @@ var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.fo
|
|
|
4038
4072
|
var getTarget = function getTarget() {
|
|
4039
4073
|
return firstFocusableElementRef.current && firstFocusableElementRef.current.parentElement;
|
|
4040
4074
|
};
|
|
4075
|
+
|
|
4076
|
+
/**
|
|
4077
|
+
* This method sets the auto focus on the first focusable element within the target element.
|
|
4078
|
+
* It first tries to find a focusable element using the autoFocusSelector. If no such element is found,
|
|
4079
|
+
* it then tries to find a focusable element using the firstFocusableSelector.
|
|
4080
|
+
* If the autoFocus prop is set to true and a focusable element is found, it sets the focus on that element.
|
|
4081
|
+
*
|
|
4082
|
+
* @param {HTMLElement} target - The target element within which to find a focusable element.
|
|
4083
|
+
*/
|
|
4041
4084
|
var setAutoFocus = function setAutoFocus(target) {
|
|
4042
4085
|
var _ref = props || {},
|
|
4043
4086
|
_ref$autoFocusSelecto = _ref.autoFocusSelector,
|
|
@@ -4046,7 +4089,9 @@ var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.fo
|
|
|
4046
4089
|
firstFocusableSelector = _ref$firstFocusableSe === void 0 ? '' : _ref$firstFocusableSe,
|
|
4047
4090
|
_ref$autoFocus = _ref.autoFocus,
|
|
4048
4091
|
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
|
|
4049
|
-
var
|
|
4092
|
+
var defaultAutoFocusSelector = "".concat(getComputedSelector(autoFocusSelector));
|
|
4093
|
+
var computedAutoFocusSelector = "[autofocus]".concat(defaultAutoFocusSelector, ", [data-pc-autofocus='true']").concat(defaultAutoFocusSelector);
|
|
4094
|
+
var focusableElement = DomHandler.getFirstFocusableElement(target, computedAutoFocusSelector);
|
|
4050
4095
|
autoFocus && !focusableElement && (focusableElement = DomHandler.getFirstFocusableElement(target, getComputedSelector(firstFocusableSelector)));
|
|
4051
4096
|
DomHandler.focus(focusableElement);
|
|
4052
4097
|
};
|
|
@@ -5162,7 +5207,7 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
5162
5207
|
column: props.column
|
|
5163
5208
|
});
|
|
5164
5209
|
};
|
|
5165
|
-
var
|
|
5210
|
+
var onResizeStart = function onResizeStart(event) {
|
|
5166
5211
|
props.onColumnResizeStart({
|
|
5167
5212
|
originalEvent: event,
|
|
5168
5213
|
column: props.column
|
|
@@ -5199,7 +5244,10 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
5199
5244
|
var columnResizerProps = mergeProps({
|
|
5200
5245
|
className: cx('columnResizer'),
|
|
5201
5246
|
onMouseDown: function onMouseDown(e) {
|
|
5202
|
-
return
|
|
5247
|
+
return onResizeStart(e);
|
|
5248
|
+
},
|
|
5249
|
+
onTouchStart: function onTouchStart(e) {
|
|
5250
|
+
return onResizeStart(e);
|
|
5203
5251
|
},
|
|
5204
5252
|
onClick: function onClick(e) {
|
|
5205
5253
|
return onResizerClick(e);
|
|
@@ -5259,7 +5307,8 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
5259
5307
|
onChange: props.onColumnCheckboxChange,
|
|
5260
5308
|
disabled: props.empty,
|
|
5261
5309
|
ptCallbacks: ptCallbacks,
|
|
5262
|
-
metaData: parentMetaData
|
|
5310
|
+
metaData: parentMetaData,
|
|
5311
|
+
unstyled: props.unstyled
|
|
5263
5312
|
});
|
|
5264
5313
|
}
|
|
5265
5314
|
return null;
|
|
@@ -5725,29 +5774,40 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5725
5774
|
setRowsState(props.rows);
|
|
5726
5775
|
setD_rowsState(props.rows);
|
|
5727
5776
|
}
|
|
5777
|
+
var columnResizeStartListener = function columnResizeStartListener(event) {
|
|
5778
|
+
return columnResizing.current && onColumnResize(event);
|
|
5779
|
+
};
|
|
5780
|
+
var columnResizeEndListener = function columnResizeEndListener() {
|
|
5781
|
+
return columnResizing.current && (columnResizing.current = false, onColumnResizeEnd());
|
|
5782
|
+
};
|
|
5728
5783
|
var _useEventListener = useEventListener({
|
|
5729
5784
|
type: 'mousemove',
|
|
5730
|
-
listener:
|
|
5731
|
-
if (columnResizing.current) {
|
|
5732
|
-
onColumnResize(event);
|
|
5733
|
-
}
|
|
5734
|
-
}
|
|
5785
|
+
listener: columnResizeStartListener
|
|
5735
5786
|
}),
|
|
5736
5787
|
_useEventListener2 = _slicedToArray(_useEventListener, 2),
|
|
5737
5788
|
bindDocumentMouseMoveListener = _useEventListener2[0],
|
|
5738
5789
|
unbindDocumentMouseMoveListener = _useEventListener2[1];
|
|
5739
5790
|
var _useEventListener3 = useEventListener({
|
|
5740
5791
|
type: 'mouseup',
|
|
5741
|
-
listener:
|
|
5742
|
-
if (columnResizing.current) {
|
|
5743
|
-
columnResizing.current = false;
|
|
5744
|
-
onColumnResizeEnd();
|
|
5745
|
-
}
|
|
5746
|
-
}
|
|
5792
|
+
listener: columnResizeEndListener
|
|
5747
5793
|
}),
|
|
5748
5794
|
_useEventListener4 = _slicedToArray(_useEventListener3, 2),
|
|
5749
5795
|
bindDocumentMouseUpListener = _useEventListener4[0],
|
|
5750
5796
|
unbindDocumentMouseUpListener = _useEventListener4[1];
|
|
5797
|
+
var _useEventListener5 = useEventListener({
|
|
5798
|
+
type: 'touchmove',
|
|
5799
|
+
listener: columnResizeStartListener
|
|
5800
|
+
}),
|
|
5801
|
+
_useEventListener6 = _slicedToArray(_useEventListener5, 2),
|
|
5802
|
+
bindDocumentTouchMoveListener = _useEventListener6[0],
|
|
5803
|
+
unbindDocumentTouchMoveListener = _useEventListener6[1];
|
|
5804
|
+
var _useEventListener7 = useEventListener({
|
|
5805
|
+
type: 'touchend',
|
|
5806
|
+
listener: columnResizeEndListener
|
|
5807
|
+
}),
|
|
5808
|
+
_useEventListener8 = _slicedToArray(_useEventListener7, 2),
|
|
5809
|
+
bindDocumentTouchEndListener = _useEventListener8[0],
|
|
5810
|
+
unbindDocumentTouchEndListener = _useEventListener8[1];
|
|
5751
5811
|
var isCustomStateStorage = function isCustomStateStorage() {
|
|
5752
5812
|
return props.stateStorage === 'custom';
|
|
5753
5813
|
};
|
|
@@ -5801,18 +5861,6 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5801
5861
|
}
|
|
5802
5862
|
return columns;
|
|
5803
5863
|
};
|
|
5804
|
-
var getStorage = function getStorage() {
|
|
5805
|
-
switch (props.stateStorage) {
|
|
5806
|
-
case 'local':
|
|
5807
|
-
return window.localStorage;
|
|
5808
|
-
case 'session':
|
|
5809
|
-
return window.sessionStorage;
|
|
5810
|
-
case 'custom':
|
|
5811
|
-
return null;
|
|
5812
|
-
default:
|
|
5813
|
-
throw new Error(props.stateStorage + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
|
|
5814
|
-
}
|
|
5815
|
-
};
|
|
5816
5864
|
var saveState = function saveState() {
|
|
5817
5865
|
var state = {};
|
|
5818
5866
|
if (props.paginator) {
|
|
@@ -5848,7 +5896,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5848
5896
|
props.customSaveState(state);
|
|
5849
5897
|
}
|
|
5850
5898
|
} else {
|
|
5851
|
-
var storage = getStorage();
|
|
5899
|
+
var storage = getStorage(props.stateStorage);
|
|
5852
5900
|
if (ObjectUtils.isNotEmpty(state)) {
|
|
5853
5901
|
storage.setItem(props.stateKey, JSON.stringify(state));
|
|
5854
5902
|
}
|
|
@@ -5858,7 +5906,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5858
5906
|
}
|
|
5859
5907
|
};
|
|
5860
5908
|
var clearState = function clearState() {
|
|
5861
|
-
var storage = getStorage();
|
|
5909
|
+
var storage = getStorage(props.stateStorage);
|
|
5862
5910
|
if (storage && props.stateKey) {
|
|
5863
5911
|
storage.removeItem(props.stateKey);
|
|
5864
5912
|
}
|
|
@@ -5870,7 +5918,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5870
5918
|
restoredState = props.customRestoreState();
|
|
5871
5919
|
}
|
|
5872
5920
|
} else {
|
|
5873
|
-
var storage = getStorage();
|
|
5921
|
+
var storage = getStorage(props.stateStorage);
|
|
5874
5922
|
var stateString = storage.getItem(props.stateKey);
|
|
5875
5923
|
var dateFormat = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
|
|
5876
5924
|
var reviver = function reviver(key, value) {
|
|
@@ -6095,7 +6143,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
6095
6143
|
resizeColumn.current = column;
|
|
6096
6144
|
resizeColumnElement.current = event.currentTarget.parentElement;
|
|
6097
6145
|
columnResizing.current = true;
|
|
6098
|
-
lastResizeHelperX.current = event.pageX - containerLeft + elementRef.current.scrollLeft;
|
|
6146
|
+
lastResizeHelperX.current = (event.type === 'touchstart' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft;
|
|
6099
6147
|
bindColumnResizeEvents();
|
|
6100
6148
|
};
|
|
6101
6149
|
var onColumnResize = function onColumnResize(event) {
|
|
@@ -6103,7 +6151,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
6103
6151
|
elementRef.current.setAttribute('data-p-unselectable-text', true);
|
|
6104
6152
|
resizeHelperRef.current.style.height = elementRef.current.offsetHeight + 'px';
|
|
6105
6153
|
resizeHelperRef.current.style.top = 0 + 'px';
|
|
6106
|
-
resizeHelperRef.current.style.left = event.pageX - containerLeft + elementRef.current.scrollLeft + 'px';
|
|
6154
|
+
resizeHelperRef.current.style.left = (event.type === 'touchmove' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft + 'px';
|
|
6107
6155
|
resizeHelperRef.current.style.display = 'block';
|
|
6108
6156
|
};
|
|
6109
6157
|
var onColumnResizeEnd = function onColumnResizeEnd() {
|
|
@@ -6174,10 +6222,14 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
6174
6222
|
var bindColumnResizeEvents = function bindColumnResizeEvents() {
|
|
6175
6223
|
bindDocumentMouseMoveListener();
|
|
6176
6224
|
bindDocumentMouseUpListener();
|
|
6225
|
+
bindDocumentTouchMoveListener();
|
|
6226
|
+
bindDocumentTouchEndListener();
|
|
6177
6227
|
};
|
|
6178
6228
|
var unbindColumnResizeEvents = function unbindColumnResizeEvents() {
|
|
6179
6229
|
unbindDocumentMouseMoveListener();
|
|
6180
6230
|
unbindDocumentMouseUpListener();
|
|
6231
|
+
unbindDocumentTouchMoveListener();
|
|
6232
|
+
unbindDocumentTouchEndListener();
|
|
6181
6233
|
};
|
|
6182
6234
|
var onColumnHeaderMouseDown = function onColumnHeaderMouseDown(e) {
|
|
6183
6235
|
DomHandler.clearSelection();
|
|
@@ -6243,7 +6295,6 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
6243
6295
|
draggedColumnElement.current = findParentHeader(event.currentTarget);
|
|
6244
6296
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
6245
6297
|
};
|
|
6246
|
-
|
|
6247
6298
|
var onColumnHeaderDragOver = function onColumnHeaderDragOver(e) {
|
|
6248
6299
|
var event = e.originalEvent,
|
|
6249
6300
|
column = e.column;
|
|
@@ -7008,7 +7059,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
7008
7059
|
className: ptCallbacks.cx('loadingIcon')
|
|
7009
7060
|
}, ptCallbacks.ptm('loadingIcon'));
|
|
7010
7061
|
var icon = props.loadingIcon || /*#__PURE__*/React.createElement(SpinnerIcon, _extends({}, loadingIconProps, {
|
|
7011
|
-
spin: true
|
|
7062
|
+
spin: true,
|
|
7063
|
+
unstyled: props.unstyled
|
|
7012
7064
|
}));
|
|
7013
7065
|
var loadingIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, loadingIconProps), {
|
|
7014
7066
|
props: props
|
|
@@ -7175,7 +7227,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
7175
7227
|
value: props.frozenValue,
|
|
7176
7228
|
virtualScrollerOptions: options,
|
|
7177
7229
|
ptCallbacks: ptCallbacks,
|
|
7178
|
-
metaData: metaData
|
|
7230
|
+
metaData: metaData,
|
|
7231
|
+
unstyled: props.unstyled
|
|
7179
7232
|
});
|
|
7180
7233
|
var body = /*#__PURE__*/React.createElement(TableBody, {
|
|
7181
7234
|
hostName: "DataTable",
|
|
@@ -7258,7 +7311,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
7258
7311
|
virtualScrollerContentRef: contentRef,
|
|
7259
7312
|
virtualScrollerOptions: options,
|
|
7260
7313
|
ptCallbacks: ptCallbacks,
|
|
7261
|
-
metaData: metaData
|
|
7314
|
+
metaData: metaData,
|
|
7315
|
+
unstyled: props.unstyled
|
|
7262
7316
|
});
|
|
7263
7317
|
var spacerBody = ObjectUtils.isNotEmpty(spacerStyle) ? /*#__PURE__*/React.createElement(TableBody, {
|
|
7264
7318
|
hostName: "DataTable",
|
|
@@ -7267,7 +7321,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
7267
7321
|
},
|
|
7268
7322
|
className: "p-datatable-virtualscroller-spacer",
|
|
7269
7323
|
ptCallbacks: ptCallbacks,
|
|
7270
|
-
metaData: metaData
|
|
7324
|
+
metaData: metaData,
|
|
7325
|
+
unstyled: props.unstyled
|
|
7271
7326
|
}) : null;
|
|
7272
7327
|
return /*#__PURE__*/React.createElement(React.Fragment, null, frozenBody, body, spacerBody);
|
|
7273
7328
|
};
|
|
@@ -7279,7 +7334,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
7279
7334
|
columns: columns,
|
|
7280
7335
|
footerColumnGroup: props.footerColumnGroup,
|
|
7281
7336
|
ptCallbacks: ptCallbacks,
|
|
7282
|
-
metaData: metaData
|
|
7337
|
+
metaData: metaData,
|
|
7338
|
+
unstyled: props.unstyled
|
|
7283
7339
|
});
|
|
7284
7340
|
};
|
|
7285
7341
|
var createContent = function createContent(processedData, columns, selectionModeInColumn, empty) {
|
|
@@ -7314,6 +7370,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
7314
7370
|
parent: metaData
|
|
7315
7371
|
},
|
|
7316
7372
|
showSpacer: false,
|
|
7373
|
+
unstyled: props.unstyled,
|
|
7317
7374
|
contentTemplate: function contentTemplate(options) {
|
|
7318
7375
|
var ref = function ref(el) {
|
|
7319
7376
|
tableRef.current = el;
|