@emoo-ai/ui-vue 0.1.8 → 0.1.10
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/README.md +1 -1
- package/dist/components/EmooFileTypeIcon.vue.d.ts +7 -0
- package/dist/components/EmooSkeleton.vue.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +493 -470
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as N, openBlock as t, createElementBlock as s, createBlock as x, resolveDynamicComponent as Ie, createCommentVNode as S, createElementVNode as u, toDisplayString as k, withModifiers as le, normalizeClass as W, computed as R, unref as a, mergeProps as Xe, withCtx as w, createVNode as P, renderSlot as A, Fragment as D, renderList as Z, createSlots as Se, reactive as St, normalizeStyle as pe, createTextVNode as J, ref as U, getCurrentInstance as eo, onBeforeUnmount as lt, nextTick as ke, shallowRef as to, watch as we, useAttrs as Pe, onMounted as Ze, withDirectives as Fe, vShow as tt, normalizeProps as Ne, guardReactiveProps as qe, onUnmounted as Ct, useSlots as Et, withKeys as je, h as ve, useId as oo, onScopeDispose as _t } from "vue";
|
|
2
2
|
import { ElDrawer as Tt, ElTooltip as ao, ElSelect as Ae, ElOption as ze, ElCheckboxGroup as xt, ElCheckbox as st, ElRadioGroup as It, ElRadio as zt, ElDropdown as nt, ElButton as et, ElInput as ot, ElDropdownMenu as lo, vLoading as so, ElDropdownItem as no, ElPopover as io, ElTag as ro, ElTable as uo, ElTableColumn as Ve, ElMessage as co, ElMessageBox as mo } from "element-plus";
|
|
3
3
|
import { useI18n as me } from "vue-i18n";
|
|
4
4
|
import { PhX as it, PhSpinner as vo, PhCaretUp as Rt, PhCaretDown as rt, PhPushPinSlash as fo, PhArrowLineLeft as ho, PhArrowLineRight as po, PhEyeSlash as Vt, PhEye as yo, PhArrowCounterClockwise as Mt, PhMagnifyingGlass as bo, PhSlidersHorizontal as go, PhDotsThree as Bt, PhCaretRight as Ge, PhArrowsVertical as ko, PhCheck as Dt, PhCaretLeft as Pt, PhDotsSixVertical as wt, PhCaretUpDown as $o, PhPushPin as _o, PhUploadSimple as wo, PhFileText as So, PhArrowRight as Co } from "./icons.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { fileIconGlyph as Eo } from "@emoo-ai/brand/file-icons";
|
|
6
|
+
import { primaryColorVars as To } from "@emoo-ai/brand/colors";
|
|
7
|
+
import { AVATAR_TINT_PALETTE as gi, PRESET_COLORS as ki, avatarTintOf as $i, hexToRgbString as _i, mixColor as wi, primaryColorVars as Si } from "@emoo-ai/brand/colors";
|
|
7
8
|
import "element-plus/es/components/message-box/style/css";
|
|
8
|
-
import { emoouiMessages as
|
|
9
|
+
import { emoouiMessages as Ei } from "./locales.js";
|
|
9
10
|
import "element-plus/es/components/message/style/css";
|
|
10
|
-
const
|
|
11
|
+
const xo = { class: "emoo-action-pill__label" }, Io = {
|
|
11
12
|
key: 1,
|
|
12
13
|
class: "emoo-action-pill__kbd"
|
|
13
|
-
},
|
|
14
|
+
}, zo = /* @__PURE__ */ N({
|
|
14
15
|
__name: "EmooActionPill",
|
|
15
16
|
props: {
|
|
16
17
|
icon: {},
|
|
@@ -29,8 +30,8 @@ const To = { class: "emoo-action-pill__label" }, xo = {
|
|
|
29
30
|
key: 0,
|
|
30
31
|
class: "emoo-action-pill__icon"
|
|
31
32
|
})) : S("", !0),
|
|
32
|
-
u("span",
|
|
33
|
-
e.kbd ? (t(), s("kbd",
|
|
33
|
+
u("span", xo, k(e.label), 1),
|
|
34
|
+
e.kbd ? (t(), s("kbd", Io, k(e.kbd), 1)) : S("", !0)
|
|
34
35
|
]));
|
|
35
36
|
}
|
|
36
37
|
}), Y = (e, n) => {
|
|
@@ -38,7 +39,7 @@ const To = { class: "emoo-action-pill__label" }, xo = {
|
|
|
38
39
|
for (const [l, r] of n)
|
|
39
40
|
o[l] = r;
|
|
40
41
|
return o;
|
|
41
|
-
},
|
|
42
|
+
}, An = /* @__PURE__ */ Y(zo, [["__scopeId", "data-v-f9e9873a"]]), Ro = /* @__PURE__ */ N({
|
|
42
43
|
__name: "SheetDragHandle",
|
|
43
44
|
props: {
|
|
44
45
|
dragging: { type: Boolean },
|
|
@@ -54,10 +55,10 @@ const To = { class: "emoo-action-pill__label" }, xo = {
|
|
|
54
55
|
u("span", { class: "sheet-drag-handle__bar" }, null, -1)
|
|
55
56
|
])], 34));
|
|
56
57
|
}
|
|
57
|
-
}), At = /* @__PURE__ */ Y(
|
|
58
|
+
}), At = /* @__PURE__ */ Y(Ro, [["__scopeId", "data-v-ef0108a1"]]), Vo = { class: "emoo-asheet" }, Mo = {
|
|
58
59
|
key: 0,
|
|
59
60
|
class: "emoo-asheet__title"
|
|
60
|
-
},
|
|
61
|
+
}, Bo = { class: "emoo-asheet__list" }, Do = ["disabled", "data-testid", "onClick"], Ln = /* @__PURE__ */ N({
|
|
61
62
|
inheritAttrs: !1,
|
|
62
63
|
__name: "EmooActionSheet",
|
|
63
64
|
props: {
|
|
@@ -68,7 +69,7 @@ const To = { class: "emoo-action-pill__label" }, xo = {
|
|
|
68
69
|
},
|
|
69
70
|
emits: ["update:modelValue", "select", "cancel"],
|
|
70
71
|
setup(e, { emit: n }) {
|
|
71
|
-
const o = e, l = n, r =
|
|
72
|
+
const o = e, l = n, r = R({
|
|
72
73
|
get: () => o.modelValue,
|
|
73
74
|
set: (v) => l("update:modelValue", v)
|
|
74
75
|
});
|
|
@@ -87,10 +88,10 @@ const To = { class: "emoo-action-pill__label" }, xo = {
|
|
|
87
88
|
class: "emoo-action-sheet"
|
|
88
89
|
}), {
|
|
89
90
|
default: w(() => [
|
|
90
|
-
u("div",
|
|
91
|
+
u("div", Vo, [
|
|
91
92
|
P(At),
|
|
92
|
-
e.title ? (t(), s("p",
|
|
93
|
-
u("div",
|
|
93
|
+
e.title ? (t(), s("p", Mo, k(e.title), 1)) : S("", !0),
|
|
94
|
+
u("div", Bo, [
|
|
94
95
|
A(v.$slots, "default"),
|
|
95
96
|
v.$slots.default ? S("", !0) : (t(!0), s(D, { key: 0 }, Z(e.items, (c, b) => (t(), s("button", {
|
|
96
97
|
key: c.key,
|
|
@@ -105,7 +106,7 @@ const To = { class: "emoo-action-pill__label" }, xo = {
|
|
|
105
106
|
class: "emoo-asheet__ic"
|
|
106
107
|
})) : S("", !0),
|
|
107
108
|
u("span", null, k(c.label), 1)
|
|
108
|
-
], 10,
|
|
109
|
+
], 10, Do))), 128))
|
|
109
110
|
]),
|
|
110
111
|
e.cancelText ? (t(), s("button", {
|
|
111
112
|
key: 1,
|
|
@@ -119,7 +120,7 @@ const To = { class: "emoo-action-pill__label" }, xo = {
|
|
|
119
120
|
_: 3
|
|
120
121
|
}, 16, ["modelValue"]));
|
|
121
122
|
}
|
|
122
|
-
}), he = /* @__PURE__ */
|
|
123
|
+
}), he = /* @__PURE__ */ N({
|
|
123
124
|
__name: "EmooTooltip",
|
|
124
125
|
props: {
|
|
125
126
|
showAfter: { default: 300 },
|
|
@@ -127,7 +128,7 @@ const To = { class: "emoo-action-pill__label" }, xo = {
|
|
|
127
128
|
popperClass: { default: "" }
|
|
128
129
|
},
|
|
129
130
|
setup(e) {
|
|
130
|
-
const n = e, o =
|
|
131
|
+
const n = e, o = R(() => ["emo-tip", n.popperClass].filter(Boolean).join(" "));
|
|
131
132
|
return (l, r) => (t(), x(a(ao), Xe(l.$attrs, {
|
|
132
133
|
placement: e.placement,
|
|
133
134
|
"show-after": e.showAfter,
|
|
@@ -147,10 +148,10 @@ const To = { class: "emoo-action-pill__label" }, xo = {
|
|
|
147
148
|
} : void 0
|
|
148
149
|
]), 1040, ["placement", "show-after", "popper-class"]));
|
|
149
150
|
}
|
|
150
|
-
}),
|
|
151
|
+
}), Po = { class: "emoo-mtags" }, Ao = ["src", "onError"], Lo = { class: "emoo-mtag__name" }, Oo = ["aria-label", "onClick"], Uo = {
|
|
151
152
|
class: "emoo-mtag emoo-mtag--more",
|
|
152
153
|
"data-testid": "emoo-mtag-more"
|
|
153
|
-
},
|
|
154
|
+
}, Ho = /* @__PURE__ */ N({
|
|
154
155
|
__name: "EmooMemberTag",
|
|
155
156
|
props: {
|
|
156
157
|
items: {},
|
|
@@ -160,8 +161,8 @@ const To = { class: "emoo-action-pill__label" }, xo = {
|
|
|
160
161
|
},
|
|
161
162
|
emits: ["remove"],
|
|
162
163
|
setup(e) {
|
|
163
|
-
const { t: n } = me(), o = e, l =
|
|
164
|
-
return (v, g) => (t(), s("span",
|
|
164
|
+
const { t: n } = me(), o = e, l = R(() => o.items.slice(0, o.max)), r = St(/* @__PURE__ */ new Set()), i = R(() => Math.max(0, o.items.length - o.max)), p = R(() => o.items.slice(o.max).map((v) => v.name).join("、"));
|
|
165
|
+
return (v, g) => (t(), s("span", Po, [
|
|
165
166
|
(t(!0), s(D, null, Z(l.value, (c, b) => (t(), s("span", {
|
|
166
167
|
key: `${c.name}-${b}`,
|
|
167
168
|
class: "emoo-mtag",
|
|
@@ -177,11 +178,11 @@ const To = { class: "emoo-action-pill__label" }, xo = {
|
|
|
177
178
|
alt: "",
|
|
178
179
|
class: "emoo-mtag__img",
|
|
179
180
|
onError: (_) => r.add(b)
|
|
180
|
-
}, null, 40,
|
|
181
|
+
}, null, 40, Ao)) : (t(), s(D, { key: 1 }, [
|
|
181
182
|
J(k(c.name[0]), 1)
|
|
182
183
|
], 64))
|
|
183
184
|
], 2),
|
|
184
|
-
u("span",
|
|
185
|
+
u("span", Lo, k(c.name), 1),
|
|
185
186
|
e.removable ? (t(), s("button", {
|
|
186
187
|
key: 0,
|
|
187
188
|
type: "button",
|
|
@@ -190,23 +191,23 @@ const To = { class: "emoo-action-pill__label" }, xo = {
|
|
|
190
191
|
onClick: (_) => v.$emit("remove", b)
|
|
191
192
|
}, [
|
|
192
193
|
P(a(it), { size: 10 })
|
|
193
|
-
], 8,
|
|
194
|
+
], 8, Oo)) : S("", !0)
|
|
194
195
|
], 4))), 128)),
|
|
195
196
|
i.value > 0 ? (t(), x(he, {
|
|
196
197
|
key: 0,
|
|
197
198
|
content: p.value
|
|
198
199
|
}, {
|
|
199
200
|
default: w(() => [
|
|
200
|
-
u("span",
|
|
201
|
+
u("span", Uo, "+" + k(i.value), 1)
|
|
201
202
|
]),
|
|
202
203
|
_: 1
|
|
203
204
|
}, 8, ["content"])) : S("", !0)
|
|
204
205
|
]));
|
|
205
206
|
}
|
|
206
|
-
}), xe = /* @__PURE__ */ Y(
|
|
207
|
+
}), xe = /* @__PURE__ */ Y(Ho, [["__scopeId", "data-v-33f4fffc"]]);
|
|
207
208
|
function Me(e, n) {
|
|
208
209
|
const o = U([]), l = U(!1), r = U(!0), i = U(null), p = `${n}-${eo()?.uid ?? Math.random().toString(36).slice(2)}`, v = `${n} ${p}`;
|
|
209
|
-
let g = 1, c = "", b, _ = null, y = 0,
|
|
210
|
+
let g = 1, c = "", b, _ = null, y = 0, V = null;
|
|
210
211
|
const E = (q) => new Promise((de) => setTimeout(de, q)), $ = () => {
|
|
211
212
|
y++, l.value = !1, _ && (clearTimeout(_), _ = null);
|
|
212
213
|
}, I = async (q, de, ce) => {
|
|
@@ -215,11 +216,11 @@ function Me(e, n) {
|
|
|
215
216
|
const te = ++y;
|
|
216
217
|
l.value = !0, i.value = null;
|
|
217
218
|
try {
|
|
218
|
-
const
|
|
219
|
+
const F = await H(de, q);
|
|
219
220
|
if (te !== y || e() !== H) return;
|
|
220
|
-
g = q, c = de, b = H, o.value = z(ce ? o.value : [],
|
|
221
|
-
} catch (
|
|
222
|
-
te === y && e() === H && (i.value =
|
|
221
|
+
g = q, c = de, b = H, o.value = z(ce ? o.value : [], F.items), r.value = F.hasMore, V = null;
|
|
222
|
+
} catch (F) {
|
|
223
|
+
te === y && e() === H && (i.value = F, V = { target: q, keyword: de, append: ce }, console.error("选择器远程选项加载失败:", F));
|
|
223
224
|
} finally {
|
|
224
225
|
te === y && (l.value = !1);
|
|
225
226
|
}
|
|
@@ -236,8 +237,8 @@ function Me(e, n) {
|
|
|
236
237
|
const q = e();
|
|
237
238
|
l.value || !q || (b !== q || o.value.length === 0 || c !== "") && I(1, "", !1);
|
|
238
239
|
}, ie = () => {
|
|
239
|
-
if (!
|
|
240
|
-
const { target: q, keyword: de, append: ce } =
|
|
240
|
+
if (!V || l.value) return;
|
|
241
|
+
const { target: q, keyword: de, append: ce } = V;
|
|
241
242
|
I(q, de, ce);
|
|
242
243
|
}, ee = () => {
|
|
243
244
|
const q = e();
|
|
@@ -277,20 +278,20 @@ function Be(e, n, o) {
|
|
|
277
278
|
return l.value = r(g).map((b) => c.get(b)).filter((b) => b !== void 0), l.value;
|
|
278
279
|
};
|
|
279
280
|
we(() => [e(), n(), o()], () => i(e()), { immediate: !0, deep: !0, flush: "sync" });
|
|
280
|
-
const p =
|
|
281
|
+
const p = R(() => {
|
|
281
282
|
const g = n();
|
|
282
283
|
return [...l.value.filter((c) => !g.some((b) => b.id === c.id)), ...g];
|
|
283
|
-
}), v =
|
|
284
|
+
}), v = R(() => r(e()).map((g) => l.value.find((c) => c.id === g)).filter((g) => g !== void 0));
|
|
284
285
|
return { mergedOptions: p, selectedOptions: v, remember: i };
|
|
285
286
|
}
|
|
286
|
-
const
|
|
287
|
+
const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo = ["src"], No = { class: "emoo-asel__name" }, qo = {
|
|
287
288
|
key: 0,
|
|
288
289
|
class: "emoo-asel__sub"
|
|
289
|
-
},
|
|
290
|
+
}, jo = {
|
|
290
291
|
class: "emoo-sel-remote-error",
|
|
291
292
|
role: "alert",
|
|
292
293
|
"data-testid": "remote-error"
|
|
293
|
-
},
|
|
294
|
+
}, Go = /* @__PURE__ */ N({
|
|
294
295
|
__name: "EmooAgentSelect",
|
|
295
296
|
props: {
|
|
296
297
|
modelValue: {},
|
|
@@ -304,11 +305,11 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
304
305
|
},
|
|
305
306
|
emits: ["update:modelValue"],
|
|
306
307
|
setup(e, { emit: n }) {
|
|
307
|
-
const o = e, l = n, { t: r } = me(), i =
|
|
308
|
+
const o = e, l = n, { t: r } = me(), i = R(() => o.source !== void 0), { items: p, loading: v, error: g, retry: c, search: b, ensureFirstPage: _, onVisibleChange: y, popperClass: V } = Me(() => o.source, "emoo-asel-popper"), { mergedOptions: E, selectedOptions: $, remember: I } = Be(
|
|
308
309
|
() => o.modelValue,
|
|
309
310
|
() => i.value ? p.value : o.options ?? [],
|
|
310
311
|
() => o.selected ?? []
|
|
311
|
-
), z = (d) => E.value.find((T) => T.id === d), j = Pe(), X =
|
|
312
|
+
), z = (d) => E.value.find((T) => T.id === d), j = Pe(), X = R(() => j.disabled !== void 0 && j.disabled !== !1);
|
|
312
313
|
Ze(() => {
|
|
313
314
|
const d = o.modelValue, T = Array.isArray(d) ? d.length > 0 : d != null, B = Array.isArray(d) ? d : [d];
|
|
314
315
|
i.value && T && B.some((se) => se !== null && !z(se)) && _();
|
|
@@ -331,7 +332,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
331
332
|
remote: i.value,
|
|
332
333
|
"remote-method": a(b),
|
|
333
334
|
loading: a(v),
|
|
334
|
-
"popper-class": a(
|
|
335
|
+
"popper-class": a(V),
|
|
335
336
|
"onUpdate:modelValue": ie,
|
|
336
337
|
onVisibleChange: a(y)
|
|
337
338
|
}, Se({
|
|
@@ -342,19 +343,19 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
342
343
|
value: B.id
|
|
343
344
|
}, {
|
|
344
345
|
default: w(() => [
|
|
345
|
-
u("span",
|
|
346
|
-
u("span",
|
|
346
|
+
u("span", Ko, [
|
|
347
|
+
u("span", Wo, [
|
|
347
348
|
B.avatar ? (t(), s("img", {
|
|
348
349
|
key: 0,
|
|
349
350
|
src: B.avatar,
|
|
350
351
|
alt: "",
|
|
351
352
|
class: "emoo-asel__img"
|
|
352
|
-
}, null, 8,
|
|
353
|
+
}, null, 8, Fo)) : (t(), s(D, { key: 1 }, [
|
|
353
354
|
J(k(B.name[0]), 1)
|
|
354
355
|
], 64))
|
|
355
356
|
]),
|
|
356
357
|
u("span", No, k(B.name), 1),
|
|
357
|
-
B.sub ? (t(), s("span",
|
|
358
|
+
B.sub ? (t(), s("span", qo, k(B.sub), 1)) : S("", !0)
|
|
358
359
|
])
|
|
359
360
|
]),
|
|
360
361
|
_: 2
|
|
@@ -388,7 +389,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
388
389
|
a(g) ? {
|
|
389
390
|
name: "footer",
|
|
390
391
|
fn: w(() => [
|
|
391
|
-
u("div",
|
|
392
|
+
u("div", jo, [
|
|
392
393
|
u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
|
|
393
394
|
u("button", {
|
|
394
395
|
type: "button",
|
|
@@ -402,11 +403,11 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
402
403
|
} : void 0
|
|
403
404
|
]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
|
|
404
405
|
}
|
|
405
|
-
}),
|
|
406
|
+
}), On = /* @__PURE__ */ Y(Go, [["__scopeId", "data-v-465d3a49"]]), Xo = ["type", "disabled", "aria-busy"], Zo = {
|
|
406
407
|
key: 0,
|
|
407
408
|
class: "emoo-button__icon",
|
|
408
409
|
"aria-hidden": "true"
|
|
409
|
-
},
|
|
410
|
+
}, Jo = /* @__PURE__ */ N({
|
|
410
411
|
__name: "EmooButton",
|
|
411
412
|
props: {
|
|
412
413
|
variant: { default: "secondary" },
|
|
@@ -428,29 +429,29 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
428
429
|
disabled: e.disabled || e.loading,
|
|
429
430
|
"aria-busy": e.loading || void 0
|
|
430
431
|
}, [
|
|
431
|
-
e.loading || n.$slots.icon ? (t(), s("span",
|
|
432
|
+
e.loading || n.$slots.icon ? (t(), s("span", Zo, [
|
|
432
433
|
e.loading ? (t(), x(a(vo), {
|
|
433
434
|
key: 0,
|
|
434
435
|
class: "emoo-button__spinner"
|
|
435
436
|
})) : A(n.$slots, "icon", {}, void 0, !0, 1)
|
|
436
437
|
])) : S("", !0),
|
|
437
438
|
A(n.$slots, "default", {}, void 0, !0)
|
|
438
|
-
], 10,
|
|
439
|
+
], 10, Xo));
|
|
439
440
|
}
|
|
440
|
-
}), De = /* @__PURE__ */ Y(
|
|
441
|
+
}), De = /* @__PURE__ */ Y(Jo, [["__scopeId", "data-v-6415e495"]]), Yo = { class: "emoo-card" }, Qo = {
|
|
441
442
|
key: 0,
|
|
442
443
|
class: "emoo-card__header"
|
|
443
|
-
},
|
|
444
|
+
}, ea = {
|
|
444
445
|
key: 1,
|
|
445
446
|
class: "emoo-card__footer"
|
|
446
|
-
},
|
|
447
|
+
}, ta = /* @__PURE__ */ N({
|
|
447
448
|
__name: "EmooCard",
|
|
448
449
|
props: {
|
|
449
450
|
flush: { type: Boolean, default: !1 }
|
|
450
451
|
},
|
|
451
452
|
setup(e) {
|
|
452
|
-
return (n, o) => (t(), s("div",
|
|
453
|
-
n.$slots.header ? (t(), s("div",
|
|
453
|
+
return (n, o) => (t(), s("div", Yo, [
|
|
454
|
+
n.$slots.header ? (t(), s("div", Qo, [
|
|
454
455
|
A(n.$slots, "header", {}, void 0, !0)
|
|
455
456
|
])) : S("", !0),
|
|
456
457
|
u("div", {
|
|
@@ -458,36 +459,36 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
458
459
|
}, [
|
|
459
460
|
A(n.$slots, "default", {}, void 0, !0)
|
|
460
461
|
], 2),
|
|
461
|
-
n.$slots.footer ? (t(), s("div",
|
|
462
|
+
n.$slots.footer ? (t(), s("div", ea, [
|
|
462
463
|
A(n.$slots, "footer", {}, void 0, !0)
|
|
463
464
|
])) : S("", !0)
|
|
464
465
|
]));
|
|
465
466
|
}
|
|
466
|
-
}),
|
|
467
|
+
}), Un = /* @__PURE__ */ Y(ta, [["__scopeId", "data-v-4fffe6bc"]]), oa = ["data-testid"], aa = {
|
|
467
468
|
key: 0,
|
|
468
469
|
class: "emoo-chips__more",
|
|
469
470
|
"data-testid": "emoo-chips-more"
|
|
470
|
-
},
|
|
471
|
-
...
|
|
471
|
+
}, la = { name: "EmooChips" }, sa = /* @__PURE__ */ N({
|
|
472
|
+
...la,
|
|
472
473
|
props: {
|
|
473
474
|
items: {},
|
|
474
475
|
labelOf: {},
|
|
475
476
|
gap: { default: 10 }
|
|
476
477
|
},
|
|
477
478
|
setup(e) {
|
|
478
|
-
const n = e, o = U(), l = U([]), r = U(n.items.length), i = U(0), p =
|
|
479
|
+
const n = e, o = U(), l = U([]), r = U(n.items.length), i = U(0), p = R(() => n.items.map(n.labelOf).join("、")), v = 40, g = () => {
|
|
479
480
|
const _ = l.value, y = o.value?.clientWidth ?? 0;
|
|
480
481
|
if (!_.length || y <= 0) {
|
|
481
482
|
r.value = n.items.length, i.value = 0;
|
|
482
483
|
return;
|
|
483
484
|
}
|
|
484
|
-
const
|
|
485
|
-
if (
|
|
485
|
+
const V = _.map((z) => z.offsetWidth);
|
|
486
|
+
if (V.reduce((z, j) => z + j, 0) + n.gap * (_.length - 1) <= y) {
|
|
486
487
|
r.value = _.length, i.value = 0;
|
|
487
488
|
return;
|
|
488
489
|
}
|
|
489
490
|
let $ = 0, I = 0;
|
|
490
|
-
for (const z of
|
|
491
|
+
for (const z of V) {
|
|
491
492
|
const j = I === 0 ? z : $ + n.gap + z;
|
|
492
493
|
if (j > y - v) break;
|
|
493
494
|
$ = j, I++;
|
|
@@ -510,7 +511,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
510
511
|
class: "emoo-chips",
|
|
511
512
|
style: pe({ gap: `${e.gap}px` })
|
|
512
513
|
}, [
|
|
513
|
-
(t(!0), s(D, null, Z(e.items, (
|
|
514
|
+
(t(!0), s(D, null, Z(e.items, (V, E) => Fe((t(), s("span", {
|
|
514
515
|
key: E,
|
|
515
516
|
ref_for: !0,
|
|
516
517
|
ref_key: "chipRefs",
|
|
@@ -519,19 +520,19 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
519
520
|
"data-testid": `emoo-chips-chip-${E}`
|
|
520
521
|
}, [
|
|
521
522
|
A(_.$slots, "default", {
|
|
522
|
-
item:
|
|
523
|
+
item: V,
|
|
523
524
|
index: E
|
|
524
525
|
}, void 0, !0)
|
|
525
|
-
], 8,
|
|
526
|
+
], 8, oa)), [
|
|
526
527
|
[tt, E < r.value]
|
|
527
528
|
])), 128)),
|
|
528
|
-
i.value > 0 ? (t(), s("span",
|
|
529
|
+
i.value > 0 ? (t(), s("span", aa, "+" + k(i.value), 1)) : S("", !0)
|
|
529
530
|
], 4)
|
|
530
531
|
]),
|
|
531
532
|
_: 3
|
|
532
533
|
}, 8, ["content", "disabled"]));
|
|
533
534
|
}
|
|
534
|
-
}),
|
|
535
|
+
}), Hn = /* @__PURE__ */ Y(sa, [["__scopeId", "data-v-1c5db445"]]), na = /* @__PURE__ */ N({
|
|
535
536
|
__name: "EmooChoice",
|
|
536
537
|
props: {
|
|
537
538
|
options: {},
|
|
@@ -545,7 +546,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
545
546
|
},
|
|
546
547
|
emits: ["update:modelValue"],
|
|
547
548
|
setup(e, { emit: n }) {
|
|
548
|
-
const o = e, l = n, r = Pe(), i =
|
|
549
|
+
const o = e, l = n, r = Pe(), i = R(() => Array.isArray(o.modelValue) ? o.modelValue.length > 0 : o.modelValue !== void 0 && o.modelValue !== null), p = (b) => {
|
|
549
550
|
!b.currentTarget.contains(b.relatedTarget) && typeof r.onBlur == "function" && r.onBlur(b);
|
|
550
551
|
}, v = () => {
|
|
551
552
|
const b = o.multiple ? [] : void 0;
|
|
@@ -594,7 +595,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
594
595
|
b.$slots.label ? {
|
|
595
596
|
name: "label",
|
|
596
597
|
fn: w((y) => [
|
|
597
|
-
A(b.$slots, "label",
|
|
598
|
+
A(b.$slots, "label", Ne(qe(y)), void 0, !0)
|
|
598
599
|
]),
|
|
599
600
|
key: "0"
|
|
600
601
|
} : void 0,
|
|
@@ -608,7 +609,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
608
609
|
b.$slots.tag ? {
|
|
609
610
|
name: "tag",
|
|
610
611
|
fn: w((y) => [
|
|
611
|
-
A(b.$slots, "tag",
|
|
612
|
+
A(b.$slots, "tag", Ne(qe(y)), void 0, !0)
|
|
612
613
|
]),
|
|
613
614
|
key: "2"
|
|
614
615
|
} : void 0
|
|
@@ -666,7 +667,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
666
667
|
value: y.value,
|
|
667
668
|
disabled: y.disabled,
|
|
668
669
|
"data-testid": e.testid ? `${e.testid}-${String(y.value)}` : void 0,
|
|
669
|
-
onClickCapture: (
|
|
670
|
+
onClickCapture: (V) => g(y, V)
|
|
670
671
|
}, {
|
|
671
672
|
default: w(() => [
|
|
672
673
|
A(b.$slots, "option", { option: y }, () => [
|
|
@@ -679,7 +680,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
679
680
|
_: 3
|
|
680
681
|
}, 8, ["model-value", "disabled", "aria-label"]));
|
|
681
682
|
}
|
|
682
|
-
}),
|
|
683
|
+
}), ia = /* @__PURE__ */ Y(na, [["__scopeId", "data-v-d18fb571"]]), ra = { class: "emt-colmenu__list" }, da = ["data-testid"], ua = ["data-testid"], ca = ["data-testid"], ma = ["data-testid"], va = ["data-testid"], fa = ["disabled", "data-testid"], ha = { class: "emt-colmenu__section" }, pa = ["data-testid", "onClick"], ya = /* @__PURE__ */ N({
|
|
683
684
|
__name: "EmooColumnMenu",
|
|
684
685
|
props: {
|
|
685
686
|
colKey: {},
|
|
@@ -700,7 +701,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
700
701
|
"popper-class": "emt-colmenu"
|
|
701
702
|
}, {
|
|
702
703
|
dropdown: w(() => [
|
|
703
|
-
u("div",
|
|
704
|
+
u("div", ra, [
|
|
704
705
|
e.sortable ? (t(), s(D, { key: 0 }, [
|
|
705
706
|
u("button", {
|
|
706
707
|
class: W(["emt-colmenu__item", { "is-on": e.sorted === "ascending" }]),
|
|
@@ -714,7 +715,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
714
715
|
"aria-hidden": "true"
|
|
715
716
|
}),
|
|
716
717
|
J(k(a(l)("common.emooTable.sortAsc")), 1)
|
|
717
|
-
], 10,
|
|
718
|
+
], 10, da),
|
|
718
719
|
u("button", {
|
|
719
720
|
class: W(["emt-colmenu__item", { "is-on": e.sorted === "descending" }]),
|
|
720
721
|
type: "button",
|
|
@@ -727,7 +728,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
727
728
|
"aria-hidden": "true"
|
|
728
729
|
}),
|
|
729
730
|
J(k(a(l)("common.emooTable.sortDesc")), 1)
|
|
730
|
-
], 10,
|
|
731
|
+
], 10, ua),
|
|
731
732
|
i[7] || (i[7] = u("div", { class: "emt-colmenu__divider" }, null, -1))
|
|
732
733
|
], 64)) : S("", !0),
|
|
733
734
|
e.pinsEnabled ? (t(), s(D, { key: 1 }, [
|
|
@@ -743,7 +744,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
743
744
|
"aria-hidden": "true"
|
|
744
745
|
}),
|
|
745
746
|
J(k(a(l)("common.emooTable.unpin")), 1)
|
|
746
|
-
], 8,
|
|
747
|
+
], 8, ca)) : (t(), s(D, { key: 1 }, [
|
|
747
748
|
u("button", {
|
|
748
749
|
class: "emt-colmenu__item",
|
|
749
750
|
type: "button",
|
|
@@ -755,7 +756,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
755
756
|
"aria-hidden": "true"
|
|
756
757
|
}),
|
|
757
758
|
J(k(a(l)("common.emooTable.pinLeftThrough")), 1)
|
|
758
|
-
], 8,
|
|
759
|
+
], 8, ma),
|
|
759
760
|
u("button", {
|
|
760
761
|
class: "emt-colmenu__item",
|
|
761
762
|
type: "button",
|
|
@@ -767,7 +768,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
767
768
|
"aria-hidden": "true"
|
|
768
769
|
}),
|
|
769
770
|
J(k(a(l)("common.emooTable.pinRightFrom")), 1)
|
|
770
|
-
], 8,
|
|
771
|
+
], 8, va)
|
|
771
772
|
], 64)),
|
|
772
773
|
i[8] || (i[8] = u("div", { class: "emt-colmenu__divider" }, null, -1))
|
|
773
774
|
], 64)) : S("", !0),
|
|
@@ -784,10 +785,10 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
784
785
|
"aria-hidden": "true"
|
|
785
786
|
}),
|
|
786
787
|
J(k(a(l)("common.emooTable.hideColumn")), 1)
|
|
787
|
-
], 8,
|
|
788
|
+
], 8, fa),
|
|
788
789
|
e.hidden.length ? (t(), s(D, { key: 2 }, [
|
|
789
790
|
i[9] || (i[9] = u("div", { class: "emt-colmenu__divider" }, null, -1)),
|
|
790
|
-
u("div",
|
|
791
|
+
u("div", ha, k(a(l)("common.emooTable.hiddenColumns")), 1),
|
|
791
792
|
(t(!0), s(D, null, Z(e.hidden, (p) => (t(), s("button", {
|
|
792
793
|
key: p.key,
|
|
793
794
|
class: "emt-colmenu__item",
|
|
@@ -800,7 +801,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
800
801
|
"aria-hidden": "true"
|
|
801
802
|
}),
|
|
802
803
|
J(k(p.label), 1)
|
|
803
|
-
], 8,
|
|
804
|
+
], 8, pa))), 128))
|
|
804
805
|
], 64)) : S("", !0),
|
|
805
806
|
e.resettable ? (t(), s(D, { key: 3 }, [
|
|
806
807
|
i[10] || (i[10] = u("div", { class: "emt-colmenu__divider" }, null, -1)),
|
|
@@ -828,7 +829,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
|
|
|
828
829
|
}), Je = {
|
|
829
830
|
DRAWER_WIDTHS: "emoo-drawer-widths",
|
|
830
831
|
DRAWER_HEIGHTS: "emoo-drawer-heights"
|
|
831
|
-
},
|
|
832
|
+
}, ba = 360, Lt = 0.98;
|
|
832
833
|
function Ot() {
|
|
833
834
|
try {
|
|
834
835
|
const e = localStorage.getItem(Je.DRAWER_WIDTHS), n = e ? JSON.parse(e) : {};
|
|
@@ -837,11 +838,11 @@ function Ot() {
|
|
|
837
838
|
return {};
|
|
838
839
|
}
|
|
839
840
|
}
|
|
840
|
-
function
|
|
841
|
+
function ga(e, n) {
|
|
841
842
|
const o = Ot()[e];
|
|
842
|
-
return typeof o != "number" || Number.isNaN(o) ? n : `${Math.round(Math.min(Math.max(o,
|
|
843
|
+
return typeof o != "number" || Number.isNaN(o) ? n : `${Math.round(Math.min(Math.max(o, ba), window.innerWidth * Lt))}px`;
|
|
843
844
|
}
|
|
844
|
-
function
|
|
845
|
+
function ka(e, n) {
|
|
845
846
|
try {
|
|
846
847
|
const o = Math.min(Math.round(n), Math.round(window.innerWidth * Lt));
|
|
847
848
|
localStorage.setItem(
|
|
@@ -851,7 +852,7 @@ function ga(e, n) {
|
|
|
851
852
|
} catch {
|
|
852
853
|
}
|
|
853
854
|
}
|
|
854
|
-
const Ut = [0.6, 0.85, 1],
|
|
855
|
+
const Ut = [0.6, 0.85, 1], $a = 0.08, _a = 250;
|
|
855
856
|
function Ht() {
|
|
856
857
|
try {
|
|
857
858
|
const e = localStorage.getItem(Je.DRAWER_HEIGHTS), n = e ? JSON.parse(e) : {};
|
|
@@ -860,7 +861,7 @@ function Ht() {
|
|
|
860
861
|
return {};
|
|
861
862
|
}
|
|
862
863
|
}
|
|
863
|
-
function
|
|
864
|
+
function wa(e, n) {
|
|
864
865
|
try {
|
|
865
866
|
localStorage.setItem(
|
|
866
867
|
Je.DRAWER_HEIGHTS,
|
|
@@ -869,13 +870,13 @@ function _a(e, n) {
|
|
|
869
870
|
} catch {
|
|
870
871
|
}
|
|
871
872
|
}
|
|
872
|
-
function
|
|
873
|
+
function Sa(e) {
|
|
873
874
|
return Ut.reduce((n, o) => Math.abs(o - e) < Math.abs(n - e) ? o : n);
|
|
874
875
|
}
|
|
875
|
-
function
|
|
876
|
-
const o = Ht()[e], l = typeof o == "number" && o > 0 && o <= 1 ? o : n, r = U(l), i = U(null), p =
|
|
876
|
+
function Ca(e, n) {
|
|
877
|
+
const o = Ht()[e], l = typeof o == "number" && o > 0 && o <= 1 ? o : n, r = U(l), i = U(null), p = R(() => i.value === null ? `${Math.round(r.value * 100)}%` : `${i.value}px`), v = U(!1), g = U(!1);
|
|
877
878
|
let c = 0, b = 0, _ = !1, y;
|
|
878
|
-
function
|
|
879
|
+
function V() {
|
|
879
880
|
y !== void 0 && clearTimeout(y), y = void 0, g.value = !1, i.value = null;
|
|
880
881
|
}
|
|
881
882
|
function E(z) {
|
|
@@ -888,26 +889,26 @@ function Sa(e, n) {
|
|
|
888
889
|
i.value = null;
|
|
889
890
|
return;
|
|
890
891
|
}
|
|
891
|
-
const z = i.value / window.innerHeight, j =
|
|
892
|
-
if (r.value = X ? j : Math.round(z * 100) / 100,
|
|
892
|
+
const z = i.value / window.innerHeight, j = Sa(z), X = Math.abs(j - z) <= $a;
|
|
893
|
+
if (r.value = X ? j : Math.round(z * 100) / 100, wa(e, r.value), !X) {
|
|
893
894
|
i.value = null;
|
|
894
895
|
return;
|
|
895
896
|
}
|
|
896
897
|
g.value = !0, requestAnimationFrame(() => {
|
|
897
|
-
i.value = Math.round(j * window.innerHeight), y = setTimeout(
|
|
898
|
+
i.value = Math.round(j * window.innerHeight), y = setTimeout(V, _a);
|
|
898
899
|
});
|
|
899
900
|
}
|
|
900
901
|
function I(z) {
|
|
901
|
-
z.button !== void 0 && z.button !== 0 || (
|
|
902
|
+
z.button !== void 0 && z.button !== 0 || (V(), v.value = !0, _ = !1, c = z.clientY, b = r.value * window.innerHeight, i.value = Math.round(b), window.addEventListener("pointermove", E), window.addEventListener("pointerup", $), window.addEventListener("pointercancel", $));
|
|
902
903
|
}
|
|
903
904
|
return Ct(() => {
|
|
904
905
|
window.removeEventListener("pointermove", E), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $), y !== void 0 && clearTimeout(y);
|
|
905
906
|
}), { size: p, dragging: v, animating: g, onDragStart: I };
|
|
906
907
|
}
|
|
907
|
-
const
|
|
908
|
+
const Ea = {
|
|
908
909
|
key: 0,
|
|
909
910
|
class: "emoo-drawer__sheet"
|
|
910
|
-
},
|
|
911
|
+
}, Ta = { class: "emoo-drawer__sheet-content" }, Kn = /* @__PURE__ */ N({
|
|
911
912
|
inheritAttrs: !1,
|
|
912
913
|
__name: "EmooDrawer",
|
|
913
914
|
props: {
|
|
@@ -922,19 +923,19 @@ const Ca = {
|
|
|
922
923
|
},
|
|
923
924
|
emits: ["update:modelValue", "resize-end"],
|
|
924
925
|
setup(e, { emit: n }) {
|
|
925
|
-
const o = e, l = n, r =
|
|
926
|
+
const o = e, l = n, r = R({
|
|
926
927
|
get: () => o.modelValue,
|
|
927
928
|
set: (y) => l("update:modelValue", y)
|
|
928
|
-
}), i =
|
|
929
|
+
}), i = R(() => o.isMobile && !!o.scene && !o.mobileFull), { size: p, dragging: v, animating: g, onDragStart: c } = Ca(
|
|
929
930
|
o.scene ?? "__emoo-no-scene__",
|
|
930
931
|
o.mobileRatio
|
|
931
|
-
), b =
|
|
932
|
-
function _(y,
|
|
933
|
-
o.scene &&
|
|
932
|
+
), b = R(() => o.isMobile ? i.value ? p.value : o.direction === "rtl" || o.direction === "ltr" ? o.size : "100%" : o.scene ? ga(o.scene, o.size) : o.size);
|
|
933
|
+
function _(y, V) {
|
|
934
|
+
o.scene && ka(o.scene, V), l("resize-end", y, V);
|
|
934
935
|
}
|
|
935
|
-
return (y,
|
|
936
|
+
return (y, V) => (t(), x(a(Tt), Xe(y.$attrs, {
|
|
936
937
|
modelValue: r.value,
|
|
937
|
-
"onUpdate:modelValue":
|
|
938
|
+
"onUpdate:modelValue": V[0] || (V[0] = (E) => r.value = E),
|
|
938
939
|
class: ["emoo-drawer", {
|
|
939
940
|
"emoo-drawer--flush": e.flush,
|
|
940
941
|
"is-sheet": i.value,
|
|
@@ -946,12 +947,12 @@ const Ca = {
|
|
|
946
947
|
onResizeEnd: _
|
|
947
948
|
}), Se({
|
|
948
949
|
default: w(() => [
|
|
949
|
-
i.value ? (t(), s("div",
|
|
950
|
+
i.value ? (t(), s("div", Ea, [
|
|
950
951
|
P(At, {
|
|
951
952
|
dragging: a(v),
|
|
952
953
|
onDragstart: a(c)
|
|
953
954
|
}, null, 8, ["dragging", "onDragstart"]),
|
|
954
|
-
u("div",
|
|
955
|
+
u("div", Ta, [
|
|
955
956
|
A(y.$slots, "default")
|
|
956
957
|
])
|
|
957
958
|
])) : A(y.$slots, "default", {}, void 0, void 0, 1)
|
|
@@ -974,20 +975,20 @@ const Ca = {
|
|
|
974
975
|
} : void 0
|
|
975
976
|
]), 1040, ["modelValue", "class", "size", "direction", "resizable"]));
|
|
976
977
|
}
|
|
977
|
-
}),
|
|
978
|
+
}), xa = {
|
|
978
979
|
key: 0,
|
|
979
980
|
class: "emoo-empty__stage",
|
|
980
981
|
"aria-hidden": "true"
|
|
981
|
-
},
|
|
982
|
+
}, Ia = {
|
|
982
983
|
key: 1,
|
|
983
984
|
class: "emoo-empty__title"
|
|
984
|
-
},
|
|
985
|
+
}, za = {
|
|
985
986
|
key: 2,
|
|
986
987
|
class: "emoo-empty__desc"
|
|
987
|
-
},
|
|
988
|
+
}, Ra = {
|
|
988
989
|
key: 3,
|
|
989
990
|
class: "emoo-empty__actions"
|
|
990
|
-
},
|
|
991
|
+
}, Va = /* @__PURE__ */ N({
|
|
991
992
|
__name: "EmooEmpty",
|
|
992
993
|
props: {
|
|
993
994
|
variant: { default: "stage" },
|
|
@@ -1003,12 +1004,12 @@ const Ca = {
|
|
|
1003
1004
|
"data-testid": "emoo-empty"
|
|
1004
1005
|
}, [
|
|
1005
1006
|
e.variant === "stage" ? (t(), s(D, { key: 0 }, [
|
|
1006
|
-
e.icon ? (t(), s("span",
|
|
1007
|
+
e.icon ? (t(), s("span", xa, [
|
|
1007
1008
|
(t(), x(Ie(e.icon), { weight: "duotone" }))
|
|
1008
1009
|
])) : S("", !0),
|
|
1009
|
-
e.title ? (t(), s("p",
|
|
1010
|
-
e.description ? (t(), s("p",
|
|
1011
|
-
n.$slots.actions ? (t(), s("div",
|
|
1010
|
+
e.title ? (t(), s("p", Ia, k(e.title), 1)) : S("", !0),
|
|
1011
|
+
e.description ? (t(), s("p", za, k(e.description), 1)) : S("", !0),
|
|
1012
|
+
n.$slots.actions ? (t(), s("div", Ra, [
|
|
1012
1013
|
A(n.$slots, "actions", {}, void 0, !0)
|
|
1013
1014
|
])) : S("", !0)
|
|
1014
1015
|
], 64)) : (t(), s(D, { key: 1 }, [
|
|
@@ -1016,7 +1017,7 @@ const Ca = {
|
|
|
1016
1017
|
], 64))
|
|
1017
1018
|
], 2));
|
|
1018
1019
|
}
|
|
1019
|
-
}),
|
|
1020
|
+
}), Ma = /* @__PURE__ */ Y(Va, [["__scopeId", "data-v-e50a5864"]]), Ba = ["id", "for"], Da = { class: "emoo-field__body" }, Pa = ["data-testid"], Aa = ["id"], La = ["id", "data-testid"], Oa = /* @__PURE__ */ N({
|
|
1020
1021
|
__name: "EmooField",
|
|
1021
1022
|
props: {
|
|
1022
1023
|
id: {},
|
|
@@ -1031,9 +1032,9 @@ const Ca = {
|
|
|
1031
1032
|
testid: {}
|
|
1032
1033
|
},
|
|
1033
1034
|
setup(e) {
|
|
1034
|
-
const n = e, o =
|
|
1035
|
+
const n = e, o = R(() => n.id ? `${n.id}-control` : void 0), l = R(() => n.id ? `${n.id}-label` : void 0), r = R(() => n.id ? `${n.id}-help` : void 0), i = R(() => n.id ? `${n.id}-error` : void 0), p = R(
|
|
1035
1036
|
() => [n.error && i.value, n.help && r.value].filter(Boolean).join(" ") || void 0
|
|
1036
|
-
), v =
|
|
1037
|
+
), v = R(() => {
|
|
1037
1038
|
if (!(n.span === 1 || n.span === void 0))
|
|
1038
1039
|
return n.span === "full" ? "is-span-full" : `is-span-${Math.min(4, Math.max(1, n.span))}`;
|
|
1039
1040
|
});
|
|
@@ -1050,8 +1051,8 @@ const Ca = {
|
|
|
1050
1051
|
A(g.$slots, "label", {}, () => [
|
|
1051
1052
|
J(k(e.label), 1)
|
|
1052
1053
|
], !0)
|
|
1053
|
-
], 10,
|
|
1054
|
-
u("div",
|
|
1054
|
+
], 10, Ba)) : S("", !0),
|
|
1055
|
+
u("div", Da, [
|
|
1055
1056
|
e.mode === "view" ? (t(), s("div", {
|
|
1056
1057
|
key: 0,
|
|
1057
1058
|
class: "emoo-field__value",
|
|
@@ -1060,7 +1061,7 @@ const Ca = {
|
|
|
1060
1061
|
A(g.$slots, "view", {}, () => [
|
|
1061
1062
|
J(k(e.text), 1)
|
|
1062
1063
|
], !0)
|
|
1063
|
-
], 8,
|
|
1064
|
+
], 8, Pa)) : A(g.$slots, "default", {
|
|
1064
1065
|
id: o.value || void 0,
|
|
1065
1066
|
describedBy: p.value,
|
|
1066
1067
|
invalid: !!e.error,
|
|
@@ -1070,18 +1071,18 @@ const Ca = {
|
|
|
1070
1071
|
key: 2,
|
|
1071
1072
|
id: r.value,
|
|
1072
1073
|
class: "emoo-field__help"
|
|
1073
|
-
}, k(e.help), 9,
|
|
1074
|
+
}, k(e.help), 9, Aa)) : S("", !0),
|
|
1074
1075
|
e.error && e.mode === "edit" ? (t(), s("p", {
|
|
1075
1076
|
key: 3,
|
|
1076
1077
|
id: i.value,
|
|
1077
1078
|
class: "emoo-field__error",
|
|
1078
1079
|
role: "alert",
|
|
1079
1080
|
"data-testid": e.testid ? `${e.testid}-error` : void 0
|
|
1080
|
-
}, k(e.error), 9,
|
|
1081
|
+
}, k(e.error), 9, La)) : S("", !0)
|
|
1081
1082
|
])
|
|
1082
1083
|
], 2)) : S("", !0);
|
|
1083
1084
|
}
|
|
1084
|
-
}),
|
|
1085
|
+
}), Wn = /* @__PURE__ */ Y(Oa, [["__scopeId", "data-v-1b6ea0e7"]]), Ua = ["aria-label"], Ha = /* @__PURE__ */ N({
|
|
1085
1086
|
__name: "EmooFieldGrid",
|
|
1086
1087
|
props: {
|
|
1087
1088
|
ariaLabel: {},
|
|
@@ -1094,9 +1095,30 @@ const Ca = {
|
|
|
1094
1095
|
"aria-label": e.ariaLabel
|
|
1095
1096
|
}, [
|
|
1096
1097
|
A(n.$slots, "default", {}, void 0, !0)
|
|
1097
|
-
], 10,
|
|
1098
|
+
], 10, Ua));
|
|
1099
|
+
}
|
|
1100
|
+
}), Fn = /* @__PURE__ */ Y(Ha, [["__scopeId", "data-v-12f1e7e0"]]), Ka = ["width", "height", "data-type", "innerHTML"], Nn = /* @__PURE__ */ N({
|
|
1101
|
+
__name: "EmooFileTypeIcon",
|
|
1102
|
+
props: {
|
|
1103
|
+
type: {},
|
|
1104
|
+
size: {}
|
|
1105
|
+
},
|
|
1106
|
+
setup(e) {
|
|
1107
|
+
const n = e, o = R(() => n.size ?? "1em"), l = R(() => Eo(n.type));
|
|
1108
|
+
return (r, i) => (t(), s("svg", {
|
|
1109
|
+
class: "emoo-file-icon",
|
|
1110
|
+
width: o.value,
|
|
1111
|
+
height: o.value,
|
|
1112
|
+
viewBox: "0 0 24 24",
|
|
1113
|
+
fill: "none",
|
|
1114
|
+
"aria-hidden": "true",
|
|
1115
|
+
focusable: "false",
|
|
1116
|
+
"data-testid": "emoo-file-type-icon",
|
|
1117
|
+
"data-type": e.type,
|
|
1118
|
+
innerHTML: l.value
|
|
1119
|
+
}, null, 8, Ka));
|
|
1098
1120
|
}
|
|
1099
|
-
}),
|
|
1121
|
+
}), Wa = /* @__PURE__ */ N({
|
|
1100
1122
|
__name: "EmooGhostButton",
|
|
1101
1123
|
props: {
|
|
1102
1124
|
pill: { type: Boolean },
|
|
@@ -1110,7 +1132,7 @@ const Ca = {
|
|
|
1110
1132
|
A(n.$slots, "default", {}, void 0, !0)
|
|
1111
1133
|
], 2));
|
|
1112
1134
|
}
|
|
1113
|
-
}),
|
|
1135
|
+
}), qn = /* @__PURE__ */ Y(Wa, [["__scopeId", "data-v-d0346949"]]), Fa = /* @__PURE__ */ N({
|
|
1114
1136
|
__name: "EmooGroupLabel",
|
|
1115
1137
|
props: {
|
|
1116
1138
|
title: {},
|
|
@@ -1124,10 +1146,10 @@ const Ca = {
|
|
|
1124
1146
|
u("span", null, k(a(n)(e.title)), 1)
|
|
1125
1147
|
], 2));
|
|
1126
1148
|
}
|
|
1127
|
-
}),
|
|
1149
|
+
}), jn = /* @__PURE__ */ Y(Fa, [["__scopeId", "data-v-0135d501"]]), Na = { class: "emoo-skel__lines" }, qa = { class: "emoo-skel__head" }, ja = {
|
|
1128
1150
|
key: 4,
|
|
1129
1151
|
class: "emoo-skel__pill-row"
|
|
1130
|
-
},
|
|
1152
|
+
}, Ga = { class: "emoo-skel__detail" }, Xa = { class: "emoo-skel__lines" }, Za = /* @__PURE__ */ N({
|
|
1131
1153
|
__name: "EmooSkeleton",
|
|
1132
1154
|
props: {
|
|
1133
1155
|
variant: { default: "lines" },
|
|
@@ -1152,7 +1174,7 @@ const Ca = {
|
|
|
1152
1174
|
class: "emoo-skel__item"
|
|
1153
1175
|
}, [
|
|
1154
1176
|
o[0] || (o[0] = u("span", { class: "emoo-skel__bone emoo-skel__avatar" }, null, -1)),
|
|
1155
|
-
u("span",
|
|
1177
|
+
u("span", Na, [
|
|
1156
1178
|
u("span", {
|
|
1157
1179
|
class: "emoo-skel__bone emoo-skel__line",
|
|
1158
1180
|
style: pe({ width: `${52 - l * 8}%` })
|
|
@@ -1163,7 +1185,7 @@ const Ca = {
|
|
|
1163
1185
|
}, null, 4)
|
|
1164
1186
|
])
|
|
1165
1187
|
]))), 128)) : e.variant === "table" ? (t(), s(D, { key: 2 }, [
|
|
1166
|
-
u("span",
|
|
1188
|
+
u("span", qa, [
|
|
1167
1189
|
(t(), s(D, null, Z(["18%", "26%", "14%", "22%"], (l, r) => u("span", {
|
|
1168
1190
|
key: r,
|
|
1169
1191
|
class: "emoo-skel__bone emoo-skel__cell",
|
|
@@ -1189,7 +1211,7 @@ const Ca = {
|
|
|
1189
1211
|
style: { width: "56%" }
|
|
1190
1212
|
}, null, -1),
|
|
1191
1213
|
u("span", { class: "emoo-skel__bone emoo-skel__tile-value" }, null, -1)
|
|
1192
|
-
])]))), 128)) : e.variant === "pills" ? (t(), s("div",
|
|
1214
|
+
])]))), 128)) : e.variant === "pills" ? (t(), s("div", ja, [
|
|
1193
1215
|
(t(!0), s(D, null, Z(e.pills, (l) => (t(), s("span", {
|
|
1194
1216
|
key: l,
|
|
1195
1217
|
class: "emoo-skel__bone emoo-skel__pill"
|
|
@@ -1214,8 +1236,8 @@ const Ca = {
|
|
|
1214
1236
|
}, null, 4)
|
|
1215
1237
|
], 64)) : (t(), s(D, { key: 7 }, [
|
|
1216
1238
|
o[5] || (o[5] = u("span", { class: "emoo-skel__bone emoo-skel__title" }, null, -1)),
|
|
1217
|
-
u("span",
|
|
1218
|
-
u("span",
|
|
1239
|
+
u("span", Ga, [
|
|
1240
|
+
u("span", Xa, [
|
|
1219
1241
|
(t(!0), s(D, null, Z(e.lines, (l) => (t(), s("span", {
|
|
1220
1242
|
key: l,
|
|
1221
1243
|
class: W(["emoo-skel__bone emoo-skel__line", { "is-tail": l === e.lines }])
|
|
@@ -1226,7 +1248,7 @@ const Ca = {
|
|
|
1226
1248
|
], 64))
|
|
1227
1249
|
], 2));
|
|
1228
1250
|
}
|
|
1229
|
-
}),
|
|
1251
|
+
}), Ja = /* @__PURE__ */ Y(Za, [["__scopeId", "data-v-9e0a33de"]]), Ya = ["aria-label"], Qa = /* @__PURE__ */ N({
|
|
1230
1252
|
__name: "EmooSpinner",
|
|
1231
1253
|
props: {
|
|
1232
1254
|
size: { default: 20 },
|
|
@@ -1252,22 +1274,22 @@ const Ca = {
|
|
|
1252
1274
|
"stroke-dasharray": "37.7 12.57"
|
|
1253
1275
|
})
|
|
1254
1276
|
], -1)
|
|
1255
|
-
])], 12,
|
|
1277
|
+
])], 12, Ya));
|
|
1256
1278
|
}
|
|
1257
|
-
}), Kt = /* @__PURE__ */ Y(
|
|
1279
|
+
}), Kt = /* @__PURE__ */ Y(Qa, [["__scopeId", "data-v-d168f9f3"]]), el = {
|
|
1258
1280
|
class: "emoo-history-list",
|
|
1259
1281
|
"data-testid": "emoo-history-list"
|
|
1260
|
-
},
|
|
1282
|
+
}, tl = {
|
|
1261
1283
|
key: 0,
|
|
1262
1284
|
class: "history-float"
|
|
1263
|
-
},
|
|
1285
|
+
}, ol = ["data-item-id", "tabindex", "onClick", "onFocus", "onKeydown"], al = { class: "history-name" }, ll = { key: 0 }, sl = {
|
|
1264
1286
|
key: 1,
|
|
1265
1287
|
class: "status-indicator",
|
|
1266
1288
|
"data-testid": "chat-status-indicator"
|
|
1267
|
-
},
|
|
1289
|
+
}, nl = {
|
|
1268
1290
|
key: 1,
|
|
1269
1291
|
class: "status-dot"
|
|
1270
|
-
},
|
|
1292
|
+
}, il = /* @__PURE__ */ N({
|
|
1271
1293
|
__name: "EmooHistoryList",
|
|
1272
1294
|
props: {
|
|
1273
1295
|
groups: {},
|
|
@@ -1285,13 +1307,13 @@ const Ca = {
|
|
|
1285
1307
|
},
|
|
1286
1308
|
emits: ["update:keyword", "update:selectedIds", "select", "load-more", "delete", "rename"],
|
|
1287
1309
|
setup(e, { expose: n, emit: o }) {
|
|
1288
|
-
const l = e, r = o, { t: i } = me(), p =
|
|
1289
|
-
_.value = !0, await ke(),
|
|
1310
|
+
const l = e, r = o, { t: i } = me(), p = R(() => l.searchPlaceholder ?? i("common.emooHistory.searchPlaceholder")), v = R(() => l.selectLabel ?? i("common.emooHistory.select")), g = R(() => l.emptyTitle ?? i("common.emooHistory.empty")), c = R(() => l.noMatchTitle ?? i("common.emooHistory.noMatch")), b = R(() => l.groups.some((M) => M.items.length > 0)), _ = U(!1), y = U(!1), V = U(null), E = async () => {
|
|
1311
|
+
_.value = !0, await ke(), V.value?.focus();
|
|
1290
1312
|
}, $ = () => {
|
|
1291
1313
|
!l.keyword && !y.value && (_.value = !1);
|
|
1292
1314
|
}, I = () => {
|
|
1293
1315
|
y.value = !1, $();
|
|
1294
|
-
}, z = U(null), j = U(null), X =
|
|
1316
|
+
}, z = U(null), j = U(null), X = R(() => l.groups.flatMap((M) => M.items)), ie = (M) => M.id === (j.value ?? X.value[0]?.id) ? 0 : -1, ee = (M) => {
|
|
1295
1317
|
M !== void 0 && z.value?.querySelector(`.history-item[data-item-id="${M}"]`)?.focus();
|
|
1296
1318
|
}, d = () => ee(X.value[0]?.id), T = (M, O) => {
|
|
1297
1319
|
if (M.target !== M.currentTarget) return;
|
|
@@ -1322,7 +1344,7 @@ const Ca = {
|
|
|
1322
1344
|
"update:selectedIds",
|
|
1323
1345
|
O ? [...l.selectedIds, M] : l.selectedIds.filter((G) => G !== M)
|
|
1324
1346
|
);
|
|
1325
|
-
},
|
|
1347
|
+
}, F = () => {
|
|
1326
1348
|
H.value = !H.value, H.value ? de() : r("update:selectedIds", []);
|
|
1327
1349
|
}, C = () => {
|
|
1328
1350
|
H.value && (H.value = !1, r("update:selectedIds", []));
|
|
@@ -1340,8 +1362,8 @@ const Ca = {
|
|
|
1340
1362
|
window.addEventListener("keydown", B);
|
|
1341
1363
|
}), Ct(() => {
|
|
1342
1364
|
window.removeEventListener("keydown", B);
|
|
1343
|
-
}), n({ startRename: q, cancelRename: de, exitSelectMode: C, focusSearch: E }), (M, O) => (t(), s("div",
|
|
1344
|
-
e.anyRecord ? (t(), s("div",
|
|
1365
|
+
}), n({ startRename: q, cancelRename: de, exitSelectMode: C, focusSearch: E }), (M, O) => (t(), s("div", el, [
|
|
1366
|
+
e.anyRecord ? (t(), s("div", tl, [
|
|
1345
1367
|
u("div", {
|
|
1346
1368
|
class: W(["search-area", { expanded: _.value }]),
|
|
1347
1369
|
onMouseenter: O[2] || (O[2] = (G) => _.value = !0),
|
|
@@ -1367,7 +1389,7 @@ const Ca = {
|
|
|
1367
1389
|
}, 8, ["content"]),
|
|
1368
1390
|
P(a(ot), {
|
|
1369
1391
|
ref_key: "searchInputRef",
|
|
1370
|
-
ref:
|
|
1392
|
+
ref: V,
|
|
1371
1393
|
"model-value": e.keyword,
|
|
1372
1394
|
size: "small",
|
|
1373
1395
|
clearable: "",
|
|
@@ -1388,7 +1410,7 @@ const Ca = {
|
|
|
1388
1410
|
class: "float-toggle",
|
|
1389
1411
|
"data-testid": "chat-history-select-cancel",
|
|
1390
1412
|
disabled: e.batchBusy,
|
|
1391
|
-
onClick:
|
|
1413
|
+
onClick: F
|
|
1392
1414
|
}, {
|
|
1393
1415
|
default: w(() => [
|
|
1394
1416
|
J(k(a(i)("common.emooHistory.cancel")), 1)
|
|
@@ -1408,7 +1430,7 @@ const Ca = {
|
|
|
1408
1430
|
"data-testid": "chat-history-select-toggle",
|
|
1409
1431
|
"aria-label": v.value,
|
|
1410
1432
|
disabled: e.batchBusy,
|
|
1411
|
-
onClick:
|
|
1433
|
+
onClick: F
|
|
1412
1434
|
}, {
|
|
1413
1435
|
default: w(() => [
|
|
1414
1436
|
P(a(go), { size: 14 })
|
|
@@ -1420,13 +1442,13 @@ const Ca = {
|
|
|
1420
1442
|
}, 8, ["content"]))
|
|
1421
1443
|
], 64)) : S("", !0)
|
|
1422
1444
|
])) : S("", !0),
|
|
1423
|
-
|
|
1445
|
+
Fe((t(), s("div", {
|
|
1424
1446
|
ref_key: "historyScrollRef",
|
|
1425
1447
|
ref: z,
|
|
1426
1448
|
class: "history-scroll",
|
|
1427
1449
|
onScroll: Q
|
|
1428
1450
|
}, [
|
|
1429
|
-
e.loading && !b.value ? (t(), x(
|
|
1451
|
+
e.loading && !b.value ? (t(), x(Ja, {
|
|
1430
1452
|
key: 0,
|
|
1431
1453
|
variant: "lines",
|
|
1432
1454
|
lines: 4,
|
|
@@ -1464,8 +1486,8 @@ const Ca = {
|
|
|
1464
1486
|
}, ["stop"])),
|
|
1465
1487
|
"onUpdate:modelValue": (re) => te(oe.id, !!re)
|
|
1466
1488
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : S("", !0),
|
|
1467
|
-
u("span",
|
|
1468
|
-
se.value !== oe.id ? (t(), s("span",
|
|
1489
|
+
u("span", al, [
|
|
1490
|
+
se.value !== oe.id ? (t(), s("span", ll, k(oe.title), 1)) : (t(), x(a(ot), {
|
|
1469
1491
|
key: 1,
|
|
1470
1492
|
modelValue: ne.value,
|
|
1471
1493
|
"onUpdate:modelValue": O[4] || (O[4] = (re) => ne.value = re),
|
|
@@ -1479,12 +1501,12 @@ const Ca = {
|
|
|
1479
1501
|
onBlur: le(ce, ["stop"])
|
|
1480
1502
|
}, null, 8, ["modelValue"]))
|
|
1481
1503
|
]),
|
|
1482
|
-
se.value !== oe.id && oe.id !== e.activeId && oe.status ? (t(), s("span",
|
|
1504
|
+
se.value !== oe.id && oe.id !== e.activeId && oe.status ? (t(), s("span", sl, [
|
|
1483
1505
|
oe.status === "generating" ? (t(), x(Kt, {
|
|
1484
1506
|
key: 0,
|
|
1485
1507
|
size: 14,
|
|
1486
1508
|
label: a(i)("common.loading")
|
|
1487
|
-
}, null, 8, ["label"])) : (t(), s("span",
|
|
1509
|
+
}, null, 8, ["label"])) : (t(), s("span", nl))
|
|
1488
1510
|
])) : S("", !0),
|
|
1489
1511
|
se.value !== oe.id && !H.value && ae ? (t(), x(a(nt), {
|
|
1490
1512
|
key: 2,
|
|
@@ -1521,11 +1543,11 @@ const Ca = {
|
|
|
1521
1543
|
]),
|
|
1522
1544
|
_: 2
|
|
1523
1545
|
}, 1024)) : S("", !0)
|
|
1524
|
-
], 42,
|
|
1546
|
+
], 42, ol)
|
|
1525
1547
|
]),
|
|
1526
1548
|
_: 2
|
|
1527
1549
|
}, 1032, ["content", "disabled"]))), 128))
|
|
1528
|
-
]))), 128)) : (t(), x(
|
|
1550
|
+
]))), 128)) : (t(), x(Ma, {
|
|
1529
1551
|
key: 2,
|
|
1530
1552
|
variant: "mini",
|
|
1531
1553
|
title: e.keyword.trim() ? c.value : g.value
|
|
@@ -1535,20 +1557,20 @@ const Ca = {
|
|
|
1535
1557
|
])
|
|
1536
1558
|
]));
|
|
1537
1559
|
}
|
|
1538
|
-
}),
|
|
1560
|
+
}), Gn = /* @__PURE__ */ Y(il, [["__scopeId", "data-v-862f7ee9"]]), rl = {
|
|
1539
1561
|
class: "emoo-mrsel__tabs",
|
|
1540
1562
|
role: "tablist"
|
|
1541
|
-
},
|
|
1563
|
+
}, dl = ["aria-selected", "onClick"], ul = { class: "emoo-mrsel__count" }, cl = {
|
|
1542
1564
|
class: "emoo-sel-remote-error",
|
|
1543
1565
|
role: "alert",
|
|
1544
1566
|
"data-testid": "remote-error"
|
|
1545
|
-
},
|
|
1567
|
+
}, ml = { class: "emoo-mrsel__opt" }, vl = ["src"], fl = { class: "emoo-mrsel__name" }, hl = {
|
|
1546
1568
|
key: 0,
|
|
1547
1569
|
class: "emoo-mrsel__dept"
|
|
1548
|
-
},
|
|
1570
|
+
}, pl = { class: "emoo-mrsel__opt" }, yl = ["src"], bl = { class: "emoo-mrsel__col" }, gl = { class: "emoo-mrsel__name" }, kl = {
|
|
1549
1571
|
key: 0,
|
|
1550
1572
|
class: "emoo-mrsel__desc"
|
|
1551
|
-
},
|
|
1573
|
+
}, $l = /* @__PURE__ */ N({
|
|
1552
1574
|
__name: "EmooMemberRoleSelect",
|
|
1553
1575
|
props: {
|
|
1554
1576
|
modelValue: {},
|
|
@@ -1563,10 +1585,10 @@ const Ca = {
|
|
|
1563
1585
|
},
|
|
1564
1586
|
emits: ["update:modelValue"],
|
|
1565
1587
|
setup(e, { emit: n }) {
|
|
1566
|
-
const o = e, l = n, { t: r } = me(), i = U("member"), p =
|
|
1588
|
+
const o = e, l = n, { t: r } = me(), i = U("member"), p = R(() => o.modelValue?.memberIds ?? []), v = R(() => o.modelValue?.roleIds ?? []), g = R(() => [
|
|
1567
1589
|
{ key: "member", label: r("common.emooSelect.memberTab"), count: p.value.length },
|
|
1568
1590
|
{ key: "role", label: r("common.emooSelect.roleTab"), count: v.value.length }
|
|
1569
|
-
]), c =
|
|
1591
|
+
]), c = R(() => o.memberSource !== void 0 || o.roleSource !== void 0), b = Me(() => o.memberSource, "emoo-mrsel-popper"), _ = Me(() => o.roleSource, "emoo-mrsel-popper"), y = (H) => H === "member" ? b : _, V = R(() => `${b.popperClass} ${_.popperClass}`), E = R(() => i.value === "member" ? p.value : v.value), $ = Be(
|
|
1570
1592
|
() => p.value,
|
|
1571
1593
|
() => c.value ? b.items.value : o.members ?? [],
|
|
1572
1594
|
() => o.selectedMembers ?? []
|
|
@@ -1574,10 +1596,10 @@ const Ca = {
|
|
|
1574
1596
|
() => v.value,
|
|
1575
1597
|
() => c.value ? _.items.value : o.roles ?? [],
|
|
1576
1598
|
() => o.selectedRoles ?? []
|
|
1577
|
-
), z = $.mergedOptions, j = I.mergedOptions, X =
|
|
1599
|
+
), z = $.mergedOptions, j = I.mergedOptions, X = R(() => [
|
|
1578
1600
|
...$.selectedOptions.value,
|
|
1579
1601
|
...I.selectedOptions.value.map((H) => ({ ...H, square: !0 }))
|
|
1580
|
-
]), ie = Pe(), ee =
|
|
1602
|
+
]), ie = Pe(), ee = R(() => ie.disabled !== void 0 && ie.disabled !== !1), d = U(!1), T = (H) => {
|
|
1581
1603
|
if (d.value = H, !H) {
|
|
1582
1604
|
b.onVisibleChange(!1), _.onVisibleChange(!1);
|
|
1583
1605
|
return;
|
|
@@ -1585,7 +1607,7 @@ const Ca = {
|
|
|
1585
1607
|
c.value && y(i.value).onVisibleChange(!0);
|
|
1586
1608
|
}, B = (H) => {
|
|
1587
1609
|
c.value && y(i.value).search(H);
|
|
1588
|
-
}, se =
|
|
1610
|
+
}, se = R(() => c.value ? y(i.value).loading.value : !1), ne = R(() => c.value ? y(i.value).error.value : null), ye = () => y(i.value).retry(), q = (H) => {
|
|
1589
1611
|
i.value !== H && (i.value = H, c.value && d.value && y(H).onVisibleChange(!0));
|
|
1590
1612
|
}, de = (H) => {
|
|
1591
1613
|
const te = Array.isArray(H) ? [...H] : H == null || H === "" ? [] : [H];
|
|
@@ -1597,9 +1619,9 @@ const Ca = {
|
|
|
1597
1619
|
if (ee.value) return;
|
|
1598
1620
|
const te = X.value[H];
|
|
1599
1621
|
if (!te) return;
|
|
1600
|
-
const
|
|
1601
|
-
memberIds:
|
|
1602
|
-
roleIds:
|
|
1622
|
+
const F = H < $.selectedOptions.value.length, C = {
|
|
1623
|
+
memberIds: F ? p.value.filter((L) => L !== te.id) : [...p.value],
|
|
1624
|
+
roleIds: F ? [...v.value] : v.value.filter((L) => L !== te.id)
|
|
1603
1625
|
};
|
|
1604
1626
|
$.remember(C.memberIds), I.remember(C.roleIds), l("update:modelValue", C);
|
|
1605
1627
|
};
|
|
@@ -1613,7 +1635,7 @@ const Ca = {
|
|
|
1613
1635
|
remote: c.value,
|
|
1614
1636
|
"remote-method": B,
|
|
1615
1637
|
loading: se.value,
|
|
1616
|
-
"popper-class":
|
|
1638
|
+
"popper-class": V.value,
|
|
1617
1639
|
"onUpdate:modelValue": de,
|
|
1618
1640
|
onVisibleChange: T
|
|
1619
1641
|
}, Se({
|
|
@@ -1626,68 +1648,68 @@ const Ca = {
|
|
|
1626
1648
|
}, null, 8, ["items", "max", "removable"])
|
|
1627
1649
|
]),
|
|
1628
1650
|
header: w(() => [
|
|
1629
|
-
u("div",
|
|
1630
|
-
(t(!0), s(D, null, Z(g.value, (
|
|
1631
|
-
key:
|
|
1651
|
+
u("div", rl, [
|
|
1652
|
+
(t(!0), s(D, null, Z(g.value, (F) => (t(), s("button", {
|
|
1653
|
+
key: F.key,
|
|
1632
1654
|
type: "button",
|
|
1633
|
-
class: W(["emoo-mrsel__tab", { "is-active": i.value ===
|
|
1634
|
-
"aria-selected": i.value ===
|
|
1635
|
-
onClick: (C) => q(
|
|
1655
|
+
class: W(["emoo-mrsel__tab", { "is-active": i.value === F.key }]),
|
|
1656
|
+
"aria-selected": i.value === F.key,
|
|
1657
|
+
onClick: (C) => q(F.key)
|
|
1636
1658
|
}, [
|
|
1637
|
-
J(k(
|
|
1638
|
-
u("span",
|
|
1639
|
-
], 10,
|
|
1659
|
+
J(k(F.label) + " ", 1),
|
|
1660
|
+
u("span", ul, k(F.count), 1)
|
|
1661
|
+
], 10, dl))), 128))
|
|
1640
1662
|
])
|
|
1641
1663
|
]),
|
|
1642
1664
|
default: w(() => [
|
|
1643
|
-
i.value === "member" ? (t(!0), s(D, { key: 0 }, Z(a(z), (
|
|
1644
|
-
key:
|
|
1645
|
-
label:
|
|
1646
|
-
value:
|
|
1665
|
+
i.value === "member" ? (t(!0), s(D, { key: 0 }, Z(a(z), (F) => (t(), x(a(ze), {
|
|
1666
|
+
key: F.id,
|
|
1667
|
+
label: F.name,
|
|
1668
|
+
value: F.id
|
|
1647
1669
|
}, {
|
|
1648
1670
|
default: w(() => [
|
|
1649
|
-
u("span",
|
|
1671
|
+
u("span", ml, [
|
|
1650
1672
|
u("span", {
|
|
1651
1673
|
class: "emoo-mrsel__avatar",
|
|
1652
|
-
style: pe({ "--tint":
|
|
1674
|
+
style: pe({ "--tint": F.color || "var(--el-color-primary)" })
|
|
1653
1675
|
}, [
|
|
1654
|
-
|
|
1676
|
+
F.avatar ? (t(), s("img", {
|
|
1655
1677
|
key: 0,
|
|
1656
|
-
src:
|
|
1678
|
+
src: F.avatar,
|
|
1657
1679
|
alt: "",
|
|
1658
1680
|
class: "emoo-mrsel__img"
|
|
1659
|
-
}, null, 8,
|
|
1660
|
-
J(k(
|
|
1681
|
+
}, null, 8, vl)) : (t(), s(D, { key: 1 }, [
|
|
1682
|
+
J(k(F.name[0]), 1)
|
|
1661
1683
|
], 64))
|
|
1662
1684
|
], 4),
|
|
1663
|
-
u("span",
|
|
1664
|
-
|
|
1685
|
+
u("span", fl, k(F.name), 1),
|
|
1686
|
+
F.dept ? (t(), s("span", hl, k(F.dept), 1)) : S("", !0)
|
|
1665
1687
|
])
|
|
1666
1688
|
]),
|
|
1667
1689
|
_: 2
|
|
1668
|
-
}, 1032, ["label", "value"]))), 128)) : (t(!0), s(D, { key: 1 }, Z(a(j), (
|
|
1669
|
-
key:
|
|
1670
|
-
label:
|
|
1671
|
-
value:
|
|
1690
|
+
}, 1032, ["label", "value"]))), 128)) : (t(!0), s(D, { key: 1 }, Z(a(j), (F) => (t(), x(a(ze), {
|
|
1691
|
+
key: F.id,
|
|
1692
|
+
label: F.name,
|
|
1693
|
+
value: F.id
|
|
1672
1694
|
}, {
|
|
1673
1695
|
default: w(() => [
|
|
1674
|
-
u("span",
|
|
1696
|
+
u("span", pl, [
|
|
1675
1697
|
u("span", {
|
|
1676
1698
|
class: "emoo-mrsel__avatar is-square",
|
|
1677
|
-
style: pe({ "--tint":
|
|
1699
|
+
style: pe({ "--tint": F.color || "var(--el-color-primary)" })
|
|
1678
1700
|
}, [
|
|
1679
|
-
|
|
1701
|
+
F.avatar ? (t(), s("img", {
|
|
1680
1702
|
key: 0,
|
|
1681
|
-
src:
|
|
1703
|
+
src: F.avatar,
|
|
1682
1704
|
alt: "",
|
|
1683
1705
|
class: "emoo-mrsel__img"
|
|
1684
|
-
}, null, 8,
|
|
1685
|
-
J(k(
|
|
1706
|
+
}, null, 8, yl)) : (t(), s(D, { key: 1 }, [
|
|
1707
|
+
J(k(F.name[0]), 1)
|
|
1686
1708
|
], 64))
|
|
1687
1709
|
], 4),
|
|
1688
|
-
u("span",
|
|
1689
|
-
u("span",
|
|
1690
|
-
|
|
1710
|
+
u("span", bl, [
|
|
1711
|
+
u("span", gl, k(F.name), 1),
|
|
1712
|
+
F.desc ? (t(), s("span", kl, k(F.desc), 1)) : S("", !0)
|
|
1691
1713
|
])
|
|
1692
1714
|
])
|
|
1693
1715
|
]),
|
|
@@ -1699,12 +1721,12 @@ const Ca = {
|
|
|
1699
1721
|
ne.value ? {
|
|
1700
1722
|
name: "footer",
|
|
1701
1723
|
fn: w(() => [
|
|
1702
|
-
u("div",
|
|
1724
|
+
u("div", cl, [
|
|
1703
1725
|
u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
|
|
1704
1726
|
u("button", {
|
|
1705
1727
|
type: "button",
|
|
1706
1728
|
"data-testid": "remote-retry",
|
|
1707
|
-
onClick: te[0] || (te[0] = (
|
|
1729
|
+
onClick: te[0] || (te[0] = (F) => ye())
|
|
1708
1730
|
}, k(a(r)("common.emooSelect.retry")), 1)
|
|
1709
1731
|
])
|
|
1710
1732
|
]),
|
|
@@ -1712,14 +1734,14 @@ const Ca = {
|
|
|
1712
1734
|
} : void 0
|
|
1713
1735
|
]), 1032, ["model-value", "placeholder", "remote", "loading", "popper-class"]));
|
|
1714
1736
|
}
|
|
1715
|
-
}),
|
|
1737
|
+
}), Xn = /* @__PURE__ */ Y($l, [["__scopeId", "data-v-ff057c7b"]]), _l = { class: "emoo-msel__opt" }, wl = ["src"], Sl = { class: "emoo-msel__name" }, Cl = {
|
|
1716
1738
|
key: 0,
|
|
1717
1739
|
class: "emoo-msel__dept"
|
|
1718
|
-
},
|
|
1740
|
+
}, El = {
|
|
1719
1741
|
class: "emoo-sel-remote-error",
|
|
1720
1742
|
role: "alert",
|
|
1721
1743
|
"data-testid": "remote-error"
|
|
1722
|
-
},
|
|
1744
|
+
}, Tl = /* @__PURE__ */ N({
|
|
1723
1745
|
__name: "EmooMemberSelect",
|
|
1724
1746
|
props: {
|
|
1725
1747
|
modelValue: {},
|
|
@@ -1733,11 +1755,11 @@ const Ca = {
|
|
|
1733
1755
|
},
|
|
1734
1756
|
emits: ["update:modelValue"],
|
|
1735
1757
|
setup(e, { emit: n }) {
|
|
1736
|
-
const o = e, l = n, { t: r } = me(), i =
|
|
1758
|
+
const o = e, l = n, { t: r } = me(), i = R(() => o.source !== void 0), { items: p, loading: v, error: g, retry: c, search: b, onVisibleChange: _, popperClass: y } = Me(() => o.source, "emoo-msel-popper"), { mergedOptions: V, selectedOptions: E, remember: $ } = Be(
|
|
1737
1759
|
() => o.modelValue,
|
|
1738
1760
|
() => i.value ? p.value : o.options ?? [],
|
|
1739
1761
|
() => o.selected ?? []
|
|
1740
|
-
), I = (ee) =>
|
|
1762
|
+
), I = (ee) => V.value.find((d) => d.id === ee), z = Pe(), j = R(() => z.disabled !== void 0 && z.disabled !== !1), X = (ee) => {
|
|
1741
1763
|
$(ee), l("update:modelValue", ee);
|
|
1742
1764
|
}, ie = (ee) => {
|
|
1743
1765
|
if (j.value) return;
|
|
@@ -1760,13 +1782,13 @@ const Ca = {
|
|
|
1760
1782
|
onVisibleChange: a(_)
|
|
1761
1783
|
}, Se({
|
|
1762
1784
|
default: w(() => [
|
|
1763
|
-
(t(!0), s(D, null, Z(a(
|
|
1785
|
+
(t(!0), s(D, null, Z(a(V), (T) => (t(), x(a(ze), {
|
|
1764
1786
|
key: T.id,
|
|
1765
1787
|
label: T.name,
|
|
1766
1788
|
value: T.id
|
|
1767
1789
|
}, {
|
|
1768
1790
|
default: w(() => [
|
|
1769
|
-
u("span",
|
|
1791
|
+
u("span", _l, [
|
|
1770
1792
|
u("span", {
|
|
1771
1793
|
class: "emoo-msel__avatar",
|
|
1772
1794
|
style: pe({ "--tint": T.color || "var(--el-color-primary)" })
|
|
@@ -1776,12 +1798,12 @@ const Ca = {
|
|
|
1776
1798
|
src: T.avatar,
|
|
1777
1799
|
alt: "",
|
|
1778
1800
|
class: "emoo-msel__img"
|
|
1779
|
-
}, null, 8,
|
|
1801
|
+
}, null, 8, wl)) : (t(), s(D, { key: 1 }, [
|
|
1780
1802
|
J(k(T.name[0]), 1)
|
|
1781
1803
|
], 64))
|
|
1782
1804
|
], 4),
|
|
1783
|
-
u("span",
|
|
1784
|
-
T.dept ? (t(), s("span",
|
|
1805
|
+
u("span", Sl, k(T.name), 1),
|
|
1806
|
+
T.dept ? (t(), s("span", Cl, k(T.dept), 1)) : S("", !0)
|
|
1785
1807
|
])
|
|
1786
1808
|
]),
|
|
1787
1809
|
_: 2
|
|
@@ -1813,7 +1835,7 @@ const Ca = {
|
|
|
1813
1835
|
a(g) ? {
|
|
1814
1836
|
name: "footer",
|
|
1815
1837
|
fn: w(() => [
|
|
1816
|
-
u("div",
|
|
1838
|
+
u("div", El, [
|
|
1817
1839
|
u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
|
|
1818
1840
|
u("button", {
|
|
1819
1841
|
type: "button",
|
|
@@ -1827,45 +1849,45 @@ const Ca = {
|
|
|
1827
1849
|
} : void 0
|
|
1828
1850
|
]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
|
|
1829
1851
|
}
|
|
1830
|
-
}),
|
|
1852
|
+
}), Zn = /* @__PURE__ */ Y(Tl, [["__scopeId", "data-v-f6059e7c"]]), xl = ["data-testid", "data-role"], Il = {
|
|
1831
1853
|
key: 0,
|
|
1832
1854
|
class: "emoo-message__side"
|
|
1833
|
-
},
|
|
1855
|
+
}, zl = {
|
|
1834
1856
|
key: 0,
|
|
1835
1857
|
class: "emoo-message__avatar"
|
|
1836
|
-
},
|
|
1858
|
+
}, Rl = ["src"], Vl = { class: "emoo-message__main" }, Ml = {
|
|
1837
1859
|
key: 0,
|
|
1838
1860
|
class: "emoo-message__name"
|
|
1839
|
-
},
|
|
1861
|
+
}, Bl = ["data-status"], Dl = {
|
|
1840
1862
|
key: 0,
|
|
1841
1863
|
class: "emoo-message__dots",
|
|
1842
1864
|
"aria-label": "loading",
|
|
1843
1865
|
role: "status"
|
|
1844
|
-
},
|
|
1866
|
+
}, Pl = {
|
|
1845
1867
|
key: 1,
|
|
1846
1868
|
class: "emoo-message__stopped"
|
|
1847
|
-
},
|
|
1869
|
+
}, Al = {
|
|
1848
1870
|
key: 2,
|
|
1849
1871
|
class: "emoo-message__error"
|
|
1850
|
-
},
|
|
1872
|
+
}, Ll = {
|
|
1851
1873
|
key: 4,
|
|
1852
1874
|
class: "emoo-message__attachments"
|
|
1853
|
-
},
|
|
1875
|
+
}, Ol = {
|
|
1854
1876
|
key: 1,
|
|
1855
1877
|
class: "emoo-message__foot"
|
|
1856
|
-
},
|
|
1878
|
+
}, Ul = {
|
|
1857
1879
|
key: 0,
|
|
1858
1880
|
class: "emoo-message__time"
|
|
1859
|
-
},
|
|
1881
|
+
}, Hl = {
|
|
1860
1882
|
key: 1,
|
|
1861
1883
|
class: "emoo-message__actions"
|
|
1862
|
-
},
|
|
1884
|
+
}, Kl = {
|
|
1863
1885
|
key: 1,
|
|
1864
1886
|
class: "emoo-message__side"
|
|
1865
|
-
},
|
|
1887
|
+
}, Wl = {
|
|
1866
1888
|
key: 0,
|
|
1867
1889
|
class: "emoo-message__avatar"
|
|
1868
|
-
},
|
|
1890
|
+
}, Fl = ["src"], Nl = /* @__PURE__ */ N({
|
|
1869
1891
|
__name: "EmooMessage",
|
|
1870
1892
|
props: {
|
|
1871
1893
|
role: {},
|
|
@@ -1883,53 +1905,53 @@ const Ca = {
|
|
|
1883
1905
|
"data-testid": e.testid,
|
|
1884
1906
|
"data-role": e.role
|
|
1885
1907
|
}, [
|
|
1886
|
-
e.role === "assistant" || e.role === "system" ? (t(), s("div",
|
|
1908
|
+
e.role === "assistant" || e.role === "system" ? (t(), s("div", Il, [
|
|
1887
1909
|
A(o.$slots, "avatar", {}, () => [
|
|
1888
|
-
e.avatar ? (t(), s("span",
|
|
1910
|
+
e.avatar ? (t(), s("span", zl, [
|
|
1889
1911
|
u("img", {
|
|
1890
1912
|
src: e.avatar,
|
|
1891
1913
|
alt: ""
|
|
1892
|
-
}, null, 8,
|
|
1914
|
+
}, null, 8, Rl)
|
|
1893
1915
|
])) : S("", !0)
|
|
1894
1916
|
], !0)
|
|
1895
1917
|
])) : S("", !0),
|
|
1896
|
-
u("div",
|
|
1897
|
-
e.role === "system" && e.name ? (t(), s("div",
|
|
1918
|
+
u("div", Vl, [
|
|
1919
|
+
e.role === "system" && e.name ? (t(), s("div", Ml, k(e.name), 1)) : S("", !0),
|
|
1898
1920
|
u("div", {
|
|
1899
1921
|
class: "emoo-message__body",
|
|
1900
1922
|
"data-status": e.status
|
|
1901
1923
|
}, [
|
|
1902
|
-
e.status === "loading" ? (t(), s("span",
|
|
1924
|
+
e.status === "loading" ? (t(), s("span", Dl, [...l[0] || (l[0] = [
|
|
1903
1925
|
u("i", null, null, -1),
|
|
1904
1926
|
u("i", null, null, -1),
|
|
1905
1927
|
u("i", null, null, -1)
|
|
1906
|
-
])])) : e.status === "stopped" ? (t(), s("span",
|
|
1928
|
+
])])) : e.status === "stopped" ? (t(), s("span", Pl, k(a(n)("common.emooMessage.stopped")), 1)) : e.status === "error" ? (t(), s("span", Al, k(e.text || a(n)("common.emooMessage.failed")), 1)) : A(o.$slots, "default", {}, () => [
|
|
1907
1929
|
J(k(e.text), 1)
|
|
1908
1930
|
], !0, 3),
|
|
1909
|
-
o.$slots.attachments ? (t(), s("div",
|
|
1931
|
+
o.$slots.attachments ? (t(), s("div", Ll, [
|
|
1910
1932
|
A(o.$slots, "attachments", {}, void 0, !0)
|
|
1911
1933
|
])) : S("", !0)
|
|
1912
|
-
], 8,
|
|
1913
|
-
e.time || o.$slots.actions ? (t(), s("div",
|
|
1914
|
-
e.time ? (t(), s("span",
|
|
1915
|
-
o.$slots.actions ? (t(), s("span",
|
|
1934
|
+
], 8, Bl),
|
|
1935
|
+
e.time || o.$slots.actions ? (t(), s("div", Ol, [
|
|
1936
|
+
e.time ? (t(), s("span", Ul, k(e.time), 1)) : S("", !0),
|
|
1937
|
+
o.$slots.actions ? (t(), s("span", Hl, [
|
|
1916
1938
|
A(o.$slots, "actions", {}, void 0, !0)
|
|
1917
1939
|
])) : S("", !0)
|
|
1918
1940
|
])) : S("", !0)
|
|
1919
1941
|
]),
|
|
1920
|
-
e.role === "user" ? (t(), s("div",
|
|
1942
|
+
e.role === "user" ? (t(), s("div", Kl, [
|
|
1921
1943
|
A(o.$slots, "avatar", {}, () => [
|
|
1922
|
-
e.avatar ? (t(), s("span",
|
|
1944
|
+
e.avatar ? (t(), s("span", Wl, [
|
|
1923
1945
|
u("img", {
|
|
1924
1946
|
src: e.avatar,
|
|
1925
1947
|
alt: ""
|
|
1926
|
-
}, null, 8,
|
|
1948
|
+
}, null, 8, Fl)
|
|
1927
1949
|
])) : S("", !0)
|
|
1928
1950
|
], !0)
|
|
1929
1951
|
])) : S("", !0)
|
|
1930
|
-
], 10,
|
|
1952
|
+
], 10, xl));
|
|
1931
1953
|
}
|
|
1932
|
-
}),
|
|
1954
|
+
}), Jn = /* @__PURE__ */ Y(Nl, [["__scopeId", "data-v-fca7a127"]]), ql = /* @__PURE__ */ N({
|
|
1933
1955
|
__name: "EmooNavMenu",
|
|
1934
1956
|
props: {
|
|
1935
1957
|
items: {},
|
|
@@ -1940,9 +1962,9 @@ const Ca = {
|
|
|
1940
1962
|
},
|
|
1941
1963
|
emits: ["select", "group-select"],
|
|
1942
1964
|
setup(e, { emit: n }) {
|
|
1943
|
-
const o = e, l = n, { t: r } = me(), i = Et(), p = St(/* @__PURE__ */ new Map()), v = (d) => typeof d.title == "string" ? r(d.title) : d.title, g = (d) => !!(d.children && d.children.length > 0), c =
|
|
1965
|
+
const o = e, l = n, { t: r } = me(), i = Et(), p = St(/* @__PURE__ */ new Map()), v = (d) => typeof d.title == "string" ? r(d.title) : d.title, g = (d) => !!(d.children && d.children.length > 0), c = R(
|
|
1944
1966
|
() => o.items.filter((d) => !d.hidden && o.canShow(d))
|
|
1945
|
-
), b = (d) => (d.children ?? []).filter((T) => !T.hidden && o.canShow(T)), _ =
|
|
1967
|
+
), b = (d) => (d.children ?? []).filter((T) => !T.hidden && o.canShow(T)), _ = R(() => o.activePath ?? ""), y = (d) => !!d.action && !d.path && !d.children, V = (d) => d.active ?? _.value === (d.path || d.key), E = (d) => d.path && _.value.startsWith(d.path) ? !0 : (d.children ?? []).some((T) => T.path && _.value.startsWith(T.path) || E(T)), $ = (d) => p.get(d.key) ?? E(d), I = (d) => `emoo-nav-${d.key.replace(/[^a-zA-Z0-9_-]/g, "-")}-children`, z = (d) => {
|
|
1946
1968
|
const T = !$(d);
|
|
1947
1969
|
p.set(d.key, T), T && d.path && o.navigate?.(d.path), l("group-select", d, T);
|
|
1948
1970
|
}, j = (d) => {
|
|
@@ -1952,12 +1974,12 @@ const Ca = {
|
|
|
1952
1974
|
return T === 0 ? ve("button", {
|
|
1953
1975
|
type: "button",
|
|
1954
1976
|
class: ["single-menu-item", {
|
|
1955
|
-
"is-active":
|
|
1977
|
+
"is-active": V(d),
|
|
1956
1978
|
"functional-button": y(d) && d.active !== !0
|
|
1957
1979
|
}],
|
|
1958
1980
|
"data-testid": d.testid,
|
|
1959
1981
|
"aria-pressed": typeof d.active == "boolean" ? d.active : void 0,
|
|
1960
|
-
"aria-current":
|
|
1982
|
+
"aria-current": V(d) && d.path ? "page" : void 0,
|
|
1961
1983
|
onClick: (ne) => {
|
|
1962
1984
|
ne.stopPropagation(), j(d);
|
|
1963
1985
|
}
|
|
@@ -1968,9 +1990,9 @@ const Ca = {
|
|
|
1968
1990
|
X(d)
|
|
1969
1991
|
]) : ve("button", {
|
|
1970
1992
|
type: "button",
|
|
1971
|
-
class: ["child-menu-item", { "is-active":
|
|
1993
|
+
class: ["child-menu-item", { "is-active": V(d) }],
|
|
1972
1994
|
"data-testid": d.testid,
|
|
1973
|
-
"aria-current":
|
|
1995
|
+
"aria-current": V(d) && d.path ? "page" : void 0,
|
|
1974
1996
|
onClick: (ne) => {
|
|
1975
1997
|
ne.stopPropagation(), j(d);
|
|
1976
1998
|
}
|
|
@@ -2027,7 +2049,7 @@ const Ca = {
|
|
|
2027
2049
|
}))), 128))
|
|
2028
2050
|
], 2));
|
|
2029
2051
|
}
|
|
2030
|
-
}),
|
|
2052
|
+
}), Yn = /* @__PURE__ */ Y(ql, [["__scopeId", "data-v-ebbf674d"]]), jl = { class: "emoo-nav-segmented" }, Gl = ["onClick"], Xl = /* @__PURE__ */ N({
|
|
2031
2053
|
__name: "EmooNavSegmented",
|
|
2032
2054
|
props: {
|
|
2033
2055
|
items: {},
|
|
@@ -2039,7 +2061,7 @@ const Ca = {
|
|
|
2039
2061
|
const o = e, l = n, { t: r } = me(), i = (v) => typeof v.title == "string" ? r(v.title) : v.title, p = (v) => {
|
|
2040
2062
|
l("select", v), v.path && o.navigate?.(v.path);
|
|
2041
2063
|
};
|
|
2042
|
-
return (v, g) => (t(), s("nav",
|
|
2064
|
+
return (v, g) => (t(), s("nav", jl, [
|
|
2043
2065
|
(t(!0), s(D, null, Z(e.items, (c) => (t(), s("button", {
|
|
2044
2066
|
key: c.key,
|
|
2045
2067
|
type: "button",
|
|
@@ -2051,10 +2073,10 @@ const Ca = {
|
|
|
2051
2073
|
"aria-hidden": "true"
|
|
2052
2074
|
})) : S("", !0),
|
|
2053
2075
|
u("span", null, k(i(c)), 1)
|
|
2054
|
-
], 10,
|
|
2076
|
+
], 10, Gl))), 128))
|
|
2055
2077
|
]));
|
|
2056
2078
|
}
|
|
2057
|
-
}),
|
|
2079
|
+
}), Qn = /* @__PURE__ */ Y(Xl, [["__scopeId", "data-v-a88dea1a"]]), Zl = /* @__PURE__ */ N({
|
|
2058
2080
|
__name: "EmooOptionRows",
|
|
2059
2081
|
props: {
|
|
2060
2082
|
options: {},
|
|
@@ -2082,7 +2104,7 @@ const Ca = {
|
|
|
2082
2104
|
key: 0,
|
|
2083
2105
|
class: W(["emoo-option-rows__choices", { "emoo-option-rows__choices--inline": e.inline }])
|
|
2084
2106
|
}, [
|
|
2085
|
-
P(
|
|
2107
|
+
P(ia, {
|
|
2086
2108
|
class: "emoo-option-rows__select",
|
|
2087
2109
|
options: e.options,
|
|
2088
2110
|
"model-value": e.modelValue,
|
|
@@ -2139,21 +2161,21 @@ const Ca = {
|
|
|
2139
2161
|
A(v.$slots, "append", {}, void 0, !0)
|
|
2140
2162
|
], 2));
|
|
2141
2163
|
}
|
|
2142
|
-
}),
|
|
2164
|
+
}), ei = /* @__PURE__ */ Y(Zl, [["__scopeId", "data-v-44e7d258"]]), Jl = {
|
|
2143
2165
|
key: 0,
|
|
2144
2166
|
class: "emt-foot",
|
|
2145
2167
|
"data-testid": "emt-foot"
|
|
2146
|
-
},
|
|
2168
|
+
}, Yl = { class: "emt-foot__info" }, Ql = { class: "emt-foot__right" }, es = ["aria-label"], ts = {
|
|
2147
2169
|
class: "emt-foot__size",
|
|
2148
2170
|
type: "button",
|
|
2149
2171
|
"data-testid": "emt-pagesize"
|
|
2150
|
-
},
|
|
2172
|
+
}, os = { class: "emt-colmenu__list" }, as = { class: "emt-tick" }, ls = {
|
|
2151
2173
|
class: "emt-pager",
|
|
2152
2174
|
"data-testid": "emt-pager"
|
|
2153
|
-
},
|
|
2175
|
+
}, ss = ["disabled", "aria-label"], ns = ["data-testid", "onClick"], is = {
|
|
2154
2176
|
key: 1,
|
|
2155
2177
|
class: "emt-pager__btn is-ellipsis"
|
|
2156
|
-
},
|
|
2178
|
+
}, rs = ["disabled", "aria-label"], ds = /* @__PURE__ */ N({
|
|
2157
2179
|
__name: "EmooPagination",
|
|
2158
2180
|
props: {
|
|
2159
2181
|
total: {},
|
|
@@ -2165,7 +2187,7 @@ const Ca = {
|
|
|
2165
2187
|
},
|
|
2166
2188
|
emits: ["update:page", "update:pageSize", "update:density"],
|
|
2167
2189
|
setup(e, { emit: n }) {
|
|
2168
|
-
const o = e, l = n, { t: r } = me(), i =
|
|
2190
|
+
const o = e, l = n, { t: r } = me(), i = R(() => o.page), p = R(() => Math.max(1, Math.ceil(o.total / o.pageSize))), v = R(() => (i.value - 1) * o.pageSize + 1), g = R(() => Math.min(o.total, i.value * o.pageSize)), c = (E) => E.toLocaleString(), b = R(() => {
|
|
2169
2191
|
const E = p.value, $ = i.value;
|
|
2170
2192
|
return E <= 7 ? Array.from({ length: E }, (I, z) => z + 1) : $ <= 4 ? [1, 2, 3, 4, 5, "…", E] : $ >= E - 3 ? [1, "…", E - 4, E - 3, E - 2, E - 1, E] : [1, "…", $ - 1, $, $ + 1, "…", E];
|
|
2171
2193
|
}), _ = (E) => {
|
|
@@ -2177,22 +2199,22 @@ const Ca = {
|
|
|
2177
2199
|
we(p, (E) => {
|
|
2178
2200
|
o.page > E && l("update:page", E);
|
|
2179
2201
|
});
|
|
2180
|
-
const
|
|
2202
|
+
const V = R(
|
|
2181
2203
|
() => o.density === "compact" ? r(o.densityBase === "comfort" ? "common.emooTable.switchToComfort" : "common.emooTable.switchToStandard") : r("common.emooTable.switchToCompact")
|
|
2182
2204
|
);
|
|
2183
|
-
return (E, $) => e.total > 0 ? (t(), s("footer",
|
|
2184
|
-
u("span",
|
|
2185
|
-
u("div",
|
|
2205
|
+
return (E, $) => e.total > 0 ? (t(), s("footer", Jl, [
|
|
2206
|
+
u("span", Yl, k(a(r)("common.emooTable.totalInfo", { total: c(e.total), from: c(v.value), to: c(g.value) })), 1),
|
|
2207
|
+
u("div", Ql, [
|
|
2186
2208
|
e.density ? (t(), x(he, {
|
|
2187
2209
|
key: 0,
|
|
2188
|
-
content:
|
|
2210
|
+
content: V.value,
|
|
2189
2211
|
placement: "top"
|
|
2190
2212
|
}, {
|
|
2191
2213
|
default: w(() => [
|
|
2192
2214
|
u("button", {
|
|
2193
2215
|
class: W(["emt-foot__dens", { "is-on": e.density === "compact" }]),
|
|
2194
2216
|
type: "button",
|
|
2195
|
-
"aria-label":
|
|
2217
|
+
"aria-label": V.value,
|
|
2196
2218
|
"data-testid": "emt-density",
|
|
2197
2219
|
onClick: $[0] || ($[0] = (I) => l("update:density", e.density === "compact" ? "default" : "compact"))
|
|
2198
2220
|
}, [
|
|
@@ -2200,7 +2222,7 @@ const Ca = {
|
|
|
2200
2222
|
size: 14,
|
|
2201
2223
|
"aria-hidden": "true"
|
|
2202
2224
|
})
|
|
2203
|
-
], 10,
|
|
2225
|
+
], 10, es)
|
|
2204
2226
|
]),
|
|
2205
2227
|
_: 1
|
|
2206
2228
|
}, 8, ["content"])) : S("", !0),
|
|
@@ -2211,7 +2233,7 @@ const Ca = {
|
|
|
2211
2233
|
onCommand: $[1] || ($[1] = (I) => y(Number(I)))
|
|
2212
2234
|
}, {
|
|
2213
2235
|
dropdown: w(() => [
|
|
2214
|
-
u("div",
|
|
2236
|
+
u("div", os, [
|
|
2215
2237
|
(t(!0), s(D, null, Z(e.pageSizes, (I) => (t(), x(a(no), {
|
|
2216
2238
|
key: I,
|
|
2217
2239
|
class: W(["emt-colmenu__item", { "is-on": I === e.pageSize }]),
|
|
@@ -2219,7 +2241,7 @@ const Ca = {
|
|
|
2219
2241
|
"data-testid": `emt-pagesize-${I}`
|
|
2220
2242
|
}, {
|
|
2221
2243
|
default: w(() => [
|
|
2222
|
-
u("span",
|
|
2244
|
+
u("span", as, [
|
|
2223
2245
|
I === e.pageSize ? (t(), x(a(Dt), {
|
|
2224
2246
|
key: 0,
|
|
2225
2247
|
size: 13,
|
|
@@ -2233,7 +2255,7 @@ const Ca = {
|
|
|
2233
2255
|
])
|
|
2234
2256
|
]),
|
|
2235
2257
|
default: w(() => [
|
|
2236
|
-
u("button",
|
|
2258
|
+
u("button", ts, [
|
|
2237
2259
|
J(k(a(r)("common.emooTable.perPage", { n: e.pageSize })) + " ", 1),
|
|
2238
2260
|
P(a(rt), {
|
|
2239
2261
|
size: 11,
|
|
@@ -2243,7 +2265,7 @@ const Ca = {
|
|
|
2243
2265
|
]),
|
|
2244
2266
|
_: 1
|
|
2245
2267
|
}),
|
|
2246
|
-
u("div",
|
|
2268
|
+
u("div", ls, [
|
|
2247
2269
|
u("button", {
|
|
2248
2270
|
class: "emt-pager__btn",
|
|
2249
2271
|
type: "button",
|
|
@@ -2256,7 +2278,7 @@ const Ca = {
|
|
|
2256
2278
|
size: 14,
|
|
2257
2279
|
"aria-hidden": "true"
|
|
2258
2280
|
})
|
|
2259
|
-
], 8,
|
|
2281
|
+
], 8, ss),
|
|
2260
2282
|
(t(!0), s(D, null, Z(b.value, (I, z) => (t(), s(D, { key: z }, [
|
|
2261
2283
|
typeof I == "number" ? (t(), s("button", {
|
|
2262
2284
|
key: 0,
|
|
@@ -2264,7 +2286,7 @@ const Ca = {
|
|
|
2264
2286
|
type: "button",
|
|
2265
2287
|
"data-testid": `emt-page-${I}`,
|
|
2266
2288
|
onClick: (j) => _(I)
|
|
2267
|
-
}, k(I), 11,
|
|
2289
|
+
}, k(I), 11, ns)) : (t(), s("span", is, "…"))
|
|
2268
2290
|
], 64))), 128)),
|
|
2269
2291
|
u("button", {
|
|
2270
2292
|
class: "emt-pager__btn",
|
|
@@ -2278,19 +2300,19 @@ const Ca = {
|
|
|
2278
2300
|
size: 14,
|
|
2279
2301
|
"aria-hidden": "true"
|
|
2280
2302
|
})
|
|
2281
|
-
], 8,
|
|
2303
|
+
], 8, rs)
|
|
2282
2304
|
])
|
|
2283
2305
|
])
|
|
2284
2306
|
])) : S("", !0);
|
|
2285
2307
|
}
|
|
2286
|
-
}),
|
|
2308
|
+
}), us = /* @__PURE__ */ Y(ds, [["__scopeId", "data-v-fc98e78c"]]), ti = /* @__PURE__ */ N({
|
|
2287
2309
|
__name: "EmooPopover",
|
|
2288
2310
|
props: {
|
|
2289
2311
|
popperClass: { default: "" },
|
|
2290
2312
|
showArrow: { type: Boolean, default: !1 }
|
|
2291
2313
|
},
|
|
2292
2314
|
setup(e) {
|
|
2293
|
-
const n = e, o =
|
|
2315
|
+
const n = e, o = R(() => ["emo-pop", n.popperClass].filter(Boolean).join(" "));
|
|
2294
2316
|
return (l, r) => (t(), x(a(io), Xe(l.$attrs, {
|
|
2295
2317
|
"show-arrow": e.showArrow,
|
|
2296
2318
|
"popper-class": o.value
|
|
@@ -2309,13 +2331,13 @@ const Ca = {
|
|
|
2309
2331
|
} : void 0
|
|
2310
2332
|
]), 1040, ["show-arrow", "popper-class"]));
|
|
2311
2333
|
}
|
|
2312
|
-
}),
|
|
2334
|
+
}), cs = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], ms = {
|
|
2313
2335
|
class: "emoo-progress__track",
|
|
2314
2336
|
"aria-hidden": "true"
|
|
2315
|
-
},
|
|
2337
|
+
}, vs = {
|
|
2316
2338
|
key: 0,
|
|
2317
2339
|
class: "emoo-progress__label"
|
|
2318
|
-
},
|
|
2340
|
+
}, fs = /* @__PURE__ */ N({
|
|
2319
2341
|
__name: "EmooProgress",
|
|
2320
2342
|
props: {
|
|
2321
2343
|
value: { default: null },
|
|
@@ -2325,11 +2347,11 @@ const Ca = {
|
|
|
2325
2347
|
ariaLabel: {}
|
|
2326
2348
|
},
|
|
2327
2349
|
setup(e) {
|
|
2328
|
-
const n = e, o =
|
|
2350
|
+
const n = e, o = R(
|
|
2329
2351
|
() => typeof n.value == "number" && Number.isFinite(n.value) ? n.value : null
|
|
2330
|
-
), l =
|
|
2352
|
+
), l = R(() => o.value == null), r = R(() => Math.min(100, Math.max(0, o.value ?? 0))), i = R(
|
|
2331
2353
|
() => l.value ? void 0 : { width: `${r.value}%` }
|
|
2332
|
-
), p =
|
|
2354
|
+
), p = R(() => {
|
|
2333
2355
|
if (!l.value)
|
|
2334
2356
|
return n.label || `${Math.round(r.value)}%`;
|
|
2335
2357
|
});
|
|
@@ -2342,23 +2364,23 @@ const Ca = {
|
|
|
2342
2364
|
"aria-valuenow": l.value ? void 0 : r.value,
|
|
2343
2365
|
"aria-valuetext": p.value
|
|
2344
2366
|
}, [
|
|
2345
|
-
u("span",
|
|
2367
|
+
u("span", ms, [
|
|
2346
2368
|
u("span", {
|
|
2347
2369
|
class: "emoo-progress__fill",
|
|
2348
2370
|
style: pe(i.value)
|
|
2349
2371
|
}, null, 4)
|
|
2350
2372
|
]),
|
|
2351
|
-
e.label ? (t(), s("span",
|
|
2352
|
-
], 10,
|
|
2373
|
+
e.label ? (t(), s("span", vs, k(e.label), 1)) : S("", !0)
|
|
2374
|
+
], 10, cs));
|
|
2353
2375
|
}
|
|
2354
|
-
}),
|
|
2376
|
+
}), hs = /* @__PURE__ */ Y(fs, [["__scopeId", "data-v-cab4f706"]]), ps = { class: "emoo-rsel__opt" }, ys = ["src"], bs = { class: "emoo-rsel__col" }, gs = { class: "emoo-rsel__name" }, ks = {
|
|
2355
2377
|
key: 0,
|
|
2356
2378
|
class: "emoo-rsel__desc"
|
|
2357
|
-
},
|
|
2379
|
+
}, $s = {
|
|
2358
2380
|
class: "emoo-sel-remote-error",
|
|
2359
2381
|
role: "alert",
|
|
2360
2382
|
"data-testid": "remote-error"
|
|
2361
|
-
},
|
|
2383
|
+
}, _s = /* @__PURE__ */ N({
|
|
2362
2384
|
__name: "EmooRoleSelect",
|
|
2363
2385
|
props: {
|
|
2364
2386
|
modelValue: {},
|
|
@@ -2372,11 +2394,11 @@ const Ca = {
|
|
|
2372
2394
|
},
|
|
2373
2395
|
emits: ["update:modelValue", "update:selected"],
|
|
2374
2396
|
setup(e, { emit: n }) {
|
|
2375
|
-
const o = e, l = n, { t: r } = me(), i =
|
|
2397
|
+
const o = e, l = n, { t: r } = me(), i = R(() => o.source !== void 0), { items: p, loading: v, error: g, retry: c, search: b, onVisibleChange: _, popperClass: y } = Me(() => o.source, "emoo-rsel-popper"), { mergedOptions: V, selectedOptions: E, remember: $ } = Be(
|
|
2376
2398
|
() => o.modelValue,
|
|
2377
2399
|
() => i.value ? p.value : o.options ?? [],
|
|
2378
2400
|
() => o.selected ?? []
|
|
2379
|
-
), I = (d) =>
|
|
2401
|
+
), I = (d) => V.value.find((T) => T.id === d), z = Pe(), j = R(() => z.disabled !== void 0 && z.disabled !== !1), X = (d) => ({ ...d, square: !0 }), ie = (d) => {
|
|
2380
2402
|
const T = $(d);
|
|
2381
2403
|
l("update:modelValue", d), l("update:selected", T);
|
|
2382
2404
|
}, ee = (d) => {
|
|
@@ -2399,13 +2421,13 @@ const Ca = {
|
|
|
2399
2421
|
onVisibleChange: a(_)
|
|
2400
2422
|
}, Se({
|
|
2401
2423
|
default: w(() => [
|
|
2402
|
-
(t(!0), s(D, null, Z(a(
|
|
2424
|
+
(t(!0), s(D, null, Z(a(V), (B) => (t(), x(a(ze), {
|
|
2403
2425
|
key: B.id,
|
|
2404
2426
|
label: B.name,
|
|
2405
2427
|
value: B.id
|
|
2406
2428
|
}, {
|
|
2407
2429
|
default: w(() => [
|
|
2408
|
-
u("span",
|
|
2430
|
+
u("span", ps, [
|
|
2409
2431
|
u("span", {
|
|
2410
2432
|
class: "emoo-rsel__avatar",
|
|
2411
2433
|
style: pe({ "--tint": B.color || "var(--el-color-primary)" })
|
|
@@ -2415,13 +2437,13 @@ const Ca = {
|
|
|
2415
2437
|
src: B.avatar,
|
|
2416
2438
|
alt: "",
|
|
2417
2439
|
class: "emoo-rsel__img"
|
|
2418
|
-
}, null, 8,
|
|
2440
|
+
}, null, 8, ys)) : (t(), s(D, { key: 1 }, [
|
|
2419
2441
|
J(k(B.name[0]), 1)
|
|
2420
2442
|
], 64))
|
|
2421
2443
|
], 4),
|
|
2422
|
-
u("span",
|
|
2423
|
-
u("span",
|
|
2424
|
-
B.desc ? (t(), s("span",
|
|
2444
|
+
u("span", bs, [
|
|
2445
|
+
u("span", gs, k(B.name), 1),
|
|
2446
|
+
B.desc ? (t(), s("span", ks, k(B.desc), 1)) : S("", !0)
|
|
2425
2447
|
])
|
|
2426
2448
|
])
|
|
2427
2449
|
]),
|
|
@@ -2454,7 +2476,7 @@ const Ca = {
|
|
|
2454
2476
|
a(g) ? {
|
|
2455
2477
|
name: "footer",
|
|
2456
2478
|
fn: w(() => [
|
|
2457
|
-
u("div",
|
|
2479
|
+
u("div", $s, [
|
|
2458
2480
|
u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
|
|
2459
2481
|
u("button", {
|
|
2460
2482
|
type: "button",
|
|
@@ -2468,19 +2490,19 @@ const Ca = {
|
|
|
2468
2490
|
} : void 0
|
|
2469
2491
|
]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
|
|
2470
2492
|
}
|
|
2471
|
-
}),
|
|
2493
|
+
}), oi = /* @__PURE__ */ Y(_s, [["__scopeId", "data-v-6c4ae65a"]]), ws = {
|
|
2472
2494
|
key: 1,
|
|
2473
2495
|
class: "emoo-search-box__top"
|
|
2474
|
-
},
|
|
2496
|
+
}, Ss = {
|
|
2475
2497
|
key: 2,
|
|
2476
2498
|
class: "emoo-search-box__extras"
|
|
2477
|
-
},
|
|
2499
|
+
}, Cs = { class: "emoo-search-box__field" }, Es = {
|
|
2478
2500
|
key: 3,
|
|
2479
2501
|
class: "emoo-search-box__bar"
|
|
2480
|
-
},
|
|
2502
|
+
}, Ts = {
|
|
2481
2503
|
key: 0,
|
|
2482
2504
|
class: "emoo-search-box__trailing"
|
|
2483
|
-
},
|
|
2505
|
+
}, xs = /* @__PURE__ */ N({
|
|
2484
2506
|
__name: "EmooSearchBox",
|
|
2485
2507
|
props: {
|
|
2486
2508
|
variant: { default: "composer" },
|
|
@@ -2509,27 +2531,27 @@ const Ca = {
|
|
|
2509
2531
|
]),
|
|
2510
2532
|
_: 1
|
|
2511
2533
|
}, 8, ["content"])) : S("", !0),
|
|
2512
|
-
r.$slots.top ? (t(), s("div",
|
|
2534
|
+
r.$slots.top ? (t(), s("div", ws, [
|
|
2513
2535
|
A(r.$slots, "top", {}, void 0, !0)
|
|
2514
2536
|
])) : S("", !0),
|
|
2515
|
-
r.$slots.extras ? (t(), s("div",
|
|
2537
|
+
r.$slots.extras ? (t(), s("div", Ss, [
|
|
2516
2538
|
A(r.$slots, "extras", {}, void 0, !0)
|
|
2517
2539
|
])) : S("", !0),
|
|
2518
|
-
u("div",
|
|
2540
|
+
u("div", Cs, [
|
|
2519
2541
|
A(r.$slots, "default", {}, void 0, !0)
|
|
2520
2542
|
]),
|
|
2521
|
-
r.$slots.bar || r.$slots.trailing ? (t(), s("div",
|
|
2543
|
+
r.$slots.bar || r.$slots.trailing ? (t(), s("div", Es, [
|
|
2522
2544
|
A(r.$slots, "bar", {}, void 0, !0),
|
|
2523
|
-
r.$slots.trailing ? (t(), s("div",
|
|
2545
|
+
r.$slots.trailing ? (t(), s("div", Ts, [
|
|
2524
2546
|
A(r.$slots, "trailing", {}, void 0, !0)
|
|
2525
2547
|
])) : S("", !0)
|
|
2526
2548
|
])) : S("", !0)
|
|
2527
2549
|
], 2));
|
|
2528
2550
|
}
|
|
2529
|
-
}),
|
|
2551
|
+
}), ai = /* @__PURE__ */ Y(xs, [["__scopeId", "data-v-98479d22"]]), Is = ["aria-label"], zs = ["aria-pressed", "aria-label", "disabled", "onClick"], Rs = { key: 1 }, Vs = {
|
|
2530
2552
|
key: 2,
|
|
2531
2553
|
class: "emoo-segmented__count"
|
|
2532
|
-
},
|
|
2554
|
+
}, Ms = /* @__PURE__ */ N({
|
|
2533
2555
|
__name: "EmooSegmented",
|
|
2534
2556
|
props: {
|
|
2535
2557
|
options: {},
|
|
@@ -2540,7 +2562,7 @@ const Ca = {
|
|
|
2540
2562
|
},
|
|
2541
2563
|
emits: ["update:modelValue", "change"],
|
|
2542
2564
|
setup(e, { emit: n }) {
|
|
2543
|
-
const { t: o } = me(), l = e, r =
|
|
2565
|
+
const { t: o } = me(), l = e, r = R(() => l.size === "small" ? 12 : l.size === "large" ? 16 : 14), i = n;
|
|
2544
2566
|
function p(v) {
|
|
2545
2567
|
l.disabled || v.disabled || v.value === l.modelValue || (i("update:modelValue", v.value), i("change", v.value));
|
|
2546
2568
|
}
|
|
@@ -2563,12 +2585,12 @@ const Ca = {
|
|
|
2563
2585
|
size: r.value,
|
|
2564
2586
|
"aria-hidden": "true"
|
|
2565
2587
|
}, null, 8, ["size"])) : S("", !0),
|
|
2566
|
-
c.label ? (t(), s("span",
|
|
2567
|
-
c.count !== void 0 ? (t(), s("span",
|
|
2568
|
-
], 10,
|
|
2569
|
-
], 10,
|
|
2588
|
+
c.label ? (t(), s("span", Rs, k(c.label), 1)) : S("", !0),
|
|
2589
|
+
c.count !== void 0 ? (t(), s("span", Vs, k(c.count), 1)) : S("", !0)
|
|
2590
|
+
], 10, zs))), 128))
|
|
2591
|
+
], 10, Is));
|
|
2570
2592
|
}
|
|
2571
|
-
}),
|
|
2593
|
+
}), li = /* @__PURE__ */ Y(Ms, [["__scopeId", "data-v-bcd69b5a"]]), Bs = /* @__PURE__ */ N({
|
|
2572
2594
|
__name: "EmooSidebarShell",
|
|
2573
2595
|
props: {
|
|
2574
2596
|
collapsed: { type: Boolean, default: !1 },
|
|
@@ -2578,7 +2600,7 @@ const Ca = {
|
|
|
2578
2600
|
width: { default: void 0 }
|
|
2579
2601
|
},
|
|
2580
2602
|
setup(e) {
|
|
2581
|
-
const n = e, o =
|
|
2603
|
+
const n = e, o = R(() => {
|
|
2582
2604
|
if (n.width !== void 0)
|
|
2583
2605
|
return { width: typeof n.width == "number" ? `${n.width}px` : n.width };
|
|
2584
2606
|
});
|
|
@@ -2591,7 +2613,7 @@ const Ca = {
|
|
|
2591
2613
|
A(l.$slots, "footer", {}, void 0, !0)
|
|
2592
2614
|
], 6));
|
|
2593
2615
|
}
|
|
2594
|
-
}),
|
|
2616
|
+
}), si = /* @__PURE__ */ Y(Bs, [["__scopeId", "data-v-8f94cc28"]]), Ds = /* @__PURE__ */ N({
|
|
2595
2617
|
__name: "EmooStatusTag",
|
|
2596
2618
|
props: {
|
|
2597
2619
|
tone: {},
|
|
@@ -2604,10 +2626,10 @@ const Ca = {
|
|
|
2604
2626
|
A(n.$slots, "default", {}, void 0, !0)
|
|
2605
2627
|
], 2));
|
|
2606
2628
|
}
|
|
2607
|
-
}),
|
|
2629
|
+
}), Ps = /* @__PURE__ */ Y(Ds, [["__scopeId", "data-v-9c6a9ab7"]]), As = { class: "emoo-switcher" }, Ls = {
|
|
2608
2630
|
key: 0,
|
|
2609
2631
|
class: "switcher-title"
|
|
2610
|
-
},
|
|
2632
|
+
}, Os = ["data-testid", "onClick"], Us = ["src", "alt"], Hs = { class: "switcher-label" }, Ks = /* @__PURE__ */ N({
|
|
2611
2633
|
__name: "EmooSwitcherPanel",
|
|
2612
2634
|
props: {
|
|
2613
2635
|
title: {},
|
|
@@ -2616,11 +2638,11 @@ const Ca = {
|
|
|
2616
2638
|
},
|
|
2617
2639
|
emits: ["select"],
|
|
2618
2640
|
setup(e, { emit: n }) {
|
|
2619
|
-
const o = e, l = n, { t: r } = me(), i = (c) => r(c.title), p =
|
|
2641
|
+
const o = e, l = n, { t: r } = me(), i = (c) => r(c.title), p = R(() => o.title ? r(o.title) : ""), v = R(() => o.items.filter((c) => !c.hidden)), g = (c) => {
|
|
2620
2642
|
l("select", c), c.action?.();
|
|
2621
2643
|
};
|
|
2622
|
-
return (c, b) => (t(), s("div",
|
|
2623
|
-
e.title ? (t(), s("p",
|
|
2644
|
+
return (c, b) => (t(), s("div", As, [
|
|
2645
|
+
e.title ? (t(), s("p", Ls, k(p.value), 1)) : S("", !0),
|
|
2624
2646
|
u("div", {
|
|
2625
2647
|
class: W(["switcher-list", { "is-scrollable": e.scrollable }])
|
|
2626
2648
|
}, [
|
|
@@ -2636,20 +2658,20 @@ const Ca = {
|
|
|
2636
2658
|
src: _.image,
|
|
2637
2659
|
alt: i(_),
|
|
2638
2660
|
class: "switcher-image"
|
|
2639
|
-
}, null, 8,
|
|
2661
|
+
}, null, 8, Us)) : _.icon ? (t(), x(Ie(_.icon), {
|
|
2640
2662
|
key: 1,
|
|
2641
2663
|
class: "ic"
|
|
2642
2664
|
})) : S("", !0),
|
|
2643
|
-
u("span",
|
|
2665
|
+
u("span", Hs, k(i(_)), 1),
|
|
2644
2666
|
_.active ? (t(), x(a(Dt), {
|
|
2645
2667
|
key: 2,
|
|
2646
2668
|
class: "switcher-check"
|
|
2647
2669
|
})) : S("", !0)
|
|
2648
|
-
], 10,
|
|
2670
|
+
], 10, Os))), 128))
|
|
2649
2671
|
], 2)
|
|
2650
2672
|
]));
|
|
2651
2673
|
}
|
|
2652
|
-
}),
|
|
2674
|
+
}), ni = /* @__PURE__ */ Y(Ks, [["__scopeId", "data-v-a2309e72"]]), Ws = /* @__PURE__ */ N({
|
|
2653
2675
|
__name: "EmooTagsInput",
|
|
2654
2676
|
props: {
|
|
2655
2677
|
modelValue: { default: () => [] },
|
|
@@ -2666,7 +2688,7 @@ const Ca = {
|
|
|
2666
2688
|
}, y = () => {
|
|
2667
2689
|
const E = i.value;
|
|
2668
2690
|
E !== "" && !o.modelValue.includes(E) && l("update:modelValue", [...o.modelValue, E]), p.value = !1, i.value = "", setTimeout(() => c.value?.$el?.focus?.(), 0);
|
|
2669
|
-
},
|
|
2691
|
+
}, V = (E) => {
|
|
2670
2692
|
!(E instanceof KeyboardEvent) || E.key !== "Enter" || !v.value && !E.isComposing && y();
|
|
2671
2693
|
};
|
|
2672
2694
|
return (E, $) => (t(), s("div", {
|
|
@@ -2698,7 +2720,7 @@ const Ca = {
|
|
|
2698
2720
|
"data-testid": "tags-input",
|
|
2699
2721
|
onCompositionstart: $[1] || ($[1] = (I) => v.value = !0),
|
|
2700
2722
|
onCompositionend: $[2] || ($[2] = (I) => v.value = !1),
|
|
2701
|
-
onKeydown:
|
|
2723
|
+
onKeydown: V,
|
|
2702
2724
|
onBlur: y
|
|
2703
2725
|
}, null, 8, ["modelValue", "placeholder"])) : (t(), x(De, {
|
|
2704
2726
|
key: 1,
|
|
@@ -2717,8 +2739,8 @@ const Ca = {
|
|
|
2717
2739
|
], 64)) : S("", !0)
|
|
2718
2740
|
], 2));
|
|
2719
2741
|
}
|
|
2720
|
-
}),
|
|
2721
|
-
function
|
|
2742
|
+
}), ii = /* @__PURE__ */ Y(Ws, [["__scopeId", "data-v-2b248a6f"]]), Fs = 140, at = 64;
|
|
2743
|
+
function Ns(e) {
|
|
2722
2744
|
const n = e.minColWidth ?? at, o = (C) => e.columns().find((L) => L.key === C), l = () => e.columns().map((C) => ({ key: C.key, visible: !0, fixed: "" })), r = (C) => {
|
|
2723
2745
|
if (!Array.isArray(C)) return l();
|
|
2724
2746
|
const L = /* @__PURE__ */ new Map(), Q = [];
|
|
@@ -2773,8 +2795,8 @@ function Ws(e) {
|
|
|
2773
2795
|
},
|
|
2774
2796
|
{ deep: !0 }
|
|
2775
2797
|
);
|
|
2776
|
-
const y =
|
|
2777
|
-
|
|
2798
|
+
const y = R(() => g.value.filter((C) => C.visible)), V = R(() => y.value.length), E = R(() => g.value.filter((C) => !C.visible)), $ = (C) => C.width ?? (o(C.key)?.minWidth ? void 0 : o(C.key)?.width), I = (C) => C.width ?? o(C.key)?.minWidth, z = (C) => (C.width ?? o(C.key)?.width ?? o(C.key)?.minWidth ?? 0) >= Fs, j = (C) => {
|
|
2799
|
+
V.value <= 1 || (C.visible = !1);
|
|
2778
2800
|
}, X = () => {
|
|
2779
2801
|
g.value = l();
|
|
2780
2802
|
}, ie = (C) => g.value.some((L) => L.key === C.key && L.visible && !!o(C.key)?.sortable), ee = v.sort && ie(v.sort) ? v.sort : null, d = ee ?? (e.defaultSort && ie(e.defaultSort) ? e.defaultSort : null), T = U(d?.key ?? ""), B = U(d?.order ?? null), se = () => v.sort && ie(v.sort) ? v.sort : null;
|
|
@@ -2839,7 +2861,7 @@ function Ws(e) {
|
|
|
2839
2861
|
// 派生
|
|
2840
2862
|
visibleCols: y,
|
|
2841
2863
|
hiddenCols: E,
|
|
2842
|
-
visibleCount:
|
|
2864
|
+
visibleCount: V,
|
|
2843
2865
|
defOf: o,
|
|
2844
2866
|
colWidth: $,
|
|
2845
2867
|
colMinWidth: I,
|
|
@@ -2863,7 +2885,7 @@ function Ws(e) {
|
|
|
2863
2885
|
}
|
|
2864
2886
|
};
|
|
2865
2887
|
}
|
|
2866
|
-
const
|
|
2888
|
+
const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "onDragleave", "onDrop"], Gs = ["aria-label", "data-testid", "onDragstart"], Xs = { class: "emt-th__label" }, Zs = ["data-testid", "onClick"], Js = { class: "emt-th__tools" }, Ys = ["data-testid", "onClick"], Qs = ["disabled", "data-testid", "onClick"], en = ["title", "aria-label", "data-testid"], tn = ["data-testid", "onMousedown"], on = ["aria-label"], an = ["aria-label"], ln = ["aria-label"], sn = /* @__PURE__ */ N({
|
|
2867
2889
|
__name: "EmooTable",
|
|
2868
2890
|
props: {
|
|
2869
2891
|
data: {},
|
|
@@ -2888,7 +2910,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
2888
2910
|
},
|
|
2889
2911
|
emits: ["sort-change", "selection-change", "update:page", "size-change", "row-click", "row-move"],
|
|
2890
2912
|
setup(e, { expose: n, emit: o }) {
|
|
2891
|
-
const { t: l } = me(), r = e, i = o, p = U(), v = (h) => r.columns.find((m) => m.key === h), g =
|
|
2913
|
+
const { t: l } = me(), r = e, i = o, p = U(), v = (h) => r.columns.find((m) => m.key === h), g = R(() => {
|
|
2892
2914
|
const h = r.rowKey;
|
|
2893
2915
|
return typeof h != "function" ? h : (m) => String(h(m));
|
|
2894
2916
|
}), c = (h) => v(h)?.sortBy, b = (h) => {
|
|
@@ -2897,7 +2919,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
2897
2919
|
}, {
|
|
2898
2920
|
colState: _,
|
|
2899
2921
|
pageSize: y,
|
|
2900
|
-
density:
|
|
2922
|
+
density: V,
|
|
2901
2923
|
sortKey: E,
|
|
2902
2924
|
sortOrder: $,
|
|
2903
2925
|
storageSort: I,
|
|
@@ -2916,7 +2938,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
2916
2938
|
pinEdge: de,
|
|
2917
2939
|
togglePinSide: ce,
|
|
2918
2940
|
togglePinSmart: H
|
|
2919
|
-
} =
|
|
2941
|
+
} = Ns({
|
|
2920
2942
|
columns: () => r.columns,
|
|
2921
2943
|
storageKey: r.storageKey,
|
|
2922
2944
|
defaultPageSize: r.defaultPageSize,
|
|
@@ -2933,7 +2955,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
2933
2955
|
}), i("size-change", y.value), ke(() => {
|
|
2934
2956
|
p.value?.doLayout(), Te();
|
|
2935
2957
|
});
|
|
2936
|
-
},
|
|
2958
|
+
}, F = (h) => {
|
|
2937
2959
|
const m = X.value, f = m.findIndex((K) => K.key === h.key);
|
|
2938
2960
|
return h.fixed === "left" ? f === de("left") ? l("common.emooTable.unpin") : l("common.emooTable.pinLeftThrough") : h.fixed === "right" ? f === de("right") ? l("common.emooTable.unpin") : l("common.emooTable.pinRightFrom") : f < m.length / 2 ? l("common.emooTable.pinLeftThrough") : l("common.emooTable.pinRightFrom");
|
|
2939
2961
|
}, C = U(""), L = U(""), Q = U("left"), ae = (h, m) => {
|
|
@@ -2970,7 +2992,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
2970
2992
|
if (K < 0) return null;
|
|
2971
2993
|
const ue = m.getBoundingClientRect();
|
|
2972
2994
|
return { idx: K, side: h.clientY < ue.top + ue.height / 2 ? "above" : "below" };
|
|
2973
|
-
},
|
|
2995
|
+
}, Ft = (h) => {
|
|
2974
2996
|
if (re.value < 0) return;
|
|
2975
2997
|
h.preventDefault(), h.dataTransfer && (h.dataTransfer.dropEffect = "move");
|
|
2976
2998
|
const m = ut(h);
|
|
@@ -2979,7 +3001,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
2979
3001
|
return;
|
|
2980
3002
|
}
|
|
2981
3003
|
Ce.value = m.idx, Ye.value = m.side;
|
|
2982
|
-
},
|
|
3004
|
+
}, Nt = (h) => {
|
|
2983
3005
|
if (re.value < 0) return;
|
|
2984
3006
|
const m = h.relatedTarget;
|
|
2985
3007
|
m && h.currentTarget.contains(m) || (Ce.value = -1);
|
|
@@ -3082,7 +3104,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3082
3104
|
}), n({
|
|
3083
3105
|
colState: _,
|
|
3084
3106
|
pageSize: y,
|
|
3085
|
-
density:
|
|
3107
|
+
density: V,
|
|
3086
3108
|
resetColumns: ne,
|
|
3087
3109
|
resetTablePrefs: te,
|
|
3088
3110
|
normalizeColumns: ye,
|
|
@@ -3092,14 +3114,14 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3092
3114
|
toggleRowSelection: (h, m) => p.value?.toggleRowSelection(h, m),
|
|
3093
3115
|
toggleRowExpansion: (h, m) => p.value?.toggleRowExpansion(h, m)
|
|
3094
3116
|
}), (h, m) => (t(), s("div", {
|
|
3095
|
-
class: W(["emt", { "is-compact": a(
|
|
3117
|
+
class: W(["emt", { "is-compact": a(V) === "compact", "is-comfort": a(V) !== "compact" && e.defaultDensity === "comfort" }])
|
|
3096
3118
|
}, [
|
|
3097
3119
|
u("div", {
|
|
3098
3120
|
ref_key: "scrollWrapRef",
|
|
3099
3121
|
ref: yt,
|
|
3100
3122
|
class: W(["emt-scroll", { "is-dragging": !!C.value, "is-rowdragging": re.value >= 0 }]),
|
|
3101
|
-
onDragover:
|
|
3102
|
-
onDragleave:
|
|
3123
|
+
onDragover: Ft,
|
|
3124
|
+
onDragleave: Nt,
|
|
3103
3125
|
onDrop: qt
|
|
3104
3126
|
}, [
|
|
3105
3127
|
P(a(uo), {
|
|
@@ -3126,7 +3148,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3126
3148
|
type: "expand"
|
|
3127
3149
|
}, {
|
|
3128
3150
|
default: w((f) => [
|
|
3129
|
-
f.$index !== -1 ? A(h.$slots, "expand",
|
|
3151
|
+
f.$index !== -1 ? A(h.$slots, "expand", Ne(qe(f)), void 0, !0, 0) : S("", !0)
|
|
3130
3152
|
]),
|
|
3131
3153
|
_: 3
|
|
3132
3154
|
})) : S("", !0),
|
|
@@ -3160,7 +3182,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3160
3182
|
size: 12,
|
|
3161
3183
|
"aria-hidden": "true"
|
|
3162
3184
|
})
|
|
3163
|
-
], 40,
|
|
3185
|
+
], 40, qs)
|
|
3164
3186
|
]),
|
|
3165
3187
|
_: 2
|
|
3166
3188
|
}, 1032, ["content"])
|
|
@@ -3216,11 +3238,11 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3216
3238
|
size: 12,
|
|
3217
3239
|
"aria-hidden": "true"
|
|
3218
3240
|
})
|
|
3219
|
-
], 40,
|
|
3241
|
+
], 40, Gs)
|
|
3220
3242
|
]),
|
|
3221
3243
|
_: 2
|
|
3222
3244
|
}, 1032, ["content"]),
|
|
3223
|
-
u("span",
|
|
3245
|
+
u("span", Xs, k(v(f.key)?.label), 1),
|
|
3224
3246
|
A(h.$slots, `${f.key}-header`, {
|
|
3225
3247
|
col: v(f.key)
|
|
3226
3248
|
}, void 0, !0),
|
|
@@ -3251,15 +3273,15 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3251
3273
|
class: "emt-th__sortidle",
|
|
3252
3274
|
"aria-hidden": "true"
|
|
3253
3275
|
}))
|
|
3254
|
-
], 8,
|
|
3276
|
+
], 8, Zs)
|
|
3255
3277
|
]),
|
|
3256
3278
|
_: 2
|
|
3257
3279
|
}, 1032, ["content"])) : S("", !0),
|
|
3258
3280
|
m[13] || (m[13] = u("span", { class: "emt-th__spacer" }, null, -1)),
|
|
3259
|
-
u("span",
|
|
3281
|
+
u("span", Js, [
|
|
3260
3282
|
a(B)(f) || f.fixed ? (t(), x(he, {
|
|
3261
3283
|
key: 0,
|
|
3262
|
-
content:
|
|
3284
|
+
content: F(f)
|
|
3263
3285
|
}, {
|
|
3264
3286
|
default: w(() => [
|
|
3265
3287
|
u("button", {
|
|
@@ -3273,7 +3295,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3273
3295
|
weight: f.fixed ? "fill" : void 0,
|
|
3274
3296
|
"aria-hidden": "true"
|
|
3275
3297
|
}, null, 8, ["weight"])
|
|
3276
|
-
], 10,
|
|
3298
|
+
], 10, Ys)
|
|
3277
3299
|
]),
|
|
3278
3300
|
_: 2
|
|
3279
3301
|
}, 1032, ["content"])) : S("", !0),
|
|
@@ -3293,11 +3315,11 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3293
3315
|
size: 13,
|
|
3294
3316
|
"aria-hidden": "true"
|
|
3295
3317
|
})
|
|
3296
|
-
], 8,
|
|
3318
|
+
], 8, Qs)
|
|
3297
3319
|
]),
|
|
3298
3320
|
_: 2
|
|
3299
3321
|
}, 1032, ["content"])) : S("", !0),
|
|
3300
|
-
P(
|
|
3322
|
+
P(ya, {
|
|
3301
3323
|
"col-key": f.key,
|
|
3302
3324
|
sortable: v(f.key)?.sortable,
|
|
3303
3325
|
sorted: a(E) === f.key ? a($) : null,
|
|
@@ -3333,7 +3355,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3333
3355
|
weight: "bold",
|
|
3334
3356
|
"aria-hidden": "true"
|
|
3335
3357
|
})
|
|
3336
|
-
], 40,
|
|
3358
|
+
], 40, en)
|
|
3337
3359
|
]),
|
|
3338
3360
|
_: 2
|
|
3339
3361
|
}, 1032, ["col-key", "sortable", "sorted", "fixed", "can-hide", "hidden", "onSort", "onUnpin", "onPin", "onHide"])
|
|
@@ -3349,11 +3371,11 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3349
3371
|
onMousedown: (K) => jt(f.key, K),
|
|
3350
3372
|
onClick: m[5] || (m[5] = le(() => {
|
|
3351
3373
|
}, ["stop"]))
|
|
3352
|
-
}, null, 40,
|
|
3374
|
+
}, null, 40, tn)
|
|
3353
3375
|
]),
|
|
3354
3376
|
_: 2
|
|
3355
3377
|
}, 1032, ["content"])) : S("", !0)
|
|
3356
|
-
], 42,
|
|
3378
|
+
], 42, js)
|
|
3357
3379
|
]),
|
|
3358
3380
|
default: w(({ row: K, $index: ue }) => [
|
|
3359
3381
|
ue !== -1 ? A(h.$slots, f.key, {
|
|
@@ -3373,7 +3395,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3373
3395
|
"class-name": "emt-col-actions"
|
|
3374
3396
|
}, {
|
|
3375
3397
|
default: w((f) => [
|
|
3376
|
-
f.$index !== -1 ? A(h.$slots, "actions",
|
|
3398
|
+
f.$index !== -1 ? A(h.$slots, "actions", Ne(qe(f)), void 0, !0, 0) : S("", !0)
|
|
3377
3399
|
]),
|
|
3378
3400
|
_: 3
|
|
3379
3401
|
}, 8, ["width"])) : S("", !0)
|
|
@@ -3384,7 +3406,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3384
3406
|
content: a(l)("common.emooTable.scrollLeft")
|
|
3385
3407
|
}, {
|
|
3386
3408
|
default: w(() => [
|
|
3387
|
-
|
|
3409
|
+
Fe(u("button", {
|
|
3388
3410
|
class: W(["emt-scrollbtn is-left", { "is-live": Ke.value === "left" }]),
|
|
3389
3411
|
type: "button",
|
|
3390
3412
|
"aria-label": a(l)("common.emooTable.scrollLeft"),
|
|
@@ -3395,7 +3417,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3395
3417
|
size: 14,
|
|
3396
3418
|
"aria-hidden": "true"
|
|
3397
3419
|
})
|
|
3398
|
-
], 10,
|
|
3420
|
+
], 10, on), [
|
|
3399
3421
|
[tt, bt.value]
|
|
3400
3422
|
])
|
|
3401
3423
|
]),
|
|
@@ -3405,7 +3427,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3405
3427
|
content: a(l)("common.emooTable.scrollRight")
|
|
3406
3428
|
}, {
|
|
3407
3429
|
default: w(() => [
|
|
3408
|
-
|
|
3430
|
+
Fe(u("button", {
|
|
3409
3431
|
class: W(["emt-scrollbtn is-right", { "is-live": Ke.value === "right" }]),
|
|
3410
3432
|
type: "button",
|
|
3411
3433
|
"aria-label": a(l)("common.emooTable.scrollRight"),
|
|
@@ -3416,7 +3438,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3416
3438
|
size: 14,
|
|
3417
3439
|
"aria-hidden": "true"
|
|
3418
3440
|
})
|
|
3419
|
-
], 10,
|
|
3441
|
+
], 10, an), [
|
|
3420
3442
|
[tt, gt.value]
|
|
3421
3443
|
])
|
|
3422
3444
|
]),
|
|
@@ -3430,33 +3452,33 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3430
3452
|
"data-testid": "emt-loading"
|
|
3431
3453
|
}, [
|
|
3432
3454
|
P(Kt, { size: 18 })
|
|
3433
|
-
], 8,
|
|
3455
|
+
], 8, ln)) : S("", !0)
|
|
3434
3456
|
], 34),
|
|
3435
|
-
P(
|
|
3457
|
+
P(us, {
|
|
3436
3458
|
total: e.total ?? 0,
|
|
3437
3459
|
page: e.page ?? 1,
|
|
3438
3460
|
"page-size": a(y),
|
|
3439
3461
|
"page-sizes": e.pageSizes,
|
|
3440
|
-
density: a(
|
|
3462
|
+
density: a(V),
|
|
3441
3463
|
"density-base": e.defaultDensity,
|
|
3442
3464
|
"onUpdate:page": m[9] || (m[9] = (f) => i("update:page", f)),
|
|
3443
3465
|
"onUpdate:pageSize": m[10] || (m[10] = (f) => {
|
|
3444
3466
|
y.value = f, i("size-change", f);
|
|
3445
3467
|
}),
|
|
3446
|
-
"onUpdate:density": m[11] || (m[11] = (f) =>
|
|
3468
|
+
"onUpdate:density": m[11] || (m[11] = (f) => V.value = f)
|
|
3447
3469
|
}, null, 8, ["total", "page", "page-size", "page-sizes", "density", "density-base"])
|
|
3448
3470
|
], 2));
|
|
3449
3471
|
}
|
|
3450
|
-
}),
|
|
3472
|
+
}), ri = /* @__PURE__ */ Y(sn, [["__scopeId", "data-v-bbdd9cda"]]), nn = { class: "emoo-upload" }, rn = ["tabindex", "aria-disabled", "aria-label", "onKeydown"], dn = { class: "emoo-upload__title" }, un = { class: "emoo-upload__browse" }, cn = {
|
|
3451
3473
|
key: 0,
|
|
3452
3474
|
class: "emoo-upload__hint"
|
|
3453
|
-
},
|
|
3475
|
+
}, mn = ["accept", "multiple"], vn = ["data-testid"], fn = { class: "emoo-upload__meta" }, hn = ["disabled", "data-testid", "onClick"], pn = {
|
|
3454
3476
|
key: 0,
|
|
3455
3477
|
class: "emoo-upload__sub"
|
|
3456
|
-
},
|
|
3478
|
+
}, yn = { class: "emoo-upload__err" }, bn = {
|
|
3457
3479
|
key: 2,
|
|
3458
3480
|
class: "emoo-upload__pct"
|
|
3459
|
-
},
|
|
3481
|
+
}, gn = /* @__PURE__ */ N({
|
|
3460
3482
|
__name: "EmooUpload",
|
|
3461
3483
|
props: {
|
|
3462
3484
|
files: {},
|
|
@@ -3478,10 +3500,10 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3478
3500
|
}, y = ($) => {
|
|
3479
3501
|
const I = $.target;
|
|
3480
3502
|
_(Array.from(I.files ?? [])), I.value = "";
|
|
3481
|
-
},
|
|
3503
|
+
}, V = ($) => {
|
|
3482
3504
|
p.value = !1, _(Array.from($.dataTransfer?.files ?? []));
|
|
3483
3505
|
}, E = ($) => $ < 1024 ? `${$} B` : $ < 1024 * 1024 ? `${Math.round($ / 1024)} KB` : $ < 1024 * 1024 * 1024 ? `${($ / 1024 / 1024).toFixed(1)} MB` : `${($ / 1024 / 1024 / 1024).toFixed(1)} GB`;
|
|
3484
|
-
return ($, I) => (t(), s("div",
|
|
3506
|
+
return ($, I) => (t(), s("div", nn, [
|
|
3485
3507
|
e.readonly ? S("", !0) : (t(), s("div", {
|
|
3486
3508
|
key: 0,
|
|
3487
3509
|
class: W(["emoo-upload__drop", { "is-over": p.value, "is-disabled": e.disabled }]),
|
|
@@ -3491,7 +3513,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3491
3513
|
"aria-label": a(r)("common.emooUpload.dropTitle"),
|
|
3492
3514
|
onDragover: le(b, ["prevent"]),
|
|
3493
3515
|
onDragleave: I[0] || (I[0] = (z) => p.value = !1),
|
|
3494
|
-
onDrop: le(
|
|
3516
|
+
onDrop: le(V, ["prevent"]),
|
|
3495
3517
|
onClick: c,
|
|
3496
3518
|
onKeydown: [
|
|
3497
3519
|
je(le(c, ["prevent"]), ["enter"]),
|
|
@@ -3502,11 +3524,11 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3502
3524
|
class: "emoo-upload__ico",
|
|
3503
3525
|
"aria-hidden": "true"
|
|
3504
3526
|
}),
|
|
3505
|
-
u("p",
|
|
3527
|
+
u("p", dn, [
|
|
3506
3528
|
J(k(a(r)("common.emooUpload.dropTitle")) + " ", 1),
|
|
3507
|
-
u("span",
|
|
3529
|
+
u("span", un, k(a(r)("common.emooUpload.browse")), 1)
|
|
3508
3530
|
]),
|
|
3509
|
-
e.hint ? (t(), s("p",
|
|
3531
|
+
e.hint ? (t(), s("p", cn, k(e.hint), 1)) : S("", !0),
|
|
3510
3532
|
u("input", {
|
|
3511
3533
|
ref_key: "inputRef",
|
|
3512
3534
|
ref: i,
|
|
@@ -3515,8 +3537,8 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3515
3537
|
accept: e.accept,
|
|
3516
3538
|
multiple: e.multiple,
|
|
3517
3539
|
onChange: y
|
|
3518
|
-
}, null, 40,
|
|
3519
|
-
], 42,
|
|
3540
|
+
}, null, 40, mn)
|
|
3541
|
+
], 42, rn)),
|
|
3520
3542
|
e.files.length ? (t(), s("ul", {
|
|
3521
3543
|
key: 1,
|
|
3522
3544
|
class: "emoo-upload__list",
|
|
@@ -3530,16 +3552,16 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3530
3552
|
class: "emoo-upload__file-ico",
|
|
3531
3553
|
"aria-hidden": "true"
|
|
3532
3554
|
}),
|
|
3533
|
-
u("div",
|
|
3555
|
+
u("div", fn, [
|
|
3534
3556
|
u("button", {
|
|
3535
3557
|
type: "button",
|
|
3536
3558
|
class: "emoo-upload__name",
|
|
3537
3559
|
disabled: e.disabled,
|
|
3538
3560
|
"data-testid": `upload-preview-${j}`,
|
|
3539
3561
|
onClick: (X) => l("preview", z)
|
|
3540
|
-
}, k(z.name), 9,
|
|
3541
|
-
z.size != null ? (t(), s("span",
|
|
3542
|
-
v(z) === "uploading" ? (t(), x(
|
|
3562
|
+
}, k(z.name), 9, hn),
|
|
3563
|
+
z.size != null ? (t(), s("span", pn, k(E(z.size)), 1)) : S("", !0),
|
|
3564
|
+
v(z) === "uploading" ? (t(), x(hs, {
|
|
3543
3565
|
key: 1,
|
|
3544
3566
|
class: "emoo-upload__progress",
|
|
3545
3567
|
size: "mini",
|
|
@@ -3547,7 +3569,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3547
3569
|
value: z.progress ?? null
|
|
3548
3570
|
}, null, 8, ["value"])) : S("", !0)
|
|
3549
3571
|
]),
|
|
3550
|
-
v(z) === "done" ? (t(), x(
|
|
3572
|
+
v(z) === "done" ? (t(), x(Ps, {
|
|
3551
3573
|
key: 0,
|
|
3552
3574
|
tone: "success"
|
|
3553
3575
|
}, {
|
|
@@ -3556,7 +3578,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3556
3578
|
]),
|
|
3557
3579
|
_: 1
|
|
3558
3580
|
})) : v(z) === "failed" ? (t(), s(D, { key: 1 }, [
|
|
3559
|
-
u("span",
|
|
3581
|
+
u("span", yn, k(z.error || a(r)("common.emooUpload.failed")), 1),
|
|
3560
3582
|
e.readonly ? S("", !0) : (t(), x(De, {
|
|
3561
3583
|
key: 0,
|
|
3562
3584
|
variant: "text",
|
|
@@ -3571,7 +3593,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3571
3593
|
]),
|
|
3572
3594
|
_: 1
|
|
3573
3595
|
}, 8, ["onClick"]))
|
|
3574
|
-
], 64)) : v(z) === "uploading" && z.progress != null ? (t(), s("span",
|
|
3596
|
+
], 64)) : v(z) === "uploading" && z.progress != null ? (t(), s("span", bn, k(Math.round(z.progress)) + "% ", 1)) : S("", !0),
|
|
3575
3597
|
e.readonly ? S("", !0) : (t(), x(De, {
|
|
3576
3598
|
key: 3,
|
|
3577
3599
|
variant: "text",
|
|
@@ -3586,20 +3608,20 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3586
3608
|
_: 1
|
|
3587
3609
|
}, 8, ["aria-label", "onClick"]))
|
|
3588
3610
|
]))), 128))
|
|
3589
|
-
], 8,
|
|
3611
|
+
], 8, vn)) : S("", !0)
|
|
3590
3612
|
]));
|
|
3591
3613
|
}
|
|
3592
|
-
}),
|
|
3614
|
+
}), di = /* @__PURE__ */ Y(gn, [["__scopeId", "data-v-65eda28b"]]), kn = { class: "emoo-value-diff" }, $n = { class: "emoo-value-diff__old" }, _n = /* @__PURE__ */ N({
|
|
3593
3615
|
__name: "EmooValueDiff",
|
|
3594
3616
|
props: {
|
|
3595
3617
|
value: {},
|
|
3596
3618
|
old: {}
|
|
3597
3619
|
},
|
|
3598
3620
|
setup(e) {
|
|
3599
|
-
const n = e, o =
|
|
3600
|
-
return (l, r) => (t(), s("span",
|
|
3621
|
+
const n = e, o = R(() => !!n.old && n.old !== n.value);
|
|
3622
|
+
return (l, r) => (t(), s("span", kn, [
|
|
3601
3623
|
o.value ? (t(), s(D, { key: 0 }, [
|
|
3602
|
-
u("span",
|
|
3624
|
+
u("span", $n, k(e.old), 1),
|
|
3603
3625
|
P(a(Co), {
|
|
3604
3626
|
class: "emoo-value-diff__arrow",
|
|
3605
3627
|
"aria-hidden": "true"
|
|
@@ -3610,21 +3632,21 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3610
3632
|
}, k(e.value), 3)
|
|
3611
3633
|
]));
|
|
3612
3634
|
}
|
|
3613
|
-
}),
|
|
3635
|
+
}), ui = /* @__PURE__ */ Y(_n, [["__scopeId", "data-v-40f98722"]]), wn = {
|
|
3614
3636
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3615
3637
|
viewBox: "0 0 256 256",
|
|
3616
3638
|
width: "1em",
|
|
3617
3639
|
height: "1em",
|
|
3618
3640
|
fill: "currentColor"
|
|
3619
|
-
},
|
|
3641
|
+
}, ci = /* @__PURE__ */ N({
|
|
3620
3642
|
__name: "IconChatCirclePlus",
|
|
3621
3643
|
setup(e) {
|
|
3622
|
-
return (n, o) => (t(), s("svg",
|
|
3644
|
+
return (n, o) => (t(), s("svg", wn, [...o[0] || (o[0] = [
|
|
3623
3645
|
u("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),
|
|
3624
3646
|
u("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)
|
|
3625
3647
|
])]));
|
|
3626
3648
|
}
|
|
3627
|
-
}),
|
|
3649
|
+
}), Sn = ["width", "height"], Cn = ["id"], En = ["mask"], mi = /* @__PURE__ */ N({
|
|
3628
3650
|
__name: "IconPaperPlanes",
|
|
3629
3651
|
props: {
|
|
3630
3652
|
size: { default: "1em" }
|
|
@@ -3665,7 +3687,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3665
3687
|
"stroke-width": "3.5",
|
|
3666
3688
|
"stroke-linejoin": "round"
|
|
3667
3689
|
}, null, -1)
|
|
3668
|
-
])], 8,
|
|
3690
|
+
])], 8, Cn)
|
|
3669
3691
|
]),
|
|
3670
3692
|
u("g", {
|
|
3671
3693
|
mask: `url(#${a(n)})`,
|
|
@@ -3676,7 +3698,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3676
3698
|
}, [...l[1] || (l[1] = [
|
|
3677
3699
|
u("path", { d: "M2 7.5 17 2.8 12.3 17.8 8.9 11.1Z" }, null, -1),
|
|
3678
3700
|
u("path", { d: "m8.9 11.1 3.4-3.6" }, null, -1)
|
|
3679
|
-
])], 8,
|
|
3701
|
+
])], 8, En),
|
|
3680
3702
|
l[2] || (l[2] = u("g", {
|
|
3681
3703
|
stroke: "currentColor",
|
|
3682
3704
|
"stroke-width": "1.5",
|
|
@@ -3686,20 +3708,20 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
|
|
|
3686
3708
|
u("path", { d: "M7 11.5 22 6.8 17.3 21.8 13.9 15.1Z" }),
|
|
3687
3709
|
u("path", { d: "m13.9 15.1 3.4-3.6" })
|
|
3688
3710
|
], -1))
|
|
3689
|
-
], 8,
|
|
3711
|
+
], 8, Sn));
|
|
3690
3712
|
}
|
|
3691
3713
|
});
|
|
3692
|
-
function
|
|
3714
|
+
function vi(e, n = {}) {
|
|
3693
3715
|
const o = n.bottomTolerance ?? 24, l = n.awayThreshold ?? 80, r = U(!0), i = U(!1);
|
|
3694
3716
|
let p = null;
|
|
3695
3717
|
const v = () => {
|
|
3696
|
-
const
|
|
3697
|
-
if (!
|
|
3698
|
-
const E =
|
|
3718
|
+
const V = p;
|
|
3719
|
+
if (!V) return;
|
|
3720
|
+
const E = V.scrollHeight - V.scrollTop - V.clientHeight;
|
|
3699
3721
|
E <= o ? (!r.value || i.value) && (r.value = !0, i.value = !1, n.onDockUpdate?.(!0)) : E > l && (r.value || !i.value) && (r.value = !1, i.value = !0, n.onDockUpdate?.(!1));
|
|
3700
3722
|
}, g = () => {
|
|
3701
|
-
const
|
|
3702
|
-
!
|
|
3723
|
+
const V = e();
|
|
3724
|
+
!V || V === p || (p && p.removeEventListener("scroll", v), p = V, V.addEventListener("scroll", v, { passive: !0 }), v());
|
|
3703
3725
|
}, c = () => {
|
|
3704
3726
|
p?.removeEventListener("scroll", v), p = null;
|
|
3705
3727
|
}, b = () => typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches, _ = () => {
|
|
@@ -3712,16 +3734,16 @@ function di(e, n = {}) {
|
|
|
3712
3734
|
};
|
|
3713
3735
|
return typeof _t == "function" && _t(c), { docked: r, showScrollToBottom: i, attach: g, detach: c, notifyContentChanged: _, scrollToBottom: y, handleScroll: v };
|
|
3714
3736
|
}
|
|
3715
|
-
const
|
|
3737
|
+
const Tn = 3e3, xn = 5e3;
|
|
3716
3738
|
function We(e, n, o = {}) {
|
|
3717
3739
|
return co({
|
|
3718
3740
|
type: e,
|
|
3719
3741
|
message: n,
|
|
3720
|
-
duration: o.duration ?? (e === "error" ?
|
|
3742
|
+
duration: o.duration ?? (e === "error" ? xn : Tn),
|
|
3721
3743
|
showClose: o.showClose ?? e === "error"
|
|
3722
3744
|
});
|
|
3723
3745
|
}
|
|
3724
|
-
const
|
|
3746
|
+
const fi = {
|
|
3725
3747
|
/** 成功反馈:3s,无按钮 */
|
|
3726
3748
|
success: (e, n) => We("success", e, n),
|
|
3727
3749
|
/** 中性信息:3s,无按钮 */
|
|
@@ -3731,7 +3753,7 @@ const ui = {
|
|
|
3731
3753
|
/** 错误:5s + 关闭钮(默认)——读错要够久 */
|
|
3732
3754
|
error: (e, n) => We("error", e, n)
|
|
3733
3755
|
};
|
|
3734
|
-
async function
|
|
3756
|
+
async function hi(e, n) {
|
|
3735
3757
|
const { title: o, confirmText: l = "确认", cancelButtonText: r = "取消", tone: i = "default" } = n;
|
|
3736
3758
|
try {
|
|
3737
3759
|
return await mo.confirm(e, o, {
|
|
@@ -3744,72 +3766,73 @@ async function ci(e, n) {
|
|
|
3744
3766
|
return !1;
|
|
3745
3767
|
}
|
|
3746
3768
|
}
|
|
3747
|
-
function
|
|
3748
|
-
const o =
|
|
3769
|
+
function pi(e, n = !1) {
|
|
3770
|
+
const o = To(e, n), l = {};
|
|
3749
3771
|
for (const [r, i] of Object.entries(o))
|
|
3750
3772
|
l[r.replace("--emoo-", "--el-")] = i;
|
|
3751
3773
|
return l;
|
|
3752
3774
|
}
|
|
3753
3775
|
export {
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3776
|
+
gi as AVATAR_TINT_PALETTE,
|
|
3777
|
+
An as EmooActionPill,
|
|
3778
|
+
Ln as EmooActionSheet,
|
|
3779
|
+
On as EmooAgentSelect,
|
|
3758
3780
|
De as EmooButton,
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3781
|
+
Un as EmooCard,
|
|
3782
|
+
Hn as EmooChips,
|
|
3783
|
+
ia as EmooChoice,
|
|
3784
|
+
ya as EmooColumnMenu,
|
|
3785
|
+
Kn as EmooDrawer,
|
|
3786
|
+
Ma as EmooEmpty,
|
|
3787
|
+
Wn as EmooField,
|
|
3788
|
+
Fn as EmooFieldGrid,
|
|
3789
|
+
Nn as EmooFileTypeIcon,
|
|
3790
|
+
qn as EmooGhostButton,
|
|
3791
|
+
jn as EmooGroupLabel,
|
|
3792
|
+
Gn as EmooHistoryList,
|
|
3793
|
+
Xn as EmooMemberRoleSelect,
|
|
3794
|
+
Zn as EmooMemberSelect,
|
|
3772
3795
|
xe as EmooMemberTag,
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3796
|
+
Jn as EmooMessage,
|
|
3797
|
+
Yn as EmooNavMenu,
|
|
3798
|
+
Qn as EmooNavSegmented,
|
|
3799
|
+
ei as EmooOptionRows,
|
|
3800
|
+
us as EmooPagination,
|
|
3801
|
+
ti as EmooPopover,
|
|
3802
|
+
hs as EmooProgress,
|
|
3803
|
+
oi as EmooRoleSelect,
|
|
3804
|
+
ai as EmooSearchBox,
|
|
3805
|
+
li as EmooSegmented,
|
|
3806
|
+
si as EmooSidebarShell,
|
|
3807
|
+
Ja as EmooSkeleton,
|
|
3785
3808
|
Kt as EmooSpinner,
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3809
|
+
Ps as EmooStatusTag,
|
|
3810
|
+
ni as EmooSwitcherPanel,
|
|
3811
|
+
ri as EmooTable,
|
|
3812
|
+
ii as EmooTagsInput,
|
|
3790
3813
|
he as EmooTooltip,
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3814
|
+
di as EmooUpload,
|
|
3815
|
+
ui as EmooValueDiff,
|
|
3816
|
+
Fs as INLINE_TOOLS_MIN_WIDTH,
|
|
3817
|
+
ci as IconChatCirclePlus,
|
|
3818
|
+
mi as IconPaperPlanes,
|
|
3796
3819
|
at as MIN_COL_WIDTH,
|
|
3797
|
-
|
|
3820
|
+
ki as PRESET_COLORS,
|
|
3798
3821
|
At as SheetDragHandle,
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3822
|
+
$i as avatarTintOf,
|
|
3823
|
+
pi as elementPlusColorVars,
|
|
3824
|
+
hi as emooConfirm,
|
|
3825
|
+
Ei as emoouiMessages,
|
|
3826
|
+
ga as getDrawerWidth,
|
|
3827
|
+
_i as hexToRgbString,
|
|
3828
|
+
wi as mixColor,
|
|
3829
|
+
Sa as nearestSheetTier,
|
|
3830
|
+
Si as primaryColorVars,
|
|
3831
|
+
ka as saveDrawerWidth,
|
|
3832
|
+
fi as toast,
|
|
3833
|
+
Ns as useColumnPrefs,
|
|
3834
|
+
vi as useMessageScroll,
|
|
3812
3835
|
Me as useRemoteOptions,
|
|
3813
3836
|
Be as useSelectedOptions,
|
|
3814
|
-
|
|
3837
|
+
Ca as useSheetHeightDrag
|
|
3815
3838
|
};
|