@smartbit4all/ng-client 1.1.2 → 1.1.3
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-client/smart-component-api-client.mjs +33 -5
- package/esm2020/lib/view-context/smart-view-context.service.mjs +108 -8
- package/fesm2015/smartbit4all-ng-client.mjs +149 -9
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +137 -9
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +2 -0
- package/lib/view-context/smart-view-context.service.d.ts +26 -2
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.1.3.tgz +0 -0
- package/smartbit4all-ng-client-1.1.2.tgz +0 -0
|
@@ -10,6 +10,7 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction
|
|
|
10
10
|
protected auth: SmartAuthenticationServiceInterface;
|
|
11
11
|
protected pageName: string;
|
|
12
12
|
protected _destroy$: Subject<void>;
|
|
13
|
+
protected sendDataChanges: boolean;
|
|
13
14
|
private detectChange;
|
|
14
15
|
private _uuid?;
|
|
15
16
|
get uuid(): string | undefined;
|
|
@@ -49,6 +50,7 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction
|
|
|
49
50
|
addForm(smartFormId: string, smartForm: SmartForm, componentReference?: SmartformComponent): SmartForm;
|
|
50
51
|
setUpDefaultTree(treeId: string): void;
|
|
51
52
|
createTreeService(treeId: string): SmarttreeGenericService;
|
|
53
|
+
private handleValueChanges;
|
|
52
54
|
private handleChanges;
|
|
53
55
|
private handleChangeWidgets;
|
|
54
56
|
private setValueDeeply;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
1
2
|
import { SmartdialogService } from '@smartbit4all/dialog';
|
|
2
3
|
import { SmartNavigationService } from '@smartbit4all/navigation';
|
|
3
4
|
import { Subject } from 'rxjs';
|
|
4
5
|
import { SmartSessionService } from '../session/smart-session.service';
|
|
5
6
|
import { SmartSubject } from '../smart-client/smart.subject';
|
|
6
|
-
import { ComponentModel, MessageData, MessageResult, UiActionDescriptor, UiActionRequest, ViewConstraint, ViewContextChange, ViewContextData, ViewContextUpdate, ViewData, ViewService } from './api';
|
|
7
|
+
import { ComponentModel, DataChange, MessageData, MessageResult, UiActionDescriptor, UiActionRequest, ViewConstraint, ViewContextChange, ViewContextData, ViewContextUpdate, ViewData, ViewService } from './api';
|
|
7
8
|
import { SmartTranslateService, SmartViewContextApiError, SmartViewContextApiErrors, SmartViewHandlerModel } from './smart-view-context.model';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class SmartViewContextService {
|
|
@@ -11,6 +12,7 @@ export declare class SmartViewContextService {
|
|
|
11
12
|
private session;
|
|
12
13
|
private navigation;
|
|
13
14
|
private dialog;
|
|
15
|
+
private apiQueueService;
|
|
14
16
|
private tabIdName;
|
|
15
17
|
private tabIdhttpHeaderName;
|
|
16
18
|
messageDialogname: string | undefined;
|
|
@@ -31,7 +33,7 @@ export declare class SmartViewContextService {
|
|
|
31
33
|
get translateService(): SmartTranslateService | undefined;
|
|
32
34
|
private _translateService?;
|
|
33
35
|
translateServiceChanged: Subject<void>;
|
|
34
|
-
constructor(view: ViewService, session: SmartSessionService, navigation: SmartNavigationService, dialog: SmartdialogService);
|
|
36
|
+
constructor(view: ViewService, session: SmartSessionService, navigation: SmartNavigationService, dialog: SmartdialogService, apiQueueService: ApiQueueService);
|
|
35
37
|
follow(uuid: string, detectChange: SmartSubject<any>): void;
|
|
36
38
|
unfollow(uuid: string): void;
|
|
37
39
|
setActionDescriptors(actionDescriptors: Map<string, UiActionDescriptor>): void;
|
|
@@ -62,6 +64,11 @@ export declare class SmartViewContextService {
|
|
|
62
64
|
performAction(uuid: string, uiActionRequest: UiActionRequest): Promise<void>;
|
|
63
65
|
performWidgetAction(uuid: string, widgetId: string, nodeId: string, uiActionRequest: UiActionRequest): Promise<void>;
|
|
64
66
|
performWidgetMainAction(uuid: string, widgetId: string, uiActionRequest: UiActionRequest): Promise<void>;
|
|
67
|
+
dataChanged(uuid: string, dataChange: DataChange): Promise<void>;
|
|
68
|
+
private _performAction;
|
|
69
|
+
private _performWidgetAction;
|
|
70
|
+
private _performWidgetMainAction;
|
|
71
|
+
private _dataChanged;
|
|
65
72
|
handlePerformActionResponse(viewContextChange: ViewContextChange | undefined): Promise<void>;
|
|
66
73
|
private handleChanges;
|
|
67
74
|
load(uuid: string): Promise<ComponentModel | undefined>;
|
|
@@ -69,3 +76,20 @@ export declare class SmartViewContextService {
|
|
|
69
76
|
static ɵprov: i0.ɵɵInjectableDeclaration<SmartViewContextService>;
|
|
70
77
|
}
|
|
71
78
|
export declare const IS_ASYNC_PARAM_NAME = "isAsync";
|
|
79
|
+
export interface ApiQueueCall {
|
|
80
|
+
callback: (config: any) => Promise<any>;
|
|
81
|
+
config: any;
|
|
82
|
+
isCompleted: Subject<void>;
|
|
83
|
+
}
|
|
84
|
+
export declare class ApiQueueService implements OnDestroy {
|
|
85
|
+
private _destroy$;
|
|
86
|
+
private queue;
|
|
87
|
+
private isProcessing;
|
|
88
|
+
private queueSubject;
|
|
89
|
+
constructor();
|
|
90
|
+
ngOnDestroy(): void;
|
|
91
|
+
addToQueue(call: ApiQueueCall, priority?: boolean): void;
|
|
92
|
+
processQueue(): Promise<void>;
|
|
93
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiQueueService, never>;
|
|
94
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiQueueService>;
|
|
95
|
+
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|