@quidgest/ui 0.26.0 → 0.27.1

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 (250) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/json/api.json +487 -155
  3. package/dist/manifest/components.json +3 -0
  4. package/dist/ui.css +1016 -141
  5. package/dist/ui.esm.js +994 -942
  6. package/dist/ui.js +1235 -1186
  7. package/dist/ui.min.css +1 -1
  8. package/dist/ui.min.js +1235 -1186
  9. package/dist/ui.scss +1266 -157
  10. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  11. package/esm/components/QAccordion/QAccordion.vue.js +19 -18
  12. package/esm/components/QAccordion/QAccordionItem.vue.js +4 -4
  13. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  14. package/esm/components/QBadge/QBadge.vue.js +58 -55
  15. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
  16. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +17 -16
  17. package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts +81 -0
  18. package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts.map +1 -0
  19. package/esm/components/QBreadcrumbs/QBreadcrumb.vue.js +85 -0
  20. package/esm/components/QBreadcrumbs/QBreadcrumb2.vue.js +5 -0
  21. package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts +22 -0
  22. package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -0
  23. package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +74 -0
  24. package/esm/components/QBreadcrumbs/QBreadcrumbs2.vue.js +5 -0
  25. package/esm/components/QBreadcrumbs/constants.d.ts +20 -0
  26. package/esm/components/QBreadcrumbs/constants.d.ts.map +1 -0
  27. package/esm/components/QBreadcrumbs/constants.js +10 -0
  28. package/esm/components/QBreadcrumbs/context.d.ts +103 -0
  29. package/esm/components/QBreadcrumbs/context.d.ts.map +1 -0
  30. package/esm/components/QBreadcrumbs/context.js +4 -0
  31. package/esm/components/QBreadcrumbs/index.d.ts +108 -0
  32. package/esm/components/QBreadcrumbs/index.d.ts.map +1 -0
  33. package/esm/components/QBreadcrumbs/index.js +7 -0
  34. package/esm/components/QBreadcrumbs/types.d.ts +100 -0
  35. package/esm/components/QBreadcrumbs/types.d.ts.map +1 -0
  36. package/esm/components/QButton/QButton.d.ts.map +1 -1
  37. package/esm/components/QButton/QButton.vue.js +55 -52
  38. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  39. package/esm/components/QButtonGroup/QButtonGroup.vue.js +16 -15
  40. package/esm/components/QCard/QCard.d.ts.map +1 -1
  41. package/esm/components/QCard/QCard.vue.js +51 -52
  42. package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
  43. package/esm/components/QCarousel/QCarousel.vue.js +119 -115
  44. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  45. package/esm/components/QCheckbox/QCheckbox.vue.js +10 -14
  46. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  47. package/esm/components/QCollapsible/QCollapsible.vue.js +52 -51
  48. package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
  49. package/esm/components/QColorPicker/QColorPicker.vue.js +48 -47
  50. package/esm/components/QCombobox/QCombobox.d.ts +6 -4
  51. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  52. package/esm/components/QCombobox/QCombobox.vue.js +119 -116
  53. package/esm/components/QCombobox/index.d.ts +3 -2
  54. package/esm/components/QCombobox/index.d.ts.map +1 -1
  55. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  56. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +468 -429
  57. package/esm/components/QDateTimePicker/constants.d.ts +5 -0
  58. package/esm/components/QDateTimePicker/constants.d.ts.map +1 -1
  59. package/esm/components/QDateTimePicker/constants.js +5 -0
  60. package/esm/components/QDialog/QDialog.d.ts +2 -1
  61. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  62. package/esm/components/QDialog/QDialog.vue.js +84 -65
  63. package/esm/components/QDialog/constants.d.ts +6 -1
  64. package/esm/components/QDialog/constants.d.ts.map +1 -1
  65. package/esm/components/QDialog/constants.js +6 -2
  66. package/esm/components/QDialog/index.d.ts +6 -0
  67. package/esm/components/QDialog/index.d.ts.map +1 -1
  68. package/esm/components/QDialog/types.d.ts +13 -1
  69. package/esm/components/QDialog/types.d.ts.map +1 -1
  70. package/esm/components/QDivider/QDivider.d.ts.map +1 -1
  71. package/esm/components/QDivider/QDivider.vue.js +22 -21
  72. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +8 -6
  73. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  74. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +126 -125
  75. package/esm/components/QField/QField.d.ts.map +1 -1
  76. package/esm/components/QField/QField.vue.js +36 -34
  77. package/esm/components/QFileUpload/QFileUpload.vue.js +16 -16
  78. package/esm/components/QGauge/QGauge.d.ts +1 -1
  79. package/esm/components/QGauge/QGauge.d.ts.map +1 -1
  80. package/esm/components/QGauge/QGauge.vue.js +9 -9
  81. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  82. package/esm/components/QIcon/QIcon.vue.js +20 -19
  83. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  84. package/esm/components/QIcon/QIconFont.vue.js +13 -12
  85. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  86. package/esm/components/QIcon/QIconImg.vue.js +12 -11
  87. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  88. package/esm/components/QIcon/QIconSvg.vue.js +19 -18
  89. package/esm/components/QIcon/QSvgSymbol.d.ts +54 -0
  90. package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -0
  91. package/esm/components/QIcon/QSvgSymbol.vue.js +76 -0
  92. package/esm/components/QIcon/QSvgSymbol2.vue.js +5 -0
  93. package/esm/components/QIcon/utils/svgSource.d.ts +18 -0
  94. package/esm/components/QIcon/utils/svgSource.d.ts.map +1 -0
  95. package/esm/components/QIcon/utils/svgSource.js +27 -0
  96. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  97. package/esm/components/QInputGroup/QInputGroup.vue.js +30 -29
  98. package/esm/components/QLabel/QLabel.d.ts.map +1 -1
  99. package/esm/components/QLabel/QLabel.vue.js +20 -19
  100. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  101. package/esm/components/QLineLoader/QLineLoader.vue.js +14 -13
  102. package/esm/components/QList/QList.d.ts +4 -4
  103. package/esm/components/QList/QList.d.ts.map +1 -1
  104. package/esm/components/QList/QList.vue.js +135 -135
  105. package/esm/components/QList/QListItem.d.ts.map +1 -1
  106. package/esm/components/QList/QListItem.vue.js +42 -40
  107. package/esm/components/QList/QListItemGroup.d.ts +1 -1
  108. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  109. package/esm/components/QList/index.d.ts +2 -2
  110. package/esm/components/QList/types.d.ts +6 -0
  111. package/esm/components/QList/types.d.ts.map +1 -1
  112. package/esm/components/QMeter/QMeter.d.ts.map +1 -1
  113. package/esm/components/QMeter/QMeter.vue.js +20 -19
  114. package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
  115. package/esm/components/QObfuscation/QObfuscation.vue.js +53 -53
  116. package/esm/components/QOverflow/QOverflow.d.ts +1 -1
  117. package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
  118. package/esm/components/QOverflow/QOverflow.vue.js +10 -10
  119. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  120. package/esm/components/QOverlay/QOverlay.vue.js +139 -138
  121. package/esm/components/QPasswordField/QPasswordField.d.ts +2 -0
  122. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  123. package/esm/components/QPasswordField/QPasswordField.vue.js +63 -60
  124. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +1 -1
  125. package/esm/components/QPasswordField/constants.d.ts +4 -0
  126. package/esm/components/QPasswordField/constants.d.ts.map +1 -1
  127. package/esm/components/QPasswordField/constants.js +4 -1
  128. package/esm/components/QPasswordField/index.d.ts +6 -0
  129. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  130. package/esm/components/QPasswordField/types.d.ts +7 -1
  131. package/esm/components/QPasswordField/types.d.ts.map +1 -1
  132. package/esm/components/QPhoneField/QPhoneField.d.ts +7 -5
  133. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  134. package/esm/components/QPhoneField/QPhoneField.vue.js +88 -88
  135. package/esm/components/QPhoneField/index.d.ts +3 -2
  136. package/esm/components/QPhoneField/index.d.ts.map +1 -1
  137. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  138. package/esm/components/QPopover/QPopover.vue.js +51 -28
  139. package/esm/components/QProgress/QProgress.vue.js +3 -3
  140. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  141. package/esm/components/QPropertyList/QPropertyList.vue.js +65 -55
  142. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +8 -4
  143. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  144. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +31 -28
  145. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
  146. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +13 -12
  147. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  148. package/esm/components/QPropertyList/QPropertyListRow.vue.js +41 -16
  149. package/esm/components/QPropertyList/constants.d.ts +2 -0
  150. package/esm/components/QPropertyList/constants.d.ts.map +1 -1
  151. package/esm/components/QPropertyList/constants.js +5 -1
  152. package/esm/components/QPropertyList/index.d.ts +16 -4
  153. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  154. package/esm/components/QSection/QSection.d.ts.map +1 -1
  155. package/esm/components/QSection/QSection.vue.js +19 -18
  156. package/esm/components/QSelect/QSelect.d.ts +6 -4
  157. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  158. package/esm/components/QSelect/QSelect.vue.js +129 -124
  159. package/esm/components/QSelect/index.d.ts +3 -2
  160. package/esm/components/QSelect/index.d.ts.map +1 -1
  161. package/esm/components/QSidebar/QSidebar.d.ts +1 -1
  162. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  163. package/esm/components/QSidebar/QSidebar.vue.js +68 -67
  164. package/esm/components/QSidebar/QSidebarItem.d.ts +1 -1
  165. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  166. package/esm/components/QSidebar/QSidebarItem.vue.js +8 -8
  167. package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
  168. package/esm/components/QSidebar/QSidebarPanel.vue.js +40 -36
  169. package/esm/components/QSidebar/context.d.ts +1 -1
  170. package/esm/components/QSidebar/context.d.ts.map +1 -1
  171. package/esm/components/QSidebar/types.d.ts +8 -0
  172. package/esm/components/QSidebar/types.d.ts.map +1 -1
  173. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  174. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +15 -14
  175. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  176. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
  177. package/esm/components/QSteps/QStepHeader.d.ts +58 -0
  178. package/esm/components/QSteps/QStepHeader.d.ts.map +1 -0
  179. package/esm/components/QSteps/QStepHeader.vue.js +49 -0
  180. package/esm/components/QSteps/QStepHeader2.vue.js +5 -0
  181. package/esm/components/QSteps/QSteps.d.ts +269 -0
  182. package/esm/components/QSteps/QSteps.d.ts.map +1 -0
  183. package/esm/components/QSteps/QSteps.vue.js +260 -0
  184. package/esm/components/QSteps/QSteps2.vue.js +5 -0
  185. package/esm/components/QSteps/QStepsNav.d.ts +59 -0
  186. package/esm/components/QSteps/QStepsNav.d.ts.map +1 -0
  187. package/esm/components/QSteps/QStepsNav.vue.js +42 -0
  188. package/esm/components/QSteps/QStepsNav2.vue.js +5 -0
  189. package/esm/components/QSteps/constants.d.ts +28 -0
  190. package/esm/components/QSteps/constants.d.ts.map +1 -0
  191. package/esm/components/QSteps/constants.js +16 -0
  192. package/esm/components/QSteps/index.d.ts +228 -0
  193. package/esm/components/QSteps/index.d.ts.map +1 -0
  194. package/esm/components/QSteps/index.js +6 -0
  195. package/esm/components/QSteps/types.d.ts +190 -0
  196. package/esm/components/QSteps/types.d.ts.map +1 -0
  197. package/esm/components/QSwitch/QSwitch.vue.js +3 -3
  198. package/esm/components/QTabs/QTab.d.ts +1 -1
  199. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  200. package/esm/components/QTabs/QTab.vue.js +10 -12
  201. package/esm/components/QTabs/QTabs.d.ts +1 -1
  202. package/esm/components/QTabs/QTabs.d.ts.map +1 -1
  203. package/esm/components/QTabs/QTabs.vue.js +108 -107
  204. package/esm/components/QTabs/context.d.ts +1 -1
  205. package/esm/components/QTabs/context.d.ts.map +1 -1
  206. package/esm/components/QTabs/types.d.ts +1 -1
  207. package/esm/components/QTextArea/QTextArea.d.ts +1 -1
  208. package/esm/components/QTextArea/index.d.ts +3 -3
  209. package/esm/components/QThemeProvider/QThemeProvider.vue.js +3 -3
  210. package/esm/components/QToast/QToast.d.ts +2 -1
  211. package/esm/components/QToast/QToast.d.ts.map +1 -1
  212. package/esm/components/QToast/QToast.vue.js +95 -78
  213. package/esm/components/QToast/QToaster.d.ts.map +1 -1
  214. package/esm/components/QToast/QToaster.vue.js +20 -19
  215. package/esm/components/QToast/constants.d.ts +3 -0
  216. package/esm/components/QToast/constants.d.ts.map +1 -1
  217. package/esm/components/QToast/constants.js +2 -2
  218. package/esm/components/QToast/index.d.ts +6 -0
  219. package/esm/components/QToast/index.d.ts.map +1 -1
  220. package/esm/components/QToast/types.d.ts +7 -1
  221. package/esm/components/QToast/types.d.ts.map +1 -1
  222. package/esm/components/QToggle/QToggle.d.ts.map +1 -1
  223. package/esm/components/QToggle/QToggle.vue.js +52 -15
  224. package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
  225. package/esm/components/QToggleGroup/QToggleGroup.vue.js +21 -20
  226. package/esm/components/QTooltip/QTooltip.vue.js +5 -5
  227. package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
  228. package/esm/components/__internal__/QChevron/QChevron.vue.js +16 -15
  229. package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
  230. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +19 -18
  231. package/esm/components/index.d.ts +2 -0
  232. package/esm/components/index.d.ts.map +1 -1
  233. package/esm/components/index.js +108 -103
  234. package/esm/composables/useColor/index.d.ts +2 -0
  235. package/esm/composables/useColor/index.d.ts.map +1 -1
  236. package/esm/composables/useColor/index.js +49 -39
  237. package/esm/composables/useColor/types.d.ts +15 -0
  238. package/esm/composables/useColor/types.d.ts.map +1 -1
  239. package/esm/index.d.ts +3 -0
  240. package/esm/utils/color/contrast.d.ts +20 -0
  241. package/esm/utils/color/contrast.d.ts.map +1 -1
  242. package/esm/utils/color/contrast.js +24 -13
  243. package/esm/utils/color/merge.js +8 -8
  244. package/esm/utils/index.js +56 -54
  245. package/package.json +12 -6
  246. package/esm/components/QIcon/InlineSvg.d.ts +0 -110
  247. package/esm/components/QIcon/InlineSvg.d.ts.map +0 -1
  248. package/esm/components/QIcon/InlineSvg.js +0 -95
  249. package/esm/utils/time.d.ts +0 -36
  250. package/esm/utils/time.d.ts.map +0 -1
@@ -1,17 +1,18 @@
1
- import { rgbToHex as e } from "../../utils/color/conversion.js";
2
- import { parseColor as t } from "../../utils/color/parse.js";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { rgbToHex as t } from "../../utils/color/conversion.js";
3
3
  import { lighten as n } from "../../utils/color/manipulate.js";
4
- import { useColor as r } from "../../composables/useColor/index.js";
5
- import { QButton as i } from "../QButton/index.js";
6
- import { QCard as a } from "../QCard/index.js";
7
- import { QIcon as o } from "../QIcon/index.js";
8
- import { useId as s } from "../../composables/useId/index.js";
9
- import { QCol as c, QContainer as l, QRow as u } from "../QGrid/index.js";
10
- import { ToastSymbol as d } from "../../composables/useToast/_internal.js";
11
- import { DEFAULT_ICONS as f } from "./constants.js";
12
- import { computed as p, createBlock as m, createCommentVNode as h, createElementVNode as g, createSlots as _, createVNode as v, defineComponent as y, guardReactiveProps as b, inject as x, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onMounted as T, onUnmounted as E, openBlock as D, renderSlot as O, toDisplayString as k, toRef as A, unref as j, watch as M, withCtx as N } from "vue";
4
+ import { parseColor as r } from "../../utils/color/parse.js";
5
+ import { ensureContrast as i } from "../../utils/color/contrast.js";
6
+ import { useColor as a } from "../../composables/useColor/index.js";
7
+ import { QButton as o } from "../QButton/index.js";
8
+ import { QCard as s } from "../QCard/index.js";
9
+ import { QIcon as c } from "../QIcon/index.js";
10
+ import { QCol as l, QContainer as u, QRow as d } from "../QGrid/index.js";
11
+ import { ToastSymbol as f } from "../../composables/useToast/_internal.js";
12
+ import { DEFAULT_ICONS as p, DEFAULT_TEXTS as m } from "./constants.js";
13
+ import { computed as h, createBlock as g, createCommentVNode as _, createElementVNode as v, createSlots as y, createVNode as b, defineComponent as x, guardReactiveProps as S, inject as C, normalizeClass as w, normalizeProps as T, normalizeStyle as E, onMounted as D, onUnmounted as O, openBlock as k, renderSlot as A, toDisplayString as j, toRef as M, unref as N, watch as P, withCtx as F } from "vue";
13
14
  //#region src/components/QToast/QToast.vue?vue&type=script&setup=true&lang.ts
14
- var P = { class: "q-toast__title" }, F = /*@__PURE__*/ y({
15
+ var I = { class: "q-toast__title" }, L = /*@__PURE__*/ x({
15
16
  __name: "QToast",
16
17
  props: {
17
18
  id: {},
@@ -23,86 +24,97 @@ var P = { class: "q-toast__title" }, F = /*@__PURE__*/ y({
23
24
  elevation: { default: "medium" },
24
25
  variant: { default: "tonal" },
25
26
  timeout: { default: 5e3 },
26
- icons: { default: () => f },
27
+ icons: { default: () => p },
28
+ texts: { default: () => m },
27
29
  entryKey: { default: void 0 }
28
30
  },
29
31
  emits: ["dismiss"],
30
- setup(f, { emit: y }) {
31
- let F = f, I = y, L = s(A(F, "id")), R = F.entryKey ? x(d, null) : null;
32
- F.entryKey && (R?.registerToastEntry(F.entryKey, L.value), M(L, (e, t) => {
33
- e === t || !F.entryKey || R?.updateToastEntryId(F.entryKey, e);
32
+ setup(p, { emit: m }) {
33
+ let x = p, L = m, R = e(M(x, "id")), z = x.entryKey ? C(f, null) : null;
34
+ x.entryKey && (z?.registerToastEntry(x.entryKey, R.value), P(R, (e, t) => {
35
+ e === t || !x.entryKey || z?.updateToastEntryId(x.entryKey, e);
34
36
  }));
35
- let { style: z } = r(A(F, "color")), B = p(() => {
36
- let e = F.block ? "q-toast--block" : void 0, t = F.title ? "q-toast--vertical" : void 0;
37
+ let { style: B } = a(M(x, "color")), V = h(() => {
38
+ let e = x.block ? "q-toast--block" : void 0, t = x.title ? "q-toast--vertical" : void 0;
37
39
  return [
38
40
  "q-toast",
39
- `q-toast--${F.variant}`,
41
+ `q-toast--${x.variant}`,
40
42
  e,
41
43
  t,
42
- F.class
44
+ x.class
43
45
  ];
44
- }), V = p(() => {
45
- let r = z.value?.mainColor;
46
- if (r) return e(n(t(r), 88));
47
- }), H = p(() => z.value ? {
48
- "--q-toast-main-color": z.value.mainColor,
49
- "--q-toast-on-main-color": z.value.onMainColor,
50
- "--q-toast-hover-color": z.value.hoverColor,
51
- "--q-toast-tonal-color": V.value
52
- } : { "--q-toast-tonal-color": V.value }), U = p(() => F.variant === "bold" ? "bold" : "ghost"), W = p(() => F.variant === "tonal" && z.value?.hoverColor ? z.value.hoverColor : F.color), G, K, q;
53
- function J() {
54
- G !== void 0 && (window.clearTimeout(G), G = void 0), K = void 0, q = void 0, I("dismiss");
46
+ }), H = h(() => {
47
+ let e = B.value?.mainColor;
48
+ if (e) return t(n(r(e), 88));
49
+ }), U = h(() => {
50
+ let e = B.value?.mainColor;
51
+ if (!(!e || !H.value)) return i(e, H.value);
52
+ }), W = h(() => B.value ? {
53
+ "--q-toast-main-color": B.value.mainColor,
54
+ "--q-toast-on-main-color": B.value.onMainColor,
55
+ "--q-toast-hover-color": B.value.hoverColor,
56
+ "--q-toast-text-color": B.value.textColor,
57
+ "--q-toast-tonal-text-color": U.value,
58
+ "--q-toast-tonal-color": H.value
59
+ } : { "--q-toast-tonal-color": H.value }), G = h(() => x.variant === "bold" ? "bold" : "ghost"), K = h(() => x.variant === "tonal" && B.value?.hoverColor ? B.value.hoverColor : x.color), q, J, Y;
60
+ function X() {
61
+ q !== void 0 && (window.clearTimeout(q), q = void 0), J = void 0, Y = void 0, L("dismiss");
55
62
  }
56
- function Y(e) {
57
- q = e, K = Date.now(), G = window.setTimeout(J, e);
63
+ function Z(e) {
64
+ Y = e, J = Date.now(), q = window.setTimeout(X, e);
58
65
  }
59
- return T(() => {
60
- if (!F.entryKey) {
61
- F.timeout > 0 && Y(F.timeout);
66
+ return D(() => {
67
+ if (!x.entryKey) {
68
+ x.timeout > 0 && Z(x.timeout);
62
69
  return;
63
70
  }
64
- let e = R?.consumeRemainingTimeout(F.entryKey);
71
+ let e = z?.consumeRemainingTimeout(x.entryKey);
65
72
  if (e !== void 0) {
66
- e > 0 ? Y(e) : J();
73
+ e > 0 ? Z(e) : X();
67
74
  return;
68
75
  }
69
- F.timeout > 0 && Y(F.timeout);
70
- }), E(() => {
71
- if (G !== void 0 && (window.clearTimeout(G), F.entryKey && R && K !== void 0 && q !== void 0)) {
72
- let e = Date.now() - K, t = Math.max(0, q - e);
73
- R.setRemainingTimeout(F.entryKey, t);
76
+ x.timeout > 0 && Z(x.timeout);
77
+ }), O(() => {
78
+ if (q !== void 0 && (window.clearTimeout(q), x.entryKey && z && J !== void 0 && Y !== void 0)) {
79
+ let e = Date.now() - J, t = Math.max(0, Y - e);
80
+ z.setRemainingTimeout(x.entryKey, t);
74
81
  }
75
- }), (e, t) => (D(), m(j(a), {
76
- id: j(L),
77
- elevation: F.elevation,
78
- width: F.block ? "block" : void 0,
79
- class: S(B.value),
80
- style: w(H.value)
81
- }, _({
82
- default: N(() => [v(j(l), {
82
+ }), (e, t) => (k(), g(N(s), {
83
+ id: N(R),
84
+ elevation: x.elevation,
85
+ width: x.block ? "block" : void 0,
86
+ class: w(V.value),
87
+ style: E(W.value)
88
+ }, y({
89
+ default: F(() => [b(N(u), {
83
90
  fluid: "",
84
91
  class: "q-toast__body"
85
92
  }, {
86
- default: N(() => [v(j(u), {
93
+ default: F(() => [b(N(d), {
87
94
  align: "center",
88
95
  justify: "between"
89
96
  }, {
90
- default: N(() => [v(j(c), null, {
91
- default: N(() => [O(e.$slots, "default", {}, () => [g("span", null, k(F.text), 1)])]),
97
+ default: F(() => [b(N(l), null, {
98
+ default: F(() => [A(e.$slots, "default", {}, () => [v("span", null, j(x.text), 1)])]),
92
99
  _: 3
93
- }), F.title ? h("v-if", !0) : (D(), m(j(c), {
100
+ }), x.title ? _("v-if", !0) : (k(), g(N(l), {
94
101
  key: 0,
95
102
  cols: "auto"
96
103
  }, {
97
- default: N(() => [O(e.$slots, "dismiss", {}, () => [v(j(i), {
104
+ default: F(() => [A(e.$slots, "dismiss", {}, () => [b(N(o), {
98
105
  class: "q-toast__dismiss",
99
- variant: U.value,
100
- color: W.value,
101
- onClick: J
106
+ variant: G.value,
107
+ color: K.value,
108
+ "aria-label": x.texts.dismiss,
109
+ onClick: X
102
110
  }, {
103
- default: N(() => [v(j(o), C(b(F.icons.close)), null, 16)]),
111
+ default: F(() => [b(N(c), T(S(x.icons.close)), null, 16)]),
104
112
  _: 1
105
- }, 8, ["variant", "color"])])]),
113
+ }, 8, [
114
+ "variant",
115
+ "color",
116
+ "aria-label"
117
+ ])])]),
106
118
  _: 3
107
119
  }))]),
108
120
  _: 3
@@ -110,30 +122,35 @@ var P = { class: "q-toast__title" }, F = /*@__PURE__*/ y({
110
122
  _: 3
111
123
  })]),
112
124
  _: 2
113
- }, [F.title ? {
125
+ }, [x.title ? {
114
126
  name: "header",
115
- fn: N(() => [v(j(l), { fluid: "" }, {
116
- default: N(() => [v(j(u), {
127
+ fn: F(() => [b(N(u), { fluid: "" }, {
128
+ default: F(() => [b(N(d), {
117
129
  align: "center",
118
130
  justify: "between"
119
131
  }, {
120
- default: N(() => [v(j(c), null, {
121
- default: N(() => [g("div", P, [
122
- e.$slots["title.prepend"] ? O(e.$slots, "title.prepend", { key: 0 }) : h("v-if", !0),
123
- g("h4", null, k(F.title), 1),
124
- e.$slots["title.append"] ? O(e.$slots, "title.append", { key: 1 }) : h("v-if", !0)
132
+ default: F(() => [b(N(l), null, {
133
+ default: F(() => [v("div", I, [
134
+ e.$slots["title.prepend"] ? A(e.$slots, "title.prepend", { key: 0 }) : _("v-if", !0),
135
+ v("h4", null, j(x.title), 1),
136
+ e.$slots["title.append"] ? A(e.$slots, "title.append", { key: 1 }) : _("v-if", !0)
125
137
  ])]),
126
138
  _: 3
127
- }), v(j(c), { cols: "auto" }, {
128
- default: N(() => [O(e.$slots, "dismiss", {}, () => [v(j(i), {
139
+ }), b(N(l), { cols: "auto" }, {
140
+ default: F(() => [A(e.$slots, "dismiss", {}, () => [b(N(o), {
129
141
  class: "q-toast__dismiss",
130
- variant: U.value,
131
- color: W.value,
132
- onClick: J
142
+ variant: G.value,
143
+ color: K.value,
144
+ "aria-label": x.texts.dismiss,
145
+ onClick: X
133
146
  }, {
134
- default: N(() => [v(j(o), C(b(F.icons.close)), null, 16)]),
147
+ default: F(() => [b(N(c), T(S(x.icons.close)), null, 16)]),
135
148
  _: 1
136
- }, 8, ["variant", "color"])])]),
149
+ }, 8, [
150
+ "variant",
151
+ "color",
152
+ "aria-label"
153
+ ])])]),
137
154
  _: 3
138
155
  })]),
139
156
  _: 3
@@ -151,4 +168,4 @@ var P = { class: "q-toast__title" }, F = /*@__PURE__*/ y({
151
168
  }
152
169
  });
153
170
  //#endregion
154
- export { F as default };
171
+ export { L as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"AAmBA;AAgFC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;AA4HvC,wBAQG"}
1
+ {"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"AAmBA;AAoFC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;AA+HvC,wBAQG"}
@@ -1,8 +1,9 @@
1
- import { injectToastInstance as e, removeToastByEntryKey as t } from "../../composables/useToast/_internal.js";
2
- import { QToast as n } from "./index.js";
3
- import { Fragment as r, TransitionGroup as i, computed as a, createBlock as o, createElementBlock as s, createVNode as c, defineComponent as l, mergeProps as u, normalizeClass as d, onUnmounted as f, openBlock as p, renderList as m, unref as h, watch as g, withCtx as _ } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { injectToastInstance as t, removeToastByEntryKey as n } from "../../composables/useToast/_internal.js";
3
+ import { QToast as r } from "./index.js";
4
+ import { Fragment as i, TransitionGroup as a, computed as o, createBlock as s, createElementBlock as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, onUnmounted as p, openBlock as m, renderList as h, toRef as g, unref as _, watch as v, withCtx as y } from "vue";
4
5
  //#region src/components/QToast/QToaster.vue?vue&type=script&setup=true&lang.ts
5
- var v = /*@__PURE__*/ l({
6
+ var b = /*@__PURE__*/ u({
6
7
  __name: "QToaster",
7
8
  props: {
8
9
  id: {},
@@ -11,27 +12,27 @@ var v = /*@__PURE__*/ l({
11
12
  maxToasts: {},
12
13
  reverseOrder: { type: Boolean }
13
14
  },
14
- setup(l) {
15
- let v = l, y = e(), { toasts: b } = y;
16
- y.registerToaster(), f(() => y.unregisterToaster()), g(() => v.maxToasts, (e) => y.setMaxToasts(e), { immediate: !0 });
17
- let x = a(() => {
18
- let e = [...b.value];
19
- return v.reverseOrder ? e.reverse() : e;
15
+ setup(u) {
16
+ let b = u, x = e(g(b, "id")), S = t(), { toasts: C } = S;
17
+ S.registerToaster(), p(() => S.unregisterToaster()), v(() => b.maxToasts, (e) => S.setMaxToasts(e), { immediate: !0 });
18
+ let w = o(() => {
19
+ let e = [...C.value];
20
+ return b.reverseOrder ? e.reverse() : e;
20
21
  });
21
- function S(e) {
22
- t(y, e.entryKey);
22
+ function T(e) {
23
+ n(S, e.entryKey);
23
24
  }
24
- return (e, t) => (p(), o(i, {
25
- id: v.id,
25
+ return (e, t) => (m(), s(a, {
26
+ id: _(x),
26
27
  name: "q-toast-stack",
27
28
  tag: "div",
28
- class: d(["q-toaster", v.class]),
29
- "data-placement": v.placement
29
+ class: f(["q-toaster", b.class]),
30
+ "data-placement": b.placement
30
31
  }, {
31
- default: _(() => [(p(!0), s(r, null, m(x.value, (e) => (p(), s("div", {
32
+ default: y(() => [(m(!0), c(i, null, h(w.value, (e) => (m(), c("div", {
32
33
  key: e.entryKey,
33
34
  class: "q-toast__container"
34
- }, [c(h(n), u({ "entry-key": e.entryKey }, { ref_for: !0 }, e.props, { onDismiss: () => S(e) }), null, 16, ["entry-key", "onDismiss"])]))), 128))]),
35
+ }, [l(_(r), d({ "entry-key": e.entryKey }, { ref_for: !0 }, e.props, { onDismiss: () => T(e) }), null, 16, ["entry-key", "onDismiss"])]))), 128))]),
35
36
  _: 1
36
37
  }, 8, [
37
38
  "id",
@@ -41,4 +42,4 @@ var v = /*@__PURE__*/ l({
41
42
  }
42
43
  });
43
44
  //#endregion
44
- export { v as default };
45
+ export { b as default };
@@ -1,3 +1,6 @@
1
+ export declare const DEFAULT_TEXTS: {
2
+ dismiss: string;
3
+ };
1
4
  export declare const DEFAULT_ICONS: {
2
5
  close: {
3
6
  icon: string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;CAIY,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;CAEQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;CAIY,CAAA"}
@@ -1,4 +1,4 @@
1
1
  //#region src/components/QToast/constants.ts
2
- var e = { close: { icon: "close" } };
2
+ var e = { dismiss: "Dismiss" }, t = { close: { icon: "close" } };
3
3
  //#endregion
4
- export { e as DEFAULT_ICONS };
4
+ export { t as DEFAULT_ICONS, e as DEFAULT_TEXTS };
@@ -8,6 +8,7 @@ declare const QToast: {
8
8
  variant?: import('./types').QToastVariant;
9
9
  timeout?: number;
10
10
  icons?: typeof import('./constants').DEFAULT_ICONS;
11
+ texts?: typeof import('./constants').DEFAULT_TEXTS;
11
12
  } & {
12
13
  entryKey?: string;
13
14
  }> & Readonly<{
@@ -19,6 +20,7 @@ declare const QToast: {
19
20
  color: string;
20
21
  elevation: import('..').QCardElevation;
21
22
  icons: typeof import('./constants').DEFAULT_ICONS;
23
+ texts: typeof import('./constants').DEFAULT_TEXTS;
22
24
  entryKey: string;
23
25
  timeout: number;
24
26
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
@@ -37,6 +39,7 @@ declare const QToast: {
37
39
  variant?: import('./types').QToastVariant;
38
40
  timeout?: number;
39
41
  icons?: typeof import('./constants').DEFAULT_ICONS;
42
+ texts?: typeof import('./constants').DEFAULT_TEXTS;
40
43
  } & {
41
44
  entryKey?: string;
42
45
  }> & Readonly<{
@@ -46,6 +49,7 @@ declare const QToast: {
46
49
  color: string;
47
50
  elevation: import('..').QCardElevation;
48
51
  icons: typeof import('./constants').DEFAULT_ICONS;
52
+ texts: typeof import('./constants').DEFAULT_TEXTS;
49
53
  entryKey: string;
50
54
  timeout: number;
51
55
  }>;
@@ -61,6 +65,7 @@ declare const QToast: {
61
65
  variant?: import('./types').QToastVariant;
62
66
  timeout?: number;
63
67
  icons?: typeof import('./constants').DEFAULT_ICONS;
68
+ texts?: typeof import('./constants').DEFAULT_TEXTS;
64
69
  } & {
65
70
  entryKey?: string;
66
71
  }> & Readonly<{
@@ -72,6 +77,7 @@ declare const QToast: {
72
77
  color: string;
73
78
  elevation: import('..').QCardElevation;
74
79
  icons: typeof import('./constants').DEFAULT_ICONS;
80
+ texts: typeof import('./constants').DEFAULT_TEXTS;
75
81
  entryKey: string;
76
82
  timeout: number;
77
83
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AACvC,QAAA,MAAM,QAAQ;;6EAA6B,CAAA;AAG3C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;AAG3B,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AACvC,QAAA,MAAM,QAAQ;;6EAA6B,CAAA;AAG3C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;AAG3B,cAAc,SAAS,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { QBaseComponentProps } from '../../types/component';
2
2
  import { QCardElevation } from '../QCard/types';
3
- import { DEFAULT_ICONS } from './constants';
3
+ import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
4
4
  export type QToastVariant = 'bold' | 'tonal' | 'outlined';
5
5
  /**
6
6
  * Hosts programmatic toasts created with `useToast`.
@@ -87,5 +87,11 @@ export type QToastProps = QBaseComponentProps & {
87
87
  * @category Configuration
88
88
  */
89
89
  icons?: typeof DEFAULT_ICONS;
90
+ /**
91
+ * Custom text configurations.
92
+ *
93
+ * @category Configuration
94
+ */
95
+ texts?: typeof DEFAULT_TEXTS;
90
96
  };
91
97
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAA;AAEzD;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,SAAS,CAAC,EACP,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,GACd,YAAY,GACZ,eAAe,CAAA;IAElB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAE1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAA;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE/D,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAA;AAEzD;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,SAAS,CAAC,EACP,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,GACd,YAAY,GACZ,eAAe,CAAA;IAElB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAE1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAA;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggle/QToggle.vue"],"names":[],"mappings":"AASA;AA0CC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAKrC,KAAK,WAAW,GAAG,YAAY,CAAC;AAoBjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA2CT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;gGAQnB,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":"QToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggle/QToggle.vue"],"names":[],"mappings":"AAsBA;AA6DC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAKrC,KAAK,WAAW,GAAG,YAAY,CAAC;AAoBjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAqET,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;gGAQnB,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,9 +1,10 @@
1
- import { QButton as e } from "../QButton/index.js";
2
- import { computed as t, createBlock as n, defineComponent as r, mergeModels as i, mergeProps as a, openBlock as o, renderSlot as s, unref as c, useModel as l, withCtx as u } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { QButton as t } from "../QButton/index.js";
3
+ import { computed as n, createBlock as r, defineComponent as i, mergeModels as a, normalizeClass as o, openBlock as s, renderSlot as c, toRef as l, unref as u, useModel as d, withCtx as f } from "vue";
3
4
  //#region src/components/QToggle/QToggle.vue?vue&type=script&setup=true&lang.ts
4
- var d = /*@__PURE__*/ r({
5
+ var p = /*@__PURE__*/ i({
5
6
  __name: "QToggle",
6
- props: /*@__PURE__*/ i({
7
+ props: /*@__PURE__*/ a({
7
8
  id: {},
8
9
  class: {},
9
10
  label: {},
@@ -24,19 +25,55 @@ var d = /*@__PURE__*/ r({
24
25
  modelModifiers: {}
25
26
  }),
26
27
  emits: ["update:modelValue"],
27
- setup(r) {
28
- let i = r, d = l(r, "modelValue"), f = t(() => ["q-toggle", { "q-toggle--active": d.value }]);
29
- function p() {
30
- d.value = !d.value;
28
+ setup(i) {
29
+ let a = i, p = d(i, "modelValue"), m = e(l(a, "id")), h = n(() => [
30
+ "q-toggle",
31
+ { "q-toggle--active": p.value },
32
+ a.class
33
+ ]);
34
+ function g() {
35
+ p.value = !p.value;
31
36
  }
32
- return (t, r) => (o(), n(c(e), a({ class: f.value }, i, {
33
- "aria-pressed": d.value,
34
- onClick: p
35
- }), {
36
- default: u(() => [s(t.$slots, "default")]),
37
+ return (e, n) => (s(), r(u(t), {
38
+ id: u(m),
39
+ class: o(h.value),
40
+ label: a.label,
41
+ variant: a.variant,
42
+ color: a.color,
43
+ borderless: a.borderless,
44
+ elevated: a.elevated,
45
+ block: a.block,
46
+ size: a.size,
47
+ "icon-pos": a.iconPos,
48
+ pill: a.pill,
49
+ effect: a.effect,
50
+ disabled: a.disabled,
51
+ loading: a.loading,
52
+ tabindex: a.tabindex,
53
+ "aria-pressed": p.value,
54
+ onClick: g
55
+ }, {
56
+ default: f(() => [c(e.$slots, "default")]),
37
57
  _: 3
38
- }, 16, ["class", "aria-pressed"]));
58
+ }, 8, [
59
+ "id",
60
+ "class",
61
+ "label",
62
+ "variant",
63
+ "color",
64
+ "borderless",
65
+ "elevated",
66
+ "block",
67
+ "size",
68
+ "icon-pos",
69
+ "pill",
70
+ "effect",
71
+ "disabled",
72
+ "loading",
73
+ "tabindex",
74
+ "aria-pressed"
75
+ ]));
39
76
  }
40
77
  });
41
78
  //#endregion
42
- export { d as default };
79
+ export { p as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QToggleGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroup.vue"],"names":[],"mappings":"AASA;AAwDC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAK1C,KAAK,WAAW,GAAG,iBAAiB,CAAC;AAyBtC,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;AAUD,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;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,11 +1,12 @@
1
1
  import { provideDefaults as e } from "../../composables/defaults.js";
2
2
  import { useGroup as t } from "../../composables/useGroup/index.js";
3
- import { QButtonGroup as n } from "../QButtonGroup/index.js";
4
- import { createBlock as r, defineComponent as i, mergeModels as a, normalizeClass as o, openBlock as s, renderSlot as c, toRef as l, unref as u, useModel as d, watch as f, withCtx as p } from "vue";
3
+ import { useId as n } from "../../composables/useId/index.js";
4
+ import { QButtonGroup as r } from "../QButtonGroup/index.js";
5
+ import { createBlock as i, defineComponent as a, mergeModels as o, normalizeClass as s, openBlock as c, renderSlot as l, toRef as u, unref as d, useModel as f, watch as p, withCtx as m } from "vue";
5
6
  //#region src/components/QToggleGroup/QToggleGroup.vue?vue&type=script&setup=true&lang.ts
6
- var m = /*@__PURE__*/ i({
7
+ var h = /*@__PURE__*/ a({
7
8
  __name: "QToggleGroup",
8
- props: /*@__PURE__*/ a({
9
+ props: /*@__PURE__*/ o({
9
10
  id: {},
10
11
  class: {},
11
12
  block: { type: Boolean },
@@ -26,24 +27,24 @@ var m = /*@__PURE__*/ i({
26
27
  modelModifiers: {}
27
28
  }),
28
29
  emits: ["update:modelValue"],
29
- setup(i) {
30
- let a = i, m = d(i, "modelValue"), { active: h } = t({
31
- active: m,
32
- required: l(a, "required"),
33
- multiple: l(a, "multiple")
30
+ setup(a) {
31
+ let o = a, h = f(a, "modelValue"), g = n(u(o, "id")), { active: _ } = t({
32
+ active: h,
33
+ required: u(o, "required"),
34
+ multiple: u(o, "multiple")
34
35
  });
35
- return f(h, (e) => {
36
- m.value = e;
36
+ return p(_, (e) => {
37
+ h.value = e;
37
38
  }), e({ QToggleGroupItem: {
38
- disabled: l(a, "disabled"),
39
- borderless: l(a, "borderless")
40
- } }), (e, t) => (s(), r(u(n), {
41
- id: a.id,
42
- class: o(a.class),
43
- block: a.block,
44
- elevated: a.elevated
39
+ disabled: u(o, "disabled"),
40
+ borderless: u(o, "borderless")
41
+ } }), (e, t) => (c(), i(d(r), {
42
+ id: d(g),
43
+ class: s(o.class),
44
+ block: o.block,
45
+ elevated: o.elevated
45
46
  }, {
46
- default: p(() => [c(e.$slots, "default")]),
47
+ default: m(() => [l(e.$slots, "default")]),
47
48
  _: 3
48
49
  }, 8, [
49
50
  "id",
@@ -54,4 +55,4 @@ var m = /*@__PURE__*/ i({
54
55
  }
55
56
  });
56
57
  //#endregion
57
- export { m as default };
58
+ export { h as default };
@@ -1,5 +1,5 @@
1
- import { QIcon as e } from "../QIcon/index.js";
2
- import { useId as t } from "../../composables/useId/index.js";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { QIcon as t } from "../QIcon/index.js";
3
3
  import { getElement as n } from "../../utils/getElement.js";
4
4
  import { QOverlay as r } from "../QOverlay/index.js";
5
5
  import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, normalizeClass as m, normalizeProps as h, onUnmounted as g, openBlock as _, renderSlot as v, toDisplayString as y, toRef as b, unref as x, useModel as S, watch as C, withCtx as w } from "vue";
@@ -33,7 +33,7 @@ var T = { class: "q-tooltip__content" }, E = ["innerHTML"], D = /*@__PURE__*/ d(
33
33
  }),
34
34
  emits: ["update:modelValue"],
35
35
  setup(d) {
36
- let f = d, D = S(d, "modelValue"), O = t(b(f, "id"));
36
+ let f = d, D = S(d, "modelValue"), O = e(b(f, "id"));
37
37
  function k() {
38
38
  return f.anchor ? n(f.anchor) : void 0;
39
39
  }
@@ -50,7 +50,7 @@ var T = { class: "q-tooltip__content" }, E = ["innerHTML"], D = /*@__PURE__*/ d(
50
50
  function N(e, t) {
51
51
  t && j(), e && D && A();
52
52
  }
53
- return C(() => f.anchor, N), (t, n) => (_(), s(i, null, [v(t.$slots, "anchor", { props: { "aria-describedby": x(O) } }), u(x(r), {
53
+ return C(() => f.anchor, N), (e, n) => (_(), s(i, null, [v(e.$slots, "anchor", { props: { "aria-describedby": x(O) } }), u(x(r), {
54
54
  id: x(O),
55
55
  modelValue: D.value,
56
56
  "onUpdate:modelValue": n[0] ||= (e) => D.value = e,
@@ -69,7 +69,7 @@ var T = { class: "q-tooltip__content" }, E = ["innerHTML"], D = /*@__PURE__*/ d(
69
69
  onEnter: A,
70
70
  onLeave: j
71
71
  }, {
72
- default: w(() => [c("div", T, [v(t.$slots, "default", {}, () => [f.icon ? (_(), a(x(e), h(p({ key: 0 }, f.icon)), null, 16)) : o("v-if", !0), f.html ? (_(), s("span", {
72
+ default: w(() => [c("div", T, [v(e.$slots, "default", {}, () => [f.icon ? (_(), a(x(t), h(p({ key: 0 }, f.icon)), null, 16)) : o("v-if", !0), f.html ? (_(), s("span", {
73
73
  key: 1,
74
74
  innerHTML: f.text
75
75
  }, null, 8, E)) : (_(), s(i, { key: 2 }, [l(y(f.text), 1)], 64))])])]),
@@ -1 +1 @@
1
- {"version":3,"file":"QChevron.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QChevron/QChevron.vue"],"names":[],"mappings":"AAMA;AAqCC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAM3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAKtC,KAAK,WAAW,GAAG,aAAa,CAAC;AAqBlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;;;AAuDhB,wBASG"}
1
+ {"version":3,"file":"QChevron.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QChevron/QChevron.vue"],"names":[],"mappings":"AAMA;AA0CC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAS3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAKtC,KAAK,WAAW,GAAG,aAAa,CAAC;AAuBlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;;;AAwDhB,wBASG"}