@acorex/platform 21.0.0-next.34 → 21.0.0-next.39
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/fesm2022/acorex-platform-common.mjs +19 -1
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +11 -172
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +7 -8
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +39 -29
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +8 -9
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +468 -255
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +171 -86
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +36 -13
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-9uCkMxcc.mjs → acorex-platform-layout-widgets-file-list-popup.component-CDYAGBku.mjs} +5 -60
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-CDYAGBku.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs +101 -128
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +16 -4
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +25 -5
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-common.d.ts +11 -6
- package/types/acorex-platform-core.d.ts +56 -101
- package/types/acorex-platform-layout-builder.d.ts +0 -1
- package/types/acorex-platform-layout-components.d.ts +4 -3
- package/types/acorex-platform-layout-designer.d.ts +1 -1
- package/types/acorex-platform-layout-entity.d.ts +36 -30
- package/types/acorex-platform-layout-views.d.ts +31 -29
- package/types/acorex-platform-layout-widget-core.d.ts +30 -14
- package/types/acorex-platform-layout-widgets.d.ts +17 -11
- package/types/acorex-platform-themes-default.d.ts +1 -0
- package/types/acorex-platform-workflow.d.ts +28 -51
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-9uCkMxcc.mjs.map +0 -1
|
@@ -20,7 +20,7 @@ import { AXBasePageComponent } from '@acorex/components/page';
|
|
|
20
20
|
import * as i6 from '@acorex/core/translation';
|
|
21
21
|
import { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';
|
|
22
22
|
import * as i4 from '@acorex/platform/core';
|
|
23
|
-
import { AXPExpressionEvaluatorService, AXPComponentSlotModule, AXPContextStore
|
|
23
|
+
import { AXPExpressionEvaluatorService, AXPComponentSlotModule, AXPContextStore } from '@acorex/platform/core';
|
|
24
24
|
import { AXP_ENTITY_DEFINITION_CRUD_SERVICE } from '@acorex/platform/domain';
|
|
25
25
|
|
|
26
26
|
class AXPLayoutConversionService {
|
|
@@ -2717,7 +2717,6 @@ class AXPPreviewWidgetFieldCommand {
|
|
|
2717
2717
|
this.formBuilderService = inject(AXPLayoutBuilderService);
|
|
2718
2718
|
this.widgetRegistry = inject(AXPWidgetRegistryService);
|
|
2719
2719
|
this.translationService = inject(AXTranslationService);
|
|
2720
|
-
this.mlResolver = inject(AXPMultiLanguageStringResolverService);
|
|
2721
2720
|
this.crudService = inject(AXP_ENTITY_DEFINITION_CRUD_SERVICE, { optional: true });
|
|
2722
2721
|
}
|
|
2723
2722
|
async execute(input) {
|
|
@@ -2727,15 +2726,15 @@ class AXPPreviewWidgetFieldCommand {
|
|
|
2727
2726
|
if (!currentWidget?.type) {
|
|
2728
2727
|
return {
|
|
2729
2728
|
success: false,
|
|
2730
|
-
message: {
|
|
2729
|
+
message: {
|
|
2730
|
+
text: (await this.translationService.translateAsync('@general:messages.invalid-data')) || 'Invalid data',
|
|
2731
|
+
},
|
|
2731
2732
|
};
|
|
2732
2733
|
}
|
|
2733
2734
|
const fieldName = String(merged['fieldName'] ?? merged['name'] ?? 'Field');
|
|
2734
2735
|
const rawTitle = (merged['fieldTitle'] ?? merged['title']);
|
|
2735
2736
|
const fieldTitleLabel = this.resolveFieldTitleLabel(rawTitle, fieldName);
|
|
2736
|
-
const dialogTitle = (await this.resolveWidgetDisplayTitle(currentWidget.type)) ||
|
|
2737
|
-
currentWidget.type ||
|
|
2738
|
-
fieldTitleLabel;
|
|
2737
|
+
const dialogTitle = (await this.resolveWidgetDisplayTitle(currentWidget.type)) || currentWidget.type || fieldTitleLabel;
|
|
2739
2738
|
const previewWidgetOptions = {
|
|
2740
2739
|
...optionsBagForPreview(currentWidget),
|
|
2741
2740
|
name: fieldName,
|
|
@@ -2806,7 +2805,7 @@ class AXPPreviewWidgetFieldCommand {
|
|
|
2806
2805
|
source = raw;
|
|
2807
2806
|
}
|
|
2808
2807
|
}
|
|
2809
|
-
return this.
|
|
2808
|
+
return this.translationService.resolve(source);
|
|
2810
2809
|
}
|
|
2811
2810
|
isCancelDialogOutcome(outcome) {
|
|
2812
2811
|
if (outcome == null) {
|
|
@@ -2829,7 +2828,7 @@ class AXPPreviewWidgetFieldCommand {
|
|
|
2829
2828
|
if (!config) {
|
|
2830
2829
|
return undefined;
|
|
2831
2830
|
}
|
|
2832
|
-
const resolved = this.
|
|
2831
|
+
const resolved = this.translationService.resolve(config.title);
|
|
2833
2832
|
return resolved || undefined;
|
|
2834
2833
|
}
|
|
2835
2834
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPreviewWidgetFieldCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|