sprintify-ui 0.0.169 → 0.0.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sprintify-ui.es.js +99 -107
- package/dist/types/src/components/BaseAddressForm.vue.d.ts +2 -2
- package/dist/types/src/components/BaseDisplayRelativeTime.vue.d.ts +1 -1
- package/dist/types/src/components/BaseFieldI18n.vue.d.ts +4 -4
- package/dist/types/src/components/BaseRadioGroup.vue.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/BaseAddressForm.vue +2 -3
- package/src/components/BaseInputLabel.vue +4 -3
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import su from "axios";
|
|
2
|
-
import { defineComponent as be, inject as it, resolveComponent as st, openBlock as R, createBlock as Te, withCtx as ge, createElementVNode as q, normalizeClass as de, withModifiers as an, renderSlot as Ae, createElementBlock as X, createCommentVNode as ke, toDisplayString as Se, createVNode as he, Transition as Pt, ref as le, computed as Y, provide as Ge, readonly as _o, unref as I, Fragment as Ve, createTextVNode as en, withDirectives as pt, isRef as Sn, vModelText as Nr, mergeProps as Yt, onMounted as
|
|
2
|
+
import { defineComponent as be, inject as it, resolveComponent as st, openBlock as R, createBlock as Te, withCtx as ge, createElementVNode as q, normalizeClass as de, withModifiers as an, renderSlot as Ae, createElementBlock as X, createCommentVNode as ke, toDisplayString as Se, createVNode as he, Transition as Pt, ref as le, computed as Y, provide as Ge, readonly as _o, unref as I, Fragment as Ve, createTextVNode as en, withDirectives as pt, isRef as Sn, vModelText as Nr, mergeProps as Yt, onMounted as et, watchEffect as zt, renderList as Qe, nextTick as ct, h as ht, watch as Ze, onBeforeUnmount as Dn, Teleport as ar, TransitionGroup as kl, normalizeStyle as ft, vModelSelect as Ar, normalizeProps as Tt, guardReactiveProps as Mt, vShow as cn, resolveDynamicComponent as Hn, cloneVNode as uu, onUnmounted as bn, reactive as cu, withKeys as Da, useSlots as fu, createStaticVNode as _l, getCurrentInstance as du, pushScopeId as hu, popScopeId as pu, createSlots as mu } from "vue";
|
|
3
3
|
import { isNumber as Bo, round as Xn, get as Nn, isEqual as Mi, isArray as mt, cloneDeep as St, isObject as Dr, isString as No, throttle as Do, debounce as En, truncate as vu, trim as ta, padStart as po, range as Tn, merge as La, set as hi, isPlainObject as gu, capitalize as yu, uniqueId as bu } from "lodash";
|
|
4
4
|
import Pa from "qs";
|
|
5
5
|
import { useI18n as fn, createI18n as wu } from "vue-i18n";
|
|
@@ -159,7 +159,6 @@ function Lu(t, i) {
|
|
|
159
159
|
]);
|
|
160
160
|
}
|
|
161
161
|
const Pu = /* @__PURE__ */ $t(Nu, [["render", Lu]]), $u = be({
|
|
162
|
-
components: { BaseIcon: et },
|
|
163
162
|
props: {
|
|
164
163
|
required: {
|
|
165
164
|
default: !1,
|
|
@@ -184,28 +183,22 @@ const Pu = /* @__PURE__ */ $t(Nu, [["render", Lu]]), $u = be({
|
|
|
184
183
|
};
|
|
185
184
|
}
|
|
186
185
|
}), ju = {
|
|
187
|
-
key:
|
|
186
|
+
key: 0,
|
|
188
187
|
class: "ml-0.5 text-red-600"
|
|
189
188
|
}, qu = {
|
|
190
189
|
key: 0,
|
|
191
190
|
class: "pointer-events-none absolute bottom-[100%] left-0 z-[1] w-auto max-w-[300px]"
|
|
192
191
|
}, Ru = { class: "relative bottom-1 rounded-md bg-slate-700 py-1 px-2 text-xs leading-tight text-white" };
|
|
193
192
|
function Fu(t, i, e, r, o, a) {
|
|
194
|
-
const l = st("BaseIcon");
|
|
195
193
|
return R(), X("label", {
|
|
196
194
|
class: de(t.classes)
|
|
197
195
|
}, [
|
|
198
196
|
q("div", {
|
|
199
197
|
class: de(["relative", [t.help ? "cursor-help" : "cursor-default"]]),
|
|
200
|
-
onMouseenter: i[0] || (i[0] = (
|
|
201
|
-
onMouseleave: i[1] || (i[1] = (
|
|
198
|
+
onMouseenter: i[0] || (i[0] = (l) => t.showTooltip = !0),
|
|
199
|
+
onMouseleave: i[1] || (i[1] = (l) => t.showTooltip = !1)
|
|
202
200
|
}, [
|
|
203
201
|
q("span", null, Se(t.label), 1),
|
|
204
|
-
t.help ? (R(), Te(l, {
|
|
205
|
-
key: 0,
|
|
206
|
-
class: "relative bottom-px ml-1 inline h-4 w-4 text-slate-400",
|
|
207
|
-
icon: "heroicons:question-mark-circle-20-solid"
|
|
208
|
-
})) : ke("", !0),
|
|
209
202
|
t.required ? (R(), X("span", ju, " *")) : ke("", !0),
|
|
210
203
|
he(Pt, {
|
|
211
204
|
"enter-active-class": "transition duration-200 ease-out",
|
|
@@ -819,7 +812,7 @@ const Ra = /* @__PURE__ */ new WeakMap(), Fa = (t) => {
|
|
|
819
812
|
key: 0,
|
|
820
813
|
class: de(["flex shrink-0 items-center justify-center rounded-l border-r px-3 transition-colors", [I(d), I(w), I(b)]])
|
|
821
814
|
}, [
|
|
822
|
-
he(I(
|
|
815
|
+
he(I(nt), { icon: t.iconLeft }, null, 8, ["icon"])
|
|
823
816
|
], 2)) : ke("", !0),
|
|
824
817
|
t.prefix ? (R(), X("div", {
|
|
825
818
|
key: 1,
|
|
@@ -880,7 +873,7 @@ const Ra = /* @__PURE__ */ new WeakMap(), Fa = (t) => {
|
|
|
880
873
|
key: 6,
|
|
881
874
|
class: de(["flex shrink-0 items-center justify-center rounded-r border-l px-3 transition-colors", [I(d), I(w), I(b)]])
|
|
882
875
|
}, [
|
|
883
|
-
he(I(
|
|
876
|
+
he(I(nt), { icon: t.iconRight }, null, 8, ["icon"])
|
|
884
877
|
], 2)) : ke("", !0)
|
|
885
878
|
], 2));
|
|
886
879
|
}
|
|
@@ -942,7 +935,7 @@ const Ra = /* @__PURE__ */ new WeakMap(), Fa = (t) => {
|
|
|
942
935
|
f.value = d();
|
|
943
936
|
},
|
|
944
937
|
{ attributes: !1, childList: !0 }
|
|
945
|
-
),
|
|
938
|
+
), et(() => {
|
|
946
939
|
f.value = d();
|
|
947
940
|
});
|
|
948
941
|
function d() {
|
|
@@ -1027,7 +1020,7 @@ const Ra = /* @__PURE__ */ new WeakMap(), Fa = (t) => {
|
|
|
1027
1020
|
const d = St(e.modelValue ?? {});
|
|
1028
1021
|
return d.address_1 = d.address_1 ?? "", d.address_2 = d.address_2 ?? "", d.city = d.city ?? "", d.postal_code = d.postal_code ?? "", d.country = d.country ?? "", d.region = d.region ?? "", d;
|
|
1029
1022
|
}
|
|
1030
|
-
), o = Y(() => e.countries && mt(e.countries) && e.countries.length ? e.countries :
|
|
1023
|
+
), o = Y(() => e.countries && mt(e.countries) && e.countries.length ? e.countries : tt.countries), a = Y(() => e.regions && mt(e.regions) && e.regions.length ? e.regions : tt.regions), l = Y(() => a.value.filter(
|
|
1031
1024
|
(d) => d.country_id == r.value.country
|
|
1032
1025
|
)), c = Y(() => e.prefix ? e.prefix + "." : "");
|
|
1033
1026
|
function u(d, w) {
|
|
@@ -1041,7 +1034,7 @@ const Ra = /* @__PURE__ */ new WeakMap(), Fa = (t) => {
|
|
|
1041
1034
|
}
|
|
1042
1035
|
);
|
|
1043
1036
|
let h = null;
|
|
1044
|
-
|
|
1037
|
+
et(() => {
|
|
1045
1038
|
window.google && f.value && (h = new window.google.maps.places.Autocomplete(
|
|
1046
1039
|
f.value,
|
|
1047
1040
|
{
|
|
@@ -1107,6 +1100,7 @@ const Ra = /* @__PURE__ */ new WeakMap(), Fa = (t) => {
|
|
|
1107
1100
|
placeholder: d.$t("sui.address_1_placeholder"),
|
|
1108
1101
|
class: "w-full",
|
|
1109
1102
|
"prevent-submit": "",
|
|
1103
|
+
name: "address_search_field",
|
|
1110
1104
|
autocomplete: !1,
|
|
1111
1105
|
required: !1,
|
|
1112
1106
|
"onUpdate:modelValue": w[0] || (w[0] = (b) => u("address_1", b))
|
|
@@ -1181,22 +1175,20 @@ const Ra = /* @__PURE__ */ new WeakMap(), Fa = (t) => {
|
|
|
1181
1175
|
}, 8, ["label", "name"]),
|
|
1182
1176
|
he(Mn, {
|
|
1183
1177
|
label: d.$t("sui.region"),
|
|
1184
|
-
name: `${I(c)}
|
|
1178
|
+
name: `${I(c)}region`,
|
|
1185
1179
|
required: "",
|
|
1186
1180
|
class: "mb-4 flex-1"
|
|
1187
1181
|
}, {
|
|
1188
1182
|
default: ge(() => [
|
|
1189
1183
|
he(Ii, {
|
|
1190
1184
|
"model-value": I(r).region ?? "",
|
|
1191
|
-
label: d.$t("sui.region"),
|
|
1192
|
-
name: `${I(c)}region`,
|
|
1193
1185
|
class: "w-full",
|
|
1194
1186
|
required: "",
|
|
1195
1187
|
options: I(l),
|
|
1196
1188
|
"label-key": "name",
|
|
1197
1189
|
"value-key": "id",
|
|
1198
1190
|
"onUpdate:modelValue": w[5] || (w[5] = (b) => u("region", b))
|
|
1199
|
-
}, null, 8, ["model-value", "
|
|
1191
|
+
}, null, 8, ["model-value", "options"])
|
|
1200
1192
|
]),
|
|
1201
1193
|
_: 1
|
|
1202
1194
|
}, 8, ["label", "name"])
|
|
@@ -2314,7 +2306,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
2314
2306
|
const uf = {
|
|
2315
2307
|
...Po,
|
|
2316
2308
|
body: ""
|
|
2317
|
-
},
|
|
2309
|
+
}, nt = be({
|
|
2318
2310
|
inheritAttrs: !1,
|
|
2319
2311
|
data() {
|
|
2320
2312
|
return {
|
|
@@ -2401,7 +2393,7 @@ const uf = {
|
|
|
2401
2393
|
emits: ["cancel", "confirm"],
|
|
2402
2394
|
setup(t) {
|
|
2403
2395
|
const i = le(null);
|
|
2404
|
-
return
|
|
2396
|
+
return et(() => {
|
|
2405
2397
|
i.value && i.value.focus();
|
|
2406
2398
|
}), (e, r) => (R(), X("div", cf, [
|
|
2407
2399
|
q("div", ff, [
|
|
@@ -2413,19 +2405,19 @@ const uf = {
|
|
|
2413
2405
|
"bg-green-100": t.color == "success"
|
|
2414
2406
|
}])
|
|
2415
2407
|
}, [
|
|
2416
|
-
t.color == "danger" ? (R(), Te(I(
|
|
2408
|
+
t.color == "danger" ? (R(), Te(I(nt), {
|
|
2417
2409
|
key: 0,
|
|
2418
2410
|
class: "h-6 w-6 text-red-600",
|
|
2419
2411
|
icon: "heroicons:exclamation-triangle-20-solid"
|
|
2420
|
-
})) : t.color == "warning" ? (R(), Te(I(
|
|
2412
|
+
})) : t.color == "warning" ? (R(), Te(I(nt), {
|
|
2421
2413
|
key: 1,
|
|
2422
2414
|
class: "h-6 w-6 text-yellow-600",
|
|
2423
2415
|
icon: "heroicons:exclamation-triangle-20-solid"
|
|
2424
|
-
})) : t.color == "success" ? (R(), Te(I(
|
|
2416
|
+
})) : t.color == "success" ? (R(), Te(I(nt), {
|
|
2425
2417
|
key: 2,
|
|
2426
2418
|
class: "h-6 w-6 text-green-600",
|
|
2427
2419
|
icon: "heroicons:check-circle-20-solid"
|
|
2428
|
-
})) : (R(), Te(I(
|
|
2420
|
+
})) : (R(), Te(I(nt), {
|
|
2429
2421
|
key: 3,
|
|
2430
2422
|
class: "h-6 w-6 text-primary-600",
|
|
2431
2423
|
icon: "heroicons:information-circle-20-solid"
|
|
@@ -2473,8 +2465,8 @@ const uf = {
|
|
|
2473
2465
|
color: t.color ?? "info",
|
|
2474
2466
|
title: t.title,
|
|
2475
2467
|
message: t.message,
|
|
2476
|
-
confirmText: t.confirmText ??
|
|
2477
|
-
cancelText: t.cancelText ??
|
|
2468
|
+
confirmText: t.confirmText ?? tt.i18n.global.t("sui.confirm"),
|
|
2469
|
+
cancelText: t.cancelText ?? tt.i18n.global.t("sui.cancel"),
|
|
2478
2470
|
closeOnOutsideClick: t.closeOnOutsideClick ?? !0,
|
|
2479
2471
|
onConfirm: t.onConfirm ?? function() {
|
|
2480
2472
|
},
|
|
@@ -3322,7 +3314,7 @@ const Vl = /* @__PURE__ */ $t(Bf, [["render", Pf]]), $f = { class: "relative w-f
|
|
|
3322
3314
|
}
|
|
3323
3315
|
}
|
|
3324
3316
|
}
|
|
3325
|
-
|
|
3317
|
+
et(() => {
|
|
3326
3318
|
_u(
|
|
3327
3319
|
o.value,
|
|
3328
3320
|
() => {
|
|
@@ -3414,7 +3406,7 @@ const Vl = /* @__PURE__ */ $t(Bf, [["render", Pf]]), $f = { class: "relative w-f
|
|
|
3414
3406
|
}, [
|
|
3415
3407
|
q("div", Ff, Se(m.label), 1),
|
|
3416
3408
|
q("div", zf, [
|
|
3417
|
-
p(m) ? (R(), Te(I(
|
|
3409
|
+
p(m) ? (R(), Te(I(nt), {
|
|
3418
3410
|
key: 0,
|
|
3419
3411
|
icon: "heroicons:check-20-solid",
|
|
3420
3412
|
class: de(I(g))
|
|
@@ -3715,7 +3707,7 @@ const Vl = /* @__PURE__ */ $t(Bf, [["render", Pf]]), $f = { class: "relative w-f
|
|
|
3715
3707
|
q("div", {
|
|
3716
3708
|
class: de(["pointer-events-none absolute top-0 left-0 flex h-full items-center justify-center", [I(ce)]])
|
|
3717
3709
|
}, [
|
|
3718
|
-
he(I(
|
|
3710
|
+
he(I(nt), {
|
|
3719
3711
|
class: de(["text-slate-400", [I(Z)]]),
|
|
3720
3712
|
icon: "heroicons:magnifying-glass-solid"
|
|
3721
3713
|
}, null, 8, ["class"])
|
|
@@ -3728,7 +3720,7 @@ const Vl = /* @__PURE__ */ $t(Bf, [["render", Pf]]), $f = { class: "relative w-f
|
|
|
3728
3720
|
class: "group flex h-full items-center rounded p-1.5 enabled:hover:bg-slate-100",
|
|
3729
3721
|
onClick: P[1] || (P[1] = (D) => S())
|
|
3730
3722
|
}, [
|
|
3731
|
-
he(I(
|
|
3723
|
+
he(I(nt), {
|
|
3732
3724
|
icon: "heroicons:x-mark",
|
|
3733
3725
|
class: de(["text-slate-500 group-hover:text-slate-700", [I(Z)]])
|
|
3734
3726
|
}, null, 8, ["class"])
|
|
@@ -3898,7 +3890,7 @@ const nd = {
|
|
|
3898
3890
|
}
|
|
3899
3891
|
);
|
|
3900
3892
|
function n() {
|
|
3901
|
-
a.value || (a.value = !0, o.value = !0,
|
|
3893
|
+
a.value || (a.value = !0, o.value = !0, tt.http.get(r.url, {
|
|
3902
3894
|
params: {
|
|
3903
3895
|
[r.queryKey]: c.value,
|
|
3904
3896
|
page: u.value
|
|
@@ -4819,7 +4811,7 @@ const Ad = /* @__PURE__ */ be({
|
|
|
4819
4811
|
class: de(["inline-flex items-center rounded-full font-medium", [I(r)]]),
|
|
4820
4812
|
style: ft(I(e))
|
|
4821
4813
|
}, [
|
|
4822
|
-
t.icon ? (R(), Te(I(
|
|
4814
|
+
t.icon ? (R(), Te(I(nt), {
|
|
4823
4815
|
key: 0,
|
|
4824
4816
|
icon: t.icon,
|
|
4825
4817
|
class: de(I(o))
|
|
@@ -4909,7 +4901,7 @@ const Ad = /* @__PURE__ */ be({
|
|
|
4909
4901
|
},
|
|
4910
4902
|
emits: ["update:modelValue"],
|
|
4911
4903
|
setup(t, { expose: i, emit: e }) {
|
|
4912
|
-
const r = t, o =
|
|
4904
|
+
const r = t, o = tt.http, a = le(null), l = le(r.currentModel);
|
|
4913
4905
|
Ze(
|
|
4914
4906
|
() => r.currentModel,
|
|
4915
4907
|
(u, p) => {
|
|
@@ -5254,7 +5246,7 @@ const Hd = /* @__PURE__ */ $t(Rd, [["render", Vd]]), Kd = ["type", "disabled", "
|
|
|
5254
5246
|
},
|
|
5255
5247
|
setup(t) {
|
|
5256
5248
|
const i = le(1), e = le(0), r = le(null);
|
|
5257
|
-
|
|
5249
|
+
et(() => {
|
|
5258
5250
|
window.addEventListener("resize", o), a();
|
|
5259
5251
|
}), Dn(() => {
|
|
5260
5252
|
window.removeEventListener("resize", o);
|
|
@@ -6637,7 +6629,7 @@ function al(t, i) {
|
|
|
6637
6629
|
}
|
|
6638
6630
|
function os(t, i) {
|
|
6639
6631
|
let e = le(al(t.value.type, t.value.as));
|
|
6640
|
-
return
|
|
6632
|
+
return et(() => {
|
|
6641
6633
|
e.value = al(t.value.type, t.value.as);
|
|
6642
6634
|
}), zt(() => {
|
|
6643
6635
|
var r;
|
|
@@ -6885,7 +6877,7 @@ function Ah({ ownerDocument: t }, i) {
|
|
|
6885
6877
|
function o() {
|
|
6886
6878
|
!e.value || (Un(e.value), e.value = null);
|
|
6887
6879
|
}
|
|
6888
|
-
|
|
6880
|
+
et(() => {
|
|
6889
6881
|
Ze(i, (a, l) => {
|
|
6890
6882
|
a !== l && (a ? r() : o());
|
|
6891
6883
|
}, { immediate: !0 });
|
|
@@ -6893,7 +6885,7 @@ function Ah({ ownerDocument: t }, i) {
|
|
|
6893
6885
|
}
|
|
6894
6886
|
function Ch({ ownerDocument: t, container: i, initialFocus: e }, r) {
|
|
6895
6887
|
let o = le(null), a = le(!1);
|
|
6896
|
-
return
|
|
6888
|
+
return et(() => a.value = !0), bn(() => a.value = !1), et(() => {
|
|
6897
6889
|
Ze([i, e, r], (l, c) => {
|
|
6898
6890
|
if (l.every((p, f) => (c == null ? void 0 : c[f]) === p) || !r.value)
|
|
6899
6891
|
return;
|
|
@@ -7035,7 +7027,7 @@ function Lh({ type: t, enabled: i, element: e, onUpdate: r }) {
|
|
|
7035
7027
|
function a(...l) {
|
|
7036
7028
|
r == null || r(...l), o(...l);
|
|
7037
7029
|
}
|
|
7038
|
-
|
|
7030
|
+
et(() => {
|
|
7039
7031
|
Ze(i, (l, c) => {
|
|
7040
7032
|
l ? a(0, t, e) : c === !0 && a(1, t, e);
|
|
7041
7033
|
}, { immediate: !0, flush: "sync" });
|
|
@@ -7062,7 +7054,7 @@ function ys({ slot: t = le({}), name: i = "Description", props: e = {} } = {}) {
|
|
|
7062
7054
|
}
|
|
7063
7055
|
let F1 = be({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${ln()}` } }, setup(t, { attrs: i, slots: e }) {
|
|
7064
7056
|
let r = Ph();
|
|
7065
|
-
return
|
|
7057
|
+
return et(() => bn(r.register(t.id))), () => {
|
|
7066
7058
|
let { name: o = "Description", slot: a = le({}), props: l = {} } = r, { id: c, ...u } = t, p = { ...Object.entries(l).reduce((f, [h, s]) => Object.assign(f, { [h]: I(s) }), {}), id: c };
|
|
7067
7059
|
return kt({ ourProps: p, theirProps: u, slot: a.value, attrs: i, slots: e, name: o });
|
|
7068
7060
|
};
|
|
@@ -7109,7 +7101,7 @@ function Hr(t) {
|
|
|
7109
7101
|
let ao = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", qh = be({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: ao }, initialFocus: { type: Object, default: null }, id: { type: String, default: () => `headlessui-dialog-${ln()}` } }, emits: { close: (t) => !0 }, setup(t, { emit: i, attrs: e, slots: r, expose: o }) {
|
|
7110
7102
|
var a;
|
|
7111
7103
|
let l = le(!1);
|
|
7112
|
-
|
|
7104
|
+
et(() => {
|
|
7113
7105
|
l.value = !0;
|
|
7114
7106
|
});
|
|
7115
7107
|
let c = le(0), u = qo(), p = Y(() => t.open === ao && u !== null ? Xt(u.value, { [yn.Open]: !0, [yn.Closed]: !1 }) : t.open), f = le(/* @__PURE__ */ new Set()), h = le(null), s = le(null), d = Y(() => Ln(h));
|
|
@@ -7207,7 +7199,7 @@ be({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div
|
|
|
7207
7199
|
} });
|
|
7208
7200
|
be({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-backdrop-${ln()}` } }, inheritAttrs: !1, setup(t, { attrs: i, slots: e, expose: r }) {
|
|
7209
7201
|
let o = Hr("DialogBackdrop"), a = le(null);
|
|
7210
|
-
return r({ el: a, $el: a }),
|
|
7202
|
+
return r({ el: a, $el: a }), et(() => {
|
|
7211
7203
|
if (o.panelRef.value === null)
|
|
7212
7204
|
throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
7213
7205
|
}), () => {
|
|
@@ -7228,7 +7220,7 @@ let Rh = be({ name: "DialogPanel", props: { as: { type: [Object, String], defaul
|
|
|
7228
7220
|
} });
|
|
7229
7221
|
be({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: () => `headlessui-dialog-title-${ln()}` } }, setup(t, { attrs: i, slots: e }) {
|
|
7230
7222
|
let r = Hr("DialogTitle");
|
|
7231
|
-
return
|
|
7223
|
+
return et(() => {
|
|
7232
7224
|
r.setTitleId(t.id), bn(() => r.setTitleId(null));
|
|
7233
7225
|
}), () => {
|
|
7234
7226
|
let { id: o, ...a } = t;
|
|
@@ -7387,11 +7379,11 @@ let Vh = be({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
7387
7379
|
let o = Fo("MenuItem"), a = le(null);
|
|
7388
7380
|
r({ el: a, $el: a });
|
|
7389
7381
|
let l = Y(() => o.activeItemIndex.value !== null ? o.items.value[o.activeItemIndex.value].id === t.id : !1), c = Y(() => ({ disabled: t.disabled, textValue: "", domRef: a }));
|
|
7390
|
-
|
|
7382
|
+
et(() => {
|
|
7391
7383
|
var w, b;
|
|
7392
7384
|
let v = (b = (w = at(a)) == null ? void 0 : w.textContent) == null ? void 0 : b.toLowerCase().trim();
|
|
7393
7385
|
v !== void 0 && (c.value.textValue = v);
|
|
7394
|
-
}),
|
|
7386
|
+
}), et(() => o.registerItem(t.id, c)), bn(() => o.unregisterItem(t.id)), zt(() => {
|
|
7395
7387
|
o.menuState.value === 0 && (!l.value || o.activationTrigger.value !== 0 && ct(() => {
|
|
7396
7388
|
var w, b;
|
|
7397
7389
|
return (b = (w = at(a)) == null ? void 0 : w.scrollIntoView) == null ? void 0 : b.call(w, { block: "nearest" });
|
|
@@ -7442,7 +7434,7 @@ function Wh({ slot: t = {}, name: i = "Label", props: e = {} } = {}) {
|
|
|
7442
7434
|
}
|
|
7443
7435
|
let Yh = be({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: () => `headlessui-label-${ln()}` } }, setup(t, { slots: i, attrs: e }) {
|
|
7444
7436
|
let r = ks();
|
|
7445
|
-
return
|
|
7437
|
+
return et(() => bn(r.register(t.id))), () => {
|
|
7446
7438
|
let { name: o = "Label", slot: a = {}, props: l = {} } = r, { id: c, passive: u, ...p } = t, f = { ...Object.entries(l).reduce((h, [s, d]) => Object.assign(h, { [s]: I(d) }), {}), id: c };
|
|
7447
7439
|
return u && (delete f.onClick, delete p.onClick), kt({ ourProps: f, theirProps: p, slot: a, attrs: e, slots: i, name: o });
|
|
7448
7440
|
};
|
|
@@ -7471,7 +7463,7 @@ let Yh = be({ name: "Label", props: { as: { type: [Object, String], default: "la
|
|
|
7471
7463
|
var v, g;
|
|
7472
7464
|
return (g = (v = at(f)) == null ? void 0 : v.closest) == null ? void 0 : g.call(v, "form");
|
|
7473
7465
|
});
|
|
7474
|
-
return
|
|
7466
|
+
return et(() => {
|
|
7475
7467
|
Ze([b], () => {
|
|
7476
7468
|
if (!b.value || t.defaultChecked === void 0)
|
|
7477
7469
|
return;
|
|
@@ -7545,7 +7537,7 @@ function zo(t) {
|
|
|
7545
7537
|
}
|
|
7546
7538
|
function xs(t) {
|
|
7547
7539
|
let i = le([]), e = le(!1);
|
|
7548
|
-
|
|
7540
|
+
et(() => e.value = !0), bn(() => e.value = !1);
|
|
7549
7541
|
function r(a, l = Bn.Hidden) {
|
|
7550
7542
|
let c = i.value.findIndex(({ id: u }) => u === a);
|
|
7551
7543
|
c !== -1 && (Xt(l, { [Bn.Unmount]() {
|
|
@@ -7568,7 +7560,7 @@ let Ss = ir.RenderStrategy, bo = be({ props: { as: { type: [Object, String], def
|
|
|
7568
7560
|
let { show: u, appear: p } = np(), { register: f, unregister: h } = rp(), s = { value: !0 }, d = ln(), w = { value: !1 }, b = xs(() => {
|
|
7569
7561
|
w.value || (l.value = "hidden", h(d), i("afterLeave"));
|
|
7570
7562
|
});
|
|
7571
|
-
|
|
7563
|
+
et(() => {
|
|
7572
7564
|
let _ = f(d);
|
|
7573
7565
|
bn(_);
|
|
7574
7566
|
}), zt(() => {
|
|
@@ -7581,7 +7573,7 @@ let Ss = ir.RenderStrategy, bo = be({ props: { as: { type: [Object, String], def
|
|
|
7581
7573
|
}
|
|
7582
7574
|
});
|
|
7583
7575
|
let v = Fn(t.enter), g = Fn(t.enterFrom), n = Fn(t.enterTo), k = Fn(t.entered), m = Fn(t.leave), S = Fn(t.leaveFrom), A = Fn(t.leaveTo);
|
|
7584
|
-
|
|
7576
|
+
et(() => {
|
|
7585
7577
|
zt(() => {
|
|
7586
7578
|
if (l.value === "visible") {
|
|
7587
7579
|
let _ = at(a);
|
|
@@ -7598,7 +7590,7 @@ let Ss = ir.RenderStrategy, bo = be({ props: { as: { type: [Object, String], def
|
|
|
7598
7590
|
w.value = !1, O === Hi.Finished && (zo(b) || (l.value = "hidden", h(d), i("afterLeave")));
|
|
7599
7591
|
})));
|
|
7600
7592
|
}
|
|
7601
|
-
return
|
|
7593
|
+
return et(() => {
|
|
7602
7594
|
Ze([u], (_, x, y) => {
|
|
7603
7595
|
E(y), s.value = !1;
|
|
7604
7596
|
}, { immediate: !0 });
|
|
@@ -7615,7 +7607,7 @@ let Ss = ir.RenderStrategy, bo = be({ props: { as: { type: [Object, String], def
|
|
|
7615
7607
|
let l = le(a.value ? "visible" : "hidden"), c = xs(() => {
|
|
7616
7608
|
l.value = "hidden";
|
|
7617
7609
|
}), u = le(!0), p = { show: a, appear: Y(() => t.appear || !u.value) };
|
|
7618
|
-
return
|
|
7610
|
+
return et(() => {
|
|
7619
7611
|
zt(() => {
|
|
7620
7612
|
u.value = !1, a.value ? l.value = "visible" : zo(c) || (l.value = "hidden");
|
|
7621
7613
|
});
|
|
@@ -8011,7 +8003,7 @@ const ip = { class: "flex items-center" }, ap = {
|
|
|
8011
8003
|
});
|
|
8012
8004
|
function kp(t, i) {
|
|
8013
8005
|
let e = "";
|
|
8014
|
-
i = i ||
|
|
8006
|
+
i = i || tt.i18n.global.t("sui.and");
|
|
8015
8007
|
for (let r = 0; r < t.length; r++) {
|
|
8016
8008
|
const o = t[r];
|
|
8017
8009
|
e += o, r < t.length - 2 ? e += ", " : r == t.length - 2 && (e += " " + i + " ");
|
|
@@ -8020,11 +8012,11 @@ function kp(t, i) {
|
|
|
8020
8012
|
}
|
|
8021
8013
|
function Ea(t) {
|
|
8022
8014
|
const i = Math.floor(Math.log(t) / Math.log(1024)), e = [
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8015
|
+
tt.i18n.global.t("sui.units.b"),
|
|
8016
|
+
tt.i18n.global.t("sui.units.kb"),
|
|
8017
|
+
tt.i18n.global.t("sui.units.mb"),
|
|
8018
|
+
tt.i18n.global.t("sui.units.gb"),
|
|
8019
|
+
tt.i18n.global.t("sui.units.tb")
|
|
8028
8020
|
];
|
|
8029
8021
|
return +(t / Math.pow(1024, i)).toFixed(2) * 1 + " " + e[i];
|
|
8030
8022
|
}
|
|
@@ -8036,7 +8028,7 @@ function As(t, i) {
|
|
|
8036
8028
|
r();
|
|
8037
8029
|
},
|
|
8038
8030
|
{ immediate: !0 }
|
|
8039
|
-
),
|
|
8031
|
+
), et(() => {
|
|
8040
8032
|
e.value = !0, r();
|
|
8041
8033
|
}), Dn(() => {
|
|
8042
8034
|
a();
|
|
@@ -8253,7 +8245,7 @@ const Ap = {
|
|
|
8253
8245
|
"update:query"
|
|
8254
8246
|
],
|
|
8255
8247
|
setup(t, { expose: i }) {
|
|
8256
|
-
const e = t, r =
|
|
8248
|
+
const e = t, r = tt.http, o = le(null), a = le(null), l = Su(), c = Eu(), u = l.name;
|
|
8257
8249
|
let p = !1;
|
|
8258
8250
|
Dn(() => {
|
|
8259
8251
|
p = !0;
|
|
@@ -8274,7 +8266,7 @@ const Ap = {
|
|
|
8274
8266
|
ra(E, x, {
|
|
8275
8267
|
attributes: !1,
|
|
8276
8268
|
childList: !0
|
|
8277
|
-
}),
|
|
8269
|
+
}), et(() => {
|
|
8278
8270
|
_();
|
|
8279
8271
|
}), Ze(
|
|
8280
8272
|
() => m.value,
|
|
@@ -8300,8 +8292,8 @@ const Ap = {
|
|
|
8300
8292
|
const Me = c.resolve({
|
|
8301
8293
|
path: l.path,
|
|
8302
8294
|
params: l.params
|
|
8303
|
-
}), se =
|
|
8304
|
-
if (
|
|
8295
|
+
}), se = tt.formatQueryString(Oe), ue = Me.fullPath + "?" + se, we = K();
|
|
8296
|
+
if (tt.formatQueryString(we) != se) {
|
|
8305
8297
|
if (!h.value) {
|
|
8306
8298
|
c.replace(ue);
|
|
8307
8299
|
return;
|
|
@@ -8343,7 +8335,7 @@ const Ap = {
|
|
|
8343
8335
|
}
|
|
8344
8336
|
);
|
|
8345
8337
|
function K() {
|
|
8346
|
-
return
|
|
8338
|
+
return tt.parseQueryString(window.location.search.replace(/^(\?)/, ""));
|
|
8347
8339
|
}
|
|
8348
8340
|
function P() {
|
|
8349
8341
|
if (!e.historyMode || p || l.name != u)
|
|
@@ -8360,11 +8352,11 @@ const Ap = {
|
|
|
8360
8352
|
function G(Oe = !1, Me = !0) {
|
|
8361
8353
|
if (p)
|
|
8362
8354
|
return;
|
|
8363
|
-
const se = $.value.split(/[?#]/), ue = se[0], we = se[1] ?? null, _e =
|
|
8355
|
+
const se = $.value.split(/[?#]/), ue = se[0], we = se[1] ?? null, _e = tt.parseQueryString(we), me = La(
|
|
8364
8356
|
St(n.value),
|
|
8365
8357
|
St(e.urlQuery),
|
|
8366
8358
|
St(_e)
|
|
8367
|
-
), je =
|
|
8359
|
+
), je = tt.formatQueryString(me), Pe = ue + "?" + je;
|
|
8368
8360
|
v == Pe && !Oe || (Me && (s.value = !0), v = Pe, r.get(Pe).then((Re) => {
|
|
8369
8361
|
ie.value = Re.data, s.value = !1, d.value = !1, h.value = !0;
|
|
8370
8362
|
}).catch(() => {
|
|
@@ -8386,7 +8378,7 @@ const Ap = {
|
|
|
8386
8378
|
}
|
|
8387
8379
|
let fe = St(n.value);
|
|
8388
8380
|
const Ee = K();
|
|
8389
|
-
return fe = La(fe, Ee), B(fe),
|
|
8381
|
+
return fe = La(fe, Ee), B(fe), et(() => {
|
|
8390
8382
|
re();
|
|
8391
8383
|
}), i({
|
|
8392
8384
|
fetch: () => G(!0),
|
|
@@ -8760,7 +8752,7 @@ const Bs = /* @__PURE__ */ $t(Yp, [["render", Jp], ["__scopeId", "data-v-945515f
|
|
|
8760
8752
|
() => {
|
|
8761
8753
|
D();
|
|
8762
8754
|
}
|
|
8763
|
-
),
|
|
8755
|
+
), et(() => {
|
|
8764
8756
|
ct(() => {
|
|
8765
8757
|
D();
|
|
8766
8758
|
});
|
|
@@ -9364,7 +9356,7 @@ const Ls = /* @__PURE__ */ $t(Nm, [["render", $m]]), jm = { class: "flex justify
|
|
|
9364
9356
|
"check"
|
|
9365
9357
|
],
|
|
9366
9358
|
setup(t, { expose: i, emit: e }) {
|
|
9367
|
-
const r = t, o = fn(), a =
|
|
9359
|
+
const r = t, o = fn(), a = tt.http, l = fa(), c = sr(), u = le(null), p = le(null);
|
|
9368
9360
|
function f(y) {
|
|
9369
9361
|
e("cell-click", y);
|
|
9370
9362
|
}
|
|
@@ -11218,7 +11210,7 @@ const iv = { class: "base-date-picker relative" }, av = { class: "pointer-events
|
|
|
11218
11210
|
animate: !1,
|
|
11219
11211
|
time_24hr: !0
|
|
11220
11212
|
}));
|
|
11221
|
-
|
|
11213
|
+
et(() => {
|
|
11222
11214
|
e.modelValue !== l.value && a(l.value);
|
|
11223
11215
|
}), Ze(
|
|
11224
11216
|
() => l.value,
|
|
@@ -11243,7 +11235,7 @@ const iv = { class: "base-date-picker relative" }, av = { class: "pointer-events
|
|
|
11243
11235
|
deep: !0,
|
|
11244
11236
|
immediate: !0
|
|
11245
11237
|
}
|
|
11246
|
-
),
|
|
11238
|
+
), et(() => {
|
|
11247
11239
|
v();
|
|
11248
11240
|
}), Dn(() => {
|
|
11249
11241
|
d && d.destroy();
|
|
@@ -11280,7 +11272,7 @@ const iv = { class: "base-date-picker relative" }, av = { class: "pointer-events
|
|
|
11280
11272
|
}
|
|
11281
11273
|
return (n, k) => (R(), X("div", iv, [
|
|
11282
11274
|
q("div", av, [
|
|
11283
|
-
he(I(
|
|
11275
|
+
he(I(nt), {
|
|
11284
11276
|
class: "relative -top-px h-5 w-5 text-slate-400",
|
|
11285
11277
|
icon: "heroicons:calendar"
|
|
11286
11278
|
})
|
|
@@ -11300,7 +11292,7 @@ const iv = { class: "base-date-picker relative" }, av = { class: "pointer-events
|
|
|
11300
11292
|
class: "flex items-center rounded p-1.5 hover:bg-slate-100",
|
|
11301
11293
|
onClick: k[0] || (k[0] = (m) => g())
|
|
11302
11294
|
}, [
|
|
11303
|
-
he(I(
|
|
11295
|
+
he(I(nt), {
|
|
11304
11296
|
class: "h-5 w-5 text-slate-600",
|
|
11305
11297
|
icon: "heroicons:x-mark"
|
|
11306
11298
|
})
|
|
@@ -11506,7 +11498,7 @@ const cv = { class: "-m-0.5 flex" }, fv = { class: "w-auto p-0.5" }, dv = ["disa
|
|
|
11506
11498
|
var l;
|
|
11507
11499
|
r.value = ((l = e.value) == null ? void 0 : l.clientWidth) ?? 800;
|
|
11508
11500
|
}
|
|
11509
|
-
return
|
|
11501
|
+
return et(() => {
|
|
11510
11502
|
a();
|
|
11511
11503
|
}), rr(e, En(a, 50)), (l, c) => (R(), X("div", {
|
|
11512
11504
|
ref_key: "item",
|
|
@@ -13435,7 +13427,7 @@ const Iv = Wi, Bv = { class: "text-xs text-slate-600" }, js = /* @__PURE__ */ be
|
|
|
13435
13427
|
setup(t, { expose: i }) {
|
|
13436
13428
|
const e = t, r = le(
|
|
13437
13429
|
null
|
|
13438
|
-
), o =
|
|
13430
|
+
), o = tt.http, a = le(!1), l = le(!1), c = le(!1), u = le(""), p = le(1), f = le([]), h = le(
|
|
13439
13431
|
null
|
|
13440
13432
|
), { items: s, lastPage: d } = va(h), w = (k) => {
|
|
13441
13433
|
p.value = 1, u.value != k && (u.value = k, a.value = !0, n());
|
|
@@ -13808,7 +13800,7 @@ const Iv = Wi, Bv = { class: "text-xs text-slate-600" }, js = /* @__PURE__ */ be
|
|
|
13808
13800
|
(h) => null
|
|
13809
13801
|
);
|
|
13810
13802
|
le(["#10b981", "#06b6d4", "#a855f7"]);
|
|
13811
|
-
const l = Y(() => e.locales ? e.locales :
|
|
13803
|
+
const l = Y(() => e.locales ? e.locales : tt.locales), c = Y(() => {
|
|
13812
13804
|
let h = {};
|
|
13813
13805
|
return e.modelValue && gu(e.modelValue) && (h = e.modelValue), Object.keys(l.value).forEach((s) => {
|
|
13814
13806
|
Nn(e.modelValue, s) || (h[s] = e.defaultValue);
|
|
@@ -14068,7 +14060,7 @@ const Rs = /* @__PURE__ */ $t(Yv, [["render", Zv]]), Jv = {
|
|
|
14068
14060
|
"upload:end"
|
|
14069
14061
|
],
|
|
14070
14062
|
setup(t, { emit: i }) {
|
|
14071
|
-
const e = t, r =
|
|
14063
|
+
const e = t, r = tt.http, o = fn(), a = sr(), l = le(!1);
|
|
14072
14064
|
async function c(p) {
|
|
14073
14065
|
if (!l.value) {
|
|
14074
14066
|
if (l.value = !0, !await e.beforeUpload()) {
|
|
@@ -14097,7 +14089,7 @@ const Rs = /* @__PURE__ */ $t(Yv, [["render", Zv]]), Jv = {
|
|
|
14097
14089
|
}
|
|
14098
14090
|
const h = new FormData();
|
|
14099
14091
|
h.append("file", p), i("upload:start");
|
|
14100
|
-
const d = (await r.post(e.url ??
|
|
14092
|
+
const d = (await r.post(e.url ?? tt.upload_url, h)).data;
|
|
14101
14093
|
d.original_file = p;
|
|
14102
14094
|
const w = new FileReader();
|
|
14103
14095
|
w.onload = (b) => {
|
|
@@ -14259,7 +14251,7 @@ const ig = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
|
|
|
14259
14251
|
},
|
|
14260
14252
|
emits: ["error", "success"],
|
|
14261
14253
|
setup(t, { expose: i, emit: e }) {
|
|
14262
|
-
const r = t, o = sr(), a = fn(), l = le(null), c = le(!1), u = le(!1), p = le({}), f = Y(() => r.axiosInstance ? r.axiosInstance :
|
|
14254
|
+
const r = t, o = sr(), a = fn(), l = le(null), c = le(!1), u = le(!1), p = le({}), f = Y(() => r.axiosInstance ? r.axiosInstance : tt.http), h = Y(() => l.value), s = Y(() => Object.keys(p.value).length > 0), d = Y(() => {
|
|
14263
14255
|
if (!s.value)
|
|
14264
14256
|
return null;
|
|
14265
14257
|
const E = Object.keys(p.value);
|
|
@@ -14541,7 +14533,7 @@ const ig = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
|
|
|
14541
14533
|
k != "" && (k = "-" + k), i("update:modelValue", n + k);
|
|
14542
14534
|
});
|
|
14543
14535
|
}
|
|
14544
|
-
return
|
|
14536
|
+
return et(() => {
|
|
14545
14537
|
w();
|
|
14546
14538
|
}), (n, k) => (R(), X("div", {
|
|
14547
14539
|
class: "w-full overflow-hidden rounded border bg-white",
|
|
@@ -14586,7 +14578,7 @@ const ig = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
|
|
|
14586
14578
|
], "flex items-center justify-center rounded p-1"]),
|
|
14587
14579
|
onClick: (S) => r(m)
|
|
14588
14580
|
}, [
|
|
14589
|
-
he(I(
|
|
14581
|
+
he(I(nt), { icon: m }, null, 8, ["icon"])
|
|
14590
14582
|
], 10, hg)
|
|
14591
14583
|
]))), 128))
|
|
14592
14584
|
])
|
|
@@ -14718,15 +14710,15 @@ const ig = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
|
|
|
14718
14710
|
class: "h-full w-full bg-black object-contain object-center",
|
|
14719
14711
|
alt: I(e)
|
|
14720
14712
|
}, null, 8, gg)) : (R(), X("div", yg, [
|
|
14721
|
-
I(o) == "pdf" ? (R(), Te(I(
|
|
14713
|
+
I(o) == "pdf" ? (R(), Te(I(nt), {
|
|
14722
14714
|
key: 0,
|
|
14723
14715
|
class: "max-w-8 h-1/2 max-h-8 w-1/2 text-slate-600",
|
|
14724
14716
|
icon: "mdi:file-pdf-box"
|
|
14725
|
-
})) : I(r) == "image" ? (R(), Te(I(
|
|
14717
|
+
})) : I(r) == "image" ? (R(), Te(I(nt), {
|
|
14726
14718
|
key: 1,
|
|
14727
14719
|
class: "max-w-8 h-1/2 max-h-8 w-1/2 text-slate-600",
|
|
14728
14720
|
icon: "mdi:camera"
|
|
14729
|
-
})) : I(r) == "audio" ? (R(), Te(I(
|
|
14721
|
+
})) : I(r) == "audio" ? (R(), Te(I(nt), {
|
|
14730
14722
|
key: 2,
|
|
14731
14723
|
class: "max-w-8 h-1/2 max-h-8 w-1/2 text-slate-600",
|
|
14732
14724
|
icon: "mdi:music"
|
|
@@ -14781,7 +14773,7 @@ const ig = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
|
|
|
14781
14773
|
class: "rounded-full bg-white p-1 text-slate-400 hover:bg-slate-100",
|
|
14782
14774
|
onClick: l[0] || (l[0] = (c) => a.$emit("remove"))
|
|
14783
14775
|
}, [
|
|
14784
|
-
he(I(
|
|
14776
|
+
he(I(nt), {
|
|
14785
14777
|
icon: "heroicons:x-mark-20-solid",
|
|
14786
14778
|
class: "h-4 w-4"
|
|
14787
14779
|
})
|
|
@@ -15181,12 +15173,12 @@ const ig = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
|
|
|
15181
15173
|
onClick: l[0] || (l[0] = (c) => e())
|
|
15182
15174
|
}, [
|
|
15183
15175
|
Rg,
|
|
15184
|
-
I(i) ? (R(), Te(I(
|
|
15176
|
+
I(i) ? (R(), Te(I(nt), {
|
|
15185
15177
|
key: 1,
|
|
15186
15178
|
icon: "heroicons:x-mark",
|
|
15187
15179
|
class: "block h-6 w-6",
|
|
15188
15180
|
"aria-hidden": "true"
|
|
15189
|
-
})) : (R(), Te(I(
|
|
15181
|
+
})) : (R(), Te(I(nt), {
|
|
15190
15182
|
key: 0,
|
|
15191
15183
|
icon: "heroicons:bars-3",
|
|
15192
15184
|
class: "block h-6 w-6",
|
|
@@ -15253,7 +15245,7 @@ const ig = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
|
|
|
15253
15245
|
class: de(I(e))
|
|
15254
15246
|
}, [
|
|
15255
15247
|
q("div", Fg, [
|
|
15256
|
-
t.icon ? (R(), Te(I(
|
|
15248
|
+
t.icon ? (R(), Te(I(nt), {
|
|
15257
15249
|
key: 0,
|
|
15258
15250
|
icon: t.icon,
|
|
15259
15251
|
class: de(I(r))
|
|
@@ -15404,11 +15396,11 @@ const Qg = /* @__PURE__ */ $t(Vg, [["render", Gg]]), Zg = ["value", "type", "nam
|
|
|
15404
15396
|
disabled: t.disabled,
|
|
15405
15397
|
onClick: f[0] || (f[0] = (h) => c.value = !I(c))
|
|
15406
15398
|
}, [
|
|
15407
|
-
I(c) ? (R(), Te(I(
|
|
15399
|
+
I(c) ? (R(), Te(I(nt), {
|
|
15408
15400
|
key: 1,
|
|
15409
15401
|
icon: "heroicons:eye-20-solid",
|
|
15410
15402
|
class: "h-5 w-5"
|
|
15411
|
-
})) : (R(), Te(I(
|
|
15403
|
+
})) : (R(), Te(I(nt), {
|
|
15412
15404
|
key: 0,
|
|
15413
15405
|
icon: "heroicons:eye-slash-20-solid",
|
|
15414
15406
|
class: "h-5 w-5"
|
|
@@ -15585,7 +15577,7 @@ const ly = /* @__PURE__ */ $t(ty, [["render", ay], ["__scopeId", "data-v-e5ae83e
|
|
|
15585
15577
|
"-webkit-line-clamp": i.maxLines,
|
|
15586
15578
|
"-webkit-box-orient": "vertical"
|
|
15587
15579
|
}));
|
|
15588
|
-
|
|
15580
|
+
et(() => {
|
|
15589
15581
|
l(), ra(
|
|
15590
15582
|
e.value,
|
|
15591
15583
|
() => {
|
|
@@ -24319,7 +24311,7 @@ const yl = {
|
|
|
24319
24311
|
"ready"
|
|
24320
24312
|
],
|
|
24321
24313
|
setup: (t, i) => {
|
|
24322
|
-
|
|
24314
|
+
et(() => {
|
|
24323
24315
|
a();
|
|
24324
24316
|
}), Dn(() => {
|
|
24325
24317
|
e = null;
|
|
@@ -24581,7 +24573,7 @@ const Ny = { class: "whitespace-pre-line p-4" }, Dy = { class: "text-md font-sem
|
|
|
24581
24573
|
class: "mb-2.5 inline-flex items-center rounded p-2",
|
|
24582
24574
|
style: ft(I(e))
|
|
24583
24575
|
}, [
|
|
24584
|
-
t.icon ? (R(), Te(I(
|
|
24576
|
+
t.icon ? (R(), Te(I(nt), {
|
|
24585
24577
|
key: 0,
|
|
24586
24578
|
icon: t.icon,
|
|
24587
24579
|
class: de(I(r))
|
|
@@ -24592,7 +24584,7 @@ const Ny = { class: "whitespace-pre-line p-4" }, Dy = { class: "text-md font-sem
|
|
|
24592
24584
|
t.linkText ? (R(), X("div", Py, [
|
|
24593
24585
|
q("div", $y, Se(t.linkText), 1),
|
|
24594
24586
|
q("div", null, [
|
|
24595
|
-
he(I(
|
|
24587
|
+
he(I(nt), {
|
|
24596
24588
|
icon: "heroicons:arrow-right-20-solid",
|
|
24597
24589
|
class: "mt-px h-4 w-4"
|
|
24598
24590
|
})
|
|
@@ -24673,7 +24665,7 @@ const Hy = /* @__PURE__ */ $t(qy, [["render", Vy]]), Ky = ["href", "disabled", "
|
|
|
24673
24665
|
};
|
|
24674
24666
|
}
|
|
24675
24667
|
}), Yy = be({
|
|
24676
|
-
components: { BaseIcon:
|
|
24668
|
+
components: { BaseIcon: nt },
|
|
24677
24669
|
props: {
|
|
24678
24670
|
label: {
|
|
24679
24671
|
default: null,
|
|
@@ -25071,7 +25063,7 @@ const w0 = { class: "relative flex space-x-3" }, k0 = { class: "text-sm leading-
|
|
|
25071
25063
|
"flex h-8 w-8 items-center justify-center rounded-full ring-8 ring-white"
|
|
25072
25064
|
])
|
|
25073
25065
|
}, [
|
|
25074
|
-
he(I(
|
|
25066
|
+
he(I(nt), {
|
|
25075
25067
|
class: "h-5 w-5 text-white",
|
|
25076
25068
|
"aria-hidden": "true",
|
|
25077
25069
|
icon: t.item.icon
|
|
@@ -25227,7 +25219,7 @@ const w0 = { class: "relative flex space-x-3" }, k0 = { class: "text-sm leading-
|
|
|
25227
25219
|
class: de(I(e))
|
|
25228
25220
|
}, [
|
|
25229
25221
|
q("div", I0, [
|
|
25230
|
-
t.icon ? (R(), Te(I(
|
|
25222
|
+
t.icon ? (R(), Te(I(nt), {
|
|
25231
25223
|
key: 0,
|
|
25232
25224
|
icon: t.icon,
|
|
25233
25225
|
class: de(I(r))
|
|
@@ -25427,7 +25419,7 @@ const w0 = { class: "relative flex space-x-3" }, k0 = { class: "text-sm leading-
|
|
|
25427
25419
|
class: de(["relative flex items-center rounded-full p-1.5", [""]]),
|
|
25428
25420
|
onClick: a
|
|
25429
25421
|
}, [
|
|
25430
|
-
he(I(
|
|
25422
|
+
he(I(nt), {
|
|
25431
25423
|
icon: "heroicons:bell",
|
|
25432
25424
|
class: de(["h-6 w-6", [t.dark ? "text-slate-300" : "text-slate-600"]])
|
|
25433
25425
|
}, null, 8, ["class"]),
|
|
@@ -25446,7 +25438,7 @@ const w0 = { class: "relative flex space-x-3" }, k0 = { class: "text-sm leading-
|
|
|
25446
25438
|
}, null, 8, ["notification"]))), 128)),
|
|
25447
25439
|
t.notificationsConfig.items.length == 0 ? (R(), X("div", q0, [
|
|
25448
25440
|
q("div", R0, [
|
|
25449
|
-
he(I(
|
|
25441
|
+
he(I(nt), {
|
|
25450
25442
|
icon: "heroicons:inbox-stack",
|
|
25451
25443
|
class: "mx-auto mb-2 h-8 w-8 text-slate-400"
|
|
25452
25444
|
}),
|
|
@@ -25699,7 +25691,7 @@ const w0 = { class: "relative flex space-x-3" }, k0 = { class: "text-sm leading-
|
|
|
25699
25691
|
onClick: u[0] || (u[0] = (p) => r.value = !1)
|
|
25700
25692
|
}, [
|
|
25701
25693
|
r1,
|
|
25702
|
-
he(I(
|
|
25694
|
+
he(I(nt), {
|
|
25703
25695
|
icon: "heroicons:x-mark",
|
|
25704
25696
|
class: "h-6 w-6 text-white",
|
|
25705
25697
|
"aria-hidden": "true"
|
|
@@ -25757,7 +25749,7 @@ const w0 = { class: "relative flex space-x-3" }, k0 = { class: "text-sm leading-
|
|
|
25757
25749
|
onClick: u[2] || (u[2] = (p) => r.value = !0)
|
|
25758
25750
|
}, [
|
|
25759
25751
|
f1,
|
|
25760
|
-
he(I(
|
|
25752
|
+
he(I(nt), {
|
|
25761
25753
|
icon: "heroicons:bars-3-bottom-left",
|
|
25762
25754
|
class: "h-6 w-6",
|
|
25763
25755
|
"aria-hidden": "true"
|
|
@@ -25947,7 +25939,7 @@ const w0 = { class: "relative flex space-x-3" }, k0 = { class: "text-sm leading-
|
|
|
25947
25939
|
BaseFileUploader: zs,
|
|
25948
25940
|
BaseForm: lg,
|
|
25949
25941
|
BaseHasMany: sg,
|
|
25950
|
-
BaseIcon:
|
|
25942
|
+
BaseIcon: nt,
|
|
25951
25943
|
BaseIconPicker: pg,
|
|
25952
25944
|
BaseInput: In,
|
|
25953
25945
|
BaseInputLabel: xl,
|
|
@@ -26148,7 +26140,7 @@ Cette action est irréversible.`,
|
|
|
26148
26140
|
const C1 = 100, z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26149
26141
|
__proto__: null,
|
|
26150
26142
|
MAGIC_NUM: C1
|
|
26151
|
-
}, Symbol.toStringTag, { value: "Module" })), U1 = { en: au, fr: lu },
|
|
26143
|
+
}, Symbol.toStringTag, { value: "Module" })), U1 = { en: au, fr: lu }, tt = {
|
|
26152
26144
|
i18n: wu({
|
|
26153
26145
|
locale: "en",
|
|
26154
26146
|
fallbackLocale: "en",
|
|
@@ -26175,7 +26167,7 @@ const C1 = 100, z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
26175
26167
|
function T1(t, i) {
|
|
26176
26168
|
for (const e in wl)
|
|
26177
26169
|
t.component(e, wl[e]);
|
|
26178
|
-
i != null && i.i18n && (
|
|
26170
|
+
i != null && i.i18n && (tt.i18n = i.i18n), i != null && i.http && (tt.http = i.http), i != null && i.locales && (tt.locales = i.locales), i != null && i.upload_url && (tt.upload_url = i.upload_url), i != null && i.formatQueryString && (tt.formatQueryString = i.formatQueryString), i != null && i.parseQueryString && (tt.parseQueryString = i.parseQueryString), i != null && i.countries && (tt.countries = i.countries), i != null && i.regions && (tt.regions = i.regions);
|
|
26179
26171
|
}
|
|
26180
26172
|
const V1 = { install: T1 };
|
|
26181
26173
|
export {
|
|
@@ -26220,7 +26212,7 @@ export {
|
|
|
26220
26212
|
zs as BaseFileUploader,
|
|
26221
26213
|
lg as BaseForm,
|
|
26222
26214
|
sg as BaseHasMany,
|
|
26223
|
-
|
|
26215
|
+
nt as BaseIcon,
|
|
26224
26216
|
pg as BaseIconPicker,
|
|
26225
26217
|
In as BaseInput,
|
|
26226
26218
|
xl as BaseInputLabel,
|
|
@@ -26267,7 +26259,7 @@ export {
|
|
|
26267
26259
|
T0 as BaseTimeline,
|
|
26268
26260
|
tu as BaseTimelineItem,
|
|
26269
26261
|
z1 as MyConstants,
|
|
26270
|
-
|
|
26262
|
+
tt as config,
|
|
26271
26263
|
V1 as default,
|
|
26272
26264
|
da as disableScroll,
|
|
26273
26265
|
ha as enableScroll,
|
|
@@ -23,10 +23,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
23
23
|
}>>> & {
|
|
24
24
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
countries: Country[];
|
|
27
|
-
regions: Region[];
|
|
28
26
|
modelValue: Record<string, string | number | null | undefined>;
|
|
29
27
|
prefix: string | null;
|
|
28
|
+
countries: Country[];
|
|
29
|
+
regions: Region[];
|
|
30
30
|
}>;
|
|
31
31
|
export default _default;
|
|
32
32
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -50,8 +50,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
50
50
|
type: StringConstructor;
|
|
51
51
|
};
|
|
52
52
|
}>>, {
|
|
53
|
-
as: string;
|
|
54
53
|
showTooltip: boolean;
|
|
54
|
+
as: string;
|
|
55
55
|
tooltipPosition: "left" | "right" | "top" | "bottom";
|
|
56
56
|
tooltipSize: "small" | "large" | "medium";
|
|
57
57
|
timeZone: string;
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
};
|
|
14
14
|
component: {
|
|
15
15
|
default: string;
|
|
16
|
-
type: PropType<"
|
|
16
|
+
type: PropType<"BaseTextarea" | "BaseInput">;
|
|
17
17
|
};
|
|
18
18
|
componentProps: {
|
|
19
19
|
default: undefined;
|
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
};
|
|
53
53
|
component: {
|
|
54
54
|
default: string;
|
|
55
|
-
type: PropType<"
|
|
55
|
+
type: PropType<"BaseTextarea" | "BaseInput">;
|
|
56
56
|
};
|
|
57
57
|
componentProps: {
|
|
58
58
|
default: undefined;
|
|
@@ -84,13 +84,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
84
|
label: string;
|
|
85
85
|
required: boolean;
|
|
86
86
|
name: string;
|
|
87
|
-
locales: Locales;
|
|
88
87
|
defaultValue: string | number | boolean;
|
|
89
88
|
modelValue: {
|
|
90
89
|
[locale: string]: string | number | boolean;
|
|
91
90
|
} | null;
|
|
92
91
|
hasError: boolean;
|
|
93
|
-
component: "
|
|
92
|
+
component: "BaseTextarea" | "BaseInput";
|
|
93
|
+
locales: Locales;
|
|
94
94
|
componentProps: Record<string, any>;
|
|
95
95
|
}>;
|
|
96
96
|
export default _default;
|
|
@@ -87,11 +87,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
87
87
|
}, {
|
|
88
88
|
required: boolean;
|
|
89
89
|
name: string;
|
|
90
|
+
labelClass: string;
|
|
90
91
|
disabled: boolean;
|
|
91
92
|
modelValue: OptionValue | undefined;
|
|
92
93
|
hasError: boolean;
|
|
93
94
|
inputClass: string;
|
|
94
|
-
labelClass: string;
|
|
95
95
|
}>, {
|
|
96
96
|
option: (_: {
|
|
97
97
|
option: NormalizedOption;
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
:placeholder="$t('sui.address_1_placeholder')"
|
|
12
12
|
class="w-full"
|
|
13
13
|
prevent-submit
|
|
14
|
+
name="address_search_field"
|
|
14
15
|
:autocomplete="false"
|
|
15
16
|
:required="false"
|
|
16
17
|
@update:model-value="update('address_1', $event)"
|
|
@@ -71,14 +72,12 @@
|
|
|
71
72
|
</BaseField>
|
|
72
73
|
<BaseField
|
|
73
74
|
:label="$t('sui.region')"
|
|
74
|
-
:name="`${namePrefix}
|
|
75
|
+
:name="`${namePrefix}region`"
|
|
75
76
|
required
|
|
76
77
|
class="mb-4 flex-1"
|
|
77
78
|
>
|
|
78
79
|
<BaseSelect
|
|
79
80
|
:model-value="normalizedModelValue.region ?? ''"
|
|
80
|
-
:label="$t('sui.region')"
|
|
81
|
-
:name="`${namePrefix}region`"
|
|
82
81
|
class="w-full"
|
|
83
82
|
required
|
|
84
83
|
:options="regions"
|
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
@mouseleave="showTooltip = false"
|
|
8
8
|
>
|
|
9
9
|
<span> {{ label }}</span>
|
|
10
|
-
|
|
10
|
+
<!--
|
|
11
11
|
<BaseIcon
|
|
12
12
|
v-if="help"
|
|
13
13
|
class="relative bottom-px ml-1 inline h-4 w-4 text-slate-400"
|
|
14
14
|
icon="heroicons:question-mark-circle-20-solid"
|
|
15
15
|
/>
|
|
16
|
+
-->
|
|
16
17
|
|
|
17
18
|
<span v-if="required" class="ml-0.5 text-red-600"> *</span>
|
|
18
19
|
|
|
@@ -41,10 +42,10 @@
|
|
|
41
42
|
|
|
42
43
|
<script lang="ts">
|
|
43
44
|
import { defineComponent, PropType } from 'vue';
|
|
44
|
-
import { BaseIcon } from '.';
|
|
45
|
+
//import { BaseIcon } from '.';
|
|
45
46
|
|
|
46
47
|
export default defineComponent({
|
|
47
|
-
components: { BaseIcon },
|
|
48
|
+
//components: { BaseIcon },
|
|
48
49
|
props: {
|
|
49
50
|
required: {
|
|
50
51
|
default: false,
|