@quidgest/ui 0.13.3 → 0.14.1

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 (187) hide show
  1. package/dist/manifest/components.json +4 -0
  2. package/dist/ui.css +81 -0
  3. package/dist/ui.esm.js +1163 -935
  4. package/dist/ui.js +6 -6
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +110 -101
  7. package/dist/ui.scss +1059 -973
  8. package/esm/components/QBadge/QBadge.d.ts +16 -68
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  10. package/esm/components/QBadge/QBadge.vue.js +29 -32
  11. package/esm/components/QBadge/index.d.ts +2 -139
  12. package/esm/components/QBadge/index.d.ts.map +1 -1
  13. package/esm/components/QBadge/types.d.ts +29 -0
  14. package/esm/components/QBadge/types.d.ts.map +1 -0
  15. package/esm/components/QBadge/types.js +8 -0
  16. package/esm/components/QButton/QButton.d.ts +15 -80
  17. package/esm/components/QButton/QButton.d.ts.map +1 -1
  18. package/esm/components/QButton/index.d.ts +3 -198
  19. package/esm/components/QButton/index.d.ts.map +1 -1
  20. package/esm/components/QButton/types.d.ts +47 -0
  21. package/esm/components/QButton/types.d.ts.map +1 -0
  22. package/esm/components/QButtonGroup/QButtonGroup.d.ts +11 -42
  23. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  24. package/esm/components/QButtonGroup/index.d.ts +2 -79
  25. package/esm/components/QButtonGroup/index.d.ts.map +1 -1
  26. package/esm/components/QButtonGroup/types.d.ts +19 -0
  27. package/esm/components/QButtonGroup/types.d.ts.map +1 -0
  28. package/esm/components/QButtonToggle/QButtonToggle.d.ts +16 -73
  29. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  30. package/esm/components/QButtonToggle/index.d.ts +2 -115
  31. package/esm/components/QButtonToggle/index.d.ts.map +1 -1
  32. package/esm/components/QButtonToggle/types.d.ts +32 -0
  33. package/esm/components/QButtonToggle/types.d.ts.map +1 -0
  34. package/esm/components/QCombobox/QCombobox.d.ts +445 -435
  35. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  36. package/esm/components/QCombobox/QCombobox.vue.js +121 -126
  37. package/esm/components/QCombobox/index.d.ts +2 -1075
  38. package/esm/components/QCombobox/index.d.ts.map +1 -1
  39. package/esm/components/QCombobox/types.d.ts +93 -0
  40. package/esm/components/QCombobox/types.d.ts.map +1 -0
  41. package/esm/components/QCombobox/types.js +16 -0
  42. package/esm/components/QDialog/QDialog.d.ts +23 -186
  43. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  44. package/esm/components/QDialog/QDialog.vue.js +48 -64
  45. package/esm/components/QDialog/index.d.ts +3 -268
  46. package/esm/components/QDialog/index.d.ts.map +1 -1
  47. package/esm/components/QDialog/types.d.ts +80 -0
  48. package/esm/components/QDialog/types.d.ts.map +1 -0
  49. package/esm/components/QDialog/types.js +23 -0
  50. package/esm/components/QField/QField.d.ts +22 -77
  51. package/esm/components/QField/QField.d.ts.map +1 -1
  52. package/esm/components/QField/index.d.ts +3 -169
  53. package/esm/components/QField/index.d.ts.map +1 -1
  54. package/esm/components/QField/types.d.ts +37 -0
  55. package/esm/components/QField/types.d.ts.map +1 -0
  56. package/esm/components/QIcon/InlineSvg.d.ts +6 -6
  57. package/esm/components/QIcon/InlineSvg.d.ts.map +1 -1
  58. package/esm/components/QIcon/InlineSvg.js +6 -13
  59. package/esm/components/QIcon/QIcon.d.ts +4 -46
  60. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  61. package/esm/components/QIcon/QIcon.vue.js +2 -2
  62. package/esm/components/QIcon/QIconFont.d.ts +3 -51
  63. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  64. package/esm/components/QIcon/QIconFont.vue.js +9 -9
  65. package/esm/components/QIcon/QIconImg.d.ts +2 -36
  66. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  67. package/esm/components/QIcon/QIconImg.vue.js +3 -3
  68. package/esm/components/QIcon/QIconSvg.d.ts +7 -65
  69. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  70. package/esm/components/QIcon/QIconSvg.vue.js +9 -9
  71. package/esm/components/QIcon/index.d.ts +9 -157
  72. package/esm/components/QIcon/index.d.ts.map +1 -1
  73. package/esm/components/QIcon/types.d.ts +40 -0
  74. package/esm/components/QIcon/types.d.ts.map +1 -0
  75. package/esm/components/QInputGroup/QInputGroup.d.ts +17 -74
  76. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  77. package/esm/components/QInputGroup/index.d.ts +2 -153
  78. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  79. package/esm/components/QInputGroup/types.d.ts +34 -0
  80. package/esm/components/QInputGroup/types.d.ts.map +1 -0
  81. package/esm/components/QLineLoader/QLineLoader.d.ts +3 -29
  82. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  83. package/esm/components/QLineLoader/index.d.ts +2 -13
  84. package/esm/components/QLineLoader/index.d.ts.map +1 -1
  85. package/esm/components/QLineLoader/types.d.ts +7 -0
  86. package/esm/components/QLineLoader/types.d.ts.map +1 -0
  87. package/esm/components/QList/QList.d.ts +25 -116
  88. package/esm/components/QList/QList.d.ts.map +1 -1
  89. package/esm/components/QList/QListItem.d.ts +16 -84
  90. package/esm/components/QList/QListItem.d.ts.map +1 -1
  91. package/esm/components/QList/QListItem.vue.js +25 -31
  92. package/esm/components/QList/QListItemGroup.d.ts +11 -34
  93. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  94. package/esm/components/QList/index.d.ts +7 -453
  95. package/esm/components/QList/index.d.ts.map +1 -1
  96. package/esm/components/QList/types.d.ts +100 -0
  97. package/esm/components/QList/types.d.ts.map +1 -0
  98. package/esm/components/QList/types.js +11 -0
  99. package/esm/components/QOverlay/QOverlay.d.ts +31 -234
  100. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  101. package/esm/components/QOverlay/QOverlay.vue.js +1 -2
  102. package/esm/components/QOverlay/index.d.ts +2 -339
  103. package/esm/components/QOverlay/index.d.ts.map +1 -1
  104. package/esm/components/QOverlay/types.d.ts +87 -0
  105. package/esm/components/QOverlay/types.d.ts.map +1 -0
  106. package/esm/components/QPopover/QPopover.d.ts +21 -120
  107. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  108. package/esm/components/QPopover/index.d.ts +2 -180
  109. package/esm/components/QPopover/index.d.ts.map +1 -1
  110. package/esm/components/QPopover/types.d.ts +43 -0
  111. package/esm/components/QPopover/types.d.ts.map +1 -0
  112. package/esm/components/QPropertyList/QPropertyList.d.ts +42 -0
  113. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -0
  114. package/esm/components/QPropertyList/QPropertyList.vue.js +145 -0
  115. package/esm/components/QPropertyList/QPropertyList.vue2.js +4 -0
  116. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +11 -0
  117. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -0
  118. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +68 -0
  119. package/esm/components/QPropertyList/QPropertyListGroup.vue2.js +4 -0
  120. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +21 -0
  121. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -0
  122. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +43 -0
  123. package/esm/components/QPropertyList/QPropertyListPanel.vue2.js +4 -0
  124. package/esm/components/QPropertyList/QPropertyListRow.d.ts +24 -0
  125. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -0
  126. package/esm/components/QPropertyList/QPropertyListRow.vue.js +64 -0
  127. package/esm/components/QPropertyList/QPropertyListRow.vue2.js +4 -0
  128. package/esm/components/QPropertyList/index.d.ts +12 -0
  129. package/esm/components/QPropertyList/index.d.ts.map +1 -0
  130. package/esm/components/QPropertyList/index.js +12 -0
  131. package/esm/components/QPropertyList/types.d.ts +137 -0
  132. package/esm/components/QPropertyList/types.d.ts.map +1 -0
  133. package/esm/components/QPropertyList/types.js +14 -0
  134. package/esm/components/QSelect/QSelect.d.ts +202 -227
  135. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  136. package/esm/components/QSelect/QSelect.vue.js +140 -146
  137. package/esm/components/QSelect/index.d.ts +2 -369
  138. package/esm/components/QSelect/index.d.ts.map +1 -1
  139. package/esm/components/QSelect/types.d.ts +81 -0
  140. package/esm/components/QSelect/types.d.ts.map +1 -0
  141. package/esm/components/QSelect/types.js +16 -0
  142. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +3 -41
  143. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  144. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +19 -19
  145. package/esm/components/QSkeletonLoader/index.d.ts +2 -31
  146. package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
  147. package/esm/components/QSkeletonLoader/types.d.ts +15 -0
  148. package/esm/components/QSkeletonLoader/types.d.ts.map +1 -0
  149. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +3 -35
  150. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  151. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
  152. package/esm/components/QSpinnerLoader/index.d.ts +2 -22
  153. package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
  154. package/esm/components/QSpinnerLoader/types.d.ts +11 -0
  155. package/esm/components/QSpinnerLoader/types.d.ts.map +1 -0
  156. package/esm/components/QTextField/QTextField.d.ts +103 -147
  157. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  158. package/esm/components/QTextField/index.d.ts +2 -229
  159. package/esm/components/QTextField/index.d.ts.map +1 -1
  160. package/esm/components/QTextField/types.d.ts +50 -0
  161. package/esm/components/QTextField/types.d.ts.map +1 -0
  162. package/esm/components/QThemeProvider/QThemeProvider.d.ts +10 -17
  163. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  164. package/esm/components/QThemeProvider/index.d.ts +2 -37
  165. package/esm/components/QThemeProvider/index.d.ts.map +1 -1
  166. package/esm/components/QThemeProvider/types.d.ts +7 -0
  167. package/esm/components/QThemeProvider/types.d.ts.map +1 -0
  168. package/esm/components/QTooltip/QTooltip.d.ts +28 -190
  169. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  170. package/esm/components/QTooltip/index.d.ts +2 -279
  171. package/esm/components/QTooltip/index.d.ts.map +1 -1
  172. package/esm/components/QTooltip/types.d.ts +66 -0
  173. package/esm/components/QTooltip/types.d.ts.map +1 -0
  174. package/esm/components/index.d.ts +1 -0
  175. package/esm/components/index.d.ts.map +1 -1
  176. package/esm/components/index.js +42 -37
  177. package/esm/composables/defaults.d.ts +0 -1
  178. package/esm/composables/defaults.js +3 -6
  179. package/esm/composables/theme.d.ts +0 -1
  180. package/esm/framework.d.ts +0 -1
  181. package/esm/index.d.ts +4 -0
  182. package/esm/templates/theme.d.ts +0 -1
  183. package/esm/utils/color.js +1 -2
  184. package/esm/utils/setupPropsProxy.d.ts +0 -1
  185. package/esm/utils/setupPropsProxy.js +2 -4
  186. package/esm/utils/theme.d.ts +0 -1
  187. package/package.json +40 -41
@@ -1 +1 @@
1
- {"version":3,"file":"QCombobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/QCombobox.vue"],"names":[],"mappings":"AA0HA;AAWC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAIlD,OAAO,EAAY,QAAQ,EAAyB,MAAM,KAAK,CAAA;AAE/D,MAAM,MAAM,cAAc,GAAG;IAC5B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,WAAW,CAAC,EAAE,M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6DAE7B,GACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAR+C,GAC/C,8CAIG,GAAG,yBAAyB,GAAG,6DAE7B,GACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAidC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,26 +1,19 @@
1
- import { defineComponent as re, mergeModels as H, useModel as T, ref as I, onMounted as ce, computed as m, watch as k, nextTick as w, openBlock as y, createElementBlock as _, Fragment as ve, createVNode as x, unref as c, normalizeClass as fe, withModifiers as K, createSlots as me, withCtx as r, renderSlot as v, createBlock as C, normalizeProps as j, guardReactiveProps as W, createCommentVNode as X, createElementVNode as pe, toDisplayString as be } from "vue";
1
+ import { defineComponent as re, mergeModels as H, useModel as T, ref as I, onMounted as ce, computed as m, watch as k, nextTick as x, openBlock as y, createElementBlock as _, Fragment as fe, createVNode as w, unref as c, mergeProps as ve, withModifiers as K, createSlots as me, withCtx as r, renderSlot as f, createBlock as A, normalizeProps as j, guardReactiveProps as W, createCommentVNode as X, createElementVNode as pe, toDisplayString as be } from "vue";
2
2
  import { QButton as G } from "../QButton/index.js";
3
3
  import { QIcon as J } from "../QIcon/index.js";
4
4
  import { QList as ye } from "../QList/index.js";
5
- import { QOverlay as he } from "../QOverlay/index.js";
6
- import { QSpinnerLoader as ge } from "../QSpinnerLoader/index.js";
5
+ import { QOverlay as ge } from "../QOverlay/index.js";
6
+ import { QSpinnerLoader as he } from "../QSpinnerLoader/index.js";
7
7
  import { QTextField as Ie } from "../QTextField/index.js";
8
- const ke = ["data-key"], we = {
8
+ import { DEFAULT_ICONS as ke, DEFAULT_TEXTS as xe } from "./types.js";
9
+ const we = ["data-key"], Ve = {
9
10
  key: 0,
10
11
  class: "q-select__loader"
11
- }, xe = {
12
+ }, Le = {
12
13
  key: 2,
13
14
  class: "q-select__loader"
14
- }, Ve = {
15
- noData: "No data available"
16
- }, Le = {
17
- chevron: {
18
- icon: "chevron-down"
19
- },
20
- clear: {
21
- icon: "close"
22
- }
23
- }, Se = /* @__PURE__ */ re({
15
+ }, Te = /* @__PURE__ */ re({
16
+ inheritAttrs: !1,
24
17
  __name: "QCombobox",
25
18
  props: /* @__PURE__ */ H({
26
19
  id: { default: void 0 },
@@ -40,7 +33,8 @@ const ke = ["data-key"], we = {
40
33
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
41
34
  size: { default: void 0 },
42
35
  class: { default: void 0 },
43
- internals: { default: () => ({ icons: Le, texts: Ve }) }
36
+ icons: { default: () => ke },
37
+ texts: { default: () => xe }
44
38
  }, {
45
39
  modelValue: {
46
40
  type: [String, Number, Boolean, Symbol]
@@ -53,37 +47,37 @@ const ke = ["data-key"], we = {
53
47
  }),
54
48
  emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
55
49
  setup(V, { expose: Y, emit: Z }) {
56
- const l = V, L = Z, d = T(V, "modelValue"), i = T(V, "open"), s = T(V, "search"), t = I(void 0), f = I(null), u = I(null), F = I(null), $ = I(null);
57
- ce(g);
50
+ const l = V, L = Z, d = T(V, "modelValue"), i = T(V, "open"), u = T(V, "search"), t = I(void 0), v = I(null), s = I(null), F = I(null), $ = I(null);
51
+ ce(h);
58
52
  const B = m(() => l.clearable && !l.readonly && !l.disabled), p = m(() => {
59
53
  var e;
60
54
  return l.filterMode === "manual" || !le.value ? l.items : (e = l.items) == null ? void 0 : e.filter(
61
- (o) => o[l.itemLabel].toLowerCase().startsWith(s.value.toLowerCase())
55
+ (a) => a[l.itemLabel].toLowerCase().startsWith(u.value.toLowerCase())
62
56
  );
63
- }), h = m(() => {
57
+ }), g = m(() => {
64
58
  var e;
65
- return (e = l.items) == null ? void 0 : e.find((o) => o[l.itemValue] === d.value);
66
- }), A = m(() => h.value === void 0), D = m(() => {
59
+ return (e = l.items) == null ? void 0 : e.find((a) => a[l.itemValue] === d.value);
60
+ }), C = m(() => g.value === void 0), D = m(() => {
67
61
  const e = t.value;
68
62
  if (e !== void 0 && p.value[e])
69
63
  return p.value[e];
70
64
  }), ee = m(() => {
71
- var o;
65
+ var a;
72
66
  if (t.value === void 0)
73
67
  return;
74
- const e = (o = u.value) == null ? void 0 : o.getItem(t.value);
68
+ const e = (a = s.value) == null ? void 0 : a.getItem(t.value);
75
69
  return e == null ? void 0 : e.id;
76
70
  }), le = m(() => {
77
71
  var e;
78
- return s.value.length > 0 && s.value !== ((e = h.value) == null ? void 0 : e[l.itemLabel]);
72
+ return u.value.length > 0 && u.value !== ((e = g.value) == null ? void 0 : e[l.itemLabel]);
79
73
  });
80
- function z(e) {
74
+ function U(e) {
81
75
  d.value = e, q();
82
76
  }
83
- function g() {
84
- var o;
85
- const e = ((o = h.value) == null ? void 0 : o[l.itemLabel]) || "";
86
- s.value !== e && (s.value = e);
77
+ function h() {
78
+ var a;
79
+ const e = ((a = g.value) == null ? void 0 : a[l.itemLabel]) || "";
80
+ u.value !== e && (u.value = e);
87
81
  }
88
82
  function E() {
89
83
  i.value || l.readonly || l.disabled || (L("before-show"), i.value = !0, S());
@@ -91,124 +85,122 @@ const ke = ["data-key"], we = {
91
85
  function q() {
92
86
  i.value && (L("before-hide"), i.value = !1, t.value = void 0);
93
87
  }
94
- function oe() {
95
- i.value ? q() : N();
96
- }
97
88
  function ae() {
89
+ i.value ? q() : z();
90
+ }
91
+ function oe() {
98
92
  B.value && (d.value = l.emptyValue, t.value = void 0, S());
99
93
  }
100
- function N() {
101
- if (E(), h.value !== void 0) {
102
- const e = p.value.indexOf(h.value);
103
- e !== -1 && w(() => Q(e));
94
+ function z() {
95
+ if (E(), g.value !== void 0) {
96
+ const e = p.value.indexOf(g.value);
97
+ e !== -1 && x(() => O(e));
104
98
  }
105
99
  }
106
100
  function te(e) {
107
- var o, a;
101
+ var a, o;
108
102
  if (!(!e.key || l.readonly || l.disabled))
109
103
  if (["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key === "Escape")
110
- g(), i.value && q();
104
+ h(), i.value && q();
111
105
  else if (["ArrowDown", "ArrowUp"].includes(e.key))
112
- i.value ? w(() => {
106
+ i.value ? x(() => {
113
107
  if (t.value === void 0)
114
108
  M();
115
109
  else {
116
110
  const n = e.key === "ArrowDown" ? "next" : "prev";
117
111
  ie(t.value, n);
118
112
  }
119
- }) : (E(), w(() => {
113
+ }) : (E(), x(() => {
120
114
  e.key === "ArrowDown" ? M() : ne();
121
115
  }));
122
116
  else if (e.key === "Enter") {
123
- if (D.value === void 0)
124
- return;
125
- z(D.value[l.itemValue]);
126
- } else
127
- e.key === "Home" ? t.value = (o = u.value) == null ? void 0 : o.getFirstFocusableItemIndex() : e.key === "End" ? t.value = (a = u.value) == null ? void 0 : a.getLastFocusableItemIndex() : (/^[a-z]$/i.test(e.key) || e.key === "Backspace") && E();
117
+ if (D.value === void 0) return;
118
+ U(D.value[l.itemValue]);
119
+ } else e.key === "Home" ? t.value = (a = s.value) == null ? void 0 : a.getFirstFocusableItemIndex() : e.key === "End" ? t.value = (o = s.value) == null ? void 0 : o.getLastFocusableItemIndex() : (/^[a-z]$/i.test(e.key) || e.key === "Backspace") && E();
128
120
  }
129
121
  function M() {
130
- var e, o;
131
- if (A.value)
132
- t.value = (o = u.value) == null ? void 0 : o.getFirstFocusableItemIndex();
122
+ var e, a;
123
+ if (C.value)
124
+ t.value = (a = s.value) == null ? void 0 : a.getFirstFocusableItemIndex();
133
125
  else {
134
- const a = p.value.findIndex(
126
+ const o = p.value.findIndex(
135
127
  (n) => n[l.itemValue] === d.value
136
128
  );
137
- a === -1 ? t.value = (e = u.value) == null ? void 0 : e.getFirstFocusableItemIndex() : t.value = a;
129
+ o === -1 ? t.value = (e = s.value) == null ? void 0 : e.getFirstFocusableItemIndex() : t.value = o;
138
130
  }
139
131
  }
140
132
  function ne() {
141
133
  var e;
142
- t.value = (e = u.value) == null ? void 0 : e.getLastFocusableItemIndex();
134
+ t.value = (e = s.value) == null ? void 0 : e.getLastFocusableItemIndex();
143
135
  }
144
- function ie(e, o) {
145
- var a;
146
- t.value = (a = u.value) == null ? void 0 : a.getAdjacentItemIndex(e, o);
136
+ function ie(e, a) {
137
+ var o;
138
+ t.value = (o = s.value) == null ? void 0 : o.getAdjacentItemIndex(e, a);
147
139
  }
148
- function U(e) {
149
- var b, O, P, R;
150
- const o = ((b = F == null ? void 0 : F.value) == null ? void 0 : b.$el) === e.relatedTarget, a = (P = (O = f == null ? void 0 : f.value) == null ? void 0 : O.$el) == null ? void 0 : P.contains(e.relatedTarget), n = (R = $ == null ? void 0 : $.value) == null ? void 0 : R.contains(e.relatedTarget);
151
- if (o || n || a) {
140
+ function N(e) {
141
+ var b, Q, P, R;
142
+ const a = ((b = F == null ? void 0 : F.value) == null ? void 0 : b.$el) === e.relatedTarget, o = (P = (Q = v == null ? void 0 : v.value) == null ? void 0 : Q.$el) == null ? void 0 : P.contains(e.relatedTarget), n = (R = $ == null ? void 0 : $.value) == null ? void 0 : R.contains(e.relatedTarget);
143
+ if (a || n || o) {
152
144
  e.preventDefault(), e.stopPropagation();
153
145
  return;
154
146
  }
155
- q(), B.value && !s.value && (d.value = l.emptyValue), g();
147
+ q(), B.value && !u.value && (d.value = l.emptyValue), h();
156
148
  }
157
149
  function S() {
158
- var e, o;
159
- (o = (e = f.value) == null ? void 0 : e.inputRef) == null || o.focus();
150
+ var e, a;
151
+ (a = (e = v.value) == null ? void 0 : e.inputRef) == null || a.focus();
160
152
  }
161
- function se() {
153
+ function ue() {
162
154
  S();
163
155
  }
164
- function ue() {
156
+ function se() {
165
157
  L("show");
166
158
  }
167
159
  function de() {
168
160
  L("hide");
169
161
  }
170
- function Q(e) {
171
- var a;
172
- const o = (a = u.value) == null ? void 0 : a.getItem(e);
173
- u.value && (u.value.$el.scrollTop = o == null ? void 0 : o.offsetTop);
162
+ function O(e) {
163
+ var o;
164
+ const a = (o = s.value) == null ? void 0 : o.getItem(e);
165
+ s.value && (s.value.$el.scrollTop = a == null ? void 0 : a.offsetTop);
174
166
  }
175
- return k(d, g), k(
167
+ return k(d, h), k(
176
168
  () => l.items,
177
- (e, o) => {
178
- if (!A.value) {
179
- const a = o.find((n) => n[l.itemValue] === d.value);
180
- s.value === (a == null ? void 0 : a[l.itemLabel]) && g();
169
+ (e, a) => {
170
+ if (!C.value) {
171
+ const o = a.find((n) => n[l.itemValue] === d.value);
172
+ u.value === (o == null ? void 0 : o[l.itemLabel]) && h();
181
173
  }
182
174
  },
183
175
  { deep: !0 }
184
176
  ), k(t, (e) => {
185
- e !== void 0 && Q(e);
186
- }), k(s, (e) => {
187
- e && i.value && l.selectionMode === "automatic" && w(M);
177
+ e !== void 0 && O(e);
178
+ }), k(u, (e) => {
179
+ e && i.value && l.selectionMode === "automatic" && x(M);
188
180
  }), k(
189
181
  () => l.loading,
190
182
  (e) => {
191
- !e && i.value && w(M);
183
+ !e && i.value && x(M);
192
184
  }
193
185
  ), Y({
194
- triggerEl: f
195
- }), (e, o) => {
196
- var a;
186
+ triggerEl: v
187
+ }), (e, a) => {
188
+ var o;
197
189
  return y(), _(
198
- ve,
190
+ fe,
199
191
  null,
200
192
  [
201
- x(c(Ie), {
202
- modelValue: s.value,
203
- "onUpdate:modelValue": o[0] || (o[0] = (n) => s.value = n),
193
+ w(c(Ie), ve({
194
+ modelValue: u.value,
195
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => u.value = n),
204
196
  id: l.id,
205
197
  label: l.label,
206
198
  required: l.required,
207
199
  ref_key: "triggerEl",
208
- ref: f,
200
+ ref: v,
209
201
  role: "combobox",
210
202
  placeholder: l.placeholder,
211
- class: fe([
203
+ class: [
212
204
  "q-combobox",
213
205
  {
214
206
  "q-combobox--readonly": l.readonly,
@@ -216,7 +208,7 @@ const ke = ["data-key"], we = {
216
208
  "q-combobox--expanded": i.value
217
209
  },
218
210
  l.class
219
- ]),
211
+ ],
220
212
  readonly: l.readonly,
221
213
  disabled: l.disabled,
222
214
  "data-loading": l.loading,
@@ -225,31 +217,33 @@ const ke = ["data-key"], we = {
225
217
  "aria-haspopup": "listbox",
226
218
  "aria-autocomplete": "list",
227
219
  "aria-activedescendant": ee.value,
228
- size: l.size,
229
- onClick: N,
230
- onFocusout: U,
220
+ size: l.size
221
+ }, e.$attrs, {
222
+ onClick: z,
223
+ onFocusout: N,
231
224
  onKeydown: K(te, ["stop"])
232
- }, me({
225
+ }), me({
233
226
  "label.prepend": r(() => [
234
- v(e.$slots, "label.prepend")
227
+ f(e.$slots, "label.prepend")
235
228
  ]),
236
229
  "label.append": r(() => [
237
- v(e.$slots, "label.append")
230
+ f(e.$slots, "label.append")
238
231
  ]),
239
232
  append: r(() => [
240
- v(e.$slots, "append"),
241
- B.value && s.value ? (y(), C(c(G), {
233
+ f(e.$slots, "append"),
234
+ B.value && u.value ? (y(), A(c(G), {
242
235
  key: 0,
243
236
  class: "q-combobox__clear",
237
+ "aria-label": l.texts.clearValue,
244
238
  "b-style": "plain",
245
239
  borderless: "",
246
240
  tabindex: "-1",
247
- onClick: ae
241
+ onClick: oe
248
242
  }, {
249
243
  default: r(() => [
250
- x(
244
+ w(
251
245
  c(J),
252
- j(W(l.internals.icons.clear)),
246
+ j(W(l.icons.clear)),
253
247
  null,
254
248
  16
255
249
  /* FULL_PROPS */
@@ -257,22 +251,23 @@ const ke = ["data-key"], we = {
257
251
  ]),
258
252
  _: 1
259
253
  /* STABLE */
260
- })) : X("v-if", !0),
261
- l.readonly ? X("v-if", !0) : (y(), C(c(G), {
254
+ }, 8, ["aria-label"])) : X("v-if", !0),
255
+ l.readonly ? X("v-if", !0) : (y(), A(c(G), {
262
256
  key: 1,
263
257
  ref_key: "toggleRef",
264
258
  ref: F,
265
259
  class: "q-combobox__chevron",
260
+ "aria-label": l.texts.showOptions,
266
261
  "b-style": "plain",
267
262
  borderless: "",
268
263
  tabindex: "-1",
269
264
  disabled: l.disabled,
270
- onMousedown: K(oe, ["stop", "prevent"])
265
+ onMousedown: K(ae, ["stop", "prevent"])
271
266
  }, {
272
267
  default: r(() => [
273
- x(
268
+ w(
274
269
  c(J),
275
- j(W(l.internals.icons.chevron)),
270
+ j(W(l.icons.chevron)),
276
271
  null,
277
272
  16
278
273
  /* FULL_PROPS */
@@ -280,7 +275,7 @@ const ke = ["data-key"], we = {
280
275
  ]),
281
276
  _: 1
282
277
  /* STABLE */
283
- }, 8, ["disabled"]))
278
+ }, 8, ["aria-label", "disabled"]))
284
279
  ]),
285
280
  _: 2
286
281
  /* DYNAMIC */
@@ -288,29 +283,29 @@ const ke = ["data-key"], we = {
288
283
  e.$slots.prepend ? {
289
284
  name: "prepend",
290
285
  fn: r(() => [
291
- v(e.$slots, "prepend")
286
+ f(e.$slots, "prepend")
292
287
  ]),
293
288
  key: "0"
294
289
  } : void 0,
295
290
  e.$slots.extras ? {
296
291
  name: "extras",
297
292
  fn: r(() => [
298
- v(e.$slots, "extras")
293
+ f(e.$slots, "extras")
299
294
  ]),
300
295
  key: "1"
301
296
  } : void 0
302
- ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
303
- x(c(he), {
297
+ ]), 1040, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
298
+ w(c(ge), {
304
299
  modelValue: i.value,
305
- "onUpdate:modelValue": o[2] || (o[2] = (n) => i.value = n),
300
+ "onUpdate:modelValue": a[2] || (a[2] = (n) => i.value = n),
306
301
  spy: "",
307
302
  "non-modal": "",
308
303
  trigger: "manual",
309
304
  placement: "bottom-start",
310
305
  width: "anchor",
311
306
  offset: 4,
312
- anchor: (a = f.value) == null ? void 0 : a.$el,
313
- onEnter: ue,
307
+ anchor: (o = v.value) == null ? void 0 : o.$el,
308
+ onEnter: se,
314
309
  onLeave: de
315
310
  }, {
316
311
  default: r(() => {
@@ -322,43 +317,43 @@ const ke = ["data-key"], we = {
322
317
  class: "q-select__body",
323
318
  "data-testid": "combobox-dropdown",
324
319
  "data-key": l.id,
325
- onFocusout: U
320
+ onFocusout: N
326
321
  }, [
327
- v(e.$slots, "body.prepend"),
328
- l.loading ? (y(), _("div", we, [
329
- x(c(ge), { size: 24 })
330
- ])) : p.value.length ? (y(), C(c(ye), {
322
+ f(e.$slots, "body.prepend"),
323
+ l.loading ? (y(), _("div", Ve, [
324
+ w(c(he), { size: 24 })
325
+ ])) : p.value.length ? (y(), A(c(ye), {
331
326
  key: 1,
332
327
  ref_key: "listRef",
333
- ref: u,
328
+ ref: s,
334
329
  class: "q-select__items",
335
330
  selectable: "",
336
331
  modelValue: d.value,
337
332
  "onUpdate:modelValue": [
338
- o[1] || (o[1] = (b) => d.value = b),
339
- z
333
+ a[1] || (a[1] = (b) => d.value = b),
334
+ U
340
335
  ],
341
336
  highlighted: (n = D.value) == null ? void 0 : n[l.itemValue],
342
337
  items: p.value,
343
338
  groups: e.groups,
344
339
  "item-label": l.itemLabel,
345
340
  "item-value": l.itemValue,
346
- onMouseup: se
341
+ onMouseup: ue
347
342
  }, {
348
343
  item: r(({ item: b }) => [
349
- v(e.$slots, "item", { item: b })
344
+ f(e.$slots, "item", { item: b })
350
345
  ]),
351
346
  _: 3
352
347
  /* FORWARDED */
353
348
  }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (y(), _(
354
349
  "div",
355
- xe,
356
- be(e.internals.texts.noData),
350
+ Le,
351
+ be(l.texts.noData),
357
352
  1
358
353
  /* TEXT */
359
354
  )),
360
- v(e.$slots, "body.append")
361
- ], 40, ke)
355
+ f(e.$slots, "body.append")
356
+ ], 40, we)
362
357
  ];
363
358
  }),
364
359
  _: 3
@@ -372,5 +367,5 @@ const ke = ["data-key"], we = {
372
367
  }
373
368
  });
374
369
  export {
375
- Se as default
370
+ Te as default
376
371
  };