@acorex/platform 21.0.0-next.67 → 21.0.0-next.70
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.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +14 -2
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-entity-attachments-page.component-BaTS183I.mjs → acorex-platform-layout-entity-attachments-page.component-D8iQnT-R.mjs} +7 -19
- package/fesm2022/acorex-platform-layout-entity-attachments-page.component-D8iQnT-R.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-entity.mjs +881 -414
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +26 -2
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +1 -0
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +12 -12
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-common.d.ts +10 -0
- package/types/acorex-platform-layout-entity.d.ts +518 -518
- package/types/acorex-platform-layout-views.d.ts +34 -1
- package/types/acorex-platform-layout-widget-core.d.ts +1 -0
- package/types/acorex-platform-layout-widgets.d.ts +4 -10
- package/fesm2022/acorex-platform-layout-entity-attachments-page.component-BaTS183I.mjs.map +0 -1
|
@@ -503,7 +503,19 @@ class LayoutBuilder {
|
|
|
503
503
|
if (delegate) {
|
|
504
504
|
delegate(container);
|
|
505
505
|
}
|
|
506
|
-
|
|
506
|
+
const built = container.build();
|
|
507
|
+
// Step/dialog content usually calls flex() once; replace the default empty flex root instead of nesting flex inside flex.
|
|
508
|
+
if (this.root.type === 'flex-layout' &&
|
|
509
|
+
(!this.root.children || this.root.children.length === 0) &&
|
|
510
|
+
!this.root.options) {
|
|
511
|
+
this.root = built;
|
|
512
|
+
}
|
|
513
|
+
else {
|
|
514
|
+
if (!this.root.children) {
|
|
515
|
+
this.root.children = [];
|
|
516
|
+
}
|
|
517
|
+
this.root.children.push(built);
|
|
518
|
+
}
|
|
507
519
|
return this;
|
|
508
520
|
}
|
|
509
521
|
panel(delegate) {
|
|
@@ -2550,7 +2562,7 @@ class AXPDialogRendererComponent extends AXBasePageComponent {
|
|
|
2550
2562
|
}
|
|
2551
2563
|
/** Whether the layout form should be validated before running this footer command. */
|
|
2552
2564
|
shouldValidateBeforeAction(cmd) {
|
|
2553
|
-
if (!cmd || cmd === 'cancel' || cmd === 'entity-form-done') {
|
|
2565
|
+
if (!cmd || cmd === 'cancel' || cmd === 'entity-form-done' || cmd === 'entity-form-next-step') {
|
|
2554
2566
|
return false;
|
|
2555
2567
|
}
|
|
2556
2568
|
if (cmd.startsWith('widget:')) {
|