@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.
@@ -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: WidgetMap<SmartGridComponent | SmarttreeGenericService | undefined>;
40
- formWidgets: WidgetMap<SmartformComponent | undefined>;
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(): WidgetMap<SmartGridComponent | SmarttreeGenericService | SmartFilterEditorService | undefined>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "3.3.56",
3
+ "version": "3.3.58",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.3.9",
6
6
  "@angular/common": "^13.2.0",
Binary file