@trudb/tru-common-lib 0.0.437 → 0.0.443

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,12 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { TruDesktopManager } from '../../components/desktop/services/tru-desktop-manager';
3
3
  import { TruWindowEventHandler } from '../../components/desktop/services/tru-window-event-handler';
4
- import { ViewConfig } from '../../components/desktop/services/tru-desktop-service';
4
+ import { TruDesktopViewConfig } from '../../components/desktop/classes/tru-desktop-view-config';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class TruSearchViewBase implements OnInit {
7
7
  private desktopManager;
8
8
  private truWindowEventHandler;
9
- protected view: ViewConfig;
9
+ protected view: TruDesktopViewConfig;
10
10
  protected tableName: string;
11
11
  protected tablePluralName: string;
12
12
  protected tablePluralLabel: string;
@@ -0,0 +1,16 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import { WindowConfig } from '../services/tru-desktop-service';
3
+ export declare class TruDesktopViewConfig {
4
+ active$: BehaviorSubject<boolean>;
5
+ onActive(): BehaviorSubject<boolean>;
6
+ active(value: boolean): void;
7
+ entities: Array<any> | undefined;
8
+ entityIndex: number;
9
+ isDirty: boolean;
10
+ isEditing: boolean;
11
+ isInvalid: boolean;
12
+ componentName: string;
13
+ openAsDetaiView: boolean;
14
+ window: WindowConfig;
15
+ constructor();
16
+ }
@@ -1,5 +1,5 @@
1
- import { BehaviorSubject } from 'rxjs';
2
1
  import { TruContextFilter } from '../../../classes/tru-context-filter';
2
+ import { TruDesktopViewConfig } from '../classes/tru-desktop-view-config';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TruDesktopService {
5
5
  /**
@@ -28,7 +28,7 @@ export declare class TruDesktopService {
28
28
  export declare class Desktop {
29
29
  options: DesktopOptions;
30
30
  windowConfig: WindowConfig;
31
- viewConfig: ViewConfig;
31
+ viewConfig: TruDesktopViewConfig;
32
32
  }
33
33
  /**
34
34
  * @tru.desktop.doc class
@@ -85,7 +85,7 @@ export declare class WindowConfig {
85
85
  title: string;
86
86
  top: number;
87
87
  width: string;
88
- views: ViewConfig[];
88
+ views: TruDesktopViewConfig[];
89
89
  zIndex: number;
90
90
  isReadOnly: boolean;
91
91
  unsubscribes: Array<any>;
@@ -93,28 +93,3 @@ export declare class WindowConfig {
93
93
  contextFilters: Array<TruContextFilter>;
94
94
  destroy: () => void;
95
95
  }
96
- /**
97
- * @tru.desktop.doc class
98
- * @name truDesktopComponent.ViewConfig
99
- * @module tru.desktop
100
- *
101
- * @description
102
- * Default configuration object for a view. viewConfig properties can be defined by the application developer and overlaid
103
- * over this object.
104
- *
105
- */
106
- export declare class ViewConfig {
107
- active$: BehaviorSubject<boolean>;
108
- onActive(): BehaviorSubject<boolean>;
109
- active(value: boolean): void;
110
- entities: undefined;
111
- entityIndex: number;
112
- isDirty: boolean;
113
- isEditing: boolean;
114
- isInvalid: boolean;
115
- componentName: undefined;
116
- windowConfig: null;
117
- openAsDetaiView: boolean;
118
- window: WindowConfig;
119
- constructor();
120
- }
@@ -1,6 +1,6 @@
1
- import { TruWindowAddViewEventArgs } from './tru-window-add-view-event-args';
2
1
  import { Subject } from 'rxjs';
3
2
  import { TruWindowEventArgs } from './tru-window-event-args';
3
+ import { TruDesktopViewConfig } from '../classes/tru-desktop-view-config';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class TruWindowEventHandler {
6
6
  private open$;
@@ -8,8 +8,8 @@ export declare class TruWindowEventHandler {
8
8
  private removeForwadViews$;
9
9
  onOpen(): Subject<TruWindowEventArgs>;
10
10
  open(windowEvent: TruWindowEventArgs): void;
11
- onAddView(): Subject<TruWindowAddViewEventArgs>;
12
- addView(windowAddViewEvent: TruWindowAddViewEventArgs): void;
11
+ onAddView(): Subject<TruDesktopViewConfig>;
12
+ addView(windowAddViewEvent: TruDesktopViewConfig): void;
13
13
  onRemoveForwardViews(): Subject<null>;
14
14
  removeForwardViews(): void;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowEventHandler, never>;
@@ -1,11 +1,12 @@
1
1
  import { OnInit, ComponentFactoryResolver, ViewContainerRef } from '@angular/core';
2
2
  import { TruComponentLookup } from '../../../services/tru-component-lookup';
3
+ import { TruDesktopViewConfig } from '../classes/tru-desktop-view-config';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class TruDesktopView implements OnInit {
5
6
  private viewContainerRef;
6
7
  private componentFactoryResolver;
7
8
  private componentLookup;
8
- view: any;
9
+ view: TruDesktopViewConfig;
9
10
  constructor(viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, componentLookup: TruComponentLookup);
10
11
  ngOnInit(): void;
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopView, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trudb/tru-common-lib",
3
- "version": "0.0.437",
3
+ "version": "0.0.443",
4
4
  "type": "module",
5
5
  "peerDependencies": {},
6
6
  "dependencies": {
package/public-api.d.ts CHANGED
@@ -44,9 +44,9 @@ export * from './lib/components/data-grid/tru-data-grid';
44
44
  export * from './lib/components/data-grid/tru-data-grid-module';
45
45
  export * from './lib/components/desktop/tru-desktop';
46
46
  export * from './lib/components/desktop/tru-desktop-module';
47
+ export * from './lib/components/desktop/classes/tru-desktop-view-config';
47
48
  export * from './lib/components/desktop/services/tru-desktop-manager';
48
49
  export * from './lib/components/desktop/services/tru-window-action-event-handler';
49
- export * from './lib/components/desktop/services/tru-window-add-view-event-args';
50
50
  export * from './lib/components/desktop/services/tru-window-event-args';
51
51
  export * from './lib/components/desktop/services/tru-window-event-handler';
52
52
  export * from './lib/components/export-dialog/tru-export-dialog';
@@ -1,22 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class TruWindowAddViewEventArgs {
4
- constructor() {
5
- this.active = null;
6
- this.entities = null;
7
- this.entityIndex = 0;
8
- this.isDirty = false;
9
- this.isEditing = false;
10
- this.isInvalid = false;
11
- this.componentName = '';
12
- }
13
- }
14
- TruWindowAddViewEventArgs.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruWindowAddViewEventArgs, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15
- TruWindowAddViewEventArgs.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruWindowAddViewEventArgs, providedIn: 'root' });
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruWindowAddViewEventArgs, decorators: [{
17
- type: Injectable,
18
- args: [{
19
- providedIn: 'root'
20
- }]
21
- }] });
22
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJ1LXdpbmRvdy1hZGQtdmlldy1ldmVudC1hcmdzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHJ1LWNvbW1vbi1saWIvc3JjL2xpYi9jb21wb25lbnRzL2Rlc2t0b3Avc2VydmljZXMvdHJ1LXdpbmRvdy1hZGQtdmlldy1ldmVudC1hcmdzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBSzNDLE1BQU0sT0FBTyx5QkFBeUI7SUFIdEM7UUFJRSxXQUFNLEdBQW1CLElBQUksQ0FBQztRQUM5QixhQUFRLEdBQWUsSUFBSSxDQUFDO1FBQzVCLGdCQUFXLEdBQVcsQ0FBQyxDQUFDO1FBQ3hCLFlBQU8sR0FBWSxLQUFLLENBQUM7UUFDekIsY0FBUyxHQUFZLEtBQUssQ0FBQztRQUMzQixjQUFTLEdBQVksS0FBSyxDQUFDO1FBQzNCLGtCQUFhLEdBQVcsRUFBRSxDQUFBO0tBQzNCOztzSEFSWSx5QkFBeUI7MEhBQXpCLHlCQUF5QixjQUZ4QixNQUFNOzJGQUVQLHlCQUF5QjtrQkFIckMsVUFBVTttQkFBQztvQkFDVixVQUFVLEVBQUUsTUFBTTtpQkFDbkIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5ASW5qZWN0YWJsZSh7XHJcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBUcnVXaW5kb3dBZGRWaWV3RXZlbnRBcmdzIHtcclxuICBhY3RpdmU6IGJvb2xlYW4gfCBudWxsID0gbnVsbDtcclxuICBlbnRpdGllczogYW55IHwgbnVsbCA9IG51bGw7XHJcbiAgZW50aXR5SW5kZXg6IG51bWJlciA9IDA7XHJcbiAgaXNEaXJ0eTogYm9vbGVhbiA9IGZhbHNlO1xyXG4gIGlzRWRpdGluZzogYm9vbGVhbiA9IGZhbHNlO1xyXG4gIGlzSW52YWxpZDogYm9vbGVhbiA9IGZhbHNlO1xyXG4gIGNvbXBvbmVudE5hbWU6IHN0cmluZyA9ICcnXHJcbn1cclxuIl19
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TruWindowAddViewEventArgs {
3
- active: boolean | null;
4
- entities: any | null;
5
- entityIndex: number;
6
- isDirty: boolean;
7
- isEditing: boolean;
8
- isInvalid: boolean;
9
- componentName: string;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowAddViewEventArgs, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<TruWindowAddViewEventArgs>;
12
- }