@ai-matrx/design-system 0.18.14 → 0.18.16
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 +18 -0
- package/dist/content-transfer.cjs +29 -18
- package/dist/content-transfer.cjs.map +1 -1
- package/dist/content-transfer.css +8 -0
- package/dist/content-transfer.js +29 -18
- package/dist/content-transfer.js.map +1 -1
- package/dist/data-table/data-row-inspector.cjs +29 -18
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +29 -18
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +29 -18
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +29 -18
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/index.cjs +30 -19
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +30 -19
- package/dist/data-table/index.js.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +20 -20
package/dist/data-table/index.js
CHANGED
|
@@ -2029,13 +2029,17 @@ function PaletteRows({ title, items, onRun, extra, ai = false, glyphKind, fallba
|
|
|
2029
2029
|
if (!items.length && !extra) return null;
|
|
2030
2030
|
return /* @__PURE__ */ jsxs13("section", { className: "matrx-alchemy-palette-section", children: [
|
|
2031
2031
|
/* @__PURE__ */ jsx21("h3", { children: title }),
|
|
2032
|
-
items.map((item) =>
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
item.
|
|
2037
|
-
|
|
2038
|
-
|
|
2032
|
+
items.map((item) => {
|
|
2033
|
+
const label = item.copyLabel ?? item.label;
|
|
2034
|
+
const hint = item.hint ?? fallbackHint;
|
|
2035
|
+
return /* @__PURE__ */ jsxs13("button", { type: "button", className: cn("matrx-alchemy-palette-row", ai && "matrx-alchemy-palette-row-ai"), "aria-label": item.ariaLabel ?? `${label}${hint ? ` ${hint}` : ""}`, onClick: () => onRun?.(item), children: [
|
|
2036
|
+
item.icon ? /* @__PURE__ */ jsx21(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ jsx21(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
|
|
2037
|
+
/* @__PURE__ */ jsxs13("span", { children: [
|
|
2038
|
+
label,
|
|
2039
|
+
hint ? /* @__PURE__ */ jsx21("small", { className: "matrx-alchemy-menu-hint", children: hint }) : null
|
|
2040
|
+
] })
|
|
2041
|
+
] }, item.id);
|
|
2042
|
+
}),
|
|
2039
2043
|
extra
|
|
2040
2044
|
] });
|
|
2041
2045
|
}
|
|
@@ -2996,15 +3000,18 @@ var structuredPayload = (value) => {
|
|
|
2996
3000
|
);
|
|
2997
3001
|
return {
|
|
2998
3002
|
kind: "json",
|
|
2999
|
-
value: normalizeTransferJson(
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3003
|
+
value: normalizeTransferJson(
|
|
3004
|
+
{
|
|
3005
|
+
kind: value.kind,
|
|
3006
|
+
location: value.location,
|
|
3007
|
+
description: value.description,
|
|
3008
|
+
data: value.data,
|
|
3009
|
+
...value.summary !== void 0 ? { summary: value.summary } : {},
|
|
3010
|
+
attributes: clean(value.attributes),
|
|
3011
|
+
context: clean(value.context)
|
|
3012
|
+
},
|
|
3013
|
+
{ omitUndefinedObjectProperties: true }
|
|
3014
|
+
)
|
|
3008
3015
|
};
|
|
3009
3016
|
};
|
|
3010
3017
|
var actionDone = (message) => ({
|
|
@@ -3059,12 +3066,16 @@ function MatrxCopyMenuSession(props) {
|
|
|
3059
3066
|
})) : void 0;
|
|
3060
3067
|
const json = aiVisible && props.json !== void 0 ? make("json", () => ({
|
|
3061
3068
|
kind: "json",
|
|
3062
|
-
value: normalizeTransferJson(resolve(props.json)
|
|
3069
|
+
value: normalizeTransferJson(resolve(props.json), {
|
|
3070
|
+
omitUndefinedObjectProperties: true
|
|
3071
|
+
})
|
|
3063
3072
|
})) : void 0;
|
|
3064
3073
|
const agent = aiVisible && props.agent !== void 0 ? make("agent", () => asPayload(resolve(props.agent))) : void 0;
|
|
3065
3074
|
const structuredAgent = aiVisible && props.agent !== void 0 ? make("structured-agent", () => structuredPayload(resolve(props.agent))) : void 0;
|
|
3066
3075
|
const table = (exportVisible || props.primarySource === "table") && props.export?.sheetRows ? make("rows", () => {
|
|
3067
|
-
const value = normalizeTransferJson(props.export.sheetRows()
|
|
3076
|
+
const value = normalizeTransferJson(props.export.sheetRows(), {
|
|
3077
|
+
omitUndefinedObjectProperties: true
|
|
3078
|
+
});
|
|
3068
3079
|
if (!Array.isArray(value) || value.some(
|
|
3069
3080
|
(row) => row === null || typeof row !== "object" || Array.isArray(row)
|
|
3070
3081
|
))
|
|
@@ -8669,7 +8680,7 @@ function MatrxDataTableCore({
|
|
|
8669
8680
|
setSort({ id, direction: "desc" });
|
|
8670
8681
|
return;
|
|
8671
8682
|
}
|
|
8672
|
-
setSort(
|
|
8683
|
+
setSort({ id, direction: "asc" });
|
|
8673
8684
|
},
|
|
8674
8685
|
filterKind: meta?.kind ?? null,
|
|
8675
8686
|
filterValue: columnFilters[id],
|