@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.
@@ -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
- Merge_Data: any;
12
+ Merge_Data_Set: TruMergeDataSet | undefined;
12
13
  }
@@ -0,0 +1,7 @@
1
+ import { TruMergeData } from "./tru-merge-data";
2
+ export declare class TruMergeDataSet {
3
+ private _data;
4
+ getData: (propertyName: string) => TruMergeData | undefined;
5
+ setData: (propertyName: string, data: TruMergeData) => void;
6
+ constructor();
7
+ }
@@ -0,0 +1,9 @@
1
+ export declare class TruMergeData {
2
+ private _value;
3
+ private _modifiedBy;
4
+ private _hid;
5
+ get value(): string;
6
+ get modifiedBy(): string;
7
+ get hid(): string;
8
+ constructor(value: any, modifiedBy: string, hid: string);
9
+ }
@@ -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
- entity: any;
5
- mergeData: any;
6
- constructor();
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, { "entity": "entity"; "mergeData": "mergeData"; }, {}, never, never, false, 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 addValidation;
20
- private removeValidation;
19
+ private parseErrorMessages;
20
+ private addValidationDialog;
21
+ private removeValidationDialog;
21
22
  valErrsChanged: (validationObject: any) => void;
22
23
  ngOnInit(): void;
23
24
  ngOnDestroy(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trudb/tru-common-lib",
3
- "version": "0.0.340",
3
+ "version": "0.0.342",
4
4
  "type": "module",
5
5
  "peerDependencies": {},
6
6
  "dependencies": {