primereact 10.8.4 → 10.9.0
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/LICENSE.md +1 -1
- package/api/api.cjs.js +17 -16
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +17 -16
- package/api/api.esm.min.js +1 -1
- package/api/api.js +17 -16
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +28 -15
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +1 -1
- package/autocomplete/autocomplete.esm.js +28 -15
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +28 -15
- package/autocomplete/autocomplete.min.js +1 -1
- package/calendar/calendar.cjs.js +11 -5
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +11 -5
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +11 -5
- package/calendar/calendar.min.js +1 -1
- package/checkbox/checkbox.cjs.js +6 -6
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +6 -6
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +6 -6
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +7 -3
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +7 -3
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +7 -3
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +27 -19
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +27 -19
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +27 -19
- package/chips/chips.min.js +1 -1
- package/componentbase/componentbase.cjs.js +2 -2
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +2 -2
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +2 -2
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +8 -6
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +8 -6
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +8 -6
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/core/core.js +111 -97
- package/core/core.min.js +13 -13
- package/datatable/datatable.cjs.js +38 -30
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +38 -30
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +38 -30
- package/datatable/datatable.min.js +1 -1
- package/dialog/dialog.cjs.js +8 -8
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +8 -8
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +8 -8
- package/dialog/dialog.min.js +1 -1
- package/dropdown/dropdown.cjs.js +28 -18
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +2 -2
- package/dropdown/dropdown.esm.js +28 -18
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +28 -18
- package/dropdown/dropdown.min.js +1 -1
- package/focustrap/focustrap.cjs.js +7 -7
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +7 -7
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +7 -7
- package/focustrap/focustrap.min.js +1 -1
- package/iconbase/iconbase.cjs.js +1 -1
- package/iconbase/iconbase.cjs.min.js +1 -1
- package/iconbase/iconbase.esm.js +1 -1
- package/iconbase/iconbase.esm.min.js +1 -1
- package/iconbase/iconbase.js +1 -1
- package/iconbase/iconbase.min.js +1 -1
- package/inputmask/inputmask.cjs.js +2 -1
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +2 -1
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +2 -1
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +3 -0
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +4 -1
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +3 -0
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputtext/inputtext.cjs.js +7 -0
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +7 -0
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +7 -0
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +11 -2
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +11 -2
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +11 -2
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/mention/mention.cjs.js +12 -2
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +12 -2
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +12 -2
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +18 -11
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +18 -11
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +18 -11
- package/menu/menu.min.js +1 -1
- package/messages/messages.cjs.js +2 -3
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +3 -4
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +2 -3
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +97 -102
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +98 -103
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +97 -102
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +7 -7
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +7 -7
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +7 -7
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +2 -6
- package/organizationchart/organizationchart.esm.js +2 -6
- package/organizationchart/organizationchart.js +2 -6
- package/overlaypanel/overlaypanel.cjs.js +1 -2
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +2 -3
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +1 -2
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/primereact.all.cjs.js +409 -299
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +2812 -2702
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +409 -299
- package/primereact.all.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +4 -1
- package/resources/themes/arya-green/theme.css +4 -1
- package/resources/themes/arya-orange/theme.css +4 -1
- package/resources/themes/arya-purple/theme.css +4 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +4 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +4 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +4 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +4 -1
- package/resources/themes/fluent-light/theme.css +4 -1
- package/resources/themes/lara-dark-amber/theme.css +2 -1
- package/resources/themes/lara-dark-blue/theme.css +2 -1
- package/resources/themes/lara-dark-cyan/theme.css +2 -1
- package/resources/themes/lara-dark-green/theme.css +2 -1
- package/resources/themes/lara-dark-indigo/theme.css +2 -1
- package/resources/themes/lara-dark-pink/theme.css +2 -1
- package/resources/themes/lara-dark-purple/theme.css +2 -1
- package/resources/themes/lara-dark-teal/theme.css +2 -1
- package/resources/themes/lara-light-amber/theme.css +2 -1
- package/resources/themes/lara-light-blue/theme.css +2 -1
- package/resources/themes/lara-light-cyan/theme.css +2 -1
- package/resources/themes/lara-light-green/theme.css +2 -1
- package/resources/themes/lara-light-indigo/theme.css +2 -1
- package/resources/themes/lara-light-pink/theme.css +2 -1
- package/resources/themes/lara-light-purple/theme.css +2 -1
- package/resources/themes/lara-light-teal/theme.css +2 -1
- package/resources/themes/luna-amber/theme.css +4 -1
- package/resources/themes/luna-blue/theme.css +4 -1
- package/resources/themes/luna-green/theme.css +4 -1
- package/resources/themes/luna-pink/theme.css +4 -1
- package/resources/themes/md-dark-deeppurple/theme.css +3 -1
- package/resources/themes/md-dark-indigo/theme.css +3 -1
- package/resources/themes/md-light-deeppurple/theme.css +3 -1
- package/resources/themes/md-light-indigo/theme.css +3 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-dark-indigo/theme.css +3 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-light-indigo/theme.css +3 -1
- package/resources/themes/mira/theme.css +2 -1
- package/resources/themes/nano/theme.css +4 -1
- package/resources/themes/nova/theme.css +4 -1
- package/resources/themes/nova-accent/theme.css +4 -1
- package/resources/themes/nova-alt/theme.css +4 -1
- package/resources/themes/rhea/theme.css +4 -1
- package/resources/themes/saga-blue/theme.css +4 -1
- package/resources/themes/saga-green/theme.css +4 -1
- package/resources/themes/saga-orange/theme.css +4 -1
- package/resources/themes/saga-purple/theme.css +4 -1
- package/resources/themes/soho-dark/theme.css +1 -0
- package/resources/themes/soho-light/theme.css +1 -0
- package/resources/themes/tailwind-light/theme.css +2 -1
- package/resources/themes/vela-blue/theme.css +4 -1
- package/resources/themes/vela-green/theme.css +4 -1
- package/resources/themes/vela-orange/theme.css +4 -1
- package/resources/themes/vela-purple/theme.css +4 -1
- package/resources/themes/viva-dark/theme.css +1 -0
- package/resources/themes/viva-light/theme.css +1 -0
- package/scrollpanel/scrollpanel.cjs.js +1 -0
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +1 -0
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +1 -0
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/sidebar/sidebar.cjs.js +2 -3
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +3 -4
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +2 -3
- package/sidebar/sidebar.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +2 -2
- package/tabview/tabview.cjs.js +17 -1
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +17 -1
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +17 -1
- package/tabview/tabview.min.js +1 -1
- package/toast/toast.cjs.js +5 -242
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +6 -243
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +5 -242
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +1 -1
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +1 -1
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +1 -1
- package/togglebutton/togglebutton.min.js +1 -1
- package/tooltip/tooltip.cjs.js +4 -2
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +5 -3
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +4 -2
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +7 -7
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +7 -7
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +7 -7
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +3 -2
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +4 -3
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +3 -2
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +49 -38
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +49 -38
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +49 -38
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +1 -1
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +10 -31
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +9 -10
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +12 -31
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +14 -3
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +15 -4
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +14 -3
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +6 -6
package/primereact.all.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var React = require('react');
|
|
6
|
+
var React$1 = require('react');
|
|
7
7
|
var reactTransitionGroup = require('react-transition-group');
|
|
8
8
|
var ReactDOM = require('react-dom');
|
|
9
9
|
|
|
@@ -27,8 +27,8 @@ function _interopNamespace(e) {
|
|
|
27
27
|
return Object.freeze(n);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var
|
|
31
|
-
var
|
|
30
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
|
|
31
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React$1);
|
|
32
32
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
33
33
|
|
|
34
34
|
function _extends() {
|
|
@@ -2046,6 +2046,13 @@ var ObjectUtils = /*#__PURE__*/function () {
|
|
|
2046
2046
|
}]);
|
|
2047
2047
|
}();
|
|
2048
2048
|
|
|
2049
|
+
var lastId = 0;
|
|
2050
|
+
function UniqueComponentId() {
|
|
2051
|
+
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pr_id_';
|
|
2052
|
+
lastId++;
|
|
2053
|
+
return "".concat(prefix).concat(lastId);
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2049
2056
|
function ownKeys$21(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2050
2057
|
function _objectSpread$21(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$21(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$21(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2051
2058
|
var IconUtils = /*#__PURE__*/function () {
|
|
@@ -2061,8 +2068,9 @@ var IconUtils = /*#__PURE__*/function () {
|
|
|
2061
2068
|
if (icon !== null) {
|
|
2062
2069
|
var iconType = _typeof(icon);
|
|
2063
2070
|
var className = classNames(iconProps.className, iconType === 'string' && icon);
|
|
2064
|
-
content = /*#__PURE__*/
|
|
2065
|
-
className: className
|
|
2071
|
+
content = /*#__PURE__*/React.createElement("span", _extends({}, iconProps, {
|
|
2072
|
+
className: className,
|
|
2073
|
+
key: UniqueComponentId('icon')
|
|
2066
2074
|
}));
|
|
2067
2075
|
if (iconType !== 'string') {
|
|
2068
2076
|
var defaultContentOptions = _objectSpread$21({
|
|
@@ -2585,13 +2593,6 @@ function mergeProps(props) {
|
|
|
2585
2593
|
}, {});
|
|
2586
2594
|
}
|
|
2587
2595
|
|
|
2588
|
-
var lastId = 0;
|
|
2589
|
-
function UniqueComponentId() {
|
|
2590
|
-
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pr_id_';
|
|
2591
|
-
lastId++;
|
|
2592
|
-
return "".concat(prefix).concat(lastId);
|
|
2593
|
-
}
|
|
2594
|
-
|
|
2595
2596
|
function handler() {
|
|
2596
2597
|
var zIndexes = [];
|
|
2597
2598
|
var generateZIndex = function generateZIndex(key, autoZIndex) {
|
|
@@ -3468,48 +3469,49 @@ var SortOrder = Object.freeze({
|
|
|
3468
3469
|
|
|
3469
3470
|
var PrimeReactContext = /*#__PURE__*/React__default["default"].createContext();
|
|
3470
3471
|
var PrimeReactProvider = function PrimeReactProvider(props) {
|
|
3471
|
-
var
|
|
3472
|
-
var
|
|
3472
|
+
var _props$value, _propsValue$ripple, _propsValue$inputStyl, _propsValue$locale, _propsValue$appendTo, _propsValue$styleCont, _propsValue$cssTransi, _propsValue$autoZInde, _propsValue$hideOverl, _propsValue$nonce, _propsValue$nullSortO, _propsValue$zIndex, _propsValue$ptOptions, _propsValue$pt, _propsValue$unstyled, _propsValue$filterMat;
|
|
3473
|
+
var propsValue = (_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : {};
|
|
3474
|
+
var _useState = React$1.useState((_propsValue$ripple = propsValue.ripple) !== null && _propsValue$ripple !== void 0 ? _propsValue$ripple : false),
|
|
3473
3475
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3474
3476
|
ripple = _useState2[0],
|
|
3475
3477
|
setRipple = _useState2[1];
|
|
3476
|
-
var _useState3 = React.useState(propsValue.inputStyle
|
|
3478
|
+
var _useState3 = React$1.useState((_propsValue$inputStyl = propsValue.inputStyle) !== null && _propsValue$inputStyl !== void 0 ? _propsValue$inputStyl : 'outlined'),
|
|
3477
3479
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
3478
3480
|
inputStyle = _useState4[0],
|
|
3479
3481
|
setInputStyle = _useState4[1];
|
|
3480
|
-
var _useState5 = React.useState(propsValue.locale
|
|
3482
|
+
var _useState5 = React$1.useState((_propsValue$locale = propsValue.locale) !== null && _propsValue$locale !== void 0 ? _propsValue$locale : 'en'),
|
|
3481
3483
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
3482
3484
|
locale = _useState6[0],
|
|
3483
3485
|
setLocale = _useState6[1];
|
|
3484
|
-
var _useState7 = React.useState(propsValue.appendTo
|
|
3486
|
+
var _useState7 = React$1.useState((_propsValue$appendTo = propsValue.appendTo) !== null && _propsValue$appendTo !== void 0 ? _propsValue$appendTo : null),
|
|
3485
3487
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
3486
3488
|
appendTo = _useState8[0],
|
|
3487
3489
|
setAppendTo = _useState8[1];
|
|
3488
|
-
var _useState9 = React.useState(propsValue.styleContainer
|
|
3490
|
+
var _useState9 = React$1.useState((_propsValue$styleCont = propsValue.styleContainer) !== null && _propsValue$styleCont !== void 0 ? _propsValue$styleCont : null),
|
|
3489
3491
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
3490
3492
|
styleContainer = _useState10[0],
|
|
3491
3493
|
setStyleContainer = _useState10[1];
|
|
3492
|
-
var _useState11 = React.useState(propsValue.cssTransition
|
|
3494
|
+
var _useState11 = React$1.useState((_propsValue$cssTransi = propsValue.cssTransition) !== null && _propsValue$cssTransi !== void 0 ? _propsValue$cssTransi : true),
|
|
3493
3495
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
3494
3496
|
cssTransition = _useState12[0],
|
|
3495
3497
|
setCssTransition = _useState12[1];
|
|
3496
|
-
var _useState13 = React.useState(propsValue.autoZIndex
|
|
3498
|
+
var _useState13 = React$1.useState((_propsValue$autoZInde = propsValue.autoZIndex) !== null && _propsValue$autoZInde !== void 0 ? _propsValue$autoZInde : true),
|
|
3497
3499
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
3498
3500
|
autoZIndex = _useState14[0],
|
|
3499
3501
|
setAutoZIndex = _useState14[1];
|
|
3500
|
-
var _useState15 = React.useState(propsValue.hideOverlaysOnDocumentScrolling
|
|
3502
|
+
var _useState15 = React$1.useState((_propsValue$hideOverl = propsValue.hideOverlaysOnDocumentScrolling) !== null && _propsValue$hideOverl !== void 0 ? _propsValue$hideOverl : false),
|
|
3501
3503
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
3502
3504
|
hideOverlaysOnDocumentScrolling = _useState16[0],
|
|
3503
3505
|
setHideOverlaysOnDocumentScrolling = _useState16[1];
|
|
3504
|
-
var _useState17 = React.useState(propsValue.nonce
|
|
3506
|
+
var _useState17 = React$1.useState((_propsValue$nonce = propsValue.nonce) !== null && _propsValue$nonce !== void 0 ? _propsValue$nonce : null),
|
|
3505
3507
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
3506
3508
|
nonce = _useState18[0],
|
|
3507
3509
|
setNonce = _useState18[1];
|
|
3508
|
-
var _useState19 = React.useState(propsValue.nullSortOrder
|
|
3510
|
+
var _useState19 = React$1.useState((_propsValue$nullSortO = propsValue.nullSortOrder) !== null && _propsValue$nullSortO !== void 0 ? _propsValue$nullSortO : 1),
|
|
3509
3511
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
3510
3512
|
nullSortOrder = _useState20[0],
|
|
3511
3513
|
setNullSortOrder = _useState20[1];
|
|
3512
|
-
var _useState21 = React.useState(propsValue.zIndex
|
|
3514
|
+
var _useState21 = React$1.useState((_propsValue$zIndex = propsValue.zIndex) !== null && _propsValue$zIndex !== void 0 ? _propsValue$zIndex : {
|
|
3513
3515
|
modal: 1100,
|
|
3514
3516
|
overlay: 1000,
|
|
3515
3517
|
menu: 1000,
|
|
@@ -3519,22 +3521,22 @@ var PrimeReactProvider = function PrimeReactProvider(props) {
|
|
|
3519
3521
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
3520
3522
|
zIndex = _useState22[0],
|
|
3521
3523
|
setZIndex = _useState22[1];
|
|
3522
|
-
var _useState23 = React.useState(propsValue.ptOptions
|
|
3524
|
+
var _useState23 = React$1.useState((_propsValue$ptOptions = propsValue.ptOptions) !== null && _propsValue$ptOptions !== void 0 ? _propsValue$ptOptions : {
|
|
3523
3525
|
mergeSections: true,
|
|
3524
3526
|
mergeProps: true
|
|
3525
3527
|
}),
|
|
3526
3528
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
3527
3529
|
ptOptions = _useState24[0],
|
|
3528
3530
|
setPtOptions = _useState24[1];
|
|
3529
|
-
var _useState25 = React.useState(propsValue.pt
|
|
3531
|
+
var _useState25 = React$1.useState((_propsValue$pt = propsValue.pt) !== null && _propsValue$pt !== void 0 ? _propsValue$pt : undefined),
|
|
3530
3532
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
3531
3533
|
pt = _useState26[0],
|
|
3532
3534
|
setPt = _useState26[1];
|
|
3533
|
-
var _useState27 = React.useState(propsValue.unstyled
|
|
3535
|
+
var _useState27 = React$1.useState((_propsValue$unstyled = propsValue.unstyled) !== null && _propsValue$unstyled !== void 0 ? _propsValue$unstyled : false),
|
|
3534
3536
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
3535
3537
|
unstyled = _useState28[0],
|
|
3536
3538
|
setUnstyled = _useState28[1];
|
|
3537
|
-
var _useState29 = React.useState(propsValue.filterMatchModeOptions
|
|
3539
|
+
var _useState29 = React$1.useState((_propsValue$filterMat = propsValue.filterMatchModeOptions) !== null && _propsValue$filterMat !== void 0 ? _propsValue$filterMat : {
|
|
3538
3540
|
text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],
|
|
3539
3541
|
numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],
|
|
3540
3542
|
date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]
|
|
@@ -3964,7 +3966,7 @@ var useGlobalOnEscapeKey = function useGlobalOnEscapeKey(_ref3) {
|
|
|
3964
3966
|
var callback = _ref3.callback,
|
|
3965
3967
|
when = _ref3.when,
|
|
3966
3968
|
priority = _ref3.priority;
|
|
3967
|
-
React.useEffect(function () {
|
|
3969
|
+
React$1.useEffect(function () {
|
|
3968
3970
|
if (!when) {
|
|
3969
3971
|
return;
|
|
3970
3972
|
}
|
|
@@ -4057,7 +4059,7 @@ var useMatchMedia = function useMatchMedia(query) {
|
|
|
4057
4059
|
* Hook to merge properties including custom merge function for things like Tailwind merge.
|
|
4058
4060
|
*/
|
|
4059
4061
|
var useMergeProps = function useMergeProps() {
|
|
4060
|
-
var context = React.useContext(PrimeReactContext);
|
|
4062
|
+
var context = React$1.useContext(PrimeReactContext);
|
|
4061
4063
|
return function () {
|
|
4062
4064
|
for (var _len = arguments.length, props = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4063
4065
|
props[_key] = arguments[_key];
|
|
@@ -4623,12 +4625,12 @@ var useSessionStorage = function useSessionStorage(initialValue, key) {
|
|
|
4623
4625
|
var _id = 0;
|
|
4624
4626
|
var useStyle = function useStyle(css) {
|
|
4625
4627
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
4626
|
-
var _useState = React.useState(false),
|
|
4628
|
+
var _useState = React$1.useState(false),
|
|
4627
4629
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4628
4630
|
isLoaded = _useState2[0],
|
|
4629
4631
|
setIsLoaded = _useState2[1];
|
|
4630
|
-
var styleRef = React.useRef(null);
|
|
4631
|
-
var context = React.useContext(PrimeReactContext);
|
|
4632
|
+
var styleRef = React$1.useRef(null);
|
|
4633
|
+
var context = React$1.useContext(PrimeReactContext);
|
|
4632
4634
|
var defaultDocument = DomHandler.isClient() ? window.document : undefined;
|
|
4633
4635
|
var _options$document = options.document,
|
|
4634
4636
|
document = _options$document === void 0 ? defaultDocument : _options$document,
|
|
@@ -4688,7 +4690,7 @@ var useStyle = function useStyle(css) {
|
|
|
4688
4690
|
DomHandler.removeInlineStyle(styleRef.current);
|
|
4689
4691
|
setIsLoaded(false);
|
|
4690
4692
|
};
|
|
4691
|
-
React.useEffect(function () {
|
|
4693
|
+
React$1.useEffect(function () {
|
|
4692
4694
|
if (!manual) {
|
|
4693
4695
|
load();
|
|
4694
4696
|
}
|
|
@@ -4751,11 +4753,11 @@ var useUpdateEffect = function useUpdateEffect(fn, deps) {
|
|
|
4751
4753
|
|
|
4752
4754
|
function ownKeys$1X(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4753
4755
|
function _objectSpread$1X(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1X(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1X(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4754
|
-
var baseStyle = "\n.p-hidden-accessible {\n
|
|
4756
|
+
var baseStyle = "\n.p-hidden-accessible {\n position: absolute;\n pointer-events: none;\n opacity: 0;\n white-space: nowrap;\n}\n\n.p-overflow-hidden {\n overflow: hidden;\n padding-right: var(--scrollbar-width);\n}\n";
|
|
4755
4757
|
var buttonStyles = "\n.p-button {\n margin: 0;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-button-group .p-button {\n margin: 0;\n}\n\n.p-button-group .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-button-group .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-button-group .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-button-group .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-button-group .p-button:focus {\n position: relative;\n z-index: 1;\n}\n";
|
|
4756
4758
|
var inputTextStyles = "\n.p-inputtext {\n margin: 0;\n}\n\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -0.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label,\n.p-float-label .p-mention ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input:-webkit-autofill ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label,\n.p-float-label .p-tooltip-target-wrapper ~ label {\n top: -0.75rem;\n font-size: 12px;\n}\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-right > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > svg,\n.p-input-icon-left > .p-input-prefix,\n.p-input-icon-right > .p-input-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n";
|
|
4757
4759
|
var iconStyles = "\n.p-icon {\n display: inline-block;\n}\n\n.p-icon-spin {\n -webkit-animation: p-icon-spin 2s infinite linear;\n animation: p-icon-spin 2s infinite linear;\n}\n\nsvg.p-icon {\n pointer-events: auto;\n}\n\nsvg.p-icon g,\n.p-disabled svg.p-icon {\n pointer-events: none;\n}\n\n@-webkit-keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n";
|
|
4758
|
-
var commonStyle = "\n@layer primereact {\n .p-component, .p-component * {\n box-sizing: border-box;\n }\n\n .p-hidden {\n display: none;\n }\n\n .p-hidden-space {\n visibility: hidden;\n }\n\n .p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n }\n\n .p-disabled, .p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n }\n\n .p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-unselectable-text {\n user-select: none;\n }\n\n .p-scrollbar-measure {\n width: 100px;\n height: 100px;\n overflow: scroll;\n position: absolute;\n top: -9999px;\n }\n\n @-webkit-keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n @keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n\n .p-link {\n text-align: left;\n background-color: transparent;\n margin: 0;\n padding: 0;\n border: none;\n cursor: pointer;\n user-select: none;\n }\n\n .p-link:disabled {\n cursor: default;\n }\n\n /* Non react overlay animations */\n .p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n }\n\n .p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n }\n\n /* React based overlay animations */\n .p-connected-overlay-enter {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-connected-overlay-enter-active {\n opacity: 1;\n transform: scaleY(1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-enter-done {\n transform: none;\n }\n\n .p-connected-overlay-exit {\n opacity: 1;\n }\n\n .p-connected-overlay-exit-active {\n opacity: 0;\n transition: opacity .1s linear;\n }\n\n /* Toggleable Content */\n .p-toggleable-content-enter {\n max-height: 0;\n }\n\n .p-toggleable-content-enter-active {\n overflow: hidden;\n max-height: 1000px;\n transition: max-height 1s ease-in-out;\n }\n\n .p-toggleable-content-enter-done {\n transform: none;\n }\n\n .p-toggleable-content-exit {\n max-height: 1000px;\n }\n\n .p-toggleable-content-exit-active {\n overflow: hidden;\n max-height: 0;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n }\n\n
|
|
4760
|
+
var commonStyle = "\n@layer primereact {\n .p-component, .p-component * {\n box-sizing: border-box;\n }\n\n .p-hidden {\n display: none;\n }\n\n .p-hidden-space {\n visibility: hidden;\n }\n\n .p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n }\n\n .p-disabled, .p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n }\n\n .p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-unselectable-text {\n user-select: none;\n }\n\n .p-scrollbar-measure {\n width: 100px;\n height: 100px;\n overflow: scroll;\n position: absolute;\n top: -9999px;\n }\n\n @-webkit-keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n @keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n\n .p-link {\n text-align: left;\n background-color: transparent;\n margin: 0;\n padding: 0;\n border: none;\n cursor: pointer;\n user-select: none;\n }\n\n .p-link:disabled {\n cursor: default;\n }\n\n /* Non react overlay animations */\n .p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n }\n\n .p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n }\n\n /* React based overlay animations */\n .p-connected-overlay-enter {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-connected-overlay-enter-active {\n opacity: 1;\n transform: scaleY(1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-enter-done {\n transform: none;\n }\n\n .p-connected-overlay-exit {\n opacity: 1;\n }\n\n .p-connected-overlay-exit-active {\n opacity: 0;\n transition: opacity .1s linear;\n }\n\n /* Toggleable Content */\n .p-toggleable-content-enter {\n max-height: 0;\n }\n\n .p-toggleable-content-enter-active {\n overflow: hidden;\n max-height: 1000px;\n transition: max-height 1s ease-in-out;\n }\n\n .p-toggleable-content-enter-done {\n transform: none;\n }\n\n .p-toggleable-content-exit {\n max-height: 1000px;\n }\n\n .p-toggleable-content-exit-active {\n overflow: hidden;\n max-height: 0;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n }\n\n /* @todo Refactor */\n .p-menu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n ".concat(buttonStyles, "\n ").concat(inputTextStyles, "\n ").concat(iconStyles, "\n}\n");
|
|
4759
4761
|
var ComponentBase = {
|
|
4760
4762
|
cProps: undefined,
|
|
4761
4763
|
cParams: undefined,
|
|
@@ -5130,7 +5132,7 @@ var IconBase = {
|
|
|
5130
5132
|
}, props.className),
|
|
5131
5133
|
role: !isLabelEmpty ? 'img' : undefined,
|
|
5132
5134
|
'aria-label': !isLabelEmpty ? props.label : undefined,
|
|
5133
|
-
'aria-hidden': isLabelEmpty
|
|
5135
|
+
'aria-hidden': props.label ? isLabelEmpty : undefined
|
|
5134
5136
|
};
|
|
5135
5137
|
return ObjectUtils.getMergedProps(otherProps, ptiProps);
|
|
5136
5138
|
}
|
|
@@ -5873,6 +5875,8 @@ var Tooltip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.f
|
|
|
5873
5875
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
5874
5876
|
multipleFocusEvents = _React$useState8[0],
|
|
5875
5877
|
setMultipleFocusEvents = _React$useState8[1];
|
|
5878
|
+
var isCloseOnEscape = visibleState && props.closeOnEscape;
|
|
5879
|
+
var overlayDisplayOrder = useDisplayOrder('tooltip', isCloseOnEscape);
|
|
5876
5880
|
var metaData = {
|
|
5877
5881
|
props: props,
|
|
5878
5882
|
state: {
|
|
@@ -5899,8 +5903,8 @@ var Tooltip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.f
|
|
|
5899
5903
|
callback: function callback() {
|
|
5900
5904
|
hide();
|
|
5901
5905
|
},
|
|
5902
|
-
when:
|
|
5903
|
-
priority: [ESC_KEY_HANDLING_PRIORITIES.TOOLTIP,
|
|
5906
|
+
when: isCloseOnEscape,
|
|
5907
|
+
priority: [ESC_KEY_HANDLING_PRIORITIES.TOOLTIP, overlayDisplayOrder]
|
|
5904
5908
|
});
|
|
5905
5909
|
var elementRef = React__namespace.useRef(null);
|
|
5906
5910
|
var textRef = React__namespace.useRef(null);
|
|
@@ -6726,6 +6730,13 @@ var InputText = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
6726
6730
|
return ObjectUtils.isNotEmpty(props.value) || ObjectUtils.isNotEmpty(props.defaultValue);
|
|
6727
6731
|
}, [props.value, props.defaultValue]);
|
|
6728
6732
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
6733
|
+
React__namespace.useEffect(function () {
|
|
6734
|
+
if (isFilled) {
|
|
6735
|
+
DomHandler.addClass(elementRef.current, 'p-filled');
|
|
6736
|
+
} else {
|
|
6737
|
+
DomHandler.removeClass(elementRef.current, 'p-filled');
|
|
6738
|
+
}
|
|
6739
|
+
}, [props.disabled, isFilled]);
|
|
6729
6740
|
var rootProps = mergeProps({
|
|
6730
6741
|
className: classNames(props.className, cx('root', {
|
|
6731
6742
|
context: context,
|
|
@@ -6797,11 +6808,16 @@ var classes$1c = {
|
|
|
6797
6808
|
emptyMessage: 'p-autocomplete-item',
|
|
6798
6809
|
item: function item(_ref6) {
|
|
6799
6810
|
var suggestion = _ref6.suggestion,
|
|
6800
|
-
optionGroupLabel = _ref6.optionGroupLabel
|
|
6811
|
+
optionGroupLabel = _ref6.optionGroupLabel,
|
|
6812
|
+
selected = _ref6.selected;
|
|
6801
6813
|
return optionGroupLabel ? classNames('p-autocomplete-item', {
|
|
6802
6814
|
'p-disabled': suggestion.disabled
|
|
6815
|
+
}, {
|
|
6816
|
+
selected: selected
|
|
6803
6817
|
}) : classNames('p-autocomplete-item', {
|
|
6804
6818
|
'p-disabled': suggestion.disabled
|
|
6819
|
+
}, {
|
|
6820
|
+
'p-highlight': selected
|
|
6805
6821
|
});
|
|
6806
6822
|
},
|
|
6807
6823
|
itemGroup: 'p-autocomplete-item-group',
|
|
@@ -7010,6 +7026,7 @@ var VirtualScroller = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__nam
|
|
|
7010
7026
|
var defaultContentHeight = React__namespace.useRef(null);
|
|
7011
7027
|
var isItemRangeChanged = React__namespace.useRef(false);
|
|
7012
7028
|
var lazyLoadState = React__namespace.useRef(null);
|
|
7029
|
+
var viewInitialized = React__namespace.useRef(false);
|
|
7013
7030
|
var _useResizeListener = useResizeListener({
|
|
7014
7031
|
listener: function listener(event) {
|
|
7015
7032
|
return onResize();
|
|
@@ -7549,14 +7566,24 @@ var VirtualScroller = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__nam
|
|
|
7549
7566
|
}
|
|
7550
7567
|
};
|
|
7551
7568
|
var init = function init() {
|
|
7552
|
-
if (!props.disabled) {
|
|
7569
|
+
if (!props.disabled && isVisible(elementRef.current)) {
|
|
7553
7570
|
setSize();
|
|
7554
7571
|
calculateOptions();
|
|
7555
7572
|
setSpacerSize();
|
|
7556
7573
|
}
|
|
7557
7574
|
};
|
|
7558
|
-
|
|
7559
|
-
|
|
7575
|
+
var isVisible = function isVisible() {
|
|
7576
|
+
if (DomHandler.isVisible(elementRef.current)) {
|
|
7577
|
+
var rect = elementRef.current.getBoundingClientRect();
|
|
7578
|
+
return rect.width > 0 && rect.height > 0;
|
|
7579
|
+
}
|
|
7580
|
+
return false;
|
|
7581
|
+
};
|
|
7582
|
+
React__namespace.useEffect(function () {
|
|
7583
|
+
if (!viewInitialized.current && isVisible(elementRef.current)) {
|
|
7584
|
+
viewInit();
|
|
7585
|
+
viewInitialized.current = true;
|
|
7586
|
+
}
|
|
7560
7587
|
});
|
|
7561
7588
|
useUpdateEffect(function () {
|
|
7562
7589
|
init();
|
|
@@ -7821,15 +7848,25 @@ var AutoCompletePanel = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__n
|
|
|
7821
7848
|
key: key ? key : null
|
|
7822
7849
|
}), content);
|
|
7823
7850
|
};
|
|
7851
|
+
var isOptionSelected = function isOptionSelected(item) {
|
|
7852
|
+
if (props.selectedItem && props.selectedItem.current && Array.isArray(props.selectedItem.current)) {
|
|
7853
|
+
return props.selectedItem.current.some(function (selectedItem) {
|
|
7854
|
+
return ObjectUtils.deepEquals(selectedItem, item);
|
|
7855
|
+
});
|
|
7856
|
+
} else {
|
|
7857
|
+
return ObjectUtils.deepEquals(props.selectedItem.current, item);
|
|
7858
|
+
}
|
|
7859
|
+
};
|
|
7824
7860
|
var createListItem = function createListItem(item, key, index, listItemProps) {
|
|
7825
|
-
var selected =
|
|
7861
|
+
var selected = isOptionSelected(item);
|
|
7826
7862
|
var content = props.itemTemplate ? ObjectUtils.getJSXElement(props.itemTemplate, item, index) : props.field ? ObjectUtils.resolveFieldData(item, props.field) : item;
|
|
7827
7863
|
var itemProps = mergeProps(_objectSpread$1O({
|
|
7828
7864
|
index: index,
|
|
7829
7865
|
role: 'option',
|
|
7830
7866
|
className: cx('item', {
|
|
7831
7867
|
optionGroupLabel: props.optionGroupLabel,
|
|
7832
|
-
suggestion: item
|
|
7868
|
+
suggestion: item,
|
|
7869
|
+
selected: selected
|
|
7833
7870
|
}),
|
|
7834
7871
|
onClick: function onClick(e) {
|
|
7835
7872
|
return props.onItemClick(e, item);
|
|
@@ -8153,19 +8190,17 @@ var AutoComplete = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namesp
|
|
|
8153
8190
|
selectedItem.current = ObjectUtils.isNotEmpty(value) ? value : null;
|
|
8154
8191
|
};
|
|
8155
8192
|
var formatValue = function formatValue(value) {
|
|
8156
|
-
if (ObjectUtils.
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
return resolvedFieldData ? resolvedFieldData : value;
|
|
8162
|
-
} else if (props.field) {
|
|
8163
|
-
var _resolvedFieldData = ObjectUtils.resolveFieldData(value, props.field);
|
|
8164
|
-
return _resolvedFieldData !== null && _resolvedFieldData !== undefined ? _resolvedFieldData : value;
|
|
8165
|
-
}
|
|
8166
|
-
return value;
|
|
8193
|
+
if (ObjectUtils.isEmpty(value)) return '';
|
|
8194
|
+
if (typeof value === 'string') return value;
|
|
8195
|
+
var valueFromTemplate = ObjectUtils.getJSXElement(props.selectedItemTemplate, value);
|
|
8196
|
+
if (typeof valueFromTemplate === 'string') {
|
|
8197
|
+
return valueFromTemplate;
|
|
8167
8198
|
}
|
|
8168
|
-
|
|
8199
|
+
if (props.field) {
|
|
8200
|
+
var _ObjectUtils$resolveF;
|
|
8201
|
+
return (_ObjectUtils$resolveF = ObjectUtils.resolveFieldData(value, props.field)) !== null && _ObjectUtils$resolveF !== void 0 ? _ObjectUtils$resolveF : value;
|
|
8202
|
+
}
|
|
8203
|
+
return value;
|
|
8169
8204
|
};
|
|
8170
8205
|
var updateInputField = function updateInputField(value) {
|
|
8171
8206
|
inputRef.current.value = formatValue(value);
|
|
@@ -9989,7 +10024,8 @@ var Calendar = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
9989
10024
|
setYearOptions(_yearOptions);
|
|
9990
10025
|
};
|
|
9991
10026
|
var decrementYear = function decrementYear() {
|
|
9992
|
-
var
|
|
10027
|
+
var year = getViewYear();
|
|
10028
|
+
var _currentYear = year - 1;
|
|
9993
10029
|
setCurrentYear(_currentYear);
|
|
9994
10030
|
if (props.yearNavigator && _currentYear < yearOptions[0]) {
|
|
9995
10031
|
var difference = yearOptions[yearOptions.length - 1] - yearOptions[0];
|
|
@@ -9998,7 +10034,8 @@ var Calendar = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
9998
10034
|
return _currentYear;
|
|
9999
10035
|
};
|
|
10000
10036
|
var incrementYear = function incrementYear() {
|
|
10001
|
-
var
|
|
10037
|
+
var year = getViewYear();
|
|
10038
|
+
var _currentYear = year + 1;
|
|
10002
10039
|
setCurrentYear(_currentYear);
|
|
10003
10040
|
if (props.yearNavigator && _currentYear.current > yearOptions[yearOptions.length - 1]) {
|
|
10004
10041
|
var difference = yearOptions[yearOptions.length - 1] - yearOptions[0];
|
|
@@ -11050,7 +11087,6 @@ var Calendar = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
11050
11087
|
if (props.hideOnRangeSelection && endDate !== null) {
|
|
11051
11088
|
setTimeout(function () {
|
|
11052
11089
|
setOverlayVisibleState(false);
|
|
11053
|
-
isOverlayClicked.current = false;
|
|
11054
11090
|
}, 150);
|
|
11055
11091
|
}
|
|
11056
11092
|
} else {
|
|
@@ -11092,8 +11128,9 @@ var Calendar = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
11092
11128
|
};
|
|
11093
11129
|
var onMonthSelect = function onMonthSelect(event, month) {
|
|
11094
11130
|
if (props.view === 'month') {
|
|
11131
|
+
var year = getViewYear();
|
|
11095
11132
|
onDateSelect(event, {
|
|
11096
|
-
year:
|
|
11133
|
+
year: year,
|
|
11097
11134
|
month: month,
|
|
11098
11135
|
day: 1,
|
|
11099
11136
|
selectable: true
|
|
@@ -11119,6 +11156,9 @@ var Calendar = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
11119
11156
|
});
|
|
11120
11157
|
}
|
|
11121
11158
|
};
|
|
11159
|
+
var getViewYear = function getViewYear() {
|
|
11160
|
+
return props.yearNavigator ? getViewDate().getFullYear() : currentYear;
|
|
11161
|
+
};
|
|
11122
11162
|
var onYearSelect = function onYearSelect(event, year) {
|
|
11123
11163
|
if (props.view === 'year') {
|
|
11124
11164
|
onDateSelect(event, {
|
|
@@ -12589,11 +12629,12 @@ var Calendar = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
12589
12629
|
'p-disabled': !date.selectable
|
|
12590
12630
|
});
|
|
12591
12631
|
var content = date.otherMonth && !props.showOtherMonths ? null : createDateCellContent(date, dateClassName, groupIndex);
|
|
12632
|
+
var formattedValue = formatDate(new Date(date.year, date.month, date.day), getDateFormat());
|
|
12592
12633
|
var dayProps = mergeProps({
|
|
12593
12634
|
className: cx('day', {
|
|
12594
12635
|
date: date
|
|
12595
12636
|
}),
|
|
12596
|
-
'aria-label':
|
|
12637
|
+
'aria-label': formattedValue,
|
|
12597
12638
|
'data-p-today': date.today,
|
|
12598
12639
|
'data-p-other-month': date.otherMonth
|
|
12599
12640
|
}, ptm('day', {
|
|
@@ -15109,15 +15150,15 @@ var Checkbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
15109
15150
|
DomHandler.focus(inputRef.current);
|
|
15110
15151
|
}
|
|
15111
15152
|
};
|
|
15112
|
-
var _onFocus = function onFocus() {
|
|
15153
|
+
var _onFocus = function onFocus(event) {
|
|
15113
15154
|
var _props$onFocus;
|
|
15114
15155
|
setFocusedState(true);
|
|
15115
|
-
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
|
|
15156
|
+
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props, event);
|
|
15116
15157
|
};
|
|
15117
|
-
var _onBlur = function onBlur() {
|
|
15158
|
+
var _onBlur = function onBlur(event) {
|
|
15118
15159
|
var _props$onBlur;
|
|
15119
15160
|
setFocusedState(false);
|
|
15120
|
-
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
|
|
15161
|
+
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, event);
|
|
15121
15162
|
};
|
|
15122
15163
|
React__namespace.useImperativeHandle(ref, function () {
|
|
15123
15164
|
return {
|
|
@@ -15168,10 +15209,10 @@ var Checkbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
15168
15209
|
name: props.name,
|
|
15169
15210
|
tabIndex: props.tabIndex,
|
|
15170
15211
|
onFocus: function onFocus(e) {
|
|
15171
|
-
return _onFocus();
|
|
15212
|
+
return _onFocus(e);
|
|
15172
15213
|
},
|
|
15173
15214
|
onBlur: function onBlur(e) {
|
|
15174
|
-
return _onBlur();
|
|
15215
|
+
return _onBlur(e);
|
|
15175
15216
|
},
|
|
15176
15217
|
onChange: function onChange(e) {
|
|
15177
15218
|
return _onChange(e);
|
|
@@ -15301,7 +15342,9 @@ var Chip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
15301
15342
|
}, ptm('image'));
|
|
15302
15343
|
content.push(/*#__PURE__*/React__namespace.createElement("img", _extends({
|
|
15303
15344
|
alt: props.imageAlt
|
|
15304
|
-
}, imageProps
|
|
15345
|
+
}, imageProps, {
|
|
15346
|
+
key: UniqueComponentId('image')
|
|
15347
|
+
})));
|
|
15305
15348
|
} else if (props.icon) {
|
|
15306
15349
|
var chipIconProps = mergeProps({
|
|
15307
15350
|
className: cx('icon')
|
|
@@ -15315,7 +15358,7 @@ var Chip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
15315
15358
|
className: cx('label')
|
|
15316
15359
|
}, ptm('label'));
|
|
15317
15360
|
content.push(/*#__PURE__*/React__namespace.createElement("span", _extends({}, labelProps, {
|
|
15318
|
-
key:
|
|
15361
|
+
key: UniqueComponentId('label')
|
|
15319
15362
|
}), props.label));
|
|
15320
15363
|
}
|
|
15321
15364
|
if (props.removable) {
|
|
@@ -15333,7 +15376,9 @@ var Chip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
15333
15376
|
className: classNames(props.className, cx('root')),
|
|
15334
15377
|
'aria-label': props.label
|
|
15335
15378
|
}, ChipBase.getOtherProps(props), ptm('root'));
|
|
15336
|
-
return /*#__PURE__*/React__namespace.createElement("div", rootProps,
|
|
15379
|
+
return /*#__PURE__*/React__namespace.createElement("div", _extends({}, rootProps, {
|
|
15380
|
+
key: UniqueComponentId('chip')
|
|
15381
|
+
}), content);
|
|
15337
15382
|
};
|
|
15338
15383
|
React__namespace.useImperativeHandle(ref, function () {
|
|
15339
15384
|
return {
|
|
@@ -15702,7 +15747,9 @@ var Chips = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.for
|
|
|
15702
15747
|
},
|
|
15703
15748
|
'aria-hidden': 'true'
|
|
15704
15749
|
}, ptm('removeTokenIcon'));
|
|
15705
|
-
var icon = props.removeIcon || /*#__PURE__*/React__namespace.createElement(TimesCircleIcon, iconProps
|
|
15750
|
+
var icon = props.removeIcon || /*#__PURE__*/React__namespace.createElement(TimesCircleIcon, _extends({}, iconProps, {
|
|
15751
|
+
key: "".concat(index, "_icon")
|
|
15752
|
+
}));
|
|
15706
15753
|
var removeIcon = IconUtils.getJSXIcon(icon, _objectSpread$1D({}, iconProps), {
|
|
15707
15754
|
props: props
|
|
15708
15755
|
});
|
|
@@ -15715,7 +15762,9 @@ var Chips = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.for
|
|
|
15715
15762
|
var labelProps = mergeProps({
|
|
15716
15763
|
className: cx('label')
|
|
15717
15764
|
}, ptm('label'));
|
|
15718
|
-
var label = /*#__PURE__*/React__namespace.createElement("span", labelProps,
|
|
15765
|
+
var label = /*#__PURE__*/React__namespace.createElement("span", _extends({}, labelProps, {
|
|
15766
|
+
key: "".concat(index, "_").concat(value, "_span")
|
|
15767
|
+
}), content);
|
|
15719
15768
|
var icon = createRemoveIcon(value, index);
|
|
15720
15769
|
var tokenProps = mergeProps({
|
|
15721
15770
|
id: props.inputId + '_chips_item_' + index,
|
|
@@ -15764,7 +15813,9 @@ var Chips = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.for
|
|
|
15764
15813
|
},
|
|
15765
15814
|
readOnly: props.readOnly
|
|
15766
15815
|
}, ariaProps), ptm('input'));
|
|
15767
|
-
return /*#__PURE__*/React__namespace.createElement("li",
|
|
15816
|
+
return /*#__PURE__*/React__namespace.createElement("li", _extends({}, inputTokenProps, {
|
|
15817
|
+
key: props.inputId + '_chips_input'
|
|
15818
|
+
}), /*#__PURE__*/React__namespace.createElement("input", inputProps));
|
|
15768
15819
|
};
|
|
15769
15820
|
var createItems = function createItems() {
|
|
15770
15821
|
return props.value ? props.value.map(createItem) : null;
|
|
@@ -15811,7 +15862,9 @@ var Chips = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.for
|
|
|
15811
15862
|
})),
|
|
15812
15863
|
style: props.style
|
|
15813
15864
|
}, ptm('root'));
|
|
15814
|
-
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div",
|
|
15865
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", _extends({}, rootProps, {
|
|
15866
|
+
key: "chips"
|
|
15867
|
+
}), list), hasTooltip && /*#__PURE__*/React__namespace.createElement(Tooltip, _extends({
|
|
15815
15868
|
target: inputRef,
|
|
15816
15869
|
content: props.tooltip,
|
|
15817
15870
|
pt: ptm('tooltip')
|
|
@@ -16606,9 +16659,9 @@ var FocusTrap = /*#__PURE__*/React__default["default"].memo(/*#__PURE__*/React__
|
|
|
16606
16659
|
var _ref2 = props || {},
|
|
16607
16660
|
_ref2$tabIndex = _ref2.tabIndex,
|
|
16608
16661
|
tabIndex = _ref2$tabIndex === void 0 ? 0 : _ref2$tabIndex;
|
|
16609
|
-
var createFocusableElement = function createFocusableElement(onFocus, section) {
|
|
16662
|
+
var createFocusableElement = function createFocusableElement(inRef, onFocus, section) {
|
|
16610
16663
|
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
16611
|
-
ref:
|
|
16664
|
+
ref: inRef,
|
|
16612
16665
|
className: 'p-hidden-accessible p-hidden-focusable',
|
|
16613
16666
|
tabIndex: tabIndex,
|
|
16614
16667
|
role: 'presentation',
|
|
@@ -16619,11 +16672,11 @@ var FocusTrap = /*#__PURE__*/React__default["default"].memo(/*#__PURE__*/React__
|
|
|
16619
16672
|
"data-pc-section": section
|
|
16620
16673
|
});
|
|
16621
16674
|
};
|
|
16622
|
-
var firstFocusableElement = createFocusableElement(onFirstHiddenElementFocus, 'firstfocusableelement');
|
|
16623
|
-
var lastFocusableElement = createFocusableElement(onLastHiddenElementFocus, 'lastfocusableelement');
|
|
16624
|
-
if (
|
|
16625
|
-
|
|
16626
|
-
|
|
16675
|
+
var firstFocusableElement = createFocusableElement(firstFocusableElementRef, onFirstHiddenElementFocus, 'firstfocusableelement');
|
|
16676
|
+
var lastFocusableElement = createFocusableElement(lastFocusableElementRef, onLastHiddenElementFocus, 'lastfocusableelement');
|
|
16677
|
+
if (firstFocusableElementRef.current && lastFocusableElementRef.current) {
|
|
16678
|
+
firstFocusableElementRef.current.$_pfocustrap_lasthiddenfocusableelement = lastFocusableElementRef.current;
|
|
16679
|
+
lastFocusableElementRef.current.$_pfocustrap_firsthiddenfocusableelement = firstFocusableElementRef.current;
|
|
16627
16680
|
}
|
|
16628
16681
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, firstFocusableElement, props.children, lastFocusableElement);
|
|
16629
16682
|
};
|
|
@@ -16925,7 +16978,7 @@ var Dialog = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
|
16925
16978
|
bindDocumentDragEndListener = _useEventListener8[0],
|
|
16926
16979
|
unbindDocumentDragEndListener = _useEventListener8[1];
|
|
16927
16980
|
var onClose = function onClose(event) {
|
|
16928
|
-
props.onHide();
|
|
16981
|
+
props.onHide(event);
|
|
16929
16982
|
event.preventDefault();
|
|
16930
16983
|
};
|
|
16931
16984
|
var focus = function focus() {
|
|
@@ -17566,12 +17619,14 @@ var ConfirmDialog = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__names
|
|
|
17566
17619
|
};
|
|
17567
17620
|
var hide = function hide() {
|
|
17568
17621
|
var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'cancel';
|
|
17569
|
-
|
|
17570
|
-
|
|
17571
|
-
|
|
17572
|
-
|
|
17573
|
-
|
|
17574
|
-
|
|
17622
|
+
if (visibleState) {
|
|
17623
|
+
setVisibleState(false);
|
|
17624
|
+
callbackFromProp('onHide', {
|
|
17625
|
+
result: result
|
|
17626
|
+
});
|
|
17627
|
+
DomHandler.focus(focusElementOnHide.current);
|
|
17628
|
+
focusElementOnHide.current = null;
|
|
17629
|
+
}
|
|
17575
17630
|
};
|
|
17576
17631
|
var confirm = function confirm(updatedProps) {
|
|
17577
17632
|
if (updatedProps.tagKey === props.tagKey) {
|
|
@@ -20953,6 +21008,9 @@ var InputNumber = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
20953
21008
|
React__namespace.useEffect(function () {
|
|
20954
21009
|
ObjectUtils.combinedRefs(inputRef, props.inputRef);
|
|
20955
21010
|
}, [inputRef, props.inputRef]);
|
|
21011
|
+
useUnmountEffect(function () {
|
|
21012
|
+
clearTimer();
|
|
21013
|
+
});
|
|
20956
21014
|
useMountEffect(function () {
|
|
20957
21015
|
constructParser();
|
|
20958
21016
|
var newValue = validateValue(props.value);
|
|
@@ -21438,7 +21496,7 @@ var classes$U = {
|
|
|
21438
21496
|
'p-focus': focusedState,
|
|
21439
21497
|
'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled',
|
|
21440
21498
|
'p-dropdown-clearable': props.showClear && !props.disabled,
|
|
21441
|
-
'p-inputwrapper-filled':
|
|
21499
|
+
'p-inputwrapper-filled': props.value !== undefined,
|
|
21442
21500
|
'p-inputwrapper-focus': focusedState || overlayVisibleState
|
|
21443
21501
|
});
|
|
21444
21502
|
},
|
|
@@ -21531,17 +21589,17 @@ var DropdownBase = ComponentBase.extend({
|
|
|
21531
21589
|
ariaLabel: null,
|
|
21532
21590
|
ariaLabelledBy: null,
|
|
21533
21591
|
autoFocus: false,
|
|
21592
|
+
autoOptionFocus: false,
|
|
21593
|
+
checkmark: false,
|
|
21534
21594
|
children: undefined,
|
|
21535
21595
|
className: null,
|
|
21536
21596
|
clearIcon: null,
|
|
21597
|
+
collapseIcon: null,
|
|
21537
21598
|
dataKey: null,
|
|
21538
21599
|
disabled: false,
|
|
21539
21600
|
dropdownIcon: null,
|
|
21540
|
-
collapseIcon: null,
|
|
21541
21601
|
editable: false,
|
|
21542
21602
|
emptyFilterMessage: null,
|
|
21543
|
-
highlightOnSelect: true,
|
|
21544
|
-
checkmark: false,
|
|
21545
21603
|
emptyMessage: null,
|
|
21546
21604
|
filter: false,
|
|
21547
21605
|
filterBy: null,
|
|
@@ -21553,11 +21611,12 @@ var DropdownBase = ComponentBase.extend({
|
|
|
21553
21611
|
filterPlaceholder: null,
|
|
21554
21612
|
filterTemplate: null,
|
|
21555
21613
|
focusInputRef: null,
|
|
21614
|
+
focusOnHover: true,
|
|
21615
|
+
highlightOnSelect: true,
|
|
21556
21616
|
id: null,
|
|
21557
21617
|
inputId: null,
|
|
21558
21618
|
inputRef: null,
|
|
21559
21619
|
invalid: false,
|
|
21560
|
-
variant: null,
|
|
21561
21620
|
itemTemplate: null,
|
|
21562
21621
|
loading: false,
|
|
21563
21622
|
loadingIcon: null,
|
|
@@ -21573,14 +21632,11 @@ var DropdownBase = ComponentBase.extend({
|
|
|
21573
21632
|
onShow: null,
|
|
21574
21633
|
optionDisabled: null,
|
|
21575
21634
|
optionGroupChildren: 'items',
|
|
21576
|
-
selectOnFocus: false,
|
|
21577
|
-
focusOnHover: true,
|
|
21578
|
-
autoOptionFocus: false,
|
|
21579
21635
|
optionGroupLabel: null,
|
|
21580
21636
|
optionGroupTemplate: null,
|
|
21581
21637
|
optionLabel: null,
|
|
21582
|
-
optionValue: null,
|
|
21583
21638
|
options: null,
|
|
21639
|
+
optionValue: null,
|
|
21584
21640
|
panelClassName: null,
|
|
21585
21641
|
panelFooterTemplate: null,
|
|
21586
21642
|
panelStyle: null,
|
|
@@ -21588,6 +21644,7 @@ var DropdownBase = ComponentBase.extend({
|
|
|
21588
21644
|
required: false,
|
|
21589
21645
|
resetFilterOnHide: false,
|
|
21590
21646
|
scrollHeight: '200px',
|
|
21647
|
+
selectOnFocus: false,
|
|
21591
21648
|
showClear: false,
|
|
21592
21649
|
showFilterClear: false,
|
|
21593
21650
|
showOnFocus: false,
|
|
@@ -21596,8 +21653,10 @@ var DropdownBase = ComponentBase.extend({
|
|
|
21596
21653
|
tooltip: null,
|
|
21597
21654
|
tooltipOptions: null,
|
|
21598
21655
|
transitionOptions: null,
|
|
21656
|
+
useOptionAsValue: false,
|
|
21599
21657
|
value: null,
|
|
21600
21658
|
valueTemplate: null,
|
|
21659
|
+
variant: null,
|
|
21601
21660
|
virtualScrollerOptions: null
|
|
21602
21661
|
},
|
|
21603
21662
|
css: {
|
|
@@ -21678,7 +21737,6 @@ var DropdownItem = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
21678
21737
|
var itemProps = mergeProps({
|
|
21679
21738
|
id: "dropdownItem_".concat(index),
|
|
21680
21739
|
role: 'option',
|
|
21681
|
-
key: props.label,
|
|
21682
21740
|
className: classNames(option.className, cx('item', {
|
|
21683
21741
|
selected: selected,
|
|
21684
21742
|
disabled: disabled,
|
|
@@ -21721,7 +21779,9 @@ var DropdownItem = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
21721
21779
|
}, getPTOptions('blankIcon'));
|
|
21722
21780
|
return /*#__PURE__*/React__namespace.createElement(BlankIcon, blankIconProps);
|
|
21723
21781
|
};
|
|
21724
|
-
return /*#__PURE__*/React__namespace.createElement("li",
|
|
21782
|
+
return /*#__PURE__*/React__namespace.createElement("li", _extends({
|
|
21783
|
+
key: props.label
|
|
21784
|
+
}, itemProps), checkmark && iconRenderer(), /*#__PURE__*/React__namespace.createElement("span", itemGroupLabelProps, content), /*#__PURE__*/React__namespace.createElement(Ripple, null));
|
|
21725
21785
|
});
|
|
21726
21786
|
DropdownItem.displayName = 'DropdownItem';
|
|
21727
21787
|
|
|
@@ -22133,7 +22193,6 @@ var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
22133
22193
|
if (props.disabled || props.loading) {
|
|
22134
22194
|
return;
|
|
22135
22195
|
}
|
|
22136
|
-
event.stopPropagation();
|
|
22137
22196
|
props.onClick && props.onClick(event);
|
|
22138
22197
|
|
|
22139
22198
|
// do not continue if the user defined click wants to prevent it
|
|
@@ -22146,6 +22205,7 @@ var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
22146
22205
|
DomHandler.focus(focusInputRef.current);
|
|
22147
22206
|
overlayVisibleState ? hide() : show();
|
|
22148
22207
|
}
|
|
22208
|
+
event.preventDefault();
|
|
22149
22209
|
clickedRef.current = true;
|
|
22150
22210
|
};
|
|
22151
22211
|
var onInputFocus = function onInputFocus(event) {
|
|
@@ -22180,10 +22240,9 @@ var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
22180
22240
|
};
|
|
22181
22241
|
var onOptionSelect = function onOptionSelect(event, option) {
|
|
22182
22242
|
var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
22183
|
-
var value = getOptionValue(option);
|
|
22184
22243
|
selectItem({
|
|
22185
22244
|
originalEvent: event,
|
|
22186
|
-
option:
|
|
22245
|
+
option: option
|
|
22187
22246
|
});
|
|
22188
22247
|
isHide && hide();
|
|
22189
22248
|
};
|
|
@@ -22471,13 +22530,22 @@ var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
22471
22530
|
!overlayVisibleState && show();
|
|
22472
22531
|
}
|
|
22473
22532
|
};
|
|
22533
|
+
var findInArray = function findInArray(visibleOptions, searchText) {
|
|
22534
|
+
if (!searchText || !(visibleOptions !== null && visibleOptions !== void 0 && visibleOptions.length)) return -1;
|
|
22535
|
+
var normalizedSearch = searchText.toLocaleLowerCase();
|
|
22536
|
+
var exactMatch = visibleOptions.findIndex(function (item) {
|
|
22537
|
+
return getOptionLabel(item).toLocaleLowerCase() === normalizedSearch;
|
|
22538
|
+
});
|
|
22539
|
+
if (exactMatch !== -1) return exactMatch;
|
|
22540
|
+
return visibleOptions.findIndex(function (item) {
|
|
22541
|
+
return getOptionLabel(item).toLocaleLowerCase().startsWith(normalizedSearch);
|
|
22542
|
+
});
|
|
22543
|
+
};
|
|
22474
22544
|
var onEditableInputChange = function onEditableInputChange(event) {
|
|
22475
22545
|
!overlayVisibleState && show();
|
|
22476
22546
|
var searchIndex = null;
|
|
22477
22547
|
if (event.target.value && visibleOptions) {
|
|
22478
|
-
searchIndex = visibleOptions.
|
|
22479
|
-
return getOptionLabel(item).toLocaleLowerCase().startsWith(event.target.value.toLocaleLowerCase());
|
|
22480
|
-
});
|
|
22548
|
+
searchIndex = findInArray(visibleOptions, event.target.value);
|
|
22481
22549
|
}
|
|
22482
22550
|
setFocusedOptionIndex(searchIndex);
|
|
22483
22551
|
if (props.onChange) {
|
|
@@ -22582,7 +22650,7 @@ var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
22582
22650
|
};
|
|
22583
22651
|
var getSelectedOptionIndex = function getSelectedOptionIndex(options) {
|
|
22584
22652
|
options = options || visibleOptions;
|
|
22585
|
-
if (
|
|
22653
|
+
if (options) {
|
|
22586
22654
|
if (props.optionGroupLabel) {
|
|
22587
22655
|
for (var i = 0; i < options.length; i++) {
|
|
22588
22656
|
var selectedOptionIndex = findOptionIndexInList(props.value, getOptionGroupChildren(options[i]));
|
|
@@ -24088,6 +24156,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24088
24156
|
var keyHelperRef = React__namespace.useRef(null);
|
|
24089
24157
|
var overlayEventListener = React__namespace.useRef(null);
|
|
24090
24158
|
var selfClick = React__namespace.useRef(false);
|
|
24159
|
+
var focusTimeout = React__namespace.useRef(null);
|
|
24091
24160
|
var initFocusTimeout = React__namespace.useRef(null);
|
|
24092
24161
|
var editingRowDataStateRef = React__namespace.useRef(null);
|
|
24093
24162
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
@@ -24132,12 +24201,13 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24132
24201
|
var _useEventListener = useEventListener({
|
|
24133
24202
|
type: 'click',
|
|
24134
24203
|
listener: function listener(e) {
|
|
24135
|
-
|
|
24136
|
-
|
|
24137
|
-
|
|
24204
|
+
setTimeout(function () {
|
|
24205
|
+
if (!selfClick.current && isOutsideClicked(e.target)) {
|
|
24206
|
+
// #2666 for overlay components and outside is clicked
|
|
24207
|
+
|
|
24138
24208
|
switchCellToViewMode(e, true);
|
|
24139
|
-
}
|
|
24140
|
-
}
|
|
24209
|
+
}
|
|
24210
|
+
}, 0);
|
|
24141
24211
|
selfClick.current = false;
|
|
24142
24212
|
},
|
|
24143
24213
|
options: true,
|
|
@@ -24268,11 +24338,14 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24268
24338
|
}
|
|
24269
24339
|
};
|
|
24270
24340
|
var focusOnElement = function focusOnElement() {
|
|
24271
|
-
|
|
24272
|
-
|
|
24273
|
-
|
|
24274
|
-
|
|
24275
|
-
|
|
24341
|
+
clearTimeout(focusTimeout.current);
|
|
24342
|
+
focusTimeout.current = setTimeout(function () {
|
|
24343
|
+
if (editingState) {
|
|
24344
|
+
var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
|
|
24345
|
+
focusableEl && focusableEl.focus();
|
|
24346
|
+
}
|
|
24347
|
+
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
24348
|
+
}, 1);
|
|
24276
24349
|
};
|
|
24277
24350
|
var focusOnInit = function focusOnInit() {
|
|
24278
24351
|
clearTimeout(initFocusTimeout.current);
|
|
@@ -24499,7 +24572,8 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
24499
24572
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
24500
24573
|
focusOnElement();
|
|
24501
24574
|
}
|
|
24502
|
-
});
|
|
24575
|
+
}, [props.editMode, props.editing, editingState]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
24576
|
+
|
|
24503
24577
|
React__namespace.useEffect(function () {
|
|
24504
24578
|
if (props.editMode === 'row' && props.editing !== editingState) {
|
|
24505
24579
|
setEditingState(props.editing);
|
|
@@ -25739,10 +25813,10 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25739
25813
|
return isAllowCellSelection ? selectRangeOnCell(event, rangeStart, rangeEnd) : selectRangeOnRow(event, rangeStart, rangeEnd);
|
|
25740
25814
|
};
|
|
25741
25815
|
var selectRangeOnRow = function selectRangeOnRow(event, rowRangeStart, rowRangeEnd) {
|
|
25742
|
-
var value = props.tableProps.value;
|
|
25743
25816
|
var selection = [];
|
|
25744
25817
|
for (var i = rowRangeStart; i <= rowRangeEnd; i++) {
|
|
25745
|
-
var
|
|
25818
|
+
var _props$value$i;
|
|
25819
|
+
var rangeRowData = (_props$value$i = props.value[i]) !== null && _props$value$i !== void 0 ? _props$value$i : props.tableProps.value[i];
|
|
25746
25820
|
if (!isSelectable({
|
|
25747
25821
|
data: rangeRowData,
|
|
25748
25822
|
index: i
|
|
@@ -25960,7 +26034,7 @@ var TableBody = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
25960
26034
|
var event = e.originalEvent;
|
|
25961
26035
|
var isDraggableHandle = isUnstyled() ? DomHandler.getAttribute(event.target, 'data-pc-section') === 'rowreordericon' || event.target.closest('[data-pc-section="rowreordericon"]') : DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle') || event.target.closest('.p-datatable-reorderablerow-handle');
|
|
25962
26036
|
event.currentTarget.draggable = isDraggableHandle;
|
|
25963
|
-
event.target.draggable =
|
|
26037
|
+
event.target.draggable = isDraggableHandle;
|
|
25964
26038
|
if (allowRowDrag(e)) {
|
|
25965
26039
|
enableDragSelection(event);
|
|
25966
26040
|
anchorRowIndex.current = e.index;
|
|
@@ -26572,6 +26646,7 @@ var TableFooter = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
26572
26646
|
var getRowProps = function getRowProps(row) {
|
|
26573
26647
|
return ColumnGroupBase.getCProps(row);
|
|
26574
26648
|
};
|
|
26649
|
+
var context = React__namespace.useContext(PrimeReactContext);
|
|
26575
26650
|
var getColumnGroupProps = function getColumnGroupProps() {
|
|
26576
26651
|
return props.footerColumnGroup ? ColumnGroupBase.getCProps(props.footerColumnGroup) : undefined;
|
|
26577
26652
|
};
|
|
@@ -26629,7 +26704,7 @@ var TableFooter = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
26629
26704
|
return rows.map(function (row, i) {
|
|
26630
26705
|
var rootProps = mergeProps({
|
|
26631
26706
|
role: 'row'
|
|
26632
|
-
}, getRowPTOptions(row, 'root'));
|
|
26707
|
+
}, RowBase.getProps(row.props, context), getRowPTOptions(row, 'root'));
|
|
26633
26708
|
return /*#__PURE__*/React__namespace.createElement("tr", _extends({}, rootProps, {
|
|
26634
26709
|
key: i
|
|
26635
26710
|
}), createGroupFooterCells(row));
|
|
@@ -27820,7 +27895,7 @@ var HeaderCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
27820
27895
|
});
|
|
27821
27896
|
};
|
|
27822
27897
|
var _onKeyDown = function onKeyDown(event) {
|
|
27823
|
-
if ((event.code == 'Enter' || event.code === 'NumpadEnter' || event.code == 'Space') && event.
|
|
27898
|
+
if ((event.code == 'Enter' || event.code === 'NumpadEnter' || event.code == 'Space') && event.target === elementRef.current && DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column') === true) {
|
|
27824
27899
|
_onClick(event);
|
|
27825
27900
|
event.preventDefault();
|
|
27826
27901
|
}
|
|
@@ -28078,6 +28153,7 @@ var TableHeader = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
28078
28153
|
ptm = _props$ptCallbacks.ptm,
|
|
28079
28154
|
ptmo = _props$ptCallbacks.ptmo,
|
|
28080
28155
|
cx = _props$ptCallbacks.cx;
|
|
28156
|
+
var context = React__namespace.useContext(PrimeReactContext);
|
|
28081
28157
|
var getColumnProp = function getColumnProp(column, name) {
|
|
28082
28158
|
return ColumnBase.getCProp(column, name);
|
|
28083
28159
|
};
|
|
@@ -28286,7 +28362,7 @@ var TableHeader = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
28286
28362
|
return rows.map(function (row, i) {
|
|
28287
28363
|
var headerRowProps = mergeProps({
|
|
28288
28364
|
role: 'row'
|
|
28289
|
-
}, getRowPTOptions(row, 'root'));
|
|
28365
|
+
}, RowBase.getProps(row.props, context), getRowPTOptions(row, 'root'));
|
|
28290
28366
|
return /*#__PURE__*/React__namespace.createElement("tr", _extends({}, headerRowProps, {
|
|
28291
28367
|
key: i
|
|
28292
28368
|
}), createGroupHeaderCells(row));
|
|
@@ -31204,7 +31280,7 @@ var Editor = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.fo
|
|
|
31204
31280
|
});
|
|
31205
31281
|
}
|
|
31206
31282
|
};
|
|
31207
|
-
var initValue = React.useRef(props.value);
|
|
31283
|
+
var initValue = React$1.useRef(props.value);
|
|
31208
31284
|
initValue.current = props.value;
|
|
31209
31285
|
var initQuill = function initQuill(quillInstance) {
|
|
31210
31286
|
quill.current = quillInstance;
|
|
@@ -31724,7 +31800,6 @@ var UIMessage = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
31724
31800
|
};
|
|
31725
31801
|
var createCloseIcon = function createCloseIcon() {
|
|
31726
31802
|
if (closable !== false) {
|
|
31727
|
-
var ariaLabel = localeOption('close');
|
|
31728
31803
|
var buttonIconProps = mergeProps({
|
|
31729
31804
|
className: cx('uimessage.buttonicon')
|
|
31730
31805
|
}, getPTOptions('buttonicon', parentParams), ptmo(pt, 'buttonicon', _objectSpread$14(_objectSpread$14({}, params), {}, {
|
|
@@ -31737,7 +31812,7 @@ var UIMessage = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
31737
31812
|
var buttonProps = mergeProps({
|
|
31738
31813
|
type: 'button',
|
|
31739
31814
|
className: cx('uimessage.button'),
|
|
31740
|
-
'aria-label': ariaLabel,
|
|
31815
|
+
'aria-label': ariaLabel('close'),
|
|
31741
31816
|
onClick: onClose
|
|
31742
31817
|
}, getPTOptions('button', parentParams), ptmo(pt, 'button', _objectSpread$14(_objectSpread$14({}, params), {}, {
|
|
31743
31818
|
hostName: props.hostName
|
|
@@ -31880,7 +31955,7 @@ var Messages = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
31880
31955
|
};
|
|
31881
31956
|
var remove = function remove(messageInfo) {
|
|
31882
31957
|
// allow removal by ID or by message equality
|
|
31883
|
-
var removeMessage = messageInfo._pId ? messageInfo._pId : messageInfo.message || messageInfo;
|
|
31958
|
+
var removeMessage = ObjectUtils.isNotEmpty(messageInfo._pId) ? messageInfo._pId : messageInfo.message || messageInfo;
|
|
31884
31959
|
setMessagesState(function (prev) {
|
|
31885
31960
|
return prev.filter(function (msg) {
|
|
31886
31961
|
return msg._pId !== messageInfo._pId && !ObjectUtils.deepEquals(msg.message, removeMessage);
|
|
@@ -34107,9 +34182,9 @@ var IconFieldBase = ComponentBase.extend({
|
|
|
34107
34182
|
function ownKeys$Z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34108
34183
|
function _objectSpread$Z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34109
34184
|
var IconField = /*#__PURE__*/React__default["default"].memo(/*#__PURE__*/React__default["default"].forwardRef(function (inProps, ref) {
|
|
34110
|
-
var elementRef = React.useRef(ref);
|
|
34185
|
+
var elementRef = React$1.useRef(ref);
|
|
34111
34186
|
var mergeProps = useMergeProps();
|
|
34112
|
-
var context = React.useContext(PrimeReactContext);
|
|
34187
|
+
var context = React$1.useContext(PrimeReactContext);
|
|
34113
34188
|
var props = IconFieldBase.getProps(inProps, context);
|
|
34114
34189
|
var _IconFieldBase$setMet = IconFieldBase.setMetaData(_objectSpread$Z(_objectSpread$Z({
|
|
34115
34190
|
props: props
|
|
@@ -34127,8 +34202,8 @@ var IconField = /*#__PURE__*/React__default["default"].memo(/*#__PURE__*/React__
|
|
|
34127
34202
|
}, IconFieldBase.getOtherProps(props), ptm('root'));
|
|
34128
34203
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, rootProps, {
|
|
34129
34204
|
ref: elementRef
|
|
34130
|
-
}), React.Children.map(props.children, function (child, index) {
|
|
34131
|
-
return /*#__PURE__*/React.cloneElement(child, {
|
|
34205
|
+
}), React$1.Children.map(props.children, function (child, index) {
|
|
34206
|
+
return /*#__PURE__*/React$1.cloneElement(child, {
|
|
34132
34207
|
iconPosition: props.iconPosition
|
|
34133
34208
|
});
|
|
34134
34209
|
}));
|
|
@@ -35509,7 +35584,8 @@ var InputMask = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace
|
|
|
35509
35584
|
type: props.type,
|
|
35510
35585
|
name: props.name,
|
|
35511
35586
|
style: props.style,
|
|
35512
|
-
className: className
|
|
35587
|
+
className: className,
|
|
35588
|
+
value: props.value
|
|
35513
35589
|
}, otherProps, {
|
|
35514
35590
|
placeholder: props.placeholder,
|
|
35515
35591
|
size: props.size,
|
|
@@ -35723,7 +35799,8 @@ var InputTextareaBase = ComponentBase.extend({
|
|
|
35723
35799
|
tooltip: null,
|
|
35724
35800
|
tooltipOptions: null,
|
|
35725
35801
|
validateOnly: false,
|
|
35726
|
-
children: undefined
|
|
35802
|
+
children: undefined,
|
|
35803
|
+
className: null
|
|
35727
35804
|
},
|
|
35728
35805
|
css: {
|
|
35729
35806
|
classes: classes$D,
|
|
@@ -35798,7 +35875,7 @@ var InputTextarea = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__names
|
|
|
35798
35875
|
};
|
|
35799
35876
|
var resize = function resize(initial) {
|
|
35800
35877
|
var inputEl = elementRef.current;
|
|
35801
|
-
if (inputEl &&
|
|
35878
|
+
if (inputEl && isVisible()) {
|
|
35802
35879
|
if (!cachedScrollHeight.current) {
|
|
35803
35880
|
cachedScrollHeight.current = inputEl.scrollHeight;
|
|
35804
35881
|
inputEl.style.overflow = 'hidden';
|
|
@@ -35816,6 +35893,13 @@ var InputTextarea = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__names
|
|
|
35816
35893
|
}
|
|
35817
35894
|
}
|
|
35818
35895
|
};
|
|
35896
|
+
var isVisible = function isVisible() {
|
|
35897
|
+
if (DomHandler.isVisible(elementRef.current)) {
|
|
35898
|
+
var rect = elementRef.current.getBoundingClientRect();
|
|
35899
|
+
return rect.width > 0 && rect.height > 0;
|
|
35900
|
+
}
|
|
35901
|
+
return false;
|
|
35902
|
+
};
|
|
35819
35903
|
React__namespace.useEffect(function () {
|
|
35820
35904
|
ObjectUtils.combinedRefs(elementRef, ref);
|
|
35821
35905
|
}, [elementRef, ref]);
|
|
@@ -35823,6 +35907,7 @@ var InputTextarea = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__names
|
|
|
35823
35907
|
if (props.autoResize) {
|
|
35824
35908
|
resize(true);
|
|
35825
35909
|
}
|
|
35910
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
35826
35911
|
}, [props.autoResize]);
|
|
35827
35912
|
var isFilled = React__namespace.useMemo(function () {
|
|
35828
35913
|
return ObjectUtils.isNotEmpty(props.value) || ObjectUtils.isNotEmpty(props.defaultValue);
|
|
@@ -38991,6 +39076,7 @@ var Mention = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.f
|
|
|
38991
39076
|
style: props.inputStyle
|
|
38992
39077
|
}, inputProps), {}, {
|
|
38993
39078
|
unstyled: props.unstyled,
|
|
39079
|
+
autoResize: props.autoResize,
|
|
38994
39080
|
onFocus: onFocus,
|
|
38995
39081
|
onBlur: onBlur,
|
|
38996
39082
|
onKeyDown: onKeyDown,
|
|
@@ -39026,21 +39112,26 @@ var classes$z = {
|
|
|
39026
39112
|
});
|
|
39027
39113
|
},
|
|
39028
39114
|
menu: 'p-menu-list p-reset',
|
|
39029
|
-
content:
|
|
39030
|
-
action: function action(_ref2) {
|
|
39115
|
+
content: function content(_ref2) {
|
|
39031
39116
|
var item = _ref2.item;
|
|
39117
|
+
return classNames('p-menuitem-content', {
|
|
39118
|
+
'p-disabled': item.disabled
|
|
39119
|
+
});
|
|
39120
|
+
},
|
|
39121
|
+
action: function action(_ref3) {
|
|
39122
|
+
var item = _ref3.item;
|
|
39032
39123
|
return classNames('p-menuitem-link', {
|
|
39033
39124
|
'p-disabled': item.disabled
|
|
39034
39125
|
});
|
|
39035
39126
|
},
|
|
39036
|
-
menuitem: function menuitem(
|
|
39037
|
-
var focused =
|
|
39127
|
+
menuitem: function menuitem(_ref4) {
|
|
39128
|
+
var focused = _ref4.focused;
|
|
39038
39129
|
return classNames('p-menuitem', {
|
|
39039
39130
|
'p-focus': focused
|
|
39040
39131
|
});
|
|
39041
39132
|
},
|
|
39042
|
-
submenuHeader: function submenuHeader(
|
|
39043
|
-
var submenu =
|
|
39133
|
+
submenuHeader: function submenuHeader(_ref5) {
|
|
39134
|
+
var submenu = _ref5.submenu;
|
|
39044
39135
|
return classNames('p-submenu-header', {
|
|
39045
39136
|
'p-disabled': submenu.disabled
|
|
39046
39137
|
});
|
|
@@ -39051,12 +39142,12 @@ var classes$z = {
|
|
|
39051
39142
|
transition: 'p-connected-overlay'
|
|
39052
39143
|
};
|
|
39053
39144
|
var inlineStyles$b = {
|
|
39054
|
-
submenuHeader: function submenuHeader(
|
|
39055
|
-
var submenu =
|
|
39145
|
+
submenuHeader: function submenuHeader(_ref6) {
|
|
39146
|
+
var submenu = _ref6.submenu;
|
|
39056
39147
|
return submenu.style;
|
|
39057
39148
|
},
|
|
39058
|
-
menuitem: function menuitem(
|
|
39059
|
-
var item =
|
|
39149
|
+
menuitem: function menuitem(_ref7) {
|
|
39150
|
+
var item = _ref7.item;
|
|
39060
39151
|
return item.style;
|
|
39061
39152
|
}
|
|
39062
39153
|
};
|
|
@@ -39424,7 +39515,9 @@ var Menu = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
39424
39515
|
onMouseMove: function onMouseMove(event) {
|
|
39425
39516
|
return onItemMouseMove(event, key);
|
|
39426
39517
|
},
|
|
39427
|
-
className: cx('content'
|
|
39518
|
+
className: cx('content', {
|
|
39519
|
+
item: item
|
|
39520
|
+
})
|
|
39428
39521
|
}, getMenuItemPTOptions('content', menuContext));
|
|
39429
39522
|
var actionProps = mergeProps({
|
|
39430
39523
|
href: item.url || '#',
|
|
@@ -41132,7 +41225,7 @@ var MultiSelectHeader = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
41132
41225
|
var closeButtonProps = mergeProps({
|
|
41133
41226
|
type: 'button',
|
|
41134
41227
|
className: cx('closeButton'),
|
|
41135
|
-
'aria-label':
|
|
41228
|
+
'aria-label': ariaLabel('close'),
|
|
41136
41229
|
onClick: props.onClose
|
|
41137
41230
|
}, getPTOptions('closeButton'));
|
|
41138
41231
|
var closeElement = /*#__PURE__*/React__namespace.createElement("button", closeButtonProps, closeIcon, /*#__PURE__*/React__namespace.createElement(Ripple, null));
|
|
@@ -41326,34 +41419,6 @@ var MultiSelectPanel = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__na
|
|
|
41326
41419
|
props === null || props === void 0 || (_props$changeFocusedO = props.changeFocusedOptionIndex) === null || _props$changeFocusedO === void 0 || _props$changeFocusedO.call(props, event, index);
|
|
41327
41420
|
}
|
|
41328
41421
|
};
|
|
41329
|
-
var createGroupChildren = function createGroupChildren(optionGroup, style) {
|
|
41330
|
-
var groupChildren = props.getOptionGroupChildren(optionGroup);
|
|
41331
|
-
return groupChildren.map(function (option, j) {
|
|
41332
|
-
var optionLabel = props.getOptionLabel(option);
|
|
41333
|
-
var optionKey = j + '_' + props.getOptionRenderKey(option);
|
|
41334
|
-
var disabled = props.isOptionDisabled(option);
|
|
41335
|
-
var selected = props.isSelected(option);
|
|
41336
|
-
return /*#__PURE__*/React__namespace.createElement(MultiSelectItem, {
|
|
41337
|
-
hostName: props.hostName,
|
|
41338
|
-
index: j,
|
|
41339
|
-
key: optionKey,
|
|
41340
|
-
focusedOptionIndex: props.focusedOptionIndex,
|
|
41341
|
-
label: optionLabel,
|
|
41342
|
-
option: option,
|
|
41343
|
-
style: style,
|
|
41344
|
-
template: props.itemTemplate,
|
|
41345
|
-
selected: selected,
|
|
41346
|
-
onClick: props.onOptionSelect,
|
|
41347
|
-
onMouseMove: changeFocusedItemOnHover,
|
|
41348
|
-
disabled: disabled,
|
|
41349
|
-
className: props.itemClassName,
|
|
41350
|
-
checkboxIcon: props.checkboxIcon,
|
|
41351
|
-
isUnstyled: isUnstyled,
|
|
41352
|
-
ptm: ptm,
|
|
41353
|
-
cx: cx
|
|
41354
|
-
});
|
|
41355
|
-
});
|
|
41356
|
-
};
|
|
41357
41422
|
var createEmptyFilter = function createEmptyFilter() {
|
|
41358
41423
|
var emptyFilterMessage = ObjectUtils.getJSXElement(props.emptyFilterMessage, props) || localeOption('emptyFilterMessage');
|
|
41359
41424
|
var emptyMessageProps = mergeProps({
|
|
@@ -41377,9 +41442,8 @@ var MultiSelectPanel = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__na
|
|
|
41377
41442
|
var style = {
|
|
41378
41443
|
height: scrollerOptions.props ? scrollerOptions.props.itemSize : undefined
|
|
41379
41444
|
};
|
|
41380
|
-
if (props.optionGroupLabel) {
|
|
41445
|
+
if (option.group && props.optionGroupLabel) {
|
|
41381
41446
|
var groupContent = props.optionGroupTemplate ? ObjectUtils.getJSXElement(props.optionGroupTemplate, option, index) : props.getOptionGroupLabel(option);
|
|
41382
|
-
var groupChildrenContent = createGroupChildren(option, style);
|
|
41383
41447
|
var key = index + '_' + props.getOptionGroupRenderKey(option);
|
|
41384
41448
|
var itemGroupProps = mergeProps({
|
|
41385
41449
|
className: cx('itemGroup'),
|
|
@@ -41387,11 +41451,9 @@ var MultiSelectPanel = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__na
|
|
|
41387
41451
|
scrollerOptions: scrollerOptions
|
|
41388
41452
|
})
|
|
41389
41453
|
}, getPTOptions('itemGroup'));
|
|
41390
|
-
return /*#__PURE__*/React__namespace.createElement(
|
|
41391
|
-
key: key
|
|
41392
|
-
}, /*#__PURE__*/React__namespace.createElement("li", _extends({}, itemGroupProps, {
|
|
41454
|
+
return /*#__PURE__*/React__namespace.createElement("li", _extends({
|
|
41393
41455
|
key: key
|
|
41394
|
-
}
|
|
41456
|
+
}, itemGroupProps), groupContent);
|
|
41395
41457
|
}
|
|
41396
41458
|
var optionLabel = props.getOptionLabel(option);
|
|
41397
41459
|
var optionKey = index + '_' + props.getOptionRenderKey(option);
|
|
@@ -41587,8 +41649,9 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
41587
41649
|
var firstHiddenFocusableElementOnOverlay = React__namespace.useRef(null);
|
|
41588
41650
|
var lastHiddenFocusableElementOnOverlay = React__namespace.useRef(null);
|
|
41589
41651
|
var inputRef = React__namespace.useRef(props.inputRef);
|
|
41590
|
-
var
|
|
41652
|
+
var labelContainerRef = React__namespace.useRef(null);
|
|
41591
41653
|
var overlayRef = React__namespace.useRef(null);
|
|
41654
|
+
var labelRef = React__namespace.useRef(null);
|
|
41592
41655
|
var hasFilter = filterState && filterState.trim().length > 0;
|
|
41593
41656
|
var empty = ObjectUtils.isEmpty(props.value);
|
|
41594
41657
|
var equalityKey = props.optionValue ? null : props.dataKey;
|
|
@@ -41894,29 +41957,12 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
41894
41957
|
var value = null;
|
|
41895
41958
|
if (event.checked) {
|
|
41896
41959
|
value = [];
|
|
41897
|
-
|
|
41898
|
-
|
|
41899
|
-
|
|
41900
|
-
});
|
|
41901
|
-
value = selectedOptions.map(function (option) {
|
|
41902
|
-
return getOptionValue(option);
|
|
41903
|
-
});
|
|
41904
|
-
}
|
|
41905
|
-
} else if (visibleOptions) {
|
|
41906
|
-
var options = visibleOptions.filter(function (option) {
|
|
41907
|
-
return !isOptionDisabled(option) || isSelected(option);
|
|
41960
|
+
} else {
|
|
41961
|
+
var validOptions = visibleOptions.filter(function (option) {
|
|
41962
|
+
return isValidOption(option) && !isOptionDisabled(option);
|
|
41908
41963
|
});
|
|
41909
|
-
if (
|
|
41910
|
-
value =
|
|
41911
|
-
options.forEach(function (optionGroup) {
|
|
41912
|
-
return value = [].concat(_toConsumableArray(value), _toConsumableArray(getOptionGroupChildren(optionGroup).filter(function (option) {
|
|
41913
|
-
return !isOptionDisabled(option);
|
|
41914
|
-
}).map(function (option) {
|
|
41915
|
-
return getOptionValue(option);
|
|
41916
|
-
})));
|
|
41917
|
-
});
|
|
41918
|
-
} else {
|
|
41919
|
-
value = options.map(function (option) {
|
|
41964
|
+
if (validOptions) {
|
|
41965
|
+
value = validOptions.map(function (option) {
|
|
41920
41966
|
return getOptionValue(option);
|
|
41921
41967
|
});
|
|
41922
41968
|
}
|
|
@@ -42020,7 +42066,7 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42020
42066
|
props.onHide && props.onHide();
|
|
42021
42067
|
};
|
|
42022
42068
|
var alignOverlay = function alignOverlay() {
|
|
42023
|
-
DomHandler.alignOverlay(overlayRef.current,
|
|
42069
|
+
!props.inline && DomHandler.alignOverlay(overlayRef.current, labelContainerRef.current.parentElement, props.appendTo || context && context.appendTo || PrimeReact.appendTo);
|
|
42024
42070
|
};
|
|
42025
42071
|
var isClearClicked = function isClearClicked(event) {
|
|
42026
42072
|
return DomHandler.getAttribute(event.target, 'data-pc-section') === 'clearicon';
|
|
@@ -42122,31 +42168,8 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42122
42168
|
return false;
|
|
42123
42169
|
}
|
|
42124
42170
|
var options = visibleOptions.filter(function (option) {
|
|
42125
|
-
return !isOptionDisabled(option);
|
|
42171
|
+
return !isOptionDisabled(option) && isValidOption(option);
|
|
42126
42172
|
});
|
|
42127
|
-
if (props.optionGroupLabel) {
|
|
42128
|
-
var areAllSelected = true;
|
|
42129
|
-
var _iterator2 = _createForOfIteratorHelper$7(options),
|
|
42130
|
-
_step2;
|
|
42131
|
-
try {
|
|
42132
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
42133
|
-
var optionGroup = _step2.value;
|
|
42134
|
-
var visibleOptionsGroupChildren = getOptionGroupChildren(optionGroup).filter(function (option) {
|
|
42135
|
-
return !isOptionDisabled(option);
|
|
42136
|
-
});
|
|
42137
|
-
if (visibleOptionsGroupChildren.some(function (option) {
|
|
42138
|
-
return !isSelected(option);
|
|
42139
|
-
}) === true) {
|
|
42140
|
-
areAllSelected = false;
|
|
42141
|
-
}
|
|
42142
|
-
}
|
|
42143
|
-
} catch (err) {
|
|
42144
|
-
_iterator2.e(err);
|
|
42145
|
-
} finally {
|
|
42146
|
-
_iterator2.f();
|
|
42147
|
-
}
|
|
42148
|
-
return areAllSelected;
|
|
42149
|
-
}
|
|
42150
42173
|
return !options.some(function (option) {
|
|
42151
42174
|
return !isSelected(option);
|
|
42152
42175
|
});
|
|
@@ -42196,7 +42219,7 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42196
42219
|
return !props.useOptionAsValue && props.optionValue || option && option.value !== undefined;
|
|
42197
42220
|
};
|
|
42198
42221
|
var isOptionGroup = function isOptionGroup(option) {
|
|
42199
|
-
return props.optionGroupLabel && option.
|
|
42222
|
+
return props.optionGroupLabel && option.group;
|
|
42200
42223
|
};
|
|
42201
42224
|
var hasSelectedOption = function hasSelectedOption() {
|
|
42202
42225
|
return ObjectUtils.isNotEmpty(props.value);
|
|
@@ -42307,6 +42330,7 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42307
42330
|
};
|
|
42308
42331
|
var removeChip = function removeChip(event, item) {
|
|
42309
42332
|
event.stopPropagation();
|
|
42333
|
+
if (!isVisible(event.currentTarget)) return;
|
|
42310
42334
|
var value = props.value.filter(function (val) {
|
|
42311
42335
|
return !ObjectUtils.equals(val, item, equalityKey);
|
|
42312
42336
|
});
|
|
@@ -42318,6 +42342,17 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42318
42342
|
}
|
|
42319
42343
|
updateModel(event, value, item);
|
|
42320
42344
|
};
|
|
42345
|
+
var isVisible = function isVisible(element) {
|
|
42346
|
+
var parentElement = labelRef.current;
|
|
42347
|
+
var isOverflow = parentElement.clientWidth < parentElement.scrollWidth;
|
|
42348
|
+
if (!isOverflow) return true;
|
|
42349
|
+
var target = element.closest('[data-pc-section="token"]');
|
|
42350
|
+
var parentStyles = window.getComputedStyle(parentElement);
|
|
42351
|
+
var targetStyles = window.getComputedStyle(target);
|
|
42352
|
+
var parentWidth = parentElement.clientWidth - parseFloat(parentStyles.paddingLeft) - parseFloat(parentStyles.paddingRight);
|
|
42353
|
+
var targetRight = target.getBoundingClientRect().right + parseFloat(targetStyles.marginRight) - parentElement.getBoundingClientRect().left;
|
|
42354
|
+
return targetRight <= parentWidth;
|
|
42355
|
+
};
|
|
42321
42356
|
var getSelectedItemsLabel = function getSelectedItemsLabel() {
|
|
42322
42357
|
var pattern = /{(.*?)}/;
|
|
42323
42358
|
var selectedItemsLabel = props.selectedItemsLabel || localeOption('selectionMessage');
|
|
@@ -42368,10 +42403,15 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42368
42403
|
var label = getLabelByValue(val);
|
|
42369
42404
|
var labelKey = label + '_' + i;
|
|
42370
42405
|
var iconProps = mergeProps({
|
|
42406
|
+
'aria-label': localeOption('removeTokenIcon'),
|
|
42371
42407
|
className: cx('removeTokenIcon'),
|
|
42372
42408
|
onClick: function onClick(e) {
|
|
42373
42409
|
return removeChip(e, val);
|
|
42374
|
-
}
|
|
42410
|
+
},
|
|
42411
|
+
onKeyDown: function onKeyDown(e) {
|
|
42412
|
+
return onRemoveTokenIconKeyDown(e, val);
|
|
42413
|
+
},
|
|
42414
|
+
tabIndex: props.tabIndex || '0'
|
|
42375
42415
|
}, ptm('removeTokenIcon', context));
|
|
42376
42416
|
var icon = !props.disabled && (props.removeIcon ? IconUtils.getJSXIcon(props.removeIcon, _objectSpread$J({}, iconProps), {
|
|
42377
42417
|
props: props
|
|
@@ -42390,31 +42430,73 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42390
42430
|
return getLabel();
|
|
42391
42431
|
};
|
|
42392
42432
|
var getVisibleOptions = function getVisibleOptions() {
|
|
42433
|
+
var options = props.optionGroupLabel ? flatOptions(props.options) : props.options;
|
|
42393
42434
|
if (hasFilter) {
|
|
42394
42435
|
var filterValue = filterState.trim().toLocaleLowerCase(props.filterLocale);
|
|
42395
42436
|
var searchFields = props.filterBy ? props.filterBy.split(',') : [props.optionLabel || 'label'];
|
|
42396
42437
|
if (props.optionGroupLabel) {
|
|
42397
42438
|
var filteredGroups = [];
|
|
42398
|
-
var
|
|
42399
|
-
|
|
42439
|
+
var _iterator2 = _createForOfIteratorHelper$7(props.options),
|
|
42440
|
+
_step2;
|
|
42400
42441
|
try {
|
|
42401
|
-
for (
|
|
42402
|
-
var optgroup =
|
|
42442
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
42443
|
+
var optgroup = _step2.value;
|
|
42403
42444
|
var filteredSubOptions = FilterService.filter(getOptionGroupChildren(optgroup), searchFields, filterValue, props.filterMatchMode, props.filterLocale);
|
|
42404
42445
|
if (filteredSubOptions && filteredSubOptions.length) {
|
|
42405
42446
|
filteredGroups.push(_objectSpread$J(_objectSpread$J({}, optgroup), _defineProperty({}, props.optionGroupChildren, filteredSubOptions)));
|
|
42406
42447
|
}
|
|
42407
42448
|
}
|
|
42408
42449
|
} catch (err) {
|
|
42409
|
-
|
|
42450
|
+
_iterator2.e(err);
|
|
42410
42451
|
} finally {
|
|
42411
|
-
|
|
42452
|
+
_iterator2.f();
|
|
42412
42453
|
}
|
|
42413
|
-
return filteredGroups;
|
|
42454
|
+
return flatOptions(filteredGroups);
|
|
42414
42455
|
}
|
|
42415
|
-
return FilterService.filter(
|
|
42456
|
+
return FilterService.filter(options, searchFields, filterValue, props.filterMatchMode, props.filterLocale);
|
|
42457
|
+
}
|
|
42458
|
+
return options;
|
|
42459
|
+
};
|
|
42460
|
+
var flatOptions = function flatOptions(options) {
|
|
42461
|
+
return (options || []).reduce(function (result, option, index) {
|
|
42462
|
+
result.push(_objectSpread$J(_objectSpread$J({}, option), {}, {
|
|
42463
|
+
group: true,
|
|
42464
|
+
index: index
|
|
42465
|
+
}));
|
|
42466
|
+
var optionGroupChildren = getOptionGroupChildren(option);
|
|
42467
|
+
optionGroupChildren && optionGroupChildren.forEach(function (o) {
|
|
42468
|
+
return result.push(o);
|
|
42469
|
+
});
|
|
42470
|
+
return result;
|
|
42471
|
+
}, []);
|
|
42472
|
+
};
|
|
42473
|
+
var onClearIconKeyDown = function onClearIconKeyDown(event) {
|
|
42474
|
+
event.preventDefault();
|
|
42475
|
+
event.stopPropagation();
|
|
42476
|
+
switch (event.code) {
|
|
42477
|
+
case 'Space':
|
|
42478
|
+
case 'NumpadEnter':
|
|
42479
|
+
case 'Enter':
|
|
42480
|
+
if (props.inline) {
|
|
42481
|
+
break;
|
|
42482
|
+
}
|
|
42483
|
+
updateModel(event, [], []);
|
|
42484
|
+
break;
|
|
42485
|
+
}
|
|
42486
|
+
};
|
|
42487
|
+
var onRemoveTokenIconKeyDown = function onRemoveTokenIconKeyDown(event, val) {
|
|
42488
|
+
event.preventDefault();
|
|
42489
|
+
event.stopPropagation();
|
|
42490
|
+
switch (event.code) {
|
|
42491
|
+
case 'Space':
|
|
42492
|
+
case 'NumpadEnter':
|
|
42493
|
+
case 'Enter':
|
|
42494
|
+
if (props.inline) {
|
|
42495
|
+
break;
|
|
42496
|
+
}
|
|
42497
|
+
removeChip(event, val);
|
|
42498
|
+
break;
|
|
42416
42499
|
}
|
|
42417
|
-
return props.options;
|
|
42418
42500
|
};
|
|
42419
42501
|
React__namespace.useImperativeHandle(ref, function () {
|
|
42420
42502
|
return {
|
|
@@ -42460,9 +42542,14 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42460
42542
|
var createClearIcon = function createClearIcon() {
|
|
42461
42543
|
var clearIconProps = mergeProps({
|
|
42462
42544
|
className: cx('clearIcon'),
|
|
42545
|
+
'aria-label': localeOption('clear'),
|
|
42463
42546
|
onClick: function onClick(e) {
|
|
42464
42547
|
return updateModel(e, [], []);
|
|
42465
|
-
}
|
|
42548
|
+
},
|
|
42549
|
+
onKeyDown: function onKeyDown(e) {
|
|
42550
|
+
return onClearIconKeyDown(e);
|
|
42551
|
+
},
|
|
42552
|
+
tabIndex: props.tabIndex || '0'
|
|
42466
42553
|
}, ptm('clearIcon'));
|
|
42467
42554
|
var icon = props.clearIcon || /*#__PURE__*/React__namespace.createElement(TimesIcon, clearIconProps);
|
|
42468
42555
|
var clearIcon = IconUtils.getJSXIcon(icon, _objectSpread$J({}, clearIconProps), {
|
|
@@ -42476,10 +42563,11 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespa
|
|
|
42476
42563
|
var createLabel = function createLabel() {
|
|
42477
42564
|
var content = getLabelContent();
|
|
42478
42565
|
var labelContainerProps = mergeProps({
|
|
42479
|
-
ref:
|
|
42566
|
+
ref: labelContainerRef,
|
|
42480
42567
|
className: cx('labelContainer')
|
|
42481
42568
|
}, ptm('labelContainer'));
|
|
42482
42569
|
var labelProps = mergeProps({
|
|
42570
|
+
ref: labelRef,
|
|
42483
42571
|
className: cx('label', {
|
|
42484
42572
|
empty: empty
|
|
42485
42573
|
})
|
|
@@ -42811,7 +42899,7 @@ var MultiStateCheckbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__
|
|
|
42811
42899
|
icon: icon
|
|
42812
42900
|
}, ariaProps), ptm('checkbox'));
|
|
42813
42901
|
var srOnlyAriaProps = mergeProps({
|
|
42814
|
-
className: 'p-
|
|
42902
|
+
className: 'p-hidden-accessible',
|
|
42815
42903
|
'aria-live': 'polite'
|
|
42816
42904
|
}, ptm('srOnlyAria'));
|
|
42817
42905
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", rootProps, /*#__PURE__*/React__namespace.createElement(Checkbox, checkboxProps), focusedState && /*#__PURE__*/React__namespace.createElement("span", srOnlyAriaProps, ariaValueLabel)), hasTooltip && /*#__PURE__*/React__namespace.createElement(Tooltip, _extends({
|
|
@@ -43920,12 +44008,8 @@ var OrganizationChartNode = /*#__PURE__*/React__namespace.memo(function (props)
|
|
|
43920
44008
|
},
|
|
43921
44009
|
href: '#'
|
|
43922
44010
|
}, getPTOptions('nodeToggler'));
|
|
43923
|
-
return (
|
|
43924
|
-
|
|
43925
|
-
/* eslint-disable */
|
|
43926
|
-
React__namespace.createElement("a", nodeTogglerProps, /*#__PURE__*/React__namespace.createElement("i", null, " ", togglerIcon, " "))
|
|
43927
|
-
/* eslint-enable */
|
|
43928
|
-
);
|
|
44011
|
+
return /*#__PURE__*/ /* eslint-disable */React__namespace.createElement("a", nodeTogglerProps, /*#__PURE__*/React__namespace.createElement("i", null, " ", togglerIcon, " "))
|
|
44012
|
+
/* eslint-enable */;
|
|
43929
44013
|
}
|
|
43930
44014
|
return null;
|
|
43931
44015
|
};
|
|
@@ -44312,14 +44396,13 @@ var OverlayPanel = /*#__PURE__*/React__namespace.forwardRef(function (inProps, r
|
|
|
44312
44396
|
var closeIcon = IconUtils.getJSXIcon(icon, _objectSpread$F({}, closeIconProps), {
|
|
44313
44397
|
props: props
|
|
44314
44398
|
});
|
|
44315
|
-
var ariaLabel = props.ariaCloseLabel || localeOption('close');
|
|
44316
44399
|
var closeButtonProps = mergeProps({
|
|
44317
44400
|
type: 'button',
|
|
44318
44401
|
className: cx('closeButton'),
|
|
44319
44402
|
onClick: function onClick(e) {
|
|
44320
44403
|
return onCloseClick(e);
|
|
44321
44404
|
},
|
|
44322
|
-
'aria-label': ariaLabel
|
|
44405
|
+
'aria-label': props.ariaCloseLabel || ariaLabel('close')
|
|
44323
44406
|
}, ptm('closeButton'));
|
|
44324
44407
|
if (props.showCloseIcon) {
|
|
44325
44408
|
return /*#__PURE__*/React__namespace.createElement("button", closeButtonProps, closeIcon, /*#__PURE__*/React__namespace.createElement(Ripple, null));
|
|
@@ -45748,9 +45831,9 @@ var InputIconBase = ComponentBase.extend({
|
|
|
45748
45831
|
function ownKeys$B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
45749
45832
|
function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
45750
45833
|
var InputIcon = /*#__PURE__*/React__default["default"].memo(/*#__PURE__*/React__default["default"].forwardRef(function (inProps, ref) {
|
|
45751
|
-
var elementRef = React.useRef(ref);
|
|
45834
|
+
var elementRef = React$1.useRef(ref);
|
|
45752
45835
|
var mergeProps = useMergeProps();
|
|
45753
|
-
var context = React.useContext(PrimeReactContext);
|
|
45836
|
+
var context = React$1.useContext(PrimeReactContext);
|
|
45754
45837
|
var props = InputIconBase.getProps(inProps, context);
|
|
45755
45838
|
var _InputIconBase$setMet = InputIconBase.setMetaData(_objectSpread$B(_objectSpread$B({
|
|
45756
45839
|
props: props
|
|
@@ -48051,6 +48134,7 @@ var ScrollPanel = /*#__PURE__*/React__namespace.forwardRef(function (inProps, re
|
|
|
48051
48134
|
}
|
|
48052
48135
|
};
|
|
48053
48136
|
var moveBar = function moveBar() {
|
|
48137
|
+
if (!contentRef.current) return;
|
|
48054
48138
|
// horizontal scroll
|
|
48055
48139
|
var totalWidth = contentRef.current.scrollWidth;
|
|
48056
48140
|
var ownWidth = contentRef.current.clientWidth;
|
|
@@ -48950,7 +49034,7 @@ var Sidebar = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
|
48950
49034
|
getElement: function getElement() {
|
|
48951
49035
|
return sidebarRef.current;
|
|
48952
49036
|
},
|
|
48953
|
-
|
|
49037
|
+
getMask: function getMask() {
|
|
48954
49038
|
return maskRef.current;
|
|
48955
49039
|
},
|
|
48956
49040
|
getCloseIcon: function getCloseIcon() {
|
|
@@ -48991,7 +49075,6 @@ var Sidebar = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
|
48991
49075
|
maskRef.current && ZIndexUtils.clear(maskRef.current);
|
|
48992
49076
|
});
|
|
48993
49077
|
var createCloseIcon = function createCloseIcon() {
|
|
48994
|
-
var ariaLabel = props.ariaCloseLabel || localeOption('close');
|
|
48995
49078
|
var closeButtonProps = mergeProps({
|
|
48996
49079
|
type: 'button',
|
|
48997
49080
|
ref: closeIconRef,
|
|
@@ -48999,7 +49082,7 @@ var Sidebar = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
|
48999
49082
|
onClick: function onClick(e) {
|
|
49000
49083
|
return onClose(e);
|
|
49001
49084
|
},
|
|
49002
|
-
'aria-label': ariaLabel
|
|
49085
|
+
'aria-label': props.ariaCloseLabel || ariaLabel('close')
|
|
49003
49086
|
}, ptm('closeButton'));
|
|
49004
49087
|
var closeIconProps = mergeProps({
|
|
49005
49088
|
className: cx('closeIcon')
|
|
@@ -54266,6 +54349,17 @@ var TabView = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
|
54266
54349
|
}
|
|
54267
54350
|
};
|
|
54268
54351
|
});
|
|
54352
|
+
var onCloseIconKeyDown = function onCloseIconKeyDown(event, index) {
|
|
54353
|
+
event.preventDefault();
|
|
54354
|
+
event.stopPropagation();
|
|
54355
|
+
switch (event.code) {
|
|
54356
|
+
case 'Space':
|
|
54357
|
+
case 'NumpadEnter':
|
|
54358
|
+
case 'Enter':
|
|
54359
|
+
onTabHeaderClose(event, index);
|
|
54360
|
+
break;
|
|
54361
|
+
}
|
|
54362
|
+
};
|
|
54269
54363
|
var createTabHeader = function createTabHeader(tab, index) {
|
|
54270
54364
|
var selected = isSelected(index);
|
|
54271
54365
|
var _TabPanelBase$getCPro = TabPanelBase.getCProps(tab),
|
|
@@ -54297,7 +54391,12 @@ var TabView = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
|
54297
54391
|
className: cx('tab.closeIcon'),
|
|
54298
54392
|
onClick: function onClick(e) {
|
|
54299
54393
|
return onTabHeaderClose(e, index);
|
|
54300
|
-
}
|
|
54394
|
+
},
|
|
54395
|
+
onKeyDown: function onKeyDown(e) {
|
|
54396
|
+
return onCloseIconKeyDown(e, index);
|
|
54397
|
+
},
|
|
54398
|
+
tabIndex: 0,
|
|
54399
|
+
'aria-label': ariaLabel('close') || 'Close'
|
|
54301
54400
|
}, getTabPT(tab, 'closeIcon', index));
|
|
54302
54401
|
var icon = closeIcon || /*#__PURE__*/React__namespace.createElement(TimesIcon, closeIconProps);
|
|
54303
54402
|
var closableIconElement = closable ? IconUtils.getJSXIcon(icon, _objectSpread$e({}, closeIconProps), {
|
|
@@ -55010,12 +55109,11 @@ var ToastMessage = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namesp
|
|
|
55010
55109
|
var closeIcon = IconUtils.getJSXIcon(icon, _objectSpread$c({}, buttonIconProps), {
|
|
55011
55110
|
props: props
|
|
55012
55111
|
});
|
|
55013
|
-
var ariaLabel = props.ariaCloseLabel || localeOption('close');
|
|
55014
55112
|
var closeButtonProps = mergeProps({
|
|
55015
55113
|
type: 'button',
|
|
55016
55114
|
className: cx('message.closeButton'),
|
|
55017
55115
|
onClick: onClose,
|
|
55018
|
-
'aria-label': ariaLabel
|
|
55116
|
+
'aria-label': props.ariaCloseLabel || ariaLabel('close')
|
|
55019
55117
|
}, getPTOptions('closeButton', parentParams), ptmo(pt, 'closeButton', _objectSpread$c(_objectSpread$c({}, params), {}, {
|
|
55020
55118
|
hostName: props.hostName
|
|
55021
55119
|
})));
|
|
@@ -55168,7 +55266,7 @@ var Toast = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.for
|
|
|
55168
55266
|
};
|
|
55169
55267
|
var remove = function remove(messageInfo) {
|
|
55170
55268
|
// allow removal by ID or by message equality
|
|
55171
|
-
var removeMessage = messageInfo._pId ? messageInfo._pId : messageInfo.message || messageInfo;
|
|
55269
|
+
var removeMessage = ObjectUtils.isNotEmpty(messageInfo._pId) ? messageInfo._pId : messageInfo.message || messageInfo;
|
|
55172
55270
|
setMessagesState(function (prev) {
|
|
55173
55271
|
return prev.filter(function (msg) {
|
|
55174
55272
|
return msg._pId !== messageInfo._pId && !ObjectUtils.deepEquals(msg.message, removeMessage);
|
|
@@ -55325,7 +55423,7 @@ var ToggleButton = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namesp
|
|
|
55325
55423
|
});
|
|
55326
55424
|
var hasLabel = props.onLabel && props.onLabel.length > 0 && props.offLabel && props.offLabel.length > 0;
|
|
55327
55425
|
var hasIcon = props.onIcon && props.offIcon;
|
|
55328
|
-
var label = hasLabel ? props.checked ? props.onLabel : props.offLabel :
|
|
55426
|
+
var label = hasLabel ? props.checked ? props.onLabel : props.offLabel : "\xA0";
|
|
55329
55427
|
var icon = props.checked ? props.onIcon : props.offIcon;
|
|
55330
55428
|
var toggle = function toggle(e) {
|
|
55331
55429
|
if (!props.disabled && props.onChange && !props.readonly) {
|
|
@@ -56272,7 +56370,7 @@ var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
56272
56370
|
type: 'button',
|
|
56273
56371
|
className: cx('toggler'),
|
|
56274
56372
|
tabIndex: -1,
|
|
56275
|
-
'aria-hidden':
|
|
56373
|
+
'aria-hidden': false,
|
|
56276
56374
|
onClick: onTogglerClick
|
|
56277
56375
|
}, getPTOptions('toggler'));
|
|
56278
56376
|
var content = /*#__PURE__*/React__namespace.createElement("button", togglerProps, togglerIcon, /*#__PURE__*/React__namespace.createElement(Ripple, null));
|
|
@@ -57530,7 +57628,8 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespac
|
|
|
57530
57628
|
}
|
|
57531
57629
|
};
|
|
57532
57630
|
var setFocusToFocusableFirstNode = function setFocusToFocusableFirstNode() {
|
|
57533
|
-
var
|
|
57631
|
+
var _treeRef$current;
|
|
57632
|
+
var treeNodeEl = DomHandler.find((_treeRef$current = treeRef.current) === null || _treeRef$current === void 0 ? void 0 : _treeRef$current.getElement(), '[data-pc-section="node"]');
|
|
57534
57633
|
var focusedElement = _toConsumableArray(treeNodeEl).find(function (item) {
|
|
57535
57634
|
return item.getAttribute('tabindex') === '0';
|
|
57536
57635
|
});
|
|
@@ -57837,7 +57936,7 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespac
|
|
|
57837
57936
|
return onHeaderElementKeyDown(event, true);
|
|
57838
57937
|
},
|
|
57839
57938
|
onClick: hide,
|
|
57840
|
-
'aria-label':
|
|
57939
|
+
'aria-label': ariaLabel('close')
|
|
57841
57940
|
}, ptm('closeButton'));
|
|
57842
57941
|
var headerProps = mergeProps({
|
|
57843
57942
|
className: cx('header')
|
|
@@ -57950,6 +58049,7 @@ var classes$1 = {
|
|
|
57950
58049
|
loadingWrapper: 'p-treetable-loading',
|
|
57951
58050
|
loadingOverlay: 'p-treetable-loading-overlay p-component-overlay',
|
|
57952
58051
|
header: 'p-treetable-header',
|
|
58052
|
+
checkIcon: 'p-checkbox-icon',
|
|
57953
58053
|
footer: 'p-treetable-footer',
|
|
57954
58054
|
resizeHelper: 'p-column-resizer-helper',
|
|
57955
58055
|
reorderIndicatorUp: 'p-treetable-reorder-indicator-up',
|
|
@@ -58125,7 +58225,8 @@ var TreeTableBase = ComponentBase.extend({
|
|
|
58125
58225
|
tableStyle: null,
|
|
58126
58226
|
totalRecords: null,
|
|
58127
58227
|
value: null,
|
|
58128
|
-
children: undefined
|
|
58228
|
+
children: undefined,
|
|
58229
|
+
togglerTemplate: null
|
|
58129
58230
|
},
|
|
58130
58231
|
css: {
|
|
58131
58232
|
classes: classes$1,
|
|
@@ -58384,8 +58485,6 @@ function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
58384
58485
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
58385
58486
|
var TreeTableRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
58386
58487
|
var elementRef = React__namespace.useRef(null);
|
|
58387
|
-
React__namespace.useRef(null);
|
|
58388
|
-
React__namespace.useRef(null);
|
|
58389
58488
|
var nodeTouched = React__namespace.useRef(false);
|
|
58390
58489
|
var mergeProps = useMergeProps();
|
|
58391
58490
|
var expanded = props.expandedKeys ? props.expandedKeys[props.node.key] !== undefined : false;
|
|
@@ -58775,10 +58874,13 @@ var TreeTableRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
58775
58874
|
}
|
|
58776
58875
|
};
|
|
58777
58876
|
var isSelected = function isSelected() {
|
|
58778
|
-
if (props.selectionMode === 'single'
|
|
58779
|
-
return props.
|
|
58877
|
+
if (props.selectionMode === 'single') {
|
|
58878
|
+
return props.selectionKeys === props.node.key;
|
|
58879
|
+
} else if ((props.selectionMode === 'multiple' || props.selectionMode === 'checkbox') && props.selectionKeys) {
|
|
58880
|
+
return props.selectionKeys[props.node.key] !== undefined;
|
|
58881
|
+
} else {
|
|
58882
|
+
return false;
|
|
58780
58883
|
}
|
|
58781
|
-
return false;
|
|
58782
58884
|
};
|
|
58783
58885
|
var isChecked = function isChecked() {
|
|
58784
58886
|
return props.selectionKeys ? props.selectionKeys[props.node.key] && props.selectionKeys[props.node.key].checked : false;
|
|
@@ -58831,7 +58933,10 @@ var TreeTableRow = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
58831
58933
|
if (props.selectionMode === 'checkbox' && props.node.selectable !== false) {
|
|
58832
58934
|
var checked = isChecked();
|
|
58833
58935
|
var partialChecked = isPartialChecked();
|
|
58834
|
-
var
|
|
58936
|
+
var checkboxIconProps = mergeProps({
|
|
58937
|
+
className: cx('checkIcon')
|
|
58938
|
+
}, getColumnPTOptions('rowCheckbox.icon'));
|
|
58939
|
+
var icon = checked ? props.checkboxIcon || /*#__PURE__*/React__namespace.createElement(CheckIcon, checkboxIconProps) : partialChecked ? props.checkboxIcon || /*#__PURE__*/React__namespace.createElement(MinusIcon, null) : null;
|
|
58835
58940
|
var checkIcon = IconUtils.getJSXIcon(icon, {}, {
|
|
58836
58941
|
props: props,
|
|
58837
58942
|
checked: checked,
|
|
@@ -59208,6 +59313,7 @@ var TreeTableFooter = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
59208
59313
|
ptm = _props$ptCallbacks.ptm,
|
|
59209
59314
|
ptmo = _props$ptCallbacks.ptmo,
|
|
59210
59315
|
cx = _props$ptCallbacks.cx;
|
|
59316
|
+
var context = React__namespace.useContext(PrimeReactContext);
|
|
59211
59317
|
var getColumnProp = function getColumnProp(column, name) {
|
|
59212
59318
|
return ColumnBase.getCProp(column, name);
|
|
59213
59319
|
};
|
|
@@ -59244,7 +59350,7 @@ var TreeTableFooter = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
59244
59350
|
var footerRowProps = mergeProps(ptm('footerRow', {
|
|
59245
59351
|
hostName: props.hostName,
|
|
59246
59352
|
role: 'row'
|
|
59247
|
-
}));
|
|
59353
|
+
}), RowBase.getProps(row.props, context));
|
|
59248
59354
|
return /*#__PURE__*/React__namespace.createElement("tr", _extends({}, footerRowProps, {
|
|
59249
59355
|
key: index
|
|
59250
59356
|
}), rowFooterCells);
|
|
@@ -59294,6 +59400,7 @@ var TreeTableHeader = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
59294
59400
|
ptmo = _props$ptCallbacks.ptmo,
|
|
59295
59401
|
cx = _props$ptCallbacks.cx;
|
|
59296
59402
|
var filterTimeout = React__namespace.useRef(null);
|
|
59403
|
+
var context = React__namespace.useContext(PrimeReactContext);
|
|
59297
59404
|
var getColumnProp = function getColumnProp(column) {
|
|
59298
59405
|
return column ? typeof (arguments.length <= 1 ? undefined : arguments[1]) === 'string' ? ColumnBase.getCProp(column, arguments.length <= 1 ? undefined : arguments[1]) : ColumnBase.getCProp((arguments.length <= 1 ? undefined : arguments[1]) || column, arguments.length <= 2 ? undefined : arguments[2]) : null;
|
|
59299
59406
|
};
|
|
@@ -59567,6 +59674,7 @@ var TreeTableHeader = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
59567
59674
|
style: getColumnProp(column, 'headerStyle') || getColumnProp(column, 'style'),
|
|
59568
59675
|
tabIndex: sortable ? props.tabIndex : null,
|
|
59569
59676
|
'aria-sort': ariaSort,
|
|
59677
|
+
//TODO: aria-sort is defined here two times (ariaSort, ariaSortData) ?
|
|
59570
59678
|
onClick: function onClick(e) {
|
|
59571
59679
|
return onHeaderClick(e, column);
|
|
59572
59680
|
},
|
|
@@ -59619,7 +59727,7 @@ var TreeTableHeader = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
59619
59727
|
});
|
|
59620
59728
|
var headerRowProps = mergeProps(ptm('headerRow', {
|
|
59621
59729
|
hostName: props.hostName
|
|
59622
|
-
}));
|
|
59730
|
+
}), RowBase.getProps(row.props, context));
|
|
59623
59731
|
return /*#__PURE__*/React__namespace.createElement("tr", _extends({
|
|
59624
59732
|
role: "row"
|
|
59625
59733
|
}, headerRowProps, {
|
|
@@ -60284,29 +60392,31 @@ var TreeTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
|
|
|
60284
60392
|
});
|
|
60285
60393
|
};
|
|
60286
60394
|
var onFilter = function onFilter(event) {
|
|
60287
|
-
|
|
60288
|
-
|
|
60289
|
-
|
|
60290
|
-
|
|
60291
|
-
|
|
60292
|
-
|
|
60293
|
-
|
|
60294
|
-
|
|
60295
|
-
|
|
60296
|
-
|
|
60297
|
-
|
|
60298
|
-
props.onFilter
|
|
60299
|
-
|
|
60300
|
-
|
|
60301
|
-
|
|
60302
|
-
|
|
60303
|
-
|
|
60304
|
-
|
|
60305
|
-
|
|
60306
|
-
|
|
60307
|
-
|
|
60308
|
-
|
|
60309
|
-
|
|
60395
|
+
setFiltersState(function (prevFilters) {
|
|
60396
|
+
var filters = props.onFilter ? props.filters : prevFilters;
|
|
60397
|
+
var newFilters = filters ? _objectSpread$1({}, filters) : {};
|
|
60398
|
+
if (!isFilterBlank(event.value)) {
|
|
60399
|
+
newFilters[event.field] = {
|
|
60400
|
+
value: event.value,
|
|
60401
|
+
matchMode: event.matchMode
|
|
60402
|
+
};
|
|
60403
|
+
} else if (newFilters[event.field]) {
|
|
60404
|
+
delete newFilters[event.field];
|
|
60405
|
+
}
|
|
60406
|
+
if (props.onFilter) {
|
|
60407
|
+
props.onFilter({
|
|
60408
|
+
filters: newFilters
|
|
60409
|
+
});
|
|
60410
|
+
} else {
|
|
60411
|
+
setFirstState(0);
|
|
60412
|
+
}
|
|
60413
|
+
if (props.onValueChange) {
|
|
60414
|
+
props.onValueChange(processedData({
|
|
60415
|
+
filters: newFilters
|
|
60416
|
+
}));
|
|
60417
|
+
}
|
|
60418
|
+
return newFilters;
|
|
60419
|
+
});
|
|
60310
60420
|
};
|
|
60311
60421
|
var cloneFilters = function cloneFilters(filters) {
|
|
60312
60422
|
filters = filters || props.filters;
|
|
@@ -61196,7 +61306,7 @@ var TriStateCheckbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__na
|
|
|
61196
61306
|
var mergeProps = useMergeProps();
|
|
61197
61307
|
var context = React__namespace.useContext(PrimeReactContext);
|
|
61198
61308
|
var props = TriStateCheckboxBase.getProps(inProps, context);
|
|
61199
|
-
var _useState = React.useState(''),
|
|
61309
|
+
var _useState = React$1.useState(''),
|
|
61200
61310
|
_useState2 = _slicedToArray(_useState, 2),
|
|
61201
61311
|
checkBoxValue = _useState2[0],
|
|
61202
61312
|
setCheckBoxValue = _useState2[1];
|
|
@@ -61210,7 +61320,7 @@ var TriStateCheckbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__na
|
|
|
61210
61320
|
useHandleStyle(TriStateCheckboxBase.css.styles, isUnstyled, {
|
|
61211
61321
|
name: 'tristatecheckbox'
|
|
61212
61322
|
});
|
|
61213
|
-
React.useEffect(function () {
|
|
61323
|
+
React$1.useEffect(function () {
|
|
61214
61324
|
if ([true, false, ''].includes(props.value)) {
|
|
61215
61325
|
setCheckBoxValue(props.value);
|
|
61216
61326
|
} else {
|
|
@@ -61307,7 +61417,7 @@ var TriStateCheckbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__na
|
|
|
61307
61417
|
'aria-checked': ariaChecked
|
|
61308
61418
|
}, ariaProps), ptm('box'));
|
|
61309
61419
|
var srOnlyAriaProps = mergeProps({
|
|
61310
|
-
className: 'p-
|
|
61420
|
+
className: 'p-hidden-accessible',
|
|
61311
61421
|
'aria-live': 'polite'
|
|
61312
61422
|
}, ptm('srOnlyAria'));
|
|
61313
61423
|
var rootProps = mergeProps({
|