mediacube-ui-v2 0.0.325 → 0.0.327
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/ai-catalog/index.json +1 -1
- package/dist/ai-catalog/types/ITranslations.ts +6 -6
- package/dist/components/elements/McFieldSelect/McFieldSelect.vue2.js +170 -157
- package/dist/iconsSprite.svg +1 -1
- package/dist/types/ITranslations.js +6 -6
- package/dist/types/components/elements/McFieldSelect/McFieldSelect.vue.d.ts +3 -3
- package/dist/types/components/elements/McFieldSelect/index.d.ts +6 -6
- package/dist/types/components/elements/McNodata/McNoData.vue.d.ts +3 -3
- package/dist/types/components/elements/McNodata/index.d.ts +6 -6
- package/dist/types/components/elements/McNotification/McNotification.vue.d.ts +5 -5
- package/dist/types/components/elements/McNotification/index.d.ts +9 -9
- package/dist/types/components/elements/McSvgIcon/index.d.ts +2 -2
- package/dist/types/components/patterns/McSideBar/McSideBar.vue.d.ts +3 -3
- package/dist/types/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +1 -1
- package/dist/types/components/patterns/McSideBar/McSideBarButton/index.d.ts +3 -3
- package/dist/types/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +3 -3
- package/dist/types/components/patterns/McSideBar/McSideBarTop/index.d.ts +6 -6
- package/dist/types/components/patterns/McSideBar/index.d.ts +6 -6
- package/dist/types/components/patterns/McTab/McTab.vue.d.ts +6 -6
- package/dist/types/components/patterns/McTab/index.d.ts +12 -12
- package/dist/types/components/templates/McDrawer/McDrawer.vue.d.ts +3 -3
- package/dist/types/components/templates/McDrawer/index.d.ts +6 -6
- package/dist/types/components/templates/McTable/McTable/McTable.vue.d.ts +3 -3
- package/dist/types/components/templates/McTable/McTable/index.d.ts +6 -6
- package/dist/types/components/templates/McToast/McToast.vue.d.ts +1 -1
- package/dist/types/components/templates/McToast/index.d.ts +3 -3
- package/dist/types/composables/useDrawer.d.ts +1 -1
- package/dist/types/types/styles/Icons.d.ts +1 -0
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@ export const UiFilterTranslations: IFilterPlaceholders = {
|
|
|
30
30
|
fast_filters: 'Fast filters',
|
|
31
31
|
added_filters: 'Added filters',
|
|
32
32
|
enter_preset_name: 'Enter preset name',
|
|
33
|
-
enter_preset_tooltip: '
|
|
33
|
+
enter_preset_tooltip: 'Save selected filter parameters to a custom preset',
|
|
34
34
|
from: 'From',
|
|
35
35
|
to: 'To',
|
|
36
36
|
enter: 'Enter',
|
|
@@ -54,11 +54,11 @@ export const UiFilterTranslations: IFilterPlaceholders = {
|
|
|
54
54
|
confirm: 'Confirm'
|
|
55
55
|
},
|
|
56
56
|
messages: {
|
|
57
|
-
same_filter: '
|
|
58
|
-
same_preset_name: '
|
|
59
|
-
accidentally_cleared: '
|
|
60
|
-
accidentally_deleted: '
|
|
61
|
-
more_than: '
|
|
57
|
+
same_filter: 'A filter with this parameter already exists',
|
|
58
|
+
same_preset_name: 'A preset with this name already exists',
|
|
59
|
+
accidentally_cleared: 'Accidentally cleared?',
|
|
60
|
+
accidentally_deleted: 'Accidentally deleted?',
|
|
61
|
+
more_than: 'The "From" value cannot be greater than the "To" value'
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as qe, defineAsyncComponent as W, useSlots as He, inject as je, ref as p, computed as i, onBeforeUnmount as Ie, watch as
|
|
1
|
+
import { defineComponent as qe, defineAsyncComponent as W, useSlots as He, inject as je, ref as p, computed as i, onBeforeUnmount as Ie, watch as K, openBlock as s, createElementBlock as F, normalizeStyle as Ye, normalizeClass as se, createElementVNode as T, renderSlot as O, createBlock as u, unref as a, withCtx as r, createTextVNode as E, toDisplayString as f, createCommentVNode as _, createVNode as S, mergeProps as Ge, createSlots as J, nextTick as ce } from "vue";
|
|
2
2
|
import Ue from "vue-multiselect";
|
|
3
|
-
import { Directions as
|
|
3
|
+
import { Directions as ue } from "../../../enums/ui/Directions2.js";
|
|
4
4
|
import { useFieldErrors as Xe } from "../../../composables/useFieldErrors2.js";
|
|
5
5
|
import { SelectGroupKeys as w, SelectListDirections as Ke } from "../../../enums/Select2.js";
|
|
6
|
-
import { PreviewSizes as
|
|
7
|
-
import { TitleVariations as
|
|
6
|
+
import { PreviewSizes as de } from "../../../enums/Preview2.js";
|
|
7
|
+
import { TitleVariations as me } from "../../../enums/Title2.js";
|
|
8
8
|
import { TooltipPositions as Je } from "../../../enums/Tooltip2.js";
|
|
9
|
-
import { Weights as
|
|
9
|
+
import { Weights as Q } from "../../../enums/ui/Weights2.js";
|
|
10
10
|
import { ChipSize as Qe } from "../../../enums/Chip2.js";
|
|
11
11
|
import { useTheme as Ze } from "../../../composables/useTheme2.js";
|
|
12
12
|
import { useThrottleFn as et } from "@vueuse/core";
|
|
13
|
-
import
|
|
13
|
+
import h from "../McTitle/McTitle.vue2.js";
|
|
14
14
|
import '../../../assets/components/elements/McSvgIcon/index.css';import '../../../assets/components/elements/McTitle/index.css';/* empty css */
|
|
15
15
|
import q from "../McSvgIcon/McSvgIcon.vue2.js";
|
|
16
16
|
/* empty css */
|
|
17
17
|
const tt = ["dir"], lt = { class: "mc-field-select__header" }, ot = { class: "mc-field-select__main" }, nt = {
|
|
18
18
|
key: 1,
|
|
19
19
|
class: "mc-field-select__single-label"
|
|
20
|
-
},
|
|
20
|
+
}, at = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "mc-field-select__prepend"
|
|
23
|
-
},
|
|
23
|
+
}, rt = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "mc-field-select__footer"
|
|
26
26
|
}, it = { key: 1 }, Ct = /* @__PURE__ */ qe({
|
|
@@ -250,7 +250,7 @@ const tt = ["dir"], lt = { class: "mc-field-select__header" }, ot = { class: "mc
|
|
|
250
250
|
},
|
|
251
251
|
dir: {
|
|
252
252
|
type: String,
|
|
253
|
-
default:
|
|
253
|
+
default: ue.Ltr
|
|
254
254
|
},
|
|
255
255
|
/**
|
|
256
256
|
* На какое после смотреть что бы считать его заголовком строки
|
|
@@ -269,14 +269,14 @@ const tt = ["dir"], lt = { class: "mc-field-select__header" }, ot = { class: "mc
|
|
|
269
269
|
},
|
|
270
270
|
emits: ["original-input", "tag", "search-change", "update:modelValue", "handle-open", "handle-close"],
|
|
271
271
|
setup(k, { emit: pe }) {
|
|
272
|
-
const
|
|
272
|
+
const H = W(() => import("../McAvatar/McAvatar.vue.js")), fe = W(() => import("../McTooltip/McTooltip.vue.js")), Z = W(() => import("../../patterns/McPreview/McPreview.vue.js")), ve = W(() => import("../McChip/McChip.vue.js")), C = pe, ge = He(), ee = je("dsOptions", {}), e = k, d = Ze("select"), y = Xe(e.errors), j = p(null), x = p(null), I = p(null), $ = p([]), g = p(null), A = p(), L = p(!1), z = p(null), Y = p(null), N = p(null), B = i(() => e.options.some(
|
|
273
273
|
(t) => Object.prototype.hasOwnProperty.call(t, w.Label) && Object.prototype.hasOwnProperty.call(t, w.Values) && //@ts-ignore
|
|
274
274
|
Array.isArray(t[w.Values])
|
|
275
|
-
)),
|
|
275
|
+
)), te = i(() => !!e.title), le = i(() => e.avatar || e.icon), V = i(() => e.multiple), he = i(() => V.value ? !!(e.modelValue || [])?.length : !!e.modelValue), ye = i(() => e.noResultsText ?? ee.componentTranslations?.select?.noResultsText), be = i(() => e.emptyList ?? ee.componentTranslations?.select?.emptyList), _e = i(() => ({
|
|
276
276
|
label: e.titleField,
|
|
277
277
|
trackBy: e.valueField,
|
|
278
278
|
loading: e.loading,
|
|
279
|
-
options:
|
|
279
|
+
options: R.value,
|
|
280
280
|
searchable: e.searchable,
|
|
281
281
|
showLabels: e.showLabels,
|
|
282
282
|
multiple: e.multiple,
|
|
@@ -294,16 +294,16 @@ const tt = ["dir"], lt = { class: "mc-field-select__header" }, ot = { class: "mc
|
|
|
294
294
|
appendToBody: e.renderAbsoluteList,
|
|
295
295
|
...B.value ? { groupLabel: w.Label } : {},
|
|
296
296
|
...B.value ? { groupValues: w.Values } : {}
|
|
297
|
-
})),
|
|
297
|
+
})), R = i(() => {
|
|
298
298
|
if (B.value) return e.options;
|
|
299
299
|
const t = /* @__PURE__ */ new Set();
|
|
300
300
|
return [...e.options, ...$.value].filter((l) => {
|
|
301
301
|
const n = l[e.valueField];
|
|
302
302
|
return t.has(String(n)) ? !1 : (t.add(String(n)), !0);
|
|
303
303
|
});
|
|
304
|
-
}), Se = i(() => B.value ?
|
|
304
|
+
}), Se = i(() => B.value ? R.value.map((t) => t[w.Values]).flat() : R.value), we = i(() => new Map(Se.value.map((t) => [String(t[e.valueField]), t]))), ke = i(() => e.dir === ue.Rtl), Ce = i(() => ({
|
|
305
305
|
"mc-field-select": !0,
|
|
306
|
-
"mc-field-select--error": !!
|
|
306
|
+
"mc-field-select--error": !!y.errorText.value,
|
|
307
307
|
"mc-field-select--disabled": e.disabled,
|
|
308
308
|
[`mc-field-select--bg-${e.backgroundColor}`]: !!e.backgroundColor,
|
|
309
309
|
"mc-field-select--is-empty-options-list": Ve.value || e.loading,
|
|
@@ -313,17 +313,17 @@ const tt = ["dir"], lt = { class: "mc-field-select__header" }, ot = { class: "mc
|
|
|
313
313
|
"mc-field-select--hide-arrow": !!ge.arrow
|
|
314
314
|
})), xe = i(() => `${e.title}${e.required ? " *" : ""}`), Be = i(() => {
|
|
315
315
|
const t = ["gray", "dark-gray", "black"], o = ["white"];
|
|
316
|
-
let l = "gray", n = e.backgroundColor,
|
|
317
|
-
return (!e.backgroundColor || o.includes(e.backgroundColor)) && (n =
|
|
316
|
+
let l = "gray", n = e.backgroundColor, c = e.backgroundColor, m = "black";
|
|
317
|
+
return (!e.backgroundColor || o.includes(e.backgroundColor)) && (n = d.component.color), t.includes(e.backgroundColor) && (m = "white", l = "white", n = "black"), e.disabled && !e.backgroundColor && (c = "hover-gray"), {
|
|
318
318
|
"--mc-field-select-max-height": e.maxHeight,
|
|
319
|
-
"--mc-field-select-bg-color":
|
|
320
|
-
"--mc-field-select-color":
|
|
321
|
-
"--mc-field-select-selected-color":
|
|
322
|
-
"--mc-field-select-border-color": n &&
|
|
323
|
-
"--mc-field-select-label-color":
|
|
324
|
-
"--mc-field-select-placeholder-color":
|
|
319
|
+
"--mc-field-select-bg-color": c && d.colors[c],
|
|
320
|
+
"--mc-field-select-color": d.colors[d.component.color],
|
|
321
|
+
"--mc-field-select-selected-color": d.colors[d.component.selected],
|
|
322
|
+
"--mc-field-select-border-color": n && d.colors[n],
|
|
323
|
+
"--mc-field-select-label-color": d.colors[m],
|
|
324
|
+
"--mc-field-select-placeholder-color": d.colors[l]
|
|
325
325
|
};
|
|
326
|
-
}), Ve = i(() => e.hideSelected && !
|
|
326
|
+
}), Ve = i(() => e.hideSelected && !j.value || !e.options.length ? e.multiple ? B.value ? !1 : Array.isArray(e.modelValue) && e.options.length === e.modelValue.length : !!e.modelValue && R.value?.length === 1 && !j.value : e.options.length === 0 ? !e.options.length : !1), P = i({
|
|
327
327
|
get() {
|
|
328
328
|
let t = V.value ? e.modelValue || [] : [e.modelValue].filter(Boolean);
|
|
329
329
|
t = t.map((l) => {
|
|
@@ -333,6 +333,7 @@ const tt = ["dir"], lt = { class: "mc-field-select__header" }, ot = { class: "mc
|
|
|
333
333
|
[e.valueField]: n?.[e.valueField] || l,
|
|
334
334
|
text: n?.text,
|
|
335
335
|
icon: n?.icon,
|
|
336
|
+
avatar: n?.avatar,
|
|
336
337
|
is_closable: n && (!Object.prototype.hasOwnProperty.call(n, "is_closable") || n.is_closable) || !n
|
|
337
338
|
};
|
|
338
339
|
});
|
|
@@ -345,22 +346,22 @@ const tt = ["dir"], lt = { class: "mc-field-select__header" }, ot = { class: "mc
|
|
|
345
346
|
const [l] = o;
|
|
346
347
|
$e(t), Oe(V.value ? o : l);
|
|
347
348
|
}
|
|
348
|
-
}),
|
|
349
|
-
const o = /* @__PURE__ */ new Set(), l = B.value ? t.flatMap((
|
|
350
|
-
$.value = n.filter((
|
|
351
|
-
const
|
|
352
|
-
if (o.has(String(
|
|
353
|
-
const
|
|
354
|
-
return
|
|
349
|
+
}), oe = (t = []) => {
|
|
350
|
+
const o = /* @__PURE__ */ new Set(), l = B.value ? t.flatMap((c) => c[w.Values] ?? []) : t, n = [...$.value, ...l];
|
|
351
|
+
$.value = n.filter((c) => {
|
|
352
|
+
const m = c[e.valueField];
|
|
353
|
+
if (o.has(String(m))) return !1;
|
|
354
|
+
const b = e.modelValue?.constructor === Array ? e.modelValue.map((U) => String(U)).includes(String(c[e.valueField])) : String(c[e.valueField]) === String(e.modelValue);
|
|
355
|
+
return b && o.add(String(m)), b;
|
|
355
356
|
});
|
|
356
|
-
},
|
|
357
|
+
}, ne = (t) => {
|
|
357
358
|
if (!t || t.nodeType !== Node.ELEMENT_NODE || t === document.documentElement)
|
|
358
359
|
return document.documentElement;
|
|
359
360
|
const { overflow: o, overflowY: l } = getComputedStyle(t);
|
|
360
|
-
if (["auto", "scroll"].some((
|
|
361
|
+
if (["auto", "scroll"].some((m) => [o, l].includes(m)))
|
|
361
362
|
return t;
|
|
362
|
-
const
|
|
363
|
-
return !
|
|
363
|
+
const c = t.parentNode;
|
|
364
|
+
return !c || c.nodeType !== Node.ELEMENT_NODE ? document.documentElement : ne(c);
|
|
364
365
|
}, Te = (t) => {
|
|
365
366
|
if (!t) return null;
|
|
366
367
|
let o = t.parentElement;
|
|
@@ -370,204 +371,210 @@ const tt = ["dir"], lt = { class: "mc-field-select__header" }, ot = { class: "mc
|
|
|
370
371
|
o = o.parentElement;
|
|
371
372
|
}
|
|
372
373
|
return null;
|
|
373
|
-
},
|
|
374
|
-
if (!
|
|
374
|
+
}, ae = i(() => ["iPhone", "iPad"].some((t) => navigator?.platform?.includes(t)) && window.visualViewport?.offsetTop || 0), M = et(() => {
|
|
375
|
+
if (!g.value || !x.value) return;
|
|
375
376
|
const {
|
|
376
377
|
top: t = 0,
|
|
377
378
|
bottom: o = 0,
|
|
378
379
|
height: l = 0,
|
|
379
380
|
width: n = 0,
|
|
380
|
-
left:
|
|
381
|
-
} =
|
|
382
|
-
if (!
|
|
383
|
-
const
|
|
384
|
-
if (
|
|
385
|
-
const
|
|
386
|
-
|
|
387
|
-
const Me =
|
|
388
|
-
let
|
|
389
|
-
switch (
|
|
381
|
+
left: c = 0
|
|
382
|
+
} = I.value?.getBoundingClientRect() || {}, m = g.value.getBoundingClientRect(), b = x.value;
|
|
383
|
+
if (!b) return;
|
|
384
|
+
const U = t - m.top, Re = o - m.bottom;
|
|
385
|
+
if (U >= -l && Re < l) {
|
|
386
|
+
const v = b.$refs.list, D = Te(v), Pe = D ? D.left : 0, ie = D ? D.top : 0;
|
|
387
|
+
v.style.width = `${n}px`, v.style.position = "fixed", v.style.left = `${c - Pe}px`;
|
|
388
|
+
const Me = I.value?.querySelector(".mc-field-select__header")?.offsetHeight, De = 8;
|
|
389
|
+
let X = e.openDirection;
|
|
390
|
+
switch (X === Ke.Auto && (X = b?.isAbove ? "top" : "bottom"), X) {
|
|
390
391
|
case "top": {
|
|
391
|
-
const We = t + (
|
|
392
|
-
|
|
392
|
+
const We = t + (te.value ? Me + De : 0) + ae.value - v.getBoundingClientRect().height - 8;
|
|
393
|
+
v.style.top = `${We - ie}px`, v.style.bottom = "auto";
|
|
393
394
|
break;
|
|
394
395
|
}
|
|
395
396
|
case "bottom":
|
|
396
|
-
|
|
397
|
+
v.style.bottom = "auto", v.style.top = `${t + ae.value + l - ie}px`;
|
|
397
398
|
break;
|
|
398
399
|
}
|
|
399
400
|
} else if (!/Android/i.test(navigator.userAgent))
|
|
400
|
-
return
|
|
401
|
+
return b.deactivate();
|
|
401
402
|
}, 16), Ee = () => {
|
|
402
|
-
|
|
403
|
+
G(), g.value = ne(x.value.$el) || document.documentElement, g.value.addEventListener("scroll", M), A.value?.disconnect(), A.value = new ResizeObserver(M), A.value.observe(g.value);
|
|
403
404
|
}, Le = (t) => {
|
|
404
405
|
const o = { [e.titleField]: t, [e.valueField]: t };
|
|
405
|
-
$.value.push(o),
|
|
406
|
+
$.value.push(o), P.value = V.value ? [...P.value, o] : o, C("tag", t);
|
|
406
407
|
}, Fe = (t) => {
|
|
407
|
-
|
|
408
|
+
j.value = t, C("search-change", t);
|
|
408
409
|
}, Oe = (t) => {
|
|
409
|
-
|
|
410
|
+
y.toggleErrorVisible(), C("update:modelValue", t);
|
|
410
411
|
}, $e = (t) => {
|
|
411
412
|
C("original-input", t);
|
|
412
413
|
}, Ae = () => {
|
|
413
414
|
const t = x.value;
|
|
414
415
|
if (!t?.$refs?.list) return;
|
|
415
416
|
const o = t.$refs.list;
|
|
416
|
-
if (o.parentNode?.nodeName === "BODY" ||
|
|
417
|
-
|
|
417
|
+
if (o.parentNode?.nodeName === "BODY" || N.value?.contains(o)) return;
|
|
418
|
+
z.value = o.parentElement, Y.value = o.nextSibling;
|
|
418
419
|
const l = document.createElement("div");
|
|
419
420
|
l.className = "mc-field-select mc-field-select--list-portal";
|
|
420
421
|
const n = document.createElement("div");
|
|
421
|
-
n.className = "multiselect", n.appendChild(o), l.appendChild(n), document.body.appendChild(l),
|
|
422
|
+
n.className = "multiselect", n.appendChild(o), l.appendChild(n), document.body.appendChild(l), N.value = l, L.value = !0, ce(M);
|
|
422
423
|
}, re = () => {
|
|
423
|
-
if (!L.value || !
|
|
424
|
-
const o = x.value?.$refs?.list, l =
|
|
425
|
-
o && l?.contains(o) &&
|
|
424
|
+
if (!L.value || !z.value) return;
|
|
425
|
+
const o = x.value?.$refs?.list, l = N.value;
|
|
426
|
+
o && l?.contains(o) && z.value.insertBefore(o, Y.value), l?.remove(), L.value = !1, z.value = null, Y.value = null, N.value = null;
|
|
427
|
+
}, ze = () => {
|
|
428
|
+
C("handle-open"), e.renderAbsoluteList && (Ee(), ce(Ae));
|
|
429
|
+
}, G = () => {
|
|
430
|
+
A.value?.disconnect(), g.value && (g.value.removeEventListener("scroll", M), g.value = null);
|
|
426
431
|
}, Ne = () => {
|
|
427
|
-
|
|
428
|
-
}, Y = () => {
|
|
429
|
-
A.value?.disconnect(), h.value && (h.value.removeEventListener("scroll", M), h.value = null);
|
|
430
|
-
}, Re = () => {
|
|
431
|
-
L.value && re(), Y(), C("handle-close");
|
|
432
|
+
L.value && re(), G(), C("handle-close");
|
|
432
433
|
};
|
|
433
434
|
return Ie(() => {
|
|
434
|
-
L.value && re(),
|
|
435
|
-
}),
|
|
435
|
+
L.value && re(), G();
|
|
436
|
+
}), K(
|
|
436
437
|
() => e.options,
|
|
437
438
|
(t) => {
|
|
438
|
-
|
|
439
|
+
oe(t);
|
|
439
440
|
},
|
|
440
441
|
{ immediate: !0 }
|
|
441
|
-
),
|
|
442
|
+
), K(
|
|
442
443
|
() => e.modelValue,
|
|
443
444
|
() => {
|
|
444
|
-
|
|
445
|
+
oe();
|
|
445
446
|
},
|
|
446
447
|
{ immediate: !0, deep: !0 }
|
|
447
|
-
),
|
|
448
|
+
), K(
|
|
448
449
|
() => e.errors,
|
|
449
450
|
(t) => {
|
|
450
|
-
|
|
451
|
+
y.setError(t);
|
|
451
452
|
}
|
|
452
|
-
), (t, o) => (
|
|
453
|
+
), (t, o) => (s(), F("div", {
|
|
453
454
|
ref_key: "field_select_wrapper_ref",
|
|
454
|
-
ref:
|
|
455
|
+
ref: I,
|
|
455
456
|
dir: k.dir,
|
|
456
|
-
class:
|
|
457
|
+
class: se(Ce.value),
|
|
457
458
|
style: Ye(Be.value)
|
|
458
459
|
}, [
|
|
459
460
|
T("div", lt, [
|
|
460
461
|
O(t.$slots, "header", {}, () => [
|
|
461
|
-
|
|
462
|
+
te.value ? (s(), u(h, {
|
|
462
463
|
key: 0,
|
|
463
464
|
"max-width": "100%",
|
|
464
|
-
weight:
|
|
465
|
+
weight: a(Q).Medium
|
|
465
466
|
}, {
|
|
466
|
-
default:
|
|
467
|
-
E(
|
|
467
|
+
default: r(() => [
|
|
468
|
+
E(f(xe.value), 1)
|
|
468
469
|
]),
|
|
469
470
|
_: 1
|
|
470
|
-
}, 8, ["weight"])) :
|
|
471
|
+
}, 8, ["weight"])) : _("", !0)
|
|
471
472
|
])
|
|
472
473
|
]),
|
|
473
474
|
T("div", ot, [
|
|
474
|
-
|
|
475
|
+
S(a(Ue), Ge({
|
|
475
476
|
ref_key: "field_select_ref",
|
|
476
477
|
ref: x,
|
|
477
|
-
modelValue:
|
|
478
|
-
"onUpdate:modelValue": o[0] || (o[0] = (l) =>
|
|
478
|
+
modelValue: P.value,
|
|
479
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => P.value = l)
|
|
479
480
|
}, _e.value, {
|
|
480
481
|
onTag: Le,
|
|
481
482
|
onSearchChange: Fe,
|
|
482
|
-
onOpen:
|
|
483
|
-
onClose:
|
|
484
|
-
}),
|
|
485
|
-
singleLabel:
|
|
486
|
-
e.optionWithPreview ? (
|
|
483
|
+
onOpen: ze,
|
|
484
|
+
onClose: Ne
|
|
485
|
+
}), J({
|
|
486
|
+
singleLabel: r(({ option: l }) => [
|
|
487
|
+
e.optionWithPreview ? (s(), u(a(Z), {
|
|
487
488
|
key: 0,
|
|
488
489
|
class: "option__desc",
|
|
489
|
-
size:
|
|
490
|
-
},
|
|
491
|
-
top:
|
|
492
|
-
|
|
493
|
-
weight:
|
|
490
|
+
size: a(de).L
|
|
491
|
+
}, J({
|
|
492
|
+
top: r(() => [
|
|
493
|
+
S(h, {
|
|
494
|
+
weight: a(Q).SemiBold,
|
|
494
495
|
"html-data": l[e.titleField]
|
|
495
496
|
}, null, 8, ["weight", "html-data"])
|
|
496
497
|
]),
|
|
497
|
-
right:
|
|
498
|
+
right: r(() => [
|
|
498
499
|
O(t.$slots, "arrow")
|
|
499
500
|
]),
|
|
500
501
|
_: 2
|
|
501
502
|
}, [
|
|
502
|
-
l.icon ? {
|
|
503
|
+
l.icon || l.avatar ? {
|
|
503
504
|
name: "left",
|
|
504
|
-
fn:
|
|
505
|
-
|
|
505
|
+
fn: r(() => [
|
|
506
|
+
l.icon ? (s(), u(q, {
|
|
507
|
+
key: 0,
|
|
506
508
|
name: l.icon,
|
|
507
509
|
color: l.iconColor || "main",
|
|
508
510
|
size: "400"
|
|
509
|
-
}, null, 8, ["name", "color"])
|
|
511
|
+
}, null, 8, ["name", "color"])) : (s(), u(a(H), {
|
|
512
|
+
key: 1,
|
|
513
|
+
src: l.avatar,
|
|
514
|
+
size: "400",
|
|
515
|
+
rounded: ""
|
|
516
|
+
}, null, 8, ["src"]))
|
|
510
517
|
]),
|
|
511
518
|
key: "0"
|
|
512
519
|
} : void 0,
|
|
513
520
|
l.text ? {
|
|
514
521
|
name: "bottom",
|
|
515
|
-
fn:
|
|
516
|
-
|
|
522
|
+
fn: r(() => [
|
|
523
|
+
S(h, {
|
|
517
524
|
color: "gray",
|
|
518
525
|
ellipsis: ""
|
|
519
526
|
}, {
|
|
520
|
-
default:
|
|
521
|
-
E(
|
|
527
|
+
default: r(() => [
|
|
528
|
+
E(f(l.text), 1)
|
|
522
529
|
]),
|
|
523
530
|
_: 2
|
|
524
531
|
}, 1024)
|
|
525
532
|
]),
|
|
526
533
|
key: "1"
|
|
527
534
|
} : void 0
|
|
528
|
-
]), 1032, ["size"])) : (
|
|
529
|
-
|
|
530
|
-
k.avatar ? (
|
|
535
|
+
]), 1032, ["size"])) : (s(), F("div", nt, [
|
|
536
|
+
le.value ? (s(), F("div", at, [
|
|
537
|
+
k.avatar ? (s(), u(a(H), {
|
|
531
538
|
key: 0,
|
|
532
539
|
src: k.avatar
|
|
533
|
-
}, null, 8, ["src"])) : (
|
|
540
|
+
}, null, 8, ["src"])) : (s(), u(q, {
|
|
534
541
|
key: 1,
|
|
535
542
|
color: l.iconColor || "main",
|
|
536
543
|
name: e.icon
|
|
537
544
|
}, null, 8, ["color", "name"]))
|
|
538
|
-
])) :
|
|
545
|
+
])) : _("", !0),
|
|
539
546
|
T("div", {
|
|
540
|
-
class:
|
|
541
|
-
},
|
|
547
|
+
class: se(["mc-field-select__label-text", le.value ? "mc-field-select__label-text--indent-left" : ""])
|
|
548
|
+
}, f(l ? l[e.titleField] : k.placeholder), 3)
|
|
542
549
|
]))
|
|
543
550
|
]),
|
|
544
|
-
noResult:
|
|
551
|
+
noResult: r(() => [
|
|
545
552
|
O(t.$slots, "noResult", {}, () => [
|
|
546
|
-
T("span", null,
|
|
553
|
+
T("span", null, f(ye.value), 1)
|
|
547
554
|
])
|
|
548
555
|
]),
|
|
549
|
-
noOptions:
|
|
556
|
+
noOptions: r(() => [
|
|
550
557
|
O(t.$slots, "noOptions", {}, () => [
|
|
551
|
-
T("span", null,
|
|
558
|
+
T("span", null, f(be.value), 1)
|
|
552
559
|
])
|
|
553
560
|
]),
|
|
554
|
-
tag:
|
|
555
|
-
|
|
556
|
-
size:
|
|
561
|
+
tag: r((l) => [
|
|
562
|
+
S(a(ve), {
|
|
563
|
+
size: a(Qe).Xs,
|
|
557
564
|
class: "multiselect__tag",
|
|
558
|
-
variation: `${
|
|
565
|
+
variation: `${a(d).component.selected}-invert`,
|
|
559
566
|
"text-color": "black",
|
|
560
567
|
closable: !l?.option?.hasOwnProperty("is_closable") || l?.option?.is_closable,
|
|
561
568
|
onClose: (n) => l.remove(l.option)
|
|
562
569
|
}, {
|
|
563
|
-
button:
|
|
564
|
-
|
|
570
|
+
button: r(() => [
|
|
571
|
+
S(q, {
|
|
565
572
|
size: "250",
|
|
566
573
|
name: "cancel"
|
|
567
574
|
})
|
|
568
575
|
]),
|
|
569
|
-
default:
|
|
570
|
-
E(
|
|
576
|
+
default: r(() => [
|
|
577
|
+
E(f(l.option[e.titleField]) + " ", 1)
|
|
571
578
|
]),
|
|
572
579
|
_: 2
|
|
573
580
|
}, 1032, ["size", "variation", "closable", "onClose"])
|
|
@@ -576,62 +583,68 @@ const tt = ["dir"], lt = { class: "mc-field-select__header" }, ot = { class: "mc
|
|
|
576
583
|
}, [
|
|
577
584
|
k.optionsTooltip || e.optionWithPreview ? {
|
|
578
585
|
name: "option",
|
|
579
|
-
fn:
|
|
580
|
-
l.$isLabel ? (
|
|
586
|
+
fn: r(({ option: l }) => [
|
|
587
|
+
l.$isLabel ? (s(), u(h, {
|
|
581
588
|
key: 0,
|
|
582
589
|
color: "gray"
|
|
583
590
|
}, {
|
|
584
|
-
default:
|
|
585
|
-
E(
|
|
591
|
+
default: r(() => [
|
|
592
|
+
E(f(l.$groupLabel), 1)
|
|
586
593
|
]),
|
|
587
594
|
_: 2
|
|
588
|
-
}, 1024)) :
|
|
589
|
-
e.optionWithPreview ? (
|
|
595
|
+
}, 1024)) : _("", !0),
|
|
596
|
+
e.optionWithPreview ? (s(), u(a(Z), {
|
|
590
597
|
key: 1,
|
|
591
598
|
class: "option__desc",
|
|
592
|
-
size:
|
|
593
|
-
},
|
|
594
|
-
top:
|
|
595
|
-
|
|
596
|
-
weight:
|
|
599
|
+
size: a(de).L
|
|
600
|
+
}, J({
|
|
601
|
+
top: r(() => [
|
|
602
|
+
S(h, {
|
|
603
|
+
weight: a(Q).SemiBold,
|
|
597
604
|
"html-data": l[e.titleField]
|
|
598
605
|
}, null, 8, ["weight", "html-data"])
|
|
599
606
|
]),
|
|
600
607
|
_: 2
|
|
601
608
|
}, [
|
|
602
|
-
l.icon ? {
|
|
609
|
+
l.icon || l.avatar ? {
|
|
603
610
|
name: "left",
|
|
604
|
-
fn:
|
|
605
|
-
|
|
611
|
+
fn: r(() => [
|
|
612
|
+
l.icon ? (s(), u(q, {
|
|
613
|
+
key: 0,
|
|
606
614
|
name: l.icon,
|
|
607
615
|
color: l.iconColor || "main",
|
|
608
616
|
size: "400"
|
|
609
|
-
}, null, 8, ["name", "color"])
|
|
617
|
+
}, null, 8, ["name", "color"])) : (s(), u(a(H), {
|
|
618
|
+
key: 1,
|
|
619
|
+
src: l.avatar,
|
|
620
|
+
size: "400",
|
|
621
|
+
rounded: ""
|
|
622
|
+
}, null, 8, ["src"]))
|
|
610
623
|
]),
|
|
611
624
|
key: "0"
|
|
612
625
|
} : void 0,
|
|
613
626
|
l.text ? {
|
|
614
627
|
name: "bottom",
|
|
615
|
-
fn:
|
|
616
|
-
|
|
617
|
-
default:
|
|
618
|
-
E(
|
|
628
|
+
fn: r(() => [
|
|
629
|
+
S(h, { color: "gray" }, {
|
|
630
|
+
default: r(() => [
|
|
631
|
+
E(f(l.text), 1)
|
|
619
632
|
]),
|
|
620
633
|
_: 2
|
|
621
634
|
}, 1024)
|
|
622
635
|
]),
|
|
623
636
|
key: "1"
|
|
624
637
|
} : void 0
|
|
625
|
-
]), 1032, ["size"])) : (
|
|
638
|
+
]), 1032, ["size"])) : (s(), u(a(fe), {
|
|
626
639
|
key: 2,
|
|
627
640
|
class: "mc-field-select__options-tooltip-target",
|
|
628
641
|
"max-width": "m",
|
|
629
642
|
color: "black",
|
|
630
|
-
placement:
|
|
643
|
+
placement: a(Je).Top,
|
|
631
644
|
content: l[e.titleField]
|
|
632
645
|
}, {
|
|
633
|
-
default:
|
|
634
|
-
T("span", null,
|
|
646
|
+
default: r(() => [
|
|
647
|
+
T("span", null, f(l[e.titleField]), 1)
|
|
635
648
|
]),
|
|
636
649
|
_: 2
|
|
637
650
|
}, 1032, ["placement", "content"]))
|
|
@@ -640,31 +653,31 @@ const tt = ["dir"], lt = { class: "mc-field-select__header" }, ot = { class: "mc
|
|
|
640
653
|
} : void 0
|
|
641
654
|
]), 1040, ["modelValue"])
|
|
642
655
|
]),
|
|
643
|
-
|
|
644
|
-
|
|
656
|
+
a(y).errorText.value || e.helpText || t.$slots.footer ? (s(), F("div", rt, [
|
|
657
|
+
a(y).errorText.value ? (s(), u(h, {
|
|
645
658
|
key: 0,
|
|
646
659
|
"tag-name": "div",
|
|
647
660
|
color: "red",
|
|
648
|
-
variation:
|
|
661
|
+
variation: a(me).Overline,
|
|
649
662
|
"max-width": "100%",
|
|
650
|
-
"html-data":
|
|
651
|
-
}, null, 8, ["variation", "html-data"])) :
|
|
652
|
-
|
|
663
|
+
"html-data": a(y).errorText.value
|
|
664
|
+
}, null, 8, ["variation", "html-data"])) : _("", !0),
|
|
665
|
+
a(y).errorText.value ? (s(), F("br", it)) : _("", !0),
|
|
653
666
|
O(t.$slots, "footer", {}, () => [
|
|
654
|
-
e.helpText ? (
|
|
667
|
+
e.helpText ? (s(), u(h, {
|
|
655
668
|
key: 0,
|
|
656
669
|
"tag-name": "div",
|
|
657
|
-
variation:
|
|
670
|
+
variation: a(me).Overline,
|
|
658
671
|
color: "gray",
|
|
659
672
|
"max-width": "100%"
|
|
660
673
|
}, {
|
|
661
|
-
default:
|
|
662
|
-
E(
|
|
674
|
+
default: r(() => [
|
|
675
|
+
E(f(e.helpText), 1)
|
|
663
676
|
]),
|
|
664
677
|
_: 1
|
|
665
|
-
}, 8, ["variation"])) :
|
|
678
|
+
}, 8, ["variation"])) : _("", !0)
|
|
666
679
|
])
|
|
667
|
-
])) :
|
|
680
|
+
])) : _("", !0)
|
|
668
681
|
], 14, tt));
|
|
669
682
|
}
|
|
670
683
|
});
|