@ai-matrx/design-system 0.20.2 → 0.20.5
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 +16 -0
- package/dist/data-table/data-row-inspector.cjs +27 -1
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +27 -1
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +27 -1
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +27 -1
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/index.cjs +34 -33
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +34 -33
- package/dist/data-table/index.js.map +1 -1
- package/dist/styles.css +1 -19
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.20.5 — 2026-09-15
|
|
4
|
+
|
|
5
|
+
Aligns the packed-artifact verification with the retired MatrxDataTable
|
|
6
|
+
diagnostic boundary so the current design system can publish successfully.
|
|
7
|
+
|
|
8
|
+
## 0.20.4 — 2026-09-15
|
|
9
|
+
|
|
10
|
+
Republishes the current design-system source after removing stale stylesheet
|
|
11
|
+
assertions for the retired temporary MatrxDataTable diagnostic boundary.
|
|
12
|
+
|
|
13
|
+
## 0.20.3
|
|
14
|
+
|
|
15
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
16
|
+
`git diff npm/design-system/v0.20.2..npm/design-system/v0.20.3 -- apps/shared/design-system`).
|
|
17
|
+
No source changes intended and no consumer action required.
|
|
18
|
+
|
|
3
19
|
## 0.20.2 — 2026-09-14
|
|
4
20
|
|
|
5
21
|
Table JSON and schema exports use meaningful format glyphs; custom formats receive a document glyph instead of the plain-text mark. Includes the corrected omission contract.
|
|
@@ -3155,6 +3155,32 @@ function isUuidValue(value) {
|
|
|
3155
3155
|
return typeof value === "string" && /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(value);
|
|
3156
3156
|
}
|
|
3157
3157
|
|
|
3158
|
+
// src/data-table/filter-engine.ts
|
|
3159
|
+
function stringifyCellValue(value) {
|
|
3160
|
+
if (value == null) return "";
|
|
3161
|
+
if (typeof value === "string") return value;
|
|
3162
|
+
if (typeof value === "number" || typeof value === "boolean") {
|
|
3163
|
+
return String(value);
|
|
3164
|
+
}
|
|
3165
|
+
if (value instanceof Date) return value.toISOString();
|
|
3166
|
+
try {
|
|
3167
|
+
return JSON.stringify(value);
|
|
3168
|
+
} catch {
|
|
3169
|
+
return String(value);
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
|
|
3173
|
+
// src/data-table/display-value.ts
|
|
3174
|
+
function formatTableDisplayValue(value) {
|
|
3175
|
+
if (typeof value === "number") return value.toLocaleString(void 0, { maximumFractionDigits: 12 });
|
|
3176
|
+
if (value instanceof Date) return value.toLocaleString();
|
|
3177
|
+
if (typeof value === "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/.test(value) && !Number.isNaN(Date.parse(value))) {
|
|
3178
|
+
return new Date(value).toLocaleString();
|
|
3179
|
+
}
|
|
3180
|
+
if (typeof value === "boolean") return value ? "Yes" : "No";
|
|
3181
|
+
return stringifyCellValue(value) || "\u2014";
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3158
3184
|
// src/data-table/DataRowInspector.tsx
|
|
3159
3185
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
3160
3186
|
var noFieldToken = () => null;
|
|
@@ -3227,7 +3253,7 @@ function DataRowInspector({
|
|
|
3227
3253
|
key
|
|
3228
3254
|
);
|
|
3229
3255
|
}
|
|
3230
|
-
const formatted = formatValue(value);
|
|
3256
|
+
const formatted = value !== null && typeof value === "object" && !(value instanceof Date) ? formatValue(value) : formatTableDisplayValue(value);
|
|
3231
3257
|
const multiline = formatted.includes("\n") || formatted.length > 80;
|
|
3232
3258
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
3233
3259
|
"div",
|