@ai-matrx/design-system 0.42.0 → 0.43.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/data-table/copy-helpers.d.cts +1 -1
  3. package/dist/data-table/copy-helpers.d.ts +1 -1
  4. package/dist/data-table/filter-engine.d.cts +1 -1
  5. package/dist/data-table/filter-engine.d.ts +1 -1
  6. package/dist/data-table/host.d.cts +1 -1
  7. package/dist/data-table/host.d.ts +1 -1
  8. package/dist/data-table/index.cjs +1453 -1330
  9. package/dist/data-table/index.cjs.map +1 -1
  10. package/dist/data-table/index.d.cts +2 -2
  11. package/dist/data-table/index.d.ts +2 -2
  12. package/dist/data-table/index.js +1468 -1345
  13. package/dist/data-table/index.js.map +1 -1
  14. package/dist/data-table/infer-filter.d.cts +1 -1
  15. package/dist/data-table/infer-filter.d.ts +1 -1
  16. package/dist/data-table/layered-filters.d.cts +1 -1
  17. package/dist/data-table/layered-filters.d.ts +1 -1
  18. package/dist/data-table/query-control.d.cts +1 -1
  19. package/dist/data-table/query-control.d.ts +1 -1
  20. package/dist/data-table/spreadsheet.cjs +68 -1
  21. package/dist/data-table/spreadsheet.cjs.map +1 -1
  22. package/dist/data-table/spreadsheet.d.cts +55 -1
  23. package/dist/data-table/spreadsheet.d.ts +55 -1
  24. package/dist/data-table/spreadsheet.js +68 -1
  25. package/dist/data-table/spreadsheet.js.map +1 -1
  26. package/dist/data-table/types.cjs.map +1 -1
  27. package/dist/data-table/types.d.cts +1 -1
  28. package/dist/data-table/types.d.ts +1 -1
  29. package/dist/data-table/url-state.d.cts +1 -1
  30. package/dist/data-table/url-state.d.ts +1 -1
  31. package/dist/data-table/xlsx.d.cts +1 -1
  32. package/dist/data-table/xlsx.d.ts +1 -1
  33. package/dist/index.cjs +534 -468
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.cts +67 -1
  36. package/dist/index.d.ts +67 -1
  37. package/dist/index.js +541 -475
  38. package/dist/index.js.map +1 -1
  39. package/dist/{types-afUz93xo.d.ts → types-CUR8Hbt5.d.ts} +12 -0
  40. package/dist/{types-q5ficDSo.d.cts → types-CqU57qk8.d.cts} +12 -0
  41. package/package.json +1 -1
@@ -1212,6 +1212,18 @@ interface MatrxDataTableSpreadsheetConfig<T> {
1212
1212
  readOnlyReason?: string | undefined;
1213
1213
  /** Column ids a patch may target. Defaults to every column marked `editable`. */
1214
1214
  writableColumnIds?: string[] | undefined;
1215
+ /**
1216
+ * TYPE-TO-EDIT FOR A CONSUMER THAT DRAWS ITS OWN CELL EDITORS. The table opens its own editor
1217
+ * for a column marked `editable`; a consumer whose cells carry their own editor (a record grid
1218
+ * whose cell IS the Field's editor) is asked here instead, with the cell the person is on and
1219
+ * what they typed — `seed` is the text (a letter, an IME composition, an Option/AltGr
1220
+ * character, dictation), `null` for Enter/F2. Return true when an editor opened, so the
1221
+ * keystroke is consumed. Never asked on a `readOnly` grid.
1222
+ */
1223
+ onEditRequest?: ((address: {
1224
+ rowId: string;
1225
+ columnId: string;
1226
+ }, seed: string | null) => boolean) | undefined;
1215
1227
  /** Why a column refuses a write, as a sentence a person can act on. */
1216
1228
  columnRefusal?: ((columnId: string) => string | undefined) | undefined;
1217
1229
  /** Reads a cell for copy and fill. Defaults to the column's own accessor. */
@@ -1212,6 +1212,18 @@ interface MatrxDataTableSpreadsheetConfig<T> {
1212
1212
  readOnlyReason?: string | undefined;
1213
1213
  /** Column ids a patch may target. Defaults to every column marked `editable`. */
1214
1214
  writableColumnIds?: string[] | undefined;
1215
+ /**
1216
+ * TYPE-TO-EDIT FOR A CONSUMER THAT DRAWS ITS OWN CELL EDITORS. The table opens its own editor
1217
+ * for a column marked `editable`; a consumer whose cells carry their own editor (a record grid
1218
+ * whose cell IS the Field's editor) is asked here instead, with the cell the person is on and
1219
+ * what they typed — `seed` is the text (a letter, an IME composition, an Option/AltGr
1220
+ * character, dictation), `null` for Enter/F2. Return true when an editor opened, so the
1221
+ * keystroke is consumed. Never asked on a `readOnly` grid.
1222
+ */
1223
+ onEditRequest?: ((address: {
1224
+ rowId: string;
1225
+ columnId: string;
1226
+ }, seed: string | null) => boolean) | undefined;
1215
1227
  /** Why a column refuses a write, as a sentence a person can act on. */
1216
1228
  columnRefusal?: ((columnId: string) => string | undefined) | undefined;
1217
1229
  /** Reads a cell for copy and fill. Defaults to the column's own accessor. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/design-system",
3
- "version": "0.42.0",
3
+ "version": "0.43.0",
4
4
  "description": "AI Matrx semantic React primitives shared across Vite, Next.js, desktop, and customer-built applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",