@octaviaflow/core 3.0.18-beta.42 → 3.0.18-beta.43
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 +26 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +26 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9063,11 +9063,17 @@ function CsvTable({
|
|
|
9063
9063
|
error.message
|
|
9064
9064
|
] }),
|
|
9065
9065
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("table", { className: "ods-csv-viewer__table", "aria-label": "CSV data", children: [
|
|
9066
|
-
headerRow && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("tr", { children: Array.from({ length: colCount }).map((_, i) =>
|
|
9066
|
+
headerRow && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("tr", { children: Array.from({ length: colCount }).map((_, i) => {
|
|
9067
|
+
const v = headerRow[i] ?? "";
|
|
9068
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("th", { scope: "col", title: v, children: v }, i);
|
|
9069
|
+
}) }) }),
|
|
9067
9070
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("tbody", { children: rows.map((row, ri) => (
|
|
9068
9071
|
// CSV rows have no stable id — `ri` is the only key we have.
|
|
9069
9072
|
// Acceptable since CSVs are read-only data.
|
|
9070
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("tr", { children: Array.from({ length: colCount }).map((_, ci) =>
|
|
9073
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("tr", { children: Array.from({ length: colCount }).map((_, ci) => {
|
|
9074
|
+
const v = row[ci] ?? "";
|
|
9075
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("td", { title: v, children: v }, ci);
|
|
9076
|
+
}) }, ri)
|
|
9071
9077
|
)) })
|
|
9072
9078
|
] })
|
|
9073
9079
|
] });
|
|
@@ -33196,6 +33202,24 @@ function XmlNodeRow({
|
|
|
33196
33202
|
const children = node.children ?? [];
|
|
33197
33203
|
const isSelfClosing = children.length === 0;
|
|
33198
33204
|
const attrs = Object.entries(node.attributes ?? {});
|
|
33205
|
+
const inlineTextChild = children.length === 1 && children[0].type === "text" ? children[0].text ?? "" : null;
|
|
33206
|
+
if (inlineTextChild !== null) {
|
|
33207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { className: "ods-xml-viewer__row", style: { paddingLeft: pad2 }, children: [
|
|
33208
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__caret-spacer" }),
|
|
33209
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__bracket", children: "<" }),
|
|
33210
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__tag", children: node.name }),
|
|
33211
|
+
showAttributes && attrs.map(([k, v]) => /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("span", { className: "ods-xml-viewer__attr", children: [
|
|
33212
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__attr-name", children: k }),
|
|
33213
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__attr-eq", children: "=" }),
|
|
33214
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__attr-value", children: `"${v}"` })
|
|
33215
|
+
] }, k)),
|
|
33216
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__bracket", children: ">" }),
|
|
33217
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__text", children: inlineTextChild }),
|
|
33218
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__bracket", children: "</" }),
|
|
33219
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__tag", children: node.name }),
|
|
33220
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__bracket", children: ">" })
|
|
33221
|
+
] });
|
|
33222
|
+
}
|
|
33199
33223
|
return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { children: [
|
|
33200
33224
|
/* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(
|
|
33201
33225
|
"div",
|