@ai-matrx/design-system 0.86.365 → 0.86.367

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 (75) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/carousel.js +3 -3
  3. package/dist/{chunk-RO5CRIOL.js → chunk-3JEAXZKX.js} +2 -2
  4. package/dist/{chunk-HS6GMHKZ.js → chunk-CZGTZJPS.js} +3 -3
  5. package/dist/chunk-CZGTZJPS.js.map +1 -0
  6. package/dist/{chunk-5Z5GTXKL.js → chunk-FEITX4L3.js} +2 -2
  7. package/dist/{chunk-GUGBVQ4T.js → chunk-OAK4ENIP.js} +3 -3
  8. package/dist/{chunk-UGUVTE77.js → chunk-QEQDJBNK.js} +2 -2
  9. package/dist/{chunk-QJ6SQNXD.js → chunk-TBWKBTPM.js} +2 -2
  10. package/dist/{chunk-2QFA6CK4.js → chunk-UAIBCPMB.js} +2 -2
  11. package/dist/{chunk-VOLSYNJY.js → chunk-VG765KBC.js} +2 -2
  12. package/dist/content-transfer.css +3 -1
  13. package/dist/controls.cjs +2 -2
  14. package/dist/controls.cjs.map +1 -1
  15. package/dist/controls.css +7 -2
  16. package/dist/controls.js +3 -3
  17. package/dist/data-table/data-row-inspector.cjs +2 -2
  18. package/dist/data-table/data-row-inspector.cjs.map +1 -1
  19. package/dist/data-table/data-row-inspector.js +3 -3
  20. package/dist/data-table/data-row-window.cjs +2 -2
  21. package/dist/data-table/data-row-window.cjs.map +1 -1
  22. package/dist/data-table/data-row-window.js +4 -4
  23. package/dist/data-table/drill-chart.cjs +2 -2
  24. package/dist/data-table/drill-chart.cjs.map +1 -1
  25. package/dist/data-table/drill-chart.js +2 -2
  26. package/dist/data-table/index.cjs +8 -3
  27. package/dist/data-table/index.cjs.map +1 -1
  28. package/dist/data-table/index.d.cts +7 -0
  29. package/dist/data-table/index.d.ts +7 -0
  30. package/dist/data-table/index.js +11 -6
  31. package/dist/data-table/index.js.map +1 -1
  32. package/dist/data-table/types.cjs.map +1 -1
  33. package/dist/data-table/types.d.cts +7 -0
  34. package/dist/data-table/types.d.ts +7 -0
  35. package/dist/data-table/uuid-cell.cjs +2 -2
  36. package/dist/data-table/uuid-cell.cjs.map +1 -1
  37. package/dist/data-table/uuid-cell.js +2 -2
  38. package/dist/desktop.cjs +2 -2
  39. package/dist/desktop.cjs.map +1 -1
  40. package/dist/desktop.js +3 -3
  41. package/dist/email-input-dialog.cjs +2 -2
  42. package/dist/email-input-dialog.cjs.map +1 -1
  43. package/dist/email-input-dialog.js +2 -2
  44. package/dist/error-sentence.cjs +2 -2
  45. package/dist/error-sentence.cjs.map +1 -1
  46. package/dist/error-sentence.js +1 -1
  47. package/dist/index.cjs +55 -31
  48. package/dist/index.cjs.map +1 -1
  49. package/dist/index.d.cts +19 -4
  50. package/dist/index.d.ts +19 -4
  51. package/dist/index.js +59 -35
  52. package/dist/index.js.map +1 -1
  53. package/dist/lite-table.cjs +2 -2
  54. package/dist/lite-table.cjs.map +1 -1
  55. package/dist/lite-table.js +3 -3
  56. package/dist/record-list.cjs +2 -2
  57. package/dist/record-list.cjs.map +1 -1
  58. package/dist/record-list.js +3 -3
  59. package/dist/swipe-deck.cjs +3 -3
  60. package/dist/swipe-deck.cjs.map +1 -1
  61. package/dist/swipe-deck.css +9 -0
  62. package/dist/swipe-deck.js +3 -3
  63. package/dist/swipe-deck.js.map +1 -1
  64. package/dist/text-input-dialog.cjs +2 -2
  65. package/dist/text-input-dialog.cjs.map +1 -1
  66. package/dist/text-input-dialog.js +2 -2
  67. package/package.json +2 -2
  68. package/dist/chunk-HS6GMHKZ.js.map +0 -1
  69. /package/dist/{chunk-RO5CRIOL.js.map → chunk-3JEAXZKX.js.map} +0 -0
  70. /package/dist/{chunk-5Z5GTXKL.js.map → chunk-FEITX4L3.js.map} +0 -0
  71. /package/dist/{chunk-GUGBVQ4T.js.map → chunk-OAK4ENIP.js.map} +0 -0
  72. /package/dist/{chunk-UGUVTE77.js.map → chunk-QEQDJBNK.js.map} +0 -0
  73. /package/dist/{chunk-QJ6SQNXD.js.map → chunk-TBWKBTPM.js.map} +0 -0
  74. /package/dist/{chunk-2QFA6CK4.js.map → chunk-UAIBCPMB.js.map} +0 -0
  75. /package/dist/{chunk-VOLSYNJY.js.map → chunk-VG765KBC.js.map} +0 -0
@@ -4003,6 +4003,13 @@ interface MatrxDataTableSelectionConfig<T> {
4003
4003
  allMatching?: boolean;
4004
4004
  /** Told whenever "all matching" turns on or off. */
4005
4005
  onAllMatchingChange?: (allMatching: boolean) => void;
4006
+ /**
4007
+ * WHO ANSWERS "Select all N" (a host that owns bulk selection, like the entity-list shell, has ONE
4008
+ * answer; its banner and this bar must never disagree). Omit: the table offers and runs its own.
4009
+ * `false`: the host cannot serve "everything matching" — the bar does not offer it. A function:
4010
+ * the host's resolver — the bar offers it and a click runs the host's, not the table's own.
4011
+ */
4012
+ selectAllMatching?: false | (() => void);
4006
4013
  /**
4007
4014
  * Rows that cannot be acted on in bulk render NO checkbox at all — the cell
4008
4015
  * stays for alignment, the control is absent from the DOM. A grayed control
@@ -4003,6 +4003,13 @@ interface MatrxDataTableSelectionConfig<T> {
4003
4003
  allMatching?: boolean;
4004
4004
  /** Told whenever "all matching" turns on or off. */
4005
4005
  onAllMatchingChange?: (allMatching: boolean) => void;
4006
+ /**
4007
+ * WHO ANSWERS "Select all N" (a host that owns bulk selection, like the entity-list shell, has ONE
4008
+ * answer; its banner and this bar must never disagree). Omit: the table offers and runs its own.
4009
+ * `false`: the host cannot serve "everything matching" — the bar does not offer it. A function:
4010
+ * the host's resolver — the bar offers it and a click runs the host's, not the table's own.
4011
+ */
4012
+ selectAllMatching?: false | (() => void);
4006
4013
  /**
4007
4014
  * Rows that cannot be acted on in bulk render NO checkbox at all — the cell
4008
4015
  * stays for alignment, the control is absent from the DOM. A grayed control
@@ -149,7 +149,7 @@ import {
149
149
  import "../chunk-K4XCB576.js";
150
150
  import {
151
151
  ErrorBox
152
- } from "../chunk-5Z5GTXKL.js";
152
+ } from "../chunk-FEITX4L3.js";
153
153
  import {
154
154
  Skeleton
155
155
  } from "../chunk-DRSBLHOF.js";
@@ -171,7 +171,7 @@ import {
171
171
  MacLookLayer,
172
172
  useMacLookAttributes,
173
173
  withMacLookDefaults
174
- } from "../chunk-UGUVTE77.js";
174
+ } from "../chunk-QEQDJBNK.js";
175
175
  import "../chunk-YC5GAO35.js";
176
176
  import {
177
177
  Checkbox
@@ -215,7 +215,7 @@ import {
215
215
  searchValueVariants,
216
216
  stringifyCellValue,
217
217
  tokenFromColumnName
218
- } from "../chunk-2QFA6CK4.js";
218
+ } from "../chunk-UAIBCPMB.js";
219
219
  import {
220
220
  TIME_RANGE_PRESETS,
221
221
  TIME_RANGE_PRESET_VALUES,
@@ -257,7 +257,7 @@ import {
257
257
  RecordId,
258
258
  shortUuid,
259
259
  useTableNotice
260
- } from "../chunk-RO5CRIOL.js";
260
+ } from "../chunk-3JEAXZKX.js";
261
261
  import {
262
262
  Badge,
263
263
  Button as Button2,
@@ -293,7 +293,7 @@ import {
293
293
  import "../chunk-BNXNIN2S.js";
294
294
  import {
295
295
  peopleErrorSentence
296
- } from "../chunk-HS6GMHKZ.js";
296
+ } from "../chunk-CZGTZJPS.js";
297
297
  import "../chunk-ORXB4A5E.js";
298
298
  import {
299
299
  MatrxDataTableProvider,
@@ -11601,9 +11601,14 @@ function MatrxDataTableCore(coreProps) {
11601
11601
  };
11602
11602
  const selectionNoun = selection?.noun ?? "row";
11603
11603
  const selectionCount = allMatching && selectionMatchingTotal !== void 0 ? selectionMatchingTotal : selectedIdSet.size;
11604
- const offerSelectAllMatching = Boolean(selection) && !allMatching && allOnPageSelected && selectionMatchingTotal !== void 0 && selectionMatchingTotal > selectedIdSet.size;
11604
+ const offerSelectAllMatching = Boolean(selection) && selection?.selectAllMatching !== false && !allMatching && allOnPageSelected && selectionMatchingTotal !== void 0 && selectionMatchingTotal > selectedIdSet.size;
11605
11605
  const selectAllMatching = () => {
11606
11606
  if (!selection || selectionMatchingTotal === void 0) return;
11607
+ if (typeof selection.selectAllMatching === "function") {
11608
+ lastToggledIndex.current = null;
11609
+ selection.selectAllMatching();
11610
+ return;
11611
+ }
11607
11612
  lastToggledIndex.current = null;
11608
11613
  if (selectionMatchingTotal <= orderedRows.length) {
11609
11614
  const next = new Set(selectedIdSet);