@smartbit4all/ng-client 3.0.29 → 3.0.30
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 +5 -5
- package/esm2020/lib/smart-dialog/smartdialog.module.mjs +3 -4
- package/esm2020/lib/smart-dialog/smartdialog.service.mjs +11 -23
- package/esm2020/lib/smart-grid/smart-grid.service.mjs +6 -6
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.mjs +7 -7
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.mjs +7 -7
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.mjs +7 -7
- package/esm2020/lib/view-context/smart-view-context-dialog.service.mjs +60 -0
- package/esm2020/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.mjs +3 -3
- package/esm2020/lib/view-context/smart-view-context.service.mjs +2 -2
- package/fesm2015/smartbit4all-ng-client.mjs +3832 -3783
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +3638 -3590
- 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 +3 -5
- package/lib/smart-dialog/smartdialog.service.d.ts +4 -5
- package/lib/smart-grid/smart-grid.service.d.ts +2 -3
- package/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.d.ts +2 -4
- package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.d.ts +2 -4
- package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.d.ts +2 -4
- package/lib/view-context/smart-view-context-dialog.service.d.ts +18 -0
- package/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.d.ts +2 -2
- package/lib/view-context/smart-view-context.service.d.ts +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.0.30.tgz +0 -0
- package/src/lib/smart-dialog/README.md +9 -9
- package/smartbit4all-ng-client-3.0.29.tgz +0 -0
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { MatDialog
|
|
1
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { SmartDevToolDescriptor, SmartDevToolService } from '../smart-dev-tool.service';
|
|
5
|
-
import {
|
|
5
|
+
import { SmartAbstractdialogService } from '../../../smart-dialog/projects';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class SmartDevToolDialogService extends
|
|
7
|
+
export declare class SmartDevToolDialogService extends SmartAbstractdialogService {
|
|
8
8
|
service: SmartDevToolService;
|
|
9
9
|
update: Subject<void>;
|
|
10
|
-
dialogRef: MatDialogRef<any>;
|
|
11
|
-
dialogData: SmartDialogData;
|
|
12
10
|
constructor(dialog: MatDialog, router: Router, service: SmartDevToolService);
|
|
13
11
|
handleAfterClosed(result: any): void;
|
|
14
12
|
openDialog(): void;
|
|
@@ -2,17 +2,16 @@ import { ComponentType } from '@angular/cdk/portal';
|
|
|
2
2
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
4
|
import { SmartDialogData } from './smartdialog.model';
|
|
5
|
-
|
|
6
|
-
export declare class SmartdialogService {
|
|
5
|
+
export declare abstract class SmartAbstractdialogService {
|
|
7
6
|
protected dialog: MatDialog;
|
|
8
7
|
protected router: Router;
|
|
9
8
|
constructor(dialog: MatDialog, router: Router);
|
|
9
|
+
private dialogRef;
|
|
10
|
+
private dialogData;
|
|
10
11
|
createDialog(smartDialog: SmartDialogData, component: ComponentType<any>): MatDialogRef<any, any>;
|
|
11
12
|
createDialogRef(smartDialog: SmartDialogData, component: ComponentType<any>): MatDialogRef<any, any>;
|
|
12
13
|
openComponentAsDialog(component: ComponentType<any>, viewName: string): MatDialogRef<any, any>;
|
|
13
14
|
handleAfterClosed(result: any): void;
|
|
14
15
|
openDialog(): void;
|
|
15
|
-
closeDialog(
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartdialogService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SmartdialogService>;
|
|
16
|
+
closeDialog(): Promise<void>;
|
|
18
17
|
}
|
|
@@ -3,9 +3,9 @@ import { Router } from '@angular/router';
|
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { GridModel, GridRow, GridService, GridUpdateData } from './api/grid-api';
|
|
5
5
|
import { SmartGrid } from './projects';
|
|
6
|
-
import {
|
|
6
|
+
import { SmartAbstractdialogService } from '../smart-dialog/smartdialog.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class SmartGridService extends
|
|
8
|
+
export declare class SmartGridService extends SmartAbstractdialogService {
|
|
9
9
|
private api;
|
|
10
10
|
gridModelChanged: Subject<void>;
|
|
11
11
|
gridModel: GridModel;
|
|
@@ -17,7 +17,6 @@ export declare class SmartGridService extends SmartdialogService {
|
|
|
17
17
|
select(smartGrid: SmartGrid, gridRow: GridRow): Promise<any>;
|
|
18
18
|
selectAll(smartGrid: SmartGrid, selected: boolean): Promise<any>;
|
|
19
19
|
update(uuid: string, identifier: string, updateData: GridUpdateData): Promise<void>;
|
|
20
|
-
closeDialog(): Promise<void>;
|
|
21
20
|
handleAfterClosed(): void;
|
|
22
21
|
private updateGrid;
|
|
23
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartGridService, never>;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { MatDialog } from '@angular/material/dialog';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
-
import {
|
|
3
|
+
import { SmartAbstractdialogService } from '../../../../smart-dialog/projects';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { UiAction } from '../../../api';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class UiActionConfirmDialogService extends
|
|
7
|
+
export declare class UiActionConfirmDialogService extends SmartAbstractdialogService {
|
|
8
8
|
_destroy$: Subject<void>;
|
|
9
9
|
action: UiAction;
|
|
10
10
|
onAction: Subject<void>;
|
|
11
11
|
shouldDoAction: boolean;
|
|
12
|
-
private dialogRef;
|
|
13
|
-
private dialogData;
|
|
14
12
|
constructor(dialog: MatDialog, router: Router);
|
|
15
13
|
openDialog(): void;
|
|
16
14
|
doAction(): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MatDialog } from '@angular/material/dialog';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
-
import {
|
|
3
|
+
import { SmartAbstractdialogService } from '../../../../smart-dialog/projects';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { UiAction } from '../../../api';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class UiActionFileUploadDialogService extends
|
|
7
|
+
export declare class UiActionFileUploadDialogService extends SmartAbstractdialogService {
|
|
8
8
|
_destroy$: Subject<void>;
|
|
9
9
|
inputTypeName: 'inputDialog' | 'input2Dialog';
|
|
10
10
|
action: UiAction;
|
|
@@ -12,8 +12,6 @@ export declare class UiActionFileUploadDialogService extends SmartdialogService
|
|
|
12
12
|
onAction: Subject<void>;
|
|
13
13
|
files?: any;
|
|
14
14
|
isMultiple: boolean;
|
|
15
|
-
private dialogRef;
|
|
16
|
-
private dialogData;
|
|
17
15
|
constructor(dialog: MatDialog, router: Router);
|
|
18
16
|
setDataAndOpenDialog(action: UiAction, nodeName?: string): void;
|
|
19
17
|
openDialog(): void;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { MatDialog } from '@angular/material/dialog';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
-
import {
|
|
3
|
+
import { SmartAbstractdialogService } from '../../../../smart-dialog/projects';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { UiAction, UiActionRequest } from '../../../api';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class UiActionInputDialogService extends
|
|
7
|
+
export declare class UiActionInputDialogService extends SmartAbstractdialogService {
|
|
8
8
|
_destroy$: Subject<void>;
|
|
9
9
|
inputTypeName: 'inputDialog' | 'input2Dialog';
|
|
10
10
|
action: UiAction;
|
|
11
11
|
nodeName?: string;
|
|
12
12
|
onAction: Subject<EditFolderAction>;
|
|
13
13
|
params?: any;
|
|
14
|
-
private dialogRef;
|
|
15
|
-
private dialogData;
|
|
16
14
|
constructor(dialog: MatDialog, router: Router);
|
|
17
15
|
setDataAndOpenDialog(action: UiAction, nodeName?: string): void;
|
|
18
16
|
openDialog(): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
2
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { SmartDialogData } from '../smart-dialog/smartdialog.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SmartdialogService {
|
|
7
|
+
protected dialog: MatDialog;
|
|
8
|
+
protected router: Router;
|
|
9
|
+
private constructor();
|
|
10
|
+
createDialog(smartDialog: SmartDialogData, component: ComponentType<any>): MatDialogRef<any, any>;
|
|
11
|
+
createDialogRef(smartDialog: SmartDialogData, component: ComponentType<any>): MatDialogRef<any, any>;
|
|
12
|
+
openComponentAsDialog(component: ComponentType<any>, viewName: string): MatDialogRef<any, any>;
|
|
13
|
+
handleAfterClosed(result: any): void;
|
|
14
|
+
openDialog(): void;
|
|
15
|
+
closeDialog(dialogRef: MatDialogRef<any, any>, dialogData: SmartDialogData): Promise<void>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartdialogService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartdialogService>;
|
|
18
|
+
}
|
|
@@ -3,9 +3,9 @@ import { Router } from '@angular/router';
|
|
|
3
3
|
import { ViewApiError } from '../api';
|
|
4
4
|
import { SmartViewContextApiError } from '../smart-view-context.model';
|
|
5
5
|
import { SmartViewContextService } from '../smart-view-context.service';
|
|
6
|
-
import {
|
|
6
|
+
import { SmartAbstractdialogService } from '../../smart-dialog/projects';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class SmartViewContextErrorDialogService extends
|
|
8
|
+
export declare class SmartViewContextErrorDialogService extends SmartAbstractdialogService {
|
|
9
9
|
private viewContext;
|
|
10
10
|
viewApiError?: ViewApiError;
|
|
11
11
|
dialogRefs: MatDialogRef<any, any>[];
|
|
@@ -5,7 +5,7 @@ import { ComponentModel, DataChange, Link, MessageData, MessageResult, UiActionD
|
|
|
5
5
|
import { SmartTranslateService, SmartViewContextApiError, SmartViewContextApiErrors, SmartViewHandlerModel } from './smart-view-context.model';
|
|
6
6
|
import { SmartSubject } from '../smart-subject/projects';
|
|
7
7
|
import { SmartNavigationService } from '../smart-navigation/projects';
|
|
8
|
-
import { SmartdialogService } from '
|
|
8
|
+
import { SmartdialogService } from './smart-view-context-dialog.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare const SmartViewContextErrorDialogButtonLabel = "SmartViewContextErrorDialogButtonLabel";
|
|
11
11
|
export declare const SmartViewContextErrorDialogTitle = "SmartViewContextErrorDialogTitle";
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
These packages must be updated in case of a new version:
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- [_@smartbit4all/view-context_](https://www.npmjs.com/package/@smartbit4all/view-context)
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -41,11 +41,11 @@ If you **do not** use the **`SmartViewContext`** package in your project **or th
|
|
|
41
41
|
|
|
42
42
|
Create a component for the content of the dialog. In the folder of the component create an Angular Service.
|
|
43
43
|
|
|
44
|
-
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
- src/app/.../example-dialog/
|
|
45
|
+
- example-dialog.component.css
|
|
46
|
+
- example-dialog.component.html
|
|
47
|
+
- example-dialog.component.ts
|
|
48
|
+
- example-dialog.service.ts
|
|
49
49
|
|
|
50
50
|
Extend your service with the `SmartdialogService`. You can see an example for a specific service belove.
|
|
51
51
|
|
|
@@ -54,7 +54,7 @@ Extend your service with the `SmartdialogService`. You can see an example for a
|
|
|
54
54
|
@Injectable({
|
|
55
55
|
providedIn: 'root'
|
|
56
56
|
})
|
|
57
|
-
export class ExampleDialogService extends
|
|
57
|
+
export class ExampleDialogService extends SmartAbstractdialogService {
|
|
58
58
|
constructor(
|
|
59
59
|
dialog: MatDialog,
|
|
60
60
|
router: Router
|
|
@@ -187,8 +187,8 @@ The versions of the SmartForm and the SmartTable have been updated.
|
|
|
187
187
|
|
|
188
188
|
**New versions:**
|
|
189
189
|
|
|
190
|
-
-
|
|
191
|
-
-
|
|
190
|
+
- @smartbit4all/form: v0.1.1
|
|
191
|
+
- @smartbit4all/table: v0.1.3
|
|
192
192
|
|
|
193
193
|
## @smartbit4all/dialog v0.0.1
|
|
194
194
|
|
|
Binary file
|