@quidgest/ui 0.12.2 → 0.13.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 (43) hide show
  1. package/dist/manifest/components.json +2 -0
  2. package/dist/ui.css +166 -1
  3. package/dist/ui.esm.js +1045 -830
  4. package/dist/ui.js +6 -6
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +111 -93
  7. package/dist/ui.scss +122 -2
  8. package/esm/components/QBadge/QBadge.d.ts +72 -0
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -0
  10. package/esm/components/QBadge/QBadge.vue.js +87 -0
  11. package/esm/components/QBadge/QBadge.vue2.js +4 -0
  12. package/esm/components/QBadge/index.d.ts +119 -0
  13. package/esm/components/QBadge/index.d.ts.map +1 -0
  14. package/esm/components/QBadge/index.js +6 -0
  15. package/esm/components/QButton/index.d.ts +3 -0
  16. package/esm/components/QButton/index.d.ts.map +1 -1
  17. package/esm/components/QCombobox/QCombobox.d.ts +10 -10
  18. package/esm/components/QCombobox/index.d.ts +30 -30
  19. package/esm/components/QDialog/QDialog.d.ts +184 -0
  20. package/esm/components/QDialog/QDialog.d.ts.map +1 -0
  21. package/esm/components/QDialog/QDialog.vue.js +146 -0
  22. package/esm/components/QDialog/QDialog.vue2.js +4 -0
  23. package/esm/components/QDialog/index.d.ts +237 -0
  24. package/esm/components/QDialog/index.d.ts.map +1 -0
  25. package/esm/components/QDialog/index.js +6 -0
  26. package/esm/components/QList/index.d.ts +16 -16
  27. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  28. package/esm/components/QSelect/QSelect.vue.js +34 -34
  29. package/esm/components/QTextField/QTextField.d.ts +5 -5
  30. package/esm/components/QTextField/index.d.ts +11 -11
  31. package/esm/components/QTooltip/QTooltip.d.ts +15 -0
  32. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  33. package/esm/components/QTooltip/QTooltip.vue.js +44 -27
  34. package/esm/components/QTooltip/index.d.ts +20 -0
  35. package/esm/components/QTooltip/index.d.ts.map +1 -1
  36. package/esm/components/index.d.ts +2 -0
  37. package/esm/components/index.d.ts.map +1 -1
  38. package/esm/components/index.js +43 -39
  39. package/esm/index.d.ts +2 -0
  40. package/esm/utils/color.d.ts +7 -1
  41. package/esm/utils/color.d.ts.map +1 -1
  42. package/esm/utils/color.js +54 -9
  43. package/package.json +1 -1
@@ -0,0 +1,237 @@
1
+ import { DialogButton } from './QDialog';
2
+
3
+ declare const QDialog: {
4
+ new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
5
+ modelValue: import('vue').PropType<boolean>;
6
+ class: {
7
+ type: import('vue').PropType<string | unknown[]>;
8
+ default: undefined;
9
+ };
10
+ html: {
11
+ type: import('vue').PropType<boolean>;
12
+ default: boolean;
13
+ };
14
+ title: {
15
+ type: import('vue').PropType<string>;
16
+ default: string;
17
+ };
18
+ text: {
19
+ type: import('vue').PropType<string>;
20
+ default: string;
21
+ };
22
+ icon: {
23
+ type: import('vue').PropType<import('..').Icon>;
24
+ default: () => import('..').Icon;
25
+ };
26
+ id: {
27
+ type: import('vue').PropType<string>;
28
+ default: undefined;
29
+ };
30
+ attach: {
31
+ type: import('vue').PropType<string>;
32
+ default: string;
33
+ };
34
+ inline: {
35
+ type: import('vue').PropType<boolean>;
36
+ };
37
+ backdropBlur: {
38
+ type: import('vue').PropType<boolean>;
39
+ default: boolean;
40
+ };
41
+ buttons: {
42
+ type: import('vue').PropType<DialogButton[]>;
43
+ default: () => DialogButton[];
44
+ };
45
+ dismissible: {
46
+ type: import('vue').PropType<boolean>;
47
+ default: boolean;
48
+ };
49
+ }>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
50
+ modelValue: import('vue').PropType<boolean>;
51
+ class: {
52
+ type: import('vue').PropType<string | unknown[]>;
53
+ default: undefined;
54
+ };
55
+ html: {
56
+ type: import('vue').PropType<boolean>;
57
+ default: boolean;
58
+ };
59
+ title: {
60
+ type: import('vue').PropType<string>;
61
+ default: string;
62
+ };
63
+ text: {
64
+ type: import('vue').PropType<string>;
65
+ default: string;
66
+ };
67
+ icon: {
68
+ type: import('vue').PropType<import('..').Icon>;
69
+ default: () => import('..').Icon;
70
+ };
71
+ id: {
72
+ type: import('vue').PropType<string>;
73
+ default: undefined;
74
+ };
75
+ attach: {
76
+ type: import('vue').PropType<string>;
77
+ default: string;
78
+ };
79
+ inline: {
80
+ type: import('vue').PropType<boolean>;
81
+ };
82
+ backdropBlur: {
83
+ type: import('vue').PropType<boolean>;
84
+ default: boolean;
85
+ };
86
+ buttons: {
87
+ type: import('vue').PropType<DialogButton[]>;
88
+ default: () => DialogButton[];
89
+ };
90
+ dismissible: {
91
+ type: import('vue').PropType<boolean>;
92
+ default: boolean;
93
+ };
94
+ }>>, {
95
+ class: string | unknown[];
96
+ html: boolean;
97
+ title: string;
98
+ text: string;
99
+ icon: import('..').Icon;
100
+ id: string;
101
+ attach: string;
102
+ backdropBlur: boolean;
103
+ buttons: DialogButton[];
104
+ dismissible: boolean;
105
+ }, true, {}, {}, {
106
+ P: {};
107
+ B: {};
108
+ D: {};
109
+ C: {};
110
+ M: {};
111
+ Defaults: {};
112
+ }, Readonly<import('vue').ExtractPropTypes<{
113
+ modelValue: import('vue').PropType<boolean>;
114
+ class: {
115
+ type: import('vue').PropType<string | unknown[]>;
116
+ default: undefined;
117
+ };
118
+ html: {
119
+ type: import('vue').PropType<boolean>;
120
+ default: boolean;
121
+ };
122
+ title: {
123
+ type: import('vue').PropType<string>;
124
+ default: string;
125
+ };
126
+ text: {
127
+ type: import('vue').PropType<string>;
128
+ default: string;
129
+ };
130
+ icon: {
131
+ type: import('vue').PropType<import('..').Icon>;
132
+ default: () => import('..').Icon;
133
+ };
134
+ id: {
135
+ type: import('vue').PropType<string>;
136
+ default: undefined;
137
+ };
138
+ attach: {
139
+ type: import('vue').PropType<string>;
140
+ default: string;
141
+ };
142
+ inline: {
143
+ type: import('vue').PropType<boolean>;
144
+ };
145
+ backdropBlur: {
146
+ type: import('vue').PropType<boolean>;
147
+ default: boolean;
148
+ };
149
+ buttons: {
150
+ type: import('vue').PropType<DialogButton[]>;
151
+ default: () => DialogButton[];
152
+ };
153
+ dismissible: {
154
+ type: import('vue').PropType<boolean>;
155
+ default: boolean;
156
+ };
157
+ }>>, {}, {}, {}, {}, {
158
+ class: string | unknown[];
159
+ html: boolean;
160
+ title: string;
161
+ text: string;
162
+ icon: import('..').Icon;
163
+ id: string;
164
+ attach: string;
165
+ backdropBlur: boolean;
166
+ buttons: DialogButton[];
167
+ dismissible: boolean;
168
+ }>;
169
+ __isFragment?: undefined;
170
+ __isTeleport?: undefined;
171
+ __isSuspense?: undefined;
172
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
173
+ modelValue: import('vue').PropType<boolean>;
174
+ class: {
175
+ type: import('vue').PropType<string | unknown[]>;
176
+ default: undefined;
177
+ };
178
+ html: {
179
+ type: import('vue').PropType<boolean>;
180
+ default: boolean;
181
+ };
182
+ title: {
183
+ type: import('vue').PropType<string>;
184
+ default: string;
185
+ };
186
+ text: {
187
+ type: import('vue').PropType<string>;
188
+ default: string;
189
+ };
190
+ icon: {
191
+ type: import('vue').PropType<import('..').Icon>;
192
+ default: () => import('..').Icon;
193
+ };
194
+ id: {
195
+ type: import('vue').PropType<string>;
196
+ default: undefined;
197
+ };
198
+ attach: {
199
+ type: import('vue').PropType<string>;
200
+ default: string;
201
+ };
202
+ inline: {
203
+ type: import('vue').PropType<boolean>;
204
+ };
205
+ backdropBlur: {
206
+ type: import('vue').PropType<boolean>;
207
+ default: boolean;
208
+ };
209
+ buttons: {
210
+ type: import('vue').PropType<DialogButton[]>;
211
+ default: () => DialogButton[];
212
+ };
213
+ dismissible: {
214
+ type: import('vue').PropType<boolean>;
215
+ default: boolean;
216
+ };
217
+ }>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
218
+ class: string | unknown[];
219
+ html: boolean;
220
+ title: string;
221
+ text: string;
222
+ icon: import('..').Icon;
223
+ id: string;
224
+ attach: string;
225
+ backdropBlur: boolean;
226
+ buttons: DialogButton[];
227
+ dismissible: boolean;
228
+ }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
229
+ $slots: {
230
+ "body.content"?(_: {}): any;
231
+ "body.icon"?(_: {}): any;
232
+ "body.append"?(_: {}): any;
233
+ };
234
+ });
235
+ export { QDialog };
236
+ export type { DialogButton };
237
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAKjD,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAA;AAG5D,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,YAAY,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,6 @@
1
+ import o from "./QDialog.vue.js";
2
+ import { setupPropsProxy as r } from "../../utils/setupPropsProxy.js";
3
+ const t = r(o);
4
+ export {
5
+ t as QDialog
6
+ };
@@ -214,16 +214,16 @@ declare const QListItem: {
214
214
  type: import('vue').PropType<import('../../types/primitive').Primitive>;
215
215
  required: true;
216
216
  };
217
+ icons: {
218
+ type: import('vue').PropType<Record<string, import('..').Icon>>;
219
+ default: () => Record<string, import('..').Icon>;
220
+ };
217
221
  selected: {
218
222
  type: import('vue').PropType<boolean>;
219
223
  };
220
224
  highlighted: {
221
225
  type: import('vue').PropType<boolean>;
222
226
  };
223
- icons: {
224
- type: import('vue').PropType<Record<string, import('..').Icon>>;
225
- default: () => Record<string, import('..').Icon>;
226
- };
227
227
  description: {
228
228
  type: import('vue').PropType<string>;
229
229
  default: undefined;
@@ -248,16 +248,16 @@ declare const QListItem: {
248
248
  type: import('vue').PropType<import('../../types/primitive').Primitive>;
249
249
  required: true;
250
250
  };
251
+ icons: {
252
+ type: import('vue').PropType<Record<string, import('..').Icon>>;
253
+ default: () => Record<string, import('..').Icon>;
254
+ };
251
255
  selected: {
252
256
  type: import('vue').PropType<boolean>;
253
257
  };
254
258
  highlighted: {
255
259
  type: import('vue').PropType<boolean>;
256
260
  };
257
- icons: {
258
- type: import('vue').PropType<Record<string, import('..').Icon>>;
259
- default: () => Record<string, import('..').Icon>;
260
- };
261
261
  description: {
262
262
  type: import('vue').PropType<string>;
263
263
  default: undefined;
@@ -291,16 +291,16 @@ declare const QListItem: {
291
291
  type: import('vue').PropType<import('../../types/primitive').Primitive>;
292
292
  required: true;
293
293
  };
294
+ icons: {
295
+ type: import('vue').PropType<Record<string, import('..').Icon>>;
296
+ default: () => Record<string, import('..').Icon>;
297
+ };
294
298
  selected: {
295
299
  type: import('vue').PropType<boolean>;
296
300
  };
297
301
  highlighted: {
298
302
  type: import('vue').PropType<boolean>;
299
303
  };
300
- icons: {
301
- type: import('vue').PropType<Record<string, import('..').Icon>>;
302
- default: () => Record<string, import('..').Icon>;
303
- };
304
304
  description: {
305
305
  type: import('vue').PropType<string>;
306
306
  default: undefined;
@@ -331,16 +331,16 @@ declare const QListItem: {
331
331
  type: import('vue').PropType<import('../../types/primitive').Primitive>;
332
332
  required: true;
333
333
  };
334
+ icons: {
335
+ type: import('vue').PropType<Record<string, import('..').Icon>>;
336
+ default: () => Record<string, import('..').Icon>;
337
+ };
334
338
  selected: {
335
339
  type: import('vue').PropType<boolean>;
336
340
  };
337
341
  highlighted: {
338
342
  type: import('vue').PropType<boolean>;
339
343
  };
340
- icons: {
341
- type: import('vue').PropType<Record<string, import('..').Icon>>;
342
- default: () => Record<string, import('..').Icon>;
343
- };
344
344
  description: {
345
345
  type: import('vue').PropType<string>;
346
346
  default: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAuHA;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;AAMlD,MAAM,MAAM,YAAY,GAAG;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAA;IAEb;;OAEG;IACH,KAAK,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;QAGjD,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAClB,CAAC,EAAE,CAAA;IAEJ;;OAEG;IACH,MAAM,CAAC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O,EAAE,CAAA;CAC1B,CAAA;AAKD,QAAA,MAAM,aAAa;;CAElB,CAAA;AAGD,QAAA,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAOvC,CAAA;AAED,KAAK,KAAK,GAAG,OAAO,aAAa,CAAA;AACjC,KAAK,KAAK,GAAG,OAAO,aAAa,CAAA;;gBAqMtB,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA2VT,GAAG;oBACJ,GAAG;oBACH,GAAG;4BACK,GAAG;;;;;QACZ,GAAG;2BACM,GAAG;;AApiBxC,wBAqlBI;AASJ,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1,5 +1,5 @@
1
- import { defineComponent as J, mergeModels as Q, useModel as Y, ref as m, computed as k, watch as Z, nextTick as ee, openBlock as t, createElementBlock as p, Fragment as R, createVNode as v, unref as n, normalizeClass as le, withModifiers as D, createSlots as oe, withCtx as s, renderSlot as u, createBlock as g, normalizeProps as C, guardReactiveProps as F, createCommentVNode as h, toDisplayString as M, createTextVNode as ae, mergeProps as te, createElementVNode as ne } from "vue";
2
- import { QButton as O } from "../QButton/index.js";
1
+ import { defineComponent as J, mergeModels as R, useModel as Y, ref as m, computed as k, watch as Z, nextTick as ee, openBlock as t, createElementBlock as p, Fragment as D, createVNode as v, unref as n, normalizeClass as le, withModifiers as F, createSlots as oe, withCtx as s, renderSlot as u, createBlock as g, normalizeProps as C, guardReactiveProps as M, createCommentVNode as h, toDisplayString as O, createTextVNode as ae, mergeProps as te, createElementVNode as ne } from "vue";
2
+ import { QButton as U } from "../QButton/index.js";
3
3
  import { QField as ie } from "../QField/index.js";
4
4
  import { QIcon as S } from "../QIcon/index.js";
5
5
  import { QList as se } from "../QList/index.js";
@@ -25,7 +25,7 @@ const ue = {
25
25
  }
26
26
  }, Ve = /* @__PURE__ */ J({
27
27
  __name: "QSelect",
28
- props: /* @__PURE__ */ Q({
28
+ props: /* @__PURE__ */ R({
29
29
  id: { default: void 0 },
30
30
  label: { default: "" },
31
31
  clearable: { type: Boolean },
@@ -48,14 +48,14 @@ const ue = {
48
48
  },
49
49
  modelModifiers: {}
50
50
  }),
51
- emits: /* @__PURE__ */ Q(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
52
- setup(x, { emit: U }) {
53
- const l = x, y = U, c = Y(x, "modelValue"), a = m(!1), w = m(""), b = m(null), _ = m(null), V = m(null), A = k(() => d.value === void 0), d = k(
51
+ emits: /* @__PURE__ */ R(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
52
+ setup(x, { emit: A }) {
53
+ const l = x, y = A, c = Y(x, "modelValue"), a = m(!1), w = m(""), b = m(null), _ = m(null), V = m(null), P = k(() => d.value === void 0), d = k(
54
54
  () => {
55
55
  var e;
56
56
  return (e = l.items) == null ? void 0 : e.find((o) => o[l.itemValue] === c.value);
57
57
  }
58
- ), P = k(
58
+ ), K = k(
59
59
  () => d.value ? d.value[l.itemLabel] : ""
60
60
  ), q = k(
61
61
  () => l.clearable && !l.readonly && !l.disabled && !l.loading
@@ -64,20 +64,20 @@ const ue = {
64
64
  c.value = e, L();
65
65
  }
66
66
  function E() {
67
- q.value && B(l.emptyValue);
67
+ q.value && (B(l.emptyValue), I());
68
68
  }
69
- function K(e) {
69
+ function H(e) {
70
70
  var o, r, f;
71
71
  !((o = V.value) != null && o.contains(e.relatedTarget)) && !((f = (r = b.value) == null ? void 0 : r.fieldRef) != null && f.contains(e.relatedTarget)) && L();
72
72
  }
73
- function H() {
73
+ function W() {
74
74
  a.value || (y("before-show"), a.value = !0);
75
75
  }
76
76
  function L() {
77
77
  a.value && (y("before-hide"), a.value = !1);
78
78
  }
79
79
  function T() {
80
- l.readonly || l.disabled || (a.value ? L() : H());
80
+ l.readonly || l.disabled || (a.value ? L() : W());
81
81
  }
82
82
  let $;
83
83
  function z(e) {
@@ -95,18 +95,18 @@ const ue = {
95
95
  }, 500);
96
96
  }
97
97
  }
98
- function W() {
99
- var e;
100
- l.loading ? (e = V.value) == null || e.focus() : I(), y("show");
101
- }
102
98
  function X() {
103
- j(), y("hide");
99
+ var e;
100
+ l.loading ? (e = V.value) == null || e.focus() : N(), y("show");
104
101
  }
105
102
  function j() {
103
+ I(), y("hide");
104
+ }
105
+ function I() {
106
106
  var e, o;
107
107
  (o = (e = b.value) == null ? void 0 : e.fieldRef) == null || o.focus();
108
108
  }
109
- function I() {
109
+ function N() {
110
110
  var e;
111
111
  (e = _.value) == null || e.$el.focus();
112
112
  }
@@ -117,12 +117,12 @@ const ue = {
117
117
  return Z(
118
118
  () => l.loading,
119
119
  (e) => {
120
- !e && a.value && ee(I);
120
+ !e && a.value && ee(N);
121
121
  }
122
122
  ), (e, o) => {
123
123
  var r, f;
124
124
  return t(), p(
125
- R,
125
+ D,
126
126
  null,
127
127
  [
128
128
  v(n(ie), {
@@ -149,11 +149,11 @@ const ue = {
149
149
  "aria-haspopup": "listbox",
150
150
  size: l.size,
151
151
  onClick: T,
152
- onKeydown: D(z, ["stop"])
152
+ onKeydown: F(z, ["stop"])
153
153
  }, oe({
154
154
  append: s(() => [
155
155
  u(e.$slots, "append"),
156
- q.value && c.value ? (t(), g(n(O), {
156
+ q.value && c.value ? (t(), g(n(U), {
157
157
  key: 0,
158
158
  class: "q-select__clear",
159
159
  "b-style": "plain",
@@ -164,7 +164,7 @@ const ue = {
164
164
  default: s(() => [
165
165
  v(
166
166
  n(S),
167
- C(F(l.icons.clear)),
167
+ C(M(l.icons.clear)),
168
168
  null,
169
169
  16
170
170
  /* FULL_PROPS */
@@ -173,7 +173,7 @@ const ue = {
173
173
  _: 1
174
174
  /* STABLE */
175
175
  })) : h("v-if", !0),
176
- l.readonly ? h("v-if", !0) : (t(), g(n(O), {
176
+ l.readonly ? h("v-if", !0) : (t(), g(n(U), {
177
177
  key: 1,
178
178
  class: "q-select__chevron",
179
179
  "b-style": "plain",
@@ -185,7 +185,7 @@ const ue = {
185
185
  default: s(() => [
186
186
  v(
187
187
  n(S),
188
- C(F(l.icons.chevron)),
188
+ C(M(l.icons.chevron)),
189
189
  null,
190
190
  16
191
191
  /* FULL_PROPS */
@@ -196,13 +196,13 @@ const ue = {
196
196
  }, 8, ["disabled"]))
197
197
  ]),
198
198
  default: s(() => [
199
- A.value ? (t(), p("span", ce, [
199
+ P.value ? (t(), p("span", ce, [
200
200
  !l.readonly && !l.disabled ? (t(), p(
201
- R,
201
+ D,
202
202
  { key: 0 },
203
203
  [
204
204
  ae(
205
- M(e.texts.placeholder),
205
+ O(e.texts.placeholder),
206
206
  1
207
207
  /* TEXT */
208
208
  )
@@ -213,7 +213,7 @@ const ue = {
213
213
  ])) : (t(), p(
214
214
  "span",
215
215
  ue,
216
- M(P.value),
216
+ O(K.value),
217
217
  1
218
218
  /* TEXT */
219
219
  ))
@@ -224,12 +224,12 @@ const ue = {
224
224
  (r = d.value) != null && r.icon || e.$slots.prepend ? {
225
225
  name: "prepend",
226
226
  fn: s(() => {
227
- var i, N;
227
+ var i, Q;
228
228
  return [
229
229
  u(e.$slots, "prepend"),
230
230
  (i = d.value) != null && i.icon ? (t(), g(
231
231
  n(S),
232
- C(te({ key: 0 }, (N = d.value) == null ? void 0 : N.icon)),
232
+ C(te({ key: 0 }, (Q = d.value) == null ? void 0 : Q.icon)),
233
233
  null,
234
234
  16
235
235
  /* FULL_PROPS */
@@ -256,8 +256,8 @@ const ue = {
256
256
  "scroll-lock": "",
257
257
  anchor: (f = b.value) == null ? void 0 : f.$el,
258
258
  offset: 2,
259
- onEnter: W,
260
- onLeave: X
259
+ onEnter: X,
260
+ onLeave: j
261
261
  }, {
262
262
  default: s(() => [
263
263
  ne("div", {
@@ -267,8 +267,8 @@ const ue = {
267
267
  "data-key": l.id,
268
268
  class: "q-select__body",
269
269
  tabindex: "-1",
270
- onFocusout: K,
271
- onKeydown: D(z, ["stop"])
270
+ onFocusout: H,
271
+ onKeydown: F(z, ["stop"])
272
272
  }, [
273
273
  u(e.$slots, "body.prepend"),
274
274
  l.loading ? (t(), p("div", me, [
@@ -72,11 +72,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
72
72
  required: {
73
73
  type: import('vue').PropType<boolean>;
74
74
  };
75
- id: {
75
+ role: {
76
76
  type: import('vue').PropType<string>;
77
77
  default: undefined;
78
78
  };
79
- role: {
79
+ id: {
80
80
  type: import('vue').PropType<string>;
81
81
  default: undefined;
82
82
  };
@@ -118,11 +118,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
118
118
  required: {
119
119
  type: import('vue').PropType<boolean>;
120
120
  };
121
- id: {
121
+ role: {
122
122
  type: import('vue').PropType<string>;
123
123
  default: undefined;
124
124
  };
125
- role: {
125
+ id: {
126
126
  type: import('vue').PropType<string>;
127
127
  default: undefined;
128
128
  };
@@ -142,8 +142,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
142
142
  class: string | unknown[];
143
143
  type: string;
144
144
  label: string;
145
- id: string;
146
145
  role: string;
146
+ id: string;
147
147
  maxLength: number;
148
148
  placeholder: string;
149
149
  }, {}>, {
@@ -23,11 +23,11 @@ declare const QTextField: {
23
23
  required: {
24
24
  type: import('vue').PropType<boolean>;
25
25
  };
26
- id: {
26
+ role: {
27
27
  type: import('vue').PropType<string>;
28
28
  default: undefined;
29
29
  };
30
- role: {
30
+ id: {
31
31
  type: import('vue').PropType<string>;
32
32
  default: undefined;
33
33
  };
@@ -69,11 +69,11 @@ declare const QTextField: {
69
69
  required: {
70
70
  type: import('vue').PropType<boolean>;
71
71
  };
72
- id: {
72
+ role: {
73
73
  type: import('vue').PropType<string>;
74
74
  default: undefined;
75
75
  };
76
- role: {
76
+ id: {
77
77
  type: import('vue').PropType<string>;
78
78
  default: undefined;
79
79
  };
@@ -93,8 +93,8 @@ declare const QTextField: {
93
93
  class: string | unknown[];
94
94
  type: string;
95
95
  label: string;
96
- id: string;
97
96
  role: string;
97
+ id: string;
98
98
  maxLength: number;
99
99
  placeholder: string;
100
100
  }, true, {}, {}, {
@@ -128,11 +128,11 @@ declare const QTextField: {
128
128
  required: {
129
129
  type: import('vue').PropType<boolean>;
130
130
  };
131
- id: {
131
+ role: {
132
132
  type: import('vue').PropType<string>;
133
133
  default: undefined;
134
134
  };
135
- role: {
135
+ id: {
136
136
  type: import('vue').PropType<string>;
137
137
  default: undefined;
138
138
  };
@@ -155,8 +155,8 @@ declare const QTextField: {
155
155
  class: string | unknown[];
156
156
  type: string;
157
157
  label: string;
158
- id: string;
159
158
  role: string;
159
+ id: string;
160
160
  maxLength: number;
161
161
  placeholder: string;
162
162
  }>;
@@ -187,11 +187,11 @@ declare const QTextField: {
187
187
  required: {
188
188
  type: import('vue').PropType<boolean>;
189
189
  };
190
- id: {
190
+ role: {
191
191
  type: import('vue').PropType<string>;
192
192
  default: undefined;
193
193
  };
194
- role: {
194
+ id: {
195
195
  type: import('vue').PropType<string>;
196
196
  default: undefined;
197
197
  };
@@ -214,8 +214,8 @@ declare const QTextField: {
214
214
  class: string | unknown[];
215
215
  type: string;
216
216
  label: string;
217
- id: string;
218
217
  role: string;
218
+ id: string;
219
219
  maxLength: number;
220
220
  placeholder: string;
221
221
  }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {