@trudb/tru-common-lib 0.1.313 → 0.1.317
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.
- package/esm2022/lib/base-views/detail/tru-detail-view-base.mjs +2 -2
- package/esm2022/lib/base-views/search-result/tru-search-result-view-base.mjs +1 -5
- package/esm2022/lib/components/data-grid/classes/tru-data-grid-config.mjs +1 -1
- package/esm2022/lib/components/data-grid/tru-data-grid.mjs +21 -24
- package/esm2022/lib/components/desktop/view/tru-desktop-view.mjs +6 -11
- package/esm2022/lib/services/tru-data-context.mjs +4 -4
- package/fesm2022/trudb-tru-common-lib.mjs +15 -25
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/base-views/search-result/tru-search-result-view-base.d.ts +1 -3
- package/lib/components/data-grid/classes/tru-data-grid-config.d.ts +2 -0
- package/lib/components/data-grid/tru-data-grid.d.ts +2 -4
- package/lib/components/desktop/view/tru-desktop-view.d.ts +1 -3
- package/package.json +1 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { TruWindowEventHandler } from '../../components/desktop/services/tru-window-event-handler';
|
|
3
2
|
import { TruUiNotification } from '../../services/tru-ui-notification';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TruSearchResultViewBase
|
|
4
|
+
export declare class TruSearchResultViewBase {
|
|
6
5
|
private uiNotification;
|
|
7
6
|
private truWindowEventHandler;
|
|
8
7
|
view: any;
|
|
@@ -19,7 +18,6 @@ export declare class TruSearchResultViewBase implements OnInit {
|
|
|
19
18
|
pinned: boolean;
|
|
20
19
|
};
|
|
21
20
|
constructor(uiNotification: TruUiNotification, truWindowEventHandler: TruWindowEventHandler);
|
|
22
|
-
ngOnInit(): void;
|
|
23
21
|
onPkeyCellDoubleClicked: (gridConfig: any) => void;
|
|
24
22
|
onCardDoubleClicked: (entities: any, index: number) => void;
|
|
25
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchResultViewBase, never>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TruTableConfigBase } from "../../../base-classes/tru-table-config-base";
|
|
2
2
|
import { TruReportConfig } from "../../../classes/tru-report-config";
|
|
3
|
+
import { TruDesktopViewConfig } from "../../desktop/classes/tru-desktop-view-config";
|
|
3
4
|
export interface ITruDataGridConfig {
|
|
4
5
|
tableName: string;
|
|
5
6
|
tablePluralName: string;
|
|
@@ -9,4 +10,5 @@ export interface ITruDataGridConfig {
|
|
|
9
10
|
noQuery: boolean;
|
|
10
11
|
reportConfig: TruReportConfig;
|
|
11
12
|
rowHeaderDoubleClicked: (data: any) => void;
|
|
13
|
+
view: TruDesktopViewConfig;
|
|
12
14
|
}
|
|
@@ -10,12 +10,10 @@ import { TruSearchResultViewManager } from '../../services/tru-search-result-vie
|
|
|
10
10
|
import { TruConnectionHub } from '../../services/tru-connection-hub';
|
|
11
11
|
import { ColDef } from 'ag-grid-community';
|
|
12
12
|
import { TruTabGroupEventNotifier } from '../layout/tab/services/tru-tab-group-event-notifier';
|
|
13
|
-
import { TruDesktopViewEventNotifier } from '../desktop/services/tru-desktop-view-event-notifier';
|
|
14
13
|
import { TruUtil } from '../../services/tru-util';
|
|
15
14
|
import * as i0 from "@angular/core";
|
|
16
15
|
export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
17
16
|
private dataContext;
|
|
18
|
-
private desktopViewEventNotifier;
|
|
19
17
|
private searchResultViewManager;
|
|
20
18
|
private appEnvironment;
|
|
21
19
|
private searchViewEventHandler;
|
|
@@ -47,7 +45,7 @@ export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
|
47
45
|
private api;
|
|
48
46
|
private subs;
|
|
49
47
|
private isActive;
|
|
50
|
-
constructor(dataContext: TruDataContext,
|
|
48
|
+
constructor(dataContext: TruDataContext, searchResultViewManager: TruSearchResultViewManager, appEnvironment: TruAppEnvironment, searchViewEventHandler: TruSearchViewEventHandler, uiNotification: TruUiNotification, connectionHub: TruConnectionHub, util: TruUtil, app: ApplicationRef, tabGroupEventNotifier: TruTabGroupEventNotifier);
|
|
51
49
|
private enhanceRowDataForEntity;
|
|
52
50
|
private setNoRowsTemplate;
|
|
53
51
|
private subscribeTo;
|
|
@@ -86,6 +84,6 @@ export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
|
86
84
|
ngAfterViewInit(): void;
|
|
87
85
|
ngOnChanges(changes: SimpleChanges): void;
|
|
88
86
|
ngOnDestroy(): void;
|
|
89
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGrid, [null, null, null, null, null, null, null, null,
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGrid, [null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
90
88
|
static ɵcmp: i0.ɵɵComponentDeclaration<TruDataGrid, "tru-data-grid", never, { "config": { "alias": "config"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
|
|
91
89
|
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { OnInit, ComponentFactoryResolver, ViewContainerRef, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { TruComponentLookup } from '../../../services/tru-component-lookup';
|
|
3
3
|
import { TruDesktopViewConfig } from '../classes/tru-desktop-view-config';
|
|
4
|
-
import { TruDesktopViewEventNotifier } from '../services/tru-desktop-view-event-notifier';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class TruDesktopView implements OnInit {
|
|
7
|
-
private desktopViewEventNotifier;
|
|
8
6
|
private viewContainerRef;
|
|
9
7
|
private componentFactoryResolver;
|
|
10
8
|
private componentLookup;
|
|
11
9
|
view: TruDesktopViewConfig;
|
|
12
10
|
active: boolean;
|
|
13
|
-
constructor(
|
|
11
|
+
constructor(viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, componentLookup: TruComponentLookup);
|
|
14
12
|
ngOnInit(): void;
|
|
15
13
|
ngOnChanges(changes: SimpleChanges): void;
|
|
16
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopView, never>;
|