@smartbit4all/ng-client 3.2.43 → 3.2.45

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.
@@ -11,11 +11,13 @@ import { ComponentFactoryService } from '../component-factory-service/projects';
11
11
  import { MatDialog } from '@angular/material/dialog';
12
12
  import { FlatTreeControl } from '@angular/cdk/tree';
13
13
  import { MatTreeFlatDataSource, MatTreeFlattener } from '@angular/material/tree';
14
+ import { UiActionDescriptorService } from '../view-context/projects';
14
15
  import * as i0 from "@angular/core";
15
16
  export declare class SmartGridComponent implements AfterViewInit, OnDestroy, OnChanges {
16
17
  private service;
17
18
  private cfService;
18
19
  private dialog;
20
+ private uiActionDescriptorService;
19
21
  private readonly defaultPageSizeOptions;
20
22
  private _destroy$;
21
23
  smartGrid?: SmartGrid;
@@ -40,7 +42,7 @@ export declare class SmartGridComponent implements AfterViewInit, OnDestroy, OnC
40
42
  treeFlattener?: MatTreeFlattener<GridRow, GridRow>;
41
43
  treeDataSource?: MatTreeFlatDataSource<GridRow, GridRow>;
42
44
  treeChecklistSelection?: SelectionModel<GridRow>;
43
- constructor(service: SmartGridService, cfService: ComponentFactoryService, dialog: MatDialog);
45
+ constructor(service: SmartGridService, cfService: ComponentFactoryService, dialog: MatDialog, uiActionDescriptorService: UiActionDescriptorService);
44
46
  ngOnChanges(changes: SimpleChanges): void;
45
47
  ngOnDestroy(): void;
46
48
  ngAfterViewInit(): void;
@@ -1,5 +1,6 @@
1
1
  import { SelectionModel } from '@angular/cdk/collections';
2
2
  import { ThemePalette } from '@angular/material/core';
3
+ import { UiAction, UiActionDescriptor } from '../view-context/api';
3
4
  export declare enum SmartTableType {
4
5
  INHERITED = "Inherited",
5
6
  CHECK_BOX = "CheckBox",
@@ -61,7 +62,7 @@ export interface SmartTableButton {
61
62
  type: SmartTableButtonType;
62
63
  menuItemButtons?: SmartTableButton[];
63
64
  menuItemButtonsPropertyName?: string;
64
- translator?: ((label: string) => string) | ((label: string) => Promise<string>);
65
+ translator?: (uiAction: UiAction) => UiActionDescriptor;
65
66
  callback?: (...args: any[]) => any;
66
67
  args?: any[];
67
68
  showButtonIf?: (row: any) => boolean;
@@ -12,7 +12,7 @@ export declare class UiActionDescriptorService implements OnDestroy {
12
12
  ngOnDestroy(): void;
13
13
  private subscribeToTranslateService;
14
14
  getActionDescriptor(uiAction: UiAction): Promise<UiActionDescriptor>;
15
- private mergeActionDescriptorIntoClient;
15
+ mergeActionDescriptorIntoClient(server: UiActionDescriptor, client: UiActionDescriptor): void;
16
16
  private mergeActionDialogDescriptorIntoClient;
17
17
  private translateUiActionDescriptor;
18
18
  private deepTranslate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "3.2.43",
3
+ "version": "3.2.45",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.3.9",
6
6
  "@angular/common": "^13.2.0",
Binary file