@smartbit4all/ng-client 3.0.27 → 3.0.29
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/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.component.mjs +2 -2
- package/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.mjs +3 -3
- package/esm2020/lib/smart-dialog/smartdialog.service.mjs +11 -11
- package/esm2020/lib/smart-form/services/smartform.service.mjs +2 -3
- package/esm2020/lib/smart-grid/api/grid-api/api/api.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/api/grid.service.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/api.module.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/configuration.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/encoder.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/index.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridDataAccessConfig.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridModel.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridPage.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridRow.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionMode.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionType.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridServerModel.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridUpdateData.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridView.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridViewDescriptor.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/models.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/param.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/variables.mjs +1 -1
- package/esm2020/lib/view-context/api/api/api.mjs +1 -1
- package/esm2020/lib/view-context/api/api/view.service.mjs +1 -1
- package/esm2020/lib/view-context/api/api.module.mjs +1 -1
- package/esm2020/lib/view-context/api/configuration.mjs +1 -1
- package/esm2020/lib/view-context/api/encoder.mjs +1 -1
- package/esm2020/lib/view-context/api/index.mjs +1 -1
- package/esm2020/lib/view-context/api/model/closeResult.mjs +1 -1
- package/esm2020/lib/view-context/api/model/componentConstraint.mjs +1 -1
- package/esm2020/lib/view-context/api/model/componentModel.mjs +1 -1
- package/esm2020/lib/view-context/api/model/componentModelChange.mjs +1 -1
- package/esm2020/lib/view-context/api/model/dataChange.mjs +1 -1
- package/esm2020/lib/view-context/api/model/dataChangeEvent.mjs +1 -1
- package/esm2020/lib/view-context/api/model/dataChangeKind.mjs +1 -1
- package/esm2020/lib/view-context/api/model/link.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageOption.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageOptionType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageResult.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/models.mjs +1 -1
- package/esm2020/lib/view-context/api/model/openPendingData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/smartLinkData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiAction.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionButtonDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionButtonIconPos.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionButtonType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionConstraint.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionDialogDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionFeedbackType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionInputType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionRequest.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionUploadDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/api/model/valueSet.mjs +1 -1
- package/esm2020/lib/view-context/api/model/view.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewApiError.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewConstraint.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContext.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContextChange.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContextData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContextUpdate.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewState.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewStateUpdate.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewType.mjs +1 -1
- package/esm2020/lib/view-context/api/param.mjs +1 -1
- package/esm2020/lib/view-context/api/variables.mjs +1 -1
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.mjs +5 -5
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.mjs +5 -5
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.mjs +5 -5
- package/fesm2015/smartbit4all-ng-client.mjs +26 -28
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +26 -27
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.d.ts +4 -2
- package/lib/smart-dialog/smartdialog.service.d.ts +2 -4
- package/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.d.ts +2 -0
- package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.d.ts +2 -0
- package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.d.ts +2 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.0.29.tgz +0 -0
- package/src/lib/smart-grid/api/grid-api/README.md +226 -226
- package/src/lib/view-context/api/README.md +226 -226
- package/smartbit4all-ng-client-3.0.27.tgz +0 -0
|
@@ -2497,12 +2497,13 @@ class SmartdialogService {
|
|
|
2497
2497
|
this.router = router;
|
|
2498
2498
|
}
|
|
2499
2499
|
createDialog(smartDialog, component) {
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2500
|
+
let dialogData = smartDialog;
|
|
2501
|
+
let dialogRef = this.dialog.open(component, { data: dialogData });
|
|
2502
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
2503
2503
|
this.handleAfterClosed(result);
|
|
2504
|
-
this.closeDialog();
|
|
2504
|
+
this.closeDialog(dialogRef, dialogData);
|
|
2505
2505
|
});
|
|
2506
|
+
return dialogRef;
|
|
2506
2507
|
}
|
|
2507
2508
|
createDialogRef(smartDialog, component) {
|
|
2508
2509
|
const dialogRef = this.dialog.open(component, { data: smartDialog });
|
|
@@ -2520,22 +2521,21 @@ class SmartdialogService {
|
|
|
2520
2521
|
},
|
|
2521
2522
|
customComponent: component,
|
|
2522
2523
|
};
|
|
2523
|
-
this.createDialog(smartDialog, component);
|
|
2524
|
-
return this.dialogRef;
|
|
2524
|
+
return this.createDialog(smartDialog, component);
|
|
2525
2525
|
}
|
|
2526
2526
|
handleAfterClosed(result) { }
|
|
2527
2527
|
openDialog() {
|
|
2528
2528
|
throw new Error('openDialog function is not implemented!');
|
|
2529
2529
|
}
|
|
2530
|
-
async closeDialog() {
|
|
2531
|
-
if (
|
|
2530
|
+
async closeDialog(dialogRef, dialogData) {
|
|
2531
|
+
if (dialogData?.outlets) {
|
|
2532
2532
|
await this.router.navigate([
|
|
2533
2533
|
{
|
|
2534
|
-
outlets:
|
|
2534
|
+
outlets: dialogData.outlets,
|
|
2535
2535
|
},
|
|
2536
2536
|
]);
|
|
2537
2537
|
}
|
|
2538
|
-
|
|
2538
|
+
dialogRef?.close();
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
2541
|
SmartdialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartdialogService, deps: [{ token: i1$2.MatDialog }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -3320,8 +3320,7 @@ class SmartFormService {
|
|
|
3320
3320
|
}
|
|
3321
3321
|
}
|
|
3322
3322
|
addEmptyItemToValueList(widget) {
|
|
3323
|
-
if (widget.type == SmartFormWidgetType.SELECT
|
|
3324
|
-
widget.type == SmartFormWidgetType.SELECT_MULTIPLE) {
|
|
3323
|
+
if (widget.type == SmartFormWidgetType.SELECT) {
|
|
3325
3324
|
widget.valueList?.unshift({
|
|
3326
3325
|
key: this.emptyKey,
|
|
3327
3326
|
label: '',
|
|
@@ -6736,14 +6735,14 @@ class SmartDevToolDialogService extends SmartdialogService {
|
|
|
6736
6735
|
}
|
|
6737
6736
|
handleAfterClosed(result) { }
|
|
6738
6737
|
openDialog() {
|
|
6739
|
-
|
|
6738
|
+
this.dialogData = {
|
|
6740
6739
|
content: {
|
|
6741
6740
|
title: '',
|
|
6742
6741
|
},
|
|
6743
6742
|
size: {},
|
|
6744
6743
|
customComponent: SmartDevToolDialogComponent,
|
|
6745
6744
|
};
|
|
6746
|
-
this.createDialog(dialogData, SmartDevToolDialogComponent);
|
|
6745
|
+
this.dialogRef = this.createDialog(this.dialogData, SmartDevToolDialogComponent);
|
|
6747
6746
|
}
|
|
6748
6747
|
getData() {
|
|
6749
6748
|
return this.service.descriptor;
|
|
@@ -6813,7 +6812,7 @@ class SmartDevToolDialogComponent {
|
|
|
6813
6812
|
});
|
|
6814
6813
|
}
|
|
6815
6814
|
close() {
|
|
6816
|
-
this.service.closeDialog();
|
|
6815
|
+
this.service.closeDialog(this.service.dialogRef, this.service.dialogData);
|
|
6817
6816
|
}
|
|
6818
6817
|
}
|
|
6819
6818
|
SmartDevToolDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartDevToolDialogComponent, deps: [{ token: SmartDevToolDialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -7523,24 +7522,24 @@ class UiActionConfirmDialogService extends SmartdialogService {
|
|
|
7523
7522
|
openDialog() {
|
|
7524
7523
|
this.shouldDoAction = false;
|
|
7525
7524
|
this.onAction = new SmartSubject(this._destroy$);
|
|
7526
|
-
|
|
7525
|
+
this.dialogData = {
|
|
7527
7526
|
content: {
|
|
7528
7527
|
title: '',
|
|
7529
7528
|
},
|
|
7530
7529
|
size: {},
|
|
7531
7530
|
customComponent: UiActionConfirmDialogComponent,
|
|
7532
7531
|
};
|
|
7533
|
-
this.createDialog(dialogData, UiActionConfirmDialogComponent);
|
|
7532
|
+
this.dialogRef = this.createDialog(this.dialogData, UiActionConfirmDialogComponent);
|
|
7534
7533
|
}
|
|
7535
7534
|
doAction() {
|
|
7536
7535
|
this.shouldDoAction = true;
|
|
7537
7536
|
this.onAction.complete();
|
|
7538
|
-
this.closeDialog();
|
|
7537
|
+
this.closeDialog(this.dialogRef, this.dialogData);
|
|
7539
7538
|
this.onAction = new SmartSubject(this._destroy$);
|
|
7540
7539
|
}
|
|
7541
7540
|
cancel() {
|
|
7542
7541
|
this.onAction.complete();
|
|
7543
|
-
this.closeDialog();
|
|
7542
|
+
this.closeDialog(this.dialogRef, this.dialogData);
|
|
7544
7543
|
this.onAction = new SmartSubject(this._destroy$);
|
|
7545
7544
|
}
|
|
7546
7545
|
}
|
|
@@ -7677,24 +7676,24 @@ class UiActionInputDialogService extends SmartdialogService {
|
|
|
7677
7676
|
openDialog() {
|
|
7678
7677
|
this.params = undefined;
|
|
7679
7678
|
this.onAction = new SmartSubject(this._destroy$);
|
|
7680
|
-
|
|
7679
|
+
this.dialogData = {
|
|
7681
7680
|
content: {
|
|
7682
7681
|
title: '',
|
|
7683
7682
|
},
|
|
7684
7683
|
size: {},
|
|
7685
7684
|
customComponent: UiActionInputDialogComponent,
|
|
7686
7685
|
};
|
|
7687
|
-
this.createDialog(dialogData, UiActionInputDialogComponent);
|
|
7686
|
+
this.dialogRef = this.createDialog(this.dialogData, UiActionInputDialogComponent);
|
|
7688
7687
|
}
|
|
7689
7688
|
async onSave(params) {
|
|
7690
7689
|
this.params = params;
|
|
7691
7690
|
this.onAction.complete();
|
|
7692
|
-
this.closeDialog();
|
|
7691
|
+
this.closeDialog(this.dialogRef, this.dialogData);
|
|
7693
7692
|
this.onAction = new SmartSubject(this._destroy$);
|
|
7694
7693
|
}
|
|
7695
7694
|
cancel() {
|
|
7696
7695
|
this.onAction.complete();
|
|
7697
|
-
this.closeDialog();
|
|
7696
|
+
this.closeDialog(this.dialogRef, this.dialogData);
|
|
7698
7697
|
this.onAction = new SmartSubject(this._destroy$);
|
|
7699
7698
|
}
|
|
7700
7699
|
}
|
|
@@ -7783,24 +7782,24 @@ class UiActionFileUploadDialogService extends SmartdialogService {
|
|
|
7783
7782
|
openDialog() {
|
|
7784
7783
|
this.files = undefined;
|
|
7785
7784
|
this.onAction = new SmartSubject(this._destroy$);
|
|
7786
|
-
|
|
7785
|
+
this.dialogData = {
|
|
7787
7786
|
content: {
|
|
7788
7787
|
title: '',
|
|
7789
7788
|
},
|
|
7790
7789
|
size: {},
|
|
7791
7790
|
customComponent: UiActionFileUploadDialogComponent,
|
|
7792
7791
|
};
|
|
7793
|
-
this.createDialog(dialogData, UiActionFileUploadDialogComponent);
|
|
7792
|
+
this.dialogRef = this.createDialog(this.dialogData, UiActionFileUploadDialogComponent);
|
|
7794
7793
|
}
|
|
7795
7794
|
async onSave(files) {
|
|
7796
7795
|
this.files = files;
|
|
7797
7796
|
this.onAction.complete();
|
|
7798
|
-
this.closeDialog();
|
|
7797
|
+
this.closeDialog(this.dialogRef, this.dialogData);
|
|
7799
7798
|
this.onAction = new SmartSubject(this._destroy$);
|
|
7800
7799
|
}
|
|
7801
7800
|
cancel() {
|
|
7802
7801
|
this.onAction.complete();
|
|
7803
|
-
this.closeDialog();
|
|
7802
|
+
this.closeDialog(this.dialogRef, this.dialogData);
|
|
7804
7803
|
this.onAction = new SmartSubject(this._destroy$);
|
|
7805
7804
|
}
|
|
7806
7805
|
}
|