react-dialogger 1.1.90 → 1.1.92

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.
@@ -166,11 +166,14 @@ var DialogBase = /** @class */ (function (_super) {
166
166
  var notify = (_a = _this._dialogOptions.base.notifyOnClosing) !== null && _a !== void 0 ? _a : "snackbar";
167
167
  if (notify === "snackbar") {
168
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...';
169
- _this.snackbar.open(busyMessage, "warning", null, function (key, snackbarRef) { return (0, jsx_runtime_1.jsx)(_components_1.DialogActionBase, { name: 'force_close', onClick: handleAbort, options: {
170
- label: 'Abort',
171
- variant: 'text',
172
- color: '#361540'
173
- } }); });
169
+ _this.snackbar.open(busyMessage, "warning", null, function (key, snackbarRef) {
170
+ var _a, _b, _c;
171
+ return (0, jsx_runtime_1.jsx)(_components_1.DialogActionBase, { name: 'force_close', onClick: handleAbort, options: {
172
+ label: (_c = (_b = (_a = _this._dialogOptions) === null || _a === void 0 ? void 0 : _a.localText) === null || _b === void 0 ? void 0 : _b.abort) !== null && _c !== void 0 ? _c : 'Abort',
173
+ variant: 'text',
174
+ color: '#361540'
175
+ } });
176
+ });
174
177
  }
175
178
  else {
176
179
  _this._dialogWithBackDropRef.current.baseZoomEffect();
package/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import './styles/dialog.scss';
2
2
  import './styles/dialog.action.scss';
3
3
  import './styles/circular-progress.scss';
4
+ import './styles/snackbar.scss';
4
5
  export { default } from "./models/Dialog";
5
6
  export { DialogProcessing, DialogCloseAction, DialogFullscreenAction, DialogHeaderActionsWrapper, DialogInfoAction } from "./features";
6
7
  export { DialogAction, ActionProgress, baseDialogOptions } from "./models";
package/index.js CHANGED
@@ -7,6 +7,7 @@ exports.InitDialogMemoizeBounds = exports.baseDialogOptions = exports.ActionProg
7
7
  require("./styles/dialog.css");
8
8
  require("./styles/dialog.action.css");
9
9
  require("./styles/circular-progress.css");
10
+ require("./styles/snackbar.css");
10
11
  // Models
11
12
  var Dialog_1 = require("./models/Dialog");
12
13
  Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Dialog_1).default; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dialogger",
3
- "version": "1.1.90",
3
+ "version": "1.1.92",
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",
@@ -0,0 +1,6 @@
1
+ div[role=alert][aria-describedby=notistack-snackbar] {
2
+ width: max-content;
3
+ }
4
+ div[role=alert][aria-describedby=notistack-snackbar] > div:nth-of-type(2) {
5
+ margin-left: auto !important;
6
+ }
@@ -6,10 +6,10 @@ var resizeManager = function (dialogRef, dialog) {
6
6
  var _a;
7
7
  dialogRef.current ? dialogRef.current.tabIndex = 0 : undefined; // Odaklanabilir hale getirir
8
8
  (_a = dialogRef.current) === null || _a === void 0 ? void 0 : _a.focus();
9
- if (!(dialog === null || dialog === void 0 ? void 0 : dialog.props.initialOptions.base.resizeable))
9
+ if (!(dialog === null || dialog === void 0 ? void 0 : dialog.dialogOptions.base.resizeable))
10
10
  return;
11
11
  var rs = new _helpers_1.Resizeable();
12
- rs.setContainer(dialogRef, dialog.props.initialOptions);
12
+ rs.setContainer(dialogRef, dialog.dialogOptions);
13
13
  rs.onResizeListener(function (width, height, rect) {
14
14
  var _a;
15
15
  if (typeof ((_a = dialog.props) === null || _a === void 0 ? void 0 : _a.resizeListener) === "function") {