@smartbit4all/ng-client 1.0.18 → 1.0.20

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,9 +1,11 @@
1
1
  import { Injector } from '@angular/core';
2
+ import { GridOptions, SmartGrid } from '@smartbit4all/grid';
2
3
  import { Subject } from 'rxjs';
3
4
  import { ComponentModel, SmartViewContextService, UiAction, UiActionAdditionalParams, UiActionDescriptorService, UiActionModel, UiActionRequest, UiActionService, UiActionSpecificDemandResponse, UseUiAction } from '../view-context/projects';
4
5
  import { SmartAuthenticationServiceInterface } from './smart-authentication.service';
5
- import { GridOptions, SmartGrid } from '@smartbit4all/grid';
6
+ import { SmarttreeGenericService } from '@smartbit4all/tree';
6
7
  export declare abstract class SmartComponentApiClient<T> implements UseUiAction {
8
+ protected inject: Injector;
7
9
  protected auth: SmartAuthenticationServiceInterface;
8
10
  protected pageName: string;
9
11
  protected _destroy$: Subject<void>;
@@ -25,6 +27,9 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction
25
27
  protected viewContext: SmartViewContextService;
26
28
  protected uiActionService: UiActionService;
27
29
  protected uiActionDescriptorService: UiActionDescriptorService;
30
+ private _smartTreeService?;
31
+ get smartTreeService(): SmarttreeGenericService | undefined;
32
+ set smartTreeService(smartTreeService: SmarttreeGenericService | undefined);
28
33
  constructor(inject: Injector, auth: SmartAuthenticationServiceInterface, pageName: string);
29
34
  _ngOnInit(): void;
30
35
  _ngOnDestroy(): void;
@@ -38,4 +43,6 @@ export declare abstract class SmartComponentApiClient<T> implements UseUiAction
38
43
  performUiActionRequest(uiActionRequest: UiActionRequest, widgetId?: string, nodeId?: string): Promise<any>;
39
44
  handleSpecificDemandsAsynchronously(uiAction: UiAction, uiActionRequest: UiActionRequest): Promise<UiActionSpecificDemandResponse>;
40
45
  addGrid(smartGrid: SmartGrid, options: GridOptions, useAsDefaultGrid?: boolean): SmartGrid;
46
+ setUpDefaultTree(treeId: string): void;
47
+ createTreeService(treeId: string): SmarttreeGenericService;
41
48
  }
@@ -3,7 +3,7 @@ import { SmartNavigationService } from '@smartbit4all/navigation';
3
3
  import { Subject } from 'rxjs';
4
4
  import { SmartSessionService } from '../session/smart-session.service';
5
5
  import { SmartSubject } from '../smart-client/smart.subject';
6
- import { ComponentModel, MessageData, MessageResult, UiActionDescriptor, UiActionRequest, ViewConstraint, ViewContextData, ViewContextUpdate, ViewData, ViewService } from './api';
6
+ import { ComponentModel, MessageData, MessageResult, UiActionDescriptor, UiActionRequest, ViewConstraint, ViewContextChange, ViewContextData, ViewContextUpdate, ViewData, ViewService } from './api';
7
7
  import { SmartTranslateService, SmartViewContextApiError, SmartViewContextApiErrors, SmartViewHandlerModel } from './smart-view-context.model';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class SmartViewContextService {
@@ -62,7 +62,7 @@ export declare class SmartViewContextService {
62
62
  performAction(uuid: string, uiActionRequest: UiActionRequest): Promise<void>;
63
63
  performWidgetAction(uuid: string, widgetId: string, nodeId: string, uiActionRequest: UiActionRequest): Promise<void>;
64
64
  performWidgetMainAction(uuid: string, widgetId: string, uiActionRequest: UiActionRequest): Promise<void>;
65
- private handlePerformActionResponse;
65
+ handlePerformActionResponse(viewContextChange: ViewContextChange | undefined): Promise<void>;
66
66
  private handleChanges;
67
67
  load(uuid: string): Promise<ComponentModel | undefined>;
68
68
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartViewContextService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^13.2.0",
Binary file