@trudb/tru-common-lib 0.0.451 → 0.0.458

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,12 +1,14 @@
1
1
  import { TruDesktopViewConfig } from '../../components/desktop/classes/tru-desktop-view-config';
2
+ import { TruWindowEventHandler } from '../../components/desktop/services/tru-window-event-handler';
2
3
  import { TruDataContext } from '../../services/tru-data-context';
3
4
  import { TruTextManager } from '../../services/tru-text-manager';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class TruDetailViewBase {
6
- private dataContext;
7
- private textManager;
7
+ protected dataContext: TruDataContext;
8
+ protected textManager: TruTextManager;
9
+ protected windowEventHandler: TruWindowEventHandler;
8
10
  view: TruDesktopViewConfig;
9
- tableName: string;
11
+ tableName: any;
10
12
  entities: Array<any>;
11
13
  entity: any;
12
14
  entityType: any;
@@ -14,7 +16,7 @@ export declare class TruDetailViewBase {
14
16
  disableNavigationToPreviousEntity: boolean;
15
17
  disableNavigationToNextEntity: boolean;
16
18
  navigationIndex: number;
17
- constructor(dataContext: TruDataContext, textManager: TruTextManager);
19
+ constructor(dataContext: TruDataContext, textManager: TruTextManager, windowEventHandler: TruWindowEventHandler);
18
20
  onAddEntity: () => void;
19
21
  onCloneEntity: () => void;
20
22
  onDeleteEntity: () => void;
@@ -23,8 +25,8 @@ export declare class TruDetailViewBase {
23
25
  onNextEntity: () => void;
24
26
  onLastEntity: () => void;
25
27
  navigateTo: (index: number) => void;
26
- setNavigationIndex: (index: number) => void;
27
- setEntityDisplayValues: (tableName: string) => void;
28
+ setNavigationIndex(index: number): void;
29
+ setEntityDisplayValues(tableName: string): void;
28
30
  static ɵfac: i0.ɵɵFactoryDeclaration<TruDetailViewBase, never>;
29
31
  static ɵcmp: i0.ɵɵComponentDeclaration<TruDetailViewBase, "tru-detail-view-base", never, { "view": "view"; }, {}, never, never, false, never>;
30
32
  }
@@ -5,7 +5,7 @@ import { TruDesktopTitle } from '../../components/desktop/classes/tru-desktop-ti
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class TruSearchViewBase {
7
7
  protected desktopManager: TruDesktopManager;
8
- protected truWindowEventHandler: TruWindowEventHandler;
8
+ protected windowEventHandler: TruWindowEventHandler;
9
9
  protected view: TruDesktopViewConfig;
10
10
  protected tableName: string;
11
11
  protected tablePluralName: string;
@@ -27,7 +27,7 @@ export declare class TruSearchViewBase {
27
27
  size: number;
28
28
  pinned: boolean;
29
29
  };
30
- constructor(desktopManager: TruDesktopManager, truWindowEventHandler: TruWindowEventHandler);
30
+ constructor(desktopManager: TruDesktopManager, windowEventHandler: TruWindowEventHandler);
31
31
  setWindowTitle(): void;
32
32
  releaseWindowTitle(): void;
33
33
  onPkeyCellDoubleClicked: (gridConfig: any) => void;
@@ -5,6 +5,7 @@ import * as i0 from "@angular/core";
5
5
  export declare class TruWindowEventHandler {
6
6
  private open$;
7
7
  private addView$;
8
+ private setWindowTitle$;
8
9
  private removeForwadViews$;
9
10
  onOpen(): Subject<TruWindowEventArgs>;
10
11
  open(windowEvent: TruWindowEventArgs): void;
@@ -12,6 +13,8 @@ export declare class TruWindowEventHandler {
12
13
  addView(windowAddViewEvent: TruDesktopViewConfig): void;
13
14
  onRemoveForwardViews(): Subject<null>;
14
15
  removeForwardViews(): void;
16
+ onSetWindowTitle(): Subject<string>;
17
+ setWindowTitle(value: string): void;
15
18
  static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowEventHandler, never>;
16
19
  static ɵprov: i0.ɵɵInjectableDeclaration<TruWindowEventHandler>;
17
20
  }
@@ -22,6 +22,7 @@ export declare class TruDesktopWindow implements OnInit, AfterViewInit {
22
22
  canNavigateFn: () => boolean;
23
23
  cancelEditingOnNavigation: boolean;
24
24
  viewportDimensions: any;
25
+ private subs;
25
26
  hasChanges: () => number;
26
27
  mouseMove: (event: MouseEvent) => void;
27
28
  mouseUp: (event: MouseEvent) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trudb/tru-common-lib",
3
- "version": "0.0.451",
3
+ "version": "0.0.458",
4
4
  "type": "module",
5
5
  "peerDependencies": {},
6
6
  "dependencies": {