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/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';
|
|
@@ -25229,8 +25241,8 @@ var RowTogglerButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
25229
25241
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
25230
25242
|
ptm = _props$ptCallbacks.ptm,
|
|
25231
25243
|
ptmo = _props$ptCallbacks.ptmo,
|
|
25232
|
-
cx = _props$ptCallbacks.cx
|
|
25233
|
-
|
|
25244
|
+
cx = _props$ptCallbacks.cx;
|
|
25245
|
+
_props$ptCallbacks.isUnstyled;
|
|
25234
25246
|
var _onClick = function onClick(event) {
|
|
25235
25247
|
props.onClick({
|
|
25236
25248
|
originalEvent: event,
|
|
@@ -25253,8 +25265,7 @@ var RowTogglerButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
25253
25265
|
};
|
|
25254
25266
|
var rowGroupTogglerIconProps = mergeProps({
|
|
25255
25267
|
className: cx('rowGroupTogglerIcon'),
|
|
25256
|
-
'aria-hidden': true
|
|
25257
|
-
unstyled: isUnstyled()
|
|
25268
|
+
'aria-hidden': true
|
|
25258
25269
|
}, ptm('rowGroupTogglerIcon'), getColumnPTOptions('rowGroupTogglerIcon'));
|
|
25259
25270
|
var icon = props.expanded ? props.expandedRowIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, rowGroupTogglerIconProps) : props.collapsedRowIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, rowGroupTogglerIconProps);
|
|
25260
25271
|
var togglerIcon = IconUtils.getJSXIcon(icon, _objectSpread$1e({}, rowGroupTogglerIconProps), {
|
|
@@ -25268,8 +25279,7 @@ var RowTogglerButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
25268
25279
|
},
|
|
25269
25280
|
className: cx('rowGroupToggler'),
|
|
25270
25281
|
tabIndex: props.tabIndex,
|
|
25271
|
-
'aria-label': label
|
|
25272
|
-
unstyled: isUnstyled()
|
|
25282
|
+
'aria-label': label
|
|
25273
25283
|
}, ptm('rowGroupToggler'), getColumnPTOptions('rowGroupToggler'));
|
|
25274
25284
|
return /*#__PURE__*/React.createElement("button", rowGroupTogglerProps, togglerIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
25275
25285
|
});
|
|
@@ -25603,32 +25613,20 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
25603
25613
|
var selectRange = function selectRange(event) {
|
|
25604
25614
|
var rangeStart;
|
|
25605
25615
|
var rangeEnd;
|
|
25606
|
-
var selectedSize;
|
|
25607
25616
|
var isAllowCellSelection = allowCellSelection();
|
|
25608
|
-
var index = ObjectUtils.findIndexInList(event.data, props.value, props.dataKey);
|
|
25609
25617
|
if (rangeRowIndex.current > anchorRowIndex.current) {
|
|
25610
25618
|
rangeStart = anchorRowIndex.current;
|
|
25611
25619
|
rangeEnd = rangeRowIndex.current;
|
|
25612
|
-
if (!isAllowCellSelection) {
|
|
25613
|
-
selectedSize = rangeEnd - rangeStart;
|
|
25614
|
-
rangeEnd = index;
|
|
25615
|
-
rangeStart = index - selectedSize;
|
|
25616
|
-
}
|
|
25617
25620
|
} else if (rangeRowIndex.current < anchorRowIndex.current) {
|
|
25618
25621
|
rangeStart = rangeRowIndex.current;
|
|
25619
25622
|
rangeEnd = anchorRowIndex.current;
|
|
25620
|
-
if (!isAllowCellSelection) {
|
|
25621
|
-
selectedSize = rangeEnd - rangeStart;
|
|
25622
|
-
rangeStart = index;
|
|
25623
|
-
rangeEnd = index + selectedSize;
|
|
25624
|
-
}
|
|
25625
25623
|
} else {
|
|
25626
25624
|
rangeStart = rangeEnd = rangeRowIndex.current;
|
|
25627
25625
|
}
|
|
25628
25626
|
return isAllowCellSelection ? selectRangeOnCell(event, rangeStart, rangeEnd) : selectRangeOnRow(event, rangeStart, rangeEnd);
|
|
25629
25627
|
};
|
|
25630
25628
|
var selectRangeOnRow = function selectRangeOnRow(event, rowRangeStart, rowRangeEnd) {
|
|
25631
|
-
var value = props.value;
|
|
25629
|
+
var value = props.tableProps.value;
|
|
25632
25630
|
var selection = [];
|
|
25633
25631
|
for (var i = rowRangeStart; i <= rowRangeEnd; i++) {
|
|
25634
25632
|
var rangeRowData = value[i];
|
|
@@ -27545,7 +27543,7 @@ var HeaderCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
27545
27543
|
props: props
|
|
27546
27544
|
});
|
|
27547
27545
|
var tabIndex = props.disabled ? null : 0;
|
|
27548
|
-
var headerCheckboxProps =
|
|
27546
|
+
var headerCheckboxProps = {
|
|
27549
27547
|
role: 'checkbox',
|
|
27550
27548
|
'aria-checked': props.checked,
|
|
27551
27549
|
'aria-label': props.checked ? ariaLabel('selectAll') : ariaLabel('unselectAll'),
|
|
@@ -27553,8 +27551,10 @@ var HeaderCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
27553
27551
|
onChange: onChange,
|
|
27554
27552
|
icon: checkIcon,
|
|
27555
27553
|
checked: props.checked,
|
|
27556
|
-
disabled: props.disabled
|
|
27557
|
-
|
|
27554
|
+
disabled: props.disabled,
|
|
27555
|
+
unstyled: props.unstyled,
|
|
27556
|
+
pt: getColumnPTOptions('headerCheckbox')
|
|
27557
|
+
};
|
|
27558
27558
|
return /*#__PURE__*/React.createElement(Checkbox, headerCheckboxProps);
|
|
27559
27559
|
});
|
|
27560
27560
|
HeaderCheckbox.displayName = 'HeaderCheckbox';
|
|
@@ -28158,10 +28158,11 @@ var TableHeader = /*#__PURE__*/React.memo(function (props) {
|
|
|
28158
28158
|
className: classNames(filterHeaderClassName, className, cx('headerCell', {
|
|
28159
28159
|
frozen: frozen,
|
|
28160
28160
|
column: col
|
|
28161
|
-
}))
|
|
28162
|
-
key: colKey
|
|
28161
|
+
}))
|
|
28163
28162
|
}, getColumnPTOptions(col, 'root'), getColumnPTOptions(col, 'headerCell'));
|
|
28164
|
-
return /*#__PURE__*/React.createElement("th",
|
|
28163
|
+
return /*#__PURE__*/React.createElement("th", _extends({
|
|
28164
|
+
key: colKey
|
|
28165
|
+
}, headerCellProps), checkbox, filterRow);
|
|
28165
28166
|
}
|
|
28166
28167
|
return null;
|
|
28167
28168
|
});
|
|
@@ -31084,11 +31085,13 @@ var Editor = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (in
|
|
|
31084
31085
|
});
|
|
31085
31086
|
}
|
|
31086
31087
|
};
|
|
31088
|
+
var initValue = useRef(props.value);
|
|
31089
|
+
initValue.current = props.value;
|
|
31087
31090
|
var initQuill = function initQuill(quillInstance) {
|
|
31088
31091
|
quill.current = quillInstance;
|
|
31089
|
-
if (
|
|
31092
|
+
if (initValue.current) {
|
|
31090
31093
|
quillInstance.setContents(quillInstance.clipboard.convert({
|
|
31091
|
-
html:
|
|
31094
|
+
html: initValue.current,
|
|
31092
31095
|
text: ''
|
|
31093
31096
|
}));
|
|
31094
31097
|
}
|
|
@@ -52355,7 +52358,8 @@ var StepperBase = ComponentBase.extend({
|
|
|
52355
52358
|
__TYPE: 'Stepper',
|
|
52356
52359
|
activeStep: 0,
|
|
52357
52360
|
orientation: 'horizontal',
|
|
52358
|
-
linear: false
|
|
52361
|
+
linear: false,
|
|
52362
|
+
onChangeStep: null
|
|
52359
52363
|
},
|
|
52360
52364
|
css: {
|
|
52361
52365
|
classes: classes$b,
|
|
@@ -55876,17 +55880,15 @@ var UITreeNode = /*#__PURE__*/React.memo(function (props) {
|
|
|
55876
55880
|
};
|
|
55877
55881
|
var onDropPoint = function onDropPoint(event, position) {
|
|
55878
55882
|
event.preventDefault();
|
|
55879
|
-
|
|
55880
|
-
|
|
55881
|
-
|
|
55882
|
-
|
|
55883
|
-
|
|
55884
|
-
|
|
55885
|
-
|
|
55886
|
-
|
|
55887
|
-
|
|
55888
|
-
});
|
|
55889
|
-
}
|
|
55883
|
+
DomHandler.removeClass(event.target, 'p-treenode-droppoint-active');
|
|
55884
|
+
if (props.onDropPoint) {
|
|
55885
|
+
var dropIndex = position === -1 ? props.index : props.index + 1;
|
|
55886
|
+
props.onDropPoint({
|
|
55887
|
+
originalEvent: event,
|
|
55888
|
+
path: props.path,
|
|
55889
|
+
index: dropIndex,
|
|
55890
|
+
position: position
|
|
55891
|
+
});
|
|
55890
55892
|
}
|
|
55891
55893
|
};
|
|
55892
55894
|
var onDropPointDragOver = function onDropPointDragOver(event) {
|
|
@@ -56167,7 +56169,7 @@ var UITreeNode = /*#__PURE__*/React.memo(function (props) {
|
|
|
56167
56169
|
return /*#__PURE__*/React.createElement("li", nodeProps, content, children);
|
|
56168
56170
|
};
|
|
56169
56171
|
var node = createNode();
|
|
56170
|
-
if (props.dragdropScope && !props.disabled) {
|
|
56172
|
+
if (props.dragdropScope && !props.disabled && props.node.droppable) {
|
|
56171
56173
|
var beforeDropPoint = createDropPoint(-1);
|
|
56172
56174
|
var afterDropPoint = props.last ? createDropPoint(1) : null;
|
|
56173
56175
|
return /*#__PURE__*/React.createElement(React.Fragment, null, beforeDropPoint, node, afterDropPoint);
|