@svgrid/grid-wc 3.0.80 → 3.0.81

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.
@@ -1,4 +1,4 @@
1
- (function(){try{var c=".sv-listbox.svelte-1qscmce{--_accent:var(--sg-accent,#2563eb);background:var(--sg-input-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));border-radius:var(--sg-radius,8px);--_fs:13px;outline:none;width:220px;margin:0;list-style:none}.sv-listbox.svelte-1qscmce:not(.is-virtual){max-height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:4px;overflow-y:auto}.sv-listbox.is-virtual.svelte-1qscmce{height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:0;position:relative;overflow:hidden}.sv-listbox.is-block.svelte-1qscmce{width:100%}.sv-listbox--sm.svelte-1qscmce{--_fs:12px}.sv-listbox--lg.svelte-1qscmce{--_fs:15px}.sv-listbox.svelte-1qscmce:focus-visible{border-color:var(--_accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox.is-invalid.svelte-1qscmce{border-color:var(--sg-danger,#dc2626)}.sv-listbox.is-invalid.svelte-1qscmce:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-danger,#dc2626) 22%, transparent)}.sv-listbox__vp.svelte-1qscmce{touch-action:none;position:absolute;inset:4px;overflow:hidden}.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__opt:where(.svelte-1qscmce),.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__group:where(.svelte-1qscmce){position:absolute;top:0;left:0;right:0}.sv-listbox__sb.svelte-1qscmce{z-index:2;width:10px;position:absolute;top:4px;bottom:4px;right:2px}.sv-listbox__thumb.svelte-1qscmce{background:color-mix(in srgb, currentColor 26%, transparent);cursor:default;touch-action:none;border-radius:4px;min-height:24px;position:absolute;top:0;left:2px;right:2px}.sv-listbox__thumb.svelte-1qscmce:hover,.sv-listbox__thumb.is-dragging.svelte-1qscmce{background:color-mix(in srgb, currentColor 42%, transparent)}.sv-listbox__opt.svelte-1qscmce{box-sizing:border-box;cursor:pointer;font-size:var(--_fs,13px);border-radius:6px;flex:none;align-items:center;gap:8px;padding:0 10px;display:flex}.sv-listbox__opt.is-active.svelte-1qscmce{background:var(--sg-row-hover-bg,#f1f5f9)}.sv-listbox__opt.is-selected.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 14%, transparent);color:var(--_accent);font-weight:600}.sv-listbox__opt.is-selected.is-active.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox__opt.is-disabled.svelte-1qscmce{opacity:.4;cursor:not-allowed}.sv-listbox__group.svelte-1qscmce{box-sizing:border-box;text-transform:uppercase;letter-spacing:.04em;color:var(--sg-muted,#94a3b8);align-items:flex-end;padding:8px 10px 3px;font-size:10.5px;font-weight:700;display:flex}.sv-listbox__check.svelte-1qscmce{text-align:center;width:14px;color:var(--_accent)}.sv-listbox__label.svelte-1qscmce{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.sv-listbox__hint.svelte-1qscmce{color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;flex:none;margin-inline-start:8px;font-size:.9em}.sv-listbox__box.svelte-1qscmce{box-sizing:border-box;border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));background:var(--sg-input-bg,#fff);border-radius:3px;flex:none;width:14px;height:14px;position:relative}.sv-listbox__box.is-on.svelte-1qscmce{background:var(--_accent);border-color:var(--_accent)}.sv-listbox__box.is-on.svelte-1qscmce:after{content:\"\";border:solid var(--sg-input-bg,#fff);border-width:0 2px 2px 0;width:3px;height:7px;position:absolute;top:1px;left:4px;transform:rotate(45deg)}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected:where(.svelte-1qscmce){color:inherit;font-weight:inherit;background:0 0}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-active:where(.svelte-1qscmce),.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected.is-active:where(.svelte-1qscmce){background:var(--sg-row-hover-bg,#f1f5f9)}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["grid"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["grid"]=q["grid"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="grid:GridMenus-DGR1VkZL.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"grid:GridMenus-DGR1VkZL.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
1
+ (function(){try{var c=".sv-listbox.svelte-1qscmce{--_accent:var(--sg-accent,#2563eb);background:var(--sg-input-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));border-radius:var(--sg-radius,8px);--_fs:13px;outline:none;width:220px;margin:0;list-style:none}.sv-listbox.svelte-1qscmce:not(.is-virtual){max-height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:4px;overflow-y:auto}.sv-listbox.is-virtual.svelte-1qscmce{height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:0;position:relative;overflow:hidden}.sv-listbox.is-block.svelte-1qscmce{width:100%}.sv-listbox--sm.svelte-1qscmce{--_fs:12px}.sv-listbox--lg.svelte-1qscmce{--_fs:15px}.sv-listbox.svelte-1qscmce:focus-visible{border-color:var(--_accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox.is-invalid.svelte-1qscmce{border-color:var(--sg-danger,#dc2626)}.sv-listbox.is-invalid.svelte-1qscmce:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-danger,#dc2626) 22%, transparent)}.sv-listbox__vp.svelte-1qscmce{touch-action:none;position:absolute;inset:4px;overflow:hidden}.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__opt:where(.svelte-1qscmce),.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__group:where(.svelte-1qscmce){position:absolute;top:0;left:0;right:0}.sv-listbox__sb.svelte-1qscmce{z-index:2;width:10px;position:absolute;top:4px;bottom:4px;right:2px}.sv-listbox__thumb.svelte-1qscmce{background:color-mix(in srgb, currentColor 26%, transparent);cursor:default;touch-action:none;border-radius:4px;min-height:24px;position:absolute;top:0;left:2px;right:2px}.sv-listbox__thumb.svelte-1qscmce:hover,.sv-listbox__thumb.is-dragging.svelte-1qscmce{background:color-mix(in srgb, currentColor 42%, transparent)}.sv-listbox__opt.svelte-1qscmce{box-sizing:border-box;cursor:pointer;font-size:var(--_fs,13px);border-radius:6px;flex:none;align-items:center;gap:8px;padding:0 10px;display:flex}.sv-listbox__opt.is-active.svelte-1qscmce{background:var(--sg-row-hover-bg,#f1f5f9)}.sv-listbox__opt.is-selected.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 14%, transparent);color:var(--_accent);font-weight:600}.sv-listbox__opt.is-selected.is-active.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox__opt.is-disabled.svelte-1qscmce{opacity:.4;cursor:not-allowed}.sv-listbox__group.svelte-1qscmce{box-sizing:border-box;text-transform:uppercase;letter-spacing:.04em;color:var(--sg-muted,#94a3b8);align-items:flex-end;padding:8px 10px 3px;font-size:10.5px;font-weight:700;display:flex}.sv-listbox__check.svelte-1qscmce{text-align:center;width:14px;color:var(--_accent)}.sv-listbox__label.svelte-1qscmce{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.sv-listbox__hint.svelte-1qscmce{color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;flex:none;margin-inline-start:8px;font-size:.9em}.sv-listbox__box.svelte-1qscmce{box-sizing:border-box;border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));background:var(--sg-input-bg,#fff);border-radius:3px;flex:none;width:14px;height:14px;position:relative}.sv-listbox__box.is-on.svelte-1qscmce{background:var(--_accent);border-color:var(--_accent)}.sv-listbox__box.is-on.svelte-1qscmce:after{content:\"\";border:solid var(--sg-input-bg,#fff);border-width:0 2px 2px 0;width:3px;height:7px;position:absolute;top:1px;left:4px;transform:rotate(45deg)}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected:where(.svelte-1qscmce){color:inherit;font-weight:inherit;background:0 0}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-active:where(.svelte-1qscmce),.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected.is-active:where(.svelte-1qscmce){background:var(--sg-row-hover-bg,#f1f5f9)}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["grid"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["grid"]=q["grid"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="grid:GridMenus-DAOBZsUn.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"grid:GridMenus-DAOBZsUn.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
2
  import { $ as e, A as t, B as n, E as r, G as i, H as a, J as o, L as s, M as c, N as l, O as u, P as d, Q as f, R as p, S as m, T as h, W as g, X as _, Y as v, Z as y, _ as b, a as x, at as S, b as C, c as w, ct as T, d as E, et as D, f as O, g as k, it as A, j, k as M, l as N, lt as P, m as F, n as I, nt as L, o as ee, ot as te, p as R, q as ne, rt as z, s as re, st as ie, u as ae, v as oe, w as se, y as B, z as ce } from "./client-DeNKZvIV.js";
3
3
  import { E as le, S as ue, T as de, h as fe, r as pe, u as me, w as he } from "./SvGrid.helpers-DovOhyhU.js";
4
4
  import { i as V, r as H } from "./grid-extension.svelte-B_gzYJQQ.js";
@@ -1100,10 +1100,10 @@ function Nt(a, s) {
1100
1100
  (n(je) || n(X) || n(Pe) || n(Z)) && e(kn);
1101
1101
  });
1102
1102
  var An = y(On, 2), jn = (e) => {
1103
- let r = L(() => n(je)), i = L(() => n(Q).find((e) => e.id === n(r))), a = L(() => n(i)?.getCanSort?.() ?? !1), c = L(() => n(i) ? H()?.sortLabels?.(n(i).columnDef) : null), f = L(() => !!H()?.lockColumn?.(d(), n(r))), b = L(() => (n(i)?.columnDef.field != null || n(i)?.columnDef.customFilter != null) && n(i)?.columnDef.filterable !== !1), x = L(() => d().columnMenuTab);
1104
- var S = bt();
1105
- let w;
1106
- var E = o(S), D = (e) => {
1103
+ let r = L(() => n(je)), i = L(() => n(Q).find((e) => e.id === n(r))), a = L(() => n(i)?.getCanSort?.() ?? !1), c = L(() => n(i) ? H()?.sortLabels?.(n(i).columnDef) : null), f = L(() => H()?.lockColumn?.(d(), n(r))), b = L(() => n(f) === !0), x = L(() => (n(i)?.columnDef.field != null || n(i)?.columnDef.customFilter != null) && n(i)?.columnDef.filterable !== !1), S = L(() => d().columnMenuTab);
1104
+ var w = bt();
1105
+ let E;
1106
+ var D = o(w), O = (e) => {
1107
1107
  var r = ct(), i = o(r);
1108
1108
  let a;
1109
1109
  var s = _(i, !0), c = y(i, 2), l = (e) => {
@@ -1111,25 +1111,25 @@ function Nt(a, s) {
1111
1111
  let i;
1112
1112
  var a = _(r, !0);
1113
1113
  g(() => {
1114
- i = C(r, 1, "sv-grid-menu-tab", null, i, { "is-active": n(x) === "filter" }), R(r, "aria-selected", n(x) === "filter"), t(a, n(q).menuTabFilter);
1114
+ i = C(r, 1, "sv-grid-menu-tab", null, i, { "is-active": n(S) === "filter" }), R(r, "aria-selected", n(S) === "filter"), t(a, n(q).menuTabFilter);
1115
1115
  }), p("click", r, () => d().columnMenuTab = "filter"), j(e, r);
1116
1116
  };
1117
1117
  u(c, (e) => {
1118
- n(b) && n(Ie) && e(l);
1118
+ n(x) && n(Ie) && e(l);
1119
1119
  });
1120
1120
  var f = y(c, 2);
1121
1121
  let m;
1122
1122
  var h = _(f, !0);
1123
1123
  T(r), g(() => {
1124
- a = C(i, 1, "sv-grid-menu-tab", null, a, { "is-active": n(x) === "general" }), R(i, "aria-selected", n(x) === "general"), t(s, n(q).menuTabGeneral), m = C(f, 1, "sv-grid-menu-tab", null, m, { "is-active": n(x) === "columns" }), R(f, "aria-selected", n(x) === "columns"), t(h, n(q).menuTabColumns);
1124
+ a = C(i, 1, "sv-grid-menu-tab", null, a, { "is-active": n(S) === "general" }), R(i, "aria-selected", n(S) === "general"), t(s, n(q).menuTabGeneral), m = C(f, 1, "sv-grid-menu-tab", null, m, { "is-active": n(S) === "columns" }), R(f, "aria-selected", n(S) === "columns"), t(h, n(q).menuTabColumns);
1125
1125
  }), p("click", i, () => d().columnMenuTab = "general"), p("click", f, () => d().columnMenuTab = "columns"), j(e, r);
1126
1126
  };
1127
- u(E, (e) => {
1128
- n(Le) && e(D);
1127
+ u(D, (e) => {
1128
+ n(Le) && e(O);
1129
1129
  });
1130
- var O = y(E, 2), k = (e) => {
1130
+ var k = y(D, 2), A = (e) => {
1131
1131
  l(e, () => n(r));
1132
- }, A = (e) => {
1132
+ }, P = (e) => {
1133
1133
  let r = L(() => n(Re).getAllColumns());
1134
1134
  var i = lt(), a = v(i), o = _(a, !0), s = y(a, 2);
1135
1135
  {
@@ -1157,7 +1157,7 @@ function Nt(a, s) {
1157
1157
  });
1158
1158
  }
1159
1159
  g(() => t(o, n(q).menuVisibleColumns)), j(e, i);
1160
- }, P = (e) => {
1160
+ }, F = (e) => {
1161
1161
  var i = yt(), l = v(i), m = (e) => {
1162
1162
  var i = ut(), a = v(i), l = o(a), u = o(l);
1163
1163
  M(u, () => s.icon, () => "sort-asc"), T(l);
@@ -1177,7 +1177,7 @@ function Nt(a, s) {
1177
1177
  u(l, (e) => {
1178
1178
  n(a) && e(m);
1179
1179
  });
1180
- var b = y(l, 2), x = (e) => {
1180
+ var x = y(l, 2), S = (e) => {
1181
1181
  let i = L(() => n(ze)(n(r)));
1182
1182
  var a = dt(), c = y(v(a), 2), l = o(c), u = o(l);
1183
1183
  M(u, () => s.icon, () => "pin-left"), T(l);
@@ -1185,19 +1185,19 @@ function Nt(a, s) {
1185
1185
  T(c);
1186
1186
  var m = y(c, 2), h = o(m), _ = o(h);
1187
1187
  M(_, () => s.icon, () => "pin-right"), T(h);
1188
- var b = y(h);
1188
+ var x = y(h);
1189
1189
  T(m);
1190
- var x = y(m, 2), S = o(x), C = o(S);
1191
- M(C, () => s.icon, () => "unpin"), T(S);
1192
- var w = y(S);
1193
- T(x), g(() => {
1194
- R(c, "aria-disabled", n(i) === "left" || n(f)), t(d, ` ${n(q).menuPinLeft ?? ""}`), R(m, "aria-disabled", n(i) === "right" || n(f)), t(b, ` ${n(q).menuPinRight ?? ""}`), R(x, "aria-disabled", !n(i) || n(f)), t(w, ` ${n(q).menuUnpin ?? ""}`);
1195
- }), p("click", c, () => n(Be)(n(r))), p("click", m, () => n(He)(n(r))), p("click", x, () => n(Nt)(n(r))), j(e, a);
1190
+ var S = y(m, 2), C = o(S), w = o(C);
1191
+ M(w, () => s.icon, () => "unpin"), T(C);
1192
+ var E = y(C);
1193
+ T(S), g(() => {
1194
+ R(c, "aria-disabled", n(i) === "left" || n(b)), t(d, ` ${n(q).menuPinLeft ?? ""}`), R(m, "aria-disabled", n(i) === "right" || !!n(f)), t(x, ` ${n(q).menuPinRight ?? ""}`), R(S, "aria-disabled", !n(i) || n(b)), t(E, ` ${n(q).menuUnpin ?? ""}`);
1195
+ }), p("click", c, () => n(Be)(n(r))), p("click", m, () => n(He)(n(r))), p("click", S, () => n(Nt)(n(r))), j(e, a);
1196
1196
  };
1197
- u(b, (e) => {
1198
- n(r) && e(x);
1197
+ u(x, (e) => {
1198
+ n(r) && e(S);
1199
1199
  });
1200
- var S = y(b, 2), w = (e) => {
1200
+ var w = y(x, 2), E = (e) => {
1201
1201
  let i = L(() => H()?.columnMenuItems?.(d(), n(r)) ?? []);
1202
1202
  var a = ht(), s = y(v(a), 2);
1203
1203
  h(s, 17, () => n(i), (e) => e.key, (e, r) => {
@@ -1222,26 +1222,26 @@ function Nt(a, s) {
1222
1222
  n($)(), n(r).run();
1223
1223
  }), j(e, i);
1224
1224
  }), j(e, a);
1225
- }, E = L(() => n(r) && H()?.columnMenuItems);
1226
- u(S, (e) => {
1227
- n(E) && e(w);
1225
+ }, D = L(() => n(r) && H()?.columnMenuItems);
1226
+ u(w, (e) => {
1227
+ n(D) && e(E);
1228
1228
  });
1229
- var D = y(S, 4), O = (e) => {
1229
+ var O = y(w, 4), k = (e) => {
1230
1230
  var i = gt(), a = o(i), c = o(a);
1231
1231
  M(c, () => s.icon, () => "autosize"), T(a);
1232
1232
  var l = y(a);
1233
1233
  T(i), g(() => t(l, ` ${n(q).menuAutosize ?? ""}`)), p("click", i, () => {
1234
1234
  n(Jt)(n(r)), n($)();
1235
1235
  }), j(e, i);
1236
- }, k = L(() => d().columnResizable(n(r)));
1237
- u(D, (e) => {
1238
- n(k) && e(O);
1236
+ }, A = L(() => d().columnResizable(n(r)));
1237
+ u(O, (e) => {
1238
+ n(A) && e(k);
1239
1239
  });
1240
- var A = y(D, 2), N = o(A), P = o(N);
1241
- M(P, () => s.icon, () => "autosize"), T(N);
1242
- var F = y(N);
1243
- T(A);
1244
- var I = y(A, 2), te = (e) => {
1240
+ var N = y(O, 2), P = o(N), F = o(P);
1241
+ M(F, () => s.icon, () => "autosize"), T(P);
1242
+ var I = y(P);
1243
+ T(N);
1244
+ var te = y(N, 2), ne = (e) => {
1245
1245
  var i = _t(), a = y(v(i), 2), c = o(a), l = o(c);
1246
1246
  M(l, () => s.icon, () => "group"), T(c);
1247
1247
  var u = y(c);
@@ -1253,10 +1253,10 @@ function Nt(a, s) {
1253
1253
  R(a, "aria-disabled", e), t(u, ` ${n(q).menuGroupBy ?? ""}`), R(d, "aria-disabled", r), t(h, ` ${n(q).menuRemoveGrouping ?? ""}`);
1254
1254
  }, [() => n(Ft).includes(n(r)), () => !n(Ft).includes(n(r))]), p("click", a, () => pe(n(r))), p("click", d, () => ve(n(r))), j(e, i);
1255
1255
  };
1256
- u(I, (e) => {
1257
- n(ke) && e(te);
1256
+ u(te, (e) => {
1257
+ n(ke) && e(ne);
1258
1258
  });
1259
- var ne = y(I, 4), z = (e) => {
1259
+ var z = y(te, 4), ie = (e) => {
1260
1260
  var r = vt();
1261
1261
  let i;
1262
1262
  var a = o(r), c = o(a);
@@ -1266,25 +1266,25 @@ function Nt(a, s) {
1266
1266
  i = C(r, 1, "sv-grid-menu-item", null, i, { "is-open": n(Z) !== null }), R(r, "aria-expanded", n(Z) !== null), t(l, ` ${n(q).menuChooseColumns ?? ""} `);
1267
1267
  }), p("click", r, (e) => ee(e)), j(e, r);
1268
1268
  };
1269
- u(ne, (e) => {
1270
- n(Le) || e(z);
1269
+ u(z, (e) => {
1270
+ n(Le) || e(ie);
1271
1271
  });
1272
- var ie = y(ne, 2), oe = o(ie), se = o(oe);
1273
- M(se, () => s.icon, () => "reset"), T(oe);
1274
- var B = y(oe);
1275
- T(ie), g(() => {
1276
- t(F, ` ${n(q).menuAutosizeAll ?? ""}`), t(B, ` ${n(q).menuResetColumns ?? ""}`);
1277
- }), p("click", A, () => {
1272
+ var oe = y(z, 2), se = o(oe), B = o(se);
1273
+ M(B, () => s.icon, () => "reset"), T(se);
1274
+ var ce = y(se);
1275
+ T(oe), g(() => {
1276
+ t(I, ` ${n(q).menuAutosizeAll ?? ""}`), t(ce, ` ${n(q).menuResetColumns ?? ""}`);
1277
+ }), p("click", N, () => {
1278
1278
  n(Yt)(), n($)();
1279
- }), p("click", ie, () => {
1279
+ }), p("click", oe, () => {
1280
1280
  n(Xt)(), n($)();
1281
1281
  }), j(e, i);
1282
1282
  };
1283
- u(O, (e) => {
1284
- n(Le) && n(x) === "filter" && n(b) && n(Ie) ? e(k) : n(Le) && n(x) === "columns" ? e(A, 1) : e(P, -1);
1285
- }), T(S), m(S, (e, t) => De?.(e, t), () => ({ close: n($) })), g(() => {
1286
- w = C(S, 1, "sv-grid-menu sv-grid-column-menu", null, w, { "sv-grid-menu--sheet": n(N) }), R(S, "data-svgrid-menu", d().gridDomId), B(S, `left: ${n(Me).x}px; top: ${n(Me).y}px; max-height: calc(100vh - ${n(Me).y}px - 12px);`);
1287
- }), ce("click", S, qt, !0), j(e, S);
1283
+ u(k, (e) => {
1284
+ n(Le) && n(S) === "filter" && n(x) && n(Ie) ? e(A) : n(Le) && n(S) === "columns" ? e(P, 1) : e(F, -1);
1285
+ }), T(w), m(w, (e, t) => De?.(e, t), () => ({ close: n($) })), g(() => {
1286
+ E = C(w, 1, "sv-grid-menu sv-grid-column-menu", null, E, { "sv-grid-menu--sheet": n(N) }), R(w, "data-svgrid-menu", d().gridDomId), B(w, `left: ${n(Me).x}px; top: ${n(Me).y}px; max-height: calc(100vh - ${n(Me).y}px - 12px);`);
1287
+ }), ce("click", w, qt, !0), j(e, w);
1288
1288
  };
1289
1289
  u(An, (e) => {
1290
1290
  n(je) && e(jn);
@@ -1,4 +1,4 @@
1
- (function(){try{var c=".sv-pin-split.svelte-3uth74{top:0;z-index:50;pointer-events:none;width:0;position:absolute;inset-inline-start:0}.sv-pin-split.is-editing.svelte-3uth74{display:none}.sv-pin-split-line.svelte-3uth74{top:0;bottom:0;background:color-mix(in srgb, var(--sg-fg,#0f172a) 18%, transparent);width:2px;transition:background-color .12s;position:absolute;inset-inline-start:calc(var(--x) - 1px)}.sv-pin-split-hit.svelte-3uth74{bottom:0;cursor:col-resize;pointer-events:auto;touch-action:none;outline:none;width:8px;position:absolute;inset-inline-start:max(0px, calc(var(--x) - 4px))}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):hover) .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):focus-visible) .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){width:3px;inset-inline-start:calc(var(--x) - 1.5px)}.sv-pin-split-ghost.svelte-3uth74{border-inline-start:2px dashed color-mix(in srgb, var(--sg-accent,#2563eb) 50%, transparent);width:0;position:absolute;top:0;bottom:0}.sv-pin-split-tip.svelte-3uth74{top:6px;background:var(--sg-fg,#0f172a);color:var(--sg-bg,#fff);white-space:nowrap;border-radius:6px;padding:3px 8px;font-size:12px;position:absolute;inset-inline-start:calc(var(--x) + 8px)}@media (forced-colors:active){.sv-pin-split-line.svelte-3uth74,.sv-pin-split-ghost.svelte-3uth74{forced-color-adjust:none;background:canvastext;border-color:highlight}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):hover) .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):focus-visible) .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split-tip.svelte-3uth74{border:1px solid canvastext}}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["grid"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["grid"]=q["grid"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="grid:PinSplitter-BbQwf4Eh.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"grid:PinSplitter-BbQwf4Eh.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
1
+ (function(){try{var c=".sv-pin-split.svelte-3uth74{top:0;z-index:50;pointer-events:none;width:0;position:absolute;inset-inline-start:0}.sv-pin-split.is-editing.svelte-3uth74{display:none}.sv-pin-split-line.svelte-3uth74{top:0;bottom:0;background:color-mix(in srgb, var(--sg-fg,#0f172a) 18%, transparent);width:2px;transition:background-color .12s;position:absolute;inset-inline-start:calc(var(--x) - 1px)}.sv-pin-split-hit.svelte-3uth74{bottom:0;cursor:col-resize;pointer-events:auto;touch-action:none;outline:none;width:8px;position:absolute;inset-inline-start:max(0px, calc(var(--x) - 4px))}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):hover) .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):focus-visible) .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){width:3px;inset-inline-start:calc(var(--x) - 1.5px)}.sv-pin-split-ghost.svelte-3uth74{border-inline-start:2px dashed color-mix(in srgb, var(--sg-accent,#2563eb) 50%, transparent);width:0;position:absolute;top:0;bottom:0}.sv-pin-split-tip.svelte-3uth74{top:6px;background:var(--sg-fg,#0f172a);color:var(--sg-bg,#fff);white-space:nowrap;border-radius:6px;padding:3px 8px;font-size:12px;position:absolute;inset-inline-start:calc(var(--x) + 8px)}@media (forced-colors:active){.sv-pin-split-line.svelte-3uth74,.sv-pin-split-ghost.svelte-3uth74{forced-color-adjust:none;background:canvastext;border-color:highlight}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):hover) .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):focus-visible) .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split-tip.svelte-3uth74{border:1px solid canvastext}}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["grid"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["grid"]=q["grid"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="grid:PinSplitter-DfJfxMl4.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"grid:PinSplitter-DfJfxMl4.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
2
  import { $ as e, A as t, B as n, G as r, J as i, L as a, M as o, N as s, O as c, R as l, W as u, X as ee, Y as d, Z as f, at as p, b as m, ct as te, et as h, j as g, n as _, nt as v, o as ne, ot as y, p as b, y as x, z as S } from "./client-DeNKZvIV.js";
3
3
  import { r as C } from "./grid-extension.svelte-B_gzYJQQ.js";
4
4
  import "./sv-grid-element.js";
@@ -29,7 +29,7 @@ function D(a, s) {
29
29
  let D = _(s, "ctrl", 7), O = v(() => new Set(D().effectivePinning.right)), k = v(() => D().allColumns.filter((e) => !n(O).has(e.id))), A = v(() => new Set(D().effectivePinning.left)), j = v(() => n(k).filter((e) => n(A).has(e.id)).length), M = v(() => w(D().systemColumnsWidth ?? 0, n(k).map((e) => D().getColumnWidth(e.id)))), N = v(() => n(M)[n(j)] ?? 0), P = v(() => D().hasHorizontalOverflow ? 16 : 0), F = v(() => {
30
30
  let e = C()?.lockColumn, t = 0;
31
31
  if (e) for (let r of n(k)) {
32
- if (!n(A).has(r.id) || !e(D(), r.id)) break;
32
+ if (!n(A).has(r.id) || e(D(), r.id) !== !0) break;
33
33
  t += 1;
34
34
  }
35
35
  return t;
@@ -42,13 +42,13 @@ function D(a, s) {
42
42
  return e.clientWidth - t - 120;
43
43
  }
44
44
  let z = () => !!D().scrollContainer && getComputedStyle(D().scrollContainer).direction === "rtl";
45
- function B(e) {
45
+ function ae(e) {
46
46
  let t = D().scrollContainer;
47
47
  if (!t) return e.clientX;
48
48
  let n = t.getBoundingClientRect();
49
49
  return z() ? n.right - e.clientX : e.clientX - n.left;
50
50
  }
51
- function V(e) {
51
+ function B(e) {
52
52
  if (e === n(j)) return;
53
53
  let t = n(k).map((e) => e.id), r = new Set(t), i = [...D().columnPinning.left.filter((e) => !r.has(e)), ...t.slice(0, e)], a = D().grid.getAllColumns().map((e) => e.id), o = D().userColumnOrder ?? [], s = o.length ? [...o, ...a.filter((e) => !o.includes(e))] : a, c = E(s, D().allColumns.map((e) => e.id));
54
54
  c.some((e, t) => e !== s[t]) && D().setColumnOrderInternal(c), D().columnPinning = {
@@ -56,18 +56,18 @@ function D(a, s) {
56
56
  right: [...D().columnPinning.right]
57
57
  };
58
58
  }
59
- let H = (e) => document.elementsFromPoint?.(e.clientX, e.clientY).find((e) => !e.closest(".sv-pin-split"))?.closest(".sv-grid-placeholder-row button"), U = h(!1);
60
- function W(t) {
61
- e(U, !0);
59
+ let V = (e) => document.elementsFromPoint?.(e.clientX, e.clientY).find((e) => !e.closest(".sv-pin-split"))?.closest(".sv-grid-placeholder-row button"), H = h(!1);
60
+ function U(t) {
61
+ e(H, !0);
62
62
  let n = (r) => {
63
- t.isConnected && t.contains(r.target) || (e(U, !1), window.removeEventListener("pointermove", n, !0));
63
+ t.isConnected && t.contains(r.target) || (e(H, !1), window.removeEventListener("pointermove", n, !0));
64
64
  };
65
65
  window.addEventListener("pointermove", n, !0);
66
66
  }
67
- function G(t) {
67
+ function W(t) {
68
68
  if (t.button !== 0) return;
69
69
  t.preventDefault();
70
- let r = H(t);
70
+ let r = V(t);
71
71
  if (r) return r.click();
72
72
  t.stopPropagation();
73
73
  let i = D().scrollContainer;
@@ -83,56 +83,60 @@ function D(a, s) {
83
83
  };
84
84
  return window.addEventListener("keydown", t, !0), () => window.removeEventListener("keydown", t, !0);
85
85
  });
86
- function K(t) {
86
+ function G(t) {
87
87
  if (!n(L)) {
88
- let e = H(t);
89
- e && !n(U) && W(e);
88
+ let e = V(t);
89
+ e && !n(H) && U(e);
90
90
  return;
91
91
  }
92
- let r = B(t);
92
+ let r = ae(t);
93
93
  e(L, {
94
94
  x: r,
95
95
  count: Math.max(n(F), T(n(M), r, n(k).length - 1, R()))
96
96
  }, !0);
97
97
  }
98
- function q() {
98
+ function K() {
99
99
  if (!n(L)) return;
100
100
  let t = n(L).count;
101
- e(L, null), V(t);
101
+ e(L, null), B(t);
102
102
  }
103
- function J(e) {
103
+ function q(e) {
104
104
  let t = n(j), r = z() ? "ArrowLeft" : "ArrowRight";
105
105
  if (e.key === r) t = n(j) + 1;
106
106
  else if (e.key === "ArrowRight" || e.key === "ArrowLeft") t = n(j) - 1;
107
107
  else if (e.key === "Home") t = n(F);
108
108
  else return;
109
- e.preventDefault(), e.stopPropagation(), !(t < n(F) || t > n(k).length - 1) && (t > n(j) && (n(M)[t] ?? Infinity) > R() || V(t));
109
+ e.preventDefault(), e.stopPropagation(), !(t < n(F) || t > n(k).length - 1) && (t > n(j) && (n(M)[t] ?? Infinity) > R() || B(t));
110
110
  }
111
- let Y = h(null), X = h("");
111
+ let J = h(null), Y = h(""), X = h(0);
112
112
  r(() => {
113
- let t = D().scrollContainer, r = n(Y);
113
+ let t = D().scrollContainer, r = n(J);
114
114
  if (!t || !r) return;
115
115
  let i = 0, a = () => {
116
116
  i = 0;
117
- let n = t.querySelectorAll(".sv-grid-placeholder-failed");
118
- if (!n.length) return void e(X, "");
119
- let a = r.getBoundingClientRect().top, o = a + (D().headerHeight ?? 0), s = "";
120
- for (let e of n) {
121
- let t = e.getBoundingClientRect(), n = Math.max(t.top, o) - a, r = t.bottom - a;
122
- r > n && (s += `,#000 ${n}px,#0000 ${n}px ${r}px,#000 ${r}px`);
117
+ let n = r.getBoundingClientRect(), a = t.querySelector(".sv-grid-foot")?.getBoundingClientRect();
118
+ e(X, a && a.height ? Math.max(0, n.bottom - a.top) : 0, !0);
119
+ let o = t.querySelectorAll(".sv-grid-placeholder-failed");
120
+ if (!o.length) return void e(Y, "");
121
+ let s = n.top, c = s + (D().headerHeight ?? 0), l = "";
122
+ for (let e of o) {
123
+ let t = e.getBoundingClientRect(), n = Math.max(t.top, c) - s, r = t.bottom - s;
124
+ r > n && (l += `,#000 ${n}px,#0000 ${n}px ${r}px,#000 ${r}px`);
123
125
  }
124
- e(X, s && `linear-gradient(#000${s})`, !0);
126
+ e(Y, l && `linear-gradient(#000${l})`, !0);
125
127
  }, o = () => i ||= requestAnimationFrame(a), s = new MutationObserver(o);
126
- return s.observe(t, {
128
+ s.observe(t, {
127
129
  childList: !0,
128
130
  subtree: !0,
129
131
  attributeFilter: ["class"]
130
- }), t.addEventListener("scroll", o, { passive: !0 }), o(), () => {
131
- cancelAnimationFrame(i), s.disconnect(), t.removeEventListener("scroll", o);
132
+ }), t.addEventListener("scroll", o, { passive: !0 });
133
+ let c = typeof ResizeObserver > "u" ? null : new ResizeObserver(o);
134
+ return c?.observe(t), o(), () => {
135
+ cancelAnimationFrame(i), s.disconnect(), c?.disconnect(), t.removeEventListener("scroll", o);
132
136
  };
133
137
  });
134
- let Z = v(() => n(L) ? n(L).count : n(j)), ae = v(() => n(L) ? n(M)[n(L).count] ?? n(N) : n(N)), Q = v(() => n(Z) === 0 ? n(I).pinSplitterNone : n(Z) === 1 ? n(I).pinSplitterOne : n(I).pinSplitterMany.replace("{count}", String(n(Z))));
135
- var $ = o(), oe = d($), se = (r) => {
138
+ let Z = v(() => n(L) ? n(L).count : n(j)), oe = v(() => n(L) ? n(M)[n(L).count] ?? n(N) : n(N)), Q = v(() => n(Z) === 0 ? n(I).pinSplitterNone : n(Z) === 1 ? n(I).pinSplitterOne : n(I).pinSplitterMany.replace("{count}", String(n(Z))));
139
+ var $ = o(), se = d($), ce = (r) => {
136
140
  var a = ie();
137
141
  let o, s;
138
142
  var p = i(a), h = (e) => {
@@ -148,7 +152,7 @@ function D(a, s) {
148
152
  });
149
153
  var _ = f(p, 2);
150
154
  let v;
151
- ne(_, (t) => e(Y, t), () => n(Y));
155
+ ne(_, (t) => e(J, t), () => n(J));
152
156
  var y = f(_, 2);
153
157
  let C;
154
158
  te(a), u(() => {
@@ -156,16 +160,17 @@ function D(a, s) {
156
160
  "is-dragging": !!n(L),
157
161
  "is-editing": !!D().editingCell
158
162
  }), s = x(a, "", s, {
159
- "--x": `${n(ae)}px`,
163
+ "--x": `${n(oe)}px`,
160
164
  bottom: `${n(P)}px`
161
- }), v = x(_, "", v, { "mask-image": n(X) || void 0 }), b(y, "aria-label", n(I).pinSplitterLabel), b(y, "aria-valuemin", n(F)), b(y, "aria-valuemax", n(k).length - 1), b(y, "aria-valuenow", n(Z)), b(y, "aria-valuetext", n(Q)), b(y, "title", n(I).pinSplitterHint), C = x(y, "", C, {
165
+ }), v = x(_, "", v, { "mask-image": n(Y) || void 0 }), b(y, "aria-label", n(I).pinSplitterLabel), b(y, "aria-valuemin", n(F)), b(y, "aria-valuemax", n(k).length - 1), b(y, "aria-valuenow", n(Z)), b(y, "aria-valuetext", n(Q)), b(y, "title", n(I).pinSplitterHint), C = x(y, "", C, {
162
166
  top: `${D().headerHeight ?? 0}px`,
163
- "pointer-events": n(U) ? "none" : void 0
167
+ bottom: `${n(X)}px`,
168
+ "pointer-events": n(H) ? "none" : void 0
164
169
  });
165
- }), l("pointerdown", y, G), l("pointermove", y, K), l("pointerup", y, q), S("pointercancel", y, () => e(L, null)), S("lostpointercapture", y, q), l("keydown", y, J), g(r, a);
170
+ }), l("pointerdown", y, W), l("pointermove", y, G), l("pointerup", y, K), S("pointercancel", y, () => e(L, null)), S("lostpointercapture", y, K), l("keydown", y, q), g(r, a);
166
171
  };
167
- c(oe, (e) => {
168
- !D().isNarrowResponsive && n(k).length > 1 && e(se);
172
+ c(se, (e) => {
173
+ !D().isNarrowResponsive && n(k).length > 1 && e(ce);
169
174
  }), g(a, $), p();
170
175
  }
171
176
  a([
@@ -1,4 +1,4 @@
1
- (function(){try{var c=".sv-listbox.svelte-1qscmce{--_accent:var(--sg-accent,#2563eb);background:var(--sg-input-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));border-radius:var(--sg-radius,8px);--_fs:13px;outline:none;width:220px;margin:0;list-style:none}.sv-listbox.svelte-1qscmce:not(.is-virtual){max-height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:4px;overflow-y:auto}.sv-listbox.is-virtual.svelte-1qscmce{height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:0;position:relative;overflow:hidden}.sv-listbox.is-block.svelte-1qscmce{width:100%}.sv-listbox--sm.svelte-1qscmce{--_fs:12px}.sv-listbox--lg.svelte-1qscmce{--_fs:15px}.sv-listbox.svelte-1qscmce:focus-visible{border-color:var(--_accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox.is-invalid.svelte-1qscmce{border-color:var(--sg-danger,#dc2626)}.sv-listbox.is-invalid.svelte-1qscmce:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-danger,#dc2626) 22%, transparent)}.sv-listbox__vp.svelte-1qscmce{touch-action:none;position:absolute;inset:4px;overflow:hidden}.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__opt:where(.svelte-1qscmce),.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__group:where(.svelte-1qscmce){position:absolute;top:0;left:0;right:0}.sv-listbox__sb.svelte-1qscmce{z-index:2;width:10px;position:absolute;top:4px;bottom:4px;right:2px}.sv-listbox__thumb.svelte-1qscmce{background:color-mix(in srgb, currentColor 26%, transparent);cursor:default;touch-action:none;border-radius:4px;min-height:24px;position:absolute;top:0;left:2px;right:2px}.sv-listbox__thumb.svelte-1qscmce:hover,.sv-listbox__thumb.is-dragging.svelte-1qscmce{background:color-mix(in srgb, currentColor 42%, transparent)}.sv-listbox__opt.svelte-1qscmce{box-sizing:border-box;cursor:pointer;font-size:var(--_fs,13px);border-radius:6px;flex:none;align-items:center;gap:8px;padding:0 10px;display:flex}.sv-listbox__opt.is-active.svelte-1qscmce{background:var(--sg-row-hover-bg,#f1f5f9)}.sv-listbox__opt.is-selected.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 14%, transparent);color:var(--_accent);font-weight:600}.sv-listbox__opt.is-selected.is-active.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox__opt.is-disabled.svelte-1qscmce{opacity:.4;cursor:not-allowed}.sv-listbox__group.svelte-1qscmce{box-sizing:border-box;text-transform:uppercase;letter-spacing:.04em;color:var(--sg-muted,#94a3b8);align-items:flex-end;padding:8px 10px 3px;font-size:10.5px;font-weight:700;display:flex}.sv-listbox__check.svelte-1qscmce{text-align:center;width:14px;color:var(--_accent)}.sv-listbox__label.svelte-1qscmce{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.sv-listbox__hint.svelte-1qscmce{color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;flex:none;margin-inline-start:8px;font-size:.9em}.sv-listbox__box.svelte-1qscmce{box-sizing:border-box;border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));background:var(--sg-input-bg,#fff);border-radius:3px;flex:none;width:14px;height:14px;position:relative}.sv-listbox__box.is-on.svelte-1qscmce{background:var(--_accent);border-color:var(--_accent)}.sv-listbox__box.is-on.svelte-1qscmce:after{content:\"\";border:solid var(--sg-input-bg,#fff);border-width:0 2px 2px 0;width:3px;height:7px;position:absolute;top:1px;left:4px;transform:rotate(45deg)}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected:where(.svelte-1qscmce){color:inherit;font-weight:inherit;background:0 0}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-active:where(.svelte-1qscmce),.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected.is-active:where(.svelte-1qscmce){background:var(--sg-row-hover-bg,#f1f5f9)}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["shadow"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["shadow"]=q["shadow"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="shadow:GridMenus-Bl11jIy6.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"shadow:GridMenus-Bl11jIy6.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
1
+ (function(){try{var c=".sv-listbox.svelte-1qscmce{--_accent:var(--sg-accent,#2563eb);background:var(--sg-input-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));border-radius:var(--sg-radius,8px);--_fs:13px;outline:none;width:220px;margin:0;list-style:none}.sv-listbox.svelte-1qscmce:not(.is-virtual){max-height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:4px;overflow-y:auto}.sv-listbox.is-virtual.svelte-1qscmce{height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:0;position:relative;overflow:hidden}.sv-listbox.is-block.svelte-1qscmce{width:100%}.sv-listbox--sm.svelte-1qscmce{--_fs:12px}.sv-listbox--lg.svelte-1qscmce{--_fs:15px}.sv-listbox.svelte-1qscmce:focus-visible{border-color:var(--_accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox.is-invalid.svelte-1qscmce{border-color:var(--sg-danger,#dc2626)}.sv-listbox.is-invalid.svelte-1qscmce:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-danger,#dc2626) 22%, transparent)}.sv-listbox__vp.svelte-1qscmce{touch-action:none;position:absolute;inset:4px;overflow:hidden}.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__opt:where(.svelte-1qscmce),.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__group:where(.svelte-1qscmce){position:absolute;top:0;left:0;right:0}.sv-listbox__sb.svelte-1qscmce{z-index:2;width:10px;position:absolute;top:4px;bottom:4px;right:2px}.sv-listbox__thumb.svelte-1qscmce{background:color-mix(in srgb, currentColor 26%, transparent);cursor:default;touch-action:none;border-radius:4px;min-height:24px;position:absolute;top:0;left:2px;right:2px}.sv-listbox__thumb.svelte-1qscmce:hover,.sv-listbox__thumb.is-dragging.svelte-1qscmce{background:color-mix(in srgb, currentColor 42%, transparent)}.sv-listbox__opt.svelte-1qscmce{box-sizing:border-box;cursor:pointer;font-size:var(--_fs,13px);border-radius:6px;flex:none;align-items:center;gap:8px;padding:0 10px;display:flex}.sv-listbox__opt.is-active.svelte-1qscmce{background:var(--sg-row-hover-bg,#f1f5f9)}.sv-listbox__opt.is-selected.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 14%, transparent);color:var(--_accent);font-weight:600}.sv-listbox__opt.is-selected.is-active.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox__opt.is-disabled.svelte-1qscmce{opacity:.4;cursor:not-allowed}.sv-listbox__group.svelte-1qscmce{box-sizing:border-box;text-transform:uppercase;letter-spacing:.04em;color:var(--sg-muted,#94a3b8);align-items:flex-end;padding:8px 10px 3px;font-size:10.5px;font-weight:700;display:flex}.sv-listbox__check.svelte-1qscmce{text-align:center;width:14px;color:var(--_accent)}.sv-listbox__label.svelte-1qscmce{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.sv-listbox__hint.svelte-1qscmce{color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;flex:none;margin-inline-start:8px;font-size:.9em}.sv-listbox__box.svelte-1qscmce{box-sizing:border-box;border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));background:var(--sg-input-bg,#fff);border-radius:3px;flex:none;width:14px;height:14px;position:relative}.sv-listbox__box.is-on.svelte-1qscmce{background:var(--_accent);border-color:var(--_accent)}.sv-listbox__box.is-on.svelte-1qscmce:after{content:\"\";border:solid var(--sg-input-bg,#fff);border-width:0 2px 2px 0;width:3px;height:7px;position:absolute;top:1px;left:4px;transform:rotate(45deg)}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected:where(.svelte-1qscmce){color:inherit;font-weight:inherit;background:0 0}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-active:where(.svelte-1qscmce),.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected.is-active:where(.svelte-1qscmce){background:var(--sg-row-hover-bg,#f1f5f9)}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["shadow"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["shadow"]=q["shadow"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="shadow:GridMenus-D0JHEt5b.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"shadow:GridMenus-D0JHEt5b.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
2
  import { $ as e, A as t, B as n, E as r, G as i, H as a, J as o, L as s, M as c, N as l, O as u, P as d, Q as f, R as p, S as m, T as h, W as g, X as _, Y as v, Z as y, _ as b, a as x, at as S, b as C, c as w, ct as T, d as E, et as D, f as O, g as k, it as A, j, k as M, l as N, lt as P, m as F, n as I, nt as L, o as ee, ot as te, p as R, q as ne, rt as z, s as re, st as ie, u as ae, v as oe, w as se, y as B, z as ce } from "./client-DeNKZvIV.js";
3
3
  import { E as le, S as ue, T as de, h as fe, r as pe, u as me, w as he } from "./SvGrid.helpers-DovOhyhU.js";
4
4
  import { i as V, r as H } from "./grid-extension.svelte-B_gzYJQQ.js";
@@ -1100,10 +1100,10 @@ function Nt(a, s) {
1100
1100
  (n(je) || n(X) || n(Pe) || n(Z)) && e(kn);
1101
1101
  });
1102
1102
  var An = y(On, 2), jn = (e) => {
1103
- let r = L(() => n(je)), i = L(() => n(Q).find((e) => e.id === n(r))), a = L(() => n(i)?.getCanSort?.() ?? !1), c = L(() => n(i) ? H()?.sortLabels?.(n(i).columnDef) : null), f = L(() => !!H()?.lockColumn?.(d(), n(r))), b = L(() => (n(i)?.columnDef.field != null || n(i)?.columnDef.customFilter != null) && n(i)?.columnDef.filterable !== !1), x = L(() => d().columnMenuTab);
1104
- var S = bt();
1105
- let w;
1106
- var E = o(S), D = (e) => {
1103
+ let r = L(() => n(je)), i = L(() => n(Q).find((e) => e.id === n(r))), a = L(() => n(i)?.getCanSort?.() ?? !1), c = L(() => n(i) ? H()?.sortLabels?.(n(i).columnDef) : null), f = L(() => H()?.lockColumn?.(d(), n(r))), b = L(() => n(f) === !0), x = L(() => (n(i)?.columnDef.field != null || n(i)?.columnDef.customFilter != null) && n(i)?.columnDef.filterable !== !1), S = L(() => d().columnMenuTab);
1104
+ var w = bt();
1105
+ let E;
1106
+ var D = o(w), O = (e) => {
1107
1107
  var r = ct(), i = o(r);
1108
1108
  let a;
1109
1109
  var s = _(i, !0), c = y(i, 2), l = (e) => {
@@ -1111,25 +1111,25 @@ function Nt(a, s) {
1111
1111
  let i;
1112
1112
  var a = _(r, !0);
1113
1113
  g(() => {
1114
- i = C(r, 1, "sv-grid-menu-tab", null, i, { "is-active": n(x) === "filter" }), R(r, "aria-selected", n(x) === "filter"), t(a, n(q).menuTabFilter);
1114
+ i = C(r, 1, "sv-grid-menu-tab", null, i, { "is-active": n(S) === "filter" }), R(r, "aria-selected", n(S) === "filter"), t(a, n(q).menuTabFilter);
1115
1115
  }), p("click", r, () => d().columnMenuTab = "filter"), j(e, r);
1116
1116
  };
1117
1117
  u(c, (e) => {
1118
- n(b) && n(Ie) && e(l);
1118
+ n(x) && n(Ie) && e(l);
1119
1119
  });
1120
1120
  var f = y(c, 2);
1121
1121
  let m;
1122
1122
  var h = _(f, !0);
1123
1123
  T(r), g(() => {
1124
- a = C(i, 1, "sv-grid-menu-tab", null, a, { "is-active": n(x) === "general" }), R(i, "aria-selected", n(x) === "general"), t(s, n(q).menuTabGeneral), m = C(f, 1, "sv-grid-menu-tab", null, m, { "is-active": n(x) === "columns" }), R(f, "aria-selected", n(x) === "columns"), t(h, n(q).menuTabColumns);
1124
+ a = C(i, 1, "sv-grid-menu-tab", null, a, { "is-active": n(S) === "general" }), R(i, "aria-selected", n(S) === "general"), t(s, n(q).menuTabGeneral), m = C(f, 1, "sv-grid-menu-tab", null, m, { "is-active": n(S) === "columns" }), R(f, "aria-selected", n(S) === "columns"), t(h, n(q).menuTabColumns);
1125
1125
  }), p("click", i, () => d().columnMenuTab = "general"), p("click", f, () => d().columnMenuTab = "columns"), j(e, r);
1126
1126
  };
1127
- u(E, (e) => {
1128
- n(Le) && e(D);
1127
+ u(D, (e) => {
1128
+ n(Le) && e(O);
1129
1129
  });
1130
- var O = y(E, 2), k = (e) => {
1130
+ var k = y(D, 2), A = (e) => {
1131
1131
  l(e, () => n(r));
1132
- }, A = (e) => {
1132
+ }, P = (e) => {
1133
1133
  let r = L(() => n(Re).getAllColumns());
1134
1134
  var i = lt(), a = v(i), o = _(a, !0), s = y(a, 2);
1135
1135
  {
@@ -1157,7 +1157,7 @@ function Nt(a, s) {
1157
1157
  });
1158
1158
  }
1159
1159
  g(() => t(o, n(q).menuVisibleColumns)), j(e, i);
1160
- }, P = (e) => {
1160
+ }, F = (e) => {
1161
1161
  var i = yt(), l = v(i), m = (e) => {
1162
1162
  var i = ut(), a = v(i), l = o(a), u = o(l);
1163
1163
  M(u, () => s.icon, () => "sort-asc"), T(l);
@@ -1177,7 +1177,7 @@ function Nt(a, s) {
1177
1177
  u(l, (e) => {
1178
1178
  n(a) && e(m);
1179
1179
  });
1180
- var b = y(l, 2), x = (e) => {
1180
+ var x = y(l, 2), S = (e) => {
1181
1181
  let i = L(() => n(ze)(n(r)));
1182
1182
  var a = dt(), c = y(v(a), 2), l = o(c), u = o(l);
1183
1183
  M(u, () => s.icon, () => "pin-left"), T(l);
@@ -1185,19 +1185,19 @@ function Nt(a, s) {
1185
1185
  T(c);
1186
1186
  var m = y(c, 2), h = o(m), _ = o(h);
1187
1187
  M(_, () => s.icon, () => "pin-right"), T(h);
1188
- var b = y(h);
1188
+ var x = y(h);
1189
1189
  T(m);
1190
- var x = y(m, 2), S = o(x), C = o(S);
1191
- M(C, () => s.icon, () => "unpin"), T(S);
1192
- var w = y(S);
1193
- T(x), g(() => {
1194
- R(c, "aria-disabled", n(i) === "left" || n(f)), t(d, ` ${n(q).menuPinLeft ?? ""}`), R(m, "aria-disabled", n(i) === "right" || n(f)), t(b, ` ${n(q).menuPinRight ?? ""}`), R(x, "aria-disabled", !n(i) || n(f)), t(w, ` ${n(q).menuUnpin ?? ""}`);
1195
- }), p("click", c, () => n(Be)(n(r))), p("click", m, () => n(He)(n(r))), p("click", x, () => n(Nt)(n(r))), j(e, a);
1190
+ var S = y(m, 2), C = o(S), w = o(C);
1191
+ M(w, () => s.icon, () => "unpin"), T(C);
1192
+ var E = y(C);
1193
+ T(S), g(() => {
1194
+ R(c, "aria-disabled", n(i) === "left" || n(b)), t(d, ` ${n(q).menuPinLeft ?? ""}`), R(m, "aria-disabled", n(i) === "right" || !!n(f)), t(x, ` ${n(q).menuPinRight ?? ""}`), R(S, "aria-disabled", !n(i) || n(b)), t(E, ` ${n(q).menuUnpin ?? ""}`);
1195
+ }), p("click", c, () => n(Be)(n(r))), p("click", m, () => n(He)(n(r))), p("click", S, () => n(Nt)(n(r))), j(e, a);
1196
1196
  };
1197
- u(b, (e) => {
1198
- n(r) && e(x);
1197
+ u(x, (e) => {
1198
+ n(r) && e(S);
1199
1199
  });
1200
- var S = y(b, 2), w = (e) => {
1200
+ var w = y(x, 2), E = (e) => {
1201
1201
  let i = L(() => H()?.columnMenuItems?.(d(), n(r)) ?? []);
1202
1202
  var a = ht(), s = y(v(a), 2);
1203
1203
  h(s, 17, () => n(i), (e) => e.key, (e, r) => {
@@ -1222,26 +1222,26 @@ function Nt(a, s) {
1222
1222
  n($)(), n(r).run();
1223
1223
  }), j(e, i);
1224
1224
  }), j(e, a);
1225
- }, E = L(() => n(r) && H()?.columnMenuItems);
1226
- u(S, (e) => {
1227
- n(E) && e(w);
1225
+ }, D = L(() => n(r) && H()?.columnMenuItems);
1226
+ u(w, (e) => {
1227
+ n(D) && e(E);
1228
1228
  });
1229
- var D = y(S, 4), O = (e) => {
1229
+ var O = y(w, 4), k = (e) => {
1230
1230
  var i = gt(), a = o(i), c = o(a);
1231
1231
  M(c, () => s.icon, () => "autosize"), T(a);
1232
1232
  var l = y(a);
1233
1233
  T(i), g(() => t(l, ` ${n(q).menuAutosize ?? ""}`)), p("click", i, () => {
1234
1234
  n(Jt)(n(r)), n($)();
1235
1235
  }), j(e, i);
1236
- }, k = L(() => d().columnResizable(n(r)));
1237
- u(D, (e) => {
1238
- n(k) && e(O);
1236
+ }, A = L(() => d().columnResizable(n(r)));
1237
+ u(O, (e) => {
1238
+ n(A) && e(k);
1239
1239
  });
1240
- var A = y(D, 2), N = o(A), P = o(N);
1241
- M(P, () => s.icon, () => "autosize"), T(N);
1242
- var F = y(N);
1243
- T(A);
1244
- var I = y(A, 2), te = (e) => {
1240
+ var N = y(O, 2), P = o(N), F = o(P);
1241
+ M(F, () => s.icon, () => "autosize"), T(P);
1242
+ var I = y(P);
1243
+ T(N);
1244
+ var te = y(N, 2), ne = (e) => {
1245
1245
  var i = _t(), a = y(v(i), 2), c = o(a), l = o(c);
1246
1246
  M(l, () => s.icon, () => "group"), T(c);
1247
1247
  var u = y(c);
@@ -1253,10 +1253,10 @@ function Nt(a, s) {
1253
1253
  R(a, "aria-disabled", e), t(u, ` ${n(q).menuGroupBy ?? ""}`), R(d, "aria-disabled", r), t(h, ` ${n(q).menuRemoveGrouping ?? ""}`);
1254
1254
  }, [() => n(Ft).includes(n(r)), () => !n(Ft).includes(n(r))]), p("click", a, () => pe(n(r))), p("click", d, () => ve(n(r))), j(e, i);
1255
1255
  };
1256
- u(I, (e) => {
1257
- n(ke) && e(te);
1256
+ u(te, (e) => {
1257
+ n(ke) && e(ne);
1258
1258
  });
1259
- var ne = y(I, 4), z = (e) => {
1259
+ var z = y(te, 4), ie = (e) => {
1260
1260
  var r = vt();
1261
1261
  let i;
1262
1262
  var a = o(r), c = o(a);
@@ -1266,25 +1266,25 @@ function Nt(a, s) {
1266
1266
  i = C(r, 1, "sv-grid-menu-item", null, i, { "is-open": n(Z) !== null }), R(r, "aria-expanded", n(Z) !== null), t(l, ` ${n(q).menuChooseColumns ?? ""} `);
1267
1267
  }), p("click", r, (e) => ee(e)), j(e, r);
1268
1268
  };
1269
- u(ne, (e) => {
1270
- n(Le) || e(z);
1269
+ u(z, (e) => {
1270
+ n(Le) || e(ie);
1271
1271
  });
1272
- var ie = y(ne, 2), oe = o(ie), se = o(oe);
1273
- M(se, () => s.icon, () => "reset"), T(oe);
1274
- var B = y(oe);
1275
- T(ie), g(() => {
1276
- t(F, ` ${n(q).menuAutosizeAll ?? ""}`), t(B, ` ${n(q).menuResetColumns ?? ""}`);
1277
- }), p("click", A, () => {
1272
+ var oe = y(z, 2), se = o(oe), B = o(se);
1273
+ M(B, () => s.icon, () => "reset"), T(se);
1274
+ var ce = y(se);
1275
+ T(oe), g(() => {
1276
+ t(I, ` ${n(q).menuAutosizeAll ?? ""}`), t(ce, ` ${n(q).menuResetColumns ?? ""}`);
1277
+ }), p("click", N, () => {
1278
1278
  n(Yt)(), n($)();
1279
- }), p("click", ie, () => {
1279
+ }), p("click", oe, () => {
1280
1280
  n(Xt)(), n($)();
1281
1281
  }), j(e, i);
1282
1282
  };
1283
- u(O, (e) => {
1284
- n(Le) && n(x) === "filter" && n(b) && n(Ie) ? e(k) : n(Le) && n(x) === "columns" ? e(A, 1) : e(P, -1);
1285
- }), T(S), m(S, (e, t) => De?.(e, t), () => ({ close: n($) })), g(() => {
1286
- w = C(S, 1, "sv-grid-menu sv-grid-column-menu", null, w, { "sv-grid-menu--sheet": n(N) }), R(S, "data-svgrid-menu", d().gridDomId), B(S, `left: ${n(Me).x}px; top: ${n(Me).y}px; max-height: calc(100vh - ${n(Me).y}px - 12px);`);
1287
- }), ce("click", S, qt, !0), j(e, S);
1283
+ u(k, (e) => {
1284
+ n(Le) && n(S) === "filter" && n(x) && n(Ie) ? e(A) : n(Le) && n(S) === "columns" ? e(P, 1) : e(F, -1);
1285
+ }), T(w), m(w, (e, t) => De?.(e, t), () => ({ close: n($) })), g(() => {
1286
+ E = C(w, 1, "sv-grid-menu sv-grid-column-menu", null, E, { "sv-grid-menu--sheet": n(N) }), R(w, "data-svgrid-menu", d().gridDomId), B(w, `left: ${n(Me).x}px; top: ${n(Me).y}px; max-height: calc(100vh - ${n(Me).y}px - 12px);`);
1287
+ }), ce("click", w, qt, !0), j(e, w);
1288
1288
  };
1289
1289
  u(An, (e) => {
1290
1290
  n(je) && e(jn);
@@ -1,4 +1,4 @@
1
- (function(){try{var c=".sv-pin-split.svelte-3uth74{top:0;z-index:50;pointer-events:none;width:0;position:absolute;inset-inline-start:0}.sv-pin-split.is-editing.svelte-3uth74{display:none}.sv-pin-split-line.svelte-3uth74{top:0;bottom:0;background:color-mix(in srgb, var(--sg-fg,#0f172a) 18%, transparent);width:2px;transition:background-color .12s;position:absolute;inset-inline-start:calc(var(--x) - 1px)}.sv-pin-split-hit.svelte-3uth74{bottom:0;cursor:col-resize;pointer-events:auto;touch-action:none;outline:none;width:8px;position:absolute;inset-inline-start:max(0px, calc(var(--x) - 4px))}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):hover) .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):focus-visible) .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){width:3px;inset-inline-start:calc(var(--x) - 1.5px)}.sv-pin-split-ghost.svelte-3uth74{border-inline-start:2px dashed color-mix(in srgb, var(--sg-accent,#2563eb) 50%, transparent);width:0;position:absolute;top:0;bottom:0}.sv-pin-split-tip.svelte-3uth74{top:6px;background:var(--sg-fg,#0f172a);color:var(--sg-bg,#fff);white-space:nowrap;border-radius:6px;padding:3px 8px;font-size:12px;position:absolute;inset-inline-start:calc(var(--x) + 8px)}@media (forced-colors:active){.sv-pin-split-line.svelte-3uth74,.sv-pin-split-ghost.svelte-3uth74{forced-color-adjust:none;background:canvastext;border-color:highlight}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):hover) .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):focus-visible) .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split-tip.svelte-3uth74{border:1px solid canvastext}}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["shadow"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["shadow"]=q["shadow"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="shadow:PinSplitter-DNjnUtbi.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"shadow:PinSplitter-DNjnUtbi.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
1
+ (function(){try{var c=".sv-pin-split.svelte-3uth74{top:0;z-index:50;pointer-events:none;width:0;position:absolute;inset-inline-start:0}.sv-pin-split.is-editing.svelte-3uth74{display:none}.sv-pin-split-line.svelte-3uth74{top:0;bottom:0;background:color-mix(in srgb, var(--sg-fg,#0f172a) 18%, transparent);width:2px;transition:background-color .12s;position:absolute;inset-inline-start:calc(var(--x) - 1px)}.sv-pin-split-hit.svelte-3uth74{bottom:0;cursor:col-resize;pointer-events:auto;touch-action:none;outline:none;width:8px;position:absolute;inset-inline-start:max(0px, calc(var(--x) - 4px))}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):hover) .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):focus-visible) .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){width:3px;inset-inline-start:calc(var(--x) - 1.5px)}.sv-pin-split-ghost.svelte-3uth74{border-inline-start:2px dashed color-mix(in srgb, var(--sg-accent,#2563eb) 50%, transparent);width:0;position:absolute;top:0;bottom:0}.sv-pin-split-tip.svelte-3uth74{top:6px;background:var(--sg-fg,#0f172a);color:var(--sg-bg,#fff);white-space:nowrap;border-radius:6px;padding:3px 8px;font-size:12px;position:absolute;inset-inline-start:calc(var(--x) + 8px)}@media (forced-colors:active){.sv-pin-split-line.svelte-3uth74,.sv-pin-split-ghost.svelte-3uth74{forced-color-adjust:none;background:canvastext;border-color:highlight}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):hover) .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):focus-visible) .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split-tip.svelte-3uth74{border:1px solid canvastext}}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["shadow"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["shadow"]=q["shadow"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="shadow:PinSplitter-B4neIssg.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"shadow:PinSplitter-B4neIssg.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
2
  import { $ as e, A as t, B as n, G as r, J as i, L as a, M as o, N as s, O as c, R as l, W as u, X as ee, Y as d, Z as f, at as p, b as m, ct as te, et as h, j as g, n as _, nt as v, o as ne, ot as y, p as b, y as x, z as S } from "./client-DeNKZvIV.js";
3
3
  import { r as C } from "./grid-extension.svelte-B_gzYJQQ.js";
4
4
  import "./sv-grid-shadow-element.js";
@@ -29,7 +29,7 @@ function D(a, s) {
29
29
  let D = _(s, "ctrl", 7), O = v(() => new Set(D().effectivePinning.right)), k = v(() => D().allColumns.filter((e) => !n(O).has(e.id))), A = v(() => new Set(D().effectivePinning.left)), j = v(() => n(k).filter((e) => n(A).has(e.id)).length), M = v(() => w(D().systemColumnsWidth ?? 0, n(k).map((e) => D().getColumnWidth(e.id)))), N = v(() => n(M)[n(j)] ?? 0), P = v(() => D().hasHorizontalOverflow ? 16 : 0), F = v(() => {
30
30
  let e = C()?.lockColumn, t = 0;
31
31
  if (e) for (let r of n(k)) {
32
- if (!n(A).has(r.id) || !e(D(), r.id)) break;
32
+ if (!n(A).has(r.id) || e(D(), r.id) !== !0) break;
33
33
  t += 1;
34
34
  }
35
35
  return t;
@@ -42,13 +42,13 @@ function D(a, s) {
42
42
  return e.clientWidth - t - 120;
43
43
  }
44
44
  let z = () => !!D().scrollContainer && getComputedStyle(D().scrollContainer).direction === "rtl";
45
- function B(e) {
45
+ function ae(e) {
46
46
  let t = D().scrollContainer;
47
47
  if (!t) return e.clientX;
48
48
  let n = t.getBoundingClientRect();
49
49
  return z() ? n.right - e.clientX : e.clientX - n.left;
50
50
  }
51
- function V(e) {
51
+ function B(e) {
52
52
  if (e === n(j)) return;
53
53
  let t = n(k).map((e) => e.id), r = new Set(t), i = [...D().columnPinning.left.filter((e) => !r.has(e)), ...t.slice(0, e)], a = D().grid.getAllColumns().map((e) => e.id), o = D().userColumnOrder ?? [], s = o.length ? [...o, ...a.filter((e) => !o.includes(e))] : a, c = E(s, D().allColumns.map((e) => e.id));
54
54
  c.some((e, t) => e !== s[t]) && D().setColumnOrderInternal(c), D().columnPinning = {
@@ -56,18 +56,18 @@ function D(a, s) {
56
56
  right: [...D().columnPinning.right]
57
57
  };
58
58
  }
59
- let H = (e) => document.elementsFromPoint?.(e.clientX, e.clientY).find((e) => !e.closest(".sv-pin-split"))?.closest(".sv-grid-placeholder-row button"), U = h(!1);
60
- function W(t) {
61
- e(U, !0);
59
+ let V = (e) => document.elementsFromPoint?.(e.clientX, e.clientY).find((e) => !e.closest(".sv-pin-split"))?.closest(".sv-grid-placeholder-row button"), H = h(!1);
60
+ function U(t) {
61
+ e(H, !0);
62
62
  let n = (r) => {
63
- t.isConnected && t.contains(r.target) || (e(U, !1), window.removeEventListener("pointermove", n, !0));
63
+ t.isConnected && t.contains(r.target) || (e(H, !1), window.removeEventListener("pointermove", n, !0));
64
64
  };
65
65
  window.addEventListener("pointermove", n, !0);
66
66
  }
67
- function G(t) {
67
+ function W(t) {
68
68
  if (t.button !== 0) return;
69
69
  t.preventDefault();
70
- let r = H(t);
70
+ let r = V(t);
71
71
  if (r) return r.click();
72
72
  t.stopPropagation();
73
73
  let i = D().scrollContainer;
@@ -83,56 +83,60 @@ function D(a, s) {
83
83
  };
84
84
  return window.addEventListener("keydown", t, !0), () => window.removeEventListener("keydown", t, !0);
85
85
  });
86
- function K(t) {
86
+ function G(t) {
87
87
  if (!n(L)) {
88
- let e = H(t);
89
- e && !n(U) && W(e);
88
+ let e = V(t);
89
+ e && !n(H) && U(e);
90
90
  return;
91
91
  }
92
- let r = B(t);
92
+ let r = ae(t);
93
93
  e(L, {
94
94
  x: r,
95
95
  count: Math.max(n(F), T(n(M), r, n(k).length - 1, R()))
96
96
  }, !0);
97
97
  }
98
- function q() {
98
+ function K() {
99
99
  if (!n(L)) return;
100
100
  let t = n(L).count;
101
- e(L, null), V(t);
101
+ e(L, null), B(t);
102
102
  }
103
- function J(e) {
103
+ function q(e) {
104
104
  let t = n(j), r = z() ? "ArrowLeft" : "ArrowRight";
105
105
  if (e.key === r) t = n(j) + 1;
106
106
  else if (e.key === "ArrowRight" || e.key === "ArrowLeft") t = n(j) - 1;
107
107
  else if (e.key === "Home") t = n(F);
108
108
  else return;
109
- e.preventDefault(), e.stopPropagation(), !(t < n(F) || t > n(k).length - 1) && (t > n(j) && (n(M)[t] ?? Infinity) > R() || V(t));
109
+ e.preventDefault(), e.stopPropagation(), !(t < n(F) || t > n(k).length - 1) && (t > n(j) && (n(M)[t] ?? Infinity) > R() || B(t));
110
110
  }
111
- let Y = h(null), X = h("");
111
+ let J = h(null), Y = h(""), X = h(0);
112
112
  r(() => {
113
- let t = D().scrollContainer, r = n(Y);
113
+ let t = D().scrollContainer, r = n(J);
114
114
  if (!t || !r) return;
115
115
  let i = 0, a = () => {
116
116
  i = 0;
117
- let n = t.querySelectorAll(".sv-grid-placeholder-failed");
118
- if (!n.length) return void e(X, "");
119
- let a = r.getBoundingClientRect().top, o = a + (D().headerHeight ?? 0), s = "";
120
- for (let e of n) {
121
- let t = e.getBoundingClientRect(), n = Math.max(t.top, o) - a, r = t.bottom - a;
122
- r > n && (s += `,#000 ${n}px,#0000 ${n}px ${r}px,#000 ${r}px`);
117
+ let n = r.getBoundingClientRect(), a = t.querySelector(".sv-grid-foot")?.getBoundingClientRect();
118
+ e(X, a && a.height ? Math.max(0, n.bottom - a.top) : 0, !0);
119
+ let o = t.querySelectorAll(".sv-grid-placeholder-failed");
120
+ if (!o.length) return void e(Y, "");
121
+ let s = n.top, c = s + (D().headerHeight ?? 0), l = "";
122
+ for (let e of o) {
123
+ let t = e.getBoundingClientRect(), n = Math.max(t.top, c) - s, r = t.bottom - s;
124
+ r > n && (l += `,#000 ${n}px,#0000 ${n}px ${r}px,#000 ${r}px`);
123
125
  }
124
- e(X, s && `linear-gradient(#000${s})`, !0);
126
+ e(Y, l && `linear-gradient(#000${l})`, !0);
125
127
  }, o = () => i ||= requestAnimationFrame(a), s = new MutationObserver(o);
126
- return s.observe(t, {
128
+ s.observe(t, {
127
129
  childList: !0,
128
130
  subtree: !0,
129
131
  attributeFilter: ["class"]
130
- }), t.addEventListener("scroll", o, { passive: !0 }), o(), () => {
131
- cancelAnimationFrame(i), s.disconnect(), t.removeEventListener("scroll", o);
132
+ }), t.addEventListener("scroll", o, { passive: !0 });
133
+ let c = typeof ResizeObserver > "u" ? null : new ResizeObserver(o);
134
+ return c?.observe(t), o(), () => {
135
+ cancelAnimationFrame(i), s.disconnect(), c?.disconnect(), t.removeEventListener("scroll", o);
132
136
  };
133
137
  });
134
- let Z = v(() => n(L) ? n(L).count : n(j)), ae = v(() => n(L) ? n(M)[n(L).count] ?? n(N) : n(N)), Q = v(() => n(Z) === 0 ? n(I).pinSplitterNone : n(Z) === 1 ? n(I).pinSplitterOne : n(I).pinSplitterMany.replace("{count}", String(n(Z))));
135
- var $ = o(), oe = d($), se = (r) => {
138
+ let Z = v(() => n(L) ? n(L).count : n(j)), oe = v(() => n(L) ? n(M)[n(L).count] ?? n(N) : n(N)), Q = v(() => n(Z) === 0 ? n(I).pinSplitterNone : n(Z) === 1 ? n(I).pinSplitterOne : n(I).pinSplitterMany.replace("{count}", String(n(Z))));
139
+ var $ = o(), se = d($), ce = (r) => {
136
140
  var a = ie();
137
141
  let o, s;
138
142
  var p = i(a), h = (e) => {
@@ -148,7 +152,7 @@ function D(a, s) {
148
152
  });
149
153
  var _ = f(p, 2);
150
154
  let v;
151
- ne(_, (t) => e(Y, t), () => n(Y));
155
+ ne(_, (t) => e(J, t), () => n(J));
152
156
  var y = f(_, 2);
153
157
  let C;
154
158
  te(a), u(() => {
@@ -156,16 +160,17 @@ function D(a, s) {
156
160
  "is-dragging": !!n(L),
157
161
  "is-editing": !!D().editingCell
158
162
  }), s = x(a, "", s, {
159
- "--x": `${n(ae)}px`,
163
+ "--x": `${n(oe)}px`,
160
164
  bottom: `${n(P)}px`
161
- }), v = x(_, "", v, { "mask-image": n(X) || void 0 }), b(y, "aria-label", n(I).pinSplitterLabel), b(y, "aria-valuemin", n(F)), b(y, "aria-valuemax", n(k).length - 1), b(y, "aria-valuenow", n(Z)), b(y, "aria-valuetext", n(Q)), b(y, "title", n(I).pinSplitterHint), C = x(y, "", C, {
165
+ }), v = x(_, "", v, { "mask-image": n(Y) || void 0 }), b(y, "aria-label", n(I).pinSplitterLabel), b(y, "aria-valuemin", n(F)), b(y, "aria-valuemax", n(k).length - 1), b(y, "aria-valuenow", n(Z)), b(y, "aria-valuetext", n(Q)), b(y, "title", n(I).pinSplitterHint), C = x(y, "", C, {
162
166
  top: `${D().headerHeight ?? 0}px`,
163
- "pointer-events": n(U) ? "none" : void 0
167
+ bottom: `${n(X)}px`,
168
+ "pointer-events": n(H) ? "none" : void 0
164
169
  });
165
- }), l("pointerdown", y, G), l("pointermove", y, K), l("pointerup", y, q), S("pointercancel", y, () => e(L, null)), S("lostpointercapture", y, q), l("keydown", y, J), g(r, a);
170
+ }), l("pointerdown", y, W), l("pointermove", y, G), l("pointerup", y, K), S("pointercancel", y, () => e(L, null)), S("lostpointercapture", y, K), l("keydown", y, q), g(r, a);
166
171
  };
167
- c(oe, (e) => {
168
- !D().isNarrowResponsive && n(k).length > 1 && e(se);
172
+ c(se, (e) => {
173
+ !D().isNarrowResponsive && n(k).length > 1 && e(ce);
169
174
  }), g(a, $), p();
170
175
  }
171
176
  a([
@@ -8926,7 +8926,7 @@ function gs(s, u) {
8926
8926
  });
8927
8927
  let we = A(null);
8928
8928
  o(() => {
8929
- R.pinSplitter && !n(we) && import("./PinSplitter-DNjnUtbi.js").then((t) => e(we, t.default, !0));
8929
+ R.pinSplitter && !n(we) && import("./PinSplitter-B4neIssg.js").then((t) => e(we, t.default, !0));
8930
8930
  });
8931
8931
  let H = F(Ie), ke = F(() => n(H)?.rowHeader?.(P) ?? null), Ae = F(() => n(H)?.summaryCell?.(P) ?? null), Ne = F(() => n(H)?.groupRow?.(P) ?? null), Fe = F(() => n(H)?.overlay?.(P) ?? null), Le = A(null);
8932
8932
  o(() => {
@@ -8950,7 +8950,7 @@ function gs(s, u) {
8950
8950
  o(() => {
8951
8951
  n(We) || (P.editingEnabled || P.editingCell || P.fullRowEdit) && import("./SvGridCellEditor-CRImfWTE.js").then((t) => e(We, t.default, !0));
8952
8952
  }), o(() => {
8953
- (P.tooltip || P.columnMenuFor || P.contextMenuFor || P.filterMenuFor || P.operatorMenuFor || P.inSuggestFor || P.chooseColumnsPos) && !n(Re) && import("./GridMenus-Bl11jIy6.js").then((t) => e(Re, t.default, !0));
8953
+ (P.tooltip || P.columnMenuFor || P.contextMenuFor || P.filterMenuFor || P.operatorMenuFor || P.inSuggestFor || P.chooseColumnsPos) && !n(Re) && import("./GridMenus-D0JHEt5b.js").then((t) => e(Re, t.default, !0));
8954
8954
  });
8955
8955
  let Ge = F(() => !!P.pivotConfig && P.pivotModeOn), Ke = F(() => P.pivotResult), qe = F(() => P.allRowsBeforePagination.filter((e) => !P.isGroupRow(e)).map((e) => e.original)), Je = F(() => P.filterRowValues), Ye = F(() => P.filterMenuValues), Xe = F(() => P.showTooltipFor), Ze = F(() => P.hideTooltip), Qe = F(() => P.findHits), $e = F(() => new Set(n(Qe).map((e) => `${e.rowIndex}:${e.columnId}`))), et = F(() => {
8956
8956
  let e = n(Qe)[P.findHitIndex];
@@ -8926,7 +8926,7 @@ function gs(s, u) {
8926
8926
  });
8927
8927
  let we = A(null);
8928
8928
  o(() => {
8929
- R.pinSplitter && !n(we) && import("./PinSplitter-BbQwf4Eh.js").then((t) => e(we, t.default, !0));
8929
+ R.pinSplitter && !n(we) && import("./PinSplitter-DfJfxMl4.js").then((t) => e(we, t.default, !0));
8930
8930
  });
8931
8931
  let H = F(Ie), ke = F(() => n(H)?.rowHeader?.(P) ?? null), Ae = F(() => n(H)?.summaryCell?.(P) ?? null), Ne = F(() => n(H)?.groupRow?.(P) ?? null), Fe = F(() => n(H)?.overlay?.(P) ?? null), Le = A(null);
8932
8932
  o(() => {
@@ -8950,7 +8950,7 @@ function gs(s, u) {
8950
8950
  o(() => {
8951
8951
  n(We) || (P.editingEnabled || P.editingCell || P.fullRowEdit) && import("./SvGridCellEditor-BzLvoGRp.js").then((t) => e(We, t.default, !0));
8952
8952
  }), o(() => {
8953
- (P.tooltip || P.columnMenuFor || P.contextMenuFor || P.filterMenuFor || P.operatorMenuFor || P.inSuggestFor || P.chooseColumnsPos) && !n(Re) && import("./GridMenus-DGR1VkZL.js").then((t) => e(Re, t.default, !0));
8953
+ (P.tooltip || P.columnMenuFor || P.contextMenuFor || P.filterMenuFor || P.operatorMenuFor || P.inSuggestFor || P.chooseColumnsPos) && !n(Re) && import("./GridMenus-DAOBZsUn.js").then((t) => e(Re, t.default, !0));
8954
8954
  });
8955
8955
  let Ge = F(() => !!P.pivotConfig && P.pivotModeOn), Ke = F(() => P.pivotResult), qe = F(() => P.allRowsBeforePagination.filter((e) => !P.isGroupRow(e)).map((e) => e.original)), Je = F(() => P.filterRowValues), Ye = F(() => P.filterMenuValues), Xe = F(() => P.showTooltipFor), Ze = F(() => P.hideTooltip), Qe = F(() => P.findHits), $e = F(() => new Set(n(Qe).map((e) => `${e.rowIndex}:${e.columnId}`))), et = F(() => {
8956
8956
  let e = n(Qe)[P.findHitIndex];
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "commercial",
5
5
  "url": "https://svgrid.com/pricing"
6
6
  },
7
- "version": "3.0.80",
7
+ "version": "3.0.81",
8
8
  "description": "SvGrid as a framework-agnostic web component (<sv-grid> custom element, plus <sv-grid-shadow> for an open shadow root and <sv-chart> for the standalone chart). Drop into React, Vue, Angular, or plain HTML - no build step required.",
9
9
  "type": "module",
10
10
  "license": "MIT",
@@ -112,8 +112,8 @@
112
112
  "vite": "^8.2.1",
113
113
  "vue": "^3.5.42",
114
114
  "vue-tsc": "^3.3.11",
115
- "@svgrid/enterprise": "^3.1.71",
116
- "@svgrid/grid": "^3.0.41"
115
+ "@svgrid/grid": "^3.0.42",
116
+ "@svgrid/enterprise": "^3.1.72"
117
117
  },
118
118
  "types": "./dist/sv-grid-element.d.ts",
119
119
  "peerDependencies": {