@acorex/platform 20.7.20 → 20.7.22

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.
Files changed (22) hide show
  1. package/common/index.d.ts +4 -1
  2. package/fesm2022/{acorex-platform-common-common-settings.provider-gyb6ohAE.mjs → acorex-platform-common-common-settings.provider-73370m-b.mjs} +43 -1
  3. package/fesm2022/acorex-platform-common-common-settings.provider-73370m-b.mjs.map +1 -0
  4. package/fesm2022/acorex-platform-common.mjs +5 -2
  5. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  6. package/fesm2022/acorex-platform-layout-builder.mjs +16 -8
  7. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  8. package/fesm2022/acorex-platform-layout-entity.mjs +369 -151
  9. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  10. package/fesm2022/acorex-platform-layout-views.mjs +19 -66
  11. package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
  12. package/fesm2022/acorex-platform-layout-widgets.mjs +31 -6
  13. package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
  14. package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-DDd7YryZ.mjs → acorex-platform-themes-default-entity-master-list-view.component-3djSN0h5.mjs} +1 -2
  15. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-3djSN0h5.mjs.map +1 -0
  16. package/fesm2022/acorex-platform-themes-default.mjs +2 -2
  17. package/layout/entity/index.d.ts +31 -1
  18. package/layout/views/index.d.ts +6 -1
  19. package/layout/widgets/index.d.ts +14 -1
  20. package/package.json +9 -9
  21. package/fesm2022/acorex-platform-common-common-settings.provider-gyb6ohAE.mjs.map +0 -1
  22. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DDd7YryZ.mjs.map +0 -1
@@ -701,16 +701,24 @@ class LayoutContainerMixin extends BaseContainerMixin {
701
701
  this.containerState.options.colSpan = value;
702
702
  }
703
703
  else if (value) {
704
- // Try to extract a reasonable colSpan from breakpoint positions
704
+ // Try to extract grid positioning from breakpoint positions
705
705
  const positions = value.positions;
706
706
  if (positions) {
707
- const colSpan = positions?.lg?.colSpan ??
708
- positions?.xl?.colSpan ??
709
- positions?.xxl?.colSpan ??
710
- positions?.md?.colSpan ??
711
- positions?.sm?.colSpan;
712
- if (colSpan != null) {
713
- this.containerState.options.colSpan = colSpan;
707
+ // Resolve the best breakpoint (prefer lg, then fallback to others)
708
+ const bp = positions?.lg ?? positions?.xl ?? positions?.xxl ?? positions?.md ?? positions?.sm;
709
+ if (bp) {
710
+ if (bp.colSpan != null)
711
+ this.containerState.options.colSpan = bp.colSpan;
712
+ if (bp.colStart != null)
713
+ this.containerState.options.colStart = bp.colStart;
714
+ if (bp.colEnd != null)
715
+ this.containerState.options.colEnd = bp.colEnd;
716
+ if (bp.rowSpan != null)
717
+ this.containerState.options.rowSpan = bp.rowSpan;
718
+ if (bp.rowStart != null)
719
+ this.containerState.options.rowStart = bp.rowStart;
720
+ if (bp.rowEnd != null)
721
+ this.containerState.options.rowEnd = bp.rowEnd;
714
722
  }
715
723
  }
716
724
  }