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.js
CHANGED
|
@@ -905,7 +905,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
905
905
|
props: props
|
|
906
906
|
});
|
|
907
907
|
var tabIndex = props.disabled ? null : '0';
|
|
908
|
-
var checkboxProps =
|
|
908
|
+
var checkboxProps = {
|
|
909
909
|
role: 'checkbox',
|
|
910
910
|
'aria-checked': props.checked,
|
|
911
911
|
tabIndex: tabIndex,
|
|
@@ -914,8 +914,9 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
914
914
|
checked: props.checked,
|
|
915
915
|
icon: checkIcon,
|
|
916
916
|
disabled: props.disabled,
|
|
917
|
+
unstyled: props.unstyled,
|
|
917
918
|
pt: getColumnPTOptions('rowCheckbox')
|
|
918
|
-
}
|
|
919
|
+
};
|
|
919
920
|
return /*#__PURE__*/React__namespace.createElement(Checkbox, checkboxProps);
|
|
920
921
|
});
|
|
921
922
|
RowCheckbox.displayName = 'RowCheckbox';
|
|
@@ -1144,7 +1145,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1144
1145
|
props.onChange(event);
|
|
1145
1146
|
}
|
|
1146
1147
|
};
|
|
1147
|
-
var radioButtonProps =
|
|
1148
|
+
var radioButtonProps = {
|
|
1148
1149
|
role: 'radio',
|
|
1149
1150
|
'aria-checked': props.checked,
|
|
1150
1151
|
checked: props.checked,
|
|
@@ -1153,7 +1154,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1153
1154
|
onChange: onChange,
|
|
1154
1155
|
unstyled: props.unstyled,
|
|
1155
1156
|
pt: getColumnPTOptions('rowRadioButton')
|
|
1156
|
-
}
|
|
1157
|
+
};
|
|
1157
1158
|
return /*#__PURE__*/React__namespace.createElement(RadioButton, radioButtonProps);
|
|
1158
1159
|
});
|
|
1159
1160
|
RowRadioButton.displayName = 'RowRadioButton';
|
|
@@ -2444,8 +2445,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2444
2445
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
2445
2446
|
ptm = _props$ptCallbacks.ptm,
|
|
2446
2447
|
ptmo = _props$ptCallbacks.ptmo,
|
|
2447
|
-
cx = _props$ptCallbacks.cx
|
|
2448
|
-
|
|
2448
|
+
cx = _props$ptCallbacks.cx;
|
|
2449
|
+
_props$ptCallbacks.isUnstyled;
|
|
2449
2450
|
var _onClick = function onClick(event) {
|
|
2450
2451
|
props.onClick({
|
|
2451
2452
|
originalEvent: event,
|
|
@@ -2468,8 +2469,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2468
2469
|
};
|
|
2469
2470
|
var rowGroupTogglerIconProps = mergeProps({
|
|
2470
2471
|
className: cx('rowGroupTogglerIcon'),
|
|
2471
|
-
'aria-hidden': true
|
|
2472
|
-
unstyled: isUnstyled()
|
|
2472
|
+
'aria-hidden': true
|
|
2473
2473
|
}, ptm('rowGroupTogglerIcon'), getColumnPTOptions('rowGroupTogglerIcon'));
|
|
2474
2474
|
var icon = props.expanded ? props.expandedRowIcon || /*#__PURE__*/React__namespace.createElement(chevrondown.ChevronDownIcon, rowGroupTogglerIconProps) : props.collapsedRowIcon || /*#__PURE__*/React__namespace.createElement(chevronright.ChevronRightIcon, rowGroupTogglerIconProps);
|
|
2475
2475
|
var togglerIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread$8({}, rowGroupTogglerIconProps), {
|
|
@@ -2483,8 +2483,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2483
2483
|
},
|
|
2484
2484
|
className: cx('rowGroupToggler'),
|
|
2485
2485
|
tabIndex: props.tabIndex,
|
|
2486
|
-
'aria-label': label
|
|
2487
|
-
unstyled: isUnstyled()
|
|
2486
|
+
'aria-label': label
|
|
2488
2487
|
}, ptm('rowGroupToggler'), getColumnPTOptions('rowGroupToggler'));
|
|
2489
2488
|
return /*#__PURE__*/React__namespace.createElement("button", rowGroupTogglerProps, togglerIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
2490
2489
|
});
|
|
@@ -2818,32 +2817,20 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2818
2817
|
var selectRange = function selectRange(event) {
|
|
2819
2818
|
var rangeStart;
|
|
2820
2819
|
var rangeEnd;
|
|
2821
|
-
var selectedSize;
|
|
2822
2820
|
var isAllowCellSelection = allowCellSelection();
|
|
2823
|
-
var index = utils.ObjectUtils.findIndexInList(event.data, props.value, props.dataKey);
|
|
2824
2821
|
if (rangeRowIndex.current > anchorRowIndex.current) {
|
|
2825
2822
|
rangeStart = anchorRowIndex.current;
|
|
2826
2823
|
rangeEnd = rangeRowIndex.current;
|
|
2827
|
-
if (!isAllowCellSelection) {
|
|
2828
|
-
selectedSize = rangeEnd - rangeStart;
|
|
2829
|
-
rangeEnd = index;
|
|
2830
|
-
rangeStart = index - selectedSize;
|
|
2831
|
-
}
|
|
2832
2824
|
} else if (rangeRowIndex.current < anchorRowIndex.current) {
|
|
2833
2825
|
rangeStart = rangeRowIndex.current;
|
|
2834
2826
|
rangeEnd = anchorRowIndex.current;
|
|
2835
|
-
if (!isAllowCellSelection) {
|
|
2836
|
-
selectedSize = rangeEnd - rangeStart;
|
|
2837
|
-
rangeStart = index;
|
|
2838
|
-
rangeEnd = index + selectedSize;
|
|
2839
|
-
}
|
|
2840
2827
|
} else {
|
|
2841
2828
|
rangeStart = rangeEnd = rangeRowIndex.current;
|
|
2842
2829
|
}
|
|
2843
2830
|
return isAllowCellSelection ? selectRangeOnCell(event, rangeStart, rangeEnd) : selectRangeOnRow(event, rangeStart, rangeEnd);
|
|
2844
2831
|
};
|
|
2845
2832
|
var selectRangeOnRow = function selectRangeOnRow(event, rowRangeStart, rowRangeEnd) {
|
|
2846
|
-
var value = props.value;
|
|
2833
|
+
var value = props.tableProps.value;
|
|
2847
2834
|
var selection = [];
|
|
2848
2835
|
for (var i = rowRangeStart; i <= rowRangeEnd; i++) {
|
|
2849
2836
|
var rangeRowData = value[i];
|
|
@@ -5014,7 +5001,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5014
5001
|
props: props
|
|
5015
5002
|
});
|
|
5016
5003
|
var tabIndex = props.disabled ? null : 0;
|
|
5017
|
-
var headerCheckboxProps =
|
|
5004
|
+
var headerCheckboxProps = {
|
|
5018
5005
|
role: 'checkbox',
|
|
5019
5006
|
'aria-checked': props.checked,
|
|
5020
5007
|
'aria-label': props.checked ? ariaLabel('selectAll') : ariaLabel('unselectAll'),
|
|
@@ -5022,8 +5009,10 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5022
5009
|
onChange: onChange,
|
|
5023
5010
|
icon: checkIcon,
|
|
5024
5011
|
checked: props.checked,
|
|
5025
|
-
disabled: props.disabled
|
|
5026
|
-
|
|
5012
|
+
disabled: props.disabled,
|
|
5013
|
+
unstyled: props.unstyled,
|
|
5014
|
+
pt: getColumnPTOptions('headerCheckbox')
|
|
5015
|
+
};
|
|
5027
5016
|
return /*#__PURE__*/React__namespace.createElement(Checkbox, headerCheckboxProps);
|
|
5028
5017
|
});
|
|
5029
5018
|
HeaderCheckbox.displayName = 'HeaderCheckbox';
|
|
@@ -5627,10 +5616,11 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5627
5616
|
className: utils.classNames(filterHeaderClassName, className, cx('headerCell', {
|
|
5628
5617
|
frozen: frozen,
|
|
5629
5618
|
column: col
|
|
5630
|
-
}))
|
|
5631
|
-
key: colKey
|
|
5619
|
+
}))
|
|
5632
5620
|
}, getColumnPTOptions(col, 'root'), getColumnPTOptions(col, 'headerCell'));
|
|
5633
|
-
return /*#__PURE__*/React__namespace.createElement("th",
|
|
5621
|
+
return /*#__PURE__*/React__namespace.createElement("th", _extends({
|
|
5622
|
+
key: colKey
|
|
5623
|
+
}, headerCellProps), checkbox, filterRow);
|
|
5634
5624
|
}
|
|
5635
5625
|
return null;
|
|
5636
5626
|
});
|