react-dialogger 1.1.24 → 1.1.26

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
  //
@@ -3,6 +3,7 @@ import { DialogAction } from "./DialogAction";
3
3
  import DialogBase from "../components/DialogBase";
4
4
  import { TInitialHolder, TAccessFrom, ComponentOrderPositions, ISnackbarAnchor, DialogValues } from "../types/types";
5
5
  import { IDialogSize, TDialogStateListenerCallbackType, DialogOptionsType, IDialogDef, TDialogCallbackNodeFn, TDialogCallbackVoidFn } from "../types/DialogTypes";
6
+ import { FormikProps } from "formik";
6
7
  declare class Dialog extends DialogBase {
7
8
  constructor(dialogRef?: React.RefObject<IDialogDef | undefined | null> | null, options?: DialogOptionsType);
8
9
  /**
@@ -13,6 +14,7 @@ declare class Dialog extends DialogBase {
13
14
  get accessFrom(): TAccessFrom;
14
15
  setHeader(header: TDialogCallbackNodeFn): this;
15
16
  setBody(body: TDialogCallbackNodeFn): this;
17
+ setFormik(formik: FormikProps<any>): this;
16
18
  addActions(actions: Array<DialogAction>): this;
17
19
  addAction(action: DialogAction): this;
18
20
  /**
package/models/Dialog.js CHANGED
@@ -98,6 +98,10 @@ var Dialog = /** @class */ (function (_super) {
98
98
  _super.prototype.setBody.call(this, body);
99
99
  return this;
100
100
  };
101
+ Dialog.prototype.setFormik = function (formik) {
102
+ this.formikProps = formik;
103
+ return this;
104
+ };
101
105
  Dialog.prototype.addActions = function (actions) {
102
106
  _super.prototype.addActions.call(this, actions); // overrided
103
107
  return this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dialogger",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
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",