@1771technologies/lytenyte-pro 1.0.12-dev.0 → 1.0.12-dev.1

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 (499) hide show
  1. package/package.json +7 -7
  2. package/dist/+types.d.ts +0 -5836
  3. package/dist/+types.js +0 -1
  4. package/dist/cell-selection/adjust-rect-for-row-and-cell-span.d.ts +0 -2
  5. package/dist/cell-selection/adjust-rect-for-row-and-cell-span.js +0 -43
  6. package/dist/cell-selection/are-rects-equal.d.ts +0 -2
  7. package/dist/cell-selection/are-rects-equal.js +0 -6
  8. package/dist/cell-selection/bound-selection-rect.d.ts +0 -2
  9. package/dist/cell-selection/bound-selection-rect.js +0 -17
  10. package/dist/cell-selection/cell-selection-containers.d.ts +0 -3
  11. package/dist/cell-selection/cell-selection-containers.js +0 -91
  12. package/dist/cell-selection/cell-selection-driver.d.ts +0 -1
  13. package/dist/cell-selection/cell-selection-driver.js +0 -285
  14. package/dist/cell-selection/cell-style-row.d.ts +0 -8
  15. package/dist/cell-selection/cell-style-row.js +0 -84
  16. package/dist/cell-selection/deselect-rect-range.d.ts +0 -2
  17. package/dist/cell-selection/deselect-rect-range.js +0 -43
  18. package/dist/cell-selection/expand-cell-selection-down.d.ts +0 -5
  19. package/dist/cell-selection/expand-cell-selection-down.js +0 -39
  20. package/dist/cell-selection/expand-cell-selection-end.d.ts +0 -5
  21. package/dist/cell-selection/expand-cell-selection-end.js +0 -40
  22. package/dist/cell-selection/expand-cell-selection-start.d.ts +0 -5
  23. package/dist/cell-selection/expand-cell-selection-start.js +0 -39
  24. package/dist/cell-selection/expand-cell-selection-up.d.ts +0 -5
  25. package/dist/cell-selection/expand-cell-selection-up.js +0 -39
  26. package/dist/cell-selection/full-width-start-end-index.d.ts +0 -2
  27. package/dist/cell-selection/full-width-start-end-index.js +0 -5
  28. package/dist/cell-selection/get-root-cell.d.ts +0 -2
  29. package/dist/cell-selection/get-root-cell.js +0 -6
  30. package/dist/cell-selection/index.d.ts +0 -18
  31. package/dist/cell-selection/index.js +0 -18
  32. package/dist/cell-selection/is-bottom-rect.d.ts +0 -2
  33. package/dist/cell-selection/is-bottom-rect.js +0 -7
  34. package/dist/cell-selection/is-center-col-rect.d.ts +0 -5
  35. package/dist/cell-selection/is-center-col-rect.js +0 -5
  36. package/dist/cell-selection/is-center-rect.d.ts +0 -2
  37. package/dist/cell-selection/is-center-rect.js +0 -5
  38. package/dist/cell-selection/is-end-rect.d.ts +0 -5
  39. package/dist/cell-selection/is-end-rect.js +0 -4
  40. package/dist/cell-selection/is-overlapping-rect.d.ts +0 -2
  41. package/dist/cell-selection/is-overlapping-rect.js +0 -6
  42. package/dist/cell-selection/is-start-rect.d.ts +0 -5
  43. package/dist/cell-selection/is-start-rect.js +0 -4
  44. package/dist/cell-selection/is-top-rect.d.ts +0 -2
  45. package/dist/cell-selection/is-top-rect.js +0 -4
  46. package/dist/cell-selection/is-within-selection-rect.d.ts +0 -2
  47. package/dist/cell-selection/is-within-selection-rect.js +0 -3
  48. package/dist/cell-selection/split-cell-selection-rect.d.ts +0 -46
  49. package/dist/cell-selection/split-cell-selection-rect.js +0 -88
  50. package/dist/cell-selection/split-on-pivot.d.ts +0 -3
  51. package/dist/cell-selection/split-on-pivot.js +0 -50
  52. package/dist/cell-selection/update-additive-cell-selection.d.ts +0 -5
  53. package/dist/cell-selection/update-additive-cell-selection.js +0 -23
  54. package/dist/cell-selection/use-edge-scroll.d.ts +0 -10
  55. package/dist/cell-selection/use-edge-scroll.js +0 -66
  56. package/dist/cells/+types.cell.d.ts +0 -13
  57. package/dist/cells/+types.cell.js +0 -1
  58. package/dist/cells/cell-default.d.ts +0 -2
  59. package/dist/cells/cell-default.js +0 -8
  60. package/dist/cells/cell-editor.d.ts +0 -6
  61. package/dist/cells/cell-editor.js +0 -103
  62. package/dist/cells/cell-spacer.d.ts +0 -9
  63. package/dist/cells/cell-spacer.js +0 -34
  64. package/dist/cells/cell.d.ts +0 -5
  65. package/dist/cells/cell.js +0 -43
  66. package/dist/cells/use-cell-style.d.ts +0 -3
  67. package/dist/cells/use-cell-style.js +0 -51
  68. package/dist/column-manager/branch-lookup-context.d.ts +0 -4
  69. package/dist/column-manager/branch-lookup-context.js +0 -3
  70. package/dist/column-manager/branch.d.ts +0 -15
  71. package/dist/column-manager/branch.js +0 -54
  72. package/dist/column-manager/column-manager.d.ts +0 -13
  73. package/dist/column-manager/column-manager.js +0 -18
  74. package/dist/column-manager/context.d.ts +0 -7
  75. package/dist/column-manager/context.js +0 -3
  76. package/dist/column-manager/label.d.ts +0 -5
  77. package/dist/column-manager/label.js +0 -18
  78. package/dist/column-manager/leaf.d.ts +0 -6
  79. package/dist/column-manager/leaf.js +0 -58
  80. package/dist/column-manager/move-handle.d.ts +0 -5
  81. package/dist/column-manager/move-handle.js +0 -73
  82. package/dist/column-manager/panel.d.ts +0 -1
  83. package/dist/column-manager/panel.js +0 -2
  84. package/dist/column-manager/root.d.ts +0 -8
  85. package/dist/column-manager/root.js +0 -7
  86. package/dist/column-manager/use-column-manager.d.ts +0 -10
  87. package/dist/column-manager/use-column-manager.js +0 -24
  88. package/dist/column-manager/use-columns-from-context.d.ts +0 -3
  89. package/dist/column-manager/use-columns-from-context.js +0 -23
  90. package/dist/column-manager/visibility-checkbox.d.ts +0 -9
  91. package/dist/column-manager/visibility-checkbox.js +0 -30
  92. package/dist/context.d.ts +0 -10
  93. package/dist/context.js +0 -4
  94. package/dist/filter-tree/branch.d.ts +0 -13
  95. package/dist/filter-tree/branch.js +0 -21
  96. package/dist/filter-tree/context.d.ts +0 -27
  97. package/dist/filter-tree/context.js +0 -5
  98. package/dist/filter-tree/filter-tree.d.ts +0 -14
  99. package/dist/filter-tree/filter-tree.js +0 -18
  100. package/dist/filter-tree/hooks/use-filter-tree.d.ts +0 -38
  101. package/dist/filter-tree/hooks/use-filter-tree.js +0 -101
  102. package/dist/filter-tree/hooks/use-tree-item.d.ts +0 -8
  103. package/dist/filter-tree/hooks/use-tree-item.js +0 -116
  104. package/dist/filter-tree/inclusion-checkbox.d.ts +0 -9
  105. package/dist/filter-tree/inclusion-checkbox.js +0 -14
  106. package/dist/filter-tree/label.d.ts +0 -5
  107. package/dist/filter-tree/label.js +0 -18
  108. package/dist/filter-tree/leaf.d.ts +0 -6
  109. package/dist/filter-tree/leaf.js +0 -14
  110. package/dist/filter-tree/root.d.ts +0 -13
  111. package/dist/filter-tree/root.js +0 -30
  112. package/dist/grid-box/+types.d.ts +0 -15
  113. package/dist/grid-box/+types.js +0 -1
  114. package/dist/grid-box/context.d.ts +0 -9
  115. package/dist/grid-box/context.js +0 -3
  116. package/dist/grid-box/grid-box.d.ts +0 -12
  117. package/dist/grid-box/grid-box.js +0 -14
  118. package/dist/grid-box/item.d.ts +0 -10
  119. package/dist/grid-box/item.js +0 -63
  120. package/dist/grid-box/panel.d.ts +0 -1
  121. package/dist/grid-box/panel.js +0 -9
  122. package/dist/grid-box/root.d.ts +0 -9
  123. package/dist/grid-box/root.js +0 -8
  124. package/dist/grid-box/use-aggregation-box-items.d.ts +0 -18
  125. package/dist/grid-box/use-aggregation-box-items.js +0 -61
  126. package/dist/grid-box/use-column-box-items.d.ts +0 -34
  127. package/dist/grid-box/use-column-box-items.js +0 -78
  128. package/dist/grid-box/use-row-group-box-items.d.ts +0 -18
  129. package/dist/grid-box/use-row-group-box-items.js +0 -169
  130. package/dist/grid-provider/context.d.ts +0 -5
  131. package/dist/grid-provider/context.js +0 -2
  132. package/dist/grid-provider/provider.d.ts +0 -3
  133. package/dist/grid-provider/provider.js +0 -2
  134. package/dist/grid-provider/use-grid.d.ts +0 -3
  135. package/dist/grid-provider/use-grid.js +0 -3
  136. package/dist/grid.d.ts +0 -18
  137. package/dist/grid.js +0 -28
  138. package/dist/header/header-cell.d.ts +0 -10
  139. package/dist/header/header-cell.js +0 -24
  140. package/dist/header/header-group-cell.d.ts +0 -5
  141. package/dist/header/header-group-cell.js +0 -16
  142. package/dist/header/header-row.d.ts +0 -4
  143. package/dist/header/header-row.js +0 -10
  144. package/dist/header/header.d.ts +0 -1
  145. package/dist/header/header.js +0 -10
  146. package/dist/header/resize-handler.d.ts +0 -12
  147. package/dist/header/resize-handler.js +0 -139
  148. package/dist/header/use-drag-move.d.ts +0 -14
  149. package/dist/header/use-drag-move.js +0 -97
  150. package/dist/header/use-header-cell-renderer.d.ts +0 -4
  151. package/dist/header/use-header-cell-renderer.js +0 -36
  152. package/dist/icons/index.d.ts +0 -1
  153. package/dist/icons/index.js +0 -3
  154. package/dist/index.d.ts +0 -13
  155. package/dist/index.js +0 -13
  156. package/dist/license.d.ts +0 -3
  157. package/dist/license.js +0 -214
  158. package/dist/listbox/context.d.ts +0 -6
  159. package/dist/listbox/context.js +0 -3
  160. package/dist/listbox/item.d.ts +0 -1
  161. package/dist/listbox/item.js +0 -25
  162. package/dist/listbox/panel.d.ts +0 -1
  163. package/dist/listbox/panel.js +0 -50
  164. package/dist/listbox/root.d.ts +0 -6
  165. package/dist/listbox/root.js +0 -12
  166. package/dist/root/dialog-driver.d.ts +0 -1
  167. package/dist/root/dialog-driver.js +0 -21
  168. package/dist/root/popover-driver.d.ts +0 -1
  169. package/dist/root/popover-driver.js +0 -21
  170. package/dist/root/root.d.ts +0 -8
  171. package/dist/root/root.js +0 -125
  172. package/dist/row-data-source-client/+constants.d.ts +0 -2
  173. package/dist/row-data-source-client/+constants.js +0 -2
  174. package/dist/row-data-source-client/+types.d.ts +0 -27
  175. package/dist/row-data-source-client/+types.js +0 -1
  176. package/dist/row-data-source-client/built-ins/avg.d.ts +0 -10
  177. package/dist/row-data-source-client/built-ins/avg.js +0 -16
  178. package/dist/row-data-source-client/built-ins/built-ins.d.ts +0 -44
  179. package/dist/row-data-source-client/built-ins/built-ins.js +0 -44
  180. package/dist/row-data-source-client/built-ins/count.d.ts +0 -10
  181. package/dist/row-data-source-client/built-ins/count.js +0 -16
  182. package/dist/row-data-source-client/built-ins/first.d.ts +0 -10
  183. package/dist/row-data-source-client/built-ins/first.js +0 -12
  184. package/dist/row-data-source-client/built-ins/group.d.ts +0 -1
  185. package/dist/row-data-source-client/built-ins/group.js +0 -3
  186. package/dist/row-data-source-client/built-ins/last.d.ts +0 -10
  187. package/dist/row-data-source-client/built-ins/last.js +0 -12
  188. package/dist/row-data-source-client/built-ins/max.d.ts +0 -11
  189. package/dist/row-data-source-client/built-ins/max.js +0 -25
  190. package/dist/row-data-source-client/built-ins/min.d.ts +0 -11
  191. package/dist/row-data-source-client/built-ins/min.js +0 -25
  192. package/dist/row-data-source-client/built-ins/sum.d.ts +0 -10
  193. package/dist/row-data-source-client/built-ins/sum.js +0 -21
  194. package/dist/row-data-source-client/filter/+types.d.ts +0 -23
  195. package/dist/row-data-source-client/filter/+types.js +0 -1
  196. package/dist/row-data-source-client/filter/compute-filtered-rows.d.ts +0 -2
  197. package/dist/row-data-source-client/filter/compute-filtered-rows.js +0 -109
  198. package/dist/row-data-source-client/pivots/create-agg-model.d.ts +0 -6
  199. package/dist/row-data-source-client/pivots/create-agg-model.js +0 -13
  200. package/dist/row-data-source-client/pivots/create-pivot-columns-from-paths.d.ts +0 -2
  201. package/dist/row-data-source-client/pivots/create-pivot-columns-from-paths.js +0 -50
  202. package/dist/row-data-source-client/pivots/create-pivot-columns.d.ts +0 -2
  203. package/dist/row-data-source-client/pivots/create-pivot-columns.js +0 -22
  204. package/dist/row-data-source-client/pivots/create-pivot-tree.d.ts +0 -2
  205. package/dist/row-data-source-client/pivots/create-pivot-tree.js +0 -23
  206. package/dist/row-data-source-client/tree/client-tree.d.ts +0 -18
  207. package/dist/row-data-source-client/tree/client-tree.js +0 -76
  208. package/dist/row-data-source-client/tree/evaluator-aggregation.d.ts +0 -2
  209. package/dist/row-data-source-client/tree/evaluator-aggregation.js +0 -8
  210. package/dist/row-data-source-client/tree/evaluator-group.d.ts +0 -2
  211. package/dist/row-data-source-client/tree/evaluator-group.js +0 -9
  212. package/dist/row-data-source-client/tree/traverse.d.ts +0 -2
  213. package/dist/row-data-source-client/tree/traverse.js +0 -22
  214. package/dist/row-data-source-client/use-client-data-source-paginated.d.ts +0 -10
  215. package/dist/row-data-source-client/use-client-data-source-paginated.js +0 -572
  216. package/dist/row-data-source-client/use-client-data-source.d.ts +0 -10
  217. package/dist/row-data-source-client/use-client-data-source.js +0 -666
  218. package/dist/row-data-source-client/use-client-tree-data-source.d.ts +0 -9
  219. package/dist/row-data-source-client/use-client-tree-data-source.js +0 -511
  220. package/dist/row-data-source-server/async-tree/+constants.async-tree.d.ts +0 -1
  221. package/dist/row-data-source-server/async-tree/+constants.async-tree.js +0 -1
  222. package/dist/row-data-source-server/async-tree/+types.async-tree.d.ts +0 -59
  223. package/dist/row-data-source-server/async-tree/+types.async-tree.js +0 -1
  224. package/dist/row-data-source-server/async-tree/apply-delete-action-to-tree.d.ts +0 -2
  225. package/dist/row-data-source-server/async-tree/apply-delete-action-to-tree.js +0 -27
  226. package/dist/row-data-source-server/async-tree/apply-set-action-to-tree.d.ts +0 -2
  227. package/dist/row-data-source-server/async-tree/apply-set-action-to-tree.js +0 -36
  228. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-unique.d.ts +0 -2
  229. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-unique.js +0 -24
  230. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-valid.d.ts +0 -2
  231. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-valid.js +0 -14
  232. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-fit.d.ts +0 -2
  233. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-fit.js +0 -18
  234. package/dist/row-data-source-server/async-tree/check-set-action-item-kinds.d.ts +0 -2
  235. package/dist/row-data-source-server/async-tree/check-set-action-item-kinds.js +0 -14
  236. package/dist/row-data-source-server/async-tree/get-parent-node-by-path.d.ts +0 -2
  237. package/dist/row-data-source-server/async-tree/get-parent-node-by-path.js +0 -18
  238. package/dist/row-data-source-server/async-tree/is-set-action-a-no-op-on-node.d.ts +0 -2
  239. package/dist/row-data-source-server/async-tree/is-set-action-a-no-op-on-node.js +0 -3
  240. package/dist/row-data-source-server/async-tree/make-async-tree.d.ts +0 -2
  241. package/dist/row-data-source-server/async-tree/make-async-tree.js +0 -19
  242. package/dist/row-data-source-server/async-tree/maybe-apply-parent-remove-self.d.ts +0 -2
  243. package/dist/row-data-source-server/async-tree/maybe-apply-parent-remove-self.js +0 -8
  244. package/dist/row-data-source-server/async-tree/maybe-apply-resize.d.ts +0 -2
  245. package/dist/row-data-source-server/async-tree/maybe-apply-resize.js +0 -17
  246. package/dist/row-data-source-server/async-tree/maybe-apply-set-action-items.d.ts +0 -2
  247. package/dist/row-data-source-server/async-tree/maybe-apply-set-action-items.js +0 -52
  248. package/dist/row-data-source-server/range-tree/range-tree.d.ts +0 -66
  249. package/dist/row-data-source-server/range-tree/range-tree.js +0 -102
  250. package/dist/row-data-source-server/server-data.d.ts +0 -48
  251. package/dist/row-data-source-server/server-data.js +0 -378
  252. package/dist/row-data-source-server/use-server-data-source.d.ts +0 -3
  253. package/dist/row-data-source-server/use-server-data-source.js +0 -344
  254. package/dist/row-data-source-server/utils/get-node-depth.d.ts +0 -2
  255. package/dist/row-data-source-server/utils/get-node-depth.js +0 -9
  256. package/dist/row-data-source-server/utils/get-node-path.d.ts +0 -2
  257. package/dist/row-data-source-server/utils/get-node-path.js +0 -9
  258. package/dist/row-data-source-server/utils/get-request-id.d.ts +0 -1
  259. package/dist/row-data-source-server/utils/get-request-id.js +0 -6
  260. package/dist/rows/row/context.d.ts +0 -14
  261. package/dist/rows/row/context.js +0 -13
  262. package/dist/rows/row/row.d.ts +0 -7
  263. package/dist/rows/row/row.js +0 -25
  264. package/dist/rows/row/use-row-context-value.d.ts +0 -6
  265. package/dist/rows/row/use-row-context-value.js +0 -44
  266. package/dist/rows/row-detail-row.d.ts +0 -4
  267. package/dist/rows/row-detail-row.js +0 -130
  268. package/dist/rows/row-full-width.d.ts +0 -8
  269. package/dist/rows/row-full-width.js +0 -19
  270. package/dist/rows/rows-container.d.ts +0 -1
  271. package/dist/rows/rows-container.js +0 -9
  272. package/dist/rows/rows-sections.d.ts +0 -3
  273. package/dist/rows/rows-sections.js +0 -27
  274. package/dist/rows/scrollers/native-scroller.d.ts +0 -2
  275. package/dist/rows/scrollers/native-scroller.js +0 -4
  276. package/dist/sort-manager/+types.d.ts +0 -13
  277. package/dist/sort-manager/+types.js +0 -1
  278. package/dist/sort-manager/context.d.ts +0 -14
  279. package/dist/sort-manager/context.js +0 -5
  280. package/dist/sort-manager/hooks/use-sort-manager.d.ts +0 -15
  281. package/dist/sort-manager/hooks/use-sort-manager.js +0 -56
  282. package/dist/sort-manager/hooks/use-sort-row-item.d.ts +0 -51
  283. package/dist/sort-manager/hooks/use-sort-row-item.js +0 -145
  284. package/dist/sort-manager/hooks/use-sortable-column-items.d.ts +0 -5
  285. package/dist/sort-manager/hooks/use-sortable-column-items.js +0 -13
  286. package/dist/sort-manager/root.d.ts +0 -3
  287. package/dist/sort-manager/root.js +0 -14
  288. package/dist/sort-manager/sort-add.d.ts +0 -8
  289. package/dist/sort-manager/sort-add.js +0 -14
  290. package/dist/sort-manager/sort-apply.d.ts +0 -7
  291. package/dist/sort-manager/sort-apply.js +0 -24
  292. package/dist/sort-manager/sort-cancel.d.ts +0 -7
  293. package/dist/sort-manager/sort-cancel.js +0 -27
  294. package/dist/sort-manager/sort-clear.d.ts +0 -7
  295. package/dist/sort-manager/sort-clear.js +0 -22
  296. package/dist/sort-manager/sort-column-select.d.ts +0 -10
  297. package/dist/sort-manager/sort-column-select.js +0 -20
  298. package/dist/sort-manager/sort-direction-select.d.ts +0 -10
  299. package/dist/sort-manager/sort-direction-select.js +0 -24
  300. package/dist/sort-manager/sort-manager.d.ts +0 -16
  301. package/dist/sort-manager/sort-manager.js +0 -26
  302. package/dist/sort-manager/sort-remove.d.ts +0 -7
  303. package/dist/sort-manager/sort-remove.js +0 -14
  304. package/dist/sort-manager/sort-row.d.ts +0 -5
  305. package/dist/sort-manager/sort-row.js +0 -7
  306. package/dist/sort-manager/sort-rows.d.ts +0 -1
  307. package/dist/sort-manager/sort-rows.js +0 -6
  308. package/dist/sort-manager/sort-value-select.d.ts +0 -11
  309. package/dist/sort-manager/sort-value-select.js +0 -25
  310. package/dist/sort-manager/utils/sort-item-to-sort-model.d.ts +0 -3
  311. package/dist/sort-manager/utils/sort-item-to-sort-model.js +0 -62
  312. package/dist/sort-manager/utils/sort-model-to-sort-items.d.ts +0 -3
  313. package/dist/sort-manager/utils/sort-model-to-sort-items.js +0 -50
  314. package/dist/state/+types.d.ts +0 -35
  315. package/dist/state/+types.js +0 -1
  316. package/dist/state/api/cell-root.d.ts +0 -5
  317. package/dist/state/api/cell-root.js +0 -64
  318. package/dist/state/api/column-autosize.d.ts +0 -5
  319. package/dist/state/api/column-autosize.js +0 -72
  320. package/dist/state/api/column-by-id.d.ts +0 -2
  321. package/dist/state/api/column-by-id.js +0 -6
  322. package/dist/state/api/column-field.d.ts +0 -2
  323. package/dist/state/api/column-field.js +0 -23
  324. package/dist/state/api/column-from-index.d.ts +0 -2
  325. package/dist/state/api/column-from-index.js +0 -6
  326. package/dist/state/api/column-group-toggle.d.ts +0 -2
  327. package/dist/state/api/column-group-toggle.js +0 -10
  328. package/dist/state/api/column-index.d.ts +0 -2
  329. package/dist/state/api/column-index.js +0 -7
  330. package/dist/state/api/column-move.d.ts +0 -2
  331. package/dist/state/api/column-move.js +0 -49
  332. package/dist/state/api/column-resize.d.ts +0 -2
  333. package/dist/state/api/column-resize.js +0 -9
  334. package/dist/state/api/column-update.d.ts +0 -5
  335. package/dist/state/api/column-update.js +0 -26
  336. package/dist/state/api/dialog-frame.d.ts +0 -8
  337. package/dist/state/api/dialog-frame.js +0 -16
  338. package/dist/state/api/edit-begin.d.ts +0 -5
  339. package/dist/state/api/edit-begin.js +0 -87
  340. package/dist/state/api/edit-end.d.ts +0 -5
  341. package/dist/state/api/edit-end.js +0 -43
  342. package/dist/state/api/edit-is-cell-active.d.ts +0 -5
  343. package/dist/state/api/edit-is-cell-active.js +0 -22
  344. package/dist/state/api/edit-update.d.ts +0 -5
  345. package/dist/state/api/edit-update.js +0 -88
  346. package/dist/state/api/event-listeners.d.ts +0 -5
  347. package/dist/state/api/event-listeners.js +0 -19
  348. package/dist/state/api/export-csv.d.ts +0 -3
  349. package/dist/state/api/export-csv.js +0 -40
  350. package/dist/state/api/export-data-rect.d.ts +0 -2
  351. package/dist/state/api/export-data-rect.js +0 -24
  352. package/dist/state/api/focus-cell.d.ts +0 -5
  353. package/dist/state/api/focus-cell.js +0 -117
  354. package/dist/state/api/popover-frame.d.ts +0 -8
  355. package/dist/state/api/popover-frame.js +0 -16
  356. package/dist/state/api/position-from-element.d.ts +0 -2
  357. package/dist/state/api/position-from-element.js +0 -9
  358. package/dist/state/api/row-by-id.d.ts +0 -2
  359. package/dist/state/api/row-by-id.js +0 -5
  360. package/dist/state/api/row-by-index.d.ts +0 -2
  361. package/dist/state/api/row-by-index.js +0 -9
  362. package/dist/state/api/row-detail-is-expanded.d.ts +0 -2
  363. package/dist/state/api/row-detail-is-expanded.js +0 -6
  364. package/dist/state/api/row-detail-rendered-height.d.ts +0 -5
  365. package/dist/state/api/row-detail-rendered-height.js +0 -14
  366. package/dist/state/api/row-detail-toggle.d.ts +0 -2
  367. package/dist/state/api/row-detail-toggle.js +0 -32
  368. package/dist/state/api/row-group-apply-expansions.d.ts +0 -2
  369. package/dist/state/api/row-group-apply-expansions.js +0 -20
  370. package/dist/state/api/row-group-column-index.d.ts +0 -2
  371. package/dist/state/api/row-group-column-index.js +0 -14
  372. package/dist/state/api/row-group-is-expanded.d.ts +0 -2
  373. package/dist/state/api/row-group-is-expanded.js +0 -15
  374. package/dist/state/api/row-group-toggle.d.ts +0 -2
  375. package/dist/state/api/row-group-toggle.js +0 -7
  376. package/dist/state/api/row-handle-select.d.ts +0 -5
  377. package/dist/state/api/row-handle-select.js +0 -43
  378. package/dist/state/api/row-select-all.d.ts +0 -2
  379. package/dist/state/api/row-select-all.js +0 -17
  380. package/dist/state/api/row-select.d.ts +0 -5
  381. package/dist/state/api/row-select.js +0 -35
  382. package/dist/state/api/row-selected.d.ts +0 -2
  383. package/dist/state/api/row-selected.js +0 -13
  384. package/dist/state/api/scroll-into-view.d.ts +0 -5
  385. package/dist/state/api/scroll-into-view.js +0 -50
  386. package/dist/state/api/sort-for-column.d.ts +0 -2
  387. package/dist/state/api/sort-for-column.js +0 -9
  388. package/dist/state/api/use-row-drag.d.ts +0 -2
  389. package/dist/state/api/use-row-drag.js +0 -27
  390. package/dist/state/helpers/cell-row-group.d.ts +0 -2
  391. package/dist/state/helpers/cell-row-group.js +0 -19
  392. package/dist/state/helpers/column-add-row-group.d.ts +0 -10
  393. package/dist/state/helpers/column-add-row-group.js +0 -74
  394. package/dist/state/helpers/column-layout.d.ts +0 -3
  395. package/dist/state/helpers/column-layout.js +0 -59
  396. package/dist/state/helpers/column-marker.d.ts +0 -8
  397. package/dist/state/helpers/column-marker.js +0 -43
  398. package/dist/state/helpers/column-view.d.ts +0 -21
  399. package/dist/state/helpers/column-view.js +0 -33
  400. package/dist/state/helpers/edit-on-change.d.ts +0 -15
  401. package/dist/state/helpers/edit-on-change.js +0 -27
  402. package/dist/state/helpers/empty-row-data-source.d.ts +0 -2
  403. package/dist/state/helpers/empty-row-data-source.js +0 -18
  404. package/dist/state/helpers/get-data-rect.d.ts +0 -13
  405. package/dist/state/helpers/get-data-rect.js +0 -65
  406. package/dist/state/helpers/get-full-width-callback.d.ts +0 -2
  407. package/dist/state/helpers/get-full-width-callback.js +0 -10
  408. package/dist/state/helpers/get-span-callback.d.ts +0 -2
  409. package/dist/state/helpers/get-span-callback.js +0 -22
  410. package/dist/state/helpers/resolve-column.d.ts +0 -4
  411. package/dist/state/helpers/resolve-column.js +0 -29
  412. package/dist/state/helpers/row-layout/get-focus-criteria.d.ts +0 -17
  413. package/dist/state/helpers/row-layout/get-focus-criteria.js +0 -62
  414. package/dist/state/helpers/row-layout/row-layout.d.ts +0 -19
  415. package/dist/state/helpers/row-layout/row-layout.js +0 -181
  416. package/dist/state/use-lytenyte.d.ts +0 -3
  417. package/dist/state/use-lytenyte.js +0 -671
  418. package/dist/tree-view/branch/branch.d.ts +0 -14
  419. package/dist/tree-view/branch/branch.js +0 -63
  420. package/dist/tree-view/branch/use-branch-keys.d.ts +0 -2
  421. package/dist/tree-view/branch/use-branch-keys.js +0 -87
  422. package/dist/tree-view/context.d.ts +0 -22
  423. package/dist/tree-view/context.js +0 -3
  424. package/dist/tree-view/depth-provider.d.ts +0 -2
  425. package/dist/tree-view/depth-provider.js +0 -3
  426. package/dist/tree-view/hooks/use-tree-view-paths.d.ts +0 -2
  427. package/dist/tree-view/hooks/use-tree-view-paths.js +0 -9
  428. package/dist/tree-view/index.d.ts +0 -16
  429. package/dist/tree-view/index.js +0 -16
  430. package/dist/tree-view/leaf.d.ts +0 -4
  431. package/dist/tree-view/leaf.js +0 -28
  432. package/dist/tree-view/navigation/get-all-ids.d.ts +0 -1
  433. package/dist/tree-view/navigation/get-all-ids.js +0 -7
  434. package/dist/tree-view/navigation/get-first-node.d.ts +0 -1
  435. package/dist/tree-view/navigation/get-first-node.js +0 -7
  436. package/dist/tree-view/navigation/get-last-node.d.ts +0 -1
  437. package/dist/tree-view/navigation/get-last-node.js +0 -7
  438. package/dist/tree-view/navigation/get-next-node.d.ts +0 -1
  439. package/dist/tree-view/navigation/get-next-node.js +0 -13
  440. package/dist/tree-view/navigation/get-prev-node.d.ts +0 -1
  441. package/dist/tree-view/navigation/get-prev-node.js +0 -13
  442. package/dist/tree-view/panel/make-handle-navigation.d.ts +0 -2
  443. package/dist/tree-view/panel/make-handle-navigation.js +0 -39
  444. package/dist/tree-view/panel/make-handle-selection.d.ts +0 -2
  445. package/dist/tree-view/panel/make-handle-selection.js +0 -92
  446. package/dist/tree-view/panel/make-handle-typeahead.d.ts +0 -1
  447. package/dist/tree-view/panel/make-handle-typeahead.js +0 -45
  448. package/dist/tree-view/panel/panel.d.ts +0 -1
  449. package/dist/tree-view/panel/panel.js +0 -30
  450. package/dist/tree-view/panel/use-tree-navigation.d.ts +0 -1
  451. package/dist/tree-view/panel/use-tree-navigation.js +0 -63
  452. package/dist/tree-view/root.d.ts +0 -17
  453. package/dist/tree-view/root.js +0 -63
  454. package/dist/tree-view/utils/get-focusable-nodes.d.ts +0 -1
  455. package/dist/tree-view/utils/get-focusable-nodes.js +0 -5
  456. package/dist/tree-view/utils/get-focused-node.d.ts +0 -1
  457. package/dist/tree-view/utils/get-focused-node.js +0 -14
  458. package/dist/tree-view/utils/get-ids-between-nodes.d.ts +0 -1
  459. package/dist/tree-view/utils/get-ids-between-nodes.js +0 -15
  460. package/dist/tree-view/utils/get-panel.d.ts +0 -1
  461. package/dist/tree-view/utils/get-panel.js +0 -7
  462. package/dist/tree-view/utils/get-parent-node.d.ts +0 -1
  463. package/dist/tree-view/utils/get-parent-node.js +0 -10
  464. package/dist/tree-view/utils/get-sibling-branches.d.ts +0 -1
  465. package/dist/tree-view/utils/get-sibling-branches.js +0 -14
  466. package/dist/tree-view/utils/get-tree-node-id.d.ts +0 -1
  467. package/dist/tree-view/utils/get-tree-node-id.js +0 -3
  468. package/dist/tree-view/utils/is-branch-node.d.ts +0 -1
  469. package/dist/tree-view/utils/is-branch-node.js +0 -3
  470. package/dist/tree-view/utils/is-leaf-node.d.ts +0 -1
  471. package/dist/tree-view/utils/is-leaf-node.js +0 -3
  472. package/dist/tree-view/utils/is-tree-node-disabled.d.ts +0 -1
  473. package/dist/tree-view/utils/is-tree-node-disabled.js +0 -3
  474. package/dist/tree-view/utils/select-node.d.ts +0 -2
  475. package/dist/tree-view/utils/select-node.js +0 -15
  476. package/dist/tree-view/utils/toggle-all-selections.d.ts +0 -2
  477. package/dist/tree-view/utils/toggle-all-selections.js +0 -9
  478. package/dist/tree-view/utils/toggle-selection.d.ts +0 -2
  479. package/dist/tree-view/utils/toggle-selection.js +0 -21
  480. package/dist/tree-view/virtualized/force-sync-scrolling.d.ts +0 -2
  481. package/dist/tree-view/virtualized/force-sync-scrolling.js +0 -23
  482. package/dist/tree-view/virtualized/get-virtual-tree-paths.d.ts +0 -2
  483. package/dist/tree-view/virtualized/get-virtual-tree-paths.js +0 -14
  484. package/dist/tree-view/virtualized/make-virtual-tree.d.ts +0 -31
  485. package/dist/tree-view/virtualized/make-virtual-tree.js +0 -90
  486. package/dist/tree-view/virtualized/use-flattened-tree.d.ts +0 -9
  487. package/dist/tree-view/virtualized/use-flattened-tree.js +0 -36
  488. package/dist/tree-view/virtualized/use-row-start-and-end.d.ts +0 -2
  489. package/dist/tree-view/virtualized/use-row-start-and-end.js +0 -27
  490. package/dist/tree-view/virtualized/use-virtualized-tree.d.ts +0 -22
  491. package/dist/tree-view/virtualized/use-virtualized-tree.js +0 -100
  492. package/dist/types/types.d.ts +0 -8
  493. package/dist/types/types.js +0 -1
  494. package/dist/utils/cycle-sorts.d.ts +0 -2
  495. package/dist/utils/cycle-sorts.js +0 -16
  496. package/dist/viewport/begin-editing.d.ts +0 -5
  497. package/dist/viewport/begin-editing.js +0 -15
  498. package/dist/viewport/viewport.d.ts +0 -1
  499. package/dist/viewport/viewport.js +0 -78
@@ -1,50 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef, useEffect, useState } from "react";
3
- import { useListboxContext } from "./context.js";
4
- import { useCombinedRefs } from "@1771technologies/lytenyte-react-hooks";
5
- import { getTabbables } from "@1771technologies/lytenyte-dom-utils";
6
- export const Panel = forwardRef(function Panel(props, forwarded) {
7
- const [ref, setRef] = useState();
8
- const combinedRef = useCombinedRefs(setRef, forwarded);
9
- const ctx = useListboxContext();
10
- useEffect(() => {
11
- if (!ref)
12
- return;
13
- const controller = new AbortController();
14
- const isVert = ctx.orientation === "vertical";
15
- const nextKey = isVert ? "ArrowDown" : ctx.rtl ? "ArrowLeft" : "ArrowRight";
16
- const prevKey = isVert ? "ArrowUp" : ctx.rtl ? "ArrowRight" : "ArrowLeft";
17
- ref.addEventListener("keydown", (ev) => {
18
- if (ev.key === "Tab") {
19
- if (ref.contains(document.activeElement) || document.activeElement === ref) {
20
- ref.inert = true;
21
- setTimeout(() => {
22
- ref.inert = false;
23
- }, 10);
24
- }
25
- }
26
- if (ev.key === nextKey) {
27
- const items = getTabbables(ref).filter((c) => c.getAttribute("data-ln-listbox-item") === "true");
28
- const currentIndex = items.findIndex((c) => c.contains(document.activeElement) || c === document.activeElement);
29
- const focusItem = currentIndex === -1 ? items[0] : (items[currentIndex + 1] ?? items[0]);
30
- if (!focusItem)
31
- return;
32
- focusItem.focus();
33
- ev.preventDefault();
34
- ev.stopPropagation();
35
- }
36
- if (ev.key === prevKey) {
37
- const items = getTabbables(ref).filter((c) => c.getAttribute("data-ln-listbox-item") === "true");
38
- const currentIndex = items.findIndex((c) => c.contains(document.activeElement) || c === document.activeElement);
39
- const focusItem = currentIndex === -1 ? items.at(-1) : (items[currentIndex - 1] ?? items.at(-1));
40
- if (!focusItem)
41
- return;
42
- focusItem.focus();
43
- ev.preventDefault();
44
- ev.stopPropagation();
45
- }
46
- }, { signal: controller.signal });
47
- return () => controller.abort();
48
- }, [ctx.orientation, ctx.rtl, ref]);
49
- return (_jsxs("div", { "aria-label": "Generic listbox with keyboard navigable items", ...props, ref: combinedRef, "data-ln-listbox-panel": true, role: "listbox", tabIndex: 0, children: [props.children, _jsx("div", { "aria-label": "a presentational item that can be ignored", tabIndex: 0, onFocus: () => ref?.focus(), role: "option" })] }));
50
- });
@@ -1,6 +0,0 @@
1
- import { type PropsWithChildren } from "react";
2
- export interface RootProps {
3
- readonly orientation?: "horizontal" | "vertical";
4
- readonly rtl?: boolean;
5
- }
6
- export declare function Root(props: PropsWithChildren<RootProps>): import("react/jsx-runtime").JSX.Element;
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useMemo } from "react";
3
- import { context } from "./context.js";
4
- export function Root(props) {
5
- const value = useMemo(() => {
6
- return {
7
- orientation: props.orientation ?? "vertical",
8
- rtl: props.rtl ?? false,
9
- };
10
- }, [props.orientation, props.rtl]);
11
- return _jsx(context.Provider, { value: value, children: props.children });
12
- }
@@ -1 +0,0 @@
1
- export declare function DialogDriver(): import("react/jsx-runtime").JSX.Element;
@@ -1,21 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useGridRoot } from "../context.js";
3
- export function DialogDriver() {
4
- const grid = useGridRoot().grid;
5
- const openFrameState = grid.internal.dialogFrames.useValue();
6
- const frames = grid.state.dialogFrames.useValue();
7
- const frameIds = Object.keys(openFrameState);
8
- const openFrames = frameIds
9
- .map((c) => {
10
- const frame = frames[c];
11
- if (!frame) {
12
- console.error(`Failed to find a dialog frame with id ${c}`);
13
- return null;
14
- }
15
- return frame;
16
- })
17
- .filter((c) => c);
18
- return (_jsx(_Fragment, { children: openFrames.map((frame, i) => {
19
- return (_jsx(frame.component, { frame: frame, grid: grid, context: openFrameState[frameIds[i]] }, frameIds[i]));
20
- }) }));
21
- }
@@ -1 +0,0 @@
1
- export declare function PopoverDriver(): import("react/jsx-runtime").JSX.Element;
@@ -1,21 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useGridRoot } from "../context.js";
3
- export function PopoverDriver() {
4
- const grid = useGridRoot().grid;
5
- const openFrameState = grid.internal.popoverFrames.useValue();
6
- const frames = grid.state.popoverFrames.useValue();
7
- const frameIds = Object.keys(openFrameState);
8
- const openFrames = frameIds
9
- .map((c) => {
10
- const frame = frames[c];
11
- if (!frame) {
12
- console.error(`Failed to find a dialog frame with id ${c}`);
13
- return null;
14
- }
15
- return frame;
16
- })
17
- .filter((c) => c);
18
- return (_jsx(_Fragment, { children: openFrames.map((frame, i) => {
19
- return (_jsx(frame.component, { frame: frame, grid: grid, context: openFrameState[frameIds[i]].context, target: openFrameState[frameIds[i]].target }, frameIds[i]));
20
- }) }));
21
- }
@@ -1,8 +0,0 @@
1
- import { type PropsWithChildren } from "react";
2
- import type { Grid, GridEvents } from "../+types";
3
- export type RootProps<T> = {
4
- readonly grid: Grid<T>;
5
- } & {
6
- [k in keyof GridEvents<T> as `on${Capitalize<k>}`]: GridEvents<T>[k];
7
- };
8
- export declare function Root<T = any>({ grid, children, ...events }: PropsWithChildren<RootProps<T>>): import("react/jsx-runtime").JSX.Element;
package/dist/root/root.js DELETED
@@ -1,125 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useEffect, useLayoutEffect, useMemo } from "react";
3
- import { useEvent, useMeasure } from "@1771technologies/lytenyte-react-hooks";
4
- import { RootProvider } from "../context.js";
5
- import { DialogDriver } from "./dialog-driver.js";
6
- import { PopoverDriver } from "./popover-driver.js";
7
- import { CellSelectionDriver } from "../cell-selection/cell-selection-driver.js";
8
- import { hasAValidLicense, licenseState } from "../license.js";
9
- export function Root({ grid, children, ...events }) {
10
- useEffect(() => {
11
- if (hasAValidLicense)
12
- return;
13
- const existing = document.getElementById("lng1771-watermark");
14
- if (existing)
15
- return;
16
- const invalidLicenseWatermark = document.createElement("div");
17
- invalidLicenseWatermark.style.position = "fixed";
18
- invalidLicenseWatermark.style.bottom = "0px";
19
- invalidLicenseWatermark.style.insetInlineEnd = "0px";
20
- invalidLicenseWatermark.style.background = "rgb(255, 167, 167)";
21
- invalidLicenseWatermark.style.color = "black";
22
- invalidLicenseWatermark.style.fontSize = "1.2rem";
23
- invalidLicenseWatermark.style.fontWeight = "bold";
24
- invalidLicenseWatermark.style.border = "1px solid black";
25
- invalidLicenseWatermark.style.padding = "16px";
26
- if (licenseState === "expired")
27
- invalidLicenseWatermark.innerHTML = `LyteNyte Grid: License key expired. Your license covers earlier versions only.`;
28
- else if (licenseState === "invalid")
29
- invalidLicenseWatermark.innerHTML = `LyteNyte Grid: Invalid license key. Please verify the key and try again.`;
30
- else
31
- invalidLicenseWatermark.innerHTML = `LyteNyte Grid PRO is being used for evaluation.
32
- <a href="https://1771Technologies.com/pricing">Click here</a> to secure your license.`;
33
- document.body.appendChild(invalidLicenseWatermark);
34
- return () => invalidLicenseWatermark.remove();
35
- }, []);
36
- const onViewportChange = useEvent((bounds) => {
37
- grid.state.viewport.set(element ?? null);
38
- grid.state.viewportHeightOuter.set(bounds.height);
39
- grid.state.viewportWidthOuter.set(bounds.width);
40
- grid.state.viewportWidthInner.set(element?.clientWidth ?? 0);
41
- grid.state.viewportHeightInner.set(element?.clientHeight ?? 0);
42
- });
43
- // Add event listeners in the standard react way
44
- useEffect(() => {
45
- const ev = Object.entries(events).map(([onName, fn]) => {
46
- if (!onName.startsWith("on"))
47
- return;
48
- const name = onName[2].toLowerCase() + onName.slice(3);
49
- return grid.api.eventAddListener(name, fn);
50
- });
51
- return () => ev.forEach((c) => c?.());
52
- // eslint-disable-next-line react-hooks/exhaustive-deps
53
- }, [Object.values(events)]);
54
- const [ref, bounds, , element] = useMeasure({
55
- onChange: onViewportChange,
56
- });
57
- // Add css variables so that we can avoid re-renders
58
- useEffect(() => {
59
- return grid.state.widthTotal.watch(() => {
60
- const vp = grid.state.viewport.get();
61
- const width = grid.state.widthTotal.get();
62
- if (!vp)
63
- return;
64
- vp.style.setProperty("--lng-vp-total-width", `${width}px`);
65
- });
66
- }, [grid]);
67
- const internal = grid.internal;
68
- // Listen to size changes of the window
69
- useLayoutEffect(() => {
70
- if (!element)
71
- return;
72
- const obs = new ResizeObserver(() => {
73
- grid.state.viewport.set(element ?? null);
74
- grid.state.viewportHeightOuter.set(bounds.height);
75
- grid.state.viewportWidthOuter.set(bounds.width);
76
- grid.state.viewportWidthInner.set(element?.clientWidth ?? 0);
77
- grid.state.viewportHeightInner.set(element?.clientHeight ?? 0);
78
- });
79
- obs.observe(element);
80
- const controller = new AbortController();
81
- element.addEventListener("scroll", () => {
82
- internal.xScroll.set(Math.abs(element.scrollLeft));
83
- internal.yScroll.set(element.scrollTop);
84
- }, { signal: controller.signal });
85
- return () => {
86
- obs.disconnect();
87
- controller.abort();
88
- };
89
- }, [
90
- bounds.height,
91
- bounds.width,
92
- element,
93
- grid.state.viewport,
94
- grid.state.viewportHeightInner,
95
- grid.state.viewportHeightOuter,
96
- grid.state.viewportWidthInner,
97
- grid.state.viewportWidthOuter,
98
- internal.xScroll,
99
- internal.yScroll,
100
- ]);
101
- useEffect(() => {
102
- return internal.focusActive.watch(() => {
103
- const editActive = internal.editActivePos.get();
104
- if (!editActive)
105
- return;
106
- const focus = internal.focusActive.get();
107
- if (focus?.kind !== "cell") {
108
- grid.api.editEnd();
109
- }
110
- else {
111
- if (grid.api.editIsCellActive({ rowIndex: focus.rowIndex, column: focus.colIndex }))
112
- return;
113
- grid.api.editEnd();
114
- }
115
- });
116
- }, [grid.api, internal.editActivePos, internal.focusActive]);
117
- const value = useMemo(() => {
118
- return {
119
- ref,
120
- grid: grid,
121
- };
122
- }, [grid, ref]);
123
- const cellSelectionMode = grid.state.cellSelectionMode.useValue();
124
- return (_jsxs(RootProvider, { value: value, children: [_jsx(DialogDriver, {}), _jsx(PopoverDriver, {}), cellSelectionMode !== "none" && _jsx(CellSelectionDriver, {}), children] }));
125
- }
@@ -1,2 +0,0 @@
1
- export declare const LEAF = 1;
2
- export declare const BRANCH = 2;
@@ -1,2 +0,0 @@
1
- export const LEAF = 1;
2
- export const BRANCH = 2;
@@ -1,27 +0,0 @@
1
- export interface GroupItem<Data> {
2
- readonly fn: (d: Data) => string | null | undefined;
3
- }
4
- export interface AggregationItem<Data> {
5
- readonly fn: (d: Data[]) => unknown;
6
- readonly name: string;
7
- }
8
- export interface LeafNode<Data> {
9
- readonly kind: 1;
10
- readonly id: string;
11
- readonly data: Data;
12
- readonly depth: number;
13
- readonly parent: BranchNode<Data> | null;
14
- }
15
- export interface BranchNode<Data> {
16
- readonly kind: 2;
17
- readonly depth: number;
18
- readonly id: string;
19
- readonly key: string;
20
- readonly children: Map<string | null, TreeNode<Data>>;
21
- readonly data: Record<string, unknown>;
22
- readonly parent: BranchNode<Data> | null;
23
- readonly leafIds: Set<string>;
24
- readonly leafData: Data[];
25
- }
26
- export type TreeNode<Data> = LeafNode<Data> | BranchNode<Data>;
27
- export type Root<Data> = Map<string | null, TreeNode<Data>>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Calculates the average (mean) of non-null values in an array.
3
- * @param data - An array of numbers that may include null values
4
- * @returns The average of all non-null numbers. Returns 0 for empty arrays.
5
- * @example
6
- * avg([1, 2, null, 3]) // Returns 2
7
- * avg([]) // Returns 0
8
- * avg([null, null]) // Returns 0
9
- */
10
- export declare function avg(data: (number | null)[]): number;
@@ -1,16 +0,0 @@
1
- import { sum } from "./sum.js";
2
- /**
3
- * Calculates the average (mean) of non-null values in an array.
4
- * @param data - An array of numbers that may include null values
5
- * @returns The average of all non-null numbers. Returns 0 for empty arrays.
6
- * @example
7
- * avg([1, 2, null, 3]) // Returns 2
8
- * avg([]) // Returns 0
9
- * avg([null, null]) // Returns 0
10
- */
11
- export function avg(data) {
12
- if (!data.length)
13
- return 0;
14
- const total = sum(data);
15
- return total / data.length;
16
- }
@@ -1,44 +0,0 @@
1
- import { avg } from "./avg.js";
2
- import { count } from "./count.js";
3
- import { first } from "./first.js";
4
- import { group } from "./group.js";
5
- import { last } from "./last.js";
6
- import { max } from "./max.js";
7
- import { min } from "./min.js";
8
- import { sum } from "./sum.js";
9
- /**
10
- * Collection of built-in array utility functions for numerical and statistical operations.
11
- * Each function handles null and undefined values gracefully.
12
- * @example
13
- * import { builtIns } from './builtIns.js';
14
- *
15
- * const data = [1, null, 3, 2];
16
- * builtIns.sum(data); // Returns 6
17
- * builtIns.avg(data); // Returns 2
18
- */
19
- export declare const builtIns: {
20
- /** Calculate sum of non-null numbers in array */
21
- sum: typeof sum;
22
- /** Count non-null/undefined elements in array */
23
- count: typeof count;
24
- /** Calculate average of non-null numbers in array */
25
- avg: typeof avg;
26
- /** Get first non-null/undefined element in array */
27
- first: typeof first;
28
- /** Get last non-null/undefined element in array */
29
- last: typeof last;
30
- /** Find minimum value among non-null/undefined numbers in array */
31
- min: typeof min;
32
- /** Find maximum value among non-null/undefined numbers in array */
33
- max: typeof max;
34
- /** Return the aggregation group */
35
- group: typeof group;
36
- };
37
- /**
38
- * Set containing valid built-in function names.
39
- * Used for validating function names and checking available operations.
40
- * @example
41
- * const isValidFunction = validBuiltIns.has('sum'); // Returns true
42
- * const isInvalidFunction = validBuiltIns.has('median'); // Returns false
43
- */
44
- export declare const validBuiltIns: Set<string>;
@@ -1,44 +0,0 @@
1
- import { avg } from "./avg.js";
2
- import { count } from "./count.js";
3
- import { first } from "./first.js";
4
- import { group } from "./group.js";
5
- import { last } from "./last.js";
6
- import { max } from "./max.js";
7
- import { min } from "./min.js";
8
- import { sum } from "./sum.js";
9
- /**
10
- * Collection of built-in array utility functions for numerical and statistical operations.
11
- * Each function handles null and undefined values gracefully.
12
- * @example
13
- * import { builtIns } from './builtIns.js';
14
- *
15
- * const data = [1, null, 3, 2];
16
- * builtIns.sum(data); // Returns 6
17
- * builtIns.avg(data); // Returns 2
18
- */
19
- export const builtIns = {
20
- /** Calculate sum of non-null numbers in array */
21
- sum: sum,
22
- /** Count non-null/undefined elements in array */
23
- count: count,
24
- /** Calculate average of non-null numbers in array */
25
- avg: avg,
26
- /** Get first non-null/undefined element in array */
27
- first: first,
28
- /** Get last non-null/undefined element in array */
29
- last: last,
30
- /** Find minimum value among non-null/undefined numbers in array */
31
- min: min,
32
- /** Find maximum value among non-null/undefined numbers in array */
33
- max: max,
34
- /** Return the aggregation group */
35
- group: group,
36
- };
37
- /**
38
- * Set containing valid built-in function names.
39
- * Used for validating function names and checking available operations.
40
- * @example
41
- * const isValidFunction = validBuiltIns.has('sum'); // Returns true
42
- * const isInvalidFunction = validBuiltIns.has('median'); // Returns false
43
- */
44
- export const validBuiltIns = new Set(Object.keys(builtIns));
@@ -1,10 +0,0 @@
1
- /**
2
- * Counts the number of non-null elements in an array.
3
- * @param data - An array of any type
4
- * @returns The count of elements that are neither null nor undefined
5
- * @example
6
- * count([1, null, 'a', undefined]) // Returns 2
7
- * count([]) // Returns 0
8
- * count([null, undefined]) // Returns 0
9
- */
10
- export declare function count(d: unknown[]): number;
@@ -1,16 +0,0 @@
1
- /**
2
- * Counts the number of non-null elements in an array.
3
- * @param data - An array of any type
4
- * @returns The count of elements that are neither null nor undefined
5
- * @example
6
- * count([1, null, 'a', undefined]) // Returns 2
7
- * count([]) // Returns 0
8
- * count([null, undefined]) // Returns 0
9
- */
10
- export function count(d) {
11
- let c = 0;
12
- for (let i = d.length - 1; i >= 0; i--)
13
- if (d[i] != null)
14
- c++;
15
- return c;
16
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Returns the first non-null element in an array.
3
- * @param data - An array of any type
4
- * @returns The first element that is neither null nor undefined, or undefined if no such element exists
5
- * @example
6
- * first([null, 1, 2]) // Returns 1
7
- * first([]) // Returns undefined
8
- * first([null, undefined]) // Returns undefined
9
- */
10
- export declare function first(d: unknown[]): {} | undefined;
@@ -1,12 +0,0 @@
1
- /**
2
- * Returns the first non-null element in an array.
3
- * @param data - An array of any type
4
- * @returns The first element that is neither null nor undefined, or undefined if no such element exists
5
- * @example
6
- * first([null, 1, 2]) // Returns 1
7
- * first([]) // Returns undefined
8
- * first([null, undefined]) // Returns undefined
9
- */
10
- export function first(d) {
11
- return d.find((c) => c != null);
12
- }
@@ -1 +0,0 @@
1
- export declare function group(data: unknown[]): unknown[];
@@ -1,3 +0,0 @@
1
- export function group(data) {
2
- return data;
3
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Returns the last non-null element in an array.
3
- * @param data - An array of any type
4
- * @returns The last element that is neither null nor undefined, or undefined if no such element exists
5
- * @example
6
- * last([1, 2, null]) // Returns 2
7
- * last([]) // Returns undefined
8
- * last([null, undefined]) // Returns undefined
9
- */
10
- export declare function last(d: unknown[]): {} | undefined;
@@ -1,12 +0,0 @@
1
- /**
2
- * Returns the last non-null element in an array.
3
- * @param data - An array of any type
4
- * @returns The last element that is neither null nor undefined, or undefined if no such element exists
5
- * @example
6
- * last([1, 2, null]) // Returns 2
7
- * last([]) // Returns undefined
8
- * last([null, undefined]) // Returns undefined
9
- */
10
- export function last(d) {
11
- return d.findLast((c) => c != null);
12
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Finds the maximum value in an array of numbers that may include null or undefined values.
3
- * Iterates through the array from right to left.
4
- * @param data - An array of numbers that may include null or undefined values
5
- * @returns The maximum number found in the array. Returns 0 for empty arrays or if no valid numbers are found.
6
- * @example
7
- * max([1, null, 3, undefined, 2]) // Returns 3
8
- * max([]) // Returns 0
9
- * max([null, undefined]) // Returns 0
10
- */
11
- export declare function max(data: (number | null | undefined)[]): number;
@@ -1,25 +0,0 @@
1
- /**
2
- * Finds the maximum value in an array of numbers that may include null or undefined values.
3
- * Iterates through the array from right to left.
4
- * @param data - An array of numbers that may include null or undefined values
5
- * @returns The maximum number found in the array. Returns 0 for empty arrays or if no valid numbers are found.
6
- * @example
7
- * max([1, null, 3, undefined, 2]) // Returns 3
8
- * max([]) // Returns 0
9
- * max([null, undefined]) // Returns 0
10
- */
11
- export function max(data) {
12
- if (!data.length)
13
- return 0;
14
- let max = data[0];
15
- for (let i = data.length - 1; i > 0; i--) {
16
- const d = data[i];
17
- if (d != null && max == null)
18
- max = d;
19
- else if (d == null)
20
- continue;
21
- else if (d > max)
22
- max = data[i];
23
- }
24
- return max ?? 0;
25
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Finds the minimum value in an array of numbers that may include null or undefined values.
3
- * Iterates through the array from right to left.
4
- * @param data - An array of numbers that may include null or undefined values
5
- * @returns The minimum number found in the array. Returns 0 for empty arrays or if no valid numbers are found.
6
- * @example
7
- * min([1, null, 3, undefined, 2]) // Returns 1
8
- * min([]) // Returns 0
9
- * min([null, undefined]) // Returns 0
10
- */
11
- export declare function min(data: (number | null | undefined)[]): number;
@@ -1,25 +0,0 @@
1
- /**
2
- * Finds the minimum value in an array of numbers that may include null or undefined values.
3
- * Iterates through the array from right to left.
4
- * @param data - An array of numbers that may include null or undefined values
5
- * @returns The minimum number found in the array. Returns 0 for empty arrays or if no valid numbers are found.
6
- * @example
7
- * min([1, null, 3, undefined, 2]) // Returns 1
8
- * min([]) // Returns 0
9
- * min([null, undefined]) // Returns 0
10
- */
11
- export function min(data) {
12
- if (!data.length)
13
- return 0;
14
- let min = data[0];
15
- for (let i = data.length - 1; i > 0; i--) {
16
- const d = data[i];
17
- if (d != null && min == null)
18
- min = d;
19
- else if (d == null)
20
- continue;
21
- else if (d < min)
22
- min = data[i];
23
- }
24
- return min ?? 0;
25
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Calculates the sum of all non-null numbers in an array.
3
- * @param data - An array of numbers that may include null values
4
- * @returns The sum of all non-null numbers in the array. Returns 0 for empty arrays or arrays containing only null values.
5
- * @example
6
- * sum([1, 2, null, 3]) // Returns 6
7
- * sum([]) // Returns 0
8
- * sum([null, null]) // Returns 0
9
- */
10
- export declare function sum(data: (number | null)[]): number;
@@ -1,21 +0,0 @@
1
- /**
2
- * Calculates the sum of all non-null numbers in an array.
3
- * @param data - An array of numbers that may include null values
4
- * @returns The sum of all non-null numbers in the array. Returns 0 for empty arrays or arrays containing only null values.
5
- * @example
6
- * sum([1, 2, null, 3]) // Returns 6
7
- * sum([]) // Returns 0
8
- * sum([null, null]) // Returns 0
9
- */
10
- export function sum(data) {
11
- if (!data.length)
12
- return 0;
13
- let total = 0;
14
- for (let i = data.length - 1; i >= 0; i--) {
15
- const d = data[i];
16
- if (d == null)
17
- continue;
18
- total += d;
19
- }
20
- return total;
21
- }
@@ -1,23 +0,0 @@
1
- import type { FilterDateSetting, FilterNumberSettings, FilterStringSettings } from "@1771technologies/lytenyte-shared";
2
- import type { FilterCombinationOperator, FilterDate, FilterFunc, FilterIn, FilterNumber, FilterString } from "../../+types";
3
- export interface FilterDateWithSettings extends FilterDate {
4
- readonly field: string;
5
- readonly settings: FilterDateSetting;
6
- }
7
- export interface FilterStringWithSettings extends FilterString {
8
- readonly field: string;
9
- readonly settings: FilterStringSettings;
10
- }
11
- export interface FilterNumberWithSettings extends FilterNumber {
12
- readonly field: string;
13
- readonly settings: FilterNumberSettings;
14
- }
15
- export interface FilterInWithField extends FilterIn {
16
- readonly field: string;
17
- }
18
- export interface FilterCombinationWithSettings {
19
- readonly kind: "combination";
20
- readonly operator: FilterCombinationOperator;
21
- readonly filters: Array<FilterStringWithSettings | FilterNumberWithSettings | FilterDateWithSettings | FilterCombinationWithSettings>;
22
- }
23
- export type FilterWithSettings<T> = FilterDateWithSettings | FilterStringWithSettings | FilterNumberWithSettings | FilterCombinationWithSettings | FilterInWithField | FilterFunc<T>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import type { FilterIn, FilterModelItem, FilterQuickSearchSensitivity, Grid, RowLeaf } from "../../+types";
2
- export declare function computeFilteredRows<T>(rows: RowLeaf<T>[], grid: Grid<T> | null, filterModel: Record<string, FilterModelItem<T>>, filterInModel: Record<string, FilterIn>, quickSearch: string | null, sensitivity: FilterQuickSearchSensitivity, isPivot: boolean): RowLeaf<T>[];