@1771technologies/lytenyte-pro 2.0.0-dev.0 → 2.0.0-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 (423) hide show
  1. package/dist/__play__/alpha.play.d.ts +3 -0
  2. package/dist/__play__/alpha.play.js +56 -0
  3. package/dist/__play__/basic-server-data/data.d.ts +10 -0
  4. package/dist/__play__/basic-server-data/data.js +17746 -0
  5. package/dist/__play__/basic-server-data/server.d.ts +36 -0
  6. package/dist/__play__/basic-server-data/server.js +105 -0
  7. package/dist/__play__/buttons.play.d.ts +4 -0
  8. package/dist/__play__/buttons.play.js +7 -0
  9. package/dist/__play__/inputs.play.d.ts +3 -0
  10. package/dist/__play__/inputs.play.js +13 -0
  11. package/dist/__play__/server.play.d.ts +3 -0
  12. package/dist/__play__/server.play.js +66 -0
  13. package/dist/__play__/tree.play.d.ts +3 -0
  14. package/dist/__play__/tree.play.js +47 -0
  15. package/dist/cell-selection/adjust-rect-for-row-and-cell-span.d.ts +2 -0
  16. package/dist/cell-selection/adjust-rect-for-row-and-cell-span.js +43 -0
  17. package/dist/cell-selection/are-rects-equal.d.ts +2 -0
  18. package/dist/cell-selection/are-rects-equal.js +6 -0
  19. package/dist/cell-selection/bound-selection-rect.d.ts +3 -0
  20. package/dist/cell-selection/bound-selection-rect.js +16 -0
  21. package/dist/cell-selection/cell-selection-containers.d.ts +3 -0
  22. package/dist/cell-selection/cell-selection-containers.js +86 -0
  23. package/dist/cell-selection/cell-selection-driver/cell-selection-driver.d.ts +1 -0
  24. package/dist/cell-selection/cell-selection-driver/cell-selection-driver.js +279 -0
  25. package/dist/cell-selection/cell-selection-driver/use-cell-focus-change.d.ts +6 -0
  26. package/dist/cell-selection/cell-selection-driver/use-cell-focus-change.js +34 -0
  27. package/dist/cell-selection/cell-style-row.d.ts +8 -0
  28. package/dist/cell-selection/cell-style-row.js +79 -0
  29. package/dist/cell-selection/data-rect-from-cell-position.d.ts +3 -0
  30. package/dist/cell-selection/data-rect-from-cell-position.js +17 -0
  31. package/dist/cell-selection/deselect-rect-range.d.ts +2 -0
  32. package/dist/cell-selection/deselect-rect-range.js +43 -0
  33. package/dist/cell-selection/expand-selection-down.d.ts +3 -0
  34. package/dist/cell-selection/expand-selection-down.js +78 -0
  35. package/dist/cell-selection/expand-selection-end.d.ts +3 -0
  36. package/dist/cell-selection/expand-selection-end.js +76 -0
  37. package/dist/cell-selection/expand-selection-start.d.ts +3 -0
  38. package/dist/cell-selection/expand-selection-start.js +73 -0
  39. package/dist/cell-selection/expand-selection-up.d.ts +3 -0
  40. package/dist/cell-selection/expand-selection-up.js +74 -0
  41. package/dist/cell-selection/full-width-start-end-index.d.ts +2 -0
  42. package/dist/cell-selection/full-width-start-end-index.js +4 -0
  43. package/dist/cell-selection/get-root-cell.d.ts +3 -0
  44. package/dist/cell-selection/get-root-cell.js +6 -0
  45. package/dist/cell-selection/index.d.ts +13 -0
  46. package/dist/cell-selection/index.js +13 -0
  47. package/dist/cell-selection/is-bottom-rect.d.ts +2 -0
  48. package/dist/cell-selection/is-bottom-rect.js +4 -0
  49. package/dist/cell-selection/is-center-col-rect.d.ts +5 -0
  50. package/dist/cell-selection/is-center-col-rect.js +3 -0
  51. package/dist/cell-selection/is-center-rect.d.ts +2 -0
  52. package/dist/cell-selection/is-center-rect.js +4 -0
  53. package/dist/cell-selection/is-end-rect.d.ts +5 -0
  54. package/dist/cell-selection/is-end-rect.js +3 -0
  55. package/dist/cell-selection/is-fully-within-rect.d.ts +2 -0
  56. package/dist/cell-selection/is-fully-within-rect.js +6 -0
  57. package/dist/cell-selection/is-overlapping-rect.d.ts +2 -0
  58. package/dist/cell-selection/is-overlapping-rect.js +5 -0
  59. package/dist/cell-selection/is-start-rect.d.ts +5 -0
  60. package/dist/cell-selection/is-start-rect.js +3 -0
  61. package/dist/cell-selection/is-top-rect.d.ts +2 -0
  62. package/dist/cell-selection/is-top-rect.js +3 -0
  63. package/dist/cell-selection/is-within-selection-rect.d.ts +2 -0
  64. package/dist/cell-selection/is-within-selection-rect.js +3 -0
  65. package/dist/cell-selection/split-cell-selection-rect.d.ts +47 -0
  66. package/dist/cell-selection/split-cell-selection-rect.js +88 -0
  67. package/dist/cell-selection/split-on-pivot.d.ts +3 -0
  68. package/dist/cell-selection/split-on-pivot.js +50 -0
  69. package/dist/cell-selection/update-additive-cell-selection.d.ts +4 -0
  70. package/dist/cell-selection/update-additive-cell-selection.js +21 -0
  71. package/dist/cell-selection/use-edge-scroll.d.ts +6 -0
  72. package/dist/cell-selection/use-edge-scroll.js +71 -0
  73. package/dist/components/checkbox/checkbox.d.ts +15 -0
  74. package/dist/components/checkbox/checkbox.js +42 -0
  75. package/dist/components/checkbox/checkbox.play.d.ts +2 -0
  76. package/dist/components/checkbox/checkbox.play.js +6 -0
  77. package/dist/components/column-manager/column-manager.d.ts +13 -0
  78. package/dist/components/column-manager/column-manager.js +47 -0
  79. package/dist/components/external/clsx.d.ts +2 -0
  80. package/dist/components/external/clsx.js +44 -0
  81. package/dist/components/external/floating-ui.d.ts +268 -0
  82. package/dist/components/external/floating-ui.js +1802 -0
  83. package/dist/components/headless/dialog/arrow.d.ts +6 -0
  84. package/dist/components/headless/dialog/arrow.js +16 -0
  85. package/dist/components/headless/dialog/close.d.ts +10 -0
  86. package/dist/components/headless/dialog/close.js +22 -0
  87. package/dist/components/headless/dialog/container.d.ts +5 -0
  88. package/dist/components/headless/dialog/container.js +221 -0
  89. package/dist/components/headless/dialog/context.d.ts +32 -0
  90. package/dist/components/headless/dialog/context.js +3 -0
  91. package/dist/components/headless/dialog/description.d.ts +9 -0
  92. package/dist/components/headless/dialog/description.js +20 -0
  93. package/dist/components/headless/dialog/index.parts.d.ts +30 -0
  94. package/dist/components/headless/dialog/index.parts.js +17 -0
  95. package/dist/components/headless/dialog/root.d.ts +32 -0
  96. package/dist/components/headless/dialog/root.js +75 -0
  97. package/dist/components/headless/dialog/title.d.ts +9 -0
  98. package/dist/components/headless/dialog/title.js +20 -0
  99. package/dist/components/headless/dialog/transform-origin.d.ts +5 -0
  100. package/dist/components/headless/dialog/transform-origin.js +38 -0
  101. package/dist/components/headless/dialog/trigger.d.ts +10 -0
  102. package/dist/components/headless/dialog/trigger.js +24 -0
  103. package/dist/components/headless/dialog/use-dialog.d.ts +4 -0
  104. package/dist/components/headless/dialog/use-dialog.js +12 -0
  105. package/dist/components/headless/menu/checkbox-item.d.ts +11 -0
  106. package/dist/components/headless/menu/checkbox-item.js +42 -0
  107. package/dist/components/headless/menu/combo/combo-checkbox.d.ts +11 -0
  108. package/dist/components/headless/menu/combo/combo-checkbox.js +38 -0
  109. package/dist/components/headless/menu/combo/combo-context.d.ts +9 -0
  110. package/dist/components/headless/menu/combo/combo-context.js +3 -0
  111. package/dist/components/headless/menu/combo/combo-input.d.ts +7 -0
  112. package/dist/components/headless/menu/combo/combo-input.js +58 -0
  113. package/dist/components/headless/menu/combo/combo-menu.d.ts +5 -0
  114. package/dist/components/headless/menu/combo/combo-menu.js +24 -0
  115. package/dist/components/headless/menu/combo/combo-option.d.ts +9 -0
  116. package/dist/components/headless/menu/combo/combo-option.js +37 -0
  117. package/dist/components/headless/menu/container.d.ts +5 -0
  118. package/dist/components/headless/menu/container.js +19 -0
  119. package/dist/components/headless/menu/dom.d.ts +4 -0
  120. package/dist/components/headless/menu/dom.js +20 -0
  121. package/dist/components/headless/menu/index.d.ts +54 -0
  122. package/dist/components/headless/menu/index.js +39 -0
  123. package/dist/components/headless/menu/item/handle-vertical-navigation.d.ts +2 -0
  124. package/dist/components/headless/menu/item/handle-vertical-navigation.js +28 -0
  125. package/dist/components/headless/menu/item/item.d.ts +9 -0
  126. package/dist/components/headless/menu/item/item.js +45 -0
  127. package/dist/components/headless/menu/item/use-menu-item-events.d.ts +1 -0
  128. package/dist/components/headless/menu/item/use-menu-item-events.js +25 -0
  129. package/dist/components/headless/menu/menu-divider.d.ts +5 -0
  130. package/dist/components/headless/menu/menu-divider.js +6 -0
  131. package/dist/components/headless/menu/menu-group.d.ts +5 -0
  132. package/dist/components/headless/menu/menu-group.js +6 -0
  133. package/dist/components/headless/menu/menu-header.d.ts +5 -0
  134. package/dist/components/headless/menu/menu-header.js +6 -0
  135. package/dist/components/headless/menu/popover.d.ts +5 -0
  136. package/dist/components/headless/menu/popover.js +7 -0
  137. package/dist/components/headless/menu/radio-group/context.d.ts +11 -0
  138. package/dist/components/headless/menu/radio-group/context.js +7 -0
  139. package/dist/components/headless/menu/radio-group/radio-item.d.ts +10 -0
  140. package/dist/components/headless/menu/radio-group/radio-item.js +44 -0
  141. package/dist/components/headless/menu/submenu/submenu-context.d.ts +9 -0
  142. package/dist/components/headless/menu/submenu/submenu-context.js +3 -0
  143. package/dist/components/headless/menu/submenu/submenu-trigger.d.ts +7 -0
  144. package/dist/components/headless/menu/submenu/submenu-trigger.js +70 -0
  145. package/dist/components/headless/menu/submenu/submenu.d.ts +21 -0
  146. package/dist/components/headless/menu/submenu/submenu.js +55 -0
  147. package/dist/components/headless/menu/submenu/use-submenu-position.d.ts +5 -0
  148. package/dist/components/headless/menu/submenu/use-submenu-position.js +31 -0
  149. package/dist/components/headless/menu/use-menu.d.ts +1 -0
  150. package/dist/components/headless/menu/use-menu.js +52 -0
  151. package/dist/components/headless/popover/container.d.ts +5 -0
  152. package/dist/components/headless/popover/container.js +7 -0
  153. package/dist/components/headless/popover/context.d.ts +6 -0
  154. package/dist/components/headless/popover/context.js +3 -0
  155. package/dist/components/headless/popover/index.d.ts +30 -0
  156. package/dist/components/headless/popover/index.js +17 -0
  157. package/dist/components/headless/popover/root.d.ts +6 -0
  158. package/dist/components/headless/popover/root.js +8 -0
  159. package/dist/components/headless/popover/trigger.d.ts +7 -0
  160. package/dist/components/headless/popover/trigger.js +11 -0
  161. package/dist/components/pill-manager/container.d.ts +5 -0
  162. package/dist/components/pill-manager/container.js +127 -0
  163. package/dist/components/pill-manager/expander.d.ts +9 -0
  164. package/dist/components/pill-manager/expander.js +21 -0
  165. package/dist/components/pill-manager/icons.d.ts +12 -0
  166. package/dist/components/pill-manager/icons.js +35 -0
  167. package/dist/components/pill-manager/index.d.ts +33 -0
  168. package/dist/components/pill-manager/index.js +13 -0
  169. package/dist/components/pill-manager/item.d.ts +10 -0
  170. package/dist/components/pill-manager/item.js +178 -0
  171. package/dist/components/pill-manager/label.d.ts +10 -0
  172. package/dist/components/pill-manager/label.js +31 -0
  173. package/dist/components/pill-manager/pill-manager.play.d.ts +3 -0
  174. package/dist/components/pill-manager/pill-manager.play.js +73 -0
  175. package/dist/components/pill-manager/pill-row.context.d.ts +8 -0
  176. package/dist/components/pill-manager/pill-row.context.js +4 -0
  177. package/dist/components/pill-manager/pill-row.d.ts +12 -0
  178. package/dist/components/pill-manager/pill-row.js +22 -0
  179. package/dist/components/pill-manager/root.context.d.ts +40 -0
  180. package/dist/components/pill-manager/root.context.js +4 -0
  181. package/dist/components/pill-manager/root.d.ts +25 -0
  182. package/dist/components/pill-manager/root.js +33 -0
  183. package/dist/components/pill-manager/row-default.d.ts +3 -0
  184. package/dist/components/pill-manager/row-default.js +14 -0
  185. package/dist/components/pill-manager/types.d.ts +21 -0
  186. package/dist/components/pill-manager/types.js +1 -0
  187. package/dist/components/row-group-cell.d.ts +13 -0
  188. package/dist/components/row-group-cell.js +40 -0
  189. package/dist/components/select-all.d.ts +12 -0
  190. package/dist/components/select-all.js +34 -0
  191. package/dist/components/smart-select/chip-context.d.ts +8 -0
  192. package/dist/components/smart-select/chip-context.js +4 -0
  193. package/dist/components/smart-select/chip-remove.d.ts +1 -0
  194. package/dist/components/smart-select/chip-remove.js +13 -0
  195. package/dist/components/smart-select/chip.d.ts +13 -0
  196. package/dist/components/smart-select/chip.js +79 -0
  197. package/dist/components/smart-select/container.d.ts +1 -0
  198. package/dist/components/smart-select/container.js +13 -0
  199. package/dist/components/smart-select/context.d.ts +31 -0
  200. package/dist/components/smart-select/context.js +4 -0
  201. package/dist/components/smart-select/index.d.ts +30 -0
  202. package/dist/components/smart-select/index.js +19 -0
  203. package/dist/components/smart-select/option.d.ts +8 -0
  204. package/dist/components/smart-select/option.js +36 -0
  205. package/dist/components/smart-select/root.d.ts +17 -0
  206. package/dist/components/smart-select/root.js +165 -0
  207. package/dist/components/smart-select/smart-select.play.d.ts +2 -0
  208. package/dist/components/smart-select/smart-select.play.js +36 -0
  209. package/dist/components/smart-select/triggers/basic-trigger.d.ts +1 -0
  210. package/dist/components/smart-select/triggers/basic-trigger.js +18 -0
  211. package/dist/components/smart-select/triggers/combo-trigger.d.ts +1 -0
  212. package/dist/components/smart-select/triggers/combo-trigger.js +17 -0
  213. package/dist/components/smart-select/triggers/is-selectable-option.d.ts +1 -0
  214. package/dist/components/smart-select/triggers/is-selectable-option.js +3 -0
  215. package/dist/components/smart-select/triggers/multi-combo-trigger.d.ts +11 -0
  216. package/dist/components/smart-select/triggers/multi-combo-trigger.js +38 -0
  217. package/dist/components/smart-select/triggers/multi-trigger.d.ts +6 -0
  218. package/dist/components/smart-select/triggers/multi-trigger.js +8 -0
  219. package/dist/components/smart-select/triggers/use-combo-controls.d.ts +9 -0
  220. package/dist/components/smart-select/triggers/use-combo-controls.js +145 -0
  221. package/dist/components/smart-select/triggers/use-trigger-controls.d.ts +5 -0
  222. package/dist/components/smart-select/triggers/use-trigger-controls.js +126 -0
  223. package/dist/components/smart-select/type.d.ts +44 -0
  224. package/dist/components/smart-select/type.js +1 -0
  225. package/dist/components/smart-select/use-async-options.d.ts +8 -0
  226. package/dist/components/smart-select/use-async-options.js +42 -0
  227. package/dist/components/tree-view/index.d.ts +4 -0
  228. package/dist/components/tree-view/index.js +2 -0
  229. package/dist/components/tree-view/root.d.ts +37 -0
  230. package/dist/components/tree-view/root.js +139 -0
  231. package/dist/components/tree-view/select-all.d.ts +7 -0
  232. package/dist/components/tree-view/select-all.js +22 -0
  233. package/dist/components/tree-view/tree-children.d.ts +2 -0
  234. package/dist/components/tree-view/tree-children.js +15 -0
  235. package/dist/components/tree-view/types.d.ts +31 -0
  236. package/dist/components/tree-view/types.js +1 -0
  237. package/dist/components/types.d.ts +4 -0
  238. package/dist/components/types.js +1 -0
  239. package/dist/components/virtual-from-coordinates.d.ts +2 -0
  240. package/dist/components/virtual-from-coordinates.js +15 -0
  241. package/dist/components.d.ts +16 -0
  242. package/dist/components.js +11 -0
  243. package/dist/data-source-client/hooks/get-valid-leafs.d.ts +3 -0
  244. package/dist/data-source-client/hooks/get-valid-leafs.js +11 -0
  245. package/dist/data-source-client/hooks/use-controlled-ds-state.d.ts +13 -0
  246. package/dist/data-source-client/hooks/use-controlled-ds-state.js +39 -0
  247. package/dist/data-source-client/hooks/use-flattened-data.d.ts +18 -0
  248. package/dist/data-source-client/hooks/use-flattened-data.js +40 -0
  249. package/dist/data-source-client/hooks/use-flattened-groups.d.ts +5 -0
  250. package/dist/data-source-client/hooks/use-flattened-groups.js +63 -0
  251. package/dist/data-source-client/hooks/use-flattened-piece.d.ts +14 -0
  252. package/dist/data-source-client/hooks/use-flattened-piece.js +55 -0
  253. package/dist/data-source-client/hooks/use-group-tree/collapse-child.d.ts +2 -0
  254. package/dist/data-source-client/hooks/use-group-tree/collapse-child.js +11 -0
  255. package/dist/data-source-client/hooks/use-group-tree/collapse-last.d.ts +2 -0
  256. package/dist/data-source-client/hooks/use-group-tree/collapse-last.js +14 -0
  257. package/dist/data-source-client/hooks/use-group-tree/collapse.d.ts +2 -0
  258. package/dist/data-source-client/hooks/use-group-tree/collapse.js +17 -0
  259. package/dist/data-source-client/hooks/use-group-tree/use-group-tree.d.ts +31 -0
  260. package/dist/data-source-client/hooks/use-group-tree/use-group-tree.js +152 -0
  261. package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/apply-reference-column.d.ts +2 -0
  262. package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/apply-reference-column.js +22 -0
  263. package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/evaluate-label-filter.d.ts +2 -0
  264. package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/evaluate-label-filter.js +9 -0
  265. package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/pivot-paths-with-totals.d.ts +18 -0
  266. package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/pivot-paths-with-totals.js +140 -0
  267. package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/pivot-paths.d.ts +4 -0
  268. package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/pivot-paths.js +31 -0
  269. package/dist/data-source-client/hooks/use-pivot/use-agg-model.d.ts +4 -0
  270. package/dist/data-source-client/hooks/use-pivot/use-agg-model.js +45 -0
  271. package/dist/data-source-client/hooks/use-pivot/use-filtered-data.d.ts +2 -0
  272. package/dist/data-source-client/hooks/use-pivot/use-filtered-data.js +18 -0
  273. package/dist/data-source-client/hooks/use-pivot/use-pivot-columns.d.ts +14 -0
  274. package/dist/data-source-client/hooks/use-pivot/use-pivot-columns.js +151 -0
  275. package/dist/data-source-client/hooks/use-pivot/use-pivot-data.d.ts +32 -0
  276. package/dist/data-source-client/hooks/use-pivot/use-pivot-data.js +83 -0
  277. package/dist/data-source-client/hooks/use-pivot/use-pivot-group-fn.d.ts +4 -0
  278. package/dist/data-source-client/hooks/use-pivot/use-pivot-group-fn.js +23 -0
  279. package/dist/data-source-client/hooks/use-pivot/use-pivot-state.d.ts +16 -0
  280. package/dist/data-source-client/hooks/use-pivot/use-pivot-state.js +40 -0
  281. package/dist/data-source-client/use-client-data-source.d.ts +91 -0
  282. package/dist/data-source-client/use-client-data-source.js +169 -0
  283. package/dist/data-source-server/async-tree/+constants.async-tree.d.ts +1 -0
  284. package/dist/data-source-server/async-tree/+constants.async-tree.js +1 -0
  285. package/dist/data-source-server/async-tree/apply-delete-action-to-tree.d.ts +2 -0
  286. package/dist/data-source-server/async-tree/apply-delete-action-to-tree.js +27 -0
  287. package/dist/data-source-server/async-tree/apply-set-action-to-tree.d.ts +2 -0
  288. package/dist/data-source-server/async-tree/apply-set-action-to-tree.js +26 -0
  289. package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-are-unique.d.ts +2 -0
  290. package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-are-unique.js +20 -0
  291. package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-are-valid.d.ts +2 -0
  292. package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-are-valid.js +12 -0
  293. package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-fit.d.ts +2 -0
  294. package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-fit.js +18 -0
  295. package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-kinds.d.ts +2 -0
  296. package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-kinds.js +12 -0
  297. package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action.d.ts +2 -0
  298. package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action.js +24 -0
  299. package/dist/data-source-server/async-tree/get-parent-node-by-path.d.ts +2 -0
  300. package/dist/data-source-server/async-tree/get-parent-node-by-path.js +18 -0
  301. package/dist/data-source-server/async-tree/is-set-action-a-no-op-on-node.d.ts +2 -0
  302. package/dist/data-source-server/async-tree/is-set-action-a-no-op-on-node.js +3 -0
  303. package/dist/data-source-server/async-tree/make-async-tree.d.ts +2 -0
  304. package/dist/data-source-server/async-tree/make-async-tree.js +64 -0
  305. package/dist/data-source-server/async-tree/maybe-apply-parent-remove-self.d.ts +2 -0
  306. package/dist/data-source-server/async-tree/maybe-apply-parent-remove-self.js +8 -0
  307. package/dist/data-source-server/async-tree/maybe-apply-resize.d.ts +2 -0
  308. package/dist/data-source-server/async-tree/maybe-apply-resize.js +17 -0
  309. package/dist/data-source-server/async-tree/maybe-apply-set-action-items.d.ts +2 -0
  310. package/dist/data-source-server/async-tree/maybe-apply-set-action-items.js +54 -0
  311. package/dist/data-source-server/async-tree/types.d.ts +70 -0
  312. package/dist/data-source-server/async-tree/types.js +1 -0
  313. package/dist/data-source-server/range-tree/range-tree.d.ts +66 -0
  314. package/dist/data-source-server/range-tree/range-tree.js +102 -0
  315. package/dist/data-source-server/server-data.d.ts +73 -0
  316. package/dist/data-source-server/server-data.js +553 -0
  317. package/dist/data-source-server/source/use-on-rows-updated.d.ts +4 -0
  318. package/dist/data-source-server/source/use-on-rows-updated.js +29 -0
  319. package/dist/data-source-server/source/use-on-view-change.d.ts +3 -0
  320. package/dist/data-source-server/source/use-on-view-change.js +13 -0
  321. package/dist/data-source-server/source/use-row-add.d.ts +3 -0
  322. package/dist/data-source-server/source/use-row-add.js +36 -0
  323. package/dist/data-source-server/source/use-row-by-id.d.ts +2 -0
  324. package/dist/data-source-server/source/use-row-by-id.js +8 -0
  325. package/dist/data-source-server/source/use-row-by-index.d.ts +9 -0
  326. package/dist/data-source-server/source/use-row-by-index.js +89 -0
  327. package/dist/data-source-server/source/use-row-children.d.ts +2 -0
  328. package/dist/data-source-server/source/use-row-children.js +16 -0
  329. package/dist/data-source-server/source/use-row-delete.d.ts +3 -0
  330. package/dist/data-source-server/source/use-row-delete.js +39 -0
  331. package/dist/data-source-server/source/use-row-id-to-row-index.d.ts +2 -0
  332. package/dist/data-source-server/source/use-row-id-to-row-index.js +7 -0
  333. package/dist/data-source-server/source/use-row-index-to-row-id.d.ts +2 -0
  334. package/dist/data-source-server/source/use-row-index-to-row-id.js +7 -0
  335. package/dist/data-source-server/source/use-row-leafs.d.ts +2 -0
  336. package/dist/data-source-server/source/use-row-leafs.js +20 -0
  337. package/dist/data-source-server/source/use-row-parents.d.ts +2 -0
  338. package/dist/data-source-server/source/use-row-parents.js +16 -0
  339. package/dist/data-source-server/source/use-row-siblings.d.ts +2 -0
  340. package/dist/data-source-server/source/use-row-siblings.js +15 -0
  341. package/dist/data-source-server/source/use-rows-between.d.ts +2 -0
  342. package/dist/data-source-server/source/use-rows-between.js +20 -0
  343. package/dist/data-source-server/source/use-source-state.d.ts +28 -0
  344. package/dist/data-source-server/source/use-source-state.js +47 -0
  345. package/dist/data-source-server/source/use-source.d.ts +5 -0
  346. package/dist/data-source-server/source/use-source.js +66 -0
  347. package/dist/data-source-server/types.d.ts +42 -0
  348. package/dist/data-source-server/types.js +1 -0
  349. package/dist/data-source-server/use-server-data-source.d.ts +51 -0
  350. package/dist/data-source-server/use-server-data-source.js +192 -0
  351. package/dist/data-source-server/utils/get-node-depth.d.ts +2 -0
  352. package/dist/data-source-server/utils/get-node-depth.js +9 -0
  353. package/dist/data-source-server/utils/get-node-path.d.ts +2 -0
  354. package/dist/data-source-server/utils/get-node-path.js +9 -0
  355. package/dist/data-source-server/utils/get-request-id.d.ts +1 -0
  356. package/dist/data-source-server/utils/get-request-id.js +6 -0
  357. package/dist/data-source-tree/source/use-controlled-state.d.ts +8 -0
  358. package/dist/data-source-tree/source/use-controlled-state.js +21 -0
  359. package/dist/data-source-tree/source/use-flattened.d.ts +17 -0
  360. package/dist/data-source-tree/source/use-flattened.js +65 -0
  361. package/dist/data-source-tree/source/use-on-rows-updated.d.ts +3 -0
  362. package/dist/data-source-tree/source/use-on-rows-updated.js +49 -0
  363. package/dist/data-source-tree/source/use-row-by-id.d.ts +2 -0
  364. package/dist/data-source-tree/source/use-row-by-id.js +7 -0
  365. package/dist/data-source-tree/source/use-row-children.d.ts +2 -0
  366. package/dist/data-source-tree/source/use-row-children.js +11 -0
  367. package/dist/data-source-tree/source/use-row-leafs.d.ts +2 -0
  368. package/dist/data-source-tree/source/use-row-leafs.js +20 -0
  369. package/dist/data-source-tree/source/use-row-parents.d.ts +2 -0
  370. package/dist/data-source-tree/source/use-row-parents.js +16 -0
  371. package/dist/data-source-tree/source/use-row-siblings.d.ts +2 -0
  372. package/dist/data-source-tree/source/use-row-siblings.js +12 -0
  373. package/dist/data-source-tree/source/use-tree.d.ts +3 -0
  374. package/dist/data-source-tree/source/use-tree.js +59 -0
  375. package/dist/data-source-tree/types.d.ts +16 -0
  376. package/dist/data-source-tree/types.js +1 -0
  377. package/dist/data-source-tree/use-tree-data-source.d.ts +41 -0
  378. package/dist/data-source-tree/use-tree-data-source.js +101 -0
  379. package/dist/data-source-tree/utils/is-object.d.ts +1 -0
  380. package/dist/data-source-tree/utils/is-object.js +3 -0
  381. package/dist/hooks/use-slot/get-element-ref.d.ts +2 -0
  382. package/dist/hooks/use-slot/get-element-ref.js +20 -0
  383. package/dist/hooks/use-slot/index.d.ts +3 -0
  384. package/dist/hooks/use-slot/index.js +1 -0
  385. package/dist/hooks/use-slot/merge-props.d.ts +4 -0
  386. package/dist/hooks/use-slot/merge-props.js +27 -0
  387. package/dist/hooks/use-slot/react-version.d.ts +3 -0
  388. package/dist/hooks/use-slot/react-version.js +5 -0
  389. package/dist/hooks/use-slot/types.d.ts +4 -0
  390. package/dist/hooks/use-slot/types.js +1 -0
  391. package/dist/hooks/use-slot/use-slot.d.ts +12 -0
  392. package/dist/hooks/use-slot/use-slot.js +28 -0
  393. package/dist/hooks/use-transitioned-open.d.ts +2 -0
  394. package/dist/hooks/use-transitioned-open.js +50 -0
  395. package/dist/index.d.ts +121 -0
  396. package/dist/index.js +23 -0
  397. package/dist/license/index.d.ts +1 -0
  398. package/dist/license/index.js +1 -0
  399. package/dist/license/license.d.ts +3 -0
  400. package/dist/license/license.js +215 -0
  401. package/dist/license/md5-hash.d.ts +9 -0
  402. package/dist/license/md5-hash.js +167 -0
  403. package/dist/license.d.ts +3 -0
  404. package/dist/license.js +214 -0
  405. package/dist/root/context.d.ts +16 -0
  406. package/dist/root/context.js +4 -0
  407. package/dist/root/hooks/use-pro-api.d.ts +2 -0
  408. package/dist/root/hooks/use-pro-api.js +8 -0
  409. package/dist/root/root.d.ts +15 -0
  410. package/dist/root/root.js +112 -0
  411. package/dist/types/api.d.ts +100 -0
  412. package/dist/types/api.js +1 -0
  413. package/dist/types/column.d.ts +73 -0
  414. package/dist/types/column.js +1 -0
  415. package/dist/types/events.d.ts +56 -0
  416. package/dist/types/events.js +1 -0
  417. package/dist/types/grid.d.ts +47 -0
  418. package/dist/types/grid.js +1 -0
  419. package/dist/types/index.d.ts +7 -0
  420. package/dist/types/index.js +1 -0
  421. package/dist/types/props.d.ts +187 -0
  422. package/dist/types/props.js +1 -0
  423. package/package.json +5 -5
@@ -0,0 +1,101 @@
1
+ import { useTree } from "./source/use-tree.js";
2
+ import { useMemo } from "react";
3
+ import { useRowById } from "./source/use-row-by-id.js";
4
+ import { useControlledState } from "./source/use-controlled-state.js";
5
+ import { useFlattened } from "./source/use-flattened.js";
6
+ import { useEvent, useGlobalRefresh, useOnRowsSelected, usePiece, useRowByIndex, useRowIsSelected, useRows, useRowsBetween, useRowSelection, useRowSelectionState, useRowsSelected, useSortFn, } from "@1771technologies/lytenyte-core/internal";
7
+ import { useRowParents } from "./source/use-row-parents.js";
8
+ import { useRowLeafs } from "./source/use-row-leafs.js";
9
+ import { useRowChildren } from "./source/use-row-children.js";
10
+ import { useOnRowsUpdated } from "./source/use-on-rows-updated.js";
11
+ import { useRowSiblings } from "./source/use-row-siblings.js";
12
+ const emptyKey = [];
13
+ export function useTreeDataSource(p) {
14
+ const sortFn = useSortFn(p.sort);
15
+ const state = useControlledState(p);
16
+ const tree = useTree(p);
17
+ const flat = useFlattened(tree, state.expandedFn, p.topData, p.botData, p.rowSelectionIdUniverseAdditions, p.rowSelectionIdUniverseSubtractions, sortFn);
18
+ const top$ = usePiece(flat.topCount);
19
+ const bot$ = usePiece(flat.botCount);
20
+ const rowCount$ = usePiece(flat.rowCount);
21
+ const maxDepth$ = usePiece(flat.maxDepth);
22
+ const rows$ = usePiece(flat.rows);
23
+ const rows = useRows(flat.rows);
24
+ const globalSignal = useGlobalRefresh();
25
+ const rowById = useRowById(tree);
26
+ const rowParents = useRowParents(tree);
27
+ const idToSpec = useEvent((id) => {
28
+ const node = tree.rowIdToNode.get(id);
29
+ if (!node)
30
+ return null;
31
+ return { size: node.children.size, children: node.children };
32
+ });
33
+ const selectionState = useRowSelection(p.rowSelection, p.onRowSelectionChange, p.rowsIsolatedSelection ?? false, p.rowSelectKey ?? emptyKey, flat.idUniverse, flat.rootIds, flat.rootCount, globalSignal);
34
+ const onRowsSelected = useOnRowsSelected(selectionState, idToSpec, rowParents, p.rowsIsolatedSelection ?? false, globalSignal);
35
+ const rowIsSelected = useRowIsSelected(selectionState, rowParents, rowById);
36
+ const { rowByIndex, rowInvalidate } = useRowByIndex(rows$, globalSignal, selectionState, rowParents);
37
+ const rowsSelected = useRowsSelected(selectionState, tree.rowIdToNode, rowParents);
38
+ const rowSelectionState = useRowSelectionState(selectionState);
39
+ const rowsBetween = useRowsBetween({ current: flat.idToIndex }, rowByIndex);
40
+ const rowLeafs = useRowLeafs(tree);
41
+ const rowChildren = useRowChildren(tree);
42
+ const rowSiblings = useRowSiblings(tree);
43
+ const rowIdToIndex = usePiece(flat.idToIndex);
44
+ const setExpansions = state.onExpansionsChange;
45
+ const onRowsUpdated = useOnRowsUpdated(tree, p);
46
+ const selection$ = usePiece(selectionState.rowSelectionsRaw);
47
+ const source = useMemo(() => {
48
+ const s = {
49
+ rowByIndex,
50
+ rowById,
51
+ rowInvalidate,
52
+ rowParents,
53
+ rowIsSelected,
54
+ rowsSelected,
55
+ rowSelectionState,
56
+ rowsBetween,
57
+ rowLeafs,
58
+ rowChildren,
59
+ rowSiblings,
60
+ rowIndexToRowId: (i) => s.rowByIndex(i).get()?.id ?? null,
61
+ rowIdToRowIndex: (id) => rowIdToIndex.get().get(id) ?? null,
62
+ rowUpdate: onRowsUpdated,
63
+ rowGroupExpansionChange: (delta) => {
64
+ setExpansions(delta);
65
+ },
66
+ onViewChange: () => { },
67
+ useBottomCount: bot$.useValue,
68
+ useRowCount: rowCount$.useValue,
69
+ useTopCount: top$.useValue,
70
+ useRows: rows.useValue,
71
+ useMaxRowGroupDepth: maxDepth$.useValue,
72
+ useSelectionState: selection$.useValue,
73
+ onRowsSelected,
74
+ onRowsUpdated,
75
+ };
76
+ return s;
77
+ }, [
78
+ bot$.useValue,
79
+ maxDepth$.useValue,
80
+ onRowsSelected,
81
+ onRowsUpdated,
82
+ rowById,
83
+ rowByIndex,
84
+ rowChildren,
85
+ rowCount$.useValue,
86
+ rowIdToIndex,
87
+ rowInvalidate,
88
+ rowIsSelected,
89
+ rowLeafs,
90
+ rowParents,
91
+ rowSelectionState,
92
+ rowSiblings,
93
+ rows.useValue,
94
+ rowsBetween,
95
+ rowsSelected,
96
+ selection$.useValue,
97
+ setExpansions,
98
+ top$.useValue,
99
+ ]);
100
+ return source;
101
+ }
@@ -0,0 +1 @@
1
+ export declare function isObject(x: any): boolean;
@@ -0,0 +1,3 @@
1
+ export function isObject(x) {
2
+ return x !== null && typeof x === "object" && !Array.isArray(x);
3
+ }
@@ -0,0 +1,2 @@
1
+ import type { ReactElement } from "react";
2
+ export declare function getElementRef(element: ReactElement): any;
@@ -0,0 +1,20 @@
1
+ import { isReactVersionAtLeast } from "./react-version.js";
2
+ export function getElementRef(element) {
3
+ // React <=18 in DEV
4
+ if (isReactVersionAtLeast(18)) {
5
+ const getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
6
+ const mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
7
+ if (mayWarn) {
8
+ return element.ref;
9
+ }
10
+ }
11
+ if (isReactVersionAtLeast(19)) {
12
+ const getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
13
+ const mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
14
+ if (mayWarn) {
15
+ return element.props.ref;
16
+ }
17
+ }
18
+ // Not DEV
19
+ return element.props.ref || element.ref;
20
+ }
@@ -0,0 +1,3 @@
1
+ export type { UseSlotProps } from "./use-slot.js";
2
+ export { useSlot } from "./use-slot.js";
3
+ export type { SlotComponent } from "./types.js";
@@ -0,0 +1 @@
1
+ export { useSlot } from "./use-slot.js";
@@ -0,0 +1,4 @@
1
+ import type { AnyProps } from "./types.js";
2
+ export declare function mergeProps(slotProps: AnyProps, childProps: AnyProps): {
3
+ [x: string]: any;
4
+ };
@@ -0,0 +1,27 @@
1
+ export function mergeProps(slotProps, childProps) {
2
+ // all child props should override
3
+ const overrideProps = { ...childProps };
4
+ for (const propName in childProps) {
5
+ const slotPropValue = slotProps[propName];
6
+ const childPropValue = childProps[propName];
7
+ const isHandler = /^on[A-Z]/.test(propName);
8
+ if (isHandler) {
9
+ // if the handler exists on both, we compose them
10
+ if (slotPropValue && childPropValue) {
11
+ overrideProps[propName] = (...args) => {
12
+ const result = childPropValue(...args);
13
+ slotPropValue(...args);
14
+ return result;
15
+ };
16
+ }
17
+ }
18
+ // if it's `style`, we merge them
19
+ else if (propName === "style") {
20
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
21
+ }
22
+ else if (propName === "className") {
23
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
24
+ }
25
+ }
26
+ return { ...slotProps, ...overrideProps };
27
+ }
@@ -0,0 +1,3 @@
1
+ type SupportedVersions = 17 | 18 | 19;
2
+ export declare function isReactVersionAtLeast(reactVersionToCheck: SupportedVersions): boolean;
3
+ export {};
@@ -0,0 +1,5 @@
1
+ import { version } from "react";
2
+ const majorVersion = parseInt(version, 10);
3
+ export function isReactVersionAtLeast(reactVersionToCheck) {
4
+ return majorVersion >= reactVersionToCheck;
5
+ }
@@ -0,0 +1,4 @@
1
+ import type { ReactElement, Ref } from "react";
2
+ export type AnyProps = Record<string, any>;
3
+ export type AnyRef = Ref<any>;
4
+ export type SlotComponent<T = any> = ReactElement | ((state: T) => ReactElement);
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import { type ReactElement } from "react";
2
+ import type { AnyProps, AnyRef } from "./types.js";
3
+ export interface UseSlotProps {
4
+ readonly ref?: AnyRef;
5
+ readonly props?: AnyProps | AnyProps[];
6
+ readonly slot?: ReactElement | ((...args: any) => ReactElement);
7
+ readonly state?: any;
8
+ }
9
+ /**
10
+ * A React hook to support slots in components.
11
+ */
12
+ export declare function useSlot({ props, slot, state, ref: forwardedRef }: UseSlotProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cloneElement } from "react";
3
+ import { mergeProps } from "./merge-props.js";
4
+ import { getElementRef } from "./get-element-ref.js";
5
+ import { useCombinedRefs } from "@1771technologies/lytenyte-core/internal";
6
+ /**
7
+ * A React hook to support slots in components.
8
+ */
9
+ export function useSlot({ props = {}, slot = _jsx("div", {}), state, ref: forwardedRef }) {
10
+ const el = typeof slot === "function" ? slot(state) : slot;
11
+ let merged = {};
12
+ if (Array.isArray(props)) {
13
+ for (let i = 0; i < props.length; i++)
14
+ merged = mergeProps(merged, props[i]);
15
+ }
16
+ else {
17
+ merged = props;
18
+ }
19
+ const mergedProps = mergeProps(merged, el.props);
20
+ const ref = getElementRef(el);
21
+ const mergedRefs = useCombinedRefs(forwardedRef, ref);
22
+ // One of the refs should be fined. We have to check for this since
23
+ // not all elements accept a ref (e.g. Fragments)
24
+ if (ref || forwardedRef) {
25
+ mergedProps.ref = mergedRefs;
26
+ }
27
+ return cloneElement(el, mergedProps);
28
+ }
@@ -0,0 +1,2 @@
1
+ export type Transitioned = "idle" | "closing" | "opening";
2
+ export declare function useTransitioned(open: boolean, el: HTMLElement | null, changeComplete?: (b: boolean) => void): [Transitioned, boolean];
@@ -0,0 +1,50 @@
1
+ import { useEffect, useMemo, useState } from "react";
2
+ import { onAnimationFinished } from "@1771technologies/lytenyte-shared";
3
+ export function useTransitioned(open, el, changeComplete) {
4
+ const [m, setM] = useState(open);
5
+ const t = useMemo(() => {
6
+ if (open && !m)
7
+ return "opening";
8
+ if (!open && m)
9
+ return "closing";
10
+ return "idle";
11
+ }, [m, open]);
12
+ useEffect(() => {
13
+ if (!m || !open || !el)
14
+ return;
15
+ const controller = new AbortController();
16
+ onAnimationFinished({
17
+ element: el,
18
+ fn: () => {
19
+ changeComplete?.(true);
20
+ },
21
+ signal: controller.signal,
22
+ });
23
+ return () => controller.abort();
24
+ }, [changeComplete, el, m, open]);
25
+ useEffect(() => {
26
+ if ((!open && !m) || (m && open))
27
+ return;
28
+ if (open && !m) {
29
+ requestAnimationFrame(() => setM(open));
30
+ if (!el)
31
+ return;
32
+ }
33
+ if (!open && m) {
34
+ const controller = new AbortController();
35
+ if (!el)
36
+ return;
37
+ onAnimationFinished({
38
+ element: el,
39
+ fn: () => {
40
+ setM(false);
41
+ changeComplete?.(!m);
42
+ },
43
+ signal: controller.signal,
44
+ });
45
+ return () => controller.abort();
46
+ }
47
+ }, [changeComplete, el, m, open]);
48
+ const shouldMount = open || m;
49
+ return [t, shouldMount];
50
+ }
@@ -0,0 +1,121 @@
1
+ export { activateLicense } from "./license.js";
2
+ import { Grid as GridCore } from "@1771technologies/lytenyte-core";
3
+ import type { PropsWithChildren, ReactNode } from "react";
4
+ import { Root } from "./root/root.js";
5
+ import type { RowSource } from "@1771technologies/lytenyte-shared";
6
+ import type * as LnTypes from "./types/index.js";
7
+ export interface GridComponent {
8
+ <Spec extends Root.GridSpec = Root.GridSpec>(props: PropsWithChildren<Root.Props<Spec> & (undefined extends Spec["api"] ? unknown : {
9
+ apiExtension: ((incomplete: Root.API<Spec>) => Spec["api"] | null) | Spec["api"];
10
+ })>): ReactNode;
11
+ Header: typeof GridCore.Header;
12
+ HeaderRow: typeof GridCore.HeaderRow;
13
+ HeaderCell: typeof GridCore.HeaderCell;
14
+ HeaderGroupCell: typeof GridCore.HeaderGroupCell;
15
+ RowsContainer: typeof GridCore.RowsContainer;
16
+ RowsTop: typeof GridCore.RowsTop;
17
+ RowsCenter: typeof GridCore.RowsCenter;
18
+ RowsBottom: typeof GridCore.RowsBottom;
19
+ Row: typeof GridCore.Row;
20
+ RowFullWidth: typeof GridCore.RowFullWidth;
21
+ Cell: typeof GridCore.Cell;
22
+ Viewport: typeof GridCore.Viewport;
23
+ }
24
+ export declare const Grid: GridComponent;
25
+ export declare namespace Grid {
26
+ type GridSpec<T = unknown, C extends Record<string, any> = object, S extends RowSource<T> = RowSource, E extends Record<string, any> = object> = Root.GridSpec<T, C, S, E>;
27
+ type Props<Spec extends GridSpec = GridSpec> = Root.Props<Spec>;
28
+ type API<Spec extends GridSpec = GridSpec> = Root.API<Spec>;
29
+ type Column<Spec extends GridSpec = GridSpec> = Root.Column<Spec>;
30
+ type ColumnBase<Spec extends GridSpec = GridSpec> = Required<Root.Props<Spec>>["columnBase"];
31
+ type ColumnMarker<Spec extends GridSpec = GridSpec> = Required<Root.Props<Spec>>["columnMarker"];
32
+ type RowGroupColumn<Spec extends GridSpec = GridSpec> = Required<Root.Props<Spec>>["rowGroupColumn"];
33
+ type Events<Spec extends GridSpec = GridSpec> = Required<Root.Props<Spec>>["events"];
34
+ type Style = LnTypes.GridStyle;
35
+ namespace Components {
36
+ type Header = GridCore.Components.Header;
37
+ type HeaderRow = GridCore.Components.HeaderRow;
38
+ type HeaderCell = GridCore.Components.HeaderCell;
39
+ type HeaderGroupCell = GridCore.Components.HeaderGroupCell;
40
+ type RowsContainer = GridCore.Components.RowsContainer;
41
+ type RowsTop = GridCore.Components.RowsTop;
42
+ type RowsCenter = GridCore.Components.RowsCenter;
43
+ type RowsBottom = GridCore.Components.RowsBottom;
44
+ type Row = GridCore.Components.Row;
45
+ type RowFullWidth = GridCore.Components.RowFullWidth;
46
+ type Cell = GridCore.Components.Cell;
47
+ type Viewport = GridCore.Components.Viewport;
48
+ }
49
+ namespace T {
50
+ type AggregationFn<T> = LnTypes.AggregationFn<T>;
51
+ type Aggregator<T> = LnTypes.Aggregator<T>;
52
+ type CellParams<Spec extends GridSpec> = LnTypes.CellParams<Spec>;
53
+ type CellParamsWithIndex<Spec extends GridSpec> = LnTypes.CellParamsWithIndex<Spec>;
54
+ type CellRendererParams<Spec extends GridSpec> = LnTypes.CellRendererParams<Spec>;
55
+ type DataRect = LnTypes.DataRect;
56
+ type Dimension<T> = LnTypes.Dimension<T>;
57
+ type DimensionAgg<T> = LnTypes.DimensionAgg<T>;
58
+ type DimensionSort<T> = LnTypes.DimensionSort<T>;
59
+ type EditParams<Spec extends GridSpec> = LnTypes.EditParams<Spec>;
60
+ type ExportDataRectResult<Spec extends GridSpec> = LnTypes.ExportDataRectResult<Spec>;
61
+ type Field<T> = LnTypes.Field<T>;
62
+ type FilterFn<T> = LnTypes.FilterFn<T>;
63
+ type GroupFn<T> = LnTypes.GroupFn<T>;
64
+ type GroupIdFn = LnTypes.GroupIdFn;
65
+ type HeaderGroupParams<Spec extends GridSpec> = LnTypes.HeaderGroupParams<Spec>;
66
+ type HeaderParams<Spec extends GridSpec> = LnTypes.HeaderParams<Spec>;
67
+ type LeafIdFn<T> = LnTypes.LeafIdFn<T>;
68
+ type PathField = LnTypes.PathField;
69
+ type RowParams<Spec extends GridSpec> = LnTypes.RowParams<Spec>;
70
+ type RowSelectionState = LnTypes.RowSelectionState;
71
+ type SortFn<T> = LnTypes.SortFn<T>;
72
+ type RowFullWidthRendererParams<Spec extends GridSpec> = LnTypes.RowFullWidthRendererParams<Spec>;
73
+ type RowSelectionIsolated = LnTypes.RowSelectionIsolated;
74
+ type RowSelectionLinked = LnTypes.RowSelectionLinked;
75
+ type RowSelectNode = LnTypes.RowSelectNode;
76
+ type RowDragPlaceholderFn = GridCore.T.RowDragPlaceholderFn;
77
+ type DragItem = GridCore.T.DragItem;
78
+ type DragItemSiteLocal = GridCore.T.DragItemSiteLocal;
79
+ type DragItemTransfer = GridCore.T.DragItemTransfer;
80
+ type RowNode<T> = LnTypes.RowNode<T>;
81
+ type RowLeaf<T> = LnTypes.RowLeaf<T>;
82
+ type RowGroup = LnTypes.RowGroup;
83
+ type RowAggregated = LnTypes.RowAggregated;
84
+ type ColumnPin = LnTypes.ColumnPin;
85
+ type LayoutCell = LnTypes.LayoutCell;
86
+ type LayoutHeader = LnTypes.LayoutHeader;
87
+ type LayoutHeaderCell = LnTypes.LayoutHeaderCell;
88
+ type LayoutHeaderGroup = LnTypes.LayoutHeaderGroup;
89
+ type LayoutHeaderFloating = LnTypes.LayoutHeaderFloating;
90
+ type LayoutFullWidthRow = LnTypes.LayoutFullWidthRow;
91
+ type LayoutRow = LnTypes.LayoutRow;
92
+ type LayoutRowWithCells = LnTypes.LayoutRowWithCells;
93
+ type PositionDetailCell = LnTypes.PositionDetailCell;
94
+ type PositionFloatingCell = LnTypes.PositionFloatingCell;
95
+ type PositionFullWidthRow = LnTypes.PositionFullWidthRow;
96
+ type PositionGridCell = LnTypes.PositionGridCell;
97
+ type PositionGridCellRoot = LnTypes.PositionGridCellRoot;
98
+ type PositionHeaderCell = LnTypes.PositionHeaderCell;
99
+ type PositionHeaderGroupCell = LnTypes.PositionHeaderGroupCell;
100
+ type PositionUnion = LnTypes.PositionUnion;
101
+ type DataRectSplit = LnTypes.DataRectSplit;
102
+ type HavingFilterFn = LnTypes.HavingFilterFn;
103
+ type LabelFilter = LnTypes.LabelFilter;
104
+ type PivotField<Spec extends GridSpec> = LnTypes.PivotField<Spec>;
105
+ type PivotModel<Spec extends GridSpec> = LnTypes.PivotModel<Spec>;
106
+ type PivotState = LnTypes.PivotState;
107
+ type VirtualTarget = LnTypes.VirtualTarget;
108
+ }
109
+ }
110
+ export type { UseClientDataSourceParams, RowSourceClient, } from "./data-source-client/use-client-data-source.js";
111
+ export { useClientDataSource } from "./data-source-client/use-client-data-source.js";
112
+ export type { UseServerDataSourceParams, RowSourceServer, } from "./data-source-server/use-server-data-source.js";
113
+ export { useServerDataSource } from "./data-source-server/use-server-data-source.js";
114
+ export type * from "./data-source-server/types.js";
115
+ export type { RowSourceTree, UseTreeDataSourceParams } from "./data-source-tree/use-tree-data-source.js";
116
+ export { useTreeDataSource } from "./data-source-tree/use-tree-data-source.js";
117
+ export { measureText, moveRelative, equal, arrayShallow } from "@1771technologies/lytenyte-shared";
118
+ export { getRowDragData, computeField } from "@1771technologies/lytenyte-core/internal";
119
+ export { virtualFromXY } from "./components/virtual-from-coordinates.js";
120
+ export type { Piece, PieceWritable } from "@1771technologies/lytenyte-core";
121
+ export { usePiece } from "@1771technologies/lytenyte-core";
package/dist/index.js ADDED
@@ -0,0 +1,23 @@
1
+ export { activateLicense } from "./license.js";
2
+ import { Grid as GridCore } from "@1771technologies/lytenyte-core";
3
+ import { Root } from "./root/root.js";
4
+ export const Grid = Root;
5
+ Grid.Header = GridCore.Header;
6
+ Grid.HeaderRow = GridCore.HeaderRow;
7
+ Grid.HeaderCell = GridCore.HeaderCell;
8
+ Grid.HeaderGroupCell = GridCore.HeaderGroupCell;
9
+ Grid.RowsContainer = GridCore.RowsContainer;
10
+ Grid.RowsTop = GridCore.RowsTop;
11
+ Grid.RowsCenter = GridCore.RowsCenter;
12
+ Grid.RowsBottom = GridCore.RowsBottom;
13
+ Grid.Row = GridCore.Row;
14
+ Grid.RowFullWidth = GridCore.RowFullWidth;
15
+ Grid.Cell = GridCore.Cell;
16
+ Grid.Viewport = GridCore.Viewport;
17
+ export { useClientDataSource } from "./data-source-client/use-client-data-source.js";
18
+ export { useServerDataSource } from "./data-source-server/use-server-data-source.js";
19
+ export { useTreeDataSource } from "./data-source-tree/use-tree-data-source.js";
20
+ export { measureText, moveRelative, equal, arrayShallow } from "@1771technologies/lytenyte-shared";
21
+ export { getRowDragData, computeField } from "@1771technologies/lytenyte-core/internal";
22
+ export { virtualFromXY } from "./components/virtual-from-coordinates.js";
23
+ export { usePiece } from "@1771technologies/lytenyte-core";
@@ -0,0 +1 @@
1
+ export { activateLicense, hasAValidLicense } from "./license.js";
@@ -0,0 +1 @@
1
+ export { activateLicense, hasAValidLicense } from "./license.js";
@@ -0,0 +1,3 @@
1
+ export declare let hasAValidLicense: boolean;
2
+ export declare let licenseState: "invalid" | "expired" | null;
3
+ export declare function activateLicense(license: string): boolean;