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

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 (85) hide show
  1. package/README.md +117 -13
  2. package/esm2022/dignite-ng-expand.dynamic-form.mjs +1 -1
  3. package/esm2022/lib/components/dynamic/dynamic-config.component.mjs +56 -6
  4. package/esm2022/lib/components/dynamic/dynamic-control.component.mjs +87 -6
  5. package/esm2022/lib/components/dynamic/dynamic-search.component.mjs +67 -0
  6. package/esm2022/lib/components/dynamic/dynamic-view.component.mjs +7 -4
  7. package/esm2022/lib/components/dynamic/dynamic.component.mjs +15 -7
  8. package/esm2022/lib/components/dynamic/index.mjs +2 -1
  9. package/esm2022/lib/components/form/date-edit/date-edit-config.component.mjs +13 -11
  10. package/esm2022/lib/components/form/date-edit/date-edit-config.mjs +1 -1
  11. package/esm2022/lib/components/form/date-edit/date-edit-control.component.mjs +9 -8
  12. package/esm2022/lib/components/form/date-edit/date-edit-view.component.mjs +3 -2
  13. package/esm2022/lib/components/form/date-edit/index.mjs +2 -1
  14. package/esm2022/lib/components/form/form-control-group.mjs +11 -4
  15. package/esm2022/lib/components/form/index.mjs +1 -1
  16. package/esm2022/lib/components/form/numeric-edit/index.mjs +1 -1
  17. package/esm2022/lib/components/form/numeric-edit/numberic-edit-config.component.mjs +12 -10
  18. package/esm2022/lib/components/form/numeric-edit/numberic-edit-config.mjs +1 -1
  19. package/esm2022/lib/components/form/numeric-edit/numberic-edit-control.component.mjs +22 -14
  20. package/esm2022/lib/components/form/numeric-edit/numeric-edit-search.component.mjs +107 -0
  21. package/esm2022/lib/components/form/numeric-edit/numeric-edit-view.component.mjs +3 -2
  22. package/esm2022/lib/components/form/select/index.mjs +3 -1
  23. package/esm2022/lib/components/form/select/select-config.component.mjs +37 -17
  24. package/esm2022/lib/components/form/select/select-config.mjs +4 -11
  25. package/esm2022/lib/components/form/select/select-control.component.mjs +25 -18
  26. package/esm2022/lib/components/form/select/select-search.component.mjs +94 -0
  27. package/esm2022/lib/components/form/select/select-view.component.mjs +3 -2
  28. package/esm2022/lib/components/form/switch/index.mjs +3 -1
  29. package/esm2022/lib/components/form/switch/switch-config.component.mjs +16 -12
  30. package/esm2022/lib/components/form/switch/switch-config.mjs +3 -10
  31. package/esm2022/lib/components/form/switch/switch-control.component.mjs +5 -5
  32. package/esm2022/lib/components/form/switch/switch-search.component.mjs +79 -0
  33. package/esm2022/lib/components/form/switch/switch-view.component.mjs +2 -2
  34. package/esm2022/lib/components/form/text-edit/index.mjs +3 -1
  35. package/esm2022/lib/components/form/text-edit/text-edit-config.component.mjs +18 -14
  36. package/esm2022/lib/components/form/text-edit/text-edit-config.mjs +5 -12
  37. package/esm2022/lib/components/form/text-edit/text-edit-search.component.mjs +81 -0
  38. package/esm2022/lib/components/form/text-edit/text-edit-view.component.mjs +1 -1
  39. package/esm2022/lib/components/form/text-edit/text-edit.component.mjs +6 -5
  40. package/esm2022/lib/components/index.mjs +1 -1
  41. package/esm2022/lib/dynamic-form.module.mjs +48 -6
  42. package/esm2022/lib/enums/date-edit-interfaces.mjs +1 -1
  43. package/esm2022/lib/enums/text-edit-mode.mjs +1 -1
  44. package/esm2022/lib/interfaces/form-config-interfaces.mjs +1 -1
  45. package/esm2022/lib/interfaces/index.mjs +1 -1
  46. package/esm2022/lib/services/df-api.service.mjs +2 -60
  47. package/esm2022/lib/services/form-control.service.mjs +8 -4
  48. package/esm2022/lib/services/index.mjs +1 -1
  49. package/esm2022/public-api.mjs +1 -1
  50. package/fesm2022/dignite-ng-expand.dynamic-form.mjs +826 -283
  51. package/fesm2022/dignite-ng-expand.dynamic-form.mjs.map +1 -1
  52. package/lib/components/dynamic/dynamic-config.component.d.ts +17 -2
  53. package/lib/components/dynamic/dynamic-control.component.d.ts +28 -2
  54. package/lib/components/dynamic/dynamic-search.component.d.ts +28 -0
  55. package/lib/components/dynamic/dynamic-view.component.d.ts +2 -2
  56. package/lib/components/dynamic/dynamic.component.d.ts +4 -0
  57. package/lib/components/dynamic/index.d.ts +1 -0
  58. package/lib/components/form/date-edit/date-edit-config.component.d.ts +1 -1
  59. package/lib/components/form/date-edit/date-edit-control.component.d.ts +2 -2
  60. package/lib/components/form/date-edit/date-edit-view.component.d.ts +2 -1
  61. package/lib/components/form/date-edit/index.d.ts +1 -0
  62. package/lib/components/form/form-control-group.d.ts +1 -1
  63. package/lib/components/form/numeric-edit/numberic-edit-config.component.d.ts +1 -1
  64. package/lib/components/form/numeric-edit/numberic-edit-control.component.d.ts +2 -1
  65. package/lib/components/form/numeric-edit/numeric-edit-search.component.d.ts +35 -0
  66. package/lib/components/form/numeric-edit/numeric-edit-view.component.d.ts +2 -1
  67. package/lib/components/form/select/index.d.ts +2 -0
  68. package/lib/components/form/select/select-config.component.d.ts +9 -1
  69. package/lib/components/form/select/select-config.d.ts +0 -1
  70. package/lib/components/form/select/select-control.component.d.ts +2 -2
  71. package/lib/components/form/select/select-search.component.d.ts +30 -0
  72. package/lib/components/form/switch/index.d.ts +2 -0
  73. package/lib/components/form/switch/switch-config.component.d.ts +2 -2
  74. package/lib/components/form/switch/switch-config.d.ts +0 -1
  75. package/lib/components/form/switch/switch-control.component.d.ts +1 -1
  76. package/lib/components/form/switch/switch-search.component.d.ts +28 -0
  77. package/lib/components/form/text-edit/index.d.ts +2 -0
  78. package/lib/components/form/text-edit/text-edit-config.component.d.ts +4 -2
  79. package/lib/components/form/text-edit/text-edit-config.d.ts +0 -1
  80. package/lib/components/form/text-edit/text-edit-search.component.d.ts +30 -0
  81. package/lib/dynamic-form.module.d.ts +13 -6
  82. package/lib/interfaces/form-config-interfaces.d.ts +8 -4
  83. package/lib/services/df-api.service.d.ts +0 -11
  84. package/lib/services/form-control.service.d.ts +5 -1
  85. package/package.json +11 -9
@@ -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
  }
@@ -0,0 +1,28 @@
1
+ import { ViewContainerRef } from '@angular/core';
2
+ import { FormControlService } from '../../services/form-control.service';
3
+ import { FieldControlGroupInterfaces } from '../../interfaces';
4
+ import { FormGroup } from '@angular/forms';
5
+ import * as i0 from "@angular/core";
6
+ export declare class DynamicSearchComponent {
7
+ private _FormControlService;
8
+ constructor(_FormControlService: FormControlService);
9
+ /**语言 */
10
+ _culture: FormGroup | any;
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
+ FormSearchTemplateRef?: ViewContainerRef;
23
+ ngAfterContentInit(): void;
24
+ /**加载动态展示组件 */
25
+ loadComponent(FieldControlItem?: FieldControlGroupInterfaces): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicSearchComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicSearchComponent, "df-dynamic-search", never, { "culture": { "alias": "culture"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; }, {}, never, never, false, never>;
28
+ }
@@ -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
  /**选择的表单信息 */
@@ -2,3 +2,4 @@ export * from './dynamic.component';
2
2
  export * from './dynamic-view.component';
3
3
  export * from './dynamic-config.component';
4
4
  export * from './dynamic-control.component';
5
+ export * from './dynamic-search.component';
@@ -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
  /**是否显示再列表 */
@@ -1,2 +1,3 @@
1
1
  export * from './date-edit-config.component';
2
2
  export * from './date-edit-control.component';
3
+ export * from './date-edit-view.component';
@@ -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;
@@ -18,13 +18,14 @@ export declare class NumbericEditControlComponent {
18
18
  _selected: any;
19
19
  set selected(v: any);
20
20
  /**表单实体 */
21
- _entity: FormGroup | undefined;
21
+ _entity: FormGroup | any;
22
22
  set entity(v: any);
23
23
  submitclick: ElementRef;
24
24
  get extraProperties(): FormGroup;
25
25
  get fieldInput(): AbstractControl<any, any>;
26
26
  /**数据加载完成 */
27
27
  dataLoaded(): Promise<void>;
28
+ formConfiguration: any;
28
29
  AfterInit(): Promise<unknown>;
29
30
  ngOnDestroy(): void;
30
31
  /**数字框输入 */
@@ -0,0 +1,35 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NumericEditSearchComponent {
5
+ private fb;
6
+ constructor(fb: FormBuilder);
7
+ /**字段配置列表 */
8
+ _fields: any;
9
+ set fields(v: any);
10
+ /**父级字段名称,用于为表单设置控件赋值 */
11
+ _parentFiledName: any;
12
+ set parentFiledName(v: any);
13
+ /**父级字段名称,用于为表单设置控件赋值 */
14
+ _selected: any;
15
+ set selected(v: any);
16
+ /**表单实体 */
17
+ _entity: FormGroup | undefined;
18
+ set entity(v: any);
19
+ submitclick: ElementRef;
20
+ get extraProperties(): FormGroup;
21
+ private cdr;
22
+ /**数据加载完成 */
23
+ dataLoaded(): Promise<void>;
24
+ /**定义动态字符 */
25
+ get numberInput(): FormControl;
26
+ /**定义number表单用于获取最小值最大值 */
27
+ numberForm: FormGroup;
28
+ get minInput(): FormControl;
29
+ get maxInput(): FormControl;
30
+ formConfiguration: any;
31
+ AfterInit(): Promise<unknown>;
32
+ ngOnDestroy(): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumericEditSearchComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumericEditSearchComponent, "df-numeric-edit-search", never, { "fields": { "alias": "fields"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; }, {}, never, never, false, never>;
35
+ }
@@ -1,5 +1,6 @@
1
+ import { AfterContentInit } from '@angular/core';
1
2
  import * as i0 from "@angular/core";
2
- export declare class NumericEditViewComponent {
3
+ export declare class NumericEditViewComponent implements AfterContentInit {
3
4
  /**展示则内容 */
4
5
  showValue: any;
5
6
  /**是否显示再列表 */
@@ -1,2 +1,4 @@
1
1
  export * from './select-config.component';
2
2
  export * from './select-control.component';
3
+ export * from './select-search.component';
4
+ export * from './select-view.component';
@@ -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,7 +25,15 @@ 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;
35
+ /**调整表格位置 */
36
+ drop(event: any): void;
29
37
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectConfigComponent, never>;
30
38
  static ɵcmp: i0.ɵɵComponentDeclaration<SelectConfigComponent, "df-select-config", never, { "type": { "alias": "type"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "Entity": { "alias": "Entity"; "required": false; }; }, {}, never, never, false, never>;
31
39
  }
@@ -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
  }
@@ -1,7 +1,7 @@
1
- import { ElementRef } from '@angular/core';
1
+ import { ElementRef, OnDestroy } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class SelectControlComponent {
4
+ export declare class SelectControlComponent implements OnDestroy {
5
5
  private fb;
6
6
  constructor(fb: FormBuilder);
7
7
  /**字段配置列表 */
@@ -0,0 +1,30 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SelectSearchComponent {
5
+ private fb;
6
+ constructor(fb: FormBuilder);
7
+ /**字段配置列表 */
8
+ _fields: any;
9
+ set fields(v: any);
10
+ /**父级字段名称,用于为表单设置控件赋值 */
11
+ _parentFiledName: any;
12
+ set parentFiledName(v: any);
13
+ /**父级字段名称,用于为表单设置控件赋值 */
14
+ _selected: any;
15
+ set selected(v: any);
16
+ /**表单实体 */
17
+ _entity: FormGroup | undefined;
18
+ set entity(v: any);
19
+ submitclick: ElementRef;
20
+ get extraProperties(): FormGroup;
21
+ private cdr;
22
+ /**数据加载完成 */
23
+ dataLoaded(): Promise<void>;
24
+ formConfiguration: any;
25
+ AfterInit(): Promise<unknown>;
26
+ changeValue(event: any): void;
27
+ ngOnDestroy(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectSearchComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectSearchComponent, "df-select-search", never, { "fields": { "alias": "fields"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; }, {}, never, never, false, never>;
30
+ }
@@ -1,2 +1,4 @@
1
1
  export * from './switch-config.component';
2
2
  export * from './switch-control.component';
3
+ export * from './switch-search.component';
4
+ export * from './switch-view.component';
@@ -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
  }
@@ -5,7 +5,7 @@ export declare class SwitchControlComponent {
5
5
  private fb;
6
6
  constructor(fb: FormBuilder);
7
7
  /**表单实体 */
8
- _entity: FormGroup | undefined;
8
+ _entity: FormGroup | any;
9
9
  set entity(v: any);
10
10
  /**字段配置列表 */
11
11
  _fields: any;
@@ -0,0 +1,28 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SwitchSearchComponent {
5
+ private fb;
6
+ constructor(fb: FormBuilder);
7
+ /**表单实体 */
8
+ _entity: FormGroup | any;
9
+ set entity(v: any);
10
+ /**字段配置列表 */
11
+ _fields: any;
12
+ set fields(v: any);
13
+ /**父级字段名称,用于为表单设置控件赋值 */
14
+ _parentFiledName: any;
15
+ set parentFiledName(v: any);
16
+ /** */
17
+ _selected: any;
18
+ set selected(v: any);
19
+ submitclick: ElementRef;
20
+ get extraProperties(): FormGroup;
21
+ private cdr;
22
+ /**数据加载完成 */
23
+ dataLoaded(): Promise<void>;
24
+ AfterInit(): Promise<unknown>;
25
+ ngOnDestroy(): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchSearchComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwitchSearchComponent, "df-switch-search", never, { "entity": { "alias": "entity"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, {}, never, never, false, never>;
28
+ }
@@ -1,3 +1,5 @@
1
1
  export * from './text-edit-config.component';
2
2
  export * from './text-edit-config';
3
3
  export * from './text-edit.component';
4
+ export * from './text-edit-view.component';
5
+ export * from './text-edit-search.component';
@@ -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;
@@ -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
  }
@@ -0,0 +1,30 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { TextEditMode } from '../../../enums/text-edit-mode';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TextEditSearchComponent {
6
+ private fb;
7
+ constructor(fb: FormBuilder);
8
+ _TextEditMode: typeof TextEditMode;
9
+ /**表单实体 */
10
+ _entity: FormGroup | undefined;
11
+ set entity(v: any);
12
+ /**字段配置列表 */
13
+ _fields: any;
14
+ set fields(v: any);
15
+ /**父级字段名称,用于为表单设置控件赋值 */
16
+ _parentFiledName: any;
17
+ set parentFiledName(v: any);
18
+ /**父级字段名称,用于为表单设置控件赋值 */
19
+ _selected: any;
20
+ set selected(v: any);
21
+ submitclick: ElementRef;
22
+ extraProperties: FormGroup | undefined;
23
+ private cdr;
24
+ dataLoaded(): Promise<void>;
25
+ AfterInit(): Promise<unknown>;
26
+ ngOnDestroy(): void;
27
+ isObjEmpty: (obj: any) => boolean;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextEditSearchComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextEditSearchComponent, "df-text-edit-search", never, { "entity": { "alias": "entity"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, {}, never, never, false, never>;
30
+ }
@@ -19,14 +19,21 @@ import * as i16 from "./components/form/switch/switch-view.component";
19
19
  import * as i17 from "./components/form/text-edit/text-edit-view.component";
20
20
  import * as i18 from "./components/form/date-edit/date-edit-view.component";
21
21
  import * as i19 from "./components/form/numeric-edit/numeric-edit-view.component";
22
- import * as i20 from "@angular/forms";
23
- import * as i21 from "@abp/ng.core";
24
- import * as i22 from "@abp/ng.theme.shared";
25
- import * as i23 from "@ng-bootstrap/ng-bootstrap";
26
- import * as i24 from "ng-zorro-antd/select";
22
+ import * as i20 from "./components/dynamic/dynamic-search.component";
23
+ import * as i21 from "./components/form/select/select-search.component";
24
+ import * as i22 from "./components/form/text-edit/text-edit-search.component";
25
+ import * as i23 from "./components/form/switch/switch-search.component";
26
+ import * as i24 from "./components/form/numeric-edit/numeric-edit-search.component";
27
+ import * as i25 from "@angular/forms";
28
+ import * as i26 from "@abp/ng.core";
29
+ import * as i27 from "@abp/ng.theme.shared";
30
+ import * as i28 from "@ng-bootstrap/ng-bootstrap";
31
+ import * as i29 from "ng-zorro-antd/select";
32
+ import * as i30 from "@angular/cdk/drag-drop";
33
+ import * as i31 from "@abp/ng.components/extensible";
27
34
  export declare class DynamicFormModule {
28
35
  static forRoot(config?: any): ModuleWithProviders<DynamicFormModule>;
29
36
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormModule, never>;
30
- static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicFormModule, [typeof i1.TextEditConfigComponent, typeof i2.TextEditComponent, typeof i3.SwitchConfigComponent, typeof i4.SwitchControlComponent, typeof i5.NumbericEditConfigComponent, typeof i6.NumbericEditControlComponent, typeof i7.DateEditConfigComponent, typeof i8.DateEditControlComponent, typeof i9.SelectConfigComponent, typeof i10.SelectControlComponent, typeof i11.DynamicComponent, typeof i12.DynamicConfigComponent, typeof i13.DynamicViewComponent, typeof i14.DynamicControlComponent, typeof i15.SelectViewComponent, typeof i16.SwitchViewComponent, typeof i17.TextEditViewComponent, typeof i18.DateEditViewComponent, typeof i19.NumericEditViewComponent], [typeof i20.FormsModule, typeof i21.CoreModule, typeof i22.ThemeSharedModule, typeof i20.ReactiveFormsModule, typeof i23.NgbDropdownModule, typeof i24.NzSelectModule], [typeof i1.TextEditConfigComponent, typeof i2.TextEditComponent, typeof i3.SwitchConfigComponent, typeof i4.SwitchControlComponent, typeof i5.NumbericEditConfigComponent, typeof i6.NumbericEditControlComponent, typeof i7.DateEditConfigComponent, typeof i8.DateEditControlComponent, typeof i9.SelectConfigComponent, typeof i10.SelectControlComponent, typeof i11.DynamicComponent, typeof i12.DynamicConfigComponent, typeof i13.DynamicViewComponent, typeof i14.DynamicControlComponent]>;
37
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicFormModule, [typeof i1.TextEditConfigComponent, typeof i2.TextEditComponent, typeof i3.SwitchConfigComponent, typeof i4.SwitchControlComponent, typeof i5.NumbericEditConfigComponent, typeof i6.NumbericEditControlComponent, typeof i7.DateEditConfigComponent, typeof i8.DateEditControlComponent, typeof i9.SelectConfigComponent, typeof i10.SelectControlComponent, typeof i11.DynamicComponent, typeof i12.DynamicConfigComponent, typeof i13.DynamicViewComponent, typeof i14.DynamicControlComponent, typeof i15.SelectViewComponent, typeof i16.SwitchViewComponent, typeof i17.TextEditViewComponent, typeof i18.DateEditViewComponent, typeof i19.NumericEditViewComponent, typeof i20.DynamicSearchComponent, typeof i21.SelectSearchComponent, typeof i22.TextEditSearchComponent, typeof i23.SwitchSearchComponent, typeof i24.NumericEditSearchComponent], [typeof i25.FormsModule, typeof i26.CoreModule, typeof i27.ThemeSharedModule, typeof i25.ReactiveFormsModule, typeof i28.NgbDropdownModule, typeof i29.NzSelectModule, typeof i30.DragDropModule, typeof i28.NgbDatepickerModule, typeof i31.ExtensibleModule], [typeof i1.TextEditConfigComponent, typeof i2.TextEditComponent, typeof i17.TextEditViewComponent, typeof i3.SwitchConfigComponent, typeof i4.SwitchControlComponent, typeof i16.SwitchViewComponent, typeof i5.NumbericEditConfigComponent, typeof i6.NumbericEditControlComponent, typeof i7.DateEditConfigComponent, typeof i8.DateEditControlComponent, typeof i18.DateEditViewComponent, typeof i9.SelectConfigComponent, typeof i10.SelectControlComponent, typeof i15.SelectViewComponent, typeof i21.SelectSearchComponent, typeof i11.DynamicComponent, typeof i12.DynamicConfigComponent, typeof i13.DynamicViewComponent, typeof i14.DynamicControlComponent, typeof i20.DynamicSearchComponent]>;
31
38
  static ɵinj: i0.ɵɵInjectorDeclaration<DynamicFormModule>;
32
39
  }
@@ -1,17 +1,21 @@
1
- import { Type } from "@angular/core";
1
+ import { Type } from '@angular/core';
2
2
  export interface FieldControlGroupInterfaces {
3
3
  displayName: string;
4
4
  name: string;
5
5
  /**
6
- * 动态表单控件
7
- */
6
+ * 动态表单控件
7
+ */
8
8
  fieldComponent?: Type<any>;
9
9
  /**
10
10
  * 表单控件配置组件
11
11
  */
12
12
  fieldConfigComponent?: Type<any>;
13
13
  /**
14
- * 条目列表中显示的组件
14
+ * 表单控件显示的组件
15
15
  */
16
16
  fieldViewComponent?: Type<any>;
17
+ /**
18
+ * 表单控件查询的组件
19
+ */
20
+ fieldSearchComponent?: Type<any>;
17
21
  }
@@ -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,18 +1,19 @@
1
1
  {
2
2
  "name": "@dignite-ng/expand.dynamic-form",
3
- "version": "3.0.0-rc.8",
4
- "peerDependencies": {
5
- "@angular/common": "~18.1.0",
6
- "@angular/core": "~18.1.0"
3
+ "version": "3.0.0",
4
+ "homepage": "https://abp.io",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/abpframework/abp.git"
7
8
  },
8
9
  "dependencies": {
9
- "tslib": "^2.3.0"
10
+ "tslib": "^2.0.0"
10
11
  },
11
- "sideEffects": false,
12
12
  "publishConfig": {
13
- "access": "public",
14
- "registry": "https://registry.npmjs.org/"
13
+ "access": "public"
15
14
  },
15
+ "license": "LGPL-3.0",
16
+ "keywords": [],
16
17
  "module": "fesm2022/dignite-ng-expand.dynamic-form.mjs",
17
18
  "typings": "index.d.ts",
18
19
  "exports": {
@@ -25,5 +26,6 @@
25
26
  "esm": "./esm2022/dignite-ng-expand.dynamic-form.mjs",
26
27
  "default": "./fesm2022/dignite-ng-expand.dynamic-form.mjs"
27
28
  }
28
- }
29
+ },
30
+ "sideEffects": false
29
31
  }