@trudb/tru-common-lib 0.1.307 → 0.1.310
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/components/data-grid/tru-data-grid.mjs +46 -16
- package/esm2022/lib/components/desktop/tru-desktop.mjs +2 -27
- package/esm2022/lib/components/desktop/window/tru-desktop-window.mjs +16 -19
- package/esm2022/lib/services/tru-util.mjs +24 -1
- package/fesm2022/trudb-tru-common-lib.mjs +68 -45
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/data-grid/tru-data-grid.d.ts +5 -2
- package/lib/components/desktop/tru-desktop.d.ts +0 -10
- package/lib/components/desktop/window/tru-desktop-window.d.ts +3 -2
- package/lib/services/tru-util.d.ts +3 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ 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
13
|
import { TruDesktopViewEventNotifier } from '../desktop/services/tru-desktop-view-event-notifier';
|
|
14
|
+
import { TruUtil } from '../../services/tru-util';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
16
17
|
private dataContext;
|
|
@@ -20,6 +21,7 @@ export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
|
20
21
|
private searchViewEventHandler;
|
|
21
22
|
private uiNotification;
|
|
22
23
|
private connectionHub;
|
|
24
|
+
private util;
|
|
23
25
|
private app;
|
|
24
26
|
tabGroupEventNotifier: TruTabGroupEventNotifier;
|
|
25
27
|
config: ITruDataGridConfig;
|
|
@@ -44,7 +46,8 @@ export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
|
44
46
|
parentToolbarTemplate: TemplateRef<any> | null;
|
|
45
47
|
private api;
|
|
46
48
|
private subs;
|
|
47
|
-
|
|
49
|
+
private isActive;
|
|
50
|
+
constructor(dataContext: TruDataContext, desktopViewEventNotifier: TruDesktopViewEventNotifier, searchResultViewManager: TruSearchResultViewManager, appEnvironment: TruAppEnvironment, searchViewEventHandler: TruSearchViewEventHandler, uiNotification: TruUiNotification, connectionHub: TruConnectionHub, util: TruUtil, app: ApplicationRef, tabGroupEventNotifier: TruTabGroupEventNotifier);
|
|
48
51
|
private enhanceRowDataForEntity;
|
|
49
52
|
private setNoRowsTemplate;
|
|
50
53
|
private subscribeTo;
|
|
@@ -83,6 +86,6 @@ export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
|
83
86
|
ngAfterViewInit(): void;
|
|
84
87
|
ngOnChanges(changes: SimpleChanges): void;
|
|
85
88
|
ngOnDestroy(): void;
|
|
86
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGrid, [null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGrid, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
87
90
|
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>;
|
|
88
91
|
}
|
|
@@ -23,7 +23,6 @@ export declare class TruDesktop implements OnInit {
|
|
|
23
23
|
shiftPressed: boolean;
|
|
24
24
|
altPressed: boolean;
|
|
25
25
|
xPressed: boolean;
|
|
26
|
-
keyboardMap: string[];
|
|
27
26
|
logoUrl: null;
|
|
28
27
|
/**
|
|
29
28
|
* @tru.doc function
|
|
@@ -303,15 +302,6 @@ export declare class TruDesktop implements OnInit {
|
|
|
303
302
|
*
|
|
304
303
|
*/
|
|
305
304
|
cascadeWindow: (window: any) => void;
|
|
306
|
-
/**
|
|
307
|
-
* @tru.doc function
|
|
308
|
-
* @name truDesktopComponent.getKeyCode
|
|
309
|
-
* @module tru.desktop
|
|
310
|
-
*
|
|
311
|
-
* @description
|
|
312
|
-
*
|
|
313
|
-
*/
|
|
314
|
-
getKeySequence: (event: any) => string;
|
|
315
305
|
/**
|
|
316
306
|
* @tru.doc event
|
|
317
307
|
* @module tru.desktop
|
|
@@ -3,6 +3,7 @@ import { TruDataContext } from '../../../services/tru-data-context';
|
|
|
3
3
|
import { TruTextManager } from '../../../services/tru-text-manager';
|
|
4
4
|
import { TruUiNotification } from '../../../services/tru-ui-notification';
|
|
5
5
|
import { TruWindowEventHandler } from '../services/tru-window-event-handler';
|
|
6
|
+
import { TruUtil } from '../../../services/tru-util';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class TruDesktopWindow implements OnInit, AfterViewInit {
|
|
8
9
|
private dataContext;
|
|
@@ -10,11 +11,12 @@ export declare class TruDesktopWindow implements OnInit, AfterViewInit {
|
|
|
10
11
|
private textManager;
|
|
11
12
|
private truWindowEventHandler;
|
|
12
13
|
private elementRef;
|
|
14
|
+
private util;
|
|
13
15
|
private cd;
|
|
14
16
|
window: any;
|
|
15
17
|
viewportCtrl: any;
|
|
16
18
|
desktopCtrl: any;
|
|
17
|
-
constructor(dataContext: TruDataContext, uiNotification: TruUiNotification, textManager: TruTextManager, truWindowEventHandler: TruWindowEventHandler, elementRef: ElementRef, cd: ChangeDetectorRef);
|
|
19
|
+
constructor(dataContext: TruDataContext, uiNotification: TruUiNotification, textManager: TruTextManager, truWindowEventHandler: TruWindowEventHandler, elementRef: ElementRef, util: TruUtil, cd: ChangeDetectorRef);
|
|
18
20
|
x: number;
|
|
19
21
|
y: number;
|
|
20
22
|
lastX: number;
|
|
@@ -27,7 +29,6 @@ export declare class TruDesktopWindow implements OnInit, AfterViewInit {
|
|
|
27
29
|
cancelEditingOnNavigation: boolean;
|
|
28
30
|
viewportDimensions: any;
|
|
29
31
|
private subs;
|
|
30
|
-
private targetIsControl;
|
|
31
32
|
hasChanges: () => number;
|
|
32
33
|
mouseMove: (event: MouseEvent) => void;
|
|
33
34
|
mouseUp: (event: MouseEvent) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TruEntityBase } from '../base-classes/tru-entity-base';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class TruUtil {
|
|
4
|
+
private keyboardMap;
|
|
4
5
|
constructor();
|
|
5
6
|
numberToString: (value: number | undefined) => string;
|
|
6
7
|
nullableNumberToString: (value: number | null | undefined) => string;
|
|
@@ -20,6 +21,8 @@ export declare class TruUtil {
|
|
|
20
21
|
*/
|
|
21
22
|
formatAsUrlParameters: (data: any) => string;
|
|
22
23
|
showEntityStatus: (entity: TruEntityBase, entityType: string | null, formatedRecordId: string | null | undefined) => string;
|
|
24
|
+
getKeySequence: (event: any) => string;
|
|
25
|
+
targetIsControl: (target: HTMLElement) => boolean;
|
|
23
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruUtil, never>;
|
|
24
27
|
static ɵprov: i0.ɵɵInjectableDeclaration<TruUtil>;
|
|
25
28
|
}
|