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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (534) hide show
  1. package/css/all-colors.css +8 -0
  2. package/css/components/button.css +176 -0
  3. package/css/components/checkbox.css +54 -0
  4. package/css/components/input.css +64 -0
  5. package/css/components/tree-view.css +108 -0
  6. package/css/components.css +300 -0
  7. package/css/cotton-candy.css +1 -0
  8. package/css/dark.css +1 -0
  9. package/css/design.css +1 -0
  10. package/css/fonts.css +1 -0
  11. package/css/grid-full.css +3 -0
  12. package/css/grid.css +81 -0
  13. package/css/light-dark.css +3 -0
  14. package/css/light.css +1 -0
  15. package/css/pill-manager.css +184 -0
  16. package/css/shadcn-vars.css +1 -0
  17. package/css/shadcn.css +1 -0
  18. package/css/teal.css +1 -0
  19. package/css/term.css +1 -0
  20. package/css/tw.css +1 -0
  21. package/package.json +29 -16
  22. package/dist/+types.d.ts +0 -6177
  23. package/dist/+types.js +0 -1
  24. package/dist/__play__/cell-selections/cell-selection.play.d.ts +0 -5
  25. package/dist/__play__/cell-selections/cell-selection.play.js +0 -80
  26. package/dist/__play__/filter-select/filter-select.play.d.ts +0 -4
  27. package/dist/__play__/filter-select/filter-select.play.js +0 -76
  28. package/dist/__play__/test-utils/bank-data-smaller.d.ts +0 -19
  29. package/dist/__play__/test-utils/bank-data-smaller.js +0 -252
  30. package/dist/__play__/test-utils/row-handler.d.ts +0 -6
  31. package/dist/__play__/test-utils/row-handler.js +0 -32
  32. package/dist/cell-selection/adjust-rect-for-row-and-cell-span.d.ts +0 -2
  33. package/dist/cell-selection/adjust-rect-for-row-and-cell-span.js +0 -43
  34. package/dist/cell-selection/are-rects-equal.d.ts +0 -2
  35. package/dist/cell-selection/are-rects-equal.js +0 -6
  36. package/dist/cell-selection/bound-selection-rect.d.ts +0 -2
  37. package/dist/cell-selection/bound-selection-rect.js +0 -17
  38. package/dist/cell-selection/cell-selection-containers.d.ts +0 -3
  39. package/dist/cell-selection/cell-selection-containers.js +0 -91
  40. package/dist/cell-selection/cell-selection-driver.d.ts +0 -1
  41. package/dist/cell-selection/cell-selection-driver.js +0 -289
  42. package/dist/cell-selection/cell-style-row.d.ts +0 -8
  43. package/dist/cell-selection/cell-style-row.js +0 -84
  44. package/dist/cell-selection/deselect-rect-range.d.ts +0 -2
  45. package/dist/cell-selection/deselect-rect-range.js +0 -43
  46. package/dist/cell-selection/expand-cell-selection-down.d.ts +0 -5
  47. package/dist/cell-selection/expand-cell-selection-down.js +0 -39
  48. package/dist/cell-selection/expand-cell-selection-end.d.ts +0 -5
  49. package/dist/cell-selection/expand-cell-selection-end.js +0 -40
  50. package/dist/cell-selection/expand-cell-selection-start.d.ts +0 -5
  51. package/dist/cell-selection/expand-cell-selection-start.js +0 -39
  52. package/dist/cell-selection/expand-cell-selection-up.d.ts +0 -5
  53. package/dist/cell-selection/expand-cell-selection-up.js +0 -39
  54. package/dist/cell-selection/full-width-start-end-index.d.ts +0 -2
  55. package/dist/cell-selection/full-width-start-end-index.js +0 -5
  56. package/dist/cell-selection/get-root-cell.d.ts +0 -2
  57. package/dist/cell-selection/get-root-cell.js +0 -6
  58. package/dist/cell-selection/index.d.ts +0 -18
  59. package/dist/cell-selection/index.js +0 -18
  60. package/dist/cell-selection/is-bottom-rect.d.ts +0 -2
  61. package/dist/cell-selection/is-bottom-rect.js +0 -7
  62. package/dist/cell-selection/is-center-col-rect.d.ts +0 -5
  63. package/dist/cell-selection/is-center-col-rect.js +0 -5
  64. package/dist/cell-selection/is-center-rect.d.ts +0 -2
  65. package/dist/cell-selection/is-center-rect.js +0 -5
  66. package/dist/cell-selection/is-end-rect.d.ts +0 -5
  67. package/dist/cell-selection/is-end-rect.js +0 -4
  68. package/dist/cell-selection/is-overlapping-rect.d.ts +0 -2
  69. package/dist/cell-selection/is-overlapping-rect.js +0 -6
  70. package/dist/cell-selection/is-start-rect.d.ts +0 -5
  71. package/dist/cell-selection/is-start-rect.js +0 -4
  72. package/dist/cell-selection/is-top-rect.d.ts +0 -2
  73. package/dist/cell-selection/is-top-rect.js +0 -4
  74. package/dist/cell-selection/is-within-selection-rect.d.ts +0 -2
  75. package/dist/cell-selection/is-within-selection-rect.js +0 -3
  76. package/dist/cell-selection/split-cell-selection-rect.d.ts +0 -46
  77. package/dist/cell-selection/split-cell-selection-rect.js +0 -88
  78. package/dist/cell-selection/split-on-pivot.d.ts +0 -3
  79. package/dist/cell-selection/split-on-pivot.js +0 -50
  80. package/dist/cell-selection/update-additive-cell-selection.d.ts +0 -5
  81. package/dist/cell-selection/update-additive-cell-selection.js +0 -23
  82. package/dist/cell-selection/use-edge-scroll.d.ts +0 -10
  83. package/dist/cell-selection/use-edge-scroll.js +0 -66
  84. package/dist/column-manager/branch-lookup-context.d.ts +0 -4
  85. package/dist/column-manager/branch-lookup-context.js +0 -3
  86. package/dist/column-manager/branch.d.ts +0 -15
  87. package/dist/column-manager/branch.js +0 -54
  88. package/dist/column-manager/column-manager.d.ts +0 -13
  89. package/dist/column-manager/column-manager.js +0 -18
  90. package/dist/column-manager/context.d.ts +0 -7
  91. package/dist/column-manager/context.js +0 -3
  92. package/dist/column-manager/label.d.ts +0 -5
  93. package/dist/column-manager/label.js +0 -18
  94. package/dist/column-manager/leaf.d.ts +0 -6
  95. package/dist/column-manager/leaf.js +0 -58
  96. package/dist/column-manager/move-handle.d.ts +0 -5
  97. package/dist/column-manager/move-handle.js +0 -72
  98. package/dist/column-manager/panel.d.ts +0 -1
  99. package/dist/column-manager/panel.js +0 -2
  100. package/dist/column-manager/root.d.ts +0 -8
  101. package/dist/column-manager/root.js +0 -7
  102. package/dist/column-manager/use-column-manager.d.ts +0 -10
  103. package/dist/column-manager/use-column-manager.js +0 -24
  104. package/dist/column-manager/use-columns-from-context.d.ts +0 -3
  105. package/dist/column-manager/use-columns-from-context.js +0 -23
  106. package/dist/column-manager/visibility-checkbox.d.ts +0 -9
  107. package/dist/column-manager/visibility-checkbox.js +0 -30
  108. package/dist/context.d.ts +0 -11
  109. package/dist/context.js +0 -5
  110. package/dist/filter-selects/apply.d.ts +0 -7
  111. package/dist/filter-selects/apply.js +0 -22
  112. package/dist/filter-selects/clear.d.ts +0 -7
  113. package/dist/filter-selects/clear.js +0 -22
  114. package/dist/filter-selects/context.d.ts +0 -13
  115. package/dist/filter-selects/context.js +0 -3
  116. package/dist/filter-selects/filter-combinator.d.ts +0 -10
  117. package/dist/filter-selects/filter-combinator.js +0 -19
  118. package/dist/filter-selects/filter-row-context.d.ts +0 -30
  119. package/dist/filter-selects/filter-row-context.js +0 -3
  120. package/dist/filter-selects/filter-row.d.ts +0 -13
  121. package/dist/filter-selects/filter-row.js +0 -118
  122. package/dist/filter-selects/index.d.ts +0 -22
  123. package/dist/filter-selects/index.js +0 -20
  124. package/dist/filter-selects/is-complete-filter.d.ts +0 -2
  125. package/dist/filter-selects/is-complete-filter.js +0 -5
  126. package/dist/filter-selects/operator-select.d.ts +0 -14
  127. package/dist/filter-selects/operator-select.js +0 -25
  128. package/dist/filter-selects/options.d.ts +0 -9
  129. package/dist/filter-selects/options.js +0 -100
  130. package/dist/filter-selects/reset.d.ts +0 -7
  131. package/dist/filter-selects/reset.js +0 -22
  132. package/dist/filter-selects/root.d.ts +0 -14
  133. package/dist/filter-selects/root.js +0 -5
  134. package/dist/filter-selects/to-filter-item.d.ts +0 -3
  135. package/dist/filter-selects/to-filter-item.js +0 -7
  136. package/dist/filter-selects/use-filter-select.d.ts +0 -38
  137. package/dist/filter-selects/use-filter-select.js +0 -167
  138. package/dist/filter-selects/value-input.d.ts +0 -12
  139. package/dist/filter-selects/value-input.js +0 -27
  140. package/dist/filter-tree/branch.d.ts +0 -13
  141. package/dist/filter-tree/branch.js +0 -21
  142. package/dist/filter-tree/context.d.ts +0 -27
  143. package/dist/filter-tree/context.js +0 -5
  144. package/dist/filter-tree/filter-tree.d.ts +0 -14
  145. package/dist/filter-tree/filter-tree.js +0 -18
  146. package/dist/filter-tree/hooks/use-filter-tree.d.ts +0 -38
  147. package/dist/filter-tree/hooks/use-filter-tree.js +0 -101
  148. package/dist/filter-tree/hooks/use-tree-item.d.ts +0 -8
  149. package/dist/filter-tree/hooks/use-tree-item.js +0 -116
  150. package/dist/filter-tree/inclusion-checkbox.d.ts +0 -9
  151. package/dist/filter-tree/inclusion-checkbox.js +0 -14
  152. package/dist/filter-tree/label.d.ts +0 -5
  153. package/dist/filter-tree/label.js +0 -18
  154. package/dist/filter-tree/leaf.d.ts +0 -6
  155. package/dist/filter-tree/leaf.js +0 -14
  156. package/dist/filter-tree/root.d.ts +0 -13
  157. package/dist/filter-tree/root.js +0 -30
  158. package/dist/grid/cell.d.ts +0 -6
  159. package/dist/grid/cell.js +0 -3
  160. package/dist/grid/dialog-driver.d.ts +0 -1
  161. package/dist/grid/dialog-driver.js +0 -21
  162. package/dist/grid/header-cell.d.ts +0 -10
  163. package/dist/grid/header-cell.js +0 -3
  164. package/dist/grid/header-group-cell.d.ts +0 -6
  165. package/dist/grid/header-group-cell.js +0 -3
  166. package/dist/grid/header-row.d.ts +0 -5
  167. package/dist/grid/header-row.js +0 -2
  168. package/dist/grid/header.d.ts +0 -1
  169. package/dist/grid/header.js +0 -2
  170. package/dist/grid/popover-driver.d.ts +0 -1
  171. package/dist/grid/popover-driver.js +0 -21
  172. package/dist/grid/root.d.ts +0 -8
  173. package/dist/grid/root.js +0 -37
  174. package/dist/grid/row-full-width.d.ts +0 -9
  175. package/dist/grid/row-full-width.js +0 -3
  176. package/dist/grid/row.d.ts +0 -8
  177. package/dist/grid/row.js +0 -3
  178. package/dist/grid/rows-container.d.ts +0 -1
  179. package/dist/grid/rows-container.js +0 -2
  180. package/dist/grid/rows-sections.d.ts +0 -3
  181. package/dist/grid/rows-sections.js +0 -13
  182. package/dist/grid/viewport.d.ts +0 -1
  183. package/dist/grid/viewport.js +0 -9
  184. package/dist/grid-box/+types.d.ts +0 -15
  185. package/dist/grid-box/+types.js +0 -1
  186. package/dist/grid-box/context.d.ts +0 -9
  187. package/dist/grid-box/context.js +0 -3
  188. package/dist/grid-box/grid-box.d.ts +0 -12
  189. package/dist/grid-box/grid-box.js +0 -14
  190. package/dist/grid-box/item.d.ts +0 -10
  191. package/dist/grid-box/item.js +0 -62
  192. package/dist/grid-box/panel.d.ts +0 -1
  193. package/dist/grid-box/panel.js +0 -9
  194. package/dist/grid-box/root.d.ts +0 -9
  195. package/dist/grid-box/root.js +0 -8
  196. package/dist/grid-box/use-aggregation-box-items.d.ts +0 -18
  197. package/dist/grid-box/use-aggregation-box-items.js +0 -61
  198. package/dist/grid-box/use-column-box-items.d.ts +0 -34
  199. package/dist/grid-box/use-column-box-items.js +0 -78
  200. package/dist/grid-box/use-row-group-box-items.d.ts +0 -18
  201. package/dist/grid-box/use-row-group-box-items.js +0 -169
  202. package/dist/grid-provider/context.d.ts +0 -5
  203. package/dist/grid-provider/context.js +0 -2
  204. package/dist/grid-provider/provider.d.ts +0 -3
  205. package/dist/grid-provider/provider.js +0 -2
  206. package/dist/grid-provider/use-grid.d.ts +0 -3
  207. package/dist/grid-provider/use-grid.js +0 -3
  208. package/dist/grid.d.ts +0 -18
  209. package/dist/grid.js +0 -28
  210. package/dist/icons/index.d.ts +0 -1
  211. package/dist/icons/index.js +0 -1
  212. package/dist/index.d.ts +0 -14
  213. package/dist/index.js +0 -14
  214. package/dist/license/index.d.ts +0 -1
  215. package/dist/license/index.js +0 -1
  216. package/dist/license/license.d.ts +0 -3
  217. package/dist/license/license.js +0 -215
  218. package/dist/license/md5-hash.d.ts +0 -9
  219. package/dist/license/md5-hash.js +0 -167
  220. package/dist/license.d.ts +0 -3
  221. package/dist/license.js +0 -214
  222. package/dist/listbox/context.d.ts +0 -6
  223. package/dist/listbox/context.js +0 -3
  224. package/dist/listbox/item.d.ts +0 -1
  225. package/dist/listbox/item.js +0 -25
  226. package/dist/listbox/panel.d.ts +0 -1
  227. package/dist/listbox/panel.js +0 -50
  228. package/dist/listbox/root.d.ts +0 -6
  229. package/dist/listbox/root.js +0 -12
  230. package/dist/row-data-source-client/+constants.d.ts +0 -2
  231. package/dist/row-data-source-client/+constants.js +0 -2
  232. package/dist/row-data-source-client/+types.d.ts +0 -27
  233. package/dist/row-data-source-client/+types.js +0 -1
  234. package/dist/row-data-source-client/built-ins/avg.d.ts +0 -10
  235. package/dist/row-data-source-client/built-ins/avg.js +0 -16
  236. package/dist/row-data-source-client/built-ins/built-ins.d.ts +0 -44
  237. package/dist/row-data-source-client/built-ins/built-ins.js +0 -44
  238. package/dist/row-data-source-client/built-ins/count.d.ts +0 -10
  239. package/dist/row-data-source-client/built-ins/count.js +0 -16
  240. package/dist/row-data-source-client/built-ins/first.d.ts +0 -10
  241. package/dist/row-data-source-client/built-ins/first.js +0 -12
  242. package/dist/row-data-source-client/built-ins/group.d.ts +0 -1
  243. package/dist/row-data-source-client/built-ins/group.js +0 -3
  244. package/dist/row-data-source-client/built-ins/last.d.ts +0 -10
  245. package/dist/row-data-source-client/built-ins/last.js +0 -12
  246. package/dist/row-data-source-client/built-ins/max.d.ts +0 -11
  247. package/dist/row-data-source-client/built-ins/max.js +0 -25
  248. package/dist/row-data-source-client/built-ins/min.d.ts +0 -11
  249. package/dist/row-data-source-client/built-ins/min.js +0 -25
  250. package/dist/row-data-source-client/built-ins/sum.d.ts +0 -10
  251. package/dist/row-data-source-client/built-ins/sum.js +0 -21
  252. package/dist/row-data-source-client/filter/+types.d.ts +0 -23
  253. package/dist/row-data-source-client/filter/+types.js +0 -1
  254. package/dist/row-data-source-client/filter/compute-filtered-rows.d.ts +0 -2
  255. package/dist/row-data-source-client/filter/compute-filtered-rows.js +0 -109
  256. package/dist/row-data-source-client/pivots/create-agg-model.d.ts +0 -6
  257. package/dist/row-data-source-client/pivots/create-agg-model.js +0 -13
  258. package/dist/row-data-source-client/pivots/create-pivot-columns-from-paths.d.ts +0 -2
  259. package/dist/row-data-source-client/pivots/create-pivot-columns-from-paths.js +0 -50
  260. package/dist/row-data-source-client/pivots/create-pivot-columns.d.ts +0 -2
  261. package/dist/row-data-source-client/pivots/create-pivot-columns.js +0 -22
  262. package/dist/row-data-source-client/pivots/create-pivot-tree.d.ts +0 -2
  263. package/dist/row-data-source-client/pivots/create-pivot-tree.js +0 -23
  264. package/dist/row-data-source-client/tree/client-tree.d.ts +0 -18
  265. package/dist/row-data-source-client/tree/client-tree.js +0 -76
  266. package/dist/row-data-source-client/tree/evaluator-aggregation.d.ts +0 -2
  267. package/dist/row-data-source-client/tree/evaluator-aggregation.js +0 -8
  268. package/dist/row-data-source-client/tree/evaluator-group.d.ts +0 -2
  269. package/dist/row-data-source-client/tree/evaluator-group.js +0 -9
  270. package/dist/row-data-source-client/tree/traverse.d.ts +0 -2
  271. package/dist/row-data-source-client/tree/traverse.js +0 -22
  272. package/dist/row-data-source-client/use-client-data-source-paginated.d.ts +0 -10
  273. package/dist/row-data-source-client/use-client-data-source-paginated.js +0 -573
  274. package/dist/row-data-source-client/use-client-data-source.d.ts +0 -10
  275. package/dist/row-data-source-client/use-client-data-source.js +0 -667
  276. package/dist/row-data-source-client/use-client-tree-data-source.d.ts +0 -9
  277. package/dist/row-data-source-client/use-client-tree-data-source.js +0 -512
  278. package/dist/row-data-source-server/async-tree/+constants.async-tree.d.ts +0 -1
  279. package/dist/row-data-source-server/async-tree/+constants.async-tree.js +0 -1
  280. package/dist/row-data-source-server/async-tree/+types.async-tree.d.ts +0 -59
  281. package/dist/row-data-source-server/async-tree/+types.async-tree.js +0 -1
  282. package/dist/row-data-source-server/async-tree/apply-delete-action-to-tree.d.ts +0 -2
  283. package/dist/row-data-source-server/async-tree/apply-delete-action-to-tree.js +0 -27
  284. package/dist/row-data-source-server/async-tree/apply-set-action-to-tree.d.ts +0 -2
  285. package/dist/row-data-source-server/async-tree/apply-set-action-to-tree.js +0 -36
  286. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-unique.d.ts +0 -2
  287. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-unique.js +0 -24
  288. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-valid.d.ts +0 -2
  289. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-valid.js +0 -14
  290. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-fit.d.ts +0 -2
  291. package/dist/row-data-source-server/async-tree/check-set-action-item-keys-fit.js +0 -18
  292. package/dist/row-data-source-server/async-tree/check-set-action-item-kinds.d.ts +0 -2
  293. package/dist/row-data-source-server/async-tree/check-set-action-item-kinds.js +0 -14
  294. package/dist/row-data-source-server/async-tree/get-parent-node-by-path.d.ts +0 -2
  295. package/dist/row-data-source-server/async-tree/get-parent-node-by-path.js +0 -18
  296. package/dist/row-data-source-server/async-tree/is-set-action-a-no-op-on-node.d.ts +0 -2
  297. package/dist/row-data-source-server/async-tree/is-set-action-a-no-op-on-node.js +0 -3
  298. package/dist/row-data-source-server/async-tree/make-async-tree.d.ts +0 -2
  299. package/dist/row-data-source-server/async-tree/make-async-tree.js +0 -19
  300. package/dist/row-data-source-server/async-tree/maybe-apply-parent-remove-self.d.ts +0 -2
  301. package/dist/row-data-source-server/async-tree/maybe-apply-parent-remove-self.js +0 -8
  302. package/dist/row-data-source-server/async-tree/maybe-apply-resize.d.ts +0 -2
  303. package/dist/row-data-source-server/async-tree/maybe-apply-resize.js +0 -17
  304. package/dist/row-data-source-server/async-tree/maybe-apply-set-action-items.d.ts +0 -2
  305. package/dist/row-data-source-server/async-tree/maybe-apply-set-action-items.js +0 -52
  306. package/dist/row-data-source-server/range-tree/range-tree.d.ts +0 -66
  307. package/dist/row-data-source-server/range-tree/range-tree.js +0 -102
  308. package/dist/row-data-source-server/server-data.d.ts +0 -70
  309. package/dist/row-data-source-server/server-data.js +0 -519
  310. package/dist/row-data-source-server/use-server-data-source.d.ts +0 -3
  311. package/dist/row-data-source-server/use-server-data-source.js +0 -413
  312. package/dist/row-data-source-server/utils/get-node-depth.d.ts +0 -2
  313. package/dist/row-data-source-server/utils/get-node-depth.js +0 -9
  314. package/dist/row-data-source-server/utils/get-node-path.d.ts +0 -2
  315. package/dist/row-data-source-server/utils/get-node-path.js +0 -9
  316. package/dist/row-data-source-server/utils/get-request-id.d.ts +0 -1
  317. package/dist/row-data-source-server/utils/get-request-id.js +0 -6
  318. package/dist/sort-manager/+types.d.ts +0 -13
  319. package/dist/sort-manager/+types.js +0 -1
  320. package/dist/sort-manager/context.d.ts +0 -14
  321. package/dist/sort-manager/context.js +0 -5
  322. package/dist/sort-manager/hooks/use-sort-manager.d.ts +0 -15
  323. package/dist/sort-manager/hooks/use-sort-manager.js +0 -56
  324. package/dist/sort-manager/hooks/use-sort-row-item.d.ts +0 -51
  325. package/dist/sort-manager/hooks/use-sort-row-item.js +0 -145
  326. package/dist/sort-manager/hooks/use-sortable-column-items.d.ts +0 -5
  327. package/dist/sort-manager/hooks/use-sortable-column-items.js +0 -13
  328. package/dist/sort-manager/root.d.ts +0 -3
  329. package/dist/sort-manager/root.js +0 -14
  330. package/dist/sort-manager/sort-add.d.ts +0 -8
  331. package/dist/sort-manager/sort-add.js +0 -14
  332. package/dist/sort-manager/sort-apply.d.ts +0 -7
  333. package/dist/sort-manager/sort-apply.js +0 -24
  334. package/dist/sort-manager/sort-cancel.d.ts +0 -7
  335. package/dist/sort-manager/sort-cancel.js +0 -27
  336. package/dist/sort-manager/sort-clear.d.ts +0 -7
  337. package/dist/sort-manager/sort-clear.js +0 -22
  338. package/dist/sort-manager/sort-column-select.d.ts +0 -10
  339. package/dist/sort-manager/sort-column-select.js +0 -20
  340. package/dist/sort-manager/sort-direction-select.d.ts +0 -10
  341. package/dist/sort-manager/sort-direction-select.js +0 -24
  342. package/dist/sort-manager/sort-manager.d.ts +0 -16
  343. package/dist/sort-manager/sort-manager.js +0 -26
  344. package/dist/sort-manager/sort-remove.d.ts +0 -7
  345. package/dist/sort-manager/sort-remove.js +0 -14
  346. package/dist/sort-manager/sort-row.d.ts +0 -5
  347. package/dist/sort-manager/sort-row.js +0 -7
  348. package/dist/sort-manager/sort-rows.d.ts +0 -1
  349. package/dist/sort-manager/sort-rows.js +0 -6
  350. package/dist/sort-manager/sort-value-select.d.ts +0 -11
  351. package/dist/sort-manager/sort-value-select.js +0 -25
  352. package/dist/sort-manager/utils/sort-item-to-sort-model.d.ts +0 -3
  353. package/dist/sort-manager/utils/sort-item-to-sort-model.js +0 -62
  354. package/dist/sort-manager/utils/sort-model-to-sort-items.d.ts +0 -3
  355. package/dist/sort-manager/utils/sort-model-to-sort-items.js +0 -50
  356. package/dist/state/+types.d.ts +0 -36
  357. package/dist/state/+types.js +0 -1
  358. package/dist/state/api/cell-root.d.ts +0 -5
  359. package/dist/state/api/cell-root.js +0 -65
  360. package/dist/state/api/column-autosize.d.ts +0 -5
  361. package/dist/state/api/column-autosize.js +0 -72
  362. package/dist/state/api/column-by-id.d.ts +0 -2
  363. package/dist/state/api/column-by-id.js +0 -6
  364. package/dist/state/api/column-field.d.ts +0 -2
  365. package/dist/state/api/column-field.js +0 -23
  366. package/dist/state/api/column-from-index.d.ts +0 -2
  367. package/dist/state/api/column-from-index.js +0 -6
  368. package/dist/state/api/column-group-toggle.d.ts +0 -2
  369. package/dist/state/api/column-group-toggle.js +0 -10
  370. package/dist/state/api/column-index.d.ts +0 -2
  371. package/dist/state/api/column-index.js +0 -7
  372. package/dist/state/api/column-move.d.ts +0 -2
  373. package/dist/state/api/column-move.js +0 -49
  374. package/dist/state/api/column-resize.d.ts +0 -2
  375. package/dist/state/api/column-resize.js +0 -9
  376. package/dist/state/api/column-update.d.ts +0 -5
  377. package/dist/state/api/column-update.js +0 -26
  378. package/dist/state/api/dialog-frame.d.ts +0 -8
  379. package/dist/state/api/dialog-frame.js +0 -16
  380. package/dist/state/api/edit-begin.d.ts +0 -5
  381. package/dist/state/api/edit-begin.js +0 -87
  382. package/dist/state/api/edit-end.d.ts +0 -5
  383. package/dist/state/api/edit-end.js +0 -43
  384. package/dist/state/api/edit-is-cell-active.d.ts +0 -5
  385. package/dist/state/api/edit-is-cell-active.js +0 -22
  386. package/dist/state/api/edit-update.d.ts +0 -5
  387. package/dist/state/api/edit-update.js +0 -88
  388. package/dist/state/api/event-listeners.d.ts +0 -5
  389. package/dist/state/api/event-listeners.js +0 -19
  390. package/dist/state/api/export-csv.d.ts +0 -3
  391. package/dist/state/api/export-csv.js +0 -40
  392. package/dist/state/api/export-data-rect.d.ts +0 -2
  393. package/dist/state/api/export-data-rect.js +0 -24
  394. package/dist/state/api/popover-frame.d.ts +0 -8
  395. package/dist/state/api/popover-frame.js +0 -16
  396. package/dist/state/api/position-from-element.d.ts +0 -5
  397. package/dist/state/api/position-from-element.js +0 -9
  398. package/dist/state/api/row-by-id.d.ts +0 -2
  399. package/dist/state/api/row-by-id.js +0 -5
  400. package/dist/state/api/row-by-index.d.ts +0 -2
  401. package/dist/state/api/row-by-index.js +0 -9
  402. package/dist/state/api/row-detail-is-expanded.d.ts +0 -2
  403. package/dist/state/api/row-detail-is-expanded.js +0 -6
  404. package/dist/state/api/row-detail-rendered-height.d.ts +0 -5
  405. package/dist/state/api/row-detail-rendered-height.js +0 -14
  406. package/dist/state/api/row-detail-toggle.d.ts +0 -2
  407. package/dist/state/api/row-detail-toggle.js +0 -32
  408. package/dist/state/api/row-group-apply-expansions.d.ts +0 -2
  409. package/dist/state/api/row-group-apply-expansions.js +0 -20
  410. package/dist/state/api/row-group-column-index.d.ts +0 -2
  411. package/dist/state/api/row-group-column-index.js +0 -14
  412. package/dist/state/api/row-group-is-expanded.d.ts +0 -2
  413. package/dist/state/api/row-group-is-expanded.js +0 -15
  414. package/dist/state/api/row-group-toggle.d.ts +0 -2
  415. package/dist/state/api/row-group-toggle.js +0 -7
  416. package/dist/state/api/row-handle-select.d.ts +0 -5
  417. package/dist/state/api/row-handle-select.js +0 -43
  418. package/dist/state/api/row-select-all.d.ts +0 -2
  419. package/dist/state/api/row-select-all.js +0 -17
  420. package/dist/state/api/row-select.d.ts +0 -5
  421. package/dist/state/api/row-select.js +0 -35
  422. package/dist/state/api/row-selected.d.ts +0 -2
  423. package/dist/state/api/row-selected.js +0 -13
  424. package/dist/state/api/scroll-into-view.d.ts +0 -5
  425. package/dist/state/api/scroll-into-view.js +0 -50
  426. package/dist/state/api/sort-for-column.d.ts +0 -2
  427. package/dist/state/api/sort-for-column.js +0 -9
  428. package/dist/state/api/use-row-drag.d.ts +0 -2
  429. package/dist/state/api/use-row-drag.js +0 -20
  430. package/dist/state/helpers/cell-row-group.d.ts +0 -2
  431. package/dist/state/helpers/cell-row-group.js +0 -19
  432. package/dist/state/helpers/column-add-row-group.d.ts +0 -10
  433. package/dist/state/helpers/column-add-row-group.js +0 -74
  434. package/dist/state/helpers/column-layout.d.ts +0 -3
  435. package/dist/state/helpers/column-layout.js +0 -59
  436. package/dist/state/helpers/column-marker.d.ts +0 -8
  437. package/dist/state/helpers/column-marker.js +0 -45
  438. package/dist/state/helpers/column-view.d.ts +0 -21
  439. package/dist/state/helpers/column-view.js +0 -33
  440. package/dist/state/helpers/edit-on-change.d.ts +0 -15
  441. package/dist/state/helpers/edit-on-change.js +0 -27
  442. package/dist/state/helpers/empty-row-data-source.d.ts +0 -2
  443. package/dist/state/helpers/empty-row-data-source.js +0 -18
  444. package/dist/state/helpers/get-data-rect.d.ts +0 -13
  445. package/dist/state/helpers/get-data-rect.js +0 -65
  446. package/dist/state/helpers/get-full-width-callback.d.ts +0 -2
  447. package/dist/state/helpers/get-full-width-callback.js +0 -10
  448. package/dist/state/helpers/get-span-callback.d.ts +0 -2
  449. package/dist/state/helpers/get-span-callback.js +0 -22
  450. package/dist/state/helpers/resolve-column.d.ts +0 -4
  451. package/dist/state/helpers/resolve-column.js +0 -29
  452. package/dist/state/helpers/row-layout/get-focus-criteria.d.ts +0 -17
  453. package/dist/state/helpers/row-layout/get-focus-criteria.js +0 -62
  454. package/dist/state/helpers/row-layout/row-layout.d.ts +0 -19
  455. package/dist/state/helpers/row-layout/row-layout.js +0 -162
  456. package/dist/state/use-lytenyte.d.ts +0 -3
  457. package/dist/state/use-lytenyte.js +0 -686
  458. package/dist/tree-view/branch/branch.d.ts +0 -14
  459. package/dist/tree-view/branch/branch.js +0 -63
  460. package/dist/tree-view/branch/use-branch-keys.d.ts +0 -2
  461. package/dist/tree-view/branch/use-branch-keys.js +0 -87
  462. package/dist/tree-view/context.d.ts +0 -22
  463. package/dist/tree-view/context.js +0 -3
  464. package/dist/tree-view/depth-provider.d.ts +0 -2
  465. package/dist/tree-view/depth-provider.js +0 -3
  466. package/dist/tree-view/hooks/use-tree-view-paths.d.ts +0 -2
  467. package/dist/tree-view/hooks/use-tree-view-paths.js +0 -9
  468. package/dist/tree-view/index.d.ts +0 -16
  469. package/dist/tree-view/index.js +0 -16
  470. package/dist/tree-view/leaf.d.ts +0 -4
  471. package/dist/tree-view/leaf.js +0 -28
  472. package/dist/tree-view/navigation/get-all-ids.d.ts +0 -1
  473. package/dist/tree-view/navigation/get-all-ids.js +0 -7
  474. package/dist/tree-view/navigation/get-first-node.d.ts +0 -1
  475. package/dist/tree-view/navigation/get-first-node.js +0 -7
  476. package/dist/tree-view/navigation/get-last-node.d.ts +0 -1
  477. package/dist/tree-view/navigation/get-last-node.js +0 -7
  478. package/dist/tree-view/navigation/get-next-node.d.ts +0 -1
  479. package/dist/tree-view/navigation/get-next-node.js +0 -13
  480. package/dist/tree-view/navigation/get-prev-node.d.ts +0 -1
  481. package/dist/tree-view/navigation/get-prev-node.js +0 -13
  482. package/dist/tree-view/panel/make-handle-navigation.d.ts +0 -2
  483. package/dist/tree-view/panel/make-handle-navigation.js +0 -39
  484. package/dist/tree-view/panel/make-handle-selection.d.ts +0 -2
  485. package/dist/tree-view/panel/make-handle-selection.js +0 -92
  486. package/dist/tree-view/panel/make-handle-typeahead.d.ts +0 -1
  487. package/dist/tree-view/panel/make-handle-typeahead.js +0 -45
  488. package/dist/tree-view/panel/panel.d.ts +0 -1
  489. package/dist/tree-view/panel/panel.js +0 -30
  490. package/dist/tree-view/panel/use-tree-navigation.d.ts +0 -1
  491. package/dist/tree-view/panel/use-tree-navigation.js +0 -63
  492. package/dist/tree-view/root.d.ts +0 -17
  493. package/dist/tree-view/root.js +0 -63
  494. package/dist/tree-view/utils/get-focusable-nodes.d.ts +0 -1
  495. package/dist/tree-view/utils/get-focusable-nodes.js +0 -5
  496. package/dist/tree-view/utils/get-focused-node.d.ts +0 -1
  497. package/dist/tree-view/utils/get-focused-node.js +0 -14
  498. package/dist/tree-view/utils/get-ids-between-nodes.d.ts +0 -1
  499. package/dist/tree-view/utils/get-ids-between-nodes.js +0 -15
  500. package/dist/tree-view/utils/get-panel.d.ts +0 -1
  501. package/dist/tree-view/utils/get-panel.js +0 -7
  502. package/dist/tree-view/utils/get-parent-node.d.ts +0 -1
  503. package/dist/tree-view/utils/get-parent-node.js +0 -10
  504. package/dist/tree-view/utils/get-sibling-branches.d.ts +0 -1
  505. package/dist/tree-view/utils/get-sibling-branches.js +0 -14
  506. package/dist/tree-view/utils/get-tree-node-id.d.ts +0 -1
  507. package/dist/tree-view/utils/get-tree-node-id.js +0 -3
  508. package/dist/tree-view/utils/is-branch-node.d.ts +0 -1
  509. package/dist/tree-view/utils/is-branch-node.js +0 -3
  510. package/dist/tree-view/utils/is-leaf-node.d.ts +0 -1
  511. package/dist/tree-view/utils/is-leaf-node.js +0 -3
  512. package/dist/tree-view/utils/is-tree-node-disabled.d.ts +0 -1
  513. package/dist/tree-view/utils/is-tree-node-disabled.js +0 -3
  514. package/dist/tree-view/utils/select-node.d.ts +0 -2
  515. package/dist/tree-view/utils/select-node.js +0 -15
  516. package/dist/tree-view/utils/toggle-all-selections.d.ts +0 -2
  517. package/dist/tree-view/utils/toggle-all-selections.js +0 -9
  518. package/dist/tree-view/utils/toggle-selection.d.ts +0 -2
  519. package/dist/tree-view/utils/toggle-selection.js +0 -21
  520. package/dist/tree-view/virtualized/force-sync-scrolling.d.ts +0 -2
  521. package/dist/tree-view/virtualized/force-sync-scrolling.js +0 -23
  522. package/dist/tree-view/virtualized/get-virtual-tree-paths.d.ts +0 -2
  523. package/dist/tree-view/virtualized/get-virtual-tree-paths.js +0 -14
  524. package/dist/tree-view/virtualized/make-virtual-tree.d.ts +0 -31
  525. package/dist/tree-view/virtualized/make-virtual-tree.js +0 -90
  526. package/dist/tree-view/virtualized/use-flattened-tree.d.ts +0 -9
  527. package/dist/tree-view/virtualized/use-flattened-tree.js +0 -36
  528. package/dist/tree-view/virtualized/use-row-start-and-end.d.ts +0 -2
  529. package/dist/tree-view/virtualized/use-row-start-and-end.js +0 -27
  530. package/dist/tree-view/virtualized/use-virtualized-tree.d.ts +0 -22
  531. package/dist/tree-view/virtualized/use-virtualized-tree.js +0 -100
  532. package/dist/types/types.d.ts +0 -8
  533. package/dist/types/types.js +0 -1
  534. package/main.css +0 -453
@@ -1,3 +0,0 @@
1
- export declare const useGrid: () => import("../+types.js").Grid<any> & {
2
- internal: import("../state/+types.js").InternalAtoms;
3
- };
@@ -1,3 +0,0 @@
1
- import { useContext } from "react";
2
- import { gridContext } from "./context.js";
3
- export const useGrid = () => useContext(gridContext);
package/dist/grid.d.ts DELETED
@@ -1,18 +0,0 @@
1
- import { Root } from "./grid/root.js";
2
- import { useLyteNyte } from "./state/use-lytenyte.js";
3
- export declare const Grid: {
4
- Root: typeof Root;
5
- Header: import("react").NamedExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
- HeaderGroupCell: (props: import("react").JSX.IntrinsicElements["div"] & import("./grid/header-group-cell.js").HeaderGroupCellProps) => import("react").ReactNode;
7
- HeaderRow: (props: import("react").JSX.IntrinsicElements["div"] & import("./grid/header-row.js").HeaderRowProps) => import("react").ReactNode;
8
- HeaderCell: (props: import("react").JSX.IntrinsicElements["div"] & import("./grid/header-cell.js").HeaderCellProps<any>) => import("react").ReactNode;
9
- Cell: (props: Omit<import("react").JSX.IntrinsicElements["div"], "children"> & import("./grid/cell.js").CellProps) => import("react").ReactNode;
10
- RowFullWidth: (props: import("react").JSX.IntrinsicElements["div"] & import("./grid/row-full-width.js").RowFullWidthProps) => import("react").ReactNode;
11
- RowsContainer: import("react").NamedExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
12
- RowsBottom: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
13
- RowsTop: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
14
- Row: (props: Omit<import("react").JSX.IntrinsicElements["div"], "onDrag"> & import("./grid/row.js").RowProps) => import("react").ReactNode;
15
- RowsCenter: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
16
- Viewport: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
17
- useLyteNyte: typeof useLyteNyte;
18
- };
package/dist/grid.js DELETED
@@ -1,28 +0,0 @@
1
- import { Cell } from "./grid/cell.js";
2
- import { Header } from "./grid/header.js";
3
- import { HeaderCell } from "./grid/header-cell.js";
4
- import { HeaderGroupCell } from "./grid/header-group-cell.js";
5
- import { HeaderRow } from "./grid/header-row.js";
6
- import { Root } from "./grid/root.js";
7
- import { RowFullWidth } from "./grid/row-full-width.js";
8
- import { Row } from "./grid/row.js";
9
- import { RowsContainer } from "./grid/rows-container.js";
10
- import { RowsBottom, RowsCenter, RowsTop } from "./grid/rows-sections.js";
11
- import { useLyteNyte } from "./state/use-lytenyte.js";
12
- import { Viewport } from "./grid/viewport.js";
13
- export const Grid = {
14
- Root,
15
- Header,
16
- HeaderGroupCell,
17
- HeaderRow,
18
- HeaderCell,
19
- Cell,
20
- RowFullWidth,
21
- RowsContainer,
22
- RowsBottom,
23
- RowsTop,
24
- Row,
25
- RowsCenter,
26
- Viewport,
27
- useLyteNyte,
28
- };
@@ -1 +0,0 @@
1
- export { AddIcon, AddSmallIcon, AggregateIcon, AggregationIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightCurvedIcon, ArrowRightIcon, ArrowUpIcon, AutosizeIcon, BackIcon, BookmarkIcon, BooleanIcon, CalendarIcon, ChartIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, Close2Icon, CloseIcon, CollapseGroupIcon, Columns2Icon, ColumnsIcon, CopyIcon, CornerRadiusIcon, CustomizeThemeIcon, CutIcon, CsvIcon, DeleteIcon, DocsIcon, DownloadIcon, Drag2Icon, DragDotsIcon, DragDotsSmallIcon, DragIcon, DuplicateIcon, EditIcon, EmailIcon, ExcelIcon, ExpandGroupIcon, ExpandIcon, Expression2Icon, ExpressionIcon, ExternalLinkIcon, File2Icon, FileIcon, FilterIcon, FolderIcon, GlobeIcon, GridViewIcon, GroupByColIcon, HamburgerIcon, HelpIcon, HiddenIcon, HistoryIcon, ImportIcon, LinkIcon, ListViewIcon, LoadingIcon, LocationIcon, ModalIcon, MoreIcon, MoreVerticalIcon, MultilineIcon, NumberIcon, PasteIcon, PieIcon, PinColumnIcon, RefreshIcon, SearchIcon, SettingsIcon, ShareIcon, SingleLineIcon, Sort2Icon, SortIcon, SpacingHIcon, SpacingIcon, StickColumnIcon, SwapIcon, TagIcon, TaskIcon, TextIcon, ThemesIcon, Tickmark2Icon, TickmarkIcon, TimeIcon, UploadIcon, UserIcon, ViewIcon, } from "@1771technologies/lytenyte-core/icons";
@@ -1 +0,0 @@
1
- export { AddIcon, AddSmallIcon, AggregateIcon, AggregationIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightCurvedIcon, ArrowRightIcon, ArrowUpIcon, AutosizeIcon, BackIcon, BookmarkIcon, BooleanIcon, CalendarIcon, ChartIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, Close2Icon, CloseIcon, CollapseGroupIcon, Columns2Icon, ColumnsIcon, CopyIcon, CornerRadiusIcon, CustomizeThemeIcon, CutIcon, CsvIcon, DeleteIcon, DocsIcon, DownloadIcon, Drag2Icon, DragDotsIcon, DragDotsSmallIcon, DragIcon, DuplicateIcon, EditIcon, EmailIcon, ExcelIcon, ExpandGroupIcon, ExpandIcon, Expression2Icon, ExpressionIcon, ExternalLinkIcon, File2Icon, FileIcon, FilterIcon, FolderIcon, GlobeIcon, GridViewIcon, GroupByColIcon, HamburgerIcon, HelpIcon, HiddenIcon, HistoryIcon, ImportIcon, LinkIcon, ListViewIcon, LoadingIcon, LocationIcon, ModalIcon, MoreIcon, MoreVerticalIcon, MultilineIcon, NumberIcon, PasteIcon, PieIcon, PinColumnIcon, RefreshIcon, SearchIcon, SettingsIcon, ShareIcon, SingleLineIcon, Sort2Icon, SortIcon, SpacingHIcon, SpacingIcon, StickColumnIcon, SwapIcon, TagIcon, TaskIcon, TextIcon, ThemesIcon, Tickmark2Icon, TickmarkIcon, TimeIcon, UploadIcon, UserIcon, ViewIcon, } from "@1771technologies/lytenyte-core/icons";
package/dist/index.d.ts DELETED
@@ -1,14 +0,0 @@
1
- export { GROUP_COLUMN_PREFIX, COLUMN_MARKER_ID, GROUP_COLUMN_SINGLE_ID, GROUP_COLUMN_MULTI_PREFIX, } from "@1771technologies/lytenyte-shared";
2
- export { Grid } from "./grid.js";
3
- export { SortManager } from "./sort-manager/sort-manager.js";
4
- export { FilterTree } from "./filter-tree/filter-tree.js";
5
- export { ColumnManager } from "./column-manager/column-manager.js";
6
- export { GridBox } from "./grid-box/grid-box.js";
7
- export { DropWrap } from "@1771technologies/lytenyte-core/yinternal";
8
- export { FilterSelect } from "./filter-selects/index.js";
9
- export { activateLicense } from "./license.js";
10
- export { measureText } from "@1771technologies/lytenyte-shared";
11
- export { makeClientDataSource, useClientRowDataSource, } from "./row-data-source-client/use-client-data-source.js";
12
- export { makeClientDataSourcePaginated, useClientRowDataSourcePaginated, } from "./row-data-source-client/use-client-data-source-paginated.js";
13
- export { makeClientTreeDataSource, useClientTreeDataSource, } from "./row-data-source-client/use-client-tree-data-source.js";
14
- export { makeServerDataSource, useServerDataSource, } from "./row-data-source-server/use-server-data-source.js";
package/dist/index.js DELETED
@@ -1,14 +0,0 @@
1
- export { GROUP_COLUMN_PREFIX, COLUMN_MARKER_ID, GROUP_COLUMN_SINGLE_ID, GROUP_COLUMN_MULTI_PREFIX, } from "@1771technologies/lytenyte-shared";
2
- export { Grid } from "./grid.js";
3
- export { SortManager } from "./sort-manager/sort-manager.js";
4
- export { FilterTree } from "./filter-tree/filter-tree.js";
5
- export { ColumnManager } from "./column-manager/column-manager.js";
6
- export { GridBox } from "./grid-box/grid-box.js";
7
- export { DropWrap } from "@1771technologies/lytenyte-core/yinternal";
8
- export { FilterSelect } from "./filter-selects/index.js";
9
- export { activateLicense } from "./license.js";
10
- export { measureText } from "@1771technologies/lytenyte-shared";
11
- export { makeClientDataSource, useClientRowDataSource, } from "./row-data-source-client/use-client-data-source.js";
12
- export { makeClientDataSourcePaginated, useClientRowDataSourcePaginated, } from "./row-data-source-client/use-client-data-source-paginated.js";
13
- export { makeClientTreeDataSource, useClientTreeDataSource, } from "./row-data-source-client/use-client-tree-data-source.js";
14
- export { makeServerDataSource, useServerDataSource, } from "./row-data-source-server/use-server-data-source.js";
@@ -1 +0,0 @@
1
- export { activateLicense, hasAValidLicense } from "./license.js";
@@ -1 +0,0 @@
1
- export { activateLicense, hasAValidLicense } from "./license.js";
@@ -1,3 +0,0 @@
1
- export declare let hasAValidLicense: boolean;
2
- export declare let licenseState: "invalid" | "expired" | null;
3
- export declare function activateLicense(license: string): boolean;
@@ -1,215 +0,0 @@
1
- const hashSalt = "faec0f3c45281b1fe12d87e64a6c3271";
2
- // @ts-expect-error will be replaced by build script
3
- const issueDate = globalThis.ISSUE_DATE ?? new Date("2023-03-01");
4
- function getHostname() {
5
- const win = globalThis?.document?.defaultView || (typeof window !== "undefined" ? window : null);
6
- const loc = win?.location;
7
- const { hostname = "" } = loc ?? {};
8
- return hostname;
9
- }
10
- function isWebsiteUrl() {
11
- const hostname = getHostname();
12
- return hostname.match(/^((?:\w+\.)?1771technologies\.com)$/) !== null;
13
- }
14
- function isLocalhost() {
15
- const hostname = getHostname();
16
- return hostname.match(/^(?:127\.0\.0\.1|localhost)$/) !== null;
17
- }
18
- export let hasAValidLicense = isWebsiteUrl() || isLocalhost();
19
- export let licenseState = null;
20
- export function activateLicense(license) {
21
- const parts = license.split("|");
22
- const details = parts[0];
23
- const hash = parts[1];
24
- const detailHash = new MD5().md5(details + hashSalt);
25
- if (detailHash !== hash) {
26
- console.error(`
27
- ********************************************************************************
28
- LyteNyte Grid PRO
29
-
30
- Invalid license key. Please verify the key and try again.
31
-
32
- Visit https://1771technolgies.com for more information.
33
- ********************************************************************************
34
- `);
35
- licenseState = "invalid";
36
- return false;
37
- }
38
- const detailParts = details.split(" ");
39
- const endDate = new Date(detailParts[1]);
40
- if (issueDate > endDate) {
41
- console.error(`
42
- ********************************************************************************
43
- LyteNyte Grid PRO
44
-
45
- License key expired. Your license covers earlier versions only.
46
-
47
- Visit https://1771technolgies.com for more information.
48
- ********************************************************************************
49
- `);
50
- licenseState = "expired";
51
- return false;
52
- }
53
- hasAValidLicense = true;
54
- return true;
55
- }
56
- // see: https://www.myersdaily.org/joseph/javascript/md5-text.html
57
- // https://stackoverflow.com/a/1655795
58
- class MD5 {
59
- md5cycle(x, k) {
60
- let a = x[0];
61
- let b = x[1];
62
- let c = x[2];
63
- let d = x[3];
64
- a = this.ff(a, b, c, d, k[0], 7, -680876936);
65
- d = this.ff(d, a, b, c, k[1], 12, -389564586);
66
- c = this.ff(c, d, a, b, k[2], 17, 606105819);
67
- b = this.ff(b, c, d, a, k[3], 22, -1044525330);
68
- a = this.ff(a, b, c, d, k[4], 7, -176418897);
69
- d = this.ff(d, a, b, c, k[5], 12, 1200080426);
70
- c = this.ff(c, d, a, b, k[6], 17, -1473231341);
71
- b = this.ff(b, c, d, a, k[7], 22, -45705983);
72
- a = this.ff(a, b, c, d, k[8], 7, 1770035416);
73
- d = this.ff(d, a, b, c, k[9], 12, -1958414417);
74
- c = this.ff(c, d, a, b, k[10], 17, -42063);
75
- b = this.ff(b, c, d, a, k[11], 22, -1990404162);
76
- a = this.ff(a, b, c, d, k[12], 7, 1804603682);
77
- d = this.ff(d, a, b, c, k[13], 12, -40341101);
78
- c = this.ff(c, d, a, b, k[14], 17, -1502002290);
79
- b = this.ff(b, c, d, a, k[15], 22, 1236535329);
80
- a = this.gg(a, b, c, d, k[1], 5, -165796510);
81
- d = this.gg(d, a, b, c, k[6], 9, -1069501632);
82
- c = this.gg(c, d, a, b, k[11], 14, 643717713);
83
- b = this.gg(b, c, d, a, k[0], 20, -373897302);
84
- a = this.gg(a, b, c, d, k[5], 5, -701558691);
85
- d = this.gg(d, a, b, c, k[10], 9, 38016083);
86
- c = this.gg(c, d, a, b, k[15], 14, -660478335);
87
- b = this.gg(b, c, d, a, k[4], 20, -405537848);
88
- a = this.gg(a, b, c, d, k[9], 5, 568446438);
89
- d = this.gg(d, a, b, c, k[14], 9, -1019803690);
90
- c = this.gg(c, d, a, b, k[3], 14, -187363961);
91
- b = this.gg(b, c, d, a, k[8], 20, 1163531501);
92
- a = this.gg(a, b, c, d, k[13], 5, -1444681467);
93
- d = this.gg(d, a, b, c, k[2], 9, -51403784);
94
- c = this.gg(c, d, a, b, k[7], 14, 1735328473);
95
- b = this.gg(b, c, d, a, k[12], 20, -1926607734);
96
- a = this.hh(a, b, c, d, k[5], 4, -378558);
97
- d = this.hh(d, a, b, c, k[8], 11, -2022574463);
98
- c = this.hh(c, d, a, b, k[11], 16, 1839030562);
99
- b = this.hh(b, c, d, a, k[14], 23, -35309556);
100
- a = this.hh(a, b, c, d, k[1], 4, -1530992060);
101
- d = this.hh(d, a, b, c, k[4], 11, 1272893353);
102
- c = this.hh(c, d, a, b, k[7], 16, -155497632);
103
- b = this.hh(b, c, d, a, k[10], 23, -1094730640);
104
- a = this.hh(a, b, c, d, k[13], 4, 681279174);
105
- d = this.hh(d, a, b, c, k[0], 11, -358537222);
106
- c = this.hh(c, d, a, b, k[3], 16, -722521979);
107
- b = this.hh(b, c, d, a, k[6], 23, 76029189);
108
- a = this.hh(a, b, c, d, k[9], 4, -640364487);
109
- d = this.hh(d, a, b, c, k[12], 11, -421815835);
110
- c = this.hh(c, d, a, b, k[15], 16, 530742520);
111
- b = this.hh(b, c, d, a, k[2], 23, -995338651);
112
- a = this.ii(a, b, c, d, k[0], 6, -198630844);
113
- d = this.ii(d, a, b, c, k[7], 10, 1126891415);
114
- c = this.ii(c, d, a, b, k[14], 15, -1416354905);
115
- b = this.ii(b, c, d, a, k[5], 21, -57434055);
116
- a = this.ii(a, b, c, d, k[12], 6, 1700485571);
117
- d = this.ii(d, a, b, c, k[3], 10, -1894986606);
118
- c = this.ii(c, d, a, b, k[10], 15, -1051523);
119
- b = this.ii(b, c, d, a, k[1], 21, -2054922799);
120
- a = this.ii(a, b, c, d, k[8], 6, 1873313359);
121
- d = this.ii(d, a, b, c, k[15], 10, -30611744);
122
- c = this.ii(c, d, a, b, k[6], 15, -1560198380);
123
- b = this.ii(b, c, d, a, k[13], 21, 1309151649);
124
- a = this.ii(a, b, c, d, k[4], 6, -145523070);
125
- d = this.ii(d, a, b, c, k[11], 10, -1120210379);
126
- c = this.ii(c, d, a, b, k[2], 15, 718787259);
127
- b = this.ii(b, c, d, a, k[9], 21, -343485551);
128
- x[0] = this.add32(a, x[0]);
129
- x[1] = this.add32(b, x[1]);
130
- x[2] = this.add32(c, x[2]);
131
- x[3] = this.add32(d, x[3]);
132
- }
133
- cmn(q, a, b, x, s, t) {
134
- a = this.add32(this.add32(a, q), this.add32(x, t));
135
- return this.add32((a << s) | (a >>> (32 - s)), b);
136
- }
137
- ff(a, b, c, d, x, s, t) {
138
- return this.cmn((b & c) | (~b & d), a, b, x, s, t);
139
- }
140
- gg(a, b, c, d, x, s, t) {
141
- return this.cmn((b & d) | (c & ~d), a, b, x, s, t);
142
- }
143
- hh(a, b, c, d, x, s, t) {
144
- return this.cmn(b ^ c ^ d, a, b, x, s, t);
145
- }
146
- ii(a, b, c, d, x, s, t) {
147
- return this.cmn(c ^ (b | ~d), a, b, x, s, t);
148
- }
149
- md51(s) {
150
- const n = s.length;
151
- const state = [1732584193, -271733879, -1732584194, 271733878];
152
- let i;
153
- for (i = 64; i <= s.length; i += 64) {
154
- this.md5cycle(state, this.md5blk(s.substring(i - 64, i)));
155
- }
156
- s = s.substring(i - 64);
157
- const tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
158
- for (i = 0; i < s.length; i++) {
159
- tail[i >> 2] |= s.charCodeAt(i) << (i % 4 << 3);
160
- }
161
- tail[i >> 2] |= 0x80 << (i % 4 << 3);
162
- if (i > 55) {
163
- this.md5cycle(state, tail);
164
- for (i = 0; i < 16; i++) {
165
- tail[i] = 0;
166
- }
167
- }
168
- tail[14] = n * 8;
169
- this.md5cycle(state, tail);
170
- return state;
171
- }
172
- /* there needs to be support for Unicode here, * unless we pretend that we can redefine the MD-5
173
- * algorithm for multi-byte characters (perhaps by adding every four 16-bit characters and
174
- * shortening the sum to 32 bits). Otherwise I suthis.ggest performing MD-5 as if every character
175
- * was two bytes--e.g., 0040 0025 = @%--but then how will an ordinary MD-5 sum be matched?
176
- * There is no way to standardize text to something like UTF-8 before transformation; speed cost is
177
- * utterly prohibitive. The JavaScript standard itself needs to look at this: it should start
178
- * providing access to strings as preformed UTF-8 8-bit unsigned value arrays.
179
- */
180
- md5blk(s) {
181
- const md5blks = [];
182
- for (let i = 0; i < 64; i += 4) {
183
- md5blks[i >> 2] =
184
- s.charCodeAt(i) +
185
- (s.charCodeAt(i + 1) << 8) +
186
- (s.charCodeAt(i + 2) << 16) +
187
- (s.charCodeAt(i + 3) << 24);
188
- }
189
- return md5blks;
190
- }
191
- rhex(n) {
192
- const hex_chr = "0123456789abcdef".split("");
193
- let s = "";
194
- let j = 0;
195
- for (; j < 4; j++) {
196
- s += hex_chr[(n >> (j * 8 + 4)) & 0x0f] + hex_chr[(n >> (j * 8)) & 0x0f];
197
- }
198
- return s;
199
- }
200
- hex(x) {
201
- for (let i = 0; i < x.length; i++) {
202
- x[i] = this.rhex(x[i]);
203
- }
204
- return x.join("");
205
- }
206
- md5(s) {
207
- return this.hex(this.md51(s));
208
- }
209
- add32(a, b) {
210
- return this.add32Std(a, b);
211
- }
212
- add32Std(a, b) {
213
- return (a + b) & 0xffffffff;
214
- }
215
- }
@@ -1,9 +0,0 @@
1
- interface GetHashArguments {
2
- companyName: string;
3
- startDate: string;
4
- endDate: string;
5
- randomString: string;
6
- licenseType: "seated" | "company-wide";
7
- }
8
- export declare function getHash({ companyName, startDate, endDate, licenseType, randomString, }: GetHashArguments): string;
9
- export {};
@@ -1,167 +0,0 @@
1
- // WARNING --- DO NOT TOUCH THIS STRING OR THIS MODULE.
2
- const hashSalt = "faec0f3c45281b1fe12d87e64a6c3271";
3
- export function getHash({ companyName, startDate, endDate, licenseType, randomString, }) {
4
- const details = `${startDate} ${endDate} ${companyName} ${licenseType} ${randomString}`;
5
- const hash = new MD5().md5(details + hashSalt);
6
- return `${details}|${hash}`;
7
- }
8
- // see: https://www.myersdaily.org/joseph/javascript/md5-text.html
9
- // https://stackoverflow.com/a/1655795
10
- class MD5 {
11
- md5cycle(x, k) {
12
- let a = x[0];
13
- let b = x[1];
14
- let c = x[2];
15
- let d = x[3];
16
- a = this.ff(a, b, c, d, k[0], 7, -680876936);
17
- d = this.ff(d, a, b, c, k[1], 12, -389564586);
18
- c = this.ff(c, d, a, b, k[2], 17, 606105819);
19
- b = this.ff(b, c, d, a, k[3], 22, -1044525330);
20
- a = this.ff(a, b, c, d, k[4], 7, -176418897);
21
- d = this.ff(d, a, b, c, k[5], 12, 1200080426);
22
- c = this.ff(c, d, a, b, k[6], 17, -1473231341);
23
- b = this.ff(b, c, d, a, k[7], 22, -45705983);
24
- a = this.ff(a, b, c, d, k[8], 7, 1770035416);
25
- d = this.ff(d, a, b, c, k[9], 12, -1958414417);
26
- c = this.ff(c, d, a, b, k[10], 17, -42063);
27
- b = this.ff(b, c, d, a, k[11], 22, -1990404162);
28
- a = this.ff(a, b, c, d, k[12], 7, 1804603682);
29
- d = this.ff(d, a, b, c, k[13], 12, -40341101);
30
- c = this.ff(c, d, a, b, k[14], 17, -1502002290);
31
- b = this.ff(b, c, d, a, k[15], 22, 1236535329);
32
- a = this.gg(a, b, c, d, k[1], 5, -165796510);
33
- d = this.gg(d, a, b, c, k[6], 9, -1069501632);
34
- c = this.gg(c, d, a, b, k[11], 14, 643717713);
35
- b = this.gg(b, c, d, a, k[0], 20, -373897302);
36
- a = this.gg(a, b, c, d, k[5], 5, -701558691);
37
- d = this.gg(d, a, b, c, k[10], 9, 38016083);
38
- c = this.gg(c, d, a, b, k[15], 14, -660478335);
39
- b = this.gg(b, c, d, a, k[4], 20, -405537848);
40
- a = this.gg(a, b, c, d, k[9], 5, 568446438);
41
- d = this.gg(d, a, b, c, k[14], 9, -1019803690);
42
- c = this.gg(c, d, a, b, k[3], 14, -187363961);
43
- b = this.gg(b, c, d, a, k[8], 20, 1163531501);
44
- a = this.gg(a, b, c, d, k[13], 5, -1444681467);
45
- d = this.gg(d, a, b, c, k[2], 9, -51403784);
46
- c = this.gg(c, d, a, b, k[7], 14, 1735328473);
47
- b = this.gg(b, c, d, a, k[12], 20, -1926607734);
48
- a = this.hh(a, b, c, d, k[5], 4, -378558);
49
- d = this.hh(d, a, b, c, k[8], 11, -2022574463);
50
- c = this.hh(c, d, a, b, k[11], 16, 1839030562);
51
- b = this.hh(b, c, d, a, k[14], 23, -35309556);
52
- a = this.hh(a, b, c, d, k[1], 4, -1530992060);
53
- d = this.hh(d, a, b, c, k[4], 11, 1272893353);
54
- c = this.hh(c, d, a, b, k[7], 16, -155497632);
55
- b = this.hh(b, c, d, a, k[10], 23, -1094730640);
56
- a = this.hh(a, b, c, d, k[13], 4, 681279174);
57
- d = this.hh(d, a, b, c, k[0], 11, -358537222);
58
- c = this.hh(c, d, a, b, k[3], 16, -722521979);
59
- b = this.hh(b, c, d, a, k[6], 23, 76029189);
60
- a = this.hh(a, b, c, d, k[9], 4, -640364487);
61
- d = this.hh(d, a, b, c, k[12], 11, -421815835);
62
- c = this.hh(c, d, a, b, k[15], 16, 530742520);
63
- b = this.hh(b, c, d, a, k[2], 23, -995338651);
64
- a = this.ii(a, b, c, d, k[0], 6, -198630844);
65
- d = this.ii(d, a, b, c, k[7], 10, 1126891415);
66
- c = this.ii(c, d, a, b, k[14], 15, -1416354905);
67
- b = this.ii(b, c, d, a, k[5], 21, -57434055);
68
- a = this.ii(a, b, c, d, k[12], 6, 1700485571);
69
- d = this.ii(d, a, b, c, k[3], 10, -1894986606);
70
- c = this.ii(c, d, a, b, k[10], 15, -1051523);
71
- b = this.ii(b, c, d, a, k[1], 21, -2054922799);
72
- a = this.ii(a, b, c, d, k[8], 6, 1873313359);
73
- d = this.ii(d, a, b, c, k[15], 10, -30611744);
74
- c = this.ii(c, d, a, b, k[6], 15, -1560198380);
75
- b = this.ii(b, c, d, a, k[13], 21, 1309151649);
76
- a = this.ii(a, b, c, d, k[4], 6, -145523070);
77
- d = this.ii(d, a, b, c, k[11], 10, -1120210379);
78
- c = this.ii(c, d, a, b, k[2], 15, 718787259);
79
- b = this.ii(b, c, d, a, k[9], 21, -343485551);
80
- x[0] = this.add32(a, x[0]);
81
- x[1] = this.add32(b, x[1]);
82
- x[2] = this.add32(c, x[2]);
83
- x[3] = this.add32(d, x[3]);
84
- }
85
- cmn(q, a, b, x, s, t) {
86
- a = this.add32(this.add32(a, q), this.add32(x, t));
87
- return this.add32((a << s) | (a >>> (32 - s)), b);
88
- }
89
- ff(a, b, c, d, x, s, t) {
90
- return this.cmn((b & c) | (~b & d), a, b, x, s, t);
91
- }
92
- gg(a, b, c, d, x, s, t) {
93
- return this.cmn((b & d) | (c & ~d), a, b, x, s, t);
94
- }
95
- hh(a, b, c, d, x, s, t) {
96
- return this.cmn(b ^ c ^ d, a, b, x, s, t);
97
- }
98
- ii(a, b, c, d, x, s, t) {
99
- return this.cmn(c ^ (b | ~d), a, b, x, s, t);
100
- }
101
- md51(s) {
102
- const n = s.length;
103
- const state = [1732584193, -271733879, -1732584194, 271733878];
104
- let i;
105
- for (i = 64; i <= s.length; i += 64) {
106
- this.md5cycle(state, this.md5blk(s.substring(i - 64, i)));
107
- }
108
- s = s.substring(i - 64);
109
- const tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
110
- for (i = 0; i < s.length; i++) {
111
- tail[i >> 2] |= s.charCodeAt(i) << (i % 4 << 3);
112
- }
113
- tail[i >> 2] |= 0x80 << (i % 4 << 3);
114
- if (i > 55) {
115
- this.md5cycle(state, tail);
116
- for (i = 0; i < 16; i++) {
117
- tail[i] = 0;
118
- }
119
- }
120
- tail[14] = n * 8;
121
- this.md5cycle(state, tail);
122
- return state;
123
- }
124
- /* there needs to be support for Unicode here, * unless we pretend that we can redefine the MD-5
125
- * algorithm for multi-byte characters (perhaps by adding every four 16-bit characters and
126
- * shortening the sum to 32 bits). Otherwise I suthis.ggest performing MD-5 as if every character
127
- * was two bytes--e.g., 0040 0025 = @%--but then how will an ordinary MD-5 sum be matched?
128
- * There is no way to standardize text to something like UTF-8 before transformation; speed cost is
129
- * utterly prohibitive. The JavaScript standard itself needs to look at this: it should start
130
- * providing access to strings as preformed UTF-8 8-bit unsigned value arrays.
131
- */
132
- md5blk(s) {
133
- const md5blks = [];
134
- for (let i = 0; i < 64; i += 4) {
135
- md5blks[i >> 2] =
136
- s.charCodeAt(i) +
137
- (s.charCodeAt(i + 1) << 8) +
138
- (s.charCodeAt(i + 2) << 16) +
139
- (s.charCodeAt(i + 3) << 24);
140
- }
141
- return md5blks;
142
- }
143
- rhex(n) {
144
- const hex_chr = "0123456789abcdef".split("");
145
- let s = "";
146
- let j = 0;
147
- for (; j < 4; j++) {
148
- s += hex_chr[(n >> (j * 8 + 4)) & 0x0f] + hex_chr[(n >> (j * 8)) & 0x0f];
149
- }
150
- return s;
151
- }
152
- hex(x) {
153
- for (let i = 0; i < x.length; i++) {
154
- x[i] = this.rhex(x[i]);
155
- }
156
- return x.join("");
157
- }
158
- md5(s) {
159
- return this.hex(this.md51(s));
160
- }
161
- add32(a, b) {
162
- return this.add32Std(a, b);
163
- }
164
- add32Std(a, b) {
165
- return (a + b) & 0xffffffff;
166
- }
167
- }
package/dist/license.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export function activateLicense(license: any): boolean;
2
- export let hasAValidLicense: boolean;
3
- export let licenseState: null;