@trudb/tru-common-lib 0.3.0 → 0.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trudb/tru-common-lib",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "module": "fesm2022/trudb-tru-common-lib.mjs",
6
6
  "typings": "types/trudb-tru-common-lib.d.ts",
@@ -1771,35 +1771,30 @@ declare class TruFormatter {
1771
1771
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1772
1772
  }
1773
1773
 
1774
+ type ClipboardCellParams = Pick<ICellRendererParams, 'api' | 'context' | 'column' | 'colDef' | 'node' | 'data' | 'value'>;
1774
1775
  declare class TruDataGridClipboard {
1775
1776
  private util;
1776
1777
  private formatter;
1777
1778
  private uiNotification;
1778
1779
  private modelPropertyLookup;
1779
- private tableName;
1780
- private columnName;
1781
- private copiedCellData;
1782
- private copiedCellValue;
1783
- private copiedCellEntity;
1784
- private copiedCellParams;
1785
- private copiedCellText;
1786
- private copiedRows;
1787
- private copiedRowsText;
1780
+ private copiedData;
1781
+ private pendingCopy;
1782
+ private copySequence;
1783
+ private animatedElements;
1788
1784
  private gridElement;
1789
1785
  constructor(util: TruUtil, formatter: TruFormatter, uiNotification: TruUiNotification, modelPropertyLookup: TruModelPropertyLookup);
1790
1786
  private formatCellValue;
1791
1787
  private normalizeClipboardText;
1792
- private readClipboardText;
1788
+ private writeClipboard;
1789
+ private readClipboard;
1793
1790
  private parseExternalCellValue;
1794
1791
  private removeBorderAnimation;
1795
- private addCellBorderAnimation;
1796
- private addRowBorderAnimation;
1797
1792
  setGridElement(el: HTMLElement): void;
1798
1793
  clearAnimations(): void;
1799
- copyCell: (params: ICellRendererParams, tableName: string, columnName: string, copiedCellData: any, copiedCellEntity: Entity) => Promise<void>;
1800
- pasteCell: (params: ICellRendererParams, pastedCellData: any, pastedCell: Entity) => Promise<void>;
1801
- copyRow: (tableName: string, columnDefs: Array<ColDef>, copiedRows: Array<any>, includeHeaders?: boolean) => Promise<void>;
1802
- pasteRow: (gridApi: GridApi, config: ITruDataGridConfig, selectedRows: any) => Promise<void>;
1794
+ copyCell: (params: ClipboardCellParams, tableName: string, columnName: string, copiedCellData: any, copiedCellEntity: Entity, event?: ClipboardEvent) => Promise<void>;
1795
+ pasteCell: (params: ClipboardCellParams, pastedCellData: any, pastedCell: Entity, event?: ClipboardEvent) => Promise<void>;
1796
+ copyRow: (tableName: string, columnDefs: Array<ColDef>, copiedRows: Array<any>, includeHeaders?: boolean, event?: ClipboardEvent) => Promise<void>;
1797
+ pasteRow: (gridApi: GridApi, config: ITruDataGridConfig, selectedRows: any, event?: ClipboardEvent) => Promise<void>;
1803
1798
  insertRowsAtTop: (dataContext: TruDataContext, config: ITruDataGridConfig, addEntity: (newEntity: any, dataNotification: boolean) => {}) => void;
1804
1799
  getCopiedRows: () => TruEntityBase[];
1805
1800
  getCopiedCell: () => Entity | null;
@@ -2033,6 +2028,9 @@ declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
2033
2028
  onRowClicked: (cellData: any) => void;
2034
2029
  onCellDoubleClicked: (cellData: any) => void;
2035
2030
  onCellKeyDown: (params: any) => void;
2031
+ private getClipboardCell;
2032
+ onCopy: (event: ClipboardEvent) => void;
2033
+ onPaste: (event: ClipboardEvent) => void;
2036
2034
  onCellMouseOver(e: any): void;
2037
2035
  onCellMouseOut(e: any): void;
2038
2036
  onRightClick(event: MouseEvent): void;
@@ -2580,13 +2578,19 @@ declare class TruPasswordDialog implements OnInit {
2580
2578
  message: string | null;
2581
2579
  showPassword: boolean;
2582
2580
  passwordScore: number | null;
2581
+ passwordWarning: string | null;
2582
+ passwordSuggestions: string[];
2583
2583
  readonly passwordStrengthLevels: number[];
2584
+ readonly passwordStrengthLabels: string[];
2585
+ readonly minimumPasswordScore = 2;
2584
2586
  errorMsg: string | null;
2585
2587
  busy: boolean;
2586
2588
  private baseUrl;
2587
2589
  private subs;
2588
2590
  constructor(dialogRef: MatDialogRef<TruPasswordDialog>, http: HttpClient, appEnvironment: TruAppEnvironment, uiNotification: TruUiNotification, data: any);
2589
2591
  onShowPasswordClicked: () => void;
2592
+ get enablePasswordStrength(): boolean;
2593
+ get validationMessage(): string | null;
2590
2594
  canSubmit: () => boolean;
2591
2595
  onConfirm: () => void;
2592
2596
  onDismiss: () => void;