primereact 7.0.1 → 7.1.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/README.md +1 -1
- package/accordion/accordion.cjs.js +12 -6
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +5 -2
- package/accordion/accordion.esm.js +12 -6
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +12 -6
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +2 -0
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +30 -30
- package/api/api.esm.js +2 -0
- package/api/api.esm.min.js +1 -1
- package/api/api.js +2 -0
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +4 -4
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +9 -4
- package/autocomplete/autocomplete.esm.js +4 -4
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +4 -4
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.d.ts +1 -1
- package/blockui/blockui.cjs.js +12 -5
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +12 -5
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +12 -5
- package/blockui/blockui.min.js +1 -1
- package/button/button.d.ts +1 -1
- package/calendar/calendar.cjs.js +22 -3
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +3 -2
- package/calendar/calendar.esm.js +22 -3
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +22 -3
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +8 -9
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +8 -9
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +8 -9
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +1 -1
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +2 -1
- package/cascadeselect/cascadeselect.esm.js +1 -1
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +1 -1
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/checkbox.d.ts +1 -1
- package/chip/chip.d.ts +1 -1
- package/colorpicker/colorpicker.cjs.js +1 -1
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +19 -5
- package/colorpicker/colorpicker.esm.js +1 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +1 -1
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.d.ts +1 -1
- package/confirmdialog/confirmdialog.d.ts +1 -1
- package/confirmpopup/confirmpopup.cjs.js +2 -2
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +3 -2
- package/confirmpopup/confirmpopup.esm.js +2 -2
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +2 -2
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +1 -1
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +2 -1
- package/contextmenu/contextmenu.esm.js +1 -1
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +1 -1
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +185 -68
- package/core/core.min.js +9 -9
- package/csstransition/csstransition.cjs.js +49 -19
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.d.ts +8 -0
- package/csstransition/csstransition.esm.js +48 -19
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +49 -21
- package/csstransition/csstransition.min.js +1 -1
- package/csstransition/package.json +2 -1
- package/datatable/datatable.cjs.js +238 -186
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +25 -11
- package/datatable/datatable.esm.js +238 -186
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +238 -186
- package/datatable/datatable.min.js +1 -1
- package/dialog/dialog.cjs.js +2 -8
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +2 -1
- package/dialog/dialog.esm.js +2 -8
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +2 -8
- package/dialog/dialog.min.js +1 -1
- package/dropdown/dropdown.cjs.js +14 -4
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +2 -1
- package/dropdown/dropdown.esm.js +14 -4
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +14 -4
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +6 -2
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +1 -0
- package/editor/editor.esm.js +6 -2
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +6 -2
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.d.ts +2 -1
- package/fileupload/fileupload.d.ts +1 -1
- package/galleria/galleria.cjs.js +1 -2
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +2 -1
- package/galleria/galleria.esm.js +1 -2
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +1 -2
- package/galleria/galleria.min.js +1 -1
- package/inputmask/inputmask.cjs.js +2 -2
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +1 -1
- package/inputmask/inputmask.esm.js +2 -2
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +2 -2
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +10 -5
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +4 -4
- package/inputnumber/inputnumber.esm.js +10 -5
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +10 -5
- package/inputnumber/inputnumber.min.js +1 -1
- package/mention/mention.cjs.js +1 -1
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +2 -1
- package/mention/mention.esm.js +1 -1
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +1 -1
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +1 -1
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +2 -1
- package/menu/menu.esm.js +1 -1
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +1 -1
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.min.css +1 -1
- package/messages/messages.d.ts +2 -1
- package/multiselect/multiselect.cjs.js +2 -2
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +3 -2
- package/multiselect/multiselect.esm.js +2 -2
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +2 -2
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +1 -1
- package/organizationchart/organizationchart.min.css +1 -1
- package/overlaypanel/overlaypanel.cjs.js +3 -7
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +2 -1
- package/overlaypanel/overlaypanel.esm.js +3 -7
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +3 -7
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +3 -2
- package/panel/panel.cjs.js +3 -2
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +5 -3
- package/panel/panel.esm.js +4 -3
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +3 -2
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +2 -1
- package/password/password.cjs.js +1 -1
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +2 -1
- package/password/password.esm.js +1 -1
- package/password/password.esm.min.js +1 -1
- package/password/password.js +1 -1
- package/password/password.min.js +1 -1
- package/portal/portal.cjs.js +2 -6
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +2 -6
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +3 -8
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +850 -630
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +850 -630
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +850 -630
- package/primereact.all.min.js +1 -1
- package/resources/primereact.css +356 -354
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +4 -0
- package/resources/themes/arya-green/theme.css +4 -0
- package/resources/themes/arya-orange/theme.css +4 -0
- package/resources/themes/arya-purple/theme.css +4 -0
- package/resources/themes/bootstrap4-dark-blue/theme.css +4 -0
- package/resources/themes/bootstrap4-dark-purple/theme.css +4 -0
- package/resources/themes/bootstrap4-light-blue/theme.css +4 -0
- package/resources/themes/bootstrap4-light-purple/theme.css +4 -0
- package/resources/themes/fluent-light/theme.css +4 -0
- package/resources/themes/lara-dark-blue/theme.css +26 -22
- package/resources/themes/lara-dark-indigo/theme.css +26 -22
- package/resources/themes/lara-dark-purple/theme.css +26 -22
- package/resources/themes/lara-dark-teal/theme.css +26 -22
- package/resources/themes/lara-light-blue/theme.css +4 -0
- package/resources/themes/lara-light-indigo/theme.css +4 -0
- package/resources/themes/lara-light-purple/theme.css +4 -0
- package/resources/themes/lara-light-teal/theme.css +4 -0
- package/resources/themes/luna-amber/theme.css +4 -0
- package/resources/themes/luna-blue/theme.css +4 -0
- package/resources/themes/luna-green/theme.css +4 -0
- package/resources/themes/luna-pink/theme.css +4 -0
- package/resources/themes/md-dark-deeppurple/theme.css +4 -0
- package/resources/themes/md-dark-indigo/theme.css +4 -0
- package/resources/themes/md-light-deeppurple/theme.css +4 -0
- package/resources/themes/md-light-indigo/theme.css +4 -0
- package/resources/themes/mdc-dark-deeppurple/theme.css +4 -0
- package/resources/themes/mdc-dark-indigo/theme.css +4 -0
- package/resources/themes/mdc-light-deeppurple/theme.css +4 -0
- package/resources/themes/mdc-light-indigo/theme.css +4 -0
- package/resources/themes/nova/theme.css +4 -0
- package/resources/themes/nova-accent/theme.css +4 -0
- package/resources/themes/nova-alt/theme.css +4 -0
- package/resources/themes/rhea/theme.css +4 -0
- package/resources/themes/saga-blue/theme.css +4 -0
- package/resources/themes/saga-green/theme.css +4 -0
- package/resources/themes/saga-orange/theme.css +4 -0
- package/resources/themes/saga-purple/theme.css +4 -0
- package/resources/themes/tailwind-light/theme.css +4 -0
- package/resources/themes/vela-blue/theme.css +4 -0
- package/resources/themes/vela-green/theme.css +4 -0
- package/resources/themes/vela-orange/theme.css +4 -0
- package/resources/themes/vela-purple/theme.css +4 -0
- package/scrolltop/scrolltop.d.ts +3 -2
- package/selectitem/selectitem.d.ts +1 -1
- package/sidebar/sidebar.d.ts +2 -1
- package/slidemenu/slidemenu.cjs.js +1 -1
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +2 -1
- package/slidemenu/slidemenu.esm.js +1 -1
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +1 -1
- package/slidemenu/slidemenu.min.js +1 -1
- package/speeddial/speeddial.d.ts +1 -1
- package/splitbutton/splitbutton.cjs.js +7 -3
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +5 -2
- package/splitbutton/splitbutton.esm.js +7 -3
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +7 -3
- package/splitbutton/splitbutton.min.js +1 -1
- package/tabview/tabview.cjs.js +21 -4
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +8 -0
- package/tabview/tabview.esm.js +21 -4
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +21 -4
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.d.ts +1 -1
- package/tieredmenu/tieredmenu.cjs.js +1 -1
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +2 -1
- package/tieredmenu/tieredmenu.esm.js +1 -1
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +1 -1
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/toast/toast.d.ts +2 -1
- package/togglebutton/togglebutton.d.ts +1 -1
- package/tooltip/tooltip.cjs.js +32 -6
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +0 -1
- package/tooltip/tooltip.esm.js +32 -6
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +32 -6
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +2 -0
- package/tree/tree.d.ts +8 -4
- package/treenode/treenode.d.ts +1 -1
- package/treeselect/treeselect.cjs.js +1 -1
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +2 -1
- package/treeselect/treeselect.esm.js +1 -1
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +1 -1
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +48 -1
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +1 -1
- package/treetable/treetable.esm.js +48 -1
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +48 -1
- package/treetable/treetable.min.js +1 -1
- package/utils/utils.cjs.js +48 -1
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -0
- package/utils/utils.esm.js +48 -1
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +48 -1
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +27 -17
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +27 -17
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +27 -17
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +2 -2
- package/util.d.ts +0 -1
package/core/core.js
CHANGED
|
@@ -931,7 +931,12 @@ this.primereact.utils = (function (exports, React) {
|
|
|
931
931
|
}, {
|
|
932
932
|
key: "isExist",
|
|
933
933
|
value: function isExist(element) {
|
|
934
|
-
return element !== null && typeof element !== 'undefined' && element.nodeName;
|
|
934
|
+
return element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode;
|
|
935
|
+
}
|
|
936
|
+
}, {
|
|
937
|
+
key: "hasDOM",
|
|
938
|
+
value: function hasDOM() {
|
|
939
|
+
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
935
940
|
}
|
|
936
941
|
}, {
|
|
937
942
|
key: "getFocusableElements",
|
|
@@ -1057,6 +1062,48 @@ this.primereact.utils = (function (exports, React) {
|
|
|
1057
1062
|
}
|
|
1058
1063
|
}
|
|
1059
1064
|
}
|
|
1065
|
+
/**
|
|
1066
|
+
* Anytime an inline style is created check environment variable 'process.env.REACT_APP_CSS_NONCE'
|
|
1067
|
+
* to set a CSP NONCE.
|
|
1068
|
+
*
|
|
1069
|
+
* @see https://github.com/primefaces/primereact/issues/2423
|
|
1070
|
+
* @return HtmlStyleElement
|
|
1071
|
+
*/
|
|
1072
|
+
|
|
1073
|
+
}, {
|
|
1074
|
+
key: "createInlineStyle",
|
|
1075
|
+
value: function createInlineStyle() {
|
|
1076
|
+
var styleElement = document.createElement('style');
|
|
1077
|
+
var nonce = process.env.REACT_APP_CSS_NONCE;
|
|
1078
|
+
|
|
1079
|
+
if (nonce) {
|
|
1080
|
+
styleElement.setAttribute('nonce', nonce);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
document.head.appendChild(styleElement);
|
|
1084
|
+
return styleElement;
|
|
1085
|
+
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Remove a style element from the head and attempt to prevent DOM Exception on fast refresh.
|
|
1088
|
+
*
|
|
1089
|
+
* @see https://github.com/primefaces/primereact/issues/2469
|
|
1090
|
+
* @param {HtmlStyleElement} styleElement the element to remove from head
|
|
1091
|
+
*/
|
|
1092
|
+
|
|
1093
|
+
}, {
|
|
1094
|
+
key: "removeInlineStyle",
|
|
1095
|
+
value: function removeInlineStyle(styleElement) {
|
|
1096
|
+
if (this.isExist(styleElement)) {
|
|
1097
|
+
try {
|
|
1098
|
+
document.head.removeChild(styleElement);
|
|
1099
|
+
} catch (error) {// style element may have already been removed in a fast refresh
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
styleElement = null;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
return styleElement;
|
|
1106
|
+
}
|
|
1060
1107
|
}]);
|
|
1061
1108
|
|
|
1062
1109
|
return DomHandler;
|
|
@@ -2052,6 +2099,8 @@ this.primereact.api = (function (exports, utils) {
|
|
|
2052
2099
|
|
|
2053
2100
|
_defineProperty(PrimeReact, "appendTo", null);
|
|
2054
2101
|
|
|
2102
|
+
_defineProperty(PrimeReact, "cssTransition", true);
|
|
2103
|
+
|
|
2055
2104
|
_defineProperty(PrimeReact, "autoZIndex", true);
|
|
2056
2105
|
|
|
2057
2106
|
_defineProperty(PrimeReact, "zIndex", {
|
|
@@ -2875,12 +2924,13 @@ this.primereact.ripple = (function (exports, React, utils, PrimeReact) {
|
|
|
2875
2924
|
})({}, React, primereact.utils, primereact.api);
|
|
2876
2925
|
|
|
2877
2926
|
this.primereact = this.primereact || {};
|
|
2878
|
-
this.primereact.csstransition = (function (exports, React, reactTransitionGroup) {
|
|
2927
|
+
this.primereact.csstransition = (function (exports, React, reactTransitionGroup, PrimeReact, utils) {
|
|
2879
2928
|
'use strict';
|
|
2880
2929
|
|
|
2881
2930
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
2882
2931
|
|
|
2883
2932
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
2933
|
+
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
2884
2934
|
|
|
2885
2935
|
function _defineProperty(obj, key, value) {
|
|
2886
2936
|
if (key in obj) {
|
|
@@ -3012,6 +3062,11 @@ this.primereact.csstransition = (function (exports, React, reactTransitionGroup)
|
|
|
3012
3062
|
}
|
|
3013
3063
|
|
|
3014
3064
|
_createClass(CSSTransition, [{
|
|
3065
|
+
key: "disabled",
|
|
3066
|
+
get: function get() {
|
|
3067
|
+
return this.props.disabled || this.props.options && this.props.options.disabled || !PrimeReact__default["default"].cssTransition;
|
|
3068
|
+
}
|
|
3069
|
+
}, {
|
|
3015
3070
|
key: "onEnter",
|
|
3016
3071
|
value: function onEnter(node, isAppearing) {
|
|
3017
3072
|
this.props.onEnter && this.props.onEnter(node, isAppearing); // component
|
|
@@ -3053,28 +3108,50 @@ this.primereact.csstransition = (function (exports, React, reactTransitionGroup)
|
|
|
3053
3108
|
|
|
3054
3109
|
this.props.options && this.props.options.onExited && this.props.options.onExited(node); // user option
|
|
3055
3110
|
}
|
|
3111
|
+
}, {
|
|
3112
|
+
key: "componentDidUpdate",
|
|
3113
|
+
value: function componentDidUpdate(prevProps) {
|
|
3114
|
+
if (this.props.in !== prevProps.in && this.disabled) {
|
|
3115
|
+
// no animation
|
|
3116
|
+
var node = utils.ObjectUtils.getRefElement(this.props.nodeRef);
|
|
3117
|
+
|
|
3118
|
+
if (this.props.in) {
|
|
3119
|
+
this.onEnter(node, true);
|
|
3120
|
+
this.onEntering(node, true);
|
|
3121
|
+
this.onEntered(node, true);
|
|
3122
|
+
} else {
|
|
3123
|
+
this.onExit(node);
|
|
3124
|
+
this.onExiting(node);
|
|
3125
|
+
this.onExited(node);
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3128
|
+
}
|
|
3056
3129
|
}, {
|
|
3057
3130
|
key: "render",
|
|
3058
3131
|
value: function render() {
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3132
|
+
if (this.disabled) {
|
|
3133
|
+
return this.props.in ? this.props.children : null;
|
|
3134
|
+
} else {
|
|
3135
|
+
var immutableProps = {
|
|
3136
|
+
nodeRef: this.props.nodeRef,
|
|
3137
|
+
in: this.props.in,
|
|
3138
|
+
onEnter: this.onEnter,
|
|
3139
|
+
onEntering: this.onEntering,
|
|
3140
|
+
onEntered: this.onEntered,
|
|
3141
|
+
onExit: this.onExit,
|
|
3142
|
+
onExiting: this.onExiting,
|
|
3143
|
+
onExited: this.onExited
|
|
3144
|
+
};
|
|
3145
|
+
var mutableProps = {
|
|
3146
|
+
classNames: this.props.classNames,
|
|
3147
|
+
timeout: this.props.timeout,
|
|
3148
|
+
unmountOnExit: this.props.unmountOnExit
|
|
3149
|
+
};
|
|
3074
3150
|
|
|
3075
|
-
|
|
3151
|
+
var props = _objectSpread(_objectSpread(_objectSpread({}, mutableProps), this.props.options || {}), immutableProps);
|
|
3076
3152
|
|
|
3077
|
-
|
|
3153
|
+
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.CSSTransition, props, this.props.children);
|
|
3154
|
+
}
|
|
3078
3155
|
}
|
|
3079
3156
|
}]);
|
|
3080
3157
|
|
|
@@ -3087,10 +3164,10 @@ this.primereact.csstransition = (function (exports, React, reactTransitionGroup)
|
|
|
3087
3164
|
|
|
3088
3165
|
return exports;
|
|
3089
3166
|
|
|
3090
|
-
})({}, React, ReactTransitionGroup);
|
|
3167
|
+
})({}, React, ReactTransitionGroup, primereact.api, primereact.utils);
|
|
3091
3168
|
|
|
3092
3169
|
this.primereact = this.primereact || {};
|
|
3093
|
-
this.primereact.portal = (function (exports, react, ReactDOM, PrimeReact) {
|
|
3170
|
+
this.primereact.portal = (function (exports, react, ReactDOM, PrimeReact, utils) {
|
|
3094
3171
|
'use strict';
|
|
3095
3172
|
|
|
3096
3173
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -3221,14 +3298,9 @@ this.primereact.portal = (function (exports, react, ReactDOM, PrimeReact) {
|
|
|
3221
3298
|
}
|
|
3222
3299
|
|
|
3223
3300
|
_createClass(Portal, [{
|
|
3224
|
-
key: "hasDOM",
|
|
3225
|
-
value: function hasDOM() {
|
|
3226
|
-
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
3227
|
-
}
|
|
3228
|
-
}, {
|
|
3229
3301
|
key: "componentDidMount",
|
|
3230
3302
|
value: function componentDidMount() {
|
|
3231
|
-
if (
|
|
3303
|
+
if (utils.DomHandler.hasDOM() && !this.state.mounted) {
|
|
3232
3304
|
this.setState({
|
|
3233
3305
|
mounted: true
|
|
3234
3306
|
}, this.props.onMounted);
|
|
@@ -3270,7 +3342,7 @@ this.primereact.portal = (function (exports, react, ReactDOM, PrimeReact) {
|
|
|
3270
3342
|
|
|
3271
3343
|
return exports;
|
|
3272
3344
|
|
|
3273
|
-
})({}, React, ReactDOM, primereact.api);
|
|
3345
|
+
})({}, React, ReactDOM, primereact.api, primereact.utils);
|
|
3274
3346
|
|
|
3275
3347
|
this.primereact = this.primereact || {};
|
|
3276
3348
|
this.primereact.keyfilter = (function (exports, utils) {
|
|
@@ -3632,6 +3704,11 @@ this.primereact.tooltip = (function (exports, React, ReactDOM, utils, portal, Pr
|
|
|
3632
3704
|
value: function isDisabled(target) {
|
|
3633
3705
|
return this.getTargetOption(target, 'disabled') === 'true' || this.hasTargetOption(target, 'disabled') || this.props.disabled;
|
|
3634
3706
|
}
|
|
3707
|
+
}, {
|
|
3708
|
+
key: "isShowOnDisabled",
|
|
3709
|
+
value: function isShowOnDisabled(target) {
|
|
3710
|
+
return this.getTargetOption(target, 'showondisabled') || this.props.showOnDisabled;
|
|
3711
|
+
}
|
|
3635
3712
|
}, {
|
|
3636
3713
|
key: "isAutoHide",
|
|
3637
3714
|
value: function isAutoHide() {
|
|
@@ -3711,8 +3788,10 @@ this.primereact.tooltip = (function (exports, React, ReactDOM, utils, portal, Pr
|
|
|
3711
3788
|
var _this2 = this;
|
|
3712
3789
|
|
|
3713
3790
|
this.currentTarget = e.currentTarget;
|
|
3791
|
+
var disabled = this.isDisabled(this.currentTarget);
|
|
3792
|
+
var empty = this.isContentEmpty(this.isShowOnDisabled(this.currentTarget) && disabled ? this.currentTarget.firstChild : this.currentTarget);
|
|
3714
3793
|
|
|
3715
|
-
if (
|
|
3794
|
+
if (empty || disabled) {
|
|
3716
3795
|
return;
|
|
3717
3796
|
}
|
|
3718
3797
|
|
|
@@ -3917,7 +3996,7 @@ this.primereact.tooltip = (function (exports, React, ReactDOM, utils, portal, Pr
|
|
|
3917
3996
|
var _this5 = this;
|
|
3918
3997
|
|
|
3919
3998
|
this.documentResizeListener = function (e) {
|
|
3920
|
-
if (!utils.DomHandler.
|
|
3999
|
+
if (!utils.DomHandler.isTouchDevice()) {
|
|
3921
4000
|
_this5.hide(e);
|
|
3922
4001
|
}
|
|
3923
4002
|
};
|
|
@@ -3962,8 +4041,9 @@ this.primereact.tooltip = (function (exports, React, ReactDOM, utils, portal, Pr
|
|
|
3962
4041
|
showEvent = _this$getEvents.showEvent,
|
|
3963
4042
|
hideEvent = _this$getEvents.hideEvent;
|
|
3964
4043
|
|
|
3965
|
-
|
|
3966
|
-
|
|
4044
|
+
var currentTarget = this.getTarget(target);
|
|
4045
|
+
currentTarget.addEventListener(showEvent, this.show);
|
|
4046
|
+
currentTarget.addEventListener(hideEvent, this.hide);
|
|
3967
4047
|
}
|
|
3968
4048
|
}
|
|
3969
4049
|
}, {
|
|
@@ -3974,8 +4054,9 @@ this.primereact.tooltip = (function (exports, React, ReactDOM, utils, portal, Pr
|
|
|
3974
4054
|
showEvent = _this$getEvents2.showEvent,
|
|
3975
4055
|
hideEvent = _this$getEvents2.hideEvent;
|
|
3976
4056
|
|
|
3977
|
-
|
|
3978
|
-
|
|
4057
|
+
var currentTarget = this.getTarget(target);
|
|
4058
|
+
currentTarget.removeEventListener(showEvent, this.show);
|
|
4059
|
+
currentTarget.removeEventListener(hideEvent, this.hide);
|
|
3979
4060
|
}
|
|
3980
4061
|
}
|
|
3981
4062
|
}, {
|
|
@@ -4010,6 +4091,22 @@ this.primereact.tooltip = (function (exports, React, ReactDOM, utils, portal, Pr
|
|
|
4010
4091
|
clearTimeout(this.updateDelayTimeout);
|
|
4011
4092
|
clearTimeout(this.hideDelayTimeout);
|
|
4012
4093
|
}
|
|
4094
|
+
}, {
|
|
4095
|
+
key: "getTarget",
|
|
4096
|
+
value: function getTarget(target) {
|
|
4097
|
+
if (target) {
|
|
4098
|
+
if (this.isShowOnDisabled(target)) {
|
|
4099
|
+
var wrapper = document.createElement('span');
|
|
4100
|
+
target.parentNode.insertBefore(wrapper, target);
|
|
4101
|
+
wrapper.appendChild(target);
|
|
4102
|
+
return wrapper;
|
|
4103
|
+
}
|
|
4104
|
+
|
|
4105
|
+
return target;
|
|
4106
|
+
}
|
|
4107
|
+
|
|
4108
|
+
return null;
|
|
4109
|
+
}
|
|
4013
4110
|
}, {
|
|
4014
4111
|
key: "updateTargetEvents",
|
|
4015
4112
|
value: function updateTargetEvents(target) {
|
|
@@ -4166,6 +4263,7 @@ this.primereact.tooltip = (function (exports, React, ReactDOM, utils, portal, Pr
|
|
|
4166
4263
|
updateDelay: 0,
|
|
4167
4264
|
hideDelay: 0,
|
|
4168
4265
|
autoHide: true,
|
|
4266
|
+
showOnDisabled: false,
|
|
4169
4267
|
onBeforeShow: null,
|
|
4170
4268
|
onBeforeHide: null,
|
|
4171
4269
|
onShow: null,
|
|
@@ -4757,7 +4855,7 @@ this.primereact.virtualscroller = (function (exports, React, utils) {
|
|
|
4757
4855
|
};
|
|
4758
4856
|
|
|
4759
4857
|
var calculateFirst = function calculateFirst(_currentIndex, _triggerIndex, _first, _last, _num, _numT, _isScrollDownOrRight) {
|
|
4760
|
-
if (_currentIndex <= _numT) return 0;else return _isScrollDownOrRight ? _currentIndex < _triggerIndex ? _first : _currentIndex - _numT : _currentIndex > _triggerIndex ? _first : _currentIndex - 2 * _numT;
|
|
4858
|
+
if (_currentIndex <= _numT) return 0;else return Math.max(0, _isScrollDownOrRight ? _currentIndex < _triggerIndex ? _first : _currentIndex - _numT : _currentIndex > _triggerIndex ? _first : _currentIndex - 2 * _numT);
|
|
4761
4859
|
};
|
|
4762
4860
|
|
|
4763
4861
|
var calculateLast = function calculateLast(_currentIndex, _first, _last, _num, _numT, _isCols) {
|
|
@@ -4929,6 +5027,16 @@ this.primereact.virtualscroller = (function (exports, React, utils) {
|
|
|
4929
5027
|
|
|
4930
5028
|
return [];
|
|
4931
5029
|
}
|
|
5030
|
+
}, {
|
|
5031
|
+
key: "isPropChanged",
|
|
5032
|
+
value: function isPropChanged(prevProps) {
|
|
5033
|
+
var _this12 = this;
|
|
5034
|
+
|
|
5035
|
+
var props = ['itemSize', 'scrollHeight'];
|
|
5036
|
+
return props.some(function (p) {
|
|
5037
|
+
return !utils.ObjectUtils.equals(prevProps[p], _this12.props[p]);
|
|
5038
|
+
});
|
|
5039
|
+
}
|
|
4932
5040
|
}, {
|
|
4933
5041
|
key: "init",
|
|
4934
5042
|
value: function init() {
|
|
@@ -4944,7 +5052,7 @@ this.primereact.virtualscroller = (function (exports, React, utils) {
|
|
|
4944
5052
|
}, {
|
|
4945
5053
|
key: "componentDidUpdate",
|
|
4946
5054
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
4947
|
-
if (!
|
|
5055
|
+
if (!prevProps.items || prevProps.items.length !== (this.props.items || []).length || this.isPropChanged(prevProps)) {
|
|
4948
5056
|
this.init();
|
|
4949
5057
|
}
|
|
4950
5058
|
|
|
@@ -4974,7 +5082,7 @@ this.primereact.virtualscroller = (function (exports, React, utils) {
|
|
|
4974
5082
|
}, {
|
|
4975
5083
|
key: "renderLoader",
|
|
4976
5084
|
value: function renderLoader() {
|
|
4977
|
-
var
|
|
5085
|
+
var _this13 = this;
|
|
4978
5086
|
|
|
4979
5087
|
if (!this.props.loaderDisabled && this.props.showLoader && this.state.loading) {
|
|
4980
5088
|
var className = utils.classNames('p-virtualscroller-loader', {
|
|
@@ -4988,7 +5096,7 @@ this.primereact.virtualscroller = (function (exports, React, utils) {
|
|
|
4988
5096
|
var isBoth = this.isBoth();
|
|
4989
5097
|
var numItemsInViewport = this.state.numItemsInViewport;
|
|
4990
5098
|
content = this.state.loaderArr.map(function (_, index) {
|
|
4991
|
-
return
|
|
5099
|
+
return _this13.renderLoaderItem(index, isBoth && {
|
|
4992
5100
|
numCols: numItemsInViewport.cols
|
|
4993
5101
|
});
|
|
4994
5102
|
});
|
|
@@ -5004,12 +5112,12 @@ this.primereact.virtualscroller = (function (exports, React, utils) {
|
|
|
5004
5112
|
}, {
|
|
5005
5113
|
key: "renderSpacer",
|
|
5006
5114
|
value: function renderSpacer() {
|
|
5007
|
-
var
|
|
5115
|
+
var _this14 = this;
|
|
5008
5116
|
|
|
5009
5117
|
if (this.props.showSpacer) {
|
|
5010
5118
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5011
5119
|
ref: function ref(el) {
|
|
5012
|
-
return
|
|
5120
|
+
return _this14.spacer = el;
|
|
5013
5121
|
},
|
|
5014
5122
|
className: "p-virtualscroller-spacer"
|
|
5015
5123
|
});
|
|
@@ -5029,16 +5137,16 @@ this.primereact.virtualscroller = (function (exports, React, utils) {
|
|
|
5029
5137
|
}, {
|
|
5030
5138
|
key: "renderItems",
|
|
5031
5139
|
value: function renderItems(loadedItems) {
|
|
5032
|
-
var
|
|
5140
|
+
var _this15 = this;
|
|
5033
5141
|
|
|
5034
5142
|
return loadedItems.map(function (item, index) {
|
|
5035
|
-
return
|
|
5143
|
+
return _this15.renderItem(item, index);
|
|
5036
5144
|
});
|
|
5037
5145
|
}
|
|
5038
5146
|
}, {
|
|
5039
5147
|
key: "renderContent",
|
|
5040
5148
|
value: function renderContent() {
|
|
5041
|
-
var
|
|
5149
|
+
var _this16 = this;
|
|
5042
5150
|
|
|
5043
5151
|
var loadedItems = this.loadedItems();
|
|
5044
5152
|
var items = this.renderItems(loadedItems);
|
|
@@ -5048,7 +5156,7 @@ this.primereact.virtualscroller = (function (exports, React, utils) {
|
|
|
5048
5156
|
var content = /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5049
5157
|
className: className,
|
|
5050
5158
|
ref: function ref(el) {
|
|
5051
|
-
return
|
|
5159
|
+
return _this16.content = el;
|
|
5052
5160
|
}
|
|
5053
5161
|
}, items);
|
|
5054
5162
|
|
|
@@ -5056,24 +5164,24 @@ this.primereact.virtualscroller = (function (exports, React, utils) {
|
|
|
5056
5164
|
var defaultOptions = {
|
|
5057
5165
|
className: className,
|
|
5058
5166
|
contentRef: function contentRef(el) {
|
|
5059
|
-
return
|
|
5167
|
+
return _this16.content = el;
|
|
5060
5168
|
},
|
|
5061
5169
|
spacerRef: function spacerRef(el) {
|
|
5062
|
-
return
|
|
5170
|
+
return _this16.spacer = el;
|
|
5063
5171
|
},
|
|
5064
5172
|
stickyRef: function stickyRef(el) {
|
|
5065
|
-
return
|
|
5173
|
+
return _this16.sticky = el;
|
|
5066
5174
|
},
|
|
5067
5175
|
items: loadedItems,
|
|
5068
5176
|
getItemOptions: function getItemOptions(index) {
|
|
5069
|
-
return
|
|
5177
|
+
return _this16.getOptions(index);
|
|
5070
5178
|
},
|
|
5071
5179
|
children: items,
|
|
5072
5180
|
element: content,
|
|
5073
5181
|
props: this.props,
|
|
5074
5182
|
loading: this.state.loading,
|
|
5075
5183
|
getLoaderOptions: function getLoaderOptions(index, ext) {
|
|
5076
|
-
return
|
|
5184
|
+
return _this16.loaderOptions(index, ext);
|
|
5077
5185
|
},
|
|
5078
5186
|
loadingTemplate: this.props.loadingTemplate,
|
|
5079
5187
|
itemSize: this.props.itemSize,
|
|
@@ -5091,7 +5199,7 @@ this.primereact.virtualscroller = (function (exports, React, utils) {
|
|
|
5091
5199
|
}, {
|
|
5092
5200
|
key: "render",
|
|
5093
5201
|
value: function render() {
|
|
5094
|
-
var
|
|
5202
|
+
var _this17 = this;
|
|
5095
5203
|
|
|
5096
5204
|
if (this.props.disabled) {
|
|
5097
5205
|
var content = utils.ObjectUtils.getJSXElement(this.props.contentTemplate, {
|
|
@@ -5114,7 +5222,7 @@ this.primereact.virtualscroller = (function (exports, React, utils) {
|
|
|
5114
5222
|
var spacer = this.renderSpacer();
|
|
5115
5223
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5116
5224
|
ref: function ref(el) {
|
|
5117
|
-
return
|
|
5225
|
+
return _this17.el = el;
|
|
5118
5226
|
},
|
|
5119
5227
|
className: className,
|
|
5120
5228
|
tabIndex: 0,
|
|
@@ -6995,11 +7103,16 @@ this.primereact.inputnumber = (function (exports, React, inputtext, utils, toolt
|
|
|
6995
7103
|
|
|
6996
7104
|
if (valueStr != null) {
|
|
6997
7105
|
newValue = this.parseValue(valueStr);
|
|
6998
|
-
newValue =
|
|
7106
|
+
newValue = this.evaluateEmpty(newValue);
|
|
6999
7107
|
this.updateInput(newValue, insertedValueStr, operation, valueStr);
|
|
7000
7108
|
this.handleOnChange(event, currentValue, newValue);
|
|
7001
7109
|
}
|
|
7002
7110
|
}
|
|
7111
|
+
}, {
|
|
7112
|
+
key: "evaluateEmpty",
|
|
7113
|
+
value: function evaluateEmpty(newValue) {
|
|
7114
|
+
return !newValue && !this.props.allowEmpty ? this.props.min || 0 : newValue;
|
|
7115
|
+
}
|
|
7003
7116
|
}, {
|
|
7004
7117
|
key: "handleOnChange",
|
|
7005
7118
|
value: function handleOnChange(event, currentValue, newValue) {
|
|
@@ -7113,7 +7226,7 @@ this.primereact.inputnumber = (function (exports, React, inputtext, utils, toolt
|
|
|
7113
7226
|
}, {
|
|
7114
7227
|
key: "updateInputValue",
|
|
7115
7228
|
value: function updateInputValue(newValue) {
|
|
7116
|
-
newValue =
|
|
7229
|
+
newValue = this.evaluateEmpty(newValue);
|
|
7117
7230
|
var inputEl = this.inputRef.current;
|
|
7118
7231
|
var value = inputEl.value;
|
|
7119
7232
|
var formattedValue = this.formattedValue(newValue);
|
|
@@ -7126,8 +7239,8 @@ this.primereact.inputnumber = (function (exports, React, inputtext, utils, toolt
|
|
|
7126
7239
|
}, {
|
|
7127
7240
|
key: "formattedValue",
|
|
7128
7241
|
value: function formattedValue(val) {
|
|
7129
|
-
var
|
|
7130
|
-
return this.formatValue(
|
|
7242
|
+
var newValue = this.evaluateEmpty(val);
|
|
7243
|
+
return this.formatValue(newValue);
|
|
7131
7244
|
}
|
|
7132
7245
|
}, {
|
|
7133
7246
|
key: "concatValues",
|
|
@@ -7335,7 +7448,7 @@ this.primereact.inputnumber = (function (exports, React, inputtext, utils, toolt
|
|
|
7335
7448
|
size: this.props.size,
|
|
7336
7449
|
tabIndex: this.props.tabIndex,
|
|
7337
7450
|
inputMode: this.getInputMode(),
|
|
7338
|
-
maxLength: this.props.
|
|
7451
|
+
maxLength: this.props.maxLength,
|
|
7339
7452
|
disabled: this.props.disabled,
|
|
7340
7453
|
required: this.props.required,
|
|
7341
7454
|
pattern: this.props.pattern,
|
|
@@ -9189,10 +9302,10 @@ this.primereact.dropdown = (function (exports, React, utils, ripple, csstransiti
|
|
|
9189
9302
|
}, {
|
|
9190
9303
|
key: "onOverlayEntered",
|
|
9191
9304
|
value: function onOverlayEntered(callback) {
|
|
9305
|
+
callback && callback();
|
|
9192
9306
|
this.bindDocumentClickListener();
|
|
9193
9307
|
this.bindScrollListener();
|
|
9194
9308
|
this.bindResizeListener();
|
|
9195
|
-
callback && callback();
|
|
9196
9309
|
this.props.onShow && this.props.onShow();
|
|
9197
9310
|
}
|
|
9198
9311
|
}, {
|
|
@@ -9361,7 +9474,11 @@ this.primereact.dropdown = (function (exports, React, utils, ripple, csstransiti
|
|
|
9361
9474
|
}, {
|
|
9362
9475
|
key: "checkValidity",
|
|
9363
9476
|
value: function checkValidity() {
|
|
9364
|
-
|
|
9477
|
+
if (this.inputRef.current) {
|
|
9478
|
+
return this.inputRef.current.checkValidity();
|
|
9479
|
+
}
|
|
9480
|
+
|
|
9481
|
+
return false;
|
|
9365
9482
|
}
|
|
9366
9483
|
}, {
|
|
9367
9484
|
key: "isLazy",
|
|
@@ -9443,7 +9560,10 @@ this.primereact.dropdown = (function (exports, React, utils, ripple, csstransiti
|
|
|
9443
9560
|
}
|
|
9444
9561
|
|
|
9445
9562
|
this.updateInputField();
|
|
9446
|
-
|
|
9563
|
+
|
|
9564
|
+
if (this.inputRef.current) {
|
|
9565
|
+
this.inputRef.current.selectedIndex = 1;
|
|
9566
|
+
}
|
|
9447
9567
|
}
|
|
9448
9568
|
}, {
|
|
9449
9569
|
key: "componentWillUnmount",
|
|
@@ -9494,7 +9614,10 @@ this.primereact.dropdown = (function (exports, React, utils, ripple, csstransiti
|
|
|
9494
9614
|
}
|
|
9495
9615
|
|
|
9496
9616
|
this.updateInputField();
|
|
9497
|
-
|
|
9617
|
+
|
|
9618
|
+
if (this.inputRef.current) {
|
|
9619
|
+
this.inputRef.current.selectedIndex = 1;
|
|
9620
|
+
}
|
|
9498
9621
|
}
|
|
9499
9622
|
}, {
|
|
9500
9623
|
key: "renderHiddenSelect",
|
|
@@ -10330,8 +10453,7 @@ this.primereact.dialog = (function (exports, React, utils, csstransition, ripple
|
|
|
10330
10453
|
key: "createStyle",
|
|
10331
10454
|
value: function createStyle() {
|
|
10332
10455
|
if (!this.styleElement) {
|
|
10333
|
-
this.styleElement =
|
|
10334
|
-
document.head.appendChild(this.styleElement);
|
|
10456
|
+
this.styleElement = utils.DomHandler.createInlineStyle();
|
|
10335
10457
|
var innerHTML = '';
|
|
10336
10458
|
|
|
10337
10459
|
for (var breakpoint in this.props.breakpoints) {
|
|
@@ -10399,12 +10521,7 @@ this.primereact.dialog = (function (exports, React, utils, csstransition, ripple
|
|
|
10399
10521
|
key: "componentWillUnmount",
|
|
10400
10522
|
value: function componentWillUnmount() {
|
|
10401
10523
|
this.disableDocumentSettings();
|
|
10402
|
-
|
|
10403
|
-
if (this.styleElement) {
|
|
10404
|
-
document.head.removeChild(this.styleElement);
|
|
10405
|
-
this.styleElement = null;
|
|
10406
|
-
}
|
|
10407
|
-
|
|
10524
|
+
this.styleElement = utils.DomHandler.removeInlineStyle(this.styleElement);
|
|
10408
10525
|
utils.ZIndexUtils.clear(this.mask);
|
|
10409
10526
|
}
|
|
10410
10527
|
}, {
|