@emoo-ai/ui-vue 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/IconPaperPlanes.vue.d.ts +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +829 -764
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as F, openBlock as t, createElementBlock as s, createBlock as x, resolveDynamicComponent as Ie, createCommentVNode as S, createElementVNode as
|
|
2
|
-
import { ElDrawer as Tt, ElTooltip as
|
|
1
|
+
import { defineComponent as F, 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 V, 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 Ne, vShow as tt, normalizeProps as Fe, guardReactiveProps as qe, onUnmounted as Ct, useSlots as Et, withKeys as je, h as ve, useId as oo, onScopeDispose as _t } from "vue";
|
|
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
|
-
import { PhX as it, PhSpinner as
|
|
5
|
-
import { primaryColorVars as
|
|
6
|
-
import { AVATAR_TINT_PALETTE as
|
|
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 { primaryColorVars as Eo } from "@emoo-ai/brand/colors";
|
|
6
|
+
import { AVATAR_TINT_PALETTE as hi, PRESET_COLORS as pi, avatarTintOf as yi, hexToRgbString as bi, mixColor as gi, primaryColorVars as ki } from "@emoo-ai/brand/colors";
|
|
7
7
|
import "element-plus/es/components/message-box/style/css";
|
|
8
|
-
import { emoouiMessages as
|
|
8
|
+
import { emoouiMessages as _i } from "./locales.js";
|
|
9
9
|
import "element-plus/es/components/message/style/css";
|
|
10
|
-
const
|
|
10
|
+
const To = { class: "emoo-action-pill__label" }, xo = {
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "emoo-action-pill__kbd"
|
|
13
|
-
},
|
|
13
|
+
}, Io = /* @__PURE__ */ F({
|
|
14
14
|
__name: "EmooActionPill",
|
|
15
15
|
props: {
|
|
16
16
|
icon: {},
|
|
@@ -29,16 +29,16 @@ const Eo = { class: "emoo-action-pill__label" }, To = {
|
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "emoo-action-pill__icon"
|
|
31
31
|
})) : S("", !0),
|
|
32
|
-
|
|
33
|
-
e.kbd ? (t(), s("kbd",
|
|
32
|
+
u("span", To, k(e.label), 1),
|
|
33
|
+
e.kbd ? (t(), s("kbd", xo, k(e.kbd), 1)) : S("", !0)
|
|
34
34
|
]));
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), Y = (e, n) => {
|
|
37
37
|
const o = e.__vccOpts || e;
|
|
38
38
|
for (const [l, r] of n)
|
|
39
39
|
o[l] = r;
|
|
40
40
|
return o;
|
|
41
|
-
},
|
|
41
|
+
}, Bn = /* @__PURE__ */ Y(Io, [["__scopeId", "data-v-f9e9873a"]]), zo = /* @__PURE__ */ F({
|
|
42
42
|
__name: "SheetDragHandle",
|
|
43
43
|
props: {
|
|
44
44
|
dragging: { type: Boolean },
|
|
@@ -51,13 +51,13 @@ const Eo = { class: "emoo-action-pill__label" }, To = {
|
|
|
51
51
|
"data-testid": "sheet-drag-handle",
|
|
52
52
|
onPointerdown: o[0] || (o[0] = le((l) => n.$emit("dragstart", l), ["prevent"]))
|
|
53
53
|
}, [...o[1] || (o[1] = [
|
|
54
|
-
|
|
54
|
+
u("span", { class: "sheet-drag-handle__bar" }, null, -1)
|
|
55
55
|
])], 34));
|
|
56
56
|
}
|
|
57
|
-
}), At = /* @__PURE__ */
|
|
57
|
+
}), At = /* @__PURE__ */ Y(zo, [["__scopeId", "data-v-ef0108a1"]]), Ro = { class: "emoo-asheet" }, Vo = {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "emoo-asheet__title"
|
|
60
|
-
},
|
|
60
|
+
}, Mo = { class: "emoo-asheet__list" }, Bo = ["disabled", "data-testid", "onClick"], Dn = /* @__PURE__ */ F({
|
|
61
61
|
inheritAttrs: !1,
|
|
62
62
|
__name: "EmooActionSheet",
|
|
63
63
|
props: {
|
|
@@ -80,31 +80,31 @@ const Eo = { class: "emoo-action-pill__label" }, To = {
|
|
|
80
80
|
}
|
|
81
81
|
return (v, g) => (t(), x(a(Tt), Xe(v.$attrs, {
|
|
82
82
|
modelValue: r.value,
|
|
83
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
83
|
+
"onUpdate:modelValue": g[0] || (g[0] = (c) => r.value = c),
|
|
84
84
|
direction: "btt",
|
|
85
85
|
size: "auto",
|
|
86
86
|
"with-header": !1,
|
|
87
87
|
class: "emoo-action-sheet"
|
|
88
88
|
}), {
|
|
89
89
|
default: w(() => [
|
|
90
|
-
|
|
90
|
+
u("div", Ro, [
|
|
91
91
|
P(At),
|
|
92
|
-
e.title ? (t(), s("p",
|
|
93
|
-
|
|
92
|
+
e.title ? (t(), s("p", Vo, k(e.title), 1)) : S("", !0),
|
|
93
|
+
u("div", Mo, [
|
|
94
94
|
A(v.$slots, "default"),
|
|
95
|
-
v.$slots.default ? S("", !0) : (t(!0), s(D, { key: 0 },
|
|
96
|
-
key:
|
|
95
|
+
v.$slots.default ? S("", !0) : (t(!0), s(D, { key: 0 }, Z(e.items, (c, b) => (t(), s("button", {
|
|
96
|
+
key: c.key,
|
|
97
97
|
type: "button",
|
|
98
|
-
class: W(["emoo-asheet__item", { "is-danger":
|
|
99
|
-
disabled:
|
|
100
|
-
"data-testid":
|
|
101
|
-
onClick: (_) => i(
|
|
98
|
+
class: W(["emoo-asheet__item", { "is-danger": c.danger }]),
|
|
99
|
+
disabled: c.disabled,
|
|
100
|
+
"data-testid": c.testid,
|
|
101
|
+
onClick: (_) => i(c, b)
|
|
102
102
|
}, [
|
|
103
|
-
|
|
103
|
+
c.icon ? (t(), x(Ie(c.icon), {
|
|
104
104
|
key: 0,
|
|
105
105
|
class: "emoo-asheet__ic"
|
|
106
106
|
})) : S("", !0),
|
|
107
|
-
|
|
107
|
+
u("span", null, k(c.label), 1)
|
|
108
108
|
], 10, Bo))), 128))
|
|
109
109
|
]),
|
|
110
110
|
e.cancelText ? (t(), s("button", {
|
|
@@ -128,7 +128,7 @@ const Eo = { class: "emoo-action-pill__label" }, To = {
|
|
|
128
128
|
},
|
|
129
129
|
setup(e) {
|
|
130
130
|
const n = e, o = V(() => ["emo-tip", n.popperClass].filter(Boolean).join(" "));
|
|
131
|
-
return (l, r) => (t(), x(a(
|
|
131
|
+
return (l, r) => (t(), x(a(ao), Xe(l.$attrs, {
|
|
132
132
|
placement: e.placement,
|
|
133
133
|
"show-after": e.showAfter,
|
|
134
134
|
"popper-class": o.value
|
|
@@ -147,10 +147,10 @@ const Eo = { class: "emoo-action-pill__label" }, To = {
|
|
|
147
147
|
} : void 0
|
|
148
148
|
]), 1040, ["placement", "show-after", "popper-class"]));
|
|
149
149
|
}
|
|
150
|
-
}),
|
|
150
|
+
}), Do = { class: "emoo-mtags" }, Po = ["src", "onError"], Ao = { class: "emoo-mtag__name" }, Lo = ["aria-label", "onClick"], Oo = {
|
|
151
151
|
class: "emoo-mtag emoo-mtag--more",
|
|
152
152
|
"data-testid": "emoo-mtag-more"
|
|
153
|
-
},
|
|
153
|
+
}, Uo = /* @__PURE__ */ F({
|
|
154
154
|
__name: "EmooMemberTag",
|
|
155
155
|
props: {
|
|
156
156
|
items: {},
|
|
@@ -161,52 +161,52 @@ const Eo = { class: "emoo-action-pill__label" }, To = {
|
|
|
161
161
|
emits: ["remove"],
|
|
162
162
|
setup(e) {
|
|
163
163
|
const { t: n } = me(), o = e, l = V(() => o.items.slice(0, o.max)), r = St(/* @__PURE__ */ new Set()), i = V(() => Math.max(0, o.items.length - o.max)), p = V(() => o.items.slice(o.max).map((v) => v.name).join("、"));
|
|
164
|
-
return (v, g) => (t(), s("span",
|
|
165
|
-
(t(!0), s(D, null,
|
|
166
|
-
key: `${
|
|
164
|
+
return (v, g) => (t(), s("span", Do, [
|
|
165
|
+
(t(!0), s(D, null, Z(l.value, (c, b) => (t(), s("span", {
|
|
166
|
+
key: `${c.name}-${b}`,
|
|
167
167
|
class: "emoo-mtag",
|
|
168
|
-
style: pe({ "--tint":
|
|
168
|
+
style: pe({ "--tint": c.color || "var(--el-color-primary)" })
|
|
169
169
|
}, [
|
|
170
|
-
|
|
171
|
-
class: W(["emoo-mtag__avatar", { "is-square":
|
|
170
|
+
u("span", {
|
|
171
|
+
class: W(["emoo-mtag__avatar", { "is-square": c.square || e.square }]),
|
|
172
172
|
"aria-hidden": "true"
|
|
173
173
|
}, [
|
|
174
|
-
|
|
174
|
+
c.avatar && !r.has(b) ? (t(), s("img", {
|
|
175
175
|
key: 0,
|
|
176
|
-
src:
|
|
176
|
+
src: c.avatar,
|
|
177
177
|
alt: "",
|
|
178
178
|
class: "emoo-mtag__img",
|
|
179
179
|
onError: (_) => r.add(b)
|
|
180
|
-
}, null, 40,
|
|
181
|
-
|
|
180
|
+
}, null, 40, Po)) : (t(), s(D, { key: 1 }, [
|
|
181
|
+
J(k(c.name[0]), 1)
|
|
182
182
|
], 64))
|
|
183
183
|
], 2),
|
|
184
|
-
|
|
184
|
+
u("span", Ao, k(c.name), 1),
|
|
185
185
|
e.removable ? (t(), s("button", {
|
|
186
186
|
key: 0,
|
|
187
187
|
type: "button",
|
|
188
188
|
class: "emoo-mtag__x",
|
|
189
|
-
"aria-label": a(n)("common.emooMemberTag.remove", { name:
|
|
189
|
+
"aria-label": a(n)("common.emooMemberTag.remove", { name: c.name }),
|
|
190
190
|
onClick: (_) => v.$emit("remove", b)
|
|
191
191
|
}, [
|
|
192
192
|
P(a(it), { size: 10 })
|
|
193
|
-
], 8,
|
|
193
|
+
], 8, Lo)) : S("", !0)
|
|
194
194
|
], 4))), 128)),
|
|
195
195
|
i.value > 0 ? (t(), x(he, {
|
|
196
196
|
key: 0,
|
|
197
197
|
content: p.value
|
|
198
198
|
}, {
|
|
199
199
|
default: w(() => [
|
|
200
|
-
|
|
200
|
+
u("span", Oo, "+" + k(i.value), 1)
|
|
201
201
|
]),
|
|
202
202
|
_: 1
|
|
203
203
|
}, 8, ["content"])) : S("", !0)
|
|
204
204
|
]));
|
|
205
205
|
}
|
|
206
|
-
}), xe = /* @__PURE__ */
|
|
207
|
-
function
|
|
206
|
+
}), xe = /* @__PURE__ */ Y(Uo, [["__scopeId", "data-v-33f4fffc"]]);
|
|
207
|
+
function Me(e, n) {
|
|
208
208
|
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,
|
|
209
|
+
let g = 1, c = "", b, _ = null, y = 0, R = null;
|
|
210
210
|
const E = (q) => new Promise((de) => setTimeout(de, q)), $ = () => {
|
|
211
211
|
y++, l.value = !1, _ && (clearTimeout(_), _ = null);
|
|
212
212
|
}, I = async (q, de, ce) => {
|
|
@@ -217,7 +217,7 @@ function Be(e, n) {
|
|
|
217
217
|
try {
|
|
218
218
|
const N = await H(de, q);
|
|
219
219
|
if (te !== y || e() !== H) return;
|
|
220
|
-
g = q,
|
|
220
|
+
g = q, c = de, b = H, o.value = z(ce ? o.value : [], N.items), r.value = N.hasMore, R = null;
|
|
221
221
|
} catch (N) {
|
|
222
222
|
te === y && e() === H && (i.value = N, R = { target: q, keyword: de, append: ce }, console.error("选择器远程选项加载失败:", N));
|
|
223
223
|
} finally {
|
|
@@ -234,7 +234,7 @@ function Be(e, n) {
|
|
|
234
234
|
}, 300);
|
|
235
235
|
}, X = () => {
|
|
236
236
|
const q = e();
|
|
237
|
-
l.value || !q || (b !== q || o.value.length === 0 ||
|
|
237
|
+
l.value || !q || (b !== q || o.value.length === 0 || c !== "") && I(1, "", !1);
|
|
238
238
|
}, ie = () => {
|
|
239
239
|
if (!R || l.value) return;
|
|
240
240
|
const { target: q, keyword: de, append: ce } = R;
|
|
@@ -243,11 +243,11 @@ function Be(e, n) {
|
|
|
243
243
|
const q = e();
|
|
244
244
|
if (!(l.value || !q)) {
|
|
245
245
|
if (b !== q) return void X();
|
|
246
|
-
r.value && I(g + 1,
|
|
246
|
+
r.value && I(g + 1, c, !0);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
let d = null, T = null;
|
|
250
|
-
const
|
|
250
|
+
const B = () => {
|
|
251
251
|
const q = document.querySelector(`.${p}`);
|
|
252
252
|
return q?.querySelector(".el-select-dropdown__wrap") || q?.querySelector(".el-scrollbar__wrap");
|
|
253
253
|
}, se = () => {
|
|
@@ -255,7 +255,7 @@ function Be(e, n) {
|
|
|
255
255
|
}, ne = async () => {
|
|
256
256
|
await ke();
|
|
257
257
|
let q = null;
|
|
258
|
-
for (let de = 0; de < 6 && (q =
|
|
258
|
+
for (let de = 0; de < 6 && (q = B(), !q); de++)
|
|
259
259
|
await E(50);
|
|
260
260
|
!q || q === d || (se(), d = q, T = () => {
|
|
261
261
|
d && d.scrollTop + d.clientHeight >= d.scrollHeight - 16 && ee();
|
|
@@ -271,26 +271,26 @@ function Be(e, n) {
|
|
|
271
271
|
$(), se();
|
|
272
272
|
}), { items: o, loading: l, hasMore: r, error: i, search: j, retry: ie, ensureFirstPage: X, loadMore: ee, onVisibleChange: ye, popperClass: v };
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Be(e, n, o) {
|
|
275
275
|
const l = to([]), r = (g) => Array.isArray(g) ? g : g == null ? [] : [g], i = (g) => {
|
|
276
|
-
const
|
|
277
|
-
return l.value = r(g).map((b) =>
|
|
276
|
+
const c = new Map([...l.value, ...o(), ...n()].map((b) => [b.id, b]));
|
|
277
|
+
return l.value = r(g).map((b) => c.get(b)).filter((b) => b !== void 0), l.value;
|
|
278
278
|
};
|
|
279
279
|
we(() => [e(), n(), o()], () => i(e()), { immediate: !0, deep: !0, flush: "sync" });
|
|
280
280
|
const p = V(() => {
|
|
281
281
|
const g = n();
|
|
282
|
-
return [...l.value.filter((
|
|
283
|
-
}), v = V(() => r(e()).map((g) => l.value.find((
|
|
282
|
+
return [...l.value.filter((c) => !g.some((b) => b.id === c.id)), ...g];
|
|
283
|
+
}), v = V(() => r(e()).map((g) => l.value.find((c) => c.id === g)).filter((g) => g !== void 0));
|
|
284
284
|
return { mergedOptions: p, selectedOptions: v, remember: i };
|
|
285
285
|
}
|
|
286
|
-
const
|
|
286
|
+
const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo = ["src"], No = { class: "emoo-asel__name" }, Fo = {
|
|
287
287
|
key: 0,
|
|
288
288
|
class: "emoo-asel__sub"
|
|
289
|
-
},
|
|
289
|
+
}, qo = {
|
|
290
290
|
class: "emoo-sel-remote-error",
|
|
291
291
|
role: "alert",
|
|
292
292
|
"data-testid": "remote-error"
|
|
293
|
-
},
|
|
293
|
+
}, jo = /* @__PURE__ */ F({
|
|
294
294
|
__name: "EmooAgentSelect",
|
|
295
295
|
props: {
|
|
296
296
|
modelValue: {},
|
|
@@ -304,21 +304,21 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
304
304
|
},
|
|
305
305
|
emits: ["update:modelValue"],
|
|
306
306
|
setup(e, { emit: n }) {
|
|
307
|
-
const o = e, l = n, { t: r } = me(), i = V(() => o.source !== void 0), { items: p, loading: v, error: g, retry:
|
|
307
|
+
const o = e, l = n, { t: r } = me(), i = V(() => o.source !== void 0), { items: p, loading: v, error: g, retry: c, search: b, ensureFirstPage: _, onVisibleChange: y, popperClass: R } = Me(() => o.source, "emoo-asel-popper"), { mergedOptions: E, selectedOptions: $, remember: I } = Be(
|
|
308
308
|
() => o.modelValue,
|
|
309
309
|
() => i.value ? p.value : o.options ?? [],
|
|
310
310
|
() => o.selected ?? []
|
|
311
311
|
), z = (d) => E.value.find((T) => T.id === d), j = Pe(), X = V(() => j.disabled !== void 0 && j.disabled !== !1);
|
|
312
|
-
|
|
313
|
-
const d = o.modelValue, T = Array.isArray(d) ? d.length > 0 : d != null,
|
|
314
|
-
i.value && T &&
|
|
312
|
+
Ze(() => {
|
|
313
|
+
const d = o.modelValue, T = Array.isArray(d) ? d.length > 0 : d != null, B = Array.isArray(d) ? d : [d];
|
|
314
|
+
i.value && T && B.some((se) => se !== null && !z(se)) && _();
|
|
315
315
|
});
|
|
316
316
|
const ie = (d) => {
|
|
317
317
|
I(d), l("update:modelValue", d);
|
|
318
318
|
}, ee = (d) => {
|
|
319
319
|
if (X.value) return;
|
|
320
320
|
const T = $.value[d]?.id;
|
|
321
|
-
T !== void 0 && ie(o.modelValue.filter((
|
|
321
|
+
T !== void 0 && ie(o.modelValue.filter((B) => B !== T));
|
|
322
322
|
};
|
|
323
323
|
return (d, T) => (t(), x(a(Ae), {
|
|
324
324
|
class: "emoo-asel",
|
|
@@ -336,25 +336,25 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
336
336
|
onVisibleChange: a(y)
|
|
337
337
|
}, Se({
|
|
338
338
|
default: w(() => [
|
|
339
|
-
(t(!0), s(D, null,
|
|
340
|
-
key:
|
|
341
|
-
label:
|
|
342
|
-
value:
|
|
339
|
+
(t(!0), s(D, null, Z(a(E), (B) => (t(), x(a(ze), {
|
|
340
|
+
key: B.id,
|
|
341
|
+
label: B.name,
|
|
342
|
+
value: B.id
|
|
343
343
|
}, {
|
|
344
344
|
default: w(() => [
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
345
|
+
u("span", Ho, [
|
|
346
|
+
u("span", Ko, [
|
|
347
|
+
B.avatar ? (t(), s("img", {
|
|
348
348
|
key: 0,
|
|
349
|
-
src:
|
|
349
|
+
src: B.avatar,
|
|
350
350
|
alt: "",
|
|
351
351
|
class: "emoo-asel__img"
|
|
352
|
-
}, null, 8,
|
|
353
|
-
|
|
352
|
+
}, null, 8, Wo)) : (t(), s(D, { key: 1 }, [
|
|
353
|
+
J(k(B.name[0]), 1)
|
|
354
354
|
], 64))
|
|
355
355
|
]),
|
|
356
|
-
|
|
357
|
-
|
|
356
|
+
u("span", No, k(B.name), 1),
|
|
357
|
+
B.sub ? (t(), s("span", Fo, k(B.sub), 1)) : S("", !0)
|
|
358
358
|
])
|
|
359
359
|
]),
|
|
360
360
|
_: 2
|
|
@@ -376,11 +376,11 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
376
376
|
key: "1"
|
|
377
377
|
} : {
|
|
378
378
|
name: "label",
|
|
379
|
-
fn: w(({ value:
|
|
380
|
-
z(
|
|
379
|
+
fn: w(({ value: B }) => [
|
|
380
|
+
z(B) ? (t(), x(xe, {
|
|
381
381
|
key: 0,
|
|
382
382
|
square: "",
|
|
383
|
-
items: [z(
|
|
383
|
+
items: [z(B)]
|
|
384
384
|
}, null, 8, ["items"])) : S("", !0)
|
|
385
385
|
]),
|
|
386
386
|
key: "0"
|
|
@@ -388,13 +388,13 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
388
388
|
a(g) ? {
|
|
389
389
|
name: "footer",
|
|
390
390
|
fn: w(() => [
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
391
|
+
u("div", qo, [
|
|
392
|
+
u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
|
|
393
|
+
u("button", {
|
|
394
394
|
type: "button",
|
|
395
395
|
"data-testid": "remote-retry",
|
|
396
396
|
onClick: T[0] || (T[0] = //@ts-ignore
|
|
397
|
-
(...
|
|
397
|
+
(...B) => a(c) && a(c)(...B))
|
|
398
398
|
}, k(a(r)("common.emooSelect.retry")), 1)
|
|
399
399
|
])
|
|
400
400
|
]),
|
|
@@ -402,11 +402,11 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
402
402
|
} : void 0
|
|
403
403
|
]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
|
|
404
404
|
}
|
|
405
|
-
}),
|
|
405
|
+
}), Pn = /* @__PURE__ */ Y(jo, [["__scopeId", "data-v-465d3a49"]]), Go = ["type", "disabled", "aria-busy"], Xo = {
|
|
406
406
|
key: 0,
|
|
407
407
|
class: "emoo-button__icon",
|
|
408
408
|
"aria-hidden": "true"
|
|
409
|
-
},
|
|
409
|
+
}, Zo = /* @__PURE__ */ F({
|
|
410
410
|
__name: "EmooButton",
|
|
411
411
|
props: {
|
|
412
412
|
variant: { default: "secondary" },
|
|
@@ -428,22 +428,22 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
428
428
|
disabled: e.disabled || e.loading,
|
|
429
429
|
"aria-busy": e.loading || void 0
|
|
430
430
|
}, [
|
|
431
|
-
e.loading || n.$slots.icon ? (t(), s("span",
|
|
432
|
-
e.loading ? (t(), x(a(
|
|
431
|
+
e.loading || n.$slots.icon ? (t(), s("span", Xo, [
|
|
432
|
+
e.loading ? (t(), x(a(vo), {
|
|
433
433
|
key: 0,
|
|
434
434
|
class: "emoo-button__spinner"
|
|
435
435
|
})) : A(n.$slots, "icon", {}, void 0, !0, 1)
|
|
436
436
|
])) : S("", !0),
|
|
437
437
|
A(n.$slots, "default", {}, void 0, !0)
|
|
438
|
-
], 10,
|
|
438
|
+
], 10, Go));
|
|
439
439
|
}
|
|
440
|
-
}), De = /* @__PURE__ */
|
|
440
|
+
}), De = /* @__PURE__ */ Y(Zo, [["__scopeId", "data-v-6415e495"]]), Jo = { class: "emoo-card" }, Yo = {
|
|
441
441
|
key: 0,
|
|
442
442
|
class: "emoo-card__header"
|
|
443
|
-
},
|
|
443
|
+
}, Qo = {
|
|
444
444
|
key: 1,
|
|
445
445
|
class: "emoo-card__footer"
|
|
446
|
-
},
|
|
446
|
+
}, ea = /* @__PURE__ */ F({
|
|
447
447
|
__name: "EmooCard",
|
|
448
448
|
props: {
|
|
449
449
|
flush: { type: Boolean, default: !1 }
|
|
@@ -453,22 +453,22 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
453
453
|
n.$slots.header ? (t(), s("div", Yo, [
|
|
454
454
|
A(n.$slots, "header", {}, void 0, !0)
|
|
455
455
|
])) : S("", !0),
|
|
456
|
-
|
|
456
|
+
u("div", {
|
|
457
457
|
class: W(["emoo-card__body", { "emoo-card__body--flush": e.flush }])
|
|
458
458
|
}, [
|
|
459
459
|
A(n.$slots, "default", {}, void 0, !0)
|
|
460
460
|
], 2),
|
|
461
|
-
n.$slots.footer ? (t(), s("div",
|
|
461
|
+
n.$slots.footer ? (t(), s("div", Qo, [
|
|
462
462
|
A(n.$slots, "footer", {}, void 0, !0)
|
|
463
463
|
])) : S("", !0)
|
|
464
464
|
]));
|
|
465
465
|
}
|
|
466
|
-
}),
|
|
466
|
+
}), An = /* @__PURE__ */ Y(ea, [["__scopeId", "data-v-4fffe6bc"]]), ta = ["data-testid"], oa = {
|
|
467
467
|
key: 0,
|
|
468
468
|
class: "emoo-chips__more",
|
|
469
469
|
"data-testid": "emoo-chips-more"
|
|
470
|
-
},
|
|
471
|
-
...
|
|
470
|
+
}, aa = { name: "EmooChips" }, la = /* @__PURE__ */ F({
|
|
471
|
+
...aa,
|
|
472
472
|
props: {
|
|
473
473
|
items: {},
|
|
474
474
|
labelOf: {},
|
|
@@ -493,24 +493,24 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
493
493
|
$ = j, I++;
|
|
494
494
|
}
|
|
495
495
|
r.value = Math.max(1, I), i.value = _.length - r.value;
|
|
496
|
-
},
|
|
496
|
+
}, c = () => {
|
|
497
497
|
r.value = n.items.length, ke(g);
|
|
498
498
|
};
|
|
499
499
|
let b = null;
|
|
500
|
-
return
|
|
501
|
-
ke(g), setTimeout(
|
|
502
|
-
}), lt(() => b?.disconnect()), we(() => n.items,
|
|
500
|
+
return Ze(() => {
|
|
501
|
+
ke(g), setTimeout(c, 400), o.value && (b = new ResizeObserver(c), b.observe(o.value));
|
|
502
|
+
}), lt(() => b?.disconnect()), we(() => n.items, c), (_, y) => (t(), x(he, {
|
|
503
503
|
content: p.value,
|
|
504
504
|
disabled: i.value === 0
|
|
505
505
|
}, {
|
|
506
506
|
default: w(() => [
|
|
507
|
-
|
|
507
|
+
u("div", {
|
|
508
508
|
ref_key: "wrapRef",
|
|
509
509
|
ref: o,
|
|
510
510
|
class: "emoo-chips",
|
|
511
511
|
style: pe({ gap: `${e.gap}px` })
|
|
512
512
|
}, [
|
|
513
|
-
(t(!0), s(D, null,
|
|
513
|
+
(t(!0), s(D, null, Z(e.items, (R, E) => Ne((t(), s("span", {
|
|
514
514
|
key: E,
|
|
515
515
|
ref_for: !0,
|
|
516
516
|
ref_key: "chipRefs",
|
|
@@ -522,16 +522,16 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
522
522
|
item: R,
|
|
523
523
|
index: E
|
|
524
524
|
}, void 0, !0)
|
|
525
|
-
], 8,
|
|
525
|
+
], 8, ta)), [
|
|
526
526
|
[tt, E < r.value]
|
|
527
527
|
])), 128)),
|
|
528
|
-
i.value > 0 ? (t(), s("span",
|
|
528
|
+
i.value > 0 ? (t(), s("span", oa, "+" + k(i.value), 1)) : S("", !0)
|
|
529
529
|
], 4)
|
|
530
530
|
]),
|
|
531
531
|
_: 3
|
|
532
532
|
}, 8, ["content", "disabled"]));
|
|
533
533
|
}
|
|
534
|
-
}),
|
|
534
|
+
}), Ln = /* @__PURE__ */ Y(la, [["__scopeId", "data-v-1c5db445"]]), sa = /* @__PURE__ */ F({
|
|
535
535
|
__name: "EmooChoice",
|
|
536
536
|
props: {
|
|
537
537
|
options: {},
|
|
@@ -552,7 +552,7 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
552
552
|
l("update:modelValue", b), typeof r.onChange == "function" && r.onChange(b), typeof r.onClear == "function" && r.onClear();
|
|
553
553
|
}, g = (b, _) => {
|
|
554
554
|
!o.clearable || o.disabled || b.disabled || o.modelValue !== b.value || (_.preventDefault(), _.stopPropagation(), v());
|
|
555
|
-
},
|
|
555
|
+
}, c = (b) => {
|
|
556
556
|
o.multiple && Array.isArray(b) ? l("update:modelValue", b.filter(
|
|
557
557
|
(_) => typeof _ == "string" || typeof _ == "number" || typeof _ == "boolean"
|
|
558
558
|
)) : !o.multiple && (typeof b == "string" || typeof b == "number" || typeof b == "boolean" || o.clearable && b === void 0) && l("update:modelValue", b);
|
|
@@ -571,10 +571,10 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
571
571
|
"max-collapse-tags": 2,
|
|
572
572
|
"empty-values": [null, void 0],
|
|
573
573
|
"value-on-clear": void 0,
|
|
574
|
-
"onUpdate:modelValue":
|
|
574
|
+
"onUpdate:modelValue": c
|
|
575
575
|
}, Se({
|
|
576
576
|
default: w(() => [
|
|
577
|
-
(t(!0), s(D, null,
|
|
577
|
+
(t(!0), s(D, null, Z(e.options, (y) => (t(), x(a(ze), {
|
|
578
578
|
key: `${typeof y.value}:${y.value}`,
|
|
579
579
|
value: y.value,
|
|
580
580
|
label: y.label,
|
|
@@ -583,7 +583,7 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
583
583
|
}, {
|
|
584
584
|
default: w(() => [
|
|
585
585
|
A(b.$slots, "option", { option: y }, () => [
|
|
586
|
-
|
|
586
|
+
J(k(y.label), 1)
|
|
587
587
|
], !0)
|
|
588
588
|
]),
|
|
589
589
|
_: 2
|
|
@@ -618,11 +618,11 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
618
618
|
"model-value": Array.isArray(e.modelValue) ? e.modelValue : [],
|
|
619
619
|
disabled: e.disabled,
|
|
620
620
|
"aria-label": e.ariaLabel || e.placeholder,
|
|
621
|
-
"onUpdate:modelValue":
|
|
621
|
+
"onUpdate:modelValue": c,
|
|
622
622
|
onFocusout: p
|
|
623
623
|
}, {
|
|
624
624
|
default: w(() => [
|
|
625
|
-
(t(!0), s(D, null,
|
|
625
|
+
(t(!0), s(D, null, Z(e.options, (y) => (t(), x(a(st), {
|
|
626
626
|
key: `${typeof y.value}:${y.value}`,
|
|
627
627
|
value: y.value,
|
|
628
628
|
disabled: y.disabled,
|
|
@@ -630,7 +630,7 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
630
630
|
}, {
|
|
631
631
|
default: w(() => [
|
|
632
632
|
A(b.$slots, "option", { option: y }, () => [
|
|
633
|
-
|
|
633
|
+
J(k(y.label), 1)
|
|
634
634
|
], !0)
|
|
635
635
|
]),
|
|
636
636
|
_: 2
|
|
@@ -657,11 +657,11 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
657
657
|
"model-value": Array.isArray(e.modelValue) ? void 0 : e.modelValue ?? void 0,
|
|
658
658
|
disabled: e.disabled,
|
|
659
659
|
"aria-label": e.ariaLabel || e.placeholder,
|
|
660
|
-
"onUpdate:modelValue":
|
|
660
|
+
"onUpdate:modelValue": c,
|
|
661
661
|
onFocusout: p
|
|
662
662
|
}, {
|
|
663
663
|
default: w(() => [
|
|
664
|
-
(t(!0), s(D, null,
|
|
664
|
+
(t(!0), s(D, null, Z(e.options, (y) => (t(), x(a(zt), {
|
|
665
665
|
key: `${typeof y.value}:${y.value}`,
|
|
666
666
|
value: y.value,
|
|
667
667
|
disabled: y.disabled,
|
|
@@ -670,7 +670,7 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
670
670
|
}, {
|
|
671
671
|
default: w(() => [
|
|
672
672
|
A(b.$slots, "option", { option: y }, () => [
|
|
673
|
-
|
|
673
|
+
J(k(y.label), 1)
|
|
674
674
|
], !0)
|
|
675
675
|
]),
|
|
676
676
|
_: 2
|
|
@@ -679,7 +679,7 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
679
679
|
_: 3
|
|
680
680
|
}, 8, ["model-value", "disabled", "aria-label"]));
|
|
681
681
|
}
|
|
682
|
-
}),
|
|
682
|
+
}), na = /* @__PURE__ */ Y(sa, [["__scopeId", "data-v-d18fb571"]]), ia = { class: "emt-colmenu__list" }, ra = ["data-testid"], da = ["data-testid"], ua = ["data-testid"], ca = ["data-testid"], ma = ["data-testid"], va = ["disabled", "data-testid"], fa = { class: "emt-colmenu__section" }, ha = ["data-testid", "onClick"], pa = /* @__PURE__ */ F({
|
|
683
683
|
__name: "EmooColumnMenu",
|
|
684
684
|
props: {
|
|
685
685
|
colKey: {},
|
|
@@ -700,9 +700,9 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
700
700
|
"popper-class": "emt-colmenu"
|
|
701
701
|
}, {
|
|
702
702
|
dropdown: w(() => [
|
|
703
|
-
|
|
703
|
+
u("div", ia, [
|
|
704
704
|
e.sortable ? (t(), s(D, { key: 0 }, [
|
|
705
|
-
|
|
705
|
+
u("button", {
|
|
706
706
|
class: W(["emt-colmenu__item", { "is-on": e.sorted === "ascending" }]),
|
|
707
707
|
type: "button",
|
|
708
708
|
"data-testid": `emcm-sort-asc-${e.colKey}`,
|
|
@@ -713,9 +713,9 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
713
713
|
weight: "bold",
|
|
714
714
|
"aria-hidden": "true"
|
|
715
715
|
}),
|
|
716
|
-
|
|
717
|
-
], 10,
|
|
718
|
-
|
|
716
|
+
J(k(a(l)("common.emooTable.sortAsc")), 1)
|
|
717
|
+
], 10, ra),
|
|
718
|
+
u("button", {
|
|
719
719
|
class: W(["emt-colmenu__item", { "is-on": e.sorted === "descending" }]),
|
|
720
720
|
type: "button",
|
|
721
721
|
"data-testid": `emcm-sort-desc-${e.colKey}`,
|
|
@@ -726,9 +726,9 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
726
726
|
weight: "bold",
|
|
727
727
|
"aria-hidden": "true"
|
|
728
728
|
}),
|
|
729
|
-
|
|
730
|
-
], 10,
|
|
731
|
-
i[7] || (i[7] =
|
|
729
|
+
J(k(a(l)("common.emooTable.sortDesc")), 1)
|
|
730
|
+
], 10, da),
|
|
731
|
+
i[7] || (i[7] = u("div", { class: "emt-colmenu__divider" }, null, -1))
|
|
732
732
|
], 64)) : S("", !0),
|
|
733
733
|
e.pinsEnabled ? (t(), s(D, { key: 1 }, [
|
|
734
734
|
e.fixed ? (t(), s("button", {
|
|
@@ -738,41 +738,41 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
738
738
|
"data-testid": `emcm-unpin-${e.colKey}`,
|
|
739
739
|
onClick: i[2] || (i[2] = (p) => o("unpin"))
|
|
740
740
|
}, [
|
|
741
|
-
P(a(
|
|
741
|
+
P(a(fo), {
|
|
742
742
|
size: 14,
|
|
743
743
|
"aria-hidden": "true"
|
|
744
744
|
}),
|
|
745
|
-
|
|
746
|
-
], 8,
|
|
747
|
-
|
|
745
|
+
J(k(a(l)("common.emooTable.unpin")), 1)
|
|
746
|
+
], 8, ua)) : (t(), s(D, { key: 1 }, [
|
|
747
|
+
u("button", {
|
|
748
748
|
class: "emt-colmenu__item",
|
|
749
749
|
type: "button",
|
|
750
750
|
"data-testid": `emcm-pin-left-${e.colKey}`,
|
|
751
751
|
onClick: i[3] || (i[3] = (p) => o("pin", "left"))
|
|
752
752
|
}, [
|
|
753
|
-
P(a(
|
|
753
|
+
P(a(ho), {
|
|
754
754
|
size: 14,
|
|
755
755
|
"aria-hidden": "true"
|
|
756
756
|
}),
|
|
757
|
-
|
|
758
|
-
], 8,
|
|
759
|
-
|
|
757
|
+
J(k(a(l)("common.emooTable.pinLeftThrough")), 1)
|
|
758
|
+
], 8, ca),
|
|
759
|
+
u("button", {
|
|
760
760
|
class: "emt-colmenu__item",
|
|
761
761
|
type: "button",
|
|
762
762
|
"data-testid": `emcm-pin-right-${e.colKey}`,
|
|
763
763
|
onClick: i[4] || (i[4] = (p) => o("pin", "right"))
|
|
764
764
|
}, [
|
|
765
|
-
P(a(
|
|
765
|
+
P(a(po), {
|
|
766
766
|
size: 14,
|
|
767
767
|
"aria-hidden": "true"
|
|
768
768
|
}),
|
|
769
|
-
|
|
770
|
-
], 8,
|
|
769
|
+
J(k(a(l)("common.emooTable.pinRightFrom")), 1)
|
|
770
|
+
], 8, ma)
|
|
771
771
|
], 64)),
|
|
772
|
-
i[8] || (i[8] =
|
|
772
|
+
i[8] || (i[8] = u("div", { class: "emt-colmenu__divider" }, null, -1))
|
|
773
773
|
], 64)) : S("", !0),
|
|
774
774
|
A(r.$slots, "extra"),
|
|
775
|
-
|
|
775
|
+
u("button", {
|
|
776
776
|
class: "emt-colmenu__item",
|
|
777
777
|
type: "button",
|
|
778
778
|
disabled: !e.canHide,
|
|
@@ -783,38 +783,38 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
783
783
|
size: 14,
|
|
784
784
|
"aria-hidden": "true"
|
|
785
785
|
}),
|
|
786
|
-
|
|
787
|
-
], 8,
|
|
786
|
+
J(k(a(l)("common.emooTable.hideColumn")), 1)
|
|
787
|
+
], 8, va),
|
|
788
788
|
e.hidden.length ? (t(), s(D, { key: 2 }, [
|
|
789
|
-
i[9] || (i[9] =
|
|
790
|
-
|
|
791
|
-
(t(!0), s(D, null,
|
|
789
|
+
i[9] || (i[9] = u("div", { class: "emt-colmenu__divider" }, null, -1)),
|
|
790
|
+
u("div", fa, k(a(l)("common.emooTable.hiddenColumns")), 1),
|
|
791
|
+
(t(!0), s(D, null, Z(e.hidden, (p) => (t(), s("button", {
|
|
792
792
|
key: p.key,
|
|
793
793
|
class: "emt-colmenu__item",
|
|
794
794
|
type: "button",
|
|
795
795
|
"data-testid": `emcm-restore-${p.key}`,
|
|
796
796
|
onClick: le((v) => o("restore", p.key), ["stop"])
|
|
797
797
|
}, [
|
|
798
|
-
P(a(
|
|
798
|
+
P(a(yo), {
|
|
799
799
|
size: 14,
|
|
800
800
|
"aria-hidden": "true"
|
|
801
801
|
}),
|
|
802
|
-
|
|
803
|
-
], 8,
|
|
802
|
+
J(k(p.label), 1)
|
|
803
|
+
], 8, ha))), 128))
|
|
804
804
|
], 64)) : S("", !0),
|
|
805
805
|
e.resettable ? (t(), s(D, { key: 3 }, [
|
|
806
|
-
i[10] || (i[10] =
|
|
807
|
-
|
|
806
|
+
i[10] || (i[10] = u("div", { class: "emt-colmenu__divider" }, null, -1)),
|
|
807
|
+
u("button", {
|
|
808
808
|
class: "emt-colmenu__item",
|
|
809
809
|
type: "button",
|
|
810
810
|
"data-testid": "emt-reset-prefs",
|
|
811
811
|
onClick: i[6] || (i[6] = le((p) => o("reset"), ["stop"]))
|
|
812
812
|
}, [
|
|
813
|
-
P(a(
|
|
813
|
+
P(a(Mt), {
|
|
814
814
|
size: 14,
|
|
815
815
|
"aria-hidden": "true"
|
|
816
816
|
}),
|
|
817
|
-
|
|
817
|
+
J(k(a(l)("common.emooTable.resetPrefs")), 1)
|
|
818
818
|
])
|
|
819
819
|
], 64)) : S("", !0)
|
|
820
820
|
])
|
|
@@ -825,62 +825,62 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
|
|
|
825
825
|
_: 3
|
|
826
826
|
}));
|
|
827
827
|
}
|
|
828
|
-
}),
|
|
828
|
+
}), Je = {
|
|
829
829
|
DRAWER_WIDTHS: "emoo-drawer-widths",
|
|
830
830
|
DRAWER_HEIGHTS: "emoo-drawer-heights"
|
|
831
|
-
},
|
|
831
|
+
}, ya = 360, Lt = 0.98;
|
|
832
832
|
function Ot() {
|
|
833
833
|
try {
|
|
834
|
-
const e = localStorage.getItem(
|
|
834
|
+
const e = localStorage.getItem(Je.DRAWER_WIDTHS), n = e ? JSON.parse(e) : {};
|
|
835
835
|
return typeof n == "object" && n !== null ? n : {};
|
|
836
836
|
} catch {
|
|
837
837
|
return {};
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
|
-
function
|
|
840
|
+
function ba(e, n) {
|
|
841
841
|
const o = Ot()[e];
|
|
842
|
-
return typeof o != "number" || Number.isNaN(o) ? n : `${Math.round(Math.min(Math.max(o,
|
|
842
|
+
return typeof o != "number" || Number.isNaN(o) ? n : `${Math.round(Math.min(Math.max(o, ya), window.innerWidth * Lt))}px`;
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function ga(e, n) {
|
|
845
845
|
try {
|
|
846
846
|
const o = Math.min(Math.round(n), Math.round(window.innerWidth * Lt));
|
|
847
847
|
localStorage.setItem(
|
|
848
|
-
|
|
848
|
+
Je.DRAWER_WIDTHS,
|
|
849
849
|
JSON.stringify({ ...Ot(), [e]: o })
|
|
850
850
|
);
|
|
851
851
|
} catch {
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
|
-
const Ut = [0.6, 0.85, 1],
|
|
854
|
+
const Ut = [0.6, 0.85, 1], ka = 0.08, $a = 250;
|
|
855
855
|
function Ht() {
|
|
856
856
|
try {
|
|
857
|
-
const e = localStorage.getItem(
|
|
857
|
+
const e = localStorage.getItem(Je.DRAWER_HEIGHTS), n = e ? JSON.parse(e) : {};
|
|
858
858
|
return typeof n == "object" && n !== null ? n : {};
|
|
859
859
|
} catch {
|
|
860
860
|
return {};
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function _a(e, n) {
|
|
864
864
|
try {
|
|
865
865
|
localStorage.setItem(
|
|
866
|
-
|
|
866
|
+
Je.DRAWER_HEIGHTS,
|
|
867
867
|
JSON.stringify({ ...Ht(), [e]: n })
|
|
868
868
|
);
|
|
869
869
|
} catch {
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function wa(e) {
|
|
873
873
|
return Ut.reduce((n, o) => Math.abs(o - e) < Math.abs(n - e) ? o : n);
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function Sa(e, n) {
|
|
876
876
|
const o = Ht()[e], l = typeof o == "number" && o > 0 && o <= 1 ? o : n, r = U(l), i = U(null), p = V(() => i.value === null ? `${Math.round(r.value * 100)}%` : `${i.value}px`), v = U(!1), g = U(!1);
|
|
877
|
-
let
|
|
877
|
+
let c = 0, b = 0, _ = !1, y;
|
|
878
878
|
function R() {
|
|
879
879
|
y !== void 0 && clearTimeout(y), y = void 0, g.value = !1, i.value = null;
|
|
880
880
|
}
|
|
881
881
|
function E(z) {
|
|
882
882
|
_ = !0;
|
|
883
|
-
const j = b + (
|
|
883
|
+
const j = b + (c - z.clientY);
|
|
884
884
|
i.value = Math.round(Math.min(Math.max(j, Ut[0] * window.innerHeight), window.innerHeight));
|
|
885
885
|
}
|
|
886
886
|
function $() {
|
|
@@ -888,26 +888,26 @@ function wa(e, n) {
|
|
|
888
888
|
i.value = null;
|
|
889
889
|
return;
|
|
890
890
|
}
|
|
891
|
-
const z = i.value / window.innerHeight, j =
|
|
892
|
-
if (r.value = X ? j : Math.round(z * 100) / 100,
|
|
891
|
+
const z = i.value / window.innerHeight, j = wa(z), X = Math.abs(j - z) <= ka;
|
|
892
|
+
if (r.value = X ? j : Math.round(z * 100) / 100, _a(e, r.value), !X) {
|
|
893
893
|
i.value = null;
|
|
894
894
|
return;
|
|
895
895
|
}
|
|
896
896
|
g.value = !0, requestAnimationFrame(() => {
|
|
897
|
-
i.value = Math.round(j * window.innerHeight), y = setTimeout(R,
|
|
897
|
+
i.value = Math.round(j * window.innerHeight), y = setTimeout(R, $a);
|
|
898
898
|
});
|
|
899
899
|
}
|
|
900
900
|
function I(z) {
|
|
901
|
-
z.button !== void 0 && z.button !== 0 || (R(), v.value = !0, _ = !1,
|
|
901
|
+
z.button !== void 0 && z.button !== 0 || (R(), 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
902
|
}
|
|
903
903
|
return Ct(() => {
|
|
904
904
|
window.removeEventListener("pointermove", E), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $), y !== void 0 && clearTimeout(y);
|
|
905
905
|
}), { size: p, dragging: v, animating: g, onDragStart: I };
|
|
906
906
|
}
|
|
907
|
-
const
|
|
907
|
+
const Ca = {
|
|
908
908
|
key: 0,
|
|
909
909
|
class: "emoo-drawer__sheet"
|
|
910
|
-
},
|
|
910
|
+
}, Ea = { class: "emoo-drawer__sheet-content" }, On = /* @__PURE__ */ F({
|
|
911
911
|
inheritAttrs: !1,
|
|
912
912
|
__name: "EmooDrawer",
|
|
913
913
|
props: {
|
|
@@ -925,12 +925,12 @@ const Sa = {
|
|
|
925
925
|
const o = e, l = n, r = V({
|
|
926
926
|
get: () => o.modelValue,
|
|
927
927
|
set: (y) => l("update:modelValue", y)
|
|
928
|
-
}), i = V(() => o.isMobile && !!o.scene && !o.mobileFull), { size: p, dragging: v, animating: g, onDragStart:
|
|
928
|
+
}), i = V(() => o.isMobile && !!o.scene && !o.mobileFull), { size: p, dragging: v, animating: g, onDragStart: c } = Sa(
|
|
929
929
|
o.scene ?? "__emoo-no-scene__",
|
|
930
930
|
o.mobileRatio
|
|
931
|
-
), b = V(() => o.isMobile ? i.value ? p.value : o.direction === "rtl" || o.direction === "ltr" ? o.size : "100%" : o.scene ?
|
|
931
|
+
), b = V(() => o.isMobile ? i.value ? p.value : o.direction === "rtl" || o.direction === "ltr" ? o.size : "100%" : o.scene ? ba(o.scene, o.size) : o.size);
|
|
932
932
|
function _(y, R) {
|
|
933
|
-
o.scene &&
|
|
933
|
+
o.scene && ga(o.scene, R), l("resize-end", y, R);
|
|
934
934
|
}
|
|
935
935
|
return (y, R) => (t(), x(a(Tt), Xe(y.$attrs, {
|
|
936
936
|
modelValue: r.value,
|
|
@@ -946,12 +946,12 @@ const Sa = {
|
|
|
946
946
|
onResizeEnd: _
|
|
947
947
|
}), Se({
|
|
948
948
|
default: w(() => [
|
|
949
|
-
i.value ? (t(), s("div",
|
|
949
|
+
i.value ? (t(), s("div", Ca, [
|
|
950
950
|
P(At, {
|
|
951
951
|
dragging: a(v),
|
|
952
|
-
onDragstart: a(
|
|
952
|
+
onDragstart: a(c)
|
|
953
953
|
}, null, 8, ["dragging", "onDragstart"]),
|
|
954
|
-
|
|
954
|
+
u("div", Ea, [
|
|
955
955
|
A(y.$slots, "default")
|
|
956
956
|
])
|
|
957
957
|
])) : A(y.$slots, "default", {}, void 0, void 0, 1)
|
|
@@ -974,20 +974,20 @@ const Sa = {
|
|
|
974
974
|
} : void 0
|
|
975
975
|
]), 1040, ["modelValue", "class", "size", "direction", "resizable"]));
|
|
976
976
|
}
|
|
977
|
-
}),
|
|
977
|
+
}), Ta = {
|
|
978
978
|
key: 0,
|
|
979
979
|
class: "emoo-empty__stage",
|
|
980
980
|
"aria-hidden": "true"
|
|
981
|
-
},
|
|
981
|
+
}, xa = {
|
|
982
982
|
key: 1,
|
|
983
983
|
class: "emoo-empty__title"
|
|
984
|
-
},
|
|
984
|
+
}, Ia = {
|
|
985
985
|
key: 2,
|
|
986
986
|
class: "emoo-empty__desc"
|
|
987
|
-
},
|
|
987
|
+
}, za = {
|
|
988
988
|
key: 3,
|
|
989
989
|
class: "emoo-empty__actions"
|
|
990
|
-
},
|
|
990
|
+
}, Ra = /* @__PURE__ */ F({
|
|
991
991
|
__name: "EmooEmpty",
|
|
992
992
|
props: {
|
|
993
993
|
variant: { default: "stage" },
|
|
@@ -1003,20 +1003,20 @@ const Sa = {
|
|
|
1003
1003
|
"data-testid": "emoo-empty"
|
|
1004
1004
|
}, [
|
|
1005
1005
|
e.variant === "stage" ? (t(), s(D, { key: 0 }, [
|
|
1006
|
-
e.icon ? (t(), s("span",
|
|
1006
|
+
e.icon ? (t(), s("span", Ta, [
|
|
1007
1007
|
(t(), x(Ie(e.icon), { weight: "duotone" }))
|
|
1008
1008
|
])) : S("", !0),
|
|
1009
|
-
e.title ? (t(), s("p",
|
|
1010
|
-
e.description ? (t(), s("p",
|
|
1011
|
-
n.$slots.actions ? (t(), s("div",
|
|
1009
|
+
e.title ? (t(), s("p", xa, k(e.title), 1)) : S("", !0),
|
|
1010
|
+
e.description ? (t(), s("p", Ia, k(e.description), 1)) : S("", !0),
|
|
1011
|
+
n.$slots.actions ? (t(), s("div", za, [
|
|
1012
1012
|
A(n.$slots, "actions", {}, void 0, !0)
|
|
1013
1013
|
])) : S("", !0)
|
|
1014
1014
|
], 64)) : (t(), s(D, { key: 1 }, [
|
|
1015
|
-
|
|
1015
|
+
J(k(e.title), 1)
|
|
1016
1016
|
], 64))
|
|
1017
1017
|
], 2));
|
|
1018
1018
|
}
|
|
1019
|
-
}),
|
|
1019
|
+
}), Va = /* @__PURE__ */ Y(Ra, [["__scopeId", "data-v-e50a5864"]]), Ma = ["id", "for"], Ba = { class: "emoo-field__body" }, Da = ["data-testid"], Pa = ["id"], Aa = ["id", "data-testid"], La = /* @__PURE__ */ F({
|
|
1020
1020
|
__name: "EmooField",
|
|
1021
1021
|
props: {
|
|
1022
1022
|
id: {},
|
|
@@ -1037,7 +1037,7 @@ const Sa = {
|
|
|
1037
1037
|
if (!(n.span === 1 || n.span === void 0))
|
|
1038
1038
|
return n.span === "full" ? "is-span-full" : `is-span-${Math.min(4, Math.max(1, n.span))}`;
|
|
1039
1039
|
});
|
|
1040
|
-
return (g,
|
|
1040
|
+
return (g, c) => e.mode !== "hidden" ? (t(), s("div", {
|
|
1041
1041
|
key: 0,
|
|
1042
1042
|
class: W(["emoo-field", [`is-${e.mode}`, v.value, { "is-required": e.required && e.mode === "edit" }]])
|
|
1043
1043
|
}, [
|
|
@@ -1048,19 +1048,19 @@ const Sa = {
|
|
|
1048
1048
|
class: W(["emoo-field__label", { "is-danger": e.labelTone === "danger" }])
|
|
1049
1049
|
}, [
|
|
1050
1050
|
A(g.$slots, "label", {}, () => [
|
|
1051
|
-
|
|
1051
|
+
J(k(e.label), 1)
|
|
1052
1052
|
], !0)
|
|
1053
|
-
], 10,
|
|
1054
|
-
|
|
1053
|
+
], 10, Ma)) : S("", !0),
|
|
1054
|
+
u("div", Ba, [
|
|
1055
1055
|
e.mode === "view" ? (t(), s("div", {
|
|
1056
1056
|
key: 0,
|
|
1057
1057
|
class: "emoo-field__value",
|
|
1058
1058
|
"data-testid": e.testid ? `${e.testid}-value` : void 0
|
|
1059
1059
|
}, [
|
|
1060
1060
|
A(g.$slots, "view", {}, () => [
|
|
1061
|
-
|
|
1061
|
+
J(k(e.text), 1)
|
|
1062
1062
|
], !0)
|
|
1063
|
-
], 8,
|
|
1063
|
+
], 8, Da)) : A(g.$slots, "default", {
|
|
1064
1064
|
id: o.value || void 0,
|
|
1065
1065
|
describedBy: p.value,
|
|
1066
1066
|
invalid: !!e.error,
|
|
@@ -1070,18 +1070,18 @@ const Sa = {
|
|
|
1070
1070
|
key: 2,
|
|
1071
1071
|
id: r.value,
|
|
1072
1072
|
class: "emoo-field__help"
|
|
1073
|
-
}, k(e.help), 9,
|
|
1073
|
+
}, k(e.help), 9, Pa)) : S("", !0),
|
|
1074
1074
|
e.error && e.mode === "edit" ? (t(), s("p", {
|
|
1075
1075
|
key: 3,
|
|
1076
1076
|
id: i.value,
|
|
1077
1077
|
class: "emoo-field__error",
|
|
1078
1078
|
role: "alert",
|
|
1079
1079
|
"data-testid": e.testid ? `${e.testid}-error` : void 0
|
|
1080
|
-
}, k(e.error), 9,
|
|
1080
|
+
}, k(e.error), 9, Aa)) : S("", !0)
|
|
1081
1081
|
])
|
|
1082
1082
|
], 2)) : S("", !0);
|
|
1083
1083
|
}
|
|
1084
|
-
}),
|
|
1084
|
+
}), Un = /* @__PURE__ */ Y(La, [["__scopeId", "data-v-1b6ea0e7"]]), Oa = ["aria-label"], Ua = /* @__PURE__ */ F({
|
|
1085
1085
|
__name: "EmooFieldGrid",
|
|
1086
1086
|
props: {
|
|
1087
1087
|
ariaLabel: {},
|
|
@@ -1094,9 +1094,9 @@ const Sa = {
|
|
|
1094
1094
|
"aria-label": e.ariaLabel
|
|
1095
1095
|
}, [
|
|
1096
1096
|
A(n.$slots, "default", {}, void 0, !0)
|
|
1097
|
-
], 10,
|
|
1097
|
+
], 10, Oa));
|
|
1098
1098
|
}
|
|
1099
|
-
}),
|
|
1099
|
+
}), Hn = /* @__PURE__ */ Y(Ua, [["__scopeId", "data-v-12f1e7e0"]]), Ha = /* @__PURE__ */ F({
|
|
1100
1100
|
__name: "EmooGhostButton",
|
|
1101
1101
|
props: {
|
|
1102
1102
|
pill: { type: Boolean },
|
|
@@ -1110,7 +1110,7 @@ const Sa = {
|
|
|
1110
1110
|
A(n.$slots, "default", {}, void 0, !0)
|
|
1111
1111
|
], 2));
|
|
1112
1112
|
}
|
|
1113
|
-
}),
|
|
1113
|
+
}), Kn = /* @__PURE__ */ Y(Ha, [["__scopeId", "data-v-d0346949"]]), Ka = /* @__PURE__ */ F({
|
|
1114
1114
|
__name: "EmooGroupLabel",
|
|
1115
1115
|
props: {
|
|
1116
1116
|
title: {},
|
|
@@ -1121,13 +1121,13 @@ const Sa = {
|
|
|
1121
1121
|
return (o, l) => (t(), s("p", {
|
|
1122
1122
|
class: W(["emoo-group-label", { "is-first": e.first }])
|
|
1123
1123
|
}, [
|
|
1124
|
-
|
|
1124
|
+
u("span", null, k(a(n)(e.title)), 1)
|
|
1125
1125
|
], 2));
|
|
1126
1126
|
}
|
|
1127
|
-
}),
|
|
1127
|
+
}), Wn = /* @__PURE__ */ Y(Ka, [["__scopeId", "data-v-0135d501"]]), Wa = { class: "emoo-skel__lines" }, Na = { class: "emoo-skel__head" }, Fa = {
|
|
1128
1128
|
key: 4,
|
|
1129
1129
|
class: "emoo-skel__pill-row"
|
|
1130
|
-
},
|
|
1130
|
+
}, qa = { class: "emoo-skel__detail" }, ja = { class: "emoo-skel__lines" }, Ga = /* @__PURE__ */ F({
|
|
1131
1131
|
__name: "EmooSkeleton",
|
|
1132
1132
|
props: {
|
|
1133
1133
|
variant: { default: "lines" },
|
|
@@ -1144,53 +1144,53 @@ const Sa = {
|
|
|
1144
1144
|
class: W(["emoo-skel", `is-${e.variant}`]),
|
|
1145
1145
|
"aria-hidden": "true"
|
|
1146
1146
|
}, [
|
|
1147
|
-
e.variant === "lines" ? (t(!0), s(D, { key: 0 },
|
|
1147
|
+
e.variant === "lines" ? (t(!0), s(D, { key: 0 }, Z(e.lines, (l) => (t(), s("span", {
|
|
1148
1148
|
key: l,
|
|
1149
1149
|
class: W(["emoo-skel__bone emoo-skel__line", { "is-tail": l === e.lines }])
|
|
1150
|
-
}, null, 2))), 128)) : e.variant === "list" ? (t(!0), s(D, { key: 1 },
|
|
1150
|
+
}, null, 2))), 128)) : e.variant === "list" ? (t(!0), s(D, { key: 1 }, Z(e.rows, (l) => (t(), s("div", {
|
|
1151
1151
|
key: l,
|
|
1152
1152
|
class: "emoo-skel__item"
|
|
1153
1153
|
}, [
|
|
1154
|
-
o[0] || (o[0] =
|
|
1155
|
-
|
|
1156
|
-
|
|
1154
|
+
o[0] || (o[0] = u("span", { class: "emoo-skel__bone emoo-skel__avatar" }, null, -1)),
|
|
1155
|
+
u("span", Wa, [
|
|
1156
|
+
u("span", {
|
|
1157
1157
|
class: "emoo-skel__bone emoo-skel__line",
|
|
1158
1158
|
style: pe({ width: `${52 - l * 8}%` })
|
|
1159
1159
|
}, null, 4),
|
|
1160
|
-
|
|
1160
|
+
u("span", {
|
|
1161
1161
|
class: "emoo-skel__bone emoo-skel__line is-thin",
|
|
1162
1162
|
style: pe({ width: `${78 - l * 10}%` })
|
|
1163
1163
|
}, null, 4)
|
|
1164
1164
|
])
|
|
1165
1165
|
]))), 128)) : e.variant === "table" ? (t(), s(D, { key: 2 }, [
|
|
1166
|
-
|
|
1167
|
-
(t(), s(D, null,
|
|
1166
|
+
u("span", Na, [
|
|
1167
|
+
(t(), s(D, null, Z(["18%", "26%", "14%", "22%"], (l, r) => u("span", {
|
|
1168
1168
|
key: r,
|
|
1169
1169
|
class: "emoo-skel__bone emoo-skel__cell",
|
|
1170
1170
|
style: pe({ width: l })
|
|
1171
1171
|
}, null, 4)), 64))
|
|
1172
1172
|
]),
|
|
1173
|
-
(t(!0), s(D, null,
|
|
1173
|
+
(t(!0), s(D, null, Z(e.rows, (l) => (t(), s("span", {
|
|
1174
1174
|
key: l,
|
|
1175
1175
|
class: "emoo-skel__row"
|
|
1176
1176
|
}, [
|
|
1177
|
-
(t(), s(D, null,
|
|
1177
|
+
(t(), s(D, null, Z(["18%", "26%", "14%", "22%"], (r, i) => u("span", {
|
|
1178
1178
|
key: i,
|
|
1179
1179
|
class: "emoo-skel__bone emoo-skel__cell",
|
|
1180
1180
|
style: pe({ width: r })
|
|
1181
1181
|
}, null, 4)), 64))
|
|
1182
1182
|
]))), 128))
|
|
1183
|
-
], 64)) : e.variant === "tiles" ? (t(!0), s(D, { key: 3 },
|
|
1183
|
+
], 64)) : e.variant === "tiles" ? (t(!0), s(D, { key: 3 }, Z(e.tiles, (l) => (t(), s("div", {
|
|
1184
1184
|
key: l,
|
|
1185
1185
|
class: "emoo-skel__tile"
|
|
1186
1186
|
}, [...o[1] || (o[1] = [
|
|
1187
|
-
|
|
1187
|
+
u("span", {
|
|
1188
1188
|
class: "emoo-skel__bone emoo-skel__line is-thin",
|
|
1189
1189
|
style: { width: "56%" }
|
|
1190
1190
|
}, null, -1),
|
|
1191
|
-
|
|
1192
|
-
])]))), 128)) : e.variant === "pills" ? (t(), s("div",
|
|
1193
|
-
(t(!0), s(D, null,
|
|
1191
|
+
u("span", { class: "emoo-skel__bone emoo-skel__tile-value" }, null, -1)
|
|
1192
|
+
])]))), 128)) : e.variant === "pills" ? (t(), s("div", Fa, [
|
|
1193
|
+
(t(!0), s(D, null, Z(e.pills, (l) => (t(), s("span", {
|
|
1194
1194
|
key: l,
|
|
1195
1195
|
class: "emoo-skel__bone emoo-skel__pill"
|
|
1196
1196
|
}))), 128))
|
|
@@ -1199,34 +1199,34 @@ const Sa = {
|
|
|
1199
1199
|
class: "emoo-skel__grid",
|
|
1200
1200
|
style: pe({ gridTemplateColumns: `repeat(${e.cols}, 1fr)` })
|
|
1201
1201
|
}, [
|
|
1202
|
-
(t(!0), s(D, null,
|
|
1202
|
+
(t(!0), s(D, null, Z(e.cells, (l) => (t(), s("div", {
|
|
1203
1203
|
key: l,
|
|
1204
1204
|
class: "emoo-skel__cell"
|
|
1205
1205
|
}, [...o[2] || (o[2] = [
|
|
1206
|
-
|
|
1207
|
-
|
|
1206
|
+
u("span", { class: "emoo-skel__bone emoo-skel__cell-icon" }, null, -1),
|
|
1207
|
+
u("span", { class: "emoo-skel__bone emoo-skel__cell-label" }, null, -1)
|
|
1208
1208
|
])]))), 128))
|
|
1209
1209
|
], 4)) : e.variant === "chart" ? (t(), s(D, { key: 6 }, [
|
|
1210
|
-
o[3] || (o[3] =
|
|
1211
|
-
|
|
1210
|
+
o[3] || (o[3] = u("span", { class: "emoo-skel__bone emoo-skel__title" }, null, -1)),
|
|
1211
|
+
u("span", {
|
|
1212
1212
|
class: "emoo-skel__bone emoo-skel__chart",
|
|
1213
1213
|
style: pe({ height: `${e.height}px` })
|
|
1214
1214
|
}, null, 4)
|
|
1215
1215
|
], 64)) : (t(), s(D, { key: 7 }, [
|
|
1216
|
-
o[5] || (o[5] =
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
(t(!0), s(D, null,
|
|
1216
|
+
o[5] || (o[5] = u("span", { class: "emoo-skel__bone emoo-skel__title" }, null, -1)),
|
|
1217
|
+
u("span", qa, [
|
|
1218
|
+
u("span", ja, [
|
|
1219
|
+
(t(!0), s(D, null, Z(e.lines, (l) => (t(), s("span", {
|
|
1220
1220
|
key: l,
|
|
1221
1221
|
class: W(["emoo-skel__bone emoo-skel__line", { "is-tail": l === e.lines }])
|
|
1222
1222
|
}, null, 2))), 128))
|
|
1223
1223
|
]),
|
|
1224
|
-
o[4] || (o[4] =
|
|
1224
|
+
o[4] || (o[4] = u("span", { class: "emoo-skel__bone emoo-skel__media" }, null, -1))
|
|
1225
1225
|
])
|
|
1226
1226
|
], 64))
|
|
1227
1227
|
], 2));
|
|
1228
1228
|
}
|
|
1229
|
-
}),
|
|
1229
|
+
}), Xa = /* @__PURE__ */ Y(Ga, [["__scopeId", "data-v-9e0a33de"]]), Za = ["aria-label"], Ja = /* @__PURE__ */ F({
|
|
1230
1230
|
__name: "EmooSpinner",
|
|
1231
1231
|
props: {
|
|
1232
1232
|
size: { default: 20 },
|
|
@@ -1239,12 +1239,12 @@ const Sa = {
|
|
|
1239
1239
|
role: "status",
|
|
1240
1240
|
"aria-label": e.label
|
|
1241
1241
|
}, [...o[0] || (o[0] = [
|
|
1242
|
-
|
|
1242
|
+
u("svg", {
|
|
1243
1243
|
viewBox: "0 0 20 20",
|
|
1244
1244
|
fill: "none",
|
|
1245
1245
|
"aria-hidden": "true"
|
|
1246
1246
|
}, [
|
|
1247
|
-
|
|
1247
|
+
u("circle", {
|
|
1248
1248
|
class: "emoo-spinner__arc",
|
|
1249
1249
|
cx: "10",
|
|
1250
1250
|
cy: "10",
|
|
@@ -1252,22 +1252,22 @@ const Sa = {
|
|
|
1252
1252
|
"stroke-dasharray": "37.7 12.57"
|
|
1253
1253
|
})
|
|
1254
1254
|
], -1)
|
|
1255
|
-
])], 12,
|
|
1255
|
+
])], 12, Za));
|
|
1256
1256
|
}
|
|
1257
|
-
}), Kt = /* @__PURE__ */
|
|
1257
|
+
}), Kt = /* @__PURE__ */ Y(Ja, [["__scopeId", "data-v-d168f9f3"]]), Ya = {
|
|
1258
1258
|
class: "emoo-history-list",
|
|
1259
1259
|
"data-testid": "emoo-history-list"
|
|
1260
|
-
},
|
|
1260
|
+
}, Qa = {
|
|
1261
1261
|
key: 0,
|
|
1262
1262
|
class: "history-float"
|
|
1263
|
-
},
|
|
1263
|
+
}, el = ["data-item-id", "tabindex", "onClick", "onFocus", "onKeydown"], tl = { class: "history-name" }, ol = { key: 0 }, al = {
|
|
1264
1264
|
key: 1,
|
|
1265
1265
|
class: "status-indicator",
|
|
1266
1266
|
"data-testid": "chat-status-indicator"
|
|
1267
|
-
},
|
|
1267
|
+
}, ll = {
|
|
1268
1268
|
key: 1,
|
|
1269
1269
|
class: "status-dot"
|
|
1270
|
-
},
|
|
1270
|
+
}, sl = /* @__PURE__ */ F({
|
|
1271
1271
|
__name: "EmooHistoryList",
|
|
1272
1272
|
props: {
|
|
1273
1273
|
groups: {},
|
|
@@ -1285,64 +1285,64 @@ const Sa = {
|
|
|
1285
1285
|
},
|
|
1286
1286
|
emits: ["update:keyword", "update:selectedIds", "select", "load-more", "delete", "rename"],
|
|
1287
1287
|
setup(e, { expose: n, emit: o }) {
|
|
1288
|
-
const l = e, r = o, { t: i } = me(), p = V(() => l.searchPlaceholder ?? i("common.emooHistory.searchPlaceholder")), v = V(() => l.selectLabel ?? i("common.emooHistory.select")), g = V(() => l.emptyTitle ?? i("common.emooHistory.empty")),
|
|
1288
|
+
const l = e, r = o, { t: i } = me(), p = V(() => l.searchPlaceholder ?? i("common.emooHistory.searchPlaceholder")), v = V(() => l.selectLabel ?? i("common.emooHistory.select")), g = V(() => l.emptyTitle ?? i("common.emooHistory.empty")), c = V(() => l.noMatchTitle ?? i("common.emooHistory.noMatch")), b = V(() => l.groups.some((M) => M.items.length > 0)), _ = U(!1), y = U(!1), R = U(null), E = async () => {
|
|
1289
1289
|
_.value = !0, await ke(), R.value?.focus();
|
|
1290
1290
|
}, $ = () => {
|
|
1291
1291
|
!l.keyword && !y.value && (_.value = !1);
|
|
1292
1292
|
}, I = () => {
|
|
1293
1293
|
y.value = !1, $();
|
|
1294
|
-
}, z = U(null), j = U(null), X = V(() => l.groups.flatMap((
|
|
1295
|
-
|
|
1296
|
-
}, d = () => ee(X.value[0]?.id), T = (
|
|
1297
|
-
if (
|
|
1294
|
+
}, z = U(null), j = U(null), X = V(() => l.groups.flatMap((M) => M.items)), ie = (M) => M.id === (j.value ?? X.value[0]?.id) ? 0 : -1, ee = (M) => {
|
|
1295
|
+
M !== void 0 && z.value?.querySelector(`.history-item[data-item-id="${M}"]`)?.focus();
|
|
1296
|
+
}, d = () => ee(X.value[0]?.id), T = (M, O) => {
|
|
1297
|
+
if (M.target !== M.currentTarget) return;
|
|
1298
1298
|
const G = X.value, oe = G.findIndex((re) => re.id === O.id);
|
|
1299
|
-
if (
|
|
1300
|
-
|
|
1301
|
-
else if (
|
|
1302
|
-
|
|
1303
|
-
else if (
|
|
1304
|
-
|
|
1305
|
-
else if (
|
|
1299
|
+
if (M.key === "ArrowDown")
|
|
1300
|
+
M.preventDefault(), oe < G.length - 1 && ee(G[oe + 1].id);
|
|
1301
|
+
else if (M.key === "ArrowUp")
|
|
1302
|
+
M.preventDefault(), oe > 0 && ee(G[oe - 1].id);
|
|
1303
|
+
else if (M.key === "Enter")
|
|
1304
|
+
M.preventDefault(), L(O);
|
|
1305
|
+
else if (M.key === "Backspace" || M.key === "Delete") {
|
|
1306
1306
|
if (se.value || H.value || !ae) return;
|
|
1307
|
-
|
|
1307
|
+
M.preventDefault(), r("delete", O);
|
|
1308
1308
|
}
|
|
1309
|
-
},
|
|
1310
|
-
if ((
|
|
1309
|
+
}, B = (M) => {
|
|
1310
|
+
if ((M.metaKey || M.ctrlKey) && M.key.toLowerCase() === "k") {
|
|
1311
1311
|
if (!l.anyRecord) return;
|
|
1312
|
-
|
|
1312
|
+
M.preventDefault(), E();
|
|
1313
1313
|
}
|
|
1314
|
-
}, se = U(null), ne = U(""), ye = U(!1), q = (
|
|
1315
|
-
se.value =
|
|
1314
|
+
}, se = U(null), ne = U(""), ye = U(!1), q = (M) => {
|
|
1315
|
+
se.value = M.id, ne.value = M.title;
|
|
1316
1316
|
}, de = () => {
|
|
1317
1317
|
se.value = null, ne.value = "";
|
|
1318
1318
|
}, ce = () => {
|
|
1319
1319
|
se.value !== null && r("rename", { id: se.value, title: ne.value });
|
|
1320
|
-
}, H = U(!1), te = (
|
|
1320
|
+
}, H = U(!1), te = (M, O) => {
|
|
1321
1321
|
r(
|
|
1322
1322
|
"update:selectedIds",
|
|
1323
|
-
O ? [...l.selectedIds,
|
|
1323
|
+
O ? [...l.selectedIds, M] : l.selectedIds.filter((G) => G !== M)
|
|
1324
1324
|
);
|
|
1325
1325
|
}, N = () => {
|
|
1326
1326
|
H.value = !H.value, H.value ? de() : r("update:selectedIds", []);
|
|
1327
1327
|
}, C = () => {
|
|
1328
1328
|
H.value && (H.value = !1, r("update:selectedIds", []));
|
|
1329
|
-
}, L = (
|
|
1329
|
+
}, L = (M) => {
|
|
1330
1330
|
if (H.value) {
|
|
1331
|
-
te(
|
|
1331
|
+
te(M.id, !l.selectedIds.includes(M.id));
|
|
1332
1332
|
return;
|
|
1333
1333
|
}
|
|
1334
|
-
r("select",
|
|
1335
|
-
}, Q = (
|
|
1336
|
-
const O =
|
|
1334
|
+
r("select", M);
|
|
1335
|
+
}, Q = (M) => {
|
|
1336
|
+
const O = M.target;
|
|
1337
1337
|
O.scrollTop + O.clientHeight >= O.scrollHeight - 60 && r("load-more");
|
|
1338
1338
|
}, ae = !!Et()["row-action"];
|
|
1339
|
-
return
|
|
1340
|
-
window.addEventListener("keydown",
|
|
1339
|
+
return Ze(() => {
|
|
1340
|
+
window.addEventListener("keydown", B);
|
|
1341
1341
|
}), Ct(() => {
|
|
1342
|
-
window.removeEventListener("keydown",
|
|
1343
|
-
}), n({ startRename: q, cancelRename: de, exitSelectMode: C, focusSearch: E }), (
|
|
1344
|
-
e.anyRecord ? (t(), s("div",
|
|
1345
|
-
|
|
1342
|
+
window.removeEventListener("keydown", B);
|
|
1343
|
+
}), n({ startRename: q, cancelRename: de, exitSelectMode: C, focusSearch: E }), (M, O) => (t(), s("div", Ya, [
|
|
1344
|
+
e.anyRecord ? (t(), s("div", Qa, [
|
|
1345
|
+
u("div", {
|
|
1346
1346
|
class: W(["search-area", { expanded: _.value }]),
|
|
1347
1347
|
onMouseenter: O[2] || (O[2] = (G) => _.value = !0),
|
|
1348
1348
|
onMouseleave: $,
|
|
@@ -1358,7 +1358,7 @@ const Sa = {
|
|
|
1358
1358
|
"data-testid": "chat-history-search-toggle"
|
|
1359
1359
|
}, {
|
|
1360
1360
|
default: w(() => [
|
|
1361
|
-
P(a(
|
|
1361
|
+
P(a(bo), { size: 14 })
|
|
1362
1362
|
]),
|
|
1363
1363
|
_: 1
|
|
1364
1364
|
}, 8, ["aria-label"])
|
|
@@ -1391,11 +1391,11 @@ const Sa = {
|
|
|
1391
1391
|
onClick: N
|
|
1392
1392
|
}, {
|
|
1393
1393
|
default: w(() => [
|
|
1394
|
-
|
|
1394
|
+
J(k(a(i)("common.emooHistory.cancel")), 1)
|
|
1395
1395
|
]),
|
|
1396
1396
|
_: 1
|
|
1397
1397
|
}, 8, ["disabled"]),
|
|
1398
|
-
A(
|
|
1398
|
+
A(M.$slots, "batch-actions", { selectedIds: e.selectedIds }, void 0, !0)
|
|
1399
1399
|
], 64)) : (t(), x(he, {
|
|
1400
1400
|
key: 0,
|
|
1401
1401
|
content: v.value
|
|
@@ -1411,7 +1411,7 @@ const Sa = {
|
|
|
1411
1411
|
onClick: N
|
|
1412
1412
|
}, {
|
|
1413
1413
|
default: w(() => [
|
|
1414
|
-
P(a(
|
|
1414
|
+
P(a(go), { size: 14 })
|
|
1415
1415
|
]),
|
|
1416
1416
|
_: 1
|
|
1417
1417
|
}, 8, ["aria-label", "disabled"])
|
|
@@ -1426,28 +1426,28 @@ const Sa = {
|
|
|
1426
1426
|
class: "history-scroll",
|
|
1427
1427
|
onScroll: Q
|
|
1428
1428
|
}, [
|
|
1429
|
-
e.loading && !b.value ? (t(), x(
|
|
1429
|
+
e.loading && !b.value ? (t(), x(Xa, {
|
|
1430
1430
|
key: 0,
|
|
1431
1431
|
variant: "lines",
|
|
1432
1432
|
lines: 4,
|
|
1433
1433
|
class: "history-skel"
|
|
1434
|
-
})) : b.value ? (t(!0), s(D, { key: 1 },
|
|
1434
|
+
})) : b.value ? (t(!0), s(D, { key: 1 }, Z(e.groups, (G) => (t(), s("div", {
|
|
1435
1435
|
key: G.key
|
|
1436
1436
|
}, [
|
|
1437
|
-
|
|
1437
|
+
u("div", {
|
|
1438
1438
|
class: W(["group-title", { "group-title--dim": G.dim }])
|
|
1439
1439
|
}, [
|
|
1440
|
-
O[11] || (O[11] =
|
|
1441
|
-
|
|
1440
|
+
O[11] || (O[11] = u("span", { class: "group-dot" }, null, -1)),
|
|
1441
|
+
J(" " + k(a(i)(G.label)), 1)
|
|
1442
1442
|
], 2),
|
|
1443
|
-
(t(!0), s(D, null,
|
|
1443
|
+
(t(!0), s(D, null, Z(G.items, (oe) => (t(), x(he, {
|
|
1444
1444
|
key: oe.id,
|
|
1445
1445
|
content: oe.tooltip,
|
|
1446
1446
|
disabled: !oe.tooltip,
|
|
1447
1447
|
placement: "right"
|
|
1448
1448
|
}, {
|
|
1449
1449
|
default: w(() => [
|
|
1450
|
-
|
|
1450
|
+
u("div", {
|
|
1451
1451
|
class: W(["history-item", { active: oe.id === e.activeId }]),
|
|
1452
1452
|
"data-item-id": oe.id,
|
|
1453
1453
|
tabindex: ie(oe),
|
|
@@ -1464,8 +1464,8 @@ const Sa = {
|
|
|
1464
1464
|
}, ["stop"])),
|
|
1465
1465
|
"onUpdate:modelValue": (re) => te(oe.id, !!re)
|
|
1466
1466
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : S("", !0),
|
|
1467
|
-
|
|
1468
|
-
se.value !== oe.id ? (t(), s("span",
|
|
1467
|
+
u("span", tl, [
|
|
1468
|
+
se.value !== oe.id ? (t(), s("span", ol, k(oe.title), 1)) : (t(), x(a(ot), {
|
|
1469
1469
|
key: 1,
|
|
1470
1470
|
modelValue: ne.value,
|
|
1471
1471
|
"onUpdate:modelValue": O[4] || (O[4] = (re) => ne.value = re),
|
|
@@ -1479,12 +1479,12 @@ const Sa = {
|
|
|
1479
1479
|
onBlur: le(ce, ["stop"])
|
|
1480
1480
|
}, null, 8, ["modelValue"]))
|
|
1481
1481
|
]),
|
|
1482
|
-
se.value !== oe.id && oe.id !== e.activeId && oe.status ? (t(), s("span",
|
|
1482
|
+
se.value !== oe.id && oe.id !== e.activeId && oe.status ? (t(), s("span", al, [
|
|
1483
1483
|
oe.status === "generating" ? (t(), x(Kt, {
|
|
1484
1484
|
key: 0,
|
|
1485
1485
|
size: 14,
|
|
1486
1486
|
label: a(i)("common.loading")
|
|
1487
|
-
}, null, 8, ["label"])) : (t(), s("span",
|
|
1487
|
+
}, null, 8, ["label"])) : (t(), s("span", ll))
|
|
1488
1488
|
])) : S("", !0),
|
|
1489
1489
|
se.value !== oe.id && !H.value && ae ? (t(), x(a(nt), {
|
|
1490
1490
|
key: 2,
|
|
@@ -1498,9 +1498,9 @@ const Sa = {
|
|
|
1498
1498
|
}, ["stop"]))
|
|
1499
1499
|
}, {
|
|
1500
1500
|
dropdown: w(() => [
|
|
1501
|
-
P(a(
|
|
1501
|
+
P(a(lo), null, {
|
|
1502
1502
|
default: w(() => [
|
|
1503
|
-
A(
|
|
1503
|
+
A(M.$slots, "row-action", { item: oe }, void 0, !0)
|
|
1504
1504
|
]),
|
|
1505
1505
|
_: 2
|
|
1506
1506
|
}, 1024)
|
|
@@ -1514,41 +1514,41 @@ const Sa = {
|
|
|
1514
1514
|
}, ["stop"]))
|
|
1515
1515
|
}, {
|
|
1516
1516
|
default: w(() => [
|
|
1517
|
-
P(a(
|
|
1517
|
+
P(a(Bt), { class: "ic" })
|
|
1518
1518
|
]),
|
|
1519
1519
|
_: 1
|
|
1520
1520
|
})
|
|
1521
1521
|
]),
|
|
1522
1522
|
_: 2
|
|
1523
1523
|
}, 1024)) : S("", !0)
|
|
1524
|
-
], 42,
|
|
1524
|
+
], 42, el)
|
|
1525
1525
|
]),
|
|
1526
1526
|
_: 2
|
|
1527
1527
|
}, 1032, ["content", "disabled"]))), 128))
|
|
1528
|
-
]))), 128)) : (t(), x(
|
|
1528
|
+
]))), 128)) : (t(), x(Va, {
|
|
1529
1529
|
key: 2,
|
|
1530
1530
|
variant: "mini",
|
|
1531
|
-
title: e.keyword.trim() ?
|
|
1531
|
+
title: e.keyword.trim() ? c.value : g.value
|
|
1532
1532
|
}, null, 8, ["title"]))
|
|
1533
1533
|
], 32)), [
|
|
1534
|
-
[a(
|
|
1534
|
+
[a(so), e.loading && b.value]
|
|
1535
1535
|
])
|
|
1536
1536
|
]));
|
|
1537
1537
|
}
|
|
1538
|
-
}),
|
|
1538
|
+
}), Nn = /* @__PURE__ */ Y(sl, [["__scopeId", "data-v-862f7ee9"]]), nl = {
|
|
1539
1539
|
class: "emoo-mrsel__tabs",
|
|
1540
1540
|
role: "tablist"
|
|
1541
|
-
},
|
|
1541
|
+
}, il = ["aria-selected", "onClick"], rl = { class: "emoo-mrsel__count" }, dl = {
|
|
1542
1542
|
class: "emoo-sel-remote-error",
|
|
1543
1543
|
role: "alert",
|
|
1544
1544
|
"data-testid": "remote-error"
|
|
1545
|
-
},
|
|
1545
|
+
}, ul = { class: "emoo-mrsel__opt" }, cl = ["src"], ml = { class: "emoo-mrsel__name" }, vl = {
|
|
1546
1546
|
key: 0,
|
|
1547
1547
|
class: "emoo-mrsel__dept"
|
|
1548
|
-
},
|
|
1548
|
+
}, fl = { class: "emoo-mrsel__opt" }, hl = ["src"], pl = { class: "emoo-mrsel__col" }, yl = { class: "emoo-mrsel__name" }, bl = {
|
|
1549
1549
|
key: 0,
|
|
1550
1550
|
class: "emoo-mrsel__desc"
|
|
1551
|
-
},
|
|
1551
|
+
}, gl = /* @__PURE__ */ F({
|
|
1552
1552
|
__name: "EmooMemberRoleSelect",
|
|
1553
1553
|
props: {
|
|
1554
1554
|
modelValue: {},
|
|
@@ -1566,13 +1566,13 @@ const Sa = {
|
|
|
1566
1566
|
const o = e, l = n, { t: r } = me(), i = U("member"), p = V(() => o.modelValue?.memberIds ?? []), v = V(() => o.modelValue?.roleIds ?? []), g = V(() => [
|
|
1567
1567
|
{ key: "member", label: r("common.emooSelect.memberTab"), count: p.value.length },
|
|
1568
1568
|
{ key: "role", label: r("common.emooSelect.roleTab"), count: v.value.length }
|
|
1569
|
-
]),
|
|
1569
|
+
]), c = V(() => 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 : _, R = V(() => `${b.popperClass} ${_.popperClass}`), E = V(() => i.value === "member" ? p.value : v.value), $ = Be(
|
|
1570
1570
|
() => p.value,
|
|
1571
|
-
() =>
|
|
1571
|
+
() => c.value ? b.items.value : o.members ?? [],
|
|
1572
1572
|
() => o.selectedMembers ?? []
|
|
1573
|
-
), I =
|
|
1573
|
+
), I = Be(
|
|
1574
1574
|
() => v.value,
|
|
1575
|
-
() =>
|
|
1575
|
+
() => c.value ? _.items.value : o.roles ?? [],
|
|
1576
1576
|
() => o.selectedRoles ?? []
|
|
1577
1577
|
), z = $.mergedOptions, j = I.mergedOptions, X = V(() => [
|
|
1578
1578
|
...$.selectedOptions.value,
|
|
@@ -1582,11 +1582,11 @@ const Sa = {
|
|
|
1582
1582
|
b.onVisibleChange(!1), _.onVisibleChange(!1);
|
|
1583
1583
|
return;
|
|
1584
1584
|
}
|
|
1585
|
-
|
|
1586
|
-
},
|
|
1587
|
-
|
|
1588
|
-
}, se = V(() =>
|
|
1589
|
-
i.value !== H && (i.value = H,
|
|
1585
|
+
c.value && y(i.value).onVisibleChange(!0);
|
|
1586
|
+
}, B = (H) => {
|
|
1587
|
+
c.value && y(i.value).search(H);
|
|
1588
|
+
}, se = V(() => c.value ? y(i.value).loading.value : !1), ne = V(() => c.value ? y(i.value).error.value : null), ye = () => y(i.value).retry(), q = (H) => {
|
|
1589
|
+
i.value !== H && (i.value = H, c.value && d.value && y(H).onVisibleChange(!0));
|
|
1590
1590
|
}, de = (H) => {
|
|
1591
1591
|
const te = Array.isArray(H) ? [...H] : H == null || H === "" ? [] : [H];
|
|
1592
1592
|
i.value === "member" ? $.remember(te) : I.remember(te), l(
|
|
@@ -1610,8 +1610,8 @@ const Sa = {
|
|
|
1610
1610
|
placeholder: e.placeholder || a(r)("common.emooSelect.memberRolePlaceholder"),
|
|
1611
1611
|
filterable: "",
|
|
1612
1612
|
"fit-input-width": "",
|
|
1613
|
-
remote:
|
|
1614
|
-
"remote-method":
|
|
1613
|
+
remote: c.value,
|
|
1614
|
+
"remote-method": B,
|
|
1615
1615
|
loading: se.value,
|
|
1616
1616
|
"popper-class": R.value,
|
|
1617
1617
|
"onUpdate:modelValue": de,
|
|
@@ -1626,28 +1626,28 @@ const Sa = {
|
|
|
1626
1626
|
}, null, 8, ["items", "max", "removable"])
|
|
1627
1627
|
]),
|
|
1628
1628
|
header: w(() => [
|
|
1629
|
-
|
|
1630
|
-
(t(!0), s(D, null,
|
|
1629
|
+
u("div", nl, [
|
|
1630
|
+
(t(!0), s(D, null, Z(g.value, (N) => (t(), s("button", {
|
|
1631
1631
|
key: N.key,
|
|
1632
1632
|
type: "button",
|
|
1633
1633
|
class: W(["emoo-mrsel__tab", { "is-active": i.value === N.key }]),
|
|
1634
1634
|
"aria-selected": i.value === N.key,
|
|
1635
1635
|
onClick: (C) => q(N.key)
|
|
1636
1636
|
}, [
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
], 10,
|
|
1637
|
+
J(k(N.label) + " ", 1),
|
|
1638
|
+
u("span", rl, k(N.count), 1)
|
|
1639
|
+
], 10, il))), 128))
|
|
1640
1640
|
])
|
|
1641
1641
|
]),
|
|
1642
1642
|
default: w(() => [
|
|
1643
|
-
i.value === "member" ? (t(!0), s(D, { key: 0 },
|
|
1643
|
+
i.value === "member" ? (t(!0), s(D, { key: 0 }, Z(a(z), (N) => (t(), x(a(ze), {
|
|
1644
1644
|
key: N.id,
|
|
1645
1645
|
label: N.name,
|
|
1646
1646
|
value: N.id
|
|
1647
1647
|
}, {
|
|
1648
1648
|
default: w(() => [
|
|
1649
|
-
|
|
1650
|
-
|
|
1649
|
+
u("span", ul, [
|
|
1650
|
+
u("span", {
|
|
1651
1651
|
class: "emoo-mrsel__avatar",
|
|
1652
1652
|
style: pe({ "--tint": N.color || "var(--el-color-primary)" })
|
|
1653
1653
|
}, [
|
|
@@ -1656,23 +1656,23 @@ const Sa = {
|
|
|
1656
1656
|
src: N.avatar,
|
|
1657
1657
|
alt: "",
|
|
1658
1658
|
class: "emoo-mrsel__img"
|
|
1659
|
-
}, null, 8,
|
|
1660
|
-
|
|
1659
|
+
}, null, 8, cl)) : (t(), s(D, { key: 1 }, [
|
|
1660
|
+
J(k(N.name[0]), 1)
|
|
1661
1661
|
], 64))
|
|
1662
1662
|
], 4),
|
|
1663
|
-
|
|
1664
|
-
N.dept ? (t(), s("span",
|
|
1663
|
+
u("span", ml, k(N.name), 1),
|
|
1664
|
+
N.dept ? (t(), s("span", vl, k(N.dept), 1)) : S("", !0)
|
|
1665
1665
|
])
|
|
1666
1666
|
]),
|
|
1667
1667
|
_: 2
|
|
1668
|
-
}, 1032, ["label", "value"]))), 128)) : (t(!0), s(D, { key: 1 },
|
|
1668
|
+
}, 1032, ["label", "value"]))), 128)) : (t(!0), s(D, { key: 1 }, Z(a(j), (N) => (t(), x(a(ze), {
|
|
1669
1669
|
key: N.id,
|
|
1670
1670
|
label: N.name,
|
|
1671
1671
|
value: N.id
|
|
1672
1672
|
}, {
|
|
1673
1673
|
default: w(() => [
|
|
1674
|
-
|
|
1675
|
-
|
|
1674
|
+
u("span", fl, [
|
|
1675
|
+
u("span", {
|
|
1676
1676
|
class: "emoo-mrsel__avatar is-square",
|
|
1677
1677
|
style: pe({ "--tint": N.color || "var(--el-color-primary)" })
|
|
1678
1678
|
}, [
|
|
@@ -1681,13 +1681,13 @@ const Sa = {
|
|
|
1681
1681
|
src: N.avatar,
|
|
1682
1682
|
alt: "",
|
|
1683
1683
|
class: "emoo-mrsel__img"
|
|
1684
|
-
}, null, 8,
|
|
1685
|
-
|
|
1684
|
+
}, null, 8, hl)) : (t(), s(D, { key: 1 }, [
|
|
1685
|
+
J(k(N.name[0]), 1)
|
|
1686
1686
|
], 64))
|
|
1687
1687
|
], 4),
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
N.desc ? (t(), s("span",
|
|
1688
|
+
u("span", pl, [
|
|
1689
|
+
u("span", yl, k(N.name), 1),
|
|
1690
|
+
N.desc ? (t(), s("span", bl, k(N.desc), 1)) : S("", !0)
|
|
1691
1691
|
])
|
|
1692
1692
|
])
|
|
1693
1693
|
]),
|
|
@@ -1699,9 +1699,9 @@ const Sa = {
|
|
|
1699
1699
|
ne.value ? {
|
|
1700
1700
|
name: "footer",
|
|
1701
1701
|
fn: w(() => [
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1702
|
+
u("div", dl, [
|
|
1703
|
+
u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
|
|
1704
|
+
u("button", {
|
|
1705
1705
|
type: "button",
|
|
1706
1706
|
"data-testid": "remote-retry",
|
|
1707
1707
|
onClick: te[0] || (te[0] = (N) => ye())
|
|
@@ -1712,14 +1712,14 @@ const Sa = {
|
|
|
1712
1712
|
} : void 0
|
|
1713
1713
|
]), 1032, ["model-value", "placeholder", "remote", "loading", "popper-class"]));
|
|
1714
1714
|
}
|
|
1715
|
-
}),
|
|
1715
|
+
}), Fn = /* @__PURE__ */ Y(gl, [["__scopeId", "data-v-ff057c7b"]]), kl = { class: "emoo-msel__opt" }, $l = ["src"], _l = { class: "emoo-msel__name" }, wl = {
|
|
1716
1716
|
key: 0,
|
|
1717
1717
|
class: "emoo-msel__dept"
|
|
1718
|
-
},
|
|
1718
|
+
}, Sl = {
|
|
1719
1719
|
class: "emoo-sel-remote-error",
|
|
1720
1720
|
role: "alert",
|
|
1721
1721
|
"data-testid": "remote-error"
|
|
1722
|
-
},
|
|
1722
|
+
}, Cl = /* @__PURE__ */ F({
|
|
1723
1723
|
__name: "EmooMemberSelect",
|
|
1724
1724
|
props: {
|
|
1725
1725
|
modelValue: {},
|
|
@@ -1733,7 +1733,7 @@ const Sa = {
|
|
|
1733
1733
|
},
|
|
1734
1734
|
emits: ["update:modelValue"],
|
|
1735
1735
|
setup(e, { emit: n }) {
|
|
1736
|
-
const o = e, l = n, { t: r } = me(), i = V(() => o.source !== void 0), { items: p, loading: v, error: g, retry:
|
|
1736
|
+
const o = e, l = n, { t: r } = me(), i = V(() => o.source !== void 0), { items: p, loading: v, error: g, retry: c, search: b, onVisibleChange: _, popperClass: y } = Me(() => o.source, "emoo-msel-popper"), { mergedOptions: R, selectedOptions: E, remember: $ } = Be(
|
|
1737
1737
|
() => o.modelValue,
|
|
1738
1738
|
() => i.value ? p.value : o.options ?? [],
|
|
1739
1739
|
() => o.selected ?? []
|
|
@@ -1760,14 +1760,14 @@ const Sa = {
|
|
|
1760
1760
|
onVisibleChange: a(_)
|
|
1761
1761
|
}, Se({
|
|
1762
1762
|
default: w(() => [
|
|
1763
|
-
(t(!0), s(D, null,
|
|
1763
|
+
(t(!0), s(D, null, Z(a(R), (T) => (t(), x(a(ze), {
|
|
1764
1764
|
key: T.id,
|
|
1765
1765
|
label: T.name,
|
|
1766
1766
|
value: T.id
|
|
1767
1767
|
}, {
|
|
1768
1768
|
default: w(() => [
|
|
1769
|
-
|
|
1770
|
-
|
|
1769
|
+
u("span", kl, [
|
|
1770
|
+
u("span", {
|
|
1771
1771
|
class: "emoo-msel__avatar",
|
|
1772
1772
|
style: pe({ "--tint": T.color || "var(--el-color-primary)" })
|
|
1773
1773
|
}, [
|
|
@@ -1776,12 +1776,12 @@ const Sa = {
|
|
|
1776
1776
|
src: T.avatar,
|
|
1777
1777
|
alt: "",
|
|
1778
1778
|
class: "emoo-msel__img"
|
|
1779
|
-
}, null, 8,
|
|
1780
|
-
|
|
1779
|
+
}, null, 8, $l)) : (t(), s(D, { key: 1 }, [
|
|
1780
|
+
J(k(T.name[0]), 1)
|
|
1781
1781
|
], 64))
|
|
1782
1782
|
], 4),
|
|
1783
|
-
|
|
1784
|
-
T.dept ? (t(), s("span",
|
|
1783
|
+
u("span", _l, k(T.name), 1),
|
|
1784
|
+
T.dept ? (t(), s("span", wl, k(T.dept), 1)) : S("", !0)
|
|
1785
1785
|
])
|
|
1786
1786
|
]),
|
|
1787
1787
|
_: 2
|
|
@@ -1813,13 +1813,13 @@ const Sa = {
|
|
|
1813
1813
|
a(g) ? {
|
|
1814
1814
|
name: "footer",
|
|
1815
1815
|
fn: w(() => [
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1816
|
+
u("div", Sl, [
|
|
1817
|
+
u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
|
|
1818
|
+
u("button", {
|
|
1819
1819
|
type: "button",
|
|
1820
1820
|
"data-testid": "remote-retry",
|
|
1821
1821
|
onClick: d[0] || (d[0] = //@ts-ignore
|
|
1822
|
-
(...T) => a(
|
|
1822
|
+
(...T) => a(c) && a(c)(...T))
|
|
1823
1823
|
}, k(a(r)("common.emooSelect.retry")), 1)
|
|
1824
1824
|
])
|
|
1825
1825
|
]),
|
|
@@ -1827,16 +1827,16 @@ const Sa = {
|
|
|
1827
1827
|
} : void 0
|
|
1828
1828
|
]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
|
|
1829
1829
|
}
|
|
1830
|
-
}),
|
|
1830
|
+
}), qn = /* @__PURE__ */ Y(Cl, [["__scopeId", "data-v-f6059e7c"]]), El = ["data-testid", "data-role"], Tl = {
|
|
1831
1831
|
key: 0,
|
|
1832
1832
|
class: "emoo-message__side"
|
|
1833
|
-
},
|
|
1833
|
+
}, xl = {
|
|
1834
1834
|
key: 0,
|
|
1835
1835
|
class: "emoo-message__avatar"
|
|
1836
|
-
},
|
|
1836
|
+
}, Il = ["src"], zl = { class: "emoo-message__main" }, Rl = {
|
|
1837
1837
|
key: 0,
|
|
1838
1838
|
class: "emoo-message__name"
|
|
1839
|
-
},
|
|
1839
|
+
}, Vl = ["data-status"], Ml = {
|
|
1840
1840
|
key: 0,
|
|
1841
1841
|
class: "emoo-message__dots",
|
|
1842
1842
|
"aria-label": "loading",
|
|
@@ -1844,28 +1844,28 @@ const Sa = {
|
|
|
1844
1844
|
}, Bl = {
|
|
1845
1845
|
key: 1,
|
|
1846
1846
|
class: "emoo-message__stopped"
|
|
1847
|
-
},
|
|
1847
|
+
}, Dl = {
|
|
1848
1848
|
key: 2,
|
|
1849
1849
|
class: "emoo-message__error"
|
|
1850
|
-
},
|
|
1850
|
+
}, Pl = {
|
|
1851
1851
|
key: 4,
|
|
1852
1852
|
class: "emoo-message__attachments"
|
|
1853
|
-
},
|
|
1853
|
+
}, Al = {
|
|
1854
1854
|
key: 1,
|
|
1855
1855
|
class: "emoo-message__foot"
|
|
1856
|
-
},
|
|
1856
|
+
}, Ll = {
|
|
1857
1857
|
key: 0,
|
|
1858
1858
|
class: "emoo-message__time"
|
|
1859
|
-
},
|
|
1859
|
+
}, Ol = {
|
|
1860
1860
|
key: 1,
|
|
1861
1861
|
class: "emoo-message__actions"
|
|
1862
|
-
},
|
|
1862
|
+
}, Ul = {
|
|
1863
1863
|
key: 1,
|
|
1864
1864
|
class: "emoo-message__side"
|
|
1865
|
-
},
|
|
1865
|
+
}, Hl = {
|
|
1866
1866
|
key: 0,
|
|
1867
1867
|
class: "emoo-message__avatar"
|
|
1868
|
-
},
|
|
1868
|
+
}, Kl = ["src"], Wl = /* @__PURE__ */ F({
|
|
1869
1869
|
__name: "EmooMessage",
|
|
1870
1870
|
props: {
|
|
1871
1871
|
role: {},
|
|
@@ -1883,53 +1883,53 @@ const Sa = {
|
|
|
1883
1883
|
"data-testid": e.testid,
|
|
1884
1884
|
"data-role": e.role
|
|
1885
1885
|
}, [
|
|
1886
|
-
e.role === "assistant" || e.role === "system" ? (t(), s("div",
|
|
1886
|
+
e.role === "assistant" || e.role === "system" ? (t(), s("div", Tl, [
|
|
1887
1887
|
A(o.$slots, "avatar", {}, () => [
|
|
1888
|
-
e.avatar ? (t(), s("span",
|
|
1889
|
-
|
|
1888
|
+
e.avatar ? (t(), s("span", xl, [
|
|
1889
|
+
u("img", {
|
|
1890
1890
|
src: e.avatar,
|
|
1891
1891
|
alt: ""
|
|
1892
|
-
}, null, 8,
|
|
1892
|
+
}, null, 8, Il)
|
|
1893
1893
|
])) : S("", !0)
|
|
1894
1894
|
], !0)
|
|
1895
1895
|
])) : S("", !0),
|
|
1896
|
-
|
|
1897
|
-
e.role === "system" && e.name ? (t(), s("div",
|
|
1898
|
-
|
|
1896
|
+
u("div", zl, [
|
|
1897
|
+
e.role === "system" && e.name ? (t(), s("div", Rl, k(e.name), 1)) : S("", !0),
|
|
1898
|
+
u("div", {
|
|
1899
1899
|
class: "emoo-message__body",
|
|
1900
1900
|
"data-status": e.status
|
|
1901
1901
|
}, [
|
|
1902
|
-
e.status === "loading" ? (t(), s("span",
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
])])) : e.status === "stopped" ? (t(), s("span", Bl, k(a(n)("common.emooMessage.stopped")), 1)) : e.status === "error" ? (t(), s("span",
|
|
1907
|
-
|
|
1902
|
+
e.status === "loading" ? (t(), s("span", Ml, [...l[0] || (l[0] = [
|
|
1903
|
+
u("i", null, null, -1),
|
|
1904
|
+
u("i", null, null, -1),
|
|
1905
|
+
u("i", null, null, -1)
|
|
1906
|
+
])])) : e.status === "stopped" ? (t(), s("span", Bl, k(a(n)("common.emooMessage.stopped")), 1)) : e.status === "error" ? (t(), s("span", Dl, k(e.text || a(n)("common.emooMessage.failed")), 1)) : A(o.$slots, "default", {}, () => [
|
|
1907
|
+
J(k(e.text), 1)
|
|
1908
1908
|
], !0, 3),
|
|
1909
|
-
o.$slots.attachments ? (t(), s("div",
|
|
1909
|
+
o.$slots.attachments ? (t(), s("div", Pl, [
|
|
1910
1910
|
A(o.$slots, "attachments", {}, void 0, !0)
|
|
1911
1911
|
])) : 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",
|
|
1912
|
+
], 8, Vl),
|
|
1913
|
+
e.time || o.$slots.actions ? (t(), s("div", Al, [
|
|
1914
|
+
e.time ? (t(), s("span", Ll, k(e.time), 1)) : S("", !0),
|
|
1915
|
+
o.$slots.actions ? (t(), s("span", Ol, [
|
|
1916
1916
|
A(o.$slots, "actions", {}, void 0, !0)
|
|
1917
1917
|
])) : S("", !0)
|
|
1918
1918
|
])) : S("", !0)
|
|
1919
1919
|
]),
|
|
1920
|
-
e.role === "user" ? (t(), s("div",
|
|
1920
|
+
e.role === "user" ? (t(), s("div", Ul, [
|
|
1921
1921
|
A(o.$slots, "avatar", {}, () => [
|
|
1922
|
-
e.avatar ? (t(), s("span",
|
|
1923
|
-
|
|
1922
|
+
e.avatar ? (t(), s("span", Hl, [
|
|
1923
|
+
u("img", {
|
|
1924
1924
|
src: e.avatar,
|
|
1925
1925
|
alt: ""
|
|
1926
|
-
}, null, 8,
|
|
1926
|
+
}, null, 8, Kl)
|
|
1927
1927
|
])) : S("", !0)
|
|
1928
1928
|
], !0)
|
|
1929
1929
|
])) : S("", !0)
|
|
1930
|
-
], 10,
|
|
1930
|
+
], 10, El));
|
|
1931
1931
|
}
|
|
1932
|
-
}),
|
|
1932
|
+
}), jn = /* @__PURE__ */ Y(Wl, [["__scopeId", "data-v-fca7a127"]]), Nl = /* @__PURE__ */ F({
|
|
1933
1933
|
__name: "EmooNavMenu",
|
|
1934
1934
|
props: {
|
|
1935
1935
|
items: {},
|
|
@@ -1940,7 +1940,7 @@ const Sa = {
|
|
|
1940
1940
|
},
|
|
1941
1941
|
emits: ["select", "group-select"],
|
|
1942
1942
|
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),
|
|
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 = V(
|
|
1944
1944
|
() => o.items.filter((d) => !d.hidden && o.canShow(d))
|
|
1945
1945
|
), b = (d) => (d.children ?? []).filter((T) => !T.hidden && o.canShow(T)), _ = V(() => o.activePath ?? ""), y = (d) => !!d.action && !d.path && !d.children, R = (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
1946
|
const T = !$(d);
|
|
@@ -1979,10 +1979,10 @@ const Sa = {
|
|
|
1979
1979
|
ie(d),
|
|
1980
1980
|
X(d)
|
|
1981
1981
|
]);
|
|
1982
|
-
const
|
|
1982
|
+
const B = $(d), se = T === 0 ? ve("button", {
|
|
1983
1983
|
type: "button",
|
|
1984
|
-
class: ["menu-group-title", { "is-open":
|
|
1985
|
-
"aria-expanded": String(
|
|
1984
|
+
class: ["menu-group-title", { "is-open": B }],
|
|
1985
|
+
"aria-expanded": String(B),
|
|
1986
1986
|
"aria-controls": I(d),
|
|
1987
1987
|
"data-testid": d.testid ? `${d.testid}-group` : void 0,
|
|
1988
1988
|
onClick: (ne) => {
|
|
@@ -1995,8 +1995,8 @@ const Sa = {
|
|
|
1995
1995
|
ve(Ge, { class: "tree-caret" })
|
|
1996
1996
|
]) : ve("button", {
|
|
1997
1997
|
type: "button",
|
|
1998
|
-
class: ["child-menu-item", "menu-group-child-title", { "is-open":
|
|
1999
|
-
"aria-expanded": String(
|
|
1998
|
+
class: ["child-menu-item", "menu-group-child-title", { "is-open": B }],
|
|
1999
|
+
"aria-expanded": String(B),
|
|
2000
2000
|
"aria-controls": I(d),
|
|
2001
2001
|
"data-testid": d.testid ? `${d.testid}-group` : void 0,
|
|
2002
2002
|
onClick: (ne) => {
|
|
@@ -2010,7 +2010,7 @@ const Sa = {
|
|
|
2010
2010
|
se,
|
|
2011
2011
|
ve("div", {
|
|
2012
2012
|
id: I(d),
|
|
2013
|
-
class: ["children-container", { expanded:
|
|
2013
|
+
class: ["children-container", { expanded: B }],
|
|
2014
2014
|
role: "group",
|
|
2015
2015
|
"aria-label": v(d)
|
|
2016
2016
|
}, b(d).map((ne) => [
|
|
@@ -2022,12 +2022,12 @@ const Sa = {
|
|
|
2022
2022
|
return (d, T) => (t(), s("nav", {
|
|
2023
2023
|
class: W(["emoo-nav", { "is-touch": e.touch }])
|
|
2024
2024
|
}, [
|
|
2025
|
-
(t(!0), s(D, null,
|
|
2026
|
-
key:
|
|
2025
|
+
(t(!0), s(D, null, Z(c.value, (B) => (t(), x(Ie(ee(B, 0)), {
|
|
2026
|
+
key: B.key
|
|
2027
2027
|
}))), 128))
|
|
2028
2028
|
], 2));
|
|
2029
2029
|
}
|
|
2030
|
-
}),
|
|
2030
|
+
}), Gn = /* @__PURE__ */ Y(Nl, [["__scopeId", "data-v-ebbf674d"]]), Fl = { class: "emoo-nav-segmented" }, ql = ["onClick"], jl = /* @__PURE__ */ F({
|
|
2031
2031
|
__name: "EmooNavSegmented",
|
|
2032
2032
|
props: {
|
|
2033
2033
|
items: {},
|
|
@@ -2039,22 +2039,22 @@ const Sa = {
|
|
|
2039
2039
|
const o = e, l = n, { t: r } = me(), i = (v) => typeof v.title == "string" ? r(v.title) : v.title, p = (v) => {
|
|
2040
2040
|
l("select", v), v.path && o.navigate?.(v.path);
|
|
2041
2041
|
};
|
|
2042
|
-
return (v, g) => (t(), s("nav",
|
|
2043
|
-
(t(!0), s(D, null,
|
|
2044
|
-
key:
|
|
2042
|
+
return (v, g) => (t(), s("nav", Fl, [
|
|
2043
|
+
(t(!0), s(D, null, Z(e.items, (c) => (t(), s("button", {
|
|
2044
|
+
key: c.key,
|
|
2045
2045
|
type: "button",
|
|
2046
|
-
class: W(["emoo-nav-segmented__item", { "is-active":
|
|
2047
|
-
onClick: le((b) => p(
|
|
2046
|
+
class: W(["emoo-nav-segmented__item", { "is-active": c.key === e.activeKey }]),
|
|
2047
|
+
onClick: le((b) => p(c), ["stop"])
|
|
2048
2048
|
}, [
|
|
2049
|
-
|
|
2049
|
+
c.icon ? (t(), x(Ie(c.icon), {
|
|
2050
2050
|
key: 0,
|
|
2051
2051
|
"aria-hidden": "true"
|
|
2052
2052
|
})) : S("", !0),
|
|
2053
|
-
|
|
2054
|
-
], 10,
|
|
2053
|
+
u("span", null, k(i(c)), 1)
|
|
2054
|
+
], 10, ql))), 128))
|
|
2055
2055
|
]));
|
|
2056
2056
|
}
|
|
2057
|
-
}),
|
|
2057
|
+
}), Xn = /* @__PURE__ */ Y(jl, [["__scopeId", "data-v-a88dea1a"]]), Gl = /* @__PURE__ */ F({
|
|
2058
2058
|
__name: "EmooOptionRows",
|
|
2059
2059
|
props: {
|
|
2060
2060
|
options: {},
|
|
@@ -2082,7 +2082,7 @@ const Sa = {
|
|
|
2082
2082
|
key: 0,
|
|
2083
2083
|
class: W(["emoo-option-rows__choices", { "emoo-option-rows__choices--inline": e.inline }])
|
|
2084
2084
|
}, [
|
|
2085
|
-
P(
|
|
2085
|
+
P(na, {
|
|
2086
2086
|
class: "emoo-option-rows__select",
|
|
2087
2087
|
options: e.options,
|
|
2088
2088
|
"model-value": e.modelValue,
|
|
@@ -2090,7 +2090,7 @@ const Sa = {
|
|
|
2090
2090
|
disabled: e.disabled,
|
|
2091
2091
|
clearable: !e.multiple,
|
|
2092
2092
|
testid: e.testid,
|
|
2093
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
2093
|
+
"onUpdate:modelValue": g[0] || (g[0] = (c) => e.multiple ? p(c) : i(c))
|
|
2094
2094
|
}, null, 8, ["options", "model-value", "multiple", "disabled", "clearable", "testid"])
|
|
2095
2095
|
], 2)) : e.multiple ? (t(), x(a(xt), {
|
|
2096
2096
|
key: 2,
|
|
@@ -2100,14 +2100,14 @@ const Sa = {
|
|
|
2100
2100
|
"onUpdate:modelValue": p
|
|
2101
2101
|
}, {
|
|
2102
2102
|
default: w(() => [
|
|
2103
|
-
(t(!0), s(D, null,
|
|
2104
|
-
key: `${typeof
|
|
2105
|
-
value:
|
|
2106
|
-
"data-testid": e.testid ? `${e.testid}-${String(
|
|
2103
|
+
(t(!0), s(D, null, Z(e.options, (c) => (t(), x(a(st), {
|
|
2104
|
+
key: `${typeof c.value}:${c.value}`,
|
|
2105
|
+
value: c.value,
|
|
2106
|
+
"data-testid": e.testid ? `${e.testid}-${String(c.value)}` : void 0,
|
|
2107
2107
|
border: ""
|
|
2108
2108
|
}, {
|
|
2109
2109
|
default: w(() => [
|
|
2110
|
-
|
|
2110
|
+
J(k(c.label), 1)
|
|
2111
2111
|
]),
|
|
2112
2112
|
_: 2
|
|
2113
2113
|
}, 1032, ["value", "data-testid"]))), 128))
|
|
@@ -2121,15 +2121,15 @@ const Sa = {
|
|
|
2121
2121
|
"onUpdate:modelValue": i
|
|
2122
2122
|
}, {
|
|
2123
2123
|
default: w(() => [
|
|
2124
|
-
(t(!0), s(D, null,
|
|
2125
|
-
key: `${typeof
|
|
2126
|
-
value:
|
|
2127
|
-
"data-testid": e.testid ? `${e.testid}-${String(
|
|
2124
|
+
(t(!0), s(D, null, Z(e.options, (c) => (t(), x(a(zt), {
|
|
2125
|
+
key: `${typeof c.value}:${c.value}`,
|
|
2126
|
+
value: c.value,
|
|
2127
|
+
"data-testid": e.testid ? `${e.testid}-${String(c.value)}` : void 0,
|
|
2128
2128
|
border: "",
|
|
2129
|
-
onClickCapture: (b) => r(
|
|
2129
|
+
onClickCapture: (b) => r(c.value, b)
|
|
2130
2130
|
}, {
|
|
2131
2131
|
default: w(() => [
|
|
2132
|
-
|
|
2132
|
+
J(k(c.label), 1)
|
|
2133
2133
|
]),
|
|
2134
2134
|
_: 2
|
|
2135
2135
|
}, 1032, ["value", "data-testid", "onClickCapture"]))), 128))
|
|
@@ -2139,21 +2139,21 @@ const Sa = {
|
|
|
2139
2139
|
A(v.$slots, "append", {}, void 0, !0)
|
|
2140
2140
|
], 2));
|
|
2141
2141
|
}
|
|
2142
|
-
}),
|
|
2142
|
+
}), Zn = /* @__PURE__ */ Y(Gl, [["__scopeId", "data-v-44e7d258"]]), Xl = {
|
|
2143
2143
|
key: 0,
|
|
2144
2144
|
class: "emt-foot",
|
|
2145
2145
|
"data-testid": "emt-foot"
|
|
2146
|
-
},
|
|
2146
|
+
}, Zl = { class: "emt-foot__info" }, Jl = { class: "emt-foot__right" }, Yl = ["aria-label"], Ql = {
|
|
2147
2147
|
class: "emt-foot__size",
|
|
2148
2148
|
type: "button",
|
|
2149
2149
|
"data-testid": "emt-pagesize"
|
|
2150
|
-
},
|
|
2150
|
+
}, es = { class: "emt-colmenu__list" }, ts = { class: "emt-tick" }, os = {
|
|
2151
2151
|
class: "emt-pager",
|
|
2152
2152
|
"data-testid": "emt-pager"
|
|
2153
|
-
},
|
|
2153
|
+
}, as = ["disabled", "aria-label"], ls = ["data-testid", "onClick"], ss = {
|
|
2154
2154
|
key: 1,
|
|
2155
2155
|
class: "emt-pager__btn is-ellipsis"
|
|
2156
|
-
},
|
|
2156
|
+
}, ns = ["disabled", "aria-label"], is = /* @__PURE__ */ F({
|
|
2157
2157
|
__name: "EmooPagination",
|
|
2158
2158
|
props: {
|
|
2159
2159
|
total: {},
|
|
@@ -2165,7 +2165,7 @@ const Sa = {
|
|
|
2165
2165
|
},
|
|
2166
2166
|
emits: ["update:page", "update:pageSize", "update:density"],
|
|
2167
2167
|
setup(e, { emit: n }) {
|
|
2168
|
-
const o = e, l = n, { t: r } = me(), i = V(() => o.page), p = V(() => Math.max(1, Math.ceil(o.total / o.pageSize))), v = V(() => (i.value - 1) * o.pageSize + 1), g = V(() => Math.min(o.total, i.value * o.pageSize)),
|
|
2168
|
+
const o = e, l = n, { t: r } = me(), i = V(() => o.page), p = V(() => Math.max(1, Math.ceil(o.total / o.pageSize))), v = V(() => (i.value - 1) * o.pageSize + 1), g = V(() => Math.min(o.total, i.value * o.pageSize)), c = (E) => E.toLocaleString(), b = V(() => {
|
|
2169
2169
|
const E = p.value, $ = i.value;
|
|
2170
2170
|
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
2171
|
}), _ = (E) => {
|
|
@@ -2180,23 +2180,23 @@ const Sa = {
|
|
|
2180
2180
|
const R = V(
|
|
2181
2181
|
() => o.density === "compact" ? r(o.densityBase === "comfort" ? "common.emooTable.switchToComfort" : "common.emooTable.switchToStandard") : r("common.emooTable.switchToCompact")
|
|
2182
2182
|
);
|
|
2183
|
-
return (E, $) => e.total > 0 ? (t(), s("footer",
|
|
2184
|
-
|
|
2185
|
-
|
|
2183
|
+
return (E, $) => e.total > 0 ? (t(), s("footer", Xl, [
|
|
2184
|
+
u("span", Zl, k(a(r)("common.emooTable.totalInfo", { total: c(e.total), from: c(v.value), to: c(g.value) })), 1),
|
|
2185
|
+
u("div", Jl, [
|
|
2186
2186
|
e.density ? (t(), x(he, {
|
|
2187
2187
|
key: 0,
|
|
2188
2188
|
content: R.value,
|
|
2189
2189
|
placement: "top"
|
|
2190
2190
|
}, {
|
|
2191
2191
|
default: w(() => [
|
|
2192
|
-
|
|
2192
|
+
u("button", {
|
|
2193
2193
|
class: W(["emt-foot__dens", { "is-on": e.density === "compact" }]),
|
|
2194
2194
|
type: "button",
|
|
2195
2195
|
"aria-label": R.value,
|
|
2196
2196
|
"data-testid": "emt-density",
|
|
2197
2197
|
onClick: $[0] || ($[0] = (I) => l("update:density", e.density === "compact" ? "default" : "compact"))
|
|
2198
2198
|
}, [
|
|
2199
|
-
P(a(
|
|
2199
|
+
P(a(ko), {
|
|
2200
2200
|
size: 14,
|
|
2201
2201
|
"aria-hidden": "true"
|
|
2202
2202
|
})
|
|
@@ -2211,30 +2211,30 @@ const Sa = {
|
|
|
2211
2211
|
onCommand: $[1] || ($[1] = (I) => y(Number(I)))
|
|
2212
2212
|
}, {
|
|
2213
2213
|
dropdown: w(() => [
|
|
2214
|
-
|
|
2215
|
-
(t(!0), s(D, null,
|
|
2214
|
+
u("div", es, [
|
|
2215
|
+
(t(!0), s(D, null, Z(e.pageSizes, (I) => (t(), x(a(no), {
|
|
2216
2216
|
key: I,
|
|
2217
2217
|
class: W(["emt-colmenu__item", { "is-on": I === e.pageSize }]),
|
|
2218
2218
|
command: I,
|
|
2219
2219
|
"data-testid": `emt-pagesize-${I}`
|
|
2220
2220
|
}, {
|
|
2221
2221
|
default: w(() => [
|
|
2222
|
-
|
|
2222
|
+
u("span", ts, [
|
|
2223
2223
|
I === e.pageSize ? (t(), x(a(Dt), {
|
|
2224
2224
|
key: 0,
|
|
2225
2225
|
size: 13,
|
|
2226
2226
|
"aria-hidden": "true"
|
|
2227
2227
|
})) : S("", !0)
|
|
2228
2228
|
]),
|
|
2229
|
-
|
|
2229
|
+
J(k(a(r)("common.emooTable.perPage", { n: I })), 1)
|
|
2230
2230
|
]),
|
|
2231
2231
|
_: 2
|
|
2232
2232
|
}, 1032, ["class", "command", "data-testid"]))), 128))
|
|
2233
2233
|
])
|
|
2234
2234
|
]),
|
|
2235
2235
|
default: w(() => [
|
|
2236
|
-
|
|
2237
|
-
|
|
2236
|
+
u("button", Ql, [
|
|
2237
|
+
J(k(a(r)("common.emooTable.perPage", { n: e.pageSize })) + " ", 1),
|
|
2238
2238
|
P(a(rt), {
|
|
2239
2239
|
size: 11,
|
|
2240
2240
|
"aria-hidden": "true"
|
|
@@ -2243,8 +2243,8 @@ const Sa = {
|
|
|
2243
2243
|
]),
|
|
2244
2244
|
_: 1
|
|
2245
2245
|
}),
|
|
2246
|
-
|
|
2247
|
-
|
|
2246
|
+
u("div", os, [
|
|
2247
|
+
u("button", {
|
|
2248
2248
|
class: "emt-pager__btn",
|
|
2249
2249
|
type: "button",
|
|
2250
2250
|
disabled: i.value <= 1,
|
|
@@ -2256,17 +2256,17 @@ const Sa = {
|
|
|
2256
2256
|
size: 14,
|
|
2257
2257
|
"aria-hidden": "true"
|
|
2258
2258
|
})
|
|
2259
|
-
], 8,
|
|
2260
|
-
(t(!0), s(D, null,
|
|
2259
|
+
], 8, as),
|
|
2260
|
+
(t(!0), s(D, null, Z(b.value, (I, z) => (t(), s(D, { key: z }, [
|
|
2261
2261
|
typeof I == "number" ? (t(), s("button", {
|
|
2262
2262
|
key: 0,
|
|
2263
2263
|
class: W(["emt-pager__btn", { "is-active": I === i.value }]),
|
|
2264
2264
|
type: "button",
|
|
2265
2265
|
"data-testid": `emt-page-${I}`,
|
|
2266
2266
|
onClick: (j) => _(I)
|
|
2267
|
-
}, k(I), 11,
|
|
2267
|
+
}, k(I), 11, ls)) : (t(), s("span", ss, "…"))
|
|
2268
2268
|
], 64))), 128)),
|
|
2269
|
-
|
|
2269
|
+
u("button", {
|
|
2270
2270
|
class: "emt-pager__btn",
|
|
2271
2271
|
type: "button",
|
|
2272
2272
|
disabled: i.value >= p.value,
|
|
@@ -2278,12 +2278,12 @@ const Sa = {
|
|
|
2278
2278
|
size: 14,
|
|
2279
2279
|
"aria-hidden": "true"
|
|
2280
2280
|
})
|
|
2281
|
-
], 8,
|
|
2281
|
+
], 8, ns)
|
|
2282
2282
|
])
|
|
2283
2283
|
])
|
|
2284
2284
|
])) : S("", !0);
|
|
2285
2285
|
}
|
|
2286
|
-
}),
|
|
2286
|
+
}), rs = /* @__PURE__ */ Y(is, [["__scopeId", "data-v-fc98e78c"]]), Jn = /* @__PURE__ */ F({
|
|
2287
2287
|
__name: "EmooPopover",
|
|
2288
2288
|
props: {
|
|
2289
2289
|
popperClass: { default: "" },
|
|
@@ -2291,7 +2291,7 @@ const Sa = {
|
|
|
2291
2291
|
},
|
|
2292
2292
|
setup(e) {
|
|
2293
2293
|
const n = e, o = V(() => ["emo-pop", n.popperClass].filter(Boolean).join(" "));
|
|
2294
|
-
return (l, r) => (t(), x(a(
|
|
2294
|
+
return (l, r) => (t(), x(a(io), Xe(l.$attrs, {
|
|
2295
2295
|
"show-arrow": e.showArrow,
|
|
2296
2296
|
"popper-class": o.value
|
|
2297
2297
|
}), Se({
|
|
@@ -2309,13 +2309,13 @@ const Sa = {
|
|
|
2309
2309
|
} : void 0
|
|
2310
2310
|
]), 1040, ["show-arrow", "popper-class"]));
|
|
2311
2311
|
}
|
|
2312
|
-
}),
|
|
2312
|
+
}), ds = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], us = {
|
|
2313
2313
|
class: "emoo-progress__track",
|
|
2314
2314
|
"aria-hidden": "true"
|
|
2315
|
-
},
|
|
2315
|
+
}, cs = {
|
|
2316
2316
|
key: 0,
|
|
2317
2317
|
class: "emoo-progress__label"
|
|
2318
|
-
},
|
|
2318
|
+
}, ms = /* @__PURE__ */ F({
|
|
2319
2319
|
__name: "EmooProgress",
|
|
2320
2320
|
props: {
|
|
2321
2321
|
value: { default: null },
|
|
@@ -2342,23 +2342,23 @@ const Sa = {
|
|
|
2342
2342
|
"aria-valuenow": l.value ? void 0 : r.value,
|
|
2343
2343
|
"aria-valuetext": p.value
|
|
2344
2344
|
}, [
|
|
2345
|
-
|
|
2346
|
-
|
|
2345
|
+
u("span", us, [
|
|
2346
|
+
u("span", {
|
|
2347
2347
|
class: "emoo-progress__fill",
|
|
2348
2348
|
style: pe(i.value)
|
|
2349
2349
|
}, null, 4)
|
|
2350
2350
|
]),
|
|
2351
|
-
e.label ? (t(), s("span",
|
|
2352
|
-
], 10,
|
|
2351
|
+
e.label ? (t(), s("span", cs, k(e.label), 1)) : S("", !0)
|
|
2352
|
+
], 10, ds));
|
|
2353
2353
|
}
|
|
2354
|
-
}),
|
|
2354
|
+
}), vs = /* @__PURE__ */ Y(ms, [["__scopeId", "data-v-cab4f706"]]), fs = { class: "emoo-rsel__opt" }, hs = ["src"], ps = { class: "emoo-rsel__col" }, ys = { class: "emoo-rsel__name" }, bs = {
|
|
2355
2355
|
key: 0,
|
|
2356
2356
|
class: "emoo-rsel__desc"
|
|
2357
|
-
},
|
|
2357
|
+
}, gs = {
|
|
2358
2358
|
class: "emoo-sel-remote-error",
|
|
2359
2359
|
role: "alert",
|
|
2360
2360
|
"data-testid": "remote-error"
|
|
2361
|
-
},
|
|
2361
|
+
}, ks = /* @__PURE__ */ F({
|
|
2362
2362
|
__name: "EmooRoleSelect",
|
|
2363
2363
|
props: {
|
|
2364
2364
|
modelValue: {},
|
|
@@ -2372,7 +2372,7 @@ const Sa = {
|
|
|
2372
2372
|
},
|
|
2373
2373
|
emits: ["update:modelValue", "update:selected"],
|
|
2374
2374
|
setup(e, { emit: n }) {
|
|
2375
|
-
const o = e, l = n, { t: r } = me(), i = V(() => o.source !== void 0), { items: p, loading: v, error: g, retry:
|
|
2375
|
+
const o = e, l = n, { t: r } = me(), i = V(() => o.source !== void 0), { items: p, loading: v, error: g, retry: c, search: b, onVisibleChange: _, popperClass: y } = Me(() => o.source, "emoo-rsel-popper"), { mergedOptions: R, selectedOptions: E, remember: $ } = Be(
|
|
2376
2376
|
() => o.modelValue,
|
|
2377
2377
|
() => i.value ? p.value : o.options ?? [],
|
|
2378
2378
|
() => o.selected ?? []
|
|
@@ -2381,7 +2381,7 @@ const Sa = {
|
|
|
2381
2381
|
l("update:modelValue", d), l("update:selected", T);
|
|
2382
2382
|
}, ee = (d) => {
|
|
2383
2383
|
const T = E.value[d]?.id;
|
|
2384
|
-
T !== void 0 && ie(o.modelValue.filter((
|
|
2384
|
+
T !== void 0 && ie(o.modelValue.filter((B) => B !== T));
|
|
2385
2385
|
};
|
|
2386
2386
|
return (d, T) => (t(), x(a(Ae), {
|
|
2387
2387
|
class: "emoo-rsel",
|
|
@@ -2399,29 +2399,29 @@ const Sa = {
|
|
|
2399
2399
|
onVisibleChange: a(_)
|
|
2400
2400
|
}, Se({
|
|
2401
2401
|
default: w(() => [
|
|
2402
|
-
(t(!0), s(D, null,
|
|
2403
|
-
key:
|
|
2404
|
-
label:
|
|
2405
|
-
value:
|
|
2402
|
+
(t(!0), s(D, null, Z(a(R), (B) => (t(), x(a(ze), {
|
|
2403
|
+
key: B.id,
|
|
2404
|
+
label: B.name,
|
|
2405
|
+
value: B.id
|
|
2406
2406
|
}, {
|
|
2407
2407
|
default: w(() => [
|
|
2408
|
-
|
|
2409
|
-
|
|
2408
|
+
u("span", fs, [
|
|
2409
|
+
u("span", {
|
|
2410
2410
|
class: "emoo-rsel__avatar",
|
|
2411
|
-
style: pe({ "--tint":
|
|
2411
|
+
style: pe({ "--tint": B.color || "var(--el-color-primary)" })
|
|
2412
2412
|
}, [
|
|
2413
|
-
|
|
2413
|
+
B.avatar ? (t(), s("img", {
|
|
2414
2414
|
key: 0,
|
|
2415
|
-
src:
|
|
2415
|
+
src: B.avatar,
|
|
2416
2416
|
alt: "",
|
|
2417
2417
|
class: "emoo-rsel__img"
|
|
2418
|
-
}, null, 8,
|
|
2419
|
-
|
|
2418
|
+
}, null, 8, hs)) : (t(), s(D, { key: 1 }, [
|
|
2419
|
+
J(k(B.name[0]), 1)
|
|
2420
2420
|
], 64))
|
|
2421
2421
|
], 4),
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2422
|
+
u("span", ps, [
|
|
2423
|
+
u("span", ys, k(B.name), 1),
|
|
2424
|
+
B.desc ? (t(), s("span", bs, k(B.desc), 1)) : S("", !0)
|
|
2425
2425
|
])
|
|
2426
2426
|
])
|
|
2427
2427
|
]),
|
|
@@ -2443,10 +2443,10 @@ const Sa = {
|
|
|
2443
2443
|
key: "1"
|
|
2444
2444
|
} : {
|
|
2445
2445
|
name: "label",
|
|
2446
|
-
fn: w(({ value:
|
|
2447
|
-
I(
|
|
2446
|
+
fn: w(({ value: B }) => [
|
|
2447
|
+
I(B) ? (t(), x(xe, {
|
|
2448
2448
|
key: 0,
|
|
2449
|
-
items: [X(I(
|
|
2449
|
+
items: [X(I(B))]
|
|
2450
2450
|
}, null, 8, ["items"])) : S("", !0)
|
|
2451
2451
|
]),
|
|
2452
2452
|
key: "0"
|
|
@@ -2454,13 +2454,13 @@ const Sa = {
|
|
|
2454
2454
|
a(g) ? {
|
|
2455
2455
|
name: "footer",
|
|
2456
2456
|
fn: w(() => [
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2457
|
+
u("div", gs, [
|
|
2458
|
+
u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
|
|
2459
|
+
u("button", {
|
|
2460
2460
|
type: "button",
|
|
2461
2461
|
"data-testid": "remote-retry",
|
|
2462
2462
|
onClick: T[0] || (T[0] = //@ts-ignore
|
|
2463
|
-
(...
|
|
2463
|
+
(...B) => a(c) && a(c)(...B))
|
|
2464
2464
|
}, k(a(r)("common.emooSelect.retry")), 1)
|
|
2465
2465
|
])
|
|
2466
2466
|
]),
|
|
@@ -2468,19 +2468,19 @@ const Sa = {
|
|
|
2468
2468
|
} : void 0
|
|
2469
2469
|
]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
|
|
2470
2470
|
}
|
|
2471
|
-
}),
|
|
2471
|
+
}), Yn = /* @__PURE__ */ Y(ks, [["__scopeId", "data-v-6c4ae65a"]]), $s = {
|
|
2472
2472
|
key: 1,
|
|
2473
2473
|
class: "emoo-search-box__top"
|
|
2474
|
-
},
|
|
2474
|
+
}, _s = {
|
|
2475
2475
|
key: 2,
|
|
2476
2476
|
class: "emoo-search-box__extras"
|
|
2477
|
-
},
|
|
2477
|
+
}, ws = { class: "emoo-search-box__field" }, Ss = {
|
|
2478
2478
|
key: 3,
|
|
2479
2479
|
class: "emoo-search-box__bar"
|
|
2480
|
-
},
|
|
2480
|
+
}, Cs = {
|
|
2481
2481
|
key: 0,
|
|
2482
2482
|
class: "emoo-search-box__trailing"
|
|
2483
|
-
},
|
|
2483
|
+
}, Es = /* @__PURE__ */ F({
|
|
2484
2484
|
__name: "EmooSearchBox",
|
|
2485
2485
|
props: {
|
|
2486
2486
|
variant: { default: "composer" },
|
|
@@ -2502,34 +2502,34 @@ const Sa = {
|
|
|
2502
2502
|
content: e.gripTip || a(o)("common.emooSearchBox.gripTip")
|
|
2503
2503
|
}, {
|
|
2504
2504
|
default: w(() => [
|
|
2505
|
-
|
|
2505
|
+
u("span", {
|
|
2506
2506
|
class: W(["emoo-search-box__grip", { "is-on": e.resizing }]),
|
|
2507
2507
|
onMousedown: i[0] || (i[0] = (p) => l("grip-mousedown", p))
|
|
2508
2508
|
}, null, 34)
|
|
2509
2509
|
]),
|
|
2510
2510
|
_: 1
|
|
2511
2511
|
}, 8, ["content"])) : S("", !0),
|
|
2512
|
-
r.$slots.top ? (t(), s("div",
|
|
2512
|
+
r.$slots.top ? (t(), s("div", $s, [
|
|
2513
2513
|
A(r.$slots, "top", {}, void 0, !0)
|
|
2514
2514
|
])) : S("", !0),
|
|
2515
|
-
r.$slots.extras ? (t(), s("div",
|
|
2515
|
+
r.$slots.extras ? (t(), s("div", _s, [
|
|
2516
2516
|
A(r.$slots, "extras", {}, void 0, !0)
|
|
2517
2517
|
])) : S("", !0),
|
|
2518
|
-
|
|
2518
|
+
u("div", ws, [
|
|
2519
2519
|
A(r.$slots, "default", {}, void 0, !0)
|
|
2520
2520
|
]),
|
|
2521
|
-
r.$slots.bar || r.$slots.trailing ? (t(), s("div",
|
|
2521
|
+
r.$slots.bar || r.$slots.trailing ? (t(), s("div", Ss, [
|
|
2522
2522
|
A(r.$slots, "bar", {}, void 0, !0),
|
|
2523
|
-
r.$slots.trailing ? (t(), s("div",
|
|
2523
|
+
r.$slots.trailing ? (t(), s("div", Cs, [
|
|
2524
2524
|
A(r.$slots, "trailing", {}, void 0, !0)
|
|
2525
2525
|
])) : S("", !0)
|
|
2526
2526
|
])) : S("", !0)
|
|
2527
2527
|
], 2));
|
|
2528
2528
|
}
|
|
2529
|
-
}),
|
|
2529
|
+
}), Qn = /* @__PURE__ */ Y(Es, [["__scopeId", "data-v-98479d22"]]), Ts = ["aria-label"], xs = ["aria-pressed", "aria-label", "disabled", "onClick"], Is = { key: 1 }, zs = {
|
|
2530
2530
|
key: 2,
|
|
2531
2531
|
class: "emoo-segmented__count"
|
|
2532
|
-
},
|
|
2532
|
+
}, Rs = /* @__PURE__ */ F({
|
|
2533
2533
|
__name: "EmooSegmented",
|
|
2534
2534
|
props: {
|
|
2535
2535
|
options: {},
|
|
@@ -2549,26 +2549,26 @@ const Sa = {
|
|
|
2549
2549
|
role: "group",
|
|
2550
2550
|
"aria-label": e.ariaLabel || a(o)("common.emooSegmented.ariaLabel")
|
|
2551
2551
|
}, [
|
|
2552
|
-
(t(!0), s(D, null,
|
|
2553
|
-
key:
|
|
2552
|
+
(t(!0), s(D, null, Z(e.options, (c) => (t(), s("button", {
|
|
2553
|
+
key: c.value,
|
|
2554
2554
|
type: "button",
|
|
2555
|
-
class: W(["emoo-segmented__item", { "is-active":
|
|
2556
|
-
"aria-pressed":
|
|
2557
|
-
"aria-label":
|
|
2558
|
-
disabled: e.disabled ||
|
|
2559
|
-
onClick: (b) => p(
|
|
2555
|
+
class: W(["emoo-segmented__item", { "is-active": c.value === e.modelValue, "is-icon-only": !!c.icon && !c.label }]),
|
|
2556
|
+
"aria-pressed": c.value === e.modelValue,
|
|
2557
|
+
"aria-label": c.ariaLabel,
|
|
2558
|
+
disabled: e.disabled || c.disabled,
|
|
2559
|
+
onClick: (b) => p(c)
|
|
2560
2560
|
}, [
|
|
2561
|
-
|
|
2561
|
+
c.icon ? (t(), x(Ie(c.icon), {
|
|
2562
2562
|
key: 0,
|
|
2563
2563
|
size: r.value,
|
|
2564
2564
|
"aria-hidden": "true"
|
|
2565
2565
|
}, null, 8, ["size"])) : S("", !0),
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
], 10,
|
|
2569
|
-
], 10,
|
|
2566
|
+
c.label ? (t(), s("span", Is, k(c.label), 1)) : S("", !0),
|
|
2567
|
+
c.count !== void 0 ? (t(), s("span", zs, k(c.count), 1)) : S("", !0)
|
|
2568
|
+
], 10, xs))), 128))
|
|
2569
|
+
], 10, Ts));
|
|
2570
2570
|
}
|
|
2571
|
-
}),
|
|
2571
|
+
}), ei = /* @__PURE__ */ Y(Rs, [["__scopeId", "data-v-bcd69b5a"]]), Vs = /* @__PURE__ */ F({
|
|
2572
2572
|
__name: "EmooSidebarShell",
|
|
2573
2573
|
props: {
|
|
2574
2574
|
collapsed: { type: Boolean, default: !1 },
|
|
@@ -2591,7 +2591,7 @@ const Sa = {
|
|
|
2591
2591
|
A(l.$slots, "footer", {}, void 0, !0)
|
|
2592
2592
|
], 6));
|
|
2593
2593
|
}
|
|
2594
|
-
}),
|
|
2594
|
+
}), ti = /* @__PURE__ */ Y(Vs, [["__scopeId", "data-v-8f94cc28"]]), Ms = /* @__PURE__ */ F({
|
|
2595
2595
|
__name: "EmooStatusTag",
|
|
2596
2596
|
props: {
|
|
2597
2597
|
tone: {},
|
|
@@ -2604,10 +2604,10 @@ const Sa = {
|
|
|
2604
2604
|
A(n.$slots, "default", {}, void 0, !0)
|
|
2605
2605
|
], 2));
|
|
2606
2606
|
}
|
|
2607
|
-
}), Bs = /* @__PURE__ */
|
|
2607
|
+
}), Bs = /* @__PURE__ */ Y(Ms, [["__scopeId", "data-v-9c6a9ab7"]]), Ds = { class: "emoo-switcher" }, Ps = {
|
|
2608
2608
|
key: 0,
|
|
2609
2609
|
class: "switcher-title"
|
|
2610
|
-
},
|
|
2610
|
+
}, As = ["data-testid", "onClick"], Ls = ["src", "alt"], Os = { class: "switcher-label" }, Us = /* @__PURE__ */ F({
|
|
2611
2611
|
__name: "EmooSwitcherPanel",
|
|
2612
2612
|
props: {
|
|
2613
2613
|
title: {},
|
|
@@ -2616,15 +2616,15 @@ const Sa = {
|
|
|
2616
2616
|
},
|
|
2617
2617
|
emits: ["select"],
|
|
2618
2618
|
setup(e, { emit: n }) {
|
|
2619
|
-
const o = e, l = n, { t: r } = me(), i = (
|
|
2620
|
-
l("select",
|
|
2619
|
+
const o = e, l = n, { t: r } = me(), i = (c) => r(c.title), p = V(() => o.title ? r(o.title) : ""), v = V(() => o.items.filter((c) => !c.hidden)), g = (c) => {
|
|
2620
|
+
l("select", c), c.action?.();
|
|
2621
2621
|
};
|
|
2622
|
-
return (
|
|
2623
|
-
e.title ? (t(), s("p",
|
|
2624
|
-
|
|
2622
|
+
return (c, b) => (t(), s("div", Ds, [
|
|
2623
|
+
e.title ? (t(), s("p", Ps, k(p.value), 1)) : S("", !0),
|
|
2624
|
+
u("div", {
|
|
2625
2625
|
class: W(["switcher-list", { "is-scrollable": e.scrollable }])
|
|
2626
2626
|
}, [
|
|
2627
|
-
(t(!0), s(D, null,
|
|
2627
|
+
(t(!0), s(D, null, Z(v.value, (_) => (t(), s("button", {
|
|
2628
2628
|
key: _.key,
|
|
2629
2629
|
type: "button",
|
|
2630
2630
|
class: W(["switcher-item", { "is-active": _.active }]),
|
|
@@ -2636,20 +2636,20 @@ const Sa = {
|
|
|
2636
2636
|
src: _.image,
|
|
2637
2637
|
alt: i(_),
|
|
2638
2638
|
class: "switcher-image"
|
|
2639
|
-
}, null, 8,
|
|
2639
|
+
}, null, 8, Ls)) : _.icon ? (t(), x(Ie(_.icon), {
|
|
2640
2640
|
key: 1,
|
|
2641
2641
|
class: "ic"
|
|
2642
2642
|
})) : S("", !0),
|
|
2643
|
-
|
|
2643
|
+
u("span", Os, k(i(_)), 1),
|
|
2644
2644
|
_.active ? (t(), x(a(Dt), {
|
|
2645
2645
|
key: 2,
|
|
2646
2646
|
class: "switcher-check"
|
|
2647
2647
|
})) : S("", !0)
|
|
2648
|
-
], 10,
|
|
2648
|
+
], 10, As))), 128))
|
|
2649
2649
|
], 2)
|
|
2650
2650
|
]));
|
|
2651
2651
|
}
|
|
2652
|
-
}),
|
|
2652
|
+
}), oi = /* @__PURE__ */ Y(Us, [["__scopeId", "data-v-a2309e72"]]), Hs = /* @__PURE__ */ F({
|
|
2653
2653
|
__name: "EmooTagsInput",
|
|
2654
2654
|
props: {
|
|
2655
2655
|
modelValue: { default: () => [] },
|
|
@@ -2659,20 +2659,20 @@ const Sa = {
|
|
|
2659
2659
|
},
|
|
2660
2660
|
emits: ["update:modelValue"],
|
|
2661
2661
|
setup(e, { emit: n }) {
|
|
2662
|
-
const o = e, l = n, { t: r } = me(), i = U(""), p = U(!1), v = U(!1), g = U(),
|
|
2662
|
+
const o = e, l = n, { t: r } = me(), i = U(""), p = U(!1), v = U(!1), g = U(), c = U(), b = (E) => {
|
|
2663
2663
|
l("update:modelValue", o.modelValue.filter(($) => $ !== E));
|
|
2664
2664
|
}, _ = () => {
|
|
2665
2665
|
p.value = !0, ke(() => g.value?.focus());
|
|
2666
2666
|
}, y = () => {
|
|
2667
2667
|
const E = i.value;
|
|
2668
|
-
E !== "" && !o.modelValue.includes(E) && l("update:modelValue", [...o.modelValue, E]), p.value = !1, i.value = "", setTimeout(() =>
|
|
2668
|
+
E !== "" && !o.modelValue.includes(E) && l("update:modelValue", [...o.modelValue, E]), p.value = !1, i.value = "", setTimeout(() => c.value?.$el?.focus?.(), 0);
|
|
2669
2669
|
}, R = (E) => {
|
|
2670
2670
|
!(E instanceof KeyboardEvent) || E.key !== "Enter" || !v.value && !E.isComposing && y();
|
|
2671
2671
|
};
|
|
2672
2672
|
return (E, $) => (t(), s("div", {
|
|
2673
2673
|
class: W(["emoo-tags-input", { "is-disabled": e.disabled }])
|
|
2674
2674
|
}, [
|
|
2675
|
-
(t(!0), s(D, null,
|
|
2675
|
+
(t(!0), s(D, null, Z(e.modelValue, (I, z) => (t(), x(a(ro), {
|
|
2676
2676
|
key: `${z}:${I}`,
|
|
2677
2677
|
class: "emoo-tags-input__tag",
|
|
2678
2678
|
"disable-transitions": !1,
|
|
@@ -2681,7 +2681,7 @@ const Sa = {
|
|
|
2681
2681
|
onClose: (j) => b(I)
|
|
2682
2682
|
}, {
|
|
2683
2683
|
default: w(() => [
|
|
2684
|
-
|
|
2684
|
+
J(k(I), 1)
|
|
2685
2685
|
]),
|
|
2686
2686
|
_: 2
|
|
2687
2687
|
}, 1032, ["closable", "data-testid", "onClose"]))), 128)),
|
|
@@ -2703,22 +2703,22 @@ const Sa = {
|
|
|
2703
2703
|
}, null, 8, ["modelValue", "placeholder"])) : (t(), x(De, {
|
|
2704
2704
|
key: 1,
|
|
2705
2705
|
ref_key: "addButtonRef",
|
|
2706
|
-
ref:
|
|
2706
|
+
ref: c,
|
|
2707
2707
|
class: "emoo-tags-input__add",
|
|
2708
2708
|
size: "small",
|
|
2709
2709
|
"data-testid": "tags-add",
|
|
2710
2710
|
onClick: _
|
|
2711
2711
|
}, {
|
|
2712
2712
|
default: w(() => [
|
|
2713
|
-
|
|
2713
|
+
J(" + " + k(a(r)("common.emooTagsInput.add")), 1)
|
|
2714
2714
|
]),
|
|
2715
2715
|
_: 1
|
|
2716
2716
|
}, 512))
|
|
2717
2717
|
], 64)) : S("", !0)
|
|
2718
2718
|
], 2));
|
|
2719
2719
|
}
|
|
2720
|
-
}),
|
|
2721
|
-
function
|
|
2720
|
+
}), ai = /* @__PURE__ */ Y(Hs, [["__scopeId", "data-v-2b248a6f"]]), Ks = 140, at = 64;
|
|
2721
|
+
function Ws(e) {
|
|
2722
2722
|
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
2723
|
if (!Array.isArray(C)) return l();
|
|
2724
2724
|
const L = /* @__PURE__ */ new Map(), Q = [];
|
|
@@ -2727,7 +2727,7 @@ function Ks(e) {
|
|
|
2727
2727
|
const G = O;
|
|
2728
2728
|
!G.key || !e.columns().some((oe) => oe.key === G.key) || (L.set(G.key, G), Q.push(G.key));
|
|
2729
2729
|
}
|
|
2730
|
-
const ae = new Map(Q.map((O, G) => [O, G])),
|
|
2730
|
+
const ae = new Map(Q.map((O, G) => [O, G])), M = e.columns().map((O) => {
|
|
2731
2731
|
const G = L.get(O.key);
|
|
2732
2732
|
return {
|
|
2733
2733
|
key: O.key,
|
|
@@ -2736,7 +2736,7 @@ function Ks(e) {
|
|
|
2736
2736
|
width: typeof G?.width == "number" && G.width >= n ? Math.round(G.width) : void 0
|
|
2737
2737
|
};
|
|
2738
2738
|
});
|
|
2739
|
-
return !Q.length || e.persistOrder === !1 ?
|
|
2739
|
+
return !Q.length || e.persistOrder === !1 ? M : [...M].sort((O, G) => (ae.get(O.key) ?? M.length) - (ae.get(G.key) ?? M.length));
|
|
2740
2740
|
}, i = (C) => !!C && typeof C == "object" && typeof C.key == "string" && (C.order === "ascending" || C.order === "descending"), p = () => {
|
|
2741
2741
|
if (!e.storageKey) return { columns: l() };
|
|
2742
2742
|
try {
|
|
@@ -2756,12 +2756,12 @@ function Ks(e) {
|
|
|
2756
2756
|
} catch {
|
|
2757
2757
|
}
|
|
2758
2758
|
return { columns: l() };
|
|
2759
|
-
}, v = p(), g = U(v.columns),
|
|
2759
|
+
}, v = p(), g = U(v.columns), c = U(v.pageSize ?? e.defaultPageSize ?? 20), b = U(v.density ?? "default"), _ = () => {
|
|
2760
2760
|
if (!e.storageKey) return;
|
|
2761
2761
|
const C = {
|
|
2762
2762
|
columns: g.value,
|
|
2763
|
-
pageSize:
|
|
2764
|
-
sort: T.value &&
|
|
2763
|
+
pageSize: c.value,
|
|
2764
|
+
sort: T.value && B.value ? { key: T.value, order: B.value } : void 0,
|
|
2765
2765
|
density: b.value
|
|
2766
2766
|
};
|
|
2767
2767
|
localStorage.setItem(e.storageKey, JSON.stringify(C));
|
|
@@ -2773,19 +2773,19 @@ function Ks(e) {
|
|
|
2773
2773
|
},
|
|
2774
2774
|
{ deep: !0 }
|
|
2775
2775
|
);
|
|
2776
|
-
const y = V(() => g.value.filter((C) => C.visible)), R = V(() => y.value.length), E = V(() => 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) >=
|
|
2776
|
+
const y = V(() => g.value.filter((C) => C.visible)), R = V(() => y.value.length), E = V(() => 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) >= Ks, j = (C) => {
|
|
2777
2777
|
R.value <= 1 || (C.visible = !1);
|
|
2778
2778
|
}, X = () => {
|
|
2779
2779
|
g.value = l();
|
|
2780
|
-
}, 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 ?? ""),
|
|
2781
|
-
we([
|
|
2780
|
+
}, 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;
|
|
2781
|
+
we([c, b, T, B], _), we(
|
|
2782
2782
|
() => e.columns().map((C) => C.key).join(","),
|
|
2783
2783
|
() => {
|
|
2784
2784
|
g.value = p().columns;
|
|
2785
2785
|
}
|
|
2786
2786
|
);
|
|
2787
2787
|
const ne = (C) => {
|
|
2788
|
-
e.storageKey && localStorage.removeItem(e.storageKey), g.value = l(),
|
|
2788
|
+
e.storageKey && localStorage.removeItem(e.storageKey), g.value = l(), c.value = e.defaultPageSize ?? 20, b.value = "default", e.defaultSort ? C(e.defaultSort.key, e.defaultSort.order) : C("", null);
|
|
2789
2789
|
}, ye = () => {
|
|
2790
2790
|
const C = g.value.filter((ae) => ae.visible);
|
|
2791
2791
|
let L = !1;
|
|
@@ -2793,29 +2793,29 @@ function Ks(e) {
|
|
|
2793
2793
|
ae.fixed === "left" ? L && (ae.fixed = "") : L = !0;
|
|
2794
2794
|
let Q = !1;
|
|
2795
2795
|
for (let ae = C.length - 1; ae >= 0; ae--) {
|
|
2796
|
-
const
|
|
2797
|
-
|
|
2796
|
+
const M = C[ae];
|
|
2797
|
+
M.fixed === "right" ? Q && (M.fixed = "") : Q = !0;
|
|
2798
2798
|
}
|
|
2799
2799
|
}, q = (C) => {
|
|
2800
2800
|
for (const L of g.value) L.fixed === C && (L.fixed = "");
|
|
2801
2801
|
}, de = (C) => {
|
|
2802
2802
|
C.fixed && q(C.fixed);
|
|
2803
2803
|
}, ce = (C, L) => {
|
|
2804
|
-
const Q = y.value, ae = Q.findIndex((
|
|
2805
|
-
ae < 0 || (Q.forEach((
|
|
2806
|
-
(L === "left" ? O <= ae : O >= ae) ?
|
|
2804
|
+
const Q = y.value, ae = Q.findIndex((M) => M.key === C.key);
|
|
2805
|
+
ae < 0 || (Q.forEach((M, O) => {
|
|
2806
|
+
(L === "left" ? O <= ae : O >= ae) ? M.fixed = L : M.fixed === L && (M.fixed = "");
|
|
2807
2807
|
}), ye());
|
|
2808
2808
|
}, H = (C) => {
|
|
2809
2809
|
const L = y.value;
|
|
2810
2810
|
if (C === "left") {
|
|
2811
2811
|
let Q = -1;
|
|
2812
|
-
return L.forEach((ae,
|
|
2813
|
-
ae.fixed === "left" && (Q =
|
|
2812
|
+
return L.forEach((ae, M) => {
|
|
2813
|
+
ae.fixed === "left" && (Q = M);
|
|
2814
2814
|
}), Q;
|
|
2815
2815
|
}
|
|
2816
2816
|
return L.findIndex((Q) => Q.fixed === "right");
|
|
2817
2817
|
}, te = (C, L) => {
|
|
2818
|
-
const ae = y.value.findIndex((
|
|
2818
|
+
const ae = y.value.findIndex((M) => M.key === C.key);
|
|
2819
2819
|
if (C.fixed !== L) {
|
|
2820
2820
|
ce(C, L);
|
|
2821
2821
|
return;
|
|
@@ -2825,10 +2825,10 @@ function Ks(e) {
|
|
|
2825
2825
|
return {
|
|
2826
2826
|
// 状态
|
|
2827
2827
|
colState: g,
|
|
2828
|
-
pageSize:
|
|
2828
|
+
pageSize: c,
|
|
2829
2829
|
density: b,
|
|
2830
2830
|
sortKey: T,
|
|
2831
|
-
sortOrder:
|
|
2831
|
+
sortOrder: B,
|
|
2832
2832
|
effectiveStoredSort: se,
|
|
2833
2833
|
prefs: v,
|
|
2834
2834
|
storageSort: ee,
|
|
@@ -2863,7 +2863,7 @@ function Ks(e) {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
};
|
|
2865
2865
|
}
|
|
2866
|
-
const
|
|
2866
|
+
const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "onDragleave", "onDrop"], qs = ["aria-label", "data-testid", "onDragstart"], js = { class: "emt-th__label" }, Gs = ["data-testid", "onClick"], Xs = { class: "emt-th__tools" }, Zs = ["data-testid", "onClick"], Js = ["disabled", "data-testid", "onClick"], Ys = ["title", "aria-label", "data-testid"], Qs = ["data-testid", "onMousedown"], en = ["aria-label"], tn = ["aria-label"], on = ["aria-label"], an = /* @__PURE__ */ F({
|
|
2867
2867
|
__name: "EmooTable",
|
|
2868
2868
|
props: {
|
|
2869
2869
|
data: {},
|
|
@@ -2888,12 +2888,12 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
2888
2888
|
},
|
|
2889
2889
|
emits: ["sort-change", "selection-change", "update:page", "size-change", "row-click", "row-move"],
|
|
2890
2890
|
setup(e, { expose: n, emit: o }) {
|
|
2891
|
-
const { t: l } = me(), r = e, i = o, p = U(), v = (h) => r.columns.find((
|
|
2891
|
+
const { t: l } = me(), r = e, i = o, p = U(), v = (h) => r.columns.find((m) => m.key === h), g = V(() => {
|
|
2892
2892
|
const h = r.rowKey;
|
|
2893
|
-
return typeof h != "function" ? h : (
|
|
2894
|
-
}),
|
|
2895
|
-
const
|
|
2896
|
-
return
|
|
2893
|
+
return typeof h != "function" ? h : (m) => String(h(m));
|
|
2894
|
+
}), c = (h) => v(h)?.sortBy, b = (h) => {
|
|
2895
|
+
const m = v(h);
|
|
2896
|
+
return m ? m.ellipsis != null ? m.ellipsis : (m.width ?? m.minWidth ?? 1 / 0) >= 50 : !1;
|
|
2897
2897
|
}, {
|
|
2898
2898
|
colState: _,
|
|
2899
2899
|
pageSize: y,
|
|
@@ -2908,7 +2908,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
2908
2908
|
visibleCount: ee,
|
|
2909
2909
|
colWidth: d,
|
|
2910
2910
|
colMinWidth: T,
|
|
2911
|
-
isWide:
|
|
2911
|
+
isWide: B,
|
|
2912
2912
|
hideColumn: se,
|
|
2913
2913
|
resetColumns: ne,
|
|
2914
2914
|
normalizeColumns: ye,
|
|
@@ -2916,7 +2916,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
2916
2916
|
pinEdge: de,
|
|
2917
2917
|
togglePinSide: ce,
|
|
2918
2918
|
togglePinSmart: H
|
|
2919
|
-
} =
|
|
2919
|
+
} = Ws({
|
|
2920
2920
|
columns: () => r.columns,
|
|
2921
2921
|
storageKey: r.storageKey,
|
|
2922
2922
|
defaultPageSize: r.defaultPageSize,
|
|
@@ -2928,120 +2928,120 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
2928
2928
|
});
|
|
2929
2929
|
}
|
|
2930
2930
|
}), te = () => {
|
|
2931
|
-
j((h,
|
|
2932
|
-
|
|
2931
|
+
j((h, m) => {
|
|
2932
|
+
m === null ? Le("", null) : p.value?.sort(h, m);
|
|
2933
2933
|
}), i("size-change", y.value), ke(() => {
|
|
2934
2934
|
p.value?.doLayout(), Te();
|
|
2935
2935
|
});
|
|
2936
2936
|
}, N = (h) => {
|
|
2937
|
-
const
|
|
2938
|
-
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 <
|
|
2939
|
-
}, C = U(""), L = U(""), Q = U("left"), ae = (h,
|
|
2940
|
-
C.value = h.key,
|
|
2941
|
-
},
|
|
2937
|
+
const m = X.value, f = m.findIndex((K) => K.key === h.key);
|
|
2938
|
+
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
|
+
}, C = U(""), L = U(""), Q = U("left"), ae = (h, m) => {
|
|
2940
|
+
C.value = h.key, m.dataTransfer && (m.dataTransfer.effectAllowed = "move", m.dataTransfer.setData("text/plain", h.key));
|
|
2941
|
+
}, M = () => {
|
|
2942
2942
|
C.value = "", L.value = "";
|
|
2943
|
-
}, O = (h,
|
|
2943
|
+
}, O = (h, m) => {
|
|
2944
2944
|
if (!C.value) return;
|
|
2945
2945
|
if (C.value === h.key) {
|
|
2946
2946
|
L.value = "";
|
|
2947
2947
|
return;
|
|
2948
2948
|
}
|
|
2949
2949
|
L.value = h.key;
|
|
2950
|
-
const f =
|
|
2951
|
-
Q.value =
|
|
2952
|
-
}, G = (h,
|
|
2950
|
+
const f = m.currentTarget.getBoundingClientRect();
|
|
2951
|
+
Q.value = m.clientX < f.left + f.width / 2 ? "left" : "right";
|
|
2952
|
+
}, G = (h, m) => {
|
|
2953
2953
|
if (L.value !== h.key) return;
|
|
2954
|
-
const f =
|
|
2955
|
-
!f || f.contains(
|
|
2954
|
+
const f = m.currentTarget;
|
|
2955
|
+
!f || f.contains(m.relatedTarget) || (L.value = "");
|
|
2956
2956
|
}, oe = (h) => {
|
|
2957
|
-
const
|
|
2958
|
-
if (
|
|
2957
|
+
const m = _.value.findIndex((_e) => _e.key === C.value), f = _.value.findIndex((_e) => _e.key === h.key), K = Q.value;
|
|
2958
|
+
if (M(), m < 0 || f < 0 || m === f) return;
|
|
2959
2959
|
let ue = K === "left" ? f : f + 1;
|
|
2960
|
-
const [fe] = _.value.splice(
|
|
2961
|
-
|
|
2962
|
-
}, re = U(-1), Ce = U(-1),
|
|
2963
|
-
re.value = h,
|
|
2960
|
+
const [fe] = _.value.splice(m, 1);
|
|
2961
|
+
m < ue && (ue -= 1), _.value.splice(ue, 0, fe), ye();
|
|
2962
|
+
}, re = U(-1), Ce = U(-1), Ye = U("above"), Wt = (h, m) => {
|
|
2963
|
+
re.value = h, m.dataTransfer && (m.dataTransfer.effectAllowed = "move", m.dataTransfer.setData("text/plain", String(h)));
|
|
2964
2964
|
}, dt = () => {
|
|
2965
2965
|
re.value = -1, Ce.value = -1;
|
|
2966
2966
|
}, ut = (h) => {
|
|
2967
|
-
const
|
|
2968
|
-
if (!
|
|
2969
|
-
const K = [...f.children].indexOf(
|
|
2967
|
+
const m = h.target.closest(".el-table__body tr"), f = m?.parentElement;
|
|
2968
|
+
if (!m || !f) return null;
|
|
2969
|
+
const K = [...f.children].indexOf(m);
|
|
2970
2970
|
if (K < 0) return null;
|
|
2971
|
-
const ue =
|
|
2971
|
+
const ue = m.getBoundingClientRect();
|
|
2972
2972
|
return { idx: K, side: h.clientY < ue.top + ue.height / 2 ? "above" : "below" };
|
|
2973
2973
|
}, Nt = (h) => {
|
|
2974
2974
|
if (re.value < 0) return;
|
|
2975
2975
|
h.preventDefault(), h.dataTransfer && (h.dataTransfer.dropEffect = "move");
|
|
2976
|
-
const
|
|
2977
|
-
if (!
|
|
2976
|
+
const m = ut(h);
|
|
2977
|
+
if (!m) {
|
|
2978
2978
|
Ce.value = -1;
|
|
2979
2979
|
return;
|
|
2980
2980
|
}
|
|
2981
|
-
Ce.value =
|
|
2981
|
+
Ce.value = m.idx, Ye.value = m.side;
|
|
2982
2982
|
}, Ft = (h) => {
|
|
2983
2983
|
if (re.value < 0) return;
|
|
2984
|
-
const
|
|
2985
|
-
|
|
2984
|
+
const m = h.relatedTarget;
|
|
2985
|
+
m && h.currentTarget.contains(m) || (Ce.value = -1);
|
|
2986
2986
|
}, qt = (h) => {
|
|
2987
2987
|
if (re.value < 0) return;
|
|
2988
2988
|
h.preventDefault();
|
|
2989
|
-
const
|
|
2990
|
-
if (dt(), !
|
|
2991
|
-
let K =
|
|
2989
|
+
const m = ut(h), f = re.value;
|
|
2990
|
+
if (dt(), !m) return;
|
|
2991
|
+
let K = m.side === "above" ? m.idx : m.idx + 1;
|
|
2992
2992
|
f < K && (K -= 1), K !== f && i("row-move", { from: f, to: K });
|
|
2993
|
-
}, jt = (h,
|
|
2994
|
-
|
|
2993
|
+
}, jt = (h, m) => {
|
|
2994
|
+
m.preventDefault(), m.stopPropagation();
|
|
2995
2995
|
const f = _.value.find((Re) => Re.key === h);
|
|
2996
2996
|
if (!f) return;
|
|
2997
|
-
const K =
|
|
2997
|
+
const K = m.clientX, ue = f.width ?? v(h)?.width ?? v(h)?.minWidth ?? at, fe = (Re) => {
|
|
2998
2998
|
f.width = Math.max(at, Math.round(ue + Re.clientX - K));
|
|
2999
2999
|
}, _e = () => {
|
|
3000
3000
|
window.removeEventListener("mousemove", fe), window.removeEventListener("mouseup", _e);
|
|
3001
3001
|
};
|
|
3002
3002
|
window.addEventListener("mousemove", fe), window.addEventListener("mouseup", _e);
|
|
3003
|
-
}, Gt = z ? { prop: z.key, order: z.order } : void 0, ct = ({ prop: h, order:
|
|
3004
|
-
E.value = h ?? "", $.value =
|
|
3005
|
-
}, Le = (h,
|
|
3006
|
-
|
|
3003
|
+
}, Gt = z ? { prop: z.key, order: z.order } : void 0, ct = ({ prop: h, order: m }) => {
|
|
3004
|
+
E.value = h ?? "", $.value = m, i("sort-change", { key: h ?? "", order: m });
|
|
3005
|
+
}, Le = (h, m) => {
|
|
3006
|
+
m === null ? (p.value?.clearSort(), ct({ prop: "", order: null })) : p.value?.sort(h, m);
|
|
3007
3007
|
}, Xt = (h) => {
|
|
3008
3008
|
if (E.value !== h) {
|
|
3009
3009
|
Le(h, "ascending");
|
|
3010
3010
|
return;
|
|
3011
3011
|
}
|
|
3012
3012
|
Le(h, $.value === "ascending" ? "descending" : $.value === "descending" ? null : "ascending");
|
|
3013
|
-
}, Ee = U([]),
|
|
3013
|
+
}, Ee = U([]), Zt = (h) => {
|
|
3014
3014
|
Ee.value = h, i("selection-change", h);
|
|
3015
|
-
},
|
|
3015
|
+
}, Jt = (h) => [
|
|
3016
3016
|
Ee.value.includes(h.row) ? "emt-row-selected" : "",
|
|
3017
3017
|
r.rowClassName?.(h) ?? "",
|
|
3018
|
-
|
|
3019
|
-
].filter(Boolean).join(" "),
|
|
3018
|
+
Yt(h.rowIndex)
|
|
3019
|
+
].filter(Boolean).join(" "), Yt = (h) => {
|
|
3020
3020
|
if (re.value < 0 || Ce.value !== h) return "";
|
|
3021
|
-
let
|
|
3022
|
-
return re.value <
|
|
3021
|
+
let m = Ye.value === "above" ? Ce.value : Ce.value + 1;
|
|
3022
|
+
return re.value < m && (m -= 1), m === re.value ? "" : Ye.value === "above" ? "emt-drop-above" : "emt-drop-below";
|
|
3023
3023
|
}, Qt = () => p.value?.clearSelection(), $e = U(-1), ge = { active: !1, state: !1, last: -1 }, Oe = () => p.value?.store?.states?.data?.value ?? r.data, Qe = (h) => {
|
|
3024
|
-
const
|
|
3025
|
-
return !
|
|
3026
|
-
}, Ue = (h,
|
|
3024
|
+
const m = h.target.closest("tr"), f = m?.parentElement;
|
|
3025
|
+
return !m || !f ? -1 : [...f.children].indexOf(m);
|
|
3026
|
+
}, Ue = (h, m) => {
|
|
3027
3027
|
const f = Oe()[h];
|
|
3028
|
-
f && Ee.value.includes(f) !==
|
|
3028
|
+
f && Ee.value.includes(f) !== m && p.value?.toggleRowSelection(f, m);
|
|
3029
3029
|
}, mt = (h) => {
|
|
3030
|
-
const
|
|
3031
|
-
return f &&
|
|
3030
|
+
const m = h.target, f = m.closest(".el-checkbox");
|
|
3031
|
+
return f && m.closest(".el-table__body") ? f : null;
|
|
3032
3032
|
}, vt = (h) => {
|
|
3033
3033
|
if (!mt(h) || (h.preventDefault(), h.stopPropagation(), !h.shiftKey)) return;
|
|
3034
|
-
const
|
|
3035
|
-
if (!(
|
|
3036
|
-
if ($e.value >= 0 && $e.value !==
|
|
3037
|
-
const f = !Ee.value.includes(Oe()[
|
|
3034
|
+
const m = Qe(h);
|
|
3035
|
+
if (!(m < 0))
|
|
3036
|
+
if ($e.value >= 0 && $e.value !== m) {
|
|
3037
|
+
const f = !Ee.value.includes(Oe()[m]), [K, ue] = $e.value < m ? [$e.value, m] : [m, $e.value];
|
|
3038
3038
|
for (let fe = K; fe <= ue; fe++) Ue(fe, f);
|
|
3039
3039
|
} else
|
|
3040
|
-
Ue(
|
|
3040
|
+
Ue(m, !Ee.value.includes(Oe()[m])), $e.value = m;
|
|
3041
3041
|
}, ft = (h) => {
|
|
3042
3042
|
if (!mt(h) || (h.preventDefault(), h.shiftKey)) return;
|
|
3043
|
-
const
|
|
3044
|
-
|
|
3043
|
+
const m = Qe(h);
|
|
3044
|
+
m < 0 || (ge.active = !0, ge.state = !Ee.value.includes(Oe()[m]), ge.last = m, Ue(m, ge.state), $e.value = m);
|
|
3045
3045
|
}, ht = (h) => {
|
|
3046
3046
|
if (!ge.active || !h.target.closest(".el-table__body")) return;
|
|
3047
3047
|
const f = Qe(h);
|
|
@@ -3062,16 +3062,16 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3062
3062
|
}, kt = (h) => {
|
|
3063
3063
|
be?.scrollBy({ left: h * 280, behavior: "smooth" });
|
|
3064
3064
|
}, Ke = U(""), $t = (h) => {
|
|
3065
|
-
const
|
|
3066
|
-
if (!
|
|
3065
|
+
const m = yt.value;
|
|
3066
|
+
if (!m) return;
|
|
3067
3067
|
const f = (ue) => {
|
|
3068
3068
|
if (!ue) return !1;
|
|
3069
3069
|
const fe = ue.getBoundingClientRect(), _e = fe.x + fe.width / 2, Re = fe.y + fe.height / 2;
|
|
3070
3070
|
return Math.hypot(h.clientX - _e, h.clientY - Re) < 26;
|
|
3071
|
-
}, K = f(
|
|
3071
|
+
}, K = f(m.querySelector(".emt-scrollbtn.is-left")) ? "left" : f(m.querySelector(".emt-scrollbtn.is-right")) ? "right" : "";
|
|
3072
3072
|
K !== Ke.value && (Ke.value = K);
|
|
3073
3073
|
};
|
|
3074
|
-
return
|
|
3074
|
+
return Ze(() => {
|
|
3075
3075
|
document.addEventListener("mousemove", $t, !0);
|
|
3076
3076
|
const h = p.value?.$el;
|
|
3077
3077
|
h?.addEventListener("click", vt, !0), h?.addEventListener("mousedown", ft, !0), h?.addEventListener("mouseover", ht, !0), window.addEventListener("mouseup", pt), be = h?.querySelector(".el-table__body-wrapper .el-scrollbar__wrap") ?? h?.querySelector(".el-table__body-wrapper") ?? null, be?.addEventListener("scroll", Te, { passive: !0 }), be && (He = new ResizeObserver(Te), He.observe(be), be.firstElementChild instanceof HTMLElement && He.observe(be.firstElementChild)), Te(), I && i("sort-change", { key: I.key, order: I.order });
|
|
@@ -3089,12 +3089,12 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3089
3089
|
togglePinSide: ce,
|
|
3090
3090
|
togglePinSmart: H,
|
|
3091
3091
|
clearSelection: Qt,
|
|
3092
|
-
toggleRowSelection: (h,
|
|
3093
|
-
toggleRowExpansion: (h,
|
|
3094
|
-
}), (h,
|
|
3092
|
+
toggleRowSelection: (h, m) => p.value?.toggleRowSelection(h, m),
|
|
3093
|
+
toggleRowExpansion: (h, m) => p.value?.toggleRowExpansion(h, m)
|
|
3094
|
+
}), (h, m) => (t(), s("div", {
|
|
3095
3095
|
class: W(["emt", { "is-compact": a(R) === "compact", "is-comfort": a(R) !== "compact" && e.defaultDensity === "comfort" }])
|
|
3096
3096
|
}, [
|
|
3097
|
-
|
|
3097
|
+
u("div", {
|
|
3098
3098
|
ref_key: "scrollWrapRef",
|
|
3099
3099
|
ref: yt,
|
|
3100
3100
|
class: W(["emt-scroll", { "is-dragging": !!C.value, "is-rowdragging": re.value >= 0 }]),
|
|
@@ -3102,20 +3102,20 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3102
3102
|
onDragleave: Ft,
|
|
3103
3103
|
onDrop: qt
|
|
3104
3104
|
}, [
|
|
3105
|
-
P(a(
|
|
3105
|
+
P(a(uo), {
|
|
3106
3106
|
ref_key: "tableRef",
|
|
3107
3107
|
ref: p,
|
|
3108
3108
|
data: e.data,
|
|
3109
3109
|
"row-key": g.value,
|
|
3110
|
-
"row-class-name":
|
|
3110
|
+
"row-class-name": Jt,
|
|
3111
3111
|
"default-sort": a(Gt),
|
|
3112
3112
|
height: e.height,
|
|
3113
3113
|
"max-height": e.maxHeight,
|
|
3114
3114
|
"expand-row-keys": e.expandable ? e.expandRowKeys : void 0,
|
|
3115
3115
|
"tooltip-options": { popperClass: "emo-tip", showAfter: 300, placement: "top", transition: "el-fade-in-linear" },
|
|
3116
|
-
onSelectionChange:
|
|
3116
|
+
onSelectionChange: Zt,
|
|
3117
3117
|
onSortChange: ct,
|
|
3118
|
-
onRowClick:
|
|
3118
|
+
onRowClick: m[6] || (m[6] = (f, K, ue) => i("row-click", f, K, ue))
|
|
3119
3119
|
}, {
|
|
3120
3120
|
empty: w(() => [
|
|
3121
3121
|
A(h.$slots, "empty", {}, void 0, !0)
|
|
@@ -3137,21 +3137,21 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3137
3137
|
align: "center",
|
|
3138
3138
|
"class-name": "emt-col-rowdrag"
|
|
3139
3139
|
}, {
|
|
3140
|
-
header: w(() => [...
|
|
3141
|
-
|
|
3140
|
+
header: w(() => [...m[12] || (m[12] = [
|
|
3141
|
+
u("span", null, null, -1)
|
|
3142
3142
|
])]),
|
|
3143
3143
|
default: w(({ $index: f }) => [
|
|
3144
3144
|
P(he, {
|
|
3145
3145
|
content: a(l)("common.emooTable.dragToReorderRows")
|
|
3146
3146
|
}, {
|
|
3147
3147
|
default: w(() => [
|
|
3148
|
-
|
|
3148
|
+
u("button", {
|
|
3149
3149
|
class: "emt-rowdrag",
|
|
3150
3150
|
type: "button",
|
|
3151
3151
|
draggable: "true",
|
|
3152
3152
|
"aria-label": a(l)("common.emooTable.dragToReorderRows"),
|
|
3153
3153
|
"data-testid": `emt-rowdrag-${f}`,
|
|
3154
|
-
onClick:
|
|
3154
|
+
onClick: m[0] || (m[0] = le(() => {
|
|
3155
3155
|
}, ["stop"])),
|
|
3156
3156
|
onDragstart: (K) => Wt(f, K),
|
|
3157
3157
|
onDragend: dt
|
|
@@ -3160,7 +3160,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3160
3160
|
size: 12,
|
|
3161
3161
|
"aria-hidden": "true"
|
|
3162
3162
|
})
|
|
3163
|
-
], 40,
|
|
3163
|
+
], 40, Ns)
|
|
3164
3164
|
]),
|
|
3165
3165
|
_: 2
|
|
3166
3166
|
}, 1032, ["content"])
|
|
@@ -3174,12 +3174,12 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3174
3174
|
fixed: "left",
|
|
3175
3175
|
"reserve-selection": !!e.rowKey
|
|
3176
3176
|
}, null, 8, ["reserve-selection"])) : S("", !0),
|
|
3177
|
-
(t(!0), s(D, null,
|
|
3177
|
+
(t(!0), s(D, null, Z(a(X), (f) => (t(), x(a(Ve), {
|
|
3178
3178
|
key: f.key,
|
|
3179
3179
|
prop: f.key,
|
|
3180
3180
|
label: v(f.key)?.label,
|
|
3181
3181
|
sortable: v(f.key)?.sortable ?? !1,
|
|
3182
|
-
"sort-by":
|
|
3182
|
+
"sort-by": c(f.key),
|
|
3183
3183
|
"show-overflow-tooltip": b(f.key),
|
|
3184
3184
|
resizable: v(f.key)?.resizable ?? !0,
|
|
3185
3185
|
width: a(d)(f),
|
|
@@ -3188,7 +3188,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3188
3188
|
fixed: f.fixed === "" ? !1 : f.fixed
|
|
3189
3189
|
}, {
|
|
3190
3190
|
header: w(() => [
|
|
3191
|
-
|
|
3191
|
+
u("div", {
|
|
3192
3192
|
class: W(["emt-th", {
|
|
3193
3193
|
"is-drop-left": L.value === f.key && Q.value === "left",
|
|
3194
3194
|
"is-drop-right": L.value === f.key && Q.value === "right"
|
|
@@ -3201,26 +3201,26 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3201
3201
|
content: a(l)("common.emooTable.dragToReorder")
|
|
3202
3202
|
}, {
|
|
3203
3203
|
default: w(() => [
|
|
3204
|
-
|
|
3204
|
+
u("button", {
|
|
3205
3205
|
class: "emt-th__grip",
|
|
3206
3206
|
type: "button",
|
|
3207
3207
|
draggable: "true",
|
|
3208
3208
|
"aria-label": a(l)("common.emooTable.dragToReorderCol", { col: v(f.key)?.label }),
|
|
3209
3209
|
"data-testid": `emt-th-grip-${f.key}`,
|
|
3210
|
-
onClick:
|
|
3210
|
+
onClick: m[1] || (m[1] = le(() => {
|
|
3211
3211
|
}, ["stop"])),
|
|
3212
3212
|
onDragstart: (K) => ae(f, K),
|
|
3213
|
-
onDragend:
|
|
3213
|
+
onDragend: M
|
|
3214
3214
|
}, [
|
|
3215
3215
|
P(a(wt), {
|
|
3216
3216
|
size: 12,
|
|
3217
3217
|
"aria-hidden": "true"
|
|
3218
3218
|
})
|
|
3219
|
-
], 40,
|
|
3219
|
+
], 40, qs)
|
|
3220
3220
|
]),
|
|
3221
3221
|
_: 2
|
|
3222
3222
|
}, 1032, ["content"]),
|
|
3223
|
-
|
|
3223
|
+
u("span", js, k(v(f.key)?.label), 1),
|
|
3224
3224
|
A(h.$slots, `${f.key}-header`, {
|
|
3225
3225
|
col: v(f.key)
|
|
3226
3226
|
}, void 0, !0),
|
|
@@ -3229,7 +3229,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3229
3229
|
content: a(l)("common.emooTable.sort")
|
|
3230
3230
|
}, {
|
|
3231
3231
|
default: w(() => [
|
|
3232
|
-
|
|
3232
|
+
u("button", {
|
|
3233
3233
|
class: "emt-th__sort",
|
|
3234
3234
|
type: "button",
|
|
3235
3235
|
"data-testid": `emt-th-sort-${f.key}`,
|
|
@@ -3245,44 +3245,44 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3245
3245
|
size: 12,
|
|
3246
3246
|
weight: "bold",
|
|
3247
3247
|
"aria-hidden": "true"
|
|
3248
|
-
})) : (t(), x(a(
|
|
3248
|
+
})) : (t(), x(a($o), {
|
|
3249
3249
|
key: 2,
|
|
3250
3250
|
size: 12,
|
|
3251
3251
|
class: "emt-th__sortidle",
|
|
3252
3252
|
"aria-hidden": "true"
|
|
3253
3253
|
}))
|
|
3254
|
-
], 8,
|
|
3254
|
+
], 8, Gs)
|
|
3255
3255
|
]),
|
|
3256
3256
|
_: 2
|
|
3257
3257
|
}, 1032, ["content"])) : S("", !0),
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
a(
|
|
3258
|
+
m[13] || (m[13] = u("span", { class: "emt-th__spacer" }, null, -1)),
|
|
3259
|
+
u("span", Xs, [
|
|
3260
|
+
a(B)(f) || f.fixed ? (t(), x(he, {
|
|
3261
3261
|
key: 0,
|
|
3262
3262
|
content: N(f)
|
|
3263
3263
|
}, {
|
|
3264
3264
|
default: w(() => [
|
|
3265
|
-
|
|
3265
|
+
u("button", {
|
|
3266
3266
|
class: W(["emt-th__tool", { "is-on": !!f.fixed }]),
|
|
3267
3267
|
type: "button",
|
|
3268
3268
|
"data-testid": `emt-th-pin-${f.key}`,
|
|
3269
3269
|
onClick: le((K) => a(H)(f), ["stop"])
|
|
3270
3270
|
}, [
|
|
3271
|
-
P(a(
|
|
3271
|
+
P(a(_o), {
|
|
3272
3272
|
size: 13,
|
|
3273
3273
|
weight: f.fixed ? "fill" : void 0,
|
|
3274
3274
|
"aria-hidden": "true"
|
|
3275
3275
|
}, null, 8, ["weight"])
|
|
3276
|
-
], 10,
|
|
3276
|
+
], 10, Zs)
|
|
3277
3277
|
]),
|
|
3278
3278
|
_: 2
|
|
3279
3279
|
}, 1032, ["content"])) : S("", !0),
|
|
3280
|
-
a(
|
|
3280
|
+
a(B)(f) ? (t(), x(he, {
|
|
3281
3281
|
key: 1,
|
|
3282
3282
|
content: a(l)("common.emooTable.hideColumn")
|
|
3283
3283
|
}, {
|
|
3284
3284
|
default: w(() => [
|
|
3285
|
-
|
|
3285
|
+
u("button", {
|
|
3286
3286
|
class: "emt-th__tool",
|
|
3287
3287
|
type: "button",
|
|
3288
3288
|
disabled: a(ee) === 1,
|
|
@@ -3297,7 +3297,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3297
3297
|
]),
|
|
3298
3298
|
_: 2
|
|
3299
3299
|
}, 1032, ["content"])) : S("", !0),
|
|
3300
|
-
P(
|
|
3300
|
+
P(pa, {
|
|
3301
3301
|
"col-key": f.key,
|
|
3302
3302
|
sortable: v(f.key)?.sortable,
|
|
3303
3303
|
sorted: a(E) === f.key ? a($) : null,
|
|
@@ -3310,25 +3310,25 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3310
3310
|
onUnpin: (K) => a(q)(f),
|
|
3311
3311
|
onPin: (K) => a(ce)(f, K),
|
|
3312
3312
|
onHide: (K) => a(se)(f),
|
|
3313
|
-
onRestore:
|
|
3313
|
+
onRestore: m[4] || (m[4] = (K) => {
|
|
3314
3314
|
const ue = a(_).find((fe) => fe.key === K);
|
|
3315
3315
|
ue && (ue.visible = !0);
|
|
3316
3316
|
}),
|
|
3317
3317
|
onReset: te
|
|
3318
3318
|
}, {
|
|
3319
3319
|
default: w(() => [
|
|
3320
|
-
|
|
3320
|
+
u("button", {
|
|
3321
3321
|
class: "emt-th__tool emt-th__dots",
|
|
3322
3322
|
type: "button",
|
|
3323
3323
|
title: a(l)("common.emooTable.colActions"),
|
|
3324
3324
|
"aria-label": a(l)("common.emooTable.colActionsCol", { col: v(f.key)?.label }),
|
|
3325
3325
|
"data-testid": `emt-th-menu-${f.key}`,
|
|
3326
|
-
onClick:
|
|
3326
|
+
onClick: m[2] || (m[2] = le(() => {
|
|
3327
3327
|
}, ["stop"])),
|
|
3328
|
-
onMousedown:
|
|
3328
|
+
onMousedown: m[3] || (m[3] = le(() => {
|
|
3329
3329
|
}, ["stop"]))
|
|
3330
3330
|
}, [
|
|
3331
|
-
P(a(
|
|
3331
|
+
P(a(Bt), {
|
|
3332
3332
|
size: 14,
|
|
3333
3333
|
weight: "bold",
|
|
3334
3334
|
"aria-hidden": "true"
|
|
@@ -3343,24 +3343,24 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3343
3343
|
content: a(l)("common.emooTable.dragToResize")
|
|
3344
3344
|
}, {
|
|
3345
3345
|
default: w(() => [
|
|
3346
|
-
|
|
3346
|
+
u("span", {
|
|
3347
3347
|
class: "emt-th__resize",
|
|
3348
3348
|
"data-testid": `emt-th-resize-${f.key}`,
|
|
3349
3349
|
onMousedown: (K) => jt(f.key, K),
|
|
3350
|
-
onClick:
|
|
3350
|
+
onClick: m[5] || (m[5] = le(() => {
|
|
3351
3351
|
}, ["stop"]))
|
|
3352
|
-
}, null, 40,
|
|
3352
|
+
}, null, 40, Qs)
|
|
3353
3353
|
]),
|
|
3354
3354
|
_: 2
|
|
3355
3355
|
}, 1032, ["content"])) : S("", !0)
|
|
3356
|
-
], 42,
|
|
3356
|
+
], 42, Fs)
|
|
3357
3357
|
]),
|
|
3358
3358
|
default: w(({ row: K, $index: ue }) => [
|
|
3359
3359
|
ue !== -1 ? A(h.$slots, f.key, {
|
|
3360
3360
|
row: K,
|
|
3361
3361
|
index: ue
|
|
3362
3362
|
}, () => [
|
|
3363
|
-
|
|
3363
|
+
J(k(K[f.key]), 1)
|
|
3364
3364
|
], !0, 0) : S("", !0)
|
|
3365
3365
|
]),
|
|
3366
3366
|
_: 2
|
|
@@ -3384,18 +3384,18 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3384
3384
|
content: a(l)("common.emooTable.scrollLeft")
|
|
3385
3385
|
}, {
|
|
3386
3386
|
default: w(() => [
|
|
3387
|
-
Ne(
|
|
3387
|
+
Ne(u("button", {
|
|
3388
3388
|
class: W(["emt-scrollbtn is-left", { "is-live": Ke.value === "left" }]),
|
|
3389
3389
|
type: "button",
|
|
3390
3390
|
"aria-label": a(l)("common.emooTable.scrollLeft"),
|
|
3391
3391
|
"data-testid": "emt-scroll-left",
|
|
3392
|
-
onClick:
|
|
3392
|
+
onClick: m[7] || (m[7] = (f) => kt(-1))
|
|
3393
3393
|
}, [
|
|
3394
3394
|
P(a(Pt), {
|
|
3395
3395
|
size: 14,
|
|
3396
3396
|
"aria-hidden": "true"
|
|
3397
3397
|
})
|
|
3398
|
-
], 10,
|
|
3398
|
+
], 10, en), [
|
|
3399
3399
|
[tt, bt.value]
|
|
3400
3400
|
])
|
|
3401
3401
|
]),
|
|
@@ -3405,18 +3405,18 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3405
3405
|
content: a(l)("common.emooTable.scrollRight")
|
|
3406
3406
|
}, {
|
|
3407
3407
|
default: w(() => [
|
|
3408
|
-
Ne(
|
|
3408
|
+
Ne(u("button", {
|
|
3409
3409
|
class: W(["emt-scrollbtn is-right", { "is-live": Ke.value === "right" }]),
|
|
3410
3410
|
type: "button",
|
|
3411
3411
|
"aria-label": a(l)("common.emooTable.scrollRight"),
|
|
3412
3412
|
"data-testid": "emt-scroll-right",
|
|
3413
|
-
onClick:
|
|
3413
|
+
onClick: m[8] || (m[8] = (f) => kt(1))
|
|
3414
3414
|
}, [
|
|
3415
3415
|
P(a(Ge), {
|
|
3416
3416
|
size: 14,
|
|
3417
3417
|
"aria-hidden": "true"
|
|
3418
3418
|
})
|
|
3419
|
-
], 10,
|
|
3419
|
+
], 10, tn), [
|
|
3420
3420
|
[tt, gt.value]
|
|
3421
3421
|
])
|
|
3422
3422
|
]),
|
|
@@ -3430,33 +3430,33 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3430
3430
|
"data-testid": "emt-loading"
|
|
3431
3431
|
}, [
|
|
3432
3432
|
P(Kt, { size: 18 })
|
|
3433
|
-
], 8,
|
|
3433
|
+
], 8, on)) : S("", !0)
|
|
3434
3434
|
], 34),
|
|
3435
|
-
P(
|
|
3435
|
+
P(rs, {
|
|
3436
3436
|
total: e.total ?? 0,
|
|
3437
3437
|
page: e.page ?? 1,
|
|
3438
3438
|
"page-size": a(y),
|
|
3439
3439
|
"page-sizes": e.pageSizes,
|
|
3440
3440
|
density: a(R),
|
|
3441
3441
|
"density-base": e.defaultDensity,
|
|
3442
|
-
"onUpdate:page":
|
|
3443
|
-
"onUpdate:pageSize":
|
|
3442
|
+
"onUpdate:page": m[9] || (m[9] = (f) => i("update:page", f)),
|
|
3443
|
+
"onUpdate:pageSize": m[10] || (m[10] = (f) => {
|
|
3444
3444
|
y.value = f, i("size-change", f);
|
|
3445
3445
|
}),
|
|
3446
|
-
"onUpdate:density":
|
|
3446
|
+
"onUpdate:density": m[11] || (m[11] = (f) => R.value = f)
|
|
3447
3447
|
}, null, 8, ["total", "page", "page-size", "page-sizes", "density", "density-base"])
|
|
3448
3448
|
], 2));
|
|
3449
3449
|
}
|
|
3450
|
-
}),
|
|
3450
|
+
}), li = /* @__PURE__ */ Y(an, [["__scopeId", "data-v-bbdd9cda"]]), ln = { class: "emoo-upload" }, sn = ["tabindex", "aria-disabled", "aria-label", "onKeydown"], nn = { class: "emoo-upload__title" }, rn = { class: "emoo-upload__browse" }, dn = {
|
|
3451
3451
|
key: 0,
|
|
3452
3452
|
class: "emoo-upload__hint"
|
|
3453
|
-
},
|
|
3453
|
+
}, un = ["accept", "multiple"], cn = ["data-testid"], mn = { class: "emoo-upload__meta" }, vn = ["disabled", "data-testid", "onClick"], fn = {
|
|
3454
3454
|
key: 0,
|
|
3455
3455
|
class: "emoo-upload__sub"
|
|
3456
|
-
},
|
|
3456
|
+
}, hn = { class: "emoo-upload__err" }, pn = {
|
|
3457
3457
|
key: 2,
|
|
3458
3458
|
class: "emoo-upload__pct"
|
|
3459
|
-
},
|
|
3459
|
+
}, yn = /* @__PURE__ */ F({
|
|
3460
3460
|
__name: "EmooUpload",
|
|
3461
3461
|
props: {
|
|
3462
3462
|
files: {},
|
|
@@ -3469,7 +3469,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3469
3469
|
},
|
|
3470
3470
|
emits: ["select", "remove", "retry", "preview"],
|
|
3471
3471
|
setup(e, { emit: n }) {
|
|
3472
|
-
const o = e, l = n, { t: r } = me(), i = U(), p = U(!1), v = ($) => $.status ?? "ready", g = () => o.disabled || o.readonly,
|
|
3472
|
+
const o = e, l = n, { t: r } = me(), i = U(), p = U(!1), v = ($) => $.status ?? "ready", g = () => o.disabled || o.readonly, c = () => {
|
|
3473
3473
|
g() || i.value?.click();
|
|
3474
3474
|
}, b = () => {
|
|
3475
3475
|
g() || (p.value = !0);
|
|
@@ -3481,7 +3481,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3481
3481
|
}, R = ($) => {
|
|
3482
3482
|
p.value = !1, _(Array.from($.dataTransfer?.files ?? []));
|
|
3483
3483
|
}, 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",
|
|
3484
|
+
return ($, I) => (t(), s("div", ln, [
|
|
3485
3485
|
e.readonly ? S("", !0) : (t(), s("div", {
|
|
3486
3486
|
key: 0,
|
|
3487
3487
|
class: W(["emoo-upload__drop", { "is-over": p.value, "is-disabled": e.disabled }]),
|
|
@@ -3492,22 +3492,22 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3492
3492
|
onDragover: le(b, ["prevent"]),
|
|
3493
3493
|
onDragleave: I[0] || (I[0] = (z) => p.value = !1),
|
|
3494
3494
|
onDrop: le(R, ["prevent"]),
|
|
3495
|
-
onClick:
|
|
3495
|
+
onClick: c,
|
|
3496
3496
|
onKeydown: [
|
|
3497
|
-
je(le(
|
|
3498
|
-
je(le(
|
|
3497
|
+
je(le(c, ["prevent"]), ["enter"]),
|
|
3498
|
+
je(le(c, ["prevent"]), ["space"])
|
|
3499
3499
|
]
|
|
3500
3500
|
}, [
|
|
3501
|
-
P(a(
|
|
3501
|
+
P(a(wo), {
|
|
3502
3502
|
class: "emoo-upload__ico",
|
|
3503
3503
|
"aria-hidden": "true"
|
|
3504
3504
|
}),
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3505
|
+
u("p", nn, [
|
|
3506
|
+
J(k(a(r)("common.emooUpload.dropTitle")) + " ", 1),
|
|
3507
|
+
u("span", rn, k(a(r)("common.emooUpload.browse")), 1)
|
|
3508
3508
|
]),
|
|
3509
|
-
e.hint ? (t(), s("p",
|
|
3510
|
-
|
|
3509
|
+
e.hint ? (t(), s("p", dn, k(e.hint), 1)) : S("", !0),
|
|
3510
|
+
u("input", {
|
|
3511
3511
|
ref_key: "inputRef",
|
|
3512
3512
|
ref: i,
|
|
3513
3513
|
type: "file",
|
|
@@ -3515,31 +3515,31 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3515
3515
|
accept: e.accept,
|
|
3516
3516
|
multiple: e.multiple,
|
|
3517
3517
|
onChange: y
|
|
3518
|
-
}, null, 40,
|
|
3519
|
-
], 42,
|
|
3518
|
+
}, null, 40, un)
|
|
3519
|
+
], 42, sn)),
|
|
3520
3520
|
e.files.length ? (t(), s("ul", {
|
|
3521
3521
|
key: 1,
|
|
3522
3522
|
class: "emoo-upload__list",
|
|
3523
3523
|
"data-testid": e.listTestId
|
|
3524
3524
|
}, [
|
|
3525
|
-
(t(!0), s(D, null,
|
|
3525
|
+
(t(!0), s(D, null, Z(e.files, (z, j) => (t(), s("li", {
|
|
3526
3526
|
key: j,
|
|
3527
3527
|
class: "emoo-upload__file"
|
|
3528
3528
|
}, [
|
|
3529
|
-
P(a(
|
|
3529
|
+
P(a(So), {
|
|
3530
3530
|
class: "emoo-upload__file-ico",
|
|
3531
3531
|
"aria-hidden": "true"
|
|
3532
3532
|
}),
|
|
3533
|
-
|
|
3534
|
-
|
|
3533
|
+
u("div", mn, [
|
|
3534
|
+
u("button", {
|
|
3535
3535
|
type: "button",
|
|
3536
3536
|
class: "emoo-upload__name",
|
|
3537
3537
|
disabled: e.disabled,
|
|
3538
3538
|
"data-testid": `upload-preview-${j}`,
|
|
3539
3539
|
onClick: (X) => l("preview", z)
|
|
3540
|
-
}, k(z.name), 9,
|
|
3541
|
-
z.size != null ? (t(), s("span",
|
|
3542
|
-
v(z) === "uploading" ? (t(), x(
|
|
3540
|
+
}, k(z.name), 9, vn),
|
|
3541
|
+
z.size != null ? (t(), s("span", fn, k(E(z.size)), 1)) : S("", !0),
|
|
3542
|
+
v(z) === "uploading" ? (t(), x(vs, {
|
|
3543
3543
|
key: 1,
|
|
3544
3544
|
class: "emoo-upload__progress",
|
|
3545
3545
|
size: "mini",
|
|
@@ -3552,11 +3552,11 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3552
3552
|
tone: "success"
|
|
3553
3553
|
}, {
|
|
3554
3554
|
default: w(() => [
|
|
3555
|
-
|
|
3555
|
+
J(k(a(r)("common.emooUpload.done")), 1)
|
|
3556
3556
|
]),
|
|
3557
3557
|
_: 1
|
|
3558
3558
|
})) : v(z) === "failed" ? (t(), s(D, { key: 1 }, [
|
|
3559
|
-
|
|
3559
|
+
u("span", hn, k(z.error || a(r)("common.emooUpload.failed")), 1),
|
|
3560
3560
|
e.readonly ? S("", !0) : (t(), x(De, {
|
|
3561
3561
|
key: 0,
|
|
3562
3562
|
variant: "text",
|
|
@@ -3564,14 +3564,14 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3564
3564
|
onClick: (X) => l("retry", z)
|
|
3565
3565
|
}, {
|
|
3566
3566
|
icon: w(() => [
|
|
3567
|
-
P(a(
|
|
3567
|
+
P(a(Mt))
|
|
3568
3568
|
]),
|
|
3569
3569
|
default: w(() => [
|
|
3570
|
-
|
|
3570
|
+
J(" " + k(a(r)("common.emooUpload.retry")), 1)
|
|
3571
3571
|
]),
|
|
3572
3572
|
_: 1
|
|
3573
3573
|
}, 8, ["onClick"]))
|
|
3574
|
-
], 64)) : v(z) === "uploading" && z.progress != null ? (t(), s("span",
|
|
3574
|
+
], 64)) : v(z) === "uploading" && z.progress != null ? (t(), s("span", pn, k(Math.round(z.progress)) + "% ", 1)) : S("", !0),
|
|
3575
3575
|
e.readonly ? S("", !0) : (t(), x(De, {
|
|
3576
3576
|
key: 3,
|
|
3577
3577
|
variant: "text",
|
|
@@ -3586,10 +3586,10 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3586
3586
|
_: 1
|
|
3587
3587
|
}, 8, ["aria-label", "onClick"]))
|
|
3588
3588
|
]))), 128))
|
|
3589
|
-
], 8,
|
|
3589
|
+
], 8, cn)) : S("", !0)
|
|
3590
3590
|
]));
|
|
3591
3591
|
}
|
|
3592
|
-
}),
|
|
3592
|
+
}), si = /* @__PURE__ */ Y(yn, [["__scopeId", "data-v-65eda28b"]]), bn = { class: "emoo-value-diff" }, gn = { class: "emoo-value-diff__old" }, kn = /* @__PURE__ */ F({
|
|
3593
3593
|
__name: "EmooValueDiff",
|
|
3594
3594
|
props: {
|
|
3595
3595
|
value: {},
|
|
@@ -3597,35 +3597,99 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
|
|
|
3597
3597
|
},
|
|
3598
3598
|
setup(e) {
|
|
3599
3599
|
const n = e, o = V(() => !!n.old && n.old !== n.value);
|
|
3600
|
-
return (l, r) => (t(), s("span",
|
|
3600
|
+
return (l, r) => (t(), s("span", bn, [
|
|
3601
3601
|
o.value ? (t(), s(D, { key: 0 }, [
|
|
3602
|
-
|
|
3603
|
-
P(a(
|
|
3602
|
+
u("span", gn, k(e.old), 1),
|
|
3603
|
+
P(a(Co), {
|
|
3604
3604
|
class: "emoo-value-diff__arrow",
|
|
3605
3605
|
"aria-hidden": "true"
|
|
3606
3606
|
})
|
|
3607
3607
|
], 64)) : S("", !0),
|
|
3608
|
-
|
|
3608
|
+
u("span", {
|
|
3609
3609
|
class: W(["emoo-value-diff__value", { "emoo-value-diff__value--changed": o.value }])
|
|
3610
3610
|
}, k(e.value), 3)
|
|
3611
3611
|
]));
|
|
3612
3612
|
}
|
|
3613
|
-
}),
|
|
3613
|
+
}), ni = /* @__PURE__ */ Y(kn, [["__scopeId", "data-v-40f98722"]]), $n = {
|
|
3614
3614
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3615
3615
|
viewBox: "0 0 256 256",
|
|
3616
3616
|
width: "1em",
|
|
3617
3617
|
height: "1em",
|
|
3618
3618
|
fill: "currentColor"
|
|
3619
|
-
},
|
|
3619
|
+
}, ii = /* @__PURE__ */ F({
|
|
3620
3620
|
__name: "IconChatCirclePlus",
|
|
3621
3621
|
setup(e) {
|
|
3622
|
-
return (n, o) => (t(), s("svg",
|
|
3623
|
-
|
|
3624
|
-
|
|
3622
|
+
return (n, o) => (t(), s("svg", $n, [...o[0] || (o[0] = [
|
|
3623
|
+
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
|
+
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
3625
|
])]));
|
|
3626
3626
|
}
|
|
3627
|
+
}), _n = ["width", "height"], wn = ["id"], Sn = ["mask"], ri = /* @__PURE__ */ F({
|
|
3628
|
+
__name: "IconPaperPlanes",
|
|
3629
|
+
props: {
|
|
3630
|
+
size: { default: "1em" }
|
|
3631
|
+
},
|
|
3632
|
+
setup(e) {
|
|
3633
|
+
const n = oo();
|
|
3634
|
+
return (o, l) => (t(), s("svg", {
|
|
3635
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3636
|
+
viewBox: "0 0 24 24",
|
|
3637
|
+
width: e.size,
|
|
3638
|
+
height: e.size,
|
|
3639
|
+
fill: "none",
|
|
3640
|
+
"aria-hidden": "true",
|
|
3641
|
+
focusable: "false",
|
|
3642
|
+
"data-testid": "icon-paper-planes"
|
|
3643
|
+
}, [
|
|
3644
|
+
u("defs", null, [
|
|
3645
|
+
u("mask", {
|
|
3646
|
+
id: a(n),
|
|
3647
|
+
maskUnits: "userSpaceOnUse",
|
|
3648
|
+
x: "0",
|
|
3649
|
+
y: "0",
|
|
3650
|
+
width: "24",
|
|
3651
|
+
height: "24",
|
|
3652
|
+
"mask-type": "luminance"
|
|
3653
|
+
}, [...l[0] || (l[0] = [
|
|
3654
|
+
u("rect", {
|
|
3655
|
+
x: "0",
|
|
3656
|
+
y: "0",
|
|
3657
|
+
width: "24",
|
|
3658
|
+
height: "24",
|
|
3659
|
+
fill: "white"
|
|
3660
|
+
}, null, -1),
|
|
3661
|
+
u("path", {
|
|
3662
|
+
d: "M7 11.5 22 6.8 17.3 21.8 13.9 15.1Z",
|
|
3663
|
+
fill: "black",
|
|
3664
|
+
stroke: "black",
|
|
3665
|
+
"stroke-width": "3.5",
|
|
3666
|
+
"stroke-linejoin": "round"
|
|
3667
|
+
}, null, -1)
|
|
3668
|
+
])], 8, wn)
|
|
3669
|
+
]),
|
|
3670
|
+
u("g", {
|
|
3671
|
+
mask: `url(#${a(n)})`,
|
|
3672
|
+
stroke: "currentColor",
|
|
3673
|
+
"stroke-width": "1.5",
|
|
3674
|
+
"stroke-linejoin": "round",
|
|
3675
|
+
"stroke-linecap": "round"
|
|
3676
|
+
}, [...l[1] || (l[1] = [
|
|
3677
|
+
u("path", { d: "M2 7.5 17 2.8 12.3 17.8 8.9 11.1Z" }, null, -1),
|
|
3678
|
+
u("path", { d: "m8.9 11.1 3.4-3.6" }, null, -1)
|
|
3679
|
+
])], 8, Sn),
|
|
3680
|
+
l[2] || (l[2] = u("g", {
|
|
3681
|
+
stroke: "currentColor",
|
|
3682
|
+
"stroke-width": "1.5",
|
|
3683
|
+
"stroke-linejoin": "round",
|
|
3684
|
+
"stroke-linecap": "round"
|
|
3685
|
+
}, [
|
|
3686
|
+
u("path", { d: "M7 11.5 22 6.8 17.3 21.8 13.9 15.1Z" }),
|
|
3687
|
+
u("path", { d: "m13.9 15.1 3.4-3.6" })
|
|
3688
|
+
], -1))
|
|
3689
|
+
], 8, _n));
|
|
3690
|
+
}
|
|
3627
3691
|
});
|
|
3628
|
-
function
|
|
3692
|
+
function di(e, n = {}) {
|
|
3629
3693
|
const o = n.bottomTolerance ?? 24, l = n.awayThreshold ?? 80, r = U(!0), i = U(!1);
|
|
3630
3694
|
let p = null;
|
|
3631
3695
|
const v = () => {
|
|
@@ -3636,7 +3700,7 @@ function li(e, n = {}) {
|
|
|
3636
3700
|
}, g = () => {
|
|
3637
3701
|
const R = e();
|
|
3638
3702
|
!R || R === p || (p && p.removeEventListener("scroll", v), p = R, R.addEventListener("scroll", v, { passive: !0 }), v());
|
|
3639
|
-
},
|
|
3703
|
+
}, c = () => {
|
|
3640
3704
|
p?.removeEventListener("scroll", v), p = null;
|
|
3641
3705
|
}, b = () => typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches, _ = () => {
|
|
3642
3706
|
!r.value || !p || p.scrollTo({ top: p.scrollHeight, behavior: "auto" });
|
|
@@ -3646,18 +3710,18 @@ function li(e, n = {}) {
|
|
|
3646
3710
|
behavior: b() ? "auto" : "smooth"
|
|
3647
3711
|
}), r.value = !0, i.value = !1, n.onDockUpdate?.(!0));
|
|
3648
3712
|
};
|
|
3649
|
-
return typeof _t == "function" && _t(
|
|
3713
|
+
return typeof _t == "function" && _t(c), { docked: r, showScrollToBottom: i, attach: g, detach: c, notifyContentChanged: _, scrollToBottom: y, handleScroll: v };
|
|
3650
3714
|
}
|
|
3651
|
-
const
|
|
3715
|
+
const Cn = 3e3, En = 5e3;
|
|
3652
3716
|
function We(e, n, o = {}) {
|
|
3653
|
-
return
|
|
3717
|
+
return co({
|
|
3654
3718
|
type: e,
|
|
3655
3719
|
message: n,
|
|
3656
|
-
duration: o.duration ?? (e === "error" ?
|
|
3720
|
+
duration: o.duration ?? (e === "error" ? En : Cn),
|
|
3657
3721
|
showClose: o.showClose ?? e === "error"
|
|
3658
3722
|
});
|
|
3659
3723
|
}
|
|
3660
|
-
const
|
|
3724
|
+
const ui = {
|
|
3661
3725
|
/** 成功反馈:3s,无按钮 */
|
|
3662
3726
|
success: (e, n) => We("success", e, n),
|
|
3663
3727
|
/** 中性信息:3s,无按钮 */
|
|
@@ -3667,10 +3731,10 @@ const si = {
|
|
|
3667
3731
|
/** 错误:5s + 关闭钮(默认)——读错要够久 */
|
|
3668
3732
|
error: (e, n) => We("error", e, n)
|
|
3669
3733
|
};
|
|
3670
|
-
async function
|
|
3734
|
+
async function ci(e, n) {
|
|
3671
3735
|
const { title: o, confirmText: l = "确认", cancelButtonText: r = "取消", tone: i = "default" } = n;
|
|
3672
3736
|
try {
|
|
3673
|
-
return await
|
|
3737
|
+
return await mo.confirm(e, o, {
|
|
3674
3738
|
type: "warning",
|
|
3675
3739
|
confirmButtonText: l,
|
|
3676
3740
|
cancelButtonText: r,
|
|
@@ -3680,71 +3744,72 @@ async function ni(e, n) {
|
|
|
3680
3744
|
return !1;
|
|
3681
3745
|
}
|
|
3682
3746
|
}
|
|
3683
|
-
function
|
|
3684
|
-
const o =
|
|
3747
|
+
function mi(e, n = !1) {
|
|
3748
|
+
const o = Eo(e, n), l = {};
|
|
3685
3749
|
for (const [r, i] of Object.entries(o))
|
|
3686
3750
|
l[r.replace("--emoo-", "--el-")] = i;
|
|
3687
3751
|
return l;
|
|
3688
3752
|
}
|
|
3689
3753
|
export {
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3754
|
+
hi as AVATAR_TINT_PALETTE,
|
|
3755
|
+
Bn as EmooActionPill,
|
|
3756
|
+
Dn as EmooActionSheet,
|
|
3757
|
+
Pn as EmooAgentSelect,
|
|
3694
3758
|
De as EmooButton,
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3759
|
+
An as EmooCard,
|
|
3760
|
+
Ln as EmooChips,
|
|
3761
|
+
na as EmooChoice,
|
|
3762
|
+
pa as EmooColumnMenu,
|
|
3763
|
+
On as EmooDrawer,
|
|
3764
|
+
Va as EmooEmpty,
|
|
3765
|
+
Un as EmooField,
|
|
3766
|
+
Hn as EmooFieldGrid,
|
|
3767
|
+
Kn as EmooGhostButton,
|
|
3768
|
+
Wn as EmooGroupLabel,
|
|
3769
|
+
Nn as EmooHistoryList,
|
|
3770
|
+
Fn as EmooMemberRoleSelect,
|
|
3771
|
+
qn as EmooMemberSelect,
|
|
3708
3772
|
xe as EmooMemberTag,
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3773
|
+
jn as EmooMessage,
|
|
3774
|
+
Gn as EmooNavMenu,
|
|
3775
|
+
Xn as EmooNavSegmented,
|
|
3776
|
+
Zn as EmooOptionRows,
|
|
3777
|
+
rs as EmooPagination,
|
|
3778
|
+
Jn as EmooPopover,
|
|
3779
|
+
vs as EmooProgress,
|
|
3780
|
+
Yn as EmooRoleSelect,
|
|
3781
|
+
Qn as EmooSearchBox,
|
|
3782
|
+
ei as EmooSegmented,
|
|
3783
|
+
ti as EmooSidebarShell,
|
|
3784
|
+
Xa as EmooSkeleton,
|
|
3721
3785
|
Kt as EmooSpinner,
|
|
3722
3786
|
Bs as EmooStatusTag,
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3787
|
+
oi as EmooSwitcherPanel,
|
|
3788
|
+
li as EmooTable,
|
|
3789
|
+
ai as EmooTagsInput,
|
|
3726
3790
|
he as EmooTooltip,
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3791
|
+
si as EmooUpload,
|
|
3792
|
+
ni as EmooValueDiff,
|
|
3793
|
+
Ks as INLINE_TOOLS_MIN_WIDTH,
|
|
3794
|
+
ii as IconChatCirclePlus,
|
|
3795
|
+
ri as IconPaperPlanes,
|
|
3731
3796
|
at as MIN_COL_WIDTH,
|
|
3732
|
-
|
|
3797
|
+
pi as PRESET_COLORS,
|
|
3733
3798
|
At as SheetDragHandle,
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3799
|
+
yi as avatarTintOf,
|
|
3800
|
+
mi as elementPlusColorVars,
|
|
3801
|
+
ci as emooConfirm,
|
|
3802
|
+
_i as emoouiMessages,
|
|
3803
|
+
ba as getDrawerWidth,
|
|
3804
|
+
bi as hexToRgbString,
|
|
3805
|
+
gi as mixColor,
|
|
3806
|
+
wa as nearestSheetTier,
|
|
3807
|
+
ki as primaryColorVars,
|
|
3808
|
+
ga as saveDrawerWidth,
|
|
3809
|
+
ui as toast,
|
|
3810
|
+
Ws as useColumnPrefs,
|
|
3811
|
+
di as useMessageScroll,
|
|
3812
|
+
Me as useRemoteOptions,
|
|
3813
|
+
Be as useSelectedOptions,
|
|
3814
|
+
Sa as useSheetHeightDrag
|
|
3750
3815
|
};
|