@guiexpert/solid-table 1.1.61 → 1.1.62
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/index.cjs +9 -9
- package/index.js +332 -321
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const ke = (
|
|
1
|
+
const ke = (l, e) => l === e, se = Symbol("solid-proxy"), Fe = typeof Proxy == "function", ge = {
|
|
2
2
|
equals: ke
|
|
3
3
|
};
|
|
4
4
|
let ye = we;
|
|
@@ -10,97 +10,97 @@ const L = 1, G = 2, xe = {
|
|
|
10
10
|
};
|
|
11
11
|
var R = null;
|
|
12
12
|
let ee = null, Ie = null, w = null, M = null, O = null, q = 0;
|
|
13
|
-
function Oe(
|
|
14
|
-
const t = w, s = R, o =
|
|
13
|
+
function Oe(l, e) {
|
|
14
|
+
const t = w, s = R, o = l.length === 0, i = e === void 0 ? s : e, r = o ? xe : {
|
|
15
15
|
owned: null,
|
|
16
16
|
cleanups: null,
|
|
17
17
|
context: i ? i.context : null,
|
|
18
18
|
owner: i
|
|
19
|
-
},
|
|
19
|
+
}, a = o ? l : () => l(() => Z(() => H(r)));
|
|
20
20
|
R = r, w = null;
|
|
21
21
|
try {
|
|
22
|
-
return V(
|
|
22
|
+
return V(a, !0);
|
|
23
23
|
} finally {
|
|
24
24
|
w = t, R = s;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
function oe(
|
|
28
|
-
const s =
|
|
27
|
+
function oe(l, e, t) {
|
|
28
|
+
const s = le(l, e, !1, L);
|
|
29
29
|
$(s);
|
|
30
30
|
}
|
|
31
|
-
function Le(
|
|
31
|
+
function Le(l, e, t) {
|
|
32
32
|
ye = _e;
|
|
33
|
-
const s =
|
|
33
|
+
const s = le(l, e, !1, L);
|
|
34
34
|
s.user = !0, O ? O.push(s) : $(s);
|
|
35
35
|
}
|
|
36
|
-
function Be(
|
|
36
|
+
function Be(l, e, t) {
|
|
37
37
|
t = t ? Object.assign({}, ge, t) : ge;
|
|
38
|
-
const s =
|
|
38
|
+
const s = le(l, e, !0, 0);
|
|
39
39
|
return s.observers = null, s.observerSlots = null, s.comparator = t.equals || void 0, $(s), We.bind(s);
|
|
40
40
|
}
|
|
41
|
-
function Z(
|
|
42
|
-
if (w === null) return
|
|
41
|
+
function Z(l) {
|
|
42
|
+
if (w === null) return l();
|
|
43
43
|
const e = w;
|
|
44
44
|
w = null;
|
|
45
45
|
try {
|
|
46
|
-
return
|
|
46
|
+
return l();
|
|
47
47
|
} finally {
|
|
48
48
|
w = e;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function Pe(
|
|
52
|
-
Le(() => Z(
|
|
51
|
+
function Pe(l) {
|
|
52
|
+
Le(() => Z(l));
|
|
53
53
|
}
|
|
54
54
|
function We() {
|
|
55
55
|
if (this.sources && this.state)
|
|
56
56
|
if (this.state === L) $(this);
|
|
57
57
|
else {
|
|
58
|
-
const
|
|
59
|
-
M = null, V(() => U(this), !1), M =
|
|
58
|
+
const l = M;
|
|
59
|
+
M = null, V(() => U(this), !1), M = l;
|
|
60
60
|
}
|
|
61
61
|
if (w) {
|
|
62
|
-
const
|
|
63
|
-
w.sources ? (w.sources.push(this), w.sourceSlots.push(
|
|
62
|
+
const l = this.observers ? this.observers.length : 0;
|
|
63
|
+
w.sources ? (w.sources.push(this), w.sourceSlots.push(l)) : (w.sources = [this], w.sourceSlots = [l]), this.observers ? (this.observers.push(w), this.observerSlots.push(w.sources.length - 1)) : (this.observers = [w], this.observerSlots = [w.sources.length - 1]);
|
|
64
64
|
}
|
|
65
65
|
return this.value;
|
|
66
66
|
}
|
|
67
|
-
function He(
|
|
68
|
-
let s =
|
|
69
|
-
return (!
|
|
70
|
-
for (let o = 0; o <
|
|
71
|
-
const i =
|
|
67
|
+
function He(l, e, t) {
|
|
68
|
+
let s = l.value;
|
|
69
|
+
return (!l.comparator || !l.comparator(s, e)) && (l.value = e, l.observers && l.observers.length && V(() => {
|
|
70
|
+
for (let o = 0; o < l.observers.length; o += 1) {
|
|
71
|
+
const i = l.observers[o], r = ee && ee.running;
|
|
72
72
|
r && ee.disposed.has(i), (r ? !i.tState : !i.state) && (i.pure ? M.push(i) : O.push(i), i.observers && ve(i)), r || (i.state = L);
|
|
73
73
|
}
|
|
74
74
|
if (M.length > 1e6)
|
|
75
75
|
throw M = [], new Error();
|
|
76
76
|
}, !1)), e;
|
|
77
77
|
}
|
|
78
|
-
function $(
|
|
79
|
-
if (!
|
|
80
|
-
H(
|
|
78
|
+
function $(l) {
|
|
79
|
+
if (!l.fn) return;
|
|
80
|
+
H(l);
|
|
81
81
|
const e = q;
|
|
82
82
|
$e(
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
l,
|
|
84
|
+
l.value,
|
|
85
85
|
e
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
|
-
function $e(
|
|
88
|
+
function $e(l, e, t) {
|
|
89
89
|
let s;
|
|
90
90
|
const o = R, i = w;
|
|
91
|
-
w = R =
|
|
91
|
+
w = R = l;
|
|
92
92
|
try {
|
|
93
|
-
s =
|
|
93
|
+
s = l.fn(e);
|
|
94
94
|
} catch (r) {
|
|
95
|
-
return
|
|
95
|
+
return l.pure && (l.state = L, l.owned && l.owned.forEach(H), l.owned = null), l.updatedAt = t + 1, Ce(r);
|
|
96
96
|
} finally {
|
|
97
97
|
w = i, R = o;
|
|
98
98
|
}
|
|
99
|
-
(!
|
|
99
|
+
(!l.updatedAt || l.updatedAt <= t) && (l.updatedAt != null && "observers" in l ? He(l, s) : l.value = s, l.updatedAt = t);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function le(l, e, t, s = L, o) {
|
|
102
102
|
const i = {
|
|
103
|
-
fn:
|
|
103
|
+
fn: l,
|
|
104
104
|
state: s,
|
|
105
105
|
updatedAt: null,
|
|
106
106
|
owned: null,
|
|
@@ -114,338 +114,338 @@ function ae(a, e, t, s = L, o) {
|
|
|
114
114
|
};
|
|
115
115
|
return R === null || R !== xe && (R.owned ? R.owned.push(i) : R.owned = [i]), i;
|
|
116
116
|
}
|
|
117
|
-
function z(
|
|
118
|
-
if (
|
|
119
|
-
if (
|
|
120
|
-
if (
|
|
121
|
-
const e = [
|
|
122
|
-
for (; (
|
|
123
|
-
|
|
117
|
+
function z(l) {
|
|
118
|
+
if (l.state === 0) return;
|
|
119
|
+
if (l.state === G) return U(l);
|
|
120
|
+
if (l.suspense && Z(l.suspense.inFallback)) return l.suspense.effects.push(l);
|
|
121
|
+
const e = [l];
|
|
122
|
+
for (; (l = l.owner) && (!l.updatedAt || l.updatedAt < q); )
|
|
123
|
+
l.state && e.push(l);
|
|
124
124
|
for (let t = e.length - 1; t >= 0; t--)
|
|
125
|
-
if (
|
|
126
|
-
$(
|
|
127
|
-
else if (
|
|
125
|
+
if (l = e[t], l.state === L)
|
|
126
|
+
$(l);
|
|
127
|
+
else if (l.state === G) {
|
|
128
128
|
const s = M;
|
|
129
|
-
M = null, V(() => U(
|
|
129
|
+
M = null, V(() => U(l, e[0]), !1), M = s;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
function V(
|
|
133
|
-
if (M) return
|
|
132
|
+
function V(l, e) {
|
|
133
|
+
if (M) return l();
|
|
134
134
|
let t = !1;
|
|
135
135
|
e || (M = []), O ? t = !0 : O = [], q++;
|
|
136
136
|
try {
|
|
137
|
-
const s =
|
|
137
|
+
const s = l();
|
|
138
138
|
return Ve(t), s;
|
|
139
139
|
} catch (s) {
|
|
140
140
|
t || (O = null), M = null, Ce(s);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function Ve(
|
|
144
|
-
if (M && (we(M), M = null),
|
|
143
|
+
function Ve(l) {
|
|
144
|
+
if (M && (we(M), M = null), l) return;
|
|
145
145
|
const e = O;
|
|
146
146
|
O = null, e.length && V(() => ye(e), !1);
|
|
147
147
|
}
|
|
148
|
-
function we(
|
|
149
|
-
for (let e = 0; e <
|
|
148
|
+
function we(l) {
|
|
149
|
+
for (let e = 0; e < l.length; e++) z(l[e]);
|
|
150
150
|
}
|
|
151
|
-
function _e(
|
|
151
|
+
function _e(l) {
|
|
152
152
|
let e, t = 0;
|
|
153
|
-
for (e = 0; e <
|
|
154
|
-
const s =
|
|
155
|
-
s.user ?
|
|
153
|
+
for (e = 0; e < l.length; e++) {
|
|
154
|
+
const s = l[e];
|
|
155
|
+
s.user ? l[t++] = s : z(s);
|
|
156
156
|
}
|
|
157
|
-
for (e = 0; e < t; e++) z(
|
|
157
|
+
for (e = 0; e < t; e++) z(l[e]);
|
|
158
158
|
}
|
|
159
|
-
function U(
|
|
160
|
-
|
|
161
|
-
for (let t = 0; t <
|
|
162
|
-
const s =
|
|
159
|
+
function U(l, e) {
|
|
160
|
+
l.state = 0;
|
|
161
|
+
for (let t = 0; t < l.sources.length; t += 1) {
|
|
162
|
+
const s = l.sources[t];
|
|
163
163
|
if (s.sources) {
|
|
164
164
|
const o = s.state;
|
|
165
165
|
o === L ? s !== e && (!s.updatedAt || s.updatedAt < q) && z(s) : o === G && U(s, e);
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function ve(
|
|
170
|
-
for (let e = 0; e <
|
|
171
|
-
const t =
|
|
169
|
+
function ve(l) {
|
|
170
|
+
for (let e = 0; e < l.observers.length; e += 1) {
|
|
171
|
+
const t = l.observers[e];
|
|
172
172
|
t.state || (t.state = G, t.pure ? M.push(t) : O.push(t), t.observers && ve(t));
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function H(
|
|
175
|
+
function H(l) {
|
|
176
176
|
let e;
|
|
177
|
-
if (
|
|
178
|
-
for (;
|
|
179
|
-
const t =
|
|
177
|
+
if (l.sources)
|
|
178
|
+
for (; l.sources.length; ) {
|
|
179
|
+
const t = l.sources.pop(), s = l.sourceSlots.pop(), o = t.observers;
|
|
180
180
|
if (o && o.length) {
|
|
181
181
|
const i = o.pop(), r = t.observerSlots.pop();
|
|
182
182
|
s < o.length && (i.sourceSlots[r] = s, o[s] = i, t.observerSlots[s] = r);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
if (
|
|
186
|
-
for (e =
|
|
187
|
-
delete
|
|
185
|
+
if (l.tOwned) {
|
|
186
|
+
for (e = l.tOwned.length - 1; e >= 0; e--) H(l.tOwned[e]);
|
|
187
|
+
delete l.tOwned;
|
|
188
188
|
}
|
|
189
|
-
if (
|
|
190
|
-
for (e =
|
|
191
|
-
|
|
189
|
+
if (l.owned) {
|
|
190
|
+
for (e = l.owned.length - 1; e >= 0; e--) H(l.owned[e]);
|
|
191
|
+
l.owned = null;
|
|
192
192
|
}
|
|
193
|
-
if (
|
|
194
|
-
for (e =
|
|
195
|
-
|
|
193
|
+
if (l.cleanups) {
|
|
194
|
+
for (e = l.cleanups.length - 1; e >= 0; e--) l.cleanups[e]();
|
|
195
|
+
l.cleanups = null;
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
l.state = 0;
|
|
198
198
|
}
|
|
199
|
-
function Ne(
|
|
200
|
-
return
|
|
201
|
-
cause:
|
|
199
|
+
function Ne(l) {
|
|
200
|
+
return l instanceof Error ? l : new Error(typeof l == "string" ? l : "Unknown error", {
|
|
201
|
+
cause: l
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
|
-
function Ce(
|
|
205
|
-
throw Ne(
|
|
204
|
+
function Ce(l, e = R) {
|
|
205
|
+
throw Ne(l);
|
|
206
206
|
}
|
|
207
207
|
function N() {
|
|
208
208
|
return !0;
|
|
209
209
|
}
|
|
210
210
|
const Ge = {
|
|
211
|
-
get(
|
|
212
|
-
return e === se ? t :
|
|
211
|
+
get(l, e, t) {
|
|
212
|
+
return e === se ? t : l.get(e);
|
|
213
213
|
},
|
|
214
|
-
has(
|
|
215
|
-
return e === se ? !0 :
|
|
214
|
+
has(l, e) {
|
|
215
|
+
return e === se ? !0 : l.has(e);
|
|
216
216
|
},
|
|
217
217
|
set: N,
|
|
218
218
|
deleteProperty: N,
|
|
219
|
-
getOwnPropertyDescriptor(
|
|
219
|
+
getOwnPropertyDescriptor(l, e) {
|
|
220
220
|
return {
|
|
221
221
|
configurable: !0,
|
|
222
222
|
enumerable: !0,
|
|
223
223
|
get() {
|
|
224
|
-
return
|
|
224
|
+
return l.get(e);
|
|
225
225
|
},
|
|
226
226
|
set: N,
|
|
227
227
|
deleteProperty: N
|
|
228
228
|
};
|
|
229
229
|
},
|
|
230
|
-
ownKeys(
|
|
231
|
-
return
|
|
230
|
+
ownKeys(l) {
|
|
231
|
+
return l.keys();
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
|
-
function te(
|
|
235
|
-
return (
|
|
234
|
+
function te(l) {
|
|
235
|
+
return (l = typeof l == "function" ? l() : l) ? l : {};
|
|
236
236
|
}
|
|
237
237
|
function ze() {
|
|
238
|
-
for (let
|
|
239
|
-
const t = this[
|
|
238
|
+
for (let l = 0, e = this.length; l < e; ++l) {
|
|
239
|
+
const t = this[l]();
|
|
240
240
|
if (t !== void 0) return t;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
function Ee(...
|
|
243
|
+
function Ee(...l) {
|
|
244
244
|
let e = !1;
|
|
245
|
-
for (let r = 0; r <
|
|
246
|
-
const
|
|
247
|
-
e = e || !!
|
|
245
|
+
for (let r = 0; r < l.length; r++) {
|
|
246
|
+
const a = l[r];
|
|
247
|
+
e = e || !!a && se in a, l[r] = typeof a == "function" ? (e = !0, Be(a)) : a;
|
|
248
248
|
}
|
|
249
249
|
if (Fe && e)
|
|
250
250
|
return new Proxy(
|
|
251
251
|
{
|
|
252
252
|
get(r) {
|
|
253
|
-
for (let
|
|
254
|
-
const n = te(a
|
|
253
|
+
for (let a = l.length - 1; a >= 0; a--) {
|
|
254
|
+
const n = te(l[a])[r];
|
|
255
255
|
if (n !== void 0) return n;
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
has(r) {
|
|
259
|
-
for (let
|
|
260
|
-
if (r in te(a
|
|
259
|
+
for (let a = l.length - 1; a >= 0; a--)
|
|
260
|
+
if (r in te(l[a])) return !0;
|
|
261
261
|
return !1;
|
|
262
262
|
},
|
|
263
263
|
keys() {
|
|
264
264
|
const r = [];
|
|
265
|
-
for (let
|
|
266
|
-
r.push(...Object.keys(te(a
|
|
265
|
+
for (let a = 0; a < l.length; a++)
|
|
266
|
+
r.push(...Object.keys(te(l[a])));
|
|
267
267
|
return [...new Set(r)];
|
|
268
268
|
}
|
|
269
269
|
},
|
|
270
270
|
Ge
|
|
271
271
|
);
|
|
272
272
|
const t = {}, s = /* @__PURE__ */ Object.create(null);
|
|
273
|
-
for (let r =
|
|
274
|
-
const
|
|
275
|
-
if (!
|
|
276
|
-
const n = Object.getOwnPropertyNames(
|
|
273
|
+
for (let r = l.length - 1; r >= 0; r--) {
|
|
274
|
+
const a = l[r];
|
|
275
|
+
if (!a) continue;
|
|
276
|
+
const n = Object.getOwnPropertyNames(a);
|
|
277
277
|
for (let d = n.length - 1; d >= 0; d--) {
|
|
278
278
|
const c = n[d];
|
|
279
279
|
if (c === "__proto__" || c === "constructor") continue;
|
|
280
|
-
const h = Object.getOwnPropertyDescriptor(
|
|
280
|
+
const h = Object.getOwnPropertyDescriptor(a, c);
|
|
281
281
|
if (!s[c])
|
|
282
282
|
s[c] = h.get ? {
|
|
283
283
|
enumerable: !0,
|
|
284
284
|
configurable: !0,
|
|
285
|
-
get: ze.bind(t[c] = [h.get.bind(
|
|
285
|
+
get: ze.bind(t[c] = [h.get.bind(a)])
|
|
286
286
|
} : h.value !== void 0 ? h : void 0;
|
|
287
287
|
else {
|
|
288
288
|
const p = t[c];
|
|
289
|
-
p && (h.get ? p.push(h.get.bind(
|
|
289
|
+
p && (h.get ? p.push(h.get.bind(a)) : h.value !== void 0 && p.push(() => h.value));
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
const o = {}, i = Object.keys(s);
|
|
294
294
|
for (let r = i.length - 1; r >= 0; r--) {
|
|
295
|
-
const
|
|
296
|
-
n && n.get ? Object.defineProperty(o,
|
|
295
|
+
const a = i[r], n = s[a];
|
|
296
|
+
n && n.get ? Object.defineProperty(o, a, n) : o[a] = n ? n.value : void 0;
|
|
297
297
|
}
|
|
298
298
|
return o;
|
|
299
299
|
}
|
|
300
|
-
function Ue(
|
|
301
|
-
let s = t.length, o = e.length, i = s, r = 0,
|
|
302
|
-
for (; r < o ||
|
|
303
|
-
if (e[r] === t[
|
|
304
|
-
r++,
|
|
300
|
+
function Ue(l, e, t) {
|
|
301
|
+
let s = t.length, o = e.length, i = s, r = 0, a = 0, n = e[o - 1].nextSibling, d = null;
|
|
302
|
+
for (; r < o || a < i; ) {
|
|
303
|
+
if (e[r] === t[a]) {
|
|
304
|
+
r++, a++;
|
|
305
305
|
continue;
|
|
306
306
|
}
|
|
307
307
|
for (; e[o - 1] === t[i - 1]; )
|
|
308
308
|
o--, i--;
|
|
309
309
|
if (o === r) {
|
|
310
|
-
const c = i < s ?
|
|
311
|
-
for (;
|
|
312
|
-
} else if (i ===
|
|
310
|
+
const c = i < s ? a ? t[a - 1].nextSibling : t[i - a] : n;
|
|
311
|
+
for (; a < i; ) l.insertBefore(t[a++], c);
|
|
312
|
+
} else if (i === a)
|
|
313
313
|
for (; r < o; )
|
|
314
314
|
(!d || !d.has(e[r])) && e[r].remove(), r++;
|
|
315
|
-
else if (e[r] === t[i - 1] && t[
|
|
315
|
+
else if (e[r] === t[i - 1] && t[a] === e[o - 1]) {
|
|
316
316
|
const c = e[--o].nextSibling;
|
|
317
|
-
|
|
317
|
+
l.insertBefore(t[a++], e[r++].nextSibling), l.insertBefore(t[--i], c), e[o] = t[i];
|
|
318
318
|
} else {
|
|
319
319
|
if (!d) {
|
|
320
320
|
d = /* @__PURE__ */ new Map();
|
|
321
|
-
let h =
|
|
321
|
+
let h = a;
|
|
322
322
|
for (; h < i; ) d.set(t[h], h++);
|
|
323
323
|
}
|
|
324
324
|
const c = d.get(e[r]);
|
|
325
325
|
if (c != null)
|
|
326
|
-
if (
|
|
326
|
+
if (a < c && c < i) {
|
|
327
327
|
let h = r, p = 1, u;
|
|
328
328
|
for (; ++h < o && h < i && !((u = d.get(e[h])) == null || u !== c + p); )
|
|
329
329
|
p++;
|
|
330
|
-
if (p > c -
|
|
330
|
+
if (p > c - a) {
|
|
331
331
|
const g = e[r];
|
|
332
|
-
for (;
|
|
333
|
-
} else
|
|
332
|
+
for (; a < c; ) l.insertBefore(t[a++], g);
|
|
333
|
+
} else l.replaceChild(t[a++], e[r++]);
|
|
334
334
|
} else r++;
|
|
335
335
|
else e[r++].remove();
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
function je(
|
|
339
|
+
function je(l, e, t, s = {}) {
|
|
340
340
|
let o;
|
|
341
341
|
return Oe((i) => {
|
|
342
|
-
o = i, e === document ?
|
|
342
|
+
o = i, e === document ? l() : Ye(e, l(), e.firstChild ? null : void 0, t);
|
|
343
343
|
}, s.owner), () => {
|
|
344
344
|
o(), e.textContent = "";
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
|
-
function Xe(
|
|
347
|
+
function Xe(l, e, t) {
|
|
348
348
|
let s;
|
|
349
349
|
const o = () => {
|
|
350
350
|
const r = document.createElement("template");
|
|
351
|
-
return r.innerHTML =
|
|
351
|
+
return r.innerHTML = l, r.content.firstChild;
|
|
352
352
|
}, i = () => (s || (s = o())).cloneNode(!0);
|
|
353
353
|
return i.cloneNode = i, i;
|
|
354
354
|
}
|
|
355
|
-
function Ke(
|
|
356
|
-
return Z(() =>
|
|
355
|
+
function Ke(l, e, t) {
|
|
356
|
+
return Z(() => l(e, t));
|
|
357
357
|
}
|
|
358
|
-
function Ye(
|
|
359
|
-
if (t !== void 0 && !s && (s = []), typeof e != "function") return j(
|
|
360
|
-
oe((o) => j(
|
|
358
|
+
function Ye(l, e, t, s) {
|
|
359
|
+
if (t !== void 0 && !s && (s = []), typeof e != "function") return j(l, e, s, t);
|
|
360
|
+
oe((o) => j(l, e(), o, t), s);
|
|
361
361
|
}
|
|
362
|
-
function j(
|
|
362
|
+
function j(l, e, t, s, o) {
|
|
363
363
|
for (; typeof t == "function"; ) t = t();
|
|
364
364
|
if (e === t) return t;
|
|
365
365
|
const i = typeof e, r = s !== void 0;
|
|
366
|
-
if (
|
|
366
|
+
if (l = r && t[0] && t[0].parentNode || l, i === "string" || i === "number") {
|
|
367
367
|
if (i === "number" && (e = e.toString(), e === t))
|
|
368
368
|
return t;
|
|
369
369
|
if (r) {
|
|
370
|
-
let
|
|
371
|
-
|
|
370
|
+
let a = t[0];
|
|
371
|
+
a && a.nodeType === 3 ? a.data !== e && (a.data = e) : a = document.createTextNode(e), t = P(l, t, s, a);
|
|
372
372
|
} else
|
|
373
|
-
t !== "" && typeof t == "string" ? t =
|
|
373
|
+
t !== "" && typeof t == "string" ? t = l.firstChild.data = e : t = l.textContent = e;
|
|
374
374
|
} else if (e == null || i === "boolean")
|
|
375
|
-
t = P(
|
|
375
|
+
t = P(l, t, s);
|
|
376
376
|
else {
|
|
377
377
|
if (i === "function")
|
|
378
378
|
return oe(() => {
|
|
379
|
-
let
|
|
380
|
-
for (; typeof
|
|
381
|
-
t = j(
|
|
379
|
+
let a = e();
|
|
380
|
+
for (; typeof a == "function"; ) a = a();
|
|
381
|
+
t = j(l, a, t, s);
|
|
382
382
|
}), () => t;
|
|
383
383
|
if (Array.isArray(e)) {
|
|
384
|
-
const
|
|
385
|
-
if (ie(
|
|
386
|
-
return oe(() => t = j(
|
|
387
|
-
if (
|
|
388
|
-
if (t = P(
|
|
389
|
-
} else n ? t.length === 0 ? fe(
|
|
390
|
-
t =
|
|
384
|
+
const a = [], n = t && Array.isArray(t);
|
|
385
|
+
if (ie(a, e, t, o))
|
|
386
|
+
return oe(() => t = j(l, a, t, s, !0)), () => t;
|
|
387
|
+
if (a.length === 0) {
|
|
388
|
+
if (t = P(l, t, s), r) return t;
|
|
389
|
+
} else n ? t.length === 0 ? fe(l, a, s) : Ue(l, t, a) : (t && P(l), fe(l, a));
|
|
390
|
+
t = a;
|
|
391
391
|
} else if (e.nodeType) {
|
|
392
392
|
if (Array.isArray(t)) {
|
|
393
|
-
if (r) return t = P(
|
|
394
|
-
P(
|
|
395
|
-
} else t == null || t === "" || !
|
|
393
|
+
if (r) return t = P(l, t, s, e);
|
|
394
|
+
P(l, t, null, e);
|
|
395
|
+
} else t == null || t === "" || !l.firstChild ? l.appendChild(e) : l.replaceChild(e, l.firstChild);
|
|
396
396
|
t = e;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
return t;
|
|
400
400
|
}
|
|
401
|
-
function ie(
|
|
401
|
+
function ie(l, e, t, s) {
|
|
402
402
|
let o = !1;
|
|
403
403
|
for (let i = 0, r = e.length; i < r; i++) {
|
|
404
|
-
let
|
|
405
|
-
if (!(
|
|
406
|
-
|
|
407
|
-
else if (Array.isArray(
|
|
408
|
-
o = ie(
|
|
404
|
+
let a = e[i], n = t && t[l.length], d;
|
|
405
|
+
if (!(a == null || a === !0 || a === !1)) if ((d = typeof a) == "object" && a.nodeType)
|
|
406
|
+
l.push(a);
|
|
407
|
+
else if (Array.isArray(a))
|
|
408
|
+
o = ie(l, a, n) || o;
|
|
409
409
|
else if (d === "function")
|
|
410
410
|
if (s) {
|
|
411
|
-
for (; typeof
|
|
411
|
+
for (; typeof a == "function"; ) a = a();
|
|
412
412
|
o = ie(
|
|
413
|
-
|
|
414
|
-
Array.isArray(
|
|
413
|
+
l,
|
|
414
|
+
Array.isArray(a) ? a : [a],
|
|
415
415
|
Array.isArray(n) ? n : [n]
|
|
416
416
|
) || o;
|
|
417
417
|
} else
|
|
418
|
-
|
|
418
|
+
l.push(a), o = !0;
|
|
419
419
|
else {
|
|
420
|
-
const c = String(
|
|
421
|
-
n && n.nodeType === 3 && n.data === c ?
|
|
420
|
+
const c = String(a);
|
|
421
|
+
n && n.nodeType === 3 && n.data === c ? l.push(n) : l.push(document.createTextNode(c));
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
return o;
|
|
425
425
|
}
|
|
426
|
-
function fe(
|
|
427
|
-
for (let s = 0, o = e.length; s < o; s++)
|
|
426
|
+
function fe(l, e, t = null) {
|
|
427
|
+
for (let s = 0, o = e.length; s < o; s++) l.insertBefore(e[s], t);
|
|
428
428
|
}
|
|
429
|
-
function P(
|
|
430
|
-
if (t === void 0) return
|
|
429
|
+
function P(l, e, t, s) {
|
|
430
|
+
if (t === void 0) return l.textContent = "";
|
|
431
431
|
const o = s || document.createTextNode("");
|
|
432
432
|
if (e.length) {
|
|
433
433
|
let i = !1;
|
|
434
434
|
for (let r = e.length - 1; r >= 0; r--) {
|
|
435
|
-
const
|
|
436
|
-
if (o !==
|
|
437
|
-
const n =
|
|
438
|
-
!i && !r ? n ?
|
|
435
|
+
const a = e[r];
|
|
436
|
+
if (o !== a) {
|
|
437
|
+
const n = a.parentNode === l;
|
|
438
|
+
!i && !r ? n ? l.replaceChild(o, a) : l.insertBefore(o, t) : n && a.remove();
|
|
439
439
|
} else i = !0;
|
|
440
440
|
}
|
|
441
|
-
} else
|
|
441
|
+
} else l.insertBefore(o, t);
|
|
442
442
|
return [o];
|
|
443
443
|
}
|
|
444
444
|
class Tt {
|
|
445
445
|
constructor(e) {
|
|
446
446
|
this.code = e;
|
|
447
447
|
}
|
|
448
|
-
render(e, t, s, o, i, r,
|
|
448
|
+
render(e, t, s, o, i, r, a) {
|
|
449
449
|
const n = Ee({
|
|
450
450
|
rowIndex: t,
|
|
451
451
|
columnIndex: s,
|
|
@@ -462,11 +462,11 @@ class Tt {
|
|
|
462
462
|
const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
463
463
|
__proto__: null
|
|
464
464
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
465
|
-
function Je(
|
|
465
|
+
function Je(l, e = 500) {
|
|
466
466
|
let t = null;
|
|
467
467
|
return function(...s) {
|
|
468
468
|
t && window.clearTimeout(t), t = window.setTimeout(() => {
|
|
469
|
-
|
|
469
|
+
l.apply(this, s), t = null;
|
|
470
470
|
}, e);
|
|
471
471
|
};
|
|
472
472
|
}
|
|
@@ -495,18 +495,18 @@ class B {
|
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function X(
|
|
499
|
-
return
|
|
498
|
+
function X(l) {
|
|
499
|
+
return l && l.type === "TreeRow";
|
|
500
500
|
}
|
|
501
|
-
function re(
|
|
502
|
-
return
|
|
501
|
+
function re(l) {
|
|
502
|
+
return l && l.type === "AreaModelTree";
|
|
503
503
|
}
|
|
504
|
-
class
|
|
505
|
-
constructor(e = -1, t = -1, s = -1, o = -1, i, r,
|
|
506
|
-
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent =
|
|
504
|
+
class ae {
|
|
505
|
+
constructor(e = -1, t = -1, s = -1, o = -1, i, r, a, n = 0, d = 0, c = 0, h = "") {
|
|
506
|
+
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = a, this.clickCount = n, this.draggingX = d, this.draggingY = c, this.action = h;
|
|
507
507
|
}
|
|
508
508
|
clone() {
|
|
509
|
-
return new
|
|
509
|
+
return new ae(
|
|
510
510
|
this.rowIndex,
|
|
511
511
|
this.rowTop,
|
|
512
512
|
this.columnIndex,
|
|
@@ -626,7 +626,7 @@ class qe {
|
|
|
626
626
|
return this.addClass(e, s), this.domService.appendChild(t, s), s;
|
|
627
627
|
}
|
|
628
628
|
addRowDiv(e, t, s = -1, o, i, r = "") {
|
|
629
|
-
const
|
|
629
|
+
const a = t.index ?? -1, n = this.getDivOrCreateDiv(a, e);
|
|
630
630
|
if (this.domService.addClass(n, "ge-table-row-div"), this.domService.addClass(n, `ge-table-row-div-${t.index}`), o === "body" && i === "center") {
|
|
631
631
|
const d = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
632
632
|
this.domService.addClass(n, `ge-table-row-${d}`);
|
|
@@ -638,10 +638,10 @@ class qe {
|
|
|
638
638
|
return this.domService.appendChild(e.child, n), n;
|
|
639
639
|
}
|
|
640
640
|
addColumnDiv(e) {
|
|
641
|
-
const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent:
|
|
641
|
+
const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: a, text: n = "", treeArrow: d, tableOptions: c, checkedType: h = void 0, sortState: p } = e, u = c == null ? void 0 : c.treeOptions, g = c == null ? void 0 : c.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
|
|
642
642
|
this.domService.addClass(b, "ge-table-col-div"), g && this.domService.addClass(b, "ge-with-checkbox"), this.domService.addClass(b, `ge-table-col-div-${s.index}`), this.domService.setAttribute(b, "data-col-index", `${s.index}`), this.domService.setAttribute(b, "data-row-index", `${o}`), this.domService.setAttribute(b, "data-area", `${r}`);
|
|
643
643
|
const f = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
644
|
-
if (r === "body" &&
|
|
644
|
+
if (r === "body" && a === "center" && this.domService.addClass(b, `ge-table-column-${f}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${s.left}px`), this.domService.setStyle(b, "top", `${s.top}px`), this.domService.setStyle(b, "width", `${s.width}px`), this.domService.setStyle(b, "height", `${s.height}px`), d && d !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, d, u, o, i, r)), g && i === 0 && h && this.addCheckboxToDiv(b, h, r, o), n) {
|
|
645
645
|
const m = d !== "none" && i === 0;
|
|
646
646
|
this.addLabelDiv(b, n, m, o, i, r);
|
|
647
647
|
}
|
|
@@ -659,40 +659,40 @@ class qe {
|
|
|
659
659
|
class="ge-table-row-checkbox"> `, this.domService.setStyle(i, "display", "inline"), this.domService.setStyle(i, "width", "inherit"), this.domService.setAttribute(i, "data-row-index", `${o}`), this.domService.appendChild(e, i), i;
|
|
660
660
|
}
|
|
661
661
|
addLabelDiv(e, t = "", s = !1, o = -1, i = -1, r = "body") {
|
|
662
|
-
const
|
|
663
|
-
if (this.domService.addClass(
|
|
662
|
+
const a = this.domService.createElement("div");
|
|
663
|
+
if (this.domService.addClass(a, "ge-table-label-div"), this.domService.setStyle(a, "position", "relative"), this.domService.setStyle(a, "background", "transparent"), this.domService.setStyle(a, "width", "100%"), this.domService.setStyle(a, "height", "100%"), this.domService.setAttribute(a, "data-row-index", `${o}`), this.domService.setAttribute(a, "data-col-index", `${i}`), this.domService.setAttribute(a, "data-area", `${r}`), t)
|
|
664
664
|
if (s) {
|
|
665
665
|
const n = this.domService.createText(t);
|
|
666
|
-
this.domService.appendChild(
|
|
666
|
+
this.domService.appendChild(a, n);
|
|
667
667
|
} else {
|
|
668
668
|
const n = this.domService.createElement("div");
|
|
669
|
-
this.domService.appendChild(
|
|
669
|
+
this.domService.appendChild(a, n);
|
|
670
670
|
const d = this.domService.createText(t);
|
|
671
671
|
this.domService.addClass(n, "ge-table-label"), this.domService.appendChild(n, d), this.domService.setAttribute(n, "data-row-index", `${o}`), this.domService.setAttribute(n, "data-col-index", `${i}`), this.domService.setAttribute(n, "data-area", `${r}`);
|
|
672
672
|
}
|
|
673
|
-
return this.domService.appendChild(e,
|
|
673
|
+
return this.domService.appendChild(e, a), a;
|
|
674
674
|
}
|
|
675
675
|
addSortedIcon(e, t = "", s = new Me(), o = -1) {
|
|
676
676
|
const i = this.domService.createElement("div");
|
|
677
677
|
this.domService.addClass(i, "ge-table-sorted-icon-div"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "top", "0"), this.domService.setStyle(i, "right", "0"), this.domService.setStyle(i, "width", "20px"), this.domService.setStyle(i, "background", "transparent"), this.domService.setStyle(i, "cursor", "pointer"), this.domService.setAttribute(i, "data-col-index", `${o}`), this.domService.setAttribute(i, "data-area", "header");
|
|
678
678
|
let r;
|
|
679
679
|
t === "asc" ? r = s.iconAsc : t === "desc" ? r = s.iconDesc : r = s.iconPlaceholder;
|
|
680
|
-
const
|
|
680
|
+
const a = r.content, n = this.domService.createText(a);
|
|
681
681
|
this.domService.appendChild(i, n), r.style && this.applyStyleString(i, r.style);
|
|
682
682
|
for (const d of r.classes)
|
|
683
683
|
this.domService.addClass(i, d);
|
|
684
684
|
return this.domService.appendChild(e, i), i;
|
|
685
685
|
}
|
|
686
686
|
addArrowDiv(e, t = "none", s = new Ae(), o = -1, i = -1, r = "body") {
|
|
687
|
-
const
|
|
688
|
-
this.domService.addClass(
|
|
687
|
+
const a = this.domService.createElement("div");
|
|
688
|
+
this.domService.addClass(a, "ge-table-tree-arrow-div"), this.domService.setStyle(a, "display", "inline-block"), this.domService.setStyle(a, "position", ""), this.domService.setStyle(a, "width", "20px"), this.domService.setStyle(a, "background", "transparent"), this.domService.setStyle(a, "cursor", "pointer"), this.domService.setAttribute(a, "data-row-index", `${o}`), this.domService.setAttribute(a, "data-col-index", `${i}`), this.domService.setAttribute(a, "data-area", `${r}`);
|
|
689
689
|
let n;
|
|
690
690
|
t === "expanded" ? n = s.arrowExpanded : t === "collapsed" ? n = s.arrowCollapsed : n = s.arrowPlaceholder;
|
|
691
691
|
const d = n.content, c = this.domService.createText(d);
|
|
692
|
-
this.domService.appendChild(
|
|
692
|
+
this.domService.appendChild(a, c), n.style && this.applyStyleString(a, n.style);
|
|
693
693
|
for (const h of n.classes)
|
|
694
|
-
this.domService.addClass(
|
|
695
|
-
return this.domService.appendChild(e,
|
|
694
|
+
this.domService.addClass(a, h);
|
|
695
|
+
return this.domService.appendChild(e, a), a;
|
|
696
696
|
}
|
|
697
697
|
addColumnBorderDivs(e, t, s, o, i) {
|
|
698
698
|
if (e.verticalBorderVisible) {
|
|
@@ -734,7 +734,7 @@ class qe {
|
|
|
734
734
|
return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
const ne = (
|
|
737
|
+
const ne = (l) => l === "header" ? "header" : l === "footer" ? "footer" : "body";
|
|
738
738
|
class Ze {
|
|
739
739
|
constructor(e, t) {
|
|
740
740
|
if (this.rowIdx = -1, this.colIdx = -1, this.action = null, this.inputType = null, this.className = "", e !== null && (e instanceof HTMLDivElement || e instanceof HTMLSpanElement || e instanceof HTMLInputElement)) {
|
|
@@ -806,15 +806,15 @@ class Qe {
|
|
|
806
806
|
*/
|
|
807
807
|
onHostElementDblClicked(e) {
|
|
808
808
|
if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
|
|
809
|
-
const t = e.target, s = t.getAttribute("data-area"), o = ne(s), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")),
|
|
809
|
+
const t = e.target, s = t.getAttribute("data-area"), o = ne(s), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), a = this.tableScope.tableModel.getAreaModel(o);
|
|
810
810
|
if (s && o === "header")
|
|
811
811
|
this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
|
|
812
812
|
else if (t.getAttribute("data-row-index")) {
|
|
813
|
-
const n =
|
|
814
|
-
if (s && o === "body" &&
|
|
813
|
+
const n = a.getRowByIndex(i);
|
|
814
|
+
if (s && o === "body" && a.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), X(n) && r === this.getArrowColumnIndex()) {
|
|
815
815
|
e.preventDefault(), e.stopPropagation();
|
|
816
816
|
const d = n;
|
|
817
|
-
d.expanded = !d.expanded, "recalcVisibleTreeRows" in
|
|
817
|
+
d.expanded = !d.expanded, "recalcVisibleTreeRows" in a && a.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(d);
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
}
|
|
@@ -839,11 +839,11 @@ class Qe {
|
|
|
839
839
|
* @returns {void}
|
|
840
840
|
*/
|
|
841
841
|
updateCollapsedExpandedState(e) {
|
|
842
|
-
var s, o, i, r,
|
|
842
|
+
var s, o, i, r, a;
|
|
843
843
|
const t = (o = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : o.getRowId;
|
|
844
844
|
if (t) {
|
|
845
845
|
const n = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, d = n === "collapsed" && !e.expanded || n === "expanded" && e.expanded, c = n === "collapsed" && e.expanded || n === "expanded" && !e.expanded, h = t(e.data);
|
|
846
|
-
d ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(h) : c && ((
|
|
846
|
+
d ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(h) : c && ((a = this.tableScope.storeStateCollapsedExpandService) == null || a.collapsedStateIdsRemove(h));
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
849
|
getArrowColumnIndex() {
|
|
@@ -944,8 +944,8 @@ class et {
|
|
|
944
944
|
return ((i = s == null ? void 0 : s.editable) == null ? void 0 : i.call(s)) ?? !1;
|
|
945
945
|
}
|
|
946
946
|
setValue(e, t, s) {
|
|
947
|
-
var
|
|
948
|
-
const o = (
|
|
947
|
+
var a;
|
|
948
|
+
const o = (a = this.columnDefs[t]) == null ? void 0 : a.editInputPipe;
|
|
949
949
|
o && (s = o(s, e, t));
|
|
950
950
|
const i = this.getRowByIndex(e), r = this.columnDefs[t].property;
|
|
951
951
|
return r.includes(".") ? this.setPropertyValue(i, r.split("."), s) : (i[r] = s, !0);
|
|
@@ -995,7 +995,7 @@ class tt {
|
|
|
995
995
|
}
|
|
996
996
|
class st extends et {
|
|
997
997
|
constructor(e, t, s, o = []) {
|
|
998
|
-
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.sorterService = new tt(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
|
|
998
|
+
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.focusedRowIndex = 0, this.sorterService = new tt(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
|
|
999
999
|
}
|
|
1000
1000
|
setRows(e) {
|
|
1001
1001
|
this.rows = e, this.filteredRows = [...e];
|
|
@@ -1012,6 +1012,12 @@ class st extends et {
|
|
|
1012
1012
|
let o = this.filteredRows[e];
|
|
1013
1013
|
return X(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
|
|
1014
1014
|
}
|
|
1015
|
+
/**
|
|
1016
|
+
* Retrieves the filtered and sorted rows from the dataset.
|
|
1017
|
+
* These rows are used for rendering the table.
|
|
1018
|
+
*
|
|
1019
|
+
* @return {T[]} An array containing the filtered (and sorted) rows.
|
|
1020
|
+
*/
|
|
1015
1021
|
getFilteredRows() {
|
|
1016
1022
|
return this.filteredRows;
|
|
1017
1023
|
}
|
|
@@ -1040,11 +1046,15 @@ class st extends et {
|
|
|
1040
1046
|
changeColumnOrder(e, t) {
|
|
1041
1047
|
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
1042
1048
|
}
|
|
1049
|
+
getCustomClassesAt(e, t) {
|
|
1050
|
+
const s = super.getCustomClassesAt(e, t);
|
|
1051
|
+
return this.getRowByIndex(e).selected && s.push("ge-selected-row"), this.focusedRowIndex === e && s.push("ge-focused-row"), s;
|
|
1052
|
+
}
|
|
1043
1053
|
genericFlatTableSortComparator(e, t) {
|
|
1044
1054
|
const s = this.columnDefs.find((o) => o.property === e);
|
|
1045
1055
|
return (o, i) => {
|
|
1046
|
-
const r = this.getValueByT(o, e),
|
|
1047
|
-
return s != null && s.sortComparator ? t * s.sortComparator(r,
|
|
1056
|
+
const r = this.getValueByT(o, e), a = this.getValueByT(i, e);
|
|
1057
|
+
return s != null && s.sortComparator ? t * s.sortComparator(r, a, o, i, t) : this.sorterService.genericSortComparator(r, a, t);
|
|
1048
1058
|
};
|
|
1049
1059
|
}
|
|
1050
1060
|
getPropertyValue(e, t) {
|
|
@@ -1239,12 +1249,12 @@ class ot {
|
|
|
1239
1249
|
downloadExcel(e = "table.xlsx", t = "") {
|
|
1240
1250
|
const s = [], o = this.tableScope.tableModel.getColumnCount(), i = ["header", "body", "footer"];
|
|
1241
1251
|
for (const r of i) {
|
|
1242
|
-
const
|
|
1252
|
+
const a = this.tableScope.tableModel.getAreaModel(r), n = (a == null ? void 0 : a.getRowCount()) ?? 0;
|
|
1243
1253
|
for (let d = 0; d < n; d++) {
|
|
1244
1254
|
const c = [];
|
|
1245
1255
|
s.push(c);
|
|
1246
1256
|
for (let h = 0; h < o; h++)
|
|
1247
|
-
c.push(
|
|
1257
|
+
c.push(a.getValueAt(d, h));
|
|
1248
1258
|
}
|
|
1249
1259
|
}
|
|
1250
1260
|
return this.tableScope.excelService.downloadExcel(s, e, t);
|
|
@@ -1383,7 +1393,7 @@ class rt {
|
|
|
1383
1393
|
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
|
|
1384
1394
|
}
|
|
1385
1395
|
}
|
|
1386
|
-
class
|
|
1396
|
+
class lt extends ce {
|
|
1387
1397
|
constructor(e) {
|
|
1388
1398
|
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new rt(), this.load();
|
|
1389
1399
|
}
|
|
@@ -1417,7 +1427,7 @@ class at extends ce {
|
|
|
1417
1427
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
1418
1428
|
}
|
|
1419
1429
|
}
|
|
1420
|
-
class
|
|
1430
|
+
class at extends ce {
|
|
1421
1431
|
constructor(e) {
|
|
1422
1432
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
1423
1433
|
}
|
|
@@ -1663,9 +1673,9 @@ class ct {
|
|
|
1663
1673
|
let i = this.areaModel.getColspanAt(s, o), r = this.areaModel.getRowspanAt(s, o);
|
|
1664
1674
|
if (i > 1 || r > 1) {
|
|
1665
1675
|
i === 0 && (i = 1), r === 0 && (r = 1);
|
|
1666
|
-
const
|
|
1676
|
+
const a = "gammaCells" in this.areaModel;
|
|
1667
1677
|
this.colAndRowspanRanges.push(
|
|
1668
|
-
new A(s, o, s + r - 1, o + i - 1,
|
|
1678
|
+
new A(s, o, s + r - 1, o + i - 1, a)
|
|
1669
1679
|
);
|
|
1670
1680
|
}
|
|
1671
1681
|
}
|
|
@@ -1689,12 +1699,12 @@ class dt {
|
|
|
1689
1699
|
}
|
|
1690
1700
|
class ht extends nt {
|
|
1691
1701
|
constructor(e, t, s, o) {
|
|
1692
|
-
var r,
|
|
1702
|
+
var r, a;
|
|
1693
1703
|
super(e, t, s, o), this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
|
|
1694
1704
|
header: [],
|
|
1695
1705
|
body: [],
|
|
1696
1706
|
footer: []
|
|
1697
|
-
}, this.tree = !1, this.colAndRowspanModels = new dt(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (
|
|
1707
|
+
}, this.tree = !1, this.colAndRowspanModels = new dt(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (a = this.tableOptions) != null && a.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), re(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
|
|
1698
1708
|
(n) => {
|
|
1699
1709
|
var d;
|
|
1700
1710
|
this.colAndRowspanModels[n] = new ct(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
|
|
@@ -1834,7 +1844,7 @@ class ht extends nt {
|
|
|
1834
1844
|
* @param {string[]} cssClasses - An array of CSS classes to be applied to the cell.
|
|
1835
1845
|
*/
|
|
1836
1846
|
rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: o, cssClasses: i }) {
|
|
1837
|
-
const r = this.tableModel.getAreaModel(e),
|
|
1847
|
+
const r = this.tableModel.getAreaModel(e), a = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', n = document.querySelector(a);
|
|
1838
1848
|
if (n) {
|
|
1839
1849
|
let d;
|
|
1840
1850
|
const c = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
|
|
@@ -1951,7 +1961,7 @@ class ht extends nt {
|
|
|
1951
1961
|
var f;
|
|
1952
1962
|
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
|
|
1953
1963
|
s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
|
|
1954
|
-
const
|
|
1964
|
+
const a = 0, n = this.areaBodyCenterGeo.width, d = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), h = c.getRowCount();
|
|
1955
1965
|
for (; this.cleanupFunctions[e].length; ) {
|
|
1956
1966
|
const m = this.cleanupFunctions[e].shift();
|
|
1957
1967
|
m && m();
|
|
@@ -1962,7 +1972,7 @@ class ht extends nt {
|
|
|
1962
1972
|
const x = p, v = m === h - 1, E = this.tableModel.getRowHeight(e, m);
|
|
1963
1973
|
if (x + E > 0) {
|
|
1964
1974
|
this.firstVisibleRowIndex = m;
|
|
1965
|
-
let y = { left:
|
|
1975
|
+
let y = { left: a, width: n, height: E, top: x, index: m }, S = this.dom.addRowDiv(o, y, m, e, "center");
|
|
1966
1976
|
const k = b;
|
|
1967
1977
|
if (this.adjustColumnsToRowParent({
|
|
1968
1978
|
areaIdent: e,
|
|
@@ -1975,7 +1985,7 @@ class ht extends nt {
|
|
|
1975
1985
|
columnIndexEnd: u - g - 1,
|
|
1976
1986
|
verticalFixed: !1,
|
|
1977
1987
|
lastRowOfModel: v
|
|
1978
|
-
}), d.left > 0 && (y = { left:
|
|
1988
|
+
}), d.left > 0 && (y = { left: a, width: this.areaBodyWestGeo.width, height: E, top: x, index: m }, S = this.dom.addRowDiv(s, y, m, e, "west"), this.adjustColumnsToRowParent({
|
|
1979
1989
|
areaIdent: e,
|
|
1980
1990
|
sideIdent: "west",
|
|
1981
1991
|
areaModel: c,
|
|
@@ -1986,7 +1996,7 @@ class ht extends nt {
|
|
|
1986
1996
|
columnIndexEnd: k - 1,
|
|
1987
1997
|
verticalFixed: !0,
|
|
1988
1998
|
lastRowOfModel: v
|
|
1989
|
-
})), d.right > 0 && (y = { left:
|
|
1999
|
+
})), d.right > 0 && (y = { left: a, width: this.areaBodyEastGeo.width, height: E, top: x, index: m }, S = this.dom.addRowDiv(i, y, m, e, "east"), this.adjustColumnsToRowParent({
|
|
1990
2000
|
areaIdent: e,
|
|
1991
2001
|
sideIdent: "east",
|
|
1992
2002
|
areaModel: c,
|
|
@@ -2043,7 +2053,7 @@ class ht extends nt {
|
|
|
2043
2053
|
* @protected
|
|
2044
2054
|
*/
|
|
2045
2055
|
drawBigCell(e, t, s, o, i, r) {
|
|
2046
|
-
const
|
|
2056
|
+
const a = s + this.getRowHeights(0, e.r1 - 1, o).reduce((f, m) => f + m, 0), n = this.tableModel.getColumnCount(), d = this.tableModel.getFixedRightColumnCount();
|
|
2047
2057
|
let c = 0;
|
|
2048
2058
|
d > 0 && e.c1 >= n - d && (c = n - d);
|
|
2049
2059
|
const h = t + this.getColumnWidths(c, e.c1 - 1).reduce((f, m) => f + m, 0), p = this.getRowHeights(e.r1, e.r2, o).reduce((f, m) => f + m, 0), u = this.getColumnWidths(e.c1, e.c2).reduce((f, m) => f + m, 0);
|
|
@@ -2056,7 +2066,7 @@ class ht extends nt {
|
|
|
2056
2066
|
rowIndex: e.r1,
|
|
2057
2067
|
columnIndex: e.c1,
|
|
2058
2068
|
left: h,
|
|
2059
|
-
top:
|
|
2069
|
+
top: a,
|
|
2060
2070
|
width: u,
|
|
2061
2071
|
height: p,
|
|
2062
2072
|
parent: i,
|
|
@@ -2070,7 +2080,7 @@ class ht extends nt {
|
|
|
2070
2080
|
rowIndex: e.r1,
|
|
2071
2081
|
columnIndex: e.c1,
|
|
2072
2082
|
left: h,
|
|
2073
|
-
top:
|
|
2083
|
+
top: a,
|
|
2074
2084
|
width: u,
|
|
2075
2085
|
height: p,
|
|
2076
2086
|
parent: i,
|
|
@@ -2081,7 +2091,7 @@ class ht extends nt {
|
|
|
2081
2091
|
rowIndex: e.r1,
|
|
2082
2092
|
columnIndex: e.c1,
|
|
2083
2093
|
cellLeft: h,
|
|
2084
|
-
cellTop:
|
|
2094
|
+
cellTop: a,
|
|
2085
2095
|
cellWidth: u,
|
|
2086
2096
|
cellHeight: p,
|
|
2087
2097
|
parent: i
|
|
@@ -2121,7 +2131,7 @@ class ht extends nt {
|
|
|
2121
2131
|
geo: o,
|
|
2122
2132
|
parent: i,
|
|
2123
2133
|
rowIndex: r,
|
|
2124
|
-
columnIndexStart:
|
|
2134
|
+
columnIndexStart: a,
|
|
2125
2135
|
columnIndexEnd: n,
|
|
2126
2136
|
verticalFixed: d = !1,
|
|
2127
2137
|
lastRowOfModel: c = !1
|
|
@@ -2135,7 +2145,7 @@ class ht extends nt {
|
|
|
2135
2145
|
}
|
|
2136
2146
|
const p = 0, u = !!(e === "body" && t);
|
|
2137
2147
|
let g = h;
|
|
2138
|
-
for (let f =
|
|
2148
|
+
for (let f = a; f <= n; f++) {
|
|
2139
2149
|
const m = g, x = this.tableModel.getColumnWidth(f);
|
|
2140
2150
|
if (x > 0 && m + x > 0) {
|
|
2141
2151
|
let v = o.height;
|
|
@@ -2199,14 +2209,14 @@ class ht extends nt {
|
|
|
2199
2209
|
rowIndex: o,
|
|
2200
2210
|
index: i,
|
|
2201
2211
|
left: r,
|
|
2202
|
-
width:
|
|
2212
|
+
width: a,
|
|
2203
2213
|
height: n,
|
|
2204
2214
|
top: d,
|
|
2205
2215
|
parent: c,
|
|
2206
2216
|
lastRowOfModel: h
|
|
2207
2217
|
}) {
|
|
2208
2218
|
var pe;
|
|
2209
|
-
const u = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: r, width:
|
|
2219
|
+
const u = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: r, width: a, height: n, top: d, index: i }, b = e.getRowByIndex(o);
|
|
2210
2220
|
let f = "none";
|
|
2211
2221
|
if (i === this.getTreeArrowColumnIndex() && X(b)) {
|
|
2212
2222
|
const C = b;
|
|
@@ -2238,7 +2248,7 @@ class ht extends nt {
|
|
|
2238
2248
|
let D;
|
|
2239
2249
|
u && (D = u.render(S, o, i, t, e, v, this.dom.domService));
|
|
2240
2250
|
const _ = e.getCustomClassesAt(o, i);
|
|
2241
|
-
if (_.length && this.dom.addClasses(_, S), this.dom.addColumnBorderDivs(this.tableOptions, c, g, t, s), h && this.dom.addHorizontalBorder({ left: r, width:
|
|
2251
|
+
if (_.length && this.dom.addClasses(_, S), this.dom.addColumnBorderDivs(this.tableOptions, c, g, t, s), h && this.dom.addHorizontalBorder({ left: r, width: a, height: n, top: d + n }, c), this.getFocusModel && t === "body") {
|
|
2242
2252
|
const C = this.getFocusModel();
|
|
2243
2253
|
C != null && C.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, g, {});
|
|
2244
2254
|
}
|
|
@@ -2377,9 +2387,9 @@ class ht extends nt {
|
|
|
2377
2387
|
adjustDraggingColumn(e, t, s) {
|
|
2378
2388
|
var o, i;
|
|
2379
2389
|
if (this.dragging) {
|
|
2380
|
-
const r = this.hostElement.clientHeight,
|
|
2390
|
+
const r = this.hostElement.clientHeight, a = this.storedColumnWidths[t];
|
|
2381
2391
|
if ((o = e.originalEvent) != null && o.clientX) {
|
|
2382
|
-
const c = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) -
|
|
2392
|
+
const c = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - a / 2, width: a, height: r, top: 0, index: t };
|
|
2383
2393
|
this.dom.applyStyle(this.draggingColumn, {
|
|
2384
2394
|
background: "rgba(128,128,128,0.2)",
|
|
2385
2395
|
display: "block",
|
|
@@ -2411,24 +2421,24 @@ class ht extends nt {
|
|
|
2411
2421
|
renderContentOfDraggingColumnForArea(e, t, s = 0) {
|
|
2412
2422
|
const o = "center", i = this.tableModel.getAreaModel(t), r = i == null ? void 0 : i.getRowCount();
|
|
2413
2423
|
if (r) {
|
|
2414
|
-
const
|
|
2424
|
+
const a = e.index ?? 0, n = this.draggingColumn;
|
|
2415
2425
|
for (let d = 0; d < r; d++) {
|
|
2416
|
-
const c = s, h = i.getRowHeight(d), p = { left: 0, width: e.width, height: h, top: c, index: d }, u = i.getValueAt(d,
|
|
2426
|
+
const c = s, h = i.getRowHeight(d), p = { left: 0, width: e.width, height: h, top: c, index: d }, u = i.getValueAt(d, a), g = i.getCellRenderer(d, a), b = g ? "" : `${u}`, f = {
|
|
2417
2427
|
parent: n,
|
|
2418
2428
|
geo: p,
|
|
2419
2429
|
rowIndex: d,
|
|
2420
|
-
columnIndex:
|
|
2430
|
+
columnIndex: a,
|
|
2421
2431
|
areaIdent: t,
|
|
2422
2432
|
sideIdent: o,
|
|
2423
2433
|
text: b
|
|
2424
2434
|
}, m = this.dom.addColumnDiv(f);
|
|
2425
2435
|
let x;
|
|
2426
|
-
g && (x = g.render(m, d,
|
|
2427
|
-
const v = i.getCustomClassesAt(d,
|
|
2436
|
+
g && (x = g.render(m, d, a, t, i, u, this.dom.domService), x && this.cleanupFunctions[t].push(x));
|
|
2437
|
+
const v = i.getCustomClassesAt(d, a);
|
|
2428
2438
|
v.length && this.dom.addClasses(v, m);
|
|
2429
|
-
const E = this.tableModel.getColumnDef(
|
|
2439
|
+
const E = this.tableModel.getColumnDef(a);
|
|
2430
2440
|
E && E.classes[t] && this.dom.addClasses(E.classes[t], m), this.dom.addColumnBorderDivs(this.tableOptions, n, p, t, o);
|
|
2431
|
-
const y = i.getCustomStyleAt(d,
|
|
2441
|
+
const y = i.getCustomStyleAt(d, a);
|
|
2432
2442
|
if (y)
|
|
2433
2443
|
for (const S in y)
|
|
2434
2444
|
this.dom.setStyle(m, S, y[S]);
|
|
@@ -2481,7 +2491,7 @@ class ht extends nt {
|
|
|
2481
2491
|
* @param {number} height - The height of the div.
|
|
2482
2492
|
* @returns {boolean} - Whether the cell is selected.
|
|
2483
2493
|
*/
|
|
2484
|
-
renderSelectedBackgroundDiv(e, t, s, o, i, r,
|
|
2494
|
+
renderSelectedBackgroundDiv(e, t, s, o, i, r, a, n, d, c, h) {
|
|
2485
2495
|
let p = !1;
|
|
2486
2496
|
if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
|
|
2487
2497
|
const u = this.getSelectionModel();
|
|
@@ -2491,7 +2501,7 @@ class ht extends nt {
|
|
|
2491
2501
|
for (let b = 0; b < g; b++) {
|
|
2492
2502
|
const f = this.dom.applyStylePosistionAbsolute(
|
|
2493
2503
|
// ge-table-body-west-selected-range
|
|
2494
|
-
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`,
|
|
2504
|
+
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, a)
|
|
2495
2505
|
);
|
|
2496
2506
|
this.dom.setStyle(f, "left", `${n}px`), this.dom.setStyle(f, "top", `${d}px`), this.dom.setStyle(f, "width", `${c}px`), this.dom.setStyle(f, "height", `${h}px`);
|
|
2497
2507
|
}
|
|
@@ -2525,7 +2535,7 @@ class ht extends nt {
|
|
|
2525
2535
|
rowIndex: o,
|
|
2526
2536
|
columnIndex: i,
|
|
2527
2537
|
left: r,
|
|
2528
|
-
top:
|
|
2538
|
+
top: a,
|
|
2529
2539
|
width: n,
|
|
2530
2540
|
height: d,
|
|
2531
2541
|
parent: c,
|
|
@@ -2541,7 +2551,7 @@ class ht extends nt {
|
|
|
2541
2551
|
left: r,
|
|
2542
2552
|
width: n,
|
|
2543
2553
|
height: d,
|
|
2544
|
-
top:
|
|
2554
|
+
top: a,
|
|
2545
2555
|
parent: c,
|
|
2546
2556
|
lastRowOfModel: p
|
|
2547
2557
|
});
|
|
@@ -2561,9 +2571,9 @@ class ht extends nt {
|
|
|
2561
2571
|
*
|
|
2562
2572
|
* @return {void}
|
|
2563
2573
|
*/
|
|
2564
|
-
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent:
|
|
2574
|
+
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent: a }) {
|
|
2565
2575
|
const n = this.dom.domService, d = this.tableOptions.columnResizeHandleWidthInPx ?? 2, c = n.createElement("div");
|
|
2566
|
-
n.setAttribute(c, "data-col-index", `${t}`), n.setAttribute(c, "data-row-index", `${e}`), n.setAttribute(c, "data-area", "header"), n.setAttribute(c, "data-ge-action", "resize-column"), n.addClass(c, "ge-table-column-resize-handle"), n.setStyle(c, "display", "clip"), n.setStyle(c, "position", "absolute"), n.setStyle(c, "cursor", "col-resize"), n.setStyle(c, "left", `${s + i - d}px`), n.setStyle(c, "top", `${o}px`), n.setStyle(c, "width", `${d}px`), n.setStyle(c, "height", `${r}px`), n.appendChild(
|
|
2576
|
+
n.setAttribute(c, "data-col-index", `${t}`), n.setAttribute(c, "data-row-index", `${e}`), n.setAttribute(c, "data-area", "header"), n.setAttribute(c, "data-ge-action", "resize-column"), n.addClass(c, "ge-table-column-resize-handle"), n.setStyle(c, "display", "clip"), n.setStyle(c, "position", "absolute"), n.setStyle(c, "cursor", "col-resize"), n.setStyle(c, "left", `${s + i - d}px`), n.setStyle(c, "top", `${o}px`), n.setStyle(c, "width", `${d}px`), n.setStyle(c, "height", `${r}px`), n.appendChild(a, c);
|
|
2567
2577
|
}
|
|
2568
2578
|
}
|
|
2569
2579
|
class pt {
|
|
@@ -2587,8 +2597,8 @@ class gt {
|
|
|
2587
2597
|
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
|
|
2588
2598
|
const t = e.target, s = t.getAttribute("data-area"), o = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
|
|
2589
2599
|
if (s && o && i) {
|
|
2590
|
-
const r = ne(s),
|
|
2591
|
-
this.tableScope.updateModelValueAfterEdit(r,
|
|
2600
|
+
const r = ne(s), a = Number(o), n = Number(i);
|
|
2601
|
+
this.tableScope.updateModelValueAfterEdit(r, a, n, t.value);
|
|
2592
2602
|
}
|
|
2593
2603
|
}
|
|
2594
2604
|
}
|
|
@@ -2612,11 +2622,11 @@ class ut {
|
|
|
2612
2622
|
this.tableScope = e, (t = this.tableScope.tableOptions) != null && t.getSelectionModel && (this.getSelectionModel = this.tableScope.tableOptions.getSelectionModel), (s = this.tableScope.tableOptions) != null && s.getFocusModel && (this.getFocusModel = this.tableScope.tableOptions.getFocusModel);
|
|
2613
2623
|
}
|
|
2614
2624
|
onMouseClicked(e, t) {
|
|
2615
|
-
var i, r,
|
|
2625
|
+
var i, r, a, n, d, c, h;
|
|
2616
2626
|
let s = !1, o = !1;
|
|
2617
2627
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
2618
2628
|
const p = this.getSelectionModel(), u = this.getFocusModel();
|
|
2619
|
-
p && u && (u.hasFocus(e.rowIndex, e.columnIndex) || (u.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(u), s = !0), (i = e.originalEvent) != null && i.shiftKey || p.hasSelection() && (p.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (p.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (
|
|
2629
|
+
p && u && (u.hasFocus(e.rowIndex, e.columnIndex) || (u.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(u), s = !0), (i = e.originalEvent) != null && i.shiftKey || p.hasSelection() && (p.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (p.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (a = e.originalEvent) != null && a.altKey && ((n = e.originalEvent) != null && n.ctrlKey || (d = e.originalEvent) != null && d.metaKey) ? (p.removeSelection(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (h = e.originalEvent) != null && h.metaKey ? (p.addSelection(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (p.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(p));
|
|
2620
2630
|
}
|
|
2621
2631
|
return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
2622
2632
|
}
|
|
@@ -2689,21 +2699,21 @@ class bt {
|
|
|
2689
2699
|
};
|
|
2690
2700
|
}
|
|
2691
2701
|
}
|
|
2692
|
-
function St(
|
|
2693
|
-
return
|
|
2702
|
+
function St(l) {
|
|
2703
|
+
return l.trim().replace(/\+/g, " ").replace(/ +/g, " ").replace(/⌫/g, "backspace").replace(/↩/g, "enter").replace(/⇧/g, "shift").replace(/⌥/g, "alt").replace(/option/g, "alt").replace(/opt/g, "alt").replace(/⌃/g, "ctrl").replace(/control/g, "ctrl").replace(/command/g, "cmd").replace(/meta/g, "cmd").replace(/escape/g, "esc").replace(/⌘/g, "cmd").replace(/\*/g, "multiply").split(" ").filter((e) => e).sort((e, t) => {
|
|
2694
2704
|
const s = { cmd: 1, ctrl: 2, alt: 3, shift: 4 }, o = s[e] || 5, i = s[t] || 5;
|
|
2695
2705
|
return o !== i ? o - i : e.localeCompare(t);
|
|
2696
2706
|
}).join(" ");
|
|
2697
2707
|
}
|
|
2698
|
-
function ue(
|
|
2699
|
-
let e =
|
|
2700
|
-
if (e === " " && (e = "space"), e === "arrowleft" && (e = "left"), e === "arrowright" && (e = "right"), e === "arrowup" && (e = "up"), e === "arrowdown" && (e = "down"), e === "delete" &&
|
|
2701
|
-
const s =
|
|
2708
|
+
function ue(l) {
|
|
2709
|
+
let e = l.key.toLowerCase();
|
|
2710
|
+
if (e === " " && (e = "space"), e === "arrowleft" && (e = "left"), e === "arrowright" && (e = "right"), e === "arrowup" && (e = "up"), e === "arrowdown" && (e = "down"), e === "delete" && l.code === "Delete" && (e = "delete"), e === "backspace" && (e = "backspace"), e === "escape" && (e = "esc"), e === "return" && (e = "enter"), l.code.startsWith("Numpad")) {
|
|
2711
|
+
const s = l.code.replace("Numpad", "").toLowerCase();
|
|
2702
2712
|
s === "add" ? e = "num_add" : s === "subtract" ? e = "num_subtract" : s === "multiply" ? e = "num_multiply" : s === "divide" ? e = "num_divide" : s === "decimal" ? e = "num_decimal" : s === "enter" ? e = "num_enter" : e = "num_" + s;
|
|
2703
2713
|
}
|
|
2704
|
-
|
|
2714
|
+
l.code.match(/^F\d+$/) && (e = l.code.toLowerCase()), l.code.match(/^Digit\d+$/) && (e = l.code.replace(/Digit/g, ""));
|
|
2705
2715
|
let t = "";
|
|
2706
|
-
return
|
|
2716
|
+
return l.ctrlKey && (t += " ctrl"), l.altKey && (t += t + " alt"), l.shiftKey && (t += t + " shift"), l.metaKey && (t += t + " cmd"), St(t + " " + e);
|
|
2707
2717
|
}
|
|
2708
2718
|
class yt {
|
|
2709
2719
|
constructor(e) {
|
|
@@ -2723,7 +2733,8 @@ class yt {
|
|
|
2723
2733
|
* Also adds key down event listener to the table host element.
|
|
2724
2734
|
*/
|
|
2725
2735
|
init() {
|
|
2726
|
-
|
|
2736
|
+
var e, t;
|
|
2737
|
+
(t = (e = this.tableScope) == null ? void 0 : e.tableOptions) != null && t.shortcutActionsDisabled ? this.isDebug() && console.debug("ShortcutService skipped.") : (this.assignPredefinedSystemShortcutMappings(), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this)));
|
|
2727
2738
|
}
|
|
2728
2739
|
assignPredefinedSystemShortcutMappings() {
|
|
2729
2740
|
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new bt().get()) : Object.assign(this.shortcutActionIdMapping, new mt().get());
|
|
@@ -2847,9 +2858,9 @@ class Re {
|
|
|
2847
2858
|
}
|
|
2848
2859
|
}
|
|
2849
2860
|
class xt {
|
|
2850
|
-
render(e, t, s, o, i, r,
|
|
2861
|
+
render(e, t, s, o, i, r, a) {
|
|
2851
2862
|
if (i.isEditable(t, s)) {
|
|
2852
|
-
|
|
2863
|
+
a.addClass(e, "ge-table-row-input-div");
|
|
2853
2864
|
const n = i.getValueAt(t, s);
|
|
2854
2865
|
e.innerHTML = `
|
|
2855
2866
|
<input
|
|
@@ -3007,7 +3018,7 @@ class De {
|
|
|
3007
3018
|
header: 34,
|
|
3008
3019
|
body: 34,
|
|
3009
3020
|
footer: 34
|
|
3010
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Ae(), this.headerGroupOptions = new Te(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Me(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new xt(), this.getSelectionModel = () => Ct, this.getFocusModel = () => Et;
|
|
3021
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Ae(), this.headerGroupOptions = new Te(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Me(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new xt(), this.getSelectionModel = () => Ct, this.getFocusModel = () => Et;
|
|
3011
3022
|
}
|
|
3012
3023
|
}
|
|
3013
3024
|
const W = class W {
|
|
@@ -3026,20 +3037,20 @@ const W = class W {
|
|
|
3026
3037
|
const r = this.mergeRanges(t.getRanges());
|
|
3027
3038
|
if (r) {
|
|
3028
3039
|
r.c2 = Math.min(r.c2, e.getColumnCount() - 1), r.r2 = Math.min(r.r2, e.getBodyModel().getRowCount() - 1);
|
|
3029
|
-
const
|
|
3040
|
+
const a = [];
|
|
3030
3041
|
for (let n = r.r1; n <= r.r2; n++) {
|
|
3031
3042
|
const d = [];
|
|
3032
3043
|
for (let c = r.c1; c <= r.c2; c++) {
|
|
3033
3044
|
const h = t.isSelected(n, c) ? e.getBodyModel().getTextValueAt(n, c) : "";
|
|
3034
3045
|
d.push(h);
|
|
3035
3046
|
}
|
|
3036
|
-
|
|
3047
|
+
a.push(d.join(W.columnSeparatorChar));
|
|
3037
3048
|
}
|
|
3038
|
-
return o(
|
|
3049
|
+
return o(a.join(W.rowSeparatorChar));
|
|
3039
3050
|
}
|
|
3040
3051
|
}
|
|
3041
3052
|
if (s) {
|
|
3042
|
-
const [r,
|
|
3053
|
+
const [r, a] = s.getFocus(), n = e.getBodyModel().getTextValueAt(r, a);
|
|
3043
3054
|
return o(n);
|
|
3044
3055
|
}
|
|
3045
3056
|
i("Cannot copy, neither selection nor focus defined.");
|
|
@@ -3069,9 +3080,9 @@ const W = class W {
|
|
|
3069
3080
|
t,
|
|
3070
3081
|
s
|
|
3071
3082
|
).then((r) => {
|
|
3072
|
-
r && this.copyContent(r).then((
|
|
3083
|
+
r && this.copyContent(r).then((a) => {
|
|
3073
3084
|
o(r);
|
|
3074
|
-
}).catch((
|
|
3085
|
+
}).catch((a) => {
|
|
3075
3086
|
i();
|
|
3076
3087
|
});
|
|
3077
3088
|
}).catch((r) => {
|
|
@@ -3133,13 +3144,13 @@ class Mt {
|
|
|
3133
3144
|
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>`, o = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3134
3145
|
<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Macintosh Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>`, i = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3135
3146
|
<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>${t}</dc:creator><cp:lastModifiedBy>${t}</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">2024-12-13T19:45:08Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2024-12-13T19:45:35Z</dcterms:modified></cp:coreProperties>`, r = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3136
|
-
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>`,
|
|
3147
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>`, a = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3137
3148
|
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="0E2841"/></a:dk2><a:lt2><a:srgbClr val="E8E8E8"/></a:lt2><a:accent1><a:srgbClr val="156082"/></a:accent1><a:accent2><a:srgbClr val="E97132"/></a:accent2><a:accent3><a:srgbClr val="196B24"/></a:accent3><a:accent4><a:srgbClr val="0F9ED5"/></a:accent4><a:accent5><a:srgbClr val="A02B93"/></a:accent5><a:accent6><a:srgbClr val="4EA72E"/></a:accent6><a:hlink><a:srgbClr val="467886"/></a:hlink><a:folHlink><a:srgbClr val="96607D"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Aptos Display" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Aptos Narrow" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults><a:lnDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style></a:lnDef></a:objectDefaults><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{2E142A2C-CD16-42D6-873A-C26D2A0506FA}" vid="{1BDDFF52-6CD6-40A5-AB3C-68EB2F1E4D0A}"/></a:ext></a:extLst></a:theme>`, n = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3138
3149
|
<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="3" uniqueCount="3"><si><t>a</t></si><si><t>b</t></si><si><t>c</t></si></sst>`, d = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3139
3150
|
<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"><fonts count="1" x14ac:knownFonts="1"><font><sz val="12"/><color theme="1"/><name val="Aptos Narrow"/><family val="2"/><scheme val="minor"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles><dxfs count="0"/><tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext><ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/></ext></extLst></styleSheet>`, c = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3140
3151
|
<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15 xr xr6 xr10 xr2" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr6="http://schemas.microsoft.com/office/spreadsheetml/2016/revision6" xmlns:xr10="http://schemas.microsoft.com/office/spreadsheetml/2016/revision10" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"><fileVersion appName="xl" lastEdited="7" lowestEdited="7" rupBuild="11207"/><workbookPr defaultThemeVersion="202300"/><mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"><mc:Choice Requires="x15"><x15ac:absPath url="/" xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"/></mc:Choice></mc:AlternateContent><xr:revisionPtr revIDLastSave="0" documentId="8_{292BF245-1F37-B045-B1A5-26C42FB62779}" xr6:coauthVersionLast="47" xr6:coauthVersionMax="47" xr10:uidLastSave="{00000000-0000-0000-0000-000000000000}"/><bookViews><workbookView xWindow="11340" yWindow="5060" windowWidth="28040" windowHeight="17440" xr2:uid="{858B8D3F-6246-774D-8903-6D38687B7BC6}"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="181029"/><extLst><ext uri="{140A7094-0E35-4892-8432-C4D2E57EDEB5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:workbookPr chartTrackingRefBase="1"/></ext><ext uri="{B58B0392-4F1F-4190-BB64-5DF3571DCE5F}" xmlns:xcalcf="http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures"><xcalcf:calcFeatures><xcalcf:feature name="microsoft.com:RD"/><xcalcf:feature name="microsoft.com:Single"/><xcalcf:feature name="microsoft.com:FV"/><xcalcf:feature name="microsoft.com:CNMTM"/><xcalcf:feature name="microsoft.com:LET_WF"/><xcalcf:feature name="microsoft.com:LAMBDA_WF"/><xcalcf:feature name="microsoft.com:ARRAYTEXT_WF"/></xcalcf:calcFeatures></ext></extLst></workbook>`, h = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3141
3152
|
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/><Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>`, p = /* @__PURE__ */ new Map();
|
|
3142
|
-
return p.set("_rels/.rels", s), p.set("docProps/app.xml", o), p.set("docProps/core.xml", i), p.set("xl/_rels/workbook.xml.rels", r), p.set("xl/theme/theme1.xml",
|
|
3153
|
+
return p.set("_rels/.rels", s), p.set("docProps/app.xml", o), p.set("docProps/core.xml", i), p.set("xl/_rels/workbook.xml.rels", r), p.set("xl/theme/theme1.xml", a), p.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), p.set("xl/sharedStrings.xml", n), p.set("xl/styles.xml", d), p.set("xl/workbook.xml", c), p.set("[Content_Types].xml", h), p;
|
|
3143
3154
|
}
|
|
3144
3155
|
getX1WorksheetsSheet1Xml(e) {
|
|
3145
3156
|
const t = [];
|
|
@@ -3154,15 +3165,15 @@ class Mt {
|
|
|
3154
3165
|
const o = e[s];
|
|
3155
3166
|
t.push('<row r="${r + 1}" spans="1:2" x14ac:dyDescent="0.2">');
|
|
3156
3167
|
for (let i = 0; i < o.length; i++) {
|
|
3157
|
-
const r = o[i],
|
|
3168
|
+
const r = o[i], a = this.getCellAddress(s, i);
|
|
3158
3169
|
if (typeof r == "number")
|
|
3159
|
-
t.push(`<c r="${
|
|
3170
|
+
t.push(`<c r="${a}"><v>${r}</v></c>`);
|
|
3160
3171
|
else if (r instanceof Date) {
|
|
3161
3172
|
const n = r;
|
|
3162
|
-
t.push(`<c r="${
|
|
3173
|
+
t.push(`<c r="${a}" t="inlineStr"><is><t>${n.toISOString()}</t></is></c>`);
|
|
3163
3174
|
} else {
|
|
3164
3175
|
const n = r != null ? this.escapeXml(String(r)) : "";
|
|
3165
|
-
t.push(`<c r="${
|
|
3176
|
+
t.push(`<c r="${a}" t="inlineStr"><is><t>${n}</t></is></c>`);
|
|
3166
3177
|
}
|
|
3167
3178
|
}
|
|
3168
3179
|
t.push("</row>");
|
|
@@ -3197,8 +3208,8 @@ class Mt {
|
|
|
3197
3208
|
const p = new TextEncoder().encode(h.path), u = new Uint8Array(46 + p.length), g = new DataView(u.buffer);
|
|
3198
3209
|
u.set([80, 75, 1, 2], 0), g.setUint16(4, 20, !0), g.setUint16(6, 20, !0), g.setUint16(8, 0, !0), g.setUint16(10, 0, !0), g.setUint16(12, 0, !0), g.setUint16(14, 0, !0), g.setUint32(16, 0, !0), g.setUint32(20, h.contentSize, !0), g.setUint32(24, h.contentSize, !0), g.setUint16(28, p.length, !0), g.setUint16(30, 0, !0), g.setUint16(32, 0, !0), g.setUint16(34, 0, !0), g.setUint16(36, 0, !0), g.setUint32(38, 0, !0), g.setUint32(42, h.offset, !0), u.set(p, 46), t.push(u), s += u.length;
|
|
3199
3210
|
});
|
|
3200
|
-
const r = new Uint8Array(22),
|
|
3201
|
-
r.set([80, 75, 5, 6], 0),
|
|
3211
|
+
const r = new Uint8Array(22), a = new DataView(r.buffer);
|
|
3212
|
+
r.set([80, 75, 5, 6], 0), a.setUint16(4, 0, !0), a.setUint16(6, 0, !0), a.setUint16(8, o.length, !0), a.setUint16(10, o.length, !0), a.setUint32(12, s - i, !0), a.setUint32(16, i, !0), a.setUint16(20, 0, !0), t.push(r);
|
|
3202
3213
|
const n = t.reduce((h, p) => h + p.length, 0), d = new Uint8Array(n);
|
|
3203
3214
|
let c = 0;
|
|
3204
3215
|
for (const h of t)
|
|
@@ -3211,11 +3222,11 @@ class Mt {
|
|
|
3211
3222
|
}
|
|
3212
3223
|
}
|
|
3213
3224
|
class he extends ht {
|
|
3214
|
-
constructor(e, t, s, o, i, r = new K(),
|
|
3225
|
+
constructor(e, t, s, o, i, r = new K(), a = new Mt()) {
|
|
3215
3226
|
var c;
|
|
3216
|
-
if (super(e, t, new qe(s), o), this.eventListener = i, this.copyService = r, this.excelService =
|
|
3227
|
+
if (super(e, t, new qe(s), o), this.eventListener = i, this.copyService = r, this.excelService = a, this.licenseManager = B.getInstance(), this.selectionService = new ut(this), this.api = new ot(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, this.lastContextmenu = Date.now(), t.setTableScope(this), i || (this.eventListener = new me()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
|
|
3217
3228
|
const h = this.tableOptions.autoRestoreOptions, p = h.getStorageKeyFn;
|
|
3218
|
-
p && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new it(p)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new
|
|
3229
|
+
p && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new it(p)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new lt(p)), h.autoRestoreSortingState && (this.storeSortingService = new at(p)));
|
|
3219
3230
|
}
|
|
3220
3231
|
this.mouseHandler = new Qe(this), this.inputHandler = new gt(this), this.resizeHandler = new At(this, o.resizeEventDebounceDelay), this.shortcutService = new yt(this), this.shortcutService.addListener(this.selectionService);
|
|
3221
3232
|
const n = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
@@ -3293,7 +3304,7 @@ class he extends ht {
|
|
|
3293
3304
|
* @return {GeMouseEvent} - The created GeMouseEvent object.
|
|
3294
3305
|
*/
|
|
3295
3306
|
createGeMouseEvent(e) {
|
|
3296
|
-
const t = new
|
|
3307
|
+
const t = new ae();
|
|
3297
3308
|
if (t.originalEvent = e, e) {
|
|
3298
3309
|
const s = e.target;
|
|
3299
3310
|
if ([t.areaIdent, t.sideIdent] = this.getAreaAndSideIdentByAttr(s), t.rowIndex = this.getNumberByAttr(s, "data-row-index"), t.columnIndex = this.getNumberByAttr(s, "data-col-index"), t.action = this.getStringByAttr(s, "data-ge-action"), t.areaIdent) {
|
|
@@ -3384,8 +3395,8 @@ class he extends ht {
|
|
|
3384
3395
|
var n;
|
|
3385
3396
|
const o = this.tableModel.getAreaModel(s), i = o.isRowChecked(e), r = i === void 0 || i === "semi" || i === "none";
|
|
3386
3397
|
o.setRowChecked(e, r), this.repaint();
|
|
3387
|
-
const
|
|
3388
|
-
this.eventListener.onCheckboxChanged(
|
|
3398
|
+
const a = (n = o.rowSelectionModel) == null ? void 0 : n.getCheckedRows();
|
|
3399
|
+
this.eventListener.onCheckboxChanged(a || []);
|
|
3389
3400
|
}
|
|
3390
3401
|
/**
|
|
3391
3402
|
* Handle mouse click events.
|
|
@@ -3439,7 +3450,7 @@ class he extends ht {
|
|
|
3439
3450
|
const o = this.tableModel.getColumnDef(s);
|
|
3440
3451
|
if (o != null && o.sortable && o.sortable()) {
|
|
3441
3452
|
e.preventDefault(), e.stopPropagation();
|
|
3442
|
-
const
|
|
3453
|
+
const a = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, n = o.sortState ?? "", d = a[(a.indexOf(n) + 1) % a.length], c = new pt(s, d);
|
|
3443
3454
|
this.tableModel.doSort([c]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((p) => p.sortState = ""), o.sortState = d), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([c]);
|
|
3444
3455
|
}
|
|
3445
3456
|
}
|
|
@@ -3586,7 +3597,7 @@ class he extends ht {
|
|
|
3586
3597
|
if (s.autoRestoreCollapsedExpandedState && o) {
|
|
3587
3598
|
const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
|
|
3588
3599
|
if (re(r)) {
|
|
3589
|
-
const
|
|
3600
|
+
const a = r, n = r.getRowCount();
|
|
3590
3601
|
for (let d = 0; d < n; d++) {
|
|
3591
3602
|
const c = r.getRowByIndex(d);
|
|
3592
3603
|
if (c)
|
|
@@ -3599,7 +3610,7 @@ class he extends ht {
|
|
|
3599
3610
|
i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h) : i.mode === "collapsed" && (c.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h));
|
|
3600
3611
|
}
|
|
3601
3612
|
}
|
|
3602
|
-
|
|
3613
|
+
a.recalcVisibleTreeRows();
|
|
3603
3614
|
}
|
|
3604
3615
|
}
|
|
3605
3616
|
}
|
|
@@ -3611,7 +3622,7 @@ class he extends ht {
|
|
|
3611
3622
|
const o = new Array(t).fill(0);
|
|
3612
3623
|
for (let i = 0; i < s; i++)
|
|
3613
3624
|
for (let r = 0; r < t; r++) {
|
|
3614
|
-
const
|
|
3625
|
+
const a = e.getValueAt(i, r), n = (a == null ? void 0 : a.toString().length) || 0;
|
|
3615
3626
|
n > o[r] && (o[r] = n);
|
|
3616
3627
|
}
|
|
3617
3628
|
return o.map((i) => Math.max(i * 10, 50));
|
|
@@ -3877,11 +3888,11 @@ const J = class J {
|
|
|
3877
3888
|
constructor(e = new Te()) {
|
|
3878
3889
|
this.headerGroupOptions = e;
|
|
3879
3890
|
}
|
|
3880
|
-
render(e, t, s, o, i, r,
|
|
3891
|
+
render(e, t, s, o, i, r, a) {
|
|
3881
3892
|
const n = r != null && r.data ? r.data : "";
|
|
3882
3893
|
if (r) {
|
|
3883
3894
|
const { toggle: d, visibility: c, closed: h } = r, p = d ? J.toggleHeaderGroup : "";
|
|
3884
|
-
this.addText(e, o, t, s, n, p), d && c !== "always" && this.addArrowDiv(
|
|
3895
|
+
this.addText(e, o, t, s, n, p), d && c !== "always" && this.addArrowDiv(a, e, !h, t, s, o, p);
|
|
3885
3896
|
} else
|
|
3886
3897
|
this.addText(e, o, t, s, n, "");
|
|
3887
3898
|
}
|
|
@@ -3893,9 +3904,9 @@ const J = class J {
|
|
|
3893
3904
|
data-col-index="${o}"
|
|
3894
3905
|
>${i}</span>`;
|
|
3895
3906
|
}
|
|
3896
|
-
addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header",
|
|
3907
|
+
addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header", a) {
|
|
3897
3908
|
const n = e.createElement("div");
|
|
3898
|
-
e.addClass(n, "ge-table-toggle-icon-div"), e.setStyle(n, "display", "inline-block"), e.setStyle(n, "position", ""), e.setStyle(n, "width", "20px"), e.setStyle(n, "background", "transparent"), e.setStyle(n, "cursor", "pointer"), e.setAttribute(n, "data-row-index", `${o}`), e.setAttribute(n, "data-col-index", `${i}`), e.setAttribute(n, "data-area", `${r}`), e.setAttribute(n, "data-ge-action", `${
|
|
3909
|
+
e.addClass(n, "ge-table-toggle-icon-div"), e.setStyle(n, "display", "inline-block"), e.setStyle(n, "position", ""), e.setStyle(n, "width", "20px"), e.setStyle(n, "background", "transparent"), e.setStyle(n, "cursor", "pointer"), e.setAttribute(n, "data-row-index", `${o}`), e.setAttribute(n, "data-col-index", `${i}`), e.setAttribute(n, "data-area", `${r}`), e.setAttribute(n, "data-ge-action", `${a}`);
|
|
3899
3910
|
let d;
|
|
3900
3911
|
s ? d = this.headerGroupOptions.iconExpanded : d = this.headerGroupOptions.iconCollapsed;
|
|
3901
3912
|
const c = d.content, h = e.createText(c);
|
|
@@ -3907,84 +3918,84 @@ const J = class J {
|
|
|
3907
3918
|
applyStyleString(e, t, s) {
|
|
3908
3919
|
const o = s.split(";").map((i) => i.trim()).filter((i) => i);
|
|
3909
3920
|
for (const i of o) {
|
|
3910
|
-
const [r,
|
|
3911
|
-
e.setStyle(t, r.trim(),
|
|
3921
|
+
const [r, a] = i.split(":");
|
|
3922
|
+
e.setStyle(t, r.trim(), a.trim());
|
|
3912
3923
|
}
|
|
3913
3924
|
}
|
|
3914
3925
|
};
|
|
3915
3926
|
J.toggleHeaderGroup = "toggleHeaderGroup";
|
|
3916
3927
|
let Se = J;
|
|
3917
3928
|
var Rt = /* @__PURE__ */ Xe("<div>");
|
|
3918
|
-
const kt = (
|
|
3929
|
+
const kt = (l) => {
|
|
3919
3930
|
let e;
|
|
3920
3931
|
const t = Ee({
|
|
3921
3932
|
tableModel: null,
|
|
3922
3933
|
tableOptions: new De()
|
|
3923
|
-
},
|
|
3934
|
+
}, l);
|
|
3924
3935
|
return Pe(() => {
|
|
3925
3936
|
const s = {
|
|
3926
3937
|
onSelectionChanged(r) {
|
|
3927
|
-
const
|
|
3938
|
+
const a = new CustomEvent("selectionChanged", {
|
|
3928
3939
|
detail: r,
|
|
3929
3940
|
bubbles: !0
|
|
3930
3941
|
});
|
|
3931
|
-
e && e.dispatchEvent(
|
|
3942
|
+
e && e.dispatchEvent(a);
|
|
3932
3943
|
},
|
|
3933
3944
|
onFocusChanged(r) {
|
|
3934
|
-
const
|
|
3945
|
+
const a = new CustomEvent("focusChanged", {
|
|
3935
3946
|
detail: r,
|
|
3936
3947
|
bubbles: !0
|
|
3937
3948
|
});
|
|
3938
|
-
e && e.dispatchEvent(
|
|
3949
|
+
e && e.dispatchEvent(a);
|
|
3939
3950
|
},
|
|
3940
3951
|
onCheckboxChanged: (r) => {
|
|
3941
|
-
const
|
|
3952
|
+
const a = new CustomEvent("checkboxChanged", {
|
|
3942
3953
|
detail: r,
|
|
3943
3954
|
bubbles: !0
|
|
3944
3955
|
});
|
|
3945
|
-
e && e.dispatchEvent(
|
|
3956
|
+
e && e.dispatchEvent(a);
|
|
3946
3957
|
},
|
|
3947
3958
|
onContextmenu: (r) => {
|
|
3948
|
-
const
|
|
3959
|
+
const a = new CustomEvent("contextmenu", {
|
|
3949
3960
|
detail: r,
|
|
3950
3961
|
bubbles: !0
|
|
3951
3962
|
});
|
|
3952
|
-
e && e.dispatchEvent(
|
|
3963
|
+
e && e.dispatchEvent(a);
|
|
3953
3964
|
},
|
|
3954
3965
|
onModelChanged: (r) => {
|
|
3955
|
-
const
|
|
3966
|
+
const a = new CustomEvent("modelChanged", {
|
|
3956
3967
|
detail: r,
|
|
3957
3968
|
bubbles: !0
|
|
3958
3969
|
});
|
|
3959
|
-
e && e.dispatchEvent(
|
|
3970
|
+
e && e.dispatchEvent(a);
|
|
3960
3971
|
},
|
|
3961
3972
|
onMouseClicked: (r) => {
|
|
3962
|
-
const
|
|
3973
|
+
const a = new CustomEvent("mouseClicked", {
|
|
3963
3974
|
detail: r,
|
|
3964
3975
|
bubbles: !0
|
|
3965
3976
|
});
|
|
3966
|
-
e && e.dispatchEvent(
|
|
3977
|
+
e && e.dispatchEvent(a);
|
|
3967
3978
|
},
|
|
3968
3979
|
onMouseDragging: (r) => {
|
|
3969
|
-
const
|
|
3980
|
+
const a = new CustomEvent("mouseDragging", {
|
|
3970
3981
|
detail: r,
|
|
3971
3982
|
bubbles: !0
|
|
3972
3983
|
});
|
|
3973
|
-
e && e.dispatchEvent(
|
|
3984
|
+
e && e.dispatchEvent(a);
|
|
3974
3985
|
},
|
|
3975
3986
|
onMouseDraggingEnd: (r) => {
|
|
3976
|
-
const
|
|
3987
|
+
const a = new CustomEvent("mouseDraggingEnd", {
|
|
3977
3988
|
detail: r,
|
|
3978
3989
|
bubbles: !0
|
|
3979
3990
|
});
|
|
3980
|
-
e && e.dispatchEvent(
|
|
3991
|
+
e && e.dispatchEvent(a);
|
|
3981
3992
|
},
|
|
3982
3993
|
onMouseMoved: (r) => {
|
|
3983
|
-
const
|
|
3994
|
+
const a = new CustomEvent("mouseMoved", {
|
|
3984
3995
|
detail: r,
|
|
3985
3996
|
bubbles: !0
|
|
3986
3997
|
});
|
|
3987
|
-
e && e.dispatchEvent(
|
|
3998
|
+
e && e.dispatchEvent(a);
|
|
3988
3999
|
}
|
|
3989
4000
|
}, o = new he(e, t.tableModel, new Re(), t.tableOptions, s);
|
|
3990
4001
|
o.firstInit();
|