@trudb/tru-common-lib 0.2.148 → 0.2.151

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,24 +1,27 @@
1
- import { GridApi } from 'ag-grid-community';
1
+ import { GridApi, ICellRendererParams } from 'ag-grid-community';
2
2
  import { TruEntityBase } from '../../../base-classes/tru-entity-base';
3
3
  import { TruDataContext } from '../../../services/tru-data-context';
4
4
  import { TruUtil } from '../../../services/tru-util';
5
5
  import { ITruDataGridConfig } from '../classes/tru-data-grid-config';
6
6
  import { TruUiNotification } from '../../../services/tru-ui-notification';
7
+ import { Entity } from 'breeze-client';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class TruDataGridClipboard {
9
10
  private util;
10
11
  private uiNotification;
11
12
  private tableName;
12
13
  private columnName;
13
- private copiedCell;
14
+ private copiedCellData;
15
+ private copiedCellEntity;
14
16
  private copiedRows;
15
17
  constructor(util: TruUtil, uiNotification: TruUiNotification);
16
- copyCell: (tableName: string, columnName: string, copiedCell: TruEntityBase) => void;
17
- pasteCell: (tableName: string, columnName: string, pastedCell: TruEntityBase) => void;
18
+ copyCell: (tableName: string, columnName: string, copiedCellData: any, copiedCellEntity: Entity) => void;
19
+ pasteCell: (params: ICellRendererParams, pastedCellData: any, pastedCell: Entity) => void;
18
20
  copyRow: (tableName: string, copiedRows: Array<TruEntityBase>) => void;
19
21
  pasteRow: (gridApi: GridApi, config: ITruDataGridConfig, selectedRows: any) => void;
20
22
  insertRowsAtTop: (dataContext: TruDataContext, config: ITruDataGridConfig, addEntity: (newEntity: any, dataNotification: boolean) => {}) => void;
21
23
  getCopiedRows: () => TruEntityBase[];
24
+ getCopiedCell: () => Entity | null;
22
25
  static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridClipboard, never>;
23
26
  static ɵprov: i0.ɵɵInjectableDeclaration<TruDataGridClipboard>;
24
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trudb/tru-common-lib",
3
- "version": "0.2.148",
3
+ "version": "0.2.151",
4
4
  "type": "module",
5
5
  "module": "fesm2022/trudb-tru-common-lib.mjs",
6
6
  "typings": "index.d.ts",