@smartbit4all/ng-client 3.1.79 → 3.1.80

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,4 +1,4 @@
1
- import { Injector } from '@angular/core';
1
+ import { Injector, QueryList } from '@angular/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import { GridOptions, SmartForm, SmartFormInvalidFields, SmartGrid, SmartGridComponent, SmartformComponent } from '../../projects';
4
4
  import { SmarttreeGenericService } from '../smart-tree/projects';
@@ -32,9 +32,14 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction2
32
32
  set smartTreeService(smartTreeService: SmarttreeGenericService | undefined);
33
33
  widgets: WidgetMap<SmartGridComponent | SmarttreeGenericService | undefined>;
34
34
  formWidgets: WidgetMap<SmartformComponent | undefined>;
35
+ useQueryLists: boolean;
35
36
  constructor(inject: Injector, auth: SmartAuthenticationServiceInterface, pageName: string);
36
37
  _ngOnInit(): void;
37
38
  _ngOnDestroy(): void;
39
+ protected abstract getAllFormComponents(): QueryList<SmartformComponent> | undefined;
40
+ protected abstract getAllGridComponents(): QueryList<SmartGridComponent> | undefined;
41
+ protected abstract getAllTreeComponents(): QueryList<SmarttreeGenericService> | undefined;
42
+ protected getWidgets(): WidgetMap<SmartGridComponent | SmarttreeGenericService | undefined>;
38
43
  initComponentByModel(): void;
39
44
  initData(): void;
40
45
  initActions(): void;
@@ -42,6 +47,7 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction2
42
47
  load(): Promise<void>;
43
48
  executeUiAction(uiAction: UiAction, options?: ExecuteUiActionOptions): Promise<void>;
44
49
  getInvalidFields(): SmartFormInvalidFields;
50
+ protected validateForm(form: SmartformComponent | undefined, aggregatedInvalidFields: SmartFormInvalidFields): void;
45
51
  getAdditionalParams(uiAction: UiAction): UiActionAdditionalParams;
46
52
  getModel(): T | undefined;
47
53
  submitForm(validate: boolean): void;
@@ -1,11 +1,20 @@
1
- import { Injector, OnDestroy, OnInit } from '@angular/core';
1
+ import { Injector, OnDestroy, OnInit, QueryList } from '@angular/core';
2
2
  import { SmartAuthenticationServiceInterface } from './smart-authentication.service';
3
3
  import { SmartComponentApiClient } from './smart-component-api-client';
4
+ import { SmartformComponent } from '../smart-form/projects';
5
+ import { SmartGridComponent } from '../smart-grid/projects';
6
+ import { SmarttreeGenericService } from '../smart-tree/projects';
4
7
  import * as i0 from "@angular/core";
5
8
  export declare abstract class SmartComponent<T> extends SmartComponentApiClient<T> implements OnInit, OnDestroy {
9
+ formComponents: QueryList<SmartformComponent>;
10
+ gridComponents: QueryList<SmartGridComponent>;
11
+ treeComponents: QueryList<SmarttreeGenericService>;
6
12
  constructor(inject: Injector, auth: SmartAuthenticationServiceInterface, pageName: string);
7
13
  ngOnInit(): void;
8
14
  ngOnDestroy(): void;
15
+ getAllFormComponents(): QueryList<SmartformComponent> | undefined;
16
+ getAllGridComponents(): QueryList<SmartGridComponent> | undefined;
17
+ getAllTreeComponents(): QueryList<SmarttreeGenericService> | undefined;
9
18
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartComponent<any>, never>;
10
19
  static ɵcmp: i0.ɵɵComponentDeclaration<SmartComponent<any>, "ng-component", never, {}, {}, never, never>;
11
20
  }
@@ -1,11 +1,20 @@
1
- import { Injector, OnDestroy, OnInit } from '@angular/core';
1
+ import { Injector, OnDestroy, OnInit, QueryList } from '@angular/core';
2
2
  import { SmartAuthenticationServiceInterface } from './smart-authentication.service';
3
3
  import { SmartComponentApiClient } from './smart-component-api-client';
4
+ import { SmartformComponent } from '../smart-form/projects';
5
+ import { SmartGridComponent } from '../smart-grid/projects';
6
+ import { SmarttreeGenericService } from '../smart-tree/projects';
4
7
  import * as i0 from "@angular/core";
5
8
  export declare abstract class SmartService<T> extends SmartComponentApiClient<T> implements OnInit, OnDestroy {
9
+ formComponents: QueryList<SmartformComponent>;
10
+ gridComponents: QueryList<SmartGridComponent>;
11
+ treeComponents: QueryList<SmarttreeGenericService>;
6
12
  constructor(inject: Injector, auth: SmartAuthenticationServiceInterface, pageName: string);
7
13
  ngOnInit(): void;
8
14
  ngOnDestroy(): void;
15
+ getAllFormComponents(): QueryList<SmartformComponent> | undefined;
16
+ getAllGridComponents(): QueryList<SmartGridComponent> | undefined;
17
+ getAllTreeComponents(): QueryList<SmarttreeGenericService> | undefined;
9
18
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartService<any>, never>;
10
19
  static ɵprov: i0.ɵɵInjectableDeclaration<SmartService<any>>;
11
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "3.1.79",
3
+ "version": "3.1.80",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.3.9",
6
6
  "@angular/common": "^13.2.0",
Binary file