primereact 10.6.6 → 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/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/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 +30 -14
- package/core/core.js +122 -31
- package/core/core.min.js +9 -9
- 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 +119 -72
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +1 -1
- package/datatable/datatable.esm.js +119 -72
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +119 -72
- package/datatable/datatable.min.js +1 -1
- package/dialog/dialog.cjs.js +15 -2
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +15 -2
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +15 -2
- package/dialog/dialog.min.js +1 -1
- package/dropdown/dropdown.cjs.js +8 -6
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +8 -6
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +8 -6
- 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/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 +4 -3
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +4 -3
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +4 -3
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +1 -2
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +1 -2
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +1 -2
- package/inputotp/inputotp.min.js +1 -1
- package/inputtext/inputtext.d.ts +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 +3 -3
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.d.ts +3 -10
- package/metergroup/metergroup.esm.js +3 -3
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +3 -3
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/multiselect.cjs.js +9 -0
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +9 -0
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +9 -0
- 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/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/primereact.all.cjs.js +281 -195
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +281 -195
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +281 -195
- 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/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-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-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-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-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-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-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-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-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-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-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-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-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-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/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-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-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-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/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-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-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-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/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/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-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/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/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-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/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 -1
- package/tabview/tabview.d.ts +1 -1
- package/tabview/tabview.esm.js +0 -1
- package/tabview/tabview.js +0 -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 +10 -1
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +11 -2
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +10 -1
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +5 -0
- package/tree/tree.cjs.js +15 -6
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +15 -6
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +15 -6
- 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 +9 -2
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +9 -2
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +9 -2
- 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.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/web-types.json +12 -3
|
@@ -96,32 +96,26 @@ var CSSTransition = /*#__PURE__*/React__namespace.forwardRef(function (inProps,
|
|
|
96
96
|
props.onEnter && props.onEnter(node, isAppearing); // component
|
|
97
97
|
props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
|
|
98
98
|
};
|
|
99
|
-
|
|
100
99
|
var onEntering = function onEntering(node, isAppearing) {
|
|
101
100
|
props.onEntering && props.onEntering(node, isAppearing); // component
|
|
102
101
|
props.options && props.options.onEntering && props.options.onEntering(node, isAppearing); // user option
|
|
103
102
|
};
|
|
104
|
-
|
|
105
103
|
var onEntered = function onEntered(node, isAppearing) {
|
|
106
104
|
props.onEntered && props.onEntered(node, isAppearing); // component
|
|
107
105
|
props.options && props.options.onEntered && props.options.onEntered(node, isAppearing); // user option
|
|
108
106
|
};
|
|
109
|
-
|
|
110
107
|
var onExit = function onExit(node) {
|
|
111
108
|
props.onExit && props.onExit(node); // component
|
|
112
109
|
props.options && props.options.onExit && props.options.onExit(node); // user option
|
|
113
110
|
};
|
|
114
|
-
|
|
115
111
|
var onExiting = function onExiting(node) {
|
|
116
112
|
props.onExiting && props.onExiting(node); // component
|
|
117
113
|
props.options && props.options.onExiting && props.options.onExiting(node); // user option
|
|
118
114
|
};
|
|
119
|
-
|
|
120
115
|
var onExited = function onExited(node) {
|
|
121
116
|
props.onExited && props.onExited(node); // component
|
|
122
117
|
props.options && props.options.onExited && props.options.onExited(node); // user option
|
|
123
118
|
};
|
|
124
|
-
|
|
125
119
|
hooks.useUpdateEffect(function () {
|
|
126
120
|
if (disabled) {
|
|
127
121
|
// no animation
|
|
@@ -69,32 +69,26 @@ var CSSTransition = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
69
69
|
props.onEnter && props.onEnter(node, isAppearing); // component
|
|
70
70
|
props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
|
|
71
71
|
};
|
|
72
|
-
|
|
73
72
|
var onEntering = function onEntering(node, isAppearing) {
|
|
74
73
|
props.onEntering && props.onEntering(node, isAppearing); // component
|
|
75
74
|
props.options && props.options.onEntering && props.options.onEntering(node, isAppearing); // user option
|
|
76
75
|
};
|
|
77
|
-
|
|
78
76
|
var onEntered = function onEntered(node, isAppearing) {
|
|
79
77
|
props.onEntered && props.onEntered(node, isAppearing); // component
|
|
80
78
|
props.options && props.options.onEntered && props.options.onEntered(node, isAppearing); // user option
|
|
81
79
|
};
|
|
82
|
-
|
|
83
80
|
var onExit = function onExit(node) {
|
|
84
81
|
props.onExit && props.onExit(node); // component
|
|
85
82
|
props.options && props.options.onExit && props.options.onExit(node); // user option
|
|
86
83
|
};
|
|
87
|
-
|
|
88
84
|
var onExiting = function onExiting(node) {
|
|
89
85
|
props.onExiting && props.onExiting(node); // component
|
|
90
86
|
props.options && props.options.onExiting && props.options.onExiting(node); // user option
|
|
91
87
|
};
|
|
92
|
-
|
|
93
88
|
var onExited = function onExited(node) {
|
|
94
89
|
props.onExited && props.onExited(node); // component
|
|
95
90
|
props.options && props.options.onExited && props.options.onExited(node); // user option
|
|
96
91
|
};
|
|
97
|
-
|
|
98
92
|
useUpdateEffect(function () {
|
|
99
93
|
if (disabled) {
|
|
100
94
|
// no animation
|
|
@@ -89,32 +89,26 @@ this.primereact.csstransition = (function (exports, React, reactTransitionGroup,
|
|
|
89
89
|
props.onEnter && props.onEnter(node, isAppearing); // component
|
|
90
90
|
props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
|
|
91
91
|
};
|
|
92
|
-
|
|
93
92
|
var onEntering = function onEntering(node, isAppearing) {
|
|
94
93
|
props.onEntering && props.onEntering(node, isAppearing); // component
|
|
95
94
|
props.options && props.options.onEntering && props.options.onEntering(node, isAppearing); // user option
|
|
96
95
|
};
|
|
97
|
-
|
|
98
96
|
var onEntered = function onEntered(node, isAppearing) {
|
|
99
97
|
props.onEntered && props.onEntered(node, isAppearing); // component
|
|
100
98
|
props.options && props.options.onEntered && props.options.onEntered(node, isAppearing); // user option
|
|
101
99
|
};
|
|
102
|
-
|
|
103
100
|
var onExit = function onExit(node) {
|
|
104
101
|
props.onExit && props.onExit(node); // component
|
|
105
102
|
props.options && props.options.onExit && props.options.onExit(node); // user option
|
|
106
103
|
};
|
|
107
|
-
|
|
108
104
|
var onExiting = function onExiting(node) {
|
|
109
105
|
props.onExiting && props.onExiting(node); // component
|
|
110
106
|
props.options && props.options.onExiting && props.options.onExiting(node); // user option
|
|
111
107
|
};
|
|
112
|
-
|
|
113
108
|
var onExited = function onExited(node) {
|
|
114
109
|
props.onExited && props.onExited(node); // component
|
|
115
110
|
props.options && props.options.onExited && props.options.onExited(node); // user option
|
|
116
111
|
};
|
|
117
|
-
|
|
118
112
|
hooks.useUpdateEffect(function () {
|
|
119
113
|
if (disabled) {
|
|
120
114
|
// no animation
|
|
@@ -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',
|
|
@@ -720,8 +733,15 @@ var Checkbox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
720
733
|
var mergeProps = hooks.useMergeProps();
|
|
721
734
|
var context = React__namespace.useContext(PrimeReact$1.PrimeReactContext);
|
|
722
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];
|
|
723
740
|
var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
|
|
724
741
|
props: props,
|
|
742
|
+
state: {
|
|
743
|
+
focused: focusedState
|
|
744
|
+
},
|
|
725
745
|
context: {
|
|
726
746
|
checked: props.checked === props.trueValue,
|
|
727
747
|
disabled: props.disabled
|
|
@@ -775,10 +795,12 @@ var Checkbox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
775
795
|
};
|
|
776
796
|
var _onFocus = function onFocus() {
|
|
777
797
|
var _props$onFocus;
|
|
798
|
+
setFocusedState(true);
|
|
778
799
|
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
|
|
779
800
|
};
|
|
780
801
|
var _onBlur = function onBlur() {
|
|
781
802
|
var _props$onBlur;
|
|
803
|
+
setFocusedState(false);
|
|
782
804
|
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
|
|
783
805
|
};
|
|
784
806
|
React__namespace.useImperativeHandle(ref, function () {
|
|
@@ -941,9 +963,9 @@ var classes = {
|
|
|
941
963
|
'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled'
|
|
942
964
|
});
|
|
943
965
|
},
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
966
|
+
radiobuttonbox: 'p-radiobutton-box',
|
|
967
|
+
radiobuttoninput: 'p-radiobutton-input',
|
|
968
|
+
radiobuttonicon: 'p-radiobutton-icon'
|
|
947
969
|
};
|
|
948
970
|
var RadioButtonBase = componentbase.ComponentBase.extend({
|
|
949
971
|
defaultProps: {
|
|
@@ -1082,7 +1104,10 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
|
|
|
1082
1104
|
})),
|
|
1083
1105
|
style: props.style,
|
|
1084
1106
|
'data-p-checked': props.checked
|
|
1085
|
-
},
|
|
1107
|
+
}, otherProps, ptm('root'));
|
|
1108
|
+
delete rootProps.input;
|
|
1109
|
+
delete rootProps.box;
|
|
1110
|
+
delete rootProps.icon;
|
|
1086
1111
|
var createInputElement = function createInputElement() {
|
|
1087
1112
|
var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
|
|
1088
1113
|
var inputProps = mergeProps(_objectSpread$b({
|
|
@@ -1097,19 +1122,19 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
|
|
|
1097
1122
|
readOnly: props.readonly,
|
|
1098
1123
|
required: props.required,
|
|
1099
1124
|
tabIndex: props.tabIndex,
|
|
1100
|
-
className: cx('
|
|
1101
|
-
}, ariaProps), ptm('
|
|
1125
|
+
className: cx('radiobuttoninput')
|
|
1126
|
+
}, ariaProps), inProps.input, ptm('radiobuttoninput'));
|
|
1102
1127
|
return /*#__PURE__*/React__namespace.createElement("input", _extends({
|
|
1103
1128
|
ref: inputRef
|
|
1104
1129
|
}, inputProps));
|
|
1105
1130
|
};
|
|
1106
1131
|
var createBoxElement = function createBoxElement() {
|
|
1107
1132
|
var boxProps = mergeProps({
|
|
1108
|
-
className: cx('
|
|
1109
|
-
}, ptm('
|
|
1133
|
+
className: cx('radiobuttonbox')
|
|
1134
|
+
}, inProps.box, ptm('radiobuttonbox'));
|
|
1110
1135
|
var iconProps = mergeProps({
|
|
1111
|
-
className: cx('
|
|
1112
|
-
}, ptm('
|
|
1136
|
+
className: cx('radiobuttonicon')
|
|
1137
|
+
}, inProps.icon, ptm('radiobuttonicon'));
|
|
1113
1138
|
return /*#__PURE__*/React__namespace.createElement("div", boxProps, /*#__PURE__*/React__namespace.createElement("div", iconProps));
|
|
1114
1139
|
};
|
|
1115
1140
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
@@ -1157,7 +1182,11 @@ var RowRadioButton = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1157
1182
|
checked: props.checked,
|
|
1158
1183
|
disabled: props.disabled,
|
|
1159
1184
|
name: "".concat(props.tableSelector, "_dt_radio"),
|
|
1160
|
-
onChange: onChange
|
|
1185
|
+
onChange: onChange,
|
|
1186
|
+
input: getColumnPTOptions('radiobuttoninput'),
|
|
1187
|
+
box: getColumnPTOptions('radiobuttonbox'),
|
|
1188
|
+
icon: getColumnPTOptions('radiobuttonicon'),
|
|
1189
|
+
unstyled: props.unstyled
|
|
1161
1190
|
}, getColumnPTOptions('radiobutton'));
|
|
1162
1191
|
return /*#__PURE__*/React__namespace.createElement(RadioButton, radioButtonProps);
|
|
1163
1192
|
});
|
|
@@ -1183,7 +1212,6 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1183
1212
|
var keyHelperRef = React__namespace.useRef(null);
|
|
1184
1213
|
var overlayEventListener = React__namespace.useRef(null);
|
|
1185
1214
|
var selfClick = React__namespace.useRef(false);
|
|
1186
|
-
var tabindexTimeout = React__namespace.useRef(null);
|
|
1187
1215
|
var initFocusTimeout = React__namespace.useRef(null);
|
|
1188
1216
|
var editingRowDataStateRef = React__namespace.useRef(null);
|
|
1189
1217
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
@@ -1220,7 +1248,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1220
1248
|
var field = getColumnProp('field') || "field_".concat(props.index);
|
|
1221
1249
|
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
1222
1250
|
var isEditable = function isEditable() {
|
|
1223
|
-
return getColumnProp('editor');
|
|
1251
|
+
return utils.ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
|
|
1224
1252
|
};
|
|
1225
1253
|
var cellEditValidateOnClose = function cellEditValidateOnClose() {
|
|
1226
1254
|
return getColumnProp('cellEditValidateOnClose');
|
|
@@ -1364,14 +1392,11 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1364
1392
|
}
|
|
1365
1393
|
};
|
|
1366
1394
|
var focusOnElement = function focusOnElement() {
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
}
|
|
1373
|
-
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
1374
|
-
}, 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);
|
|
1375
1400
|
};
|
|
1376
1401
|
var focusOnInit = function focusOnInit() {
|
|
1377
1402
|
clearTimeout(initFocusTimeout.current);
|
|
@@ -1413,6 +1438,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1413
1438
|
if (currentData) {
|
|
1414
1439
|
utils.ObjectUtils.mutateFieldData(currentData, field, val);
|
|
1415
1440
|
}
|
|
1441
|
+
editingRowDataStateRef.current = editingRowData;
|
|
1416
1442
|
};
|
|
1417
1443
|
var _onClick = function onClick(event) {
|
|
1418
1444
|
var params = getCellCallbackParams(event);
|
|
@@ -1605,14 +1631,11 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1605
1631
|
}, [props.editMode, props.editing, editingState]);
|
|
1606
1632
|
hooks.useUpdateEffect(function () {
|
|
1607
1633
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
1608
|
-
|
|
1634
|
+
var editingRowData = getEditingRowData();
|
|
1635
|
+
setEditingRowDataState(editingRowData);
|
|
1636
|
+
editingRowDataStateRef.current = editingRowData;
|
|
1609
1637
|
}
|
|
1610
1638
|
}, [props.editingMeta]);
|
|
1611
|
-
React__namespace.useEffect(function () {
|
|
1612
|
-
if (editingRowDataState) {
|
|
1613
|
-
editingRowDataStateRef.current = editingRowDataState;
|
|
1614
|
-
}
|
|
1615
|
-
}, [editingRowDataState]);
|
|
1616
1639
|
React__namespace.useEffect(function () {
|
|
1617
1640
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
1618
1641
|
var callbackParams = getCellCallbackParams();
|
|
@@ -1687,7 +1710,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1687
1710
|
if (showSelection) {
|
|
1688
1711
|
var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
|
|
1689
1712
|
var ariaLabelText = utils.ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
|
|
1690
|
-
label = "".concat(props.selected ? PrimeReact$1.ariaLabel('
|
|
1713
|
+
label = "".concat(props.selected ? PrimeReact$1.ariaLabel('unselectRow') : PrimeReact$1.ariaLabel('selectRow'), " ").concat(ariaLabelText);
|
|
1691
1714
|
}
|
|
1692
1715
|
content = showSelection && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React__namespace.createElement(RowRadioButton, {
|
|
1693
1716
|
hostName: props.hostName,
|
|
@@ -1702,7 +1725,8 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1702
1725
|
tableSelector: props.tableSelector,
|
|
1703
1726
|
ariaLabel: label,
|
|
1704
1727
|
ptCallbacks: props.ptCallbacks,
|
|
1705
|
-
metaData: props.metaData
|
|
1728
|
+
metaData: props.metaData,
|
|
1729
|
+
unstyled: props.unstyled
|
|
1706
1730
|
}), selectionMode === 'multiple' && /*#__PURE__*/React__namespace.createElement(RowCheckbox, {
|
|
1707
1731
|
hostName: props.hostName,
|
|
1708
1732
|
column: props.column,
|
|
@@ -1716,7 +1740,8 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1716
1740
|
ariaLabel: label,
|
|
1717
1741
|
checkIcon: props.checkIcon,
|
|
1718
1742
|
ptCallbacks: props.ptCallbacks,
|
|
1719
|
-
metaData: props.metaData
|
|
1743
|
+
metaData: props.metaData,
|
|
1744
|
+
unstyled: props.unstyled
|
|
1720
1745
|
}));
|
|
1721
1746
|
} else if (rowReorder) {
|
|
1722
1747
|
var showReorder = props.showRowReorderElement ? props.showRowReorderElement(props.rowData, {
|
|
@@ -1879,7 +1904,6 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
1879
1904
|
}, editorKeyHelperProps), /*#__PURE__*/React__namespace.createElement("span", editorKeyHelperLabelProps));
|
|
1880
1905
|
/* eslint-enable */
|
|
1881
1906
|
}
|
|
1882
|
-
|
|
1883
1907
|
var bodyCellProps = mergeProps({
|
|
1884
1908
|
style: style,
|
|
1885
1909
|
className: utils.classNames(bodyClassName, getColumnProp('className'), cellClassName, cx('bodyCell', {
|
|
@@ -2363,7 +2387,8 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
2363
2387
|
value: props.value,
|
|
2364
2388
|
virtualScrollerOptions: props.virtualScrollerOptions,
|
|
2365
2389
|
ptCallbacks: props.ptCallbacks,
|
|
2366
|
-
metaData: props.metaData
|
|
2390
|
+
metaData: props.metaData,
|
|
2391
|
+
unstyled: props.unstyled
|
|
2367
2392
|
});
|
|
2368
2393
|
}
|
|
2369
2394
|
return null;
|
|
@@ -2442,7 +2467,6 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
2442
2467
|
}, getBodyRowPTOptions('bodyRow'), {
|
|
2443
2468
|
className: utils.classNames(rowClassName) // #5983 must be last so all unstyled merging takes place first
|
|
2444
2469
|
});
|
|
2445
|
-
|
|
2446
2470
|
return /*#__PURE__*/React__namespace.createElement("tr", rowProps, content);
|
|
2447
2471
|
});
|
|
2448
2472
|
BodyRow.displayName = 'BodyRow';
|
|
@@ -3150,7 +3174,6 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
3150
3174
|
event.dataTransfer.setData('text', 'b'); // For firefox
|
|
3151
3175
|
}
|
|
3152
3176
|
};
|
|
3153
|
-
|
|
3154
3177
|
var onRowDragOver = function onRowDragOver(e) {
|
|
3155
3178
|
var event = e.originalEvent,
|
|
3156
3179
|
index = e.index;
|
|
@@ -3372,7 +3395,8 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
3372
3395
|
expandedRowIcon: props.expandedRowIcon,
|
|
3373
3396
|
collapsedRowIcon: props.collapsedRowIcon,
|
|
3374
3397
|
ptCallbacks: props.ptCallbacks,
|
|
3375
|
-
metaData: props.metaData
|
|
3398
|
+
metaData: props.metaData,
|
|
3399
|
+
unstyled: props.unstyled
|
|
3376
3400
|
});
|
|
3377
3401
|
var options = {
|
|
3378
3402
|
index: rowIndex,
|
|
@@ -3477,7 +3501,8 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
3477
3501
|
value: props.value,
|
|
3478
3502
|
virtualScrollerOptions: props.virtualScrollerOptions,
|
|
3479
3503
|
ptCallbacks: props.ptCallbacks,
|
|
3480
|
-
metaData: props.metaData
|
|
3504
|
+
metaData: props.metaData,
|
|
3505
|
+
unstyled: props.unstyled
|
|
3481
3506
|
});
|
|
3482
3507
|
}
|
|
3483
3508
|
};
|
|
@@ -4074,6 +4099,15 @@ var FocusTrap = /*#__PURE__*/React__default["default"].memo( /*#__PURE__*/React_
|
|
|
4074
4099
|
var getTarget = function getTarget() {
|
|
4075
4100
|
return firstFocusableElementRef.current && firstFocusableElementRef.current.parentElement;
|
|
4076
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
|
+
*/
|
|
4077
4111
|
var setAutoFocus = function setAutoFocus(target) {
|
|
4078
4112
|
var _ref = props || {},
|
|
4079
4113
|
_ref$autoFocusSelecto = _ref.autoFocusSelector,
|
|
@@ -4082,7 +4116,9 @@ var FocusTrap = /*#__PURE__*/React__default["default"].memo( /*#__PURE__*/React_
|
|
|
4082
4116
|
firstFocusableSelector = _ref$firstFocusableSe === void 0 ? '' : _ref$firstFocusableSe,
|
|
4083
4117
|
_ref$autoFocus = _ref.autoFocus,
|
|
4084
4118
|
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
|
|
4085
|
-
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);
|
|
4086
4122
|
autoFocus && !focusableElement && (focusableElement = utils.DomHandler.getFirstFocusableElement(target, getComputedSelector(firstFocusableSelector)));
|
|
4087
4123
|
utils.DomHandler.focus(focusableElement);
|
|
4088
4124
|
};
|
|
@@ -5198,7 +5234,7 @@ var HeaderCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
5198
5234
|
column: props.column
|
|
5199
5235
|
});
|
|
5200
5236
|
};
|
|
5201
|
-
var
|
|
5237
|
+
var onResizeStart = function onResizeStart(event) {
|
|
5202
5238
|
props.onColumnResizeStart({
|
|
5203
5239
|
originalEvent: event,
|
|
5204
5240
|
column: props.column
|
|
@@ -5235,7 +5271,10 @@ var HeaderCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
5235
5271
|
var columnResizerProps = mergeProps({
|
|
5236
5272
|
className: cx('columnResizer'),
|
|
5237
5273
|
onMouseDown: function onMouseDown(e) {
|
|
5238
|
-
return
|
|
5274
|
+
return onResizeStart(e);
|
|
5275
|
+
},
|
|
5276
|
+
onTouchStart: function onTouchStart(e) {
|
|
5277
|
+
return onResizeStart(e);
|
|
5239
5278
|
},
|
|
5240
5279
|
onClick: function onClick(e) {
|
|
5241
5280
|
return onResizerClick(e);
|
|
@@ -5295,7 +5334,8 @@ var HeaderCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
5295
5334
|
onChange: props.onColumnCheckboxChange,
|
|
5296
5335
|
disabled: props.empty,
|
|
5297
5336
|
ptCallbacks: ptCallbacks,
|
|
5298
|
-
metaData: parentMetaData
|
|
5337
|
+
metaData: parentMetaData,
|
|
5338
|
+
unstyled: props.unstyled
|
|
5299
5339
|
});
|
|
5300
5340
|
}
|
|
5301
5341
|
return null;
|
|
@@ -5653,19 +5693,6 @@ var TableHeader = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
5653
5693
|
});
|
|
5654
5694
|
TableHeader.displayName = 'TableHeader';
|
|
5655
5695
|
|
|
5656
|
-
var getStorage = function getStorage(stateStorageProp) {
|
|
5657
|
-
switch (stateStorageProp) {
|
|
5658
|
-
case 'local':
|
|
5659
|
-
return window.localStorage;
|
|
5660
|
-
case 'session':
|
|
5661
|
-
return window.sessionStorage;
|
|
5662
|
-
case 'custom':
|
|
5663
|
-
return null;
|
|
5664
|
-
default:
|
|
5665
|
-
throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
|
|
5666
|
-
}
|
|
5667
|
-
};
|
|
5668
|
-
|
|
5669
5696
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5670
5697
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5671
5698
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
@@ -5774,29 +5801,40 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
5774
5801
|
setRowsState(props.rows);
|
|
5775
5802
|
setD_rowsState(props.rows);
|
|
5776
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
|
+
};
|
|
5777
5810
|
var _useEventListener = hooks.useEventListener({
|
|
5778
5811
|
type: 'mousemove',
|
|
5779
|
-
listener:
|
|
5780
|
-
if (columnResizing.current) {
|
|
5781
|
-
onColumnResize(event);
|
|
5782
|
-
}
|
|
5783
|
-
}
|
|
5812
|
+
listener: columnResizeStartListener
|
|
5784
5813
|
}),
|
|
5785
5814
|
_useEventListener2 = _slicedToArray(_useEventListener, 2),
|
|
5786
5815
|
bindDocumentMouseMoveListener = _useEventListener2[0],
|
|
5787
5816
|
unbindDocumentMouseMoveListener = _useEventListener2[1];
|
|
5788
5817
|
var _useEventListener3 = hooks.useEventListener({
|
|
5789
5818
|
type: 'mouseup',
|
|
5790
|
-
listener:
|
|
5791
|
-
if (columnResizing.current) {
|
|
5792
|
-
columnResizing.current = false;
|
|
5793
|
-
onColumnResizeEnd();
|
|
5794
|
-
}
|
|
5795
|
-
}
|
|
5819
|
+
listener: columnResizeEndListener
|
|
5796
5820
|
}),
|
|
5797
5821
|
_useEventListener4 = _slicedToArray(_useEventListener3, 2),
|
|
5798
5822
|
bindDocumentMouseUpListener = _useEventListener4[0],
|
|
5799
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];
|
|
5800
5838
|
var isCustomStateStorage = function isCustomStateStorage() {
|
|
5801
5839
|
return props.stateStorage === 'custom';
|
|
5802
5840
|
};
|
|
@@ -6132,7 +6170,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
6132
6170
|
resizeColumn.current = column;
|
|
6133
6171
|
resizeColumnElement.current = event.currentTarget.parentElement;
|
|
6134
6172
|
columnResizing.current = true;
|
|
6135
|
-
lastResizeHelperX.current = event.pageX - containerLeft + elementRef.current.scrollLeft;
|
|
6173
|
+
lastResizeHelperX.current = (event.type === 'touchstart' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft;
|
|
6136
6174
|
bindColumnResizeEvents();
|
|
6137
6175
|
};
|
|
6138
6176
|
var onColumnResize = function onColumnResize(event) {
|
|
@@ -6140,7 +6178,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
6140
6178
|
elementRef.current.setAttribute('data-p-unselectable-text', true);
|
|
6141
6179
|
resizeHelperRef.current.style.height = elementRef.current.offsetHeight + 'px';
|
|
6142
6180
|
resizeHelperRef.current.style.top = 0 + 'px';
|
|
6143
|
-
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';
|
|
6144
6182
|
resizeHelperRef.current.style.display = 'block';
|
|
6145
6183
|
};
|
|
6146
6184
|
var onColumnResizeEnd = function onColumnResizeEnd() {
|
|
@@ -6211,10 +6249,14 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
6211
6249
|
var bindColumnResizeEvents = function bindColumnResizeEvents() {
|
|
6212
6250
|
bindDocumentMouseMoveListener();
|
|
6213
6251
|
bindDocumentMouseUpListener();
|
|
6252
|
+
bindDocumentTouchMoveListener();
|
|
6253
|
+
bindDocumentTouchEndListener();
|
|
6214
6254
|
};
|
|
6215
6255
|
var unbindColumnResizeEvents = function unbindColumnResizeEvents() {
|
|
6216
6256
|
unbindDocumentMouseMoveListener();
|
|
6217
6257
|
unbindDocumentMouseUpListener();
|
|
6258
|
+
unbindDocumentTouchMoveListener();
|
|
6259
|
+
unbindDocumentTouchEndListener();
|
|
6218
6260
|
};
|
|
6219
6261
|
var onColumnHeaderMouseDown = function onColumnHeaderMouseDown(e) {
|
|
6220
6262
|
utils.DomHandler.clearSelection();
|
|
@@ -6280,7 +6322,6 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
6280
6322
|
draggedColumnElement.current = findParentHeader(event.currentTarget);
|
|
6281
6323
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
6282
6324
|
};
|
|
6283
|
-
|
|
6284
6325
|
var onColumnHeaderDragOver = function onColumnHeaderDragOver(e) {
|
|
6285
6326
|
var event = e.originalEvent,
|
|
6286
6327
|
column = e.column;
|
|
@@ -7045,7 +7086,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
7045
7086
|
className: ptCallbacks.cx('loadingIcon')
|
|
7046
7087
|
}, ptCallbacks.ptm('loadingIcon'));
|
|
7047
7088
|
var icon = props.loadingIcon || /*#__PURE__*/React__namespace.createElement(spinner.SpinnerIcon, _extends({}, loadingIconProps, {
|
|
7048
|
-
spin: true
|
|
7089
|
+
spin: true,
|
|
7090
|
+
unstyled: props.unstyled
|
|
7049
7091
|
}));
|
|
7050
7092
|
var loadingIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, loadingIconProps), {
|
|
7051
7093
|
props: props
|
|
@@ -7212,7 +7254,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
7212
7254
|
value: props.frozenValue,
|
|
7213
7255
|
virtualScrollerOptions: options,
|
|
7214
7256
|
ptCallbacks: ptCallbacks,
|
|
7215
|
-
metaData: metaData
|
|
7257
|
+
metaData: metaData,
|
|
7258
|
+
unstyled: props.unstyled
|
|
7216
7259
|
});
|
|
7217
7260
|
var body = /*#__PURE__*/React__namespace.createElement(TableBody, {
|
|
7218
7261
|
hostName: "DataTable",
|
|
@@ -7295,7 +7338,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
7295
7338
|
virtualScrollerContentRef: contentRef,
|
|
7296
7339
|
virtualScrollerOptions: options,
|
|
7297
7340
|
ptCallbacks: ptCallbacks,
|
|
7298
|
-
metaData: metaData
|
|
7341
|
+
metaData: metaData,
|
|
7342
|
+
unstyled: props.unstyled
|
|
7299
7343
|
});
|
|
7300
7344
|
var spacerBody = utils.ObjectUtils.isNotEmpty(spacerStyle) ? /*#__PURE__*/React__namespace.createElement(TableBody, {
|
|
7301
7345
|
hostName: "DataTable",
|
|
@@ -7304,7 +7348,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
7304
7348
|
},
|
|
7305
7349
|
className: "p-datatable-virtualscroller-spacer",
|
|
7306
7350
|
ptCallbacks: ptCallbacks,
|
|
7307
|
-
metaData: metaData
|
|
7351
|
+
metaData: metaData,
|
|
7352
|
+
unstyled: props.unstyled
|
|
7308
7353
|
}) : null;
|
|
7309
7354
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, frozenBody, body, spacerBody);
|
|
7310
7355
|
};
|
|
@@ -7316,7 +7361,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
7316
7361
|
columns: columns,
|
|
7317
7362
|
footerColumnGroup: props.footerColumnGroup,
|
|
7318
7363
|
ptCallbacks: ptCallbacks,
|
|
7319
|
-
metaData: metaData
|
|
7364
|
+
metaData: metaData,
|
|
7365
|
+
unstyled: props.unstyled
|
|
7320
7366
|
});
|
|
7321
7367
|
};
|
|
7322
7368
|
var createContent = function createContent(processedData, columns, selectionModeInColumn, empty) {
|
|
@@ -7351,6 +7397,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
7351
7397
|
parent: metaData
|
|
7352
7398
|
},
|
|
7353
7399
|
showSpacer: false,
|
|
7400
|
+
unstyled: props.unstyled,
|
|
7354
7401
|
contentTemplate: function contentTemplate(options) {
|
|
7355
7402
|
var ref = function ref(el) {
|
|
7356
7403
|
tableRef.current = el;
|