impact-nova 2.5.13 → 2.5.14
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/components/data/data-table/build-column-tree-from-grid.d.ts +0 -1
- package/dist/components/data/data-table/build-column-tree-from-grid.js +50 -55
- package/dist/components/data/data-table/data-table-column-apply.d.ts +0 -2
- package/dist/components/data/data-table/data-table-column-apply.js +73 -84
- package/dist/components/data/data-table/data-table-column-list.js +64 -94
- package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +6 -12
- package/dist/components/data/data-table/data-table-column-tree-cache.js +131 -250
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.d.ts +0 -5
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.js +11 -28
- package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +0 -10
- package/dist/components/data/data-table/use-data-table-column-list-sync.js +196 -250
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- package/dist/components/data/nested-list/components/NestedListContent.d.ts +2 -10
- package/dist/components/data/nested-list/components/NestedListContent.js +138 -253
- package/dist/components/data/nested-list/components/SortableItem.d.ts +1 -2
- package/dist/components/data/nested-list/components/SortableItem.js +60 -62
- package/dist/components/data/nested-list/hooks/useNestedListDragDrop.d.ts +20 -10
- package/dist/components/data/nested-list/hooks/useNestedListDragDrop.js +233 -44
- package/dist/components/data/nested-list/nested-list-constants.d.ts +1 -4
- package/dist/components/data/nested-list/nested-list-constants.js +4 -10
- package/dist/components/data/nested-list/nested-list.js +336 -322
- package/dist/components/data/nested-list/nested-list.types.d.ts +0 -17
- package/dist/components/data-display/calendar/calendar-apply-validation.d.ts +2 -0
- package/dist/components/data-display/calendar/calendar-apply-validation.js +64 -67
- package/dist/components/data-display/calendar/calendar-available-view.d.ts +27 -0
- package/dist/components/data-display/calendar/calendar-available-view.js +85 -0
- package/dist/components/data-display/calendar/calendar-config.js +1 -1
- package/dist/components/data-display/calendar/calendar-day-picker-components.d.ts +4 -2
- package/dist/components/data-display/calendar/calendar-day-picker-components.js +234 -164
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +77 -76
- package/dist/components/data-display/calendar/calendar-fiscal-day-cell.d.ts +9 -0
- package/dist/components/data-display/calendar/calendar-fiscal-day-cell.js +45 -0
- package/dist/components/data-display/calendar/calendar-fiscal-period-nav.d.ts +6 -0
- package/dist/components/data-display/calendar/calendar-fiscal-period-nav.js +34 -18
- package/dist/components/data-display/calendar/calendar-footer.js +21 -21
- package/dist/components/data-display/calendar/calendar-injected-week-row.d.ts +5 -0
- package/dist/components/data-display/calendar/calendar-injected-week-row.js +92 -0
- package/dist/components/data-display/calendar/calendar-leading-week.utils.d.ts +16 -0
- package/dist/components/data-display/calendar/calendar-leading-week.utils.js +51 -0
- package/dist/components/data-display/calendar/calendar-month-picker-panel.js +50 -49
- package/dist/components/data-display/calendar/calendar-month-utils.d.ts +5 -0
- package/dist/components/data-display/calendar/calendar-month-utils.js +85 -64
- package/dist/components/data-display/calendar/calendar-orphan-week.d.ts +23 -0
- package/dist/components/data-display/calendar/calendar-padding-week.utils.d.ts +3 -1
- package/dist/components/data-display/calendar/calendar-padding-week.utils.js +7 -5
- package/dist/components/data-display/calendar/calendar-period-cell.js +45 -46
- package/dist/components/data-display/calendar/calendar-quarter-panes.js +33 -31
- package/dist/components/data-display/calendar/calendar-selection-appearance.d.ts +10 -0
- package/dist/components/data-display/calendar/calendar-selection-appearance.js +53 -39
- package/dist/components/data-display/calendar/calendar-selection.d.ts +25 -0
- package/dist/components/data-display/calendar/calendar-selection.js +52 -23
- package/dist/components/data-display/calendar/calendar-week-number-cell.d.ts +2 -1
- package/dist/components/data-display/calendar/calendar-week-number-cell.js +59 -45
- package/dist/components/data-display/calendar/calendar-week-utils.d.ts +15 -4
- package/dist/components/data-display/calendar/calendar-week-utils.js +59 -50
- package/dist/components/data-display/calendar/calendar-year-panes.d.ts +3 -0
- package/dist/components/data-display/calendar/calendar-year-panes.js +53 -49
- package/dist/components/data-display/calendar/calendar.js +146 -143
- package/dist/components/data-display/calendar/calendar.types.d.ts +5 -0
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.d.ts +2 -1
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.js +79 -74
- package/dist/components/data-display/calendar/use-calendar-state.d.ts +3 -1
- package/dist/components/data-display/calendar/use-calendar-state.js +394 -314
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/forms/date-picker/date-picker.js +60 -58
- package/dist/components/forms/date-picker/date-picker.types.d.ts +5 -0
- package/dist/components/forms/date-picker/date-range-picker.js +66 -64
- package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +1 -0
- package/dist/components/forms/date-picker/fiscal-pass-through.js +3 -2
- package/dist/components/forms/date-picker/fiscal-picker-fixtures.d.ts +17 -0
- package/dist/components/forms/date-picker/month-picker.js +61 -59
- package/dist/components/forms/date-picker/month-range-picker.js +63 -61
- package/dist/components/forms/date-picker/multi-date-picker.js +51 -49
- package/dist/components/forms/date-picker/multi-month-picker.js +49 -47
- package/dist/components/forms/date-picker/multi-quarter-picker.js +51 -47
- package/dist/components/forms/date-picker/multi-week-picker.js +53 -51
- package/dist/components/forms/date-picker/multi-year-picker.js +53 -49
- package/dist/components/forms/date-picker/quarter-picker.js +51 -47
- package/dist/components/forms/date-picker/quarter-range-picker.js +50 -46
- package/dist/components/forms/date-picker/week-picker.js +130 -126
- package/dist/components/forms/date-picker/week-range-picker.js +159 -155
- package/dist/components/forms/date-picker/year-picker.js +52 -48
- package/dist/components/forms/date-picker/year-range-picker.js +52 -48
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- package/dist/form-react/Fields/DateInputField.js +51 -50
- package/dist/form-react/Fields/DateRangeField.js +14 -13
- package/dist/form-react/Fields/MonthRangeField.js +29 -28
- package/dist/form-react/Fields/MultiMonthPickerField.js +13 -12
- package/dist/form-react/Fields/MultiWeekPickerField.js +35 -27
- package/dist/form-react/Fields/MultiYearPickerField.d.ts +8 -0
- package/dist/form-react/Fields/MultiYearPickerField.js +57 -0
- package/dist/form-react/Fields/WeekRangePicker.js +33 -32
- package/dist/form-react/Fields/YearPickerField.d.ts +8 -0
- package/dist/form-react/Fields/YearPickerField.js +57 -0
- package/dist/form-react/Fields/YearRangePickerField.d.ts +8 -0
- package/dist/form-react/Fields/YearRangePickerField.js +57 -0
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +16 -13
- package/dist/form-react/types/fields.types.d.ts +69 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +8 -2
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/impact-nova-components.css +13 -6
- package/dist/impact-nova.css +1 -1
- package/dist/lib/fiscal-calendar/index.d.ts +2 -2
- package/dist/lib/fiscal-calendar/index.js +26 -28
- package/dist/lib/fiscal-calendar/types.d.ts +0 -7
- package/dist/lib/fiscal-calendar/week-selection.d.ts +3 -4
- package/dist/lib/fiscal-calendar/week-selection.js +52 -79
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
- package/dist/components/data/data-table/column-picker-authority.d.ts +0 -34
- package/dist/components/data/data-table/column-picker-authority.js +0 -116
- package/dist/components/data/data-table/column-picker-drop-validation.d.ts +0 -7
- package/dist/components/data/data-table/column-picker-drop-validation.js +0 -37
- package/dist/components/data/data-table/data-table-column-list-tree-apply.d.ts +0 -10
- package/dist/components/data/data-table/data-table-column-list-tree-apply.js +0 -79
- package/dist/components/data/data-table/data-table-flat-column-virtual-rows.d.ts +0 -26
- package/dist/components/data/data-table/data-table-flat-column-virtual-rows.js +0 -195
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +0 -1
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +0 -7
- package/dist/components/data/data-table/reconcile-column-tree-from-grid.d.ts +0 -12
- package/dist/components/data/data-table/reconcile-column-tree-from-grid.js +0 -12
- package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.d.ts +0 -24
- package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.js +0 -128
- package/dist/components/data/nested-list/nested-list-display-utils.d.ts +0 -11
- package/dist/components/data/nested-list/nested-list-display-utils.js +0 -74
- package/dist/components/data/nested-list/nested-list-drop-engine.d.ts +0 -31
- package/dist/components/data/nested-list/nested-list-drop-engine.js +0 -209
- package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.d.ts +0 -26
- package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.js +0 -67
- package/dist/components/data/nested-list/nested-list-item-tree-mutations.d.ts +0 -4
- package/dist/components/data/nested-list/nested-list-item-tree-mutations.js +0 -43
- package/dist/components/data/nested-list/nested-list-lazy-flat-rows.d.ts +0 -3
- package/dist/components/data/nested-list/nested-list-lazy-flat-rows.js +0 -34
- package/dist/components/data/nested-list/nested-list-row-estimates.d.ts +0 -9
- package/dist/components/data/nested-list/nested-list-row-estimates.js +0 -14
- package/dist/components/data/nested-list/nested-list-scroll-anchor.d.ts +0 -36
- package/dist/components/data/nested-list/nested-list-scroll-anchor.js +0 -47
- package/dist/components/data/nested-list/nested-list-virtual-drop.d.ts +0 -59
- package/dist/components/data/nested-list/nested-list-virtual-drop.js +0 -341
- package/dist/lib/hash/fnv1a128.d.ts +0 -16
- package/dist/lib/hash/fnv1a128.js +0 -21
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
import { getSectionIdFromDroppable as w } from "./nested-list-drop-engine.js";
|
|
2
|
-
import { NESTED_LIST_SECTION_IDS as p } from "./nested-list-constants.js";
|
|
3
|
-
function z(t, e) {
|
|
4
|
-
for (let n = e + 1; n < t.length; n += 1) {
|
|
5
|
-
const r = t[n];
|
|
6
|
-
if (p.has(r.item.id))
|
|
7
|
-
return !1;
|
|
8
|
-
if (r.item.category !== "structure")
|
|
9
|
-
return !0;
|
|
10
|
-
}
|
|
11
|
-
return !1;
|
|
12
|
-
}
|
|
13
|
-
function A(t, e) {
|
|
14
|
-
const n = t.findIndex((o) => o.item.id === e);
|
|
15
|
-
if (n === -1)
|
|
16
|
-
return null;
|
|
17
|
-
if (!z(t, n))
|
|
18
|
-
return { overId: `droppable-${e}`, insertAfter: !1 };
|
|
19
|
-
for (let o = n + 1; o < t.length; o += 1) {
|
|
20
|
-
const i = t[o];
|
|
21
|
-
if (p.has(i.item.id))
|
|
22
|
-
break;
|
|
23
|
-
if (i.item.category !== "structure")
|
|
24
|
-
return { overId: i.item.id, insertAfter: !1 };
|
|
25
|
-
}
|
|
26
|
-
const r = t.slice(0, n).filter(
|
|
27
|
-
(o) => !p.has(o.item.id)
|
|
28
|
-
);
|
|
29
|
-
return r.length > 0 ? {
|
|
30
|
-
overId: r[r.length - 1].item.id,
|
|
31
|
-
insertAfter: !0
|
|
32
|
-
} : null;
|
|
33
|
-
}
|
|
34
|
-
function M(t, e) {
|
|
35
|
-
const n = t[e].level;
|
|
36
|
-
for (let r = e + 1; r < t.length; r += 1) {
|
|
37
|
-
const o = t[r];
|
|
38
|
-
if (o.level <= n)
|
|
39
|
-
return !1;
|
|
40
|
-
if (o.item.category !== "structure")
|
|
41
|
-
return !0;
|
|
42
|
-
}
|
|
43
|
-
return !1;
|
|
44
|
-
}
|
|
45
|
-
function R(t, e, n, r = {}) {
|
|
46
|
-
if (!n)
|
|
47
|
-
return { overId: e, insertAfter: n };
|
|
48
|
-
if (r[e] === !0)
|
|
49
|
-
return { overId: e, insertAfter: !0 };
|
|
50
|
-
const o = t.findIndex((s) => s.item.id === e);
|
|
51
|
-
if (o === -1 || !M(t, o))
|
|
52
|
-
return { overId: e, insertAfter: n };
|
|
53
|
-
const i = t[o].level;
|
|
54
|
-
for (let s = o + 1; s < t.length; s += 1) {
|
|
55
|
-
const l = t[s];
|
|
56
|
-
if (l.level <= i)
|
|
57
|
-
break;
|
|
58
|
-
if (l.item.category !== "structure")
|
|
59
|
-
return { overId: l.item.id, insertAfter: !1 };
|
|
60
|
-
}
|
|
61
|
-
return { overId: e, insertAfter: !0 };
|
|
62
|
-
}
|
|
63
|
-
function y(t, e, n) {
|
|
64
|
-
const r = document.elementFromPoint(t, e);
|
|
65
|
-
if (!r || !n.contains(r))
|
|
66
|
-
return null;
|
|
67
|
-
const o = r.closest("[data-section-droppable]");
|
|
68
|
-
if (!(o instanceof HTMLElement) || !n.contains(o))
|
|
69
|
-
return null;
|
|
70
|
-
const i = o.getAttribute("data-section-droppable");
|
|
71
|
-
return !i || !p.has(i) ? null : `droppable-${i}`;
|
|
72
|
-
}
|
|
73
|
-
function D(t, e, n, r) {
|
|
74
|
-
if (e <= 0)
|
|
75
|
-
return 0;
|
|
76
|
-
let o = 0, i = e - 1;
|
|
77
|
-
for (; o < i; ) {
|
|
78
|
-
const s = Math.floor((o + i) / 2), l = n(s), u = Math.max(r(s), 1), f = l + u;
|
|
79
|
-
if (t < l)
|
|
80
|
-
i = s - 1;
|
|
81
|
-
else if (t >= f)
|
|
82
|
-
o = s + 1;
|
|
83
|
-
else
|
|
84
|
-
return s;
|
|
85
|
-
}
|
|
86
|
-
return Math.max(0, Math.min(o, e - 1));
|
|
87
|
-
}
|
|
88
|
-
function E(t, e, n, r, o, i) {
|
|
89
|
-
const s = e.querySelector(`[data-index="${r}"]`);
|
|
90
|
-
if (s instanceof HTMLElement) {
|
|
91
|
-
const c = s.getBoundingClientRect(), d = c.top + c.height / 2;
|
|
92
|
-
return t >= d;
|
|
93
|
-
}
|
|
94
|
-
const l = e.querySelector(`[data-item-id="${n}"]`);
|
|
95
|
-
if (l instanceof HTMLElement) {
|
|
96
|
-
const c = l.getBoundingClientRect(), d = c.top + c.height / 2;
|
|
97
|
-
return t >= d;
|
|
98
|
-
}
|
|
99
|
-
const f = e.getBoundingClientRect().top + o(r) - e.scrollTop, h = i(r), a = f + h / 2;
|
|
100
|
-
return t >= a;
|
|
101
|
-
}
|
|
102
|
-
function O(t) {
|
|
103
|
-
let e = 0;
|
|
104
|
-
for (let n = 0; n < t.measurementsCache.length; n += 1)
|
|
105
|
-
e = e * 31 + t.measurementsCache[n].size | 0;
|
|
106
|
-
return e;
|
|
107
|
-
}
|
|
108
|
-
function H(t, e, n, r) {
|
|
109
|
-
const o = e.measurementsCache.some(
|
|
110
|
-
(u) => u.size > 0
|
|
111
|
-
), i = O(e), s = r?.current;
|
|
112
|
-
if (s && s.rowCount === t && s.measurementFingerprint === i)
|
|
113
|
-
return {
|
|
114
|
-
offsets: s.offsets,
|
|
115
|
-
sizes: s.sizes
|
|
116
|
-
};
|
|
117
|
-
const l = o ? L(e, t, n) : C(t, n);
|
|
118
|
-
return r && (r.current = {
|
|
119
|
-
rowCount: t,
|
|
120
|
-
measurementFingerprint: i,
|
|
121
|
-
offsets: l.offsets,
|
|
122
|
-
sizes: l.sizes
|
|
123
|
-
}), l;
|
|
124
|
-
}
|
|
125
|
-
function C(t, e) {
|
|
126
|
-
const n = new Array(t), r = new Array(t);
|
|
127
|
-
let o = 0;
|
|
128
|
-
for (let i = 0; i < t; i += 1) {
|
|
129
|
-
const s = e(i);
|
|
130
|
-
n[i] = o, r[i] = s, o += s;
|
|
131
|
-
}
|
|
132
|
-
return { offsets: n, sizes: r };
|
|
133
|
-
}
|
|
134
|
-
function L(t, e, n) {
|
|
135
|
-
const r = t.measurementsCache, o = new Array(e), i = new Array(e);
|
|
136
|
-
let s = 0;
|
|
137
|
-
for (let l = 0; l < e; l += 1) {
|
|
138
|
-
const u = r[l]?.size, f = u && u > 0 ? u : n(l);
|
|
139
|
-
o[l] = s, i[l] = f, s += f;
|
|
140
|
-
}
|
|
141
|
-
return { offsets: o, sizes: i };
|
|
142
|
-
}
|
|
143
|
-
function B(t) {
|
|
144
|
-
for (let e = t.length - 1; e >= 0; e -= 1) {
|
|
145
|
-
const n = t[e];
|
|
146
|
-
if (!(!n || p.has(n.item.id)) && n.item.category !== "structure")
|
|
147
|
-
return e;
|
|
148
|
-
}
|
|
149
|
-
return Math.max(0, t.length - 1);
|
|
150
|
-
}
|
|
151
|
-
function V(t, e, n) {
|
|
152
|
-
const r = document.elementFromPoint(t, e);
|
|
153
|
-
if (!r || !n.contains(r) || r.closest('[data-slot="drag-drop-tail"]'))
|
|
154
|
-
return null;
|
|
155
|
-
const o = r.closest("[data-index]");
|
|
156
|
-
if (!(o instanceof HTMLElement) || !n.contains(o))
|
|
157
|
-
return null;
|
|
158
|
-
const i = Number(o.getAttribute("data-index"));
|
|
159
|
-
return Number.isFinite(i) ? i : null;
|
|
160
|
-
}
|
|
161
|
-
function P(t, e, n, r) {
|
|
162
|
-
const o = r.getTotalSize();
|
|
163
|
-
if (o > 0)
|
|
164
|
-
return o;
|
|
165
|
-
if (t <= 0)
|
|
166
|
-
return 0;
|
|
167
|
-
const i = t - 1;
|
|
168
|
-
return e(i) + n(i);
|
|
169
|
-
}
|
|
170
|
-
function N(t, e, n, r) {
|
|
171
|
-
if (document.elementFromPoint(t, e)?.closest('[data-slot="drag-drop-tail"]'))
|
|
172
|
-
return !0;
|
|
173
|
-
const i = n.getBoundingClientRect();
|
|
174
|
-
return e - i.top + n.scrollTop >= r;
|
|
175
|
-
}
|
|
176
|
-
function v(t) {
|
|
177
|
-
const {
|
|
178
|
-
clientY: e,
|
|
179
|
-
scrollElement: n,
|
|
180
|
-
items: r,
|
|
181
|
-
flatIndex: o,
|
|
182
|
-
getRowOffset: i,
|
|
183
|
-
getRowSize: s,
|
|
184
|
-
forceInsertAfter: l = !1,
|
|
185
|
-
collapsedItems: u = {}
|
|
186
|
-
} = t, f = Math.max(0, Math.min(o, r.length - 1)), h = r[f];
|
|
187
|
-
if (!h)
|
|
188
|
-
return null;
|
|
189
|
-
let a = h.item.id, c = l || E(
|
|
190
|
-
e,
|
|
191
|
-
n,
|
|
192
|
-
a,
|
|
193
|
-
f,
|
|
194
|
-
i,
|
|
195
|
-
s
|
|
196
|
-
), d = f;
|
|
197
|
-
if (p.has(a)) {
|
|
198
|
-
const g = A(r, a);
|
|
199
|
-
if (!g)
|
|
200
|
-
return null;
|
|
201
|
-
a = g.overId, c = g.insertAfter;
|
|
202
|
-
const I = r.findIndex((x) => x.item.id === a);
|
|
203
|
-
d = I === -1 ? f : I;
|
|
204
|
-
} else if (h.item.category === "group") {
|
|
205
|
-
const g = R(
|
|
206
|
-
r,
|
|
207
|
-
a,
|
|
208
|
-
c,
|
|
209
|
-
u
|
|
210
|
-
);
|
|
211
|
-
a = g.overId, c = g.insertAfter;
|
|
212
|
-
const I = r.findIndex((x) => x.item.id === a);
|
|
213
|
-
d = I === -1 ? f : I;
|
|
214
|
-
}
|
|
215
|
-
return {
|
|
216
|
-
overId: a,
|
|
217
|
-
insertAfter: c,
|
|
218
|
-
flatIndex: d
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
function _(t) {
|
|
222
|
-
const {
|
|
223
|
-
clientX: e,
|
|
224
|
-
clientY: n,
|
|
225
|
-
scrollElement: r,
|
|
226
|
-
items: o,
|
|
227
|
-
virtualizer: i,
|
|
228
|
-
estimateRowSize: s,
|
|
229
|
-
offsetCacheHolder: l,
|
|
230
|
-
collapsedItems: u = {}
|
|
231
|
-
} = t;
|
|
232
|
-
if (o.length === 0)
|
|
233
|
-
return null;
|
|
234
|
-
const f = y(
|
|
235
|
-
e,
|
|
236
|
-
n,
|
|
237
|
-
r
|
|
238
|
-
);
|
|
239
|
-
if (f) {
|
|
240
|
-
const m = w(f), S = m ? o.findIndex((b) => b.item.id === m) : -1;
|
|
241
|
-
return {
|
|
242
|
-
overId: f,
|
|
243
|
-
insertAfter: !1,
|
|
244
|
-
flatIndex: S === -1 ? 0 : S
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
const { offsets: h, sizes: a } = H(
|
|
248
|
-
o.length,
|
|
249
|
-
i,
|
|
250
|
-
s,
|
|
251
|
-
l
|
|
252
|
-
), c = (m) => h[m] ?? 0, d = (m) => a[m] ?? s(m), g = P(
|
|
253
|
-
o.length,
|
|
254
|
-
c,
|
|
255
|
-
d,
|
|
256
|
-
i
|
|
257
|
-
);
|
|
258
|
-
if (N(e, n, r, g)) {
|
|
259
|
-
const m = B(o);
|
|
260
|
-
return v({
|
|
261
|
-
clientY: n,
|
|
262
|
-
scrollElement: r,
|
|
263
|
-
items: o,
|
|
264
|
-
flatIndex: m,
|
|
265
|
-
getRowOffset: c,
|
|
266
|
-
getRowSize: d,
|
|
267
|
-
forceInsertAfter: !0,
|
|
268
|
-
collapsedItems: u
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
const I = V(e, n, r);
|
|
272
|
-
if (I !== null)
|
|
273
|
-
return v({
|
|
274
|
-
clientY: n,
|
|
275
|
-
scrollElement: r,
|
|
276
|
-
items: o,
|
|
277
|
-
flatIndex: I,
|
|
278
|
-
getRowOffset: c,
|
|
279
|
-
getRowSize: d,
|
|
280
|
-
collapsedItems: u
|
|
281
|
-
});
|
|
282
|
-
const x = r.getBoundingClientRect(), F = n - x.top + r.scrollTop, T = D(
|
|
283
|
-
F,
|
|
284
|
-
o.length,
|
|
285
|
-
c,
|
|
286
|
-
d
|
|
287
|
-
);
|
|
288
|
-
return v({
|
|
289
|
-
clientY: n,
|
|
290
|
-
scrollElement: r,
|
|
291
|
-
items: o,
|
|
292
|
-
flatIndex: T,
|
|
293
|
-
getRowOffset: c,
|
|
294
|
-
getRowSize: d,
|
|
295
|
-
collapsedItems: u
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
function k(t, e) {
|
|
299
|
-
const n = w(e.overId);
|
|
300
|
-
if (n) {
|
|
301
|
-
const o = t.findIndex((i) => i.item.id === n);
|
|
302
|
-
return o === -1 ? null : e.insertAfter ? o + 1 : o;
|
|
303
|
-
}
|
|
304
|
-
const r = t.findIndex((o) => o.item.id === e.overId);
|
|
305
|
-
return r === -1 ? null : e.insertAfter ? r + 1 : r;
|
|
306
|
-
}
|
|
307
|
-
function q(t, e, n, r) {
|
|
308
|
-
if (t <= 0)
|
|
309
|
-
return 0;
|
|
310
|
-
if (t >= r)
|
|
311
|
-
return e.getTotalSize();
|
|
312
|
-
const o = e.measurementsCache[t]?.start;
|
|
313
|
-
if (o !== void 0)
|
|
314
|
-
return o;
|
|
315
|
-
let i = 0;
|
|
316
|
-
for (let s = 0; s < t; s += 1) {
|
|
317
|
-
const l = e.measurementsCache[s]?.size;
|
|
318
|
-
i += l && l > 0 ? l : n(s);
|
|
319
|
-
}
|
|
320
|
-
return i;
|
|
321
|
-
}
|
|
322
|
-
function G(t, e, n) {
|
|
323
|
-
return t < n ? e.includes(t) : t === n ? e.includes(n - 1) : !1;
|
|
324
|
-
}
|
|
325
|
-
function Z(t, e, n) {
|
|
326
|
-
return t >= n.left && t <= n.right && e >= n.top && e <= n.bottom ? { pointerX: t, pointerY: e, isInsideScrollContainer: !0 } : {
|
|
327
|
-
pointerX: Math.min(Math.max(t, n.left + 12), n.right - 12),
|
|
328
|
-
pointerY: Math.min(Math.max(e, n.top + 12), n.bottom - 12),
|
|
329
|
-
isInsideScrollContainer: !1
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
export {
|
|
333
|
-
Z as clampPointerToScrollBounds,
|
|
334
|
-
q as getInsertGapOffsetY,
|
|
335
|
-
k as insertGapIndexFromDropTarget,
|
|
336
|
-
G as isInsertGapVisibleOnMountedRows,
|
|
337
|
-
R as resolveGroupHeaderDropTarget,
|
|
338
|
-
y as resolveSectionDroppableFromDomHit,
|
|
339
|
-
A as resolveSectionHeaderDropTarget,
|
|
340
|
-
_ as resolveVirtualDropTarget
|
|
341
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FNV-1a 128-bit hash implemented as two independent 64-bit halves.
|
|
3
|
-
* Produces a 32-char hex string deterministically from a stream of string tokens.
|
|
4
|
-
*
|
|
5
|
-
* Used for column-tree fingerprints where O(N) CPU is acceptable but multi-MB
|
|
6
|
-
* string allocations are not. The 128-bit width makes collision probability
|
|
7
|
-
* negligible (~1 in 2^128) while keeping output fixed at 32 bytes.
|
|
8
|
-
*/
|
|
9
|
-
export declare class Fnv1a128Hasher {
|
|
10
|
-
private high;
|
|
11
|
-
private low;
|
|
12
|
-
update(input: string): this;
|
|
13
|
-
digest(): string;
|
|
14
|
-
reset(): this;
|
|
15
|
-
}
|
|
16
|
-
export declare function fnv1a128(input: string): string;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const s = BigInt("0x6c62272e07bb0142"), n = BigInt("0x62b821756295c58d"), o = BigInt("0x0000000001000000"), r = BigInt("0x000000000000013b"), f = BigInt("0xffffffffffffffff");
|
|
2
|
-
class g {
|
|
3
|
-
high = s;
|
|
4
|
-
low = n;
|
|
5
|
-
update(h) {
|
|
6
|
-
for (let t = 0; t < h.length; t++) {
|
|
7
|
-
const i = BigInt(h.charCodeAt(t) & 255);
|
|
8
|
-
this.high = (this.high ^ i) * o & f, this.low = (this.low ^ i) * r & f;
|
|
9
|
-
}
|
|
10
|
-
return this;
|
|
11
|
-
}
|
|
12
|
-
digest() {
|
|
13
|
-
return this.high.toString(16).padStart(16, "0") + this.low.toString(16).padStart(16, "0");
|
|
14
|
-
}
|
|
15
|
-
reset() {
|
|
16
|
-
return this.high = s, this.low = n, this;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
g as Fnv1a128Hasher
|
|
21
|
-
};
|