@dignite-ng/expand.cms 3.0.0-rc.43 → 3.0.0-rc.47
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/esm2022/lib/cms.module.mjs +6 -2
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +33 -3
- package/esm2022/lib/components/admin/entries/create.component.mjs +39 -8
- package/esm2022/lib/components/admin/entries/edit.component.mjs +55 -50
- package/esm2022/lib/components/admin/entries/entries.component.mjs +4 -3
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +7 -7
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +40 -7
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +50 -10
- package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +44 -9
- package/esm2022/lib/pipes/get-localized-entries-by-slug.pipe.mjs +43 -0
- package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/admin/entries/entry-admin.service.mjs +6 -1
- package/esm2022/lib/proxy/dignite/cms/admin/fields/models.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/fields/models.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/sections/models.mjs +1 -1
- package/esm2022/lib/resolvers/page-default-toolbar-actions.mjs +3 -3
- package/fesm2022/dignite-ng-expand.cms.mjs +311 -90
- package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -1
- package/lib/cms.module.d.ts +2 -1
- package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +5 -0
- package/lib/components/admin/entries/create.component.d.ts +3 -0
- package/lib/components/admin/entries/edit.component.d.ts +1 -0
- package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +0 -6
- package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +4 -0
- package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +4 -0
- package/lib/components/dynamic-form/table/table-control.component.d.ts +4 -0
- package/lib/pipes/get-localized-entries-by-slug.pipe.d.ts +10 -0
- package/lib/proxy/dignite/cms/admin/entries/entry-admin.service.d.ts +1 -0
- package/lib/proxy/dignite/cms/admin/fields/models.d.ts +2 -2
- package/lib/proxy/dignite/cms/fields/models.d.ts +1 -1
- package/lib/proxy/dignite/cms/sections/models.d.ts +2 -2
- package/package.json +1 -1
package/lib/cms.module.d.ts
CHANGED
|
@@ -34,10 +34,11 @@ import * as i31 from "@angular/cdk/drag-drop";
|
|
|
34
34
|
import * as i32 from "@swimlane/ngx-datatable";
|
|
35
35
|
import * as i33 from "@ckeditor/ckeditor5-angular";
|
|
36
36
|
import * as i34 from "@angular/forms";
|
|
37
|
+
import * as i35 from "./pipes/get-localized-entries-by-slug.pipe";
|
|
37
38
|
export declare class CmsModule {
|
|
38
39
|
static forChild(options?: any): ModuleWithProviders<CmsModule>;
|
|
39
40
|
static forLazy(options?: any): NgModuleFactory<CmsModule>;
|
|
40
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmsModule, never>;
|
|
41
|
-
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 i33.CKEditorModule, typeof i34.FormsModule], [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]>;
|
|
42
|
+
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 i33.CKEditorModule, typeof i34.FormsModule, typeof i35.GetLocalizedEntriesBySlugPipe], [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]>;
|
|
42
43
|
static ɵinj: i0.ɵɵInjectorDeclaration<CmsModule>;
|
|
43
44
|
}
|
|
@@ -61,6 +61,11 @@ export declare class CreateOrEditEntriesComponent {
|
|
|
61
61
|
getSiteSettingsLanguages(): Promise<unknown>;
|
|
62
62
|
/**加载数据 */
|
|
63
63
|
loadData(): Promise<void>;
|
|
64
|
+
/**获取别名下其他的语言版本 */
|
|
65
|
+
getLocalizedEntriesBySlug(): Promise<unknown>;
|
|
66
|
+
SlugRegExValidator(): (control: AbstractControl) => {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
} | null;
|
|
64
69
|
SlugAsyncValidator(): (control: AbstractControl) => Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
65
70
|
/**定义自定义异步验证 */
|
|
66
71
|
cultureAsyncValidator(): Promise<unknown>;
|
|
@@ -8,6 +8,7 @@ export declare class CreateComponent implements OnInit {
|
|
|
8
8
|
private toaster;
|
|
9
9
|
_location: Location;
|
|
10
10
|
private route;
|
|
11
|
+
private router;
|
|
11
12
|
private _EntryAdminService;
|
|
12
13
|
private _LocalizationService;
|
|
13
14
|
private _ValidatorsService;
|
|
@@ -46,11 +47,13 @@ export declare class CreateComponent implements OnInit {
|
|
|
46
47
|
_feedbackChildInfo(event: any): void;
|
|
47
48
|
/**当返回结果为true时表示未通过验证 */
|
|
48
49
|
isCheckFormCms(input: any, module: any): boolean;
|
|
50
|
+
private _LocationBackService;
|
|
49
51
|
/**提交 */
|
|
50
52
|
save(): void;
|
|
51
53
|
isSubmit: boolean | any;
|
|
52
54
|
/**点击提交 */
|
|
53
55
|
clickSubmit(type: any): void;
|
|
56
|
+
get slugInput(): FormControl;
|
|
54
57
|
/**返回上一页 */
|
|
55
58
|
backTo(): void;
|
|
56
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateComponent, never>;
|
|
@@ -124,6 +124,8 @@ export declare class CreateOrEditComponent implements OnInit {
|
|
|
124
124
|
editFieldTabsSave(): void;
|
|
125
125
|
/**删除某个tabs表单 */
|
|
126
126
|
deleteFieldTabs(index: any): void;
|
|
127
|
+
/**删除tab标签后还原 fieldGroupList */
|
|
128
|
+
deleteTabFieldGroupList(deleteFields: any): void;
|
|
127
129
|
/**编辑字段模态框状态 */
|
|
128
130
|
visibleEditFieldOpen: boolean | any;
|
|
129
131
|
/**编辑字段模态框表单 */
|
|
@@ -140,6 +142,8 @@ export declare class CreateOrEditComponent implements OnInit {
|
|
|
140
142
|
EditFieldModalOpen(items: any, elIndex: any): void;
|
|
141
143
|
/**保存编辑字段 */
|
|
142
144
|
editFieldSave(): void;
|
|
145
|
+
/**点击“字段布局”复选框事件 */
|
|
146
|
+
checkboxChange(event: any, input: any): void;
|
|
143
147
|
/**name表单控件 */
|
|
144
148
|
get nameInput(): any;
|
|
145
149
|
/**字段标签input失去标点生成字段名字 */
|
|
@@ -31,6 +31,10 @@ export declare class MatrixControlComponent {
|
|
|
31
31
|
/**获取表格字段代表的控件 */
|
|
32
32
|
fieldNameControl: FormArray | undefined;
|
|
33
33
|
AfterInit(): Promise<unknown>;
|
|
34
|
+
/**是否带有值验证器 */
|
|
35
|
+
hasValueValidator(g: FormArray): {
|
|
36
|
+
required: boolean;
|
|
37
|
+
};
|
|
34
38
|
/**矩阵列表 */
|
|
35
39
|
MatrixBlockTypesList: any[];
|
|
36
40
|
/**增加指定矩阵控件项 */
|
|
@@ -31,6 +31,10 @@ export declare class TableControlComponent {
|
|
|
31
31
|
/**获取表格字段代表的控件 */
|
|
32
32
|
fieldNameControl: FormArray | undefined;
|
|
33
33
|
AfterInit(): Promise<unknown>;
|
|
34
|
+
/**是否带有值验证器 */
|
|
35
|
+
hasValueValidator(g: FormArray): {
|
|
36
|
+
required: boolean;
|
|
37
|
+
};
|
|
34
38
|
/**增加表格项 */
|
|
35
39
|
addTableControlItem(): void;
|
|
36
40
|
/**删除表格项 */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GetLocalizedEntriesBySlugPipe implements PipeTransform {
|
|
4
|
+
private _EntryAdminService;
|
|
5
|
+
transform(value: any, ...args: any[]): Promise<any>;
|
|
6
|
+
/**获取别名下其他的语言版本 */
|
|
7
|
+
getLocalizedEntriesBySlug(sectionId: any, slug: any): Promise<unknown>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetLocalizedEntriesBySlugPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GetLocalizedEntriesBySlugPipe, "getLocalizedEntriesBySlug", true>;
|
|
10
|
+
}
|
|
@@ -13,6 +13,7 @@ export declare class EntryAdminService {
|
|
|
13
13
|
getAllVersions: (id: string, config?: Partial<Rest.Config>) => import("rxjs").Observable<ListResultDto<EntryDto>>;
|
|
14
14
|
getList: (input: GetEntriesInput, config?: Partial<Rest.Config>) => import("rxjs").Observable<PagedResultDto<EntryDto>>;
|
|
15
15
|
getListByIds: (sectionId: string, ids: string[], config?: Partial<Rest.Config>) => import("rxjs").Observable<ListResultDto<EntryDto>>;
|
|
16
|
+
getLocalizedEntriesBySlug: (sectionId: string, slug: string, config?: Partial<Rest.Config>) => import("rxjs").Observable<ListResultDto<EntryDto>>;
|
|
16
17
|
move: (id: string, input: MoveEntryInput, config?: Partial<Rest.Config>) => import("rxjs").Observable<void>;
|
|
17
18
|
slugExists: (input: SlugExistsInput, config?: Partial<Rest.Config>) => import("rxjs").Observable<boolean>;
|
|
18
19
|
update: (id: string, input: UpdateEntryInput, config?: Partial<Rest.Config>) => import("rxjs").Observable<EntryDto>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { FieldDto1 } 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
|
|
16
|
+
export interface FieldDto extends FieldDto1 {
|
|
17
17
|
groupId?: string;
|
|
18
18
|
groupName?: string;
|
|
19
19
|
creationTime?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FieldDto1 } from '../fields/models';
|
|
2
2
|
export interface EntryFieldDto {
|
|
3
3
|
fieldId?: string;
|
|
4
|
-
field:
|
|
4
|
+
field: FieldDto1;
|
|
5
5
|
displayName?: string;
|
|
6
6
|
required: boolean;
|
|
7
7
|
showInList: boolean;
|