react-dialogger 1.1.95 → 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.
- package/components/DialogBase.js +9 -8
- package/components/DialogContentHeader.js +1 -1
- package/features/DialogActionsWrapper.d.ts +7 -0
- package/features/{DialogHeaderActionsWrapper.js → DialogActionsWrapper.js} +4 -4
- package/features/index.d.ts +1 -1
- package/features/index.js +3 -3
- package/index.d.ts +1 -1
- package/index.js +2 -2
- package/package.json +1 -1
- package/styles/dialog.css +7 -6
- package/features/DialogHeaderActionsWrapper.d.ts +0 -7
package/components/DialogBase.js
CHANGED
|
@@ -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 = (
|
|
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 = (
|
|
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
|
-
|
|
191
|
-
|
|
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 () {
|
|
@@ -103,7 +103,7 @@ var DialogContentHeader = function (_a) {
|
|
|
103
103
|
event.preventDefault();
|
|
104
104
|
}
|
|
105
105
|
}, style: (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.header) === null || _d === void 0 ? void 0 : _d.style, className: "dialog-header ".concat(baseOptions.draggable && !fullscreen ? 'drag-handle' : ''), children: [header(dialog), (baseOptions.closeable || baseOptions.fullscreen) &&
|
|
106
|
-
(0, jsx_runtime_1.jsx)(_context_1.WithHeaderFooterContext, { dialog: dialog, fullscreen: fullscreen, setFullscreen: setFullscreen, children: (0, jsx_runtime_1.jsxs)(_features_1.
|
|
106
|
+
(0, jsx_runtime_1.jsx)(_context_1.WithHeaderFooterContext, { dialog: dialog, fullscreen: fullscreen, setFullscreen: setFullscreen, children: (0, jsx_runtime_1.jsxs)(_features_1.DialogActionsWrapper, { children: [baseOptions.fullscreen &&
|
|
107
107
|
(0, jsx_runtime_1.jsx)(_features_1.DialogFullscreenAction, {}), baseOptions.closeable &&
|
|
108
108
|
(0, jsx_runtime_1.jsx)(_features_1.DialogCloseAction, {}), baseOptions.about &&
|
|
109
109
|
(0, jsx_runtime_1.jsx)(_features_1.DialogInfoAction, {})] }) })] });
|
|
@@ -11,10 +11,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
14
|
+
exports.DialogActionsWrapper = void 0;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var
|
|
16
|
+
var DialogActionsWrapper = function (props) {
|
|
17
17
|
var _a;
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)("div", __assign({}, props, { className: '
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({}, props, { className: 'actions-wrapper', style: { columnGap: "".concat((_a = props.gap) !== null && _a !== void 0 ? _a : 10, "px") }, children: props.children })));
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
20
|
+
exports.DialogActionsWrapper = DialogActionsWrapper;
|
package/features/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { DialogCloseAction } from "./DialogCloseAction";
|
|
|
2
2
|
export { DialogInfoAction } from "./DialogInfoAction";
|
|
3
3
|
export { DialogProcessing } from "./DialogProcessing";
|
|
4
4
|
export { DialogFullscreenAction } from "./DialogFullscreenAction";
|
|
5
|
-
export {
|
|
5
|
+
export { DialogActionsWrapper } from "./DialogActionsWrapper";
|
package/features/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DialogActionsWrapper = exports.DialogFullscreenAction = exports.DialogProcessing = exports.DialogInfoAction = exports.DialogCloseAction = void 0;
|
|
4
4
|
var DialogCloseAction_1 = require("./DialogCloseAction");
|
|
5
5
|
Object.defineProperty(exports, "DialogCloseAction", { enumerable: true, get: function () { return DialogCloseAction_1.DialogCloseAction; } });
|
|
6
6
|
var DialogInfoAction_1 = require("./DialogInfoAction");
|
|
@@ -9,5 +9,5 @@ var DialogProcessing_1 = require("./DialogProcessing");
|
|
|
9
9
|
Object.defineProperty(exports, "DialogProcessing", { enumerable: true, get: function () { return DialogProcessing_1.DialogProcessing; } });
|
|
10
10
|
var DialogFullscreenAction_1 = require("./DialogFullscreenAction");
|
|
11
11
|
Object.defineProperty(exports, "DialogFullscreenAction", { enumerable: true, get: function () { return DialogFullscreenAction_1.DialogFullscreenAction; } });
|
|
12
|
-
var
|
|
13
|
-
Object.defineProperty(exports, "
|
|
12
|
+
var DialogActionsWrapper_1 = require("./DialogActionsWrapper");
|
|
13
|
+
Object.defineProperty(exports, "DialogActionsWrapper", { enumerable: true, get: function () { return DialogActionsWrapper_1.DialogActionsWrapper; } });
|
package/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import './styles/dialog.action.scss';
|
|
|
3
3
|
import './styles/circular-progress.scss';
|
|
4
4
|
import './styles/snackbar.scss';
|
|
5
5
|
export { default } from "./models/Dialog";
|
|
6
|
-
export { DialogProcessing, DialogCloseAction, DialogFullscreenAction,
|
|
6
|
+
export { DialogProcessing, DialogCloseAction, DialogFullscreenAction, DialogActionsWrapper, DialogInfoAction } from "./features";
|
|
7
7
|
export { DialogAction, ActionProgress, baseDialogOptions } from "./models";
|
|
8
8
|
export { InitDialogMemoizeBounds } from "./helpers";
|
|
9
9
|
export { IDialogApiDef, ActionApiDef } from './types';
|
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.InitDialogMemoizeBounds = exports.baseDialogOptions = exports.ActionProgress = exports.DialogAction = exports.DialogInfoAction = exports.
|
|
6
|
+
exports.InitDialogMemoizeBounds = exports.baseDialogOptions = exports.ActionProgress = exports.DialogAction = exports.DialogInfoAction = exports.DialogActionsWrapper = exports.DialogFullscreenAction = exports.DialogCloseAction = exports.DialogProcessing = exports.default = void 0;
|
|
7
7
|
require("./styles/dialog.css");
|
|
8
8
|
require("./styles/dialog.action.css");
|
|
9
9
|
require("./styles/circular-progress.css");
|
|
@@ -15,7 +15,7 @@ var features_1 = require("./features");
|
|
|
15
15
|
Object.defineProperty(exports, "DialogProcessing", { enumerable: true, get: function () { return features_1.DialogProcessing; } });
|
|
16
16
|
Object.defineProperty(exports, "DialogCloseAction", { enumerable: true, get: function () { return features_1.DialogCloseAction; } });
|
|
17
17
|
Object.defineProperty(exports, "DialogFullscreenAction", { enumerable: true, get: function () { return features_1.DialogFullscreenAction; } });
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "DialogActionsWrapper", { enumerable: true, get: function () { return features_1.DialogActionsWrapper; } });
|
|
19
19
|
Object.defineProperty(exports, "DialogInfoAction", { enumerable: true, get: function () { return features_1.DialogInfoAction; } });
|
|
20
20
|
var models_1 = require("./models");
|
|
21
21
|
Object.defineProperty(exports, "DialogAction", { enumerable: true, get: function () { return models_1.DialogAction; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dialogger",
|
|
3
|
-
"version": "1.1.
|
|
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",
|
package/styles/dialog.css
CHANGED
|
@@ -209,6 +209,13 @@
|
|
|
209
209
|
flex-direction: column;
|
|
210
210
|
overflow: clip;
|
|
211
211
|
}
|
|
212
|
+
.dialog-main .actions-wrapper {
|
|
213
|
+
display: flex;
|
|
214
|
+
flex-direction: row;
|
|
215
|
+
align-items: center;
|
|
216
|
+
justify-content: center;
|
|
217
|
+
width: min-content;
|
|
218
|
+
}
|
|
212
219
|
.dialog-main .dialog-header {
|
|
213
220
|
min-height: 3rem;
|
|
214
221
|
padding: 10px 20px 10px 20px;
|
|
@@ -218,12 +225,6 @@
|
|
|
218
225
|
align-items: center;
|
|
219
226
|
border-bottom: 0.5px solid rgba(0, 0, 0, 0.2);
|
|
220
227
|
}
|
|
221
|
-
.dialog-main .dialog-header .header-actions-wrapper {
|
|
222
|
-
display: flex;
|
|
223
|
-
flex-direction: row;
|
|
224
|
-
align-items: center;
|
|
225
|
-
justify-content: center;
|
|
226
|
-
}
|
|
227
228
|
.dialog-main .dialog-header .icon-base {
|
|
228
229
|
display: flex;
|
|
229
230
|
}
|