@smartbit4all/ng-client 3.0.31 → 3.0.32
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/esm2020/lib/smart-dialog/projects.mjs +2 -2
- package/esm2020/lib/smart-dialog/smartdialog.abstract.service.mjs +48 -0
- package/esm2020/lib/smart-grid/smart-grid.service.mjs +2 -2
- package/esm2020/lib/view-context/smart-view-context-dialog.service.mjs +14 -14
- package/esm2020/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.mjs +2 -2
- package/esm2020/lib/view-context/smart-view-context.service.mjs +3 -3
- package/esm2020/projects.mjs +1 -2
- package/fesm2015/smartbit4all-ng-client.mjs +16 -15
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +15 -15
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-dialog/projects.d.ts +1 -1
- package/lib/smart-grid/smart-grid.service.d.ts +1 -1
- package/lib/view-context/smart-view-context-dialog.service.d.ts +6 -4
- package/lib/view-context/smart-view-context.service.d.ts +2 -2
- package/package.json +1 -1
- package/projects.d.ts +0 -1
- package/smartbit4all-ng-client-3.0.32.tgz +0 -0
- package/esm2020/lib/smart-dialog/smartdialog.service.mjs +0 -48
- package/smartbit4all-ng-client-3.0.31.tgz +0 -0
- /package/lib/smart-dialog/{smartdialog.service.d.ts → smartdialog.abstract.service.d.ts} +0 -0
|
@@ -2376,19 +2376,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
2376
2376
|
* Public API Surface of smart-navigation
|
|
2377
2377
|
*/
|
|
2378
2378
|
|
|
2379
|
-
class
|
|
2379
|
+
class SmartViewContextDialogService {
|
|
2380
2380
|
constructor(dialog, router) {
|
|
2381
2381
|
this.dialog = dialog;
|
|
2382
2382
|
this.router = router;
|
|
2383
2383
|
}
|
|
2384
2384
|
createDialog(smartDialog, component) {
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
dialogRef.afterClosed().subscribe((result) => {
|
|
2385
|
+
this.dialogData = smartDialog;
|
|
2386
|
+
this.dialogRef = this.dialog.open(component, { data: this.dialogData });
|
|
2387
|
+
this.dialogRef.afterClosed().subscribe((result) => {
|
|
2388
2388
|
this.handleAfterClosed(result);
|
|
2389
|
-
this.closeDialog(
|
|
2389
|
+
this.closeDialog();
|
|
2390
2390
|
});
|
|
2391
|
-
return dialogRef;
|
|
2391
|
+
return this.dialogRef;
|
|
2392
2392
|
}
|
|
2393
2393
|
createDialogRef(smartDialog, component) {
|
|
2394
2394
|
const dialogRef = this.dialog.open(component, { data: smartDialog });
|
|
@@ -2412,22 +2412,23 @@ class SmartdialogService {
|
|
|
2412
2412
|
openDialog() {
|
|
2413
2413
|
throw new Error('openDialog function is not implemented!');
|
|
2414
2414
|
}
|
|
2415
|
-
closeDialog(
|
|
2415
|
+
closeDialog() {
|
|
2416
|
+
var _a, _b;
|
|
2416
2417
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2417
|
-
if (dialogData === null ||
|
|
2418
|
+
if ((_a = this.dialogData) === null || _a === void 0 ? void 0 : _a.outlets) {
|
|
2418
2419
|
yield this.router.navigate([
|
|
2419
2420
|
{
|
|
2420
|
-
outlets: dialogData.outlets,
|
|
2421
|
+
outlets: this.dialogData.outlets,
|
|
2421
2422
|
},
|
|
2422
2423
|
]);
|
|
2423
2424
|
}
|
|
2424
|
-
dialogRef === null ||
|
|
2425
|
+
(_b = this.dialogRef) === null || _b === void 0 ? void 0 : _b.close();
|
|
2425
2426
|
});
|
|
2426
2427
|
}
|
|
2427
2428
|
}
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type:
|
|
2429
|
+
SmartViewContextDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextDialogService, deps: [{ token: i1$2.MatDialog }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2430
|
+
SmartViewContextDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextDialogService, providedIn: 'root' });
|
|
2431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextDialogService, decorators: [{
|
|
2431
2432
|
type: Injectable,
|
|
2432
2433
|
args: [{
|
|
2433
2434
|
providedIn: 'root',
|
|
@@ -3017,14 +3018,14 @@ class SmartViewContextService {
|
|
|
3017
3018
|
});
|
|
3018
3019
|
}
|
|
3019
3020
|
}
|
|
3020
|
-
SmartViewContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, deps: [{ token: ViewService }, { token: SmartSessionService }, { token: SmartNavigationService }, { token:
|
|
3021
|
+
SmartViewContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, deps: [{ token: ViewService }, { token: SmartSessionService }, { token: SmartNavigationService }, { token: SmartViewContextDialogService }, { token: ApiQueueService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3021
3022
|
SmartViewContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, providedIn: 'root' });
|
|
3022
3023
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, decorators: [{
|
|
3023
3024
|
type: Injectable,
|
|
3024
3025
|
args: [{
|
|
3025
3026
|
providedIn: 'root',
|
|
3026
3027
|
}]
|
|
3027
|
-
}], ctorParameters: function () { return [{ type: ViewService }, { type: SmartSessionService }, { type: SmartNavigationService }, { type:
|
|
3028
|
+
}], ctorParameters: function () { return [{ type: ViewService }, { type: SmartSessionService }, { type: SmartNavigationService }, { type: SmartViewContextDialogService }, { type: ApiQueueService }, { type: i0.Injector }]; } });
|
|
3028
3029
|
const IS_ASYNC_PARAM_NAME = 'isAsync';
|
|
3029
3030
|
class ApiQueueService {
|
|
3030
3031
|
constructor() {
|