@quidgest/ui 0.7.16 → 0.7.18

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.
package/dist/ui.css CHANGED
@@ -449,14 +449,14 @@ body *::-webkit-scrollbar-track {
449
449
  .q-field__control {
450
450
  display: flex;
451
451
  align-items: center;
452
- height: 31.89px;
452
+ height: inherit;
453
453
  width: 100%;
454
454
  border-radius: inherit;
455
455
  border-width: 1px;
456
456
  background-color: transparent;
457
457
  padding: 0.26rem 0.25rem;
458
458
  font-size: 0.9rem;
459
- line-height: 1.5rem;
459
+ line-height: 1.5;
460
460
  transition: color var(--transition-duration) var(--transition-timing-function);
461
461
  }
462
462
  .q-field__control:focus-within {
@@ -532,7 +532,7 @@ body *::-webkit-scrollbar-track {
532
532
  .q-input-group__prepend, .q-input-group__append {
533
533
  display: flex;
534
534
  align-items: flex-end;
535
- height: 31.89px;
535
+ height: inherit;
536
536
  }
537
537
  .q-input-group__prepend > *, .q-input-group__append > * {
538
538
  border-radius: 0;
@@ -545,7 +545,8 @@ body *::-webkit-scrollbar-track {
545
545
  align-items: center;
546
546
  justify-content: center;
547
547
  text-align: center;
548
- padding: 0.25rem 0.5rem;
548
+ padding: 0.26rem 0.25rem;
549
+ line-height: 1.5;
549
550
  font-size: 0.9rem;
550
551
  border-width: 1px;
551
552
  background-color: rgb(var(--q-theme-on-background-rgb)/0.1);
@@ -557,7 +558,7 @@ body *::-webkit-scrollbar-track {
557
558
  }
558
559
  .q-input-group > .q-field__control {
559
560
  display: flex;
560
- align-items: flex-end;
561
+ align-items: stretch;
561
562
  height: auto;
562
563
  border-width: 0;
563
564
  padding: 0;
package/dist/ui.esm.js CHANGED
@@ -139,12 +139,12 @@ function Ie(n) {
139
139
  function Fe(n) {
140
140
  const t = n.r / 255, o = n.g / 255, e = n.b / 255, l = Math.max(t, o, e), a = Math.min(t, o, e);
141
141
  let r = 0, i;
142
- const p = (l + a) / 2;
142
+ const f = (l + a) / 2;
143
143
  if (l === a)
144
144
  r = i = 0;
145
145
  else {
146
146
  const m = l - a;
147
- switch (i = p > 0.5 ? m / (2 - l - a) : m / (l + a), l) {
147
+ switch (i = f > 0.5 ? m / (2 - l - a) : m / (l + a), l) {
148
148
  case t:
149
149
  r = (o - e) / m + (o < e ? 6 : 0);
150
150
  break;
@@ -160,7 +160,7 @@ function Fe(n) {
160
160
  return {
161
161
  h: Math.round(r * 360),
162
162
  s: Math.round(i * 100),
163
- l: Math.round(p * 100)
163
+ l: Math.round(f * 100)
164
164
  };
165
165
  }
166
166
  function Ae(n) {
@@ -169,8 +169,8 @@ function Ae(n) {
169
169
  if (o === 0)
170
170
  l = a = r = e;
171
171
  else {
172
- const i = e < 0.5 ? e * (1 + o) : e + o - e * o, p = 2 * e - i;
173
- l = fe(p, i, t + 1 / 3), a = fe(p, i, t), r = fe(p, i, t - 1 / 3);
172
+ const i = e < 0.5 ? e * (1 + o) : e + o - e * o, f = 2 * e - i;
173
+ l = fe(f, i, t + 1 / 3), a = fe(f, i, t), r = fe(f, i, t - 1 / 3);
174
174
  }
175
175
  return {
176
176
  r: Math.round(l * 255),
@@ -198,8 +198,8 @@ function Je(n, t) {
198
198
  for (a in e.colors) {
199
199
  const r = e.colors[a];
200
200
  if (r && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
201
- const i = Ce(r), p = `${a}Light`, m = `${a}Dark`;
202
- p in e.colors || (e.colors[p] = Ie(Pe(i, 85))), m in e.colors || (e.colors[m] = Ie(Ze(i, 25)));
201
+ const i = Ce(r), f = `${a}Light`, m = `${a}Dark`;
202
+ f in e.colors || (e.colors[f] = Ie(Pe(i, 85))), m in e.colors || (e.colors[m] = Ie(Ze(i, 25)));
203
203
  }
204
204
  }
205
205
  }
@@ -308,10 +308,10 @@ function V(n) {
308
308
  if (a === null)
309
309
  return t(o, e);
310
310
  const r = new Proxy(o, {
311
- get(i, p) {
311
+ get(i, f) {
312
312
  var _;
313
- const m = Reflect.get(i, p), f = (_ = l.value) == null ? void 0 : _[p];
314
- return typeof p == "string" && !at(a.vnode, p) ? f ?? m : m;
313
+ const m = Reflect.get(i, f), p = (_ = l.value) == null ? void 0 : _[f];
314
+ return typeof f == "string" && !at(a.vnode, f) ? p ?? m : m;
315
315
  }
316
316
  });
317
317
  return t(r, e);
@@ -357,7 +357,7 @@ const be = V(ot), st = ["disabled"], it = {
357
357
  e.class
358
358
  ];
359
359
  });
360
- return (i, p) => (c(), v("button", {
360
+ return (i, f) => (c(), v("button", {
361
361
  type: "button",
362
362
  class: T(r.value),
363
363
  disabled: l.value,
@@ -436,7 +436,7 @@ const be = V(ot), st = ["disabled"], it = {
436
436
  function r(i) {
437
437
  a.value === i.key && !e.mandatory ? a.value = void 0 : a.value = i.key;
438
438
  }
439
- return (i, p) => (c(), x($(ft), {
439
+ return (i, f) => (c(), x($(ft), {
440
440
  "b-style": "secondary",
441
441
  class: T(e.class),
442
442
  disabled: e.disabled,
@@ -654,7 +654,7 @@ const kt = /* @__PURE__ */ L({
654
654
  function r() {
655
655
  o("unloaded");
656
656
  }
657
- return (i, p) => (c(), x($(bt), {
657
+ return (i, f) => (c(), x($(bt), {
658
658
  class: T(["q-icon", "q-icon__svg", e.class]),
659
659
  src: e.bundle,
660
660
  symbol: e.icon,
@@ -677,8 +677,8 @@ const kt = /* @__PURE__ */ L({
677
677
  },
678
678
  emits: ["update:modelValue"],
679
679
  setup(n, { expose: t, emit: o }) {
680
- const e = o, l = n, a = q(l.modelValue), r = q(!1), i = g(() => p.value.length > 1 ? "div" : "ul"), p = g(() => l.groups.length ? l.groups : [{ id: "", title: "" }]), m = q(null);
681
- function f(d) {
680
+ const e = o, l = n, a = q(l.modelValue), r = q(!1), i = g(() => f.value.length > 1 ? "div" : "ul"), f = g(() => l.groups.length ? l.groups : [{ id: "", title: "" }]), m = q(null);
681
+ function p(d) {
682
682
  a.value = d, e("update:modelValue", d);
683
683
  }
684
684
  function _() {
@@ -797,9 +797,9 @@ const kt = /* @__PURE__ */ L({
797
797
  onKeydown: A
798
798
  }, {
799
799
  default: I(() => [
800
- (c(!0), v(J, null, pe(p.value, (k) => (c(), x($(Ct), {
800
+ (c(!0), v(J, null, pe(f.value, (k) => (c(), x($(Ct), {
801
801
  key: k.id,
802
- title: k.title,
802
+ title: f.value.length === 1 ? void 0 : k.title,
803
803
  disabled: k.disabled
804
804
  }, {
805
805
  default: I(() => [
@@ -811,7 +811,7 @@ const kt = /* @__PURE__ */ L({
811
811
  disabled: l.disabled || B.disabled,
812
812
  highlighted: l.highlighted === B[l.itemValue],
813
813
  selected: a.value === B[l.itemValue],
814
- onSelect: f
814
+ onSelect: p
815
815
  }, {
816
816
  default: I(() => [
817
817
  b(d.$slots, "item", { item: B })
@@ -854,7 +854,7 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
854
854
  function r(i) {
855
855
  i.key === "Tab" && a(), (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), a());
856
856
  }
857
- return (i, p) => (c(), v("li", {
857
+ return (i, f) => (c(), v("li", {
858
858
  id: $(l),
859
859
  role: "option",
860
860
  tabindex: e.disabled ? void 0 : -2,
@@ -904,25 +904,25 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
904
904
  }
905
905
  }), Qe = V(qt), zt = V(Vt), Ct = V(Et);
906
906
  function Ft(n, t, o = "right", e) {
907
- const l = n.getBoundingClientRect(), a = l.x + window.scrollX, r = l.y + window.scrollY, i = t == null ? void 0 : t.getBoundingClientRect(), p = (i == null ? void 0 : i.width) ?? 0, m = (i == null ? void 0 : i.height) ?? 0;
908
- let f = o;
909
- i && !Re(l, i, f) && (f = At(l, i, f));
910
- const _ = { x: 0, y: 0, placement: f };
911
- switch (f) {
907
+ const l = n.getBoundingClientRect(), a = l.x + window.scrollX, r = l.y + window.scrollY, i = t == null ? void 0 : t.getBoundingClientRect(), f = (i == null ? void 0 : i.width) ?? 0, m = (i == null ? void 0 : i.height) ?? 0;
908
+ let p = o;
909
+ i && !Re(l, i, p) && (p = At(l, i, p));
910
+ const _ = { x: 0, y: 0, placement: p };
911
+ switch (p) {
912
912
  case "top":
913
- e === "anchor" ? _.x = a : _.x = a + (l.width - p) / 2, _.y = r - m;
913
+ e === "anchor" ? _.x = a : _.x = a + (l.width - f) / 2, _.y = r - m;
914
914
  break;
915
915
  case "bottom":
916
- e === "anchor" ? _.x = a : _.x = a + (l.width - p) / 2, _.y = r + l.height;
916
+ e === "anchor" ? _.x = a : _.x = a + (l.width - f) / 2, _.y = r + l.height;
917
917
  break;
918
918
  case "left":
919
- _.x = a - p, _.y = r + l.height / 2 - m / 2;
919
+ _.x = a - f, _.y = r + l.height / 2 - m / 2;
920
920
  break;
921
921
  case "right":
922
922
  _.x = a + l.width, _.y = r + l.height / 2 - m / 2;
923
923
  break;
924
924
  }
925
- return e === "anchor" && l.width >= p && (_.width = l.width), _;
925
+ return e === "anchor" && l.width >= f && (_.width = l.width), _;
926
926
  }
927
927
  function Re(n, t, o) {
928
928
  let e = !1, l = !1;
@@ -1011,7 +1011,7 @@ const Qt = ["role"], Rt = {
1011
1011
  () => r.visible,
1012
1012
  () => r.animating = !0
1013
1013
  );
1014
- const p = g(() => {
1014
+ const f = g(() => {
1015
1015
  let h = 0, u = 0;
1016
1016
  switch (r.placement) {
1017
1017
  case "top":
@@ -1033,7 +1033,7 @@ const Qt = ["role"], Rt = {
1033
1033
  };
1034
1034
  return r.width !== void 0 && ["top", "bottom"].includes(r.placement) && (d.width = `${r.width}px`), d;
1035
1035
  }), m = q(null);
1036
- function f() {
1036
+ function p() {
1037
1037
  if (e.anchor) {
1038
1038
  const h = oe(e.anchor);
1039
1039
  if (h) {
@@ -1047,7 +1047,7 @@ const Qt = ["role"], Rt = {
1047
1047
  }
1048
1048
  }
1049
1049
  }
1050
- F([() => i.value, () => e.placement], f);
1050
+ F([() => i.value, () => e.placement], p);
1051
1051
  let _;
1052
1052
  function C(h) {
1053
1053
  _ || (_ = window.setTimeout(() => {
@@ -1094,22 +1094,22 @@ const Qt = ["role"], Rt = {
1094
1094
  if (!e.anchor)
1095
1095
  return;
1096
1096
  const h = oe(e.anchor);
1097
- h && (window.addEventListener("scroll", f), window.addEventListener("resize", f), z = new MutationObserver(f), z.observe(h, {
1097
+ h && (window.addEventListener("scroll", p), window.addEventListener("resize", p), z = new MutationObserver(p), z.observe(h, {
1098
1098
  attributes: !1,
1099
1099
  childList: !0,
1100
1100
  characterData: !0,
1101
1101
  subtree: !0
1102
- }), f());
1102
+ }), p());
1103
1103
  });
1104
1104
  }
1105
1105
  function Q() {
1106
- window.removeEventListener("scroll", f), window.removeEventListener("resize", f), z == null || z.disconnect();
1106
+ window.removeEventListener("scroll", p), window.removeEventListener("resize", p), z == null || z.disconnect();
1107
1107
  }
1108
1108
  let M;
1109
1109
  function U() {
1110
1110
  if (!e.anchor)
1111
1111
  return;
1112
- oe(e.anchor) ? (f(), M = window.setTimeout(U, 100)) : E();
1112
+ oe(e.anchor) ? (p(), M = window.setTimeout(U, 100)) : E();
1113
1113
  }
1114
1114
  function Y() {
1115
1115
  X(), e.spy && U();
@@ -1117,7 +1117,7 @@ const Qt = ["role"], Rt = {
1117
1117
  function K() {
1118
1118
  Q(), e.spy && (clearTimeout(M), M = void 0);
1119
1119
  }
1120
- return Ne(K), De(f), F(
1120
+ return Ne(K), De(p), F(
1121
1121
  () => e.disabled,
1122
1122
  (h) => {
1123
1123
  h || H();
@@ -1150,7 +1150,7 @@ const Qt = ["role"], Rt = {
1150
1150
  i.value ? (c(), v("div", {
1151
1151
  key: 0,
1152
1152
  class: T(l.value),
1153
- style: ae(p.value)
1153
+ style: ae(f.value)
1154
1154
  }, [
1155
1155
  j("div", ee({
1156
1156
  class: "q-overlay__content",
@@ -1258,26 +1258,26 @@ const Qt = ["role"], Rt = {
1258
1258
  },
1259
1259
  emits: ["update:modelValue"],
1260
1260
  setup(n, { expose: t, emit: o }) {
1261
- const e = o, l = n, a = q(l.modelValue), r = q(null), i = q(null), p = g({
1261
+ const e = o, l = n, a = q(l.modelValue), r = q(null), i = q(null), f = g({
1262
1262
  get() {
1263
1263
  return a.value;
1264
1264
  },
1265
- set(f) {
1266
- a.value = f, e("update:modelValue", f);
1265
+ set(p) {
1266
+ a.value = p, e("update:modelValue", p);
1267
1267
  }
1268
1268
  }), m = g(
1269
1269
  () => l.readonly || l.disabled ? "" : l.placeholder
1270
1270
  );
1271
1271
  return F(
1272
1272
  () => l.modelValue,
1273
- (f) => a.value = f
1273
+ (p) => a.value = p
1274
1274
  ), t({
1275
1275
  fieldRef: g(() => {
1276
- var f;
1277
- return (f = r.value) == null ? void 0 : f.fieldRef;
1276
+ var p;
1277
+ return (p = r.value) == null ? void 0 : p.fieldRef;
1278
1278
  }),
1279
1279
  inputRef: i
1280
- }), (f, _) => (c(), x($(ge), {
1280
+ }), (p, _) => (c(), x($(ge), {
1281
1281
  ref_key: "fieldRef",
1282
1282
  ref: r,
1283
1283
  class: T(["q-text-field", l.class]),
@@ -1289,14 +1289,14 @@ const Qt = ["role"], Rt = {
1289
1289
  required: l.required
1290
1290
  }, he({
1291
1291
  "label.prepend": I(() => [
1292
- b(f.$slots, "label.prepend")
1292
+ b(p.$slots, "label.prepend")
1293
1293
  ]),
1294
1294
  "label.append": I(() => [
1295
- b(f.$slots, "label.append")
1295
+ b(p.$slots, "label.append")
1296
1296
  ]),
1297
1297
  default: I(() => [
1298
1298
  Ge(j("input", ee({
1299
- "onUpdate:modelValue": _[0] || (_[0] = (C) => p.value = C),
1299
+ "onUpdate:modelValue": _[0] || (_[0] = (C) => f.value = C),
1300
1300
  ref_key: "inputRef",
1301
1301
  ref: i,
1302
1302
  class: "q-text-field__input",
@@ -1307,30 +1307,30 @@ const Qt = ["role"], Rt = {
1307
1307
  readonly: l.readonly,
1308
1308
  disabled: l.disabled,
1309
1309
  maxlength: l.maxLength
1310
- }, f.$attrs), null, 16, jt), [
1311
- [je, p.value]
1310
+ }, p.$attrs), null, 16, jt), [
1311
+ [je, f.value]
1312
1312
  ])
1313
1313
  ]),
1314
1314
  _: 2
1315
1315
  }, [
1316
- f.$slots.prepend ? {
1316
+ p.$slots.prepend ? {
1317
1317
  name: "prepend",
1318
1318
  fn: I(() => [
1319
- b(f.$slots, "prepend")
1319
+ b(p.$slots, "prepend")
1320
1320
  ]),
1321
1321
  key: "0"
1322
1322
  } : void 0,
1323
- f.$slots.append ? {
1323
+ p.$slots.append ? {
1324
1324
  name: "append",
1325
1325
  fn: I(() => [
1326
- b(f.$slots, "append")
1326
+ b(p.$slots, "append")
1327
1327
  ]),
1328
1328
  key: "1"
1329
1329
  } : void 0,
1330
- f.$slots.extras ? {
1330
+ p.$slots.extras ? {
1331
1331
  name: "extras",
1332
1332
  fn: I(() => [
1333
- b(f.$slots, "extras")
1333
+ b(p.$slots, "extras")
1334
1334
  ]),
1335
1335
  key: "2"
1336
1336
  } : void 0
@@ -1370,7 +1370,7 @@ const Qt = ["role"], Rt = {
1370
1370
  },
1371
1371
  emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
1372
1372
  setup(n, { expose: t, emit: o }) {
1373
- const e = o, l = n, a = q(l.modelValue), r = q(!1), i = q(""), p = q(void 0), m = q(null), f = q(null), _ = q(null);
1373
+ const e = o, l = n, a = q(l.modelValue), r = q(!1), i = q(""), f = q(void 0), m = q(null), p = q(null), _ = q(null);
1374
1374
  De(Q);
1375
1375
  const C = g(
1376
1376
  () => l.clearable && !l.readonly && !l.disabled && !l.loading
@@ -1383,14 +1383,14 @@ const Qt = ["role"], Rt = {
1383
1383
  var s;
1384
1384
  return (s = l.items) == null ? void 0 : s.find((w) => w[l.itemValue] === a.value);
1385
1385
  }), R = g(() => {
1386
- const s = p.value;
1386
+ const s = f.value;
1387
1387
  if (s !== void 0 && E.value[s])
1388
1388
  return E.value[s];
1389
1389
  }), O = g(() => {
1390
1390
  var w;
1391
- if (p.value === void 0)
1391
+ if (f.value === void 0)
1392
1392
  return;
1393
- const s = (w = f.value) == null ? void 0 : w.getItem(p.value);
1393
+ const s = (w = p.value) == null ? void 0 : w.getItem(f.value);
1394
1394
  return s == null ? void 0 : s.id;
1395
1395
  }), z = g(() => {
1396
1396
  var s;
@@ -1410,10 +1410,10 @@ const Qt = ["role"], Rt = {
1410
1410
  r.value || l.readonly || l.disabled || (e("before-show"), r.value = !0);
1411
1411
  }
1412
1412
  function U() {
1413
- r.value && (e("before-hide"), r.value = !1, p.value = void 0);
1413
+ r.value && (e("before-hide"), r.value = !1, f.value = void 0);
1414
1414
  }
1415
1415
  function Y() {
1416
- H(void 0), p.value = void 0;
1416
+ H(void 0), f.value = void 0;
1417
1417
  }
1418
1418
  function K() {
1419
1419
  if (M(), A.value !== void 0) {
@@ -1428,11 +1428,11 @@ const Qt = ["role"], Rt = {
1428
1428
  r.value ? U() : Y();
1429
1429
  else if (["ArrowDown", "ArrowUp"].includes(s.key))
1430
1430
  r.value ? P(() => {
1431
- if (p.value === void 0)
1431
+ if (f.value === void 0)
1432
1432
  u();
1433
1433
  else {
1434
1434
  const W = s.key === "ArrowDown" ? "next" : "prev";
1435
- y(p.value, W);
1435
+ y(f.value, W);
1436
1436
  }
1437
1437
  }) : (M(), P(() => {
1438
1438
  s.key === "ArrowDown" ? u() : d();
@@ -1442,7 +1442,7 @@ const Qt = ["role"], Rt = {
1442
1442
  return;
1443
1443
  X(R.value[l.itemValue]);
1444
1444
  } else
1445
- s.key === "Home" ? p.value = (w = f.value) == null ? void 0 : w.getFirstFocusableItemIndex() : s.key === "End" ? p.value = (D = f.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && M();
1445
+ s.key === "Home" ? f.value = (w = p.value) == null ? void 0 : w.getFirstFocusableItemIndex() : s.key === "End" ? f.value = (D = p.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && M();
1446
1446
  }
1447
1447
  function u() {
1448
1448
  var s, w;
@@ -1450,17 +1450,17 @@ const Qt = ["role"], Rt = {
1450
1450
  const D = E.value.findIndex(
1451
1451
  (W) => W[l.itemValue] === a.value
1452
1452
  );
1453
- D === -1 ? p.value = (s = f.value) == null ? void 0 : s.getFirstFocusableItemIndex() : p.value = D;
1453
+ D === -1 ? f.value = (s = p.value) == null ? void 0 : s.getFirstFocusableItemIndex() : f.value = D;
1454
1454
  } else
1455
- p.value = (w = f.value) == null ? void 0 : w.getFirstFocusableItemIndex();
1455
+ f.value = (w = p.value) == null ? void 0 : w.getFirstFocusableItemIndex();
1456
1456
  }
1457
1457
  function d() {
1458
1458
  var s;
1459
- p.value = (s = f.value) == null ? void 0 : s.getLastFocusableItemIndex();
1459
+ f.value = (s = p.value) == null ? void 0 : s.getLastFocusableItemIndex();
1460
1460
  }
1461
1461
  function y(s, w) {
1462
1462
  var D;
1463
- p.value = (D = f.value) == null ? void 0 : D.getAdjacentItemIndex(s, w);
1463
+ f.value = (D = p.value) == null ? void 0 : D.getAdjacentItemIndex(s, w);
1464
1464
  }
1465
1465
  function k(s) {
1466
1466
  var w, D, W;
@@ -1478,7 +1478,7 @@ const Qt = ["role"], Rt = {
1478
1478
  }
1479
1479
  function _e(s) {
1480
1480
  var D;
1481
- const w = (D = f.value) == null ? void 0 : D.getItem(s);
1481
+ const w = (D = p.value) == null ? void 0 : D.getItem(s);
1482
1482
  w == null || w.scrollIntoView({ block: "nearest", inline: "start" });
1483
1483
  }
1484
1484
  return F(
@@ -1486,7 +1486,7 @@ const Qt = ["role"], Rt = {
1486
1486
  (s) => {
1487
1487
  a.value = s, Q();
1488
1488
  }
1489
- ), F(p, (s) => {
1489
+ ), F(f, (s) => {
1490
1490
  s !== void 0 && _e(s);
1491
1491
  }), F(i, (s) => {
1492
1492
  !s && C.value ? Y() : r.value && l.selectionMode === "automatic" && P(u), e("update:inputValue", s);
@@ -1577,7 +1577,7 @@ const Qt = ["role"], Rt = {
1577
1577
  })) : E.value.length ? (c(), x($(Qe), {
1578
1578
  key: 1,
1579
1579
  ref_key: "listRef",
1580
- ref: f,
1580
+ ref: p,
1581
1581
  class: "q-select__items",
1582
1582
  modelValue: a.value,
1583
1583
  "onUpdate:modelValue": [
@@ -1754,13 +1754,13 @@ const Qt = ["role"], Rt = {
1754
1754
  },
1755
1755
  emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
1756
1756
  setup(n, { emit: t }) {
1757
- const o = t, e = n, l = q(e.modelValue), a = q(!1), r = q(""), i = q(null), p = q(null), m = q(null), f = g(
1757
+ const o = t, e = n, l = q(e.modelValue), a = q(!1), r = q(""), i = q(null), f = q(null), m = q(null), p = g(
1758
1758
  () => {
1759
1759
  var u;
1760
1760
  return (u = e.items) == null ? void 0 : u.find((d) => d[e.itemValue] === l.value);
1761
1761
  }
1762
1762
  ), _ = g(
1763
- () => f.value ? f.value[e.itemLabel] : ""
1763
+ () => p.value ? p.value[e.itemLabel] : ""
1764
1764
  ), C = g(
1765
1765
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
1766
1766
  );
@@ -1812,11 +1812,11 @@ const Qt = ["role"], Rt = {
1812
1812
  }
1813
1813
  function K() {
1814
1814
  var u;
1815
- (u = p.value) == null || u.$el.focus();
1815
+ (u = f.value) == null || u.$el.focus();
1816
1816
  }
1817
1817
  function h(u) {
1818
1818
  var d;
1819
- (d = p.value) == null || d.focusItem(u);
1819
+ (d = f.value) == null || d.focusItem(u);
1820
1820
  }
1821
1821
  return F(
1822
1822
  () => e.modelValue,
@@ -1868,12 +1868,12 @@ const Qt = ["role"], Rt = {
1868
1868
  ]),
1869
1869
  _: 2
1870
1870
  }, [
1871
- (y = f.value) != null && y.icon ? {
1871
+ (y = p.value) != null && y.icon ? {
1872
1872
  name: "prepend",
1873
1873
  fn: I(() => {
1874
1874
  var k;
1875
1875
  return [
1876
- G($(Z), ie(me((k = f.value) == null ? void 0 : k.icon)), null, 16)
1876
+ G($(Z), ie(me((k = p.value) == null ? void 0 : k.icon)), null, 16)
1877
1877
  ];
1878
1878
  }),
1879
1879
  key: "0"
@@ -1907,7 +1907,7 @@ const Qt = ["role"], Rt = {
1907
1907
  })) : (c(), x($(Qe), {
1908
1908
  key: 1,
1909
1909
  ref_key: "listRef",
1910
- ref: p,
1910
+ ref: f,
1911
1911
  class: "q-select__items",
1912
1912
  modelValue: l.value,
1913
1913
  "onUpdate:modelValue": [