@trudb/tru-common-lib 0.1.83 → 0.1.85
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/base-classes/tru-edit-control-config-base.mjs +1 -1
- package/esm2022/lib/base-classes/tru-list-control-config-base.mjs +1 -1
- package/esm2022/lib/components/data-grid/tru-data-grid.mjs +4 -3
- package/esm2022/lib/directives/breeze-validator/tru-breeze-validator.mjs +27 -21
- package/fesm2022/trudb-tru-common-lib.mjs +28 -22
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/base-classes/tru-edit-control-config-base.d.ts +1 -0
- package/lib/base-classes/tru-list-control-config-base.d.ts +1 -0
- package/lib/directives/breeze-validator/tru-breeze-validator.d.ts +6 -3
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export declare abstract class TruEditControlConfigBase<T> {
|
|
|
10
10
|
abstract propertyPath: string | undefined;
|
|
11
11
|
abstract rules(entity: any): {} | null;
|
|
12
12
|
abstract subProperties: Array<string>;
|
|
13
|
+
abstract isSubProperty: boolean;
|
|
13
14
|
abstract get property(): TruPropertyConfigBase;
|
|
14
15
|
abstract set entity(value: any);
|
|
15
16
|
abstract get $(): T;
|
|
@@ -10,6 +10,7 @@ export declare abstract class TruListControlConfigBase<T> {
|
|
|
10
10
|
abstract propertyPath: string | undefined;
|
|
11
11
|
abstract rules(entity: any): {} | null;
|
|
12
12
|
abstract subProperties: Array<string>;
|
|
13
|
+
abstract isSubProperty: boolean;
|
|
13
14
|
abstract get property(): TruPropertyConfigBase;
|
|
14
15
|
abstract set entity(value: any);
|
|
15
16
|
abstract get $(): T;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentFactoryResolver, ElementRef, OnDestroy, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { TruEditControlConfigBase } from '../../base-classes/tru-edit-control-config-base';
|
|
3
|
+
import { TruListControlConfigBase } from '../../base-classes/tru-list-control-config-base';
|
|
3
4
|
import { TruDataContext } from '../../services/tru-data-context';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class TruBreezeValidator implements OnInit, OnDestroy {
|
|
@@ -7,13 +8,15 @@ export declare class TruBreezeValidator implements OnInit, OnDestroy {
|
|
|
7
8
|
private dataContext;
|
|
8
9
|
private viewContainerRef;
|
|
9
10
|
private componentFactoryResolver;
|
|
10
|
-
|
|
11
|
+
entity: any;
|
|
12
|
+
config: TruEditControlConfigBase<any> | TruListControlConfigBase<any>;
|
|
11
13
|
constructor(el: ElementRef, dataContext: TruDataContext, viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver);
|
|
12
14
|
configModel: any;
|
|
13
15
|
mergeData: any;
|
|
14
16
|
private dialogRef;
|
|
15
17
|
private subs;
|
|
16
18
|
private currentDialog;
|
|
19
|
+
private context;
|
|
17
20
|
private getMergeData;
|
|
18
21
|
private parseErrorMessages;
|
|
19
22
|
private addValidationDialog;
|
|
@@ -24,5 +27,5 @@ export declare class TruBreezeValidator implements OnInit, OnDestroy {
|
|
|
24
27
|
ngOnChanges(changes: SimpleChanges): void;
|
|
25
28
|
ngOnDestroy(): void;
|
|
26
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruBreezeValidator, never>;
|
|
27
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TruBreezeValidator, "[truBreezeValidator]", never, { "
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TruBreezeValidator, "[truBreezeValidator]", never, { "entity": { "alias": "truBreezeValidator"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
|
|
28
31
|
}
|