@guiexpert/solid-table 1.1.55 → 1.1.56

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.
Files changed (3) hide show
  1. package/index.cjs +7 -7
  2. package/index.js +222 -253
  3. package/package.json +4 -4
package/index.js CHANGED
@@ -1,22 +1,22 @@
1
- const ke = (a, e) => a === e, te = Symbol("solid-proxy"), ge = {
2
- equals: ke
1
+ const De = (a, e) => a === e, te = Symbol("solid-proxy"), ke = typeof Proxy == "function", ge = {
2
+ equals: De
3
3
  };
4
- let ye = ve;
5
- const O = 1, z = 2, xe = {
4
+ let Se = xe;
5
+ const L = 1, z = 2, ye = {
6
6
  owned: null,
7
7
  cleanups: null,
8
8
  context: null,
9
9
  owner: null
10
10
  };
11
11
  var T = null;
12
- let Q = null, fe = null, v = null, M = null, L = null, J = 0;
13
- function Fe(a, e) {
14
- const t = v, s = T, o = a.length === 0, i = e === void 0 ? s : e, r = o ? xe : {
12
+ let Q = null, Fe = null, v = null, M = null, O = null, J = 0;
13
+ function Ie(a, e) {
14
+ const t = v, s = T, o = a.length === 0, i = e === void 0 ? s : e, r = o ? ye : {
15
15
  owned: null,
16
16
  cleanups: null,
17
17
  context: i ? i.context : null,
18
18
  owner: i
19
- }, l = o ? a : () => a(() => $(() => q(r)));
19
+ }, l = o ? a : () => a(() => q(() => $(r)));
20
20
  T = r, v = null;
21
21
  try {
22
22
  return V(l, !0);
@@ -25,22 +25,21 @@ function Fe(a, e) {
25
25
  }
26
26
  }
27
27
  function se(a, e, t) {
28
- const s = ae(a, e, !1, O);
28
+ const s = ae(a, e, !1, L);
29
29
  H(s);
30
30
  }
31
- function Ie(a, e, t) {
32
- ye = He;
33
- const s = ae(a, e, !1, O);
34
- (!t || !t.render) && (s.user = !0), L ? L.push(s) : H(s);
31
+ function Oe(a, e, t) {
32
+ Se = Ve;
33
+ const s = ae(a, e, !1, L);
34
+ s.user = !0, O ? O.push(s) : H(s);
35
35
  }
36
36
  function Le(a, e, t) {
37
37
  t = t ? Object.assign({}, ge, t) : ge;
38
38
  const s = ae(a, e, !0, 0);
39
- return s.observers = null, s.observerSlots = null, s.comparator = t.equals || void 0, H(s), Be.bind(s);
39
+ return s.observers = null, s.observerSlots = null, s.comparator = t.equals || void 0, H(s), Pe.bind(s);
40
40
  }
41
- function $(a) {
42
- if (!fe && v === null)
43
- return a();
41
+ function q(a) {
42
+ if (v === null) return a();
44
43
  const e = v;
45
44
  v = null;
46
45
  try {
@@ -49,13 +48,12 @@ function $(a) {
49
48
  v = e;
50
49
  }
51
50
  }
52
- function Oe(a) {
53
- Ie(() => $(a));
51
+ function Be(a) {
52
+ Oe(() => q(a));
54
53
  }
55
- function Be() {
54
+ function Pe() {
56
55
  if (this.sources && this.state)
57
- if (this.state === O)
58
- H(this);
56
+ if (this.state === L) H(this);
59
57
  else {
60
58
  const a = M;
61
59
  M = null, V(() => U(this), !1), M = a;
@@ -66,38 +64,41 @@ function Be() {
66
64
  }
67
65
  return this.value;
68
66
  }
69
- function Pe(a, e, t) {
67
+ function We(a, e, t) {
70
68
  let s = a.value;
71
69
  return (!a.comparator || !a.comparator(s, e)) && (a.value = e, a.observers && a.observers.length && V(() => {
72
70
  for (let o = 0; o < a.observers.length; o += 1) {
73
71
  const i = a.observers[o], r = Q && Q.running;
74
- r && Q.disposed.has(i), (r ? !i.tState : !i.state) && (i.pure ? M.push(i) : L.push(i), i.observers && Ce(i)), r || (i.state = O);
72
+ r && Q.disposed.has(i), (r ? !i.tState : !i.state) && (i.pure ? M.push(i) : O.push(i), i.observers && ve(i)), r || (i.state = L);
75
73
  }
76
74
  if (M.length > 1e6)
77
75
  throw M = [], new Error();
78
76
  }, !1)), e;
79
77
  }
80
78
  function H(a) {
81
- if (!a.fn)
82
- return;
83
- q(a);
79
+ if (!a.fn) return;
80
+ $(a);
84
81
  const e = J;
85
- We(a, a.value, e);
82
+ $e(
83
+ a,
84
+ a.value,
85
+ e
86
+ );
86
87
  }
87
- function We(a, e, t) {
88
+ function $e(a, e, t) {
88
89
  let s;
89
90
  const o = T, i = v;
90
91
  v = T = a;
91
92
  try {
92
93
  s = a.fn(e);
93
94
  } catch (r) {
94
- return a.pure && (a.state = O, a.owned && a.owned.forEach(q), a.owned = null), a.updatedAt = t + 1, we(r);
95
+ return a.pure && (a.state = L, a.owned && a.owned.forEach($), a.owned = null), a.updatedAt = t + 1, Ce(r);
95
96
  } finally {
96
97
  v = i, T = o;
97
98
  }
98
- (!a.updatedAt || a.updatedAt <= t) && (a.updatedAt != null && "observers" in a ? Pe(a, s) : a.value = s, a.updatedAt = t);
99
+ (!a.updatedAt || a.updatedAt <= t) && (a.updatedAt != null && "observers" in a ? We(a, s) : a.value = s, a.updatedAt = t);
99
100
  }
100
- function ae(a, e, t, s = O, o) {
101
+ function ae(a, e, t, s = L, o) {
101
102
  const i = {
102
103
  fn: a,
103
104
  state: s,
@@ -111,20 +112,17 @@ function ae(a, e, t, s = O, o) {
111
112
  context: T ? T.context : null,
112
113
  pure: t
113
114
  };
114
- return T === null || T !== xe && (T.owned ? T.owned.push(i) : T.owned = [i]), i;
115
+ return T === null || T !== ye && (T.owned ? T.owned.push(i) : T.owned = [i]), i;
115
116
  }
116
117
  function _(a) {
117
- if (a.state === 0)
118
- return;
119
- if (a.state === z)
120
- return U(a);
121
- if (a.suspense && $(a.suspense.inFallback))
122
- return a.suspense.effects.push(a);
118
+ if (a.state === 0) return;
119
+ if (a.state === z) return U(a);
120
+ if (a.suspense && q(a.suspense.inFallback)) return a.suspense.effects.push(a);
123
121
  const e = [a];
124
122
  for (; (a = a.owner) && (!a.updatedAt || a.updatedAt < J); )
125
123
  a.state && e.push(a);
126
124
  for (let t = e.length - 1; t >= 0; t--)
127
- if (a = e[t], a.state === O)
125
+ if (a = e[t], a.state === L)
128
126
  H(a);
129
127
  else if (a.state === z) {
130
128
  const s = M;
@@ -132,35 +130,31 @@ function _(a) {
132
130
  }
133
131
  }
134
132
  function V(a, e) {
135
- if (M)
136
- return a();
133
+ if (M) return a();
137
134
  let t = !1;
138
- e || (M = []), L ? t = !0 : L = [], J++;
135
+ e || (M = []), O ? t = !0 : O = [], J++;
139
136
  try {
140
137
  const s = a();
141
- return $e(t), s;
138
+ return He(t), s;
142
139
  } catch (s) {
143
- t || (L = null), M = null, we(s);
140
+ t || (O = null), M = null, Ce(s);
144
141
  }
145
142
  }
146
- function $e(a) {
147
- if (M && (ve(M), M = null), a)
148
- return;
149
- const e = L;
150
- L = null, e.length && V(() => ye(e), !1);
143
+ function He(a) {
144
+ if (M && (xe(M), M = null), a) return;
145
+ const e = O;
146
+ O = null, e.length && V(() => Se(e), !1);
151
147
  }
152
- function ve(a) {
153
- for (let e = 0; e < a.length; e++)
154
- _(a[e]);
148
+ function xe(a) {
149
+ for (let e = 0; e < a.length; e++) _(a[e]);
155
150
  }
156
- function He(a) {
151
+ function Ve(a) {
157
152
  let e, t = 0;
158
153
  for (e = 0; e < a.length; e++) {
159
154
  const s = a[e];
160
155
  s.user ? a[t++] = s : _(s);
161
156
  }
162
- for (e = 0; e < t; e++)
163
- _(a[e]);
157
+ for (e = 0; e < t; e++) _(a[e]);
164
158
  }
165
159
  function U(a, e) {
166
160
  a.state = 0;
@@ -168,17 +162,17 @@ function U(a, e) {
168
162
  const s = a.sources[t];
169
163
  if (s.sources) {
170
164
  const o = s.state;
171
- o === O ? s !== e && (!s.updatedAt || s.updatedAt < J) && _(s) : o === z && U(s, e);
165
+ o === L ? s !== e && (!s.updatedAt || s.updatedAt < J) && _(s) : o === z && U(s, e);
172
166
  }
173
167
  }
174
168
  }
175
- function Ce(a) {
169
+ function ve(a) {
176
170
  for (let e = 0; e < a.observers.length; e += 1) {
177
171
  const t = a.observers[e];
178
- t.state || (t.state = z, t.pure ? M.push(t) : L.push(t), t.observers && Ce(t));
172
+ t.state || (t.state = z, t.pure ? M.push(t) : O.push(t), t.observers && ve(t));
179
173
  }
180
174
  }
181
- function q(a) {
175
+ function $(a) {
182
176
  let e;
183
177
  if (a.sources)
184
178
  for (; a.sources.length; ) {
@@ -188,30 +182,32 @@ function q(a) {
188
182
  s < o.length && (i.sourceSlots[r] = s, o[s] = i, t.observerSlots[s] = r);
189
183
  }
190
184
  }
185
+ if (a.tOwned) {
186
+ for (e = a.tOwned.length - 1; e >= 0; e--) $(a.tOwned[e]);
187
+ delete a.tOwned;
188
+ }
191
189
  if (a.owned) {
192
- for (e = a.owned.length - 1; e >= 0; e--)
193
- q(a.owned[e]);
190
+ for (e = a.owned.length - 1; e >= 0; e--) $(a.owned[e]);
194
191
  a.owned = null;
195
192
  }
196
193
  if (a.cleanups) {
197
- for (e = a.cleanups.length - 1; e >= 0; e--)
198
- a.cleanups[e]();
194
+ for (e = a.cleanups.length - 1; e >= 0; e--) a.cleanups[e]();
199
195
  a.cleanups = null;
200
196
  }
201
197
  a.state = 0;
202
198
  }
203
- function Ve(a) {
199
+ function Ne(a) {
204
200
  return a instanceof Error ? a : new Error(typeof a == "string" ? a : "Unknown error", {
205
201
  cause: a
206
202
  });
207
203
  }
208
- function we(a, e = T) {
209
- throw Ve(a);
204
+ function Ce(a, e = T) {
205
+ throw Ne(a);
210
206
  }
211
207
  function G() {
212
208
  return !0;
213
209
  }
214
- const Ne = {
210
+ const Ge = {
215
211
  get(a, e, t) {
216
212
  return e === te ? t : a.get(e);
217
213
  },
@@ -238,57 +234,55 @@ const Ne = {
238
234
  function ee(a) {
239
235
  return (a = typeof a == "function" ? a() : a) ? a : {};
240
236
  }
241
- function Ge() {
237
+ function ze() {
242
238
  for (let a = 0, e = this.length; a < e; ++a) {
243
239
  const t = this[a]();
244
- if (t !== void 0)
245
- return t;
240
+ if (t !== void 0) return t;
246
241
  }
247
242
  }
248
- function Ee(...a) {
243
+ function we(...a) {
249
244
  let e = !1;
250
245
  for (let r = 0; r < a.length; r++) {
251
246
  const l = a[r];
252
247
  e = e || !!l && te in l, a[r] = typeof l == "function" ? (e = !0, Le(l)) : l;
253
248
  }
254
- if (e)
255
- return new Proxy({
256
- get(r) {
257
- for (let l = a.length - 1; l >= 0; l--) {
258
- const n = ee(a[l])[r];
259
- if (n !== void 0)
260
- return n;
249
+ if (ke && e)
250
+ return new Proxy(
251
+ {
252
+ get(r) {
253
+ for (let l = a.length - 1; l >= 0; l--) {
254
+ const n = ee(a[l])[r];
255
+ if (n !== void 0) return n;
256
+ }
257
+ },
258
+ has(r) {
259
+ for (let l = a.length - 1; l >= 0; l--)
260
+ if (r in ee(a[l])) return !0;
261
+ return !1;
262
+ },
263
+ keys() {
264
+ const r = [];
265
+ for (let l = 0; l < a.length; l++)
266
+ r.push(...Object.keys(ee(a[l])));
267
+ return [...new Set(r)];
261
268
  }
262
269
  },
263
- has(r) {
264
- for (let l = a.length - 1; l >= 0; l--)
265
- if (r in ee(a[l]))
266
- return !0;
267
- return !1;
268
- },
269
- keys() {
270
- const r = [];
271
- for (let l = 0; l < a.length; l++)
272
- r.push(...Object.keys(ee(a[l])));
273
- return [...new Set(r)];
274
- }
275
- }, Ne);
270
+ Ge
271
+ );
276
272
  const t = {}, s = /* @__PURE__ */ Object.create(null);
277
273
  for (let r = a.length - 1; r >= 0; r--) {
278
274
  const l = a[r];
279
- if (!l)
280
- continue;
275
+ if (!l) continue;
281
276
  const n = Object.getOwnPropertyNames(l);
282
277
  for (let d = n.length - 1; d >= 0; d--) {
283
278
  const c = n[d];
284
- if (c === "__proto__" || c === "constructor")
285
- continue;
279
+ if (c === "__proto__" || c === "constructor") continue;
286
280
  const h = Object.getOwnPropertyDescriptor(l, c);
287
281
  if (!s[c])
288
282
  s[c] = h.get ? {
289
283
  enumerable: !0,
290
284
  configurable: !0,
291
- get: Ge.bind(t[c] = [h.get.bind(l)])
285
+ get: ze.bind(t[c] = [h.get.bind(l)])
292
286
  } : h.value !== void 0 ? h : void 0;
293
287
  else {
294
288
  const p = t[c];
@@ -303,7 +297,7 @@ function Ee(...a) {
303
297
  }
304
298
  return o;
305
299
  }
306
- function ze(a, e, t) {
300
+ function _e(a, e, t) {
307
301
  let s = t.length, o = e.length, i = s, r = 0, l = 0, n = e[o - 1].nextSibling, d = null;
308
302
  for (; r < o || l < i; ) {
309
303
  if (e[r] === t[l]) {
@@ -314,8 +308,7 @@ function ze(a, e, t) {
314
308
  o--, i--;
315
309
  if (o === r) {
316
310
  const c = i < s ? l ? t[l - 1].nextSibling : t[i - l] : n;
317
- for (; l < i; )
318
- a.insertBefore(t[l++], c);
311
+ for (; l < i; ) a.insertBefore(t[l++], c);
319
312
  } else if (i === l)
320
313
  for (; r < o; )
321
314
  (!d || !d.has(e[r])) && e[r].remove(), r++;
@@ -326,8 +319,7 @@ function ze(a, e, t) {
326
319
  if (!d) {
327
320
  d = /* @__PURE__ */ new Map();
328
321
  let h = l;
329
- for (; h < i; )
330
- d.set(t[h], h++);
322
+ for (; h < i; ) d.set(t[h], h++);
331
323
  }
332
324
  const c = d.get(e[r]);
333
325
  if (c != null)
@@ -337,61 +329,55 @@ function ze(a, e, t) {
337
329
  p++;
338
330
  if (p > c - l) {
339
331
  const g = e[r];
340
- for (; l < c; )
341
- a.insertBefore(t[l++], g);
342
- } else
343
- a.replaceChild(t[l++], e[r++]);
344
- } else
345
- r++;
346
- else
347
- e[r++].remove();
332
+ for (; l < c; ) a.insertBefore(t[l++], g);
333
+ } else a.replaceChild(t[l++], e[r++]);
334
+ } else r++;
335
+ else e[r++].remove();
348
336
  }
349
337
  }
350
338
  }
351
- function _e(a, e, t, s = {}) {
339
+ function Ue(a, e, t, s = {}) {
352
340
  let o;
353
- return Fe((i) => {
354
- o = i, e === document ? a() : Xe(e, a(), e.firstChild ? null : void 0, t);
341
+ return Ie((i) => {
342
+ o = i, e === document ? a() : Ke(e, a(), e.firstChild ? null : void 0, t);
355
343
  }, s.owner), () => {
356
344
  o(), e.textContent = "";
357
345
  };
358
346
  }
359
- function Ue(a, e, t) {
347
+ function je(a, e, t) {
360
348
  let s;
361
349
  const o = () => {
362
350
  const r = document.createElement("template");
363
- return r.innerHTML = a, t ? r.content.firstChild.firstChild : r.content.firstChild;
364
- }, i = e ? () => $(() => document.importNode(s || (s = o()), !0)) : () => (s || (s = o())).cloneNode(!0);
351
+ return r.innerHTML = a, r.content.firstChild;
352
+ }, i = () => (s || (s = o())).cloneNode(!0);
365
353
  return i.cloneNode = i, i;
366
354
  }
367
- function je(a, e, t) {
368
- return $(() => a(e, t));
355
+ function Xe(a, e, t) {
356
+ return q(() => a(e, t));
369
357
  }
370
- function Xe(a, e, t, s) {
371
- if (t !== void 0 && !s && (s = []), typeof e != "function")
372
- return j(a, e, s, t);
358
+ function Ke(a, e, t, s) {
359
+ if (t !== void 0 && !s && (s = []), typeof e != "function") return j(a, e, s, t);
373
360
  se((o) => j(a, e(), o, t), s);
374
361
  }
375
362
  function j(a, e, t, s, o) {
376
- for (; typeof t == "function"; )
377
- t = t();
378
- if (e === t)
379
- return t;
363
+ for (; typeof t == "function"; ) t = t();
364
+ if (e === t) return t;
380
365
  const i = typeof e, r = s !== void 0;
381
- if (a = r && t[0] && t[0].parentNode || a, i === "string" || i === "number")
382
- if (i === "number" && (e = e.toString()), r) {
366
+ if (a = r && t[0] && t[0].parentNode || a, i === "string" || i === "number") {
367
+ if (i === "number" && (e = e.toString(), e === t))
368
+ return t;
369
+ if (r) {
383
370
  let l = t[0];
384
371
  l && l.nodeType === 3 ? l.data !== e && (l.data = e) : l = document.createTextNode(e), t = P(a, t, s, l);
385
372
  } else
386
373
  t !== "" && typeof t == "string" ? t = a.firstChild.data = e : t = a.textContent = e;
387
- else if (e == null || i === "boolean")
374
+ } else if (e == null || i === "boolean")
388
375
  t = P(a, t, s);
389
376
  else {
390
377
  if (i === "function")
391
378
  return se(() => {
392
379
  let l = e();
393
- for (; typeof l == "function"; )
394
- l = l();
380
+ for (; typeof l == "function"; ) l = l();
395
381
  t = j(a, l, t, s);
396
382
  }), () => t;
397
383
  if (Array.isArray(e)) {
@@ -399,18 +385,14 @@ function j(a, e, t, s, o) {
399
385
  if (oe(l, e, t, o))
400
386
  return se(() => t = j(a, l, t, s, !0)), () => t;
401
387
  if (l.length === 0) {
402
- if (t = P(a, t, s), r)
403
- return t;
404
- } else
405
- n ? t.length === 0 ? ue(a, l, s) : ze(a, t, l) : (t && P(a), ue(a, l));
388
+ if (t = P(a, t, s), r) return t;
389
+ } else n ? t.length === 0 ? fe(a, l, s) : _e(a, t, l) : (t && P(a), fe(a, l));
406
390
  t = l;
407
391
  } else if (e.nodeType) {
408
392
  if (Array.isArray(t)) {
409
- if (r)
410
- return t = P(a, t, s, e);
393
+ if (r) return t = P(a, t, s, e);
411
394
  P(a, t, null, e);
412
- } else
413
- t == null || t === "" || !a.firstChild ? a.appendChild(e) : a.replaceChild(e, a.firstChild);
395
+ } else t == null || t === "" || !a.firstChild ? a.appendChild(e) : a.replaceChild(e, a.firstChild);
414
396
  t = e;
415
397
  }
416
398
  }
@@ -419,33 +401,33 @@ function j(a, e, t, s, o) {
419
401
  function oe(a, e, t, s) {
420
402
  let o = !1;
421
403
  for (let i = 0, r = e.length; i < r; i++) {
422
- let l = e[i], n = t && t[i], d;
423
- if (!(l == null || l === !0 || l === !1))
424
- if ((d = typeof l) == "object" && l.nodeType)
425
- a.push(l);
426
- else if (Array.isArray(l))
427
- o = oe(a, l, n) || o;
428
- else if (d === "function")
429
- if (s) {
430
- for (; typeof l == "function"; )
431
- l = l();
432
- o = oe(a, Array.isArray(l) ? l : [l], Array.isArray(n) ? n : [n]) || o;
433
- } else
434
- a.push(l), o = !0;
435
- else {
436
- const c = String(l);
437
- n && n.nodeType === 3 && n.data === c ? a.push(n) : a.push(document.createTextNode(c));
438
- }
404
+ let l = e[i], n = t && t[a.length], d;
405
+ if (!(l == null || l === !0 || l === !1)) if ((d = typeof l) == "object" && l.nodeType)
406
+ a.push(l);
407
+ else if (Array.isArray(l))
408
+ o = oe(a, l, n) || o;
409
+ else if (d === "function")
410
+ if (s) {
411
+ for (; typeof l == "function"; ) l = l();
412
+ o = oe(
413
+ a,
414
+ Array.isArray(l) ? l : [l],
415
+ Array.isArray(n) ? n : [n]
416
+ ) || o;
417
+ } else
418
+ a.push(l), o = !0;
419
+ else {
420
+ const c = String(l);
421
+ n && n.nodeType === 3 && n.data === c ? a.push(n) : a.push(document.createTextNode(c));
422
+ }
439
423
  }
440
424
  return o;
441
425
  }
442
- function ue(a, e, t = null) {
443
- for (let s = 0, o = e.length; s < o; s++)
444
- a.insertBefore(e[s], t);
426
+ function fe(a, e, t = null) {
427
+ for (let s = 0, o = e.length; s < o; s++) a.insertBefore(e[s], t);
445
428
  }
446
429
  function P(a, e, t, s) {
447
- if (t === void 0)
448
- return a.textContent = "";
430
+ if (t === void 0) return a.textContent = "";
449
431
  const o = s || document.createTextNode("");
450
432
  if (e.length) {
451
433
  let i = !1;
@@ -454,35 +436,33 @@ function P(a, e, t, s) {
454
436
  if (o !== l) {
455
437
  const n = l.parentNode === a;
456
438
  !i && !r ? n ? a.replaceChild(o, l) : a.insertBefore(o, t) : n && l.remove();
457
- } else
458
- i = !0;
439
+ } else i = !0;
459
440
  }
460
- } else
461
- a.insertBefore(o, t);
441
+ } else a.insertBefore(o, t);
462
442
  return [o];
463
443
  }
464
- class Ct {
444
+ class wt {
465
445
  constructor(e) {
466
446
  this.code = e;
467
447
  }
468
448
  render(e, t, s, o, i, r, l) {
469
- const n = Ee({
449
+ const n = we({
470
450
  rowIndex: t,
471
451
  columnIndex: s,
472
452
  areaIdent: o,
473
453
  areaModel: i,
474
454
  cellValue: r
475
455
  });
476
- _e(
456
+ Ue(
477
457
  () => this.code(n),
478
458
  e
479
459
  );
480
460
  }
481
461
  }
482
- const wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
462
+ const Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
483
463
  __proto__: null
484
464
  }, Symbol.toStringTag, { value: "Module" }));
485
- function Ke(a, e = 500) {
465
+ function Ye(a, e = 500) {
486
466
  let t = null;
487
467
  return function(...s) {
488
468
  t && window.clearTimeout(t), t = window.setTimeout(() => {
@@ -546,7 +526,7 @@ class I {
546
526
  this.content = e, this.style = t, this.classes = s;
547
527
  }
548
528
  }
549
- class Ae {
529
+ class Ee {
550
530
  constructor(e = new I(
551
531
  ">",
552
532
  "transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
@@ -567,12 +547,12 @@ class Ae {
567
547
  this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = o;
568
548
  }
569
549
  }
570
- class Me {
550
+ class Ae {
571
551
  constructor(e = new I("↑", "", ["ge-header-sorted-asc"]), t = new I("↓", "", ["ge-header-sorted-desc"]), s = new I("↑", "color:transparent;", [])) {
572
552
  this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
573
553
  }
574
554
  }
575
- class Ye {
555
+ class Je {
576
556
  constructor(e) {
577
557
  this.domService = e;
578
558
  }
@@ -692,7 +672,7 @@ class Ye {
692
672
  }
693
673
  return this.domService.appendChild(e, l), l;
694
674
  }
695
- addSortedIcon(e, t = "", s = new Me(), o = -1) {
675
+ addSortedIcon(e, t = "", s = new Ae(), o = -1) {
696
676
  const i = this.domService.createElement("div");
697
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");
698
678
  let r;
@@ -703,7 +683,7 @@ class Ye {
703
683
  this.domService.addClass(i, d);
704
684
  return this.domService.appendChild(e, i), i;
705
685
  }
706
- addArrowDiv(e, t = "none", s = new Ae(), o = -1, i = -1, r = "body") {
686
+ addArrowDiv(e, t = "none", s = new Ee(), o = -1, i = -1, r = "body") {
707
687
  const l = this.domService.createElement("div");
708
688
  this.domService.addClass(l, "ge-table-tree-arrow-div"), this.domService.setStyle(l, "display", "inline-block"), this.domService.setStyle(l, "position", ""), this.domService.setStyle(l, "width", "20px"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "cursor", "pointer"), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`);
709
689
  let n;
@@ -755,7 +735,7 @@ class Ye {
755
735
  }
756
736
  }
757
737
  const ne = (a) => a === "header" ? "header" : a === "footer" ? "footer" : "body";
758
- class Je {
738
+ class qe {
759
739
  constructor(e, t) {
760
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)) {
761
741
  this.className = e.className, this.action = e.getAttribute("data-ge-action"), this.inputType = e.getAttribute("data-input-type"), this.rowIdx = Number(e.getAttribute("data-row-index")), this.colIdx = Number(e.getAttribute("data-col-index"));
@@ -767,7 +747,7 @@ class Je {
767
747
  }
768
748
  }
769
749
  }
770
- class qe {
750
+ class Ze {
771
751
  constructor(e) {
772
752
  this.tableScope = e, this.doubleClickDelay = 500, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.lastClicked = 0, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), [window, this.tableScope.hostElement].forEach(
773
753
  (t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
@@ -797,7 +777,7 @@ class qe {
797
777
  if (t - this.lastClicked < this.doubleClickDelay)
798
778
  return;
799
779
  this.lastClicked = t;
800
- const s = new Je(e.target, this.tableScope);
780
+ const s = new qe(e.target, this.tableScope);
801
781
  if (s.action === "toggleExpandCollapseAll")
802
782
  this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
803
783
  else if (s.action === "toggleHeaderGroup")
@@ -899,7 +879,7 @@ class qe {
899
879
  }
900
880
  }
901
881
  }
902
- class Ze {
882
+ class Qe {
903
883
  constructor(e) {
904
884
  this.tableScope = e;
905
885
  }
@@ -1193,7 +1173,7 @@ class ce {
1193
1173
  // }
1194
1174
  // }
1195
1175
  }
1196
- class Qe extends ce {
1176
+ class et extends ce {
1197
1177
  constructor(e) {
1198
1178
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
1199
1179
  }
@@ -1215,14 +1195,14 @@ class Qe extends ce {
1215
1195
  }
1216
1196
  }
1217
1197
  }
1218
- class et {
1198
+ class tt {
1219
1199
  constructor(e = "collapsed", t = [], s = !1, o = !1) {
1220
1200
  this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
1221
1201
  }
1222
1202
  }
1223
- class tt extends ce {
1203
+ class st extends ce {
1224
1204
  constructor(e) {
1225
- super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new et(), this.load();
1205
+ super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new tt(), this.load();
1226
1206
  }
1227
1207
  collapsedExpandedStateGet() {
1228
1208
  return this.collapsedExpandedState;
@@ -1254,7 +1234,7 @@ class tt extends ce {
1254
1234
  this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
1255
1235
  }
1256
1236
  }
1257
- class st extends ce {
1237
+ class ot extends ce {
1258
1238
  constructor(e) {
1259
1239
  super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
1260
1240
  }
@@ -1280,7 +1260,7 @@ class F {
1280
1260
  this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
1281
1261
  }
1282
1262
  }
1283
- class ot {
1263
+ class it {
1284
1264
  constructor(e, t, s, o) {
1285
1265
  this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new F(), this.areaBodyCenterGeo = new F(), this.areaBodyEastGeo = new F();
1286
1266
  const i = this.hostElement;
@@ -1486,7 +1466,7 @@ class A {
1486
1466
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
1487
1467
  }
1488
1468
  }
1489
- class it {
1469
+ class rt {
1490
1470
  constructor(e, t) {
1491
1471
  this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
1492
1472
  }
@@ -1519,22 +1499,22 @@ class it {
1519
1499
  return !1;
1520
1500
  }
1521
1501
  }
1522
- class rt {
1502
+ class at {
1523
1503
  constructor(e, t, s) {
1524
1504
  this.header = e, this.body = t, this.footer = s;
1525
1505
  }
1526
1506
  }
1527
- class at extends ot {
1507
+ class lt extends it {
1528
1508
  constructor(e, t, s, o) {
1529
1509
  var r, l;
1530
1510
  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 = {
1531
1511
  header: [],
1532
1512
  body: [],
1533
1513
  footer: []
1534
- }, this.tree = !1, this.colAndRowspanModels = new rt(), 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), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), re(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1514
+ }, this.tree = !1, this.colAndRowspanModels = new at(), 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), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), re(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1535
1515
  (n) => {
1536
1516
  var d;
1537
- this.colAndRowspanModels[n] = new it(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
1517
+ this.colAndRowspanModels[n] = new rt(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
1538
1518
  }
1539
1519
  );
1540
1520
  }
@@ -1720,26 +1700,17 @@ class at extends ot {
1720
1700
  */
1721
1701
  getArea(e, t) {
1722
1702
  if (e === "header") {
1723
- if (t === "west")
1724
- return this.areaHeaderWest;
1725
- if (t === "center")
1726
- return this.areaHeaderCenter;
1727
- if (t === "east")
1728
- return this.areaHeaderEast;
1703
+ if (t === "west") return this.areaHeaderWest;
1704
+ if (t === "center") return this.areaHeaderCenter;
1705
+ if (t === "east") return this.areaHeaderEast;
1729
1706
  } else if (e === "body") {
1730
- if (t === "west")
1731
- return this.areaBodyWest;
1732
- if (t === "center")
1733
- return this.areaBodyCenter;
1734
- if (t === "east")
1735
- return this.areaBodyEast;
1707
+ if (t === "west") return this.areaBodyWest;
1708
+ if (t === "center") return this.areaBodyCenter;
1709
+ if (t === "east") return this.areaBodyEast;
1736
1710
  } else if (e === "footer") {
1737
- if (t === "west")
1738
- return this.areaFooterWest;
1739
- if (t === "center")
1740
- return this.areaFooterCenter;
1741
- if (t === "east")
1742
- return this.areaFooterEast;
1711
+ if (t === "west") return this.areaFooterWest;
1712
+ if (t === "center") return this.areaFooterCenter;
1713
+ if (t === "east") return this.areaFooterEast;
1743
1714
  }
1744
1715
  throw Error(`Wrong area identifier: row:${e}, col:${t}`);
1745
1716
  }
@@ -1765,8 +1736,7 @@ class at extends ot {
1765
1736
  var s;
1766
1737
  if (e) {
1767
1738
  const o = (s = e.closest("[" + t + "]")) == null ? void 0 : s.getAttribute(t);
1768
- if (o)
1769
- return Number(o);
1739
+ if (o) return Number(o);
1770
1740
  }
1771
1741
  return -1;
1772
1742
  }
@@ -1782,8 +1752,7 @@ class at extends ot {
1782
1752
  var s;
1783
1753
  if (e) {
1784
1754
  const o = (s = e.closest("[" + t + "]")) == null ? void 0 : s.getAttribute(t);
1785
- if (o)
1786
- return o;
1755
+ if (o) return o;
1787
1756
  }
1788
1757
  return "";
1789
1758
  }
@@ -2414,12 +2383,12 @@ class at extends ot {
2414
2383
  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(l, c);
2415
2384
  }
2416
2385
  }
2417
- class lt {
2386
+ class nt {
2418
2387
  constructor(e, t) {
2419
2388
  this.columnIndex = e, this.sortState = t;
2420
2389
  }
2421
2390
  }
2422
- class nt {
2391
+ class ct {
2423
2392
  constructor(e) {
2424
2393
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
2425
2394
  }
@@ -2441,7 +2410,7 @@ class nt {
2441
2410
  }
2442
2411
  }
2443
2412
  }
2444
- class ct {
2413
+ class dt {
2445
2414
  constructor(e = -1, t = -1) {
2446
2415
  this.rowIndex = e, this.columnIndex = t;
2447
2416
  }
@@ -2451,10 +2420,10 @@ class de {
2451
2420
  this.cells = e;
2452
2421
  }
2453
2422
  static createSingle(e, t) {
2454
- return new de([new ct(e, t)]);
2423
+ return new de([new dt(e, t)]);
2455
2424
  }
2456
2425
  }
2457
- class dt {
2426
+ class ht {
2458
2427
  constructor(e) {
2459
2428
  var t, s;
2460
2429
  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);
@@ -2495,7 +2464,7 @@ class dt {
2495
2464
  });
2496
2465
  }
2497
2466
  }
2498
- class ht {
2467
+ class pt {
2499
2468
  get() {
2500
2469
  return {
2501
2470
  f2: "START_EDITING",
@@ -2515,7 +2484,7 @@ class ht {
2515
2484
  };
2516
2485
  }
2517
2486
  }
2518
- class pt {
2487
+ class gt {
2519
2488
  get() {
2520
2489
  return {
2521
2490
  f2: "START_EDITING",
@@ -2537,7 +2506,7 @@ class pt {
2537
2506
  };
2538
2507
  }
2539
2508
  }
2540
- class gt {
2509
+ class ft {
2541
2510
  constructor(e) {
2542
2511
  this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
2543
2512
  }
@@ -2558,7 +2527,7 @@ class gt {
2558
2527
  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));
2559
2528
  }
2560
2529
  assignPredefinedSystemShortcutMappings() {
2561
- this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new pt().get()) : Object.assign(this.shortcutActionIdMapping, new ht().get());
2530
+ this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new gt().get()) : Object.assign(this.shortcutActionIdMapping, new pt().get());
2562
2531
  }
2563
2532
  isMacintosh() {
2564
2533
  return navigator.platform.indexOf("Mac") > -1;
@@ -2610,7 +2579,7 @@ class gt {
2610
2579
  return this.shortcutActionIdMapping;
2611
2580
  }
2612
2581
  }
2613
- class me {
2582
+ class ue {
2614
2583
  onCheckboxChanged(e) {
2615
2584
  }
2616
2585
  onContextmenu(e) {
@@ -2630,7 +2599,7 @@ class me {
2630
2599
  onFocusChanged(e) {
2631
2600
  }
2632
2601
  }
2633
- class Te {
2602
+ class Me {
2634
2603
  setStyle(e, t, s) {
2635
2604
  return e.style[t] = s, e;
2636
2605
  }
@@ -2657,7 +2626,7 @@ class Te {
2657
2626
  e.setAttribute(t, s);
2658
2627
  }
2659
2628
  }
2660
- class ft {
2629
+ class ut {
2661
2630
  render(e, t, s, o, i, r, l) {
2662
2631
  if (i.isEditable(t, s)) {
2663
2632
  l.addClass(e, "ge-table-row-input-div");
@@ -2678,7 +2647,7 @@ class ft {
2678
2647
  }
2679
2648
  }
2680
2649
  }
2681
- class ut {
2650
+ class mt {
2682
2651
  constructor(e = "none", t = "single") {
2683
2652
  this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
2684
2653
  }
@@ -2760,7 +2729,7 @@ class ut {
2760
2729
  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());
2761
2730
  }
2762
2731
  }
2763
- class mt {
2732
+ class bt {
2764
2733
  constructor(e = "none") {
2765
2734
  this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
2766
2735
  }
@@ -2797,7 +2766,7 @@ class mt {
2797
2766
  return [this.rowIndex, this.columnIndex];
2798
2767
  }
2799
2768
  }
2800
- class Re {
2769
+ class Te {
2801
2770
  constructor(e = new I(
2802
2771
  "❯",
2803
2772
  "",
@@ -2811,14 +2780,14 @@ class Re {
2811
2780
  }
2812
2781
  // `⊖ `, `⊕ `;
2813
2782
  }
2814
- const bt = new ut(), St = new mt("cell");
2815
- class De {
2783
+ const St = new mt(), yt = new bt("cell");
2784
+ class Re {
2816
2785
  constructor() {
2817
2786
  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 = {
2818
2787
  header: 34,
2819
2788
  body: 34,
2820
2789
  footer: 34
2821
- }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Ae(), this.headerGroupOptions = new Re(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Me(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new ft(), this.getSelectionModel = () => bt, this.getFocusModel = () => St;
2790
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Ee(), this.headerGroupOptions = new Te(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Ae(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new ut(), this.getSelectionModel = () => St, this.getFocusModel = () => yt;
2822
2791
  }
2823
2792
  }
2824
2793
  const W = class W {
@@ -2906,16 +2875,16 @@ const W = class W {
2906
2875
  W.columnSeparatorChar = " ", W.rowSeparatorChar = `
2907
2876
  `;
2908
2877
  let X = W;
2909
- class yt {
2878
+ class xt {
2910
2879
  constructor(e, t = 500) {
2911
- this.tableScope = e, this.debounceDelay = t, new ResizeObserver(Ke(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
2880
+ this.tableScope = e, this.debounceDelay = t, new ResizeObserver(Ye(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
2912
2881
  }
2913
2882
  handleResize(e) {
2914
2883
  const t = e[0], { width: s } = t.contentRect;
2915
2884
  this.tableScope.recalcColumnWidths(s);
2916
2885
  }
2917
2886
  }
2918
- class xt {
2887
+ class vt {
2919
2888
  /**
2920
2889
  * Downloads a matrix data as an Excel file.
2921
2890
  *
@@ -3021,14 +2990,14 @@ class xt {
3021
2990
  return this.createZip(s);
3022
2991
  }
3023
2992
  }
3024
- class he extends at {
3025
- constructor(e, t, s, o, i, r = new X(), l = new xt()) {
2993
+ class he extends lt {
2994
+ constructor(e, t, s, o, i, r = new X(), l = new vt()) {
3026
2995
  var c;
3027
- if (super(e, t, new Ye(s), o), this.eventListener = i, this.copyService = r, this.excelService = l, this.licenseManager = B.getInstance(), this.selectionService = new dt(this), this.api = new Ze(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, t.setTableScope(this), i || (this.eventListener = new me()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
2996
+ if (super(e, t, new Je(s), o), this.eventListener = i, this.copyService = r, this.excelService = l, this.licenseManager = B.getInstance(), this.selectionService = new ht(this), this.api = new Qe(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, t.setTableScope(this), i || (this.eventListener = new ue()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
3028
2997
  const h = this.tableOptions.autoRestoreOptions, p = h.getStorageKeyFn;
3029
- p && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Qe(p)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new tt(p)), h.autoRestoreSortingState && (this.storeSortingService = new st(p)));
2998
+ p && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new et(p)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new st(p)), h.autoRestoreSortingState && (this.storeSortingService = new ot(p)));
3030
2999
  }
3031
- this.mouseHandler = new qe(this), this.inputHandler = new nt(this), this.resizeHandler = new yt(this, o.resizeEventDebounceDelay), this.shortcutService = new gt(this), this.shortcutService.addListener(this.selectionService);
3000
+ this.mouseHandler = new Ze(this), this.inputHandler = new ct(this), this.resizeHandler = new xt(this, o.resizeEventDebounceDelay), this.shortcutService = new ft(this), this.shortcutService.addListener(this.selectionService);
3032
3001
  const n = this.getSelectionModel ? this.getSelectionModel() : void 0;
3033
3002
  n && n.addEventSelectionChangedListener(this);
3034
3003
  const d = this.getFocusModel ? this.getFocusModel() : void 0;
@@ -3046,7 +3015,7 @@ class he extends at {
3046
3015
  *
3047
3016
  * @return {TableScope} - The newly created TableScope instance.
3048
3017
  */
3049
- static create(e, t, s = new De(), o = new me(), i = new Te(), r = new X()) {
3018
+ static create(e, t, s = new Re(), o = new ue(), i = new Me(), r = new X()) {
3050
3019
  return new he(e, t, i, s, o, r);
3051
3020
  }
3052
3021
  /**
@@ -3244,7 +3213,7 @@ class he extends at {
3244
3213
  const o = this.tableModel.getColumnDef(s);
3245
3214
  if (o != null && o.sortable && o.sortable()) {
3246
3215
  e.preventDefault(), e.stopPropagation();
3247
- const l = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, n = o.sortState ?? "", d = l[(l.indexOf(n) + 1) % l.length], c = new lt(s, d);
3216
+ const l = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, n = o.sortState ?? "", d = l[(l.indexOf(n) + 1) % l.length], c = new nt(s, d);
3248
3217
  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]);
3249
3218
  }
3250
3219
  }
@@ -3672,9 +3641,9 @@ K.themes = ["light", "combat", "paper", "blackboard"], K.vars = {
3672
3641
  --ge-table-drop-zone-bg: #758129;
3673
3642
  }`
3674
3643
  };
3675
- let be = K;
3644
+ let me = K;
3676
3645
  const Y = class Y {
3677
- constructor(e = new Re()) {
3646
+ constructor(e = new Te()) {
3678
3647
  this.headerGroupOptions = e;
3679
3648
  }
3680
3649
  render(e, t, s, o, i, r, l) {
@@ -3713,15 +3682,15 @@ const Y = class Y {
3713
3682
  }
3714
3683
  };
3715
3684
  Y.toggleHeaderGroup = "toggleHeaderGroup";
3716
- let Se = Y;
3717
- var vt = /* @__PURE__ */ Ue("<div>");
3718
- const Et = (a) => {
3685
+ let be = Y;
3686
+ var Ct = /* @__PURE__ */ je("<div>");
3687
+ const At = (a) => {
3719
3688
  let e;
3720
- const t = Ee({
3689
+ const t = we({
3721
3690
  tableModel: null,
3722
- tableOptions: new De()
3691
+ tableOptions: new Re()
3723
3692
  }, a);
3724
- return Oe(() => {
3693
+ return Be(() => {
3725
3694
  const s = {
3726
3695
  onSelectionChanged(r) {
3727
3696
  const l = new CustomEvent("selectionChanged", {
@@ -3786,7 +3755,7 @@ const Et = (a) => {
3786
3755
  });
3787
3756
  e && e.dispatchEvent(l);
3788
3757
  }
3789
- }, o = new he(e, t.tableModel, new Te(), t.tableOptions, s);
3758
+ }, o = new he(e, t.tableModel, new Me(), t.tableOptions, s);
3790
3759
  o.firstInit();
3791
3760
  const i = new CustomEvent("tableReady", {
3792
3761
  detail: o.getApi(),
@@ -3794,12 +3763,12 @@ const Et = (a) => {
3794
3763
  });
3795
3764
  e && e.dispatchEvent(i), t.licenseKey && B.getInstance().setLicenseKey(t.licenseKey);
3796
3765
  }), (() => {
3797
- var s = vt(), o = e;
3798
- return typeof o == "function" ? je(o, s) : e = s, s;
3766
+ var s = Ct(), o = e;
3767
+ return typeof o == "function" ? Xe(o, s) : e = s, s;
3799
3768
  })();
3800
3769
  };
3801
3770
  export {
3802
- Ct as ComponentRendererWrapper,
3803
- Et as GuiexpertTable,
3804
- wt as GuiexpertTableProps
3771
+ wt as ComponentRendererWrapper,
3772
+ At as GuiexpertTable,
3773
+ Et as GuiexpertTableProps
3805
3774
  };