@quidgest/ui 0.15.2 → 0.15.4

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 (123) hide show
  1. package/dist/manifest/components.json +4 -0
  2. package/dist/ui.css +111 -6
  3. package/dist/ui.esm.js +6988 -5987
  4. package/dist/ui.js +33 -26
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +1141 -990
  7. package/dist/ui.scss +119 -9
  8. package/esm/components/QCombobox/QCombobox.d.ts +18 -14
  9. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  10. package/esm/components/QCombobox/QCombobox.vue.js +1 -1
  11. package/esm/components/QCombobox/index.d.ts +29 -17
  12. package/esm/components/QCombobox/index.d.ts.map +1 -1
  13. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +1 -1
  14. package/esm/components/QDateTimePicker/index.d.ts +3 -0
  15. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  16. package/esm/components/QDialog/QDialog.d.ts +2 -2
  17. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  18. package/esm/components/QDialog/QDialog.vue.js +51 -50
  19. package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts +35 -0
  20. package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts.map +1 -0
  21. package/esm/components/QDismissibleLayer/QDismissibleLayer.vue.js +50 -0
  22. package/esm/components/QDismissibleLayer/QDismissibleLayer.vue2.js +4 -0
  23. package/esm/components/QDismissibleLayer/index.d.ts +53 -0
  24. package/esm/components/QDismissibleLayer/index.d.ts.map +1 -0
  25. package/esm/components/QDismissibleLayer/index.js +6 -0
  26. package/esm/components/QDismissibleLayer/types.d.ts +25 -0
  27. package/esm/components/QDismissibleLayer/types.d.ts.map +1 -0
  28. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +0 -4
  29. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
  30. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +10 -15
  31. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +10 -15
  32. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  33. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +72 -117
  34. package/esm/components/QDropdownMenu/index.d.ts +0 -3
  35. package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
  36. package/esm/components/QField/QField.d.ts.map +1 -1
  37. package/esm/components/QField/QField.vue.js +11 -10
  38. package/esm/components/QFileUpload/QFileUpload.vue.js +1 -1
  39. package/esm/components/QFileUpload/index.d.ts +3 -0
  40. package/esm/components/QFileUpload/index.d.ts.map +1 -1
  41. package/esm/components/QFocusTrap/QFocusTrap.d.ts +28 -0
  42. package/esm/components/QFocusTrap/QFocusTrap.d.ts.map +1 -0
  43. package/esm/components/QFocusTrap/QFocusTrap.vue.js +32 -0
  44. package/esm/components/QFocusTrap/QFocusTrap.vue2.js +4 -0
  45. package/esm/components/QFocusTrap/index.d.ts +38 -0
  46. package/esm/components/QFocusTrap/index.d.ts.map +1 -0
  47. package/esm/components/QFocusTrap/index.js +6 -0
  48. package/esm/components/QFocusTrap/types.d.ts +6 -0
  49. package/esm/components/QFocusTrap/types.d.ts.map +1 -0
  50. package/esm/components/QInputGroup/QInputGroup.vue.js +1 -1
  51. package/esm/components/QLabel/QLabel.d.ts +1 -0
  52. package/esm/components/QLabel/QLabel.d.ts.map +1 -1
  53. package/esm/components/QLabel/QLabel.vue.js +28 -13
  54. package/esm/components/QLabel/index.d.ts +1 -0
  55. package/esm/components/QLabel/index.d.ts.map +1 -1
  56. package/esm/components/QLabel/types.d.ts +5 -0
  57. package/esm/components/QLabel/types.d.ts.map +1 -1
  58. package/esm/components/QList/QList.d.ts +0 -9
  59. package/esm/components/QList/QList.d.ts.map +1 -1
  60. package/esm/components/QList/QList.vue.js +97 -82
  61. package/esm/components/QList/index.d.ts +0 -3
  62. package/esm/components/QList/index.d.ts.map +1 -1
  63. package/esm/components/QMeter/QMeter.vue.js +14 -13
  64. package/esm/components/QMeter/index.d.ts +2 -0
  65. package/esm/components/QMeter/index.d.ts.map +1 -1
  66. package/esm/components/QOverlay/QOverlay.d.ts +2 -0
  67. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  68. package/esm/components/QOverlay/QOverlay.vue.js +197 -148
  69. package/esm/components/QOverlay/index.d.ts +4 -0
  70. package/esm/components/QOverlay/index.d.ts.map +1 -1
  71. package/esm/components/QOverlay/types.d.ts +6 -1
  72. package/esm/components/QOverlay/types.d.ts.map +1 -1
  73. package/esm/components/QPasswordField/QPasswordField.d.ts +8 -4
  74. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  75. package/esm/components/QPasswordField/QPasswordField.vue.js +1 -1
  76. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +6 -5
  77. package/esm/components/QPasswordField/index.d.ts +4 -2
  78. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  79. package/esm/components/QPropertyList/QPropertyList.vue.js +23 -23
  80. package/esm/components/QPropertyList/QPropertyListRow.d.ts +6 -2
  81. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  82. package/esm/components/QPropertyList/QPropertyListRow.vue.js +20 -20
  83. package/esm/components/QPropertyList/index.d.ts +9 -2
  84. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  85. package/esm/components/QRadioGroup/QRadioButton.d.ts +24 -0
  86. package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -0
  87. package/esm/components/QRadioGroup/QRadioButton.vue.js +78 -0
  88. package/esm/components/QRadioGroup/QRadioButton.vue2.js +4 -0
  89. package/esm/components/QRadioGroup/QRadioGroup.d.ts +32 -0
  90. package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -0
  91. package/esm/components/QRadioGroup/QRadioGroup.vue.js +79 -0
  92. package/esm/components/QRadioGroup/QRadioGroup.vue2.js +4 -0
  93. package/esm/components/QRadioGroup/index.d.ts +108 -0
  94. package/esm/components/QRadioGroup/index.d.ts.map +1 -0
  95. package/esm/components/QRadioGroup/index.js +8 -0
  96. package/esm/components/QRadioGroup/types.d.ts +65 -0
  97. package/esm/components/QRadioGroup/types.d.ts.map +1 -0
  98. package/esm/components/QSelect/QSelect.d.ts +4 -8
  99. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  100. package/esm/components/QSelect/QSelect.vue.js +107 -126
  101. package/esm/components/QSelect/index.d.ts +5 -4
  102. package/esm/components/QSelect/index.d.ts.map +1 -1
  103. package/esm/components/QTextArea/QTextArea.vue.js +1 -1
  104. package/esm/components/QTextArea/index.d.ts +3 -0
  105. package/esm/components/QTextArea/index.d.ts.map +1 -1
  106. package/esm/components/QTextField/QTextField.d.ts +2 -2
  107. package/esm/components/QTextField/QTextField.vue.js +1 -1
  108. package/esm/components/QTextField/index.d.ts +4 -1
  109. package/esm/components/QTextField/index.d.ts.map +1 -1
  110. package/esm/components/index.d.ts +3 -0
  111. package/esm/components/index.d.ts.map +1 -1
  112. package/esm/components/index.js +67 -60
  113. package/esm/composables/group.d.ts.map +1 -1
  114. package/esm/composables/group.js +1 -1
  115. package/esm/index.d.ts +4 -0
  116. package/esm/utils/merge.d.ts.map +1 -1
  117. package/esm/utils/merge.js +12 -16
  118. package/esm/vendors/@vueuse/core/index.js +173 -67
  119. package/esm/vendors/@vueuse/integrations/useFocusTrap/component.js +24 -0
  120. package/esm/vendors/@vueuse/shared/index.js +36 -15
  121. package/esm/vendors/focus-trap/dist/focus-trap.esm.js +473 -0
  122. package/esm/vendors/tabbable/dist/index.esm.js +202 -0
  123. package/package.json +3 -1
@@ -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;CACZ,CAAA"}
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,14 +1,6 @@
1
1
  import { Group, QListProps } from './types';
2
2
  import { Primitive } from '../../types/primitive';
3
3
  type __VLS_Props = QListProps;
4
- /**
5
- * Focuses on the HTML element at the specified index among the child elements.
6
- *
7
- * If the index is out of bounds or the element is inaccessible, no action is taken.
8
- *
9
- * @param itemIdx - The index of the HTML element to focus on.
10
- */
11
- declare function focusItem(itemIdx: number, preventScroll?: boolean): void;
12
4
  declare function getItem(idx: number): HTMLElement | undefined;
13
5
  /**
14
6
  * Retrieves the index of the first focusable item among the child elements.
@@ -124,7 +116,6 @@ declare function __VLS_template(): {
124
116
  };
125
117
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
126
118
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
127
- focusItem: typeof focusItem;
128
119
  getItem: typeof getItem;
129
120
  getAdjacentItemIndex: typeof getAdjacentItemIndex;
130
121
  getFirstFocusableItemIndex: typeof getFirstFocusableItemIndex;
@@ -1 +1 @@
1
- {"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AA4CA;AA+XC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AA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,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 H, mergeModels as K, useModel as N, ref as x, computed as F, createBlock as k, openBlock as d, resolveDynamicComponent as z, normalizeClass as J, withCtx as b, createElementBlock as _, Fragment as B, renderList as L, unref as M, renderSlot as D } from "vue";
2
- import { QListItemGroup as P, QListItem as W } from "./index.js";
3
- const Z = /* @__PURE__ */ H({
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({
4
4
  __name: "QList",
5
- props: /* @__PURE__ */ K({
5
+ props: /* @__PURE__ */ N({
6
6
  id: {},
7
7
  class: {},
8
8
  highlighted: { type: [String, Number, Boolean, Symbol] },
@@ -17,33 +17,36 @@ const Z = /* @__PURE__ */ H({
17
17
  modelModifiers: {}
18
18
  }),
19
19
  emits: ["update:modelValue"],
20
- setup(y, { expose: E }) {
21
- const l = y, f = N(y, "modelValue"), p = x(!1), C = F(() => a.value.length > 1 ? "div" : "ul"), a = F(() => l.groups.length ? l.groups.filter(
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(
22
22
  (e) => {
23
23
  var t;
24
- return (t = l.items) == null ? void 0 : t.some((n) => n.group === e.id);
24
+ return (t = n.items) == null ? void 0 : t.some((l) => l.group === e.id);
25
25
  }
26
- ) : [{ id: "", title: "" }]), g = x(null), v = x(null);
26
+ ) : [{ id: "", title: "" }]), v = b(null), h = b(null);
27
27
  function R(e) {
28
28
  f.value = e;
29
29
  }
30
- function $() {
31
- p.value = !0;
32
- }
33
30
  function q() {
34
- p.value = !1;
31
+ g.value = !0;
32
+ }
33
+ function O() {
34
+ g.value = !1;
35
35
  }
36
- function O(e) {
36
+ function Q(e) {
37
37
  var s;
38
- if (!l.items || (s = g.value) != null && s.contains(e.relatedTarget))
38
+ if (!n.items || (s = v.value) != null && s.contains(e.relatedTarget))
39
39
  return;
40
40
  let t;
41
- f.value ? t = l.items.findIndex((o) => o[l.itemValue] === f.value) : t = h();
42
- const n = p.value;
43
- r(t, n);
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
44
  }
45
- function Q(e) {
46
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), e.key) {
45
+ const I = b("");
46
+ let A;
47
+ function U(e) {
48
+ var t;
49
+ switch (window.clearTimeout(A), ["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), e.key) {
47
50
  case "ArrowDown":
48
51
  m("next");
49
52
  break;
@@ -57,18 +60,31 @@ const Z = /* @__PURE__ */ H({
57
60
  m("last");
58
61
  break;
59
62
  }
63
+ if (/^[a-z]$/i.test(e.key)) {
64
+ I.value += e.key.toLowerCase();
65
+ 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
+ break;
70
+ }
71
+ e.preventDefault(), e.stopPropagation();
72
+ }
73
+ A = window.setTimeout(function() {
74
+ I.value = "";
75
+ }, 500);
60
76
  }
61
77
  function m(e) {
62
78
  switch (e) {
63
79
  case "next":
64
80
  case "prev":
65
- r(j(e));
81
+ r(G(e));
66
82
  break;
67
83
  case "first":
68
- r(h());
84
+ r(y());
69
85
  break;
70
86
  case "last":
71
- r(w());
87
+ r(L());
72
88
  break;
73
89
  }
74
90
  }
@@ -78,110 +94,109 @@ const Z = /* @__PURE__ */ H({
78
94
  }
79
95
  function i() {
80
96
  var t;
81
- const e = (t = g.value) == null ? void 0 : t.querySelectorAll("li");
97
+ const e = (t = v.value) == null ? void 0 : t.querySelectorAll("li");
82
98
  return e ? Array.from(e) : [];
83
99
  }
84
- function T(e) {
100
+ function j(e) {
85
101
  return i()[e];
86
102
  }
87
- function U() {
103
+ function z() {
88
104
  return i().indexOf(document.activeElement);
89
105
  }
90
- function h() {
91
- const e = i(), t = e.find((n) => I(n));
106
+ function y() {
107
+ const e = i(), t = e.find((l) => k(l));
92
108
  return t ? e.indexOf(t) : -1;
93
109
  }
94
- function w() {
95
- const e = i(), t = [...e].reverse().find((n) => I(n));
110
+ function L() {
111
+ const e = i(), t = [...e].reverse().find((l) => k(l));
96
112
  return t ? e.indexOf(t) : -1;
97
113
  }
98
- function A(e, t, n) {
99
- return t === "prev" && e <= 0 || t === "next" && e === n.length - 1;
114
+ function S(e, t, l) {
115
+ return t === "prev" && e <= 0 || t === "next" && e === l.length - 1;
100
116
  }
101
- function j(e) {
102
- const t = U();
103
- return S(t, e);
117
+ function G(e) {
118
+ const t = z();
119
+ return V(t, e);
104
120
  }
105
- function S(e, t) {
106
- const n = i();
107
- if (A(e, t, n))
121
+ function V(e, t) {
122
+ const l = i();
123
+ if (S(e, t, l))
108
124
  return e;
109
125
  let s = e + (t === "next" ? 1 : -1);
110
- for (; !I(n[s]); ) {
111
- if (A(s, t, n))
126
+ for (; !k(l[s]); ) {
127
+ if (S(s, t, l))
112
128
  return e;
113
129
  s += t === "next" ? 1 : -1;
114
130
  }
115
131
  return s;
116
132
  }
117
- function I(e) {
133
+ function k(e) {
118
134
  return e.tabIndex === -2;
119
135
  }
120
- function G(e) {
136
+ function H(e) {
121
137
  var t;
122
- return e ? (t = l.items) == null ? void 0 : t.filter((n) => n.group === e) : l.items;
138
+ return e ? (t = n.items) == null ? void 0 : t.filter((l) => l.group === e) : n.items;
123
139
  }
124
140
  return E({
125
- focusItem: r,
126
- getItem: T,
127
- getAdjacentItemIndex: S,
128
- getFirstFocusableItemIndex: h,
129
- getLastFocusableItemIndex: w
130
- }), (e, t) => (d(), k(z(C.value), {
131
- id: l.id,
141
+ getItem: j,
142
+ getAdjacentItemIndex: V,
143
+ getFirstFocusableItemIndex: y,
144
+ getLastFocusableItemIndex: L
145
+ }), (e, t) => (d(), w(W($.value), {
146
+ id: n.id,
132
147
  ref_key: "listRef",
133
- ref: g,
134
- class: J(["q-list", { "q-list--disabled": l.disabled }, l.class]),
148
+ ref: v,
149
+ class: J(["q-list", { "q-list--disabled": n.disabled }, n.class]),
135
150
  role: "listbox",
136
- tabindex: l.disabled ? -1 : 0,
137
- onFocus: O,
138
- onMousedown: $,
139
- onMouseup: q,
140
- onKeydown: Q
151
+ tabindex: n.disabled ? -1 : 0,
152
+ onFocus: Q,
153
+ onMousedown: q,
154
+ onMouseup: O,
155
+ onKeydown: U
141
156
  }, {
142
- default: b(() => [
143
- (d(!0), _(
144
- B,
157
+ default: p(() => [
158
+ (d(!0), B(
159
+ D,
145
160
  null,
146
- L(a.value, (n, s) => (d(), k(M(P), {
147
- id: n.id,
148
- key: n.id,
149
- title: a.value.length === 1 ? void 0 : n.title
161
+ M(a.value, (l, s) => (d(), w(C(X), {
162
+ id: l.id,
163
+ key: l.id,
164
+ title: a.value.length === 1 ? void 0 : l.title
150
165
  }, {
151
- default: b(() => [
152
- (d(!0), _(
153
- B,
166
+ default: p(() => [
167
+ (d(!0), B(
168
+ D,
154
169
  null,
155
- L(G(n.id), (o, V) => (d(), k(M(W), {
156
- key: o[l.itemValue],
170
+ M(H(l.id), (o, F) => (d(), w(C(Y), {
171
+ key: o[n.itemValue],
157
172
  ref_for: !0,
158
173
  ref_key: "listItemsRef",
159
- ref: v,
160
- value: o[l.itemValue],
161
- label: o[l.itemLabel],
174
+ ref: h,
175
+ value: o[n.itemValue],
176
+ label: o[n.itemLabel],
162
177
  description: o.description,
163
178
  icon: o.icon,
164
- disabled: l.disabled || n.disabled || o.disabled,
165
- highlighted: l.highlighted === o[l.itemValue],
166
- selectable: l.selectable,
167
- selected: l.selectable && f.value === o[l.itemValue],
179
+ disabled: n.disabled || l.disabled || o.disabled,
180
+ highlighted: n.highlighted === o[n.itemValue],
181
+ selectable: n.selectable,
182
+ selected: n.selectable && f.value === o[n.itemValue],
168
183
  onSelect: R
169
184
  }, {
170
- append: b(() => {
185
+ append: p(() => {
171
186
  var u, c;
172
187
  return [
173
- D(e.$slots, "item.append", {
188
+ T(e.$slots, "item.append", {
174
189
  item: o,
175
- element: (c = (u = v.value) == null ? void 0 : u[V + s * a.value.length]) == null ? void 0 : c.$el
190
+ element: (c = (u = h.value) == null ? void 0 : u[F + s * a.value.length]) == null ? void 0 : c.$el
176
191
  })
177
192
  ];
178
193
  }),
179
- default: b(() => {
194
+ default: p(() => {
180
195
  var u, c;
181
196
  return [
182
- D(e.$slots, "item", {
197
+ T(e.$slots, "item", {
183
198
  item: o,
184
- element: (c = (u = v.value) == null ? void 0 : u[V + s * a.value.length]) == null ? void 0 : c.$el
199
+ element: (c = (u = h.value) == null ? void 0 : u[F + s * a.value.length]) == null ? void 0 : c.$el
185
200
  })
186
201
  ];
187
202
  }),
@@ -205,5 +220,5 @@ const Z = /* @__PURE__ */ H({
205
220
  }
206
221
  });
207
222
  export {
208
- Z as default
223
+ te as default
209
224
  };
@@ -13,7 +13,6 @@ declare const QList: {
13
13
  }> & Readonly<{
14
14
  "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
15
15
  }>, {
16
- focusItem: (itemIdx: number, preventScroll?: boolean) => void;
17
16
  getItem: (idx: number) => HTMLElement | undefined;
18
17
  getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
19
18
  getFirstFocusableItemIndex: () => number;
@@ -112,7 +111,6 @@ declare const QList: {
112
111
  }> & Readonly<{
113
112
  "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
114
113
  }>, {
115
- focusItem: (itemIdx: number, preventScroll?: boolean) => void;
116
114
  getItem: (idx: number) => HTMLElement | undefined;
117
115
  getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
118
116
  getFirstFocusableItemIndex: () => number;
@@ -138,7 +136,6 @@ declare const QList: {
138
136
  }> & Readonly<{
139
137
  "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
140
138
  }>, {
141
- focusItem: (itemIdx: number, preventScroll?: boolean) => void;
142
139
  getItem: (idx: number) => HTMLElement | undefined;
143
140
  getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
144
141
  getFirstFocusableItemIndex: () => number;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCASo1yB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EATh7yB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCASo1yB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EATh7yB,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,13 +1,14 @@
1
- import { defineComponent as v, mergeModels as b, useModel as f, computed as t, toRef as h, createElementBlock as p, openBlock as x, normalizeClass as L, createElementVNode as o, createVNode as n, unref as c, normalizeStyle as M } from "vue";
2
- import { QLabel as m } from "../QLabel/index.js";
3
- import { useColor as q } from "../../composables/useColor/index.js";
4
- const y = ["id"], C = { class: "q-meter__labels" }, V = { class: "q-meter__track" }, z = /* @__PURE__ */ v({
1
+ import { defineComponent as v, mergeModels as b, useModel as f, computed as t, toRef as p, createElementBlock as h, openBlock as q, normalizeClass as x, createElementVNode as o, createVNode as n, unref as u, normalizeStyle as y } from "vue";
2
+ import { QLabel as c } from "../QLabel/index.js";
3
+ import { useColor as L } from "../../composables/useColor/index.js";
4
+ const M = ["id"], C = { class: "q-meter__labels" }, V = { class: "q-meter__track" }, B = /* @__PURE__ */ v({
5
5
  __name: "QMeter",
6
6
  props: /* @__PURE__ */ b({
7
7
  id: {},
8
8
  class: {},
9
9
  label: {},
10
10
  for: {},
11
+ required: { type: Boolean },
11
12
  max: { default: 100 },
12
13
  valueLabel: {},
13
14
  color: {}
@@ -17,25 +18,25 @@ const y = ["id"], C = { class: "q-meter__labels" }, V = { class: "q-meter__track
17
18
  }),
18
19
  emits: ["update:modelValue"],
19
20
  setup(r) {
20
- const e = r, s = f(r, "modelValue"), u = t(() => s.value / e.max * 100), { style: d } = q(h(e, "color")), i = t(() => {
21
+ const e = r, s = f(r, "modelValue"), m = t(() => s.value / e.max * 100), { style: d } = L(p(e, "color")), i = t(() => {
21
22
  var a;
22
23
  return {
23
- width: `${Math.max(0, Math.min(u.value, 100))}%`,
24
+ width: `${Math.max(0, Math.min(m.value, 100))}%`,
24
25
  backgroundColor: (a = d.value) == null ? void 0 : a.mainColor
25
26
  };
26
27
  }), _ = t(() => {
27
28
  var l;
28
29
  return typeof e.valueLabel == "string" ? e.valueLabel : (l = e.valueLabel) == null ? void 0 : l.call(e, s.value, e.max);
29
30
  });
30
- return (l, a) => (x(), p("div", {
31
+ return (l, a) => (q(), h("div", {
31
32
  id: e.id,
32
- class: L(["q-meter", e.class])
33
+ class: x(["q-meter", e.class])
33
34
  }, [
34
35
  o("div", C, [
35
- n(c(m), {
36
+ n(u(c), {
36
37
  label: e.label
37
38
  }, null, 8, ["label"]),
38
- n(c(m), {
39
+ n(u(c), {
39
40
  label: _.value,
40
41
  class: "q-meter__value-label"
41
42
  }, null, 8, ["label"])
@@ -45,16 +46,16 @@ const y = ["id"], C = { class: "q-meter__labels" }, V = { class: "q-meter__track
45
46
  "div",
46
47
  {
47
48
  class: "q-meter__fill",
48
- style: M(i.value)
49
+ style: y(i.value)
49
50
  },
50
51
  null,
51
52
  4
52
53
  /* STYLE */
53
54
  )
54
55
  ])
55
- ], 10, y));
56
+ ], 10, M));
56
57
  }
57
58
  });
58
59
  export {
59
- z as default
60
+ B as default
60
61
  };
@@ -4,6 +4,7 @@ declare const QMeter: import('vue').DefineComponent<{
4
4
  } & import('../../types/component').QBaseComponentProps & {
5
5
  label?: string;
6
6
  for?: string;
7
+ required?: boolean;
7
8
  } & {
8
9
  max?: number;
9
10
  valueLabel?: string | ((value: number, max: number) => string);
@@ -15,6 +16,7 @@ declare const QMeter: import('vue').DefineComponent<{
15
16
  } & import('../../types/component').QBaseComponentProps & {
16
17
  label?: string;
17
18
  for?: string;
19
+ required?: boolean;
18
20
  } & {
19
21
  max?: number;
20
22
  valueLabel?: string | ((value: number, max: number) => string);
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAK1C,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;wFAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,YAAY,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAK1C,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;wFAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,YAAY,EAAE,WAAW,EAAE,CAAA"}
@@ -9,6 +9,7 @@ declare function __VLS_template(): {
9
9
  default?(_: {}): any;
10
10
  };
11
11
  refs: {
12
+ overlayContainerRef: HTMLDivElement;
12
13
  overlayRef: HTMLDivElement;
13
14
  arrowRef: HTMLDivElement;
14
15
  };
@@ -35,6 +36,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
35
36
  crossOffset: number;
36
37
  trigger: import('../../composables/overlay').Trigger;
37
38
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
39
+ overlayContainerRef: HTMLDivElement;
38
40
  overlayRef: HTMLDivElement;
39
41
  arrowRef: HTMLDivElement;
40
42
  }, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AA0CA;AAycC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAqZlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsGT,OAAO,IAA6B;;yBAbpB,GAAG;;;;;;;EAkBhC;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;OASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AA4DA;AA+gBC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAmclC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;yBAdpB,GAAG;;;;;;;;EAmBhC;AA8BD,KAAK,oBAAoB,GAAG,UAAU,C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