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.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';
|
|
@@ -25250,8 +25262,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
25250
25262
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
25251
25263
|
ptm = _props$ptCallbacks.ptm,
|
|
25252
25264
|
ptmo = _props$ptCallbacks.ptmo,
|
|
25253
|
-
cx = _props$ptCallbacks.cx
|
|
25254
|
-
|
|
25265
|
+
cx = _props$ptCallbacks.cx;
|
|
25266
|
+
_props$ptCallbacks.isUnstyled;
|
|
25255
25267
|
var _onClick = function onClick(event) {
|
|
25256
25268
|
props.onClick({
|
|
25257
25269
|
originalEvent: event,
|
|
@@ -25274,8 +25286,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
25274
25286
|
};
|
|
25275
25287
|
var rowGroupTogglerIconProps = mergeProps({
|
|
25276
25288
|
className: cx('rowGroupTogglerIcon'),
|
|
25277
|
-
'aria-hidden': true
|
|
25278
|
-
unstyled: isUnstyled()
|
|
25289
|
+
'aria-hidden': true
|
|
25279
25290
|
}, ptm('rowGroupTogglerIcon'), getColumnPTOptions('rowGroupTogglerIcon'));
|
|
25280
25291
|
var icon = props.expanded ? props.expandedRowIcon || /*#__PURE__*/React__namespace.createElement(ChevronDownIcon, rowGroupTogglerIconProps) : props.collapsedRowIcon || /*#__PURE__*/React__namespace.createElement(ChevronRightIcon, rowGroupTogglerIconProps);
|
|
25281
25292
|
var togglerIcon = IconUtils.getJSXIcon(icon, _objectSpread$1e({}, rowGroupTogglerIconProps), {
|
|
@@ -25289,8 +25300,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
25289
25300
|
},
|
|
25290
25301
|
className: cx('rowGroupToggler'),
|
|
25291
25302
|
tabIndex: props.tabIndex,
|
|
25292
|
-
'aria-label': label
|
|
25293
|
-
unstyled: isUnstyled()
|
|
25303
|
+
'aria-label': label
|
|
25294
25304
|
}, ptm('rowGroupToggler'), getColumnPTOptions('rowGroupToggler'));
|
|
25295
25305
|
return /*#__PURE__*/React__namespace.createElement("button", rowGroupTogglerProps, togglerIcon, /*#__PURE__*/React__namespace.createElement(Ripple, null));
|
|
25296
25306
|
});
|
|
@@ -25624,32 +25634,20 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
25624
25634
|
var selectRange = function selectRange(event) {
|
|
25625
25635
|
var rangeStart;
|
|
25626
25636
|
var rangeEnd;
|
|
25627
|
-
var selectedSize;
|
|
25628
25637
|
var isAllowCellSelection = allowCellSelection();
|
|
25629
|
-
var index = ObjectUtils.findIndexInList(event.data, props.value, props.dataKey);
|
|
25630
25638
|
if (rangeRowIndex.current > anchorRowIndex.current) {
|
|
25631
25639
|
rangeStart = anchorRowIndex.current;
|
|
25632
25640
|
rangeEnd = rangeRowIndex.current;
|
|
25633
|
-
if (!isAllowCellSelection) {
|
|
25634
|
-
selectedSize = rangeEnd - rangeStart;
|
|
25635
|
-
rangeEnd = index;
|
|
25636
|
-
rangeStart = index - selectedSize;
|
|
25637
|
-
}
|
|
25638
25641
|
} else if (rangeRowIndex.current < anchorRowIndex.current) {
|
|
25639
25642
|
rangeStart = rangeRowIndex.current;
|
|
25640
25643
|
rangeEnd = anchorRowIndex.current;
|
|
25641
|
-
if (!isAllowCellSelection) {
|
|
25642
|
-
selectedSize = rangeEnd - rangeStart;
|
|
25643
|
-
rangeStart = index;
|
|
25644
|
-
rangeEnd = index + selectedSize;
|
|
25645
|
-
}
|
|
25646
25644
|
} else {
|
|
25647
25645
|
rangeStart = rangeEnd = rangeRowIndex.current;
|
|
25648
25646
|
}
|
|
25649
25647
|
return isAllowCellSelection ? selectRangeOnCell(event, rangeStart, rangeEnd) : selectRangeOnRow(event, rangeStart, rangeEnd);
|
|
25650
25648
|
};
|
|
25651
25649
|
var selectRangeOnRow = function selectRangeOnRow(event, rowRangeStart, rowRangeEnd) {
|
|
25652
|
-
var value = props.value;
|
|
25650
|
+
var value = props.tableProps.value;
|
|
25653
25651
|
var selection = [];
|
|
25654
25652
|
for (var i = rowRangeStart; i <= rowRangeEnd; i++) {
|
|
25655
25653
|
var rangeRowData = value[i];
|
|
@@ -27566,7 +27564,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
27566
27564
|
props: props
|
|
27567
27565
|
});
|
|
27568
27566
|
var tabIndex = props.disabled ? null : 0;
|
|
27569
|
-
var headerCheckboxProps =
|
|
27567
|
+
var headerCheckboxProps = {
|
|
27570
27568
|
role: 'checkbox',
|
|
27571
27569
|
'aria-checked': props.checked,
|
|
27572
27570
|
'aria-label': props.checked ? ariaLabel('selectAll') : ariaLabel('unselectAll'),
|
|
@@ -27574,8 +27572,10 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
27574
27572
|
onChange: onChange,
|
|
27575
27573
|
icon: checkIcon,
|
|
27576
27574
|
checked: props.checked,
|
|
27577
|
-
disabled: props.disabled
|
|
27578
|
-
|
|
27575
|
+
disabled: props.disabled,
|
|
27576
|
+
unstyled: props.unstyled,
|
|
27577
|
+
pt: getColumnPTOptions('headerCheckbox')
|
|
27578
|
+
};
|
|
27579
27579
|
return /*#__PURE__*/React__namespace.createElement(Checkbox, headerCheckboxProps);
|
|
27580
27580
|
});
|
|
27581
27581
|
HeaderCheckbox.displayName = 'HeaderCheckbox';
|
|
@@ -28179,10 +28179,11 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
28179
28179
|
className: classNames(filterHeaderClassName, className, cx('headerCell', {
|
|
28180
28180
|
frozen: frozen,
|
|
28181
28181
|
column: col
|
|
28182
|
-
}))
|
|
28183
|
-
key: colKey
|
|
28182
|
+
}))
|
|
28184
28183
|
}, getColumnPTOptions(col, 'root'), getColumnPTOptions(col, 'headerCell'));
|
|
28185
|
-
return /*#__PURE__*/React__namespace.createElement("th",
|
|
28184
|
+
return /*#__PURE__*/React__namespace.createElement("th", _extends({
|
|
28185
|
+
key: colKey
|
|
28186
|
+
}, headerCellProps), checkbox, filterRow);
|
|
28186
28187
|
}
|
|
28187
28188
|
return null;
|
|
28188
28189
|
});
|
|
@@ -31105,11 +31106,13 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
31105
31106
|
});
|
|
31106
31107
|
}
|
|
31107
31108
|
};
|
|
31109
|
+
var initValue = React.useRef(props.value);
|
|
31110
|
+
initValue.current = props.value;
|
|
31108
31111
|
var initQuill = function initQuill(quillInstance) {
|
|
31109
31112
|
quill.current = quillInstance;
|
|
31110
|
-
if (
|
|
31113
|
+
if (initValue.current) {
|
|
31111
31114
|
quillInstance.setContents(quillInstance.clipboard.convert({
|
|
31112
|
-
html:
|
|
31115
|
+
html: initValue.current,
|
|
31113
31116
|
text: ''
|
|
31114
31117
|
}));
|
|
31115
31118
|
}
|
|
@@ -52376,7 +52379,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
52376
52379
|
__TYPE: 'Stepper',
|
|
52377
52380
|
activeStep: 0,
|
|
52378
52381
|
orientation: 'horizontal',
|
|
52379
|
-
linear: false
|
|
52382
|
+
linear: false,
|
|
52383
|
+
onChangeStep: null
|
|
52380
52384
|
},
|
|
52381
52385
|
css: {
|
|
52382
52386
|
classes: classes$b,
|
|
@@ -55897,17 +55901,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
55897
55901
|
};
|
|
55898
55902
|
var onDropPoint = function onDropPoint(event, position) {
|
|
55899
55903
|
event.preventDefault();
|
|
55900
|
-
|
|
55901
|
-
|
|
55902
|
-
|
|
55903
|
-
|
|
55904
|
-
|
|
55905
|
-
|
|
55906
|
-
|
|
55907
|
-
|
|
55908
|
-
|
|
55909
|
-
});
|
|
55910
|
-
}
|
|
55904
|
+
DomHandler.removeClass(event.target, 'p-treenode-droppoint-active');
|
|
55905
|
+
if (props.onDropPoint) {
|
|
55906
|
+
var dropIndex = position === -1 ? props.index : props.index + 1;
|
|
55907
|
+
props.onDropPoint({
|
|
55908
|
+
originalEvent: event,
|
|
55909
|
+
path: props.path,
|
|
55910
|
+
index: dropIndex,
|
|
55911
|
+
position: position
|
|
55912
|
+
});
|
|
55911
55913
|
}
|
|
55912
55914
|
};
|
|
55913
55915
|
var onDropPointDragOver = function onDropPointDragOver(event) {
|
|
@@ -56188,7 +56190,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
|
|
|
56188
56190
|
return /*#__PURE__*/React__namespace.createElement("li", nodeProps, content, children);
|
|
56189
56191
|
};
|
|
56190
56192
|
var node = createNode();
|
|
56191
|
-
if (props.dragdropScope && !props.disabled) {
|
|
56193
|
+
if (props.dragdropScope && !props.disabled && props.node.droppable) {
|
|
56192
56194
|
var beforeDropPoint = createDropPoint(-1);
|
|
56193
56195
|
var afterDropPoint = props.last ? createDropPoint(1) : null;
|
|
56194
56196
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, beforeDropPoint, node, afterDropPoint);
|