@xy-planning-network/trees 0.14.0-dev-1 → 0.14.0-dev-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/trees.es.js +530 -521
- package/dist/trees.umd.js +12 -12
- package/package.json +1 -1
- package/types/composables/index.d.ts +2 -2
package/dist/trees.es.js
CHANGED
|
@@ -2104,23 +2104,23 @@ be.getAdapter = ki.getAdapter;
|
|
|
2104
2104
|
be.HttpStatusCode = po;
|
|
2105
2105
|
be.default = be;
|
|
2106
2106
|
const {
|
|
2107
|
-
Axios:
|
|
2108
|
-
AxiosError:
|
|
2109
|
-
CanceledError:
|
|
2110
|
-
isCancel:
|
|
2111
|
-
CancelToken:
|
|
2112
|
-
VERSION:
|
|
2113
|
-
all:
|
|
2114
|
-
Cancel:
|
|
2115
|
-
isAxiosError:
|
|
2116
|
-
spread:
|
|
2117
|
-
toFormData:
|
|
2118
|
-
AxiosHeaders:
|
|
2119
|
-
HttpStatusCode:
|
|
2120
|
-
formToJSON:
|
|
2121
|
-
getAdapter:
|
|
2122
|
-
mergeConfig:
|
|
2123
|
-
create:
|
|
2107
|
+
Axios: I2,
|
|
2108
|
+
AxiosError: L2,
|
|
2109
|
+
CanceledError: B2,
|
|
2110
|
+
isCancel: F2,
|
|
2111
|
+
CancelToken: N2,
|
|
2112
|
+
VERSION: V2,
|
|
2113
|
+
all: q2,
|
|
2114
|
+
Cancel: U2,
|
|
2115
|
+
isAxiosError: j2,
|
|
2116
|
+
spread: H2,
|
|
2117
|
+
toFormData: W2,
|
|
2118
|
+
AxiosHeaders: K2,
|
|
2119
|
+
HttpStatusCode: z2,
|
|
2120
|
+
formToJSON: Y2,
|
|
2121
|
+
getAdapter: G2,
|
|
2122
|
+
mergeConfig: J2,
|
|
2123
|
+
create: Q2
|
|
2124
2124
|
} = be, Mi = "HttpError", Ii = "HttpErrorCanceled";
|
|
2125
2125
|
class Nr extends Error {
|
|
2126
2126
|
constructor(n, r, a, o) {
|
|
@@ -2218,7 +2218,7 @@ const gn = (e, t) => {
|
|
|
2218
2218
|
n || {}
|
|
2219
2219
|
);
|
|
2220
2220
|
}
|
|
2221
|
-
},
|
|
2221
|
+
}, Z2 = (e) => {
|
|
2222
2222
|
Kr.defaults = { ...Kr.defaults, ...e };
|
|
2223
2223
|
}, sp = (e) => e instanceof Nr, lp = (e) => sp(e) && e.name === Ii;
|
|
2224
2224
|
function Vr(e, t = 500) {
|
|
@@ -2229,7 +2229,7 @@ function Vr(e, t = 500) {
|
|
|
2229
2229
|
}, t);
|
|
2230
2230
|
};
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function X2(e, t = 500) {
|
|
2233
2233
|
let n = null;
|
|
2234
2234
|
return (...r) => {
|
|
2235
2235
|
n ? clearTimeout(n) : e.apply(r), n = setTimeout(() => {
|
|
@@ -2245,7 +2245,7 @@ const ht = {
|
|
|
2245
2245
|
}, ve = {
|
|
2246
2246
|
default: void 0,
|
|
2247
2247
|
required: !1
|
|
2248
|
-
},
|
|
2248
|
+
}, e$ = [
|
|
2249
2249
|
"date",
|
|
2250
2250
|
"email",
|
|
2251
2251
|
"month",
|
|
@@ -2258,7 +2258,7 @@ const ht = {
|
|
|
2258
2258
|
"time",
|
|
2259
2259
|
"url",
|
|
2260
2260
|
"week"
|
|
2261
|
-
],
|
|
2261
|
+
], t$ = ["money", "number", "raw-number"], yt = (e) => {
|
|
2262
2262
|
const t = ua(), n = A(""), r = qd(), a = C(() => t.id || r), o = C(() => vo(t, "disabled")), s = C(() => vo(t, "required")), l = C(() => typeof t.name == "string" && t.name !== "" ? t.name : a.value), i = C(() => ({
|
|
2263
2263
|
labelledby: e.label ? `${a.value}-label` : void 0,
|
|
2264
2264
|
describedby: e.help ? `${a.value}-help` : void 0,
|
|
@@ -2292,13 +2292,13 @@ const ht = {
|
|
|
2292
2292
|
const t = new Date(e);
|
|
2293
2293
|
return t.setMinutes(t.getMinutes() - t.getTimezoneOffset()), t.toISOString().slice(0, 16);
|
|
2294
2294
|
};
|
|
2295
|
-
function
|
|
2295
|
+
function n$(e, t = 100) {
|
|
2296
2296
|
let n;
|
|
2297
2297
|
return (...r) => {
|
|
2298
2298
|
n || (e.apply(r), n = !0, setTimeout(() => n = !1, t));
|
|
2299
2299
|
};
|
|
2300
2300
|
}
|
|
2301
|
-
const
|
|
2301
|
+
const r$ = (e) => !("url" in e) || typeof e.url != "string", Fi = (e) => "url" in e && typeof e.url == "string", a$ = (e, t) => {
|
|
2302
2302
|
var d;
|
|
2303
2303
|
const n = A(e), r = {
|
|
2304
2304
|
initial: ((d = n == null ? void 0 : n.value[0]) == null ? void 0 : d.value) || "",
|
|
@@ -2318,7 +2318,7 @@ const J2 = (e) => !("url" in e) || typeof e.url != "string", Fi = (e) => "url" i
|
|
|
2318
2318
|
isActiveTab: s,
|
|
2319
2319
|
tabs: n
|
|
2320
2320
|
};
|
|
2321
|
-
},
|
|
2321
|
+
}, o$ = (e) => {
|
|
2322
2322
|
const t = A(e);
|
|
2323
2323
|
return fe(
|
|
2324
2324
|
t,
|
|
@@ -9438,7 +9438,7 @@ const O0 = {
|
|
|
9438
9438
|
positionStrategy: "fixed",
|
|
9439
9439
|
updatePositionStrategy: "optimized",
|
|
9440
9440
|
prioritizePosition: !1
|
|
9441
|
-
}, [
|
|
9441
|
+
}, [s$, P0] = /* @__PURE__ */ mr("PopperContent");
|
|
9442
9442
|
var k0 = /* @__PURE__ */ R({
|
|
9443
9443
|
inheritAttrs: !1,
|
|
9444
9444
|
__name: "PopperContent",
|
|
@@ -11271,7 +11271,7 @@ var ay = /* @__PURE__ */ R({
|
|
|
11271
11271
|
]));
|
|
11272
11272
|
}
|
|
11273
11273
|
}), $y = xy;
|
|
11274
|
-
const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3),
|
|
11274
|
+
const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), _y = {
|
|
11275
11275
|
label: "Last 7 days",
|
|
11276
11276
|
action: () => {
|
|
11277
11277
|
const e = Gt(Ke());
|
|
@@ -11280,7 +11280,7 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11280
11280
|
maxDate: Xe(e)
|
|
11281
11281
|
};
|
|
11282
11282
|
}
|
|
11283
|
-
},
|
|
11283
|
+
}, Cy = {
|
|
11284
11284
|
label: "Last 30 days",
|
|
11285
11285
|
action: () => {
|
|
11286
11286
|
const e = Gt(Ke());
|
|
@@ -11290,7 +11290,7 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11290
11290
|
maxDate: Xe(e)
|
|
11291
11291
|
};
|
|
11292
11292
|
}
|
|
11293
|
-
},
|
|
11293
|
+
}, Ey = {
|
|
11294
11294
|
label: "This month",
|
|
11295
11295
|
action: () => {
|
|
11296
11296
|
const e = Gt(Ke());
|
|
@@ -11299,7 +11299,7 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11299
11299
|
maxDate: Xe(e)
|
|
11300
11300
|
};
|
|
11301
11301
|
}
|
|
11302
|
-
},
|
|
11302
|
+
}, Sy = {
|
|
11303
11303
|
label: "Last month",
|
|
11304
11304
|
action: () => {
|
|
11305
11305
|
const e = Gt(Ke()).subtract({ months: 1 }).set({ day: 1 });
|
|
@@ -11310,7 +11310,7 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11310
11310
|
)
|
|
11311
11311
|
};
|
|
11312
11312
|
}
|
|
11313
|
-
},
|
|
11313
|
+
}, Dy = {
|
|
11314
11314
|
label: "This year",
|
|
11315
11315
|
action: () => {
|
|
11316
11316
|
const e = Gt(Ke());
|
|
@@ -11319,7 +11319,7 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11319
11319
|
maxDate: Xe(e)
|
|
11320
11320
|
};
|
|
11321
11321
|
}
|
|
11322
|
-
},
|
|
11322
|
+
}, Ay = {
|
|
11323
11323
|
label: "Last year",
|
|
11324
11324
|
action: () => {
|
|
11325
11325
|
const e = Gt(Ke()).subtract({ years: 1 }).set({ month: 1, day: 1 });
|
|
@@ -11330,19 +11330,27 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11330
11330
|
)
|
|
11331
11331
|
};
|
|
11332
11332
|
}
|
|
11333
|
-
},
|
|
11333
|
+
}, Oy = {
|
|
11334
11334
|
label: "Clear",
|
|
11335
11335
|
action: () => ({
|
|
11336
11336
|
minDate: 0,
|
|
11337
11337
|
maxDate: 0
|
|
11338
11338
|
})
|
|
11339
|
-
},
|
|
11339
|
+
}, l$ = [
|
|
11340
|
+
_y,
|
|
11341
|
+
Cy,
|
|
11342
|
+
Ey,
|
|
11343
|
+
Sy,
|
|
11344
|
+
Dy,
|
|
11345
|
+
Ay,
|
|
11346
|
+
Oy
|
|
11347
|
+
], Py = { class: "w-full flex items-start justify-start" }, ky = {
|
|
11340
11348
|
key: 0,
|
|
11341
11349
|
class: "bg-neutral-50 p-4 grid grid-cols-2 sm:grid-cols-1 lg:max-w-[160px]"
|
|
11342
|
-
},
|
|
11350
|
+
}, Ry = ["onClick"], Ty = {
|
|
11343
11351
|
key: 0,
|
|
11344
11352
|
class: "flex items-center"
|
|
11345
|
-
},
|
|
11353
|
+
}, My = { class: "text-sm font-semibold text-xy-black flex-1 text-center" }, Iy = { class: "pt-4" }, sd = /* @__PURE__ */ R({
|
|
11346
11354
|
inheritAttrs: !1,
|
|
11347
11355
|
__name: "RangeCalendar",
|
|
11348
11356
|
props: /* @__PURE__ */ ge({
|
|
@@ -11413,19 +11421,19 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11413
11421
|
o(d.action(n));
|
|
11414
11422
|
}
|
|
11415
11423
|
})));
|
|
11416
|
-
return (d, u) => (w(), E("div",
|
|
11424
|
+
return (d, u) => (w(), E("div", Py, [
|
|
11417
11425
|
b("div", {
|
|
11418
11426
|
class: L([
|
|
11419
11427
|
"bg-white overflow-hidden flex flex-col-reverse sm:flex-row",
|
|
11420
11428
|
!d.borderless && "border border-neutral-100 shadow rounded-xy-lg"
|
|
11421
11429
|
])
|
|
11422
11430
|
}, [
|
|
11423
|
-
i.value.length > 0 ? (w(), E("div",
|
|
11431
|
+
i.value.length > 0 ? (w(), E("div", ky, [
|
|
11424
11432
|
(w(!0), E(Q, null, X(i.value, (c) => (w(), E("button", {
|
|
11425
11433
|
key: c.label,
|
|
11426
11434
|
class: "flex w-full rounded-md bg-transparent hover:bg-gray-100 transition px-3 py-2 text-xs font-medium",
|
|
11427
11435
|
onClick: c.action
|
|
11428
|
-
}, j(c.label), 9,
|
|
11436
|
+
}, j(c.label), 9, Ry))), 128))
|
|
11429
11437
|
])) : F("", !0),
|
|
11430
11438
|
b("div", null, [
|
|
11431
11439
|
D(p(oy), {
|
|
@@ -11443,14 +11451,14 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11443
11451
|
key: v.value.toString(),
|
|
11444
11452
|
class: L({ "mr-4": h === 0 })
|
|
11445
11453
|
}, [
|
|
11446
|
-
h === 0 ? (w(), E("div",
|
|
11454
|
+
h === 0 ? (w(), E("div", Ty, [
|
|
11447
11455
|
D(p($y), { class: "xy-btn-neutral-sm xy-range-cal-nav" }, {
|
|
11448
11456
|
default: k(() => [
|
|
11449
11457
|
D(p(nc), { class: "w-4 h-4" })
|
|
11450
11458
|
]),
|
|
11451
11459
|
_: 1
|
|
11452
11460
|
}),
|
|
11453
|
-
b("span",
|
|
11461
|
+
b("span", My, j(p(t).custom(v.value.toDate(p(Ke)()), {
|
|
11454
11462
|
month: "long",
|
|
11455
11463
|
year: "numeric"
|
|
11456
11464
|
})), 1),
|
|
@@ -11461,7 +11469,7 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11461
11469
|
_: 1
|
|
11462
11470
|
})
|
|
11463
11471
|
])) : F("", !0),
|
|
11464
|
-
b("div",
|
|
11472
|
+
b("div", Iy, [
|
|
11465
11473
|
D(p(cy), { class: "w-full select-none space-y-1" }, {
|
|
11466
11474
|
default: k(() => [
|
|
11467
11475
|
D(p(my), null, {
|
|
@@ -11522,7 +11530,7 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11522
11530
|
], 2)
|
|
11523
11531
|
]));
|
|
11524
11532
|
}
|
|
11525
|
-
}),
|
|
11533
|
+
}), Ly = { class: "xy-date-range-picker" }, By = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "data-state", "placeholder", "value"], Fy = { class: "absolute right-0 top-1/2 -translate-y-1/2 text-neutral-400" }, Ny = ["name", "required", "value"], Vy = ["name", "required", "value"], Cs = /* @__PURE__ */ R({
|
|
11526
11534
|
inheritAttrs: !1,
|
|
11527
11535
|
__name: "DateRangePicker",
|
|
11528
11536
|
props: /* @__PURE__ */ ge(/* @__PURE__ */ st({
|
|
@@ -11610,7 +11618,7 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11610
11618
|
default: k(() => {
|
|
11611
11619
|
var W, z;
|
|
11612
11620
|
return [
|
|
11613
|
-
b("div",
|
|
11621
|
+
b("div", Ly, [
|
|
11614
11622
|
D(T, {
|
|
11615
11623
|
id: p(a).labelledby,
|
|
11616
11624
|
class: "mb-2",
|
|
@@ -11641,8 +11649,8 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11641
11649
|
}, O.$attrs, {
|
|
11642
11650
|
type: "text",
|
|
11643
11651
|
onFocus: P[0] || (P[0] = (U) => g.value = !0)
|
|
11644
|
-
}), null, 16,
|
|
11645
|
-
b("div",
|
|
11652
|
+
}), null, 16, By),
|
|
11653
|
+
b("div", Fy, [
|
|
11646
11654
|
h.value && !p(l) ? (w(), E("button", {
|
|
11647
11655
|
key: 0,
|
|
11648
11656
|
class: "p-2",
|
|
@@ -11683,7 +11691,7 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11683
11691
|
tabindex: "-1",
|
|
11684
11692
|
onInvalid: P[1] || (P[1] = //@ts-ignore
|
|
11685
11693
|
(...U) => p(u) && p(u)(...U))
|
|
11686
|
-
}, null, 40,
|
|
11694
|
+
}, null, 40, Ny),
|
|
11687
11695
|
b("input", {
|
|
11688
11696
|
class: "sr-only top-1 left-1",
|
|
11689
11697
|
"aria-hidden": "true",
|
|
@@ -11693,7 +11701,7 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11693
11701
|
tabindex: "-1",
|
|
11694
11702
|
onInvalid: P[2] || (P[2] = //@ts-ignore
|
|
11695
11703
|
(...U) => p(u) && p(u)(...U))
|
|
11696
|
-
}, null, 40,
|
|
11704
|
+
}, null, 40, Vy)
|
|
11697
11705
|
]),
|
|
11698
11706
|
D(p(Q0), { disabled: "" }, {
|
|
11699
11707
|
default: k(() => [
|
|
@@ -11732,7 +11740,7 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11732
11740
|
}, 8, ["open"]);
|
|
11733
11741
|
};
|
|
11734
11742
|
}
|
|
11735
|
-
}),
|
|
11743
|
+
}), qy = {
|
|
11736
11744
|
key: 0,
|
|
11737
11745
|
class: "text-red-700/80",
|
|
11738
11746
|
"aria-hidden": ""
|
|
@@ -11751,7 +11759,7 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11751
11759
|
}, r.$attrs), {
|
|
11752
11760
|
default: k(() => [
|
|
11753
11761
|
te(j(n.value), 1),
|
|
11754
|
-
t.required ? (w(), E("span",
|
|
11762
|
+
t.required ? (w(), E("span", qy, "*")) : F("", !0)
|
|
11755
11763
|
]),
|
|
11756
11764
|
_: 1
|
|
11757
11765
|
}, 16)) : F("", !0);
|
|
@@ -11773,7 +11781,7 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11773
11781
|
_: 1
|
|
11774
11782
|
}, 16)) : F("", !0);
|
|
11775
11783
|
}
|
|
11776
|
-
}),
|
|
11784
|
+
}), Uy = {
|
|
11777
11785
|
key: 0,
|
|
11778
11786
|
class: "text-sm text-red-700"
|
|
11779
11787
|
}, bt = /* @__PURE__ */ R({
|
|
@@ -11782,9 +11790,9 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11782
11790
|
text: { default: "" }
|
|
11783
11791
|
},
|
|
11784
11792
|
setup(e) {
|
|
11785
|
-
return (t, n) => t.text ? (w(), E("p",
|
|
11793
|
+
return (t, n) => t.text ? (w(), E("p", Uy, j(t.text), 1)) : F("", !0);
|
|
11786
11794
|
}
|
|
11787
|
-
}),
|
|
11795
|
+
}), jy = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage"], Hy = ["textContent"], Wy = ["value", "disabled", "textContent"], Es = /* @__PURE__ */ R({
|
|
11788
11796
|
inheritAttrs: !1,
|
|
11789
11797
|
__name: "Select",
|
|
11790
11798
|
props: /* @__PURE__ */ ge(/* @__PURE__ */ st({
|
|
@@ -11833,14 +11841,14 @@ const Xe = (e) => Math.floor(e.toDate(Ke()).getTime() / 1e3), e$ = {
|
|
|
11833
11841
|
disabled: "",
|
|
11834
11842
|
selected: "",
|
|
11835
11843
|
textContent: j(d.placeholder)
|
|
11836
|
-
}, null, 8,
|
|
11844
|
+
}, null, 8, Hy),
|
|
11837
11845
|
(w(!0), E(Q, null, X(d.options, (c) => (w(), E("option", {
|
|
11838
11846
|
key: c.value,
|
|
11839
11847
|
value: c.value,
|
|
11840
11848
|
disabled: c.disabled,
|
|
11841
11849
|
textContent: j(c.label)
|
|
11842
|
-
}, null, 8,
|
|
11843
|
-
], 16,
|
|
11850
|
+
}, null, 8, Wy))), 128))
|
|
11851
|
+
], 16, jy), [
|
|
11844
11852
|
[Yd, n.value]
|
|
11845
11853
|
]),
|
|
11846
11854
|
D(qe, {
|
|
@@ -11927,30 +11935,30 @@ function yr(e, t = "GET", n = {}) {
|
|
|
11927
11935
|
execute: f
|
|
11928
11936
|
};
|
|
11929
11937
|
}
|
|
11930
|
-
function
|
|
11938
|
+
function i$(e, t = {}) {
|
|
11931
11939
|
return yr(e, "GET", t);
|
|
11932
11940
|
}
|
|
11933
|
-
function
|
|
11941
|
+
function u$(e, t = {}) {
|
|
11934
11942
|
return yr(e, "DELETE", t);
|
|
11935
11943
|
}
|
|
11936
|
-
function
|
|
11944
|
+
function d$(e, t = {}) {
|
|
11937
11945
|
return yr(e, "PATCH", t);
|
|
11938
11946
|
}
|
|
11939
|
-
function
|
|
11947
|
+
function c$(e, t = {}) {
|
|
11940
11948
|
return yr(e, "POST", t);
|
|
11941
11949
|
}
|
|
11942
|
-
function
|
|
11950
|
+
function f$(e, t = {}) {
|
|
11943
11951
|
return yr(e, "PUT", t);
|
|
11944
11952
|
}
|
|
11945
|
-
const zl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
|
|
11953
|
+
const zl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", Ky = (e = 8) => {
|
|
11946
11954
|
let t = "";
|
|
11947
11955
|
for (let n = 0; n < e; n++)
|
|
11948
11956
|
t += zl.charAt(Math.floor(Math.random() * zl.length));
|
|
11949
11957
|
return t;
|
|
11950
|
-
},
|
|
11951
|
-
CreateIdAttribute:
|
|
11958
|
+
}, zy = {
|
|
11959
|
+
CreateIdAttribute: Ky
|
|
11952
11960
|
};
|
|
11953
|
-
function
|
|
11961
|
+
function Yy(e = {}) {
|
|
11954
11962
|
const t = A(/* @__PURE__ */ new Map());
|
|
11955
11963
|
let n = {
|
|
11956
11964
|
removeDelay: 1e4,
|
|
@@ -11964,7 +11972,7 @@ function qy(e = {}) {
|
|
|
11964
11972
|
}, a = (f) => {
|
|
11965
11973
|
t.value.delete(f);
|
|
11966
11974
|
}, o = (f) => {
|
|
11967
|
-
const v =
|
|
11975
|
+
const v = zy.CreateIdAttribute();
|
|
11968
11976
|
return t.value.set(v, f), (f.persistent === void 0 || !f.persistent) && setTimeout(() => a(v), n.removeDelay), v;
|
|
11969
11977
|
}, s = (f) => o(f), l = (f, v = !1) => o({ message: f, persistent: v, type: "error" }), i = (f, v = !1) => o({
|
|
11970
11978
|
message: f,
|
|
@@ -12003,7 +12011,7 @@ function qy(e = {}) {
|
|
|
12003
12011
|
configure: r
|
|
12004
12012
|
};
|
|
12005
12013
|
}
|
|
12006
|
-
const
|
|
12014
|
+
const Gy = (e) => {
|
|
12007
12015
|
if (window.Flashes)
|
|
12008
12016
|
for (const t of window.Flashes) {
|
|
12009
12017
|
if (typeof t.type > "u") {
|
|
@@ -12016,7 +12024,7 @@ const Uy = (e) => {
|
|
|
12016
12024
|
};
|
|
12017
12025
|
let oo;
|
|
12018
12026
|
function wn() {
|
|
12019
|
-
return oo === void 0 && (oo =
|
|
12027
|
+
return oo === void 0 && (oo = Yy()), oo;
|
|
12020
12028
|
}
|
|
12021
12029
|
const id = {
|
|
12022
12030
|
error(e, t) {
|
|
@@ -12034,7 +12042,7 @@ const id = {
|
|
|
12034
12042
|
genericError(e, t) {
|
|
12035
12043
|
wn().flasher.genericError(e, t);
|
|
12036
12044
|
}
|
|
12037
|
-
},
|
|
12045
|
+
}, Jy = { class: "px-4 flex items-center justify-between sm:px-0" }, Qy = { class: "w-0 flex-1 flex" }, Zy = { class: "hidden md:flex" }, Xy = ["onClick", "textContent"], eg = { class: "w-0 flex-1 flex justify-end" }, ud = /* @__PURE__ */ R({
|
|
12038
12046
|
__name: "Paginator",
|
|
12039
12047
|
props: {
|
|
12040
12048
|
modelValue: { required: !0 },
|
|
@@ -12063,8 +12071,8 @@ const id = {
|
|
|
12063
12071
|
a.unshift(t.value.totalPages - s);
|
|
12064
12072
|
return a;
|
|
12065
12073
|
});
|
|
12066
|
-
return (a, o) => (w(), E("div",
|
|
12067
|
-
b("div",
|
|
12074
|
+
return (a, o) => (w(), E("div", Jy, [
|
|
12075
|
+
b("div", Qy, [
|
|
12068
12076
|
b("a", {
|
|
12069
12077
|
href: "#",
|
|
12070
12078
|
class: L([
|
|
@@ -12087,7 +12095,7 @@ const id = {
|
|
|
12087
12095
|
te(" Previous ")
|
|
12088
12096
|
]), 2)
|
|
12089
12097
|
]),
|
|
12090
|
-
b("div",
|
|
12098
|
+
b("div", Zy, [
|
|
12091
12099
|
(w(!0), E(Q, null, X(r.value, (s) => (w(), E("a", {
|
|
12092
12100
|
key: s,
|
|
12093
12101
|
href: "#",
|
|
@@ -12097,9 +12105,9 @@ const id = {
|
|
|
12097
12105
|
]),
|
|
12098
12106
|
onClick: Fe((l) => n(s), ["prevent"]),
|
|
12099
12107
|
textContent: j(s)
|
|
12100
|
-
}, null, 10,
|
|
12108
|
+
}, null, 10, Xy))), 128))
|
|
12101
12109
|
]),
|
|
12102
|
-
b("div",
|
|
12110
|
+
b("div", eg, [
|
|
12103
12111
|
b("a", {
|
|
12104
12112
|
href: "#",
|
|
12105
12113
|
class: L([
|
|
@@ -12124,10 +12132,10 @@ const id = {
|
|
|
12124
12132
|
])
|
|
12125
12133
|
]));
|
|
12126
12134
|
}
|
|
12127
|
-
}),
|
|
12135
|
+
}), tg = {
|
|
12128
12136
|
key: 0,
|
|
12129
12137
|
class: "flex"
|
|
12130
|
-
},
|
|
12138
|
+
}, ng = /* @__PURE__ */ R({
|
|
12131
12139
|
__name: "DetailList",
|
|
12132
12140
|
props: {
|
|
12133
12141
|
borderless: { type: Boolean, default: !1 },
|
|
@@ -12181,7 +12189,7 @@ const id = {
|
|
|
12181
12189
|
}), t(v), i(), (h, y) => (w(), E("div", {
|
|
12182
12190
|
class: L({ "mt-4 space-y-2": u.value })
|
|
12183
12191
|
}, [
|
|
12184
|
-
h.disableDate ? F("", !0) : (w(), E("div",
|
|
12192
|
+
h.disableDate ? F("", !0) : (w(), E("div", tg, [
|
|
12185
12193
|
D(ld, {
|
|
12186
12194
|
"date-range": r.value,
|
|
12187
12195
|
"sort-dir": l.value,
|
|
@@ -12214,7 +12222,7 @@ const id = {
|
|
|
12214
12222
|
}, null, 8, ["modelValue"])) : F("", !0)
|
|
12215
12223
|
], 2));
|
|
12216
12224
|
}
|
|
12217
|
-
}),
|
|
12225
|
+
}), rg = ["href"], ag = /* @__PURE__ */ R({
|
|
12218
12226
|
__name: "DownloadCell",
|
|
12219
12227
|
props: {
|
|
12220
12228
|
propsData: {},
|
|
@@ -12225,9 +12233,9 @@ const id = {
|
|
|
12225
12233
|
href: t.propsData[t.attribute]
|
|
12226
12234
|
}, [
|
|
12227
12235
|
D(p(sc), { class: "h-6 w-6 group-hover:text-gray-500 transition" })
|
|
12228
|
-
], 8,
|
|
12236
|
+
], 8, rg));
|
|
12229
12237
|
}
|
|
12230
|
-
}),
|
|
12238
|
+
}), og = { class: "fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]" }, sg = { class: "rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden" }, lg = { class: "p-4" }, ig = { class: "flex items-center" }, ug = { class: "w-0 flex-1 flex justify-between" }, dg = ["innerHTML"], cg = { class: "ml-4 shrink-0 flex" }, fg = ["onClick"], Ss = /* @__PURE__ */ R({
|
|
12231
12239
|
__name: "Flash",
|
|
12232
12240
|
setup(e) {
|
|
12233
12241
|
const { flasher: t, flashes: n } = wn(), r = (a) => {
|
|
@@ -12243,10 +12251,10 @@ const id = {
|
|
|
12243
12251
|
}
|
|
12244
12252
|
};
|
|
12245
12253
|
return Ae(() => {
|
|
12246
|
-
|
|
12254
|
+
Gy(t);
|
|
12247
12255
|
}), (a, o) => (w(), I(p(Ho), null, {
|
|
12248
12256
|
default: k(() => [
|
|
12249
|
-
b("div",
|
|
12257
|
+
b("div", og, [
|
|
12250
12258
|
D(Gd, {
|
|
12251
12259
|
tag: "div",
|
|
12252
12260
|
class: "max-w-sm space-y-2 w-full",
|
|
@@ -12262,16 +12270,16 @@ const id = {
|
|
|
12262
12270
|
key: l.message,
|
|
12263
12271
|
class: L(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform z-10", [r(l.type)]])
|
|
12264
12272
|
}, [
|
|
12265
|
-
b("div",
|
|
12266
|
-
b("div",
|
|
12267
|
-
b("div",
|
|
12268
|
-
b("div",
|
|
12273
|
+
b("div", sg, [
|
|
12274
|
+
b("div", lg, [
|
|
12275
|
+
b("div", ig, [
|
|
12276
|
+
b("div", ug, [
|
|
12269
12277
|
b("p", {
|
|
12270
12278
|
class: "w-0 flex-1 text-sm leading-5 font-medium text-gray-900",
|
|
12271
12279
|
innerHTML: l.message
|
|
12272
|
-
}, null, 8,
|
|
12280
|
+
}, null, 8, dg)
|
|
12273
12281
|
]),
|
|
12274
|
-
b("div",
|
|
12282
|
+
b("div", cg, [
|
|
12275
12283
|
b("button", {
|
|
12276
12284
|
class: "inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",
|
|
12277
12285
|
onClick: (i) => p(t).remove(s)
|
|
@@ -12287,7 +12295,7 @@ const id = {
|
|
|
12287
12295
|
"clip-rule": "evenodd"
|
|
12288
12296
|
})
|
|
12289
12297
|
], -1)
|
|
12290
|
-
]), 8,
|
|
12298
|
+
]), 8, fg)
|
|
12291
12299
|
])
|
|
12292
12300
|
])
|
|
12293
12301
|
])
|
|
@@ -12301,17 +12309,17 @@ const id = {
|
|
|
12301
12309
|
_: 1
|
|
12302
12310
|
}));
|
|
12303
12311
|
}
|
|
12304
|
-
}),
|
|
12312
|
+
}), pg = { class: "flex" }, vg = { class: "flex-shrink-0" }, mg = { class: "ml-2.5" }, hg = {
|
|
12305
12313
|
key: 0,
|
|
12306
12314
|
role: "list",
|
|
12307
12315
|
class: "list-disc space-y-1 pl-5"
|
|
12308
|
-
},
|
|
12316
|
+
}, yg = { key: 1 }, gg = {
|
|
12309
12317
|
key: 1,
|
|
12310
12318
|
class: "mt-4"
|
|
12311
|
-
},
|
|
12319
|
+
}, bg = { class: "flex flex-col gap-y-1.5 -mx-2 sm:flex-row sm:gap-x-3 sm:items-center" }, wg = { key: 0 }, xg = ["href", "role"], $g = { key: 1 }, _g = ["href", "role"], Cg = {
|
|
12312
12320
|
key: 0,
|
|
12313
12321
|
class: "ml-auto pl-3"
|
|
12314
|
-
},
|
|
12322
|
+
}, Eg = { class: "-mx-1.5 -my-1.5" }, Sg = /* @__PURE__ */ R({
|
|
12315
12323
|
__name: "InlineAlert",
|
|
12316
12324
|
props: {
|
|
12317
12325
|
btnLink: { default: "" },
|
|
@@ -12372,14 +12380,14 @@ const id = {
|
|
|
12372
12380
|
key: 0,
|
|
12373
12381
|
class: L(["rounded-xy p-4", s.value.bgColor])
|
|
12374
12382
|
}, [
|
|
12375
|
-
b("div",
|
|
12376
|
-
b("div",
|
|
12383
|
+
b("div", pg, [
|
|
12384
|
+
b("div", vg, [
|
|
12377
12385
|
(w(), I(Me(l.value), {
|
|
12378
12386
|
class: L(["h-5 w-5", s.value.iconColor]),
|
|
12379
12387
|
"aria-hidden": "true"
|
|
12380
12388
|
}, null, 8, ["class"]))
|
|
12381
12389
|
]),
|
|
12382
|
-
b("div",
|
|
12390
|
+
b("div", mg, [
|
|
12383
12391
|
i.title ? (w(), E("h3", {
|
|
12384
12392
|
key: 0,
|
|
12385
12393
|
class: L(["text-sm leading-snug font-semibold mb-1.5", s.value.contentColor])
|
|
@@ -12387,33 +12395,33 @@ const id = {
|
|
|
12387
12395
|
b("div", {
|
|
12388
12396
|
class: L(["text-sm", s.value.contentColor])
|
|
12389
12397
|
}, [
|
|
12390
|
-
Array.isArray(i.content) ? (w(), E("ul",
|
|
12398
|
+
Array.isArray(i.content) ? (w(), E("ul", hg, [
|
|
12391
12399
|
(w(!0), E(Q, null, X(i.content, (u, c) => (w(), E("li", { key: c }, j(u), 1))), 128))
|
|
12392
|
-
])) : (w(), E("p",
|
|
12400
|
+
])) : (w(), E("p", yg, j(i.content), 1))
|
|
12393
12401
|
], 2),
|
|
12394
|
-
i.btnText || i.secondaryBtnText ? (w(), E("div",
|
|
12395
|
-
b("div",
|
|
12396
|
-
i.btnText ? (w(), E("div",
|
|
12402
|
+
i.btnText || i.secondaryBtnText ? (w(), E("div", gg, [
|
|
12403
|
+
b("div", bg, [
|
|
12404
|
+
i.btnText ? (w(), E("div", wg, [
|
|
12397
12405
|
b("a", {
|
|
12398
12406
|
class: L(["inline-flex rounded-3xl px-2.5 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2", s.value.btnAction]),
|
|
12399
12407
|
href: i.btnLink,
|
|
12400
12408
|
role: i.btnLink ? "link" : "button",
|
|
12401
12409
|
onClick: d[0] || (d[0] = (u) => i.$emit("click", u))
|
|
12402
|
-
}, j(i.btnText), 11,
|
|
12410
|
+
}, j(i.btnText), 11, xg)
|
|
12403
12411
|
])) : F("", !0),
|
|
12404
|
-
i.secondaryBtnText ? (w(), E("div",
|
|
12412
|
+
i.secondaryBtnText ? (w(), E("div", $g, [
|
|
12405
12413
|
b("a", {
|
|
12406
12414
|
class: L(["inline-flex rounded-3xl px-2.5 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2", s.value.btnAction]),
|
|
12407
12415
|
href: i.secondaryBtnLink,
|
|
12408
12416
|
role: i.secondaryBtnLink ? "link" : "button",
|
|
12409
12417
|
onClick: d[1] || (d[1] = (u) => i.$emit("click:secondary", u))
|
|
12410
|
-
}, j(i.secondaryBtnText), 11,
|
|
12418
|
+
}, j(i.secondaryBtnText), 11, _g)
|
|
12411
12419
|
])) : F("", !0)
|
|
12412
12420
|
])
|
|
12413
12421
|
])) : F("", !0)
|
|
12414
12422
|
]),
|
|
12415
|
-
i.dismissable ? (w(), E("div",
|
|
12416
|
-
b("div",
|
|
12423
|
+
i.dismissable ? (w(), E("div", Cg, [
|
|
12424
|
+
b("div", Eg, [
|
|
12417
12425
|
b("button", {
|
|
12418
12426
|
class: L(["inline-flex rounded-md p-1.5 focus:outline-none focus:ring-2 focus:ring-offset-2", s.value.btnClose]),
|
|
12419
12427
|
type: "button",
|
|
@@ -12427,10 +12435,10 @@ const id = {
|
|
|
12427
12435
|
])
|
|
12428
12436
|
], 2)) : F("", !0);
|
|
12429
12437
|
}
|
|
12430
|
-
}),
|
|
12438
|
+
}), Dg = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" }, Ag = { class: "block absolute top-0 right-0 pt-4 pr-4 sm:pt-6 sm:pr-8" }, Og = { class: "px-4 pt-5 pb-4 sm:p-8 sm:pb-6" }, Pg = { class: "mt-3 sm:mt-0 sm:text-left" }, kg = { class: "mt-2" }, Rg = {
|
|
12431
12439
|
key: 0,
|
|
12432
12440
|
class: "bg-gray-50 flex flex-col gap-3 px-4 py-3 rounded-b-xy shadow-xl sm:py-4 sm:px-8 sm:flex sm:flex-row-reverse sm:rounded-b-xy-lg"
|
|
12433
|
-
},
|
|
12441
|
+
}, Tg = ["disabled"], Mg = /* @__PURE__ */ R({
|
|
12434
12442
|
__name: "Modal",
|
|
12435
12443
|
props: /* @__PURE__ */ ge({
|
|
12436
12444
|
destructive: { type: Boolean, default: !1 },
|
|
@@ -12462,7 +12470,7 @@ const id = {
|
|
|
12462
12470
|
onClose: d[3] || (d[3] = (u) => r.value = !1)
|
|
12463
12471
|
}, {
|
|
12464
12472
|
default: k(() => [
|
|
12465
|
-
b("div",
|
|
12473
|
+
b("div", Dg, [
|
|
12466
12474
|
D(p(It), {
|
|
12467
12475
|
as: "template",
|
|
12468
12476
|
enter: "ease-out duration-300",
|
|
@@ -12500,7 +12508,7 @@ const id = {
|
|
|
12500
12508
|
!l.value && "rounded-b-xy sm:rounded-b-xy-lg shadow-xl"
|
|
12501
12509
|
])
|
|
12502
12510
|
}, [
|
|
12503
|
-
b("div",
|
|
12511
|
+
b("div", Ag, [
|
|
12504
12512
|
b("button", {
|
|
12505
12513
|
type: "button",
|
|
12506
12514
|
class: "bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",
|
|
@@ -12513,8 +12521,8 @@ const id = {
|
|
|
12513
12521
|
})
|
|
12514
12522
|
])
|
|
12515
12523
|
]),
|
|
12516
|
-
b("div",
|
|
12517
|
-
b("div",
|
|
12524
|
+
b("div", Og, [
|
|
12525
|
+
b("div", Pg, [
|
|
12518
12526
|
D(p(Wo), {
|
|
12519
12527
|
as: "h3",
|
|
12520
12528
|
class: "text-center text-lg leading-6 font-medium text-gray-900"
|
|
@@ -12524,20 +12532,20 @@ const id = {
|
|
|
12524
12532
|
]),
|
|
12525
12533
|
_: 1
|
|
12526
12534
|
}),
|
|
12527
|
-
b("div",
|
|
12535
|
+
b("div", kg, [
|
|
12528
12536
|
K(i.$slots, "default")
|
|
12529
12537
|
])
|
|
12530
12538
|
])
|
|
12531
12539
|
])
|
|
12532
12540
|
], 2),
|
|
12533
|
-
l.value ? (w(), E("div",
|
|
12541
|
+
l.value ? (w(), E("div", Rg, [
|
|
12534
12542
|
i.submitText ? (w(), E(Q, { key: 0 }, [
|
|
12535
12543
|
b("button", {
|
|
12536
12544
|
type: "button",
|
|
12537
12545
|
class: L([i.destructive ? "xy-btn-red" : "xy-btn"]),
|
|
12538
12546
|
disabled: i.disabled,
|
|
12539
12547
|
onClick: d[1] || (d[1] = (u) => o())
|
|
12540
|
-
}, j(i.submitText), 11,
|
|
12548
|
+
}, j(i.submitText), 11, Tg),
|
|
12541
12549
|
b("button", {
|
|
12542
12550
|
type: "button",
|
|
12543
12551
|
class: "xy-btn-neutral",
|
|
@@ -12558,7 +12566,7 @@ const id = {
|
|
|
12558
12566
|
_: 3
|
|
12559
12567
|
}, 8, ["show"]));
|
|
12560
12568
|
}
|
|
12561
|
-
}),
|
|
12569
|
+
}), Ig = { class: "aspect-square overflow-hidden" }, Lg = { class: "flex justify-center relative" }, Bg = { class: "sr-only" }, dd = /* @__PURE__ */ R({
|
|
12562
12570
|
__name: "XYSpinner",
|
|
12563
12571
|
setup(e) {
|
|
12564
12572
|
const t = ua();
|
|
@@ -12568,9 +12576,9 @@ const id = {
|
|
|
12568
12576
|
class: L((a = p(t)) != null && a.class ? (o = p(t)) == null ? void 0 : o.class : "h-20 w-20"),
|
|
12569
12577
|
role: "status"
|
|
12570
12578
|
}, [
|
|
12571
|
-
b("div",
|
|
12572
|
-
b("div",
|
|
12573
|
-
b("p",
|
|
12579
|
+
b("div", Ig, [
|
|
12580
|
+
b("div", Lg, [
|
|
12581
|
+
b("p", Bg, [
|
|
12574
12582
|
K(n.$slots, "default", {}, () => [
|
|
12575
12583
|
r[0] || (r[0] = te("loading"))
|
|
12576
12584
|
])
|
|
@@ -12581,10 +12589,10 @@ const id = {
|
|
|
12581
12589
|
], 2);
|
|
12582
12590
|
};
|
|
12583
12591
|
}
|
|
12584
|
-
}),
|
|
12592
|
+
}), Fg = {
|
|
12585
12593
|
key: 0,
|
|
12586
12594
|
class: "fixed top-0 left-0 flex flex-col items-center justify-center w-full h-full cursor-not-allowed z-40 bg-gray-50 bg-opacity-60"
|
|
12587
|
-
},
|
|
12595
|
+
}, Ng = { class: "mt-2" }, Ds = /* @__PURE__ */ R({
|
|
12588
12596
|
__name: "Spinner",
|
|
12589
12597
|
setup(e) {
|
|
12590
12598
|
const { idx: t, loading: n, maxIdx: r, messages: a, msg: o, showMsg: s } = Li(), l = () => {
|
|
@@ -12596,9 +12604,9 @@ const id = {
|
|
|
12596
12604
|
};
|
|
12597
12605
|
return (d, u) => (w(), I(p(Ho), null, {
|
|
12598
12606
|
default: k(() => [
|
|
12599
|
-
p(n) ? (w(), E("div",
|
|
12607
|
+
p(n) ? (w(), E("div", Fg, [
|
|
12600
12608
|
D(dd, { class: "w-32 h-32" }),
|
|
12601
|
-
Ze(b("div",
|
|
12609
|
+
Ze(b("div", Ng, [
|
|
12602
12610
|
D(ca, {
|
|
12603
12611
|
appear: "",
|
|
12604
12612
|
"enter-active-class": "ease-out duration-1000",
|
|
@@ -12625,13 +12633,13 @@ const id = {
|
|
|
12625
12633
|
_: 1
|
|
12626
12634
|
}));
|
|
12627
12635
|
}
|
|
12628
|
-
}),
|
|
12636
|
+
}), Vg = { class: "h-screen flex overflow-hidden bg-gray-50" }, qg = { class: "relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white" }, Ug = { class: "absolute top-0 right-0 -mr-12 pt-2" }, jg = { class: "shrink-0 flex justify-center px-4" }, Hg = ["src"], Wg = { class: "mt-5 flex flex-col flex-1 h-0 overflow-y-auto" }, Kg = { class: "flex-1 px-2" }, zg = { class: "space-y-1" }, Yg = ["href", "target"], Gg = {
|
|
12629
12637
|
key: 0,
|
|
12630
12638
|
class: "mt-auto"
|
|
12631
|
-
},
|
|
12639
|
+
}, Jg = { class: "mt-6 px-2" }, Qg = { class: "hidden lg:flex lg:shrink-0" }, Zg = { class: "flex flex-col w-64" }, Xg = { class: "flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto" }, eb = { class: "flex justify-center shrink-0 px-4" }, tb = ["src"], nb = { class: "mt-5 grow flex flex-col" }, rb = { class: "flex-1 px-2 bg-white" }, ab = { class: "space-y-1" }, ob = ["href", "target"], sb = {
|
|
12632
12640
|
key: 0,
|
|
12633
12641
|
class: "mt-atuo"
|
|
12634
|
-
},
|
|
12642
|
+
}, lb = { class: "mt-6 px-2" }, ib = { class: "flex flex-col w-0 flex-1 overflow-hidden" }, ub = { class: "relative z-10 shrink-0 flex h-16 bg-xy-blue shadow" }, db = { class: "flex-1 px-4 flex justify-between" }, cb = { class: "flex-1 flex" }, fb = { class: "flex items-center text-base leading-snug sm:text-2xl text-white" }, pb = { class: "ml-4 flex items-center lg:ml-6" }, vb = ["href"], mb = { class: "flex-1 relative overflow-y-auto focus:outline-none" }, hb = { class: "mx-auto" }, yb = /* @__PURE__ */ R({
|
|
12635
12643
|
__name: "SidebarLayout",
|
|
12636
12644
|
props: {
|
|
12637
12645
|
activeUrl: { default: "" },
|
|
@@ -12642,7 +12650,7 @@ const id = {
|
|
|
12642
12650
|
setup(e) {
|
|
12643
12651
|
const t = e, n = A(!1), r = (a) => t.activeUrl === a;
|
|
12644
12652
|
return (a, o) => (w(), E(Q, null, [
|
|
12645
|
-
b("div",
|
|
12653
|
+
b("div", Vg, [
|
|
12646
12654
|
D(p(fr), {
|
|
12647
12655
|
as: "template",
|
|
12648
12656
|
show: n.value
|
|
@@ -12680,7 +12688,7 @@ const id = {
|
|
|
12680
12688
|
"leave-to": "-translate-x-full"
|
|
12681
12689
|
}, {
|
|
12682
12690
|
default: k(() => [
|
|
12683
|
-
b("div",
|
|
12691
|
+
b("div", qg, [
|
|
12684
12692
|
D(p(It), {
|
|
12685
12693
|
as: "template",
|
|
12686
12694
|
enter: "ease-in-out duration-300",
|
|
@@ -12691,7 +12699,7 @@ const id = {
|
|
|
12691
12699
|
"leave-to": "opacity-0"
|
|
12692
12700
|
}, {
|
|
12693
12701
|
default: k(() => [
|
|
12694
|
-
b("div",
|
|
12702
|
+
b("div", Ug, [
|
|
12695
12703
|
b("button", {
|
|
12696
12704
|
class: "ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",
|
|
12697
12705
|
onClick: o[0] || (o[0] = (s) => n.value = !1)
|
|
@@ -12706,17 +12714,17 @@ const id = {
|
|
|
12706
12714
|
]),
|
|
12707
12715
|
_: 1
|
|
12708
12716
|
}),
|
|
12709
|
-
b("div",
|
|
12717
|
+
b("div", jg, [
|
|
12710
12718
|
b("img", {
|
|
12711
12719
|
class: "w-auto h-12",
|
|
12712
12720
|
src: a.iconUrl,
|
|
12713
12721
|
alt: "Logo"
|
|
12714
|
-
}, null, 8,
|
|
12722
|
+
}, null, 8, Hg)
|
|
12715
12723
|
]),
|
|
12716
|
-
b("div",
|
|
12717
|
-
b("div",
|
|
12724
|
+
b("div", Wg, [
|
|
12725
|
+
b("div", Kg, [
|
|
12718
12726
|
K(a.$slots, "sidebar-nav", {}, () => [
|
|
12719
|
-
b("nav",
|
|
12727
|
+
b("nav", zg, [
|
|
12720
12728
|
(w(!0), E(Q, null, X(a.navigation, (s) => (w(), E("a", {
|
|
12721
12729
|
key: s.name,
|
|
12722
12730
|
href: s.url,
|
|
@@ -12734,12 +12742,12 @@ const id = {
|
|
|
12734
12742
|
"aria-hidden": "true"
|
|
12735
12743
|
}, null, 8, ["class"])),
|
|
12736
12744
|
te(" " + j(s.name), 1)
|
|
12737
|
-
], 10,
|
|
12745
|
+
], 10, Yg))), 128))
|
|
12738
12746
|
])
|
|
12739
12747
|
])
|
|
12740
12748
|
]),
|
|
12741
|
-
a.$slots["sidebar-bottom"] ? (w(), E("div",
|
|
12742
|
-
b("div",
|
|
12749
|
+
a.$slots["sidebar-bottom"] ? (w(), E("div", Gg, [
|
|
12750
|
+
b("div", Jg, [
|
|
12743
12751
|
K(a.$slots, "sidebar-bottom")
|
|
12744
12752
|
])
|
|
12745
12753
|
])) : F("", !0)
|
|
@@ -12758,20 +12766,20 @@ const id = {
|
|
|
12758
12766
|
]),
|
|
12759
12767
|
_: 3
|
|
12760
12768
|
}, 8, ["show"]),
|
|
12761
|
-
b("div",
|
|
12762
|
-
b("div",
|
|
12763
|
-
b("div",
|
|
12764
|
-
b("div",
|
|
12769
|
+
b("div", Qg, [
|
|
12770
|
+
b("div", Zg, [
|
|
12771
|
+
b("div", Xg, [
|
|
12772
|
+
b("div", eb, [
|
|
12765
12773
|
b("img", {
|
|
12766
12774
|
class: "w-auto h-12",
|
|
12767
12775
|
src: a.iconUrl,
|
|
12768
12776
|
alt: "Logo"
|
|
12769
|
-
}, null, 8,
|
|
12777
|
+
}, null, 8, tb)
|
|
12770
12778
|
]),
|
|
12771
|
-
b("div",
|
|
12772
|
-
b("div",
|
|
12779
|
+
b("div", nb, [
|
|
12780
|
+
b("div", rb, [
|
|
12773
12781
|
K(a.$slots, "sidebar-nav", {}, () => [
|
|
12774
|
-
b("nav",
|
|
12782
|
+
b("nav", ab, [
|
|
12775
12783
|
(w(!0), E(Q, null, X(a.navigation, (s) => (w(), E("a", {
|
|
12776
12784
|
key: s.name,
|
|
12777
12785
|
href: s.url,
|
|
@@ -12789,12 +12797,12 @@ const id = {
|
|
|
12789
12797
|
"aria-hidden": "true"
|
|
12790
12798
|
}, null, 8, ["class"])),
|
|
12791
12799
|
te(" " + j(s.name), 1)
|
|
12792
|
-
], 10,
|
|
12800
|
+
], 10, ob))), 128))
|
|
12793
12801
|
])
|
|
12794
12802
|
])
|
|
12795
12803
|
]),
|
|
12796
|
-
a.$slots["sidebar-bottom"] ? (w(), E("div",
|
|
12797
|
-
b("div",
|
|
12804
|
+
a.$slots["sidebar-bottom"] ? (w(), E("div", sb, [
|
|
12805
|
+
b("div", lb, [
|
|
12798
12806
|
K(a.$slots, "sidebar-bottom")
|
|
12799
12807
|
])
|
|
12800
12808
|
])) : F("", !0)
|
|
@@ -12802,8 +12810,8 @@ const id = {
|
|
|
12802
12810
|
])
|
|
12803
12811
|
])
|
|
12804
12812
|
]),
|
|
12805
|
-
b("div",
|
|
12806
|
-
b("div",
|
|
12813
|
+
b("div", ib, [
|
|
12814
|
+
b("div", ub, [
|
|
12807
12815
|
b("button", {
|
|
12808
12816
|
class: "px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500 lg:hidden",
|
|
12809
12817
|
onClick: o[2] || (o[2] = (s) => n.value = !0)
|
|
@@ -12814,13 +12822,13 @@ const id = {
|
|
|
12814
12822
|
"aria-hidden": "true"
|
|
12815
12823
|
})
|
|
12816
12824
|
]),
|
|
12817
|
-
b("div",
|
|
12818
|
-
b("div",
|
|
12819
|
-
b("h1",
|
|
12825
|
+
b("div", db, [
|
|
12826
|
+
b("div", cb, [
|
|
12827
|
+
b("h1", fb, [
|
|
12820
12828
|
K(a.$slots, "header")
|
|
12821
12829
|
])
|
|
12822
12830
|
]),
|
|
12823
|
-
b("div",
|
|
12831
|
+
b("div", pb, [
|
|
12824
12832
|
D(p(Ko), {
|
|
12825
12833
|
as: "div",
|
|
12826
12834
|
class: "ml-3 relative"
|
|
@@ -12859,7 +12867,7 @@ const id = {
|
|
|
12859
12867
|
l ? "bg-gray-100" : "",
|
|
12860
12868
|
"block px-4 py-2 text-sm text-gray-700 font-semibold"
|
|
12861
12869
|
])
|
|
12862
|
-
}, j(s.name), 11,
|
|
12870
|
+
}, j(s.name), 11, vb)
|
|
12863
12871
|
]),
|
|
12864
12872
|
_: 2
|
|
12865
12873
|
}, 1024))), 128))
|
|
@@ -12875,8 +12883,8 @@ const id = {
|
|
|
12875
12883
|
])
|
|
12876
12884
|
])
|
|
12877
12885
|
]),
|
|
12878
|
-
b("main",
|
|
12879
|
-
b("div",
|
|
12886
|
+
b("main", mb, [
|
|
12887
|
+
b("div", hb, [
|
|
12880
12888
|
K(a.$slots, "default")
|
|
12881
12889
|
])
|
|
12882
12890
|
])
|
|
@@ -12941,18 +12949,18 @@ const id = {
|
|
|
12941
12949
|
_: 3
|
|
12942
12950
|
}, 8, ["as"]));
|
|
12943
12951
|
}
|
|
12944
|
-
}),
|
|
12952
|
+
}), gb = (e, t) => {
|
|
12945
12953
|
const n = e.__vccOpts || e;
|
|
12946
12954
|
for (const [r, a] of t)
|
|
12947
12955
|
n[r] = a;
|
|
12948
12956
|
return n;
|
|
12949
|
-
},
|
|
12950
|
-
function
|
|
12951
|
-
return w(), E("div",
|
|
12957
|
+
}, bb = {}, wb = { class: "w-full max-w-xs bg-white rounded-xy p-2 border border-gray-100 shadow-md" };
|
|
12958
|
+
function xb(e, t) {
|
|
12959
|
+
return w(), E("div", wb, [
|
|
12952
12960
|
K(e.$slots, "default")
|
|
12953
12961
|
]);
|
|
12954
12962
|
}
|
|
12955
|
-
const
|
|
12963
|
+
const $b = /* @__PURE__ */ gb(bb, [["render", xb]]), _b = { class: "absolute inset-0 overflow-hidden" }, Cb = { class: "fixed inset-y-0 right-0 pl-10 max-w-full flex" }, Eb = { class: "h-full flex flex-col bg-white shadow-xl overflow-y-scroll" }, Sb = { class: "flex items-center justify-between" }, Db = { class: "ml-3 h-7 flex items-center" }, Ab = { class: "mt-1" }, Ob = ["textContent"], Pb = /* @__PURE__ */ R({
|
|
12956
12964
|
__name: "Slideover",
|
|
12957
12965
|
props: /* @__PURE__ */ ge({
|
|
12958
12966
|
header: {},
|
|
@@ -12998,9 +13006,9 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
12998
13006
|
onClose: l[1] || (l[1] = (i) => a.value = !1)
|
|
12999
13007
|
}, {
|
|
13000
13008
|
default: k(() => [
|
|
13001
|
-
b("div",
|
|
13009
|
+
b("div", _b, [
|
|
13002
13010
|
D(p($a), { class: "absolute inset-0" }),
|
|
13003
|
-
b("div",
|
|
13011
|
+
b("div", Cb, [
|
|
13004
13012
|
D(p(It), {
|
|
13005
13013
|
as: "template",
|
|
13006
13014
|
enter: "transform transition ease-in-out duration-500 sm:duration-700",
|
|
@@ -13014,11 +13022,11 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13014
13022
|
b("div", {
|
|
13015
13023
|
class: L(["w-screen", r.value.maxWidth])
|
|
13016
13024
|
}, [
|
|
13017
|
-
b("div",
|
|
13025
|
+
b("div", Eb, [
|
|
13018
13026
|
b("div", {
|
|
13019
13027
|
class: L(["bg-xy-blue-700", r.value.padding])
|
|
13020
13028
|
}, [
|
|
13021
|
-
b("div",
|
|
13029
|
+
b("div", Sb, [
|
|
13022
13030
|
D(p(Wo), {
|
|
13023
13031
|
as: "h3",
|
|
13024
13032
|
class: "text-white"
|
|
@@ -13028,7 +13036,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13028
13036
|
]),
|
|
13029
13037
|
_: 1
|
|
13030
13038
|
}),
|
|
13031
|
-
b("div",
|
|
13039
|
+
b("div", Db, [
|
|
13032
13040
|
b("button", {
|
|
13033
13041
|
class: "bg-xy-blue-600 rounded-md text-gray-50 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",
|
|
13034
13042
|
onClick: l[0] || (l[0] = (i) => a.value = !1)
|
|
@@ -13041,11 +13049,11 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13041
13049
|
])
|
|
13042
13050
|
])
|
|
13043
13051
|
]),
|
|
13044
|
-
b("div",
|
|
13052
|
+
b("div", Ab, [
|
|
13045
13053
|
b("p", {
|
|
13046
13054
|
class: "text-gray-50 text-base font-medium",
|
|
13047
13055
|
textContent: j(s.description)
|
|
13048
|
-
}, null, 8,
|
|
13056
|
+
}, null, 8, Ob)
|
|
13049
13057
|
])
|
|
13050
13058
|
], 2),
|
|
13051
13059
|
b("div", {
|
|
@@ -13068,7 +13076,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13068
13076
|
_: 3
|
|
13069
13077
|
}, 8, ["show"]));
|
|
13070
13078
|
}
|
|
13071
|
-
}),
|
|
13079
|
+
}), kb = ["onMouseover", "onMouseleave"], Rb = ["onMouseleave"], Tb = { class: "max-w-xs" }, Mb = /* @__PURE__ */ R({
|
|
13072
13080
|
__name: "Tooltip",
|
|
13073
13081
|
props: {
|
|
13074
13082
|
as: { default: "span" },
|
|
@@ -13095,7 +13103,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13095
13103
|
}, [
|
|
13096
13104
|
D(p(fc)),
|
|
13097
13105
|
s[1] || (s[1] = b("div", { class: "p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" }, null, -1))
|
|
13098
|
-
], 40,
|
|
13106
|
+
], 40, kb)
|
|
13099
13107
|
]),
|
|
13100
13108
|
default: k(({ close: l }) => [
|
|
13101
13109
|
b("div", {
|
|
@@ -13103,15 +13111,15 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13103
13111
|
onMouseover: s[0] || (s[0] = Fe((i) => Ir(t) ? t.value = !0 : t = !0, ["prevent"])),
|
|
13104
13112
|
onMouseleave: Fe((i) => r(l), ["prevent"])
|
|
13105
13113
|
}, [
|
|
13106
|
-
b("div",
|
|
13114
|
+
b("div", Tb, [
|
|
13107
13115
|
K(o.$slots, "default")
|
|
13108
13116
|
])
|
|
13109
|
-
], 40,
|
|
13117
|
+
], 40, Rb)
|
|
13110
13118
|
]),
|
|
13111
13119
|
_: 3
|
|
13112
13120
|
}, 8, ["position", "as"]));
|
|
13113
13121
|
}
|
|
13114
|
-
}),
|
|
13122
|
+
}), Ib = { class: "min-h-screen bg-gray-50" }, Lb = { class: "mx-auto px-4 sm:px-6 lg:px-8" }, Bb = { class: "flex justify-between h-16" }, Fb = { class: "flex" }, Nb = { class: "shrink-0 flex items-center" }, Vb = ["src"], qb = { class: "hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8" }, Ub = ["href", "aria-current"], jb = { class: "hidden sm:ml-6 sm:flex sm:items-center" }, Hb = ["href"], Wb = { class: "-mr-2 flex items-center sm:hidden" }, Kb = { class: "pt-2 pb-3 space-y-1" }, zb = ["href", "aria-current"], Yb = { class: "pt-4 pb-3 border-t border-gray-200" }, Gb = { class: "flex items-center px-4" }, Jb = { class: "shrink-0" }, Qb = { class: "ml-3" }, Zb = ["textContent"], Xb = ["textContent"], e1 = { class: "mt-3 space-y-1" }, t1 = ["href"], n1 = { class: "mx-auto sm:px-6 lg:px-8" }, r1 = { class: "px-4 py-8 sm:px-0" }, a1 = /* @__PURE__ */ R({
|
|
13115
13123
|
__name: "StackedLayout",
|
|
13116
13124
|
props: {
|
|
13117
13125
|
activeUrl: { default: "" },
|
|
@@ -13123,23 +13131,23 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13123
13131
|
setup(e) {
|
|
13124
13132
|
const t = e, n = (r) => t.activeUrl === r;
|
|
13125
13133
|
return (r, a) => (w(), E(Q, null, [
|
|
13126
|
-
b("div",
|
|
13134
|
+
b("div", Ib, [
|
|
13127
13135
|
D(p(kp), {
|
|
13128
13136
|
as: "nav",
|
|
13129
13137
|
class: "bg-white shadow-sm"
|
|
13130
13138
|
}, {
|
|
13131
13139
|
default: k(({ open: o }) => [
|
|
13132
|
-
b("div",
|
|
13133
|
-
b("div",
|
|
13134
|
-
b("div",
|
|
13135
|
-
b("div",
|
|
13140
|
+
b("div", Lb, [
|
|
13141
|
+
b("div", Bb, [
|
|
13142
|
+
b("div", Fb, [
|
|
13143
|
+
b("div", Nb, [
|
|
13136
13144
|
b("img", {
|
|
13137
13145
|
class: "block h-8 w-auto",
|
|
13138
13146
|
src: r.iconUrl,
|
|
13139
13147
|
alt: "XY Trees"
|
|
13140
|
-
}, null, 8,
|
|
13148
|
+
}, null, 8, Vb)
|
|
13141
13149
|
]),
|
|
13142
|
-
b("div",
|
|
13150
|
+
b("div", qb, [
|
|
13143
13151
|
(w(!0), E(Q, null, X(r.navigation, (s) => (w(), E("a", {
|
|
13144
13152
|
key: s.name,
|
|
13145
13153
|
href: s.url,
|
|
@@ -13148,10 +13156,10 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13148
13156
|
"inline-flex items-center px-1 pt-1 border-b-2 text-sm font-semibold"
|
|
13149
13157
|
]),
|
|
13150
13158
|
"aria-current": n(s.url) ? "page" : void 0
|
|
13151
|
-
}, j(s.name), 11,
|
|
13159
|
+
}, j(s.name), 11, Ub))), 128))
|
|
13152
13160
|
])
|
|
13153
13161
|
]),
|
|
13154
|
-
b("div",
|
|
13162
|
+
b("div", jb, [
|
|
13155
13163
|
D(p(Ko), {
|
|
13156
13164
|
as: "div",
|
|
13157
13165
|
class: "ml-3 relative"
|
|
@@ -13187,7 +13195,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13187
13195
|
l ? "bg-gray-100" : "",
|
|
13188
13196
|
"block px-4 py-2 text-sm text-gray-700 font-semibold"
|
|
13189
13197
|
])
|
|
13190
|
-
}, j(s.name), 11,
|
|
13198
|
+
}, j(s.name), 11, Hb)
|
|
13191
13199
|
]),
|
|
13192
13200
|
_: 2
|
|
13193
13201
|
}, 1024))), 128))
|
|
@@ -13201,7 +13209,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13201
13209
|
_: 1
|
|
13202
13210
|
})
|
|
13203
13211
|
]),
|
|
13204
|
-
b("div",
|
|
13212
|
+
b("div", Wb, [
|
|
13205
13213
|
D(p(Rp), { class: "bg-white inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" }, {
|
|
13206
13214
|
default: k(() => [
|
|
13207
13215
|
a[1] || (a[1] = b("span", { class: "sr-only" }, "Open main menu", -1)),
|
|
@@ -13222,7 +13230,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13222
13230
|
]),
|
|
13223
13231
|
D(p(Tp), { class: "sm:hidden" }, {
|
|
13224
13232
|
default: k(() => [
|
|
13225
|
-
b("div",
|
|
13233
|
+
b("div", Kb, [
|
|
13226
13234
|
(w(!0), E(Q, null, X(r.navigation, (s) => (w(), E("a", {
|
|
13227
13235
|
key: s.name,
|
|
13228
13236
|
href: s.url,
|
|
@@ -13231,31 +13239,31 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13231
13239
|
"block pl-3 pr-4 py-2 border-l-4 text-base font-semibold"
|
|
13232
13240
|
]),
|
|
13233
13241
|
"aria-current": n(s.url) ? "page" : void 0
|
|
13234
|
-
}, j(s.name), 11,
|
|
13242
|
+
}, j(s.name), 11, zb))), 128))
|
|
13235
13243
|
]),
|
|
13236
|
-
b("div",
|
|
13237
|
-
b("div",
|
|
13238
|
-
b("div",
|
|
13244
|
+
b("div", Yb, [
|
|
13245
|
+
b("div", Gb, [
|
|
13246
|
+
b("div", Jb, [
|
|
13239
13247
|
D(p(Is), { class: "text-gray-500 h-10 w-10 rounded-full" })
|
|
13240
13248
|
]),
|
|
13241
|
-
b("div",
|
|
13249
|
+
b("div", Qb, [
|
|
13242
13250
|
r.currentUser.name ? (w(), E("div", {
|
|
13243
13251
|
key: 0,
|
|
13244
13252
|
class: "text-base font-medium text-gray-800",
|
|
13245
13253
|
textContent: j(r.currentUser.name)
|
|
13246
|
-
}, null, 8,
|
|
13254
|
+
}, null, 8, Zb)) : F("", !0),
|
|
13247
13255
|
b("div", {
|
|
13248
13256
|
class: "text-sm font-medium text-gray-500",
|
|
13249
13257
|
textContent: j(r.currentUser.email)
|
|
13250
|
-
}, null, 8,
|
|
13258
|
+
}, null, 8, Xb)
|
|
13251
13259
|
])
|
|
13252
13260
|
]),
|
|
13253
|
-
b("div",
|
|
13261
|
+
b("div", e1, [
|
|
13254
13262
|
(w(!0), E(Q, null, X(r.userNavigation, (s) => (w(), E("a", {
|
|
13255
13263
|
key: s.name,
|
|
13256
13264
|
href: s.url,
|
|
13257
13265
|
class: "block px-4 py-2 text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-100"
|
|
13258
|
-
}, j(s.name), 9,
|
|
13266
|
+
}, j(s.name), 9, t1))), 128))
|
|
13259
13267
|
])
|
|
13260
13268
|
])
|
|
13261
13269
|
]),
|
|
@@ -13266,8 +13274,8 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13266
13274
|
}),
|
|
13267
13275
|
K(r.$slots, "header"),
|
|
13268
13276
|
b("main", null, [
|
|
13269
|
-
b("div",
|
|
13270
|
-
b("div",
|
|
13277
|
+
b("div", n1, [
|
|
13278
|
+
b("div", r1, [
|
|
13271
13279
|
K(r.$slots, "default")
|
|
13272
13280
|
])
|
|
13273
13281
|
])
|
|
@@ -13277,7 +13285,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13277
13285
|
D(Ds)
|
|
13278
13286
|
], 64));
|
|
13279
13287
|
}
|
|
13280
|
-
}),
|
|
13288
|
+
}), o1 = (e) => "url" in e && ["string", "function"].includes(typeof e.url), s1 = (e) => e == null, l1 = {
|
|
13281
13289
|
clearSelection() {
|
|
13282
13290
|
console.warn(
|
|
13283
13291
|
"clearSelection() was called on a static table, did you mean to use DynamicTable?"
|
|
@@ -13294,7 +13302,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13294
13302
|
);
|
|
13295
13303
|
},
|
|
13296
13304
|
selectedData: C(() => [])
|
|
13297
|
-
}, cd = (e, t, n, r =
|
|
13305
|
+
}, cd = (e, t, n, r = l1) => {
|
|
13298
13306
|
const a = A(t), o = A(e), s = A(n), l = C(() => s.value.actions.length > 0), i = C(() => a.value.filter((u) => u.show ?? !0).map((u) => {
|
|
13299
13307
|
let c = "";
|
|
13300
13308
|
switch ((u == null ? void 0 : u.alignment) || "left") {
|
|
@@ -13313,7 +13321,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13313
13321
|
alignment: c
|
|
13314
13322
|
};
|
|
13315
13323
|
})), d = C(() => o.value.map((u, c) => ({
|
|
13316
|
-
actions: s.value.actions.map((f) =>
|
|
13324
|
+
actions: s.value.actions.map((f) => o1(f) ? {
|
|
13317
13325
|
...f,
|
|
13318
13326
|
disabled: typeof f.disabled == "function" ? f.disabled.apply(void 0, [u, c]) : f.disabled,
|
|
13319
13327
|
onClick: (y) => f.onClick ? f.onClick(u, c, r, y) : void 0,
|
|
@@ -13339,16 +13347,16 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13339
13347
|
return {
|
|
13340
13348
|
columns: i,
|
|
13341
13349
|
hasActions: l,
|
|
13342
|
-
isEmptyCellValue:
|
|
13350
|
+
isEmptyCellValue: s1,
|
|
13343
13351
|
rows: d
|
|
13344
13352
|
};
|
|
13345
|
-
},
|
|
13353
|
+
}, i1 = { class: "flex flex-col" }, u1 = { class: "-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, d1 = { class: "inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8" }, c1 = { class: "overflow-hidden border-b border-gray-200 shadow sm:rounded-lg" }, f1 = { class: "min-w-full divide-y divide-gray-200" }, p1 = { class: "bg-gray-100" }, v1 = {
|
|
13346
13354
|
key: 0,
|
|
13347
13355
|
class: "px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4"
|
|
13348
|
-
},
|
|
13356
|
+
}, m1 = { class: "bg-white" }, h1 = {
|
|
13349
13357
|
key: 0,
|
|
13350
13358
|
class: "px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5 w-0"
|
|
13351
|
-
},
|
|
13359
|
+
}, y1 = { key: 0 }, g1 = ["colspan"], b1 = /* @__PURE__ */ R({
|
|
13352
13360
|
__name: "DataTable",
|
|
13353
13361
|
props: {
|
|
13354
13362
|
tableActions: { default: () => ({ type: "dropdown", actions: [] }) },
|
|
@@ -13361,21 +13369,21 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13361
13369
|
xn(t, "tableColumns"),
|
|
13362
13370
|
xn(t, "tableActions")
|
|
13363
13371
|
);
|
|
13364
|
-
return (s, l) => (w(), E("div",
|
|
13365
|
-
b("div",
|
|
13366
|
-
b("div",
|
|
13367
|
-
b("div",
|
|
13368
|
-
b("table",
|
|
13369
|
-
b("thead",
|
|
13372
|
+
return (s, l) => (w(), E("div", i1, [
|
|
13373
|
+
b("div", u1, [
|
|
13374
|
+
b("div", d1, [
|
|
13375
|
+
b("div", c1, [
|
|
13376
|
+
b("table", f1, [
|
|
13377
|
+
b("thead", p1, [
|
|
13370
13378
|
b("tr", null, [
|
|
13371
13379
|
(w(!0), E(Q, null, X(p(n), (i, d) => (w(), E("th", {
|
|
13372
13380
|
key: d,
|
|
13373
13381
|
class: L(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4", i.alignment])
|
|
13374
13382
|
}, j(i.title), 3))), 128)),
|
|
13375
|
-
p(r) ? (w(), E("th",
|
|
13383
|
+
p(r) ? (w(), E("th", v1)) : F("", !0)
|
|
13376
13384
|
])
|
|
13377
13385
|
]),
|
|
13378
|
-
b("tbody",
|
|
13386
|
+
b("tbody", m1, [
|
|
13379
13387
|
(w(!0), E(Q, null, X(p(o), (i, d) => (w(), E("tr", {
|
|
13380
13388
|
key: d,
|
|
13381
13389
|
class: "even:bg-gray-50"
|
|
@@ -13392,7 +13400,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13392
13400
|
]),
|
|
13393
13401
|
_: 2
|
|
13394
13402
|
}, 1032, ["class"]))), 128)),
|
|
13395
|
-
p(r) ? (w(), E("td",
|
|
13403
|
+
p(r) ? (w(), E("td", h1, [
|
|
13396
13404
|
s.tableActions.type === "dropdown" ? (w(), I(p(is), {
|
|
13397
13405
|
key: 0,
|
|
13398
13406
|
actions: i.actions
|
|
@@ -13402,11 +13410,11 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13402
13410
|
}, null, 8, ["actions"]))
|
|
13403
13411
|
])) : F("", !0)
|
|
13404
13412
|
]))), 128)),
|
|
13405
|
-
p(o).length === 0 ? (w(), E("tr",
|
|
13413
|
+
p(o).length === 0 ? (w(), E("tr", y1, [
|
|
13406
13414
|
b("td", {
|
|
13407
13415
|
colspan: p(n).length + (p(r) ? 1 : 0),
|
|
13408
13416
|
class: "px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"
|
|
13409
|
-
}, " No items were found! ", 8,
|
|
13417
|
+
}, " No items were found! ", 8, g1)
|
|
13410
13418
|
])) : F("", !0)
|
|
13411
13419
|
])
|
|
13412
13420
|
])
|
|
@@ -13415,23 +13423,23 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13415
13423
|
])
|
|
13416
13424
|
]));
|
|
13417
13425
|
}
|
|
13418
|
-
}),
|
|
13426
|
+
}), w1 = { class: "flex items-center justify-center space-x-8" }, x1 = { class: "font-medium" }, $1 = { class: "flex items-center space-x-5" }, _1 = {
|
|
13419
13427
|
key: 0,
|
|
13420
13428
|
class: "block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"
|
|
13421
|
-
},
|
|
13429
|
+
}, C1 = {
|
|
13422
13430
|
key: 1,
|
|
13423
13431
|
class: "relative flex items-center justify-center"
|
|
13424
|
-
},
|
|
13432
|
+
}, E1 = {
|
|
13425
13433
|
key: 2,
|
|
13426
13434
|
href: "#",
|
|
13427
13435
|
class: "block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"
|
|
13428
|
-
},
|
|
13436
|
+
}, S1 = {
|
|
13429
13437
|
key: 0,
|
|
13430
13438
|
class: "flex shrink-0"
|
|
13431
|
-
},
|
|
13439
|
+
}, D1 = {
|
|
13432
13440
|
key: 0,
|
|
13433
13441
|
class: "inline-flex rounded-md shadow-sm"
|
|
13434
|
-
},
|
|
13442
|
+
}, A1 = ["textContent"], O1 = { class: "ml-3 inline-flex rounded-md shadow-sm" }, P1 = ["textContent"], k1 = /* @__PURE__ */ R({
|
|
13435
13443
|
__name: "Steps",
|
|
13436
13444
|
props: {
|
|
13437
13445
|
hideActions: { type: Boolean, default: !1 },
|
|
@@ -13449,87 +13457,87 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13449
13457
|
n("previous");
|
|
13450
13458
|
};
|
|
13451
13459
|
return (o, s) => (w(), E("div", null, [
|
|
13452
|
-
b("nav",
|
|
13453
|
-
b("p",
|
|
13454
|
-
b("ul",
|
|
13460
|
+
b("nav", w1, [
|
|
13461
|
+
b("p", x1, "Step " + j(o.step) + " of " + j(o.total), 1),
|
|
13462
|
+
b("ul", $1, [
|
|
13455
13463
|
(w(!0), E(Q, null, X(o.total, (l) => (w(), E("li", { key: l }, [
|
|
13456
|
-
o.step > l ? (w(), E("span",
|
|
13464
|
+
o.step > l ? (w(), E("span", _1)) : o.step === l ? (w(), E("div", C1, s[0] || (s[0] = [
|
|
13457
13465
|
b("span", { class: "absolute w-5 h-5 p-px flex" }, [
|
|
13458
13466
|
b("span", { class: "w-full h-full rounded-full bg-green-100" })
|
|
13459
13467
|
], -1),
|
|
13460
13468
|
b("span", { class: "relative block w-2.5 h-2.5 bg-xy-green rounded-full" }, null, -1)
|
|
13461
|
-
]))) : (w(), E("span",
|
|
13469
|
+
]))) : (w(), E("span", E1))
|
|
13462
13470
|
]))), 128))
|
|
13463
13471
|
])
|
|
13464
13472
|
]),
|
|
13465
|
-
o.hideActions ? F("", !0) : (w(), E("div",
|
|
13466
|
-
o.hidePrevious ? F("", !0) : (w(), E("span",
|
|
13473
|
+
o.hideActions ? F("", !0) : (w(), E("div", S1, [
|
|
13474
|
+
o.hidePrevious ? F("", !0) : (w(), E("span", D1, [
|
|
13467
13475
|
b("button", {
|
|
13468
13476
|
type: "button",
|
|
13469
13477
|
class: "xy-btn-secondary",
|
|
13470
13478
|
onClick: a,
|
|
13471
13479
|
textContent: j(o.previousText)
|
|
13472
|
-
}, null, 8,
|
|
13480
|
+
}, null, 8, A1)
|
|
13473
13481
|
])),
|
|
13474
|
-
b("span",
|
|
13482
|
+
b("span", O1, [
|
|
13475
13483
|
b("button", {
|
|
13476
13484
|
type: "button",
|
|
13477
13485
|
class: "xy-btn",
|
|
13478
13486
|
onClick: r,
|
|
13479
13487
|
textContent: j(o.nextText)
|
|
13480
|
-
}, null, 8,
|
|
13488
|
+
}, null, 8, P1)
|
|
13481
13489
|
])
|
|
13482
13490
|
]))
|
|
13483
13491
|
]));
|
|
13484
13492
|
}
|
|
13485
|
-
}),
|
|
13493
|
+
}), R1 = {
|
|
13486
13494
|
key: 0,
|
|
13487
13495
|
class: "flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"
|
|
13488
|
-
},
|
|
13496
|
+
}, T1 = {
|
|
13489
13497
|
key: 0,
|
|
13490
13498
|
class: "w-full max-w-lg lg:max-w-xs"
|
|
13491
|
-
},
|
|
13499
|
+
}, M1 = { class: "flex items-center gap-x-2" }, I1 = { class: "flex-1" }, L1 = {
|
|
13492
13500
|
key: 1,
|
|
13493
13501
|
class: "w-full max-w-lg lg:max-w-xs"
|
|
13494
|
-
},
|
|
13502
|
+
}, B1 = { class: "flex items-center gap-x-2" }, F1 = { class: "flex-1" }, N1 = { class: "relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto" }, V1 = { class: "min-w-full divide-y divide-gray-200" }, q1 = { class: "bg-gray-100" }, U1 = {
|
|
13495
13503
|
key: 0,
|
|
13496
13504
|
scope: "col",
|
|
13497
13505
|
class: "pl-6 w-4 leading-none"
|
|
13498
|
-
},
|
|
13506
|
+
}, j1 = ["checked", "indeterminate"], H1 = ["onClick"], W1 = { key: 0 }, K1 = { key: 1 }, z1 = {
|
|
13499
13507
|
key: 0,
|
|
13500
13508
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13501
13509
|
fill: "none",
|
|
13502
13510
|
viewBox: "0 0 24 24",
|
|
13503
13511
|
stroke: "currentColor",
|
|
13504
13512
|
class: "h-5 inline"
|
|
13505
|
-
},
|
|
13513
|
+
}, Y1 = {
|
|
13506
13514
|
key: 1,
|
|
13507
13515
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13508
13516
|
viewBox: "0 0 20 20",
|
|
13509
13517
|
fill: "currentColor",
|
|
13510
13518
|
class: "h-5 inline"
|
|
13511
|
-
},
|
|
13519
|
+
}, G1 = {
|
|
13512
13520
|
key: 2,
|
|
13513
13521
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13514
13522
|
viewBox: "0 0 20 20",
|
|
13515
13523
|
fill: "currentColor",
|
|
13516
13524
|
class: "h-5 inline"
|
|
13517
|
-
},
|
|
13525
|
+
}, J1 = {
|
|
13518
13526
|
key: 1,
|
|
13519
13527
|
class: "px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4"
|
|
13520
|
-
},
|
|
13528
|
+
}, Q1 = { key: 0 }, Z1 = {
|
|
13521
13529
|
colspan: "100%",
|
|
13522
13530
|
class: "px-6 py-2.5 border-t bg-neutral-50"
|
|
13523
|
-
},
|
|
13531
|
+
}, X1 = { class: "flex items-center gap-x-3" }, ew = { class: "text-sm shrink-0" }, tw = { class: "font-medium" }, nw = { class: "font-medium" }, rw = { class: "bg-white" }, aw = ["onClick"], ow = {
|
|
13524
13532
|
key: 0,
|
|
13525
13533
|
class: "pl-6 w-4 leading-none"
|
|
13526
|
-
},
|
|
13534
|
+
}, sw = ["disabled", "value"], lw = {
|
|
13527
13535
|
key: 1,
|
|
13528
13536
|
class: "px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5 w-0"
|
|
13529
|
-
},
|
|
13537
|
+
}, iw = { key: 0 }, uw = ["colspan"], dw = {
|
|
13530
13538
|
key: 1,
|
|
13531
13539
|
class: "mt-4"
|
|
13532
|
-
},
|
|
13540
|
+
}, cw = /* @__PURE__ */ R({
|
|
13533
13541
|
__name: "DynamicTable",
|
|
13534
13542
|
props: /* @__PURE__ */ ge({
|
|
13535
13543
|
tableActions: { default: () => ({ type: "dropdown", actions: [] }) },
|
|
@@ -13647,13 +13655,13 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13647
13655
|
var ie;
|
|
13648
13656
|
const Z = Yn("BaseInput");
|
|
13649
13657
|
return w(), E("div", null, [
|
|
13650
|
-
B.tableOptions.search || B.tableOptions.dateSearch ? (w(), E("div",
|
|
13651
|
-
B.tableOptions.search ? (w(), E("div",
|
|
13658
|
+
B.tableOptions.search || B.tableOptions.dateSearch ? (w(), E("div", R1, [
|
|
13659
|
+
B.tableOptions.search ? (w(), E("div", T1, [
|
|
13652
13660
|
q[7] || (q[7] = b("label", {
|
|
13653
13661
|
for: "table-search",
|
|
13654
13662
|
class: "sr-only"
|
|
13655
13663
|
}, "Search", -1)),
|
|
13656
|
-
b("div",
|
|
13664
|
+
b("div", M1, [
|
|
13657
13665
|
q[6] || (q[6] = b("div", {
|
|
13658
13666
|
"aria-hidden": "true",
|
|
13659
13667
|
class: "shrink-0 aspect-square rounded-full bg-gray-50 text-gray-400 h-10 w-10 flex items-center justify-center pointer-events-none"
|
|
@@ -13670,7 +13678,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13670
13678
|
})
|
|
13671
13679
|
])
|
|
13672
13680
|
], -1)),
|
|
13673
|
-
b("div",
|
|
13681
|
+
b("div", I1, [
|
|
13674
13682
|
D(Z, {
|
|
13675
13683
|
id: "table-search",
|
|
13676
13684
|
modelValue: c.value,
|
|
@@ -13683,12 +13691,12 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13683
13691
|
])
|
|
13684
13692
|
])
|
|
13685
13693
|
])) : F("", !0),
|
|
13686
|
-
B.tableOptions.dateSearch ? (w(), E("div",
|
|
13694
|
+
B.tableOptions.dateSearch ? (w(), E("div", L1, [
|
|
13687
13695
|
q[9] || (q[9] = b("label", {
|
|
13688
13696
|
for: "table-date-range",
|
|
13689
13697
|
class: "sr-only"
|
|
13690
13698
|
}, "Date Range", -1)),
|
|
13691
|
-
b("div",
|
|
13699
|
+
b("div", B1, [
|
|
13692
13700
|
q[8] || (q[8] = b("div", {
|
|
13693
13701
|
"aria-hidden": "true",
|
|
13694
13702
|
class: "shrink-0 aspect-square rounded-full bg-gray-50 text-gray-400 h-10 w-10 flex items-center justify-center pointer-events-none"
|
|
@@ -13707,7 +13715,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13707
13715
|
})
|
|
13708
13716
|
])
|
|
13709
13717
|
], -1)),
|
|
13710
|
-
b("div",
|
|
13718
|
+
b("div", F1, [
|
|
13711
13719
|
D(Cs, pe({
|
|
13712
13720
|
id: "table-date-range",
|
|
13713
13721
|
modelValue: d.value,
|
|
@@ -13718,11 +13726,11 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13718
13726
|
])
|
|
13719
13727
|
])) : F("", !0)
|
|
13720
13728
|
])) : F("", !0),
|
|
13721
|
-
b("div",
|
|
13722
|
-
b("table",
|
|
13723
|
-
b("thead",
|
|
13729
|
+
b("div", N1, [
|
|
13730
|
+
b("table", V1, [
|
|
13731
|
+
b("thead", q1, [
|
|
13724
13732
|
b("tr", null, [
|
|
13725
|
-
O.value ? (w(), E("th",
|
|
13733
|
+
O.value ? (w(), E("th", U1, [
|
|
13726
13734
|
b("input", {
|
|
13727
13735
|
class: L([
|
|
13728
13736
|
"h-4 w-4 rounded cursor-pointer",
|
|
@@ -13734,7 +13742,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13734
13742
|
indeterminate: H.value,
|
|
13735
13743
|
type: "checkbox",
|
|
13736
13744
|
onChange: M
|
|
13737
|
-
}, null, 40,
|
|
13745
|
+
}, null, 40, j1)
|
|
13738
13746
|
])) : F("", !0),
|
|
13739
13747
|
(w(!0), E(Q, null, X(p(z), (J, Pe) => (w(), E("th", {
|
|
13740
13748
|
key: Pe,
|
|
@@ -13744,22 +13752,22 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13744
13752
|
class: L(["inline-flex items-center gap-2", { "cursor-pointer": J.sort }]),
|
|
13745
13753
|
onClick: Fe((Nt) => J.sort ? v(J.sort) : void 0, ["prevent"])
|
|
13746
13754
|
}, [
|
|
13747
|
-
J.title ? (w(), E("span",
|
|
13748
|
-
J.sort ? (w(), E("span",
|
|
13749
|
-
l.value !== J.sort ? (w(), E("svg",
|
|
13755
|
+
J.title ? (w(), E("span", W1, j(J.title), 1)) : F("", !0),
|
|
13756
|
+
J.sort ? (w(), E("span", K1, [
|
|
13757
|
+
l.value !== J.sort ? (w(), E("svg", z1, q[10] || (q[10] = [
|
|
13750
13758
|
b("path", {
|
|
13751
13759
|
"stroke-linecap": "round",
|
|
13752
13760
|
"stroke-linejoin": "round",
|
|
13753
13761
|
"stroke-width": "2",
|
|
13754
13762
|
d: "M8 9l4-4 4 4m0 6l-4 4-4-4"
|
|
13755
13763
|
}, null, -1)
|
|
13756
|
-
]))) : i.value == "desc" ? (w(), E("svg",
|
|
13764
|
+
]))) : i.value == "desc" ? (w(), E("svg", Y1, q[11] || (q[11] = [
|
|
13757
13765
|
b("path", {
|
|
13758
13766
|
"fill-rule": "evenodd",
|
|
13759
13767
|
d: "M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",
|
|
13760
13768
|
"clip-rule": "evenodd"
|
|
13761
13769
|
}, null, -1)
|
|
13762
|
-
]))) : (w(), E("svg",
|
|
13770
|
+
]))) : (w(), E("svg", G1, q[12] || (q[12] = [
|
|
13763
13771
|
b("path", {
|
|
13764
13772
|
"fill-rule": "evenodd",
|
|
13765
13773
|
d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",
|
|
@@ -13767,25 +13775,25 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13767
13775
|
}, null, -1)
|
|
13768
13776
|
])))
|
|
13769
13777
|
])) : F("", !0)
|
|
13770
|
-
], 10,
|
|
13778
|
+
], 10, H1)
|
|
13771
13779
|
], 2))), 128)),
|
|
13772
|
-
p(U) ? (w(), E("th",
|
|
13780
|
+
p(U) ? (w(), E("th", J1)) : F("", !0)
|
|
13773
13781
|
]),
|
|
13774
|
-
O.value && m.value.length > 0 ? (w(), E("tr",
|
|
13775
|
-
b("td",
|
|
13776
|
-
b("div",
|
|
13777
|
-
b("div",
|
|
13782
|
+
O.value && m.value.length > 0 ? (w(), E("tr", Q1, [
|
|
13783
|
+
b("td", Z1, [
|
|
13784
|
+
b("div", X1, [
|
|
13785
|
+
b("div", ew, [
|
|
13778
13786
|
q[13] || (q[13] = te(" Selected ")),
|
|
13779
|
-
b("span",
|
|
13787
|
+
b("span", tw, j($.value.length), 1),
|
|
13780
13788
|
q[14] || (q[14] = te(" of ")),
|
|
13781
|
-
b("span",
|
|
13789
|
+
b("span", nw, j(P.value.length), 1)
|
|
13782
13790
|
]),
|
|
13783
13791
|
D(p(zr), { actions: S.value }, null, 8, ["actions"])
|
|
13784
13792
|
])
|
|
13785
13793
|
])
|
|
13786
13794
|
])) : F("", !0)
|
|
13787
13795
|
]),
|
|
13788
|
-
b("tbody",
|
|
13796
|
+
b("tbody", rw, [
|
|
13789
13797
|
(w(!0), E(Q, null, X(p(Y), (J, Pe) => {
|
|
13790
13798
|
var Nt, ne;
|
|
13791
13799
|
return w(), E("tr", {
|
|
@@ -13793,7 +13801,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13793
13801
|
class: "even:bg-gray-50",
|
|
13794
13802
|
onClick: (ue) => B.$emit("click:row", J.rowData)
|
|
13795
13803
|
}, [
|
|
13796
|
-
O.value ? (w(), E("td",
|
|
13804
|
+
O.value ? (w(), E("td", ow, [
|
|
13797
13805
|
Ze(b("input", {
|
|
13798
13806
|
"onUpdate:modelValue": q[3] || (q[3] = (ue) => m.value = ue),
|
|
13799
13807
|
class: L([
|
|
@@ -13805,7 +13813,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13805
13813
|
disabled: !P.value.includes((Nt = J.rowData) == null ? void 0 : Nt.id),
|
|
13806
13814
|
type: "checkbox",
|
|
13807
13815
|
value: (ne = J.rowData) == null ? void 0 : ne.id
|
|
13808
|
-
}, null, 8,
|
|
13816
|
+
}, null, 8, sw), [
|
|
13809
13817
|
[Lo, m.value]
|
|
13810
13818
|
])
|
|
13811
13819
|
])) : F("", !0),
|
|
@@ -13821,7 +13829,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13821
13829
|
]),
|
|
13822
13830
|
_: 2
|
|
13823
13831
|
}, 1032, ["class"]))), 128)),
|
|
13824
|
-
p(U) ? (w(), E("td",
|
|
13832
|
+
p(U) ? (w(), E("td", lw, [
|
|
13825
13833
|
B.tableActions.type === "dropdown" ? (w(), I(p(is), {
|
|
13826
13834
|
key: 0,
|
|
13827
13835
|
actions: J.actions
|
|
@@ -13830,18 +13838,18 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13830
13838
|
actions: J.actions
|
|
13831
13839
|
}, null, 8, ["actions"]))
|
|
13832
13840
|
])) : F("", !0)
|
|
13833
|
-
], 8,
|
|
13841
|
+
], 8, aw);
|
|
13834
13842
|
}), 128)),
|
|
13835
|
-
y.value ? F("", !0) : (w(), E("tr",
|
|
13843
|
+
y.value ? F("", !0) : (w(), E("tr", iw, [
|
|
13836
13844
|
b("td", {
|
|
13837
13845
|
colspan: p(z).length + (p(U) ? 1 : 0),
|
|
13838
13846
|
class: "px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"
|
|
13839
|
-
}, " No items were found! ", 8,
|
|
13847
|
+
}, " No items were found! ", 8, uw)
|
|
13840
13848
|
]))
|
|
13841
13849
|
])
|
|
13842
13850
|
])
|
|
13843
13851
|
]),
|
|
13844
|
-
y.value ? (w(), E("div",
|
|
13852
|
+
y.value ? (w(), E("div", dw, [
|
|
13845
13853
|
D(p(fd), {
|
|
13846
13854
|
modelValue: u.value,
|
|
13847
13855
|
"onUpdate:modelValue": [
|
|
@@ -13854,7 +13862,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13854
13862
|
]);
|
|
13855
13863
|
};
|
|
13856
13864
|
}
|
|
13857
|
-
}),
|
|
13865
|
+
}), fw = { class: "flex flex-col items-center space-y-3.5 sm:flex-row sm:space-y-0 sm:gap-x-3 sm:justify-center" }, pw = { class: "text-center text-sm text-neutral-700 sm:text-left sm:mr-auto sm:w-1/3" }, vw = { class: "font-medium" }, mw = { class: "font-medium" }, hw = { class: "font-medium" }, yw = { class: "flex flex-col items-center space-y-3.5 sm:flex-row sm:space-y-0 sm:gap-x-3 sm:flex-1" }, gw = { class: "flex gap-3 items-center justify-center shrink-0 md:w-1/2" }, bw = ["disabled"], ww = { class: "max-w-[50px]" }, xw = { class: "text-sm" }, $w = { class: "font-medium" }, _w = ["disabled"], Cw = { class: "max-w-[150px] sm:ml-auto" }, fd = /* @__PURE__ */ R({
|
|
13858
13866
|
__name: "TablePaginator",
|
|
13859
13867
|
props: /* @__PURE__ */ ge({
|
|
13860
13868
|
pageOptions: {}
|
|
@@ -13899,18 +13907,18 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13899
13907
|
end: Math.min(u * c, f)
|
|
13900
13908
|
};
|
|
13901
13909
|
});
|
|
13902
|
-
return (u, c) => (w(), E("div",
|
|
13903
|
-
b("p",
|
|
13910
|
+
return (u, c) => (w(), E("div", fw, [
|
|
13911
|
+
b("p", pw, [
|
|
13904
13912
|
c[3] || (c[3] = te(" Showing ")),
|
|
13905
|
-
b("span",
|
|
13913
|
+
b("span", vw, j(d.value.start), 1),
|
|
13906
13914
|
c[4] || (c[4] = te(" to ")),
|
|
13907
|
-
b("span",
|
|
13915
|
+
b("span", mw, j(d.value.end), 1),
|
|
13908
13916
|
c[5] || (c[5] = te(" of ")),
|
|
13909
|
-
b("span",
|
|
13917
|
+
b("span", hw, j(n.value.totalItems), 1),
|
|
13910
13918
|
c[6] || (c[6] = te(" results "))
|
|
13911
13919
|
]),
|
|
13912
|
-
b("div",
|
|
13913
|
-
b("div",
|
|
13920
|
+
b("div", yw, [
|
|
13921
|
+
b("div", gw, [
|
|
13914
13922
|
b("button", {
|
|
13915
13923
|
class: "xy-btn-neutral",
|
|
13916
13924
|
disabled: r.value <= 1,
|
|
@@ -13919,8 +13927,8 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13919
13927
|
}, c[7] || (c[7] = [
|
|
13920
13928
|
te(" ← "),
|
|
13921
13929
|
b("span", { class: "sr-only" }, "Previous", -1)
|
|
13922
|
-
]), 8,
|
|
13923
|
-
b("div",
|
|
13930
|
+
]), 8, bw),
|
|
13931
|
+
b("div", ww, [
|
|
13924
13932
|
D(p(wd), {
|
|
13925
13933
|
"model-value": r.value,
|
|
13926
13934
|
min: 1,
|
|
@@ -13933,9 +13941,9 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13933
13941
|
]
|
|
13934
13942
|
}, null, 8, ["model-value", "max", "onUpdate:modelValue", "onKeydown"])
|
|
13935
13943
|
]),
|
|
13936
|
-
b("div",
|
|
13944
|
+
b("div", xw, [
|
|
13937
13945
|
c[8] || (c[8] = te(" of ")),
|
|
13938
|
-
b("span",
|
|
13946
|
+
b("span", $w, j(n.value.totalPages), 1)
|
|
13939
13947
|
]),
|
|
13940
13948
|
b("button", {
|
|
13941
13949
|
class: "xy-btn-neutral",
|
|
@@ -13945,9 +13953,9 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13945
13953
|
}, c[9] || (c[9] = [
|
|
13946
13954
|
b("span", { class: "sr-only" }, "Next", -1),
|
|
13947
13955
|
te(" → ")
|
|
13948
|
-
]), 8,
|
|
13956
|
+
]), 8, _w)
|
|
13949
13957
|
]),
|
|
13950
|
-
b("div",
|
|
13958
|
+
b("div", Cw, [
|
|
13951
13959
|
D(p(Es), {
|
|
13952
13960
|
modelValue: a.value,
|
|
13953
13961
|
"onUpdate:modelValue": c[2] || (c[2] = (f) => a.value = f),
|
|
@@ -13957,7 +13965,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13957
13965
|
])
|
|
13958
13966
|
]));
|
|
13959
13967
|
}
|
|
13960
|
-
}),
|
|
13968
|
+
}), Ew = { class: "hidden sm:block" }, Sw = ["onClick", "textContent"], Dw = /* @__PURE__ */ R({
|
|
13961
13969
|
__name: "Tabs",
|
|
13962
13970
|
props: /* @__PURE__ */ ge({
|
|
13963
13971
|
pillDesign: { type: Boolean, default: !1 },
|
|
@@ -13989,7 +13997,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
13989
13997
|
options: o.tabs
|
|
13990
13998
|
}, null, 8, ["modelValue", "options"])
|
|
13991
13999
|
], 2),
|
|
13992
|
-
b("div",
|
|
14000
|
+
b("div", Ew, [
|
|
13993
14001
|
b("div", {
|
|
13994
14002
|
class: L({ "border-b border-gray-200": a.value })
|
|
13995
14003
|
}, [
|
|
@@ -14002,17 +14010,17 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14002
14010
|
class: L(r(i.value, d > 0)),
|
|
14003
14011
|
onClick: Fe((u) => n.value = i.value, ["prevent"]),
|
|
14004
14012
|
textContent: j(i.label)
|
|
14005
|
-
}, null, 10,
|
|
14013
|
+
}, null, 10, Sw))), 128))
|
|
14006
14014
|
], 2)
|
|
14007
14015
|
], 2)
|
|
14008
14016
|
])
|
|
14009
14017
|
]);
|
|
14010
14018
|
};
|
|
14011
14019
|
}
|
|
14012
|
-
}),
|
|
14020
|
+
}), Aw = {
|
|
14013
14021
|
key: 0,
|
|
14014
14022
|
class: "sr-only"
|
|
14015
|
-
},
|
|
14023
|
+
}, Ow = { class: "ml-3 mt-0.5" }, Pw = /* @__PURE__ */ R({
|
|
14016
14024
|
inheritAttrs: !1,
|
|
14017
14025
|
__name: "Toggle",
|
|
14018
14026
|
props: /* @__PURE__ */ ge({
|
|
@@ -14041,7 +14049,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14041
14049
|
disabled: r.value
|
|
14042
14050
|
}, {
|
|
14043
14051
|
default: k(() => [
|
|
14044
|
-
a.label ? F("", !0) : (w(), E("span",
|
|
14052
|
+
a.label ? F("", !0) : (w(), E("span", Aw, "Use")),
|
|
14045
14053
|
b("span", {
|
|
14046
14054
|
"aria-hidden": "true",
|
|
14047
14055
|
class: L([
|
|
@@ -14052,7 +14060,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14052
14060
|
]),
|
|
14053
14061
|
_: 1
|
|
14054
14062
|
}, 8, ["modelValue", "class", "disabled"]),
|
|
14055
|
-
b("div",
|
|
14063
|
+
b("div", Ow, [
|
|
14056
14064
|
a.label ? (w(), I(p(Wp), { key: 0 }, {
|
|
14057
14065
|
default: k(() => [
|
|
14058
14066
|
D(et, {
|
|
@@ -14073,20 +14081,20 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14073
14081
|
_: 1
|
|
14074
14082
|
}));
|
|
14075
14083
|
}
|
|
14076
|
-
}),
|
|
14084
|
+
}), kw = { "aria-label": "Progress" }, Rw = {
|
|
14077
14085
|
role: "list",
|
|
14078
14086
|
class: "flex items-center"
|
|
14079
|
-
},
|
|
14087
|
+
}, Tw = {
|
|
14080
14088
|
class: "absolute inset-0 flex items-center",
|
|
14081
14089
|
"aria-hidden": "true"
|
|
14082
|
-
},
|
|
14090
|
+
}, Mw = ["aria-current"], Iw = {
|
|
14083
14091
|
key: 1,
|
|
14084
14092
|
class: "h-3 w-3 rounded-full bg-xy-blue",
|
|
14085
14093
|
"aria-hidden": "true"
|
|
14086
|
-
},
|
|
14094
|
+
}, Lw = { class: "sr-only" }, Bw = {
|
|
14087
14095
|
key: 2,
|
|
14088
14096
|
class: "sr-only"
|
|
14089
|
-
},
|
|
14097
|
+
}, Fw = /* @__PURE__ */ R({
|
|
14090
14098
|
__name: "ProgressCircles",
|
|
14091
14099
|
props: {
|
|
14092
14100
|
current: {},
|
|
@@ -14101,13 +14109,13 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14101
14109
|
status: o
|
|
14102
14110
|
};
|
|
14103
14111
|
}));
|
|
14104
|
-
return (r, a) => (w(), E("nav",
|
|
14105
|
-
b("ol",
|
|
14112
|
+
return (r, a) => (w(), E("nav", kw, [
|
|
14113
|
+
b("ol", Rw, [
|
|
14106
14114
|
(w(!0), E(Q, null, X(n.value, (o, s) => (w(), E("li", {
|
|
14107
14115
|
key: o.name,
|
|
14108
14116
|
class: L([s !== n.value.length - 1 ? "pr-8" : "", "relative"])
|
|
14109
14117
|
}, [
|
|
14110
|
-
b("div",
|
|
14118
|
+
b("div", Tw, [
|
|
14111
14119
|
b("div", {
|
|
14112
14120
|
class: L([
|
|
14113
14121
|
"h-0.5 w-full",
|
|
@@ -14128,24 +14136,24 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14128
14136
|
key: 0,
|
|
14129
14137
|
class: "h-3 w-3 text-white",
|
|
14130
14138
|
"aria-hidden": "true"
|
|
14131
|
-
})) : o.status === "current" ? (w(), E("span",
|
|
14132
|
-
b("span",
|
|
14133
|
-
o.description ? (w(), E("span",
|
|
14134
|
-
], 10,
|
|
14139
|
+
})) : o.status === "current" ? (w(), E("span", Iw)) : F("", !0),
|
|
14140
|
+
b("span", Lw, j(o.name), 1),
|
|
14141
|
+
o.description ? (w(), E("span", Bw, j(o.description), 1)) : F("", !0)
|
|
14142
|
+
], 10, Mw)
|
|
14135
14143
|
], 2))), 128))
|
|
14136
14144
|
])
|
|
14137
14145
|
]));
|
|
14138
14146
|
}
|
|
14139
|
-
}),
|
|
14147
|
+
}), Nw = { "aria-label": "Progress" }, Vw = {
|
|
14140
14148
|
role: "list",
|
|
14141
14149
|
class: "overflow-hidden"
|
|
14142
|
-
},
|
|
14150
|
+
}, qw = ["aria-current"], Uw = { class: "flex h-9 items-center" }, jw = {
|
|
14143
14151
|
key: 1,
|
|
14144
14152
|
class: "h-2.5 w-2.5 rounded-full bg-xy-blue"
|
|
14145
|
-
},
|
|
14153
|
+
}, Hw = { class: "ml-4 flex min-w-0 flex-col" }, Ww = {
|
|
14146
14154
|
key: 0,
|
|
14147
14155
|
class: "text-sm text-gray-600"
|
|
14148
|
-
},
|
|
14156
|
+
}, Kw = /* @__PURE__ */ R({
|
|
14149
14157
|
__name: "ProgressCirclesLabeled",
|
|
14150
14158
|
props: {
|
|
14151
14159
|
current: {},
|
|
@@ -14160,8 +14168,8 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14160
14168
|
status: o
|
|
14161
14169
|
};
|
|
14162
14170
|
}));
|
|
14163
|
-
return (r, a) => (w(), E("div",
|
|
14164
|
-
b("ol",
|
|
14171
|
+
return (r, a) => (w(), E("div", Nw, [
|
|
14172
|
+
b("ol", Vw, [
|
|
14165
14173
|
(w(!0), E(Q, null, X(n.value, (o, s) => (w(), E("li", {
|
|
14166
14174
|
key: s,
|
|
14167
14175
|
class: L([s !== n.value.length - 1 ? "pb-6" : "", "relative"])
|
|
@@ -14178,7 +14186,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14178
14186
|
class: "group relative flex items-start",
|
|
14179
14187
|
"aria-current": o.status === "current" ? !0 : void 0
|
|
14180
14188
|
}, [
|
|
14181
|
-
b("span",
|
|
14189
|
+
b("span", Uw, [
|
|
14182
14190
|
b("span", {
|
|
14183
14191
|
class: L({
|
|
14184
14192
|
"relative z-10 flex h-6 w-6 items-center justify-center rounded-full": !0,
|
|
@@ -14191,10 +14199,10 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14191
14199
|
key: 0,
|
|
14192
14200
|
class: "h-4 w-4 text-white",
|
|
14193
14201
|
"aria-hidden": "true"
|
|
14194
|
-
})) : o.status === "current" ? (w(), E("span",
|
|
14202
|
+
})) : o.status === "current" ? (w(), E("span", jw)) : F("", !0)
|
|
14195
14203
|
], 2)
|
|
14196
14204
|
]),
|
|
14197
|
-
b("span",
|
|
14205
|
+
b("span", Hw, [
|
|
14198
14206
|
b("span", {
|
|
14199
14207
|
class: L({
|
|
14200
14208
|
"text-sm font-bold": !0,
|
|
@@ -14204,14 +14212,14 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14204
14212
|
"mt-2": !o.description
|
|
14205
14213
|
})
|
|
14206
14214
|
}, j(o.name), 3),
|
|
14207
|
-
o.description ? (w(), E("span",
|
|
14215
|
+
o.description ? (w(), E("span", Ww, j(o.description), 1)) : F("", !0)
|
|
14208
14216
|
])
|
|
14209
|
-
], 8,
|
|
14217
|
+
], 8, qw)
|
|
14210
14218
|
], 2))), 128))
|
|
14211
14219
|
])
|
|
14212
14220
|
]));
|
|
14213
14221
|
}
|
|
14214
|
-
}),
|
|
14222
|
+
}), zw = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "placeholder", "type"], Yw = /* @__PURE__ */ R({
|
|
14215
14223
|
inheritAttrs: !1,
|
|
14216
14224
|
__name: "BaseInput",
|
|
14217
14225
|
props: /* @__PURE__ */ ge(/* @__PURE__ */ st({
|
|
@@ -14302,7 +14310,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14302
14310
|
(...v) => p(d) && p(d)(...v)),
|
|
14303
14311
|
onInvalid: f[2] || (f[2] = //@ts-ignore
|
|
14304
14312
|
(...v) => p(i) && p(i)(...v))
|
|
14305
|
-
}), null, 16,
|
|
14313
|
+
}), null, 16, zw), [
|
|
14306
14314
|
[
|
|
14307
14315
|
Xd,
|
|
14308
14316
|
r.value,
|
|
@@ -14322,7 +14330,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14322
14330
|
}, null, 8, ["id", "text"])
|
|
14323
14331
|
]));
|
|
14324
14332
|
}
|
|
14325
|
-
}),
|
|
14333
|
+
}), Gw = { class: "relative flex items-start" }, Jw = { class: "flex items-center h-5" }, Qw = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "checked"], Zw = { class: "ml-3" }, Xw = /* @__PURE__ */ R({
|
|
14326
14334
|
inheritAttrs: !1,
|
|
14327
14335
|
__name: "Checkbox",
|
|
14328
14336
|
props: /* @__PURE__ */ ge(/* @__PURE__ */ st({
|
|
@@ -14345,8 +14353,8 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14345
14353
|
validate: i,
|
|
14346
14354
|
onInvalid: d
|
|
14347
14355
|
} = yt(t);
|
|
14348
|
-
return (u, c) => (w(), E("div",
|
|
14349
|
-
b("div",
|
|
14356
|
+
return (u, c) => (w(), E("div", Gw, [
|
|
14357
|
+
b("div", Jw, [
|
|
14350
14358
|
Ze(b("input", pe({
|
|
14351
14359
|
id: p(a),
|
|
14352
14360
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => n.value = f),
|
|
@@ -14366,11 +14374,11 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14366
14374
|
(...f) => p(i) && p(i)(...f)),
|
|
14367
14375
|
onInvalid: c[2] || (c[2] = //@ts-ignore
|
|
14368
14376
|
(...f) => p(d) && p(d)(...f))
|
|
14369
|
-
}), null, 16,
|
|
14377
|
+
}), null, 16, Qw), [
|
|
14370
14378
|
[Lo, n.value]
|
|
14371
14379
|
])
|
|
14372
14380
|
]),
|
|
14373
|
-
b("div",
|
|
14381
|
+
b("div", Zw, [
|
|
14374
14382
|
D(et, {
|
|
14375
14383
|
id: p(r).labelledby,
|
|
14376
14384
|
for: p(a),
|
|
@@ -14390,7 +14398,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14390
14398
|
])
|
|
14391
14399
|
]));
|
|
14392
14400
|
}
|
|
14393
|
-
}),
|
|
14401
|
+
}), ex = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "placeholder"], tx = /* @__PURE__ */ R({
|
|
14394
14402
|
inheritAttrs: !1,
|
|
14395
14403
|
__name: "DateTimeInput",
|
|
14396
14404
|
props: /* @__PURE__ */ ge(/* @__PURE__ */ st({
|
|
@@ -14439,7 +14447,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14439
14447
|
(...u) => p(l) && p(l)(...u)),
|
|
14440
14448
|
onInvalid: d[2] || (d[2] = //@ts-ignore
|
|
14441
14449
|
(...u) => p(s) && p(s)(...u))
|
|
14442
|
-
}), null, 16,
|
|
14450
|
+
}), null, 16, ex), [
|
|
14443
14451
|
[Bo, n.value]
|
|
14444
14452
|
]),
|
|
14445
14453
|
D(qe, {
|
|
@@ -14454,7 +14462,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14454
14462
|
}, null, 8, ["id", "text"])
|
|
14455
14463
|
]));
|
|
14456
14464
|
}
|
|
14457
|
-
}),
|
|
14465
|
+
}), nx = {
|
|
14458
14466
|
key: 0,
|
|
14459
14467
|
class: "text-red-700/80"
|
|
14460
14468
|
}, gr = /* @__PURE__ */ R({
|
|
@@ -14472,12 +14480,12 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14472
14480
|
}, r.$attrs), {
|
|
14473
14481
|
default: k(() => [
|
|
14474
14482
|
te(j(n.value), 1),
|
|
14475
|
-
t.required ? (w(), E("span",
|
|
14483
|
+
t.required ? (w(), E("span", nx, "*")) : F("", !0)
|
|
14476
14484
|
]),
|
|
14477
14485
|
_: 1
|
|
14478
14486
|
}, 16)) : F("", !0);
|
|
14479
14487
|
}
|
|
14480
|
-
}),
|
|
14488
|
+
}), rx = ["aria-labelledby", "aria-describedby", "aria-errormessage"], ax = { key: 0 }, ox = { class: "flex" }, sx = { class: "flex items-center h-5" }, lx = ["id", "aria-labelledby", "aria-describedby", "disabled", "value"], ix = { class: "ml-3" }, ux = /* @__PURE__ */ R({
|
|
14481
14489
|
inheritAttrs: !1,
|
|
14482
14490
|
__name: "MultiCheckboxes",
|
|
14483
14491
|
props: /* @__PURE__ */ ge(/* @__PURE__ */ st({
|
|
@@ -14529,7 +14537,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14529
14537
|
"aria-describedby": p(r).describedby,
|
|
14530
14538
|
"aria-errormessage": p(r).errormessage
|
|
14531
14539
|
}, [
|
|
14532
|
-
v.label ? (w(), E("div",
|
|
14540
|
+
v.label ? (w(), E("div", ax, [
|
|
14533
14541
|
D(gr, {
|
|
14534
14542
|
id: p(r).labelledby,
|
|
14535
14543
|
label: v.label,
|
|
@@ -14548,7 +14556,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14548
14556
|
text: p(s)
|
|
14549
14557
|
}, null, 8, ["id", "text"])
|
|
14550
14558
|
])) : F("", !0),
|
|
14551
|
-
b("div",
|
|
14559
|
+
b("div", ox, [
|
|
14552
14560
|
b("div", {
|
|
14553
14561
|
class: L(["grid gap-y-5", {
|
|
14554
14562
|
"sm:grid sm:gap-x-10": v.columns !== void 0,
|
|
@@ -14560,7 +14568,7 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14560
14568
|
key: y.value,
|
|
14561
14569
|
class: "flex items-start"
|
|
14562
14570
|
}, [
|
|
14563
|
-
b("div",
|
|
14571
|
+
b("div", sx, [
|
|
14564
14572
|
Ze(b("input", pe({
|
|
14565
14573
|
id: `${p(a)}-${g}`,
|
|
14566
14574
|
"onUpdate:modelValue": h[0] || (h[0] = (m) => n.value = m),
|
|
@@ -14579,11 +14587,11 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14579
14587
|
}, v.$attrs, {
|
|
14580
14588
|
onChange: h[1] || (h[1] = //@ts-ignore
|
|
14581
14589
|
(...m) => p(l) && p(l)(...m))
|
|
14582
|
-
}), null, 16,
|
|
14590
|
+
}), null, 16, lx), [
|
|
14583
14591
|
[Lo, n.value]
|
|
14584
14592
|
])
|
|
14585
14593
|
]),
|
|
14586
|
-
b("div",
|
|
14594
|
+
b("div", ix, [
|
|
14587
14595
|
D(et, {
|
|
14588
14596
|
id: `${p(a)}-${g}-label`,
|
|
14589
14597
|
for: `${p(a)}-${g}`,
|
|
@@ -14609,21 +14617,21 @@ const mb = /* @__PURE__ */ cb(fb, [["render", vb]]), hb = { class: "absolute ins
|
|
|
14609
14617
|
type: "checkbox",
|
|
14610
14618
|
onInvalid: f
|
|
14611
14619
|
}, null, 544)) : F("", !0)
|
|
14612
|
-
], 8,
|
|
14620
|
+
], 8, rx));
|
|
14613
14621
|
}
|
|
14614
14622
|
});
|
|
14615
14623
|
function Yl(e) {
|
|
14616
14624
|
const { anchorOffset: t = 0, focusOffset: n = 0 } = e.ownerDocument.getSelection() || {}, r = Math.min(t, n), a = Math.max(t, n);
|
|
14617
14625
|
return [r, a];
|
|
14618
14626
|
}
|
|
14619
|
-
function
|
|
14627
|
+
function dx(e, [t, n]) {
|
|
14620
14628
|
var r, a, o, s;
|
|
14621
14629
|
const l = e.ownerDocument, i = l.createRange();
|
|
14622
14630
|
i.setStart(e.firstChild || e, Math.min(t, (a = (r = e.textContent) === null || r === void 0 ? void 0 : r.length) !== null && a !== void 0 ? a : 0)), i.setEnd(e.lastChild || e, Math.min(n, (s = (o = e.textContent) === null || o === void 0 ? void 0 : o.length) !== null && s !== void 0 ? s : 0));
|
|
14623
14631
|
const d = l.getSelection();
|
|
14624
14632
|
d && (d.removeAllRanges(), d.addRange(i));
|
|
14625
14633
|
}
|
|
14626
|
-
class
|
|
14634
|
+
class cx {
|
|
14627
14635
|
constructor(t) {
|
|
14628
14636
|
this.element = t, this.maxLength = 1 / 0;
|
|
14629
14637
|
}
|
|
@@ -14643,14 +14651,14 @@ class ax {
|
|
|
14643
14651
|
return Yl(this.element)[1];
|
|
14644
14652
|
}
|
|
14645
14653
|
setSelectionRange(t, n) {
|
|
14646
|
-
|
|
14654
|
+
dx(this.element, [t ?? 0, n ?? 0]);
|
|
14647
14655
|
}
|
|
14648
14656
|
select() {
|
|
14649
14657
|
this.setSelectionRange(0, this.value.length);
|
|
14650
14658
|
}
|
|
14651
14659
|
}
|
|
14652
|
-
function
|
|
14653
|
-
const t = new
|
|
14660
|
+
function fx(e) {
|
|
14661
|
+
const t = new cx(e);
|
|
14654
14662
|
return new Proxy(e, {
|
|
14655
14663
|
get(n, r) {
|
|
14656
14664
|
if (r in t)
|
|
@@ -14664,14 +14672,14 @@ function ox(e) {
|
|
|
14664
14672
|
}
|
|
14665
14673
|
});
|
|
14666
14674
|
}
|
|
14667
|
-
const
|
|
14675
|
+
const px = (e) => e.isContentEditable ? fx(e) : e.querySelector("input,textarea") || e, As = {
|
|
14668
14676
|
mask: /^.*$/,
|
|
14669
14677
|
preprocessors: [],
|
|
14670
14678
|
postprocessors: [],
|
|
14671
14679
|
plugins: [],
|
|
14672
14680
|
overwriteMode: "shift"
|
|
14673
14681
|
};
|
|
14674
|
-
class
|
|
14682
|
+
class vx {
|
|
14675
14683
|
constructor() {
|
|
14676
14684
|
this.now = null, this.past = [], this.future = [];
|
|
14677
14685
|
}
|
|
@@ -14695,13 +14703,13 @@ class lx {
|
|
|
14695
14703
|
this.now = t, this.updateElementState(t, { inputType: n, data: null });
|
|
14696
14704
|
}
|
|
14697
14705
|
}
|
|
14698
|
-
function
|
|
14706
|
+
function mx(e, ...t) {
|
|
14699
14707
|
return t.every(({ value: n }) => n === e.value);
|
|
14700
14708
|
}
|
|
14701
|
-
function
|
|
14709
|
+
function hx(e, ...t) {
|
|
14702
14710
|
return t.every(({ value: n, selection: r }) => n === e.value && r[0] === e.selection[0] && r[1] === e.selection[1]);
|
|
14703
14711
|
}
|
|
14704
|
-
function
|
|
14712
|
+
function yx({ value: e, selection: t }, n, r) {
|
|
14705
14713
|
const [a, o] = t, s = typeof r == "function" ? r({ value: e, selection: t }) : r;
|
|
14706
14714
|
return {
|
|
14707
14715
|
value: e,
|
|
@@ -14727,7 +14735,7 @@ function pd(e, t) {
|
|
|
14727
14735
|
return Ra(a) ? n === a : n.match(a);
|
|
14728
14736
|
}) : t.test(e);
|
|
14729
14737
|
}
|
|
14730
|
-
function
|
|
14738
|
+
function gx(e, t, n) {
|
|
14731
14739
|
let r = null, a = null;
|
|
14732
14740
|
const o = Array.from(e.value).reduce((l, i, d) => {
|
|
14733
14741
|
const u = Gl(t, l, i, n), c = l + u, f = t[c.length] || "";
|
|
@@ -14738,7 +14746,7 @@ function cx(e, t, n) {
|
|
|
14738
14746
|
selection: [r ?? o.length, a ?? o.length]
|
|
14739
14747
|
};
|
|
14740
14748
|
}
|
|
14741
|
-
function
|
|
14749
|
+
function bx({ value: e, selection: t }, n) {
|
|
14742
14750
|
const [r, a] = t;
|
|
14743
14751
|
let o = r, s = a;
|
|
14744
14752
|
const l = Array.from(e).reduce((i, d, u) => {
|
|
@@ -14756,7 +14764,7 @@ function fx({ value: e, selection: t }, n) {
|
|
|
14756
14764
|
function Mr(e, t, n = null) {
|
|
14757
14765
|
if (pd(e.value, t))
|
|
14758
14766
|
return e;
|
|
14759
|
-
const { value: r, selection: a } = Array.isArray(t) ?
|
|
14767
|
+
const { value: r, selection: a } = Array.isArray(t) ? gx(e, t, n) : bx(e, t);
|
|
14760
14768
|
return {
|
|
14761
14769
|
selection: a,
|
|
14762
14770
|
value: Array.isArray(t) ? r.slice(0, t.length) : r
|
|
@@ -14784,14 +14792,14 @@ class Ro {
|
|
|
14784
14792
|
const { value: a, maskOptions: o } = this, s = this.getMaskExpression({
|
|
14785
14793
|
value: a.slice(0, t) + r + a.slice(n),
|
|
14786
14794
|
selection: [t + r.length, t + r.length]
|
|
14787
|
-
}), l = { value: a, selection: [t, n] }, i = Jl(l, s), [d, u] =
|
|
14795
|
+
}), l = { value: a, selection: [t, n] }, i = Jl(l, s), [d, u] = yx(i, r, o.overwriteMode).selection, c = i.value.slice(0, d) + r, f = c.length, v = Mr({
|
|
14788
14796
|
value: c + i.value.slice(u),
|
|
14789
14797
|
selection: [f, f]
|
|
14790
14798
|
}, s, l);
|
|
14791
14799
|
if (a.slice(0, t) === Mr({
|
|
14792
14800
|
value: c,
|
|
14793
14801
|
selection: [f, f]
|
|
14794
|
-
}, s, l).value ||
|
|
14802
|
+
}, s, l).value || hx(this, v))
|
|
14795
14803
|
throw new Error("Invalid mask value");
|
|
14796
14804
|
this.value = v.value, this.selection = v.selection;
|
|
14797
14805
|
}
|
|
@@ -14809,7 +14817,7 @@ class Ro {
|
|
|
14809
14817
|
return typeof n == "function" ? n(t) : n;
|
|
14810
14818
|
}
|
|
14811
14819
|
}
|
|
14812
|
-
class
|
|
14820
|
+
class wx {
|
|
14813
14821
|
constructor(t) {
|
|
14814
14822
|
this.element = t, this.listeners = [];
|
|
14815
14823
|
}
|
|
@@ -14838,12 +14846,12 @@ function Qn(e, t, n) {
|
|
|
14838
14846
|
*/
|
|
14839
14847
|
e.keyCode === n;
|
|
14840
14848
|
}
|
|
14841
|
-
function
|
|
14849
|
+
function xx(e) {
|
|
14842
14850
|
return Qn(e, lt.CTRL, Jn.Y) || // Windows
|
|
14843
14851
|
Qn(e, lt.CTRL | lt.SHIFT, Jn.Z) || // Windows & Android
|
|
14844
14852
|
Qn(e, lt.META | lt.SHIFT, Jn.Z);
|
|
14845
14853
|
}
|
|
14846
|
-
function
|
|
14854
|
+
function $x(e) {
|
|
14847
14855
|
return Qn(e, lt.CTRL, Jn.Z) || // Windows & Android
|
|
14848
14856
|
Qn(e, lt.META, Jn.Z);
|
|
14849
14857
|
}
|
|
@@ -14867,7 +14875,7 @@ function Os(e, t) {
|
|
|
14867
14875
|
{ bubbles: !0 }
|
|
14868
14876
|
));
|
|
14869
14877
|
}
|
|
14870
|
-
function
|
|
14878
|
+
function _x({ value: e, selection: t }, n) {
|
|
14871
14879
|
const [r, a] = t;
|
|
14872
14880
|
if (r !== a)
|
|
14873
14881
|
return [r, a];
|
|
@@ -14876,17 +14884,17 @@ function hx({ value: e, selection: t }, n) {
|
|
|
14876
14884
|
`) + 1;
|
|
14877
14885
|
return [n ? r : o, n ? o : a];
|
|
14878
14886
|
}
|
|
14879
|
-
function
|
|
14887
|
+
function Cx({ value: e, selection: t }, n) {
|
|
14880
14888
|
const [r, a] = t;
|
|
14881
14889
|
return r !== a ? [r, a] : (n ? [r, a + 1] : [r - 1, a]).map((s) => Math.min(Math.max(s, 0), e.length));
|
|
14882
14890
|
}
|
|
14883
|
-
const
|
|
14884
|
-
function
|
|
14891
|
+
const Ex = /\s+$/g, Sx = /^\s+/g, Ql = /\s/;
|
|
14892
|
+
function Dx({ value: e, selection: t }, n) {
|
|
14885
14893
|
const [r, a] = t;
|
|
14886
14894
|
if (r !== a)
|
|
14887
14895
|
return [r, a];
|
|
14888
14896
|
if (n) {
|
|
14889
|
-
const i = e.slice(r), [d] = i.match(
|
|
14897
|
+
const i = e.slice(r), [d] = i.match(Sx) || [
|
|
14890
14898
|
""
|
|
14891
14899
|
], u = i.trimStart().search(Ql);
|
|
14892
14900
|
return [
|
|
@@ -14894,7 +14902,7 @@ function wx({ value: e, selection: t }, n) {
|
|
|
14894
14902
|
u !== -1 ? r + d.length + u : e.length
|
|
14895
14903
|
];
|
|
14896
14904
|
}
|
|
14897
|
-
const o = e.slice(0, a), [s] = o.match(
|
|
14905
|
+
const o = e.slice(0, a), [s] = o.match(Ex) || [""], l = o.trimEnd().split("").reverse().findIndex((i) => Ql.exec(i));
|
|
14898
14906
|
return [
|
|
14899
14907
|
l !== -1 ? a - s.length - l : 0,
|
|
14900
14908
|
a
|
|
@@ -14907,12 +14915,12 @@ function Ta(e, t) {
|
|
|
14907
14915
|
const n = Object.assign(Object.assign({}, As), t), r = oa(n.preprocessors), a = oa(n.postprocessors), o = typeof e == "string" ? { value: e, selection: [0, 0] } : e, { elementState: s } = r({ elementState: o, data: "" }, "validation"), l = new Ro(s, n), { value: i, selection: d } = a(l, o);
|
|
14908
14916
|
return typeof e == "string" ? i : { value: i, selection: d };
|
|
14909
14917
|
}
|
|
14910
|
-
class
|
|
14918
|
+
class Ax extends vx {
|
|
14911
14919
|
constructor(t, n) {
|
|
14912
|
-
super(), this.element = t, this.maskitoOptions = n, this.isTextArea = this.element.nodeName === "TEXTAREA", this.eventListener = new
|
|
14913
|
-
if (
|
|
14920
|
+
super(), this.element = t, this.maskitoOptions = n, this.isTextArea = this.element.nodeName === "TEXTAREA", this.eventListener = new wx(this.element), this.options = Object.assign(Object.assign({}, As), this.maskitoOptions), this.upcomingElementState = null, this.preprocessor = oa(this.options.preprocessors), this.postprocessor = oa(this.options.postprocessors), this.teardowns = this.options.plugins.map((r) => r(this.element, this.options)), this.updateHistory(this.elementState), this.eventListener.listen("keydown", (r) => {
|
|
14921
|
+
if (xx(r))
|
|
14914
14922
|
return r.preventDefault(), this.redo();
|
|
14915
|
-
if (
|
|
14923
|
+
if ($x(r))
|
|
14916
14924
|
return r.preventDefault(), this.undo();
|
|
14917
14925
|
}), this.eventListener.listen("beforeinput", (r) => {
|
|
14918
14926
|
var a, o, s;
|
|
@@ -14924,7 +14932,7 @@ class xx extends lx {
|
|
|
14924
14932
|
return this.handleDelete({
|
|
14925
14933
|
event: r,
|
|
14926
14934
|
isForward: l,
|
|
14927
|
-
selection:
|
|
14935
|
+
selection: Cx(this.elementState, l)
|
|
14928
14936
|
});
|
|
14929
14937
|
case "deleteHardLineBackward":
|
|
14930
14938
|
case "deleteHardLineForward":
|
|
@@ -14933,7 +14941,7 @@ class xx extends lx {
|
|
|
14933
14941
|
return this.handleDelete({
|
|
14934
14942
|
event: r,
|
|
14935
14943
|
isForward: l,
|
|
14936
|
-
selection:
|
|
14944
|
+
selection: _x(this.elementState, l),
|
|
14937
14945
|
force: !0
|
|
14938
14946
|
});
|
|
14939
14947
|
case "deleteWordBackward":
|
|
@@ -14941,7 +14949,7 @@ class xx extends lx {
|
|
|
14941
14949
|
return this.handleDelete({
|
|
14942
14950
|
event: r,
|
|
14943
14951
|
isForward: l,
|
|
14944
|
-
selection:
|
|
14952
|
+
selection: Dx(this.elementState, l),
|
|
14945
14953
|
force: !0
|
|
14946
14954
|
});
|
|
14947
14955
|
case "historyRedo":
|
|
@@ -15023,7 +15031,7 @@ class xx extends lx {
|
|
|
15023
15031
|
d.deleteCharacters([u, c]);
|
|
15024
15032
|
const f = this.postprocessor(d, o);
|
|
15025
15033
|
if (!(o.value.slice(0, s) + o.value.slice(l) === f.value && !a && !this.element.isContentEditable)) {
|
|
15026
|
-
if (
|
|
15034
|
+
if (mx(o, i, d, f))
|
|
15027
15035
|
return t.preventDefault(), this.updateSelectionRange(r ? [c, c] : [u, u]);
|
|
15028
15036
|
this.upcomingElementState = f;
|
|
15029
15037
|
}
|
|
@@ -15051,12 +15059,12 @@ class xx extends lx {
|
|
|
15051
15059
|
const sa = /* @__PURE__ */ new Map(), To = /* @__PURE__ */ new Map();
|
|
15052
15060
|
async function Zl(e, t) {
|
|
15053
15061
|
var n, r;
|
|
15054
|
-
const a = (n = t == null ? void 0 : t.elementPredicate) !== null && n !== void 0 ? n :
|
|
15062
|
+
const a = (n = t == null ? void 0 : t.elementPredicate) !== null && n !== void 0 ? n : px;
|
|
15055
15063
|
To.set(e, a);
|
|
15056
15064
|
const o = await a(e);
|
|
15057
|
-
To.get(e) === a && ((r = sa.get(e)) === null || r === void 0 || r.destroy(), t && sa.set(e, new
|
|
15065
|
+
To.get(e) === a && ((r = sa.get(e)) === null || r === void 0 || r.destroy(), t && sa.set(e, new Ax(o, t)));
|
|
15058
15066
|
}
|
|
15059
|
-
const
|
|
15067
|
+
const Ox = {
|
|
15060
15068
|
unmounted: (e) => {
|
|
15061
15069
|
var t;
|
|
15062
15070
|
(t = sa.get(e)) === null || t === void 0 || t.destroy(), sa.delete(e), To.delete(e);
|
|
@@ -15070,15 +15078,15 @@ function la(e, t, n) {
|
|
|
15070
15078
|
const r = Math.min(Number(n), Math.max(Number(t), Number(e)));
|
|
15071
15079
|
return e instanceof Date ? new Date(r) : r;
|
|
15072
15080
|
}
|
|
15073
|
-
const
|
|
15081
|
+
const Px = [".", ",", "б", "ю"], kx = " ", Rx = "", vd = "–", md = "—", ia = "-", Mo = "−", hd = "ー", Tx = [":", "."];
|
|
15074
15082
|
function qn(e) {
|
|
15075
15083
|
return e;
|
|
15076
15084
|
}
|
|
15077
|
-
function
|
|
15085
|
+
function Mx() {
|
|
15078
15086
|
}
|
|
15079
|
-
const yd = /[\\^$.*+?()[\]{}|]/g,
|
|
15087
|
+
const yd = /[\\^$.*+?()[\]{}|]/g, Ix = new RegExp(yd.source);
|
|
15080
15088
|
function Ve(e) {
|
|
15081
|
-
return e &&
|
|
15089
|
+
return e && Ix.test(e) ? e.replaceAll(yd, String.raw`\$&`) : e;
|
|
15082
15090
|
}
|
|
15083
15091
|
function wt(e, { prefix: t, postfix: n }) {
|
|
15084
15092
|
var r, a;
|
|
@@ -15089,7 +15097,7 @@ function wt(e, { prefix: t, postfix: n }) {
|
|
|
15089
15097
|
cleanValue: l || i ? e.slice(l.length, i.length ? -i.length : 1 / 0) : e
|
|
15090
15098
|
};
|
|
15091
15099
|
}
|
|
15092
|
-
function
|
|
15100
|
+
function Lx(e, t) {
|
|
15093
15101
|
let n = "";
|
|
15094
15102
|
for (let r = 0; r < e.length; r++) {
|
|
15095
15103
|
if (e[r] !== t[r])
|
|
@@ -15101,7 +15109,7 @@ function Ox(e, t) {
|
|
|
15101
15109
|
function Xl(e) {
|
|
15102
15110
|
return e.replaceAll(/[0-9]/g, (t) => String.fromCharCode(t.charCodeAt(0) - 65248));
|
|
15103
15111
|
}
|
|
15104
|
-
function
|
|
15112
|
+
function Bx() {
|
|
15105
15113
|
return ({ elementState: e, data: t }) => {
|
|
15106
15114
|
const { value: n, selection: r } = e;
|
|
15107
15115
|
return {
|
|
@@ -15113,15 +15121,15 @@ function Px() {
|
|
|
15113
15121
|
};
|
|
15114
15122
|
};
|
|
15115
15123
|
}
|
|
15116
|
-
new RegExp(`[${
|
|
15117
|
-
function
|
|
15124
|
+
new RegExp(`[${Tx.map(Ve).join("")}]$`);
|
|
15125
|
+
function Fx(e) {
|
|
15118
15126
|
const t = new RegExp(`${Ve(e)}$`);
|
|
15119
15127
|
return e ? ({ value: n, selection: r }, a) => {
|
|
15120
15128
|
if (!n && !a.value.endsWith(e))
|
|
15121
15129
|
return { value: n, selection: r };
|
|
15122
15130
|
if (!n.endsWith(e) && !a.value.endsWith(e))
|
|
15123
15131
|
return { selection: r, value: n + e };
|
|
15124
|
-
const o = a.value.replace(t, ""), s = a.selection[1] > o.length, l =
|
|
15132
|
+
const o = a.value.replace(t, ""), s = a.selection[1] > o.length, l = Lx(o, n);
|
|
15125
15133
|
return {
|
|
15126
15134
|
selection: r,
|
|
15127
15135
|
value: Array.from(e).reverse().reduce((i, d, u) => {
|
|
@@ -15131,7 +15139,7 @@ function kx(e) {
|
|
|
15131
15139
|
};
|
|
15132
15140
|
} : qn;
|
|
15133
15141
|
}
|
|
15134
|
-
function
|
|
15142
|
+
function Nx(e) {
|
|
15135
15143
|
return e ? ({ value: t, selection: n }, r) => {
|
|
15136
15144
|
if (t.startsWith(e) || // already valid
|
|
15137
15145
|
!t && !r.value.startsWith(e))
|
|
@@ -15149,7 +15157,7 @@ function Ps(e, t, n) {
|
|
|
15149
15157
|
return r.addEventListener(e, o, n), () => r.removeEventListener(e, o, n);
|
|
15150
15158
|
};
|
|
15151
15159
|
}
|
|
15152
|
-
function
|
|
15160
|
+
function Vx({ prefix: e, postfix: t }) {
|
|
15153
15161
|
return ({ elementState: n, data: r }) => {
|
|
15154
15162
|
const { cleanValue: a } = wt(r, {
|
|
15155
15163
|
prefix: e,
|
|
@@ -15172,7 +15180,7 @@ function Ma(e, t = ".") {
|
|
|
15172
15180
|
const n = !!new RegExp(`^\\D*[${Mo}\\${ia}${vd}${md}${hd}]`).exec(e), r = Ve(t), a = e.replaceAll(new RegExp(`${r}(?!\\d)`, "g"), "").replaceAll(new RegExp(`[^\\d${r}]`, "g"), "").replace(t, t && ".");
|
|
15173
15181
|
return a ? +`${n ? ia : ""}${a}` : NaN;
|
|
15174
15182
|
}
|
|
15175
|
-
function
|
|
15183
|
+
function qx(e) {
|
|
15176
15184
|
var t;
|
|
15177
15185
|
const n = String(e), [r = "", a] = n.split("e-");
|
|
15178
15186
|
let o = n;
|
|
@@ -15186,10 +15194,10 @@ function bd(e, { decimalSeparator: t, minusSign: n }) {
|
|
|
15186
15194
|
const [r = "", a = ""] = t ? e.split(t) : [e], o = Ve(n), [, s = "", l = ""] = new RegExp(`^(?:[^\\d${o}])?(${o})?(.*)`).exec(r) || [];
|
|
15187
15195
|
return { minus: s, integerPart: l, decimalPart: a };
|
|
15188
15196
|
}
|
|
15189
|
-
function
|
|
15197
|
+
function Ux({ decimalSeparator: e, thousandSeparator: t, decimalPseudoSeparators: n = Px }) {
|
|
15190
15198
|
return n.filter((r) => r !== t && r !== e);
|
|
15191
15199
|
}
|
|
15192
|
-
function
|
|
15200
|
+
function jx({ decimalSeparator: e, precision: t, decimalZeroPadding: n, prefix: r, postfix: a }) {
|
|
15193
15201
|
return t <= 0 || !n ? qn : ({ value: o, selection: s }) => {
|
|
15194
15202
|
const { cleanValue: l, extractedPrefix: i, extractedPostfix: d } = wt(o, {
|
|
15195
15203
|
prefix: r,
|
|
@@ -15204,7 +15212,7 @@ function Lx({ decimalSeparator: e, precision: t, decimalZeroPadding: n, prefix:
|
|
|
15204
15212
|
};
|
|
15205
15213
|
};
|
|
15206
15214
|
}
|
|
15207
|
-
function
|
|
15215
|
+
function Hx({ prefix: e, postfix: t, decimalSeparator: n, minusSign: r }) {
|
|
15208
15216
|
return ({ value: a, selection: o }) => {
|
|
15209
15217
|
const [s] = o, { cleanValue: l, extractedPrefix: i, extractedPostfix: d } = wt(a, {
|
|
15210
15218
|
prefix: e,
|
|
@@ -15219,7 +15227,7 @@ function Bx({ prefix: e, postfix: t, decimalSeparator: n, minusSign: r }) {
|
|
|
15219
15227
|
} : { value: a, selection: o };
|
|
15220
15228
|
};
|
|
15221
15229
|
}
|
|
15222
|
-
function
|
|
15230
|
+
function Wx({ decimalSeparator: e, decimalPseudoSeparators: t, pseudoMinuses: n, prefix: r, postfix: a, minusSign: o }) {
|
|
15223
15231
|
let s = !0;
|
|
15224
15232
|
const l = gd({
|
|
15225
15233
|
decimalSeparator: e,
|
|
@@ -15260,7 +15268,7 @@ function Fx({ decimalSeparator: e, decimalPseudoSeparators: t, pseudoMinuses: n,
|
|
|
15260
15268
|
};
|
|
15261
15269
|
};
|
|
15262
15270
|
}
|
|
15263
|
-
function
|
|
15271
|
+
function Kx({ decimalSeparator: e, thousandSeparator: t, prefix: n, postfix: r }) {
|
|
15264
15272
|
const a = (s) => {
|
|
15265
15273
|
const l = Ve(t);
|
|
15266
15274
|
return s.replace(
|
|
@@ -15290,7 +15298,7 @@ function Nx({ decimalSeparator: e, thousandSeparator: t, prefix: n, postfix: r }
|
|
|
15290
15298
|
};
|
|
15291
15299
|
};
|
|
15292
15300
|
}
|
|
15293
|
-
function
|
|
15301
|
+
function zx({ min: e, max: t, decimalSeparator: n, minusSign: r }) {
|
|
15294
15302
|
return ({ value: a, selection: o }) => {
|
|
15295
15303
|
const s = Ma(a, n), l = (
|
|
15296
15304
|
/**
|
|
@@ -15318,7 +15326,7 @@ function Vx({ min: e, max: t, decimalSeparator: n, minusSign: r }) {
|
|
|
15318
15326
|
};
|
|
15319
15327
|
};
|
|
15320
15328
|
}
|
|
15321
|
-
function
|
|
15329
|
+
function Yx({ decimalSeparator: e, thousandSeparator: t, decimalZeroPadding: n }) {
|
|
15322
15330
|
return ({ elementState: r, data: a }, o) => {
|
|
15323
15331
|
const { value: s, selection: l } = r, [i, d] = l, u = s.slice(i, d), c = n ? [e, t] : [t], f = n && i > s.indexOf(e) && !!u.match(/^0+$/gi);
|
|
15324
15332
|
return o !== "deleteBackward" && o !== "deleteForward" || !c.includes(u) && !f ? {
|
|
@@ -15333,7 +15341,7 @@ function qx({ decimalSeparator: e, thousandSeparator: t, decimalZeroPadding: n }
|
|
|
15333
15341
|
};
|
|
15334
15342
|
};
|
|
15335
15343
|
}
|
|
15336
|
-
function
|
|
15344
|
+
function Gx({ decimalSeparator: e, precision: t, prefix: n, postfix: r }) {
|
|
15337
15345
|
const a = new RegExp(`^\\D*${Ve(e)}`);
|
|
15338
15346
|
return ({ elementState: o, data: s }) => {
|
|
15339
15347
|
const { value: l, selection: i } = o, { cleanValue: d, extractedPrefix: u } = wt(l, {
|
|
@@ -15365,7 +15373,7 @@ function ti({ validCharacter: e, pseudoCharacters: t, prefix: n, postfix: r }) {
|
|
|
15365
15373
|
};
|
|
15366
15374
|
};
|
|
15367
15375
|
}
|
|
15368
|
-
function
|
|
15376
|
+
function Jx({ decimalSeparator: e, prefix: t, postfix: n }) {
|
|
15369
15377
|
return e ? ({ elementState: r, data: a }) => {
|
|
15370
15378
|
const { value: o, selection: s } = r, [l, i] = s, { cleanValue: d } = wt(o, { prefix: t, postfix: n });
|
|
15371
15379
|
return {
|
|
@@ -15374,7 +15382,7 @@ function jx({ decimalSeparator: e, prefix: t, postfix: n }) {
|
|
|
15374
15382
|
};
|
|
15375
15383
|
} : qn;
|
|
15376
15384
|
}
|
|
15377
|
-
function
|
|
15385
|
+
function Qx({ thousandSeparator: e, decimalSeparator: t, prefix: n, postfix: r, minusSign: a }) {
|
|
15378
15386
|
if (!e)
|
|
15379
15387
|
return qn;
|
|
15380
15388
|
const o = (...s) => s.every((l) => /\s/.test(l));
|
|
@@ -15399,7 +15407,7 @@ function Hx({ thousandSeparator: e, decimalSeparator: t, prefix: n, postfix: r,
|
|
|
15399
15407
|
};
|
|
15400
15408
|
};
|
|
15401
15409
|
}
|
|
15402
|
-
function
|
|
15410
|
+
function Zx({ precision: e, decimalSeparator: t, prefix: n, postfix: r }) {
|
|
15403
15411
|
if (e > 0 || !t)
|
|
15404
15412
|
return qn;
|
|
15405
15413
|
const a = new RegExp(`${Ve(t)}.*$`, "g");
|
|
@@ -15421,8 +15429,8 @@ function Wx({ precision: e, decimalSeparator: t, prefix: n, postfix: r }) {
|
|
|
15421
15429
|
};
|
|
15422
15430
|
}
|
|
15423
15431
|
const ni = [0, 0];
|
|
15424
|
-
function
|
|
15425
|
-
const a =
|
|
15432
|
+
function Xx({ decimalSeparator: e, thousandSeparator: t, prefix: n, postfix: r }) {
|
|
15433
|
+
const a = Kx({
|
|
15426
15434
|
decimalSeparator: e,
|
|
15427
15435
|
thousandSeparator: t,
|
|
15428
15436
|
prefix: n,
|
|
@@ -15436,30 +15444,30 @@ function Kx({ decimalSeparator: e, thousandSeparator: t, prefix: n, postfix: r }
|
|
|
15436
15444
|
Os(o, s);
|
|
15437
15445
|
}, { capture: !0 });
|
|
15438
15446
|
}
|
|
15439
|
-
function
|
|
15447
|
+
function e2({ min: e, max: t, decimalSeparator: n }) {
|
|
15440
15448
|
return Ps("blur", (r, a) => {
|
|
15441
15449
|
const o = Ma(r.value, n), s = la(o, e, t);
|
|
15442
|
-
!Number.isNaN(o) && o !== s && Os(r, Ta(
|
|
15450
|
+
!Number.isNaN(o) && o !== s && Os(r, Ta(qx(s), a));
|
|
15443
15451
|
}, { capture: !0 });
|
|
15444
15452
|
}
|
|
15445
|
-
function
|
|
15453
|
+
function t2({ decimalSeparator: e, prefix: t, postfix: n }) {
|
|
15446
15454
|
return e ? Ps("blur", (r) => {
|
|
15447
15455
|
const { cleanValue: a, extractedPostfix: o, extractedPrefix: s } = wt(r.value, { prefix: t, postfix: n }), l = s + a.replace(new RegExp(`^(\\D+)?${Ve(e)}`), `$10${e}`) + o;
|
|
15448
15456
|
Os(r, l);
|
|
15449
|
-
}, { capture: !0 }) :
|
|
15457
|
+
}, { capture: !0 }) : Mx;
|
|
15450
15458
|
}
|
|
15451
|
-
function
|
|
15459
|
+
function n2({ max: e = Number.MAX_SAFE_INTEGER, min: t = Number.MIN_SAFE_INTEGER, precision: n = 0, thousandSeparator: r = kx, decimalSeparator: a = ".", decimalPseudoSeparators: o, decimalZeroPadding: s = !1, prefix: l = "", postfix: i = "", minusSign: d = Mo } = {}) {
|
|
15452
15460
|
const u = [
|
|
15453
15461
|
ia,
|
|
15454
15462
|
vd,
|
|
15455
15463
|
md,
|
|
15456
15464
|
hd,
|
|
15457
15465
|
Mo
|
|
15458
|
-
].filter((h) => h !== r && h !== a && h !== d), c =
|
|
15466
|
+
].filter((h) => h !== r && h !== a && h !== d), c = Ux({
|
|
15459
15467
|
decimalSeparator: a,
|
|
15460
15468
|
thousandSeparator: r,
|
|
15461
15469
|
decimalPseudoSeparators: o
|
|
15462
|
-
}), f = l.endsWith(a) && n > 0 ? `${l}${
|
|
15470
|
+
}), f = l.endsWith(a) && n > 0 ? `${l}${Rx}` : l, v = Wx({
|
|
15463
15471
|
decimalSeparator: a,
|
|
15464
15472
|
decimalPseudoSeparators: c,
|
|
15465
15473
|
pseudoMinuses: u,
|
|
@@ -15476,9 +15484,9 @@ function Gx({ max: e = Number.MAX_SAFE_INTEGER, min: t = Number.MIN_SAFE_INTEGER
|
|
|
15476
15484
|
isNegativeAllowed: t < 0,
|
|
15477
15485
|
minusSign: d
|
|
15478
15486
|
}), preprocessors: [
|
|
15479
|
-
|
|
15487
|
+
Bx(),
|
|
15480
15488
|
v,
|
|
15481
|
-
|
|
15489
|
+
Vx({ prefix: f, postfix: i }),
|
|
15482
15490
|
ti({
|
|
15483
15491
|
validCharacter: d,
|
|
15484
15492
|
pseudoCharacters: u,
|
|
@@ -15491,68 +15499,68 @@ function Gx({ max: e = Number.MAX_SAFE_INTEGER, min: t = Number.MIN_SAFE_INTEGER
|
|
|
15491
15499
|
prefix: f,
|
|
15492
15500
|
postfix: i
|
|
15493
15501
|
}),
|
|
15494
|
-
|
|
15502
|
+
Gx({
|
|
15495
15503
|
decimalSeparator: a,
|
|
15496
15504
|
precision: n,
|
|
15497
15505
|
prefix: f,
|
|
15498
15506
|
postfix: i
|
|
15499
15507
|
}),
|
|
15500
|
-
|
|
15508
|
+
Yx({
|
|
15501
15509
|
decimalSeparator: a,
|
|
15502
15510
|
decimalZeroPadding: s,
|
|
15503
15511
|
thousandSeparator: r
|
|
15504
15512
|
}),
|
|
15505
|
-
|
|
15513
|
+
Zx({
|
|
15506
15514
|
precision: n,
|
|
15507
15515
|
decimalSeparator: a,
|
|
15508
15516
|
prefix: f,
|
|
15509
15517
|
postfix: i
|
|
15510
15518
|
}),
|
|
15511
|
-
|
|
15519
|
+
Jx({
|
|
15512
15520
|
decimalSeparator: a,
|
|
15513
15521
|
prefix: f,
|
|
15514
15522
|
postfix: i
|
|
15515
15523
|
})
|
|
15516
15524
|
], postprocessors: [
|
|
15517
|
-
|
|
15518
|
-
|
|
15519
|
-
|
|
15520
|
-
|
|
15525
|
+
zx({ decimalSeparator: a, min: t, max: e, minusSign: d }),
|
|
15526
|
+
Nx(f),
|
|
15527
|
+
Fx(i),
|
|
15528
|
+
Qx({
|
|
15521
15529
|
decimalSeparator: a,
|
|
15522
15530
|
thousandSeparator: r,
|
|
15523
15531
|
prefix: f,
|
|
15524
15532
|
postfix: i,
|
|
15525
15533
|
minusSign: d
|
|
15526
15534
|
}),
|
|
15527
|
-
|
|
15535
|
+
jx({
|
|
15528
15536
|
decimalSeparator: a,
|
|
15529
15537
|
decimalZeroPadding: s,
|
|
15530
15538
|
precision: n,
|
|
15531
15539
|
prefix: f,
|
|
15532
15540
|
postfix: i
|
|
15533
15541
|
}),
|
|
15534
|
-
|
|
15542
|
+
Hx({
|
|
15535
15543
|
prefix: f,
|
|
15536
15544
|
postfix: i,
|
|
15537
15545
|
decimalSeparator: a,
|
|
15538
15546
|
minusSign: d
|
|
15539
15547
|
})
|
|
15540
15548
|
], plugins: [
|
|
15541
|
-
|
|
15549
|
+
Xx({
|
|
15542
15550
|
decimalSeparator: a,
|
|
15543
15551
|
thousandSeparator: r,
|
|
15544
15552
|
prefix: f,
|
|
15545
15553
|
postfix: i
|
|
15546
15554
|
}),
|
|
15547
|
-
|
|
15555
|
+
t2({
|
|
15548
15556
|
decimalSeparator: a,
|
|
15549
15557
|
prefix: f,
|
|
15550
15558
|
postfix: i
|
|
15551
15559
|
}),
|
|
15552
|
-
|
|
15560
|
+
e2({ min: t, max: e, decimalSeparator: a })
|
|
15553
15561
|
], overwriteMode: s ? ({ value: h, selection: [y] }) => y <= h.indexOf(a) ? "shift" : "replace" : "shift" });
|
|
15554
15562
|
}
|
|
15555
|
-
const
|
|
15563
|
+
const r2 = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "placeholder"], a2 = ["value", "name", "min", "max", "required"], wd = /* @__PURE__ */ R({
|
|
15556
15564
|
inheritAttrs: !1,
|
|
15557
15565
|
__name: "NumberInput",
|
|
15558
15566
|
props: /* @__PURE__ */ ge(/* @__PURE__ */ st({
|
|
@@ -15593,7 +15601,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15593
15601
|
h.thousandSeparator = "";
|
|
15594
15602
|
break;
|
|
15595
15603
|
}
|
|
15596
|
-
return
|
|
15604
|
+
return n2(h);
|
|
15597
15605
|
}), a = $e(e, "modelValue", ve), o = C({
|
|
15598
15606
|
get: () => {
|
|
15599
15607
|
if (a.value === null || a.value === void 0)
|
|
@@ -15654,9 +15662,9 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15654
15662
|
}, { ...v.value }, {
|
|
15655
15663
|
onInput: y[1] || (y[1] = //@ts-ignore
|
|
15656
15664
|
(...g) => p(f) && p(f)(...g))
|
|
15657
|
-
}), null, 16,
|
|
15665
|
+
}), null, 16, r2), [
|
|
15658
15666
|
[Bo, o.value],
|
|
15659
|
-
[p(
|
|
15667
|
+
[p(Ox), r.value]
|
|
15660
15668
|
]),
|
|
15661
15669
|
D(qe, {
|
|
15662
15670
|
id: `${p(i)}-help`,
|
|
@@ -15680,10 +15688,10 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15680
15688
|
type: "number",
|
|
15681
15689
|
onInvalid: y[2] || (y[2] = //@ts-ignore
|
|
15682
15690
|
(...g) => p(c) && p(c)(...g))
|
|
15683
|
-
}, null, 40,
|
|
15691
|
+
}, null, 40, a2)
|
|
15684
15692
|
]));
|
|
15685
15693
|
}
|
|
15686
|
-
}),
|
|
15694
|
+
}), o2 = ["aria-labelledby", "aria-describedby", "aria-errormessage"], s2 = { key: 0 }, l2 = { class: "flex" }, i2 = { class: "flex items-center h-5" }, u2 = ["id", "aria-describedby", "aria-labelledby", "disabled", "name", "value"], d2 = { class: "ml-3" }, c2 = /* @__PURE__ */ R({
|
|
15687
15695
|
inheritAttrs: !1,
|
|
15688
15696
|
__name: "Radio",
|
|
15689
15697
|
props: /* @__PURE__ */ ge(/* @__PURE__ */ st({
|
|
@@ -15714,7 +15722,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15714
15722
|
"aria-describedby": p(r).describedby,
|
|
15715
15723
|
"aria-errormessage": p(r).errormessage
|
|
15716
15724
|
}, [
|
|
15717
|
-
u.label ? (w(), E("div",
|
|
15725
|
+
u.label ? (w(), E("div", s2, [
|
|
15718
15726
|
D(gr, {
|
|
15719
15727
|
id: p(r).labelledby,
|
|
15720
15728
|
label: u.label,
|
|
@@ -15733,7 +15741,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15733
15741
|
text: p(a)
|
|
15734
15742
|
}, null, 8, ["id", "text"])
|
|
15735
15743
|
])) : F("", !0),
|
|
15736
|
-
b("div",
|
|
15744
|
+
b("div", l2, [
|
|
15737
15745
|
b("div", {
|
|
15738
15746
|
class: L(["grid gap-y-5", {
|
|
15739
15747
|
"sm:grid sm:gap-x-10": u.columns !== void 0,
|
|
@@ -15745,7 +15753,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15745
15753
|
key: f.value,
|
|
15746
15754
|
class: "flex items-start"
|
|
15747
15755
|
}, [
|
|
15748
|
-
b("div",
|
|
15756
|
+
b("div", i2, [
|
|
15749
15757
|
Ze(b("input", pe({
|
|
15750
15758
|
id: `${p(o)}-${v}`,
|
|
15751
15759
|
"onUpdate:modelValue": c[0] || (c[0] = (h) => n.value = h),
|
|
@@ -15767,11 +15775,11 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15767
15775
|
(...h) => p(d) && p(d)(...h)),
|
|
15768
15776
|
onInvalid: c[2] || (c[2] = //@ts-ignore
|
|
15769
15777
|
(...h) => p(i) && p(i)(...h))
|
|
15770
|
-
}), null, 16,
|
|
15778
|
+
}), null, 16, u2), [
|
|
15771
15779
|
[lo, n.value]
|
|
15772
15780
|
])
|
|
15773
15781
|
]),
|
|
15774
|
-
b("div",
|
|
15782
|
+
b("div", d2, [
|
|
15775
15783
|
D(et, {
|
|
15776
15784
|
id: `${p(o)}-${v}-label`,
|
|
15777
15785
|
for: `${p(o)}-${v}`,
|
|
@@ -15788,12 +15796,12 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15788
15796
|
]))), 128))
|
|
15789
15797
|
], 2)
|
|
15790
15798
|
])
|
|
15791
|
-
], 8,
|
|
15799
|
+
], 8, o2));
|
|
15792
15800
|
}
|
|
15793
|
-
}),
|
|
15801
|
+
}), f2 = { key: 0 }, p2 = { class: "flex-1 flex pr-1" }, v2 = { class: "flex flex-col" }, m2 = {
|
|
15794
15802
|
key: 1,
|
|
15795
15803
|
class: "mt-auto mb-0"
|
|
15796
|
-
},
|
|
15804
|
+
}, h2 = ["checked", "name", "required", "value"], y2 = /* @__PURE__ */ R({
|
|
15797
15805
|
inheritAttrs: !1,
|
|
15798
15806
|
__name: "RadioCards",
|
|
15799
15807
|
props: /* @__PURE__ */ ge(/* @__PURE__ */ st({
|
|
@@ -15824,7 +15832,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15824
15832
|
"aria-errormessage": p(r).errormessage
|
|
15825
15833
|
}, {
|
|
15826
15834
|
default: k(() => [
|
|
15827
|
-
u.label || u.help || p(l) ? (w(), E("div",
|
|
15835
|
+
u.label || u.help || p(l) ? (w(), E("div", f2, [
|
|
15828
15836
|
u.label ? (w(), I(p(sl), {
|
|
15829
15837
|
key: 0,
|
|
15830
15838
|
class: "block"
|
|
@@ -15878,8 +15886,8 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15878
15886
|
v ? "border-xy-blue ring-2 ring-xy-blue-500" : ""
|
|
15879
15887
|
]])
|
|
15880
15888
|
}, [
|
|
15881
|
-
b("div",
|
|
15882
|
-
b("div",
|
|
15889
|
+
b("div", p2, [
|
|
15890
|
+
b("div", v2, [
|
|
15883
15891
|
D(p(sl), { as: "div" }, {
|
|
15884
15892
|
default: k(() => [
|
|
15885
15893
|
D(et, {
|
|
@@ -15903,7 +15911,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15903
15911
|
]),
|
|
15904
15912
|
_: 2
|
|
15905
15913
|
}, 1024)) : F("", !0),
|
|
15906
|
-
f.sublabel || u.$slots.sublabel ? (w(), E("div",
|
|
15914
|
+
f.sublabel || u.$slots.sublabel ? (w(), E("div", m2, [
|
|
15907
15915
|
D(p(qa), {
|
|
15908
15916
|
as: "div",
|
|
15909
15917
|
class: "text-sm/5 font-medium mt-4 text-gray-800"
|
|
@@ -15946,7 +15954,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15946
15954
|
value: f.value,
|
|
15947
15955
|
onInvalid: c[0] || (c[0] = //@ts-ignore
|
|
15948
15956
|
(...g) => p(i) && p(i)(...g))
|
|
15949
|
-
}, null, 40,
|
|
15957
|
+
}, null, 40, h2)
|
|
15950
15958
|
], 2)
|
|
15951
15959
|
]),
|
|
15952
15960
|
_: 2
|
|
@@ -15956,7 +15964,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15956
15964
|
_: 3
|
|
15957
15965
|
}, 8, ["modelValue", "disabled", "aria-invalid", "aria-errormessage"]));
|
|
15958
15966
|
}
|
|
15959
|
-
}),
|
|
15967
|
+
}), g2 = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "placeholder", "rows"], b2 = /* @__PURE__ */ R({
|
|
15960
15968
|
inheritAttrs: !1,
|
|
15961
15969
|
__name: "TextArea",
|
|
15962
15970
|
props: /* @__PURE__ */ ge(/* @__PURE__ */ st({
|
|
@@ -15998,7 +16006,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
15998
16006
|
(...c) => p(i) && p(i)(...c)),
|
|
15999
16007
|
onInvalid: u[2] || (u[2] = //@ts-ignore
|
|
16000
16008
|
(...c) => p(l) && p(l)(...c))
|
|
16001
|
-
}), null, 16,
|
|
16009
|
+
}), null, 16, g2), [
|
|
16002
16010
|
[
|
|
16003
16011
|
Bo,
|
|
16004
16012
|
n.value,
|
|
@@ -16018,7 +16026,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
16018
16026
|
}, null, 8, ["id", "text"])
|
|
16019
16027
|
]));
|
|
16020
16028
|
}
|
|
16021
|
-
}),
|
|
16029
|
+
}), w2 = ["aria-labelledby", "aria-describedby", "aria-errormessage"], x2 = { key: 0 }, $2 = ["for"], _2 = ["id", "name"], C2 = ["for"], E2 = ["id", "name"], S2 = /* @__PURE__ */ R({
|
|
16022
16030
|
inheritAttrs: !1,
|
|
16023
16031
|
__name: "YesOrNoRadio",
|
|
16024
16032
|
props: /* @__PURE__ */ ge(/* @__PURE__ */ st({
|
|
@@ -16047,7 +16055,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
16047
16055
|
"aria-describedby": p(r).describedby,
|
|
16048
16056
|
"aria-errormessage": p(r).errormessage
|
|
16049
16057
|
}, [
|
|
16050
|
-
u.label ? (w(), E("div",
|
|
16058
|
+
u.label ? (w(), E("div", x2, [
|
|
16051
16059
|
D(gr, {
|
|
16052
16060
|
id: p(r).labelledby,
|
|
16053
16061
|
class: "block my-auto",
|
|
@@ -16090,7 +16098,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
16090
16098
|
(...f) => p(d) && p(d)(...f)),
|
|
16091
16099
|
onInvalid: c[2] || (c[2] = //@ts-ignore
|
|
16092
16100
|
(...f) => p(i) && p(i)(...f))
|
|
16093
|
-
}), null, 16,
|
|
16101
|
+
}), null, 16, _2), [
|
|
16094
16102
|
[lo, n.value]
|
|
16095
16103
|
]),
|
|
16096
16104
|
D(et, {
|
|
@@ -16098,7 +16106,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
16098
16106
|
label: "Yes",
|
|
16099
16107
|
tag: "span"
|
|
16100
16108
|
})
|
|
16101
|
-
], 10,
|
|
16109
|
+
], 10, $2),
|
|
16102
16110
|
b("label", {
|
|
16103
16111
|
class: L(["inline-flex items-center ml-6", p(a) ? "cursor-not-allowed" : "cursor-pointer"]),
|
|
16104
16112
|
for: `${p(s)}-false`
|
|
@@ -16120,7 +16128,7 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
16120
16128
|
(...f) => p(d) && p(d)(...f)),
|
|
16121
16129
|
onInvalid: c[5] || (c[5] = //@ts-ignore
|
|
16122
16130
|
(...f) => p(i) && p(i)(...f))
|
|
16123
|
-
}), null, 16,
|
|
16131
|
+
}), null, 16, E2), [
|
|
16124
16132
|
[lo, n.value]
|
|
16125
16133
|
]),
|
|
16126
16134
|
D(et, {
|
|
@@ -16128,58 +16136,58 @@ const Jx = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
|
|
|
16128
16136
|
label: "No",
|
|
16129
16137
|
tag: "span"
|
|
16130
16138
|
})
|
|
16131
|
-
], 10,
|
|
16139
|
+
], 10, C2)
|
|
16132
16140
|
])
|
|
16133
|
-
], 8,
|
|
16141
|
+
], 8, w2));
|
|
16134
16142
|
}
|
|
16135
|
-
}),
|
|
16143
|
+
}), D2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16136
16144
|
__proto__: null,
|
|
16137
16145
|
ActionsButtonGroup: zr,
|
|
16138
16146
|
ActionsDropdown: is,
|
|
16139
|
-
BaseInput:
|
|
16147
|
+
BaseInput: Yw,
|
|
16140
16148
|
Cards: om,
|
|
16141
|
-
Checkbox:
|
|
16149
|
+
Checkbox: Xw,
|
|
16142
16150
|
ContentModal: cm,
|
|
16143
|
-
DataTable:
|
|
16151
|
+
DataTable: b1,
|
|
16144
16152
|
DateFilter: ld,
|
|
16145
16153
|
DateRangePicker: Cs,
|
|
16146
|
-
DateTime:
|
|
16147
|
-
DetailList:
|
|
16148
|
-
DownloadCell:
|
|
16149
|
-
DynamicTable:
|
|
16154
|
+
DateTime: tx,
|
|
16155
|
+
DetailList: ng,
|
|
16156
|
+
DownloadCell: ag,
|
|
16157
|
+
DynamicTable: cw,
|
|
16150
16158
|
FieldsetLegend: gr,
|
|
16151
16159
|
Flash: Ss,
|
|
16152
|
-
InlineAlert:
|
|
16160
|
+
InlineAlert: Sg,
|
|
16153
16161
|
InputError: bt,
|
|
16154
16162
|
InputHelp: qe,
|
|
16155
16163
|
InputLabel: et,
|
|
16156
|
-
Modal:
|
|
16157
|
-
MultiCheckboxes:
|
|
16164
|
+
Modal: Mg,
|
|
16165
|
+
MultiCheckboxes: ux,
|
|
16158
16166
|
NumberInput: wd,
|
|
16159
16167
|
Paginator: ud,
|
|
16160
16168
|
Popover: ko,
|
|
16161
|
-
PopoverContent:
|
|
16169
|
+
PopoverContent: $b,
|
|
16162
16170
|
PopoverPosition: ko,
|
|
16163
|
-
ProgressCircles:
|
|
16164
|
-
ProgressCirclesLabeled:
|
|
16165
|
-
Radio:
|
|
16166
|
-
RadioCards:
|
|
16171
|
+
ProgressCircles: Fw,
|
|
16172
|
+
ProgressCirclesLabeled: Kw,
|
|
16173
|
+
Radio: c2,
|
|
16174
|
+
RadioCards: y2,
|
|
16167
16175
|
RangeCalendar: sd,
|
|
16168
16176
|
Select: Es,
|
|
16169
|
-
SidebarLayout:
|
|
16170
|
-
Slideover:
|
|
16177
|
+
SidebarLayout: yb,
|
|
16178
|
+
Slideover: Pb,
|
|
16171
16179
|
Spinner: Ds,
|
|
16172
|
-
StackedLayout:
|
|
16173
|
-
Steps:
|
|
16180
|
+
StackedLayout: a1,
|
|
16181
|
+
Steps: k1,
|
|
16174
16182
|
TablePaginator: fd,
|
|
16175
|
-
Tabs:
|
|
16176
|
-
TextArea:
|
|
16177
|
-
Toggle:
|
|
16178
|
-
Tooltip:
|
|
16183
|
+
Tabs: Dw,
|
|
16184
|
+
TextArea: b2,
|
|
16185
|
+
Toggle: Pw,
|
|
16186
|
+
Tooltip: Mb,
|
|
16179
16187
|
XYSpinner: dd,
|
|
16180
|
-
YesOrNoRadio:
|
|
16181
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
16182
|
-
Object.entries(
|
|
16188
|
+
YesOrNoRadio: S2
|
|
16189
|
+
}, Symbol.toStringTag, { value: "Module" })), p$ = function(t) {
|
|
16190
|
+
Object.entries(D2).forEach(([n, r]) => {
|
|
16183
16191
|
t.component(n, r);
|
|
16184
16192
|
});
|
|
16185
16193
|
};
|
|
@@ -16187,83 +16195,84 @@ export {
|
|
|
16187
16195
|
zr as ActionsButtonGroup,
|
|
16188
16196
|
is as ActionsDropdown,
|
|
16189
16197
|
Bi as BaseAPI,
|
|
16190
|
-
|
|
16198
|
+
Yw as BaseInput,
|
|
16191
16199
|
om as Cards,
|
|
16192
|
-
|
|
16200
|
+
Xw as Checkbox,
|
|
16193
16201
|
cm as ContentModal,
|
|
16194
|
-
|
|
16202
|
+
b1 as DataTable,
|
|
16195
16203
|
ld as DateFilter,
|
|
16196
16204
|
Cs as DateRangePicker,
|
|
16197
|
-
|
|
16198
|
-
|
|
16199
|
-
|
|
16200
|
-
|
|
16205
|
+
tx as DateTime,
|
|
16206
|
+
ng as DetailList,
|
|
16207
|
+
ag as DownloadCell,
|
|
16208
|
+
cw as DynamicTable,
|
|
16201
16209
|
gr as FieldsetLegend,
|
|
16202
16210
|
Ss as Flash,
|
|
16203
|
-
|
|
16211
|
+
Sg as InlineAlert,
|
|
16204
16212
|
bt as InputError,
|
|
16205
16213
|
qe as InputHelp,
|
|
16206
16214
|
et as InputLabel,
|
|
16207
|
-
|
|
16208
|
-
|
|
16215
|
+
Mg as Modal,
|
|
16216
|
+
ux as MultiCheckboxes,
|
|
16209
16217
|
wd as NumberInput,
|
|
16210
16218
|
ud as Paginator,
|
|
16211
16219
|
ko as Popover,
|
|
16212
|
-
|
|
16220
|
+
$b as PopoverContent,
|
|
16213
16221
|
ko as PopoverPosition,
|
|
16214
|
-
|
|
16215
|
-
|
|
16216
|
-
|
|
16217
|
-
|
|
16222
|
+
Fw as ProgressCircles,
|
|
16223
|
+
Kw as ProgressCirclesLabeled,
|
|
16224
|
+
c2 as Radio,
|
|
16225
|
+
y2 as RadioCards,
|
|
16218
16226
|
sd as RangeCalendar,
|
|
16219
16227
|
Es as Select,
|
|
16220
|
-
|
|
16221
|
-
|
|
16228
|
+
yb as SidebarLayout,
|
|
16229
|
+
Pb as Slideover,
|
|
16222
16230
|
Ds as Spinner,
|
|
16223
|
-
|
|
16224
|
-
|
|
16231
|
+
a1 as StackedLayout,
|
|
16232
|
+
k1 as Steps,
|
|
16225
16233
|
fd as TablePaginator,
|
|
16226
|
-
|
|
16227
|
-
|
|
16228
|
-
|
|
16229
|
-
|
|
16234
|
+
Dw as Tabs,
|
|
16235
|
+
b2 as TextArea,
|
|
16236
|
+
Pw as Toggle,
|
|
16237
|
+
Mb as Tooltip,
|
|
16230
16238
|
dd as XYSpinner,
|
|
16231
|
-
|
|
16239
|
+
S2 as YesOrNoRadio,
|
|
16232
16240
|
Xe as calendarDateToUnix,
|
|
16233
|
-
|
|
16234
|
-
|
|
16235
|
-
|
|
16236
|
-
|
|
16237
|
-
|
|
16238
|
-
|
|
16239
|
-
|
|
16241
|
+
l$ as dateRangeActions,
|
|
16242
|
+
Oy as dateRangeClear,
|
|
16243
|
+
Cy as dateRangeLast30Days,
|
|
16244
|
+
_y as dateRangeLast7Days,
|
|
16245
|
+
Sy as dateRangeLastMonth,
|
|
16246
|
+
Ay as dateRangeLastYear,
|
|
16247
|
+
Ey as dateRangeThisMonth,
|
|
16248
|
+
Dy as dateRangeThisYear,
|
|
16240
16249
|
Vr as debounceFn,
|
|
16241
|
-
|
|
16242
|
-
|
|
16250
|
+
X2 as debounceLeading,
|
|
16251
|
+
p$ as default,
|
|
16243
16252
|
ip as emailPattern,
|
|
16244
|
-
|
|
16253
|
+
r$ as isActionItemButton,
|
|
16245
16254
|
Fi as isActionItemLink,
|
|
16246
16255
|
lp as isHttpCancel,
|
|
16247
16256
|
sp as isHttpError,
|
|
16248
16257
|
Qs as looseToNumber,
|
|
16249
|
-
|
|
16258
|
+
t$ as numericInputTypes,
|
|
16250
16259
|
up as phonePattern,
|
|
16251
|
-
|
|
16252
|
-
|
|
16253
|
-
|
|
16260
|
+
Z2 as setBaseAPIDefaults,
|
|
16261
|
+
e$ as textInputTypes,
|
|
16262
|
+
n$ as throttleFn,
|
|
16254
16263
|
dp as urlPattern,
|
|
16255
16264
|
id as useAppFlasher,
|
|
16256
16265
|
wn as useAppFlashes,
|
|
16257
16266
|
Js as useAppSpinner,
|
|
16258
16267
|
yr as useBaseAPI,
|
|
16259
|
-
|
|
16260
|
-
|
|
16261
|
-
|
|
16262
|
-
|
|
16263
|
-
|
|
16264
|
-
|
|
16268
|
+
u$ as useBaseAPIDelete,
|
|
16269
|
+
i$ as useBaseAPIGet,
|
|
16270
|
+
d$ as useBaseAPIPatch,
|
|
16271
|
+
c$ as useBaseAPIPost,
|
|
16272
|
+
f$ as useBaseAPIPut,
|
|
16273
|
+
Yy as useFlashes,
|
|
16265
16274
|
yt as useInputField,
|
|
16266
16275
|
ap as useSpinnerDisplay,
|
|
16267
|
-
|
|
16268
|
-
|
|
16276
|
+
a$ as useTabHistory,
|
|
16277
|
+
o$ as useUrlSearchParams
|
|
16269
16278
|
};
|