@svgrid/enterprise 3.1.24 → 3.1.26

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 (44) hide show
  1. package/dist/cdn/svgrid-enterprise.svelte-external.js +13664 -13646
  2. package/dist/designer/assets/{GridMenus-DWDghydL.js → GridMenus-C8WqB-To.js} +2 -2
  3. package/dist/designer/assets/{SvDateRangeInput-DbfmXqJj.js → SvDateRangeInput-y8PkioQk.js} +1 -1
  4. package/dist/designer/assets/SvGridCellEditor-CC9UMdVq.js +4 -0
  5. package/dist/designer/assets/{SvGridChart-DYtGHM3F.js → SvGridChart-DzCeEdlb.js} +3 -3
  6. package/dist/designer/assets/{SvGridChartBuilder-BjdQrnz5.js → SvGridChartBuilder-CsXVVKvA.js} +1 -1
  7. package/dist/designer/assets/SvGridChartPanel-Dj3IxTS2.js +4 -0
  8. package/dist/designer/assets/{SvGridChartView-Bfs0bvDb.js → SvGridChartView-Dwm4hxbW.js} +1 -1
  9. package/dist/designer/assets/{chart-export-B6bkQ3X8.js → chart-export-Dqq_eHRq.js} +4 -4
  10. package/dist/designer/assets/{chart-export-pdf-BbA28-gt.js → chart-export-pdf-Gw22jkxa.js} +1 -1
  11. package/dist/designer/assets/csv-injection-C4a0uulO.js +1 -0
  12. package/dist/designer/assets/export-format-NYxEY-0Y.js +6 -0
  13. package/dist/designer/assets/index-BU3ieI05.css +1 -0
  14. package/dist/designer/assets/{index-BB1G1RTR.js → index-PEFkd-5C.js} +341 -331
  15. package/dist/designer/assets/src-D23PPsK1.js +1 -0
  16. package/dist/designer/assets/{src-fddEt37f.js → src-DC5nN4Q7.js} +3 -3
  17. package/dist/designer/index.html +9 -8
  18. package/dist/import.js +11 -1
  19. package/dist/node/studio.js +20 -12
  20. package/dist/review/model.svelte.d.ts +65 -140
  21. package/dist/sheet/xlsx-document.js +15 -0
  22. package/dist/studio/emit-schema.js +18 -10
  23. package/dist/version.d.ts +2 -2
  24. package/dist/version.js +2 -2
  25. package/dist/wc/{GridMenus-h7RsvcmI.js → GridMenus-BIQXB6a7.js} +1 -1
  26. package/dist/wc/{SvDateRangeInput-CJZohgBe.js → SvDateRangeInput-DHYuAJeY.js} +1 -0
  27. package/dist/wc/SvGridCellEditor-CZwhQx0a.js +584 -0
  28. package/dist/wc/{SvGridChart-DWRqlhCV.js → SvGridChart-DcfmVvzB.js} +3 -3
  29. package/dist/wc/{SvGridChartBuilder-BXW3yUR0.js → SvGridChartBuilder-1Z69mxbM.js} +2 -2
  30. package/dist/wc/{SvGridChartPanel-28n4tomx.js → SvGridChartPanel-BaVsa-T-.js} +5 -5
  31. package/dist/wc/{SvGridChartView-CbG_WrU-.js → SvGridChartView-LEC8ZNeU.js} +1 -1
  32. package/dist/wc/{chart-export-CeSADGfi.js → chart-export-C1KSVdMU.js} +29 -28
  33. package/dist/wc/{chart-export-pdf-BGko7MER.js → chart-export-pdf-CmEd365D.js} +1 -1
  34. package/dist/wc/csv-injection-Ce26_TOb.js +8 -0
  35. package/dist/wc/sv-sheet-element.js +6234 -6211
  36. package/dist/xlsx-limits.d.ts +17 -0
  37. package/dist/xlsx-limits.js +21 -0
  38. package/package.json +3 -3
  39. package/dist/designer/assets/SvGridCellEditor-od4VbndV.js +0 -4
  40. package/dist/designer/assets/SvGridChartPanel-Cm9_K7BV.js +0 -4
  41. package/dist/designer/assets/export-format-BCuqcexA.js +0 -6
  42. package/dist/designer/assets/index-CHx3F4Ij.css +0 -1
  43. package/dist/designer/assets/src-CITpcm6b.js +0 -1
  44. package/dist/wc/SvGridCellEditor-C7ios4i_.js +0 -582
@@ -0,0 +1,584 @@
1
+ import { $ as e, C as t, D as n, G as r, H as i, I as a, L as o, M as s, O as c, P as l, R as u, S as d, U as f, W as p, X as m, Y as h, _ as g, at as _, b as v, ct as y, dt as ee, ft as b, gt as x, h as te, ht as S, i as ne, j as C, m as w, n as T, nt as E, ot as D, p as O, rt as k, tt as A, w as j, y as re } from "./client-GWAV79ON.js";
2
+ import { C as ie, d as ae, h as oe, m as se, o as ce, p as le, v as ue, x as de } from "./SvGrid.helpers-tk7gWxcT.js";
3
+ import { n as fe, r as pe, t as M } from "./editor-registry-DxGKqcvx.js";
4
+ //#region ../grid/dist/SvGridCellEditor.svelte
5
+ var N = u("<span class=\"sv-grid-chip sv-grid-chip-removable\"> <button type=\"button\" class=\"sv-grid-chip-remove\">×</button></span>"), P = u("<button type=\"button\" class=\"sv-grid-chip-commit\" aria-label=\"Commit chip selection\">Done</button>"), F = u("<div class=\"sv-grid-cell-editor sv-grid-cell-editor-chips\" role=\"group\"><div class=\"sv-grid-chips-row\"><!> <input class=\"sv-grid-chip-input\" type=\"text\"/> <!></div></div>"), I = u("<input type=\"checkbox\" class=\"sv-grid-fr-editor sv-grid-fr-checkbox\"/>"), L = u("<option> </option>"), R = u("<select class=\"sv-grid-cell-editor sv-grid-fr-editor\"></select>"), z = u("<input class=\"sv-grid-cell-editor sv-grid-fr-editor\"/>"), me = u("<button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Edit checkbox value\"></button>"), he = u("<button type=\"button\" role=\"radio\">★</button>"), ge = u("<span class=\"sv-grid-rating-editor\" role=\"radiogroup\" aria-label=\"Rating\"><!> <button type=\"button\" aria-label=\"Clear rating\" class=\"sv-grid-rating-clear\">×</button></span>"), _e = u("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-textarea\" rows=\"4\"></textarea>"), ve = u("<button type=\"button\" class=\"sv-grid-autocomplete-option\" role=\"option\"> </button>"), ye = u("<div class=\"sv-grid-autocomplete-list\" role=\"listbox\"></div>"), be = u("<div class=\"sv-grid-autocomplete\"><input class=\"sv-grid-cell-editor sv-grid-cell-editor-autocomplete\" type=\"text\"/> <!></div>"), xe = u("<input type=\"color\"/>"), Se = u("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-text sv-grid-cell-editor-multiline\"></textarea>"), Ce = u("<input/>");
6
+ function B(i, u) {
7
+ b(u, !0);
8
+ let B = (e, t = x, i = x, s = x, u = x) => {
9
+ var d = o(), m = E(d), g = (e) => {
10
+ var s = o(), c = E(s), l = (e) => {
11
+ var s = o(), c = E(s);
12
+ {
13
+ let e = y(() => V().editingCell?.value);
14
+ n(c, () => r(U), (n, a) => {
15
+ a(n, {
16
+ get options() {
17
+ return t();
18
+ },
19
+ get loading() {
20
+ return u();
21
+ },
22
+ get value() {
23
+ return r(e);
24
+ },
25
+ get multiple() {
26
+ return i();
27
+ },
28
+ placeholder: "Pick…",
29
+ renderChipsInTrigger: !0,
30
+ onChange: (e) => {
31
+ V().editingCell = V().editingCell ? {
32
+ ...V().editingCell,
33
+ value: e
34
+ } : V().editingCell;
35
+ },
36
+ onCommit: () => r(q)(),
37
+ onCancel: () => {
38
+ V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
39
+ }
40
+ });
41
+ });
42
+ }
43
+ a(e, s);
44
+ };
45
+ C(c, (e) => {
46
+ r(U) && e(l);
47
+ }), a(e, s);
48
+ }, _ = (e) => {
49
+ var t = F();
50
+ w(t, "tabindex", -1);
51
+ var n = A(t), o = A(n);
52
+ c(o, 19, s, (e, t) => String(e) + "_" + t, (e, t, n) => {
53
+ var o = N(), c = A(o), u = k(c);
54
+ S(o), h((e, t) => {
55
+ l(c, `${e ?? ""} `), w(u, "aria-label", `Remove ${t ?? ""}`);
56
+ }, [() => String(r(t)), () => String(r(t))]), f("mousedown", u, (e) => e.preventDefault()), f("click", u, () => {
57
+ let e = s().filter((e, t) => t !== r(n));
58
+ V().editingCell = V().editingCell ? {
59
+ ...V().editingCell,
60
+ value: i() ? e : e[0] ?? null
61
+ } : V().editingCell;
62
+ }), a(e, o);
63
+ });
64
+ var u = k(o, 2);
65
+ j(u, (e) => r(X)?.(e));
66
+ var d = k(u, 2), m = (e) => {
67
+ var t = P();
68
+ f("mousedown", t, (e) => e.preventDefault()), f("click", t, () => r(q)()), a(e, t);
69
+ };
70
+ C(d, (e) => {
71
+ i() && e(m);
72
+ }), S(n), S(t), h(() => w(u, "placeholder", i() ? "Type, Enter to add" : "Type a value")), f("keydown", u, (e) => {
73
+ if (e.key === "Enter" || i() && e.key === ",") {
74
+ e.preventDefault(), e.stopPropagation();
75
+ let t = e.currentTarget, n = t.value.trim();
76
+ if (n) {
77
+ let e = i() ? [...s(), n] : [n];
78
+ V().editingCell = V().editingCell ? {
79
+ ...V().editingCell,
80
+ value: i() ? e : n
81
+ } : V().editingCell, t.value = "", i() || r(q)();
82
+ }
83
+ } else if (e.key === "Escape") r(Y)(e);
84
+ else if (e.key === "Backspace" && e.currentTarget.value === "" && s().length > 0) {
85
+ e.preventDefault();
86
+ let t = s().slice(0, -1);
87
+ V().editingCell = V().editingCell ? {
88
+ ...V().editingCell,
89
+ value: i() ? t : t[0] ?? null
90
+ } : V().editingCell;
91
+ }
92
+ }), p("blur", u, () => r(q)()), a(e, t);
93
+ };
94
+ C(m, (e) => {
95
+ t().length > 0 ? e(g) : e(_, -1);
96
+ }), a(e, d);
97
+ }, V = T(u, "ctrl", 7), H = T(u, "fullRow", 3, !1), U = D(null), W = D(null);
98
+ m(() => {
99
+ let e = V().editingCell?.editorType;
100
+ (e === "list" || e === "chips" || e === "select" || e === "rich-select") && !r(U) && import("./SvGridDropdown-BVnpNU_I.js").then((e) => _(U, e.default, !0)), (e === "date" || e === "datetime" || e === "time") && !r(W) && import("./SvDateTimePicker-DmK_QkkU.js").then((e) => _(W, e.default, !0));
101
+ });
102
+ let we = y(() => V().grid), Te = y(() => V().fullRowEdit), G = y(() => V().getColumnEditorOptions), K = y(() => V().areEditorOptionsLoading), q = y(() => V().saveEditingCell), J = y(() => V().updateEditingCellValue), Y = y(() => V().onEditorKeyDown), X = y(() => V().focusOnMount), Ee = y(() => V().toggleCheckboxWithKeyboard), Z = y(() => V().toolPanelHeaderLabel(u.column));
103
+ function De(e, t = !0) {
104
+ t && e.focus({ preventScroll: !0 });
105
+ }
106
+ function Q(e) {
107
+ e.key === "Enter" ? (e.preventDefault(), V().commitFullRowEdit(), V().gridRootEl?.focus({ preventScroll: !0 })) : e.key === "Escape" && (e.preventDefault(), V().cancelFullRowEdit(), V().gridRootEl?.focus({ preventScroll: !0 }));
108
+ }
109
+ function Oe(e) {
110
+ return typeof e == "object" && e && "value" in e ? String(e.value) : String(e);
111
+ }
112
+ function ke(e) {
113
+ return typeof e == "object" && e && "label" in e ? String(e.label) : String(e);
114
+ }
115
+ let Ae;
116
+ function je(e) {
117
+ let t = M(e);
118
+ return t && (Ae = t), t ?? Ae;
119
+ }
120
+ function Me() {
121
+ let e = V().editingCell;
122
+ return {
123
+ value: e?.value,
124
+ rowId: e?.rowId ?? "",
125
+ columnId: e?.columnId ?? "",
126
+ columnDef: u.column.columnDef,
127
+ row: u.row.original,
128
+ typed: e?.typed === !0,
129
+ grid: V(),
130
+ onChange: (e) => r(J)(e),
131
+ onCommit: (e) => {
132
+ e !== void 0 && r(J)(e), r(q)();
133
+ },
134
+ onCancel: () => {
135
+ V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
136
+ },
137
+ onCommitAndMove: (e, t) => {
138
+ e !== void 0 && r(J)(e), V().commitAndMoveByTab(t === -1);
139
+ },
140
+ onCommitAndMoveDown: (e, t) => {
141
+ e !== void 0 && r(J)(e), V().commitAndMoveByEnter(t === !0);
142
+ },
143
+ onRequestClose: () => {
144
+ V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
145
+ },
146
+ inCell: !0
147
+ };
148
+ }
149
+ var $ = o(), Ne = E($), Pe = (e) => {
150
+ let t = y(() => u.column.columnDef.editorType ?? "text"), n = y(() => r(Te)?.draft[u.column.id]);
151
+ var i = o(), s = E(i), d = (e) => {
152
+ var t = I();
153
+ O(t), h((e) => te(t, e), [() => !!r(n)]), f("change", t, (e) => V().setFullRowDraft(u.column.id, e.currentTarget.checked)), f("keydown", t, Q), f("pointerdown", t, (e) => e.stopPropagation()), f("click", t, (e) => e.stopPropagation()), a(e, t);
154
+ }, p = (e) => {
155
+ let t = y(() => r(G)(u.column, u.row));
156
+ var i = R();
157
+ c(i, 21, () => r(t), (e) => Oe(e), (e, t) => {
158
+ var n = L(), i = A(n, !0);
159
+ S(n);
160
+ var o = {};
161
+ h((e, t) => {
162
+ l(i, e), o !== (o = t) && (n.value = (n.__value = t) ?? "");
163
+ }, [() => ke(r(t)), () => Oe(r(t))]), a(e, n);
164
+ }), S(i);
165
+ var o;
166
+ re(i), h((e) => {
167
+ o !== (o = e) && (i.value = (i.__value = e) ?? "", v(i, e));
168
+ }, [() => String(r(n) ?? "")]), f("change", i, (e) => V().setFullRowDraft(u.column.id, e.currentTarget.value)), f("keydown", i, Q), f("pointerdown", i, (e) => e.stopPropagation()), f("click", i, (e) => e.stopPropagation()), a(e, i);
169
+ }, m = (e) => {
170
+ let i = y(() => r(t) === "number" ? "number" : r(t) === "date" ? "date" : r(t) === "datetime" ? "datetime-local" : r(t) === "time" ? "time" : r(t) === "password" ? "password" : "text");
171
+ var o = z();
172
+ O(o), h((e) => {
173
+ w(o, "type", r(i)), g(o, e);
174
+ }, [() => String(r(n) ?? "")]), f("input", o, (e) => V().setFullRowDraft(u.column.id, e.currentTarget.value)), f("keydown", o, Q), f("pointerdown", o, (e) => e.stopPropagation()), f("click", o, (e) => e.stopPropagation()), a(e, o);
175
+ };
176
+ C(s, (e) => {
177
+ r(t) === "checkbox" ? e(d) : r(t) === "list" || r(t) === "select" || r(t) === "rich-select" ? e(p, 1) : e(m, -1);
178
+ }), a(e, i);
179
+ }, Fe = (i) => {
180
+ var m = o(), _ = E(m), v = (e) => {
181
+ let t = y(() => u.column.columnDef.cellEditor);
182
+ var n = o(), i = E(n);
183
+ {
184
+ let e = y(() => ({
185
+ cell: u.row.getAllCells().find((e) => e.column.id === u.column.id),
186
+ row: u.row,
187
+ column: u.column,
188
+ table: r(we),
189
+ getValue: () => V().editingCell?.value,
190
+ value: V().editingCell?.value,
191
+ update: (e) => {
192
+ V().editingCell = V().editingCell ? {
193
+ ...V().editingCell,
194
+ value: e
195
+ } : V().editingCell;
196
+ },
197
+ commit: (e) => {
198
+ e !== void 0 && (V().editingCell = V().editingCell ? {
199
+ ...V().editingCell,
200
+ value: e
201
+ } : V().editingCell), r(q)();
202
+ },
203
+ cancel: () => {
204
+ V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
205
+ }
206
+ }));
207
+ s(i, () => r(t), () => r(e));
208
+ }
209
+ a(e, n);
210
+ }, ee = (e) => {
211
+ var t = me();
212
+ j(t, (e) => De?.(e)), h((e) => w(t, "aria-checked", e), [() => !!V().editingCell.value]), f("click", t, (e) => {
213
+ e.stopPropagation();
214
+ let t = !V().editingCell?.value;
215
+ V().editingCell = V().editingCell ? {
216
+ ...V().editingCell,
217
+ value: t
218
+ } : V().editingCell, r(q)();
219
+ }), f("keydown", t, (e) => {
220
+ if (e.key === "Enter" || e.key === " ") {
221
+ r(Ee)(e, () => {
222
+ e.stopPropagation();
223
+ let t = !V().editingCell?.value;
224
+ V().editingCell = V().editingCell ? {
225
+ ...V().editingCell,
226
+ value: t
227
+ } : V().editingCell, r(q)();
228
+ });
229
+ return;
230
+ }
231
+ r(Y)(e);
232
+ }), p("blur", t, () => r(q)()), a(e, t);
233
+ }, b = (e) => {
234
+ let t = y(() => r(G)(u.column, u.row)), i = y(() => r(K)(u.column, u.row)), s = y(() => u.column.columnDef.editorMultiple === !0);
235
+ var c = o(), l = E(c), d = (e) => {
236
+ var c = o(), l = E(c);
237
+ {
238
+ let e = y(() => V().editingCell?.value);
239
+ n(l, () => r(U), (n, a) => {
240
+ a(n, {
241
+ get options() {
242
+ return r(t);
243
+ },
244
+ get loading() {
245
+ return r(i);
246
+ },
247
+ get value() {
248
+ return r(e);
249
+ },
250
+ get multiple() {
251
+ return r(s);
252
+ },
253
+ placeholder: "Select…",
254
+ onChange: (e) => {
255
+ V().editingCell = V().editingCell ? {
256
+ ...V().editingCell,
257
+ value: e
258
+ } : V().editingCell;
259
+ },
260
+ onCommit: () => r(q)(),
261
+ onCancel: () => {
262
+ V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
263
+ }
264
+ });
265
+ });
266
+ }
267
+ a(e, c);
268
+ };
269
+ C(l, (e) => {
270
+ r(U) && e(d);
271
+ }), a(e, c);
272
+ }, x = (e) => {
273
+ let t = y(() => r(G)(u.column, u.row)), n = y(() => r(K)(u.column, u.row)), i = y(() => u.column.columnDef.editorMultiple === !0), a = y(() => ie(V().editingCell?.value));
274
+ B(e, () => r(t), () => r(i), () => r(a), () => r(n));
275
+ }, te = (e) => {
276
+ let t = y(() => Math.max(0, Math.min(5, Math.round(Number(V().editingCell?.value) || 0)))), n = y(() => Math.min(5, Math.max(1, r(t))));
277
+ var i = ge(), o = A(i);
278
+ c(o, 16, () => [
279
+ 1,
280
+ 2,
281
+ 3,
282
+ 4,
283
+ 5
284
+ ], (e) => e, (e, i) => {
285
+ var o = he();
286
+ j(o, (e, t) => De?.(e, t), () => i === r(n)), h(() => {
287
+ w(o, "aria-checked", r(t) >= i), w(o, "aria-label", `${i} ${i === 1 ? "star" : "stars"}`), d(o, 1, `sv-grid-rating-star ${r(t) >= i ? "sv-grid-rating-star-on" : ""}`);
288
+ }), f("mousedown", o, (e) => e.preventDefault()), f("click", o, (e) => {
289
+ e.stopPropagation(), V().editingCell = V().editingCell ? {
290
+ ...V().editingCell,
291
+ value: i
292
+ } : V().editingCell, r(q)();
293
+ }), f("keydown", o, (e) => {
294
+ let n = e.key;
295
+ if (n !== "ArrowLeft" && n !== "ArrowRight" && n !== "Home" && n !== "End") {
296
+ r(Y)(e);
297
+ return;
298
+ }
299
+ e.preventDefault(), e.stopPropagation();
300
+ let i = Math.min(5, Math.max(1, r(t))), a = n === "Home" ? 1 : n === "End" ? 5 : n === "ArrowLeft" ? Math.max(1, i - 1) : Math.min(5, i + 1);
301
+ V().editingCell = V().editingCell ? {
302
+ ...V().editingCell,
303
+ value: a
304
+ } : V().editingCell, (e.currentTarget.parentElement?.querySelectorAll(".sv-grid-rating-star"))?.[a - 1]?.focus({ preventScroll: !0 });
305
+ }), a(e, o);
306
+ });
307
+ var s = k(o, 2);
308
+ S(i), f("mousedown", s, (e) => e.preventDefault()), f("click", s, (e) => {
309
+ e.stopPropagation(), V().editingCell = V().editingCell ? {
310
+ ...V().editingCell,
311
+ value: 0
312
+ } : V().editingCell, r(q)();
313
+ }), a(e, i);
314
+ }, T = (e) => {
315
+ let t = y(() => r(G)(u.column, u.row)), i = y(() => r(K)(u.column, u.row));
316
+ var s = o(), c = E(s), l = (e) => {
317
+ var s = o(), c = E(s);
318
+ {
319
+ let e = y(() => V().editingCell?.value);
320
+ n(c, () => r(U), (n, a) => {
321
+ a(n, {
322
+ get options() {
323
+ return r(t);
324
+ },
325
+ get loading() {
326
+ return r(i);
327
+ },
328
+ get value() {
329
+ return r(e);
330
+ },
331
+ multiple: !1,
332
+ placeholder: "Select…",
333
+ onChange: (e) => {
334
+ V().editingCell = V().editingCell ? {
335
+ ...V().editingCell,
336
+ value: e
337
+ } : V().editingCell;
338
+ },
339
+ onCommit: () => r(q)(),
340
+ onCancel: () => {
341
+ V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
342
+ }
343
+ });
344
+ });
345
+ }
346
+ a(e, s);
347
+ };
348
+ C(c, (e) => {
349
+ r(U) && e(l);
350
+ }), a(e, s);
351
+ }, D = (e) => {
352
+ let t = y(() => r(G)(u.column, u.row)), i = y(() => r(K)(u.column, u.row));
353
+ var s = o(), c = E(s), l = (e) => {
354
+ var s = o(), c = E(s);
355
+ {
356
+ let e = y(() => V().editingCell?.value);
357
+ n(c, () => r(U), (n, a) => {
358
+ a(n, {
359
+ get options() {
360
+ return r(t);
361
+ },
362
+ get loading() {
363
+ return r(i);
364
+ },
365
+ get value() {
366
+ return r(e);
367
+ },
368
+ multiple: !1,
369
+ searchable: !0,
370
+ placeholder: "Search…",
371
+ onChange: (e) => {
372
+ V().editingCell = V().editingCell ? {
373
+ ...V().editingCell,
374
+ value: e
375
+ } : V().editingCell;
376
+ },
377
+ onCommit: () => r(q)(),
378
+ onCancel: () => {
379
+ V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
380
+ }
381
+ });
382
+ });
383
+ }
384
+ a(e, s);
385
+ };
386
+ C(c, (e) => {
387
+ r(U) && e(l);
388
+ }), a(e, s);
389
+ }, re = (t) => {
390
+ var n = _e();
391
+ e(n), j(n, (e) => r(X)?.(e)), h((e) => {
392
+ w(n, "aria-label", r(Z)), g(n, e);
393
+ }, [() => String(V().editingCell?.value ?? "")]), f("pointerdown", n, (e) => e.stopPropagation()), f("input", n, (e) => r(J)(e.currentTarget.value)), f("keydown", n, (e) => {
394
+ if (e.stopPropagation(), e.key === "Escape") {
395
+ e.preventDefault(), V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
396
+ return;
397
+ }
398
+ if (e.key === "Tab") {
399
+ e.preventDefault(), V().commitAndMoveByTab(e.shiftKey);
400
+ return;
401
+ }
402
+ e.key === "Enter" && (e.ctrlKey || e.metaKey) && (e.preventDefault(), r(q)(), V().gridRootEl?.focus({ preventScroll: !0 }));
403
+ }), p("blur", n, () => r(q)()), a(t, n);
404
+ }, M = (e) => {
405
+ let t = y(() => r(G)(u.column, u.row)), n = y(() => String(V().editingCell?.value ?? "")), i = y(() => r(n).trim() ? r(t).filter((e) => String(e.label).toLowerCase().includes(r(n).toLowerCase())) : r(t));
406
+ var o = be(), s = A(o);
407
+ O(s), j(s, (e) => r(X)?.(e));
408
+ var d = k(s, 2), m = (e) => {
409
+ var t = ye();
410
+ c(t, 21, () => r(i).slice(0, 50), (e) => e.value, (e, t) => {
411
+ var i = ve(), o = A(i, !0);
412
+ S(i), h((e) => {
413
+ w(i, "aria-selected", e), l(o, r(t).label);
414
+ }, [() => String(r(t).value) === r(n)]), f("mousedown", i, (e) => {
415
+ e.preventDefault(), V().editingCell = V().editingCell ? {
416
+ ...V().editingCell,
417
+ value: r(t).value
418
+ } : V().editingCell, r(q)();
419
+ }), a(e, i);
420
+ }), S(t), a(e, t);
421
+ };
422
+ C(d, (e) => {
423
+ r(i).length > 0 && e(m);
424
+ }), S(o), h(() => g(s, r(n))), f("pointerdown", s, (e) => e.stopPropagation()), f("input", s, (e) => r(J)(e.currentTarget.value)), p("blur", s, () => r(q)()), f("keydown", s, function(...e) {
425
+ r(Y)?.apply(this, e);
426
+ }), a(e, o);
427
+ }, N = (e) => {
428
+ var t = o(), i = E(t), s = (e) => {
429
+ var t = o(), i = E(t);
430
+ {
431
+ let e = y(() => V().editingCell?.value), t = y(() => u.column.columnDef.editorFormatString ?? "yyyy-MM-dd");
432
+ n(i, () => r(W), (n, i) => {
433
+ i(n, {
434
+ get value() {
435
+ return r(e);
436
+ },
437
+ get formatString() {
438
+ return r(t);
439
+ },
440
+ dropDownDisplayMode: "calendar",
441
+ autoOpen: !0,
442
+ block: !0,
443
+ onChange: (e) => r(J)(e),
444
+ onCommit: () => r(q)(),
445
+ onCancel: () => {
446
+ V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
447
+ }
448
+ });
449
+ });
450
+ }
451
+ a(e, t);
452
+ };
453
+ C(i, (e) => {
454
+ r(W) && e(s);
455
+ }), a(e, t);
456
+ }, P = (e) => {
457
+ var t = o(), i = E(t), s = (e) => {
458
+ var t = o(), i = E(t);
459
+ {
460
+ let e = y(() => V().editingCell?.value), t = y(() => u.column.columnDef.editorFormatString ?? "yyyy-MM-dd HH:mm");
461
+ n(i, () => r(W), (n, i) => {
462
+ i(n, {
463
+ get value() {
464
+ return r(e);
465
+ },
466
+ get formatString() {
467
+ return r(t);
468
+ },
469
+ dropDownDisplayMode: "both",
470
+ autoOpen: !0,
471
+ block: !0,
472
+ onChange: (e) => r(J)(e),
473
+ onCommit: () => r(q)(),
474
+ onCancel: () => {
475
+ V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
476
+ }
477
+ });
478
+ });
479
+ }
480
+ a(e, t);
481
+ };
482
+ C(i, (e) => {
483
+ r(W) && e(s);
484
+ }), a(e, t);
485
+ }, F = (e) => {
486
+ var t = o(), i = E(t), s = (e) => {
487
+ var t = o(), i = E(t);
488
+ {
489
+ let e = y(() => de(V().editingCell?.value));
490
+ n(i, () => r(W), (t, n) => {
491
+ n(t, {
492
+ get value() {
493
+ return r(e);
494
+ },
495
+ formatString: "HH:mm",
496
+ dropDownDisplayMode: "time",
497
+ autoOpen: !0,
498
+ block: !0,
499
+ onChange: (e) => r(J)(ce(e)),
500
+ onCommit: () => r(q)(),
501
+ onCancel: () => {
502
+ V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
503
+ }
504
+ });
505
+ });
506
+ }
507
+ a(e, t);
508
+ };
509
+ C(i, (e) => {
510
+ r(W) && e(s);
511
+ }), a(e, t);
512
+ }, I = (e) => {
513
+ var n = xe();
514
+ O(n), j(n, (e) => r(X)?.(e)), h((e, t) => {
515
+ d(n, 1, e), g(n, t);
516
+ }, [() => t(se("color")), () => le("color", V().editingCell?.value)]), f("input", n, (e) => r(J)(e.currentTarget.value)), f("change", n, (e) => {
517
+ r(J)(e.currentTarget.value), r(q)();
518
+ }), p("blur", n, () => r(q)()), f("keydown", n, function(...e) {
519
+ r(Y)?.apply(this, e);
520
+ }), a(e, n);
521
+ }, L = (e) => {
522
+ let t = y(() => je(String(V().editingCell?.editorType)));
523
+ var i = o(), s = E(i), c = (e) => {
524
+ let i = y(() => r(t).component);
525
+ var s = o(), c = E(s);
526
+ {
527
+ let e = y(() => pe(r(t), Me()));
528
+ n(c, () => r(i), (t, n) => {
529
+ n(t, ne(() => r(e)));
530
+ });
531
+ }
532
+ a(e, s);
533
+ };
534
+ C(s, (e) => {
535
+ r(t) && e(c);
536
+ }), a(e, i);
537
+ }, R = y(() => fe(String(V().editingCell?.editorType ?? ""))), z = (t) => {
538
+ var n = Se();
539
+ e(n), j(n, (e) => r(X)?.(e)), h((e, t) => {
540
+ w(n, "aria-label", r(Z)), w(n, "rows", e), g(n, t);
541
+ }, [() => Math.max(1, String(V().editingCell?.value ?? "").split("\n").length), () => String(V().editingCell?.value ?? "")]), f("input", n, (e) => {
542
+ let t = e.currentTarget;
543
+ t.rows = Math.max(1, t.value.split("\n").length), r(J)(t.value);
544
+ }), p("blur", n, () => r(q)()), f("keydown", n, function(...e) {
545
+ r(Y)?.apply(this, e);
546
+ }), a(t, n);
547
+ }, H = (e) => {
548
+ let n = y(() => V().editingCell?.editorType ?? "text"), i = y(() => ae(r(n)) === "text" && oe(r(n)) === "number");
549
+ var o = Ce();
550
+ O(o), j(o, (e) => r(X)?.(e)), h((e, t, n) => {
551
+ w(o, "aria-label", r(Z)), d(o, 1, e), w(o, "type", t), w(o, "inputmode", r(i) ? "decimal" : void 0), g(o, n);
552
+ }, [
553
+ () => t(se(r(n))),
554
+ () => ae(r(n)),
555
+ () => le(r(n), V().editingCell?.value)
556
+ ]), f("input", o, (e) => {
557
+ let t = e.currentTarget;
558
+ if (r(i) && !ue(t.value)) {
559
+ t.value = String(V().editingCell?.value ?? "");
560
+ return;
561
+ }
562
+ r(J)(t.value);
563
+ }), p("blur", o, () => r(q)()), f("keydown", o, function(...e) {
564
+ r(Y)?.apply(this, e);
565
+ }), a(e, o);
566
+ };
567
+ C(_, (e) => {
568
+ u.column.columnDef.cellEditor ? e(v) : V().editingCell?.editorType === "checkbox" ? e(ee, 1) : V().editingCell?.editorType === "list" ? e(b, 2) : V().editingCell?.editorType === "chips" ? e(x, 3) : V().editingCell?.editorType === "rating" ? e(te, 4) : V().editingCell?.editorType === "select" ? e(T, 5) : V().editingCell?.editorType === "rich-select" ? e(D, 6) : V().editingCell?.editorType === "textarea" ? e(re, 7) : V().editingCell?.editorType === "autocomplete" ? e(M, 8) : V().editingCell?.editorType === "date" ? e(N, 9) : V().editingCell?.editorType === "datetime" ? e(P, 10) : V().editingCell?.editorType === "time" ? e(F, 11) : V().editingCell?.editorType === "color" ? e(I, 12) : r(R) ? e(L, 13) : (V().editingCell?.editorType ?? "text") === "text" && u.column?.columnDef.editorMultiline ? e(z, 14) : e(H, -1);
569
+ }), a(i, m);
570
+ };
571
+ C(Ne, (e) => {
572
+ H() ? e(Pe) : e(Fe, -1);
573
+ }), a(i, $), ee();
574
+ }
575
+ i([
576
+ "mousedown",
577
+ "click",
578
+ "keydown",
579
+ "change",
580
+ "pointerdown",
581
+ "input"
582
+ ]);
583
+ //#endregion
584
+ export { B as default };
@@ -2,7 +2,7 @@ import { D as e, G as t, H as n, I as r, J as i, K as a, L as o, M as s, O as c,
2
2
  import { a as ue } from "./editor-contract-peBDxir_.js";
3
3
  import { i as de } from "./chart-trend-Dcn6jrAS.js";
4
4
  import { C as fe, D as pe, E as me, O as he, T as ge, _ as _e, a as ve, b as ye, d as be, g as xe, i as Se, n as Ce, t as we, v as Te, w as Ee, x as De, y as Oe } from "./chart-CznMeoM7.js";
5
- import { i as ke, t as Ae } from "./chart-export-CeSADGfi.js";
5
+ import { i as ke, t as Ae } from "./chart-export-C1KSVdMU.js";
6
6
  //#region ../grid/dist/chart-zoom.js
7
7
  function je(e, t, n) {
8
8
  if (n <= 0) return null;
@@ -1899,7 +1899,7 @@ function $r(n, u) {
1899
1899
  }
1900
1900
  async function tc() {
1901
1901
  if (!t(us)) return;
1902
- let e = await import("./chart-export-pdf-BGko7MER.js"), n = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
1902
+ let e = await import("./chart-export-pdf-CmEd365D.js"), n = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
1903
1903
  await e.downloadChartPdf(t(us), `chart-${n}.pdf`, {
1904
1904
  title: t(L).title,
1905
1905
  subtitle: t(L).subtitle,
@@ -1907,7 +1907,7 @@ function $r(n, u) {
1907
1907
  });
1908
1908
  }
1909
1909
  async function nc() {
1910
- t(us) && (await import("./chart-export-pdf-BGko7MER.js")).printChart(t(us), { title: t(L).title });
1910
+ t(us) && (await import("./chart-export-pdf-CmEd365D.js")).printChart(t(us), { title: t(L).title });
1911
1911
  }
1912
1912
  async function rc() {
1913
1913
  let e = Zs();
@@ -1,8 +1,8 @@
1
1
  import { G as e, H as t, I as n, L as r, M as i, O as a, P as o, R as s, S as c, T as l, U as u, W as d, X as f, Y as p, _ as m, a as h, at as g, b as _, ct as v, dt as y, f as b, ft as x, gt as S, h as C, ht as w, j as T, m as E, n as D, nt as O, o as k, ot as A, p as j, rt as M, st as N, tt as P, u as F, y as I } from "./client-GWAV79ON.js";
2
2
  import { t as L } from "./SvModal-DLppAQED.js";
3
3
  import { c as R, f as z, l as B, m as V, o as H, p as U, s as W, u as ee } from "./chart-CznMeoM7.js";
4
- import { t as G } from "./SvGridChart-DWRqlhCV.js";
5
- import { n as te, t as K } from "./SvGridChartPanel-28n4tomx.js";
4
+ import { t as G } from "./SvGridChart-DcfmVvzB.js";
5
+ import { n as te, t as K } from "./SvGridChartPanel-BaVsa-T-.js";
6
6
  //#region ../grid/dist/createTabs.svelte.js
7
7
  var q = 0;
8
8
  function J(t) {
@@ -1,8 +1,8 @@
1
1
  import { D as e, E as t, G as n, H as r, I as i, L as a, O as o, P as s, R as c, S as l, T as u, U as d, V as f, W as p, X as m, Y as h, _ as g, a as _, at as v, b as y, ct as b, dt as ee, ft as te, h as x, ht as S, i as C, j as w, l as ne, m as T, n as E, nt as re, o as D, ot as O, p as k, r as A, rt as j, tt as M, x as ie, y as N, z as P } from "./client-GWAV79ON.js";
2
2
  import { a as ae } from "./editor-contract-peBDxir_.js";
3
3
  import { S as F, h as I } from "./chart-CznMeoM7.js";
4
- import { t as oe } from "./SvGridChart-DWRqlhCV.js";
5
- import { a as se, i as ce, n as le, o as ue, t as de } from "./chart-export-CeSADGfi.js";
4
+ import { t as oe } from "./SvGridChart-DcfmVvzB.js";
5
+ import { a as se, i as ce, n as le, o as ue, t as de } from "./chart-export-C1KSVdMU.js";
6
6
  //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/transition/index.js
7
7
  function fe(e) {
8
8
  let t = e - 1;
@@ -1206,7 +1206,7 @@ function Ot(r, c) {
1206
1206
  v(g, !0);
1207
1207
  return;
1208
1208
  }
1209
- import("./SvGridChartBuilder-BXW3yUR0.js").then((e) => {
1209
+ import("./SvGridChartBuilder-1Z69mxbM.js").then((e) => {
1210
1210
  v(u, e.default, !0), v(g, !0);
1211
1211
  });
1212
1212
  }
@@ -1288,11 +1288,11 @@ function Ot(r, c) {
1288
1288
  }
1289
1289
  async function Ne() {
1290
1290
  let e = W();
1291
- v(U, !1), e && await (await import("./chart-export-pdf-BGko7MER.js")).downloadChartPdf(e, "chart.pdf", { title: n(L)?.title ?? x().charts[x().activeChartIndex]?.title });
1291
+ v(U, !1), e && await (await import("./chart-export-pdf-CmEd365D.js")).downloadChartPdf(e, "chart.pdf", { title: n(L)?.title ?? x().charts[x().activeChartIndex]?.title });
1292
1292
  }
1293
1293
  async function Pe() {
1294
1294
  let e = W();
1295
- v(U, !1), e && (await import("./chart-export-pdf-BGko7MER.js")).printChart(e, { title: n(L)?.title ?? x().charts[x().activeChartIndex]?.title });
1295
+ v(U, !1), e && (await import("./chart-export-pdf-CmEd365D.js")).printChart(e, { title: n(L)?.title ?? x().charts[x().activeChartIndex]?.title });
1296
1296
  }
1297
1297
  async function Fe() {
1298
1298
  let e = W();
@@ -1,6 +1,6 @@
1
1
  import { G as e, I as t, R as n, T as r, ct as i, dt as a, ft as o, ht as s, tt as c } from "./client-GWAV79ON.js";
2
2
  import { s as l } from "./chart-CznMeoM7.js";
3
- import { t as u } from "./SvGridChart-DWRqlhCV.js";
3
+ import { t as u } from "./SvGridChart-DcfmVvzB.js";
4
4
  //#region ../grid/dist/SvGridChartView.svelte
5
5
  var d = n("<div class=\"sv-grid-chart-view svelte-733vyy\"><!></div>"), f = {
6
6
  hash: "svelte-733vyy",