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
package/primereact.all.esm.js
CHANGED
|
@@ -218,7 +218,7 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
218
218
|
function DomHandler() {
|
|
219
219
|
_classCallCheck(this, DomHandler);
|
|
220
220
|
}
|
|
221
|
-
_createClass(DomHandler, null, [{
|
|
221
|
+
return _createClass(DomHandler, null, [{
|
|
222
222
|
key: "innerWidth",
|
|
223
223
|
value: function innerWidth(el) {
|
|
224
224
|
if (el) {
|
|
@@ -1448,7 +1448,6 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
1448
1448
|
return false;
|
|
1449
1449
|
}
|
|
1450
1450
|
}]);
|
|
1451
|
-
return DomHandler;
|
|
1452
1451
|
}();
|
|
1453
1452
|
/**
|
|
1454
1453
|
* All data- properties like data-test-id
|
|
@@ -1491,7 +1490,7 @@ var ObjectUtils = /*#__PURE__*/function () {
|
|
|
1491
1490
|
function ObjectUtils() {
|
|
1492
1491
|
_classCallCheck(this, ObjectUtils);
|
|
1493
1492
|
}
|
|
1494
|
-
_createClass(ObjectUtils, null, [{
|
|
1493
|
+
return _createClass(ObjectUtils, null, [{
|
|
1495
1494
|
key: "equals",
|
|
1496
1495
|
value: function equals(obj1, obj2, field) {
|
|
1497
1496
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') {
|
|
@@ -2013,7 +2012,6 @@ var ObjectUtils = /*#__PURE__*/function () {
|
|
|
2013
2012
|
}
|
|
2014
2013
|
}
|
|
2015
2014
|
}]);
|
|
2016
|
-
return ObjectUtils;
|
|
2017
2015
|
}();
|
|
2018
2016
|
|
|
2019
2017
|
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; }
|
|
@@ -2022,7 +2020,7 @@ var IconUtils = /*#__PURE__*/function () {
|
|
|
2022
2020
|
function IconUtils() {
|
|
2023
2021
|
_classCallCheck(this, IconUtils);
|
|
2024
2022
|
}
|
|
2025
|
-
_createClass(IconUtils, null, [{
|
|
2023
|
+
return _createClass(IconUtils, null, [{
|
|
2026
2024
|
key: "getJSXIcon",
|
|
2027
2025
|
value: function getJSXIcon(icon) {
|
|
2028
2026
|
var iconProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -2045,7 +2043,6 @@ var IconUtils = /*#__PURE__*/function () {
|
|
|
2045
2043
|
return content;
|
|
2046
2044
|
}
|
|
2047
2045
|
}]);
|
|
2048
|
-
return IconUtils;
|
|
2049
2046
|
}();
|
|
2050
2047
|
|
|
2051
2048
|
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; }
|
|
@@ -3848,7 +3845,8 @@ var ESC_KEY_HANDLING_PRIORITIES = {
|
|
|
3848
3845
|
PASSWORD: 700,
|
|
3849
3846
|
CASCADE_SELECT: 800,
|
|
3850
3847
|
SPLIT_BUTTON: 900,
|
|
3851
|
-
SPEED_DIAL: 1000
|
|
3848
|
+
SPEED_DIAL: 1000,
|
|
3849
|
+
TOOLTIP: 1200
|
|
3852
3850
|
};
|
|
3853
3851
|
|
|
3854
3852
|
/**
|
|
@@ -5018,32 +5016,26 @@ var CSSTransition = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5018
5016
|
props.onEnter && props.onEnter(node, isAppearing); // component
|
|
5019
5017
|
props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
|
|
5020
5018
|
};
|
|
5021
|
-
|
|
5022
5019
|
var onEntering = function onEntering(node, isAppearing) {
|
|
5023
5020
|
props.onEntering && props.onEntering(node, isAppearing); // component
|
|
5024
5021
|
props.options && props.options.onEntering && props.options.onEntering(node, isAppearing); // user option
|
|
5025
5022
|
};
|
|
5026
|
-
|
|
5027
5023
|
var onEntered = function onEntered(node, isAppearing) {
|
|
5028
5024
|
props.onEntered && props.onEntered(node, isAppearing); // component
|
|
5029
5025
|
props.options && props.options.onEntered && props.options.onEntered(node, isAppearing); // user option
|
|
5030
5026
|
};
|
|
5031
|
-
|
|
5032
5027
|
var onExit = function onExit(node) {
|
|
5033
5028
|
props.onExit && props.onExit(node); // component
|
|
5034
5029
|
props.options && props.options.onExit && props.options.onExit(node); // user option
|
|
5035
5030
|
};
|
|
5036
|
-
|
|
5037
5031
|
var onExiting = function onExiting(node) {
|
|
5038
5032
|
props.onExiting && props.onExiting(node); // component
|
|
5039
5033
|
props.options && props.options.onExiting && props.options.onExiting(node); // user option
|
|
5040
5034
|
};
|
|
5041
|
-
|
|
5042
5035
|
var onExited = function onExited(node) {
|
|
5043
5036
|
props.onExited && props.onExited(node); // component
|
|
5044
5037
|
props.options && props.options.onExited && props.options.onExited(node); // user option
|
|
5045
5038
|
};
|
|
5046
|
-
|
|
5047
5039
|
useUpdateEffect(function () {
|
|
5048
5040
|
if (disabled) {
|
|
5049
5041
|
// no animation
|
|
@@ -5794,6 +5786,7 @@ var TooltipBase = ComponentBase.extend({
|
|
|
5794
5786
|
autoZIndex: true,
|
|
5795
5787
|
baseZIndex: 0,
|
|
5796
5788
|
className: null,
|
|
5789
|
+
closeOnEscape: false,
|
|
5797
5790
|
content: null,
|
|
5798
5791
|
disabled: false,
|
|
5799
5792
|
event: null,
|
|
@@ -5864,6 +5857,13 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
5864
5857
|
useHandleStyle(TooltipBase.css.styles, isUnstyled, {
|
|
5865
5858
|
name: 'tooltip'
|
|
5866
5859
|
});
|
|
5860
|
+
useGlobalOnEscapeKey({
|
|
5861
|
+
callback: function callback() {
|
|
5862
|
+
hide();
|
|
5863
|
+
},
|
|
5864
|
+
when: props.closeOnEscape,
|
|
5865
|
+
priority: [ESC_KEY_HANDLING_PRIORITIES.TOOLTIP, 0]
|
|
5866
|
+
});
|
|
5867
5867
|
var elementRef = React.useRef(null);
|
|
5868
5868
|
var textRef = React.useRef(null);
|
|
5869
5869
|
var currentTargetRef = React.useRef(null);
|
|
@@ -6261,7 +6261,8 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
6261
6261
|
};
|
|
6262
6262
|
}, [visibleState]);
|
|
6263
6263
|
useUpdateEffect(function () {
|
|
6264
|
-
|
|
6264
|
+
var position = getPosition(currentTargetRef.current);
|
|
6265
|
+
if (visibleState && position !== 'mouse') {
|
|
6265
6266
|
applyDelay('updateDelay', function () {
|
|
6266
6267
|
updateText(currentTargetRef.current, function () {
|
|
6267
6268
|
align(currentTargetRef.current);
|
|
@@ -6484,6 +6485,7 @@ var Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (in
|
|
|
6484
6485
|
var rootProps = mergeProps({
|
|
6485
6486
|
ref: elementRef,
|
|
6486
6487
|
'aria-label': defaultAriaLabel,
|
|
6488
|
+
'data-pc-autofocus': props.autoFocus,
|
|
6487
6489
|
className: classNames(props.className, cx('root', {
|
|
6488
6490
|
size: size,
|
|
6489
6491
|
disabled: disabled
|
|
@@ -9810,24 +9812,33 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
9810
9812
|
newViewDate.setDate(1);
|
|
9811
9813
|
if (currentView === 'date') {
|
|
9812
9814
|
if (newViewDate.getMonth() === 0) {
|
|
9815
|
+
var newYear = decrementYear();
|
|
9813
9816
|
newViewDate.setMonth(11);
|
|
9814
|
-
newViewDate.setFullYear(
|
|
9817
|
+
newViewDate.setFullYear(newYear);
|
|
9818
|
+
props.onMonthChange && props.onMonthChange({
|
|
9819
|
+
month: 11,
|
|
9820
|
+
year: newYear
|
|
9821
|
+
});
|
|
9815
9822
|
setCurrentMonth(11);
|
|
9816
9823
|
} else {
|
|
9817
9824
|
newViewDate.setMonth(newViewDate.getMonth() - 1);
|
|
9825
|
+
props.onMonthChange && props.onMonthChange({
|
|
9826
|
+
month: currentMonth - 1,
|
|
9827
|
+
year: currentYear
|
|
9828
|
+
});
|
|
9818
9829
|
setCurrentMonth(function (prevState) {
|
|
9819
9830
|
return prevState - 1;
|
|
9820
9831
|
});
|
|
9821
9832
|
}
|
|
9822
9833
|
} else if (currentView === 'month') {
|
|
9823
|
-
var
|
|
9834
|
+
var _newYear = newViewDate.getFullYear() - 1;
|
|
9824
9835
|
if (props.yearNavigator) {
|
|
9825
9836
|
var minYear = parseInt(props.yearRange.split(':')[0], 10);
|
|
9826
|
-
if (
|
|
9827
|
-
|
|
9837
|
+
if (_newYear < minYear) {
|
|
9838
|
+
_newYear = minYear;
|
|
9828
9839
|
}
|
|
9829
9840
|
}
|
|
9830
|
-
newViewDate.setFullYear(
|
|
9841
|
+
newViewDate.setFullYear(_newYear);
|
|
9831
9842
|
}
|
|
9832
9843
|
if (currentView === 'month') {
|
|
9833
9844
|
newViewDate.setFullYear(decrementYear());
|
|
@@ -9846,24 +9857,33 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
9846
9857
|
newViewDate.setDate(1);
|
|
9847
9858
|
if (currentView === 'date') {
|
|
9848
9859
|
if (newViewDate.getMonth() === 11) {
|
|
9860
|
+
var newYear = incrementYear();
|
|
9849
9861
|
newViewDate.setMonth(0);
|
|
9850
|
-
newViewDate.setFullYear(
|
|
9862
|
+
newViewDate.setFullYear(newYear);
|
|
9863
|
+
props.onMonthChange && props.onMonthChange({
|
|
9864
|
+
month: 0,
|
|
9865
|
+
year: newYear
|
|
9866
|
+
});
|
|
9851
9867
|
setCurrentMonth(0);
|
|
9852
9868
|
} else {
|
|
9853
9869
|
newViewDate.setMonth(newViewDate.getMonth() + 1);
|
|
9870
|
+
props.onMonthChange && props.onMonthChange({
|
|
9871
|
+
month: currentMonth + 1,
|
|
9872
|
+
year: currentYear
|
|
9873
|
+
});
|
|
9854
9874
|
setCurrentMonth(function (prevState) {
|
|
9855
9875
|
return prevState + 1;
|
|
9856
9876
|
});
|
|
9857
9877
|
}
|
|
9858
9878
|
} else if (currentView === 'month') {
|
|
9859
|
-
var
|
|
9879
|
+
var _newYear2 = newViewDate.getFullYear() + 1;
|
|
9860
9880
|
if (props.yearNavigator) {
|
|
9861
9881
|
var maxYear = parseInt(props.yearRange.split(':')[1], 10);
|
|
9862
|
-
if (
|
|
9863
|
-
|
|
9882
|
+
if (_newYear2 > maxYear) {
|
|
9883
|
+
_newYear2 = maxYear;
|
|
9864
9884
|
}
|
|
9865
9885
|
}
|
|
9866
|
-
newViewDate.setFullYear(
|
|
9886
|
+
newViewDate.setFullYear(_newYear2);
|
|
9867
9887
|
}
|
|
9868
9888
|
if (currentView === 'month') {
|
|
9869
9889
|
newViewDate.setFullYear(incrementYear());
|
|
@@ -9901,6 +9921,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
9901
9921
|
var onMonthDropdownChange = function onMonthDropdownChange(event, value) {
|
|
9902
9922
|
var currentViewDate = getViewDate();
|
|
9903
9923
|
var newViewDate = cloneDate(currentViewDate);
|
|
9924
|
+
newViewDate.setDate(1);
|
|
9904
9925
|
newViewDate.setMonth(parseInt(value, 10));
|
|
9905
9926
|
updateViewDate(event, newViewDate);
|
|
9906
9927
|
};
|
|
@@ -10860,6 +10881,9 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
10860
10881
|
}
|
|
10861
10882
|
};
|
|
10862
10883
|
var onDateSelect = function onDateSelect(event, dateMeta, timeMeta) {
|
|
10884
|
+
if (!event) {
|
|
10885
|
+
return;
|
|
10886
|
+
}
|
|
10863
10887
|
if (props.disabled || !dateMeta.selectable) {
|
|
10864
10888
|
event.preventDefault();
|
|
10865
10889
|
return;
|
|
@@ -11484,28 +11508,44 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
11484
11508
|
return props.value != null && typeof props.value !== 'string';
|
|
11485
11509
|
};
|
|
11486
11510
|
var isMonthSelected = function isMonthSelected(month) {
|
|
11487
|
-
if (isComparable())
|
|
11488
|
-
|
|
11489
|
-
|
|
11490
|
-
return
|
|
11491
|
-
|
|
11492
|
-
|
|
11511
|
+
if (!isComparable()) return false;
|
|
11512
|
+
if (isMultipleSelection()) {
|
|
11513
|
+
return props.value.some(function (v) {
|
|
11514
|
+
return v.getMonth() === month && v.getFullYear() === currentYear;
|
|
11515
|
+
});
|
|
11516
|
+
} else if (isRangeSelection()) {
|
|
11517
|
+
var _props$value = _slicedToArray(props.value, 2),
|
|
11518
|
+
start = _props$value[0],
|
|
11519
|
+
end = _props$value[1];
|
|
11520
|
+
var startYear = start ? start.getFullYear() : null;
|
|
11521
|
+
var endYear = end ? end.getFullYear() : null;
|
|
11522
|
+
var startMonth = start ? start.getMonth() : null;
|
|
11523
|
+
var endMonth = end ? end.getMonth() : null;
|
|
11524
|
+
if (!end) {
|
|
11525
|
+
return startYear === currentYear && startMonth === month;
|
|
11526
|
+
} else {
|
|
11527
|
+
var currentDate = new Date(currentYear, month, 1);
|
|
11528
|
+
var startDate = new Date(startYear, startMonth, 1);
|
|
11529
|
+
var endDate = new Date(endYear, endMonth, 1);
|
|
11530
|
+
return currentDate >= startDate && currentDate <= endDate;
|
|
11493
11531
|
}
|
|
11494
|
-
|
|
11532
|
+
} else {
|
|
11533
|
+
return props.value.getMonth() === month && props.value.getFullYear() === currentYear;
|
|
11495
11534
|
}
|
|
11496
|
-
return false;
|
|
11497
11535
|
};
|
|
11498
11536
|
var isYearSelected = function isYearSelected(year) {
|
|
11499
|
-
if (isComparable())
|
|
11500
|
-
|
|
11501
|
-
|
|
11502
|
-
return
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
|
|
11537
|
+
if (!isComparable()) return false;
|
|
11538
|
+
if (isMultipleSelection()) {
|
|
11539
|
+
return props.value.some(function (v) {
|
|
11540
|
+
return v.getFullYear() === year;
|
|
11541
|
+
});
|
|
11542
|
+
} else if (isRangeSelection()) {
|
|
11543
|
+
var start = props.value[0] ? props.value[0].getFullYear() : null;
|
|
11544
|
+
var end = props.value[1] ? props.value[1].getFullYear() : null;
|
|
11545
|
+
return start === year || end === year || start < year && end > year;
|
|
11546
|
+
} else {
|
|
11547
|
+
return props.value.getFullYear() === year;
|
|
11507
11548
|
}
|
|
11508
|
-
return false;
|
|
11509
11549
|
};
|
|
11510
11550
|
var switchViewButtonDisabled = function switchViewButtonDisabled() {
|
|
11511
11551
|
return props.numberOfMonths > 1 || props.disabled;
|
|
@@ -11998,7 +12038,6 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
11998
12038
|
if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
|
|
11999
12039
|
throw new Error('Invalid date'); // E.g. 31/02/00
|
|
12000
12040
|
}
|
|
12001
|
-
|
|
12002
12041
|
return date;
|
|
12003
12042
|
};
|
|
12004
12043
|
var isInMinYear = function isInMinYear(viewDate) {
|
|
@@ -12101,26 +12140,25 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
12101
12140
|
isTypingRef.current = false;
|
|
12102
12141
|
|
|
12103
12142
|
// #3516 view date not updated when value set programatically
|
|
12104
|
-
if (!
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
}
|
|
12110
|
-
} else if (isRangeSelection()) {
|
|
12111
|
-
if (newDate.length) {
|
|
12112
|
-
var startDate = newDate[0];
|
|
12113
|
-
var endDate = newDate[1];
|
|
12114
|
-
viewDate = endDate || startDate;
|
|
12115
|
-
}
|
|
12143
|
+
if (!newDate) return;
|
|
12144
|
+
var viewDate = newDate;
|
|
12145
|
+
if (isMultipleSelection()) {
|
|
12146
|
+
if (newDate.length) {
|
|
12147
|
+
viewDate = newDate[newDate.length - 1];
|
|
12116
12148
|
}
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
|
|
12149
|
+
} else if (isRangeSelection()) {
|
|
12150
|
+
if (newDate.length) {
|
|
12151
|
+
var startDate = newDate[0];
|
|
12152
|
+
var endDate = newDate[1];
|
|
12153
|
+
viewDate = endDate || startDate;
|
|
12122
12154
|
}
|
|
12123
12155
|
}
|
|
12156
|
+
if (viewDate instanceof Date) {
|
|
12157
|
+
validateDate(viewDate);
|
|
12158
|
+
setViewDateState(viewDate);
|
|
12159
|
+
setCurrentMonth(viewDate.getMonth());
|
|
12160
|
+
setCurrentYear(viewDate.getFullYear());
|
|
12161
|
+
}
|
|
12124
12162
|
}
|
|
12125
12163
|
}, [props.value, visible]);
|
|
12126
12164
|
useUpdateEffect(function () {
|
|
@@ -14912,8 +14950,15 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
14912
14950
|
var mergeProps = useMergeProps();
|
|
14913
14951
|
var context = React.useContext(PrimeReactContext);
|
|
14914
14952
|
var props = CheckboxBase.getProps(inProps, context);
|
|
14953
|
+
var _React$useState = React.useState(false),
|
|
14954
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
14955
|
+
focusedState = _React$useState2[0],
|
|
14956
|
+
setFocusedState = _React$useState2[1];
|
|
14915
14957
|
var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
|
|
14916
14958
|
props: props,
|
|
14959
|
+
state: {
|
|
14960
|
+
focused: focusedState
|
|
14961
|
+
},
|
|
14917
14962
|
context: {
|
|
14918
14963
|
checked: props.checked === props.trueValue,
|
|
14919
14964
|
disabled: props.disabled
|
|
@@ -14967,10 +15012,12 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
14967
15012
|
};
|
|
14968
15013
|
var _onFocus = function onFocus() {
|
|
14969
15014
|
var _props$onFocus;
|
|
15015
|
+
setFocusedState(true);
|
|
14970
15016
|
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
|
|
14971
15017
|
};
|
|
14972
15018
|
var _onBlur = function onBlur() {
|
|
14973
15019
|
var _props$onBlur;
|
|
15020
|
+
setFocusedState(false);
|
|
14974
15021
|
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
|
|
14975
15022
|
};
|
|
14976
15023
|
React.useImperativeHandle(ref, function () {
|
|
@@ -15803,9 +15850,18 @@ var ColorPicker = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
15803
15850
|
ptm = _ColorPickerBase$setM.ptm,
|
|
15804
15851
|
cx = _ColorPickerBase$setM.cx,
|
|
15805
15852
|
isUnstyled = _ColorPickerBase$setM.isUnstyled;
|
|
15853
|
+
var isCloseOnEscape = overlayVisibleState && props.closeOnEscape;
|
|
15854
|
+
var overlayDisplayOrder = useDisplayOrder('overlay-panel', isCloseOnEscape);
|
|
15806
15855
|
useHandleStyle(ColorPickerBase.css.styles, isUnstyled, {
|
|
15807
15856
|
name: 'colorpicker'
|
|
15808
15857
|
});
|
|
15858
|
+
useGlobalOnEscapeKey({
|
|
15859
|
+
callback: function callback() {
|
|
15860
|
+
hide();
|
|
15861
|
+
},
|
|
15862
|
+
when: overlayVisibleState && overlayDisplayOrder,
|
|
15863
|
+
priority: [ESC_KEY_HANDLING_PRIORITIES.OVERLAY_PANEL, overlayDisplayOrder]
|
|
15864
|
+
});
|
|
15809
15865
|
var elementRef = React.useRef(null);
|
|
15810
15866
|
var overlayRef = React.useRef(null);
|
|
15811
15867
|
var inputRef = React.useRef(props.inputRef);
|
|
@@ -15873,12 +15929,17 @@ var ColorPicker = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
15873
15929
|
pickHue(event);
|
|
15874
15930
|
!isUnstyled && DomHandler.addClass(elementRef.current, 'p-colorpicker-dragging');
|
|
15875
15931
|
};
|
|
15932
|
+
var getPositionY = function getPositionY(event) {
|
|
15933
|
+
if (event.pageY !== undefined) return event.pageY;else if (event.changedTouches !== undefined) return event.changedTouches[0].pageY;else return 0;
|
|
15934
|
+
};
|
|
15876
15935
|
var pickHue = function pickHue(event) {
|
|
15877
|
-
var top = hueViewRef.current.getBoundingClientRect().top + (window.
|
|
15936
|
+
var top = hueViewRef.current.getBoundingClientRect().top + (window.scrollY || document.documentElement.scrollTop || document.body.scrollTop || 0);
|
|
15937
|
+
var yPos = getPositionY(event);
|
|
15938
|
+
var hue = Math.floor(360 * (150 - Math.max(0, Math.min(150, yPos - top))) / 150);
|
|
15878
15939
|
hsbValue.current = validateHSB({
|
|
15879
|
-
h:
|
|
15880
|
-
s:
|
|
15881
|
-
b:
|
|
15940
|
+
h: hue,
|
|
15941
|
+
s: hsbValue.current.s,
|
|
15942
|
+
b: hsbValue.current.b
|
|
15882
15943
|
});
|
|
15883
15944
|
updateColorSelector();
|
|
15884
15945
|
updateHue();
|
|
@@ -16401,6 +16462,15 @@ var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.fo
|
|
|
16401
16462
|
var getTarget = function getTarget() {
|
|
16402
16463
|
return firstFocusableElementRef.current && firstFocusableElementRef.current.parentElement;
|
|
16403
16464
|
};
|
|
16465
|
+
|
|
16466
|
+
/**
|
|
16467
|
+
* This method sets the auto focus on the first focusable element within the target element.
|
|
16468
|
+
* It first tries to find a focusable element using the autoFocusSelector. If no such element is found,
|
|
16469
|
+
* it then tries to find a focusable element using the firstFocusableSelector.
|
|
16470
|
+
* If the autoFocus prop is set to true and a focusable element is found, it sets the focus on that element.
|
|
16471
|
+
*
|
|
16472
|
+
* @param {HTMLElement} target - The target element within which to find a focusable element.
|
|
16473
|
+
*/
|
|
16404
16474
|
var setAutoFocus = function setAutoFocus(target) {
|
|
16405
16475
|
var _ref = props || {},
|
|
16406
16476
|
_ref$autoFocusSelecto = _ref.autoFocusSelector,
|
|
@@ -16409,7 +16479,9 @@ var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.fo
|
|
|
16409
16479
|
firstFocusableSelector = _ref$firstFocusableSe === void 0 ? '' : _ref$firstFocusableSe,
|
|
16410
16480
|
_ref$autoFocus = _ref.autoFocus,
|
|
16411
16481
|
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
|
|
16412
|
-
var
|
|
16482
|
+
var defaultAutoFocusSelector = "".concat(getComputedSelector(autoFocusSelector));
|
|
16483
|
+
var computedAutoFocusSelector = "[autofocus]".concat(defaultAutoFocusSelector, ", [data-pc-autofocus='true']").concat(defaultAutoFocusSelector);
|
|
16484
|
+
var focusableElement = DomHandler.getFirstFocusableElement(target, computedAutoFocusSelector);
|
|
16413
16485
|
autoFocus && !focusableElement && (focusableElement = DomHandler.getFirstFocusableElement(target, getComputedSelector(firstFocusableSelector)));
|
|
16414
16486
|
DomHandler.focus(focusableElement);
|
|
16415
16487
|
};
|
|
@@ -17083,7 +17155,9 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
17083
17155
|
'aria-label': ariaLabel,
|
|
17084
17156
|
onClick: onClose,
|
|
17085
17157
|
onKeyDown: function onKeyDown(ev) {
|
|
17086
|
-
|
|
17158
|
+
if (ev.key !== 'Escape') {
|
|
17159
|
+
ev.stopPropagation();
|
|
17160
|
+
}
|
|
17087
17161
|
}
|
|
17088
17162
|
}, ptm('closeButton'));
|
|
17089
17163
|
return /*#__PURE__*/React.createElement("button", closeButtonProps, headerCloseIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
@@ -19271,6 +19345,19 @@ var DataScroller = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
19271
19345
|
}));
|
|
19272
19346
|
DataScroller.displayName = 'DataScroller';
|
|
19273
19347
|
|
|
19348
|
+
var getStorage = function getStorage(stateStorageProp) {
|
|
19349
|
+
switch (stateStorageProp) {
|
|
19350
|
+
case 'local':
|
|
19351
|
+
return window.localStorage;
|
|
19352
|
+
case 'session':
|
|
19353
|
+
return window.sessionStorage;
|
|
19354
|
+
case 'custom':
|
|
19355
|
+
return null;
|
|
19356
|
+
default:
|
|
19357
|
+
throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
|
|
19358
|
+
}
|
|
19359
|
+
};
|
|
19360
|
+
|
|
19274
19361
|
var ColumnBase = ComponentBase.extend({
|
|
19275
19362
|
defaultProps: {
|
|
19276
19363
|
__TYPE: 'Column',
|
|
@@ -19857,14 +19944,15 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
19857
19944
|
var vertical = props.showButtons && props.buttonLayout === 'vertical';
|
|
19858
19945
|
var inputMode = props.inputMode || (props.mode === 'decimal' && !props.minFractionDigits ? 'numeric' : 'decimal');
|
|
19859
19946
|
var getOptions = function getOptions() {
|
|
19947
|
+
var _props$minFractionDig, _props$maxFractionDig;
|
|
19860
19948
|
return {
|
|
19861
19949
|
localeMatcher: props.localeMatcher,
|
|
19862
19950
|
style: props.mode,
|
|
19863
19951
|
currency: props.currency,
|
|
19864
19952
|
currencyDisplay: props.currencyDisplay,
|
|
19865
19953
|
useGrouping: props.useGrouping,
|
|
19866
|
-
minimumFractionDigits: props.minFractionDigits,
|
|
19867
|
-
maximumFractionDigits: props.maxFractionDigits,
|
|
19954
|
+
minimumFractionDigits: (_props$minFractionDig = props.minFractionDigits) !== null && _props$minFractionDig !== void 0 ? _props$minFractionDig : undefined,
|
|
19955
|
+
maximumFractionDigits: (_props$maxFractionDig = props.maxFractionDigits) !== null && _props$maxFractionDig !== void 0 ? _props$maxFractionDig : undefined,
|
|
19868
19956
|
roundingMode: props.roundingMode
|
|
19869
19957
|
};
|
|
19870
19958
|
};
|
|
@@ -20282,7 +20370,7 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
20282
20370
|
if (_char2) {
|
|
20283
20371
|
var _isDecimalSign = isDecimalSign(_char2);
|
|
20284
20372
|
var _isMinusSign = isMinusSign(_char2);
|
|
20285
|
-
if (
|
|
20373
|
+
if (Number(_char2) >= 0 && Number(_char2) <= 9 || _isMinusSign || _isDecimalSign) {
|
|
20286
20374
|
insert(event, _char2, {
|
|
20287
20375
|
isDecimalSign: _isDecimalSign,
|
|
20288
20376
|
isMinusSign: _isMinusSign
|
|
@@ -21966,10 +22054,9 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
21966
22054
|
};
|
|
21967
22055
|
var onOptionSelect = function onOptionSelect(event, option) {
|
|
21968
22056
|
var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
21969
|
-
var value = getOptionValue(option);
|
|
21970
22057
|
selectItem({
|
|
21971
22058
|
originalEvent: event,
|
|
21972
|
-
option:
|
|
22059
|
+
option: option
|
|
21973
22060
|
});
|
|
21974
22061
|
isHide && hide();
|
|
21975
22062
|
};
|
|
@@ -22252,8 +22339,9 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
22252
22339
|
}
|
|
22253
22340
|
};
|
|
22254
22341
|
var onEditableInputChange = function onEditableInputChange(event) {
|
|
22342
|
+
!overlayVisibleState && show();
|
|
22255
22343
|
var searchIndex = null;
|
|
22256
|
-
if (event.target.value) {
|
|
22344
|
+
if (event.target.value && visibleOptions) {
|
|
22257
22345
|
searchIndex = visibleOptions.findIndex(function (item) {
|
|
22258
22346
|
return getOptionLabel(item).toLocaleLowerCase().startsWith(event.target.value.toLocaleLowerCase());
|
|
22259
22347
|
});
|
|
@@ -22459,10 +22547,12 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
22459
22547
|
}
|
|
22460
22548
|
};
|
|
22461
22549
|
var getOptionLabel = function getOptionLabel(option) {
|
|
22462
|
-
|
|
22550
|
+
var optionLabel = props.optionLabel ? ObjectUtils.resolveFieldData(option, props.optionLabel) : ObjectUtils.resolveFieldData(option, 'label');
|
|
22551
|
+
return ObjectUtils.isNotEmpty(optionLabel) ? optionLabel : option;
|
|
22463
22552
|
};
|
|
22464
22553
|
var getOptionValue = function getOptionValue(option) {
|
|
22465
|
-
|
|
22554
|
+
var optionValue = props.OptionValue ? ObjectUtils.resolveFieldData(option, props.optionValue) : ObjectUtils.resolveFieldData(option, 'value');
|
|
22555
|
+
return ObjectUtils.isNotEmpty(optionValue) ? optionValue : option;
|
|
22466
22556
|
};
|
|
22467
22557
|
var getOptionRenderKey = function getOptionRenderKey(option) {
|
|
22468
22558
|
return props.dataKey ? ObjectUtils.resolveFieldData(option, props.dataKey) : getOptionLabel(option);
|
|
@@ -22635,7 +22725,7 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
22635
22725
|
}, ariaProps), ptm('input'));
|
|
22636
22726
|
return /*#__PURE__*/React.createElement("input", _inputProps);
|
|
22637
22727
|
}
|
|
22638
|
-
var content = props.valueTemplate ? ObjectUtils.getJSXElement(props.valueTemplate, selectedOption, props) : label || props.placeholder ||
|
|
22728
|
+
var content = props.valueTemplate ? ObjectUtils.getJSXElement(props.valueTemplate, selectedOption, props) : label || props.placeholder || props.emptyMessage || /*#__PURE__*/React.createElement(React.Fragment, null, "\xA0");
|
|
22639
22729
|
var inputProps = mergeProps({
|
|
22640
22730
|
ref: inputRef,
|
|
22641
22731
|
className: cx('input', {
|
|
@@ -23605,9 +23695,9 @@ var classes$S = {
|
|
|
23605
23695
|
'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled'
|
|
23606
23696
|
});
|
|
23607
23697
|
},
|
|
23608
|
-
|
|
23609
|
-
|
|
23610
|
-
|
|
23698
|
+
radiobuttonbox: 'p-radiobutton-box',
|
|
23699
|
+
radiobuttoninput: 'p-radiobutton-input',
|
|
23700
|
+
radiobuttonicon: 'p-radiobutton-icon'
|
|
23611
23701
|
};
|
|
23612
23702
|
var RadioButtonBase = ComponentBase.extend({
|
|
23613
23703
|
defaultProps: {
|
|
@@ -23746,7 +23836,10 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
23746
23836
|
})),
|
|
23747
23837
|
style: props.style,
|
|
23748
23838
|
'data-p-checked': props.checked
|
|
23749
|
-
},
|
|
23839
|
+
}, otherProps, ptm('root'));
|
|
23840
|
+
delete rootProps.input;
|
|
23841
|
+
delete rootProps.box;
|
|
23842
|
+
delete rootProps.icon;
|
|
23750
23843
|
var createInputElement = function createInputElement() {
|
|
23751
23844
|
var ariaProps = ObjectUtils.reduceKeys(otherProps, DomHandler.ARIA_PROPS);
|
|
23752
23845
|
var inputProps = mergeProps(_objectSpread$1h({
|
|
@@ -23761,19 +23854,19 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
23761
23854
|
readOnly: props.readonly,
|
|
23762
23855
|
required: props.required,
|
|
23763
23856
|
tabIndex: props.tabIndex,
|
|
23764
|
-
className: cx('
|
|
23765
|
-
}, ariaProps), ptm('
|
|
23857
|
+
className: cx('radiobuttoninput')
|
|
23858
|
+
}, ariaProps), inProps.input, ptm('radiobuttoninput'));
|
|
23766
23859
|
return /*#__PURE__*/React.createElement("input", _extends({
|
|
23767
23860
|
ref: inputRef
|
|
23768
23861
|
}, inputProps));
|
|
23769
23862
|
};
|
|
23770
23863
|
var createBoxElement = function createBoxElement() {
|
|
23771
23864
|
var boxProps = mergeProps({
|
|
23772
|
-
className: cx('
|
|
23773
|
-
}, ptm('
|
|
23865
|
+
className: cx('radiobuttonbox')
|
|
23866
|
+
}, inProps.box, ptm('radiobuttonbox'));
|
|
23774
23867
|
var iconProps = mergeProps({
|
|
23775
|
-
className: cx('
|
|
23776
|
-
}, ptm('
|
|
23868
|
+
className: cx('radiobuttonicon')
|
|
23869
|
+
}, inProps.icon, ptm('radiobuttonicon'));
|
|
23777
23870
|
return /*#__PURE__*/React.createElement("div", boxProps, /*#__PURE__*/React.createElement("div", iconProps));
|
|
23778
23871
|
};
|
|
23779
23872
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -23821,7 +23914,11 @@ var RowRadioButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
23821
23914
|
checked: props.checked,
|
|
23822
23915
|
disabled: props.disabled,
|
|
23823
23916
|
name: "".concat(props.tableSelector, "_dt_radio"),
|
|
23824
|
-
onChange: onChange
|
|
23917
|
+
onChange: onChange,
|
|
23918
|
+
input: getColumnPTOptions('radiobuttoninput'),
|
|
23919
|
+
box: getColumnPTOptions('radiobuttonbox'),
|
|
23920
|
+
icon: getColumnPTOptions('radiobuttonicon'),
|
|
23921
|
+
unstyled: props.unstyled
|
|
23825
23922
|
}, getColumnPTOptions('radiobutton'));
|
|
23826
23923
|
return /*#__PURE__*/React.createElement(RadioButton, radioButtonProps);
|
|
23827
23924
|
});
|
|
@@ -23847,7 +23944,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
23847
23944
|
var keyHelperRef = React.useRef(null);
|
|
23848
23945
|
var overlayEventListener = React.useRef(null);
|
|
23849
23946
|
var selfClick = React.useRef(false);
|
|
23850
|
-
var tabindexTimeout = React.useRef(null);
|
|
23851
23947
|
var initFocusTimeout = React.useRef(null);
|
|
23852
23948
|
var editingRowDataStateRef = React.useRef(null);
|
|
23853
23949
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
@@ -23884,7 +23980,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
23884
23980
|
var field = getColumnProp('field') || "field_".concat(props.index);
|
|
23885
23981
|
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
23886
23982
|
var isEditable = function isEditable() {
|
|
23887
|
-
return getColumnProp('editor');
|
|
23983
|
+
return ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
|
|
23888
23984
|
};
|
|
23889
23985
|
var cellEditValidateOnClose = function cellEditValidateOnClose() {
|
|
23890
23986
|
return getColumnProp('cellEditValidateOnClose');
|
|
@@ -24028,14 +24124,11 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24028
24124
|
}
|
|
24029
24125
|
};
|
|
24030
24126
|
var focusOnElement = function focusOnElement() {
|
|
24031
|
-
|
|
24032
|
-
|
|
24033
|
-
|
|
24034
|
-
|
|
24035
|
-
|
|
24036
|
-
}
|
|
24037
|
-
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
24038
|
-
}, 1);
|
|
24127
|
+
if (editingState) {
|
|
24128
|
+
var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
|
|
24129
|
+
focusableEl && focusableEl.focus();
|
|
24130
|
+
}
|
|
24131
|
+
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
24039
24132
|
};
|
|
24040
24133
|
var focusOnInit = function focusOnInit() {
|
|
24041
24134
|
clearTimeout(initFocusTimeout.current);
|
|
@@ -24077,6 +24170,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24077
24170
|
if (currentData) {
|
|
24078
24171
|
ObjectUtils.mutateFieldData(currentData, field, val);
|
|
24079
24172
|
}
|
|
24173
|
+
editingRowDataStateRef.current = editingRowData;
|
|
24080
24174
|
};
|
|
24081
24175
|
var _onClick = function onClick(event) {
|
|
24082
24176
|
var params = getCellCallbackParams(event);
|
|
@@ -24269,14 +24363,11 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24269
24363
|
}, [props.editMode, props.editing, editingState]);
|
|
24270
24364
|
useUpdateEffect(function () {
|
|
24271
24365
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
24272
|
-
|
|
24366
|
+
var editingRowData = getEditingRowData();
|
|
24367
|
+
setEditingRowDataState(editingRowData);
|
|
24368
|
+
editingRowDataStateRef.current = editingRowData;
|
|
24273
24369
|
}
|
|
24274
24370
|
}, [props.editingMeta]);
|
|
24275
|
-
React.useEffect(function () {
|
|
24276
|
-
if (editingRowDataState) {
|
|
24277
|
-
editingRowDataStateRef.current = editingRowDataState;
|
|
24278
|
-
}
|
|
24279
|
-
}, [editingRowDataState]);
|
|
24280
24371
|
React.useEffect(function () {
|
|
24281
24372
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
24282
24373
|
var callbackParams = getCellCallbackParams();
|
|
@@ -24351,7 +24442,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24351
24442
|
if (showSelection) {
|
|
24352
24443
|
var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
|
|
24353
24444
|
var ariaLabelText = ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
|
|
24354
|
-
label = "".concat(props.selected ? ariaLabel('
|
|
24445
|
+
label = "".concat(props.selected ? ariaLabel('unselectRow') : ariaLabel('selectRow'), " ").concat(ariaLabelText);
|
|
24355
24446
|
}
|
|
24356
24447
|
content = showSelection && /*#__PURE__*/React.createElement(React.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React.createElement(RowRadioButton, {
|
|
24357
24448
|
hostName: props.hostName,
|
|
@@ -24366,7 +24457,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24366
24457
|
tableSelector: props.tableSelector,
|
|
24367
24458
|
ariaLabel: label,
|
|
24368
24459
|
ptCallbacks: props.ptCallbacks,
|
|
24369
|
-
metaData: props.metaData
|
|
24460
|
+
metaData: props.metaData,
|
|
24461
|
+
unstyled: props.unstyled
|
|
24370
24462
|
}), selectionMode === 'multiple' && /*#__PURE__*/React.createElement(RowCheckbox, {
|
|
24371
24463
|
hostName: props.hostName,
|
|
24372
24464
|
column: props.column,
|
|
@@ -24380,7 +24472,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24380
24472
|
ariaLabel: label,
|
|
24381
24473
|
checkIcon: props.checkIcon,
|
|
24382
24474
|
ptCallbacks: props.ptCallbacks,
|
|
24383
|
-
metaData: props.metaData
|
|
24475
|
+
metaData: props.metaData,
|
|
24476
|
+
unstyled: props.unstyled
|
|
24384
24477
|
}));
|
|
24385
24478
|
} else if (rowReorder) {
|
|
24386
24479
|
var showReorder = props.showRowReorderElement ? props.showRowReorderElement(props.rowData, {
|
|
@@ -24543,7 +24636,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
24543
24636
|
}, editorKeyHelperProps), /*#__PURE__*/React.createElement("span", editorKeyHelperLabelProps));
|
|
24544
24637
|
/* eslint-enable */
|
|
24545
24638
|
}
|
|
24546
|
-
|
|
24547
24639
|
var bodyCellProps = mergeProps({
|
|
24548
24640
|
style: style,
|
|
24549
24641
|
className: classNames(bodyClassName, getColumnProp('className'), cellClassName, cx('bodyCell', {
|
|
@@ -25027,7 +25119,8 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
25027
25119
|
value: props.value,
|
|
25028
25120
|
virtualScrollerOptions: props.virtualScrollerOptions,
|
|
25029
25121
|
ptCallbacks: props.ptCallbacks,
|
|
25030
|
-
metaData: props.metaData
|
|
25122
|
+
metaData: props.metaData,
|
|
25123
|
+
unstyled: props.unstyled
|
|
25031
25124
|
});
|
|
25032
25125
|
}
|
|
25033
25126
|
return null;
|
|
@@ -25106,7 +25199,6 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
25106
25199
|
}, getBodyRowPTOptions('bodyRow'), {
|
|
25107
25200
|
className: classNames(rowClassName) // #5983 must be last so all unstyled merging takes place first
|
|
25108
25201
|
});
|
|
25109
|
-
|
|
25110
25202
|
return /*#__PURE__*/React.createElement("tr", rowProps, content);
|
|
25111
25203
|
});
|
|
25112
25204
|
BodyRow.displayName = 'BodyRow';
|
|
@@ -25814,7 +25906,6 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
25814
25906
|
event.dataTransfer.setData('text', 'b'); // For firefox
|
|
25815
25907
|
}
|
|
25816
25908
|
};
|
|
25817
|
-
|
|
25818
25909
|
var onRowDragOver = function onRowDragOver(e) {
|
|
25819
25910
|
var event = e.originalEvent,
|
|
25820
25911
|
index = e.index;
|
|
@@ -26036,7 +26127,8 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
26036
26127
|
expandedRowIcon: props.expandedRowIcon,
|
|
26037
26128
|
collapsedRowIcon: props.collapsedRowIcon,
|
|
26038
26129
|
ptCallbacks: props.ptCallbacks,
|
|
26039
|
-
metaData: props.metaData
|
|
26130
|
+
metaData: props.metaData,
|
|
26131
|
+
unstyled: props.unstyled
|
|
26040
26132
|
});
|
|
26041
26133
|
var options = {
|
|
26042
26134
|
index: rowIndex,
|
|
@@ -26141,7 +26233,8 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
26141
26233
|
value: props.value,
|
|
26142
26234
|
virtualScrollerOptions: props.virtualScrollerOptions,
|
|
26143
26235
|
ptCallbacks: props.ptCallbacks,
|
|
26144
|
-
metaData: props.metaData
|
|
26236
|
+
metaData: props.metaData,
|
|
26237
|
+
unstyled: props.unstyled
|
|
26145
26238
|
});
|
|
26146
26239
|
}
|
|
26147
26240
|
};
|
|
@@ -27651,7 +27744,7 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
27651
27744
|
column: props.column
|
|
27652
27745
|
});
|
|
27653
27746
|
};
|
|
27654
|
-
var
|
|
27747
|
+
var onResizeStart = function onResizeStart(event) {
|
|
27655
27748
|
props.onColumnResizeStart({
|
|
27656
27749
|
originalEvent: event,
|
|
27657
27750
|
column: props.column
|
|
@@ -27688,7 +27781,10 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
27688
27781
|
var columnResizerProps = mergeProps({
|
|
27689
27782
|
className: cx('columnResizer'),
|
|
27690
27783
|
onMouseDown: function onMouseDown(e) {
|
|
27691
|
-
return
|
|
27784
|
+
return onResizeStart(e);
|
|
27785
|
+
},
|
|
27786
|
+
onTouchStart: function onTouchStart(e) {
|
|
27787
|
+
return onResizeStart(e);
|
|
27692
27788
|
},
|
|
27693
27789
|
onClick: function onClick(e) {
|
|
27694
27790
|
return onResizerClick(e);
|
|
@@ -27748,7 +27844,8 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
27748
27844
|
onChange: props.onColumnCheckboxChange,
|
|
27749
27845
|
disabled: props.empty,
|
|
27750
27846
|
ptCallbacks: ptCallbacks,
|
|
27751
|
-
metaData: parentMetaData
|
|
27847
|
+
metaData: parentMetaData,
|
|
27848
|
+
unstyled: props.unstyled
|
|
27752
27849
|
});
|
|
27753
27850
|
}
|
|
27754
27851
|
return null;
|
|
@@ -28106,19 +28203,6 @@ var TableHeader = /*#__PURE__*/React.memo(function (props) {
|
|
|
28106
28203
|
});
|
|
28107
28204
|
TableHeader.displayName = 'TableHeader';
|
|
28108
28205
|
|
|
28109
|
-
var getStorage = function getStorage(stateStorageProp) {
|
|
28110
|
-
switch (stateStorageProp) {
|
|
28111
|
-
case 'local':
|
|
28112
|
-
return window.localStorage;
|
|
28113
|
-
case 'session':
|
|
28114
|
-
return window.sessionStorage;
|
|
28115
|
-
case 'custom':
|
|
28116
|
-
return null;
|
|
28117
|
-
default:
|
|
28118
|
-
throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
|
|
28119
|
-
}
|
|
28120
|
-
};
|
|
28121
|
-
|
|
28122
28206
|
function _createForOfIteratorHelper$b(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$b(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; } } }; }
|
|
28123
28207
|
function _unsupportedIterableToArray$b(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$b(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$b(o, minLen); }
|
|
28124
28208
|
function _arrayLikeToArray$b(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; }
|
|
@@ -28227,29 +28311,40 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
28227
28311
|
setRowsState(props.rows);
|
|
28228
28312
|
setD_rowsState(props.rows);
|
|
28229
28313
|
}
|
|
28314
|
+
var columnResizeStartListener = function columnResizeStartListener(event) {
|
|
28315
|
+
return columnResizing.current && onColumnResize(event);
|
|
28316
|
+
};
|
|
28317
|
+
var columnResizeEndListener = function columnResizeEndListener() {
|
|
28318
|
+
return columnResizing.current && (columnResizing.current = false, onColumnResizeEnd());
|
|
28319
|
+
};
|
|
28230
28320
|
var _useEventListener = useEventListener({
|
|
28231
28321
|
type: 'mousemove',
|
|
28232
|
-
listener:
|
|
28233
|
-
if (columnResizing.current) {
|
|
28234
|
-
onColumnResize(event);
|
|
28235
|
-
}
|
|
28236
|
-
}
|
|
28322
|
+
listener: columnResizeStartListener
|
|
28237
28323
|
}),
|
|
28238
28324
|
_useEventListener2 = _slicedToArray(_useEventListener, 2),
|
|
28239
28325
|
bindDocumentMouseMoveListener = _useEventListener2[0],
|
|
28240
28326
|
unbindDocumentMouseMoveListener = _useEventListener2[1];
|
|
28241
28327
|
var _useEventListener3 = useEventListener({
|
|
28242
28328
|
type: 'mouseup',
|
|
28243
|
-
listener:
|
|
28244
|
-
if (columnResizing.current) {
|
|
28245
|
-
columnResizing.current = false;
|
|
28246
|
-
onColumnResizeEnd();
|
|
28247
|
-
}
|
|
28248
|
-
}
|
|
28329
|
+
listener: columnResizeEndListener
|
|
28249
28330
|
}),
|
|
28250
28331
|
_useEventListener4 = _slicedToArray(_useEventListener3, 2),
|
|
28251
28332
|
bindDocumentMouseUpListener = _useEventListener4[0],
|
|
28252
28333
|
unbindDocumentMouseUpListener = _useEventListener4[1];
|
|
28334
|
+
var _useEventListener5 = useEventListener({
|
|
28335
|
+
type: 'touchmove',
|
|
28336
|
+
listener: columnResizeStartListener
|
|
28337
|
+
}),
|
|
28338
|
+
_useEventListener6 = _slicedToArray(_useEventListener5, 2),
|
|
28339
|
+
bindDocumentTouchMoveListener = _useEventListener6[0],
|
|
28340
|
+
unbindDocumentTouchMoveListener = _useEventListener6[1];
|
|
28341
|
+
var _useEventListener7 = useEventListener({
|
|
28342
|
+
type: 'touchend',
|
|
28343
|
+
listener: columnResizeEndListener
|
|
28344
|
+
}),
|
|
28345
|
+
_useEventListener8 = _slicedToArray(_useEventListener7, 2),
|
|
28346
|
+
bindDocumentTouchEndListener = _useEventListener8[0],
|
|
28347
|
+
unbindDocumentTouchEndListener = _useEventListener8[1];
|
|
28253
28348
|
var isCustomStateStorage = function isCustomStateStorage() {
|
|
28254
28349
|
return props.stateStorage === 'custom';
|
|
28255
28350
|
};
|
|
@@ -28585,7 +28680,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
28585
28680
|
resizeColumn.current = column;
|
|
28586
28681
|
resizeColumnElement.current = event.currentTarget.parentElement;
|
|
28587
28682
|
columnResizing.current = true;
|
|
28588
|
-
lastResizeHelperX.current = event.pageX - containerLeft + elementRef.current.scrollLeft;
|
|
28683
|
+
lastResizeHelperX.current = (event.type === 'touchstart' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft;
|
|
28589
28684
|
bindColumnResizeEvents();
|
|
28590
28685
|
};
|
|
28591
28686
|
var onColumnResize = function onColumnResize(event) {
|
|
@@ -28593,7 +28688,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
28593
28688
|
elementRef.current.setAttribute('data-p-unselectable-text', true);
|
|
28594
28689
|
resizeHelperRef.current.style.height = elementRef.current.offsetHeight + 'px';
|
|
28595
28690
|
resizeHelperRef.current.style.top = 0 + 'px';
|
|
28596
|
-
resizeHelperRef.current.style.left = event.pageX - containerLeft + elementRef.current.scrollLeft + 'px';
|
|
28691
|
+
resizeHelperRef.current.style.left = (event.type === 'touchmove' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft + 'px';
|
|
28597
28692
|
resizeHelperRef.current.style.display = 'block';
|
|
28598
28693
|
};
|
|
28599
28694
|
var onColumnResizeEnd = function onColumnResizeEnd() {
|
|
@@ -28664,10 +28759,14 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
28664
28759
|
var bindColumnResizeEvents = function bindColumnResizeEvents() {
|
|
28665
28760
|
bindDocumentMouseMoveListener();
|
|
28666
28761
|
bindDocumentMouseUpListener();
|
|
28762
|
+
bindDocumentTouchMoveListener();
|
|
28763
|
+
bindDocumentTouchEndListener();
|
|
28667
28764
|
};
|
|
28668
28765
|
var unbindColumnResizeEvents = function unbindColumnResizeEvents() {
|
|
28669
28766
|
unbindDocumentMouseMoveListener();
|
|
28670
28767
|
unbindDocumentMouseUpListener();
|
|
28768
|
+
unbindDocumentTouchMoveListener();
|
|
28769
|
+
unbindDocumentTouchEndListener();
|
|
28671
28770
|
};
|
|
28672
28771
|
var onColumnHeaderMouseDown = function onColumnHeaderMouseDown(e) {
|
|
28673
28772
|
DomHandler.clearSelection();
|
|
@@ -28733,7 +28832,6 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
28733
28832
|
draggedColumnElement.current = findParentHeader(event.currentTarget);
|
|
28734
28833
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
28735
28834
|
};
|
|
28736
|
-
|
|
28737
28835
|
var onColumnHeaderDragOver = function onColumnHeaderDragOver(e) {
|
|
28738
28836
|
var event = e.originalEvent,
|
|
28739
28837
|
column = e.column;
|
|
@@ -29498,7 +29596,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
29498
29596
|
className: ptCallbacks.cx('loadingIcon')
|
|
29499
29597
|
}, ptCallbacks.ptm('loadingIcon'));
|
|
29500
29598
|
var icon = props.loadingIcon || /*#__PURE__*/React.createElement(SpinnerIcon, _extends({}, loadingIconProps, {
|
|
29501
|
-
spin: true
|
|
29599
|
+
spin: true,
|
|
29600
|
+
unstyled: props.unstyled
|
|
29502
29601
|
}));
|
|
29503
29602
|
var loadingIcon = IconUtils.getJSXIcon(icon, _objectSpread$17({}, loadingIconProps), {
|
|
29504
29603
|
props: props
|
|
@@ -29665,7 +29764,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
29665
29764
|
value: props.frozenValue,
|
|
29666
29765
|
virtualScrollerOptions: options,
|
|
29667
29766
|
ptCallbacks: ptCallbacks,
|
|
29668
|
-
metaData: metaData
|
|
29767
|
+
metaData: metaData,
|
|
29768
|
+
unstyled: props.unstyled
|
|
29669
29769
|
});
|
|
29670
29770
|
var body = /*#__PURE__*/React.createElement(TableBody, {
|
|
29671
29771
|
hostName: "DataTable",
|
|
@@ -29748,7 +29848,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
29748
29848
|
virtualScrollerContentRef: contentRef,
|
|
29749
29849
|
virtualScrollerOptions: options,
|
|
29750
29850
|
ptCallbacks: ptCallbacks,
|
|
29751
|
-
metaData: metaData
|
|
29851
|
+
metaData: metaData,
|
|
29852
|
+
unstyled: props.unstyled
|
|
29752
29853
|
});
|
|
29753
29854
|
var spacerBody = ObjectUtils.isNotEmpty(spacerStyle) ? /*#__PURE__*/React.createElement(TableBody, {
|
|
29754
29855
|
hostName: "DataTable",
|
|
@@ -29757,7 +29858,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
29757
29858
|
},
|
|
29758
29859
|
className: "p-datatable-virtualscroller-spacer",
|
|
29759
29860
|
ptCallbacks: ptCallbacks,
|
|
29760
|
-
metaData: metaData
|
|
29861
|
+
metaData: metaData,
|
|
29862
|
+
unstyled: props.unstyled
|
|
29761
29863
|
}) : null;
|
|
29762
29864
|
return /*#__PURE__*/React.createElement(React.Fragment, null, frozenBody, body, spacerBody);
|
|
29763
29865
|
};
|
|
@@ -29769,7 +29871,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
29769
29871
|
columns: columns,
|
|
29770
29872
|
footerColumnGroup: props.footerColumnGroup,
|
|
29771
29873
|
ptCallbacks: ptCallbacks,
|
|
29772
|
-
metaData: metaData
|
|
29874
|
+
metaData: metaData,
|
|
29875
|
+
unstyled: props.unstyled
|
|
29773
29876
|
});
|
|
29774
29877
|
};
|
|
29775
29878
|
var createContent = function createContent(processedData, columns, selectionModeInColumn, empty) {
|
|
@@ -29804,6 +29907,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
29804
29907
|
parent: metaData
|
|
29805
29908
|
},
|
|
29806
29909
|
showSpacer: false,
|
|
29910
|
+
unstyled: props.unstyled,
|
|
29807
29911
|
contentTemplate: function contentTemplate(options) {
|
|
29808
29912
|
var ref = function ref(el) {
|
|
29809
29913
|
tableRef.current = el;
|
|
@@ -36766,7 +36870,24 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
36766
36870
|
var getOptionGroupChildren = function getOptionGroupChildren(optionGroup) {
|
|
36767
36871
|
return ObjectUtils.resolveFieldData(optionGroup, props.optionGroupChildren);
|
|
36768
36872
|
};
|
|
36873
|
+
var flatOptions = function flatOptions(options) {
|
|
36874
|
+
return (options || []).reduce(function (result, option, index) {
|
|
36875
|
+
result.push({
|
|
36876
|
+
optionGroup: option,
|
|
36877
|
+
group: true,
|
|
36878
|
+
index: index,
|
|
36879
|
+
code: option.code,
|
|
36880
|
+
label: option.label
|
|
36881
|
+
});
|
|
36882
|
+
var optionGroupChildren = getOptionGroupChildren(option);
|
|
36883
|
+
optionGroupChildren && optionGroupChildren.forEach(function (o) {
|
|
36884
|
+
return result.push(o);
|
|
36885
|
+
});
|
|
36886
|
+
return result;
|
|
36887
|
+
}, []);
|
|
36888
|
+
};
|
|
36769
36889
|
var getVisibleOptions = function getVisibleOptions() {
|
|
36890
|
+
var options = props.optionGroupLabel ? flatOptions(props.options) : props.options;
|
|
36770
36891
|
if (hasFilter) {
|
|
36771
36892
|
var filterValue = filteredValue.trim().toLocaleLowerCase(props.filterLocale);
|
|
36772
36893
|
var searchFields = props.filterBy ? props.filterBy.split(',') : [props.optionLabel || 'label'];
|
|
@@ -36789,11 +36910,11 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
36789
36910
|
} finally {
|
|
36790
36911
|
_iterator.f();
|
|
36791
36912
|
}
|
|
36792
|
-
return filteredGroups;
|
|
36913
|
+
return flatOptions(filteredGroups);
|
|
36793
36914
|
}
|
|
36794
|
-
return FilterService.filter(
|
|
36915
|
+
return FilterService.filter(options, searchFields, filterValue, props.filterMatchMode, props.filterLocale);
|
|
36795
36916
|
}
|
|
36796
|
-
return
|
|
36917
|
+
return options;
|
|
36797
36918
|
};
|
|
36798
36919
|
var scrollToSelectedIndex = function scrollToSelectedIndex() {
|
|
36799
36920
|
if (virtualScrollerRef.current) {
|
|
@@ -36838,42 +36959,13 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
36838
36959
|
metaData: metaData
|
|
36839
36960
|
}) : null;
|
|
36840
36961
|
};
|
|
36841
|
-
var createGroupChildren = function createGroupChildren(optionGroup, style) {
|
|
36842
|
-
var groupChildren = getOptionGroupChildren(optionGroup);
|
|
36843
|
-
return groupChildren.map(function (option, j) {
|
|
36844
|
-
var optionLabel = getOptionLabel(option);
|
|
36845
|
-
var optionKey = j + '_' + getOptionRenderKey(option);
|
|
36846
|
-
var disabled = isOptionDisabled(option);
|
|
36847
|
-
return /*#__PURE__*/React.createElement(ListBoxItem, {
|
|
36848
|
-
id: id.current + '_' + j,
|
|
36849
|
-
hostName: "ListBox",
|
|
36850
|
-
optionKey: optionKey,
|
|
36851
|
-
key: optionKey,
|
|
36852
|
-
label: optionLabel,
|
|
36853
|
-
option: option,
|
|
36854
|
-
style: style,
|
|
36855
|
-
template: props.itemTemplate,
|
|
36856
|
-
selected: isSelected(option),
|
|
36857
|
-
onOptionMouseDown: onOptionMouseDown,
|
|
36858
|
-
onOptionMouseMove: onOptionMouseMove,
|
|
36859
|
-
onClick: onOptionSelect,
|
|
36860
|
-
index: j,
|
|
36861
|
-
focusedOptionIndex: focusedOptionIndex,
|
|
36862
|
-
onTouchEnd: onOptionTouchEnd,
|
|
36863
|
-
disabled: disabled,
|
|
36864
|
-
ptCallbacks: ptCallbacks,
|
|
36865
|
-
metaData: metaData
|
|
36866
|
-
});
|
|
36867
|
-
});
|
|
36868
|
-
};
|
|
36869
36962
|
var createItem = function createItem(option, index) {
|
|
36870
36963
|
var scrollerOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
36871
36964
|
var style = {
|
|
36872
36965
|
height: scrollerOptions.props ? scrollerOptions.props.itemSize : undefined
|
|
36873
36966
|
};
|
|
36874
|
-
if (props.optionGroupLabel) {
|
|
36967
|
+
if (option.group && option.optionGroup && props.optionGroupLabel) {
|
|
36875
36968
|
var groupContent = props.optionGroupTemplate ? ObjectUtils.getJSXElement(props.optionGroupTemplate, option, index) : getOptionGroupLabel(option);
|
|
36876
|
-
var groupChildrenContent = createGroupChildren(option, style);
|
|
36877
36969
|
var key = index + '_' + getOptionGroupRenderKey(option);
|
|
36878
36970
|
var itemGroupProps = mergeProps({
|
|
36879
36971
|
className: ptCallbacks.cx('itemGroup'),
|
|
@@ -36882,9 +36974,9 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
36882
36974
|
}),
|
|
36883
36975
|
role: 'group'
|
|
36884
36976
|
}, ptCallbacks.ptm('itemGroup'));
|
|
36885
|
-
return /*#__PURE__*/React.createElement(
|
|
36977
|
+
return /*#__PURE__*/React.createElement("li", _extends({
|
|
36886
36978
|
key: key
|
|
36887
|
-
},
|
|
36979
|
+
}, itemGroupProps), groupContent);
|
|
36888
36980
|
}
|
|
36889
36981
|
var optionLabel = getOptionLabel(option);
|
|
36890
36982
|
var optionKey = index + '_' + getOptionRenderKey(option);
|
|
@@ -40497,10 +40589,10 @@ var MeterGroup = function MeterGroup(inProps) {
|
|
|
40497
40589
|
name: 'metergroup'
|
|
40498
40590
|
});
|
|
40499
40591
|
var totalPercent = 0;
|
|
40500
|
-
var
|
|
40592
|
+
var percentages = [];
|
|
40501
40593
|
values.map(function (item) {
|
|
40502
40594
|
totalPercent = totalPercent + item.value;
|
|
40503
|
-
|
|
40595
|
+
percentages.push(Math.round(item.value / totalPercent * 100));
|
|
40504
40596
|
});
|
|
40505
40597
|
var calculatePercentage = function calculatePercentage() {
|
|
40506
40598
|
var meterValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
@@ -40574,7 +40666,7 @@ var MeterGroup = function MeterGroup(inProps) {
|
|
|
40574
40666
|
};
|
|
40575
40667
|
var templateProps = {
|
|
40576
40668
|
totalPercent: totalPercent,
|
|
40577
|
-
|
|
40669
|
+
percentages: percentages,
|
|
40578
40670
|
values: values
|
|
40579
40671
|
};
|
|
40580
40672
|
var labelListContent = labelList || createLabelList();
|
|
@@ -43666,7 +43758,6 @@ var OrganizationChartNode = /*#__PURE__*/React.memo(function (props) {
|
|
|
43666
43758
|
/* eslint-enable */
|
|
43667
43759
|
);
|
|
43668
43760
|
}
|
|
43669
|
-
|
|
43670
43761
|
return null;
|
|
43671
43762
|
};
|
|
43672
43763
|
var createNodeLabel = function createNodeLabel() {
|
|
@@ -50688,7 +50779,6 @@ var TieredMenuSub = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
|
|
|
50688
50779
|
'aria-disabled': disabled,
|
|
50689
50780
|
'aria-expanded': grouped ? active : undefined,
|
|
50690
50781
|
'aria-haspopup': grouped && !url ? 'menu' : undefined,
|
|
50691
|
-
'aria-level': props.level + 1,
|
|
50692
50782
|
'aria-setsize': getAriaSetSize(),
|
|
50693
50783
|
'aria-posinset': getAriaPosInset(index),
|
|
50694
50784
|
'data-p-highlight': active,
|
|
@@ -53967,7 +54057,6 @@ var TabView = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
53967
54057
|
React.createElement("a", headerActionProps, leftIconElement, titleElement, rightIconElement, closableIconElement, /*#__PURE__*/React.createElement(Ripple, null))
|
|
53968
54058
|
// eslint-enable /
|
|
53969
54059
|
;
|
|
53970
|
-
|
|
53971
54060
|
if (headerTemplate) {
|
|
53972
54061
|
var defaultContentOptions = {
|
|
53973
54062
|
className: 'p-tabview-nav-link',
|
|
@@ -55778,18 +55867,18 @@ var UITreeNode = /*#__PURE__*/React.memo(function (props) {
|
|
|
55778
55867
|
}
|
|
55779
55868
|
};
|
|
55780
55869
|
var onDropPointDragOver = function onDropPointDragOver(event) {
|
|
55781
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
55870
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
55782
55871
|
event.dataTransfer.dropEffect = 'move';
|
|
55783
55872
|
event.preventDefault();
|
|
55784
55873
|
}
|
|
55785
55874
|
};
|
|
55786
55875
|
var onDropPointDragEnter = function onDropPointDragEnter(event) {
|
|
55787
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
55876
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
55788
55877
|
DomHandler.addClass(event.target, 'p-treenode-droppoint-active');
|
|
55789
55878
|
}
|
|
55790
55879
|
};
|
|
55791
55880
|
var onDropPointDragLeave = function onDropPointDragLeave(event) {
|
|
55792
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
55881
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
|
|
55793
55882
|
DomHandler.removeClass(event.target, 'p-treenode-droppoint-active');
|
|
55794
55883
|
}
|
|
55795
55884
|
};
|
|
@@ -55808,19 +55897,19 @@ var UITreeNode = /*#__PURE__*/React.memo(function (props) {
|
|
|
55808
55897
|
}
|
|
55809
55898
|
};
|
|
55810
55899
|
var onDragOver = function onDragOver(event) {
|
|
55811
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
55900
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
55812
55901
|
event.dataTransfer.dropEffect = 'move';
|
|
55813
55902
|
event.preventDefault();
|
|
55814
55903
|
event.stopPropagation();
|
|
55815
55904
|
}
|
|
55816
55905
|
};
|
|
55817
55906
|
var onDragEnter = function onDragEnter(event) {
|
|
55818
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
55907
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
55819
55908
|
DomHandler.addClass(contentRef.current, 'p-treenode-dragover');
|
|
55820
55909
|
}
|
|
55821
55910
|
};
|
|
55822
55911
|
var onDragLeave = function onDragLeave(event) {
|
|
55823
|
-
if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
55912
|
+
if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
|
|
55824
55913
|
var rect = event.currentTarget.getBoundingClientRect();
|
|
55825
55914
|
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) {
|
|
55826
55915
|
DomHandler.removeClass(contentRef.current, 'p-treenode-dragover');
|
|
@@ -57000,7 +57089,6 @@ var TreeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
57000
57089
|
event.preventDefault();
|
|
57001
57090
|
focusInputRef.current && DomHandler.focus(focusInputRef.current);
|
|
57002
57091
|
break;
|
|
57003
|
-
case 'Space':
|
|
57004
57092
|
case 'Enter':
|
|
57005
57093
|
case 'NumpadEnter':
|
|
57006
57094
|
event.preventDefault();
|
|
@@ -58599,7 +58687,6 @@ var TreeTableRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
58599
58687
|
}, getRowPTOptions('row'), {
|
|
58600
58688
|
className: classNames(rowClassName, props.node.className) // #5983 must be last so all unstyled merging takes place first
|
|
58601
58689
|
});
|
|
58602
|
-
|
|
58603
58690
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tr", _extends({
|
|
58604
58691
|
ref: elementRef
|
|
58605
58692
|
}, rowProps), cells), children);
|
|
@@ -60123,7 +60210,6 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
60123
60210
|
draggedColumn.current = column;
|
|
60124
60211
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
60125
60212
|
};
|
|
60126
|
-
|
|
60127
60213
|
var onColumnDragOver = function onColumnDragOver(e) {
|
|
60128
60214
|
var event = e.originalEvent,
|
|
60129
60215
|
column = e.column;
|