@dignite-ng/expand.dynamic-form 3.0.0-rc.7 → 3.0.0-rc.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.
Files changed (29) hide show
  1. package/esm2022/lib/components/dynamic/dynamic-config.component.mjs +11 -0
  2. package/esm2022/lib/components/dynamic/dynamic-control.component.mjs +11 -0
  3. package/esm2022/lib/components/dynamic/dynamic-view.component.mjs +57 -0
  4. package/esm2022/lib/components/dynamic/dynamic.component.mjs +1 -1
  5. package/esm2022/lib/components/dynamic/index.mjs +4 -1
  6. package/esm2022/lib/components/form/date-edit/date-edit-view.component.mjs +40 -0
  7. package/esm2022/lib/components/form/form-control-group.mjs +11 -6
  8. package/esm2022/lib/components/form/numeric-edit/numeric-edit-view.component.mjs +39 -0
  9. package/esm2022/lib/components/form/select/select-control.component.mjs +3 -3
  10. package/esm2022/lib/components/form/select/select-view.component.mjs +44 -0
  11. package/esm2022/lib/components/form/switch/switch-view.component.mjs +40 -0
  12. package/esm2022/lib/components/form/text-edit/text-edit-view.component.mjs +39 -0
  13. package/esm2022/lib/components/form/text-edit/text-edit.component.mjs +3 -3
  14. package/esm2022/lib/dynamic-form.module.mjs +33 -3
  15. package/esm2022/lib/services/form-control.service.mjs +33 -0
  16. package/fesm2022/dignite-ng-expand.dynamic-form.mjs +321 -12
  17. package/fesm2022/dignite-ng-expand.dynamic-form.mjs.map +1 -1
  18. package/lib/components/dynamic/dynamic-config.component.d.ts +5 -0
  19. package/lib/components/dynamic/dynamic-control.component.d.ts +5 -0
  20. package/lib/components/dynamic/dynamic-view.component.d.ts +24 -0
  21. package/lib/components/dynamic/index.d.ts +3 -0
  22. package/lib/components/form/date-edit/date-edit-view.component.d.ts +17 -0
  23. package/lib/components/form/numeric-edit/numeric-edit-view.component.d.ts +17 -0
  24. package/lib/components/form/select/select-view.component.d.ts +17 -0
  25. package/lib/components/form/switch/switch-view.component.d.ts +17 -0
  26. package/lib/components/form/text-edit/text-edit-view.component.d.ts +17 -0
  27. package/lib/dynamic-form.module.d.ts +14 -6
  28. package/lib/services/form-control.service.d.ts +9 -0
  29. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DynamicConfigComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicConfigComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicConfigComponent, "df-dynamic-config", never, {}, {}, never, never, false, never>;
5
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DynamicControlComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicControlComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicControlComponent, "df-dynamic-control", never, {}, {}, never, never, false, never>;
5
+ }
@@ -0,0 +1,24 @@
1
+ import { ViewContainerRef } from '@angular/core';
2
+ import { FormControlService } from '../../services/form-control.service';
3
+ import { FieldControlGroupInterfaces } from '../../interfaces';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DynamicViewComponent {
6
+ private _FormControlService;
7
+ constructor(_FormControlService: FormControlService);
8
+ /**是否显示再列表 */
9
+ showInList: boolean;
10
+ /**表单字段数据 */
11
+ fields: any;
12
+ /**表单控件类型 */
13
+ type: any;
14
+ /**表单控件Value */
15
+ _value: any;
16
+ set value(v: any);
17
+ /**表单控件模板-动态表单配置组件 */
18
+ FormTemplateRef?: ViewContainerRef;
19
+ ngAfterContentInit(): void;
20
+ /**加载动态展示组件 */
21
+ loadViewComponent(FieldControlItem?: FieldControlGroupInterfaces): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicViewComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicViewComponent, "df-dynamic-view", never, { "showInList": { "alias": "showInList"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
24
+ }
@@ -1 +1,4 @@
1
1
  export * from './dynamic.component';
2
+ export * from './dynamic-view.component';
3
+ export * from './dynamic-config.component';
4
+ export * from './dynamic-control.component';
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DateEditViewComponent {
3
+ /**展示则内容 */
4
+ showValue: any;
5
+ /**是否显示再列表 */
6
+ showInList: boolean;
7
+ /**表单字段数据 */
8
+ fields: any;
9
+ /**表单控件类型 */
10
+ type: any;
11
+ /**表单控件Value */
12
+ _value: any;
13
+ set value(v: any);
14
+ ngAfterContentInit(): Promise<void>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateEditViewComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateEditViewComponent, "df-date-edit-view", never, { "showInList": { "alias": "showInList"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NumericEditViewComponent {
3
+ /**展示则内容 */
4
+ showValue: any;
5
+ /**是否显示再列表 */
6
+ showInList: boolean;
7
+ /**表单字段数据 */
8
+ fields: any;
9
+ /**表单控件类型 */
10
+ type: any;
11
+ /**表单控件Value */
12
+ _value: any;
13
+ set value(v: any);
14
+ ngAfterContentInit(): Promise<void>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumericEditViewComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumericEditViewComponent, "df-numeric-edit-view", never, { "showInList": { "alias": "showInList"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SelectViewComponent {
3
+ /**展示则内容 */
4
+ showValue: any;
5
+ /**是否显示再列表 */
6
+ showInList: boolean;
7
+ /**表单字段数据 */
8
+ fields: any;
9
+ /**表单控件类型 */
10
+ type: any;
11
+ /**表单控件Value */
12
+ _value: any;
13
+ set value(v: any);
14
+ ngAfterContentInit(): Promise<void>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectViewComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectViewComponent, "df-select-view", never, { "showInList": { "alias": "showInList"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SwitchViewComponent {
3
+ /**展示则内容 */
4
+ showValue: any;
5
+ /**是否显示再列表 */
6
+ showInList: boolean;
7
+ /**表单字段数据 */
8
+ fields: any;
9
+ /**表单控件类型 */
10
+ type: any;
11
+ /**表单控件Value */
12
+ _value: any;
13
+ set value(v: any);
14
+ ngAfterContentInit(): Promise<void>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchViewComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwitchViewComponent, "df-switch-view", never, { "showInList": { "alias": "showInList"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TextEditViewComponent {
3
+ /**展示则内容 */
4
+ showValue: any;
5
+ /**是否显示再列表 */
6
+ showInList: boolean;
7
+ /**表单字段数据 */
8
+ fields: any;
9
+ /**表单控件类型 */
10
+ type: any;
11
+ /**表单控件Value */
12
+ _value: any;
13
+ set value(v: any);
14
+ ngAfterContentInit(): Promise<void>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextEditViewComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextEditViewComponent, "df-text-edit-view", never, { "showInList": { "alias": "showInList"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
17
+ }
@@ -11,14 +11,22 @@ import * as i8 from "./components/form/date-edit/date-edit-control.component";
11
11
  import * as i9 from "./components/form/select/select-config.component";
12
12
  import * as i10 from "./components/form/select/select-control.component";
13
13
  import * as i11 from "./components/dynamic/dynamic.component";
14
- import * as i12 from "@angular/forms";
15
- import * as i13 from "@abp/ng.core";
16
- import * as i14 from "@abp/ng.theme.shared";
17
- import * as i15 from "@ng-bootstrap/ng-bootstrap";
18
- import * as i16 from "ng-zorro-antd/select";
14
+ import * as i12 from "./components/dynamic/dynamic-config.component";
15
+ import * as i13 from "./components/dynamic/dynamic-view.component";
16
+ import * as i14 from "./components/dynamic/dynamic-control.component";
17
+ import * as i15 from "./components/form/select/select-view.component";
18
+ import * as i16 from "./components/form/switch/switch-view.component";
19
+ import * as i17 from "./components/form/text-edit/text-edit-view.component";
20
+ import * as i18 from "./components/form/date-edit/date-edit-view.component";
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";
19
27
  export declare class DynamicFormModule {
20
28
  static forRoot(config?: any): ModuleWithProviders<DynamicFormModule>;
21
29
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormModule, never>;
22
- 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.FormsModule, typeof i13.CoreModule, typeof i14.ThemeSharedModule, typeof i12.ReactiveFormsModule, typeof i15.NgbDropdownModule, typeof i16.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]>;
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]>;
23
31
  static ɵinj: i0.ɵɵInjectorDeclaration<DynamicFormModule>;
24
32
  }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class FormControlService {
3
+ private mergedConfig;
4
+ constructor(mergedConfig: any[]);
5
+ _FieldControlGroup: import("@dignite-ng/expand.dynamic-form").FieldControlGroupInterfaces[];
6
+ AddFieldControlGroup(): import("@dignite-ng/expand.dynamic-form").FieldControlGroupInterfaces[];
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormControlService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormControlService>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dignite-ng/expand.dynamic-form",
3
- "version": "3.0.0-rc.7",
3
+ "version": "3.0.0-rc.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~18.1.0",
6
6
  "@angular/core": "~18.1.0"