@ai-matrx/design-system 0.21.14 → 0.22.0
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 +37 -0
- package/dist/data-table/copy-helpers.d.cts +2 -1
- package/dist/data-table/copy-helpers.d.ts +2 -1
- package/dist/data-table/filter-engine.d.cts +2 -1
- package/dist/data-table/filter-engine.d.ts +2 -1
- package/dist/data-table/host.d.cts +2 -1
- package/dist/data-table/host.d.ts +2 -1
- package/dist/data-table/index.cjs +1525 -398
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.d.cts +91 -3
- package/dist/data-table/index.d.ts +91 -3
- package/dist/data-table/index.js +1526 -395
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/infer-filter.d.cts +2 -1
- package/dist/data-table/infer-filter.d.ts +2 -1
- package/dist/data-table/layered-filters.d.cts +2 -1
- package/dist/data-table/layered-filters.d.ts +2 -1
- package/dist/data-table/query-control.d.cts +2 -1
- package/dist/data-table/query-control.d.ts +2 -1
- package/dist/data-table/types.cjs.map +1 -1
- package/dist/data-table/types.d.cts +2 -1
- package/dist/data-table/types.d.ts +2 -1
- package/dist/data-table/url-state.d.cts +2 -1
- package/dist/data-table/url-state.d.ts +2 -1
- package/dist/data-table/xlsx.d.cts +2 -1
- package/dist/data-table/xlsx.d.ts +2 -1
- package/dist/field-formats/index.cjs +741 -0
- package/dist/field-formats/index.cjs.map +1 -0
- package/dist/field-formats/index.d.cts +45 -0
- package/dist/field-formats/index.d.ts +45 -0
- package/dist/field-formats/index.js +723 -0
- package/dist/field-formats/index.js.map +1 -0
- package/dist/types-BdbvlF9-.d.cts +204 -0
- package/dist/types-BdbvlF9-.d.ts +204 -0
- package/dist/{types-emLxze_m.d.ts → types-D-flTpK0.d.ts} +230 -1
- package/dist/{types-BgqIKbhq.d.cts → types-Sn249eoy.d.cts} +230 -1
- package/package.json +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.22.0 — 2026-09-20
|
|
4
|
+
|
|
5
|
+
**The data table can paint, format and freeze — so every table in the product can.**
|
|
6
|
+
|
|
7
|
+
The spreadsheet work built behind one app route (`/data`) lived in that app and could not be
|
|
8
|
+
reached by anything else; the record store's Grid renders through THIS table, so any table that
|
|
9
|
+
wanted a colored row or a money column had to grow its own. Three capabilities move into the
|
|
10
|
+
primitive, and a fourth rung it never had.
|
|
11
|
+
|
|
12
|
+
- **`tableStyle`** — colors, declaratively. Color by a column, live rules ("when Amount is over
|
|
13
|
+
1000, tint the row amber"), and manual cell / row / column highlights, with a documented
|
|
14
|
+
precedence between them. The model is the new `./table-style.ts` — pure, no React, no network —
|
|
15
|
+
so a consumer owns only where the document is STORED and how a person edits it. Every tint ships
|
|
16
|
+
its own `dark:` class, and the palette is NAMES, never hex, so a color survives the theme and a
|
|
17
|
+
retired name degrades to "no color" instead of an unreadable swatch.
|
|
18
|
+
- **`MatrxColumnDef.format`** — `{id, options}` from the new `@ai-matrx/design-system/field-formats`
|
|
19
|
+
entry point, which is the platform's ONE field-format registry (25 formats: currency, percent,
|
|
20
|
+
duration, rating, file size, date styles, choice, tags, markdown, …). A formatted column also
|
|
21
|
+
right-aligns itself when the format is numeric. THE FALLBACK LAW travels with it: a value that
|
|
22
|
+
does not fit is shown in amber with the reason, never blanked and never thrown.
|
|
23
|
+
- **`MatrxColumnDef.frozen`** — the identity column stays while a wide table scrolls sideways.
|
|
24
|
+
DESKTOP ONLY (`sm:`) because pinning over a phone table buries the data; only the LEADING RUN,
|
|
25
|
+
because a column pinned over its own left neighbour lies about where the row is; and **nothing
|
|
26
|
+
freezes at all when a width the offsets need is unknown**, rather than pinning at a guess.
|
|
27
|
+
- **`cellClassName`** — the rung between `rowClassName` and a column's static `className`. Its
|
|
28
|
+
absence is why every table that needed to say something about ONE cell had to grow a `cell`
|
|
29
|
+
render function and paint inside it, where the table can no longer see it.
|
|
30
|
+
- **`TableViewSnapshot.style`** — a saved view carries its colors. Read by `parseTableStyle`, which
|
|
31
|
+
is tolerant by design, so one stale rule costs that rule and never the whole view.
|
|
32
|
+
|
|
33
|
+
### Consumer action
|
|
34
|
+
|
|
35
|
+
None. Every new prop is optional and every default is today's behavior. `MatrxColumnDef.format` is
|
|
36
|
+
ignored when the column already supplies `cell`; a consumer's own renderer can ask for the same
|
|
37
|
+
text with the exported `formatColumnValue(col, value)` instead of writing a second money formatter.
|
|
38
|
+
|
|
39
|
+
|
|
3
40
|
## 0.21.14 — 2026-09-19
|
|
4
41
|
|
|
5
42
|
Alchemy renders the kit's new `queued` transfer outcome (`@ai-matrx/kit` 0.16.0): a write that was
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { AgentPayloadInput } from './copy-types.cjs';
|
|
2
|
-
import { g as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-
|
|
2
|
+
import { g as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-Sn249eoy.cjs';
|
|
3
3
|
import '../content-transfer.cjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@ai-matrx/kit/content-transfer';
|
|
6
6
|
import '../content-transfer/icon.cjs';
|
|
7
|
+
import '../types-BdbvlF9-.cjs';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Typed, declared-column capture for MatrxDataTable's built-in Alchemy source.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { AgentPayloadInput } from './copy-types.js';
|
|
2
|
-
import { g as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-
|
|
2
|
+
import { g as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-D-flTpK0.js';
|
|
3
3
|
import '../content-transfer.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@ai-matrx/kit/content-transfer';
|
|
6
6
|
import '../content-transfer/icon.js';
|
|
7
|
+
import '../types-BdbvlF9-.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Typed, declared-column capture for MatrxDataTable's built-in Alchemy source.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-
|
|
1
|
+
import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-Sn249eoy.cjs';
|
|
2
2
|
import '../content-transfer.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@ai-matrx/kit/content-transfer';
|
|
5
5
|
import '../content-transfer/icon.cjs';
|
|
6
6
|
import './copy-types.cjs';
|
|
7
|
+
import '../types-BdbvlF9-.cjs';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Sentinel select-filter values for "no value" / "any value" — every select
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-
|
|
1
|
+
import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-D-flTpK0.js';
|
|
2
2
|
import '../content-transfer.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@ai-matrx/kit/content-transfer';
|
|
5
5
|
import '../content-transfer/icon.js';
|
|
6
6
|
import './copy-types.js';
|
|
7
|
+
import '../types-BdbvlF9-.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Sentinel select-filter values for "no value" / "any value" — every select
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, ReactNode, MouseEventHandler } from 'react';
|
|
3
|
-
import { b as TableSavedViewsProps, c as MatrxDataTableRecordControls, d as MatrxDataTableDensity } from '../types-
|
|
3
|
+
import { b as TableSavedViewsProps, c as MatrxDataTableRecordControls, d as MatrxDataTableDensity } from '../types-Sn249eoy.cjs';
|
|
4
4
|
import { CopyControlProps } from './copy-types.cjs';
|
|
5
5
|
export { AgentPayloadInput, AiCustomSource, AiVariant, CopyExportConfig } from './copy-types.cjs';
|
|
6
6
|
import '../content-transfer.cjs';
|
|
7
7
|
import '@ai-matrx/kit/content-transfer';
|
|
8
8
|
import '../content-transfer/icon.cjs';
|
|
9
|
+
import '../types-BdbvlF9-.cjs';
|
|
9
10
|
|
|
10
11
|
interface TableLinkProps {
|
|
11
12
|
href: string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, ReactNode, MouseEventHandler } from 'react';
|
|
3
|
-
import { b as TableSavedViewsProps, c as MatrxDataTableRecordControls, d as MatrxDataTableDensity } from '../types-
|
|
3
|
+
import { b as TableSavedViewsProps, c as MatrxDataTableRecordControls, d as MatrxDataTableDensity } from '../types-D-flTpK0.js';
|
|
4
4
|
import { CopyControlProps } from './copy-types.js';
|
|
5
5
|
export { AgentPayloadInput, AiCustomSource, AiVariant, CopyExportConfig } from './copy-types.js';
|
|
6
6
|
import '../content-transfer.js';
|
|
7
7
|
import '@ai-matrx/kit/content-transfer';
|
|
8
8
|
import '../content-transfer/icon.js';
|
|
9
|
+
import '../types-BdbvlF9-.js';
|
|
9
10
|
|
|
10
11
|
interface TableLinkProps {
|
|
11
12
|
href: string;
|