@quidgest/ui 0.16.21 → 0.16.22

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.
@@ -1,11 +1,12 @@
1
- import { defineComponent as Y, mergeModels as _, useModel as Z, ref as p, computed as q, toRef as E, watch as ee, createBlock as y, openBlock as d, resolveDynamicComponent as te, normalizeClass as ne, withCtx as b, renderSlot as x, createElementBlock as T, Fragment as $, renderList as R, unref as G } from "vue";
2
- import { QListItemGroup as le, QListItem as ie } from "./index.js";
3
- import { useGroup as se } from "../../composables/useGroup/index.js";
4
- const ae = /* @__PURE__ */ Y({
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";
2
+ import { QListItemGroup as ee, QListItem as te } from "./index.js";
3
+ import { useGroup as ne } from "../../composables/useGroup/index.js";
4
+ const oe = /* @__PURE__ */ N({
5
5
  __name: "QList",
6
- props: /* @__PURE__ */ _({
6
+ props: {
7
7
  id: {},
8
8
  class: {},
9
+ modelValue: {},
9
10
  highlighted: {},
10
11
  items: {},
11
12
  groups: { default: () => [] },
@@ -15,117 +16,114 @@ const ae = /* @__PURE__ */ Y({
15
16
  selectable: { type: Boolean },
16
17
  multiple: { type: Boolean },
17
18
  required: { type: Boolean }
18
- }, {
19
- modelValue: {},
20
- modelModifiers: {}
21
- }),
22
- emits: /* @__PURE__ */ _(["click", "mouseenter:item"], ["update:modelValue"]),
23
- setup(A, { expose: O, emit: Q }) {
24
- const n = A, L = Q, f = Z(A, "modelValue"), v = p(!1), S = q(() => r.value.length > 1 ? "div" : "ul"), r = q(() => n.groups.length ? n.groups.filter(
19
+ },
20
+ emits: ["update:modelValue", "click", "mouseenter:item"],
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(
25
23
  (e) => {
26
24
  var t;
27
25
  return (t = n.items) == null ? void 0 : t.some((l) => l.group === e.id);
28
26
  }
29
- ) : [{ id: "", title: "" }]), { active: U } = se({
30
- active: f,
31
- required: E(n, "required"),
32
- multiple: E(n, "multiple")
33
- }), g = p(null), h = p(null);
34
- function j(e) {
35
- L("click", e);
36
- }
37
- function z(e) {
38
- L("mouseenter:item", e);
39
- }
40
- function H() {
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);
32
+ function S(e) {
33
+ b("click", e);
34
+ }
35
+ function U(e) {
36
+ b("mouseenter:item", e);
37
+ }
38
+ function j() {
41
39
  v.value = !0;
42
40
  }
43
- function K() {
41
+ function z() {
44
42
  v.value = !1;
45
43
  }
46
- function P(e) {
44
+ function H(e) {
47
45
  var i;
48
- if (!n.items || (i = g.value) != null && i.contains(e.relatedTarget))
46
+ if (!n.items || (i = h.value) != null && i.contains(e.relatedTarget))
49
47
  return;
50
48
  let t;
51
- f.value ? t = n.items.findIndex((s) => s[n.itemValue] === f.value) : t = k();
49
+ g.value ? t = n.items.findIndex((s) => s[n.itemValue] === g.value) : t = w();
52
50
  const l = v.value;
53
- u(t, l);
51
+ r(t, l);
54
52
  }
55
- const I = p("");
56
- let M;
57
- function W(e) {
53
+ const k = m("");
54
+ let L;
55
+ function K(e) {
58
56
  var t;
59
- switch (window.clearTimeout(M), ["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), e.key) {
57
+ switch (window.clearTimeout(L), ["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), e.key) {
60
58
  case "ArrowDown":
61
- m("next");
59
+ f("next");
62
60
  break;
63
61
  case "ArrowUp":
64
- m("prev");
62
+ f("prev");
65
63
  break;
66
64
  case "Home":
67
- m("first");
65
+ f("first");
68
66
  break;
69
67
  case "End":
70
- m("last");
68
+ f("last");
71
69
  break;
72
70
  }
73
71
  if (/^[a-z]$/i.test(e.key)) {
74
- I.value += e.key.toLowerCase();
72
+ k.value += e.key.toLowerCase();
75
73
  const l = ((t = n.items) == null ? void 0 : t.length) || 0;
76
74
  for (let i = 0; i < l; i++)
77
- if (n.items[i][n.itemLabel].toLowerCase().startsWith(I.value)) {
78
- u(i);
75
+ if (n.items[i][n.itemLabel].toLowerCase().startsWith(k.value)) {
76
+ r(i);
79
77
  break;
80
78
  }
81
79
  e.preventDefault(), e.stopPropagation();
82
80
  }
83
- M = window.setTimeout(function() {
84
- I.value = "";
81
+ L = window.setTimeout(function() {
82
+ k.value = "";
85
83
  }, 500);
86
84
  }
87
- function m(e) {
85
+ function f(e) {
88
86
  switch (e) {
89
87
  case "next":
90
88
  case "prev":
91
- u(N(e));
89
+ r(W(e));
92
90
  break;
93
91
  case "first":
94
- u(k());
92
+ r(w());
95
93
  break;
96
94
  case "last":
97
- u(C());
95
+ r(_());
98
96
  break;
99
97
  }
100
98
  }
101
- function u(e, t = !1) {
99
+ function r(e, t = !1) {
102
100
  var i;
103
101
  (i = o()[e]) == null || i.focus({ preventScroll: t });
104
102
  }
105
103
  function o() {
106
104
  var t;
107
- const e = (t = g.value) == null ? void 0 : t.querySelectorAll("li");
105
+ const e = (t = h.value) == null ? void 0 : t.querySelectorAll("li");
108
106
  return e ? Array.from(e) : [];
109
107
  }
110
- function J(e) {
108
+ function P(e) {
111
109
  return o()[e];
112
110
  }
113
- function V() {
111
+ function C() {
114
112
  return o().indexOf(document.activeElement);
115
113
  }
116
- function k() {
117
- const e = o(), t = e.find((l) => w(l));
114
+ function w() {
115
+ const e = o(), t = e.find((l) => y(l));
118
116
  return t ? e.indexOf(t) : -1;
119
117
  }
120
- function C() {
121
- const e = o(), t = [...e].reverse().find((l) => w(l));
118
+ function _() {
119
+ const e = o(), t = [...e].reverse().find((l) => y(l));
122
120
  return t ? e.indexOf(t) : -1;
123
121
  }
124
122
  function F(e, t, l) {
125
123
  return t === "prev" && e <= 0 || t === "next" && e === l.length - 1;
126
124
  }
127
- function N(e) {
128
- const t = V();
125
+ function W(e) {
126
+ const t = C();
129
127
  return B(t, e);
130
128
  }
131
129
  function B(e, t) {
@@ -133,63 +131,63 @@ const ae = /* @__PURE__ */ Y({
133
131
  if (F(e, t, l))
134
132
  return e;
135
133
  let i = e + (t === "next" ? 1 : -1);
136
- for (; !w(l[i]); ) {
134
+ for (; !y(l[i]); ) {
137
135
  if (F(i, t, l))
138
136
  return e;
139
137
  i += t === "next" ? 1 : -1;
140
138
  }
141
139
  return i;
142
140
  }
143
- function w(e) {
141
+ function y(e) {
144
142
  return e.tabIndex === -2;
145
143
  }
146
- function X(e) {
144
+ function J(e) {
147
145
  var t;
148
146
  return e ? (t = n.items) == null ? void 0 : t.filter((l) => l.group === e) : n.items;
149
147
  }
150
- return ee(
151
- U,
148
+ return X(
149
+ g,
152
150
  (e) => {
153
- f.value = e;
151
+ b("update:modelValue", e);
154
152
  },
155
153
  { deep: !0 }
156
- ), O({
157
- getItem: J,
158
- getActiveItemIndex: V,
154
+ ), G({
155
+ getItem: P,
156
+ getActiveItemIndex: C,
159
157
  getAdjacentItemIndex: B,
160
- getFirstFocusableItemIndex: k,
161
- getLastFocusableItemIndex: C
162
- }), (e, t) => (d(), y(te(S.value), {
158
+ getFirstFocusableItemIndex: w,
159
+ getLastFocusableItemIndex: _
160
+ }), (e, t) => (d(), V(Y(Q.value), {
163
161
  id: n.id,
164
162
  ref_key: "listRef",
165
- ref: g,
166
- class: ne(["q-list", { "q-list--disabled": n.disabled }, n.class]),
163
+ ref: h,
164
+ class: Z(["q-list", { "q-list--disabled": n.disabled }, n.class]),
167
165
  role: "listbox",
168
166
  tabindex: n.disabled ? -1 : 0,
169
- onFocus: P,
170
- onMousedown: H,
171
- onMouseup: K,
172
- onKeydown: W
167
+ onFocus: H,
168
+ onMousedown: j,
169
+ onMouseup: z,
170
+ onKeydown: K
173
171
  }, {
174
- default: b(() => [
175
- x(e.$slots, "default", {}, () => [
176
- (d(!0), T(
177
- $,
172
+ default: p(() => [
173
+ A(e.$slots, "default", {}, () => [
174
+ (d(!0), q(
175
+ E,
178
176
  null,
179
- R(r.value, (l, i) => (d(), y(G(le), {
177
+ T(a.value, (l, i) => (d(), V($(ee), {
180
178
  id: l.id,
181
179
  key: l.id,
182
- title: r.value.length === 1 ? void 0 : l.title
180
+ title: a.value.length === 1 ? void 0 : l.title
183
181
  }, {
184
- default: b(() => [
185
- (d(!0), T(
186
- $,
182
+ default: p(() => [
183
+ (d(!0), q(
184
+ E,
187
185
  null,
188
- R(X(l.id), (s, D) => (d(), y(G(ie), {
186
+ T(J(l.id), (s, D) => (d(), V($(te), {
189
187
  key: s[n.itemValue],
190
188
  ref_for: !0,
191
189
  ref_key: "listItemsRef",
192
- ref: h,
190
+ ref: I,
193
191
  value: s[n.itemValue],
194
192
  label: s[n.itemLabel],
195
193
  description: s.description,
@@ -197,24 +195,24 @@ const ae = /* @__PURE__ */ Y({
197
195
  disabled: n.disabled || l.disabled || s.disabled,
198
196
  highlighted: n.highlighted === s[n.itemValue],
199
197
  selectable: n.selectable || n.multiple || s.selectable,
200
- onClick: () => j(s[n.itemValue]),
201
- onMouseenter: () => z(s[n.itemValue])
198
+ onClick: () => S(s[n.itemValue]),
199
+ onMouseenter: () => U(s[n.itemValue])
202
200
  }, {
203
- append: b(() => {
204
- var a, c;
201
+ append: p(() => {
202
+ var u, c;
205
203
  return [
206
- x(e.$slots, "item.append", {
204
+ A(e.$slots, "item.append", {
207
205
  item: s,
208
- element: (c = (a = h.value) == null ? void 0 : a[D + i * r.value.length]) == null ? void 0 : c.$el
206
+ element: (c = (u = I.value) == null ? void 0 : u[D + i * a.value.length]) == null ? void 0 : c.$el
209
207
  })
210
208
  ];
211
209
  }),
212
- default: b(() => {
213
- var a, c;
210
+ default: p(() => {
211
+ var u, c;
214
212
  return [
215
- x(e.$slots, "item", {
213
+ A(e.$slots, "item", {
216
214
  item: s,
217
- element: (c = (a = h.value) == null ? void 0 : a[D + i * r.value.length]) == null ? void 0 : c.$el
215
+ element: (c = (u = I.value) == null ? void 0 : u[D + i * a.value.length]) == null ? void 0 : c.$el
218
216
  })
219
217
  ];
220
218
  }),
@@ -239,5 +237,5 @@ const ae = /* @__PURE__ */ Y({
239
237
  }
240
238
  });
241
239
  export {
242
- ae as default
240
+ oe as default
243
241
  };
@@ -1,20 +1,8 @@
1
1
  import { QListProps, QListItemProps, QListItemGroupProps } from './types';
2
2
  declare const QList: {
3
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
4
- modelValue?: any;
5
- } & import('../../types/component').QBaseComponentProps & {
6
- highlighted?: any;
7
- items?: import('./types').Item[];
8
- groups?: import('./types').Group[];
9
- itemValue?: string;
10
- itemLabel?: string;
11
- disabled?: boolean;
12
- selectable?: boolean;
13
- multiple?: boolean;
14
- required?: boolean;
15
- }> & Readonly<{
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<QListProps> & Readonly<{
16
4
  onClick?: ((key: any) => any) | undefined;
17
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
5
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
18
6
  "onMouseenter:item"?: ((key: any) => any) | undefined;
19
7
  }>, {
20
8
  getItem: (idx: number) => HTMLElement | undefined;
@@ -22,10 +10,9 @@ declare const QList: {
22
10
  getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
23
11
  getFirstFocusableItemIndex: () => number;
24
12
  getLastFocusableItemIndex: () => number;
25
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
- "update:modelValue": (value: any) => any;
27
- } & {
13
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
28
14
  click: (key: any) => any;
15
+ "update:modelValue": (val: any) => any;
29
16
  "mouseenter:item": (key: any) => any;
30
17
  }, import('vue').PublicProps, {
31
18
  groups: import('./types').Group[];
@@ -115,21 +102,9 @@ declare const QList: {
115
102
  C: {};
116
103
  M: {};
117
104
  Defaults: {};
118
- }, Readonly<{
119
- modelValue?: any;
120
- } & import('../../types/component').QBaseComponentProps & {
121
- highlighted?: any;
122
- items?: import('./types').Item[];
123
- groups?: import('./types').Group[];
124
- itemValue?: string;
125
- itemLabel?: string;
126
- disabled?: boolean;
127
- selectable?: boolean;
128
- multiple?: boolean;
129
- required?: boolean;
130
- }> & Readonly<{
105
+ }, Readonly<QListProps> & Readonly<{
131
106
  onClick?: ((key: any) => any) | undefined;
132
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
107
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
133
108
  "onMouseenter:item"?: ((key: any) => any) | undefined;
134
109
  }>, {
135
110
  getItem: (idx: number) => HTMLElement | undefined;
@@ -145,21 +120,9 @@ declare const QList: {
145
120
  __isFragment?: never;
146
121
  __isTeleport?: never;
147
122
  __isSuspense?: never;
148
- } & import('vue').ComponentOptionsBase<Readonly<{
149
- modelValue?: any;
150
- } & import('../../types/component').QBaseComponentProps & {
151
- highlighted?: any;
152
- items?: import('./types').Item[];
153
- groups?: import('./types').Group[];
154
- itemValue?: string;
155
- itemLabel?: string;
156
- disabled?: boolean;
157
- selectable?: boolean;
158
- multiple?: boolean;
159
- required?: boolean;
160
- }> & Readonly<{
123
+ } & import('vue').ComponentOptionsBase<Readonly<QListProps> & Readonly<{
161
124
  onClick?: ((key: any) => any) | undefined;
162
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
125
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
163
126
  "onMouseenter:item"?: ((key: any) => any) | undefined;
164
127
  }>, {
165
128
  getItem: (idx: number) => HTMLElement | undefined;
@@ -167,10 +130,9 @@ declare const QList: {
167
130
  getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
168
131
  getFirstFocusableItemIndex: () => number;
169
132
  getLastFocusableItemIndex: () => number;
170
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
171
- "update:modelValue": (value: any) => any;
172
- } & {
133
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
173
134
  click: (key: any) => any;
135
+ "update:modelValue": (val: any) => any;
174
136
  "mouseenter:item": (key: any) => any;
175
137
  }, string, {
176
138
  groups: import('./types').Group[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QList/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAKlD,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCASg1yB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAT56yB,CAAA;AACrC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAA;AAC7C,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;EAAmC,CAAA;AAGvD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,CAAA;AAG3C,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QList/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAKlD,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCASg1yB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAT56yB,CAAA;AACrC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAA;AAC7C,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;EAAmC,CAAA;AAGvD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,CAAA;AAG3C,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAA"}
@@ -10,6 +10,10 @@ export type Group = QListItemGroupProps & {
10
10
  disabled?: boolean;
11
11
  };
12
12
  export type QListProps = QBaseComponentProps & {
13
+ /**
14
+ * The value of the selected item.
15
+ */
16
+ modelValue?: any;
13
17
  /**
14
18
  * The value of the currently highlighted item.
15
19
  */
@@ -39,7 +43,7 @@ export type QListProps = QBaseComponentProps & {
39
43
  */
40
44
  selectable?: boolean;
41
45
  /**
42
- * Indicates if options can be deselected.
46
+ * Indicates whether multiple options can be selected.
43
47
  */
44
48
  multiple?: boolean;
45
49
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QList/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAEpC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AM,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAGD,eAAO,MAAM,aAAa;;;;;;;CAOM,CAAA"}
@@ -91,9 +91,9 @@ declare function __VLS_template(): {
91
91
  $: import('vue').ComponentInternalInstance;
92
92
  $data: {};
93
93
  $props: {
94
- readonly modelValue?: any;
95
94
  readonly id?: string | undefined;
96
95
  readonly class?: string | unknown[] | undefined;
96
+ readonly modelValue?: any;
97
97
  readonly highlighted?: any;
98
98
  readonly items?: import('../QList/types').Item[] | undefined;
99
99
  readonly groups?: import('../QList/types').Group[] | undefined;
@@ -104,7 +104,7 @@ declare function __VLS_template(): {
104
104
  readonly multiple?: boolean | undefined;
105
105
  readonly required?: boolean | undefined;
106
106
  readonly onClick?: ((key: any) => any) | undefined;
107
- readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
107
+ readonly "onUpdate:modelValue"?: ((val: any) => any) | undefined;
108
108
  readonly "onMouseenter:item"?: ((key: any) => any) | undefined;
109
109
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
110
110
  $attrs: {
@@ -196,23 +196,11 @@ declare function __VLS_template(): {
196
196
  $root: import('vue').ComponentPublicInstance | null;
197
197
  $parent: import('vue').ComponentPublicInstance | null;
198
198
  $host: Element | null;
199
- $emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void) & ((event: "mouseenter:item", key: any) => void);
199
+ $emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", val: any) => void) & ((event: "mouseenter:item", key: any) => void);
200
200
  $el: any;
201
- $options: import('vue').ComponentOptionsBase<Readonly<{
202
- modelValue?: any;
203
- } & import('../../types/component').QBaseComponentProps & {
204
- highlighted?: any;
205
- items?: import('../QList/types').Item[];
206
- groups?: import('../QList/types').Group[];
207
- itemValue?: string;
208
- itemLabel?: string;
209
- disabled?: boolean;
210
- selectable?: boolean;
211
- multiple?: boolean;
212
- required?: boolean;
213
- }> & Readonly<{
201
+ $options: import('vue').ComponentOptionsBase<Readonly<import('..').QListProps> & Readonly<{
214
202
  onClick?: ((key: any) => any) | undefined;
215
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
203
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
216
204
  "onMouseenter:item"?: ((key: any) => any) | undefined;
217
205
  }>, {
218
206
  getItem: (idx: number) => HTMLElement | undefined;
@@ -220,10 +208,9 @@ declare function __VLS_template(): {
220
208
  getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
221
209
  getFirstFocusableItemIndex: () => number;
222
210
  getLastFocusableItemIndex: () => number;
223
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
224
- "update:modelValue": (value: any) => any;
225
- } & {
211
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
226
212
  click: (key: any) => any;
213
+ "update:modelValue": (val: any) => any;
227
214
  "mouseenter:item": (key: any) => any;
228
215
  }, string, {
229
216
  groups: import('../QList/types').Group[];
@@ -253,21 +240,9 @@ declare function __VLS_template(): {
253
240
  groups: import('../QList/types').Group[];
254
241
  itemValue: string;
255
242
  itemLabel: string;
256
- }> & Omit<Readonly<{
257
- modelValue?: any;
258
- } & import('../../types/component').QBaseComponentProps & {
259
- highlighted?: any;
260
- items?: import('../QList/types').Item[];
261
- groups?: import('../QList/types').Group[];
262
- itemValue?: string;
263
- itemLabel?: string;
264
- disabled?: boolean;
265
- selectable?: boolean;
266
- multiple?: boolean;
267
- required?: boolean;
268
- }> & Readonly<{
243
+ }> & Omit<Readonly<import('..').QListProps> & Readonly<{
269
244
  onClick?: ((key: any) => any) | undefined;
270
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
245
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
271
246
  "onMouseenter:item"?: ((key: any) => any) | undefined;
272
247
  }>, "getItem" | "getActiveItemIndex" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
273
248
  getItem: (idx: number) => HTMLElement | undefined;
@@ -386,9 +361,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
386
361
  $: import('vue').ComponentInternalInstance;
387
362
  $data: {};
388
363
  $props: {
389
- readonly modelValue?: any;
390
364
  readonly id?: string | undefined;
391
365
  readonly class?: string | unknown[] | undefined;
366
+ readonly modelValue?: any;
392
367
  readonly highlighted?: any;
393
368
  readonly items?: import('../QList/types').Item[] | undefined;
394
369
  readonly groups?: import('../QList/types').Group[] | undefined;
@@ -399,7 +374,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
399
374
  readonly multiple?: boolean | undefined;
400
375
  readonly required?: boolean | undefined;
401
376
  readonly onClick?: ((key: any) => any) | undefined;
402
- readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
377
+ readonly "onUpdate:modelValue"?: ((val: any) => any) | undefined;
403
378
  readonly "onMouseenter:item"?: ((key: any) => any) | undefined;
404
379
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
405
380
  $attrs: {
@@ -491,23 +466,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
491
466
  $root: import('vue').ComponentPublicInstance | null;
492
467
  $parent: import('vue').ComponentPublicInstance | null;
493
468
  $host: Element | null;
494
- $emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void) & ((event: "mouseenter:item", key: any) => void);
469
+ $emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", val: any) => void) & ((event: "mouseenter:item", key: any) => void);
495
470
  $el: any;
496
- $options: import('vue').ComponentOptionsBase<Readonly<{
497
- modelValue?: any;
498
- } & import('../../types/component').QBaseComponentProps & {
499
- highlighted?: any;
500
- items?: import('../QList/types').Item[];
501
- groups?: import('../QList/types').Group[];
502
- itemValue?: string;
503
- itemLabel?: string;
504
- disabled?: boolean;
505
- selectable?: boolean;
506
- multiple?: boolean;
507
- required?: boolean;
508
- }> & Readonly<{
471
+ $options: import('vue').ComponentOptionsBase<Readonly<import('..').QListProps> & Readonly<{
509
472
  onClick?: ((key: any) => any) | undefined;
510
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
473
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
511
474
  "onMouseenter:item"?: ((key: any) => any) | undefined;
512
475
  }>, {
513
476
  getItem: (idx: number) => HTMLElement | undefined;
@@ -515,10 +478,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
515
478
  getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
516
479
  getFirstFocusableItemIndex: () => number;
517
480
  getLastFocusableItemIndex: () => number;
518
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
519
- "update:modelValue": (value: any) => any;
520
- } & {
481
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
521
482
  click: (key: any) => any;
483
+ "update:modelValue": (val: any) => any;
522
484
  "mouseenter:item": (key: any) => any;
523
485
  }, string, {
524
486
  groups: import('../QList/types').Group[];
@@ -548,21 +510,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
548
510
  groups: import('../QList/types').Group[];
549
511
  itemValue: string;
550
512
  itemLabel: string;
551
- }> & Omit<Readonly<{
552
- modelValue?: any;
553
- } & import('../../types/component').QBaseComponentProps & {
554
- highlighted?: any;
555
- items?: import('../QList/types').Item[];
556
- groups?: import('../QList/types').Group[];
557
- itemValue?: string;
558
- itemLabel?: string;
559
- disabled?: boolean;
560
- selectable?: boolean;
561
- multiple?: boolean;
562
- required?: boolean;
563
- }> & Readonly<{
513
+ }> & Omit<Readonly<import('..').QListProps> & Readonly<{
564
514
  onClick?: ((key: any) => any) | undefined;
565
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
515
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
566
516
  "onMouseenter:item"?: ((key: any) => any) | undefined;
567
517
  }>, "getItem" | "getActiveItemIndex" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
568
518
  getItem: (idx: number) => HTMLElement | undefined;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwEhB,GAAG,8CACpB,GAAG,yBAAyB,GACjC,6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