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
|
@@ -186,6 +186,19 @@ function _slicedToArray(arr, i) {
|
|
|
186
186
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
+
var getStorage = function getStorage(stateStorageProp) {
|
|
190
|
+
switch (stateStorageProp) {
|
|
191
|
+
case 'local':
|
|
192
|
+
return window.localStorage;
|
|
193
|
+
case 'session':
|
|
194
|
+
return window.sessionStorage;
|
|
195
|
+
case 'custom':
|
|
196
|
+
return null;
|
|
197
|
+
default:
|
|
198
|
+
throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
|
|
189
202
|
var ColumnBase = componentbase.ComponentBase.extend({
|
|
190
203
|
defaultProps: {
|
|
191
204
|
__TYPE: 'Column',
|
|
@@ -195,6 +208,7 @@ var ColumnBase = componentbase.ComponentBase.extend({
|
|
|
195
208
|
body: null,
|
|
196
209
|
bodyClassName: null,
|
|
197
210
|
bodyStyle: null,
|
|
211
|
+
cellEditValidateOnClose: false,
|
|
198
212
|
cellEditValidator: null,
|
|
199
213
|
cellEditValidatorEvent: 'click',
|
|
200
214
|
className: null,
|
|
@@ -719,8 +733,15 @@ var Checkbox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
719
733
|
var mergeProps = hooks.useMergeProps();
|
|
720
734
|
var context = React__namespace.useContext(PrimeReact$1.PrimeReactContext);
|
|
721
735
|
var props = CheckboxBase.getProps(inProps, context);
|
|
736
|
+
var _React$useState = React__namespace.useState(false),
|
|
737
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
738
|
+
focusedState = _React$useState2[0],
|
|
739
|
+
setFocusedState = _React$useState2[1];
|
|
722
740
|
var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
|
|
723
741
|
props: props,
|
|
742
|
+
state: {
|
|
743
|
+
focused: focusedState
|
|
744
|
+
},
|
|
724
745
|
context: {
|
|
725
746
|
checked: props.checked === props.trueValue,
|
|
726
747
|
disabled: props.disabled
|
|
@@ -774,10 +795,12 @@ var Checkbox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
774
795
|
};
|
|
775
796
|
var _onFocus = function onFocus() {
|
|
776
797
|
var _props$onFocus;
|
|
798
|
+
setFocusedState(true);
|
|
777
799
|
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
|
|
778
800
|
};
|
|
779
801
|
var _onBlur = function onBlur() {
|
|
780
802
|
var _props$onBlur;
|
|
803
|
+
setFocusedState(false);
|
|
781
804
|
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
|
|
782
805
|
};
|
|
783
806
|
React__namespace.useImperativeHandle(ref, function () {
|
|
@@ -940,9 +963,9 @@ var classes = {
|
|
|
940
963
|
'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled'
|
|
941
964
|
});
|
|
942
965
|
},
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
966
|
+
radiobuttonbox: 'p-radiobutton-box',
|
|
967
|
+
radiobuttoninput: 'p-radiobutton-input',
|
|
968
|
+
radiobuttonicon: 'p-radiobutton-icon'
|
|
946
969
|
};
|
|
947
970
|
var RadioButtonBase = componentbase.ComponentBase.extend({
|
|
948
971
|
defaultProps: {
|
|
@@ -1081,7 +1104,10 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
|
|
|
1081
1104
|
})),
|
|
1082
1105
|
style: props.style,
|
|
1083
1106
|
'data-p-checked': props.checked
|
|
1084
|
-
},
|
|
1107
|
+
}, otherProps, ptm('root'));
|
|
1108
|
+
delete rootProps.input;
|
|
1109
|
+
delete rootProps.box;
|
|
1110
|
+
delete rootProps.icon;
|
|
1085
1111
|
var createInputElement = function createInputElement() {
|
|
1086
1112
|
var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
|
|
1087
1113
|
var inputProps = mergeProps(_objectSpread$b({
|
|
@@ -1096,19 +1122,19 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
|
|
|
1096
1122
|
readOnly: props.readonly,
|
|
1097
1123
|
required: props.required,
|
|
1098
1124
|
tabIndex: props.tabIndex,
|
|
1099
|
-
className: cx('
|
|
1100
|
-
}, ariaProps), ptm('
|
|
1125
|
+
className: cx('radiobuttoninput')
|
|
1126
|
+
}, ariaProps), inProps.input, ptm('radiobuttoninput'));
|
|
1101
1127
|
return /*#__PURE__*/React__namespace.createElement("input", _extends({
|
|
1102
1128
|
ref: inputRef
|
|
1103
1129
|
}, inputProps));
|
|
1104
1130
|
};
|
|
1105
1131
|
var createBoxElement = function createBoxElement() {
|
|
1106
1132
|
var boxProps = mergeProps({
|
|
1107
|
-
className: cx('
|
|
1108
|
-
}, ptm('
|
|
1133
|
+
className: cx('radiobuttonbox')
|
|
1134
|
+
}, inProps.box, ptm('radiobuttonbox'));
|
|
1109
1135
|
var iconProps = mergeProps({
|
|
1110
|
-
className: cx('
|
|
1111
|
-
}, ptm('
|
|
1136
|
+
className: cx('radiobuttonicon')
|
|
1137
|
+
}, inProps.icon, ptm('radiobuttonicon'));
|
|
1112
1138
|
return /*#__PURE__*/React__namespace.createElement("div", boxProps, /*#__PURE__*/React__namespace.createElement("div", iconProps));
|
|
1113
1139
|
};
|
|
1114
1140
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
@@ -1156,7 +1182,11 @@ var RowRadioButton = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1156
1182
|
checked: props.checked,
|
|
1157
1183
|
disabled: props.disabled,
|
|
1158
1184
|
name: "".concat(props.tableSelector, "_dt_radio"),
|
|
1159
|
-
onChange: onChange
|
|
1185
|
+
onChange: onChange,
|
|
1186
|
+
input: getColumnPTOptions('radiobuttoninput'),
|
|
1187
|
+
box: getColumnPTOptions('radiobuttonbox'),
|
|
1188
|
+
icon: getColumnPTOptions('radiobuttonicon'),
|
|
1189
|
+
unstyled: props.unstyled
|
|
1160
1190
|
}, getColumnPTOptions('radiobutton'));
|
|
1161
1191
|
return /*#__PURE__*/React__namespace.createElement(RadioButton, radioButtonProps);
|
|
1162
1192
|
});
|
|
@@ -1182,8 +1212,8 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1182
1212
|
var keyHelperRef = React__namespace.useRef(null);
|
|
1183
1213
|
var overlayEventListener = React__namespace.useRef(null);
|
|
1184
1214
|
var selfClick = React__namespace.useRef(false);
|
|
1185
|
-
var tabindexTimeout = React__namespace.useRef(null);
|
|
1186
1215
|
var initFocusTimeout = React__namespace.useRef(null);
|
|
1216
|
+
var editingRowDataStateRef = React__namespace.useRef(null);
|
|
1187
1217
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
1188
1218
|
ptm = _props$ptCallbacks.ptm,
|
|
1189
1219
|
ptmo = _props$ptCallbacks.ptmo,
|
|
@@ -1218,7 +1248,10 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1218
1248
|
var field = getColumnProp('field') || "field_".concat(props.index);
|
|
1219
1249
|
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
1220
1250
|
var isEditable = function isEditable() {
|
|
1221
|
-
return getColumnProp('editor');
|
|
1251
|
+
return utils.ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
|
|
1252
|
+
};
|
|
1253
|
+
var cellEditValidateOnClose = function cellEditValidateOnClose() {
|
|
1254
|
+
return getColumnProp('cellEditValidateOnClose');
|
|
1222
1255
|
};
|
|
1223
1256
|
var _useEventListener = hooks.useEventListener({
|
|
1224
1257
|
type: 'click',
|
|
@@ -1302,40 +1335,37 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1302
1335
|
unbindDocumentClickListener();
|
|
1303
1336
|
overlayservice.OverlayService.off('overlay-click', overlayEventListener.current);
|
|
1304
1337
|
overlayEventListener.current = null;
|
|
1338
|
+
editingRowDataStateRef.current = null;
|
|
1305
1339
|
selfClick.current = false;
|
|
1306
1340
|
}, 1);
|
|
1307
1341
|
};
|
|
1308
1342
|
var switchCellToViewMode = function switchCellToViewMode(event, submit) {
|
|
1309
1343
|
var callbackParams = getCellCallbackParams(event);
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
newValue: newValue
|
|
1316
|
-
});
|
|
1317
|
-
var onCellEditCancel = getColumnProp('onCellEditCancel');
|
|
1318
|
-
var cellEditValidator = getColumnProp('cellEditValidator');
|
|
1319
|
-
var onCellEditComplete = getColumnProp('onCellEditComplete');
|
|
1320
|
-
if (!submit && onCellEditCancel) {
|
|
1321
|
-
onCellEditCancel(params);
|
|
1322
|
-
}
|
|
1323
|
-
var valid = true;
|
|
1324
|
-
if (!submit && cellEditValidator) {
|
|
1325
|
-
valid = cellEditValidator(params);
|
|
1326
|
-
}
|
|
1327
|
-
if (valid) {
|
|
1328
|
-
if (submit && onCellEditComplete) {
|
|
1329
|
-
setTimeout(function () {
|
|
1330
|
-
return onCellEditComplete(params);
|
|
1331
|
-
});
|
|
1332
|
-
}
|
|
1333
|
-
closeCell(event);
|
|
1334
|
-
} else {
|
|
1335
|
-
event.preventDefault();
|
|
1336
|
-
}
|
|
1337
|
-
return newRowData;
|
|
1344
|
+
var newRowData = _objectSpread$a({}, editingRowDataStateRef.current);
|
|
1345
|
+
var newValue = resolveFieldData(newRowData);
|
|
1346
|
+
var params = _objectSpread$a(_objectSpread$a({}, callbackParams), {}, {
|
|
1347
|
+
newRowData: newRowData,
|
|
1348
|
+
newValue: newValue
|
|
1338
1349
|
});
|
|
1350
|
+
var onCellEditCancel = getColumnProp('onCellEditCancel');
|
|
1351
|
+
var cellEditValidator = getColumnProp('cellEditValidator');
|
|
1352
|
+
var onCellEditComplete = getColumnProp('onCellEditComplete');
|
|
1353
|
+
if (!submit && onCellEditCancel) {
|
|
1354
|
+
onCellEditCancel(params);
|
|
1355
|
+
}
|
|
1356
|
+
var valid = true;
|
|
1357
|
+
if ((!submit || cellEditValidateOnClose()) && cellEditValidator) {
|
|
1358
|
+
valid = cellEditValidator(params);
|
|
1359
|
+
}
|
|
1360
|
+
if (valid) {
|
|
1361
|
+
if (submit && onCellEditComplete) {
|
|
1362
|
+
onCellEditComplete(params);
|
|
1363
|
+
}
|
|
1364
|
+
closeCell(event);
|
|
1365
|
+
} else {
|
|
1366
|
+
event.preventDefault();
|
|
1367
|
+
}
|
|
1368
|
+
setEditingRowDataState(newRowData);
|
|
1339
1369
|
};
|
|
1340
1370
|
var findNextSelectableCell = function findNextSelectableCell(cell) {
|
|
1341
1371
|
var nextCell = cell.nextElementSibling;
|
|
@@ -1362,14 +1392,11 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1362
1392
|
}
|
|
1363
1393
|
};
|
|
1364
1394
|
var focusOnElement = function focusOnElement() {
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
}
|
|
1371
|
-
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
1372
|
-
}, 1);
|
|
1395
|
+
if (editingState) {
|
|
1396
|
+
var focusableEl = props.editMode === 'cell' ? utils.DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : utils.DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
|
|
1397
|
+
focusableEl && focusableEl.focus();
|
|
1398
|
+
}
|
|
1399
|
+
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
1373
1400
|
};
|
|
1374
1401
|
var focusOnInit = function focusOnInit() {
|
|
1375
1402
|
clearTimeout(initFocusTimeout.current);
|
|
@@ -1411,6 +1438,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1411
1438
|
if (currentData) {
|
|
1412
1439
|
utils.ObjectUtils.mutateFieldData(currentData, field, val);
|
|
1413
1440
|
}
|
|
1441
|
+
editingRowDataStateRef.current = editingRowData;
|
|
1414
1442
|
};
|
|
1415
1443
|
var _onClick = function onClick(event) {
|
|
1416
1444
|
var params = getCellCallbackParams(event);
|
|
@@ -1603,7 +1631,9 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1603
1631
|
}, [props.editMode, props.editing, editingState]);
|
|
1604
1632
|
hooks.useUpdateEffect(function () {
|
|
1605
1633
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
1606
|
-
|
|
1634
|
+
var editingRowData = getEditingRowData();
|
|
1635
|
+
setEditingRowDataState(editingRowData);
|
|
1636
|
+
editingRowDataStateRef.current = editingRowData;
|
|
1607
1637
|
}
|
|
1608
1638
|
}, [props.editingMeta]);
|
|
1609
1639
|
React__namespace.useEffect(function () {
|
|
@@ -1680,7 +1710,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1680
1710
|
if (showSelection) {
|
|
1681
1711
|
var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
|
|
1682
1712
|
var ariaLabelText = utils.ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
|
|
1683
|
-
label = "".concat(props.selected ? PrimeReact$1.ariaLabel('
|
|
1713
|
+
label = "".concat(props.selected ? PrimeReact$1.ariaLabel('unselectRow') : PrimeReact$1.ariaLabel('selectRow'), " ").concat(ariaLabelText);
|
|
1684
1714
|
}
|
|
1685
1715
|
content = showSelection && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React__namespace.createElement(RowRadioButton, {
|
|
1686
1716
|
hostName: props.hostName,
|
|
@@ -1695,7 +1725,8 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1695
1725
|
tableSelector: props.tableSelector,
|
|
1696
1726
|
ariaLabel: label,
|
|
1697
1727
|
ptCallbacks: props.ptCallbacks,
|
|
1698
|
-
metaData: props.metaData
|
|
1728
|
+
metaData: props.metaData,
|
|
1729
|
+
unstyled: props.unstyled
|
|
1699
1730
|
}), selectionMode === 'multiple' && /*#__PURE__*/React__namespace.createElement(RowCheckbox, {
|
|
1700
1731
|
hostName: props.hostName,
|
|
1701
1732
|
column: props.column,
|
|
@@ -1709,17 +1740,19 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1709
1740
|
ariaLabel: label,
|
|
1710
1741
|
checkIcon: props.checkIcon,
|
|
1711
1742
|
ptCallbacks: props.ptCallbacks,
|
|
1712
|
-
metaData: props.metaData
|
|
1743
|
+
metaData: props.metaData,
|
|
1744
|
+
unstyled: props.unstyled
|
|
1713
1745
|
}));
|
|
1714
1746
|
} else if (rowReorder) {
|
|
1715
1747
|
var showReorder = props.showRowReorderElement ? props.showRowReorderElement(props.rowData, {
|
|
1716
1748
|
rowIndex: props.rowIndex,
|
|
1717
1749
|
props: props.tableProps
|
|
1718
1750
|
}) : true;
|
|
1751
|
+
var customIcon = getColumnProp('rowReorderIcon');
|
|
1719
1752
|
var rowReorderIconProps = mergeProps({
|
|
1720
1753
|
className: cx('rowReorderIcon')
|
|
1721
|
-
}, getColumnPTOptions('rowReorderIcon'));
|
|
1722
|
-
var rowReorderIcon =
|
|
1754
|
+
}, customIcon ? null : getColumnPTOptions('rowReorderIcon'));
|
|
1755
|
+
var rowReorderIcon = customIcon || /*#__PURE__*/React__namespace.createElement(bars.BarsIcon, rowReorderIconProps);
|
|
1723
1756
|
content = showReorder ? utils.IconUtils.getJSXIcon(rowReorderIcon, _objectSpread$a({}, rowReorderIconProps), {
|
|
1724
1757
|
props: props
|
|
1725
1758
|
}) : null;
|
|
@@ -1871,7 +1904,6 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1871
1904
|
}, editorKeyHelperProps), /*#__PURE__*/React__namespace.createElement("span", editorKeyHelperLabelProps));
|
|
1872
1905
|
/* eslint-enable */
|
|
1873
1906
|
}
|
|
1874
|
-
|
|
1875
1907
|
var bodyCellProps = mergeProps({
|
|
1876
1908
|
style: style,
|
|
1877
1909
|
className: utils.classNames(bodyClassName, getColumnProp('className'), cellClassName, cx('bodyCell', {
|
|
@@ -2163,7 +2195,7 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
2163
2195
|
focusedItem && focusedItem !== firstSelectedRow && (focusedItem.tabIndex = '-1');
|
|
2164
2196
|
} else {
|
|
2165
2197
|
rows[0].tabIndex = '0';
|
|
2166
|
-
focusedItem !== rows[0] && (rows[rowIndex].tabIndex = '-1');
|
|
2198
|
+
focusedItem !== rows[0] && (rows[props.rowIndex].tabIndex = '-1');
|
|
2167
2199
|
}
|
|
2168
2200
|
}
|
|
2169
2201
|
};
|
|
@@ -2355,7 +2387,8 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
2355
2387
|
value: props.value,
|
|
2356
2388
|
virtualScrollerOptions: props.virtualScrollerOptions,
|
|
2357
2389
|
ptCallbacks: props.ptCallbacks,
|
|
2358
|
-
metaData: props.metaData
|
|
2390
|
+
metaData: props.metaData,
|
|
2391
|
+
unstyled: props.unstyled
|
|
2359
2392
|
});
|
|
2360
2393
|
}
|
|
2361
2394
|
return null;
|
|
@@ -2434,7 +2467,6 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
2434
2467
|
}, getBodyRowPTOptions('bodyRow'), {
|
|
2435
2468
|
className: utils.classNames(rowClassName) // #5983 must be last so all unstyled merging takes place first
|
|
2436
2469
|
});
|
|
2437
|
-
|
|
2438
2470
|
return /*#__PURE__*/React__namespace.createElement("tr", rowProps, content);
|
|
2439
2471
|
});
|
|
2440
2472
|
BodyRow.displayName = 'BodyRow';
|
|
@@ -3063,6 +3095,7 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
3063
3095
|
var event = e.originalEvent;
|
|
3064
3096
|
if (!isUnsyled && utils.DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle')) {
|
|
3065
3097
|
event.currentTarget.draggable = true;
|
|
3098
|
+
event.target.draggable = false;
|
|
3066
3099
|
} else {
|
|
3067
3100
|
event.currentTarget.draggable = false;
|
|
3068
3101
|
}
|
|
@@ -3141,7 +3174,6 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
3141
3174
|
event.dataTransfer.setData('text', 'b'); // For firefox
|
|
3142
3175
|
}
|
|
3143
3176
|
};
|
|
3144
|
-
|
|
3145
3177
|
var onRowDragOver = function onRowDragOver(e) {
|
|
3146
3178
|
var event = e.originalEvent,
|
|
3147
3179
|
index = e.index;
|
|
@@ -3363,7 +3395,8 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
3363
3395
|
expandedRowIcon: props.expandedRowIcon,
|
|
3364
3396
|
collapsedRowIcon: props.collapsedRowIcon,
|
|
3365
3397
|
ptCallbacks: props.ptCallbacks,
|
|
3366
|
-
metaData: props.metaData
|
|
3398
|
+
metaData: props.metaData,
|
|
3399
|
+
unstyled: props.unstyled
|
|
3367
3400
|
});
|
|
3368
3401
|
var options = {
|
|
3369
3402
|
index: rowIndex,
|
|
@@ -3468,7 +3501,8 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
3468
3501
|
value: props.value,
|
|
3469
3502
|
virtualScrollerOptions: props.virtualScrollerOptions,
|
|
3470
3503
|
ptCallbacks: props.ptCallbacks,
|
|
3471
|
-
metaData: props.metaData
|
|
3504
|
+
metaData: props.metaData,
|
|
3505
|
+
unstyled: props.unstyled
|
|
3472
3506
|
});
|
|
3473
3507
|
}
|
|
3474
3508
|
};
|
|
@@ -4065,6 +4099,15 @@ var FocusTrap = /*#__PURE__*/React__default["default"].memo( /*#__PURE__*/React_
|
|
|
4065
4099
|
var getTarget = function getTarget() {
|
|
4066
4100
|
return firstFocusableElementRef.current && firstFocusableElementRef.current.parentElement;
|
|
4067
4101
|
};
|
|
4102
|
+
|
|
4103
|
+
/**
|
|
4104
|
+
* This method sets the auto focus on the first focusable element within the target element.
|
|
4105
|
+
* It first tries to find a focusable element using the autoFocusSelector. If no such element is found,
|
|
4106
|
+
* it then tries to find a focusable element using the firstFocusableSelector.
|
|
4107
|
+
* If the autoFocus prop is set to true and a focusable element is found, it sets the focus on that element.
|
|
4108
|
+
*
|
|
4109
|
+
* @param {HTMLElement} target - The target element within which to find a focusable element.
|
|
4110
|
+
*/
|
|
4068
4111
|
var setAutoFocus = function setAutoFocus(target) {
|
|
4069
4112
|
var _ref = props || {},
|
|
4070
4113
|
_ref$autoFocusSelecto = _ref.autoFocusSelector,
|
|
@@ -4073,7 +4116,9 @@ var FocusTrap = /*#__PURE__*/React__default["default"].memo( /*#__PURE__*/React_
|
|
|
4073
4116
|
firstFocusableSelector = _ref$firstFocusableSe === void 0 ? '' : _ref$firstFocusableSe,
|
|
4074
4117
|
_ref$autoFocus = _ref.autoFocus,
|
|
4075
4118
|
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
|
|
4076
|
-
var
|
|
4119
|
+
var defaultAutoFocusSelector = "".concat(getComputedSelector(autoFocusSelector));
|
|
4120
|
+
var computedAutoFocusSelector = "[autofocus]".concat(defaultAutoFocusSelector, ", [data-pc-autofocus='true']").concat(defaultAutoFocusSelector);
|
|
4121
|
+
var focusableElement = utils.DomHandler.getFirstFocusableElement(target, computedAutoFocusSelector);
|
|
4077
4122
|
autoFocus && !focusableElement && (focusableElement = utils.DomHandler.getFirstFocusableElement(target, getComputedSelector(firstFocusableSelector)));
|
|
4078
4123
|
utils.DomHandler.focus(focusableElement);
|
|
4079
4124
|
};
|
|
@@ -5189,7 +5234,7 @@ var HeaderCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
5189
5234
|
column: props.column
|
|
5190
5235
|
});
|
|
5191
5236
|
};
|
|
5192
|
-
var
|
|
5237
|
+
var onResizeStart = function onResizeStart(event) {
|
|
5193
5238
|
props.onColumnResizeStart({
|
|
5194
5239
|
originalEvent: event,
|
|
5195
5240
|
column: props.column
|
|
@@ -5226,7 +5271,10 @@ var HeaderCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
5226
5271
|
var columnResizerProps = mergeProps({
|
|
5227
5272
|
className: cx('columnResizer'),
|
|
5228
5273
|
onMouseDown: function onMouseDown(e) {
|
|
5229
|
-
return
|
|
5274
|
+
return onResizeStart(e);
|
|
5275
|
+
},
|
|
5276
|
+
onTouchStart: function onTouchStart(e) {
|
|
5277
|
+
return onResizeStart(e);
|
|
5230
5278
|
},
|
|
5231
5279
|
onClick: function onClick(e) {
|
|
5232
5280
|
return onResizerClick(e);
|
|
@@ -5286,7 +5334,8 @@ var HeaderCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
5286
5334
|
onChange: props.onColumnCheckboxChange,
|
|
5287
5335
|
disabled: props.empty,
|
|
5288
5336
|
ptCallbacks: ptCallbacks,
|
|
5289
|
-
metaData: parentMetaData
|
|
5337
|
+
metaData: parentMetaData,
|
|
5338
|
+
unstyled: props.unstyled
|
|
5290
5339
|
});
|
|
5291
5340
|
}
|
|
5292
5341
|
return null;
|
|
@@ -5752,29 +5801,40 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
5752
5801
|
setRowsState(props.rows);
|
|
5753
5802
|
setD_rowsState(props.rows);
|
|
5754
5803
|
}
|
|
5804
|
+
var columnResizeStartListener = function columnResizeStartListener(event) {
|
|
5805
|
+
return columnResizing.current && onColumnResize(event);
|
|
5806
|
+
};
|
|
5807
|
+
var columnResizeEndListener = function columnResizeEndListener() {
|
|
5808
|
+
return columnResizing.current && (columnResizing.current = false, onColumnResizeEnd());
|
|
5809
|
+
};
|
|
5755
5810
|
var _useEventListener = hooks.useEventListener({
|
|
5756
5811
|
type: 'mousemove',
|
|
5757
|
-
listener:
|
|
5758
|
-
if (columnResizing.current) {
|
|
5759
|
-
onColumnResize(event);
|
|
5760
|
-
}
|
|
5761
|
-
}
|
|
5812
|
+
listener: columnResizeStartListener
|
|
5762
5813
|
}),
|
|
5763
5814
|
_useEventListener2 = _slicedToArray(_useEventListener, 2),
|
|
5764
5815
|
bindDocumentMouseMoveListener = _useEventListener2[0],
|
|
5765
5816
|
unbindDocumentMouseMoveListener = _useEventListener2[1];
|
|
5766
5817
|
var _useEventListener3 = hooks.useEventListener({
|
|
5767
5818
|
type: 'mouseup',
|
|
5768
|
-
listener:
|
|
5769
|
-
if (columnResizing.current) {
|
|
5770
|
-
columnResizing.current = false;
|
|
5771
|
-
onColumnResizeEnd();
|
|
5772
|
-
}
|
|
5773
|
-
}
|
|
5819
|
+
listener: columnResizeEndListener
|
|
5774
5820
|
}),
|
|
5775
5821
|
_useEventListener4 = _slicedToArray(_useEventListener3, 2),
|
|
5776
5822
|
bindDocumentMouseUpListener = _useEventListener4[0],
|
|
5777
5823
|
unbindDocumentMouseUpListener = _useEventListener4[1];
|
|
5824
|
+
var _useEventListener5 = hooks.useEventListener({
|
|
5825
|
+
type: 'touchmove',
|
|
5826
|
+
listener: columnResizeStartListener
|
|
5827
|
+
}),
|
|
5828
|
+
_useEventListener6 = _slicedToArray(_useEventListener5, 2),
|
|
5829
|
+
bindDocumentTouchMoveListener = _useEventListener6[0],
|
|
5830
|
+
unbindDocumentTouchMoveListener = _useEventListener6[1];
|
|
5831
|
+
var _useEventListener7 = hooks.useEventListener({
|
|
5832
|
+
type: 'touchend',
|
|
5833
|
+
listener: columnResizeEndListener
|
|
5834
|
+
}),
|
|
5835
|
+
_useEventListener8 = _slicedToArray(_useEventListener7, 2),
|
|
5836
|
+
bindDocumentTouchEndListener = _useEventListener8[0],
|
|
5837
|
+
unbindDocumentTouchEndListener = _useEventListener8[1];
|
|
5778
5838
|
var isCustomStateStorage = function isCustomStateStorage() {
|
|
5779
5839
|
return props.stateStorage === 'custom';
|
|
5780
5840
|
};
|
|
@@ -5828,18 +5888,6 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
5828
5888
|
}
|
|
5829
5889
|
return columns;
|
|
5830
5890
|
};
|
|
5831
|
-
var getStorage = function getStorage() {
|
|
5832
|
-
switch (props.stateStorage) {
|
|
5833
|
-
case 'local':
|
|
5834
|
-
return window.localStorage;
|
|
5835
|
-
case 'session':
|
|
5836
|
-
return window.sessionStorage;
|
|
5837
|
-
case 'custom':
|
|
5838
|
-
return null;
|
|
5839
|
-
default:
|
|
5840
|
-
throw new Error(props.stateStorage + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
|
|
5841
|
-
}
|
|
5842
|
-
};
|
|
5843
5891
|
var saveState = function saveState() {
|
|
5844
5892
|
var state = {};
|
|
5845
5893
|
if (props.paginator) {
|
|
@@ -5875,7 +5923,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
5875
5923
|
props.customSaveState(state);
|
|
5876
5924
|
}
|
|
5877
5925
|
} else {
|
|
5878
|
-
var storage = getStorage();
|
|
5926
|
+
var storage = getStorage(props.stateStorage);
|
|
5879
5927
|
if (utils.ObjectUtils.isNotEmpty(state)) {
|
|
5880
5928
|
storage.setItem(props.stateKey, JSON.stringify(state));
|
|
5881
5929
|
}
|
|
@@ -5885,7 +5933,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
5885
5933
|
}
|
|
5886
5934
|
};
|
|
5887
5935
|
var clearState = function clearState() {
|
|
5888
|
-
var storage = getStorage();
|
|
5936
|
+
var storage = getStorage(props.stateStorage);
|
|
5889
5937
|
if (storage && props.stateKey) {
|
|
5890
5938
|
storage.removeItem(props.stateKey);
|
|
5891
5939
|
}
|
|
@@ -5897,7 +5945,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
5897
5945
|
restoredState = props.customRestoreState();
|
|
5898
5946
|
}
|
|
5899
5947
|
} else {
|
|
5900
|
-
var storage = getStorage();
|
|
5948
|
+
var storage = getStorage(props.stateStorage);
|
|
5901
5949
|
var stateString = storage.getItem(props.stateKey);
|
|
5902
5950
|
var dateFormat = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
|
|
5903
5951
|
var reviver = function reviver(key, value) {
|
|
@@ -6122,7 +6170,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
6122
6170
|
resizeColumn.current = column;
|
|
6123
6171
|
resizeColumnElement.current = event.currentTarget.parentElement;
|
|
6124
6172
|
columnResizing.current = true;
|
|
6125
|
-
lastResizeHelperX.current = event.pageX - containerLeft + elementRef.current.scrollLeft;
|
|
6173
|
+
lastResizeHelperX.current = (event.type === 'touchstart' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft;
|
|
6126
6174
|
bindColumnResizeEvents();
|
|
6127
6175
|
};
|
|
6128
6176
|
var onColumnResize = function onColumnResize(event) {
|
|
@@ -6130,7 +6178,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
6130
6178
|
elementRef.current.setAttribute('data-p-unselectable-text', true);
|
|
6131
6179
|
resizeHelperRef.current.style.height = elementRef.current.offsetHeight + 'px';
|
|
6132
6180
|
resizeHelperRef.current.style.top = 0 + 'px';
|
|
6133
|
-
resizeHelperRef.current.style.left = event.pageX - containerLeft + elementRef.current.scrollLeft + 'px';
|
|
6181
|
+
resizeHelperRef.current.style.left = (event.type === 'touchmove' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft + 'px';
|
|
6134
6182
|
resizeHelperRef.current.style.display = 'block';
|
|
6135
6183
|
};
|
|
6136
6184
|
var onColumnResizeEnd = function onColumnResizeEnd() {
|
|
@@ -6201,10 +6249,14 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
6201
6249
|
var bindColumnResizeEvents = function bindColumnResizeEvents() {
|
|
6202
6250
|
bindDocumentMouseMoveListener();
|
|
6203
6251
|
bindDocumentMouseUpListener();
|
|
6252
|
+
bindDocumentTouchMoveListener();
|
|
6253
|
+
bindDocumentTouchEndListener();
|
|
6204
6254
|
};
|
|
6205
6255
|
var unbindColumnResizeEvents = function unbindColumnResizeEvents() {
|
|
6206
6256
|
unbindDocumentMouseMoveListener();
|
|
6207
6257
|
unbindDocumentMouseUpListener();
|
|
6258
|
+
unbindDocumentTouchMoveListener();
|
|
6259
|
+
unbindDocumentTouchEndListener();
|
|
6208
6260
|
};
|
|
6209
6261
|
var onColumnHeaderMouseDown = function onColumnHeaderMouseDown(e) {
|
|
6210
6262
|
utils.DomHandler.clearSelection();
|
|
@@ -6270,7 +6322,6 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
6270
6322
|
draggedColumnElement.current = findParentHeader(event.currentTarget);
|
|
6271
6323
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
6272
6324
|
};
|
|
6273
|
-
|
|
6274
6325
|
var onColumnHeaderDragOver = function onColumnHeaderDragOver(e) {
|
|
6275
6326
|
var event = e.originalEvent,
|
|
6276
6327
|
column = e.column;
|
|
@@ -7035,7 +7086,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
7035
7086
|
className: ptCallbacks.cx('loadingIcon')
|
|
7036
7087
|
}, ptCallbacks.ptm('loadingIcon'));
|
|
7037
7088
|
var icon = props.loadingIcon || /*#__PURE__*/React__namespace.createElement(spinner.SpinnerIcon, _extends({}, loadingIconProps, {
|
|
7038
|
-
spin: true
|
|
7089
|
+
spin: true,
|
|
7090
|
+
unstyled: props.unstyled
|
|
7039
7091
|
}));
|
|
7040
7092
|
var loadingIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, loadingIconProps), {
|
|
7041
7093
|
props: props
|
|
@@ -7202,7 +7254,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
7202
7254
|
value: props.frozenValue,
|
|
7203
7255
|
virtualScrollerOptions: options,
|
|
7204
7256
|
ptCallbacks: ptCallbacks,
|
|
7205
|
-
metaData: metaData
|
|
7257
|
+
metaData: metaData,
|
|
7258
|
+
unstyled: props.unstyled
|
|
7206
7259
|
});
|
|
7207
7260
|
var body = /*#__PURE__*/React__namespace.createElement(TableBody, {
|
|
7208
7261
|
hostName: "DataTable",
|
|
@@ -7285,7 +7338,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
7285
7338
|
virtualScrollerContentRef: contentRef,
|
|
7286
7339
|
virtualScrollerOptions: options,
|
|
7287
7340
|
ptCallbacks: ptCallbacks,
|
|
7288
|
-
metaData: metaData
|
|
7341
|
+
metaData: metaData,
|
|
7342
|
+
unstyled: props.unstyled
|
|
7289
7343
|
});
|
|
7290
7344
|
var spacerBody = utils.ObjectUtils.isNotEmpty(spacerStyle) ? /*#__PURE__*/React__namespace.createElement(TableBody, {
|
|
7291
7345
|
hostName: "DataTable",
|
|
@@ -7294,7 +7348,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
7294
7348
|
},
|
|
7295
7349
|
className: "p-datatable-virtualscroller-spacer",
|
|
7296
7350
|
ptCallbacks: ptCallbacks,
|
|
7297
|
-
metaData: metaData
|
|
7351
|
+
metaData: metaData,
|
|
7352
|
+
unstyled: props.unstyled
|
|
7298
7353
|
}) : null;
|
|
7299
7354
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, frozenBody, body, spacerBody);
|
|
7300
7355
|
};
|
|
@@ -7306,7 +7361,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
7306
7361
|
columns: columns,
|
|
7307
7362
|
footerColumnGroup: props.footerColumnGroup,
|
|
7308
7363
|
ptCallbacks: ptCallbacks,
|
|
7309
|
-
metaData: metaData
|
|
7364
|
+
metaData: metaData,
|
|
7365
|
+
unstyled: props.unstyled
|
|
7310
7366
|
});
|
|
7311
7367
|
};
|
|
7312
7368
|
var createContent = function createContent(processedData, columns, selectionModeInColumn, empty) {
|
|
@@ -7341,6 +7397,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
7341
7397
|
parent: metaData
|
|
7342
7398
|
},
|
|
7343
7399
|
showSpacer: false,
|
|
7400
|
+
unstyled: props.unstyled,
|
|
7344
7401
|
contentTemplate: function contentTemplate(options) {
|
|
7345
7402
|
var ref = function ref(el) {
|
|
7346
7403
|
tableRef.current = el;
|