@trudb/tru-common-lib 0.2.350 → 0.2.354
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/fesm2022/trudb-tru-common-lib.mjs +69 -6
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/data-grid/classes/tru-data-grid-config.d.ts +5 -0
- package/lib/components/data-grid/tru-data-grid.d.ts +6 -2
- package/lib/services/tru-data-context.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TruTableConfigBase } from "../../../base-classes/tru-table-config-base";
|
|
2
2
|
import { TruViewMenuConfig } from "../../../classes/tru-view-menu-config";
|
|
3
3
|
import { TruDesktopViewConfig } from "../../desktop/classes/tru-desktop-view-config";
|
|
4
|
+
import { TruDataGridTypes } from "../enums/tru-data-grid-types";
|
|
4
5
|
export interface ITruDataGridConfig {
|
|
5
6
|
tableName: string;
|
|
6
7
|
tablePluralName: string;
|
|
@@ -17,4 +18,8 @@ export interface ITruDataGridConfig {
|
|
|
17
18
|
customToolbarComponents: Array<string>;
|
|
18
19
|
rowHeaderDoubleClicked: (data: any) => void;
|
|
19
20
|
view: TruDesktopViewConfig;
|
|
21
|
+
fill?: boolean;
|
|
22
|
+
minimumRows?: number;
|
|
23
|
+
maximumRows?: number;
|
|
24
|
+
gridType?: TruDataGridTypes;
|
|
20
25
|
}
|
|
@@ -14,6 +14,7 @@ import { ITruToolbarDropdownOption } from '../toolbar/classes/tru-toolbar-dropdo
|
|
|
14
14
|
import { ITruDataGridConfig } from './classes/tru-data-grid-config';
|
|
15
15
|
import { TruDataGridTypes } from './enums/tru-data-grid-types';
|
|
16
16
|
import { TruDataGridClipboard } from './services/tru-data-grid-clipboard';
|
|
17
|
+
import { TruDesktopViewEventNotifier } from '../desktop/services/tru-desktop-view-event-notifier';
|
|
17
18
|
import * as i0 from "@angular/core";
|
|
18
19
|
export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
19
20
|
private dataContext;
|
|
@@ -28,6 +29,8 @@ export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
|
28
29
|
private util;
|
|
29
30
|
private app;
|
|
30
31
|
private cdr;
|
|
32
|
+
private hostElement;
|
|
33
|
+
private desktopViewEventNotifier;
|
|
31
34
|
tabGroupEventNotifier: TruTabGroupEventNotifier;
|
|
32
35
|
dataGridContainer: ElementRef;
|
|
33
36
|
customToolbarContainer: ViewContainerRef;
|
|
@@ -60,7 +63,7 @@ export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
|
60
63
|
private rowSelectedOnMousedown;
|
|
61
64
|
private rowFocuedOnMousedown;
|
|
62
65
|
private copiedRowData;
|
|
63
|
-
constructor(dataContext: TruDataContext, componentLookup: TruComponentLookup, searchResultViewManager: TruSearchResultViewManager, appEnvironment: TruAppEnvironment, searchViewEventHandler: TruSearchViewEventHandler, uiNotification: TruUiNotification, connectionHub: TruConnectionHub, windowEventHandler: TruWindowEventHandler, dataGridClipboard: TruDataGridClipboard, util: TruUtil, app: ApplicationRef, cdr: ChangeDetectorRef, tabGroupEventNotifier: TruTabGroupEventNotifier);
|
|
66
|
+
constructor(dataContext: TruDataContext, componentLookup: TruComponentLookup, searchResultViewManager: TruSearchResultViewManager, appEnvironment: TruAppEnvironment, searchViewEventHandler: TruSearchViewEventHandler, uiNotification: TruUiNotification, connectionHub: TruConnectionHub, windowEventHandler: TruWindowEventHandler, dataGridClipboard: TruDataGridClipboard, util: TruUtil, app: ApplicationRef, cdr: ChangeDetectorRef, hostElement: ElementRef, desktopViewEventNotifier: TruDesktopViewEventNotifier, tabGroupEventNotifier: TruTabGroupEventNotifier);
|
|
64
67
|
private enhanceRowDataForEntity;
|
|
65
68
|
private setNoRowsTemplate;
|
|
66
69
|
private applyRelationships;
|
|
@@ -102,6 +105,7 @@ export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
|
102
105
|
ngAfterViewInit(): void;
|
|
103
106
|
ngOnChanges(changes: SimpleChanges): void;
|
|
104
107
|
ngOnDestroy(): void;
|
|
105
|
-
|
|
108
|
+
private resizeGrid;
|
|
109
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGrid, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
106
110
|
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>;
|
|
107
111
|
}
|
|
@@ -49,6 +49,7 @@ export declare class TruDataContext {
|
|
|
49
49
|
get breezeContext(): TruBreezeContext;
|
|
50
50
|
get entityManager(): import("breeze-client").EntityManager;
|
|
51
51
|
get onHasChanged(): import("breeze-client").BreezeEvent<import("breeze-client").HasChangesChangedEventArgs>;
|
|
52
|
+
hasChanged: () => Entity[];
|
|
52
53
|
hasChanges: (entityTypes?: Array<EntityType>) => Entity[];
|
|
53
54
|
entityAccess: () => TruEntityAccessor;
|
|
54
55
|
exportCahce: () => void;
|