@svgrid/enterprise 3.1.9 → 3.1.11

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 (40) hide show
  1. package/LICENSE +17 -13
  2. package/dist/cdn/svgrid-enterprise.svelte-external.js +2 -1
  3. package/dist/designer/assets/{GridMenus-BUjkkAU2.js → GridMenus-CWAfhEeT.js} +2 -2
  4. package/dist/designer/assets/SvDateRangeInput-DbfmXqJj.js +1 -0
  5. package/dist/designer/assets/SvDateTimePicker-r4FqmR6R.js +1 -0
  6. package/dist/designer/assets/SvGridCellEditor-DTYOEa8t.js +4 -0
  7. package/dist/designer/assets/{index-BPU2KNc5.js → index-BnjAONWv.js} +311 -311
  8. package/dist/designer/assets/index-CLQXR_oM.css +1 -0
  9. package/dist/designer/index.html +4 -4
  10. package/dist/fields/BaseTableView.svelte +43 -1
  11. package/dist/fields/LongTextEditor.svelte +6 -1
  12. package/dist/fields/RecordView.svelte +36 -9
  13. package/dist/fields/RowHeader.svelte +22 -3
  14. package/dist/fields/SelectEditor.svelte +8 -1
  15. package/dist/fields/SvBase.svelte +42 -2
  16. package/dist/fields/SvBase.svelte.d.ts +3 -0
  17. package/dist/fields/SvBaseViewBar.svelte +10 -0
  18. package/dist/fields/SvBaseViewBar.svelte.d.ts +5 -0
  19. package/dist/fields/activity.svelte.d.ts +42 -0
  20. package/dist/fields/activity.svelte.js +57 -0
  21. package/dist/fields/base-schema.d.ts +1 -1
  22. package/dist/fields/base-schema.js +7 -0
  23. package/dist/fields/base-sync.d.ts +21 -0
  24. package/dist/fields/base-sync.js +9 -7
  25. package/dist/fields/index.d.ts +1 -1
  26. package/dist/fields/index.js +9 -2
  27. package/dist/node/studio.js +3 -2
  28. package/dist/studio/ui-components.generated.js +1 -0
  29. package/dist/version.d.ts +2 -2
  30. package/dist/version.js +2 -2
  31. package/dist/wc/{GridMenus-FtSN_8t9.js → GridMenus-wG7PFpPh.js} +1 -1
  32. package/dist/wc/{SvDateRangeInput-DR6m7bSM.js → SvDateRangeInput-BYNOfYxD.js} +68 -65
  33. package/dist/wc/{SvDateTimePicker-D-vRnaMo.js → SvDateTimePicker-Bq9N0Oiy.js} +57 -53
  34. package/dist/wc/{SvGridCellEditor-B_cLJrsp.js → SvGridCellEditor-C8iNUJrd.js} +158 -147
  35. package/dist/wc/sv-sheet-element.js +4 -4
  36. package/package.json +3 -3
  37. package/dist/designer/assets/SvDateRangeInput-BBRzrQeg.js +0 -1
  38. package/dist/designer/assets/SvDateTimePicker-DCPg7WGN.js +0 -1
  39. package/dist/designer/assets/SvGridCellEditor-CJxThKL_.js +0 -4
  40. package/dist/designer/assets/index-BmvG99kR.css +0 -1
@@ -1,17 +1,17 @@
1
1
  import { C as e, D as t, G as n, H as r, I as i, L as a, M as o, O as s, P as c, Q 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, dt as y, et as b, h as ee, ht as x, i as te, it as S, j as C, m as w, mt as T, n as E, nt as D, p as O, st as k, tt as A, ut as j, w as M, y as ne } from "./client-DQIzjDBG.js";
2
2
  import { C as re, d as ie, h as ae, m as oe, o as se, p as ce, v as le, x as ue } from "./SvGrid.helpers-B2GEKrxS.js";
3
- import { n as de, r as fe, t as pe } from "./editor-registry-DxGKqcvx.js";
3
+ import { n as de, r as fe, t as N } from "./editor-registry-DxGKqcvx.js";
4
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(r, u) {
5
+ var P = u("<span class=\"sv-grid-chip sv-grid-chip-removable\"> <button type=\"button\" class=\"sv-grid-chip-remove\">×</button></span>"), F = u("<button type=\"button\" class=\"sv-grid-chip-commit\" aria-label=\"Commit chip selection\">Done</button>"), I = 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>"), L = u("<input type=\"checkbox\" class=\"sv-grid-fr-editor sv-grid-fr-checkbox\"/>"), R = u("<option> </option>"), z = u("<select class=\"sv-grid-cell-editor sv-grid-fr-editor\"></select>"), B = u("<input class=\"sv-grid-cell-editor sv-grid-fr-editor\"/>"), pe = u("<button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Edit checkbox value\"></button>"), me = u("<button type=\"button\" role=\"radio\">★</button>"), he = 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>"), ge = u("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-textarea\" rows=\"4\"></textarea>"), _e = u("<button type=\"button\" class=\"sv-grid-autocomplete-option\" role=\"option\"> </button>"), ve = u("<div class=\"sv-grid-autocomplete-list\" role=\"listbox\"></div>"), ye = u("<div class=\"sv-grid-autocomplete\"><input class=\"sv-grid-cell-editor sv-grid-cell-editor-autocomplete\" type=\"text\"/> <!></div>"), be = u("<input type=\"color\"/>"), xe = u("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-text sv-grid-cell-editor-multiline\"></textarea>"), Se = u("<input/>");
6
+ function V(r, u) {
7
7
  y(u, !0);
8
- let B = (e, r = x, o = x, l = x, u = x) => {
8
+ let V = (e, r = x, o = x, l = x, u = x) => {
9
9
  var d = a(), m = A(d), g = (e) => {
10
10
  var s = a(), c = A(s), l = (e) => {
11
11
  var s = a(), c = A(s);
12
12
  {
13
- let e = k(() => V().editingCell?.value);
14
- t(c, () => n(U), (t, i) => {
13
+ let e = k(() => H().editingCell?.value);
14
+ t(c, () => n(W), (t, i) => {
15
15
  i(t, {
16
16
  get options() {
17
17
  return r();
@@ -28,14 +28,14 @@ function B(r, u) {
28
28
  placeholder: "Pick…",
29
29
  renderChipsInTrigger: !0,
30
30
  onChange: (e) => {
31
- V().editingCell = V().editingCell ? {
32
- ...V().editingCell,
31
+ H().editingCell = H().editingCell ? {
32
+ ...H().editingCell,
33
33
  value: e
34
- } : V().editingCell;
34
+ } : H().editingCell;
35
35
  },
36
36
  onCommit: () => n(J)(),
37
37
  onCancel: () => {
38
- V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
38
+ H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
39
39
  }
40
40
  });
41
41
  });
@@ -43,28 +43,28 @@ function B(r, u) {
43
43
  i(e, s);
44
44
  };
45
45
  C(c, (e) => {
46
- n(U) && e(l);
46
+ n(W) && e(l);
47
47
  }), i(e, s);
48
48
  }, _ = (e) => {
49
- var t = F();
49
+ var t = I();
50
50
  w(t, "tabindex", -1);
51
51
  var r = b(t), a = b(r);
52
52
  s(a, 19, l, (e, t) => String(e) + "_" + t, (e, t, r) => {
53
- var a = N(), s = b(a), u = D(s);
53
+ var a = P(), s = b(a), u = D(s);
54
54
  T(a), h((e, t) => {
55
55
  c(s, `${e ?? ""} `), w(u, "aria-label", `Remove ${t ?? ""}`);
56
56
  }, [() => String(n(t)), () => String(n(t))]), f("mousedown", u, (e) => e.preventDefault()), f("click", u, () => {
57
57
  let e = l().filter((e, t) => t !== n(r));
58
- V().editingCell = V().editingCell ? {
59
- ...V().editingCell,
58
+ H().editingCell = H().editingCell ? {
59
+ ...H().editingCell,
60
60
  value: o() ? e : e[0] ?? null
61
- } : V().editingCell;
61
+ } : H().editingCell;
62
62
  }), i(e, a);
63
63
  });
64
64
  var u = D(a, 2);
65
65
  M(u, (e) => n(Z)?.(e));
66
66
  var d = D(u, 2), m = (e) => {
67
- var t = P();
67
+ var t = F();
68
68
  f("mousedown", t, (e) => e.preventDefault()), f("click", t, () => n(J)()), i(e, t);
69
69
  };
70
70
  C(d, (e) => {
@@ -75,36 +75,36 @@ function B(r, u) {
75
75
  let t = e.currentTarget, r = t.value.trim();
76
76
  if (r) {
77
77
  let e = o() ? [...l(), r] : [r];
78
- V().editingCell = V().editingCell ? {
79
- ...V().editingCell,
78
+ H().editingCell = H().editingCell ? {
79
+ ...H().editingCell,
80
80
  value: o() ? e : r
81
- } : V().editingCell, t.value = "", o() || n(J)();
81
+ } : H().editingCell, t.value = "", o() || n(J)();
82
82
  }
83
83
  } else if (e.key === "Escape") n(X)(e);
84
84
  else if (e.key === "Backspace" && e.currentTarget.value === "" && l().length > 0) {
85
85
  e.preventDefault();
86
86
  let t = l().slice(0, -1);
87
- V().editingCell = V().editingCell ? {
88
- ...V().editingCell,
87
+ H().editingCell = H().editingCell ? {
88
+ ...H().editingCell,
89
89
  value: o() ? t : t[0] ?? null
90
- } : V().editingCell;
90
+ } : H().editingCell;
91
91
  }
92
92
  }), p("blur", u, () => n(J)()), i(e, t);
93
93
  };
94
94
  C(m, (e) => {
95
95
  r().length > 0 ? e(g) : e(_, -1);
96
96
  }), i(e, d);
97
- }, V = E(u, "ctrl", 7), H = E(u, "fullRow", 3, !1), U = _(null), W = _(null);
97
+ }, H = E(u, "ctrl", 7), U = E(u, "fullRow", 3, !1), W = _(null), G = _(null);
98
98
  m(() => {
99
- let e = V().editingCell?.editorType;
100
- (e === "list" || e === "chips" || e === "select" || e === "rich-select") && !n(U) && import("./SvGridDropdown-45WsObLL.js").then((e) => S(U, e.default, !0)), (e === "date" || e === "datetime" || e === "time") && !n(W) && import("./SvDateTimePicker-D-vRnaMo.js").then((e) => S(W, e.default, !0));
99
+ let e = H().editingCell?.editorType;
100
+ (e === "list" || e === "chips" || e === "select" || e === "rich-select") && !n(W) && import("./SvGridDropdown-45WsObLL.js").then((e) => S(W, e.default, !0)), (e === "date" || e === "datetime" || e === "time") && !n(G) && import("./SvDateTimePicker-Bq9N0Oiy.js").then((e) => S(G, e.default, !0));
101
101
  });
102
- let we = k(() => V().grid), G = k(() => V().fullRowEdit), K = k(() => V().getColumnEditorOptions), q = k(() => V().areEditorOptionsLoading), J = k(() => V().saveEditingCell), Y = k(() => V().updateEditingCellValue), X = k(() => V().onEditorKeyDown), Z = k(() => V().focusOnMount), Te = k(() => V().toggleCheckboxWithKeyboard);
102
+ let Ce = k(() => H().grid), we = k(() => H().fullRowEdit), K = k(() => H().getColumnEditorOptions), q = k(() => H().areEditorOptionsLoading), J = k(() => H().saveEditingCell), Y = k(() => H().updateEditingCellValue), X = k(() => H().onEditorKeyDown), Z = k(() => H().focusOnMount), Te = k(() => H().toggleCheckboxWithKeyboard);
103
103
  function Ee(e, t = !0) {
104
104
  t && e.focus({ preventScroll: !0 });
105
105
  }
106
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 }));
107
+ e.key === "Enter" ? (e.preventDefault(), H().commitFullRowEdit(), H().gridRootEl?.focus({ preventScroll: !0 })) : e.key === "Escape" && (e.preventDefault(), H().cancelFullRowEdit(), H().gridRootEl?.focus({ preventScroll: !0 }));
108
108
  }
109
109
  function De(e) {
110
110
  return typeof e == "object" && e && "value" in e ? String(e.value) : String(e);
@@ -112,8 +112,13 @@ function B(r, u) {
112
112
  function Oe(e) {
113
113
  return typeof e == "object" && e && "label" in e ? String(e.label) : String(e);
114
114
  }
115
- function ke() {
116
- let e = V().editingCell;
115
+ let ke;
116
+ function Ae(e) {
117
+ let t = N(e);
118
+ return t && (ke = t), t ?? ke;
119
+ }
120
+ function je() {
121
+ let e = H().editingCell;
117
122
  return {
118
123
  value: e?.value,
119
124
  rowId: e?.rowId ?? "",
@@ -121,36 +126,36 @@ function B(r, u) {
121
126
  columnDef: u.column.columnDef,
122
127
  row: u.row.original,
123
128
  typed: e?.typed === !0,
124
- grid: V(),
129
+ grid: H(),
125
130
  onChange: (e) => n(Y)(e),
126
131
  onCommit: (e) => {
127
132
  e !== void 0 && n(Y)(e), n(J)();
128
133
  },
129
134
  onCancel: () => {
130
- V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
135
+ H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
131
136
  },
132
137
  onCommitAndMove: (e, t) => {
133
- e !== void 0 && n(Y)(e), V().commitAndMoveByTab(t === -1);
138
+ e !== void 0 && n(Y)(e), H().commitAndMoveByTab(t === -1);
134
139
  },
135
140
  onCommitAndMoveDown: (e, t) => {
136
- e !== void 0 && n(Y)(e), V().commitAndMoveByEnter(t === !0);
141
+ e !== void 0 && n(Y)(e), H().commitAndMoveByEnter(t === !0);
137
142
  },
138
143
  onRequestClose: () => {
139
- V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
144
+ H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
140
145
  },
141
146
  inCell: !0
142
147
  };
143
148
  }
144
- var $ = a(), Ae = A($), je = (e) => {
145
- let t = k(() => u.column.columnDef.editorType ?? "text"), r = k(() => n(G)?.draft[u.column.id]);
149
+ var $ = a(), Me = A($), Ne = (e) => {
150
+ let t = k(() => u.column.columnDef.editorType ?? "text"), r = k(() => n(we)?.draft[u.column.id]);
146
151
  var o = a(), l = A(o), d = (e) => {
147
- var t = I();
148
- O(t), h((e) => ee(t, e), [() => !!n(r)]), 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()), i(e, t);
152
+ var t = L();
153
+ O(t), h((e) => ee(t, e), [() => !!n(r)]), f("change", t, (e) => H().setFullRowDraft(u.column.id, e.currentTarget.checked)), f("keydown", t, Q), f("pointerdown", t, (e) => e.stopPropagation()), f("click", t, (e) => e.stopPropagation()), i(e, t);
149
154
  }, p = (e) => {
150
155
  let t = k(() => n(K)(u.column, u.row));
151
- var a = R();
156
+ var a = z();
152
157
  s(a, 21, () => n(t), (e) => De(e), (e, t) => {
153
- var r = L(), a = b(r, !0);
158
+ var r = R(), a = b(r, !0);
154
159
  T(r);
155
160
  var o = {};
156
161
  h((e, t) => {
@@ -160,18 +165,18 @@ function B(r, u) {
160
165
  var o;
161
166
  ne(a), h((e) => {
162
167
  o !== (o = e) && (a.value = (a.__value = e) ?? "", v(a, e));
163
- }, [() => String(n(r) ?? "")]), f("change", a, (e) => V().setFullRowDraft(u.column.id, e.currentTarget.value)), f("keydown", a, Q), f("pointerdown", a, (e) => e.stopPropagation()), f("click", a, (e) => e.stopPropagation()), i(e, a);
168
+ }, [() => String(n(r) ?? "")]), f("change", a, (e) => H().setFullRowDraft(u.column.id, e.currentTarget.value)), f("keydown", a, Q), f("pointerdown", a, (e) => e.stopPropagation()), f("click", a, (e) => e.stopPropagation()), i(e, a);
164
169
  }, m = (e) => {
165
170
  let a = k(() => n(t) === "number" ? "number" : n(t) === "date" ? "date" : n(t) === "datetime" ? "datetime-local" : n(t) === "time" ? "time" : n(t) === "password" ? "password" : "text");
166
- var o = z();
171
+ var o = B();
167
172
  O(o), h((e) => {
168
173
  w(o, "type", n(a)), g(o, e);
169
- }, [() => String(n(r) ?? "")]), 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()), i(e, o);
174
+ }, [() => String(n(r) ?? "")]), f("input", o, (e) => H().setFullRowDraft(u.column.id, e.currentTarget.value)), f("keydown", o, Q), f("pointerdown", o, (e) => e.stopPropagation()), f("click", o, (e) => e.stopPropagation()), i(e, o);
170
175
  };
171
176
  C(l, (e) => {
172
177
  n(t) === "checkbox" ? e(d) : n(t) === "list" || n(t) === "select" || n(t) === "rich-select" ? e(p, 1) : e(m, -1);
173
178
  }), i(e, o);
174
- }, Me = (r) => {
179
+ }, Pe = (r) => {
175
180
  var m = a(), _ = A(m), v = (e) => {
176
181
  let t = k(() => u.column.columnDef.cellEditor);
177
182
  var r = a(), s = A(r);
@@ -180,46 +185,46 @@ function B(r, u) {
180
185
  cell: u.row.getAllCells().find((e) => e.column.id === u.column.id),
181
186
  row: u.row,
182
187
  column: u.column,
183
- table: n(we),
184
- getValue: () => V().editingCell?.value,
185
- value: V().editingCell?.value,
188
+ table: n(Ce),
189
+ getValue: () => H().editingCell?.value,
190
+ value: H().editingCell?.value,
186
191
  update: (e) => {
187
- V().editingCell = V().editingCell ? {
188
- ...V().editingCell,
192
+ H().editingCell = H().editingCell ? {
193
+ ...H().editingCell,
189
194
  value: e
190
- } : V().editingCell;
195
+ } : H().editingCell;
191
196
  },
192
197
  commit: (e) => {
193
- e !== void 0 && (V().editingCell = V().editingCell ? {
194
- ...V().editingCell,
198
+ e !== void 0 && (H().editingCell = H().editingCell ? {
199
+ ...H().editingCell,
195
200
  value: e
196
- } : V().editingCell), n(J)();
201
+ } : H().editingCell), n(J)();
197
202
  },
198
203
  cancel: () => {
199
- V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
204
+ H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
200
205
  }
201
206
  }));
202
207
  o(s, () => n(t), () => n(e));
203
208
  }
204
209
  i(e, r);
205
210
  }, y = (e) => {
206
- var t = me();
207
- M(t, (e) => Ee?.(e)), h((e) => w(t, "aria-checked", e), [() => !!V().editingCell.value]), f("click", t, (e) => {
211
+ var t = pe();
212
+ M(t, (e) => Ee?.(e)), h((e) => w(t, "aria-checked", e), [() => !!H().editingCell.value]), f("click", t, (e) => {
208
213
  e.stopPropagation();
209
- let t = !V().editingCell?.value;
210
- V().editingCell = V().editingCell ? {
211
- ...V().editingCell,
214
+ let t = !H().editingCell?.value;
215
+ H().editingCell = H().editingCell ? {
216
+ ...H().editingCell,
212
217
  value: t
213
- } : V().editingCell, n(J)();
218
+ } : H().editingCell, n(J)();
214
219
  }), f("keydown", t, (e) => {
215
220
  if (e.key === "Enter" || e.key === " ") {
216
221
  n(Te)(e, () => {
217
222
  e.stopPropagation();
218
- let t = !V().editingCell?.value;
219
- V().editingCell = V().editingCell ? {
220
- ...V().editingCell,
223
+ let t = !H().editingCell?.value;
224
+ H().editingCell = H().editingCell ? {
225
+ ...H().editingCell,
221
226
  value: t
222
- } : V().editingCell, n(J)();
227
+ } : H().editingCell, n(J)();
223
228
  });
224
229
  return;
225
230
  }
@@ -230,8 +235,8 @@ function B(r, u) {
230
235
  var c = a(), l = A(c), d = (e) => {
231
236
  var c = a(), l = A(c);
232
237
  {
233
- let e = k(() => V().editingCell?.value);
234
- t(l, () => n(U), (t, i) => {
238
+ let e = k(() => H().editingCell?.value);
239
+ t(l, () => n(W), (t, i) => {
235
240
  i(t, {
236
241
  get options() {
237
242
  return n(r);
@@ -247,14 +252,14 @@ function B(r, u) {
247
252
  },
248
253
  placeholder: "Select…",
249
254
  onChange: (e) => {
250
- V().editingCell = V().editingCell ? {
251
- ...V().editingCell,
255
+ H().editingCell = H().editingCell ? {
256
+ ...H().editingCell,
252
257
  value: e
253
- } : V().editingCell;
258
+ } : H().editingCell;
254
259
  },
255
260
  onCommit: () => n(J)(),
256
261
  onCancel: () => {
257
- V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
262
+ H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
258
263
  }
259
264
  });
260
265
  });
@@ -262,14 +267,14 @@ function B(r, u) {
262
267
  i(e, c);
263
268
  };
264
269
  C(l, (e) => {
265
- n(U) && e(d);
270
+ n(W) && e(d);
266
271
  }), i(e, c);
267
272
  }, x = (e) => {
268
- let t = k(() => n(K)(u.column, u.row)), r = k(() => n(q)(u.column, u.row)), i = k(() => u.column.columnDef.editorMultiple === !0), a = k(() => re(V().editingCell?.value));
269
- B(e, () => n(t), () => n(i), () => n(a), () => n(r));
273
+ let t = k(() => n(K)(u.column, u.row)), r = k(() => n(q)(u.column, u.row)), i = k(() => u.column.columnDef.editorMultiple === !0), a = k(() => re(H().editingCell?.value));
274
+ V(e, () => n(t), () => n(i), () => n(a), () => n(r));
270
275
  }, S = (e) => {
271
- let t = k(() => Math.max(0, Math.min(5, Math.round(Number(V().editingCell?.value) || 0)))), r = k(() => Math.min(5, Math.max(1, n(t))));
272
- var a = ge(), o = b(a);
276
+ let t = k(() => Math.max(0, Math.min(5, Math.round(Number(H().editingCell?.value) || 0)))), r = k(() => Math.min(5, Math.max(1, n(t))));
277
+ var a = he(), o = b(a);
273
278
  s(o, 16, () => [
274
279
  1,
275
280
  2,
@@ -277,14 +282,14 @@ function B(r, u) {
277
282
  4,
278
283
  5
279
284
  ], (e) => e, (e, a) => {
280
- var o = he();
285
+ var o = me();
281
286
  M(o, (e, t) => Ee?.(e, t), () => a === n(r)), h(() => {
282
287
  w(o, "aria-checked", n(t) >= a), w(o, "aria-label", `${a} ${a === 1 ? "star" : "stars"}`), d(o, 1, `sv-grid-rating-star ${n(t) >= a ? "sv-grid-rating-star-on" : ""}`);
283
288
  }), f("mousedown", o, (e) => e.preventDefault()), f("click", o, (e) => {
284
- e.stopPropagation(), V().editingCell = V().editingCell ? {
285
- ...V().editingCell,
289
+ e.stopPropagation(), H().editingCell = H().editingCell ? {
290
+ ...H().editingCell,
286
291
  value: a
287
- } : V().editingCell, n(J)();
292
+ } : H().editingCell, n(J)();
288
293
  }), f("keydown", o, (e) => {
289
294
  let r = e.key;
290
295
  if (r !== "ArrowLeft" && r !== "ArrowRight" && r !== "Home" && r !== "End") {
@@ -293,26 +298,26 @@ function B(r, u) {
293
298
  }
294
299
  e.preventDefault(), e.stopPropagation();
295
300
  let i = Math.min(5, Math.max(1, n(t))), a = r === "Home" ? 1 : r === "End" ? 5 : r === "ArrowLeft" ? Math.max(1, i - 1) : Math.min(5, i + 1);
296
- V().editingCell = V().editingCell ? {
297
- ...V().editingCell,
301
+ H().editingCell = H().editingCell ? {
302
+ ...H().editingCell,
298
303
  value: a
299
- } : V().editingCell, (e.currentTarget.parentElement?.querySelectorAll(".sv-grid-rating-star"))?.[a - 1]?.focus({ preventScroll: !0 });
304
+ } : H().editingCell, (e.currentTarget.parentElement?.querySelectorAll(".sv-grid-rating-star"))?.[a - 1]?.focus({ preventScroll: !0 });
300
305
  }), i(e, o);
301
306
  });
302
307
  var c = D(o, 2);
303
308
  T(a), f("mousedown", c, (e) => e.preventDefault()), f("click", c, (e) => {
304
- e.stopPropagation(), V().editingCell = V().editingCell ? {
305
- ...V().editingCell,
309
+ e.stopPropagation(), H().editingCell = H().editingCell ? {
310
+ ...H().editingCell,
306
311
  value: 0
307
- } : V().editingCell, n(J)();
312
+ } : H().editingCell, n(J)();
308
313
  }), i(e, a);
309
314
  }, E = (e) => {
310
315
  let r = k(() => n(K)(u.column, u.row)), o = k(() => n(q)(u.column, u.row));
311
316
  var s = a(), c = A(s), l = (e) => {
312
317
  var s = a(), c = A(s);
313
318
  {
314
- let e = k(() => V().editingCell?.value);
315
- t(c, () => n(U), (t, i) => {
319
+ let e = k(() => H().editingCell?.value);
320
+ t(c, () => n(W), (t, i) => {
316
321
  i(t, {
317
322
  get options() {
318
323
  return n(r);
@@ -326,14 +331,14 @@ function B(r, u) {
326
331
  multiple: !1,
327
332
  placeholder: "Select…",
328
333
  onChange: (e) => {
329
- V().editingCell = V().editingCell ? {
330
- ...V().editingCell,
334
+ H().editingCell = H().editingCell ? {
335
+ ...H().editingCell,
331
336
  value: e
332
- } : V().editingCell;
337
+ } : H().editingCell;
333
338
  },
334
339
  onCommit: () => n(J)(),
335
340
  onCancel: () => {
336
- V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
341
+ H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
337
342
  }
338
343
  });
339
344
  });
@@ -341,15 +346,15 @@ function B(r, u) {
341
346
  i(e, s);
342
347
  };
343
348
  C(c, (e) => {
344
- n(U) && e(l);
349
+ n(W) && e(l);
345
350
  }), i(e, s);
346
351
  }, j = (e) => {
347
352
  let r = k(() => n(K)(u.column, u.row)), o = k(() => n(q)(u.column, u.row));
348
353
  var s = a(), c = A(s), l = (e) => {
349
354
  var s = a(), c = A(s);
350
355
  {
351
- let e = k(() => V().editingCell?.value);
352
- t(c, () => n(U), (t, i) => {
356
+ let e = k(() => H().editingCell?.value);
357
+ t(c, () => n(W), (t, i) => {
353
358
  i(t, {
354
359
  get options() {
355
360
  return n(r);
@@ -364,14 +369,14 @@ function B(r, u) {
364
369
  searchable: !0,
365
370
  placeholder: "Search…",
366
371
  onChange: (e) => {
367
- V().editingCell = V().editingCell ? {
368
- ...V().editingCell,
372
+ H().editingCell = H().editingCell ? {
373
+ ...H().editingCell,
369
374
  value: e
370
- } : V().editingCell;
375
+ } : H().editingCell;
371
376
  },
372
377
  onCommit: () => n(J)(),
373
378
  onCancel: () => {
374
- V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
379
+ H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
375
380
  }
376
381
  });
377
382
  });
@@ -379,36 +384,36 @@ function B(r, u) {
379
384
  i(e, s);
380
385
  };
381
386
  C(c, (e) => {
382
- n(U) && e(l);
387
+ n(W) && e(l);
383
388
  }), i(e, s);
384
389
  }, ne = (e) => {
385
- var t = _e();
386
- l(t), M(t, (e) => n(Z)?.(e)), h((e) => g(t, e), [() => String(V().editingCell?.value ?? "")]), f("pointerdown", t, (e) => e.stopPropagation()), f("input", t, (e) => n(Y)(e.currentTarget.value)), f("keydown", t, (e) => {
390
+ var t = ge();
391
+ l(t), M(t, (e) => n(Z)?.(e)), h((e) => g(t, e), [() => String(H().editingCell?.value ?? "")]), f("pointerdown", t, (e) => e.stopPropagation()), f("input", t, (e) => n(Y)(e.currentTarget.value)), f("keydown", t, (e) => {
387
392
  if (e.stopPropagation(), e.key === "Escape") {
388
- e.preventDefault(), V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
393
+ e.preventDefault(), H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
389
394
  return;
390
395
  }
391
396
  if (e.key === "Tab") {
392
- e.preventDefault(), V().commitAndMoveByTab(e.shiftKey);
397
+ e.preventDefault(), H().commitAndMoveByTab(e.shiftKey);
393
398
  return;
394
399
  }
395
- e.key === "Enter" && (e.ctrlKey || e.metaKey) && (e.preventDefault(), n(J)(), V().gridRootEl?.focus({ preventScroll: !0 }));
400
+ e.key === "Enter" && (e.ctrlKey || e.metaKey) && (e.preventDefault(), n(J)(), H().gridRootEl?.focus({ preventScroll: !0 }));
396
401
  }), p("blur", t, () => n(J)()), i(e, t);
397
402
  }, N = (e) => {
398
- let t = k(() => n(K)(u.column, u.row)), r = k(() => String(V().editingCell?.value ?? "")), a = k(() => n(r).trim() ? n(t).filter((e) => String(e.label).toLowerCase().includes(n(r).toLowerCase())) : n(t));
399
- var o = be(), l = b(o);
403
+ let t = k(() => n(K)(u.column, u.row)), r = k(() => String(H().editingCell?.value ?? "")), a = k(() => n(r).trim() ? n(t).filter((e) => String(e.label).toLowerCase().includes(n(r).toLowerCase())) : n(t));
404
+ var o = ye(), l = b(o);
400
405
  O(l), M(l, (e) => n(Z)?.(e));
401
406
  var d = D(l, 2), m = (e) => {
402
- var t = ye();
407
+ var t = ve();
403
408
  s(t, 21, () => n(a).slice(0, 50), (e) => e.value, (e, t) => {
404
- var a = ve(), o = b(a, !0);
409
+ var a = _e(), o = b(a, !0);
405
410
  T(a), h((e) => {
406
411
  w(a, "aria-selected", e), c(o, n(t).label);
407
412
  }, [() => String(n(t).value) === n(r)]), f("mousedown", a, (e) => {
408
- e.preventDefault(), V().editingCell = V().editingCell ? {
409
- ...V().editingCell,
413
+ e.preventDefault(), H().editingCell = H().editingCell ? {
414
+ ...H().editingCell,
410
415
  value: n(t).value
411
- } : V().editingCell, n(J)();
416
+ } : H().editingCell, n(J)();
412
417
  }), i(e, a);
413
418
  }), T(t), i(e, t);
414
419
  };
@@ -421,8 +426,8 @@ function B(r, u) {
421
426
  var r = a(), o = A(r), s = (e) => {
422
427
  var r = a(), o = A(r);
423
428
  {
424
- let e = k(() => V().editingCell?.value), r = k(() => u.column.columnDef.editorFormatString ?? "yyyy-MM-dd");
425
- t(o, () => n(W), (t, i) => {
429
+ let e = k(() => H().editingCell?.value), r = k(() => u.column.columnDef.editorFormatString ?? "yyyy-MM-dd");
430
+ t(o, () => n(G), (t, i) => {
426
431
  i(t, {
427
432
  get value() {
428
433
  return n(e);
@@ -436,7 +441,7 @@ function B(r, u) {
436
441
  onChange: (e) => n(Y)(e),
437
442
  onCommit: () => n(J)(),
438
443
  onCancel: () => {
439
- V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
444
+ H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
440
445
  }
441
446
  });
442
447
  });
@@ -444,14 +449,14 @@ function B(r, u) {
444
449
  i(e, r);
445
450
  };
446
451
  C(o, (e) => {
447
- n(W) && e(s);
452
+ n(G) && e(s);
448
453
  }), i(e, r);
449
454
  }, F = (e) => {
450
455
  var r = a(), o = A(r), s = (e) => {
451
456
  var r = a(), o = A(r);
452
457
  {
453
- let e = k(() => V().editingCell?.value), r = k(() => u.column.columnDef.editorFormatString ?? "yyyy-MM-dd HH:mm");
454
- t(o, () => n(W), (t, i) => {
458
+ let e = k(() => H().editingCell?.value), r = k(() => u.column.columnDef.editorFormatString ?? "yyyy-MM-dd HH:mm");
459
+ t(o, () => n(G), (t, i) => {
455
460
  i(t, {
456
461
  get value() {
457
462
  return n(e);
@@ -465,7 +470,7 @@ function B(r, u) {
465
470
  onChange: (e) => n(Y)(e),
466
471
  onCommit: () => n(J)(),
467
472
  onCancel: () => {
468
- V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
473
+ H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
469
474
  }
470
475
  });
471
476
  });
@@ -473,14 +478,14 @@ function B(r, u) {
473
478
  i(e, r);
474
479
  };
475
480
  C(o, (e) => {
476
- n(W) && e(s);
481
+ n(G) && e(s);
477
482
  }), i(e, r);
478
483
  }, I = (e) => {
479
484
  var r = a(), o = A(r), s = (e) => {
480
485
  var r = a(), o = A(r);
481
486
  {
482
- let e = k(() => ue(V().editingCell?.value));
483
- t(o, () => n(W), (t, r) => {
487
+ let e = k(() => ue(H().editingCell?.value));
488
+ t(o, () => n(G), (t, r) => {
484
489
  r(t, {
485
490
  get value() {
486
491
  return n(e);
@@ -492,7 +497,7 @@ function B(r, u) {
492
497
  onChange: (e) => n(Y)(se(e)),
493
498
  onCommit: () => n(J)(),
494
499
  onCancel: () => {
495
- V().editingCell = null, V().gridRootEl?.focus({ preventScroll: !0 });
500
+ H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
496
501
  }
497
502
  });
498
503
  });
@@ -500,50 +505,56 @@ function B(r, u) {
500
505
  i(e, r);
501
506
  };
502
507
  C(o, (e) => {
503
- n(W) && e(s);
508
+ n(G) && e(s);
504
509
  }), i(e, r);
505
510
  }, L = (t) => {
506
- var r = xe();
511
+ var r = be();
507
512
  O(r), M(r, (e) => n(Z)?.(e)), h((e, t) => {
508
513
  d(r, 1, e), g(r, t);
509
- }, [() => e(oe("color")), () => ce("color", V().editingCell?.value)]), f("input", r, (e) => n(Y)(e.currentTarget.value)), f("change", r, (e) => {
514
+ }, [() => e(oe("color")), () => ce("color", H().editingCell?.value)]), f("input", r, (e) => n(Y)(e.currentTarget.value)), f("change", r, (e) => {
510
515
  n(Y)(e.currentTarget.value), n(J)();
511
516
  }), p("blur", r, () => n(J)()), f("keydown", r, function(...e) {
512
517
  n(X)?.apply(this, e);
513
518
  }), i(t, r);
514
519
  }, R = (e) => {
515
- let r = k(() => pe(String(V().editingCell?.editorType))), o = k(() => n(r).component);
516
- var s = a(), c = A(s);
517
- {
518
- let e = k(() => fe(n(r), ke()));
519
- t(c, () => n(o), (t, r) => {
520
- r(t, te(() => n(e)));
521
- });
522
- }
523
- i(e, s);
524
- }, z = k(() => de(String(V().editingCell?.editorType ?? ""))), H = (e) => {
525
- var t = Se();
520
+ let r = k(() => Ae(String(H().editingCell?.editorType)));
521
+ var o = a(), s = A(o), c = (e) => {
522
+ let o = k(() => n(r).component);
523
+ var s = a(), c = A(s);
524
+ {
525
+ let e = k(() => fe(n(r), je()));
526
+ t(c, () => n(o), (t, r) => {
527
+ r(t, te(() => n(e)));
528
+ });
529
+ }
530
+ i(e, s);
531
+ };
532
+ C(s, (e) => {
533
+ n(r) && e(c);
534
+ }), i(e, o);
535
+ }, z = k(() => de(String(H().editingCell?.editorType ?? ""))), B = (e) => {
536
+ var t = xe();
526
537
  l(t), M(t, (e) => n(Z)?.(e)), h((e, n) => {
527
538
  w(t, "rows", e), g(t, n);
528
- }, [() => Math.max(1, String(V().editingCell?.value ?? "").split("\n").length), () => String(V().editingCell?.value ?? "")]), f("input", t, (e) => {
539
+ }, [() => Math.max(1, String(H().editingCell?.value ?? "").split("\n").length), () => String(H().editingCell?.value ?? "")]), f("input", t, (e) => {
529
540
  let t = e.currentTarget;
530
541
  t.rows = Math.max(1, t.value.split("\n").length), n(Y)(t.value);
531
542
  }), p("blur", t, () => n(J)()), f("keydown", t, function(...e) {
532
543
  n(X)?.apply(this, e);
533
544
  }), i(e, t);
534
- }, G = (t) => {
535
- let r = k(() => V().editingCell?.editorType ?? "text"), a = k(() => ie(n(r)) === "text" && ae(n(r)) === "number");
536
- var o = Ce();
545
+ }, U = (t) => {
546
+ let r = k(() => H().editingCell?.editorType ?? "text"), a = k(() => ie(n(r)) === "text" && ae(n(r)) === "number");
547
+ var o = Se();
537
548
  O(o), M(o, (e) => n(Z)?.(e)), h((e, t, r) => {
538
549
  d(o, 1, e), w(o, "type", t), w(o, "inputmode", n(a) ? "decimal" : void 0), g(o, r);
539
550
  }, [
540
551
  () => e(oe(n(r))),
541
552
  () => ie(n(r)),
542
- () => ce(n(r), V().editingCell?.value)
553
+ () => ce(n(r), H().editingCell?.value)
543
554
  ]), f("input", o, (e) => {
544
555
  let t = e.currentTarget;
545
556
  if (n(a) && !le(t.value)) {
546
- t.value = String(V().editingCell?.value ?? "");
557
+ t.value = String(H().editingCell?.value ?? "");
547
558
  return;
548
559
  }
549
560
  n(Y)(t.value);
@@ -552,11 +563,11 @@ function B(r, u) {
552
563
  }), i(t, o);
553
564
  };
554
565
  C(_, (e) => {
555
- u.column.columnDef.cellEditor ? e(v) : V().editingCell?.editorType === "checkbox" ? e(y, 1) : V().editingCell?.editorType === "list" ? e(ee, 2) : V().editingCell?.editorType === "chips" ? e(x, 3) : V().editingCell?.editorType === "rating" ? e(S, 4) : V().editingCell?.editorType === "select" ? e(E, 5) : V().editingCell?.editorType === "rich-select" ? e(j, 6) : V().editingCell?.editorType === "textarea" ? e(ne, 7) : V().editingCell?.editorType === "autocomplete" ? e(N, 8) : V().editingCell?.editorType === "date" ? e(P, 9) : V().editingCell?.editorType === "datetime" ? e(F, 10) : V().editingCell?.editorType === "time" ? e(I, 11) : V().editingCell?.editorType === "color" ? e(L, 12) : n(z) ? e(R, 13) : (V().editingCell?.editorType ?? "text") === "text" && u.column?.columnDef.editorMultiline ? e(H, 14) : e(G, -1);
566
+ u.column.columnDef.cellEditor ? e(v) : H().editingCell?.editorType === "checkbox" ? e(y, 1) : H().editingCell?.editorType === "list" ? e(ee, 2) : H().editingCell?.editorType === "chips" ? e(x, 3) : H().editingCell?.editorType === "rating" ? e(S, 4) : H().editingCell?.editorType === "select" ? e(E, 5) : H().editingCell?.editorType === "rich-select" ? e(j, 6) : H().editingCell?.editorType === "textarea" ? e(ne, 7) : H().editingCell?.editorType === "autocomplete" ? e(N, 8) : H().editingCell?.editorType === "date" ? e(P, 9) : H().editingCell?.editorType === "datetime" ? e(F, 10) : H().editingCell?.editorType === "time" ? e(I, 11) : H().editingCell?.editorType === "color" ? e(L, 12) : n(z) ? e(R, 13) : (H().editingCell?.editorType ?? "text") === "text" && u.column?.columnDef.editorMultiline ? e(B, 14) : e(U, -1);
556
567
  }), i(r, m);
557
568
  };
558
- C(Ae, (e) => {
559
- H() ? e(je) : e(Me, -1);
569
+ C(Me, (e) => {
570
+ U() ? e(Ne) : e(Pe, -1);
560
571
  }), i(r, $), j();
561
572
  }
562
573
  r([
@@ -568,4 +579,4 @@ r([
568
579
  "input"
569
580
  ]);
570
581
  //#endregion
571
- export { B as default };
582
+ export { V as default };