@guiexpert/solid-table 1.1.61 → 1.1.63
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 +375 -353
- 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 =
|
|
72
|
-
r && ee.disposed.has(i), (r ? !i.tState : !i.state) && (i.pure ? M.push(i) : O.push(i), i.observers &&
|
|
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
|
+
r && ee.disposed.has(i), (r ? !i.tState : !i.state) && (i.pure ? M.push(i) : O.push(i), i.observers && Ce(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, ve(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
|
-
t || (O = null), M = null,
|
|
140
|
+
t || (O = null), M = null, ve(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
|
|
170
|
-
for (let e = 0; e <
|
|
171
|
-
const t =
|
|
172
|
-
t.state || (t.state = G, t.pure ? M.push(t) : O.push(t), t.observers &&
|
|
169
|
+
function Ce(l) {
|
|
170
|
+
for (let e = 0; e < l.observers.length; e += 1) {
|
|
171
|
+
const t = l.observers[e];
|
|
172
|
+
t.state || (t.state = G, t.pure ? M.push(t) : O.push(t), t.observers && Ce(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
|
|
205
|
-
throw Ne(
|
|
204
|
+
function ve(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);
|
|
@@ -994,8 +994,8 @@ class tt {
|
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
996
|
class st extends et {
|
|
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((
|
|
997
|
+
constructor(e, t, s, o = [], i = "ge-selected-row", r = "ge-focused-row") {
|
|
998
|
+
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.selectedRowClass = i, this.focusedRowClass = r, this.focusedRowIndex = 0, this.sorterService = new tt(), this.filteredRows = [...t], this.properties = o.map((a) => a.property);
|
|
999
999
|
}
|
|
1000
1000
|
setRows(e) {
|
|
1001
1001
|
this.rows = e, this.filteredRows = [...e];
|
|
@@ -1003,6 +1003,9 @@ class st extends et {
|
|
|
1003
1003
|
filterRowsByPredict(e) {
|
|
1004
1004
|
this.rows = this.rows.filter(e), this.filteredRows = this.filteredRows.filter(e);
|
|
1005
1005
|
}
|
|
1006
|
+
/**
|
|
1007
|
+
* return row count of filtered rows
|
|
1008
|
+
*/
|
|
1006
1009
|
getRowCount() {
|
|
1007
1010
|
var e;
|
|
1008
1011
|
return ((e = this.filteredRows) == null ? void 0 : e.length) ?? 0;
|
|
@@ -1012,6 +1015,12 @@ class st extends et {
|
|
|
1012
1015
|
let o = this.filteredRows[e];
|
|
1013
1016
|
return X(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
|
|
1014
1017
|
}
|
|
1018
|
+
/**
|
|
1019
|
+
* Retrieves the filtered and sorted rows from the dataset.
|
|
1020
|
+
* These rows are used for rendering the table.
|
|
1021
|
+
*
|
|
1022
|
+
* @return {T[]} An array containing the filtered (and sorted) rows.
|
|
1023
|
+
*/
|
|
1015
1024
|
getFilteredRows() {
|
|
1016
1025
|
return this.filteredRows;
|
|
1017
1026
|
}
|
|
@@ -1040,11 +1049,15 @@ class st extends et {
|
|
|
1040
1049
|
changeColumnOrder(e, t) {
|
|
1041
1050
|
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
1042
1051
|
}
|
|
1052
|
+
getCustomClassesAt(e, t) {
|
|
1053
|
+
const s = super.getCustomClassesAt(e, t);
|
|
1054
|
+
return this.getRowByIndex(e).selected && s.push(this.selectedRowClass), this.focusedRowIndex === e && s.push(this.focusedRowClass), s;
|
|
1055
|
+
}
|
|
1043
1056
|
genericFlatTableSortComparator(e, t) {
|
|
1044
1057
|
const s = this.columnDefs.find((o) => o.property === e);
|
|
1045
1058
|
return (o, i) => {
|
|
1046
|
-
const r = this.getValueByT(o, e),
|
|
1047
|
-
return s != null && s.sortComparator ? t * s.sortComparator(r,
|
|
1059
|
+
const r = this.getValueByT(o, e), a = this.getValueByT(i, e);
|
|
1060
|
+
return s != null && s.sortComparator ? t * s.sortComparator(r, a, o, i, t) : this.sorterService.genericSortComparator(r, a, t);
|
|
1048
1061
|
};
|
|
1049
1062
|
}
|
|
1050
1063
|
getPropertyValue(e, t) {
|
|
@@ -1239,12 +1252,12 @@ class ot {
|
|
|
1239
1252
|
downloadExcel(e = "table.xlsx", t = "") {
|
|
1240
1253
|
const s = [], o = this.tableScope.tableModel.getColumnCount(), i = ["header", "body", "footer"];
|
|
1241
1254
|
for (const r of i) {
|
|
1242
|
-
const
|
|
1255
|
+
const a = this.tableScope.tableModel.getAreaModel(r), n = (a == null ? void 0 : a.getRowCount()) ?? 0;
|
|
1243
1256
|
for (let d = 0; d < n; d++) {
|
|
1244
1257
|
const c = [];
|
|
1245
1258
|
s.push(c);
|
|
1246
1259
|
for (let h = 0; h < o; h++)
|
|
1247
|
-
c.push(
|
|
1260
|
+
c.push(a.getValueAt(d, h));
|
|
1248
1261
|
}
|
|
1249
1262
|
}
|
|
1250
1263
|
return this.tableScope.excelService.downloadExcel(s, e, t);
|
|
@@ -1288,6 +1301,9 @@ class ot {
|
|
|
1288
1301
|
reSort() {
|
|
1289
1302
|
this.tableScope.reSort();
|
|
1290
1303
|
}
|
|
1304
|
+
getDisplayedRowCount() {
|
|
1305
|
+
return this.tableScope.getDisplayedRowCount();
|
|
1306
|
+
}
|
|
1291
1307
|
}
|
|
1292
1308
|
class ce {
|
|
1293
1309
|
constructor(e) {
|
|
@@ -1383,7 +1399,7 @@ class rt {
|
|
|
1383
1399
|
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
|
|
1384
1400
|
}
|
|
1385
1401
|
}
|
|
1386
|
-
class
|
|
1402
|
+
class lt extends ce {
|
|
1387
1403
|
constructor(e) {
|
|
1388
1404
|
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new rt(), this.load();
|
|
1389
1405
|
}
|
|
@@ -1417,7 +1433,7 @@ class at extends ce {
|
|
|
1417
1433
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
1418
1434
|
}
|
|
1419
1435
|
}
|
|
1420
|
-
class
|
|
1436
|
+
class at extends ce {
|
|
1421
1437
|
constructor(e) {
|
|
1422
1438
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
1423
1439
|
}
|
|
@@ -1663,9 +1679,9 @@ class ct {
|
|
|
1663
1679
|
let i = this.areaModel.getColspanAt(s, o), r = this.areaModel.getRowspanAt(s, o);
|
|
1664
1680
|
if (i > 1 || r > 1) {
|
|
1665
1681
|
i === 0 && (i = 1), r === 0 && (r = 1);
|
|
1666
|
-
const
|
|
1682
|
+
const a = "gammaCells" in this.areaModel;
|
|
1667
1683
|
this.colAndRowspanRanges.push(
|
|
1668
|
-
new A(s, o, s + r - 1, o + i - 1,
|
|
1684
|
+
new A(s, o, s + r - 1, o + i - 1, a)
|
|
1669
1685
|
);
|
|
1670
1686
|
}
|
|
1671
1687
|
}
|
|
@@ -1689,12 +1705,12 @@ class dt {
|
|
|
1689
1705
|
}
|
|
1690
1706
|
class ht extends nt {
|
|
1691
1707
|
constructor(e, t, s, o) {
|
|
1692
|
-
var r,
|
|
1708
|
+
var r, a;
|
|
1693
1709
|
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
1710
|
header: [],
|
|
1695
1711
|
body: [],
|
|
1696
1712
|
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), (
|
|
1713
|
+
}, this.tree = !1, this.colAndRowspanModels = new dt(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.displayedRowCount = 0, 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
1714
|
(n) => {
|
|
1699
1715
|
var d;
|
|
1700
1716
|
this.colAndRowspanModels[n] = new ct(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
|
|
@@ -1834,7 +1850,7 @@ class ht extends nt {
|
|
|
1834
1850
|
* @param {string[]} cssClasses - An array of CSS classes to be applied to the cell.
|
|
1835
1851
|
*/
|
|
1836
1852
|
rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: o, cssClasses: i }) {
|
|
1837
|
-
const r = this.tableModel.getAreaModel(e),
|
|
1853
|
+
const r = this.tableModel.getAreaModel(e), a = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', n = document.querySelector(a);
|
|
1838
1854
|
if (n) {
|
|
1839
1855
|
let d;
|
|
1840
1856
|
const c = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
|
|
@@ -1951,7 +1967,7 @@ class ht extends nt {
|
|
|
1951
1967
|
var f;
|
|
1952
1968
|
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
|
|
1953
1969
|
s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
|
|
1954
|
-
const
|
|
1970
|
+
const a = 0, n = this.areaBodyCenterGeo.width, d = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), h = c.getRowCount();
|
|
1955
1971
|
for (; this.cleanupFunctions[e].length; ) {
|
|
1956
1972
|
const m = this.cleanupFunctions[e].shift();
|
|
1957
1973
|
m && m();
|
|
@@ -1959,10 +1975,10 @@ class ht extends nt {
|
|
|
1959
1975
|
let p = t;
|
|
1960
1976
|
const u = this.tableModel.getColumnCount(), g = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
|
|
1961
1977
|
for (let m = 0; m < h; m++) {
|
|
1962
|
-
const x = p,
|
|
1978
|
+
const x = p, C = m === h - 1, E = this.tableModel.getRowHeight(e, m);
|
|
1963
1979
|
if (x + E > 0) {
|
|
1964
1980
|
this.firstVisibleRowIndex = m;
|
|
1965
|
-
let y = { left:
|
|
1981
|
+
let y = { left: a, width: n, height: E, top: x, index: m }, S = this.dom.addRowDiv(o, y, m, e, "center");
|
|
1966
1982
|
const k = b;
|
|
1967
1983
|
if (this.adjustColumnsToRowParent({
|
|
1968
1984
|
areaIdent: e,
|
|
@@ -1974,8 +1990,8 @@ class ht extends nt {
|
|
|
1974
1990
|
columnIndexStart: k,
|
|
1975
1991
|
columnIndexEnd: u - g - 1,
|
|
1976
1992
|
verticalFixed: !1,
|
|
1977
|
-
lastRowOfModel:
|
|
1978
|
-
}), d.left > 0 && (y = { left:
|
|
1993
|
+
lastRowOfModel: C
|
|
1994
|
+
}), 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
1995
|
areaIdent: e,
|
|
1980
1996
|
sideIdent: "west",
|
|
1981
1997
|
areaModel: c,
|
|
@@ -1985,8 +2001,8 @@ class ht extends nt {
|
|
|
1985
2001
|
columnIndexStart: 0,
|
|
1986
2002
|
columnIndexEnd: k - 1,
|
|
1987
2003
|
verticalFixed: !0,
|
|
1988
|
-
lastRowOfModel:
|
|
1989
|
-
})), d.right > 0 && (y = { left:
|
|
2004
|
+
lastRowOfModel: C
|
|
2005
|
+
})), 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
2006
|
areaIdent: e,
|
|
1991
2007
|
sideIdent: "east",
|
|
1992
2008
|
areaModel: c,
|
|
@@ -1996,7 +2012,7 @@ class ht extends nt {
|
|
|
1996
2012
|
columnIndexStart: u - g,
|
|
1997
2013
|
columnIndexEnd: u - 1,
|
|
1998
2014
|
verticalFixed: !0,
|
|
1999
|
-
lastRowOfModel:
|
|
2015
|
+
lastRowOfModel: C
|
|
2000
2016
|
})), e === "header" && this.tree && m === h - 1) {
|
|
2001
2017
|
const T = this.dom.applyStyle(
|
|
2002
2018
|
this.dom.setAttribute(
|
|
@@ -2012,23 +2028,25 @@ class ht extends nt {
|
|
|
2012
2028
|
}
|
|
2013
2029
|
}
|
|
2014
2030
|
}
|
|
2015
|
-
if (p = p + E, p > r)
|
|
2031
|
+
if (p = p + E, p > r) {
|
|
2032
|
+
e === "body" && (this.displayedRowCount = this.firstVisibleRowIndex - m);
|
|
2016
2033
|
break;
|
|
2034
|
+
}
|
|
2017
2035
|
}
|
|
2018
2036
|
if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
|
|
2019
2037
|
const m = ((f = this.colAndRowspanModels[e]) == null ? void 0 : f.getRanges()) ?? [];
|
|
2020
2038
|
if (m.length)
|
|
2021
2039
|
for (const x of m) {
|
|
2022
|
-
let
|
|
2040
|
+
let C = 0, E = o.child, y = "center";
|
|
2023
2041
|
if (x.c1 < b)
|
|
2024
2042
|
E = s.child, y = "west";
|
|
2025
2043
|
else if (g > 0 && x.c1 >= u - g)
|
|
2026
2044
|
E = i.child, y = "east";
|
|
2027
2045
|
else {
|
|
2028
2046
|
const S = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
2029
|
-
|
|
2047
|
+
C = this.scrollFactorX * S - this.areaBodyWestGeo.width, y = "center";
|
|
2030
2048
|
}
|
|
2031
|
-
this.drawBigCell(x,
|
|
2049
|
+
this.drawBigCell(x, C, t, c, E, y);
|
|
2032
2050
|
}
|
|
2033
2051
|
}
|
|
2034
2052
|
}
|
|
@@ -2043,7 +2061,7 @@ class ht extends nt {
|
|
|
2043
2061
|
* @protected
|
|
2044
2062
|
*/
|
|
2045
2063
|
drawBigCell(e, t, s, o, i, r) {
|
|
2046
|
-
const
|
|
2064
|
+
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
2065
|
let c = 0;
|
|
2048
2066
|
d > 0 && e.c1 >= n - d && (c = n - d);
|
|
2049
2067
|
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 +2074,7 @@ class ht extends nt {
|
|
|
2056
2074
|
rowIndex: e.r1,
|
|
2057
2075
|
columnIndex: e.c1,
|
|
2058
2076
|
left: h,
|
|
2059
|
-
top:
|
|
2077
|
+
top: a,
|
|
2060
2078
|
width: u,
|
|
2061
2079
|
height: p,
|
|
2062
2080
|
parent: i,
|
|
@@ -2070,7 +2088,7 @@ class ht extends nt {
|
|
|
2070
2088
|
rowIndex: e.r1,
|
|
2071
2089
|
columnIndex: e.c1,
|
|
2072
2090
|
left: h,
|
|
2073
|
-
top:
|
|
2091
|
+
top: a,
|
|
2074
2092
|
width: u,
|
|
2075
2093
|
height: p,
|
|
2076
2094
|
parent: i,
|
|
@@ -2081,7 +2099,7 @@ class ht extends nt {
|
|
|
2081
2099
|
rowIndex: e.r1,
|
|
2082
2100
|
columnIndex: e.c1,
|
|
2083
2101
|
cellLeft: h,
|
|
2084
|
-
cellTop:
|
|
2102
|
+
cellTop: a,
|
|
2085
2103
|
cellWidth: u,
|
|
2086
2104
|
cellHeight: p,
|
|
2087
2105
|
parent: i
|
|
@@ -2121,7 +2139,7 @@ class ht extends nt {
|
|
|
2121
2139
|
geo: o,
|
|
2122
2140
|
parent: i,
|
|
2123
2141
|
rowIndex: r,
|
|
2124
|
-
columnIndexStart:
|
|
2142
|
+
columnIndexStart: a,
|
|
2125
2143
|
columnIndexEnd: n,
|
|
2126
2144
|
verticalFixed: d = !1,
|
|
2127
2145
|
lastRowOfModel: c = !1
|
|
@@ -2135,21 +2153,21 @@ class ht extends nt {
|
|
|
2135
2153
|
}
|
|
2136
2154
|
const p = 0, u = !!(e === "body" && t);
|
|
2137
2155
|
let g = h;
|
|
2138
|
-
for (let f =
|
|
2156
|
+
for (let f = a; f <= n; f++) {
|
|
2139
2157
|
const m = g, x = this.tableModel.getColumnWidth(f);
|
|
2140
2158
|
if (x > 0 && m + x > 0) {
|
|
2141
|
-
let
|
|
2159
|
+
let C = o.height;
|
|
2142
2160
|
const E = s.getRowspanAt(r, f), y = s.getColspanAt(r, f);
|
|
2143
|
-
E > 1 && (
|
|
2161
|
+
E > 1 && (C = this.getRowHeights(r, r + E - 1, s).reduce((T, D) => T + D, 0));
|
|
2144
2162
|
let S = x;
|
|
2145
2163
|
y > 1 && (S = this.getColumnWidths(f, f + y - 1).reduce((T, D) => T + D, 0));
|
|
2146
2164
|
let k = !1;
|
|
2147
2165
|
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(r, f) && (k = !0), this.draggingTargetColumnIndex === f && e !== "header") {
|
|
2148
|
-
this.renderDragTargetDiv(i, m, p, S,
|
|
2149
|
-
const T = { left: m, top: p, width: S, height:
|
|
2166
|
+
this.renderDragTargetDiv(i, m, p, S, C);
|
|
2167
|
+
const T = { left: m, top: p, width: S, height: C };
|
|
2150
2168
|
this.dom.addColumnBorderDivs(this.tableOptions, i, T, e, t);
|
|
2151
2169
|
} else {
|
|
2152
|
-
const T = this.renderSelectedBackgroundDiv(k, u, t, s, r, f, i, m, p, S,
|
|
2170
|
+
const T = this.renderSelectedBackgroundDiv(k, u, t, s, r, f, i, m, p, S, C);
|
|
2153
2171
|
"gammaCells" in s && s.getValueAt(r, f) && (k = !1), k || this.renderCell({
|
|
2154
2172
|
areaModel: s,
|
|
2155
2173
|
areaIdent: e,
|
|
@@ -2159,7 +2177,7 @@ class ht extends nt {
|
|
|
2159
2177
|
left: m,
|
|
2160
2178
|
top: p,
|
|
2161
2179
|
width: S,
|
|
2162
|
-
height:
|
|
2180
|
+
height: C,
|
|
2163
2181
|
parent: i,
|
|
2164
2182
|
cellSelected: T,
|
|
2165
2183
|
lastRowOfModel: c,
|
|
@@ -2170,7 +2188,7 @@ class ht extends nt {
|
|
|
2170
2188
|
cellLeft: m,
|
|
2171
2189
|
cellTop: p,
|
|
2172
2190
|
cellWidth: S,
|
|
2173
|
-
cellHeight:
|
|
2191
|
+
cellHeight: C,
|
|
2174
2192
|
parent: i
|
|
2175
2193
|
});
|
|
2176
2194
|
}
|
|
@@ -2199,25 +2217,25 @@ class ht extends nt {
|
|
|
2199
2217
|
rowIndex: o,
|
|
2200
2218
|
index: i,
|
|
2201
2219
|
left: r,
|
|
2202
|
-
width:
|
|
2220
|
+
width: a,
|
|
2203
2221
|
height: n,
|
|
2204
2222
|
top: d,
|
|
2205
2223
|
parent: c,
|
|
2206
2224
|
lastRowOfModel: h
|
|
2207
2225
|
}) {
|
|
2208
2226
|
var pe;
|
|
2209
|
-
const u = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: r, width:
|
|
2227
|
+
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
2228
|
let f = "none";
|
|
2211
2229
|
if (i === this.getTreeArrowColumnIndex() && X(b)) {
|
|
2212
|
-
const
|
|
2213
|
-
(pe =
|
|
2230
|
+
const v = b;
|
|
2231
|
+
(pe = v.children) != null && pe.length ? v.expanded ? f = "expanded" : f = "collapsed" : f = "hidden";
|
|
2214
2232
|
}
|
|
2215
2233
|
let x;
|
|
2216
2234
|
if (t === "header") {
|
|
2217
|
-
const
|
|
2218
|
-
(!(
|
|
2235
|
+
const v = this.tableModel.getColumnDef(i);
|
|
2236
|
+
(!(v != null && v.sortIconVisible) || v != null && v.sortIconVisible()) && (x = v == null ? void 0 : v.sortState);
|
|
2219
2237
|
}
|
|
2220
|
-
const
|
|
2238
|
+
const C = e.getValueAt(o, i), E = u ? "" : `${C}`, y = e.isRowChecked(o), S = this.dom.addColumnDiv(
|
|
2221
2239
|
{
|
|
2222
2240
|
parent: c,
|
|
2223
2241
|
geo: g,
|
|
@@ -2236,17 +2254,17 @@ class ht extends nt {
|
|
|
2236
2254
|
const T = this.tableModel.getColumnDef(i);
|
|
2237
2255
|
T && T.classes[t] && this.dom.addClasses(T.classes[t], S);
|
|
2238
2256
|
let D;
|
|
2239
|
-
u && (D = u.render(S, o, i, t, e,
|
|
2257
|
+
u && (D = u.render(S, o, i, t, e, C, this.dom.domService));
|
|
2240
2258
|
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:
|
|
2242
|
-
const
|
|
2243
|
-
|
|
2259
|
+
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") {
|
|
2260
|
+
const v = this.getFocusModel();
|
|
2261
|
+
v != null && v.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, g, {});
|
|
2244
2262
|
}
|
|
2245
2263
|
t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
|
|
2246
2264
|
const Q = e.getCustomStyleAt(o, i);
|
|
2247
2265
|
if (Q)
|
|
2248
|
-
for (const
|
|
2249
|
-
this.dom.setStyle(S,
|
|
2266
|
+
for (const v in Q)
|
|
2267
|
+
this.dom.setStyle(S, v, Q[v]);
|
|
2250
2268
|
return [S, D];
|
|
2251
2269
|
}
|
|
2252
2270
|
/**
|
|
@@ -2377,9 +2395,9 @@ class ht extends nt {
|
|
|
2377
2395
|
adjustDraggingColumn(e, t, s) {
|
|
2378
2396
|
var o, i;
|
|
2379
2397
|
if (this.dragging) {
|
|
2380
|
-
const r = this.hostElement.clientHeight,
|
|
2398
|
+
const r = this.hostElement.clientHeight, a = this.storedColumnWidths[t];
|
|
2381
2399
|
if ((o = e.originalEvent) != null && o.clientX) {
|
|
2382
|
-
const c = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) -
|
|
2400
|
+
const c = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - a / 2, width: a, height: r, top: 0, index: t };
|
|
2383
2401
|
this.dom.applyStyle(this.draggingColumn, {
|
|
2384
2402
|
background: "rgba(128,128,128,0.2)",
|
|
2385
2403
|
display: "block",
|
|
@@ -2411,24 +2429,24 @@ class ht extends nt {
|
|
|
2411
2429
|
renderContentOfDraggingColumnForArea(e, t, s = 0) {
|
|
2412
2430
|
const o = "center", i = this.tableModel.getAreaModel(t), r = i == null ? void 0 : i.getRowCount();
|
|
2413
2431
|
if (r) {
|
|
2414
|
-
const
|
|
2432
|
+
const a = e.index ?? 0, n = this.draggingColumn;
|
|
2415
2433
|
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,
|
|
2434
|
+
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
2435
|
parent: n,
|
|
2418
2436
|
geo: p,
|
|
2419
2437
|
rowIndex: d,
|
|
2420
|
-
columnIndex:
|
|
2438
|
+
columnIndex: a,
|
|
2421
2439
|
areaIdent: t,
|
|
2422
2440
|
sideIdent: o,
|
|
2423
2441
|
text: b
|
|
2424
2442
|
}, m = this.dom.addColumnDiv(f);
|
|
2425
2443
|
let x;
|
|
2426
|
-
g && (x = g.render(m, d,
|
|
2427
|
-
const
|
|
2428
|
-
|
|
2429
|
-
const E = this.tableModel.getColumnDef(
|
|
2444
|
+
g && (x = g.render(m, d, a, t, i, u, this.dom.domService), x && this.cleanupFunctions[t].push(x));
|
|
2445
|
+
const C = i.getCustomClassesAt(d, a);
|
|
2446
|
+
C.length && this.dom.addClasses(C, m);
|
|
2447
|
+
const E = this.tableModel.getColumnDef(a);
|
|
2430
2448
|
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,
|
|
2449
|
+
const y = i.getCustomStyleAt(d, a);
|
|
2432
2450
|
if (y)
|
|
2433
2451
|
for (const S in y)
|
|
2434
2452
|
this.dom.setStyle(m, S, y[S]);
|
|
@@ -2481,7 +2499,7 @@ class ht extends nt {
|
|
|
2481
2499
|
* @param {number} height - The height of the div.
|
|
2482
2500
|
* @returns {boolean} - Whether the cell is selected.
|
|
2483
2501
|
*/
|
|
2484
|
-
renderSelectedBackgroundDiv(e, t, s, o, i, r,
|
|
2502
|
+
renderSelectedBackgroundDiv(e, t, s, o, i, r, a, n, d, c, h) {
|
|
2485
2503
|
let p = !1;
|
|
2486
2504
|
if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
|
|
2487
2505
|
const u = this.getSelectionModel();
|
|
@@ -2491,7 +2509,7 @@ class ht extends nt {
|
|
|
2491
2509
|
for (let b = 0; b < g; b++) {
|
|
2492
2510
|
const f = this.dom.applyStylePosistionAbsolute(
|
|
2493
2511
|
// ge-table-body-west-selected-range
|
|
2494
|
-
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`,
|
|
2512
|
+
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, a)
|
|
2495
2513
|
);
|
|
2496
2514
|
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
2515
|
}
|
|
@@ -2525,7 +2543,7 @@ class ht extends nt {
|
|
|
2525
2543
|
rowIndex: o,
|
|
2526
2544
|
columnIndex: i,
|
|
2527
2545
|
left: r,
|
|
2528
|
-
top:
|
|
2546
|
+
top: a,
|
|
2529
2547
|
width: n,
|
|
2530
2548
|
height: d,
|
|
2531
2549
|
parent: c,
|
|
@@ -2541,7 +2559,7 @@ class ht extends nt {
|
|
|
2541
2559
|
left: r,
|
|
2542
2560
|
width: n,
|
|
2543
2561
|
height: d,
|
|
2544
|
-
top:
|
|
2562
|
+
top: a,
|
|
2545
2563
|
parent: c,
|
|
2546
2564
|
lastRowOfModel: p
|
|
2547
2565
|
});
|
|
@@ -2561,9 +2579,9 @@ class ht extends nt {
|
|
|
2561
2579
|
*
|
|
2562
2580
|
* @return {void}
|
|
2563
2581
|
*/
|
|
2564
|
-
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent:
|
|
2582
|
+
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent: a }) {
|
|
2565
2583
|
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(
|
|
2584
|
+
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
2585
|
}
|
|
2568
2586
|
}
|
|
2569
2587
|
class pt {
|
|
@@ -2587,8 +2605,8 @@ class gt {
|
|
|
2587
2605
|
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
|
|
2588
2606
|
const t = e.target, s = t.getAttribute("data-area"), o = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
|
|
2589
2607
|
if (s && o && i) {
|
|
2590
|
-
const r = ne(s),
|
|
2591
|
-
this.tableScope.updateModelValueAfterEdit(r,
|
|
2608
|
+
const r = ne(s), a = Number(o), n = Number(i);
|
|
2609
|
+
this.tableScope.updateModelValueAfterEdit(r, a, n, t.value);
|
|
2592
2610
|
}
|
|
2593
2611
|
}
|
|
2594
2612
|
}
|
|
@@ -2612,11 +2630,11 @@ class ut {
|
|
|
2612
2630
|
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
2631
|
}
|
|
2614
2632
|
onMouseClicked(e, t) {
|
|
2615
|
-
var i, r,
|
|
2633
|
+
var i, r, a, n, d, c, h;
|
|
2616
2634
|
let s = !1, o = !1;
|
|
2617
2635
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
2618
2636
|
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) : (
|
|
2637
|
+
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
2638
|
}
|
|
2621
2639
|
return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
2622
2640
|
}
|
|
@@ -2689,21 +2707,21 @@ class bt {
|
|
|
2689
2707
|
};
|
|
2690
2708
|
}
|
|
2691
2709
|
}
|
|
2692
|
-
function St(
|
|
2693
|
-
return
|
|
2710
|
+
function St(l) {
|
|
2711
|
+
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
2712
|
const s = { cmd: 1, ctrl: 2, alt: 3, shift: 4 }, o = s[e] || 5, i = s[t] || 5;
|
|
2695
2713
|
return o !== i ? o - i : e.localeCompare(t);
|
|
2696
2714
|
}).join(" ");
|
|
2697
2715
|
}
|
|
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 =
|
|
2716
|
+
function ue(l) {
|
|
2717
|
+
let e = l.key.toLowerCase();
|
|
2718
|
+
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")) {
|
|
2719
|
+
const s = l.code.replace("Numpad", "").toLowerCase();
|
|
2702
2720
|
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
2721
|
}
|
|
2704
|
-
|
|
2722
|
+
l.code.match(/^F\d+$/) && (e = l.code.toLowerCase()), l.code.match(/^Digit\d+$/) && (e = l.code.replace(/Digit/g, ""));
|
|
2705
2723
|
let t = "";
|
|
2706
|
-
return
|
|
2724
|
+
return l.ctrlKey && (t += " ctrl"), l.altKey && (t += t + " alt"), l.shiftKey && (t += t + " shift"), l.metaKey && (t += t + " cmd"), St(t + " " + e);
|
|
2707
2725
|
}
|
|
2708
2726
|
class yt {
|
|
2709
2727
|
constructor(e) {
|
|
@@ -2723,7 +2741,8 @@ class yt {
|
|
|
2723
2741
|
* Also adds key down event listener to the table host element.
|
|
2724
2742
|
*/
|
|
2725
2743
|
init() {
|
|
2726
|
-
|
|
2744
|
+
var e, t;
|
|
2745
|
+
(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
2746
|
}
|
|
2728
2747
|
assignPredefinedSystemShortcutMappings() {
|
|
2729
2748
|
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new bt().get()) : Object.assign(this.shortcutActionIdMapping, new mt().get());
|
|
@@ -2847,9 +2866,9 @@ class Re {
|
|
|
2847
2866
|
}
|
|
2848
2867
|
}
|
|
2849
2868
|
class xt {
|
|
2850
|
-
render(e, t, s, o, i, r,
|
|
2869
|
+
render(e, t, s, o, i, r, a) {
|
|
2851
2870
|
if (i.isEditable(t, s)) {
|
|
2852
|
-
|
|
2871
|
+
a.addClass(e, "ge-table-row-input-div");
|
|
2853
2872
|
const n = i.getValueAt(t, s);
|
|
2854
2873
|
e.innerHTML = `
|
|
2855
2874
|
<input
|
|
@@ -2949,7 +2968,7 @@ class wt {
|
|
|
2949
2968
|
this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e), this.fireChangeEvent());
|
|
2950
2969
|
}
|
|
2951
2970
|
}
|
|
2952
|
-
class
|
|
2971
|
+
class Ct {
|
|
2953
2972
|
constructor(e = "none") {
|
|
2954
2973
|
this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
|
|
2955
2974
|
}
|
|
@@ -3000,14 +3019,14 @@ class Te {
|
|
|
3000
3019
|
}
|
|
3001
3020
|
// `⊖ `, `⊕ `;
|
|
3002
3021
|
}
|
|
3003
|
-
const
|
|
3022
|
+
const vt = new wt(), Et = new Ct("cell");
|
|
3004
3023
|
class De {
|
|
3005
3024
|
constructor() {
|
|
3006
3025
|
this.overflowX = "auto", this.overflowY = "auto", this.horizontalBorderVisible = !0, this.verticalBorderVisible = !0, this.footerSeparatorBorderVisible = !0, this.headerSeparatorBorderVisible = !0, this.fixedEastSeparatorBorderVisible = !0, this.fixedWestSeparatorBorderVisible = !0, this.tableTopBorderVisible = !0, this.tableBottomBorderVisible = !0, this.hoverRowVisible = !0, this.hoverColumnVisible = !0, this.columnsResizable = !0, this.columnsDraggable = !0, this.columnResizeHandleWidthInPx = 4, this.defaultRowHeights = {
|
|
3007
3026
|
header: 34,
|
|
3008
3027
|
body: 34,
|
|
3009
3028
|
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 = () =>
|
|
3029
|
+
}, 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 = () => vt, this.getFocusModel = () => Et;
|
|
3011
3030
|
}
|
|
3012
3031
|
}
|
|
3013
3032
|
const W = class W {
|
|
@@ -3026,20 +3045,20 @@ const W = class W {
|
|
|
3026
3045
|
const r = this.mergeRanges(t.getRanges());
|
|
3027
3046
|
if (r) {
|
|
3028
3047
|
r.c2 = Math.min(r.c2, e.getColumnCount() - 1), r.r2 = Math.min(r.r2, e.getBodyModel().getRowCount() - 1);
|
|
3029
|
-
const
|
|
3048
|
+
const a = [];
|
|
3030
3049
|
for (let n = r.r1; n <= r.r2; n++) {
|
|
3031
3050
|
const d = [];
|
|
3032
3051
|
for (let c = r.c1; c <= r.c2; c++) {
|
|
3033
3052
|
const h = t.isSelected(n, c) ? e.getBodyModel().getTextValueAt(n, c) : "";
|
|
3034
3053
|
d.push(h);
|
|
3035
3054
|
}
|
|
3036
|
-
|
|
3055
|
+
a.push(d.join(W.columnSeparatorChar));
|
|
3037
3056
|
}
|
|
3038
|
-
return o(
|
|
3057
|
+
return o(a.join(W.rowSeparatorChar));
|
|
3039
3058
|
}
|
|
3040
3059
|
}
|
|
3041
3060
|
if (s) {
|
|
3042
|
-
const [r,
|
|
3061
|
+
const [r, a] = s.getFocus(), n = e.getBodyModel().getTextValueAt(r, a);
|
|
3043
3062
|
return o(n);
|
|
3044
3063
|
}
|
|
3045
3064
|
i("Cannot copy, neither selection nor focus defined.");
|
|
@@ -3069,9 +3088,9 @@ const W = class W {
|
|
|
3069
3088
|
t,
|
|
3070
3089
|
s
|
|
3071
3090
|
).then((r) => {
|
|
3072
|
-
r && this.copyContent(r).then((
|
|
3091
|
+
r && this.copyContent(r).then((a) => {
|
|
3073
3092
|
o(r);
|
|
3074
|
-
}).catch((
|
|
3093
|
+
}).catch((a) => {
|
|
3075
3094
|
i();
|
|
3076
3095
|
});
|
|
3077
3096
|
}).catch((r) => {
|
|
@@ -3133,13 +3152,13 @@ class Mt {
|
|
|
3133
3152
|
<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
3153
|
<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
3154
|
<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>`,
|
|
3155
|
+
<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
3156
|
<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
3157
|
<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
3158
|
<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
3159
|
<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
3160
|
<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",
|
|
3161
|
+
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
3162
|
}
|
|
3144
3163
|
getX1WorksheetsSheet1Xml(e) {
|
|
3145
3164
|
const t = [];
|
|
@@ -3154,15 +3173,15 @@ class Mt {
|
|
|
3154
3173
|
const o = e[s];
|
|
3155
3174
|
t.push('<row r="${r + 1}" spans="1:2" x14ac:dyDescent="0.2">');
|
|
3156
3175
|
for (let i = 0; i < o.length; i++) {
|
|
3157
|
-
const r = o[i],
|
|
3176
|
+
const r = o[i], a = this.getCellAddress(s, i);
|
|
3158
3177
|
if (typeof r == "number")
|
|
3159
|
-
t.push(`<c r="${
|
|
3178
|
+
t.push(`<c r="${a}"><v>${r}</v></c>`);
|
|
3160
3179
|
else if (r instanceof Date) {
|
|
3161
3180
|
const n = r;
|
|
3162
|
-
t.push(`<c r="${
|
|
3181
|
+
t.push(`<c r="${a}" t="inlineStr"><is><t>${n.toISOString()}</t></is></c>`);
|
|
3163
3182
|
} else {
|
|
3164
3183
|
const n = r != null ? this.escapeXml(String(r)) : "";
|
|
3165
|
-
t.push(`<c r="${
|
|
3184
|
+
t.push(`<c r="${a}" t="inlineStr"><is><t>${n}</t></is></c>`);
|
|
3166
3185
|
}
|
|
3167
3186
|
}
|
|
3168
3187
|
t.push("</row>");
|
|
@@ -3197,8 +3216,8 @@ class Mt {
|
|
|
3197
3216
|
const p = new TextEncoder().encode(h.path), u = new Uint8Array(46 + p.length), g = new DataView(u.buffer);
|
|
3198
3217
|
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
3218
|
});
|
|
3200
|
-
const r = new Uint8Array(22),
|
|
3201
|
-
r.set([80, 75, 5, 6], 0),
|
|
3219
|
+
const r = new Uint8Array(22), a = new DataView(r.buffer);
|
|
3220
|
+
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
3221
|
const n = t.reduce((h, p) => h + p.length, 0), d = new Uint8Array(n);
|
|
3203
3222
|
let c = 0;
|
|
3204
3223
|
for (const h of t)
|
|
@@ -3211,11 +3230,11 @@ class Mt {
|
|
|
3211
3230
|
}
|
|
3212
3231
|
}
|
|
3213
3232
|
class he extends ht {
|
|
3214
|
-
constructor(e, t, s, o, i, r = new K(),
|
|
3233
|
+
constructor(e, t, s, o, i, r = new K(), a = new Mt()) {
|
|
3215
3234
|
var c;
|
|
3216
|
-
if (super(e, t, new qe(s), o), this.eventListener = i, this.copyService = r, this.excelService =
|
|
3235
|
+
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
3236
|
const h = this.tableOptions.autoRestoreOptions, p = h.getStorageKeyFn;
|
|
3218
|
-
p && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new it(p)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new
|
|
3237
|
+
p && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new it(p)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new lt(p)), h.autoRestoreSortingState && (this.storeSortingService = new at(p)));
|
|
3219
3238
|
}
|
|
3220
3239
|
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
3240
|
const n = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
@@ -3293,7 +3312,7 @@ class he extends ht {
|
|
|
3293
3312
|
* @return {GeMouseEvent} - The created GeMouseEvent object.
|
|
3294
3313
|
*/
|
|
3295
3314
|
createGeMouseEvent(e) {
|
|
3296
|
-
const t = new
|
|
3315
|
+
const t = new ae();
|
|
3297
3316
|
if (t.originalEvent = e, e) {
|
|
3298
3317
|
const s = e.target;
|
|
3299
3318
|
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 +3403,8 @@ class he extends ht {
|
|
|
3384
3403
|
var n;
|
|
3385
3404
|
const o = this.tableModel.getAreaModel(s), i = o.isRowChecked(e), r = i === void 0 || i === "semi" || i === "none";
|
|
3386
3405
|
o.setRowChecked(e, r), this.repaint();
|
|
3387
|
-
const
|
|
3388
|
-
this.eventListener.onCheckboxChanged(
|
|
3406
|
+
const a = (n = o.rowSelectionModel) == null ? void 0 : n.getCheckedRows();
|
|
3407
|
+
this.eventListener.onCheckboxChanged(a || []);
|
|
3389
3408
|
}
|
|
3390
3409
|
/**
|
|
3391
3410
|
* Handle mouse click events.
|
|
@@ -3439,7 +3458,7 @@ class he extends ht {
|
|
|
3439
3458
|
const o = this.tableModel.getColumnDef(s);
|
|
3440
3459
|
if (o != null && o.sortable && o.sortable()) {
|
|
3441
3460
|
e.preventDefault(), e.stopPropagation();
|
|
3442
|
-
const
|
|
3461
|
+
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
3462
|
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
3463
|
}
|
|
3445
3464
|
}
|
|
@@ -3586,7 +3605,7 @@ class he extends ht {
|
|
|
3586
3605
|
if (s.autoRestoreCollapsedExpandedState && o) {
|
|
3587
3606
|
const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
|
|
3588
3607
|
if (re(r)) {
|
|
3589
|
-
const
|
|
3608
|
+
const a = r, n = r.getRowCount();
|
|
3590
3609
|
for (let d = 0; d < n; d++) {
|
|
3591
3610
|
const c = r.getRowByIndex(d);
|
|
3592
3611
|
if (c)
|
|
@@ -3599,7 +3618,7 @@ class he extends ht {
|
|
|
3599
3618
|
i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h) : i.mode === "collapsed" && (c.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h));
|
|
3600
3619
|
}
|
|
3601
3620
|
}
|
|
3602
|
-
|
|
3621
|
+
a.recalcVisibleTreeRows();
|
|
3603
3622
|
}
|
|
3604
3623
|
}
|
|
3605
3624
|
}
|
|
@@ -3611,7 +3630,7 @@ class he extends ht {
|
|
|
3611
3630
|
const o = new Array(t).fill(0);
|
|
3612
3631
|
for (let i = 0; i < s; i++)
|
|
3613
3632
|
for (let r = 0; r < t; r++) {
|
|
3614
|
-
const
|
|
3633
|
+
const a = e.getValueAt(i, r), n = (a == null ? void 0 : a.toString().length) || 0;
|
|
3615
3634
|
n > o[r] && (o[r] = n);
|
|
3616
3635
|
}
|
|
3617
3636
|
return o.map((i) => Math.max(i * 10, 50));
|
|
@@ -3635,6 +3654,9 @@ class he extends ht {
|
|
|
3635
3654
|
let e = ((t = this.storeSortingService) == null ? void 0 : t.getSortItems()) ?? [];
|
|
3636
3655
|
this.tableModel.doSort(e);
|
|
3637
3656
|
}
|
|
3657
|
+
getDisplayedRowCount() {
|
|
3658
|
+
return this.displayedRowCount;
|
|
3659
|
+
}
|
|
3638
3660
|
}
|
|
3639
3661
|
const Y = class Y {
|
|
3640
3662
|
};
|
|
@@ -3877,11 +3899,11 @@ const J = class J {
|
|
|
3877
3899
|
constructor(e = new Te()) {
|
|
3878
3900
|
this.headerGroupOptions = e;
|
|
3879
3901
|
}
|
|
3880
|
-
render(e, t, s, o, i, r,
|
|
3902
|
+
render(e, t, s, o, i, r, a) {
|
|
3881
3903
|
const n = r != null && r.data ? r.data : "";
|
|
3882
3904
|
if (r) {
|
|
3883
3905
|
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(
|
|
3906
|
+
this.addText(e, o, t, s, n, p), d && c !== "always" && this.addArrowDiv(a, e, !h, t, s, o, p);
|
|
3885
3907
|
} else
|
|
3886
3908
|
this.addText(e, o, t, s, n, "");
|
|
3887
3909
|
}
|
|
@@ -3893,9 +3915,9 @@ const J = class J {
|
|
|
3893
3915
|
data-col-index="${o}"
|
|
3894
3916
|
>${i}</span>`;
|
|
3895
3917
|
}
|
|
3896
|
-
addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header",
|
|
3918
|
+
addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header", a) {
|
|
3897
3919
|
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", `${
|
|
3920
|
+
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
3921
|
let d;
|
|
3900
3922
|
s ? d = this.headerGroupOptions.iconExpanded : d = this.headerGroupOptions.iconCollapsed;
|
|
3901
3923
|
const c = d.content, h = e.createText(c);
|
|
@@ -3907,84 +3929,84 @@ const J = class J {
|
|
|
3907
3929
|
applyStyleString(e, t, s) {
|
|
3908
3930
|
const o = s.split(";").map((i) => i.trim()).filter((i) => i);
|
|
3909
3931
|
for (const i of o) {
|
|
3910
|
-
const [r,
|
|
3911
|
-
e.setStyle(t, r.trim(),
|
|
3932
|
+
const [r, a] = i.split(":");
|
|
3933
|
+
e.setStyle(t, r.trim(), a.trim());
|
|
3912
3934
|
}
|
|
3913
3935
|
}
|
|
3914
3936
|
};
|
|
3915
3937
|
J.toggleHeaderGroup = "toggleHeaderGroup";
|
|
3916
3938
|
let Se = J;
|
|
3917
3939
|
var Rt = /* @__PURE__ */ Xe("<div>");
|
|
3918
|
-
const kt = (
|
|
3940
|
+
const kt = (l) => {
|
|
3919
3941
|
let e;
|
|
3920
3942
|
const t = Ee({
|
|
3921
3943
|
tableModel: null,
|
|
3922
3944
|
tableOptions: new De()
|
|
3923
|
-
},
|
|
3945
|
+
}, l);
|
|
3924
3946
|
return Pe(() => {
|
|
3925
3947
|
const s = {
|
|
3926
3948
|
onSelectionChanged(r) {
|
|
3927
|
-
const
|
|
3949
|
+
const a = new CustomEvent("selectionChanged", {
|
|
3928
3950
|
detail: r,
|
|
3929
3951
|
bubbles: !0
|
|
3930
3952
|
});
|
|
3931
|
-
e && e.dispatchEvent(
|
|
3953
|
+
e && e.dispatchEvent(a);
|
|
3932
3954
|
},
|
|
3933
3955
|
onFocusChanged(r) {
|
|
3934
|
-
const
|
|
3956
|
+
const a = new CustomEvent("focusChanged", {
|
|
3935
3957
|
detail: r,
|
|
3936
3958
|
bubbles: !0
|
|
3937
3959
|
});
|
|
3938
|
-
e && e.dispatchEvent(
|
|
3960
|
+
e && e.dispatchEvent(a);
|
|
3939
3961
|
},
|
|
3940
3962
|
onCheckboxChanged: (r) => {
|
|
3941
|
-
const
|
|
3963
|
+
const a = new CustomEvent("checkboxChanged", {
|
|
3942
3964
|
detail: r,
|
|
3943
3965
|
bubbles: !0
|
|
3944
3966
|
});
|
|
3945
|
-
e && e.dispatchEvent(
|
|
3967
|
+
e && e.dispatchEvent(a);
|
|
3946
3968
|
},
|
|
3947
3969
|
onContextmenu: (r) => {
|
|
3948
|
-
const
|
|
3970
|
+
const a = new CustomEvent("contextmenu", {
|
|
3949
3971
|
detail: r,
|
|
3950
3972
|
bubbles: !0
|
|
3951
3973
|
});
|
|
3952
|
-
e && e.dispatchEvent(
|
|
3974
|
+
e && e.dispatchEvent(a);
|
|
3953
3975
|
},
|
|
3954
3976
|
onModelChanged: (r) => {
|
|
3955
|
-
const
|
|
3977
|
+
const a = new CustomEvent("modelChanged", {
|
|
3956
3978
|
detail: r,
|
|
3957
3979
|
bubbles: !0
|
|
3958
3980
|
});
|
|
3959
|
-
e && e.dispatchEvent(
|
|
3981
|
+
e && e.dispatchEvent(a);
|
|
3960
3982
|
},
|
|
3961
3983
|
onMouseClicked: (r) => {
|
|
3962
|
-
const
|
|
3984
|
+
const a = new CustomEvent("mouseClicked", {
|
|
3963
3985
|
detail: r,
|
|
3964
3986
|
bubbles: !0
|
|
3965
3987
|
});
|
|
3966
|
-
e && e.dispatchEvent(
|
|
3988
|
+
e && e.dispatchEvent(a);
|
|
3967
3989
|
},
|
|
3968
3990
|
onMouseDragging: (r) => {
|
|
3969
|
-
const
|
|
3991
|
+
const a = new CustomEvent("mouseDragging", {
|
|
3970
3992
|
detail: r,
|
|
3971
3993
|
bubbles: !0
|
|
3972
3994
|
});
|
|
3973
|
-
e && e.dispatchEvent(
|
|
3995
|
+
e && e.dispatchEvent(a);
|
|
3974
3996
|
},
|
|
3975
3997
|
onMouseDraggingEnd: (r) => {
|
|
3976
|
-
const
|
|
3998
|
+
const a = new CustomEvent("mouseDraggingEnd", {
|
|
3977
3999
|
detail: r,
|
|
3978
4000
|
bubbles: !0
|
|
3979
4001
|
});
|
|
3980
|
-
e && e.dispatchEvent(
|
|
4002
|
+
e && e.dispatchEvent(a);
|
|
3981
4003
|
},
|
|
3982
4004
|
onMouseMoved: (r) => {
|
|
3983
|
-
const
|
|
4005
|
+
const a = new CustomEvent("mouseMoved", {
|
|
3984
4006
|
detail: r,
|
|
3985
4007
|
bubbles: !0
|
|
3986
4008
|
});
|
|
3987
|
-
e && e.dispatchEvent(
|
|
4009
|
+
e && e.dispatchEvent(a);
|
|
3988
4010
|
}
|
|
3989
4011
|
}, o = new he(e, t.tableModel, new Re(), t.tableOptions, s);
|
|
3990
4012
|
o.firstInit();
|