@mikestools/usetable 0.0.1 → 0.0.3
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/README.md +586 -519
- package/dist/index.d.ts +760 -89
- package/dist/usetable.js +1263 -1078
- package/dist/usetable.umd.cjs +7 -7
- package/package.json +20 -20
- package/showcase/examples/BasicExample.vue +474 -0
package/dist/usetable.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
function
|
|
3
|
-
return typeof
|
|
1
|
+
import { shallowRef as Kt, ref as p, watch as H, computed as m, customRef as De } from "vue";
|
|
2
|
+
function Jt(s) {
|
|
3
|
+
return typeof s != "object" || s === null || !("row" in s) || !("column" in s) || !("message" in s) || !("value" in s) ? !1 : typeof s.row == "number" && typeof s.column == "number" && typeof s.message == "string";
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
return Array.isArray(
|
|
5
|
+
function Al(s) {
|
|
6
|
+
return Array.isArray(s) && s.every(Jt);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
return typeof
|
|
8
|
+
function Dl(s) {
|
|
9
|
+
return typeof s != "object" || s === null || !("valid" in s) || !("errors" in s) ? !1 : typeof s.valid == "boolean" && Array.isArray(s.errors) && s.errors.every(Jt);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
return
|
|
11
|
+
function Ae(s) {
|
|
12
|
+
return s === null || typeof s != "object" || "nodeType" in s ? !1 : "value" in s;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const al = /* @__PURE__ */ new Set([
|
|
15
15
|
"opacity",
|
|
16
16
|
"z-index",
|
|
17
17
|
"font-weight",
|
|
@@ -34,42 +34,42 @@ const zr = /* @__PURE__ */ new Set([
|
|
|
34
34
|
"column-count",
|
|
35
35
|
"tab-size"
|
|
36
36
|
]);
|
|
37
|
-
function
|
|
38
|
-
return !
|
|
37
|
+
function cl(s) {
|
|
38
|
+
return !al.has(s);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function me(s, u) {
|
|
41
41
|
if (!u) return;
|
|
42
|
-
if (u.class !== void 0 && (typeof u.class == "string" ?
|
|
42
|
+
if (u.class !== void 0 && (typeof u.class == "string" ? s.className = u.class : Array.isArray(u.class) ? s.className = u.class.join(" ") : s.className = Object.entries(u.class).filter(([, h]) => h).map(([h]) => h).join(" ")), u.style !== void 0) {
|
|
43
43
|
if (typeof u.style == "string")
|
|
44
|
-
|
|
44
|
+
s.setAttribute("style", u.style);
|
|
45
45
|
else if (typeof u.style == "object")
|
|
46
46
|
for (const [h, v] of Object.entries(u.style)) {
|
|
47
47
|
if (v == null) continue;
|
|
48
|
-
const C = h.replace(/([A-Z])/g, "-$1").toLowerCase(),
|
|
49
|
-
|
|
48
|
+
const C = h.replace(/([A-Z])/g, "-$1").toLowerCase(), fe = typeof v == "number" && cl(C) ? `${v}px` : String(v);
|
|
49
|
+
s.style.setProperty(C, fe);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
if (u.dataset)
|
|
53
53
|
for (const [h, v] of Object.entries(u.dataset))
|
|
54
|
-
v != null && (
|
|
55
|
-
u.id !== void 0 && (
|
|
54
|
+
v != null && (s.dataset[h] = String(v));
|
|
55
|
+
u.id !== void 0 && (s.id = u.id), u.title !== void 0 && (s.title = u.title);
|
|
56
56
|
const c = /* @__PURE__ */ new Set(["class", "style", "dataset", "id", "title"]);
|
|
57
57
|
for (const [h, v] of Object.entries(u))
|
|
58
|
-
c.has(h) || v === void 0 || v === null || (h.startsWith("on") && typeof v == "function" ?
|
|
58
|
+
c.has(h) || v === void 0 || v === null || (h.startsWith("on") && typeof v == "function" ? s.addEventListener(h.slice(2).toLowerCase(), v) : h.startsWith("data-") || h.startsWith("aria-") || h === "role" ? s.setAttribute(h, String(v)) : h in s ? typeof v == "boolean" ? v ? s.setAttribute(h, "") : s.removeAttribute(h) : s.setAttribute(h, String(v)) : typeof v == "boolean" ? v && s.setAttribute(h, "") : s.setAttribute(h, String(v)));
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Ee(s, u) {
|
|
61
61
|
const c = document.createElement("th");
|
|
62
|
-
return c.textContent =
|
|
62
|
+
return c.textContent = s, u?.scope || (c.scope = "col"), me(c, u), c;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function b(s, u) {
|
|
65
65
|
let c = u, h, v, C;
|
|
66
|
-
u instanceof Node ? c = u :
|
|
66
|
+
u instanceof Node ? c = u : Ae(u) && (c = u.value, h = u.attributes, v = u.columnSpan, C = u.rowSpan), c == null ? s.textContent = "" : c instanceof Node ? (s.textContent = "", s.appendChild(c)) : s.textContent = String(c), v !== void 0 && v > 1 && (s.colSpan = v), C !== void 0 && C > 0 && (s.rowSpan = C), me(s, h);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
68
|
+
function re(s) {
|
|
69
|
+
return s.children.length === 1 && s.textContent === s.children[0]?.textContent ? s.children[0] : s.textContent || "";
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
const u = p(
|
|
71
|
+
function ul(s) {
|
|
72
|
+
const u = p(s);
|
|
73
73
|
return {
|
|
74
74
|
element: u,
|
|
75
75
|
cellIndex: m(() => u.value.cellIndex),
|
|
@@ -90,9 +90,9 @@ function Br(l) {
|
|
|
90
90
|
} })
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
const u = p(
|
|
95
|
-
} })), h =
|
|
93
|
+
function Ut(s) {
|
|
94
|
+
const u = p(s), c = De(() => ({ get: () => Array.from(u.value.cells), set: () => {
|
|
95
|
+
} })), h = De(() => ({ get: () => u.value.cells.length, set: () => {
|
|
96
96
|
} }));
|
|
97
97
|
return {
|
|
98
98
|
element: u,
|
|
@@ -104,13 +104,13 @@ function Ht(l) {
|
|
|
104
104
|
deleteCell: (v) => u.value.deleteCell(v),
|
|
105
105
|
getCell: (v) => {
|
|
106
106
|
const C = u.value.cells[v];
|
|
107
|
-
return C ?
|
|
107
|
+
return C ? ul(C) : void 0;
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
const u = p(
|
|
113
|
-
} })), h =
|
|
111
|
+
function Ze(s) {
|
|
112
|
+
const u = p(s), c = De(() => ({ get: () => Array.from(u.value.rows), set: () => {
|
|
113
|
+
} })), h = De(() => ({ get: () => u.value.rows.length, set: () => {
|
|
114
114
|
} }));
|
|
115
115
|
return {
|
|
116
116
|
element: u,
|
|
@@ -120,479 +120,479 @@ function Oe(l) {
|
|
|
120
120
|
deleteRow: (v) => u.value.deleteRow(v),
|
|
121
121
|
getRow: (v) => {
|
|
122
122
|
const C = u.value.rows[v];
|
|
123
|
-
return C ?
|
|
123
|
+
return C ? Ut(C) : void 0;
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
129
|
-
`) ? `"${
|
|
127
|
+
function zt(s) {
|
|
128
|
+
return s.includes(",") || s.includes('"') || s.includes(`
|
|
129
|
+
`) ? `"${s.replace(/"/g, '""')}"` : s;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function $t(s) {
|
|
132
132
|
const u = [];
|
|
133
133
|
let c = "", h = !1;
|
|
134
|
-
for (let v = 0; v <
|
|
135
|
-
const C =
|
|
136
|
-
C === '"' ? h && v + 1 <
|
|
134
|
+
for (let v = 0; v < s.length; v++) {
|
|
135
|
+
const C = s[v];
|
|
136
|
+
C === '"' ? h && v + 1 < s.length && s[v + 1] === '"' ? (c += '"', v++) : h = !h : C === "," && !h ? (u.push(c), c = "") : c += C;
|
|
137
137
|
}
|
|
138
138
|
return u.push(c), u;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
const u =
|
|
142
|
-
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
},
|
|
146
|
-
|
|
140
|
+
function Tl(s) {
|
|
141
|
+
const u = Kt([]), c = Kt([]), h = p(null), v = p(null), C = p(null), fe = p(0), E = () => {
|
|
142
|
+
fe.value++;
|
|
143
|
+
}, N = () => {
|
|
144
|
+
s.value && (u.value = Array.from(s.value.rows), c.value = Array.from(s.value.tBodies), h.value = s.value.caption, v.value = s.value.tHead, C.value = s.value.tFoot);
|
|
145
|
+
}, M = () => {
|
|
146
|
+
N(), E();
|
|
147
147
|
};
|
|
148
|
-
|
|
149
|
-
const
|
|
148
|
+
N(), H(s, M, { immediate: !0, deep: !1 });
|
|
149
|
+
const Te = m(() => u.value), jt = m(() => Te.value.length), Me = m(() => c.value), Wt = m(() => Me.value.length), Gt = m({
|
|
150
150
|
get: () => h.value,
|
|
151
151
|
set: (e) => {
|
|
152
|
-
|
|
152
|
+
s.value.caption = e, h.value = e;
|
|
153
153
|
}
|
|
154
|
-
}),
|
|
154
|
+
}), _t = m({
|
|
155
155
|
get: () => v.value,
|
|
156
156
|
set: (e) => {
|
|
157
|
-
|
|
157
|
+
s.value.tHead = e, v.value = e;
|
|
158
158
|
}
|
|
159
|
-
}),
|
|
159
|
+
}), Qt = m({
|
|
160
160
|
get: () => C.value,
|
|
161
161
|
set: (e) => {
|
|
162
|
-
|
|
162
|
+
s.value.tFoot = e, C.value = e;
|
|
163
163
|
}
|
|
164
164
|
}), g = m({
|
|
165
165
|
get: () => {
|
|
166
|
-
|
|
167
|
-
const e =
|
|
166
|
+
fe.value;
|
|
167
|
+
const e = s.value.tHead;
|
|
168
168
|
return !e || e.rows.length === 0 ? [] : Array.from(e.rows[0].cells).map((t) => t.textContent || "");
|
|
169
169
|
},
|
|
170
170
|
set: (e) => {
|
|
171
|
-
let t =
|
|
172
|
-
for (t || (t =
|
|
171
|
+
let t = s.value.tHead;
|
|
172
|
+
for (t || (t = s.value.createTHead()); t.rows.length > 0; ) t.deleteRow(0);
|
|
173
173
|
const o = t.insertRow();
|
|
174
174
|
e.forEach((n) => {
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
}),
|
|
175
|
+
const r = document.createElement("th");
|
|
176
|
+
r.textContent = n, r.scope = "col", o.appendChild(r);
|
|
177
|
+
}), M();
|
|
178
178
|
}
|
|
179
|
-
}),
|
|
179
|
+
}), f = m({
|
|
180
180
|
get: () => {
|
|
181
|
-
|
|
181
|
+
fe.value;
|
|
182
182
|
const e = c.value[0];
|
|
183
|
-
return e ? Array.from(e.rows).map((t) => Array.from(t.cells).map(
|
|
183
|
+
return e ? Array.from(e.rows).map((t) => Array.from(t.cells).map(re)) : [];
|
|
184
184
|
},
|
|
185
185
|
set: (e) => {
|
|
186
186
|
let t = c.value[0];
|
|
187
|
-
for (t || (t =
|
|
187
|
+
for (t || (t = s.value.createTBody()); t.rows.length > 0; ) t.deleteRow(0);
|
|
188
188
|
e.forEach((o) => {
|
|
189
189
|
const n = t.insertRow();
|
|
190
|
-
o.forEach((
|
|
191
|
-
}),
|
|
190
|
+
o.forEach((r) => b(n.insertCell(), r));
|
|
191
|
+
}), M();
|
|
192
192
|
}
|
|
193
|
-
}),
|
|
194
|
-
const e =
|
|
195
|
-
return
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
},
|
|
199
|
-
const e =
|
|
200
|
-
return
|
|
201
|
-
},
|
|
202
|
-
|
|
203
|
-
},
|
|
204
|
-
const e =
|
|
205
|
-
return
|
|
206
|
-
},
|
|
207
|
-
|
|
208
|
-
},
|
|
209
|
-
const e =
|
|
210
|
-
return
|
|
211
|
-
},
|
|
212
|
-
const t =
|
|
213
|
-
return
|
|
214
|
-
},
|
|
215
|
-
|
|
216
|
-
},
|
|
217
|
-
const e =
|
|
218
|
-
return e ?
|
|
219
|
-
},
|
|
220
|
-
const e =
|
|
221
|
-
return e ?
|
|
222
|
-
},
|
|
223
|
-
const t =
|
|
224
|
-
return t ?
|
|
225
|
-
},
|
|
226
|
-
const t =
|
|
227
|
-
return t ?
|
|
228
|
-
},
|
|
193
|
+
}), It = m(() => g.value.length), qe = () => {
|
|
194
|
+
const e = s.value.createCaption();
|
|
195
|
+
return N(), e;
|
|
196
|
+
}, xe = () => {
|
|
197
|
+
s.value.deleteCaption(), N();
|
|
198
|
+
}, Yt = () => {
|
|
199
|
+
const e = s.value.createTHead();
|
|
200
|
+
return N(), e;
|
|
201
|
+
}, et = () => {
|
|
202
|
+
s.value.deleteTHead(), N();
|
|
203
|
+
}, tt = () => {
|
|
204
|
+
const e = s.value.createTFoot();
|
|
205
|
+
return N(), e;
|
|
206
|
+
}, ot = () => {
|
|
207
|
+
s.value.deleteTFoot(), N();
|
|
208
|
+
}, Zt = () => {
|
|
209
|
+
const e = s.value.createTBody();
|
|
210
|
+
return N(), e;
|
|
211
|
+
}, Xt = (e) => {
|
|
212
|
+
const t = s.value.insertRow(e);
|
|
213
|
+
return N(), t;
|
|
214
|
+
}, qt = (e) => {
|
|
215
|
+
s.value.deleteRow(e), N();
|
|
216
|
+
}, xt = () => {
|
|
217
|
+
const e = s.value.tHead;
|
|
218
|
+
return e ? Ze(e) : void 0;
|
|
219
|
+
}, eo = () => {
|
|
220
|
+
const e = s.value.tFoot;
|
|
221
|
+
return e ? Ze(e) : void 0;
|
|
222
|
+
}, to = (e) => {
|
|
223
|
+
const t = Me.value[e];
|
|
224
|
+
return t ? Ze(t) : void 0;
|
|
225
|
+
}, oo = (e) => {
|
|
226
|
+
const t = Te.value[e];
|
|
227
|
+
return t ? Ut(t) : void 0;
|
|
228
|
+
}, de = (e, t) => {
|
|
229
229
|
let o = c.value[0];
|
|
230
|
-
o || (o =
|
|
231
|
-
const n = t === void 0 || t === -1 ? o.rows.length : t,
|
|
232
|
-
return e.forEach((
|
|
233
|
-
},
|
|
230
|
+
o || (o = s.value.createTBody(), M());
|
|
231
|
+
const n = t === void 0 || t === -1 ? o.rows.length : t, r = o.insertRow(n);
|
|
232
|
+
return e.forEach((l) => b(r.insertCell(), l)), M(), r;
|
|
233
|
+
}, Fe = (e) => {
|
|
234
234
|
const t = c.value[0];
|
|
235
|
-
t && (e === -1 && t.rows.length > 0 ? t.deleteRow(-1) : e >= 0 && e < t.rows.length && t.deleteRow(e),
|
|
236
|
-
},
|
|
237
|
-
const n = g.value.length,
|
|
238
|
-
let
|
|
239
|
-
|
|
240
|
-
const a =
|
|
241
|
-
|
|
235
|
+
t && (e === -1 && t.rows.length > 0 ? t.deleteRow(-1) : e >= 0 && e < t.rows.length && t.deleteRow(e), M());
|
|
236
|
+
}, nt = (e = "", t = "", o) => {
|
|
237
|
+
const n = g.value.length, r = o === void 0 || o === -1 ? n : o;
|
|
238
|
+
let l = s.value.tHead;
|
|
239
|
+
l || (l = s.value.createTHead(), l.insertRow()), l.rows.length === 0 && l.insertRow();
|
|
240
|
+
const a = l.rows[0], i = Ee(e);
|
|
241
|
+
r >= a.cells.length ? a.appendChild(i) : a.insertBefore(i, a.cells[r]);
|
|
242
242
|
const d = c.value[0];
|
|
243
243
|
d && Array.from(d.rows).forEach((y) => {
|
|
244
|
-
const R = y.insertCell(
|
|
245
|
-
|
|
244
|
+
const R = y.insertCell(r >= y.cells.length ? -1 : r);
|
|
245
|
+
b(R, t);
|
|
246
246
|
});
|
|
247
|
-
const w =
|
|
247
|
+
const w = s.value.tFoot;
|
|
248
248
|
if (w && w.rows.length > 0) {
|
|
249
249
|
const y = w.rows[0];
|
|
250
|
-
y.insertCell(
|
|
250
|
+
y.insertCell(r >= y.cells.length ? -1 : r).textContent = "";
|
|
251
251
|
}
|
|
252
|
-
|
|
253
|
-
},
|
|
252
|
+
M();
|
|
253
|
+
}, rt = (e) => {
|
|
254
254
|
if (e < 0 || e >= g.value.length) return;
|
|
255
|
-
const t =
|
|
255
|
+
const t = s.value.tHead;
|
|
256
256
|
t && t.rows.length > 0 && t.rows[0].cells[e] && t.rows[0].deleteCell(e);
|
|
257
257
|
const o = c.value[0];
|
|
258
|
-
o && Array.from(o.rows).forEach((
|
|
259
|
-
|
|
258
|
+
o && Array.from(o.rows).forEach((r) => {
|
|
259
|
+
r.cells[e] && r.deleteCell(e);
|
|
260
260
|
});
|
|
261
|
-
const n =
|
|
262
|
-
n && n.rows.length > 0 && n.rows[0].cells[e] && n.rows[0].deleteCell(e),
|
|
263
|
-
},
|
|
261
|
+
const n = s.value.tFoot;
|
|
262
|
+
n && n.rows.length > 0 && n.rows[0].cells[e] && n.rows[0].deleteCell(e), M();
|
|
263
|
+
}, Le = (e, t, o) => {
|
|
264
264
|
const n = c.value[0];
|
|
265
265
|
if (!n) return;
|
|
266
|
-
const
|
|
267
|
-
if (!
|
|
268
|
-
const
|
|
269
|
-
|
|
270
|
-
},
|
|
271
|
-
const t =
|
|
266
|
+
const r = n.rows[e];
|
|
267
|
+
if (!r) return;
|
|
268
|
+
const l = r.cells[t];
|
|
269
|
+
l && (b(l, o), E());
|
|
270
|
+
}, ve = (e, t) => f.value[e]?.[t], no = (e) => {
|
|
271
|
+
const t = s.value.caption || qe();
|
|
272
272
|
t.textContent = e;
|
|
273
|
-
},
|
|
273
|
+
}, z = (e) => {
|
|
274
274
|
g.value = [...e];
|
|
275
|
-
},
|
|
276
|
-
let t =
|
|
277
|
-
for (t || (t =
|
|
275
|
+
}, ro = (e) => {
|
|
276
|
+
let t = s.value.tFoot;
|
|
277
|
+
for (t || (t = tt()); t.rows.length > 0; ) t.deleteRow(0);
|
|
278
278
|
const o = t.insertRow();
|
|
279
|
-
e.forEach((n) =>
|
|
280
|
-
},
|
|
281
|
-
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
},
|
|
285
|
-
for (
|
|
279
|
+
e.forEach((n) => b(o.insertCell(), n));
|
|
280
|
+
}, k = (e) => {
|
|
281
|
+
f.value = e.map((t) => [...t]);
|
|
282
|
+
}, so = () => {
|
|
283
|
+
f.value = [];
|
|
284
|
+
}, lo = () => {
|
|
285
|
+
for (xe(), et(), ot(); c.value.length > 0; ) {
|
|
286
286
|
const e = c.value[0];
|
|
287
|
-
e &&
|
|
287
|
+
e && s.value.removeChild(e), M();
|
|
288
288
|
}
|
|
289
|
-
},
|
|
290
|
-
|
|
291
|
-
},
|
|
289
|
+
}, ao = () => {
|
|
290
|
+
M();
|
|
291
|
+
}, co = (e, t, o) => {
|
|
292
292
|
let n = c.value[0];
|
|
293
|
-
n || (n =
|
|
294
|
-
const
|
|
295
|
-
return
|
|
296
|
-
},
|
|
297
|
-
const o = g.value.length, n = t === void 0 || t === -1 ? o : t,
|
|
298
|
-
let
|
|
299
|
-
|
|
300
|
-
const d =
|
|
293
|
+
n || (n = s.value.createTBody(), M());
|
|
294
|
+
const r = o === void 0 || o === -1 ? n.rows.length : o, l = n.insertRow(r);
|
|
295
|
+
return me(l, t), e.forEach((a) => b(l.insertCell(), a)), M(), l;
|
|
296
|
+
}, uo = (e, t) => {
|
|
297
|
+
const o = g.value.length, n = t === void 0 || t === -1 ? o : t, r = typeof e.header == "string" ? e.header : String(e.header.value), l = typeof e.header == "string" ? void 0 : e.header.attributes, a = e.defaultValue ?? "";
|
|
298
|
+
let i = s.value.tHead;
|
|
299
|
+
i || (i = s.value.createTHead(), i.insertRow()), i.rows.length === 0 && i.insertRow();
|
|
300
|
+
const d = i.rows[0], w = Ee(r, l);
|
|
301
301
|
n >= d.cells.length ? d.appendChild(w) : d.insertBefore(w, d.cells[n]);
|
|
302
302
|
const y = c.value[0];
|
|
303
303
|
y && Array.from(y.rows).forEach((R) => {
|
|
304
|
-
const
|
|
305
|
-
e.defaultAttributes &&
|
|
306
|
-
}),
|
|
307
|
-
},
|
|
308
|
-
let t =
|
|
309
|
-
for (t || (t =
|
|
304
|
+
const ie = R.insertCell(n >= R.cells.length ? -1 : n);
|
|
305
|
+
e.defaultAttributes && me(ie, e.defaultAttributes), b(ie, a);
|
|
306
|
+
}), M();
|
|
307
|
+
}, io = (e) => {
|
|
308
|
+
let t = s.value.tHead;
|
|
309
|
+
for (t || (t = s.value.createTHead()); t.rows.length > 0; ) t.deleteRow(0);
|
|
310
310
|
const o = t.insertRow();
|
|
311
311
|
e.forEach((n) => {
|
|
312
312
|
if (typeof n == "string")
|
|
313
|
-
o.appendChild(
|
|
313
|
+
o.appendChild(Ee(n));
|
|
314
314
|
else {
|
|
315
|
-
const
|
|
316
|
-
n.columnSpan !== void 0 && (
|
|
315
|
+
const r = Ee(String(n.value), n.attributes);
|
|
316
|
+
n.columnSpan !== void 0 && (r.colSpan = n.columnSpan), n.rowSpan !== void 0 && (r.rowSpan = n.rowSpan), o.appendChild(r);
|
|
317
317
|
}
|
|
318
|
-
}),
|
|
319
|
-
},
|
|
320
|
-
const
|
|
321
|
-
if (!s) return;
|
|
322
|
-
const r = s.rows[e];
|
|
318
|
+
}), M();
|
|
319
|
+
}, st = (e, t, o, n) => {
|
|
320
|
+
const r = c.value[0];
|
|
323
321
|
if (!r) return;
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
322
|
+
const l = r.rows[e];
|
|
323
|
+
if (!l) return;
|
|
324
|
+
const a = l.cells[t];
|
|
325
|
+
a && (b(a, o), me(a, n), E());
|
|
326
|
+
}, lt = (e) => {
|
|
327
|
+
const t = f.value[e];
|
|
328
328
|
return t ? [...t] : void 0;
|
|
329
|
-
},
|
|
329
|
+
}, He = (e, t) => {
|
|
330
330
|
const o = c.value[0];
|
|
331
331
|
if (!o) return;
|
|
332
332
|
const n = o.rows[e];
|
|
333
|
-
n && (t.forEach((
|
|
334
|
-
n.cells[
|
|
335
|
-
}),
|
|
336
|
-
},
|
|
333
|
+
n && (t.forEach((r, l) => {
|
|
334
|
+
n.cells[l] && b(n.cells[l], r);
|
|
335
|
+
}), E());
|
|
336
|
+
}, fo = () => f.value.map((e) => [...e]), vo = (e) => e < 0 || e >= g.value.length ? [] : f.value.map((t) => t[e]), wo = (e, t) => {
|
|
337
337
|
const o = c.value[0];
|
|
338
|
-
!o || e < 0 || e >= g.value.length || (t.forEach((n,
|
|
339
|
-
const
|
|
340
|
-
|
|
341
|
-
}),
|
|
342
|
-
},
|
|
343
|
-
const
|
|
344
|
-
for (let
|
|
345
|
-
const a =
|
|
346
|
-
for (let d = o; d < n && d < a.length; d++)
|
|
347
|
-
|
|
338
|
+
!o || e < 0 || e >= g.value.length || (t.forEach((n, r) => {
|
|
339
|
+
const l = o.rows[r];
|
|
340
|
+
l && l.cells[e] && b(l.cells[e], n);
|
|
341
|
+
}), E());
|
|
342
|
+
}, ho = (e, t, o, n) => {
|
|
343
|
+
const r = [];
|
|
344
|
+
for (let l = e; l < t && l < f.value.length; l++) {
|
|
345
|
+
const a = f.value[l], i = [];
|
|
346
|
+
for (let d = o; d < n && d < a.length; d++) i.push(a[d]);
|
|
347
|
+
r.push(i);
|
|
348
348
|
}
|
|
349
|
-
return
|
|
350
|
-
},
|
|
349
|
+
return r;
|
|
350
|
+
}, go = (e, t, o) => {
|
|
351
351
|
const n = c.value[0];
|
|
352
|
-
n && (o.forEach((
|
|
353
|
-
const a = n.rows[e +
|
|
354
|
-
a &&
|
|
352
|
+
n && (o.forEach((r, l) => {
|
|
353
|
+
const a = n.rows[e + l];
|
|
354
|
+
a && r.forEach((i, d) => {
|
|
355
355
|
const w = a.cells[t + d];
|
|
356
|
-
w &&
|
|
356
|
+
w && b(w, i);
|
|
357
357
|
});
|
|
358
|
-
}),
|
|
359
|
-
},
|
|
360
|
-
const e =
|
|
358
|
+
}), E());
|
|
359
|
+
}, po = () => [...g.value], yo = () => {
|
|
360
|
+
const e = s.value.tFoot;
|
|
361
361
|
if (!(!e || e.rows.length === 0))
|
|
362
|
-
return Array.from(e.rows[0].cells).map(
|
|
363
|
-
},
|
|
364
|
-
const o =
|
|
362
|
+
return Array.from(e.rows[0].cells).map(re);
|
|
363
|
+
}, mo = (e, t) => {
|
|
364
|
+
const o = s.value.tFoot;
|
|
365
365
|
if (!o || o.rows.length === 0) return;
|
|
366
366
|
const n = o.rows[0].cells[e];
|
|
367
|
-
n &&
|
|
368
|
-
},
|
|
369
|
-
const t =
|
|
367
|
+
n && b(n, t);
|
|
368
|
+
}, Co = (e) => {
|
|
369
|
+
const t = s.value.tFoot;
|
|
370
370
|
if (!t || t.rows.length === 0) return;
|
|
371
371
|
const o = t.rows[0].cells[e];
|
|
372
|
-
return o ?
|
|
373
|
-
},
|
|
374
|
-
|
|
372
|
+
return o ? re(o) : void 0;
|
|
373
|
+
}, Ne = (e, t, o) => {
|
|
374
|
+
st(e, t, o.value, o.attributes);
|
|
375
375
|
const n = c.value[0];
|
|
376
376
|
if (n && n.rows[e]) {
|
|
377
|
-
const
|
|
378
|
-
|
|
377
|
+
const r = n.rows[e].cells[t];
|
|
378
|
+
r && (o.columnSpan !== void 0 && (r.colSpan = o.columnSpan), o.rowSpan !== void 0 && (r.rowSpan = o.rowSpan));
|
|
379
379
|
}
|
|
380
|
-
},
|
|
380
|
+
}, ke = (e, t) => {
|
|
381
381
|
const o = c.value[0];
|
|
382
382
|
if (!o) return;
|
|
383
383
|
const n = o.rows[e];
|
|
384
|
-
n && (t.forEach((
|
|
385
|
-
const a = n.cells[
|
|
386
|
-
a &&
|
|
387
|
-
}),
|
|
388
|
-
},
|
|
384
|
+
n && (t.forEach((r, l) => {
|
|
385
|
+
const a = n.cells[l];
|
|
386
|
+
a && b(a, r);
|
|
387
|
+
}), E());
|
|
388
|
+
}, at = (e, t) => {
|
|
389
389
|
const o = c.value[0];
|
|
390
390
|
return o ? o.rows[e]?.cells[t] : void 0;
|
|
391
|
-
},
|
|
392
|
-
e.forEach((t, o) =>
|
|
393
|
-
},
|
|
391
|
+
}, Ro = (e) => c.value[0]?.rows[e], So = (e) => e.filter((t) => t >= 0 && t < f.value.length).map((t) => [...f.value[t]]), bo = (e) => e.filter((t) => t >= 0 && t < g.value.length).map((t) => f.value.map((o) => o[t])), Eo = (e) => {
|
|
392
|
+
e.forEach((t, o) => ke(o, t));
|
|
393
|
+
}, Ao = (e) => {
|
|
394
394
|
e.forEach((t, [o, n]) => {
|
|
395
|
-
|
|
395
|
+
Ae(t) ? Ne(o, n, t) : Le(o, n, t);
|
|
396
396
|
});
|
|
397
|
-
},
|
|
397
|
+
}, Do = () => {
|
|
398
398
|
const e = c.value[0];
|
|
399
399
|
return e ? Array.from(e.rows) : [];
|
|
400
|
-
},
|
|
400
|
+
}, To = (e) => {
|
|
401
401
|
const t = c.value[0];
|
|
402
402
|
return !t || e < 0 || e >= t.rows.length ? [] : Array.from(t.rows[e].cells);
|
|
403
|
-
},
|
|
403
|
+
}, Mo = (e, t) => {
|
|
404
404
|
e < 0 || t.forEach((o, n) => {
|
|
405
|
-
const
|
|
406
|
-
if (
|
|
407
|
-
|
|
405
|
+
const r = e + n;
|
|
406
|
+
if (r < f.value.length)
|
|
407
|
+
ke(r, o);
|
|
408
408
|
else {
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
|
|
409
|
+
const l = o.map((a) => Ae(a) ? a.value : a);
|
|
410
|
+
de(l, r), o.forEach((a, i) => {
|
|
411
|
+
Ae(a) && (a.attributes || a.columnSpan !== void 0 || a.rowSpan !== void 0) && Ne(r, i, a);
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
|
-
},
|
|
416
|
-
const n =
|
|
417
|
-
return
|
|
418
|
-
},
|
|
419
|
-
const o =
|
|
415
|
+
}, Fo = (e, t, o) => {
|
|
416
|
+
const n = f.value[e]?.[t], r = o(n);
|
|
417
|
+
return r === !0 ? !0 : { row: e, column: t, value: n, message: typeof r == "string" ? r : "Validation failed" };
|
|
418
|
+
}, Lo = (e, t) => {
|
|
419
|
+
const o = f.value[e];
|
|
420
420
|
if (!o) return [{ row: e, column: -1, value: void 0, message: "Row not found" }];
|
|
421
421
|
const n = t([...o]);
|
|
422
422
|
return n === !0 ? !0 : [{ row: e, column: -1, value: o, message: typeof n == "string" ? n : "Validation failed" }];
|
|
423
|
-
},
|
|
423
|
+
}, Ho = (e, t) => {
|
|
424
424
|
const o = [];
|
|
425
|
-
return
|
|
426
|
-
const
|
|
427
|
-
a !== !0 && o.push({ row:
|
|
425
|
+
return f.value.forEach((n, r) => {
|
|
426
|
+
const l = n[e], a = t(l);
|
|
427
|
+
a !== !0 && o.push({ row: r, column: e, value: l, message: typeof a == "string" ? a : "Validation failed" });
|
|
428
428
|
}), o.length === 0 ? !0 : o;
|
|
429
|
-
},
|
|
429
|
+
}, No = (e) => {
|
|
430
430
|
const t = [];
|
|
431
|
-
return
|
|
432
|
-
o.forEach((
|
|
433
|
-
const a = e(
|
|
434
|
-
a !== null && t.push({ row: n, column:
|
|
431
|
+
return f.value.forEach((o, n) => {
|
|
432
|
+
o.forEach((r, l) => {
|
|
433
|
+
const a = e(r, n, l);
|
|
434
|
+
a !== null && t.push({ row: n, column: l, value: r, message: a });
|
|
435
435
|
});
|
|
436
436
|
}), { valid: t.length === 0, errors: t };
|
|
437
|
-
},
|
|
437
|
+
}, ko = (e) => f.value.reduce((t, o) => {
|
|
438
438
|
const n = Number(o[e]);
|
|
439
439
|
return t + (isNaN(n) ? 0 : n);
|
|
440
|
-
}, 0),
|
|
440
|
+
}, 0), Vo = (e) => {
|
|
441
441
|
let t = 0;
|
|
442
|
-
const o =
|
|
443
|
-
const
|
|
444
|
-
return isNaN(
|
|
442
|
+
const o = f.value.reduce((n, r) => {
|
|
443
|
+
const l = Number(r[e]);
|
|
444
|
+
return isNaN(l) ? n : (t++, n + l);
|
|
445
445
|
}, 0);
|
|
446
446
|
return t > 0 ? o / t : 0;
|
|
447
|
-
},
|
|
448
|
-
const t =
|
|
447
|
+
}, Bo = (e) => {
|
|
448
|
+
const t = f.value.map((o) => o[e]).filter((o) => o != null);
|
|
449
449
|
if (t.length !== 0)
|
|
450
450
|
return t.reduce((o, n) => o < n ? o : n);
|
|
451
|
-
},
|
|
452
|
-
const t =
|
|
451
|
+
}, Oo = (e) => {
|
|
452
|
+
const t = f.value.map((o) => o[e]).filter((o) => o != null);
|
|
453
453
|
if (t.length !== 0)
|
|
454
454
|
return t.reduce((o, n) => o > n ? o : n);
|
|
455
|
-
},
|
|
456
|
-
const o =
|
|
455
|
+
}, Po = (e, t) => {
|
|
456
|
+
const o = f.value.map((n) => n[e]);
|
|
457
457
|
return t ? o.filter(t).length : o.length;
|
|
458
|
-
},
|
|
458
|
+
}, Ko = (e, t) => f.value.reduce((o, n, r) => t.reducer(o, n[e], r), t.initial), zo = (e, t) => {
|
|
459
459
|
const o = c.value[0];
|
|
460
|
-
o && (Array.from(o.rows).forEach((n,
|
|
461
|
-
const
|
|
462
|
-
if (
|
|
463
|
-
const a = t(
|
|
464
|
-
|
|
460
|
+
o && (Array.from(o.rows).forEach((n, r) => {
|
|
461
|
+
const l = n.cells[e];
|
|
462
|
+
if (l) {
|
|
463
|
+
const a = t(re(l), r);
|
|
464
|
+
b(l, a);
|
|
465
465
|
}
|
|
466
|
-
}),
|
|
467
|
-
},
|
|
466
|
+
}), E());
|
|
467
|
+
}, $o = (e, t) => {
|
|
468
468
|
const o = c.value[0];
|
|
469
469
|
if (!o) return;
|
|
470
470
|
const n = o.rows[e];
|
|
471
|
-
n && (Array.from(n.cells).forEach((
|
|
472
|
-
const a = t(
|
|
473
|
-
|
|
474
|
-
}),
|
|
475
|
-
},
|
|
471
|
+
n && (Array.from(n.cells).forEach((r, l) => {
|
|
472
|
+
const a = t(re(r), l);
|
|
473
|
+
b(r, a);
|
|
474
|
+
}), E());
|
|
475
|
+
}, Jo = (e) => {
|
|
476
476
|
const t = c.value[0];
|
|
477
477
|
t && (Array.from(t.rows).forEach((o, n) => {
|
|
478
|
-
Array.from(o.cells).forEach((
|
|
479
|
-
const a = e(
|
|
480
|
-
|
|
478
|
+
Array.from(o.cells).forEach((r, l) => {
|
|
479
|
+
const a = e(re(r), n, l);
|
|
480
|
+
b(r, a);
|
|
481
481
|
});
|
|
482
|
-
}),
|
|
483
|
-
},
|
|
482
|
+
}), E());
|
|
483
|
+
}, Uo = () => {
|
|
484
484
|
const e = [];
|
|
485
|
-
return g.value.length > 0 && e.push(g.value.map((t) =>
|
|
486
|
-
e.push(t.map((o) =>
|
|
485
|
+
return g.value.length > 0 && e.push(g.value.map((t) => zt(t)).join(",")), f.value.forEach((t) => {
|
|
486
|
+
e.push(t.map((o) => zt(String(o ?? ""))).join(","));
|
|
487
487
|
}), e.join(`
|
|
488
488
|
`);
|
|
489
|
-
},
|
|
490
|
-
|
|
491
|
-
},
|
|
489
|
+
}, jo = () => JSON.stringify({ headers: g.value, data: f.value }), Wo = (e) => {
|
|
490
|
+
k(e);
|
|
491
|
+
}, Go = (e) => {
|
|
492
492
|
const t = e.split(`
|
|
493
|
-
`).filter((
|
|
493
|
+
`).filter((r) => r.trim());
|
|
494
494
|
if (t.length === 0) return;
|
|
495
|
-
const o =
|
|
496
|
-
|
|
497
|
-
const n = t.slice(1).map(
|
|
498
|
-
|
|
499
|
-
},
|
|
495
|
+
const o = $t(t[0]);
|
|
496
|
+
z(o);
|
|
497
|
+
const n = t.slice(1).map($t);
|
|
498
|
+
k(n);
|
|
499
|
+
}, _o = (e) => {
|
|
500
500
|
const t = JSON.parse(e);
|
|
501
|
-
t.headers &&
|
|
502
|
-
},
|
|
501
|
+
t.headers && z(t.headers), t.data && k(t.data);
|
|
502
|
+
}, Qo = (e, t) => {
|
|
503
503
|
const o = [], n = t?.caseSensitive ? e : e.toLowerCase();
|
|
504
|
-
return
|
|
505
|
-
|
|
504
|
+
return f.value.forEach((r, l) => {
|
|
505
|
+
r.forEach((a, i) => {
|
|
506
506
|
const d = String(a ?? "");
|
|
507
|
-
(t?.caseSensitive ? d : d.toLowerCase()).includes(n) && o.push({ row:
|
|
507
|
+
(t?.caseSensitive ? d : d.toLowerCase()).includes(n) && o.push({ row: l, column: i, value: a });
|
|
508
508
|
});
|
|
509
509
|
}), o;
|
|
510
|
-
},
|
|
511
|
-
const n = [],
|
|
512
|
-
return
|
|
513
|
-
const
|
|
514
|
-
(o?.caseSensitive ? d : d.toLowerCase()).includes(
|
|
510
|
+
}, Io = (e, t, o) => {
|
|
511
|
+
const n = [], r = o?.caseSensitive ? t : t.toLowerCase();
|
|
512
|
+
return f.value.forEach((l, a) => {
|
|
513
|
+
const i = l[e], d = String(i ?? "");
|
|
514
|
+
(o?.caseSensitive ? d : d.toLowerCase()).includes(r) && n.push({ row: a, column: e, value: i });
|
|
515
515
|
}), n;
|
|
516
|
-
},
|
|
517
|
-
|
|
518
|
-
},
|
|
519
|
-
const t = new Set(
|
|
520
|
-
t.delete(e),
|
|
521
|
-
},
|
|
522
|
-
|
|
523
|
-
},
|
|
524
|
-
|
|
525
|
-
},
|
|
526
|
-
|
|
527
|
-
},
|
|
528
|
-
function
|
|
529
|
-
let
|
|
530
|
-
const
|
|
516
|
+
}, S = p(/* @__PURE__ */ new Set()), se = p(/* @__PURE__ */ new Set()), Ve = (e) => {
|
|
517
|
+
S.value = /* @__PURE__ */ new Set([...S.value, e]);
|
|
518
|
+
}, Be = (e) => {
|
|
519
|
+
const t = new Set(S.value);
|
|
520
|
+
t.delete(e), S.value = t;
|
|
521
|
+
}, Yo = (e) => {
|
|
522
|
+
S.value.has(e) ? Be(e) : Ve(e);
|
|
523
|
+
}, Zo = (e) => S.value.has(e), Xo = (e, t) => {
|
|
524
|
+
se.value = /* @__PURE__ */ new Set([...se.value, `${e},${t}`]);
|
|
525
|
+
}, qo = () => {
|
|
526
|
+
S.value = /* @__PURE__ */ new Set(), se.value = /* @__PURE__ */ new Set();
|
|
527
|
+
}, Oe = /* @__PURE__ */ new Map();
|
|
528
|
+
function ct(e, t, o, n) {
|
|
529
|
+
let r = e.textContent;
|
|
530
|
+
const l = () => {
|
|
531
531
|
const d = e.textContent ?? "";
|
|
532
532
|
if ("validator" in n && n.validator && n.validator(d, t, o) !== !0) {
|
|
533
|
-
e.textContent =
|
|
533
|
+
e.textContent = r;
|
|
534
534
|
return;
|
|
535
535
|
}
|
|
536
536
|
const w = "parser" in n && n.parser ? n.parser(d, t, o) : d;
|
|
537
|
-
|
|
537
|
+
E(), n.onEdit?.(w, t, o);
|
|
538
538
|
}, a = (d) => {
|
|
539
|
-
|
|
540
|
-
},
|
|
541
|
-
|
|
539
|
+
ut(d) && (d.key === "Enter" ? (d.preventDefault(), e.blur()) : d.key === "Escape" && (d.preventDefault(), e.textContent = r, e.blur()));
|
|
540
|
+
}, i = () => {
|
|
541
|
+
r = e.textContent;
|
|
542
542
|
};
|
|
543
|
-
e.addEventListener("blur",
|
|
543
|
+
e.addEventListener("blur", l), e.addEventListener("keydown", a), e.addEventListener("focus", i), Oe.set(e, { blur: l, keydown: a, focus: i });
|
|
544
544
|
}
|
|
545
|
-
function
|
|
546
|
-
const t =
|
|
547
|
-
t && (e.removeEventListener("blur", t.blur), e.removeEventListener("keydown", t.keydown), e.removeEventListener("focus", t.focus),
|
|
545
|
+
function Ce(e) {
|
|
546
|
+
const t = Oe.get(e);
|
|
547
|
+
t && (e.removeEventListener("blur", t.blur), e.removeEventListener("keydown", t.keydown), e.removeEventListener("focus", t.focus), Oe.delete(e)), e.contentEditable = "false";
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function ut(e) {
|
|
550
550
|
return "key" in e;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function xo(e, t, o) {
|
|
553
553
|
return o.editableRows && !o.editableRows.includes(e) ? !1 : !(o.editableColumns && !o.editableColumns.includes(t));
|
|
554
554
|
}
|
|
555
|
-
let
|
|
556
|
-
const
|
|
557
|
-
|
|
555
|
+
let Re = null, Pe = null;
|
|
556
|
+
const Ke = (e = {}) => {
|
|
557
|
+
Re = { cells: !0, ...e };
|
|
558
558
|
const t = c.value[0];
|
|
559
559
|
t && Array.from(t.rows).forEach((o, n) => {
|
|
560
|
-
Array.from(o.cells).forEach((
|
|
561
|
-
|
|
560
|
+
Array.from(o.cells).forEach((r, l) => {
|
|
561
|
+
xo(n, l, Re) && (r.contentEditable = "true", ct(r, n, l, Re));
|
|
562
562
|
});
|
|
563
563
|
});
|
|
564
|
-
},
|
|
565
|
-
|
|
564
|
+
}, en = () => {
|
|
565
|
+
Re = null;
|
|
566
566
|
const e = c.value[0];
|
|
567
567
|
e && Array.from(e.rows).forEach((t) => {
|
|
568
|
-
Array.from(t.cells).forEach(
|
|
568
|
+
Array.from(t.cells).forEach(Ce);
|
|
569
569
|
});
|
|
570
|
-
},
|
|
571
|
-
|
|
572
|
-
const o =
|
|
573
|
-
o && Array.from(o.cells).forEach((n,
|
|
574
|
-
n.contentEditable = "true",
|
|
570
|
+
}, tn = (e = {}) => {
|
|
571
|
+
Pe = e;
|
|
572
|
+
const o = s.value.tHead?.rows[0];
|
|
573
|
+
o && Array.from(o.cells).forEach((n, r) => {
|
|
574
|
+
n.contentEditable = "true", ct(n, -1, r, Pe);
|
|
575
575
|
});
|
|
576
|
-
},
|
|
577
|
-
|
|
578
|
-
const t =
|
|
579
|
-
t && Array.from(t.cells).forEach(
|
|
580
|
-
},
|
|
581
|
-
|
|
582
|
-
},
|
|
576
|
+
}, on = () => {
|
|
577
|
+
Pe = null;
|
|
578
|
+
const t = s.value.tHead?.rows[0];
|
|
579
|
+
t && Array.from(t.cells).forEach(Ce);
|
|
580
|
+
}, nn = (e, t = {}) => {
|
|
581
|
+
Ke({ ...t, editableColumns: [e] });
|
|
582
|
+
}, rn = (e) => {
|
|
583
583
|
const t = c.value[0];
|
|
584
584
|
t && Array.from(t.rows).forEach((o) => {
|
|
585
585
|
const n = o.cells[e];
|
|
586
|
-
n &&
|
|
586
|
+
n && Ce(n);
|
|
587
587
|
});
|
|
588
|
-
},
|
|
589
|
-
|
|
590
|
-
},
|
|
588
|
+
}, sn = (e, t = {}) => {
|
|
589
|
+
Ke({ ...t, editableRows: [e] });
|
|
590
|
+
}, ln = (e) => {
|
|
591
591
|
const t = c.value[0];
|
|
592
592
|
if (!t) return;
|
|
593
593
|
const o = t.rows[e];
|
|
594
|
-
o && Array.from(o.cells).forEach(
|
|
595
|
-
},
|
|
594
|
+
o && Array.from(o.cells).forEach(Ce);
|
|
595
|
+
}, an = () => {
|
|
596
596
|
const e = c.value[0];
|
|
597
597
|
if (!e) return () => {
|
|
598
598
|
};
|
|
@@ -600,90 +600,90 @@ function qr(l) {
|
|
|
600
600
|
const n = o.target;
|
|
601
601
|
if (!(n instanceof HTMLTableCellElement) || n.tagName !== "TD" || !(n.parentElement instanceof HTMLTableRowElement)) return;
|
|
602
602
|
n.contentEditable = "true", n.focus();
|
|
603
|
-
const
|
|
604
|
-
if (
|
|
603
|
+
const l = window.getSelection();
|
|
604
|
+
if (l) {
|
|
605
605
|
const w = document.createRange();
|
|
606
|
-
w.selectNodeContents(n),
|
|
606
|
+
w.selectNodeContents(n), l.removeAllRanges(), l.addRange(w);
|
|
607
607
|
}
|
|
608
|
-
const a = n.textContent,
|
|
609
|
-
n.contentEditable = "false", n.removeEventListener("blur",
|
|
608
|
+
const a = n.textContent, i = () => {
|
|
609
|
+
n.contentEditable = "false", n.removeEventListener("blur", i), n.removeEventListener("keydown", d), E();
|
|
610
610
|
}, d = (w) => {
|
|
611
|
-
|
|
611
|
+
ut(w) && (w.key === "Enter" ? (w.preventDefault(), n.blur()) : w.key === "Escape" && (n.textContent = a, n.blur()));
|
|
612
612
|
};
|
|
613
|
-
n.addEventListener("blur",
|
|
613
|
+
n.addEventListener("blur", i), n.addEventListener("keydown", d);
|
|
614
614
|
};
|
|
615
615
|
return e.addEventListener("dblclick", t), () => e.removeEventListener("dblclick", t);
|
|
616
|
-
},
|
|
616
|
+
}, cn = (e) => {
|
|
617
617
|
const t = /* @__PURE__ */ new Map();
|
|
618
|
-
return
|
|
619
|
-
const
|
|
620
|
-
|
|
618
|
+
return f.value.forEach((o, n) => {
|
|
619
|
+
const r = e(o), l = t.get(r) || [];
|
|
620
|
+
l.push(n), t.set(r, l);
|
|
621
621
|
}), t;
|
|
622
|
-
},
|
|
623
|
-
const t = e.index ?? g.value.length, o =
|
|
624
|
-
|
|
622
|
+
}, ze = /* @__PURE__ */ new Map(), un = (e) => {
|
|
623
|
+
const t = e.index ?? g.value.length, o = f.value.map((l) => [...l]);
|
|
624
|
+
nt(e.label, void 0, t);
|
|
625
625
|
const n = c.value[0];
|
|
626
|
-
n && Array.from(n.rows).forEach((
|
|
627
|
-
const
|
|
628
|
-
if (
|
|
626
|
+
n && Array.from(n.rows).forEach((l, a) => {
|
|
627
|
+
const i = l.cells[t];
|
|
628
|
+
if (i) {
|
|
629
629
|
const d = o[a] ?? [], w = e.computeFunction(d);
|
|
630
|
-
|
|
630
|
+
b(i, w);
|
|
631
631
|
}
|
|
632
|
-
}),
|
|
633
|
-
const
|
|
634
|
-
const
|
|
635
|
-
|
|
632
|
+
}), E();
|
|
633
|
+
const r = H(() => f.value, () => {
|
|
634
|
+
const l = c.value[0];
|
|
635
|
+
l && Array.from(l.rows).forEach((a, i) => {
|
|
636
636
|
const d = a.cells[t];
|
|
637
637
|
if (d) {
|
|
638
|
-
const y = (
|
|
639
|
-
|
|
638
|
+
const y = (f.value[i] ?? []).filter((ie, ll) => ll !== t), R = e.computeFunction(y);
|
|
639
|
+
b(d, R);
|
|
640
640
|
}
|
|
641
641
|
});
|
|
642
642
|
}, { deep: !0, flush: "sync" });
|
|
643
|
-
return
|
|
644
|
-
},
|
|
645
|
-
const t =
|
|
646
|
-
t && (t.stopWatcher && t.stopWatcher(),
|
|
643
|
+
return ze.set(t, { config: e, stopWatcher: r }), t;
|
|
644
|
+
}, fn = (e) => {
|
|
645
|
+
const t = ze.get(e);
|
|
646
|
+
t && (t.stopWatcher && t.stopWatcher(), ze.delete(e), rt(e));
|
|
647
647
|
};
|
|
648
648
|
let A = null;
|
|
649
|
-
const
|
|
649
|
+
const we = () => {
|
|
650
650
|
if (!A) return;
|
|
651
|
-
const { currentPage: e, pageSize: t } = A, o =
|
|
652
|
-
for (let
|
|
653
|
-
A.visibleRows.value =
|
|
651
|
+
const { currentPage: e, pageSize: t } = A, o = f.value.length, n = (e.value - 1) * t.value, r = Math.min(n + t.value, o), l = [];
|
|
652
|
+
for (let i = n; i < r; i++) l.push(i);
|
|
653
|
+
A.visibleRows.value = l;
|
|
654
654
|
const a = c.value[0];
|
|
655
|
-
a && Array.from(a.rows).forEach((
|
|
656
|
-
|
|
655
|
+
a && Array.from(a.rows).forEach((i, d) => {
|
|
656
|
+
i.style.display = l.includes(d) ? "" : "none";
|
|
657
657
|
});
|
|
658
|
-
},
|
|
658
|
+
}, dn = (e) => {
|
|
659
659
|
const t = p(e.currentPage ?? 1), o = p(e.pageSize), n = p([]);
|
|
660
660
|
A = {
|
|
661
|
-
totalPages: m(() => Math.ceil(
|
|
661
|
+
totalPages: m(() => Math.ceil(f.value.length / o.value) || 1),
|
|
662
662
|
currentPage: t,
|
|
663
663
|
pageSize: o,
|
|
664
664
|
visibleRows: n
|
|
665
|
-
},
|
|
666
|
-
const
|
|
667
|
-
t.value >
|
|
665
|
+
}, we(), H(() => f.value.length, () => {
|
|
666
|
+
const r = A.totalPages.value;
|
|
667
|
+
t.value > r && (t.value = r), we();
|
|
668
668
|
});
|
|
669
|
-
},
|
|
670
|
-
A && A.currentPage.value < A.totalPages.value && (A.currentPage.value++,
|
|
671
|
-
},
|
|
672
|
-
A && A.currentPage.value > 1 && (A.currentPage.value--,
|
|
673
|
-
},
|
|
674
|
-
A && e >= 1 && e <= A.totalPages.value && (A.currentPage.value = e,
|
|
669
|
+
}, vn = () => {
|
|
670
|
+
A && A.currentPage.value < A.totalPages.value && (A.currentPage.value++, we());
|
|
671
|
+
}, wn = () => {
|
|
672
|
+
A && A.currentPage.value > 1 && (A.currentPage.value--, we());
|
|
673
|
+
}, hn = (e) => {
|
|
674
|
+
A && e >= 1 && e <= A.totalPages.value && (A.currentPage.value = e, we());
|
|
675
675
|
};
|
|
676
676
|
let D = null;
|
|
677
|
-
const
|
|
677
|
+
const it = () => {
|
|
678
678
|
if (!D) return;
|
|
679
|
-
const { scrollTop: e, rowHeight: t, overscan: o, containerHeight: n } = D,
|
|
680
|
-
for (let R =
|
|
681
|
-
D.visibleRows.value = w, D.startIndex.value =
|
|
679
|
+
const { scrollTop: e, rowHeight: t, overscan: o, containerHeight: n } = D, r = f.value.length, l = Math.floor(e.value / t), a = Math.min(Math.ceil((e.value + n) / t), r), i = Math.max(0, l - o), d = Math.min(r, a + o), w = [];
|
|
680
|
+
for (let R = i; R < d; R++) w.push(R);
|
|
681
|
+
D.visibleRows.value = w, D.startIndex.value = i, D.endIndex.value = d;
|
|
682
682
|
const y = c.value[0];
|
|
683
|
-
y && (Array.from(y.rows).forEach((R,
|
|
684
|
-
w.includes(
|
|
685
|
-
}), y.style.height = `${
|
|
686
|
-
},
|
|
683
|
+
y && (Array.from(y.rows).forEach((R, ie) => {
|
|
684
|
+
w.includes(ie) ? (R.style.display = "", R.style.transform = `translateY(${ie * t}px)`) : R.style.display = "none";
|
|
685
|
+
}), y.style.height = `${r * t}px`, y.style.position = "relative");
|
|
686
|
+
}, gn = (e) => {
|
|
687
687
|
const t = p(0);
|
|
688
688
|
D = {
|
|
689
689
|
scrollTop: t,
|
|
@@ -694,104 +694,104 @@ function qr(l) {
|
|
|
694
694
|
startIndex: p(0),
|
|
695
695
|
endIndex: p(0)
|
|
696
696
|
};
|
|
697
|
-
const o =
|
|
697
|
+
const o = s.value.parentElement;
|
|
698
698
|
if (o) {
|
|
699
699
|
const n = () => {
|
|
700
|
-
t.value = o.scrollTop,
|
|
700
|
+
t.value = o.scrollTop, it();
|
|
701
701
|
};
|
|
702
|
-
o.addEventListener("scroll", n), D.scrollHandler = n, D.container = o,
|
|
703
|
-
const
|
|
704
|
-
|
|
705
|
-
|
|
702
|
+
o.addEventListener("scroll", n), D.scrollHandler = n, D.container = o, it();
|
|
703
|
+
const r = c.value[0];
|
|
704
|
+
r && Array.from(r.rows).forEach((l) => {
|
|
705
|
+
l.style.position = "absolute", l.style.width = "100%", l.style.left = "0";
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
|
-
},
|
|
708
|
+
}, pn = () => {
|
|
709
709
|
if (!D) return;
|
|
710
710
|
D.container && D.scrollHandler && D.container.removeEventListener("scroll", D.scrollHandler);
|
|
711
711
|
const e = c.value[0];
|
|
712
712
|
e && (e.style.height = "", e.style.position = "", Array.from(e.rows).forEach((t) => {
|
|
713
713
|
t.style.display = "", t.style.position = "", t.style.transform = "", t.style.width = "", t.style.left = "";
|
|
714
714
|
})), D = null;
|
|
715
|
-
},
|
|
716
|
-
data: JSON.parse(JSON.stringify(
|
|
715
|
+
}, yn = () => ({
|
|
716
|
+
data: JSON.parse(JSON.stringify(f.value)),
|
|
717
717
|
headers: [...g.value]
|
|
718
|
-
}),
|
|
719
|
-
g.value = [...e.headers],
|
|
720
|
-
},
|
|
721
|
-
const t =
|
|
718
|
+
}), ft = (e) => {
|
|
719
|
+
g.value = [...e.headers], f.value = e.data.map((t) => [...t]);
|
|
720
|
+
}, mn = (e) => {
|
|
721
|
+
const t = yn();
|
|
722
722
|
try {
|
|
723
723
|
const o = e();
|
|
724
724
|
return o instanceof Promise ? o.catch((n) => {
|
|
725
|
-
throw
|
|
725
|
+
throw ft(t), n;
|
|
726
726
|
}) : o;
|
|
727
727
|
} catch (o) {
|
|
728
|
-
throw
|
|
728
|
+
throw ft(t), o;
|
|
729
729
|
}
|
|
730
|
-
},
|
|
730
|
+
}, Cn = (e) => H(() => f.value, (t) => {
|
|
731
731
|
e([...t.map((o) => [...o])]);
|
|
732
|
-
}, { deep: !0 }), W = p(null),
|
|
732
|
+
}, { deep: !0 }), W = p(null), $ = p(!1), G = p(!1), Rn = {
|
|
733
733
|
columnIndex: W,
|
|
734
|
-
ascending:
|
|
735
|
-
descending:
|
|
736
|
-
},
|
|
737
|
-
const o = String(e ?? ""), n = String(t ?? ""),
|
|
738
|
-
return !isNaN(
|
|
739
|
-
},
|
|
734
|
+
ascending: $,
|
|
735
|
+
descending: G
|
|
736
|
+
}, dt = (e, t) => {
|
|
737
|
+
const o = String(e ?? ""), n = String(t ?? ""), r = Number(o), l = Number(n);
|
|
738
|
+
return !isNaN(r) && !isNaN(l) ? r - l : o.localeCompare(n);
|
|
739
|
+
}, Se = (e, t, o) => {
|
|
740
740
|
const n = c.value[0];
|
|
741
741
|
if (!n || n.rows.length === 0) return;
|
|
742
|
-
const
|
|
743
|
-
for (let
|
|
744
|
-
const a = n.rows[
|
|
742
|
+
const r = [];
|
|
743
|
+
for (let l = 0; l < n.rows.length; l++) {
|
|
744
|
+
const a = n.rows[l];
|
|
745
745
|
if (a) {
|
|
746
|
-
const
|
|
747
|
-
|
|
746
|
+
const i = a.cells[e], d = i ? re(i) : "";
|
|
747
|
+
r.push({ element: a, value: d });
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
|
|
751
|
-
const
|
|
752
|
-
return o ?
|
|
753
|
-
}),
|
|
754
|
-
n.appendChild(
|
|
755
|
-
}), W.value = e,
|
|
756
|
-
},
|
|
757
|
-
|
|
758
|
-
},
|
|
759
|
-
|
|
760
|
-
},
|
|
761
|
-
|
|
762
|
-
},
|
|
763
|
-
|
|
764
|
-
},
|
|
765
|
-
W.value = null,
|
|
766
|
-
},
|
|
767
|
-
isFiltered:
|
|
768
|
-
filteredRowCount:
|
|
750
|
+
r.sort((l, a) => {
|
|
751
|
+
const i = t(l.value, a.value);
|
|
752
|
+
return o ? i : -i;
|
|
753
|
+
}), r.forEach(({ element: l }) => {
|
|
754
|
+
n.appendChild(l);
|
|
755
|
+
}), W.value = e, $.value = o, G.value = !o, E();
|
|
756
|
+
}, Sn = (e) => {
|
|
757
|
+
Se(e, dt, !0);
|
|
758
|
+
}, bn = (e) => {
|
|
759
|
+
Se(e, dt, !1);
|
|
760
|
+
}, En = (e, t) => {
|
|
761
|
+
Se(e, t, !0);
|
|
762
|
+
}, An = (e, t) => {
|
|
763
|
+
Se(e, t, !1);
|
|
764
|
+
}, Dn = () => {
|
|
765
|
+
W.value = null, $.value = !1, G.value = !1;
|
|
766
|
+
}, Tn = () => W.value, Mn = () => W.value === null || $.value === G.value ? !1 : $.value, Fn = () => W.value === null || $.value === G.value ? !1 : G.value, Ln = () => W.value === null || $.value === G.value ? !1 : $.value || G.value, Q = p([]), vt = m(() => Q.value.length > 0), Hn = m(() => vt.value ? Q.value.length : f.value.length), Nn = {
|
|
767
|
+
isFiltered: vt,
|
|
768
|
+
filteredRowCount: Hn,
|
|
769
769
|
filteredIndices: Q
|
|
770
|
-
},
|
|
770
|
+
}, wt = (e) => {
|
|
771
771
|
const t = c.value[0];
|
|
772
772
|
if (!t) return;
|
|
773
|
-
const o = [], n =
|
|
774
|
-
for (let
|
|
775
|
-
const
|
|
776
|
-
|
|
773
|
+
const o = [], n = f.value;
|
|
774
|
+
for (let r = 0; r < n.length; r++) {
|
|
775
|
+
const l = n[r];
|
|
776
|
+
l && e(l, r) && o.push(r);
|
|
777
777
|
}
|
|
778
778
|
Q.value = o;
|
|
779
|
-
for (let
|
|
780
|
-
const
|
|
781
|
-
|
|
779
|
+
for (let r = 0; r < t.rows.length; r++) {
|
|
780
|
+
const l = t.rows[r];
|
|
781
|
+
l && (l.style.display = o.includes(r) ? "" : "none");
|
|
782
782
|
}
|
|
783
|
-
},
|
|
784
|
-
|
|
783
|
+
}, $e = (e, t) => {
|
|
784
|
+
wt((o) => {
|
|
785
785
|
const n = o[e];
|
|
786
786
|
return t(n);
|
|
787
787
|
});
|
|
788
|
-
},
|
|
788
|
+
}, kn = (e, t) => {
|
|
789
789
|
const o = String(t ?? "");
|
|
790
|
-
|
|
791
|
-
},
|
|
790
|
+
$e(e, (n) => String(n ?? "") === o);
|
|
791
|
+
}, Vn = (e, t) => {
|
|
792
792
|
const o = new Set(t.map((n) => String(n ?? "")));
|
|
793
|
-
|
|
794
|
-
},
|
|
793
|
+
$e(e, (n) => o.has(String(n ?? "")));
|
|
794
|
+
}, Bn = () => {
|
|
795
795
|
const e = c.value[0];
|
|
796
796
|
if (e)
|
|
797
797
|
for (let t = 0; t < e.rows.length; t++) {
|
|
@@ -799,47 +799,47 @@ function qr(l) {
|
|
|
799
799
|
o && (o.style.display = "");
|
|
800
800
|
}
|
|
801
801
|
Q.value = [];
|
|
802
|
-
},
|
|
803
|
-
let
|
|
804
|
-
const
|
|
805
|
-
|
|
806
|
-
},
|
|
807
|
-
|
|
808
|
-
},
|
|
809
|
-
if (!
|
|
810
|
-
const t =
|
|
802
|
+
}, On = () => Q.value;
|
|
803
|
+
let J = null;
|
|
804
|
+
const Pn = (e) => {
|
|
805
|
+
J = e;
|
|
806
|
+
}, Kn = () => {
|
|
807
|
+
J = null;
|
|
808
|
+
}, zn = () => J !== null, $n = (e) => {
|
|
809
|
+
if (!J) return;
|
|
810
|
+
const t = f.value[e];
|
|
811
811
|
if (t)
|
|
812
|
-
return
|
|
813
|
-
},
|
|
814
|
-
if (!
|
|
815
|
-
const t =
|
|
812
|
+
return J(t, e);
|
|
813
|
+
}, Jn = () => J ? f.value.map((e, t) => J(e, t)) : [], he = (e) => {
|
|
814
|
+
if (!J) return;
|
|
815
|
+
const t = f.value;
|
|
816
816
|
for (let o = 0; o < t.length; o++) {
|
|
817
817
|
const n = t[o];
|
|
818
|
-
if (n &&
|
|
818
|
+
if (n && J(n, o) === e)
|
|
819
819
|
return o;
|
|
820
820
|
}
|
|
821
|
-
},
|
|
822
|
-
const t =
|
|
821
|
+
}, Un = (e) => {
|
|
822
|
+
const t = he(e);
|
|
823
823
|
if (t === void 0) return;
|
|
824
|
-
const o =
|
|
824
|
+
const o = f.value[t];
|
|
825
825
|
return o ? [...o] : void 0;
|
|
826
|
-
},
|
|
827
|
-
const o =
|
|
828
|
-
return o === void 0 ? !1 : (
|
|
829
|
-
},
|
|
830
|
-
const t =
|
|
831
|
-
return t === void 0 ? !1 : (
|
|
832
|
-
},
|
|
833
|
-
|
|
834
|
-
},
|
|
835
|
-
|
|
836
|
-
t &&
|
|
826
|
+
}, jn = (e, t) => {
|
|
827
|
+
const o = he(e);
|
|
828
|
+
return o === void 0 ? !1 : (He(o, t), !0);
|
|
829
|
+
}, Wn = (e) => {
|
|
830
|
+
const t = he(e);
|
|
831
|
+
return t === void 0 ? !1 : (Fe(t), !0);
|
|
832
|
+
}, Gn = (e) => he(e) !== void 0, P = /* @__PURE__ */ new Map(), _n = (e, t) => {
|
|
833
|
+
P.set(e, t);
|
|
834
|
+
}, Qn = (e) => {
|
|
835
|
+
P.clear(), e.forEach((t, o) => {
|
|
836
|
+
t && P.set(o, t);
|
|
837
837
|
});
|
|
838
|
-
},
|
|
839
|
-
|
|
840
|
-
},
|
|
841
|
-
|
|
842
|
-
},
|
|
838
|
+
}, In = (e) => {
|
|
839
|
+
P.delete(e);
|
|
840
|
+
}, Yn = () => {
|
|
841
|
+
P.clear();
|
|
842
|
+
}, Zn = (e) => P.get(e), Xn = (e) => P.has(e), Je = (e, t) => {
|
|
843
843
|
if (t.parser)
|
|
844
844
|
return t.parser(e);
|
|
845
845
|
const o = String(e ?? "");
|
|
@@ -855,761 +855,946 @@ function qr(l) {
|
|
|
855
855
|
default:
|
|
856
856
|
return o;
|
|
857
857
|
}
|
|
858
|
-
},
|
|
859
|
-
const o =
|
|
860
|
-
return n ?
|
|
861
|
-
},
|
|
862
|
-
const t =
|
|
858
|
+
}, qn = (e, t) => {
|
|
859
|
+
const o = ve(e, t), n = P.get(t);
|
|
860
|
+
return n ? Je(o, n) : o;
|
|
861
|
+
}, ht = (e) => {
|
|
862
|
+
const t = f.value[e];
|
|
863
863
|
return t ? t.map((o, n) => {
|
|
864
|
-
const
|
|
865
|
-
return
|
|
864
|
+
const r = P.get(n);
|
|
865
|
+
return r ? Je(o, r) : o;
|
|
866
866
|
}) : [];
|
|
867
|
-
},
|
|
868
|
-
const t =
|
|
869
|
-
return
|
|
867
|
+
}, xn = (e) => {
|
|
868
|
+
const t = P.get(e);
|
|
869
|
+
return f.value.map((o) => {
|
|
870
870
|
const n = o[e];
|
|
871
|
-
return t ?
|
|
871
|
+
return t ? Je(n, t) : n;
|
|
872
872
|
});
|
|
873
|
-
},
|
|
874
|
-
|
|
875
|
-
},
|
|
876
|
-
|
|
877
|
-
},
|
|
873
|
+
}, er = () => f.value.map((e, t) => ht(t)), ge = p(!1), Ue = p(null), I = /* @__PURE__ */ new Map(), tr = () => {
|
|
874
|
+
ge.value = !1, Ue.value = JSON.parse(JSON.stringify(f.value)), I.clear();
|
|
875
|
+
}, or = () => {
|
|
876
|
+
ge.value = !0;
|
|
877
|
+
}, nr = () => ge.value, rr = () => I.size > 0, sr = () => Array.from(I.values()), lr = () => {
|
|
878
878
|
const e = /* @__PURE__ */ new Set();
|
|
879
|
-
for (const t of
|
|
879
|
+
for (const t of I.values())
|
|
880
880
|
e.add(t.row);
|
|
881
881
|
return Array.from(e).sort((t, o) => t - o);
|
|
882
|
-
},
|
|
882
|
+
}, ar = () => {
|
|
883
883
|
const e = /* @__PURE__ */ new Set();
|
|
884
|
-
for (const t of
|
|
884
|
+
for (const t of I.values())
|
|
885
885
|
e.add(t.column);
|
|
886
886
|
return Array.from(e).sort((t, o) => t - o);
|
|
887
887
|
};
|
|
888
|
-
|
|
889
|
-
if (
|
|
890
|
-
const t =
|
|
888
|
+
H(() => f.value, (e) => {
|
|
889
|
+
if (Ue.value === null) return;
|
|
890
|
+
const t = Ue.value;
|
|
891
891
|
for (let o = 0; o < Math.max(e.length, t.length); o++) {
|
|
892
|
-
const n = e[o] ?? [],
|
|
893
|
-
for (let a = 0; a <
|
|
894
|
-
const
|
|
895
|
-
String(
|
|
892
|
+
const n = e[o] ?? [], r = t[o] ?? [], l = Math.max(n.length, r.length);
|
|
893
|
+
for (let a = 0; a < l; a++) {
|
|
894
|
+
const i = n[a], d = r[a], w = `${o},${a}`;
|
|
895
|
+
String(i ?? "") !== String(d ?? "") ? (I.set(w, { row: o, column: a, oldValue: d, newValue: i }), ge.value = !0) : I.delete(w);
|
|
896
896
|
}
|
|
897
897
|
}
|
|
898
898
|
}, { deep: !0 });
|
|
899
|
-
const
|
|
900
|
-
let
|
|
901
|
-
const
|
|
902
|
-
data: JSON.parse(JSON.stringify(
|
|
899
|
+
const U = [], Y = [];
|
|
900
|
+
let je = 50, le = "", Z = !1;
|
|
901
|
+
const gt = () => ({
|
|
902
|
+
data: JSON.parse(JSON.stringify(f.value)),
|
|
903
903
|
headers: [...g.value]
|
|
904
|
-
}),
|
|
905
|
-
|
|
904
|
+
}), We = () => JSON.stringify({ data: f.value, headers: g.value });
|
|
905
|
+
H([() => f.value, () => g.value], () => {
|
|
906
906
|
if (Z) return;
|
|
907
|
-
const e =
|
|
908
|
-
if (e !==
|
|
909
|
-
if (
|
|
910
|
-
const t = JSON.parse(
|
|
911
|
-
(t.data.length > 0 || t.headers.length > 0) && (
|
|
907
|
+
const e = We();
|
|
908
|
+
if (e !== le) {
|
|
909
|
+
if (le !== "") {
|
|
910
|
+
const t = JSON.parse(le);
|
|
911
|
+
(t.data.length > 0 || t.headers.length > 0) && (U.push({ data: t.data, headers: t.headers }), U.length > je && U.shift(), Y.length = 0);
|
|
912
912
|
}
|
|
913
|
-
|
|
913
|
+
le = e;
|
|
914
914
|
}
|
|
915
915
|
}, { deep: !0, flush: "sync" });
|
|
916
|
-
const
|
|
917
|
-
if (
|
|
918
|
-
Z = !0, Y.push(
|
|
919
|
-
const e =
|
|
920
|
-
return e ? (
|
|
921
|
-
},
|
|
916
|
+
const cr = () => {
|
|
917
|
+
if (U.length === 0) return !1;
|
|
918
|
+
Z = !0, Y.push(gt());
|
|
919
|
+
const e = U.pop();
|
|
920
|
+
return e ? (k(e.data), z(e.headers), le = We(), Z = !1, !0) : (Z = !1, !1);
|
|
921
|
+
}, ur = () => {
|
|
922
922
|
if (Y.length === 0) return !1;
|
|
923
|
-
Z = !0,
|
|
923
|
+
Z = !0, U.push(gt());
|
|
924
924
|
const e = Y.pop();
|
|
925
|
-
return e ? (
|
|
926
|
-
},
|
|
927
|
-
|
|
928
|
-
},
|
|
929
|
-
|
|
930
|
-
},
|
|
931
|
-
const e =
|
|
925
|
+
return e ? (k(e.data), z(e.headers), le = We(), Z = !1, !0) : (Z = !1, !1);
|
|
926
|
+
}, ir = () => {
|
|
927
|
+
U.length = 0, Y.length = 0;
|
|
928
|
+
}, fr = () => U.length > 0, dr = () => Y.length > 0, vr = () => U.length, wr = () => Y.length, hr = (e) => {
|
|
929
|
+
je = e;
|
|
930
|
+
}, gr = () => je, pr = () => {
|
|
931
|
+
const e = f.value.length;
|
|
932
932
|
for (let t = 0; t < e; t++)
|
|
933
|
-
|
|
934
|
-
},
|
|
935
|
-
|
|
936
|
-
},
|
|
933
|
+
S.value.add(t);
|
|
934
|
+
}, yr = () => {
|
|
935
|
+
S.value.clear();
|
|
936
|
+
}, mr = (e, t) => {
|
|
937
937
|
const o = Math.min(e, t), n = Math.max(e, t);
|
|
938
|
-
for (let
|
|
939
|
-
|
|
940
|
-
},
|
|
941
|
-
const e =
|
|
938
|
+
for (let r = o; r <= n; r++)
|
|
939
|
+
r >= 0 && r < f.value.length && S.value.add(r);
|
|
940
|
+
}, Cr = () => {
|
|
941
|
+
const e = f.value.length, t = /* @__PURE__ */ new Set();
|
|
942
942
|
for (let o = 0; o < e; o++)
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
},
|
|
946
|
-
const e = [], t = Array.from(
|
|
943
|
+
S.value.has(o) || t.add(o);
|
|
944
|
+
S.value = t;
|
|
945
|
+
}, Rr = () => {
|
|
946
|
+
const e = [], t = Array.from(S.value).sort((o, n) => o - n);
|
|
947
947
|
for (const o of t) {
|
|
948
|
-
const n =
|
|
948
|
+
const n = f.value[o];
|
|
949
949
|
n && e.push([...n]);
|
|
950
950
|
}
|
|
951
951
|
return e;
|
|
952
|
-
},
|
|
952
|
+
}, pt = () => Array.from(S.value).sort((e, t) => e - t), yt = () => {
|
|
953
953
|
const e = [];
|
|
954
|
-
for (const t of
|
|
954
|
+
for (const t of se.value) {
|
|
955
955
|
const o = t.split(",");
|
|
956
956
|
if (o.length === 2) {
|
|
957
|
-
const n = parseInt(o[0] ?? "", 10),
|
|
958
|
-
!isNaN(n) && !isNaN(
|
|
957
|
+
const n = parseInt(o[0] ?? "", 10), r = parseInt(o[1] ?? "", 10);
|
|
958
|
+
!isNaN(n) && !isNaN(r) && e.push({ row: n, column: r });
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
return e.sort((t, o) => t.row === o.row ? t.column - o.column : t.row - o.row);
|
|
962
|
-
},
|
|
963
|
-
if (e >= 0 && e <
|
|
964
|
-
|
|
965
|
-
const o =
|
|
962
|
+
}, F = p(null), j = (e, t) => {
|
|
963
|
+
if (e >= 0 && e < f.value.length && t >= 0 && t < g.value.length) {
|
|
964
|
+
F.value = { row: e, column: t };
|
|
965
|
+
const o = at(e, t);
|
|
966
966
|
o && o.focus();
|
|
967
967
|
}
|
|
968
|
-
},
|
|
969
|
-
|
|
970
|
-
},
|
|
971
|
-
const o =
|
|
968
|
+
}, Sr = () => {
|
|
969
|
+
F.value = null;
|
|
970
|
+
}, br = () => F.value ? { ...F.value } : null, Er = (e, t) => {
|
|
971
|
+
const o = F.value;
|
|
972
972
|
return o !== null && o.row === e && o.column === t;
|
|
973
|
-
},
|
|
974
|
-
const e =
|
|
975
|
-
return !e || e.row <= 0 ? !1 : (
|
|
976
|
-
},
|
|
977
|
-
const e =
|
|
978
|
-
return !e || e.row >=
|
|
979
|
-
},
|
|
980
|
-
const e =
|
|
981
|
-
return !e || e.column <= 0 ? !1 : (
|
|
982
|
-
},
|
|
983
|
-
const e =
|
|
984
|
-
return !e || e.column >= g.value.length - 1 ? !1 : (
|
|
985
|
-
},
|
|
986
|
-
|
|
987
|
-
},
|
|
988
|
-
const e =
|
|
989
|
-
e > 0 && t > 0 &&
|
|
990
|
-
},
|
|
991
|
-
const e =
|
|
992
|
-
e &&
|
|
993
|
-
},
|
|
994
|
-
const e =
|
|
995
|
-
e && g.value.length > 0 &&
|
|
996
|
-
},
|
|
973
|
+
}, mt = () => {
|
|
974
|
+
const e = F.value;
|
|
975
|
+
return !e || e.row <= 0 ? !1 : (j(e.row - 1, e.column), !0);
|
|
976
|
+
}, Ct = () => {
|
|
977
|
+
const e = F.value;
|
|
978
|
+
return !e || e.row >= f.value.length - 1 ? !1 : (j(e.row + 1, e.column), !0);
|
|
979
|
+
}, Rt = () => {
|
|
980
|
+
const e = F.value;
|
|
981
|
+
return !e || e.column <= 0 ? !1 : (j(e.row, e.column - 1), !0);
|
|
982
|
+
}, St = () => {
|
|
983
|
+
const e = F.value;
|
|
984
|
+
return !e || e.column >= g.value.length - 1 ? !1 : (j(e.row, e.column + 1), !0);
|
|
985
|
+
}, bt = () => {
|
|
986
|
+
f.value.length > 0 && g.value.length > 0 && j(0, 0);
|
|
987
|
+
}, Et = () => {
|
|
988
|
+
const e = f.value.length, t = g.value.length;
|
|
989
|
+
e > 0 && t > 0 && j(e - 1, t - 1);
|
|
990
|
+
}, At = () => {
|
|
991
|
+
const e = F.value;
|
|
992
|
+
e && j(e.row, 0);
|
|
993
|
+
}, Dt = () => {
|
|
994
|
+
const e = F.value;
|
|
995
|
+
e && g.value.length > 0 && j(e.row, g.value.length - 1);
|
|
996
|
+
}, Ar = () => {
|
|
997
997
|
const e = (t) => {
|
|
998
|
-
if (
|
|
998
|
+
if (F.value)
|
|
999
999
|
switch (t.key) {
|
|
1000
1000
|
case "ArrowUp":
|
|
1001
|
-
|
|
1001
|
+
mt() && t.preventDefault();
|
|
1002
1002
|
break;
|
|
1003
1003
|
case "ArrowDown":
|
|
1004
|
-
|
|
1004
|
+
Ct() && t.preventDefault();
|
|
1005
1005
|
break;
|
|
1006
1006
|
case "ArrowLeft":
|
|
1007
|
-
|
|
1007
|
+
Rt() && t.preventDefault();
|
|
1008
1008
|
break;
|
|
1009
1009
|
case "ArrowRight":
|
|
1010
|
-
|
|
1010
|
+
St() && t.preventDefault();
|
|
1011
1011
|
break;
|
|
1012
1012
|
case "Home":
|
|
1013
|
-
t.ctrlKey ?
|
|
1013
|
+
t.ctrlKey ? bt() : At(), t.preventDefault();
|
|
1014
1014
|
break;
|
|
1015
1015
|
case "End":
|
|
1016
|
-
t.ctrlKey ?
|
|
1016
|
+
t.ctrlKey ? Et() : Dt(), t.preventDefault();
|
|
1017
1017
|
break;
|
|
1018
1018
|
}
|
|
1019
1019
|
};
|
|
1020
|
-
return
|
|
1021
|
-
},
|
|
1022
|
-
const e =
|
|
1023
|
-
for (let
|
|
1024
|
-
const a =
|
|
1025
|
-
a && (a.style.display =
|
|
1020
|
+
return s.value.addEventListener("keydown", e), () => s.value.removeEventListener("keydown", e);
|
|
1021
|
+
}, V = p(/* @__PURE__ */ new Set()), Dr = m(() => g.value.length - V.value.size), Tt = () => {
|
|
1022
|
+
const e = s.value.tHead, t = c.value[0], o = s.value.tFoot, n = (r) => {
|
|
1023
|
+
for (let l = 0; l < r.cells.length; l++) {
|
|
1024
|
+
const a = r.cells[l];
|
|
1025
|
+
a && (a.style.display = V.value.has(l) ? "none" : "");
|
|
1026
1026
|
}
|
|
1027
1027
|
};
|
|
1028
1028
|
if (e)
|
|
1029
|
-
for (let
|
|
1030
|
-
const
|
|
1031
|
-
|
|
1029
|
+
for (let r = 0; r < e.rows.length; r++) {
|
|
1030
|
+
const l = e.rows[r];
|
|
1031
|
+
l && n(l);
|
|
1032
1032
|
}
|
|
1033
1033
|
if (t)
|
|
1034
|
-
for (let
|
|
1035
|
-
const
|
|
1036
|
-
|
|
1034
|
+
for (let r = 0; r < t.rows.length; r++) {
|
|
1035
|
+
const l = t.rows[r];
|
|
1036
|
+
l && n(l);
|
|
1037
1037
|
}
|
|
1038
1038
|
if (o)
|
|
1039
|
-
for (let
|
|
1040
|
-
const
|
|
1041
|
-
|
|
1039
|
+
for (let r = 0; r < o.rows.length; r++) {
|
|
1040
|
+
const l = o.rows[r];
|
|
1041
|
+
l && n(l);
|
|
1042
1042
|
}
|
|
1043
|
-
},
|
|
1044
|
-
const t = new Set(
|
|
1045
|
-
t.add(e),
|
|
1046
|
-
},
|
|
1047
|
-
const t = new Set(
|
|
1048
|
-
t.delete(e),
|
|
1049
|
-
},
|
|
1050
|
-
|
|
1051
|
-
},
|
|
1043
|
+
}, Mt = (e) => {
|
|
1044
|
+
const t = new Set(V.value);
|
|
1045
|
+
t.add(e), V.value = t, Tt();
|
|
1046
|
+
}, Ft = (e) => {
|
|
1047
|
+
const t = new Set(V.value);
|
|
1048
|
+
t.delete(e), V.value = t, Tt();
|
|
1049
|
+
}, Tr = (e) => {
|
|
1050
|
+
V.value.has(e) ? Ft(e) : Mt(e);
|
|
1051
|
+
}, Mr = (e) => !V.value.has(e), Fr = () => {
|
|
1052
1052
|
const e = [];
|
|
1053
1053
|
for (let t = 0; t < g.value.length; t++)
|
|
1054
|
-
|
|
1054
|
+
V.value.has(t) || e.push(t);
|
|
1055
1055
|
return e;
|
|
1056
|
-
},
|
|
1056
|
+
}, Lr = () => Array.from(V.value).sort((e, t) => e - t), pe = (e, t) => {
|
|
1057
1057
|
const o = c.value[0];
|
|
1058
1058
|
if (!o || e < 0 || e >= o.rows.length || t < 0 || t >= o.rows.length || e === t) return;
|
|
1059
1059
|
const n = o.rows[e];
|
|
1060
1060
|
if (n) {
|
|
1061
1061
|
if (t < e) {
|
|
1062
|
-
const
|
|
1063
|
-
|
|
1062
|
+
const r = o.rows[t];
|
|
1063
|
+
r && o.insertBefore(n, r);
|
|
1064
1064
|
} else {
|
|
1065
|
-
const
|
|
1066
|
-
|
|
1065
|
+
const r = o.rows[t + 1];
|
|
1066
|
+
r ? o.insertBefore(n, r) : o.appendChild(n);
|
|
1067
1067
|
}
|
|
1068
|
-
|
|
1068
|
+
E();
|
|
1069
1069
|
}
|
|
1070
|
-
},
|
|
1070
|
+
}, Hr = (e) => e <= 0 ? !1 : (pe(e, e - 1), !0), Nr = (e) => {
|
|
1071
1071
|
const t = c.value[0];
|
|
1072
|
-
return !t || e >= t.rows.length - 1 ? !1 : (
|
|
1073
|
-
},
|
|
1074
|
-
|
|
1075
|
-
},
|
|
1072
|
+
return !t || e >= t.rows.length - 1 ? !1 : (pe(e, e + 1), !0);
|
|
1073
|
+
}, kr = (e) => {
|
|
1074
|
+
pe(e, 0);
|
|
1075
|
+
}, Vr = (e) => {
|
|
1076
1076
|
const t = c.value[0];
|
|
1077
|
-
t &&
|
|
1078
|
-
},
|
|
1077
|
+
t && pe(e, t.rows.length - 1);
|
|
1078
|
+
}, Br = (e, t) => {
|
|
1079
1079
|
const o = c.value[0];
|
|
1080
1080
|
if (!o || e < 0 || e >= o.rows.length || t < 0 || t >= o.rows.length || e === t) return;
|
|
1081
|
-
const n = o.rows[e],
|
|
1082
|
-
if (!n || !
|
|
1083
|
-
const
|
|
1084
|
-
o.insertBefore(
|
|
1085
|
-
},
|
|
1081
|
+
const n = o.rows[e], r = o.rows[t];
|
|
1082
|
+
if (!n || !r) return;
|
|
1083
|
+
const l = document.createElement("tr");
|
|
1084
|
+
o.insertBefore(l, n), o.insertBefore(n, r), o.insertBefore(r, l), o.removeChild(l), E();
|
|
1085
|
+
}, ye = (e, t) => {
|
|
1086
1086
|
if (e < 0 || e >= g.value.length || t < 0 || t >= g.value.length || e === t) return;
|
|
1087
1087
|
const o = [...g.value], [n] = o.splice(e, 1);
|
|
1088
1088
|
n !== void 0 && o.splice(t, 0, n);
|
|
1089
|
-
const
|
|
1090
|
-
const a = [...
|
|
1091
|
-
return
|
|
1089
|
+
const r = f.value.map((l) => {
|
|
1090
|
+
const a = [...l], [i] = a.splice(e, 1);
|
|
1091
|
+
return i !== void 0 && a.splice(t, 0, i), a;
|
|
1092
1092
|
});
|
|
1093
|
-
|
|
1094
|
-
},
|
|
1095
|
-
|
|
1096
|
-
},
|
|
1097
|
-
|
|
1098
|
-
},
|
|
1093
|
+
z(o), k(r);
|
|
1094
|
+
}, Or = (e) => e <= 0 ? !1 : (ye(e, e - 1), !0), Pr = (e) => e >= g.value.length - 1 ? !1 : (ye(e, e + 1), !0), Kr = (e) => {
|
|
1095
|
+
ye(e, 0);
|
|
1096
|
+
}, zr = (e) => {
|
|
1097
|
+
ye(e, g.value.length - 1);
|
|
1098
|
+
}, $r = (e, t) => {
|
|
1099
1099
|
if (e < 0 || e >= g.value.length || t < 0 || t >= g.value.length || e === t) return;
|
|
1100
1100
|
const o = [...g.value], n = o[e];
|
|
1101
1101
|
o[e] = o[t] ?? "", o[t] = n ?? "";
|
|
1102
|
-
const
|
|
1103
|
-
const a = [...
|
|
1104
|
-
return a[e] = a[t], a[t] =
|
|
1102
|
+
const r = f.value.map((l) => {
|
|
1103
|
+
const a = [...l], i = a[e];
|
|
1104
|
+
return a[e] = a[t], a[t] = i, a;
|
|
1105
1105
|
});
|
|
1106
|
-
|
|
1107
|
-
},
|
|
1108
|
-
`),
|
|
1109
|
-
const e =
|
|
1106
|
+
z(o), k(r);
|
|
1107
|
+
}, Ge = (e) => e.map((t) => t.map((o) => String(o ?? "")).join(" ")).join(`
|
|
1108
|
+
`), Jr = () => {
|
|
1109
|
+
const e = yt();
|
|
1110
1110
|
if (e.length === 0) return "";
|
|
1111
|
-
const t = new Set(e.map((d) => d.row)), o = new Set(e.map((d) => d.column)), n = Math.min(...t),
|
|
1112
|
-
for (let d = n; d <=
|
|
1111
|
+
const t = new Set(e.map((d) => d.row)), o = new Set(e.map((d) => d.column)), n = Math.min(...t), r = Math.max(...t), l = Math.min(...o), a = Math.max(...o), i = [];
|
|
1112
|
+
for (let d = n; d <= r; d++) {
|
|
1113
1113
|
const w = [];
|
|
1114
|
-
for (let y =
|
|
1115
|
-
e.some((R) => R.row === d && R.column === y) ? w.push(
|
|
1116
|
-
|
|
1114
|
+
for (let y = l; y <= a; y++)
|
|
1115
|
+
e.some((R) => R.row === d && R.column === y) ? w.push(ve(d, y)) : w.push("");
|
|
1116
|
+
i.push(w);
|
|
1117
1117
|
}
|
|
1118
|
-
return
|
|
1119
|
-
},
|
|
1120
|
-
const t =
|
|
1121
|
-
return
|
|
1122
|
-
},
|
|
1123
|
-
const t =
|
|
1118
|
+
return Ge(i);
|
|
1119
|
+
}, Ur = () => {
|
|
1120
|
+
const t = pt().map((o) => f.value[o] ?? []);
|
|
1121
|
+
return Ge(t);
|
|
1122
|
+
}, jr = (e) => {
|
|
1123
|
+
const t = f.value[e];
|
|
1124
1124
|
return t ? t.map((o) => String(o ?? "")).join(" ") : "";
|
|
1125
|
-
},
|
|
1126
|
-
`),
|
|
1127
|
-
const
|
|
1128
|
-
for (let w =
|
|
1125
|
+
}, Wr = (e) => f.value.map((t) => String(t[e] ?? "")).join(`
|
|
1126
|
+
`), Gr = (e, t) => String(ve(e, t) ?? ""), _r = (e, t, o, n) => {
|
|
1127
|
+
const r = [], l = Math.min(e, o), a = Math.max(e, o), i = Math.min(t, n), d = Math.max(t, n);
|
|
1128
|
+
for (let w = l; w <= a; w++) {
|
|
1129
1129
|
const y = [];
|
|
1130
|
-
for (let R =
|
|
1131
|
-
y.push(
|
|
1132
|
-
|
|
1130
|
+
for (let R = i; R <= d; R++)
|
|
1131
|
+
y.push(ve(w, R));
|
|
1132
|
+
r.push(y);
|
|
1133
1133
|
}
|
|
1134
|
-
return
|
|
1135
|
-
},
|
|
1134
|
+
return Ge(r);
|
|
1135
|
+
}, Qr = (e, t, o) => {
|
|
1136
1136
|
const n = o.split(`
|
|
1137
1137
|
`);
|
|
1138
|
-
for (let
|
|
1139
|
-
const
|
|
1140
|
-
if (
|
|
1141
|
-
const a =
|
|
1142
|
-
for (let
|
|
1143
|
-
const d = a[
|
|
1144
|
-
d !== void 0 &&
|
|
1138
|
+
for (let r = 0; r < n.length; r++) {
|
|
1139
|
+
const l = n[r];
|
|
1140
|
+
if (l === void 0) continue;
|
|
1141
|
+
const a = l.split(" ");
|
|
1142
|
+
for (let i = 0; i < a.length; i++) {
|
|
1143
|
+
const d = a[i];
|
|
1144
|
+
d !== void 0 && Le(e + r, t + i, d);
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
|
-
},
|
|
1148
|
-
const t = new Set(
|
|
1149
|
-
t.add(e),
|
|
1150
|
-
},
|
|
1151
|
-
const t = new Set(
|
|
1152
|
-
t.delete(e),
|
|
1153
|
-
},
|
|
1154
|
-
|
|
1155
|
-
},
|
|
1147
|
+
}, K = p(/* @__PURE__ */ new Set()), B = p([]), O = p([]), Lt = (e) => {
|
|
1148
|
+
const t = new Set(K.value);
|
|
1149
|
+
t.add(e), K.value = t;
|
|
1150
|
+
}, Ht = (e) => {
|
|
1151
|
+
const t = new Set(K.value);
|
|
1152
|
+
t.delete(e), K.value = t;
|
|
1153
|
+
}, Ir = (e) => {
|
|
1154
|
+
K.value.has(e) ? Ht(e) : Lt(e);
|
|
1155
|
+
}, Yr = () => {
|
|
1156
1156
|
const e = /* @__PURE__ */ new Set();
|
|
1157
|
-
for (let t = 0; t <
|
|
1157
|
+
for (let t = 0; t < f.value.length; t++)
|
|
1158
1158
|
e.add(t);
|
|
1159
|
-
|
|
1160
|
-
},
|
|
1161
|
-
|
|
1162
|
-
},
|
|
1163
|
-
|
|
1164
|
-
},
|
|
1165
|
-
|
|
1166
|
-
},
|
|
1167
|
-
|
|
1168
|
-
},
|
|
1169
|
-
|
|
1170
|
-
},
|
|
1171
|
-
const
|
|
1172
|
-
|
|
1173
|
-
},
|
|
1159
|
+
K.value = e;
|
|
1160
|
+
}, Zr = () => {
|
|
1161
|
+
K.value = /* @__PURE__ */ new Set();
|
|
1162
|
+
}, Xr = (e) => K.value.has(e), qr = () => Array.from(K.value).sort((e, t) => e - t), xr = (e) => {
|
|
1163
|
+
B.value.includes(e) || (B.value = [...B.value, e], O.value = O.value.filter((t) => t !== e));
|
|
1164
|
+
}, es = (e) => {
|
|
1165
|
+
O.value.includes(e) || (O.value = [...O.value, e], B.value = B.value.filter((t) => t !== e));
|
|
1166
|
+
}, ts = (e) => {
|
|
1167
|
+
B.value = B.value.filter((t) => t !== e), O.value = O.value.filter((t) => t !== e);
|
|
1168
|
+
}, os = () => {
|
|
1169
|
+
B.value = [], O.value = [];
|
|
1170
|
+
}, ns = (e) => B.value.includes(e), rs = (e) => O.value.includes(e), ss = () => [...B.value], ls = () => [...O.value], X = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), as = (e, t, o, n) => {
|
|
1171
|
+
const r = `${e},${t}`;
|
|
1172
|
+
X.has(r) || X.set(r, /* @__PURE__ */ new Map()), X.get(r)?.set(o, n);
|
|
1173
|
+
}, cs = (e, t, o) => {
|
|
1174
1174
|
const n = `${e},${t}`;
|
|
1175
|
-
return
|
|
1176
|
-
},
|
|
1175
|
+
return X.get(n)?.get(o);
|
|
1176
|
+
}, us = (e, t, o) => {
|
|
1177
1177
|
const n = `${e},${t}`;
|
|
1178
|
-
return
|
|
1179
|
-
},
|
|
1178
|
+
return X.get(n)?.has(o) ?? !1;
|
|
1179
|
+
}, is = (e, t) => {
|
|
1180
1180
|
const o = `${e},${t}`;
|
|
1181
|
-
|
|
1182
|
-
},
|
|
1181
|
+
X.delete(o);
|
|
1182
|
+
}, fs = (e, t, o) => {
|
|
1183
1183
|
const n = `${e},${t}`;
|
|
1184
|
-
|
|
1185
|
-
},
|
|
1186
|
-
X.has(e) || X.set(e, /* @__PURE__ */ new Map()), X.get(e)?.set(t, o);
|
|
1187
|
-
}, nr = (e, t) => X.get(e)?.get(t), sr = (e, t) => X.get(e)?.has(t) ?? !1, rr = (e) => {
|
|
1188
|
-
X.delete(e);
|
|
1189
|
-
}, lr = (e, t) => {
|
|
1190
|
-
X.get(e)?.delete(t);
|
|
1191
|
-
}, ar = (e, t, o) => {
|
|
1184
|
+
X.get(n)?.delete(o);
|
|
1185
|
+
}, ds = (e, t, o) => {
|
|
1192
1186
|
q.has(e) || q.set(e, /* @__PURE__ */ new Map()), q.get(e)?.set(t, o);
|
|
1193
|
-
},
|
|
1187
|
+
}, vs = (e, t) => q.get(e)?.get(t), ws = (e, t) => q.get(e)?.has(t) ?? !1, hs = (e) => {
|
|
1194
1188
|
q.delete(e);
|
|
1195
|
-
},
|
|
1189
|
+
}, gs = (e, t) => {
|
|
1196
1190
|
q.get(e)?.delete(t);
|
|
1197
|
-
},
|
|
1198
|
-
|
|
1199
|
-
},
|
|
1200
|
-
|
|
1201
|
-
},
|
|
1202
|
-
|
|
1191
|
+
}, ps = (e, t, o) => {
|
|
1192
|
+
x.has(e) || x.set(e, /* @__PURE__ */ new Map()), x.get(e)?.set(t, o);
|
|
1193
|
+
}, ys = (e, t) => x.get(e)?.get(t), ms = (e, t) => x.get(e)?.has(t) ?? !1, Cs = (e) => {
|
|
1194
|
+
x.delete(e);
|
|
1195
|
+
}, Rs = (e, t) => {
|
|
1196
|
+
x.get(e)?.delete(t);
|
|
1197
|
+
}, Ss = (e) => () => {
|
|
1198
|
+
}, bs = (e) => () => {
|
|
1199
|
+
}, Es = (e) => () => {
|
|
1200
|
+
}, As = (e) => () => {
|
|
1201
|
+
}, Ds = (e) => {
|
|
1202
|
+
const t = H(() => S.value, (o) => {
|
|
1203
1203
|
e(o);
|
|
1204
1204
|
}, { deep: !0 });
|
|
1205
1205
|
return () => {
|
|
1206
1206
|
t();
|
|
1207
1207
|
};
|
|
1208
|
-
},
|
|
1209
|
-
const t =
|
|
1208
|
+
}, Ts = (e) => {
|
|
1209
|
+
const t = H(() => se.value, (o) => {
|
|
1210
1210
|
e(o);
|
|
1211
1211
|
}, { deep: !0 });
|
|
1212
1212
|
return () => {
|
|
1213
1213
|
t();
|
|
1214
1214
|
};
|
|
1215
|
-
},
|
|
1216
|
-
const t =
|
|
1215
|
+
}, Ms = (e) => {
|
|
1216
|
+
const t = H([W, $], ([o, n]) => {
|
|
1217
1217
|
e(o, n);
|
|
1218
1218
|
});
|
|
1219
1219
|
return () => {
|
|
1220
1220
|
t();
|
|
1221
1221
|
};
|
|
1222
|
-
},
|
|
1223
|
-
const t =
|
|
1222
|
+
}, Fs = (e) => {
|
|
1223
|
+
const t = H(() => Q.value, (o) => {
|
|
1224
1224
|
e(o);
|
|
1225
1225
|
});
|
|
1226
1226
|
return () => {
|
|
1227
1227
|
t();
|
|
1228
1228
|
};
|
|
1229
|
-
},
|
|
1230
|
-
const t =
|
|
1229
|
+
}, Ls = (e) => {
|
|
1230
|
+
const t = H(() => F.value, (o) => {
|
|
1231
1231
|
e(o ? { ...o } : null);
|
|
1232
1232
|
});
|
|
1233
1233
|
return () => {
|
|
1234
1234
|
t();
|
|
1235
1235
|
};
|
|
1236
|
-
},
|
|
1237
|
-
const t =
|
|
1238
|
-
for (const
|
|
1239
|
-
n?.has(
|
|
1236
|
+
}, Hs = (e) => {
|
|
1237
|
+
const t = H(() => V.value, (o, n) => {
|
|
1238
|
+
for (const r of o)
|
|
1239
|
+
n?.has(r) || e(r, !1);
|
|
1240
1240
|
if (n)
|
|
1241
|
-
for (const
|
|
1242
|
-
o.has(
|
|
1241
|
+
for (const r of n)
|
|
1242
|
+
o.has(r) || e(r, !0);
|
|
1243
1243
|
});
|
|
1244
1244
|
return () => {
|
|
1245
1245
|
t();
|
|
1246
1246
|
};
|
|
1247
1247
|
};
|
|
1248
|
-
let
|
|
1249
|
-
const
|
|
1250
|
-
|
|
1251
|
-
data: JSON.parse(JSON.stringify(
|
|
1248
|
+
let _ = 0, ae = null;
|
|
1249
|
+
const Nt = () => {
|
|
1250
|
+
_ === 0 && (ae = {
|
|
1251
|
+
data: JSON.parse(JSON.stringify(f.value)),
|
|
1252
1252
|
headers: [...g.value]
|
|
1253
|
-
}),
|
|
1254
|
-
},
|
|
1255
|
-
|
|
1256
|
-
},
|
|
1257
|
-
|
|
1258
|
-
},
|
|
1259
|
-
|
|
1253
|
+
}), _++;
|
|
1254
|
+
}, kt = () => {
|
|
1255
|
+
_ > 0 && (_--, _ === 0 && (ae = null, E()));
|
|
1256
|
+
}, Vt = () => {
|
|
1257
|
+
_ > 0 && ae && (k(ae.data), z(ae.headers), _ = 0, ae = null);
|
|
1258
|
+
}, Ns = () => _ > 0, ks = (e) => {
|
|
1259
|
+
Nt();
|
|
1260
1260
|
try {
|
|
1261
|
-
e(),
|
|
1261
|
+
e(), kt();
|
|
1262
1262
|
} catch (t) {
|
|
1263
|
-
throw
|
|
1263
|
+
throw Vt(), t;
|
|
1264
1264
|
}
|
|
1265
|
-
},
|
|
1266
|
-
|
|
1267
|
-
},
|
|
1265
|
+
}, _e = p(!1), Qe = /* @__PURE__ */ new Set(), Ie = /* @__PURE__ */ new Set(), Ye = /* @__PURE__ */ new Set(), ee = (e) => {
|
|
1266
|
+
_e.value = e;
|
|
1267
|
+
}, Vs = (e, t, o) => {
|
|
1268
1268
|
const n = `${e},${t}`;
|
|
1269
|
-
o ?
|
|
1270
|
-
},
|
|
1271
|
-
t ?
|
|
1272
|
-
},
|
|
1273
|
-
t ?
|
|
1274
|
-
},
|
|
1275
|
-
|
|
1269
|
+
o ? Qe.add(n) : Qe.delete(n);
|
|
1270
|
+
}, Bs = (e, t) => {
|
|
1271
|
+
t ? Ie.add(e) : Ie.delete(e);
|
|
1272
|
+
}, Os = (e, t) => {
|
|
1273
|
+
t ? Ye.add(e) : Ye.delete(e);
|
|
1274
|
+
}, Ps = () => _e.value, Ks = (e, t) => Qe.has(`${e},${t}`), zs = (e) => Ie.has(e), $s = (e) => Ye.has(e), Js = async (e) => {
|
|
1275
|
+
ee(!0);
|
|
1276
1276
|
try {
|
|
1277
1277
|
const t = await e();
|
|
1278
|
-
|
|
1278
|
+
k(t);
|
|
1279
1279
|
} finally {
|
|
1280
|
-
|
|
1280
|
+
ee(!1);
|
|
1281
1281
|
}
|
|
1282
|
-
},
|
|
1283
|
-
|
|
1282
|
+
}, Us = async (e) => {
|
|
1283
|
+
ee(!0);
|
|
1284
1284
|
try {
|
|
1285
1285
|
const t = await e();
|
|
1286
1286
|
for (const o of t)
|
|
1287
|
-
|
|
1287
|
+
de(o);
|
|
1288
1288
|
} finally {
|
|
1289
|
-
|
|
1289
|
+
ee(!1);
|
|
1290
1290
|
}
|
|
1291
|
-
},
|
|
1292
|
-
|
|
1291
|
+
}, js = async (e) => {
|
|
1292
|
+
ee(!0);
|
|
1293
1293
|
try {
|
|
1294
1294
|
const t = await e();
|
|
1295
1295
|
for (let o = t.length - 1; o >= 0; o--) {
|
|
1296
1296
|
const n = t[o];
|
|
1297
|
-
n &&
|
|
1297
|
+
n && de(n, 0);
|
|
1298
1298
|
}
|
|
1299
1299
|
} finally {
|
|
1300
|
-
|
|
1300
|
+
ee(!1);
|
|
1301
1301
|
}
|
|
1302
|
-
},
|
|
1302
|
+
}, te = p(0), oe = p(0), Ws = (e) => {
|
|
1303
|
+
te.value = Math.max(0, e);
|
|
1304
|
+
}, Gs = (e) => {
|
|
1305
|
+
oe.value = Math.max(0, e);
|
|
1306
|
+
}, _s = () => {
|
|
1307
|
+
te.value = 0;
|
|
1308
|
+
}, Qs = () => {
|
|
1309
|
+
oe.value = 0;
|
|
1310
|
+
}, Is = () => {
|
|
1311
|
+
te.value = 0, oe.value = 0;
|
|
1312
|
+
}, Ys = () => te.value, Zs = () => oe.value, Xs = (e) => e < te.value, qs = (e) => {
|
|
1313
|
+
const t = g.value.length;
|
|
1314
|
+
return e >= t - oe.value;
|
|
1315
|
+
}, xs = () => te.value > 0 || oe.value > 0;
|
|
1316
|
+
let L, Bt = () => crypto.randomUUID();
|
|
1317
|
+
const T = /* @__PURE__ */ new Map(), ce = [], el = (e) => {
|
|
1318
|
+
L = e, z(e.map((t) => t.header));
|
|
1319
|
+
}, tl = () => {
|
|
1320
|
+
L = void 0, T.clear();
|
|
1321
|
+
}, ol = () => L !== void 0, nl = () => L, be = (e) => L ? L.map((t) => typeof t.field == "function" ? t.field(e) : e[t.field]) : [], ue = (e) => {
|
|
1322
|
+
if (!L) return;
|
|
1323
|
+
const t = lt(e);
|
|
1324
|
+
if (!t) return;
|
|
1325
|
+
const o = T.get(e);
|
|
1326
|
+
if (!o) return;
|
|
1327
|
+
const n = { id: o };
|
|
1328
|
+
return L.forEach((r, l) => {
|
|
1329
|
+
if (typeof r.field == "string") {
|
|
1330
|
+
const a = t[l];
|
|
1331
|
+
r.parse ? n[r.field] = r.parse(String(a ?? ""), n) : n[r.field] = a;
|
|
1332
|
+
}
|
|
1333
|
+
}), n;
|
|
1334
|
+
}, Ot = (e) => {
|
|
1335
|
+
if (!L) return;
|
|
1336
|
+
T.clear();
|
|
1337
|
+
const t = e.map((o) => be(o));
|
|
1338
|
+
k(t), e.forEach((o, n) => {
|
|
1339
|
+
T.set(n, o.id);
|
|
1340
|
+
});
|
|
1341
|
+
}, Pt = () => {
|
|
1342
|
+
if (!L) return [];
|
|
1343
|
+
const e = [], t = f.value.length;
|
|
1344
|
+
for (let o = 0; o < t; o++) {
|
|
1345
|
+
const n = ue(o);
|
|
1346
|
+
n && e.push(n);
|
|
1347
|
+
}
|
|
1348
|
+
return e;
|
|
1349
|
+
}, rl = (e) => {
|
|
1350
|
+
const t = ne(e);
|
|
1351
|
+
if (t !== void 0)
|
|
1352
|
+
return ue(t);
|
|
1353
|
+
}, sl = (e) => T.get(e), ne = (e) => {
|
|
1354
|
+
for (const [t, o] of T.entries())
|
|
1355
|
+
if (o === e) return t;
|
|
1356
|
+
};
|
|
1303
1357
|
return {
|
|
1304
|
-
element:
|
|
1305
|
-
caption:
|
|
1306
|
-
tHead:
|
|
1307
|
-
tFoot:
|
|
1308
|
-
rows:
|
|
1309
|
-
rowCount:
|
|
1310
|
-
tBodies:
|
|
1311
|
-
tBodyCount:
|
|
1312
|
-
data:
|
|
1358
|
+
element: s,
|
|
1359
|
+
caption: Gt,
|
|
1360
|
+
tHead: _t,
|
|
1361
|
+
tFoot: Qt,
|
|
1362
|
+
rows: Te,
|
|
1363
|
+
rowCount: jt,
|
|
1364
|
+
tBodies: Me,
|
|
1365
|
+
tBodyCount: Wt,
|
|
1366
|
+
data: f,
|
|
1313
1367
|
headers: g,
|
|
1314
|
-
columnCount:
|
|
1315
|
-
createCaption:
|
|
1316
|
-
deleteCaption:
|
|
1317
|
-
createTHead:
|
|
1318
|
-
deleteTHead:
|
|
1319
|
-
createTFoot:
|
|
1320
|
-
deleteTFoot:
|
|
1321
|
-
createTBody:
|
|
1322
|
-
insertRow:
|
|
1323
|
-
deleteRow:
|
|
1324
|
-
getTHead:
|
|
1325
|
-
getTFoot:
|
|
1326
|
-
getTBody:
|
|
1327
|
-
getRow:
|
|
1328
|
-
addRow:
|
|
1329
|
-
removeRow:
|
|
1330
|
-
addColumn:
|
|
1331
|
-
removeColumn:
|
|
1332
|
-
setCell:
|
|
1333
|
-
getCell:
|
|
1334
|
-
setCaption:
|
|
1335
|
-
setHeaders:
|
|
1336
|
-
setFooter:
|
|
1337
|
-
setData:
|
|
1338
|
-
clearData:
|
|
1339
|
-
reset:
|
|
1340
|
-
sync:
|
|
1341
|
-
addRowWithAttributes:
|
|
1342
|
-
addColumnWithAttributes:
|
|
1343
|
-
setHeadersWithAttributes:
|
|
1344
|
-
setCellWithAttributes:
|
|
1345
|
-
getRowData:
|
|
1346
|
-
setRowData:
|
|
1347
|
-
getAllRowData:
|
|
1348
|
-
getColumnData:
|
|
1349
|
-
setColumnData:
|
|
1350
|
-
getCellRange:
|
|
1351
|
-
setCellRange:
|
|
1352
|
-
getHeaderData:
|
|
1353
|
-
getFooterData:
|
|
1354
|
-
setFooterCell:
|
|
1355
|
-
getFooterCell:
|
|
1356
|
-
updateCell:
|
|
1357
|
-
updateRow:
|
|
1358
|
-
getCellElement:
|
|
1359
|
-
getRowElement:
|
|
1360
|
-
selectRows:
|
|
1361
|
-
selectColumns:
|
|
1362
|
-
updateRows:
|
|
1363
|
-
updateCells:
|
|
1364
|
-
getRowElements:
|
|
1365
|
-
getRowCellElements:
|
|
1366
|
-
setRows:
|
|
1367
|
-
validateCell:
|
|
1368
|
-
validateRow:
|
|
1369
|
-
validateColumn:
|
|
1370
|
-
validateAll:
|
|
1371
|
-
sum:
|
|
1372
|
-
average:
|
|
1373
|
-
min:
|
|
1374
|
-
max:
|
|
1375
|
-
count:
|
|
1376
|
-
aggregate:
|
|
1377
|
-
transformColumn:
|
|
1378
|
-
transformRow:
|
|
1379
|
-
transformCells:
|
|
1380
|
-
exportToCSV:
|
|
1381
|
-
exportToJSON:
|
|
1382
|
-
importFromArray:
|
|
1383
|
-
importFromCSV:
|
|
1384
|
-
importFromJSON:
|
|
1385
|
-
search:
|
|
1386
|
-
searchColumn:
|
|
1387
|
-
selectedRows:
|
|
1388
|
-
selectedCells:
|
|
1389
|
-
selectRow:
|
|
1390
|
-
deselectRow:
|
|
1391
|
-
toggleRowSelection:
|
|
1392
|
-
isRowSelected:
|
|
1393
|
-
selectCell:
|
|
1394
|
-
clearSelection:
|
|
1395
|
-
enableCellEditing:
|
|
1396
|
-
disableCellEditing:
|
|
1397
|
-
enableHeaderEditing:
|
|
1398
|
-
disableHeaderEditing:
|
|
1399
|
-
enableColumnEditing:
|
|
1400
|
-
disableColumnEditing:
|
|
1401
|
-
enableRowEditing:
|
|
1402
|
-
disableRowEditing:
|
|
1403
|
-
enableEditing:
|
|
1404
|
-
groupBy:
|
|
1405
|
-
addComputedColumn:
|
|
1406
|
-
removeComputedColumn:
|
|
1368
|
+
columnCount: It,
|
|
1369
|
+
createCaption: qe,
|
|
1370
|
+
deleteCaption: xe,
|
|
1371
|
+
createTHead: Yt,
|
|
1372
|
+
deleteTHead: et,
|
|
1373
|
+
createTFoot: tt,
|
|
1374
|
+
deleteTFoot: ot,
|
|
1375
|
+
createTBody: Zt,
|
|
1376
|
+
insertRow: Xt,
|
|
1377
|
+
deleteRow: qt,
|
|
1378
|
+
getTHead: xt,
|
|
1379
|
+
getTFoot: eo,
|
|
1380
|
+
getTBody: to,
|
|
1381
|
+
getRow: oo,
|
|
1382
|
+
addRow: de,
|
|
1383
|
+
removeRow: Fe,
|
|
1384
|
+
addColumn: nt,
|
|
1385
|
+
removeColumn: rt,
|
|
1386
|
+
setCell: Le,
|
|
1387
|
+
getCell: ve,
|
|
1388
|
+
setCaption: no,
|
|
1389
|
+
setHeaders: z,
|
|
1390
|
+
setFooter: ro,
|
|
1391
|
+
setData: k,
|
|
1392
|
+
clearData: so,
|
|
1393
|
+
reset: lo,
|
|
1394
|
+
sync: ao,
|
|
1395
|
+
addRowWithAttributes: co,
|
|
1396
|
+
addColumnWithAttributes: uo,
|
|
1397
|
+
setHeadersWithAttributes: io,
|
|
1398
|
+
setCellWithAttributes: st,
|
|
1399
|
+
getRowData: lt,
|
|
1400
|
+
setRowData: He,
|
|
1401
|
+
getAllRowData: fo,
|
|
1402
|
+
getColumnData: vo,
|
|
1403
|
+
setColumnData: wo,
|
|
1404
|
+
getCellRange: ho,
|
|
1405
|
+
setCellRange: go,
|
|
1406
|
+
getHeaderData: po,
|
|
1407
|
+
getFooterData: yo,
|
|
1408
|
+
setFooterCell: mo,
|
|
1409
|
+
getFooterCell: Co,
|
|
1410
|
+
updateCell: Ne,
|
|
1411
|
+
updateRow: ke,
|
|
1412
|
+
getCellElement: at,
|
|
1413
|
+
getRowElement: Ro,
|
|
1414
|
+
selectRows: So,
|
|
1415
|
+
selectColumns: bo,
|
|
1416
|
+
updateRows: Eo,
|
|
1417
|
+
updateCells: Ao,
|
|
1418
|
+
getRowElements: Do,
|
|
1419
|
+
getRowCellElements: To,
|
|
1420
|
+
setRows: Mo,
|
|
1421
|
+
validateCell: Fo,
|
|
1422
|
+
validateRow: Lo,
|
|
1423
|
+
validateColumn: Ho,
|
|
1424
|
+
validateAll: No,
|
|
1425
|
+
sum: ko,
|
|
1426
|
+
average: Vo,
|
|
1427
|
+
min: Bo,
|
|
1428
|
+
max: Oo,
|
|
1429
|
+
count: Po,
|
|
1430
|
+
aggregate: Ko,
|
|
1431
|
+
transformColumn: zo,
|
|
1432
|
+
transformRow: $o,
|
|
1433
|
+
transformCells: Jo,
|
|
1434
|
+
exportToCSV: Uo,
|
|
1435
|
+
exportToJSON: jo,
|
|
1436
|
+
importFromArray: Wo,
|
|
1437
|
+
importFromCSV: Go,
|
|
1438
|
+
importFromJSON: _o,
|
|
1439
|
+
search: Qo,
|
|
1440
|
+
searchColumn: Io,
|
|
1441
|
+
selectedRows: S,
|
|
1442
|
+
selectedCells: se,
|
|
1443
|
+
selectRow: Ve,
|
|
1444
|
+
deselectRow: Be,
|
|
1445
|
+
toggleRowSelection: Yo,
|
|
1446
|
+
isRowSelected: Zo,
|
|
1447
|
+
selectCell: Xo,
|
|
1448
|
+
clearSelection: qo,
|
|
1449
|
+
enableCellEditing: Ke,
|
|
1450
|
+
disableCellEditing: en,
|
|
1451
|
+
enableHeaderEditing: tn,
|
|
1452
|
+
disableHeaderEditing: on,
|
|
1453
|
+
enableColumnEditing: nn,
|
|
1454
|
+
disableColumnEditing: rn,
|
|
1455
|
+
enableRowEditing: sn,
|
|
1456
|
+
disableRowEditing: ln,
|
|
1457
|
+
enableEditing: an,
|
|
1458
|
+
groupBy: cn,
|
|
1459
|
+
addComputedColumn: un,
|
|
1460
|
+
removeComputedColumn: fn,
|
|
1407
1461
|
get pagination() {
|
|
1408
1462
|
return A;
|
|
1409
1463
|
},
|
|
1410
|
-
paginate:
|
|
1411
|
-
nextPage:
|
|
1412
|
-
previousPage:
|
|
1413
|
-
goToPage:
|
|
1464
|
+
paginate: dn,
|
|
1465
|
+
nextPage: vn,
|
|
1466
|
+
previousPage: wn,
|
|
1467
|
+
goToPage: hn,
|
|
1414
1468
|
get virtualScroll() {
|
|
1415
1469
|
return D;
|
|
1416
1470
|
},
|
|
1417
|
-
enableVirtualScrolling:
|
|
1418
|
-
disableVirtualScrolling:
|
|
1419
|
-
transaction:
|
|
1420
|
-
onDataChange:
|
|
1421
|
-
sortState:
|
|
1422
|
-
sortColumnAscending:
|
|
1423
|
-
sortColumnDescending:
|
|
1424
|
-
sortColumnAscendingWith:
|
|
1425
|
-
sortColumnDescendingWith:
|
|
1426
|
-
clearColumnSort:
|
|
1427
|
-
getSortedColumnIndex:
|
|
1428
|
-
isSortedAscending:
|
|
1429
|
-
isSortedDescending:
|
|
1430
|
-
isSorted:
|
|
1431
|
-
filterState:
|
|
1432
|
-
filterRows:
|
|
1433
|
-
filterColumn:
|
|
1434
|
-
filterColumnByValue:
|
|
1435
|
-
filterColumnByValues:
|
|
1436
|
-
clearFilters:
|
|
1437
|
-
getFilteredRowIndices:
|
|
1438
|
-
setRowKeyFunction:
|
|
1439
|
-
clearRowKeyFunction:
|
|
1440
|
-
hasRowKeyFunction:
|
|
1441
|
-
getRowByKey:
|
|
1442
|
-
getRowIndexByKey:
|
|
1443
|
-
updateRowByKey:
|
|
1444
|
-
removeRowByKey:
|
|
1445
|
-
hasRowWithKey:
|
|
1446
|
-
getRowKey:
|
|
1447
|
-
getAllRowKeys:
|
|
1448
|
-
setColumnDefinition:
|
|
1449
|
-
setColumnDefinitions:
|
|
1450
|
-
clearColumnDefinition:
|
|
1451
|
-
clearColumnDefinitions:
|
|
1452
|
-
getColumnDefinition:
|
|
1453
|
-
hasColumnDefinition:
|
|
1454
|
-
getParsedCell:
|
|
1455
|
-
getParsedRowData:
|
|
1456
|
-
getParsedColumnData:
|
|
1457
|
-
getParsedData:
|
|
1458
|
-
dirtyState:
|
|
1459
|
-
markClean:
|
|
1460
|
-
markDirty:
|
|
1461
|
-
isDirty:
|
|
1462
|
-
hasChanges:
|
|
1463
|
-
getChangedCells:
|
|
1464
|
-
getChangedRowIndices:
|
|
1465
|
-
getChangedColumnIndices:
|
|
1466
|
-
undo:
|
|
1467
|
-
redo:
|
|
1468
|
-
clearHistory:
|
|
1469
|
-
canUndo:
|
|
1470
|
-
canRedo:
|
|
1471
|
-
getUndoStackSize:
|
|
1472
|
-
getRedoStackSize:
|
|
1473
|
-
setHistoryLimit:
|
|
1474
|
-
getHistoryLimit:
|
|
1475
|
-
selectAllRows:
|
|
1476
|
-
deselectAllRows:
|
|
1477
|
-
selectRowRange:
|
|
1478
|
-
invertRowSelection:
|
|
1479
|
-
getSelectedRowData:
|
|
1480
|
-
getSelectedRowIndices:
|
|
1481
|
-
getSelectedCellIndices:
|
|
1482
|
-
focusedCell:
|
|
1483
|
-
focusCell:
|
|
1484
|
-
clearCellFocus:
|
|
1485
|
-
getFocusedCell:
|
|
1486
|
-
isCellFocused:
|
|
1487
|
-
moveFocusUp:
|
|
1488
|
-
moveFocusDown:
|
|
1489
|
-
moveFocusLeft:
|
|
1490
|
-
moveFocusRight:
|
|
1491
|
-
moveFocusToFirstCell:
|
|
1492
|
-
moveFocusToLastCell:
|
|
1493
|
-
moveFocusToRowStart:
|
|
1494
|
-
moveFocusToRowEnd:
|
|
1495
|
-
enableKeyboardNavigation:
|
|
1496
|
-
visibleColumnCount:
|
|
1497
|
-
hideColumn:
|
|
1498
|
-
showColumn:
|
|
1499
|
-
toggleColumnVisibility:
|
|
1500
|
-
isColumnVisible:
|
|
1501
|
-
getVisibleColumnIndices:
|
|
1502
|
-
getHiddenColumnIndices:
|
|
1503
|
-
moveRow:
|
|
1504
|
-
moveRowUp:
|
|
1505
|
-
moveRowDown:
|
|
1506
|
-
moveRowToTop:
|
|
1507
|
-
moveRowToBottom:
|
|
1508
|
-
swapRows:
|
|
1509
|
-
moveColumn:
|
|
1510
|
-
moveColumnLeft:
|
|
1511
|
-
moveColumnRight:
|
|
1512
|
-
moveColumnToStart:
|
|
1513
|
-
moveColumnToEnd:
|
|
1514
|
-
swapColumns:
|
|
1515
|
-
copySelectedCells:
|
|
1516
|
-
copySelectedRows:
|
|
1517
|
-
copyRow:
|
|
1518
|
-
copyColumn:
|
|
1519
|
-
copyCell:
|
|
1520
|
-
copyCellRange:
|
|
1521
|
-
pasteAtCell:
|
|
1522
|
-
expandedRows:
|
|
1523
|
-
pinnedTopRows:
|
|
1524
|
-
pinnedBottomRows:
|
|
1525
|
-
expandRow:
|
|
1526
|
-
collapseRow:
|
|
1527
|
-
toggleRowExpansion:
|
|
1528
|
-
expandAllRows:
|
|
1529
|
-
collapseAllRows:
|
|
1530
|
-
isRowExpanded:
|
|
1531
|
-
getExpandedRowIndices:
|
|
1532
|
-
pinRowTop:
|
|
1533
|
-
pinRowBottom:
|
|
1534
|
-
unpinRow:
|
|
1535
|
-
unpinAllRows:
|
|
1536
|
-
isRowPinnedTop:
|
|
1537
|
-
isRowPinnedBottom:
|
|
1538
|
-
getPinnedTopRowIndices:
|
|
1539
|
-
getPinnedBottomRowIndices:
|
|
1540
|
-
setCellMeta:
|
|
1541
|
-
getCellMeta:
|
|
1542
|
-
hasCellMeta:
|
|
1543
|
-
clearCellMeta:
|
|
1544
|
-
clearCellMetaKey:
|
|
1545
|
-
setRowMeta:
|
|
1546
|
-
getRowMeta:
|
|
1547
|
-
hasRowMeta:
|
|
1548
|
-
clearRowMeta:
|
|
1549
|
-
clearRowMetaKey:
|
|
1550
|
-
setColumnMeta:
|
|
1551
|
-
getColumnMeta:
|
|
1552
|
-
hasColumnMeta:
|
|
1553
|
-
clearColumnMeta:
|
|
1554
|
-
clearColumnMetaKey:
|
|
1555
|
-
onRowAdd:
|
|
1556
|
-
onRowRemove:
|
|
1557
|
-
onRowUpdate:
|
|
1558
|
-
onCellChange:
|
|
1559
|
-
onRowSelectionChange:
|
|
1560
|
-
onCellSelectionChange:
|
|
1561
|
-
onSortChange:
|
|
1562
|
-
onFilterChange:
|
|
1563
|
-
onCellFocusChange:
|
|
1564
|
-
onColumnVisibilityChange:
|
|
1565
|
-
beginBatchUpdate:
|
|
1566
|
-
endBatchUpdate:
|
|
1567
|
-
cancelBatchUpdate:
|
|
1568
|
-
isBatchUpdating:
|
|
1569
|
-
batchUpdate:
|
|
1570
|
-
tableLoading:
|
|
1571
|
-
setTableLoading:
|
|
1572
|
-
setCellLoading:
|
|
1573
|
-
setRowLoading:
|
|
1574
|
-
setColumnLoading:
|
|
1575
|
-
isTableLoading:
|
|
1576
|
-
isCellLoading:
|
|
1577
|
-
isRowLoading:
|
|
1578
|
-
isColumnLoading:
|
|
1579
|
-
loadData:
|
|
1580
|
-
appendRowsAsync:
|
|
1581
|
-
prependRowsAsync:
|
|
1582
|
-
frozenLeftColumnCount:
|
|
1583
|
-
frozenRightColumnCount:
|
|
1584
|
-
freezeColumnsLeft:
|
|
1585
|
-
|
|
1471
|
+
enableVirtualScrolling: gn,
|
|
1472
|
+
disableVirtualScrolling: pn,
|
|
1473
|
+
transaction: mn,
|
|
1474
|
+
onDataChange: Cn,
|
|
1475
|
+
sortState: Rn,
|
|
1476
|
+
sortColumnAscending: Sn,
|
|
1477
|
+
sortColumnDescending: bn,
|
|
1478
|
+
sortColumnAscendingWith: En,
|
|
1479
|
+
sortColumnDescendingWith: An,
|
|
1480
|
+
clearColumnSort: Dn,
|
|
1481
|
+
getSortedColumnIndex: Tn,
|
|
1482
|
+
isSortedAscending: Mn,
|
|
1483
|
+
isSortedDescending: Fn,
|
|
1484
|
+
isSorted: Ln,
|
|
1485
|
+
filterState: Nn,
|
|
1486
|
+
filterRows: wt,
|
|
1487
|
+
filterColumn: $e,
|
|
1488
|
+
filterColumnByValue: kn,
|
|
1489
|
+
filterColumnByValues: Vn,
|
|
1490
|
+
clearFilters: Bn,
|
|
1491
|
+
getFilteredRowIndices: On,
|
|
1492
|
+
setRowKeyFunction: Pn,
|
|
1493
|
+
clearRowKeyFunction: Kn,
|
|
1494
|
+
hasRowKeyFunction: zn,
|
|
1495
|
+
getRowByKey: Un,
|
|
1496
|
+
getRowIndexByKey: he,
|
|
1497
|
+
updateRowByKey: jn,
|
|
1498
|
+
removeRowByKey: Wn,
|
|
1499
|
+
hasRowWithKey: Gn,
|
|
1500
|
+
getRowKey: $n,
|
|
1501
|
+
getAllRowKeys: Jn,
|
|
1502
|
+
setColumnDefinition: _n,
|
|
1503
|
+
setColumnDefinitions: Qn,
|
|
1504
|
+
clearColumnDefinition: In,
|
|
1505
|
+
clearColumnDefinitions: Yn,
|
|
1506
|
+
getColumnDefinition: Zn,
|
|
1507
|
+
hasColumnDefinition: Xn,
|
|
1508
|
+
getParsedCell: qn,
|
|
1509
|
+
getParsedRowData: ht,
|
|
1510
|
+
getParsedColumnData: xn,
|
|
1511
|
+
getParsedData: er,
|
|
1512
|
+
dirtyState: ge,
|
|
1513
|
+
markClean: tr,
|
|
1514
|
+
markDirty: or,
|
|
1515
|
+
isDirty: nr,
|
|
1516
|
+
hasChanges: rr,
|
|
1517
|
+
getChangedCells: sr,
|
|
1518
|
+
getChangedRowIndices: lr,
|
|
1519
|
+
getChangedColumnIndices: ar,
|
|
1520
|
+
undo: cr,
|
|
1521
|
+
redo: ur,
|
|
1522
|
+
clearHistory: ir,
|
|
1523
|
+
canUndo: fr,
|
|
1524
|
+
canRedo: dr,
|
|
1525
|
+
getUndoStackSize: vr,
|
|
1526
|
+
getRedoStackSize: wr,
|
|
1527
|
+
setHistoryLimit: hr,
|
|
1528
|
+
getHistoryLimit: gr,
|
|
1529
|
+
selectAllRows: pr,
|
|
1530
|
+
deselectAllRows: yr,
|
|
1531
|
+
selectRowRange: mr,
|
|
1532
|
+
invertRowSelection: Cr,
|
|
1533
|
+
getSelectedRowData: Rr,
|
|
1534
|
+
getSelectedRowIndices: pt,
|
|
1535
|
+
getSelectedCellIndices: yt,
|
|
1536
|
+
focusedCell: F,
|
|
1537
|
+
focusCell: j,
|
|
1538
|
+
clearCellFocus: Sr,
|
|
1539
|
+
getFocusedCell: br,
|
|
1540
|
+
isCellFocused: Er,
|
|
1541
|
+
moveFocusUp: mt,
|
|
1542
|
+
moveFocusDown: Ct,
|
|
1543
|
+
moveFocusLeft: Rt,
|
|
1544
|
+
moveFocusRight: St,
|
|
1545
|
+
moveFocusToFirstCell: bt,
|
|
1546
|
+
moveFocusToLastCell: Et,
|
|
1547
|
+
moveFocusToRowStart: At,
|
|
1548
|
+
moveFocusToRowEnd: Dt,
|
|
1549
|
+
enableKeyboardNavigation: Ar,
|
|
1550
|
+
visibleColumnCount: Dr,
|
|
1551
|
+
hideColumn: Mt,
|
|
1552
|
+
showColumn: Ft,
|
|
1553
|
+
toggleColumnVisibility: Tr,
|
|
1554
|
+
isColumnVisible: Mr,
|
|
1555
|
+
getVisibleColumnIndices: Fr,
|
|
1556
|
+
getHiddenColumnIndices: Lr,
|
|
1557
|
+
moveRow: pe,
|
|
1558
|
+
moveRowUp: Hr,
|
|
1559
|
+
moveRowDown: Nr,
|
|
1560
|
+
moveRowToTop: kr,
|
|
1561
|
+
moveRowToBottom: Vr,
|
|
1562
|
+
swapRows: Br,
|
|
1563
|
+
moveColumn: ye,
|
|
1564
|
+
moveColumnLeft: Or,
|
|
1565
|
+
moveColumnRight: Pr,
|
|
1566
|
+
moveColumnToStart: Kr,
|
|
1567
|
+
moveColumnToEnd: zr,
|
|
1568
|
+
swapColumns: $r,
|
|
1569
|
+
copySelectedCells: Jr,
|
|
1570
|
+
copySelectedRows: Ur,
|
|
1571
|
+
copyRow: jr,
|
|
1572
|
+
copyColumn: Wr,
|
|
1573
|
+
copyCell: Gr,
|
|
1574
|
+
copyCellRange: _r,
|
|
1575
|
+
pasteAtCell: Qr,
|
|
1576
|
+
expandedRows: K,
|
|
1577
|
+
pinnedTopRows: B,
|
|
1578
|
+
pinnedBottomRows: O,
|
|
1579
|
+
expandRow: Lt,
|
|
1580
|
+
collapseRow: Ht,
|
|
1581
|
+
toggleRowExpansion: Ir,
|
|
1582
|
+
expandAllRows: Yr,
|
|
1583
|
+
collapseAllRows: Zr,
|
|
1584
|
+
isRowExpanded: Xr,
|
|
1585
|
+
getExpandedRowIndices: qr,
|
|
1586
|
+
pinRowTop: xr,
|
|
1587
|
+
pinRowBottom: es,
|
|
1588
|
+
unpinRow: ts,
|
|
1589
|
+
unpinAllRows: os,
|
|
1590
|
+
isRowPinnedTop: ns,
|
|
1591
|
+
isRowPinnedBottom: rs,
|
|
1592
|
+
getPinnedTopRowIndices: ss,
|
|
1593
|
+
getPinnedBottomRowIndices: ls,
|
|
1594
|
+
setCellMeta: as,
|
|
1595
|
+
getCellMeta: cs,
|
|
1596
|
+
hasCellMeta: us,
|
|
1597
|
+
clearCellMeta: is,
|
|
1598
|
+
clearCellMetaKey: fs,
|
|
1599
|
+
setRowMeta: ds,
|
|
1600
|
+
getRowMeta: vs,
|
|
1601
|
+
hasRowMeta: ws,
|
|
1602
|
+
clearRowMeta: hs,
|
|
1603
|
+
clearRowMetaKey: gs,
|
|
1604
|
+
setColumnMeta: ps,
|
|
1605
|
+
getColumnMeta: ys,
|
|
1606
|
+
hasColumnMeta: ms,
|
|
1607
|
+
clearColumnMeta: Cs,
|
|
1608
|
+
clearColumnMetaKey: Rs,
|
|
1609
|
+
onRowAdd: Ss,
|
|
1610
|
+
onRowRemove: bs,
|
|
1611
|
+
onRowUpdate: Es,
|
|
1612
|
+
onCellChange: As,
|
|
1613
|
+
onRowSelectionChange: Ds,
|
|
1614
|
+
onCellSelectionChange: Ts,
|
|
1615
|
+
onSortChange: Ms,
|
|
1616
|
+
onFilterChange: Fs,
|
|
1617
|
+
onCellFocusChange: Ls,
|
|
1618
|
+
onColumnVisibilityChange: Hs,
|
|
1619
|
+
beginBatchUpdate: Nt,
|
|
1620
|
+
endBatchUpdate: kt,
|
|
1621
|
+
cancelBatchUpdate: Vt,
|
|
1622
|
+
isBatchUpdating: Ns,
|
|
1623
|
+
batchUpdate: ks,
|
|
1624
|
+
tableLoading: _e,
|
|
1625
|
+
setTableLoading: ee,
|
|
1626
|
+
setCellLoading: Vs,
|
|
1627
|
+
setRowLoading: Bs,
|
|
1628
|
+
setColumnLoading: Os,
|
|
1629
|
+
isTableLoading: Ps,
|
|
1630
|
+
isCellLoading: Ks,
|
|
1631
|
+
isRowLoading: zs,
|
|
1632
|
+
isColumnLoading: $s,
|
|
1633
|
+
loadData: Js,
|
|
1634
|
+
appendRowsAsync: Us,
|
|
1635
|
+
prependRowsAsync: js,
|
|
1636
|
+
frozenLeftColumnCount: te,
|
|
1637
|
+
frozenRightColumnCount: oe,
|
|
1638
|
+
freezeColumnsLeft: Ws,
|
|
1639
|
+
freezeColumnsRight: Gs,
|
|
1640
|
+
unfreezeColumnsLeft: _s,
|
|
1641
|
+
unfreezeColumnsRight: Qs,
|
|
1642
|
+
unfreezeAllColumns: Is,
|
|
1643
|
+
getFrozenLeftColumnCount: Ys,
|
|
1644
|
+
getFrozenRightColumnCount: Zs,
|
|
1645
|
+
isColumnFrozenLeft: Xs,
|
|
1646
|
+
isColumnFrozenRight: qs,
|
|
1647
|
+
hasFrozenColumns: xs,
|
|
1648
|
+
// Record-based data (Shared Reactive Data Schema)
|
|
1649
|
+
setRecordColumns: el,
|
|
1650
|
+
clearRecordColumns: tl,
|
|
1651
|
+
hasRecordColumns: ol,
|
|
1652
|
+
getRecordColumns: nl,
|
|
1653
|
+
setRecords: Ot,
|
|
1654
|
+
getRecords: Pt,
|
|
1655
|
+
getRecordById: rl,
|
|
1656
|
+
getRecordId: sl,
|
|
1657
|
+
getRowIndexForRecord: ne,
|
|
1658
|
+
updateRecord: (e, t) => {
|
|
1659
|
+
if (!L) return !1;
|
|
1660
|
+
const o = ne(e);
|
|
1661
|
+
if (o === void 0) return !1;
|
|
1662
|
+
const n = ue(o);
|
|
1663
|
+
if (!n) return !1;
|
|
1664
|
+
const r = { ...n, ...t }, l = be(r);
|
|
1665
|
+
return He(o, l), ce.forEach((a) => a(e, r, "update")), !0;
|
|
1666
|
+
},
|
|
1667
|
+
addRecord: (e, t) => {
|
|
1668
|
+
const o = "id" in e && typeof e.id == "string" && e.id.length > 0 ? e.id : Bt(), n = { ...e, id: o };
|
|
1669
|
+
if (L) {
|
|
1670
|
+
const r = be(n);
|
|
1671
|
+
de(r, t);
|
|
1672
|
+
const l = t ?? f.value.length - 1;
|
|
1673
|
+
if (t !== void 0 && t < f.value.length - 1) {
|
|
1674
|
+
const a = Array.from(T.entries()).sort((i, d) => d[0] - i[0]);
|
|
1675
|
+
for (const [i, d] of a)
|
|
1676
|
+
i >= l && (T.delete(i), T.set(i + 1, d));
|
|
1677
|
+
}
|
|
1678
|
+
T.set(l, o), ce.forEach((a) => a(o, n, "add"));
|
|
1679
|
+
}
|
|
1680
|
+
return o;
|
|
1681
|
+
},
|
|
1682
|
+
removeRecord: (e) => {
|
|
1683
|
+
const t = ne(e);
|
|
1684
|
+
if (t === void 0) return !1;
|
|
1685
|
+
const o = ue(t);
|
|
1686
|
+
Fe(t), T.delete(t);
|
|
1687
|
+
const n = Array.from(T.entries()).sort((r, l) => r[0] - l[0]);
|
|
1688
|
+
for (const [r, l] of n)
|
|
1689
|
+
r > t && (T.delete(r), T.set(r - 1, l));
|
|
1690
|
+
return o && ce.forEach((r) => r(e, o, "remove")), !0;
|
|
1691
|
+
},
|
|
1692
|
+
hasRecord: (e) => ne(e) !== void 0,
|
|
1693
|
+
getSelectedRecordIds: () => {
|
|
1694
|
+
const e = [];
|
|
1695
|
+
for (const t of S.value) {
|
|
1696
|
+
const o = T.get(t);
|
|
1697
|
+
o && e.push(o);
|
|
1698
|
+
}
|
|
1699
|
+
return e;
|
|
1700
|
+
},
|
|
1701
|
+
selectRecords: (e) => {
|
|
1702
|
+
for (const t of e) {
|
|
1703
|
+
const o = ne(t);
|
|
1704
|
+
o !== void 0 && Ve(o);
|
|
1705
|
+
}
|
|
1586
1706
|
},
|
|
1587
|
-
|
|
1588
|
-
|
|
1707
|
+
deselectRecords: (e) => {
|
|
1708
|
+
for (const t of e) {
|
|
1709
|
+
const o = ne(t);
|
|
1710
|
+
o !== void 0 && Be(o);
|
|
1711
|
+
}
|
|
1589
1712
|
},
|
|
1590
|
-
|
|
1591
|
-
|
|
1713
|
+
getSelectedRecords: () => {
|
|
1714
|
+
const e = [];
|
|
1715
|
+
for (const t of S.value) {
|
|
1716
|
+
const o = ue(t);
|
|
1717
|
+
o && e.push(o);
|
|
1718
|
+
}
|
|
1719
|
+
return e;
|
|
1592
1720
|
},
|
|
1593
|
-
|
|
1594
|
-
|
|
1721
|
+
onRecordChange: (e) => {
|
|
1722
|
+
const t = (o, n, r) => {
|
|
1723
|
+
e(o, n, r);
|
|
1724
|
+
};
|
|
1725
|
+
return ce.push(t), () => {
|
|
1726
|
+
const o = ce.indexOf(t);
|
|
1727
|
+
o >= 0 && ce.splice(o, 1);
|
|
1728
|
+
};
|
|
1595
1729
|
},
|
|
1596
|
-
|
|
1597
|
-
|
|
1730
|
+
setIdGenerator: (e) => {
|
|
1731
|
+
Bt = e;
|
|
1598
1732
|
},
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
return e >= t - ee.value;
|
|
1733
|
+
rowToRecord: ue,
|
|
1734
|
+
recordToRow: be,
|
|
1735
|
+
exportRecordsToJSON: () => {
|
|
1736
|
+
const e = Pt();
|
|
1737
|
+
return JSON.stringify(e, null, 2);
|
|
1605
1738
|
},
|
|
1606
|
-
|
|
1739
|
+
importRecordsFromJSON: (e) => {
|
|
1740
|
+
try {
|
|
1741
|
+
const t = JSON.parse(e);
|
|
1742
|
+
if (!Array.isArray(t))
|
|
1743
|
+
throw new Error("JSON must be an array of records");
|
|
1744
|
+
for (const o of t) {
|
|
1745
|
+
if (typeof o != "object" || o === null)
|
|
1746
|
+
throw new Error("Each record must be an object");
|
|
1747
|
+
if (!("id" in o) || typeof o.id != "string")
|
|
1748
|
+
throw new Error("Each record must have a string id field");
|
|
1749
|
+
}
|
|
1750
|
+
Ot(t);
|
|
1751
|
+
} catch (t) {
|
|
1752
|
+
throw new Error(`Invalid JSON: ${t instanceof Error ? t.message : String(t)}`);
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1607
1755
|
};
|
|
1608
1756
|
}
|
|
1757
|
+
const Xe = Symbol("idGenerated");
|
|
1758
|
+
function il() {
|
|
1759
|
+
return crypto.randomUUID();
|
|
1760
|
+
}
|
|
1761
|
+
function Ml(s, u = il) {
|
|
1762
|
+
return "id" in s && typeof s.id == "string" && s.id.length > 0 ? s : {
|
|
1763
|
+
...s,
|
|
1764
|
+
id: u(),
|
|
1765
|
+
[Xe]: !0
|
|
1766
|
+
};
|
|
1767
|
+
}
|
|
1768
|
+
function fl(s) {
|
|
1769
|
+
return Xe in s && s[Xe] === !0;
|
|
1770
|
+
}
|
|
1771
|
+
function Fl(s) {
|
|
1772
|
+
return typeof s == "string" && s.length > 0;
|
|
1773
|
+
}
|
|
1774
|
+
function Ll(s, u) {
|
|
1775
|
+
return s.find((c) => c.id === u);
|
|
1776
|
+
}
|
|
1777
|
+
function Hl(s, u) {
|
|
1778
|
+
return s.findIndex((c) => c.id === u);
|
|
1779
|
+
}
|
|
1780
|
+
function Nl(s) {
|
|
1781
|
+
if (!fl(s))
|
|
1782
|
+
return s;
|
|
1783
|
+
const { id: u, ...c } = s;
|
|
1784
|
+
return c;
|
|
1785
|
+
}
|
|
1609
1786
|
export {
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1787
|
+
Xe as ID_GENERATED,
|
|
1788
|
+
Ml as ensureId,
|
|
1789
|
+
Ll as findById,
|
|
1790
|
+
il as generateId,
|
|
1791
|
+
Hl as indexById,
|
|
1792
|
+
Ae as isCellConfig,
|
|
1793
|
+
Fl as isValidId,
|
|
1794
|
+
Jt as isValidationError,
|
|
1795
|
+
Al as isValidationErrorArray,
|
|
1796
|
+
Dl as isValidationResult,
|
|
1797
|
+
Nl as stripGeneratedId,
|
|
1798
|
+
Tl as useTable,
|
|
1799
|
+
fl as wasIdGenerated
|
|
1615
1800
|
};
|