@dv.net/ui-kit 7.7.21 → 7.7.23

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 (30) 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.C8yIOFl6.js → UiChat.Bzq1rIIj.js} +1 -1
  4. package/dist/assets/{UiChatHeader.CXBBEiuH.js → UiChatHeader.DPDnVuml.js} +1 -1
  5. package/dist/assets/UiDropdown.dordvCUy.js +142 -0
  6. package/dist/assets/{UiPagination.2XvUpFoX.js → UiPagination.7HNbPhvg.js} +1 -1
  7. package/dist/assets/{UiProfileMenu.DabRebk0.js → UiProfileMenu.Daxkis6-.js} +1 -1
  8. package/dist/assets/UiSelect.CF7NEAzH.js +350 -0
  9. package/dist/assets/{UiTable.B0Yoq7JZ.js → UiTable.pKt1Al8E.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/UiDropdown/UiDropdown.js +1 -1
  13. package/dist/components/UiDropdown/UiDropdown.vue.d.ts +1 -0
  14. package/dist/components/UiDropdown/composables/useKeyboard.d.ts +12 -0
  15. package/dist/components/UiDropdown/composables/useKeyboard.js +73 -0
  16. package/dist/components/UiDropdown/types.d.ts +1 -0
  17. package/dist/components/UiPagination/UiPagination.js +1 -1
  18. package/dist/components/UiProfileMenu/UiProfileMenu.js +1 -1
  19. package/dist/components/UiSelect/UiSelect.js +1 -1
  20. package/dist/components/UiSelect/components/SelectListItem.js +1 -1
  21. package/dist/components/UiSelect/components/SelectVirtualList.js +1 -1
  22. package/dist/components/UiSelect/components/SelectVirtualList.vue.d.ts +3 -1
  23. package/dist/components/UiSelect/composables/useKeyboard.d.ts +8 -5
  24. package/dist/components/UiSelect/composables/useKeyboard.js +43 -12
  25. package/dist/components/UiTable/UiTable.js +1 -1
  26. package/dist/index.js +6 -6
  27. package/dist/style.css +1 -1
  28. package/package.json +1 -1
  29. package/dist/assets/UiDropdown.Dg0XSpN8.js +0 -122
  30. 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,7 +2,7 @@ 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.DPDnVuml.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
8
  import { t as u } from "./UiChatMessage.BgjgEgkc.js";
@@ -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.CF7NEAzH.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,142 @@
1
+ import { t as e } from "./UiIcon.iHypdpWu.js";
2
+ import { a as t, t as n } from "./dist.Djg8q2_N.js";
3
+ import { a as r, i, n as a, o, s } from "./floating-ui.dom.CaQOX_Ez.js";
4
+ import { n as c } from "./floating-ui.vue.DvnT8fZC.js";
5
+ import { isMobileDevice as l } from "../helpers/is-mobile-device.js";
6
+ import { useKeyboard as u } from "../components/UiDropdown/composables/useKeyboard.js";
7
+ import { Teleport as d, Transition as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as v, defineComponent as y, mergeModels as b, nextTick as x, normalizeClass as S, normalizeStyle as C, openBlock as w, ref as T, renderSlot as E, unref as D, useCssVars as O, useModel as k, watch as A, withCtx as j } from "vue";
8
+ //#region src/lib/components/UiDropdown/UiDropdown.vue?vue&type=script&setup=true&lang.ts
9
+ var M = ["tabindex"], N = /* @__PURE__ */ y({
10
+ __name: "UiDropdown",
11
+ props: /*@__PURE__*/ b({
12
+ popperClass: {},
13
+ offset: {},
14
+ disabled: { type: Boolean },
15
+ trigger: { default: "click" },
16
+ fitContentWidth: {
17
+ type: Boolean,
18
+ default: !0
19
+ },
20
+ placement: { default: "bottom-start" },
21
+ teleport: {
22
+ type: [String, Boolean],
23
+ default: "body"
24
+ },
25
+ mode: {},
26
+ tabindex: { default: 0 }
27
+ }, {
28
+ modelValue: {
29
+ type: Boolean,
30
+ default: !1
31
+ },
32
+ modelModifiers: {}
33
+ }),
34
+ emits: /*@__PURE__*/ b(["close", "open"], ["update:modelValue"]),
35
+ setup(y, { expose: b, emit: N }) {
36
+ O((e) => ({ e1cb0da0: V.value }));
37
+ let P = N, F = y, I = k(y, "modelValue"), L = T(null), R = T(null), z = T(!1), B = p(() => !!F.disabled), V = T(""), { width: H } = t(), { x: U, y: W } = c(L, R, {
38
+ whileElementsMounted: a,
39
+ placement: F.placement,
40
+ middleware: [
41
+ r(F.offset),
42
+ s({ apply({ availableHeight: e, elements: t }) {
43
+ Object.assign(t.floating.style, { maxHeight: `${Math.max(300, e)}px` });
44
+ } }),
45
+ i({ fallbackStrategy: "initialPlacement" }),
46
+ o()
47
+ ]
48
+ });
49
+ n(L, () => {
50
+ I.value && X();
51
+ }, { ignore: [R] }), b({
52
+ open: Y,
53
+ close: X
54
+ });
55
+ let G = p(() => ({
56
+ top: W.value == null ? "" : `${W.value}px`,
57
+ left: U.value == null ? "" : `${U.value}px`
58
+ }));
59
+ function K() {
60
+ V.value = (L.value?.clientWidth ?? 0) + "px";
61
+ }
62
+ function q(e) {
63
+ if (l() && F.trigger == "hover" && e === "mouseenter") {
64
+ J();
65
+ return;
66
+ }
67
+ if (F.trigger === "click") {
68
+ if (e !== "click") return;
69
+ J();
70
+ return;
71
+ }
72
+ if (e === "mouseenter") {
73
+ J();
74
+ return;
75
+ }
76
+ e === "mouseleave" && J();
77
+ }
78
+ function J() {
79
+ I.value ? X() : Y();
80
+ }
81
+ function Y() {
82
+ I.value = !0, P("open");
83
+ }
84
+ function X() {
85
+ I.value = !1, P("close");
86
+ }
87
+ function Z(e = !1) {
88
+ B.value || (z.value = e, Y());
89
+ }
90
+ let { onKeydown: Q, clearHighlight: $, setInitialHighlight: ee } = u({
91
+ isOpen: I,
92
+ isDisabled: B,
93
+ open: Z,
94
+ getRoot: () => R.value
95
+ });
96
+ return A([I, H], K), A(I, (e) => {
97
+ if (!e) {
98
+ $();
99
+ return;
100
+ }
101
+ let t = z.value;
102
+ z.value = !1, x(() => ee(t));
103
+ }), (t, n) => (w(), g("div", {
104
+ ref_key: "dropdownRef",
105
+ ref: L,
106
+ class: "ui-dropdown",
107
+ onKeydown: n[4] ||= (...e) => D(Q) && D(Q)(...e)
108
+ }, [_("div", {
109
+ class: S(["ui-dropdown__trigger", [{
110
+ "click-event": y.trigger === "click",
111
+ "is-disabled": y.disabled
112
+ }, `mode-${y.mode}`]]),
113
+ tabindex: y.disabled ? -1 : y.tabindex,
114
+ onMouseenter: n[0] ||= (e) => q("mouseenter"),
115
+ onMouseleave: n[1] ||= (e) => q("mouseleave"),
116
+ onClick: n[2] ||= (e) => q("click")
117
+ }, [E(t.$slots, "reference"), y.mode === "custom" ? (w(), m(e, {
118
+ key: 0,
119
+ class: S(["ui-dropdown__trigger-arrow", { rotate: I.value }]),
120
+ type: "400",
121
+ name: "keyboard-arrow-down"
122
+ }, null, 8, ["class"])) : h("", !0)], 42, M), (w(), m(d, {
123
+ disabled: !y.teleport,
124
+ to: typeof y.teleport == "string" ? y.teleport : "body"
125
+ }, [_("div", {
126
+ class: S([[y.popperClass, { "is-show": I.value }], "ui-dropdown__content-wrapper"]),
127
+ style: C(G.value),
128
+ ref_key: "contentRefer",
129
+ ref: R,
130
+ role: "tooltip"
131
+ }, [v(f, { name: "dropdown" }, {
132
+ default: j(() => [I.value ? (w(), g("div", {
133
+ key: 0,
134
+ class: S(["ui-dropdown__content", { "is-fit": y.fitContentWidth }]),
135
+ onKeydown: n[3] ||= (...e) => D(Q) && D(Q)(...e)
136
+ }, [E(t.$slots, "default")], 34)) : h("", !0)]),
137
+ _: 3
138
+ })], 6)], 8, ["disabled", "to"]))], 544));
139
+ }
140
+ });
141
+ //#endregion
142
+ export { N 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.CF7NEAzH.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
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./UiAvatar.D1ZMAvqR.js";
2
- import { t } from "./UiDropdown.Dg0XSpN8.js";
2
+ import { t } from "./UiDropdown.dordvCUy.js";
3
3
  import { t as n } from "./UiProfileMenuItem.DCsf7PuN.js";
4
4
  import { Fragment as r, computed as i, createBlock as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, mergeModels as u, normalizeClass as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h, useModel as g, withCtx as _ } from "vue";
5
5
  //#region src/lib/components/UiProfileMenu/UiProfileMenu.vue?vue&type=script&setup=true&lang.ts
@@ -0,0 +1,350 @@
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.dordvCUy.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
+ tabindex: -1
189
+ }, {
190
+ reference: T(() => [d("div", { class: _(["ui-select", [
191
+ m.size,
192
+ { "is-focus": j.value },
193
+ { "is-error": O.error },
194
+ { "is-filled": O.filled },
195
+ { "is-has-value": z.value },
196
+ `type-${m.type}`
197
+ ]]) }, [p(te, {
198
+ clearable: !!m.clearable,
199
+ isFocus: j.value,
200
+ "is-has-value": z.value,
201
+ "is-active": z.value,
202
+ type: m.type,
203
+ placeholder: m.placeholder,
204
+ "chevron-color": m.chevronColor,
205
+ "chevron-name": m.chevronName,
206
+ "chevron-size": m.chevronSize,
207
+ onClear: he
208
+ }, {
209
+ default: T(() => [b(a.$slots, "selected", { option: m.multiple ? k.value : Y(k.value) }, () => [B.value ? (v(), u("span", {
210
+ key: 0,
211
+ title: B.value
212
+ }, x(B.value), 9, ce)) : l("", !0)])]),
213
+ _: 3
214
+ }, 8, [
215
+ "clearable",
216
+ "isFocus",
217
+ "is-has-value",
218
+ "is-active",
219
+ "type",
220
+ "placeholder",
221
+ "chevron-color",
222
+ "chevron-name",
223
+ "chevron-size"
224
+ ])], 2)]),
225
+ default: T(() => [d("div", {
226
+ ref_key: "contentRef",
227
+ ref: F,
228
+ class: "ui-select__content",
229
+ onKeydown: o[4] ||= (...e) => S(H) && S(H)(...e)
230
+ }, [
231
+ a.$slots.header ? (v(), u("div", le, [b(a.$slots, "header")])) : l("", !0),
232
+ m.loading && !m.options.length && !M.value ? (v(), c(t, {
233
+ key: 1,
234
+ "icon-size": "xl",
235
+ class: "ui-select__loading-inner",
236
+ "is-show": ""
237
+ })) : l("", !0),
238
+ O.withSearch ? (v(), c(ee, {
239
+ key: 2,
240
+ "onUpdate:modelValue": [o[0] ||= (e) => a.$emit("search", e ?? ""), o[1] ||= (e) => M.value = e],
241
+ modelValue: M.value
242
+ }, null, 8, ["modelValue"])) : l("", !0),
243
+ fe.value ? (v(), u("div", ue, [d("p", null, x(S(n).uiSelect.translations.notFound), 1)])) : l("", !0),
244
+ m.isVirtualList ? (v(), c(ne, {
245
+ key: 4,
246
+ ref_key: "virtualListRef",
247
+ ref: I,
248
+ onChangeInfinityScroll: o[2] ||= (e) => a.$emit("changeInfinityScroll"),
249
+ size: m.itemSize,
250
+ options: V.value,
251
+ "is-loading": m.loading
252
+ }, {
253
+ default: T(({ item: t }) => [(v(), c(i, {
254
+ class: _(m.optionClass && m.optionClass(t.option, t.index)),
255
+ key: t.index,
256
+ size: m.itemSize,
257
+ "is-navigated": S(U) === t.index,
258
+ "is-checked": K(t.option),
259
+ "is-disabled": q(t.option),
260
+ onClick: E((e) => G(t.option), ["prevent"]),
261
+ onMouseenter: (e) => X(t.index),
262
+ onMouseleave: Z,
263
+ title: R.value ? t.option : t.option[m.labelKey]
264
+ }, {
265
+ default: T(() => [d("span", null, [b(a.$slots, "default", {
266
+ option: t.option,
267
+ checked: K(t.option)
268
+ }, () => [f(x(R.value ? t.option : t.option[m.labelKey]), 1)])]), K(t.option) ? (v(), c(e, {
269
+ key: 0,
270
+ color: "var(--color-icon-accent)",
271
+ type: "400",
272
+ name: "done"
273
+ })) : l("", !0)]),
274
+ _: 2
275
+ }, 1032, [
276
+ "class",
277
+ "size",
278
+ "is-navigated",
279
+ "is-checked",
280
+ "is-disabled",
281
+ "onClick",
282
+ "onMouseenter",
283
+ "title"
284
+ ]))]),
285
+ _: 3
286
+ }, 8, [
287
+ "size",
288
+ "options",
289
+ "is-loading"
290
+ ])) : (v(), c(r, {
291
+ key: 5,
292
+ onChangeInfinityScroll: o[3] ||= (e) => a.$emit("changeInfinityScroll"),
293
+ search: M.value,
294
+ size: m.itemSize,
295
+ options: V.value
296
+ }, {
297
+ default: T(({ options: t }) => [(v(!0), u(ie, null, ae(t, ({ index: t, data: n }) => (v(), c(i, {
298
+ class: _(m.optionClass && m.optionClass(n, t)),
299
+ key: t,
300
+ size: m.itemSize,
301
+ "is-navigated": S(U) === t,
302
+ "is-checked": K(n),
303
+ "is-disabled": q(n),
304
+ onClick: E((e) => G(n), ["prevent"]),
305
+ onMouseenter: (e) => X(t),
306
+ onMouseleave: Z,
307
+ title: R.value ? n : n[m.labelKey]
308
+ }, {
309
+ default: T(() => [d("span", null, [b(a.$slots, "default", {
310
+ option: n,
311
+ checked: K(n)
312
+ }, () => [f(x(R.value ? n : n[m.labelKey]), 1)])]), K(n) ? (v(), c(e, {
313
+ key: 0,
314
+ color: "var(--color-icon-accent)",
315
+ type: "400",
316
+ name: "done"
317
+ })) : l("", !0)]),
318
+ _: 2
319
+ }, 1032, [
320
+ "class",
321
+ "size",
322
+ "is-navigated",
323
+ "is-checked",
324
+ "is-disabled",
325
+ "onClick",
326
+ "onMouseenter",
327
+ "title"
328
+ ]))), 128))]),
329
+ _: 3
330
+ }, 8, [
331
+ "search",
332
+ "size",
333
+ "options"
334
+ ])),
335
+ a.$slots.footer ? (v(), u("div", de, [b(a.$slots, "footer")])) : l("", !0)
336
+ ], 544)]),
337
+ _: 3
338
+ }, 8, [
339
+ "modelValue",
340
+ "offset",
341
+ "popper-class",
342
+ "fit-content-width",
343
+ "disabled",
344
+ "placement",
345
+ "teleport"
346
+ ])], 34));
347
+ }
348
+ });
349
+ //#endregion
350
+ 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.7HNbPhvg.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.C8yIOFl6.js";
1
+ import { t as e } from "../../assets/UiChat.Bzq1rIIj.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.DPDnVuml.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../assets/UiDropdown.Dg0XSpN8.js";
1
+ import { t as e } from "../../assets/UiDropdown.dordvCUy.js";
2
2
  export { e as default };
@@ -21,6 +21,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
21
21
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
22
22
  }>, {
23
23
  teleport: string | boolean;
24
+ tabindex: number;
24
25
  placement: import('../UiTooltip/types').UiPlacementType;
25
26
  trigger: import('./types').UiDropdownTrigger;
26
27
  fitContentWidth: boolean;
@@ -0,0 +1,12 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ export declare function useKeyboard({ isOpen, isDisabled, open, getRoot }: {
3
+ isOpen: Ref<boolean>;
4
+ isDisabled: ComputedRef<boolean>;
5
+ open: (preferEnd?: boolean) => void;
6
+ getRoot: () => HTMLElement | null;
7
+ }): {
8
+ onKeydown: (event: KeyboardEvent) => void;
9
+ navigatedIndex: Ref<number | null, number | null>;
10
+ clearHighlight: () => void;
11
+ setInitialHighlight: (preferEnd?: boolean) => void;
12
+ };