@acorex/platform 19.2.1 → 19.2.3
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/common/lib/app/application.types.d.ts +2 -1
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +14 -7
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +5 -11
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -321,7 +321,7 @@ class AXPEntityDefinitionRegistryService {
|
|
|
321
321
|
});
|
|
322
322
|
});
|
|
323
323
|
const entities = await Promise.all(promises);
|
|
324
|
-
entities.forEach((entity) => this.register(entity));
|
|
324
|
+
entities.forEach((entity) => this.register(this.middleware.process(entity)));
|
|
325
325
|
}
|
|
326
326
|
/**
|
|
327
327
|
* Registers a new entity configuration. Entities are identified uniquely by a combination
|
|
@@ -331,7 +331,7 @@ class AXPEntityDefinitionRegistryService {
|
|
|
331
331
|
*/
|
|
332
332
|
register(config) {
|
|
333
333
|
const key = this.createEntityKey(config.module, config.name);
|
|
334
|
-
this.entities.set(key, config);
|
|
334
|
+
this.entities.set(key, this.middleware.process(config));
|
|
335
335
|
}
|
|
336
336
|
/**
|
|
337
337
|
* Returns an array of all registered entity configurations.
|
|
@@ -368,7 +368,7 @@ class AXPEntityDefinitionRegistryService {
|
|
|
368
368
|
throw new Error(`Invalid entity name: ${key}`);
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
return
|
|
371
|
+
return config;
|
|
372
372
|
}
|
|
373
373
|
/**
|
|
374
374
|
* Creates a unique key for an entity based on its module and name.
|
|
@@ -449,6 +449,7 @@ class AXPEntityCreateViewElementViewModel {
|
|
|
449
449
|
children: widget.children,
|
|
450
450
|
formula: widget.formula,
|
|
451
451
|
triggers: widget.triggers,
|
|
452
|
+
valueTransforms: widget.valueTransforms,
|
|
452
453
|
options: merge(schema.interface?.options,
|
|
453
454
|
//this.property.options?.create?.widget,
|
|
454
455
|
{ validationRules: this.property.validations }),
|
|
@@ -1124,6 +1125,7 @@ class AXPEntityMasterUpdateElementViewModel {
|
|
|
1124
1125
|
children: widget.children,
|
|
1125
1126
|
formula: widget.formula,
|
|
1126
1127
|
triggers: widget.triggers,
|
|
1128
|
+
valueTransforms: widget.valueTransforms,
|
|
1127
1129
|
options: merge(schema.interface?.options,
|
|
1128
1130
|
//this.property.options?.create?.widget,
|
|
1129
1131
|
{ validationRules: this.property.validations })
|
|
@@ -1208,10 +1210,12 @@ class AXPEntityModifySectionPopupAction extends AXPWorkflowAction {
|
|
|
1208
1210
|
const { properties, id, title } = context.getVariable('data');
|
|
1209
1211
|
const entityRef = await this.entityRegistery.resolve(moduleName, entityName);
|
|
1210
1212
|
const vm = await this.factory.create(moduleName, entityName, id, properties);
|
|
1213
|
+
const options = context.getVariable('options');
|
|
1214
|
+
const decoration = options?.['decoration'];
|
|
1215
|
+
const headerTitle = decoration?.header?.title;
|
|
1211
1216
|
const com = await this.config.viewers.master.modify();
|
|
1212
1217
|
const popup = await this.popupService.open(com, {
|
|
1213
|
-
title: title ??
|
|
1214
|
-
`${this.translateService.translateSync('entity.modify')} ${this.translateService.translateSync(entityRef.formats.individual)}`,
|
|
1218
|
+
title: headerTitle ? headerTitle : title ?? `${this.translateService.translateSync('entity.modify')} ${this.translateService.translateSync(entityRef.formats.individual)}`,
|
|
1215
1219
|
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
1216
1220
|
data: {
|
|
1217
1221
|
vm,
|
|
@@ -1341,6 +1345,7 @@ class AXPEntityMasterSingleElementViewModel {
|
|
|
1341
1345
|
path: this.name(),
|
|
1342
1346
|
children: widget.children,
|
|
1343
1347
|
formula: widget.formula,
|
|
1348
|
+
valueTransforms: widget.valueTransforms,
|
|
1344
1349
|
options: merge(schema.interface?.options
|
|
1345
1350
|
//this.property.options?.create?.widget,
|
|
1346
1351
|
//{ validationRules: this.property.validations },
|
|
@@ -2597,10 +2602,12 @@ class AXPQuickEntityModifyPopupAction extends AXPWorkflowAction {
|
|
|
2597
2602
|
const { interfaces, title } = entityRef;
|
|
2598
2603
|
const properties = interfaces?.master?.update?.properties?.map((p) => p.name) || [];
|
|
2599
2604
|
const vm = await this.factory.create(moduleName, entityName, id, properties);
|
|
2605
|
+
const options = context.getVariable('options');
|
|
2606
|
+
const decoration = options?.['decoration'];
|
|
2607
|
+
const headerTitle = decoration?.header?.title;
|
|
2600
2608
|
const com = await this.config.viewers.master.modify();
|
|
2601
2609
|
const popup = await this.popupService.open(com, {
|
|
2602
|
-
title: title ??
|
|
2603
|
-
`${this.translateService.translateSync('entity.modify')} ${this.translateService.translateSync(entityRef.formats.individual)}`,
|
|
2610
|
+
title: headerTitle ? headerTitle : title ?? `${this.translateService.translateSync('entity.modify')} ${this.translateService.translateSync(entityRef.formats.individual)}`,
|
|
2604
2611
|
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
2605
2612
|
data: {
|
|
2606
2613
|
vm,
|