@trudb/tru-common-lib 0.2.157 → 0.2.159

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,35 +1,10 @@
1
- import { ICellRendererParams } from "ag-grid-community";
2
- import { TruDataContext } from "../../../services/tru-data-context";
3
- import { TruDataGridClipboard } from "../services/tru-data-grid-clipboard";
4
- import { TruContextMenuTrigger } from "../../../directives/context-menu-trigger/tru-context-menu-trigger";
5
- import * as i0 from "@angular/core";
6
1
  export declare class TruDataGridCellRenderer {
7
- private dataContext;
8
- private dataGridClipboard;
9
- contextMenu: TruContextMenuTrigger;
10
2
  private eGui;
11
3
  private validationContainer;
12
- private windowClickSubscription;
13
- private menuSubscription;
14
- params: ICellRendererParams;
15
- contextMenuPosition: {
16
- x: number;
17
- y: number;
18
- };
19
- displayValue: string;
20
- copyIsDisabled: boolean;
21
- pasteIsDisabled: boolean;
22
- constructor(dataContext: TruDataContext, dataGridClipboard: TruDataGridClipboard);
23
- private delay;
24
4
  onMouseOver: (e: any) => void;
25
5
  onRightClick: (event: MouseEvent) => void;
26
- onCopy: (event: MouseEvent) => void;
27
- onPaste: (event: MouseEvent) => void;
28
6
  init(params: any): void;
29
- agInit(params: any): void;
30
7
  getGui(): HTMLDivElement;
31
8
  refresh(): boolean;
32
9
  destroy(): void;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridCellRenderer, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<TruDataGridCellRenderer, "ng-component", never, {}, {}, never, never, true, never>;
35
10
  }
@@ -16,7 +16,7 @@ export declare class TruDataGridClipboard {
16
16
  private copiedCellParams;
17
17
  private copiedRows;
18
18
  constructor(util: TruUtil, uiNotification: TruUiNotification);
19
- copyCell: (params: ICellRendererParams, tableName: string, columnName: string, copiedCellData: any, copiedCellEntity: Entity) => void;
19
+ copyCell: (params: ICellRendererParams, tableName: string, columnName: string, copiedCellData: any, copiedCellEntity: Entity) => Promise<void>;
20
20
  pasteCell: (params: ICellRendererParams, pastedCellData: any, pastedCell: Entity) => void;
21
21
  copyRow: (tableName: string, copiedRows: Array<TruEntityBase>) => void;
22
22
  pasteRow: (gridApi: GridApi, config: ITruDataGridConfig, selectedRows: any) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trudb/tru-common-lib",
3
- "version": "0.2.157",
3
+ "version": "0.2.159",
4
4
  "type": "module",
5
5
  "module": "fesm2022/trudb-tru-common-lib.mjs",
6
6
  "typings": "index.d.ts",
@@ -1,12 +0,0 @@
1
- import { MatMenuPanel, MatMenuTrigger } from '@angular/material/menu';
2
- import * as i0 from "@angular/core";
3
- export declare class TruContextMenuTrigger extends MatMenuTrigger {
4
- private lastMouseEvent;
5
- get menu_again(): MatMenuPanel;
6
- set menu_again(menu: MatMenuPanel);
7
- _handleMousedown(event: MouseEvent): void;
8
- ngAfterContentInit(): void;
9
- ngOnDestroy(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TruContextMenuTrigger, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<TruContextMenuTrigger, "[truContextMenuTriggerFor]", never, { "menu_again": { "alias": "truContextMenuTriggerFor"; "required": false; }; }, {}, never, never, true, never>;
12
- }