react-dialogger 1.1.96 → 1.1.97

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.
@@ -161,11 +161,11 @@ var DialogBase = /** @class */ (function (_super) {
161
161
  }, 50);
162
162
  };
163
163
  setTimeout(function () {
164
- var _a, _b, _c, _d;
165
- if (_this._footerRef.current.inProcess && !_this.state.aborted) {
166
- var notify = (_a = _this._dialogOptions.base.notifyOnClosing) !== null && _a !== void 0 ? _a : "snackbar";
164
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
165
+ if (((_b = (_a = _this._footerRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.inProcess) && !_this.state.aborted) {
166
+ var notify = (_e = (_d = (_c = _this._dialogOptions) === null || _c === void 0 ? void 0 : _c.base) === null || _d === void 0 ? void 0 : _d.notifyOnClosing) !== null && _e !== void 0 ? _e : "snackbar";
167
167
  if (notify === "snackbar") {
168
- var busyMessage = (_d = (_c = (_b = _this._dialogOptions) === null || _b === void 0 ? void 0 : _b.localText) === null || _c === void 0 ? void 0 : _c.busyMessage) !== null && _d !== void 0 ? _d : 'In Process, Please wait...';
168
+ var busyMessage = (_h = (_g = (_f = _this._dialogOptions) === null || _f === void 0 ? void 0 : _f.localText) === null || _g === void 0 ? void 0 : _g.busyMessage) !== null && _h !== void 0 ? _h : 'In Process, Please wait...';
169
169
  _this.snackbar.open(busyMessage, "warning", null, function (key, snackbarRef) {
170
170
  var _a, _b, _c;
171
171
  return (0, jsx_runtime_1.jsx)(_components_1.DialogActionBase, { name: 'force_close', onClick: handleAbort, options: {
@@ -176,19 +176,20 @@ var DialogBase = /** @class */ (function (_super) {
176
176
  });
177
177
  }
178
178
  else {
179
- _this._dialogWithBackDropRef.current.baseZoomEffect();
179
+ (_k = (_j = _this._dialogWithBackDropRef) === null || _j === void 0 ? void 0 : _j.current) === null || _k === void 0 ? void 0 : _k.baseZoomEffect();
180
180
  }
181
181
  return;
182
182
  }
183
183
  _this.kill(callbackFn);
184
- if (typeof _this.props.onClose === "function") {
184
+ if (typeof ((_l = _this.props) === null || _l === void 0 ? void 0 : _l.onClose) === "function") {
185
185
  _this.props.onClose(_this);
186
186
  }
187
187
  }, 150);
188
188
  };
189
189
  _this.focus = function () {
190
- if (_this._dialogRef.current) {
191
- _this._dialogRef.current.focus();
190
+ var _a, _b, _c;
191
+ if ((_a = _this._dialogRef) === null || _a === void 0 ? void 0 : _a.current) {
192
+ (_c = (_b = _this._dialogRef) === null || _b === void 0 ? void 0 : _b.current) === null || _c === void 0 ? void 0 : _c.focus();
192
193
  }
193
194
  };
194
195
  _this.getDom = function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dialogger",
3
- "version": "1.1.96",
3
+ "version": "1.1.97",
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",