@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.
- package/dist/SvGridEditPanel.svelte +14 -1
- package/dist/SvGridScheduler.svelte +15 -6
- package/dist/SvSheet.svelte +2 -0
- package/dist/cdn/svgrid-enterprise.svelte-external.js +6582 -6501
- package/dist/designer/assets/{index-C0GDyyFs.js → index-DKudY-XD.js} +357 -346
- package/dist/designer/assets/index-WCxj6WfJ.css +1 -0
- package/dist/designer/index.html +2 -2
- package/dist/fields/SvBase.svelte +36 -33
- package/dist/fields/base-connect.js +50 -9
- package/dist/fields/base-sql.d.ts +8 -0
- package/dist/fields/base-sql.js +12 -3
- package/dist/install.js +3 -3
- package/dist/node/studio.js +205 -60
- package/dist/sheet-enable.d.ts +8 -2
- package/dist/sheet-enable.js +21 -9
- package/dist/sources/introspect-supabase.d.ts +6 -3
- package/dist/sources/introspect-supabase.js +29 -11
- package/dist/sources/supabase.d.ts +10 -0
- package/dist/sources/supabase.js +11 -2
- package/dist/studio/cli.d.ts +9 -0
- package/dist/studio/cli.js +41 -7
- package/dist/studio/emit-project.d.ts +3 -1
- package/dist/studio/emit-project.js +84 -33
- package/dist/studio/emit-schema.js +9 -2
- package/dist/studio/index.d.ts +1 -1
- package/dist/studio/init-flow.d.ts +7 -0
- package/dist/studio/init-flow.js +23 -2
- package/dist/studio/introspect-db.d.ts +15 -1
- package/dist/studio/introspect-db.js +29 -5
- package/dist/sveltekit/sql-source.d.ts +24 -0
- package/dist/sveltekit/sql-source.js +34 -1
- package/dist/sveltekit/sql.js +14 -2
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/dist/wc/GridFooter-BgoA77TJ.js +145 -0
- package/dist/wc/{GridMenus-q9qYpzKh.js → GridMenus-DVGuqp2l.js} +430 -430
- package/dist/wc/{PinSplitter-D-qtDhSM.js → PinSplitter-Btco0txr.js} +24 -24
- package/dist/wc/{SvChartMenu-CQNrQGT2.js → SvChartMenu-Ue-HFR5c.js} +58 -58
- package/dist/wc/{SvDateRangeInput-BYNOfYxD.js → SvDateRangeInput-CJZohgBe.js} +43 -43
- package/dist/wc/{SvDateTimePicker-Bq9N0Oiy.js → SvDateTimePicker-DmK_QkkU.js} +241 -241
- package/dist/wc/{SvField-B_kurx_P.js → SvField-C-OodMMv.js} +71 -71
- package/dist/wc/SvGridCellEditor-C7ios4i_.js +582 -0
- package/dist/wc/{SvGridChart-DrmqEen2.js → SvGridChart-DWRqlhCV.js} +549 -549
- package/dist/wc/{SvGridChartBuilder-XFvW1BdT.js → SvGridChartBuilder-BXW3yUR0.js} +337 -337
- package/dist/wc/{SvGridChartPanel-oJJtUKG6.js → SvGridChartPanel-28n4tomx.js} +354 -354
- package/dist/wc/{SvGridChartView-Cetuj70H.js → SvGridChartView-CbG_WrU-.js} +7 -7
- package/dist/wc/{SvGridDropdown-45WsObLL.js → SvGridDropdown-BVnpNU_I.js} +130 -130
- package/dist/wc/{SvModal-DrfOYYyX.js → SvModal-DLppAQED.js} +91 -91
- package/dist/wc/{client-DQIzjDBG.js → client-GWAV79ON.js} +479 -476
- package/dist/wc/{date-format-DS-z_h9v.js → date-format-4_QoS4zZ.js} +393 -393
- package/dist/wc/{grid-extension.svelte-Bufq4B4C.js → grid-extension.svelte-CucBS4FL.js} +1 -1
- package/dist/wc/sv-sheet-element.js +10475 -10461
- package/dist/wc/{svelte-virtualizer.svelte-CkZaFakp.js → svelte-virtualizer.svelte-BDcouWqw.js} +3 -3
- package/package.json +17 -4
- package/dist/designer/assets/index-BdL--HXH.css +0 -1
- package/dist/wc/GridFooter-4T29pfok.js +0 -145
- 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
|
|
2
|
-
import { i as
|
|
3
|
-
import { r as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
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
|
|
8
|
-
function
|
|
7
|
+
var N = 0, P = "", F = "";
|
|
8
|
+
function I() {
|
|
9
9
|
if (typeof document > "u") return () => {};
|
|
10
10
|
let e = document.body;
|
|
11
|
-
if (
|
|
12
|
-
|
|
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
|
-
|
|
20
|
+
N++;
|
|
21
21
|
let t = !1;
|
|
22
22
|
return () => {
|
|
23
|
-
t || (t = !0,
|
|
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
|
|
29
|
-
return
|
|
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 ?
|
|
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 ?
|
|
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
|
|
53
|
+
var ie = o("<button type=\"button\" class=\"sv-modal__x\" aria-label=\"Close\">×</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
|
|
58
|
-
|
|
59
|
-
let
|
|
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
|
-
})),
|
|
63
|
-
function
|
|
64
|
-
|
|
62
|
+
})), W = T(null);
|
|
63
|
+
function G() {
|
|
64
|
+
d(!1), o.onClose?.();
|
|
65
65
|
}
|
|
66
|
-
let
|
|
67
|
-
open: () =>
|
|
68
|
-
getDialog: () => e(
|
|
69
|
-
onClose:
|
|
70
|
-
closeOnEsc: () =>
|
|
71
|
-
closeOnBackdrop: () =>
|
|
66
|
+
let K = re({
|
|
67
|
+
open: () => d(),
|
|
68
|
+
getDialog: () => e(H),
|
|
69
|
+
onClose: G,
|
|
70
|
+
closeOnEsc: () => F(),
|
|
71
|
+
closeOnBackdrop: () => P(),
|
|
72
72
|
onOpen: () => {
|
|
73
|
-
|
|
73
|
+
m(U, {
|
|
74
74
|
x: 0,
|
|
75
75
|
y: 0
|
|
76
|
-
}, !0),
|
|
76
|
+
}, !0), m(W, null);
|
|
77
77
|
},
|
|
78
|
-
initialFocus: () => o.initialFocus?.() || (e(
|
|
79
|
-
}),
|
|
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
|
|
86
|
-
!
|
|
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(
|
|
90
|
-
oy: e(
|
|
89
|
+
ox: e(U).x,
|
|
90
|
+
oy: e(U).y
|
|
91
91
|
}, t.currentTarget.setPointerCapture(t.pointerId));
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
|
|
95
|
-
x:
|
|
96
|
-
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
|
|
100
|
-
|
|
99
|
+
function Y(e) {
|
|
100
|
+
q && (q = !1, e.currentTarget.releasePointerCapture(e.pointerId));
|
|
101
101
|
}
|
|
102
|
-
let
|
|
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
|
|
109
|
-
if (!
|
|
110
|
-
t.stopPropagation(),
|
|
111
|
-
let n = e(
|
|
112
|
-
|
|
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
|
-
},
|
|
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
|
|
123
|
-
|
|
124
|
-
w: Math.max(240,
|
|
125
|
-
h: Math.max(160,
|
|
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
|
-
|
|
129
|
+
X && (X = !1, e.currentTarget.releasePointerCapture(e.pointerId));
|
|
130
130
|
}
|
|
131
131
|
var $ = r(), ue = w($), de = (t) => {
|
|
132
|
-
var r =
|
|
133
|
-
|
|
134
|
-
class: `sv-modal sv-modal--${
|
|
132
|
+
var r = z(), c = D(r);
|
|
133
|
+
_(c, (t) => ({
|
|
134
|
+
class: `sv-modal sv-modal--${j() ?? ""}`,
|
|
135
135
|
...t,
|
|
136
|
-
[
|
|
137
|
-
[
|
|
138
|
-
transform: `translate(calc(-50% + ${e(
|
|
139
|
-
width: e(
|
|
140
|
-
height: e(
|
|
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
|
-
}), [() =>
|
|
143
|
-
var
|
|
144
|
-
var t =
|
|
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 =
|
|
146
|
+
var i = D(t), c = D(i, !0);
|
|
147
147
|
b(i);
|
|
148
|
-
var
|
|
149
|
-
var t =
|
|
150
|
-
|
|
148
|
+
var d = E(i, 2), p = (e) => {
|
|
149
|
+
var t = ie();
|
|
150
|
+
l("click", t, G), n(e, t);
|
|
151
151
|
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}), b(t),
|
|
155
|
-
r =
|
|
156
|
-
}),
|
|
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
|
-
|
|
159
|
-
(o.title || !
|
|
158
|
+
S(d, (e) => {
|
|
159
|
+
(o.title || !I()) && e(g);
|
|
160
160
|
});
|
|
161
|
-
var
|
|
162
|
-
i(x, () => o.children ??
|
|
163
|
-
var C =
|
|
164
|
-
var 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
|
-
|
|
167
|
+
S(C, (e) => {
|
|
168
168
|
o.footer && e(w);
|
|
169
169
|
});
|
|
170
|
-
var
|
|
171
|
-
var t =
|
|
172
|
-
|
|
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
|
-
|
|
175
|
-
|
|
176
|
-
}), b(
|
|
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
|
-
|
|
179
|
-
|
|
180
|
-
}), n(t, $),
|
|
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 {
|
|
189
|
+
export { V as t };
|