@quidgest/ui 0.28.0 → 0.29.0

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 (203) hide show
  1. package/CHANGELOG.md +51 -8
  2. package/README.md +19 -0
  3. package/dist/json/api.json +1517 -86
  4. package/dist/manifest/components.json +0 -1
  5. package/dist/ui.css +59 -68
  6. package/dist/ui.esm.js +1031 -1043
  7. package/dist/ui.js +1000 -1013
  8. package/dist/ui.min.css +1 -1
  9. package/dist/ui.min.js +1000 -1013
  10. package/dist/ui.scss +83 -27
  11. package/esm/components/QAccordion/QAccordion.d.ts +3 -3
  12. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  13. package/esm/components/QAccordion/QAccordion.vue.js +33 -30
  14. package/esm/components/QAccordion/QAccordionItem.d.ts +4 -1
  15. package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -1
  16. package/esm/components/QAccordion/QAccordionItem.vue.js +37 -6
  17. package/esm/components/QAccordion/index.d.ts +20 -11
  18. package/esm/components/QAccordion/index.d.ts.map +1 -1
  19. package/esm/components/QAvatar/QAvatar.d.ts.map +1 -1
  20. package/esm/components/QAvatar/QAvatar.vue.js +19 -12
  21. package/esm/components/QAvatar/types.d.ts +2 -1
  22. package/esm/components/QAvatar/types.d.ts.map +1 -1
  23. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  24. package/esm/components/QBadge/QBadge.vue.js +36 -37
  25. package/esm/components/QButtonGroup/QButtonGroup.vue.js +18 -18
  26. package/esm/components/QCarousel/QCarousel.d.ts +1 -1
  27. package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
  28. package/esm/components/QCarousel/QCarousel.vue.js +99 -95
  29. package/esm/components/QCarousel/constants.d.ts +1 -0
  30. package/esm/components/QCarousel/constants.d.ts.map +1 -1
  31. package/esm/components/QCarousel/constants.js +2 -1
  32. package/esm/components/QCarousel/index.d.ts +3 -3
  33. package/esm/components/QCheckbox/QCheckbox.d.ts +0 -2
  34. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  35. package/esm/components/QCheckbox/QCheckbox.vue.js +33 -36
  36. package/esm/components/QCheckbox/index.d.ts +0 -1
  37. package/esm/components/QCheckbox/index.d.ts.map +1 -1
  38. package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
  39. package/esm/components/QColorPicker/QColorPicker.vue.js +1 -2
  40. package/esm/components/QCombobox/QCombobox.d.ts +9 -0
  41. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  42. package/esm/components/QCombobox/QCombobox.vue.js +142 -134
  43. package/esm/components/QCombobox/index.d.ts +10 -0
  44. package/esm/components/QCombobox/index.d.ts.map +1 -1
  45. package/esm/components/QCombobox/types.d.ts +8 -0
  46. package/esm/components/QCombobox/types.d.ts.map +1 -1
  47. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  48. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +199 -219
  49. package/esm/components/QDialog/QDialog.d.ts +1 -1
  50. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  51. package/esm/components/QDialog/QDialog.vue.js +4 -4
  52. package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
  53. package/esm/components/QDialog/index.d.ts +6 -6
  54. package/esm/components/QDialog/types.d.ts +3 -3
  55. package/esm/components/QDialog/types.d.ts.map +1 -1
  56. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +8 -0
  57. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  58. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +136 -124
  59. package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
  60. package/esm/components/QFileUpload/QFileUpload.vue.js +82 -79
  61. package/esm/components/QFocusWrap/QFocusWrap.d.ts.map +1 -1
  62. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  63. package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -1
  64. package/esm/components/QIcon/QSvgSymbol.vue.js +31 -31
  65. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  66. package/esm/components/QInputGroup/QInputGroup.vue.js +67 -41
  67. package/esm/components/QInputGroup/types.d.ts +15 -1
  68. package/esm/components/QInputGroup/types.d.ts.map +1 -1
  69. package/esm/components/QList/QList.d.ts +6 -0
  70. package/esm/components/QList/QList.d.ts.map +1 -1
  71. package/esm/components/QList/QList.vue.js +4 -1
  72. package/esm/components/QList/QListItem.d.ts +6 -2
  73. package/esm/components/QList/QListItem.d.ts.map +1 -1
  74. package/esm/components/QList/QListItem.vue.js +54 -41
  75. package/esm/components/QList/index.d.ts +6 -1
  76. package/esm/components/QList/index.d.ts.map +1 -1
  77. package/esm/components/QList/types.d.ts +16 -0
  78. package/esm/components/QList/types.d.ts.map +1 -1
  79. package/esm/components/QOverflow/QOverflow.d.ts +6 -1
  80. package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
  81. package/esm/components/QOverflow/QOverflow.vue.js +90 -95
  82. package/esm/components/QOverflow/index.d.ts +3 -3
  83. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  84. package/esm/components/QOverlay/QOverlay.vue.js +125 -117
  85. package/esm/components/QOverlay/types.d.ts +9 -2
  86. package/esm/components/QOverlay/types.d.ts.map +1 -1
  87. package/esm/components/QPasswordField/QPasswordField.d.ts +1 -0
  88. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  89. package/esm/components/QPasswordField/QPasswordField.vue.js +5 -0
  90. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +1 -0
  91. package/esm/components/QPasswordField/index.d.ts +6 -0
  92. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  93. package/esm/components/QPasswordField/types.d.ts +10 -0
  94. package/esm/components/QPasswordField/types.d.ts.map +1 -1
  95. package/esm/components/QPhoneField/QPhoneField.d.ts +184 -18
  96. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  97. package/esm/components/QPhoneField/index.d.ts +92 -9
  98. package/esm/components/QPhoneField/index.d.ts.map +1 -1
  99. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  100. package/esm/components/QPropertyList/QPropertyList.vue.js +62 -60
  101. package/esm/components/QPropertyList/QPropertyListRow.vue.js +2 -2
  102. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  103. package/esm/components/QRadioGroup/QRadioButton.vue.js +2 -2
  104. package/esm/components/QRadioGroup/QRadioGroup.vue.js +46 -46
  105. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -1
  106. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +7 -7
  107. package/esm/components/QRemoveScrollBar/utils/gap.d.ts +0 -6
  108. package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -1
  109. package/esm/components/QRemoveScrollBar/utils/gap.js +12 -18
  110. package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts +11 -0
  111. package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts.map +1 -1
  112. package/esm/components/QRemoveScrollBar/utils/stylesheet.js +5 -5
  113. package/esm/components/QSelect/QSelect.d.ts +157 -0
  114. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  115. package/esm/components/QSelect/QSelect.vue.js +240 -212
  116. package/esm/components/QSelect/index.d.ts +84 -0
  117. package/esm/components/QSelect/index.d.ts.map +1 -1
  118. package/esm/components/QSelect/types.d.ts +8 -0
  119. package/esm/components/QSelect/types.d.ts.map +1 -1
  120. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  121. package/esm/components/QSidebar/QSidebar.vue.js +1 -2
  122. package/esm/components/QSidebar/QSidebarAnchor.vue.js +1 -1
  123. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  124. package/esm/components/QSidebar/QSidebarItem.vue.js +1 -1
  125. package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
  126. package/esm/components/QSidebar/QSidebarPanel.vue.js +5 -5
  127. package/esm/components/QSidebar/context.d.ts +3 -3
  128. package/esm/components/QSidebar/context.d.ts.map +1 -1
  129. package/esm/components/QSteps/QSteps.d.ts +4 -4
  130. package/esm/components/QSteps/QSteps.d.ts.map +1 -1
  131. package/esm/components/QSteps/QSteps.vue.js +9 -15
  132. package/esm/components/QSteps/index.d.ts +2 -2
  133. package/esm/components/QSteps/types.d.ts +2 -1
  134. package/esm/components/QSteps/types.d.ts.map +1 -1
  135. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  136. package/esm/components/QTabs/QTab.vue.js +2 -2
  137. package/esm/components/QTabs/QTabs.d.ts +4 -4
  138. package/esm/components/QTabs/QTabs.d.ts.map +1 -1
  139. package/esm/components/QTabs/QTabs.vue.js +86 -85
  140. package/esm/components/QTabs/context.d.ts +3 -3
  141. package/esm/components/QTabs/context.d.ts.map +1 -1
  142. package/esm/components/QTabs/index.d.ts +2 -2
  143. package/esm/components/QTextArea/QTextArea.d.ts +1 -1
  144. package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
  145. package/esm/components/QTextArea/QTextArea.vue.js +25 -24
  146. package/esm/components/QTextArea/index.d.ts +3 -3
  147. package/esm/components/QToast/QToast.d.ts.map +1 -1
  148. package/esm/components/QToast/QToast.vue.js +7 -4
  149. package/esm/components/QToast/QToaster.d.ts.map +1 -1
  150. package/esm/components/QToast/types.d.ts +3 -3
  151. package/esm/components/QToggleGroup/QToggleGroup.d.ts +3 -3
  152. package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
  153. package/esm/components/QToggleGroup/QToggleGroup.vue.js +34 -31
  154. package/esm/components/QToggleGroup/index.d.ts +8 -8
  155. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  156. package/esm/components/QTooltip/QTooltip.vue.js +1 -1
  157. package/esm/composables/defaults.d.ts +10 -0
  158. package/esm/composables/defaults.d.ts.map +1 -1
  159. package/esm/composables/defaults.js +8 -5
  160. package/esm/composables/useDialog/_internal.js +8 -11
  161. package/esm/composables/useDialog/index.js +1 -2
  162. package/esm/composables/useDialog/types.d.ts.map +1 -1
  163. package/esm/composables/useDropZone/index.d.ts +1 -11
  164. package/esm/composables/useDropZone/index.d.ts.map +1 -1
  165. package/esm/composables/useDropZone/index.js +23 -26
  166. package/esm/composables/useGroup/index.d.ts.map +1 -1
  167. package/esm/composables/useGroup/index.js +15 -15
  168. package/esm/composables/useOverlayScope/index.d.ts +29 -0
  169. package/esm/composables/useOverlayScope/index.d.ts.map +1 -0
  170. package/esm/composables/useOverlayScope/index.js +23 -0
  171. package/esm/composables/useTextareaAutosize/index.d.ts +3 -1
  172. package/esm/composables/useTextareaAutosize/index.d.ts.map +1 -1
  173. package/esm/composables/useTextareaAutosize/index.js +6 -6
  174. package/esm/composables/useToast/_internal.js +10 -15
  175. package/esm/composables/useToast/index.js +1 -2
  176. package/esm/composables/useToast/types.d.ts.map +1 -1
  177. package/esm/framework.js +14 -12
  178. package/esm/index.d.ts +1 -2
  179. package/esm/index.d.ts.map +1 -1
  180. package/esm/symbols/overlayScope.d.ts +4 -0
  181. package/esm/symbols/overlayScope.d.ts.map +1 -0
  182. package/esm/symbols/overlayScope.js +4 -0
  183. package/esm/types/component.d.ts +8 -0
  184. package/esm/types/component.d.ts.map +1 -1
  185. package/esm/types/index.d.ts +1 -1
  186. package/esm/types/index.d.ts.map +1 -1
  187. package/esm/utils/color/parse.d.ts.map +1 -1
  188. package/esm/utils/color/parse.js +3 -10
  189. package/esm/utils/date.d.ts +35 -13
  190. package/esm/utils/date.d.ts.map +1 -1
  191. package/esm/utils/date.js +313 -253
  192. package/esm/utils/mask.d.ts +1 -0
  193. package/esm/utils/mask.d.ts.map +1 -1
  194. package/esm/utils/mask.js +42 -100
  195. package/esm/utils/overlay.d.ts +13 -1
  196. package/esm/utils/overlay.d.ts.map +1 -1
  197. package/esm/utils/overlay.js +55 -41
  198. package/esm/utils/safeTriangle.d.ts.map +1 -1
  199. package/esm/utils/safeTriangle.js +2 -2
  200. package/esm/utils/setupPropsProxy.d.ts +3 -1
  201. package/esm/utils/setupPropsProxy.d.ts.map +1 -1
  202. package/esm/utils/setupPropsProxy.js +2 -2
  203. package/package.json +9 -6
@@ -1,62 +1,62 @@
1
- import { provideDefaults as e } from "../../composables/defaults.js";
2
- import { useGroup as t } from "../../composables/useGroup/index.js";
3
- import { useId as n } from "../../composables/useId/index.js";
4
- import { QOverflow as r } from "../QOverflow/index.js";
5
- import { useEnabledSelection as i } from "../../composables/useEnabledSelection/index.js";
6
- import { DEFAULT_ICONS as a, DEFAULT_TEXTS as o } from "./constants.js";
7
- import { TabsSymbol as s } from "./context.js";
8
- import { computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, mergeModels as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, openBlock as y, provide as b, ref as x, renderSlot as S, shallowRef as C, toRef as w, unref as T, useModel as E, useTemplateRef as D, watch as O, withCtx as k } from "vue";
1
+ import { booleanDefault as e, provideDefaults as t } from "../../composables/defaults.js";
2
+ import { useGroup as n } from "../../composables/useGroup/index.js";
3
+ import { useId as r } from "../../composables/useId/index.js";
4
+ import { QOverflow as i } from "../QOverflow/index.js";
5
+ import { useEnabledSelection as a } from "../../composables/useEnabledSelection/index.js";
6
+ import { DEFAULT_ICONS as o, DEFAULT_TEXTS as s } from "./constants.js";
7
+ import { TabsSymbol as c } from "./context.js";
8
+ import { computed as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, mergeModels as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as y, openBlock as b, provide as x, ref as S, renderSlot as C, shallowRef as w, toRef as T, unref as E, useModel as D, useTemplateRef as O, watch as k, withCtx as A } from "vue";
9
9
  //#region src/components/QTabs/QTabs.vue?vue&type=script&setup=true&lang.ts
10
- var A = ["id"], j = {
10
+ var j = ["id"], M = {
11
11
  ref: "tabListHost",
12
12
  class: "q-tabs__list"
13
- }, M = { class: "q-tabs__panels" }, N = /*@__PURE__*/ p({
13
+ }, ee = { class: "q-tabs__panels" }, N = /*@__PURE__*/ m({
14
14
  __name: "QTabs",
15
- props: /*@__PURE__*/ m({
15
+ props: /*@__PURE__*/ h({
16
16
  id: {},
17
17
  class: {},
18
18
  direction: { default: "horizontal" },
19
19
  align: { default: "start" },
20
20
  variant: { default: "line" },
21
21
  disabled: { type: Boolean },
22
- icons: { default: () => a },
23
- texts: { default: () => o }
22
+ icons: { default: () => o },
23
+ texts: { default: () => s }
24
24
  }, {
25
25
  modelValue: {},
26
26
  modelModifiers: {}
27
27
  }),
28
28
  emits: ["update:modelValue"],
29
- setup(a) {
30
- let o = a, p = E(a, "modelValue"), m = n(w(o, "id")), N = D("tabListHost"), P = D("overflowRef"), F = c(() => P.value?.contentEl ?? null), I = C([]), L = x({
29
+ setup(o) {
30
+ let s = o, m = D(o, "modelValue"), h = r(T(s, "id")), N = O("tabListHost"), P = O("overflowRef"), F = l(() => P.value?.contentEl ?? null), I = w([]), L = S({
31
31
  width: "0",
32
32
  height: "0",
33
33
  transform: "translate(0, 0)",
34
34
  opacity: "0"
35
- }), R = x(!1), z = null, { active: B } = t({
36
- active: p,
35
+ }), R = S(!1), z = null, { active: B } = n({
36
+ active: m,
37
37
  required: !0
38
38
  });
39
- O(B, (e) => {
40
- p.value = e;
41
- }), e({ QTab: {
42
- disabled: w(o, "disabled"),
43
- texts: w(o, "texts")
39
+ k(B, (e) => {
40
+ m.value = e;
41
+ }), t({ QTab: {
42
+ disabled: e(() => s.disabled),
43
+ texts: T(s, "texts")
44
44
  } });
45
- let V = c(() => [
45
+ let V = l(() => [
46
46
  "q-tabs",
47
- `q-tabs--${o.direction}`,
48
- `q-tabs--${o.variant}`,
49
- `q-tabs--align-${o.align}`,
47
+ `q-tabs--${s.direction}`,
48
+ `q-tabs--${s.variant}`,
49
+ `q-tabs--align-${s.align}`,
50
50
  R.value ? "q-tabs--indicator-ready" : void 0,
51
- o.class
51
+ s.class
52
52
  ]);
53
53
  function H() {
54
54
  let e = F.value;
55
- e && (e.setAttribute("role", "tablist"), e.setAttribute("aria-orientation", o.direction));
55
+ e && (e.setAttribute("role", "tablist"), e.setAttribute("aria-orientation", s.direction));
56
56
  }
57
57
  function U(e) {
58
58
  let t = e.tabRef.value;
59
- return t ? "$el" in t ? t.$el : t : null;
59
+ return t ? t.$el : null;
60
60
  }
61
61
  function W() {
62
62
  R.value = !1, L.value = {
@@ -67,11 +67,11 @@ var A = ["id"], j = {
67
67
  };
68
68
  }
69
69
  function G() {
70
- if (o.variant !== "line" || !p.value) {
70
+ if (s.variant !== "line" || !m.value) {
71
71
  W();
72
72
  return;
73
73
  }
74
- let e = I.value.find((e) => e.value === p.value);
74
+ let e = I.value.find((e) => e.value === m.value);
75
75
  if (!e) {
76
76
  W();
77
77
  return;
@@ -81,7 +81,7 @@ var A = ["id"], j = {
81
81
  W();
82
82
  return;
83
83
  }
84
- let n = o.direction === "horizontal", r = R.value;
84
+ let n = s.direction === "horizontal", r = R.value;
85
85
  n ? L.value = {
86
86
  width: `${t.offsetWidth}px`,
87
87
  height: "var(--q-tabs-indicator-thickness)",
@@ -92,19 +92,19 @@ var A = ["id"], j = {
92
92
  height: `${t.offsetHeight}px`,
93
93
  transform: `translate(0, ${t.offsetTop}px)`,
94
94
  opacity: "1"
95
- }, r || h(() => {
95
+ }, r || g(() => {
96
96
  L.value.opacity === "1" && (R.value = !0);
97
97
  });
98
98
  }
99
99
  function K() {
100
- if (!p.value) return;
101
- let e = I.value.find((e) => e.value === p.value);
100
+ if (!m.value) return;
101
+ let e = I.value.find((e) => e.value === m.value);
102
102
  if (!e) return;
103
103
  let t = U(e);
104
104
  t && P.value?.scrollElementIntoView(t);
105
105
  }
106
106
  function q() {
107
- if (o.variant !== "line") {
107
+ if (s.variant !== "line") {
108
108
  z?.disconnect();
109
109
  return;
110
110
  }
@@ -118,97 +118,98 @@ var A = ["id"], j = {
118
118
  t && z.observe(t);
119
119
  }
120
120
  }
121
- let { enabledItems: J, ensureSelection: Y } = i(() => I.value, p), X;
121
+ let { enabledItems: J, ensureSelection: Y } = a(() => I.value, m), { ensureSelection: X } = a(() => I.value.map((e) => ({ value: e.value })), m);
122
122
  function Z() {
123
- X ||= h(() => {
124
- X = void 0, Y();
123
+ s.disabled ? X() : Y();
124
+ }
125
+ let Q;
126
+ function $() {
127
+ Q ||= g(() => {
128
+ Q = void 0, Z();
125
129
  });
126
130
  }
127
- function Q(e) {
128
- if (I.value = [...I.value, e], !p.value) {
129
- Y();
131
+ function te(e) {
132
+ if (I.value = [...I.value, e], !m.value) {
133
+ Z();
130
134
  return;
131
135
  }
132
- Z();
136
+ $();
133
137
  }
134
- function $(e) {
138
+ function ne(e) {
135
139
  I.value = I.value.filter((t) => t.value !== e);
136
140
  }
137
- function ee(e, t) {
138
- if (e === t) return;
141
+ function re(e, t) {
139
142
  let n = I.value.findIndex((t) => t.value === e);
140
143
  if (n !== -1) {
141
144
  if (I.value = I.value.map((e, r) => r === n ? {
142
145
  ...e,
143
146
  value: t
144
- } : e), p.value === e || p.value === t) {
145
- p.value = t;
147
+ } : e), m.value === e || m.value === t) {
148
+ m.value = t;
146
149
  return;
147
150
  }
148
- Y();
151
+ Z();
149
152
  }
150
153
  }
151
- function te(e, t) {
152
- let n = J.value;
153
- if (!n.length) return;
154
- let r = n.findIndex((t) => t.value === e), i = n[r === -1 ? 0 : (r + t + n.length) % n.length];
155
- i.select(), i.focus();
154
+ function ie(e, t) {
155
+ let n = J.value, r = n[(n.findIndex((t) => t.value === e) + t + n.length) % n.length];
156
+ r.select(), r.focus();
156
157
  }
157
- function ne() {
158
+ function ae() {
158
159
  let e = J.value[0];
159
- e && (e.select(), e.focus());
160
+ e.select(), e.focus();
160
161
  }
161
- function re() {
162
+ function oe() {
162
163
  let e = J.value, t = e[e.length - 1];
163
- t && (t.select(), t.focus());
164
+ t.select(), t.focus();
164
165
  }
165
- return O(() => I.value.map((e) => [e.value, T(e.disabled)]), () => Z()), O(() => [
166
- p.value,
166
+ return k(() => [m.value, I.value.map((e) => [e.value, E(e.disabled)])], () => $()), k(() => [
167
+ m.value,
167
168
  I.value.length,
168
- o.direction,
169
- o.variant,
170
- o.align
171
- ], () => h(() => {
169
+ s.direction,
170
+ s.variant,
171
+ s.align
172
+ ], () => g(() => {
172
173
  G(), K();
173
- }), { immediate: !0 }), O(() => [I.value.length, o.variant], () => h(q), { immediate: !0 }), O(() => [F.value, o.direction], () => H(), {
174
+ }), { immediate: !0 }), k(() => [I.value.length, s.variant], () => g(q), { immediate: !0 }), k(() => [F.value, s.direction], () => H(), {
174
175
  immediate: !0,
175
176
  flush: "post"
176
- }), v(() => {
177
+ }), y(() => {
177
178
  z?.disconnect(), z = null;
178
- }), b(s, {
179
+ }), x(c, {
179
180
  tabListEl: F,
180
- direction: c(() => o.direction),
181
- register: Q,
182
- unregister: $,
183
- updateValue: ee,
184
- focusAdjacent: te,
185
- focusFirst: ne,
186
- focusLast: re
187
- }), (e, t) => (y(), u("div", {
188
- id: T(m),
189
- class: g(V.value)
190
- }, [d("div", j, [f(T(r), {
181
+ direction: l(() => s.direction),
182
+ register: te,
183
+ unregister: ne,
184
+ updateValue: re,
185
+ focusAdjacent: ie,
186
+ focusFirst: ae,
187
+ focusLast: oe
188
+ }), (e, t) => (b(), d("div", {
189
+ id: E(h),
190
+ class: _(V.value)
191
+ }, [f("div", M, [p(E(i), {
191
192
  ref_key: "overflowRef",
192
193
  ref: P,
193
194
  class: "q-tabs__overflow",
194
- direction: o.direction,
195
+ direction: s.direction,
195
196
  "scroll-mode": "item",
196
197
  "content-class": "q-tabs__tablist",
197
- icons: o.icons,
198
- texts: o.texts
198
+ icons: s.icons,
199
+ texts: s.texts
199
200
  }, {
200
- default: k(() => [o.variant === "line" ? (y(), u("div", {
201
+ default: A(() => [s.variant === "line" ? (b(), d("div", {
201
202
  key: 0,
202
203
  class: "q-tabs__indicator",
203
204
  "aria-hidden": "true",
204
- style: _(L.value)
205
- }, null, 4)) : l("v-if", !0)]),
205
+ style: v(L.value)
206
+ }, null, 4)) : u("v-if", !0)]),
206
207
  _: 1
207
208
  }, 8, [
208
209
  "direction",
209
210
  "icons",
210
211
  "texts"
211
- ])], 512), d("div", M, [S(e.$slots, "default")])], 10, A));
212
+ ])], 512), f("div", ee, [C(e.$slots, "default")])], 10, j));
212
213
  }
213
214
  });
214
215
  //#endregion
@@ -18,11 +18,11 @@ export type QTabRegistration = {
18
18
  */
19
19
  disabled: ComputedRef<boolean>;
20
20
  /**
21
- * Template ref for the tab trigger element (indicator positioning).
21
+ * Template ref of the tab trigger component, whose `$el` positions the indicator.
22
22
  */
23
23
  tabRef: Ref<{
24
- $el?: HTMLElement;
25
- } | HTMLElement | null>;
24
+ $el: HTMLElement;
25
+ } | null>;
26
26
  /**
27
27
  * Moves DOM focus to this tab's trigger button.
28
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAEvC;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;OAEG;IACH,MAAM,EAAE,GAAG,CAAC;QAAE,GAAG,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,WAAW,GAAG,IAAI,CAAC,CAAA;IAEvD;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IAC1B;;;;;OAKG;IACH,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAElC;;;;OAIG;IACH,SAAS,EAAE,WAAW,CAAC,cAAc,CAAC,CAAA;IAEtC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAEzC;;;;OAIG;IACH,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEnC;;;;;OAKG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAEzD;;;;;OAKG;IACH,aAAa,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAE5D;;OAEG;IACH,UAAU,EAAE,MAAM,IAAI,CAAA;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CAAoB,CAAA"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAEvC;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;OAEG;IACH,MAAM,EAAE,GAAG,CAAC;QAAE,GAAG,EAAE,WAAW,CAAA;KAAE,GAAG,IAAI,CAAC,CAAA;IAExC;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IAC1B;;;;;OAKG;IACH,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAElC;;;;OAIG;IACH,SAAS,EAAE,WAAW,CAAC,cAAc,CAAC,CAAA;IAEtC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAEzC;;;;OAIG;IACH,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEnC;;;;;OAKG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAEzD;;;;;OAKG;IACH,aAAa,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAE5D;;OAEG;IACH,UAAU,EAAE,MAAM,IAAI,CAAA;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CAAoB,CAAA"}
@@ -53,7 +53,7 @@ declare const QTabs: {
53
53
  $el: HTMLDivElement;
54
54
  $options: import('vue').ComponentOptionsBase<Readonly<import('..').QOverflowProps> & Readonly<{}>, {
55
55
  contentEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
56
- scrollElementIntoView: (element: HTMLElement) => void;
56
+ scrollElementIntoView: (element: HTMLElement) => Promise<void>;
57
57
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
58
58
  icons: typeof import('../QOverflow/constants').DEFAULT_ICONS;
59
59
  texts: import('..').QOverflowTexts;
@@ -94,7 +94,7 @@ declare const QTabs: {
94
94
  remapWheel: boolean;
95
95
  }> & Omit<Readonly<import('..').QOverflowProps> & Readonly<{}>, "contentEl" | "scrollElementIntoView" | ("icons" | "texts" | "direction" | "arrowPlacement" | "arrowVisibility" | "scrollMode" | "scrollStep" | "remapWheel")> & {
96
96
  contentEl: HTMLElement | null;
97
- scrollElementIntoView: (element: HTMLElement) => void;
97
+ scrollElementIntoView: (element: HTMLElement) => Promise<void>;
98
98
  } & {} & import('vue').ComponentCustomProperties & {} & {
99
99
  $slots: {
100
100
  prev?(_: {
@@ -23,8 +23,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
23
23
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
24
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
25
25
  }>, {
26
- resize: "none" | "both" | "horizontal" | "vertical";
27
26
  wrap: "soft" | "hard" | "off";
27
+ resize: "none" | "both" | "horizontal" | "vertical";
28
28
  rows: number;
29
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
30
30
  textareaRef: HTMLTextAreaElement;
@@ -1 +1 @@
1
- {"version":3,"file":"QTextArea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextArea/QTextArea.vue"],"names":[],"mappings":"AAyDA;AA4IC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAMvC,KAAK,WAAW,GAAG,cAAc,CAAC;AAkEnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6HT,OAAO,IAA6B;;iCAhBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACJ,GAAG;wBACF,GAAG;;;;;;EAiB/B;AAmBD,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":"QTextArea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextArea/QTextArea.vue"],"names":[],"mappings":"AAwDA;AAsIC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAMvC,KAAK,WAAW,GAAG,cAAc,CAAC;AA6DnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA4HT,OAAO,IAA6B;;iCAhBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACJ,GAAG;wBACF,GAAG;;;;;;EAiB/B;AAkBD,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"}
@@ -2,9 +2,9 @@ import { useId as e } from "../../composables/useId/index.js";
2
2
  import { mergeDescribedBy as t } from "../__internal__/QHelpPopover/resolveHelp.js";
3
3
  import { QField as n } from "../QField/index.js";
4
4
  import { useTextareaAutosize as r } from "../../composables/useTextareaAutosize/index.js";
5
- import { computed as i, createBlock as a, createElementVNode as o, createSlots as s, defineComponent as c, mergeModels as l, mergeProps as u, normalizeClass as d, onBeforeUnmount as f, openBlock as p, ref as m, renderSlot as h, toHandlers as g, toRef as _, unref as v, useAttrs as y, useModel as b, vModelText as x, watch as S, withCtx as C, withDirectives as w } from "vue";
5
+ import { computed as i, createBlock as a, createElementVNode as o, createSlots as s, defineComponent as c, mergeModels as l, mergeProps as u, normalizeClass as d, onBeforeUnmount as f, openBlock as p, ref as m, renderSlot as h, toRef as g, unref as _, useAttrs as v, useModel as y, vModelText as b, watch as x, withCtx as S, withDirectives as C } from "vue";
6
6
  //#region src/components/QTextArea/QTextArea.vue?vue&type=script&setup=true&lang.ts
7
- var T = [
7
+ var w = [
8
8
  "id",
9
9
  "required",
10
10
  "placeholder",
@@ -16,7 +16,7 @@ var T = [
16
16
  "resize",
17
17
  "wrap",
18
18
  "aria-describedby"
19
- ], E = /*@__PURE__*/ c({
19
+ ], T = /*@__PURE__*/ c({
20
20
  inheritAttrs: !1,
21
21
  __name: "QTextArea",
22
22
  props: /*@__PURE__*/ l({
@@ -47,22 +47,23 @@ var T = [
47
47
  }),
48
48
  emits: ["update:modelValue"],
49
49
  setup(c) {
50
- let l = c, E = b(c, "modelValue"), D = i({
51
- get: () => E.value,
50
+ let l = c, T = y(c, "modelValue"), E = i({
51
+ get: () => T.value,
52
52
  set: (e) => {
53
53
  let t = l.maxLength;
54
- E.value = t ? e?.slice(0, t) : e;
54
+ T.value = t ? e?.slice(0, t) : e;
55
55
  }
56
56
  });
57
- S(E, (e) => D.value = e, { immediate: !0 });
58
- let O = e(_(l, "id")), k = y(), A = i(() => typeof k["aria-describedby"] == "string" ? k["aria-describedby"] : void 0), j = i(() => l.readonly || l.disabled ? void 0 : l.placeholder), M = i(() => `${O.value}_input`), N = i(() => ({ input: l.autosize ? F : null })), P = m(), { triggerResize: F, stop: I } = r({
59
- element: i(() => l.autosize ? P.value : void 0),
57
+ x(T, (e) => E.value = e, { immediate: !0 });
58
+ let D = e(g(l, "id")), O = v(), k = i(() => typeof O["aria-describedby"] == "string" ? O["aria-describedby"] : void 0), A = i(() => l.readonly || l.disabled ? void 0 : l.placeholder), j = i(() => `${D.value}_input`), M = m(), { stop: N } = r({
59
+ element: i(() => l.autosize ? M.value : void 0),
60
+ value: E,
60
61
  styleProp: "minHeight"
61
62
  });
62
- return f(I), (e, r) => (p(), a(v(n), {
63
- id: v(O),
63
+ return f(N), (e, r) => (p(), a(_(n), {
64
+ id: _(D),
64
65
  class: d(["q-text-area", l.class]),
65
- for: M.value,
66
+ for: j.value,
66
67
  label: l.label,
67
68
  "label-position": l.labelPosition,
68
69
  size: l.size,
@@ -74,16 +75,16 @@ var T = [
74
75
  icons: l.icons,
75
76
  texts: l.texts
76
77
  }, s({
77
- "label.prepend": C(() => [h(e.$slots, "label.prepend")]),
78
- "label.append": C(() => [h(e.$slots, "label.append")]),
79
- default: C(({ describedBy: n }) => [w(o("textarea", u({
80
- id: M.value,
78
+ "label.prepend": S(() => [h(e.$slots, "label.prepend")]),
79
+ "label.append": S(() => [h(e.$slots, "label.append")]),
80
+ default: S(({ describedBy: n }) => [C(o("textarea", u({
81
+ id: j.value,
81
82
  ref_key: "textareaRef",
82
- ref: P,
83
- "onUpdate:modelValue": r[0] ||= (e) => D.value = e,
83
+ ref: M,
84
+ "onUpdate:modelValue": r[0] ||= (e) => E.value = e,
84
85
  class: "q-text-area__input",
85
86
  required: l.required,
86
- placeholder: j.value,
87
+ placeholder: A.value,
87
88
  readonly: l.readonly,
88
89
  disabled: l.disabled,
89
90
  maxlength: l.maxLength,
@@ -91,22 +92,22 @@ var T = [
91
92
  cols: l.cols,
92
93
  resize: l.resize,
93
94
  wrap: l.wrap
94
- }, e.$attrs, { "aria-describedby": v(t)(n, A.value) }, g(N.value, !0)), null, 16, T), [[x, D.value]])]),
95
+ }, e.$attrs, { "aria-describedby": _(t)(n, k.value) }), null, 16, w), [[b, E.value]])]),
95
96
  _: 2
96
97
  }, [
97
98
  e.$slots.prepend ? {
98
99
  name: "prepend",
99
- fn: C(() => [h(e.$slots, "prepend")]),
100
+ fn: S(() => [h(e.$slots, "prepend")]),
100
101
  key: "0"
101
102
  } : void 0,
102
103
  e.$slots.append ? {
103
104
  name: "append",
104
- fn: C(() => [h(e.$slots, "append")]),
105
+ fn: S(() => [h(e.$slots, "append")]),
105
106
  key: "1"
106
107
  } : void 0,
107
108
  e.$slots.extras ? {
108
109
  name: "extras",
109
- fn: C(() => [h(e.$slots, "extras")]),
110
+ fn: S(() => [h(e.$slots, "extras")]),
110
111
  key: "2"
111
112
  } : void 0
112
113
  ]), 1032, [
@@ -127,4 +128,4 @@ var T = [
127
128
  }
128
129
  });
129
130
  //#endregion
130
- export { E as default };
131
+ export { T as default };
@@ -25,8 +25,8 @@ declare const QTextArea: {
25
25
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
26
  "update:modelValue": (value: string) => any;
27
27
  }, import('vue').PublicProps, {
28
- resize: "none" | "both" | "horizontal" | "vertical";
29
28
  wrap: "soft" | "hard" | "off";
29
+ resize: "none" | "both" | "horizontal" | "vertical";
30
30
  rows: number;
31
31
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
32
32
  textareaRef: HTMLTextAreaElement;
@@ -61,8 +61,8 @@ declare const QTextArea: {
61
61
  }> & Readonly<{
62
62
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
63
63
  }>, {}, {}, {}, {}, {
64
- resize: "none" | "both" | "horizontal" | "vertical";
65
64
  wrap: "soft" | "hard" | "off";
65
+ resize: "none" | "both" | "horizontal" | "vertical";
66
66
  rows: number;
67
67
  }>;
68
68
  __isFragment?: never;
@@ -94,8 +94,8 @@ declare const QTextArea: {
94
94
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
95
95
  "update:modelValue": (value: string) => any;
96
96
  }, string, {
97
- resize: "none" | "both" | "horizontal" | "vertical";
98
97
  wrap: "soft" | "hard" | "off";
98
+ resize: "none" | "both" | "horizontal" | "vertical";
99
99
  rows: number;
100
100
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
101
101
  $slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"QToast.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToast.vue"],"names":[],"mappings":"AAqHA;AAuWC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAc1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAA;AAQpC,KAAK,WAAW,GAAG,WAAW,GAAG,EAG9B,CAAC;AAgOL,iBAAS,cAAc;WAuTT,OAAO,IAA6B;;sBAhBvB,GAAG;sBAIH,GAAG;iCAHQ,GAAG;gCACJ,GAAG;yBACV,GAAG;yBAGH,GAAG;yBADH,GAAG;;;;EAgBhC;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;cAvjBN,MAAM;;6EAgkBnB,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":"QToast.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToast.vue"],"names":[],"mappings":"AAqHA;AAqWC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAc1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAA;AAQpC,KAAK,WAAW,GAAG,WAAW,GAAG,EAG9B,CAAC;AA8NL,iBAAS,cAAc;WAuTT,OAAO,IAA6B;;sBAhBvB,GAAG;sBAIH,GAAG;iCAHQ,GAAG;gCACJ,GAAG;yBACV,GAAG;yBAGH,GAAG;yBADH,GAAG;;;;EAgBhC;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;cArjBN,MAAM;;6EA8jBnB,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"}
@@ -46,9 +46,12 @@ var se = {
46
46
  emits: ["dismiss"],
47
47
  setup(d, { emit: f }) {
48
48
  let b = d, L = f, R = e(M(b, "id")), z = b.entryKey ? S(re, null) : null;
49
- b.entryKey && (z?.registerToastEntry(b.entryKey, R.value), oe(R, (e, t) => {
50
- e === t || !b.entryKey || z?.updateToastEntryId(b.entryKey, e);
51
- }));
49
+ if (b.entryKey) {
50
+ let e = b.entryKey;
51
+ z?.registerToastEntry(e, R.value), oe(R, (t) => {
52
+ z?.updateToastEntryId(e, t);
53
+ });
54
+ }
52
55
  let B = S(p, null), { style: V } = i(M(b, "color")), H = m(() => s(b.color) ? b.color : void 0), U = m(() => H.value ? b.icons[H.value] : void 0), W = m(() => b.live ?? ne(b.color)), ue = m(() => {
53
56
  if (!(B || W.value === "off")) return W.value === "assertive" ? "alert" : "status";
54
57
  }), G = m(() => [
@@ -82,7 +85,7 @@ var se = {
82
85
  "--q-toast-text-color": V.value.textColor,
83
86
  "--q-toast-tonal-text-color": pe.value,
84
87
  "--q-toast-tonal-color": K.value
85
- } : { "--q-toast-tonal-color": K.value }), q = m(() => b.variant === "bold" ? "bold" : "ghost"), J = m(() => b.variant === "tonal" && V.value?.hoverColor ? V.value.hoverColor : b.color), Y, X, Z;
88
+ } : {}), q = m(() => b.variant === "bold" ? "bold" : "ghost"), J = m(() => b.variant === "tonal" && V.value?.hoverColor ? V.value.hoverColor : b.color), Y, X, Z;
86
89
  function Q() {
87
90
  Y !== void 0 && (window.clearTimeout(Y), Y = void 0), X = void 0, Z = void 0, L("dismiss");
88
91
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"AA6CA;AAiLC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;AAgNvC,wBAQG"}
1
+ {"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"AA4CA;AAgLC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;AAgNvC,wBAQG"}
@@ -25,7 +25,7 @@ export type QToasterProps = QBaseComponentProps & {
25
25
  maxToasts?: number;
26
26
  /**
27
27
  * If true, toasts will be stacked in reverse order (newest on top).
28
- * Defaults to true.
28
+ * Defaults to false: the oldest toast is on top.
29
29
  *
30
30
  * @category Behavior
31
31
  */
@@ -65,7 +65,7 @@ export type QToastProps = QBaseComponentProps & {
65
65
  */
66
66
  color?: string;
67
67
  /**
68
- * The shadow depth of the toast. Defaults to 'high'.
68
+ * The shadow depth of the toast. Defaults to 'medium'.
69
69
  *
70
70
  * @category Presentation
71
71
  */
@@ -79,7 +79,7 @@ export type QToastProps = QBaseComponentProps & {
79
79
  /**
80
80
  * The time (ms) until the toast is dismissed.
81
81
  * If set to 0 or negative, the toast will have no timeout timer.
82
- * Defaults to 0.
82
+ * Defaults to 5000.
83
83
  *
84
84
  * @category Behavior
85
85
  */
@@ -2,7 +2,7 @@ import { Primitive } from '../../types/primitive';
2
2
  import { QToggleGroupProps } from '.';
3
3
  type __VLS_Props = QToggleGroupProps;
4
4
  type __VLS_PublicProps = {
5
- modelValue?: Primitive | Primitive[];
5
+ modelValue?: Primitive | Primitive[] | undefined;
6
6
  } & __VLS_Props;
7
7
  declare function __VLS_template(): {
8
8
  attrs: Partial<{}>;
@@ -14,9 +14,9 @@ declare function __VLS_template(): {
14
14
  };
15
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
16
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
- "update:modelValue": (value: Primitive | Primitive[]) => any;
17
+ "update:modelValue": (value: Primitive | Primitive[] | undefined) => any;
18
18
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
- "onUpdate:modelValue"?: ((value: Primitive | Primitive[]) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: Primitive | Primitive[] | undefined) => any) | undefined;
20
20
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
22
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"QToggleGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroup.vue"],"names":[],"mappings":"AASA;AA4DC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAK1C,KAAK,WAAW,GAAG,iBAAiB,CAAC;AA2BtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;CACpC,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QToggleGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroup.vue"],"names":[],"mappings":"AASA;AA8DC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAK1C,KAAK,WAAW,GAAG,iBAAiB,CAAC;AA8BtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,GAAG,SAAS,CAAC;CAChD,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}