@quidgest/ui 0.14.0 → 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 (117) hide show
  1. package/dist/ui.css +4 -0
  2. package/dist/ui.esm.js +693 -686
  3. package/dist/ui.js +4 -4
  4. package/dist/ui.min.js +51 -51
  5. package/dist/ui.scss +1053 -1049
  6. package/esm/components/QBadge/QBadge.d.ts +14 -41
  7. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  8. package/esm/components/QBadge/QBadge.vue.js +33 -33
  9. package/esm/components/QBadge/index.d.ts +0 -1
  10. package/esm/components/QBadge/types.d.ts +6 -7
  11. package/esm/components/QBadge/types.d.ts.map +1 -1
  12. package/esm/components/QButton/QButton.d.ts +12 -35
  13. package/esm/components/QButton/QButton.d.ts.map +1 -1
  14. package/esm/components/QButton/index.d.ts +0 -1
  15. package/esm/components/QButtonGroup/QButtonGroup.d.ts +9 -26
  16. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  17. package/esm/components/QButtonGroup/index.d.ts +0 -1
  18. package/esm/components/QButtonToggle/QButtonToggle.d.ts +17 -47
  19. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  20. package/esm/components/QButtonToggle/index.d.ts +0 -1
  21. package/esm/components/QCombobox/QCombobox.d.ts +373 -485
  22. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  23. package/esm/components/QCombobox/QCombobox.vue.js +92 -87
  24. package/esm/components/QCombobox/index.d.ts +0 -1
  25. package/esm/components/QCombobox/types.d.ts +9 -8
  26. package/esm/components/QCombobox/types.d.ts.map +1 -1
  27. package/esm/components/QCombobox/types.js +3 -1
  28. package/esm/components/QDialog/QDialog.d.ts +21 -109
  29. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  30. package/esm/components/QDialog/QDialog.vue.js +16 -16
  31. package/esm/components/QDialog/index.d.ts +0 -1
  32. package/esm/components/QDialog/types.d.ts +6 -8
  33. package/esm/components/QDialog/types.d.ts.map +1 -1
  34. package/esm/components/QField/QField.d.ts +18 -41
  35. package/esm/components/QField/QField.d.ts.map +1 -1
  36. package/esm/components/QField/index.d.ts +0 -1
  37. package/esm/components/QIcon/InlineSvg.d.ts +6 -6
  38. package/esm/components/QIcon/QIcon.d.ts +2 -28
  39. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  40. package/esm/components/QIcon/QIconFont.d.ts +2 -30
  41. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  42. package/esm/components/QIcon/QIconImg.d.ts +1 -11
  43. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  44. package/esm/components/QIcon/QIconSvg.d.ts +6 -32
  45. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  46. package/esm/components/QIcon/index.d.ts +0 -1
  47. package/esm/components/QInputGroup/QInputGroup.d.ts +12 -39
  48. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  49. package/esm/components/QInputGroup/index.d.ts +0 -1
  50. package/esm/components/QInputGroup/types.d.ts +0 -1
  51. package/esm/components/QLineLoader/QLineLoader.d.ts +2 -24
  52. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  53. package/esm/components/QLineLoader/index.d.ts +0 -1
  54. package/esm/components/QList/QList.d.ts +22 -72
  55. package/esm/components/QList/QList.d.ts.map +1 -1
  56. package/esm/components/QList/QListItem.d.ts +14 -39
  57. package/esm/components/QList/QListItem.d.ts.map +1 -1
  58. package/esm/components/QList/QListItem.vue.js +5 -5
  59. package/esm/components/QList/QListItemGroup.d.ts +9 -26
  60. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  61. package/esm/components/QList/index.d.ts +0 -1
  62. package/esm/components/QList/types.d.ts +5 -7
  63. package/esm/components/QList/types.d.ts.map +1 -1
  64. package/esm/components/QOverlay/QOverlay.d.ts +23 -141
  65. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  66. package/esm/components/QOverlay/index.d.ts +0 -1
  67. package/esm/components/QOverlay/types.d.ts +0 -1
  68. package/esm/components/QPopover/QPopover.d.ts +19 -77
  69. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  70. package/esm/components/QPopover/index.d.ts +0 -1
  71. package/esm/components/QPopover/types.d.ts +0 -1
  72. package/esm/components/QPropertyList/QPropertyList.d.ts +28 -56
  73. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  74. package/esm/components/QPropertyList/QPropertyList.vue.js +61 -62
  75. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +7 -44
  76. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  77. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +22 -26
  78. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +11 -43
  79. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
  80. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +14 -16
  81. package/esm/components/QPropertyList/QPropertyListRow.d.ts +12 -17
  82. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  83. package/esm/components/QPropertyList/index.d.ts +0 -1
  84. package/esm/components/QPropertyList/types.d.ts +70 -34
  85. package/esm/components/QPropertyList/types.d.ts.map +1 -1
  86. package/esm/components/QSelect/QSelect.d.ts +199 -147
  87. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  88. package/esm/components/QSelect/QSelect.vue.js +130 -125
  89. package/esm/components/QSelect/index.d.ts +0 -1
  90. package/esm/components/QSelect/types.d.ts +9 -8
  91. package/esm/components/QSelect/types.d.ts.map +1 -1
  92. package/esm/components/QSelect/types.js +5 -3
  93. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +2 -28
  94. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  95. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +19 -19
  96. package/esm/components/QSkeletonLoader/index.d.ts +0 -1
  97. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +2 -26
  98. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  99. package/esm/components/QSpinnerLoader/index.d.ts +0 -1
  100. package/esm/components/QTextField/QTextField.d.ts +100 -96
  101. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  102. package/esm/components/QTextField/index.d.ts +0 -1
  103. package/esm/components/QTextField/types.d.ts +0 -1
  104. package/esm/components/QThemeProvider/QThemeProvider.d.ts +8 -13
  105. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  106. package/esm/components/QThemeProvider/index.d.ts +0 -1
  107. package/esm/components/QTooltip/QTooltip.d.ts +23 -121
  108. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  109. package/esm/components/QTooltip/index.d.ts +0 -1
  110. package/esm/components/QTooltip/types.d.ts +0 -1
  111. package/esm/composables/defaults.d.ts +0 -1
  112. package/esm/composables/theme.d.ts +0 -1
  113. package/esm/framework.d.ts +0 -1
  114. package/esm/templates/theme.d.ts +0 -1
  115. package/esm/utils/setupPropsProxy.d.ts +0 -1
  116. package/esm/utils/theme.d.ts +0 -1
  117. package/package.json +31 -31
@@ -1,21 +1,22 @@
1
- import { defineComponent as J, mergeModels as R, useModel as Y, ref as f, computed as k, watch as Z, nextTick as ee, openBlock as t, createElementBlock as m, Fragment as D, createVNode as p, unref as n, normalizeClass as le, withModifiers as F, createSlots as ae, withCtx as i, renderSlot as u, createBlock as g, normalizeProps as S, guardReactiveProps as M, createCommentVNode as h, toDisplayString as O, createTextVNode as oe, mergeProps as te, createElementVNode as ne } from "vue";
1
+ import { defineComponent as Y, mergeModels as R, useModel as Z, ref as f, computed as k, watch as ee, nextTick as le, openBlock as o, createElementBlock as m, Fragment as D, createVNode as p, unref as i, mergeProps as F, withModifiers as O, createSlots as ae, withCtx as n, renderSlot as u, createBlock as g, normalizeProps as x, guardReactiveProps as A, createCommentVNode as h, toDisplayString as M, createTextVNode as te, createElementVNode as oe } from "vue";
2
2
  import { QButton as U } from "../QButton/index.js";
3
3
  import { QField as ie } from "../QField/index.js";
4
- import { QIcon as x } from "../QIcon/index.js";
5
- import { QList as se } from "../QList/index.js";
6
- import { QOverlay as de } from "../QOverlay/index.js";
7
- import { QSpinnerLoader as re } from "../QSpinnerLoader/index.js";
8
- import { DEFAULT_ICONS as ue, DEFAULT_TEXTS as ce } from "./types.js";
9
- const fe = {
4
+ import { QIcon as S } from "../QIcon/index.js";
5
+ import { QList as ne } from "../QList/index.js";
6
+ import { QOverlay as se } from "../QOverlay/index.js";
7
+ import { QSpinnerLoader as de } from "../QSpinnerLoader/index.js";
8
+ import { DEFAULT_ICONS as re, DEFAULT_TEXTS as ue } from "./types.js";
9
+ const ce = {
10
10
  key: 0,
11
11
  class: "q-select__value"
12
- }, me = {
12
+ }, fe = {
13
13
  key: 1,
14
14
  class: "q-select__placeholder"
15
- }, pe = ["data-key"], ve = {
15
+ }, me = ["data-key"], pe = {
16
16
  key: 0,
17
17
  class: "q-select__loader"
18
- }, qe = /* @__PURE__ */ J({
18
+ }, Ve = /* @__PURE__ */ Y({
19
+ inheritAttrs: !1,
19
20
  __name: "QSelect",
20
21
  props: /* @__PURE__ */ R({
21
22
  id: { default: void 0 },
@@ -32,7 +33,8 @@ const fe = {
32
33
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
33
34
  size: { default: void 0 },
34
35
  class: { default: "" },
35
- internals: { default: () => ({ icons: ue, texts: ce }) }
36
+ icons: { default: () => re },
37
+ texts: { default: () => ue }
36
38
  }, {
37
39
  modelValue: {
38
40
  type: [String, Number, Boolean, Symbol]
@@ -40,122 +42,124 @@ const fe = {
40
42
  modelModifiers: {}
41
43
  }),
42
44
  emits: /* @__PURE__ */ R(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
43
- setup(B, { emit: A }) {
44
- const l = B, v = A, y = Y(B, "modelValue"), o = f(!1), _ = f(""), b = f(null), w = f(null), V = f(null), P = k(() => s.value === void 0), s = k(
45
+ setup($, { emit: P }) {
46
+ const e = $, v = P, y = Z($, "modelValue"), t = f(!1), _ = f(""), b = f(null), w = f(null), V = f(null), K = k(() => s.value === void 0), s = k(
45
47
  () => {
46
- var e;
47
- return (e = l.items) == null ? void 0 : e.find((a) => a[l.itemValue] === y.value);
48
+ var l;
49
+ return (l = e.items) == null ? void 0 : l.find((a) => a[e.itemValue] === y.value);
48
50
  }
49
- ), K = k(
50
- () => s.value ? s.value[l.itemLabel] : ""
51
+ ), H = k(
52
+ () => s.value ? s.value[e.itemLabel] : ""
51
53
  ), q = k(
52
- () => l.clearable && !l.readonly && !l.disabled && !l.loading
54
+ () => e.clearable && !e.readonly && !e.disabled && !e.loading
53
55
  );
54
- function C(e) {
55
- y.value = e, L();
56
+ function B(l) {
57
+ y.value = l, L();
56
58
  }
57
59
  function E() {
58
- q.value && (C(l.emptyValue), I());
60
+ q.value && (B(e.emptyValue), I());
59
61
  }
60
- function H(e) {
62
+ function W(l) {
61
63
  var a, d, c;
62
- !((a = V.value) != null && a.contains(e.relatedTarget)) && !((c = (d = b.value) == null ? void 0 : d.fieldRef) != null && c.contains(e.relatedTarget)) && L();
64
+ !((a = V.value) != null && a.contains(l.relatedTarget)) && !((c = (d = b.value) == null ? void 0 : d.fieldRef) != null && c.contains(l.relatedTarget)) && L();
63
65
  }
64
- function W() {
65
- o.value || (v("before-show"), o.value = !0);
66
+ function X() {
67
+ t.value || (v("before-show"), t.value = !0);
66
68
  }
67
69
  function L() {
68
- o.value && (v("before-hide"), o.value = !1);
70
+ t.value && (v("before-hide"), t.value = !1);
69
71
  }
70
72
  function T() {
71
- l.readonly || l.disabled || (o.value ? L() : W());
73
+ e.readonly || e.disabled || (t.value ? L() : X());
72
74
  }
73
- let $;
74
- function z(e) {
75
- if (!(!e.key || l.readonly || l.disabled)) {
76
- if (window.clearTimeout($), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && (e.preventDefault(), e.stopPropagation()), ["Enter", " "].includes(e.key) && (o.value = !0), ["Escape", "Tab"].includes(e.key) && (o.value ? o.value = !1 : q.value && e.key === "Escape" && E()), e.key === "Delete" && l.clearable && E(), /^[a-z]$/i.test(e.key)) {
77
- _.value += e.key.toLowerCase();
78
- for (let a = 0; a < l.items.length; a++)
79
- if (l.items[a][l.itemLabel].toLowerCase().startsWith(_.value)) {
80
- G(a);
75
+ let C;
76
+ function z(l) {
77
+ if (!(!l.key || e.readonly || e.disabled)) {
78
+ if (window.clearTimeout(C), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " "].includes(l.key) && (t.value = !0), ["Escape", "Tab"].includes(l.key) && (t.value ? t.value = !1 : q.value && l.key === "Escape" && E()), l.key === "Delete" && e.clearable && E(), /^[a-z]$/i.test(l.key)) {
79
+ _.value += l.key.toLowerCase();
80
+ for (let a = 0; a < e.items.length; a++)
81
+ if (e.items[a][e.itemLabel].toLowerCase().startsWith(_.value)) {
82
+ J(a);
81
83
  break;
82
84
  }
83
85
  }
84
- $ = window.setTimeout(function() {
86
+ C = window.setTimeout(function() {
85
87
  _.value = "";
86
88
  }, 500);
87
89
  }
88
90
  }
89
- function X() {
90
- var e;
91
- l.loading ? (e = V.value) == null || e.focus() : N(), v("show");
92
- }
93
91
  function j() {
92
+ var l;
93
+ e.loading ? (l = V.value) == null || l.focus() : N(), v("show");
94
+ }
95
+ function G() {
94
96
  I(), v("hide");
95
97
  }
96
98
  function I() {
97
- var e, a;
98
- (a = (e = b.value) == null ? void 0 : e.fieldRef) == null || a.focus();
99
+ var l, a;
100
+ (a = (l = b.value) == null ? void 0 : l.fieldRef) == null || a.focus();
99
101
  }
100
102
  function N() {
101
- var e;
102
- (e = w.value) == null || e.$el.focus();
103
+ var l;
104
+ (l = w.value) == null || l.$el.focus();
103
105
  }
104
- function G(e) {
106
+ function J(l) {
105
107
  var a;
106
- (a = w.value) == null || a.focusItem(e);
108
+ (a = w.value) == null || a.focusItem(l);
107
109
  }
108
- return Z(
109
- () => l.loading,
110
- (e) => {
111
- !e && o.value && ee(N);
110
+ return ee(
111
+ () => e.loading,
112
+ (l) => {
113
+ !l && t.value && le(N);
112
114
  }
113
- ), (e, a) => {
115
+ ), (l, a) => {
114
116
  var d, c;
115
- return t(), m(
117
+ return o(), m(
116
118
  D,
117
119
  null,
118
120
  [
119
- p(n(ie), {
120
- id: l.id,
121
- label: l.label,
122
- required: l.required,
121
+ p(i(ie), F({
122
+ id: e.id,
123
+ label: e.label,
124
+ required: e.required,
123
125
  ref_key: "triggerEl",
124
126
  ref: b,
125
127
  role: "combobox",
126
- tabindex: l.disabled ? -1 : 0,
127
- class: le([
128
+ tabindex: e.disabled ? -1 : 0,
129
+ class: [
128
130
  "q-select",
129
131
  {
130
- "q-select--readonly": l.readonly,
131
- "q-select--disabled": l.disabled,
132
- "q-select--expanded": o.value
132
+ "q-select--readonly": e.readonly,
133
+ "q-select--disabled": e.disabled,
134
+ "q-select--expanded": t.value
133
135
  },
134
- l.class
135
- ]),
136
- readonly: l.readonly,
137
- disabled: l.disabled,
138
- "data-loading": l.loading,
139
- "aria-expanded": o.value,
136
+ e.class
137
+ ],
138
+ readonly: e.readonly,
139
+ disabled: e.disabled,
140
+ "data-loading": e.loading,
141
+ "aria-expanded": t.value,
140
142
  "aria-haspopup": "listbox",
141
- size: l.size,
143
+ size: e.size
144
+ }, l.$attrs, {
142
145
  onClick: T,
143
- onKeydown: F(z, ["stop"])
144
- }, ae({
145
- append: i(() => [
146
- u(e.$slots, "append"),
147
- q.value && y.value ? (t(), g(n(U), {
146
+ onKeydown: O(z, ["stop"])
147
+ }), ae({
148
+ append: n(() => [
149
+ u(l.$slots, "append"),
150
+ q.value && y.value ? (o(), g(i(U), {
148
151
  key: 0,
149
152
  class: "q-select__clear",
153
+ "aria-label": e.texts.clearValue,
150
154
  "b-style": "plain",
151
155
  borderless: "",
152
156
  tabindex: "-1",
153
157
  onClick: E
154
158
  }, {
155
- default: i(() => [
159
+ default: n(() => [
156
160
  p(
157
- n(x),
158
- S(M(l.internals.icons.clear)),
161
+ i(S),
162
+ x(A(e.icons.clear)),
159
163
  null,
160
164
  16
161
165
  /* FULL_PROPS */
@@ -163,20 +167,21 @@ const fe = {
163
167
  ]),
164
168
  _: 1
165
169
  /* STABLE */
166
- })) : h("v-if", !0),
167
- l.readonly ? h("v-if", !0) : (t(), g(n(U), {
170
+ }, 8, ["aria-label"])) : h("v-if", !0),
171
+ e.readonly ? h("v-if", !0) : (o(), g(i(U), {
168
172
  key: 1,
169
173
  class: "q-select__chevron",
174
+ "aria-label": e.texts.showOptions,
170
175
  "b-style": "plain",
171
176
  borderless: "",
172
177
  tabindex: "-1",
173
- disabled: l.disabled,
178
+ disabled: e.disabled,
174
179
  onClick: T
175
180
  }, {
176
- default: i(() => [
181
+ default: n(() => [
177
182
  p(
178
- n(x),
179
- S(M(l.internals.icons.chevron)),
183
+ i(S),
184
+ x(A(e.icons.chevron)),
180
185
  null,
181
186
  16
182
187
  /* FULL_PROPS */
@@ -184,16 +189,16 @@ const fe = {
184
189
  ]),
185
190
  _: 1
186
191
  /* STABLE */
187
- }, 8, ["disabled"]))
192
+ }, 8, ["aria-label", "disabled"]))
188
193
  ]),
189
- default: i(() => [
190
- P.value ? (t(), m("span", me, [
191
- !l.readonly && !l.disabled ? (t(), m(
194
+ default: n(() => [
195
+ K.value ? (o(), m("span", fe, [
196
+ !e.readonly && !e.disabled ? (o(), m(
192
197
  D,
193
198
  { key: 0 },
194
199
  [
195
- oe(
196
- O(e.internals.texts.placeholder),
200
+ te(
201
+ M(e.texts.placeholder),
197
202
  1
198
203
  /* TEXT */
199
204
  )
@@ -201,10 +206,10 @@ const fe = {
201
206
  64
202
207
  /* STABLE_FRAGMENT */
203
208
  )) : h("v-if", !0)
204
- ])) : (t(), m(
209
+ ])) : (o(), m(
205
210
  "span",
206
- fe,
207
- O(K.value),
211
+ ce,
212
+ M(H.value),
208
213
  1
209
214
  /* TEXT */
210
215
  ))
@@ -212,15 +217,15 @@ const fe = {
212
217
  _: 2
213
218
  /* DYNAMIC */
214
219
  }, [
215
- (d = s.value) != null && d.icon || e.$slots.prepend ? {
220
+ (d = s.value) != null && d.icon || l.$slots.prepend ? {
216
221
  name: "prepend",
217
- fn: i(() => {
222
+ fn: n(() => {
218
223
  var r, Q;
219
224
  return [
220
- u(e.$slots, "prepend"),
221
- (r = s.value) != null && r.icon ? (t(), g(
222
- n(x),
223
- S(te({ key: 0 }, (Q = s.value) == null ? void 0 : Q.icon)),
225
+ u(l.$slots, "prepend"),
226
+ (r = s.value) != null && r.icon ? (o(), g(
227
+ i(S),
228
+ x(F({ key: 0 }, (Q = s.value) == null ? void 0 : Q.icon)),
224
229
  null,
225
230
  16
226
231
  /* FULL_PROPS */
@@ -229,17 +234,17 @@ const fe = {
229
234
  }),
230
235
  key: "0"
231
236
  } : void 0,
232
- e.$slots.extras ? {
237
+ l.$slots.extras ? {
233
238
  name: "extras",
234
- fn: i(() => [
235
- u(e.$slots, "extras")
239
+ fn: n(() => [
240
+ u(l.$slots, "extras")
236
241
  ]),
237
242
  key: "1"
238
243
  } : void 0
239
- ]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
240
- p(n(de), {
241
- modelValue: o.value,
242
- "onUpdate:modelValue": a[0] || (a[0] = (r) => o.value = r),
244
+ ]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
245
+ p(i(se), {
246
+ modelValue: t.value,
247
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => t.value = r),
243
248
  spy: "",
244
249
  trigger: "manual",
245
250
  placement: "bottom-start",
@@ -247,44 +252,44 @@ const fe = {
247
252
  "scroll-lock": "",
248
253
  anchor: (c = b.value) == null ? void 0 : c.$el,
249
254
  offset: 2,
250
- onEnter: X,
251
- onLeave: j
255
+ onEnter: j,
256
+ onLeave: G
252
257
  }, {
253
- default: i(() => [
254
- ne("div", {
258
+ default: n(() => [
259
+ oe("div", {
255
260
  ref_key: "contentRef",
256
261
  ref: V,
257
262
  "data-testid": "combobox-dropdown",
258
- "data-key": l.id,
263
+ "data-key": e.id,
259
264
  class: "q-select__body",
260
265
  tabindex: "-1",
261
- onFocusout: H,
262
- onKeydown: F(z, ["stop"])
266
+ onFocusout: W,
267
+ onKeydown: O(z, ["stop"])
263
268
  }, [
264
- u(e.$slots, "body.prepend"),
265
- l.loading ? (t(), m("div", ve, [
266
- p(n(re), { size: 24 })
267
- ])) : (t(), g(n(se), {
269
+ u(l.$slots, "body.prepend"),
270
+ e.loading ? (o(), m("div", pe, [
271
+ p(i(de), { size: 24 })
272
+ ])) : (o(), g(i(ne), {
268
273
  key: 1,
269
274
  ref_key: "listRef",
270
275
  ref: w,
271
276
  class: "q-select__items",
272
277
  selectable: "",
273
278
  "model-value": y.value,
274
- items: l.items,
275
- groups: e.groups,
276
- "item-label": l.itemLabel,
277
- "item-value": l.itemValue,
278
- "onUpdate:modelValue": C
279
+ items: e.items,
280
+ groups: l.groups,
281
+ "item-label": e.itemLabel,
282
+ "item-value": e.itemValue,
283
+ "onUpdate:modelValue": B
279
284
  }, {
280
- item: i(({ item: r }) => [
281
- u(e.$slots, "item", { item: r })
285
+ item: n(({ item: r }) => [
286
+ u(l.$slots, "item", { item: r })
282
287
  ]),
283
288
  _: 3
284
289
  /* FORWARDED */
285
290
  }, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
286
- u(e.$slots, "body.append")
287
- ], 40, pe)
291
+ u(l.$slots, "body.append")
292
+ ], 40, me)
288
293
  ]),
289
294
  _: 3
290
295
  /* FORWARDED */
@@ -297,5 +302,5 @@ const fe = {
297
302
  }
298
303
  });
299
304
  export {
300
- qe as default
305
+ Ve as default
301
306
  };
@@ -1,5 +1,4 @@
1
1
  import { default as _QSelect } from './QSelect';
2
-
3
2
  declare const QSelect: typeof _QSelect;
4
3
  export { QSelect };
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -2,7 +2,6 @@ import { QFieldSize } from '../QField';
2
2
  import { Icon } from '../QIcon';
3
3
  import { QListItemGroupProps, QListItemProps } from '../QList';
4
4
  import { Primitive } from '../../types/primitive';
5
-
6
5
  export type QSelectProps = {
7
6
  /**
8
7
  * The field unique identifier.
@@ -67,14 +66,16 @@ export type QSelectProps = {
67
66
  */
68
67
  class?: string | unknown[];
69
68
  /**
70
- * The internal elements of the component.
69
+ * Custom icon configurations.
71
70
  */
72
- internals?: Internals;
71
+ icons?: typeof DEFAULT_ICONS;
72
+ /**
73
+ * Custom text configurations.
74
+ */
75
+ texts?: typeof DEFAULT_TEXTS;
73
76
  };
74
77
  export declare const DEFAULT_TEXTS: Record<string, string>;
75
- export declare const DEFAULT_ICONS: Record<string, Icon>;
76
- export type Internals = {
77
- icons: typeof DEFAULT_ICONS;
78
- texts: typeof DEFAULT_TEXTS;
79
- };
78
+ type IconKeys = 'chevron' | 'clear';
79
+ export declare const DEFAULT_ICONS: Record<IconKeys, Icon>;
80
+ export {};
80
81
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/types.ts"],"names":[],"mappings":"AACA,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;AAElD,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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aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,CAOhD,CAAA"}
@@ -1,6 +1,8 @@
1
1
  const o = {
2
- placeholder: "Choose..."
3
- }, c = {
2
+ placeholder: "Choose...",
3
+ clearValue: "Clear value",
4
+ showOptions: "Show options"
5
+ }, e = {
4
6
  chevron: {
5
7
  icon: "chevron-down"
6
8
  },
@@ -9,6 +11,6 @@ const o = {
9
11
  }
10
12
  };
11
13
  export {
12
- c as DEFAULT_ICONS,
14
+ e as DEFAULT_ICONS,
13
15
  o as DEFAULT_TEXTS
14
16
  };
@@ -1,34 +1,8 @@
1
1
  import { QSkeletonLoaderProps } from './types';
2
-
3
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QSkeletonLoaderProps>, {
4
- type: undefined;
5
- width: undefined;
6
- height: undefined;
7
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QSkeletonLoaderProps>, {
8
- type: undefined;
9
- width: undefined;
10
- height: undefined;
11
- }>>>, {
2
+ declare const _default: import('vue').DefineComponent<QSkeletonLoaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QSkeletonLoaderProps> & Readonly<{}>, {
12
3
  type: "text" | "icon";
13
4
  height: string | number;
14
5
  width: string | number;
15
- }, {}>;
6
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
7
  export default _default;
17
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
- type __VLS_TypePropsToRuntimeProps<T> = {
19
- [K in keyof T]-?: {} extends Pick<T, K> ? {
20
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
- } : {
22
- type: import('vue').PropType<T[K]>;
23
- required: true;
24
- };
25
- };
26
- type __VLS_WithDefaults<P, D> = {
27
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
28
- default: D[K];
29
- }> : P[K];
30
- };
31
- type __VLS_Prettify<T> = {
32
- [K in keyof T]: T[K];
33
- } & {};
34
8
  //# sourceMappingURL=QSkeletonLoader.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QSkeletonLoader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSkeletonLoader/QSkeletonLoader.vue"],"names":[],"mappings":"AAOA;AAGC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;;;;;AAmFpD,wBAMG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"QSkeletonLoader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSkeletonLoader/QSkeletonLoader.vue"],"names":[],"mappings":"AAoCC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;;;;;;AAoFpD,wBAOG"}
@@ -1,39 +1,39 @@
1
- import { defineComponent as i, computed as n, openBlock as a, createElementBlock as r, normalizeClass as c, normalizeStyle as h, createElementVNode as p } from "vue";
2
- const u = /* @__PURE__ */ p(
3
- "div",
4
- { class: "q-skeleton-loader__bone" },
5
- null,
6
- -1
7
- /* HOISTED */
8
- ), m = [
9
- u
10
- ], f = /* @__PURE__ */ i({
1
+ import { defineComponent as i, computed as l, openBlock as r, createElementBlock as a, normalizeClass as p, normalizeStyle as h, createElementVNode as u } from "vue";
2
+ const m = /* @__PURE__ */ i({
11
3
  __name: "QSkeletonLoader",
12
4
  props: {
13
5
  type: { default: void 0 },
14
6
  width: { default: void 0 },
15
7
  height: { default: void 0 }
16
8
  },
17
- setup(l) {
18
- const e = l, s = n(() => e.type ? `q-skeleton-loader--${e.type}` : void 0), d = n(() => {
19
- const t = typeof e.width == "number" ? `${e.width}px` : e.width, o = typeof e.height == "number" ? `${e.height}px` : e.height;
9
+ setup(n) {
10
+ const e = n, s = l(() => e.type ? `q-skeleton-loader--${e.type}` : void 0), d = l(() => {
11
+ const o = typeof e.width == "number" ? `${e.width}px` : e.width, t = typeof e.height == "number" ? `${e.height}px` : e.height;
20
12
  return {
21
- width: t,
22
- height: o
13
+ width: o,
14
+ height: t
23
15
  };
24
16
  });
25
- return (t, o) => (a(), r(
17
+ return (o, t) => (r(), a(
26
18
  "div",
27
19
  {
28
- class: c(["q-skeleton-loader", s.value]),
20
+ class: p(["q-skeleton-loader", s.value]),
29
21
  style: h(d.value)
30
22
  },
31
- m,
23
+ t[0] || (t[0] = [
24
+ u(
25
+ "div",
26
+ { class: "q-skeleton-loader__bone" },
27
+ null,
28
+ -1
29
+ /* HOISTED */
30
+ )
31
+ ]),
32
32
  6
33
33
  /* CLASS, STYLE */
34
34
  ));
35
35
  }
36
36
  });
37
37
  export {
38
- f as default
38
+ m as default
39
39
  };
@@ -1,5 +1,4 @@
1
1
  import { default as _QSkeletonLoader } from './QSkeletonLoader';
2
-
3
2
  declare const QSkeletonLoader: typeof _QSkeletonLoader;
4
3
  export { QSkeletonLoader };
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,31 +1,7 @@
1
1
  import { QSpinnerLoaderProps } from './types';
2
-
3
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QSpinnerLoaderProps>, {
4
- size: number;
5
- class: undefined;
6
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QSpinnerLoaderProps>, {
7
- size: number;
8
- class: undefined;
9
- }>>>, {
2
+ declare const _default: import('vue').DefineComponent<QSpinnerLoaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QSpinnerLoaderProps> & Readonly<{}>, {
10
3
  size: number;
11
4
  class: string | unknown[];
12
- }, {}>;
5
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
6
  export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
23
- type __VLS_WithDefaults<P, D> = {
24
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
25
- default: D[K];
26
- }> : P[K];
27
- };
28
- type __VLS_Prettify<T> = {
29
- [K in keyof T]: T[K];
30
- } & {};
31
7
  //# sourceMappingURL=QSpinnerLoader.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QSpinnerLoader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSpinnerLoader/QSpinnerLoader.vue"],"names":[],"mappings":"AAKA;AAGC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;;AA+DnD,wBAMG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"QSpinnerLoader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSpinnerLoader/QSpinnerLoader.vue"],"names":[],"mappings":"AAyBC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;;;;;AAuEnD,wBAOG"}
@@ -1,5 +1,4 @@
1
1
  import { default as _QSpinnerLoader } from './QSpinnerLoader';
2
-
3
2
  declare const QSpinnerLoader: typeof _QSpinnerLoader;
4
3
  export { QSpinnerLoader };
5
4
  //# sourceMappingURL=index.d.ts.map