@trudb/tru-common-lib 0.2.29 → 0.2.31

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,7 +1,30 @@
1
+ import { MatMenuTrigger } from "@angular/material/menu";
2
+ import { ICellRendererParams } from "ag-grid-community";
3
+ import { TruDataGridClipboard } from "../services/tru-data-grid-clipboard";
4
+ import { TruUtil } from "../../../services/tru-util";
5
+ import * as i0 from "@angular/core";
1
6
  export declare class TruDataGridPkeyCellRenderer {
7
+ private dataGridClipboard;
8
+ private util;
9
+ contextMenu: MatMenuTrigger;
10
+ params: ICellRendererParams;
11
+ contextMenuPosition: {
12
+ x: string;
13
+ y: string;
14
+ };
15
+ displayValue: string;
16
+ copyIsDisabled: boolean;
17
+ pasteIsDisabled: boolean;
2
18
  private eGui;
3
- init(params: any): void;
19
+ constructor(dataGridClipboard: TruDataGridClipboard, util: TruUtil);
20
+ onRightClick: (event: MouseEvent) => void;
21
+ onMouseUp: (event: MouseEvent) => void;
22
+ onCopy: (event: MouseEvent) => void;
23
+ onPaste: (event: MouseEvent) => void;
24
+ agInit(params: any): void;
4
25
  getGui(): HTMLDivElement;
5
26
  refresh(): boolean;
6
27
  destroy(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridPkeyCellRenderer, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruDataGridPkeyCellRenderer, "ng-component", never, {}, {}, never, never, true, never>;
7
30
  }
@@ -0,0 +1,10 @@
1
+ import { TruEntityBase } from '../../../base-classes/tru-entity-base';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TruDataGridClipboard {
4
+ private tableName;
5
+ private rowData;
6
+ copiedRows: (tableName: string, rowData: Array<TruEntityBase>) => void;
7
+ getCopiedRows: () => TruEntityBase[];
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridClipboard, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<TruDataGridClipboard>;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trudb/tru-common-lib",
3
- "version": "0.2.29",
3
+ "version": "0.2.31",
4
4
  "type": "module",
5
5
  "module": "fesm2022/trudb-tru-common-lib.mjs",
6
6
  "typings": "index.d.ts",