@dv.net/ui-kit 7.7.20 → 7.7.22

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/assets/{SelectListItem.CjXmHYbp.js → SelectListItem.C3KlnrwK.js} +14 -12
  2. package/dist/assets/{SelectVirtualList.C8ZTNnx8.js → SelectVirtualList.BKZFHrk3.js} +10 -6
  3. package/dist/assets/{UiChat.DgUnWoCI.js → UiChat.BTOPlRp-.js} +2 -2
  4. package/dist/assets/{UiChatHeader.CXBBEiuH.js → UiChatHeader.tNXu72JW.js} +1 -1
  5. package/dist/assets/UiChatMessage.BgjgEgkc.js +59 -0
  6. package/dist/assets/{UiNotification.BQl5o1e4.js → UiNotification.Bpq5dNbz.js} +18 -29
  7. package/dist/assets/{UiPagination.2XvUpFoX.js → UiPagination.DpV3wFEW.js} +1 -1
  8. package/dist/assets/UiSelect.DBnwUWeq.js +349 -0
  9. package/dist/assets/{UiTable.B0Yoq7JZ.js → UiTable.BVVe4xAf.js} +1 -1
  10. package/dist/components/UiChat/UiChat.js +1 -1
  11. package/dist/components/UiChat/UiChatHeader.js +1 -1
  12. package/dist/components/UiChat/UiChatMessage.js +1 -1
  13. package/dist/components/UiPagination/UiPagination.js +1 -1
  14. package/dist/components/UiSelect/UiSelect.js +1 -1
  15. package/dist/components/UiSelect/components/SelectListItem.js +1 -1
  16. package/dist/components/UiSelect/components/SelectVirtualList.js +1 -1
  17. package/dist/components/UiSelect/components/SelectVirtualList.vue.d.ts +3 -1
  18. package/dist/components/UiSelect/composables/useKeyboard.d.ts +8 -5
  19. package/dist/components/UiSelect/composables/useKeyboard.js +43 -12
  20. package/dist/components/UiTable/UiTable.js +1 -1
  21. package/dist/composables/useNotification/UiNotification.js +1 -1
  22. package/dist/composables/useNotification/UiNotification.vue.d.ts +0 -2
  23. package/dist/composables/useNotification/useNotification.d.ts +1 -1
  24. package/dist/composables/useNotification/useNotification.js +11 -12
  25. package/dist/index.js +4 -4
  26. package/dist/style.css +1 -1
  27. package/package.json +1 -1
  28. package/dist/assets/UiChatMessage.7AQRFKRA.js +0 -40
  29. package/dist/assets/UiSelect.CBOQXkNp.js +0 -326
@@ -1,8 +1,7 @@
1
1
  import { SelectListItemSize as e } from "../components/UiSelect/types.js";
2
2
  import { computed as t, createElementBlock as n, defineComponent as r, normalizeClass as i, openBlock as a, renderSlot as o, useCssVars as s } from "vue";
3
- //#endregion
4
- //#region src/lib/components/UiSelect/components/SelectListItem.vue
5
- var c = /* @__PURE__ */ r({
3
+ //#region src/lib/components/UiSelect/components/SelectListItem.vue?vue&type=script&setup=true&lang.ts
4
+ var c = ["data-highlighted"], l = /* @__PURE__ */ r({
6
5
  __name: "SelectListItem",
7
6
  props: {
8
7
  isDisabled: { type: Boolean },
@@ -12,15 +11,18 @@ var c = /* @__PURE__ */ r({
12
11
  },
13
12
  emits: ["check", "mouseOver"],
14
13
  setup(r) {
15
- s((e) => ({ a2ec6fc8: l.value }));
16
- let c = r, l = t(() => e[c.size] + "px");
17
- return (e, t) => (a(), n("button", { class: i(["ui-select__option", [
18
- { "is-checked": r.isChecked },
19
- { "is-navigated": r.isNavigated },
20
- { "is-disabled": r.isDisabled },
21
- `size-${l.value}`
22
- ]]) }, [o(e.$slots, "default")], 2));
14
+ s((e) => ({ v0546e42a: u.value }));
15
+ let l = r, u = t(() => e[l.size] + "px");
16
+ return (e, t) => (a(), n("button", {
17
+ class: i(["ui-select__option", [
18
+ { "is-checked": r.isChecked },
19
+ { "is-navigated": r.isNavigated },
20
+ { "is-disabled": r.isDisabled },
21
+ `size-${u.value}`
22
+ ]]),
23
+ "data-highlighted": r.isNavigated ? "true" : void 0
24
+ }, [o(e.$slots, "default")], 10, c));
23
25
  }
24
26
  });
25
27
  //#endregion
26
- export { c as t };
28
+ export { l as t };
@@ -1066,15 +1066,19 @@ var je = {
1066
1066
  isLoading: { type: Boolean }
1067
1067
  },
1068
1068
  emits: ["changeInfinityScroll"],
1069
- setup(n) {
1070
- let a = n, o = r(() => a.options.map((e, t) => ({
1069
+ setup(n, { expose: a }) {
1070
+ let o = n, c = r(() => o.options.map((e, t) => ({
1071
1071
  index: t,
1072
1072
  option: e
1073
- }))), c = r(() => t[a.size]);
1074
- return (t, r) => (_(), i(T(Pe), {
1073
+ }))), l = r(() => t[o.size]), u = v(null);
1074
+ return a({ scrollToItem(e) {
1075
+ u.value?.scrollToItem(e);
1076
+ } }), (t, r) => (_(), i(T(Pe), {
1077
+ ref_key: "scroller",
1078
+ ref: u,
1075
1079
  onScrollEnd: r[0] ||= () => t.$emit("changeInfinityScroll"),
1076
- items: o.value,
1077
- "item-size": c.value,
1080
+ items: c.value,
1081
+ "item-size": l.value,
1078
1082
  "key-field": "index",
1079
1083
  class: "ui-select__options-list-wrapper"
1080
1084
  }, {
@@ -2,10 +2,10 @@ import { r as e } from "./UiChatAttachments.CAFeMyCV.js";
2
2
  import { useBreakpoints as t } from "../composables/useBreakpoints.js";
3
3
  import { config as n } from "../config/index.js";
4
4
  import { t as r } from "./UiChatFooter.UPkQfa4c.js";
5
- import { t as i } from "./UiChatHeader.CXBBEiuH.js";
5
+ import { t as i } from "./UiChatHeader.tNXu72JW.js";
6
6
  import { t as a } from "./UiChatManagerAlert.CiAaxS9L.js";
7
7
  import { formatUiChatDate as o, getUiChatDatetimeTimestamp as s, getUiChatNowIso as c, parseUiChatDatetime as l } from "../components/UiChat/uiChatDate.js";
8
- import { t as u } from "./UiChatMessage.7AQRFKRA.js";
8
+ import { t as u } from "./UiChatMessage.BgjgEgkc.js";
9
9
  import { UiChatTicketStatusValue as d } from "../components/UiChat/types.js";
10
10
  import { Fragment as f, Transition as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createVNode as y, defineComponent as b, nextTick as x, normalizeClass as S, onUnmounted as C, openBlock as w, ref as T, renderList as E, toDisplayString as D, unref as O, watch as k, withCtx as A } from "vue";
11
11
  //#region src/lib/components/UiChat/UiChat.vue?vue&type=script&setup=true&lang.ts
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./UiIcon.iHypdpWu.js";
2
2
  import { useBreakpoints as t } from "../composables/useBreakpoints.js";
3
3
  import { config as n } from "../config/index.js";
4
- import { t as r } from "./UiSelect.CBOQXkNp.js";
4
+ import { t as r } from "./UiSelect.DBnwUWeq.js";
5
5
  import { t as i } from "./UiSkeleton.Gw5aX0E-.js";
6
6
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, normalizeStyle as m, openBlock as h, ref as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
7
7
  //#region src/lib/components/UiChat/UiChatHeader.vue?vue&type=script&setup=true&lang.ts
@@ -0,0 +1,59 @@
1
+ import { t as e } from "./UiChatMessageAttachments.Z2dmirIN.js";
2
+ import { formatUiChatTime as t } from "../components/UiChat/uiChatDate.js";
3
+ import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, renderList as f, toDisplayString as p, unref as m } from "vue";
4
+ //#region src/utils/constants/general.ts
5
+ var h = /https?:\/\/[^\s]+/g, g = { class: "ui-chat__message-bubble" }, _ = { class: "ui-chat__message-info" }, v = {
6
+ key: 0,
7
+ class: "ui-chat__message-text"
8
+ }, y = ["href"], b = { class: "ui-chat__message-time" }, x = /* @__PURE__ */ l({
9
+ __name: "UiChatMessage",
10
+ props: {
11
+ message: {},
12
+ isOwn: {
13
+ type: Boolean,
14
+ default: !1
15
+ }
16
+ },
17
+ setup(l) {
18
+ let x = r(() => {
19
+ let e = l.message.message?.trim();
20
+ if (!e) return [];
21
+ let t = [], n = e.matchAll(new RegExp(h.source, "g")), r = 0;
22
+ for (let i of n) {
23
+ let n = i.index ?? 0;
24
+ n > r && t.push({
25
+ type: "text",
26
+ value: e.slice(r, n)
27
+ }), t.push({
28
+ type: "link",
29
+ value: i[0]
30
+ }), r = n + i[0].length;
31
+ }
32
+ return r < e.length && t.push({
33
+ type: "text",
34
+ value: e.slice(r)
35
+ }), t;
36
+ });
37
+ return (r, h) => (d(), o("div", { class: u(["ui-chat__message", { "ui-chat__message--own": l.isOwn }]) }, [s("div", g, [l.message.attachments?.length ? (d(), i(e, {
38
+ key: 0,
39
+ attachments: l.message.attachments
40
+ }, null, 8, ["attachments"])) : a("", !0), s("div", _, [x.value.length ? (d(), o("p", v, [(d(!0), o(n, null, f(x.value, (e, t) => (d(), o(n, { key: t }, [e.type === "link" ? (d(), o("a", {
41
+ key: 0,
42
+ href: e.value,
43
+ target: "_blank",
44
+ rel: "noopener noreferrer"
45
+ }, p(e.value), 9, y)) : (d(), o(n, { key: 1 }, [c(p(e.value), 1)], 64))], 64))), 128))])) : a("", !0), s("span", b, p(m(t)(l.message.created_at)), 1)])]), h[0] ||= s("svg", {
46
+ class: "ui-chat__message-tail",
47
+ xmlns: "http://www.w3.org/2000/svg",
48
+ width: "7",
49
+ height: "12",
50
+ viewBox: "0 0 7 12",
51
+ fill: "none"
52
+ }, [s("path", {
53
+ d: "M0.403418 3.2C-0.585437 1.88153 0.355327 0 2.00342 0H7.00342V12L0.403418 3.2Z",
54
+ fill: "currentColor"
55
+ })], -1)], 2));
56
+ }
57
+ });
58
+ //#endregion
59
+ export { x as t };
@@ -4,10 +4,7 @@ import { config as n } from "../config/index.js";
4
4
  import { t as r } from "./_plugin-vue_export-helper.B3ysoDQm.js";
5
5
  import { Fragment as i, Transition as a, computed as o, createBlock as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, defineComponent as d, normalizeClass as f, normalizeStyle as p, onMounted as m, onUnmounted as h, openBlock as g, ref as _, toDisplayString as v, unref as y, vShow as b, withCtx as x, withDirectives as S } from "vue";
6
6
  //#region src/lib/composables/useNotification/UiNotification.vue?vue&type=script&setup=true&lang.ts
7
- var C = { class: "ui-notification__top" }, w = ["innerHTML"], T = {
8
- key: 1,
9
- class: "ui-notification__text"
10
- }, E = /*#__PURE__*/ r(/* @__PURE__ */ d({
7
+ var C = { class: "ui-notification__top" }, w = { class: "ui-notification__text" }, T = /*#__PURE__*/ r(/* @__PURE__ */ d({
11
8
  __name: "UiNotification",
12
9
  props: {
13
10
  id: {},
@@ -15,10 +12,6 @@ var C = { class: "ui-notification__top" }, w = ["innerHTML"], T = {
15
12
  title: {},
16
13
  message: {},
17
14
  type: { default: "error" },
18
- isHTMLMessage: {
19
- type: Boolean,
20
- default: !0
21
- },
22
15
  pauseOnHover: {
23
16
  type: Boolean,
24
17
  default: !0
@@ -27,30 +20,30 @@ var C = { class: "ui-notification__top" }, w = ["innerHTML"], T = {
27
20
  },
28
21
  emits: ["remove", "delete-from-list"],
29
22
  setup(r, { emit: d }) {
30
- let E = r, D = d, O = _(!1), k = _(null), A = o(() => `top: ${E.top}px`), j = o(() => E.pauseOnHover && !t()), M = () => {
31
- D("delete-from-list", E.id), O.value = !1;
23
+ let T = r, E = d, D = _(!1), O = _(null), k = o(() => `top: ${T.top}px`), A = o(() => T.pauseOnHover && !t()), j = () => {
24
+ E("delete-from-list", T.id), D.value = !1;
25
+ }, M = () => {
26
+ O.value && clearTimeout(O.value), O.value = setTimeout(() => {
27
+ j();
28
+ }, T.duration);
32
29
  }, N = () => {
33
- k.value && clearTimeout(k.value), k.value = setTimeout(() => {
34
- M();
35
- }, E.duration);
30
+ O.value && A.value && (clearTimeout(O.value), O.value = null);
36
31
  }, P = () => {
37
- k.value && j.value && (clearTimeout(k.value), k.value = null);
38
- }, F = () => {
39
- j.value && N();
32
+ A.value && M();
40
33
  };
41
34
  return m(() => {
42
- N(), O.value = !0;
35
+ M(), D.value = !0;
43
36
  }), h(() => {
44
- k.value && clearTimeout(k.value);
37
+ O.value && clearTimeout(O.value);
45
38
  }), (t, o) => (g(), s(a, {
46
39
  name: "notification",
47
- onAfterLeave: o[0] ||= (e) => D("remove")
40
+ onAfterLeave: o[0] ||= (e) => E("remove")
48
41
  }, {
49
42
  default: x(() => [S(l("div", {
50
43
  class: "ui-notification",
51
- style: p(A.value),
52
- onMouseenter: P,
53
- onMouseleave: F
44
+ style: p(k.value),
45
+ onMouseenter: N,
46
+ onMouseleave: P
54
47
  }, [l("div", C, [r.type === "error" ? (g(), s(e, {
55
48
  key: 0,
56
49
  name: "block",
@@ -66,14 +59,10 @@ var C = { class: "ui-notification__top" }, w = ["innerHTML"], T = {
66
59
  name: "error",
67
60
  type: "400",
68
61
  color: "#B4FF29"
69
- })), l("span", { class: f(["ui-notification__title", `${r.type}`]) }, [r.title ? (g(), c(i, { key: 0 }, [u(v(r.title), 1)], 64)) : (g(), c(i, { key: 1 }, [u(v(r.type === "error" ? y(n).uiNotification.translations.error : r.type === "success" ? y(n).uiNotification.translations.success + "!" : r.title || y(n).uiNotification.translations.infoTitle), 1)], 64))], 2)]), r.isHTMLMessage ? (g(), c("div", {
70
- key: 0,
71
- innerHTML: r.message,
72
- class: "ui-notification__text"
73
- }, null, 8, w)) : (g(), c("div", T, v(r.message), 1))], 36), [[b, O.value]])]),
62
+ })), l("span", { class: f(["ui-notification__title", `${r.type}`]) }, [r.title ? (g(), c(i, { key: 0 }, [u(v(r.title), 1)], 64)) : (g(), c(i, { key: 1 }, [u(v(r.type === "error" ? y(n).uiNotification.translations.error : r.type === "success" ? y(n).uiNotification.translations.success + "!" : r.title || y(n).uiNotification.translations.infoTitle), 1)], 64))], 2)]), l("div", w, v(r.message), 1)], 36), [[b, D.value]])]),
74
63
  _: 1
75
64
  }));
76
65
  }
77
- }), [["__scopeId", "data-v-cc45d12a"]]);
66
+ }), [["__scopeId", "data-v-98fb8648"]]);
78
67
  //#endregion
79
- export { E as t };
68
+ export { T as t };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./UiIcon.iHypdpWu.js";
2
2
  import { config as t } from "../config/index.js";
3
- import { t as n } from "./UiSelect.CBOQXkNp.js";
3
+ import { t as n } from "./UiSelect.DBnwUWeq.js";
4
4
  import r from "../components/UiPagination/components/IconArrow.js";
5
5
  import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeModels as f, openBlock as p, toDisplayString as m, unref as h, useModel as g } from "vue";
6
6
  //#region src/lib/components/UiPagination/UiPagination.vue?vue&type=script&setup=true&lang.ts
@@ -0,0 +1,349 @@
1
+ import { t as e } from "./UiIcon.iHypdpWu.js";
2
+ import { t } from "./UiLoading.C1fW2N3T.js";
3
+ import { config as n } from "../config/index.js";
4
+ import { t as r } from "./SelectList.DfsXkDPU.js";
5
+ import { t as i } from "./SelectListItem.C3KlnrwK.js";
6
+ import { t as ee } from "./SelectSearch.D39QhMF3.js";
7
+ import { t as te } from "./SelectTrigger.CoKjmQFU.js";
8
+ import { t as ne } from "./SelectVirtualList.BKZFHrk3.js";
9
+ import { t as re } from "./UiDropdown.Dg0XSpN8.js";
10
+ import { useKeyboard as a } from "../components/UiSelect/composables/useKeyboard.js";
11
+ import { useMultiple as o } from "../components/UiSelect/composables/useMultiple.js";
12
+ import { Fragment as ie, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, mergeModels as h, nextTick as g, normalizeClass as _, openBlock as v, ref as y, renderList as ae, renderSlot as b, toDisplayString as x, unref as S, useModel as C, watch as w, withCtx as T, withKeys as oe, withModifiers as E } from "vue";
13
+ //#region src/lib/components/UiSelect/UiSelect.vue?vue&type=script&setup=true&lang.ts
14
+ var se = ["disabled", "id"], ce = ["title"], le = {
15
+ key: 0,
16
+ class: "ui-select__header"
17
+ }, ue = {
18
+ key: 3,
19
+ class: "ui-select__no-data-block"
20
+ }, de = {
21
+ key: 6,
22
+ class: "ui-select__footer"
23
+ }, D = /* @__PURE__ */ m({
24
+ __name: "UiSelect",
25
+ props: /*@__PURE__*/ h({
26
+ options: { default: () => [] },
27
+ valueKey: { default: "value" },
28
+ labelKey: { default: "label" },
29
+ asObject: { type: Boolean },
30
+ type: { default: "outside" },
31
+ size: { default: "md" },
32
+ error: { type: Boolean },
33
+ filled: { type: Boolean },
34
+ disabled: { type: Boolean },
35
+ placeholder: {},
36
+ withSearch: { type: Boolean },
37
+ clearable: { type: Boolean },
38
+ loading: {
39
+ type: Boolean,
40
+ default: !1
41
+ },
42
+ id: {},
43
+ multiple: { type: Boolean },
44
+ itemSize: { default: "sm" },
45
+ popperClass: {},
46
+ fitContentWidth: {
47
+ type: Boolean,
48
+ default: !0
49
+ },
50
+ offset: {
51
+ type: [
52
+ Number,
53
+ Object,
54
+ Function
55
+ ],
56
+ default: 1
57
+ },
58
+ placement: { default: "bottom" },
59
+ readonly: { type: Boolean },
60
+ teleport: {
61
+ type: [String, Boolean],
62
+ default: "body"
63
+ },
64
+ isVirtualList: {
65
+ type: Boolean,
66
+ default: !1
67
+ },
68
+ customSearch: {
69
+ type: Boolean,
70
+ default: !1
71
+ },
72
+ chevronName: { default: "keyboard-arrow-down" },
73
+ chevronColor: { default: "intherit" },
74
+ chevronSize: { default: "md" },
75
+ optionClass: {},
76
+ searchFn: {}
77
+ }, {
78
+ modelValue: { default: null },
79
+ modelModifiers: {},
80
+ isOpen: {
81
+ type: Boolean,
82
+ default: !1
83
+ },
84
+ isOpenModifiers: {}
85
+ }),
86
+ emits: /*@__PURE__*/ h([
87
+ "change",
88
+ "clear",
89
+ "changeInfinityScroll",
90
+ "search",
91
+ "onClose"
92
+ ], ["update:modelValue", "update:isOpen"]),
93
+ setup(m, { emit: h }) {
94
+ let D = h, O = m, k = C(m, "modelValue"), A = C(m, "isOpen"), j = y(!1), M = y(""), N = y(), P = y(), F = y(null), I = y(null), L = s(() => O.disabled || O.readonly), R = s(() => O.options.length && typeof O.options[0] != "object"), fe = s(() => n.uiSelect.translations.notFound && !V.value.length), z = s(() => Array.isArray(k.value) ? !!k.value.length : !!k.value), B = s(() => {
95
+ if (O.multiple && Array.isArray(k.value) && k.value.length) return `${n.uiSelect.translations.multipleSelectedText} ${k.value.length}`;
96
+ let e = Y(k.value);
97
+ return R.value ? e : e?.[O.labelKey];
98
+ }), V = s(() => O.customSearch || !M.value ? O.options : O.searchFn ? O.searchFn(M.value) : O.options.filter((e) => {
99
+ let t = R.value ? e : e?.[O.labelKey];
100
+ return String(t).toLowerCase().includes(M.value.toLowerCase());
101
+ })), { onKeydown: H, navigatedIndex: U, firstSelectableIndex: W, lastSelectableIndex: pe } = a({
102
+ isOpen: A,
103
+ isDisabled: L,
104
+ checkOption: G,
105
+ filteredOptions: V,
106
+ isOptionDisabled: q,
107
+ open: ve
108
+ }), { setModelValueItem: me } = o(k);
109
+ function G(e) {
110
+ e.disabled || (O.multiple && Array.isArray(k.value) ? me(J(e)) : (k.value = J(e), Q(), N.value.close()), D("change"));
111
+ }
112
+ function K(e) {
113
+ return O.multiple && Array.isArray(k.value) ? k.value.includes(J(e)) : k.value === J(e);
114
+ }
115
+ function q(e) {
116
+ return e.disabled;
117
+ }
118
+ function J(e) {
119
+ return R.value || O.asObject ? e : e?.[O.valueKey];
120
+ }
121
+ function Y(e) {
122
+ return e ? O.options.find((t) => R.value ? t === e : O.asObject ? t?.[O.valueKey] === e?.[O.valueKey] : t?.[O.valueKey] === e) : null;
123
+ }
124
+ function X(e) {
125
+ U.value = e;
126
+ }
127
+ function Z() {
128
+ U.value = null;
129
+ }
130
+ function he() {
131
+ k.value = O.multiple ? [] : null, D("clear");
132
+ }
133
+ function ge() {
134
+ L.value || ($(), N.value.open());
135
+ }
136
+ function _e() {
137
+ Q(), N.value.close(), P.value?.blur();
138
+ }
139
+ function ve(e = !1) {
140
+ L.value || ($(e), N.value.open());
141
+ }
142
+ function Q() {
143
+ M.value = "", D("search", M.value), D("onClose"), U.value = null, j.value = !1;
144
+ }
145
+ function $(e = !1) {
146
+ if (e) U.value = pe();
147
+ else {
148
+ let e = V.value.findIndex((e) => K(e) && !q(e));
149
+ U.value = e === -1 ? W() : e;
150
+ }
151
+ P.value?.focus(), j.value = !0, ye();
152
+ }
153
+ async function ye() {
154
+ await g(), O.isVirtualList && U.value !== null && (I.value?.scrollToItem(U.value), await g());
155
+ let e = F.value?.querySelector("[data-highlighted='true']"), t = e?.closest(".ui-select__options-list-wrapper");
156
+ if (!(t instanceof HTMLElement) || !e) return;
157
+ let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
158
+ r.top < n.top ? t.scrollTop -= n.top - r.top : r.bottom > n.bottom && (t.scrollTop += r.bottom - n.bottom);
159
+ }
160
+ return w(U, () => {
161
+ A.value && U.value !== null && ye();
162
+ }), w(M, () => {
163
+ A.value && j.value && (U.value = W());
164
+ }), (a, o) => (v(), u("div", {
165
+ class: _(["ui-select__wrapper", [{ "is-disabled": O.disabled }]]),
166
+ onKeydown: [o[7] ||= (...e) => S(H) && S(H)(...e), oe(_e, ["tab"])]
167
+ }, [d("input", {
168
+ inputmode: "none",
169
+ ref_key: "inputRef",
170
+ ref: P,
171
+ disabled: m.disabled,
172
+ id: m.id,
173
+ class: "ui-select__input",
174
+ onFocus: ge
175
+ }, null, 40, se), p(re, {
176
+ modelValue: A.value,
177
+ "onUpdate:modelValue": o[5] ||= (e) => A.value = e,
178
+ offset: m.offset,
179
+ ref_key: "dropdownRef",
180
+ ref: N,
181
+ onClose: Q,
182
+ onOpen: o[6] ||= () => $(),
183
+ "popper-class": [m.popperClass ?? "", "ui-select__popper"],
184
+ "fit-content-width": m.fitContentWidth,
185
+ disabled: L.value,
186
+ placement: m.placement,
187
+ teleport: m.teleport
188
+ }, {
189
+ reference: T(() => [d("div", { class: _(["ui-select", [
190
+ m.size,
191
+ { "is-focus": j.value },
192
+ { "is-error": O.error },
193
+ { "is-filled": O.filled },
194
+ { "is-has-value": z.value },
195
+ `type-${m.type}`
196
+ ]]) }, [p(te, {
197
+ clearable: !!m.clearable,
198
+ isFocus: j.value,
199
+ "is-has-value": z.value,
200
+ "is-active": z.value,
201
+ type: m.type,
202
+ placeholder: m.placeholder,
203
+ "chevron-color": m.chevronColor,
204
+ "chevron-name": m.chevronName,
205
+ "chevron-size": m.chevronSize,
206
+ onClear: he
207
+ }, {
208
+ default: T(() => [b(a.$slots, "selected", { option: m.multiple ? k.value : Y(k.value) }, () => [B.value ? (v(), u("span", {
209
+ key: 0,
210
+ title: B.value
211
+ }, x(B.value), 9, ce)) : l("", !0)])]),
212
+ _: 3
213
+ }, 8, [
214
+ "clearable",
215
+ "isFocus",
216
+ "is-has-value",
217
+ "is-active",
218
+ "type",
219
+ "placeholder",
220
+ "chevron-color",
221
+ "chevron-name",
222
+ "chevron-size"
223
+ ])], 2)]),
224
+ default: T(() => [d("div", {
225
+ ref_key: "contentRef",
226
+ ref: F,
227
+ class: "ui-select__content",
228
+ onKeydown: o[4] ||= (...e) => S(H) && S(H)(...e)
229
+ }, [
230
+ a.$slots.header ? (v(), u("div", le, [b(a.$slots, "header")])) : l("", !0),
231
+ m.loading && !m.options.length && !M.value ? (v(), c(t, {
232
+ key: 1,
233
+ "icon-size": "xl",
234
+ class: "ui-select__loading-inner",
235
+ "is-show": ""
236
+ })) : l("", !0),
237
+ O.withSearch ? (v(), c(ee, {
238
+ key: 2,
239
+ "onUpdate:modelValue": [o[0] ||= (e) => a.$emit("search", e ?? ""), o[1] ||= (e) => M.value = e],
240
+ modelValue: M.value
241
+ }, null, 8, ["modelValue"])) : l("", !0),
242
+ fe.value ? (v(), u("div", ue, [d("p", null, x(S(n).uiSelect.translations.notFound), 1)])) : l("", !0),
243
+ m.isVirtualList ? (v(), c(ne, {
244
+ key: 4,
245
+ ref_key: "virtualListRef",
246
+ ref: I,
247
+ onChangeInfinityScroll: o[2] ||= (e) => a.$emit("changeInfinityScroll"),
248
+ size: m.itemSize,
249
+ options: V.value,
250
+ "is-loading": m.loading
251
+ }, {
252
+ default: T(({ item: t }) => [(v(), c(i, {
253
+ class: _(m.optionClass && m.optionClass(t.option, t.index)),
254
+ key: t.index,
255
+ size: m.itemSize,
256
+ "is-navigated": S(U) === t.index,
257
+ "is-checked": K(t.option),
258
+ "is-disabled": q(t.option),
259
+ onClick: E((e) => G(t.option), ["prevent"]),
260
+ onMouseenter: (e) => X(t.index),
261
+ onMouseleave: Z,
262
+ title: R.value ? t.option : t.option[m.labelKey]
263
+ }, {
264
+ default: T(() => [d("span", null, [b(a.$slots, "default", {
265
+ option: t.option,
266
+ checked: K(t.option)
267
+ }, () => [f(x(R.value ? t.option : t.option[m.labelKey]), 1)])]), K(t.option) ? (v(), c(e, {
268
+ key: 0,
269
+ color: "var(--color-icon-accent)",
270
+ type: "400",
271
+ name: "done"
272
+ })) : l("", !0)]),
273
+ _: 2
274
+ }, 1032, [
275
+ "class",
276
+ "size",
277
+ "is-navigated",
278
+ "is-checked",
279
+ "is-disabled",
280
+ "onClick",
281
+ "onMouseenter",
282
+ "title"
283
+ ]))]),
284
+ _: 3
285
+ }, 8, [
286
+ "size",
287
+ "options",
288
+ "is-loading"
289
+ ])) : (v(), c(r, {
290
+ key: 5,
291
+ onChangeInfinityScroll: o[3] ||= (e) => a.$emit("changeInfinityScroll"),
292
+ search: M.value,
293
+ size: m.itemSize,
294
+ options: V.value
295
+ }, {
296
+ default: T(({ options: t }) => [(v(!0), u(ie, null, ae(t, ({ index: t, data: n }) => (v(), c(i, {
297
+ class: _(m.optionClass && m.optionClass(n, t)),
298
+ key: t,
299
+ size: m.itemSize,
300
+ "is-navigated": S(U) === t,
301
+ "is-checked": K(n),
302
+ "is-disabled": q(n),
303
+ onClick: E((e) => G(n), ["prevent"]),
304
+ onMouseenter: (e) => X(t),
305
+ onMouseleave: Z,
306
+ title: R.value ? n : n[m.labelKey]
307
+ }, {
308
+ default: T(() => [d("span", null, [b(a.$slots, "default", {
309
+ option: n,
310
+ checked: K(n)
311
+ }, () => [f(x(R.value ? n : n[m.labelKey]), 1)])]), K(n) ? (v(), c(e, {
312
+ key: 0,
313
+ color: "var(--color-icon-accent)",
314
+ type: "400",
315
+ name: "done"
316
+ })) : l("", !0)]),
317
+ _: 2
318
+ }, 1032, [
319
+ "class",
320
+ "size",
321
+ "is-navigated",
322
+ "is-checked",
323
+ "is-disabled",
324
+ "onClick",
325
+ "onMouseenter",
326
+ "title"
327
+ ]))), 128))]),
328
+ _: 3
329
+ }, 8, [
330
+ "search",
331
+ "size",
332
+ "options"
333
+ ])),
334
+ a.$slots.footer ? (v(), u("div", de, [b(a.$slots, "footer")])) : l("", !0)
335
+ ], 544)]),
336
+ _: 3
337
+ }, 8, [
338
+ "modelValue",
339
+ "offset",
340
+ "popper-class",
341
+ "fit-content-width",
342
+ "disabled",
343
+ "placement",
344
+ "teleport"
345
+ ])], 34));
346
+ }
347
+ });
348
+ //#endregion
349
+ export { D as t };
@@ -3,7 +3,7 @@ import { config as t } from "../config/index.js";
3
3
  import { t as n } from "./UiSkeleton.Gw5aX0E-.js";
4
4
  import { t as r } from "./UiCheckbox.DcHqX1WC.js";
5
5
  import { t as i } from "./dist.l1zr5gfb.js";
6
- import { t as a } from "./UiPagination.2XvUpFoX.js";
6
+ import { t as a } from "./UiPagination.DpV3wFEW.js";
7
7
  import { t as ee } from "./TableEmptyState.DmZaFgND.js";
8
8
  import { t as te } from "./TableSort.CKgp16-1.js";
9
9
  import { getValueByHeaderName as ne } from "../components/UiTable/helpers/getValueByHeaderName.js";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../assets/UiChat.DgUnWoCI.js";
1
+ import { t as e } from "../../assets/UiChat.BTOPlRp-.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../assets/UiChatHeader.CXBBEiuH.js";
1
+ import { t as e } from "../../assets/UiChatHeader.tNXu72JW.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../assets/UiChatMessage.7AQRFKRA.js";
1
+ import { t as e } from "../../assets/UiChatMessage.BgjgEgkc.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../assets/UiPagination.2XvUpFoX.js";
1
+ import { t as e } from "../../assets/UiPagination.DpV3wFEW.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../assets/UiSelect.CBOQXkNp.js";
1
+ import { t as e } from "../../assets/UiSelect.DBnwUWeq.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../assets/SelectListItem.CjXmHYbp.js";
1
+ import { t as e } from "../../../assets/SelectListItem.C3KlnrwK.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../assets/SelectVirtualList.C8ZTNnx8.js";
1
+ import { t as e } from "../../../assets/SelectVirtualList.BKZFHrk3.js";
2
2
  export { e as default };
@@ -9,7 +9,9 @@ declare const __VLS_export: <Options>(__VLS_props: NonNullable<Awaited<typeof __
9
9
  }> & (typeof globalThis extends {
10
10
  __VLS_PROPS_FALLBACK: infer P;
11
11
  } ? P : {});
12
- expose: (exposed: {}) => void;
12
+ expose: (exposed: import('vue').ShallowUnwrapRef<{
13
+ scrollToItem(index: number): void;
14
+ }>) => void;
13
15
  attrs: any;
14
16
  slots: {
15
17
  default?: (props: {