ngx-rs-ant 1.8.7 → 1.8.8

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,8 +1,9 @@
1
1
  import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
2
2
  import { FormService } from "./form.service";
3
3
  import { DxButtonComponent, DxValidationGroupComponent } from "devextreme-angular";
4
+ import { UniqueId } from "../util/UniqueId";
4
5
  import * as i0 from "@angular/core";
5
- export declare class FormComponent implements OnInit, OnChanges, OnDestroy {
6
+ export declare class FormComponent extends UniqueId implements OnInit, OnChanges, OnDestroy {
6
7
  protected viewContainerRef: ViewContainerRef;
7
8
  private service;
8
9
  private elementRef;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-rs-ant",
3
- "version": "1.8.7",
3
+ "version": "1.8.8",
4
4
  "license": "MIT",
5
5
  "description": "RsAnt components based on Angular and DevExtreme",
6
6
  "exports": {
@@ -4,6 +4,10 @@ export declare class FormItemComponentBase extends ComponentBase {
4
4
  * 编辑模式,在设计器中为true,用于区分组件设计和应用状态
5
5
  */
6
6
  editMode: boolean;
7
+ /**
8
+ * 表单唯一标识,表单组件dx-validator的validationGroup名称,用于统一校验表单
9
+ */
10
+ validationGroupName: string;
7
11
  /**
8
12
  * 当前表单对应数据类租户
9
13
  */
@@ -0,0 +1,6 @@
1
+ export declare class UniqueId {
2
+ private static __ID_COUNTER;
3
+ constructor(prefix: string);
4
+ private readonly uniqueId;
5
+ getUniqueId(): string;
6
+ }
package/util/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { DxValidationGroupComponent, DxValidatorComponent } from "devextreme-angular";
1
+ import { DxValidatorComponent } from "devextreme-angular";
2
2
  export declare function notify_error(message: string): void;
3
3
  export declare function notify_warning(message: string): void;
4
4
  export declare function notify_success(message: string): void;
@@ -11,4 +11,5 @@ export declare function format_file_size(size: number): string;
11
11
  export declare function filename_from_disposition(disposition: string): string | null;
12
12
  export declare function download_file(blob: Blob, filename: string, callback?: Function): void;
13
13
  export declare function validate(validator: DxValidatorComponent): Promise<boolean>;
14
- export declare function validate_group(validationGroup: DxValidationGroupComponent): Promise<boolean>;
14
+ export declare function validate_group(validationGroupComponent: any): Promise<boolean>;
15
+ export declare function validate_group_by_name(name: string, brokenElementParent: Element): Promise<boolean>;