@smartbit4all/ng-client 3.3.56 → 3.3.58
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 +74 -38
- package/esm2020/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.mjs +2 -2
- package/esm2020/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +2 -2
- package/esm2020/lib/smart-ng-client.module.mjs +2 -2
- package/fesm2015/smartbit4all-ng-client.mjs +78 -42
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +76 -40
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +11 -14
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.58.tgz +0 -0
- package/smartbit4all-ng-client-3.3.56.tgz +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ElementRef, Injector, QueryList, Renderer2 } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
2
|
+
import { Subject, Subscription } from 'rxjs';
|
|
3
3
|
import { SmarttreeGenericService } from '../smart-tree/projects';
|
|
4
4
|
import { ComponentModel, ExecuteUiActionOptions, SmartTranslateService, SmartViewContextService, UiAction, UiActionAdditionalParams, UiActionDescriptorService, UiActionModel, UiActionRequest, UiActionService, UiActionSpecificDemandResponse, UiActionToolbarComponent, UseUiAction2 } from '../view-context/projects';
|
|
5
5
|
import { SmartAuthenticationServiceInterface } from './smart-authentication.service';
|
|
6
6
|
import { GridOptions, SmartGrid, SmartGridComponent } from '../smart-grid/projects';
|
|
7
|
-
import { SmartForm, SmartFormInvalidFields, SmartformComponent } from '../smart-form/projects';
|
|
7
|
+
import { SmartForm, SmartFormInvalidFields, SmartformComponent, SophisticatedValueChange } from '../smart-form/projects';
|
|
8
8
|
import { SmartComponentLayoutComponent } from '../smart-component-layout/projects';
|
|
9
9
|
import { SmartFilterEditorService } from '../smart-filter-editor/project';
|
|
10
10
|
export declare abstract class SmartComponentApiClient<T> implements UseUiAction2 {
|
|
@@ -36,13 +36,16 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction2
|
|
|
36
36
|
private _smartTreeService?;
|
|
37
37
|
get smartTreeService(): SmarttreeGenericService | undefined;
|
|
38
38
|
set smartTreeService(smartTreeService: SmarttreeGenericService | undefined);
|
|
39
|
-
widgets:
|
|
40
|
-
formWidgets:
|
|
39
|
+
widgets: Map<string, SmartGridComponent | SmarttreeGenericService | undefined>;
|
|
40
|
+
formWidgets: Map<string, SmartformComponent | undefined>;
|
|
41
41
|
useQueryLists: boolean;
|
|
42
|
+
dataChangeKeys: string[];
|
|
43
|
+
protected dataChangeActionHandlers: Map<SmartformComponent, Subscription>;
|
|
42
44
|
constructor(inject: Injector, auth: SmartAuthenticationServiceInterface, pageName?: string | undefined, _componentName?: string | undefined, element?: ElementRef<any> | undefined, renderer?: Renderer2 | undefined);
|
|
43
45
|
_ngOnInit(): void;
|
|
44
46
|
_ngOnDestroy(): void;
|
|
45
47
|
_ngAfterViewInit(): void;
|
|
48
|
+
protected handleQueryListSimple<T>(ql: QueryList<T>, handler: () => void): void;
|
|
46
49
|
protected handleQueryList<T>(ql: QueryList<T>, handler: (el: T) => void): void;
|
|
47
50
|
protected abstract getSmartFormsQL(): QueryList<SmartformComponent> | undefined;
|
|
48
51
|
protected abstract getSmartGridsQL(): QueryList<SmartGridComponent> | undefined;
|
|
@@ -50,7 +53,7 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction2
|
|
|
50
53
|
protected abstract getSmartFilterServicesQL(): QueryList<SmartFilterEditorService> | undefined;
|
|
51
54
|
protected abstract getSmartUiActionToolbarsQL(): QueryList<UiActionToolbarComponent> | undefined;
|
|
52
55
|
protected abstract getSmartComponentLayoutsQL(): QueryList<SmartComponentLayoutComponent> | undefined;
|
|
53
|
-
protected getWidgets():
|
|
56
|
+
protected getWidgets(): Map<string, SmartGridComponent | SmarttreeGenericService | SmartFilterEditorService | undefined>;
|
|
54
57
|
initComponentByModel(): void;
|
|
55
58
|
protected initStyle(): void;
|
|
56
59
|
protected getAllSmartFormComponents(): SmartformComponent[];
|
|
@@ -63,6 +66,9 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction2
|
|
|
63
66
|
run(): void;
|
|
64
67
|
load(): Promise<void>;
|
|
65
68
|
executeUiAction(uiAction: UiAction, options?: ExecuteUiActionOptions): Promise<void>;
|
|
69
|
+
addDataChangeActionHandler(key: string): void;
|
|
70
|
+
protected dataChangeActionHandler(event: SophisticatedValueChange): void;
|
|
71
|
+
protected handleDataChangeSubscriptions(): void;
|
|
66
72
|
getInvalidFields(): SmartFormInvalidFields;
|
|
67
73
|
protected validateForm(form: SmartformComponent | undefined, aggregatedInvalidFields: SmartFormInvalidFields): void;
|
|
68
74
|
getAdditionalParams(uiAction: UiAction): UiActionAdditionalParams;
|
|
@@ -90,15 +96,6 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction2
|
|
|
90
96
|
private handleActionChange;
|
|
91
97
|
private handleConstraintChange;
|
|
92
98
|
}
|
|
93
|
-
export declare class WidgetMap<T> {
|
|
94
|
-
private _widgets;
|
|
95
|
-
get widgets(): Map<string, T>;
|
|
96
|
-
set widgets(widgets: Map<string, T>);
|
|
97
|
-
addWidget(key: string, reference: T, isForm?: boolean): void;
|
|
98
|
-
removeWidget(key: string): void;
|
|
99
|
-
clearWidgets(): void;
|
|
100
|
-
get(key: string): T | undefined;
|
|
101
|
-
}
|
|
102
99
|
export interface SmartComponentFileUploader {
|
|
103
100
|
uiActionCode: string;
|
|
104
101
|
maxSizeMb?: number;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|