@gears-frontx/ui-kit 0.4.6 → 0.4.7

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 (118) hide show
  1. package/dist/chunks/{data-grid.-6P4UQGJ.css → data-grid.DSkYrsay.css} +1 -1
  2. package/dist/chunks/drag-drop.BASVe3_O.css +1 -0
  3. package/dist/chunks/hooked.js +23 -31
  4. package/dist/chunks/hooked.js.map +1 -1
  5. package/dist/chunks/is-record.js +7 -0
  6. package/dist/chunks/is-record.js.map +1 -0
  7. package/dist/chunks/messages.js +12 -1
  8. package/dist/chunks/messages.js.map +1 -1
  9. package/dist/chunks/pagination.DJ7HJSFX.css +1 -0
  10. package/dist/chunks/resolve-body-cell-props.BA5IRWq0.css +1 -0
  11. package/dist/chunks/resolve-body-cell-props.js +80 -96
  12. package/dist/chunks/resolve-body-cell-props.js.map +1 -1
  13. package/dist/chunks/row-click-utils.js +12 -0
  14. package/dist/chunks/row-click-utils.js.map +1 -0
  15. package/dist/chunks/row-number.BxFT_3yP.css +1 -0
  16. package/dist/chunks/segment.js +16 -9
  17. package/dist/chunks/segment.js.map +1 -1
  18. package/dist/chunks/storage-helpers.js +40 -0
  19. package/dist/chunks/storage-helpers.js.map +1 -0
  20. package/dist/chunks/table-helpers.js +20 -0
  21. package/dist/chunks/table-helpers.js.map +1 -0
  22. package/dist/chunks/table-tree.DMtpMddS.css +1 -0
  23. package/dist/chunks/table.biUlW2U6.css +1 -0
  24. package/dist/chunks/use-latest.js +11 -0
  25. package/dist/chunks/use-latest.js.map +1 -0
  26. package/dist/components/data-grid/data-grid-types.d.ts +9 -0
  27. package/dist/components/data-grid/data-grid-types.d.ts.map +1 -1
  28. package/dist/components/data-grid/data-grid.d.ts +1 -1
  29. package/dist/components/data-grid/data-grid.d.ts.map +1 -1
  30. package/dist/components/data-grid/messages.d.ts +9 -0
  31. package/dist/components/data-grid/messages.d.ts.map +1 -1
  32. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/data-grid-export-menu-item.d.ts +6 -0
  33. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/data-grid-export-menu-item.d.ts.map +1 -0
  34. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-cells.d.ts +18 -0
  35. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-cells.d.ts.map +1 -0
  36. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-menu-items.d.ts +9 -0
  37. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-menu-items.d.ts.map +1 -0
  38. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-service.d.ts +5 -0
  39. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-service.d.ts.map +1 -0
  40. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-types.d.ts +77 -0
  41. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-types.d.ts.map +1 -0
  42. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/csv-formatter.d.ts +3 -0
  43. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/csv-formatter.d.ts.map +1 -0
  44. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/excel-formatter.d.ts +4 -0
  45. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/excel-formatter.d.ts.map +1 -0
  46. package/dist/components/data-grid/plugins/actions-menu/public.d.ts +2 -0
  47. package/dist/components/data-grid/plugins/actions-menu/public.d.ts.map +1 -1
  48. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-body-cell.d.ts +3 -0
  49. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-body-cell.d.ts.map +1 -0
  50. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-content.d.ts +7 -0
  51. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-content.d.ts.map +1 -0
  52. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-row.d.ts +8 -0
  53. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-row.d.ts.map +1 -0
  54. package/dist/components/data-grid/plugins/drag-drop/drag-data.d.ts +4 -0
  55. package/dist/components/data-grid/plugins/drag-drop/drag-data.d.ts.map +1 -0
  56. package/dist/components/data-grid/plugins/drag-drop/drag-drop-plugin.d.ts +18 -0
  57. package/dist/components/data-grid/plugins/drag-drop/drag-drop-plugin.d.ts.map +1 -0
  58. package/dist/components/data-grid/plugins/drag-drop/drag-drop-types.d.ts +60 -0
  59. package/dist/components/data-grid/plugins/drag-drop/drag-drop-types.d.ts.map +1 -0
  60. package/dist/components/data-grid/plugins/drag-drop/drag-preview.d.ts +2 -0
  61. package/dist/components/data-grid/plugins/drag-drop/drag-preview.d.ts.map +1 -0
  62. package/dist/components/data-grid/plugins/drag-drop/public.d.ts +3 -0
  63. package/dist/components/data-grid/plugins/drag-drop/public.d.ts.map +1 -0
  64. package/dist/components/data-grid/plugins/pagination/components/data-grid-pagination.d.ts.map +1 -1
  65. package/dist/components/data-grid/plugins/pagination/components/pager.d.ts +6 -0
  66. package/dist/components/data-grid/plugins/pagination/components/pager.d.ts.map +1 -1
  67. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-body-cell-content.d.ts +9 -0
  68. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-body-cell-content.d.ts.map +1 -0
  69. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-expand.d.ts +3 -0
  70. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-expand.d.ts.map +1 -0
  71. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-row.d.ts +8 -0
  72. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-row.d.ts.map +1 -0
  73. package/dist/components/data-grid/plugins/table-tree/public.d.ts +3 -0
  74. package/dist/components/data-grid/plugins/table-tree/public.d.ts.map +1 -0
  75. package/dist/components/data-grid/plugins/table-tree/table-tree-helpers.d.ts +4 -0
  76. package/dist/components/data-grid/plugins/table-tree/table-tree-helpers.d.ts.map +1 -0
  77. package/dist/components/data-grid/plugins/table-tree/table-tree-plugin.d.ts +5 -0
  78. package/dist/components/data-grid/plugins/table-tree/table-tree-plugin.d.ts.map +1 -0
  79. package/dist/components/data-grid/plugins/table-tree/table-tree-types.d.ts +33 -0
  80. package/dist/components/data-grid/plugins/table-tree/table-tree-types.d.ts.map +1 -0
  81. package/dist/components/data-grid/services/core/data-grid-label-context.d.ts +7 -0
  82. package/dist/components/data-grid/services/core/data-grid-label-context.d.ts.map +1 -0
  83. package/dist/components/data-grid/services/table/components/data-grid-table.d.ts.map +1 -1
  84. package/dist/components/pagination/pagination.d.ts +7 -4
  85. package/dist/components/pagination/pagination.d.ts.map +1 -1
  86. package/dist/data-grid/actions-menu.js +349 -33
  87. package/dist/data-grid/actions-menu.js.map +1 -1
  88. package/dist/data-grid/drag-drop.d.ts +1 -0
  89. package/dist/data-grid/drag-drop.js +261 -0
  90. package/dist/data-grid/drag-drop.js.map +1 -0
  91. package/dist/data-grid/filters.js +22 -21
  92. package/dist/data-grid/filters.js.map +1 -1
  93. package/dist/data-grid/pagination.js +152 -143
  94. package/dist/data-grid/pagination.js.map +1 -1
  95. package/dist/data-grid/row-click.js +35 -42
  96. package/dist/data-grid/row-click.js.map +1 -1
  97. package/dist/data-grid/row-number.js +6 -6
  98. package/dist/data-grid/table-tree.d.ts +1 -0
  99. package/dist/data-grid/table-tree.js +233 -0
  100. package/dist/data-grid/table-tree.js.map +1 -0
  101. package/dist/data-grid.js +508 -536
  102. package/dist/data-grid.js.map +1 -1
  103. package/dist/docs/data-grid.md +280 -7
  104. package/dist/docs/pagination.md +14 -0
  105. package/dist/docs/table.md +10 -1
  106. package/dist/index.d.ts +2 -0
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.js +375 -370
  109. package/dist/index.js.map +1 -1
  110. package/dist/pagination.js +23 -23
  111. package/dist/pagination.js.map +1 -1
  112. package/dist/table.js +88 -88
  113. package/llms.txt +6 -3
  114. package/package.json +10 -1
  115. package/dist/chunks/pagination.CKDEuWt6.css +0 -1
  116. package/dist/chunks/resolve-body-cell-props.DGczzk1U.css +0 -1
  117. package/dist/chunks/row-number.C7fNu9Bw.css +0 -1
  118. package/dist/chunks/table.Dmz7LEk7.css +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"segment.js","sources":["../../src/components/data-grid/components/segment.tsx"],"sourcesContent":["import { ToggleGroup, type ToggleGroupProps } from '../../toggle-group/public.js';\n\nexport interface SegmentProps\n extends Omit<ToggleGroupProps, 'value' | 'defaultValue' | 'onValueChange' | 'multiple'> {\n /** The chosen item's value. Leave it out to let the group keep its own state. */\n value?: string;\n /** Called with the chosen value, or `undefined` when the chosen item is pressed again. */\n onValueChange?: (value: string | undefined) => void;\n}\n\n/**\n * A single-choice segmented control: `ToggleGroup` in its joined, outlined look, with its array\n * value narrowed to one. The grid reads and writes one value everywhere it uses a segmented\n * control (the page-size selector, the view switch), and an array that is\n * always zero or one long is a trap for each of those callers.\n */\nexport function Segment({ value, onValueChange, ...props }: SegmentProps) {\n return (\n <ToggleGroup\n spacing={0}\n variant=\"outline\"\n {...props}\n value={value === undefined ? undefined : [value]}\n onValueChange={(next) => onValueChange?.(next[0])}\n />\n );\n}\n"],"names":["Segment","value","onValueChange","props","jsx","ToggleGroup","next"],"mappings":";;AAgBO,SAASA,EAAQ,EAAE,OAAAC,GAAO,eAAAC,GAAe,GAAGC,KAAuB;AACxE,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAS;AAAA,MACT,SAAQ;AAAA,MACP,GAAGF;AAAA,MACJ,OAAOF,MAAU,SAAY,SAAY,CAACA,CAAK;AAAA,MAC/C,eAAe,CAACK,MAASJ,KAAA,gBAAAA,EAAgBI,EAAK,CAAC;AAAA,IAAC;AAAA,EAAA;AAGtD;"}
1
+ {"version":3,"file":"segment.js","sources":["../../src/components/data-grid/services/core/data-grid-label-context.ts","../../src/components/data-grid/components/segment.tsx"],"sourcesContent":["import { createContext, useContext } from 'react';\n\n/*\n * The grid's accessible name, as passed to `DataGrid`'s `label` prop. The two components that\n * render landmarks read it: the table's scroll wrapper becomes a `region` named with the label,\n * and the pagination plugin's pager becomes a `nav` named \"<label> pagination\" (the wording lives\n * in `messages.pagination.ariaLabelFor`). A context rather than a grid store: the label is\n * render-time naming only -- nothing loads it, persists it, or writes it from a second place --\n * so carrying it from the component that owns the prop renames both landmarks on the very render\n * that changes it, with no effect and no store write in between.\n *\n * `undefined` is a value, not an absence of wiring: it is what a grid without a `label` provides,\n * and its consumers must then render exactly what they rendered before the prop existed (the pager\n * keeps its \"Pagination\" name, the table wrapper stays roleless). The context default is\n * `undefined` for the same reason.\n */\nconst DataGridLabelContext = createContext<string | undefined>(undefined);\n\nexport const DataGridLabelProvider = DataGridLabelContext.Provider;\n\n/**\n * The grid's `label` prop, or `undefined` when the grid has none or the prop is blank.\n */\nexport function useDataGridLabel(): string | undefined {\n return useContext(DataGridLabelContext);\n}\n","import { ToggleGroup, type ToggleGroupProps } from '../../toggle-group/public.js';\n\nexport interface SegmentProps\n extends Omit<ToggleGroupProps, 'value' | 'defaultValue' | 'onValueChange' | 'multiple'> {\n /** The chosen item's value. Leave it out to let the group keep its own state. */\n value?: string;\n /** Called with the chosen value, or `undefined` when the chosen item is pressed again. */\n onValueChange?: (value: string | undefined) => void;\n}\n\n/**\n * A single-choice segmented control: `ToggleGroup` in its joined, outlined look, with its array\n * value narrowed to one. The grid reads and writes one value everywhere it uses a segmented\n * control (the page-size selector, the view switch), and an array that is\n * always zero or one long is a trap for each of those callers.\n */\nexport function Segment({ value, onValueChange, ...props }: SegmentProps) {\n return (\n <ToggleGroup\n spacing={0}\n variant=\"outline\"\n {...props}\n value={value === undefined ? undefined : [value]}\n onValueChange={(next) => onValueChange?.(next[0])}\n />\n );\n}\n"],"names":["DataGridLabelContext","createContext","DataGridLabelProvider","useDataGridLabel","useContext","Segment","value","onValueChange","props","jsx","ToggleGroup","next"],"mappings":";;;AAgBA,MAAMA,IAAuBC,EAAkC,MAAS,GAE3DC,IAAwBF,EAAqB;AAKnD,SAASG,IAAuC;AACrD,SAAOC,EAAWJ,CAAoB;AACxC;ACTO,SAASK,EAAQ,EAAE,OAAAC,GAAO,eAAAC,GAAe,GAAGC,KAAuB;AACxE,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAS;AAAA,MACT,SAAQ;AAAA,MACP,GAAGF;AAAA,MACJ,OAAOF,MAAU,SAAY,SAAY,CAACA,CAAK;AAAA,MAC/C,eAAe,CAACK,MAASJ,KAAA,gBAAAA,EAAgBI,EAAK,CAAC;AAAA,IAAC;AAAA,EAAA;AAGtD;"}
@@ -0,0 +1,40 @@
1
+ import { jsx as n, Fragment as t } from "react/jsx-runtime";
2
+ import { g as s, r as d } from "./table-helpers.js";
3
+ import { u as f } from "./table-context.js";
4
+ function g({
5
+ column: e,
6
+ item: r
7
+ }) {
8
+ if (e.render)
9
+ return typeof e.render == "function" ? /* @__PURE__ */ n(t, { children: e.render(r) }) : /* @__PURE__ */ n(t, { children: e.render });
10
+ if (e.component) {
11
+ const o = e.component, i = e.key ?? e.id, a = i.includes(".") ? s(r, i) : r[i];
12
+ return /* @__PURE__ */ n(o, { item: r, column: e, value: a });
13
+ }
14
+ return /* @__PURE__ */ n(t, { children: d(e, r) });
15
+ }
16
+ function l({
17
+ record: e
18
+ }) {
19
+ const o = f().useComponent("row");
20
+ return /* @__PURE__ */ n(o, { record: e });
21
+ }
22
+ function C({
23
+ records: e
24
+ }) {
25
+ return /* @__PURE__ */ n(t, { children: e.map((r) => /* @__PURE__ */ n(l, { record: r }, r.id)) });
26
+ }
27
+ function b(e, r) {
28
+ if (typeof r == "string") {
29
+ if (!(r in e))
30
+ throw new Error(`Key "${r}" not found in item ${JSON.stringify(e)}`);
31
+ return e[r];
32
+ }
33
+ return r(e);
34
+ }
35
+ export {
36
+ C as D,
37
+ g as a,
38
+ b as g
39
+ };
40
+ //# sourceMappingURL=storage-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage-helpers.js","sources":["../../src/components/data-grid/services/table/components/data-grid-body-cell-content.tsx","../../src/components/data-grid/services/table/components/data-grid-table-record.tsx","../../src/components/data-grid/services/table/components/data-grid-table-records.tsx","../../src/components/data-grid/services/storage/storage-helpers.ts"],"sourcesContent":["import type { DataGridItem } from '../../../data-grid-types';\nimport { getNestedValue, resolveCellDisplayValue } from '../table-helpers';\nimport type { DataGridTableColumn } from '../table-types';\n\ninterface DataGridBodyCellContentProps<TItem extends DataGridItem> {\n column: DataGridTableColumn<TItem>;\n item: TItem;\n}\n\nexport function DataGridBodyCellContent<TItem extends DataGridItem>({\n column,\n item,\n}: DataGridBodyCellContentProps<TItem>) {\n // Column-specific render function takes priority\n if (column.render) {\n if (typeof column.render === 'function') {\n return <>{column.render(item)}</>;\n }\n return <>{column.render}</>;\n }\n\n // Column-specific component\n if (column.component) {\n const CellComponent = column.component;\n const key = column.key ?? column.id;\n const value = key.includes('.') ? getNestedValue(item, key) : item[key];\n return <CellComponent item={item} column={column} value={value} />;\n }\n\n // Default: resolve value from key (shared with the `title` fallback in DataGridRow)\n return <>{resolveCellDisplayValue(column, item)}</>;\n}\n","import type { DataGridItem } from '../../../data-grid-types';\nimport type { DataGridRecord } from '../../storage/storage-types';\nimport { useTableService } from '../table-context';\n\ninterface DataGridTableRecordProps<TItem extends DataGridItem> {\n record: DataGridRecord<TItem>;\n}\n\nexport function DataGridTableRecord<TItem extends DataGridItem>({\n record,\n}: DataGridTableRecordProps<TItem>) {\n const tableService = useTableService<TItem>();\n const RowComponent = tableService.useComponent<DataGridTableRecordProps<TItem>>('row');\n\n // eslint-disable-next-line react-hooks/static-components -- RowComponent comes from the grid's component registry (a store lookup), so it is the same component on every render; the rule cannot see through the lookup.\n return <RowComponent record={record} />;\n}\n","import type { DataGridItem } from '../../../data-grid-types';\nimport type { DataGridRecord } from '../../storage/storage-types';\nimport { DataGridTableRecord } from './data-grid-table-record';\n\ninterface DataGridTableRecordsProps<TItem extends DataGridItem> {\n records: DataGridRecord<TItem>[];\n}\n\nexport function DataGridTableRecords<TItem extends DataGridItem>({\n records,\n}: DataGridTableRecordsProps<TItem>) {\n return (\n <>\n {records.map((record) => (\n <DataGridTableRecord<TItem> key={record.id} record={record} />\n ))}\n </>\n );\n}\n","import type { DataGridItem } from '../../data-grid-types';\nimport type { DataGridDataKey, DataGridItemId } from './storage-types';\n\nexport function getItemKeyValue<TItem extends DataGridItem = DataGridItem>(\n item: TItem,\n key: DataGridDataKey<TItem>,\n) {\n if (typeof key === 'string') {\n if (!(key in item)) {\n throw new Error(`Key \"${key}\" not found in item ${JSON.stringify(item)}`);\n }\n return item[key] as DataGridItemId;\n }\n\n return key(item);\n}\n"],"names":["DataGridBodyCellContent","column","item","jsx","Fragment","CellComponent","key","value","getNestedValue","resolveCellDisplayValue","DataGridTableRecord","record","RowComponent","useTableService","DataGridTableRecords","records","getItemKeyValue"],"mappings":";;;AASO,SAASA,EAAoD;AAAA,EAClE,QAAAC;AAAA,EACA,MAAAC;AACF,GAAwC;AAEtC,MAAID,EAAO;AACT,WAAI,OAAOA,EAAO,UAAW,aACpB,gBAAAE,EAAAC,GAAA,EAAG,UAAAH,EAAO,OAAOC,CAAI,GAAE,IAEzB,gBAAAC,EAAAC,GAAA,EAAG,YAAO,OAAA,CAAO;AAI1B,MAAIH,EAAO,WAAW;AACpB,UAAMI,IAAgBJ,EAAO,WACvBK,IAAML,EAAO,OAAOA,EAAO,IAC3BM,IAAQD,EAAI,SAAS,GAAG,IAAIE,EAAeN,GAAMI,CAAG,IAAIJ,EAAKI,CAAG;AACtE,WAAO,gBAAAH,EAACE,GAAA,EAAc,MAAAH,GAAY,QAAAD,GAAgB,OAAAM,EAAA,CAAc;AAAA,EAClE;AAGA,SAAO,gBAAAJ,EAAAC,GAAA,EAAG,UAAAK,EAAwBR,GAAQC,CAAI,GAAE;AAClD;ACvBO,SAASQ,EAAgD;AAAA,EAC9D,QAAAC;AACF,GAAoC;AAElC,QAAMC,IADeC,EAAA,EACa,aAA8C,KAAK;AAGrF,SAAO,gBAAAV,EAACS,KAAa,QAAAD,GAAgB;AACvC;ACRO,SAASG,EAAiD;AAAA,EAC/D,SAAAC;AACF,GAAqC;AACnC,SACE,gBAAAZ,EAAAC,GAAA,EACG,UAAAW,EAAQ,IAAI,CAACJ,MACZ,gBAAAR,EAACO,GAAA,EAA2C,QAAAC,EAAA,GAAXA,EAAO,EAAoB,CAC7D,GACH;AAEJ;ACfO,SAASK,EACdd,GACAI,GACA;AACA,MAAI,OAAOA,KAAQ,UAAU;AAC3B,QAAI,EAAEA,KAAOJ;AACX,YAAM,IAAI,MAAM,QAAQI,CAAG,uBAAuB,KAAK,UAAUJ,CAAI,CAAC,EAAE;AAE1E,WAAOA,EAAKI,CAAG;AAAA,EACjB;AAEA,SAAOA,EAAIJ,CAAI;AACjB;"}
@@ -0,0 +1,20 @@
1
+ function o(e) {
2
+ return typeof e == "function" ? e() : e;
3
+ }
4
+ function i(e, n) {
5
+ return n.split(".").reduce((r, t) => {
6
+ if (r != null && typeof r == "object")
7
+ return r[t];
8
+ }, e);
9
+ }
10
+ function u(e, n) {
11
+ if (e.render || e.component) return;
12
+ const r = e.key ?? e.id, t = r.includes(".") ? i(n, r) : n[r];
13
+ return e.formatter ? e.formatter(t) : t != null ? String(t) : "";
14
+ }
15
+ export {
16
+ o as a,
17
+ i as g,
18
+ u as r
19
+ };
20
+ //# sourceMappingURL=table-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-helpers.js","sources":["../../src/components/data-grid/services/table/table-helpers.ts"],"sourcesContent":["import type { DataGridItem } from '../../data-grid-types';\nimport type { DataGridTableColumn } from './table-types';\n\nexport function resolveLabel(label: string | (() => string)): string {\n return typeof label === 'function' ? label() : label;\n}\n\nexport function getNestedValue(obj: Record<string, unknown>, path: string): unknown {\n return path.split('.').reduce<unknown>((acc, key) => {\n if (acc != null && typeof acc === 'object') {\n return (acc as Record<string, unknown>)[key];\n }\n return undefined;\n }, obj);\n}\n\n/**\n * Resolves a body cell's plain-string display value — the same value the default cell renderer\n * shows — or `undefined` when the column uses `component`/`render` (output the kit cannot safely\n * stringify, e.g. for an auto-set `title` fallback). Shared by `DataGridBodyCellContent` (the\n * renderer) and `resolveBodyCellProps` (the `title` fallback for `cellOverflow: 'nowrap'`) so the\n * two never drift on what counts as \"plain string\" content.\n */\nexport function resolveCellDisplayValue<TItem extends DataGridItem>(\n column: DataGridTableColumn<TItem>,\n item: TItem,\n): string | undefined {\n if (column.render || column.component) return undefined;\n\n const key = column.key ?? column.id;\n const rawValue = key.includes('.') ? getNestedValue(item, key) : item[key];\n\n if (column.formatter) return column.formatter(rawValue);\n\n return rawValue != null ? String(rawValue) : '';\n}\n"],"names":["resolveLabel","label","getNestedValue","obj","path","acc","key","resolveCellDisplayValue","column","item","rawValue"],"mappings":"AAGO,SAASA,EAAaC,GAAwC;AACnE,SAAO,OAAOA,KAAU,aAAaA,EAAA,IAAUA;AACjD;AAEO,SAASC,EAAeC,GAA8BC,GAAuB;AAClF,SAAOA,EAAK,MAAM,GAAG,EAAE,OAAgB,CAACC,GAAKC,MAAQ;AACnD,QAAID,KAAO,QAAQ,OAAOA,KAAQ;AAChC,aAAQA,EAAgCC,CAAG;AAAA,EAG/C,GAAGH,CAAG;AACR;AASO,SAASI,EACdC,GACAC,GACoB;AACpB,MAAID,EAAO,UAAUA,EAAO,UAAW;AAEvC,QAAMF,IAAME,EAAO,OAAOA,EAAO,IAC3BE,IAAWJ,EAAI,SAAS,GAAG,IAAIJ,EAAeO,GAAMH,CAAG,IAAIG,EAAKH,CAAG;AAEzE,SAAIE,EAAO,YAAkBA,EAAO,UAAUE,CAAQ,IAE/CA,KAAY,OAAO,OAAOA,CAAQ,IAAI;AAC/C;"}
@@ -0,0 +1 @@
1
+ ._treeCellContent_p1inr_1{display:flex;align-items:center}._expand_p1inr_6{display:flex;align-items:center;flex-shrink:0;margin-inline-end:var(--space-1)}._expandIcon_p1inr_13{transition:transform var(--duration-micro) var(--ease-standard)}._expandIconCollapsed_p1inr_18{transform:rotate(-90deg)}._expandIconCollapsed_p1inr_18:dir(rtl){transform:rotate(90deg)}._label_p1inr_35{flex:1 1 auto;min-inline-size:0}[data-overflow=nowrap] ._label_p1inr_35{overflow:hidden;text-overflow:ellipsis}._indentSpacer_p1inr_50{--_data-grid-table-tree-indent: var(--space-6);flex-shrink:0}._expand_p1inr_6 ._toggle_p1inr_65{block-size:var(--text-meta-line-height);inline-size:var(--text-meta-line-height);border-radius:var(--radius-sm)}._expand_p1inr_6 ._toggle_p1inr_65:after{content:"";position:absolute;inset:calc(-1 * (var(--space-1) + var(--border-width)))}[data-overflow=nowrap]>span:has(>._treeCellContent_p1inr_1){overflow:clip;overflow-clip-margin:var(--space-1)}._expand_p1inr_6 ._toggle_p1inr_65:focus-visible{outline-offset:calc(var(--border-width-focus) * -1)}._clickableRow_p1inr_120{cursor:pointer}._clickableRow_p1inr_120:focus-visible{outline:none}:where(._clickableRow_p1inr_120:focus-visible)>td{position:relative}._clickableRow_p1inr_120:focus-visible>*:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-block:var(--border-width-focus) solid var(--ring);pointer-events:none}._clickableRow_p1inr_120:focus-visible>:first-child:after{border-inline-start:var(--border-width-focus) solid var(--ring)}._clickableRow_p1inr_120:focus-visible>:last-child:after{border-inline-end:var(--border-width-focus) solid var(--ring)}@media(forced-colors:active){._clickableRow_p1inr_120:focus-visible>*:after{border-color:Highlight}}
@@ -0,0 +1 @@
1
+ ._tableContainer_qh5zk_8{position:relative;width:100%;overflow:auto}._tableContainer_qh5zk_8:focus-visible{outline:var(--border-width-focus) solid var(--ring);outline-offset:2px}@media(forced-colors:active){._tableContainer_qh5zk_8:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._table_qh5zk_8{width:100%;border-collapse:collapse;caption-side:bottom;font-size:var(--text-meta-size);line-height:var(--text-meta-line-height);font-weight:var(--text-meta-weight);letter-spacing:var(--text-meta-tracking)}._stickyHeader_qh5zk_79{border-collapse:separate;border-spacing:0}:where(._stickyHeader_qh5zk_79) ._tableHeader_qh5zk_91 ._tableHead_qh5zk_70{position:sticky;top:0;z-index:2;background-color:var(--table-header-fill, var(--card))}._tableRow_qh5zk_59{--_table-row-fill: transparent;background-color:var(--_table-row-fill);transition:color .15s ease,background-color .15s ease}._tableBody_qh5zk_147:last-child ._tableRow_qh5zk_59:last-child>*{border-bottom:0}._tableBody_qh5zk_147 ._tableRow_qh5zk_59:hover,._tableBody_qh5zk_147 ._tableRow_qh5zk_59:has([aria-expanded=true]){--_table-row-fill: var(--table-row-hover-fill, var(--card-hover))}._tableBody_qh5zk_147 ._tableRow_qh5zk_59[data-state=selected]{--_table-row-fill: var(--selection-subtle)}._tableBody_qh5zk_147 ._tableRow_qh5zk_59[data-state=stale]{--_table-row-fill: var(--warning-soft)}._tableBody_qh5zk_147 ._tableRow_qh5zk_59[data-state=restricted]{--_table-row-fill: var(--danger-soft)}._tableHead_qh5zk_70{box-sizing:border-box;position:relative;height:var(--control-height-md);padding:0 var(--space-4);border-bottom:var(--border-width) solid var(--border);text-align:start;vertical-align:middle;font-family:var(--font-mono);font-size:var(--text-mono-size);line-height:var(--text-mono-line-height);font-weight:var(--text-mono-weight);letter-spacing:var(--text-mono-tracking);text-transform:uppercase;white-space:nowrap;color:var(--subtle-foreground)}._tableHead_qh5zk_70:has([role=checkbox]){padding-inline-end:0}._columnResizer_qh5zk_285{position:absolute;top:0;bottom:0;z-index:1;padding:0;border:0;background:none;cursor:col-resize;touch-action:none;outline:none}._columnResizer_qh5zk_285:after{content:"";position:absolute;top:0;bottom:0;left:50%;width:var(--border-width);translate:-50% 0;background-color:var(--border);transition:width var(--duration-micro) var(--ease-standard),background-color var(--duration-micro) var(--ease-standard)}._columnResizer_qh5zk_285:hover:after,._columnResizer_qh5zk_285:focus-visible:after,._columnResizer_qh5zk_285:active:after{width:var(--border-width-focus);background-color:var(--primary)}@media(forced-colors:active){._columnResizer_qh5zk_285:focus-visible:after{background-color:Highlight}}._tableCell_qh5zk_127{box-sizing:border-box;padding:var(--space-3) var(--space-4);height:var(--control-height-lg);border-bottom:var(--border-width) solid var(--border);vertical-align:middle;white-space:nowrap}._tableCell_qh5zk_127:has([role=checkbox]){padding-inline-end:0}._pinned_qh5zk_403{position:sticky;z-index:1;background-color:var(--table-pinned-fill, var(--card));background-image:linear-gradient(var(--_table-row-fill, transparent),var(--_table-row-fill, transparent))}._tableHead_qh5zk_70._pinned_qh5zk_403{z-index:2}:where(._stickyHeader_qh5zk_79) ._tableHeader_qh5zk_91 ._tableHead_qh5zk_70._pinned_qh5zk_403{z-index:3}._variantCollection_qh5zk_94 ._tableHead_qh5zk_70._pinned_qh5zk_403{z-index:3}._variantCollection_qh5zk_94{table-layout:fixed;min-width:960px}._variantCollection_qh5zk_94 ._tableHead_qh5zk_70{position:sticky;top:0;z-index:2;height:var(--control-height-lg);padding:0 var(--space-3);background-color:var(--card);color:var(--muted-foreground);line-height:16px}._variantCollection_qh5zk_94 ._tableBody_qh5zk_147 ._tableRow_qh5zk_59{height:4rem}._variantCollection_qh5zk_94 ._tableCell_qh5zk_127{height:auto;padding:var(--space-3) var(--space-2);font-size:var(--text-meta-size);line-height:var(--text-meta-line-height);white-space:normal}._variantCollection_qh5zk_94 ._tableBody_qh5zk_147 ._tableRow_qh5zk_59:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--border-width-focus) var(--primary)}._variantCollection_qh5zk_94 ._tableBody_qh5zk_147 ._tableRow_qh5zk_59:focus-visible>._pinned_qh5zk_403:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border-block:var(--border-width-focus) solid var(--primary)}._variantCollection_qh5zk_94 ._tableBody_qh5zk_147 ._tableRow_qh5zk_59:focus-visible>._pinned_qh5zk_403:first-child:after{border-inline-start:var(--border-width-focus) solid var(--primary)}._variantCollection_qh5zk_94 ._tableBody_qh5zk_147 ._tableRow_qh5zk_59:focus-visible>._pinned_qh5zk_403:last-child:after{border-inline-end:var(--border-width-focus) solid var(--primary)}._variantCollection_qh5zk_94 ._tableBody_qh5zk_147 ._tableRow_qh5zk_59[tabindex]{cursor:pointer;transition:background-color var(--duration-micro) var(--ease-standard)}._variantCollection_qh5zk_94 ._tableBody_qh5zk_147 ._tableRow_qh5zk_59[data-pending]{--_table-row-fill: var(--muted);cursor:progress}._densityCompact_qh5zk_537 ._tableHead_qh5zk_70{height:var(--control-height-sm)}._densityCompact_qh5zk_537 ._tableCell_qh5zk_127{padding-block:var(--space-2);height:auto}._tableCaption_qh5zk_546{margin-top:var(--space-4);font-size:var(--text-body-size);line-height:var(--text-body-line-height);color:var(--muted-foreground)}._tableFooter_qh5zk_568{font-weight:var(--text-label-weight)}._tableFooter_qh5zk_568 ._tableRow_qh5zk_59{--_table-row-fill: var(--muted)}._tableFooter_qh5zk_568 ._tableRow_qh5zk_59:last-child>*{border-bottom:0}
@@ -0,0 +1,11 @@
1
+ import { useRef as r, useEffect as f } from "react";
2
+ function n(t) {
3
+ const e = r(t);
4
+ return f(() => {
5
+ e.current = t;
6
+ }, [t]), e;
7
+ }
8
+ export {
9
+ n as u
10
+ };
11
+ //# sourceMappingURL=use-latest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-latest.js","sources":["../../src/components/data-grid/utils/use-latest.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\n/** A ref that always holds the value of the latest committed render. */\nexport function useLatest<T>(value: T) {\n const ref = useRef<T>(value);\n\n // Written in an effect, not during render: React does not recommend mutating a ref while\n // rendering. https://react.dev/reference/react/useRef#caveats\n useEffect(() => {\n ref.current = value;\n }, [value]);\n\n return ref;\n}\n"],"names":["useLatest","value","ref","useRef","useEffect"],"mappings":";AAGO,SAASA,EAAaC,GAAU;AACrC,QAAMC,IAAMC,EAAUF,CAAK;AAI3B,SAAAG,EAAU,MAAM;AACd,IAAAF,EAAI,UAAUD;AAAA,EAChB,GAAG,CAACA,CAAK,CAAC,GAEHC;AACT;"}
@@ -115,6 +115,15 @@ export interface DataGridProps<TItem extends DataGridItem> extends Pick<DataGrid
115
115
  * ```
116
116
  */
117
117
  implicitFilterKeys?: string[];
118
+ /**
119
+ * Accessible name for the grid's landmarks, for a page that renders more than one grid: the
120
+ * table's scroll wrapper becomes a `region` named with it, and the pagination plugin's pager
121
+ * becomes a `nav` named "<label> pagination", so the grids are told apart by name. Without it
122
+ * the pager is the one `nav` named "Pagination" and the wrapper stays roleless. Give every
123
+ * grid on such a page a distinct label; two grids sharing one still collide. A blank label
124
+ * reads as absent. It is a spoken name, not the storage key `name`, and it is never persisted.
125
+ */
126
+ label?: string;
118
127
  children?: ReactNode;
119
128
  }
120
129
  export interface InternalContext<TItem extends DataGridItem> {
@@ -1 +1 @@
1
- {"version":3,"file":"data-grid-types.d.ts","sourceRoot":"","sources":["../../../src/components/data-grid/data-grid-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,cAAc,EACf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACvE,O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AC/B,KAAK,SAAS,YAAY,EAC1B,QAAQ,SAAS,cAAc,CAAC,KAAK,CAAC,EAAE,GAAG,cAAc,CAAC,KAAK,CAAC,EAAE,CAClE,SAAQ,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IACvD,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,SAAS,CAAC,GACnD,CAAC,CAAC,KAAK,SAAS,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,EACtC,IAAI,EAAE,KAAK,KACR,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACxE,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;CAC9C"}
@@ -1,3 +1,3 @@
1
1
  import { DataGridItem, DataGridProps } from './data-grid-types';
2
- export declare function DataGrid<TItem extends DataGridItem = DataGridItem>({ name, load, columns, children, persistent, persistentColumnVisibility, tableLayout, stickyHeader, loading, implicitFilterKeys, }: DataGridProps<TItem>): import("react").JSX.Element;
2
+ export declare function DataGrid<TItem extends DataGridItem = DataGridItem>({ name, load, columns, children, persistent, persistentColumnVisibility, tableLayout, stickyHeader, loading, implicitFilterKeys, label, }: DataGridProps<TItem>): import("react").JSX.Element;
3
3
  //# sourceMappingURL=data-grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-grid.d.ts","sourceRoot":"","sources":["../../../src/components/data-grid/data-grid.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAOrE,wBAAgB,QAAQ,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EAAE,EAClE,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,UAAU,EACV,0BAA0B,EAC1B,WAAqB,EACrB,YAAoB,EACpB,OAAe,EACf,kBAAkB,GACnB,EAAE,aAAa,CAAC,KAAK,CAAC,+BA+CtB"}
1
+ {"version":3,"file":"data-grid.d.ts","sourceRoot":"","sources":["../../../src/components/data-grid/data-grid.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAQrE,wBAAgB,QAAQ,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EAAE,EAClE,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,UAAU,EACV,0BAA0B,EAC1B,WAAqB,EACrB,YAAoB,EACpB,OAAe,EACf,kBAAkB,EAClB,KAAK,GACN,EAAE,aAAa,CAAC,KAAK,CAAC,+BAsDtB"}
@@ -30,6 +30,11 @@ export declare const messages: {
30
30
  actionsMenu: {
31
31
  actions: string;
32
32
  };
33
+ exportMenuItem: {
34
+ defaultFilename: string;
35
+ defaultSheetName: string;
36
+ exportAs: (type: string) => string;
37
+ };
33
38
  tableConfiguration: {
34
39
  header: string;
35
40
  configureColumns: string;
@@ -45,6 +50,7 @@ export declare const messages: {
45
50
  };
46
51
  pagination: {
47
52
  ariaLabel: string;
53
+ ariaLabelFor: (label: string) => string;
48
54
  limitSelectorAriaLabel: string;
49
55
  previousPage: string;
50
56
  nextPage: string;
@@ -61,6 +67,9 @@ export declare const messages: {
61
67
  close: string;
62
68
  closeDialog: string;
63
69
  };
70
+ dragDrop: {
71
+ dragHandle: string;
72
+ };
64
73
  tree: {
65
74
  noItems: string;
66
75
  collapse: string;
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/components/data-grid/messages.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;qCAqBY,MAAM;;;;;;;;;;;;;;;;;;+BAkBZ,MAAM;8BACP,MAAM;2BAET,MAAM;6BACJ,MAAM;;;;;;;;yBASV,MAAM;yBACN,MAAM,cAAc,MAAM,SAAS,MAAM;;;;;;;;;;;;;;;;;CAkB7D,CAAC"}
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/components/data-grid/messages.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;qCAqBY,MAAM;;;;;;;;;;;;;;yBAclB,MAAM;;;;;;;;;+BASA,MAAM;8BACP,MAAM;2BAET,MAAM;6BACJ,MAAM;;;;;8BAQL,MAAM;;;;yBAIX,MAAM;yBACN,MAAM,cAAc,MAAM,SAAS,MAAM;;;;;;;;;;;;;;;;;;;;CAqB7D,CAAC"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export interface DataGridExportMenuItemProps {
3
+ params?: Record<string, unknown>;
4
+ }
5
+ export declare function DataGridExportMenuItem({ params: rawParams }: DataGridExportMenuItemProps): import("react").JSX.Element;
6
+ //# sourceMappingURL=data-grid-export-menu-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-grid-export-menu-item.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/data-grid-export-menu-item.tsx"],"names":[],"mappings":";AAoBA,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAqBD,wBAAgB,sBAAsB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,2BAA2B,+BA2DxF"}
@@ -0,0 +1,18 @@
1
+ import { DataGridItem } from '../../../../data-grid-types';
2
+ import { DataGridPluginContext } from '../../../../services/plugins/plugins-types';
3
+ import { DataGridExportColumn, DataGridExportOptions } from './export-types';
4
+ export declare function getCellValue<Item extends DataGridItem = DataGridItem>(item: Item, column: DataGridExportColumn): {
5
+ raw: unknown;
6
+ formatted: string;
7
+ };
8
+ export declare function applyCellTextTransformation<Item extends DataGridItem = DataGridItem>({ item, column, cellValue, transformCellText, gridContext, }: {
9
+ item: Item;
10
+ column: DataGridExportColumn;
11
+ cellValue: {
12
+ raw: unknown;
13
+ formatted: string;
14
+ };
15
+ transformCellText: DataGridExportOptions<Item>['transformCellText'];
16
+ gridContext: DataGridPluginContext<Item>;
17
+ }): string;
18
+ //# sourceMappingURL=export-cells.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export-cells.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-cells.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAKlF,wBAAgB,YAAY,CAAC,IAAI,SAAS,YAAY,GAAG,YAAY,EACnE,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,oBAAoB,GAC3B;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAWrC;AAED,wBAAgB,2BAA2B,CAAC,IAAI,SAAS,YAAY,GAAG,YAAY,EAAE,EACpF,IAAI,EACJ,MAAM,EACN,SAAS,EACT,iBAAiB,EACjB,WAAW,GACZ,EAAE;IACD,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,oBAAoB,CAAC;IAC7B,SAAS,EAAE;QAAE,GAAG,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/C,iBAAiB,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAC,mBAAmB,CAAC,CAAC;IACpE,WAAW,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAC;CAC1C,GAAG,MAAM,CAeT"}
@@ -0,0 +1,9 @@
1
+ import { DataGridItem } from '../../../../data-grid-types.js';
2
+ import { DataGridActionsMenuItemOption } from '../../actions-menu-types.js';
3
+ import { DataGridExportOptions } from './export-types.js';
4
+ /**
5
+ * The items that export the grid's rows: Excel, when `loadExcelJs` is given, and CSV. Both read the
6
+ * whole data set, not just the page on screen.
7
+ */
8
+ export declare function exportMenuItems<Item extends DataGridItem = DataGridItem>(config?: Partial<DataGridExportOptions<Item>>): DataGridActionsMenuItemOption[];
9
+ //# sourceMappingURL=export-menu-items.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export-menu-items.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-menu-items.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAEjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,SAAS,YAAY,GAAG,YAAY,EACtE,MAAM,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,GAC5C,6BAA6B,EAAE,CAUjC"}
@@ -0,0 +1,5 @@
1
+ import { DataGridItem } from '../../../../data-grid-types';
2
+ import { DataGridExportService } from './export-types';
3
+ export declare function createExportService<Item extends DataGridItem = DataGridItem>(): DataGridExportService<Item>;
4
+ export declare function generateFilename(filename: string | (() => string) | undefined, extension: string): string;
5
+ //# sourceMappingURL=export-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export-service.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAShE,OAAO,KAAK,EAGV,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AAIxB,wBAAgB,mBAAmB,CACjC,IAAI,SAAS,YAAY,GAAG,YAAY,KACrC,qBAAqB,CAAC,IAAI,CAAC,CAgQ/B;AAUD,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,SAAS,EAC7C,SAAS,EAAE,MAAM,GAChB,MAAM,CAWR"}
@@ -0,0 +1,77 @@
1
+ import { DataGridItem } from '../../../../data-grid-types.js';
2
+ import { DataGridPluginContext } from '../../../../services/plugins/plugins-types.js';
3
+ export type DataGridExportFormat = 'csv' | 'xlsx';
4
+ export type DataGridExportCellTextTransformer<Item extends DataGridItem> = (cell: {
5
+ value: unknown;
6
+ formattedValue: string;
7
+ row: Item;
8
+ }, gridContext: DataGridPluginContext<Item>) => string;
9
+ export type DataGridExportTransformCellTextMap<Item extends DataGridItem> = Record<string, DataGridExportCellTextTransformer<Item>>;
10
+ /**
11
+ * The part of an exceljs cell the export writes. A cell's `value` takes more shapes than the
12
+ * export ever gives it, so it is `unknown` here, which an exceljs `Cell` satisfies.
13
+ */
14
+ export interface DataGridExcelJsCell {
15
+ value: unknown;
16
+ }
17
+ export interface DataGridExcelJsRow {
18
+ getCell: (column: number) => DataGridExcelJsCell;
19
+ }
20
+ export interface DataGridExcelJsWorksheet {
21
+ getRow: (row: number) => DataGridExcelJsRow;
22
+ }
23
+ export interface DataGridExcelJsWorkbook {
24
+ addWorksheet: (name?: string) => DataGridExcelJsWorksheet;
25
+ xlsx: {
26
+ writeBuffer: () => Promise<ArrayBuffer>;
27
+ };
28
+ }
29
+ /** The part of the `exceljs` package the export uses: the `Workbook` class. */
30
+ export interface DataGridExcelJsApi {
31
+ Workbook: new () => DataGridExcelJsWorkbook;
32
+ }
33
+ /**
34
+ * What `import('exceljs')` resolves to, spelled out here so that the kit's types never name
35
+ * `exceljs`, which a consumer that does not export to Excel does not have installed. Depending on
36
+ * the bundler the package arrives as the module itself or under `default`; both are accepted.
37
+ */
38
+ export type DataGridExcelJsModule = DataGridExcelJsApi | {
39
+ default: DataGridExcelJsApi;
40
+ };
41
+ export interface DataGridExportOptions<Item extends DataGridItem = DataGridItem> {
42
+ format?: DataGridExportFormat;
43
+ filename?: string | (() => string);
44
+ transformCellText?: DataGridExportTransformCellTextMap<Item>;
45
+ onError?: (error: Error) => void;
46
+ includeHeaders?: boolean;
47
+ delimiter?: string;
48
+ encoding?: string;
49
+ sheetName?: string;
50
+ /**
51
+ * Loads the `exceljs` package, which the kit does not import itself: a bundler resolves a
52
+ * dynamic import when it builds the kit's consumer, and a consumer without `exceljs` would fail
53
+ * to build. Pass `() => import('exceljs')`, with `exceljs` 4.4.0 installed. Without it
54
+ * `exportMenuItems` offers CSV only.
55
+ */
56
+ loadExcelJs?: () => Promise<DataGridExcelJsModule>;
57
+ }
58
+ export interface DataGridExportColumn {
59
+ id: string;
60
+ label: string;
61
+ key?: string;
62
+ formatter?: (value: unknown) => string;
63
+ }
64
+ export interface DataGridExportService<Item extends DataGridItem> {
65
+ exportToCSV: (data: Item[], columns: DataGridExportColumn[], options: DataGridExportOptions<Item>, gridContext: DataGridPluginContext<Item>) => Promise<void>;
66
+ exportToExcel: (data: Item[], columns: DataGridExportColumn[], options: DataGridExportOptions<Item>, gridContext: DataGridPluginContext<Item>) => Promise<void>;
67
+ downloadFile: (content: string | Blob, filename: string, mimeType: string) => void;
68
+ getAllData: (gridContext: DataGridPluginContext<Item>) => Promise<Item[]>;
69
+ }
70
+ export interface DataGridExportFormatterParams<Item extends DataGridItem> {
71
+ data: Item[];
72
+ columns: DataGridExportColumn[];
73
+ options: DataGridExportOptions<Item>;
74
+ gridContext: DataGridPluginContext<Item>;
75
+ }
76
+ export type DataGridExportFormatter = <Item extends DataGridItem>(context: DataGridExportFormatterParams<Item>) => Promise<string | Blob>;
77
+ //# sourceMappingURL=export-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export-types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAE3F,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,MAAM,CAAC;AAElD,MAAM,MAAM,iCAAiC,CAAC,IAAI,SAAS,YAAY,IAAI,CACzE,IAAI,EAAE;IACJ,KAAK,EAAE,OAAO,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,IAAI,CAAC;CACX,EACD,WAAW,EAAE,qBAAqB,CAAC,IAAI,CAAC,KACrC,MAAM,CAAC;AAEZ,MAAM,MAAM,kCAAkC,CAAC,IAAI,SAAS,YAAY,IAAI,MAAM,CAChF,MAAM,EACN,iCAAiC,CAAC,IAAI,CAAC,CACxC,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,mBAAmB,CAAC;CAClD;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,kBAAkB,CAAC;CAC7C;AAED,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,wBAAwB,CAAC;IAC1D,IAAI,EAAE;QAAE,WAAW,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAA;KAAE,CAAC;CACnD;AAED,+EAA+E;AAC/E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,UAAU,uBAAuB,CAAC;CAC7C;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAA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IAAI,CAAC,CAAC;IAEnB,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnF,UAAU,EAAE,CAAC,WAAW,EAAE,qBAAqB,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;CAC3E;AAED,MAAM,WAAW,6BAA6B,CAAC,IAAI,SAAS,YAAY;IACtE,IAAI,EAAE,IAAI,EAAE,CAAC;IACb,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,OAAO,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,WAAW,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,MAAM,MAAM,uBAAuB,GAAG,CAAC,IAAI,SAAS,YAAY,EAC9D,OAAO,EAAE,6BAA6B,CAAC,IAAI,CAAC,KACzC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { DataGridExportFormatter } from '../export-types';
2
+ export declare const csvFormatter: DataGridExportFormatter;
3
+ //# sourceMappingURL=csv-formatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csv-formatter.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/csv-formatter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAiC,MAAM,iBAAiB,CAAC;AAE9F,eAAO,MAAM,YAAY,EAAE,uBAoC1B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { DataGridExportFormatter } from '../export-types';
2
+ export declare const excelFormatter: DataGridExportFormatter;
3
+ export declare function processExcelValue(rawValue: unknown, transformedValue: string): string | number | boolean | Date;
4
+ //# sourceMappingURL=excel-formatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"excel-formatter.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/excel-formatter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAGV,uBAAuB,EAExB,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,cAAc,EAAE,uBAuD5B,CAAC;AAgBF,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,OAAO,EACjB,gBAAgB,EAAE,MAAM,GACvB,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CA0ClC"}
@@ -1,3 +1,5 @@
1
1
  export { DataGridActionsMenuPlugin } from './actions-menu-plugin.js';
2
2
  export type { DataGridActionsMenuPluginProps, DataGridActionsMenuPluginApi, DataGridActionsMenuItemOption, } from './actions-menu-types.js';
3
+ export { exportMenuItems } from './menu-items/export-menu-items/export-menu-items.js';
4
+ export type { DataGridExcelJsModule, DataGridExportOptions, } from './menu-items/export-menu-items/export-types.js';
3
5
  //# sourceMappingURL=public.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/actions-menu/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,YAAY,EACV,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/actions-menu/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,YAAY,EACV,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AACtF,YAAY,EACV,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,gDAAgD,CAAC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare function DataGridDragDropBodyCell(): import("react").JSX.Element;
3
+ //# sourceMappingURL=data-grid-drag-drop-body-cell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-grid-drag-drop-body-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-body-cell.tsx"],"names":[],"mappings":";AAUA,wBAAgB,wBAAwB,gCAkBvC"}
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ interface DataGridDragDropContentProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare function DataGridDragDropContent({ children }: DataGridDragDropContentProps): import("react").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=data-grid-drag-drop-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-grid-drag-drop-content.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-content.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,UAAU,4BAA4B;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,EAAE,4BAA4B,+BA0EjF"}
@@ -0,0 +1,8 @@
1
+ import { DataGridItem } from '../../../data-grid-types';
2
+ import { DataGridRecord } from '../../../services/storage/storage-types';
3
+ interface DataGridDragDropRowProps<TItem extends DataGridItem> {
4
+ record: DataGridRecord<TItem>;
5
+ }
6
+ export declare function DataGridDragDropRow<TItem extends DataGridItem>({ record, }: DataGridDragDropRowProps<TItem>): import("react").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=data-grid-drag-drop-row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-grid-drag-drop-row.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-row.tsx"],"names":[],"mappings":";AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAW9E,UAAU,wBAAwB,CAAC,KAAK,SAAS,YAAY;IAC3D,MAAM,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;CAC/B;AAED,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,YAAY,EAAE,EAC9D,MAAM,GACP,EAAE,wBAAwB,CAAC,KAAK,CAAC,+BAmHjC"}
@@ -0,0 +1,4 @@
1
+ import { DataGridRecord } from '../../services/storage/storage-types';
2
+ /** The record a dragged row or a row used as a drop target carries, or nothing for any other data. */
3
+ export declare function readRecord(data: Record<string | symbol, unknown>): DataGridRecord | undefined;
4
+ //# sourceMappingURL=drag-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag-data.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/drag-drop/drag-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAc3F,sGAAsG;AACtG,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,GAAG,cAAc,GAAG,SAAS,CAE7F"}
@@ -0,0 +1,18 @@
1
+ import { DataGridItem } from '../../data-grid-types.js';
2
+ import { DataGridItemId, DataGridRecord } from '../../services/storage/storage-types.js';
3
+ import { DataGridDragDropPluginProps } from './drag-drop-types.js';
4
+ /**
5
+ * Creates a drag-and-drop plugin component for reordering a DataGrid's rows. It is a factory
6
+ * because the callbacks are the plugin's own configuration, not props of the component it
7
+ * returns: create it once, outside render, and render the result as a child of the grid.
8
+ */
9
+ export declare function createDataGridDragDropPlugin<TItem extends DataGridItem = DataGridItem>(config: DataGridDragDropPluginProps<TItem>): import('react').NamedExoticComponent<Record<string, never>>;
10
+ /** @internal Extracted for testability. */
11
+ export declare function executeHandleDrop<TItem extends DataGridItem>({ sourceRecord, targetRecord, onDrop, setDropLoading, clearDropLoading, }: {
12
+ sourceRecord: Pick<DataGridRecord<TItem>, 'id' | 'item'>;
13
+ targetRecord: Pick<DataGridRecord<TItem>, 'item'> | undefined;
14
+ onDrop: (item: TItem, target: TItem | null) => void | Promise<void>;
15
+ setDropLoading: (id: DataGridItemId, value: boolean) => void;
16
+ clearDropLoading: (id: DataGridItemId) => void;
17
+ }): void;
18
+ //# sourceMappingURL=drag-drop-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag-drop-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/drag-drop/drag-drop-plugin.tsx"],"names":[],"mappings":";AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAI9F,OAAO,KAAK,EAEV,2BAA2B,EAG5B,MAAM,sBAAsB,CAAC;AAE9B;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EACpF,MAAM,EAAE,2BAA2B,CAAC,KAAK,CAAC,+DA8D3C;AAED,2CAA2C;AAC3C,wBAAgB,iBAAiB,CAAC,KAAK,SAAS,YAAY,EAAE,EAC5D,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,cAAc,EACd,gBAAgB,GACjB,EAAE;IACD,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;IACzD,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IAC9D,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpE,cAAc,EAAE,CAAC,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7D,gBAAgB,EAAE,CAAC,EAAE,EAAE,cAAc,KAAK,IAAI,CAAC;CAChD,QAcA"}
@@ -0,0 +1,60 @@
1
+ import { ReactNode } from 'react';
2
+ import { StoreApi, UseBoundStore } from 'zustand';
3
+ import { DataGridItem } from '../../data-grid-types.js';
4
+ import { DataGridPluginApi } from '../../services/plugins/plugins-helpers.js';
5
+ import { DataGridPluginContext } from '../../services/plugins/plugins-types.js';
6
+ import { DataGridItemId, DataGridRecord } from '../../services/storage/storage-types.js';
7
+ /** Result passed to the drop callback containing the dragged item and drop target. */
8
+ export type DataGridDropResult<TItem extends DataGridItem> = DataGridPluginContext<TItem> & {
9
+ item: TItem;
10
+ target: TItem | null;
11
+ };
12
+ /** Callback invoked when a drag-and-drop operation completes. */
13
+ export type DataGridDropCallback<TItem extends DataGridItem> = (result: DataGridDropResult<TItem>) => void | Promise<void>;
14
+ /**
15
+ * Renders the drag preview shown under the cursor while a row is dragged.
16
+ * Receives the dragged row's item. When omitted, a faithful preview of the
17
+ * dragged row is shown by default.
18
+ */
19
+ export type DataGridDragPreviewRenderer<TItem extends DataGridItem> = (item: TItem) => ReactNode;
20
+ /** Configuration for the drag-and-drop plugin. */
21
+ export interface DataGridDragDropPluginProps<TItem extends DataGridItem = DataGridItem> {
22
+ /** Called when a row is dropped onto a target. Can return a Promise for async operations. */
23
+ onDrop: DataGridDropCallback<TItem>;
24
+ /**
25
+ * Renders a custom drag preview for the dragged row. When omitted, the plugin
26
+ * renders a faithful preview of the dragged row instead of the browser's
27
+ * default full-element snapshot.
28
+ */
29
+ renderDragPreview?: DataGridDragPreviewRenderer<TItem>;
30
+ }
31
+ /** Edge of the drop target where the indicator line is shown. */
32
+ export type DataGridDropEdge = 'top' | 'bottom';
33
+ /** Reactive drag-and-drop state tracked during a drag operation. */
34
+ export interface DataGridDragDropState {
35
+ isDragging: boolean;
36
+ draggedRecordId: DataGridItemId | undefined;
37
+ dropTargetRecordId: DataGridItemId | undefined;
38
+ dropEdge: DataGridDropEdge | undefined;
39
+ isRootDropTarget: boolean;
40
+ }
41
+ /** Tracks per-row loading state during async drop operations. */
42
+ export interface DataGridDropLoadingState {
43
+ loading: Record<DataGridItemId, boolean | undefined>;
44
+ }
45
+ /** Public API exposed by the drag-and-drop plugin. */
46
+ export interface DataGridDragDropPluginApi<TItem extends DataGridItem = DataGridItem> extends DataGridPluginApi<Record<string, never>> {
47
+ /** Custom drag-preview renderer supplied via plugin config, if any. */
48
+ renderDragPreview?: DataGridDragPreviewRenderer<TItem>;
49
+ /** Zustand store for reactive drag-and-drop state. */
50
+ useDragDropStore: UseBoundStore<StoreApi<DataGridDragDropState>>;
51
+ /** Zustand store for tracking per-row loading state during async drops. */
52
+ useDropLoadingStore: UseBoundStore<StoreApi<DataGridDropLoadingState>>;
53
+ /** Sets the loading state for a row during an async drop operation. */
54
+ setDropLoading: (id: DataGridItemId, value: boolean) => void;
55
+ /** Clears the loading state for a row after an async drop completes. */
56
+ clearDropLoading: (id: DataGridItemId) => void;
57
+ /** @internal Called by the monitor when a drop occurs. */
58
+ handleDrop: (sourceRecord: DataGridRecord<TItem>, targetRecord: DataGridRecord<TItem> | undefined) => void;
59
+ }
60
+ //# sourceMappingURL=drag-drop-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag-drop-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/drag-drop/drag-drop-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAIvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,KAAK,EAAE,qBAAqB,EA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sD;AACtD,MAAM,WAAW,yBAAyB,CACxC,KAAK,SAAS,YAAY,GAAG,YAAY,CACzC,SAAQ,iBAAiB,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAChD,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,KAAK,CAAC,CAAC;IACvD,sDAAsD;IACtD,gBAAgB,EAAE,aAAa,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,CAAC;IACjE,2EAA2E;IAC3E,mBAAmB,EAAE,aAAa,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACvE,uEAAuE;IACvE,cAAc,EAAE,CAAC,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7D,wEAAwE;IACxE,gBAAgB,EAAE,CAAC,EAAE,EAAE,cAAc,KAAK,IAAI,CAAC;IAC/C,0DAA0D;IAC1D,UAAU,EAAE,CACV,YAAY,EAAE,cAAc,CAAC,KAAK,CAAC,EACnC,YAAY,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,KAC5C,IAAI,CAAC;CACX"}
@@ -0,0 +1,2 @@
1
+ export declare function buildClonedRowPreview(row: HTMLElement, className: string): HTMLTableElement;
2
+ //# sourceMappingURL=drag-preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag-preview.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/drag-drop/drag-preview.ts"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,GAAG,gBAAgB,CAW3F"}
@@ -0,0 +1,3 @@
1
+ export { createDataGridDragDropPlugin } from './drag-drop-plugin.js';
2
+ export type { DataGridDragDropPluginApi, DataGridDragDropPluginProps, DataGridDragDropState, DataGridDragPreviewRenderer, DataGridDropCallback, DataGridDropEdge, DataGridDropLoadingState, DataGridDropResult, } from './drag-drop-types.js';
3
+ //# sourceMappingURL=public.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/plugins/drag-drop/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,YAAY,EACV,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"data-grid-pagination.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/pagination/components/data-grid-pagination.tsx"],"names":[],"mappings":";AAKA,wBAAgB,kBAAkB,gCA2BjC"}
1
+ {"version":3,"file":"data-grid-pagination.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/pagination/components/data-grid-pagination.tsx"],"names":[],"mappings":";AAMA,wBAAgB,kBAAkB,gCA6BjC"}
@@ -10,6 +10,12 @@ interface PagerProps {
10
10
  limits: number[];
11
11
  /** Hides the whole pager while everything fits on one page of the smallest size. */
12
12
  autoHide?: boolean;
13
+ /**
14
+ * The grid's `label`, when it has one: it names the pager's `nav` "<label> pagination", so two
15
+ * labelled grids on one page do not share the landmark name. Absent keeps the plain
16
+ * "Pagination" name.
17
+ */
18
+ label?: string;
13
19
  onPageChange: (page: number) => void;
14
20
  onLimitChange: (limit: number) => void;
15
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pager.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/pagination/components/pager.tsx"],"names":[],"mappings":";AAiBA,UAAU,UAAU;IAClB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,uFAAuF;IACvF,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,kDA0GhB,CAAC"}
1
+ {"version":3,"file":"pager.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/plugins/pagination/components/pager.tsx"],"names":[],"mappings":";AAiBA,UAAU,UAAU;IAClB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,uFAAuF;IACvF,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,kDA8GhB,CAAC"}