@ai-matrx/design-system 0.86.368 → 0.86.370

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 (73) hide show
  1. package/CHANGELOG.md +16 -2
  2. package/dist/accents.cjs +2 -2
  3. package/dist/accents.cjs.map +1 -1
  4. package/dist/accents.js +2 -2
  5. package/dist/accents.js.map +1 -1
  6. package/dist/carousel.js +5 -5
  7. package/dist/{chunk-SOCDBDFS.js → chunk-2HB65PD6.js} +2 -2
  8. package/dist/{chunk-KOUHF4JC.js → chunk-345ESUIP.js} +4 -4
  9. package/dist/{chunk-LS3C7IUV.js → chunk-ASDPMZNP.js} +2 -2
  10. package/dist/{chunk-WLKHQGX5.js → chunk-CFFRMRWJ.js} +2 -2
  11. package/dist/{chunk-TBWKBTPM.js → chunk-F7IUBABK.js} +3 -3
  12. package/dist/{chunk-3JEAXZKX.js → chunk-FLYZSVTR.js} +2 -2
  13. package/dist/{chunk-UAIBCPMB.js → chunk-RLTTLDWU.js} +4 -4
  14. package/dist/{chunk-VG765KBC.js → chunk-U3SUPYNT.js} +2 -2
  15. package/dist/{chunk-QEQDJBNK.js → chunk-WSEZDHLA.js} +2 -2
  16. package/dist/{chunk-3YTF4MH2.js → chunk-YA3DNAAC.js} +2 -2
  17. package/dist/clipboard-fallback-dialog.js +2 -2
  18. package/dist/controls.css +7 -0
  19. package/dist/controls.js +5 -5
  20. package/dist/data-table/data-row-inspector.js +5 -5
  21. package/dist/data-table/data-row-window.js +6 -6
  22. package/dist/data-table/index.cjs +2 -1
  23. package/dist/data-table/index.cjs.map +1 -1
  24. package/dist/data-table/index.d.cts +0 -22
  25. package/dist/data-table/index.d.ts +0 -22
  26. package/dist/data-table/index.js +10 -9
  27. package/dist/data-table/index.js.map +1 -1
  28. package/dist/data-table/pagination.js +3 -3
  29. package/dist/data-table/uuid-cell.js +3 -3
  30. package/dist/data-table/virtual-window.cjs +2 -1
  31. package/dist/data-table/virtual-window.cjs.map +1 -1
  32. package/dist/data-table/virtual-window.d.cts +0 -22
  33. package/dist/data-table/virtual-window.d.ts +0 -22
  34. package/dist/data-table/virtual-window.js +2 -1
  35. package/dist/data-table/virtual-window.js.map +1 -1
  36. package/dist/desktop.d.cts +1 -1
  37. package/dist/desktop.d.ts +1 -1
  38. package/dist/desktop.js +4 -4
  39. package/dist/index.cjs +20 -12
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.cts +9 -4
  42. package/dist/index.d.ts +9 -4
  43. package/dist/index.js +27 -19
  44. package/dist/index.js.map +1 -1
  45. package/dist/item.js +3 -3
  46. package/dist/lite-table.js +2 -2
  47. package/dist/record-list.js +3 -3
  48. package/dist/settings.js +3 -3
  49. package/dist/swipe-deck-tree.cjs +238 -0
  50. package/dist/swipe-deck-tree.cjs.map +1 -0
  51. package/dist/swipe-deck-tree.d.cts +202 -0
  52. package/dist/swipe-deck-tree.d.ts +202 -0
  53. package/dist/swipe-deck-tree.js +208 -0
  54. package/dist/swipe-deck-tree.js.map +1 -0
  55. package/dist/swipe-deck.cjs.map +1 -1
  56. package/dist/swipe-deck.d.cts +5 -0
  57. package/dist/swipe-deck.d.ts +5 -0
  58. package/dist/swipe-deck.js.map +1 -1
  59. package/dist/text-input-dialog.js +1 -1
  60. package/dist/tokens.css +23 -23
  61. package/dist/web-theme.css +20 -20
  62. package/dist/writing-field.js +3 -3
  63. package/package.json +12 -2
  64. /package/dist/{chunk-SOCDBDFS.js.map → chunk-2HB65PD6.js.map} +0 -0
  65. /package/dist/{chunk-KOUHF4JC.js.map → chunk-345ESUIP.js.map} +0 -0
  66. /package/dist/{chunk-LS3C7IUV.js.map → chunk-ASDPMZNP.js.map} +0 -0
  67. /package/dist/{chunk-WLKHQGX5.js.map → chunk-CFFRMRWJ.js.map} +0 -0
  68. /package/dist/{chunk-TBWKBTPM.js.map → chunk-F7IUBABK.js.map} +0 -0
  69. /package/dist/{chunk-3JEAXZKX.js.map → chunk-FLYZSVTR.js.map} +0 -0
  70. /package/dist/{chunk-UAIBCPMB.js.map → chunk-RLTTLDWU.js.map} +0 -0
  71. /package/dist/{chunk-VG765KBC.js.map → chunk-U3SUPYNT.js.map} +0 -0
  72. /package/dist/{chunk-QEQDJBNK.js.map → chunk-WSEZDHLA.js.map} +0 -0
  73. /package/dist/{chunk-3YTF4MH2.js.map → chunk-YA3DNAAC.js.map} +0 -0
@@ -5798,28 +5798,6 @@ declare function resolveFrozenColumns(ids: readonly string[], isFrozen: (id: str
5798
5798
  /** The numeric pixel width of a declared column width, when there is one. */
5799
5799
  declare function pixelWidth(width: string | number | undefined): number | undefined;
5800
5800
 
5801
- /**
5802
- * Row / column windowing math for the canonical data table.
5803
- *
5804
- * Pure arithmetic: no React, no DOM, no measurement. The table hands in what it
5805
- * knows (how many items, how big they are, how much of them the viewport shows,
5806
- * where the scroller is) and gets back the slice it should actually render plus
5807
- * the two spacers that keep the scrollbar honest.
5808
- *
5809
- * THE INVARIANT this module exists to hold:
5810
- *
5811
- * padStart + (end - start) * itemSize + padEnd === total
5812
- *
5813
- * exactly, for every input. A scrollbar whose thumb size disagrees with the
5814
- * content it can reach is a lie on screen, so `padEnd` is computed as the
5815
- * residual of `total` rather than as an independent multiplication, and the
5816
- * sum is re-checked and corrected once against floating-point drift.
5817
- *
5818
- * PINNED ITEMS (frozen columns) live OUTSIDE the scrollable length. They are
5819
- * always rendered, they are never counted in `padStart`, and the scrollable
5820
- * `total` covers only the items after them. `offset` is therefore measured
5821
- * inside the scrollable region: offset 0 shows item index `pinnedStart`.
5822
- */
5823
5801
  /** Items rendered outside the viewport on each side when the caller says nothing. */
5824
5802
  declare const DEFAULT_OVERSCAN = 6;
5825
5803
  interface WindowInput {
@@ -5798,28 +5798,6 @@ declare function resolveFrozenColumns(ids: readonly string[], isFrozen: (id: str
5798
5798
  /** The numeric pixel width of a declared column width, when there is one. */
5799
5799
  declare function pixelWidth(width: string | number | undefined): number | undefined;
5800
5800
 
5801
- /**
5802
- * Row / column windowing math for the canonical data table.
5803
- *
5804
- * Pure arithmetic: no React, no DOM, no measurement. The table hands in what it
5805
- * knows (how many items, how big they are, how much of them the viewport shows,
5806
- * where the scroller is) and gets back the slice it should actually render plus
5807
- * the two spacers that keep the scrollbar honest.
5808
- *
5809
- * THE INVARIANT this module exists to hold:
5810
- *
5811
- * padStart + (end - start) * itemSize + padEnd === total
5812
- *
5813
- * exactly, for every input. A scrollbar whose thumb size disagrees with the
5814
- * content it can reach is a lie on screen, so `padEnd` is computed as the
5815
- * residual of `total` rather than as an independent multiplication, and the
5816
- * sum is re-checked and corrected once against floating-point drift.
5817
- *
5818
- * PINNED ITEMS (frozen columns) live OUTSIDE the scrollable length. They are
5819
- * always rendered, they are never counted in `padStart`, and the scrollable
5820
- * `total` covers only the items after them. `offset` is therefore measured
5821
- * inside the scrollable region: offset 0 shows item index `pinnedStart`.
5822
- */
5823
5801
  /** Items rendered outside the viewport on each side when the caller says nothing. */
5824
5802
  declare const DEFAULT_OVERSCAN = 6;
5825
5803
  interface WindowInput {
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  DEFAULT_TABLE_PAGE_SIZES,
7
7
  GenericTablePagination
8
- } from "../chunk-LS3C7IUV.js";
8
+ } from "../chunk-ASDPMZNP.js";
9
9
  import {
10
10
  useScrollPagination
11
11
  } from "../chunk-VOFK23MG.js";
@@ -145,7 +145,7 @@ import {
145
145
  ConfirmDialog,
146
146
  EmptyState,
147
147
  Tile
148
- } from "../chunk-WLKHQGX5.js";
148
+ } from "../chunk-CFFRMRWJ.js";
149
149
  import "../chunk-K4XCB576.js";
150
150
  import {
151
151
  ErrorBox
@@ -171,7 +171,7 @@ import {
171
171
  MacLookLayer,
172
172
  useMacLookAttributes,
173
173
  withMacLookDefaults
174
- } from "../chunk-QEQDJBNK.js";
174
+ } from "../chunk-WSEZDHLA.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-UAIBCPMB.js";
218
+ } from "../chunk-RLTTLDWU.js";
219
219
  import {
220
220
  TIME_RANGE_PRESETS,
221
221
  TIME_RANGE_PRESET_VALUES,
@@ -239,7 +239,7 @@ import {
239
239
  } from "../chunk-FXT7PZAF.js";
240
240
  import {
241
241
  PropertyRow
242
- } from "../chunk-3YTF4MH2.js";
242
+ } from "../chunk-YA3DNAAC.js";
243
243
  import "../chunk-WFBPCMPF.js";
244
244
  import "../chunk-KGW373MK.js";
245
245
  import {
@@ -257,7 +257,7 @@ import {
257
257
  RecordId,
258
258
  shortUuid,
259
259
  useTableNotice
260
- } from "../chunk-3JEAXZKX.js";
260
+ } from "../chunk-FLYZSVTR.js";
261
261
  import {
262
262
  Badge,
263
263
  Button as Button2,
@@ -266,9 +266,9 @@ import {
266
266
  SegmentedControl,
267
267
  Select as Select2,
268
268
  Tabs
269
- } from "../chunk-KOUHF4JC.js";
270
- import "../chunk-BD77DHUO.js";
269
+ } from "../chunk-345ESUIP.js";
271
270
  import "../chunk-BKCJUFD3.js";
271
+ import "../chunk-BD77DHUO.js";
272
272
  import {
273
273
  Tooltip,
274
274
  TooltipContent,
@@ -6456,6 +6456,7 @@ function groupSummary(group, rowNoun = "row") {
6456
6456
  }
6457
6457
 
6458
6458
  // src/data-table/virtual-window.ts
6459
+ import { globalSlot as globalSlot2 } from "@ai-matrx/kit/global-slot";
6459
6460
  var DEFAULT_OVERSCAN = 6;
6460
6461
  function isNum(value) {
6461
6462
  return typeof value === "number" && Number.isFinite(value);
@@ -6531,7 +6532,7 @@ function computeWindow(input) {
6531
6532
  total
6532
6533
  });
6533
6534
  }
6534
- var PREFIX_CACHE = /* @__PURE__ */ new WeakMap();
6535
+ var PREFIX_CACHE = globalSlot2("ai-matrx.design-system.virtual-window-prefix", () => /* @__PURE__ */ new WeakMap());
6535
6536
  function prefixFor(sizeAt, count) {
6536
6537
  let byCount = PREFIX_CACHE.get(sizeAt);
6537
6538
  if (!byCount) {