@dignite-ng/expand.cms 0.0.17 → 0.0.19
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-routing.module.mjs +2 -2
- package/esm2022/lib/cms.module.mjs +9 -8
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +10 -4
- package/esm2022/lib/components/admin/fields/create-field.component.mjs +3 -3
- package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +20 -11
- package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +3 -3
- package/esm2022/lib/components/dynamic-form/form-control-group.mjs +3 -2
- package/esm2022/lib/components/dynamic-form/index.mjs +2 -2
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +14 -16
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +3 -3
- package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +11 -12
- package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +13 -14
- package/esm2022/lib/services/field-abstracts.service.mjs +1 -1
- package/esm2022/lib/services/simple-reuse-strategy.mjs +1 -1
- package/fesm2022/dignite-ng-expand.cms.mjs +606 -592
- package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -1
- package/lib/cms.module.d.ts +4 -4
- package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +3 -1
- package/lib/components/admin/fields/create-or-edit-field.component.d.ts +4 -0
- package/lib/components/dynamic-form/index.d.ts +1 -1
- package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +2 -3
- package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +1 -1
- package/lib/components/dynamic-form/table/table-config.component.d.ts +2 -3
- package/lib/components/dynamic-form/table/table-control.component.d.ts +3 -3
- package/lib/services/field-abstracts.service.d.ts +1 -1
- package/package.json +3 -3
package/lib/cms.module.d.ts
CHANGED
|
@@ -28,13 +28,13 @@ import * as i25 from "@angular/cdk/drag-drop";
|
|
|
28
28
|
import * as i26 from "@abp/ng.components/page";
|
|
29
29
|
import * as i27 from "@volo/abp.commercial.ng.ui/config";
|
|
30
30
|
import * as i28 from "ng-zorro-antd/select";
|
|
31
|
-
import * as i29 from "
|
|
32
|
-
import * as i30 from "
|
|
33
|
-
import * as i31 from "@
|
|
31
|
+
import * as i29 from "ng-zorro-antd/table";
|
|
32
|
+
import * as i30 from "@angular/cdk/scrolling";
|
|
33
|
+
import * as i31 from "@dignite-ng/expand.dynamic-form";
|
|
34
34
|
export declare class CmsModule {
|
|
35
35
|
static forChild(options?: any): ModuleWithProviders<CmsModule>;
|
|
36
36
|
static forLazy(options?: any): NgModuleFactory<CmsModule>;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmsModule, never>;
|
|
38
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CmsModule, [typeof i1.EntriesComponent, typeof i2.FieldsComponent, typeof i3.SitesComponent, typeof i4.SectionsComponent, typeof i5.FieldGroupComponent, typeof i6.CreateFieldComponent, typeof i7.EditFieldComponent, typeof i8.CreateOrEditFieldComponent, typeof i9.CreateOrEditComponent, typeof i10.CreateComponent, typeof i11.EditComponent, typeof i12.CreateOrEditEntriesComponent, typeof i13.TableConfigComponent, typeof i14.TableControlComponent, typeof i15.MatrixConfigComponent, typeof i16.MatrixControlComponent, typeof i17.EntryConfigComponent, typeof i18.EntryControlComponent], [typeof i19.CoreModule, typeof i20.ThemeSharedModule, typeof i21.CmsRoutingModule, typeof i22.NgbDropdownModule, typeof i23.FormsModule, typeof i23.ReactiveFormsModule, typeof i24.NgxValidateCoreModule, typeof i22.NgbNavModule, typeof i22.NgbAccordionModule, typeof i25.DragDropModule, typeof i26.PageModule, typeof i27.CommercialUiConfigModule, typeof i28.NzSelectModule, typeof i29.
|
|
38
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CmsModule, [typeof i1.EntriesComponent, typeof i2.FieldsComponent, typeof i3.SitesComponent, typeof i4.SectionsComponent, typeof i5.FieldGroupComponent, typeof i6.CreateFieldComponent, typeof i7.EditFieldComponent, typeof i8.CreateOrEditFieldComponent, typeof i9.CreateOrEditComponent, typeof i10.CreateComponent, typeof i11.EditComponent, typeof i12.CreateOrEditEntriesComponent, typeof i13.TableConfigComponent, typeof i14.TableControlComponent, typeof i15.MatrixConfigComponent, typeof i16.MatrixControlComponent, typeof i17.EntryConfigComponent, typeof i18.EntryControlComponent], [typeof i19.CoreModule, typeof i20.ThemeSharedModule, typeof i21.CmsRoutingModule, typeof i22.NgbDropdownModule, typeof i23.FormsModule, typeof i23.ReactiveFormsModule, typeof i24.NgxValidateCoreModule, typeof i22.NgbNavModule, typeof i22.NgbAccordionModule, typeof i25.DragDropModule, typeof i26.PageModule, typeof i27.CommercialUiConfigModule, typeof i28.NzSelectModule, typeof i29.NzTableModule, typeof i30.ScrollingModule, typeof i31.DynamicFormModule], [typeof i13.TableConfigComponent, typeof i14.TableControlComponent, typeof i15.MatrixConfigComponent, typeof i16.MatrixControlComponent, typeof i17.EntryConfigComponent, typeof i18.EntryControlComponent]>;
|
|
39
39
|
static ɵinj: i0.ɵɵInjectorDeclaration<CmsModule>;
|
|
40
40
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigStateService, LocalizationService } from '@abp/ng.core';
|
|
2
2
|
import { ToasterService } from '@abp/ng.theme.shared';
|
|
3
|
-
import { AfterContentInit } from '@angular/core';
|
|
3
|
+
import { AfterContentInit, QueryList, ViewContainerRef } from '@angular/core';
|
|
4
4
|
import { AbstractControl, FormGroup, ValidationErrors } from '@angular/forms';
|
|
5
5
|
import { Router } from '@angular/router';
|
|
6
6
|
import { EntryAdminService } from '../../../proxy/admin/entries';
|
|
@@ -60,6 +60,8 @@ export declare class CreateOrEditEntriesComponent implements AfterContentInit {
|
|
|
60
60
|
/**extraProperties配置表单实体 */
|
|
61
61
|
get extraProperties(): FormGroup<any>;
|
|
62
62
|
ngAfterContentInit(): Promise<void>;
|
|
63
|
+
/**表单控件模板-动态表单配置组件 */
|
|
64
|
+
FormDynamicontrolRef: QueryList<ViewContainerRef>;
|
|
63
65
|
/**定义自定义异步验证 */
|
|
64
66
|
cultureAsyncValidator_test(): (ctrl: AbstractControl) => Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
65
67
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ViewContainerRef } from '@angular/core';
|
|
1
2
|
import { FieldAbstractsService } from '../../../services/field-abstracts.service';
|
|
2
3
|
import { AbstractControl, FormGroup, ValidationErrors } from '@angular/forms';
|
|
3
4
|
import { CmsApiService } from '../../../services/cms-api.service';
|
|
@@ -10,6 +11,8 @@ export declare class CreateOrEditFieldComponent {
|
|
|
10
11
|
private _CmsApiService;
|
|
11
12
|
private _FieldAdminService;
|
|
12
13
|
private _LocalizationService;
|
|
14
|
+
/**表单控件模板-动态表单配置组件 */
|
|
15
|
+
FormDynamicRef: ViewContainerRef;
|
|
13
16
|
constructor(_FieldAbstractsService: FieldAbstractsService, _CmsApiService: CmsApiService, _FieldAdminService: FieldAdminService, _LocalizationService: LocalizationService);
|
|
14
17
|
/**表单实体 */
|
|
15
18
|
_Entity: FormGroup | undefined;
|
|
@@ -19,6 +22,7 @@ export declare class CreateOrEditFieldComponent {
|
|
|
19
22
|
_selected_copy: any;
|
|
20
23
|
_selected: any;
|
|
21
24
|
set selected(v: any);
|
|
25
|
+
private _CreateDynamicComponentsService;
|
|
22
26
|
dataLoaded(): Promise<void>;
|
|
23
27
|
/**name表单控件 */
|
|
24
28
|
get nameInput(): AbstractControl<any, any>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { FieldAbstractsService } from '../../../services';
|
|
4
|
-
import { CmsApiService } from '../../../services/cms-api.service';
|
|
3
|
+
import { CmsApiService, FieldAbstractsService } from '../../../services';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class MatrixConfigComponent {
|
|
7
6
|
private fb;
|
|
@@ -70,5 +69,5 @@ export declare class MatrixConfigComponent {
|
|
|
70
69
|
/**矩阵displayNameInput字段失去焦点 */
|
|
71
70
|
MatrixFieldDisplayNameInputBlur(event: any): void;
|
|
72
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatrixConfigComponent, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatrixConfigComponent, "
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatrixConfigComponent, "df-matrix-config", never, { "type": { "alias": "type"; "required": false; }; "Entity": { "alias": "Entity"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, {}, never, never, false, never>;
|
|
74
73
|
}
|
|
@@ -35,5 +35,5 @@ export declare class MatrixControlComponent {
|
|
|
35
35
|
/**删除矩阵控件 */
|
|
36
36
|
deleteMatrixControl(index: any): void;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatrixControlComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatrixControlComponent, "
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatrixControlComponent, "df-matrix-control", never, { "entity": { "alias": "entity"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "culture": { "alias": "culture"; "required": false; }; }, {}, never, never, false, never>;
|
|
39
39
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { FieldAbstractsService } from '../../../services';
|
|
4
|
-
import { CmsApiService } from '../../../services/cms-api.service';
|
|
3
|
+
import { CmsApiService, FieldAbstractsService } from '../../../services';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class TableConfigComponent {
|
|
7
6
|
private fb;
|
|
@@ -55,5 +54,5 @@ export declare class TableConfigComponent {
|
|
|
55
54
|
/**字段标签input失去标点生成字段名字 */
|
|
56
55
|
disPlayNameInputBlur(event: any, item: any): void;
|
|
57
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableConfigComponent, never>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableConfigComponent, "
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableConfigComponent, "df-table-config", never, { "Entity": { "alias": "Entity"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
|
|
59
58
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { FormArray,
|
|
2
|
+
import { FormArray, FormGroup } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TableControlComponent {
|
|
5
|
+
constructor();
|
|
5
6
|
private fb;
|
|
6
|
-
constructor(fb: FormBuilder);
|
|
7
7
|
/**表单实体 */
|
|
8
8
|
_entity: FormGroup | undefined;
|
|
9
9
|
set entity(v: any);
|
|
@@ -32,5 +32,5 @@ export declare class TableControlComponent {
|
|
|
32
32
|
/**调整表格位置 */
|
|
33
33
|
TableArrowUpOrDown(type: any, index: any): void;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableControlComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableControlComponent, "
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableControlComponent, "df-table-control", never, { "entity": { "alias": "entity"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, {}, never, never, false, never>;
|
|
36
36
|
}
|
|
@@ -14,7 +14,7 @@ export declare class FieldAbstractsService {
|
|
|
14
14
|
fromControlList: any[];
|
|
15
15
|
/**获取表单控件类型 */
|
|
16
16
|
getFromControlList(): Promise<unknown>;
|
|
17
|
-
getExcludeAssignControl(typeName
|
|
17
|
+
getExcludeAssignControl(typeName?: any): any[];
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldAbstractsService, never>;
|
|
19
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<FieldAbstractsService>;
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dignite-ng/expand.cms",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.2.0",
|
|
6
6
|
"@angular/core": "^16.2.0",
|
|
7
7
|
"pinyin-pro": "^3.19.6",
|
|
8
|
-
"@dignite-ng/expand.dynamic-form": "^0.0.
|
|
9
|
-
"@dignite-ng/expand.file-explorer": "^0.0.
|
|
8
|
+
"@dignite-ng/expand.dynamic-form": "^0.0.10",
|
|
9
|
+
"@dignite-ng/expand.file-explorer": "^0.0.10"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"tslib": "^2.3.0"
|