@quidgest/ui 0.15.7 → 0.15.8

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 (101) hide show
  1. package/dist/manifest/components.json +1 -0
  2. package/dist/ui.css +90 -1
  3. package/dist/ui.esm.js +4453 -4433
  4. package/dist/ui.js +18 -18
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +755 -754
  7. package/dist/ui.scss +31 -2
  8. package/esm/components/QAccordion/types.d.ts.map +1 -1
  9. package/esm/components/QBadge/types.d.ts.map +1 -1
  10. package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
  11. package/esm/components/QButton/QButton.d.ts.map +1 -1
  12. package/esm/components/QButton/QButton.vue.js +34 -32
  13. package/esm/components/QButton/types.d.ts +1 -1
  14. package/esm/components/QButton/types.d.ts.map +1 -1
  15. package/esm/components/QButtonGroup/types.d.ts.map +1 -1
  16. package/esm/components/QButtonToggle/types.d.ts.map +1 -1
  17. package/esm/components/QCard/types.d.ts.map +1 -1
  18. package/esm/components/QCheckbox/QCheckbox.vue.js +28 -28
  19. package/esm/components/QCheckbox/index.d.ts +18 -1
  20. package/esm/components/QCheckbox/index.d.ts.map +1 -1
  21. package/esm/components/QCheckbox/index.js +6 -4
  22. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  23. package/esm/components/QCollapsible/types.d.ts.map +1 -1
  24. package/esm/components/QColorPicker/types.d.ts.map +1 -1
  25. package/esm/components/QCombobox/QCombobox.d.ts +53 -25
  26. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  27. package/esm/components/QCombobox/QCombobox.vue.js +37 -37
  28. package/esm/components/QCombobox/index.d.ts +24 -10
  29. package/esm/components/QCombobox/index.d.ts.map +1 -1
  30. package/esm/components/QCombobox/types.d.ts.map +1 -1
  31. package/esm/components/QDateTimePicker/types.d.ts.map +1 -1
  32. package/esm/components/QDialog/types.d.ts.map +1 -1
  33. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +4 -0
  34. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
  35. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +15 -10
  36. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +66 -34
  37. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  38. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +36 -35
  39. package/esm/components/QDropdownMenu/index.d.ts +7 -4
  40. package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
  41. package/esm/components/QDropdownMenu/types.d.ts +4 -21
  42. package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
  43. package/esm/components/QFileUpload/QFileUpload.d.ts +1 -1
  44. package/esm/components/QFileUpload/types.d.ts.map +1 -1
  45. package/esm/components/QIcon/types.d.ts.map +1 -1
  46. package/esm/components/QInputGroup/QInputGroup.d.ts +1 -1
  47. package/esm/components/QInputGroup/types.d.ts.map +1 -1
  48. package/esm/components/QLabel/types.d.ts.map +1 -1
  49. package/esm/components/QLineLoader/types.d.ts.map +1 -1
  50. package/esm/components/QList/QList.d.ts +39 -18
  51. package/esm/components/QList/QList.d.ts.map +1 -1
  52. package/esm/components/QList/QList.vue.js +98 -94
  53. package/esm/components/QList/QListItem.d.ts +12 -6
  54. package/esm/components/QList/QListItem.d.ts.map +1 -1
  55. package/esm/components/QList/QListItem.vue.js +52 -50
  56. package/esm/components/QList/index.d.ts +48 -19
  57. package/esm/components/QList/index.d.ts.map +1 -1
  58. package/esm/components/QList/types.d.ts +0 -4
  59. package/esm/components/QList/types.d.ts.map +1 -1
  60. package/esm/components/QMeter/types.d.ts.map +1 -1
  61. package/esm/components/QOverlay/types.d.ts.map +1 -1
  62. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  63. package/esm/components/QPopover/types.d.ts.map +1 -1
  64. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  65. package/esm/components/QPropertyList/types.d.ts.map +1 -1
  66. package/esm/components/QSelect/QSelect.d.ts +61 -33
  67. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  68. package/esm/components/QSelect/QSelect.vue.js +14 -14
  69. package/esm/components/QSelect/index.d.ts +24 -10
  70. package/esm/components/QSelect/index.d.ts.map +1 -1
  71. package/esm/components/QSelect/types.d.ts.map +1 -1
  72. package/esm/components/QSkeletonLoader/types.d.ts.map +1 -1
  73. package/esm/components/QSpinnerLoader/types.d.ts.map +1 -1
  74. package/esm/components/QTextArea/types.d.ts.map +1 -1
  75. package/esm/components/QTextField/QTextField.d.ts +10 -10
  76. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  77. package/esm/components/QTextField/index.d.ts.map +1 -1
  78. package/esm/components/QTextField/types.d.ts.map +1 -1
  79. package/esm/components/QThemeProvider/types.d.ts.map +1 -1
  80. package/esm/components/QTooltip/types.d.ts.map +1 -1
  81. package/esm/components/__internal__/QChevron/types.d.ts.map +1 -1
  82. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +8 -8
  83. package/esm/components/__internal__/QClearButton/types.d.ts.map +1 -1
  84. package/esm/components/index.js +63 -62
  85. package/esm/composables/defaults.js +4 -4
  86. package/esm/composables/theme.d.ts.map +1 -1
  87. package/esm/composables/theme.js +5 -5
  88. package/esm/composables/useColor/index.d.ts.map +1 -1
  89. package/esm/composables/useColor/index.js +27 -25
  90. package/esm/composables/useColor/types.d.ts +9 -1
  91. package/esm/composables/useColor/types.d.ts.map +1 -1
  92. package/esm/framework.d.ts +1 -1
  93. package/esm/framework.d.ts.map +1 -1
  94. package/esm/index.d.ts +1 -0
  95. package/esm/templates/theme.d.ts.map +1 -1
  96. package/esm/utils/color.d.ts +6 -0
  97. package/esm/utils/color.d.ts.map +1 -1
  98. package/esm/utils/color.js +16 -12
  99. package/esm/utils/theme.d.ts +1 -1
  100. package/esm/utils/theme.d.ts.map +1 -1
  101. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAA;CACjB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAEpC,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAA;CACjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLineLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLineLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAA"}
@@ -49,16 +49,17 @@ declare function __VLS_template(): {
49
49
  $: import('vue').ComponentInternalInstance;
50
50
  $data: {};
51
51
  $props: {
52
+ readonly modelValue?: boolean | undefined;
52
53
  readonly value: Primitive;
53
54
  readonly label: string;
54
55
  readonly icon?: import('..').Icon | undefined;
55
56
  readonly selectable?: boolean | undefined;
56
- readonly selected?: boolean | undefined;
57
57
  readonly highlighted?: boolean | undefined;
58
58
  readonly disabled?: boolean | undefined;
59
59
  readonly description?: string | undefined;
60
60
  readonly icons?: typeof import('./types').DEFAULT_ICONS | undefined;
61
- readonly onSelect?: ((value: Primitive) => any) | undefined;
61
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
62
+ readonly onClick?: (() => any) | undefined;
62
63
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
63
64
  $attrs: {
64
65
  [x: string]: unknown;
@@ -72,12 +73,17 @@ declare function __VLS_template(): {
72
73
  $root: import('vue').ComponentPublicInstance | null;
73
74
  $parent: import('vue').ComponentPublicInstance | null;
74
75
  $host: Element | null;
75
- $emit: (event: "select", value: Primitive) => void;
76
+ $emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click") => void);
76
77
  $el: HTMLLIElement;
77
- $options: import('vue').ComponentOptionsBase<Readonly<import('./types').QListItemProps> & Readonly<{
78
- onSelect?: ((value: Primitive) => any) | undefined;
79
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
80
- select: (value: Primitive) => any;
78
+ $options: import('vue').ComponentOptionsBase<Readonly<{
79
+ modelValue?: boolean;
80
+ } & import('./types').QListItemProps> & Readonly<{
81
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
82
+ onClick?: (() => any) | undefined;
83
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
84
+ "update:modelValue": (value: boolean) => any;
85
+ } & {
86
+ click: () => any;
81
87
  }, string, {
82
88
  icons: typeof import('./types').DEFAULT_ICONS;
83
89
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
@@ -102,8 +108,11 @@ declare function __VLS_template(): {
102
108
  $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;
103
109
  } & Readonly<{
104
110
  icons: typeof import('./types').DEFAULT_ICONS;
105
- }> & Omit<Readonly<import('./types').QListItemProps> & Readonly<{
106
- onSelect?: ((value: Primitive) => any) | undefined;
111
+ }> & Omit<Readonly<{
112
+ modelValue?: boolean;
113
+ } & import('./types').QListItemProps> & Readonly<{
114
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
115
+ onClick?: (() => any) | undefined;
107
116
  }>, "icons"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
108
117
  $slots: {
109
118
  prepend?(_: {}): any;
@@ -122,8 +131,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
122
131
  getLastFocusableItemIndex: typeof getLastFocusableItemIndex;
123
132
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
124
133
  "update:modelValue": (value: Primitive) => any;
134
+ } & {
135
+ click: (key: Primitive) => any;
125
136
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
126
137
  "onUpdate:modelValue"?: ((value: Primitive) => any) | undefined;
138
+ onClick?: ((key: Primitive) => any) | undefined;
127
139
  }>, {
128
140
  groups: Group[];
129
141
  itemValue: string;
@@ -134,16 +146,17 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
134
146
  $: import('vue').ComponentInternalInstance;
135
147
  $data: {};
136
148
  $props: {
149
+ readonly modelValue?: boolean | undefined;
137
150
  readonly value: Primitive;
138
151
  readonly label: string;
139
152
  readonly icon?: import('..').Icon | undefined;
140
153
  readonly selectable?: boolean | undefined;
141
- readonly selected?: boolean | undefined;
142
154
  readonly highlighted?: boolean | undefined;
143
155
  readonly disabled?: boolean | undefined;
144
156
  readonly description?: string | undefined;
145
157
  readonly icons?: typeof import('./types').DEFAULT_ICONS | undefined;
146
- readonly onSelect?: ((value: Primitive) => any) | undefined;
158
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
159
+ readonly onClick?: (() => any) | undefined;
147
160
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
148
161
  $attrs: {
149
162
  [x: string]: unknown;
@@ -157,12 +170,17 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
157
170
  $root: import('vue').ComponentPublicInstance | null;
158
171
  $parent: import('vue').ComponentPublicInstance | null;
159
172
  $host: Element | null;
160
- $emit: (event: "select", value: Primitive) => void;
173
+ $emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click") => void);
161
174
  $el: HTMLLIElement;
162
- $options: import('vue').ComponentOptionsBase<Readonly<import('./types').QListItemProps> & Readonly<{
163
- onSelect?: ((value: Primitive) => any) | undefined;
164
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
165
- select: (value: Primitive) => any;
175
+ $options: import('vue').ComponentOptionsBase<Readonly<{
176
+ modelValue?: boolean;
177
+ } & import('./types').QListItemProps> & Readonly<{
178
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
179
+ onClick?: (() => any) | undefined;
180
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
181
+ "update:modelValue": (value: boolean) => any;
182
+ } & {
183
+ click: () => any;
166
184
  }, string, {
167
185
  icons: typeof import('./types').DEFAULT_ICONS;
168
186
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
@@ -187,8 +205,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
187
205
  $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;
188
206
  } & Readonly<{
189
207
  icons: typeof import('./types').DEFAULT_ICONS;
190
- }> & Omit<Readonly<import('./types').QListItemProps> & Readonly<{
191
- onSelect?: ((value: Primitive) => any) | undefined;
208
+ }> & Omit<Readonly<{
209
+ modelValue?: boolean;
210
+ } & import('./types').QListItemProps> & Readonly<{
211
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
212
+ onClick?: (() => any) | undefined;
192
213
  }>, "icons"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
193
214
  $slots: {
194
215
  prepend?(_: {}): any;
@@ -1 +1 @@
1
- {"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AA4CA;AA4ZC,OAAO,KAAK,EAAE,KA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G;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as K, mergeModels as N, useModel as P, ref as b, computed as _, createBlock as w, openBlock as d, resolveDynamicComponent as W, normalizeClass as J, withCtx as p, createElementBlock as B, Fragment as D, renderList as M, unref as C, renderSlot as T } from "vue";
2
- import { QListItemGroup as X, QListItem as Y } from "./index.js";
3
- const te = /* @__PURE__ */ K({
1
+ import { defineComponent as J, mergeModels as S, useModel as X, ref as p, computed as _, createBlock as w, openBlock as d, resolveDynamicComponent as Y, normalizeClass as Z, withCtx as b, createElementBlock as B, Fragment as D, renderList as M, unref as T, renderSlot as E } from "vue";
2
+ import { QListItemGroup as ee, QListItem as te } from "./index.js";
3
+ const oe = /* @__PURE__ */ J({
4
4
  __name: "QList",
5
- props: /* @__PURE__ */ N({
5
+ props: /* @__PURE__ */ S({
6
6
  id: {},
7
7
  class: {},
8
8
  highlighted: { type: [String, Number, Boolean, Symbol] },
@@ -16,37 +16,40 @@ const te = /* @__PURE__ */ K({
16
16
  modelValue: { type: [String, Number, Boolean, Symbol] },
17
17
  modelModifiers: {}
18
18
  }),
19
- emits: ["update:modelValue"],
20
- setup(x, { expose: E }) {
21
- const n = x, f = P(x, "modelValue"), g = b(!1), $ = _(() => a.value.length > 1 ? "div" : "ul"), a = _(() => n.groups.length ? n.groups.filter(
19
+ emits: /* @__PURE__ */ S(["click"], ["update:modelValue"]),
20
+ setup(x, { expose: U, emit: $ }) {
21
+ const n = x, R = $, f = X(x, "modelValue"), v = p(!1), q = _(() => a.value.length > 1 ? "div" : "ul"), a = _(() => n.groups.length ? n.groups.filter(
22
22
  (e) => {
23
23
  var t;
24
24
  return (t = n.items) == null ? void 0 : t.some((l) => l.group === e.id);
25
25
  }
26
- ) : [{ id: "", title: "" }]), v = b(null), h = b(null);
27
- function R(e) {
26
+ ) : [{ id: "", title: "" }]), g = p(null), h = p(null);
27
+ function O(e) {
28
+ R("click", e);
29
+ }
30
+ function Q(e) {
28
31
  f.value = e;
29
32
  }
30
- function q() {
31
- g.value = !0;
33
+ function j() {
34
+ v.value = !0;
32
35
  }
33
- function O() {
34
- g.value = !1;
36
+ function z() {
37
+ v.value = !1;
35
38
  }
36
- function Q(e) {
37
- var s;
38
- if (!n.items || (s = v.value) != null && s.contains(e.relatedTarget))
39
+ function G(e) {
40
+ var o;
41
+ if (!n.items || (o = g.value) != null && o.contains(e.relatedTarget))
39
42
  return;
40
43
  let t;
41
- f.value ? t = n.items.findIndex((o) => o[n.itemValue] === f.value) : t = y();
42
- const l = g.value;
43
- r(t, l);
44
+ f.value ? t = n.items.findIndex((i) => i[n.itemValue] === f.value) : t = k();
45
+ const l = v.value;
46
+ u(t, l);
44
47
  }
45
- const I = b("");
46
- let A;
47
- function U(e) {
48
+ const I = p("");
49
+ let V;
50
+ function H(e) {
48
51
  var t;
49
- switch (window.clearTimeout(A), ["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), e.key) {
52
+ switch (window.clearTimeout(V), ["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), e.key) {
50
53
  case "ArrowDown":
51
54
  m("next");
52
55
  break;
@@ -63,14 +66,14 @@ const te = /* @__PURE__ */ K({
63
66
  if (/^[a-z]$/i.test(e.key)) {
64
67
  I.value += e.key.toLowerCase();
65
68
  const l = ((t = n.items) == null ? void 0 : t.length) || 0;
66
- for (let s = 0; s < l; s++)
67
- if (n.items[s][n.itemLabel].toLowerCase().startsWith(I.value)) {
68
- r(s);
69
+ for (let o = 0; o < l; o++)
70
+ if (n.items[o][n.itemLabel].toLowerCase().startsWith(I.value)) {
71
+ u(o);
69
72
  break;
70
73
  }
71
74
  e.preventDefault(), e.stopPropagation();
72
75
  }
73
- A = window.setTimeout(function() {
76
+ V = window.setTimeout(function() {
74
77
  I.value = "";
75
78
  }, 500);
76
79
  }
@@ -78,131 +81,132 @@ const te = /* @__PURE__ */ K({
78
81
  switch (e) {
79
82
  case "next":
80
83
  case "prev":
81
- r(G(e));
84
+ u(P(e));
82
85
  break;
83
86
  case "first":
84
- r(y());
87
+ u(k());
85
88
  break;
86
89
  case "last":
87
- r(L());
90
+ u(A());
88
91
  break;
89
92
  }
90
93
  }
91
- function r(e, t = !1) {
92
- var s;
93
- (s = i()[e]) == null || s.focus({ preventScroll: t });
94
+ function u(e, t = !1) {
95
+ var o;
96
+ (o = s()[e]) == null || o.focus({ preventScroll: t });
94
97
  }
95
- function i() {
98
+ function s() {
96
99
  var t;
97
- const e = (t = v.value) == null ? void 0 : t.querySelectorAll("li");
100
+ const e = (t = g.value) == null ? void 0 : t.querySelectorAll("li");
98
101
  return e ? Array.from(e) : [];
99
102
  }
100
- function j(e) {
101
- return i()[e];
103
+ function K(e) {
104
+ return s()[e];
102
105
  }
103
- function z() {
104
- return i().indexOf(document.activeElement);
106
+ function N() {
107
+ return s().indexOf(document.activeElement);
105
108
  }
106
- function y() {
107
- const e = i(), t = e.find((l) => k(l));
109
+ function k() {
110
+ const e = s(), t = e.find((l) => y(l));
108
111
  return t ? e.indexOf(t) : -1;
109
112
  }
110
- function L() {
111
- const e = i(), t = [...e].reverse().find((l) => k(l));
113
+ function A() {
114
+ const e = s(), t = [...e].reverse().find((l) => y(l));
112
115
  return t ? e.indexOf(t) : -1;
113
116
  }
114
- function S(e, t, l) {
117
+ function L(e, t, l) {
115
118
  return t === "prev" && e <= 0 || t === "next" && e === l.length - 1;
116
119
  }
117
- function G(e) {
118
- const t = z();
119
- return V(t, e);
120
+ function P(e) {
121
+ const t = N();
122
+ return C(t, e);
120
123
  }
121
- function V(e, t) {
122
- const l = i();
123
- if (S(e, t, l))
124
+ function C(e, t) {
125
+ const l = s();
126
+ if (L(e, t, l))
124
127
  return e;
125
- let s = e + (t === "next" ? 1 : -1);
126
- for (; !k(l[s]); ) {
127
- if (S(s, t, l))
128
+ let o = e + (t === "next" ? 1 : -1);
129
+ for (; !y(l[o]); ) {
130
+ if (L(o, t, l))
128
131
  return e;
129
- s += t === "next" ? 1 : -1;
132
+ o += t === "next" ? 1 : -1;
130
133
  }
131
- return s;
134
+ return o;
132
135
  }
133
- function k(e) {
136
+ function y(e) {
134
137
  return e.tabIndex === -2;
135
138
  }
136
- function H(e) {
139
+ function W(e) {
137
140
  var t;
138
141
  return e ? (t = n.items) == null ? void 0 : t.filter((l) => l.group === e) : n.items;
139
142
  }
140
- return E({
141
- getItem: j,
142
- getAdjacentItemIndex: V,
143
- getFirstFocusableItemIndex: y,
144
- getLastFocusableItemIndex: L
145
- }), (e, t) => (d(), w(W($.value), {
143
+ return U({
144
+ getItem: K,
145
+ getAdjacentItemIndex: C,
146
+ getFirstFocusableItemIndex: k,
147
+ getLastFocusableItemIndex: A
148
+ }), (e, t) => (d(), w(Y(q.value), {
146
149
  id: n.id,
147
150
  ref_key: "listRef",
148
- ref: v,
149
- class: J(["q-list", { "q-list--disabled": n.disabled }, n.class]),
151
+ ref: g,
152
+ class: Z(["q-list", { "q-list--disabled": n.disabled }, n.class]),
150
153
  role: "listbox",
151
154
  tabindex: n.disabled ? -1 : 0,
152
- onFocus: Q,
153
- onMousedown: q,
154
- onMouseup: O,
155
- onKeydown: U
155
+ onFocus: G,
156
+ onMousedown: j,
157
+ onMouseup: z,
158
+ onKeydown: H
156
159
  }, {
157
- default: p(() => [
160
+ default: b(() => [
158
161
  (d(!0), B(
159
162
  D,
160
163
  null,
161
- M(a.value, (l, s) => (d(), w(C(X), {
164
+ M(a.value, (l, o) => (d(), w(T(ee), {
162
165
  id: l.id,
163
166
  key: l.id,
164
167
  title: a.value.length === 1 ? void 0 : l.title
165
168
  }, {
166
- default: p(() => [
169
+ default: b(() => [
167
170
  (d(!0), B(
168
171
  D,
169
172
  null,
170
- M(H(l.id), (o, F) => (d(), w(C(Y), {
171
- key: o[n.itemValue],
173
+ M(W(l.id), (i, F) => (d(), w(T(te), {
174
+ key: i[n.itemValue],
172
175
  ref_for: !0,
173
176
  ref_key: "listItemsRef",
174
177
  ref: h,
175
- value: o[n.itemValue],
176
- label: o[n.itemLabel],
177
- description: o.description,
178
- icon: o.icon,
179
- disabled: n.disabled || l.disabled || o.disabled,
180
- highlighted: n.highlighted === o[n.itemValue],
178
+ "model-value": n.selectable && f.value === i[n.itemValue],
179
+ value: i[n.itemValue],
180
+ label: i[n.itemLabel],
181
+ description: i.description,
182
+ icon: i.icon,
183
+ disabled: n.disabled || l.disabled || i.disabled,
184
+ highlighted: n.highlighted === i[n.itemValue],
181
185
  selectable: n.selectable,
182
- selected: n.selectable && f.value === o[n.itemValue],
183
- onSelect: R
186
+ onClick: () => O(i[n.itemValue]),
187
+ "onUpdate:modelValue": () => Q(i[n.itemValue])
184
188
  }, {
185
- append: p(() => {
186
- var u, c;
189
+ append: b(() => {
190
+ var r, c;
187
191
  return [
188
- T(e.$slots, "item.append", {
189
- item: o,
190
- element: (c = (u = h.value) == null ? void 0 : u[F + s * a.value.length]) == null ? void 0 : c.$el
192
+ E(e.$slots, "item.append", {
193
+ item: i,
194
+ element: (c = (r = h.value) == null ? void 0 : r[F + o * a.value.length]) == null ? void 0 : c.$el
191
195
  })
192
196
  ];
193
197
  }),
194
- default: p(() => {
195
- var u, c;
198
+ default: b(() => {
199
+ var r, c;
196
200
  return [
197
- T(e.$slots, "item", {
198
- item: o,
199
- element: (c = (u = h.value) == null ? void 0 : u[F + s * a.value.length]) == null ? void 0 : c.$el
201
+ E(e.$slots, "item", {
202
+ item: i,
203
+ element: (c = (r = h.value) == null ? void 0 : r[F + o * a.value.length]) == null ? void 0 : c.$el
200
204
  })
201
205
  ];
202
206
  }),
203
207
  _: 2
204
208
  /* DYNAMIC */
205
- }, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selectable", "selected"]))),
209
+ }, 1032, ["model-value", "value", "label", "description", "icon", "disabled", "highlighted", "selectable", "onClick", "onUpdate:modelValue"]))),
206
210
  128
207
211
  /* KEYED_FRAGMENT */
208
212
  ))
@@ -220,5 +224,5 @@ const te = /* @__PURE__ */ K({
220
224
  }
221
225
  });
222
226
  export {
223
- te as default
227
+ oe as default
224
228
  };
@@ -1,5 +1,8 @@
1
- import { QListItemProps, DEFAULT_ICONS } from './types';
2
- import { Primitive } from '../../types/primitive';
1
+ import { DEFAULT_ICONS, QListItemProps } from './types';
2
+ type __VLS_Props = QListItemProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: boolean;
5
+ } & __VLS_Props;
3
6
  declare function __VLS_template(): {
4
7
  attrs: Partial<{}>;
5
8
  slots: {
@@ -11,10 +14,13 @@ declare function __VLS_template(): {
11
14
  rootEl: HTMLLIElement;
12
15
  };
13
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: import('vue').DefineComponent<QListItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
- select: (value: Primitive) => any;
16
- }, string, import('vue').PublicProps, Readonly<QListItemProps> & Readonly<{
17
- onSelect?: ((value: Primitive) => any) | undefined;
17
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "update:modelValue": (value: boolean) => any;
19
+ } & {
20
+ click: () => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
23
+ onClick?: (() => any) | undefined;
18
24
  }>, {
19
25
  icons: typeof DEFAULT_ICONS;
20
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AAgDA;AA2FC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,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KAEV,CAAA;CACD,CAAC"}
@@ -1,75 +1,77 @@
1
- import { defineComponent as k, createElementBlock as n, openBlock as i, withModifiers as v, normalizeClass as g, unref as o, renderSlot as a, createElementVNode as c, createCommentVNode as l, createBlock as r, createTextVNode as q, normalizeProps as p, mergeProps as m, toDisplayString as u, createVNode as B, guardReactiveProps as N } from "vue";
2
- import { QIcon as d } from "../QIcon/index.js";
3
- import { DEFAULT_ICONS as S } from "./types.js";
4
- import { useId as C } from "../../composables/uid.js";
5
- const D = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], E = { class: "q-list-item__container" }, I = { class: "q-list-item__content" }, P = {
1
+ import { defineComponent as g, mergeModels as p, useModel as q, createElementBlock as a, openBlock as i, withModifiers as B, normalizeClass as V, unref as o, renderSlot as d, createElementVNode as c, createCommentVNode as s, createBlock as u, createTextVNode as C, normalizeProps as f, mergeProps as _, toDisplayString as b, createVNode as N, guardReactiveProps as S } from "vue";
2
+ import { DEFAULT_ICONS as D } from "./types.js";
3
+ import { QIcon as r } from "../QIcon/index.js";
4
+ import { useId as E } from "../../composables/uid.js";
5
+ const I = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], M = { class: "q-list-item__container" }, P = { class: "q-list-item__content" }, w = {
6
6
  key: 0,
7
7
  class: "q-list-item__description"
8
- }, V = {
8
+ }, T = {
9
9
  key: 0,
10
10
  class: "q-list-item__check-container"
11
- }, K = /* @__PURE__ */ k({
11
+ }, Q = /* @__PURE__ */ g({
12
12
  __name: "QListItem",
13
- props: {
13
+ props: /* @__PURE__ */ p({
14
14
  value: { type: [String, Number, Boolean, Symbol] },
15
15
  label: {},
16
16
  icon: {},
17
17
  selectable: { type: Boolean },
18
- selected: { type: Boolean },
19
18
  highlighted: { type: Boolean },
20
19
  disabled: { type: Boolean },
21
20
  description: {},
22
- icons: { default: () => S }
23
- },
24
- emits: ["select"],
25
- setup(_, { emit: f }) {
26
- const e = _, h = f, b = C();
27
- function s() {
28
- e.disabled || h("select", e.value);
21
+ icons: { default: () => D }
22
+ }, {
23
+ modelValue: { type: Boolean },
24
+ modelModifiers: {}
25
+ }),
26
+ emits: /* @__PURE__ */ p(["click"], ["update:modelValue"]),
27
+ setup(m, { emit: h }) {
28
+ const e = m, k = h, l = q(m, "modelValue"), y = E();
29
+ function n() {
30
+ e.disabled || (k("click"), e.selectable && (l.value = !0));
29
31
  }
30
- function y(t) {
31
- t.key === "Tab" && s(), (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), s());
32
+ function v(t) {
33
+ t.key === "Tab" && n(), (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), n());
32
34
  }
33
- return (t, w) => (i(), n("li", {
34
- id: o(b),
35
+ return (t, $) => (i(), a("li", {
36
+ id: o(y),
35
37
  "data-key": e.value,
36
38
  role: "option",
37
39
  tabindex: e.disabled ? void 0 : -2,
38
- class: g([
40
+ class: V([
39
41
  "q-list-item",
40
42
  {
43
+ "q-list-item--selected": l.value,
41
44
  "q-list-item--disabled": e.disabled,
42
- "q-list-item--selected": e.selected,
43
45
  "q-list-item--highlighted": e.highlighted
44
46
  }
45
47
  ]),
46
48
  "aria-label": e.label,
47
- "aria-selected": e.disabled ? void 0 : e.selected,
48
- onKeydown: y,
49
- onClick: v(s, ["stop", "prevent"])
49
+ "aria-selected": e.disabled ? void 0 : l.value,
50
+ onKeydown: v,
51
+ onClick: B(n, ["stop", "prevent"])
50
52
  }, [
51
- a(t.$slots, "prepend"),
52
- c("div", E, [
53
- c("div", I, [
54
- a(t.$slots, "default", {}, () => [
55
- e.icon ? (i(), r(
56
- o(d),
57
- p(m({ key: 0 }, e.icon)),
53
+ d(t.$slots, "prepend"),
54
+ c("div", M, [
55
+ c("div", P, [
56
+ d(t.$slots, "default", {}, () => [
57
+ e.icon ? (i(), u(
58
+ o(r),
59
+ f(_({ key: 0 }, e.icon)),
58
60
  null,
59
61
  16
60
62
  /* FULL_PROPS */
61
- )) : l("v-if", !0),
62
- q(
63
- " " + u(e.label),
63
+ )) : s("v-if", !0),
64
+ C(
65
+ " " + b(e.label),
64
66
  1
65
67
  /* TEXT */
66
68
  )
67
69
  ])
68
70
  ]),
69
- e.description ? (i(), n("div", P, [
70
- B(
71
- o(d),
72
- p(N(e.icons.description)),
71
+ e.description ? (i(), a("div", w, [
72
+ N(
73
+ o(r),
74
+ f(S(e.icons.description)),
73
75
  null,
74
76
  16
75
77
  /* FULL_PROPS */
@@ -77,25 +79,25 @@ const D = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], E = { c
77
79
  c(
78
80
  "span",
79
81
  null,
80
- u(e.description),
82
+ b(e.description),
81
83
  1
82
84
  /* TEXT */
83
85
  )
84
- ])) : l("v-if", !0)
86
+ ])) : s("v-if", !0)
85
87
  ]),
86
- a(t.$slots, "append"),
87
- e.selectable ? (i(), n("div", V, [
88
- e.selected ? (i(), r(
89
- o(d),
90
- m({ key: 0 }, e.icons.check, { class: "q-list-item__check" }),
88
+ d(t.$slots, "append"),
89
+ e.selectable ? (i(), a("div", T, [
90
+ l.value ? (i(), u(
91
+ o(r),
92
+ _({ key: 0 }, e.icons.check, { class: "q-list-item__check" }),
91
93
  null,
92
94
  16
93
95
  /* FULL_PROPS */
94
- )) : l("v-if", !0)
95
- ])) : l("v-if", !0)
96
- ], 42, D));
96
+ )) : s("v-if", !0)
97
+ ])) : s("v-if", !0)
98
+ ], 42, I));
97
99
  }
98
100
  });
99
101
  export {
100
- K as default
102
+ Q as default
101
103
  };