sprintify-ui 0.6.37 → 0.6.38
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/sprintify-ui.es.js +104 -101
- package/dist/types/src/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/composables/inputSize.ts +5 -2
- package/src/index.ts +7 -0
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Mb = Object.defineProperty;
|
|
2
2
|
var Ib = (n, t, e) => t in n ? Mb(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var ar = (n, t, e) => (Ib(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { defineComponent as Se, computed as L, inject as wt, resolveComponent as Xt, openBlock as B, createBlock as De, withCtx as ge, createElementVNode as j, normalizeClass as de, unref as T, withModifiers as Wn, renderSlot as Pe, createElementBlock as K, createCommentVNode as ke, toDisplayString as Me, getCurrentScope as Kp, onScopeDispose as Qp, toRef as Nb, readonly as lo, customRef as Pb, ref as oe, watchEffect as un, h as xt, shallowRef as id, watch as ut, shallowReadonly as eo, Fragment as Je, Teleport as Cr, normalizeStyle as ot, createVNode as xe, Transition as Rn, provide as gt, createTextVNode as zn, onBeforeUnmount as Fn, resolveDynamicComponent as hr, withDirectives as jn, mergeProps as Zt, renderList as dt, onMounted as pt, nextTick as
|
|
4
|
+
import { defineComponent as Se, computed as L, inject as wt, resolveComponent as Xt, openBlock as B, createBlock as De, withCtx as ge, createElementVNode as j, normalizeClass as de, unref as T, withModifiers as Wn, renderSlot as Pe, createElementBlock as K, createCommentVNode as ke, toDisplayString as Me, getCurrentScope as Kp, onScopeDispose as Qp, toRef as Nb, readonly as lo, customRef as Pb, ref as oe, watchEffect as un, h as xt, shallowRef as id, watch as ut, shallowReadonly as eo, Fragment as Je, Teleport as Cr, normalizeStyle as ot, createVNode as xe, Transition as Rn, provide as gt, createTextVNode as zn, onBeforeUnmount as Fn, resolveDynamicComponent as hr, withDirectives as jn, mergeProps as Zt, renderList as dt, onMounted as pt, nextTick as Ut, TransitionGroup as Zp, isRef as ai, normalizeProps as zt, guardReactiveProps as jt, vShow as Ir, Comment as Bb, useSlots as Xp, createSlots as Jp, cloneVNode as Lb, onUnmounted as An, reactive as od, withKeys as Vl, vModelText as sc, createStaticVNode as em, getCurrentInstance as zb, vModelSelect as jb } from "vue";
|
|
5
5
|
import Fb from "axios";
|
|
6
6
|
import { uniqueId as tm, get as li, isArray as tn, cloneDeep as Kt, isObject as ba, isString as ws, throttle as ad, debounce as nr, truncate as $b, trim as nm, padStart as Tl, isNumber as yo, merge as Wl, range as Qr, set as bu, isEqual as rm, isPlainObject as Hb, reject as qb, round as Lf, capitalize as Ub } from "lodash";
|
|
7
|
-
import
|
|
7
|
+
import zf from "qs";
|
|
8
8
|
import { defineStore as xs } from "pinia";
|
|
9
|
-
import jf from "
|
|
9
|
+
import { unrefElement as so, useEventListener as jf, tryOnScopeDispose as Vb, useInfiniteScroll as Wb, useResizeObserver as Ao, useMutationObserver as im, useScroll as om, useElementSize as ld, useWindowSize as Gb, useElementBounding as Yb } from "@vueuse/core";
|
|
10
10
|
import { useRoute as am, useRouter as lm, useLink as Kb } from "vue-router";
|
|
11
11
|
import { DateTime as an, Info as Qb } from "luxon";
|
|
12
12
|
function Zb() {
|
|
@@ -2563,13 +2563,13 @@ const fr = {
|
|
|
2563
2563
|
}
|
|
2564
2564
|
};
|
|
2565
2565
|
function Vi(n) {
|
|
2566
|
-
const t = cd();
|
|
2566
|
+
const t = cd(), e = qt.props.size ?? "md";
|
|
2567
2567
|
return {
|
|
2568
2568
|
size: L(() => {
|
|
2569
2569
|
if (t.smaller("sm").value)
|
|
2570
2570
|
return "md";
|
|
2571
|
-
let
|
|
2572
|
-
return
|
|
2571
|
+
let i = T(n);
|
|
2572
|
+
return i || (i = e), Object.keys(fr).includes(i) || (i = e), i;
|
|
2573
2573
|
})
|
|
2574
2574
|
};
|
|
2575
2575
|
}
|
|
@@ -4732,9 +4732,9 @@ function Sd(n, t, e) {
|
|
|
4732
4732
|
}
|
|
4733
4733
|
function $m(n, t, e = void 0) {
|
|
4734
4734
|
const r = oe(!1), i = L(() => so(n));
|
|
4735
|
-
|
|
4735
|
+
jf(i, "mouseenter", () => {
|
|
4736
4736
|
r.value = !0;
|
|
4737
|
-
}),
|
|
4737
|
+
}), jf(i, "mouseleave", () => {
|
|
4738
4738
|
r.value = !1;
|
|
4739
4739
|
});
|
|
4740
4740
|
const o = {
|
|
@@ -5854,7 +5854,7 @@ const Jw = ["value", "name", "disabled", "required"], ex = ["value"], Su = "", _
|
|
|
5854
5854
|
const e = n, { size: r } = Vi(L(() => e.size)), i = L(() => {
|
|
5855
5855
|
const y = Kt(e.modelValue ?? {});
|
|
5856
5856
|
return y.address_1 = y.address_1 ?? "", y.address_2 = y.address_2 ?? "", y.city = y.city ?? "", y.postal_code = y.postal_code ?? "", y.country = y.country ?? "", y.region = y.region ?? "", y;
|
|
5857
|
-
}), o = L(() => e.restrictCountry ? i.value.country ? i.value.country : nx : i.value.country ?? null), a = L(() => e.countries && tn(e.countries) && e.countries.length ? e.countries :
|
|
5857
|
+
}), o = L(() => e.restrictCountry ? i.value.country ? i.value.country : nx : i.value.country ?? null), a = L(() => e.countries && tn(e.countries) && e.countries.length ? e.countries : qt.countries), l = L(() => e.regions && tn(e.regions) && e.regions.length ? e.regions : qt.regions), s = L(() => l.value.filter(
|
|
5858
5858
|
(y) => y.country_id == i.value.country
|
|
5859
5859
|
)), d = L(() => e.prefix ? e.prefix + "." : "");
|
|
5860
5860
|
function c(y, b) {
|
|
@@ -5928,7 +5928,7 @@ const Jw = ["value", "name", "disabled", "required"], ex = ["value"], Su = "", _
|
|
|
5928
5928
|
x.country = _.short_name.toLowerCase();
|
|
5929
5929
|
break;
|
|
5930
5930
|
}
|
|
5931
|
-
x.region = x.country + "-" + w, x.address_1 = b, x.postal_code = u,
|
|
5931
|
+
x.region = x.country + "-" + w, x.address_1 = b, x.postal_code = u, Ut(() => {
|
|
5932
5932
|
t("update:model-value", x);
|
|
5933
5933
|
});
|
|
5934
5934
|
}
|
|
@@ -7380,7 +7380,7 @@ const Xm = /* @__PURE__ */ pi(Sx, [["render", Cx]]), Tx = { class: "relative w-f
|
|
|
7380
7380
|
function Y(N) {
|
|
7381
7381
|
var F;
|
|
7382
7382
|
const q = (F = r.select) == null ? void 0 : F.options.find((se) => se.value == N);
|
|
7383
|
-
r.select && r.select.onChange && r.select.onChange(q ?? null), e("select", N),
|
|
7383
|
+
r.select && r.select.onChange && r.select.onChange(q ?? null), e("select", N), Ut(() => {
|
|
7384
7384
|
C(), w(), P();
|
|
7385
7385
|
});
|
|
7386
7386
|
}
|
|
@@ -7638,7 +7638,7 @@ const qx = {
|
|
|
7638
7638
|
}
|
|
7639
7639
|
);
|
|
7640
7640
|
function b() {
|
|
7641
|
-
o.value || (o.value = !0, i.value = !0,
|
|
7641
|
+
o.value || (o.value = !0, i.value = !0, qt.http.get(r.url, {
|
|
7642
7642
|
params: {
|
|
7643
7643
|
[r.queryKey]: l.value,
|
|
7644
7644
|
page: s.value
|
|
@@ -8852,7 +8852,7 @@ const Rd = /* @__PURE__ */ Se({
|
|
|
8852
8852
|
},
|
|
8853
8853
|
emits: ["update:modelValue"],
|
|
8854
8854
|
setup(n, { expose: t, emit: e }) {
|
|
8855
|
-
const r = n, i =
|
|
8855
|
+
const r = n, i = qt.http, o = oe(null), a = oe(r.currentModel);
|
|
8856
8856
|
ut(
|
|
8857
8857
|
() => r.currentModel,
|
|
8858
8858
|
(s, d) => {
|
|
@@ -21655,7 +21655,7 @@ function bn(n, t, ...e) {
|
|
|
21655
21655
|
throw Error.captureStackTrace && Error.captureStackTrace(r, bn), r;
|
|
21656
21656
|
}
|
|
21657
21657
|
var kr = ((n) => (n[n.None = 0] = "None", n[n.RenderStrategy = 1] = "RenderStrategy", n[n.Static = 2] = "Static", n))(kr || {}), ri = ((n) => (n[n.Unmount = 0] = "Unmount", n[n.Hidden = 1] = "Hidden", n))(ri || {});
|
|
21658
|
-
function
|
|
21658
|
+
function Vt({ visible: n = !0, features: t = 0, ourProps: e, theirProps: r, ...i }) {
|
|
21659
21659
|
var o;
|
|
21660
21660
|
let a = cy(r, e), l = Object.assign(i, { props: a });
|
|
21661
21661
|
if (n || t & 2 && a.static)
|
|
@@ -21879,7 +21879,7 @@ function Us(n, t = 0) {
|
|
|
21879
21879
|
}
|
|
21880
21880
|
function fy(n) {
|
|
21881
21881
|
let t = ir(n);
|
|
21882
|
-
|
|
21882
|
+
Ut(() => {
|
|
21883
21883
|
t && !Us(t.activeElement, 0) && oi(n);
|
|
21884
21884
|
});
|
|
21885
21885
|
}
|
|
@@ -21990,7 +21990,7 @@ var Hr = ((n) => (n[n.None = 1] = "None", n[n.Focusable = 2] = "Focusable", n[n.
|
|
|
21990
21990
|
let fi = Se({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(n, { slots: t, attrs: e }) {
|
|
21991
21991
|
return () => {
|
|
21992
21992
|
let { features: r, ...i } = n, o = { "aria-hidden": (r & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
|
|
21993
|
-
return
|
|
21993
|
+
return Vt({ ourProps: o, theirProps: i, slot: {}, attrs: e, slots: t, name: "Hidden" });
|
|
21994
21994
|
};
|
|
21995
21995
|
} });
|
|
21996
21996
|
function PD(n) {
|
|
@@ -22137,7 +22137,7 @@ let Zo = Object.assign(Se({ name: "FocusTrap", props: { as: { type: [Object, Str
|
|
|
22137
22137
|
}
|
|
22138
22138
|
return () => {
|
|
22139
22139
|
let p = {}, g = { ref: i, onKeydown: h, onFocusout: f }, { features: m, initialFocus: v, containers: y, ...b } = n;
|
|
22140
|
-
return xt(Je, [!!(m & 4) && xt(fi, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Hr.Focusable }),
|
|
22140
|
+
return xt(Je, [!!(m & 4) && xt(fi, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Hr.Focusable }), Vt({ ourProps: g, theirProps: { ...t, ...b }, slot: p, attrs: t, slots: e, name: "FocusTrap" }), !!(m & 4) && xt(fi, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Hr.Focusable })]);
|
|
22141
22141
|
};
|
|
22142
22142
|
} }), { features: gy }), Di = [];
|
|
22143
22143
|
jD(() => {
|
|
@@ -22244,7 +22244,7 @@ function UD() {
|
|
|
22244
22244
|
let Hc = Se({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(n, { slots: t, attrs: e }) {
|
|
22245
22245
|
return gt(yy, n.force), () => {
|
|
22246
22246
|
let { force: r, ...i } = n;
|
|
22247
|
-
return
|
|
22247
|
+
return Vt({ theirProps: i, ourProps: {}, slot: {}, slots: t, attrs: e, name: "ForcePortalRoot" });
|
|
22248
22248
|
};
|
|
22249
22249
|
} });
|
|
22250
22250
|
function VD(n) {
|
|
@@ -22277,7 +22277,7 @@ let by = Se({ name: "Portal", props: { as: { type: [Object, String], default: "d
|
|
|
22277
22277
|
if (l.value === null)
|
|
22278
22278
|
return null;
|
|
22279
22279
|
let d = { ref: r, "data-headlessui-portal": "" };
|
|
22280
|
-
return xt(Cr, { to: l.value },
|
|
22280
|
+
return xt(Cr, { to: l.value }, Vt({ ourProps: d, theirProps: n, slot: {}, attrs: e, slots: t, name: "Portal" }));
|
|
22281
22281
|
};
|
|
22282
22282
|
} }), qc = Symbol("PortalParentContext");
|
|
22283
22283
|
function wy() {
|
|
@@ -22303,7 +22303,7 @@ let xy = Symbol("PortalGroupContext"), WD = Se({ name: "PortalGroup", props: { a
|
|
|
22303
22303
|
} });
|
|
22304
22304
|
return gt(xy, r), () => {
|
|
22305
22305
|
let { target: i, ...o } = n;
|
|
22306
|
-
return
|
|
22306
|
+
return Vt({ theirProps: o, ourProps: {}, slot: {}, attrs: t, slots: e, name: "PortalGroup" });
|
|
22307
22307
|
};
|
|
22308
22308
|
} }), Ey = Symbol("StackContext");
|
|
22309
22309
|
var Uc = ((n) => (n[n.Add = 0] = "Add", n[n.Remove = 1] = "Remove", n))(Uc || {});
|
|
@@ -22345,7 +22345,7 @@ Se({ name: "Description", props: { as: { type: [Object, String], default: "p" },
|
|
|
22345
22345
|
let r = KD();
|
|
22346
22346
|
return pt(() => An(r.register(n.id))), () => {
|
|
22347
22347
|
let { name: i = "Description", slot: o = oe({}), props: a = {} } = r, { id: l, ...s } = n, d = { ...Object.entries(a).reduce((c, [h, f]) => Object.assign(c, { [h]: T(f) }), {}), id: l };
|
|
22348
|
-
return
|
|
22348
|
+
return Vt({ ourProps: d, theirProps: s, slot: o.value, attrs: t, slots: e, name: i });
|
|
22349
22349
|
};
|
|
22350
22350
|
} });
|
|
22351
22351
|
function QD(n) {
|
|
@@ -22530,7 +22530,7 @@ let vl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oO = Se({ name: "Dialog", inher
|
|
|
22530
22530
|
gt(Vc, R);
|
|
22531
22531
|
let P = L(() => !(!p.value || g.value));
|
|
22532
22532
|
gf(b, (Z, pe) => {
|
|
22533
|
-
R.close(),
|
|
22533
|
+
R.close(), Ut(() => pe == null ? void 0 : pe.focus());
|
|
22534
22534
|
}, P);
|
|
22535
22535
|
let $ = L(() => !(g.value || f.value !== 0));
|
|
22536
22536
|
bf((o = h.value) == null ? void 0 : o.defaultView, "keydown", (Z) => {
|
|
@@ -22555,7 +22555,7 @@ let vl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oO = Se({ name: "Dialog", inher
|
|
|
22555
22555
|
ne.observe(pe), Z(() => ne.disconnect());
|
|
22556
22556
|
}), () => {
|
|
22557
22557
|
let { id: Z, open: pe, initialFocus: ne, ...z } = n, N = { ...e, ref: c, id: Z, role: "dialog", "aria-modal": f.value === 0 ? !0 : void 0, "aria-labelledby": C.value, "aria-describedby": S.value }, q = { open: f.value === 0 };
|
|
22558
|
-
return xt(Hc, { force: !0 }, () => [xt(by, () => xt(WD, { target: c.value }, () => xt(Hc, { force: !1 }, () => xt(Zo, { initialFocus: ne, containers: b, features: p.value ? bn(x.value, { parent: Zo.features.RestoreFocus, leaf: Zo.features.All & ~Zo.features.FocusLock }) : Zo.features.None }, () => xt(y, {}, () =>
|
|
22558
|
+
return xt(Hc, { force: !0 }, () => [xt(by, () => xt(WD, { target: c.value }, () => xt(Hc, { force: !1 }, () => xt(Zo, { initialFocus: ne, containers: b, features: p.value ? bn(x.value, { parent: Zo.features.RestoreFocus, leaf: Zo.features.All & ~Zo.features.FocusLock }) : Zo.features.None }, () => xt(y, {}, () => Vt({ ourProps: N, theirProps: { ...z, ...e }, slot: q, attrs: e, slots: r, visible: f.value === 0, features: kr.RenderStrategy | kr.Static, name: "Dialog" })))))), xt(w)]);
|
|
22559
22559
|
};
|
|
22560
22560
|
} });
|
|
22561
22561
|
Se({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${hn()}` } }, setup(n, { attrs: t, slots: e }) {
|
|
@@ -22565,7 +22565,7 @@ Se({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div
|
|
|
22565
22565
|
}
|
|
22566
22566
|
return () => {
|
|
22567
22567
|
let { id: o, ...a } = n;
|
|
22568
|
-
return
|
|
22568
|
+
return Vt({ ourProps: { id: o, "aria-hidden": !0, onClick: i }, theirProps: a, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogOverlay" });
|
|
22569
22569
|
};
|
|
22570
22570
|
} });
|
|
22571
22571
|
Se({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-backdrop-${hn()}` } }, inheritAttrs: !1, setup(n, { attrs: t, slots: e, expose: r }) {
|
|
@@ -22575,7 +22575,7 @@ Se({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "di
|
|
|
22575
22575
|
throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
22576
22576
|
}), () => {
|
|
22577
22577
|
let { id: a, ...l } = n, s = { id: a, ref: o, "aria-hidden": !0 };
|
|
22578
|
-
return xt(Hc, { force: !0 }, () => xt(by, () =>
|
|
22578
|
+
return xt(Hc, { force: !0 }, () => xt(by, () => Vt({ ourProps: s, theirProps: { ...t, ...l }, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogBackdrop" })));
|
|
22579
22579
|
};
|
|
22580
22580
|
} });
|
|
22581
22581
|
let aO = Se({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-panel-${hn()}` } }, setup(n, { attrs: t, slots: e, expose: r }) {
|
|
@@ -22586,7 +22586,7 @@ let aO = Se({ name: "DialogPanel", props: { as: { type: [Object, String], defaul
|
|
|
22586
22586
|
}
|
|
22587
22587
|
return () => {
|
|
22588
22588
|
let { id: a, ...l } = n, s = { id: a, ref: i.panelRef, onClick: o };
|
|
22589
|
-
return
|
|
22589
|
+
return Vt({ ourProps: s, theirProps: l, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogPanel" });
|
|
22590
22590
|
};
|
|
22591
22591
|
} });
|
|
22592
22592
|
Se({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: () => `headlessui-dialog-title-${hn()}` } }, setup(n, { attrs: t, slots: e }) {
|
|
@@ -22595,7 +22595,7 @@ Se({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }
|
|
|
22595
22595
|
r.setTitleId(n.id), An(() => r.setTitleId(null));
|
|
22596
22596
|
}), () => {
|
|
22597
22597
|
let { id: i, ...o } = n;
|
|
22598
|
-
return
|
|
22598
|
+
return Vt({ ourProps: { id: i }, theirProps: o, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: e, name: "DialogTitle" });
|
|
22599
22599
|
};
|
|
22600
22600
|
} });
|
|
22601
22601
|
let Ap = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
|
|
@@ -22688,7 +22688,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
22688
22688
|
h.closeMenu(), Us(p, qs.Loose) || (f.preventDefault(), (g = qe(i)) == null || g.focus());
|
|
22689
22689
|
}, L(() => r.value === 0)), gt(Ay, h), pf(L(() => bn(r.value, { 0: Qt.Open, 1: Qt.Closed }))), () => {
|
|
22690
22690
|
let f = { open: r.value === 0, close: h.closeMenu };
|
|
22691
|
-
return
|
|
22691
|
+
return Vt({ ourProps: {}, theirProps: n, slot: f, slots: t, attrs: e, name: "Menu" });
|
|
22692
22692
|
};
|
|
22693
22693
|
} }), hO = Se({ name: "MenuButton", props: { disabled: { type: Boolean, default: !1 }, as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-menu-button-${hn()}` } }, setup(n, { attrs: t, slots: e, expose: r }) {
|
|
22694
22694
|
let i = Vs("MenuButton");
|
|
@@ -22698,13 +22698,13 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
22698
22698
|
case Bt.Space:
|
|
22699
22699
|
case Bt.Enter:
|
|
22700
22700
|
case Bt.ArrowDown:
|
|
22701
|
-
d.preventDefault(), d.stopPropagation(), i.openMenu(),
|
|
22701
|
+
d.preventDefault(), d.stopPropagation(), i.openMenu(), Ut(() => {
|
|
22702
22702
|
var c;
|
|
22703
22703
|
(c = qe(i.itemsRef)) == null || c.focus({ preventScroll: !0 }), i.goToItem(Gn.First);
|
|
22704
22704
|
});
|
|
22705
22705
|
break;
|
|
22706
22706
|
case Bt.ArrowUp:
|
|
22707
|
-
d.preventDefault(), d.stopPropagation(), i.openMenu(),
|
|
22707
|
+
d.preventDefault(), d.stopPropagation(), i.openMenu(), Ut(() => {
|
|
22708
22708
|
var c;
|
|
22709
22709
|
(c = qe(i.itemsRef)) == null || c.focus({ preventScroll: !0 }), i.goToItem(Gn.Last);
|
|
22710
22710
|
});
|
|
@@ -22719,7 +22719,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
22719
22719
|
}
|
|
22720
22720
|
}
|
|
22721
22721
|
function l(d) {
|
|
22722
|
-
n.disabled || (i.menuState.value === 0 ? (i.closeMenu(),
|
|
22722
|
+
n.disabled || (i.menuState.value === 0 ? (i.closeMenu(), Ut(() => {
|
|
22723
22723
|
var c;
|
|
22724
22724
|
return (c = qe(i.buttonRef)) == null ? void 0 : c.focus({ preventScroll: !0 });
|
|
22725
22725
|
})) : (d.preventDefault(), i.openMenu(), dO(() => {
|
|
@@ -22731,7 +22731,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
22731
22731
|
return () => {
|
|
22732
22732
|
var d;
|
|
22733
22733
|
let c = { open: i.menuState.value === 0 }, { id: h, ...f } = n, p = { ref: i.buttonRef, id: h, type: s.value, "aria-haspopup": "menu", "aria-controls": (d = qe(i.itemsRef)) == null ? void 0 : d.id, "aria-expanded": i.menuState.value === 0, onKeydown: o, onKeyup: a, onClick: l };
|
|
22734
|
-
return
|
|
22734
|
+
return Vt({ ourProps: p, theirProps: f, slot: c, attrs: t, slots: e, name: "MenuButton" });
|
|
22735
22735
|
};
|
|
22736
22736
|
} }), pO = Se({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: () => `headlessui-menu-items-${hn()}` } }, setup(n, { attrs: t, slots: e, expose: r }) {
|
|
22737
22737
|
let i = Vs("MenuItems"), o = oe(null);
|
|
@@ -22764,13 +22764,13 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
22764
22764
|
case Bt.PageDown:
|
|
22765
22765
|
return c.preventDefault(), c.stopPropagation(), i.goToItem(Gn.Last);
|
|
22766
22766
|
case Bt.Escape:
|
|
22767
|
-
c.preventDefault(), c.stopPropagation(), i.closeMenu(),
|
|
22767
|
+
c.preventDefault(), c.stopPropagation(), i.closeMenu(), Ut(() => {
|
|
22768
22768
|
var f;
|
|
22769
22769
|
return (f = qe(i.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
|
|
22770
22770
|
});
|
|
22771
22771
|
break;
|
|
22772
22772
|
case Bt.Tab:
|
|
22773
|
-
c.preventDefault(), c.stopPropagation(), i.closeMenu(),
|
|
22773
|
+
c.preventDefault(), c.stopPropagation(), i.closeMenu(), Ut(() => ND(qe(i.buttonRef), c.shiftKey ? dn.Previous : dn.Next));
|
|
22774
22774
|
break;
|
|
22775
22775
|
default:
|
|
22776
22776
|
c.key.length === 1 && (i.search(c.key), o.value = setTimeout(() => i.clearSearch(), 350));
|
|
@@ -22788,7 +22788,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
22788
22788
|
return () => {
|
|
22789
22789
|
var c, h;
|
|
22790
22790
|
let f = { open: i.menuState.value === 0 }, { id: p, ...g } = n, m = { "aria-activedescendant": i.activeItemIndex.value === null || (c = i.items.value[i.activeItemIndex.value]) == null ? void 0 : c.id, "aria-labelledby": (h = qe(i.buttonRef)) == null ? void 0 : h.id, id: p, onKeydown: a, onKeyup: l, role: "menu", tabIndex: 0, ref: i.itemsRef };
|
|
22791
|
-
return
|
|
22791
|
+
return Vt({ ourProps: m, theirProps: g, slot: f, attrs: t, slots: e, features: kr.RenderStrategy | kr.Static, visible: d.value, name: "MenuItems" });
|
|
22792
22792
|
};
|
|
22793
22793
|
} }), po = Se({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-menu-item-${hn()}` } }, setup(n, { slots: t, attrs: e, expose: r }) {
|
|
22794
22794
|
let i = Vs("MenuItem"), o = oe(null);
|
|
@@ -22797,7 +22797,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
22797
22797
|
return l();
|
|
22798
22798
|
}, domRef: o }));
|
|
22799
22799
|
pt(() => i.registerItem(n.id, s)), An(() => i.unregisterItem(n.id)), un(() => {
|
|
22800
|
-
i.menuState.value === 0 && a.value && i.activationTrigger.value !== 0 &&
|
|
22800
|
+
i.menuState.value === 0 && a.value && i.activationTrigger.value !== 0 && Ut(() => {
|
|
22801
22801
|
var m, v;
|
|
22802
22802
|
return (v = (m = qe(o)) == null ? void 0 : m.scrollIntoView) == null ? void 0 : v.call(m, { block: "nearest" });
|
|
22803
22803
|
});
|
|
@@ -22824,7 +22824,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
22824
22824
|
}
|
|
22825
22825
|
return () => {
|
|
22826
22826
|
let { disabled: m } = n, v = { active: a.value, disabled: m, close: i.closeMenu }, { id: y, ...b } = n;
|
|
22827
|
-
return
|
|
22827
|
+
return Vt({ ourProps: { id: y, ref: o, role: "menuitem", tabIndex: m === !0 ? void 0 : -1, "aria-disabled": m === !0 ? !0 : void 0, disabled: void 0, onClick: d, onFocus: c, onPointerenter: f, onMouseenter: f, onPointermove: p, onMousemove: p, onPointerleave: g, onMouseleave: g }, theirProps: { ...e, ...b }, slot: v, attrs: e, slots: t, name: "MenuItem" });
|
|
22828
22828
|
};
|
|
22829
22829
|
} });
|
|
22830
22830
|
var mO = ((n) => (n[n.Open = 0] = "Open", n[n.Closed = 1] = "Closed", n))(mO || {});
|
|
@@ -22883,7 +22883,7 @@ let Ry = Se({ name: "Popover", inheritAttrs: !1, props: { as: { type: [Object, S
|
|
|
22883
22883
|
p.closePopover(), Us(_, qs.Loose) || (x.preventDefault(), (k = qe(l)) == null || k.focus());
|
|
22884
22884
|
}, L(() => a.value === 0)), () => {
|
|
22885
22885
|
let x = { open: a.value === 0, close: p.close };
|
|
22886
|
-
return xt(Je, [xt(b, {}, () =>
|
|
22886
|
+
return xt(Je, [xt(b, {}, () => Vt({ theirProps: { ...n, ...e }, ourProps: { ref: o }, slot: x, slots: t, attrs: e, name: "Popover" })), xt(u.MainTreeNode)]);
|
|
22887
22887
|
};
|
|
22888
22888
|
} }), vO = Se({ name: "PopoverButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: () => `headlessui-popover-button-${hn()}` } }, inheritAttrs: !1, setup(n, { attrs: t, slots: e, expose: r }) {
|
|
22889
22889
|
let i = Ws("PopoverButton"), o = L(() => ir(i.button));
|
|
@@ -22945,7 +22945,7 @@ let Ry = Se({ name: "Popover", inheritAttrs: !1, props: { as: { type: [Object, S
|
|
|
22945
22945
|
}
|
|
22946
22946
|
return () => {
|
|
22947
22947
|
let u = i.popoverState.value === 0, w = { open: u }, { id: x, ..._ } = n, k = d.value ? { ref: c, type: f.value, onKeydown: p, onClick: m } : { ref: c, id: x, type: f.value, "aria-expanded": i.popoverState.value === 0, "aria-controls": qe(i.panel) ? i.panelId.value : void 0, disabled: n.disabled ? !0 : void 0, onKeydown: p, onKeyup: g, onClick: m, onMousedown: v };
|
|
22948
|
-
return xt(Je, [
|
|
22948
|
+
return xt(Je, [Vt({ ourProps: k, theirProps: { ...t, ..._ }, slot: w, attrs: t, slots: e, name: "PopoverButton" }), u && !d.value && i.isPortalled.value && xt(fi, { id: h, features: Hr.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: b })]);
|
|
22949
22949
|
};
|
|
22950
22950
|
} });
|
|
22951
22951
|
Se({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 } }, setup(n, { attrs: t, slots: e }) {
|
|
@@ -22955,7 +22955,7 @@ Se({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "di
|
|
|
22955
22955
|
}
|
|
22956
22956
|
return () => {
|
|
22957
22957
|
let s = { open: r.popoverState.value === 0 };
|
|
22958
|
-
return
|
|
22958
|
+
return Vt({ ourProps: { id: i, "aria-hidden": !0, onClick: l }, theirProps: n, slot: s, attrs: t, slots: e, features: kr.RenderStrategy | kr.Static, visible: a.value, name: "PopoverOverlay" });
|
|
22959
22959
|
};
|
|
22960
22960
|
} });
|
|
22961
22961
|
let yO = Se({ name: "PopoverPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, focus: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-popover-panel-${hn()}` } }, inheritAttrs: !1, setup(n, { attrs: t, slots: e, expose: r }) {
|
|
@@ -23028,7 +23028,7 @@ let yO = Se({ name: "PopoverPanel", props: { as: { type: [Object, String], defau
|
|
|
23028
23028
|
}
|
|
23029
23029
|
return () => {
|
|
23030
23030
|
let v = { open: o.popoverState.value === 0, close: o.close }, { id: y, focus: b, ...u } = n, w = { ref: o.panel, id: y, onKeydown: h, onFocusout: i && o.popoverState.value === 0 ? f : void 0, tabIndex: -1 };
|
|
23031
|
-
return
|
|
23031
|
+
return Vt({ ourProps: w, theirProps: { ...t, ...u }, attrs: t, slot: v, slots: { ...e, default: (...x) => {
|
|
23032
23032
|
var _;
|
|
23033
23033
|
return [xt(Je, [c.value && o.isPortalled.value && xt(fi, { id: l, ref: o.beforePanelSentinel, features: Hr.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: g }), (_ = e.default) == null ? void 0 : _.call(e, ...x), c.value && o.isPortalled.value && xt(fi, { id: s, ref: o.afterPanelSentinel, features: Hr.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: m })])];
|
|
23034
23034
|
} }, features: kr.RenderStrategy | kr.Static, visible: c.value, name: "PopoverPanel" });
|
|
@@ -23061,7 +23061,7 @@ Se({ name: "PopoverGroup", inheritAttrs: !1, props: { as: { type: [Object, Strin
|
|
|
23061
23061
|
for (let p of o.value)
|
|
23062
23062
|
p.buttonId.value !== f && p.close();
|
|
23063
23063
|
}
|
|
23064
|
-
return gt(Ty, { registerPopover: d, unregisterPopover: s, isFocusWithinPopoverGroup: c, closeOthers: h, mainTreeNodeRef: l.mainTreeNodeRef }), () => xt(Je, [
|
|
23064
|
+
return gt(Ty, { registerPopover: d, unregisterPopover: s, isFocusWithinPopoverGroup: c, closeOthers: h, mainTreeNodeRef: l.mainTreeNodeRef }), () => xt(Je, [Vt({ ourProps: { ref: i }, theirProps: { ...n, ...t }, slot: {}, attrs: t, slots: e, name: "PopoverGroup" }), xt(l.MainTreeNode)]);
|
|
23065
23065
|
} });
|
|
23066
23066
|
let My = Symbol("LabelContext");
|
|
23067
23067
|
function Iy() {
|
|
@@ -23086,7 +23086,7 @@ let wO = Se({ name: "Label", props: { as: { type: [Object, String], default: "la
|
|
|
23086
23086
|
let r = Iy();
|
|
23087
23087
|
return pt(() => An(r.register(n.id))), () => {
|
|
23088
23088
|
let { name: i = "Label", slot: o = {}, props: a = {} } = r, { id: l, passive: s, ...d } = n, c = { ...Object.entries(a).reduce((h, [f, p]) => Object.assign(h, { [f]: T(p) }), {}), id: l };
|
|
23089
|
-
return s && (delete c.onClick, delete c.htmlFor, delete d.onClick),
|
|
23089
|
+
return s && (delete c.onClick, delete c.htmlFor, delete d.onClick), Vt({ ourProps: c, theirProps: d, slot: o, attrs: e, slots: t, name: i });
|
|
23090
23090
|
};
|
|
23091
23091
|
} }), Ny = Symbol("GroupContext"), xO = Se({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(n, { slots: t, attrs: e }) {
|
|
23092
23092
|
let r = oe(null), i = bO({ name: "SwitchLabel", props: { htmlFor: L(() => {
|
|
@@ -23095,7 +23095,7 @@ let wO = Se({ name: "Label", props: { as: { type: [Object, String], default: "la
|
|
|
23095
23095
|
}), onClick(a) {
|
|
23096
23096
|
r.value && (a.currentTarget.tagName === "LABEL" && a.preventDefault(), r.value.click(), r.value.focus({ preventScroll: !0 }));
|
|
23097
23097
|
} } }), o = _y({ name: "SwitchDescription" });
|
|
23098
|
-
return gt(Ny, { switchRef: r, labelledby: i, describedby: o }), () =>
|
|
23098
|
+
return gt(Ny, { switchRef: r, labelledby: i, describedby: o }), () => Vt({ theirProps: n, ourProps: {}, slot: {}, slots: t, attrs: e, name: "SwitchGroup" });
|
|
23099
23099
|
} }), EO = Se({ name: "Switch", emits: { "update:modelValue": (n) => !0 }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: !0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, value: { type: String, optional: !0 }, id: { type: String, default: () => `headlessui-switch-${hn()}` } }, inheritAttrs: !1, setup(n, { emit: t, attrs: e, slots: r, expose: i }) {
|
|
23100
23100
|
let o = wt(Ny, null), [a, l] = BD(L(() => n.modelValue), (v) => t("update:modelValue", v), L(() => n.defaultChecked));
|
|
23101
23101
|
function s() {
|
|
@@ -23130,7 +23130,7 @@ let wO = Se({ name: "Label", props: { as: { type: [Object, String], default: "la
|
|
|
23130
23130
|
}, { immediate: !0 });
|
|
23131
23131
|
}), () => {
|
|
23132
23132
|
let { id: v, name: y, value: b, form: u, ...w } = n, x = { checked: a.value }, _ = { id: v, ref: c, role: "switch", type: h.value, tabIndex: 0, "aria-checked": a.value, "aria-labelledby": o == null ? void 0 : o.labelledby.value, "aria-describedby": o == null ? void 0 : o.describedby.value, onClick: f, onKeyup: p, onKeypress: g };
|
|
23133
|
-
return xt(Je, [y != null && a.value != null ? xt(fi, bD({ features: Hr.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: a.value, form: u, name: y, value: b })) : null,
|
|
23133
|
+
return xt(Je, [y != null && a.value != null ? xt(fi, bD({ features: Hr.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: a.value, form: u, name: y, value: b })) : null, Vt({ ourProps: _, theirProps: { ...e, ...hf(w, ["modelValue", "defaultChecked"]) }, slot: x, attrs: e, slots: r, name: "Switch" })]);
|
|
23134
23134
|
};
|
|
23135
23135
|
} }), SO = wO;
|
|
23136
23136
|
function _O(n) {
|
|
@@ -23262,7 +23262,7 @@ let By = kr.RenderStrategy, zl = Se({ props: { as: { type: [Object, String], def
|
|
|
23262
23262
|
}, { immediate: !0 });
|
|
23263
23263
|
}), gt(xf, w), pf(L(() => bn(v.value, { visible: Qt.Open, hidden: Qt.Closed }) | o.value)), () => {
|
|
23264
23264
|
let { appear: R, show: P, enter: $, enterFrom: Y, enterTo: Z, entered: pe, leave: ne, leaveFrom: z, leaveTo: N, ...q } = n, F = { ref: c }, se = { ...q, ...p.value && f.value && Fa.isServer ? { class: de([e.class, q.class, ...x, ..._]) } : {} };
|
|
23265
|
-
return
|
|
23265
|
+
return Vt({ theirProps: se, ourProps: F, slot: {}, slots: r, attrs: e, features: By, visible: v.value === "visible", name: "TransitionChild" });
|
|
23266
23266
|
};
|
|
23267
23267
|
} }), OO = zl, Ly = Se({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(n, { emit: t, attrs: e, slots: r }) {
|
|
23268
23268
|
let i = Mo(), o = L(() => n.show === null && i !== null ? (i.value & Qt.Open) === Qt.Open : n.show);
|
|
@@ -23279,7 +23279,7 @@ let By = kr.RenderStrategy, zl = Se({ props: { as: { type: [Object, String], def
|
|
|
23279
23279
|
});
|
|
23280
23280
|
}), gt(xf, l), gt(wf, d), () => {
|
|
23281
23281
|
let c = hf(n, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), h = { unmount: n.unmount };
|
|
23282
|
-
return
|
|
23282
|
+
return Vt({ ourProps: { ...h, as: "template" }, theirProps: {}, slot: {}, slots: { ...r, default: () => [xt(OO, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...e, ...h, ...c }, r.default)] }, attrs: {}, features: By, visible: a.value === "visible", name: "Transition" });
|
|
23283
23283
|
};
|
|
23284
23284
|
} });
|
|
23285
23285
|
const RO = { class: "grow" }, MO = {
|
|
@@ -23623,7 +23623,7 @@ const RO = { class: "grow" }, MO = {
|
|
|
23623
23623
|
k.preventDefault(), y();
|
|
23624
23624
|
}
|
|
23625
23625
|
function y() {
|
|
23626
|
-
x(r.value),
|
|
23626
|
+
x(r.value), Ut(() => {
|
|
23627
23627
|
r.value = null;
|
|
23628
23628
|
});
|
|
23629
23629
|
}
|
|
@@ -23634,7 +23634,7 @@ const RO = { class: "grow" }, MO = {
|
|
|
23634
23634
|
k.preventDefault(), w();
|
|
23635
23635
|
}
|
|
23636
23636
|
function w() {
|
|
23637
|
-
x(i.value), _(i.value) ||
|
|
23637
|
+
x(i.value), _(i.value) || Ut(() => {
|
|
23638
23638
|
i.value = e.modelValue;
|
|
23639
23639
|
});
|
|
23640
23640
|
}
|
|
@@ -24049,7 +24049,7 @@ const RO = { class: "grow" }, MO = {
|
|
|
24049
24049
|
"fetch"
|
|
24050
24050
|
],
|
|
24051
24051
|
setup(n, { expose: t, emit: e }) {
|
|
24052
|
-
const r = n, i =
|
|
24052
|
+
const r = n, i = qt.http, o = oe(null), a = oe(!1), l = am(), s = lm(), d = l.name, c = Vi(r.size);
|
|
24053
24053
|
let h = !1;
|
|
24054
24054
|
Fn(() => {
|
|
24055
24055
|
h = !0;
|
|
@@ -24075,7 +24075,7 @@ const RO = { class: "grow" }, MO = {
|
|
|
24075
24075
|
}), ut(
|
|
24076
24076
|
() => x.value,
|
|
24077
24077
|
() => {
|
|
24078
|
-
|
|
24078
|
+
Ut(() => {
|
|
24079
24079
|
D();
|
|
24080
24080
|
});
|
|
24081
24081
|
}
|
|
@@ -24097,8 +24097,8 @@ const RO = { class: "grow" }, MO = {
|
|
|
24097
24097
|
const Ce = s.resolve({
|
|
24098
24098
|
name: l.name,
|
|
24099
24099
|
params: l.params
|
|
24100
|
-
}), I =
|
|
24101
|
-
if (
|
|
24100
|
+
}), I = qt.formatQueryString(Te), X = Ce.fullPath + "?" + I, ee = ne();
|
|
24101
|
+
if (qt.formatQueryString(ee) != I) {
|
|
24102
24102
|
if (!p.value) {
|
|
24103
24103
|
s.replace(X);
|
|
24104
24104
|
return;
|
|
@@ -24129,7 +24129,7 @@ const RO = { class: "grow" }, MO = {
|
|
|
24129
24129
|
ut(
|
|
24130
24130
|
() => l.query,
|
|
24131
24131
|
() => {
|
|
24132
|
-
|
|
24132
|
+
Ut(() => {
|
|
24133
24133
|
z();
|
|
24134
24134
|
});
|
|
24135
24135
|
}
|
|
@@ -24145,7 +24145,7 @@ const RO = { class: "grow" }, MO = {
|
|
|
24145
24145
|
}
|
|
24146
24146
|
);
|
|
24147
24147
|
function ne() {
|
|
24148
|
-
return
|
|
24148
|
+
return qt.parseQueryString(window.location.search.replace(/^(\?)/, ""));
|
|
24149
24149
|
}
|
|
24150
24150
|
function z() {
|
|
24151
24151
|
if (!r.historyMode || h || l.name != d)
|
|
@@ -24162,11 +24162,11 @@ const RO = { class: "grow" }, MO = {
|
|
|
24162
24162
|
function F(Te = !1, Ce = !0) {
|
|
24163
24163
|
if (h)
|
|
24164
24164
|
return;
|
|
24165
|
-
const I = $.value.split(/[?#]/), X = I[0], ee = I[1] ?? null, le =
|
|
24165
|
+
const I = $.value.split(/[?#]/), X = I[0], ee = I[1] ?? null, le = qt.parseQueryString(ee), U = Wl(
|
|
24166
24166
|
Kt(u.value),
|
|
24167
24167
|
Kt(r.urlQuery),
|
|
24168
24168
|
Kt(le)
|
|
24169
|
-
), ae =
|
|
24169
|
+
), ae = qt.formatQueryString(U), ve = X + "?" + ae;
|
|
24170
24170
|
y == ve && !Te || (Ce && (g.value = !0), y = ve, i.get(ve).then((Ie) => {
|
|
24171
24171
|
se.value = Ie.data, g.value = !1, m.value = !1, p.value = !0, e("fetch", se.value);
|
|
24172
24172
|
}).catch(() => {
|
|
@@ -24561,7 +24561,7 @@ const $y = /* @__PURE__ */ pi(fR, [["render", gR]]), vR = { class: "flex flex-co
|
|
|
24561
24561
|
se();
|
|
24562
24562
|
}
|
|
24563
24563
|
), pt(() => {
|
|
24564
|
-
|
|
24564
|
+
Ut(() => {
|
|
24565
24565
|
se();
|
|
24566
24566
|
});
|
|
24567
24567
|
});
|
|
@@ -24646,7 +24646,7 @@ const $y = /* @__PURE__ */ pi(fR, [["render", gR]]), vR = { class: "flex flex-co
|
|
|
24646
24646
|
function ie(he) {
|
|
24647
24647
|
f.value.push(he);
|
|
24648
24648
|
const me = g.value;
|
|
24649
|
-
me && me.children &&
|
|
24649
|
+
me && me.children && Ut(() => {
|
|
24650
24650
|
const Te = f.value.map((I) => `[data-id="${I.newKey}"]`).join(","), Ce = Array.from(me.querySelectorAll(Te)).map(
|
|
24651
24651
|
(I) => I.getAttribute("data-id")
|
|
24652
24652
|
);
|
|
@@ -25375,7 +25375,7 @@ const Uy = /* @__PURE__ */ pi(YR, [["render", XR]]), JR = ["disabled"], eM = /*
|
|
|
25375
25375
|
"fetch"
|
|
25376
25376
|
],
|
|
25377
25377
|
setup(n, { expose: t, emit: e }) {
|
|
25378
|
-
const r = n, i = lm(), o =
|
|
25378
|
+
const r = n, i = lm(), o = qt.http, a = _d(), l = Yi(), s = oe(null), d = Vi(r.size), c = L(() => d.size.value == "md" ? "sm" : (d.size.value == "sm", "xs")), h = oe(null);
|
|
25379
25379
|
function f(z) {
|
|
25380
25380
|
r.showUrl && i.push(r.showUrl(z)), e("cell-click", z);
|
|
25381
25381
|
}
|
|
@@ -29538,7 +29538,7 @@ const BM = /* @__PURE__ */ Co(PM), LM = { class: "text-xs text-slate-600" }, Yy
|
|
|
29538
29538
|
setup(n, { expose: t }) {
|
|
29539
29539
|
const e = n, r = oe(
|
|
29540
29540
|
null
|
|
29541
|
-
), i =
|
|
29541
|
+
), i = qt.http, o = oe(!1), a = oe(!1), l = oe(!1), s = oe(""), d = oe(1), c = oe([]), h = oe(
|
|
29542
29542
|
null
|
|
29543
29543
|
), { items: f, lastPage: p } = Td(h), g = (u) => {
|
|
29544
29544
|
d.value = 1, s.value != u && (s.value = u, o.value = !0, b());
|
|
@@ -29927,7 +29927,7 @@ const BM = /* @__PURE__ */ Co(PM), LM = { class: "text-xs text-slate-600" }, Yy
|
|
|
29927
29927
|
(h) => null
|
|
29928
29928
|
);
|
|
29929
29929
|
oe(["#10b981", "#06b6d4", "#a855f7"]);
|
|
29930
|
-
const a = L(() => e.locales ? e.locales :
|
|
29930
|
+
const a = L(() => e.locales ? e.locales : qt.locales), l = L(() => {
|
|
29931
29931
|
let h = {};
|
|
29932
29932
|
return e.modelValue && Hb(e.modelValue) && (h = e.modelValue), Object.keys(a.value).forEach((f) => {
|
|
29933
29933
|
li(e.modelValue, f) || (h[f] = e.defaultValue);
|
|
@@ -30274,7 +30274,7 @@ const JM = ["disabled"], eI = ["accept", "multiple"], _f = /* @__PURE__ */ Se({
|
|
|
30274
30274
|
"end"
|
|
30275
30275
|
],
|
|
30276
30276
|
setup(n, { emit: t }) {
|
|
30277
|
-
const e = n, r =
|
|
30277
|
+
const e = n, r = qt.http, i = Yi(), o = L(() => e.component == "BaseFilePickerCrop" ? Qy : _f), a = L(() => {
|
|
30278
30278
|
const c = {
|
|
30279
30279
|
disabled: e.disabled || e.loading || l.value,
|
|
30280
30280
|
twButton: e.twButton,
|
|
@@ -30315,7 +30315,7 @@ const JM = ["disabled"], eI = ["accept", "multiple"], _f = /* @__PURE__ */ Se({
|
|
|
30315
30315
|
async function d(c) {
|
|
30316
30316
|
const h = new FormData();
|
|
30317
30317
|
h.append("file", c);
|
|
30318
|
-
const p = (await r.post(e.url ??
|
|
30318
|
+
const p = (await r.post(e.url ?? qt.upload_url, h)).data;
|
|
30319
30319
|
return p.original_file = c, new Promise((g) => {
|
|
30320
30320
|
const m = new FileReader();
|
|
30321
30321
|
m.onload = (v) => {
|
|
@@ -30462,7 +30462,7 @@ const sI = { class: "absolute z-[1] inset-0 flex h-full w-full items-center just
|
|
|
30462
30462
|
},
|
|
30463
30463
|
emits: ["error", "success"],
|
|
30464
30464
|
setup(n, { expose: t, emit: e }) {
|
|
30465
|
-
const r = n, i = Yi(), o = oe(null), a = oe(!1), l = oe({}), s = L(() => r.axiosInstance ? r.axiosInstance :
|
|
30465
|
+
const r = n, i = Yi(), o = oe(null), a = oe(!1), l = oe({}), s = L(() => r.axiosInstance ? r.axiosInstance : qt.http), d = L(() => o.value), c = L(() => Object.keys(l.value).length > 0), h = L(() => {
|
|
30466
30466
|
if (!c.value)
|
|
30467
30467
|
return null;
|
|
30468
30468
|
const k = Object.keys(l.value);
|
|
@@ -30806,7 +30806,7 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
|
|
|
30806
30806
|
}));
|
|
30807
30807
|
function f() {
|
|
30808
30808
|
const y = new fI(h.value).handle();
|
|
30809
|
-
o.value = y.width, a.value = y.height, l.value = y.rows, s.value = y.groups, d.value = y.ticks, c.value = y.nowLine,
|
|
30809
|
+
o.value = y.width, a.value = y.height, l.value = y.rows, s.value = y.groups, d.value = y.ticks, c.value = y.nowLine, Ut(() => {
|
|
30810
30810
|
if (c.value && i.value) {
|
|
30811
30811
|
const b = c.value.x + r.width.value / 2;
|
|
30812
30812
|
i.value.scrollLeft = b;
|
|
@@ -31094,7 +31094,7 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
|
|
|
31094
31094
|
},
|
|
31095
31095
|
emits: ["update:modelValue"],
|
|
31096
31096
|
setup(n, { expose: t, emit: e }) {
|
|
31097
|
-
const r = n, i =
|
|
31097
|
+
const r = n, i = qt.http, o = oe(null), a = oe(r.currentModels);
|
|
31098
31098
|
ut(
|
|
31099
31099
|
() => r.currentModels,
|
|
31100
31100
|
(s, d) => {
|
|
@@ -31333,7 +31333,7 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
|
|
|
31333
31333
|
const i = oe([]), o = oe({}), a = L(() => Object.keys(o.value).sort((b, u) => u.length - b.length)), l = oe(null), s = L(() => Object.keys(o.value).filter((b) => b !== l.value)), d = oe(null), c = L(() => i.value.map((b) => e.collection + ":" + b)), h = L(() => c.value.filter((b) => !(!b.endsWith(l.value ?? "") || s.value.filter((_) => b.endsWith(_)).some((_) => _.length > (l.value ?? "").length)))), f = oe(""), p = L(() => f.value ? h.value.filter((b) => b.toLocaleLowerCase().includes(f.value.toLowerCase())) : h.value);
|
|
31334
31334
|
function g() {
|
|
31335
31335
|
fetch("https://api.iconify.design/collection?prefix=" + e.collection).then((b) => b.json()).then((b) => {
|
|
31336
|
-
i.value = b.uncategorized, o.value = b.suffixes, m(),
|
|
31336
|
+
i.value = b.uncategorized, o.value = b.suffixes, m(), Ut(() => {
|
|
31337
31337
|
v();
|
|
31338
31338
|
});
|
|
31339
31339
|
});
|
|
@@ -31357,7 +31357,7 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
|
|
|
31357
31357
|
b && (d.value.scrollTop = b.offsetTop - 10);
|
|
31358
31358
|
}
|
|
31359
31359
|
function y() {
|
|
31360
|
-
|
|
31360
|
+
Ut(() => {
|
|
31361
31361
|
let b = e.modelValue ?? "";
|
|
31362
31362
|
a.value.forEach((w) => {
|
|
31363
31363
|
let x = w;
|
|
@@ -32079,7 +32079,7 @@ var xN = ["evt"], Nn = function(t, e) {
|
|
|
32079
32079
|
dragEl: He,
|
|
32080
32080
|
parentEl: Jt,
|
|
32081
32081
|
ghostEl: bt,
|
|
32082
|
-
rootEl:
|
|
32082
|
+
rootEl: Wt,
|
|
32083
32083
|
nextEl: Ci,
|
|
32084
32084
|
lastDownEl: $l,
|
|
32085
32085
|
cloneEl: Yt,
|
|
@@ -32114,14 +32114,14 @@ function On(n) {
|
|
|
32114
32114
|
putSortable: vn,
|
|
32115
32115
|
cloneEl: Yt,
|
|
32116
32116
|
targetEl: He,
|
|
32117
|
-
rootEl:
|
|
32117
|
+
rootEl: Wt,
|
|
32118
32118
|
oldIndex: ao,
|
|
32119
32119
|
oldDraggableIndex: ga,
|
|
32120
32120
|
newIndex: Un,
|
|
32121
32121
|
newDraggableIndex: Xr
|
|
32122
32122
|
}, n));
|
|
32123
32123
|
}
|
|
32124
|
-
var He, Jt, bt,
|
|
32124
|
+
var He, Jt, bt, Wt, Ci, $l, Yt, Jr, ao, Un, ga, Xr, xl, vn, io = !1, ps = !1, ms = [], Si, sr, Xu, Ju, zp, jp, ta, no, va, ya = !1, El = !1, Hl, Sn, ec = [], Jc = !1, gs = [], Ys = typeof document < "u", Sl = Jy, Fp = Ua || Wr ? "cssFloat" : "float", EN = Ys && !eb && !Jy && "draggable" in document.createElement("div"), ab = function() {
|
|
32125
32125
|
if (Ys) {
|
|
32126
32126
|
if (Wr)
|
|
32127
32127
|
return !1;
|
|
@@ -32303,7 +32303,7 @@ ht.prototype = /** @lends Sortable.prototype */
|
|
|
32303
32303
|
var i = this, o = i.el, a = i.options, l = o.ownerDocument, s;
|
|
32304
32304
|
if (r && !He && r.parentNode === o) {
|
|
32305
32305
|
var d = sn(r);
|
|
32306
|
-
if (
|
|
32306
|
+
if (Wt = o, He = r, Jt = He.parentNode, Ci = He.nextSibling, $l = r, xl = a.group, ht.dragged = He, Si = {
|
|
32307
32307
|
target: He,
|
|
32308
32308
|
clientX: (e || t).clientX,
|
|
32309
32309
|
clientY: (e || t).clientY
|
|
@@ -32345,7 +32345,7 @@ ht.prototype = /** @lends Sortable.prototype */
|
|
|
32345
32345
|
Ct(t, "mouseup", this._disableDelayedDrag), Ct(t, "touchend", this._disableDelayedDrag), Ct(t, "touchcancel", this._disableDelayedDrag), Ct(t, "mousemove", this._delayedDragTouchMoveHandler), Ct(t, "touchmove", this._delayedDragTouchMoveHandler), Ct(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
32346
32346
|
},
|
|
32347
32347
|
_triggerDragStart: function(t, e) {
|
|
32348
|
-
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? Ot(document, "pointermove", this._onTouchMove) : e ? Ot(document, "touchmove", this._onTouchMove) : Ot(document, "mousemove", this._onTouchMove) : (Ot(He, "dragend", this), Ot(
|
|
32348
|
+
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? Ot(document, "pointermove", this._onTouchMove) : e ? Ot(document, "touchmove", this._onTouchMove) : Ot(document, "mousemove", this._onTouchMove) : (Ot(He, "dragend", this), Ot(Wt, "dragstart", this._onDragStart));
|
|
32349
32349
|
try {
|
|
32350
32350
|
document.selection ? ql(function() {
|
|
32351
32351
|
document.selection.empty();
|
|
@@ -32354,7 +32354,7 @@ ht.prototype = /** @lends Sortable.prototype */
|
|
|
32354
32354
|
}
|
|
32355
32355
|
},
|
|
32356
32356
|
_dragStarted: function(t, e) {
|
|
32357
|
-
if (io = !1,
|
|
32357
|
+
if (io = !1, Wt && He) {
|
|
32358
32358
|
Nn("dragStarted", this, {
|
|
32359
32359
|
evt: e
|
|
32360
32360
|
}), this.nativeDraggable && Ot(document, "dragover", kN);
|
|
@@ -32414,7 +32414,7 @@ ht.prototype = /** @lends Sortable.prototype */
|
|
|
32414
32414
|
},
|
|
32415
32415
|
_appendGhost: function() {
|
|
32416
32416
|
if (!bt) {
|
|
32417
|
-
var t = this.options.fallbackOnBody ? document.body :
|
|
32417
|
+
var t = this.options.fallbackOnBody ? document.body : Wt, e = sn(He, !0, Sl, !0, t), r = this.options;
|
|
32418
32418
|
if (Sl) {
|
|
32419
32419
|
for (Sn = t; ft(Sn, "position") === "static" && ft(Sn, "transform") === "none" && Sn !== document; )
|
|
32420
32420
|
Sn = Sn.parentNode;
|
|
@@ -32432,7 +32432,7 @@ ht.prototype = /** @lends Sortable.prototype */
|
|
|
32432
32432
|
return;
|
|
32433
32433
|
}
|
|
32434
32434
|
Nn("setupClone", this), ht.eventCanceled || (Yt = ob(He), Yt.removeAttribute("id"), Yt.draggable = !1, Yt.style["will-change"] = "", this._hideClone(), qn(Yt, this.options.chosenClass, !1), ht.clone = Yt), r.cloneId = ql(function() {
|
|
32435
|
-
Nn("clone", r), !ht.eventCanceled && (r.options.removeCloneOnHide ||
|
|
32435
|
+
Nn("clone", r), !ht.eventCanceled && (r.options.removeCloneOnHide || Wt.insertBefore(Yt, He), r._hideClone(), On({
|
|
32436
32436
|
sortable: r,
|
|
32437
32437
|
name: "clone"
|
|
32438
32438
|
}));
|
|
@@ -32456,7 +32456,7 @@ ht.prototype = /** @lends Sortable.prototype */
|
|
|
32456
32456
|
target: r,
|
|
32457
32457
|
completed: b,
|
|
32458
32458
|
onMove: function(N, q) {
|
|
32459
|
-
return _l(
|
|
32459
|
+
return _l(Wt, e, He, i, N, sn(N), t, q);
|
|
32460
32460
|
},
|
|
32461
32461
|
changed: u
|
|
32462
32462
|
}, ne));
|
|
@@ -32485,22 +32485,22 @@ ht.prototype = /** @lends Sortable.prototype */
|
|
|
32485
32485
|
return m;
|
|
32486
32486
|
if (He.contains(t.target) || r.animated && r.animatingX && r.animatingY || g._ignoreWhileAnimating === r)
|
|
32487
32487
|
return b(!1);
|
|
32488
|
-
if (ps = !1, d && !l.disabled && (c ? h || (a = Jt !==
|
|
32488
|
+
if (ps = !1, d && !l.disabled && (c ? h || (a = Jt !== Wt) : vn === this || (this.lastPutMode = xl.checkPull(this, d, He, t)) && s.checkPut(this, d, He, t))) {
|
|
32489
32489
|
if (p = this._getDirection(t, r) === "vertical", i = sn(He), v("dragOverValid"), ht.eventCanceled)
|
|
32490
32490
|
return m;
|
|
32491
32491
|
if (a)
|
|
32492
|
-
return Jt =
|
|
32492
|
+
return Jt = Wt, y(), this._hideClone(), v("revert"), ht.eventCanceled || (Ci ? Wt.insertBefore(He, Ci) : Wt.appendChild(He)), b(!0);
|
|
32493
32493
|
var w = Tf(e, l.draggable);
|
|
32494
32494
|
if (!w || DN(t, p, this) && !w.animated) {
|
|
32495
32495
|
if (w === He)
|
|
32496
32496
|
return b(!1);
|
|
32497
|
-
if (w && e === t.target && (r = w), r && (o = sn(r)), _l(
|
|
32497
|
+
if (w && e === t.target && (r = w), r && (o = sn(r)), _l(Wt, e, He, i, r, o, t, !!r) !== !1)
|
|
32498
32498
|
return y(), w && w.nextSibling ? e.insertBefore(He, w.nextSibling) : e.appendChild(He), Jt = e, u(), b(!0);
|
|
32499
32499
|
} else if (w && TN(t, p, this)) {
|
|
32500
32500
|
var x = ko(e, 0, l, !0);
|
|
32501
32501
|
if (x === He)
|
|
32502
32502
|
return b(!1);
|
|
32503
|
-
if (r = x, o = sn(r), _l(
|
|
32503
|
+
if (r = x, o = sn(r), _l(Wt, e, He, i, r, o, t, !1) !== !1)
|
|
32504
32504
|
return y(), e.insertBefore(He, x), Jt = e, u(), b(!0);
|
|
32505
32505
|
} else if (r.parentNode === e) {
|
|
32506
32506
|
o = sn(r);
|
|
@@ -32518,7 +32518,7 @@ ht.prototype = /** @lends Sortable.prototype */
|
|
|
32518
32518
|
no = r, va = _;
|
|
32519
32519
|
var $ = r.nextElementSibling, Y = !1;
|
|
32520
32520
|
Y = _ === 1;
|
|
32521
|
-
var Z = _l(
|
|
32521
|
+
var Z = _l(Wt, e, He, i, r, o, t, Y);
|
|
32522
32522
|
if (Z !== !1)
|
|
32523
32523
|
return (Z === 1 || Z === -1) && (Y = Z === 1), Jc = !0, setTimeout(CN, 30), y(), Y && !$ ? e.appendChild(He) : r.parentNode.insertBefore(He, Y ? $ : r), S && ib(S, 0, C - S.scrollTop), Jt = He.parentNode, k !== void 0 && !El && (Hl = Math.abs(k - sn(r)[A])), u(), b(!0);
|
|
32524
32524
|
}
|
|
@@ -32543,18 +32543,18 @@ ht.prototype = /** @lends Sortable.prototype */
|
|
|
32543
32543
|
this._nulling();
|
|
32544
32544
|
return;
|
|
32545
32545
|
}
|
|
32546
|
-
io = !1, El = !1, ya = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ed(this.cloneId), ed(this._dragStartId), this.nativeDraggable && (Ct(document, "drop", this), Ct(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), pa && ft(document.body, "user-select", ""), ft(He, "transform", ""), t && (ta && (t.cancelable && t.preventDefault(), !r.dropBubble && t.stopPropagation()), bt && bt.parentNode && bt.parentNode.removeChild(bt), (
|
|
32546
|
+
io = !1, El = !1, ya = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ed(this.cloneId), ed(this._dragStartId), this.nativeDraggable && (Ct(document, "drop", this), Ct(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), pa && ft(document.body, "user-select", ""), ft(He, "transform", ""), t && (ta && (t.cancelable && t.preventDefault(), !r.dropBubble && t.stopPropagation()), bt && bt.parentNode && bt.parentNode.removeChild(bt), (Wt === Jt || vn && vn.lastPutMode !== "clone") && Yt && Yt.parentNode && Yt.parentNode.removeChild(Yt), He && (this.nativeDraggable && Ct(He, "dragend", this), tc(He), He.style["will-change"] = "", ta && !io && qn(He, vn ? vn.options.ghostClass : this.options.ghostClass, !1), qn(He, this.options.chosenClass, !1), On({
|
|
32547
32547
|
sortable: this,
|
|
32548
32548
|
name: "unchoose",
|
|
32549
32549
|
toEl: Jt,
|
|
32550
32550
|
newIndex: null,
|
|
32551
32551
|
newDraggableIndex: null,
|
|
32552
32552
|
originalEvent: t
|
|
32553
|
-
}),
|
|
32553
|
+
}), Wt !== Jt ? (Un >= 0 && (On({
|
|
32554
32554
|
rootEl: Jt,
|
|
32555
32555
|
name: "add",
|
|
32556
32556
|
toEl: Jt,
|
|
32557
|
-
fromEl:
|
|
32557
|
+
fromEl: Wt,
|
|
32558
32558
|
originalEvent: t
|
|
32559
32559
|
}), On({
|
|
32560
32560
|
sortable: this,
|
|
@@ -32565,7 +32565,7 @@ ht.prototype = /** @lends Sortable.prototype */
|
|
|
32565
32565
|
rootEl: Jt,
|
|
32566
32566
|
name: "sort",
|
|
32567
32567
|
toEl: Jt,
|
|
32568
|
-
fromEl:
|
|
32568
|
+
fromEl: Wt,
|
|
32569
32569
|
originalEvent: t
|
|
32570
32570
|
}), On({
|
|
32571
32571
|
sortable: this,
|
|
@@ -32590,7 +32590,7 @@ ht.prototype = /** @lends Sortable.prototype */
|
|
|
32590
32590
|
}), this.save()))), this._nulling();
|
|
32591
32591
|
},
|
|
32592
32592
|
_nulling: function() {
|
|
32593
|
-
Nn("nulling", this),
|
|
32593
|
+
Nn("nulling", this), Wt = He = Jt = bt = Ci = Yt = $l = Jr = Si = sr = ta = Un = Xr = ao = ga = no = va = vn = xl = ht.dragged = ht.ghost = ht.clone = ht.active = null, gs.forEach(function(t) {
|
|
32594
32594
|
t.checked = !0;
|
|
32595
32595
|
}), gs.length = Xu = Ju = 0;
|
|
32596
32596
|
},
|
|
@@ -32685,7 +32685,7 @@ ht.prototype = /** @lends Sortable.prototype */
|
|
|
32685
32685
|
if (Jr) {
|
|
32686
32686
|
if (Nn("showClone", this), ht.eventCanceled)
|
|
32687
32687
|
return;
|
|
32688
|
-
He.parentNode ==
|
|
32688
|
+
He.parentNode == Wt && !this.options.group.revertClone ? Wt.insertBefore(Yt, He) : Ci ? Wt.insertBefore(Yt, Ci) : Wt.appendChild(Yt), this.options.group.revertClone && this.animate(He, Yt), ft(Yt, "display", ""), Jr = !1;
|
|
32689
32689
|
}
|
|
32690
32690
|
}
|
|
32691
32691
|
};
|
|
@@ -34347,7 +34347,7 @@ const UP = /* @__PURE__ */ pi(zP, [["render", qP]]), VP = { class: "space-y-3" }
|
|
|
34347
34347
|
a(), im(
|
|
34348
34348
|
e.value,
|
|
34349
34349
|
() => {
|
|
34350
|
-
r.value = !1,
|
|
34350
|
+
r.value = !1, Ut(() => {
|
|
34351
34351
|
a();
|
|
34352
34352
|
});
|
|
34353
34353
|
},
|
|
@@ -43463,7 +43463,7 @@ const Vp = {
|
|
|
43463
43463
|
}, D = () => {
|
|
43464
43464
|
e == null || e.focus();
|
|
43465
43465
|
}, A = () => {
|
|
43466
|
-
|
|
43466
|
+
Ut(() => {
|
|
43467
43467
|
var S;
|
|
43468
43468
|
!t.slots.toolbar && e && ((S = e.getModule("toolbar")) === null || S === void 0 || S.container.remove()), o();
|
|
43469
43469
|
});
|
|
@@ -43472,7 +43472,7 @@ const Vp = {
|
|
|
43472
43472
|
if (!e || !S || c(S))
|
|
43473
43473
|
return;
|
|
43474
43474
|
const C = e.getSelection();
|
|
43475
|
-
C &&
|
|
43475
|
+
C && Ut(() => e == null ? void 0 : e.setSelection(C)), u(S);
|
|
43476
43476
|
}, { deep: !0 }), ut(() => n.enable, (S) => {
|
|
43477
43477
|
e && e.enable(S);
|
|
43478
43478
|
}), {
|
|
@@ -44202,7 +44202,7 @@ const NB = /* @__PURE__ */ pi(CB, [["render", IB]]), PB = /* @__PURE__ */ j("spa
|
|
|
44202
44202
|
ut(
|
|
44203
44203
|
() => e.fullPath,
|
|
44204
44204
|
() => {
|
|
44205
|
-
|
|
44205
|
+
Ut(() => {
|
|
44206
44206
|
a(), s();
|
|
44207
44207
|
});
|
|
44208
44208
|
}
|
|
@@ -44234,7 +44234,7 @@ const NB = /* @__PURE__ */ pi(CB, [["render", IB]]), PB = /* @__PURE__ */ j("spa
|
|
|
44234
44234
|
}
|
|
44235
44235
|
const l = oe(null);
|
|
44236
44236
|
pt(() => {
|
|
44237
|
-
|
|
44237
|
+
Ut(() => {
|
|
44238
44238
|
s(!1);
|
|
44239
44239
|
});
|
|
44240
44240
|
});
|
|
@@ -44665,7 +44665,7 @@ const NB = /* @__PURE__ */ pi(CB, [["render", IB]]), PB = /* @__PURE__ */ j("spa
|
|
|
44665
44665
|
(b = o.value[p + v.length]) == null || b.focus(), g.preventDefault();
|
|
44666
44666
|
};
|
|
44667
44667
|
return pt(async () => {
|
|
44668
|
-
await
|
|
44668
|
+
await Ut(), o.value = Array.from(
|
|
44669
44669
|
{ length: e.numberOfCharacters },
|
|
44670
44670
|
(g, m) => o.value[m]
|
|
44671
44671
|
);
|
|
@@ -45553,7 +45553,7 @@ const NB = /* @__PURE__ */ pi(CB, [["render", IB]]), PB = /* @__PURE__ */ j("spa
|
|
|
45553
45553
|
const w5 = 100, N5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
45554
45554
|
__proto__: null,
|
|
45555
45555
|
MAGIC_NUM: w5
|
|
45556
|
-
}, Symbol.toStringTag, { value: "Module" })), P5 = { en: Um, fr: Vm },
|
|
45556
|
+
}, Symbol.toStringTag, { value: "Module" })), P5 = { en: Um, fr: Vm }, qt = {
|
|
45557
45557
|
http: Fb.create(),
|
|
45558
45558
|
locales: {
|
|
45559
45559
|
en: "English",
|
|
@@ -45562,24 +45562,27 @@ const w5 = 100, N5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
45562
45562
|
upload_url: "/api/upload",
|
|
45563
45563
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
45564
45564
|
formatQueryString(n) {
|
|
45565
|
-
return
|
|
45565
|
+
return zf.stringify(n, {
|
|
45566
45566
|
//arrayFormat: 'comma',
|
|
45567
45567
|
//encode: true ? true : false,
|
|
45568
45568
|
});
|
|
45569
45569
|
},
|
|
45570
45570
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
45571
45571
|
parseQueryString(n) {
|
|
45572
|
-
return
|
|
45572
|
+
return zf.parse(n, {
|
|
45573
45573
|
//comma: true,
|
|
45574
45574
|
});
|
|
45575
45575
|
},
|
|
45576
45576
|
countries: [],
|
|
45577
|
-
regions: []
|
|
45577
|
+
regions: [],
|
|
45578
|
+
props: {
|
|
45579
|
+
size: "md"
|
|
45580
|
+
}
|
|
45578
45581
|
};
|
|
45579
45582
|
function x5(n, t) {
|
|
45580
45583
|
for (const e in Yp)
|
|
45581
45584
|
n.component(e, Yp[e]);
|
|
45582
|
-
t != null && t.http && (
|
|
45585
|
+
t != null && t.http && (qt.http = t.http), t != null && t.locales && (qt.locales = t.locales), t != null && t.upload_url && (qt.upload_url = t.upload_url), t != null && t.formatQueryString && (qt.formatQueryString = t.formatQueryString), t != null && t.parseQueryString && (qt.parseQueryString = t.parseQueryString), t != null && t.countries && (qt.countries = t.countries), t != null && t.regions && (qt.regions = t.regions), n.config.globalProperties.$i18n && ut(
|
|
45583
45586
|
() => n.config.globalProperties.$i18n.locale,
|
|
45584
45587
|
(e) => {
|
|
45585
45588
|
$i().set(e);
|
|
@@ -45689,7 +45692,7 @@ export {
|
|
|
45689
45692
|
N5 as MyConstants,
|
|
45690
45693
|
I5 as base64ToBlob,
|
|
45691
45694
|
tD as blobToBase64,
|
|
45692
|
-
|
|
45695
|
+
qt as config,
|
|
45693
45696
|
B5 as default,
|
|
45694
45697
|
kd as disableScroll,
|
|
45695
45698
|
Ad as enableScroll,
|
|
@@ -201,6 +201,7 @@ import './assets/main.css';
|
|
|
201
201
|
import { Locales } from './types';
|
|
202
202
|
import { Country } from './types/Country';
|
|
203
203
|
import { Region } from './types/Region';
|
|
204
|
+
import { Size } from './utils/sizes';
|
|
204
205
|
export interface Options {
|
|
205
206
|
http?: AxiosInstance;
|
|
206
207
|
upload_url?: string;
|
|
@@ -209,6 +210,9 @@ export interface Options {
|
|
|
209
210
|
parseQueryString?: (params: string) => Record<string, any>;
|
|
210
211
|
countries?: Country[];
|
|
211
212
|
regions?: Region[];
|
|
213
|
+
props?: {
|
|
214
|
+
size?: Size;
|
|
215
|
+
};
|
|
212
216
|
}
|
|
213
217
|
declare const config: {
|
|
214
218
|
http: AxiosInstance;
|
|
@@ -218,6 +222,9 @@ declare const config: {
|
|
|
218
222
|
parseQueryString(params: string): Record<string, any>;
|
|
219
223
|
countries: Country[];
|
|
220
224
|
regions: Region[];
|
|
225
|
+
props: {
|
|
226
|
+
size: string;
|
|
227
|
+
};
|
|
221
228
|
};
|
|
222
229
|
declare function install(app: App, options?: Options): void;
|
|
223
230
|
declare const _default: {
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { useBreakpoints } from "./breakpoints";
|
|
2
2
|
import { Size, sizes } from "@/utils/sizes";
|
|
3
3
|
import { MaybeRef } from "vue";
|
|
4
|
+
import { config } from "..";
|
|
4
5
|
|
|
5
6
|
function useInputSize(size: MaybeRef<Size | '' | undefined | null>) {
|
|
6
7
|
|
|
7
8
|
const bp = useBreakpoints();
|
|
8
9
|
|
|
10
|
+
const defaultSize = (config.props.size ?? 'md') as Size;
|
|
11
|
+
|
|
9
12
|
const sizeInternal = computed(() => {
|
|
10
13
|
|
|
11
14
|
if (bp.smaller('sm').value) {
|
|
@@ -15,11 +18,11 @@ function useInputSize(size: MaybeRef<Size | '' | undefined | null>) {
|
|
|
15
18
|
let s = unref(size);
|
|
16
19
|
|
|
17
20
|
if (!s) {
|
|
18
|
-
s =
|
|
21
|
+
s = defaultSize;
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
if (!Object.keys(sizes).includes(s)) {
|
|
22
|
-
s =
|
|
25
|
+
s = defaultSize;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
return s;
|
package/src/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { Locales } from './types';
|
|
|
17
17
|
import { Country } from './types/Country';
|
|
18
18
|
import { Region } from './types/Region';
|
|
19
19
|
import { useI18nStore } from './stores/i18n';
|
|
20
|
+
import { Size } from './utils/sizes';
|
|
20
21
|
|
|
21
22
|
export interface Options {
|
|
22
23
|
http?: AxiosInstance;
|
|
@@ -28,6 +29,9 @@ export interface Options {
|
|
|
28
29
|
parseQueryString?: (params: string) => Record<string, any>;
|
|
29
30
|
countries?: Country[];
|
|
30
31
|
regions?: Region[];
|
|
32
|
+
props?: {
|
|
33
|
+
size?: Size
|
|
34
|
+
}
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
const config = {
|
|
@@ -52,6 +56,9 @@ const config = {
|
|
|
52
56
|
},
|
|
53
57
|
countries: [] as Country[],
|
|
54
58
|
regions: [] as Region[],
|
|
59
|
+
props: {
|
|
60
|
+
size: 'md'
|
|
61
|
+
}
|
|
55
62
|
};
|
|
56
63
|
|
|
57
64
|
function install(app: App, options?: Options) {
|