@trudb/tru-common-lib 0.0.340 → 0.0.342
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/esm2020/lib/base-classes/tru-entity-base.mjs +2 -1
- package/esm2020/lib/classes/tru-merge-data-set.mjs +12 -0
- package/esm2020/lib/classes/tru-merge-data.mjs +17 -0
- package/esm2020/lib/components/validation-dialog/tru-validation-dialog-config.mjs +21 -0
- package/esm2020/lib/components/validation-dialog/tru-validation-dialog.mjs +44 -37
- package/esm2020/lib/directives/breeze-validator/tru-breeze-validator.mjs +18 -8
- package/fesm2015/trudb-tru-common-lib.mjs +80 -43
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +80 -43
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/base-classes/tru-entity-base.d.ts +2 -1
- package/lib/classes/tru-merge-data-set.d.ts +7 -0
- package/lib/classes/tru-merge-data.d.ts +9 -0
- package/lib/components/validation-dialog/tru-validation-dialog-config.d.ts +13 -0
- package/lib/components/validation-dialog/tru-validation-dialog.d.ts +11 -6
- package/lib/directives/breeze-validator/tru-breeze-validator.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Entity, EntityAspect, EntityType } from 'breeze-client';
|
|
2
|
+
import { TruMergeDataSet } from '../classes/tru-merge-data-set';
|
|
2
3
|
export declare class TruEntityBase implements Entity {
|
|
3
4
|
constructor(...args: any[]);
|
|
4
5
|
entityAspect: EntityAspect;
|
|
@@ -8,5 +9,5 @@ export declare class TruEntityBase implements Entity {
|
|
|
8
9
|
Updated: Date | undefined;
|
|
9
10
|
UpdatedRef: number | undefined;
|
|
10
11
|
rowver: any;
|
|
11
|
-
|
|
12
|
+
Merge_Data_Set: TruMergeDataSet | undefined;
|
|
12
13
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TruEntityBase } from "../../base-classes/tru-entity-base";
|
|
2
|
+
import { TruMergeDataSet } from "../../classes/tru-merge-data-set";
|
|
3
|
+
export declare class TruValidationDialogConfig {
|
|
4
|
+
private _entity;
|
|
5
|
+
private _propertyName;
|
|
6
|
+
private _errorMsg;
|
|
7
|
+
private _mergeData;
|
|
8
|
+
get entity(): TruEntityBase;
|
|
9
|
+
get propertyName(): string;
|
|
10
|
+
get errorMsg(): string;
|
|
11
|
+
get mergeData(): TruMergeDataSet | null;
|
|
12
|
+
constructor(entity: TruEntityBase, propertyName: string, errorMsg: string, mergeData?: TruMergeDataSet | null);
|
|
13
|
+
}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { TruUtil } from '../../services/tru-util';
|
|
3
|
+
import { TruValidationDialogConfig } from './tru-validation-dialog-config';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TruValidationDialog implements OnInit {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
export declare class TruValidationDialog implements OnInit, OnDestroy {
|
|
6
|
+
private elementRef;
|
|
7
|
+
private util;
|
|
8
|
+
config: TruValidationDialogConfig;
|
|
9
|
+
errorMsg: string;
|
|
10
|
+
constructor(elementRef: ElementRef, util: TruUtil);
|
|
7
11
|
onAcceptAll: () => void;
|
|
8
12
|
onAccept: () => void;
|
|
9
13
|
onDecline: () => void;
|
|
10
14
|
ngOnInit(): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
11
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruValidationDialog, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TruValidationDialog, "tru-validation-dialog", never, { "
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TruValidationDialog, "tru-validation-dialog", never, { "config": "config"; }, {}, never, never, false, never>;
|
|
13
18
|
}
|
|
@@ -16,8 +16,9 @@ export declare class TruBreezeValidator implements OnInit, OnDestroy {
|
|
|
16
16
|
private dialogRef;
|
|
17
17
|
private subs;
|
|
18
18
|
private getMergeData;
|
|
19
|
-
private
|
|
20
|
-
private
|
|
19
|
+
private parseErrorMessages;
|
|
20
|
+
private addValidationDialog;
|
|
21
|
+
private removeValidationDialog;
|
|
21
22
|
valErrsChanged: (validationObject: any) => void;
|
|
22
23
|
ngOnInit(): void;
|
|
23
24
|
ngOnDestroy(): void;
|