@quidgest/ui 0.16.37 → 0.16.39

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 (39) hide show
  1. package/dist/json/api.json +92 -1
  2. package/dist/manifest/components.json +1 -0
  3. package/dist/ui.css +127 -10
  4. package/dist/ui.esm.js +3673 -3644
  5. package/dist/ui.js +7 -7
  6. package/dist/ui.min.css +1 -1
  7. package/dist/ui.min.js +139 -136
  8. package/dist/ui.scss +123 -3
  9. package/esm/components/QDialog/QDialog.d.ts +1 -0
  10. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  11. package/esm/components/QDialog/QDialog.vue.js +38 -36
  12. package/esm/components/QDialog/index.d.ts +6 -0
  13. package/esm/components/QDialog/index.d.ts.map +1 -1
  14. package/esm/components/QDialog/types.d.ts +7 -0
  15. package/esm/components/QDialog/types.d.ts.map +1 -1
  16. package/esm/components/QGrid/QCol.d.ts.map +1 -1
  17. package/esm/components/QGrid/QCol.vue.js +12 -9
  18. package/esm/components/QGroupBox/QGroupBox.d.ts +21 -0
  19. package/esm/components/QGroupBox/QGroupBox.d.ts.map +1 -0
  20. package/esm/components/QGroupBox/QGroupBox.vue.js +44 -0
  21. package/esm/components/QGroupBox/QGroupBox.vue2.js +4 -0
  22. package/esm/components/QGroupBox/index.d.ts +26 -0
  23. package/esm/components/QGroupBox/index.d.ts.map +1 -0
  24. package/esm/components/QGroupBox/index.js +6 -0
  25. package/esm/components/QGroupBox/types.d.ts +32 -0
  26. package/esm/components/QGroupBox/types.d.ts.map +1 -0
  27. package/esm/components/QList/QList.d.ts.map +1 -1
  28. package/esm/components/QList/QList.vue.js +3 -7
  29. package/esm/components/QOverlay/QOverlay.vue.js +1 -1
  30. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  31. package/esm/components/QSelect/QSelect.vue.js +163 -169
  32. package/esm/components/index.d.ts +1 -0
  33. package/esm/components/index.d.ts.map +1 -1
  34. package/esm/components/index.js +70 -68
  35. package/esm/composables/useDialog/index.d.ts +1 -0
  36. package/esm/composables/useDialog/index.d.ts.map +1 -1
  37. package/esm/composables/useGroup/index.js +17 -17
  38. package/esm/index.d.ts +1 -0
  39. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AA8CA;AAucC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AA8OhD,iBAAS,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAIrD;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,IAAI,MAAM,CAIpC;AAED;;;;;;GAMG;AACH,iBAAS,0BAA0B,IAAI,MAAM,CAO5C;AAED;;;;;;GAMG;AACH,iBAAS,yBAAyB,IAAI,MAAM,CAO3C;AAmCD;;;;;;;;GAQG;AACH,iBAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAuB7E;AA6DF,iBAAS,cAAc;WA0IT,OAAO,IAA6B;;yBAdpB,GAAG;;;;YACN,GAAG;;;;YACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA3FF,GAAG,8CAA8C,GAAG,yBACrF,GAAG,6DACI,GAAG;;;;;;;;;;;;;;;;;EA0Gb;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCApIgB,GAAG,8CAA8C,GAAG,yBACrF,GAAG,6DACI,GAAG;;;;;;;;;;;;;;;OA6IZ,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB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,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -147,13 +147,9 @@ const oe = /* @__PURE__ */ N({
147
147
  var t;
148
148
  return e ? (t = n.items) == null ? void 0 : t.filter((l) => l.group === e) : n.items;
149
149
  }
150
- return X(
151
- r,
152
- (e) => {
153
- g("update:modelValue", e);
154
- },
155
- { deep: !0 }
156
- ), G({
150
+ return X(r, (e) => {
151
+ g("update:modelValue", e);
152
+ }), G({
157
153
  getItem: P,
158
154
  getActiveItemIndex: _,
159
155
  getAdjacentItemIndex: D,
@@ -266,7 +266,7 @@ const Te = ["id"], Ce = ["role"], $e = /* @__PURE__ */ ue({
266
266
  default: L(() => [
267
267
  E.value ? (u(), B(C(ke), {
268
268
  key: 0,
269
- disabled: t.nonModal || !r.value,
269
+ disabled: t.nonModal || !r.value || !t.focusTrap,
270
270
  options: { fallbackFocus: E.value }
271
271
  }, {
272
272
  default: L(() => [
@@ -1 +1 @@
1
- {"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAmMA;AAwhBC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAe1D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,EAAY,QAAQ,EAA4C,MAAM,KAAK,CAAA;AAMlF,KAAK,WAAW,GAAG,YAAY,CAAC;AAkUjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA4dT,OAAO,IAA6B;;yBArBpB,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O;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,33 +1,33 @@
1
- import { defineComponent as de, mergeModels as J, useModel as ce, toRef as S, ref as Y, useTemplateRef as _, computed as L, watch as E, nextTick as z, unref as i, createElementBlock as c, openBlock as t, Fragment as b, createVNode as $, normalizeClass as fe, createSlots as me, withCtx as f, withDirectives as pe, createBlock as m, createCommentVNode as p, renderList as Z, createTextVNode as w, mergeProps as q, toDisplayString as g, normalizeProps as ee, createElementVNode as le, vModelText as ve, renderSlot as h, withModifiers as ye } from "vue";
2
- import { DEFAULT_TEXTS as be, DEFAULT_ICONS as ge } from "./constants.js";
3
- import { QBadge as D } from "../QBadge/index.js";
4
- import { QButton as he } from "../QButton/index.js";
5
- import { QField as ke } from "../QField/index.js";
6
- import { QIcon as T } from "../QIcon/index.js";
7
- import { QList as _e } from "../QList/index.js";
8
- import { QOverlay as we } from "../QOverlay/index.js";
9
- import { QSpinnerLoader as qe } from "../QSpinnerLoader/index.js";
10
- import { QChevron as Be } from "../__internal__/QChevron/index.js";
11
- import { QClearButton as Ce } from "../__internal__/QClearButton/index.js";
12
- import { useId as Ve } from "../../composables/uid.js";
13
- import { useGroup as Le } from "../../composables/useGroup/index.js";
14
- const Ee = {
1
+ import { defineComponent as ce, mergeModels as Z, useModel as fe, toRef as z, ref as ee, useTemplateRef as _, onMounted as me, computed as q, nextTick as O, watch as D, createElementBlock as c, openBlock as a, Fragment as b, createVNode as T, unref as o, normalizeClass as pe, createSlots as ve, withCtx as f, withDirectives as ye, createBlock as m, createCommentVNode as p, renderList as le, createTextVNode as w, mergeProps as B, toDisplayString as g, normalizeProps as te, createElementVNode as ae, vModelText as be, renderSlot as h, withModifiers as ge } from "vue";
2
+ import { DEFAULT_TEXTS as he, DEFAULT_ICONS as ke } from "./constants.js";
3
+ import { QBadge as M } from "../QBadge/index.js";
4
+ import { QButton as _e } from "../QButton/index.js";
5
+ import { QField as qe } from "../QField/index.js";
6
+ import { QIcon as Q } from "../QIcon/index.js";
7
+ import { QList as we } from "../QList/index.js";
8
+ import { QOverlay as Be } from "../QOverlay/index.js";
9
+ import { QSpinnerLoader as Ce } from "../QSpinnerLoader/index.js";
10
+ import { QChevron as Ve } from "../__internal__/QChevron/index.js";
11
+ import { QClearButton as Le } from "../__internal__/QClearButton/index.js";
12
+ import { useId as Ee } from "../../composables/uid.js";
13
+ import { useGroup as $e } from "../../composables/useGroup/index.js";
14
+ const De = {
15
15
  key: 0,
16
16
  ref: "badgesContainer",
17
17
  class: "q-select__badge-container"
18
- }, $e = {
18
+ }, Te = {
19
19
  key: 1,
20
20
  class: "q-select__value"
21
- }, De = {
21
+ }, Me = {
22
22
  key: 1,
23
23
  class: "q-select__placeholder"
24
- }, Te = ["id", "tabindex", "aria-keyshortcuts"], Qe = ["data-key"], Re = {
24
+ }, Qe = ["id", "tabindex", "aria-keyshortcuts"], Re = ["data-key"], Se = {
25
25
  key: 0,
26
26
  class: "q-select__loader"
27
- }, He = /* @__PURE__ */ de({
27
+ }, Ge = /* @__PURE__ */ ce({
28
28
  inheritAttrs: !1,
29
29
  __name: "QSelect",
30
- props: /* @__PURE__ */ J({
30
+ props: /* @__PURE__ */ Z({
31
31
  id: {},
32
32
  class: {},
33
33
  label: {},
@@ -47,125 +47,119 @@ const Ee = {
47
47
  emptyValue: {},
48
48
  itemValue: { default: "key" },
49
49
  itemLabel: { default: "label" },
50
- icons: { default: () => ge },
51
- texts: { default: () => be }
50
+ icons: { default: () => ke },
51
+ texts: { default: () => he }
52
52
  }, {
53
53
  modelValue: {},
54
54
  modelModifiers: {}
55
55
  }),
56
- emits: /* @__PURE__ */ J(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
57
- setup(O, { emit: ae }) {
58
- const e = O, B = ae, r = ce(O, "modelValue"), Q = Ve(S(e, "id")), { active: te } = Le({
59
- active: r,
60
- required: S(e, "required"),
61
- multiple: S(e, "multiple")
62
- }), d = Y(!1), C = Y(0), R = _("trigger"), oe = _("list"), F = _("content"), K = _("badgesContainer"), U = _("allBadges"), N = L(() => s.value.length === 0), s = L(() => {
63
- var a;
56
+ emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
57
+ setup(F, { emit: oe }) {
58
+ const e = F, C = oe, s = fe(F, "modelValue"), R = Ee(z(e, "id")), { active: K } = $e({
59
+ active: s,
60
+ required: z(e, "required"),
61
+ multiple: z(e, "multiple")
62
+ }), d = ee(!1), V = ee(0), S = _("trigger"), ne = _("list"), U = _("content"), N = _("badgesContainer"), W = _("allBadges");
63
+ me($);
64
+ const P = q(() => r.value.length === 0), r = q(() => {
65
+ var t;
64
66
  if (e.multiple)
65
- return ((a = r.value) == null ? void 0 : a.map((u) => W(u))) ?? [];
66
- const l = typeof r.value < "u" ? W(r.value) : void 0;
67
+ return ((t = s.value) == null ? void 0 : t.map((u) => j(u))) ?? [];
68
+ const l = typeof s.value < "u" ? j(s.value) : void 0;
67
69
  return l ? [l] : [];
68
- }), x = L(
70
+ }), H = q(() => {
71
+ var t;
72
+ const l = /* @__PURE__ */ new Map();
73
+ return (t = e.items) == null || t.forEach((u, n) => {
74
+ l.set(u.key, n);
75
+ }), l;
76
+ }), A = q(
69
77
  () => {
70
78
  var l;
71
- return (l = s.value) == null ? void 0 : l.map((a) => a[e.itemLabel]).join(", ");
79
+ return (l = r.value) == null ? void 0 : l.map((t) => t[e.itemLabel]).join(", ");
72
80
  }
73
- ), k = L(
74
- () => e.clearable && !e.readonly && !e.disabled && !e.loading && !N.value
81
+ ), k = q(
82
+ () => e.clearable && !e.readonly && !e.disabled && !e.loading && !P.value
75
83
  );
76
- function W(l) {
77
- var a;
78
- return (a = e.items) == null ? void 0 : a.find((u) => u[e.itemValue] === l);
84
+ function j(l) {
85
+ var t;
86
+ return (t = e.items) == null ? void 0 : t.find((u) => u[e.itemValue] === l);
79
87
  }
80
- function ne(l) {
81
- e.multiple && r.value.splice(l, 1);
88
+ function ie(l) {
89
+ e.multiple && l < s.value.length && (!e.required || s.value.length > 1) ? K.value = s.value.toSpliced(l, 1) : L();
82
90
  }
83
- function P(l) {
84
- r.value = l, e.multiple || V();
91
+ function I(l) {
92
+ Array.isArray(l) ? (s.value = l.sort((t, u) => H.value.get(t) - H.value.get(u)), $()) : (s.value = l, E());
85
93
  }
86
- function A() {
87
- k.value && (P(e.emptyValue), G());
94
+ function L() {
95
+ k.value && (I(e.emptyValue), J());
88
96
  }
89
- function ie(l) {
90
- var a, u, n;
91
- !((a = F.value) != null && a.contains(l.relatedTarget)) && !((n = (u = R.value) == null ? void 0 : u.fieldRef) != null && n.contains(l.relatedTarget)) && V();
97
+ function re(l) {
98
+ var t, u, n;
99
+ !((t = U.value) != null && t.contains(l.relatedTarget)) && !((n = (u = S.value) == null ? void 0 : u.fieldRef) != null && n.contains(l.relatedTarget)) && E();
92
100
  }
93
- function H() {
94
- d.value || (B("before-show"), d.value = !0);
101
+ function G() {
102
+ d.value || (C("before-show"), d.value = !0);
95
103
  }
96
- function V() {
97
- d.value && (B("before-hide"), d.value = !1);
104
+ function E() {
105
+ d.value && (C("before-hide"), d.value = !1);
98
106
  }
99
- function j() {
100
- e.readonly || e.disabled || (d.value ? V() : H());
107
+ function X() {
108
+ e.readonly || e.disabled || (d.value ? E() : G());
101
109
  }
102
- function I(l) {
103
- !l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End", "Delete"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && H(), ["Escape", "Tab"].includes(l.key) && (d.value ? V() : k.value && l.key === "Escape" && A()), k.value && l.key === "Delete" && A());
110
+ function x(l) {
111
+ !l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End", "Delete"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && G(), ["Escape", "Tab"].includes(l.key) && (d.value ? E() : k.value && l.key === "Escape" && L()), k.value && l.key === "Delete" && L());
104
112
  }
105
- function re(l) {
106
- l.key.length === 1 && l.preventDefault(), I(l);
113
+ function se(l) {
114
+ l.key.length === 1 && l.preventDefault(), x(l);
107
115
  }
108
- function se() {
116
+ function ue() {
109
117
  var l;
110
- e.loading ? (l = F.value) == null || l.focus() : X(), B("show");
118
+ e.loading ? (l = U.value) == null || l.focus() : Y(), C("show");
111
119
  }
112
- function ue() {
113
- G(), B("hide");
120
+ function de() {
121
+ J(), C("hide");
114
122
  }
115
- function G() {
116
- var l, a;
117
- (a = (l = R.value) == null ? void 0 : l.fieldRef) == null || a.focus();
123
+ function J() {
124
+ var l, t;
125
+ (t = (l = S.value) == null ? void 0 : l.fieldRef) == null || t.focus();
118
126
  }
119
- function X() {
127
+ function Y() {
120
128
  var l;
121
- (l = oe.value) == null || l.$el.focus();
129
+ (l = ne.value) == null || l.$el.focus();
122
130
  }
123
- async function M() {
124
- var o;
125
- if (await z(), !e.multiple || !e.badges || !K.value) return;
126
- const l = K.value.offsetWidth, a = 4;
127
- let u = 0, n = 0;
128
- await z();
129
- for (const y of U.value ?? []) {
130
- const v = y.$el.scrollWidth + a;
131
- if (u + v <= l)
132
- u += v, n++;
131
+ async function $() {
132
+ var i;
133
+ if (await O(), !e.multiple || !e.badges || !N.value) return;
134
+ let l = 0, t = 0;
135
+ await O();
136
+ const u = N.value.offsetWidth, n = 4;
137
+ for (const y of W.value ?? []) {
138
+ const v = y.$el.scrollWidth + n;
139
+ if (l + v <= u)
140
+ l += v, t++;
133
141
  else break;
134
142
  }
135
- C.value = (((o = U.value) == null ? void 0 : o.length) ?? 0) - n;
143
+ V.value = (((i = W.value) == null ? void 0 : i.length) ?? 0) - t;
136
144
  }
137
- return E(
145
+ return D(
138
146
  () => e.loading,
139
147
  (l) => {
140
- !l && d.value && z(X);
148
+ !l && d.value && O(Y);
141
149
  }
142
- ), E(() => e.badges, M), E(() => e.clearable, M), E(
143
- te,
144
- (l) => {
145
- var a;
146
- if (r.value = l, Array.isArray(r.value)) {
147
- const u = /* @__PURE__ */ new Map();
148
- (a = e.items) == null || a.forEach((n, o) => {
149
- u.set(n.key, o);
150
- }), r.value = i(
151
- r.value.sort((n, o) => u.get(n) - u.get(o))
152
- ), M();
153
- }
154
- },
155
- { deep: !0 }
156
- ), (l, a) => {
150
+ ), D(() => e.badges, $), D(() => e.clearable, $), D(K, I), (l, t) => {
157
151
  var u;
158
- return t(), c(
152
+ return a(), c(
159
153
  b,
160
154
  null,
161
155
  [
162
- $(i(ke), {
163
- id: i(Q),
156
+ T(o(qe), {
157
+ id: o(R),
164
158
  ref: "trigger",
165
159
  label: e.label,
166
160
  required: e.required,
167
161
  role: "combobox",
168
- class: fe([
162
+ class: pe([
169
163
  "q-select",
170
164
  {
171
165
  "q-select--readonly": e.readonly,
@@ -180,18 +174,18 @@ const Ee = {
180
174
  "aria-haspopup": "listbox",
181
175
  size: e.size,
182
176
  invalid: e.invalid,
183
- onClick: j,
184
- onKeydown: I
185
- }, me({
177
+ onClick: X,
178
+ onKeydown: x
179
+ }, ve({
186
180
  append: f(() => [
187
181
  h(l.$slots, "append"),
188
- k.value ? (t(), m(i(Ce), {
182
+ k.value ? (a(), m(o(Le), {
189
183
  key: 0,
190
184
  icons: e.icons,
191
185
  texts: e.texts,
192
- onClick: A
186
+ onClick: L
193
187
  }, null, 8, ["icons", "texts"])) : p("v-if", !0),
194
- e.readonly ? p("v-if", !0) : (t(), m(i(he), {
188
+ e.readonly ? p("v-if", !0) : (a(), m(o(_e), {
195
189
  key: 1,
196
190
  class: "q-select__chevron",
197
191
  "aria-label": e.texts.showOptions,
@@ -200,10 +194,10 @@ const Ee = {
200
194
  borderless: "",
201
195
  tabindex: "-1",
202
196
  disabled: e.disabled,
203
- onClick: j
197
+ onClick: X
204
198
  }, {
205
199
  default: f(() => [
206
- $(i(Be), {
200
+ T(o(Ve), {
207
201
  "model-value": d.value,
208
202
  icons: e.icons
209
203
  }, null, 8, ["model-value", "icons"])
@@ -213,8 +207,8 @@ const Ee = {
213
207
  }, 8, ["aria-label", "disabled"]))
214
208
  ]),
215
209
  default: f(() => [
216
- N.value ? (t(), c("span", De, [
217
- !e.readonly && !e.disabled ? (t(), c(
210
+ P.value ? (a(), c("span", Me, [
211
+ !e.readonly && !e.disabled ? (a(), c(
218
212
  b,
219
213
  { key: 0 },
220
214
  [
@@ -227,46 +221,46 @@ const Ee = {
227
221
  64
228
222
  /* STABLE_FRAGMENT */
229
223
  )) : p("v-if", !0)
230
- ])) : (t(), c(
224
+ ])) : (a(), c(
231
225
  b,
232
226
  { key: 0 },
233
227
  [
234
- e.badges ? (t(), c(
228
+ e.badges ? (a(), c(
235
229
  "span",
236
- Ee,
230
+ De,
237
231
  [
238
- e.multiple ? (t(), c(
232
+ e.multiple ? (a(), c(
239
233
  b,
240
234
  { key: 0 },
241
235
  [
242
- (t(!0), c(
236
+ (a(!0), c(
243
237
  b,
244
238
  null,
245
- Z(r.value, (n, o) => (t(), c(
239
+ le(s.value, (n, i) => (a(), c(
246
240
  b,
247
- { key: o },
241
+ { key: i },
248
242
  [
249
- o < r.value.length - C.value ? (t(), m(i(D), {
243
+ i < s.value.length - V.value ? (a(), m(o(M), {
250
244
  key: 0,
251
245
  pill: "",
252
- removable: !e.readonly && !e.disabled && (e.clearable || r.value.length > 1),
253
- "onClick:remove": () => ne(o)
246
+ removable: !e.readonly && !e.disabled && (!e.required || s.value.length > 1),
247
+ "onClick:remove": () => ie(i)
254
248
  }, {
255
249
  default: f(() => {
256
250
  var y, v;
257
251
  return [
258
- (y = s.value[o]) != null && y.icon ? (t(), m(
259
- i(T),
260
- q({
252
+ (y = r.value[i]) != null && y.icon ? (a(), m(
253
+ o(Q),
254
+ B({
261
255
  key: 0,
262
256
  ref_for: !0
263
- }, s.value[o].icon),
257
+ }, r.value[i].icon),
264
258
  null,
265
259
  16
266
260
  /* FULL_PROPS */
267
261
  )) : p("v-if", !0),
268
262
  w(
269
- " " + g((v = s.value[o]) == null ? void 0 : v[e.itemLabel]),
263
+ " " + g((v = r.value[i]) == null ? void 0 : v[e.itemLabel]),
270
264
  1
271
265
  /* TEXT */
272
266
  )
@@ -282,14 +276,14 @@ const Ee = {
282
276
  128
283
277
  /* KEYED_FRAGMENT */
284
278
  )),
285
- C.value > 0 ? (t(), m(i(D), {
279
+ V.value > 0 ? (a(), m(o(M), {
286
280
  key: 0,
287
281
  pill: "",
288
282
  class: "q-select__badge-count"
289
283
  }, {
290
284
  default: f(() => [
291
285
  w(
292
- " +" + g(C.value),
286
+ " +" + g(V.value),
293
287
  1
294
288
  /* TEXT */
295
289
  )
@@ -297,32 +291,32 @@ const Ee = {
297
291
  _: 1
298
292
  /* STABLE */
299
293
  })) : p("v-if", !0),
300
- (t(!0), c(
294
+ (a(!0), c(
301
295
  b,
302
296
  null,
303
- Z(r.value, (n, o) => (t(), m(i(D), {
304
- key: o,
297
+ le(s.value, (n, i) => (a(), m(o(M), {
298
+ key: i,
305
299
  ref_for: !0,
306
300
  ref: "allBadges",
307
301
  pill: "",
308
302
  class: "q-select__badge-hidden",
309
- removable: !e.readonly && !e.disabled && (e.clearable || r.value.length > 1)
303
+ removable: !e.readonly && !e.disabled && (!e.required || s.value.length > 1)
310
304
  }, {
311
305
  default: f(() => {
312
306
  var y, v;
313
307
  return [
314
- (y = s.value[o]) != null && y.icon ? (t(), m(
315
- i(T),
316
- q({
308
+ (y = r.value[i]) != null && y.icon ? (a(), m(
309
+ o(Q),
310
+ B({
317
311
  key: 0,
318
312
  ref_for: !0
319
- }, s.value[o].icon),
313
+ }, r.value[i].icon),
320
314
  null,
321
315
  16
322
316
  /* FULL_PROPS */
323
317
  )) : p("v-if", !0),
324
318
  w(
325
- " " + g((v = s.value[o]) == null ? void 0 : v[e.itemLabel]),
319
+ " " + g((v = r.value[i]) == null ? void 0 : v[e.itemLabel]),
326
320
  1
327
321
  /* TEXT */
328
322
  )
@@ -337,22 +331,22 @@ const Ee = {
337
331
  ],
338
332
  64
339
333
  /* STABLE_FRAGMENT */
340
- )) : (t(), m(i(D), {
334
+ )) : (a(), m(o(M), {
341
335
  key: 1,
342
336
  pill: ""
343
337
  }, {
344
338
  default: f(() => {
345
- var n, o;
339
+ var n, i;
346
340
  return [
347
- (n = s.value[0]) != null && n.icon ? (t(), m(
348
- i(T),
349
- ee(q({ key: 0 }, s.value[0].icon)),
341
+ (n = r.value[0]) != null && n.icon ? (a(), m(
342
+ o(Q),
343
+ te(B({ key: 0 }, r.value[0].icon)),
350
344
  null,
351
345
  16
352
346
  /* FULL_PROPS */
353
347
  )) : p("v-if", !0),
354
348
  w(
355
- " " + g((o = s.value[0]) == null ? void 0 : o[e.itemLabel]),
349
+ " " + g((i = r.value[0]) == null ? void 0 : i[e.itemLabel]),
356
350
  1
357
351
  /* TEXT */
358
352
  )
@@ -364,10 +358,10 @@ const Ee = {
364
358
  ],
365
359
  512
366
360
  /* NEED_PATCH */
367
- )) : (t(), c(
361
+ )) : (a(), c(
368
362
  "span",
369
- $e,
370
- g(x.value),
363
+ Te,
364
+ g(A.value),
371
365
  1
372
366
  /* TEXT */
373
367
  ))
@@ -375,31 +369,31 @@ const Ee = {
375
369
  64
376
370
  /* STABLE_FRAGMENT */
377
371
  )),
378
- pe(le("input", q({
379
- id: `${i(Q)}_input`
372
+ ye(ae("input", B({
373
+ id: `${o(R)}_input`
380
374
  }, l.$attrs, {
381
- "onUpdate:modelValue": a[0] || (a[0] = (n) => x.value = n),
375
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => A.value = n),
382
376
  class: "q-select__input",
383
377
  inputmode: "none",
384
378
  type: "text",
385
379
  autocomplete: "off",
386
380
  tabindex: e.disabled ? -1 : 0,
387
381
  "aria-keyshortcuts": k.value ? "Delete" : void 0,
388
- onKeydown: re
389
- }), null, 16, Te), [
390
- [ve, x.value]
382
+ onKeydown: se
383
+ }), null, 16, Qe), [
384
+ [be, A.value]
391
385
  ])
392
386
  ]),
393
387
  _: 2
394
388
  /* DYNAMIC */
395
389
  }, [
396
- s.value.length === 1 && s.value[0].icon && !e.badges || l.$slots.prepend ? {
390
+ r.value.length === 1 && r.value[0].icon && !e.badges || l.$slots.prepend ? {
397
391
  name: "prepend",
398
392
  fn: f(() => [
399
393
  h(l.$slots, "prepend"),
400
- s.value.length === 1 && s.value[0].icon && !e.badges ? (t(), m(
401
- i(T),
402
- ee(q({ key: 0 }, s.value[0].icon)),
394
+ r.value.length === 1 && r.value[0].icon && !e.badges ? (a(), m(
395
+ o(Q),
396
+ te(B({ key: 0 }, r.value[0].icon)),
403
397
  null,
404
398
  16
405
399
  /* FULL_PROPS */
@@ -415,46 +409,46 @@ const Ee = {
415
409
  key: "1"
416
410
  } : void 0
417
411
  ]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size", "invalid"]),
418
- $(i(we), {
412
+ T(o(Be), {
419
413
  modelValue: d.value,
420
- "onUpdate:modelValue": a[1] || (a[1] = (n) => d.value = n),
414
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => d.value = n),
421
415
  spy: "",
422
416
  trigger: "manual",
423
417
  placement: "bottom-start",
424
418
  width: "anchor",
425
419
  "scroll-lock": "",
426
420
  inline: e.inline,
427
- anchor: (u = i(R)) == null ? void 0 : u.fieldRef,
421
+ anchor: (u = o(S)) == null ? void 0 : u.fieldRef,
428
422
  offset: 2,
429
- onEnter: se,
430
- onLeave: ue
423
+ onEnter: ue,
424
+ onLeave: de
431
425
  }, {
432
426
  default: f(() => [
433
- le("div", {
427
+ ae("div", {
434
428
  ref: "content",
435
429
  "data-testid": "combobox-dropdown",
436
- "data-key": i(Q),
430
+ "data-key": o(R),
437
431
  class: "q-select__body",
438
432
  tabindex: "-1",
439
- onFocusout: ie,
440
- onKeydown: ye(I, ["stop"])
433
+ onFocusout: re,
434
+ onKeydown: ge(x, ["stop"])
441
435
  }, [
442
436
  h(l.$slots, "body.prepend"),
443
- e.loading ? (t(), c("div", Re, [
444
- $(i(qe), { size: 24 })
445
- ])) : (t(), m(i(_e), {
437
+ e.loading ? (a(), c("div", Se, [
438
+ T(o(Ce), { size: 24 })
439
+ ])) : (a(), m(o(we), {
446
440
  key: 1,
447
441
  ref: "list",
448
442
  class: "q-select__items",
449
443
  selectable: "",
450
444
  required: e.required,
451
445
  multiple: e.multiple,
452
- "model-value": r.value,
446
+ "model-value": s.value,
453
447
  items: e.items,
454
448
  groups: l.groups,
455
449
  "item-label": e.itemLabel,
456
450
  "item-value": e.itemValue,
457
- "onUpdate:modelValue": P
451
+ "onUpdate:modelValue": I
458
452
  }, {
459
453
  item: f(({ item: n }) => [
460
454
  h(l.$slots, "item", { item: n })
@@ -463,7 +457,7 @@ const Ee = {
463
457
  /* FORWARDED */
464
458
  }, 8, ["required", "multiple", "model-value", "items", "groups", "item-label", "item-value"])),
465
459
  h(l.$slots, "body.append")
466
- ], 40, Qe)
460
+ ], 40, Re)
467
461
  ]),
468
462
  _: 3
469
463
  /* FORWARDED */
@@ -476,5 +470,5 @@ const Ee = {
476
470
  }
477
471
  });
478
472
  export {
479
- He as default
473
+ Ge as default
480
474
  };
@@ -20,6 +20,7 @@ export * from './QField';
20
20
  export * from './QFileUpload';
21
21
  export * from './QFocusTrap';
22
22
  export * from './QGrid';
23
+ export * from './QGroupBox';
23
24
  export * from './QIcon';
24
25
  export * from './QInputGroup';
25
26
  export * from './QLabel';