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.
Files changed (29) hide show
  1. package/dist/ai-catalog/index.json +1 -1
  2. package/dist/ai-catalog/types/ITranslations.ts +6 -6
  3. package/dist/components/elements/McFieldSelect/McFieldSelect.vue2.js +170 -157
  4. package/dist/iconsSprite.svg +1 -1
  5. package/dist/types/ITranslations.js +6 -6
  6. package/dist/types/components/elements/McFieldSelect/McFieldSelect.vue.d.ts +3 -3
  7. package/dist/types/components/elements/McFieldSelect/index.d.ts +6 -6
  8. package/dist/types/components/elements/McNodata/McNoData.vue.d.ts +3 -3
  9. package/dist/types/components/elements/McNodata/index.d.ts +6 -6
  10. package/dist/types/components/elements/McNotification/McNotification.vue.d.ts +5 -5
  11. package/dist/types/components/elements/McNotification/index.d.ts +9 -9
  12. package/dist/types/components/elements/McSvgIcon/index.d.ts +2 -2
  13. package/dist/types/components/patterns/McSideBar/McSideBar.vue.d.ts +3 -3
  14. package/dist/types/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +1 -1
  15. package/dist/types/components/patterns/McSideBar/McSideBarButton/index.d.ts +3 -3
  16. package/dist/types/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +3 -3
  17. package/dist/types/components/patterns/McSideBar/McSideBarTop/index.d.ts +6 -6
  18. package/dist/types/components/patterns/McSideBar/index.d.ts +6 -6
  19. package/dist/types/components/patterns/McTab/McTab.vue.d.ts +6 -6
  20. package/dist/types/components/patterns/McTab/index.d.ts +12 -12
  21. package/dist/types/components/templates/McDrawer/McDrawer.vue.d.ts +3 -3
  22. package/dist/types/components/templates/McDrawer/index.d.ts +6 -6
  23. package/dist/types/components/templates/McTable/McTable/McTable.vue.d.ts +3 -3
  24. package/dist/types/components/templates/McTable/McTable/index.d.ts +6 -6
  25. package/dist/types/components/templates/McToast/McToast.vue.d.ts +1 -1
  26. package/dist/types/components/templates/McToast/index.d.ts +3 -3
  27. package/dist/types/composables/useDrawer.d.ts +1 -1
  28. package/dist/types/types/styles/Icons.d.ts +1 -0
  29. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "catalogSchemaVersion": 2,
3
- "libraryVersion": "0.0.325",
3
+ "libraryVersion": "0.0.327",
4
4
  "packageName": "mediacube-ui-v2",
5
5
  "pathHash": "9b6f3b8016b22ac7",
6
6
  "componentCount": 76,
@@ -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 X, openBlock as c, createElementBlock as F, normalizeStyle as Ye, normalizeClass as ie, createElementVNode as T, renderSlot as O, createBlock as v, unref as r, withCtx as a, createTextVNode as E, toDisplayString as m, createCommentVNode as S, createVNode as g, mergeProps as Ge, createSlots as K, nextTick as se } from "vue";
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 ce } from "../../../enums/ui/Directions2.js";
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 ue } from "../../../enums/Preview2.js";
7
- import { TitleVariations as de } from "../../../enums/Title2.js";
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 J } from "../../../enums/ui/Weights2.js";
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 y from "../McTitle/McTitle.vue2.js";
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
- }, rt = {
20
+ }, at = {
21
21
  key: 0,
22
22
  class: "mc-field-select__prepend"
23
- }, at = {
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: ce.Ltr
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 me = W(() => import("../McAvatar/McAvatar.vue.js")), fe = W(() => import("../McTooltip/McTooltip.vue.js")), Q = W(() => import("../../patterns/McPreview/McPreview.vue.js")), ve = W(() => import("../McChip/McChip.vue.js")), C = pe, ge = He(), Z = je("dsOptions", {}), e = k, u = Ze("select"), b = Xe(e.errors), H = p(null), x = p(null), j = p(null), $ = p([]), h = p(null), A = p(), L = p(!1), N = p(null), I = p(null), R = p(null), B = i(() => e.options.some(
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
- )), ee = i(() => !!e.title), te = i(() => e.avatar || e.icon), V = i(() => e.multiple), he = i(() => V.value ? !!(e.modelValue || [])?.length : !!e.modelValue), ye = i(() => e.noResultsText ?? Z.componentTranslations?.select?.noResultsText), be = i(() => e.emptyList ?? Z.componentTranslations?.select?.emptyList), _e = i(() => ({
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: P.value,
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
- })), P = i(() => {
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 ? P.value.map((t) => t[w.Values]).flat() : P.value), we = i(() => new Map(Se.value.map((t) => [String(t[e.valueField]), t]))), ke = i(() => e.dir === ce.Rtl), Ce = i(() => ({
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": !!b.errorText.value,
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, s = e.backgroundColor, d = "black";
317
- return (!e.backgroundColor || o.includes(e.backgroundColor)) && (n = u.component.color), t.includes(e.backgroundColor) && (d = "white", l = "white", n = "black"), e.disabled && !e.backgroundColor && (s = "hover-gray"), {
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": s && u.colors[s],
320
- "--mc-field-select-color": u.colors[u.component.color],
321
- "--mc-field-select-selected-color": u.colors[u.component.selected],
322
- "--mc-field-select-border-color": n && u.colors[n],
323
- "--mc-field-select-label-color": u.colors[d],
324
- "--mc-field-select-placeholder-color": u.colors[l]
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 && !H.value || !e.options.length ? e.multiple ? B.value ? !1 : Array.isArray(e.modelValue) && e.options.length === e.modelValue.length : !!e.modelValue && P.value?.length === 1 && !H.value : e.options.length === 0 ? !e.options.length : !1), z = i({
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
- }), le = (t = []) => {
349
- const o = /* @__PURE__ */ new Set(), l = B.value ? t.flatMap((s) => s[w.Values] ?? []) : t, n = [...$.value, ...l];
350
- $.value = n.filter((s) => {
351
- const d = s[e.valueField];
352
- if (o.has(String(d))) return !1;
353
- const _ = e.modelValue?.constructor === Array ? e.modelValue.map((G) => String(G)).includes(String(s[e.valueField])) : String(s[e.valueField]) === String(e.modelValue);
354
- return _ && o.add(String(d)), _;
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
- }, oe = (t) => {
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((d) => [o, l].includes(d)))
361
+ if (["auto", "scroll"].some((m) => [o, l].includes(m)))
361
362
  return t;
362
- const s = t.parentNode;
363
- return !s || s.nodeType !== Node.ELEMENT_NODE ? document.documentElement : oe(s);
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
- }, ne = i(() => ["iPhone", "iPad"].some((t) => navigator?.platform?.includes(t)) && window.visualViewport?.offsetTop || 0), M = et(() => {
374
- if (!h.value || !x.value) return;
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: s = 0
381
- } = j.value?.getBoundingClientRect() || {}, d = h.value.getBoundingClientRect(), _ = x.value;
382
- if (!_) return;
383
- const G = t - d.top, Pe = o - d.bottom;
384
- if (G >= -l && Pe < l) {
385
- const f = _.$refs.list, D = Te(f), ze = D ? D.left : 0, ae = D ? D.top : 0;
386
- f.style.width = `${n}px`, f.style.position = "fixed", f.style.left = `${s - ze}px`;
387
- const Me = j.value?.querySelector(".mc-field-select__header")?.offsetHeight, De = 8;
388
- let U = e.openDirection;
389
- switch (U === Ke.Auto && (U = _?.isAbove ? "top" : "bottom"), U) {
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 + (ee.value ? Me + De : 0) + ne.value - f.getBoundingClientRect().height - 8;
392
- f.style.top = `${We - ae}px`, f.style.bottom = "auto";
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
- f.style.bottom = "auto", f.style.top = `${t + ne.value + l - ae}px`;
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 _.deactivate();
401
+ return b.deactivate();
401
402
  }, 16), Ee = () => {
402
- Y(), h.value = oe(x.value.$el) || document.documentElement, h.value.addEventListener("scroll", M), A.value?.disconnect(), A.value = new ResizeObserver(M), A.value.observe(h.value);
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), z.value = V.value ? [...z.value, o] : o, C("tag", t);
406
+ $.value.push(o), P.value = V.value ? [...P.value, o] : o, C("tag", t);
406
407
  }, Fe = (t) => {
407
- H.value = t, C("search-change", t);
408
+ j.value = t, C("search-change", t);
408
409
  }, Oe = (t) => {
409
- b.toggleErrorVisible(), C("update:modelValue", t);
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" || R.value?.contains(o)) return;
417
- N.value = o.parentElement, I.value = o.nextSibling;
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), R.value = l, L.value = !0, se(M);
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 || !N.value) return;
424
- const o = x.value?.$refs?.list, l = R.value;
425
- o && l?.contains(o) && N.value.insertBefore(o, I.value), l?.remove(), L.value = !1, N.value = null, I.value = null, R.value = null;
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
- C("handle-open"), e.renderAbsoluteList && (Ee(), se(Ae));
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(), Y();
435
- }), X(
435
+ L.value && re(), G();
436
+ }), K(
436
437
  () => e.options,
437
438
  (t) => {
438
- le(t);
439
+ oe(t);
439
440
  },
440
441
  { immediate: !0 }
441
- ), X(
442
+ ), K(
442
443
  () => e.modelValue,
443
444
  () => {
444
- le();
445
+ oe();
445
446
  },
446
447
  { immediate: !0, deep: !0 }
447
- ), X(
448
+ ), K(
448
449
  () => e.errors,
449
450
  (t) => {
450
- b.setError(t);
451
+ y.setError(t);
451
452
  }
452
- ), (t, o) => (c(), F("div", {
453
+ ), (t, o) => (s(), F("div", {
453
454
  ref_key: "field_select_wrapper_ref",
454
- ref: j,
455
+ ref: I,
455
456
  dir: k.dir,
456
- class: ie(Ce.value),
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
- ee.value ? (c(), v(y, {
462
+ te.value ? (s(), u(h, {
462
463
  key: 0,
463
464
  "max-width": "100%",
464
- weight: r(J).Medium
465
+ weight: a(Q).Medium
465
466
  }, {
466
- default: a(() => [
467
- E(m(xe.value), 1)
467
+ default: r(() => [
468
+ E(f(xe.value), 1)
468
469
  ]),
469
470
  _: 1
470
- }, 8, ["weight"])) : S("", !0)
471
+ }, 8, ["weight"])) : _("", !0)
471
472
  ])
472
473
  ]),
473
474
  T("div", ot, [
474
- g(r(Ue), Ge({
475
+ S(a(Ue), Ge({
475
476
  ref_key: "field_select_ref",
476
477
  ref: x,
477
- modelValue: z.value,
478
- "onUpdate:modelValue": o[0] || (o[0] = (l) => z.value = 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: Ne,
483
- onClose: Re
484
- }), K({
485
- singleLabel: a(({ option: l }) => [
486
- e.optionWithPreview ? (c(), v(r(Q), {
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: r(ue).L
490
- }, K({
491
- top: a(() => [
492
- g(y, {
493
- weight: r(J).SemiBold,
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: a(() => [
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: a(() => [
505
- g(q, {
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: a(() => [
516
- g(y, {
522
+ fn: r(() => [
523
+ S(h, {
517
524
  color: "gray",
518
525
  ellipsis: ""
519
526
  }, {
520
- default: a(() => [
521
- E(m(l.text), 1)
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"])) : (c(), F("div", nt, [
529
- te.value ? (c(), F("div", rt, [
530
- k.avatar ? (c(), v(r(me), {
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"])) : (c(), v(q, {
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
- ])) : S("", !0),
545
+ ])) : _("", !0),
539
546
  T("div", {
540
- class: ie(["mc-field-select__label-text", te.value ? "mc-field-select__label-text--indent-left" : ""])
541
- }, m(l ? l[e.titleField] : k.placeholder), 3)
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: a(() => [
551
+ noResult: r(() => [
545
552
  O(t.$slots, "noResult", {}, () => [
546
- T("span", null, m(ye.value), 1)
553
+ T("span", null, f(ye.value), 1)
547
554
  ])
548
555
  ]),
549
- noOptions: a(() => [
556
+ noOptions: r(() => [
550
557
  O(t.$slots, "noOptions", {}, () => [
551
- T("span", null, m(be.value), 1)
558
+ T("span", null, f(be.value), 1)
552
559
  ])
553
560
  ]),
554
- tag: a((l) => [
555
- g(r(ve), {
556
- size: r(Qe).Xs,
561
+ tag: r((l) => [
562
+ S(a(ve), {
563
+ size: a(Qe).Xs,
557
564
  class: "multiselect__tag",
558
- variation: `${r(u).component.selected}-invert`,
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: a(() => [
564
- g(q, {
570
+ button: r(() => [
571
+ S(q, {
565
572
  size: "250",
566
573
  name: "cancel"
567
574
  })
568
575
  ]),
569
- default: a(() => [
570
- E(m(l.option[e.titleField]) + " ", 1)
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: a(({ option: l }) => [
580
- l.$isLabel ? (c(), v(y, {
586
+ fn: r(({ option: l }) => [
587
+ l.$isLabel ? (s(), u(h, {
581
588
  key: 0,
582
589
  color: "gray"
583
590
  }, {
584
- default: a(() => [
585
- E(m(l.$groupLabel), 1)
591
+ default: r(() => [
592
+ E(f(l.$groupLabel), 1)
586
593
  ]),
587
594
  _: 2
588
- }, 1024)) : S("", !0),
589
- e.optionWithPreview ? (c(), v(r(Q), {
595
+ }, 1024)) : _("", !0),
596
+ e.optionWithPreview ? (s(), u(a(Z), {
590
597
  key: 1,
591
598
  class: "option__desc",
592
- size: r(ue).L
593
- }, K({
594
- top: a(() => [
595
- g(y, {
596
- weight: r(J).SemiBold,
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: a(() => [
605
- g(q, {
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: a(() => [
616
- g(y, { color: "gray" }, {
617
- default: a(() => [
618
- E(m(l.text), 1)
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"])) : (c(), v(r(fe), {
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: r(Je).Top,
643
+ placement: a(Je).Top,
631
644
  content: l[e.titleField]
632
645
  }, {
633
- default: a(() => [
634
- T("span", null, m(l[e.titleField]), 1)
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
- r(b).errorText.value || e.helpText || t.$slots.footer ? (c(), F("div", at, [
644
- r(b).errorText.value ? (c(), v(y, {
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: r(de).Overline,
661
+ variation: a(me).Overline,
649
662
  "max-width": "100%",
650
- "html-data": r(b).errorText.value
651
- }, null, 8, ["variation", "html-data"])) : S("", !0),
652
- r(b).errorText.value ? (c(), F("br", it)) : S("", !0),
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 ? (c(), v(y, {
667
+ e.helpText ? (s(), u(h, {
655
668
  key: 0,
656
669
  "tag-name": "div",
657
- variation: r(de).Overline,
670
+ variation: a(me).Overline,
658
671
  color: "gray",
659
672
  "max-width": "100%"
660
673
  }, {
661
- default: a(() => [
662
- E(m(e.helpText), 1)
674
+ default: r(() => [
675
+ E(f(e.helpText), 1)
663
676
  ]),
664
677
  _: 1
665
- }, 8, ["variation"])) : S("", !0)
678
+ }, 8, ["variation"])) : _("", !0)
666
679
  ])
667
- ])) : S("", !0)
680
+ ])) : _("", !0)
668
681
  ], 14, tt));
669
682
  }
670
683
  });