@svgrid/enterprise 3.1.16 → 3.1.18

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 (57) hide show
  1. package/dist/SvGridEditPanel.svelte +14 -1
  2. package/dist/SvGridScheduler.svelte +15 -6
  3. package/dist/SvSheet.svelte +2 -0
  4. package/dist/cdn/svgrid-enterprise.svelte-external.js +6582 -6501
  5. package/dist/designer/assets/{index-C0GDyyFs.js → index-DKudY-XD.js} +357 -346
  6. package/dist/designer/assets/index-WCxj6WfJ.css +1 -0
  7. package/dist/designer/index.html +2 -2
  8. package/dist/fields/SvBase.svelte +36 -33
  9. package/dist/fields/base-connect.js +50 -9
  10. package/dist/fields/base-sql.d.ts +8 -0
  11. package/dist/fields/base-sql.js +12 -3
  12. package/dist/install.js +3 -3
  13. package/dist/node/studio.js +205 -60
  14. package/dist/sheet-enable.d.ts +8 -2
  15. package/dist/sheet-enable.js +21 -9
  16. package/dist/sources/introspect-supabase.d.ts +6 -3
  17. package/dist/sources/introspect-supabase.js +29 -11
  18. package/dist/sources/supabase.d.ts +10 -0
  19. package/dist/sources/supabase.js +11 -2
  20. package/dist/studio/cli.d.ts +9 -0
  21. package/dist/studio/cli.js +41 -7
  22. package/dist/studio/emit-project.d.ts +3 -1
  23. package/dist/studio/emit-project.js +84 -33
  24. package/dist/studio/emit-schema.js +9 -2
  25. package/dist/studio/index.d.ts +1 -1
  26. package/dist/studio/init-flow.d.ts +7 -0
  27. package/dist/studio/init-flow.js +23 -2
  28. package/dist/studio/introspect-db.d.ts +15 -1
  29. package/dist/studio/introspect-db.js +29 -5
  30. package/dist/sveltekit/sql-source.d.ts +24 -0
  31. package/dist/sveltekit/sql-source.js +34 -1
  32. package/dist/sveltekit/sql.js +14 -2
  33. package/dist/version.d.ts +2 -2
  34. package/dist/version.js +2 -2
  35. package/dist/wc/GridFooter-BgoA77TJ.js +145 -0
  36. package/dist/wc/{GridMenus-q9qYpzKh.js → GridMenus-DVGuqp2l.js} +430 -430
  37. package/dist/wc/{PinSplitter-D-qtDhSM.js → PinSplitter-Btco0txr.js} +24 -24
  38. package/dist/wc/{SvChartMenu-CQNrQGT2.js → SvChartMenu-Ue-HFR5c.js} +58 -58
  39. package/dist/wc/{SvDateRangeInput-BYNOfYxD.js → SvDateRangeInput-CJZohgBe.js} +43 -43
  40. package/dist/wc/{SvDateTimePicker-Bq9N0Oiy.js → SvDateTimePicker-DmK_QkkU.js} +241 -241
  41. package/dist/wc/{SvField-B_kurx_P.js → SvField-C-OodMMv.js} +71 -71
  42. package/dist/wc/SvGridCellEditor-C7ios4i_.js +582 -0
  43. package/dist/wc/{SvGridChart-DrmqEen2.js → SvGridChart-DWRqlhCV.js} +549 -549
  44. package/dist/wc/{SvGridChartBuilder-XFvW1BdT.js → SvGridChartBuilder-BXW3yUR0.js} +337 -337
  45. package/dist/wc/{SvGridChartPanel-oJJtUKG6.js → SvGridChartPanel-28n4tomx.js} +354 -354
  46. package/dist/wc/{SvGridChartView-Cetuj70H.js → SvGridChartView-CbG_WrU-.js} +7 -7
  47. package/dist/wc/{SvGridDropdown-45WsObLL.js → SvGridDropdown-BVnpNU_I.js} +130 -130
  48. package/dist/wc/{SvModal-DrfOYYyX.js → SvModal-DLppAQED.js} +91 -91
  49. package/dist/wc/{client-DQIzjDBG.js → client-GWAV79ON.js} +479 -476
  50. package/dist/wc/{date-format-DS-z_h9v.js → date-format-4_QoS4zZ.js} +393 -393
  51. package/dist/wc/{grid-extension.svelte-Bufq4B4C.js → grid-extension.svelte-CucBS4FL.js} +1 -1
  52. package/dist/wc/sv-sheet-element.js +10475 -10461
  53. package/dist/wc/{svelte-virtualizer.svelte-CkZaFakp.js → svelte-virtualizer.svelte-BDcouWqw.js} +3 -3
  54. package/package.json +17 -4
  55. package/dist/designer/assets/index-BdL--HXH.css +0 -1
  56. package/dist/wc/GridFooter-4T29pfok.js +0 -145
  57. package/dist/wc/SvGridCellEditor-Nnl8C3Yj.js +0 -582
@@ -1,15 +1,15 @@
1
- import { G as e, H as t, I as n, L as r, M as i, P as a, R as o, S as ee, T as s, U as c, W as l, X as u, Y as d, a as f, at as p, d as te, dt as m, et as h, f as ne, ht as g, it as _, j as v, m as y, mt as b, n as x, nt as S, rt as C, tt as w, u as T, ut as E, w as re } from "./client-DQIzjDBG.js";
2
- import { i as D } from "./editor-contract-peBDxir_.js";
3
- import { r as ie } from "./popover-WsGlvtQv.js";
4
- import { t as O } from "./dismissable-CQ6XFXsk.js";
5
- import { n as k, t as A } from "./focus-trap-Dbb2tJxb.js";
1
+ import { G as e, H as t, I as n, L as r, M as i, P as a, R as o, S as s, T as c, U as l, W as u, X as d, Y as f, a as p, at as m, d as h, dt as g, f as _, ft as v, gt as y, ht as b, it as x, j as S, m as ee, n as C, nt as w, ot as T, rt as E, tt as D, u as O, w as te } from "./client-GWAV79ON.js";
2
+ import { i as k } from "./editor-contract-peBDxir_.js";
3
+ import { r as A } from "./popover-WsGlvtQv.js";
4
+ import { t as j } from "./dismissable-CQ6XFXsk.js";
5
+ import { n as ne, t as M } from "./focus-trap-Dbb2tJxb.js";
6
6
  //#region ../grid/dist/a11y/scroll-lock.js
7
- var j = 0, M = "", N = "";
8
- function P() {
7
+ var N = 0, P = "", F = "";
8
+ function I() {
9
9
  if (typeof document > "u") return () => {};
10
10
  let e = document.body;
11
- if (j === 0) {
12
- M = e.style.overflow, N = e.style.paddingRight;
11
+ if (N === 0) {
12
+ P = e.style.overflow, F = e.style.paddingRight;
13
13
  let t = window.innerWidth - document.documentElement.clientWidth;
14
14
  if (t > 0) {
15
15
  let n = parseFloat(getComputedStyle(e).paddingRight) || 0;
@@ -17,21 +17,21 @@ function P() {
17
17
  }
18
18
  e.style.overflow = "hidden";
19
19
  }
20
- j++;
20
+ N++;
21
21
  let t = !1;
22
22
  return () => {
23
- t || (t = !0, j = Math.max(0, j - 1), j === 0 && (e.style.overflow = M, e.style.paddingRight = N));
23
+ t || (t = !0, N = Math.max(0, N - 1), N === 0 && (e.style.overflow = P, e.style.paddingRight = F));
24
24
  };
25
25
  }
26
26
  //#endregion
27
27
  //#region ../grid/dist/createOverlay.svelte.js
28
- function ae(e) {
29
- return u(() => {
28
+ function re(e) {
29
+ return d(() => {
30
30
  if (!e.open() || !e.getDialog()) return;
31
31
  e.onOpen?.();
32
- let t = e.getDialog(), n = e.trapFocus?.() ?? !0 ? A(t, e.initialFocus ? { initialFocus: e.initialFocus } : void 0) : null;
32
+ let t = e.getDialog(), n = e.trapFocus?.() ?? !0 ? M(t, e.initialFocus ? { initialFocus: e.initialFocus } : void 0) : null;
33
33
  n?.activate();
34
- let r = e.scrollLock?.() ?? !0 ? P() : null, i = O({
34
+ let r = e.scrollLock?.() ?? !0 ? I() : null, i = j({
35
35
  element: () => e.getDialog(),
36
36
  onDismiss: (t) => {
37
37
  (t === "escape" ? e.closeOnEsc?.() ?? !0 : e.closeOnBackdrop?.() ?? !0) && e.onClose();
@@ -50,134 +50,134 @@ function ae(e) {
50
50
  }
51
51
  //#endregion
52
52
  //#region ../grid/dist/SvModal.svelte
53
- var oe = o("<button type=\"button\" class=\"sv-modal__x\" aria-label=\"Close\">&times;</button>"), F = o("<div><h2 class=\"sv-modal__title\"> </h2> <!></div>"), I = o("<div class=\"sv-modal__footer\"><!></div>"), L = o("<div class=\"sv-modal__resize\" aria-hidden=\"true\"></div>"), R = o("<div class=\"sv-modal__backdrop\"><div><!> <div class=\"sv-modal__body\"><!></div> <!> <!></div></div>"), z = {
53
+ var ie = o("<button type=\"button\" class=\"sv-modal__x\" aria-label=\"Close\">&times;</button>"), ae = o("<div><h2 class=\"sv-modal__title\"> </h2> <!></div>"), L = o("<div class=\"sv-modal__footer\"><!></div>"), R = o("<div class=\"sv-modal__resize\" aria-hidden=\"true\"></div>"), z = o("<div class=\"sv-modal__backdrop\"><div><!> <div class=\"sv-modal__body\"><!></div> <!> <!></div></div>"), B = {
54
54
  hash: "svelte-o40lcu",
55
55
  code: ".sv-modal__backdrop {position:fixed;inset:0;z-index:2147483000;background:rgba(15, 23, 42, 0.45);backdrop-filter:blur(1.5px);\n animation: svelte-o40lcu-sv-modal-fade 0.16s ease both;}\n @keyframes svelte-o40lcu-sv-modal-fade { from { opacity: 0 } to { opacity: 1 } }\n @media (prefers-reduced-motion: reduce) {.sv-modal__backdrop { animation: none} }.sv-modal {position:fixed;top:50%;left:50%;display:flex;flex-direction:column;max-width:94vw;max-height:88vh;min-width:240px;background:var(--sg-bg, #fff);color:var(--sg-fg, #0f172a);border:1px solid var(--sg-border, #e2e8f0);border-radius:12px;overflow:hidden;box-shadow:0 24px 64px -16px rgba(15, 23, 42, 0.5);\n animation: svelte-o40lcu-sv-modal-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;}\n @keyframes svelte-o40lcu-sv-modal-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.94) } to { opacity: 1 } }\n @media (prefers-reduced-motion: reduce) {.sv-modal { animation: none} }.sv-modal--sm {width:360px;}.sv-modal--md {width:520px;}.sv-modal--lg {width:720px;}.sv-modal.is-resized {max-width:none;max-height:none;}.sv-modal__header {display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--sg-border, #e2e8f0);}.sv-modal__header.is-draggable {cursor:move;touch-action:none;user-select:none;}.sv-modal__title {flex:1;margin:0;font-size:15px;font-weight:650;}.sv-modal__x {flex:none;width:28px;height:28px;display:grid;place-items:center;background:none;border:0;color:var(--sg-muted, #64748b);cursor:pointer;border-radius:6px;font-size:20px;line-height:1;}.sv-modal__x:hover {background:var(--sg-row-hover-bg, #f1f5f9);color:var(--sg-fg, #0f172a);}.sv-modal__body {padding:16px;overflow:auto;flex:1;font-size:13.5px;line-height:1.6;}.sv-modal__footer {display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--sg-border, #e2e8f0);}.sv-modal__resize {position:absolute;inset-inline-end:0;bottom:0;width:16px;height:16px;cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg, transparent 50%, var(--sg-muted, #94a3b8) 50%, var(--sg-muted, #94a3b8) 60%, transparent 60%, transparent 72%, var(--sg-muted, #94a3b8) 72%, var(--sg-muted, #94a3b8) 82%, transparent 82%);opacity:0.6;}"
56
56
  };
57
- function B(t, o) {
58
- m(o, !0), s(t, z);
59
- let u = x(o, "open", 15, !1), O = x(o, "size", 3, "md"), A = x(o, "draggable", 3, !1), j = x(o, "resizable", 3, !1), M = x(o, "closeOnBackdrop", 3, !0), N = x(o, "closeOnEsc", 3, !0), P = x(o, "hideClose", 3, !1), B = D("sv-modal-title"), V = p(null), H = p(C({
57
+ function V(t, o) {
58
+ v(o, !0), c(t, B);
59
+ let d = C(o, "open", 15, !1), j = C(o, "size", 3, "md"), M = C(o, "draggable", 3, !1), N = C(o, "resizable", 3, !1), P = C(o, "closeOnBackdrop", 3, !0), F = C(o, "closeOnEsc", 3, !0), I = C(o, "hideClose", 3, !1), V = k("sv-modal-title"), H = T(null), U = T(x({
60
60
  x: 0,
61
61
  y: 0
62
- })), U = p(null);
63
- function W() {
64
- u(!1), o.onClose?.();
62
+ })), W = T(null);
63
+ function G() {
64
+ d(!1), o.onClose?.();
65
65
  }
66
- let G = ae({
67
- open: () => u(),
68
- getDialog: () => e(V),
69
- onClose: W,
70
- closeOnEsc: () => N(),
71
- closeOnBackdrop: () => M(),
66
+ let K = re({
67
+ open: () => d(),
68
+ getDialog: () => e(H),
69
+ onClose: G,
70
+ closeOnEsc: () => F(),
71
+ closeOnBackdrop: () => P(),
72
72
  onOpen: () => {
73
- _(H, {
73
+ m(U, {
74
74
  x: 0,
75
75
  y: 0
76
- }, !0), _(U, null);
76
+ }, !0), m(W, null);
77
77
  },
78
- initialFocus: () => o.initialFocus?.() || (e(V) ? k(e(V)).find((e) => !e.closest(".sv-modal__header")) ?? e(V) : null)
79
- }), K = !1, q = {
78
+ initialFocus: () => o.initialFocus?.() || (e(H) ? ne(e(H)).find((e) => !e.closest(".sv-modal__header")) ?? e(H) : null)
79
+ }), q = !1, J = {
80
80
  x: 0,
81
81
  y: 0,
82
82
  ox: 0,
83
83
  oy: 0
84
84
  };
85
- function se(t) {
86
- !A() || t.target.closest(".sv-modal__x") || (K = !0, q = {
85
+ function oe(t) {
86
+ !M() || t.target.closest(".sv-modal__x") || (q = !0, J = {
87
87
  x: t.clientX,
88
88
  y: t.clientY,
89
- ox: e(H).x,
90
- oy: e(H).y
89
+ ox: e(U).x,
90
+ oy: e(U).y
91
91
  }, t.currentTarget.setPointerCapture(t.pointerId));
92
92
  }
93
- function ce(e) {
94
- K && _(H, {
95
- x: q.ox + (e.clientX - q.x),
96
- y: q.oy + (e.clientY - q.y)
93
+ function se(e) {
94
+ q && m(U, {
95
+ x: J.ox + (e.clientX - J.x),
96
+ y: J.oy + (e.clientY - J.y)
97
97
  }, !0);
98
98
  }
99
- function J(e) {
100
- K && (K = !1, e.currentTarget.releasePointerCapture(e.pointerId));
99
+ function Y(e) {
100
+ q && (q = !1, e.currentTarget.releasePointerCapture(e.pointerId));
101
101
  }
102
- let Y = !1, X = {
102
+ let X = !1, Z = {
103
103
  x: 0,
104
104
  y: 0,
105
105
  w: 0,
106
106
  h: 0
107
107
  };
108
- function le(t) {
109
- if (!j() || !e(V)) return;
110
- t.stopPropagation(), Y = !0;
111
- let n = e(V).getBoundingClientRect();
112
- X = {
108
+ function ce(t) {
109
+ if (!N() || !e(H)) return;
110
+ t.stopPropagation(), X = !0;
111
+ let n = e(H).getBoundingClientRect();
112
+ Z = {
113
113
  x: t.clientX,
114
114
  y: t.clientY,
115
115
  w: n.width,
116
116
  h: n.height
117
- }, _(U, {
117
+ }, m(W, {
118
118
  w: n.width,
119
119
  h: n.height
120
120
  }, !0), t.currentTarget.setPointerCapture(t.pointerId);
121
121
  }
122
- function Z(e) {
123
- Y && _(U, {
124
- w: Math.max(240, X.w + (e.clientX - X.x)),
125
- h: Math.max(160, X.h + (e.clientY - X.y))
122
+ function le(e) {
123
+ X && m(W, {
124
+ w: Math.max(240, Z.w + (e.clientX - Z.x)),
125
+ h: Math.max(160, Z.h + (e.clientY - Z.y))
126
126
  }, !0);
127
127
  }
128
128
  function Q(e) {
129
- Y && (Y = !1, e.currentTarget.releasePointerCapture(e.pointerId));
129
+ X && (X = !1, e.currentTarget.releasePointerCapture(e.pointerId));
130
130
  }
131
131
  var $ = r(), ue = w($), de = (t) => {
132
- var r = R(), s = h(r);
133
- ne(s, (t) => ({
134
- class: `sv-modal sv-modal--${O() ?? ""}`,
132
+ var r = z(), c = D(r);
133
+ _(c, (t) => ({
134
+ class: `sv-modal sv-modal--${j() ?? ""}`,
135
135
  ...t,
136
- [T]: { "is-resized": !!e(U) },
137
- [te]: {
138
- transform: `translate(calc(-50% + ${e(H).x}px), calc(-50% + ${e(H).y}px))`,
139
- width: e(U) ? `${e(U).w}px` : o.width ? `${o.width}px` : void 0,
140
- height: e(U) ? `${e(U).h}px` : void 0
136
+ [O]: { "is-resized": !!e(W) },
137
+ [h]: {
138
+ transform: `translate(calc(-50% + ${e(U).x}px), calc(-50% + ${e(U).y}px))`,
139
+ width: e(W) ? `${e(W).w}px` : o.width ? `${o.width}px` : void 0,
140
+ height: e(W) ? `${e(W).h}px` : void 0
141
141
  }
142
- }), [() => G.dialogProps({ labelledBy: o.title ? B : void 0 })]);
143
- var u = h(s), p = (e) => {
144
- var t = F();
142
+ }), [() => K.dialogProps({ labelledBy: o.title ? V : void 0 })]);
143
+ var d = D(c), g = (e) => {
144
+ var t = ae();
145
145
  let r;
146
- var i = h(t), s = h(i, !0);
146
+ var i = D(t), c = D(i, !0);
147
147
  b(i);
148
- var u = S(i, 2), f = (e) => {
149
- var t = oe();
150
- c("click", t, W), n(e, t);
148
+ var d = E(i, 2), p = (e) => {
149
+ var t = ie();
150
+ l("click", t, G), n(e, t);
151
151
  };
152
- v(u, (e) => {
153
- P() || e(f);
154
- }), b(t), d(() => {
155
- r = ee(t, 1, "sv-modal__header", null, r, { "is-draggable": A() }), y(i, "id", B), a(s, o.title ?? "");
156
- }), c("pointerdown", t, se), c("pointermove", t, ce), c("pointerup", t, J), l("pointercancel", t, J), n(e, t);
152
+ S(d, (e) => {
153
+ I() || e(p);
154
+ }), b(t), f(() => {
155
+ r = s(t, 1, "sv-modal__header", null, r, { "is-draggable": M() }), ee(i, "id", V), a(c, o.title ?? "");
156
+ }), l("pointerdown", t, oe), l("pointermove", t, se), l("pointerup", t, Y), u("pointercancel", t, Y), n(e, t);
157
157
  };
158
- v(u, (e) => {
159
- (o.title || !P()) && e(p);
158
+ S(d, (e) => {
159
+ (o.title || !I()) && e(g);
160
160
  });
161
- var m = S(u, 2), x = h(m);
162
- i(x, () => o.children ?? g), b(m);
163
- var C = S(m, 2), w = (e) => {
164
- var t = I(), r = h(t);
161
+ var v = E(d, 2), x = D(v);
162
+ i(x, () => o.children ?? y), b(v);
163
+ var C = E(v, 2), w = (e) => {
164
+ var t = L(), r = D(t);
165
165
  i(r, () => o.footer), b(t), n(e, t);
166
166
  };
167
- v(C, (e) => {
167
+ S(C, (e) => {
168
168
  o.footer && e(w);
169
169
  });
170
- var E = S(C, 2), D = (e) => {
171
- var t = L();
172
- c("pointerdown", t, le), c("pointermove", t, Z), c("pointerup", t, Q), l("pointercancel", t, Q), n(e, t);
170
+ var T = E(C, 2), k = (e) => {
171
+ var t = R();
172
+ l("pointerdown", t, ce), l("pointermove", t, le), l("pointerup", t, Q), u("pointercancel", t, Q), n(e, t);
173
173
  };
174
- v(E, (e) => {
175
- j() && e(D);
176
- }), b(s), f(s, (e) => _(V, e), () => e(V)), b(r), re(r, (e) => ie?.(e)), n(t, r);
174
+ S(T, (e) => {
175
+ N() && e(k);
176
+ }), b(c), p(c, (e) => m(H, e), () => e(H)), b(r), te(r, (e) => A?.(e)), n(t, r);
177
177
  };
178
- v(ue, (e) => {
179
- u() && e(de);
180
- }), n(t, $), E();
178
+ S(ue, (e) => {
179
+ d() && e(de);
180
+ }), n(t, $), g();
181
181
  }
182
182
  t([
183
183
  "pointerdown",
@@ -186,4 +186,4 @@ t([
186
186
  "click"
187
187
  ]);
188
188
  //#endregion
189
- export { B as t };
189
+ export { V as t };