@cardenelabs/cdl 0.26.0 → 0.28.0

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/dist/react.js CHANGED
@@ -669,6 +669,7 @@ function rowGlyphDepth(kind) {
669
669
  return Math.ceil(font * ROW_GLYPH_DEPTH_RATIO);
670
670
  }
671
671
  var ROW_LAYOUT_BOTTOM_PAD = 20;
672
+ var ROW_STRIPE_BOTTOM_PAD = 24;
672
673
  function requiredRowsHeight(kind, rowCount) {
673
674
  if (rowCount <= 0) return null;
674
675
  const lastBaseline = rowBaselineY(kind, rowCount - 1);
@@ -676,6 +677,12 @@ function requiredRowsHeight(kind, rowCount) {
676
677
  const pitch = ROW_PITCH_STORAGE ;
677
678
  return lastBaseline + pitch + ROW_LAYOUT_BOTTOM_PAD;
678
679
  }
680
+ function requiredMarkedRowsHeight(kind, rowCount) {
681
+ if (rowCount <= 0) return null;
682
+ const lastBand = rowStripeBand(kind, rowCount - 1, 0);
683
+ if (lastBand === null) return null;
684
+ return lastBand.y + lastBand.h + ROW_STRIPE_BOTTOM_PAD;
685
+ }
679
686
  function isRenderedNode(n) {
680
687
  if (n.visibleIf === void 0 || n.visibleIf === "") return true;
681
688
  if (n.visibleIf.includes("{")) return true;
@@ -8685,7 +8692,10 @@ function autoStorageHeight(n, defaultH) {
8685
8692
  const \u7E70\u308A\u4E0A\u3052 = n.eyebrow ? 0 : \u76EE\u5370\u306A\u3057\u306E\u7E70\u308A\u4E0A\u3052("storage");
8686
8693
  if (!n.rows || n.rows.length === 0) return 115 + \u547C\u3073\u540D\u306E\u5206 - \u7E70\u308A\u4E0A\u3052;
8687
8694
  const \u5FC5\u8981 = requiredRowsHeight("storage", n.rows.length) ?? defaultH;
8688
- if (\u5370\u3042\u308A) return \u5FC5\u8981 + \u547C\u3073\u540D\u306E\u5206;
8695
+ if (\u5370\u3042\u308A) {
8696
+ const \u5E2F\u304B\u3089\u5FC5\u8981 = requiredMarkedRowsHeight("storage", n.rows.length) ?? defaultH;
8697
+ return \u5E2F\u304B\u3089\u5FC5\u8981 + \u547C\u3073\u540D\u306E\u5206;
8698
+ }
8689
8699
  return Math.max(defaultH, \u5FC5\u8981);
8690
8700
  }
8691
8701
  function autoRowsWidth(n, defaultW) {