@trudb/tru-common-lib 0.3.1 → 0.4.0
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
|
@@ -393,7 +393,6 @@ declare class TruAppEnvironment {
|
|
|
393
393
|
private _appName;
|
|
394
394
|
private _appDescription;
|
|
395
395
|
private _appUri;
|
|
396
|
-
private _enablePasswordStrength;
|
|
397
396
|
private _backgroundImageUri;
|
|
398
397
|
private _environmentWarning;
|
|
399
398
|
private _loginFormTitle;
|
|
@@ -430,8 +429,6 @@ declare class TruAppEnvironment {
|
|
|
430
429
|
set appName(name: string);
|
|
431
430
|
get appDescription(): string;
|
|
432
431
|
set appDescription(description: string);
|
|
433
|
-
get enablePasswordStrength(): boolean;
|
|
434
|
-
set enablePasswordStrength(enable: boolean);
|
|
435
432
|
get backgroundImageUri(): string;
|
|
436
433
|
set backgroundImageUri(uri: string);
|
|
437
434
|
get environmentWarning(): string;
|
|
@@ -1771,35 +1768,31 @@ declare class TruFormatter {
|
|
|
1771
1768
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1772
1769
|
}
|
|
1773
1770
|
|
|
1771
|
+
type ClipboardCellParams = Pick<ICellRendererParams, 'api' | 'context' | 'column' | 'colDef' | 'node' | 'data' | 'value'>;
|
|
1774
1772
|
declare class TruDataGridClipboard {
|
|
1775
1773
|
private util;
|
|
1776
1774
|
private formatter;
|
|
1777
1775
|
private uiNotification;
|
|
1778
1776
|
private modelPropertyLookup;
|
|
1779
|
-
private
|
|
1780
|
-
private
|
|
1781
|
-
private
|
|
1782
|
-
private
|
|
1783
|
-
private copiedCellEntity;
|
|
1784
|
-
private copiedCellParams;
|
|
1785
|
-
private copiedCellText;
|
|
1786
|
-
private copiedRows;
|
|
1787
|
-
private copiedRowsText;
|
|
1777
|
+
private copiedData;
|
|
1778
|
+
private pendingCopy;
|
|
1779
|
+
private copySequence;
|
|
1780
|
+
private animatedElements;
|
|
1788
1781
|
private gridElement;
|
|
1789
1782
|
constructor(util: TruUtil, formatter: TruFormatter, uiNotification: TruUiNotification, modelPropertyLookup: TruModelPropertyLookup);
|
|
1783
|
+
private bindControlEntity;
|
|
1790
1784
|
private formatCellValue;
|
|
1791
1785
|
private normalizeClipboardText;
|
|
1792
|
-
private
|
|
1786
|
+
private writeClipboard;
|
|
1787
|
+
private readClipboard;
|
|
1793
1788
|
private parseExternalCellValue;
|
|
1794
1789
|
private removeBorderAnimation;
|
|
1795
|
-
private addCellBorderAnimation;
|
|
1796
|
-
private addRowBorderAnimation;
|
|
1797
1790
|
setGridElement(el: HTMLElement): void;
|
|
1798
1791
|
clearAnimations(): void;
|
|
1799
|
-
copyCell: (params:
|
|
1800
|
-
pasteCell: (params:
|
|
1801
|
-
copyRow: (tableName: string, columnDefs: Array<ColDef>, copiedRows: Array<any>, includeHeaders?: boolean) => Promise<void>;
|
|
1802
|
-
pasteRow: (gridApi: GridApi, config: ITruDataGridConfig, selectedRows: any) => Promise<void>;
|
|
1792
|
+
copyCell: (params: ClipboardCellParams, tableName: string, columnName: string, copiedCellData: any, copiedCellEntity: Entity, event?: ClipboardEvent) => Promise<void>;
|
|
1793
|
+
pasteCell: (params: ClipboardCellParams, pastedCellData: any, pastedCell: Entity, event?: ClipboardEvent) => Promise<void>;
|
|
1794
|
+
copyRow: (tableName: string, columnDefs: Array<ColDef>, copiedRows: Array<any>, includeHeaders?: boolean, event?: ClipboardEvent) => Promise<void>;
|
|
1795
|
+
pasteRow: (gridApi: GridApi, config: ITruDataGridConfig, selectedRows: any, event?: ClipboardEvent) => Promise<void>;
|
|
1803
1796
|
insertRowsAtTop: (dataContext: TruDataContext, config: ITruDataGridConfig, addEntity: (newEntity: any, dataNotification: boolean) => {}) => void;
|
|
1804
1797
|
getCopiedRows: () => TruEntityBase[];
|
|
1805
1798
|
getCopiedCell: () => Entity | null;
|
|
@@ -2033,6 +2026,9 @@ declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
|
|
|
2033
2026
|
onRowClicked: (cellData: any) => void;
|
|
2034
2027
|
onCellDoubleClicked: (cellData: any) => void;
|
|
2035
2028
|
onCellKeyDown: (params: any) => void;
|
|
2029
|
+
private getClipboardCell;
|
|
2030
|
+
onCopy: (event: ClipboardEvent) => void;
|
|
2031
|
+
onPaste: (event: ClipboardEvent) => void;
|
|
2036
2032
|
onCellMouseOver(e: any): void;
|
|
2037
2033
|
onCellMouseOut(e: any): void;
|
|
2038
2034
|
onRightClick(event: MouseEvent): void;
|
|
@@ -2580,13 +2576,18 @@ declare class TruPasswordDialog implements OnInit {
|
|
|
2580
2576
|
message: string | null;
|
|
2581
2577
|
showPassword: boolean;
|
|
2582
2578
|
passwordScore: number | null;
|
|
2579
|
+
passwordWarning: string | null;
|
|
2580
|
+
passwordSuggestions: string[];
|
|
2583
2581
|
readonly passwordStrengthLevels: number[];
|
|
2582
|
+
readonly passwordStrengthLabels: string[];
|
|
2583
|
+
readonly minimumPasswordScore = 1;
|
|
2584
2584
|
errorMsg: string | null;
|
|
2585
2585
|
busy: boolean;
|
|
2586
2586
|
private baseUrl;
|
|
2587
2587
|
private subs;
|
|
2588
2588
|
constructor(dialogRef: MatDialogRef<TruPasswordDialog>, http: HttpClient, appEnvironment: TruAppEnvironment, uiNotification: TruUiNotification, data: any);
|
|
2589
2589
|
onShowPasswordClicked: () => void;
|
|
2590
|
+
get validationMessage(): string | null;
|
|
2590
2591
|
canSubmit: () => boolean;
|
|
2591
2592
|
onConfirm: () => void;
|
|
2592
2593
|
onDismiss: () => void;
|