@emoo-ai/ui-vue 0.1.14 → 0.1.16
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/icons.js +2 -2
- package/dist/index.js +407 -406
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as J, openBlock as o, createElementBlock as n, createBlock as M, resolveDynamicComponent as Re, createCommentVNode as g, createElementVNode as d, toDisplayString as y, withModifiers as me, normalizeClass as O, computed as z, unref as l, mergeProps as _t, withCtx as D, createVNode as H, renderSlot as W, Fragment as L, renderList as Z, createSlots as Oe, reactive as Ot, normalizeStyle as Ce, createTextVNode as te, ref as F, getCurrentInstance as io, onBeforeUnmount as zt, nextTick as Ae, shallowRef as ro, watch as ze, useAttrs as nt, onMounted as $t, withDirectives as pt, vShow as Et, normalizeProps as bt, guardReactiveProps as gt, onUnmounted as Ut, useSlots as Ht, withKeys as Ge, h as ge, useId as uo, onScopeDispose as Lt } from "vue";
|
|
2
2
|
import { ElDrawer as Ft, ElTooltip as co, ElSelect as st, ElOption as Ye, ElCheckboxGroup as Nt, ElCheckbox as Mt, ElRadioGroup as Wt, ElRadio as qt, ElDropdown as Rt, ElButton as Tt, ElInput as xt, ElDropdownMenu as mo, vLoading as vo, ElDropdownItem as fo, ElPopover as ho, ElTag as yo, ElTable as po, ElTableColumn as et, ElMessage as bo, ElMessageBox as go } from "element-plus";
|
|
3
3
|
import { useI18n as be } from "vue-i18n";
|
|
4
|
-
import { PhX as Vt, PhSpinner as ko, PhCaretUp as jt, PhCaretDown as Bt, PhPushPinSlash as _o, PhArrowLineLeft as $o, PhArrowLineRight as wo, PhTextAlignLeft as So, PhEyeSlash as Gt, PhEye as Co, PhArrowCounterClockwise as Yt, PhMagnifyingGlass as To, PhSlidersHorizontal as Do, PhDotsThree as Xt, PhCaretRight as kt, PhArrowsVertical as Eo, PhCheck as Zt, PhCaretLeft as Jt, PhDotsSixVertical as Kt, PhCaretUpDown as xo, PhPushPin as Io, PhUploadSimple as zo,
|
|
5
|
-
import { fileIconGlyph as
|
|
4
|
+
import { PhX as Vt, PhSpinner as ko, PhCaretUp as jt, PhCaretDown as Bt, PhPushPinSlash as _o, PhArrowLineLeft as $o, PhArrowLineRight as wo, PhTextAlignLeft as So, PhEyeSlash as Gt, PhEye as Co, PhArrowCounterClockwise as Yt, PhMagnifyingGlass as To, PhSlidersHorizontal as Do, PhDotsThree as Xt, PhCaretRight as kt, PhArrowsVertical as Eo, PhCheck as Zt, PhCaretLeft as Jt, PhDotsSixVertical as Kt, PhCaretUpDown as xo, PhPushPin as Io, PhUploadSimple as zo, PhArrowRight as Mo } from "./icons.js";
|
|
5
|
+
import { fileIconGlyph as Ro, fileIconViewBox as Vo, fileIconType as Bo } from "@emoo-ai/brand/file-icons";
|
|
6
6
|
import { primaryColorVars as Po } from "@emoo-ai/brand/colors";
|
|
7
7
|
import { AVATAR_TINT_PALETTE as Xr, PRESET_COLORS as Zr, avatarTintOf as Jr, hexToRgbString as Qr, mixColor as ed, primaryColorVars as td } from "@emoo-ai/brand/colors";
|
|
8
8
|
import { PhCaretLeft as Ao, PhCaretRight as Lo, PhEyeSlash as Ko, PhEye as Oo, PhShareNetwork as Uo, PhLockSimple as tt, PhUsersThree as Ho, PhCheckSquare as Fo, PhSquare as No } from "@phosphor-icons/vue";
|
|
@@ -40,7 +40,7 @@ const Wo = { class: "emoo-action-pill__label" }, qo = {
|
|
|
40
40
|
for (const [a, i] of s)
|
|
41
41
|
t[a] = i;
|
|
42
42
|
return t;
|
|
43
|
-
},
|
|
43
|
+
}, hr = /* @__PURE__ */ se(jo, [["__scopeId", "data-v-f9e9873a"]]), Go = /* @__PURE__ */ J({
|
|
44
44
|
__name: "SheetDragHandle",
|
|
45
45
|
props: {
|
|
46
46
|
dragging: { type: Boolean },
|
|
@@ -59,7 +59,7 @@ const Wo = { class: "emoo-action-pill__label" }, qo = {
|
|
|
59
59
|
}), Qt = /* @__PURE__ */ se(Go, [["__scopeId", "data-v-ef0108a1"]]), Yo = { class: "emoo-asheet" }, Xo = {
|
|
60
60
|
key: 0,
|
|
61
61
|
class: "emoo-asheet__title"
|
|
62
|
-
}, Zo = { class: "emoo-asheet__list" }, Jo = ["disabled", "data-testid", "onClick"],
|
|
62
|
+
}, Zo = { class: "emoo-asheet__list" }, Jo = ["disabled", "data-testid", "onClick"], yr = /* @__PURE__ */ J({
|
|
63
63
|
inheritAttrs: !1,
|
|
64
64
|
__name: "EmooActionSheet",
|
|
65
65
|
props: {
|
|
@@ -208,7 +208,7 @@ const Wo = { class: "emoo-action-pill__label" }, qo = {
|
|
|
208
208
|
}), We = /* @__PURE__ */ se(la, [["__scopeId", "data-v-33f4fffc"]]);
|
|
209
209
|
function ot(e, s) {
|
|
210
210
|
const t = F([]), a = F(!1), i = F(!0), r = F(null), f = `${s}-${io()?.uid ?? Math.random().toString(36).slice(2)}`, u = `${s} ${f}`;
|
|
211
|
-
let k = 1, v = "", _, T = null, $ = 0,
|
|
211
|
+
let k = 1, v = "", _, T = null, $ = 0, A = null;
|
|
212
212
|
const I = (Q) => new Promise((he) => setTimeout(he, Q)), S = () => {
|
|
213
213
|
$++, a.value = !1, T && (clearTimeout(T), T = null);
|
|
214
214
|
}, V = async (Q, he, ye) => {
|
|
@@ -219,13 +219,13 @@ function ot(e, s) {
|
|
|
219
219
|
try {
|
|
220
220
|
const Y = await q(he, Q);
|
|
221
221
|
if (de !== $ || e() !== q) return;
|
|
222
|
-
k = Q, v = he, _ = q, t.value =
|
|
222
|
+
k = Q, v = he, _ = q, t.value = P(ye ? t.value : [], Y.items), i.value = Y.hasMore, A = null;
|
|
223
223
|
} catch (Y) {
|
|
224
|
-
de === $ && e() === q && (r.value = Y,
|
|
224
|
+
de === $ && e() === q && (r.value = Y, A = { target: Q, keyword: he, append: ye }, console.error("选择器远程选项加载失败:", Y));
|
|
225
225
|
} finally {
|
|
226
226
|
de === $ && (a.value = !1);
|
|
227
227
|
}
|
|
228
|
-
},
|
|
228
|
+
}, P = (Q, he) => {
|
|
229
229
|
const ye = new Set(Q.map((de) => de.id)), q = [...Q];
|
|
230
230
|
for (const de of he)
|
|
231
231
|
ye.has(de.id) || (ye.add(de.id), q.push(de));
|
|
@@ -238,8 +238,8 @@ function ot(e, s) {
|
|
|
238
238
|
const Q = e();
|
|
239
239
|
a.value || !Q || (_ !== Q || t.value.length === 0 || v !== "") && V(1, "", !1);
|
|
240
240
|
}, ve = () => {
|
|
241
|
-
if (!
|
|
242
|
-
const { target: Q, keyword: he, append: ye } =
|
|
241
|
+
if (!A || a.value) return;
|
|
242
|
+
const { target: Q, keyword: he, append: ye } = A;
|
|
243
243
|
V(Q, he, ye);
|
|
244
244
|
}, X = () => {
|
|
245
245
|
const Q = e();
|
|
@@ -306,14 +306,14 @@ const na = { class: "emoo-asel__opt" }, sa = { class: "emoo-asel__avatar" }, ia
|
|
|
306
306
|
},
|
|
307
307
|
emits: ["update:modelValue"],
|
|
308
308
|
setup(e, { emit: s }) {
|
|
309
|
-
const t = e, a = s, { t: i } = be(), r = z(() => t.source !== void 0), { items: f, loading: u, error: k, retry: v, search: _, ensureFirstPage: T, onVisibleChange: $, popperClass:
|
|
309
|
+
const t = e, a = s, { t: i } = be(), r = z(() => t.source !== void 0), { items: f, loading: u, error: k, retry: v, search: _, ensureFirstPage: T, onVisibleChange: $, popperClass: A } = ot(() => t.source, "emoo-asel-popper"), { mergedOptions: I, selectedOptions: S, remember: V } = at(
|
|
310
310
|
() => t.modelValue,
|
|
311
311
|
() => r.value ? f.value : t.options ?? [],
|
|
312
312
|
() => t.selected ?? []
|
|
313
|
-
),
|
|
313
|
+
), P = (m) => I.value.find((R) => R.id === m), oe = nt(), le = z(() => oe.disabled !== void 0 && oe.disabled !== !1);
|
|
314
314
|
$t(() => {
|
|
315
315
|
const m = t.modelValue, R = Array.isArray(m) ? m.length > 0 : m != null, U = Array.isArray(m) ? m : [m];
|
|
316
|
-
r.value && R && U.some((fe) => fe !== null && !
|
|
316
|
+
r.value && R && U.some((fe) => fe !== null && !P(fe)) && T();
|
|
317
317
|
});
|
|
318
318
|
const ve = (m) => {
|
|
319
319
|
V(m), a("update:modelValue", m);
|
|
@@ -333,7 +333,7 @@ const na = { class: "emoo-asel__opt" }, sa = { class: "emoo-asel__avatar" }, ia
|
|
|
333
333
|
remote: r.value,
|
|
334
334
|
"remote-method": l(_),
|
|
335
335
|
loading: l(u),
|
|
336
|
-
"popper-class": l(
|
|
336
|
+
"popper-class": l(A),
|
|
337
337
|
"onUpdate:modelValue": ve,
|
|
338
338
|
onVisibleChange: l($)
|
|
339
339
|
}, Oe({
|
|
@@ -379,10 +379,10 @@ const na = { class: "emoo-asel__opt" }, sa = { class: "emoo-asel__avatar" }, ia
|
|
|
379
379
|
} : {
|
|
380
380
|
name: "label",
|
|
381
381
|
fn: D(({ value: U }) => [
|
|
382
|
-
|
|
382
|
+
P(U) ? (o(), M(We, {
|
|
383
383
|
key: 0,
|
|
384
384
|
square: "",
|
|
385
|
-
items: [
|
|
385
|
+
items: [P(U)]
|
|
386
386
|
}, null, 8, ["items"])) : g("", !0)
|
|
387
387
|
]),
|
|
388
388
|
key: "0"
|
|
@@ -404,7 +404,7 @@ const na = { class: "emoo-asel__opt" }, sa = { class: "emoo-asel__avatar" }, ia
|
|
|
404
404
|
} : void 0
|
|
405
405
|
]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
|
|
406
406
|
}
|
|
407
|
-
}),
|
|
407
|
+
}), pr = /* @__PURE__ */ se(ca, [["__scopeId", "data-v-465d3a49"]]), ma = ["type", "disabled", "aria-busy"], va = {
|
|
408
408
|
key: 0,
|
|
409
409
|
class: "emoo-button__icon",
|
|
410
410
|
"aria-hidden": "true"
|
|
@@ -465,7 +465,7 @@ const na = { class: "emoo-asel__opt" }, sa = { class: "emoo-asel__avatar" }, ia
|
|
|
465
465
|
])) : g("", !0)
|
|
466
466
|
]));
|
|
467
467
|
}
|
|
468
|
-
}),
|
|
468
|
+
}), br = /* @__PURE__ */ se(ba, [["__scopeId", "data-v-4fffe6bc"]]), ga = ["data-testid"], ka = {
|
|
469
469
|
key: 0,
|
|
470
470
|
class: "emoo-chips__more",
|
|
471
471
|
"data-testid": "emoo-chips-more"
|
|
@@ -483,14 +483,14 @@ const na = { class: "emoo-asel__opt" }, sa = { class: "emoo-asel__avatar" }, ia
|
|
|
483
483
|
i.value = s.items.length, r.value = 0;
|
|
484
484
|
return;
|
|
485
485
|
}
|
|
486
|
-
const
|
|
487
|
-
if (
|
|
486
|
+
const A = T.map((P) => P.offsetWidth);
|
|
487
|
+
if (A.reduce((P, oe) => P + oe, 0) + s.gap * (T.length - 1) <= $) {
|
|
488
488
|
i.value = T.length, r.value = 0;
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
491
|
let S = 0, V = 0;
|
|
492
|
-
for (const
|
|
493
|
-
const oe = V === 0 ?
|
|
492
|
+
for (const P of A) {
|
|
493
|
+
const oe = V === 0 ? P : S + s.gap + P;
|
|
494
494
|
if (oe > $ - u) break;
|
|
495
495
|
S = oe, V++;
|
|
496
496
|
}
|
|
@@ -512,7 +512,7 @@ const na = { class: "emoo-asel__opt" }, sa = { class: "emoo-asel__avatar" }, ia
|
|
|
512
512
|
class: "emoo-chips",
|
|
513
513
|
style: Ce({ gap: `${e.gap}px` })
|
|
514
514
|
}, [
|
|
515
|
-
(o(!0), n(L, null, Z(e.items, (
|
|
515
|
+
(o(!0), n(L, null, Z(e.items, (A, I) => pt((o(), n("span", {
|
|
516
516
|
key: I,
|
|
517
517
|
ref_for: !0,
|
|
518
518
|
ref_key: "chipRefs",
|
|
@@ -521,7 +521,7 @@ const na = { class: "emoo-asel__opt" }, sa = { class: "emoo-asel__avatar" }, ia
|
|
|
521
521
|
"data-testid": `emoo-chips-chip-${I}`
|
|
522
522
|
}, [
|
|
523
523
|
W(T.$slots, "default", {
|
|
524
|
-
item:
|
|
524
|
+
item: A,
|
|
525
525
|
index: I
|
|
526
526
|
}, void 0, !0)
|
|
527
527
|
], 8, ga)), [
|
|
@@ -533,7 +533,7 @@ const na = { class: "emoo-asel__opt" }, sa = { class: "emoo-asel__avatar" }, ia
|
|
|
533
533
|
_: 3
|
|
534
534
|
}, 8, ["content", "disabled"]));
|
|
535
535
|
}
|
|
536
|
-
}),
|
|
536
|
+
}), gr = /* @__PURE__ */ se($a, [["__scopeId", "data-v-1c5db445"]]), wa = /* @__PURE__ */ J({
|
|
537
537
|
__name: "EmooChoice",
|
|
538
538
|
props: {
|
|
539
539
|
options: {},
|
|
@@ -668,7 +668,7 @@ const na = { class: "emoo-asel__opt" }, sa = { class: "emoo-asel__avatar" }, ia
|
|
|
668
668
|
value: $.value,
|
|
669
669
|
disabled: $.disabled,
|
|
670
670
|
"data-testid": e.testid ? `${e.testid}-${String($.value)}` : void 0,
|
|
671
|
-
onClickCapture: (
|
|
671
|
+
onClickCapture: (A) => k($, A)
|
|
672
672
|
}, {
|
|
673
673
|
default: D(() => [
|
|
674
674
|
W(_.$slots, "option", { option: $ }, () => [
|
|
@@ -894,12 +894,12 @@ function Ha(e) {
|
|
|
894
894
|
function Fa(e, s) {
|
|
895
895
|
const t = ao()[e], a = typeof t == "number" && t > 0 && t <= 1 ? t : s, i = F(a), r = F(null), f = z(() => r.value === null ? `${Math.round(i.value * 100)}%` : `${r.value}px`), u = F(!1), k = F(!1);
|
|
896
896
|
let v = 0, _ = 0, T = !1, $;
|
|
897
|
-
function
|
|
897
|
+
function A() {
|
|
898
898
|
$ !== void 0 && clearTimeout($), $ = void 0, k.value = !1, r.value = null;
|
|
899
899
|
}
|
|
900
|
-
function I(
|
|
900
|
+
function I(P) {
|
|
901
901
|
T = !0;
|
|
902
|
-
const oe = _ + (v -
|
|
902
|
+
const oe = _ + (v - P.clientY);
|
|
903
903
|
r.value = Math.round(Math.min(Math.max(oe, oo[0] * window.innerHeight), window.innerHeight));
|
|
904
904
|
}
|
|
905
905
|
function S() {
|
|
@@ -907,17 +907,17 @@ function Fa(e, s) {
|
|
|
907
907
|
r.value = null;
|
|
908
908
|
return;
|
|
909
909
|
}
|
|
910
|
-
const
|
|
911
|
-
if (i.value = le ? oe : Math.round(
|
|
910
|
+
const P = r.value / window.innerHeight, oe = Ha(P), le = Math.abs(oe - P) <= Ka;
|
|
911
|
+
if (i.value = le ? oe : Math.round(P * 100) / 100, Ua(e, i.value), !le) {
|
|
912
912
|
r.value = null;
|
|
913
913
|
return;
|
|
914
914
|
}
|
|
915
915
|
k.value = !0, requestAnimationFrame(() => {
|
|
916
|
-
r.value = Math.round(oe * window.innerHeight), $ = setTimeout(
|
|
916
|
+
r.value = Math.round(oe * window.innerHeight), $ = setTimeout(A, Oa);
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
|
-
function V(
|
|
920
|
-
|
|
919
|
+
function V(P) {
|
|
920
|
+
P.button !== void 0 && P.button !== 0 || (A(), u.value = !0, T = !1, v = P.clientY, _ = i.value * window.innerHeight, r.value = Math.round(_), window.addEventListener("pointermove", I), window.addEventListener("pointerup", S), window.addEventListener("pointercancel", S));
|
|
921
921
|
}
|
|
922
922
|
return Ut(() => {
|
|
923
923
|
window.removeEventListener("pointermove", I), window.removeEventListener("pointerup", S), window.removeEventListener("pointercancel", S), $ !== void 0 && clearTimeout($);
|
|
@@ -948,12 +948,12 @@ const Na = {
|
|
|
948
948
|
t.scene ?? "__emoo-no-scene__",
|
|
949
949
|
t.mobileRatio
|
|
950
950
|
), _ = z(() => t.isMobile ? r.value ? f.value : t.direction === "rtl" || t.direction === "ltr" ? t.size : "100%" : t.scene ? Aa(t.scene, t.size) : t.size);
|
|
951
|
-
function T($,
|
|
952
|
-
t.scene && La(t.scene,
|
|
951
|
+
function T($, A) {
|
|
952
|
+
t.scene && La(t.scene, A), a("resize-end", $, A);
|
|
953
953
|
}
|
|
954
|
-
return ($,
|
|
954
|
+
return ($, A) => (o(), M(l(Ft), _t($.$attrs, {
|
|
955
955
|
modelValue: i.value,
|
|
956
|
-
"onUpdate:modelValue":
|
|
956
|
+
"onUpdate:modelValue": A[0] || (A[0] = (I) => i.value = I),
|
|
957
957
|
class: ["emoo-drawer", {
|
|
958
958
|
"emoo-drawer--flush": e.flush,
|
|
959
959
|
"is-sheet": r.value,
|
|
@@ -1100,7 +1100,7 @@ const Na = {
|
|
|
1100
1100
|
])
|
|
1101
1101
|
], 2)) : g("", !0);
|
|
1102
1102
|
}
|
|
1103
|
-
}),
|
|
1103
|
+
}), kr = /* @__PURE__ */ se(ll, [["__scopeId", "data-v-1b6ea0e7"]]), nl = ["aria-label"], sl = /* @__PURE__ */ J({
|
|
1104
1104
|
__name: "EmooFieldGrid",
|
|
1105
1105
|
props: {
|
|
1106
1106
|
ariaLabel: {},
|
|
@@ -1115,14 +1115,14 @@ const Na = {
|
|
|
1115
1115
|
W(s.$slots, "default", {}, void 0, !0)
|
|
1116
1116
|
], 10, nl));
|
|
1117
1117
|
}
|
|
1118
|
-
}),
|
|
1118
|
+
}), _r = /* @__PURE__ */ se(sl, [["__scopeId", "data-v-12f1e7e0"]]), il = ["width", "height", "viewBox", "data-type", "innerHTML"], rl = /* @__PURE__ */ J({
|
|
1119
1119
|
__name: "EmooFileTypeIcon",
|
|
1120
1120
|
props: {
|
|
1121
1121
|
type: {},
|
|
1122
1122
|
size: {}
|
|
1123
1123
|
},
|
|
1124
1124
|
setup(e) {
|
|
1125
|
-
const s = e, t = z(() => s.size ?? "1em"), a = z(() =>
|
|
1125
|
+
const s = e, t = z(() => s.size ?? "1em"), a = z(() => Ro(s.type)), i = z(() => Vo(s.type));
|
|
1126
1126
|
return (r, f) => (o(), n("svg", {
|
|
1127
1127
|
class: "emoo-file-icon",
|
|
1128
1128
|
width: t.value,
|
|
@@ -1136,7 +1136,7 @@ const Na = {
|
|
|
1136
1136
|
innerHTML: a.value
|
|
1137
1137
|
}, null, 8, il));
|
|
1138
1138
|
}
|
|
1139
|
-
}),
|
|
1139
|
+
}), dl = /* @__PURE__ */ J({
|
|
1140
1140
|
__name: "EmooGhostButton",
|
|
1141
1141
|
props: {
|
|
1142
1142
|
pill: { type: Boolean },
|
|
@@ -1150,7 +1150,7 @@ const Na = {
|
|
|
1150
1150
|
W(s.$slots, "default", {}, void 0, !0)
|
|
1151
1151
|
], 2));
|
|
1152
1152
|
}
|
|
1153
|
-
}), $r = /* @__PURE__ */ se(
|
|
1153
|
+
}), $r = /* @__PURE__ */ se(dl, [["__scopeId", "data-v-d0346949"]]), ul = /* @__PURE__ */ J({
|
|
1154
1154
|
__name: "EmooGroupLabel",
|
|
1155
1155
|
props: {
|
|
1156
1156
|
title: {},
|
|
@@ -1164,10 +1164,10 @@ const Na = {
|
|
|
1164
1164
|
d("span", null, y(l(s)(e.title)), 1)
|
|
1165
1165
|
], 2));
|
|
1166
1166
|
}
|
|
1167
|
-
}), wr = /* @__PURE__ */ se(
|
|
1167
|
+
}), wr = /* @__PURE__ */ se(ul, [["__scopeId", "data-v-0135d501"]]), cl = { class: "emoo-skel__lines" }, ml = { class: "emoo-skel__head" }, vl = {
|
|
1168
1168
|
key: 4,
|
|
1169
1169
|
class: "emoo-skel__pill-row"
|
|
1170
|
-
},
|
|
1170
|
+
}, fl = { class: "emoo-skel__detail" }, hl = { class: "emoo-skel__lines" }, yl = /* @__PURE__ */ J({
|
|
1171
1171
|
__name: "EmooSkeleton",
|
|
1172
1172
|
props: {
|
|
1173
1173
|
variant: { default: "lines" },
|
|
@@ -1192,7 +1192,7 @@ const Na = {
|
|
|
1192
1192
|
class: "emoo-skel__item"
|
|
1193
1193
|
}, [
|
|
1194
1194
|
t[0] || (t[0] = d("span", { class: "emoo-skel__bone emoo-skel__avatar" }, null, -1)),
|
|
1195
|
-
d("span",
|
|
1195
|
+
d("span", cl, [
|
|
1196
1196
|
d("span", {
|
|
1197
1197
|
class: "emoo-skel__bone emoo-skel__line",
|
|
1198
1198
|
style: Ce({ width: `${52 - a * 8}%` })
|
|
@@ -1203,7 +1203,7 @@ const Na = {
|
|
|
1203
1203
|
}, null, 4)
|
|
1204
1204
|
])
|
|
1205
1205
|
]))), 128)) : e.variant === "table" ? (o(), n(L, { key: 2 }, [
|
|
1206
|
-
d("span",
|
|
1206
|
+
d("span", ml, [
|
|
1207
1207
|
(o(), n(L, null, Z(["18%", "26%", "14%", "22%"], (a, i) => d("span", {
|
|
1208
1208
|
key: i,
|
|
1209
1209
|
class: "emoo-skel__bone emoo-skel__cell",
|
|
@@ -1229,7 +1229,7 @@ const Na = {
|
|
|
1229
1229
|
style: { width: "56%" }
|
|
1230
1230
|
}, null, -1),
|
|
1231
1231
|
d("span", { class: "emoo-skel__bone emoo-skel__tile-value" }, null, -1)
|
|
1232
|
-
])]))), 128)) : e.variant === "pills" ? (o(), n("div",
|
|
1232
|
+
])]))), 128)) : e.variant === "pills" ? (o(), n("div", vl, [
|
|
1233
1233
|
(o(!0), n(L, null, Z(e.pills, (a) => (o(), n("span", {
|
|
1234
1234
|
key: a,
|
|
1235
1235
|
class: "emoo-skel__bone emoo-skel__pill"
|
|
@@ -1254,8 +1254,8 @@ const Na = {
|
|
|
1254
1254
|
}, null, 4)
|
|
1255
1255
|
], 64)) : (o(), n(L, { key: 7 }, [
|
|
1256
1256
|
t[5] || (t[5] = d("span", { class: "emoo-skel__bone emoo-skel__title" }, null, -1)),
|
|
1257
|
-
d("span",
|
|
1258
|
-
d("span",
|
|
1257
|
+
d("span", fl, [
|
|
1258
|
+
d("span", hl, [
|
|
1259
1259
|
(o(!0), n(L, null, Z(e.lines, (a) => (o(), n("span", {
|
|
1260
1260
|
key: a,
|
|
1261
1261
|
class: O(["emoo-skel__bone emoo-skel__line", { "is-tail": a === e.lines }])
|
|
@@ -1266,7 +1266,7 @@ const Na = {
|
|
|
1266
1266
|
], 64))
|
|
1267
1267
|
], 2));
|
|
1268
1268
|
}
|
|
1269
|
-
}),
|
|
1269
|
+
}), pl = /* @__PURE__ */ se(yl, [["__scopeId", "data-v-9e0a33de"]]), bl = ["aria-label"], gl = /* @__PURE__ */ J({
|
|
1270
1270
|
__name: "EmooSpinner",
|
|
1271
1271
|
props: {
|
|
1272
1272
|
size: { default: 20 },
|
|
@@ -1292,22 +1292,22 @@ const Na = {
|
|
|
1292
1292
|
"stroke-dasharray": "37.7 12.57"
|
|
1293
1293
|
})
|
|
1294
1294
|
], -1)
|
|
1295
|
-
])], 12,
|
|
1295
|
+
])], 12, bl));
|
|
1296
1296
|
}
|
|
1297
|
-
}), lo = /* @__PURE__ */ se(
|
|
1297
|
+
}), lo = /* @__PURE__ */ se(gl, [["__scopeId", "data-v-d168f9f3"]]), kl = {
|
|
1298
1298
|
class: "emoo-history-list",
|
|
1299
1299
|
"data-testid": "emoo-history-list"
|
|
1300
|
-
},
|
|
1300
|
+
}, _l = {
|
|
1301
1301
|
key: 0,
|
|
1302
1302
|
class: "history-float"
|
|
1303
|
-
},
|
|
1303
|
+
}, $l = ["data-item-id", "tabindex", "onClick", "onFocus", "onKeydown"], wl = { class: "history-name" }, Sl = { key: 0 }, Cl = {
|
|
1304
1304
|
key: 1,
|
|
1305
1305
|
class: "status-indicator",
|
|
1306
1306
|
"data-testid": "chat-status-indicator"
|
|
1307
|
-
},
|
|
1307
|
+
}, Tl = {
|
|
1308
1308
|
key: 1,
|
|
1309
1309
|
class: "status-dot"
|
|
1310
|
-
},
|
|
1310
|
+
}, Dl = /* @__PURE__ */ J({
|
|
1311
1311
|
__name: "EmooHistoryList",
|
|
1312
1312
|
props: {
|
|
1313
1313
|
groups: {},
|
|
@@ -1325,14 +1325,14 @@ const Na = {
|
|
|
1325
1325
|
},
|
|
1326
1326
|
emits: ["update:keyword", "update:selectedIds", "select", "load-more", "delete", "rename"],
|
|
1327
1327
|
setup(e, { expose: s, emit: t }) {
|
|
1328
|
-
const a = e, i = t, { t: r } = be(), f = z(() => a.searchPlaceholder ?? r("common.emooHistory.searchPlaceholder")), u = z(() => a.selectLabel ?? r("common.emooHistory.select")), k = z(() => a.emptyTitle ?? r("common.emooHistory.empty")), v = z(() => a.noMatchTitle ?? r("common.emooHistory.noMatch")), _ = z(() => a.groups.some((K) => K.items.length > 0)), T = F(!1), $ = F(!1),
|
|
1329
|
-
T.value = !0, await Ae(),
|
|
1328
|
+
const a = e, i = t, { t: r } = be(), f = z(() => a.searchPlaceholder ?? r("common.emooHistory.searchPlaceholder")), u = z(() => a.selectLabel ?? r("common.emooHistory.select")), k = z(() => a.emptyTitle ?? r("common.emooHistory.empty")), v = z(() => a.noMatchTitle ?? r("common.emooHistory.noMatch")), _ = z(() => a.groups.some((K) => K.items.length > 0)), T = F(!1), $ = F(!1), A = F(null), I = async () => {
|
|
1329
|
+
T.value = !0, await Ae(), A.value?.focus();
|
|
1330
1330
|
}, S = () => {
|
|
1331
1331
|
!a.keyword && !$.value && (T.value = !1);
|
|
1332
1332
|
}, V = () => {
|
|
1333
1333
|
$.value = !1, S();
|
|
1334
|
-
},
|
|
1335
|
-
K !== void 0 &&
|
|
1334
|
+
}, P = F(null), oe = F(null), le = z(() => a.groups.flatMap((K) => K.items)), ve = (K) => K.id === (oe.value ?? le.value[0]?.id) ? 0 : -1, X = (K) => {
|
|
1335
|
+
K !== void 0 && P.value?.querySelector(`.history-item[data-item-id="${K}"]`)?.focus();
|
|
1336
1336
|
}, m = () => X(le.value[0]?.id), R = (K, N) => {
|
|
1337
1337
|
if (K.target !== K.currentTarget) return;
|
|
1338
1338
|
const ee = le.value, ne = ee.findIndex((ce) => ce.id === N.id);
|
|
@@ -1380,8 +1380,8 @@ const Na = {
|
|
|
1380
1380
|
window.addEventListener("keydown", U);
|
|
1381
1381
|
}), Ut(() => {
|
|
1382
1382
|
window.removeEventListener("keydown", U);
|
|
1383
|
-
}), s({ startRename: Q, cancelRename: he, exitSelectMode: E, focusSearch: I }), (K, N) => (o(), n("div",
|
|
1384
|
-
e.anyRecord ? (o(), n("div",
|
|
1383
|
+
}), s({ startRename: Q, cancelRename: he, exitSelectMode: E, focusSearch: I }), (K, N) => (o(), n("div", kl, [
|
|
1384
|
+
e.anyRecord ? (o(), n("div", _l, [
|
|
1385
1385
|
d("div", {
|
|
1386
1386
|
class: O(["search-area", { expanded: T.value }]),
|
|
1387
1387
|
onMouseenter: N[2] || (N[2] = (ee) => T.value = !0),
|
|
@@ -1407,7 +1407,7 @@ const Na = {
|
|
|
1407
1407
|
}, 8, ["content"]),
|
|
1408
1408
|
H(l(xt), {
|
|
1409
1409
|
ref_key: "searchInputRef",
|
|
1410
|
-
ref:
|
|
1410
|
+
ref: A,
|
|
1411
1411
|
"model-value": e.keyword,
|
|
1412
1412
|
size: "small",
|
|
1413
1413
|
clearable: "",
|
|
@@ -1462,11 +1462,11 @@ const Na = {
|
|
|
1462
1462
|
])) : g("", !0),
|
|
1463
1463
|
pt((o(), n("div", {
|
|
1464
1464
|
ref_key: "historyScrollRef",
|
|
1465
|
-
ref:
|
|
1465
|
+
ref: P,
|
|
1466
1466
|
class: "history-scroll",
|
|
1467
1467
|
onScroll: ie
|
|
1468
1468
|
}, [
|
|
1469
|
-
e.loading && !_.value ? (o(), M(
|
|
1469
|
+
e.loading && !_.value ? (o(), M(pl, {
|
|
1470
1470
|
key: 0,
|
|
1471
1471
|
variant: "lines",
|
|
1472
1472
|
lines: 4,
|
|
@@ -1504,8 +1504,8 @@ const Na = {
|
|
|
1504
1504
|
}, ["stop"])),
|
|
1505
1505
|
"onUpdate:modelValue": (ce) => de(ne.id, !!ce)
|
|
1506
1506
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : g("", !0),
|
|
1507
|
-
d("span",
|
|
1508
|
-
fe.value !== ne.id ? (o(), n("span",
|
|
1507
|
+
d("span", wl, [
|
|
1508
|
+
fe.value !== ne.id ? (o(), n("span", Sl, y(ne.title), 1)) : (o(), M(l(xt), {
|
|
1509
1509
|
key: 1,
|
|
1510
1510
|
modelValue: re.value,
|
|
1511
1511
|
"onUpdate:modelValue": N[4] || (N[4] = (ce) => re.value = ce),
|
|
@@ -1519,12 +1519,12 @@ const Na = {
|
|
|
1519
1519
|
onBlur: me(ye, ["stop"])
|
|
1520
1520
|
}, null, 8, ["modelValue"]))
|
|
1521
1521
|
]),
|
|
1522
|
-
fe.value !== ne.id && ne.id !== e.activeId && ne.status ? (o(), n("span",
|
|
1522
|
+
fe.value !== ne.id && ne.id !== e.activeId && ne.status ? (o(), n("span", Cl, [
|
|
1523
1523
|
ne.status === "generating" ? (o(), M(lo, {
|
|
1524
1524
|
key: 0,
|
|
1525
1525
|
size: 14,
|
|
1526
1526
|
label: l(r)("common.loading")
|
|
1527
|
-
}, null, 8, ["label"])) : (o(), n("span",
|
|
1527
|
+
}, null, 8, ["label"])) : (o(), n("span", Tl))
|
|
1528
1528
|
])) : g("", !0),
|
|
1529
1529
|
fe.value !== ne.id && !q.value && ue ? (o(), M(l(Rt), {
|
|
1530
1530
|
key: 2,
|
|
@@ -1561,7 +1561,7 @@ const Na = {
|
|
|
1561
1561
|
]),
|
|
1562
1562
|
_: 2
|
|
1563
1563
|
}, 1024)) : g("", !0)
|
|
1564
|
-
], 42,
|
|
1564
|
+
], 42, $l)
|
|
1565
1565
|
]),
|
|
1566
1566
|
_: 2
|
|
1567
1567
|
}, 1032, ["content", "disabled"]))), 128))
|
|
@@ -1575,20 +1575,20 @@ const Na = {
|
|
|
1575
1575
|
])
|
|
1576
1576
|
]));
|
|
1577
1577
|
}
|
|
1578
|
-
}), Sr = /* @__PURE__ */ se(
|
|
1578
|
+
}), Sr = /* @__PURE__ */ se(Dl, [["__scopeId", "data-v-862f7ee9"]]), El = {
|
|
1579
1579
|
class: "emoo-mrsel__tabs",
|
|
1580
1580
|
role: "tablist"
|
|
1581
|
-
},
|
|
1581
|
+
}, xl = ["aria-selected", "onClick"], Il = { class: "emoo-mrsel__count" }, zl = {
|
|
1582
1582
|
class: "emoo-sel-remote-error",
|
|
1583
1583
|
role: "alert",
|
|
1584
1584
|
"data-testid": "remote-error"
|
|
1585
|
-
},
|
|
1585
|
+
}, Ml = { class: "emoo-mrsel__opt" }, Rl = ["src"], Vl = { class: "emoo-mrsel__name" }, Bl = {
|
|
1586
1586
|
key: 0,
|
|
1587
1587
|
class: "emoo-mrsel__dept"
|
|
1588
|
-
},
|
|
1588
|
+
}, Pl = { class: "emoo-mrsel__opt" }, Al = ["src"], Ll = { class: "emoo-mrsel__col" }, Kl = { class: "emoo-mrsel__name" }, Ol = {
|
|
1589
1589
|
key: 0,
|
|
1590
1590
|
class: "emoo-mrsel__desc"
|
|
1591
|
-
},
|
|
1591
|
+
}, Ul = /* @__PURE__ */ J({
|
|
1592
1592
|
__name: "EmooMemberRoleSelect",
|
|
1593
1593
|
props: {
|
|
1594
1594
|
modelValue: {},
|
|
@@ -1606,7 +1606,7 @@ const Na = {
|
|
|
1606
1606
|
const t = e, a = s, { t: i } = be(), r = F("member"), f = z(() => t.modelValue?.memberIds ?? []), u = z(() => t.modelValue?.roleIds ?? []), k = z(() => [
|
|
1607
1607
|
{ key: "member", label: i("common.emooSelect.memberTab"), count: f.value.length },
|
|
1608
1608
|
{ key: "role", label: i("common.emooSelect.roleTab"), count: u.value.length }
|
|
1609
|
-
]), v = z(() => t.memberSource !== void 0 || t.roleSource !== void 0), _ = ot(() => t.memberSource, "emoo-mrsel-popper"), T = ot(() => t.roleSource, "emoo-mrsel-popper"), $ = (q) => q === "member" ? _ : T,
|
|
1609
|
+
]), v = z(() => t.memberSource !== void 0 || t.roleSource !== void 0), _ = ot(() => t.memberSource, "emoo-mrsel-popper"), T = ot(() => t.roleSource, "emoo-mrsel-popper"), $ = (q) => q === "member" ? _ : T, A = z(() => `${_.popperClass} ${T.popperClass}`), I = z(() => r.value === "member" ? f.value : u.value), S = at(
|
|
1610
1610
|
() => f.value,
|
|
1611
1611
|
() => v.value ? _.items.value : t.members ?? [],
|
|
1612
1612
|
() => t.selectedMembers ?? []
|
|
@@ -1614,7 +1614,7 @@ const Na = {
|
|
|
1614
1614
|
() => u.value,
|
|
1615
1615
|
() => v.value ? T.items.value : t.roles ?? [],
|
|
1616
1616
|
() => t.selectedRoles ?? []
|
|
1617
|
-
),
|
|
1617
|
+
), P = S.mergedOptions, oe = V.mergedOptions, le = z(() => [
|
|
1618
1618
|
...S.selectedOptions.value,
|
|
1619
1619
|
...V.selectedOptions.value.map((q) => ({ ...q, square: !0 }))
|
|
1620
1620
|
]), ve = nt(), X = z(() => ve.disabled !== void 0 && ve.disabled !== !1), m = F(!1), R = (q) => {
|
|
@@ -1653,7 +1653,7 @@ const Na = {
|
|
|
1653
1653
|
remote: v.value,
|
|
1654
1654
|
"remote-method": U,
|
|
1655
1655
|
loading: fe.value,
|
|
1656
|
-
"popper-class":
|
|
1656
|
+
"popper-class": A.value,
|
|
1657
1657
|
"onUpdate:modelValue": he,
|
|
1658
1658
|
onVisibleChange: R
|
|
1659
1659
|
}, Oe({
|
|
@@ -1666,7 +1666,7 @@ const Na = {
|
|
|
1666
1666
|
}, null, 8, ["items", "max", "removable"])
|
|
1667
1667
|
]),
|
|
1668
1668
|
header: D(() => [
|
|
1669
|
-
d("div",
|
|
1669
|
+
d("div", El, [
|
|
1670
1670
|
(o(!0), n(L, null, Z(k.value, (Y) => (o(), n("button", {
|
|
1671
1671
|
key: Y.key,
|
|
1672
1672
|
type: "button",
|
|
@@ -1675,18 +1675,18 @@ const Na = {
|
|
|
1675
1675
|
onClick: (E) => Q(Y.key)
|
|
1676
1676
|
}, [
|
|
1677
1677
|
te(y(Y.label) + " ", 1),
|
|
1678
|
-
d("span",
|
|
1679
|
-
], 10,
|
|
1678
|
+
d("span", Il, y(Y.count), 1)
|
|
1679
|
+
], 10, xl))), 128))
|
|
1680
1680
|
])
|
|
1681
1681
|
]),
|
|
1682
1682
|
default: D(() => [
|
|
1683
|
-
r.value === "member" ? (o(!0), n(L, { key: 0 }, Z(l(
|
|
1683
|
+
r.value === "member" ? (o(!0), n(L, { key: 0 }, Z(l(P), (Y) => (o(), M(l(Ye), {
|
|
1684
1684
|
key: Y.id,
|
|
1685
1685
|
label: Y.name,
|
|
1686
1686
|
value: Y.id
|
|
1687
1687
|
}, {
|
|
1688
1688
|
default: D(() => [
|
|
1689
|
-
d("span",
|
|
1689
|
+
d("span", Ml, [
|
|
1690
1690
|
d("span", {
|
|
1691
1691
|
class: "emoo-mrsel__avatar",
|
|
1692
1692
|
style: Ce({ "--tint": Y.color || "var(--el-color-primary)" })
|
|
@@ -1696,12 +1696,12 @@ const Na = {
|
|
|
1696
1696
|
src: Y.avatar,
|
|
1697
1697
|
alt: "",
|
|
1698
1698
|
class: "emoo-mrsel__img"
|
|
1699
|
-
}, null, 8,
|
|
1699
|
+
}, null, 8, Rl)) : (o(), n(L, { key: 1 }, [
|
|
1700
1700
|
te(y(Y.name[0]), 1)
|
|
1701
1701
|
], 64))
|
|
1702
1702
|
], 4),
|
|
1703
|
-
d("span",
|
|
1704
|
-
Y.dept ? (o(), n("span",
|
|
1703
|
+
d("span", Vl, y(Y.name), 1),
|
|
1704
|
+
Y.dept ? (o(), n("span", Bl, y(Y.dept), 1)) : g("", !0)
|
|
1705
1705
|
])
|
|
1706
1706
|
]),
|
|
1707
1707
|
_: 2
|
|
@@ -1711,7 +1711,7 @@ const Na = {
|
|
|
1711
1711
|
value: Y.id
|
|
1712
1712
|
}, {
|
|
1713
1713
|
default: D(() => [
|
|
1714
|
-
d("span",
|
|
1714
|
+
d("span", Pl, [
|
|
1715
1715
|
d("span", {
|
|
1716
1716
|
class: "emoo-mrsel__avatar is-square",
|
|
1717
1717
|
style: Ce({ "--tint": Y.color || "var(--el-color-primary)" })
|
|
@@ -1721,13 +1721,13 @@ const Na = {
|
|
|
1721
1721
|
src: Y.avatar,
|
|
1722
1722
|
alt: "",
|
|
1723
1723
|
class: "emoo-mrsel__img"
|
|
1724
|
-
}, null, 8,
|
|
1724
|
+
}, null, 8, Al)) : (o(), n(L, { key: 1 }, [
|
|
1725
1725
|
te(y(Y.name[0]), 1)
|
|
1726
1726
|
], 64))
|
|
1727
1727
|
], 4),
|
|
1728
|
-
d("span",
|
|
1729
|
-
d("span",
|
|
1730
|
-
Y.desc ? (o(), n("span",
|
|
1728
|
+
d("span", Ll, [
|
|
1729
|
+
d("span", Kl, y(Y.name), 1),
|
|
1730
|
+
Y.desc ? (o(), n("span", Ol, y(Y.desc), 1)) : g("", !0)
|
|
1731
1731
|
])
|
|
1732
1732
|
])
|
|
1733
1733
|
]),
|
|
@@ -1739,7 +1739,7 @@ const Na = {
|
|
|
1739
1739
|
re.value ? {
|
|
1740
1740
|
name: "footer",
|
|
1741
1741
|
fn: D(() => [
|
|
1742
|
-
d("div",
|
|
1742
|
+
d("div", zl, [
|
|
1743
1743
|
d("span", null, y(l(i)("common.emooSelect.loadFailed")), 1),
|
|
1744
1744
|
d("button", {
|
|
1745
1745
|
type: "button",
|
|
@@ -1752,14 +1752,14 @@ const Na = {
|
|
|
1752
1752
|
} : void 0
|
|
1753
1753
|
]), 1032, ["model-value", "placeholder", "remote", "loading", "popper-class"]));
|
|
1754
1754
|
}
|
|
1755
|
-
}), Cr = /* @__PURE__ */ se(
|
|
1755
|
+
}), Cr = /* @__PURE__ */ se(Ul, [["__scopeId", "data-v-ff057c7b"]]), Hl = { class: "emoo-msel__opt" }, Fl = ["src"], Nl = { class: "emoo-msel__name" }, Wl = {
|
|
1756
1756
|
key: 0,
|
|
1757
1757
|
class: "emoo-msel__dept"
|
|
1758
|
-
},
|
|
1758
|
+
}, ql = {
|
|
1759
1759
|
class: "emoo-sel-remote-error",
|
|
1760
1760
|
role: "alert",
|
|
1761
1761
|
"data-testid": "remote-error"
|
|
1762
|
-
},
|
|
1762
|
+
}, jl = /* @__PURE__ */ J({
|
|
1763
1763
|
__name: "EmooMemberSelect",
|
|
1764
1764
|
props: {
|
|
1765
1765
|
modelValue: {},
|
|
@@ -1773,11 +1773,11 @@ const Na = {
|
|
|
1773
1773
|
},
|
|
1774
1774
|
emits: ["update:modelValue"],
|
|
1775
1775
|
setup(e, { emit: s }) {
|
|
1776
|
-
const t = e, a = s, { t: i } = be(), r = z(() => t.source !== void 0), { items: f, loading: u, error: k, retry: v, search: _, onVisibleChange: T, popperClass: $ } = ot(() => t.source, "emoo-msel-popper"), { mergedOptions:
|
|
1776
|
+
const t = e, a = s, { t: i } = be(), r = z(() => t.source !== void 0), { items: f, loading: u, error: k, retry: v, search: _, onVisibleChange: T, popperClass: $ } = ot(() => t.source, "emoo-msel-popper"), { mergedOptions: A, selectedOptions: I, remember: S } = at(
|
|
1777
1777
|
() => t.modelValue,
|
|
1778
1778
|
() => r.value ? f.value : t.options ?? [],
|
|
1779
1779
|
() => t.selected ?? []
|
|
1780
|
-
), V = (X) =>
|
|
1780
|
+
), V = (X) => A.value.find((m) => m.id === X), P = nt(), oe = z(() => P.disabled !== void 0 && P.disabled !== !1), le = (X) => {
|
|
1781
1781
|
S(X), a("update:modelValue", X);
|
|
1782
1782
|
}, ve = (X) => {
|
|
1783
1783
|
if (oe.value) return;
|
|
@@ -1800,13 +1800,13 @@ const Na = {
|
|
|
1800
1800
|
onVisibleChange: l(T)
|
|
1801
1801
|
}, Oe({
|
|
1802
1802
|
default: D(() => [
|
|
1803
|
-
(o(!0), n(L, null, Z(l(
|
|
1803
|
+
(o(!0), n(L, null, Z(l(A), (R) => (o(), M(l(Ye), {
|
|
1804
1804
|
key: R.id,
|
|
1805
1805
|
label: R.name,
|
|
1806
1806
|
value: R.id
|
|
1807
1807
|
}, {
|
|
1808
1808
|
default: D(() => [
|
|
1809
|
-
d("span",
|
|
1809
|
+
d("span", Hl, [
|
|
1810
1810
|
d("span", {
|
|
1811
1811
|
class: "emoo-msel__avatar",
|
|
1812
1812
|
style: Ce({ "--tint": R.color || "var(--el-color-primary)" })
|
|
@@ -1816,12 +1816,12 @@ const Na = {
|
|
|
1816
1816
|
src: R.avatar,
|
|
1817
1817
|
alt: "",
|
|
1818
1818
|
class: "emoo-msel__img"
|
|
1819
|
-
}, null, 8,
|
|
1819
|
+
}, null, 8, Fl)) : (o(), n(L, { key: 1 }, [
|
|
1820
1820
|
te(y(R.name[0]), 1)
|
|
1821
1821
|
], 64))
|
|
1822
1822
|
], 4),
|
|
1823
|
-
d("span",
|
|
1824
|
-
R.dept ? (o(), n("span",
|
|
1823
|
+
d("span", Nl, y(R.name), 1),
|
|
1824
|
+
R.dept ? (o(), n("span", Wl, y(R.dept), 1)) : g("", !0)
|
|
1825
1825
|
])
|
|
1826
1826
|
]),
|
|
1827
1827
|
_: 2
|
|
@@ -1853,7 +1853,7 @@ const Na = {
|
|
|
1853
1853
|
l(k) ? {
|
|
1854
1854
|
name: "footer",
|
|
1855
1855
|
fn: D(() => [
|
|
1856
|
-
d("div",
|
|
1856
|
+
d("div", ql, [
|
|
1857
1857
|
d("span", null, y(l(i)("common.emooSelect.loadFailed")), 1),
|
|
1858
1858
|
d("button", {
|
|
1859
1859
|
type: "button",
|
|
@@ -1867,45 +1867,45 @@ const Na = {
|
|
|
1867
1867
|
} : void 0
|
|
1868
1868
|
]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
|
|
1869
1869
|
}
|
|
1870
|
-
}), Tr = /* @__PURE__ */ se(
|
|
1870
|
+
}), Tr = /* @__PURE__ */ se(jl, [["__scopeId", "data-v-f6059e7c"]]), Gl = ["data-testid", "data-role"], Yl = {
|
|
1871
1871
|
key: 0,
|
|
1872
1872
|
class: "emoo-message__side"
|
|
1873
|
-
},
|
|
1873
|
+
}, Xl = {
|
|
1874
1874
|
key: 0,
|
|
1875
1875
|
class: "emoo-message__avatar"
|
|
1876
|
-
},
|
|
1876
|
+
}, Zl = ["src"], Jl = { class: "emoo-message__main" }, Ql = {
|
|
1877
1877
|
key: 0,
|
|
1878
1878
|
class: "emoo-message__name"
|
|
1879
|
-
},
|
|
1879
|
+
}, en = ["data-status"], tn = {
|
|
1880
1880
|
key: 0,
|
|
1881
1881
|
class: "emoo-message__dots",
|
|
1882
1882
|
"aria-label": "loading",
|
|
1883
1883
|
role: "status"
|
|
1884
|
-
},
|
|
1884
|
+
}, on = {
|
|
1885
1885
|
key: 1,
|
|
1886
1886
|
class: "emoo-message__stopped"
|
|
1887
|
-
},
|
|
1887
|
+
}, an = {
|
|
1888
1888
|
key: 2,
|
|
1889
1889
|
class: "emoo-message__error"
|
|
1890
|
-
},
|
|
1890
|
+
}, ln = {
|
|
1891
1891
|
key: 4,
|
|
1892
1892
|
class: "emoo-message__attachments"
|
|
1893
|
-
},
|
|
1893
|
+
}, nn = {
|
|
1894
1894
|
key: 1,
|
|
1895
1895
|
class: "emoo-message__foot"
|
|
1896
|
-
},
|
|
1896
|
+
}, sn = {
|
|
1897
1897
|
key: 0,
|
|
1898
1898
|
class: "emoo-message__time"
|
|
1899
|
-
},
|
|
1899
|
+
}, rn = {
|
|
1900
1900
|
key: 1,
|
|
1901
1901
|
class: "emoo-message__actions"
|
|
1902
|
-
},
|
|
1902
|
+
}, dn = {
|
|
1903
1903
|
key: 1,
|
|
1904
1904
|
class: "emoo-message__side"
|
|
1905
|
-
},
|
|
1905
|
+
}, un = {
|
|
1906
1906
|
key: 0,
|
|
1907
1907
|
class: "emoo-message__avatar"
|
|
1908
|
-
},
|
|
1908
|
+
}, cn = ["src"], mn = /* @__PURE__ */ J({
|
|
1909
1909
|
__name: "EmooMessage",
|
|
1910
1910
|
props: {
|
|
1911
1911
|
role: {},
|
|
@@ -1923,53 +1923,53 @@ const Na = {
|
|
|
1923
1923
|
"data-testid": e.testid,
|
|
1924
1924
|
"data-role": e.role
|
|
1925
1925
|
}, [
|
|
1926
|
-
e.role === "assistant" || e.role === "system" ? (o(), n("div",
|
|
1926
|
+
e.role === "assistant" || e.role === "system" ? (o(), n("div", Yl, [
|
|
1927
1927
|
W(t.$slots, "avatar", {}, () => [
|
|
1928
|
-
e.avatar ? (o(), n("span",
|
|
1928
|
+
e.avatar ? (o(), n("span", Xl, [
|
|
1929
1929
|
d("img", {
|
|
1930
1930
|
src: e.avatar,
|
|
1931
1931
|
alt: ""
|
|
1932
|
-
}, null, 8,
|
|
1932
|
+
}, null, 8, Zl)
|
|
1933
1933
|
])) : g("", !0)
|
|
1934
1934
|
], !0)
|
|
1935
1935
|
])) : g("", !0),
|
|
1936
|
-
d("div",
|
|
1937
|
-
e.role === "system" && e.name ? (o(), n("div",
|
|
1936
|
+
d("div", Jl, [
|
|
1937
|
+
e.role === "system" && e.name ? (o(), n("div", Ql, y(e.name), 1)) : g("", !0),
|
|
1938
1938
|
d("div", {
|
|
1939
1939
|
class: "emoo-message__body",
|
|
1940
1940
|
"data-status": e.status
|
|
1941
1941
|
}, [
|
|
1942
|
-
e.status === "loading" ? (o(), n("span",
|
|
1942
|
+
e.status === "loading" ? (o(), n("span", tn, [...a[0] || (a[0] = [
|
|
1943
1943
|
d("i", null, null, -1),
|
|
1944
1944
|
d("i", null, null, -1),
|
|
1945
1945
|
d("i", null, null, -1)
|
|
1946
|
-
])])) : e.status === "stopped" ? (o(), n("span",
|
|
1946
|
+
])])) : e.status === "stopped" ? (o(), n("span", on, y(l(s)("common.emooMessage.stopped")), 1)) : e.status === "error" ? (o(), n("span", an, y(e.text || l(s)("common.emooMessage.failed")), 1)) : W(t.$slots, "default", {}, () => [
|
|
1947
1947
|
te(y(e.text), 1)
|
|
1948
1948
|
], !0, 3),
|
|
1949
|
-
t.$slots.attachments ? (o(), n("div",
|
|
1949
|
+
t.$slots.attachments ? (o(), n("div", ln, [
|
|
1950
1950
|
W(t.$slots, "attachments", {}, void 0, !0)
|
|
1951
1951
|
])) : g("", !0)
|
|
1952
|
-
], 8,
|
|
1953
|
-
e.time || t.$slots.actions ? (o(), n("div",
|
|
1954
|
-
e.time ? (o(), n("span",
|
|
1955
|
-
t.$slots.actions ? (o(), n("span",
|
|
1952
|
+
], 8, en),
|
|
1953
|
+
e.time || t.$slots.actions ? (o(), n("div", nn, [
|
|
1954
|
+
e.time ? (o(), n("span", sn, y(e.time), 1)) : g("", !0),
|
|
1955
|
+
t.$slots.actions ? (o(), n("span", rn, [
|
|
1956
1956
|
W(t.$slots, "actions", {}, void 0, !0)
|
|
1957
1957
|
])) : g("", !0)
|
|
1958
1958
|
])) : g("", !0)
|
|
1959
1959
|
]),
|
|
1960
|
-
e.role === "user" ? (o(), n("div",
|
|
1960
|
+
e.role === "user" ? (o(), n("div", dn, [
|
|
1961
1961
|
W(t.$slots, "avatar", {}, () => [
|
|
1962
|
-
e.avatar ? (o(), n("span",
|
|
1962
|
+
e.avatar ? (o(), n("span", un, [
|
|
1963
1963
|
d("img", {
|
|
1964
1964
|
src: e.avatar,
|
|
1965
1965
|
alt: ""
|
|
1966
|
-
}, null, 8,
|
|
1966
|
+
}, null, 8, cn)
|
|
1967
1967
|
])) : g("", !0)
|
|
1968
1968
|
], !0)
|
|
1969
1969
|
])) : g("", !0)
|
|
1970
|
-
], 10,
|
|
1970
|
+
], 10, Gl));
|
|
1971
1971
|
}
|
|
1972
|
-
}), Dr = /* @__PURE__ */ se(
|
|
1972
|
+
}), Dr = /* @__PURE__ */ se(mn, [["__scopeId", "data-v-fca7a127"]]), vn = /* @__PURE__ */ J({
|
|
1973
1973
|
__name: "EmooNavMenu",
|
|
1974
1974
|
props: {
|
|
1975
1975
|
items: {},
|
|
@@ -1982,7 +1982,7 @@ const Na = {
|
|
|
1982
1982
|
setup(e, { emit: s }) {
|
|
1983
1983
|
const t = e, a = s, { t: i } = be(), r = Ht(), f = Ot(/* @__PURE__ */ new Map()), u = (m) => typeof m.title == "string" ? i(m.title) : m.title, k = (m) => !!(m.children && m.children.length > 0), v = z(
|
|
1984
1984
|
() => t.items.filter((m) => !m.hidden && t.canShow(m))
|
|
1985
|
-
), _ = (m) => (m.children ?? []).filter((R) => !R.hidden && t.canShow(R)), T = z(() => t.activePath ?? ""), $ = (m) => !!m.action && !m.path && !m.children,
|
|
1985
|
+
), _ = (m) => (m.children ?? []).filter((R) => !R.hidden && t.canShow(R)), T = z(() => t.activePath ?? ""), $ = (m) => !!m.action && !m.path && !m.children, A = (m) => m.active ?? T.value === (m.path || m.key), I = (m) => m.path && T.value.startsWith(m.path) ? !0 : (m.children ?? []).some((R) => R.path && T.value.startsWith(R.path) || I(R)), S = (m) => f.get(m.key) ?? I(m), V = (m) => `emoo-nav-${m.key.replace(/[^a-zA-Z0-9_-]/g, "-")}-children`, P = (m) => {
|
|
1986
1986
|
const R = !S(m);
|
|
1987
1987
|
f.set(m.key, R), R && m.path && t.navigate?.(m.path), a("group-select", m, R);
|
|
1988
1988
|
}, oe = (m) => {
|
|
@@ -1992,12 +1992,12 @@ const Na = {
|
|
|
1992
1992
|
return R === 0 ? ge("button", {
|
|
1993
1993
|
type: "button",
|
|
1994
1994
|
class: ["single-menu-item", {
|
|
1995
|
-
"is-active":
|
|
1995
|
+
"is-active": A(m),
|
|
1996
1996
|
"functional-button": $(m) && m.active !== !0
|
|
1997
1997
|
}],
|
|
1998
1998
|
"data-testid": m.testid,
|
|
1999
1999
|
"aria-pressed": typeof m.active == "boolean" ? m.active : void 0,
|
|
2000
|
-
"aria-current":
|
|
2000
|
+
"aria-current": A(m) && m.path ? "page" : void 0,
|
|
2001
2001
|
onClick: (re) => {
|
|
2002
2002
|
re.stopPropagation(), oe(m);
|
|
2003
2003
|
}
|
|
@@ -2008,9 +2008,9 @@ const Na = {
|
|
|
2008
2008
|
le(m)
|
|
2009
2009
|
]) : ge("button", {
|
|
2010
2010
|
type: "button",
|
|
2011
|
-
class: ["child-menu-item", { "is-active":
|
|
2011
|
+
class: ["child-menu-item", { "is-active": A(m) }],
|
|
2012
2012
|
"data-testid": m.testid,
|
|
2013
|
-
"aria-current":
|
|
2013
|
+
"aria-current": A(m) && m.path ? "page" : void 0,
|
|
2014
2014
|
onClick: (re) => {
|
|
2015
2015
|
re.stopPropagation(), oe(m);
|
|
2016
2016
|
}
|
|
@@ -2026,7 +2026,7 @@ const Na = {
|
|
|
2026
2026
|
"aria-controls": V(m),
|
|
2027
2027
|
"data-testid": m.testid ? `${m.testid}-group` : void 0,
|
|
2028
2028
|
onClick: (re) => {
|
|
2029
|
-
re.stopPropagation(),
|
|
2029
|
+
re.stopPropagation(), P(m);
|
|
2030
2030
|
}
|
|
2031
2031
|
}, [
|
|
2032
2032
|
r.leading?.({ item: m }) ?? (m.icon ? ge(m.icon, { class: "ic" }) : null),
|
|
@@ -2040,7 +2040,7 @@ const Na = {
|
|
|
2040
2040
|
"aria-controls": V(m),
|
|
2041
2041
|
"data-testid": m.testid ? `${m.testid}-group` : void 0,
|
|
2042
2042
|
onClick: (re) => {
|
|
2043
|
-
re.stopPropagation(),
|
|
2043
|
+
re.stopPropagation(), P(m);
|
|
2044
2044
|
}
|
|
2045
2045
|
}, [
|
|
2046
2046
|
ge("span", { class: "child-menu-title" }, u(m)),
|
|
@@ -2067,7 +2067,7 @@ const Na = {
|
|
|
2067
2067
|
}))), 128))
|
|
2068
2068
|
], 2));
|
|
2069
2069
|
}
|
|
2070
|
-
}), Er = /* @__PURE__ */ se(
|
|
2070
|
+
}), Er = /* @__PURE__ */ se(vn, [["__scopeId", "data-v-ebbf674d"]]), fn = { class: "emoo-nav-segmented" }, hn = ["onClick"], yn = /* @__PURE__ */ J({
|
|
2071
2071
|
__name: "EmooNavSegmented",
|
|
2072
2072
|
props: {
|
|
2073
2073
|
items: {},
|
|
@@ -2079,7 +2079,7 @@ const Na = {
|
|
|
2079
2079
|
const t = e, a = s, { t: i } = be(), r = (u) => typeof u.title == "string" ? i(u.title) : u.title, f = (u) => {
|
|
2080
2080
|
a("select", u), u.path && t.navigate?.(u.path);
|
|
2081
2081
|
};
|
|
2082
|
-
return (u, k) => (o(), n("nav",
|
|
2082
|
+
return (u, k) => (o(), n("nav", fn, [
|
|
2083
2083
|
(o(!0), n(L, null, Z(e.items, (v) => (o(), n("button", {
|
|
2084
2084
|
key: v.key,
|
|
2085
2085
|
type: "button",
|
|
@@ -2091,10 +2091,10 @@ const Na = {
|
|
|
2091
2091
|
"aria-hidden": "true"
|
|
2092
2092
|
})) : g("", !0),
|
|
2093
2093
|
d("span", null, y(r(v)), 1)
|
|
2094
|
-
], 10,
|
|
2094
|
+
], 10, hn))), 128))
|
|
2095
2095
|
]));
|
|
2096
2096
|
}
|
|
2097
|
-
}), xr = /* @__PURE__ */ se(
|
|
2097
|
+
}), xr = /* @__PURE__ */ se(yn, [["__scopeId", "data-v-a88dea1a"]]), pn = /* @__PURE__ */ J({
|
|
2098
2098
|
__name: "EmooOptionRows",
|
|
2099
2099
|
props: {
|
|
2100
2100
|
options: {},
|
|
@@ -2179,21 +2179,21 @@ const Na = {
|
|
|
2179
2179
|
W(u.$slots, "append", {}, void 0, !0)
|
|
2180
2180
|
], 2));
|
|
2181
2181
|
}
|
|
2182
|
-
}), Ir = /* @__PURE__ */ se(
|
|
2182
|
+
}), Ir = /* @__PURE__ */ se(pn, [["__scopeId", "data-v-44e7d258"]]), bn = {
|
|
2183
2183
|
key: 0,
|
|
2184
2184
|
class: "emt-foot",
|
|
2185
2185
|
"data-testid": "emt-foot"
|
|
2186
|
-
},
|
|
2186
|
+
}, gn = { class: "emt-foot__info" }, kn = { class: "emt-foot__right" }, _n = ["aria-label"], $n = {
|
|
2187
2187
|
class: "emt-foot__size",
|
|
2188
2188
|
type: "button",
|
|
2189
2189
|
"data-testid": "emt-pagesize"
|
|
2190
|
-
},
|
|
2190
|
+
}, wn = { class: "emt-colmenu__list" }, Sn = { class: "emt-tick" }, Cn = {
|
|
2191
2191
|
class: "emt-pager",
|
|
2192
2192
|
"data-testid": "emt-pager"
|
|
2193
|
-
},
|
|
2193
|
+
}, Tn = ["disabled", "aria-label"], Dn = ["data-testid", "onClick"], En = {
|
|
2194
2194
|
key: 1,
|
|
2195
2195
|
class: "emt-pager__btn is-ellipsis"
|
|
2196
|
-
},
|
|
2196
|
+
}, xn = ["disabled", "aria-label"], In = /* @__PURE__ */ J({
|
|
2197
2197
|
__name: "EmooPagination",
|
|
2198
2198
|
props: {
|
|
2199
2199
|
total: {},
|
|
@@ -2207,7 +2207,7 @@ const Na = {
|
|
|
2207
2207
|
setup(e, { emit: s }) {
|
|
2208
2208
|
const t = e, a = s, { t: i } = be(), r = z(() => t.page), f = z(() => Math.max(1, Math.ceil(t.total / t.pageSize))), u = z(() => (r.value - 1) * t.pageSize + 1), k = z(() => Math.min(t.total, r.value * t.pageSize)), v = (I) => I.toLocaleString(), _ = z(() => {
|
|
2209
2209
|
const I = f.value, S = r.value;
|
|
2210
|
-
return I <= 7 ? Array.from({ length: I }, (V,
|
|
2210
|
+
return I <= 7 ? Array.from({ length: I }, (V, P) => P + 1) : S <= 4 ? [1, 2, 3, 4, 5, "…", I] : S >= I - 3 ? [1, "…", I - 4, I - 3, I - 2, I - 1, I] : [1, "…", S - 1, S, S + 1, "…", I];
|
|
2211
2211
|
}), T = (I) => {
|
|
2212
2212
|
const S = Math.min(Math.max(1, I), f.value);
|
|
2213
2213
|
S !== t.page && a("update:page", S);
|
|
@@ -2217,22 +2217,22 @@ const Na = {
|
|
|
2217
2217
|
ze(f, (I) => {
|
|
2218
2218
|
t.page > I && a("update:page", I);
|
|
2219
2219
|
});
|
|
2220
|
-
const
|
|
2220
|
+
const A = z(
|
|
2221
2221
|
() => t.density === "compact" ? i(t.densityBase === "comfort" ? "common.emooTable.switchToComfort" : "common.emooTable.switchToStandard") : i("common.emooTable.switchToCompact")
|
|
2222
2222
|
);
|
|
2223
|
-
return (I, S) => e.total > 0 ? (o(), n("footer",
|
|
2224
|
-
d("span",
|
|
2225
|
-
d("div",
|
|
2223
|
+
return (I, S) => e.total > 0 ? (o(), n("footer", bn, [
|
|
2224
|
+
d("span", gn, y(l(i)("common.emooTable.totalInfo", { total: v(e.total), from: v(u.value), to: v(k.value) })), 1),
|
|
2225
|
+
d("div", kn, [
|
|
2226
2226
|
e.density ? (o(), M(Se, {
|
|
2227
2227
|
key: 0,
|
|
2228
|
-
content:
|
|
2228
|
+
content: A.value,
|
|
2229
2229
|
placement: "top"
|
|
2230
2230
|
}, {
|
|
2231
2231
|
default: D(() => [
|
|
2232
2232
|
d("button", {
|
|
2233
2233
|
class: O(["emt-foot__dens", { "is-on": e.density === "compact" }]),
|
|
2234
2234
|
type: "button",
|
|
2235
|
-
"aria-label":
|
|
2235
|
+
"aria-label": A.value,
|
|
2236
2236
|
"data-testid": "emt-density",
|
|
2237
2237
|
onClick: S[0] || (S[0] = (V) => a("update:density", e.density === "compact" ? "default" : "compact"))
|
|
2238
2238
|
}, [
|
|
@@ -2240,7 +2240,7 @@ const Na = {
|
|
|
2240
2240
|
size: 14,
|
|
2241
2241
|
"aria-hidden": "true"
|
|
2242
2242
|
})
|
|
2243
|
-
], 10,
|
|
2243
|
+
], 10, _n)
|
|
2244
2244
|
]),
|
|
2245
2245
|
_: 1
|
|
2246
2246
|
}, 8, ["content"])) : g("", !0),
|
|
@@ -2251,7 +2251,7 @@ const Na = {
|
|
|
2251
2251
|
onCommand: S[1] || (S[1] = (V) => $(Number(V)))
|
|
2252
2252
|
}, {
|
|
2253
2253
|
dropdown: D(() => [
|
|
2254
|
-
d("div",
|
|
2254
|
+
d("div", wn, [
|
|
2255
2255
|
(o(!0), n(L, null, Z(e.pageSizes, (V) => (o(), M(l(fo), {
|
|
2256
2256
|
key: V,
|
|
2257
2257
|
class: O(["emt-colmenu__item", { "is-on": V === e.pageSize }]),
|
|
@@ -2259,7 +2259,7 @@ const Na = {
|
|
|
2259
2259
|
"data-testid": `emt-pagesize-${V}`
|
|
2260
2260
|
}, {
|
|
2261
2261
|
default: D(() => [
|
|
2262
|
-
d("span",
|
|
2262
|
+
d("span", Sn, [
|
|
2263
2263
|
V === e.pageSize ? (o(), M(l(Zt), {
|
|
2264
2264
|
key: 0,
|
|
2265
2265
|
size: 13,
|
|
@@ -2273,7 +2273,7 @@ const Na = {
|
|
|
2273
2273
|
])
|
|
2274
2274
|
]),
|
|
2275
2275
|
default: D(() => [
|
|
2276
|
-
d("button",
|
|
2276
|
+
d("button", $n, [
|
|
2277
2277
|
te(y(l(i)("common.emooTable.perPage", { n: e.pageSize })) + " ", 1),
|
|
2278
2278
|
H(l(Bt), {
|
|
2279
2279
|
size: 11,
|
|
@@ -2283,7 +2283,7 @@ const Na = {
|
|
|
2283
2283
|
]),
|
|
2284
2284
|
_: 1
|
|
2285
2285
|
}),
|
|
2286
|
-
d("div",
|
|
2286
|
+
d("div", Cn, [
|
|
2287
2287
|
d("button", {
|
|
2288
2288
|
class: "emt-pager__btn",
|
|
2289
2289
|
type: "button",
|
|
@@ -2296,15 +2296,15 @@ const Na = {
|
|
|
2296
2296
|
size: 14,
|
|
2297
2297
|
"aria-hidden": "true"
|
|
2298
2298
|
})
|
|
2299
|
-
], 8,
|
|
2300
|
-
(o(!0), n(L, null, Z(_.value, (V,
|
|
2299
|
+
], 8, Tn),
|
|
2300
|
+
(o(!0), n(L, null, Z(_.value, (V, P) => (o(), n(L, { key: P }, [
|
|
2301
2301
|
typeof V == "number" ? (o(), n("button", {
|
|
2302
2302
|
key: 0,
|
|
2303
2303
|
class: O(["emt-pager__btn", { "is-active": V === r.value }]),
|
|
2304
2304
|
type: "button",
|
|
2305
2305
|
"data-testid": `emt-page-${V}`,
|
|
2306
2306
|
onClick: (oe) => T(V)
|
|
2307
|
-
}, y(V), 11,
|
|
2307
|
+
}, y(V), 11, Dn)) : (o(), n("span", En, "…"))
|
|
2308
2308
|
], 64))), 128)),
|
|
2309
2309
|
d("button", {
|
|
2310
2310
|
class: "emt-pager__btn",
|
|
@@ -2318,12 +2318,12 @@ const Na = {
|
|
|
2318
2318
|
size: 14,
|
|
2319
2319
|
"aria-hidden": "true"
|
|
2320
2320
|
})
|
|
2321
|
-
], 8,
|
|
2321
|
+
], 8, xn)
|
|
2322
2322
|
])
|
|
2323
2323
|
])
|
|
2324
2324
|
])) : g("", !0);
|
|
2325
2325
|
}
|
|
2326
|
-
}),
|
|
2326
|
+
}), zn = /* @__PURE__ */ se(In, [["__scopeId", "data-v-fc98e78c"]]), zr = /* @__PURE__ */ J({
|
|
2327
2327
|
__name: "EmooPopover",
|
|
2328
2328
|
props: {
|
|
2329
2329
|
popperClass: { default: "" },
|
|
@@ -2349,13 +2349,13 @@ const Na = {
|
|
|
2349
2349
|
} : void 0
|
|
2350
2350
|
]), 1040, ["show-arrow", "popper-class"]));
|
|
2351
2351
|
}
|
|
2352
|
-
}),
|
|
2352
|
+
}), Mn = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], Rn = {
|
|
2353
2353
|
class: "emoo-progress__track",
|
|
2354
2354
|
"aria-hidden": "true"
|
|
2355
|
-
},
|
|
2355
|
+
}, Vn = {
|
|
2356
2356
|
key: 0,
|
|
2357
2357
|
class: "emoo-progress__label"
|
|
2358
|
-
},
|
|
2358
|
+
}, Bn = /* @__PURE__ */ J({
|
|
2359
2359
|
__name: "EmooProgress",
|
|
2360
2360
|
props: {
|
|
2361
2361
|
value: { default: null },
|
|
@@ -2382,23 +2382,23 @@ const Na = {
|
|
|
2382
2382
|
"aria-valuenow": a.value ? void 0 : i.value,
|
|
2383
2383
|
"aria-valuetext": f.value
|
|
2384
2384
|
}, [
|
|
2385
|
-
d("span",
|
|
2385
|
+
d("span", Rn, [
|
|
2386
2386
|
d("span", {
|
|
2387
2387
|
class: "emoo-progress__fill",
|
|
2388
2388
|
style: Ce(r.value)
|
|
2389
2389
|
}, null, 4)
|
|
2390
2390
|
]),
|
|
2391
|
-
e.label ? (o(), n("span",
|
|
2392
|
-
], 10,
|
|
2391
|
+
e.label ? (o(), n("span", Vn, y(e.label), 1)) : g("", !0)
|
|
2392
|
+
], 10, Mn));
|
|
2393
2393
|
}
|
|
2394
|
-
}),
|
|
2394
|
+
}), Pn = /* @__PURE__ */ se(Bn, [["__scopeId", "data-v-cab4f706"]]), An = { class: "emoo-rsel__opt" }, Ln = ["src"], Kn = { class: "emoo-rsel__col" }, On = { class: "emoo-rsel__name" }, Un = {
|
|
2395
2395
|
key: 0,
|
|
2396
2396
|
class: "emoo-rsel__desc"
|
|
2397
|
-
},
|
|
2397
|
+
}, Hn = {
|
|
2398
2398
|
class: "emoo-sel-remote-error",
|
|
2399
2399
|
role: "alert",
|
|
2400
2400
|
"data-testid": "remote-error"
|
|
2401
|
-
},
|
|
2401
|
+
}, Fn = /* @__PURE__ */ J({
|
|
2402
2402
|
__name: "EmooRoleSelect",
|
|
2403
2403
|
props: {
|
|
2404
2404
|
modelValue: {},
|
|
@@ -2412,11 +2412,11 @@ const Na = {
|
|
|
2412
2412
|
},
|
|
2413
2413
|
emits: ["update:modelValue", "update:selected"],
|
|
2414
2414
|
setup(e, { emit: s }) {
|
|
2415
|
-
const t = e, a = s, { t: i } = be(), r = z(() => t.source !== void 0), { items: f, loading: u, error: k, retry: v, search: _, onVisibleChange: T, popperClass: $ } = ot(() => t.source, "emoo-rsel-popper"), { mergedOptions:
|
|
2415
|
+
const t = e, a = s, { t: i } = be(), r = z(() => t.source !== void 0), { items: f, loading: u, error: k, retry: v, search: _, onVisibleChange: T, popperClass: $ } = ot(() => t.source, "emoo-rsel-popper"), { mergedOptions: A, selectedOptions: I, remember: S } = at(
|
|
2416
2416
|
() => t.modelValue,
|
|
2417
2417
|
() => r.value ? f.value : t.options ?? [],
|
|
2418
2418
|
() => t.selected ?? []
|
|
2419
|
-
), V = (m) =>
|
|
2419
|
+
), V = (m) => A.value.find((R) => R.id === m), P = nt(), oe = z(() => P.disabled !== void 0 && P.disabled !== !1), le = (m) => ({ ...m, square: !0 }), ve = (m) => {
|
|
2420
2420
|
const R = S(m);
|
|
2421
2421
|
a("update:modelValue", m), a("update:selected", R);
|
|
2422
2422
|
}, X = (m) => {
|
|
@@ -2439,13 +2439,13 @@ const Na = {
|
|
|
2439
2439
|
onVisibleChange: l(T)
|
|
2440
2440
|
}, Oe({
|
|
2441
2441
|
default: D(() => [
|
|
2442
|
-
(o(!0), n(L, null, Z(l(
|
|
2442
|
+
(o(!0), n(L, null, Z(l(A), (U) => (o(), M(l(Ye), {
|
|
2443
2443
|
key: U.id,
|
|
2444
2444
|
label: U.name,
|
|
2445
2445
|
value: U.id
|
|
2446
2446
|
}, {
|
|
2447
2447
|
default: D(() => [
|
|
2448
|
-
d("span",
|
|
2448
|
+
d("span", An, [
|
|
2449
2449
|
d("span", {
|
|
2450
2450
|
class: "emoo-rsel__avatar",
|
|
2451
2451
|
style: Ce({ "--tint": U.color || "var(--el-color-primary)" })
|
|
@@ -2455,13 +2455,13 @@ const Na = {
|
|
|
2455
2455
|
src: U.avatar,
|
|
2456
2456
|
alt: "",
|
|
2457
2457
|
class: "emoo-rsel__img"
|
|
2458
|
-
}, null, 8,
|
|
2458
|
+
}, null, 8, Ln)) : (o(), n(L, { key: 1 }, [
|
|
2459
2459
|
te(y(U.name[0]), 1)
|
|
2460
2460
|
], 64))
|
|
2461
2461
|
], 4),
|
|
2462
|
-
d("span",
|
|
2463
|
-
d("span",
|
|
2464
|
-
U.desc ? (o(), n("span",
|
|
2462
|
+
d("span", Kn, [
|
|
2463
|
+
d("span", On, y(U.name), 1),
|
|
2464
|
+
U.desc ? (o(), n("span", Un, y(U.desc), 1)) : g("", !0)
|
|
2465
2465
|
])
|
|
2466
2466
|
])
|
|
2467
2467
|
]),
|
|
@@ -2494,7 +2494,7 @@ const Na = {
|
|
|
2494
2494
|
l(k) ? {
|
|
2495
2495
|
name: "footer",
|
|
2496
2496
|
fn: D(() => [
|
|
2497
|
-
d("div",
|
|
2497
|
+
d("div", Hn, [
|
|
2498
2498
|
d("span", null, y(l(i)("common.emooSelect.loadFailed")), 1),
|
|
2499
2499
|
d("button", {
|
|
2500
2500
|
type: "button",
|
|
@@ -2508,10 +2508,10 @@ const Na = {
|
|
|
2508
2508
|
} : void 0
|
|
2509
2509
|
]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
|
|
2510
2510
|
}
|
|
2511
|
-
}), Mr = /* @__PURE__ */ se(
|
|
2511
|
+
}), Mr = /* @__PURE__ */ se(Fn, [["__scopeId", "data-v-6c4ae65a"]]), Nn = ["aria-label"], Wn = ["aria-pressed", "aria-label", "disabled", "onClick"], qn = { key: 1 }, jn = {
|
|
2512
2512
|
key: 2,
|
|
2513
2513
|
class: "emoo-segmented__count"
|
|
2514
|
-
},
|
|
2514
|
+
}, Gn = /* @__PURE__ */ J({
|
|
2515
2515
|
__name: "EmooSegmented",
|
|
2516
2516
|
props: {
|
|
2517
2517
|
options: {},
|
|
@@ -2545,16 +2545,16 @@ const Na = {
|
|
|
2545
2545
|
size: i.value,
|
|
2546
2546
|
"aria-hidden": "true"
|
|
2547
2547
|
}, null, 8, ["size"])) : g("", !0),
|
|
2548
|
-
v.label ? (o(), n("span",
|
|
2549
|
-
v.count !== void 0 ? (o(), n("span",
|
|
2550
|
-
], 10,
|
|
2551
|
-
], 10,
|
|
2548
|
+
v.label ? (o(), n("span", qn, y(v.label), 1)) : g("", !0),
|
|
2549
|
+
v.count !== void 0 ? (o(), n("span", jn, y(v.count), 1)) : g("", !0)
|
|
2550
|
+
], 10, Wn))), 128))
|
|
2551
|
+
], 10, Nn));
|
|
2552
2552
|
}
|
|
2553
|
-
}),
|
|
2553
|
+
}), Yn = /* @__PURE__ */ se(Gn, [["__scopeId", "data-v-bcd69b5a"]]), Xn = /^(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}))?/;
|
|
2554
2554
|
function Te(e) {
|
|
2555
2555
|
if (e instanceof Date) return Number.isNaN(e.getTime()) ? null : new Date(e.getTime());
|
|
2556
2556
|
if (typeof e != "string") return null;
|
|
2557
|
-
const s =
|
|
2557
|
+
const s = Xn.exec(e.trim());
|
|
2558
2558
|
if (!s) return null;
|
|
2559
2559
|
const [, t, a, i, r, f] = s;
|
|
2560
2560
|
return new Date(Number(t), Number(a) - 1, Number(i), Number(r ?? 0), Number(f ?? 0));
|
|
@@ -2577,15 +2577,15 @@ function no(e, s) {
|
|
|
2577
2577
|
const t = (e.getDay() - s + 7) % 7, a = Me(e, -t);
|
|
2578
2578
|
return a.setHours(0, 0, 0, 0), a;
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2580
|
+
function Zn(e, s = 1) {
|
|
2581
2581
|
const t = new Date(e.getFullYear(), e.getMonth(), 1), a = no(t, s);
|
|
2582
2582
|
return Array.from({ length: 42 }, (i, r) => Me(a, r));
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2584
|
+
function Jn(e, s = 1) {
|
|
2585
2585
|
const t = no(e, s);
|
|
2586
2586
|
return Array.from({ length: 7 }, (a, i) => Me(t, i));
|
|
2587
2587
|
}
|
|
2588
|
-
function
|
|
2588
|
+
function Qn(e, s) {
|
|
2589
2589
|
const t = Te(e), a = Te(s);
|
|
2590
2590
|
return !t || !a ? 0 : Math.round((Date.UTC(a.getFullYear(), a.getMonth(), a.getDate()) - Date.UTC(t.getFullYear(), t.getMonth(), t.getDate())) / 864e5);
|
|
2591
2591
|
}
|
|
@@ -2598,17 +2598,17 @@ function Rr(e, s) {
|
|
|
2598
2598
|
};
|
|
2599
2599
|
return { start: t(e.start), ...e.end ? { end: t(e.end) } : {} };
|
|
2600
2600
|
}
|
|
2601
|
-
const
|
|
2601
|
+
const es = /[ T]\d{2}:\d{2}/;
|
|
2602
2602
|
function so(e) {
|
|
2603
2603
|
const s = Te(e.start);
|
|
2604
2604
|
if (!s) return null;
|
|
2605
2605
|
const t = ke(s), a = Te(e.end);
|
|
2606
2606
|
if (!a) return { startKey: t, endKey: t };
|
|
2607
2607
|
let i = ke(a);
|
|
2608
|
-
const r = !e.allDay &&
|
|
2608
|
+
const r = !e.allDay && es.test(e.end ?? "") && a.getHours() === 0 && a.getMinutes() === 0;
|
|
2609
2609
|
return i > t && r && (i = ke(Me(a, -1))), { startKey: t, endKey: i < t ? t : i };
|
|
2610
2610
|
}
|
|
2611
|
-
function
|
|
2611
|
+
function ts(e, s, t) {
|
|
2612
2612
|
const a = [...new Set(s.map(ke))], i = /* @__PURE__ */ new Map();
|
|
2613
2613
|
for (const f of e) {
|
|
2614
2614
|
if (t && f.calendarId && !t.has(f.calendarId)) continue;
|
|
@@ -2628,65 +2628,65 @@ function es(e, s, t) {
|
|
|
2628
2628
|
f.sort((u, k) => +!!k.event.allDay - +!!u.event.allDay || r(u.event) - r(k.event) || u.event.title.localeCompare(k.event.title));
|
|
2629
2629
|
return i;
|
|
2630
2630
|
}
|
|
2631
|
-
const
|
|
2631
|
+
const os = ["aria-label"], as = { class: "ems-bar" }, ls = { class: "ems-bar__nav" }, ns = ["aria-label"], ss = ["aria-label"], is = {
|
|
2632
2632
|
class: "ems-bar__title",
|
|
2633
2633
|
"data-testid": "ems-title"
|
|
2634
|
-
},
|
|
2634
|
+
}, rs = ["aria-label"], ds = ["data-testid"], us = { class: "ems-cals__name" }, cs = {
|
|
2635
2635
|
key: 0,
|
|
2636
2636
|
class: "ems-cals__ro"
|
|
2637
|
-
},
|
|
2637
|
+
}, ms = ["aria-label", "data-testid", "onClick"], vs = ["aria-label", "data-testid", "onClick"], fs = ["aria-label"], hs = {
|
|
2638
2638
|
class: "ems-month__week",
|
|
2639
2639
|
role: "row"
|
|
2640
|
-
},
|
|
2640
|
+
}, ys = ["tabindex", "aria-label", "data-testid", "onClick", "onKeydown", "onDblclick", "onDragover", "onDragleave", "onDrop"], ps = { class: "ems-month__num" }, bs = ["draggable", "data-testid", "title", "onClick", "onDragstart"], gs = {
|
|
2641
2641
|
key: 1,
|
|
2642
2642
|
class: "ems-chip__time"
|
|
2643
|
-
},
|
|
2643
|
+
}, ks = { class: "ems-chip__title" }, _s = ["data-testid", "onClick"], $s = {
|
|
2644
2644
|
key: 2,
|
|
2645
2645
|
class: "ems-week",
|
|
2646
2646
|
"data-testid": "ems-week"
|
|
2647
|
-
},
|
|
2647
|
+
}, ws = ["data-testid", "onDragover", "onDragleave", "onDrop"], Ss = { class: "ems-week__head" }, Cs = { class: "ems-week__wd" }, Ts = { class: "ems-week__num" }, Ds = {
|
|
2648
2648
|
key: 0,
|
|
2649
2649
|
class: "ems-week__allday"
|
|
2650
|
-
},
|
|
2650
|
+
}, Es = ["draggable", "title", "onClick", "onDragstart"], xs = { class: "ems-chip__title" }, Is = { class: "ems-week__list" }, zs = ["draggable", "data-testid", "title", "onClick", "onDragstart"], Ms = { class: "ems-week__time" }, Rs = { class: "ems-week__title" }, Vs = {
|
|
2651
2651
|
key: 0,
|
|
2652
2652
|
class: "ems-week__empty"
|
|
2653
|
-
},
|
|
2653
|
+
}, Bs = {
|
|
2654
2654
|
key: 3,
|
|
2655
2655
|
class: "ems-list",
|
|
2656
2656
|
"data-testid": "ems-list"
|
|
2657
|
-
},
|
|
2657
|
+
}, Ps = ["data-testid"], As = { class: "ems-list__date" }, Ls = { class: "ems-list__day" }, Ks = { class: "ems-list__wd" }, Os = { class: "ems-list__rows" }, Us = ["data-testid", "onClick"], Hs = { class: "ems-list__time" }, Fs = { class: "ems-list__main" }, Ns = { class: "ems-list__title" }, Ws = {
|
|
2658
2658
|
key: 0,
|
|
2659
2659
|
class: "ems-list__meta"
|
|
2660
|
-
},
|
|
2660
|
+
}, qs = {
|
|
2661
2661
|
key: 0,
|
|
2662
2662
|
class: "ems-list__empty",
|
|
2663
2663
|
"data-testid": "ems-list-empty"
|
|
2664
|
-
},
|
|
2664
|
+
}, js = {
|
|
2665
2665
|
key: 0,
|
|
2666
2666
|
class: "ems-detail"
|
|
2667
|
-
},
|
|
2667
|
+
}, Gs = { class: "ems-detail__head" }, Ys = {
|
|
2668
2668
|
class: "ems-detail__title",
|
|
2669
2669
|
"data-testid": "ems-detail-title"
|
|
2670
|
-
},
|
|
2670
|
+
}, Xs = {
|
|
2671
2671
|
key: 0,
|
|
2672
2672
|
class: "ems-detail__meta"
|
|
2673
|
-
},
|
|
2673
|
+
}, Zs = { class: "ems-detail__fields" }, Js = { class: "ems-detail__field" }, Qs = { "data-testid": "ems-detail-time" }, ei = {
|
|
2674
2674
|
key: 0,
|
|
2675
2675
|
class: "ems-detail__field"
|
|
2676
|
-
},
|
|
2676
|
+
}, ti = {
|
|
2677
2677
|
key: 0,
|
|
2678
2678
|
class: "ems-cals__ro"
|
|
2679
|
-
},
|
|
2679
|
+
}, oi = {
|
|
2680
2680
|
key: 1,
|
|
2681
2681
|
class: "ems-detail__ro-hint",
|
|
2682
2682
|
"data-testid": "ems-detail-ro"
|
|
2683
|
-
},
|
|
2683
|
+
}, ai = {
|
|
2684
2684
|
key: 2,
|
|
2685
2685
|
class: "ems-detail__desc"
|
|
2686
|
-
},
|
|
2686
|
+
}, li = {
|
|
2687
2687
|
key: 3,
|
|
2688
2688
|
class: "ems-detail__actions"
|
|
2689
|
-
},
|
|
2689
|
+
}, ni = /* @__PURE__ */ J({
|
|
2690
2690
|
__name: "EmooSchedule",
|
|
2691
2691
|
props: {
|
|
2692
2692
|
events: {},
|
|
@@ -2707,7 +2707,7 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
2707
2707
|
ze(() => i.view, (c) => {
|
|
2708
2708
|
c && (f.value = c);
|
|
2709
2709
|
});
|
|
2710
|
-
const u = F(Te(i.date) ??
|
|
2710
|
+
const u = F(Te(i.date) ?? A());
|
|
2711
2711
|
ze(() => i.date, (c) => {
|
|
2712
2712
|
const x = Te(c);
|
|
2713
2713
|
x && (u.value = x);
|
|
@@ -2725,7 +2725,7 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
2725
2725
|
});
|
|
2726
2726
|
}
|
|
2727
2727
|
const $ = F(ke(u.value));
|
|
2728
|
-
function
|
|
2728
|
+
function A() {
|
|
2729
2729
|
return Te(i.today) ?? /* @__PURE__ */ new Date();
|
|
2730
2730
|
}
|
|
2731
2731
|
function I(c) {
|
|
@@ -2737,8 +2737,8 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
2737
2737
|
function V(c) {
|
|
2738
2738
|
S(f.value === "week" ? Me(u.value, c * 7) : Dt(u.value, c));
|
|
2739
2739
|
}
|
|
2740
|
-
function
|
|
2741
|
-
const c =
|
|
2740
|
+
function P() {
|
|
2741
|
+
const c = A();
|
|
2742
2742
|
$.value = ke(c), S(c);
|
|
2743
2743
|
}
|
|
2744
2744
|
function oe(c) {
|
|
@@ -2749,15 +2749,15 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
2749
2749
|
function X(c) {
|
|
2750
2750
|
return !!(c.calendarId && ve.value.get(c.calendarId)?.readonly);
|
|
2751
2751
|
}
|
|
2752
|
-
const m = z(() =>
|
|
2753
|
-
const c =
|
|
2752
|
+
const m = z(() => Zn(u.value, i.weekStartsOn)), R = z(() => {
|
|
2753
|
+
const c = Jn(u.value, i.weekStartsOn), x = ke(A());
|
|
2754
2754
|
return c.map((C) => ({ date: C, key: ke(C), isToday: ke(C) === x }));
|
|
2755
2755
|
}), U = z(() => {
|
|
2756
|
-
const c = ke(
|
|
2756
|
+
const c = ke(A()), x = u.value.getMonth(), C = m.value.map((w) => ({ date: w, key: ke(w), inMonth: w.getMonth() === x, isToday: ke(w) === c }));
|
|
2757
2757
|
return Array.from({ length: 6 }, (w, j) => C.slice(j * 7, j * 7 + 7));
|
|
2758
2758
|
}), fe = z(() => {
|
|
2759
2759
|
const c = f.value === "week" ? R.value.map((x) => x.date) : m.value;
|
|
2760
|
-
return
|
|
2760
|
+
return ts(i.events, c, le.value);
|
|
2761
2761
|
});
|
|
2762
2762
|
function re(c) {
|
|
2763
2763
|
return fe.value.get(c) ?? [];
|
|
@@ -2861,7 +2861,7 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
2861
2861
|
function rt(c, x) {
|
|
2862
2862
|
if (!ne.value) return;
|
|
2863
2863
|
x.preventDefault();
|
|
2864
|
-
const { event: C, fromDayKey: w } = ne.value, j =
|
|
2864
|
+
const { event: C, fromDayKey: w } = ne.value, j = Qn(w, c);
|
|
2865
2865
|
j !== 0 && r("event-move", { event: C, fromDayKey: w, dayKey: c, deltaDays: j }), He();
|
|
2866
2866
|
}
|
|
2867
2867
|
function dt(c) {
|
|
@@ -2933,8 +2933,8 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
2933
2933
|
"aria-label": e.ariaLabel || l(t)("common.emooSchedule.ariaLabel"),
|
|
2934
2934
|
"data-testid": "emoo-schedule"
|
|
2935
2935
|
}, [
|
|
2936
|
-
d("header",
|
|
2937
|
-
d("div",
|
|
2936
|
+
d("header", as, [
|
|
2937
|
+
d("div", ls, [
|
|
2938
2938
|
d("button", {
|
|
2939
2939
|
type: "button",
|
|
2940
2940
|
class: "ems-bar__arrow",
|
|
@@ -2946,7 +2946,7 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
2946
2946
|
size: 14,
|
|
2947
2947
|
"aria-hidden": "true"
|
|
2948
2948
|
})
|
|
2949
|
-
], 8,
|
|
2949
|
+
], 8, ns),
|
|
2950
2950
|
d("button", {
|
|
2951
2951
|
type: "button",
|
|
2952
2952
|
class: "ems-bar__arrow",
|
|
@@ -2958,16 +2958,16 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
2958
2958
|
size: 14,
|
|
2959
2959
|
"aria-hidden": "true"
|
|
2960
2960
|
})
|
|
2961
|
-
], 8,
|
|
2961
|
+
], 8, ss),
|
|
2962
2962
|
d("button", {
|
|
2963
2963
|
type: "button",
|
|
2964
2964
|
class: "ems-bar__today",
|
|
2965
2965
|
"data-testid": "ems-today",
|
|
2966
|
-
onClick:
|
|
2966
|
+
onClick: P
|
|
2967
2967
|
}, y(l(t)("common.emooSchedule.today")), 1),
|
|
2968
|
-
d("h3",
|
|
2968
|
+
d("h3", is, y(mt.value), 1)
|
|
2969
2969
|
]),
|
|
2970
|
-
H(
|
|
2970
|
+
H(Yn, {
|
|
2971
2971
|
class: "ems-bar__views",
|
|
2972
2972
|
options: qe.value,
|
|
2973
2973
|
"model-value": f.value,
|
|
@@ -2992,8 +2992,8 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
2992
2992
|
class: O(["ems-cals__dot", `ems-tone--${C.tone ?? "brand"}`]),
|
|
2993
2993
|
"aria-hidden": "true"
|
|
2994
2994
|
}, null, 2),
|
|
2995
|
-
d("span",
|
|
2996
|
-
C.readonly ? (o(), n("span",
|
|
2995
|
+
d("span", us, y(C.name), 1),
|
|
2996
|
+
C.readonly ? (o(), n("span", cs, y(l(t)("common.emooSchedule.readonlyTag")), 1)) : g("", !0),
|
|
2997
2997
|
d("button", {
|
|
2998
2998
|
type: "button",
|
|
2999
2999
|
class: "ems-cals__act",
|
|
@@ -3010,7 +3010,7 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3010
3010
|
size: 13,
|
|
3011
3011
|
"aria-hidden": "true"
|
|
3012
3012
|
}))
|
|
3013
|
-
], 8,
|
|
3013
|
+
], 8, ms),
|
|
3014
3014
|
C.shareable ? (o(), n("button", {
|
|
3015
3015
|
key: 1,
|
|
3016
3016
|
type: "button",
|
|
@@ -3023,9 +3023,9 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3023
3023
|
size: 13,
|
|
3024
3024
|
"aria-hidden": "true"
|
|
3025
3025
|
})
|
|
3026
|
-
], 8,
|
|
3027
|
-
], 10,
|
|
3028
|
-
], 8,
|
|
3026
|
+
], 8, vs)) : g("", !0)
|
|
3027
|
+
], 10, ds))), 128))
|
|
3028
|
+
], 8, rs)) : g("", !0),
|
|
3029
3029
|
f.value === "month" ? (o(), n("div", {
|
|
3030
3030
|
key: 1,
|
|
3031
3031
|
class: "ems-month",
|
|
@@ -3034,7 +3034,7 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3034
3034
|
"data-testid": "ems-month",
|
|
3035
3035
|
onKeydown: Y
|
|
3036
3036
|
}, [
|
|
3037
|
-
d("div",
|
|
3037
|
+
d("div", hs, [
|
|
3038
3038
|
(o(!0), n(L, null, Z(Be.value, (C, w) => (o(), n("span", {
|
|
3039
3039
|
key: w,
|
|
3040
3040
|
class: "ems-month__wd",
|
|
@@ -3065,7 +3065,7 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3065
3065
|
onDragleave: (ae) => it(j.key),
|
|
3066
3066
|
onDrop: (ae) => rt(j.key, ae)
|
|
3067
3067
|
}, [
|
|
3068
|
-
d("span",
|
|
3068
|
+
d("span", ps, y(j.date.getDate()), 1),
|
|
3069
3069
|
(o(!0), n(L, null, Z(_e(j.key), (ae) => (o(), n("button", {
|
|
3070
3070
|
key: ae.event.id + ae.dayKey,
|
|
3071
3071
|
type: "button",
|
|
@@ -3083,25 +3083,25 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3083
3083
|
class: "ems-chip__icon",
|
|
3084
3084
|
"aria-hidden": "true"
|
|
3085
3085
|
})) : g("", !0),
|
|
3086
|
-
Fe(ae) ? (o(), n("span",
|
|
3087
|
-
d("span",
|
|
3086
|
+
Fe(ae) ? (o(), n("span", gs, y(Fe(ae)), 1)) : g("", !0),
|
|
3087
|
+
d("span", ks, y(ae.event.title), 1),
|
|
3088
3088
|
X(ae.event) ? (o(), M(l(tt), {
|
|
3089
3089
|
key: 2,
|
|
3090
3090
|
size: 10,
|
|
3091
3091
|
class: "ems-chip__lock",
|
|
3092
3092
|
"aria-hidden": "true"
|
|
3093
3093
|
})) : g("", !0)
|
|
3094
|
-
], 42,
|
|
3094
|
+
], 42, bs))), 128)),
|
|
3095
3095
|
Q(j.key) > 0 ? (o(), n("button", {
|
|
3096
3096
|
key: 0,
|
|
3097
3097
|
type: "button",
|
|
3098
3098
|
class: "ems-month__more",
|
|
3099
3099
|
"data-testid": `ems-more-${j.key}`,
|
|
3100
3100
|
onClick: me((ae) => he(j.key), ["stop"])
|
|
3101
|
-
}, y(l(t)("common.emooSchedule.moreItems", { n: Q(j.key) })), 9,
|
|
3102
|
-
], 42,
|
|
3101
|
+
}, y(l(t)("common.emooSchedule.moreItems", { n: Q(j.key) })), 9, _s)) : g("", !0)
|
|
3102
|
+
], 42, ys))), 128))
|
|
3103
3103
|
]))), 128))
|
|
3104
|
-
], 40,
|
|
3104
|
+
], 40, fs)) : f.value === "week" ? (o(), n("div", $s, [
|
|
3105
3105
|
(o(!0), n(L, null, Z(R.value, (C) => (o(), n("div", {
|
|
3106
3106
|
key: C.key,
|
|
3107
3107
|
class: O(["ems-week__col", { "is-today": C.isToday, "is-drop": C.key === ce.value }]),
|
|
@@ -3110,11 +3110,11 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3110
3110
|
onDragleave: (w) => it(C.key),
|
|
3111
3111
|
onDrop: (w) => rt(C.key, w)
|
|
3112
3112
|
}, [
|
|
3113
|
-
d("header",
|
|
3114
|
-
d("span",
|
|
3115
|
-
d("span",
|
|
3113
|
+
d("header", Ss, [
|
|
3114
|
+
d("span", Cs, y(ct(C.date)), 1),
|
|
3115
|
+
d("span", Ts, y(C.date.getDate()), 1)
|
|
3116
3116
|
]),
|
|
3117
|
-
ut(C.key).length ? (o(), n("div",
|
|
3117
|
+
ut(C.key).length ? (o(), n("div", Ds, [
|
|
3118
3118
|
(o(!0), n(L, null, Z(ut(C.key), (w) => (o(), n("button", {
|
|
3119
3119
|
key: w.event.id + w.dayKey,
|
|
3120
3120
|
type: "button",
|
|
@@ -3125,7 +3125,7 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3125
3125
|
onDragstart: (j) => Xe(w, j),
|
|
3126
3126
|
onDragend: He
|
|
3127
3127
|
}, [
|
|
3128
|
-
d("span",
|
|
3128
|
+
d("span", xs, y(w.event.title), 1),
|
|
3129
3129
|
X(w.event) ? (o(), M(l(tt), {
|
|
3130
3130
|
key: 0,
|
|
3131
3131
|
size: 10,
|
|
@@ -3136,9 +3136,9 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3136
3136
|
key: 1,
|
|
3137
3137
|
class: O(["ems-pill", `ems-tone--${w.event.statusTone ?? "neutral"}`])
|
|
3138
3138
|
}, y(w.event.status), 3)) : g("", !0)
|
|
3139
|
-
], 42,
|
|
3139
|
+
], 42, Es))), 128))
|
|
3140
3140
|
])) : g("", !0),
|
|
3141
|
-
d("div",
|
|
3141
|
+
d("div", Is, [
|
|
3142
3142
|
(o(!0), n(L, null, Z(St(C.key), (w) => (o(), n("button", {
|
|
3143
3143
|
key: w.event.id + w.dayKey,
|
|
3144
3144
|
type: "button",
|
|
@@ -3150,8 +3150,8 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3150
3150
|
onDragstart: (j) => Xe(w, j),
|
|
3151
3151
|
onDragend: He
|
|
3152
3152
|
}, [
|
|
3153
|
-
d("span",
|
|
3154
|
-
d("span",
|
|
3153
|
+
d("span", Ms, y(xe(w.event)), 1),
|
|
3154
|
+
d("span", Rs, [
|
|
3155
3155
|
te(y(w.event.title), 1),
|
|
3156
3156
|
X(w.event) ? (o(), M(l(tt), {
|
|
3157
3157
|
key: 0,
|
|
@@ -3164,21 +3164,21 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3164
3164
|
key: 0,
|
|
3165
3165
|
class: O(["ems-pill", `ems-tone--${w.event.statusTone ?? "neutral"}`])
|
|
3166
3166
|
}, y(w.event.status), 3)) : g("", !0)
|
|
3167
|
-
], 42,
|
|
3168
|
-
re(C.key).length ? g("", !0) : (o(), n("p",
|
|
3167
|
+
], 42, zs))), 128)),
|
|
3168
|
+
re(C.key).length ? g("", !0) : (o(), n("p", Vs, y(l(t)("common.emooSchedule.noArrangement")), 1))
|
|
3169
3169
|
])
|
|
3170
|
-
], 42,
|
|
3171
|
-
])) : (o(), n("div",
|
|
3170
|
+
], 42, ws))), 128))
|
|
3171
|
+
])) : (o(), n("div", Bs, [
|
|
3172
3172
|
(o(!0), n(L, null, Z(Je.value, (C) => (o(), n("div", {
|
|
3173
3173
|
key: C.key,
|
|
3174
3174
|
class: "ems-list__group",
|
|
3175
3175
|
"data-testid": `ems-list-${C.key}`
|
|
3176
3176
|
}, [
|
|
3177
|
-
d("div",
|
|
3178
|
-
d("span",
|
|
3179
|
-
d("span",
|
|
3177
|
+
d("div", As, [
|
|
3178
|
+
d("span", Ls, y(Ct(C.date)), 1),
|
|
3179
|
+
d("span", Ks, y(ct(C.date)), 1)
|
|
3180
3180
|
]),
|
|
3181
|
-
d("div",
|
|
3181
|
+
d("div", Os, [
|
|
3182
3182
|
(o(!0), n(L, null, Z(C.segments, (w) => (o(), n("button", {
|
|
3183
3183
|
key: w.event.id + w.dayKey,
|
|
3184
3184
|
type: "button",
|
|
@@ -3186,9 +3186,9 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3186
3186
|
"data-testid": `ems-lrow-${w.event.id}`,
|
|
3187
3187
|
onClick: (j) => ue(w.event)
|
|
3188
3188
|
}, [
|
|
3189
|
-
d("span",
|
|
3190
|
-
d("span",
|
|
3191
|
-
d("span",
|
|
3189
|
+
d("span", Hs, y(w.event.allDay || !je(w.event) ? l(t)("common.emooSchedule.allDay") : xe(w.event)), 1),
|
|
3190
|
+
d("span", Fs, [
|
|
3191
|
+
d("span", Ns, [
|
|
3192
3192
|
Ie(w.event) ? (o(), M(Re(Ie(w.event)), {
|
|
3193
3193
|
key: 0,
|
|
3194
3194
|
size: 13,
|
|
@@ -3203,16 +3203,16 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3203
3203
|
"aria-hidden": "true"
|
|
3204
3204
|
})) : g("", !0)
|
|
3205
3205
|
]),
|
|
3206
|
-
w.event.meta ? (o(), n("span",
|
|
3206
|
+
w.event.meta ? (o(), n("span", Ws, y(w.event.meta), 1)) : g("", !0)
|
|
3207
3207
|
]),
|
|
3208
3208
|
w.event.status ? (o(), n("span", {
|
|
3209
3209
|
key: 0,
|
|
3210
3210
|
class: O(["ems-pill", `ems-tone--${w.event.statusTone ?? "neutral"}`])
|
|
3211
3211
|
}, y(w.event.status), 3)) : g("", !0)
|
|
3212
|
-
], 10,
|
|
3212
|
+
], 10, Us))), 128))
|
|
3213
3213
|
])
|
|
3214
|
-
], 8,
|
|
3215
|
-
Je.value.length ? g("", !0) : (o(), n("p",
|
|
3214
|
+
], 8, Ps))), 128)),
|
|
3215
|
+
Je.value.length ? g("", !0) : (o(), n("p", qs, y(l(t)("common.emooSchedule.emptyList")), 1))
|
|
3216
3216
|
])),
|
|
3217
3217
|
H(qa, {
|
|
3218
3218
|
modelValue: ie.value,
|
|
@@ -3223,8 +3223,8 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3223
3223
|
"data-testid": "ems-detail"
|
|
3224
3224
|
}, {
|
|
3225
3225
|
default: D(() => [
|
|
3226
|
-
B.value ? (o(), n("div",
|
|
3227
|
-
d("div",
|
|
3226
|
+
B.value ? (o(), n("div", js, [
|
|
3227
|
+
d("div", Gs, [
|
|
3228
3228
|
d("span", {
|
|
3229
3229
|
class: O(["ems-detail__kind", Pe(B.value)])
|
|
3230
3230
|
}, [
|
|
@@ -3240,30 +3240,30 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3240
3240
|
class: O(["ems-pill", `ems-tone--${B.value.statusTone ?? "neutral"}`])
|
|
3241
3241
|
}, y(B.value.status), 3)) : g("", !0)
|
|
3242
3242
|
]),
|
|
3243
|
-
d("h4",
|
|
3244
|
-
B.value.meta ? (o(), n("p",
|
|
3245
|
-
d("dl",
|
|
3246
|
-
d("div",
|
|
3243
|
+
d("h4", Ys, y(B.value.title), 1),
|
|
3244
|
+
B.value.meta ? (o(), n("p", Xs, y(B.value.meta), 1)) : g("", !0),
|
|
3245
|
+
d("dl", Zs, [
|
|
3246
|
+
d("div", Js, [
|
|
3247
3247
|
d("dt", null, y(l(t)("common.emooSchedule.timeLabel")), 1),
|
|
3248
|
-
d("dd",
|
|
3248
|
+
d("dd", Qs, y(N.value), 1)
|
|
3249
3249
|
]),
|
|
3250
|
-
K.value ? (o(), n("div",
|
|
3250
|
+
K.value ? (o(), n("div", ei, [
|
|
3251
3251
|
d("dt", null, y(l(t)("common.emooSchedule.calendarLabel")), 1),
|
|
3252
3252
|
d("dd", null, [
|
|
3253
3253
|
te(y(K.value.name) + " ", 1),
|
|
3254
|
-
K.value.readonly ? (o(), n("span",
|
|
3254
|
+
K.value.readonly ? (o(), n("span", ti, y(l(t)("common.emooSchedule.readonlyTag")), 1)) : g("", !0)
|
|
3255
3255
|
])
|
|
3256
3256
|
])) : g("", !0)
|
|
3257
3257
|
]),
|
|
3258
|
-
X(B.value) ? (o(), n("p",
|
|
3258
|
+
X(B.value) ? (o(), n("p", oi, [
|
|
3259
3259
|
H(l(tt), {
|
|
3260
3260
|
size: 12,
|
|
3261
3261
|
"aria-hidden": "true"
|
|
3262
3262
|
}),
|
|
3263
3263
|
te(" " + y(l(t)("common.emooSchedule.readonlyHint")), 1)
|
|
3264
3264
|
])) : g("", !0),
|
|
3265
|
-
B.value.description ? (o(), n("p",
|
|
3266
|
-
c.$slots["detail-actions"] ? (o(), n("footer",
|
|
3265
|
+
B.value.description ? (o(), n("p", ai, y(B.value.description), 1)) : g("", !0),
|
|
3266
|
+
c.$slots["detail-actions"] ? (o(), n("footer", li, [
|
|
3267
3267
|
W(c.$slots, "detail-actions", {
|
|
3268
3268
|
event: B.value,
|
|
3269
3269
|
calendar: K.value
|
|
@@ -3273,21 +3273,21 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3273
3273
|
]),
|
|
3274
3274
|
_: 3
|
|
3275
3275
|
}, 8, ["modelValue", "title"])
|
|
3276
|
-
], 10,
|
|
3276
|
+
], 10, os));
|
|
3277
3277
|
}
|
|
3278
|
-
}), Vr = /* @__PURE__ */ se(
|
|
3278
|
+
}), Vr = /* @__PURE__ */ se(ni, [["__scopeId", "data-v-a49e6818"]]), si = {
|
|
3279
3279
|
key: 1,
|
|
3280
3280
|
class: "emoo-search-box__top"
|
|
3281
|
-
},
|
|
3281
|
+
}, ii = {
|
|
3282
3282
|
key: 2,
|
|
3283
3283
|
class: "emoo-search-box__extras"
|
|
3284
|
-
},
|
|
3284
|
+
}, ri = { class: "emoo-search-box__field" }, di = {
|
|
3285
3285
|
key: 3,
|
|
3286
3286
|
class: "emoo-search-box__bar"
|
|
3287
|
-
},
|
|
3287
|
+
}, ui = {
|
|
3288
3288
|
key: 0,
|
|
3289
3289
|
class: "emoo-search-box__trailing"
|
|
3290
|
-
},
|
|
3290
|
+
}, ci = /* @__PURE__ */ J({
|
|
3291
3291
|
__name: "EmooSearchBox",
|
|
3292
3292
|
props: {
|
|
3293
3293
|
variant: { default: "composer" },
|
|
@@ -3316,24 +3316,24 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3316
3316
|
]),
|
|
3317
3317
|
_: 1
|
|
3318
3318
|
}, 8, ["content"])) : g("", !0),
|
|
3319
|
-
i.$slots.top ? (o(), n("div",
|
|
3319
|
+
i.$slots.top ? (o(), n("div", si, [
|
|
3320
3320
|
W(i.$slots, "top", {}, void 0, !0)
|
|
3321
3321
|
])) : g("", !0),
|
|
3322
|
-
i.$slots.extras ? (o(), n("div",
|
|
3322
|
+
i.$slots.extras ? (o(), n("div", ii, [
|
|
3323
3323
|
W(i.$slots, "extras", {}, void 0, !0)
|
|
3324
3324
|
])) : g("", !0),
|
|
3325
|
-
d("div",
|
|
3325
|
+
d("div", ri, [
|
|
3326
3326
|
W(i.$slots, "default", {}, void 0, !0)
|
|
3327
3327
|
]),
|
|
3328
|
-
i.$slots.bar || i.$slots.trailing ? (o(), n("div",
|
|
3328
|
+
i.$slots.bar || i.$slots.trailing ? (o(), n("div", di, [
|
|
3329
3329
|
W(i.$slots, "bar", {}, void 0, !0),
|
|
3330
|
-
i.$slots.trailing ? (o(), n("div",
|
|
3330
|
+
i.$slots.trailing ? (o(), n("div", ui, [
|
|
3331
3331
|
W(i.$slots, "trailing", {}, void 0, !0)
|
|
3332
3332
|
])) : g("", !0)
|
|
3333
3333
|
])) : g("", !0)
|
|
3334
3334
|
], 2));
|
|
3335
3335
|
}
|
|
3336
|
-
}), Br = /* @__PURE__ */ se(
|
|
3336
|
+
}), Br = /* @__PURE__ */ se(ci, [["__scopeId", "data-v-98479d22"]]), mi = /* @__PURE__ */ J({
|
|
3337
3337
|
__name: "EmooSidebarShell",
|
|
3338
3338
|
props: {
|
|
3339
3339
|
collapsed: { type: Boolean, default: !1 },
|
|
@@ -3356,7 +3356,7 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3356
3356
|
W(a.$slots, "footer", {}, void 0, !0)
|
|
3357
3357
|
], 6));
|
|
3358
3358
|
}
|
|
3359
|
-
}), Pr = /* @__PURE__ */ se(
|
|
3359
|
+
}), Pr = /* @__PURE__ */ se(mi, [["__scopeId", "data-v-8f94cc28"]]), vi = /* @__PURE__ */ J({
|
|
3360
3360
|
__name: "EmooStatusTag",
|
|
3361
3361
|
props: {
|
|
3362
3362
|
tone: {},
|
|
@@ -3369,10 +3369,10 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3369
3369
|
W(s.$slots, "default", {}, void 0, !0)
|
|
3370
3370
|
], 2));
|
|
3371
3371
|
}
|
|
3372
|
-
}),
|
|
3372
|
+
}), fi = /* @__PURE__ */ se(vi, [["__scopeId", "data-v-9c6a9ab7"]]), hi = { class: "emoo-switcher" }, yi = {
|
|
3373
3373
|
key: 0,
|
|
3374
3374
|
class: "switcher-title"
|
|
3375
|
-
},
|
|
3375
|
+
}, pi = ["data-testid", "onClick"], bi = ["src", "alt"], gi = { class: "switcher-label" }, ki = /* @__PURE__ */ J({
|
|
3376
3376
|
__name: "EmooSwitcherPanel",
|
|
3377
3377
|
props: {
|
|
3378
3378
|
title: {},
|
|
@@ -3384,8 +3384,8 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3384
3384
|
const t = e, a = s, { t: i } = be(), r = (v) => i(v.title), f = z(() => t.title ? i(t.title) : ""), u = z(() => t.items.filter((v) => !v.hidden)), k = (v) => {
|
|
3385
3385
|
a("select", v), v.action?.();
|
|
3386
3386
|
};
|
|
3387
|
-
return (v, _) => (o(), n("div",
|
|
3388
|
-
e.title ? (o(), n("p",
|
|
3387
|
+
return (v, _) => (o(), n("div", hi, [
|
|
3388
|
+
e.title ? (o(), n("p", yi, y(f.value), 1)) : g("", !0),
|
|
3389
3389
|
d("div", {
|
|
3390
3390
|
class: O(["switcher-list", { "is-scrollable": e.scrollable }])
|
|
3391
3391
|
}, [
|
|
@@ -3401,20 +3401,20 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3401
3401
|
src: T.image,
|
|
3402
3402
|
alt: r(T),
|
|
3403
3403
|
class: "switcher-image"
|
|
3404
|
-
}, null, 8,
|
|
3404
|
+
}, null, 8, bi)) : T.icon ? (o(), M(Re(T.icon), {
|
|
3405
3405
|
key: 1,
|
|
3406
3406
|
class: "ic"
|
|
3407
3407
|
})) : g("", !0),
|
|
3408
|
-
d("span",
|
|
3408
|
+
d("span", gi, y(r(T)), 1),
|
|
3409
3409
|
T.active ? (o(), M(l(Zt), {
|
|
3410
3410
|
key: 2,
|
|
3411
3411
|
class: "switcher-check"
|
|
3412
3412
|
})) : g("", !0)
|
|
3413
|
-
], 10,
|
|
3413
|
+
], 10, pi))), 128))
|
|
3414
3414
|
], 2)
|
|
3415
3415
|
]));
|
|
3416
3416
|
}
|
|
3417
|
-
}), Ar = /* @__PURE__ */ se(
|
|
3417
|
+
}), Ar = /* @__PURE__ */ se(ki, [["__scopeId", "data-v-a2309e72"]]), _i = /* @__PURE__ */ J({
|
|
3418
3418
|
__name: "EmooTagsInput",
|
|
3419
3419
|
props: {
|
|
3420
3420
|
modelValue: { default: () => [] },
|
|
@@ -3431,18 +3431,18 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3431
3431
|
}, $ = () => {
|
|
3432
3432
|
const I = r.value;
|
|
3433
3433
|
I !== "" && !t.modelValue.includes(I) && a("update:modelValue", [...t.modelValue, I]), f.value = !1, r.value = "", setTimeout(() => v.value?.$el?.focus?.(), 0);
|
|
3434
|
-
},
|
|
3434
|
+
}, A = (I) => {
|
|
3435
3435
|
!(I instanceof KeyboardEvent) || I.key !== "Enter" || !u.value && !I.isComposing && $();
|
|
3436
3436
|
};
|
|
3437
3437
|
return (I, S) => (o(), n("div", {
|
|
3438
3438
|
class: O(["emoo-tags-input", { "is-disabled": e.disabled }])
|
|
3439
3439
|
}, [
|
|
3440
|
-
(o(!0), n(L, null, Z(e.modelValue, (V,
|
|
3441
|
-
key: `${
|
|
3440
|
+
(o(!0), n(L, null, Z(e.modelValue, (V, P) => (o(), M(l(yo), {
|
|
3441
|
+
key: `${P}:${V}`,
|
|
3442
3442
|
class: "emoo-tags-input__tag",
|
|
3443
3443
|
"disable-transitions": !1,
|
|
3444
3444
|
closable: !e.readonly && !e.disabled,
|
|
3445
|
-
"data-testid": `tags-tag-${
|
|
3445
|
+
"data-testid": `tags-tag-${P}`,
|
|
3446
3446
|
onClose: (oe) => _(V)
|
|
3447
3447
|
}, {
|
|
3448
3448
|
default: D(() => [
|
|
@@ -3463,7 +3463,7 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3463
3463
|
"data-testid": "tags-input",
|
|
3464
3464
|
onCompositionstart: S[1] || (S[1] = (V) => u.value = !0),
|
|
3465
3465
|
onCompositionend: S[2] || (S[2] = (V) => u.value = !1),
|
|
3466
|
-
onKeydown:
|
|
3466
|
+
onKeydown: A,
|
|
3467
3467
|
onBlur: $
|
|
3468
3468
|
}, null, 8, ["modelValue", "placeholder"])) : (o(), M(lt, {
|
|
3469
3469
|
key: 1,
|
|
@@ -3482,8 +3482,8 @@ const ts = ["aria-label"], os = { class: "ems-bar" }, as = { class: "ems-bar__na
|
|
|
3482
3482
|
], 64)) : g("", !0)
|
|
3483
3483
|
], 2));
|
|
3484
3484
|
}
|
|
3485
|
-
}), Lr = /* @__PURE__ */ se(
|
|
3486
|
-
function
|
|
3485
|
+
}), Lr = /* @__PURE__ */ se(_i, [["__scopeId", "data-v-2b248a6f"]]), $i = 140, It = 64;
|
|
3486
|
+
function wi(e) {
|
|
3487
3487
|
const s = e.minColWidth ?? It, t = (E) => e.columns().find((B) => B.key === E), a = () => e.columns().map((E) => ({ key: E.key, visible: !0, fixed: "" })), i = (E) => {
|
|
3488
3488
|
if (!Array.isArray(E)) return a();
|
|
3489
3489
|
const B = /* @__PURE__ */ new Map(), ie = [];
|
|
@@ -3539,8 +3539,8 @@ function $i(e) {
|
|
|
3539
3539
|
},
|
|
3540
3540
|
{ deep: !0 }
|
|
3541
3541
|
);
|
|
3542
|
-
const $ = z(() => k.value.filter((E) => E.visible)),
|
|
3543
|
-
|
|
3542
|
+
const $ = z(() => k.value.filter((E) => E.visible)), A = z(() => $.value.length), I = z(() => k.value.filter((E) => !E.visible)), S = (E) => E.width ?? (t(E.key)?.minWidth ? void 0 : t(E.key)?.width), V = (E) => E.width ?? t(E.key)?.minWidth, P = (E) => (E.width ?? t(E.key)?.width ?? t(E.key)?.minWidth ?? 0) >= $i, oe = (E) => {
|
|
3543
|
+
A.value <= 1 || (E.visible = !1);
|
|
3544
3544
|
}, le = () => {
|
|
3545
3545
|
k.value = a();
|
|
3546
3546
|
}, ve = (E) => k.value.some((B) => B.key === E.key && B.visible && !!t(E.key)?.sortable), X = u.sort && ve(u.sort) ? u.sort : null, m = X ?? (e.defaultSort && ve(e.defaultSort) ? e.defaultSort : null), R = F(m?.key ?? ""), U = F(m?.order ?? null), fe = () => u.sort && ve(u.sort) ? u.sort : null;
|
|
@@ -3605,11 +3605,11 @@ function $i(e) {
|
|
|
3605
3605
|
// 派生
|
|
3606
3606
|
visibleCols: $,
|
|
3607
3607
|
hiddenCols: I,
|
|
3608
|
-
visibleCount:
|
|
3608
|
+
visibleCount: A,
|
|
3609
3609
|
defOf: t,
|
|
3610
3610
|
colWidth: S,
|
|
3611
3611
|
colMinWidth: V,
|
|
3612
|
-
isWide:
|
|
3612
|
+
isWide: P,
|
|
3613
3613
|
// 列操作
|
|
3614
3614
|
hideColumn: oe,
|
|
3615
3615
|
resetColumns: le,
|
|
@@ -3629,7 +3629,7 @@ function $i(e) {
|
|
|
3629
3629
|
}
|
|
3630
3630
|
};
|
|
3631
3631
|
}
|
|
3632
|
-
const
|
|
3632
|
+
const Si = ["aria-label", "data-testid", "onDragstart"], Ci = ["onDragover", "onDragleave", "onDrop"], Ti = ["aria-label", "data-testid", "onDragstart"], Di = { class: "emt-th__label" }, Ei = ["data-testid", "onClick"], xi = { class: "emt-th__tools" }, Ii = ["data-testid", "onClick"], zi = ["disabled", "data-testid", "onClick"], Mi = ["title", "aria-label", "data-testid"], Ri = ["data-testid", "onMousedown"], Vi = ["aria-label"], Bi = ["aria-label"], Pi = ["aria-label"], Ai = /* @__PURE__ */ J({
|
|
3633
3633
|
__name: "EmooTable",
|
|
3634
3634
|
props: {
|
|
3635
3635
|
data: {},
|
|
@@ -3663,11 +3663,11 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
3663
3663
|
}, {
|
|
3664
3664
|
colState: T,
|
|
3665
3665
|
pageSize: $,
|
|
3666
|
-
density:
|
|
3666
|
+
density: A,
|
|
3667
3667
|
sortKey: I,
|
|
3668
3668
|
sortOrder: S,
|
|
3669
3669
|
storageSort: V,
|
|
3670
|
-
restoredSort:
|
|
3670
|
+
restoredSort: P,
|
|
3671
3671
|
resetPrefsCore: oe,
|
|
3672
3672
|
visibleCols: le,
|
|
3673
3673
|
hiddenCols: ve,
|
|
@@ -3682,7 +3682,7 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
3682
3682
|
pinEdge: he,
|
|
3683
3683
|
togglePinSide: ye,
|
|
3684
3684
|
togglePinSmart: q
|
|
3685
|
-
} =
|
|
3685
|
+
} = wi({
|
|
3686
3686
|
columns: () => i.columns,
|
|
3687
3687
|
storageKey: i.storageKey,
|
|
3688
3688
|
defaultPageSize: i.defaultPageSize,
|
|
@@ -3766,7 +3766,7 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
3766
3766
|
window.removeEventListener("mousemove", we), window.removeEventListener("mouseup", Ke);
|
|
3767
3767
|
};
|
|
3768
3768
|
window.addEventListener("mousemove", we), window.addEventListener("mouseup", Ke);
|
|
3769
|
-
}, St =
|
|
3769
|
+
}, St = P ? { prop: P.key, order: P.order } : void 0, Je = ({ prop: b, order: h }) => {
|
|
3770
3770
|
I.value = b ?? "", S.value = h, r("sort-change", { key: b ?? "", order: h });
|
|
3771
3771
|
}, qe = (b, h) => {
|
|
3772
3772
|
h === null ? (f.value?.clearSort(), Je({ prop: "", order: null })) : f.value?.sort(b, h);
|
|
@@ -3848,7 +3848,7 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
3848
3848
|
}), s({
|
|
3849
3849
|
colState: T,
|
|
3850
3850
|
pageSize: $,
|
|
3851
|
-
density:
|
|
3851
|
+
density: A,
|
|
3852
3852
|
resetColumns: re,
|
|
3853
3853
|
resetTablePrefs: de,
|
|
3854
3854
|
normalizeColumns: _e,
|
|
@@ -3858,7 +3858,7 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
3858
3858
|
toggleRowSelection: (b, h) => f.value?.toggleRowSelection(b, h),
|
|
3859
3859
|
toggleRowExpansion: (b, h) => f.value?.toggleRowExpansion(b, h)
|
|
3860
3860
|
}), (b, h) => (o(), n("div", {
|
|
3861
|
-
class: O(["emt", { "is-compact": l(
|
|
3861
|
+
class: O(["emt", { "is-compact": l(A) === "compact", "is-comfort": l(A) !== "compact" && e.defaultDensity === "comfort" }])
|
|
3862
3862
|
}, [
|
|
3863
3863
|
d("div", {
|
|
3864
3864
|
ref_key: "scrollWrapRef",
|
|
@@ -3926,7 +3926,7 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
3926
3926
|
size: 12,
|
|
3927
3927
|
"aria-hidden": "true"
|
|
3928
3928
|
})
|
|
3929
|
-
], 40,
|
|
3929
|
+
], 40, Si)
|
|
3930
3930
|
]),
|
|
3931
3931
|
_: 2
|
|
3932
3932
|
}, 1032, ["content"])
|
|
@@ -3982,11 +3982,11 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
3982
3982
|
size: 12,
|
|
3983
3983
|
"aria-hidden": "true"
|
|
3984
3984
|
})
|
|
3985
|
-
], 40,
|
|
3985
|
+
], 40, Ti)
|
|
3986
3986
|
]),
|
|
3987
3987
|
_: 2
|
|
3988
3988
|
}, 1032, ["content"]),
|
|
3989
|
-
d("span",
|
|
3989
|
+
d("span", Di, y(u(p.key)?.label), 1),
|
|
3990
3990
|
W(b.$slots, `${p.key}-header`, {
|
|
3991
3991
|
col: u(p.key)
|
|
3992
3992
|
}, void 0, !0),
|
|
@@ -4017,12 +4017,12 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4017
4017
|
class: "emt-th__sortidle",
|
|
4018
4018
|
"aria-hidden": "true"
|
|
4019
4019
|
}))
|
|
4020
|
-
], 8,
|
|
4020
|
+
], 8, Ei)
|
|
4021
4021
|
]),
|
|
4022
4022
|
_: 2
|
|
4023
4023
|
}, 1032, ["content"])) : g("", !0),
|
|
4024
4024
|
h[13] || (h[13] = d("span", { class: "emt-th__spacer" }, null, -1)),
|
|
4025
|
-
d("span",
|
|
4025
|
+
d("span", xi, [
|
|
4026
4026
|
l(U)(p) || p.fixed ? (o(), M(Se, {
|
|
4027
4027
|
key: 0,
|
|
4028
4028
|
content: Y(p)
|
|
@@ -4039,7 +4039,7 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4039
4039
|
weight: p.fixed ? "fill" : void 0,
|
|
4040
4040
|
"aria-hidden": "true"
|
|
4041
4041
|
}, null, 8, ["weight"])
|
|
4042
|
-
], 10,
|
|
4042
|
+
], 10, Ii)
|
|
4043
4043
|
]),
|
|
4044
4044
|
_: 2
|
|
4045
4045
|
}, 1032, ["content"])) : g("", !0),
|
|
@@ -4059,7 +4059,7 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4059
4059
|
size: 13,
|
|
4060
4060
|
"aria-hidden": "true"
|
|
4061
4061
|
})
|
|
4062
|
-
], 8,
|
|
4062
|
+
], 8, zi)
|
|
4063
4063
|
]),
|
|
4064
4064
|
_: 2
|
|
4065
4065
|
}, 1032, ["content"])) : g("", !0),
|
|
@@ -4099,7 +4099,7 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4099
4099
|
weight: "bold",
|
|
4100
4100
|
"aria-hidden": "true"
|
|
4101
4101
|
})
|
|
4102
|
-
], 40,
|
|
4102
|
+
], 40, Mi)
|
|
4103
4103
|
]),
|
|
4104
4104
|
_: 2
|
|
4105
4105
|
}, 1032, ["col-key", "sortable", "sorted", "fixed", "can-hide", "hidden", "onSort", "onUnpin", "onPin", "onHide"])
|
|
@@ -4115,11 +4115,11 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4115
4115
|
onMousedown: (G) => ut(p.key, G),
|
|
4116
4116
|
onClick: h[5] || (h[5] = me(() => {
|
|
4117
4117
|
}, ["stop"]))
|
|
4118
|
-
}, null, 40,
|
|
4118
|
+
}, null, 40, Ri)
|
|
4119
4119
|
]),
|
|
4120
4120
|
_: 2
|
|
4121
4121
|
}, 1032, ["content"])) : g("", !0)
|
|
4122
|
-
], 42,
|
|
4122
|
+
], 42, Ci)
|
|
4123
4123
|
]),
|
|
4124
4124
|
default: D(({ row: G, $index: pe }) => [
|
|
4125
4125
|
pe !== -1 ? W(b.$slots, p.key, {
|
|
@@ -4161,7 +4161,7 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4161
4161
|
size: 14,
|
|
4162
4162
|
"aria-hidden": "true"
|
|
4163
4163
|
})
|
|
4164
|
-
], 10,
|
|
4164
|
+
], 10, Vi), [
|
|
4165
4165
|
[Et, ae.value]
|
|
4166
4166
|
])
|
|
4167
4167
|
]),
|
|
@@ -4182,7 +4182,7 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4182
4182
|
size: 14,
|
|
4183
4183
|
"aria-hidden": "true"
|
|
4184
4184
|
})
|
|
4185
|
-
], 10,
|
|
4185
|
+
], 10, Bi), [
|
|
4186
4186
|
[Et, Le.value]
|
|
4187
4187
|
])
|
|
4188
4188
|
]),
|
|
@@ -4196,33 +4196,33 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4196
4196
|
"data-testid": "emt-loading"
|
|
4197
4197
|
}, [
|
|
4198
4198
|
H(lo, { size: 18 })
|
|
4199
|
-
], 8,
|
|
4199
|
+
], 8, Pi)) : g("", !0)
|
|
4200
4200
|
], 34),
|
|
4201
|
-
H(
|
|
4201
|
+
H(zn, {
|
|
4202
4202
|
total: e.total ?? 0,
|
|
4203
4203
|
page: e.page ?? 1,
|
|
4204
4204
|
"page-size": l($),
|
|
4205
4205
|
"page-sizes": e.pageSizes,
|
|
4206
|
-
density: l(
|
|
4206
|
+
density: l(A),
|
|
4207
4207
|
"density-base": e.defaultDensity,
|
|
4208
4208
|
"onUpdate:page": h[9] || (h[9] = (p) => r("update:page", p)),
|
|
4209
4209
|
"onUpdate:pageSize": h[10] || (h[10] = (p) => {
|
|
4210
4210
|
$.value = p, r("size-change", p);
|
|
4211
4211
|
}),
|
|
4212
|
-
"onUpdate:density": h[11] || (h[11] = (p) =>
|
|
4212
|
+
"onUpdate:density": h[11] || (h[11] = (p) => A.value = p)
|
|
4213
4213
|
}, null, 8, ["total", "page", "page-size", "page-sizes", "density", "density-base"])
|
|
4214
4214
|
], 2));
|
|
4215
4215
|
}
|
|
4216
|
-
}), Kr = /* @__PURE__ */ se(
|
|
4216
|
+
}), Kr = /* @__PURE__ */ se(Ai, [["__scopeId", "data-v-bbdd9cda"]]), Li = { class: "emoo-upload" }, Ki = ["tabindex", "aria-disabled", "aria-label", "onKeydown"], Oi = { class: "emoo-upload__title" }, Ui = { class: "emoo-upload__browse" }, Hi = {
|
|
4217
4217
|
key: 0,
|
|
4218
4218
|
class: "emoo-upload__hint"
|
|
4219
|
-
},
|
|
4219
|
+
}, Fi = ["accept", "multiple"], Ni = ["data-testid"], Wi = { class: "emoo-upload__meta" }, qi = ["disabled", "data-testid", "onClick"], ji = {
|
|
4220
4220
|
key: 0,
|
|
4221
4221
|
class: "emoo-upload__sub"
|
|
4222
|
-
},
|
|
4222
|
+
}, Gi = { class: "emoo-upload__err" }, Yi = {
|
|
4223
4223
|
key: 2,
|
|
4224
4224
|
class: "emoo-upload__pct"
|
|
4225
|
-
},
|
|
4225
|
+
}, Xi = /* @__PURE__ */ J({
|
|
4226
4226
|
__name: "EmooUpload",
|
|
4227
4227
|
props: {
|
|
4228
4228
|
files: {},
|
|
@@ -4244,10 +4244,10 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4244
4244
|
}, $ = (S) => {
|
|
4245
4245
|
const V = S.target;
|
|
4246
4246
|
T(Array.from(V.files ?? [])), V.value = "";
|
|
4247
|
-
},
|
|
4247
|
+
}, A = (S) => {
|
|
4248
4248
|
f.value = !1, T(Array.from(S.dataTransfer?.files ?? []));
|
|
4249
4249
|
}, I = (S) => S < 1024 ? `${S} B` : S < 1024 * 1024 ? `${Math.round(S / 1024)} KB` : S < 1024 * 1024 * 1024 ? `${(S / 1024 / 1024).toFixed(1)} MB` : `${(S / 1024 / 1024 / 1024).toFixed(1)} GB`;
|
|
4250
|
-
return (S, V) => (o(), n("div",
|
|
4250
|
+
return (S, V) => (o(), n("div", Li, [
|
|
4251
4251
|
e.readonly ? g("", !0) : (o(), n("div", {
|
|
4252
4252
|
key: 0,
|
|
4253
4253
|
class: O(["emoo-upload__drop", { "is-over": f.value, "is-disabled": e.disabled }]),
|
|
@@ -4256,8 +4256,8 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4256
4256
|
"aria-disabled": e.disabled,
|
|
4257
4257
|
"aria-label": l(i)("common.emooUpload.dropTitle"),
|
|
4258
4258
|
onDragover: me(_, ["prevent"]),
|
|
4259
|
-
onDragleave: V[0] || (V[0] = (
|
|
4260
|
-
onDrop: me(
|
|
4259
|
+
onDragleave: V[0] || (V[0] = (P) => f.value = !1),
|
|
4260
|
+
onDrop: me(A, ["prevent"]),
|
|
4261
4261
|
onClick: v,
|
|
4262
4262
|
onKeydown: [
|
|
4263
4263
|
Ge(me(v, ["prevent"]), ["enter"]),
|
|
@@ -4268,11 +4268,11 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4268
4268
|
class: "emoo-upload__ico",
|
|
4269
4269
|
"aria-hidden": "true"
|
|
4270
4270
|
}),
|
|
4271
|
-
d("p",
|
|
4271
|
+
d("p", Oi, [
|
|
4272
4272
|
te(y(l(i)("common.emooUpload.dropTitle")) + " ", 1),
|
|
4273
|
-
d("span",
|
|
4273
|
+
d("span", Ui, y(l(i)("common.emooUpload.browse")), 1)
|
|
4274
4274
|
]),
|
|
4275
|
-
e.hint ? (o(), n("p",
|
|
4275
|
+
e.hint ? (o(), n("p", Hi, y(e.hint), 1)) : g("", !0),
|
|
4276
4276
|
d("input", {
|
|
4277
4277
|
ref_key: "inputRef",
|
|
4278
4278
|
ref: r,
|
|
@@ -4281,39 +4281,40 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4281
4281
|
accept: e.accept,
|
|
4282
4282
|
multiple: e.multiple,
|
|
4283
4283
|
onChange: $
|
|
4284
|
-
}, null, 40,
|
|
4285
|
-
], 42,
|
|
4284
|
+
}, null, 40, Fi)
|
|
4285
|
+
], 42, Ki)),
|
|
4286
4286
|
e.files.length ? (o(), n("ul", {
|
|
4287
4287
|
key: 1,
|
|
4288
4288
|
class: "emoo-upload__list",
|
|
4289
4289
|
"data-testid": e.listTestId
|
|
4290
4290
|
}, [
|
|
4291
|
-
(o(!0), n(L, null, Z(e.files, (
|
|
4291
|
+
(o(!0), n(L, null, Z(e.files, (P, oe) => (o(), n("li", {
|
|
4292
4292
|
key: oe,
|
|
4293
4293
|
class: "emoo-upload__file"
|
|
4294
4294
|
}, [
|
|
4295
|
-
H(
|
|
4295
|
+
H(rl, {
|
|
4296
4296
|
class: "emoo-upload__file-ico",
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4297
|
+
type: l(Bo)(P.name),
|
|
4298
|
+
size: 32
|
|
4299
|
+
}, null, 8, ["type"]),
|
|
4300
|
+
d("div", Wi, [
|
|
4300
4301
|
d("button", {
|
|
4301
4302
|
type: "button",
|
|
4302
4303
|
class: "emoo-upload__name",
|
|
4303
4304
|
disabled: e.disabled,
|
|
4304
4305
|
"data-testid": `upload-preview-${oe}`,
|
|
4305
|
-
onClick: (le) => a("preview",
|
|
4306
|
-
}, y(
|
|
4307
|
-
|
|
4308
|
-
u(
|
|
4306
|
+
onClick: (le) => a("preview", P)
|
|
4307
|
+
}, y(P.name), 9, qi),
|
|
4308
|
+
P.size != null ? (o(), n("span", ji, y(I(P.size)), 1)) : g("", !0),
|
|
4309
|
+
u(P) === "uploading" ? (o(), M(Pn, {
|
|
4309
4310
|
key: 1,
|
|
4310
4311
|
class: "emoo-upload__progress",
|
|
4311
4312
|
size: "mini",
|
|
4312
4313
|
status: "run",
|
|
4313
|
-
value:
|
|
4314
|
+
value: P.progress ?? null
|
|
4314
4315
|
}, null, 8, ["value"])) : g("", !0)
|
|
4315
4316
|
]),
|
|
4316
|
-
u(
|
|
4317
|
+
u(P) === "done" ? (o(), M(fi, {
|
|
4317
4318
|
key: 0,
|
|
4318
4319
|
tone: "success"
|
|
4319
4320
|
}, {
|
|
@@ -4321,13 +4322,13 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4321
4322
|
te(y(l(i)("common.emooUpload.done")), 1)
|
|
4322
4323
|
]),
|
|
4323
4324
|
_: 1
|
|
4324
|
-
})) : u(
|
|
4325
|
-
d("span",
|
|
4325
|
+
})) : u(P) === "failed" ? (o(), n(L, { key: 1 }, [
|
|
4326
|
+
d("span", Gi, y(P.error || l(i)("common.emooUpload.failed")), 1),
|
|
4326
4327
|
e.readonly ? g("", !0) : (o(), M(lt, {
|
|
4327
4328
|
key: 0,
|
|
4328
4329
|
variant: "text",
|
|
4329
4330
|
size: "small",
|
|
4330
|
-
onClick: (le) => a("retry",
|
|
4331
|
+
onClick: (le) => a("retry", P)
|
|
4331
4332
|
}, {
|
|
4332
4333
|
icon: D(() => [
|
|
4333
4334
|
H(l(Yt))
|
|
@@ -4337,14 +4338,14 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4337
4338
|
]),
|
|
4338
4339
|
_: 1
|
|
4339
4340
|
}, 8, ["onClick"]))
|
|
4340
|
-
], 64)) : u(
|
|
4341
|
+
], 64)) : u(P) === "uploading" && P.progress != null ? (o(), n("span", Yi, y(Math.round(P.progress)) + "% ", 1)) : g("", !0),
|
|
4341
4342
|
e.readonly ? g("", !0) : (o(), M(lt, {
|
|
4342
4343
|
key: 3,
|
|
4343
4344
|
variant: "text",
|
|
4344
4345
|
size: "small",
|
|
4345
4346
|
"icon-only": "",
|
|
4346
|
-
"aria-label": l(i)("common.emooUpload.remove", { name:
|
|
4347
|
-
onClick: (le) => a("remove",
|
|
4347
|
+
"aria-label": l(i)("common.emooUpload.remove", { name: P.name }),
|
|
4348
|
+
onClick: (le) => a("remove", P)
|
|
4348
4349
|
}, {
|
|
4349
4350
|
icon: D(() => [
|
|
4350
4351
|
H(l(Vt))
|
|
@@ -4352,10 +4353,10 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4352
4353
|
_: 1
|
|
4353
4354
|
}, 8, ["aria-label", "onClick"]))
|
|
4354
4355
|
]))), 128))
|
|
4355
|
-
], 8,
|
|
4356
|
+
], 8, Ni)) : g("", !0)
|
|
4356
4357
|
]));
|
|
4357
4358
|
}
|
|
4358
|
-
}), Or = /* @__PURE__ */ se(
|
|
4359
|
+
}), Or = /* @__PURE__ */ se(Xi, [["__scopeId", "data-v-40c1813f"]]), Zi = { class: "emoo-value-diff" }, Ji = { class: "emoo-value-diff__old" }, Qi = /* @__PURE__ */ J({
|
|
4359
4360
|
__name: "EmooValueDiff",
|
|
4360
4361
|
props: {
|
|
4361
4362
|
value: {},
|
|
@@ -4363,10 +4364,10 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4363
4364
|
},
|
|
4364
4365
|
setup(e) {
|
|
4365
4366
|
const s = e, t = z(() => !!s.old && s.old !== s.value);
|
|
4366
|
-
return (a, i) => (o(), n("span",
|
|
4367
|
+
return (a, i) => (o(), n("span", Zi, [
|
|
4367
4368
|
t.value ? (o(), n(L, { key: 0 }, [
|
|
4368
|
-
d("span",
|
|
4369
|
-
H(l(
|
|
4369
|
+
d("span", Ji, y(e.old), 1),
|
|
4370
|
+
H(l(Mo), {
|
|
4370
4371
|
class: "emoo-value-diff__arrow",
|
|
4371
4372
|
"aria-hidden": "true"
|
|
4372
4373
|
})
|
|
@@ -4376,7 +4377,7 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4376
4377
|
}, y(e.value), 3)
|
|
4377
4378
|
]));
|
|
4378
4379
|
}
|
|
4379
|
-
}), Ur = /* @__PURE__ */ se(
|
|
4380
|
+
}), Ur = /* @__PURE__ */ se(Qi, [["__scopeId", "data-v-40f98722"]]), er = {
|
|
4380
4381
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4381
4382
|
viewBox: "0 0 256 256",
|
|
4382
4383
|
width: "1em",
|
|
@@ -4385,12 +4386,12 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4385
4386
|
}, Hr = /* @__PURE__ */ J({
|
|
4386
4387
|
__name: "IconChatCirclePlus",
|
|
4387
4388
|
setup(e) {
|
|
4388
|
-
return (s, t) => (o(), n("svg",
|
|
4389
|
+
return (s, t) => (o(), n("svg", er, [...t[0] || (t[0] = [
|
|
4389
4390
|
d("path", { d: "M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z" }, null, -1),
|
|
4390
4391
|
d("path", { d: "M168,128a8,8,0,0,1-8,8H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h24A8,8,0,0,1,168,128Z" }, null, -1)
|
|
4391
4392
|
])]));
|
|
4392
4393
|
}
|
|
4393
|
-
}),
|
|
4394
|
+
}), tr = ["width", "height"], or = ["id"], ar = ["mask"], Fr = /* @__PURE__ */ J({
|
|
4394
4395
|
__name: "IconPaperPlanes",
|
|
4395
4396
|
props: {
|
|
4396
4397
|
size: { default: "1em" }
|
|
@@ -4431,7 +4432,7 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4431
4432
|
"stroke-width": "3.5",
|
|
4432
4433
|
"stroke-linejoin": "round"
|
|
4433
4434
|
}, null, -1)
|
|
4434
|
-
])], 8,
|
|
4435
|
+
])], 8, or)
|
|
4435
4436
|
]),
|
|
4436
4437
|
d("g", {
|
|
4437
4438
|
mask: `url(#${l(s)})`,
|
|
@@ -4442,7 +4443,7 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4442
4443
|
}, [...a[1] || (a[1] = [
|
|
4443
4444
|
d("path", { d: "M2 7.5 17 2.8 12.3 17.8 8.9 11.1Z" }, null, -1),
|
|
4444
4445
|
d("path", { d: "m8.9 11.1 3.4-3.6" }, null, -1)
|
|
4445
|
-
])], 8,
|
|
4446
|
+
])], 8, ar),
|
|
4446
4447
|
a[2] || (a[2] = d("g", {
|
|
4447
4448
|
stroke: "currentColor",
|
|
4448
4449
|
"stroke-width": "1.5",
|
|
@@ -4452,20 +4453,20 @@ const wi = ["aria-label", "data-testid", "onDragstart"], Si = ["onDragover", "on
|
|
|
4452
4453
|
d("path", { d: "M7 11.5 22 6.8 17.3 21.8 13.9 15.1Z" }),
|
|
4453
4454
|
d("path", { d: "m13.9 15.1 3.4-3.6" })
|
|
4454
4455
|
], -1))
|
|
4455
|
-
], 8,
|
|
4456
|
+
], 8, tr));
|
|
4456
4457
|
}
|
|
4457
4458
|
});
|
|
4458
4459
|
function Nr(e, s = {}) {
|
|
4459
4460
|
const t = s.bottomTolerance ?? 24, a = s.awayThreshold ?? 80, i = F(!0), r = F(!1);
|
|
4460
4461
|
let f = null;
|
|
4461
4462
|
const u = () => {
|
|
4462
|
-
const
|
|
4463
|
-
if (!
|
|
4464
|
-
const I =
|
|
4463
|
+
const A = f;
|
|
4464
|
+
if (!A) return;
|
|
4465
|
+
const I = A.scrollHeight - A.scrollTop - A.clientHeight;
|
|
4465
4466
|
I <= t ? (!i.value || r.value) && (i.value = !0, r.value = !1, s.onDockUpdate?.(!0)) : I > a && (i.value || !r.value) && (i.value = !1, r.value = !0, s.onDockUpdate?.(!1));
|
|
4466
4467
|
}, k = () => {
|
|
4467
|
-
const
|
|
4468
|
-
!
|
|
4468
|
+
const A = e();
|
|
4469
|
+
!A || A === f || (f && f.removeEventListener("scroll", u), f = A, A.addEventListener("scroll", u, { passive: !0 }), u());
|
|
4469
4470
|
}, v = () => {
|
|
4470
4471
|
f?.removeEventListener("scroll", u), f = null;
|
|
4471
4472
|
}, _ = () => typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches, T = () => {
|
|
@@ -4478,12 +4479,12 @@ function Nr(e, s = {}) {
|
|
|
4478
4479
|
};
|
|
4479
4480
|
return typeof Lt == "function" && Lt(v), { docked: i, showScrollToBottom: r, attach: k, detach: v, notifyContentChanged: T, scrollToBottom: $, handleScroll: u };
|
|
4480
4481
|
}
|
|
4481
|
-
const
|
|
4482
|
+
const lr = 3e3, nr = 5e3;
|
|
4482
4483
|
function yt(e, s, t = {}) {
|
|
4483
4484
|
return bo({
|
|
4484
4485
|
type: e,
|
|
4485
4486
|
message: s,
|
|
4486
|
-
duration: t.duration ?? (e === "error" ?
|
|
4487
|
+
duration: t.duration ?? (e === "error" ? nr : lr),
|
|
4487
4488
|
showClose: t.showClose ?? e === "error"
|
|
4488
4489
|
});
|
|
4489
4490
|
}
|
|
@@ -4518,19 +4519,19 @@ function jr(e, s = !1) {
|
|
|
4518
4519
|
}
|
|
4519
4520
|
export {
|
|
4520
4521
|
Xr as AVATAR_TINT_PALETTE,
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4522
|
+
hr as EmooActionPill,
|
|
4523
|
+
yr as EmooActionSheet,
|
|
4524
|
+
pr as EmooAgentSelect,
|
|
4524
4525
|
lt as EmooButton,
|
|
4525
|
-
|
|
4526
|
-
|
|
4526
|
+
br as EmooCard,
|
|
4527
|
+
gr as EmooChips,
|
|
4527
4528
|
Sa as EmooChoice,
|
|
4528
4529
|
Ba as EmooColumnMenu,
|
|
4529
4530
|
qa as EmooDrawer,
|
|
4530
4531
|
Ja as EmooEmpty,
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4532
|
+
kr as EmooField,
|
|
4533
|
+
_r as EmooFieldGrid,
|
|
4534
|
+
rl as EmooFileTypeIcon,
|
|
4534
4535
|
$r as EmooGhostButton,
|
|
4535
4536
|
wr as EmooGroupLabel,
|
|
4536
4537
|
Sr as EmooHistoryList,
|
|
@@ -4541,24 +4542,24 @@ export {
|
|
|
4541
4542
|
Er as EmooNavMenu,
|
|
4542
4543
|
xr as EmooNavSegmented,
|
|
4543
4544
|
Ir as EmooOptionRows,
|
|
4544
|
-
|
|
4545
|
+
zn as EmooPagination,
|
|
4545
4546
|
zr as EmooPopover,
|
|
4546
|
-
|
|
4547
|
+
Pn as EmooProgress,
|
|
4547
4548
|
Mr as EmooRoleSelect,
|
|
4548
4549
|
Vr as EmooSchedule,
|
|
4549
4550
|
Br as EmooSearchBox,
|
|
4550
|
-
|
|
4551
|
+
Yn as EmooSegmented,
|
|
4551
4552
|
Pr as EmooSidebarShell,
|
|
4552
|
-
|
|
4553
|
+
pl as EmooSkeleton,
|
|
4553
4554
|
lo as EmooSpinner,
|
|
4554
|
-
|
|
4555
|
+
fi as EmooStatusTag,
|
|
4555
4556
|
Ar as EmooSwitcherPanel,
|
|
4556
4557
|
Kr as EmooTable,
|
|
4557
4558
|
Lr as EmooTagsInput,
|
|
4558
4559
|
Se as EmooTooltip,
|
|
4559
4560
|
Or as EmooUpload,
|
|
4560
4561
|
Ur as EmooValueDiff,
|
|
4561
|
-
|
|
4562
|
+
$i as INLINE_TOOLS_MIN_WIDTH,
|
|
4562
4563
|
Hr as IconChatCirclePlus,
|
|
4563
4564
|
Fr as IconPaperPlanes,
|
|
4564
4565
|
It as MIN_COL_WIDTH,
|
|
@@ -4567,8 +4568,8 @@ export {
|
|
|
4567
4568
|
Me as addScheduleDays,
|
|
4568
4569
|
Dt as addScheduleMonths,
|
|
4569
4570
|
Jr as avatarTintOf,
|
|
4570
|
-
|
|
4571
|
-
|
|
4571
|
+
Zn as buildMonthDays,
|
|
4572
|
+
Jn as buildWeekDays,
|
|
4572
4573
|
jr as elementPlusColorVars,
|
|
4573
4574
|
qr as emooConfirm,
|
|
4574
4575
|
ad as emoouiMessages,
|
|
@@ -4579,14 +4580,14 @@ export {
|
|
|
4579
4580
|
Te as parseScheduleDate,
|
|
4580
4581
|
td as primaryColorVars,
|
|
4581
4582
|
La as saveDrawerWidth,
|
|
4582
|
-
|
|
4583
|
+
Qn as scheduleDayDiff,
|
|
4583
4584
|
ke as scheduleDayKey,
|
|
4584
4585
|
so as scheduleEventDaySpan,
|
|
4585
|
-
|
|
4586
|
+
ts as segmentScheduleEvents,
|
|
4586
4587
|
Rr as shiftScheduleEventDates,
|
|
4587
4588
|
no as startOfScheduleWeek,
|
|
4588
4589
|
Wr as toast,
|
|
4589
|
-
|
|
4590
|
+
wi as useColumnPrefs,
|
|
4590
4591
|
Nr as useMessageScroll,
|
|
4591
4592
|
ot as useRemoteOptions,
|
|
4592
4593
|
at as useSelectedOptions,
|