@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.
@@ -503,7 +503,19 @@ class LayoutBuilder {
503
503
  if (delegate) {
504
504
  delegate(container);
505
505
  }
506
- this.root.children.push(container.build());
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:')) {