@trudb/tru-common-lib 0.0.775 → 0.0.777
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/grid-validation-dialog/tru-grid-validation-dialog-config.mjs +25 -0
- package/esm2022/lib/components/grid-validation-dialog/tru-grid-validation-dialog-module.mjs +19 -0
- package/esm2022/lib/components/grid-validation-dialog/tru-grid-validation-dialog.mjs +85 -0
- package/esm2022/lib/directives/breeze-grid-validator/tru-breeze-grid-validator-module.mjs +19 -0
- package/esm2022/lib/directives/breeze-grid-validator/tru-breeze-grid-validator.mjs +118 -0
- package/esm2022/lib/directives/breeze-validator/tru-breeze-validator.mjs +10 -4
- package/esm2022/public-api.mjs +7 -1
- package/fesm2022/trudb-tru-common-lib.mjs +257 -4
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/grid-validation-dialog/tru-grid-validation-dialog-config.d.ts +13 -0
- package/lib/components/grid-validation-dialog/tru-grid-validation-dialog-module.d.ts +9 -0
- package/lib/components/grid-validation-dialog/tru-grid-validation-dialog.d.ts +21 -0
- package/lib/directives/breeze-grid-validator/tru-breeze-grid-validator-module.d.ts +9 -0
- package/lib/directives/breeze-grid-validator/tru-breeze-grid-validator.d.ts +30 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -0
|
@@ -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 TruGridValidationDialogConfig {
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-grid-validation-dialog";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class TruGridValidationDialogModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruGridValidationDialogModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruGridValidationDialogModule, [typeof i1.TruGridValidationDialog], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.TruGridValidationDialog]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TruGridValidationDialogModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { TruUtil } from '../../services/tru-util';
|
|
3
|
+
import { TruGridValidationDialogConfig } from './tru-grid-validation-dialog-config';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TruGridValidationDialog implements OnInit, OnDestroy {
|
|
6
|
+
private renderer;
|
|
7
|
+
private elementRef;
|
|
8
|
+
private util;
|
|
9
|
+
config: TruGridValidationDialogConfig;
|
|
10
|
+
errorMsg: string;
|
|
11
|
+
private listeners;
|
|
12
|
+
constructor(renderer: Renderer2, elementRef: ElementRef, util: TruUtil);
|
|
13
|
+
onAcceptAll: () => void;
|
|
14
|
+
onAccept: () => void;
|
|
15
|
+
onDecline: () => void;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruGridValidationDialog, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TruGridValidationDialog, "tru-grid-validation-dialog", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-breeze-grid-validator";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class TruBreezeGridValidatorModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruBreezeGridValidatorModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruBreezeGridValidatorModule, [typeof i1.TruBreezeGridValidator], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.TruBreezeGridValidator]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TruBreezeGridValidatorModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentFactoryResolver, ElementRef, OnDestroy, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { TruEditControlConfigBase } from '../../base-classes/tru-edit-control-config-base';
|
|
3
|
+
import { TruEntityBase } from '../../base-classes/tru-entity-base';
|
|
4
|
+
import { TruDataContext } from '../../services/tru-data-context';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class TruBreezeGridValidator implements OnInit, OnDestroy {
|
|
7
|
+
private el;
|
|
8
|
+
private dataContext;
|
|
9
|
+
private viewContainerRef;
|
|
10
|
+
private componentFactoryResolver;
|
|
11
|
+
entity: TruEntityBase;
|
|
12
|
+
config: TruEditControlConfigBase<any>;
|
|
13
|
+
constructor(el: ElementRef, dataContext: TruDataContext, viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver);
|
|
14
|
+
configModel: any;
|
|
15
|
+
mergeData: any;
|
|
16
|
+
private dialogRef;
|
|
17
|
+
private subs;
|
|
18
|
+
private currentDialog;
|
|
19
|
+
private getMergeData;
|
|
20
|
+
private parseErrorMessages;
|
|
21
|
+
private addValidationDialog;
|
|
22
|
+
private removeValidationDialog;
|
|
23
|
+
valErrsChanged: (validationObject: any) => void;
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
ngAfterViewInit(): void;
|
|
26
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruBreezeGridValidator, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TruBreezeGridValidator, "[truBreezeGridValidator]", never, { "entity": { "alias": "truBreezeValidator"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
|
|
30
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -56,6 +56,8 @@ export * from './lib/components/desktop/services/tru-window-event-args';
|
|
|
56
56
|
export * from './lib/components/desktop/services/tru-window-event-handler';
|
|
57
57
|
export * from './lib/components/export-dialog/tru-export-dialog';
|
|
58
58
|
export * from './lib/components/export-dialog/tru-export-dialog-module';
|
|
59
|
+
export * from './lib/components/grid-validation-dialog/tru-grid-validation-dialog';
|
|
60
|
+
export * from './lib/components/grid-validation-dialog/tru-grid-validation-dialog-module';
|
|
59
61
|
export * from './lib/components/layout/column/tru-column';
|
|
60
62
|
export * from './lib/components/layout/column/tru-column-module';
|
|
61
63
|
export * from './lib/components/layout/form/tru-form';
|
|
@@ -88,6 +90,10 @@ export * from './lib/components/login/services/tru-auth';
|
|
|
88
90
|
export * from './lib/components/login/services/tru-auth-interceptor';
|
|
89
91
|
export * from './lib/components/validation-dialog/tru-validation-dialog';
|
|
90
92
|
export * from './lib/components/validation-dialog/tru-validation-dialog-module';
|
|
93
|
+
export * from './lib/components/grid-validation-dialog/tru-grid-validation-dialog';
|
|
94
|
+
export * from './lib/components/grid-validation-dialog/tru-grid-validation-dialog-module';
|
|
95
|
+
export * from './lib/directives/breeze-grid-validator/tru-breeze-grid-validator';
|
|
96
|
+
export * from './lib/directives/breeze-grid-validator/tru-breeze-grid-validator-module';
|
|
91
97
|
export * from './lib/directives/breeze-validator/tru-breeze-validator';
|
|
92
98
|
export * from './lib/directives/breeze-validator/tru-breeze-validator-module';
|
|
93
99
|
export * from './lib/directives/search-panel-position-manager/tru-search-panel-position-manager';
|