@dignite-ng/expand.cms 2.0.0-rc.8 → 3.0.0-rc.14

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 (58) hide show
  1. package/esm2022/lib/cms.module.mjs +35 -5
  2. package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +3 -3
  3. package/esm2022/lib/components/admin/entries/entries.component.mjs +229 -49
  4. package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +9 -7
  5. package/esm2022/lib/components/admin/fields/edit-field.component.mjs +1 -1
  6. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +5 -29
  7. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +42 -23
  8. package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +1 -1
  9. package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +14 -4
  10. package/esm2022/lib/components/dynamic-form/entry/entry-search.component.mjs +107 -0
  11. package/esm2022/lib/components/dynamic-form/entry/entry-view.component.mjs +60 -0
  12. package/esm2022/lib/components/dynamic-form/entry/index.mjs +3 -1
  13. package/esm2022/lib/components/dynamic-form/form-control-group.mjs +9 -1
  14. package/esm2022/lib/components/dynamic-form/matrix/index.mjs +2 -1
  15. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +6 -1
  16. package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +23 -11
  17. package/esm2022/lib/components/dynamic-form/matrix/matrix-view.component.mjs +40 -0
  18. package/esm2022/lib/components/dynamic-form/table/index.mjs +2 -1
  19. package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +10 -5
  20. package/esm2022/lib/components/dynamic-form/table/table-config.mjs +2 -9
  21. package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +25 -14
  22. package/esm2022/lib/components/dynamic-form/table/table-view.component.mjs +40 -0
  23. package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.mjs +2 -2
  24. package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/models.mjs +1 -1
  25. package/esm2022/lib/proxy/dignite/cms/admin/entries/entry-admin.service.mjs +2 -2
  26. package/esm2022/lib/proxy/dignite/cms/admin/entries/models.mjs +1 -1
  27. package/esm2022/lib/proxy/dignite/cms/admin/fields/models.mjs +1 -1
  28. package/esm2022/lib/proxy/dignite/cms/admin/sections/models.mjs +1 -1
  29. package/esm2022/lib/proxy/dignite/cms/sections/models.mjs +1 -1
  30. package/esm2022/lib/services/cms-api.service.mjs +29 -6
  31. package/esm2022/lib/services/field-abstracts.service.mjs +3 -3
  32. package/esm2022/lib/services/form-controls.service.mjs +40 -0
  33. package/fesm2022/dignite-ng-expand.cms.mjs +768 -249
  34. package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -1
  35. package/lib/cms.module.d.ts +16 -10
  36. package/lib/components/admin/entries/entries.component.d.ts +50 -12
  37. package/lib/components/admin/fields/create-or-edit-field.component.d.ts +1 -2
  38. package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +4 -14
  39. package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +17 -9
  40. package/lib/components/dynamic-form/entry/entry-control.component.d.ts +5 -2
  41. package/lib/components/dynamic-form/entry/entry-search.component.d.ts +36 -0
  42. package/lib/components/dynamic-form/entry/entry-view.component.d.ts +22 -0
  43. package/lib/components/dynamic-form/entry/index.d.ts +2 -0
  44. package/lib/components/dynamic-form/matrix/index.d.ts +1 -0
  45. package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +3 -1
  46. package/lib/components/dynamic-form/matrix/matrix-view.component.d.ts +17 -0
  47. package/lib/components/dynamic-form/table/index.d.ts +1 -0
  48. package/lib/components/dynamic-form/table/table-config.d.ts +1 -1
  49. package/lib/components/dynamic-form/table/table-control.component.d.ts +3 -1
  50. package/lib/components/dynamic-form/table/table-view.component.d.ts +17 -0
  51. package/lib/proxy/dignite/cms/admin/dynamic-forms/models.d.ts +1 -0
  52. package/lib/proxy/dignite/cms/admin/entries/models.d.ts +1 -0
  53. package/lib/proxy/dignite/cms/admin/fields/models.d.ts +2 -2
  54. package/lib/proxy/dignite/cms/admin/sections/models.d.ts +2 -1
  55. package/lib/proxy/dignite/cms/sections/models.d.ts +2 -1
  56. package/lib/services/cms-api.service.d.ts +8 -1
  57. package/lib/services/form-controls.service.d.ts +16 -0
  58. package/package.json +1 -1
@@ -17,19 +17,25 @@ import * as i14 from "./components/dynamic-form/matrix/matrix-config.component";
17
17
  import * as i15 from "./components/dynamic-form/matrix/matrix-control.component";
18
18
  import * as i16 from "./components/dynamic-form/entry/entry-config.component";
19
19
  import * as i17 from "./components/dynamic-form/entry/entry-control.component";
20
- import * as i18 from "./components/admin/sections/create-or-edit-sections-modal.component";
21
- import * as i19 from "@abp/ng.core";
22
- import * as i20 from "@abp/ng.theme.shared";
23
- import * as i21 from "./cms-routing.module";
24
- import * as i22 from "@ng-bootstrap/ng-bootstrap";
25
- import * as i23 from "@abp/ng.components/page";
26
- import * as i24 from "ng-zorro-antd/select";
27
- import * as i25 from "@dignite-ng/expand.dynamic-form";
28
- import * as i26 from "@abp/ng.components/extensible";
20
+ import * as i18 from "./components/dynamic-form/entry/entry-view.component";
21
+ import * as i19 from "./components/admin/sections/create-or-edit-sections-modal.component";
22
+ import * as i20 from "./components/dynamic-form/matrix/matrix-view.component";
23
+ import * as i21 from "./components/dynamic-form/table/table-view.component";
24
+ import * as i22 from "./components/dynamic-form/entry/entry-search.component";
25
+ import * as i23 from "@abp/ng.core";
26
+ import * as i24 from "@abp/ng.theme.shared";
27
+ import * as i25 from "./cms-routing.module";
28
+ import * as i26 from "@ng-bootstrap/ng-bootstrap";
29
+ import * as i27 from "@abp/ng.components/page";
30
+ import * as i28 from "ng-zorro-antd/select";
31
+ import * as i29 from "@dignite-ng/expand.dynamic-form";
32
+ import * as i30 from "@abp/ng.components/extensible";
33
+ import * as i31 from "@angular/cdk/drag-drop";
34
+ import * as i32 from "@swimlane/ngx-datatable";
29
35
  export declare class CmsModule {
30
36
  static forChild(options?: any): ModuleWithProviders<CmsModule>;
31
37
  static forLazy(options?: any): NgModuleFactory<CmsModule>;
32
38
  static ɵfac: i0.ɵɵFactoryDeclaration<CmsModule, never>;
33
- static ɵmod: i0.ɵɵNgModuleDeclaration<CmsModule, [typeof i1.EntriesComponent, typeof i2.FieldsComponent, typeof i3.SectionsComponent, typeof i4.FieldGroupComponent, typeof i5.CreateFieldComponent, typeof i6.EditFieldComponent, typeof i7.CreateOrEditFieldComponent, typeof i8.CreateOrEditComponent, typeof i9.CreateComponent, typeof i10.EditComponent, typeof i11.CreateOrEditEntriesComponent, typeof i12.TableConfigComponent, typeof i13.TableControlComponent, typeof i14.MatrixConfigComponent, typeof i15.MatrixControlComponent, typeof i16.EntryConfigComponent, typeof i17.EntryControlComponent, typeof i18.CreateOrEditSectionsModalComponent], [typeof i19.CoreModule, typeof i20.ThemeSharedModule, typeof i21.CmsRoutingModule, typeof i22.NgbNavModule, typeof i22.NgbAccordionModule, typeof i22.NgbDropdownModule, typeof i23.PageModule, typeof i24.NzSelectModule, typeof i25.DynamicFormModule, typeof i26.ExtensibleModule], [typeof i12.TableConfigComponent, typeof i13.TableControlComponent, typeof i14.MatrixConfigComponent, typeof i15.MatrixControlComponent, typeof i16.EntryConfigComponent, typeof i17.EntryControlComponent]>;
39
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CmsModule, [typeof i1.EntriesComponent, typeof i2.FieldsComponent, typeof i3.SectionsComponent, typeof i4.FieldGroupComponent, typeof i5.CreateFieldComponent, typeof i6.EditFieldComponent, typeof i7.CreateOrEditFieldComponent, typeof i8.CreateOrEditComponent, typeof i9.CreateComponent, typeof i10.EditComponent, typeof i11.CreateOrEditEntriesComponent, typeof i12.TableConfigComponent, typeof i13.TableControlComponent, typeof i14.MatrixConfigComponent, typeof i15.MatrixControlComponent, typeof i16.EntryConfigComponent, typeof i17.EntryControlComponent, typeof i18.EntryViewComponent, typeof i19.CreateOrEditSectionsModalComponent, typeof i20.MatrixViewComponent, typeof i21.TableViewComponent, typeof i22.EntrySearchComponent], [typeof i23.CoreModule, typeof i24.ThemeSharedModule, typeof i25.CmsRoutingModule, typeof i26.NgbNavModule, typeof i26.NgbAccordionModule, typeof i26.NgbDropdownModule, typeof i27.PageModule, typeof i28.NzSelectModule, typeof i29.DynamicFormModule, typeof i30.ExtensibleModule, typeof i31.DragDropModule, typeof i32.NgxDatatableModule], [typeof i12.TableConfigComponent, typeof i13.TableControlComponent, typeof i14.MatrixConfigComponent, typeof i15.MatrixControlComponent, typeof i16.EntryConfigComponent, typeof i17.EntryControlComponent, typeof i18.EntryViewComponent, typeof i20.MatrixViewComponent, typeof i21.TableViewComponent, typeof i22.EntrySearchComponent]>;
34
40
  static ɵinj: i0.ɵɵInjectorDeclaration<CmsModule>;
35
41
  }
@@ -1,11 +1,15 @@
1
- import { ListService, ConfigStateService, LocalizationService, PagedResultDto, ABP } from "@abp/ng.core";
2
- import { ToasterService, ConfirmationService } from "@abp/ng.theme.shared";
3
- import { OnInit } from "@angular/core";
4
- import { FormGroup } from "@angular/forms";
5
- import { Router } from "@angular/router";
6
- import { ColumnMode } from "@swimlane/ngx-datatable";
7
- import { EntryAdminService, EntryDto, GetEntriesInput } from "../../../proxy/dignite/cms/admin/entries";
8
- import { SectionAdminService } from "../../../proxy/dignite/cms/admin/sections";
1
+ import { ListService, ConfigStateService, LocalizationService, PagedResultDto, ABP } from '@abp/ng.core';
2
+ import { ToasterService, ConfirmationService } from '@abp/ng.theme.shared';
3
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
4
+ import { FormGroup } from '@angular/forms';
5
+ import { Router } from '@angular/router';
6
+ import { ColumnMode } from '@swimlane/ngx-datatable';
7
+ import { EntryAdminService, EntryDto, GetEntriesInput } from '../../../proxy/dignite/cms/admin/entries';
8
+ import { SectionAdminService } from '../../../proxy/dignite/cms/admin/sections';
9
+ import { SectionType } from '../../../proxy/dignite/cms/sections';
10
+ import { FormAdminService } from '../../../proxy/dignite/cms/admin/dynamic-forms';
11
+ import { FieldAdminService } from '../../../proxy/dignite/cms/admin/fields';
12
+ import { FormControlsService } from '../../../services/form-controls.service';
9
13
  import * as i0 from "@angular/core";
10
14
  export declare class EntriesComponent implements OnInit {
11
15
  private _EntryAdminService;
@@ -15,10 +19,16 @@ export declare class EntriesComponent implements OnInit {
15
19
  private configState;
16
20
  private router;
17
21
  private _LocalizationService;
18
- constructor(_EntryAdminService: EntryAdminService, _SectionAdminService: SectionAdminService, toaster: ToasterService, confirmation: ConfirmationService, configState: ConfigStateService, router: Router, _LocalizationService: LocalizationService);
22
+ private _FormAdminService;
23
+ private _FieldAdminService;
24
+ private cdRef;
25
+ private _FormControlsService;
26
+ constructor(_EntryAdminService: EntryAdminService, _SectionAdminService: SectionAdminService, toaster: ToasterService, confirmation: ConfirmationService, configState: ConfigStateService, router: Router, _LocalizationService: LocalizationService, _FormAdminService: FormAdminService, _FieldAdminService: FieldAdminService, cdRef: ChangeDetectorRef, _FormControlsService: FormControlsService);
19
27
  private fb;
20
28
  private _UpdateListService;
21
29
  readonly list: ListService<any>;
30
+ /**板块类型 */
31
+ SectionType: typeof SectionType;
22
32
  ngOnInit(): void;
23
33
  /**站点下的版块 */
24
34
  SiteOfSectionList: any[any];
@@ -30,20 +40,44 @@ export declare class EntriesComponent implements OnInit {
30
40
  _entryStatusOptions: ABP.Option<typeof import("../../../proxy/dignite/cms/entries").EntryStatus>[];
31
41
  /**获取页面数据 */
32
42
  getPageDate(): Promise<void>;
43
+ /**需要查询的动态表单类型 */
44
+ enableSearchTypeList: any[];
45
+ /**需要查询的动态表单字段 */
46
+ enableSearchFieldList: any[];
47
+ /**不需要展示的动态表单类型 */
48
+ disableshowinTypeList: any[];
49
+ /**需要展示的动态列表字段 */
50
+ showinFieldList: any[];
51
+ /**获取动态表单类型 */
33
52
  /**切换板块 */
34
53
  sectionIdChange(): Promise<void>;
35
54
  /**切换语言 */
36
55
  cultureChange(): Promise<void>;
37
56
  /**获取站点下的版块 */
38
57
  getSiteOfSectionList(): Promise<unknown>;
58
+ /**表单 */
59
+ enablegearchFormEntity: FormGroup | undefined;
60
+ get extraPropertiesInput(): FormGroup;
61
+ /**设置筛选条件 */
62
+ setfiltersValue(): Promise<unknown>;
63
+ listget(): Promise<void>;
64
+ /**站点下板块的类型 */
65
+ SiteOfSectionType: any;
39
66
  /**获取版块下的条目类型 */
40
- getSectionOfEntryType(): void;
67
+ getSectionOfEntryType(): Promise<void>;
68
+ abpInitss(): Promise<void>;
69
+ /**获取板块详情 */
70
+ getSectionInfo(ids: any): Promise<unknown>;
71
+ /**获取字段详情 */
72
+ getDynamicFormEntity(fieldId: string): Promise<unknown>;
41
73
  private config;
42
74
  private _RegionalizationService;
43
75
  /**获取版块下的语言列表 */
44
76
  getSectionLanguagesList(): Promise<unknown>;
45
77
  /**站点设置语言 */
46
78
  SiteSettingsAdminLanguages: any[];
79
+ /**站点设置的默认语言 */
80
+ defaultCultureName: any;
47
81
  /**
48
82
  * 获取站点设置语言
49
83
  */
@@ -54,12 +88,16 @@ export declare class EntriesComponent implements OnInit {
54
88
  createCopyEntriesBtn(): void;
55
89
  /**列表相关 */
56
90
  ColumnMode: typeof ColumnMode;
57
- data: PagedResultDto<EntryDto>;
91
+ data: PagedResultDto<EntryDto> | any;
58
92
  filters: GetEntriesInput;
59
- filtersForm: FormGroup;
93
+ maxResultCount: number;
60
94
  hookToQuery(): void;
61
95
  /**删除条目 */
62
96
  deletefield(row: any): void;
97
+ drop(event: any): void;
98
+ isexpanded: boolean;
99
+ /**高级筛选切换 */
100
+ expandedChange(event: any): void;
63
101
  static ɵfac: i0.ɵɵFactoryDeclaration<EntriesComponent, never>;
64
102
  static ɵcmp: i0.ɵɵComponentDeclaration<EntriesComponent, "cms-entries", never, {}, {}, never, never, false, never>;
65
103
  }
@@ -1,4 +1,4 @@
1
- import { ElementRef, ViewContainerRef } from '@angular/core';
1
+ import { ElementRef } from '@angular/core';
2
2
  import { FieldAbstractsService } from '../../../services/field-abstracts.service';
3
3
  import { AbstractControl, FormGroup, ValidationErrors } from '@angular/forms';
4
4
  import { CmsApiService } from '../../../services/cms-api.service';
@@ -12,7 +12,6 @@ export declare class CreateOrEditFieldComponent {
12
12
  private _FieldAdminService;
13
13
  private _LocalizationService;
14
14
  /**表单控件模板-动态表单配置组件 */
15
- FormDynamicRef: ViewContainerRef;
16
15
  /**获取提交按钮替身,用于真实触发表单提交 */
17
16
  submitclick: ElementRef;
18
17
  constructor(_FieldAbstractsService: FieldAbstractsService, _CmsApiService: CmsApiService, _FieldAdminService: FieldAdminService, _LocalizationService: LocalizationService);
@@ -1,4 +1,3 @@
1
- import { Validators } from "@angular/forms";
2
1
  export declare class CreateOrEditEntryTypeInputBase {
3
2
  /**显示名称 Display name of this field */
4
3
  displayName: any;
@@ -22,17 +21,8 @@ export declare class fieldsBase {
22
21
  /**必填 Unique Name*/
23
22
  required: any;
24
23
  /**是否在列表中显示 Unique Name*/
25
- showOnList: any;
26
- constructor(data?: fieldsBase);
27
- }
28
- export declare class fieldsInputBase {
29
- /**字段id */
30
- fieldId: (string | (typeof Validators.required)[])[];
31
- /**显示名称 Display name of this field */
32
- displayName: any;
33
- /**是否必填 Unique Name*/
34
- required: any;
35
- /**在列表中展示 Unique Name*/
36
- showOnList: any;
37
- constructor(data?: fieldsInputBase);
24
+ showInList: any;
25
+ /**是否启用搜索 */
26
+ enableSearch: any;
27
+ constructor();
38
28
  }
@@ -7,6 +7,7 @@ import { CmsApiService } from '../../../../services';
7
7
  import { Location } from '@angular/common';
8
8
  import { FieldAdminService, FieldGroupAdminService } from '../../../../proxy/dignite/cms/admin/fields';
9
9
  import { EntryTypeAdminService } from '../../../../proxy/dignite/cms/admin/sections';
10
+ import { FormControlsService } from '../../../../services/form-controls.service';
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class CreateOrEditComponent implements OnInit {
12
13
  private toaster;
@@ -17,11 +18,12 @@ export declare class CreateOrEditComponent implements OnInit {
17
18
  _EntryTypeAdminService: EntryTypeAdminService;
18
19
  _LocalizationService: LocalizationService;
19
20
  _CmsApiService: CmsApiService;
20
- constructor(toaster: ToasterService, _location: Location, route: ActivatedRoute, _FieldGroupAdminService: FieldGroupAdminService, _FieldAdminService: FieldAdminService, _EntryTypeAdminService: EntryTypeAdminService, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService);
21
+ _FormControlsService: FormControlsService;
22
+ constructor(toaster: ToasterService, _location: Location, route: ActivatedRoute, _FieldGroupAdminService: FieldGroupAdminService, _FieldAdminService: FieldAdminService, _EntryTypeAdminService: EntryTypeAdminService, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService, _FormControlsService: FormControlsService);
21
23
  private fb;
22
24
  private _UpdateListService;
23
25
  /**表单实体 */
24
- newEntity: FormGroup | undefined;
26
+ newEntity: FormGroup;
25
27
  /**版块id */
26
28
  sectionId: string;
27
29
  /**条目类型id */
@@ -33,7 +35,11 @@ export declare class CreateOrEditComponent implements OnInit {
33
35
  submitclick: ElementRef;
34
36
  /**触发提交按钮 */
35
37
  submitclickBtn(): void;
36
- ngOnInit(): void;
38
+ /**需要查询的动态表单类型 */
39
+ enableSearchTypeList: any[];
40
+ /**不需要展示的动态表单类型 */
41
+ disableshowinTypeList: any[];
42
+ ngOnInit(): Promise<void>;
37
43
  /**给fieldTabs添加新控件 */
38
44
  addControlToFieldTabs(nameValue?: string): void;
39
45
  /**获取字段分组 */
@@ -57,9 +63,9 @@ export declare class CreateOrEditComponent implements OnInit {
57
63
  /**数据源-所有字段列表 */
58
64
  fieldList: any[];
59
65
  /**数据源拖拽的分组下标 */
60
- DataSourceGroupIndex: number;
66
+ DataSourceGroupIndex: number | any;
61
67
  /**数据源拖拽的字段下标 */
62
- DataSourceFieldIndex: number;
68
+ DataSourceFieldIndex: number | any;
63
69
  /**目标源 结果*/
64
70
  resultSource: any[];
65
71
  /**从数据源拖拽的元素 */
@@ -93,7 +99,7 @@ export declare class CreateOrEditComponent implements OnInit {
93
99
  /**保存表单 */
94
100
  save(): boolean;
95
101
  /**编辑Tabs表单 */
96
- editFieldTabsFrom: FormGroup | undefined;
102
+ editFieldTabsFrom: FormGroup;
97
103
  /**模态框状态 */
98
104
  visibleTabsOpen: boolean;
99
105
  /**是否是忙碌状态 */
@@ -109,7 +115,7 @@ export declare class CreateOrEditComponent implements OnInit {
109
115
  /**新建增加FieldTabs */
110
116
  addFieldTabs(): void;
111
117
  /**正在编辑的tab下标 */
112
- newEditFieldTabsIndex: number;
118
+ newEditFieldTabsIndex: number | any;
113
119
  /**编辑FieldTabs */
114
120
  editFieldTabs(item: any, i: any): void;
115
121
  /**保存编辑tabs表单 */
@@ -119,13 +125,15 @@ export declare class CreateOrEditComponent implements OnInit {
119
125
  /**编辑字段模态框状态 */
120
126
  visibleEditFieldOpen: boolean;
121
127
  /**编辑字段模态框表单 */
122
- editFieldFrom: FormGroup | undefined;
128
+ editFieldFrom: FormGroup;
123
129
  /**表单控件模板-动态赋值表单控件-编辑字段 */
124
130
  editFieldModalSubmitBtn: ElementRef;
125
131
  /**正在编辑的字段下标 */
126
- EditFieldIndex: number;
132
+ EditFieldIndex: number | any;
127
133
  /**编辑字段模态框状态状态改变回调 */
128
134
  VisibleEditFieldChange(event: any): void;
135
+ isShowInList: boolean;
136
+ isEnableSearch: boolean;
129
137
  /**打开编辑字段模态框 */
130
138
  EditFieldModalOpen(items: any, elIndex: any): void;
131
139
  /**保存编辑字段 */
@@ -1,12 +1,12 @@
1
1
  import { ElementRef } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
2
+ import { FormControl, FormGroup } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class EntryControlComponent {
5
5
  constructor();
6
6
  private fb;
7
7
  private _EntryAdminService;
8
8
  /**表单实体 */
9
- _entity: FormGroup | undefined;
9
+ _entity: FormGroup | any;
10
10
  set entity(v: any);
11
11
  /**字段配置列表 */
12
12
  _fields: any;
@@ -27,6 +27,9 @@ export declare class EntryControlComponent {
27
27
  private cdr;
28
28
  dataLoaded(): Promise<void>;
29
29
  AfterInit(): Promise<unknown>;
30
+ get selectInput(): FormControl;
31
+ listOfSelectedValue: any;
32
+ ModelChange(event: any): void;
30
33
  /**获取对应的条目 */
31
34
  getEntryAssignList(filter?: string): Promise<unknown>;
32
35
  /** */
@@ -0,0 +1,36 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { FormControl, FormGroup } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EntrySearchComponent {
5
+ constructor();
6
+ private fb;
7
+ private _EntryAdminService;
8
+ /**表单实体 */
9
+ _entity: FormGroup | any;
10
+ set entity(v: any);
11
+ /**字段配置列表 */
12
+ _fields: any;
13
+ set fields(v: any);
14
+ /**父级字段名称,用于为表单设置控件赋值 */
15
+ _parentFiledName: any;
16
+ set parentFiledName(v: any);
17
+ /**语言 */
18
+ _culture: any;
19
+ set culture(v: any);
20
+ submitclick: ElementRef;
21
+ extraProperties: FormGroup | undefined;
22
+ /** */
23
+ listOfOption: any[];
24
+ private cdr;
25
+ dataLoaded(): Promise<void>;
26
+ AfterInit(): Promise<unknown>;
27
+ get selectInput(): FormControl;
28
+ listOfSelectedValue: any;
29
+ ModelChange(event: any): void;
30
+ /**获取对应的条目 */
31
+ getEntryAssignList(filter?: string): Promise<unknown>;
32
+ /** */
33
+ SelectChange(event: any): Promise<void>;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntrySearchComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntrySearchComponent, "cms-entry-search", never, { "entity": { "alias": "entity"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "culture": { "alias": "culture"; "required": false; }; }, {}, never, never, false, never>;
36
+ }
@@ -0,0 +1,22 @@
1
+ import { EntryAdminService } from '../../../proxy/dignite/cms/admin/entries';
2
+ import * as i0 from "@angular/core";
3
+ export declare class EntryViewComponent {
4
+ private _EntryAdminService;
5
+ constructor(_EntryAdminService: EntryAdminService);
6
+ /**展示则内容 */
7
+ showValue: any;
8
+ /**是否显示再列表 */
9
+ showInList: boolean;
10
+ /**表单字段数据 */
11
+ fields: any;
12
+ /**表单控件类型 */
13
+ type: any;
14
+ /**表单控件Value */
15
+ _value: any;
16
+ set value(v: any);
17
+ ngAfterContentInit(): Promise<void>;
18
+ /**获取条目详情 */
19
+ getListByIds(ids: any[]): Promise<unknown>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntryViewComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntryViewComponent, "cms-entry-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>;
22
+ }
@@ -1,3 +1,5 @@
1
1
  export * from './entry-config';
2
2
  export * from './entry-config.component';
3
3
  export * from './entry-control.component';
4
+ export * from './entry-view.component';
5
+ export * from './entry-search.component';
@@ -1,3 +1,4 @@
1
1
  export * from './matrix-config';
2
2
  export * from './matrix-control.component';
3
3
  export * from './matrix-config.component';
4
+ export * from './matrix-view.component';
@@ -1,9 +1,11 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
3
+ import { CmsApiService } from '../../../services';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class MatrixControlComponent {
5
6
  private fb;
6
- constructor(fb: FormBuilder);
7
+ private _CmsApiService;
8
+ constructor(fb: FormBuilder, _CmsApiService: CmsApiService);
7
9
  /**字段配置列表 */
8
10
  _fields: any;
9
11
  set fields(v: any);
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MatrixViewComponent {
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<MatrixViewComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatrixViewComponent, "cms-matrix-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
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './table-config';
2
2
  export * from './table-config.component';
3
3
  export * from './table-control.component';
4
+ export * from './table-view.component';
@@ -14,5 +14,5 @@ export declare class TableFormControl {
14
14
  required: any;
15
15
  /**描述 */
16
16
  description: any;
17
- constructor(data?: TableConfig);
17
+ constructor();
18
18
  }
@@ -1,8 +1,10 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { FormArray, FormGroup } from '@angular/forms';
3
+ import { CmsApiService } from '../../../services';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class TableControlComponent {
5
- constructor();
6
+ private _CmsApiService;
7
+ constructor(_CmsApiService: CmsApiService);
6
8
  private fb;
7
9
  /**表单实体 */
8
10
  _entity: FormGroup | undefined;
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TableViewComponent {
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<TableViewComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableViewComponent, "cms-table-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
+ }
@@ -1,4 +1,5 @@
1
1
  export interface FormControlDto {
2
2
  name?: string;
3
3
  displayName?: string;
4
+ enableSearch: boolean;
4
5
  }
@@ -45,6 +45,7 @@ export interface GetEntriesInput extends PagedAndSortedResultRequestDto {
45
45
  filter?: string;
46
46
  status?: EntryStatus;
47
47
  creatorId?: string;
48
+ queryingByFieldsJson?: string;
48
49
  }
49
50
  export interface MoveEntryInput {
50
51
  parentId?: string;
@@ -1,4 +1,4 @@
1
- import type * as FieldDtos from '../../fields/models';
1
+ import type * as FieldDtoall from '../../fields/models';
2
2
  import type { EntityDto, PagedAndSortedResultRequestDto } from '@abp/ng.core';
3
3
  export interface CreateFieldInput extends CreateOrUpdateFieldInputBase {
4
4
  }
@@ -13,7 +13,7 @@ export interface CreateOrUpdateFieldInputBase {
13
13
  formControlName: string;
14
14
  formConfiguration: Record<string, object>;
15
15
  }
16
- export interface FieldDto extends FieldDtos.FieldDto {
16
+ export interface FieldDto extends FieldDtoall.FieldDto {
17
17
  groupId?: string;
18
18
  groupName?: string;
19
19
  creationTime?: string;
@@ -24,7 +24,8 @@ export interface EntryFieldInput {
24
24
  fieldId: string;
25
25
  displayName: string;
26
26
  required: boolean;
27
- showOnList: boolean;
27
+ showInList: boolean;
28
+ enableSearch: boolean;
28
29
  }
29
30
  export interface EntryFieldTabInput {
30
31
  name: string;
@@ -4,7 +4,8 @@ export interface EntryFieldDto {
4
4
  field: FieldDto;
5
5
  displayName?: string;
6
6
  required: boolean;
7
- showOnList: boolean;
7
+ showInList: boolean;
8
+ enableSearch: boolean;
8
9
  }
9
10
  export interface EntryFieldTabDto {
10
11
  name?: string;
@@ -9,8 +9,15 @@ export declare class CmsApiService {
9
9
  * */
10
10
  chineseToPinyin(value: any): any;
11
11
  /**
12
- * 深拷贝--方法 */
12
+ * 深拷贝--方法 */
13
13
  deepClone(obj: any): any;
14
+ /**
15
+ * 递归将对象属性名首字母转为小写
16
+ * @param obj 需要处理的对象或数组
17
+ * @param isInsideFormConfig 标记是否在 FormConfiguration 内部
18
+ * @returns 处理后的新对象
19
+ */
20
+ convertKeysToCamelCase(obj: any, isInsideFormConfig?: boolean): any;
14
21
  static ɵfac: i0.ɵɵFactoryDeclaration<CmsApiService, never>;
15
22
  static ɵprov: i0.ɵɵInjectableDeclaration<CmsApiService>;
16
23
  }
@@ -0,0 +1,16 @@
1
+ import { FormAdminService } from '../proxy/dignite/cms/admin/dynamic-forms/form-admin.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormControlsService {
4
+ private _FormAdminService;
5
+ constructor(_FormAdminService: FormAdminService);
6
+ /**需要查询的动态表单类型 */
7
+ enableSearchTypeList: any[];
8
+ /**不需要展示的动态表单类型 */
9
+ disableshowinTypeList: any[];
10
+ /**获取动态表单类型 */
11
+ getDynamicFormType(): Promise<unknown>;
12
+ getEnableSearchTypeList(): Promise<any[]>;
13
+ getdisableshowinTypeList(): any[];
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormControlsService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormControlsService>;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dignite-ng/expand.cms",
3
- "version": "2.0.0-rc.8",
3
+ "version": "3.0.0-rc.14",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~18.1.0",
6
6
  "@angular/core": "~18.1.0"