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/core/core.js
CHANGED
|
@@ -196,7 +196,7 @@ this.primereact.utils = (function (exports, React) {
|
|
|
196
196
|
function DomHandler() {
|
|
197
197
|
_classCallCheck(this, DomHandler);
|
|
198
198
|
}
|
|
199
|
-
_createClass(DomHandler, null, [{
|
|
199
|
+
return _createClass(DomHandler, null, [{
|
|
200
200
|
key: "innerWidth",
|
|
201
201
|
value: function innerWidth(el) {
|
|
202
202
|
if (el) {
|
|
@@ -1426,7 +1426,6 @@ this.primereact.utils = (function (exports, React) {
|
|
|
1426
1426
|
return false;
|
|
1427
1427
|
}
|
|
1428
1428
|
}]);
|
|
1429
|
-
return DomHandler;
|
|
1430
1429
|
}();
|
|
1431
1430
|
/**
|
|
1432
1431
|
* All data- properties like data-test-id
|
|
@@ -1484,7 +1483,7 @@ this.primereact.utils = (function (exports, React) {
|
|
|
1484
1483
|
function ObjectUtils() {
|
|
1485
1484
|
_classCallCheck(this, ObjectUtils);
|
|
1486
1485
|
}
|
|
1487
|
-
_createClass(ObjectUtils, null, [{
|
|
1486
|
+
return _createClass(ObjectUtils, null, [{
|
|
1488
1487
|
key: "equals",
|
|
1489
1488
|
value: function equals(obj1, obj2, field) {
|
|
1490
1489
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') {
|
|
@@ -2006,7 +2005,6 @@ this.primereact.utils = (function (exports, React) {
|
|
|
2006
2005
|
}
|
|
2007
2006
|
}
|
|
2008
2007
|
}]);
|
|
2009
|
-
return ObjectUtils;
|
|
2010
2008
|
}();
|
|
2011
2009
|
|
|
2012
2010
|
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -2015,7 +2013,7 @@ this.primereact.utils = (function (exports, React) {
|
|
|
2015
2013
|
function IconUtils() {
|
|
2016
2014
|
_classCallCheck(this, IconUtils);
|
|
2017
2015
|
}
|
|
2018
|
-
_createClass(IconUtils, null, [{
|
|
2016
|
+
return _createClass(IconUtils, null, [{
|
|
2019
2017
|
key: "getJSXIcon",
|
|
2020
2018
|
value: function getJSXIcon(icon) {
|
|
2021
2019
|
var iconProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -2038,7 +2036,6 @@ this.primereact.utils = (function (exports, React) {
|
|
|
2038
2036
|
return content;
|
|
2039
2037
|
}
|
|
2040
2038
|
}]);
|
|
2041
|
-
return IconUtils;
|
|
2042
2039
|
}();
|
|
2043
2040
|
|
|
2044
2041
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -4497,7 +4494,8 @@ this.primereact.hooks = (function (exports, React, utils, PrimeReact) {
|
|
|
4497
4494
|
PASSWORD: 700,
|
|
4498
4495
|
CASCADE_SELECT: 800,
|
|
4499
4496
|
SPLIT_BUTTON: 900,
|
|
4500
|
-
SPEED_DIAL: 1000
|
|
4497
|
+
SPEED_DIAL: 1000,
|
|
4498
|
+
TOOLTIP: 1200
|
|
4501
4499
|
};
|
|
4502
4500
|
|
|
4503
4501
|
/**
|
|
@@ -5812,32 +5810,26 @@ this.primereact.csstransition = (function (exports, React, reactTransitionGroup,
|
|
|
5812
5810
|
props.onEnter && props.onEnter(node, isAppearing); // component
|
|
5813
5811
|
props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
|
|
5814
5812
|
};
|
|
5815
|
-
|
|
5816
5813
|
var onEntering = function onEntering(node, isAppearing) {
|
|
5817
5814
|
props.onEntering && props.onEntering(node, isAppearing); // component
|
|
5818
5815
|
props.options && props.options.onEntering && props.options.onEntering(node, isAppearing); // user option
|
|
5819
5816
|
};
|
|
5820
|
-
|
|
5821
5817
|
var onEntered = function onEntered(node, isAppearing) {
|
|
5822
5818
|
props.onEntered && props.onEntered(node, isAppearing); // component
|
|
5823
5819
|
props.options && props.options.onEntered && props.options.onEntered(node, isAppearing); // user option
|
|
5824
5820
|
};
|
|
5825
|
-
|
|
5826
5821
|
var onExit = function onExit(node) {
|
|
5827
5822
|
props.onExit && props.onExit(node); // component
|
|
5828
5823
|
props.options && props.options.onExit && props.options.onExit(node); // user option
|
|
5829
5824
|
};
|
|
5830
|
-
|
|
5831
5825
|
var onExiting = function onExiting(node) {
|
|
5832
5826
|
props.onExiting && props.onExiting(node); // component
|
|
5833
5827
|
props.options && props.options.onExiting && props.options.onExiting(node); // user option
|
|
5834
5828
|
};
|
|
5835
|
-
|
|
5836
5829
|
var onExited = function onExited(node) {
|
|
5837
5830
|
props.onExited && props.onExited(node); // component
|
|
5838
5831
|
props.options && props.options.onExited && props.options.onExited(node); // user option
|
|
5839
5832
|
};
|
|
5840
|
-
|
|
5841
5833
|
hooks.useUpdateEffect(function () {
|
|
5842
5834
|
if (disabled) {
|
|
5843
5835
|
// no animation
|
|
@@ -6090,7 +6082,7 @@ this.primereact.keyfilter = (function (exports, utils) {
|
|
|
6090
6082
|
if (validateOnly || utils.DomHandler.isAndroid()) {
|
|
6091
6083
|
return;
|
|
6092
6084
|
}
|
|
6093
|
-
if (e.ctrlKey || e.altKey) {
|
|
6085
|
+
if (e.ctrlKey || e.altKey || e.metaKey) {
|
|
6094
6086
|
return;
|
|
6095
6087
|
}
|
|
6096
6088
|
this.validateKey(e, e.key, keyfilter);
|
|
@@ -9337,6 +9329,7 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
9337
9329
|
autoZIndex: true,
|
|
9338
9330
|
baseZIndex: 0,
|
|
9339
9331
|
className: null,
|
|
9332
|
+
closeOnEscape: false,
|
|
9340
9333
|
content: null,
|
|
9341
9334
|
disabled: false,
|
|
9342
9335
|
event: null,
|
|
@@ -9377,7 +9370,7 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
9377
9370
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
9378
9371
|
visibleState = _React$useState2[0],
|
|
9379
9372
|
setVisibleState = _React$useState2[1];
|
|
9380
|
-
var _React$useState3 = React__namespace.useState(props.position),
|
|
9373
|
+
var _React$useState3 = React__namespace.useState(props.position || 'right'),
|
|
9381
9374
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
9382
9375
|
positionState = _React$useState4[0],
|
|
9383
9376
|
setPositionState = _React$useState4[1];
|
|
@@ -9407,6 +9400,13 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
9407
9400
|
componentbase.useHandleStyle(TooltipBase.css.styles, isUnstyled, {
|
|
9408
9401
|
name: 'tooltip'
|
|
9409
9402
|
});
|
|
9403
|
+
hooks.useGlobalOnEscapeKey({
|
|
9404
|
+
callback: function callback() {
|
|
9405
|
+
hide();
|
|
9406
|
+
},
|
|
9407
|
+
when: props.closeOnEscape,
|
|
9408
|
+
priority: [hooks.ESC_KEY_HANDLING_PRIORITIES.TOOLTIP, 0]
|
|
9409
|
+
});
|
|
9410
9410
|
var elementRef = React__namespace.useRef(null);
|
|
9411
9411
|
var textRef = React__namespace.useRef(null);
|
|
9412
9412
|
var currentTargetRef = React__namespace.useRef(null);
|
|
@@ -9792,7 +9792,7 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
9792
9792
|
bindWindowResizeListener();
|
|
9793
9793
|
bindOverlayScrollListener();
|
|
9794
9794
|
} else {
|
|
9795
|
-
setPositionState(props.position);
|
|
9795
|
+
setPositionState(props.position || 'right');
|
|
9796
9796
|
setClassNameState('');
|
|
9797
9797
|
currentTargetRef.current = null;
|
|
9798
9798
|
containerSize.current = null;
|
|
@@ -9804,7 +9804,8 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
9804
9804
|
};
|
|
9805
9805
|
}, [visibleState]);
|
|
9806
9806
|
hooks.useUpdateEffect(function () {
|
|
9807
|
-
|
|
9807
|
+
var position = getPosition(currentTargetRef.current);
|
|
9808
|
+
if (visibleState && position !== 'mouse') {
|
|
9808
9809
|
applyDelay('updateDelay', function () {
|
|
9809
9810
|
updateText(currentTargetRef.current, function () {
|
|
9810
9811
|
align(currentTargetRef.current);
|
|
@@ -10704,7 +10705,29 @@ this.primereact.virtualscroller = (function (exports, React, api, hooks, spinner
|
|
|
10704
10705
|
}
|
|
10705
10706
|
}, [numToleratedItemsState]);
|
|
10706
10707
|
hooks.useUpdateEffect(function () {
|
|
10707
|
-
|
|
10708
|
+
// Check if the previous/current rows array exists
|
|
10709
|
+
var prevRowsExist = prevProps.items !== undefined && prevProps.items !== null;
|
|
10710
|
+
var currentRowsExist = props.items !== undefined && props.items !== null;
|
|
10711
|
+
|
|
10712
|
+
// Get the length of the previous/current rows array, or 0 if it doesn't exist
|
|
10713
|
+
var prevRowsLength = prevRowsExist ? prevProps.items.length : 0;
|
|
10714
|
+
var currentRowsLength = currentRowsExist ? props.items.length : 0;
|
|
10715
|
+
|
|
10716
|
+
// Check if the length of the rows arrays has changed
|
|
10717
|
+
var valuesChanged = prevRowsLength !== currentRowsLength;
|
|
10718
|
+
|
|
10719
|
+
// If both is true, we also need to check the lengths of the first element (assuming it's a matrix)
|
|
10720
|
+
if (both && !valuesChanged) {
|
|
10721
|
+
// Get the length of the columns or 0
|
|
10722
|
+
var prevColumnsLength = prevRowsExist && prevProps.items.length > 0 ? prevProps.items[0].length : 0;
|
|
10723
|
+
var currentColumnsLength = currentRowsExist && props.items.length > 0 ? props.items[0].length : 0;
|
|
10724
|
+
|
|
10725
|
+
// Check if the length of the columns has changed
|
|
10726
|
+
valuesChanged = prevColumnsLength !== currentColumnsLength;
|
|
10727
|
+
}
|
|
10728
|
+
|
|
10729
|
+
// If the previous items array doesn't exist or if any values have changed, call the init function
|
|
10730
|
+
if (!prevRowsExist || valuesChanged) {
|
|
10708
10731
|
init();
|
|
10709
10732
|
}
|
|
10710
10733
|
var loading = loadingState;
|
|
@@ -10990,6 +11013,61 @@ this.primereact.checkbox = (function (exports, React, api, componentbase, hooks,
|
|
|
10990
11013
|
return obj;
|
|
10991
11014
|
}
|
|
10992
11015
|
|
|
11016
|
+
function _arrayWithHoles(arr) {
|
|
11017
|
+
if (Array.isArray(arr)) return arr;
|
|
11018
|
+
}
|
|
11019
|
+
|
|
11020
|
+
function _iterableToArrayLimit(r, l) {
|
|
11021
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
11022
|
+
if (null != t) {
|
|
11023
|
+
var e,
|
|
11024
|
+
n,
|
|
11025
|
+
i,
|
|
11026
|
+
u,
|
|
11027
|
+
a = [],
|
|
11028
|
+
f = !0,
|
|
11029
|
+
o = !1;
|
|
11030
|
+
try {
|
|
11031
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
11032
|
+
if (Object(t) !== t) return;
|
|
11033
|
+
f = !1;
|
|
11034
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
11035
|
+
} catch (r) {
|
|
11036
|
+
o = !0, n = r;
|
|
11037
|
+
} finally {
|
|
11038
|
+
try {
|
|
11039
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
11040
|
+
} finally {
|
|
11041
|
+
if (o) throw n;
|
|
11042
|
+
}
|
|
11043
|
+
}
|
|
11044
|
+
return a;
|
|
11045
|
+
}
|
|
11046
|
+
}
|
|
11047
|
+
|
|
11048
|
+
function _arrayLikeToArray(arr, len) {
|
|
11049
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
11050
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
11051
|
+
return arr2;
|
|
11052
|
+
}
|
|
11053
|
+
|
|
11054
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
11055
|
+
if (!o) return;
|
|
11056
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
11057
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11058
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11059
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
11060
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
11061
|
+
}
|
|
11062
|
+
|
|
11063
|
+
function _nonIterableRest() {
|
|
11064
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11065
|
+
}
|
|
11066
|
+
|
|
11067
|
+
function _slicedToArray(arr, i) {
|
|
11068
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
11069
|
+
}
|
|
11070
|
+
|
|
10993
11071
|
var classes = {
|
|
10994
11072
|
box: 'p-checkbox-box',
|
|
10995
11073
|
input: 'p-checkbox-input',
|
|
@@ -11045,8 +11123,15 @@ this.primereact.checkbox = (function (exports, React, api, componentbase, hooks,
|
|
|
11045
11123
|
var mergeProps = hooks.useMergeProps();
|
|
11046
11124
|
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
11047
11125
|
var props = CheckboxBase.getProps(inProps, context);
|
|
11126
|
+
var _React$useState = React__namespace.useState(false),
|
|
11127
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
11128
|
+
focusedState = _React$useState2[0],
|
|
11129
|
+
setFocusedState = _React$useState2[1];
|
|
11048
11130
|
var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
|
|
11049
11131
|
props: props,
|
|
11132
|
+
state: {
|
|
11133
|
+
focused: focusedState
|
|
11134
|
+
},
|
|
11050
11135
|
context: {
|
|
11051
11136
|
checked: props.checked === props.trueValue,
|
|
11052
11137
|
disabled: props.disabled
|
|
@@ -11100,10 +11185,12 @@ this.primereact.checkbox = (function (exports, React, api, componentbase, hooks,
|
|
|
11100
11185
|
};
|
|
11101
11186
|
var _onFocus = function onFocus() {
|
|
11102
11187
|
var _props$onFocus;
|
|
11188
|
+
setFocusedState(true);
|
|
11103
11189
|
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
|
|
11104
11190
|
};
|
|
11105
11191
|
var _onBlur = function onBlur() {
|
|
11106
11192
|
var _props$onBlur;
|
|
11193
|
+
setFocusedState(false);
|
|
11107
11194
|
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
|
|
11108
11195
|
};
|
|
11109
11196
|
React__namespace.useImperativeHandle(ref, function () {
|
|
@@ -11503,6 +11590,7 @@ this.primereact.button = (function (exports, React, api, componentbase, hooks, u
|
|
|
11503
11590
|
var rootProps = mergeProps({
|
|
11504
11591
|
ref: elementRef,
|
|
11505
11592
|
'aria-label': defaultAriaLabel,
|
|
11593
|
+
'data-pc-autofocus': props.autoFocus,
|
|
11506
11594
|
className: utils.classNames(props.className, cx('root', {
|
|
11507
11595
|
size: size,
|
|
11508
11596
|
disabled: disabled
|
|
@@ -12033,14 +12121,15 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
12033
12121
|
var vertical = props.showButtons && props.buttonLayout === 'vertical';
|
|
12034
12122
|
var inputMode = props.inputMode || (props.mode === 'decimal' && !props.minFractionDigits ? 'numeric' : 'decimal');
|
|
12035
12123
|
var getOptions = function getOptions() {
|
|
12124
|
+
var _props$minFractionDig, _props$maxFractionDig;
|
|
12036
12125
|
return {
|
|
12037
12126
|
localeMatcher: props.localeMatcher,
|
|
12038
12127
|
style: props.mode,
|
|
12039
12128
|
currency: props.currency,
|
|
12040
12129
|
currencyDisplay: props.currencyDisplay,
|
|
12041
12130
|
useGrouping: props.useGrouping,
|
|
12042
|
-
minimumFractionDigits: props.minFractionDigits,
|
|
12043
|
-
maximumFractionDigits: props.maxFractionDigits,
|
|
12131
|
+
minimumFractionDigits: (_props$minFractionDig = props.minFractionDigits) !== null && _props$minFractionDig !== void 0 ? _props$minFractionDig : undefined,
|
|
12132
|
+
maximumFractionDigits: (_props$maxFractionDig = props.maxFractionDigits) !== null && _props$maxFractionDig !== void 0 ? _props$maxFractionDig : undefined,
|
|
12044
12133
|
roundingMode: props.roundingMode
|
|
12045
12134
|
};
|
|
12046
12135
|
};
|
|
@@ -12308,7 +12397,7 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
12308
12397
|
if (props.onKeyDown) {
|
|
12309
12398
|
props.onKeyDown(event);
|
|
12310
12399
|
|
|
12311
|
-
//
|
|
12400
|
+
// Do not continue if the user-defined event wants to prevent
|
|
12312
12401
|
if (event.defaultPrevented) {
|
|
12313
12402
|
return;
|
|
12314
12403
|
}
|
|
@@ -12352,7 +12441,6 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
12352
12441
|
|
|
12353
12442
|
//enter and tab
|
|
12354
12443
|
case 'Tab':
|
|
12355
|
-
case 'NumpadEnter':
|
|
12356
12444
|
case 'Enter':
|
|
12357
12445
|
case 'NumpadEnter':
|
|
12358
12446
|
newValueStr = validateValue(parseValue(inputValue));
|
|
@@ -12456,13 +12544,15 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
12456
12544
|
default:
|
|
12457
12545
|
event.preventDefault();
|
|
12458
12546
|
var _char2 = event.key;
|
|
12459
|
-
|
|
12460
|
-
|
|
12461
|
-
|
|
12462
|
-
|
|
12463
|
-
|
|
12464
|
-
|
|
12465
|
-
|
|
12547
|
+
if (_char2) {
|
|
12548
|
+
var _isDecimalSign = isDecimalSign(_char2);
|
|
12549
|
+
var _isMinusSign = isMinusSign(_char2);
|
|
12550
|
+
if (Number(_char2) >= 0 && Number(_char2) <= 9 || _isMinusSign || _isDecimalSign) {
|
|
12551
|
+
insert(event, _char2, {
|
|
12552
|
+
isDecimalSign: _isDecimalSign,
|
|
12553
|
+
isMinusSign: _isMinusSign
|
|
12554
|
+
});
|
|
12555
|
+
}
|
|
12466
12556
|
}
|
|
12467
12557
|
break;
|
|
12468
12558
|
}
|
|
@@ -12565,7 +12655,9 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
12565
12655
|
var newValueStr;
|
|
12566
12656
|
if (sign.isMinusSign) {
|
|
12567
12657
|
var isNewMinusSign = minusCharIndex === -1;
|
|
12568
|
-
|
|
12658
|
+
|
|
12659
|
+
// #6522 - Selected negative value can't be overwritten with a minus ('-') symbol
|
|
12660
|
+
if (selectionStart === 0 || selectionStart === currencyCharIndex + 1) {
|
|
12569
12661
|
newValueStr = inputValue;
|
|
12570
12662
|
if (isNewMinusSign || selectionEnd !== 0) {
|
|
12571
12663
|
newValueStr = insertText(inputValue, text, 0, selectionEnd);
|
|
@@ -12935,7 +13027,7 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
12935
13027
|
hooks.useUpdateEffect(function () {
|
|
12936
13028
|
constructParser();
|
|
12937
13029
|
changeValue();
|
|
12938
|
-
}, [props.locale, props.localeMatcher, props.mode, props.currency, props.currencyDisplay, props.useGrouping, props.minFractionDigits, props.maxFractionDigits, props.suffix, props.prefix]);
|
|
13030
|
+
}, [_locale, props.locale, props.localeMatcher, props.mode, props.currency, props.currencyDisplay, props.useGrouping, props.minFractionDigits, props.maxFractionDigits, props.suffix, props.prefix]);
|
|
12939
13031
|
hooks.useUpdateEffect(function () {
|
|
12940
13032
|
changeValue();
|
|
12941
13033
|
}, [props.value]);
|
|
@@ -14165,7 +14257,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14165
14257
|
if (selected) {
|
|
14166
14258
|
var checkIconProps = mergeProps({
|
|
14167
14259
|
className: cx('checkIcon')
|
|
14168
|
-
}, getPTOptions('
|
|
14260
|
+
}, getPTOptions('checkIcon'));
|
|
14169
14261
|
return /*#__PURE__*/React__namespace.createElement(check.CheckIcon, checkIconProps);
|
|
14170
14262
|
}
|
|
14171
14263
|
var blankIconProps = mergeProps({
|
|
@@ -14252,7 +14344,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14252
14344
|
height: scrollerOptions.props ? scrollerOptions.props.itemSize : undefined
|
|
14253
14345
|
};
|
|
14254
14346
|
style = _objectSpread$1(_objectSpread$1({}, style), option.style);
|
|
14255
|
-
if (option.group && props.optionGroupLabel) {
|
|
14347
|
+
if (option.group && option.optionGroup && props.optionGroupLabel) {
|
|
14256
14348
|
var optionGroupLabel = props.optionGroupLabel;
|
|
14257
14349
|
var groupContent = props.optionGroupTemplate ? utils.ObjectUtils.getJSXElement(props.optionGroupTemplate, option, index) : props.getOptionGroupLabel(option);
|
|
14258
14350
|
var key = index + '_' + props.getOptionGroupRenderKey(option);
|
|
@@ -14633,10 +14725,9 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14633
14725
|
};
|
|
14634
14726
|
var onOptionSelect = function onOptionSelect(event, option) {
|
|
14635
14727
|
var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
14636
|
-
var value = getOptionValue(option);
|
|
14637
14728
|
selectItem({
|
|
14638
14729
|
originalEvent: event,
|
|
14639
|
-
option:
|
|
14730
|
+
option: option
|
|
14640
14731
|
});
|
|
14641
14732
|
isHide && hide();
|
|
14642
14733
|
};
|
|
@@ -14919,8 +15010,9 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14919
15010
|
}
|
|
14920
15011
|
};
|
|
14921
15012
|
var onEditableInputChange = function onEditableInputChange(event) {
|
|
15013
|
+
!overlayVisibleState && show();
|
|
14922
15014
|
var searchIndex = null;
|
|
14923
|
-
if (event.target.value) {
|
|
15015
|
+
if (event.target.value && visibleOptions) {
|
|
14924
15016
|
searchIndex = visibleOptions.findIndex(function (item) {
|
|
14925
15017
|
return getOptionLabel(item).toLocaleLowerCase().startsWith(event.target.value.toLocaleLowerCase());
|
|
14926
15018
|
});
|
|
@@ -15126,10 +15218,12 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
15126
15218
|
}
|
|
15127
15219
|
};
|
|
15128
15220
|
var getOptionLabel = function getOptionLabel(option) {
|
|
15129
|
-
|
|
15221
|
+
var optionLabel = props.optionLabel ? utils.ObjectUtils.resolveFieldData(option, props.optionLabel) : utils.ObjectUtils.resolveFieldData(option, 'label');
|
|
15222
|
+
return utils.ObjectUtils.isNotEmpty(optionLabel) ? optionLabel : option;
|
|
15130
15223
|
};
|
|
15131
15224
|
var getOptionValue = function getOptionValue(option) {
|
|
15132
|
-
|
|
15225
|
+
var optionValue = props.OptionValue ? utils.ObjectUtils.resolveFieldData(option, props.optionValue) : utils.ObjectUtils.resolveFieldData(option, 'value');
|
|
15226
|
+
return utils.ObjectUtils.isNotEmpty(optionValue) ? optionValue : option;
|
|
15133
15227
|
};
|
|
15134
15228
|
var getOptionRenderKey = function getOptionRenderKey(option) {
|
|
15135
15229
|
return props.dataKey ? utils.ObjectUtils.resolveFieldData(option, props.dataKey) : getOptionLabel(option);
|
|
@@ -15302,7 +15396,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
15302
15396
|
}, ariaProps), ptm('input'));
|
|
15303
15397
|
return /*#__PURE__*/React__namespace.createElement("input", _inputProps);
|
|
15304
15398
|
}
|
|
15305
|
-
var content = props.valueTemplate ? utils.ObjectUtils.getJSXElement(props.valueTemplate, selectedOption, props) : label || props.placeholder ||
|
|
15399
|
+
var content = props.valueTemplate ? utils.ObjectUtils.getJSXElement(props.valueTemplate, selectedOption, props) : label || props.placeholder || props.emptyMessage || /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, "\xA0");
|
|
15306
15400
|
var inputProps = mergeProps({
|
|
15307
15401
|
ref: inputRef,
|
|
15308
15402
|
className: cx('input', {
|
|
@@ -15681,6 +15775,15 @@ this.primereact.dialog = (function (exports, React, PrimeReact, componentbase, c
|
|
|
15681
15775
|
var getTarget = function getTarget() {
|
|
15682
15776
|
return firstFocusableElementRef.current && firstFocusableElementRef.current.parentElement;
|
|
15683
15777
|
};
|
|
15778
|
+
|
|
15779
|
+
/**
|
|
15780
|
+
* This method sets the auto focus on the first focusable element within the target element.
|
|
15781
|
+
* It first tries to find a focusable element using the autoFocusSelector. If no such element is found,
|
|
15782
|
+
* it then tries to find a focusable element using the firstFocusableSelector.
|
|
15783
|
+
* If the autoFocus prop is set to true and a focusable element is found, it sets the focus on that element.
|
|
15784
|
+
*
|
|
15785
|
+
* @param {HTMLElement} target - The target element within which to find a focusable element.
|
|
15786
|
+
*/
|
|
15684
15787
|
var setAutoFocus = function setAutoFocus(target) {
|
|
15685
15788
|
var _ref = props || {},
|
|
15686
15789
|
_ref$autoFocusSelecto = _ref.autoFocusSelector,
|
|
@@ -15689,7 +15792,9 @@ this.primereact.dialog = (function (exports, React, PrimeReact, componentbase, c
|
|
|
15689
15792
|
firstFocusableSelector = _ref$firstFocusableSe === void 0 ? '' : _ref$firstFocusableSe,
|
|
15690
15793
|
_ref$autoFocus = _ref.autoFocus,
|
|
15691
15794
|
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
|
|
15692
|
-
var
|
|
15795
|
+
var defaultAutoFocusSelector = "".concat(getComputedSelector(autoFocusSelector));
|
|
15796
|
+
var computedAutoFocusSelector = "[autofocus]".concat(defaultAutoFocusSelector, ", [data-pc-autofocus='true']").concat(defaultAutoFocusSelector);
|
|
15797
|
+
var focusableElement = utils.DomHandler.getFirstFocusableElement(target, computedAutoFocusSelector);
|
|
15693
15798
|
autoFocus && !focusableElement && (focusableElement = utils.DomHandler.getFirstFocusableElement(target, getComputedSelector(firstFocusableSelector)));
|
|
15694
15799
|
utils.DomHandler.focus(focusableElement);
|
|
15695
15800
|
};
|
|
@@ -15788,7 +15893,7 @@ this.primereact.dialog = (function (exports, React, PrimeReact, componentbase, c
|
|
|
15788
15893
|
},
|
|
15789
15894
|
transition: 'p-dialog'
|
|
15790
15895
|
};
|
|
15791
|
-
var styles = "\n@layer primereact {\n .p-dialog-mask {\n background-color: transparent;\n transition-property: background-color;\n }\n
|
|
15896
|
+
var styles = "\n@layer primereact {\n .p-dialog-mask {\n background-color: transparent;\n transition-property: background-color;\n }\n\n .p-dialog-visible {\n display: flex;\n }\n\n .p-dialog-mask.p-component-overlay {\n pointer-events: auto;\n }\n\n .p-dialog {\n display: flex;\n flex-direction: column;\n pointer-events: auto;\n max-height: 90%;\n transform: scale(1);\n position: relative;\n }\n\n .p-dialog-content {\n overflow-y: auto;\n flex-grow: 1;\n }\n\n .p-dialog-header {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n }\n\n .p-dialog-footer {\n flex-shrink: 0;\n }\n\n .p-dialog .p-dialog-header-icons {\n display: flex;\n align-items: center;\n align-self: flex-start;\n flex-shrink: 0;\n }\n\n .p-dialog .p-dialog-header-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n }\n\n .p-dialog .p-dialog-title {\n flex-grow: 1;\n }\n\n /* Fluid */\n .p-fluid .p-dialog-footer .p-button {\n width: auto;\n }\n\n /* Animation */\n /* Center */\n .p-dialog-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n\n .p-dialog-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-dialog-enter-done {\n transform: none;\n }\n\n .p-dialog-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);\n }\n\n /* Top, Bottom, Left, Right, Top* and Bottom* */\n .p-dialog-top .p-dialog,\n .p-dialog-bottom .p-dialog,\n .p-dialog-left .p-dialog,\n .p-dialog-right .p-dialog,\n .p-dialog-top-left .p-dialog,\n .p-dialog-top-right .p-dialog,\n .p-dialog-bottom-left .p-dialog,\n .p-dialog-bottom-right .p-dialog {\n margin: 0.75em;\n }\n\n .p-dialog-top .p-dialog-enter,\n .p-dialog-top .p-dialog-exit-active {\n transform: translate3d(0px, -100%, 0px);\n }\n\n .p-dialog-bottom .p-dialog-enter,\n .p-dialog-bottom .p-dialog-exit-active {\n transform: translate3d(0px, 100%, 0px);\n }\n\n .p-dialog-left .p-dialog-enter,\n .p-dialog-left .p-dialog-exit-active,\n .p-dialog-top-left .p-dialog-enter,\n .p-dialog-top-left .p-dialog-exit-active,\n .p-dialog-bottom-left .p-dialog-enter,\n .p-dialog-bottom-left .p-dialog-exit-active {\n transform: translate3d(-100%, 0px, 0px);\n }\n\n .p-dialog-right .p-dialog-enter,\n .p-dialog-right .p-dialog-exit-active,\n .p-dialog-top-right .p-dialog-enter,\n .p-dialog-top-right .p-dialog-exit-active,\n .p-dialog-bottom-right .p-dialog-enter,\n .p-dialog-bottom-right .p-dialog-exit-active {\n transform: translate3d(100%, 0px, 0px);\n }\n\n .p-dialog-top .p-dialog-enter-active,\n .p-dialog-bottom .p-dialog-enter-active,\n .p-dialog-left .p-dialog-enter-active,\n .p-dialog-top-left .p-dialog-enter-active,\n .p-dialog-bottom-left .p-dialog-enter-active,\n .p-dialog-right .p-dialog-enter-active,\n .p-dialog-top-right .p-dialog-enter-active,\n .p-dialog-bottom-right .p-dialog-enter-active {\n transform: translate3d(0px, 0px, 0px);\n transition: all 0.3s ease-out;\n }\n\n .p-dialog-top .p-dialog-exit-active,\n .p-dialog-bottom .p-dialog-exit-active,\n .p-dialog-left .p-dialog-exit-active,\n .p-dialog-top-left .p-dialog-exit-active,\n .p-dialog-bottom-left .p-dialog-exit-active,\n .p-dialog-right .p-dialog-exit-active,\n .p-dialog-top-right .p-dialog-exit-active,\n .p-dialog-bottom-right .p-dialog-exit-active {\n transition: all 0.3s ease-out;\n }\n\n /* Maximize */\n .p-dialog-maximized {\n transition: none;\n transform: none;\n margin: 0;\n width: 100vw !important;\n height: 100vh !important;\n max-height: 100%;\n top: 0px !important;\n left: 0px !important;\n }\n\n .p-dialog-maximized .p-dialog-content {\n flex-grow: 1;\n }\n\n .p-confirm-dialog .p-dialog-content {\n display: flex;\n align-items: center;\n }\n\n /* Resizable */\n .p-dialog .p-resizable-handle {\n position: absolute;\n font-size: 0.1px;\n display: block;\n cursor: se-resize;\n width: 12px;\n height: 12px;\n right: 1px;\n bottom: 1px;\n }\n\n .p-dialog-draggable .p-dialog-header {\n cursor: move;\n }\n}\n";
|
|
15792
15897
|
var inlineStyles = {
|
|
15793
15898
|
mask: function mask(_ref6) {
|
|
15794
15899
|
var props = _ref6.props;
|
|
@@ -16141,7 +16246,6 @@ this.primereact.dialog = (function (exports, React, PrimeReact, componentbase, c
|
|
|
16141
16246
|
}
|
|
16142
16247
|
};
|
|
16143
16248
|
var onExited = function onExited() {
|
|
16144
|
-
props.onHide && props.onHide();
|
|
16145
16249
|
dragging.current = false;
|
|
16146
16250
|
utils.ZIndexUtils.clear(maskRef.current);
|
|
16147
16251
|
setMaskVisibleState(false);
|
|
@@ -16310,7 +16414,12 @@ this.primereact.dialog = (function (exports, React, PrimeReact, componentbase, c
|
|
|
16310
16414
|
type: 'button',
|
|
16311
16415
|
className: cx('closeButton'),
|
|
16312
16416
|
'aria-label': ariaLabel,
|
|
16313
|
-
onClick: onClose
|
|
16417
|
+
onClick: onClose,
|
|
16418
|
+
onKeyDown: function onKeyDown(ev) {
|
|
16419
|
+
if (ev.key !== 'Escape') {
|
|
16420
|
+
ev.stopPropagation();
|
|
16421
|
+
}
|
|
16422
|
+
}
|
|
16314
16423
|
}, ptm('closeButton'));
|
|
16315
16424
|
return /*#__PURE__*/React__namespace.createElement("button", closeButtonProps, headerCloseIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
16316
16425
|
}
|
|
@@ -17321,7 +17430,7 @@ this.primereact.paginator = (function (exports, React, api, componentbase, hooks
|
|
|
17321
17430
|
},
|
|
17322
17431
|
page: pageLink - 1,
|
|
17323
17432
|
currentPage: props.page,
|
|
17324
|
-
totalPages: props.
|
|
17433
|
+
totalPages: props.totalPages,
|
|
17325
17434
|
ariaLabel: api.ariaLabel('pageLabel', {
|
|
17326
17435
|
page: pageLink
|
|
17327
17436
|
}),
|
|
@@ -18056,8 +18165,15 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
18056
18165
|
var mergeProps = hooks.useMergeProps();
|
|
18057
18166
|
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
18058
18167
|
var props = CheckboxBase.getProps(inProps, context);
|
|
18168
|
+
var _React$useState = React__namespace.useState(false),
|
|
18169
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
18170
|
+
focusedState = _React$useState2[0],
|
|
18171
|
+
setFocusedState = _React$useState2[1];
|
|
18059
18172
|
var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
|
|
18060
18173
|
props: props,
|
|
18174
|
+
state: {
|
|
18175
|
+
focused: focusedState
|
|
18176
|
+
},
|
|
18061
18177
|
context: {
|
|
18062
18178
|
checked: props.checked === props.trueValue,
|
|
18063
18179
|
disabled: props.disabled
|
|
@@ -18111,10 +18227,12 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
18111
18227
|
};
|
|
18112
18228
|
var _onFocus = function onFocus() {
|
|
18113
18229
|
var _props$onFocus;
|
|
18230
|
+
setFocusedState(true);
|
|
18114
18231
|
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
|
|
18115
18232
|
};
|
|
18116
18233
|
var _onBlur = function onBlur() {
|
|
18117
18234
|
var _props$onBlur;
|
|
18235
|
+
setFocusedState(false);
|
|
18118
18236
|
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
|
|
18119
18237
|
};
|
|
18120
18238
|
React__namespace.useImperativeHandle(ref, function () {
|
|
@@ -18281,14 +18399,33 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
18281
18399
|
});
|
|
18282
18400
|
}
|
|
18283
18401
|
};
|
|
18402
|
+
var findNextNonDroppointSibling = function findNextNonDroppointSibling(nodeElement) {
|
|
18403
|
+
var nextNodeSibling = nodeElement.nextSibling;
|
|
18404
|
+
if (nextNodeSibling) {
|
|
18405
|
+
var isNextDropPoint = nextNodeSibling.getAttribute('data-pc-section') === 'droppoint';
|
|
18406
|
+
if (isNextDropPoint) {
|
|
18407
|
+
//skip drop point and return next elemnt
|
|
18408
|
+
if (nextNodeSibling.nextElementSibling) {
|
|
18409
|
+
return nextNodeSibling.nextElementSibling;
|
|
18410
|
+
} else {
|
|
18411
|
+
//nothing after droppoint go outside
|
|
18412
|
+
return null;
|
|
18413
|
+
}
|
|
18414
|
+
}
|
|
18415
|
+
return nextNodeSibling;
|
|
18416
|
+
}
|
|
18417
|
+
return null;
|
|
18418
|
+
};
|
|
18284
18419
|
var findNextSiblingOfAncestor = function findNextSiblingOfAncestor(nodeElement) {
|
|
18285
18420
|
var parentNodeElement = getParentNodeElement(nodeElement);
|
|
18286
|
-
return parentNodeElement ? parentNodeElement
|
|
18421
|
+
return parentNodeElement ? findNextNonDroppointSibling(parentNodeElement) || findNextSiblingOfAncestor(parentNodeElement) : null;
|
|
18287
18422
|
};
|
|
18288
18423
|
var findLastVisibleDescendant = function findLastVisibleDescendant(nodeElement) {
|
|
18289
18424
|
var childrenListElement = nodeElement.children[1];
|
|
18290
18425
|
if (childrenListElement) {
|
|
18291
|
-
|
|
18426
|
+
//skip droppoint
|
|
18427
|
+
var offset = props.dragdropScope ? 2 : 1;
|
|
18428
|
+
var lastChildElement = childrenListElement.children[childrenListElement.children.length - offset];
|
|
18292
18429
|
return findLastVisibleDescendant(lastChildElement);
|
|
18293
18430
|
}
|
|
18294
18431
|
return nodeElement;
|
|
@@ -18492,10 +18629,11 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
18492
18629
|
var onArrowDown = function onArrowDown(event) {
|
|
18493
18630
|
var nodeElement = event.target.getAttribute('data-pc-section') === 'toggler' ? event.target.closest('[role="treeitem"]') : event.target;
|
|
18494
18631
|
var listElement = nodeElement.children[1];
|
|
18632
|
+
var nextElement = getNextElement(nodeElement);
|
|
18495
18633
|
if (listElement) {
|
|
18496
|
-
focusRowChange(nodeElement, listElement.children[0]);
|
|
18497
|
-
} else if (
|
|
18498
|
-
focusRowChange(nodeElement,
|
|
18634
|
+
focusRowChange(nodeElement, props.dragdropScope ? listElement.children[1] : listElement.children[0]);
|
|
18635
|
+
} else if (nextElement) {
|
|
18636
|
+
focusRowChange(nodeElement, nextElement);
|
|
18499
18637
|
} else {
|
|
18500
18638
|
var nextSiblingAncestor = findNextSiblingOfAncestor(nodeElement);
|
|
18501
18639
|
if (nextSiblingAncestor) {
|
|
@@ -18504,10 +18642,25 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
18504
18642
|
}
|
|
18505
18643
|
event.preventDefault();
|
|
18506
18644
|
};
|
|
18645
|
+
var getPreviousElement = function getPreviousElement(element) {
|
|
18646
|
+
var prev = element.previousElementSibling;
|
|
18647
|
+
if (prev) {
|
|
18648
|
+
return !props.dragdropScope ? prev : prev.previousElementSibling;
|
|
18649
|
+
}
|
|
18650
|
+
return null;
|
|
18651
|
+
};
|
|
18652
|
+
var getNextElement = function getNextElement(element) {
|
|
18653
|
+
var next = element.nextElementSibling;
|
|
18654
|
+
if (next) {
|
|
18655
|
+
return !props.dragdropScope ? next : next.nextElementSibling;
|
|
18656
|
+
}
|
|
18657
|
+
return null;
|
|
18658
|
+
};
|
|
18507
18659
|
var onArrowUp = function onArrowUp(event) {
|
|
18508
18660
|
var nodeElement = event.target;
|
|
18509
|
-
|
|
18510
|
-
|
|
18661
|
+
var previous = getPreviousElement(nodeElement);
|
|
18662
|
+
if (previous) {
|
|
18663
|
+
focusRowChange(nodeElement, previous, findLastVisibleDescendant(previous));
|
|
18511
18664
|
} else {
|
|
18512
18665
|
var parentNodeElement = getParentNodeElement(nodeElement);
|
|
18513
18666
|
if (parentNodeElement) {
|
|
@@ -18695,18 +18848,18 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
18695
18848
|
}
|
|
18696
18849
|
};
|
|
18697
18850
|
var onDropPointDragOver = function onDropPointDragOver(event) {
|
|
18698
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
18851
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
18699
18852
|
event.dataTransfer.dropEffect = 'move';
|
|
18700
18853
|
event.preventDefault();
|
|
18701
18854
|
}
|
|
18702
18855
|
};
|
|
18703
18856
|
var onDropPointDragEnter = function onDropPointDragEnter(event) {
|
|
18704
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
18857
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
18705
18858
|
utils.DomHandler.addClass(event.target, 'p-treenode-droppoint-active');
|
|
18706
18859
|
}
|
|
18707
18860
|
};
|
|
18708
18861
|
var onDropPointDragLeave = function onDropPointDragLeave(event) {
|
|
18709
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
18862
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
18710
18863
|
utils.DomHandler.removeClass(event.target, 'p-treenode-droppoint-active');
|
|
18711
18864
|
}
|
|
18712
18865
|
};
|
|
@@ -18725,19 +18878,19 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
18725
18878
|
}
|
|
18726
18879
|
};
|
|
18727
18880
|
var onDragOver = function onDragOver(event) {
|
|
18728
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
18881
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
18729
18882
|
event.dataTransfer.dropEffect = 'move';
|
|
18730
18883
|
event.preventDefault();
|
|
18731
18884
|
event.stopPropagation();
|
|
18732
18885
|
}
|
|
18733
18886
|
};
|
|
18734
18887
|
var onDragEnter = function onDragEnter(event) {
|
|
18735
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
18888
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
18736
18889
|
utils.DomHandler.addClass(contentRef.current, 'p-treenode-dragover');
|
|
18737
18890
|
}
|
|
18738
18891
|
};
|
|
18739
18892
|
var onDragLeave = function onDragLeave(event) {
|
|
18740
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
18893
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
18741
18894
|
var rect = event.currentTarget.getBoundingClientRect();
|
|
18742
18895
|
if (event.nativeEvent.x > rect.left + rect.width || event.nativeEvent.x < rect.left || event.nativeEvent.y >= Math.floor(rect.top + rect.height) || event.nativeEvent.y < rect.top) {
|
|
18743
18896
|
utils.DomHandler.removeClass(contentRef.current, 'p-treenode-dragover');
|
|
@@ -19054,7 +19207,9 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
19054
19207
|
if (nodeElement) {
|
|
19055
19208
|
nodeElement.tabIndex = '-1';
|
|
19056
19209
|
}
|
|
19057
|
-
|
|
19210
|
+
|
|
19211
|
+
//skip droppoint
|
|
19212
|
+
var childElement = props.dragdropScope ? listElement.children[1] : listElement.children[0];
|
|
19058
19213
|
if (childElement) {
|
|
19059
19214
|
childElement.tabIndex = '0';
|
|
19060
19215
|
childElement.focus();
|