@dignite-ng/expand.dynamic-form 3.0.0-rc.49 → 3.0.0-rc.50

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.
Files changed (40) hide show
  1. package/esm2022/lib/components/dynamic/dynamic-config.component.mjs +56 -6
  2. package/esm2022/lib/components/dynamic/dynamic-control.component.mjs +87 -6
  3. package/esm2022/lib/components/dynamic/dynamic-search.component.mjs +3 -2
  4. package/esm2022/lib/components/dynamic/dynamic-view.component.mjs +5 -3
  5. package/esm2022/lib/components/dynamic/dynamic.component.mjs +7 -3
  6. package/esm2022/lib/components/form/date-edit/date-edit-config.component.mjs +11 -10
  7. package/esm2022/lib/components/form/date-edit/date-edit-control.component.mjs +5 -4
  8. package/esm2022/lib/components/form/date-edit/date-edit-view.component.mjs +3 -2
  9. package/esm2022/lib/components/form/form-control-group.mjs +2 -2
  10. package/esm2022/lib/components/form/numeric-edit/numberic-edit-config.component.mjs +10 -9
  11. package/esm2022/lib/components/form/numeric-edit/numeric-edit-search.component.mjs +1 -1
  12. package/esm2022/lib/components/form/select/select-config.component.mjs +16 -10
  13. package/esm2022/lib/components/form/select/select-config.mjs +4 -11
  14. package/esm2022/lib/components/form/select/select-view.component.mjs +3 -2
  15. package/esm2022/lib/components/form/switch/switch-config.component.mjs +14 -11
  16. package/esm2022/lib/components/form/switch/switch-config.mjs +3 -10
  17. package/esm2022/lib/components/form/text-edit/text-edit-config.component.mjs +14 -14
  18. package/esm2022/lib/components/form/text-edit/text-edit-config.mjs +5 -12
  19. package/esm2022/lib/services/df-api.service.mjs +2 -60
  20. package/esm2022/lib/services/form-control.service.mjs +8 -4
  21. package/fesm2022/dignite-ng-expand.dynamic-form.mjs +229 -156
  22. package/fesm2022/dignite-ng-expand.dynamic-form.mjs.map +1 -1
  23. package/lib/components/dynamic/dynamic-config.component.d.ts +17 -2
  24. package/lib/components/dynamic/dynamic-control.component.d.ts +28 -2
  25. package/lib/components/dynamic/dynamic-view.component.d.ts +2 -2
  26. package/lib/components/dynamic/dynamic.component.d.ts +4 -0
  27. package/lib/components/form/date-edit/date-edit-config.component.d.ts +1 -1
  28. package/lib/components/form/date-edit/date-edit-control.component.d.ts +2 -2
  29. package/lib/components/form/date-edit/date-edit-view.component.d.ts +2 -1
  30. package/lib/components/form/form-control-group.d.ts +1 -1
  31. package/lib/components/form/numeric-edit/numberic-edit-config.component.d.ts +1 -1
  32. package/lib/components/form/select/select-config.component.d.ts +7 -1
  33. package/lib/components/form/select/select-config.d.ts +0 -1
  34. package/lib/components/form/switch/switch-config.component.d.ts +2 -2
  35. package/lib/components/form/switch/switch-config.d.ts +0 -1
  36. package/lib/components/form/text-edit/text-edit-config.component.d.ts +4 -4
  37. package/lib/components/form/text-edit/text-edit-config.d.ts +0 -1
  38. package/lib/services/df-api.service.d.ts +0 -11
  39. package/lib/services/form-control.service.d.ts +5 -1
  40. package/package.json +1 -1
@@ -1,5 +1,20 @@
1
+ import { AfterContentInit, ViewContainerRef } from '@angular/core';
2
+ import { FormControl, FormGroup } from '@angular/forms';
1
3
  import * as i0 from "@angular/core";
2
- export declare class DynamicConfigComponent {
4
+ export declare class DynamicConfigComponent implements AfterContentInit {
5
+ private mergedConfig;
6
+ constructor(mergedConfig: any[]);
7
+ formControlName: any;
8
+ set type(v: string);
9
+ selected: any;
10
+ formEntity: FormGroup | undefined;
11
+ set form(v: FormGroup | undefined);
12
+ get formControlNameInput(): FormControl;
13
+ ngAfterContentInit(): void;
14
+ /**表单控件模板-动态表单配置组件 */
15
+ FormconfigRef?: ViewContainerRef;
16
+ /**加载动态表单配置组件 */
17
+ loadfieldConfigComponent(formControlName: string): void;
3
18
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicConfigComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicConfigComponent, "df-dynamic-config", never, {}, {}, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicConfigComponent, "df-dynamic-config", never, { "type": { "alias": "type"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, {}, never, never, false, never>;
5
20
  }
@@ -1,5 +1,31 @@
1
+ import { AfterContentInit, ViewContainerRef } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
1
3
  import * as i0 from "@angular/core";
2
- export declare class DynamicControlComponent {
4
+ export declare class DynamicControlComponent implements AfterContentInit {
5
+ private mergedConfig;
6
+ /**选择的表单信息 */
7
+ _selected: any;
8
+ set selected(v: any);
9
+ /**语言 */
10
+ _culture: FormGroup | undefined;
11
+ set culture(v: any);
12
+ /**父级字段名称,用于为表单设置控件赋值 */
13
+ _parentFiledName: any;
14
+ set parentFiledName(v: any);
15
+ /**字段配置列表 */
16
+ _fields: any;
17
+ set fields(v: any);
18
+ /**表单实体 */
19
+ _entity: FormGroup | undefined;
20
+ set entity(v: any);
21
+ /**表单控件模板-动态表单配置组件 */
22
+ FormControlRef?: ViewContainerRef;
23
+ /**表单控件模板-动态表单组件 */
24
+ FormComponentsRef?: ViewContainerRef;
25
+ constructor(mergedConfig: any[]);
26
+ ngAfterContentInit(): void;
27
+ /**加载动态表单组件 */
28
+ loadfieldComponent(formControlName: string): void;
3
29
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicControlComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicControlComponent, "df-dynamic-control", never, {}, {}, never, never, false, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicControlComponent, "df-dynamic-control", never, { "selected": { "alias": "selected"; "required": false; }; "culture": { "alias": "culture"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; }, {}, never, never, false, never>;
5
31
  }
@@ -1,8 +1,8 @@
1
- import { ViewContainerRef } from '@angular/core';
1
+ import { ViewContainerRef, AfterContentInit } from '@angular/core';
2
2
  import { FormControlService } from '../../services/form-control.service';
3
3
  import { FieldControlGroupInterfaces } from '../../interfaces';
4
4
  import * as i0 from "@angular/core";
5
- export declare class DynamicViewComponent {
5
+ export declare class DynamicViewComponent implements AfterContentInit {
6
6
  private _FormControlService;
7
7
  constructor(_FormControlService: FormControlService);
8
8
  /**是否显示再列表 */
@@ -2,6 +2,10 @@ import { ViewContainerRef } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { FieldControlGroupInterfaces } from '../../interfaces';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * 丢弃
7
+ * @deprecated
8
+ */
5
9
  export declare class DynamicComponent {
6
10
  private mergedConfig;
7
11
  /**选择的表单信息 */
@@ -14,7 +14,7 @@ export declare class DateEditConfigComponent {
14
14
  _selected: any;
15
15
  set selected(v: any);
16
16
  /**表单实体 */
17
- _Entity: FormGroup | undefined;
17
+ formEntity: FormGroup | undefined;
18
18
  set Entity(v: FormGroup);
19
19
  dateTimeType: any;
20
20
  get formConfiguration(): FormGroup;
@@ -1,8 +1,8 @@
1
- import { ElementRef, ChangeDetectorRef } from '@angular/core';
1
+ import { ElementRef, ChangeDetectorRef, OnDestroy } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { DateEditInterfaces } from '../../../enums/date-edit-interfaces';
4
4
  import * as i0 from "@angular/core";
5
- export declare class DateEditControlComponent {
5
+ export declare class DateEditControlComponent implements OnDestroy {
6
6
  private fb;
7
7
  private cdr;
8
8
  constructor(fb: FormBuilder, cdr: ChangeDetectorRef);
@@ -1,5 +1,6 @@
1
+ import { AfterContentInit } from '@angular/core';
1
2
  import * as i0 from "@angular/core";
2
- export declare class DateEditViewComponent {
3
+ export declare class DateEditViewComponent implements AfterContentInit {
3
4
  /**展示则内容 */
4
5
  showValue: any;
5
6
  /**是否显示再列表 */
@@ -3,4 +3,4 @@ import { FieldControlGroupInterfaces } from '../../interfaces';
3
3
  * 表单控件分组-包含配置,控件,显示的数组
4
4
  */
5
5
  export declare const FieldControlGroup: FieldControlGroupInterfaces[];
6
- export declare function AddFieldControlGroup(array?: any[]): FieldControlGroupInterfaces[];
6
+ export declare function addFieldControlGroup(array?: any[]): FieldControlGroupInterfaces[];
@@ -11,7 +11,7 @@ export declare class NumbericEditConfigComponent {
11
11
  _selected: any;
12
12
  set selected(v: any);
13
13
  /**表单实体 */
14
- _Entity: FormGroup | undefined;
14
+ formEntity: FormGroup | undefined;
15
15
  set Entity(v: FormGroup);
16
16
  get formConfiguration(): FormGroup;
17
17
  submitclick?: ElementRef;
@@ -13,7 +13,7 @@ export declare class SelectConfigComponent {
13
13
  _selected: any;
14
14
  set selected(v: any);
15
15
  /**表单实体 */
16
- _Entity: FormGroup | undefined;
16
+ formEntity: FormGroup | undefined;
17
17
  set Entity(v: FormGroup);
18
18
  get formConfiguration(): FormGroup;
19
19
  get SelectOptions(): FormArray;
@@ -25,6 +25,12 @@ export declare class SelectConfigComponent {
25
25
  /**删除某个选项 */
26
26
  deleteSelectOptions(index: any): void;
27
27
  AfterInit(): Promise<unknown>;
28
+ /**
29
+ * 当选择项的文本发生变化时,更新对应的值
30
+ * @param event 输入事件对象
31
+ * @param index 选择项的索引位置
32
+ * @description 如果选择项已有Value值则不处理,否则将中文文本转换为拼音作为Value值
33
+ */
28
34
  textChange(event: any, index: any): void;
29
35
  /**调整表格位置 */
30
36
  drop(event: any): void;
@@ -3,5 +3,4 @@ export declare class SelectConfig {
3
3
  'Select.NullText': any;
4
4
  'Select.Multiple': any;
5
5
  'Select.Options': any;
6
- constructor(data?: SelectConfig);
7
6
  }
@@ -8,8 +8,8 @@ export declare class SwitchConfigComponent {
8
8
  _type: any;
9
9
  set type(v: any);
10
10
  /**表单实体 */
11
- _Entity: FormGroup | undefined;
12
- set Entity(v: FormGroup);
11
+ formEntity: FormGroup | undefined;
12
+ set Entity(v: FormGroup | undefined);
13
13
  /**选择的表单信息 */
14
14
  _selected: any;
15
15
  set selected(v: any);
@@ -1,5 +1,4 @@
1
1
  export declare class SwitchConfig {
2
2
  /**默认值 */
3
3
  'Switch.Default': any;
4
- constructor(data?: SwitchConfig);
5
4
  }
@@ -6,11 +6,13 @@ export declare class TextEditConfigComponent {
6
6
  private fb;
7
7
  constructor(fb: FormBuilder);
8
8
  _TextEditMode: typeof TextEditMode;
9
+ RadioIndex1: any;
10
+ RadioIndex2: any;
9
11
  /**表单控件类型 */
10
- _type: any;
12
+ formControlName: any;
11
13
  set type(v: any);
12
14
  /**表单实体 */
13
- _Entity: FormGroup | undefined;
15
+ formEntity: FormGroup | undefined;
14
16
  set Entity(v: FormGroup);
15
17
  /**选择的表单信息 */
16
18
  _selected: any;
@@ -19,8 +21,6 @@ export declare class TextEditConfigComponent {
19
21
  submitclick: ElementRef;
20
22
  private cdr;
21
23
  dataLoaded(): Promise<void>;
22
- RadioIndex1: any;
23
- RadioIndex2: any;
24
24
  AfterInit(): Promise<unknown>;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<TextEditConfigComponent, never>;
26
26
  static ɵcmp: i0.ɵɵComponentDeclaration<TextEditConfigComponent, "df-text-edit-config", never, { "type": { "alias": "type"; "required": false; }; "Entity": { "alias": "Entity"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, {}, never, never, false, never>;
@@ -3,5 +3,4 @@ export declare class TextEditConfig {
3
3
  'TextEdit.Placeholder': any;
4
4
  'TextEdit.Mode': any;
5
5
  'TextEdit.CharLimit': any;
6
- constructor(data?: TextEditConfig);
7
6
  }
@@ -1,18 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class DfApiService {
3
- constructor();
4
- /**
5
- * 识别中文转化为拼音,固定返回类型
6
- * 汉字转拼音
7
- * 大写转小写
8
- *
9
- * */
10
- chineseToPinyin(value: any): any;
11
3
  /**获取图片的本地连接 */
12
4
  getImageLacolBase64Url(file: File): Promise<unknown>;
13
- /**
14
- * 深拷贝--方法 */
15
- deepClone(obj: any): any;
16
5
  static ɵfac: i0.ɵɵFactoryDeclaration<DfApiService, never>;
17
6
  static ɵprov: i0.ɵɵInjectableDeclaration<DfApiService>;
18
7
  }
@@ -1,9 +1,13 @@
1
1
  import * as i0 from "@angular/core";
2
+ /**
3
+ * 表单控件服务
4
+ * @description 用于获取表单所有控件的配置信息
5
+ */
2
6
  export declare class FormControlService {
3
7
  private mergedConfig;
4
8
  constructor(mergedConfig: any[]);
5
9
  _FieldControlGroup: import("@dignite-ng/expand.dynamic-form").FieldControlGroupInterfaces[];
6
- AddFieldControlGroup(): import("@dignite-ng/expand.dynamic-form").FieldControlGroupInterfaces[];
10
+ addFieldControlGroup(): import("@dignite-ng/expand.dynamic-form").FieldControlGroupInterfaces[];
7
11
  static ɵfac: i0.ɵɵFactoryDeclaration<FormControlService, never>;
8
12
  static ɵprov: i0.ɵɵInjectableDeclaration<FormControlService>;
9
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dignite-ng/expand.dynamic-form",
3
- "version": "3.0.0-rc.49",
3
+ "version": "3.0.0-rc.50",
4
4
  "homepage": "https://abp.io",
5
5
  "repository": {
6
6
  "type": "git",