@1771technologies/lytenyte-pro 1.0.14 → 1.0.16
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.
- package/dist/__play__/cell-selections/cell-selection.play.d.ts +5 -0
- package/dist/__play__/{grid-navigation/normal-layout.play.js → cell-selections/cell-selection.play.js} +32 -24
- package/dist/__play__/filter-select/filter-select.play.d.ts +4 -0
- package/dist/__play__/filter-select/filter-select.play.js +76 -0
- package/dist/__play__/test-utils/row-handler.js +6 -7
- package/dist/cell-selection/bound-selection-rect.js +1 -1
- package/dist/cell-selection/cell-selection-driver.js +12 -8
- package/dist/column-manager/branch.d.ts +1 -1
- package/dist/column-manager/branch.js +1 -1
- package/dist/column-manager/label.d.ts +1 -1
- package/dist/column-manager/label.js +1 -1
- package/dist/column-manager/leaf.js +1 -1
- package/dist/column-manager/move-handle.d.ts +1 -1
- package/dist/column-manager/move-handle.js +1 -2
- package/dist/column-manager/visibility-checkbox.d.ts +1 -1
- package/dist/column-manager/visibility-checkbox.js +1 -1
- package/dist/context.d.ts +2 -1
- package/dist/context.js +5 -4
- package/dist/filter-selects/apply.d.ts +7 -0
- package/dist/filter-selects/apply.js +22 -0
- package/dist/filter-selects/context.d.ts +12 -0
- package/dist/filter-selects/context.js +3 -0
- package/dist/filter-selects/filter-combinator.d.ts +10 -0
- package/dist/filter-selects/filter-combinator.js +19 -0
- package/dist/filter-selects/filter-row-context.d.ts +30 -0
- package/dist/filter-selects/filter-row-context.js +3 -0
- package/dist/filter-selects/filter-row.d.ts +13 -0
- package/dist/filter-selects/filter-row.js +118 -0
- package/dist/filter-selects/index.d.ts +20 -0
- package/dist/filter-selects/index.js +18 -0
- package/dist/filter-selects/is-complete-filter.d.ts +2 -0
- package/dist/filter-selects/is-complete-filter.js +5 -0
- package/dist/filter-selects/operator-select.d.ts +14 -0
- package/dist/filter-selects/operator-select.js +25 -0
- package/dist/filter-selects/options.d.ts +9 -0
- package/dist/filter-selects/options.js +100 -0
- package/dist/filter-selects/reset.d.ts +7 -0
- package/dist/filter-selects/reset.js +22 -0
- package/dist/filter-selects/root.d.ts +13 -0
- package/dist/filter-selects/root.js +5 -0
- package/dist/filter-selects/to-filter-item.d.ts +3 -0
- package/dist/filter-selects/to-filter-item.js +7 -0
- package/dist/filter-selects/use-filter-select.d.ts +37 -0
- package/dist/filter-selects/use-filter-select.js +158 -0
- package/dist/filter-selects/value-input.d.ts +12 -0
- package/dist/filter-selects/value-input.js +27 -0
- package/dist/filter-tree/branch.d.ts +1 -1
- package/dist/filter-tree/branch.js +1 -1
- package/dist/filter-tree/hooks/use-filter-tree.js +1 -1
- package/dist/filter-tree/inclusion-checkbox.d.ts +1 -1
- package/dist/filter-tree/inclusion-checkbox.js +1 -1
- package/dist/filter-tree/label.d.ts +1 -1
- package/dist/filter-tree/label.js +1 -1
- package/dist/filter-tree/root.d.ts +1 -1
- package/dist/filter-tree/root.js +1 -1
- package/dist/grid/cell.d.ts +6 -0
- package/dist/grid/cell.js +3 -0
- package/dist/grid/header-cell.d.ts +10 -0
- package/dist/grid/header-cell.js +3 -0
- package/dist/grid/header-group-cell.d.ts +6 -0
- package/dist/grid/header-group-cell.js +3 -0
- package/dist/grid/header-row.d.ts +5 -0
- package/dist/grid/header-row.js +2 -0
- package/dist/grid/header.d.ts +1 -0
- package/dist/grid/header.js +2 -0
- package/dist/{root → grid}/root.d.ts +1 -1
- package/dist/grid/root.js +37 -0
- package/dist/grid/row-full-width.d.ts +9 -0
- package/dist/grid/row-full-width.js +3 -0
- package/dist/grid/row.d.ts +8 -0
- package/dist/grid/row.js +3 -0
- package/dist/grid/rows-container.d.ts +1 -0
- package/dist/grid/rows-container.js +2 -0
- package/dist/grid/rows-sections.js +13 -0
- package/dist/grid/viewport.js +9 -0
- package/dist/grid-box/item.d.ts +1 -1
- package/dist/grid-box/item.js +1 -2
- package/dist/grid-box/panel.js +1 -1
- package/dist/grid-box/use-aggregation-box-items.js +1 -1
- package/dist/grid-box/use-column-box-items.js +1 -1
- package/dist/grid-box/use-row-group-box-items.js +1 -1
- package/dist/grid.d.ts +9 -9
- package/dist/grid.js +11 -11
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/license/index.d.ts +1 -0
- package/dist/license/index.js +1 -0
- package/dist/license/license.d.ts +3 -0
- package/dist/license/license.js +215 -0
- package/dist/license/md5-hash.d.ts +9 -0
- package/dist/license/md5-hash.js +167 -0
- package/dist/license.js +1 -1
- package/dist/listbox/item.js +1 -1
- package/dist/listbox/panel.js +2 -2
- package/dist/row-data-source-client/filter/compute-filtered-rows.js +1 -1
- package/dist/row-data-source-client/pivots/create-pivot-columns-from-paths.js +1 -1
- package/dist/row-data-source-client/use-client-data-source-paginated.js +3 -2
- package/dist/row-data-source-client/use-client-data-source.js +3 -2
- package/dist/row-data-source-client/use-client-tree-data-source.js +3 -2
- package/dist/row-data-source-server/server-data.js +1 -1
- package/dist/row-data-source-server/use-server-data-source.js +2 -2
- package/dist/sort-manager/hooks/use-sort-manager.js +2 -2
- package/dist/sort-manager/hooks/use-sort-row-item.js +1 -1
- package/dist/sort-manager/sort-add.d.ts +1 -1
- package/dist/sort-manager/sort-add.js +1 -1
- package/dist/sort-manager/sort-apply.d.ts +1 -1
- package/dist/sort-manager/sort-apply.js +2 -2
- package/dist/sort-manager/sort-cancel.d.ts +1 -1
- package/dist/sort-manager/sort-cancel.js +2 -2
- package/dist/sort-manager/sort-clear.d.ts +1 -1
- package/dist/sort-manager/sort-clear.js +1 -1
- package/dist/sort-manager/sort-column-select.d.ts +1 -1
- package/dist/sort-manager/sort-column-select.js +1 -1
- package/dist/sort-manager/sort-direction-select.d.ts +1 -1
- package/dist/sort-manager/sort-direction-select.js +1 -1
- package/dist/sort-manager/sort-remove.d.ts +1 -1
- package/dist/sort-manager/sort-remove.js +1 -1
- package/dist/sort-manager/sort-value-select.d.ts +1 -1
- package/dist/sort-manager/sort-value-select.js +1 -1
- package/dist/state/+types.d.ts +2 -1
- package/dist/state/api/column-field.js +1 -1
- package/dist/state/api/edit-begin.js +1 -1
- package/dist/state/api/focus-cell.js +1 -1
- package/dist/state/api/position-from-element.d.ts +5 -2
- package/dist/state/api/position-from-element.js +3 -3
- package/dist/state/api/row-handle-select.js +1 -1
- package/dist/state/api/use-row-drag.js +3 -2
- package/dist/state/helpers/column-add-row-group.js +1 -1
- package/dist/state/helpers/column-marker.js +1 -1
- package/dist/state/use-lytenyte.js +18 -3
- package/dist/tree-view/branch/branch.d.ts +1 -1
- package/dist/tree-view/branch/branch.js +1 -1
- package/dist/tree-view/branch/use-branch-keys.js +2 -2
- package/dist/tree-view/leaf.js +1 -1
- package/dist/tree-view/panel/make-handle-navigation.js +1 -1
- package/dist/tree-view/panel/make-handle-selection.js +1 -1
- package/dist/tree-view/panel/panel.js +2 -2
- package/dist/tree-view/panel/use-tree-navigation.js +1 -1
- package/dist/tree-view/root.js +1 -1
- package/dist/tree-view/utils/get-focusable-nodes.js +1 -1
- package/dist/tree-view/utils/get-focused-node.js +1 -1
- package/dist/tree-view/utils/get-sibling-branches.js +1 -1
- package/dist/tree-view/virtualized/use-row-start-and-end.d.ts +1 -1
- package/dist/tree-view/virtualized/use-row-start-and-end.js +1 -1
- package/dist/tree-view/virtualized/use-virtualized-tree.js +1 -1
- package/dist/types/types.d.ts +6 -6
- package/package.json +3 -7
- package/dist/__play__/grid-navigation/cell-spans-large.play.d.ts +0 -3
- package/dist/__play__/grid-navigation/cell-spans-large.play.js +0 -26
- package/dist/__play__/grid-navigation/cell-spans-with-pins.play.d.ts +0 -3
- package/dist/__play__/grid-navigation/cell-spans-with-pins.play.js +0 -27
- package/dist/__play__/grid-navigation/cell-spans.play.d.ts +0 -3
- package/dist/__play__/grid-navigation/cell-spans.play.js +0 -52
- package/dist/__play__/grid-navigation/cell-with-tabbables.play.d.ts +0 -3
- package/dist/__play__/grid-navigation/cell-with-tabbables.play.js +0 -47
- package/dist/__play__/grid-navigation/column-groups.play.d.ts +0 -3
- package/dist/__play__/grid-navigation/column-groups.play.js +0 -24
- package/dist/__play__/grid-navigation/full-width-rows.play.d.ts +0 -6
- package/dist/__play__/grid-navigation/full-width-rows.play.js +0 -67
- package/dist/__play__/grid-navigation/horizontal-navigation.pt.d.ts +0 -1
- package/dist/__play__/grid-navigation/horizontal-navigation.pt.js +0 -877
- package/dist/__play__/grid-navigation/normal-layout.play.d.ts +0 -10
- package/dist/__play__/grid-navigation/pinned-gap-layout.play.d.ts +0 -3
- package/dist/__play__/grid-navigation/pinned-gap-layout.play.js +0 -11
- package/dist/__play__/grid-navigation/row-detail-with-spans.play.d.ts +0 -6
- package/dist/__play__/grid-navigation/row-detail-with-spans.play.js +0 -79
- package/dist/__play__/grid-navigation/row-detail.play.d.ts +0 -6
- package/dist/__play__/grid-navigation/row-detail.play.js +0 -78
- package/dist/__play__/grid-navigation/row-detail.pt.d.ts +0 -1
- package/dist/__play__/grid-navigation/row-detail.pt.js +0 -68
- package/dist/__play__/grid-navigation/vertical-navigation.pt.d.ts +0 -1
- package/dist/__play__/grid-navigation/vertical-navigation.pt.js +0 -176
- package/dist/cells/+types.cell.d.ts +0 -13
- package/dist/cells/+types.cell.js +0 -1
- package/dist/cells/cell-default.d.ts +0 -2
- package/dist/cells/cell-default.js +0 -8
- package/dist/cells/cell-editor.d.ts +0 -6
- package/dist/cells/cell-editor.js +0 -110
- package/dist/cells/cell-spacer.d.ts +0 -9
- package/dist/cells/cell-spacer.js +0 -39
- package/dist/cells/cell.d.ts +0 -5
- package/dist/cells/cell.js +0 -44
- package/dist/cells/use-cell-style.d.ts +0 -3
- package/dist/cells/use-cell-style.js +0 -51
- package/dist/header/header-cell.d.ts +0 -10
- package/dist/header/header-cell.js +0 -22
- package/dist/header/header-group-cell.d.ts +0 -5
- package/dist/header/header-group-cell.js +0 -16
- package/dist/header/header-row.d.ts +0 -4
- package/dist/header/header-row.js +0 -10
- package/dist/header/header.d.ts +0 -1
- package/dist/header/header.js +0 -12
- package/dist/header/resize-handler.d.ts +0 -12
- package/dist/header/resize-handler.js +0 -136
- package/dist/header/use-drag-move.d.ts +0 -14
- package/dist/header/use-drag-move.js +0 -97
- package/dist/header/use-header-cell-renderer.d.ts +0 -4
- package/dist/header/use-header-cell-renderer.js +0 -37
- package/dist/root/root.js +0 -108
- package/dist/rows/row/context.d.ts +0 -15
- package/dist/rows/row/context.js +0 -14
- package/dist/rows/row/row.d.ts +0 -7
- package/dist/rows/row/row.js +0 -25
- package/dist/rows/row/use-row-context-value.d.ts +0 -6
- package/dist/rows/row/use-row-context-value.js +0 -45
- package/dist/rows/row-detail-row.d.ts +0 -4
- package/dist/rows/row-detail-row.js +0 -47
- package/dist/rows/row-full-width.d.ts +0 -8
- package/dist/rows/row-full-width.js +0 -19
- package/dist/rows/rows-container.d.ts +0 -1
- package/dist/rows/rows-container.js +0 -9
- package/dist/rows/rows-sections.js +0 -27
- package/dist/rows/scrollers/native-scroller.d.ts +0 -2
- package/dist/rows/scrollers/native-scroller.js +0 -4
- package/dist/utils/cycle-sorts.d.ts +0 -2
- package/dist/utils/cycle-sorts.js +0 -16
- package/dist/viewport/begin-editing.d.ts +0 -5
- package/dist/viewport/begin-editing.js +0 -15
- package/dist/viewport/viewport.js +0 -85
- /package/dist/{root → grid}/dialog-driver.d.ts +0 -0
- /package/dist/{root → grid}/dialog-driver.js +0 -0
- /package/dist/{root → grid}/popover-driver.d.ts +0 -0
- /package/dist/{root → grid}/popover-driver.js +0 -0
- /package/dist/{rows → grid}/rows-sections.d.ts +0 -0
- /package/dist/{viewport → grid}/viewport.d.ts +0 -0
|
@@ -0,0 +1,167 @@
|
|
|
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.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const hashSalt = "faec0f3c45281b1fe12d87e64a6c3271";
|
|
2
|
-
const issueDate = new Date("2025-
|
|
2
|
+
const issueDate = new Date("2025-10-05");
|
|
3
3
|
function getHostname() {
|
|
4
4
|
const win = globalThis?.document?.defaultView || (typeof window !== "undefined" ? window : null);
|
|
5
5
|
const loc = win?.location;
|
package/dist/listbox/item.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { useListboxContext } from "./context.js";
|
|
4
|
-
import { getTabbables } from "@1771technologies/lytenyte-
|
|
4
|
+
import { getTabbables } from "@1771technologies/lytenyte-shared";
|
|
5
5
|
export const Item = forwardRef(function Item(props, forwarded) {
|
|
6
6
|
const ctx = useListboxContext();
|
|
7
7
|
return (_jsx("div", { ...props, role: "option", onKeyDownCapture: (ev) => {
|
package/dist/listbox/panel.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useEffect, useState } from "react";
|
|
3
3
|
import { useListboxContext } from "./context.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { getTabbables } from "@1771technologies/lytenyte-shared";
|
|
5
|
+
import { useCombinedRefs } from "@1771technologies/lytenyte-core/yinternal";
|
|
6
6
|
export const Panel = forwardRef(function Panel(props, forwarded) {
|
|
7
7
|
const [ref, setRef] = useState();
|
|
8
8
|
const combinedRef = useCombinedRefs(setRef, forwarded);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { evaluateDateFilter, evaluateNumberFilter, evaluateStringFilter, getDateFilterSettings, getNumberFilterSettings, getStringFilterSettings, } from "@1771technologies/lytenyte-shared";
|
|
2
|
-
import { itemsWithIdToMap } from "@1771technologies/lytenyte-
|
|
2
|
+
import { itemsWithIdToMap } from "@1771technologies/lytenyte-shared";
|
|
3
3
|
export function computeFilteredRows(rows, grid, filterModel, filterInModel, quickSearch, sensitivity, isPivot) {
|
|
4
4
|
if (!grid)
|
|
5
5
|
return rows;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { upperCaseFirstLetter } from "@1771technologies/lytenyte-
|
|
1
|
+
import { upperCaseFirstLetter } from "@1771technologies/lytenyte-shared";
|
|
2
2
|
export function createColumnPivotsFromPaths(grid, columns, lookup, paths) {
|
|
3
3
|
const separator = grid.state.columnGroupJoinDelimiter.get();
|
|
4
4
|
const cols = paths.map((path) => {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {} from "../+types.js";
|
|
2
2
|
import { useRef } from "react";
|
|
3
3
|
import { traverse } from "./tree/traverse.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { dateComparator, numberComparator, stringComparator, } from "@1771technologies/lytenyte-shared";
|
|
5
|
+
import { computed, effect, makeAtom, peek, signal, } from "@1771technologies/lytenyte-core/yinternal";
|
|
6
|
+
import { clamp, equal, get } from "@1771technologies/lytenyte-shared";
|
|
6
7
|
import { makeClientTree } from "./tree/client-tree.js";
|
|
7
8
|
import { computeFilteredRows } from "./filter/compute-filtered-rows.js";
|
|
8
9
|
import { builtIns } from "./built-ins/built-ins.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {} from "../+types.js";
|
|
2
2
|
import { useRef } from "react";
|
|
3
3
|
import { traverse } from "./tree/traverse.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { dateComparator, numberComparator, stringComparator, } from "@1771technologies/lytenyte-shared";
|
|
5
|
+
import { computed, effect, makeAtom, peek, signal, } from "@1771technologies/lytenyte-core/yinternal";
|
|
6
|
+
import { equal, get, itemsWithIdToMap } from "@1771technologies/lytenyte-shared";
|
|
6
7
|
import { computeFilteredRows } from "./filter/compute-filtered-rows.js";
|
|
7
8
|
import { builtIns } from "./built-ins/built-ins.js";
|
|
8
9
|
import { createPivotColumns } from "./pivots/create-pivot-columns.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {} from "../+types.js";
|
|
2
2
|
import { useRef } from "react";
|
|
3
3
|
import { traverse } from "./tree/traverse.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { dateComparator, numberComparator, stringComparator, } from "@1771technologies/lytenyte-shared";
|
|
5
|
+
import { computed, effect, makeAtom, peek, signal, } from "@1771technologies/lytenyte-core/yinternal";
|
|
6
|
+
import { equal } from "@1771technologies/lytenyte-shared";
|
|
6
7
|
import { makeClientTree } from "./tree/client-tree.js";
|
|
7
8
|
import { computeFilteredRows } from "./filter/compute-filtered-rows.js";
|
|
8
9
|
import { builtIns } from "./built-ins/built-ins.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { equal } from "@1771technologies/lytenyte-
|
|
1
|
+
import { equal } from "@1771technologies/lytenyte-shared";
|
|
2
2
|
import { makeAsyncTree } from "./async-tree/make-async-tree.js";
|
|
3
3
|
import { RangeTree } from "./range-tree/range-tree.js";
|
|
4
4
|
import { getRequestId } from "./utils/get-request-id.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { effect, makeAtom, signal } from "@1771technologies/lytenyte-
|
|
1
|
+
import { effect, makeAtom, signal } from "@1771technologies/lytenyte-core/yinternal";
|
|
2
2
|
import { useRef } from "react";
|
|
3
3
|
import { ServerData } from "./server-data.js";
|
|
4
|
-
import { equal } from "@1771technologies/lytenyte-
|
|
4
|
+
import { equal } from "@1771technologies/lytenyte-shared";
|
|
5
5
|
export function makeServerDataSource({ dataFetcher, dataInFilterItemFetcher, dataColumnPivotFetcher, cellUpdateHandler, cellUpdateOptimistically, blockSize = 200, }) {
|
|
6
6
|
let grid = null;
|
|
7
7
|
let flat;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
2
|
import { sortModelToSortItems } from "../utils/sort-model-to-sort-items.js";
|
|
3
|
-
import { itemsWithIdToMap } from "@1771technologies/lytenyte-
|
|
3
|
+
import { itemsWithIdToMap } from "@1771technologies/lytenyte-shared";
|
|
4
4
|
import { useSortRowItems } from "./use-sort-row-item.js";
|
|
5
|
-
import { useEvent } from "@1771technologies/lytenyte-
|
|
5
|
+
import { useEvent } from "@1771technologies/lytenyte-core/yinternal";
|
|
6
6
|
export function useSortManager({ grid, pivotMode }) {
|
|
7
7
|
const statePivotMode = grid.state.columnPivotMode.useValue();
|
|
8
8
|
const mode = pivotMode ?? statePivotMode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import { useSortableColumnItems } from "./use-sortable-column-items.js";
|
|
3
|
-
import { itemsWithIdToMap } from "@1771technologies/lytenyte-
|
|
3
|
+
import { itemsWithIdToMap } from "@1771technologies/lytenyte-shared";
|
|
4
4
|
export function useSortRowItems(sortItems, setSortItems, grid, pivotMode) {
|
|
5
5
|
const columnItems = useSortableColumnItems(grid, pivotMode);
|
|
6
6
|
const pivotColumns = grid.state.columnPivotColumns.useValue();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
2
|
import { forwardRef } from "react";
|
|
4
3
|
import { useSortRowCtx } from "./context.js";
|
|
4
|
+
import { useSlot } from "@1771technologies/lytenyte-core/yinternal";
|
|
5
5
|
export const SortAdd = forwardRef(function SortAdd({ as: as, ...props }, forwarded) {
|
|
6
6
|
const row = useSortRowCtx();
|
|
7
7
|
const renderer = useSlot({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEvent, useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
2
|
import { forwardRef } from "react";
|
|
4
3
|
import { useSortManagerCtx } from "./context.js";
|
|
5
|
-
import { itemsWithIdToMap } from "@1771technologies/lytenyte-
|
|
4
|
+
import { itemsWithIdToMap } from "@1771technologies/lytenyte-shared";
|
|
6
5
|
import { sortItemsToSortModel } from "./utils/sort-item-to-sort-model.js";
|
|
6
|
+
import { useEvent, useSlot } from "@1771technologies/lytenyte-core/yinternal";
|
|
7
7
|
export const SortApply = forwardRef(function SortApply({ as, ...props }, forwarded) {
|
|
8
8
|
const ctx = useSortManagerCtx();
|
|
9
9
|
const onApply = useEvent(() => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEvent, useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
2
|
import { forwardRef } from "react";
|
|
4
3
|
import { useSortManagerCtx } from "./context.js";
|
|
5
4
|
import { sortModelToSortItems } from "./utils/sort-model-to-sort-items.js";
|
|
6
|
-
import { itemsWithIdToMap } from "@1771technologies/lytenyte-
|
|
5
|
+
import { itemsWithIdToMap } from "@1771technologies/lytenyte-shared";
|
|
6
|
+
import { useEvent, useSlot } from "@1771technologies/lytenyte-core/yinternal";
|
|
7
7
|
export const SortCancel = forwardRef(function SortCancel({ as, ...props }, forwarded) {
|
|
8
8
|
const ctx = useSortManagerCtx();
|
|
9
9
|
const onCancel = useEvent(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEvent, useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
2
|
import { forwardRef } from "react";
|
|
4
3
|
import { useSortManagerCtx } from "./context.js";
|
|
4
|
+
import { useEvent, useSlot } from "@1771technologies/lytenyte-core/yinternal";
|
|
5
5
|
export const SortClear = forwardRef(function SortClear({ as, ...props }, forwarded) {
|
|
6
6
|
const ctx = useSortManagerCtx();
|
|
7
7
|
const onClear = useEvent(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SlotComponent } from "@1771technologies/lytenyte-react-hooks";
|
|
2
1
|
import type { Option } from "./+types";
|
|
2
|
+
import { type SlotComponent } from "@1771technologies/lytenyte-core/yinternal";
|
|
3
3
|
export interface SortColumnSelectProps {
|
|
4
4
|
readonly as?: SlotComponent<{
|
|
5
5
|
options: Option[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
2
|
import { forwardRef } from "react";
|
|
4
3
|
import { useSortRowCtx } from "./context.js";
|
|
4
|
+
import { useSlot } from "@1771technologies/lytenyte-core/yinternal";
|
|
5
5
|
export const SortColumnSelect = forwardRef(function SortColumnSelect({ as, ...props }, forwarded) {
|
|
6
6
|
const row = useSortRowCtx();
|
|
7
7
|
const el = (_jsxs("select", { "aria-label": "Select column to sort", value: row.columnItem?.value ?? "", onChange: (e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SlotComponent } from "@1771technologies/lytenyte-react-hooks";
|
|
2
1
|
import type { Option } from "./+types";
|
|
2
|
+
import { type SlotComponent } from "@1771technologies/lytenyte-core/yinternal";
|
|
3
3
|
export interface SortDirectionSelectProps {
|
|
4
4
|
readonly as?: SlotComponent<{
|
|
5
5
|
options: Option[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
2
|
import { forwardRef } from "react";
|
|
4
3
|
import { useSortRowCtx } from "./context.js";
|
|
4
|
+
import { useSlot } from "@1771technologies/lytenyte-core/yinternal";
|
|
5
5
|
export const SortDirectionSelect = forwardRef(function SortDirectionSelect({ as, ...props }, forwarded) {
|
|
6
6
|
const row = useSortRowCtx();
|
|
7
7
|
const el = (_jsx("select", { "aria-label": "Select sort direction", value: row.sortDirectionSelected?.value ?? "", onChange: (e) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
2
|
import { forwardRef } from "react";
|
|
4
3
|
import { useSortRowCtx } from "./context.js";
|
|
4
|
+
import { useSlot } from "@1771technologies/lytenyte-core/yinternal";
|
|
5
5
|
export const SortRemove = forwardRef(function SortRemove({ as, ...props }, forwarded) {
|
|
6
6
|
const row = useSortRowCtx();
|
|
7
7
|
const renderer = useSlot({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SlotComponent } from "@1771technologies/lytenyte-react-hooks";
|
|
2
1
|
import type { Option } from "./+types";
|
|
2
|
+
import { type SlotComponent } from "@1771technologies/lytenyte-core/yinternal";
|
|
3
3
|
export interface SortValueSelectProps {
|
|
4
4
|
readonly as?: SlotComponent<{
|
|
5
5
|
options: Option[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
2
|
import { forwardRef } from "react";
|
|
4
3
|
import { useSortRowCtx } from "./context.js";
|
|
4
|
+
import { useSlot } from "@1771technologies/lytenyte-core/yinternal";
|
|
5
5
|
export const SortValueSelect = forwardRef(function SortValueSelect({ as, ...props }, forwarded) {
|
|
6
6
|
const row = useSortRowCtx();
|
|
7
7
|
const el = (_jsxs("select", { "aria-label": "Select sort value", value: row.sortSelected?.value ?? "", onChange: (e) => {
|
package/dist/state/+types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { LayoutState
|
|
1
|
+
import type { LayoutState } from "@1771technologies/lytenyte-shared";
|
|
2
2
|
import type { Column, EditActivePosition, GridAtom, GridAtomReadonly, HeaderGroupCellLayout, PositionUnion, VirtualTarget } from "../+types";
|
|
3
3
|
import type { DataRectSplit } from "../cell-selection/split-cell-selection-rect";
|
|
4
|
+
import type { WriteSignal } from "@1771technologies/lytenyte-core/yinternal";
|
|
4
5
|
export interface InternalAtoms {
|
|
5
6
|
readonly headerRows: GridAtomReadonly<number>;
|
|
6
7
|
readonly headerCols: GridAtomReadonly<number>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { focusCell } from "@1771technologies/lytenyte-shared";
|
|
2
|
-
import { runWithBackoff } from "@1771technologies/lytenyte-
|
|
2
|
+
import { runWithBackoff } from "@1771technologies/lytenyte-shared";
|
|
3
3
|
import { editOnChange } from "../helpers/edit-on-change.js";
|
|
4
4
|
export const makeEditBegin = (grid) => {
|
|
5
5
|
return (params) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { focusCell, getHeaderRows, handleNavigation, isColumnFloatingHeader, } from "@1771technologies/lytenyte-shared";
|
|
2
|
-
import { clamp } from "@1771technologies/lytenyte-
|
|
2
|
+
import { clamp } from "@1771technologies/lytenyte-shared";
|
|
3
3
|
export const makeFocusCell = (grid) => {
|
|
4
4
|
return (position) => {
|
|
5
5
|
const vp = grid.state.viewport.get();
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import type { GridApi } from "../../+types";
|
|
2
|
-
|
|
1
|
+
import type { Grid, GridApi } from "../../+types";
|
|
2
|
+
import type { InternalAtoms } from "../+types";
|
|
3
|
+
export declare const makePositionFromElement: (grid: Grid<any> & {
|
|
4
|
+
internal: InternalAtoms;
|
|
5
|
+
}) => GridApi<any>["positionFromElement"];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getNearestFocusable, getPositionFromFocusable } from "@1771technologies/lytenyte-shared";
|
|
2
|
-
export const makePositionFromElement = () => {
|
|
2
|
+
export const makePositionFromElement = (grid) => {
|
|
3
3
|
return (el) => {
|
|
4
|
-
const focusable = getNearestFocusable(el);
|
|
4
|
+
const focusable = getNearestFocusable(grid.state.gridId.get(), el);
|
|
5
5
|
if (!focusable)
|
|
6
6
|
return null;
|
|
7
|
-
return getPositionFromFocusable(focusable);
|
|
7
|
+
return getPositionFromFocusable(focusable, grid.state.gridId.get());
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -4,7 +4,7 @@ export const makeRowHandleSelect = (grid) => {
|
|
|
4
4
|
const mode = grid.state.rowSelectionMode.get();
|
|
5
5
|
if (mode === "none")
|
|
6
6
|
return;
|
|
7
|
-
const rowEl = getNearestRow(e.target);
|
|
7
|
+
const rowEl = getNearestRow(grid.state.gridId.get(), e.target);
|
|
8
8
|
if (!rowEl)
|
|
9
9
|
return;
|
|
10
10
|
const row = grid.api.rowByIndex(getRowIndexFromEl(rowEl));
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { getNearestRow, getRowIndexFromEl
|
|
1
|
+
import { getNearestRow, getRowIndexFromEl } from "@1771technologies/lytenyte-shared";
|
|
2
|
+
import { useDraggable } from "@1771technologies/lytenyte-core/yinternal";
|
|
2
3
|
export const makeUseRowDrag = (grid) => {
|
|
3
4
|
return (params) => {
|
|
4
5
|
const c = useDraggable({
|
|
5
6
|
...params,
|
|
6
7
|
getItems: (el) => {
|
|
7
|
-
const nearestRow = getNearestRow(el);
|
|
8
|
+
const nearestRow = getNearestRow(grid.state.gridId.get(), el);
|
|
8
9
|
if (!nearestRow)
|
|
9
10
|
return {};
|
|
10
11
|
const rowIndex = getRowIndexFromEl(nearestRow);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GROUP_COLUMN_MULTI_PREFIX, GROUP_COLUMN_PREFIX, GROUP_COLUMN_SINGLE_ID, } from "@1771technologies/lytenyte-shared";
|
|
2
|
-
import { itemsWithIdToMap } from "@1771technologies/lytenyte-
|
|
2
|
+
import { itemsWithIdToMap } from "@1771technologies/lytenyte-shared";
|
|
3
3
|
import { CellRowGroup } from "./cell-row-group.js";
|
|
4
4
|
const baseGroup = {
|
|
5
5
|
name: "Group",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { COLUMN_MARKER_ID } from "@1771technologies/lytenyte-shared";
|
|
3
|
-
import { itemsWithIdToMap } from "@1771technologies/lytenyte-
|
|
3
|
+
import { itemsWithIdToMap } from "@1771technologies/lytenyte-shared";
|
|
4
4
|
export function columnHandleMarker({ columns, marker, markerEnabled, }) {
|
|
5
5
|
const lookup = itemsWithIdToMap(columns);
|
|
6
6
|
if (markerEnabled && !lookup.has(COLUMN_MARKER_ID)) {
|