@octaviaflow/core 3.0.18-beta.42 → 3.0.18-beta.44
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.cjs +54 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +54 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9001,11 +9001,17 @@ function CsvTable({
|
|
|
9001
9001
|
error.message
|
|
9002
9002
|
] }),
|
|
9003
9003
|
/* @__PURE__ */ jsxs33("table", { className: "ods-csv-viewer__table", "aria-label": "CSV data", children: [
|
|
9004
|
-
headerRow && /* @__PURE__ */ jsx34("thead", { children: /* @__PURE__ */ jsx34("tr", { children: Array.from({ length: colCount }).map((_, i) =>
|
|
9004
|
+
headerRow && /* @__PURE__ */ jsx34("thead", { children: /* @__PURE__ */ jsx34("tr", { children: Array.from({ length: colCount }).map((_, i) => {
|
|
9005
|
+
const v = headerRow[i] ?? "";
|
|
9006
|
+
return /* @__PURE__ */ jsx34("th", { scope: "col", title: v, children: v }, i);
|
|
9007
|
+
}) }) }),
|
|
9005
9008
|
/* @__PURE__ */ jsx34("tbody", { children: rows.map((row, ri) => (
|
|
9006
9009
|
// CSV rows have no stable id — `ri` is the only key we have.
|
|
9007
9010
|
// Acceptable since CSVs are read-only data.
|
|
9008
|
-
/* @__PURE__ */ jsx34("tr", { children: Array.from({ length: colCount }).map((_, ci) =>
|
|
9011
|
+
/* @__PURE__ */ jsx34("tr", { children: Array.from({ length: colCount }).map((_, ci) => {
|
|
9012
|
+
const v = row[ci] ?? "";
|
|
9013
|
+
return /* @__PURE__ */ jsx34("td", { title: v, children: v }, ci);
|
|
9014
|
+
}) }, ri)
|
|
9009
9015
|
)) })
|
|
9010
9016
|
] })
|
|
9011
9017
|
] });
|
|
@@ -30818,6 +30824,52 @@ function XmlNodeRow({
|
|
|
30818
30824
|
const children = node.children ?? [];
|
|
30819
30825
|
const isSelfClosing = children.length === 0;
|
|
30820
30826
|
const attrs = Object.entries(node.attributes ?? {});
|
|
30827
|
+
const inlineTextChild = children.length === 1 && children[0].type === "text" ? children[0].text ?? "" : null;
|
|
30828
|
+
if (inlineTextChild !== null) {
|
|
30829
|
+
const isMultiLine = inlineTextChild.includes("\n");
|
|
30830
|
+
const openTag = /* @__PURE__ */ jsxs123(Fragment50, { children: [
|
|
30831
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__bracket", children: "<" }),
|
|
30832
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__tag", children: node.name }),
|
|
30833
|
+
showAttributes && attrs.map(([k, v]) => /* @__PURE__ */ jsxs123("span", { className: "ods-xml-viewer__attr", children: [
|
|
30834
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__attr-name", children: k }),
|
|
30835
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__attr-eq", children: "=" }),
|
|
30836
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__attr-value", children: `"${v}"` })
|
|
30837
|
+
] }, k)),
|
|
30838
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__bracket", children: ">" })
|
|
30839
|
+
] });
|
|
30840
|
+
const closeTag = /* @__PURE__ */ jsxs123(Fragment50, { children: [
|
|
30841
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__bracket", children: "</" }),
|
|
30842
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__tag", children: node.name }),
|
|
30843
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__bracket", children: ">" })
|
|
30844
|
+
] });
|
|
30845
|
+
if (isMultiLine) {
|
|
30846
|
+
const innerPad = pad2 + 12;
|
|
30847
|
+
return /* @__PURE__ */ jsxs123("div", { children: [
|
|
30848
|
+
/* @__PURE__ */ jsxs123("div", { className: "ods-xml-viewer__row", style: { paddingLeft: pad2 }, children: [
|
|
30849
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__caret-spacer" }),
|
|
30850
|
+
openTag
|
|
30851
|
+
] }),
|
|
30852
|
+
/* @__PURE__ */ jsx130(
|
|
30853
|
+
"div",
|
|
30854
|
+
{
|
|
30855
|
+
className: "ods-xml-viewer__row ods-xml-viewer__row--multiline",
|
|
30856
|
+
style: { paddingLeft: innerPad },
|
|
30857
|
+
children: /* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__text", children: inlineTextChild })
|
|
30858
|
+
}
|
|
30859
|
+
),
|
|
30860
|
+
/* @__PURE__ */ jsxs123("div", { className: "ods-xml-viewer__row", style: { paddingLeft: pad2 }, children: [
|
|
30861
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__caret-spacer" }),
|
|
30862
|
+
closeTag
|
|
30863
|
+
] })
|
|
30864
|
+
] });
|
|
30865
|
+
}
|
|
30866
|
+
return /* @__PURE__ */ jsxs123("div", { className: "ods-xml-viewer__row", style: { paddingLeft: pad2 }, children: [
|
|
30867
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__caret-spacer" }),
|
|
30868
|
+
openTag,
|
|
30869
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__text", children: inlineTextChild }),
|
|
30870
|
+
closeTag
|
|
30871
|
+
] });
|
|
30872
|
+
}
|
|
30821
30873
|
return /* @__PURE__ */ jsxs123("div", { children: [
|
|
30822
30874
|
/* @__PURE__ */ jsxs123(
|
|
30823
30875
|
"div",
|