@dignite-ng/expand.cms 3.0.0-rc.17 → 3.0.0-rc.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/README.md +128 -24
- package/esm2022/config/cms-config.module.mjs +1 -1
- package/esm2022/config/dignite-ng-expand.cms-config.mjs +1 -1
- package/esm2022/config/enums/index.mjs +1 -1
- package/esm2022/config/enums/route-names.mjs +1 -1
- package/esm2022/config/providers/index.mjs +1 -1
- package/esm2022/config/providers/route.provider.mjs +1 -1
- package/esm2022/config/public-api.mjs +1 -1
- package/esm2022/dignite-ng-expand.cms.mjs +1 -1
- package/esm2022/lib/cms-routing.module.mjs +1 -1
- package/esm2022/lib/cms.module.mjs +1 -1
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +3 -2
- package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +1 -1
- package/esm2022/lib/components/admin/entries/create.component.mjs +2 -2
- package/esm2022/lib/components/admin/entries/edit.component.mjs +2 -2
- package/esm2022/lib/components/admin/entries/entries.component.mjs +10 -3
- package/esm2022/lib/components/admin/entries/index.mjs +1 -1
- package/esm2022/lib/components/admin/fields/create-field.component.mjs +8 -2
- package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +7 -7
- package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +1 -1
- package/esm2022/lib/components/admin/fields/edit-field.component.mjs +9 -2
- package/esm2022/lib/components/admin/fields/field-group.component.mjs +6 -2
- package/esm2022/lib/components/admin/fields/fields.component.mjs +5 -2
- package/esm2022/lib/components/admin/fields/index.mjs +1 -1
- package/esm2022/lib/components/admin/index.mjs +1 -1
- package/esm2022/lib/components/admin/sections/create-or-edit-sections-modal.component.mjs +3 -3
- package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +1 -1
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +1 -1
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +10 -2
- package/esm2022/lib/components/admin/sections/entry-types/index.mjs +1 -1
- package/esm2022/lib/components/admin/sections/index.mjs +1 -1
- package/esm2022/lib/components/admin/sections/sections.component.mjs +6 -2
- package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +4 -3
- package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +1 -1
- package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +2 -2
- package/esm2022/lib/components/dynamic-form/entry/entry-search.component.mjs +2 -2
- package/esm2022/lib/components/dynamic-form/entry/entry-view.component.mjs +2 -1
- package/esm2022/lib/components/dynamic-form/entry/index.mjs +1 -1
- package/esm2022/lib/components/dynamic-form/form-control-group.mjs +1 -1
- package/esm2022/lib/components/dynamic-form/index.mjs +1 -1
- package/esm2022/lib/components/dynamic-form/matrix/index.mjs +1 -1
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +4 -3
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +1 -1
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +4 -3
- package/esm2022/lib/components/dynamic-form/matrix/matrix-view.component.mjs +1 -1
- package/esm2022/lib/components/dynamic-form/table/index.mjs +1 -1
- package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +4 -2
- package/esm2022/lib/components/dynamic-form/table/table-config.mjs +1 -1
- package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +3 -2
- package/esm2022/lib/components/dynamic-form/table/table-view.component.mjs +1 -1
- package/esm2022/lib/components/index.mjs +1 -1
- package/esm2022/lib/constants/styles.mjs +1 -1
- package/esm2022/lib/enums/ecms-component.mjs +1 -1
- package/esm2022/lib/enums/index.mjs +1 -1
- package/esm2022/lib/proxy/dignite/abp/data/models.mjs +1 -1
- package/esm2022/lib/proxy/dignite/abp/regionalization-management/index.mjs +1 -1
- package/esm2022/lib/proxy/dignite/abp/regionalization-management/models.mjs +1 -1
- package/esm2022/lib/proxy/dignite/abp/regionalization-management/regionalization.service.mjs +2 -1
- package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.mjs +2 -1
- package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/index.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/models.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/admin/entries/entry-admin.service.mjs +2 -1
- package/esm2022/lib/proxy/dignite/cms/admin/entries/index.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/admin/entries/models.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/admin/fields/field-admin.service.mjs +2 -1
- package/esm2022/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.mjs +2 -1
- package/esm2022/lib/proxy/dignite/cms/admin/fields/index.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/admin/fields/models.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.mjs +2 -1
- package/esm2022/lib/proxy/dignite/cms/admin/sections/index.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/admin/sections/models.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/admin/sections/section-admin.service.mjs +2 -1
- package/esm2022/lib/proxy/dignite/cms/entries/entry-status.enum.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/entries/index.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/fields/models.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/sections/index.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/sections/models.mjs +1 -1
- package/esm2022/lib/proxy/dignite/cms/sections/section-type.enum.mjs +1 -1
- package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +1 -1
- package/esm2022/lib/resolvers/extensions-props-action-token.resolver.mjs +1 -1
- package/esm2022/lib/resolvers/page-default-toolbar-actions.mjs +1 -1
- package/esm2022/lib/resolvers/table-default-entity-actions.mjs +1 -1
- package/esm2022/lib/resolvers/table-default-entity-props.mjs +1 -1
- package/esm2022/lib/services/appent-content.mjs +1 -1
- package/esm2022/lib/services/cms-api.service.mjs +2 -2
- package/esm2022/lib/services/cms.service.mjs +2 -1
- package/esm2022/lib/services/field-abstracts.service.mjs +3 -1
- package/esm2022/lib/services/form-controls.service.mjs +2 -1
- package/esm2022/lib/services/index.mjs +1 -1
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -1
- package/fesm2022/dignite-ng-expand.cms.mjs +40 -44
- package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -1
- package/package.json +11 -11
|
@@ -43,45 +43,6 @@ var ECmsComponent;
|
|
|
43
43
|
ECmsComponent["SectionsCreateOrEdit"] = "Cms.Sections.Create.Or.Edit";
|
|
44
44
|
})(ECmsComponent || (ECmsComponent = {}));
|
|
45
45
|
|
|
46
|
-
var EntryStatus;
|
|
47
|
-
(function (EntryStatus) {
|
|
48
|
-
EntryStatus[EntryStatus["Draft"] = 0] = "Draft";
|
|
49
|
-
EntryStatus[EntryStatus["Published"] = 1] = "Published";
|
|
50
|
-
})(EntryStatus || (EntryStatus = {}));
|
|
51
|
-
const entryStatusOptions = mapEnumToOptions(EntryStatus);
|
|
52
|
-
|
|
53
|
-
class RegionalizationService {
|
|
54
|
-
constructor(restService) {
|
|
55
|
-
this.restService = restService;
|
|
56
|
-
this.apiName = 'AbpRegionalizationManagement';
|
|
57
|
-
this.get = (config) => this.restService.request({
|
|
58
|
-
method: 'GET',
|
|
59
|
-
url: '/api/regionalization-management/regionalization',
|
|
60
|
-
}, { apiName: this.apiName, ...config });
|
|
61
|
-
this.update = (input, config) => this.restService.request({
|
|
62
|
-
method: 'POST',
|
|
63
|
-
url: '/api/regionalization-management/regionalization',
|
|
64
|
-
body: input,
|
|
65
|
-
}, { apiName: this.apiName, ...config });
|
|
66
|
-
}
|
|
67
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: RegionalizationService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
68
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: RegionalizationService, providedIn: 'root' }); }
|
|
69
|
-
}
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: RegionalizationService, decorators: [{
|
|
71
|
-
type: Injectable,
|
|
72
|
-
args: [{
|
|
73
|
-
providedIn: 'root',
|
|
74
|
-
}]
|
|
75
|
-
}], ctorParameters: () => [{ type: i1.RestService }] });
|
|
76
|
-
|
|
77
|
-
var SectionType;
|
|
78
|
-
(function (SectionType) {
|
|
79
|
-
SectionType[SectionType["Single"] = 0] = "Single";
|
|
80
|
-
SectionType[SectionType["Structure"] = 1] = "Structure";
|
|
81
|
-
SectionType[SectionType["Channel"] = 2] = "Channel";
|
|
82
|
-
})(SectionType || (SectionType = {}));
|
|
83
|
-
const sectionTypeOptions = mapEnumToOptions(SectionType);
|
|
84
|
-
|
|
85
46
|
class EntryAdminService {
|
|
86
47
|
constructor(restService) {
|
|
87
48
|
this.restService = restService;
|
|
@@ -235,6 +196,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
|
|
|
235
196
|
}]
|
|
236
197
|
}], ctorParameters: () => [{ type: i1.RestService }] });
|
|
237
198
|
|
|
199
|
+
var EntryStatus;
|
|
200
|
+
(function (EntryStatus) {
|
|
201
|
+
EntryStatus[EntryStatus["Draft"] = 0] = "Draft";
|
|
202
|
+
EntryStatus[EntryStatus["Published"] = 1] = "Published";
|
|
203
|
+
})(EntryStatus || (EntryStatus = {}));
|
|
204
|
+
const entryStatusOptions = mapEnumToOptions(EntryStatus);
|
|
205
|
+
|
|
206
|
+
class RegionalizationService {
|
|
207
|
+
constructor(restService) {
|
|
208
|
+
this.restService = restService;
|
|
209
|
+
this.apiName = 'AbpRegionalizationManagement';
|
|
210
|
+
this.get = (config) => this.restService.request({
|
|
211
|
+
method: 'GET',
|
|
212
|
+
url: '/api/regionalization-management/regionalization',
|
|
213
|
+
}, { apiName: this.apiName, ...config });
|
|
214
|
+
this.update = (input, config) => this.restService.request({
|
|
215
|
+
method: 'POST',
|
|
216
|
+
url: '/api/regionalization-management/regionalization',
|
|
217
|
+
body: input,
|
|
218
|
+
}, { apiName: this.apiName, ...config });
|
|
219
|
+
}
|
|
220
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: RegionalizationService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
221
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: RegionalizationService, providedIn: 'root' }); }
|
|
222
|
+
}
|
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: RegionalizationService, decorators: [{
|
|
224
|
+
type: Injectable,
|
|
225
|
+
args: [{
|
|
226
|
+
providedIn: 'root',
|
|
227
|
+
}]
|
|
228
|
+
}], ctorParameters: () => [{ type: i1.RestService }] });
|
|
229
|
+
|
|
230
|
+
var SectionType;
|
|
231
|
+
(function (SectionType) {
|
|
232
|
+
SectionType[SectionType["Single"] = 0] = "Single";
|
|
233
|
+
SectionType[SectionType["Structure"] = 1] = "Structure";
|
|
234
|
+
SectionType[SectionType["Channel"] = 2] = "Channel";
|
|
235
|
+
})(SectionType || (SectionType = {}));
|
|
236
|
+
const sectionTypeOptions = mapEnumToOptions(SectionType);
|
|
237
|
+
|
|
238
238
|
class FormAdminService {
|
|
239
239
|
constructor(restService) {
|
|
240
240
|
this.restService = restService;
|
|
@@ -878,7 +878,7 @@ class CmsApiService {
|
|
|
878
878
|
else if (typeof obj === 'object' && obj !== null) {
|
|
879
879
|
return Object.keys(obj).reduce((acc, key) => {
|
|
880
880
|
// 判断当前层级是否在 FormConfiguration 内部
|
|
881
|
-
const currentIsInsideFormConfig = isInsideFormConfig || key === 'MatrixBlockTypes';
|
|
881
|
+
const currentIsInsideFormConfig = isInsideFormConfig || key === 'MatrixBlockTypes' || key.includes('.');
|
|
882
882
|
// 如果在 FormConfiguration 内部,保留原字段名
|
|
883
883
|
const newKey = currentIsInsideFormConfig ? key : key.charAt(0).toLowerCase() + key.slice(1);
|
|
884
884
|
// 递归处理子属性,并传递是否在 FormConfiguration 内部的状态
|
|
@@ -1650,10 +1650,6 @@ class CreateOrEditFieldComponent {
|
|
|
1650
1650
|
}
|
|
1651
1651
|
set selected(v) {
|
|
1652
1652
|
if (v) {
|
|
1653
|
-
// let MatrixBlockTypes=v.formConfiguration?.MatrixBlockTypes
|
|
1654
|
-
// if(MatrixBlockTypes){
|
|
1655
|
-
// v.formConfiguration.MatrixBlockTypes=this.convertKeysToCamelCase(MatrixBlockTypes);
|
|
1656
|
-
// }
|
|
1657
1653
|
this._selected = v || '';
|
|
1658
1654
|
this._selected_copy = v;
|
|
1659
1655
|
}
|