@dignite-ng/expand.cms 0.0.38 → 0.0.40
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.
- package/config/components/domains/domains.component.d.ts +22 -0
- package/config/proxy/admin/domains/domain-admin.service.d.ts +13 -0
- package/config/proxy/admin/domains/index.d.ts +2 -0
- package/config/proxy/admin/domains/models.d.ts +7 -0
- package/esm2022/config/components/domains/domains.component.mjs +93 -0
- package/esm2022/config/providers/route.provider.mjs +2 -12
- package/esm2022/config/proxy/admin/domains/domain-admin.service.mjs +33 -0
- package/esm2022/config/proxy/admin/domains/index.mjs +3 -0
- package/esm2022/config/proxy/admin/domains/models.mjs +2 -0
- package/esm2022/lib/cms.module.mjs +7 -11
- package/esm2022/lib/components/admin/domains/domains.component.mjs +1 -1
- package/esm2022/lib/components/admin/entries/create.component.mjs +6 -9
- package/esm2022/lib/components/admin/entries/edit.component.mjs +6 -9
- package/esm2022/lib/components/admin/fields/create-field.component.mjs +10 -14
- package/esm2022/lib/components/admin/fields/edit-field.component.mjs +6 -9
- package/esm2022/lib/components/admin/fields/fields.component.mjs +11 -13
- package/esm2022/lib/components/admin/index.mjs +1 -2
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +29 -31
- package/esm2022/lib/components/admin/sections/sections.component.mjs +12 -66
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +3 -3
- package/esm2022/public-api.mjs +1 -2
- package/fesm2022/dignite-ng-expand.cms-config.mjs +119 -13
- package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -1
- package/fesm2022/dignite-ng-expand.cms.mjs +84 -264
- package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -1
- package/lib/cms.module.d.ts +8 -9
- package/lib/components/admin/entries/create.component.d.ts +2 -3
- package/lib/components/admin/entries/edit.component.d.ts +2 -3
- package/lib/components/admin/fields/create-field.component.d.ts +1 -3
- package/lib/components/admin/fields/edit-field.component.d.ts +2 -3
- package/lib/components/admin/fields/fields.component.d.ts +1 -3
- package/lib/components/admin/index.d.ts +0 -1
- package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +2 -3
- package/lib/components/admin/sections/sections.component.d.ts +1 -34
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
package/lib/cms.module.d.ts
CHANGED
|
@@ -17,19 +17,18 @@ 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 "
|
|
21
|
-
import * as i19 from "@abp/ng.
|
|
22
|
-
import * as i20 from "@
|
|
20
|
+
import * as i18 from "@abp/ng.core";
|
|
21
|
+
import * as i19 from "@abp/ng.theme.shared";
|
|
22
|
+
import * as i20 from "@angular/forms";
|
|
23
23
|
import * as i21 from "./cms-routing.module";
|
|
24
|
-
import * as i22 from "@
|
|
25
|
-
import * as i23 from "@ng
|
|
26
|
-
import * as i24 from "
|
|
27
|
-
import * as i25 from "ng-
|
|
28
|
-
import * as i26 from "@dignite-ng/expand.dynamic-form";
|
|
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";
|
|
29
28
|
export declare class CmsModule {
|
|
30
29
|
static forChild(options?: any): ModuleWithProviders<CmsModule>;
|
|
31
30
|
static forLazy(options?: any): NgModuleFactory<CmsModule>;
|
|
32
31
|
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.
|
|
32
|
+
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.CoreModule, typeof i19.ThemeSharedModule, typeof i20.FormsModule, typeof i21.CmsRoutingModule, typeof i22.NgbNavModule, typeof i22.NgbAccordionModule, typeof i22.NgbDropdownModule, typeof i23.PageModule, typeof i24.NzSelectModule, typeof i25.DynamicFormModule], [typeof i12.TableConfigComponent, typeof i13.TableControlComponent, typeof i14.MatrixConfigComponent, typeof i15.MatrixControlComponent, typeof i16.EntryConfigComponent, typeof i17.EntryControlComponent]>;
|
|
34
33
|
static ɵinj: i0.ɵɵInjectorDeclaration<CmsModule>;
|
|
35
34
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToasterService } from '@abp/ng.theme.shared';
|
|
2
2
|
import { ElementRef, OnInit } from '@angular/core';
|
|
3
3
|
import { FormGroup } from '@angular/forms';
|
|
4
|
-
import { ActivatedRoute
|
|
4
|
+
import { ActivatedRoute } from '@angular/router';
|
|
5
5
|
import { Location } from '@angular/common';
|
|
6
6
|
import { LocalizationService } from '@abp/ng.core';
|
|
7
7
|
import { EntryAdminService } from '../../../proxy/admin/entries';
|
|
@@ -12,8 +12,7 @@ export declare class CreateComponent implements OnInit {
|
|
|
12
12
|
private route;
|
|
13
13
|
private _EntryAdminService;
|
|
14
14
|
private _LocalizationService;
|
|
15
|
-
|
|
16
|
-
constructor(toaster: ToasterService, _location: Location, route: ActivatedRoute, _EntryAdminService: EntryAdminService, _LocalizationService: LocalizationService, router: Router);
|
|
15
|
+
constructor(toaster: ToasterService, _location: Location, route: ActivatedRoute, _EntryAdminService: EntryAdminService, _LocalizationService: LocalizationService);
|
|
17
16
|
private fb;
|
|
18
17
|
private _updateListService;
|
|
19
18
|
/**表单实体 */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToasterService } from '@abp/ng.theme.shared';
|
|
2
2
|
import { ElementRef, OnInit } from '@angular/core';
|
|
3
3
|
import { FormGroup } from '@angular/forms';
|
|
4
|
-
import { ActivatedRoute
|
|
4
|
+
import { ActivatedRoute } from '@angular/router';
|
|
5
5
|
import { Location } from '@angular/common';
|
|
6
6
|
import { LocalizationService } from '@abp/ng.core';
|
|
7
7
|
import { EntryAdminService } from '../../../proxy/admin/entries';
|
|
@@ -11,9 +11,8 @@ export declare class EditComponent implements OnInit {
|
|
|
11
11
|
_location: Location;
|
|
12
12
|
private route;
|
|
13
13
|
private _EntryAdminService;
|
|
14
|
-
private router;
|
|
15
14
|
private _LocalizationService;
|
|
16
|
-
constructor(toaster: ToasterService, _location: Location, route: ActivatedRoute, _EntryAdminService: EntryAdminService,
|
|
15
|
+
constructor(toaster: ToasterService, _location: Location, route: ActivatedRoute, _EntryAdminService: EntryAdminService, _LocalizationService: LocalizationService);
|
|
17
16
|
private fb;
|
|
18
17
|
private _updateListService;
|
|
19
18
|
/**表单实体 */
|
|
@@ -5,7 +5,6 @@ import { FieldAdminService } from '../../../proxy/admin/fields';
|
|
|
5
5
|
import { Location } from '@angular/common';
|
|
6
6
|
import { LocalizationService } from '@abp/ng.core';
|
|
7
7
|
import { CmsApiService } from '../../../services';
|
|
8
|
-
import { Router } from '@angular/router';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export declare class CreateFieldComponent {
|
|
11
10
|
private fb;
|
|
@@ -14,8 +13,7 @@ export declare class CreateFieldComponent {
|
|
|
14
13
|
_location: Location;
|
|
15
14
|
_LocalizationService: LocalizationService;
|
|
16
15
|
_CmsApiService: CmsApiService;
|
|
17
|
-
|
|
18
|
-
constructor(fb: FormBuilder, _FieldAdminService: FieldAdminService, toaster: ToasterService, _location: Location, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService, router: Router);
|
|
16
|
+
constructor(fb: FormBuilder, _FieldAdminService: FieldAdminService, toaster: ToasterService, _location: Location, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService);
|
|
19
17
|
private _UpdateListService;
|
|
20
18
|
/**表单实体 */
|
|
21
19
|
newEntity: FormGroup | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { FieldAbstractsService } from '../../../services/field-abstracts.service';
|
|
4
|
-
import { ActivatedRoute
|
|
4
|
+
import { ActivatedRoute } from '@angular/router';
|
|
5
5
|
import { FieldAdminService } from '../../../proxy/admin/fields';
|
|
6
6
|
import { ToasterService } from '@abp/ng.theme.shared';
|
|
7
7
|
import { Location } from '@angular/common';
|
|
@@ -17,8 +17,7 @@ export declare class EditFieldComponent implements OnInit {
|
|
|
17
17
|
_location: Location;
|
|
18
18
|
_LocalizationService: LocalizationService;
|
|
19
19
|
_CmsApiService: CmsApiService;
|
|
20
|
-
|
|
21
|
-
constructor(fb: FormBuilder, _FieldAbstractsService: FieldAbstractsService, _FieldAdminService: FieldAdminService, route: ActivatedRoute, toaster: ToasterService, _location: Location, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService, router: Router);
|
|
20
|
+
constructor(fb: FormBuilder, _FieldAbstractsService: FieldAbstractsService, _FieldAdminService: FieldAdminService, route: ActivatedRoute, toaster: ToasterService, _location: Location, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService);
|
|
22
21
|
/**表单实体 */
|
|
23
22
|
newEntity: FormGroup | undefined;
|
|
24
23
|
/**字段id */
|
|
@@ -4,7 +4,6 @@ import { OnInit } from '@angular/core';
|
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
5
|
import { FieldAdminService, FieldDto, GetFieldsInput } from '../../../proxy/admin/fields';
|
|
6
6
|
import { ColumnMode } from "@swimlane/ngx-datatable";
|
|
7
|
-
import { CmsApiService } from '../../../services';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class FieldsComponent implements OnInit {
|
|
10
9
|
readonly list: ListService;
|
|
@@ -13,8 +12,7 @@ export declare class FieldsComponent implements OnInit {
|
|
|
13
12
|
private confirmation;
|
|
14
13
|
private _LocalizationService;
|
|
15
14
|
private router;
|
|
16
|
-
|
|
17
|
-
constructor(list: ListService, _FieldAdminService: FieldAdminService, toaster: ToasterService, confirmation: ConfirmationService, _LocalizationService: LocalizationService, router: Router, _CmsApiService: CmsApiService);
|
|
15
|
+
constructor(list: ListService, _FieldAdminService: FieldAdminService, toaster: ToasterService, confirmation: ConfirmationService, _LocalizationService: LocalizationService, router: Router);
|
|
18
16
|
private _UpdateListService;
|
|
19
17
|
/**表格单元格布局类型 */
|
|
20
18
|
ColumnMode: typeof ColumnMode;
|
|
@@ -4,7 +4,7 @@ import { FormArray, FormGroup } from '@angular/forms';
|
|
|
4
4
|
import { Location } from '@angular/common';
|
|
5
5
|
import { FieldGroupAdminService, FieldAdminService } from '../../../../proxy/admin/fields';
|
|
6
6
|
import { EntryTypeAdminService } from '../../../../proxy/admin/sections';
|
|
7
|
-
import { ActivatedRoute
|
|
7
|
+
import { ActivatedRoute } from '@angular/router';
|
|
8
8
|
import { LocalizationService } from '@abp/ng.core';
|
|
9
9
|
import { CmsApiService } from '../../../../services/cms-api.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
@@ -17,8 +17,7 @@ export declare class CreateOrEditComponent implements OnInit {
|
|
|
17
17
|
_EntryTypeAdminService: EntryTypeAdminService;
|
|
18
18
|
_LocalizationService: LocalizationService;
|
|
19
19
|
_CmsApiService: CmsApiService;
|
|
20
|
-
|
|
21
|
-
constructor(toaster: ToasterService, _location: Location, route: ActivatedRoute, _FieldGroupAdminService: FieldGroupAdminService, _FieldAdminService: FieldAdminService, _EntryTypeAdminService: EntryTypeAdminService, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService, router: Router);
|
|
20
|
+
constructor(toaster: ToasterService, _location: Location, route: ActivatedRoute, _FieldGroupAdminService: FieldGroupAdminService, _FieldAdminService: FieldAdminService, _EntryTypeAdminService: EntryTypeAdminService, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService);
|
|
22
21
|
private fb;
|
|
23
22
|
private _UpdateListService;
|
|
24
23
|
/**表单实体 */
|
|
@@ -7,7 +7,6 @@ import { ColumnMode } from '@swimlane/ngx-datatable';
|
|
|
7
7
|
import { SectionType } from '../../../proxy/sections';
|
|
8
8
|
import { CmsApiService } from '../../../services/cms-api.service';
|
|
9
9
|
import { Observable } from 'rxjs';
|
|
10
|
-
import { Router } from '@angular/router';
|
|
11
10
|
import * as i0 from "@angular/core";
|
|
12
11
|
export declare class SectionsComponent implements OnInit {
|
|
13
12
|
readonly list: ListService;
|
|
@@ -18,72 +17,40 @@ export declare class SectionsComponent implements OnInit {
|
|
|
18
17
|
_EntryTypeAdminService: EntryTypeAdminService;
|
|
19
18
|
_LocalizationService: LocalizationService;
|
|
20
19
|
_CmsApiService: CmsApiService;
|
|
21
|
-
|
|
22
|
-
constructor(list: ListService, _SectionAdminService: SectionAdminService, toaster: ToasterService, confirmation: ConfirmationService, fb: FormBuilder, _EntryTypeAdminService: EntryTypeAdminService, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService, router: Router);
|
|
20
|
+
constructor(list: ListService, _SectionAdminService: SectionAdminService, toaster: ToasterService, confirmation: ConfirmationService, fb: FormBuilder, _EntryTypeAdminService: EntryTypeAdminService, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService);
|
|
23
21
|
private _UpdateListService;
|
|
24
|
-
/**跳转编辑 */
|
|
25
|
-
jumpSectionsEdit(row: any, item: any): void;
|
|
26
|
-
/**跳转新建 */
|
|
27
|
-
jumpSectionsCreate(row: any): void;
|
|
28
|
-
/**版块列表 */
|
|
29
22
|
siteList: any[];
|
|
30
|
-
/*** */
|
|
31
23
|
ColumnMode: typeof ColumnMode;
|
|
32
24
|
data: PagedResultDto<SectionDto>;
|
|
33
|
-
/** */
|
|
34
25
|
filters: GetSectionsInput;
|
|
35
|
-
/**获取页面列表 */
|
|
36
26
|
hookToQuery(): void;
|
|
37
27
|
ngOnInit(): Promise<void>;
|
|
38
|
-
/**站点切换 */
|
|
39
28
|
siteIdChange(): void;
|
|
40
|
-
/**创建版块模态框状态 */
|
|
41
29
|
visibleOpen: boolean;
|
|
42
|
-
/**用于确定模态的繁忙状态是否为真 */
|
|
43
30
|
modalBusy: boolean;
|
|
44
|
-
/**创建版块表单 */
|
|
45
31
|
createOrEditForm: FormGroup | undefined;
|
|
46
|
-
/**版块给定的表单值 */
|
|
47
32
|
selected: any;
|
|
48
33
|
_SectionType: typeof SectionType;
|
|
49
34
|
_sectionTypeOptions: ABP.Option<typeof SectionType>[];
|
|
50
|
-
/**表单控件模板-动态赋值表单控件 */
|
|
51
35
|
createOrEditModalSubmitBtn: ElementRef;
|
|
52
|
-
/**创建版块模态框状态改变 */
|
|
53
36
|
VisibleChange(event: any): void;
|
|
54
|
-
/**创建版块,打开模态框 */
|
|
55
37
|
createSectionBtn(): void;
|
|
56
|
-
/**编辑版块,打开模态框 */
|
|
57
38
|
editSectionBtn(row: any): void;
|
|
58
|
-
/**删除某个条目类型 */
|
|
59
39
|
deleteEntryType(row: any): void;
|
|
60
|
-
/**表单保存提交 */
|
|
61
40
|
createOrEditSave(): void;
|
|
62
|
-
/** */
|
|
63
41
|
createSave(): void;
|
|
64
|
-
/**创建版块保存 */
|
|
65
42
|
EditSave(): void;
|
|
66
|
-
/**删除版块 */
|
|
67
43
|
deletefield(row: any): void;
|
|
68
|
-
/**name表单控件 */
|
|
69
44
|
get displayNameInput(): AbstractControl<any, any>;
|
|
70
|
-
/**name表单控件 */
|
|
71
45
|
get nameInput(): AbstractControl<any, any>;
|
|
72
|
-
/**route表单控件 */
|
|
73
46
|
get routeInput(): AbstractControl<any, any>;
|
|
74
|
-
/**route表单控件 */
|
|
75
47
|
get templateInput(): AbstractControl<any, any>;
|
|
76
|
-
/**route表单控件 */
|
|
77
48
|
get typeInput(): AbstractControl<any, any>;
|
|
78
49
|
radiochange(): void;
|
|
79
|
-
/**字段标签input失去标点生成字段名字 */
|
|
80
50
|
disPlayNameInputBlur(event: any): void;
|
|
81
|
-
/**设置字段控件异步验证 */
|
|
82
51
|
setAsyncValidatorsFn(): void;
|
|
83
52
|
forbiddenNameValidator(): ValidatorFn;
|
|
84
|
-
/**定义异步验证方法 */
|
|
85
53
|
nameRepetitionAsyncValidator(): (ctrl: AbstractControl) => Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
86
|
-
/**定义异步验证方法 */
|
|
87
54
|
routeRepetitionAsyncValidator(): (ctrl: AbstractControl) => Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
88
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<SectionsComponent, never>;
|
|
89
56
|
static ɵcmp: i0.ɵɵComponentDeclaration<SectionsComponent, "cms-sections", never, {}, {}, never, never, false, never>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED