@trudb/tru-common-lib 0.0.316 → 0.0.317
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-edit-control-base.mjs +4 -2
- package/esm2020/lib/components/validation-dialog/tru-validation-dialog-module.mjs +19 -0
- package/esm2020/lib/components/validation-dialog/tru-validation-dialog.mjs +55 -0
- package/esm2020/lib/services/tru-data-context.mjs +22 -17
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/trudb-tru-common-lib.mjs +90 -18
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +90 -18
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/base-classes/tru-edit-control-base.d.ts +5 -2
- package/lib/components/validation-dialog/tru-validation-dialog-module.d.ts +9 -0
- package/lib/components/validation-dialog/tru-validation-dialog.d.ts +14 -0
- package/lib/services/tru-data-context.d.ts +3 -2
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { TruEditControlConfigBase } from './tru-edit-control-config-base';
|
|
2
|
+
import { TruEntityBase } from './tru-entity-base';
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
2
4
|
export declare abstract class TruEditControlBase {
|
|
3
|
-
abstract config:
|
|
5
|
+
abstract config: TruEditControlConfigBase;
|
|
6
|
+
abstract entity: TruEntityBase;
|
|
4
7
|
abstract label: string | undefined;
|
|
5
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruEditControlBase, never>;
|
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TruEditControlBase, never, never, { "config": "config"; }, {}, never, never, false, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TruEditControlBase, never, never, { "config": "config"; "entity": "entity"; }, {}, never, never, false, never>;
|
|
7
10
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-validation-dialog";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class TruValidationDialogModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruValidationDialogModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruValidationDialogModule, [typeof i1.TruValidationDialog], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.TruValidationDialog]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TruValidationDialogModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TruEditControlBase } from '../../base-classes/tru-edit-control-base';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TruValidationDialog implements OnInit {
|
|
5
|
+
private host;
|
|
6
|
+
mergeData: any;
|
|
7
|
+
constructor(host: TruEditControlBase);
|
|
8
|
+
acceptAll: () => void;
|
|
9
|
+
accept: () => void;
|
|
10
|
+
decline: () => void;
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruValidationDialog, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TruValidationDialog, "tru-validation-dialog", never, {}, {}, never, never, false, never>;
|
|
14
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Entity, EntityType } from "breeze-client";
|
|
1
|
+
import { Entity, EntityType, ValidationError } from "breeze-client";
|
|
2
2
|
import { TruBreezeContextFactory, TruBreezeContext } from './tru-breeze-context-factory';
|
|
3
3
|
import { TruEntityAccessor } from './tru-entity-accessor';
|
|
4
4
|
import { TruUiNotification } from './tru-ui-notification';
|
|
5
5
|
import { TruAppEnvironment } from './tru-app-environment';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class TruDataContext {
|
|
8
9
|
private breezeContextFactory;
|
|
@@ -13,7 +14,7 @@ export declare class TruDataContext {
|
|
|
13
14
|
private _pendingDeleteEntities;
|
|
14
15
|
private _pendingCascadeDeleteEntities;
|
|
15
16
|
constructor(breezeContextFactory: TruBreezeContextFactory, appEnvironment: TruAppEnvironment, entityAccessor: TruEntityAccessor, uiNotification: TruUiNotification);
|
|
16
|
-
|
|
17
|
+
getValidationErrors: (entities?: Array<Entity> | null) => Observable<Array<ValidationError[]>>;
|
|
17
18
|
private formatValidationErrors;
|
|
18
19
|
private findCachedCascadeDeleteDescendants;
|
|
19
20
|
private markCachedDescendantsForDelete;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -74,6 +74,8 @@ export * from './lib/components/toolbar/text/tru-toolbar-text-module';
|
|
|
74
74
|
export * from './lib/components/login/tru-login';
|
|
75
75
|
export * from './lib/components/login/tru-login-module';
|
|
76
76
|
export * from './lib/components/login/services/tru-auth-interceptor';
|
|
77
|
+
export * from './lib/components/validation-dialog/tru-validation-dialog';
|
|
78
|
+
export * from './lib/components/validation-dialog/tru-validation-dialog-module';
|
|
77
79
|
export * from './lib/directives/search-panel-position-manager/tru-search-panel-position-manager';
|
|
78
80
|
export * from './lib/directives/search-panel-position-manager/tru-search-panel-position-manager-module';
|
|
79
81
|
export * from './lib/services/tru-app-environment';
|