@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.
Files changed (94) hide show
  1. package/README.md +128 -24
  2. package/esm2022/config/cms-config.module.mjs +1 -1
  3. package/esm2022/config/dignite-ng-expand.cms-config.mjs +1 -1
  4. package/esm2022/config/enums/index.mjs +1 -1
  5. package/esm2022/config/enums/route-names.mjs +1 -1
  6. package/esm2022/config/providers/index.mjs +1 -1
  7. package/esm2022/config/providers/route.provider.mjs +1 -1
  8. package/esm2022/config/public-api.mjs +1 -1
  9. package/esm2022/dignite-ng-expand.cms.mjs +1 -1
  10. package/esm2022/lib/cms-routing.module.mjs +1 -1
  11. package/esm2022/lib/cms.module.mjs +1 -1
  12. package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +3 -2
  13. package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +1 -1
  14. package/esm2022/lib/components/admin/entries/create.component.mjs +2 -2
  15. package/esm2022/lib/components/admin/entries/edit.component.mjs +2 -2
  16. package/esm2022/lib/components/admin/entries/entries.component.mjs +10 -3
  17. package/esm2022/lib/components/admin/entries/index.mjs +1 -1
  18. package/esm2022/lib/components/admin/fields/create-field.component.mjs +8 -2
  19. package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +7 -7
  20. package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +1 -1
  21. package/esm2022/lib/components/admin/fields/edit-field.component.mjs +9 -2
  22. package/esm2022/lib/components/admin/fields/field-group.component.mjs +6 -2
  23. package/esm2022/lib/components/admin/fields/fields.component.mjs +5 -2
  24. package/esm2022/lib/components/admin/fields/index.mjs +1 -1
  25. package/esm2022/lib/components/admin/index.mjs +1 -1
  26. package/esm2022/lib/components/admin/sections/create-or-edit-sections-modal.component.mjs +3 -3
  27. package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +1 -1
  28. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +1 -1
  29. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +10 -2
  30. package/esm2022/lib/components/admin/sections/entry-types/index.mjs +1 -1
  31. package/esm2022/lib/components/admin/sections/index.mjs +1 -1
  32. package/esm2022/lib/components/admin/sections/sections.component.mjs +6 -2
  33. package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +4 -3
  34. package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +1 -1
  35. package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +2 -2
  36. package/esm2022/lib/components/dynamic-form/entry/entry-search.component.mjs +2 -2
  37. package/esm2022/lib/components/dynamic-form/entry/entry-view.component.mjs +2 -1
  38. package/esm2022/lib/components/dynamic-form/entry/index.mjs +1 -1
  39. package/esm2022/lib/components/dynamic-form/form-control-group.mjs +1 -1
  40. package/esm2022/lib/components/dynamic-form/index.mjs +1 -1
  41. package/esm2022/lib/components/dynamic-form/matrix/index.mjs +1 -1
  42. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +4 -3
  43. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +1 -1
  44. package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +4 -3
  45. package/esm2022/lib/components/dynamic-form/matrix/matrix-view.component.mjs +1 -1
  46. package/esm2022/lib/components/dynamic-form/table/index.mjs +1 -1
  47. package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +4 -2
  48. package/esm2022/lib/components/dynamic-form/table/table-config.mjs +1 -1
  49. package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +3 -2
  50. package/esm2022/lib/components/dynamic-form/table/table-view.component.mjs +1 -1
  51. package/esm2022/lib/components/index.mjs +1 -1
  52. package/esm2022/lib/constants/styles.mjs +1 -1
  53. package/esm2022/lib/enums/ecms-component.mjs +1 -1
  54. package/esm2022/lib/enums/index.mjs +1 -1
  55. package/esm2022/lib/proxy/dignite/abp/data/models.mjs +1 -1
  56. package/esm2022/lib/proxy/dignite/abp/regionalization-management/index.mjs +1 -1
  57. package/esm2022/lib/proxy/dignite/abp/regionalization-management/models.mjs +1 -1
  58. package/esm2022/lib/proxy/dignite/abp/regionalization-management/regionalization.service.mjs +2 -1
  59. package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.mjs +2 -1
  60. package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/index.mjs +1 -1
  61. package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/models.mjs +1 -1
  62. package/esm2022/lib/proxy/dignite/cms/admin/entries/entry-admin.service.mjs +2 -1
  63. package/esm2022/lib/proxy/dignite/cms/admin/entries/index.mjs +1 -1
  64. package/esm2022/lib/proxy/dignite/cms/admin/entries/models.mjs +1 -1
  65. package/esm2022/lib/proxy/dignite/cms/admin/fields/field-admin.service.mjs +2 -1
  66. package/esm2022/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.mjs +2 -1
  67. package/esm2022/lib/proxy/dignite/cms/admin/fields/index.mjs +1 -1
  68. package/esm2022/lib/proxy/dignite/cms/admin/fields/models.mjs +1 -1
  69. package/esm2022/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.mjs +2 -1
  70. package/esm2022/lib/proxy/dignite/cms/admin/sections/index.mjs +1 -1
  71. package/esm2022/lib/proxy/dignite/cms/admin/sections/models.mjs +1 -1
  72. package/esm2022/lib/proxy/dignite/cms/admin/sections/section-admin.service.mjs +2 -1
  73. package/esm2022/lib/proxy/dignite/cms/entries/entry-status.enum.mjs +1 -1
  74. package/esm2022/lib/proxy/dignite/cms/entries/index.mjs +1 -1
  75. package/esm2022/lib/proxy/dignite/cms/fields/models.mjs +1 -1
  76. package/esm2022/lib/proxy/dignite/cms/sections/index.mjs +1 -1
  77. package/esm2022/lib/proxy/dignite/cms/sections/models.mjs +1 -1
  78. package/esm2022/lib/proxy/dignite/cms/sections/section-type.enum.mjs +1 -1
  79. package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +1 -1
  80. package/esm2022/lib/resolvers/extensions-props-action-token.resolver.mjs +1 -1
  81. package/esm2022/lib/resolvers/page-default-toolbar-actions.mjs +1 -1
  82. package/esm2022/lib/resolvers/table-default-entity-actions.mjs +1 -1
  83. package/esm2022/lib/resolvers/table-default-entity-props.mjs +1 -1
  84. package/esm2022/lib/services/appent-content.mjs +1 -1
  85. package/esm2022/lib/services/cms-api.service.mjs +2 -2
  86. package/esm2022/lib/services/cms.service.mjs +2 -1
  87. package/esm2022/lib/services/field-abstracts.service.mjs +3 -1
  88. package/esm2022/lib/services/form-controls.service.mjs +2 -1
  89. package/esm2022/lib/services/index.mjs +1 -1
  90. package/esm2022/public-api.mjs +1 -1
  91. package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -1
  92. package/fesm2022/dignite-ng-expand.cms.mjs +40 -44
  93. package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -1
  94. 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
  }