@ai-matrx/design-system 0.18.12 → 0.18.14
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/CHANGELOG.md +12 -0
- package/dist/content-transfer.cjs +31 -15
- package/dist/content-transfer.cjs.map +1 -1
- package/dist/content-transfer.css +26 -7
- package/dist/content-transfer.js +31 -15
- package/dist/content-transfer.js.map +1 -1
- package/dist/data-table/data-row-inspector.cjs +31 -15
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +31 -15
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +31 -15
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +31 -15
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/index.cjs +50 -32
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +50 -32
- package/dist/data-table/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
|
|
21
21
|
// src/content-transfer/index.tsx
|
|
22
22
|
import * as React7 from "react";
|
|
23
|
+
import { createPortal } from "react-dom";
|
|
23
24
|
import {
|
|
24
25
|
applySectionSelection,
|
|
25
26
|
applyTransferLimits,
|
|
@@ -990,7 +991,10 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
|
|
|
990
991
|
}, children: /* @__PURE__ */ jsx7(MenuPresentation, { ...action, label: action.label }) }, action.id)) }) : null
|
|
991
992
|
] })
|
|
992
993
|
] }),
|
|
993
|
-
notice ? /* @__PURE__ */
|
|
994
|
+
notice && triggerRef.current ? createPortal(/* @__PURE__ */ jsxs3("div", { className: "matrx-alchemy-feedback", children: [
|
|
995
|
+
/* @__PURE__ */ jsx7("span", { role: "status", children: notice }),
|
|
996
|
+
/* @__PURE__ */ jsx7("button", { type: "button", "aria-label": "Dismiss Alchemy feedback", onClick: () => setNotice(null), children: "\xD7" })
|
|
997
|
+
] }), triggerRef.current.ownerDocument.body) : null,
|
|
994
998
|
Object.values(workspaces).map((saved) => /* @__PURE__ */ jsx7(PreparationWorkspace, { restoreFocus: () => triggerRef.current?.focus(), open: workspaceOpen && workspaceKey === saved.key, state: saved, scopes, onClose: () => setWorkspaceOpen(false), onChange: (next) => setWorkspaces((current) => ({ ...current, [saved.key]: next })), transport, adapters, captureScope: workspaceCaptures.current.get(saved.key) ?? capturePrimary, ...ai ? { ai } : {}, onOutcome: report }, saved.key))
|
|
995
999
|
] });
|
|
996
1000
|
}
|
|
@@ -1307,15 +1311,36 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
|
|
|
1307
1311
|
/* @__PURE__ */ jsx7("input", { type: "number", min: "0", value: controls[key] ?? "", onChange: (e) => changeControls({ ...controls, [key]: Number.isNaN(e.target.valueAsNumber) ? null : e.target.valueAsNumber }) })
|
|
1308
1312
|
] }, key))
|
|
1309
1313
|
] }) : null,
|
|
1310
|
-
rows ? /* @__PURE__ */
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
+
rows ? /* @__PURE__ */ jsxs3("details", { className: "matrx-alchemy-options matrx-alchemy-data-controls", children: [
|
|
1315
|
+
/* @__PURE__ */ jsxs3("summary", { children: [
|
|
1316
|
+
"Data selection \xB7 ",
|
|
1317
|
+
controls.visibleColumns.length,
|
|
1318
|
+
" columns",
|
|
1319
|
+
controls.search || controls.sort || controls.top != null || controls.selectedOnly || Object.values(controls.filters).some(Boolean) ? " \xB7 customized" : " \xB7 all rows"
|
|
1320
|
+
] }),
|
|
1321
|
+
/* @__PURE__ */ jsx7("div", { className: "matrx-alchemy-data-controls-body", children: /* @__PURE__ */ jsx7(RowControls, { rows, controls, change: changeControls }) })
|
|
1322
|
+
] }) : null,
|
|
1323
|
+
state.snapshot.sections.length ? /* @__PURE__ */ jsxs3("details", { className: "matrx-alchemy-options", children: [
|
|
1324
|
+
/* @__PURE__ */ jsxs3("summary", { children: [
|
|
1325
|
+
"Sections \xB7 ",
|
|
1326
|
+
controls.sections.length,
|
|
1327
|
+
" included"
|
|
1328
|
+
] }),
|
|
1329
|
+
/* @__PURE__ */ jsx7("fieldset", { "aria-label": "Included sections", children: state.snapshot.sections.map((section) => /* @__PURE__ */ jsxs3("label", { children: [
|
|
1314
1330
|
/* @__PURE__ */ jsx7("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) }) }),
|
|
1315
1331
|
" ",
|
|
1316
1332
|
section.label
|
|
1317
|
-
] }, section.id))
|
|
1333
|
+
] }, section.id)) })
|
|
1318
1334
|
] }) : null,
|
|
1335
|
+
/* @__PURE__ */ jsxs3("label", { className: "matrx-alchemy-preview-label", children: [
|
|
1336
|
+
"Output format",
|
|
1337
|
+
/* @__PURE__ */ jsxs3("select", { "aria-label": "Output format", value: format, onChange: (e) => setFormat(e.target.value), children: [
|
|
1338
|
+
formats.map((f) => /* @__PURE__ */ jsx7("option", { value: f, children: LABEL[f] }, f)),
|
|
1339
|
+
state.draft.payload.kind === "rows" ? /* @__PURE__ */ jsx7("option", { value: "xlsx", children: "Excel workbook" }) : null,
|
|
1340
|
+
workspaceAdapters.map((adapter) => /* @__PURE__ */ jsx7("option", { value: adapter.id, children: adapter.label }, adapter.id))
|
|
1341
|
+
] })
|
|
1342
|
+
] }),
|
|
1343
|
+
/* @__PURE__ */ jsx7("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) }),
|
|
1319
1344
|
/* @__PURE__ */ jsxs3("div", { className: "matrx-alchemy-coverage", children: [
|
|
1320
1345
|
/* @__PURE__ */ jsxs3("span", { children: [
|
|
1321
1346
|
state.snapshot.coverage.included.toLocaleString(),
|
|
@@ -1342,15 +1367,6 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
|
|
|
1342
1367
|
] }, `${o.path}-${o.reason}-${i}`)) })
|
|
1343
1368
|
] }) : null
|
|
1344
1369
|
] }),
|
|
1345
|
-
/* @__PURE__ */ jsxs3("label", { className: "matrx-alchemy-preview-label", children: [
|
|
1346
|
-
"Output format",
|
|
1347
|
-
/* @__PURE__ */ jsxs3("select", { "aria-label": "Output format", value: format, onChange: (e) => setFormat(e.target.value), children: [
|
|
1348
|
-
formats.map((f) => /* @__PURE__ */ jsx7("option", { value: f, children: LABEL[f] }, f)),
|
|
1349
|
-
state.draft.payload.kind === "rows" ? /* @__PURE__ */ jsx7("option", { value: "xlsx", children: "Excel workbook" }) : null,
|
|
1350
|
-
workspaceAdapters.map((adapter) => /* @__PURE__ */ jsx7("option", { value: adapter.id, children: adapter.label }, adapter.id))
|
|
1351
|
-
] })
|
|
1352
|
-
] }),
|
|
1353
|
-
/* @__PURE__ */ jsx7("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) }),
|
|
1354
1370
|
bufferError ? /* @__PURE__ */ jsx7("p", { id: "alchemy-buffer-error", role: "alert", className: "matrx-alchemy-error", children: bufferError }) : null,
|
|
1355
1371
|
formatError ? /* @__PURE__ */ jsx7("p", { role: "alert", className: "matrx-alchemy-error", children: formatError }) : null,
|
|
1356
1372
|
bufferError ? /* @__PURE__ */ jsx7(Button, { className: "matrx-alchemy-workspace-secondary", type: "button", variant: "outline", disabled: busy !== null, onClick: () => {
|