@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
|
@@ -414,6 +414,7 @@ var import_content_transfer2 = require("@ai-matrx/kit/content-transfer");
|
|
|
414
414
|
|
|
415
415
|
// src/content-transfer/index.tsx
|
|
416
416
|
var React7 = __toESM(require("react"), 1);
|
|
417
|
+
var import_react_dom = require("react-dom");
|
|
417
418
|
var import_content_transfer = require("@ai-matrx/kit/content-transfer");
|
|
418
419
|
|
|
419
420
|
// src/button.tsx
|
|
@@ -1050,7 +1051,10 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
|
|
|
1050
1051
|
}, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(MenuPresentation, { ...action, label: action.label }) }, action.id)) }) : null
|
|
1051
1052
|
] })
|
|
1052
1053
|
] }),
|
|
1053
|
-
notice ? /* @__PURE__ */ (0, import_jsx_runtime10.
|
|
1054
|
+
notice && triggerRef.current ? (0, import_react_dom.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "matrx-alchemy-feedback", children: [
|
|
1055
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { role: "status", children: notice }),
|
|
1056
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { type: "button", "aria-label": "Dismiss Alchemy feedback", onClick: () => setNotice(null), children: "\xD7" })
|
|
1057
|
+
] }), triggerRef.current.ownerDocument.body) : null,
|
|
1054
1058
|
Object.values(workspaces).map((saved) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(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))
|
|
1055
1059
|
] });
|
|
1056
1060
|
}
|
|
@@ -1367,15 +1371,36 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
|
|
|
1367
1371
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("input", { type: "number", min: "0", value: controls[key] ?? "", onChange: (e) => changeControls({ ...controls, [key]: Number.isNaN(e.target.valueAsNumber) ? null : e.target.valueAsNumber }) })
|
|
1368
1372
|
] }, key))
|
|
1369
1373
|
] }) : null,
|
|
1370
|
-
rows ? /* @__PURE__ */ (0, import_jsx_runtime10.
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
+
rows ? /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("details", { className: "matrx-alchemy-options matrx-alchemy-data-controls", children: [
|
|
1375
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("summary", { children: [
|
|
1376
|
+
"Data selection \xB7 ",
|
|
1377
|
+
controls.visibleColumns.length,
|
|
1378
|
+
" columns",
|
|
1379
|
+
controls.search || controls.sort || controls.top != null || controls.selectedOnly || Object.values(controls.filters).some(Boolean) ? " \xB7 customized" : " \xB7 all rows"
|
|
1380
|
+
] }),
|
|
1381
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "matrx-alchemy-data-controls-body", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RowControls, { rows, controls, change: changeControls }) })
|
|
1382
|
+
] }) : null,
|
|
1383
|
+
state.snapshot.sections.length ? /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("details", { className: "matrx-alchemy-options", children: [
|
|
1384
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("summary", { children: [
|
|
1385
|
+
"Sections \xB7 ",
|
|
1386
|
+
controls.sections.length,
|
|
1387
|
+
" included"
|
|
1388
|
+
] }),
|
|
1389
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("fieldset", { "aria-label": "Included sections", children: state.snapshot.sections.map((section) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("label", { children: [
|
|
1374
1390
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("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) }) }),
|
|
1375
1391
|
" ",
|
|
1376
1392
|
section.label
|
|
1377
|
-
] }, section.id))
|
|
1393
|
+
] }, section.id)) })
|
|
1378
1394
|
] }) : null,
|
|
1395
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("label", { className: "matrx-alchemy-preview-label", children: [
|
|
1396
|
+
"Output format",
|
|
1397
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("select", { "aria-label": "Output format", value: format, onChange: (e) => setFormat(e.target.value), children: [
|
|
1398
|
+
formats.map((f) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("option", { value: f, children: LABEL[f] }, f)),
|
|
1399
|
+
state.draft.payload.kind === "rows" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("option", { value: "xlsx", children: "Excel workbook" }) : null,
|
|
1400
|
+
workspaceAdapters.map((adapter) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("option", { value: adapter.id, children: adapter.label }, adapter.id))
|
|
1401
|
+
] })
|
|
1402
|
+
] }),
|
|
1403
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("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) }),
|
|
1379
1404
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "matrx-alchemy-coverage", children: [
|
|
1380
1405
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { children: [
|
|
1381
1406
|
state.snapshot.coverage.included.toLocaleString(),
|
|
@@ -1402,15 +1427,6 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
|
|
|
1402
1427
|
] }, `${o.path}-${o.reason}-${i}`)) })
|
|
1403
1428
|
] }) : null
|
|
1404
1429
|
] }),
|
|
1405
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("label", { className: "matrx-alchemy-preview-label", children: [
|
|
1406
|
-
"Output format",
|
|
1407
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("select", { "aria-label": "Output format", value: format, onChange: (e) => setFormat(e.target.value), children: [
|
|
1408
|
-
formats.map((f) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("option", { value: f, children: LABEL[f] }, f)),
|
|
1409
|
-
state.draft.payload.kind === "rows" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("option", { value: "xlsx", children: "Excel workbook" }) : null,
|
|
1410
|
-
workspaceAdapters.map((adapter) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("option", { value: adapter.id, children: adapter.label }, adapter.id))
|
|
1411
|
-
] })
|
|
1412
|
-
] }),
|
|
1413
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("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) }),
|
|
1414
1430
|
bufferError ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { id: "alchemy-buffer-error", role: "alert", className: "matrx-alchemy-error", children: bufferError }) : null,
|
|
1415
1431
|
formatError ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { role: "alert", className: "matrx-alchemy-error", children: formatError }) : null,
|
|
1416
1432
|
bufferError ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Button, { className: "matrx-alchemy-workspace-secondary", type: "button", variant: "outline", disabled: busy !== null, onClick: () => {
|