primereact 10.8.0 → 10.8.2
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/autocomplete/autocomplete.cjs.js +16 -6
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +16 -6
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +16 -6
- package/autocomplete/autocomplete.min.js +1 -1
- package/calendar/calendar.cjs.js +8 -6
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +8 -6
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +8 -6
- package/calendar/calendar.min.js +1 -1
- package/core/core.js +11 -14
- package/core/core.min.js +2 -2
- package/datatable/datatable.cjs.js +19 -29
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +1 -1
- package/datatable/datatable.esm.js +19 -29
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +19 -29
- package/datatable/datatable.min.js +1 -1
- package/editor/editor.cjs.js +4 -2
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +5 -2
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +4 -2
- package/editor/editor.min.js +1 -1
- package/inplace/inplace.d.ts +1 -1
- package/inputnumber/inputnumber.cjs.js +1 -2
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +1 -2
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +1 -2
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +4 -3
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +4 -3
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +4 -3
- package/inputotp/inputotp.min.js +1 -1
- package/package.json +1 -1
- package/primereact.all.cjs.js +60 -58
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +60 -58
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +60 -58
- package/primereact.all.min.js +1 -1
- package/resources/themes/lara-dark-amber/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-dark-amber/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-dark-amber/theme.css +2 -2
- package/resources/themes/lara-dark-blue/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-dark-blue/theme.css +2 -2
- package/resources/themes/lara-dark-cyan/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-dark-cyan/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-dark-cyan/theme.css +2 -2
- package/resources/themes/lara-dark-green/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-dark-green/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-dark-green/theme.css +2 -2
- package/resources/themes/lara-dark-indigo/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/theme.css +2 -2
- package/resources/themes/lara-dark-pink/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-dark-pink/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-dark-pink/theme.css +2 -2
- package/resources/themes/lara-dark-purple/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-dark-purple/theme.css +6 -6
- package/resources/themes/lara-dark-teal/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-dark-teal/theme.css +2 -2
- package/resources/themes/lara-light-amber/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-light-amber/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-light-amber/theme.css +2 -2
- package/resources/themes/lara-light-blue/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-light-blue/theme.css +2 -2
- package/resources/themes/lara-light-cyan/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-light-cyan/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-light-cyan/theme.css +2 -2
- package/resources/themes/lara-light-green/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-light-green/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-light-green/theme.css +2 -2
- package/resources/themes/lara-light-indigo/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-light-indigo/theme.css +2 -2
- package/resources/themes/lara-light-pink/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-light-pink/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-light-pink/theme.css +2 -2
- package/resources/themes/lara-light-purple/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-light-purple/theme.css +6 -6
- package/resources/themes/lara-light-teal/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/InterVariable.woff2 +0 -0
- package/resources/themes/lara-light-teal/theme.css +2 -2
- 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/stepper/stepper.cjs.js +2 -1
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.js +2 -1
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +2 -1
- package/stepper/stepper.min.js +1 -1
- package/tree/tree.cjs.js +10 -12
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +10 -12
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +10 -12
- package/tree/tree.min.js +1 -1
- package/web-types.json +1 -1
- 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/datatable/datatable.d.ts
CHANGED
|
@@ -1104,7 +1104,7 @@ interface DataTableBaseProps<TValue extends DataTableValueArray> extends Omit<Re
|
|
|
1104
1104
|
* Name of the field that uniquely identifies a record in the data. Should be a unique business key to prevent re-rendering.
|
|
1105
1105
|
* @defaultValue ({currentPage} of {totalPages})
|
|
1106
1106
|
*/
|
|
1107
|
-
dataKey?: string | undefined;
|
|
1107
|
+
dataKey?: string | undefined | ((data: any) => string);
|
|
1108
1108
|
/**
|
|
1109
1109
|
* Default sort order of an unsorted column.
|
|
1110
1110
|
* @defaultValue ({currentPage} of {totalPages})
|
|
@@ -911,7 +911,7 @@ var RowCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
911
911
|
props: props
|
|
912
912
|
});
|
|
913
913
|
var tabIndex = props.disabled ? null : '0';
|
|
914
|
-
var checkboxProps =
|
|
914
|
+
var checkboxProps = {
|
|
915
915
|
role: 'checkbox',
|
|
916
916
|
'aria-checked': props.checked,
|
|
917
917
|
tabIndex: tabIndex,
|
|
@@ -920,8 +920,9 @@ var RowCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
920
920
|
checked: props.checked,
|
|
921
921
|
icon: checkIcon,
|
|
922
922
|
disabled: props.disabled,
|
|
923
|
+
unstyled: props.unstyled,
|
|
923
924
|
pt: getColumnPTOptions('rowCheckbox')
|
|
924
|
-
}
|
|
925
|
+
};
|
|
925
926
|
return /*#__PURE__*/React.createElement(Checkbox, checkboxProps);
|
|
926
927
|
});
|
|
927
928
|
RowCheckbox.displayName = 'RowCheckbox';
|
|
@@ -1150,7 +1151,7 @@ var RowRadioButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
1150
1151
|
props.onChange(event);
|
|
1151
1152
|
}
|
|
1152
1153
|
};
|
|
1153
|
-
var radioButtonProps =
|
|
1154
|
+
var radioButtonProps = {
|
|
1154
1155
|
role: 'radio',
|
|
1155
1156
|
'aria-checked': props.checked,
|
|
1156
1157
|
checked: props.checked,
|
|
@@ -1159,7 +1160,7 @@ var RowRadioButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
1159
1160
|
onChange: onChange,
|
|
1160
1161
|
unstyled: props.unstyled,
|
|
1161
1162
|
pt: getColumnPTOptions('rowRadioButton')
|
|
1162
|
-
}
|
|
1163
|
+
};
|
|
1163
1164
|
return /*#__PURE__*/React.createElement(RadioButton, radioButtonProps);
|
|
1164
1165
|
});
|
|
1165
1166
|
RowRadioButton.displayName = 'RowRadioButton';
|
|
@@ -2450,8 +2451,8 @@ var RowTogglerButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
2450
2451
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
2451
2452
|
ptm = _props$ptCallbacks.ptm,
|
|
2452
2453
|
ptmo = _props$ptCallbacks.ptmo,
|
|
2453
|
-
cx = _props$ptCallbacks.cx
|
|
2454
|
-
|
|
2454
|
+
cx = _props$ptCallbacks.cx;
|
|
2455
|
+
_props$ptCallbacks.isUnstyled;
|
|
2455
2456
|
var _onClick = function onClick(event) {
|
|
2456
2457
|
props.onClick({
|
|
2457
2458
|
originalEvent: event,
|
|
@@ -2474,8 +2475,7 @@ var RowTogglerButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
2474
2475
|
};
|
|
2475
2476
|
var rowGroupTogglerIconProps = mergeProps({
|
|
2476
2477
|
className: cx('rowGroupTogglerIcon'),
|
|
2477
|
-
'aria-hidden': true
|
|
2478
|
-
unstyled: isUnstyled()
|
|
2478
|
+
'aria-hidden': true
|
|
2479
2479
|
}, ptm('rowGroupTogglerIcon'), getColumnPTOptions('rowGroupTogglerIcon'));
|
|
2480
2480
|
var icon = props.expanded ? props.expandedRowIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, rowGroupTogglerIconProps) : props.collapsedRowIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, rowGroupTogglerIconProps);
|
|
2481
2481
|
var togglerIcon = IconUtils.getJSXIcon(icon, _objectSpread$8({}, rowGroupTogglerIconProps), {
|
|
@@ -2489,8 +2489,7 @@ var RowTogglerButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
2489
2489
|
},
|
|
2490
2490
|
className: cx('rowGroupToggler'),
|
|
2491
2491
|
tabIndex: props.tabIndex,
|
|
2492
|
-
'aria-label': label
|
|
2493
|
-
unstyled: isUnstyled()
|
|
2492
|
+
'aria-label': label
|
|
2494
2493
|
}, ptm('rowGroupToggler'), getColumnPTOptions('rowGroupToggler'));
|
|
2495
2494
|
return /*#__PURE__*/React.createElement("button", rowGroupTogglerProps, togglerIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
2496
2495
|
});
|
|
@@ -2824,32 +2823,20 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
2824
2823
|
var selectRange = function selectRange(event) {
|
|
2825
2824
|
var rangeStart;
|
|
2826
2825
|
var rangeEnd;
|
|
2827
|
-
var selectedSize;
|
|
2828
2826
|
var isAllowCellSelection = allowCellSelection();
|
|
2829
|
-
var index = ObjectUtils.findIndexInList(event.data, props.value, props.dataKey);
|
|
2830
2827
|
if (rangeRowIndex.current > anchorRowIndex.current) {
|
|
2831
2828
|
rangeStart = anchorRowIndex.current;
|
|
2832
2829
|
rangeEnd = rangeRowIndex.current;
|
|
2833
|
-
if (!isAllowCellSelection) {
|
|
2834
|
-
selectedSize = rangeEnd - rangeStart;
|
|
2835
|
-
rangeEnd = index;
|
|
2836
|
-
rangeStart = index - selectedSize;
|
|
2837
|
-
}
|
|
2838
2830
|
} else if (rangeRowIndex.current < anchorRowIndex.current) {
|
|
2839
2831
|
rangeStart = rangeRowIndex.current;
|
|
2840
2832
|
rangeEnd = anchorRowIndex.current;
|
|
2841
|
-
if (!isAllowCellSelection) {
|
|
2842
|
-
selectedSize = rangeEnd - rangeStart;
|
|
2843
|
-
rangeStart = index;
|
|
2844
|
-
rangeEnd = index + selectedSize;
|
|
2845
|
-
}
|
|
2846
2833
|
} else {
|
|
2847
2834
|
rangeStart = rangeEnd = rangeRowIndex.current;
|
|
2848
2835
|
}
|
|
2849
2836
|
return isAllowCellSelection ? selectRangeOnCell(event, rangeStart, rangeEnd) : selectRangeOnRow(event, rangeStart, rangeEnd);
|
|
2850
2837
|
};
|
|
2851
2838
|
var selectRangeOnRow = function selectRangeOnRow(event, rowRangeStart, rowRangeEnd) {
|
|
2852
|
-
var value = props.value;
|
|
2839
|
+
var value = props.tableProps.value;
|
|
2853
2840
|
var selection = [];
|
|
2854
2841
|
for (var i = rowRangeStart; i <= rowRangeEnd; i++) {
|
|
2855
2842
|
var rangeRowData = value[i];
|
|
@@ -5020,7 +5007,7 @@ var HeaderCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
5020
5007
|
props: props
|
|
5021
5008
|
});
|
|
5022
5009
|
var tabIndex = props.disabled ? null : 0;
|
|
5023
|
-
var headerCheckboxProps =
|
|
5010
|
+
var headerCheckboxProps = {
|
|
5024
5011
|
role: 'checkbox',
|
|
5025
5012
|
'aria-checked': props.checked,
|
|
5026
5013
|
'aria-label': props.checked ? ariaLabel('selectAll') : ariaLabel('unselectAll'),
|
|
@@ -5028,8 +5015,10 @@ var HeaderCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
5028
5015
|
onChange: onChange,
|
|
5029
5016
|
icon: checkIcon,
|
|
5030
5017
|
checked: props.checked,
|
|
5031
|
-
disabled: props.disabled
|
|
5032
|
-
|
|
5018
|
+
disabled: props.disabled,
|
|
5019
|
+
unstyled: props.unstyled,
|
|
5020
|
+
pt: getColumnPTOptions('headerCheckbox')
|
|
5021
|
+
};
|
|
5033
5022
|
return /*#__PURE__*/React.createElement(Checkbox, headerCheckboxProps);
|
|
5034
5023
|
});
|
|
5035
5024
|
HeaderCheckbox.displayName = 'HeaderCheckbox';
|
|
@@ -5633,10 +5622,11 @@ var TableHeader = /*#__PURE__*/React.memo(function (props) {
|
|
|
5633
5622
|
className: classNames(filterHeaderClassName, className, cx('headerCell', {
|
|
5634
5623
|
frozen: frozen,
|
|
5635
5624
|
column: col
|
|
5636
|
-
}))
|
|
5637
|
-
key: colKey
|
|
5625
|
+
}))
|
|
5638
5626
|
}, getColumnPTOptions(col, 'root'), getColumnPTOptions(col, 'headerCell'));
|
|
5639
|
-
return /*#__PURE__*/React.createElement("th",
|
|
5627
|
+
return /*#__PURE__*/React.createElement("th", _extends({
|
|
5628
|
+
key: colKey
|
|
5629
|
+
}, headerCellProps), checkbox, filterRow);
|
|
5640
5630
|
}
|
|
5641
5631
|
return null;
|
|
5642
5632
|
});
|