@1771technologies/lytenyte-pro 1.0.19 → 2.0.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (534) hide show
  1. package/css/all-colors.css +8 -0
  2. package/css/components/button.css +176 -0
  3. package/css/components/checkbox.css +54 -0
  4. package/css/components/input.css +64 -0
  5. package/css/components/tree-view.css +108 -0
  6. package/css/components.css +300 -0
  7. package/css/cotton-candy.css +1 -0
  8. package/css/dark.css +1 -0
  9. package/css/design.css +1 -0
  10. package/css/fonts.css +1 -0
  11. package/css/grid-full.css +3 -0
  12. package/css/grid.css +81 -0
  13. package/css/light-dark.css +3 -0
  14. package/css/light.css +1 -0
  15. package/css/pill-manager.css +184 -0
  16. package/css/shadcn-vars.css +1 -0
  17. package/css/shadcn.css +1 -0
  18. package/css/teal.css +1 -0
  19. package/css/term.css +1 -0
  20. package/css/tw.css +1 -0
  21. package/package.json +29 -16
  22. package/dist/+types.d.ts +0 -6177
  23. package/dist/+types.js +0 -1
  24. package/dist/__play__/cell-selections/cell-selection.play.d.ts +0 -5
  25. package/dist/__play__/cell-selections/cell-selection.play.js +0 -80
  26. package/dist/__play__/filter-select/filter-select.play.d.ts +0 -4
  27. package/dist/__play__/filter-select/filter-select.play.js +0 -76
  28. package/dist/__play__/test-utils/bank-data-smaller.d.ts +0 -19
  29. package/dist/__play__/test-utils/bank-data-smaller.js +0 -252
  30. package/dist/__play__/test-utils/row-handler.d.ts +0 -6
  31. package/dist/__play__/test-utils/row-handler.js +0 -32
  32. package/dist/cell-selection/adjust-rect-for-row-and-cell-span.d.ts +0 -2
  33. package/dist/cell-selection/adjust-rect-for-row-and-cell-span.js +0 -43
  34. package/dist/cell-selection/are-rects-equal.d.ts +0 -2
  35. package/dist/cell-selection/are-rects-equal.js +0 -6
  36. package/dist/cell-selection/bound-selection-rect.d.ts +0 -2
  37. package/dist/cell-selection/bound-selection-rect.js +0 -17
  38. package/dist/cell-selection/cell-selection-containers.d.ts +0 -3
  39. package/dist/cell-selection/cell-selection-containers.js +0 -91
  40. package/dist/cell-selection/cell-selection-driver.d.ts +0 -1
  41. package/dist/cell-selection/cell-selection-driver.js +0 -289
  42. package/dist/cell-selection/cell-style-row.d.ts +0 -8
  43. package/dist/cell-selection/cell-style-row.js +0 -84
  44. package/dist/cell-selection/deselect-rect-range.d.ts +0 -2
  45. package/dist/cell-selection/deselect-rect-range.js +0 -43
  46. package/dist/cell-selection/expand-cell-selection-down.d.ts +0 -5
  47. package/dist/cell-selection/expand-cell-selection-down.js +0 -39
  48. package/dist/cell-selection/expand-cell-selection-end.d.ts +0 -5
  49. package/dist/cell-selection/expand-cell-selection-end.js +0 -40
  50. package/dist/cell-selection/expand-cell-selection-start.d.ts +0 -5
  51. package/dist/cell-selection/expand-cell-selection-start.js +0 -39
  52. package/dist/cell-selection/expand-cell-selection-up.d.ts +0 -5
  53. package/dist/cell-selection/expand-cell-selection-up.js +0 -39
  54. package/dist/cell-selection/full-width-start-end-index.d.ts +0 -2
  55. package/dist/cell-selection/full-width-start-end-index.js +0 -5
  56. package/dist/cell-selection/get-root-cell.d.ts +0 -2
  57. package/dist/cell-selection/get-root-cell.js +0 -6
  58. package/dist/cell-selection/index.d.ts +0 -18
  59. package/dist/cell-selection/index.js +0 -18
  60. package/dist/cell-selection/is-bottom-rect.d.ts +0 -2
  61. package/dist/cell-selection/is-bottom-rect.js +0 -7
  62. package/dist/cell-selection/is-center-col-rect.d.ts +0 -5
  63. package/dist/cell-selection/is-center-col-rect.js +0 -5
  64. package/dist/cell-selection/is-center-rect.d.ts +0 -2
  65. package/dist/cell-selection/is-center-rect.js +0 -5
  66. package/dist/cell-selection/is-end-rect.d.ts +0 -5
  67. package/dist/cell-selection/is-end-rect.js +0 -4
  68. package/dist/cell-selection/is-overlapping-rect.d.ts +0 -2
  69. package/dist/cell-selection/is-overlapping-rect.js +0 -6
  70. package/dist/cell-selection/is-start-rect.d.ts +0 -5
  71. package/dist/cell-selection/is-start-rect.js +0 -4
  72. package/dist/cell-selection/is-top-rect.d.ts +0 -2
  73. package/dist/cell-selection/is-top-rect.js +0 -4
  74. package/dist/cell-selection/is-within-selection-rect.d.ts +0 -2
  75. package/dist/cell-selection/is-within-selection-rect.js +0 -3
  76. package/dist/cell-selection/split-cell-selection-rect.d.ts +0 -46
  77. package/dist/cell-selection/split-cell-selection-rect.js +0 -88
  78. package/dist/cell-selection/split-on-pivot.d.ts +0 -3
  79. package/dist/cell-selection/split-on-pivot.js +0 -50
  80. package/dist/cell-selection/update-additive-cell-selection.d.ts +0 -5
  81. package/dist/cell-selection/update-additive-cell-selection.js +0 -23
  82. package/dist/cell-selection/use-edge-scroll.d.ts +0 -10
  83. package/dist/cell-selection/use-edge-scroll.js +0 -66
  84. package/dist/column-manager/branch-lookup-context.d.ts +0 -4
  85. package/dist/column-manager/branch-lookup-context.js +0 -3
  86. package/dist/column-manager/branch.d.ts +0 -15
  87. package/dist/column-manager/branch.js +0 -54
  88. package/dist/column-manager/column-manager.d.ts +0 -13
  89. package/dist/column-manager/column-manager.js +0 -18
  90. package/dist/column-manager/context.d.ts +0 -7
  91. package/dist/column-manager/context.js +0 -3
  92. package/dist/column-manager/label.d.ts +0 -5
  93. package/dist/column-manager/label.js +0 -18
  94. package/dist/column-manager/leaf.d.ts +0 -6
  95. package/dist/column-manager/leaf.js +0 -58
  96. package/dist/column-manager/move-handle.d.ts +0 -5
  97. package/dist/column-manager/move-handle.js +0 -72
  98. package/dist/column-manager/panel.d.ts +0 -1
  99. package/dist/column-manager/panel.js +0 -2
  100. package/dist/column-manager/root.d.ts +0 -8
  101. package/dist/column-manager/root.js +0 -7
  102. package/dist/column-manager/use-column-manager.d.ts +0 -10
  103. package/dist/column-manager/use-column-manager.js +0 -24
  104. package/dist/column-manager/use-columns-from-context.d.ts +0 -3
  105. package/dist/column-manager/use-columns-from-context.js +0 -23
  106. package/dist/column-manager/visibility-checkbox.d.ts +0 -9
  107. package/dist/column-manager/visibility-checkbox.js +0 -30
  108. package/dist/context.d.ts +0 -11
  109. package/dist/context.js +0 -5
  110. package/dist/filter-selects/apply.d.ts +0 -7
  111. package/dist/filter-selects/apply.js +0 -22
  112. package/dist/filter-selects/clear.d.ts +0 -7
  113. package/dist/filter-selects/clear.js +0 -22
  114. package/dist/filter-selects/context.d.ts +0 -13
  115. package/dist/filter-selects/context.js +0 -3
  116. package/dist/filter-selects/filter-combinator.d.ts +0 -10
  117. package/dist/filter-selects/filter-combinator.js +0 -19
  118. package/dist/filter-selects/filter-row-context.d.ts +0 -30
  119. package/dist/filter-selects/filter-row-context.js +0 -3
  120. package/dist/filter-selects/filter-row.d.ts +0 -13
  121. package/dist/filter-selects/filter-row.js +0 -118
  122. package/dist/filter-selects/index.d.ts +0 -22
  123. package/dist/filter-selects/index.js +0 -20
  124. package/dist/filter-selects/is-complete-filter.d.ts +0 -2
  125. package/dist/filter-selects/is-complete-filter.js +0 -5
  126. package/dist/filter-selects/operator-select.d.ts +0 -14
  127. package/dist/filter-selects/operator-select.js +0 -25
  128. package/dist/filter-selects/options.d.ts +0 -9
  129. package/dist/filter-selects/options.js +0 -100
  130. package/dist/filter-selects/reset.d.ts +0 -7
  131. package/dist/filter-selects/reset.js +0 -22
  132. package/dist/filter-selects/root.d.ts +0 -14
  133. package/dist/filter-selects/root.js +0 -5
  134. package/dist/filter-selects/to-filter-item.d.ts +0 -3
  135. package/dist/filter-selects/to-filter-item.js +0 -7
  136. package/dist/filter-selects/use-filter-select.d.ts +0 -38
  137. package/dist/filter-selects/use-filter-select.js +0 -167
  138. package/dist/filter-selects/value-input.d.ts +0 -12
  139. package/dist/filter-selects/value-input.js +0 -27
  140. package/dist/filter-tree/branch.d.ts +0 -13
  141. package/dist/filter-tree/branch.js +0 -21
  142. package/dist/filter-tree/context.d.ts +0 -27
  143. package/dist/filter-tree/context.js +0 -5
  144. package/dist/filter-tree/filter-tree.d.ts +0 -14
  145. package/dist/filter-tree/filter-tree.js +0 -18
  146. package/dist/filter-tree/hooks/use-filter-tree.d.ts +0 -38
  147. package/dist/filter-tree/hooks/use-filter-tree.js +0 -101
  148. package/dist/filter-tree/hooks/use-tree-item.d.ts +0 -8
  149. package/dist/filter-tree/hooks/use-tree-item.js +0 -116
  150. package/dist/filter-tree/inclusion-checkbox.d.ts +0 -9
  151. package/dist/filter-tree/inclusion-checkbox.js +0 -14
  152. package/dist/filter-tree/label.d.ts +0 -5
  153. package/dist/filter-tree/label.js +0 -18
  154. package/dist/filter-tree/leaf.d.ts +0 -6
  155. package/dist/filter-tree/leaf.js +0 -14
  156. package/dist/filter-tree/root.d.ts +0 -13
  157. package/dist/filter-tree/root.js +0 -30
  158. package/dist/grid/cell.d.ts +0 -6
  159. package/dist/grid/cell.js +0 -3
  160. package/dist/grid/dialog-driver.d.ts +0 -1
  161. package/dist/grid/dialog-driver.js +0 -21
  162. package/dist/grid/header-cell.d.ts +0 -10
  163. package/dist/grid/header-cell.js +0 -3
  164. package/dist/grid/header-group-cell.d.ts +0 -6
  165. package/dist/grid/header-group-cell.js +0 -3
  166. package/dist/grid/header-row.d.ts +0 -5
  167. package/dist/grid/header-row.js +0 -2
  168. package/dist/grid/header.d.ts +0 -1
  169. package/dist/grid/header.js +0 -2
  170. package/dist/grid/popover-driver.d.ts +0 -1
  171. package/dist/grid/popover-driver.js +0 -21
  172. package/dist/grid/root.d.ts +0 -8
  173. package/dist/grid/root.js +0 -37
  174. package/dist/grid/row-full-width.d.ts +0 -9
  175. package/dist/grid/row-full-width.js +0 -3
  176. package/dist/grid/row.d.ts +0 -8
  177. package/dist/grid/row.js +0 -3
  178. package/dist/grid/rows-container.d.ts +0 -1
  179. package/dist/grid/rows-container.js +0 -2
  180. package/dist/grid/rows-sections.d.ts +0 -3
  181. package/dist/grid/rows-sections.js +0 -13
  182. package/dist/grid/viewport.d.ts +0 -1
  183. package/dist/grid/viewport.js +0 -9
  184. package/dist/grid-box/+types.d.ts +0 -15
  185. package/dist/grid-box/+types.js +0 -1
  186. package/dist/grid-box/context.d.ts +0 -9
  187. package/dist/grid-box/context.js +0 -3
  188. package/dist/grid-box/grid-box.d.ts +0 -12
  189. package/dist/grid-box/grid-box.js +0 -14
  190. package/dist/grid-box/item.d.ts +0 -10
  191. package/dist/grid-box/item.js +0 -62
  192. package/dist/grid-box/panel.d.ts +0 -1
  193. package/dist/grid-box/panel.js +0 -9
  194. package/dist/grid-box/root.d.ts +0 -9
  195. package/dist/grid-box/root.js +0 -8
  196. package/dist/grid-box/use-aggregation-box-items.d.ts +0 -18
  197. package/dist/grid-box/use-aggregation-box-items.js +0 -61
  198. package/dist/grid-box/use-column-box-items.d.ts +0 -34
  199. package/dist/grid-box/use-column-box-items.js +0 -78
  200. package/dist/grid-box/use-row-group-box-items.d.ts +0 -18
  201. package/dist/grid-box/use-row-group-box-items.js +0 -169
  202. package/dist/grid-provider/context.d.ts +0 -5
  203. package/dist/grid-provider/context.js +0 -2
  204. package/dist/grid-provider/provider.d.ts +0 -3
  205. package/dist/grid-provider/provider.js +0 -2
  206. package/dist/grid-provider/use-grid.d.ts +0 -3
  207. package/dist/grid-provider/use-grid.js +0 -3
  208. package/dist/grid.d.ts +0 -18
  209. package/dist/grid.js +0 -28
  210. package/dist/icons/index.d.ts +0 -1
  211. package/dist/icons/index.js +0 -1
  212. package/dist/index.d.ts +0 -14
  213. package/dist/index.js +0 -14
  214. package/dist/license/index.d.ts +0 -1
  215. package/dist/license/index.js +0 -1
  216. package/dist/license/license.d.ts +0 -3
  217. package/dist/license/license.js +0 -215
  218. package/dist/license/md5-hash.d.ts +0 -9
  219. package/dist/license/md5-hash.js +0 -167
  220. package/dist/license.d.ts +0 -3
  221. package/dist/license.js +0 -214
  222. package/dist/listbox/context.d.ts +0 -6
  223. package/dist/listbox/context.js +0 -3
  224. package/dist/listbox/item.d.ts +0 -1
  225. package/dist/listbox/item.js +0 -25
  226. package/dist/listbox/panel.d.ts +0 -1
  227. package/dist/listbox/panel.js +0 -50
  228. package/dist/listbox/root.d.ts +0 -6
  229. package/dist/listbox/root.js +0 -12
  230. package/dist/row-data-source-client/+constants.d.ts +0 -2
  231. package/dist/row-data-source-client/+constants.js +0 -2
  232. package/dist/row-data-source-client/+types.d.ts +0 -27
  233. package/dist/row-data-source-client/+types.js +0 -1
  234. package/dist/row-data-source-client/built-ins/avg.d.ts +0 -10
  235. package/dist/row-data-source-client/built-ins/avg.js +0 -16
  236. package/dist/row-data-source-client/built-ins/built-ins.d.ts +0 -44
  237. package/dist/row-data-source-client/built-ins/built-ins.js +0 -44
  238. package/dist/row-data-source-client/built-ins/count.d.ts +0 -10
  239. package/dist/row-data-source-client/built-ins/count.js +0 -16
  240. package/dist/row-data-source-client/built-ins/first.d.ts +0 -10
  241. package/dist/row-data-source-client/built-ins/first.js +0 -12
  242. package/dist/row-data-source-client/built-ins/group.d.ts +0 -1
  243. package/dist/row-data-source-client/built-ins/group.js +0 -3
  244. package/dist/row-data-source-client/built-ins/last.d.ts +0 -10
  245. package/dist/row-data-source-client/built-ins/last.js +0 -12
  246. package/dist/row-data-source-client/built-ins/max.d.ts +0 -11
  247. package/dist/row-data-source-client/built-ins/max.js +0 -25
  248. package/dist/row-data-source-client/built-ins/min.d.ts +0 -11
  249. package/dist/row-data-source-client/built-ins/min.js +0 -25
  250. package/dist/row-data-source-client/built-ins/sum.d.ts +0 -10
  251. package/dist/row-data-source-client/built-ins/sum.js +0 -21
  252. package/dist/row-data-source-client/filter/+types.d.ts +0 -23
  253. package/dist/row-data-source-client/filter/+types.js +0 -1
  254. package/dist/row-data-source-client/filter/compute-filtered-rows.d.ts +0 -2
  255. package/dist/row-data-source-client/filter/compute-filtered-rows.js +0 -109
  256. package/dist/row-data-source-client/pivots/create-agg-model.d.ts +0 -6
  257. package/dist/row-data-source-client/pivots/create-agg-model.js +0 -13
  258. package/dist/row-data-source-client/pivots/create-pivot-columns-from-paths.d.ts +0 -2
  259. package/dist/row-data-source-client/pivots/create-pivot-columns-from-paths.js +0 -50
  260. package/dist/row-data-source-client/pivots/create-pivot-columns.d.ts +0 -2
  261. package/dist/row-data-source-client/pivots/create-pivot-columns.js +0 -22
  262. package/dist/row-data-source-client/pivots/create-pivot-tree.d.ts +0 -2
  263. package/dist/row-data-source-client/pivots/create-pivot-tree.js +0 -23
  264. package/dist/row-data-source-client/tree/client-tree.d.ts +0 -18
  265. package/dist/row-data-source-client/tree/client-tree.js +0 -76
  266. package/dist/row-data-source-client/tree/evaluator-aggregation.d.ts +0 -2
  267. package/dist/row-data-source-client/tree/evaluator-aggregation.js +0 -8
  268. package/dist/row-data-source-client/tree/evaluator-group.d.ts +0 -2
  269. package/dist/row-data-source-client/tree/evaluator-group.js +0 -9
  270. package/dist/row-data-source-client/tree/traverse.d.ts +0 -2
  271. package/dist/row-data-source-client/tree/traverse.js +0 -22
  272. package/dist/row-data-source-client/use-client-data-source-paginated.d.ts +0 -10
  273. package/dist/row-data-source-client/use-client-data-source-paginated.js +0 -573
  274. package/dist/row-data-source-client/use-client-data-source.d.ts +0 -10
  275. package/dist/row-data-source-client/use-client-data-source.js +0 -667
  276. package/dist/row-data-source-client/use-client-tree-data-source.d.ts +0 -9
  277. package/dist/row-data-source-client/use-client-tree-data-source.js +0 -512
  278. package/dist/row-data-source-server/async-tree/+constants.async-tree.d.ts +0 -1
  279. package/dist/row-data-source-server/async-tree/+constants.async-tree.js +0 -1
  280. package/dist/row-data-source-server/async-tree/+types.async-tree.d.ts +0 -59
  281. package/dist/row-data-source-server/async-tree/+types.async-tree.js +0 -1
  282. package/dist/row-data-source-server/async-tree/apply-delete-action-to-tree.d.ts +0 -2
  283. package/dist/row-data-source-server/async-tree/apply-delete-action-to-tree.js +0 -27
  284. package/dist/row-data-source-server/async-tree/apply-set-action-to-tree.d.ts +0 -2
  285. package/dist/row-data-source-server/async-tree/apply-set-action-to-tree.js +0 -36
  286. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-unique.d.ts +0 -2
  287. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-unique.js +0 -24
  288. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-valid.d.ts +0 -2
  289. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-valid.js +0 -14
  290. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-fit.d.ts +0 -2
  291. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-fit.js +0 -18
  292. package/dist/row-data-source-server/async-tree/check-set-action-item-kinds.d.ts +0 -2
  293. package/dist/row-data-source-server/async-tree/check-set-action-item-kinds.js +0 -14
  294. package/dist/row-data-source-server/async-tree/get-parent-node-by-path.d.ts +0 -2
  295. package/dist/row-data-source-server/async-tree/get-parent-node-by-path.js +0 -18
  296. package/dist/row-data-source-server/async-tree/is-set-action-a-no-op-on-node.d.ts +0 -2
  297. package/dist/row-data-source-server/async-tree/is-set-action-a-no-op-on-node.js +0 -3
  298. package/dist/row-data-source-server/async-tree/make-async-tree.d.ts +0 -2
  299. package/dist/row-data-source-server/async-tree/make-async-tree.js +0 -19
  300. package/dist/row-data-source-server/async-tree/maybe-apply-parent-remove-self.d.ts +0 -2
  301. package/dist/row-data-source-server/async-tree/maybe-apply-parent-remove-self.js +0 -8
  302. package/dist/row-data-source-server/async-tree/maybe-apply-resize.d.ts +0 -2
  303. package/dist/row-data-source-server/async-tree/maybe-apply-resize.js +0 -17
  304. package/dist/row-data-source-server/async-tree/maybe-apply-set-action-items.d.ts +0 -2
  305. package/dist/row-data-source-server/async-tree/maybe-apply-set-action-items.js +0 -52
  306. package/dist/row-data-source-server/range-tree/range-tree.d.ts +0 -66
  307. package/dist/row-data-source-server/range-tree/range-tree.js +0 -102
  308. package/dist/row-data-source-server/server-data.d.ts +0 -70
  309. package/dist/row-data-source-server/server-data.js +0 -519
  310. package/dist/row-data-source-server/use-server-data-source.d.ts +0 -3
  311. package/dist/row-data-source-server/use-server-data-source.js +0 -413
  312. package/dist/row-data-source-server/utils/get-node-depth.d.ts +0 -2
  313. package/dist/row-data-source-server/utils/get-node-depth.js +0 -9
  314. package/dist/row-data-source-server/utils/get-node-path.d.ts +0 -2
  315. package/dist/row-data-source-server/utils/get-node-path.js +0 -9
  316. package/dist/row-data-source-server/utils/get-request-id.d.ts +0 -1
  317. package/dist/row-data-source-server/utils/get-request-id.js +0 -6
  318. package/dist/sort-manager/+types.d.ts +0 -13
  319. package/dist/sort-manager/+types.js +0 -1
  320. package/dist/sort-manager/context.d.ts +0 -14
  321. package/dist/sort-manager/context.js +0 -5
  322. package/dist/sort-manager/hooks/use-sort-manager.d.ts +0 -15
  323. package/dist/sort-manager/hooks/use-sort-manager.js +0 -56
  324. package/dist/sort-manager/hooks/use-sort-row-item.d.ts +0 -51
  325. package/dist/sort-manager/hooks/use-sort-row-item.js +0 -145
  326. package/dist/sort-manager/hooks/use-sortable-column-items.d.ts +0 -5
  327. package/dist/sort-manager/hooks/use-sortable-column-items.js +0 -13
  328. package/dist/sort-manager/root.d.ts +0 -3
  329. package/dist/sort-manager/root.js +0 -14
  330. package/dist/sort-manager/sort-add.d.ts +0 -8
  331. package/dist/sort-manager/sort-add.js +0 -14
  332. package/dist/sort-manager/sort-apply.d.ts +0 -7
  333. package/dist/sort-manager/sort-apply.js +0 -24
  334. package/dist/sort-manager/sort-cancel.d.ts +0 -7
  335. package/dist/sort-manager/sort-cancel.js +0 -27
  336. package/dist/sort-manager/sort-clear.d.ts +0 -7
  337. package/dist/sort-manager/sort-clear.js +0 -22
  338. package/dist/sort-manager/sort-column-select.d.ts +0 -10
  339. package/dist/sort-manager/sort-column-select.js +0 -20
  340. package/dist/sort-manager/sort-direction-select.d.ts +0 -10
  341. package/dist/sort-manager/sort-direction-select.js +0 -24
  342. package/dist/sort-manager/sort-manager.d.ts +0 -16
  343. package/dist/sort-manager/sort-manager.js +0 -26
  344. package/dist/sort-manager/sort-remove.d.ts +0 -7
  345. package/dist/sort-manager/sort-remove.js +0 -14
  346. package/dist/sort-manager/sort-row.d.ts +0 -5
  347. package/dist/sort-manager/sort-row.js +0 -7
  348. package/dist/sort-manager/sort-rows.d.ts +0 -1
  349. package/dist/sort-manager/sort-rows.js +0 -6
  350. package/dist/sort-manager/sort-value-select.d.ts +0 -11
  351. package/dist/sort-manager/sort-value-select.js +0 -25
  352. package/dist/sort-manager/utils/sort-item-to-sort-model.d.ts +0 -3
  353. package/dist/sort-manager/utils/sort-item-to-sort-model.js +0 -62
  354. package/dist/sort-manager/utils/sort-model-to-sort-items.d.ts +0 -3
  355. package/dist/sort-manager/utils/sort-model-to-sort-items.js +0 -50
  356. package/dist/state/+types.d.ts +0 -36
  357. package/dist/state/+types.js +0 -1
  358. package/dist/state/api/cell-root.d.ts +0 -5
  359. package/dist/state/api/cell-root.js +0 -65
  360. package/dist/state/api/column-autosize.d.ts +0 -5
  361. package/dist/state/api/column-autosize.js +0 -72
  362. package/dist/state/api/column-by-id.d.ts +0 -2
  363. package/dist/state/api/column-by-id.js +0 -6
  364. package/dist/state/api/column-field.d.ts +0 -2
  365. package/dist/state/api/column-field.js +0 -23
  366. package/dist/state/api/column-from-index.d.ts +0 -2
  367. package/dist/state/api/column-from-index.js +0 -6
  368. package/dist/state/api/column-group-toggle.d.ts +0 -2
  369. package/dist/state/api/column-group-toggle.js +0 -10
  370. package/dist/state/api/column-index.d.ts +0 -2
  371. package/dist/state/api/column-index.js +0 -7
  372. package/dist/state/api/column-move.d.ts +0 -2
  373. package/dist/state/api/column-move.js +0 -49
  374. package/dist/state/api/column-resize.d.ts +0 -2
  375. package/dist/state/api/column-resize.js +0 -9
  376. package/dist/state/api/column-update.d.ts +0 -5
  377. package/dist/state/api/column-update.js +0 -26
  378. package/dist/state/api/dialog-frame.d.ts +0 -8
  379. package/dist/state/api/dialog-frame.js +0 -16
  380. package/dist/state/api/edit-begin.d.ts +0 -5
  381. package/dist/state/api/edit-begin.js +0 -87
  382. package/dist/state/api/edit-end.d.ts +0 -5
  383. package/dist/state/api/edit-end.js +0 -43
  384. package/dist/state/api/edit-is-cell-active.d.ts +0 -5
  385. package/dist/state/api/edit-is-cell-active.js +0 -22
  386. package/dist/state/api/edit-update.d.ts +0 -5
  387. package/dist/state/api/edit-update.js +0 -88
  388. package/dist/state/api/event-listeners.d.ts +0 -5
  389. package/dist/state/api/event-listeners.js +0 -19
  390. package/dist/state/api/export-csv.d.ts +0 -3
  391. package/dist/state/api/export-csv.js +0 -40
  392. package/dist/state/api/export-data-rect.d.ts +0 -2
  393. package/dist/state/api/export-data-rect.js +0 -24
  394. package/dist/state/api/popover-frame.d.ts +0 -8
  395. package/dist/state/api/popover-frame.js +0 -16
  396. package/dist/state/api/position-from-element.d.ts +0 -5
  397. package/dist/state/api/position-from-element.js +0 -9
  398. package/dist/state/api/row-by-id.d.ts +0 -2
  399. package/dist/state/api/row-by-id.js +0 -5
  400. package/dist/state/api/row-by-index.d.ts +0 -2
  401. package/dist/state/api/row-by-index.js +0 -9
  402. package/dist/state/api/row-detail-is-expanded.d.ts +0 -2
  403. package/dist/state/api/row-detail-is-expanded.js +0 -6
  404. package/dist/state/api/row-detail-rendered-height.d.ts +0 -5
  405. package/dist/state/api/row-detail-rendered-height.js +0 -14
  406. package/dist/state/api/row-detail-toggle.d.ts +0 -2
  407. package/dist/state/api/row-detail-toggle.js +0 -32
  408. package/dist/state/api/row-group-apply-expansions.d.ts +0 -2
  409. package/dist/state/api/row-group-apply-expansions.js +0 -20
  410. package/dist/state/api/row-group-column-index.d.ts +0 -2
  411. package/dist/state/api/row-group-column-index.js +0 -14
  412. package/dist/state/api/row-group-is-expanded.d.ts +0 -2
  413. package/dist/state/api/row-group-is-expanded.js +0 -15
  414. package/dist/state/api/row-group-toggle.d.ts +0 -2
  415. package/dist/state/api/row-group-toggle.js +0 -7
  416. package/dist/state/api/row-handle-select.d.ts +0 -5
  417. package/dist/state/api/row-handle-select.js +0 -43
  418. package/dist/state/api/row-select-all.d.ts +0 -2
  419. package/dist/state/api/row-select-all.js +0 -17
  420. package/dist/state/api/row-select.d.ts +0 -5
  421. package/dist/state/api/row-select.js +0 -35
  422. package/dist/state/api/row-selected.d.ts +0 -2
  423. package/dist/state/api/row-selected.js +0 -13
  424. package/dist/state/api/scroll-into-view.d.ts +0 -5
  425. package/dist/state/api/scroll-into-view.js +0 -50
  426. package/dist/state/api/sort-for-column.d.ts +0 -2
  427. package/dist/state/api/sort-for-column.js +0 -9
  428. package/dist/state/api/use-row-drag.d.ts +0 -2
  429. package/dist/state/api/use-row-drag.js +0 -20
  430. package/dist/state/helpers/cell-row-group.d.ts +0 -2
  431. package/dist/state/helpers/cell-row-group.js +0 -19
  432. package/dist/state/helpers/column-add-row-group.d.ts +0 -10
  433. package/dist/state/helpers/column-add-row-group.js +0 -74
  434. package/dist/state/helpers/column-layout.d.ts +0 -3
  435. package/dist/state/helpers/column-layout.js +0 -59
  436. package/dist/state/helpers/column-marker.d.ts +0 -8
  437. package/dist/state/helpers/column-marker.js +0 -45
  438. package/dist/state/helpers/column-view.d.ts +0 -21
  439. package/dist/state/helpers/column-view.js +0 -33
  440. package/dist/state/helpers/edit-on-change.d.ts +0 -15
  441. package/dist/state/helpers/edit-on-change.js +0 -27
  442. package/dist/state/helpers/empty-row-data-source.d.ts +0 -2
  443. package/dist/state/helpers/empty-row-data-source.js +0 -18
  444. package/dist/state/helpers/get-data-rect.d.ts +0 -13
  445. package/dist/state/helpers/get-data-rect.js +0 -65
  446. package/dist/state/helpers/get-full-width-callback.d.ts +0 -2
  447. package/dist/state/helpers/get-full-width-callback.js +0 -10
  448. package/dist/state/helpers/get-span-callback.d.ts +0 -2
  449. package/dist/state/helpers/get-span-callback.js +0 -22
  450. package/dist/state/helpers/resolve-column.d.ts +0 -4
  451. package/dist/state/helpers/resolve-column.js +0 -29
  452. package/dist/state/helpers/row-layout/get-focus-criteria.d.ts +0 -17
  453. package/dist/state/helpers/row-layout/get-focus-criteria.js +0 -62
  454. package/dist/state/helpers/row-layout/row-layout.d.ts +0 -19
  455. package/dist/state/helpers/row-layout/row-layout.js +0 -162
  456. package/dist/state/use-lytenyte.d.ts +0 -3
  457. package/dist/state/use-lytenyte.js +0 -686
  458. package/dist/tree-view/branch/branch.d.ts +0 -14
  459. package/dist/tree-view/branch/branch.js +0 -63
  460. package/dist/tree-view/branch/use-branch-keys.d.ts +0 -2
  461. package/dist/tree-view/branch/use-branch-keys.js +0 -87
  462. package/dist/tree-view/context.d.ts +0 -22
  463. package/dist/tree-view/context.js +0 -3
  464. package/dist/tree-view/depth-provider.d.ts +0 -2
  465. package/dist/tree-view/depth-provider.js +0 -3
  466. package/dist/tree-view/hooks/use-tree-view-paths.d.ts +0 -2
  467. package/dist/tree-view/hooks/use-tree-view-paths.js +0 -9
  468. package/dist/tree-view/index.d.ts +0 -16
  469. package/dist/tree-view/index.js +0 -16
  470. package/dist/tree-view/leaf.d.ts +0 -4
  471. package/dist/tree-view/leaf.js +0 -28
  472. package/dist/tree-view/navigation/get-all-ids.d.ts +0 -1
  473. package/dist/tree-view/navigation/get-all-ids.js +0 -7
  474. package/dist/tree-view/navigation/get-first-node.d.ts +0 -1
  475. package/dist/tree-view/navigation/get-first-node.js +0 -7
  476. package/dist/tree-view/navigation/get-last-node.d.ts +0 -1
  477. package/dist/tree-view/navigation/get-last-node.js +0 -7
  478. package/dist/tree-view/navigation/get-next-node.d.ts +0 -1
  479. package/dist/tree-view/navigation/get-next-node.js +0 -13
  480. package/dist/tree-view/navigation/get-prev-node.d.ts +0 -1
  481. package/dist/tree-view/navigation/get-prev-node.js +0 -13
  482. package/dist/tree-view/panel/make-handle-navigation.d.ts +0 -2
  483. package/dist/tree-view/panel/make-handle-navigation.js +0 -39
  484. package/dist/tree-view/panel/make-handle-selection.d.ts +0 -2
  485. package/dist/tree-view/panel/make-handle-selection.js +0 -92
  486. package/dist/tree-view/panel/make-handle-typeahead.d.ts +0 -1
  487. package/dist/tree-view/panel/make-handle-typeahead.js +0 -45
  488. package/dist/tree-view/panel/panel.d.ts +0 -1
  489. package/dist/tree-view/panel/panel.js +0 -30
  490. package/dist/tree-view/panel/use-tree-navigation.d.ts +0 -1
  491. package/dist/tree-view/panel/use-tree-navigation.js +0 -63
  492. package/dist/tree-view/root.d.ts +0 -17
  493. package/dist/tree-view/root.js +0 -63
  494. package/dist/tree-view/utils/get-focusable-nodes.d.ts +0 -1
  495. package/dist/tree-view/utils/get-focusable-nodes.js +0 -5
  496. package/dist/tree-view/utils/get-focused-node.d.ts +0 -1
  497. package/dist/tree-view/utils/get-focused-node.js +0 -14
  498. package/dist/tree-view/utils/get-ids-between-nodes.d.ts +0 -1
  499. package/dist/tree-view/utils/get-ids-between-nodes.js +0 -15
  500. package/dist/tree-view/utils/get-panel.d.ts +0 -1
  501. package/dist/tree-view/utils/get-panel.js +0 -7
  502. package/dist/tree-view/utils/get-parent-node.d.ts +0 -1
  503. package/dist/tree-view/utils/get-parent-node.js +0 -10
  504. package/dist/tree-view/utils/get-sibling-branches.d.ts +0 -1
  505. package/dist/tree-view/utils/get-sibling-branches.js +0 -14
  506. package/dist/tree-view/utils/get-tree-node-id.d.ts +0 -1
  507. package/dist/tree-view/utils/get-tree-node-id.js +0 -3
  508. package/dist/tree-view/utils/is-branch-node.d.ts +0 -1
  509. package/dist/tree-view/utils/is-branch-node.js +0 -3
  510. package/dist/tree-view/utils/is-leaf-node.d.ts +0 -1
  511. package/dist/tree-view/utils/is-leaf-node.js +0 -3
  512. package/dist/tree-view/utils/is-tree-node-disabled.d.ts +0 -1
  513. package/dist/tree-view/utils/is-tree-node-disabled.js +0 -3
  514. package/dist/tree-view/utils/select-node.d.ts +0 -2
  515. package/dist/tree-view/utils/select-node.js +0 -15
  516. package/dist/tree-view/utils/toggle-all-selections.d.ts +0 -2
  517. package/dist/tree-view/utils/toggle-all-selections.js +0 -9
  518. package/dist/tree-view/utils/toggle-selection.d.ts +0 -2
  519. package/dist/tree-view/utils/toggle-selection.js +0 -21
  520. package/dist/tree-view/virtualized/force-sync-scrolling.d.ts +0 -2
  521. package/dist/tree-view/virtualized/force-sync-scrolling.js +0 -23
  522. package/dist/tree-view/virtualized/get-virtual-tree-paths.d.ts +0 -2
  523. package/dist/tree-view/virtualized/get-virtual-tree-paths.js +0 -14
  524. package/dist/tree-view/virtualized/make-virtual-tree.d.ts +0 -31
  525. package/dist/tree-view/virtualized/make-virtual-tree.js +0 -90
  526. package/dist/tree-view/virtualized/use-flattened-tree.d.ts +0 -9
  527. package/dist/tree-view/virtualized/use-flattened-tree.js +0 -36
  528. package/dist/tree-view/virtualized/use-row-start-and-end.d.ts +0 -2
  529. package/dist/tree-view/virtualized/use-row-start-and-end.js +0 -27
  530. package/dist/tree-view/virtualized/use-virtualized-tree.d.ts +0 -22
  531. package/dist/tree-view/virtualized/use-virtualized-tree.js +0 -100
  532. package/dist/types/types.d.ts +0 -8
  533. package/dist/types/types.js +0 -1
  534. package/main.css +0 -453
@@ -1,40 +0,0 @@
1
- import { getRootCell } from "./get-root-cell.js";
2
- export function expandCellSelectionEnd(grid, meta) {
3
- const selections = grid.state.cellSelections.get();
4
- const cellSelectionPivot = grid.internal.cellSelectionPivot.get();
5
- const rect = selections.at(-1);
6
- const pivot = cellSelectionPivot;
7
- if (!rect || !pivot)
8
- return;
9
- if (meta) {
10
- const colCount = grid.state.columnMeta.get().columnsVisible.length;
11
- if (pivot.columnStart === colCount - 1)
12
- return;
13
- const next = { ...rect, columnStart: pivot.columnStart, columnEnd: colCount };
14
- const nextSelections = [...selections];
15
- nextSelections[nextSelections.length - 1] = next;
16
- grid.state.cellSelections.set(nextSelections);
17
- return;
18
- }
19
- let next;
20
- let focusColumn;
21
- if (rect.columnStart < pivot.columnStart) {
22
- let colOffset = 1;
23
- for (let i = rect.rowStart; i < rect.rowEnd; i++) {
24
- const cell = getRootCell(grid, i, rect.columnStart);
25
- if (cell)
26
- colOffset = Math.max(colOffset, cell.colSpan);
27
- }
28
- focusColumn = rect.columnStart + colOffset;
29
- next = { ...rect, columnStart: focusColumn };
30
- }
31
- else {
32
- focusColumn = rect.columnEnd + 1;
33
- next = { ...rect, columnEnd: focusColumn };
34
- focusColumn -= 1;
35
- }
36
- grid.api.scrollIntoView({ column: focusColumn });
37
- const nextSelections = [...selections];
38
- nextSelections[nextSelections.length - 1] = next;
39
- grid.state.cellSelections.set(nextSelections);
40
- }
@@ -1,5 +0,0 @@
1
- import type { InternalAtoms } from "../state/+types.js";
2
- import type { Grid } from "../+types.js";
3
- export declare function expandCellSelectionStart(grid: Grid<any> & {
4
- internal: InternalAtoms;
5
- }, meta: boolean): void;
@@ -1,39 +0,0 @@
1
- import { getRootCell } from "./get-root-cell.js";
2
- export function expandCellSelectionStart(grid, meta) {
3
- const selections = grid.state.cellSelections.get();
4
- const cellSelectionPivot = grid.internal.cellSelectionPivot.get();
5
- const rect = selections.at(-1);
6
- const pivot = cellSelectionPivot;
7
- if (!rect || !pivot)
8
- return;
9
- if (meta) {
10
- if (pivot.columnStart === 0)
11
- return;
12
- const next = { ...rect, columnStart: 0, columnEnd: pivot.columnEnd };
13
- const nextSelections = [...selections];
14
- nextSelections[nextSelections.length - 1] = next;
15
- grid.state.cellSelections.set(nextSelections);
16
- return;
17
- }
18
- let next;
19
- let focusColumn;
20
- if (rect.columnEnd > pivot.columnEnd) {
21
- let colOffset = 1;
22
- for (let i = rect.rowStart; i < rect.rowEnd; i++) {
23
- const cell = getRootCell(grid, i, rect.columnEnd - 1);
24
- if (cell)
25
- colOffset = Math.max(colOffset, cell.colSpan);
26
- }
27
- focusColumn = rect.columnEnd - colOffset;
28
- next = { ...rect, columnEnd: focusColumn };
29
- focusColumn -= 1;
30
- }
31
- else {
32
- focusColumn = rect.columnStart - 1;
33
- next = { ...rect, columnStart: focusColumn };
34
- }
35
- grid.api.scrollIntoView({ column: focusColumn });
36
- const nextSelections = [...selections];
37
- nextSelections[nextSelections.length - 1] = next;
38
- grid.state.cellSelections.set(nextSelections);
39
- }
@@ -1,5 +0,0 @@
1
- import type { InternalAtoms } from "../state/+types.js";
2
- import type { Grid } from "../+types.js";
3
- export declare function expandCellSelectionUp(grid: Grid<any> & {
4
- internal: InternalAtoms;
5
- }, meta: boolean): void;
@@ -1,39 +0,0 @@
1
- import { getRootCell } from "./get-root-cell.js";
2
- export function expandCellSelectionUp(grid, meta) {
3
- const selections = grid.state.cellSelections.get();
4
- const cellSelectionPivot = grid.internal.cellSelectionPivot.get();
5
- const rect = selections.at(-1);
6
- const pivot = cellSelectionPivot;
7
- if (!rect || !pivot)
8
- return;
9
- if (meta) {
10
- if (pivot.rowStart === 0)
11
- return;
12
- const next = { ...rect, rowEnd: pivot.rowEnd, rowStart: 0 };
13
- const nextSelections = [...selections];
14
- nextSelections[nextSelections.length - 1] = next;
15
- grid.state.cellSelections.set(nextSelections);
16
- return;
17
- }
18
- let next;
19
- let focusRow;
20
- if (rect.rowEnd > pivot.rowEnd) {
21
- let rowOffset = 1;
22
- for (let i = rect.columnStart; i < rect.columnEnd; i++) {
23
- const cell = getRootCell(grid, rect.rowEnd - 1, i);
24
- if (cell)
25
- rowOffset = Math.max(rowOffset, cell.rowSpan);
26
- }
27
- focusRow = rect.rowEnd - rowOffset;
28
- next = { ...rect, rowEnd: focusRow };
29
- focusRow -= 1;
30
- }
31
- else {
32
- focusRow = rect.rowStart - 1;
33
- next = { ...rect, rowStart: focusRow };
34
- }
35
- grid.api.scrollIntoView({ row: focusRow });
36
- const nextSelections = [...selections];
37
- nextSelections[nextSelections.length - 1] = next;
38
- grid.state.cellSelections.set(nextSelections);
39
- }
@@ -1,2 +0,0 @@
1
- import type { Grid } from "../+types.js";
2
- export declare function fullWidthStartEndIndex(grid: Grid<any>): number[];
@@ -1,5 +0,0 @@
1
- export function fullWidthStartEndIndex(grid) {
2
- const meta = grid.state.columnMeta.get();
3
- const lastIndex = meta.columnsVisible.length;
4
- return [0, lastIndex];
5
- }
@@ -1,2 +0,0 @@
1
- import type { Grid, PositionGridCell } from "../+types.js";
2
- export declare const getRootCell: (grid: Grid<any>, rowIndex: number, columnIndex: number) => PositionGridCell["root"];
@@ -1,6 +0,0 @@
1
- export const getRootCell = (grid, rowIndex, columnIndex) => {
2
- const c = grid.api.cellRoot(rowIndex, columnIndex);
3
- if (!c || c.kind === "full-width")
4
- return null;
5
- return c.root;
6
- };
@@ -1,18 +0,0 @@
1
- export { isWithinSelectionRect } from "./is-within-selection-rect.js";
2
- export { splitCellSelectionRect } from "./split-cell-selection-rect.js";
3
- export { boundSelectionRect } from "./bound-selection-rect.js";
4
- export { fullWidthStartEndIndex } from "./full-width-start-end-index.js";
5
- export { areRectsEqual } from "./are-rects-equal.js";
6
- export { deselectRectRange } from "./deselect-rect-range.js";
7
- export { adjustRectForRowAndCellSpan } from "./adjust-rect-for-row-and-cell-span.js";
8
- export { updateAdditiveCellSelection } from "./update-additive-cell-selection.js";
9
- export { expandCellSelectionDown } from "./expand-cell-selection-down.js";
10
- export { expandCellSelectionUp } from "./expand-cell-selection-up.js";
11
- export { expandCellSelectionStart } from "./expand-cell-selection-start.js";
12
- export { expandCellSelectionEnd } from "./expand-cell-selection-end.js";
13
- export { isBottomRect } from "./is-bottom-rect.js";
14
- export { isCenterRect } from "./is-center-rect.js";
15
- export { isTopRect } from "./is-top-rect.js";
16
- export { isCenterColRect } from "./is-center-col-rect.js";
17
- export { isStartRect } from "./is-start-rect.js";
18
- export { isEndRect } from "./is-end-rect.js";
@@ -1,18 +0,0 @@
1
- export { isWithinSelectionRect } from "./is-within-selection-rect.js";
2
- export { splitCellSelectionRect } from "./split-cell-selection-rect.js";
3
- export { boundSelectionRect } from "./bound-selection-rect.js";
4
- export { fullWidthStartEndIndex } from "./full-width-start-end-index.js";
5
- export { areRectsEqual } from "./are-rects-equal.js";
6
- export { deselectRectRange } from "./deselect-rect-range.js";
7
- export { adjustRectForRowAndCellSpan } from "./adjust-rect-for-row-and-cell-span.js";
8
- export { updateAdditiveCellSelection } from "./update-additive-cell-selection.js";
9
- export { expandCellSelectionDown } from "./expand-cell-selection-down.js";
10
- export { expandCellSelectionUp } from "./expand-cell-selection-up.js";
11
- export { expandCellSelectionStart } from "./expand-cell-selection-start.js";
12
- export { expandCellSelectionEnd } from "./expand-cell-selection-end.js";
13
- export { isBottomRect } from "./is-bottom-rect.js";
14
- export { isCenterRect } from "./is-center-rect.js";
15
- export { isTopRect } from "./is-top-rect.js";
16
- export { isCenterColRect } from "./is-center-col-rect.js";
17
- export { isStartRect } from "./is-start-rect.js";
18
- export { isEndRect } from "./is-end-rect.js";
@@ -1,2 +0,0 @@
1
- import type { DataRect, Grid } from "../+types.js";
2
- export declare function isBottomRect(grid: Grid<any>, rect: DataRect): boolean;
@@ -1,7 +0,0 @@
1
- export function isBottomRect(grid, rect) {
2
- const s = grid.state.rowDataStore;
3
- const rowCount = s.rowCount.get();
4
- const botCount = s.rowBottomCount.get();
5
- const bottomStart = rowCount - botCount;
6
- return rect.rowStart >= bottomStart;
7
- }
@@ -1,5 +0,0 @@
1
- import type { Grid } from "../+types.js";
2
- export declare function isCenterColRect(grid: Grid<any>, rect: {
3
- columnStart: number;
4
- columnEnd: number;
5
- }): boolean;
@@ -1,5 +0,0 @@
1
- export function isCenterColRect(grid, rect) {
2
- const s = grid.state.columnMeta.get();
3
- return (rect.columnStart >= s.columnVisibleStartCount &&
4
- rect.columnStart < s.columnVisibleCenterCount + s.columnVisibleStartCount);
5
- }
@@ -1,2 +0,0 @@
1
- import type { DataRect, Grid } from "../+types.js";
2
- export declare function isCenterRect(grid: Grid<any>, rect: DataRect): boolean;
@@ -1,5 +0,0 @@
1
- export function isCenterRect(grid, rect) {
2
- const ds = grid.state.rowDataStore;
3
- const bottomStart = ds.rowCount.get() - ds.rowBottomCount.get();
4
- return rect.rowStart < bottomStart && rect.rowStart >= ds.rowTopCount.get();
5
- }
@@ -1,5 +0,0 @@
1
- import type { Grid } from "../+types.js";
2
- export declare function isEndRect(grid: Grid<any>, rect: {
3
- columnStart: number;
4
- columnEnd: number;
5
- }): boolean;
@@ -1,4 +0,0 @@
1
- export function isEndRect(grid, rect) {
2
- const meta = grid.state.columnMeta.get();
3
- return rect.columnStart >= meta.columnVisibleStartCount + meta.columnVisibleCenterCount;
4
- }
@@ -1,2 +0,0 @@
1
- import type { DataRect } from "../+types.js";
2
- export declare function isOverlappingRect(rect1: DataRect, rect2: DataRect): boolean;
@@ -1,6 +0,0 @@
1
- export function isOverlappingRect(rect1, rect2) {
2
- return !(rect1.rowEnd < rect2.rowStart ||
3
- rect1.rowStart > rect2.rowEnd ||
4
- rect1.columnEnd < rect2.columnStart ||
5
- rect1.columnStart > rect2.columnEnd);
6
- }
@@ -1,5 +0,0 @@
1
- import type { Grid } from "../+types.js";
2
- export declare function isStartRect(grid: Grid<any>, rect: {
3
- columnStart: number;
4
- columnEnd: number;
5
- }): boolean;
@@ -1,4 +0,0 @@
1
- export function isStartRect(grid, rect) {
2
- const meta = grid.state.columnMeta.get();
3
- return rect.columnStart < meta.columnVisibleStartCount;
4
- }
@@ -1,2 +0,0 @@
1
- import type { DataRect, Grid } from "../+types.js";
2
- export declare function isTopRect(grid: Grid<any>, rect: DataRect): boolean;
@@ -1,4 +0,0 @@
1
- export function isTopRect(grid, rect) {
2
- const topCount = grid.state.rowDataStore.rowTopCount.get();
3
- return rect.rowStart < topCount;
4
- }
@@ -1,2 +0,0 @@
1
- import type { DataRect } from "../+types.js";
2
- export declare function isWithinSelectionRect(rect: DataRect, r: number, c: number): boolean;
@@ -1,3 +0,0 @@
1
- export function isWithinSelectionRect(rect, r, c) {
2
- return r >= rect.rowStart && r < rect.rowEnd && c >= rect.columnStart && c < rect.columnEnd;
3
- }
@@ -1,46 +0,0 @@
1
- import type { DataRect } from "../+types.js";
2
- interface SplitCellSelectionRectArgs {
3
- readonly rect: DataRect;
4
- readonly colStartCount: number;
5
- readonly colCenterCount: number;
6
- readonly rowTopCount: number;
7
- readonly rowCenterCount: number;
8
- }
9
- export interface DataRectSplit extends DataRect {
10
- readonly isUnit: boolean;
11
- readonly borderTop?: boolean;
12
- readonly borderBottom?: boolean;
13
- readonly borderStart?: boolean;
14
- readonly borderEnd?: boolean;
15
- }
16
- /**
17
- * Splits a cell selection rectangle into multiple rectangles when it crosses specified boundary regions.
18
- * This is useful for handling selections that span across different grid sections (e.g., fixed columns/rows,
19
- * scrollable areas).
20
- *
21
- * The splitting process happens in two phases:
22
- * 1. Column-wise splitting: Splits rectangles that cross column section boundaries
23
- * 2. Row-wise splitting: Further splits the resulting rectangles if they cross row section boundaries
24
- *
25
- * Splitting does not support full width rows. It is assumed that if full width rows are present then
26
- * the cell selection will just be drawn over them
27
- *
28
- * @example
29
- * // For a grid with 2 fixed start columns and 1 fixed top row:
30
- * const splits = splitCellSelectionRect({
31
- * rect: { columnStart: 0, columnEnd: 3, rowStart: 0, rowEnd: 2 },
32
- * colStartCount: 2, // Number of fixed start columns
33
- * colCenterCount: 10, // Number of scrollable columns
34
- * rowTopCount: 1, // Number of fixed top rows
35
- * rowCenterCount: 50 // Number of scrollable rows
36
- * });
37
- *
38
- * @param rect - The original cell selection rectangle to split
39
- * @param colStartCount - Number of columns in the start (usually fixed) section
40
- * @param colCenterCount - Number of columns in the center (usually scrollable) section
41
- * @param rowTopCount - Number of rows in the top (usually fixed) section
42
- * @param rowCenterCount - Number of rows in the center (usually scrollable) section
43
- * @returns An array of split rectangles. If no splits were necessary, returns an array with just the original rectangle
44
- */
45
- export declare function splitCellSelectionRect({ rect, colStartCount, colCenterCount, rowTopCount, rowCenterCount, }: SplitCellSelectionRectArgs): DataRectSplit[];
46
- export {};
@@ -1,88 +0,0 @@
1
- /**
2
- * Splits a cell selection rectangle into multiple rectangles when it crosses specified boundary regions.
3
- * This is useful for handling selections that span across different grid sections (e.g., fixed columns/rows,
4
- * scrollable areas).
5
- *
6
- * The splitting process happens in two phases:
7
- * 1. Column-wise splitting: Splits rectangles that cross column section boundaries
8
- * 2. Row-wise splitting: Further splits the resulting rectangles if they cross row section boundaries
9
- *
10
- * Splitting does not support full width rows. It is assumed that if full width rows are present then
11
- * the cell selection will just be drawn over them
12
- *
13
- * @example
14
- * // For a grid with 2 fixed start columns and 1 fixed top row:
15
- * const splits = splitCellSelectionRect({
16
- * rect: { columnStart: 0, columnEnd: 3, rowStart: 0, rowEnd: 2 },
17
- * colStartCount: 2, // Number of fixed start columns
18
- * colCenterCount: 10, // Number of scrollable columns
19
- * rowTopCount: 1, // Number of fixed top rows
20
- * rowCenterCount: 50 // Number of scrollable rows
21
- * });
22
- *
23
- * @param rect - The original cell selection rectangle to split
24
- * @param colStartCount - Number of columns in the start (usually fixed) section
25
- * @param colCenterCount - Number of columns in the center (usually scrollable) section
26
- * @param rowTopCount - Number of rows in the top (usually fixed) section
27
- * @param rowCenterCount - Number of rows in the center (usually scrollable) section
28
- * @returns An array of split rectangles. If no splits were necessary, returns an array with just the original rectangle
29
- */
30
- export function splitCellSelectionRect({ rect, colStartCount, colCenterCount, rowTopCount, rowCenterCount, }) {
31
- // Calculate the boundary positions for columns
32
- const colStartBound = colStartCount;
33
- const colEndBound = colStartCount + colCenterCount;
34
- const isUnit = rect.rowEnd - rect.rowStart === 1 && rect.columnEnd - rect.columnStart === 1;
35
- const colSplits = [];
36
- // Handle column splits first
37
- // Case 1: Selection starts before the fixed columns and extends into the scrollable area
38
- if (rect.columnStart < colStartBound && rect.columnEnd > colStartBound) {
39
- const startSplit = {
40
- ...rect,
41
- columnEnd: colStartBound,
42
- isUnit,
43
- };
44
- colSplits.push(startSplit);
45
- rect = { ...rect, columnStart: colStartBound };
46
- }
47
- // Case 2: Selection starts in the scrollable area and extends into the end section
48
- if (rect.columnStart < colEndBound && rect.columnEnd > colEndBound) {
49
- const endSplit = {
50
- ...rect,
51
- columnStart: colEndBound,
52
- isUnit,
53
- };
54
- rect = { ...rect, columnEnd: colEndBound };
55
- colSplits.push(endSplit);
56
- }
57
- // Add the remaining rectangle after column splits
58
- colSplits.push({ ...rect, isUnit });
59
- // Calculate the boundary positions for rows
60
- const topBound = rowTopCount;
61
- const bottomBound = rowTopCount + rowCenterCount;
62
- // Process row splits for each column-split rectangle
63
- const rowSplits = [];
64
- for (let split of colSplits) {
65
- // Case 1: Selection spans from top section into center section
66
- if (split.rowStart < topBound && split.rowEnd > topBound) {
67
- const topSplit = { ...split, rowEnd: topBound, isUnit };
68
- split = { ...split, rowStart: topBound };
69
- rowSplits.push(topSplit);
70
- }
71
- // Case 2: Selection spans from center section into bottom section
72
- if (split.rowStart < bottomBound && split.rowEnd > bottomBound) {
73
- const bottomSplit = {
74
- ...split,
75
- rowStart: bottomBound,
76
- isUnit,
77
- };
78
- split = { ...split, rowEnd: bottomBound };
79
- rowSplits.push(bottomSplit);
80
- }
81
- rowSplits.push(split);
82
- }
83
- return rowSplits
84
- .map((c) => ({ ...c, borderTop: true, borderBottom: true, borderEnd: true, borderStart: true }))
85
- .sort((l, r) => {
86
- return l.rowStart - r.rowStart || l.columnStart - r.columnStart;
87
- });
88
- }
@@ -1,3 +0,0 @@
1
- import type { DataRect } from "../+types";
2
- import type { DataRectSplit } from "./split-cell-selection-rect";
3
- export declare function splitOnPivot(rect: DataRectSplit, pivot: DataRect): DataRectSplit[] | null;
@@ -1,50 +0,0 @@
1
- import { areRectsEqual } from "./are-rects-equal.js";
2
- export function splitOnPivot(rect, pivot) {
3
- if (rect.isUnit || areRectsEqual(rect, pivot))
4
- return null;
5
- const splits = [];
6
- const isAfter = pivot.columnStart > rect.columnStart;
7
- const isSame = pivot.columnStart === rect.columnStart && pivot.columnEnd === rect.columnEnd;
8
- // The pivot is on the right side of the rect. So we split by end
9
- if (isAfter) {
10
- const split = { ...rect, columnEnd: rect.columnEnd - 1, borderEnd: false };
11
- if (split.columnStart !== split.columnEnd)
12
- splits.push(split);
13
- }
14
- else {
15
- const split = {
16
- ...rect,
17
- columnStart: rect.columnStart + 1,
18
- borderStart: false,
19
- };
20
- if (split.columnStart !== split.columnEnd)
21
- splits.push(split);
22
- }
23
- if (pivot.rowStart > rect.rowStart) {
24
- const split = {
25
- ...rect,
26
- columnStart: pivot.columnStart,
27
- columnEnd: pivot.columnEnd,
28
- rowEnd: rect.rowEnd - 1,
29
- borderBottom: false,
30
- borderStart: !isAfter,
31
- borderEnd: isSame || isAfter,
32
- };
33
- if (split.rowStart !== split.rowEnd)
34
- splits.push(split);
35
- }
36
- else {
37
- const split = {
38
- ...rect,
39
- columnStart: pivot.columnStart,
40
- columnEnd: pivot.columnEnd,
41
- rowStart: rect.rowStart + 1,
42
- borderTop: false,
43
- borderStart: !isAfter,
44
- borderEnd: isSame || isAfter,
45
- };
46
- if (split.rowStart !== split.rowEnd)
47
- splits.push(split);
48
- }
49
- return splits;
50
- }
@@ -1,5 +0,0 @@
1
- import type { DataRect, Grid } from "../+types.js";
2
- import type { InternalAtoms } from "../state/+types.js";
3
- export declare function updateAdditiveCellSelection(grid: Grid<any> & {
4
- internal: InternalAtoms;
5
- }, rect: DataRect): void;
@@ -1,23 +0,0 @@
1
- import { boundSelectionRect } from "./bound-selection-rect.js";
2
- import { adjustRectForRowAndCellSpan } from "./adjust-rect-for-row-and-cell-span.js";
3
- import { areRectsEqual } from "./are-rects-equal.js";
4
- import { splitCellSelectionRect } from "./split-cell-selection-rect.js";
5
- export function updateAdditiveCellSelection(grid, rect) {
6
- const s = grid.state.columnMeta.get();
7
- const ds = grid.state.rowDataStore;
8
- const rowTopCount = ds.rowTopCount.get();
9
- const adjustedRect = adjustRectForRowAndCellSpan(grid, rect);
10
- const rects = splitCellSelectionRect({
11
- rect: boundSelectionRect(grid, adjustedRect),
12
- colCenterCount: s.columnVisibleCenterCount,
13
- colStartCount: s.columnVisibleStartCount,
14
- rowCenterCount: ds.rowCenterCount.get(),
15
- rowTopCount: rowTopCount,
16
- });
17
- const current = grid.internal.cellSelectionAdditiveRects.get();
18
- if (current && current.length === rects.length) {
19
- if (current.every((c, i) => areRectsEqual(c, rects[i])))
20
- return;
21
- }
22
- grid.internal.cellSelectionAdditiveRects.set(rects);
23
- }
@@ -1,10 +0,0 @@
1
- import type { Grid } from "../+types.js";
2
- import type { InternalAtoms } from "../state/+types.js";
3
- export declare function useEdgeScroll(grid: Grid<any> & {
4
- internal: InternalAtoms;
5
- }): {
6
- cancelX: () => void;
7
- edgeScrollX: (visualPositionX: number, isRtl: boolean) => void;
8
- cancelY: () => void;
9
- edgeScrollY: (visualPositionY: number) => void;
10
- };
@@ -1,66 +0,0 @@
1
- import { useCallback, useRef } from "react";
2
- export function useEdgeScroll(grid) {
3
- const intervalIdX = useRef(null);
4
- const intervalIdY = useRef(null);
5
- const cancelX = useCallback(() => {
6
- if (intervalIdX.current) {
7
- clearInterval(intervalIdX.current);
8
- intervalIdX.current = null;
9
- }
10
- }, []);
11
- const cancelY = useCallback(() => {
12
- if (intervalIdY.current) {
13
- clearInterval(intervalIdY.current);
14
- intervalIdY.current = null;
15
- }
16
- }, []);
17
- const edgeScrollY = useCallback((visualPositionY) => {
18
- const viewport = grid.state.viewport.get();
19
- if (!viewport)
20
- return;
21
- const viewportClientHeight = grid.state.viewportHeightInner.get();
22
- const viewportHeight = Math.min(viewportClientHeight * 0.1, 100);
23
- const buffer = viewportHeight;
24
- const topBound = buffer + grid.internal.headerHeightTotal.get();
25
- const botBound = viewportClientHeight - buffer;
26
- const speed = 6;
27
- if (visualPositionY < topBound && !intervalIdY.current) {
28
- intervalIdY.current = setInterval(() => {
29
- viewport.scrollBy({ top: -speed });
30
- }, 6);
31
- }
32
- else if (visualPositionY > botBound && !intervalIdY.current) {
33
- intervalIdY.current = setInterval(() => {
34
- viewport.scrollBy({ top: speed });
35
- }, 6);
36
- }
37
- if (intervalIdY.current && visualPositionY > topBound && visualPositionY < botBound) {
38
- cancelY();
39
- }
40
- }, [cancelY, grid.internal.headerHeightTotal, grid.state.viewport, grid.state.viewportHeightInner]);
41
- const edgeScrollX = useCallback((visualPositionX, isRtl) => {
42
- const viewport = grid.state.viewport.get();
43
- if (!viewport)
44
- return;
45
- const viewportClientWidth = grid.state.viewportWidthInner.get();
46
- const viewportWidth = Math.min(viewportClientWidth * 0.1, 100);
47
- const buffer = viewportWidth;
48
- const leftBound = buffer;
49
- const rightBound = viewportClientWidth - buffer;
50
- const speed = 3;
51
- if (visualPositionX < leftBound && !intervalIdX.current) {
52
- intervalIdX.current = setInterval(() => {
53
- viewport.scrollBy({ left: isRtl ? speed : -speed });
54
- }, 6);
55
- }
56
- else if (visualPositionX > rightBound && !intervalIdX.current) {
57
- intervalIdX.current = setInterval(() => {
58
- viewport.scrollBy({ left: isRtl ? -speed : speed });
59
- }, 6);
60
- }
61
- if (intervalIdX.current && visualPositionX > leftBound && visualPositionX < rightBound) {
62
- cancelX();
63
- }
64
- }, [cancelX, grid.state.viewport, grid.state.viewportWidthInner]);
65
- return { cancelX, edgeScrollX, cancelY, edgeScrollY };
66
- }
@@ -1,4 +0,0 @@
1
- import type { Column } from "../+types";
2
- import type { PathBranch } from "@1771technologies/lytenyte-shared";
3
- export declare const branchLookupContext: import("react").Context<Record<string, PathBranch<Column<any>>>>;
4
- export declare const useBranchLookup: () => Record<string, PathBranch<Column<any>>>;
@@ -1,3 +0,0 @@
1
- import { createContext, useContext } from "react";
2
- export const branchLookupContext = createContext({});
3
- export const useBranchLookup = () => useContext(branchLookupContext);
@@ -1,15 +0,0 @@
1
- import type { CSSProperties } from "react";
2
- import type { Column } from "../+types";
3
- import type { PathBranch } from "@1771technologies/lytenyte-shared";
4
- import { type SlotComponent } from "@1771technologies/lytenyte-core/yinternal";
5
- export interface ColumnManagerBranchProps {
6
- readonly item: PathBranch<Column<any>>;
7
- readonly label: SlotComponent;
8
- readonly expander?: SlotComponent<{
9
- expanded: boolean;
10
- toggle: () => void;
11
- }>;
12
- readonly labelWrapClassName?: string;
13
- readonly labelWrapStyle?: CSSProperties;
14
- }
15
- export declare const Branch: import("react").ForwardRefExoticComponent<Omit<ColumnManagerBranchProps & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;