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/datatable/datatable.js
CHANGED
|
@@ -153,6 +153,19 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
153
153
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
var getStorage = function getStorage(stateStorageProp) {
|
|
157
|
+
switch (stateStorageProp) {
|
|
158
|
+
case 'local':
|
|
159
|
+
return window.localStorage;
|
|
160
|
+
case 'session':
|
|
161
|
+
return window.sessionStorage;
|
|
162
|
+
case 'custom':
|
|
163
|
+
return null;
|
|
164
|
+
default:
|
|
165
|
+
throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
|
|
156
169
|
var ColumnBase = componentbase.ComponentBase.extend({
|
|
157
170
|
defaultProps: {
|
|
158
171
|
__TYPE: 'Column',
|
|
@@ -687,8 +700,15 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
687
700
|
var mergeProps = hooks.useMergeProps();
|
|
688
701
|
var context = React__namespace.useContext(PrimeReact$1.PrimeReactContext);
|
|
689
702
|
var props = CheckboxBase.getProps(inProps, context);
|
|
703
|
+
var _React$useState = React__namespace.useState(false),
|
|
704
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
705
|
+
focusedState = _React$useState2[0],
|
|
706
|
+
setFocusedState = _React$useState2[1];
|
|
690
707
|
var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
|
|
691
708
|
props: props,
|
|
709
|
+
state: {
|
|
710
|
+
focused: focusedState
|
|
711
|
+
},
|
|
692
712
|
context: {
|
|
693
713
|
checked: props.checked === props.trueValue,
|
|
694
714
|
disabled: props.disabled
|
|
@@ -742,10 +762,12 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
742
762
|
};
|
|
743
763
|
var _onFocus = function onFocus() {
|
|
744
764
|
var _props$onFocus;
|
|
765
|
+
setFocusedState(true);
|
|
745
766
|
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
|
|
746
767
|
};
|
|
747
768
|
var _onBlur = function onBlur() {
|
|
748
769
|
var _props$onBlur;
|
|
770
|
+
setFocusedState(false);
|
|
749
771
|
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
|
|
750
772
|
};
|
|
751
773
|
React__namespace.useImperativeHandle(ref, function () {
|
|
@@ -908,9 +930,9 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
908
930
|
'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled'
|
|
909
931
|
});
|
|
910
932
|
},
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
933
|
+
radiobuttonbox: 'p-radiobutton-box',
|
|
934
|
+
radiobuttoninput: 'p-radiobutton-input',
|
|
935
|
+
radiobuttonicon: 'p-radiobutton-icon'
|
|
914
936
|
};
|
|
915
937
|
var RadioButtonBase = componentbase.ComponentBase.extend({
|
|
916
938
|
defaultProps: {
|
|
@@ -1049,7 +1071,10 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1049
1071
|
})),
|
|
1050
1072
|
style: props.style,
|
|
1051
1073
|
'data-p-checked': props.checked
|
|
1052
|
-
},
|
|
1074
|
+
}, otherProps, ptm('root'));
|
|
1075
|
+
delete rootProps.input;
|
|
1076
|
+
delete rootProps.box;
|
|
1077
|
+
delete rootProps.icon;
|
|
1053
1078
|
var createInputElement = function createInputElement() {
|
|
1054
1079
|
var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
|
|
1055
1080
|
var inputProps = mergeProps(_objectSpread$b({
|
|
@@ -1064,19 +1089,19 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1064
1089
|
readOnly: props.readonly,
|
|
1065
1090
|
required: props.required,
|
|
1066
1091
|
tabIndex: props.tabIndex,
|
|
1067
|
-
className: cx('
|
|
1068
|
-
}, ariaProps), ptm('
|
|
1092
|
+
className: cx('radiobuttoninput')
|
|
1093
|
+
}, ariaProps), inProps.input, ptm('radiobuttoninput'));
|
|
1069
1094
|
return /*#__PURE__*/React__namespace.createElement("input", _extends({
|
|
1070
1095
|
ref: inputRef
|
|
1071
1096
|
}, inputProps));
|
|
1072
1097
|
};
|
|
1073
1098
|
var createBoxElement = function createBoxElement() {
|
|
1074
1099
|
var boxProps = mergeProps({
|
|
1075
|
-
className: cx('
|
|
1076
|
-
}, ptm('
|
|
1100
|
+
className: cx('radiobuttonbox')
|
|
1101
|
+
}, inProps.box, ptm('radiobuttonbox'));
|
|
1077
1102
|
var iconProps = mergeProps({
|
|
1078
|
-
className: cx('
|
|
1079
|
-
}, ptm('
|
|
1103
|
+
className: cx('radiobuttonicon')
|
|
1104
|
+
}, inProps.icon, ptm('radiobuttonicon'));
|
|
1080
1105
|
return /*#__PURE__*/React__namespace.createElement("div", boxProps, /*#__PURE__*/React__namespace.createElement("div", iconProps));
|
|
1081
1106
|
};
|
|
1082
1107
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
@@ -1124,7 +1149,11 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1124
1149
|
checked: props.checked,
|
|
1125
1150
|
disabled: props.disabled,
|
|
1126
1151
|
name: "".concat(props.tableSelector, "_dt_radio"),
|
|
1127
|
-
onChange: onChange
|
|
1152
|
+
onChange: onChange,
|
|
1153
|
+
input: getColumnPTOptions('radiobuttoninput'),
|
|
1154
|
+
box: getColumnPTOptions('radiobuttonbox'),
|
|
1155
|
+
icon: getColumnPTOptions('radiobuttonicon'),
|
|
1156
|
+
unstyled: props.unstyled
|
|
1128
1157
|
}, getColumnPTOptions('radiobutton'));
|
|
1129
1158
|
return /*#__PURE__*/React__namespace.createElement(RadioButton, radioButtonProps);
|
|
1130
1159
|
});
|
|
@@ -1150,7 +1179,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1150
1179
|
var keyHelperRef = React__namespace.useRef(null);
|
|
1151
1180
|
var overlayEventListener = React__namespace.useRef(null);
|
|
1152
1181
|
var selfClick = React__namespace.useRef(false);
|
|
1153
|
-
var tabindexTimeout = React__namespace.useRef(null);
|
|
1154
1182
|
var initFocusTimeout = React__namespace.useRef(null);
|
|
1155
1183
|
var editingRowDataStateRef = React__namespace.useRef(null);
|
|
1156
1184
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
@@ -1187,7 +1215,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1187
1215
|
var field = getColumnProp('field') || "field_".concat(props.index);
|
|
1188
1216
|
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
1189
1217
|
var isEditable = function isEditable() {
|
|
1190
|
-
return getColumnProp('editor');
|
|
1218
|
+
return utils.ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
|
|
1191
1219
|
};
|
|
1192
1220
|
var cellEditValidateOnClose = function cellEditValidateOnClose() {
|
|
1193
1221
|
return getColumnProp('cellEditValidateOnClose');
|
|
@@ -1331,14 +1359,11 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1331
1359
|
}
|
|
1332
1360
|
};
|
|
1333
1361
|
var focusOnElement = function focusOnElement() {
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
}
|
|
1340
|
-
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
1341
|
-
}, 1);
|
|
1362
|
+
if (editingState) {
|
|
1363
|
+
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"]');
|
|
1364
|
+
focusableEl && focusableEl.focus();
|
|
1365
|
+
}
|
|
1366
|
+
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
1342
1367
|
};
|
|
1343
1368
|
var focusOnInit = function focusOnInit() {
|
|
1344
1369
|
clearTimeout(initFocusTimeout.current);
|
|
@@ -1380,6 +1405,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1380
1405
|
if (currentData) {
|
|
1381
1406
|
utils.ObjectUtils.mutateFieldData(currentData, field, val);
|
|
1382
1407
|
}
|
|
1408
|
+
editingRowDataStateRef.current = editingRowData;
|
|
1383
1409
|
};
|
|
1384
1410
|
var _onClick = function onClick(event) {
|
|
1385
1411
|
var params = getCellCallbackParams(event);
|
|
@@ -1572,14 +1598,11 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1572
1598
|
}, [props.editMode, props.editing, editingState]);
|
|
1573
1599
|
hooks.useUpdateEffect(function () {
|
|
1574
1600
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
1575
|
-
|
|
1601
|
+
var editingRowData = getEditingRowData();
|
|
1602
|
+
setEditingRowDataState(editingRowData);
|
|
1603
|
+
editingRowDataStateRef.current = editingRowData;
|
|
1576
1604
|
}
|
|
1577
1605
|
}, [props.editingMeta]);
|
|
1578
|
-
React__namespace.useEffect(function () {
|
|
1579
|
-
if (editingRowDataState) {
|
|
1580
|
-
editingRowDataStateRef.current = editingRowDataState;
|
|
1581
|
-
}
|
|
1582
|
-
}, [editingRowDataState]);
|
|
1583
1606
|
React__namespace.useEffect(function () {
|
|
1584
1607
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
1585
1608
|
var callbackParams = getCellCallbackParams();
|
|
@@ -1654,7 +1677,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1654
1677
|
if (showSelection) {
|
|
1655
1678
|
var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
|
|
1656
1679
|
var ariaLabelText = utils.ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
|
|
1657
|
-
label = "".concat(props.selected ? PrimeReact$1.ariaLabel('
|
|
1680
|
+
label = "".concat(props.selected ? PrimeReact$1.ariaLabel('unselectRow') : PrimeReact$1.ariaLabel('selectRow'), " ").concat(ariaLabelText);
|
|
1658
1681
|
}
|
|
1659
1682
|
content = showSelection && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React__namespace.createElement(RowRadioButton, {
|
|
1660
1683
|
hostName: props.hostName,
|
|
@@ -1669,7 +1692,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1669
1692
|
tableSelector: props.tableSelector,
|
|
1670
1693
|
ariaLabel: label,
|
|
1671
1694
|
ptCallbacks: props.ptCallbacks,
|
|
1672
|
-
metaData: props.metaData
|
|
1695
|
+
metaData: props.metaData,
|
|
1696
|
+
unstyled: props.unstyled
|
|
1673
1697
|
}), selectionMode === 'multiple' && /*#__PURE__*/React__namespace.createElement(RowCheckbox, {
|
|
1674
1698
|
hostName: props.hostName,
|
|
1675
1699
|
column: props.column,
|
|
@@ -1683,7 +1707,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1683
1707
|
ariaLabel: label,
|
|
1684
1708
|
checkIcon: props.checkIcon,
|
|
1685
1709
|
ptCallbacks: props.ptCallbacks,
|
|
1686
|
-
metaData: props.metaData
|
|
1710
|
+
metaData: props.metaData,
|
|
1711
|
+
unstyled: props.unstyled
|
|
1687
1712
|
}));
|
|
1688
1713
|
} else if (rowReorder) {
|
|
1689
1714
|
var showReorder = props.showRowReorderElement ? props.showRowReorderElement(props.rowData, {
|
|
@@ -1846,7 +1871,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1846
1871
|
}, editorKeyHelperProps), /*#__PURE__*/React__namespace.createElement("span", editorKeyHelperLabelProps));
|
|
1847
1872
|
/* eslint-enable */
|
|
1848
1873
|
}
|
|
1849
|
-
|
|
1850
1874
|
var bodyCellProps = mergeProps({
|
|
1851
1875
|
style: style,
|
|
1852
1876
|
className: utils.classNames(bodyClassName, getColumnProp('className'), cellClassName, cx('bodyCell', {
|
|
@@ -2330,7 +2354,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2330
2354
|
value: props.value,
|
|
2331
2355
|
virtualScrollerOptions: props.virtualScrollerOptions,
|
|
2332
2356
|
ptCallbacks: props.ptCallbacks,
|
|
2333
|
-
metaData: props.metaData
|
|
2357
|
+
metaData: props.metaData,
|
|
2358
|
+
unstyled: props.unstyled
|
|
2334
2359
|
});
|
|
2335
2360
|
}
|
|
2336
2361
|
return null;
|
|
@@ -2409,7 +2434,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2409
2434
|
}, getBodyRowPTOptions('bodyRow'), {
|
|
2410
2435
|
className: utils.classNames(rowClassName) // #5983 must be last so all unstyled merging takes place first
|
|
2411
2436
|
});
|
|
2412
|
-
|
|
2413
2437
|
return /*#__PURE__*/React__namespace.createElement("tr", rowProps, content);
|
|
2414
2438
|
});
|
|
2415
2439
|
BodyRow.displayName = 'BodyRow';
|
|
@@ -3117,7 +3141,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3117
3141
|
event.dataTransfer.setData('text', 'b'); // For firefox
|
|
3118
3142
|
}
|
|
3119
3143
|
};
|
|
3120
|
-
|
|
3121
3144
|
var onRowDragOver = function onRowDragOver(e) {
|
|
3122
3145
|
var event = e.originalEvent,
|
|
3123
3146
|
index = e.index;
|
|
@@ -3339,7 +3362,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3339
3362
|
expandedRowIcon: props.expandedRowIcon,
|
|
3340
3363
|
collapsedRowIcon: props.collapsedRowIcon,
|
|
3341
3364
|
ptCallbacks: props.ptCallbacks,
|
|
3342
|
-
metaData: props.metaData
|
|
3365
|
+
metaData: props.metaData,
|
|
3366
|
+
unstyled: props.unstyled
|
|
3343
3367
|
});
|
|
3344
3368
|
var options = {
|
|
3345
3369
|
index: rowIndex,
|
|
@@ -3444,7 +3468,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3444
3468
|
value: props.value,
|
|
3445
3469
|
virtualScrollerOptions: props.virtualScrollerOptions,
|
|
3446
3470
|
ptCallbacks: props.ptCallbacks,
|
|
3447
|
-
metaData: props.metaData
|
|
3471
|
+
metaData: props.metaData,
|
|
3472
|
+
unstyled: props.unstyled
|
|
3448
3473
|
});
|
|
3449
3474
|
}
|
|
3450
3475
|
};
|
|
@@ -4041,6 +4066,15 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
4041
4066
|
var getTarget = function getTarget() {
|
|
4042
4067
|
return firstFocusableElementRef.current && firstFocusableElementRef.current.parentElement;
|
|
4043
4068
|
};
|
|
4069
|
+
|
|
4070
|
+
/**
|
|
4071
|
+
* This method sets the auto focus on the first focusable element within the target element.
|
|
4072
|
+
* It first tries to find a focusable element using the autoFocusSelector. If no such element is found,
|
|
4073
|
+
* it then tries to find a focusable element using the firstFocusableSelector.
|
|
4074
|
+
* If the autoFocus prop is set to true and a focusable element is found, it sets the focus on that element.
|
|
4075
|
+
*
|
|
4076
|
+
* @param {HTMLElement} target - The target element within which to find a focusable element.
|
|
4077
|
+
*/
|
|
4044
4078
|
var setAutoFocus = function setAutoFocus(target) {
|
|
4045
4079
|
var _ref = props || {},
|
|
4046
4080
|
_ref$autoFocusSelecto = _ref.autoFocusSelector,
|
|
@@ -4049,7 +4083,9 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
4049
4083
|
firstFocusableSelector = _ref$firstFocusableSe === void 0 ? '' : _ref$firstFocusableSe,
|
|
4050
4084
|
_ref$autoFocus = _ref.autoFocus,
|
|
4051
4085
|
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
|
|
4052
|
-
var
|
|
4086
|
+
var defaultAutoFocusSelector = "".concat(getComputedSelector(autoFocusSelector));
|
|
4087
|
+
var computedAutoFocusSelector = "[autofocus]".concat(defaultAutoFocusSelector, ", [data-pc-autofocus='true']").concat(defaultAutoFocusSelector);
|
|
4088
|
+
var focusableElement = utils.DomHandler.getFirstFocusableElement(target, computedAutoFocusSelector);
|
|
4053
4089
|
autoFocus && !focusableElement && (focusableElement = utils.DomHandler.getFirstFocusableElement(target, getComputedSelector(firstFocusableSelector)));
|
|
4054
4090
|
utils.DomHandler.focus(focusableElement);
|
|
4055
4091
|
};
|
|
@@ -5165,7 +5201,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5165
5201
|
column: props.column
|
|
5166
5202
|
});
|
|
5167
5203
|
};
|
|
5168
|
-
var
|
|
5204
|
+
var onResizeStart = function onResizeStart(event) {
|
|
5169
5205
|
props.onColumnResizeStart({
|
|
5170
5206
|
originalEvent: event,
|
|
5171
5207
|
column: props.column
|
|
@@ -5202,7 +5238,10 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5202
5238
|
var columnResizerProps = mergeProps({
|
|
5203
5239
|
className: cx('columnResizer'),
|
|
5204
5240
|
onMouseDown: function onMouseDown(e) {
|
|
5205
|
-
return
|
|
5241
|
+
return onResizeStart(e);
|
|
5242
|
+
},
|
|
5243
|
+
onTouchStart: function onTouchStart(e) {
|
|
5244
|
+
return onResizeStart(e);
|
|
5206
5245
|
},
|
|
5207
5246
|
onClick: function onClick(e) {
|
|
5208
5247
|
return onResizerClick(e);
|
|
@@ -5262,7 +5301,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5262
5301
|
onChange: props.onColumnCheckboxChange,
|
|
5263
5302
|
disabled: props.empty,
|
|
5264
5303
|
ptCallbacks: ptCallbacks,
|
|
5265
|
-
metaData: parentMetaData
|
|
5304
|
+
metaData: parentMetaData,
|
|
5305
|
+
unstyled: props.unstyled
|
|
5266
5306
|
});
|
|
5267
5307
|
}
|
|
5268
5308
|
return null;
|
|
@@ -5620,19 +5660,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5620
5660
|
});
|
|
5621
5661
|
TableHeader.displayName = 'TableHeader';
|
|
5622
5662
|
|
|
5623
|
-
var getStorage = function getStorage(stateStorageProp) {
|
|
5624
|
-
switch (stateStorageProp) {
|
|
5625
|
-
case 'local':
|
|
5626
|
-
return window.localStorage;
|
|
5627
|
-
case 'session':
|
|
5628
|
-
return window.sessionStorage;
|
|
5629
|
-
case 'custom':
|
|
5630
|
-
return null;
|
|
5631
|
-
default:
|
|
5632
|
-
throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
|
|
5633
|
-
}
|
|
5634
|
-
};
|
|
5635
|
-
|
|
5636
5663
|
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; } } }; }
|
|
5637
5664
|
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); }
|
|
5638
5665
|
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; }
|
|
@@ -5741,29 +5768,40 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5741
5768
|
setRowsState(props.rows);
|
|
5742
5769
|
setD_rowsState(props.rows);
|
|
5743
5770
|
}
|
|
5771
|
+
var columnResizeStartListener = function columnResizeStartListener(event) {
|
|
5772
|
+
return columnResizing.current && onColumnResize(event);
|
|
5773
|
+
};
|
|
5774
|
+
var columnResizeEndListener = function columnResizeEndListener() {
|
|
5775
|
+
return columnResizing.current && (columnResizing.current = false, onColumnResizeEnd());
|
|
5776
|
+
};
|
|
5744
5777
|
var _useEventListener = hooks.useEventListener({
|
|
5745
5778
|
type: 'mousemove',
|
|
5746
|
-
listener:
|
|
5747
|
-
if (columnResizing.current) {
|
|
5748
|
-
onColumnResize(event);
|
|
5749
|
-
}
|
|
5750
|
-
}
|
|
5779
|
+
listener: columnResizeStartListener
|
|
5751
5780
|
}),
|
|
5752
5781
|
_useEventListener2 = _slicedToArray(_useEventListener, 2),
|
|
5753
5782
|
bindDocumentMouseMoveListener = _useEventListener2[0],
|
|
5754
5783
|
unbindDocumentMouseMoveListener = _useEventListener2[1];
|
|
5755
5784
|
var _useEventListener3 = hooks.useEventListener({
|
|
5756
5785
|
type: 'mouseup',
|
|
5757
|
-
listener:
|
|
5758
|
-
if (columnResizing.current) {
|
|
5759
|
-
columnResizing.current = false;
|
|
5760
|
-
onColumnResizeEnd();
|
|
5761
|
-
}
|
|
5762
|
-
}
|
|
5786
|
+
listener: columnResizeEndListener
|
|
5763
5787
|
}),
|
|
5764
5788
|
_useEventListener4 = _slicedToArray(_useEventListener3, 2),
|
|
5765
5789
|
bindDocumentMouseUpListener = _useEventListener4[0],
|
|
5766
5790
|
unbindDocumentMouseUpListener = _useEventListener4[1];
|
|
5791
|
+
var _useEventListener5 = hooks.useEventListener({
|
|
5792
|
+
type: 'touchmove',
|
|
5793
|
+
listener: columnResizeStartListener
|
|
5794
|
+
}),
|
|
5795
|
+
_useEventListener6 = _slicedToArray(_useEventListener5, 2),
|
|
5796
|
+
bindDocumentTouchMoveListener = _useEventListener6[0],
|
|
5797
|
+
unbindDocumentTouchMoveListener = _useEventListener6[1];
|
|
5798
|
+
var _useEventListener7 = hooks.useEventListener({
|
|
5799
|
+
type: 'touchend',
|
|
5800
|
+
listener: columnResizeEndListener
|
|
5801
|
+
}),
|
|
5802
|
+
_useEventListener8 = _slicedToArray(_useEventListener7, 2),
|
|
5803
|
+
bindDocumentTouchEndListener = _useEventListener8[0],
|
|
5804
|
+
unbindDocumentTouchEndListener = _useEventListener8[1];
|
|
5767
5805
|
var isCustomStateStorage = function isCustomStateStorage() {
|
|
5768
5806
|
return props.stateStorage === 'custom';
|
|
5769
5807
|
};
|
|
@@ -6099,7 +6137,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
6099
6137
|
resizeColumn.current = column;
|
|
6100
6138
|
resizeColumnElement.current = event.currentTarget.parentElement;
|
|
6101
6139
|
columnResizing.current = true;
|
|
6102
|
-
lastResizeHelperX.current = event.pageX - containerLeft + elementRef.current.scrollLeft;
|
|
6140
|
+
lastResizeHelperX.current = (event.type === 'touchstart' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft;
|
|
6103
6141
|
bindColumnResizeEvents();
|
|
6104
6142
|
};
|
|
6105
6143
|
var onColumnResize = function onColumnResize(event) {
|
|
@@ -6107,7 +6145,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
6107
6145
|
elementRef.current.setAttribute('data-p-unselectable-text', true);
|
|
6108
6146
|
resizeHelperRef.current.style.height = elementRef.current.offsetHeight + 'px';
|
|
6109
6147
|
resizeHelperRef.current.style.top = 0 + 'px';
|
|
6110
|
-
resizeHelperRef.current.style.left = event.pageX - containerLeft + elementRef.current.scrollLeft + 'px';
|
|
6148
|
+
resizeHelperRef.current.style.left = (event.type === 'touchmove' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft + 'px';
|
|
6111
6149
|
resizeHelperRef.current.style.display = 'block';
|
|
6112
6150
|
};
|
|
6113
6151
|
var onColumnResizeEnd = function onColumnResizeEnd() {
|
|
@@ -6178,10 +6216,14 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
6178
6216
|
var bindColumnResizeEvents = function bindColumnResizeEvents() {
|
|
6179
6217
|
bindDocumentMouseMoveListener();
|
|
6180
6218
|
bindDocumentMouseUpListener();
|
|
6219
|
+
bindDocumentTouchMoveListener();
|
|
6220
|
+
bindDocumentTouchEndListener();
|
|
6181
6221
|
};
|
|
6182
6222
|
var unbindColumnResizeEvents = function unbindColumnResizeEvents() {
|
|
6183
6223
|
unbindDocumentMouseMoveListener();
|
|
6184
6224
|
unbindDocumentMouseUpListener();
|
|
6225
|
+
unbindDocumentTouchMoveListener();
|
|
6226
|
+
unbindDocumentTouchEndListener();
|
|
6185
6227
|
};
|
|
6186
6228
|
var onColumnHeaderMouseDown = function onColumnHeaderMouseDown(e) {
|
|
6187
6229
|
utils.DomHandler.clearSelection();
|
|
@@ -6247,7 +6289,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
6247
6289
|
draggedColumnElement.current = findParentHeader(event.currentTarget);
|
|
6248
6290
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
6249
6291
|
};
|
|
6250
|
-
|
|
6251
6292
|
var onColumnHeaderDragOver = function onColumnHeaderDragOver(e) {
|
|
6252
6293
|
var event = e.originalEvent,
|
|
6253
6294
|
column = e.column;
|
|
@@ -7012,7 +7053,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
7012
7053
|
className: ptCallbacks.cx('loadingIcon')
|
|
7013
7054
|
}, ptCallbacks.ptm('loadingIcon'));
|
|
7014
7055
|
var icon = props.loadingIcon || /*#__PURE__*/React__namespace.createElement(spinner.SpinnerIcon, _extends({}, loadingIconProps, {
|
|
7015
|
-
spin: true
|
|
7056
|
+
spin: true,
|
|
7057
|
+
unstyled: props.unstyled
|
|
7016
7058
|
}));
|
|
7017
7059
|
var loadingIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, loadingIconProps), {
|
|
7018
7060
|
props: props
|
|
@@ -7179,7 +7221,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
7179
7221
|
value: props.frozenValue,
|
|
7180
7222
|
virtualScrollerOptions: options,
|
|
7181
7223
|
ptCallbacks: ptCallbacks,
|
|
7182
|
-
metaData: metaData
|
|
7224
|
+
metaData: metaData,
|
|
7225
|
+
unstyled: props.unstyled
|
|
7183
7226
|
});
|
|
7184
7227
|
var body = /*#__PURE__*/React__namespace.createElement(TableBody, {
|
|
7185
7228
|
hostName: "DataTable",
|
|
@@ -7262,7 +7305,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
7262
7305
|
virtualScrollerContentRef: contentRef,
|
|
7263
7306
|
virtualScrollerOptions: options,
|
|
7264
7307
|
ptCallbacks: ptCallbacks,
|
|
7265
|
-
metaData: metaData
|
|
7308
|
+
metaData: metaData,
|
|
7309
|
+
unstyled: props.unstyled
|
|
7266
7310
|
});
|
|
7267
7311
|
var spacerBody = utils.ObjectUtils.isNotEmpty(spacerStyle) ? /*#__PURE__*/React__namespace.createElement(TableBody, {
|
|
7268
7312
|
hostName: "DataTable",
|
|
@@ -7271,7 +7315,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
7271
7315
|
},
|
|
7272
7316
|
className: "p-datatable-virtualscroller-spacer",
|
|
7273
7317
|
ptCallbacks: ptCallbacks,
|
|
7274
|
-
metaData: metaData
|
|
7318
|
+
metaData: metaData,
|
|
7319
|
+
unstyled: props.unstyled
|
|
7275
7320
|
}) : null;
|
|
7276
7321
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, frozenBody, body, spacerBody);
|
|
7277
7322
|
};
|
|
@@ -7283,7 +7328,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
7283
7328
|
columns: columns,
|
|
7284
7329
|
footerColumnGroup: props.footerColumnGroup,
|
|
7285
7330
|
ptCallbacks: ptCallbacks,
|
|
7286
|
-
metaData: metaData
|
|
7331
|
+
metaData: metaData,
|
|
7332
|
+
unstyled: props.unstyled
|
|
7287
7333
|
});
|
|
7288
7334
|
};
|
|
7289
7335
|
var createContent = function createContent(processedData, columns, selectionModeInColumn, empty) {
|
|
@@ -7318,6 +7364,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
7318
7364
|
parent: metaData
|
|
7319
7365
|
},
|
|
7320
7366
|
showSpacer: false,
|
|
7367
|
+
unstyled: props.unstyled,
|
|
7321
7368
|
contentTemplate: function contentTemplate(options) {
|
|
7322
7369
|
var ref = function ref(el) {
|
|
7323
7370
|
tableRef.current = el;
|