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.js
CHANGED
|
@@ -8175,11 +8175,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
8175
8175
|
};
|
|
8176
8176
|
var onOverlayEntering = function onOverlayEntering() {
|
|
8177
8177
|
if (props.autoHighlight && props.suggestions && props.suggestions.length) {
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8178
|
+
autoHighlightFirstOption();
|
|
8179
|
+
}
|
|
8180
|
+
};
|
|
8181
|
+
var autoHighlightFirstOption = function autoHighlightFirstOption() {
|
|
8182
|
+
var _getScrollableElement;
|
|
8183
|
+
var element = (_getScrollableElement = getScrollableElement()) === null || _getScrollableElement === void 0 || (_getScrollableElement = _getScrollableElement.firstChild) === null || _getScrollableElement === void 0 ? void 0 : _getScrollableElement.firstChild;
|
|
8184
|
+
if (element) {
|
|
8185
|
+
!isUnstyled() && DomHandler.addClass(element, 'p-highlight');
|
|
8186
|
+
element.setAttribute('data-p-highlight', true);
|
|
8183
8187
|
}
|
|
8184
8188
|
};
|
|
8185
8189
|
var onOverlayEntered = function onOverlayEntered() {
|
|
@@ -8383,7 +8387,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
8383
8387
|
}) : false;
|
|
8384
8388
|
};
|
|
8385
8389
|
var getScrollableElement = function getScrollableElement() {
|
|
8386
|
-
|
|
8390
|
+
var _overlayRef$current;
|
|
8391
|
+
return overlayRef === null || overlayRef === void 0 || (_overlayRef$current = overlayRef.current) === null || _overlayRef$current === void 0 ? void 0 : _overlayRef$current.firstChild;
|
|
8387
8392
|
};
|
|
8388
8393
|
var getOptionGroupLabel = function getOptionGroupLabel(optionGroup) {
|
|
8389
8394
|
return props.optionGroupLabel ? ObjectUtils.resolveFieldData(optionGroup, props.optionGroupLabel) : optionGroup;
|
|
@@ -8406,6 +8411,11 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
8406
8411
|
}
|
|
8407
8412
|
alignOverlay();
|
|
8408
8413
|
});
|
|
8414
|
+
useUpdateEffect(function () {
|
|
8415
|
+
if (searchingState && props.autoHighlight && props.suggestions && props.suggestions.length) {
|
|
8416
|
+
autoHighlightFirstOption();
|
|
8417
|
+
}
|
|
8418
|
+
}, [searchingState]);
|
|
8409
8419
|
useUpdateEffect(function () {
|
|
8410
8420
|
if (searchingState) {
|
|
8411
8421
|
ObjectUtils.isNotEmpty(props.suggestions) || props.showEmptyMessage ? show() : hide();
|
|
@@ -9538,7 +9548,6 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
9538
9548
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
9539
9549
|
idState = _React$useState8[0],
|
|
9540
9550
|
setIdState = _React$useState8[1];
|
|
9541
|
-
var isTypingRef = React__namespace.useRef(false);
|
|
9542
9551
|
var metaData = {
|
|
9543
9552
|
props: props,
|
|
9544
9553
|
state: {
|
|
@@ -9666,7 +9675,6 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
9666
9675
|
try {
|
|
9667
9676
|
var value = parseValueFromString(props.timeOnly ? rawValue.replace('_', '') : rawValue);
|
|
9668
9677
|
if (isValidSelection(value)) {
|
|
9669
|
-
isTypingRef.current = true;
|
|
9670
9678
|
updateModel(event, value);
|
|
9671
9679
|
updateViewDate(event, value.length ? value[0] : value);
|
|
9672
9680
|
}
|
|
@@ -12145,8 +12153,10 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
12145
12153
|
viewChangedWithKeyDown.current = false;
|
|
12146
12154
|
}, [props.view]);
|
|
12147
12155
|
useUpdateEffect(function () {
|
|
12148
|
-
|
|
12149
|
-
|
|
12156
|
+
if (visible && !props.inline) {
|
|
12157
|
+
focusToFirstCell();
|
|
12158
|
+
}
|
|
12159
|
+
}, [visible, currentView, props.inline]);
|
|
12150
12160
|
useUpdateEffect(function () {
|
|
12151
12161
|
if (!props.onViewDateChange && !viewStateChanged.current) {
|
|
12152
12162
|
setValue(props.value);
|
|
@@ -12166,10 +12176,12 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
12166
12176
|
useUpdateEffect(function () {
|
|
12167
12177
|
var newDate = props.value;
|
|
12168
12178
|
if (previousValue !== newDate) {
|
|
12169
|
-
|
|
12179
|
+
var isInputFocused = document.activeElement === inputRef.current;
|
|
12180
|
+
|
|
12181
|
+
// Do not update value in input if user types something in it:
|
|
12182
|
+
if (!isInputFocused) {
|
|
12170
12183
|
updateInputfield(newDate);
|
|
12171
12184
|
}
|
|
12172
|
-
isTypingRef.current = false;
|
|
12173
12185
|
|
|
12174
12186
|
// #3516 view date not updated when value set programatically
|
|
12175
12187
|
if (!newDate) return;
|
|
@@ -19950,8 +19962,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
19950
19962
|
cx = _InputNumberBase$setM.cx,
|
|
19951
19963
|
isUnstyled = _InputNumberBase$setM.isUnstyled;
|
|
19952
19964
|
useHandleStyle(InputNumberBase.css.styles, isUnstyled, {
|
|
19953
|
-
name: 'inputnumber'
|
|
19954
|
-
styled: true
|
|
19965
|
+
name: 'inputnumber'
|
|
19955
19966
|
});
|
|
19956
19967
|
var elementRef = React__namespace.useRef(null);
|
|
19957
19968
|
var inputRef = React__namespace.useRef(null);
|
|
@@ -23711,7 +23722,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
23711
23722
|
props: props
|
|
23712
23723
|
});
|
|
23713
23724
|
var tabIndex = props.disabled ? null : '0';
|
|
23714
|
-
var checkboxProps =
|
|
23725
|
+
var checkboxProps = {
|
|
23715
23726
|
role: 'checkbox',
|
|
23716
23727
|
'aria-checked': props.checked,
|
|
23717
23728
|
tabIndex: tabIndex,
|
|
@@ -23720,8 +23731,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
23720
23731
|
checked: props.checked,
|
|
23721
23732
|
icon: checkIcon,
|
|
23722
23733
|
disabled: props.disabled,
|
|
23734
|
+
unstyled: props.unstyled,
|
|
23723
23735
|
pt: getColumnPTOptions('rowCheckbox')
|
|
23724
|
-
}
|
|
23736
|
+
};
|
|
23725
23737
|
return /*#__PURE__*/React__namespace.createElement(Checkbox, checkboxProps);
|
|
23726
23738
|
});
|
|
23727
23739
|
RowCheckbox.displayName = 'RowCheckbox';
|
|
@@ -23950,7 +23962,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
23950
23962
|
props.onChange(event);
|
|
23951
23963
|
}
|
|
23952
23964
|
};
|
|
23953
|
-
var radioButtonProps =
|
|
23965
|
+
var radioButtonProps = {
|
|
23954
23966
|
role: 'radio',
|
|
23955
23967
|
'aria-checked': props.checked,
|
|
23956
23968
|
checked: props.checked,
|
|
@@ -23959,7 +23971,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
23959
23971
|
onChange: onChange,
|
|
23960
23972
|
unstyled: props.unstyled,
|
|
23961
23973
|
pt: getColumnPTOptions('rowRadioButton')
|
|
23962
|
-
}
|
|
23974
|
+
};
|
|
23963
23975
|
return /*#__PURE__*/React__namespace.createElement(RadioButton, radioButtonProps);
|
|
23964
23976
|
});
|
|
23965
23977
|
RowRadioButton.displayName = 'RowRadioButton';
|
|
@@ -25624,32 +25636,20 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
25624
25636
|
var selectRange = function selectRange(event) {
|
|
25625
25637
|
var rangeStart;
|
|
25626
25638
|
var rangeEnd;
|
|
25627
|
-
var selectedSize;
|
|
25628
25639
|
var isAllowCellSelection = allowCellSelection();
|
|
25629
|
-
var index = ObjectUtils.findIndexInList(event.data, props.value, props.dataKey);
|
|
25630
25640
|
if (rangeRowIndex.current > anchorRowIndex.current) {
|
|
25631
25641
|
rangeStart = anchorRowIndex.current;
|
|
25632
25642
|
rangeEnd = rangeRowIndex.current;
|
|
25633
|
-
if (!isAllowCellSelection) {
|
|
25634
|
-
selectedSize = rangeEnd - rangeStart;
|
|
25635
|
-
rangeEnd = index;
|
|
25636
|
-
rangeStart = index - selectedSize;
|
|
25637
|
-
}
|
|
25638
25643
|
} else if (rangeRowIndex.current < anchorRowIndex.current) {
|
|
25639
25644
|
rangeStart = rangeRowIndex.current;
|
|
25640
25645
|
rangeEnd = anchorRowIndex.current;
|
|
25641
|
-
if (!isAllowCellSelection) {
|
|
25642
|
-
selectedSize = rangeEnd - rangeStart;
|
|
25643
|
-
rangeStart = index;
|
|
25644
|
-
rangeEnd = index + selectedSize;
|
|
25645
|
-
}
|
|
25646
25646
|
} else {
|
|
25647
25647
|
rangeStart = rangeEnd = rangeRowIndex.current;
|
|
25648
25648
|
}
|
|
25649
25649
|
return isAllowCellSelection ? selectRangeOnCell(event, rangeStart, rangeEnd) : selectRangeOnRow(event, rangeStart, rangeEnd);
|
|
25650
25650
|
};
|
|
25651
25651
|
var selectRangeOnRow = function selectRangeOnRow(event, rowRangeStart, rowRangeEnd) {
|
|
25652
|
-
var value = props.value;
|
|
25652
|
+
var value = props.tableProps.value;
|
|
25653
25653
|
var selection = [];
|
|
25654
25654
|
for (var i = rowRangeStart; i <= rowRangeEnd; i++) {
|
|
25655
25655
|
var rangeRowData = value[i];
|
|
@@ -27566,7 +27566,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
27566
27566
|
props: props
|
|
27567
27567
|
});
|
|
27568
27568
|
var tabIndex = props.disabled ? null : 0;
|
|
27569
|
-
var headerCheckboxProps =
|
|
27569
|
+
var headerCheckboxProps = {
|
|
27570
27570
|
role: 'checkbox',
|
|
27571
27571
|
'aria-checked': props.checked,
|
|
27572
27572
|
'aria-label': props.checked ? ariaLabel('selectAll') : ariaLabel('unselectAll'),
|
|
@@ -27574,8 +27574,10 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
27574
27574
|
onChange: onChange,
|
|
27575
27575
|
icon: checkIcon,
|
|
27576
27576
|
checked: props.checked,
|
|
27577
|
-
disabled: props.disabled
|
|
27578
|
-
|
|
27577
|
+
disabled: props.disabled,
|
|
27578
|
+
unstyled: props.unstyled,
|
|
27579
|
+
pt: getColumnPTOptions('headerCheckbox')
|
|
27580
|
+
};
|
|
27579
27581
|
return /*#__PURE__*/React__namespace.createElement(Checkbox, headerCheckboxProps);
|
|
27580
27582
|
});
|
|
27581
27583
|
HeaderCheckbox.displayName = 'HeaderCheckbox';
|
|
@@ -31105,11 +31107,13 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
31105
31107
|
});
|
|
31106
31108
|
}
|
|
31107
31109
|
};
|
|
31110
|
+
var initValue = React.useRef(props.value);
|
|
31111
|
+
initValue.current = props.value;
|
|
31108
31112
|
var initQuill = function initQuill(quillInstance) {
|
|
31109
31113
|
quill.current = quillInstance;
|
|
31110
|
-
if (
|
|
31114
|
+
if (initValue.current) {
|
|
31111
31115
|
quillInstance.setContents(quillInstance.clipboard.convert({
|
|
31112
|
-
html:
|
|
31116
|
+
html: initValue.current,
|
|
31113
31117
|
text: ''
|
|
31114
31118
|
}));
|
|
31115
31119
|
}
|
|
@@ -52376,7 +52380,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
52376
52380
|
__TYPE: 'Stepper',
|
|
52377
52381
|
activeStep: 0,
|
|
52378
52382
|
orientation: 'horizontal',
|
|
52379
|
-
linear: false
|
|
52383
|
+
linear: false,
|
|
52384
|
+
onChangeStep: null
|
|
52380
52385
|
},
|
|
52381
52386
|
css: {
|
|
52382
52387
|
classes: classes$b,
|