primereact 10.9.6 → 10.9.7
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/accordion/accordion.cjs.js +3 -2
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +3 -2
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +3 -2
- package/accordion/accordion.min.js +1 -1
- package/api/api.d.ts +4 -0
- package/autocomplete/autocomplete.cjs.js +2 -1
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +2 -1
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +2 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/calendar/calendar.cjs.js +9 -8
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +9 -8
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +9 -8
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +9 -1
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +9 -1
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +9 -1
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +2 -1
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +2 -1
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +2 -1
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +2 -1
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +2 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +2 -1
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +1 -1
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +1 -1
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +1 -1
- package/componentbase/componentbase.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +8 -6
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +8 -6
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +8 -6
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +35 -23
- package/core/core.min.js +5 -5
- package/datatable/datatable.cjs.js +65 -39
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +66 -7
- package/datatable/datatable.esm.js +65 -39
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +66 -40
- package/datatable/datatable.min.js +1 -1
- package/dialog/dialog.cjs.js +3 -3
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +3 -3
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +3 -3
- package/dialog/dialog.min.js +1 -1
- package/dropdown/dropdown.cjs.js +4 -2
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +4 -2
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +4 -2
- package/dropdown/dropdown.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +5 -1
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +5 -1
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +5 -1
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +11 -7
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +11 -7
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +11 -7
- package/inputotp/inputotp.min.js +1 -1
- package/megamenu/megamenu.cjs.js +19 -12
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +19 -12
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +19 -12
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +3 -2
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +3 -2
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +3 -2
- package/mention/mention.min.js +1 -1
- package/menubar/menubar.cjs.js +8 -3
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +8 -3
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +8 -3
- package/menubar/menubar.min.js +1 -1
- package/multiselect/multiselect.cjs.js +3 -1
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +3 -1
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +3 -1
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +10 -0
- package/package.json +1 -1
- package/primereact.all.cjs.js +187 -111
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +187 -111
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +187 -111
- package/primereact.all.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +6 -4
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +6 -4
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +6 -4
- package/slidemenu/slidemenu.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +11 -5
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +11 -5
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +11 -5
- package/splitbutton/splitbutton.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +9 -4
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +9 -4
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +9 -4
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +3 -3
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +3 -3
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +3 -3
- package/togglebutton/togglebutton.min.js +1 -1
- package/tree/tree.cjs.js +22 -16
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +22 -16
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +22 -16
- package/tree/tree.min.js +1 -1
- package/web-types.json +19 -1
package/primereact.all.esm.js
CHANGED
|
@@ -4891,7 +4891,7 @@ var useUpdateEffect = function useUpdateEffect(fn, deps) {
|
|
|
4891
4891
|
function ownKeys$1Y(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; }
|
|
4892
4892
|
function _objectSpread$1Y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1Y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1Y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4893
4893
|
var baseStyle = "\n.p-hidden-accessible {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n opacity: 0;\n overflow: hidden;\n padding: 0;\n pointer-events: none;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.p-overflow-hidden {\n overflow: hidden;\n padding-right: var(--scrollbar-width);\n}\n";
|
|
4894
|
-
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\n.p-button-group-single .p-button:first-of-type {\n border-top-right-radius: var(--border-radius) !important;\n border-bottom-right-radius: var(--border-radius) !important;\n}\n\n.p-button-group-single .p-button:last-of-type {\n border-top-left-radius: var(--border-radius) !important;\n border-bottom-left-radius: var(--border-radius) !important;\n}\n";
|
|
4894
|
+
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 {\n pointer-events: none;\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\n.p-button-group-single .p-button:first-of-type {\n border-top-right-radius: var(--border-radius) !important;\n border-bottom-right-radius: var(--border-radius) !important;\n}\n\n.p-button-group-single .p-button:last-of-type {\n border-top-left-radius: var(--border-radius) !important;\n border-bottom-left-radius: var(--border-radius) !important;\n}\n";
|
|
4895
4895
|
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";
|
|
4896
4896
|
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";
|
|
4897
4897
|
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");
|
|
@@ -5649,12 +5649,13 @@ var Accordion = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5649
5649
|
var tabHeader = createTabHeader(tab, selected, index);
|
|
5650
5650
|
var tabContent = createTabContent(tab, selected, index);
|
|
5651
5651
|
var _rootProps = mergeProps({
|
|
5652
|
-
key: key,
|
|
5653
5652
|
className: cx('accordiontab.root', {
|
|
5654
5653
|
selected: selected
|
|
5655
5654
|
})
|
|
5656
5655
|
}, AccordionTabBase.getCOtherProps(tab), getTabPT(tab, 'root', index));
|
|
5657
|
-
return /*#__PURE__*/React.createElement("div",
|
|
5656
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, _rootProps, {
|
|
5657
|
+
key: key
|
|
5658
|
+
}), tabHeader, tabContent);
|
|
5658
5659
|
}
|
|
5659
5660
|
return null;
|
|
5660
5661
|
};
|
|
@@ -8165,7 +8166,8 @@ var AutoCompletePanel = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(fu
|
|
|
8165
8166
|
style: style,
|
|
8166
8167
|
onClick: function onClick(e) {
|
|
8167
8168
|
return props.onClick(e);
|
|
8168
|
-
}
|
|
8169
|
+
},
|
|
8170
|
+
'data-pr-is-overlay': true
|
|
8169
8171
|
}, _ptm('panel'));
|
|
8170
8172
|
var transitionProps = mergeProps({
|
|
8171
8173
|
classNames: cx('transition'),
|
|
@@ -9731,7 +9733,8 @@ var CalendarPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
9731
9733
|
'aria-label': localeOption('chooseDate', props.locale),
|
|
9732
9734
|
'aria-modal': props.inline ? null : 'true',
|
|
9733
9735
|
onClick: props.onClick,
|
|
9734
|
-
onMouseUp: props.onMouseUp
|
|
9736
|
+
onMouseUp: props.onMouseUp,
|
|
9737
|
+
'data-pr-is-overlay': true
|
|
9735
9738
|
}, props.ptm('panel', {
|
|
9736
9739
|
hostName: props.hostName
|
|
9737
9740
|
}));
|
|
@@ -10131,14 +10134,14 @@ var Calendar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
10131
10134
|
newViewDate.setMonth(11);
|
|
10132
10135
|
newViewDate.setFullYear(newYear);
|
|
10133
10136
|
props.onMonthChange && props.onMonthChange({
|
|
10134
|
-
month:
|
|
10137
|
+
month: 12,
|
|
10135
10138
|
year: newYear
|
|
10136
10139
|
});
|
|
10137
10140
|
setCurrentMonth(11);
|
|
10138
10141
|
} else {
|
|
10139
10142
|
newViewDate.setMonth(newViewDate.getMonth() - 1);
|
|
10140
10143
|
props.onMonthChange && props.onMonthChange({
|
|
10141
|
-
month: currentMonth
|
|
10144
|
+
month: currentMonth,
|
|
10142
10145
|
year: currentYear
|
|
10143
10146
|
});
|
|
10144
10147
|
setCurrentMonth(function (prevState) {
|
|
@@ -10176,14 +10179,14 @@ var Calendar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
10176
10179
|
newViewDate.setMonth(0);
|
|
10177
10180
|
newViewDate.setFullYear(newYear);
|
|
10178
10181
|
props.onMonthChange && props.onMonthChange({
|
|
10179
|
-
month:
|
|
10182
|
+
month: 1,
|
|
10180
10183
|
year: newYear
|
|
10181
10184
|
});
|
|
10182
10185
|
setCurrentMonth(0);
|
|
10183
10186
|
} else {
|
|
10184
10187
|
newViewDate.setMonth(newViewDate.getMonth() + 1);
|
|
10185
10188
|
props.onMonthChange && props.onMonthChange({
|
|
10186
|
-
month: currentMonth +
|
|
10189
|
+
month: currentMonth + 2,
|
|
10187
10190
|
year: currentYear
|
|
10188
10191
|
});
|
|
10189
10192
|
setCurrentMonth(function (prevState) {
|
|
@@ -10260,8 +10263,8 @@ var Calendar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
10260
10263
|
var timeMeta = {
|
|
10261
10264
|
hours: today.getHours(),
|
|
10262
10265
|
minutes: today.getMinutes(),
|
|
10263
|
-
seconds: today.getSeconds(),
|
|
10264
|
-
milliseconds: today.getMilliseconds()
|
|
10266
|
+
seconds: props.showSeconds ? today.getSeconds() : 0,
|
|
10267
|
+
milliseconds: props.showMillisec ? today.getMilliseconds() : 0
|
|
10265
10268
|
};
|
|
10266
10269
|
updateViewDate(event, today);
|
|
10267
10270
|
onDateSelect(event, dateMeta, timeMeta);
|
|
@@ -11246,7 +11249,7 @@ var Calendar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
11246
11249
|
milliseconds = timeMeta.milliseconds;
|
|
11247
11250
|
} else {
|
|
11248
11251
|
var time = getCurrentDateTime();
|
|
11249
|
-
var _ref5 = [time.getHours(), time.getMinutes(), time.getSeconds(), time.getMilliseconds()];
|
|
11252
|
+
var _ref5 = [time.getHours(), time.getMinutes(), props.showSeconds ? time.getSeconds() : 0, props.showMillisec ? time.getMilliseconds() : 0];
|
|
11250
11253
|
hours = _ref5[0];
|
|
11251
11254
|
minutes = _ref5[1];
|
|
11252
11255
|
seconds = _ref5[2];
|
|
@@ -14032,7 +14035,15 @@ var Carousel = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
14032
14035
|
}
|
|
14033
14036
|
if (!carouselStyle.current) {
|
|
14034
14037
|
calculatePosition();
|
|
14035
|
-
|
|
14038
|
+
|
|
14039
|
+
// Workaround: force correct initial position for circular
|
|
14040
|
+
if (isCircular) {
|
|
14041
|
+
var initialPosition = -1 * numVisibleState;
|
|
14042
|
+
setTotalShiftedItemsState(initialPosition);
|
|
14043
|
+
changePosition(initialPosition);
|
|
14044
|
+
} else {
|
|
14045
|
+
changePosition(totalShiftedItemsState);
|
|
14046
|
+
}
|
|
14036
14047
|
bindWindowResizeListener();
|
|
14037
14048
|
}
|
|
14038
14049
|
});
|
|
@@ -14409,7 +14420,7 @@ var classes$14 = {
|
|
|
14409
14420
|
text: 'p-cascadeselect-item-text',
|
|
14410
14421
|
transition: 'p-connected-overlay'
|
|
14411
14422
|
};
|
|
14412
|
-
var styles$U = "\n@layer primereact {\n .p-cascadeselect {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n
|
|
14423
|
+
var styles$U = "\n@layer primereact {\n .p-cascadeselect {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n\n .p-cascadeselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .p-cascadeselect-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n\n .p-cascadeselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n }\n\n .p-cascadeselect .p-cascadeselect-panel {\n min-width: 100%;\n }\n\n .p-cascadeselect-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n }\n\n .p-cascadeselect-item-content {\n display: flex;\n align-items: center;\n overflow: hidden;\n position: relative;\n }\n\n .p-cascadeselect-group-icon {\n margin-left: auto;\n }\n\n .p-cascadeselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n min-width: 100%;\n }\n\n .p-fluid .p-cascadeselect {\n display: flex;\n }\n\n .p-fluid .p-cascadeselect .p-cascadeselect-label {\n width: 1%;\n }\n\n .p-cascadeselect-sublist-wrapper {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n display: none;\n }\n\n .p-cascadeselect-item-active {\n overflow: visible;\n }\n\n .p-cascadeselect-item-active > .p-cascadeselect-sublist-wrapper {\n display: block;\n left: 100%;\n top: 0;\n }\n .p-cascadeselect-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n right: 3rem;\n }\n}\n";
|
|
14413
14424
|
var CascadeSelectBase = ComponentBase.extend({
|
|
14414
14425
|
defaultProps: {
|
|
14415
14426
|
__TYPE: 'CascadeSelect',
|
|
@@ -14417,6 +14428,7 @@ var CascadeSelectBase = ComponentBase.extend({
|
|
|
14417
14428
|
ariaLabelledBy: null,
|
|
14418
14429
|
autoFocus: false,
|
|
14419
14430
|
breakpoint: undefined,
|
|
14431
|
+
showClear: false,
|
|
14420
14432
|
className: null,
|
|
14421
14433
|
dataKey: null,
|
|
14422
14434
|
disabled: false,
|
|
@@ -16281,7 +16293,8 @@ var ColorPickerPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
16281
16293
|
context: context
|
|
16282
16294
|
}),
|
|
16283
16295
|
style: props.panelStyle,
|
|
16284
|
-
onClick: props.onClick
|
|
16296
|
+
onClick: props.onClick,
|
|
16297
|
+
'data-pr-is-overlay': true
|
|
16285
16298
|
}, ptm('panel', {
|
|
16286
16299
|
hostName: props.hostName
|
|
16287
16300
|
}));
|
|
@@ -17367,7 +17380,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
17367
17380
|
lastPageX.current = event.pageX;
|
|
17368
17381
|
dialogRef.current.style.left = leftPos - leftMargin + 'px';
|
|
17369
17382
|
}
|
|
17370
|
-
if (topPos >= props.minY && topPos + height < viewport.height) {
|
|
17383
|
+
if (topPos >= props.minY && (deltaY < 0 || topPos + height < viewport.height)) {
|
|
17371
17384
|
lastPageY.current = event.pageY;
|
|
17372
17385
|
dialogRef.current.style.top = topPos - topMargin + 'px';
|
|
17373
17386
|
}
|
|
@@ -17421,10 +17434,10 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
17421
17434
|
newWidth = newWidth + deltaX;
|
|
17422
17435
|
newHeight = newHeight + deltaY;
|
|
17423
17436
|
}
|
|
17424
|
-
if ((!minWidth || newWidth > minWidth) && offset.left + newWidth < viewport.width) {
|
|
17437
|
+
if ((!minWidth || newWidth > minWidth) && (deltaX < 0 || offset.left + newWidth < viewport.width)) {
|
|
17425
17438
|
dialogRef.current.style.width = newWidth + 'px';
|
|
17426
17439
|
}
|
|
17427
|
-
if ((!minHeight || newHeight > minHeight) && offset.top + newHeight < viewport.height) {
|
|
17440
|
+
if ((!minHeight || newHeight > minHeight) && (deltaY < 0 || offset.top + newHeight < viewport.height)) {
|
|
17428
17441
|
dialogRef.current.style.height = newHeight + 'px';
|
|
17429
17442
|
}
|
|
17430
17443
|
lastPageX.current = event.pageX;
|
|
@@ -18698,13 +18711,14 @@ var ContextMenuSub = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(funct
|
|
|
18698
18711
|
var key = props.id + '_separator_' + index;
|
|
18699
18712
|
var separatorProps = mergeProps({
|
|
18700
18713
|
id: key,
|
|
18701
|
-
key: key,
|
|
18702
18714
|
className: cx('separator'),
|
|
18703
18715
|
role: 'separator'
|
|
18704
18716
|
}, ptm('separator', {
|
|
18705
18717
|
hostName: props.hostName
|
|
18706
18718
|
}));
|
|
18707
|
-
return /*#__PURE__*/React.createElement("li", separatorProps
|
|
18719
|
+
return /*#__PURE__*/React.createElement("li", _extends({}, separatorProps, {
|
|
18720
|
+
key: key
|
|
18721
|
+
}));
|
|
18708
18722
|
};
|
|
18709
18723
|
var createSubmenu = function createSubmenu(item, index) {
|
|
18710
18724
|
if (isItemGroup(item)) {
|
|
@@ -18789,9 +18803,8 @@ var ContextMenuSub = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(funct
|
|
|
18789
18803
|
},
|
|
18790
18804
|
className: cx('content')
|
|
18791
18805
|
}, getPTOptions(processedItem, 'content', index));
|
|
18792
|
-
var menuitemProps = mergeProps(
|
|
18806
|
+
var menuitemProps = mergeProps({
|
|
18793
18807
|
id: key,
|
|
18794
|
-
key: key,
|
|
18795
18808
|
role: 'menuitem',
|
|
18796
18809
|
'aria-label': item.label,
|
|
18797
18810
|
'aria-disabled': disabled,
|
|
@@ -18810,8 +18823,10 @@ var ContextMenuSub = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(funct
|
|
|
18810
18823
|
disabled: isItemDisabled(item)
|
|
18811
18824
|
}),
|
|
18812
18825
|
style: item.style
|
|
18813
|
-
},
|
|
18814
|
-
return /*#__PURE__*/React.createElement("li",
|
|
18826
|
+
}, getPTOptions(processedItem, 'menuitem', index));
|
|
18827
|
+
return /*#__PURE__*/React.createElement("li", _extends({}, menuitemProps, {
|
|
18828
|
+
key: key
|
|
18829
|
+
}), /*#__PURE__*/React.createElement("div", contentProps, content), submenu);
|
|
18815
18830
|
};
|
|
18816
18831
|
var createItem = function createItem(processedItem, index) {
|
|
18817
18832
|
if (processedItem.visible === false) {
|
|
@@ -20573,6 +20588,10 @@ var InputNumber = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
|
|
|
20573
20588
|
}
|
|
20574
20589
|
return null;
|
|
20575
20590
|
};
|
|
20591
|
+
var addWithPrecision = function addWithPrecision(base, increment) {
|
|
20592
|
+
var precision = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
|
|
20593
|
+
return Math.round((base + increment) * precision) / precision;
|
|
20594
|
+
};
|
|
20576
20595
|
var _repeat = function repeat(event, interval, dir) {
|
|
20577
20596
|
var i = interval || 500;
|
|
20578
20597
|
clearTimer();
|
|
@@ -20585,7 +20604,7 @@ var InputNumber = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
|
|
|
20585
20604
|
if (inputRef.current) {
|
|
20586
20605
|
var step = props.step * dir;
|
|
20587
20606
|
var currentValue = parseValue(inputRef.current.value) || 0;
|
|
20588
|
-
var newValue = validateValue(currentValue
|
|
20607
|
+
var newValue = validateValue(addWithPrecision(currentValue, step));
|
|
20589
20608
|
if (props.maxLength && props.maxLength < formatValue(newValue).length) {
|
|
20590
20609
|
return;
|
|
20591
20610
|
}
|
|
@@ -22348,8 +22367,9 @@ var DropdownPanel = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
|
|
|
22348
22367
|
return item && createItem(item, options.index, options);
|
|
22349
22368
|
},
|
|
22350
22369
|
contentTemplate: function contentTemplate(options) {
|
|
22370
|
+
var children = options.children || [];
|
|
22351
22371
|
var emptyMessage = props.hasFilter ? props.emptyFilterMessage : props.emptyMessage;
|
|
22352
|
-
var content = isEmptyFilter ? createEmptyMessage(emptyMessage) :
|
|
22372
|
+
var content = isEmptyFilter || (children === null || children === void 0 ? void 0 : children.length) === 0 ? createEmptyMessage(emptyMessage) : children;
|
|
22353
22373
|
var listProps = mergeProps({
|
|
22354
22374
|
ref: options.contentRef,
|
|
22355
22375
|
style: options.style,
|
|
@@ -22389,7 +22409,8 @@ var DropdownPanel = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
|
|
|
22389
22409
|
context: context
|
|
22390
22410
|
})),
|
|
22391
22411
|
style: sx('panel'),
|
|
22392
|
-
onClick: props.onClick
|
|
22412
|
+
onClick: props.onClick,
|
|
22413
|
+
'data-pr-is-overlay': true
|
|
22393
22414
|
}, getPTOptions('panel'));
|
|
22394
22415
|
var transitionProps = mergeProps({
|
|
22395
22416
|
classNames: cx('transition'),
|
|
@@ -24002,6 +24023,9 @@ var DataTableBase = ComponentBase.extend({
|
|
|
24002
24023
|
alwaysShowPaginator: true,
|
|
24003
24024
|
breakpoint: '960px',
|
|
24004
24025
|
cellClassName: null,
|
|
24026
|
+
cellMemo: true,
|
|
24027
|
+
cellMemoProps: ['rowData', 'field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'frozenCol', 'alignFrozenCol'],
|
|
24028
|
+
cellMemoPropsDepth: 1,
|
|
24005
24029
|
cellSelection: false,
|
|
24006
24030
|
checkIcon: null,
|
|
24007
24031
|
className: null,
|
|
@@ -24518,8 +24542,6 @@ var Cell = function Cell(props) {
|
|
|
24518
24542
|
setStyleObjectState = _React$useState6[1];
|
|
24519
24543
|
var elementRef = React.useRef(null);
|
|
24520
24544
|
var keyHelperRef = React.useRef(null);
|
|
24521
|
-
var overlayEventListener = React.useRef(null);
|
|
24522
|
-
var selfClick = React.useRef(false);
|
|
24523
24545
|
var focusTimeout = React.useRef(null);
|
|
24524
24546
|
var initFocusTimeout = React.useRef(null);
|
|
24525
24547
|
var editingRowDataStateRef = React.useRef(null);
|
|
@@ -24556,17 +24578,20 @@ var Cell = function Cell(props) {
|
|
|
24556
24578
|
var cellEditValidateOnClose = function cellEditValidateOnClose() {
|
|
24557
24579
|
return getColumnProp('cellEditValidateOnClose');
|
|
24558
24580
|
};
|
|
24581
|
+
var isIgnoredElement = function isIgnoredElement(element) {
|
|
24582
|
+
var isOverlay = function isOverlay(el) {
|
|
24583
|
+
return el.getAttribute && el.getAttribute('data-pr-is-overlay');
|
|
24584
|
+
};
|
|
24585
|
+
return isOverlay(element) || DomHandler.getParents(element).find(function (el) {
|
|
24586
|
+
return isOverlay(el);
|
|
24587
|
+
});
|
|
24588
|
+
};
|
|
24559
24589
|
var _useEventListener = useEventListener({
|
|
24560
24590
|
type: 'click',
|
|
24561
24591
|
listener: function listener(e) {
|
|
24562
|
-
|
|
24563
|
-
|
|
24564
|
-
|
|
24565
|
-
|
|
24566
|
-
switchCellToViewMode(e, true);
|
|
24567
|
-
}
|
|
24568
|
-
}, 0);
|
|
24569
|
-
selfClick.current = false;
|
|
24592
|
+
if (!isIgnoredElement(e.target) && isOutsideClicked(e.target)) {
|
|
24593
|
+
switchCellToViewMode(e, true);
|
|
24594
|
+
}
|
|
24570
24595
|
},
|
|
24571
24596
|
options: true,
|
|
24572
24597
|
when: isEditable()
|
|
@@ -24611,10 +24636,6 @@ var Cell = function Cell(props) {
|
|
|
24611
24636
|
setTimeout(function () {
|
|
24612
24637
|
setEditingState(false);
|
|
24613
24638
|
unbindDocumentClickListener();
|
|
24614
|
-
OverlayService.off('overlay-click', overlayEventListener.current);
|
|
24615
|
-
overlayEventListener.current = null;
|
|
24616
|
-
editingRowDataStateRef.current = null;
|
|
24617
|
-
selfClick.current = false;
|
|
24618
24639
|
}, 1);
|
|
24619
24640
|
};
|
|
24620
24641
|
var switchCellToViewMode = function switchCellToViewMode(event, submit) {
|
|
@@ -24658,7 +24679,7 @@ var Cell = function Cell(props) {
|
|
|
24658
24679
|
editingRowDataStateRef.current = editingRowData;
|
|
24659
24680
|
};
|
|
24660
24681
|
var _onClick = function onClick(event) {
|
|
24661
|
-
props.onClick(event, getCellCallbackParams(event), isEditable(), editingState, setEditingState,
|
|
24682
|
+
props.onClick(event, getCellCallbackParams(event), isEditable(), editingState, setEditingState, props.column, bindDocumentClickListener);
|
|
24662
24683
|
};
|
|
24663
24684
|
var _onMouseDown = function onMouseDown(event) {
|
|
24664
24685
|
var params = getCellCallbackParams(event);
|
|
@@ -24730,7 +24751,6 @@ var Cell = function Cell(props) {
|
|
|
24730
24751
|
}
|
|
24731
24752
|
};
|
|
24732
24753
|
var _onBlur = function onBlur(event) {
|
|
24733
|
-
selfClick.current = false;
|
|
24734
24754
|
if (props.editMode !== 'row' && editingState && getColumnProp('cellEditValidatorEvent') === 'blur') {
|
|
24735
24755
|
switchCellToViewMode(event, true);
|
|
24736
24756
|
}
|
|
@@ -24811,9 +24831,8 @@ var Cell = function Cell(props) {
|
|
|
24811
24831
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
24812
24832
|
}, [editingState]);
|
|
24813
24833
|
useUnmountEffect(function () {
|
|
24814
|
-
if (
|
|
24815
|
-
|
|
24816
|
-
overlayEventListener.current = null;
|
|
24834
|
+
if (editingRowDataStateRef.current) {
|
|
24835
|
+
editingRowDataStateRef.current = null;
|
|
24817
24836
|
}
|
|
24818
24837
|
});
|
|
24819
24838
|
var createLoading = function createLoading() {
|
|
@@ -25117,6 +25136,7 @@ var Cell = function Cell(props) {
|
|
|
25117
25136
|
var RadioCheckCell = /*#__PURE__*/React.memo(function (props) {
|
|
25118
25137
|
return /*#__PURE__*/React.createElement(Cell, props);
|
|
25119
25138
|
}, function (prevProps, nextProps) {
|
|
25139
|
+
if (nextProps.cellMemo === false) return false;
|
|
25120
25140
|
var keysToCompare = ['isRowSelected', 'field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData'];
|
|
25121
25141
|
return ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
|
|
25122
25142
|
});
|
|
@@ -25600,8 +25620,13 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
25600
25620
|
} else {
|
|
25601
25621
|
var left = 0;
|
|
25602
25622
|
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
25603
|
-
|
|
25604
|
-
|
|
25623
|
+
while (prev) {
|
|
25624
|
+
if (prev.classList.contains('p-frozen-column')) {
|
|
25625
|
+
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
25626
|
+
elementRef.current.style.left = left + 'px';
|
|
25627
|
+
break;
|
|
25628
|
+
}
|
|
25629
|
+
prev = prev.previousElementSibling;
|
|
25605
25630
|
}
|
|
25606
25631
|
styleObject.left = left + 'px';
|
|
25607
25632
|
}
|
|
@@ -25609,9 +25634,8 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
25609
25634
|
!isSameStyle && setStyleObjectState(styleObject);
|
|
25610
25635
|
}
|
|
25611
25636
|
}, []);
|
|
25612
|
-
var onCellClick = function onCellClick(event, params, isEditable, editingState, setEditingState,
|
|
25637
|
+
var onCellClick = function onCellClick(event, params, isEditable, editingState, setEditingState, column, bindDocumentClickListener) {
|
|
25613
25638
|
if (props.editMode !== 'row' && isEditable && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.isRowSelected)) {
|
|
25614
|
-
selfClick.current = true;
|
|
25615
25639
|
var onBeforeCellEditShow = getColumnProp(column, 'onBeforeCellEditShow');
|
|
25616
25640
|
var onCellEditInit = getColumnProp(column, 'onCellEditInit');
|
|
25617
25641
|
var cellEditValidatorEvent = getColumnProp(column, 'cellEditValidatorEvent');
|
|
@@ -25642,12 +25666,6 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
25642
25666
|
}
|
|
25643
25667
|
if (cellEditValidatorEvent === 'click') {
|
|
25644
25668
|
bindDocumentClickListener();
|
|
25645
|
-
overlayEventListener.current = function (e) {
|
|
25646
|
-
if (!isOutsideClicked(e.target)) {
|
|
25647
|
-
selfClick.current = true;
|
|
25648
|
-
}
|
|
25649
|
-
};
|
|
25650
|
-
OverlayService.on('overlay-click', overlayEventListener.current);
|
|
25651
25669
|
}
|
|
25652
25670
|
}, 1);
|
|
25653
25671
|
}
|
|
@@ -27007,16 +27025,21 @@ var FooterCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
27007
27025
|
var _align = getColumnProp('alignFrozen');
|
|
27008
27026
|
if (_align === 'right') {
|
|
27009
27027
|
var right = 0;
|
|
27010
|
-
var next = elementRef.current.nextElementSibling;
|
|
27028
|
+
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
27011
27029
|
if (next && next.classList.contains('p-frozen-column')) {
|
|
27012
27030
|
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
27013
27031
|
}
|
|
27014
27032
|
styleObject.right = right + 'px';
|
|
27015
27033
|
} else {
|
|
27016
27034
|
var left = 0;
|
|
27017
|
-
var prev = elementRef.current.previousElementSibling;
|
|
27018
|
-
|
|
27019
|
-
|
|
27035
|
+
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
27036
|
+
while (prev) {
|
|
27037
|
+
if (prev && prev.classList.contains('p-frozen-column')) {
|
|
27038
|
+
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
27039
|
+
elementRef.current.style.left = left + 'px';
|
|
27040
|
+
break;
|
|
27041
|
+
}
|
|
27042
|
+
prev = prev.previousElementSibling;
|
|
27020
27043
|
}
|
|
27021
27044
|
styleObject.left = left + 'px';
|
|
27022
27045
|
}
|
|
@@ -27387,7 +27410,7 @@ var ColumnFilter = /*#__PURE__*/React.memo(function (props) {
|
|
|
27387
27410
|
};
|
|
27388
27411
|
} else {
|
|
27389
27412
|
filters[field].value = null;
|
|
27390
|
-
filters[field].matchMode = defaultConstraint.matchMode;
|
|
27413
|
+
filters[field].matchMode = defaultConstraint ? defaultConstraint.matchMode : filters[field].matchMode;
|
|
27391
27414
|
}
|
|
27392
27415
|
filterClearCallback && filterClearCallback();
|
|
27393
27416
|
props.onFilterChange(filters);
|
|
@@ -27454,6 +27477,7 @@ var ColumnFilter = /*#__PURE__*/React.memo(function (props) {
|
|
|
27454
27477
|
}
|
|
27455
27478
|
};
|
|
27456
27479
|
var onRowMatchModeChange = function onRowMatchModeChange(matchMode) {
|
|
27480
|
+
var _iconRef$current;
|
|
27457
27481
|
var filterMatchModeChangeCallback = getColumnProp('onFilterMatchModeChange');
|
|
27458
27482
|
var filters = _objectSpread$1c({}, props.filters);
|
|
27459
27483
|
filters[field].matchMode = matchMode;
|
|
@@ -27464,6 +27488,7 @@ var ColumnFilter = /*#__PURE__*/React.memo(function (props) {
|
|
|
27464
27488
|
props.onFilterChange(filters);
|
|
27465
27489
|
props.onFilterApply();
|
|
27466
27490
|
hide();
|
|
27491
|
+
(_iconRef$current = iconRef.current) === null || _iconRef$current === void 0 || _iconRef$current.focus();
|
|
27467
27492
|
};
|
|
27468
27493
|
var onRowMatchModeKeyDown = function onRowMatchModeKeyDown(event, matchMode, clear) {
|
|
27469
27494
|
var item = event.target;
|
|
@@ -28280,16 +28305,21 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
28280
28305
|
var align = getColumnProp('alignFrozen');
|
|
28281
28306
|
if (align === 'right') {
|
|
28282
28307
|
var right = 0;
|
|
28283
|
-
var next = elementRef.current.nextElementSibling;
|
|
28308
|
+
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
28284
28309
|
if (next && next.classList.contains('p-frozen-column')) {
|
|
28285
28310
|
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
28286
28311
|
}
|
|
28287
28312
|
styleObject.right = right + 'px';
|
|
28288
28313
|
} else {
|
|
28289
28314
|
var left = 0;
|
|
28290
|
-
var prev = elementRef.current.previousElementSibling;
|
|
28291
|
-
|
|
28292
|
-
|
|
28315
|
+
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
28316
|
+
while (prev) {
|
|
28317
|
+
if (prev && prev.classList.contains('p-frozen-column')) {
|
|
28318
|
+
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
28319
|
+
elementRef.current.style.left = left + 'px';
|
|
28320
|
+
break;
|
|
28321
|
+
}
|
|
28322
|
+
prev = prev.previousElementSibling;
|
|
28293
28323
|
}
|
|
28294
28324
|
styleObject.left = left + 'px';
|
|
28295
28325
|
}
|
|
@@ -29140,6 +29170,20 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
29140
29170
|
multiSortMeta: restoredState.multiSortMeta
|
|
29141
29171
|
}));
|
|
29142
29172
|
} else {
|
|
29173
|
+
var lastMeta = restoredState.multiSortMeta[restoredState.multiSortMeta.length - 1];
|
|
29174
|
+
var field = lastMeta && lastMeta.field ? lastMeta.field : null;
|
|
29175
|
+
if (field) {
|
|
29176
|
+
var sortColumn = findColumnByKey(getColumns(), field);
|
|
29177
|
+
if (sortColumn) {
|
|
29178
|
+
var sortFunction = getColumnProp(sortColumn, 'sortFunction');
|
|
29179
|
+
var sortable = getColumnProp(sortColumn, 'sortable');
|
|
29180
|
+
if (sortFunction && sortable) {
|
|
29181
|
+
columnSortFunction.current = sortFunction;
|
|
29182
|
+
columnSortable.current = sortable;
|
|
29183
|
+
columnField.current = field;
|
|
29184
|
+
}
|
|
29185
|
+
}
|
|
29186
|
+
}
|
|
29143
29187
|
setMultiSortMetaState(restoredState.multiSortMeta);
|
|
29144
29188
|
}
|
|
29145
29189
|
}
|
|
@@ -30255,6 +30299,9 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
30255
30299
|
},
|
|
30256
30300
|
getVirtualScroller: function getVirtualScroller() {
|
|
30257
30301
|
return virtualScrollerRef.current;
|
|
30302
|
+
},
|
|
30303
|
+
getProcessedData: function getProcessedData() {
|
|
30304
|
+
return processedData();
|
|
30258
30305
|
}
|
|
30259
30306
|
};
|
|
30260
30307
|
});
|
|
@@ -38708,11 +38755,12 @@ var MegaMenu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
38708
38755
|
var key = idState + '_separator__' + index;
|
|
38709
38756
|
var separatorProps = mergeProps({
|
|
38710
38757
|
id: key,
|
|
38711
|
-
key: key,
|
|
38712
38758
|
className: cx('separator'),
|
|
38713
38759
|
role: 'separator'
|
|
38714
38760
|
}, ptm('separator'));
|
|
38715
|
-
return /*#__PURE__*/React.createElement("li", separatorProps
|
|
38761
|
+
return /*#__PURE__*/React.createElement("li", _extends({}, separatorProps, {
|
|
38762
|
+
key: key
|
|
38763
|
+
}));
|
|
38716
38764
|
};
|
|
38717
38765
|
var createSubmenuIcon = function createSubmenuIcon(item) {
|
|
38718
38766
|
if (item.items) {
|
|
@@ -38763,7 +38811,6 @@ var MegaMenu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
38763
38811
|
var isGroup = isItemGroup(processedItem);
|
|
38764
38812
|
var isActive = isItemActive(processedItem);
|
|
38765
38813
|
var submenuItemProps = mergeProps({
|
|
38766
|
-
key: key,
|
|
38767
38814
|
id: key,
|
|
38768
38815
|
'aria-label': getItemLabel(processedItem),
|
|
38769
38816
|
'aria-disabled': isDisabled,
|
|
@@ -38803,7 +38850,9 @@ var MegaMenu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
38803
38850
|
};
|
|
38804
38851
|
content = ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);
|
|
38805
38852
|
}
|
|
38806
|
-
return /*#__PURE__*/React.createElement("li",
|
|
38853
|
+
return /*#__PURE__*/React.createElement("li", _extends({}, submenuItemProps, {
|
|
38854
|
+
key: key
|
|
38855
|
+
}), /*#__PURE__*/React.createElement("div", contentProps, content));
|
|
38807
38856
|
};
|
|
38808
38857
|
var createSubmenu = function createSubmenu(submenu, index) {
|
|
38809
38858
|
if (!isItemVisible(submenu)) {
|
|
@@ -38815,7 +38864,6 @@ var MegaMenu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
38815
38864
|
var isDisabled = isItemDisabled(submenu);
|
|
38816
38865
|
var submenuHeaderProps = mergeProps({
|
|
38817
38866
|
id: key,
|
|
38818
|
-
key: key,
|
|
38819
38867
|
className: classNames(submenu.className, cx('submenuHeader', {
|
|
38820
38868
|
disabled: isDisabled
|
|
38821
38869
|
})),
|
|
@@ -38827,7 +38875,7 @@ var MegaMenu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
38827
38875
|
key: key
|
|
38828
38876
|
}, /*#__PURE__*/React.createElement("li", submenuHeaderProps, label), items);
|
|
38829
38877
|
};
|
|
38830
|
-
var createSubmenus = function createSubmenus(column) {
|
|
38878
|
+
var createSubmenus = function createSubmenus(column, index) {
|
|
38831
38879
|
return column.map(createSubmenu);
|
|
38832
38880
|
};
|
|
38833
38881
|
var createColumn = function createColumn(processedItem, processedColumn, index) {
|
|
@@ -38835,7 +38883,6 @@ var MegaMenu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
38835
38883
|
var key = category.label + '_column_' + index;
|
|
38836
38884
|
var submenus = createSubmenus(processedColumn);
|
|
38837
38885
|
var columnProps = mergeProps({
|
|
38838
|
-
key: key,
|
|
38839
38886
|
className: cx('column', {
|
|
38840
38887
|
category: category
|
|
38841
38888
|
})
|
|
@@ -38849,12 +38896,16 @@ var MegaMenu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
38849
38896
|
display: display
|
|
38850
38897
|
}
|
|
38851
38898
|
}, ptm('submenu'));
|
|
38852
|
-
return /*#__PURE__*/React.createElement("div",
|
|
38899
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, columnProps, {
|
|
38900
|
+
key: key
|
|
38901
|
+
}), /*#__PURE__*/React.createElement("ul", submenuProps, submenus));
|
|
38853
38902
|
};
|
|
38854
38903
|
var createColumns = function createColumns(category) {
|
|
38855
38904
|
if (category.items) {
|
|
38856
38905
|
return category.items.map(function (column, index) {
|
|
38857
|
-
return
|
|
38906
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
38907
|
+
key: index
|
|
38908
|
+
}, createColumn(category, column, index));
|
|
38858
38909
|
});
|
|
38859
38910
|
}
|
|
38860
38911
|
return null;
|
|
@@ -38915,7 +38966,6 @@ var MegaMenu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
38915
38966
|
var isFocused = isItemFocused(processedItem);
|
|
38916
38967
|
var isDisabled = isItemDisabled(processedItem);
|
|
38917
38968
|
var menuItemProps = mergeProps(_defineProperty({
|
|
38918
|
-
key: key,
|
|
38919
38969
|
id: key,
|
|
38920
38970
|
className: classNames(category.className, cx('menuitem', {
|
|
38921
38971
|
category: category,
|
|
@@ -38951,7 +39001,9 @@ var MegaMenu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
38951
39001
|
},
|
|
38952
39002
|
className: cx('content')
|
|
38953
39003
|
}, getPTOptions(processedItem, 'content', index));
|
|
38954
|
-
return /*#__PURE__*/React.createElement("li",
|
|
39004
|
+
return /*#__PURE__*/React.createElement("li", _extends({}, menuItemProps, {
|
|
39005
|
+
key: key
|
|
39006
|
+
}), /*#__PURE__*/React.createElement("div", contentProps, itemContent), panel);
|
|
38955
39007
|
};
|
|
38956
39008
|
var createMenu = function createMenu() {
|
|
38957
39009
|
var menuProps = mergeProps({
|
|
@@ -38970,7 +39022,9 @@ var MegaMenu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
38970
39022
|
}, ptm('menu'));
|
|
38971
39023
|
if (processedItems) {
|
|
38972
39024
|
return /*#__PURE__*/React.createElement("ul", menuProps, processedItems.map(function (item, index) {
|
|
38973
|
-
return
|
|
39025
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
39026
|
+
key: index
|
|
39027
|
+
}, createCategory(item, index));
|
|
38974
39028
|
}));
|
|
38975
39029
|
}
|
|
38976
39030
|
return null;
|
|
@@ -39514,7 +39568,6 @@ var Mention = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
|
|
|
39514
39568
|
}) : formatValue(suggestion);
|
|
39515
39569
|
var isSelected = highlightState[index];
|
|
39516
39570
|
var itemProps = mergeProps({
|
|
39517
|
-
key: key,
|
|
39518
39571
|
className: cx('item', {
|
|
39519
39572
|
isSelected: isSelected
|
|
39520
39573
|
}),
|
|
@@ -39525,7 +39578,9 @@ var Mention = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
|
|
|
39525
39578
|
}, getPTOptions(suggestion, 'item', {
|
|
39526
39579
|
selected: isSelected
|
|
39527
39580
|
}));
|
|
39528
|
-
return /*#__PURE__*/React.createElement("li",
|
|
39581
|
+
return /*#__PURE__*/React.createElement("li", _extends({}, itemProps, {
|
|
39582
|
+
key: key
|
|
39583
|
+
}), content, /*#__PURE__*/React.createElement(Ripple, null));
|
|
39529
39584
|
};
|
|
39530
39585
|
var createList = function createList() {
|
|
39531
39586
|
var itemsProps = mergeProps({
|
|
@@ -40539,9 +40594,11 @@ var Menubar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
|
|
|
40539
40594
|
var _useEventListener = useEventListener({
|
|
40540
40595
|
type: 'click',
|
|
40541
40596
|
listener: function listener(event) {
|
|
40542
|
-
|
|
40543
|
-
|
|
40544
|
-
|
|
40597
|
+
if (isOutsideClicked(event)) {
|
|
40598
|
+
var isOutsideContainer = elementRef.current && !elementRef.current.contains(event.target);
|
|
40599
|
+
if (isOutsideContainer) {
|
|
40600
|
+
hide();
|
|
40601
|
+
}
|
|
40545
40602
|
}
|
|
40546
40603
|
},
|
|
40547
40604
|
options: {
|
|
@@ -40600,6 +40657,9 @@ var Menubar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
|
|
|
40600
40657
|
var menuButtonKeydown = function menuButtonKeydown(event) {
|
|
40601
40658
|
(event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && toggle(event);
|
|
40602
40659
|
};
|
|
40660
|
+
var isOutsideClicked = function isOutsideClicked(event) {
|
|
40661
|
+
return rootMenuRef.current !== event.target && !rootMenuRef.current.contains(event.target) && menuButtonRef.current !== event.target && !menuButtonRef.current.contains(event.target);
|
|
40662
|
+
};
|
|
40603
40663
|
var getItemProp = function getItemProp(item, name) {
|
|
40604
40664
|
return item ? ObjectUtils.getItemValue(item[name]) : undefined;
|
|
40605
40665
|
};
|
|
@@ -41702,6 +41762,7 @@ var MultiSelectHeader = /*#__PURE__*/React.memo(function (props) {
|
|
|
41702
41762
|
element: content,
|
|
41703
41763
|
filterOptions: filterOptions,
|
|
41704
41764
|
onFilter: onFilter,
|
|
41765
|
+
filterInputKeyDown: props.onFilterKeyDown,
|
|
41705
41766
|
filterIconClassName: props.filterIconClassName,
|
|
41706
41767
|
props: props
|
|
41707
41768
|
};
|
|
@@ -42077,7 +42138,8 @@ var MultiSelectPanel = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(fun
|
|
|
42077
42138
|
allowOptionSelect: allowOptionSelect
|
|
42078
42139
|
})),
|
|
42079
42140
|
style: props.panelStyle,
|
|
42080
|
-
onClick: props.onClick
|
|
42141
|
+
onClick: props.onClick,
|
|
42142
|
+
'data-pr-is-overlay': true
|
|
42081
42143
|
}, getPTOptions('panel'));
|
|
42082
42144
|
if (props.inline) {
|
|
42083
42145
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -50014,13 +50076,14 @@ var SlideMenuSub = /*#__PURE__*/React.memo(function (props) {
|
|
|
50014
50076
|
var key = props.id + '_sep_' + index;
|
|
50015
50077
|
var separatorProps = mergeProps({
|
|
50016
50078
|
id: key,
|
|
50017
|
-
key: key,
|
|
50018
50079
|
className: cx('separator'),
|
|
50019
50080
|
role: 'separator'
|
|
50020
50081
|
}, ptm('separator', {
|
|
50021
50082
|
hostName: props.hostName
|
|
50022
50083
|
}));
|
|
50023
|
-
return /*#__PURE__*/React.createElement("li", separatorProps
|
|
50084
|
+
return /*#__PURE__*/React.createElement("li", _extends({}, separatorProps, {
|
|
50085
|
+
key: key
|
|
50086
|
+
}));
|
|
50024
50087
|
};
|
|
50025
50088
|
var createSubmenu = function createSubmenu(item, index) {
|
|
50026
50089
|
var shouldRender = renderSubMenu[createKey(item, index)];
|
|
@@ -50096,14 +50159,15 @@ var SlideMenuSub = /*#__PURE__*/React.memo(function (props) {
|
|
|
50096
50159
|
}
|
|
50097
50160
|
var menuitemProps = mergeProps({
|
|
50098
50161
|
id: key,
|
|
50099
|
-
key: key,
|
|
50100
50162
|
className: cx('menuitem', {
|
|
50101
50163
|
active: active,
|
|
50102
50164
|
item: item
|
|
50103
50165
|
}),
|
|
50104
50166
|
style: item.style
|
|
50105
50167
|
}, getPTOptions(item, 'menuitem'));
|
|
50106
|
-
return /*#__PURE__*/React.createElement("li",
|
|
50168
|
+
return /*#__PURE__*/React.createElement("li", _extends({}, menuitemProps, {
|
|
50169
|
+
key: key
|
|
50170
|
+
}), content, submenu);
|
|
50107
50171
|
};
|
|
50108
50172
|
var createItem = function createItem(item, index) {
|
|
50109
50173
|
if (item.visible === false) {
|
|
@@ -51536,6 +51600,9 @@ var TieredMenuSub = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
|
|
|
51536
51600
|
}
|
|
51537
51601
|
};
|
|
51538
51602
|
var getItemId = function getItemId(processedItem) {
|
|
51603
|
+
if (processedItem.item && processedItem.item.id) {
|
|
51604
|
+
return processedItem.item.id;
|
|
51605
|
+
}
|
|
51539
51606
|
return "".concat(props.menuId, "_").concat(processedItem.key);
|
|
51540
51607
|
};
|
|
51541
51608
|
var getItemProp = function getItemProp(processedItem, name, params) {
|
|
@@ -51589,13 +51656,14 @@ var TieredMenuSub = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
|
|
|
51589
51656
|
var createSeparator = function createSeparator(index) {
|
|
51590
51657
|
var key = 'separator_' + index;
|
|
51591
51658
|
var separatorProps = mergeProps({
|
|
51592
|
-
key: key,
|
|
51593
51659
|
className: cx('separator'),
|
|
51594
51660
|
role: 'separator'
|
|
51595
51661
|
}, ptm('separator', {
|
|
51596
51662
|
hostName: props.hostName
|
|
51597
51663
|
}));
|
|
51598
|
-
return /*#__PURE__*/React.createElement("li", separatorProps
|
|
51664
|
+
return /*#__PURE__*/React.createElement("li", _extends({}, separatorProps, {
|
|
51665
|
+
key: key
|
|
51666
|
+
}));
|
|
51599
51667
|
};
|
|
51600
51668
|
var createSubmenu = function createSubmenu(processedItem, index) {
|
|
51601
51669
|
if (isItemGroup(processedItem)) {
|
|
@@ -51689,7 +51757,6 @@ var TieredMenuSub = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
|
|
|
51689
51757
|
className: cx('content')
|
|
51690
51758
|
}, getPTOptions(processedItem, 'content'));
|
|
51691
51759
|
var menuitemProps = mergeProps({
|
|
51692
|
-
key: key,
|
|
51693
51760
|
id: key,
|
|
51694
51761
|
'aria-label': item.label,
|
|
51695
51762
|
'aria-disabled': disabled,
|
|
@@ -51712,7 +51779,9 @@ var TieredMenuSub = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
|
|
|
51712
51779
|
},
|
|
51713
51780
|
role: 'menuitem'
|
|
51714
51781
|
}, getPTOptions(processedItem, 'menuitem'));
|
|
51715
|
-
return /*#__PURE__*/React.createElement("li",
|
|
51782
|
+
return /*#__PURE__*/React.createElement("li", _extends({}, menuitemProps, {
|
|
51783
|
+
key: key
|
|
51784
|
+
}), /*#__PURE__*/React.createElement("div", contentProps, content), submenu);
|
|
51716
51785
|
};
|
|
51717
51786
|
var createItem = function createItem(processedItem, index) {
|
|
51718
51787
|
if (processedItem.visible === false) {
|
|
@@ -52544,10 +52613,11 @@ var SplitButtonBase = ComponentBase.extend({
|
|
|
52544
52613
|
function ownKeys$n(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; }
|
|
52545
52614
|
function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
52546
52615
|
var SplitButton = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
52616
|
+
var _props$id;
|
|
52547
52617
|
var mergeProps = useMergeProps();
|
|
52548
52618
|
var context = React.useContext(PrimeReactContext);
|
|
52549
52619
|
var props = SplitButtonBase.getProps(inProps, context);
|
|
52550
|
-
var _React$useState = React.useState(props.id),
|
|
52620
|
+
var _React$useState = React.useState((_props$id = props.id) !== null && _props$id !== void 0 ? _props$id : UniqueComponentId),
|
|
52551
52621
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
52552
52622
|
idState = _React$useState2[0],
|
|
52553
52623
|
setIdState = _React$useState2[1];
|
|
@@ -56145,14 +56215,14 @@ var ToggleButton = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functio
|
|
|
56145
56215
|
onBlur: onBlur,
|
|
56146
56216
|
onKeyDown: onKeyDown,
|
|
56147
56217
|
tabIndex: tabIndex,
|
|
56148
|
-
role: 'switch',
|
|
56149
56218
|
type: 'checkbox',
|
|
56150
|
-
'aria-pressed': props.checked,
|
|
56151
56219
|
'aria-invalid': props.invalid,
|
|
56152
56220
|
disabled: props.disabled,
|
|
56153
56221
|
readOnly: props.readonly,
|
|
56154
56222
|
value: props.checked,
|
|
56155
|
-
checked: props.checked
|
|
56223
|
+
checked: props.checked,
|
|
56224
|
+
'aria-label': props['aria-label'],
|
|
56225
|
+
'aria-labelledby': props['aria-labelledby']
|
|
56156
56226
|
}, ptm('input'));
|
|
56157
56227
|
var boxProps = mergeProps({
|
|
56158
56228
|
className: classNames(props.className, cx('box', {
|
|
@@ -57157,11 +57227,11 @@ var UITreeNode = /*#__PURE__*/React.memo(function (props) {
|
|
|
57157
57227
|
});
|
|
57158
57228
|
UITreeNode.displayName = 'UITreeNode';
|
|
57159
57229
|
|
|
57160
|
-
function ownKeys$9(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; }
|
|
57161
|
-
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
57162
57230
|
function _createForOfIteratorHelper$5(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$5(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
57163
57231
|
function _unsupportedIterableToArray$5(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$5(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$5(r, a) : void 0; } }
|
|
57164
57232
|
function _arrayLikeToArray$5(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
57233
|
+
function ownKeys$9(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; }
|
|
57234
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
57165
57235
|
var Tree = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
57166
57236
|
var mergeProps = useMergeProps();
|
|
57167
57237
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -57175,18 +57245,14 @@ var Tree = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
|
|
|
57175
57245
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
57176
57246
|
expandedKeysState = _React$useState2[0],
|
|
57177
57247
|
setExpandedKeysState = _React$useState2[1];
|
|
57178
|
-
var _React$useState3 = React.useState({}),
|
|
57179
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
57180
|
-
filterExpandedKeys = _React$useState4[0],
|
|
57181
|
-
setFilterExpandedKeys = _React$useState4[1];
|
|
57182
57248
|
var elementRef = React.useRef(null);
|
|
57183
57249
|
var filteredNodes = React.useRef([]);
|
|
57184
57250
|
var dragState = React.useRef(null);
|
|
57185
57251
|
var filterChanged = React.useRef(false);
|
|
57186
57252
|
var filteredValue = props.onFilterValueChange ? props.filterValue : filterValueState;
|
|
57187
57253
|
var isFiltering = props.filter && filteredValue;
|
|
57188
|
-
var expandedKeys =
|
|
57189
|
-
var currentFilterExpandedKeys = {};
|
|
57254
|
+
var expandedKeys = props.onToggle ? props.expandedKeys : expandedKeysState;
|
|
57255
|
+
var currentFilterExpandedKeys = React.useRef({});
|
|
57190
57256
|
var childFocusEvent = React.useRef(null);
|
|
57191
57257
|
var _TreeBase$setMetaData = TreeBase.setMetaData({
|
|
57192
57258
|
props: props,
|
|
@@ -57216,7 +57282,16 @@ var Tree = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
|
|
|
57216
57282
|
var originalEvent = event.originalEvent,
|
|
57217
57283
|
value = event.value,
|
|
57218
57284
|
navigateFocusToChild = event.navigateFocusToChild;
|
|
57219
|
-
if (
|
|
57285
|
+
if (originalEvent == null && isFiltering) {
|
|
57286
|
+
if (props.onToggle) {
|
|
57287
|
+
props.onToggle({
|
|
57288
|
+
originalEvent: originalEvent,
|
|
57289
|
+
value: _objectSpread$9(_objectSpread$9({}, props.expandedKeys), value)
|
|
57290
|
+
});
|
|
57291
|
+
} else {
|
|
57292
|
+
setExpandedKeysState(_objectSpread$9(_objectSpread$9({}, expandedKeysState), value));
|
|
57293
|
+
}
|
|
57294
|
+
} else if (props.onToggle) {
|
|
57220
57295
|
props.onToggle({
|
|
57221
57296
|
originalEvent: originalEvent,
|
|
57222
57297
|
value: value
|
|
@@ -57225,11 +57300,7 @@ var Tree = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
|
|
|
57225
57300
|
if (navigateFocusToChild) {
|
|
57226
57301
|
childFocusEvent.current = originalEvent;
|
|
57227
57302
|
}
|
|
57228
|
-
|
|
57229
|
-
setFilterExpandedKeys(value);
|
|
57230
|
-
} else {
|
|
57231
|
-
setExpandedKeysState(value);
|
|
57232
|
-
}
|
|
57303
|
+
setExpandedKeysState(value);
|
|
57233
57304
|
}
|
|
57234
57305
|
};
|
|
57235
57306
|
useUpdateEffect(function () {
|
|
@@ -57468,7 +57539,12 @@ var Tree = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
|
|
|
57468
57539
|
_iterator.f();
|
|
57469
57540
|
}
|
|
57470
57541
|
}
|
|
57471
|
-
|
|
57542
|
+
onToggle({
|
|
57543
|
+
originalEvent: null,
|
|
57544
|
+
value: currentFilterExpandedKeys.current,
|
|
57545
|
+
navigateFocusToChild: false
|
|
57546
|
+
});
|
|
57547
|
+
currentFilterExpandedKeys.current = {};
|
|
57472
57548
|
filterChanged.current = false;
|
|
57473
57549
|
};
|
|
57474
57550
|
var findFilteredNodes = function findFilteredNodes(node, paramsWithoutNode) {
|
|
@@ -57495,7 +57571,7 @@ var Tree = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
|
|
|
57495
57571
|
}
|
|
57496
57572
|
}
|
|
57497
57573
|
if (matched) {
|
|
57498
|
-
currentFilterExpandedKeys[node.key] = true;
|
|
57574
|
+
currentFilterExpandedKeys.current[node.key] = true;
|
|
57499
57575
|
return true;
|
|
57500
57576
|
}
|
|
57501
57577
|
}
|