@dignite-ng/expand.cms 2.0.0-rc.11 → 2.0.0-rc.12

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.
@@ -17,21 +17,24 @@ 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";
29
- import * as i27 from "@angular/cdk/drag-drop";
30
- import * as i28 from "@swimlane/ngx-datatable";
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 "@abp/ng.core";
25
+ import * as i23 from "@abp/ng.theme.shared";
26
+ import * as i24 from "./cms-routing.module";
27
+ import * as i25 from "@ng-bootstrap/ng-bootstrap";
28
+ import * as i26 from "@abp/ng.components/page";
29
+ import * as i27 from "ng-zorro-antd/select";
30
+ import * as i28 from "@dignite-ng/expand.dynamic-form";
31
+ import * as i29 from "@abp/ng.components/extensible";
32
+ import * as i30 from "@angular/cdk/drag-drop";
33
+ import * as i31 from "@swimlane/ngx-datatable";
31
34
  export declare class CmsModule {
32
35
  static forChild(options?: any): ModuleWithProviders<CmsModule>;
33
36
  static forLazy(options?: any): NgModuleFactory<CmsModule>;
34
37
  static ɵfac: i0.ɵɵFactoryDeclaration<CmsModule, never>;
35
- 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 i27.DragDropModule, typeof i28.NgxDatatableModule], [typeof i12.TableConfigComponent, typeof i13.TableControlComponent, typeof i14.MatrixConfigComponent, typeof i15.MatrixControlComponent, typeof i16.EntryConfigComponent, typeof i17.EntryControlComponent]>;
38
+ 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.CoreModule, typeof i23.ThemeSharedModule, typeof i24.CmsRoutingModule, typeof i25.NgbNavModule, typeof i25.NgbAccordionModule, typeof i25.NgbDropdownModule, typeof i26.PageModule, typeof i27.NzSelectModule, typeof i28.DynamicFormModule, typeof i29.ExtensibleModule, typeof i30.DragDropModule, typeof i31.NgxDatatableModule], [typeof i12.TableConfigComponent, typeof i13.TableControlComponent, typeof i14.MatrixConfigComponent, typeof i15.MatrixControlComponent, typeof i16.EntryConfigComponent, typeof i17.EntryControlComponent]>;
36
39
  static ɵinj: i0.ɵɵInjectorDeclaration<CmsModule>;
37
40
  }
@@ -9,6 +9,7 @@ import { SectionAdminService } from '../../../proxy/dignite/cms/admin/sections';
9
9
  import { SectionType } from '../../../proxy/dignite/cms/sections';
10
10
  import { FormAdminService } from '../../../proxy/dignite/cms/admin/dynamic-forms';
11
11
  import { FieldAdminService } from '../../../proxy/dignite/cms/admin/fields';
12
+ import { FormControlsService } from '../../../services/form-controls.service';
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class EntriesComponent implements OnInit {
14
15
  private _EntryAdminService;
@@ -21,7 +22,8 @@ export declare class EntriesComponent implements OnInit {
21
22
  private _FormAdminService;
22
23
  private _FieldAdminService;
23
24
  private cdRef;
24
- constructor(_EntryAdminService: EntryAdminService, _SectionAdminService: SectionAdminService, toaster: ToasterService, confirmation: ConfirmationService, configState: ConfigStateService, router: Router, _LocalizationService: LocalizationService, _FormAdminService: FormAdminService, _FieldAdminService: FieldAdminService, cdRef: ChangeDetectorRef);
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);
25
27
  private fb;
26
28
  private _UpdateListService;
27
29
  readonly list: ListService<any>;
@@ -47,7 +49,6 @@ export declare class EntriesComponent implements OnInit {
47
49
  /**需要展示的动态列表字段 */
48
50
  showinFieldList: any[];
49
51
  /**获取动态表单类型 */
50
- getDynamicFormType(): Promise<unknown>;
51
52
  /**切换板块 */
52
53
  sectionIdChange(): Promise<void>;
53
54
  /**切换语言 */
@@ -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
  /**保存编辑字段 */
@@ -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
+ }
@@ -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
+ }
@@ -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
+ }
@@ -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.11",
3
+ "version": "2.0.0-rc.12",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~18.1.0",
6
6
  "@angular/core": "~18.1.0"