@emoo-ai/ui-vue 0.1.11 → 0.1.13
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/EmooColumnMenu.vue.d.ts +8 -2
- package/dist/components/EmooTable.vue.d.ts +2 -0
- package/dist/composables/useColumnPrefs.d.ts +5 -0
- package/dist/icons.js +2 -2
- package/dist/index.js +686 -668
- package/dist/locales/cn.d.ts +1 -0
- package/dist/locales/en.d.ts +1 -0
- package/dist/locales.js +2 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as N, openBlock as t, createElementBlock as s, createBlock as x, resolveDynamicComponent as Ie, createCommentVNode as
|
|
1
|
+
import { defineComponent as N, openBlock as t, createElementBlock as s, createBlock as x, resolveDynamicComponent as Ie, createCommentVNode as w, createElementVNode as u, toDisplayString as k, withModifiers as le, normalizeClass as W, computed as R, unref as a, mergeProps as Xe, withCtx as S, createVNode as D, renderSlot as A, Fragment as P, 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 _e, useAttrs as De, onMounted as Ze, withDirectives as Fe, vShow as tt, normalizeProps as Ne, guardReactiveProps as qe, onUnmounted as Ct, useSlots as Et, withKeys as je, h as ve, useId as oo, onScopeDispose as wt } from "vue";
|
|
2
2
|
import { ElDrawer as Tt, ElTooltip as ao, ElSelect as Ae, ElOption as ze, ElCheckboxGroup as xt, ElCheckbox as st, ElRadioGroup as It, ElRadio as zt, ElDropdown as nt, ElButton as et, ElInput as ot, ElDropdownMenu as lo, vLoading as so, ElDropdownItem as no, ElPopover as io, ElTag as ro, ElTable as uo, ElTableColumn as Ve, ElMessage as co, ElMessageBox as mo } from "element-plus";
|
|
3
3
|
import { useI18n as me } from "vue-i18n";
|
|
4
|
-
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
|
|
5
|
-
import { fileIconGlyph as
|
|
6
|
-
import { primaryColorVars as
|
|
7
|
-
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, PhTextAlignLeft as yo, PhEyeSlash as Vt, PhEye as bo, PhArrowCounterClockwise as Bt, PhMagnifyingGlass as go, PhSlidersHorizontal as ko, PhDotsThree as Mt, PhCaretRight as Ge, PhArrowsVertical as $o, PhCheck as Pt, PhCaretLeft as Dt, PhDotsSixVertical as _t, PhCaretUpDown as wo, PhPushPin as _o, PhUploadSimple as So, PhFileText as Co, PhArrowRight as Eo } from "./icons.js";
|
|
5
|
+
import { fileIconGlyph as To, fileIconViewBox as xo } from "@emoo-ai/brand/file-icons";
|
|
6
|
+
import { primaryColorVars as Io } from "@emoo-ai/brand/colors";
|
|
7
|
+
import { AVATAR_TINT_PALETTE as wi, PRESET_COLORS as _i, avatarTintOf as Si, hexToRgbString as Ci, mixColor as Ei, primaryColorVars as Ti } from "@emoo-ai/brand/colors";
|
|
8
8
|
import "element-plus/es/components/message-box/style/css";
|
|
9
|
-
import { emoouiMessages as
|
|
9
|
+
import { emoouiMessages as Ii } from "./locales.js";
|
|
10
10
|
import "element-plus/es/components/message/style/css";
|
|
11
|
-
const
|
|
11
|
+
const zo = { class: "emoo-action-pill__label" }, Ro = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "emoo-action-pill__kbd"
|
|
14
|
-
},
|
|
14
|
+
}, Vo = /* @__PURE__ */ N({
|
|
15
15
|
__name: "EmooActionPill",
|
|
16
16
|
props: {
|
|
17
17
|
icon: {},
|
|
@@ -29,9 +29,9 @@ const Io = { class: "emoo-action-pill__label" }, zo = {
|
|
|
29
29
|
e.icon ? (t(), x(Ie(e.icon), {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "emoo-action-pill__icon"
|
|
32
|
-
})) :
|
|
33
|
-
u("span",
|
|
34
|
-
e.kbd ? (t(), s("kbd",
|
|
32
|
+
})) : w("", !0),
|
|
33
|
+
u("span", zo, k(e.label), 1),
|
|
34
|
+
e.kbd ? (t(), s("kbd", Ro, k(e.kbd), 1)) : w("", !0)
|
|
35
35
|
]));
|
|
36
36
|
}
|
|
37
37
|
}), Y = (e, n) => {
|
|
@@ -39,7 +39,7 @@ const Io = { class: "emoo-action-pill__label" }, zo = {
|
|
|
39
39
|
for (const [l, r] of n)
|
|
40
40
|
o[l] = r;
|
|
41
41
|
return o;
|
|
42
|
-
},
|
|
42
|
+
}, Un = /* @__PURE__ */ Y(Vo, [["__scopeId", "data-v-f9e9873a"]]), Bo = /* @__PURE__ */ N({
|
|
43
43
|
__name: "SheetDragHandle",
|
|
44
44
|
props: {
|
|
45
45
|
dragging: { type: Boolean },
|
|
@@ -55,10 +55,10 @@ const Io = { class: "emoo-action-pill__label" }, zo = {
|
|
|
55
55
|
u("span", { class: "sheet-drag-handle__bar" }, null, -1)
|
|
56
56
|
])], 34));
|
|
57
57
|
}
|
|
58
|
-
}), At = /* @__PURE__ */ Y(
|
|
58
|
+
}), At = /* @__PURE__ */ Y(Bo, [["__scopeId", "data-v-ef0108a1"]]), Mo = { class: "emoo-asheet" }, Po = {
|
|
59
59
|
key: 0,
|
|
60
60
|
class: "emoo-asheet__title"
|
|
61
|
-
}, Do = { class: "emoo-asheet__list" },
|
|
61
|
+
}, Do = { class: "emoo-asheet__list" }, Ao = ["disabled", "data-testid", "onClick"], Hn = /* @__PURE__ */ N({
|
|
62
62
|
inheritAttrs: !1,
|
|
63
63
|
__name: "EmooActionSheet",
|
|
64
64
|
props: {
|
|
@@ -87,13 +87,13 @@ const Io = { class: "emoo-action-pill__label" }, zo = {
|
|
|
87
87
|
"with-header": !1,
|
|
88
88
|
class: "emoo-action-sheet"
|
|
89
89
|
}), {
|
|
90
|
-
default:
|
|
91
|
-
u("div",
|
|
92
|
-
|
|
93
|
-
e.title ? (t(), s("p",
|
|
90
|
+
default: S(() => [
|
|
91
|
+
u("div", Mo, [
|
|
92
|
+
D(At),
|
|
93
|
+
e.title ? (t(), s("p", Po, k(e.title), 1)) : w("", !0),
|
|
94
94
|
u("div", Do, [
|
|
95
95
|
A(v.$slots, "default"),
|
|
96
|
-
v.$slots.default ?
|
|
96
|
+
v.$slots.default ? w("", !0) : (t(!0), s(P, { key: 0 }, Z(e.items, (c, b) => (t(), s("button", {
|
|
97
97
|
key: c.key,
|
|
98
98
|
type: "button",
|
|
99
99
|
class: W(["emoo-asheet__item", { "is-danger": c.danger }]),
|
|
@@ -104,9 +104,9 @@ const Io = { class: "emoo-action-pill__label" }, zo = {
|
|
|
104
104
|
c.icon ? (t(), x(Ie(c.icon), {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "emoo-asheet__ic"
|
|
107
|
-
})) :
|
|
107
|
+
})) : w("", !0),
|
|
108
108
|
u("span", null, k(c.label), 1)
|
|
109
|
-
], 10,
|
|
109
|
+
], 10, Ao))), 128))
|
|
110
110
|
]),
|
|
111
111
|
e.cancelText ? (t(), s("button", {
|
|
112
112
|
key: 1,
|
|
@@ -114,7 +114,7 @@ const Io = { class: "emoo-action-pill__label" }, zo = {
|
|
|
114
114
|
class: "emoo-asheet__cancel",
|
|
115
115
|
"data-testid": "emoo-asheet-cancel",
|
|
116
116
|
onClick: p
|
|
117
|
-
}, k(e.cancelText), 1)) :
|
|
117
|
+
}, k(e.cancelText), 1)) : w("", !0)
|
|
118
118
|
])
|
|
119
119
|
]),
|
|
120
120
|
_: 3
|
|
@@ -134,24 +134,24 @@ const Io = { class: "emoo-action-pill__label" }, zo = {
|
|
|
134
134
|
"show-after": e.showAfter,
|
|
135
135
|
"popper-class": o.value
|
|
136
136
|
}), Se({
|
|
137
|
-
default:
|
|
137
|
+
default: S(() => [
|
|
138
138
|
A(l.$slots, "default")
|
|
139
139
|
]),
|
|
140
140
|
_: 2
|
|
141
141
|
}, [
|
|
142
142
|
l.$slots.content ? {
|
|
143
143
|
name: "content",
|
|
144
|
-
fn:
|
|
144
|
+
fn: S(() => [
|
|
145
145
|
A(l.$slots, "content")
|
|
146
146
|
]),
|
|
147
147
|
key: "0"
|
|
148
148
|
} : void 0
|
|
149
149
|
]), 1040, ["placement", "show-after", "popper-class"]));
|
|
150
150
|
}
|
|
151
|
-
}),
|
|
151
|
+
}), Lo = { class: "emoo-mtags" }, Oo = ["src", "onError"], Uo = { class: "emoo-mtag__name" }, Ho = ["aria-label", "onClick"], Ko = {
|
|
152
152
|
class: "emoo-mtag emoo-mtag--more",
|
|
153
153
|
"data-testid": "emoo-mtag-more"
|
|
154
|
-
},
|
|
154
|
+
}, Wo = /* @__PURE__ */ N({
|
|
155
155
|
__name: "EmooMemberTag",
|
|
156
156
|
props: {
|
|
157
157
|
items: {},
|
|
@@ -162,8 +162,8 @@ const Io = { class: "emoo-action-pill__label" }, zo = {
|
|
|
162
162
|
emits: ["remove"],
|
|
163
163
|
setup(e) {
|
|
164
164
|
const { t: n } = me(), o = e, l = R(() => o.items.slice(0, o.max)), r = St(/* @__PURE__ */ new Set()), i = R(() => Math.max(0, o.items.length - o.max)), p = R(() => o.items.slice(o.max).map((v) => v.name).join("、"));
|
|
165
|
-
return (v, g) => (t(), s("span",
|
|
166
|
-
(t(!0), s(
|
|
165
|
+
return (v, g) => (t(), s("span", Lo, [
|
|
166
|
+
(t(!0), s(P, null, Z(l.value, (c, b) => (t(), s("span", {
|
|
167
167
|
key: `${c.name}-${b}`,
|
|
168
168
|
class: "emoo-mtag",
|
|
169
169
|
style: pe({ "--tint": c.color || "var(--el-color-primary)" })
|
|
@@ -178,11 +178,11 @@ const Io = { class: "emoo-action-pill__label" }, zo = {
|
|
|
178
178
|
alt: "",
|
|
179
179
|
class: "emoo-mtag__img",
|
|
180
180
|
onError: (_) => r.add(b)
|
|
181
|
-
}, null, 40,
|
|
181
|
+
}, null, 40, Oo)) : (t(), s(P, { key: 1 }, [
|
|
182
182
|
J(k(c.name[0]), 1)
|
|
183
183
|
], 64))
|
|
184
184
|
], 2),
|
|
185
|
-
u("span",
|
|
185
|
+
u("span", Uo, k(c.name), 1),
|
|
186
186
|
e.removable ? (t(), s("button", {
|
|
187
187
|
key: 0,
|
|
188
188
|
type: "button",
|
|
@@ -190,21 +190,21 @@ const Io = { class: "emoo-action-pill__label" }, zo = {
|
|
|
190
190
|
"aria-label": a(n)("common.emooMemberTag.remove", { name: c.name }),
|
|
191
191
|
onClick: (_) => v.$emit("remove", b)
|
|
192
192
|
}, [
|
|
193
|
-
|
|
194
|
-
], 8,
|
|
193
|
+
D(a(it), { size: 10 })
|
|
194
|
+
], 8, Ho)) : w("", !0)
|
|
195
195
|
], 4))), 128)),
|
|
196
196
|
i.value > 0 ? (t(), x(he, {
|
|
197
197
|
key: 0,
|
|
198
198
|
content: p.value
|
|
199
199
|
}, {
|
|
200
|
-
default:
|
|
201
|
-
u("span",
|
|
200
|
+
default: S(() => [
|
|
201
|
+
u("span", Ko, "+" + k(i.value), 1)
|
|
202
202
|
]),
|
|
203
203
|
_: 1
|
|
204
|
-
}, 8, ["content"])) :
|
|
204
|
+
}, 8, ["content"])) : w("", !0)
|
|
205
205
|
]));
|
|
206
206
|
}
|
|
207
|
-
}), xe = /* @__PURE__ */ Y(
|
|
207
|
+
}), xe = /* @__PURE__ */ Y(Wo, [["__scopeId", "data-v-33f4fffc"]]);
|
|
208
208
|
function Be(e, n) {
|
|
209
209
|
const o = U([]), l = U(!1), r = U(!0), i = U(null), p = `${n}-${eo()?.uid ?? Math.random().toString(36).slice(2)}`, v = `${n} ${p}`;
|
|
210
210
|
let g = 1, c = "", b, _ = null, y = 0, V = null;
|
|
@@ -229,7 +229,7 @@ function Be(e, n) {
|
|
|
229
229
|
for (const te of de)
|
|
230
230
|
ce.has(te.id) || (ce.add(te.id), H.push(te));
|
|
231
231
|
return H;
|
|
232
|
-
},
|
|
232
|
+
}, G = (q) => {
|
|
233
233
|
$(), i.value = null, _ = setTimeout(() => {
|
|
234
234
|
_ = null, I(1, q.trim(), !1);
|
|
235
235
|
}, 300);
|
|
@@ -270,28 +270,28 @@ function Be(e, n) {
|
|
|
270
270
|
};
|
|
271
271
|
return lt(() => {
|
|
272
272
|
$(), se();
|
|
273
|
-
}), { items: o, loading: l, hasMore: r, error: i, search:
|
|
273
|
+
}), { items: o, loading: l, hasMore: r, error: i, search: G, retry: ie, ensureFirstPage: X, loadMore: ee, onVisibleChange: ye, popperClass: v };
|
|
274
274
|
}
|
|
275
275
|
function Me(e, n, o) {
|
|
276
276
|
const l = to([]), r = (g) => Array.isArray(g) ? g : g == null ? [] : [g], i = (g) => {
|
|
277
277
|
const c = new Map([...l.value, ...o(), ...n()].map((b) => [b.id, b]));
|
|
278
278
|
return l.value = r(g).map((b) => c.get(b)).filter((b) => b !== void 0), l.value;
|
|
279
279
|
};
|
|
280
|
-
|
|
280
|
+
_e(() => [e(), n(), o()], () => i(e()), { immediate: !0, deep: !0, flush: "sync" });
|
|
281
281
|
const p = R(() => {
|
|
282
282
|
const g = n();
|
|
283
283
|
return [...l.value.filter((c) => !g.some((b) => b.id === c.id)), ...g];
|
|
284
284
|
}), v = R(() => r(e()).map((g) => l.value.find((c) => c.id === g)).filter((g) => g !== void 0));
|
|
285
285
|
return { mergedOptions: p, selectedOptions: v, remember: i };
|
|
286
286
|
}
|
|
287
|
-
const
|
|
287
|
+
const Fo = { class: "emoo-asel__opt" }, No = { class: "emoo-asel__avatar" }, qo = ["src"], jo = { class: "emoo-asel__name" }, Go = {
|
|
288
288
|
key: 0,
|
|
289
289
|
class: "emoo-asel__sub"
|
|
290
|
-
},
|
|
290
|
+
}, Xo = {
|
|
291
291
|
class: "emoo-sel-remote-error",
|
|
292
292
|
role: "alert",
|
|
293
293
|
"data-testid": "remote-error"
|
|
294
|
-
},
|
|
294
|
+
}, Zo = /* @__PURE__ */ N({
|
|
295
295
|
__name: "EmooAgentSelect",
|
|
296
296
|
props: {
|
|
297
297
|
modelValue: {},
|
|
@@ -309,7 +309,7 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
309
309
|
() => o.modelValue,
|
|
310
310
|
() => i.value ? p.value : o.options ?? [],
|
|
311
311
|
() => o.selected ?? []
|
|
312
|
-
), z = (d) => E.value.find((T) => T.id === d),
|
|
312
|
+
), z = (d) => E.value.find((T) => T.id === d), G = De(), X = R(() => G.disabled !== void 0 && G.disabled !== !1);
|
|
313
313
|
Ze(() => {
|
|
314
314
|
const d = o.modelValue, T = Array.isArray(d) ? d.length > 0 : d != null, M = Array.isArray(d) ? d : [d];
|
|
315
315
|
i.value && T && M.some((se) => se !== null && !z(se)) && _();
|
|
@@ -336,26 +336,26 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
336
336
|
"onUpdate:modelValue": ie,
|
|
337
337
|
onVisibleChange: a(y)
|
|
338
338
|
}, Se({
|
|
339
|
-
default:
|
|
340
|
-
(t(!0), s(
|
|
339
|
+
default: S(() => [
|
|
340
|
+
(t(!0), s(P, null, Z(a(E), (M) => (t(), x(a(ze), {
|
|
341
341
|
key: M.id,
|
|
342
342
|
label: M.name,
|
|
343
343
|
value: M.id
|
|
344
344
|
}, {
|
|
345
|
-
default:
|
|
346
|
-
u("span",
|
|
347
|
-
u("span",
|
|
345
|
+
default: S(() => [
|
|
346
|
+
u("span", Fo, [
|
|
347
|
+
u("span", No, [
|
|
348
348
|
M.avatar ? (t(), s("img", {
|
|
349
349
|
key: 0,
|
|
350
350
|
src: M.avatar,
|
|
351
351
|
alt: "",
|
|
352
352
|
class: "emoo-asel__img"
|
|
353
|
-
}, null, 8,
|
|
353
|
+
}, null, 8, qo)) : (t(), s(P, { key: 1 }, [
|
|
354
354
|
J(k(M.name[0]), 1)
|
|
355
355
|
], 64))
|
|
356
356
|
]),
|
|
357
|
-
u("span",
|
|
358
|
-
M.sub ? (t(), s("span",
|
|
357
|
+
u("span", jo, k(M.name), 1),
|
|
358
|
+
M.sub ? (t(), s("span", Go, k(M.sub), 1)) : w("", !0)
|
|
359
359
|
])
|
|
360
360
|
]),
|
|
361
361
|
_: 2
|
|
@@ -365,8 +365,8 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
365
365
|
}, [
|
|
366
366
|
e.multiple ? {
|
|
367
367
|
name: "tag",
|
|
368
|
-
fn:
|
|
369
|
-
|
|
368
|
+
fn: S(() => [
|
|
369
|
+
D(xe, {
|
|
370
370
|
square: "",
|
|
371
371
|
items: a($),
|
|
372
372
|
max: e.collapse,
|
|
@@ -377,19 +377,19 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
377
377
|
key: "1"
|
|
378
378
|
} : {
|
|
379
379
|
name: "label",
|
|
380
|
-
fn:
|
|
380
|
+
fn: S(({ value: M }) => [
|
|
381
381
|
z(M) ? (t(), x(xe, {
|
|
382
382
|
key: 0,
|
|
383
383
|
square: "",
|
|
384
384
|
items: [z(M)]
|
|
385
|
-
}, null, 8, ["items"])) :
|
|
385
|
+
}, null, 8, ["items"])) : w("", !0)
|
|
386
386
|
]),
|
|
387
387
|
key: "0"
|
|
388
388
|
},
|
|
389
389
|
a(g) ? {
|
|
390
390
|
name: "footer",
|
|
391
|
-
fn:
|
|
392
|
-
u("div",
|
|
391
|
+
fn: S(() => [
|
|
392
|
+
u("div", Xo, [
|
|
393
393
|
u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
|
|
394
394
|
u("button", {
|
|
395
395
|
type: "button",
|
|
@@ -403,11 +403,11 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
403
403
|
} : void 0
|
|
404
404
|
]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
|
|
405
405
|
}
|
|
406
|
-
}),
|
|
406
|
+
}), Kn = /* @__PURE__ */ Y(Zo, [["__scopeId", "data-v-465d3a49"]]), Jo = ["type", "disabled", "aria-busy"], Yo = {
|
|
407
407
|
key: 0,
|
|
408
408
|
class: "emoo-button__icon",
|
|
409
409
|
"aria-hidden": "true"
|
|
410
|
-
},
|
|
410
|
+
}, Qo = /* @__PURE__ */ N({
|
|
411
411
|
__name: "EmooButton",
|
|
412
412
|
props: {
|
|
413
413
|
variant: { default: "secondary" },
|
|
@@ -429,47 +429,47 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
429
429
|
disabled: e.disabled || e.loading,
|
|
430
430
|
"aria-busy": e.loading || void 0
|
|
431
431
|
}, [
|
|
432
|
-
e.loading || n.$slots.icon ? (t(), s("span",
|
|
432
|
+
e.loading || n.$slots.icon ? (t(), s("span", Yo, [
|
|
433
433
|
e.loading ? (t(), x(a(vo), {
|
|
434
434
|
key: 0,
|
|
435
435
|
class: "emoo-button__spinner"
|
|
436
436
|
})) : A(n.$slots, "icon", {}, void 0, !0, 1)
|
|
437
|
-
])) :
|
|
437
|
+
])) : w("", !0),
|
|
438
438
|
A(n.$slots, "default", {}, void 0, !0)
|
|
439
|
-
], 10,
|
|
439
|
+
], 10, Jo));
|
|
440
440
|
}
|
|
441
|
-
}),
|
|
441
|
+
}), Pe = /* @__PURE__ */ Y(Qo, [["__scopeId", "data-v-6415e495"]]), ea = { class: "emoo-card" }, ta = {
|
|
442
442
|
key: 0,
|
|
443
443
|
class: "emoo-card__header"
|
|
444
|
-
},
|
|
444
|
+
}, oa = {
|
|
445
445
|
key: 1,
|
|
446
446
|
class: "emoo-card__footer"
|
|
447
|
-
},
|
|
447
|
+
}, aa = /* @__PURE__ */ N({
|
|
448
448
|
__name: "EmooCard",
|
|
449
449
|
props: {
|
|
450
450
|
flush: { type: Boolean, default: !1 }
|
|
451
451
|
},
|
|
452
452
|
setup(e) {
|
|
453
|
-
return (n, o) => (t(), s("div",
|
|
454
|
-
n.$slots.header ? (t(), s("div",
|
|
453
|
+
return (n, o) => (t(), s("div", ea, [
|
|
454
|
+
n.$slots.header ? (t(), s("div", ta, [
|
|
455
455
|
A(n.$slots, "header", {}, void 0, !0)
|
|
456
|
-
])) :
|
|
456
|
+
])) : w("", !0),
|
|
457
457
|
u("div", {
|
|
458
458
|
class: W(["emoo-card__body", { "emoo-card__body--flush": e.flush }])
|
|
459
459
|
}, [
|
|
460
460
|
A(n.$slots, "default", {}, void 0, !0)
|
|
461
461
|
], 2),
|
|
462
|
-
n.$slots.footer ? (t(), s("div",
|
|
462
|
+
n.$slots.footer ? (t(), s("div", oa, [
|
|
463
463
|
A(n.$slots, "footer", {}, void 0, !0)
|
|
464
|
-
])) :
|
|
464
|
+
])) : w("", !0)
|
|
465
465
|
]));
|
|
466
466
|
}
|
|
467
|
-
}),
|
|
467
|
+
}), Wn = /* @__PURE__ */ Y(aa, [["__scopeId", "data-v-4fffe6bc"]]), la = ["data-testid"], sa = {
|
|
468
468
|
key: 0,
|
|
469
469
|
class: "emoo-chips__more",
|
|
470
470
|
"data-testid": "emoo-chips-more"
|
|
471
|
-
},
|
|
472
|
-
...
|
|
471
|
+
}, na = { name: "EmooChips" }, ia = /* @__PURE__ */ N({
|
|
472
|
+
...na,
|
|
473
473
|
props: {
|
|
474
474
|
items: {},
|
|
475
475
|
labelOf: {},
|
|
@@ -483,15 +483,15 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
483
483
|
return;
|
|
484
484
|
}
|
|
485
485
|
const V = _.map((z) => z.offsetWidth);
|
|
486
|
-
if (V.reduce((z,
|
|
486
|
+
if (V.reduce((z, G) => z + G, 0) + n.gap * (_.length - 1) <= y) {
|
|
487
487
|
r.value = _.length, i.value = 0;
|
|
488
488
|
return;
|
|
489
489
|
}
|
|
490
490
|
let $ = 0, I = 0;
|
|
491
491
|
for (const z of V) {
|
|
492
|
-
const
|
|
493
|
-
if (
|
|
494
|
-
$ =
|
|
492
|
+
const G = I === 0 ? z : $ + n.gap + z;
|
|
493
|
+
if (G > y - v) break;
|
|
494
|
+
$ = G, I++;
|
|
495
495
|
}
|
|
496
496
|
r.value = Math.max(1, I), i.value = _.length - r.value;
|
|
497
497
|
}, c = () => {
|
|
@@ -500,18 +500,18 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
500
500
|
let b = null;
|
|
501
501
|
return Ze(() => {
|
|
502
502
|
ke(g), setTimeout(c, 400), o.value && (b = new ResizeObserver(c), b.observe(o.value));
|
|
503
|
-
}), lt(() => b?.disconnect()),
|
|
503
|
+
}), lt(() => b?.disconnect()), _e(() => n.items, c), (_, y) => (t(), x(he, {
|
|
504
504
|
content: p.value,
|
|
505
505
|
disabled: i.value === 0
|
|
506
506
|
}, {
|
|
507
|
-
default:
|
|
507
|
+
default: S(() => [
|
|
508
508
|
u("div", {
|
|
509
509
|
ref_key: "wrapRef",
|
|
510
510
|
ref: o,
|
|
511
511
|
class: "emoo-chips",
|
|
512
512
|
style: pe({ gap: `${e.gap}px` })
|
|
513
513
|
}, [
|
|
514
|
-
(t(!0), s(
|
|
514
|
+
(t(!0), s(P, null, Z(e.items, (V, E) => Fe((t(), s("span", {
|
|
515
515
|
key: E,
|
|
516
516
|
ref_for: !0,
|
|
517
517
|
ref_key: "chipRefs",
|
|
@@ -523,16 +523,16 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
523
523
|
item: V,
|
|
524
524
|
index: E
|
|
525
525
|
}, void 0, !0)
|
|
526
|
-
], 8,
|
|
526
|
+
], 8, la)), [
|
|
527
527
|
[tt, E < r.value]
|
|
528
528
|
])), 128)),
|
|
529
|
-
i.value > 0 ? (t(), s("span",
|
|
529
|
+
i.value > 0 ? (t(), s("span", sa, "+" + k(i.value), 1)) : w("", !0)
|
|
530
530
|
], 4)
|
|
531
531
|
]),
|
|
532
532
|
_: 3
|
|
533
533
|
}, 8, ["content", "disabled"]));
|
|
534
534
|
}
|
|
535
|
-
}),
|
|
535
|
+
}), Fn = /* @__PURE__ */ Y(ia, [["__scopeId", "data-v-1c5db445"]]), ra = /* @__PURE__ */ N({
|
|
536
536
|
__name: "EmooChoice",
|
|
537
537
|
props: {
|
|
538
538
|
options: {},
|
|
@@ -546,7 +546,7 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
546
546
|
},
|
|
547
547
|
emits: ["update:modelValue"],
|
|
548
548
|
setup(e, { emit: n }) {
|
|
549
|
-
const o = e, l = n, r =
|
|
549
|
+
const o = e, l = n, r = De(), i = R(() => Array.isArray(o.modelValue) ? o.modelValue.length > 0 : o.modelValue !== void 0 && o.modelValue !== null), p = (b) => {
|
|
550
550
|
!b.currentTarget.contains(b.relatedTarget) && typeof r.onBlur == "function" && r.onBlur(b);
|
|
551
551
|
}, v = () => {
|
|
552
552
|
const b = o.multiple ? [] : void 0;
|
|
@@ -574,15 +574,15 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
574
574
|
"value-on-clear": void 0,
|
|
575
575
|
"onUpdate:modelValue": c
|
|
576
576
|
}, Se({
|
|
577
|
-
default:
|
|
578
|
-
(t(!0), s(
|
|
577
|
+
default: S(() => [
|
|
578
|
+
(t(!0), s(P, null, Z(e.options, (y) => (t(), x(a(ze), {
|
|
579
579
|
key: `${typeof y.value}:${y.value}`,
|
|
580
580
|
value: y.value,
|
|
581
581
|
label: y.label,
|
|
582
582
|
disabled: y.disabled,
|
|
583
583
|
"data-testid": e.testid ? `${e.testid}-${String(y.value)}` : void 0
|
|
584
584
|
}, {
|
|
585
|
-
default:
|
|
585
|
+
default: S(() => [
|
|
586
586
|
A(b.$slots, "option", { option: y }, () => [
|
|
587
587
|
J(k(y.label), 1)
|
|
588
588
|
], !0)
|
|
@@ -594,21 +594,21 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
594
594
|
}, [
|
|
595
595
|
b.$slots.label ? {
|
|
596
596
|
name: "label",
|
|
597
|
-
fn:
|
|
597
|
+
fn: S((y) => [
|
|
598
598
|
A(b.$slots, "label", Ne(qe(y)), void 0, !0)
|
|
599
599
|
]),
|
|
600
600
|
key: "0"
|
|
601
601
|
} : void 0,
|
|
602
602
|
b.$slots.prefix ? {
|
|
603
603
|
name: "prefix",
|
|
604
|
-
fn:
|
|
604
|
+
fn: S(() => [
|
|
605
605
|
A(b.$slots, "prefix", {}, void 0, !0)
|
|
606
606
|
]),
|
|
607
607
|
key: "1"
|
|
608
608
|
} : void 0,
|
|
609
609
|
b.$slots.tag ? {
|
|
610
610
|
name: "tag",
|
|
611
|
-
fn:
|
|
611
|
+
fn: S((y) => [
|
|
612
612
|
A(b.$slots, "tag", Ne(qe(y)), void 0, !0)
|
|
613
613
|
]),
|
|
614
614
|
key: "2"
|
|
@@ -622,21 +622,21 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
622
622
|
"onUpdate:modelValue": c,
|
|
623
623
|
onFocusout: p
|
|
624
624
|
}, {
|
|
625
|
-
default:
|
|
626
|
-
(t(!0), s(
|
|
625
|
+
default: S(() => [
|
|
626
|
+
(t(!0), s(P, null, Z(e.options, (y) => (t(), x(a(st), {
|
|
627
627
|
key: `${typeof y.value}:${y.value}`,
|
|
628
628
|
value: y.value,
|
|
629
629
|
disabled: y.disabled,
|
|
630
630
|
"data-testid": e.testid ? `${e.testid}-${String(y.value)}` : void 0
|
|
631
631
|
}, {
|
|
632
|
-
default:
|
|
632
|
+
default: S(() => [
|
|
633
633
|
A(b.$slots, "option", { option: y }, () => [
|
|
634
634
|
J(k(y.label), 1)
|
|
635
635
|
], !0)
|
|
636
636
|
]),
|
|
637
637
|
_: 2
|
|
638
638
|
}, 1032, ["value", "disabled", "data-testid"]))), 128)),
|
|
639
|
-
e.clearable && i.value ? (t(), x(
|
|
639
|
+
e.clearable && i.value ? (t(), x(Pe, {
|
|
640
640
|
key: 0,
|
|
641
641
|
variant: "text",
|
|
642
642
|
size: "small",
|
|
@@ -645,11 +645,11 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
645
645
|
"aria-label": b.$t("common.emooSelect.clearSelection"),
|
|
646
646
|
onClick: le(v, ["stop"])
|
|
647
647
|
}, {
|
|
648
|
-
default:
|
|
649
|
-
|
|
648
|
+
default: S(() => [
|
|
649
|
+
D(a(it), { size: 12 })
|
|
650
650
|
]),
|
|
651
651
|
_: 1
|
|
652
|
-
}, 8, ["disabled", "aria-label"])) :
|
|
652
|
+
}, 8, ["disabled", "aria-label"])) : w("", !0)
|
|
653
653
|
]),
|
|
654
654
|
_: 3
|
|
655
655
|
}, 8, ["model-value", "disabled", "aria-label"])) : (t(), x(a(It), {
|
|
@@ -661,15 +661,15 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
661
661
|
"onUpdate:modelValue": c,
|
|
662
662
|
onFocusout: p
|
|
663
663
|
}, {
|
|
664
|
-
default:
|
|
665
|
-
(t(!0), s(
|
|
664
|
+
default: S(() => [
|
|
665
|
+
(t(!0), s(P, null, Z(e.options, (y) => (t(), x(a(zt), {
|
|
666
666
|
key: `${typeof y.value}:${y.value}`,
|
|
667
667
|
value: y.value,
|
|
668
668
|
disabled: y.disabled,
|
|
669
669
|
"data-testid": e.testid ? `${e.testid}-${String(y.value)}` : void 0,
|
|
670
670
|
onClickCapture: (V) => g(y, V)
|
|
671
671
|
}, {
|
|
672
|
-
default:
|
|
672
|
+
default: S(() => [
|
|
673
673
|
A(b.$slots, "option", { option: y }, () => [
|
|
674
674
|
J(k(y.label), 1)
|
|
675
675
|
], !0)
|
|
@@ -680,7 +680,7 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
680
680
|
_: 3
|
|
681
681
|
}, 8, ["model-value", "disabled", "aria-label"]));
|
|
682
682
|
}
|
|
683
|
-
}),
|
|
683
|
+
}), da = /* @__PURE__ */ Y(ra, [["__scopeId", "data-v-d18fb571"]]), ua = { class: "emt-colmenu__list" }, ca = ["data-testid"], ma = ["data-testid"], va = ["data-testid"], fa = ["data-testid"], ha = ["data-testid"], pa = ["data-testid"], ya = ["disabled", "data-testid"], ba = { class: "emt-colmenu__section" }, ga = ["data-testid", "onClick"], ka = /* @__PURE__ */ N({
|
|
684
684
|
__name: "EmooColumnMenu",
|
|
685
685
|
props: {
|
|
686
686
|
colKey: {},
|
|
@@ -688,11 +688,13 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
688
688
|
sorted: { default: null },
|
|
689
689
|
pinsEnabled: { type: Boolean, default: !1 },
|
|
690
690
|
fixed: { default: "" },
|
|
691
|
+
wrapEnabled: { type: Boolean, default: !1 },
|
|
692
|
+
wrapped: { type: Boolean, default: !1 },
|
|
691
693
|
canHide: { type: Boolean, default: !0 },
|
|
692
694
|
hidden: { default: () => [] },
|
|
693
695
|
resettable: { type: Boolean, default: !1 }
|
|
694
696
|
},
|
|
695
|
-
emits: ["sort", "unpin", "pin", "hide", "restore", "reset"],
|
|
697
|
+
emits: ["sort", "unpin", "pin", "wrap", "hide", "restore", "reset"],
|
|
696
698
|
setup(e, { emit: n }) {
|
|
697
699
|
const o = n, { t: l } = me();
|
|
698
700
|
return (r, i) => (t(), x(a(nt), {
|
|
@@ -700,38 +702,38 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
700
702
|
placement: "bottom-end",
|
|
701
703
|
"popper-class": "emt-colmenu"
|
|
702
704
|
}, {
|
|
703
|
-
dropdown:
|
|
704
|
-
u("div",
|
|
705
|
-
e.sortable ? (t(), s(
|
|
705
|
+
dropdown: S(() => [
|
|
706
|
+
u("div", ua, [
|
|
707
|
+
e.sortable ? (t(), s(P, { key: 0 }, [
|
|
706
708
|
u("button", {
|
|
707
709
|
class: W(["emt-colmenu__item", { "is-on": e.sorted === "ascending" }]),
|
|
708
710
|
type: "button",
|
|
709
711
|
"data-testid": `emcm-sort-asc-${e.colKey}`,
|
|
710
712
|
onClick: i[0] || (i[0] = (p) => o("sort", "ascending"))
|
|
711
713
|
}, [
|
|
712
|
-
|
|
714
|
+
D(a(Rt), {
|
|
713
715
|
size: 13,
|
|
714
716
|
weight: "bold",
|
|
715
717
|
"aria-hidden": "true"
|
|
716
718
|
}),
|
|
717
719
|
J(k(a(l)("common.emooTable.sortAsc")), 1)
|
|
718
|
-
], 10,
|
|
720
|
+
], 10, ca),
|
|
719
721
|
u("button", {
|
|
720
722
|
class: W(["emt-colmenu__item", { "is-on": e.sorted === "descending" }]),
|
|
721
723
|
type: "button",
|
|
722
724
|
"data-testid": `emcm-sort-desc-${e.colKey}`,
|
|
723
725
|
onClick: i[1] || (i[1] = (p) => o("sort", "descending"))
|
|
724
726
|
}, [
|
|
725
|
-
|
|
727
|
+
D(a(rt), {
|
|
726
728
|
size: 13,
|
|
727
729
|
weight: "bold",
|
|
728
730
|
"aria-hidden": "true"
|
|
729
731
|
}),
|
|
730
732
|
J(k(a(l)("common.emooTable.sortDesc")), 1)
|
|
731
|
-
], 10,
|
|
732
|
-
i[
|
|
733
|
-
], 64)) :
|
|
734
|
-
e.pinsEnabled ? (t(), s(
|
|
733
|
+
], 10, ma),
|
|
734
|
+
i[8] || (i[8] = u("div", { class: "emt-colmenu__divider" }, null, -1))
|
|
735
|
+
], 64)) : w("", !0),
|
|
736
|
+
e.pinsEnabled ? (t(), s(P, { key: 1 }, [
|
|
735
737
|
e.fixed ? (t(), s("button", {
|
|
736
738
|
key: 0,
|
|
737
739
|
class: "emt-colmenu__item",
|
|
@@ -739,88 +741,103 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
739
741
|
"data-testid": `emcm-unpin-${e.colKey}`,
|
|
740
742
|
onClick: i[2] || (i[2] = (p) => o("unpin"))
|
|
741
743
|
}, [
|
|
742
|
-
|
|
744
|
+
D(a(fo), {
|
|
743
745
|
size: 14,
|
|
744
746
|
"aria-hidden": "true"
|
|
745
747
|
}),
|
|
746
748
|
J(k(a(l)("common.emooTable.unpin")), 1)
|
|
747
|
-
], 8,
|
|
749
|
+
], 8, va)) : (t(), s(P, { key: 1 }, [
|
|
748
750
|
u("button", {
|
|
749
751
|
class: "emt-colmenu__item",
|
|
750
752
|
type: "button",
|
|
751
753
|
"data-testid": `emcm-pin-left-${e.colKey}`,
|
|
752
754
|
onClick: i[3] || (i[3] = (p) => o("pin", "left"))
|
|
753
755
|
}, [
|
|
754
|
-
|
|
756
|
+
D(a(ho), {
|
|
755
757
|
size: 14,
|
|
756
758
|
"aria-hidden": "true"
|
|
757
759
|
}),
|
|
758
760
|
J(k(a(l)("common.emooTable.pinLeftThrough")), 1)
|
|
759
|
-
], 8,
|
|
761
|
+
], 8, fa),
|
|
760
762
|
u("button", {
|
|
761
763
|
class: "emt-colmenu__item",
|
|
762
764
|
type: "button",
|
|
763
765
|
"data-testid": `emcm-pin-right-${e.colKey}`,
|
|
764
766
|
onClick: i[4] || (i[4] = (p) => o("pin", "right"))
|
|
765
767
|
}, [
|
|
766
|
-
|
|
768
|
+
D(a(po), {
|
|
767
769
|
size: 14,
|
|
768
770
|
"aria-hidden": "true"
|
|
769
771
|
}),
|
|
770
772
|
J(k(a(l)("common.emooTable.pinRightFrom")), 1)
|
|
771
|
-
], 8,
|
|
773
|
+
], 8, ha)
|
|
772
774
|
], 64)),
|
|
773
|
-
i[
|
|
774
|
-
], 64)) :
|
|
775
|
+
i[9] || (i[9] = u("div", { class: "emt-colmenu__divider" }, null, -1))
|
|
776
|
+
], 64)) : w("", !0),
|
|
777
|
+
e.wrapEnabled ? (t(), s(P, { key: 2 }, [
|
|
778
|
+
u("button", {
|
|
779
|
+
class: W(["emt-colmenu__item", { "is-on": e.wrapped }]),
|
|
780
|
+
type: "button",
|
|
781
|
+
"data-testid": `emcm-wrap-${e.colKey}`,
|
|
782
|
+
onClick: i[5] || (i[5] = (p) => o("wrap", !e.wrapped))
|
|
783
|
+
}, [
|
|
784
|
+
D(a(yo), {
|
|
785
|
+
size: 14,
|
|
786
|
+
"aria-hidden": "true"
|
|
787
|
+
}),
|
|
788
|
+
J(k(a(l)("common.emooTable.wrapText")), 1)
|
|
789
|
+
], 10, pa),
|
|
790
|
+
i[10] || (i[10] = u("div", { class: "emt-colmenu__divider" }, null, -1))
|
|
791
|
+
], 64)) : w("", !0),
|
|
775
792
|
A(r.$slots, "extra"),
|
|
776
793
|
u("button", {
|
|
777
794
|
class: "emt-colmenu__item",
|
|
778
795
|
type: "button",
|
|
779
796
|
disabled: !e.canHide,
|
|
780
797
|
"data-testid": `emcm-hide-${e.colKey}`,
|
|
781
|
-
onClick: i[
|
|
798
|
+
onClick: i[6] || (i[6] = (p) => o("hide"))
|
|
782
799
|
}, [
|
|
783
|
-
|
|
800
|
+
D(a(Vt), {
|
|
784
801
|
size: 14,
|
|
785
802
|
"aria-hidden": "true"
|
|
786
803
|
}),
|
|
787
804
|
J(k(a(l)("common.emooTable.hideColumn")), 1)
|
|
788
|
-
], 8,
|
|
789
|
-
e.hidden.length ? (t(), s(
|
|
790
|
-
i[
|
|
791
|
-
u("div",
|
|
792
|
-
(t(!0), s(
|
|
805
|
+
], 8, ya),
|
|
806
|
+
e.hidden.length ? (t(), s(P, { key: 3 }, [
|
|
807
|
+
i[11] || (i[11] = u("div", { class: "emt-colmenu__divider" }, null, -1)),
|
|
808
|
+
u("div", ba, k(a(l)("common.emooTable.hiddenColumns")), 1),
|
|
809
|
+
(t(!0), s(P, null, Z(e.hidden, (p) => (t(), s("button", {
|
|
793
810
|
key: p.key,
|
|
794
811
|
class: "emt-colmenu__item",
|
|
795
812
|
type: "button",
|
|
796
813
|
"data-testid": `emcm-restore-${p.key}`,
|
|
797
814
|
onClick: le((v) => o("restore", p.key), ["stop"])
|
|
798
815
|
}, [
|
|
799
|
-
|
|
816
|
+
D(a(bo), {
|
|
800
817
|
size: 14,
|
|
801
818
|
"aria-hidden": "true"
|
|
802
819
|
}),
|
|
803
820
|
J(k(p.label), 1)
|
|
804
|
-
], 8,
|
|
805
|
-
], 64)) :
|
|
806
|
-
e.resettable ? (t(), s(
|
|
807
|
-
i[
|
|
821
|
+
], 8, ga))), 128))
|
|
822
|
+
], 64)) : w("", !0),
|
|
823
|
+
e.resettable ? (t(), s(P, { key: 4 }, [
|
|
824
|
+
i[12] || (i[12] = u("div", { class: "emt-colmenu__divider" }, null, -1)),
|
|
808
825
|
u("button", {
|
|
809
826
|
class: "emt-colmenu__item",
|
|
810
827
|
type: "button",
|
|
811
828
|
"data-testid": "emt-reset-prefs",
|
|
812
|
-
onClick: i[
|
|
829
|
+
onClick: i[7] || (i[7] = le((p) => o("reset"), ["stop"]))
|
|
813
830
|
}, [
|
|
814
|
-
|
|
831
|
+
D(a(Bt), {
|
|
815
832
|
size: 14,
|
|
816
833
|
"aria-hidden": "true"
|
|
817
834
|
}),
|
|
818
835
|
J(k(a(l)("common.emooTable.resetPrefs")), 1)
|
|
819
836
|
])
|
|
820
|
-
], 64)) :
|
|
837
|
+
], 64)) : w("", !0)
|
|
821
838
|
])
|
|
822
839
|
]),
|
|
823
|
-
default:
|
|
840
|
+
default: S(() => [
|
|
824
841
|
A(r.$slots, "default")
|
|
825
842
|
]),
|
|
826
843
|
_: 3
|
|
@@ -829,7 +846,7 @@ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No
|
|
|
829
846
|
}), Je = {
|
|
830
847
|
DRAWER_WIDTHS: "emoo-drawer-widths",
|
|
831
848
|
DRAWER_HEIGHTS: "emoo-drawer-heights"
|
|
832
|
-
},
|
|
849
|
+
}, $a = 360, Lt = 0.98;
|
|
833
850
|
function Ot() {
|
|
834
851
|
try {
|
|
835
852
|
const e = localStorage.getItem(Je.DRAWER_WIDTHS), n = e ? JSON.parse(e) : {};
|
|
@@ -838,11 +855,11 @@ function Ot() {
|
|
|
838
855
|
return {};
|
|
839
856
|
}
|
|
840
857
|
}
|
|
841
|
-
function
|
|
858
|
+
function wa(e, n) {
|
|
842
859
|
const o = Ot()[e];
|
|
843
|
-
return typeof o != "number" || Number.isNaN(o) ? n : `${Math.round(Math.min(Math.max(o,
|
|
860
|
+
return typeof o != "number" || Number.isNaN(o) ? n : `${Math.round(Math.min(Math.max(o, $a), window.innerWidth * Lt))}px`;
|
|
844
861
|
}
|
|
845
|
-
function
|
|
862
|
+
function _a(e, n) {
|
|
846
863
|
try {
|
|
847
864
|
const o = Math.min(Math.round(n), Math.round(window.innerWidth * Lt));
|
|
848
865
|
localStorage.setItem(
|
|
@@ -852,7 +869,7 @@ function $a(e, n) {
|
|
|
852
869
|
} catch {
|
|
853
870
|
}
|
|
854
871
|
}
|
|
855
|
-
const Ut = [0.6, 0.85, 1],
|
|
872
|
+
const Ut = [0.6, 0.85, 1], Sa = 0.08, Ca = 250;
|
|
856
873
|
function Ht() {
|
|
857
874
|
try {
|
|
858
875
|
const e = localStorage.getItem(Je.DRAWER_HEIGHTS), n = e ? JSON.parse(e) : {};
|
|
@@ -861,7 +878,7 @@ function Ht() {
|
|
|
861
878
|
return {};
|
|
862
879
|
}
|
|
863
880
|
}
|
|
864
|
-
function
|
|
881
|
+
function Ea(e, n) {
|
|
865
882
|
try {
|
|
866
883
|
localStorage.setItem(
|
|
867
884
|
Je.DRAWER_HEIGHTS,
|
|
@@ -870,10 +887,10 @@ function Sa(e, n) {
|
|
|
870
887
|
} catch {
|
|
871
888
|
}
|
|
872
889
|
}
|
|
873
|
-
function
|
|
890
|
+
function Ta(e) {
|
|
874
891
|
return Ut.reduce((n, o) => Math.abs(o - e) < Math.abs(n - e) ? o : n);
|
|
875
892
|
}
|
|
876
|
-
function
|
|
893
|
+
function xa(e, n) {
|
|
877
894
|
const o = Ht()[e], l = typeof o == "number" && o > 0 && o <= 1 ? o : n, r = U(l), i = U(null), p = R(() => i.value === null ? `${Math.round(r.value * 100)}%` : `${i.value}px`), v = U(!1), g = U(!1);
|
|
878
895
|
let c = 0, b = 0, _ = !1, y;
|
|
879
896
|
function V() {
|
|
@@ -881,21 +898,21 @@ function Ea(e, n) {
|
|
|
881
898
|
}
|
|
882
899
|
function E(z) {
|
|
883
900
|
_ = !0;
|
|
884
|
-
const
|
|
885
|
-
i.value = Math.round(Math.min(Math.max(
|
|
901
|
+
const G = b + (c - z.clientY);
|
|
902
|
+
i.value = Math.round(Math.min(Math.max(G, Ut[0] * window.innerHeight), window.innerHeight));
|
|
886
903
|
}
|
|
887
904
|
function $() {
|
|
888
905
|
if (window.removeEventListener("pointermove", E), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $), v.value = !1, !_) {
|
|
889
906
|
i.value = null;
|
|
890
907
|
return;
|
|
891
908
|
}
|
|
892
|
-
const z = i.value / window.innerHeight,
|
|
893
|
-
if (r.value = X ?
|
|
909
|
+
const z = i.value / window.innerHeight, G = Ta(z), X = Math.abs(G - z) <= Sa;
|
|
910
|
+
if (r.value = X ? G : Math.round(z * 100) / 100, Ea(e, r.value), !X) {
|
|
894
911
|
i.value = null;
|
|
895
912
|
return;
|
|
896
913
|
}
|
|
897
914
|
g.value = !0, requestAnimationFrame(() => {
|
|
898
|
-
i.value = Math.round(
|
|
915
|
+
i.value = Math.round(G * window.innerHeight), y = setTimeout(V, Ca);
|
|
899
916
|
});
|
|
900
917
|
}
|
|
901
918
|
function I(z) {
|
|
@@ -905,10 +922,10 @@ function Ea(e, n) {
|
|
|
905
922
|
window.removeEventListener("pointermove", E), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $), y !== void 0 && clearTimeout(y);
|
|
906
923
|
}), { size: p, dragging: v, animating: g, onDragStart: I };
|
|
907
924
|
}
|
|
908
|
-
const
|
|
925
|
+
const Ia = {
|
|
909
926
|
key: 0,
|
|
910
927
|
class: "emoo-drawer__sheet"
|
|
911
|
-
},
|
|
928
|
+
}, za = { class: "emoo-drawer__sheet-content" }, Nn = /* @__PURE__ */ N({
|
|
912
929
|
inheritAttrs: !1,
|
|
913
930
|
__name: "EmooDrawer",
|
|
914
931
|
props: {
|
|
@@ -926,12 +943,12 @@ const Ta = {
|
|
|
926
943
|
const o = e, l = n, r = R({
|
|
927
944
|
get: () => o.modelValue,
|
|
928
945
|
set: (y) => l("update:modelValue", y)
|
|
929
|
-
}), i = R(() => o.isMobile && !!o.scene && !o.mobileFull), { size: p, dragging: v, animating: g, onDragStart: c } =
|
|
946
|
+
}), i = R(() => o.isMobile && !!o.scene && !o.mobileFull), { size: p, dragging: v, animating: g, onDragStart: c } = xa(
|
|
930
947
|
o.scene ?? "__emoo-no-scene__",
|
|
931
948
|
o.mobileRatio
|
|
932
|
-
), b = R(() => o.isMobile ? i.value ? p.value : o.direction === "rtl" || o.direction === "ltr" ? o.size : "100%" : o.scene ?
|
|
949
|
+
), b = R(() => o.isMobile ? i.value ? p.value : o.direction === "rtl" || o.direction === "ltr" ? o.size : "100%" : o.scene ? wa(o.scene, o.size) : o.size);
|
|
933
950
|
function _(y, V) {
|
|
934
|
-
o.scene &&
|
|
951
|
+
o.scene && _a(o.scene, V), l("resize-end", y, V);
|
|
935
952
|
}
|
|
936
953
|
return (y, V) => (t(), x(a(Tt), Xe(y.$attrs, {
|
|
937
954
|
modelValue: r.value,
|
|
@@ -946,13 +963,13 @@ const Ta = {
|
|
|
946
963
|
resizable: !e.isMobile && !!e.scene,
|
|
947
964
|
onResizeEnd: _
|
|
948
965
|
}), Se({
|
|
949
|
-
default:
|
|
950
|
-
i.value ? (t(), s("div",
|
|
951
|
-
|
|
966
|
+
default: S(() => [
|
|
967
|
+
i.value ? (t(), s("div", Ia, [
|
|
968
|
+
D(At, {
|
|
952
969
|
dragging: a(v),
|
|
953
970
|
onDragstart: a(c)
|
|
954
971
|
}, null, 8, ["dragging", "onDragstart"]),
|
|
955
|
-
u("div",
|
|
972
|
+
u("div", za, [
|
|
956
973
|
A(y.$slots, "default")
|
|
957
974
|
])
|
|
958
975
|
])) : A(y.$slots, "default", {}, void 0, void 0, 1)
|
|
@@ -961,34 +978,34 @@ const Ta = {
|
|
|
961
978
|
}, [
|
|
962
979
|
y.$slots.header ? {
|
|
963
980
|
name: "header",
|
|
964
|
-
fn:
|
|
981
|
+
fn: S(() => [
|
|
965
982
|
A(y.$slots, "header")
|
|
966
983
|
]),
|
|
967
984
|
key: "0"
|
|
968
985
|
} : void 0,
|
|
969
986
|
y.$slots.footer ? {
|
|
970
987
|
name: "footer",
|
|
971
|
-
fn:
|
|
988
|
+
fn: S(() => [
|
|
972
989
|
A(y.$slots, "footer")
|
|
973
990
|
]),
|
|
974
991
|
key: "1"
|
|
975
992
|
} : void 0
|
|
976
993
|
]), 1040, ["modelValue", "class", "size", "direction", "resizable"]));
|
|
977
994
|
}
|
|
978
|
-
}),
|
|
995
|
+
}), Ra = {
|
|
979
996
|
key: 0,
|
|
980
997
|
class: "emoo-empty__stage",
|
|
981
998
|
"aria-hidden": "true"
|
|
982
|
-
},
|
|
999
|
+
}, Va = {
|
|
983
1000
|
key: 1,
|
|
984
1001
|
class: "emoo-empty__title"
|
|
985
|
-
},
|
|
1002
|
+
}, Ba = {
|
|
986
1003
|
key: 2,
|
|
987
1004
|
class: "emoo-empty__desc"
|
|
988
|
-
},
|
|
1005
|
+
}, Ma = {
|
|
989
1006
|
key: 3,
|
|
990
1007
|
class: "emoo-empty__actions"
|
|
991
|
-
},
|
|
1008
|
+
}, Pa = /* @__PURE__ */ N({
|
|
992
1009
|
__name: "EmooEmpty",
|
|
993
1010
|
props: {
|
|
994
1011
|
variant: { default: "stage" },
|
|
@@ -1003,21 +1020,21 @@ const Ta = {
|
|
|
1003
1020
|
class: W(["emoo-empty", e.variant === "mini" ? "is-mini" : [`is-${e.size}`, { "is-neutral": e.tone === "neutral" }]]),
|
|
1004
1021
|
"data-testid": "emoo-empty"
|
|
1005
1022
|
}, [
|
|
1006
|
-
e.variant === "stage" ? (t(), s(
|
|
1007
|
-
e.icon ? (t(), s("span",
|
|
1023
|
+
e.variant === "stage" ? (t(), s(P, { key: 0 }, [
|
|
1024
|
+
e.icon ? (t(), s("span", Ra, [
|
|
1008
1025
|
(t(), x(Ie(e.icon), { weight: "duotone" }))
|
|
1009
|
-
])) :
|
|
1010
|
-
e.title ? (t(), s("p",
|
|
1011
|
-
e.description ? (t(), s("p",
|
|
1012
|
-
n.$slots.actions ? (t(), s("div",
|
|
1026
|
+
])) : w("", !0),
|
|
1027
|
+
e.title ? (t(), s("p", Va, k(e.title), 1)) : w("", !0),
|
|
1028
|
+
e.description ? (t(), s("p", Ba, k(e.description), 1)) : w("", !0),
|
|
1029
|
+
n.$slots.actions ? (t(), s("div", Ma, [
|
|
1013
1030
|
A(n.$slots, "actions", {}, void 0, !0)
|
|
1014
|
-
])) :
|
|
1015
|
-
], 64)) : (t(), s(
|
|
1031
|
+
])) : w("", !0)
|
|
1032
|
+
], 64)) : (t(), s(P, { key: 1 }, [
|
|
1016
1033
|
J(k(e.title), 1)
|
|
1017
1034
|
], 64))
|
|
1018
1035
|
], 2));
|
|
1019
1036
|
}
|
|
1020
|
-
}),
|
|
1037
|
+
}), Da = /* @__PURE__ */ Y(Pa, [["__scopeId", "data-v-e50a5864"]]), Aa = ["id", "for"], La = { class: "emoo-field__body" }, Oa = ["data-testid"], Ua = ["id"], Ha = ["id", "data-testid"], Ka = /* @__PURE__ */ N({
|
|
1021
1038
|
__name: "EmooField",
|
|
1022
1039
|
props: {
|
|
1023
1040
|
id: {},
|
|
@@ -1051,8 +1068,8 @@ const Ta = {
|
|
|
1051
1068
|
A(g.$slots, "label", {}, () => [
|
|
1052
1069
|
J(k(e.label), 1)
|
|
1053
1070
|
], !0)
|
|
1054
|
-
], 10,
|
|
1055
|
-
u("div",
|
|
1071
|
+
], 10, Aa)) : w("", !0),
|
|
1072
|
+
u("div", La, [
|
|
1056
1073
|
e.mode === "view" ? (t(), s("div", {
|
|
1057
1074
|
key: 0,
|
|
1058
1075
|
class: "emoo-field__value",
|
|
@@ -1061,7 +1078,7 @@ const Ta = {
|
|
|
1061
1078
|
A(g.$slots, "view", {}, () => [
|
|
1062
1079
|
J(k(e.text), 1)
|
|
1063
1080
|
], !0)
|
|
1064
|
-
], 8,
|
|
1081
|
+
], 8, Oa)) : A(g.$slots, "default", {
|
|
1065
1082
|
id: o.value || void 0,
|
|
1066
1083
|
describedBy: p.value,
|
|
1067
1084
|
invalid: !!e.error,
|
|
@@ -1071,18 +1088,18 @@ const Ta = {
|
|
|
1071
1088
|
key: 2,
|
|
1072
1089
|
id: r.value,
|
|
1073
1090
|
class: "emoo-field__help"
|
|
1074
|
-
}, k(e.help), 9,
|
|
1091
|
+
}, k(e.help), 9, Ua)) : w("", !0),
|
|
1075
1092
|
e.error && e.mode === "edit" ? (t(), s("p", {
|
|
1076
1093
|
key: 3,
|
|
1077
1094
|
id: i.value,
|
|
1078
1095
|
class: "emoo-field__error",
|
|
1079
1096
|
role: "alert",
|
|
1080
1097
|
"data-testid": e.testid ? `${e.testid}-error` : void 0
|
|
1081
|
-
}, k(e.error), 9,
|
|
1098
|
+
}, k(e.error), 9, Ha)) : w("", !0)
|
|
1082
1099
|
])
|
|
1083
|
-
], 2)) :
|
|
1100
|
+
], 2)) : w("", !0);
|
|
1084
1101
|
}
|
|
1085
|
-
}),
|
|
1102
|
+
}), qn = /* @__PURE__ */ Y(Ka, [["__scopeId", "data-v-1b6ea0e7"]]), Wa = ["aria-label"], Fa = /* @__PURE__ */ N({
|
|
1086
1103
|
__name: "EmooFieldGrid",
|
|
1087
1104
|
props: {
|
|
1088
1105
|
ariaLabel: {},
|
|
@@ -1095,16 +1112,16 @@ const Ta = {
|
|
|
1095
1112
|
"aria-label": e.ariaLabel
|
|
1096
1113
|
}, [
|
|
1097
1114
|
A(n.$slots, "default", {}, void 0, !0)
|
|
1098
|
-
], 10,
|
|
1115
|
+
], 10, Wa));
|
|
1099
1116
|
}
|
|
1100
|
-
}),
|
|
1117
|
+
}), jn = /* @__PURE__ */ Y(Fa, [["__scopeId", "data-v-12f1e7e0"]]), Na = ["width", "height", "viewBox", "data-type", "innerHTML"], Gn = /* @__PURE__ */ N({
|
|
1101
1118
|
__name: "EmooFileTypeIcon",
|
|
1102
1119
|
props: {
|
|
1103
1120
|
type: {},
|
|
1104
1121
|
size: {}
|
|
1105
1122
|
},
|
|
1106
1123
|
setup(e) {
|
|
1107
|
-
const n = e, o = R(() => n.size ?? "1em"), l = R(() =>
|
|
1124
|
+
const n = e, o = R(() => n.size ?? "1em"), l = R(() => To(n.type)), r = R(() => xo(n.type));
|
|
1108
1125
|
return (i, p) => (t(), s("svg", {
|
|
1109
1126
|
class: "emoo-file-icon",
|
|
1110
1127
|
width: o.value,
|
|
@@ -1116,9 +1133,9 @@ const Ta = {
|
|
|
1116
1133
|
"data-testid": "emoo-file-type-icon",
|
|
1117
1134
|
"data-type": e.type,
|
|
1118
1135
|
innerHTML: l.value
|
|
1119
|
-
}, null, 8,
|
|
1136
|
+
}, null, 8, Na));
|
|
1120
1137
|
}
|
|
1121
|
-
}),
|
|
1138
|
+
}), qa = /* @__PURE__ */ N({
|
|
1122
1139
|
__name: "EmooGhostButton",
|
|
1123
1140
|
props: {
|
|
1124
1141
|
pill: { type: Boolean },
|
|
@@ -1132,7 +1149,7 @@ const Ta = {
|
|
|
1132
1149
|
A(n.$slots, "default", {}, void 0, !0)
|
|
1133
1150
|
], 2));
|
|
1134
1151
|
}
|
|
1135
|
-
}),
|
|
1152
|
+
}), Xn = /* @__PURE__ */ Y(qa, [["__scopeId", "data-v-d0346949"]]), ja = /* @__PURE__ */ N({
|
|
1136
1153
|
__name: "EmooGroupLabel",
|
|
1137
1154
|
props: {
|
|
1138
1155
|
title: {},
|
|
@@ -1146,10 +1163,10 @@ const Ta = {
|
|
|
1146
1163
|
u("span", null, k(a(n)(e.title)), 1)
|
|
1147
1164
|
], 2));
|
|
1148
1165
|
}
|
|
1149
|
-
}),
|
|
1166
|
+
}), Zn = /* @__PURE__ */ Y(ja, [["__scopeId", "data-v-0135d501"]]), Ga = { class: "emoo-skel__lines" }, Xa = { class: "emoo-skel__head" }, Za = {
|
|
1150
1167
|
key: 4,
|
|
1151
1168
|
class: "emoo-skel__pill-row"
|
|
1152
|
-
},
|
|
1169
|
+
}, Ja = { class: "emoo-skel__detail" }, Ya = { class: "emoo-skel__lines" }, Qa = /* @__PURE__ */ N({
|
|
1153
1170
|
__name: "EmooSkeleton",
|
|
1154
1171
|
props: {
|
|
1155
1172
|
variant: { default: "lines" },
|
|
@@ -1166,15 +1183,15 @@ const Ta = {
|
|
|
1166
1183
|
class: W(["emoo-skel", `is-${e.variant}`]),
|
|
1167
1184
|
"aria-hidden": "true"
|
|
1168
1185
|
}, [
|
|
1169
|
-
e.variant === "lines" ? (t(!0), s(
|
|
1186
|
+
e.variant === "lines" ? (t(!0), s(P, { key: 0 }, Z(e.lines, (l) => (t(), s("span", {
|
|
1170
1187
|
key: l,
|
|
1171
1188
|
class: W(["emoo-skel__bone emoo-skel__line", { "is-tail": l === e.lines }])
|
|
1172
|
-
}, null, 2))), 128)) : e.variant === "list" ? (t(!0), s(
|
|
1189
|
+
}, null, 2))), 128)) : e.variant === "list" ? (t(!0), s(P, { key: 1 }, Z(e.rows, (l) => (t(), s("div", {
|
|
1173
1190
|
key: l,
|
|
1174
1191
|
class: "emoo-skel__item"
|
|
1175
1192
|
}, [
|
|
1176
1193
|
o[0] || (o[0] = u("span", { class: "emoo-skel__bone emoo-skel__avatar" }, null, -1)),
|
|
1177
|
-
u("span",
|
|
1194
|
+
u("span", Ga, [
|
|
1178
1195
|
u("span", {
|
|
1179
1196
|
class: "emoo-skel__bone emoo-skel__line",
|
|
1180
1197
|
style: pe({ width: `${52 - l * 8}%` })
|
|
@@ -1184,25 +1201,25 @@ const Ta = {
|
|
|
1184
1201
|
style: pe({ width: `${78 - l * 10}%` })
|
|
1185
1202
|
}, null, 4)
|
|
1186
1203
|
])
|
|
1187
|
-
]))), 128)) : e.variant === "table" ? (t(), s(
|
|
1188
|
-
u("span",
|
|
1189
|
-
(t(), s(
|
|
1204
|
+
]))), 128)) : e.variant === "table" ? (t(), s(P, { key: 2 }, [
|
|
1205
|
+
u("span", Xa, [
|
|
1206
|
+
(t(), s(P, null, Z(["18%", "26%", "14%", "22%"], (l, r) => u("span", {
|
|
1190
1207
|
key: r,
|
|
1191
1208
|
class: "emoo-skel__bone emoo-skel__cell",
|
|
1192
1209
|
style: pe({ width: l })
|
|
1193
1210
|
}, null, 4)), 64))
|
|
1194
1211
|
]),
|
|
1195
|
-
(t(!0), s(
|
|
1212
|
+
(t(!0), s(P, null, Z(e.rows, (l) => (t(), s("span", {
|
|
1196
1213
|
key: l,
|
|
1197
1214
|
class: "emoo-skel__row"
|
|
1198
1215
|
}, [
|
|
1199
|
-
(t(), s(
|
|
1216
|
+
(t(), s(P, null, Z(["18%", "26%", "14%", "22%"], (r, i) => u("span", {
|
|
1200
1217
|
key: i,
|
|
1201
1218
|
class: "emoo-skel__bone emoo-skel__cell",
|
|
1202
1219
|
style: pe({ width: r })
|
|
1203
1220
|
}, null, 4)), 64))
|
|
1204
1221
|
]))), 128))
|
|
1205
|
-
], 64)) : e.variant === "tiles" ? (t(!0), s(
|
|
1222
|
+
], 64)) : e.variant === "tiles" ? (t(!0), s(P, { key: 3 }, Z(e.tiles, (l) => (t(), s("div", {
|
|
1206
1223
|
key: l,
|
|
1207
1224
|
class: "emoo-skel__tile"
|
|
1208
1225
|
}, [...o[1] || (o[1] = [
|
|
@@ -1211,8 +1228,8 @@ const Ta = {
|
|
|
1211
1228
|
style: { width: "56%" }
|
|
1212
1229
|
}, null, -1),
|
|
1213
1230
|
u("span", { class: "emoo-skel__bone emoo-skel__tile-value" }, null, -1)
|
|
1214
|
-
])]))), 128)) : e.variant === "pills" ? (t(), s("div",
|
|
1215
|
-
(t(!0), s(
|
|
1231
|
+
])]))), 128)) : e.variant === "pills" ? (t(), s("div", Za, [
|
|
1232
|
+
(t(!0), s(P, null, Z(e.pills, (l) => (t(), s("span", {
|
|
1216
1233
|
key: l,
|
|
1217
1234
|
class: "emoo-skel__bone emoo-skel__pill"
|
|
1218
1235
|
}))), 128))
|
|
@@ -1221,24 +1238,24 @@ const Ta = {
|
|
|
1221
1238
|
class: "emoo-skel__grid",
|
|
1222
1239
|
style: pe({ gridTemplateColumns: `repeat(${e.cols}, 1fr)` })
|
|
1223
1240
|
}, [
|
|
1224
|
-
(t(!0), s(
|
|
1241
|
+
(t(!0), s(P, null, Z(e.cells, (l) => (t(), s("div", {
|
|
1225
1242
|
key: l,
|
|
1226
1243
|
class: "emoo-skel__cell"
|
|
1227
1244
|
}, [...o[2] || (o[2] = [
|
|
1228
1245
|
u("span", { class: "emoo-skel__bone emoo-skel__cell-icon" }, null, -1),
|
|
1229
1246
|
u("span", { class: "emoo-skel__bone emoo-skel__cell-label" }, null, -1)
|
|
1230
1247
|
])]))), 128))
|
|
1231
|
-
], 4)) : e.variant === "chart" ? (t(), s(
|
|
1248
|
+
], 4)) : e.variant === "chart" ? (t(), s(P, { key: 6 }, [
|
|
1232
1249
|
o[3] || (o[3] = u("span", { class: "emoo-skel__bone emoo-skel__title" }, null, -1)),
|
|
1233
1250
|
u("span", {
|
|
1234
1251
|
class: "emoo-skel__bone emoo-skel__chart",
|
|
1235
1252
|
style: pe({ height: `${e.height}px` })
|
|
1236
1253
|
}, null, 4)
|
|
1237
|
-
], 64)) : (t(), s(
|
|
1254
|
+
], 64)) : (t(), s(P, { key: 7 }, [
|
|
1238
1255
|
o[5] || (o[5] = u("span", { class: "emoo-skel__bone emoo-skel__title" }, null, -1)),
|
|
1239
|
-
u("span",
|
|
1240
|
-
u("span",
|
|
1241
|
-
(t(!0), s(
|
|
1256
|
+
u("span", Ja, [
|
|
1257
|
+
u("span", Ya, [
|
|
1258
|
+
(t(!0), s(P, null, Z(e.lines, (l) => (t(), s("span", {
|
|
1242
1259
|
key: l,
|
|
1243
1260
|
class: W(["emoo-skel__bone emoo-skel__line", { "is-tail": l === e.lines }])
|
|
1244
1261
|
}, null, 2))), 128))
|
|
@@ -1248,7 +1265,7 @@ const Ta = {
|
|
|
1248
1265
|
], 64))
|
|
1249
1266
|
], 2));
|
|
1250
1267
|
}
|
|
1251
|
-
}),
|
|
1268
|
+
}), el = /* @__PURE__ */ Y(Qa, [["__scopeId", "data-v-9e0a33de"]]), tl = ["aria-label"], ol = /* @__PURE__ */ N({
|
|
1252
1269
|
__name: "EmooSpinner",
|
|
1253
1270
|
props: {
|
|
1254
1271
|
size: { default: 20 },
|
|
@@ -1274,22 +1291,22 @@ const Ta = {
|
|
|
1274
1291
|
"stroke-dasharray": "37.7 12.57"
|
|
1275
1292
|
})
|
|
1276
1293
|
], -1)
|
|
1277
|
-
])], 12,
|
|
1294
|
+
])], 12, tl));
|
|
1278
1295
|
}
|
|
1279
|
-
}), Kt = /* @__PURE__ */ Y(
|
|
1296
|
+
}), Kt = /* @__PURE__ */ Y(ol, [["__scopeId", "data-v-d168f9f3"]]), al = {
|
|
1280
1297
|
class: "emoo-history-list",
|
|
1281
1298
|
"data-testid": "emoo-history-list"
|
|
1282
|
-
},
|
|
1299
|
+
}, ll = {
|
|
1283
1300
|
key: 0,
|
|
1284
1301
|
class: "history-float"
|
|
1285
|
-
},
|
|
1302
|
+
}, sl = ["data-item-id", "tabindex", "onClick", "onFocus", "onKeydown"], nl = { class: "history-name" }, il = { key: 0 }, rl = {
|
|
1286
1303
|
key: 1,
|
|
1287
1304
|
class: "status-indicator",
|
|
1288
1305
|
"data-testid": "chat-status-indicator"
|
|
1289
|
-
},
|
|
1306
|
+
}, dl = {
|
|
1290
1307
|
key: 1,
|
|
1291
1308
|
class: "status-dot"
|
|
1292
|
-
},
|
|
1309
|
+
}, ul = /* @__PURE__ */ N({
|
|
1293
1310
|
__name: "EmooHistoryList",
|
|
1294
1311
|
props: {
|
|
1295
1312
|
groups: {},
|
|
@@ -1313,15 +1330,15 @@ const Ta = {
|
|
|
1313
1330
|
!l.keyword && !y.value && (_.value = !1);
|
|
1314
1331
|
}, I = () => {
|
|
1315
1332
|
y.value = !1, $();
|
|
1316
|
-
}, z = U(null),
|
|
1333
|
+
}, z = U(null), G = U(null), X = R(() => l.groups.flatMap((B) => B.items)), ie = (B) => B.id === (G.value ?? X.value[0]?.id) ? 0 : -1, ee = (B) => {
|
|
1317
1334
|
B !== void 0 && z.value?.querySelector(`.history-item[data-item-id="${B}"]`)?.focus();
|
|
1318
1335
|
}, d = () => ee(X.value[0]?.id), T = (B, O) => {
|
|
1319
1336
|
if (B.target !== B.currentTarget) return;
|
|
1320
|
-
const
|
|
1337
|
+
const j = X.value, oe = j.findIndex((re) => re.id === O.id);
|
|
1321
1338
|
if (B.key === "ArrowDown")
|
|
1322
|
-
B.preventDefault(), oe <
|
|
1339
|
+
B.preventDefault(), oe < j.length - 1 && ee(j[oe + 1].id);
|
|
1323
1340
|
else if (B.key === "ArrowUp")
|
|
1324
|
-
B.preventDefault(), oe > 0 && ee(
|
|
1341
|
+
B.preventDefault(), oe > 0 && ee(j[oe - 1].id);
|
|
1325
1342
|
else if (B.key === "Enter")
|
|
1326
1343
|
B.preventDefault(), L(O);
|
|
1327
1344
|
else if (B.key === "Backspace" || B.key === "Delete") {
|
|
@@ -1342,7 +1359,7 @@ const Ta = {
|
|
|
1342
1359
|
}, H = U(!1), te = (B, O) => {
|
|
1343
1360
|
r(
|
|
1344
1361
|
"update:selectedIds",
|
|
1345
|
-
O ? [...l.selectedIds, B] : l.selectedIds.filter((
|
|
1362
|
+
O ? [...l.selectedIds, B] : l.selectedIds.filter((j) => j !== B)
|
|
1346
1363
|
);
|
|
1347
1364
|
}, F = () => {
|
|
1348
1365
|
H.value = !H.value, H.value ? de() : r("update:selectedIds", []);
|
|
@@ -1362,32 +1379,32 @@ const Ta = {
|
|
|
1362
1379
|
window.addEventListener("keydown", M);
|
|
1363
1380
|
}), Ct(() => {
|
|
1364
1381
|
window.removeEventListener("keydown", M);
|
|
1365
|
-
}), n({ startRename: q, cancelRename: de, exitSelectMode: C, focusSearch: E }), (B, O) => (t(), s("div",
|
|
1366
|
-
e.anyRecord ? (t(), s("div",
|
|
1382
|
+
}), n({ startRename: q, cancelRename: de, exitSelectMode: C, focusSearch: E }), (B, O) => (t(), s("div", al, [
|
|
1383
|
+
e.anyRecord ? (t(), s("div", ll, [
|
|
1367
1384
|
u("div", {
|
|
1368
1385
|
class: W(["search-area", { expanded: _.value }]),
|
|
1369
|
-
onMouseenter: O[2] || (O[2] = (
|
|
1386
|
+
onMouseenter: O[2] || (O[2] = (j) => _.value = !0),
|
|
1370
1387
|
onMouseleave: $,
|
|
1371
1388
|
onClick: E
|
|
1372
1389
|
}, [
|
|
1373
|
-
|
|
1374
|
-
default:
|
|
1375
|
-
|
|
1390
|
+
D(he, { content: p.value }, {
|
|
1391
|
+
default: S(() => [
|
|
1392
|
+
D(a(et), {
|
|
1376
1393
|
link: "",
|
|
1377
1394
|
size: "small",
|
|
1378
1395
|
class: "search-toggle",
|
|
1379
1396
|
"aria-label": p.value,
|
|
1380
1397
|
"data-testid": "chat-history-search-toggle"
|
|
1381
1398
|
}, {
|
|
1382
|
-
default:
|
|
1383
|
-
|
|
1399
|
+
default: S(() => [
|
|
1400
|
+
D(a(go), { size: 14 })
|
|
1384
1401
|
]),
|
|
1385
1402
|
_: 1
|
|
1386
1403
|
}, 8, ["aria-label"])
|
|
1387
1404
|
]),
|
|
1388
1405
|
_: 1
|
|
1389
1406
|
}, 8, ["content"]),
|
|
1390
|
-
|
|
1407
|
+
D(a(ot), {
|
|
1391
1408
|
ref_key: "searchInputRef",
|
|
1392
1409
|
ref: V,
|
|
1393
1410
|
"model-value": e.keyword,
|
|
@@ -1396,15 +1413,15 @@ const Ta = {
|
|
|
1396
1413
|
placeholder: p.value,
|
|
1397
1414
|
class: "search-input",
|
|
1398
1415
|
"data-testid": "chat-history-search",
|
|
1399
|
-
"onUpdate:modelValue": O[0] || (O[0] = (
|
|
1400
|
-
onFocus: O[1] || (O[1] = (
|
|
1416
|
+
"onUpdate:modelValue": O[0] || (O[0] = (j) => r("update:keyword", j)),
|
|
1417
|
+
onFocus: O[1] || (O[1] = (j) => y.value = !0),
|
|
1401
1418
|
onBlur: I,
|
|
1402
1419
|
onKeydown: je(le(d, ["prevent"]), ["down"])
|
|
1403
1420
|
}, null, 8, ["model-value", "placeholder", "onKeydown"])
|
|
1404
1421
|
], 34),
|
|
1405
|
-
e.selectable ? (t(), s(
|
|
1406
|
-
H.value ? (t(), s(
|
|
1407
|
-
|
|
1422
|
+
e.selectable ? (t(), s(P, { key: 0 }, [
|
|
1423
|
+
H.value ? (t(), s(P, { key: 1 }, [
|
|
1424
|
+
D(Pe, {
|
|
1408
1425
|
variant: "text",
|
|
1409
1426
|
size: "small",
|
|
1410
1427
|
class: "float-toggle",
|
|
@@ -1412,7 +1429,7 @@ const Ta = {
|
|
|
1412
1429
|
disabled: e.batchBusy,
|
|
1413
1430
|
onClick: F
|
|
1414
1431
|
}, {
|
|
1415
|
-
default:
|
|
1432
|
+
default: S(() => [
|
|
1416
1433
|
J(k(a(i)("common.emooHistory.cancel")), 1)
|
|
1417
1434
|
]),
|
|
1418
1435
|
_: 1
|
|
@@ -1422,8 +1439,8 @@ const Ta = {
|
|
|
1422
1439
|
key: 0,
|
|
1423
1440
|
content: v.value
|
|
1424
1441
|
}, {
|
|
1425
|
-
default:
|
|
1426
|
-
|
|
1442
|
+
default: S(() => [
|
|
1443
|
+
D(a(et), {
|
|
1427
1444
|
link: "",
|
|
1428
1445
|
size: "small",
|
|
1429
1446
|
class: "float-toggle",
|
|
@@ -1432,49 +1449,49 @@ const Ta = {
|
|
|
1432
1449
|
disabled: e.batchBusy,
|
|
1433
1450
|
onClick: F
|
|
1434
1451
|
}, {
|
|
1435
|
-
default:
|
|
1436
|
-
|
|
1452
|
+
default: S(() => [
|
|
1453
|
+
D(a(ko), { size: 14 })
|
|
1437
1454
|
]),
|
|
1438
1455
|
_: 1
|
|
1439
1456
|
}, 8, ["aria-label", "disabled"])
|
|
1440
1457
|
]),
|
|
1441
1458
|
_: 1
|
|
1442
1459
|
}, 8, ["content"]))
|
|
1443
|
-
], 64)) :
|
|
1444
|
-
])) :
|
|
1460
|
+
], 64)) : w("", !0)
|
|
1461
|
+
])) : w("", !0),
|
|
1445
1462
|
Fe((t(), s("div", {
|
|
1446
1463
|
ref_key: "historyScrollRef",
|
|
1447
1464
|
ref: z,
|
|
1448
1465
|
class: "history-scroll",
|
|
1449
1466
|
onScroll: Q
|
|
1450
1467
|
}, [
|
|
1451
|
-
e.loading && !b.value ? (t(), x(
|
|
1468
|
+
e.loading && !b.value ? (t(), x(el, {
|
|
1452
1469
|
key: 0,
|
|
1453
1470
|
variant: "lines",
|
|
1454
1471
|
lines: 4,
|
|
1455
1472
|
class: "history-skel"
|
|
1456
|
-
})) : b.value ? (t(!0), s(
|
|
1457
|
-
key:
|
|
1473
|
+
})) : b.value ? (t(!0), s(P, { key: 1 }, Z(e.groups, (j) => (t(), s("div", {
|
|
1474
|
+
key: j.key
|
|
1458
1475
|
}, [
|
|
1459
1476
|
u("div", {
|
|
1460
|
-
class: W(["group-title", { "group-title--dim":
|
|
1477
|
+
class: W(["group-title", { "group-title--dim": j.dim }])
|
|
1461
1478
|
}, [
|
|
1462
1479
|
O[11] || (O[11] = u("span", { class: "group-dot" }, null, -1)),
|
|
1463
|
-
J(" " + k(a(i)(
|
|
1480
|
+
J(" " + k(a(i)(j.label)), 1)
|
|
1464
1481
|
], 2),
|
|
1465
|
-
(t(!0), s(
|
|
1482
|
+
(t(!0), s(P, null, Z(j.items, (oe) => (t(), x(he, {
|
|
1466
1483
|
key: oe.id,
|
|
1467
1484
|
content: oe.tooltip,
|
|
1468
1485
|
disabled: !oe.tooltip,
|
|
1469
1486
|
placement: "right"
|
|
1470
1487
|
}, {
|
|
1471
|
-
default:
|
|
1488
|
+
default: S(() => [
|
|
1472
1489
|
u("div", {
|
|
1473
1490
|
class: W(["history-item", { active: oe.id === e.activeId }]),
|
|
1474
1491
|
"data-item-id": oe.id,
|
|
1475
1492
|
tabindex: ie(oe),
|
|
1476
1493
|
onClick: (re) => L(oe),
|
|
1477
|
-
onFocus: (re) =>
|
|
1494
|
+
onFocus: (re) => G.value = oe.id,
|
|
1478
1495
|
onKeydown: (re) => T(re, oe)
|
|
1479
1496
|
}, [
|
|
1480
1497
|
H.value ? (t(), x(a(st), {
|
|
@@ -1485,9 +1502,9 @@ const Ta = {
|
|
|
1485
1502
|
onClick: O[3] || (O[3] = le(() => {
|
|
1486
1503
|
}, ["stop"])),
|
|
1487
1504
|
"onUpdate:modelValue": (re) => te(oe.id, !!re)
|
|
1488
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])) :
|
|
1489
|
-
u("span",
|
|
1490
|
-
se.value !== oe.id ? (t(), s("span",
|
|
1505
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])) : w("", !0),
|
|
1506
|
+
u("span", nl, [
|
|
1507
|
+
se.value !== oe.id ? (t(), s("span", il, k(oe.title), 1)) : (t(), x(a(ot), {
|
|
1491
1508
|
key: 1,
|
|
1492
1509
|
modelValue: ne.value,
|
|
1493
1510
|
"onUpdate:modelValue": O[4] || (O[4] = (re) => ne.value = re),
|
|
@@ -1501,13 +1518,13 @@ const Ta = {
|
|
|
1501
1518
|
onBlur: le(ce, ["stop"])
|
|
1502
1519
|
}, null, 8, ["modelValue"]))
|
|
1503
1520
|
]),
|
|
1504
|
-
se.value !== oe.id && oe.id !== e.activeId && oe.status ? (t(), s("span",
|
|
1521
|
+
se.value !== oe.id && oe.id !== e.activeId && oe.status ? (t(), s("span", rl, [
|
|
1505
1522
|
oe.status === "generating" ? (t(), x(Kt, {
|
|
1506
1523
|
key: 0,
|
|
1507
1524
|
size: 14,
|
|
1508
1525
|
label: a(i)("common.loading")
|
|
1509
|
-
}, null, 8, ["label"])) : (t(), s("span",
|
|
1510
|
-
])) :
|
|
1526
|
+
}, null, 8, ["label"])) : (t(), s("span", dl))
|
|
1527
|
+
])) : w("", !0),
|
|
1511
1528
|
se.value !== oe.id && !H.value && ae ? (t(), x(a(nt), {
|
|
1512
1529
|
key: 2,
|
|
1513
1530
|
class: "history-actions",
|
|
@@ -1519,35 +1536,35 @@ const Ta = {
|
|
|
1519
1536
|
onClick: O[10] || (O[10] = le(() => {
|
|
1520
1537
|
}, ["stop"]))
|
|
1521
1538
|
}, {
|
|
1522
|
-
dropdown:
|
|
1523
|
-
|
|
1524
|
-
default:
|
|
1539
|
+
dropdown: S(() => [
|
|
1540
|
+
D(a(lo), null, {
|
|
1541
|
+
default: S(() => [
|
|
1525
1542
|
A(B.$slots, "row-action", { item: oe }, void 0, !0)
|
|
1526
1543
|
]),
|
|
1527
1544
|
_: 2
|
|
1528
1545
|
}, 1024)
|
|
1529
1546
|
]),
|
|
1530
|
-
default:
|
|
1531
|
-
|
|
1547
|
+
default: S(() => [
|
|
1548
|
+
D(a(et), {
|
|
1532
1549
|
link: "",
|
|
1533
1550
|
size: "small",
|
|
1534
1551
|
class: "more-btn",
|
|
1535
1552
|
onClick: O[9] || (O[9] = le(() => {
|
|
1536
1553
|
}, ["stop"]))
|
|
1537
1554
|
}, {
|
|
1538
|
-
default:
|
|
1539
|
-
|
|
1555
|
+
default: S(() => [
|
|
1556
|
+
D(a(Mt), { class: "ic" })
|
|
1540
1557
|
]),
|
|
1541
1558
|
_: 1
|
|
1542
1559
|
})
|
|
1543
1560
|
]),
|
|
1544
1561
|
_: 2
|
|
1545
|
-
}, 1024)) :
|
|
1546
|
-
], 42,
|
|
1562
|
+
}, 1024)) : w("", !0)
|
|
1563
|
+
], 42, sl)
|
|
1547
1564
|
]),
|
|
1548
1565
|
_: 2
|
|
1549
1566
|
}, 1032, ["content", "disabled"]))), 128))
|
|
1550
|
-
]))), 128)) : (t(), x(
|
|
1567
|
+
]))), 128)) : (t(), x(Da, {
|
|
1551
1568
|
key: 2,
|
|
1552
1569
|
variant: "mini",
|
|
1553
1570
|
title: e.keyword.trim() ? c.value : g.value
|
|
@@ -1557,20 +1574,20 @@ const Ta = {
|
|
|
1557
1574
|
])
|
|
1558
1575
|
]));
|
|
1559
1576
|
}
|
|
1560
|
-
}),
|
|
1577
|
+
}), Jn = /* @__PURE__ */ Y(ul, [["__scopeId", "data-v-862f7ee9"]]), cl = {
|
|
1561
1578
|
class: "emoo-mrsel__tabs",
|
|
1562
1579
|
role: "tablist"
|
|
1563
|
-
},
|
|
1580
|
+
}, ml = ["aria-selected", "onClick"], vl = { class: "emoo-mrsel__count" }, fl = {
|
|
1564
1581
|
class: "emoo-sel-remote-error",
|
|
1565
1582
|
role: "alert",
|
|
1566
1583
|
"data-testid": "remote-error"
|
|
1567
|
-
},
|
|
1584
|
+
}, hl = { class: "emoo-mrsel__opt" }, pl = ["src"], yl = { class: "emoo-mrsel__name" }, bl = {
|
|
1568
1585
|
key: 0,
|
|
1569
1586
|
class: "emoo-mrsel__dept"
|
|
1570
|
-
},
|
|
1587
|
+
}, gl = { class: "emoo-mrsel__opt" }, kl = ["src"], $l = { class: "emoo-mrsel__col" }, wl = { class: "emoo-mrsel__name" }, _l = {
|
|
1571
1588
|
key: 0,
|
|
1572
1589
|
class: "emoo-mrsel__desc"
|
|
1573
|
-
},
|
|
1590
|
+
}, Sl = /* @__PURE__ */ N({
|
|
1574
1591
|
__name: "EmooMemberRoleSelect",
|
|
1575
1592
|
props: {
|
|
1576
1593
|
modelValue: {},
|
|
@@ -1596,10 +1613,10 @@ const Ta = {
|
|
|
1596
1613
|
() => v.value,
|
|
1597
1614
|
() => c.value ? _.items.value : o.roles ?? [],
|
|
1598
1615
|
() => o.selectedRoles ?? []
|
|
1599
|
-
), z = $.mergedOptions,
|
|
1616
|
+
), z = $.mergedOptions, G = I.mergedOptions, X = R(() => [
|
|
1600
1617
|
...$.selectedOptions.value,
|
|
1601
1618
|
...I.selectedOptions.value.map((H) => ({ ...H, square: !0 }))
|
|
1602
|
-
]), ie =
|
|
1619
|
+
]), ie = De(), ee = R(() => ie.disabled !== void 0 && ie.disabled !== !1), d = U(!1), T = (H) => {
|
|
1603
1620
|
if (d.value = H, !H) {
|
|
1604
1621
|
b.onVisibleChange(!1), _.onVisibleChange(!1);
|
|
1605
1622
|
return;
|
|
@@ -1639,17 +1656,17 @@ const Ta = {
|
|
|
1639
1656
|
"onUpdate:modelValue": de,
|
|
1640
1657
|
onVisibleChange: T
|
|
1641
1658
|
}, Se({
|
|
1642
|
-
tag:
|
|
1643
|
-
|
|
1659
|
+
tag: S(() => [
|
|
1660
|
+
D(xe, {
|
|
1644
1661
|
items: X.value,
|
|
1645
1662
|
max: e.collapse,
|
|
1646
1663
|
removable: !ee.value,
|
|
1647
1664
|
onRemove: ce
|
|
1648
1665
|
}, null, 8, ["items", "max", "removable"])
|
|
1649
1666
|
]),
|
|
1650
|
-
header:
|
|
1651
|
-
u("div",
|
|
1652
|
-
(t(!0), s(
|
|
1667
|
+
header: S(() => [
|
|
1668
|
+
u("div", cl, [
|
|
1669
|
+
(t(!0), s(P, null, Z(g.value, (F) => (t(), s("button", {
|
|
1653
1670
|
key: F.key,
|
|
1654
1671
|
type: "button",
|
|
1655
1672
|
class: W(["emoo-mrsel__tab", { "is-active": i.value === F.key }]),
|
|
@@ -1657,18 +1674,18 @@ const Ta = {
|
|
|
1657
1674
|
onClick: (C) => q(F.key)
|
|
1658
1675
|
}, [
|
|
1659
1676
|
J(k(F.label) + " ", 1),
|
|
1660
|
-
u("span",
|
|
1661
|
-
], 10,
|
|
1677
|
+
u("span", vl, k(F.count), 1)
|
|
1678
|
+
], 10, ml))), 128))
|
|
1662
1679
|
])
|
|
1663
1680
|
]),
|
|
1664
|
-
default:
|
|
1665
|
-
i.value === "member" ? (t(!0), s(
|
|
1681
|
+
default: S(() => [
|
|
1682
|
+
i.value === "member" ? (t(!0), s(P, { key: 0 }, Z(a(z), (F) => (t(), x(a(ze), {
|
|
1666
1683
|
key: F.id,
|
|
1667
1684
|
label: F.name,
|
|
1668
1685
|
value: F.id
|
|
1669
1686
|
}, {
|
|
1670
|
-
default:
|
|
1671
|
-
u("span",
|
|
1687
|
+
default: S(() => [
|
|
1688
|
+
u("span", hl, [
|
|
1672
1689
|
u("span", {
|
|
1673
1690
|
class: "emoo-mrsel__avatar",
|
|
1674
1691
|
style: pe({ "--tint": F.color || "var(--el-color-primary)" })
|
|
@@ -1678,22 +1695,22 @@ const Ta = {
|
|
|
1678
1695
|
src: F.avatar,
|
|
1679
1696
|
alt: "",
|
|
1680
1697
|
class: "emoo-mrsel__img"
|
|
1681
|
-
}, null, 8,
|
|
1698
|
+
}, null, 8, pl)) : (t(), s(P, { key: 1 }, [
|
|
1682
1699
|
J(k(F.name[0]), 1)
|
|
1683
1700
|
], 64))
|
|
1684
1701
|
], 4),
|
|
1685
|
-
u("span",
|
|
1686
|
-
F.dept ? (t(), s("span",
|
|
1702
|
+
u("span", yl, k(F.name), 1),
|
|
1703
|
+
F.dept ? (t(), s("span", bl, k(F.dept), 1)) : w("", !0)
|
|
1687
1704
|
])
|
|
1688
1705
|
]),
|
|
1689
1706
|
_: 2
|
|
1690
|
-
}, 1032, ["label", "value"]))), 128)) : (t(!0), s(
|
|
1707
|
+
}, 1032, ["label", "value"]))), 128)) : (t(!0), s(P, { key: 1 }, Z(a(G), (F) => (t(), x(a(ze), {
|
|
1691
1708
|
key: F.id,
|
|
1692
1709
|
label: F.name,
|
|
1693
1710
|
value: F.id
|
|
1694
1711
|
}, {
|
|
1695
|
-
default:
|
|
1696
|
-
u("span",
|
|
1712
|
+
default: S(() => [
|
|
1713
|
+
u("span", gl, [
|
|
1697
1714
|
u("span", {
|
|
1698
1715
|
class: "emoo-mrsel__avatar is-square",
|
|
1699
1716
|
style: pe({ "--tint": F.color || "var(--el-color-primary)" })
|
|
@@ -1703,13 +1720,13 @@ const Ta = {
|
|
|
1703
1720
|
src: F.avatar,
|
|
1704
1721
|
alt: "",
|
|
1705
1722
|
class: "emoo-mrsel__img"
|
|
1706
|
-
}, null, 8,
|
|
1723
|
+
}, null, 8, kl)) : (t(), s(P, { key: 1 }, [
|
|
1707
1724
|
J(k(F.name[0]), 1)
|
|
1708
1725
|
], 64))
|
|
1709
1726
|
], 4),
|
|
1710
|
-
u("span",
|
|
1711
|
-
u("span",
|
|
1712
|
-
F.desc ? (t(), s("span",
|
|
1727
|
+
u("span", $l, [
|
|
1728
|
+
u("span", wl, k(F.name), 1),
|
|
1729
|
+
F.desc ? (t(), s("span", _l, k(F.desc), 1)) : w("", !0)
|
|
1713
1730
|
])
|
|
1714
1731
|
])
|
|
1715
1732
|
]),
|
|
@@ -1720,8 +1737,8 @@ const Ta = {
|
|
|
1720
1737
|
}, [
|
|
1721
1738
|
ne.value ? {
|
|
1722
1739
|
name: "footer",
|
|
1723
|
-
fn:
|
|
1724
|
-
u("div",
|
|
1740
|
+
fn: S(() => [
|
|
1741
|
+
u("div", fl, [
|
|
1725
1742
|
u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
|
|
1726
1743
|
u("button", {
|
|
1727
1744
|
type: "button",
|
|
@@ -1734,14 +1751,14 @@ const Ta = {
|
|
|
1734
1751
|
} : void 0
|
|
1735
1752
|
]), 1032, ["model-value", "placeholder", "remote", "loading", "popper-class"]));
|
|
1736
1753
|
}
|
|
1737
|
-
}),
|
|
1754
|
+
}), Yn = /* @__PURE__ */ Y(Sl, [["__scopeId", "data-v-ff057c7b"]]), Cl = { class: "emoo-msel__opt" }, El = ["src"], Tl = { class: "emoo-msel__name" }, xl = {
|
|
1738
1755
|
key: 0,
|
|
1739
1756
|
class: "emoo-msel__dept"
|
|
1740
|
-
},
|
|
1757
|
+
}, Il = {
|
|
1741
1758
|
class: "emoo-sel-remote-error",
|
|
1742
1759
|
role: "alert",
|
|
1743
1760
|
"data-testid": "remote-error"
|
|
1744
|
-
},
|
|
1761
|
+
}, zl = /* @__PURE__ */ N({
|
|
1745
1762
|
__name: "EmooMemberSelect",
|
|
1746
1763
|
props: {
|
|
1747
1764
|
modelValue: {},
|
|
@@ -1759,10 +1776,10 @@ const Ta = {
|
|
|
1759
1776
|
() => o.modelValue,
|
|
1760
1777
|
() => i.value ? p.value : o.options ?? [],
|
|
1761
1778
|
() => o.selected ?? []
|
|
1762
|
-
), I = (ee) => V.value.find((d) => d.id === ee), z =
|
|
1779
|
+
), I = (ee) => V.value.find((d) => d.id === ee), z = De(), G = R(() => z.disabled !== void 0 && z.disabled !== !1), X = (ee) => {
|
|
1763
1780
|
$(ee), l("update:modelValue", ee);
|
|
1764
1781
|
}, ie = (ee) => {
|
|
1765
|
-
if (
|
|
1782
|
+
if (G.value) return;
|
|
1766
1783
|
const d = E.value[ee]?.id;
|
|
1767
1784
|
d !== void 0 && X(o.modelValue.filter((T) => T !== d));
|
|
1768
1785
|
};
|
|
@@ -1781,14 +1798,14 @@ const Ta = {
|
|
|
1781
1798
|
"onUpdate:modelValue": X,
|
|
1782
1799
|
onVisibleChange: a(_)
|
|
1783
1800
|
}, Se({
|
|
1784
|
-
default:
|
|
1785
|
-
(t(!0), s(
|
|
1801
|
+
default: S(() => [
|
|
1802
|
+
(t(!0), s(P, null, Z(a(V), (T) => (t(), x(a(ze), {
|
|
1786
1803
|
key: T.id,
|
|
1787
1804
|
label: T.name,
|
|
1788
1805
|
value: T.id
|
|
1789
1806
|
}, {
|
|
1790
|
-
default:
|
|
1791
|
-
u("span",
|
|
1807
|
+
default: S(() => [
|
|
1808
|
+
u("span", Cl, [
|
|
1792
1809
|
u("span", {
|
|
1793
1810
|
class: "emoo-msel__avatar",
|
|
1794
1811
|
style: pe({ "--tint": T.color || "var(--el-color-primary)" })
|
|
@@ -1798,12 +1815,12 @@ const Ta = {
|
|
|
1798
1815
|
src: T.avatar,
|
|
1799
1816
|
alt: "",
|
|
1800
1817
|
class: "emoo-msel__img"
|
|
1801
|
-
}, null, 8,
|
|
1818
|
+
}, null, 8, El)) : (t(), s(P, { key: 1 }, [
|
|
1802
1819
|
J(k(T.name[0]), 1)
|
|
1803
1820
|
], 64))
|
|
1804
1821
|
], 4),
|
|
1805
|
-
u("span",
|
|
1806
|
-
T.dept ? (t(), s("span",
|
|
1822
|
+
u("span", Tl, k(T.name), 1),
|
|
1823
|
+
T.dept ? (t(), s("span", xl, k(T.dept), 1)) : w("", !0)
|
|
1807
1824
|
])
|
|
1808
1825
|
]),
|
|
1809
1826
|
_: 2
|
|
@@ -1813,29 +1830,29 @@ const Ta = {
|
|
|
1813
1830
|
}, [
|
|
1814
1831
|
e.multiple ? {
|
|
1815
1832
|
name: "tag",
|
|
1816
|
-
fn:
|
|
1817
|
-
|
|
1833
|
+
fn: S(() => [
|
|
1834
|
+
D(xe, {
|
|
1818
1835
|
items: a(E),
|
|
1819
1836
|
max: e.collapse,
|
|
1820
|
-
removable: !
|
|
1837
|
+
removable: !G.value,
|
|
1821
1838
|
onRemove: ie
|
|
1822
1839
|
}, null, 8, ["items", "max", "removable"])
|
|
1823
1840
|
]),
|
|
1824
1841
|
key: "1"
|
|
1825
1842
|
} : {
|
|
1826
1843
|
name: "label",
|
|
1827
|
-
fn:
|
|
1844
|
+
fn: S(({ value: T }) => [
|
|
1828
1845
|
I(T) ? (t(), x(xe, {
|
|
1829
1846
|
key: 0,
|
|
1830
1847
|
items: [I(T)]
|
|
1831
|
-
}, null, 8, ["items"])) :
|
|
1848
|
+
}, null, 8, ["items"])) : w("", !0)
|
|
1832
1849
|
]),
|
|
1833
1850
|
key: "0"
|
|
1834
1851
|
},
|
|
1835
1852
|
a(g) ? {
|
|
1836
1853
|
name: "footer",
|
|
1837
|
-
fn:
|
|
1838
|
-
u("div",
|
|
1854
|
+
fn: S(() => [
|
|
1855
|
+
u("div", Il, [
|
|
1839
1856
|
u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
|
|
1840
1857
|
u("button", {
|
|
1841
1858
|
type: "button",
|
|
@@ -1849,45 +1866,45 @@ const Ta = {
|
|
|
1849
1866
|
} : void 0
|
|
1850
1867
|
]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
|
|
1851
1868
|
}
|
|
1852
|
-
}),
|
|
1869
|
+
}), Qn = /* @__PURE__ */ Y(zl, [["__scopeId", "data-v-f6059e7c"]]), Rl = ["data-testid", "data-role"], Vl = {
|
|
1853
1870
|
key: 0,
|
|
1854
1871
|
class: "emoo-message__side"
|
|
1855
|
-
},
|
|
1872
|
+
}, Bl = {
|
|
1856
1873
|
key: 0,
|
|
1857
1874
|
class: "emoo-message__avatar"
|
|
1858
|
-
},
|
|
1875
|
+
}, Ml = ["src"], Pl = { class: "emoo-message__main" }, Dl = {
|
|
1859
1876
|
key: 0,
|
|
1860
1877
|
class: "emoo-message__name"
|
|
1861
|
-
},
|
|
1878
|
+
}, Al = ["data-status"], Ll = {
|
|
1862
1879
|
key: 0,
|
|
1863
1880
|
class: "emoo-message__dots",
|
|
1864
1881
|
"aria-label": "loading",
|
|
1865
1882
|
role: "status"
|
|
1866
|
-
},
|
|
1883
|
+
}, Ol = {
|
|
1867
1884
|
key: 1,
|
|
1868
1885
|
class: "emoo-message__stopped"
|
|
1869
|
-
},
|
|
1886
|
+
}, Ul = {
|
|
1870
1887
|
key: 2,
|
|
1871
1888
|
class: "emoo-message__error"
|
|
1872
|
-
},
|
|
1889
|
+
}, Hl = {
|
|
1873
1890
|
key: 4,
|
|
1874
1891
|
class: "emoo-message__attachments"
|
|
1875
|
-
},
|
|
1892
|
+
}, Kl = {
|
|
1876
1893
|
key: 1,
|
|
1877
1894
|
class: "emoo-message__foot"
|
|
1878
|
-
},
|
|
1895
|
+
}, Wl = {
|
|
1879
1896
|
key: 0,
|
|
1880
1897
|
class: "emoo-message__time"
|
|
1881
|
-
},
|
|
1898
|
+
}, Fl = {
|
|
1882
1899
|
key: 1,
|
|
1883
1900
|
class: "emoo-message__actions"
|
|
1884
|
-
},
|
|
1901
|
+
}, Nl = {
|
|
1885
1902
|
key: 1,
|
|
1886
1903
|
class: "emoo-message__side"
|
|
1887
|
-
},
|
|
1904
|
+
}, ql = {
|
|
1888
1905
|
key: 0,
|
|
1889
1906
|
class: "emoo-message__avatar"
|
|
1890
|
-
},
|
|
1907
|
+
}, jl = ["src"], Gl = /* @__PURE__ */ N({
|
|
1891
1908
|
__name: "EmooMessage",
|
|
1892
1909
|
props: {
|
|
1893
1910
|
role: {},
|
|
@@ -1905,53 +1922,53 @@ const Ta = {
|
|
|
1905
1922
|
"data-testid": e.testid,
|
|
1906
1923
|
"data-role": e.role
|
|
1907
1924
|
}, [
|
|
1908
|
-
e.role === "assistant" || e.role === "system" ? (t(), s("div",
|
|
1925
|
+
e.role === "assistant" || e.role === "system" ? (t(), s("div", Vl, [
|
|
1909
1926
|
A(o.$slots, "avatar", {}, () => [
|
|
1910
|
-
e.avatar ? (t(), s("span",
|
|
1927
|
+
e.avatar ? (t(), s("span", Bl, [
|
|
1911
1928
|
u("img", {
|
|
1912
1929
|
src: e.avatar,
|
|
1913
1930
|
alt: ""
|
|
1914
|
-
}, null, 8,
|
|
1915
|
-
])) :
|
|
1931
|
+
}, null, 8, Ml)
|
|
1932
|
+
])) : w("", !0)
|
|
1916
1933
|
], !0)
|
|
1917
|
-
])) :
|
|
1918
|
-
u("div",
|
|
1919
|
-
e.role === "system" && e.name ? (t(), s("div",
|
|
1934
|
+
])) : w("", !0),
|
|
1935
|
+
u("div", Pl, [
|
|
1936
|
+
e.role === "system" && e.name ? (t(), s("div", Dl, k(e.name), 1)) : w("", !0),
|
|
1920
1937
|
u("div", {
|
|
1921
1938
|
class: "emoo-message__body",
|
|
1922
1939
|
"data-status": e.status
|
|
1923
1940
|
}, [
|
|
1924
|
-
e.status === "loading" ? (t(), s("span",
|
|
1941
|
+
e.status === "loading" ? (t(), s("span", Ll, [...l[0] || (l[0] = [
|
|
1925
1942
|
u("i", null, null, -1),
|
|
1926
1943
|
u("i", null, null, -1),
|
|
1927
1944
|
u("i", null, null, -1)
|
|
1928
|
-
])])) : e.status === "stopped" ? (t(), s("span",
|
|
1945
|
+
])])) : e.status === "stopped" ? (t(), s("span", Ol, k(a(n)("common.emooMessage.stopped")), 1)) : e.status === "error" ? (t(), s("span", Ul, k(e.text || a(n)("common.emooMessage.failed")), 1)) : A(o.$slots, "default", {}, () => [
|
|
1929
1946
|
J(k(e.text), 1)
|
|
1930
1947
|
], !0, 3),
|
|
1931
|
-
o.$slots.attachments ? (t(), s("div",
|
|
1948
|
+
o.$slots.attachments ? (t(), s("div", Hl, [
|
|
1932
1949
|
A(o.$slots, "attachments", {}, void 0, !0)
|
|
1933
|
-
])) :
|
|
1934
|
-
], 8,
|
|
1935
|
-
e.time || o.$slots.actions ? (t(), s("div",
|
|
1936
|
-
e.time ? (t(), s("span",
|
|
1937
|
-
o.$slots.actions ? (t(), s("span",
|
|
1950
|
+
])) : w("", !0)
|
|
1951
|
+
], 8, Al),
|
|
1952
|
+
e.time || o.$slots.actions ? (t(), s("div", Kl, [
|
|
1953
|
+
e.time ? (t(), s("span", Wl, k(e.time), 1)) : w("", !0),
|
|
1954
|
+
o.$slots.actions ? (t(), s("span", Fl, [
|
|
1938
1955
|
A(o.$slots, "actions", {}, void 0, !0)
|
|
1939
|
-
])) :
|
|
1940
|
-
])) :
|
|
1956
|
+
])) : w("", !0)
|
|
1957
|
+
])) : w("", !0)
|
|
1941
1958
|
]),
|
|
1942
|
-
e.role === "user" ? (t(), s("div",
|
|
1959
|
+
e.role === "user" ? (t(), s("div", Nl, [
|
|
1943
1960
|
A(o.$slots, "avatar", {}, () => [
|
|
1944
|
-
e.avatar ? (t(), s("span",
|
|
1961
|
+
e.avatar ? (t(), s("span", ql, [
|
|
1945
1962
|
u("img", {
|
|
1946
1963
|
src: e.avatar,
|
|
1947
1964
|
alt: ""
|
|
1948
|
-
}, null, 8,
|
|
1949
|
-
])) :
|
|
1965
|
+
}, null, 8, jl)
|
|
1966
|
+
])) : w("", !0)
|
|
1950
1967
|
], !0)
|
|
1951
|
-
])) :
|
|
1952
|
-
], 10,
|
|
1968
|
+
])) : w("", !0)
|
|
1969
|
+
], 10, Rl));
|
|
1953
1970
|
}
|
|
1954
|
-
}),
|
|
1971
|
+
}), ei = /* @__PURE__ */ Y(Gl, [["__scopeId", "data-v-fca7a127"]]), Xl = /* @__PURE__ */ N({
|
|
1955
1972
|
__name: "EmooNavMenu",
|
|
1956
1973
|
props: {
|
|
1957
1974
|
items: {},
|
|
@@ -1967,7 +1984,7 @@ const Ta = {
|
|
|
1967
1984
|
), b = (d) => (d.children ?? []).filter((T) => !T.hidden && o.canShow(T)), _ = R(() => o.activePath ?? ""), y = (d) => !!d.action && !d.path && !d.children, V = (d) => d.active ?? _.value === (d.path || d.key), E = (d) => d.path && _.value.startsWith(d.path) ? !0 : (d.children ?? []).some((T) => T.path && _.value.startsWith(T.path) || E(T)), $ = (d) => p.get(d.key) ?? E(d), I = (d) => `emoo-nav-${d.key.replace(/[^a-zA-Z0-9_-]/g, "-")}-children`, z = (d) => {
|
|
1968
1985
|
const T = !$(d);
|
|
1969
1986
|
p.set(d.key, T), T && d.path && o.navigate?.(d.path), l("group-select", d, T);
|
|
1970
|
-
},
|
|
1987
|
+
}, G = (d) => {
|
|
1971
1988
|
l("select", d), d.path ? o.navigate?.(d.path) : d.action && d.action();
|
|
1972
1989
|
}, X = (d) => d.badge !== void 0 && d.badge !== "" ? ve("span", { class: "menu-badge" }, String(d.badge)) : null, ie = (d) => d.trailing ? ve(d.trailing, { class: "trailing-ic" }) : null, ee = (d, T) => {
|
|
1973
1990
|
if (!g(d))
|
|
@@ -1981,7 +1998,7 @@ const Ta = {
|
|
|
1981
1998
|
"aria-pressed": typeof d.active == "boolean" ? d.active : void 0,
|
|
1982
1999
|
"aria-current": V(d) && d.path ? "page" : void 0,
|
|
1983
2000
|
onClick: (ne) => {
|
|
1984
|
-
ne.stopPropagation(),
|
|
2001
|
+
ne.stopPropagation(), G(d);
|
|
1985
2002
|
}
|
|
1986
2003
|
}, [
|
|
1987
2004
|
i.leading?.({ item: d }) ?? (d.icon ? ve(d.icon, { class: "ic" }) : null),
|
|
@@ -1994,7 +2011,7 @@ const Ta = {
|
|
|
1994
2011
|
"data-testid": d.testid,
|
|
1995
2012
|
"aria-current": V(d) && d.path ? "page" : void 0,
|
|
1996
2013
|
onClick: (ne) => {
|
|
1997
|
-
ne.stopPropagation(),
|
|
2014
|
+
ne.stopPropagation(), G(d);
|
|
1998
2015
|
}
|
|
1999
2016
|
}, [
|
|
2000
2017
|
ve("span", { class: "child-menu-title" }, v(d)),
|
|
@@ -2044,12 +2061,12 @@ const Ta = {
|
|
|
2044
2061
|
return (d, T) => (t(), s("nav", {
|
|
2045
2062
|
class: W(["emoo-nav", { "is-touch": e.touch }])
|
|
2046
2063
|
}, [
|
|
2047
|
-
(t(!0), s(
|
|
2064
|
+
(t(!0), s(P, null, Z(c.value, (M) => (t(), x(Ie(ee(M, 0)), {
|
|
2048
2065
|
key: M.key
|
|
2049
2066
|
}))), 128))
|
|
2050
2067
|
], 2));
|
|
2051
2068
|
}
|
|
2052
|
-
}),
|
|
2069
|
+
}), ti = /* @__PURE__ */ Y(Xl, [["__scopeId", "data-v-ebbf674d"]]), Zl = { class: "emoo-nav-segmented" }, Jl = ["onClick"], Yl = /* @__PURE__ */ N({
|
|
2053
2070
|
__name: "EmooNavSegmented",
|
|
2054
2071
|
props: {
|
|
2055
2072
|
items: {},
|
|
@@ -2061,8 +2078,8 @@ const Ta = {
|
|
|
2061
2078
|
const o = e, l = n, { t: r } = me(), i = (v) => typeof v.title == "string" ? r(v.title) : v.title, p = (v) => {
|
|
2062
2079
|
l("select", v), v.path && o.navigate?.(v.path);
|
|
2063
2080
|
};
|
|
2064
|
-
return (v, g) => (t(), s("nav",
|
|
2065
|
-
(t(!0), s(
|
|
2081
|
+
return (v, g) => (t(), s("nav", Zl, [
|
|
2082
|
+
(t(!0), s(P, null, Z(e.items, (c) => (t(), s("button", {
|
|
2066
2083
|
key: c.key,
|
|
2067
2084
|
type: "button",
|
|
2068
2085
|
class: W(["emoo-nav-segmented__item", { "is-active": c.key === e.activeKey }]),
|
|
@@ -2071,12 +2088,12 @@ const Ta = {
|
|
|
2071
2088
|
c.icon ? (t(), x(Ie(c.icon), {
|
|
2072
2089
|
key: 0,
|
|
2073
2090
|
"aria-hidden": "true"
|
|
2074
|
-
})) :
|
|
2091
|
+
})) : w("", !0),
|
|
2075
2092
|
u("span", null, k(i(c)), 1)
|
|
2076
|
-
], 10,
|
|
2093
|
+
], 10, Jl))), 128))
|
|
2077
2094
|
]));
|
|
2078
2095
|
}
|
|
2079
|
-
}),
|
|
2096
|
+
}), oi = /* @__PURE__ */ Y(Yl, [["__scopeId", "data-v-a88dea1a"]]), Ql = /* @__PURE__ */ N({
|
|
2080
2097
|
__name: "EmooOptionRows",
|
|
2081
2098
|
props: {
|
|
2082
2099
|
options: {},
|
|
@@ -2104,7 +2121,7 @@ const Ta = {
|
|
|
2104
2121
|
key: 0,
|
|
2105
2122
|
class: W(["emoo-option-rows__choices", { "emoo-option-rows__choices--inline": e.inline }])
|
|
2106
2123
|
}, [
|
|
2107
|
-
|
|
2124
|
+
D(da, {
|
|
2108
2125
|
class: "emoo-option-rows__select",
|
|
2109
2126
|
options: e.options,
|
|
2110
2127
|
"model-value": e.modelValue,
|
|
@@ -2121,14 +2138,14 @@ const Ta = {
|
|
|
2121
2138
|
disabled: e.disabled,
|
|
2122
2139
|
"onUpdate:modelValue": p
|
|
2123
2140
|
}, {
|
|
2124
|
-
default:
|
|
2125
|
-
(t(!0), s(
|
|
2141
|
+
default: S(() => [
|
|
2142
|
+
(t(!0), s(P, null, Z(e.options, (c) => (t(), x(a(st), {
|
|
2126
2143
|
key: `${typeof c.value}:${c.value}`,
|
|
2127
2144
|
value: c.value,
|
|
2128
2145
|
"data-testid": e.testid ? `${e.testid}-${String(c.value)}` : void 0,
|
|
2129
2146
|
border: ""
|
|
2130
2147
|
}, {
|
|
2131
|
-
default:
|
|
2148
|
+
default: S(() => [
|
|
2132
2149
|
J(k(c.label), 1)
|
|
2133
2150
|
]),
|
|
2134
2151
|
_: 2
|
|
@@ -2142,15 +2159,15 @@ const Ta = {
|
|
|
2142
2159
|
disabled: e.disabled,
|
|
2143
2160
|
"onUpdate:modelValue": i
|
|
2144
2161
|
}, {
|
|
2145
|
-
default:
|
|
2146
|
-
(t(!0), s(
|
|
2162
|
+
default: S(() => [
|
|
2163
|
+
(t(!0), s(P, null, Z(e.options, (c) => (t(), x(a(zt), {
|
|
2147
2164
|
key: `${typeof c.value}:${c.value}`,
|
|
2148
2165
|
value: c.value,
|
|
2149
2166
|
"data-testid": e.testid ? `${e.testid}-${String(c.value)}` : void 0,
|
|
2150
2167
|
border: "",
|
|
2151
2168
|
onClickCapture: (b) => r(c.value, b)
|
|
2152
2169
|
}, {
|
|
2153
|
-
default:
|
|
2170
|
+
default: S(() => [
|
|
2154
2171
|
J(k(c.label), 1)
|
|
2155
2172
|
]),
|
|
2156
2173
|
_: 2
|
|
@@ -2161,21 +2178,21 @@ const Ta = {
|
|
|
2161
2178
|
A(v.$slots, "append", {}, void 0, !0)
|
|
2162
2179
|
], 2));
|
|
2163
2180
|
}
|
|
2164
|
-
}),
|
|
2181
|
+
}), ai = /* @__PURE__ */ Y(Ql, [["__scopeId", "data-v-44e7d258"]]), es = {
|
|
2165
2182
|
key: 0,
|
|
2166
2183
|
class: "emt-foot",
|
|
2167
2184
|
"data-testid": "emt-foot"
|
|
2168
|
-
},
|
|
2185
|
+
}, ts = { class: "emt-foot__info" }, os = { class: "emt-foot__right" }, as = ["aria-label"], ls = {
|
|
2169
2186
|
class: "emt-foot__size",
|
|
2170
2187
|
type: "button",
|
|
2171
2188
|
"data-testid": "emt-pagesize"
|
|
2172
|
-
},
|
|
2189
|
+
}, ss = { class: "emt-colmenu__list" }, ns = { class: "emt-tick" }, is = {
|
|
2173
2190
|
class: "emt-pager",
|
|
2174
2191
|
"data-testid": "emt-pager"
|
|
2175
|
-
},
|
|
2192
|
+
}, rs = ["disabled", "aria-label"], ds = ["data-testid", "onClick"], us = {
|
|
2176
2193
|
key: 1,
|
|
2177
2194
|
class: "emt-pager__btn is-ellipsis"
|
|
2178
|
-
},
|
|
2195
|
+
}, cs = ["disabled", "aria-label"], ms = /* @__PURE__ */ N({
|
|
2179
2196
|
__name: "EmooPagination",
|
|
2180
2197
|
props: {
|
|
2181
2198
|
total: {},
|
|
@@ -2196,21 +2213,21 @@ const Ta = {
|
|
|
2196
2213
|
}, y = (E) => {
|
|
2197
2214
|
E !== o.pageSize && (l("update:pageSize", E), l("update:page", 1));
|
|
2198
2215
|
};
|
|
2199
|
-
|
|
2216
|
+
_e(p, (E) => {
|
|
2200
2217
|
o.page > E && l("update:page", E);
|
|
2201
2218
|
});
|
|
2202
2219
|
const V = R(
|
|
2203
2220
|
() => o.density === "compact" ? r(o.densityBase === "comfort" ? "common.emooTable.switchToComfort" : "common.emooTable.switchToStandard") : r("common.emooTable.switchToCompact")
|
|
2204
2221
|
);
|
|
2205
|
-
return (E, $) => e.total > 0 ? (t(), s("footer",
|
|
2206
|
-
u("span",
|
|
2207
|
-
u("div",
|
|
2222
|
+
return (E, $) => e.total > 0 ? (t(), s("footer", es, [
|
|
2223
|
+
u("span", ts, k(a(r)("common.emooTable.totalInfo", { total: c(e.total), from: c(v.value), to: c(g.value) })), 1),
|
|
2224
|
+
u("div", os, [
|
|
2208
2225
|
e.density ? (t(), x(he, {
|
|
2209
2226
|
key: 0,
|
|
2210
2227
|
content: V.value,
|
|
2211
2228
|
placement: "top"
|
|
2212
2229
|
}, {
|
|
2213
|
-
default:
|
|
2230
|
+
default: S(() => [
|
|
2214
2231
|
u("button", {
|
|
2215
2232
|
class: W(["emt-foot__dens", { "is-on": e.density === "compact" }]),
|
|
2216
2233
|
type: "button",
|
|
@@ -2218,35 +2235,35 @@ const Ta = {
|
|
|
2218
2235
|
"data-testid": "emt-density",
|
|
2219
2236
|
onClick: $[0] || ($[0] = (I) => l("update:density", e.density === "compact" ? "default" : "compact"))
|
|
2220
2237
|
}, [
|
|
2221
|
-
|
|
2238
|
+
D(a($o), {
|
|
2222
2239
|
size: 14,
|
|
2223
2240
|
"aria-hidden": "true"
|
|
2224
2241
|
})
|
|
2225
|
-
], 10,
|
|
2242
|
+
], 10, as)
|
|
2226
2243
|
]),
|
|
2227
2244
|
_: 1
|
|
2228
|
-
}, 8, ["content"])) :
|
|
2229
|
-
|
|
2245
|
+
}, 8, ["content"])) : w("", !0),
|
|
2246
|
+
D(a(nt), {
|
|
2230
2247
|
trigger: "click",
|
|
2231
2248
|
placement: "top-end",
|
|
2232
2249
|
"popper-class": "emt-colmenu",
|
|
2233
2250
|
onCommand: $[1] || ($[1] = (I) => y(Number(I)))
|
|
2234
2251
|
}, {
|
|
2235
|
-
dropdown:
|
|
2236
|
-
u("div",
|
|
2237
|
-
(t(!0), s(
|
|
2252
|
+
dropdown: S(() => [
|
|
2253
|
+
u("div", ss, [
|
|
2254
|
+
(t(!0), s(P, null, Z(e.pageSizes, (I) => (t(), x(a(no), {
|
|
2238
2255
|
key: I,
|
|
2239
2256
|
class: W(["emt-colmenu__item", { "is-on": I === e.pageSize }]),
|
|
2240
2257
|
command: I,
|
|
2241
2258
|
"data-testid": `emt-pagesize-${I}`
|
|
2242
2259
|
}, {
|
|
2243
|
-
default:
|
|
2244
|
-
u("span",
|
|
2245
|
-
I === e.pageSize ? (t(), x(a(
|
|
2260
|
+
default: S(() => [
|
|
2261
|
+
u("span", ns, [
|
|
2262
|
+
I === e.pageSize ? (t(), x(a(Pt), {
|
|
2246
2263
|
key: 0,
|
|
2247
2264
|
size: 13,
|
|
2248
2265
|
"aria-hidden": "true"
|
|
2249
|
-
})) :
|
|
2266
|
+
})) : w("", !0)
|
|
2250
2267
|
]),
|
|
2251
2268
|
J(k(a(r)("common.emooTable.perPage", { n: I })), 1)
|
|
2252
2269
|
]),
|
|
@@ -2254,10 +2271,10 @@ const Ta = {
|
|
|
2254
2271
|
}, 1032, ["class", "command", "data-testid"]))), 128))
|
|
2255
2272
|
])
|
|
2256
2273
|
]),
|
|
2257
|
-
default:
|
|
2258
|
-
u("button",
|
|
2274
|
+
default: S(() => [
|
|
2275
|
+
u("button", ls, [
|
|
2259
2276
|
J(k(a(r)("common.emooTable.perPage", { n: e.pageSize })) + " ", 1),
|
|
2260
|
-
|
|
2277
|
+
D(a(rt), {
|
|
2261
2278
|
size: 11,
|
|
2262
2279
|
"aria-hidden": "true"
|
|
2263
2280
|
})
|
|
@@ -2265,7 +2282,7 @@ const Ta = {
|
|
|
2265
2282
|
]),
|
|
2266
2283
|
_: 1
|
|
2267
2284
|
}),
|
|
2268
|
-
u("div",
|
|
2285
|
+
u("div", is, [
|
|
2269
2286
|
u("button", {
|
|
2270
2287
|
class: "emt-pager__btn",
|
|
2271
2288
|
type: "button",
|
|
@@ -2274,19 +2291,19 @@ const Ta = {
|
|
|
2274
2291
|
"data-testid": "emt-page-prev",
|
|
2275
2292
|
onClick: $[2] || ($[2] = (I) => _(i.value - 1))
|
|
2276
2293
|
}, [
|
|
2277
|
-
|
|
2294
|
+
D(a(Dt), {
|
|
2278
2295
|
size: 14,
|
|
2279
2296
|
"aria-hidden": "true"
|
|
2280
2297
|
})
|
|
2281
|
-
], 8,
|
|
2282
|
-
(t(!0), s(
|
|
2298
|
+
], 8, rs),
|
|
2299
|
+
(t(!0), s(P, null, Z(b.value, (I, z) => (t(), s(P, { key: z }, [
|
|
2283
2300
|
typeof I == "number" ? (t(), s("button", {
|
|
2284
2301
|
key: 0,
|
|
2285
2302
|
class: W(["emt-pager__btn", { "is-active": I === i.value }]),
|
|
2286
2303
|
type: "button",
|
|
2287
2304
|
"data-testid": `emt-page-${I}`,
|
|
2288
|
-
onClick: (
|
|
2289
|
-
}, k(I), 11,
|
|
2305
|
+
onClick: (G) => _(I)
|
|
2306
|
+
}, k(I), 11, ds)) : (t(), s("span", us, "…"))
|
|
2290
2307
|
], 64))), 128)),
|
|
2291
2308
|
u("button", {
|
|
2292
2309
|
class: "emt-pager__btn",
|
|
@@ -2296,16 +2313,16 @@ const Ta = {
|
|
|
2296
2313
|
"data-testid": "emt-page-next",
|
|
2297
2314
|
onClick: $[3] || ($[3] = (I) => _(i.value + 1))
|
|
2298
2315
|
}, [
|
|
2299
|
-
|
|
2316
|
+
D(a(Ge), {
|
|
2300
2317
|
size: 14,
|
|
2301
2318
|
"aria-hidden": "true"
|
|
2302
2319
|
})
|
|
2303
|
-
], 8,
|
|
2320
|
+
], 8, cs)
|
|
2304
2321
|
])
|
|
2305
2322
|
])
|
|
2306
|
-
])) :
|
|
2323
|
+
])) : w("", !0);
|
|
2307
2324
|
}
|
|
2308
|
-
}),
|
|
2325
|
+
}), vs = /* @__PURE__ */ Y(ms, [["__scopeId", "data-v-fc98e78c"]]), li = /* @__PURE__ */ N({
|
|
2309
2326
|
__name: "EmooPopover",
|
|
2310
2327
|
props: {
|
|
2311
2328
|
popperClass: { default: "" },
|
|
@@ -2317,27 +2334,27 @@ const Ta = {
|
|
|
2317
2334
|
"show-arrow": e.showArrow,
|
|
2318
2335
|
"popper-class": o.value
|
|
2319
2336
|
}), Se({
|
|
2320
|
-
default:
|
|
2337
|
+
default: S(() => [
|
|
2321
2338
|
A(l.$slots, "default")
|
|
2322
2339
|
]),
|
|
2323
2340
|
_: 2
|
|
2324
2341
|
}, [
|
|
2325
2342
|
l.$slots.reference ? {
|
|
2326
2343
|
name: "reference",
|
|
2327
|
-
fn:
|
|
2344
|
+
fn: S(() => [
|
|
2328
2345
|
A(l.$slots, "reference")
|
|
2329
2346
|
]),
|
|
2330
2347
|
key: "0"
|
|
2331
2348
|
} : void 0
|
|
2332
2349
|
]), 1040, ["show-arrow", "popper-class"]));
|
|
2333
2350
|
}
|
|
2334
|
-
}),
|
|
2351
|
+
}), fs = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], hs = {
|
|
2335
2352
|
class: "emoo-progress__track",
|
|
2336
2353
|
"aria-hidden": "true"
|
|
2337
|
-
},
|
|
2354
|
+
}, ps = {
|
|
2338
2355
|
key: 0,
|
|
2339
2356
|
class: "emoo-progress__label"
|
|
2340
|
-
},
|
|
2357
|
+
}, ys = /* @__PURE__ */ N({
|
|
2341
2358
|
__name: "EmooProgress",
|
|
2342
2359
|
props: {
|
|
2343
2360
|
value: { default: null },
|
|
@@ -2364,23 +2381,23 @@ const Ta = {
|
|
|
2364
2381
|
"aria-valuenow": l.value ? void 0 : r.value,
|
|
2365
2382
|
"aria-valuetext": p.value
|
|
2366
2383
|
}, [
|
|
2367
|
-
u("span",
|
|
2384
|
+
u("span", hs, [
|
|
2368
2385
|
u("span", {
|
|
2369
2386
|
class: "emoo-progress__fill",
|
|
2370
2387
|
style: pe(i.value)
|
|
2371
2388
|
}, null, 4)
|
|
2372
2389
|
]),
|
|
2373
|
-
e.label ? (t(), s("span",
|
|
2374
|
-
], 10,
|
|
2390
|
+
e.label ? (t(), s("span", ps, k(e.label), 1)) : w("", !0)
|
|
2391
|
+
], 10, fs));
|
|
2375
2392
|
}
|
|
2376
|
-
}),
|
|
2393
|
+
}), bs = /* @__PURE__ */ Y(ys, [["__scopeId", "data-v-cab4f706"]]), gs = { class: "emoo-rsel__opt" }, ks = ["src"], $s = { class: "emoo-rsel__col" }, ws = { class: "emoo-rsel__name" }, _s = {
|
|
2377
2394
|
key: 0,
|
|
2378
2395
|
class: "emoo-rsel__desc"
|
|
2379
|
-
},
|
|
2396
|
+
}, Ss = {
|
|
2380
2397
|
class: "emoo-sel-remote-error",
|
|
2381
2398
|
role: "alert",
|
|
2382
2399
|
"data-testid": "remote-error"
|
|
2383
|
-
},
|
|
2400
|
+
}, Cs = /* @__PURE__ */ N({
|
|
2384
2401
|
__name: "EmooRoleSelect",
|
|
2385
2402
|
props: {
|
|
2386
2403
|
modelValue: {},
|
|
@@ -2398,7 +2415,7 @@ const Ta = {
|
|
|
2398
2415
|
() => o.modelValue,
|
|
2399
2416
|
() => i.value ? p.value : o.options ?? [],
|
|
2400
2417
|
() => o.selected ?? []
|
|
2401
|
-
), I = (d) => V.value.find((T) => T.id === d), z =
|
|
2418
|
+
), I = (d) => V.value.find((T) => T.id === d), z = De(), G = R(() => z.disabled !== void 0 && z.disabled !== !1), X = (d) => ({ ...d, square: !0 }), ie = (d) => {
|
|
2402
2419
|
const T = $(d);
|
|
2403
2420
|
l("update:modelValue", d), l("update:selected", T);
|
|
2404
2421
|
}, ee = (d) => {
|
|
@@ -2420,14 +2437,14 @@ const Ta = {
|
|
|
2420
2437
|
"onUpdate:modelValue": ie,
|
|
2421
2438
|
onVisibleChange: a(_)
|
|
2422
2439
|
}, Se({
|
|
2423
|
-
default:
|
|
2424
|
-
(t(!0), s(
|
|
2440
|
+
default: S(() => [
|
|
2441
|
+
(t(!0), s(P, null, Z(a(V), (M) => (t(), x(a(ze), {
|
|
2425
2442
|
key: M.id,
|
|
2426
2443
|
label: M.name,
|
|
2427
2444
|
value: M.id
|
|
2428
2445
|
}, {
|
|
2429
|
-
default:
|
|
2430
|
-
u("span",
|
|
2446
|
+
default: S(() => [
|
|
2447
|
+
u("span", gs, [
|
|
2431
2448
|
u("span", {
|
|
2432
2449
|
class: "emoo-rsel__avatar",
|
|
2433
2450
|
style: pe({ "--tint": M.color || "var(--el-color-primary)" })
|
|
@@ -2437,13 +2454,13 @@ const Ta = {
|
|
|
2437
2454
|
src: M.avatar,
|
|
2438
2455
|
alt: "",
|
|
2439
2456
|
class: "emoo-rsel__img"
|
|
2440
|
-
}, null, 8,
|
|
2457
|
+
}, null, 8, ks)) : (t(), s(P, { key: 1 }, [
|
|
2441
2458
|
J(k(M.name[0]), 1)
|
|
2442
2459
|
], 64))
|
|
2443
2460
|
], 4),
|
|
2444
|
-
u("span",
|
|
2445
|
-
u("span",
|
|
2446
|
-
M.desc ? (t(), s("span",
|
|
2461
|
+
u("span", $s, [
|
|
2462
|
+
u("span", ws, k(M.name), 1),
|
|
2463
|
+
M.desc ? (t(), s("span", _s, k(M.desc), 1)) : w("", !0)
|
|
2447
2464
|
])
|
|
2448
2465
|
])
|
|
2449
2466
|
]),
|
|
@@ -2454,29 +2471,29 @@ const Ta = {
|
|
|
2454
2471
|
}, [
|
|
2455
2472
|
e.multiple ? {
|
|
2456
2473
|
name: "tag",
|
|
2457
|
-
fn:
|
|
2458
|
-
|
|
2474
|
+
fn: S(() => [
|
|
2475
|
+
D(xe, {
|
|
2459
2476
|
items: a(E).map(X),
|
|
2460
2477
|
max: e.collapse,
|
|
2461
|
-
removable: !
|
|
2478
|
+
removable: !G.value,
|
|
2462
2479
|
onRemove: ee
|
|
2463
2480
|
}, null, 8, ["items", "max", "removable"])
|
|
2464
2481
|
]),
|
|
2465
2482
|
key: "1"
|
|
2466
2483
|
} : {
|
|
2467
2484
|
name: "label",
|
|
2468
|
-
fn:
|
|
2485
|
+
fn: S(({ value: M }) => [
|
|
2469
2486
|
I(M) ? (t(), x(xe, {
|
|
2470
2487
|
key: 0,
|
|
2471
2488
|
items: [X(I(M))]
|
|
2472
|
-
}, null, 8, ["items"])) :
|
|
2489
|
+
}, null, 8, ["items"])) : w("", !0)
|
|
2473
2490
|
]),
|
|
2474
2491
|
key: "0"
|
|
2475
2492
|
},
|
|
2476
2493
|
a(g) ? {
|
|
2477
2494
|
name: "footer",
|
|
2478
|
-
fn:
|
|
2479
|
-
u("div",
|
|
2495
|
+
fn: S(() => [
|
|
2496
|
+
u("div", Ss, [
|
|
2480
2497
|
u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
|
|
2481
2498
|
u("button", {
|
|
2482
2499
|
type: "button",
|
|
@@ -2490,19 +2507,19 @@ const Ta = {
|
|
|
2490
2507
|
} : void 0
|
|
2491
2508
|
]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
|
|
2492
2509
|
}
|
|
2493
|
-
}),
|
|
2510
|
+
}), si = /* @__PURE__ */ Y(Cs, [["__scopeId", "data-v-6c4ae65a"]]), Es = {
|
|
2494
2511
|
key: 1,
|
|
2495
2512
|
class: "emoo-search-box__top"
|
|
2496
|
-
},
|
|
2513
|
+
}, Ts = {
|
|
2497
2514
|
key: 2,
|
|
2498
2515
|
class: "emoo-search-box__extras"
|
|
2499
|
-
},
|
|
2516
|
+
}, xs = { class: "emoo-search-box__field" }, Is = {
|
|
2500
2517
|
key: 3,
|
|
2501
2518
|
class: "emoo-search-box__bar"
|
|
2502
|
-
},
|
|
2519
|
+
}, zs = {
|
|
2503
2520
|
key: 0,
|
|
2504
2521
|
class: "emoo-search-box__trailing"
|
|
2505
|
-
},
|
|
2522
|
+
}, Rs = /* @__PURE__ */ N({
|
|
2506
2523
|
__name: "EmooSearchBox",
|
|
2507
2524
|
props: {
|
|
2508
2525
|
variant: { default: "composer" },
|
|
@@ -2523,35 +2540,35 @@ const Ta = {
|
|
|
2523
2540
|
key: 0,
|
|
2524
2541
|
content: e.gripTip || a(o)("common.emooSearchBox.gripTip")
|
|
2525
2542
|
}, {
|
|
2526
|
-
default:
|
|
2543
|
+
default: S(() => [
|
|
2527
2544
|
u("span", {
|
|
2528
2545
|
class: W(["emoo-search-box__grip", { "is-on": e.resizing }]),
|
|
2529
2546
|
onMousedown: i[0] || (i[0] = (p) => l("grip-mousedown", p))
|
|
2530
2547
|
}, null, 34)
|
|
2531
2548
|
]),
|
|
2532
2549
|
_: 1
|
|
2533
|
-
}, 8, ["content"])) :
|
|
2534
|
-
r.$slots.top ? (t(), s("div",
|
|
2550
|
+
}, 8, ["content"])) : w("", !0),
|
|
2551
|
+
r.$slots.top ? (t(), s("div", Es, [
|
|
2535
2552
|
A(r.$slots, "top", {}, void 0, !0)
|
|
2536
|
-
])) :
|
|
2537
|
-
r.$slots.extras ? (t(), s("div",
|
|
2553
|
+
])) : w("", !0),
|
|
2554
|
+
r.$slots.extras ? (t(), s("div", Ts, [
|
|
2538
2555
|
A(r.$slots, "extras", {}, void 0, !0)
|
|
2539
|
-
])) :
|
|
2540
|
-
u("div",
|
|
2556
|
+
])) : w("", !0),
|
|
2557
|
+
u("div", xs, [
|
|
2541
2558
|
A(r.$slots, "default", {}, void 0, !0)
|
|
2542
2559
|
]),
|
|
2543
|
-
r.$slots.bar || r.$slots.trailing ? (t(), s("div",
|
|
2560
|
+
r.$slots.bar || r.$slots.trailing ? (t(), s("div", Is, [
|
|
2544
2561
|
A(r.$slots, "bar", {}, void 0, !0),
|
|
2545
|
-
r.$slots.trailing ? (t(), s("div",
|
|
2562
|
+
r.$slots.trailing ? (t(), s("div", zs, [
|
|
2546
2563
|
A(r.$slots, "trailing", {}, void 0, !0)
|
|
2547
|
-
])) :
|
|
2548
|
-
])) :
|
|
2564
|
+
])) : w("", !0)
|
|
2565
|
+
])) : w("", !0)
|
|
2549
2566
|
], 2));
|
|
2550
2567
|
}
|
|
2551
|
-
}),
|
|
2568
|
+
}), ni = /* @__PURE__ */ Y(Rs, [["__scopeId", "data-v-98479d22"]]), Vs = ["aria-label"], Bs = ["aria-pressed", "aria-label", "disabled", "onClick"], Ms = { key: 1 }, Ps = {
|
|
2552
2569
|
key: 2,
|
|
2553
2570
|
class: "emoo-segmented__count"
|
|
2554
|
-
},
|
|
2571
|
+
}, Ds = /* @__PURE__ */ N({
|
|
2555
2572
|
__name: "EmooSegmented",
|
|
2556
2573
|
props: {
|
|
2557
2574
|
options: {},
|
|
@@ -2571,7 +2588,7 @@ const Ta = {
|
|
|
2571
2588
|
role: "group",
|
|
2572
2589
|
"aria-label": e.ariaLabel || a(o)("common.emooSegmented.ariaLabel")
|
|
2573
2590
|
}, [
|
|
2574
|
-
(t(!0), s(
|
|
2591
|
+
(t(!0), s(P, null, Z(e.options, (c) => (t(), s("button", {
|
|
2575
2592
|
key: c.value,
|
|
2576
2593
|
type: "button",
|
|
2577
2594
|
class: W(["emoo-segmented__item", { "is-active": c.value === e.modelValue, "is-icon-only": !!c.icon && !c.label }]),
|
|
@@ -2584,13 +2601,13 @@ const Ta = {
|
|
|
2584
2601
|
key: 0,
|
|
2585
2602
|
size: r.value,
|
|
2586
2603
|
"aria-hidden": "true"
|
|
2587
|
-
}, null, 8, ["size"])) :
|
|
2588
|
-
c.label ? (t(), s("span",
|
|
2589
|
-
c.count !== void 0 ? (t(), s("span",
|
|
2590
|
-
], 10,
|
|
2591
|
-
], 10,
|
|
2604
|
+
}, null, 8, ["size"])) : w("", !0),
|
|
2605
|
+
c.label ? (t(), s("span", Ms, k(c.label), 1)) : w("", !0),
|
|
2606
|
+
c.count !== void 0 ? (t(), s("span", Ps, k(c.count), 1)) : w("", !0)
|
|
2607
|
+
], 10, Bs))), 128))
|
|
2608
|
+
], 10, Vs));
|
|
2592
2609
|
}
|
|
2593
|
-
}),
|
|
2610
|
+
}), ii = /* @__PURE__ */ Y(Ds, [["__scopeId", "data-v-bcd69b5a"]]), As = /* @__PURE__ */ N({
|
|
2594
2611
|
__name: "EmooSidebarShell",
|
|
2595
2612
|
props: {
|
|
2596
2613
|
collapsed: { type: Boolean, default: !1 },
|
|
@@ -2613,7 +2630,7 @@ const Ta = {
|
|
|
2613
2630
|
A(l.$slots, "footer", {}, void 0, !0)
|
|
2614
2631
|
], 6));
|
|
2615
2632
|
}
|
|
2616
|
-
}),
|
|
2633
|
+
}), ri = /* @__PURE__ */ Y(As, [["__scopeId", "data-v-8f94cc28"]]), Ls = /* @__PURE__ */ N({
|
|
2617
2634
|
__name: "EmooStatusTag",
|
|
2618
2635
|
props: {
|
|
2619
2636
|
tone: {},
|
|
@@ -2626,10 +2643,10 @@ const Ta = {
|
|
|
2626
2643
|
A(n.$slots, "default", {}, void 0, !0)
|
|
2627
2644
|
], 2));
|
|
2628
2645
|
}
|
|
2629
|
-
}),
|
|
2646
|
+
}), Os = /* @__PURE__ */ Y(Ls, [["__scopeId", "data-v-9c6a9ab7"]]), Us = { class: "emoo-switcher" }, Hs = {
|
|
2630
2647
|
key: 0,
|
|
2631
2648
|
class: "switcher-title"
|
|
2632
|
-
},
|
|
2649
|
+
}, Ks = ["data-testid", "onClick"], Ws = ["src", "alt"], Fs = { class: "switcher-label" }, Ns = /* @__PURE__ */ N({
|
|
2633
2650
|
__name: "EmooSwitcherPanel",
|
|
2634
2651
|
props: {
|
|
2635
2652
|
title: {},
|
|
@@ -2641,12 +2658,12 @@ const Ta = {
|
|
|
2641
2658
|
const o = e, l = n, { t: r } = me(), i = (c) => r(c.title), p = R(() => o.title ? r(o.title) : ""), v = R(() => o.items.filter((c) => !c.hidden)), g = (c) => {
|
|
2642
2659
|
l("select", c), c.action?.();
|
|
2643
2660
|
};
|
|
2644
|
-
return (c, b) => (t(), s("div",
|
|
2645
|
-
e.title ? (t(), s("p",
|
|
2661
|
+
return (c, b) => (t(), s("div", Us, [
|
|
2662
|
+
e.title ? (t(), s("p", Hs, k(p.value), 1)) : w("", !0),
|
|
2646
2663
|
u("div", {
|
|
2647
2664
|
class: W(["switcher-list", { "is-scrollable": e.scrollable }])
|
|
2648
2665
|
}, [
|
|
2649
|
-
(t(!0), s(
|
|
2666
|
+
(t(!0), s(P, null, Z(v.value, (_) => (t(), s("button", {
|
|
2650
2667
|
key: _.key,
|
|
2651
2668
|
type: "button",
|
|
2652
2669
|
class: W(["switcher-item", { "is-active": _.active }]),
|
|
@@ -2658,20 +2675,20 @@ const Ta = {
|
|
|
2658
2675
|
src: _.image,
|
|
2659
2676
|
alt: i(_),
|
|
2660
2677
|
class: "switcher-image"
|
|
2661
|
-
}, null, 8,
|
|
2678
|
+
}, null, 8, Ws)) : _.icon ? (t(), x(Ie(_.icon), {
|
|
2662
2679
|
key: 1,
|
|
2663
2680
|
class: "ic"
|
|
2664
|
-
})) :
|
|
2665
|
-
u("span",
|
|
2666
|
-
_.active ? (t(), x(a(
|
|
2681
|
+
})) : w("", !0),
|
|
2682
|
+
u("span", Fs, k(i(_)), 1),
|
|
2683
|
+
_.active ? (t(), x(a(Pt), {
|
|
2667
2684
|
key: 2,
|
|
2668
2685
|
class: "switcher-check"
|
|
2669
|
-
})) :
|
|
2670
|
-
], 10,
|
|
2686
|
+
})) : w("", !0)
|
|
2687
|
+
], 10, Ks))), 128))
|
|
2671
2688
|
], 2)
|
|
2672
2689
|
]));
|
|
2673
2690
|
}
|
|
2674
|
-
}),
|
|
2691
|
+
}), di = /* @__PURE__ */ Y(Ns, [["__scopeId", "data-v-a2309e72"]]), qs = /* @__PURE__ */ N({
|
|
2675
2692
|
__name: "EmooTagsInput",
|
|
2676
2693
|
props: {
|
|
2677
2694
|
modelValue: { default: () => [] },
|
|
@@ -2694,20 +2711,20 @@ const Ta = {
|
|
|
2694
2711
|
return (E, $) => (t(), s("div", {
|
|
2695
2712
|
class: W(["emoo-tags-input", { "is-disabled": e.disabled }])
|
|
2696
2713
|
}, [
|
|
2697
|
-
(t(!0), s(
|
|
2714
|
+
(t(!0), s(P, null, Z(e.modelValue, (I, z) => (t(), x(a(ro), {
|
|
2698
2715
|
key: `${z}:${I}`,
|
|
2699
2716
|
class: "emoo-tags-input__tag",
|
|
2700
2717
|
"disable-transitions": !1,
|
|
2701
2718
|
closable: !e.readonly && !e.disabled,
|
|
2702
2719
|
"data-testid": `tags-tag-${z}`,
|
|
2703
|
-
onClose: (
|
|
2720
|
+
onClose: (G) => b(I)
|
|
2704
2721
|
}, {
|
|
2705
|
-
default:
|
|
2722
|
+
default: S(() => [
|
|
2706
2723
|
J(k(I), 1)
|
|
2707
2724
|
]),
|
|
2708
2725
|
_: 2
|
|
2709
2726
|
}, 1032, ["closable", "data-testid", "onClose"]))), 128)),
|
|
2710
|
-
!e.readonly && !e.disabled ? (t(), s(
|
|
2727
|
+
!e.readonly && !e.disabled ? (t(), s(P, { key: 0 }, [
|
|
2711
2728
|
p.value ? (t(), x(a(ot), {
|
|
2712
2729
|
key: 0,
|
|
2713
2730
|
ref_key: "inputRef",
|
|
@@ -2722,7 +2739,7 @@ const Ta = {
|
|
|
2722
2739
|
onCompositionend: $[2] || ($[2] = (I) => v.value = !1),
|
|
2723
2740
|
onKeydown: V,
|
|
2724
2741
|
onBlur: y
|
|
2725
|
-
}, null, 8, ["modelValue", "placeholder"])) : (t(), x(
|
|
2742
|
+
}, null, 8, ["modelValue", "placeholder"])) : (t(), x(Pe, {
|
|
2726
2743
|
key: 1,
|
|
2727
2744
|
ref_key: "addButtonRef",
|
|
2728
2745
|
ref: c,
|
|
@@ -2731,34 +2748,35 @@ const Ta = {
|
|
|
2731
2748
|
"data-testid": "tags-add",
|
|
2732
2749
|
onClick: _
|
|
2733
2750
|
}, {
|
|
2734
|
-
default:
|
|
2751
|
+
default: S(() => [
|
|
2735
2752
|
J(" + " + k(a(r)("common.emooTagsInput.add")), 1)
|
|
2736
2753
|
]),
|
|
2737
2754
|
_: 1
|
|
2738
2755
|
}, 512))
|
|
2739
|
-
], 64)) :
|
|
2756
|
+
], 64)) : w("", !0)
|
|
2740
2757
|
], 2));
|
|
2741
2758
|
}
|
|
2742
|
-
}),
|
|
2743
|
-
function
|
|
2759
|
+
}), ui = /* @__PURE__ */ Y(qs, [["__scopeId", "data-v-2b248a6f"]]), js = 140, at = 64;
|
|
2760
|
+
function Gs(e) {
|
|
2744
2761
|
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) => {
|
|
2745
2762
|
if (!Array.isArray(C)) return l();
|
|
2746
2763
|
const L = /* @__PURE__ */ new Map(), Q = [];
|
|
2747
2764
|
for (const O of C) {
|
|
2748
2765
|
if (!O || typeof O != "object") continue;
|
|
2749
|
-
const
|
|
2750
|
-
!
|
|
2766
|
+
const j = O;
|
|
2767
|
+
!j.key || !e.columns().some((oe) => oe.key === j.key) || (L.set(j.key, j), Q.push(j.key));
|
|
2751
2768
|
}
|
|
2752
|
-
const ae = new Map(Q.map((O,
|
|
2753
|
-
const
|
|
2769
|
+
const ae = new Map(Q.map((O, j) => [O, j])), B = e.columns().map((O) => {
|
|
2770
|
+
const j = L.get(O.key);
|
|
2754
2771
|
return {
|
|
2755
2772
|
key: O.key,
|
|
2756
|
-
visible: typeof
|
|
2757
|
-
fixed:
|
|
2758
|
-
width: typeof
|
|
2773
|
+
visible: typeof j?.visible == "boolean" ? j.visible : !0,
|
|
2774
|
+
fixed: j?.fixed === "left" || j?.fixed === "right" ? j.fixed : "",
|
|
2775
|
+
width: typeof j?.width == "number" && j.width >= n ? Math.round(j.width) : void 0,
|
|
2776
|
+
wrap: j?.wrap === !0 ? !0 : void 0
|
|
2759
2777
|
};
|
|
2760
2778
|
});
|
|
2761
|
-
return !Q.length || e.persistOrder === !1 ? B : [...B].sort((O,
|
|
2779
|
+
return !Q.length || e.persistOrder === !1 ? B : [...B].sort((O, j) => (ae.get(O.key) ?? B.length) - (ae.get(j.key) ?? B.length));
|
|
2762
2780
|
}, i = (C) => !!C && typeof C == "object" && typeof C.key == "string" && (C.order === "ascending" || C.order === "descending"), p = () => {
|
|
2763
2781
|
if (!e.storageKey) return { columns: l() };
|
|
2764
2782
|
try {
|
|
@@ -2788,19 +2806,19 @@ function qs(e) {
|
|
|
2788
2806
|
};
|
|
2789
2807
|
localStorage.setItem(e.storageKey, JSON.stringify(C));
|
|
2790
2808
|
};
|
|
2791
|
-
|
|
2809
|
+
_e(
|
|
2792
2810
|
g,
|
|
2793
2811
|
() => {
|
|
2794
2812
|
_(), ke(() => e.onColumnsChange?.());
|
|
2795
2813
|
},
|
|
2796
2814
|
{ deep: !0 }
|
|
2797
2815
|
);
|
|
2798
|
-
const y = R(() => g.value.filter((C) => C.visible)), V = R(() => y.value.length), E = R(() => g.value.filter((C) => !C.visible)), $ = (C) => C.width ?? (o(C.key)?.minWidth ? void 0 : o(C.key)?.width), I = (C) => C.width ?? o(C.key)?.minWidth, z = (C) => (C.width ?? o(C.key)?.width ?? o(C.key)?.minWidth ?? 0) >=
|
|
2816
|
+
const y = R(() => g.value.filter((C) => C.visible)), V = R(() => y.value.length), E = R(() => g.value.filter((C) => !C.visible)), $ = (C) => C.width ?? (o(C.key)?.minWidth ? void 0 : o(C.key)?.width), I = (C) => C.width ?? o(C.key)?.minWidth, z = (C) => (C.width ?? o(C.key)?.width ?? o(C.key)?.minWidth ?? 0) >= js, G = (C) => {
|
|
2799
2817
|
V.value <= 1 || (C.visible = !1);
|
|
2800
2818
|
}, X = () => {
|
|
2801
2819
|
g.value = l();
|
|
2802
2820
|
}, 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 ?? ""), M = U(d?.order ?? null), se = () => v.sort && ie(v.sort) ? v.sort : null;
|
|
2803
|
-
|
|
2821
|
+
_e([c, b, T, M], _), _e(
|
|
2804
2822
|
() => e.columns().map((C) => C.key).join(","),
|
|
2805
2823
|
() => {
|
|
2806
2824
|
g.value = p().columns;
|
|
@@ -2867,7 +2885,7 @@ function qs(e) {
|
|
|
2867
2885
|
colMinWidth: I,
|
|
2868
2886
|
isWide: z,
|
|
2869
2887
|
// 列操作
|
|
2870
|
-
hideColumn:
|
|
2888
|
+
hideColumn: G,
|
|
2871
2889
|
resetColumns: X,
|
|
2872
2890
|
normalizeColumns: ye,
|
|
2873
2891
|
unpinSide: q,
|
|
@@ -2885,7 +2903,7 @@ function qs(e) {
|
|
|
2885
2903
|
}
|
|
2886
2904
|
};
|
|
2887
2905
|
}
|
|
2888
|
-
const
|
|
2906
|
+
const Xs = ["aria-label", "data-testid", "onDragstart"], Zs = ["onDragover", "onDragleave", "onDrop"], Js = ["aria-label", "data-testid", "onDragstart"], Ys = { class: "emt-th__label" }, Qs = ["data-testid", "onClick"], en = { class: "emt-th__tools" }, tn = ["data-testid", "onClick"], on = ["disabled", "data-testid", "onClick"], an = ["title", "aria-label", "data-testid"], ln = ["data-testid", "onMousedown"], sn = ["aria-label"], nn = ["aria-label"], rn = ["aria-label"], dn = /* @__PURE__ */ N({
|
|
2889
2907
|
__name: "EmooTable",
|
|
2890
2908
|
props: {
|
|
2891
2909
|
data: {},
|
|
@@ -2924,7 +2942,7 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
2924
2942
|
sortOrder: $,
|
|
2925
2943
|
storageSort: I,
|
|
2926
2944
|
restoredSort: z,
|
|
2927
|
-
resetPrefsCore:
|
|
2945
|
+
resetPrefsCore: G,
|
|
2928
2946
|
visibleCols: X,
|
|
2929
2947
|
hiddenCols: ie,
|
|
2930
2948
|
visibleCount: ee,
|
|
@@ -2938,7 +2956,7 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
2938
2956
|
pinEdge: de,
|
|
2939
2957
|
togglePinSide: ce,
|
|
2940
2958
|
togglePinSmart: H
|
|
2941
|
-
} =
|
|
2959
|
+
} = Gs({
|
|
2942
2960
|
columns: () => r.columns,
|
|
2943
2961
|
storageKey: r.storageKey,
|
|
2944
2962
|
defaultPageSize: r.defaultPageSize,
|
|
@@ -2950,7 +2968,7 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
2950
2968
|
});
|
|
2951
2969
|
}
|
|
2952
2970
|
}), te = () => {
|
|
2953
|
-
|
|
2971
|
+
G((h, m) => {
|
|
2954
2972
|
m === null ? Le("", null) : p.value?.sort(h, m);
|
|
2955
2973
|
}), i("size-change", y.value), ke(() => {
|
|
2956
2974
|
p.value?.doLayout(), Te();
|
|
@@ -2971,12 +2989,12 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
2971
2989
|
L.value = h.key;
|
|
2972
2990
|
const f = m.currentTarget.getBoundingClientRect();
|
|
2973
2991
|
Q.value = m.clientX < f.left + f.width / 2 ? "left" : "right";
|
|
2974
|
-
},
|
|
2992
|
+
}, j = (h, m) => {
|
|
2975
2993
|
if (L.value !== h.key) return;
|
|
2976
2994
|
const f = m.currentTarget;
|
|
2977
2995
|
!f || f.contains(m.relatedTarget) || (L.value = "");
|
|
2978
2996
|
}, oe = (h) => {
|
|
2979
|
-
const m = _.value.findIndex((
|
|
2997
|
+
const m = _.value.findIndex((we) => we.key === C.value), f = _.value.findIndex((we) => we.key === h.key), K = Q.value;
|
|
2980
2998
|
if (B(), m < 0 || f < 0 || m === f) return;
|
|
2981
2999
|
let ue = K === "left" ? f : f + 1;
|
|
2982
3000
|
const [fe] = _.value.splice(m, 1);
|
|
@@ -3018,10 +3036,10 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3018
3036
|
if (!f) return;
|
|
3019
3037
|
const K = m.clientX, ue = f.width ?? v(h)?.width ?? v(h)?.minWidth ?? at, fe = (Re) => {
|
|
3020
3038
|
f.width = Math.max(at, Math.round(ue + Re.clientX - K));
|
|
3021
|
-
},
|
|
3022
|
-
window.removeEventListener("mousemove", fe), window.removeEventListener("mouseup",
|
|
3039
|
+
}, we = () => {
|
|
3040
|
+
window.removeEventListener("mousemove", fe), window.removeEventListener("mouseup", we);
|
|
3023
3041
|
};
|
|
3024
|
-
window.addEventListener("mousemove", fe), window.addEventListener("mouseup",
|
|
3042
|
+
window.addEventListener("mousemove", fe), window.addEventListener("mouseup", we);
|
|
3025
3043
|
}, Gt = z ? { prop: z.key, order: z.order } : void 0, ct = ({ prop: h, order: m }) => {
|
|
3026
3044
|
E.value = h ?? "", $.value = m, i("sort-change", { key: h ?? "", order: m });
|
|
3027
3045
|
}, Le = (h, m) => {
|
|
@@ -3071,7 +3089,7 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3071
3089
|
}, pt = () => {
|
|
3072
3090
|
ge.active = !1;
|
|
3073
3091
|
};
|
|
3074
|
-
|
|
3092
|
+
_e(
|
|
3075
3093
|
() => Ee.value.length,
|
|
3076
3094
|
(h) => {
|
|
3077
3095
|
h === 0 && ($e.value = -1);
|
|
@@ -3088,8 +3106,8 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3088
3106
|
if (!m) return;
|
|
3089
3107
|
const f = (ue) => {
|
|
3090
3108
|
if (!ue) return !1;
|
|
3091
|
-
const fe = ue.getBoundingClientRect(),
|
|
3092
|
-
return Math.hypot(h.clientX -
|
|
3109
|
+
const fe = ue.getBoundingClientRect(), we = fe.x + fe.width / 2, Re = fe.y + fe.height / 2;
|
|
3110
|
+
return Math.hypot(h.clientX - we, h.clientY - Re) < 26;
|
|
3093
3111
|
}, K = f(m.querySelector(".emt-scrollbtn.is-left")) ? "left" : f(m.querySelector(".emt-scrollbtn.is-right")) ? "right" : "";
|
|
3094
3112
|
K !== Ke.value && (Ke.value = K);
|
|
3095
3113
|
};
|
|
@@ -3097,7 +3115,7 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3097
3115
|
document.addEventListener("mousemove", $t, !0);
|
|
3098
3116
|
const h = p.value?.$el;
|
|
3099
3117
|
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 });
|
|
3100
|
-
}),
|
|
3118
|
+
}), _e(X, () => ke(Te)), lt(() => {
|
|
3101
3119
|
document.removeEventListener("mousemove", $t, !0);
|
|
3102
3120
|
const h = p.value?.$el;
|
|
3103
3121
|
h?.removeEventListener("click", vt, !0), h?.removeEventListener("mousedown", ft, !0), h?.removeEventListener("mouseover", ht, !0), window.removeEventListener("mouseup", pt), be?.removeEventListener("scroll", Te), He?.disconnect();
|
|
@@ -3124,7 +3142,7 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3124
3142
|
onDragleave: Nt,
|
|
3125
3143
|
onDrop: qt
|
|
3126
3144
|
}, [
|
|
3127
|
-
|
|
3145
|
+
D(a(uo), {
|
|
3128
3146
|
ref_key: "tableRef",
|
|
3129
3147
|
ref: p,
|
|
3130
3148
|
data: e.data,
|
|
@@ -3139,19 +3157,19 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3139
3157
|
onSortChange: ct,
|
|
3140
3158
|
onRowClick: m[6] || (m[6] = (f, K, ue) => i("row-click", f, K, ue))
|
|
3141
3159
|
}, {
|
|
3142
|
-
empty:
|
|
3160
|
+
empty: S(() => [
|
|
3143
3161
|
A(h.$slots, "empty", {}, void 0, !0)
|
|
3144
3162
|
]),
|
|
3145
|
-
default:
|
|
3163
|
+
default: S(() => [
|
|
3146
3164
|
e.expandable ? (t(), x(a(Ve), {
|
|
3147
3165
|
key: 0,
|
|
3148
3166
|
type: "expand"
|
|
3149
3167
|
}, {
|
|
3150
|
-
default:
|
|
3151
|
-
f.$index !== -1 ? A(h.$slots, "expand", Ne(qe(f)), void 0, !0, 0) :
|
|
3168
|
+
default: S((f) => [
|
|
3169
|
+
f.$index !== -1 ? A(h.$slots, "expand", Ne(qe(f)), void 0, !0, 0) : w("", !0)
|
|
3152
3170
|
]),
|
|
3153
3171
|
_: 3
|
|
3154
|
-
})) :
|
|
3172
|
+
})) : w("", !0),
|
|
3155
3173
|
e.reorderable ? (t(), x(a(Ve), {
|
|
3156
3174
|
key: 1,
|
|
3157
3175
|
width: 24,
|
|
@@ -3159,14 +3177,14 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3159
3177
|
align: "center",
|
|
3160
3178
|
"class-name": "emt-col-rowdrag"
|
|
3161
3179
|
}, {
|
|
3162
|
-
header:
|
|
3180
|
+
header: S(() => [...m[12] || (m[12] = [
|
|
3163
3181
|
u("span", null, null, -1)
|
|
3164
3182
|
])]),
|
|
3165
|
-
default:
|
|
3166
|
-
|
|
3183
|
+
default: S(({ $index: f }) => [
|
|
3184
|
+
D(he, {
|
|
3167
3185
|
content: a(l)("common.emooTable.dragToReorderRows")
|
|
3168
3186
|
}, {
|
|
3169
|
-
default:
|
|
3187
|
+
default: S(() => [
|
|
3170
3188
|
u("button", {
|
|
3171
3189
|
class: "emt-rowdrag",
|
|
3172
3190
|
type: "button",
|
|
@@ -3178,25 +3196,25 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3178
3196
|
onDragstart: (K) => Wt(f, K),
|
|
3179
3197
|
onDragend: dt
|
|
3180
3198
|
}, [
|
|
3181
|
-
|
|
3199
|
+
D(a(_t), {
|
|
3182
3200
|
size: 12,
|
|
3183
3201
|
"aria-hidden": "true"
|
|
3184
3202
|
})
|
|
3185
|
-
], 40,
|
|
3203
|
+
], 40, Xs)
|
|
3186
3204
|
]),
|
|
3187
3205
|
_: 2
|
|
3188
3206
|
}, 1032, ["content"])
|
|
3189
3207
|
]),
|
|
3190
3208
|
_: 1
|
|
3191
|
-
})) :
|
|
3209
|
+
})) : w("", !0),
|
|
3192
3210
|
e.selectable ? (t(), x(a(Ve), {
|
|
3193
3211
|
key: 2,
|
|
3194
3212
|
type: "selection",
|
|
3195
3213
|
width: "28",
|
|
3196
3214
|
fixed: "left",
|
|
3197
3215
|
"reserve-selection": !!e.rowKey
|
|
3198
|
-
}, null, 8, ["reserve-selection"])) :
|
|
3199
|
-
(t(!0), s(
|
|
3216
|
+
}, null, 8, ["reserve-selection"])) : w("", !0),
|
|
3217
|
+
(t(!0), s(P, null, Z(a(X), (f) => (t(), x(a(Ve), {
|
|
3200
3218
|
key: f.key,
|
|
3201
3219
|
prop: f.key,
|
|
3202
3220
|
label: v(f.key)?.label,
|
|
@@ -3209,20 +3227,20 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3209
3227
|
align: v(f.key)?.align,
|
|
3210
3228
|
fixed: f.fixed === "" ? !1 : f.fixed
|
|
3211
3229
|
}, {
|
|
3212
|
-
header:
|
|
3230
|
+
header: S(() => [
|
|
3213
3231
|
u("div", {
|
|
3214
3232
|
class: W(["emt-th", {
|
|
3215
3233
|
"is-drop-left": L.value === f.key && Q.value === "left",
|
|
3216
3234
|
"is-drop-right": L.value === f.key && Q.value === "right"
|
|
3217
3235
|
}]),
|
|
3218
3236
|
onDragover: le((K) => O(f, K), ["prevent"]),
|
|
3219
|
-
onDragleave: (K) =>
|
|
3237
|
+
onDragleave: (K) => j(f, K),
|
|
3220
3238
|
onDrop: le((K) => oe(f), ["prevent"])
|
|
3221
3239
|
}, [
|
|
3222
|
-
|
|
3240
|
+
D(he, {
|
|
3223
3241
|
content: a(l)("common.emooTable.dragToReorder")
|
|
3224
3242
|
}, {
|
|
3225
|
-
default:
|
|
3243
|
+
default: S(() => [
|
|
3226
3244
|
u("button", {
|
|
3227
3245
|
class: "emt-th__grip",
|
|
3228
3246
|
type: "button",
|
|
@@ -3234,15 +3252,15 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3234
3252
|
onDragstart: (K) => ae(f, K),
|
|
3235
3253
|
onDragend: B
|
|
3236
3254
|
}, [
|
|
3237
|
-
|
|
3255
|
+
D(a(_t), {
|
|
3238
3256
|
size: 12,
|
|
3239
3257
|
"aria-hidden": "true"
|
|
3240
3258
|
})
|
|
3241
|
-
], 40,
|
|
3259
|
+
], 40, Js)
|
|
3242
3260
|
]),
|
|
3243
3261
|
_: 2
|
|
3244
3262
|
}, 1032, ["content"]),
|
|
3245
|
-
u("span",
|
|
3263
|
+
u("span", Ys, k(v(f.key)?.label), 1),
|
|
3246
3264
|
A(h.$slots, `${f.key}-header`, {
|
|
3247
3265
|
col: v(f.key)
|
|
3248
3266
|
}, void 0, !0),
|
|
@@ -3250,7 +3268,7 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3250
3268
|
key: 0,
|
|
3251
3269
|
content: a(l)("common.emooTable.sort")
|
|
3252
3270
|
}, {
|
|
3253
|
-
default:
|
|
3271
|
+
default: S(() => [
|
|
3254
3272
|
u("button", {
|
|
3255
3273
|
class: "emt-th__sort",
|
|
3256
3274
|
type: "button",
|
|
@@ -3267,43 +3285,43 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3267
3285
|
size: 12,
|
|
3268
3286
|
weight: "bold",
|
|
3269
3287
|
"aria-hidden": "true"
|
|
3270
|
-
})) : (t(), x(a(
|
|
3288
|
+
})) : (t(), x(a(wo), {
|
|
3271
3289
|
key: 2,
|
|
3272
3290
|
size: 12,
|
|
3273
3291
|
class: "emt-th__sortidle",
|
|
3274
3292
|
"aria-hidden": "true"
|
|
3275
3293
|
}))
|
|
3276
|
-
], 8,
|
|
3294
|
+
], 8, Qs)
|
|
3277
3295
|
]),
|
|
3278
3296
|
_: 2
|
|
3279
|
-
}, 1032, ["content"])) :
|
|
3297
|
+
}, 1032, ["content"])) : w("", !0),
|
|
3280
3298
|
m[13] || (m[13] = u("span", { class: "emt-th__spacer" }, null, -1)),
|
|
3281
|
-
u("span",
|
|
3299
|
+
u("span", en, [
|
|
3282
3300
|
a(M)(f) || f.fixed ? (t(), x(he, {
|
|
3283
3301
|
key: 0,
|
|
3284
3302
|
content: F(f)
|
|
3285
3303
|
}, {
|
|
3286
|
-
default:
|
|
3304
|
+
default: S(() => [
|
|
3287
3305
|
u("button", {
|
|
3288
3306
|
class: W(["emt-th__tool", { "is-on": !!f.fixed }]),
|
|
3289
3307
|
type: "button",
|
|
3290
3308
|
"data-testid": `emt-th-pin-${f.key}`,
|
|
3291
3309
|
onClick: le((K) => a(H)(f), ["stop"])
|
|
3292
3310
|
}, [
|
|
3293
|
-
|
|
3311
|
+
D(a(_o), {
|
|
3294
3312
|
size: 13,
|
|
3295
3313
|
weight: f.fixed ? "fill" : void 0,
|
|
3296
3314
|
"aria-hidden": "true"
|
|
3297
3315
|
}, null, 8, ["weight"])
|
|
3298
|
-
], 10,
|
|
3316
|
+
], 10, tn)
|
|
3299
3317
|
]),
|
|
3300
3318
|
_: 2
|
|
3301
|
-
}, 1032, ["content"])) :
|
|
3319
|
+
}, 1032, ["content"])) : w("", !0),
|
|
3302
3320
|
a(M)(f) ? (t(), x(he, {
|
|
3303
3321
|
key: 1,
|
|
3304
3322
|
content: a(l)("common.emooTable.hideColumn")
|
|
3305
3323
|
}, {
|
|
3306
|
-
default:
|
|
3324
|
+
default: S(() => [
|
|
3307
3325
|
u("button", {
|
|
3308
3326
|
class: "emt-th__tool",
|
|
3309
3327
|
type: "button",
|
|
@@ -3311,15 +3329,15 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3311
3329
|
"data-testid": `emt-th-hide-${f.key}`,
|
|
3312
3330
|
onClick: le((K) => a(se)(f), ["stop"])
|
|
3313
3331
|
}, [
|
|
3314
|
-
|
|
3332
|
+
D(a(Vt), {
|
|
3315
3333
|
size: 13,
|
|
3316
3334
|
"aria-hidden": "true"
|
|
3317
3335
|
})
|
|
3318
|
-
], 8,
|
|
3336
|
+
], 8, on)
|
|
3319
3337
|
]),
|
|
3320
3338
|
_: 2
|
|
3321
|
-
}, 1032, ["content"])) :
|
|
3322
|
-
|
|
3339
|
+
}, 1032, ["content"])) : w("", !0),
|
|
3340
|
+
D(ka, {
|
|
3323
3341
|
"col-key": f.key,
|
|
3324
3342
|
sortable: v(f.key)?.sortable,
|
|
3325
3343
|
sorted: a(E) === f.key ? a($) : null,
|
|
@@ -3338,7 +3356,7 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3338
3356
|
}),
|
|
3339
3357
|
onReset: te
|
|
3340
3358
|
}, {
|
|
3341
|
-
default:
|
|
3359
|
+
default: S(() => [
|
|
3342
3360
|
u("button", {
|
|
3343
3361
|
class: "emt-th__tool emt-th__dots",
|
|
3344
3362
|
type: "button",
|
|
@@ -3350,12 +3368,12 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3350
3368
|
onMousedown: m[3] || (m[3] = le(() => {
|
|
3351
3369
|
}, ["stop"]))
|
|
3352
3370
|
}, [
|
|
3353
|
-
|
|
3371
|
+
D(a(Mt), {
|
|
3354
3372
|
size: 14,
|
|
3355
3373
|
weight: "bold",
|
|
3356
3374
|
"aria-hidden": "true"
|
|
3357
3375
|
})
|
|
3358
|
-
], 40,
|
|
3376
|
+
], 40, an)
|
|
3359
3377
|
]),
|
|
3360
3378
|
_: 2
|
|
3361
3379
|
}, 1032, ["col-key", "sortable", "sorted", "fixed", "can-hide", "hidden", "onSort", "onUnpin", "onPin", "onHide"])
|
|
@@ -3364,26 +3382,26 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3364
3382
|
key: 1,
|
|
3365
3383
|
content: a(l)("common.emooTable.dragToResize")
|
|
3366
3384
|
}, {
|
|
3367
|
-
default:
|
|
3385
|
+
default: S(() => [
|
|
3368
3386
|
u("span", {
|
|
3369
3387
|
class: "emt-th__resize",
|
|
3370
3388
|
"data-testid": `emt-th-resize-${f.key}`,
|
|
3371
3389
|
onMousedown: (K) => jt(f.key, K),
|
|
3372
3390
|
onClick: m[5] || (m[5] = le(() => {
|
|
3373
3391
|
}, ["stop"]))
|
|
3374
|
-
}, null, 40,
|
|
3392
|
+
}, null, 40, ln)
|
|
3375
3393
|
]),
|
|
3376
3394
|
_: 2
|
|
3377
|
-
}, 1032, ["content"])) :
|
|
3378
|
-
], 42,
|
|
3395
|
+
}, 1032, ["content"])) : w("", !0)
|
|
3396
|
+
], 42, Zs)
|
|
3379
3397
|
]),
|
|
3380
|
-
default:
|
|
3398
|
+
default: S(({ row: K, $index: ue }) => [
|
|
3381
3399
|
ue !== -1 ? A(h.$slots, f.key, {
|
|
3382
3400
|
row: K,
|
|
3383
3401
|
index: ue
|
|
3384
3402
|
}, () => [
|
|
3385
3403
|
J(k(K[f.key]), 1)
|
|
3386
|
-
], !0, 0) :
|
|
3404
|
+
], !0, 0) : w("", !0)
|
|
3387
3405
|
]),
|
|
3388
3406
|
_: 2
|
|
3389
3407
|
}, 1032, ["prop", "label", "sortable", "sort-by", "show-overflow-tooltip", "resizable", "width", "min-width", "align", "fixed"]))), 128)),
|
|
@@ -3394,18 +3412,18 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3394
3412
|
fixed: "right",
|
|
3395
3413
|
"class-name": "emt-col-actions"
|
|
3396
3414
|
}, {
|
|
3397
|
-
default:
|
|
3398
|
-
f.$index !== -1 ? A(h.$slots, "actions", Ne(qe(f)), void 0, !0, 0) :
|
|
3415
|
+
default: S((f) => [
|
|
3416
|
+
f.$index !== -1 ? A(h.$slots, "actions", Ne(qe(f)), void 0, !0, 0) : w("", !0)
|
|
3399
3417
|
]),
|
|
3400
3418
|
_: 3
|
|
3401
|
-
}, 8, ["width"])) :
|
|
3419
|
+
}, 8, ["width"])) : w("", !0)
|
|
3402
3420
|
]),
|
|
3403
3421
|
_: 3
|
|
3404
3422
|
}, 8, ["data", "row-key", "default-sort", "height", "max-height", "expand-row-keys"]),
|
|
3405
|
-
|
|
3423
|
+
D(he, {
|
|
3406
3424
|
content: a(l)("common.emooTable.scrollLeft")
|
|
3407
3425
|
}, {
|
|
3408
|
-
default:
|
|
3426
|
+
default: S(() => [
|
|
3409
3427
|
Fe(u("button", {
|
|
3410
3428
|
class: W(["emt-scrollbtn is-left", { "is-live": Ke.value === "left" }]),
|
|
3411
3429
|
type: "button",
|
|
@@ -3413,20 +3431,20 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3413
3431
|
"data-testid": "emt-scroll-left",
|
|
3414
3432
|
onClick: m[7] || (m[7] = (f) => kt(-1))
|
|
3415
3433
|
}, [
|
|
3416
|
-
|
|
3434
|
+
D(a(Dt), {
|
|
3417
3435
|
size: 14,
|
|
3418
3436
|
"aria-hidden": "true"
|
|
3419
3437
|
})
|
|
3420
|
-
], 10,
|
|
3438
|
+
], 10, sn), [
|
|
3421
3439
|
[tt, bt.value]
|
|
3422
3440
|
])
|
|
3423
3441
|
]),
|
|
3424
3442
|
_: 1
|
|
3425
3443
|
}, 8, ["content"]),
|
|
3426
|
-
|
|
3444
|
+
D(he, {
|
|
3427
3445
|
content: a(l)("common.emooTable.scrollRight")
|
|
3428
3446
|
}, {
|
|
3429
|
-
default:
|
|
3447
|
+
default: S(() => [
|
|
3430
3448
|
Fe(u("button", {
|
|
3431
3449
|
class: W(["emt-scrollbtn is-right", { "is-live": Ke.value === "right" }]),
|
|
3432
3450
|
type: "button",
|
|
@@ -3434,11 +3452,11 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3434
3452
|
"data-testid": "emt-scroll-right",
|
|
3435
3453
|
onClick: m[8] || (m[8] = (f) => kt(1))
|
|
3436
3454
|
}, [
|
|
3437
|
-
|
|
3455
|
+
D(a(Ge), {
|
|
3438
3456
|
size: 14,
|
|
3439
3457
|
"aria-hidden": "true"
|
|
3440
3458
|
})
|
|
3441
|
-
], 10,
|
|
3459
|
+
], 10, nn), [
|
|
3442
3460
|
[tt, gt.value]
|
|
3443
3461
|
])
|
|
3444
3462
|
]),
|
|
@@ -3451,10 +3469,10 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3451
3469
|
"aria-label": a(l)("common.loading"),
|
|
3452
3470
|
"data-testid": "emt-loading"
|
|
3453
3471
|
}, [
|
|
3454
|
-
|
|
3455
|
-
], 8,
|
|
3472
|
+
D(Kt, { size: 18 })
|
|
3473
|
+
], 8, rn)) : w("", !0)
|
|
3456
3474
|
], 34),
|
|
3457
|
-
|
|
3475
|
+
D(vs, {
|
|
3458
3476
|
total: e.total ?? 0,
|
|
3459
3477
|
page: e.page ?? 1,
|
|
3460
3478
|
"page-size": a(y),
|
|
@@ -3469,16 +3487,16 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3469
3487
|
}, null, 8, ["total", "page", "page-size", "page-sizes", "density", "density-base"])
|
|
3470
3488
|
], 2));
|
|
3471
3489
|
}
|
|
3472
|
-
}),
|
|
3490
|
+
}), ci = /* @__PURE__ */ Y(dn, [["__scopeId", "data-v-bbdd9cda"]]), un = { class: "emoo-upload" }, cn = ["tabindex", "aria-disabled", "aria-label", "onKeydown"], mn = { class: "emoo-upload__title" }, vn = { class: "emoo-upload__browse" }, fn = {
|
|
3473
3491
|
key: 0,
|
|
3474
3492
|
class: "emoo-upload__hint"
|
|
3475
|
-
},
|
|
3493
|
+
}, hn = ["accept", "multiple"], pn = ["data-testid"], yn = { class: "emoo-upload__meta" }, bn = ["disabled", "data-testid", "onClick"], gn = {
|
|
3476
3494
|
key: 0,
|
|
3477
3495
|
class: "emoo-upload__sub"
|
|
3478
|
-
},
|
|
3496
|
+
}, kn = { class: "emoo-upload__err" }, $n = {
|
|
3479
3497
|
key: 2,
|
|
3480
3498
|
class: "emoo-upload__pct"
|
|
3481
|
-
},
|
|
3499
|
+
}, wn = /* @__PURE__ */ N({
|
|
3482
3500
|
__name: "EmooUpload",
|
|
3483
3501
|
props: {
|
|
3484
3502
|
files: {},
|
|
@@ -3503,8 +3521,8 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3503
3521
|
}, V = ($) => {
|
|
3504
3522
|
p.value = !1, _(Array.from($.dataTransfer?.files ?? []));
|
|
3505
3523
|
}, E = ($) => $ < 1024 ? `${$} B` : $ < 1024 * 1024 ? `${Math.round($ / 1024)} KB` : $ < 1024 * 1024 * 1024 ? `${($ / 1024 / 1024).toFixed(1)} MB` : `${($ / 1024 / 1024 / 1024).toFixed(1)} GB`;
|
|
3506
|
-
return ($, I) => (t(), s("div",
|
|
3507
|
-
e.readonly ?
|
|
3524
|
+
return ($, I) => (t(), s("div", un, [
|
|
3525
|
+
e.readonly ? w("", !0) : (t(), s("div", {
|
|
3508
3526
|
key: 0,
|
|
3509
3527
|
class: W(["emoo-upload__drop", { "is-over": p.value, "is-disabled": e.disabled }]),
|
|
3510
3528
|
role: "button",
|
|
@@ -3520,15 +3538,15 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3520
3538
|
je(le(c, ["prevent"]), ["space"])
|
|
3521
3539
|
]
|
|
3522
3540
|
}, [
|
|
3523
|
-
|
|
3541
|
+
D(a(So), {
|
|
3524
3542
|
class: "emoo-upload__ico",
|
|
3525
3543
|
"aria-hidden": "true"
|
|
3526
3544
|
}),
|
|
3527
|
-
u("p",
|
|
3545
|
+
u("p", mn, [
|
|
3528
3546
|
J(k(a(r)("common.emooUpload.dropTitle")) + " ", 1),
|
|
3529
|
-
u("span",
|
|
3547
|
+
u("span", vn, k(a(r)("common.emooUpload.browse")), 1)
|
|
3530
3548
|
]),
|
|
3531
|
-
e.hint ? (t(), s("p",
|
|
3549
|
+
e.hint ? (t(), s("p", fn, k(e.hint), 1)) : w("", !0),
|
|
3532
3550
|
u("input", {
|
|
3533
3551
|
ref_key: "inputRef",
|
|
3534
3552
|
ref: i,
|
|
@@ -3537,64 +3555,64 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3537
3555
|
accept: e.accept,
|
|
3538
3556
|
multiple: e.multiple,
|
|
3539
3557
|
onChange: y
|
|
3540
|
-
}, null, 40,
|
|
3541
|
-
], 42,
|
|
3558
|
+
}, null, 40, hn)
|
|
3559
|
+
], 42, cn)),
|
|
3542
3560
|
e.files.length ? (t(), s("ul", {
|
|
3543
3561
|
key: 1,
|
|
3544
3562
|
class: "emoo-upload__list",
|
|
3545
3563
|
"data-testid": e.listTestId
|
|
3546
3564
|
}, [
|
|
3547
|
-
(t(!0), s(
|
|
3548
|
-
key:
|
|
3565
|
+
(t(!0), s(P, null, Z(e.files, (z, G) => (t(), s("li", {
|
|
3566
|
+
key: G,
|
|
3549
3567
|
class: "emoo-upload__file"
|
|
3550
3568
|
}, [
|
|
3551
|
-
|
|
3569
|
+
D(a(Co), {
|
|
3552
3570
|
class: "emoo-upload__file-ico",
|
|
3553
3571
|
"aria-hidden": "true"
|
|
3554
3572
|
}),
|
|
3555
|
-
u("div",
|
|
3573
|
+
u("div", yn, [
|
|
3556
3574
|
u("button", {
|
|
3557
3575
|
type: "button",
|
|
3558
3576
|
class: "emoo-upload__name",
|
|
3559
3577
|
disabled: e.disabled,
|
|
3560
|
-
"data-testid": `upload-preview-${
|
|
3578
|
+
"data-testid": `upload-preview-${G}`,
|
|
3561
3579
|
onClick: (X) => l("preview", z)
|
|
3562
|
-
}, k(z.name), 9,
|
|
3563
|
-
z.size != null ? (t(), s("span",
|
|
3564
|
-
v(z) === "uploading" ? (t(), x(
|
|
3580
|
+
}, k(z.name), 9, bn),
|
|
3581
|
+
z.size != null ? (t(), s("span", gn, k(E(z.size)), 1)) : w("", !0),
|
|
3582
|
+
v(z) === "uploading" ? (t(), x(bs, {
|
|
3565
3583
|
key: 1,
|
|
3566
3584
|
class: "emoo-upload__progress",
|
|
3567
3585
|
size: "mini",
|
|
3568
3586
|
status: "run",
|
|
3569
3587
|
value: z.progress ?? null
|
|
3570
|
-
}, null, 8, ["value"])) :
|
|
3588
|
+
}, null, 8, ["value"])) : w("", !0)
|
|
3571
3589
|
]),
|
|
3572
|
-
v(z) === "done" ? (t(), x(
|
|
3590
|
+
v(z) === "done" ? (t(), x(Os, {
|
|
3573
3591
|
key: 0,
|
|
3574
3592
|
tone: "success"
|
|
3575
3593
|
}, {
|
|
3576
|
-
default:
|
|
3594
|
+
default: S(() => [
|
|
3577
3595
|
J(k(a(r)("common.emooUpload.done")), 1)
|
|
3578
3596
|
]),
|
|
3579
3597
|
_: 1
|
|
3580
|
-
})) : v(z) === "failed" ? (t(), s(
|
|
3581
|
-
u("span",
|
|
3582
|
-
e.readonly ?
|
|
3598
|
+
})) : v(z) === "failed" ? (t(), s(P, { key: 1 }, [
|
|
3599
|
+
u("span", kn, k(z.error || a(r)("common.emooUpload.failed")), 1),
|
|
3600
|
+
e.readonly ? w("", !0) : (t(), x(Pe, {
|
|
3583
3601
|
key: 0,
|
|
3584
3602
|
variant: "text",
|
|
3585
3603
|
size: "small",
|
|
3586
3604
|
onClick: (X) => l("retry", z)
|
|
3587
3605
|
}, {
|
|
3588
|
-
icon:
|
|
3589
|
-
|
|
3606
|
+
icon: S(() => [
|
|
3607
|
+
D(a(Bt))
|
|
3590
3608
|
]),
|
|
3591
|
-
default:
|
|
3609
|
+
default: S(() => [
|
|
3592
3610
|
J(" " + k(a(r)("common.emooUpload.retry")), 1)
|
|
3593
3611
|
]),
|
|
3594
3612
|
_: 1
|
|
3595
3613
|
}, 8, ["onClick"]))
|
|
3596
|
-
], 64)) : v(z) === "uploading" && z.progress != null ? (t(), s("span",
|
|
3597
|
-
e.readonly ?
|
|
3614
|
+
], 64)) : v(z) === "uploading" && z.progress != null ? (t(), s("span", $n, k(Math.round(z.progress)) + "% ", 1)) : w("", !0),
|
|
3615
|
+
e.readonly ? w("", !0) : (t(), x(Pe, {
|
|
3598
3616
|
key: 3,
|
|
3599
3617
|
variant: "text",
|
|
3600
3618
|
size: "small",
|
|
@@ -3602,16 +3620,16 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3602
3620
|
"aria-label": a(r)("common.emooUpload.remove", { name: z.name }),
|
|
3603
3621
|
onClick: (X) => l("remove", z)
|
|
3604
3622
|
}, {
|
|
3605
|
-
icon:
|
|
3606
|
-
|
|
3623
|
+
icon: S(() => [
|
|
3624
|
+
D(a(it))
|
|
3607
3625
|
]),
|
|
3608
3626
|
_: 1
|
|
3609
3627
|
}, 8, ["aria-label", "onClick"]))
|
|
3610
3628
|
]))), 128))
|
|
3611
|
-
], 8,
|
|
3629
|
+
], 8, pn)) : w("", !0)
|
|
3612
3630
|
]));
|
|
3613
3631
|
}
|
|
3614
|
-
}),
|
|
3632
|
+
}), mi = /* @__PURE__ */ Y(wn, [["__scopeId", "data-v-65eda28b"]]), _n = { class: "emoo-value-diff" }, Sn = { class: "emoo-value-diff__old" }, Cn = /* @__PURE__ */ N({
|
|
3615
3633
|
__name: "EmooValueDiff",
|
|
3616
3634
|
props: {
|
|
3617
3635
|
value: {},
|
|
@@ -3619,34 +3637,34 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3619
3637
|
},
|
|
3620
3638
|
setup(e) {
|
|
3621
3639
|
const n = e, o = R(() => !!n.old && n.old !== n.value);
|
|
3622
|
-
return (l, r) => (t(), s("span",
|
|
3623
|
-
o.value ? (t(), s(
|
|
3624
|
-
u("span",
|
|
3625
|
-
|
|
3640
|
+
return (l, r) => (t(), s("span", _n, [
|
|
3641
|
+
o.value ? (t(), s(P, { key: 0 }, [
|
|
3642
|
+
u("span", Sn, k(e.old), 1),
|
|
3643
|
+
D(a(Eo), {
|
|
3626
3644
|
class: "emoo-value-diff__arrow",
|
|
3627
3645
|
"aria-hidden": "true"
|
|
3628
3646
|
})
|
|
3629
|
-
], 64)) :
|
|
3647
|
+
], 64)) : w("", !0),
|
|
3630
3648
|
u("span", {
|
|
3631
3649
|
class: W(["emoo-value-diff__value", { "emoo-value-diff__value--changed": o.value }])
|
|
3632
3650
|
}, k(e.value), 3)
|
|
3633
3651
|
]));
|
|
3634
3652
|
}
|
|
3635
|
-
}),
|
|
3653
|
+
}), vi = /* @__PURE__ */ Y(Cn, [["__scopeId", "data-v-40f98722"]]), En = {
|
|
3636
3654
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3637
3655
|
viewBox: "0 0 256 256",
|
|
3638
3656
|
width: "1em",
|
|
3639
3657
|
height: "1em",
|
|
3640
3658
|
fill: "currentColor"
|
|
3641
|
-
},
|
|
3659
|
+
}, fi = /* @__PURE__ */ N({
|
|
3642
3660
|
__name: "IconChatCirclePlus",
|
|
3643
3661
|
setup(e) {
|
|
3644
|
-
return (n, o) => (t(), s("svg",
|
|
3662
|
+
return (n, o) => (t(), s("svg", En, [...o[0] || (o[0] = [
|
|
3645
3663
|
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),
|
|
3646
3664
|
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)
|
|
3647
3665
|
])]));
|
|
3648
3666
|
}
|
|
3649
|
-
}),
|
|
3667
|
+
}), Tn = ["width", "height"], xn = ["id"], In = ["mask"], hi = /* @__PURE__ */ N({
|
|
3650
3668
|
__name: "IconPaperPlanes",
|
|
3651
3669
|
props: {
|
|
3652
3670
|
size: { default: "1em" }
|
|
@@ -3687,7 +3705,7 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3687
3705
|
"stroke-width": "3.5",
|
|
3688
3706
|
"stroke-linejoin": "round"
|
|
3689
3707
|
}, null, -1)
|
|
3690
|
-
])], 8,
|
|
3708
|
+
])], 8, xn)
|
|
3691
3709
|
]),
|
|
3692
3710
|
u("g", {
|
|
3693
3711
|
mask: `url(#${a(n)})`,
|
|
@@ -3698,7 +3716,7 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3698
3716
|
}, [...l[1] || (l[1] = [
|
|
3699
3717
|
u("path", { d: "M2 7.5 17 2.8 12.3 17.8 8.9 11.1Z" }, null, -1),
|
|
3700
3718
|
u("path", { d: "m8.9 11.1 3.4-3.6" }, null, -1)
|
|
3701
|
-
])], 8,
|
|
3719
|
+
])], 8, In),
|
|
3702
3720
|
l[2] || (l[2] = u("g", {
|
|
3703
3721
|
stroke: "currentColor",
|
|
3704
3722
|
"stroke-width": "1.5",
|
|
@@ -3708,10 +3726,10 @@ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "on
|
|
|
3708
3726
|
u("path", { d: "M7 11.5 22 6.8 17.3 21.8 13.9 15.1Z" }),
|
|
3709
3727
|
u("path", { d: "m13.9 15.1 3.4-3.6" })
|
|
3710
3728
|
], -1))
|
|
3711
|
-
], 8,
|
|
3729
|
+
], 8, Tn));
|
|
3712
3730
|
}
|
|
3713
3731
|
});
|
|
3714
|
-
function
|
|
3732
|
+
function pi(e, n = {}) {
|
|
3715
3733
|
const o = n.bottomTolerance ?? 24, l = n.awayThreshold ?? 80, r = U(!0), i = U(!1);
|
|
3716
3734
|
let p = null;
|
|
3717
3735
|
const v = () => {
|
|
@@ -3732,18 +3750,18 @@ function fi(e, n = {}) {
|
|
|
3732
3750
|
behavior: b() ? "auto" : "smooth"
|
|
3733
3751
|
}), r.value = !0, i.value = !1, n.onDockUpdate?.(!0));
|
|
3734
3752
|
};
|
|
3735
|
-
return typeof
|
|
3753
|
+
return typeof wt == "function" && wt(c), { docked: r, showScrollToBottom: i, attach: g, detach: c, notifyContentChanged: _, scrollToBottom: y, handleScroll: v };
|
|
3736
3754
|
}
|
|
3737
|
-
const
|
|
3755
|
+
const zn = 3e3, Rn = 5e3;
|
|
3738
3756
|
function We(e, n, o = {}) {
|
|
3739
3757
|
return co({
|
|
3740
3758
|
type: e,
|
|
3741
3759
|
message: n,
|
|
3742
|
-
duration: o.duration ?? (e === "error" ?
|
|
3760
|
+
duration: o.duration ?? (e === "error" ? Rn : zn),
|
|
3743
3761
|
showClose: o.showClose ?? e === "error"
|
|
3744
3762
|
});
|
|
3745
3763
|
}
|
|
3746
|
-
const
|
|
3764
|
+
const yi = {
|
|
3747
3765
|
/** 成功反馈:3s,无按钮 */
|
|
3748
3766
|
success: (e, n) => We("success", e, n),
|
|
3749
3767
|
/** 中性信息:3s,无按钮 */
|
|
@@ -3753,7 +3771,7 @@ const hi = {
|
|
|
3753
3771
|
/** 错误:5s + 关闭钮(默认)——读错要够久 */
|
|
3754
3772
|
error: (e, n) => We("error", e, n)
|
|
3755
3773
|
};
|
|
3756
|
-
async function
|
|
3774
|
+
async function bi(e, n) {
|
|
3757
3775
|
const { title: o, confirmText: l = "确认", cancelButtonText: r = "取消", tone: i = "default" } = n;
|
|
3758
3776
|
try {
|
|
3759
3777
|
return await mo.confirm(e, o, {
|
|
@@ -3766,73 +3784,73 @@ async function pi(e, n) {
|
|
|
3766
3784
|
return !1;
|
|
3767
3785
|
}
|
|
3768
3786
|
}
|
|
3769
|
-
function
|
|
3770
|
-
const o =
|
|
3787
|
+
function gi(e, n = !1) {
|
|
3788
|
+
const o = Io(e, n), l = {};
|
|
3771
3789
|
for (const [r, i] of Object.entries(o))
|
|
3772
3790
|
l[r.replace("--emoo-", "--el-")] = i;
|
|
3773
3791
|
return l;
|
|
3774
3792
|
}
|
|
3775
3793
|
export {
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3794
|
+
wi as AVATAR_TINT_PALETTE,
|
|
3795
|
+
Un as EmooActionPill,
|
|
3796
|
+
Hn as EmooActionSheet,
|
|
3797
|
+
Kn as EmooAgentSelect,
|
|
3798
|
+
Pe as EmooButton,
|
|
3799
|
+
Wn as EmooCard,
|
|
3800
|
+
Fn as EmooChips,
|
|
3801
|
+
da as EmooChoice,
|
|
3802
|
+
ka as EmooColumnMenu,
|
|
3803
|
+
Nn as EmooDrawer,
|
|
3804
|
+
Da as EmooEmpty,
|
|
3805
|
+
qn as EmooField,
|
|
3806
|
+
jn as EmooFieldGrid,
|
|
3807
|
+
Gn as EmooFileTypeIcon,
|
|
3808
|
+
Xn as EmooGhostButton,
|
|
3809
|
+
Zn as EmooGroupLabel,
|
|
3810
|
+
Jn as EmooHistoryList,
|
|
3811
|
+
Yn as EmooMemberRoleSelect,
|
|
3812
|
+
Qn as EmooMemberSelect,
|
|
3795
3813
|
xe as EmooMemberTag,
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3814
|
+
ei as EmooMessage,
|
|
3815
|
+
ti as EmooNavMenu,
|
|
3816
|
+
oi as EmooNavSegmented,
|
|
3817
|
+
ai as EmooOptionRows,
|
|
3818
|
+
vs as EmooPagination,
|
|
3819
|
+
li as EmooPopover,
|
|
3820
|
+
bs as EmooProgress,
|
|
3821
|
+
si as EmooRoleSelect,
|
|
3822
|
+
ni as EmooSearchBox,
|
|
3823
|
+
ii as EmooSegmented,
|
|
3824
|
+
ri as EmooSidebarShell,
|
|
3825
|
+
el as EmooSkeleton,
|
|
3808
3826
|
Kt as EmooSpinner,
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3827
|
+
Os as EmooStatusTag,
|
|
3828
|
+
di as EmooSwitcherPanel,
|
|
3829
|
+
ci as EmooTable,
|
|
3830
|
+
ui as EmooTagsInput,
|
|
3813
3831
|
he as EmooTooltip,
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3832
|
+
mi as EmooUpload,
|
|
3833
|
+
vi as EmooValueDiff,
|
|
3834
|
+
js as INLINE_TOOLS_MIN_WIDTH,
|
|
3835
|
+
fi as IconChatCirclePlus,
|
|
3836
|
+
hi as IconPaperPlanes,
|
|
3819
3837
|
at as MIN_COL_WIDTH,
|
|
3820
|
-
|
|
3838
|
+
_i as PRESET_COLORS,
|
|
3821
3839
|
At as SheetDragHandle,
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3840
|
+
Si as avatarTintOf,
|
|
3841
|
+
gi as elementPlusColorVars,
|
|
3842
|
+
bi as emooConfirm,
|
|
3843
|
+
Ii as emoouiMessages,
|
|
3844
|
+
wa as getDrawerWidth,
|
|
3845
|
+
Ci as hexToRgbString,
|
|
3846
|
+
Ei as mixColor,
|
|
3847
|
+
Ta as nearestSheetTier,
|
|
3848
|
+
Ti as primaryColorVars,
|
|
3849
|
+
_a as saveDrawerWidth,
|
|
3850
|
+
yi as toast,
|
|
3851
|
+
Gs as useColumnPrefs,
|
|
3852
|
+
pi as useMessageScroll,
|
|
3835
3853
|
Be as useRemoteOptions,
|
|
3836
3854
|
Me as useSelectedOptions,
|
|
3837
|
-
|
|
3855
|
+
xa as useSheetHeightDrag
|
|
3838
3856
|
};
|