@trudb/tru-common-lib 0.0.997 → 0.0.1002
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/esm2022/lib/components/validation-dialog/tru-validation-dialog-config.mjs +21 -8
- package/esm2022/lib/components/validation-dialog/tru-validation-dialog.mjs +1 -1
- package/esm2022/lib/directives/breeze-grid-validator/tru-breeze-grid-validator.mjs +22 -14
- package/esm2022/lib/directives/breeze-validator/tru-breeze-validator.mjs +16 -17
- package/fesm2022/trudb-tru-common-lib.mjs +36 -54
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/validation-dialog/tru-validation-dialog-config.d.ts +11 -3
- package/lib/directives/breeze-validator/tru-breeze-validator.d.ts +3 -5
- package/package.json +1 -1
|
@@ -1,14 +1,22 @@
|
|
|
1
|
+
import { TruEditControlConfigBase } from "../../base-classes/tru-edit-control-config-base";
|
|
1
2
|
import { TruEntityBase } from "../../base-classes/tru-entity-base";
|
|
3
|
+
import { TruListControlConfigBase } from "../../base-classes/tru-list-control-config-base";
|
|
2
4
|
import { TruMergeDataSet } from "../../classes/tru-merge-data-set";
|
|
3
5
|
export declare class TruValidationDialogConfig {
|
|
4
6
|
private _entity;
|
|
7
|
+
private _propertyConfig;
|
|
8
|
+
private _isSubProperty;
|
|
5
9
|
private _propertyName;
|
|
6
10
|
private _errorMsg;
|
|
7
11
|
private _mergeData;
|
|
8
12
|
get entity(): TruEntityBase;
|
|
9
|
-
get
|
|
10
|
-
get
|
|
13
|
+
get propertyConfig(): TruEditControlConfigBase<any> | TruListControlConfigBase<any>;
|
|
14
|
+
get isSubProperty(): boolean;
|
|
15
|
+
get propertyName(): string | null;
|
|
16
|
+
set propertyName(value: string);
|
|
17
|
+
get errorMsg(): string | null;
|
|
18
|
+
set errorMsg(value: string);
|
|
11
19
|
get mergeData(): TruMergeDataSet | null;
|
|
12
20
|
set mergeData(value: TruMergeDataSet | null);
|
|
13
|
-
constructor(entity: TruEntityBase,
|
|
21
|
+
constructor(entity: TruEntityBase, propertyConfig: TruEditControlConfigBase<any> | TruListControlConfigBase<any>, isSubProperty: boolean);
|
|
14
22
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentFactoryResolver, ElementRef, OnDestroy, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { TruEntityBase } from '../../base-classes/tru-entity-base';
|
|
2
|
+
import { TruValidationDialogConfig } from '../../components/validation-dialog/tru-validation-dialog-config';
|
|
4
3
|
import { TruDataContext } from '../../services/tru-data-context';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class TruBreezeValidator implements OnInit, OnDestroy {
|
|
@@ -8,8 +7,7 @@ export declare class TruBreezeValidator implements OnInit, OnDestroy {
|
|
|
8
7
|
private dataContext;
|
|
9
8
|
private viewContainerRef;
|
|
10
9
|
private componentFactoryResolver;
|
|
11
|
-
|
|
12
|
-
config: TruEditControlConfigBase<any>;
|
|
10
|
+
config: TruValidationDialogConfig;
|
|
13
11
|
constructor(el: ElementRef, dataContext: TruDataContext, viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver);
|
|
14
12
|
configModel: any;
|
|
15
13
|
mergeData: any;
|
|
@@ -26,5 +24,5 @@ export declare class TruBreezeValidator implements OnInit, OnDestroy {
|
|
|
26
24
|
ngOnChanges(changes: SimpleChanges): void;
|
|
27
25
|
ngOnDestroy(): void;
|
|
28
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruBreezeValidator, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TruBreezeValidator, "[truBreezeValidator]", never, { "
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TruBreezeValidator, "[truBreezeValidator]", never, { "config": { "alias": "truBreezeValidator"; "required": false; }; }, {}, never, never, false, never>;
|
|
30
28
|
}
|