react-dialogger 1.1.28 → 1.1.30
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.
|
@@ -133,6 +133,7 @@ declare class DialogBase extends Component<BaseDialogProps, BaseDialogState> {
|
|
|
133
133
|
private Footer;
|
|
134
134
|
private Actions;
|
|
135
135
|
private Content;
|
|
136
|
+
private highestZ;
|
|
136
137
|
protected show(callback?: TDialogCallbackVoidFn): void;
|
|
137
138
|
render: () => import("react/jsx-runtime").JSX.Element;
|
|
138
139
|
}
|
package/components/DialogBase.js
CHANGED
|
@@ -233,11 +233,10 @@ var DialogBase = /** @class */ (function (_super) {
|
|
|
233
233
|
return _this;
|
|
234
234
|
};
|
|
235
235
|
_this.isInProcess = function () {
|
|
236
|
-
var _a, _b, _c;
|
|
237
236
|
// return this.state.inProcess;
|
|
238
|
-
|
|
237
|
+
return _this._inProcess;
|
|
239
238
|
// @ts-ignore
|
|
240
|
-
return
|
|
239
|
+
// return this._footeRef?.current?.inProcess ?? false;
|
|
241
240
|
};
|
|
242
241
|
_this.close = function (callbackFn) {
|
|
243
242
|
var _a;
|
|
@@ -579,6 +578,17 @@ var DialogBase = /** @class */ (function (_super) {
|
|
|
579
578
|
zIndex: parseInt(domZIndex) + 1
|
|
580
579
|
}, onMouseDown: (_c = _this._Resizeable) === null || _c === void 0 ? void 0 : _c.resizeHandleMouseDown, children: (0, jsx_runtime_1.jsx)(ResizeIcon_1.default, { color: '#286e94' }) }) })] }) });
|
|
581
580
|
};
|
|
581
|
+
_this.highestZ = function () {
|
|
582
|
+
var presentationElements = document.querySelectorAll('div[role="presentation"]');
|
|
583
|
+
var highest = 0;
|
|
584
|
+
presentationElements.forEach(function (element) {
|
|
585
|
+
var z = parseInt(window.getComputedStyle(element).zIndex, 10);
|
|
586
|
+
if (!isNaN(z) && z > highest) {
|
|
587
|
+
highest = z;
|
|
588
|
+
}
|
|
589
|
+
});
|
|
590
|
+
return highest + 1;
|
|
591
|
+
};
|
|
582
592
|
// render = () => {
|
|
583
593
|
//
|
|
584
594
|
// return this.withBackdrop(this._body, this._header, this._actions)
|
|
@@ -979,6 +989,7 @@ var DialogBase = /** @class */ (function (_super) {
|
|
|
979
989
|
this._dom = document.createElement('div');
|
|
980
990
|
this._dom.setAttribute('role', 'presentation');
|
|
981
991
|
this._dom.classList.add('appinsource-dialog-root');
|
|
992
|
+
this._dom.style.setProperty('zIndex', String(this.highestZ()));
|
|
982
993
|
// Find root element
|
|
983
994
|
var rootElement = document.getElementById('root');
|
|
984
995
|
// const AppElement = rootElement.firstElementChild;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dialogger",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.30",
|
|
4
4
|
"description": "This package is a continuation of the react-araci package. Due to an error, react-araci was removed, and it has been decided to continue under the new package name react-dialogger",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Sueleyman Topaloglu",
|