@vokril/ui-solid 0.8.2 → 0.9.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 +5 -5
- package/dist/IconPicker-9tjEtmqt.cjs +1 -0
- package/dist/IconPicker-CXbFmJ3y.js +179 -0
- package/dist/_internal/app/icons/iconSetRegistry.d.cts +2 -2
- package/dist/_internal/app/icons/iconSetRegistry.d.ts +2 -2
- package/dist/{createResizableSidebar-B22SKv9b.js → createResizableSidebar-2TgiFZp1.js} +11 -12
- package/dist/createResizableSidebar-pDoO-7q9.cjs +1 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +314 -317
- package/dist/layout/PageHeaderIcon.d.cts +1 -1
- package/dist/layout/PageHeaderIcon.d.ts +1 -1
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/navigation/pageHeaderContract.d.cts +1 -1
- package/dist/navigation/pageHeaderContract.d.ts +1 -1
- package/dist/server/CommandPalette-39UA8MVn.cjs +1 -0
- package/dist/server/{CommandPalette-4RCiBlmz.js → CommandPalette-DIlbFrNy.js} +76 -78
- package/dist/server/{DateRangePicker-TW0Dy4u6.js → DateRangePicker-QV6U1adB.js} +1 -1
- package/dist/server/{GuidedTour-DvMqeZIU.cjs → GuidedTour-CMLjHh-y.cjs} +9 -9
- package/dist/server/{GuidedTour-Bc7SqDXY.js → GuidedTour-bV_r4vSt.js} +29 -30
- package/dist/server/IconPicker-B4wK1LxJ.js +162 -0
- package/dist/server/IconPicker-DoWUHbst.cjs +1 -0
- package/dist/server/Modal-BJqeQWr2.js +415 -0
- package/dist/server/Modal-Bt5zABLw.cjs +1 -0
- package/dist/server/Popover-BSHOd_RH.cjs +1 -0
- package/dist/server/{Popover-BRU2E-ek.js → Popover-DOl2Wob7.js} +103 -88
- package/dist/server/{StatusBarNotificationBell-Bk9ETGFK.js → StatusBarNotificationBell-5QIZhWif.js} +26 -27
- package/dist/server/{StatusBarNotificationBell-t7B7rSrd.cjs → StatusBarNotificationBell-BA53G1Rm.cjs} +3 -3
- package/dist/server/{Stepper-CJIoTXSv.js → Stepper-DPIaVHC2.js} +20 -21
- package/dist/server/Stepper-lTAo7tM9.cjs +1 -0
- package/dist/server/ToggleButton-BSOdOzjN.cjs +1 -0
- package/dist/server/{ToggleButton-BAhucFQT.js → ToggleButton-Cd8Dmcuj.js} +61 -62
- package/dist/server/VpArrowUp-9_PfEqFt.js +46 -0
- package/dist/server/VpArrowUp-D9ZUNPyn.cjs +1 -0
- package/dist/server/{VpChevronLeft-YI8H4bUq.js → VpChevronLeft-Dop81HaK.js} +2 -2
- package/dist/server/{VpTerminal-Bouc2jnT.js → VpTerminal-Bpw-d9wD.js} +12 -12
- package/dist/server/{VpTrash-B9HkM5Nj.js → VpTrash-DVBfts9_.js} +8 -8
- package/dist/server/{VpUpload-D3hgzJbk.js → VpUpload-_n-qdj9q.js} +5 -5
- package/dist/server/{createResizableSidebar-IcXBM-BE.js → createResizableSidebar-94M9e5Oc.js} +9 -10
- package/dist/server/createResizableSidebar-BriIvZzI.cjs +1 -0
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +3 -3
- package/dist/server/{VpWorkspaceTrusted-DiZC21WF.js → index-BqIOYH6R.js} +1140 -1063
- package/dist/server/index-DwEHhkL-.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +769 -1146
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +2 -2
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +4 -4
- package/dist/solid/_internal/app/icons/iconSetRegistry.js +1 -1
- package/dist/solid/desktop/menu/MenuPanel.jsx +2 -2
- package/dist/solid/feedback/Chip.jsx +1 -1
- package/dist/solid/feedback/InlineError.jsx +1 -1
- package/dist/solid/forms/Combobox.jsx +1 -1
- package/dist/solid/forms/CopyButton.jsx +1 -1
- package/dist/solid/forms/DatePicker.jsx +1 -1
- package/dist/solid/forms/Dropzone.jsx +1 -1
- package/dist/solid/forms/FormField.jsx +1 -1
- package/dist/solid/forms/MultiSearchableSelect.jsx +1 -1
- package/dist/solid/forms/NumberInput.jsx +1 -1
- package/dist/solid/forms/PasswordInput.jsx +1 -1
- package/dist/solid/forms/SearchInput.jsx +1 -1
- package/dist/solid/forms/SearchableSelect.jsx +1 -1
- package/dist/solid/forms/SplitButton.jsx +1 -1
- package/dist/solid/forms/TagInput.jsx +1 -1
- package/dist/solid/forms/date-range-picker/CalendarGrid.jsx +1 -1
- package/dist/solid/forms/date-range-picker/DateRangePicker.jsx +1 -1
- package/dist/solid/grid/AttributeGrid.jsx +1 -1
- package/dist/solid/grid/ToolbarSearchField.jsx +1 -1
- package/dist/solid/index.js +0 -1
- package/dist/solid/layout/PageHeader.jsx +1 -1
- package/dist/solid/navigation/Accordion.jsx +1 -1
- package/dist/solid/navigation/Breadcrumb.jsx +1 -1
- package/dist/solid/navigation/Stepper.jsx +1 -1
- package/dist/solid/navigation/Tabs.jsx +1 -1
- package/dist/solid/notifications/NotificationItem.jsx +1 -1
- package/dist/solid/notifications/NotificationPanel.jsx +1 -1
- package/dist/solid/notifications/NotificationsCenter.jsx +2 -2
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +1 -1
- package/dist/solid/overlay/Disclosure.jsx +1 -1
- package/dist/solid/overlay/Drawer.jsx +1 -1
- package/dist/solid/overlay/DropdownMenu.jsx +1 -1
- package/dist/solid/overlay/FloatingWindow.jsx +1 -1
- package/dist/solid/overlay/Modal.jsx +1 -1
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +1 -1
- package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +1 -1
- package/dist/solid/overlay/menu/MenuParts.jsx +1 -1
- package/dist/solid/overlay/popover/PopoverPanel.jsx +1 -1
- package/dist/solid/tree/TreeRow.jsx +1 -1
- package/dist/solid/tree/TreeSurface.jsx +1 -1
- package/dist/solid/widgets/SettingsField.jsx +1 -1
- package/package.json +3 -26
- package/dist/IconPicker-D2dZK0n3.cjs +0 -1
- package/dist/IconPicker-Fd2IE2Dm.js +0 -154
- package/dist/createResizableSidebar-C3I0HSwo.cjs +0 -1
- package/dist/iconSetRegistry-CMUqn1IQ.cjs +0 -1
- package/dist/iconSetRegistry-r8c82MmK.js +0 -28
- package/dist/icons/index.cjs +0 -1
- package/dist/icons/index.d.cts +0 -2
- package/dist/icons/index.d.ts +0 -2
- package/dist/icons/index.js +0 -6
- package/dist/icons/types.d.cts +0 -1
- package/dist/icons/types.d.ts +0 -1
- package/dist/server/CommandPalette-Dd8AW-WZ.cjs +0 -1
- package/dist/server/IconPicker-Bat7VYeo.cjs +0 -1
- package/dist/server/IconPicker-Dw4tbosO.js +0 -141
- package/dist/server/Modal-Jf89av-C.js +0 -373
- package/dist/server/Modal-W2cb3Xrx.cjs +0 -1
- package/dist/server/Popover-C2VwtQyu.cjs +0 -1
- package/dist/server/Stepper-RFkjF_fm.cjs +0 -1
- package/dist/server/ToggleButton-D9IXRIdl.cjs +0 -1
- package/dist/server/VpChevronDown-BMhGcdqG.cjs +0 -1
- package/dist/server/VpChevronDown-Ce6ZneQr.js +0 -18
- package/dist/server/VpExternalLink-C19K-ISd.cjs +0 -1
- package/dist/server/VpExternalLink-OGnThGLH.js +0 -46
- package/dist/server/VpWorkspaceTrusted-CPcushZ9.cjs +0 -1
- package/dist/server/createResizableSidebar-BymQA2Fs.cjs +0 -1
- package/dist/server/iconSetRegistry-u0H4_7nI.cjs +0 -1
- package/dist/server/iconSetRegistry-yPeAzzz7.js +0 -24
- package/dist/server/icons/index.cjs +0 -1
- package/dist/server/icons/index.js +0 -380
- package/dist/solid/icons/index.jsx +0 -2
- package/dist/solid/icons/types.js +0 -1
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { ssr as o, escape as e, ssrAttribute as n, ssrElement as se, mergeProps as Y, createComponent as l, memo as ge, ssrStyleProperty as Ce, ssrStyle as ie, Portal as ye } from "solid-js/web";
|
|
2
2
|
import { splitProps as te, Show as h, createUniqueId as R, For as N, onCleanup as be, createSignal as y, createEffect as oe, createMemo as E, on as ze } from "solid-js";
|
|
3
3
|
import { B as G } from "./Button-BhqhjFpY.js";
|
|
4
|
-
import { V as we } from "./
|
|
4
|
+
import { V as we, e as De, r as Me } from "./Popover-DOl2Wob7.js";
|
|
5
5
|
import { t as d } from "./i18n-CYq-dVvv.js";
|
|
6
6
|
import { V as Se } from "./VpSearch-CzVlR0ue.js";
|
|
7
7
|
import { V as ce } from "./VpClose-1RAQ20H9.js";
|
|
8
|
-
import { b as Ie, H as
|
|
9
|
-
import { u as X, F as
|
|
10
|
-
import { c as
|
|
11
|
-
import {
|
|
8
|
+
import { b as Ie, H as Te } from "./format-CW_FVfq2.js";
|
|
9
|
+
import { u as X, F as Oe } from "./Input-DaEN2JJd.js";
|
|
10
|
+
import { c as Re } from "./createSelectionIndicator-BnxXUMlT.js";
|
|
11
|
+
import { V as Ve, a as Fe, b as Pe, c as Ae, d as Ee, e as Ne } from "./VpUpload-_n-qdj9q.js";
|
|
12
12
|
import { u as xe } from "./useFloatingDropdown-BN4J092P.js";
|
|
13
13
|
import { O as Be } from "./OverlayScrollArea-221dfKyz.js";
|
|
14
14
|
import { c as Le } from "./SearchableSelect-0dP7bp0a.js";
|
|
15
|
-
import {
|
|
16
|
-
import { V as We, a as He } from "./VpChevronLeft-YI8H4bUq.js";
|
|
15
|
+
import { a as We, V as He } from "./VpChevronLeft-Dop81HaK.js";
|
|
17
16
|
import { V as qe } from "./VpChevronRight-CwRCE60O.js";
|
|
18
17
|
import { V as Ge } from "./VpCheck-XZpSme0g.js";
|
|
19
18
|
import { V as Ye } from "./VpMinus-Z3sgLAcV.js";
|
|
@@ -25,7 +24,7 @@ const Ue = "vk_buttonGroup_EFg13", Ke = "vk_horizontal_b6vu6", Ze = "vk_vertical
|
|
|
25
24
|
vertical: Ze
|
|
26
25
|
};
|
|
27
26
|
var Je = ['<div class="', '" role="group"', ">", "</div>"];
|
|
28
|
-
function
|
|
27
|
+
function Js(t) {
|
|
29
28
|
const a = () => t.orientation ?? "horizontal";
|
|
30
29
|
return o(Je, `${e(ue.buttonGroup, !0)} ${a() === "vertical" ? e(ue.vertical, !0) : e(ue.horizontal, !0)} ${e(t.class ?? "", !0)}`, n("aria-label", e(t.ariaLabel, !0), !1), e(t.children));
|
|
31
30
|
}
|
|
@@ -34,7 +33,7 @@ const Qe = "vk_splitButton_VoJkG", et = "vk_mainAction_KZb7j", tt = "vk_triggerA
|
|
|
34
33
|
mainAction: et,
|
|
35
34
|
triggerAction: tt
|
|
36
35
|
};
|
|
37
|
-
function
|
|
36
|
+
function Qs(t) {
|
|
38
37
|
const [a, r] = te(t, ["variant", "size", "disabled", "loading", "leadingIcon", "children", "onClick", "onDropdownClick", "dropdownAriaLabel", "dropdownActive", "class"]), s = () => a.variant ?? "secondary", i = () => a.size ?? "md";
|
|
39
38
|
return se("div", Y({
|
|
40
39
|
get class() {
|
|
@@ -110,7 +109,7 @@ const nt = "vk_wrapper_fViqM vk_inputChrome_VIaGv", at = "vk_disabled_t9DZ-", rt
|
|
|
110
109
|
sizeLg: ot
|
|
111
110
|
};
|
|
112
111
|
var ct = ['<button type="button"', ">", "</button>"], dt = ['<div class="', '"><span', ' aria-hidden="true">', "</span>", "", "</div>"];
|
|
113
|
-
function
|
|
112
|
+
function el(t) {
|
|
114
113
|
const [a, r] = te(t, ["size", "class", "disabled", "placeholder", "value", "onClear", "onKeyDown", "onInput"]);
|
|
115
114
|
let s;
|
|
116
115
|
const i = () => a.size === "sm" ? U.sizeSm : a.size === "lg" ? U.sizeLg : "", u = () => {
|
|
@@ -154,7 +153,7 @@ const ut = "vk_root_E7xzJ", vt = "vk_checked_YEju3", gt = "vk_disabled_vUHR0", b
|
|
|
154
153
|
label: pt
|
|
155
154
|
};
|
|
156
155
|
var kt = ["<span", ">", "</span>"], $t = ["<label", "><span", '><input type="checkbox" role="switch"', "", "", "><span", ' aria-hidden="true"><span', "></span></span></span>", "</label>"];
|
|
157
|
-
function
|
|
156
|
+
function tl(t) {
|
|
158
157
|
const a = X(), r = () => t.ariaLabel !== void 0 ? t.ariaLabelledBy : t.ariaLabelledBy ?? (a == null ? void 0 : a.labelId);
|
|
159
158
|
return o($t, n("class", e(Ie(q.root, q.checked, q.disabled, t.checked, !!t.disabled, t.size === "sm" ? q.sm : void 0, t.class), !0), !1), n("class", e(q.control, !0), !1), n("id", e(t.id, !0), !1) + n("class", e(q.input, !0), !1), n("checked", t.checked, !0), n("disabled", t.disabled, !0) + n("aria-label", e(t.ariaLabel, !0), !1) + n("aria-labelledby", e(r(), !0), !1) + n("aria-describedby", e(a == null ? void 0 : a.describedBy(), !0), !1), n("class", e(q.track, !0), !1), n("class", e(q.thumb, !0), !1), e(l(h, {
|
|
160
159
|
get when() {
|
|
@@ -175,7 +174,7 @@ const yt = "vk_root_4RSfB", wt = "vk_sm_BMyvq", St = "vk_disabled_fUR2z", It = "
|
|
|
175
174
|
input: Lt
|
|
176
175
|
};
|
|
177
176
|
var Ct = ['<div class="', '" style="', '"><input type="range"', "", "><div", ' aria-hidden="true"><div', "></div></div><div", ' aria-hidden="true"></div></div>'];
|
|
178
|
-
const
|
|
177
|
+
const nl = (t) => {
|
|
179
178
|
const a = X(), r = () => {
|
|
180
179
|
const s = t.max - t.min;
|
|
181
180
|
return s <= 0 ? 0 : (Math.min(Math.max(t.value, t.min), t.max) - t.min) / s * 100;
|
|
@@ -195,13 +194,13 @@ const al = (t) => {
|
|
|
195
194
|
label: Et
|
|
196
195
|
};
|
|
197
196
|
var Nt = ['<div role="radiogroup"', ' class="', '"><div', ' style="', '" aria-hidden="true"></div>', "</div>"], Wt = ["<span", ' aria-hidden="true">', "</span>"], Ht = ["<label", ' class="', '"><input type="radio"', "", "", ">", "<span", ">", "</span></label>"];
|
|
198
|
-
function
|
|
197
|
+
function al(t) {
|
|
199
198
|
const a = X(), r = t.name ?? `segmented-${R()}`, s = () => t.ariaLabel !== void 0 ? t.ariaLabelledBy : t.ariaLabelledBy ?? (a == null ? void 0 : a.labelId);
|
|
200
199
|
let i;
|
|
201
200
|
const {
|
|
202
201
|
indicator: u,
|
|
203
202
|
mounted: f
|
|
204
|
-
} =
|
|
203
|
+
} = Re({
|
|
205
204
|
root: () => i,
|
|
206
205
|
items: ":scope > label",
|
|
207
206
|
selected: ':scope > label[data-selected="true"]',
|
|
@@ -251,7 +250,7 @@ const qt = "vk_root_myb5X", Gt = "vk_horizontal_yUHaf", Yt = "vk_option_JiL1v",
|
|
|
251
250
|
};
|
|
252
251
|
var nn = ['<div role="radiogroup"', ' class="', '">', "</div>"], an = ["<span", ">", "</span>"], rn = ["<label", "><span", '><input type="radio"', "", "", "><span", ' aria-hidden="true"><span', "></span></span></span><span", "><span", ">", "</span>", "</span></label>"];
|
|
253
252
|
let sn = 0;
|
|
254
|
-
function
|
|
253
|
+
function rl(t) {
|
|
255
254
|
const a = t.name ?? `radiogroup-${++sn}`, r = () => t.orientation === "horizontal", s = X(), i = () => t.ariaLabel !== void 0 ? t.ariaLabelledBy : t.ariaLabelledBy ?? (s == null ? void 0 : s.labelId);
|
|
256
255
|
return o(nn, n("aria-label", e(t.ariaLabel, !0), !1) + n("aria-labelledby", e(i(), !0), !1) + n("aria-describedby", e(s == null ? void 0 : s.describedBy(), !0), !1) + n("aria-disabled", t.disabled ? "true" : e(void 0, !0), !1), `${e(M.root, !0)} ${r() ? e(M.horizontal, !0) : ""} ${e(t.class ?? "", !0)}`, e(l(N, {
|
|
257
256
|
get each() {
|
|
@@ -280,7 +279,7 @@ const ln = "vk_field_LG-sl", on = "vk_label_MOLBV", cn = "vk_required_DU-Ym", dn
|
|
|
280
279
|
helpText: vn
|
|
281
280
|
};
|
|
282
281
|
var gn = ["<span", ' aria-hidden="true">*</span>'], bn = ["<span", ">", "", "", "", "</span>"], me = ["<span", ">", "</span>"], _n = ["<span", ' role="alert">', "</span>"], mn = ['<div role="group"', ' class="', '">', "</div>"], hn = ['<label class="', '">', "</label>"];
|
|
283
|
-
function
|
|
282
|
+
function sl(t) {
|
|
284
283
|
const a = R(), r = R(), s = R(), i = R(), u = () => {
|
|
285
284
|
const C = [t.hint !== void 0 ? r : null, t.error !== void 0 ? s : null, b() ? i : null].filter((V) => V !== null);
|
|
286
285
|
return C.length > 0 ? C.join(" ") : void 0;
|
|
@@ -303,7 +302,7 @@ function ll(t) {
|
|
|
303
302
|
return b();
|
|
304
303
|
},
|
|
305
304
|
get children() {
|
|
306
|
-
return l(
|
|
305
|
+
return l(Te, {
|
|
307
306
|
get content() {
|
|
308
307
|
return t.helpText;
|
|
309
308
|
},
|
|
@@ -318,7 +317,7 @@ function ll(t) {
|
|
|
318
317
|
},
|
|
319
318
|
"aria-describedby": i,
|
|
320
319
|
get children() {
|
|
321
|
-
return l(
|
|
320
|
+
return l(Ve, {
|
|
322
321
|
"aria-hidden": "true"
|
|
323
322
|
});
|
|
324
323
|
}
|
|
@@ -326,7 +325,7 @@ function ll(t) {
|
|
|
326
325
|
}
|
|
327
326
|
});
|
|
328
327
|
}
|
|
329
|
-
}))), l(
|
|
328
|
+
}))), l(Oe, {
|
|
330
329
|
value: {
|
|
331
330
|
labelId: a,
|
|
332
331
|
describedBy: u,
|
|
@@ -401,7 +400,7 @@ function Yn(t) {
|
|
|
401
400
|
disabled: t.disabled ?? !1
|
|
402
401
|
};
|
|
403
402
|
}
|
|
404
|
-
function
|
|
403
|
+
function ll(t) {
|
|
405
404
|
const a = X(), [r, s] = y(!1), [i, u] = y(t.value), [f, b] = y(-1), [w, I] = y(!1);
|
|
406
405
|
let C, V;
|
|
407
406
|
const x = `combobox-${R()}`, W = (c) => `${x}-opt-${c}`, [B, F] = y({
|
|
@@ -612,7 +611,7 @@ function La(t) {
|
|
|
612
611
|
return a();
|
|
613
612
|
},
|
|
614
613
|
get children() {
|
|
615
|
-
return l(
|
|
614
|
+
return l(De, {
|
|
616
615
|
open: a,
|
|
617
616
|
onClose: () => r(!1),
|
|
618
617
|
anchor: () => s,
|
|
@@ -666,7 +665,7 @@ function La(t) {
|
|
|
666
665
|
}
|
|
667
666
|
})));
|
|
668
667
|
}
|
|
669
|
-
function
|
|
668
|
+
function il(t) {
|
|
670
669
|
return l(La, Y(t, {
|
|
671
670
|
includeTime: !0
|
|
672
671
|
}));
|
|
@@ -697,7 +696,7 @@ function Za(t) {
|
|
|
697
696
|
const a = ["B", "KB", "MB", "GB", "TB"], r = Math.floor(Math.log(t) / Math.log(1024));
|
|
698
697
|
return `${(t / Math.pow(1024, r)).toFixed(1)} ${a[r] ?? "B"}`;
|
|
699
698
|
}
|
|
700
|
-
function
|
|
699
|
+
function ol(t, a) {
|
|
701
700
|
if (!a || a.trim() === "*" || a.trim() === "*/*") return !0;
|
|
702
701
|
const r = a.split(",").map((u) => u.trim().toLowerCase()), s = t.name.toLowerCase(), i = (t.type || "").toLowerCase();
|
|
703
702
|
return r.some((u) => {
|
|
@@ -710,9 +709,9 @@ function cl(t, a) {
|
|
|
710
709
|
return i === u;
|
|
711
710
|
});
|
|
712
711
|
}
|
|
713
|
-
function
|
|
712
|
+
function cl(t) {
|
|
714
713
|
const [a, r] = y(!1);
|
|
715
|
-
return o(ja, `${e(S.wrapper, !0)} ${e(t.class ?? "", !0)}`, n("class", e(S.hiddenInput, !0), !1) + n("accept", e(t.accept, !0), !1), n("multiple", t.multiple ?? !0, !0), n("disabled", t.disabled, !0), n("tabindex", t.disabled ? -1 : 0, !1) + n("aria-disabled", e(t.disabled, !0), !1) + n("aria-label", e(t.title ?? d("Upload files by dropping or clicking"), !0), !1), `${e(S.dropArea, !0)} ${a() ? e(S.dragActive, !0) : ""} ${t.disabled ? e(S.disabled, !0) : ""}`, n("class", e(S.iconCircle, !0), !1), e(l(
|
|
714
|
+
return o(ja, `${e(S.wrapper, !0)} ${e(t.class ?? "", !0)}`, n("class", e(S.hiddenInput, !0), !1) + n("accept", e(t.accept, !0), !1), n("multiple", t.multiple ?? !0, !0), n("disabled", t.disabled, !0), n("tabindex", t.disabled ? -1 : 0, !1) + n("aria-disabled", e(t.disabled, !0), !1) + n("aria-label", e(t.title ?? d("Upload files by dropping or clicking"), !0), !1), `${e(S.dropArea, !0)} ${a() ? e(S.dragActive, !0) : ""} ${t.disabled ? e(S.disabled, !0) : ""}`, n("class", e(S.iconCircle, !0), !1), e(l(Fe, {
|
|
716
715
|
"aria-hidden": "true",
|
|
717
716
|
get class() {
|
|
718
717
|
return S.uploadIcon;
|
|
@@ -728,7 +727,7 @@ function dl(t) {
|
|
|
728
727
|
get each() {
|
|
729
728
|
return t.files;
|
|
730
729
|
},
|
|
731
|
-
children: (s, i) => o(Ka, n("class", e(S.fileItem, !0), !1), n("class", e(S.fileDetails, !0), !1), e(l(
|
|
730
|
+
children: (s, i) => o(Ka, n("class", e(S.fileItem, !0), !1), n("class", e(S.fileDetails, !0), !1), e(l(Pe, {
|
|
732
731
|
"aria-hidden": "true",
|
|
733
732
|
get class() {
|
|
734
733
|
return S.fileIcon;
|
|
@@ -779,7 +778,7 @@ function er(t) {
|
|
|
779
778
|
directory: ""
|
|
780
779
|
} : {}), void 0, !1);
|
|
781
780
|
}
|
|
782
|
-
function
|
|
781
|
+
function dl(t) {
|
|
783
782
|
const [a, r] = te(t, ["accept", "multiple", "directory", "onFiles", "onFile", "resetOnPick", "handleRef", "onClick", "disabled"]);
|
|
784
783
|
return [l(G, Y(r, {
|
|
785
784
|
get disabled() {
|
|
@@ -863,7 +862,7 @@ const Vr = {
|
|
|
863
862
|
label: t.label,
|
|
864
863
|
disabled: t.disabled ?? !1
|
|
865
864
|
};
|
|
866
|
-
function
|
|
865
|
+
function ul(t) {
|
|
867
866
|
const [a, r] = y(!1), [s, i] = y(""), [u, f] = y(-1), [b, w] = y({
|
|
868
867
|
top: "0px",
|
|
869
868
|
left: "0px",
|
|
@@ -899,7 +898,7 @@ function vl(t) {
|
|
|
899
898
|
return;
|
|
900
899
|
}
|
|
901
900
|
const c = v();
|
|
902
|
-
f((p) => Le(c, p)),
|
|
901
|
+
f((p) => Le(c, p)), Me(I, () => ne());
|
|
903
902
|
});
|
|
904
903
|
const ae = () => {
|
|
905
904
|
if (t.onSelectAll) {
|
|
@@ -1011,7 +1010,7 @@ const Ar = "vk_wrapper_BfGny vk_inputChrome_VIaGv", Er = "vk_disabled_JG5OY", Nr
|
|
|
1011
1010
|
}, jr = (t, a, r) => {
|
|
1012
1011
|
let s = t;
|
|
1013
1012
|
return a !== void 0 && s < a && (s = a), r !== void 0 && s > r && (s = r), s;
|
|
1014
|
-
},
|
|
1013
|
+
}, vl = (t, a, r) => {
|
|
1015
1014
|
if (t === "") return { kind: "empty" };
|
|
1016
1015
|
const s = Number(t);
|
|
1017
1016
|
if (Number.isNaN(s)) return { kind: "ignore" };
|
|
@@ -1019,7 +1018,7 @@ const Ar = "vk_wrapper_BfGny vk_inputChrome_VIaGv", Er = "vk_disabled_JG5OY", Nr
|
|
|
1019
1018
|
return i === s ? { kind: "value", value: s } : { kind: "outOfRange", value: s, clamped: i };
|
|
1020
1019
|
};
|
|
1021
1020
|
var Ur = ['<button type="button" class="', '"', ' tabindex="-1"', ">", "</button>"], Kr = ['<button type="button"', "", ' tabindex="-1"', ">", "</button>"], Zr = ["<div", ">", "", "", "</div>"], Jr = ["<span", ' role="status">', "</span>"];
|
|
1022
|
-
const
|
|
1021
|
+
const gl = (t) => {
|
|
1023
1022
|
const a = X(), [r, s] = te(t, ["value", "onValueChange", "size", "min", "max", "step", "hideSpinners", "decrementLabel", "incrementLabel", "class", "disabled"]), [i, u] = y(!1), f = R();
|
|
1024
1023
|
oe(ze(() => r.value, () => u(!1), {
|
|
1025
1024
|
defer: !0
|
|
@@ -1082,7 +1081,7 @@ const bl = (t) => {
|
|
|
1082
1081
|
return !r.hideSpinners;
|
|
1083
1082
|
},
|
|
1084
1083
|
get children() {
|
|
1085
|
-
return o(Kr, n("class", e(P.spinBtn, !0), !1), n("disabled", r.disabled, !0), n("aria-label", e(r.incrementLabel ?? d("Increase"), !0), !1), e(l(
|
|
1084
|
+
return o(Kr, n("class", e(P.spinBtn, !0), !1), n("disabled", r.disabled, !0), n("aria-label", e(r.incrementLabel ?? d("Increase"), !0), !1), e(l(Ae, {})));
|
|
1086
1085
|
}
|
|
1087
1086
|
}))), l(h, {
|
|
1088
1087
|
get when() {
|
|
@@ -1101,7 +1100,7 @@ const bl = (t) => {
|
|
|
1101
1100
|
toggleBtn: rs
|
|
1102
1101
|
};
|
|
1103
1102
|
var ss = ['<div class="', '">', '<button type="button"', "", ">", "</button></div>"];
|
|
1104
|
-
function
|
|
1103
|
+
function bl(t) {
|
|
1105
1104
|
const [a, r] = te(t, ["size", "class", "disabled", "placeholder", "value"]), s = X(), i = () => r["aria-describedby"] ?? (s == null ? void 0 : s.describedBy()), u = () => {
|
|
1106
1105
|
var C;
|
|
1107
1106
|
return r["aria-invalid"] ?? ((C = s == null ? void 0 : s.hasError) != null && C.call(s) ? "true" : void 0);
|
|
@@ -1131,14 +1130,14 @@ function _l(t) {
|
|
|
1131
1130
|
get "aria-required"() {
|
|
1132
1131
|
return f();
|
|
1133
1132
|
}
|
|
1134
|
-
}), void 0, !1), n("class", e(Q.toggleBtn, !0), !1), n("disabled", a.disabled, !0) + n("aria-label", b() ? e(d("Hide password"), !0) : e(d("Show password"), !0), !1) + n("title", b() ? e(d("Hide password"), !0) : e(d("Show password"), !0), !1) + n("tabindex", a.disabled ? -1 : 0, !1), b() ? e(l(
|
|
1133
|
+
}), void 0, !1), n("class", e(Q.toggleBtn, !0), !1), n("disabled", a.disabled, !0) + n("aria-label", b() ? e(d("Hide password"), !0) : e(d("Show password"), !0), !1) + n("title", b() ? e(d("Hide password"), !0) : e(d("Show password"), !0), !1) + n("tabindex", a.disabled ? -1 : 0, !1), b() ? e(l(Ee, {
|
|
1135
1134
|
"aria-hidden": "true"
|
|
1136
|
-
})) : e(l(
|
|
1135
|
+
})) : e(l(Ne, {
|
|
1137
1136
|
"aria-hidden": "true"
|
|
1138
1137
|
})));
|
|
1139
1138
|
}
|
|
1140
1139
|
const ls = new RegExp("\\p{Ll}", "u"), is = new RegExp("\\p{Lu}", "u"), os = new RegExp("\\p{Nd}", "u"), cs = /[^\p{L}\p{Nd}]/u, pe = 12, ke = 8;
|
|
1141
|
-
function
|
|
1140
|
+
function _l(t) {
|
|
1142
1141
|
const a = [
|
|
1143
1142
|
{
|
|
1144
1143
|
id: "length",
|
|
@@ -1166,7 +1165,7 @@ function ml(t) {
|
|
|
1166
1165
|
const i = t.length < ke || r < 2;
|
|
1167
1166
|
return { strength: s, rules: a, blockSubmit: i };
|
|
1168
1167
|
}
|
|
1169
|
-
function
|
|
1168
|
+
function ml(t, a, r) {
|
|
1170
1169
|
if (r === 0) return null;
|
|
1171
1170
|
switch (t) {
|
|
1172
1171
|
case "Home":
|
|
@@ -1191,7 +1190,7 @@ const ds = "vk_picker_i40uH", us = "vk_trigger_5Aknq", vs = "vk_menu_bw11d", gs
|
|
|
1191
1190
|
actions: ms
|
|
1192
1191
|
};
|
|
1193
1192
|
var hs = ["<div", ' role="listbox"', ">", "", "</div>"], fs = ['<div class="', '"><button type="button"', "", ' aria-haspopup="listbox"', ">", "</button>", "</div>"], ps = ["<div", ">", "</div>"], ks = ["<div", '><button type="button" role="option"', ' class="', '"', ">", "</button>", "</div>"];
|
|
1194
|
-
function
|
|
1193
|
+
function hl(t) {
|
|
1195
1194
|
const [a, r] = y(!1), s = () => t.open !== void 0, i = () => s() ? t.open === !0 : a(), u = (g) => {
|
|
1196
1195
|
var k;
|
|
1197
1196
|
s() ? (k = t.onOpenChange) == null || k.call(t, g) : r(g);
|
|
@@ -1260,7 +1259,7 @@ const $s = "vk_tagInput_I7e66", ys = "vk_sizeSm_fih-3", ws = "vk_disabled_bTRex"
|
|
|
1260
1259
|
input: xs
|
|
1261
1260
|
};
|
|
1262
1261
|
var Bs = ['<div class="', '" role="group"', ">", '<input type="text"', "", "></div>"], Ls = ['<button type="button"', ">", "</button>"], Cs = ["<span", "><span>", "</span>", "</span>"];
|
|
1263
|
-
function
|
|
1262
|
+
function fl(t) {
|
|
1264
1263
|
const [a, r] = y(""), s = () => t.size ?? "md";
|
|
1265
1264
|
return o(Bs, `${e(ee.tagInput, !0)} ${s() === "sm" ? e(ee.sizeSm, !0) : ""} ${t.disabled ? e(ee.disabled, !0) : ""} ${e(t.class ?? "", !0)}`, n("aria-label", e(t.ariaLabel ?? d("Tag input"), !0), !1), e(l(N, {
|
|
1266
1265
|
get each() {
|
|
@@ -1286,7 +1285,7 @@ const zs = "vk_toggleButton_l77vj", Ds = "vk_pressed_kVopQ", $e = {
|
|
|
1286
1285
|
toggleButton: zs,
|
|
1287
1286
|
pressed: Ds
|
|
1288
1287
|
};
|
|
1289
|
-
function
|
|
1288
|
+
function pl(t) {
|
|
1290
1289
|
const [a, r] = te(t, ["pressed", "onToggle", "class", "onClick", "variant"]);
|
|
1291
1290
|
return l(G, Y(r, {
|
|
1292
1291
|
get variant() {
|
|
@@ -1307,30 +1306,30 @@ function kl(t) {
|
|
|
1307
1306
|
}));
|
|
1308
1307
|
}
|
|
1309
1308
|
export {
|
|
1310
|
-
|
|
1311
|
-
|
|
1309
|
+
Js as B,
|
|
1310
|
+
ll as C,
|
|
1312
1311
|
La as D,
|
|
1313
|
-
|
|
1312
|
+
dl as F,
|
|
1314
1313
|
er as H,
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1314
|
+
ul as M,
|
|
1315
|
+
gl as N,
|
|
1316
|
+
bl as P,
|
|
1317
|
+
rl as R,
|
|
1318
|
+
el as S,
|
|
1319
|
+
fl as T,
|
|
1320
|
+
il as a,
|
|
1321
|
+
cl as b,
|
|
1322
|
+
sl as c,
|
|
1323
|
+
hl as d,
|
|
1324
|
+
al as e,
|
|
1325
|
+
nl as f,
|
|
1326
|
+
Qs as g,
|
|
1327
|
+
tl as h,
|
|
1328
|
+
pl as i,
|
|
1330
1329
|
jr as j,
|
|
1331
|
-
|
|
1330
|
+
_l as k,
|
|
1332
1331
|
Za as l,
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1332
|
+
ol as m,
|
|
1333
|
+
ml as n,
|
|
1334
|
+
vl as p
|
|
1336
1335
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ssr as o } from "solid-js/web";
|
|
2
|
+
import { c as r } from "./base-BLohC_tW.js";
|
|
3
|
+
var t = '<path d="M12 5v14m-4-4 4 4 4-4"></path>';
|
|
4
|
+
const i = /* @__PURE__ */ r({
|
|
5
|
+
name: "VpArrowDown",
|
|
6
|
+
a: {
|
|
7
|
+
fill: "none",
|
|
8
|
+
stroke: "currentColor",
|
|
9
|
+
"stroke-linecap": "round",
|
|
10
|
+
"stroke-linejoin": "round",
|
|
11
|
+
"stroke-width": "2",
|
|
12
|
+
viewBox: "0 0 24 24"
|
|
13
|
+
},
|
|
14
|
+
c: () => o(t)
|
|
15
|
+
});
|
|
16
|
+
var e = '<path d="M5 12h14m-4-4 4 4-4 4"></path>';
|
|
17
|
+
const s = /* @__PURE__ */ r({
|
|
18
|
+
name: "VpArrowRight",
|
|
19
|
+
a: {
|
|
20
|
+
fill: "none",
|
|
21
|
+
stroke: "currentColor",
|
|
22
|
+
"stroke-linecap": "round",
|
|
23
|
+
"stroke-linejoin": "round",
|
|
24
|
+
"stroke-width": "2",
|
|
25
|
+
viewBox: "0 0 24 24"
|
|
26
|
+
},
|
|
27
|
+
c: () => o(e)
|
|
28
|
+
});
|
|
29
|
+
var n = '<path d="M12 19V5M8 9l4-4 4 4"></path>';
|
|
30
|
+
const l = /* @__PURE__ */ r({
|
|
31
|
+
name: "VpArrowUp",
|
|
32
|
+
a: {
|
|
33
|
+
fill: "none",
|
|
34
|
+
stroke: "currentColor",
|
|
35
|
+
"stroke-linecap": "round",
|
|
36
|
+
"stroke-linejoin": "round",
|
|
37
|
+
"stroke-width": "2",
|
|
38
|
+
viewBox: "0 0 24 24"
|
|
39
|
+
},
|
|
40
|
+
c: () => o(n)
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
s as V,
|
|
44
|
+
l as a,
|
|
45
|
+
i as b
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("solid-js/web"),o=require("./base-CrwDbIhF.cjs");var e='<path d="M12 5v14m-4-4 4 4 4-4"></path>';const t=o.createIcon({name:"VpArrowDown",a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:()=>r.ssr(e)});var n='<path d="M5 12h14m-4-4 4 4-4 4"></path>';const s=o.createIcon({name:"VpArrowRight",a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:()=>r.ssr(n)});var i='<path d="M12 19V5M8 9l4-4 4 4"></path>';const p=o.createIcon({name:"VpArrowUp",a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:()=>r.ssr(i)});exports.VpArrowDown=t;exports.VpArrowRight=s;exports.VpArrowUp=p;
|
|
@@ -171,16 +171,16 @@ const z = /* @__PURE__ */ e({
|
|
|
171
171
|
});
|
|
172
172
|
export {
|
|
173
173
|
V,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
174
|
+
f as a,
|
|
175
|
+
w as b,
|
|
176
|
+
$ as c,
|
|
177
|
+
j as d,
|
|
178
|
+
_ as e,
|
|
179
|
+
L as f,
|
|
180
|
+
z as g,
|
|
181
|
+
B as h,
|
|
182
|
+
M as i,
|
|
183
|
+
C as j,
|
|
184
|
+
x as k,
|
|
185
|
+
g as l
|
|
186
186
|
};
|
|
@@ -105,12 +105,12 @@ const f = /* @__PURE__ */ e({
|
|
|
105
105
|
c: () => o(p)
|
|
106
106
|
});
|
|
107
107
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
w as V,
|
|
109
|
+
V as a,
|
|
110
|
+
f as b,
|
|
111
|
+
u as c,
|
|
112
|
+
v as d,
|
|
113
|
+
k as e,
|
|
114
|
+
d as f,
|
|
115
|
+
c as g
|
|
116
116
|
};
|
package/dist/server/{createResizableSidebar-IcXBM-BE.js → createResizableSidebar-94M9e5Oc.js}
RENAMED
|
@@ -2,8 +2,7 @@ import { ssr as f, ssrAttribute as n, escape as t, createComponent as o, Dynamic
|
|
|
2
2
|
import { createSignal as m, createMemo as P, createEffect as B, onCleanup as w, Show as b, batch as J } from "solid-js";
|
|
3
3
|
import { u as Q } from "./DesktopContextMenuContext-DJ3PnqAv.js";
|
|
4
4
|
import { a as U, s as Y } from "./headerIconOverrides-BCzeaBA1.js";
|
|
5
|
-
import { g as j, l as q } from "./
|
|
6
|
-
import { I as T } from "./IconPicker-Dw4tbosO.js";
|
|
5
|
+
import { g as j, l as q, I as T } from "./IconPicker-B4wK1LxJ.js";
|
|
7
6
|
import { B as x } from "./Button-BhqhjFpY.js";
|
|
8
7
|
import { t as D } from "./i18n-CYq-dVvv.js";
|
|
9
8
|
import { V as Z } from "./VpRefresh-CjGV1jUv.js";
|
|
@@ -82,7 +81,7 @@ const re = "vk_header_7CNKc", ie = "vk_headerLeft_-fa7V", le = "vk_headerActions
|
|
|
82
81
|
compact: ve
|
|
83
82
|
};
|
|
84
83
|
var fe = ["<div", ">", "<h2", ">", "</h2></div>"], me = ["<p", ">", "</p>"], _e = ["<div", ">", "", "</div>"], ke = ['<header class="', '"><div', ">", "<div>", "", "</div></div>", "</header>"], be = ["<h2", ">", "</h2>"];
|
|
85
|
-
function
|
|
84
|
+
function qe(e) {
|
|
86
85
|
return f(ke, `${t(s.header, !0)} ${e.variant === "compact" ? t(t(s.compact, !0), !0) : ""}`, n("class", t(s.headerLeft, !0), !1), t(o(b, {
|
|
87
86
|
get when() {
|
|
88
87
|
return X(() => e.fallbackIcon != null)() && e.pageId != null;
|
|
@@ -186,7 +185,7 @@ const Ie = "vk_handle_fHazX", ze = "vk_dragging_7oGBz", ye = "vk_horizontal_nwaL
|
|
|
186
185
|
indicator: $e
|
|
187
186
|
};
|
|
188
187
|
var we = ['<div role="separator" tabindex="0"', ' class="', '"><div', ' aria-hidden="true"></div></div>'];
|
|
189
|
-
function
|
|
188
|
+
function Te(e) {
|
|
190
189
|
const [a, r] = m(!1), i = () => e.orientation ?? "horizontal";
|
|
191
190
|
return w(() => {
|
|
192
191
|
}), f(we, n("aria-orientation", t(i(), !0), !1) + n("aria-valuenow", t(e.value, !0), !1) + n("aria-valuemin", t(e.min, !0), !1) + n("aria-valuemax", t(e.max, !0), !1) + n("aria-label", t(e.ariaLabel ?? "Resize separator", !0), !1), `${t(y.handle, !0)} ${i() === "horizontal" ? t(y.horizontal, !0) : t(y.vertical, !0)} ${a() ? t(y.dragging, !0) : ""} ${t(e.class ?? "", !0)}`, n("class", t(y.indicator, !0), !1));
|
|
@@ -205,7 +204,7 @@ const Le = "vk_container_DGAoE", Re = "vk_horizontal_GnS2m", Ce = "vk_vertical_o
|
|
|
205
204
|
handle: Ee
|
|
206
205
|
};
|
|
207
206
|
var Me = ['<div class="', '"><div', ' style="', '">', '</div><div role="separator" tabindex="0"', ' class="', '"><div', ' aria-hidden="true"></div></div><div', ">", "</div></div>"];
|
|
208
|
-
function
|
|
207
|
+
function Ze(e) {
|
|
209
208
|
const a = () => e.direction ?? "horizontal", r = () => e.minSize ?? 15, i = () => e.maxSize ?? 85, [u, I] = m(Math.min(i(), Math.max(r(), e.initialSize ?? 50))), [h, _] = m(!1);
|
|
210
209
|
return f(Me, `${t(d.container, !0)} ${a() === "horizontal" ? t(d.horizontal, !0) : t(d.vertical, !0)} ${h() ? t(d.dragging, !0) : ""} ${t(e.class ?? "", !0)}`, n("class", t(d.firstPane, !0), !1), F((a() === "horizontal" ? "width" : "height") + ":", `${t(u(), !0)}%`), t(o(W, {
|
|
211
210
|
get rootClass() {
|
|
@@ -242,7 +241,7 @@ function E(e) {
|
|
|
242
241
|
var a;
|
|
243
242
|
return ((a = M().sidebarCollapsed) == null ? void 0 : a[e]) === !0;
|
|
244
243
|
}
|
|
245
|
-
function
|
|
244
|
+
function pe(e) {
|
|
246
245
|
const [a, r] = m(
|
|
247
246
|
K(e.storageKey, e.defaultWidth, e.min, e.max)
|
|
248
247
|
), [i, u] = m(
|
|
@@ -292,9 +291,9 @@ function et(e) {
|
|
|
292
291
|
};
|
|
293
292
|
}
|
|
294
293
|
export {
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
qe as P,
|
|
295
|
+
Ze as R,
|
|
297
296
|
ne as a,
|
|
298
|
-
|
|
299
|
-
|
|
297
|
+
Te as b,
|
|
298
|
+
pe as c
|
|
300
299
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("solid-js/web"),a=require("solid-js"),M=require("./DesktopContextMenuContext-DMGNVjaR.cjs"),A=require("./headerIconOverrides-64lFnqTt.cjs"),z=require("./IconPicker-DoWUHbst.cjs"),w=require("./Button-CFOM8pOv.cjs"),$=require("./i18n-B9ccWgcR.cjs"),O=require("./VpRefresh-Khu7XHaq.cjs"),L=require("./OverlayScrollArea-D4e9D9Nd.cjs"),m=require("./preferencesCache-DJPCTPYx.cjs"),q=require("./windowRegistry-CGvOBUsw.cjs");var E=["<div",">","</div>"];function B(t){M.useDesktopContextMenu();const r=A.getHeaderIconOverrides(),[n,s]=a.createSignal(null),u=()=>n()===t.pageId,[b,g]=a.createSignal(null),v=a.createMemo(()=>r()[t.pageId]??(t.fallbackPageId?r()[t.fallbackPageId]:null)??null);a.createEffect(()=>{t.pageId,s(null)}),a.createEffect(()=>{const i=v();if(!i){g(null);return}const c=z.getIconSync(i.name);if(c){g(()=>c);return}g(null);let _=!1;a.onCleanup(()=>{_=!0}),z.loadIconSet().then(p=>{const I=v();_||!I||I.name!==i.name||g(()=>p[i.name]??null)})});const S=a.createMemo(()=>b()??t.fallbackIcon),f=i=>{const c=n();!c||c!==t.pageId||(A.setHeaderIconOverride(c,{set:"tb",name:i}),s(null))};return[e.ssr(E,e.ssrAttribute("class",e.escape(t.class,!0),!1)+e.ssrAttribute("aria-label",e.escape(t.ariaLabel,!0),!1),e.escape(e.createComponent(e.Dynamic,{get component(){return S()},get class(){return t.iconClass},"aria-hidden":"true"}))),e.createComponent(a.Show,{get when(){return u()},get children(){return e.createComponent(z.IconPicker,{open:u,onClose:()=>s(null),onSelect:f,get currentIconName(){var i;return((i=v())==null?void 0:i.name)??null}})}})]}const K="vk_header_7CNKc",N="vk_headerLeft_-fa7V",V="vk_headerActions_aaFA-",G="vk_headerIcon_c1sgk",J="vk_headerIconSvg_7jyQp",U="vk_titleRow_0A-NY",X="vk_backButton_GIWbu",F="vk_title_k1DVA",Q="vk_subtitle_RXfOz",Y="vk_refreshIconButton_bVyMc",j="vk_compact_e7ku-",l={header:K,headerLeft:N,headerActions:V,headerIcon:G,headerIconSvg:J,titleRow:U,backButton:X,title:F,subtitle:Q,refreshIconButton:Y,compact:j};var T=["<div",">","<h2",">","</h2></div>"],Z=["<p",">","</p>"],ee=["<div",">","","</div>"],te=['<header class="','"><div',">","<div>","","</div></div>","</header>"],ae=["<h2",">","</h2>"];function re(t){return e.ssr(te,`${e.escape(l.header,!0)} ${t.variant==="compact"?e.escape(e.escape(l.compact,!0),!0):""}`,e.ssrAttribute("class",e.escape(l.headerLeft,!0),!1),e.escape(e.createComponent(a.Show,{get when(){return e.memo(()=>t.fallbackIcon!=null)()&&t.pageId!=null},get children(){return e.createComponent(B,{get pageId(){return t.pageId},get fallbackPageId(){return t.fallbackIconPageId},get fallbackIcon(){return t.fallbackIcon},get class(){return l.headerIcon},get iconClass(){return l.headerIconSvg},get ariaLabel(){return t.iconAriaLabel},get onSettings(){return t.onSettings}})}})),e.escape(e.createComponent(a.Show,{get when(){return t.onBack!=null},get fallback(){return e.ssr(ae,e.ssrAttribute("class",e.escape(l.title,!0),!1),e.escape(t.title))},get children(){return e.ssr(T,e.ssrAttribute("class",e.escape(l.titleRow,!0),!1),e.escape(e.createComponent(w.Button,{variant:"secondary",size:"sm",get class(){return l.backButton},onClick:()=>t.onBack(),get children(){return["← ",t.backLabel??$.t("Back")]}})),e.ssrAttribute("class",e.escape(l.title,!0),!1),e.escape(t.title))}})),e.escape(e.createComponent(a.Show,{get when(){return t.subtitle!=null},get children(){return e.ssr(Z,e.ssrAttribute("class",e.escape(l.subtitle,!0),!1),e.escape(t.subtitle))}})),e.escape(e.createComponent(a.Show,{get when(){return t.onRefresh!=null||t.actions!=null},get children(){return e.ssr(ee,e.ssrAttribute("class",e.escape(l.headerActions,!0),!1),e.escape(e.createComponent(a.Show,{get when(){return t.onRefresh!=null},get children(){return e.createComponent(w.Button,{size:"md",variant:"secondary",iconOnly:!0,get class(){return l.refreshIconButton},get disabled(){return t.refreshDisabled},get loading(){return t.refreshing},loadingDelay:0,get"aria-label"(){return t.refreshAriaLabel??$.t("Refresh")},onClick:()=>t.onRefresh(),get children(){return e.createComponent(O.VpRefresh,{"aria-hidden":"true"})}})}})),e.escape(t.actions))}})))}const ne="vk_handle_fHazX",se="vk_dragging_7oGBz",ie="vk_horizontal_nwaLt",ce="vk_vertical_wzd-m",le="vk_indicator_aLgDs",k={handle:ne,dragging:se,horizontal:ie,vertical:ce,indicator:le};var oe=['<div role="separator" tabindex="0"',' class="','"><div',' aria-hidden="true"></div></div>'];function ue(t){const[r,n]=a.createSignal(!1),s=()=>t.orientation??"horizontal";return a.onCleanup(()=>{}),e.ssr(oe,e.ssrAttribute("aria-orientation",e.escape(s(),!0),!1)+e.ssrAttribute("aria-valuenow",e.escape(t.value,!0),!1)+e.ssrAttribute("aria-valuemin",e.escape(t.min,!0),!1)+e.ssrAttribute("aria-valuemax",e.escape(t.max,!0),!1)+e.ssrAttribute("aria-label",e.escape(t.ariaLabel??"Resize separator",!0),!1),`${e.escape(k.handle,!0)} ${s()==="horizontal"?e.escape(k.horizontal,!0):e.escape(k.vertical,!0)} ${r()?e.escape(k.dragging,!0):""} ${e.escape(t.class??"",!0)}`,e.ssrAttribute("class",e.escape(k.indicator,!0),!1))}const de="vk_container_DGAoE",ge="vk_horizontal_GnS2m",he="vk_vertical_oOyQM",ve="vk_firstPane_kDkKK",fe="vk_secondPane_61mm8",me="vk_paneScroll_-7IJF",be="vk_separator_Gadcl",_e="vk_separatorHorizontal_0e62B",ke="vk_separatorVertical_zIDqL",Se="vk_dragging_iMvN6",Ie="vk_handle_7YOEJ",o={container:de,horizontal:ge,vertical:he,firstPane:ve,secondPane:fe,paneScroll:me,separator:be,separatorHorizontal:_e,separatorVertical:ke,dragging:Se,handle:Ie};var pe=['<div class="','"><div',' style="','">','</div><div role="separator" tabindex="0"',' class="','"><div',' aria-hidden="true"></div></div><div',">","</div></div>"];function ze(t){const r=()=>t.direction??"horizontal",n=()=>t.minSize??15,s=()=>t.maxSize??85,[u,b]=a.createSignal(Math.min(s(),Math.max(n(),t.initialSize??50))),[g,v]=a.createSignal(!1);return e.ssr(pe,`${e.escape(o.container,!0)} ${r()==="horizontal"?e.escape(o.horizontal,!0):e.escape(o.vertical,!0)} ${g()?e.escape(o.dragging,!0):""} ${e.escape(t.class??"",!0)}`,e.ssrAttribute("class",e.escape(o.firstPane,!0),!1),e.ssrStyleProperty((r()==="horizontal"?"width":"height")+":",`${e.escape(u(),!0)}%`),e.escape(e.createComponent(L.OverlayScrollArea,{get rootClass(){return o.paneScroll},get children(){return t.first}})),e.ssrAttribute("aria-orientation",e.escape(r(),!0),!1)+e.ssrAttribute("aria-valuenow",e.escape(Math.round(u()),!0),!1)+e.ssrAttribute("aria-valuemin",e.escape(n(),!0),!1)+e.ssrAttribute("aria-valuemax",e.escape(s(),!0),!1)+e.ssrAttribute("aria-label",e.escape(t.ariaLabel??"Resize pane",!0),!1),`${e.escape(o.separator,!0)} ${r()==="horizontal"?e.escape(o.separatorHorizontal,!0):e.escape(o.separatorVertical,!0)}`,e.ssrAttribute("class",e.escape(o.handle,!0),!1),e.ssrAttribute("class",e.escape(o.secondPane,!0),!1),e.escape(e.createComponent(L.OverlayScrollArea,{get rootClass(){return o.paneScroll},get children(){return t.second}})))}function y(t,r,n){return Math.max(r,Math.min(n,t))}function ye(t,r,n,s){return typeof t!="number"||Number.isNaN(t)?r:y(t,n,s)}function R(t,r,n,s){var u;return ye((u=m.getUiLayout().sidebarWidths)==null?void 0:u[t],r,n,s)}function P(t){var r;return((r=m.getUiLayout().sidebarCollapsed)==null?void 0:r[t])===!0}function Ce(t){const[r,n]=a.createSignal(R(t.storageKey,t.defaultWidth,t.min,t.max)),[s,u]=a.createSignal(P(t.collapsedKey)),[b,g]=a.createSignal(!1),v=d=>{if(b())return;const h=d.detail;h&&(h.key!==t.storageKey&&h.key!==t.collapsedKey||a.batch(()=>{n(R(t.storageKey,t.defaultWidth,t.min,t.max)),u(P(t.collapsedKey))}))},S=m.getSidebarLayoutChangeEventName();window.addEventListener(S,v),a.onCleanup(()=>window.removeEventListener(S,v));let f=null,i=null,c=typeof window<"u"?window:globalThis;const _=()=>{f&&c.removeEventListener("mousemove",f),i&&c.removeEventListener("mouseup",i),f=null,i=null},p=(d,h)=>{d.preventDefault(),g(!0),c=q.getWindow$1(h);const W=h.getBoundingClientRect().left;f=H=>{n(y(H.clientX-W,t.min,t.max))},i=()=>{g(!1),m.setSidebarWidth(t.storageKey,r()),_()},c.addEventListener("mousemove",f),c.addEventListener("mouseup",i)},I=()=>{const d=!s();u(d),m.setSidebarCollapsed(t.collapsedKey,d)},C=d=>{const h=y(d,t.min,t.max);n(h),m.setSidebarWidth(t.storageKey,h)},x=d=>{C(r()+d)},D=()=>{C(t.defaultWidth)};return a.onCleanup(_),{width:r,collapsed:s,isResizing:b,startResize:p,resizeBy:x,resetWidth:D,toggleCollapse:I}}exports.PageHeader=re;exports.PageHeaderIcon=B;exports.ResizableSplitPane=ze;exports.ResizeHandle=ue;exports.createResizableSidebar=Ce;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../Button-CFOM8pOv.cjs"),e=require("../ToggleButton-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../Button-CFOM8pOv.cjs"),e=require("../ToggleButton-BSOdOzjN.cjs"),r=require("../Input-CjvD8w18.cjs"),a=require("../format-x-8syaS2.cjs"),n=require("../Textarea-BQf2lL59.cjs"),l=require("../CopyButton-C2jzn9tR.cjs"),t=require("../SearchableSelect-nMecJAYS.cjs"),c=require("../IconPicker-DoWUHbst.cjs"),o=require("../DateRangePicker-sX2m4194.cjs");exports.Button=i.Button;exports.ButtonGroup=e.ButtonGroup;exports.Combobox=e.Combobox;exports.DatePicker=e.DatePicker;exports.DateTimePicker=e.DateTimePicker;exports.Dropzone=e.Dropzone;exports.FilePickerButton=e.FilePickerButton;exports.FormField=e.FormField;exports.HiddenFileInput=e.HiddenFileInput;exports.MultiSearchableSelect=e.MultiSearchableSelect;exports.NumberInput=e.NumberInput;exports.PasswordInput=e.PasswordInput;exports.Picker=e.Picker;exports.RadioGroup=e.RadioGroup;exports.SearchField=e.SearchInput;exports.SearchInput=e.SearchInput;exports.SegmentedControl=e.SegmentedControl;exports.Slider=e.Slider;exports.SplitButton=e.SplitButton;exports.TagInput=e.TagInput;exports.Toggle=e.Toggle;exports.ToggleButton=e.ToggleButton;exports.clampToRange=e.clampToRange;exports.evaluatePassword=e.evaluatePassword;exports.formatFileSize=e.formatFileSize;exports.isFileAccepted=e.isFileAccepted;exports.nextOptionIndex=e.nextOptionIndex;exports.parseNumericInput=e.parseNumericInput;exports.FormFieldAriaProvider=r.FormFieldAriaProvider;exports.Input=r.Input;exports.PressableSurface=r.PressableSurface;exports.nativeControlLabelledBy=r.nativeControlLabelledBy;exports.useFormFieldAria=r.useFormFieldAria;exports.Checkbox=a.Checkbox;exports.buildSelectionItemClass=a.buildSelectionItemClass;exports.Textarea=n.Textarea;exports.CopyButton=l.CopyButton;exports.LISTBOX_NAVIGATION_KEYS=t.LISTBOX_NAVIGATION_KEYS;exports.SearchableSelect=t.SearchableSelect;exports.clampHighlightToOptions=t.clampHighlightToOptions;exports.firstSelectableIndex=t.firstSelectableIndex;exports.lastSelectableIndex=t.lastSelectableIndex;exports.nextSelectableIndex=t.nextSelectableIndex;exports.resolveHighlightForKey=t.resolveHighlightForKey;exports.IconPicker=c.IconPicker;exports.DateRangePicker=o.DateRangePicker;exports.endOfDay=o.endOfDay;exports.pickDayState=o.pickDayState;exports.startOfDay=o.startOfDay;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { B as s } from "../Button-BhqhjFpY.js";
|
|
2
|
-
import { B as o, C as r, D as l, a as i, b as n, F as p, c, H as u, M as m, N as d, P as S, d as x, R as I, S as f, S as b, e as F, f as g, g as P, T, h, i as B, j as k, k as C, l as D, m as y, n as O, p as A } from "../ToggleButton-
|
|
2
|
+
import { B as o, C as r, D as l, a as i, b as n, F as p, c, H as u, M as m, N as d, P as S, d as x, R as I, S as f, S as b, e as F, f as g, g as P, T, h, i as B, j as k, k as C, l as D, m as y, n as O, p as A } from "../ToggleButton-Cd8Dmcuj.js";
|
|
3
3
|
import { F as v, I as H, P as R, n as G, u as L } from "../Input-DaEN2JJd.js";
|
|
4
4
|
import { C as z, b as K } from "../format-CW_FVfq2.js";
|
|
5
5
|
import { T as _ } from "../Textarea-BTH48NET.js";
|
|
6
6
|
import { C as E } from "../CopyButton-CChDa2p3.js";
|
|
7
7
|
import { L as X, S as Y, c as q, f as J, l as Q, n as U, r as W } from "../SearchableSelect-0dP7bp0a.js";
|
|
8
|
-
import { I as $ } from "../IconPicker-
|
|
9
|
-
import { D as ae, e as se, p as te, s as oe } from "../DateRangePicker-
|
|
8
|
+
import { I as $ } from "../IconPicker-B4wK1LxJ.js";
|
|
9
|
+
import { D as ae, e as se, p as te, s as oe } from "../DateRangePicker-QV6U1adB.js";
|
|
10
10
|
export {
|
|
11
11
|
s as Button,
|
|
12
12
|
o as ButtonGroup,
|