@fuaran-ui/ops 0.22.0 → 0.24.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/index.js CHANGED
@@ -1404,10 +1404,10 @@ var chartSpec = (s) => {
1404
1404
  ["kind", str(s.kind)],
1405
1405
  // fuaran#665 — rows are a typed Static payload now, not the opaque residual.
1406
1406
  ["source", binding(s.source, staticRowSeq)],
1407
- ["stacked", bool(s.stacked)],
1408
1407
  ["xField", str(s.xField)],
1409
1408
  ["yFields", jArray(s.yFields.map(str))]
1410
1409
  ];
1410
+ if (s.stacked) fields.push(["stacked", bool(s.stacked)]);
1411
1411
  if (s.title !== void 0) fields.push(["title", textSource(s.title)]);
1412
1412
  if (s.valueFormat !== void 0) fields.push(["valueFormat", formatIntent(s.valueFormat)]);
1413
1413
  if (s.xTitle !== void 0) fields.push(["xTitle", textSource(s.xTitle)]);
@@ -1499,9 +1499,11 @@ var tabsSpec = (s) => {
1499
1499
  const fields = [
1500
1500
  ["children", jArray(s.children.map(node))],
1501
1501
  // 0.2.0 omitted-when-default (`Horizontal`).
1502
- ...s.orientation === "Horizontal" ? [] : [["orientation", str(s.orientation)]],
1503
- ["activeIndex", binding(s.activeIndex)]
1502
+ ...s.orientation === "Horizontal" ? [] : [["orientation", str(s.orientation)]]
1504
1503
  ];
1504
+ if (!(s.activeIndex.kind === "Static" && s.activeIndex.value === 0)) {
1505
+ fields.push(["activeIndex", binding(s.activeIndex)]);
1506
+ }
1505
1507
  if (s.onSelect !== void 0) fields.push(["onSelect", CLOSURE]);
1506
1508
  if (s.tabHeaders !== void 0) fields.push(["tabHeaders", jArray(s.tabHeaders.map(tabHeader))]);
1507
1509
  if (s.tabTags !== void 0) fields.push(["tabTags", jArray(s.tabTags.map(str))]);