@acorex/platform 21.0.0-next.37 → 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
|
@@ -3844,7 +3844,8 @@ class AXPStatusDefinitionProviderService {
|
|
|
3844
3844
|
// Execute the command
|
|
3845
3845
|
const result = await this.commandService.execute(commandName, commandOptions);
|
|
3846
3846
|
if (!result?.success) {
|
|
3847
|
-
|
|
3847
|
+
const text = this.commandMessageTextForError(result?.message?.text);
|
|
3848
|
+
throw new Error(text || 'Failed to execute status transition command');
|
|
3848
3849
|
}
|
|
3849
3850
|
}
|
|
3850
3851
|
/**
|
|
@@ -3854,6 +3855,23 @@ class AXPStatusDefinitionProviderService {
|
|
|
3854
3855
|
isValidTransition(provider, from, to) {
|
|
3855
3856
|
return provider.transitions.some((transition) => transition.from === from && transition.to === to);
|
|
3856
3857
|
}
|
|
3858
|
+
/**
|
|
3859
|
+
* Best-effort plain string for {@link Error} messages (no i18n lookup).
|
|
3860
|
+
*/
|
|
3861
|
+
commandMessageTextForError(value) {
|
|
3862
|
+
if (value == null) {
|
|
3863
|
+
return '';
|
|
3864
|
+
}
|
|
3865
|
+
if (typeof value === 'string') {
|
|
3866
|
+
return value;
|
|
3867
|
+
}
|
|
3868
|
+
if (typeof value === 'object' && !Array.isArray(value)) {
|
|
3869
|
+
const values = Object.values(value);
|
|
3870
|
+
const first = values.find((v) => typeof v === 'string' && v.length > 0);
|
|
3871
|
+
return first ?? '';
|
|
3872
|
+
}
|
|
3873
|
+
return String(value);
|
|
3874
|
+
}
|
|
3857
3875
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPStatusDefinitionProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3858
3876
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPStatusDefinitionProviderService, providedIn: 'root' }); }
|
|
3859
3877
|
}
|