@quidgest/ui 0.16.32 → 0.16.34

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 (44) hide show
  1. package/dist/json/api.json +25 -1
  2. package/dist/ui.css +20 -11
  3. package/dist/ui.esm.js +6788 -6641
  4. package/dist/ui.js +27 -27
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +169 -154
  7. package/dist/ui.scss +54 -37
  8. package/esm/components/QColorPicker/QColorPicker.vue.js +1 -1
  9. package/esm/components/QList/QList.d.ts.map +1 -1
  10. package/esm/components/QList/QList.vue.js +75 -73
  11. package/esm/components/QSelect/QSelect.d.ts +160 -13
  12. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  13. package/esm/components/QSelect/QSelect.vue.js +326 -138
  14. package/esm/components/QSelect/index.d.ts +82 -3
  15. package/esm/components/QSelect/index.d.ts.map +1 -1
  16. package/esm/components/QSelect/types.d.ts +12 -0
  17. package/esm/components/QSelect/types.d.ts.map +1 -1
  18. package/esm/components/QToast/QToast.vue.js +44 -42
  19. package/esm/composables/useColor/index.js +23 -20
  20. package/esm/templates/theme.d.ts.map +1 -1
  21. package/esm/templates/theme.js +44 -10
  22. package/esm/utils/color/contrast.d.ts +18 -0
  23. package/esm/utils/color/contrast.d.ts.map +1 -0
  24. package/esm/utils/color/contrast.js +6 -0
  25. package/esm/utils/color/conversion.d.ts +41 -0
  26. package/esm/utils/color/conversion.d.ts.map +1 -0
  27. package/esm/utils/color/conversion.js +59 -0
  28. package/esm/utils/color/index.d.ts +7 -0
  29. package/esm/utils/color/index.d.ts.map +1 -0
  30. package/esm/utils/color/manipulate.d.ts +18 -0
  31. package/esm/utils/color/manipulate.d.ts.map +1 -0
  32. package/esm/utils/color/manipulate.js +13 -0
  33. package/esm/utils/color/merge.d.ts +19 -0
  34. package/esm/utils/color/merge.d.ts.map +1 -0
  35. package/esm/utils/color/parse.d.ts +24 -0
  36. package/esm/utils/color/parse.d.ts.map +1 -0
  37. package/esm/utils/color/parse.js +26 -0
  38. package/esm/utils/color/types.d.ts +51 -0
  39. package/esm/utils/color/types.d.ts.map +1 -0
  40. package/esm/utils/theme.js +1 -1
  41. package/package.json +3 -1
  42. package/esm/utils/color.d.ts +0 -123
  43. package/esm/utils/color.d.ts.map +0 -1
  44. package/esm/utils/color.js +0 -97
package/dist/ui.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quidgest UI v0.16.32
2
+ * Quidgest UI v0.16.34
3
3
  * (c) 2025 Quidgest - Consultores de Gestão, S.A.
4
4
  * Released under the MIT License.
5
5
  */
@@ -2573,6 +2573,23 @@ $base-border: 1px solid rgb(0 0 0 / 10%);
2573
2573
  pointer-events: none;
2574
2574
  min-height: 1lh;
2575
2575
  }
2576
+ &__badge-container {
2577
+ display: flex;
2578
+ gap: 0.1rem;
2579
+ overflow: hidden;
2580
+ width: 100%;
2581
+ #{$this}__badge {
2582
+ &-count {
2583
+ font-weight: bold;
2584
+ }
2585
+ &-hidden {
2586
+ visibility: hidden;
2587
+ }
2588
+ }
2589
+ .q-badge__content {
2590
+ height: 0.85em;
2591
+ }
2592
+ }
2576
2593
  &__placeholder {
2577
2594
  font-style: italic;
2578
2595
  color: var(--q-theme-neutral);
@@ -2582,48 +2599,48 @@ $base-border: 1px solid rgb(0 0 0 / 10%);
2582
2599
  opacity: 0;
2583
2600
  cursor: inherit;
2584
2601
  }
2602
+ &__chevron {
2603
+ padding: 0.1rem;
2604
+ opacity: 0.5;
2605
+ &:hover {
2606
+ cursor: inherit;
2607
+ }
2608
+ }
2609
+ &__body {
2610
+ display: flex;
2611
+ flex-direction: column;
2612
+ align-items: flex-start;
2613
+ gap: $space-base;
2614
+ width: 100%;
2615
+ padding: $space-base 0;
2616
+ outline: none;
2617
+ .q-list-item {
2618
+ width: calc(100% - 2 * $space-base);
2619
+ margin-left: $space-base;
2620
+ margin-right: $space-base;
2621
+ }
2622
+ }
2623
+ &__items {
2624
+ min-width: fit-content;
2625
+ width: 100%;
2626
+ max-height: 240px;
2627
+ align-items: start;
2628
+ }
2629
+ &__loader {
2630
+ display: flex;
2631
+ justify-content: center;
2632
+ width: 100%;
2633
+ }
2634
+ &__loader,
2635
+ &__empty {
2636
+ margin: calc(4 * $space-base) 0;
2637
+ }
2585
2638
 
2586
2639
  .q-field__prepend {
2587
2640
  padding-left: $space-base * 2;
2588
2641
  padding-right: $space-base * 2;
2589
2642
  }
2590
2643
  }
2591
- .q-select__chevron {
2592
- padding: 0.1rem;
2593
- opacity: 0.5;
2594
- &:hover {
2595
- cursor: inherit;
2596
- }
2597
- }
2598
- .q-select__body {
2599
- display: flex;
2600
- flex-direction: column;
2601
- align-items: flex-start;
2602
- gap: $space-base;
2603
- width: 100%;
2604
- padding: $space-base 0;
2605
- outline: none;
2606
- .q-list-item {
2607
- width: calc(100% - 2 * $space-base);
2608
- margin-left: $space-base;
2609
- margin-right: $space-base;
2610
- }
2611
- }
2612
- .q-select__items {
2613
- min-width: fit-content;
2614
- width: 100%;
2615
- max-height: 240px;
2616
- align-items: start;
2617
- }
2618
- .q-select__loader {
2619
- display: flex;
2620
- justify-content: center;
2621
- width: 100%;
2622
- }
2623
- .q-select__loader,
2624
- .q-select__empty {
2625
- margin: calc(4 * $space-base) 0;
2626
- }
2627
2644
  $sidebar-size-small: 19rem;
2628
2645
  $sidebar-size-medium: 27rem;
2629
2646
  $sidebar-size-large: 35rem;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as h, mergeModels as C, useModel as k, ref as p, computed as V, watch as m, createBlock as $, openBlock as g, unref as q, normalizeClass as B, createSlots as T, withCtx as t, renderSlot as r, withDirectives as x, createElementVNode as z, mergeProps as M, withModifiers as S, vModelText as w } from "vue";
2
2
  import { DEFAULT_TEXTS as D } from "./types.js";
3
3
  import { QTextField as E } from "../QTextField/index.js";
4
- import { isValidHex as F } from "../../utils/color.js";
4
+ import { isValidHex as F } from "../../utils/color/parse.js";
5
5
  const P = ["readonly", "disabled", "aria-label"], I = /* @__PURE__ */ h({
6
6
  inheritAttrs: !1,
7
7
  __name: "QColorPicker",
@@ -1 +1 @@
1
- {"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AA8CA;AA+bC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAsOhD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCArFtC,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DACjF,GAAE;;;;;;;;;;;;;;;;;EAqGD;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA9HpB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DACjF,GAAE;;;;;;;;;;;;;;;OAwIA,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC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AK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as N, ref as m, computed as M, toRef as x, watch as X, createBlock as V, openBlock as d, resolveDynamicComponent as Y, normalizeClass as Z, withCtx as p, renderSlot as A, createElementBlock as q, Fragment as E, renderList as T, unref as $ } from "vue";
1
+ import { defineComponent as N, ref as b, computed as M, toRef as V, watch as X, createBlock as A, openBlock as m, resolveDynamicComponent as Y, normalizeClass as Z, withCtx as v, renderSlot as L, createElementBlock as q, Fragment as E, renderList as T, unref as $ } from "vue";
2
2
  import { QListItemGroup as ee, QListItem as te } from "./index.js";
3
3
  import { useGroup as ne } from "../../composables/useGroup/index.js";
4
4
  const oe = /* @__PURE__ */ N({
@@ -19,126 +19,128 @@ const oe = /* @__PURE__ */ N({
19
19
  },
20
20
  emits: ["update:modelValue", "click", "mouseenter:item"],
21
21
  setup(R, { expose: G, emit: O }) {
22
- const n = R, b = O, v = m(!1), Q = M(() => a.value.length > 1 ? "div" : "ul"), a = M(() => n.groups.length ? n.groups.filter(
22
+ const n = R, g = O, h = b(!1), Q = M(() => a.value.length > 1 ? "div" : "ul"), a = M(() => n.groups.length ? n.groups.filter(
23
23
  (e) => {
24
24
  var t;
25
25
  return (t = n.items) == null ? void 0 : t.some((l) => l.group === e.id);
26
26
  }
27
- ) : [{ id: "", title: "" }]), { active: g } = ne({
28
- active: x(n, "modelValue"),
29
- required: x(n, "required"),
30
- multiple: x(n, "multiple")
31
- }), h = m(null), I = m(null);
27
+ ) : [{ id: "", title: "" }]), { active: r } = ne({
28
+ active: V(n, "modelValue"),
29
+ required: V(n, "required"),
30
+ multiple: V(n, "multiple")
31
+ }), I = b(null), k = b(null);
32
32
  function S(e) {
33
- b("click", e);
33
+ g("click", e);
34
34
  }
35
35
  function U(e) {
36
- b("mouseenter:item", e);
36
+ g("mouseenter:item", e);
37
37
  }
38
38
  function j() {
39
- v.value = !0;
39
+ h.value = !0;
40
40
  }
41
41
  function z() {
42
- v.value = !1;
42
+ h.value = !1;
43
43
  }
44
44
  function H(e) {
45
- var i;
46
- if (!n.items || (i = h.value) != null && i.contains(e.relatedTarget))
45
+ var i, s;
46
+ if (!n.items || (i = I.value) != null && i.contains(e.relatedTarget))
47
47
  return;
48
- let t;
49
- g.value ? t = n.items.findIndex((s) => s[n.itemValue] === g.value) : t = w();
50
- const l = v.value;
51
- r(t, l);
52
- }
53
- const k = m("");
54
- let L;
48
+ let t = -1;
49
+ n.multiple ? ((s = r.value) == null ? void 0 : s.length) > 0 && (t = n.items.findIndex(
50
+ (u) => r.value.includes(u[n.itemValue])
51
+ )) : r.value && (t = n.items.findIndex((u) => u[n.itemValue] === r.value)), t === -1 && (t = y());
52
+ const l = h.value;
53
+ c(t, l);
54
+ }
55
+ const w = b("");
56
+ let C;
55
57
  function K(e) {
56
58
  var t;
57
- switch (window.clearTimeout(L), ["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), e.key) {
59
+ switch (window.clearTimeout(C), ["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), e.key) {
58
60
  case "ArrowDown":
59
- f("next");
61
+ p("next");
60
62
  break;
61
63
  case "ArrowUp":
62
- f("prev");
64
+ p("prev");
63
65
  break;
64
66
  case "Home":
65
- f("first");
67
+ p("first");
66
68
  break;
67
69
  case "End":
68
- f("last");
70
+ p("last");
69
71
  break;
70
72
  }
71
73
  if (/^[a-z]$/i.test(e.key)) {
72
- k.value += e.key.toLowerCase();
74
+ w.value += e.key.toLowerCase();
73
75
  const l = ((t = n.items) == null ? void 0 : t.length) || 0;
74
76
  for (let i = 0; i < l; i++)
75
- if (n.items[i][n.itemLabel].toLowerCase().startsWith(k.value)) {
76
- r(i);
77
+ if (n.items[i][n.itemLabel].toLowerCase().startsWith(w.value)) {
78
+ c(i);
77
79
  break;
78
80
  }
79
81
  e.preventDefault(), e.stopPropagation();
80
82
  }
81
- L = window.setTimeout(function() {
82
- k.value = "";
83
+ C = window.setTimeout(function() {
84
+ w.value = "";
83
85
  }, 500);
84
86
  }
85
- function f(e) {
87
+ function p(e) {
86
88
  switch (e) {
87
89
  case "next":
88
90
  case "prev":
89
- r(W(e));
91
+ c(W(e));
90
92
  break;
91
93
  case "first":
92
- r(w());
94
+ c(y());
93
95
  break;
94
96
  case "last":
95
- r(_());
97
+ c(F());
96
98
  break;
97
99
  }
98
100
  }
99
- function r(e, t = !1) {
101
+ function c(e, t = !1) {
100
102
  var i;
101
103
  (i = o()[e]) == null || i.focus({ preventScroll: t });
102
104
  }
103
105
  function o() {
104
106
  var t;
105
- const e = (t = h.value) == null ? void 0 : t.querySelectorAll("li");
107
+ const e = (t = I.value) == null ? void 0 : t.querySelectorAll("li");
106
108
  return e ? Array.from(e) : [];
107
109
  }
108
110
  function P(e) {
109
111
  return o()[e];
110
112
  }
111
- function C() {
113
+ function _() {
112
114
  return o().indexOf(document.activeElement);
113
115
  }
114
- function w() {
115
- const e = o(), t = e.find((l) => y(l));
116
+ function y() {
117
+ const e = o(), t = e.find((l) => x(l));
116
118
  return t ? e.indexOf(t) : -1;
117
119
  }
118
- function _() {
119
- const e = o(), t = [...e].reverse().find((l) => y(l));
120
+ function F() {
121
+ const e = o(), t = [...e].reverse().find((l) => x(l));
120
122
  return t ? e.indexOf(t) : -1;
121
123
  }
122
- function F(e, t, l) {
124
+ function B(e, t, l) {
123
125
  return t === "prev" && e <= 0 || t === "next" && e === l.length - 1;
124
126
  }
125
127
  function W(e) {
126
- const t = C();
127
- return B(t, e);
128
+ const t = _();
129
+ return D(t, e);
128
130
  }
129
- function B(e, t) {
131
+ function D(e, t) {
130
132
  const l = o();
131
- if (F(e, t, l))
133
+ if (B(e, t, l))
132
134
  return e;
133
135
  let i = e + (t === "next" ? 1 : -1);
134
- for (; !y(l[i]); ) {
135
- if (F(i, t, l))
136
+ for (; !x(l[i]); ) {
137
+ if (B(i, t, l))
136
138
  return e;
137
139
  i += t === "next" ? 1 : -1;
138
140
  }
139
141
  return i;
140
142
  }
141
- function y(e) {
143
+ function x(e) {
142
144
  return e.tabIndex === -2;
143
145
  }
144
146
  function J(e) {
@@ -146,21 +148,21 @@ const oe = /* @__PURE__ */ N({
146
148
  return e ? (t = n.items) == null ? void 0 : t.filter((l) => l.group === e) : n.items;
147
149
  }
148
150
  return X(
149
- g,
151
+ r,
150
152
  (e) => {
151
- b("update:modelValue", e);
153
+ g("update:modelValue", e);
152
154
  },
153
155
  { deep: !0 }
154
156
  ), G({
155
157
  getItem: P,
156
- getActiveItemIndex: C,
157
- getAdjacentItemIndex: B,
158
- getFirstFocusableItemIndex: w,
159
- getLastFocusableItemIndex: _
160
- }), (e, t) => (d(), V(Y(Q.value), {
158
+ getActiveItemIndex: _,
159
+ getAdjacentItemIndex: D,
160
+ getFirstFocusableItemIndex: y,
161
+ getLastFocusableItemIndex: F
162
+ }), (e, t) => (m(), A(Y(Q.value), {
161
163
  id: n.id,
162
164
  ref_key: "listRef",
163
- ref: h,
165
+ ref: I,
164
166
  class: Z(["q-list", { "q-list--disabled": n.disabled }, n.class]),
165
167
  role: "listbox",
166
168
  tabindex: n.disabled ? -1 : 0,
@@ -169,25 +171,25 @@ const oe = /* @__PURE__ */ N({
169
171
  onMouseup: z,
170
172
  onKeydown: K
171
173
  }, {
172
- default: p(() => [
173
- A(e.$slots, "default", {}, () => [
174
- (d(!0), q(
174
+ default: v(() => [
175
+ L(e.$slots, "default", {}, () => [
176
+ (m(!0), q(
175
177
  E,
176
178
  null,
177
- T(a.value, (l, i) => (d(), V($(ee), {
179
+ T(a.value, (l, i) => (m(), A($(ee), {
178
180
  id: l.id,
179
181
  key: l.id,
180
182
  title: a.value.length === 1 ? void 0 : l.title
181
183
  }, {
182
- default: p(() => [
183
- (d(!0), q(
184
+ default: v(() => [
185
+ (m(!0), q(
184
186
  E,
185
187
  null,
186
- T(J(l.id), (s, D) => (d(), V($(te), {
188
+ T(J(l.id), (s, u) => (m(), A($(te), {
187
189
  key: s[n.itemValue],
188
190
  ref_for: !0,
189
191
  ref_key: "listItemsRef",
190
- ref: I,
192
+ ref: k,
191
193
  value: s[n.itemValue],
192
194
  label: s[n.itemLabel],
193
195
  description: s.description,
@@ -198,21 +200,21 @@ const oe = /* @__PURE__ */ N({
198
200
  onClick: () => S(s[n.itemValue]),
199
201
  onMouseenter: () => U(s[n.itemValue])
200
202
  }, {
201
- append: p(() => {
202
- var u, c;
203
+ append: v(() => {
204
+ var d, f;
203
205
  return [
204
- A(e.$slots, "item.append", {
206
+ L(e.$slots, "item.append", {
205
207
  item: s,
206
- element: (c = (u = I.value) == null ? void 0 : u[D + i * a.value.length]) == null ? void 0 : c.$el
208
+ element: (f = (d = k.value) == null ? void 0 : d[u + i * a.value.length]) == null ? void 0 : f.$el
207
209
  })
208
210
  ];
209
211
  }),
210
- default: p(() => {
211
- var u, c;
212
+ default: v(() => {
213
+ var d, f;
212
214
  return [
213
- A(e.$slots, "item", {
215
+ L(e.$slots, "item", {
214
216
  item: s,
215
- element: (c = (u = I.value) == null ? void 0 : u[D + i * a.value.length]) == null ? void 0 : c.$el
217
+ element: (f = (d = k.value) == null ? void 0 : d[u + i * a.value.length]) == null ? void 0 : f.$el
216
218
  })
217
219
  ];
218
220
  }),
@@ -1,4 +1,5 @@
1
1
  import { DEFAULT_ICONS, DEFAULT_TEXTS, QSelectProps } from './types';
2
+ import { Item } from '../QList/types';
2
3
  import { nextTick } from 'vue';
3
4
  type __VLS_Props = QSelectProps;
4
5
  type __VLS_PublicProps = {
@@ -12,12 +13,12 @@ declare function __VLS_template(): {
12
13
  extras?(_: {}): any;
13
14
  'body.prepend'?(_: {}): any;
14
15
  item?(_: {
15
- item: import('../QList/types').Item;
16
+ item: Item;
16
17
  }): any;
17
18
  'body.append'?(_: {}): any;
18
19
  };
19
20
  refs: {
20
- triggerEl: ({
21
+ trigger: ({
21
22
  $: import('vue').ComponentInternalInstance;
22
23
  $data: {};
23
24
  $props: {
@@ -86,8 +87,81 @@ declare function __VLS_template(): {
86
87
  extras?(_: {}): any;
87
88
  };
88
89
  }) | null;
89
- contentRef: HTMLDivElement;
90
- listRef: ({
90
+ badgesContainer: HTMLSpanElement;
91
+ allBadges: (({
92
+ $: import('vue').ComponentInternalInstance;
93
+ $data: {};
94
+ $props: {
95
+ readonly id?: string | undefined;
96
+ readonly class?: string | unknown[] | undefined;
97
+ readonly variant?: import('../QBadge/types').QBadgeVariant | undefined;
98
+ readonly color?: string | undefined;
99
+ readonly pill?: boolean | undefined;
100
+ readonly size?: import('../QBadge/types').QBadgeSize | undefined;
101
+ readonly removable?: boolean | undefined;
102
+ readonly icons?: typeof import('../QBadge/types').DEFAULT_ICONS | undefined;
103
+ readonly texts?: typeof import('../QBadge/types').DEFAULT_TEXTS | undefined;
104
+ readonly "onClick:remove"?: (() => any) | undefined;
105
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
106
+ $attrs: {
107
+ [x: string]: unknown;
108
+ };
109
+ $refs: {
110
+ [x: string]: unknown;
111
+ };
112
+ $slots: Readonly<{
113
+ [name: string]: import('vue').Slot<any> | undefined;
114
+ }>;
115
+ $root: import('vue').ComponentPublicInstance | null;
116
+ $parent: import('vue').ComponentPublicInstance | null;
117
+ $host: Element | null;
118
+ $emit: (event: "click:remove") => void;
119
+ $el: HTMLSpanElement;
120
+ $options: import('vue').ComponentOptionsBase<Readonly<import('../QBadge/types').QBadgeProps> & Readonly<{
121
+ "onClick:remove"?: (() => any) | undefined;
122
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
123
+ "click:remove": () => any;
124
+ }, string, {
125
+ size: import('../QBadge/types').QBadgeSize;
126
+ color: string;
127
+ variant: import('../QBadge/types').QBadgeVariant;
128
+ icons: typeof import('../QBadge/types').DEFAULT_ICONS;
129
+ texts: typeof import('../QBadge/types').DEFAULT_TEXTS;
130
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
131
+ beforeCreate?: (() => void) | (() => void)[];
132
+ created?: (() => void) | (() => void)[];
133
+ beforeMount?: (() => void) | (() => void)[];
134
+ mounted?: (() => void) | (() => void)[];
135
+ beforeUpdate?: (() => void) | (() => void)[];
136
+ updated?: (() => void) | (() => void)[];
137
+ activated?: (() => void) | (() => void)[];
138
+ deactivated?: (() => void) | (() => void)[];
139
+ beforeDestroy?: (() => void) | (() => void)[];
140
+ beforeUnmount?: (() => void) | (() => void)[];
141
+ destroyed?: (() => void) | (() => void)[];
142
+ unmounted?: (() => void) | (() => void)[];
143
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
144
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
145
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
146
+ };
147
+ $forceUpdate: () => void;
148
+ $nextTick: typeof nextTick;
149
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
150
+ } & Readonly<{
151
+ size: import('../QBadge/types').QBadgeSize;
152
+ color: string;
153
+ variant: import('../QBadge/types').QBadgeVariant;
154
+ icons: typeof import('../QBadge/types').DEFAULT_ICONS;
155
+ texts: typeof import('../QBadge/types').DEFAULT_TEXTS;
156
+ }> & Omit<Readonly<import('../QBadge/types').QBadgeProps> & Readonly<{
157
+ "onClick:remove"?: (() => any) | undefined;
158
+ }>, "size" | "color" | "variant" | "icons" | "texts"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
159
+ $slots: {
160
+ default?(_: {}): any;
161
+ };
162
+ }) | null)[];
163
+ content: HTMLDivElement;
164
+ list: ({
91
165
  $: import('vue').ComponentInternalInstance;
92
166
  $data: {};
93
167
  $props: {
@@ -95,7 +169,7 @@ declare function __VLS_template(): {
95
169
  readonly class?: string | unknown[] | undefined;
96
170
  readonly modelValue?: any;
97
171
  readonly highlighted?: any;
98
- readonly items?: import('../QList/types').Item[] | undefined;
172
+ readonly items?: Item[] | undefined;
99
173
  readonly groups?: import('../QList/types').Group[] | undefined;
100
174
  readonly selectable?: boolean | undefined;
101
175
  readonly multiple?: boolean | undefined;
@@ -254,11 +328,11 @@ declare function __VLS_template(): {
254
328
  $slots: {
255
329
  default?(_: {}): any;
256
330
  item?(_: {
257
- item: import('../QList/types').Item;
331
+ item: Item;
258
332
  element: HTMLLIElement | undefined;
259
333
  }): any;
260
334
  'item.append'?(_: {
261
- item: import('../QList/types').Item;
335
+ item: Item;
262
336
  element: HTMLLIElement | undefined;
263
337
  }): any;
264
338
  };
@@ -287,7 +361,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
287
361
  itemValue: string;
288
362
  itemLabel: string;
289
363
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
290
- triggerEl: ({
364
+ trigger: ({
291
365
  $: import('vue').ComponentInternalInstance;
292
366
  $data: {};
293
367
  $props: {
@@ -356,8 +430,81 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
356
430
  extras?(_: {}): any;
357
431
  };
358
432
  }) | null;
359
- contentRef: HTMLDivElement;
360
- listRef: ({
433
+ badgesContainer: HTMLSpanElement;
434
+ allBadges: (({
435
+ $: import('vue').ComponentInternalInstance;
436
+ $data: {};
437
+ $props: {
438
+ readonly id?: string | undefined;
439
+ readonly class?: string | unknown[] | undefined;
440
+ readonly variant?: import('../QBadge/types').QBadgeVariant | undefined;
441
+ readonly color?: string | undefined;
442
+ readonly pill?: boolean | undefined;
443
+ readonly size?: import('../QBadge/types').QBadgeSize | undefined;
444
+ readonly removable?: boolean | undefined;
445
+ readonly icons?: typeof import('../QBadge/types').DEFAULT_ICONS | undefined;
446
+ readonly texts?: typeof import('../QBadge/types').DEFAULT_TEXTS | undefined;
447
+ readonly "onClick:remove"?: (() => any) | undefined;
448
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
449
+ $attrs: {
450
+ [x: string]: unknown;
451
+ };
452
+ $refs: {
453
+ [x: string]: unknown;
454
+ };
455
+ $slots: Readonly<{
456
+ [name: string]: import('vue').Slot<any> | undefined;
457
+ }>;
458
+ $root: import('vue').ComponentPublicInstance | null;
459
+ $parent: import('vue').ComponentPublicInstance | null;
460
+ $host: Element | null;
461
+ $emit: (event: "click:remove") => void;
462
+ $el: HTMLSpanElement;
463
+ $options: import('vue').ComponentOptionsBase<Readonly<import('../QBadge/types').QBadgeProps> & Readonly<{
464
+ "onClick:remove"?: (() => any) | undefined;
465
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
466
+ "click:remove": () => any;
467
+ }, string, {
468
+ size: import('../QBadge/types').QBadgeSize;
469
+ color: string;
470
+ variant: import('../QBadge/types').QBadgeVariant;
471
+ icons: typeof import('../QBadge/types').DEFAULT_ICONS;
472
+ texts: typeof import('../QBadge/types').DEFAULT_TEXTS;
473
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
474
+ beforeCreate?: (() => void) | (() => void)[];
475
+ created?: (() => void) | (() => void)[];
476
+ beforeMount?: (() => void) | (() => void)[];
477
+ mounted?: (() => void) | (() => void)[];
478
+ beforeUpdate?: (() => void) | (() => void)[];
479
+ updated?: (() => void) | (() => void)[];
480
+ activated?: (() => void) | (() => void)[];
481
+ deactivated?: (() => void) | (() => void)[];
482
+ beforeDestroy?: (() => void) | (() => void)[];
483
+ beforeUnmount?: (() => void) | (() => void)[];
484
+ destroyed?: (() => void) | (() => void)[];
485
+ unmounted?: (() => void) | (() => void)[];
486
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
487
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
488
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
489
+ };
490
+ $forceUpdate: () => void;
491
+ $nextTick: typeof nextTick;
492
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
493
+ } & Readonly<{
494
+ size: import('../QBadge/types').QBadgeSize;
495
+ color: string;
496
+ variant: import('../QBadge/types').QBadgeVariant;
497
+ icons: typeof import('../QBadge/types').DEFAULT_ICONS;
498
+ texts: typeof import('../QBadge/types').DEFAULT_TEXTS;
499
+ }> & Omit<Readonly<import('../QBadge/types').QBadgeProps> & Readonly<{
500
+ "onClick:remove"?: (() => any) | undefined;
501
+ }>, "size" | "color" | "variant" | "icons" | "texts"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
502
+ $slots: {
503
+ default?(_: {}): any;
504
+ };
505
+ }) | null)[];
506
+ content: HTMLDivElement;
507
+ list: ({
361
508
  $: import('vue').ComponentInternalInstance;
362
509
  $data: {};
363
510
  $props: {
@@ -365,7 +512,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
365
512
  readonly class?: string | unknown[] | undefined;
366
513
  readonly modelValue?: any;
367
514
  readonly highlighted?: any;
368
- readonly items?: import('../QList/types').Item[] | undefined;
515
+ readonly items?: Item[] | undefined;
369
516
  readonly groups?: import('../QList/types').Group[] | undefined;
370
517
  readonly selectable?: boolean | undefined;
371
518
  readonly multiple?: boolean | undefined;
@@ -524,11 +671,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
524
671
  $slots: {
525
672
  default?(_: {}): any;
526
673
  item?(_: {
527
- item: import('../QList/types').Item;
674
+ item: Item;
528
675
  element: HTMLLIElement | undefined;
529
676
  }): any;
530
677
  'item.append'?(_: {
531
- item: import('../QList/types').Item;
678
+ item: Item;
532
679
  element: HTMLLIElement | undefined;
533
680
  }): any;
534
681
  };
@@ -1 +1 @@
1
- {"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAoIA;AA6TC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAatD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAEpD,KAAK,WAAW,GAAG,YAAY,CAAC;AA6KjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyUT,OAAO,IAA6B;;yBAnBpB,GAAG;wBACJ,GAAG;wBACH,GAAG;gCACK,GAAG;;;YACb,GAAG;+BACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqEG,GAAG,8CAGd,GAAE,yBAAyB,GAAG,6DAC/B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAJS,GAAG,8CAGd,GAAE,yBAAyB,GAAG,6DAC/B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAJS,GAAG,8CA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