@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.
@@ -2801,15 +2801,36 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
2801
2801
  /* @__PURE__ */ jsx21("input", { type: "number", min: "0", value: controls[key] ?? "", onChange: (e) => changeControls({ ...controls, [key]: Number.isNaN(e.target.valueAsNumber) ? null : e.target.valueAsNumber }) })
2802
2802
  ] }, key))
2803
2803
  ] }) : null,
2804
- rows ? /* @__PURE__ */ jsx21(RowControls, { rows, controls, change: changeControls }) : null,
2805
- state.snapshot.sections.length ? /* @__PURE__ */ jsxs13("fieldset", { className: "matrx-alchemy-options", children: [
2806
- /* @__PURE__ */ jsx21("legend", { children: "Sections" }),
2807
- state.snapshot.sections.map((section) => /* @__PURE__ */ jsxs13("label", { children: [
2804
+ rows ? /* @__PURE__ */ jsxs13("details", { className: "matrx-alchemy-options matrx-alchemy-data-controls", children: [
2805
+ /* @__PURE__ */ jsxs13("summary", { children: [
2806
+ "Data selection \xB7 ",
2807
+ controls.visibleColumns.length,
2808
+ " columns",
2809
+ controls.search || controls.sort || controls.top != null || controls.selectedOnly || Object.values(controls.filters).some(Boolean) ? " \xB7 customized" : " \xB7 all rows"
2810
+ ] }),
2811
+ /* @__PURE__ */ jsx21("div", { className: "matrx-alchemy-data-controls-body", children: /* @__PURE__ */ jsx21(RowControls, { rows, controls, change: changeControls }) })
2812
+ ] }) : null,
2813
+ state.snapshot.sections.length ? /* @__PURE__ */ jsxs13("details", { className: "matrx-alchemy-options", children: [
2814
+ /* @__PURE__ */ jsxs13("summary", { children: [
2815
+ "Sections \xB7 ",
2816
+ controls.sections.length,
2817
+ " included"
2818
+ ] }),
2819
+ /* @__PURE__ */ jsx21("fieldset", { "aria-label": "Included sections", children: state.snapshot.sections.map((section) => /* @__PURE__ */ jsxs13("label", { children: [
2808
2820
  /* @__PURE__ */ jsx21("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) }) }),
2809
2821
  " ",
2810
2822
  section.label
2811
- ] }, section.id))
2823
+ ] }, section.id)) })
2812
2824
  ] }) : null,
2825
+ /* @__PURE__ */ jsxs13("label", { className: "matrx-alchemy-preview-label", children: [
2826
+ "Output format",
2827
+ /* @__PURE__ */ jsxs13("select", { "aria-label": "Output format", value: format, onChange: (e) => setFormat(e.target.value), children: [
2828
+ formats.map((f) => /* @__PURE__ */ jsx21("option", { value: f, children: LABEL[f] }, f)),
2829
+ state.draft.payload.kind === "rows" ? /* @__PURE__ */ jsx21("option", { value: "xlsx", children: "Excel workbook" }) : null,
2830
+ workspaceAdapters.map((adapter) => /* @__PURE__ */ jsx21("option", { value: adapter.id, children: adapter.label }, adapter.id))
2831
+ ] })
2832
+ ] }),
2833
+ /* @__PURE__ */ jsx21("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) }),
2813
2834
  /* @__PURE__ */ jsxs13("div", { className: "matrx-alchemy-coverage", children: [
2814
2835
  /* @__PURE__ */ jsxs13("span", { children: [
2815
2836
  state.snapshot.coverage.included.toLocaleString(),
@@ -2836,15 +2857,6 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
2836
2857
  ] }, `${o.path}-${o.reason}-${i}`)) })
2837
2858
  ] }) : null
2838
2859
  ] }),
2839
- /* @__PURE__ */ jsxs13("label", { className: "matrx-alchemy-preview-label", children: [
2840
- "Output format",
2841
- /* @__PURE__ */ jsxs13("select", { "aria-label": "Output format", value: format, onChange: (e) => setFormat(e.target.value), children: [
2842
- formats.map((f) => /* @__PURE__ */ jsx21("option", { value: f, children: LABEL[f] }, f)),
2843
- state.draft.payload.kind === "rows" ? /* @__PURE__ */ jsx21("option", { value: "xlsx", children: "Excel workbook" }) : null,
2844
- workspaceAdapters.map((adapter) => /* @__PURE__ */ jsx21("option", { value: adapter.id, children: adapter.label }, adapter.id))
2845
- ] })
2846
- ] }),
2847
- /* @__PURE__ */ jsx21("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) }),
2848
2860
  bufferError ? /* @__PURE__ */ jsx21("p", { id: "alchemy-buffer-error", role: "alert", className: "matrx-alchemy-error", children: bufferError }) : null,
2849
2861
  formatError ? /* @__PURE__ */ jsx21("p", { role: "alert", className: "matrx-alchemy-error", children: formatError }) : null,
2850
2862
  bufferError ? /* @__PURE__ */ jsx21(Button, { className: "matrx-alchemy-workspace-secondary", type: "button", variant: "outline", disabled: busy !== null, onClick: () => {