primereact 10.8.0 → 10.8.1
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 +1 -2
- package/core/core.min.js +1 -1
- package/datatable/datatable.cjs.js +11 -20
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +1 -1
- package/datatable/datatable.esm.js +11 -20
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +11 -20
- 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 +42 -37
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +42 -37
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +42 -37
- 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/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/primereact.all.esm.js
CHANGED
|
@@ -8154,11 +8154,15 @@ var AutoComplete = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
8154
8154
|
};
|
|
8155
8155
|
var onOverlayEntering = function onOverlayEntering() {
|
|
8156
8156
|
if (props.autoHighlight && props.suggestions && props.suggestions.length) {
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8157
|
+
autoHighlightFirstOption();
|
|
8158
|
+
}
|
|
8159
|
+
};
|
|
8160
|
+
var autoHighlightFirstOption = function autoHighlightFirstOption() {
|
|
8161
|
+
var _getScrollableElement;
|
|
8162
|
+
var element = (_getScrollableElement = getScrollableElement()) === null || _getScrollableElement === void 0 || (_getScrollableElement = _getScrollableElement.firstChild) === null || _getScrollableElement === void 0 ? void 0 : _getScrollableElement.firstChild;
|
|
8163
|
+
if (element) {
|
|
8164
|
+
!isUnstyled() && DomHandler.addClass(element, 'p-highlight');
|
|
8165
|
+
element.setAttribute('data-p-highlight', true);
|
|
8162
8166
|
}
|
|
8163
8167
|
};
|
|
8164
8168
|
var onOverlayEntered = function onOverlayEntered() {
|
|
@@ -8362,7 +8366,8 @@ var AutoComplete = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
8362
8366
|
}) : false;
|
|
8363
8367
|
};
|
|
8364
8368
|
var getScrollableElement = function getScrollableElement() {
|
|
8365
|
-
|
|
8369
|
+
var _overlayRef$current;
|
|
8370
|
+
return overlayRef === null || overlayRef === void 0 || (_overlayRef$current = overlayRef.current) === null || _overlayRef$current === void 0 ? void 0 : _overlayRef$current.firstChild;
|
|
8366
8371
|
};
|
|
8367
8372
|
var getOptionGroupLabel = function getOptionGroupLabel(optionGroup) {
|
|
8368
8373
|
return props.optionGroupLabel ? ObjectUtils.resolveFieldData(optionGroup, props.optionGroupLabel) : optionGroup;
|
|
@@ -8385,6 +8390,11 @@ var AutoComplete = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
8385
8390
|
}
|
|
8386
8391
|
alignOverlay();
|
|
8387
8392
|
});
|
|
8393
|
+
useUpdateEffect(function () {
|
|
8394
|
+
if (searchingState && props.autoHighlight && props.suggestions && props.suggestions.length) {
|
|
8395
|
+
autoHighlightFirstOption();
|
|
8396
|
+
}
|
|
8397
|
+
}, [searchingState]);
|
|
8388
8398
|
useUpdateEffect(function () {
|
|
8389
8399
|
if (searchingState) {
|
|
8390
8400
|
ObjectUtils.isNotEmpty(props.suggestions) || props.showEmptyMessage ? show() : hide();
|
|
@@ -9517,7 +9527,6 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
9517
9527
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
9518
9528
|
idState = _React$useState8[0],
|
|
9519
9529
|
setIdState = _React$useState8[1];
|
|
9520
|
-
var isTypingRef = React.useRef(false);
|
|
9521
9530
|
var metaData = {
|
|
9522
9531
|
props: props,
|
|
9523
9532
|
state: {
|
|
@@ -9645,7 +9654,6 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
9645
9654
|
try {
|
|
9646
9655
|
var value = parseValueFromString(props.timeOnly ? rawValue.replace('_', '') : rawValue);
|
|
9647
9656
|
if (isValidSelection(value)) {
|
|
9648
|
-
isTypingRef.current = true;
|
|
9649
9657
|
updateModel(event, value);
|
|
9650
9658
|
updateViewDate(event, value.length ? value[0] : value);
|
|
9651
9659
|
}
|
|
@@ -12124,8 +12132,10 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
12124
12132
|
viewChangedWithKeyDown.current = false;
|
|
12125
12133
|
}, [props.view]);
|
|
12126
12134
|
useUpdateEffect(function () {
|
|
12127
|
-
|
|
12128
|
-
|
|
12135
|
+
if (visible && !props.inline) {
|
|
12136
|
+
focusToFirstCell();
|
|
12137
|
+
}
|
|
12138
|
+
}, [visible, currentView, props.inline]);
|
|
12129
12139
|
useUpdateEffect(function () {
|
|
12130
12140
|
if (!props.onViewDateChange && !viewStateChanged.current) {
|
|
12131
12141
|
setValue(props.value);
|
|
@@ -12145,10 +12155,12 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
12145
12155
|
useUpdateEffect(function () {
|
|
12146
12156
|
var newDate = props.value;
|
|
12147
12157
|
if (previousValue !== newDate) {
|
|
12148
|
-
|
|
12158
|
+
var isInputFocused = document.activeElement === inputRef.current;
|
|
12159
|
+
|
|
12160
|
+
// Do not update value in input if user types something in it:
|
|
12161
|
+
if (!isInputFocused) {
|
|
12149
12162
|
updateInputfield(newDate);
|
|
12150
12163
|
}
|
|
12151
|
-
isTypingRef.current = false;
|
|
12152
12164
|
|
|
12153
12165
|
// #3516 view date not updated when value set programatically
|
|
12154
12166
|
if (!newDate) return;
|
|
@@ -19929,8 +19941,7 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
19929
19941
|
cx = _InputNumberBase$setM.cx,
|
|
19930
19942
|
isUnstyled = _InputNumberBase$setM.isUnstyled;
|
|
19931
19943
|
useHandleStyle(InputNumberBase.css.styles, isUnstyled, {
|
|
19932
|
-
name: 'inputnumber'
|
|
19933
|
-
styled: true
|
|
19944
|
+
name: 'inputnumber'
|
|
19934
19945
|
});
|
|
19935
19946
|
var elementRef = React.useRef(null);
|
|
19936
19947
|
var inputRef = React.useRef(null);
|
|
@@ -23690,7 +23701,7 @@ var RowCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
23690
23701
|
props: props
|
|
23691
23702
|
});
|
|
23692
23703
|
var tabIndex = props.disabled ? null : '0';
|
|
23693
|
-
var checkboxProps =
|
|
23704
|
+
var checkboxProps = {
|
|
23694
23705
|
role: 'checkbox',
|
|
23695
23706
|
'aria-checked': props.checked,
|
|
23696
23707
|
tabIndex: tabIndex,
|
|
@@ -23699,8 +23710,9 @@ var RowCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
23699
23710
|
checked: props.checked,
|
|
23700
23711
|
icon: checkIcon,
|
|
23701
23712
|
disabled: props.disabled,
|
|
23713
|
+
unstyled: props.unstyled,
|
|
23702
23714
|
pt: getColumnPTOptions('rowCheckbox')
|
|
23703
|
-
}
|
|
23715
|
+
};
|
|
23704
23716
|
return /*#__PURE__*/React.createElement(Checkbox, checkboxProps);
|
|
23705
23717
|
});
|
|
23706
23718
|
RowCheckbox.displayName = 'RowCheckbox';
|
|
@@ -23929,7 +23941,7 @@ var RowRadioButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
23929
23941
|
props.onChange(event);
|
|
23930
23942
|
}
|
|
23931
23943
|
};
|
|
23932
|
-
var radioButtonProps =
|
|
23944
|
+
var radioButtonProps = {
|
|
23933
23945
|
role: 'radio',
|
|
23934
23946
|
'aria-checked': props.checked,
|
|
23935
23947
|
checked: props.checked,
|
|
@@ -23938,7 +23950,7 @@ var RowRadioButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
23938
23950
|
onChange: onChange,
|
|
23939
23951
|
unstyled: props.unstyled,
|
|
23940
23952
|
pt: getColumnPTOptions('rowRadioButton')
|
|
23941
|
-
}
|
|
23953
|
+
};
|
|
23942
23954
|
return /*#__PURE__*/React.createElement(RadioButton, radioButtonProps);
|
|
23943
23955
|
});
|
|
23944
23956
|
RowRadioButton.displayName = 'RowRadioButton';
|
|
@@ -25603,32 +25615,20 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
25603
25615
|
var selectRange = function selectRange(event) {
|
|
25604
25616
|
var rangeStart;
|
|
25605
25617
|
var rangeEnd;
|
|
25606
|
-
var selectedSize;
|
|
25607
25618
|
var isAllowCellSelection = allowCellSelection();
|
|
25608
|
-
var index = ObjectUtils.findIndexInList(event.data, props.value, props.dataKey);
|
|
25609
25619
|
if (rangeRowIndex.current > anchorRowIndex.current) {
|
|
25610
25620
|
rangeStart = anchorRowIndex.current;
|
|
25611
25621
|
rangeEnd = rangeRowIndex.current;
|
|
25612
|
-
if (!isAllowCellSelection) {
|
|
25613
|
-
selectedSize = rangeEnd - rangeStart;
|
|
25614
|
-
rangeEnd = index;
|
|
25615
|
-
rangeStart = index - selectedSize;
|
|
25616
|
-
}
|
|
25617
25622
|
} else if (rangeRowIndex.current < anchorRowIndex.current) {
|
|
25618
25623
|
rangeStart = rangeRowIndex.current;
|
|
25619
25624
|
rangeEnd = anchorRowIndex.current;
|
|
25620
|
-
if (!isAllowCellSelection) {
|
|
25621
|
-
selectedSize = rangeEnd - rangeStart;
|
|
25622
|
-
rangeStart = index;
|
|
25623
|
-
rangeEnd = index + selectedSize;
|
|
25624
|
-
}
|
|
25625
25625
|
} else {
|
|
25626
25626
|
rangeStart = rangeEnd = rangeRowIndex.current;
|
|
25627
25627
|
}
|
|
25628
25628
|
return isAllowCellSelection ? selectRangeOnCell(event, rangeStart, rangeEnd) : selectRangeOnRow(event, rangeStart, rangeEnd);
|
|
25629
25629
|
};
|
|
25630
25630
|
var selectRangeOnRow = function selectRangeOnRow(event, rowRangeStart, rowRangeEnd) {
|
|
25631
|
-
var value = props.value;
|
|
25631
|
+
var value = props.tableProps.value;
|
|
25632
25632
|
var selection = [];
|
|
25633
25633
|
for (var i = rowRangeStart; i <= rowRangeEnd; i++) {
|
|
25634
25634
|
var rangeRowData = value[i];
|
|
@@ -27545,7 +27545,7 @@ var HeaderCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
27545
27545
|
props: props
|
|
27546
27546
|
});
|
|
27547
27547
|
var tabIndex = props.disabled ? null : 0;
|
|
27548
|
-
var headerCheckboxProps =
|
|
27548
|
+
var headerCheckboxProps = {
|
|
27549
27549
|
role: 'checkbox',
|
|
27550
27550
|
'aria-checked': props.checked,
|
|
27551
27551
|
'aria-label': props.checked ? ariaLabel('selectAll') : ariaLabel('unselectAll'),
|
|
@@ -27553,8 +27553,10 @@ var HeaderCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
27553
27553
|
onChange: onChange,
|
|
27554
27554
|
icon: checkIcon,
|
|
27555
27555
|
checked: props.checked,
|
|
27556
|
-
disabled: props.disabled
|
|
27557
|
-
|
|
27556
|
+
disabled: props.disabled,
|
|
27557
|
+
unstyled: props.unstyled,
|
|
27558
|
+
pt: getColumnPTOptions('headerCheckbox')
|
|
27559
|
+
};
|
|
27558
27560
|
return /*#__PURE__*/React.createElement(Checkbox, headerCheckboxProps);
|
|
27559
27561
|
});
|
|
27560
27562
|
HeaderCheckbox.displayName = 'HeaderCheckbox';
|
|
@@ -31084,11 +31086,13 @@ var Editor = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (in
|
|
|
31084
31086
|
});
|
|
31085
31087
|
}
|
|
31086
31088
|
};
|
|
31089
|
+
var initValue = useRef(props.value);
|
|
31090
|
+
initValue.current = props.value;
|
|
31087
31091
|
var initQuill = function initQuill(quillInstance) {
|
|
31088
31092
|
quill.current = quillInstance;
|
|
31089
|
-
if (
|
|
31093
|
+
if (initValue.current) {
|
|
31090
31094
|
quillInstance.setContents(quillInstance.clipboard.convert({
|
|
31091
|
-
html:
|
|
31095
|
+
html: initValue.current,
|
|
31092
31096
|
text: ''
|
|
31093
31097
|
}));
|
|
31094
31098
|
}
|
|
@@ -52355,7 +52359,8 @@ var StepperBase = ComponentBase.extend({
|
|
|
52355
52359
|
__TYPE: 'Stepper',
|
|
52356
52360
|
activeStep: 0,
|
|
52357
52361
|
orientation: 'horizontal',
|
|
52358
|
-
linear: false
|
|
52362
|
+
linear: false,
|
|
52363
|
+
onChangeStep: null
|
|
52359
52364
|
},
|
|
52360
52365
|
css: {
|
|
52361
52366
|
classes: classes$b,
|