@orient-ai/aurora-ui 1.0.0-alpha.11 → 1.0.0-alpha.13

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 (212) hide show
  1. package/dist/components/BulkEdit/componnets/BulkSet/BulkSet.d.ts +7 -8
  2. package/dist/components/BulkEdit/componnets/BulkSet/BulkSet.d.ts.map +1 -1
  3. package/dist/components/BulkEdit/componnets/Grid/Grid.d.ts +0 -18
  4. package/dist/components/BulkEdit/componnets/Grid/Grid.d.ts.map +1 -1
  5. package/dist/components/BulkEdit/componnets/Grid/index.d.ts +0 -2
  6. package/dist/components/BulkEdit/componnets/Grid/index.d.ts.map +1 -1
  7. package/dist/components/BulkEdit/componnets/Grid/types.d.ts +10 -7
  8. package/dist/components/BulkEdit/componnets/Grid/types.d.ts.map +1 -1
  9. package/dist/components/BulkEdit/componnets/Input/Input.d.ts +17 -8
  10. package/dist/components/BulkEdit/componnets/Input/Input.d.ts.map +1 -1
  11. package/dist/components/BulkEdit/hooks/index.d.ts +0 -2
  12. package/dist/components/BulkEdit/hooks/index.d.ts.map +1 -1
  13. package/dist/components/BulkEdit/hooks/useGridEditing.d.ts +0 -36
  14. package/dist/components/BulkEdit/hooks/useGridEditing.d.ts.map +1 -1
  15. package/dist/components/BulkEdit/hooks/useGridTable.d.ts +0 -11
  16. package/dist/components/BulkEdit/hooks/useGridTable.d.ts.map +1 -1
  17. package/dist/components/BulkEdit/hooks/useGridVirtualizer.d.ts +1 -0
  18. package/dist/components/BulkEdit/hooks/useGridVirtualizer.d.ts.map +1 -0
  19. package/dist/components/BulkEdit/index.d.ts +0 -20
  20. package/dist/components/BulkEdit/index.d.ts.map +1 -1
  21. package/dist/components/BulkEdit/utils/clipboard.d.ts +0 -4
  22. package/dist/components/BulkEdit/utils/clipboard.d.ts.map +1 -1
  23. package/dist/components/BulkEdit/utils/editing.d.ts +1 -19
  24. package/dist/components/BulkEdit/utils/editing.d.ts.map +1 -1
  25. package/dist/components/BulkEdit/utils/table.d.ts +1 -2
  26. package/dist/components/BulkEdit/utils/table.d.ts.map +1 -1
  27. package/dist/components/BulkEdit/utils/types.d.ts +6 -2
  28. package/dist/components/BulkEdit/utils/types.d.ts.map +1 -1
  29. package/dist/components/BulkEdit/utils/updates.d.ts +0 -3
  30. package/dist/components/BulkEdit/utils/updates.d.ts.map +1 -1
  31. package/dist/components/Collection/Grid/Grid.d.ts +6 -0
  32. package/dist/components/Collection/Grid/Grid.d.ts.map +1 -0
  33. package/dist/components/Collection/Grid/componnets/GridCell/GridCell.d.ts +18 -0
  34. package/dist/components/Collection/Grid/componnets/GridCell/GridCell.d.ts.map +1 -0
  35. package/dist/components/Collection/Grid/componnets/GridCell/index.d.ts +3 -0
  36. package/dist/components/Collection/Grid/componnets/GridCell/index.d.ts.map +1 -0
  37. package/dist/components/Collection/Grid/hooks/index.d.ts +2 -0
  38. package/dist/components/Collection/Grid/hooks/index.d.ts.map +1 -0
  39. package/dist/components/Collection/Grid/hooks/useGrid.d.ts +330 -0
  40. package/dist/components/Collection/Grid/hooks/useGrid.d.ts.map +1 -0
  41. package/dist/components/Collection/Grid/hooks/useGridColumnResizing.d.ts +15 -0
  42. package/dist/components/Collection/Grid/hooks/useGridColumnResizing.d.ts.map +1 -0
  43. package/dist/components/Collection/Grid/hooks/useGridDragSelection.d.ts +11 -0
  44. package/dist/components/Collection/Grid/hooks/useGridDragSelection.d.ts.map +1 -0
  45. package/dist/components/Collection/Grid/hooks/useGridSelection.d.ts +19 -0
  46. package/dist/components/Collection/Grid/hooks/useGridSelection.d.ts.map +1 -0
  47. package/dist/components/Collection/Grid/hooks/useGridVirtualizer.d.ts +11 -0
  48. package/dist/components/Collection/Grid/hooks/useGridVirtualizer.d.ts.map +1 -0
  49. package/dist/components/Collection/Grid/index.d.ts +6 -0
  50. package/dist/components/Collection/Grid/index.d.ts.map +1 -0
  51. package/dist/components/Collection/Grid/types.d.ts +18 -0
  52. package/dist/components/Collection/Grid/types.d.ts.map +1 -0
  53. package/dist/components/Collection/Pagination/Pagination.d.ts +12 -0
  54. package/dist/components/Collection/Pagination/Pagination.d.ts.map +1 -0
  55. package/dist/components/Collection/Pagination/index.d.ts.map +1 -0
  56. package/dist/components/Collection/Report/Report.d.ts +5 -0
  57. package/dist/components/Collection/Report/Report.d.ts.map +1 -0
  58. package/dist/components/Collection/Report/hooks/index.d.ts +2 -0
  59. package/dist/components/Collection/Report/hooks/index.d.ts.map +1 -0
  60. package/dist/components/Collection/Report/hooks/useColumnResizing.d.ts +19 -0
  61. package/dist/components/Collection/Report/hooks/useColumnResizing.d.ts.map +1 -0
  62. package/dist/components/Collection/Report/index.d.ts +3 -0
  63. package/dist/components/Collection/Report/index.d.ts.map +1 -0
  64. package/dist/components/Collection/Report/types.d.ts +12 -0
  65. package/dist/components/Collection/Report/types.d.ts.map +1 -0
  66. package/dist/components/Collection/Table/Table.d.ts +17 -0
  67. package/dist/components/Collection/Table/Table.d.ts.map +1 -0
  68. package/dist/components/Collection/Table/componnets/BulkActions/BulkActions.d.ts +13 -0
  69. package/dist/components/Collection/Table/componnets/BulkActions/BulkActions.d.ts.map +1 -0
  70. package/dist/components/Collection/Table/componnets/BulkActions/index.d.ts.map +1 -0
  71. package/dist/components/Collection/Table/index.d.ts +3 -0
  72. package/dist/components/Collection/Table/index.d.ts.map +1 -0
  73. package/dist/components/Collection/types.d.ts +10 -0
  74. package/dist/components/Collection/types.d.ts.map +1 -0
  75. package/dist/components/Collection/utils.d.ts +2 -0
  76. package/dist/components/Collection/utils.d.ts.map +1 -0
  77. package/dist/components/Combobox/Combobox.d.ts +3 -2
  78. package/dist/components/Combobox/Combobox.d.ts.map +1 -1
  79. package/dist/components/DateField/DateField.d.ts.map +1 -1
  80. package/dist/components/DatePicker/components/Month/Month.d.ts.map +1 -1
  81. package/dist/components/DatePicker/utils.d.ts +0 -2
  82. package/dist/components/DatePicker/utils.d.ts.map +1 -1
  83. package/dist/components/Filters/Date/Date.d.ts.map +1 -1
  84. package/dist/components/Filters/Select/Select.d.ts +2 -2
  85. package/dist/components/Filters/Select/Select.d.ts.map +1 -1
  86. package/dist/components/Filters/components/Filter/Filter.d.ts +9 -0
  87. package/dist/components/Filters/components/Filter/Filter.d.ts.map +1 -0
  88. package/dist/components/Filters/components/Filter/index.d.ts +2 -0
  89. package/dist/components/Filters/components/Filter/index.d.ts.map +1 -0
  90. package/dist/components/Filters/components/Trigger/Trigger.d.ts +3 -3
  91. package/dist/components/Filters/components/Trigger/Trigger.d.ts.map +1 -1
  92. package/dist/components/Frame/Frame.d.ts +1 -1
  93. package/dist/components/Frame/Frame.d.ts.map +1 -1
  94. package/dist/components/Frame/components/Navigation/index.d.ts +7 -1
  95. package/dist/components/Frame/components/Navigation/index.d.ts.map +1 -1
  96. package/dist/components/Frame/components/Viewport/Viewport.d.ts.map +1 -1
  97. package/dist/components/Frame/index.d.ts +0 -1
  98. package/dist/components/Frame/index.d.ts.map +1 -1
  99. package/dist/components/InputBase/InputBase.d.ts +3 -10
  100. package/dist/components/InputBase/InputBase.d.ts.map +1 -1
  101. package/dist/components/Labelled/Labelled.d.ts +1 -2
  102. package/dist/components/Labelled/Labelled.d.ts.map +1 -1
  103. package/dist/components/MultiSelect/MultipleSelect.d.ts +2 -2
  104. package/dist/components/MultiSelect/MultipleSelect.d.ts.map +1 -1
  105. package/dist/components/Page/Page.d.ts +2 -6
  106. package/dist/components/Page/Page.d.ts.map +1 -1
  107. package/dist/components/Page/components/Page/Page.d.ts +7 -0
  108. package/dist/components/Page/components/Page/Page.d.ts.map +1 -0
  109. package/dist/components/Page/components/Page/index.d.ts +2 -0
  110. package/dist/components/Page/components/Page/index.d.ts.map +1 -0
  111. package/dist/components/Page/components/Surface/Surface.d.ts +9 -0
  112. package/dist/components/Page/components/Surface/Surface.d.ts.map +1 -0
  113. package/dist/components/Page/components/Surface/index.d.ts +2 -0
  114. package/dist/components/Page/components/Surface/index.d.ts.map +1 -0
  115. package/dist/components/Page/context.d.ts +24 -0
  116. package/dist/components/Page/context.d.ts.map +1 -0
  117. package/dist/components/Page/index.d.ts +1 -0
  118. package/dist/components/Page/index.d.ts.map +1 -1
  119. package/dist/components/Page/utils.d.ts +8 -0
  120. package/dist/components/Page/utils.d.ts.map +1 -0
  121. package/dist/components/{IndexTable/Toolbar → Toolbar}/Toolbar.d.ts +7 -7
  122. package/dist/components/Toolbar/Toolbar.d.ts.map +1 -0
  123. package/dist/components/{IndexTable/Toolbar → Toolbar}/components/ColumnButton/ColumnButton.d.ts +2 -2
  124. package/dist/components/Toolbar/components/ColumnButton/ColumnButton.d.ts.map +1 -0
  125. package/dist/components/Toolbar/components/ColumnButton/index.d.ts.map +1 -0
  126. package/dist/components/Toolbar/components/Filter/Filter.d.ts.map +1 -0
  127. package/dist/components/Toolbar/components/Filter/index.d.ts.map +1 -0
  128. package/dist/components/Toolbar/components/SaveView/SaveView.d.ts.map +1 -0
  129. package/dist/components/Toolbar/components/SaveView/index.d.ts.map +1 -0
  130. package/dist/components/{IndexTable/Toolbar → Toolbar}/components/SortAndColumns/SortAndColumns.d.ts +1 -1
  131. package/dist/components/Toolbar/components/SortAndColumns/SortAndColumns.d.ts.map +1 -0
  132. package/dist/components/Toolbar/components/SortAndColumns/index.d.ts.map +1 -0
  133. package/dist/components/Toolbar/index.d.ts.map +1 -0
  134. package/dist/components/{IndexTable → Toolbar}/types.d.ts +1 -6
  135. package/dist/components/Toolbar/types.d.ts.map +1 -0
  136. package/dist/index.cjs +1 -2
  137. package/dist/index.css +1 -1
  138. package/dist/index.d.ts +10 -9
  139. package/dist/index.d.ts.map +1 -1
  140. package/dist/index.js +6019 -6934
  141. package/dist/lib/index.d.ts +3 -0
  142. package/dist/lib/index.d.ts.map +1 -0
  143. package/dist/lib/use-is-mobile.d.ts +4 -0
  144. package/dist/lib/use-is-mobile.d.ts.map +1 -0
  145. package/dist/lib/use-media-query.d.ts +3 -0
  146. package/dist/lib/use-media-query.d.ts.map +1 -0
  147. package/dist/locales/messages.json.d.ts +8 -0
  148. package/dist/utilities/i18n.d.ts +8 -3
  149. package/dist/utilities/i18n.d.ts.map +1 -1
  150. package/package.json +10 -3
  151. package/dist/components/BulkEdit/componnets/Combobox/Combobox.d.ts +0 -6
  152. package/dist/components/BulkEdit/componnets/Combobox/Combobox.d.ts.map +0 -1
  153. package/dist/components/BulkEdit/componnets/Combobox/index.d.ts +0 -2
  154. package/dist/components/BulkEdit/componnets/Combobox/index.d.ts.map +0 -1
  155. package/dist/components/BulkEdit/componnets/Grid/GridCellContext.d.ts +0 -10
  156. package/dist/components/BulkEdit/componnets/Grid/GridCellContext.d.ts.map +0 -1
  157. package/dist/components/BulkEdit/componnets/Popover/Popover.d.ts +0 -15
  158. package/dist/components/BulkEdit/componnets/Popover/Popover.d.ts.map +0 -1
  159. package/dist/components/BulkEdit/componnets/Popover/index.d.ts +0 -2
  160. package/dist/components/BulkEdit/componnets/Popover/index.d.ts.map +0 -1
  161. package/dist/components/BulkEdit/componnets/Toolbar/Toolbar.d.ts +0 -11
  162. package/dist/components/BulkEdit/componnets/Toolbar/Toolbar.d.ts.map +0 -1
  163. package/dist/components/BulkEdit/componnets/Toolbar/index.d.ts +0 -2
  164. package/dist/components/BulkEdit/componnets/Toolbar/index.d.ts.map +0 -1
  165. package/dist/components/Frame/context/FrameStackContext.d.ts +0 -21
  166. package/dist/components/Frame/context/FrameStackContext.d.ts.map +0 -1
  167. package/dist/components/IndexTable/DataTable/BulkActions/BulkActions.d.ts +0 -12
  168. package/dist/components/IndexTable/DataTable/BulkActions/BulkActions.d.ts.map +0 -1
  169. package/dist/components/IndexTable/DataTable/BulkActions/index.d.ts.map +0 -1
  170. package/dist/components/IndexTable/DataTable/DataTable.d.ts +0 -27
  171. package/dist/components/IndexTable/DataTable/DataTable.d.ts.map +0 -1
  172. package/dist/components/IndexTable/DataTable/Pagination/Pagination.d.ts +0 -15
  173. package/dist/components/IndexTable/DataTable/Pagination/Pagination.d.ts.map +0 -1
  174. package/dist/components/IndexTable/DataTable/Pagination/index.d.ts.map +0 -1
  175. package/dist/components/IndexTable/DataTable/index.d.ts +0 -4
  176. package/dist/components/IndexTable/DataTable/index.d.ts.map +0 -1
  177. package/dist/components/IndexTable/IndexTable.d.ts +0 -3
  178. package/dist/components/IndexTable/IndexTable.d.ts.map +0 -1
  179. package/dist/components/IndexTable/Toolbar/Toolbar.d.ts.map +0 -1
  180. package/dist/components/IndexTable/Toolbar/components/ColumnButton/ColumnButton.d.ts.map +0 -1
  181. package/dist/components/IndexTable/Toolbar/components/ColumnButton/index.d.ts.map +0 -1
  182. package/dist/components/IndexTable/Toolbar/components/Filter/Filter.d.ts.map +0 -1
  183. package/dist/components/IndexTable/Toolbar/components/Filter/index.d.ts.map +0 -1
  184. package/dist/components/IndexTable/Toolbar/components/SaveView/SaveView.d.ts.map +0 -1
  185. package/dist/components/IndexTable/Toolbar/components/SaveView/index.d.ts.map +0 -1
  186. package/dist/components/IndexTable/Toolbar/components/SortAndColumns/SortAndColumns.d.ts.map +0 -1
  187. package/dist/components/IndexTable/Toolbar/components/SortAndColumns/index.d.ts.map +0 -1
  188. package/dist/components/IndexTable/Toolbar/index.d.ts.map +0 -1
  189. package/dist/components/IndexTable/Toolbar/types.d.ts +0 -2
  190. package/dist/components/IndexTable/Toolbar/types.d.ts.map +0 -1
  191. package/dist/components/IndexTable/index.d.ts +0 -12
  192. package/dist/components/IndexTable/index.d.ts.map +0 -1
  193. package/dist/components/IndexTable/types.d.ts.map +0 -1
  194. package/dist/components/IndexTable/utils.d.ts +0 -5
  195. package/dist/components/IndexTable/utils.d.ts.map +0 -1
  196. package/dist/components/Report/Report.d.ts +0 -3
  197. package/dist/components/Report/Report.d.ts.map +0 -1
  198. package/dist/components/Report/index.d.ts +0 -3
  199. package/dist/components/Report/index.d.ts.map +0 -1
  200. package/dist/components/Report/types.d.ts +0 -63
  201. package/dist/components/Report/types.d.ts.map +0 -1
  202. package/dist/components/Report/useReportTable.d.ts +0 -8
  203. package/dist/components/Report/useReportTable.d.ts.map +0 -1
  204. /package/dist/components/{IndexTable/DataTable → Collection}/Pagination/index.d.ts +0 -0
  205. /package/dist/components/{IndexTable/DataTable → Collection/Table/componnets}/BulkActions/index.d.ts +0 -0
  206. /package/dist/components/{IndexTable/Toolbar → Toolbar}/components/ColumnButton/index.d.ts +0 -0
  207. /package/dist/components/{IndexTable/Toolbar → Toolbar}/components/Filter/Filter.d.ts +0 -0
  208. /package/dist/components/{IndexTable/Toolbar → Toolbar}/components/Filter/index.d.ts +0 -0
  209. /package/dist/components/{IndexTable/Toolbar → Toolbar}/components/SaveView/SaveView.d.ts +0 -0
  210. /package/dist/components/{IndexTable/Toolbar → Toolbar}/components/SaveView/index.d.ts +0 -0
  211. /package/dist/components/{IndexTable/Toolbar → Toolbar}/components/SortAndColumns/index.d.ts +0 -0
  212. /package/dist/components/{IndexTable/Toolbar → Toolbar}/index.d.ts +0 -0
@@ -1,9 +1,8 @@
1
- import { BulkEditValueContext } from '../Grid/types';
2
- import { ReactNode } from 'react';
3
- export declare function BulkSet({ label, count, onApply, renderEditor, }: {
4
- label: string;
5
- count: number;
6
- onApply: (value: unknown) => string | undefined;
7
- renderEditor?: (context: BulkEditValueContext) => ReactNode;
8
- }): import('react').JSX.Element;
1
+ import { BulkEditColumn } from '../Grid/types';
2
+ export interface BulkSetProps<T> {
3
+ column: BulkEditColumn<T>;
4
+ onSubmit: (value: unknown) => string | undefined;
5
+ onClear?: () => void;
6
+ }
7
+ export declare function BulkSet<T>({ column, onSubmit }: BulkSetProps<T>): import('react').JSX.Element | null;
9
8
  //# sourceMappingURL=BulkSet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BulkSet.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/BulkSet/BulkSet.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAwBvC,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,KAAK,EACL,OAAO,EACP,YAAY,GACb,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,GAAG,SAAS,CAAC;IAChD,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,SAAS,CAAC;CAC7D,+BA6DA"}
1
+ {"version":3,"file":"BulkSet.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/BulkSet/BulkSet.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGpD,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,GAAG,SAAS,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,YAAY,CAAC,CAAC,CAAC,sCA+D/D"}
@@ -1,19 +1 @@
1
- import { ComponentPropsWithRef, CSSProperties, Key } from 'react';
2
- import { BulkEditColumn, BulkEditUpdate } from './types';
3
- export interface BulkEditGridProps<T> extends Pick<ComponentPropsWithRef<'div'>, 'ref' | 'style' | 'className'> {
4
- items: readonly T[];
5
- columns: readonly BulkEditColumn<T>[];
6
- getRowId: (item: T) => Key;
7
- updates: BulkEditUpdate[];
8
- onUpdatesChange: (updates: BulkEditUpdate[]) => void;
9
- /** Ref for the selection toolbar and column header container. */
10
- headerRef?: ComponentPropsWithRef<'div'>['ref'];
11
- /** Style the selection toolbar and column header container from the surrounding layout. */
12
- headerStyle?: CSSProperties;
13
- /** Style body cells, including scroll margins for the surrounding layout. */
14
- cellStyle?: CSSProperties;
15
- /** Style the horizontal scrollbar rail from the surrounding layout. */
16
- scrollbarStyle?: CSSProperties;
17
- }
18
- export declare function BulkEditGrid<T extends object>({ items, columns, getRowId, updates, onUpdatesChange, headerRef, headerStyle, cellStyle, scrollbarStyle, ref, style, className, }: BulkEditGridProps<T>): import('react').JSX.Element;
19
1
  //# sourceMappingURL=Grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Grid/Grid.tsx"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,GAAG,EACT,MAAM,OAAO,CAAC;AASf,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9D,MAAM,WAAW,iBAAiB,CAAC,CAAC,CAAE,SAAQ,IAAI,CAChD,qBAAqB,CAAC,KAAK,CAAC,EAC5B,KAAK,GAAG,OAAO,GAAG,WAAW,CAC9B;IACC,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IACpB,OAAO,EAAE,SAAS,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,GAAG,CAAC;IAC3B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,eAAe,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;IACrD,iEAAiE;IACjE,SAAS,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;IAChD,2FAA2F;IAC3F,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,6EAA6E;IAC7E,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,uEAAuE;IACvE,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,EAC7C,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,eAAe,EACf,SAAS,EACT,WAAW,EACX,SAAS,EACT,cAAc,EACd,GAAG,EACH,KAAK,EACL,SAAS,GACV,EAAE,iBAAiB,CAAC,CAAC,CAAC,+BAmTtB"}
1
+ {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Grid/Grid.tsx"],"names":[],"mappings":""}
@@ -1,3 +1 @@
1
- export * from './Grid';
2
- export type * from './types';
3
1
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Grid/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Grid/index.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { Key, ReactNode } from 'react';
1
+ import { Key } from 'react';
2
2
  export interface BulkEditUpdate {
3
3
  rowId: Key;
4
4
  columnId: string;
@@ -20,7 +20,7 @@ export interface BulkEditColumn<T> {
20
20
  id: string;
21
21
  label: string;
22
22
  /** Custom header content, such as a label with a help icon or currency. */
23
- header?: ReactNode;
23
+ header?: React.ReactNode;
24
24
  /** Initial width in pixels. */
25
25
  width?: number;
26
26
  minWidth?: number;
@@ -30,16 +30,19 @@ export interface BulkEditColumn<T> {
30
30
  pinned?: boolean;
31
31
  alignment?: 'start' | 'center' | 'end';
32
32
  getValue?: (item: T) => unknown;
33
+ /** Allow value changes, including paste. Does not affect selection or copying. */
33
34
  editable?: boolean | ((item: T) => boolean);
34
35
  /** Opt in to Set all independently of range selection and paste. Defaults to false. */
35
36
  bulkEditable?: boolean | ((item: T) => boolean);
37
+ /** Format a business value for the clipboard. */
36
38
  formatClipboard?: (value: unknown, item: T) => string;
39
+ /** Convert Grid clipboard text to a business value for the target row. Used only during paste. */
37
40
  parseClipboard?: (text: string, item: T) => unknown;
38
- /** Return a message to reject the entire edit, fill or paste transaction. */
41
+ /** Return a message to reject a new edit, Set all or paste transaction. Skipped for undo and redo. */
39
42
  validate?: (value: unknown, item: T) => string | undefined;
40
- /** Set all editor. Emits business values directly; defaults to a TextField parsed with parseClipboard. */
41
- renderBulkEditor?: (context: BulkEditValueContext) => ReactNode;
42
- /** Render context.value for pending edits; item remains the original row. Editable InputCell editors automatically support range selection and paste. */
43
- renderCell: (item: T, index: number, context: BulkEditValueContext) => ReactNode;
43
+ /** Set all editor. Emits prepared business values directly; omitted editors have no Set all UI. */
44
+ renderBulkEditor?: (context: BulkEditValueContext) => React.ReactNode;
45
+ /** Render context.value for pending edits; item remains the original row. Columns with getValue support selection and copying regardless of editor type. */
46
+ renderCell: (item: T, index: number, context: BulkEditValueContext) => React.ReactNode;
44
47
  }
45
48
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Grid/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,uDAAuD;IACvD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,KAAK,EAAE,OAAO,CAAC;IACf,iEAAiE;IACjE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;IACtC,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0FAA0F;IAC1F,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC;IAC5C,uFAAuF;IACvF,YAAY,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IACtD,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IACpD,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,KAAK,MAAM,GAAG,SAAS,CAAC;IAC3D,0GAA0G;IAC1G,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,SAAS,CAAC;IAChE,yJAAyJ;IACzJ,UAAU,EAAE,CACV,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,oBAAoB,KAC1B,SAAS,CAAC;CAChB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Grid/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,uDAAuD;IACvD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,KAAK,EAAE,OAAO,CAAC;IACf,iEAAiE;IACjE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;IACtC,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0FAA0F;IAC1F,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IAChC,kFAAkF;IAClF,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC;IAC5C,uFAAuF;IACvF,YAAY,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC;IAChD,iDAAiD;IACjD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IACtD,kGAAkG;IAClG,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IACpD,sGAAsG;IACtG,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,KAAK,MAAM,GAAG,SAAS,CAAC;IAC3D,mGAAmG;IACnG,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,KAAK,CAAC,SAAS,CAAC;IACtE,4JAA4J;IAC5J,UAAU,EAAE,CACV,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,oBAAoB,KAC1B,KAAK,CAAC,SAAS,CAAC;CACtB"}
@@ -1,10 +1,19 @@
1
- import { useRender } from '@base-ui/react/use-render';
2
- import { ReactNode } from 'react';
3
- import { TextFieldProps } from '../../../TextField';
4
- export interface InputCellProps extends TextFieldProps {
5
- /** Render a display trigger with children instead of a text input. */
6
- render?: useRender.RenderProp;
7
- children?: ReactNode;
1
+ import { ReactElement, ReactNode } from 'react';
2
+ /** Grid field layout and visual state. Set native control props on children or render. */
3
+ export interface InputCellProps {
4
+ children: ReactElement<{
5
+ className?: string;
6
+ }>;
7
+ prefix?: ReactNode;
8
+ suffix?: ReactNode;
9
+ disabled?: boolean;
10
+ readOnly?: boolean;
11
+ busy?: boolean;
12
+ /** Render the field shell, keeping its layout inside the interactive element. */
13
+ render?: (props: {
14
+ className: string;
15
+ children: ReactNode;
16
+ }) => ReactNode;
8
17
  }
9
- export declare function InputCell({ value, autoComplete, disabled, readOnly, busy, minLength, maxLength, placeholder, prefix, suffix, onChange, render, children, ...restProps }: InputCellProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
18
+ export declare function InputCell({ children, prefix, suffix, disabled, readOnly, busy, render, }: InputCellProps): import('react').JSX.Element;
10
19
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,sEAAsE;IACtE,MAAM,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,YAAoB,EACpB,QAAgB,EAChB,QAAgB,EAChB,IAAY,EACZ,SAAa,EACb,SAAS,EACT,WAAW,EACX,MAAW,EACX,MAAW,EACX,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,GAAG,SAAS,EACb,EAAE,cAAc,8FA4DhB"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIxE,0FAA0F;AAC1F,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,YAAY,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,iFAAiF;IACjF,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,SAAS,CAAA;KAAE,KAAK,SAAS,CAAC;CAC3E;AAED,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,MAAM,EACN,MAAM,EACN,QAAgB,EAChB,QAAgB,EAChB,IAAY,EACZ,MAAM,GACP,EAAE,cAAc,+BAmChB"}
@@ -1,3 +1 @@
1
- export { useGridEditing } from './useGridEditing';
2
- export { useGridTable } from './useGridTable';
3
1
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/index.ts"],"names":[],"mappings":""}
@@ -1,37 +1 @@
1
- import { ClipboardEvent, KeyboardEvent, MouseEvent, RefObject } from 'react';
2
- import { GridTable } from '../utils/table';
3
- import { CellPoint, InputCellRegistry, UpdateIndex } from '../utils/types';
4
- import { BulkEditGridProps } from '../componnets/Grid/Grid';
5
- export declare function useGridEditing<T extends object>({ items, columns, getRowId, updates, onUpdatesChange, updatesByRow, inputCells, scrollRef, tableRef, table, direction, }: Pick<BulkEditGridProps<T>, 'items' | 'columns' | 'getRowId' | 'updates' | 'onUpdatesChange'> & {
6
- updatesByRow: UpdateIndex;
7
- inputCells: InputCellRegistry;
8
- scrollRef: RefObject<HTMLDivElement | null>;
9
- tableRef: RefObject<HTMLTableElement | null>;
10
- table: GridTable<T>;
11
- direction: 'ltr' | 'rtl';
12
- }): {
13
- active: CellPoint | null;
14
- error: string;
15
- selectedCount: number;
16
- canUndo: boolean;
17
- canRedo: boolean;
18
- canRange: (point: CellPoint) => boolean;
19
- changeCell: (point: CellPoint, value: unknown) => boolean;
20
- selectColumn: (column: number) => void;
21
- keyDown: (event: KeyboardEvent<HTMLTableCellElement>, point: CellPoint) => void;
22
- mouseDown: (event: MouseEvent<HTMLTableCellElement>, point: CellPoint) => void;
23
- doubleClick: (event: MouseEvent<HTMLTableCellElement>, point: CellPoint) => void;
24
- mouseEnter: (point: CellPoint) => void;
25
- copy: (event: ClipboardEvent<HTMLTableElement>) => void;
26
- paste: (event: ClipboardEvent<HTMLTableElement>) => void;
27
- focus: (point: CellPoint) => void;
28
- undo: () => void;
29
- redo: () => void;
30
- columnCells: (column: number) => {
31
- row: number;
32
- column: number;
33
- }[];
34
- fillColumn: (column: number, value: unknown) => string | undefined;
35
- shortcut: (event: KeyboardEvent<HTMLDivElement>) => void;
36
- };
37
1
  //# sourceMappingURL=useGridEditing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGridEditing.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/useGridEditing.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAef,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEhF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,EAC/C,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,eAAe,EACf,YAAY,EACZ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,KAAK,EACL,SAAS,GACV,EAAE,IAAI,CACL,iBAAiB,CAAC,CAAC,CAAC,EACpB,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,iBAAiB,CACjE,GAAG;IACF,YAAY,EAAE,WAAW,CAAC;IAC1B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,SAAS,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5C,QAAQ,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAC7C,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACpB,SAAS,EAAE,KAAK,GAAG,KAAK,CAAC;CAC1B;;;;;;sBA8F0B,SAAS;wBAuFP,SAAS,SAAS,OAAO;2BAgGtB,MAAM;qBAqM3B,aAAa,CAAC,oBAAoB,CAAC,SACnC,SAAS;uBArDT,UAAU,CAAC,oBAAoB,CAAC,SAChC,SAAS;yBAtBT,UAAU,CAAC,oBAAoB,CAAC,SAChC,SAAS;wBA4MI,SAAS;kBA3CV,cAAc,CAAC,gBAAgB,CAAC;mBAY/B,cAAc,CAAC,gBAAgB,CAAC;mBA7dhC,SAAS;;;0BAqgBP,MAAM;;;;yBA3VF,MAAM,SAAS,OAAO;sBAnBzB,aAAa,CAAC,cAAc,CAAC;EAkXvD"}
1
+ {"version":3,"file":"useGridEditing.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/useGridEditing.ts"],"names":[],"mappings":""}
@@ -1,12 +1 @@
1
- import { GridTable } from '../utils/table';
2
- import { UpdateIndex } from '../utils/types';
3
- import { BulkEditGridProps } from '../componnets/Grid/Grid';
4
- export declare function useGridTable<T extends object>({ items, columns, getRowId, updatesByRow, direction, }: Pick<BulkEditGridProps<T>, 'items' | 'columns' | 'getRowId'> & {
5
- updatesByRow: UpdateIndex;
6
- direction: 'ltr' | 'rtl';
7
- }): {
8
- table: GridTable<T>;
9
- inputCells: ReadonlyMap<string, number>;
10
- registerInput: (id: string) => () => void;
11
- };
12
1
  //# sourceMappingURL=useGridTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGridTable.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/useGridTable.ts"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,SAAS,EACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,EAC7C,KAAK,EACL,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,SAAS,GACV,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC,GAAG;IAChE,YAAY,EAAE,WAAW,CAAC;IAC1B,SAAS,EAAE,KAAK,GAAG,KAAK,CAAC;CAC1B;;;wBAIwC,MAAM;EAiD9C"}
1
+ {"version":3,"file":"useGridTable.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/useGridTable.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=useGridVirtualizer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGridVirtualizer.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/hooks/useGridVirtualizer.ts"],"names":[],"mappings":""}
@@ -1,21 +1 @@
1
- import { BulkEditGrid } from './componnets/Grid';
2
- import { BulkEditLayout } from './componnets/Layout';
3
- import { BulkEditToolbar } from './componnets/Toolbar';
4
- import { InputCell } from './componnets/Input';
5
- import { ComboboxCell } from './componnets/Combobox';
6
- import { PopoverCell } from './componnets/Popover';
7
- export declare const BulkEdit: {
8
- Layout: typeof BulkEditLayout;
9
- Toolbar: typeof BulkEditToolbar;
10
- Grid: typeof BulkEditGrid;
11
- InputCell: typeof InputCell;
12
- ComboboxCell: typeof ComboboxCell;
13
- PopoverCell: typeof PopoverCell;
14
- };
15
- export * from './componnets/Grid';
16
- export * from './componnets/Layout';
17
- export * from './componnets/Toolbar';
18
- export * from './componnets/Input';
19
- export * from './componnets/Combobox';
20
- export * from './componnets/Popover';
21
1
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BulkEdit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,eAAO,MAAM,QAAQ;;;;;;;CAOpB,CAAC;AAEF,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BulkEdit/index.ts"],"names":[],"mappings":""}
@@ -5,9 +5,5 @@ export declare function selectionBounds(selection: CellSelection): {
5
5
  left: number;
6
6
  right: number;
7
7
  };
8
- export declare function copySelection<T>(data: EditData<T>, selection: CellSelection): string;
9
8
  export declare function formatCell<T>(data: EditData<T>, point: CellPoint): string;
10
- export declare function encodeTSV(rows: readonly (readonly string[])[]): string;
11
- export declare function decodeTSV(text: string): string[][];
12
- export declare function pasteChanges<T>(data: EditData<T>, selection: CellSelection, text: string): import('..').BulkEditUpdate[];
13
9
  //# sourceMappingURL=clipboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/clipboard.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIlE,wBAAgB,eAAe,CAAC,SAAS,EAAE,aAAa;;;;;EAOvD;AAOD,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,UAY3E;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,UAKhE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,UAO7D;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,cAarC;AAED,wBAAgB,YAAY,CAAC,CAAC,EAC5B,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EACjB,SAAS,EAAE,aAAa,EACxB,IAAI,EAAE,MAAM,iCAgDb"}
1
+ {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/clipboard.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGlE,wBAAgB,eAAe,CAAC,SAAS,EAAE,aAAa;;;;;EAOvD;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,UAKhE"}
@@ -1,21 +1,3 @@
1
- import { Key } from 'react';
2
- import { BulkEditColumn, BulkEditUpdate } from '../componnets/Grid/types';
3
- import { CellPoint, EditData } from './types';
4
- export declare function gridCellKey(rowId: Key, columnId: string): string;
1
+ import { BulkEditColumn } from '../componnets/Grid/types';
5
2
  export declare function isEditable<T>(column: BulkEditColumn<T>, item: T): boolean;
6
- export declare function isRangeEditable<T>(data: Pick<EditData<T>, 'getRowId' | 'inputCells'>, column: BulkEditColumn<T>, item: T): boolean;
7
- export declare function isBulkEditable<T>(column: BulkEditColumn<T>, item: T): boolean;
8
- export declare function bulkColumnCells<T>(data: EditData<T>, column: number): {
9
- row: number;
10
- column: number;
11
- }[];
12
- export declare function bulkColumnChanges<T>(data: EditData<T>, column: number, value: unknown): BulkEditUpdate[];
13
- export declare function createChanges<T>(data: EditData<T>, cells: readonly (CellPoint & {
14
- value: unknown;
15
- })[], { parse, range, bulk }?: {
16
- parse?: boolean | undefined;
17
- range?: boolean | undefined;
18
- bulk?: boolean | undefined;
19
- }): BulkEditUpdate[];
20
- export declare function historyChanges<T>(data: EditData<T>, changes: readonly BulkEditUpdate[], undo: boolean): BulkEditUpdate[];
21
3
  //# sourceMappingURL=editing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editing.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/editing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnD,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,UAEvD;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,WAO/D;AAED,wBAAgB,eAAe,CAAC,CAAC,EAC/B,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC,EAClD,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EACzB,IAAI,EAAE,CAAC,WAMR;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,WAOnE;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM;;;IAMnE;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EACjB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,oBAUf;AAED,wBAAgB,aAAa,CAAC,CAAC,EAC7B,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EACjB,KAAK,EAAE,SAAS,CAAC,SAAS,GAAG;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,EAAE,EAClD,EAAE,KAAa,EAAE,KAAa,EAAE,IAAY,EAAE;;;;CAAK,GAClD,cAAc,EAAE,CA2ClB;AAED,wBAAgB,cAAc,CAAC,CAAC,EAC9B,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EACjB,OAAO,EAAE,SAAS,cAAc,EAAE,EAClC,IAAI,EAAE,OAAO,oBA8Bd"}
1
+ {"version":3,"file":"editing.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/editing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,WAO/D"}
@@ -1,7 +1,7 @@
1
1
  import { Cell, ColumnDef, ReactTable } from '@tanstack/react-table';
2
2
  import { Key } from 'react';
3
3
  import { BulkEditColumn } from '../componnets/Grid/types';
4
- import { CellPoint, CellSelection, EditData, UpdateIndex } from './types';
4
+ import { CellPoint, CellSelection, UpdateIndex } from './types';
5
5
  export declare const gridFeatures: {
6
6
  cellSelectionFeature: import('@tanstack/react-table').TableFeature;
7
7
  columnSizingFeature: import('@tanstack/react-table').TableFeature;
@@ -18,7 +18,6 @@ export declare function columnWidthBounds<T extends object>(column: BulkEditColu
18
18
  max: number;
19
19
  };
20
20
  export declare function createGridColumns<T extends object>(columns: readonly BulkEditColumn<T>[], getRowId: (item: T) => Key, updatesByRow: UpdateIndex): ColumnDef<typeof gridFeatures, T>[];
21
- export declare function canSelectGridCell<T extends object>(cell: GridCell<T>, data: Pick<EditData<T>, 'columns' | 'getRowId' | 'inputCells'>): boolean;
22
21
  export declare function gridCellAt<T extends object>(table: GridTable<T>, point: CellPoint): Cell<{
23
22
  cellSelectionFeature: import('@tanstack/react-table').TableFeature;
24
23
  columnSizingFeature: import('@tanstack/react-table').TableFeature;
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/table.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAI/E,eAAO,MAAM,YAAY;;;;;;CAMvB,CAAC;AAEH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,IAAI,UAAU,CAAC,OAAO,YAAY,EAAE,CAAC,CAAC,CAAC;AAE7E,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC,OAAO,YAAY,EAAE,CAAC,CAAC,CAAC;AAEtE,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,CAAC,EAAE,SAAS,GAAG,IAAI,WAEjE;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,GAAG,UAGhC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;;;EAG5E;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAChD,OAAO,EAAE,SAAS,cAAc,CAAC,CAAC,CAAC,EAAE,EACrC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,GAAG,EAC1B,YAAY,EAAE,WAAW,GACxB,SAAS,CAAC,OAAO,YAAY,EAAE,CAAC,CAAC,EAAE,CAerC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAChD,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EACjB,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,YAAY,CAAC,WAM/D;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EACzC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EACnB,KAAK,EAAE,SAAS;;;;;;eAGjB;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAC5C,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EACnB,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,GAChB,SAAS,CAKX;AAED,qFAAqF;AACrF,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAC5C,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAClB,aAAa,CAef"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/table.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGrE,eAAO,MAAM,YAAY;;;;;;CAMvB,CAAC;AAEH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,IAAI,UAAU,CAAC,OAAO,YAAY,EAAE,CAAC,CAAC,CAAC;AAE7E,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC,OAAO,YAAY,EAAE,CAAC,CAAC,CAAC;AAEtE,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,CAAC,EAAE,SAAS,GAAG,IAAI,WAEjE;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,GAAG,UAGhC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;;;EAG5E;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAChD,OAAO,EAAE,SAAS,cAAc,CAAC,CAAC,CAAC,EAAE,EACrC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,GAAG,EAC1B,YAAY,EAAE,WAAW,GACxB,SAAS,CAAC,OAAO,YAAY,EAAE,CAAC,CAAC,EAAE,CAerC;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EACzC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EACnB,KAAK,EAAE,SAAS;;;;;;eAGjB;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAC5C,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EACnB,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,GAChB,SAAS,CAKX;AAED,qFAAqF;AACrF,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAC5C,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAClB,aAAa,CAef"}
@@ -1,17 +1,21 @@
1
1
  import { Key } from 'react';
2
+ import { I18nTranslate } from '../../../utilities/i18n';
2
3
  import { BulkEditColumn, BulkEditUpdate } from '../componnets/Grid/types';
3
4
  export interface CellPoint {
4
5
  row: number;
5
6
  column: number;
6
7
  }
8
+ export interface CellEdit extends CellPoint {
9
+ /** Prepared business value, after any source-specific text conversion. */
10
+ value: unknown;
11
+ }
7
12
  export type CellSelection = readonly CellPoint[];
8
13
  export interface EditData<T> {
9
14
  items: readonly T[];
10
15
  columns: readonly BulkEditColumn<T>[];
11
16
  getRowId: (item: T) => Key;
12
17
  updatesByRow: UpdateIndex;
13
- inputCells: InputCellRegistry;
18
+ translate: I18nTranslate;
14
19
  }
15
20
  export type UpdateIndex = ReadonlyMap<Key, ReadonlyMap<string, BulkEditUpdate>>;
16
- export type InputCellRegistry = ReadonlyMap<string, number>;
17
21
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/E,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,SAAS,EAAE,CAAC;AAEjD,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IACpB,OAAO,EAAE,SAAS,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,GAAG,CAAC;IAC3B,YAAY,EAAE,WAAW,CAAC;IAC1B,UAAU,EAAE,iBAAiB,CAAC;CAC/B;AAED,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;AAChF,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/E,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,QAAS,SAAQ,SAAS;IACzC,0EAA0E;IAC1E,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,SAAS,EAAE,CAAC;AAEjD,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IACpB,OAAO,EAAE,SAAS,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,GAAG,CAAC;IAC3B,YAAY,EAAE,WAAW,CAAC;IAC1B,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC"}
@@ -3,8 +3,5 @@ import { BulkEditColumn, BulkEditUpdate } from '../componnets/Grid/types';
3
3
  import { EditData, UpdateIndex } from './types';
4
4
  export declare function indexUpdates(updates: readonly BulkEditUpdate[]): Map<Key, Map<string, BulkEditUpdate>>;
5
5
  export declare function sameUpdates(a: UpdateIndex, b: UpdateIndex): boolean;
6
- export declare function sameBaseline<T>(a: EditData<T>, b: EditData<T>): boolean;
7
6
  export declare function getCellValue<T>(data: Pick<EditData<T>, 'getRowId' | 'updatesByRow'>, column: BulkEditColumn<T>, item: T): unknown;
8
- /** Merge a transaction into the complete draft, keeping values relative to the original items. */
9
- export declare function mergeUpdates<T>(data: EditData<T>, updates: readonly BulkEditUpdate[], changes: readonly BulkEditUpdate[]): BulkEditUpdate[];
10
7
  //# sourceMappingURL=updates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updates.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/updates.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAErD,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,cAAc,EAAE,yCAQ9D;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,WASzD;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,WAyB7D;AAED,wBAAgB,YAAY,CAAC,CAAC,EAC5B,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC,EACpD,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EACzB,IAAI,EAAE,CAAC,WAIR;AAED,kGAAkG;AAClG,wBAAgB,YAAY,CAAC,CAAC,EAC5B,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EACjB,OAAO,EAAE,SAAS,cAAc,EAAE,EAClC,OAAO,EAAE,SAAS,cAAc,EAAE,GACjC,cAAc,EAAE,CAyBlB"}
1
+ {"version":3,"file":"updates.d.ts","sourceRoot":"","sources":["../../../../src/components/BulkEdit/utils/updates.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAErD,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,cAAc,EAAE,yCAQ9D;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,WASzD;AAED,wBAAgB,YAAY,CAAC,CAAC,EAC5B,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC,EACpD,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EACzB,IAAI,EAAE,CAAC,WAIR"}
@@ -0,0 +1,6 @@
1
+ import { RowData } from '@tanstack/react-table';
2
+ import { Features } from '../types';
3
+ import { GridProps } from './types';
4
+ export type { GridProps } from './types';
5
+ export declare function Grid<TFeatures extends Features, TData extends RowData>(options: GridProps<TFeatures, TData>): import('react').JSX.Element;
6
+ //# sourceMappingURL=Grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../src/components/Collection/Grid/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAMjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,wBAAgB,IAAI,CAAC,SAAS,SAAS,QAAQ,EAAE,KAAK,SAAS,OAAO,EACpE,OAAO,EAAE,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,+BAkKrC"}
@@ -0,0 +1,18 @@
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
+ export type GridCellSelectionEdge = 'top' | 'bottom' | 'start' | 'end';
3
+ export interface GridCellProps extends Omit<ComponentPropsWithRef<'td'>, 'prefix'> {
4
+ /** Plain content or a single control receiving the cell's control class. */
5
+ children?: ReactNode;
6
+ prefix?: ReactNode;
7
+ suffix?: ReactNode;
8
+ selected?: boolean;
9
+ /** Visual state. Set readOnly or disabled on the child control separately. */
10
+ readOnly?: boolean;
11
+ selectionEdges?: readonly GridCellSelectionEdge[];
12
+ dirty?: boolean;
13
+ /** Shows a spinner without changing the child control's interaction. */
14
+ busy?: boolean;
15
+ error?: string;
16
+ }
17
+ export declare function GridCell({ selected, readOnly, selectionEdges, dirty, busy, error, className, children, prefix, suffix, ...props }: GridCellProps): import('react').JSX.Element;
18
+ //# sourceMappingURL=GridCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridCell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Collection/Grid/componnets/GridCell/GridCell.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,MAAM,MAAM,qBAAqB,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;AAEvE,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,qBAAqB,CAAC,IAAI,CAAC,EAC3B,QAAQ,CACT;IACC,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAClD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wEAAwE;IACxE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AASD,wBAAgB,QAAQ,CAAC,EACvB,QAAgB,EAChB,QAAQ,EACR,cAAkC,EAClC,KAAa,EACb,IAAI,EACJ,KAAK,EACL,SAAS,EACT,QAAQ,EACR,MAAM,EACN,MAAM,EACN,GAAG,KAAK,EACT,EAAE,aAAa,+BAqCf"}
@@ -0,0 +1,3 @@
1
+ export { GridCell } from './GridCell';
2
+ export type { GridCellProps, GridCellSelectionEdge } from './GridCell';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Collection/Grid/componnets/GridCell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useGrid } from './useGrid';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Collection/Grid/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}