@trudb/tru-common-lib 0.2.39 → 0.2.41
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,18 +1,18 @@
|
|
|
1
|
-
import { AfterViewInit, ApplicationRef, OnChanges, OnInit, SimpleChanges, TemplateRef,
|
|
1
|
+
import { AfterViewInit, ApplicationRef, ChangeDetectorRef, ElementRef, OnChanges, OnInit, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import type { ColDef } from "ag-grid-community";
|
|
3
3
|
import { TruSearchViewEventHandler } from '../../base-views/search/services/tru-search-view-event-handler';
|
|
4
4
|
import { TruAppEnvironment } from '../../services/tru-app-environment';
|
|
5
|
+
import { TruComponentLookup } from '../../services/tru-component-lookup';
|
|
5
6
|
import { TruConnectionHub } from '../../services/tru-connection-hub';
|
|
6
7
|
import { TruDataContext } from '../../services/tru-data-context';
|
|
7
8
|
import { TruSearchResultViewManager } from '../../services/tru-search-result-view-manager';
|
|
8
9
|
import { TruUiNotification } from '../../services/tru-ui-notification';
|
|
9
10
|
import { TruUtil } from '../../services/tru-util';
|
|
11
|
+
import { TruWindowEventHandler } from '../desktop/services/tru-window-event-handler';
|
|
10
12
|
import { TruTabGroupEventNotifier } from '../layout/tab/services/tru-tab-group-event-notifier';
|
|
11
13
|
import { ITruToolbarDropdownOption } from '../toolbar/classes/tru-toolbar-dropdown-option';
|
|
12
14
|
import { ITruDataGridConfig } from './classes/tru-data-grid-config';
|
|
13
15
|
import { TruDataGridTypes } from './enums/tru-data-grid-types';
|
|
14
|
-
import { TruWindowEventHandler } from '../desktop/services/tru-window-event-handler';
|
|
15
|
-
import { TruComponentLookup } from '../../services/tru-component-lookup';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
18
18
|
private dataContext;
|
|
@@ -25,6 +25,7 @@ export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
|
25
25
|
private windowEventHandler;
|
|
26
26
|
private util;
|
|
27
27
|
private app;
|
|
28
|
+
private cdr;
|
|
28
29
|
tabGroupEventNotifier: TruTabGroupEventNotifier;
|
|
29
30
|
dataGridContainer: ElementRef;
|
|
30
31
|
customToolbarContainer: ViewContainerRef;
|
|
@@ -57,7 +58,7 @@ export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
|
57
58
|
private rowSelectedOnMousedown;
|
|
58
59
|
private rowFocuedOnMousedown;
|
|
59
60
|
private copiedRowData;
|
|
60
|
-
constructor(dataContext: TruDataContext, componentLookup: TruComponentLookup, searchResultViewManager: TruSearchResultViewManager, appEnvironment: TruAppEnvironment, searchViewEventHandler: TruSearchViewEventHandler, uiNotification: TruUiNotification, connectionHub: TruConnectionHub, windowEventHandler: TruWindowEventHandler, util: TruUtil, app: ApplicationRef, tabGroupEventNotifier: TruTabGroupEventNotifier);
|
|
61
|
+
constructor(dataContext: TruDataContext, componentLookup: TruComponentLookup, searchResultViewManager: TruSearchResultViewManager, appEnvironment: TruAppEnvironment, searchViewEventHandler: TruSearchViewEventHandler, uiNotification: TruUiNotification, connectionHub: TruConnectionHub, windowEventHandler: TruWindowEventHandler, util: TruUtil, app: ApplicationRef, cdr: ChangeDetectorRef, tabGroupEventNotifier: TruTabGroupEventNotifier);
|
|
61
62
|
private enhanceRowDataForEntity;
|
|
62
63
|
private setNoRowsTemplate;
|
|
63
64
|
private subscribeTo;
|
|
@@ -77,6 +78,7 @@ export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
|
77
78
|
private renderCustomToolbarComponents;
|
|
78
79
|
defaultColDef: ColDef;
|
|
79
80
|
onRowDataChanged: (data: any) => void;
|
|
81
|
+
onCellMouseDown: (cellData: any) => void;
|
|
80
82
|
onCellClicked: (cellData: any) => void;
|
|
81
83
|
onCellDoubleClicked: (gridConfig: any) => void;
|
|
82
84
|
onCellKeyDown: (params: any) => void;
|
|
@@ -96,6 +98,6 @@ export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
|
96
98
|
ngAfterViewInit(): void;
|
|
97
99
|
ngOnChanges(changes: SimpleChanges): void;
|
|
98
100
|
ngOnDestroy(): void;
|
|
99
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGrid, [null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGrid, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
100
102
|
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, true, never>;
|
|
101
103
|
}
|