@ai-matrx/design-system 0.18.12 → 0.18.13

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.
@@ -1360,15 +1360,36 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
1360
1360
  /* @__PURE__ */ jsx10("input", { type: "number", min: "0", value: controls[key] ?? "", onChange: (e) => changeControls({ ...controls, [key]: Number.isNaN(e.target.valueAsNumber) ? null : e.target.valueAsNumber }) })
1361
1361
  ] }, key))
1362
1362
  ] }) : null,
1363
- rows ? /* @__PURE__ */ jsx10(RowControls, { rows, controls, change: changeControls }) : null,
1364
- state.snapshot.sections.length ? /* @__PURE__ */ jsxs5("fieldset", { className: "matrx-alchemy-options", children: [
1365
- /* @__PURE__ */ jsx10("legend", { children: "Sections" }),
1366
- state.snapshot.sections.map((section) => /* @__PURE__ */ jsxs5("label", { children: [
1363
+ rows ? /* @__PURE__ */ jsxs5("details", { className: "matrx-alchemy-options matrx-alchemy-data-controls", children: [
1364
+ /* @__PURE__ */ jsxs5("summary", { children: [
1365
+ "Data selection \xB7 ",
1366
+ controls.visibleColumns.length,
1367
+ " columns",
1368
+ controls.search || controls.sort || controls.top != null || controls.selectedOnly || Object.values(controls.filters).some(Boolean) ? " \xB7 customized" : " \xB7 all rows"
1369
+ ] }),
1370
+ /* @__PURE__ */ jsx10("div", { className: "matrx-alchemy-data-controls-body", children: /* @__PURE__ */ jsx10(RowControls, { rows, controls, change: changeControls }) })
1371
+ ] }) : null,
1372
+ state.snapshot.sections.length ? /* @__PURE__ */ jsxs5("details", { className: "matrx-alchemy-options", children: [
1373
+ /* @__PURE__ */ jsxs5("summary", { children: [
1374
+ "Sections \xB7 ",
1375
+ controls.sections.length,
1376
+ " included"
1377
+ ] }),
1378
+ /* @__PURE__ */ jsx10("fieldset", { "aria-label": "Included sections", children: state.snapshot.sections.map((section) => /* @__PURE__ */ jsxs5("label", { children: [
1367
1379
  /* @__PURE__ */ jsx10("input", { type: "checkbox", checked: controls.sections.includes(section.id), onChange: (e) => changeControls({ ...controls, sections: e.target.checked ? [...controls.sections, section.id] : controls.sections.filter((id) => id !== section.id) }) }),
1368
1380
  " ",
1369
1381
  section.label
1370
- ] }, section.id))
1382
+ ] }, section.id)) })
1371
1383
  ] }) : null,
1384
+ /* @__PURE__ */ jsxs5("label", { className: "matrx-alchemy-preview-label", children: [
1385
+ "Output format",
1386
+ /* @__PURE__ */ jsxs5("select", { "aria-label": "Output format", value: format, onChange: (e) => setFormat(e.target.value), children: [
1387
+ formats.map((f) => /* @__PURE__ */ jsx10("option", { value: f, children: LABEL[f] }, f)),
1388
+ state.draft.payload.kind === "rows" ? /* @__PURE__ */ jsx10("option", { value: "xlsx", children: "Excel workbook" }) : null,
1389
+ workspaceAdapters.map((adapter) => /* @__PURE__ */ jsx10("option", { value: adapter.id, children: adapter.label }, adapter.id))
1390
+ ] })
1391
+ ] }),
1392
+ /* @__PURE__ */ jsx10("textarea", { className: "matrx-alchemy-preview", "aria-label": "Prepared output", "aria-invalid": bufferError ? true : void 0, "aria-describedby": bufferError ? "alchemy-buffer-error" : void 0, value: buffer, onChange: (e) => editBuffer(e.target.value) }),
1372
1393
  /* @__PURE__ */ jsxs5("div", { className: "matrx-alchemy-coverage", children: [
1373
1394
  /* @__PURE__ */ jsxs5("span", { children: [
1374
1395
  state.snapshot.coverage.included.toLocaleString(),
@@ -1395,15 +1416,6 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
1395
1416
  ] }, `${o.path}-${o.reason}-${i}`)) })
1396
1417
  ] }) : null
1397
1418
  ] }),
1398
- /* @__PURE__ */ jsxs5("label", { className: "matrx-alchemy-preview-label", children: [
1399
- "Output format",
1400
- /* @__PURE__ */ jsxs5("select", { "aria-label": "Output format", value: format, onChange: (e) => setFormat(e.target.value), children: [
1401
- formats.map((f) => /* @__PURE__ */ jsx10("option", { value: f, children: LABEL[f] }, f)),
1402
- state.draft.payload.kind === "rows" ? /* @__PURE__ */ jsx10("option", { value: "xlsx", children: "Excel workbook" }) : null,
1403
- workspaceAdapters.map((adapter) => /* @__PURE__ */ jsx10("option", { value: adapter.id, children: adapter.label }, adapter.id))
1404
- ] })
1405
- ] }),
1406
- /* @__PURE__ */ jsx10("textarea", { className: "matrx-alchemy-preview", "aria-label": "Prepared output", "aria-invalid": bufferError ? true : void 0, "aria-describedby": bufferError ? "alchemy-buffer-error" : void 0, value: buffer, onChange: (e) => editBuffer(e.target.value) }),
1407
1419
  bufferError ? /* @__PURE__ */ jsx10("p", { id: "alchemy-buffer-error", role: "alert", className: "matrx-alchemy-error", children: bufferError }) : null,
1408
1420
  formatError ? /* @__PURE__ */ jsx10("p", { role: "alert", className: "matrx-alchemy-error", children: formatError }) : null,
1409
1421
  bufferError ? /* @__PURE__ */ jsx10(Button, { className: "matrx-alchemy-workspace-secondary", type: "button", variant: "outline", disabled: busy !== null, onClick: () => {