@pubinfo-pr/core 0.203.1 → 0.203.2
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/{AppSetting-Dl8pVkN4.js → AppSetting-B7mE7iHt.js} +42 -42
- package/dist/{HButton-CzYSwI6a.js → HButton-Dt6qGhhR.js} +7 -7
- package/dist/{HCheckList-CHR-lWIq.js → HCheckList-DAkb0SBD.js} +15 -15
- package/dist/{HDivider-CXS9rl4C.js → HDivider-Ds5MMqtm.js} +3 -3
- package/dist/{HInput-CSVwTg1Q.js → HInput-BrsX9848.js} +10 -10
- package/dist/{HSlideover-Bc6OHPHe.js → HSlideover-CXBJxuQo.js} +120 -120
- package/dist/{HToggle-C_iVIpxv.js → HToggle-DEwBoDsw.js} +8 -8
- package/dist/{HTooltip-BHBHfrCD.js → HTooltip-DjAU-Evn.js} +6 -6
- package/dist/{HeaderFullMenu-DCF-gTCZ.js → HeaderFullMenu-l2890Bzo.js} +95 -94
- package/dist/HeaderThinMenu-5K6HXiQk.js +438 -0
- package/dist/PreferencesContent-CWHTBvHQ.js +701 -0
- package/dist/SettingBreadcrumb-p3hD9w-9.js +45 -0
- package/dist/SettingCopyright-BgWvocrJ.js +45 -0
- package/dist/{SettingEnableTransition-BBH52KKl.js → SettingEnableTransition-Cf57pLUk.js} +19 -19
- package/dist/SettingHome-tNMtRHoT.js +31 -0
- package/dist/SettingMenu-Du4Xhle1.js +111 -0
- package/dist/{SettingMode-BwhhUYlz.js → SettingMode-DGWqKJHt.js} +14 -14
- package/dist/SettingNavSearch-C_8VmQmD.js +31 -0
- package/dist/SettingOther-B9iOz69R.js +48 -0
- package/dist/SettingPage-C0TfmEKp.js +22 -0
- package/dist/{SettingTabbar-DuqQVRnz.js → SettingTabbar-C7ZQrcN4.js} +58 -58
- package/dist/{SettingThemes-Doo6Ax3u.js → SettingThemes-022eXO9f.js} +44 -44
- package/dist/SettingToolbar-Bh9aXNpl.js +50 -0
- package/dist/SettingTopbar-DjB1Izhm.js +49 -0
- package/dist/{SettingWidthMode-VaN0CrBa.js → SettingWidthMode-D7sRlBUK.js} +14 -14
- package/dist/auth-B65CJEOe.js +4242 -0
- package/dist/{change-organization-OjxZhWST.js → change-organization-sU8aNfhI.js} +38 -38
- package/dist/{change-password-B6kO54-d.js → change-password-Dxzhg43p.js} +73 -73
- package/dist/{chunk-EsrJ1IKw.js → chunk-CD4vhpVs.js} +3 -3
- package/dist/{components-DVIyiEVI.js → components-emseuaQx.js} +1584 -1584
- package/dist/core/request.d.ts +1 -1
- package/dist/core-4H5JBsa5.js +4885 -0
- package/dist/dist-7OjQvlya.js +468 -0
- package/dist/engine-oniguruma-uxNZ2DGJ.js +243 -0
- package/dist/features/settings/index.d.ts +90 -1
- package/dist/{form-EQ9eL9hv.js → form-C3VHofnN.js} +923 -443
- package/dist/index.js +3724 -3690
- package/dist/{modal-CSWipFvB.js → modal-Bl5xHbxa.js} +15510 -15790
- package/dist/{not-found-DBe-djEg.js → not-found-DbHOY5cU.js} +19 -19
- package/dist/{not-permission-DQzWCpOK.js → not-permission-DwERxb_u.js} +19 -19
- package/dist/overlayscrollbars-vue-mGyICRMi.js +1460 -0
- package/dist/{profile-DJ3gpjsS.js → profile-Dq66-Gsl.js} +3340 -3277
- package/dist/{question-line-BKVlJGUb.js → question-line-D7ecIumZ.js} +2 -2
- package/dist/{reload-DAR8dVYw.js → reload-CbuQgTlC.js} +4 -4
- package/dist/{right-VKgVtqD5.js → right-DYiPS7dU.js} +6 -6
- package/dist/style.css +1 -1
- package/dist/{tree-select-CTjWj5WT.js → tree-select-B8cTcGLa.js} +2575 -2256
- package/dist/watchDiff-CPZFtaOC.js +655 -0
- package/package.json +41 -41
- package/src/built-in/layout-component/composables/useLayoutVisible.ts +1 -1
- package/src/built-in/system-info/components/SystemInfo.vue +68 -66
- package/src/built-in/system-info/index.ts +4 -4
- package/src/core/ctx.ts +2 -2
- package/src/core/request.ts +1 -1
- package/src/features/components/PubinfoApp/index.vue +1 -0
- package/types/auto-imports.d.ts +63 -63
- package/types/components.d.ts +45 -1
- package/dist/HeaderFullMenu-BRhGliRJ.js +0 -6
- package/dist/HeaderThinMenu-B_7vLcQX.js +0 -6
- package/dist/HeaderThinMenu-PA12XAvb.js +0 -437
- package/dist/PreferencesContent-cll4nwwl.js +0 -695
- package/dist/SettingBreadcrumb-BvSc7VUo.js +0 -45
- package/dist/SettingCopyright-DcWLKM5d.js +0 -45
- package/dist/SettingHome-Cd43oJmB.js +0 -31
- package/dist/SettingMenu-CJsN4F1l.js +0 -111
- package/dist/SettingNavSearch-BhHUWem3.js +0 -31
- package/dist/SettingOther-CDY0jSVT.js +0 -48
- package/dist/SettingPage-B0WNvUlj.js +0 -22
- package/dist/SettingToolbar-CHV_dVJ9.js +0 -50
- package/dist/SettingTopbar-CF1K_XIt.js +0 -49
- package/dist/auth-CPSkJwBz.js +0 -3968
- package/dist/core-Bg2PEcZK.js +0 -4884
- package/dist/dist-DAb-7mqe.js +0 -468
- package/dist/engine-oniguruma-CUfGsBrF.js +0 -243
- package/dist/overlayscrollbars-vue-BOGU2FK-.js +0 -1436
- package/dist/pick-C42gkI1h.js +0 -10
- package/dist/watchDiff-C4eGkl9e.js +0 -397
- /package/dist/{_plugin-vue_export-helper-DaPiLSxE.js → _plugin-vue_export-helper-sUTDUeGO.js} +0 -0
- /package/dist/{json-S7wVLDnW.js → json-CC4oV-bd.js} +0 -0
- /package/dist/{useContext-D6pJCZez.js → useContext-DLtu9F7E.js} +0 -0
- /package/dist/{vitesse-dark-BsnBIHGG.js → vitesse-dark-CxkWMfh6.js} +0 -0
- /package/dist/{vitesse-light-Cs_6DF7j.js → vitesse-light-DY25e6F3.js} +0 -0
- /package/dist/{wasm-EvDQvzqp.js → wasm-DAU6f5s5.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as P$1 } from "./overlayscrollbars-vue-
|
|
1
|
+
import { t as P$1 } from "./overlayscrollbars-vue-mGyICRMi.js";
|
|
2
2
|
import * as e$1 from "vue";
|
|
3
3
|
import { Fragment, Teleport, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, h, inject, markRaw, mergeProps, nextTick, normalizeClass, onMounted, onUnmounted, openBlock, provide, reactive, ref, renderSlot, shallowRef, toDisplayString, unref, useSlots, watch, watchEffect, withCtx } from "vue";
|
|
4
4
|
function t$5(r) {
|
|
@@ -171,18 +171,18 @@ function P(r, p, { sorted: _ = !0, relativeTo: C = null, skipElements: D = [] }
|
|
|
171
171
|
if (p & 4) return Math.max(0, G.indexOf(C)) + 1;
|
|
172
172
|
if (p & 8) return G.length - 1;
|
|
173
173
|
throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
174
|
-
})(), Z = p & 32 ? { preventScroll: !0 } : {},
|
|
174
|
+
})(), Z = p & 32 ? { preventScroll: !0 } : {}, ee = 0, te = G.length, ne;
|
|
175
175
|
do {
|
|
176
|
-
if (
|
|
177
|
-
let r = X +
|
|
178
|
-
if (p & 16) r = (r +
|
|
176
|
+
if (ee >= te || ee + te <= 0) return 0;
|
|
177
|
+
let r = X + ee;
|
|
178
|
+
if (p & 16) r = (r + te) % te;
|
|
179
179
|
else {
|
|
180
180
|
if (r < 0) return 3;
|
|
181
|
-
if (r >=
|
|
181
|
+
if (r >= te) return 1;
|
|
182
182
|
}
|
|
183
|
-
|
|
184
|
-
} while (
|
|
185
|
-
return p & 6 && I(
|
|
183
|
+
ne = G[r], ne?.focus(Z), ee += Y;
|
|
184
|
+
} while (ne !== V.activeElement);
|
|
185
|
+
return p & 6 && I(ne) && ne.select(), 2;
|
|
186
186
|
}
|
|
187
187
|
function t$4() {
|
|
188
188
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
@@ -429,11 +429,11 @@ var A$1 = ((r) => (r[r.None = 1] = "None", r[r.InitialFocus = 2] = "InitialFocus
|
|
|
429
429
|
containers: r.containers,
|
|
430
430
|
previousActiveElement: Z
|
|
431
431
|
}, computed(() => X.value && !!(r.features & 8)));
|
|
432
|
-
let
|
|
433
|
-
function
|
|
432
|
+
let ee = n();
|
|
433
|
+
function te(r) {
|
|
434
434
|
let p = o$1(G);
|
|
435
435
|
p && ((r) => r())(() => {
|
|
436
|
-
u$5(
|
|
436
|
+
u$5(ee.value, {
|
|
437
437
|
[d$3.Forwards]: () => {
|
|
438
438
|
P(p, N$4.First, { skipElements: [r.relatedTarget] });
|
|
439
439
|
},
|
|
@@ -443,18 +443,18 @@ var A$1 = ((r) => (r[r.None = 1] = "None", r[r.InitialFocus = 2] = "InitialFocus
|
|
|
443
443
|
});
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
|
-
let
|
|
447
|
-
function
|
|
448
|
-
r.key === "Tab" && (
|
|
449
|
-
|
|
446
|
+
let ne = ref(!1);
|
|
447
|
+
function re(r) {
|
|
448
|
+
r.key === "Tab" && (ne.value = !0, requestAnimationFrame(() => {
|
|
449
|
+
ne.value = !1;
|
|
450
450
|
}));
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function ae(p) {
|
|
453
453
|
if (!X.value) return;
|
|
454
454
|
let _ = B(r.containers);
|
|
455
455
|
o$1(G) instanceof HTMLElement && _.add(o$1(G));
|
|
456
456
|
let C = p.relatedTarget;
|
|
457
|
-
C instanceof HTMLElement && C.dataset.headlessuiFocusGuard !== "true" && (N$2(_, C) || (
|
|
457
|
+
C instanceof HTMLElement && C.dataset.headlessuiFocusGuard !== "true" && (N$2(_, C) || (ne.value ? P(o$1(G), u$5(ee.value, {
|
|
458
458
|
[d$3.Forwards]: () => N$4.Next,
|
|
459
459
|
[d$3.Backwards]: () => N$4.Previous
|
|
460
460
|
}) | N$4.WrapAround, { relativeTo: p.target }) : p.target instanceof HTMLElement && S$1(p.target)));
|
|
@@ -462,22 +462,22 @@ var A$1 = ((r) => (r[r.None = 1] = "None", r[r.InitialFocus = 2] = "InitialFocus
|
|
|
462
462
|
return () => {
|
|
463
463
|
let D = {}, V = {
|
|
464
464
|
ref: G,
|
|
465
|
-
onKeydown:
|
|
466
|
-
onFocusout:
|
|
467
|
-
}, { features: Y, initialFocus: X, containers: Z, ...
|
|
465
|
+
onKeydown: re,
|
|
466
|
+
onFocusout: ae
|
|
467
|
+
}, { features: Y, initialFocus: X, containers: Z, ...ee } = r;
|
|
468
468
|
return h(Fragment, [
|
|
469
469
|
!!(Y & 4) && h(f$1, {
|
|
470
470
|
as: "button",
|
|
471
471
|
type: "button",
|
|
472
472
|
"data-headlessui-focus-guard": !0,
|
|
473
|
-
onFocus:
|
|
473
|
+
onFocus: te,
|
|
474
474
|
features: u$3.Focusable
|
|
475
475
|
}),
|
|
476
476
|
A$2({
|
|
477
477
|
ourProps: V,
|
|
478
478
|
theirProps: {
|
|
479
479
|
...p,
|
|
480
|
-
...
|
|
480
|
+
...ee
|
|
481
481
|
},
|
|
482
482
|
slot: D,
|
|
483
483
|
attrs: p,
|
|
@@ -488,7 +488,7 @@ var A$1 = ((r) => (r[r.None = 1] = "None", r[r.InitialFocus = 2] = "InitialFocus
|
|
|
488
488
|
as: "button",
|
|
489
489
|
type: "button",
|
|
490
490
|
"data-headlessui-focus-guard": !0,
|
|
491
|
-
onFocus:
|
|
491
|
+
onFocus: te,
|
|
492
492
|
features: u$3.Focusable
|
|
493
493
|
})
|
|
494
494
|
]);
|
|
@@ -867,23 +867,23 @@ var $ = defineComponent({
|
|
|
867
867
|
setup(r, { slots: p, attrs: _ }) {
|
|
868
868
|
let D = ref(null), G = computed(() => i$3(D)), Y = s$1(), X = inject(H$1, null), Z = ref(Y === !0 || X == null ? x(D.value) : X.resolveTarget());
|
|
869
869
|
Z.value && M(Z.value, (r) => r + 1);
|
|
870
|
-
let
|
|
870
|
+
let ee = ref(!1);
|
|
871
871
|
onMounted(() => {
|
|
872
|
-
|
|
872
|
+
ee.value = !0;
|
|
873
873
|
}), watchEffect(() => {
|
|
874
874
|
Y || X != null && (Z.value = X.resolveTarget());
|
|
875
875
|
});
|
|
876
|
-
let
|
|
876
|
+
let te = inject(d$1, null), ne = !1, oe = getCurrentInstance();
|
|
877
877
|
return watch(D, () => {
|
|
878
|
-
if (
|
|
878
|
+
if (ne || !te) return;
|
|
879
879
|
let r = o$1(D);
|
|
880
|
-
r && (onUnmounted(
|
|
880
|
+
r && (onUnmounted(te.register(r), oe), ne = !0);
|
|
881
881
|
}), onUnmounted(() => {
|
|
882
882
|
var r;
|
|
883
883
|
let p = G.value?.getElementById("headlessui-portal-root");
|
|
884
884
|
!p || Z.value !== p || M(Z.value, (r) => r - 1) || Z.value.children.length > 0 || (r = Z.value.parentElement) == null || r.removeChild(Z.value);
|
|
885
885
|
}), () => {
|
|
886
|
-
if (!
|
|
886
|
+
if (!ee.value || Z.value === null) return null;
|
|
887
887
|
let V = {
|
|
888
888
|
ref: D,
|
|
889
889
|
"data-headlessui-portal": ""
|
|
@@ -995,78 +995,78 @@ var A = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Ye = defineComponent({
|
|
|
995
995
|
onMounted(() => {
|
|
996
996
|
Y.value = !0;
|
|
997
997
|
});
|
|
998
|
-
let X = !1, Z = computed(() => r.role === "dialog" || r.role === "alertdialog" ? r.role : (X || (X = !0, console.warn(`Invalid role [${Z}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")),
|
|
998
|
+
let X = !1, Z = computed(() => r.role === "dialog" || r.role === "alertdialog" ? r.role : (X || (X = !0, console.warn(`Invalid role [${Z}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), ee = ref(0), te = l$2(), ne = computed(() => r.open === A && te !== null ? (te.value & i$1.Open) === i$1.Open : r.open), re = ref(null), oe = computed(() => i$3(re));
|
|
999
999
|
if (D({
|
|
1000
|
-
el:
|
|
1001
|
-
$el:
|
|
1002
|
-
}), !(r.open !== A ||
|
|
1003
|
-
if (typeof
|
|
1004
|
-
let
|
|
1005
|
-
portals:
|
|
1006
|
-
defaultContainers: [computed(() =>
|
|
1007
|
-
}),
|
|
1008
|
-
E(computed(() => Array.from(
|
|
1009
|
-
let
|
|
1010
|
-
E(computed(() => Array.from(
|
|
1000
|
+
el: re,
|
|
1001
|
+
$el: re
|
|
1002
|
+
}), !(r.open !== A || te !== null)) throw Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
1003
|
+
if (typeof ne.value != "boolean") throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${ne.value === A ? void 0 : r.open}`);
|
|
1004
|
+
let se = computed(() => Y.value && ne.value ? 0 : 1), de = computed(() => se.value === 0), fe = computed(() => ee.value > 1), _e = inject(H, null) !== null, [ve, ye] = q(), { resolveContainers: be, mainTreeNodeRef: xe, MainTreeNode: Ce } = N$1({
|
|
1005
|
+
portals: ve,
|
|
1006
|
+
defaultContainers: [computed(() => je.panelRef.value ?? re.value)]
|
|
1007
|
+
}), we = computed(() => fe.value ? "parent" : "leaf"), Ee = computed(() => te === null ? !1 : (te.value & i$1.Closing) === i$1.Closing), De = computed(() => _e || Ee.value ? !1 : de.value);
|
|
1008
|
+
E(computed(() => Array.from(oe.value?.querySelectorAll("body > *") ?? []).find((r) => r.id === "headlessui-portal-root" ? !1 : r.contains(o$1(xe)) && r instanceof HTMLElement) ?? null), De);
|
|
1009
|
+
let Oe = computed(() => fe.value ? !0 : de.value);
|
|
1010
|
+
E(computed(() => Array.from(oe.value?.querySelectorAll("[data-headlessui-portal]") ?? []).find((r) => r.contains(o$1(xe)) && r instanceof HTMLElement) ?? null), Oe), R$1({
|
|
1011
1011
|
type: "Dialog",
|
|
1012
|
-
enabled: computed(() =>
|
|
1013
|
-
element:
|
|
1012
|
+
enabled: computed(() => se.value === 0),
|
|
1013
|
+
element: re,
|
|
1014
1014
|
onUpdate: (r, p) => {
|
|
1015
1015
|
if (p === "Dialog") return u$5(r, {
|
|
1016
|
-
[s.Add]: () =>
|
|
1017
|
-
[s.Remove]: () => --
|
|
1016
|
+
[s.Add]: () => ee.value += 1,
|
|
1017
|
+
[s.Remove]: () => --ee.value
|
|
1018
1018
|
});
|
|
1019
1019
|
}
|
|
1020
1020
|
});
|
|
1021
|
-
let
|
|
1021
|
+
let ke = k({
|
|
1022
1022
|
name: "DialogDescription",
|
|
1023
|
-
slot: computed(() => ({ open:
|
|
1024
|
-
}),
|
|
1025
|
-
titleId:
|
|
1023
|
+
slot: computed(() => ({ open: ne.value }))
|
|
1024
|
+
}), Ae = ref(null), je = {
|
|
1025
|
+
titleId: Ae,
|
|
1026
1026
|
panelRef: ref(null),
|
|
1027
|
-
dialogState:
|
|
1027
|
+
dialogState: se,
|
|
1028
1028
|
setTitleId(r) {
|
|
1029
|
-
|
|
1029
|
+
Ae.value !== r && (Ae.value = r);
|
|
1030
1030
|
},
|
|
1031
1031
|
close() {
|
|
1032
1032
|
p("close", !1);
|
|
1033
1033
|
}
|
|
1034
1034
|
};
|
|
1035
|
-
provide(H,
|
|
1036
|
-
r.preventDefault(),
|
|
1037
|
-
}, computed(() => !(!
|
|
1038
|
-
let
|
|
1039
|
-
return E$1(
|
|
1040
|
-
|
|
1041
|
-
}), d$2(
|
|
1042
|
-
if (
|
|
1043
|
-
let p = o$1(
|
|
1035
|
+
provide(H, je), w$2(be, (r, p) => {
|
|
1036
|
+
r.preventDefault(), je.close(), nextTick(() => p?.focus());
|
|
1037
|
+
}, computed(() => !(!de.value || fe.value)));
|
|
1038
|
+
let Me = computed(() => !(fe.value || se.value !== 0));
|
|
1039
|
+
return E$1(oe.value?.defaultView, "keydown", (r) => {
|
|
1040
|
+
Me.value && (r.defaultPrevented || r.key === o.Escape && (r.preventDefault(), r.stopPropagation(), je.close()));
|
|
1041
|
+
}), d$2(oe, computed(() => !(Ee.value || se.value !== 0 || _e)), (r) => ({ containers: [...r.containers ?? [], be] })), watchEffect((r) => {
|
|
1042
|
+
if (se.value !== 0) return;
|
|
1043
|
+
let p = o$1(re);
|
|
1044
1044
|
if (!p) return;
|
|
1045
1045
|
let _ = new ResizeObserver((r) => {
|
|
1046
1046
|
for (let p of r) {
|
|
1047
1047
|
let r = p.target.getBoundingClientRect();
|
|
1048
|
-
r.x === 0 && r.y === 0 && r.width === 0 && r.height === 0 &&
|
|
1048
|
+
r.x === 0 && r.y === 0 && r.width === 0 && r.height === 0 && je.close();
|
|
1049
1049
|
}
|
|
1050
1050
|
});
|
|
1051
1051
|
_.observe(p), r(() => _.disconnect());
|
|
1052
1052
|
}), () => {
|
|
1053
1053
|
let { open: p, initialFocus: D, ...V } = r, Y = {
|
|
1054
1054
|
..._,
|
|
1055
|
-
ref:
|
|
1055
|
+
ref: re,
|
|
1056
1056
|
id: G,
|
|
1057
1057
|
role: Z.value,
|
|
1058
|
-
"aria-modal":
|
|
1059
|
-
"aria-labelledby":
|
|
1060
|
-
"aria-describedby":
|
|
1061
|
-
}, X = { open:
|
|
1062
|
-
return h(u$2, { force: !0 }, () => [h($, () => h(z, { target:
|
|
1058
|
+
"aria-modal": se.value === 0 ? !0 : void 0,
|
|
1059
|
+
"aria-labelledby": Ae.value,
|
|
1060
|
+
"aria-describedby": ke.value
|
|
1061
|
+
}, X = { open: se.value === 0 };
|
|
1062
|
+
return h(u$2, { force: !0 }, () => [h($, () => h(z, { target: re.value }, () => h(u$2, { force: !1 }, () => h(ue, {
|
|
1063
1063
|
initialFocus: D,
|
|
1064
|
-
containers:
|
|
1065
|
-
features:
|
|
1064
|
+
containers: be,
|
|
1065
|
+
features: de.value ? u$5(we.value, {
|
|
1066
1066
|
parent: ue.features.RestoreFocus,
|
|
1067
1067
|
leaf: ue.features.All & ~ue.features.FocusLock
|
|
1068
1068
|
}) : ue.features.None
|
|
1069
|
-
}, () => h(
|
|
1069
|
+
}, () => h(ye, {}, () => A$2({
|
|
1070
1070
|
ourProps: Y,
|
|
1071
1071
|
theirProps: {
|
|
1072
1072
|
...V,
|
|
@@ -1075,10 +1075,10 @@ var A = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Ye = defineComponent({
|
|
|
1075
1075
|
slot: X,
|
|
1076
1076
|
attrs: _,
|
|
1077
1077
|
slots: C,
|
|
1078
|
-
visible:
|
|
1078
|
+
visible: se.value === 0,
|
|
1079
1079
|
features: N$3.RenderStrategy | N$3.Static,
|
|
1080
1080
|
name: "Dialog"
|
|
1081
|
-
})))))), h(
|
|
1081
|
+
})))))), h(Ce)]);
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
1084
1084
|
});
|
|
@@ -1361,7 +1361,7 @@ var W = N$3.RenderStrategy, he = defineComponent({
|
|
|
1361
1361
|
function Z() {
|
|
1362
1362
|
G.value |= i$1.Closing, p("beforeLeave");
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function ee() {
|
|
1365
1365
|
G.value &= ~i$1.Closing, p("afterLeave");
|
|
1366
1366
|
}
|
|
1367
1367
|
if (!me() && s$2()) return () => h(Se, {
|
|
@@ -1369,72 +1369,72 @@ var W = N$3.RenderStrategy, he = defineComponent({
|
|
|
1369
1369
|
onBeforeEnter: Y,
|
|
1370
1370
|
onAfterEnter: X,
|
|
1371
1371
|
onBeforeLeave: Z,
|
|
1372
|
-
onAfterLeave:
|
|
1372
|
+
onAfterLeave: ee
|
|
1373
1373
|
}, C);
|
|
1374
|
-
let
|
|
1374
|
+
let te = ref(null), ne = computed(() => r.unmount ? S.Unmount : S.Hidden);
|
|
1375
1375
|
D({
|
|
1376
|
-
el:
|
|
1377
|
-
$el:
|
|
1376
|
+
el: te,
|
|
1377
|
+
$el: te
|
|
1378
1378
|
});
|
|
1379
|
-
let { show:
|
|
1380
|
-
!
|
|
1379
|
+
let { show: re, appear: ae } = Te(), { register: oe, unregister: se } = ge(), le = ref(re.value ? "visible" : "hidden"), _e = { value: !0 }, ve = i$5(), ye = { value: !1 }, be = Q(() => {
|
|
1380
|
+
!ye.value && le.value !== "hidden" && (le.value = "hidden", se(ve), ee());
|
|
1381
1381
|
});
|
|
1382
1382
|
onMounted(() => {
|
|
1383
|
-
onUnmounted(
|
|
1383
|
+
onUnmounted(oe(ve));
|
|
1384
1384
|
}), watchEffect(() => {
|
|
1385
|
-
if (
|
|
1386
|
-
if (
|
|
1387
|
-
|
|
1385
|
+
if (ne.value === S.Hidden && ve) {
|
|
1386
|
+
if (re.value && le.value !== "visible") {
|
|
1387
|
+
le.value = "visible";
|
|
1388
1388
|
return;
|
|
1389
1389
|
}
|
|
1390
|
-
u$5(
|
|
1391
|
-
hidden: () =>
|
|
1392
|
-
visible: () =>
|
|
1390
|
+
u$5(le.value, {
|
|
1391
|
+
hidden: () => se(ve),
|
|
1392
|
+
visible: () => oe(ve)
|
|
1393
1393
|
});
|
|
1394
1394
|
}
|
|
1395
1395
|
});
|
|
1396
|
-
let
|
|
1396
|
+
let xe = g(r.enter), Ce = g(r.enterFrom), we = g(r.enterTo), De = g(r.entered), Oe = g(r.leave), ke = g(r.leaveFrom), Ae = g(r.leaveTo);
|
|
1397
1397
|
onMounted(() => {
|
|
1398
1398
|
watchEffect(() => {
|
|
1399
|
-
if (
|
|
1400
|
-
let r = o$1(
|
|
1399
|
+
if (le.value === "visible") {
|
|
1400
|
+
let r = o$1(te);
|
|
1401
1401
|
if (r instanceof Comment && r.data === "") throw Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
1402
1402
|
}
|
|
1403
1403
|
});
|
|
1404
1404
|
});
|
|
1405
|
-
function
|
|
1406
|
-
let p =
|
|
1407
|
-
!_ || !(_ instanceof HTMLElement) || p || (
|
|
1408
|
-
|
|
1409
|
-
}) : L$1(_,
|
|
1410
|
-
|
|
1405
|
+
function je(r) {
|
|
1406
|
+
let p = _e.value && !ae.value, _ = o$1(te);
|
|
1407
|
+
!_ || !(_ instanceof HTMLElement) || p || (ye.value = !0, re.value && Y(), re.value || Z(), r(re.value ? L$1(_, xe, Ce, we, De, (r) => {
|
|
1408
|
+
ye.value = !1, r === g$1.Finished && X();
|
|
1409
|
+
}) : L$1(_, Oe, ke, Ae, De, (r) => {
|
|
1410
|
+
ye.value = !1, r === g$1.Finished && (L(be) || (le.value = "hidden", se(ve), ee()));
|
|
1411
1411
|
})));
|
|
1412
1412
|
}
|
|
1413
1413
|
return onMounted(() => {
|
|
1414
|
-
watch([
|
|
1415
|
-
|
|
1414
|
+
watch([re], (r, p, _) => {
|
|
1415
|
+
je(_), _e.value = !1;
|
|
1416
1416
|
}, { immediate: !0 });
|
|
1417
|
-
}), provide(N,
|
|
1417
|
+
}), provide(N, be), t$3(computed(() => u$5(le.value, {
|
|
1418
1418
|
visible: i$1.Open,
|
|
1419
1419
|
hidden: i$1.Closed
|
|
1420
1420
|
}) | G.value)), () => {
|
|
1421
|
-
let { appear: p, show: D, enter: V, enterFrom: G, enterTo: Y, entered: X, leave: Z, leaveFrom:
|
|
1421
|
+
let { appear: p, show: D, enter: V, enterFrom: G, enterTo: Y, entered: X, leave: Z, leaveFrom: ee, leaveTo: ne, ...ie } = r, oe = { ref: te };
|
|
1422
1422
|
return A$2({
|
|
1423
1423
|
theirProps: {
|
|
1424
|
-
...
|
|
1425
|
-
...
|
|
1424
|
+
...ie,
|
|
1425
|
+
...ae.value && re.value && c$2.isServer ? { class: normalizeClass([
|
|
1426
1426
|
_.class,
|
|
1427
|
-
|
|
1428
|
-
...
|
|
1429
|
-
...
|
|
1427
|
+
ie.class,
|
|
1428
|
+
...xe,
|
|
1429
|
+
...Ce
|
|
1430
1430
|
]) } : {}
|
|
1431
1431
|
},
|
|
1432
|
-
ourProps:
|
|
1432
|
+
ourProps: oe,
|
|
1433
1433
|
slot: {},
|
|
1434
1434
|
slots: C,
|
|
1435
1435
|
attrs: _,
|
|
1436
1436
|
features: W,
|
|
1437
|
-
visible:
|
|
1437
|
+
visible: le.value === "visible",
|
|
1438
1438
|
name: "TransitionChild"
|
|
1439
1439
|
});
|
|
1440
1440
|
};
|
|
@@ -1500,7 +1500,7 @@ var W = N$3.RenderStrategy, he = defineComponent({
|
|
|
1500
1500
|
});
|
|
1501
1501
|
let Y = ref(G.value ? "visible" : "hidden"), X = Q(() => {
|
|
1502
1502
|
Y.value = "hidden";
|
|
1503
|
-
}), Z = ref(!0),
|
|
1503
|
+
}), Z = ref(!0), ee = {
|
|
1504
1504
|
show: G,
|
|
1505
1505
|
appear: computed(() => r.appear || !Z.value)
|
|
1506
1506
|
};
|
|
@@ -1508,7 +1508,7 @@ var W = N$3.RenderStrategy, he = defineComponent({
|
|
|
1508
1508
|
watchEffect(() => {
|
|
1509
1509
|
Z.value = !1, G.value ? Y.value = "visible" : L(X) || (Y.value = "hidden");
|
|
1510
1510
|
});
|
|
1511
|
-
}), provide(N, X), provide(R,
|
|
1511
|
+
}), provide(N, X), provide(R, ee), () => {
|
|
1512
1512
|
let D = T$1(r, [
|
|
1513
1513
|
"show",
|
|
1514
1514
|
"appear",
|
|
@@ -1593,21 +1593,21 @@ var close_default = markRaw({
|
|
|
1593
1593
|
},
|
|
1594
1594
|
emits: ["update:modelValue", "close"],
|
|
1595
1595
|
setup(p, { emit: _ }) {
|
|
1596
|
-
let C = p, D = _,
|
|
1596
|
+
let C = p, D = _, ne = useSlots(), re = ref({
|
|
1597
1597
|
enter: "ease-in-out duration-500",
|
|
1598
1598
|
enterFrom: "opacity-0",
|
|
1599
1599
|
enterTo: "opacity-100",
|
|
1600
1600
|
leave: "ease-in-out duration-500",
|
|
1601
1601
|
leaveFrom: "opacity-100",
|
|
1602
1602
|
leaveTo: "opacity-0"
|
|
1603
|
-
}),
|
|
1603
|
+
}), ie = computed(() => ({
|
|
1604
1604
|
enter: "transform transition ease-in-out duration-300",
|
|
1605
1605
|
leave: "transform transition ease-in-out duration-200",
|
|
1606
1606
|
enterFrom: C.side === "left" ? "-translate-x-full" : "translate-x-full",
|
|
1607
1607
|
enterTo: "translate-x-0",
|
|
1608
1608
|
leaveFrom: "translate-x-0",
|
|
1609
1609
|
leaveTo: C.side === "left" ? "-translate-x-full" : "translate-x-full"
|
|
1610
|
-
})),
|
|
1610
|
+
})), ae = computed({
|
|
1611
1611
|
get() {
|
|
1612
1612
|
return C.modelValue;
|
|
1613
1613
|
},
|
|
@@ -1615,28 +1615,28 @@ var close_default = markRaw({
|
|
|
1615
1615
|
D("update:modelValue", r);
|
|
1616
1616
|
}
|
|
1617
1617
|
});
|
|
1618
|
-
function
|
|
1619
|
-
|
|
1618
|
+
function oe() {
|
|
1619
|
+
ae.value = !1, D("close");
|
|
1620
1620
|
}
|
|
1621
1621
|
return (_, C) => (openBlock(), createBlock(unref(Se), {
|
|
1622
1622
|
as: "template",
|
|
1623
1623
|
appear: p.appear,
|
|
1624
|
-
show: unref(
|
|
1624
|
+
show: unref(ae)
|
|
1625
1625
|
}, {
|
|
1626
1626
|
default: withCtx(() => [createVNode(unref(Ye), {
|
|
1627
1627
|
class: normalizeClass(["fixed inset-0 z-1000 flex", { "justify-end": p.side === "right" }]),
|
|
1628
|
-
onClose: C[0] ||= (r) => !p.preventClose &&
|
|
1628
|
+
onClose: C[0] ||= (r) => !p.preventClose && oe()
|
|
1629
1629
|
}, {
|
|
1630
1630
|
default: withCtx(() => [createVNode(unref(he), mergeProps({
|
|
1631
1631
|
as: "template",
|
|
1632
1632
|
appear: p.appear
|
|
1633
|
-
}, unref(
|
|
1633
|
+
}, unref(re)), {
|
|
1634
1634
|
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["fixed inset-0 bg-stone-2/75 transition-opacity dark:bg-stone-8/75", { "backdrop-blur-sm": p.overlay }]) }, null, 2)]),
|
|
1635
1635
|
_: 1
|
|
1636
1636
|
}, 16, ["appear"]), createVNode(unref(he), mergeProps({
|
|
1637
1637
|
as: "template",
|
|
1638
1638
|
appear: p.appear
|
|
1639
|
-
}, unref(
|
|
1639
|
+
}, unref(ie)), {
|
|
1640
1640
|
default: withCtx(() => [createVNode(unref(Ge), {
|
|
1641
1641
|
relative: "",
|
|
1642
1642
|
"max-w-md": "",
|
|
@@ -1660,7 +1660,7 @@ var close_default = markRaw({
|
|
|
1660
1660
|
_: 1
|
|
1661
1661
|
}), createVNode(unref(close_default), {
|
|
1662
1662
|
"cursor-pointer": "",
|
|
1663
|
-
onClick:
|
|
1663
|
+
onClick: oe
|
|
1664
1664
|
})]),
|
|
1665
1665
|
createVNode(unref(Je), {
|
|
1666
1666
|
"m-0": "",
|
|
@@ -1680,7 +1680,7 @@ var close_default = markRaw({
|
|
|
1680
1680
|
})]),
|
|
1681
1681
|
_: 3
|
|
1682
1682
|
}),
|
|
1683
|
-
|
|
1683
|
+
ne.footer ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_.$slots, "footer")])) : createCommentVNode("", !0)
|
|
1684
1684
|
]),
|
|
1685
1685
|
_: 3
|
|
1686
1686
|
})]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-sUTDUeGO.js";
|
|
2
2
|
import { computed, createElementBlock, createElementVNode, defineComponent, isRef, openBlock, unref, vModelCheckbox, withDirectives } from "vue";
|
|
3
3
|
var _hoisted_1 = { class: "switch" }, HToggle_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "HToggle",
|
|
@@ -12,19 +12,19 @@ var _hoisted_1 = { class: "switch" }, HToggle_default = /* @__PURE__ */ _plugin_
|
|
|
12
12
|
offIcon: {}
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:modelValue"],
|
|
15
|
-
setup(e, { emit:
|
|
16
|
-
let
|
|
15
|
+
setup(e, { emit: n }) {
|
|
16
|
+
let r = e, i = n, a = computed({
|
|
17
17
|
get() {
|
|
18
|
-
return
|
|
18
|
+
return r.modelValue;
|
|
19
19
|
},
|
|
20
20
|
set(e) {
|
|
21
|
-
|
|
21
|
+
i("update:modelValue", e);
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
return (e,
|
|
25
|
-
"onUpdate:modelValue":
|
|
24
|
+
return (e, t) => (openBlock(), createElementBlock("label", _hoisted_1, [withDirectives(createElementVNode("input", {
|
|
25
|
+
"onUpdate:modelValue": t[0] ||= (e) => isRef(a) ? a.value = e : null,
|
|
26
26
|
type: "checkbox"
|
|
27
|
-
}, null, 512), [[vModelCheckbox, unref(
|
|
27
|
+
}, null, 512), [[vModelCheckbox, unref(a)]]), t[1] ||= createElementVNode("span", { class: "bg-[#d6d3d1] dark:bg-stone-5" }, null, -1)]));
|
|
28
28
|
}
|
|
29
29
|
}), [["__scopeId", "data-v-1e5b7c03"]]);
|
|
30
30
|
export { HToggle_default as t };
|
|
@@ -2,12 +2,12 @@ import { createBlock, createTextVNode, defineComponent, guardReactiveProps, norm
|
|
|
2
2
|
var HTooltip_default = /* @__PURE__ */ defineComponent({
|
|
3
3
|
__name: "HTooltip",
|
|
4
4
|
props: { text: { default: "" } },
|
|
5
|
-
setup(
|
|
6
|
-
return (
|
|
7
|
-
let
|
|
8
|
-
return openBlock(), createBlock(
|
|
9
|
-
popper: withCtx(() => [renderSlot(
|
|
10
|
-
default: withCtx(() => [renderSlot(
|
|
5
|
+
setup(e) {
|
|
6
|
+
return (t, n) => {
|
|
7
|
+
let r = resolveComponent("VTooltip");
|
|
8
|
+
return openBlock(), createBlock(r, normalizeProps(guardReactiveProps(t.$attrs)), {
|
|
9
|
+
popper: withCtx(() => [renderSlot(t.$slots, "text", {}, () => [createTextVNode(toDisplayString(e.text), 1)])]),
|
|
10
|
+
default: withCtx(() => [renderSlot(t.$slots, "default")]),
|
|
11
11
|
_: 3
|
|
12
12
|
}, 16);
|
|
13
13
|
};
|