@vokril/ui-solid 0.41.0 → 0.42.0
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/CHANGELOG.md +6 -0
- package/README.md +1 -0
- package/dist/{CommandPalette-BSLMG8km.js → CommandPalette-beMCOs7C.js} +3 -3
- package/dist/{CommandPalette-B9qLLuxQ.cjs → CommandPalette-pFMPK8bt.cjs} +1 -1
- package/dist/{DateRangePicker-DsNwzYqP.js → DateRangePicker-CYaHRpmb.js} +1 -1
- package/dist/{DateRangePicker-G2mk1fZM.cjs → DateRangePicker-DBXYlp78.cjs} +1 -1
- package/dist/{GuidedTour-CSq40Cp9.js → GuidedTour-5MdUy_iV.js} +1 -1
- package/dist/{GuidedTour-CJ09go6v.cjs → GuidedTour-BofbTVvV.cjs} +1 -1
- package/dist/{IconPicker-CXL9cVtH.js → IconPicker-BaKZkh0b.js} +1 -1
- package/dist/{IconPicker-BBXd8Wet.cjs → IconPicker-DkRBxRGe.cjs} +1 -1
- package/dist/Modal-BNQB6QJ7.cjs +1 -0
- package/dist/{Modal-C5MGcO3D.js → Modal-py2JXnwO.js} +299 -287
- package/dist/{StatusBarNotificationBell-CVxvsv8h.cjs → StatusBarNotificationBell-BY9ZiWjy.cjs} +1 -1
- package/dist/{StatusBarNotificationBell-6SNCYifJ.js → StatusBarNotificationBell-DZvIOWcY.js} +4 -4
- package/dist/{ToggleButton-B-9WSFMZ.js → ToggleButton-B2gPFNtU.js} +2 -2
- package/dist/{ToggleButton-DRmBFJwM.cjs → ToggleButton-DSdpOk_r.cjs} +1 -1
- package/dist/{createDialogShellFocus-pWBCBflu.cjs → createDialogShellFocus--i_cKUN4.cjs} +1 -1
- package/dist/{createDialogShellFocus-D2u_bO7f.js → createDialogShellFocus-CRX-Qo81.js} +1 -1
- package/dist/{createResizableSidebar-CjPj5vwC.cjs → createResizableSidebar-BEQGesE5.cjs} +1 -1
- package/dist/{createResizableSidebar-D4K0ZCvk.js → createResizableSidebar-XihHxIXV.js} +2 -2
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +12 -12
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/overlay/Modal.d.cts +6 -0
- package/dist/overlay/Modal.d.ts +6 -0
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +4 -4
- package/dist/server/{CommandPalette-B9ymY_SI.js → CommandPalette-CW5Dp8vj.js} +2 -2
- package/dist/server/{CommandPalette-BpH6CMuv.cjs → CommandPalette-Cr75unDS.cjs} +1 -1
- package/dist/server/{GuidedTour-taurKiCd.js → GuidedTour-Bx6CdHjo.js} +1 -1
- package/dist/server/{GuidedTour-hk_hg5S7.cjs → GuidedTour-DL7UpS21.cjs} +1 -1
- package/dist/server/{IconPicker-f0VYyq4T.js → IconPicker-B2jFVCPZ.js} +2 -2
- package/dist/server/{IconPicker-BN3EyrRA.cjs → IconPicker-DMnle5yy.cjs} +1 -1
- package/dist/server/{Modal-CTMmcjaQ.js → Modal-B-3XihcF.js} +241 -230
- package/dist/server/Modal-OLsSdDmR.cjs +1 -0
- package/dist/server/{StatusBarNotificationBell-C82RZkZm.js → StatusBarNotificationBell-B0cK_tTc.js} +2 -2
- package/dist/server/{StatusBarNotificationBell-5rh44U0F.cjs → StatusBarNotificationBell-CtTPByqN.cjs} +1 -1
- package/dist/server/{ToggleButton-DobG6pBr.cjs → ToggleButton-93fdaf-H.cjs} +1 -1
- package/dist/server/{ToggleButton-D-ffVLWs.js → ToggleButton-DqNqIAC0.js} +2 -2
- package/dist/server/{createResizableSidebar-69_PRJGJ.js → createResizableSidebar-CphNgnrU.js} +2 -2
- package/dist/server/{createResizableSidebar-B7L5UMWS.cjs → createResizableSidebar-D5mkTix1.cjs} +1 -1
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +2 -2
- package/dist/server/{index-BLcoVa-m.cjs → index-DDkjaG5W.cjs} +1 -1
- package/dist/server/{index-H8cYvjqO.js → index-cgjP4BDD.js} +2 -2
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +8 -8
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +1 -1
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +3 -3
- package/dist/solid/overlay/Modal.jsx +7 -3
- package/dist/solid/overlay/Modal.module.css.js +2 -1
- package/dist/style.css +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/Modal-CkNS2oaD.cjs +0 -1
- package/dist/server/Modal-J1-hJdFU.cjs +0 -1
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { ssr as
|
|
2
|
-
import { createSignal as $, createUniqueId as ee, createMemo as
|
|
1
|
+
import { ssr as k, ssrAttribute as m, escape as t, createComponent as d, ssrStyle as de, memo as ce, Portal as Je } from "solid-js/web";
|
|
2
|
+
import { createSignal as $, createUniqueId as ee, createMemo as B, createEffect as Me, onCleanup as V, Show as L, onMount as J, untrack as et, For as tt } from "solid-js";
|
|
3
3
|
import { O as ot } from "./Input-D128drd7.js";
|
|
4
4
|
import { b as ae, g as nt } from "./window-CUK6x8Pj.js";
|
|
5
5
|
import { K as it, c as at } from "./mainRealmDom-D514acmj.js";
|
|
6
|
-
import { o as
|
|
6
|
+
import { o as lt } from "./ownerWindow-9mx_LD47.js";
|
|
7
7
|
import { c as $e } from "./errorHandler-BvPGW-Nm.js";
|
|
8
8
|
import { i as Ce } from "./keys-B2nlkpqc.js";
|
|
9
|
-
import { p as
|
|
9
|
+
import { p as rt, n as st } from "./prefersReducedMotion-qcGrKv14.js";
|
|
10
10
|
import { a as dt } from "./kitHost-BMMWpU4w.js";
|
|
11
|
-
import { B as
|
|
11
|
+
import { B as le } from "./Button-BHfCFxcX.js";
|
|
12
12
|
import { O as ct } from "./OverlayScrollArea-h6G3yk6U.js";
|
|
13
|
-
import { t as
|
|
13
|
+
import { t as S } from "./i18n-DlGM3NSR.js";
|
|
14
14
|
import { u as mt, h as ut } from "./overlayStack-Bj6Lg1Rm.js";
|
|
15
15
|
import { r as ht } from "./Popover-e9JpRh11.js";
|
|
16
16
|
import { c as me } from "./base-BLohC_tW.js";
|
|
17
17
|
import { V as gt } from "./VpClose-1RAQ20H9.js";
|
|
18
|
-
const ft = 350,
|
|
19
|
-
function
|
|
20
|
-
const { anchorRect: n, tooltipSize: o, viewport: s } = e,
|
|
18
|
+
const ft = 350, Qo = 0, ze = 300, vt = 6, pt = 8;
|
|
19
|
+
function Zo(e) {
|
|
20
|
+
const { anchorRect: n, tooltipSize: o, viewport: s } = e, h = e.offset ?? vt, r = e.margin ?? pt, p = e.placement ?? "bottom", f = "bottom" in n && n.bottom !== void 0 ? n.bottom : n.top + n.height, l = "right" in n && n.right !== void 0 ? n.right : n.left + n.width;
|
|
21
21
|
let x = p, C = 0, H = 0;
|
|
22
22
|
if (p === "top" || p === "bottom") {
|
|
23
23
|
if (p === "top") {
|
|
24
|
-
const y = n.top -
|
|
25
|
-
y <
|
|
26
|
-
|
|
27
|
-
Math.min(y, s.height - o.height -
|
|
24
|
+
const y = n.top - h - o.height;
|
|
25
|
+
y < r && f + h + o.height <= s.height - r ? (x = "bottom", C = f + h) : C = Math.max(
|
|
26
|
+
r,
|
|
27
|
+
Math.min(y, s.height - o.height - r)
|
|
28
28
|
);
|
|
29
29
|
} else {
|
|
30
|
-
const y = f +
|
|
31
|
-
y + o.height > s.height -
|
|
32
|
-
|
|
33
|
-
Math.min(y, s.height - o.height -
|
|
30
|
+
const y = f + h;
|
|
31
|
+
y + o.height > s.height - r && n.top - h - o.height >= r ? (x = "top", C = n.top - h - o.height) : C = Math.max(
|
|
32
|
+
r,
|
|
33
|
+
Math.min(y, s.height - o.height - r)
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
const v = n.left + (n.width - o.width) / 2,
|
|
37
|
-
|
|
38
|
-
s.width - o.width -
|
|
36
|
+
const v = n.left + (n.width - o.width) / 2, F = Math.max(
|
|
37
|
+
r,
|
|
38
|
+
s.width - o.width - r
|
|
39
39
|
);
|
|
40
|
-
H = Math.max(
|
|
40
|
+
H = Math.max(r, Math.min(v, F));
|
|
41
41
|
} else {
|
|
42
42
|
if (p === "left") {
|
|
43
|
-
const y = n.left -
|
|
44
|
-
y <
|
|
45
|
-
|
|
46
|
-
Math.min(y, s.width - o.width -
|
|
43
|
+
const y = n.left - h - o.width;
|
|
44
|
+
y < r && l + h + o.width <= s.width - r ? (x = "right", H = l + h) : H = Math.max(
|
|
45
|
+
r,
|
|
46
|
+
Math.min(y, s.width - o.width - r)
|
|
47
47
|
);
|
|
48
48
|
} else {
|
|
49
|
-
const y =
|
|
50
|
-
y + o.width > s.width -
|
|
51
|
-
|
|
52
|
-
Math.min(y, s.width - o.width -
|
|
49
|
+
const y = l + h;
|
|
50
|
+
y + o.width > s.width - r && n.left - h - o.width >= r ? (x = "left", H = n.left - h - o.width) : H = Math.max(
|
|
51
|
+
r,
|
|
52
|
+
Math.min(y, s.width - o.width - r)
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
|
-
const v = n.top + (n.height - o.height) / 2,
|
|
56
|
-
|
|
57
|
-
s.height - o.height -
|
|
55
|
+
const v = n.top + (n.height - o.height) / 2, F = Math.max(
|
|
56
|
+
r,
|
|
57
|
+
s.height - o.height - r
|
|
58
58
|
);
|
|
59
|
-
C = Math.max(
|
|
59
|
+
C = Math.max(r, Math.min(v, F));
|
|
60
60
|
}
|
|
61
61
|
return { top: C, left: H, placement: x };
|
|
62
62
|
}
|
|
63
63
|
function wt() {
|
|
64
64
|
const [e, n] = $(null);
|
|
65
|
-
let o = !1, s = null,
|
|
65
|
+
let o = !1, s = null, h, r, p = null;
|
|
66
66
|
const f = () => {
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
67
|
+
h !== void 0 && (clearTimeout(h), h = void 0);
|
|
68
|
+
}, l = () => {
|
|
69
|
+
r !== void 0 && (clearTimeout(r), r = void 0);
|
|
70
70
|
}, x = () => {
|
|
71
71
|
if (p) {
|
|
72
72
|
try {
|
|
@@ -81,24 +81,24 @@ function wt() {
|
|
|
81
81
|
}
|
|
82
82
|
}, C = (i) => {
|
|
83
83
|
x();
|
|
84
|
-
const
|
|
84
|
+
const c = () => {
|
|
85
85
|
v();
|
|
86
|
-
},
|
|
86
|
+
}, E = (N) => {
|
|
87
87
|
Ce(N, "Escape") && e() !== null && (N.stopPropagation(), N.stopImmediatePropagation(), v());
|
|
88
88
|
};
|
|
89
|
-
i.addEventListener("scroll",
|
|
90
|
-
i.removeEventListener("scroll",
|
|
89
|
+
i.addEventListener("scroll", c, !0), i.addEventListener("pointerdown", c, !0), i.addEventListener("keydown", E, !0), i.addEventListener("blur", c), p = () => {
|
|
90
|
+
i.removeEventListener("scroll", c, !0), i.removeEventListener("pointerdown", c, !0), i.removeEventListener("keydown", E, !0), i.removeEventListener("blur", c);
|
|
91
91
|
};
|
|
92
92
|
}, H = (i) => {
|
|
93
|
-
f(),
|
|
94
|
-
const
|
|
95
|
-
if (
|
|
93
|
+
f(), l(), s = null, o = !0, n(i);
|
|
94
|
+
const c = lt(i.target);
|
|
95
|
+
if (c === null) {
|
|
96
96
|
x();
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
|
-
C(
|
|
99
|
+
C(c);
|
|
100
100
|
}, v = () => {
|
|
101
|
-
f(),
|
|
101
|
+
f(), l(), s = null, o = !1, n(null), x();
|
|
102
102
|
};
|
|
103
103
|
return {
|
|
104
104
|
activeTooltip: e,
|
|
@@ -106,40 +106,40 @@ function wt() {
|
|
|
106
106
|
showTooltip: (i) => {
|
|
107
107
|
if (!i.content || typeof i.content == "function" && !i.content())
|
|
108
108
|
return;
|
|
109
|
-
|
|
110
|
-
const
|
|
111
|
-
if (!(
|
|
112
|
-
if (o ||
|
|
109
|
+
l();
|
|
110
|
+
const c = e();
|
|
111
|
+
if (!(c && (c.id === i.id || c.target === i.target)))
|
|
112
|
+
if (o || c !== null)
|
|
113
113
|
H(i);
|
|
114
114
|
else {
|
|
115
115
|
f(), s = i;
|
|
116
|
-
const
|
|
117
|
-
|
|
116
|
+
const E = i.delayMs ?? ft;
|
|
117
|
+
E <= 0 ? H(i) : h = setTimeout(() => {
|
|
118
118
|
s === i && H(i);
|
|
119
|
-
},
|
|
119
|
+
}, E);
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
hideTooltip: (i) => {
|
|
123
123
|
if (i !== void 0) {
|
|
124
124
|
s && (typeof i == "string" ? s.id === i : s.target === i) && (f(), s = null);
|
|
125
|
-
const
|
|
126
|
-
if (
|
|
127
|
-
if (!(typeof i == "string" ?
|
|
125
|
+
const c = e();
|
|
126
|
+
if (c) {
|
|
127
|
+
if (!(typeof i == "string" ? c.id === i : c.target === i))
|
|
128
128
|
return;
|
|
129
129
|
} else
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
|
-
f(), s = null, n(null), x(),
|
|
133
|
-
o = !1,
|
|
132
|
+
f(), s = null, n(null), x(), l(), r = setTimeout(() => {
|
|
133
|
+
o = !1, r = void 0;
|
|
134
134
|
}, ze);
|
|
135
135
|
},
|
|
136
136
|
dismissAll: v,
|
|
137
137
|
recordTooltipShown: () => {
|
|
138
|
-
|
|
138
|
+
l(), o = !0;
|
|
139
139
|
},
|
|
140
140
|
recordTooltipHidden: () => {
|
|
141
|
-
|
|
142
|
-
o = !1,
|
|
141
|
+
l(), r = setTimeout(() => {
|
|
142
|
+
o = !1, r = void 0;
|
|
143
143
|
}, ze);
|
|
144
144
|
}
|
|
145
145
|
};
|
|
@@ -156,7 +156,7 @@ const bt = /* @__PURE__ */ me({
|
|
|
156
156
|
"stroke-width": "2",
|
|
157
157
|
viewBox: "0 0 24 24"
|
|
158
158
|
},
|
|
159
|
-
c: () =>
|
|
159
|
+
c: () => k(_t)
|
|
160
160
|
});
|
|
161
161
|
var xt = '<path d="M5 10h5V5m0 5L4 4m15 6h-5V5m0 5 6-6M5 14h5v5m0-5-6 6m15-6h-5v5m0-5 6 6"></path>';
|
|
162
162
|
const yt = /* @__PURE__ */ me({
|
|
@@ -169,10 +169,10 @@ const yt = /* @__PURE__ */ me({
|
|
|
169
169
|
"stroke-width": "2",
|
|
170
170
|
viewBox: "0 0 24 24"
|
|
171
171
|
},
|
|
172
|
-
c: () =>
|
|
172
|
+
c: () => k(xt)
|
|
173
173
|
});
|
|
174
|
-
var
|
|
175
|
-
const
|
|
174
|
+
var kt = '<path d="M11 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-6M15 3h6v6m0-6-9 9"></path>';
|
|
175
|
+
const Tt = /* @__PURE__ */ me({
|
|
176
176
|
name: "VpExternalLink",
|
|
177
177
|
a: {
|
|
178
178
|
fill: "none",
|
|
@@ -182,8 +182,8 @@ const kt = /* @__PURE__ */ me({
|
|
|
182
182
|
"stroke-width": "2",
|
|
183
183
|
viewBox: "0 0 24 24"
|
|
184
184
|
},
|
|
185
|
-
c: () =>
|
|
186
|
-
}), Et = "vk_trigger_--BjF", Mt = "vk_tooltip_eJQhN", zt = "vk_hostTooltip_vLrNc", Lt = "vk_tooltipInner_AyPkl",
|
|
185
|
+
c: () => k(kt)
|
|
186
|
+
}), Et = "vk_trigger_--BjF", Mt = "vk_tooltip_eJQhN", zt = "vk_hostTooltip_vLrNc", Lt = "vk_tooltipInner_AyPkl", re = {
|
|
187
187
|
trigger: Et,
|
|
188
188
|
tooltip: Mt,
|
|
189
189
|
hostTooltip: zt,
|
|
@@ -193,58 +193,58 @@ function Ht(e) {
|
|
|
193
193
|
const n = e.tooltipWidth ?? Ot, o = e.tooltipWidth === void 0 ? e.viewportWidth : e.viewportWidth - Y, s = Math.min(
|
|
194
194
|
e.pointerX + Dt,
|
|
195
195
|
o - n
|
|
196
|
-
),
|
|
196
|
+
), h = Math.max(Y, s), r = e.pointerY + De, p = e.tooltipHeight ?? 0, f = e.viewportHeight === void 0 ? r : Math.max(
|
|
197
197
|
Y,
|
|
198
198
|
e.viewportHeight - p - Y
|
|
199
|
-
),
|
|
200
|
-
return { left:
|
|
199
|
+
), l = e.aboveY === void 0 ? r : e.aboveY - p - De, x = e.viewportHeight !== void 0 && r > f ? Math.max(Y, Math.min(l, f)) : Math.max(Y, Math.min(r, f));
|
|
200
|
+
return { left: h, top: x };
|
|
201
201
|
}
|
|
202
|
-
var $t = ["<span", ">", "</span>"], Ct = ["<div", "><span>", "</span>", "</div>"],
|
|
203
|
-
const
|
|
204
|
-
function
|
|
205
|
-
const n = ee(), [o, s] = $(!1), [
|
|
202
|
+
var $t = ["<span", ">", "</span>"], Ct = ["<div", "><span>", "</span>", "</div>"], Ft = ["<div", ' role="tooltip" style="', '">', "</div>"];
|
|
203
|
+
const At = 1e3;
|
|
204
|
+
function Jo(e) {
|
|
205
|
+
const n = ee(), [o, s] = $(!1), [h, r] = $({
|
|
206
206
|
x: 0,
|
|
207
207
|
y: 0
|
|
208
|
-
}), [p, f] = $(), [
|
|
208
|
+
}), [p, f] = $(), [l, x] = $({
|
|
209
209
|
width: 0,
|
|
210
210
|
height: 0
|
|
211
211
|
}), [C, H] = $(!1);
|
|
212
|
-
let v,
|
|
213
|
-
const y = () => ae(v),
|
|
214
|
-
return
|
|
212
|
+
let v, F;
|
|
213
|
+
const y = () => ae(v), I = B(() => e.content);
|
|
214
|
+
return B(() => e.delayMs ?? At), Me(() => {
|
|
215
215
|
Le.activeTooltip() && o() && s(!1);
|
|
216
216
|
}), Me(() => {
|
|
217
217
|
if (!o()) return;
|
|
218
218
|
const T = () => {
|
|
219
219
|
s(!1);
|
|
220
|
-
}, i = (
|
|
221
|
-
Ce(
|
|
222
|
-
},
|
|
223
|
-
|
|
224
|
-
|
|
220
|
+
}, i = (E) => {
|
|
221
|
+
Ce(E, "Escape") && (E.stopPropagation(), E.stopImmediatePropagation(), s(!1), Le.dismissAll());
|
|
222
|
+
}, c = ae(v);
|
|
223
|
+
c.addEventListener("scroll", T, !0), c.addEventListener("resize", T), c.addEventListener("keydown", i, !0), V(() => {
|
|
224
|
+
c.removeEventListener("scroll", T, !0), c.removeEventListener("resize", T), c.removeEventListener("keydown", i, !0);
|
|
225
225
|
});
|
|
226
226
|
}), V(() => {
|
|
227
|
-
}), [
|
|
227
|
+
}), [k($t, m("class", t(re.trigger, !0), !1) + m("tabindex", C() ? t(void 0, !0) : 0, !1) + m("aria-describedby", o() ? t(n, !0) : t(void 0, !0), !1), t(e.children)), d(L, {
|
|
228
228
|
get when() {
|
|
229
|
-
return ce(() => !!o())() &&
|
|
229
|
+
return ce(() => !!o())() && I();
|
|
230
230
|
},
|
|
231
231
|
get children() {
|
|
232
|
-
return
|
|
232
|
+
return d(ot, {
|
|
233
233
|
type: "tooltip",
|
|
234
234
|
get mount() {
|
|
235
235
|
return ae(v).document.body;
|
|
236
236
|
},
|
|
237
|
-
element: () =>
|
|
237
|
+
element: () => F,
|
|
238
238
|
idPrefix: "hover-tooltip",
|
|
239
239
|
get children() {
|
|
240
|
-
return
|
|
240
|
+
return k(Ft, m("class", t(re.tooltip, !0), !1) + m("id", t(n, !0), !1), de((() => {
|
|
241
241
|
const T = p(), i = Ht({
|
|
242
|
-
pointerX:
|
|
243
|
-
pointerY:
|
|
242
|
+
pointerX: h().x,
|
|
243
|
+
pointerY: h().y,
|
|
244
244
|
viewportWidth: y().innerWidth,
|
|
245
245
|
viewportHeight: y().innerHeight,
|
|
246
|
-
tooltipWidth:
|
|
247
|
-
tooltipHeight:
|
|
246
|
+
tooltipWidth: l().width,
|
|
247
|
+
tooltipHeight: l().height,
|
|
248
248
|
...T !== void 0 ? {
|
|
249
249
|
aboveY: T
|
|
250
250
|
} : {}
|
|
@@ -253,15 +253,15 @@ function Qo(e) {
|
|
|
253
253
|
top: `${i.top}px`,
|
|
254
254
|
left: `${i.left}px`
|
|
255
255
|
};
|
|
256
|
-
})()), t(
|
|
256
|
+
})()), t(d(L, {
|
|
257
257
|
get when() {
|
|
258
258
|
return e.shortcut;
|
|
259
259
|
},
|
|
260
260
|
get fallback() {
|
|
261
|
-
return
|
|
261
|
+
return I();
|
|
262
262
|
},
|
|
263
263
|
get children() {
|
|
264
|
-
return
|
|
264
|
+
return k(Ct, m("class", t(re.tooltipInner, !0), !1), t(I()), t(d(it, {
|
|
265
265
|
size: "xs",
|
|
266
266
|
get shortcut() {
|
|
267
267
|
return e.shortcut;
|
|
@@ -274,28 +274,28 @@ function Qo(e) {
|
|
|
274
274
|
}
|
|
275
275
|
})];
|
|
276
276
|
}
|
|
277
|
-
const
|
|
278
|
-
function
|
|
277
|
+
const Wt = "2.875rem", Bt = "data-modal-titlebar-probe";
|
|
278
|
+
function It(e, n) {
|
|
279
279
|
const o = at("div");
|
|
280
|
-
o.setAttribute(
|
|
280
|
+
o.setAttribute(Bt, ""), o.style.cssText = `position:absolute;top:0;left:0;width:0;visibility:hidden;pointer-events:none;height:var(--modal-maximize-inset, ${Wt})`, (n != null && n.isConnected ? n : e.body ?? e.documentElement).append(o);
|
|
281
281
|
try {
|
|
282
282
|
return o.getBoundingClientRect().height;
|
|
283
283
|
} finally {
|
|
284
284
|
o.remove();
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
const
|
|
288
|
-
place:
|
|
289
|
-
placeLabel:
|
|
287
|
+
const St = "vk_place_5Cs4j", Rt = "vk_placeLabel_ZwMrw", Pt = "vk_placeValue_EWbq8", X = {
|
|
288
|
+
place: St,
|
|
289
|
+
placeLabel: Rt,
|
|
290
290
|
placeValue: Pt
|
|
291
291
|
};
|
|
292
292
|
var Vt = ["<dl", " data-dangerous-place><dt", ">", "</dt><dd", ' data-place="connection">', "</dd>", "</dl>"], Nt = ["<dt", ">", "</dt>"], qt = ["<dd", ' data-place="database">', "</dd>"];
|
|
293
293
|
function Ut(e) {
|
|
294
|
-
return
|
|
294
|
+
return k(Vt, m("id", t(e.id, !0), !1) + m("class", t(X.place, !0), !1), m("class", t(X.placeLabel, !0), !1), t(S("Connection")), m("class", t(X.placeValue, !0), !1), t(e.place.connection), t(d(L, {
|
|
295
295
|
get when() {
|
|
296
296
|
return e.place.database;
|
|
297
297
|
},
|
|
298
|
-
children: (n) => [
|
|
298
|
+
children: (n) => [k(Nt, m("class", t(X.placeLabel, !0), !1), t(S("Database"))), k(qt, m("class", t(X.placeValue, !0), !1), t(n()))]
|
|
299
299
|
})));
|
|
300
300
|
}
|
|
301
301
|
const Yt = [
|
|
@@ -320,7 +320,7 @@ function Xt(e, n) {
|
|
|
320
320
|
height: He(e.height, n.minHeight, jt(n))
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
|
-
const Kt = "vk_modalOverlay_53kKZ", Gt = "vk_modalBackdropFadeIn_5IQ--", Qt = "vk_modalOverlayExiting_x-xU-", Zt = "vk_modalBackdropFadeOut_PWo4M", Jt = "vk_modal_ZqkLW", eo = "vk_modalEntering_hQj2V", to = "vk_modalEntranceScaleUp_Kyv3p", oo = "vk_modalExiting_qiJ02", no = "vk_modalExitScaleDown_-CC8F", io = "vk_modalDragged_tiDIq", ao = "vk_resizeHandle_b3UDa",
|
|
323
|
+
const Kt = "vk_modalOverlay_53kKZ", Gt = "vk_modalBackdropFadeIn_5IQ--", Qt = "vk_modalOverlayExiting_x-xU-", Zt = "vk_modalBackdropFadeOut_PWo4M", Jt = "vk_modal_ZqkLW", eo = "vk_modalEntering_hQj2V", to = "vk_modalEntranceScaleUp_Kyv3p", oo = "vk_modalExiting_qiJ02", no = "vk_modalExitScaleDown_-CC8F", io = "vk_modalDragged_tiDIq", ao = "vk_resizeHandle_b3UDa", lo = "vk_modalNudge_8ldIg", ro = "vk_modalOverlayMaximized_00k68", so = "vk_modalMaximized_iL0gq", co = "vk_modalOverlayEmbedded_kz22G", mo = "vk_modalEmbedded_uaq4K", uo = "vk_modalHeader_fiwar", ho = "vk_modalFooter_PqFE4", go = "vk_modalBodyScroll_XIHnt", fo = "vk_modalHeaderDraggable_XVN7l", vo = "vk_modalHeaderDragging_AfuEb", po = "vk_modalTitle_jdWEj vk_titleLg_Iswm3", wo = "vk_modalTitleWrap_IW3-y", _o = "vk_modalTitleContent_x5Np7", bo = "vk_modalSubtitle_Is6W0", xo = "vk_modalPlace_3FEgX", yo = "vk_modalHeaderActions_uUFCL", ko = "vk_modalBody_EJ4Kr", To = "vk_modalBodyFlush_6Q0bW", u = {
|
|
324
324
|
modalOverlay: Kt,
|
|
325
325
|
modalBackdropFadeIn: Gt,
|
|
326
326
|
modalOverlayExiting: Qt,
|
|
@@ -340,8 +340,8 @@ const Kt = "vk_modalOverlay_53kKZ", Gt = "vk_modalBackdropFadeIn_5IQ--", Qt = "v
|
|
|
340
340
|
"resize-nw": "vk_resize-nw_20bHL",
|
|
341
341
|
"resize-se": "vk_resize-se_q2Qtb",
|
|
342
342
|
"resize-sw": "vk_resize-sw_n7kou",
|
|
343
|
-
modalNudge:
|
|
344
|
-
modalOverlayMaximized:
|
|
343
|
+
modalNudge: lo,
|
|
344
|
+
modalOverlayMaximized: ro,
|
|
345
345
|
modalMaximized: so,
|
|
346
346
|
modalOverlayEmbedded: co,
|
|
347
347
|
modalEmbedded: mo,
|
|
@@ -356,59 +356,60 @@ const Kt = "vk_modalOverlay_53kKZ", Gt = "vk_modalBackdropFadeIn_5IQ--", Qt = "v
|
|
|
356
356
|
modalSubtitle: bo,
|
|
357
357
|
modalPlace: xo,
|
|
358
358
|
modalHeaderActions: yo,
|
|
359
|
-
modalBody:
|
|
359
|
+
modalBody: ko,
|
|
360
|
+
modalBodyFlush: To
|
|
360
361
|
};
|
|
361
|
-
var
|
|
362
|
-
function
|
|
363
|
-
const n = dt(), o =
|
|
364
|
-
|
|
365
|
-
const
|
|
366
|
-
let f = null,
|
|
367
|
-
const x = () =>
|
|
362
|
+
var Eo = ["<h3", ">", "</h3>"], Mo = ["<p", ">", "</p>"], zo = ["<div", " data-modal-body-flush>", "</div>"], se = ["<div", ">", "</div>"], Lo = ['<div class="', '" style="', '" tabindex="-1">', '<div class="', '" style="', '" role="dialog" aria-modal="true"', ' tabindex="-1"><div class="', '"><div', ">", "", "</div><div", ">", "", "", "", "</div></div>", "", "", "", "</div></div>"], Do = ['<div class="', '"', ' aria-hidden="true"></div>'];
|
|
363
|
+
function en(e) {
|
|
364
|
+
const n = dt(), o = B(() => !!e.embedded), s = B(() => !!e.closeDisabled);
|
|
365
|
+
B(() => e.backdropDismiss ?? "close");
|
|
366
|
+
const h = B(() => e.canClose), r = B(() => !o() && (e.resizable ?? n.resizable ?? !0)), p = B((w) => o() || !e.open() ? null : w ?? e.hostDocument ?? nt().document, null);
|
|
367
|
+
let f = null, l = null;
|
|
368
|
+
const x = () => l != null && l.isConnected ? l.ownerDocument : p(), C = mt(() => !o() && e.open(), "modal", {
|
|
368
369
|
type: "modal",
|
|
369
|
-
element: () =>
|
|
370
|
+
element: () => l != null && l.isConnected ? l : null,
|
|
370
371
|
document: () => p() ?? void 0
|
|
371
372
|
}), H = () => {
|
|
372
373
|
if (!o()) return C.isTopmost();
|
|
373
374
|
const w = x();
|
|
374
375
|
return w !== null && !ut(w);
|
|
375
376
|
};
|
|
376
|
-
let v,
|
|
377
|
+
let v, F = !1;
|
|
377
378
|
const y = () => {
|
|
378
|
-
const w =
|
|
379
|
+
const w = h();
|
|
379
380
|
if (w === void 0) {
|
|
380
381
|
v == null || v();
|
|
381
382
|
return;
|
|
382
383
|
}
|
|
383
|
-
if (
|
|
384
|
-
|
|
385
|
-
const
|
|
386
|
-
|
|
384
|
+
if (F || s()) return;
|
|
385
|
+
F = !0;
|
|
386
|
+
const M = (A) => {
|
|
387
|
+
F = !1, A && (v == null || v());
|
|
387
388
|
};
|
|
388
389
|
let q;
|
|
389
390
|
try {
|
|
390
391
|
q = w();
|
|
391
|
-
} catch (
|
|
392
|
-
throw
|
|
392
|
+
} catch (A) {
|
|
393
|
+
throw F = !1, A;
|
|
393
394
|
}
|
|
394
|
-
typeof q == "boolean" ?
|
|
395
|
-
|
|
395
|
+
typeof q == "boolean" ? M(q) : q.then(M, (A) => {
|
|
396
|
+
F = !1, $e("modal close guard rejected", A);
|
|
396
397
|
});
|
|
397
398
|
};
|
|
398
|
-
let
|
|
399
|
+
let I = null, T = null;
|
|
399
400
|
const i = () => {
|
|
400
|
-
o() ||
|
|
401
|
-
},
|
|
402
|
-
var w,
|
|
403
|
-
|
|
404
|
-
},
|
|
401
|
+
o() || l === null || (I = st(l));
|
|
402
|
+
}, c = () => {
|
|
403
|
+
var w, M;
|
|
404
|
+
I == null || I(), I = null, f != null && f.isConnected && typeof f.focus == "function" && f.focus(), e.focusFallback && T !== null && T.activeElement !== f && ((w = e.focusFallback()) == null || w.focus()), e.focusFallback && T !== null && T.activeElement === T.body && ((M = e.focusFallback()) == null || M.focus()), f = null, T = null, l = null;
|
|
405
|
+
}, E = ee(), N = ee(), ue = ee(), Fe = () => {
|
|
405
406
|
const w = [...e.subtitle ? [N] : [], ...e.place ? [ue] : []];
|
|
406
407
|
return w.length > 0 ? w.join(" ") : void 0;
|
|
407
408
|
}, he = () => {
|
|
408
409
|
var xe, ye;
|
|
409
|
-
J(i), V(
|
|
410
|
-
var
|
|
411
|
-
const a = (
|
|
410
|
+
J(i), V(c), J(() => {
|
|
411
|
+
var g;
|
|
412
|
+
const a = (g = x()) == null ? void 0 : g.defaultView;
|
|
412
413
|
if (!a) return;
|
|
413
414
|
const _ = () => {
|
|
414
415
|
H();
|
|
@@ -417,11 +418,11 @@ function Zo(e) {
|
|
|
417
418
|
});
|
|
418
419
|
const w = () => {
|
|
419
420
|
const a = x();
|
|
420
|
-
return a !== null &&
|
|
421
|
-
}, [
|
|
422
|
-
let
|
|
421
|
+
return a !== null && rt(a);
|
|
422
|
+
}, [M, q] = $(!1);
|
|
423
|
+
let A, te = !1, ge = !1;
|
|
423
424
|
const fe = () => {
|
|
424
|
-
ge || !te || (ge = !0,
|
|
425
|
+
ge || !te || (ge = !0, A !== void 0 && clearTimeout(A), A = void 0, e.onClose());
|
|
425
426
|
};
|
|
426
427
|
v = () => {
|
|
427
428
|
if (!(s() || te)) {
|
|
@@ -429,42 +430,42 @@ function Zo(e) {
|
|
|
429
430
|
fe();
|
|
430
431
|
return;
|
|
431
432
|
}
|
|
432
|
-
q(!0),
|
|
433
|
+
q(!0), A = setTimeout(fe, 120);
|
|
433
434
|
}
|
|
434
435
|
}, V(() => {
|
|
435
|
-
v = void 0,
|
|
436
|
+
v = void 0, A !== void 0 && clearTimeout(A);
|
|
436
437
|
});
|
|
437
|
-
const [oe,
|
|
438
|
+
const [oe, Ae] = $(!o() && !w());
|
|
438
439
|
let P;
|
|
439
440
|
const K = () => {
|
|
440
|
-
P !== void 0 && (clearTimeout(P), P = void 0), oe() &&
|
|
441
|
+
P !== void 0 && (clearTimeout(P), P = void 0), oe() && Ae(!1);
|
|
441
442
|
};
|
|
442
443
|
J(() => {
|
|
443
444
|
oe() && (P = setTimeout(K, 200));
|
|
444
445
|
}), V(() => {
|
|
445
446
|
P !== void 0 && (clearTimeout(P), P = void 0);
|
|
446
447
|
});
|
|
447
|
-
const [z,
|
|
448
|
+
const [z, We] = $(!1), [G, ve] = $({
|
|
448
449
|
x: 0,
|
|
449
450
|
y: 0
|
|
450
|
-
}), [pe,
|
|
451
|
+
}), [pe, Oo] = $(!1), [Be, Ho] = $(!1), [j, Ie] = $(et(() => e.initialSize) ?? null), ne = B(() => !o() && (e.allowMaximize ?? !0)), Se = B(() => !o() && !M() && !z() && (e.allowDrag ?? !0)), Re = B(() => !o() && !M() && z() && ne() && (e.allowDrag ?? !0) && (e.allowMaximizedDrag ?? n.allowMaximizedDrag ?? !0));
|
|
451
452
|
let Q = null;
|
|
452
453
|
const we = () => {
|
|
453
454
|
Q == null || Q(), Q = null;
|
|
454
455
|
}, Pe = () => {
|
|
455
|
-
if (!ne() || s() ||
|
|
456
|
+
if (!ne() || s() || M()) return;
|
|
456
457
|
K();
|
|
457
|
-
const a = z(), _ = typeof (
|
|
458
|
-
if (
|
|
459
|
-
const
|
|
460
|
-
ht(
|
|
461
|
-
if (
|
|
462
|
-
const b =
|
|
458
|
+
const a = z(), _ = typeof (l == null ? void 0 : l.animate) == "function" && !w(), g = _ && l ? l.getBoundingClientRect() : null;
|
|
459
|
+
if (We(!a), _ && l && g && g.width > 0 && g.height > 0) {
|
|
460
|
+
const D = l;
|
|
461
|
+
ht(D, () => {
|
|
462
|
+
if (l !== D || M()) return;
|
|
463
|
+
const b = D.getBoundingClientRect();
|
|
463
464
|
if (b.width > 0 && b.height > 0) {
|
|
464
|
-
const
|
|
465
|
-
|
|
465
|
+
const O = g.left - b.left, W = g.top - b.top, U = g.width / b.width, R = g.height / b.height;
|
|
466
|
+
D.animate([{
|
|
466
467
|
transformOrigin: "top left",
|
|
467
|
-
transform: `translate(${
|
|
468
|
+
transform: `translate(${O}px, ${W}px) scale(${U}, ${R})`,
|
|
468
469
|
borderRadius: a ? "0px" : "var(--radius-xl)"
|
|
469
470
|
}, {
|
|
470
471
|
transformOrigin: "top left",
|
|
@@ -478,28 +479,28 @@ function Zo(e) {
|
|
|
478
479
|
}
|
|
479
480
|
});
|
|
480
481
|
}
|
|
481
|
-
if (a &&
|
|
482
|
-
const
|
|
482
|
+
if (a && l) {
|
|
483
|
+
const D = l;
|
|
483
484
|
queueMicrotask(() => {
|
|
484
|
-
if (
|
|
485
|
-
const b =
|
|
485
|
+
if (l !== D || z() || M()) return;
|
|
486
|
+
const b = D.ownerDocument.defaultView;
|
|
486
487
|
if (b === null) return;
|
|
487
|
-
const
|
|
488
|
-
left:
|
|
489
|
-
top:
|
|
490
|
-
width:
|
|
491
|
-
height:
|
|
488
|
+
const O = G(), W = D.getBoundingClientRect(), U = {
|
|
489
|
+
left: W.left - O.x,
|
|
490
|
+
top: W.top - O.y,
|
|
491
|
+
width: W.width,
|
|
492
|
+
height: W.height
|
|
492
493
|
};
|
|
493
|
-
ve(_e(
|
|
494
|
+
ve(_e(O.x, O.y, U, b, 44, ie(b)));
|
|
494
495
|
});
|
|
495
496
|
}
|
|
496
|
-
}, ie = (a) =>
|
|
497
|
-
const
|
|
497
|
+
}, ie = (a) => It(a.document, void 0), _e = (a, _, g, D, b, O) => {
|
|
498
|
+
const W = D.innerWidth, U = D.innerHeight, R = g.width > 0 ? g.width : 500, ke = g.width > 0 ? g.left : (W - R) / 2, Te = g.height > 0 ? g.top : O + 16, Ue = b, Ye = Math.min(0, W - R), je = Math.max(0, W - R), Xe = ke + a, Ke = Math.min(Math.max(Xe, Ye), je) - ke, Ee = O, Ge = Math.max(Ee, U - Ue), Qe = Te + _, Ze = Math.min(Math.max(Qe, Ee), Ge) - Te;
|
|
498
499
|
return {
|
|
499
500
|
x: Ke,
|
|
500
501
|
y: Ze
|
|
501
502
|
};
|
|
502
|
-
}, Ve =
|
|
503
|
+
}, Ve = B(() => r() && !M() && !z()), Ne = (a) => {
|
|
503
504
|
const _ = Number.parseFloat(a.getComputedStyle(a.document.documentElement).fontSize);
|
|
504
505
|
return {
|
|
505
506
|
minWidth: Oe.width,
|
|
@@ -513,45 +514,45 @@ function Zo(e) {
|
|
|
513
514
|
}, be = (a) => {
|
|
514
515
|
const _ = j();
|
|
515
516
|
if (_ === null) return;
|
|
516
|
-
const
|
|
517
|
-
(
|
|
517
|
+
const g = Xt(_, Ne(a));
|
|
518
|
+
(g.width !== _.width || g.height !== _.height) && Ie(g);
|
|
518
519
|
};
|
|
519
520
|
let Z = null;
|
|
520
521
|
const qe = () => {
|
|
521
522
|
Z == null || Z(), Z = null;
|
|
522
523
|
};
|
|
523
524
|
return J(() => {
|
|
524
|
-
var
|
|
525
|
-
const a = (
|
|
525
|
+
var D;
|
|
526
|
+
const a = (D = x()) == null ? void 0 : D.defaultView;
|
|
526
527
|
if (!a) return;
|
|
527
528
|
o() || be(a);
|
|
528
529
|
const _ = () => {
|
|
529
|
-
if (z() ||
|
|
530
|
+
if (z() || M() || o() || !l) return;
|
|
530
531
|
K(), be(a);
|
|
531
|
-
const b = G(),
|
|
532
|
-
left:
|
|
533
|
-
top:
|
|
534
|
-
width:
|
|
535
|
-
height:
|
|
536
|
-
},
|
|
537
|
-
(
|
|
532
|
+
const b = G(), O = l.getBoundingClientRect(), W = {
|
|
533
|
+
left: O.left - b.x,
|
|
534
|
+
top: O.top - b.y,
|
|
535
|
+
width: O.width,
|
|
536
|
+
height: O.height
|
|
537
|
+
}, R = _e(b.x, b.y, W, a, 44, ie(a));
|
|
538
|
+
(R.x !== b.x || R.y !== b.y) && ve(R);
|
|
538
539
|
};
|
|
539
540
|
a.addEventListener("resize", _);
|
|
540
|
-
const
|
|
541
|
-
|
|
541
|
+
const g = new MutationObserver(_);
|
|
542
|
+
g.observe(a.document.documentElement, {
|
|
542
543
|
attributes: !0,
|
|
543
544
|
attributeFilter: ["style", "class"]
|
|
544
545
|
}), V(() => {
|
|
545
|
-
a.removeEventListener("resize", _),
|
|
546
|
+
a.removeEventListener("resize", _), g.disconnect(), we(), qe();
|
|
546
547
|
});
|
|
547
|
-
}),
|
|
548
|
+
}), k(Lo, `${o() ? t(u.modalOverlayEmbedded, !0) : t(u.modalOverlay, !0)} ${z() ? t(u.modalOverlayMaximized, !0) : ""} ${M() ? t(u.modalOverlayExiting, !0) : ""}`, de({
|
|
548
549
|
...e.transparentBackdrop ? {
|
|
549
550
|
background: "transparent"
|
|
550
551
|
} : {},
|
|
551
552
|
...e.maximizeInset !== void 0 ? {
|
|
552
553
|
"--modal-maximize-inset": e.maximizeInset
|
|
553
554
|
} : {}
|
|
554
|
-
}), t(e.decoration), `${t(
|
|
555
|
+
}), t(e.decoration), `${t(u.modal, !0)} ${o() ? t(u.modalEmbedded, !0) : ""} ${oe() && !M() ? t(u.modalEntering, !0) : ""} ${z() ? t(u.modalMaximized, !0) : ""} ${pe() || Be() ? t(u.modalDragged, !0) : ""} ${M() ? t(u.modalExiting, !0) : ""}`, de({
|
|
555
556
|
...o() ? void 0 : {
|
|
556
557
|
"max-width": z() ? "100%" : j() !== null ? "none" : e.maxWidth ?? "32rem"
|
|
557
558
|
},
|
|
@@ -562,31 +563,31 @@ function Zo(e) {
|
|
|
562
563
|
...e.dialogStyle,
|
|
563
564
|
"--modal-drag-x": `${z() || o() ? 0 : G().x}px`,
|
|
564
565
|
"--modal-drag-y": `${z() || o() ? 0 : G().y}px`
|
|
565
|
-
}), m("aria-labelledby", t(
|
|
566
|
+
}), m("aria-labelledby", t(E, !0), !1) + m("aria-describedby", t(Fe(), !0), !1), `${t(u.modalHeader, !0)} ${// A header that drags the modal — restored, or maximized and pullable off the top — is a drag handle:
|
|
566
567
|
// the grab cursor, and `touch-action: none` so a touch pointer drags it instead of panning the page.
|
|
567
|
-
|
|
568
|
+
Se() || Re() ? pe() ? t(u.modalHeaderDragging, !0) : t(u.modalHeaderDraggable, !0) : ""}`, m("class", t(u.modalTitleWrap, !0), !1), t(d(L, {
|
|
568
569
|
get when() {
|
|
569
570
|
return typeof e.title == "string";
|
|
570
571
|
},
|
|
571
572
|
get fallback() {
|
|
572
|
-
return
|
|
573
|
+
return k(se, m("id", t(E, !0), !1) + m("class", t(u.modalTitleContent, !0), !1), t(e.title));
|
|
573
574
|
},
|
|
574
575
|
get children() {
|
|
575
|
-
return
|
|
576
|
+
return k(Eo, m("id", t(E, !0), !1) + m("class", t(u.modalTitle, !0), !1), t(e.title));
|
|
576
577
|
}
|
|
577
|
-
})), t(
|
|
578
|
+
})), t(d(L, {
|
|
578
579
|
get when() {
|
|
579
580
|
return e.subtitle;
|
|
580
581
|
},
|
|
581
582
|
get children() {
|
|
582
|
-
return
|
|
583
|
+
return k(Mo, m("id", t(N, !0), !1) + m("class", t(u.modalSubtitle, !0), !1), t(e.subtitle));
|
|
583
584
|
}
|
|
584
|
-
})), m("class", t(
|
|
585
|
+
})), m("class", t(u.modalHeaderActions, !0), !1), t(e.headerActions), t(d(L, {
|
|
585
586
|
get when() {
|
|
586
587
|
return e.onDetach;
|
|
587
588
|
},
|
|
588
589
|
get children() {
|
|
589
|
-
return
|
|
590
|
+
return d(le, {
|
|
590
591
|
size: "sm",
|
|
591
592
|
variant: "ghost",
|
|
592
593
|
iconOnly: !0,
|
|
@@ -598,22 +599,22 @@ function Zo(e) {
|
|
|
598
599
|
return s();
|
|
599
600
|
},
|
|
600
601
|
get title() {
|
|
601
|
-
return
|
|
602
|
+
return S("Open in new window");
|
|
602
603
|
},
|
|
603
604
|
get "aria-label"() {
|
|
604
|
-
return
|
|
605
|
+
return S("Open in new window");
|
|
605
606
|
},
|
|
606
607
|
get children() {
|
|
607
|
-
return
|
|
608
|
+
return d(Tt, {});
|
|
608
609
|
}
|
|
609
610
|
});
|
|
610
611
|
}
|
|
611
|
-
})), t(
|
|
612
|
+
})), t(d(L, {
|
|
612
613
|
get when() {
|
|
613
614
|
return ne();
|
|
614
615
|
},
|
|
615
616
|
get children() {
|
|
616
|
-
return
|
|
617
|
+
return d(le, {
|
|
617
618
|
size: "sm",
|
|
618
619
|
variant: "ghost",
|
|
619
620
|
iconOnly: !0,
|
|
@@ -622,32 +623,32 @@ function Zo(e) {
|
|
|
622
623
|
return s();
|
|
623
624
|
},
|
|
624
625
|
get title() {
|
|
625
|
-
return ce(() => !!z())() ?
|
|
626
|
+
return ce(() => !!z())() ? S("Restore") : S("Maximize");
|
|
626
627
|
},
|
|
627
628
|
get "aria-label"() {
|
|
628
|
-
return ce(() => !!z())() ?
|
|
629
|
+
return ce(() => !!z())() ? S("Restore") : S("Maximize");
|
|
629
630
|
},
|
|
630
631
|
get children() {
|
|
631
|
-
return
|
|
632
|
+
return d(L, {
|
|
632
633
|
get when() {
|
|
633
634
|
return z();
|
|
634
635
|
},
|
|
635
636
|
get fallback() {
|
|
636
|
-
return
|
|
637
|
+
return d(bt, {});
|
|
637
638
|
},
|
|
638
639
|
get children() {
|
|
639
|
-
return
|
|
640
|
+
return d(yt, {});
|
|
640
641
|
}
|
|
641
642
|
});
|
|
642
643
|
}
|
|
643
644
|
});
|
|
644
645
|
}
|
|
645
|
-
})), t(
|
|
646
|
+
})), t(d(L, {
|
|
646
647
|
get when() {
|
|
647
648
|
return !e.hideClose;
|
|
648
649
|
},
|
|
649
650
|
get children() {
|
|
650
|
-
return
|
|
651
|
+
return d(le, {
|
|
651
652
|
size: "sm",
|
|
652
653
|
variant: "ghost",
|
|
653
654
|
iconOnly: !0,
|
|
@@ -656,51 +657,61 @@ function Zo(e) {
|
|
|
656
657
|
return s();
|
|
657
658
|
},
|
|
658
659
|
get title() {
|
|
659
|
-
return
|
|
660
|
+
return S("Close");
|
|
660
661
|
},
|
|
661
662
|
get "aria-label"() {
|
|
662
|
-
return
|
|
663
|
+
return S("Close");
|
|
663
664
|
},
|
|
664
665
|
get children() {
|
|
665
|
-
return
|
|
666
|
+
return d(gt, {});
|
|
666
667
|
}
|
|
667
668
|
});
|
|
668
669
|
}
|
|
669
|
-
})), t(
|
|
670
|
+
})), t(d(L, {
|
|
670
671
|
get when() {
|
|
671
672
|
return e.place;
|
|
672
673
|
},
|
|
673
|
-
children: (a) =>
|
|
674
|
+
children: (a) => k(se, m("class", t(u.modalPlace, !0), !1), t(d(Ut, {
|
|
674
675
|
id: ue,
|
|
675
676
|
get place() {
|
|
676
677
|
return a();
|
|
677
678
|
}
|
|
678
679
|
})))
|
|
679
|
-
})), t(
|
|
680
|
-
get
|
|
681
|
-
return
|
|
680
|
+
})), t(d(L, {
|
|
681
|
+
get when() {
|
|
682
|
+
return e.flush;
|
|
682
683
|
},
|
|
683
|
-
get
|
|
684
|
-
return
|
|
684
|
+
get fallback() {
|
|
685
|
+
return d(ct, {
|
|
686
|
+
get rootClass() {
|
|
687
|
+
return u.modalBodyScroll;
|
|
688
|
+
},
|
|
689
|
+
get viewportClass() {
|
|
690
|
+
return u.modalBody;
|
|
691
|
+
},
|
|
692
|
+
get children() {
|
|
693
|
+
return e.children;
|
|
694
|
+
}
|
|
695
|
+
});
|
|
685
696
|
},
|
|
686
697
|
get children() {
|
|
687
|
-
return e.children;
|
|
698
|
+
return k(zo, m("class", t(u.modalBodyFlush, !0), !1), t(e.children));
|
|
688
699
|
}
|
|
689
|
-
})), t(
|
|
700
|
+
})), t(d(L, {
|
|
690
701
|
get when() {
|
|
691
702
|
return e.footer;
|
|
692
703
|
},
|
|
693
704
|
get children() {
|
|
694
|
-
return
|
|
705
|
+
return k(se, m("class", t(u.modalFooter, !0), !1), t(e.footer));
|
|
695
706
|
}
|
|
696
|
-
})), t(
|
|
707
|
+
})), t(d(L, {
|
|
697
708
|
get when() {
|
|
698
709
|
return Ve();
|
|
699
710
|
},
|
|
700
711
|
get children() {
|
|
701
|
-
return
|
|
712
|
+
return d(tt, {
|
|
702
713
|
each: Yt,
|
|
703
|
-
children: (a) =>
|
|
714
|
+
children: (a) => k(Do, `${t(u.resizeHandle, !0)} ${t(u[`resize-${a}`], !0)}`, m("data-resize-edge", t(a, !0), !1))
|
|
704
715
|
});
|
|
705
716
|
}
|
|
706
717
|
})));
|
|
@@ -710,7 +721,7 @@ function Zo(e) {
|
|
|
710
721
|
// portals to the body of the document it opened in (reference: the active container
|
|
711
722
|
// at show time), so a modal triggered while a detached / aux window is focused covers
|
|
712
723
|
// THAT window, not main.
|
|
713
|
-
|
|
724
|
+
d(L, {
|
|
714
725
|
get when() {
|
|
715
726
|
return !o();
|
|
716
727
|
},
|
|
@@ -718,11 +729,11 @@ function Zo(e) {
|
|
|
718
729
|
return he();
|
|
719
730
|
},
|
|
720
731
|
get children() {
|
|
721
|
-
return
|
|
732
|
+
return d(L, {
|
|
722
733
|
get when() {
|
|
723
734
|
return p();
|
|
724
735
|
},
|
|
725
|
-
children: (w) =>
|
|
736
|
+
children: (w) => d(Je, {
|
|
726
737
|
get mount() {
|
|
727
738
|
return w().body;
|
|
728
739
|
},
|
|
@@ -739,22 +750,22 @@ export {
|
|
|
739
750
|
Ut as A,
|
|
740
751
|
ft as C,
|
|
741
752
|
pt as D,
|
|
742
|
-
|
|
743
|
-
|
|
753
|
+
Jo as H,
|
|
754
|
+
en as M,
|
|
744
755
|
Dt as T,
|
|
745
756
|
yt as V,
|
|
746
|
-
|
|
757
|
+
Qo as W,
|
|
747
758
|
ze as a,
|
|
748
759
|
vt as b,
|
|
749
760
|
De as c,
|
|
750
761
|
Ot as d,
|
|
751
762
|
Y as e,
|
|
752
|
-
|
|
763
|
+
Zo as f,
|
|
753
764
|
Ht as g,
|
|
754
765
|
wt as h,
|
|
755
766
|
bt as i,
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
767
|
+
Tt as j,
|
|
768
|
+
It as m,
|
|
769
|
+
re as s,
|
|
759
770
|
Le as t
|
|
760
771
|
};
|