react-dialogger 1.1.23 → 1.1.25

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.
@@ -530,6 +530,8 @@ var DialogBase = /** @class */ (function (_super) {
530
530
  * eget momoize islemi uygulanmissa read from memory
531
531
  * */
532
532
  var bounds = _this._storedBounds;
533
+ // console.log('MAIN DOM', window.getComputedStyle(this.props.dom).zIndex);
534
+ var domZIndex = window.getComputedStyle(_this.props.dom).zIndex;
533
535
  return (0, jsx_runtime_1.jsx)(react_draggable_1.default, { disabled: !_this._draggable || _this.state.fullscreenMode, axis: 'both', handle: _this._draggable ? '.drag-handle' : '', scale: 1, ref: _this._backdropRef, onDrag: function (event, data) {
534
536
  event.stopPropagation();
535
537
  _this._dialogTranslate = { lastX: data.lastX, lastY: data.lastY };
@@ -555,7 +557,9 @@ var DialogBase = /** @class */ (function (_super) {
555
557
  },
556
558
  // className={this._dialogSize.width === 'auto' ? 'auto' : `dialog-width-${this._dialogSize.width} dialog-main show-opacity show-position-${this._dialogOptions.base.initialAnchor.vertical}`}
557
559
  className: _this._dialogOptions.base.size.width === 'auto' ? 'auto' : "dialog-width-".concat(_this._dialogOptions.base.size.width, " dialog-main show-opacity show-position-").concat(_this._dialogOptions.base.initialAnchor.vertical), style: __assign(__assign(__assign(__assign(__assign({ alignSelf: _this._dialogOptions.base.initialAnchor.vertical, height: (_b = _this._dialogOptions.base.size.height) !== null && _b !== void 0 ? _b : 'auto' }, typeof _this._dialogOptions.base.size.width === "number" ? { width: _this._dialogOptions.base.size.width } : null), (_a = { outline: 'none' }, _a[yKey] = _this.dialogPosFromMultipleDialogs.top + 'px', _a[xKey] = _this.dialogPosFromMultipleDialogs.left + 'px', _a)), _this._dialogOptions.base.style), { fontFamily: _this._fontFamily }), bounds ? { position: 'absolute', top: bounds.y, left: bounds.x, width: bounds.width, height: bounds.height } : null), children: [(0, jsx_runtime_1.jsxs)(WithSnackbar, { snackbarRef: _this._snackbarRef, maxSnack: _this._dialogOptions.snackbar.maxSnack, children: [(_this._header || _this._dialogOptions.slot.header) && _this.Header(header), _this.Body(body), (0, jsx_runtime_1.jsx)(_this.Footer, { ref: _this._footeRef, actions: actions })] }), (_this._dialogOptions.base.resizeable) &&
558
- (0, jsx_runtime_1.jsx)(React.Fragment, { children: (0, jsx_runtime_1.jsx)("div", { className: "resizable-handle", onMouseDown: (_c = _this._Resizeable) === null || _c === void 0 ? void 0 : _c.resizeHandleMouseDown, children: (0, jsx_runtime_1.jsx)(ResizeIcon_1.default, { color: '#286e94' }) }) })] }) });
560
+ (0, jsx_runtime_1.jsx)(React.Fragment, { children: (0, jsx_runtime_1.jsx)("div", { className: "resizable-handle", style: {
561
+ zIndex: parseInt(domZIndex) + 1
562
+ }, onMouseDown: (_c = _this._Resizeable) === null || _c === void 0 ? void 0 : _c.resizeHandleMouseDown, children: (0, jsx_runtime_1.jsx)(ResizeIcon_1.default, { color: '#286e94' }) }) })] }) });
559
563
  };
560
564
  // render = () => {
561
565
  //
@@ -949,10 +953,10 @@ var DialogBase = /** @class */ (function (_super) {
949
953
  this._dom.classList.add('appinsource-dialog-root');
950
954
  // Find root element
951
955
  var rootElement = document.getElementById('root');
952
- var AppElement = rootElement.firstElementChild;
956
+ // const AppElement = rootElement.firstElementChild;
953
957
  if (rootElement) {
954
- // rootElement.appendChild(this._dom);
955
- AppElement.prepend(this._dom);
958
+ rootElement.appendChild(this._dom);
959
+ // AppElement.prepend(this._dom);
956
960
  }
957
961
  else {
958
962
  document.body.appendChild(this._dom);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dialogger",
3
- "version": "1.1.23",
3
+ "version": "1.1.25",
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",