@quidgest/ui 0.29.0 → 0.30.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 (245) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +2 -20
  3. package/dist/json/api.json +1059 -803
  4. package/dist/ui.css +77 -29
  5. package/dist/ui.esm.js +1093 -994
  6. package/dist/ui.min.css +1 -1
  7. package/dist/ui.scss +75 -24
  8. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  9. package/esm/components/QAccordion/QAccordion.vue.js +2 -0
  10. package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -1
  11. package/esm/components/QAccordion/QAccordionItem.vue.js +3 -0
  12. package/esm/components/QAccordion/index.d.ts +3 -0
  13. package/esm/components/QAccordion/index.d.ts.map +1 -1
  14. package/esm/components/QAccordion/types.d.ts +8 -0
  15. package/esm/components/QAccordion/types.d.ts.map +1 -1
  16. package/esm/components/QAlert/QAlert.d.ts +1 -1
  17. package/esm/components/QAlert/index.d.ts +3 -3
  18. package/esm/components/QAvatar/QAvatar.d.ts +1 -1
  19. package/esm/components/QAvatar/index.d.ts +3 -3
  20. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
  21. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +23 -13
  22. package/esm/components/QBadgeIndicator/types.d.ts +13 -0
  23. package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
  24. package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -1
  25. package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +31 -31
  26. package/esm/components/QButton/QButton.d.ts.map +1 -1
  27. package/esm/components/QButton/QButton.vue.js +54 -48
  28. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  29. package/esm/components/QCard/QCard.d.ts.map +1 -1
  30. package/esm/components/QCard/QCard.vue.js +48 -32
  31. package/esm/components/QCard/types.d.ts +9 -0
  32. package/esm/components/QCard/types.d.ts.map +1 -1
  33. package/esm/components/QCarousel/QCarousel.d.ts +1 -0
  34. package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
  35. package/esm/components/QCarousel/QCarousel.vue.js +84 -80
  36. package/esm/components/QCarousel/index.d.ts +6 -0
  37. package/esm/components/QCarousel/index.d.ts.map +1 -1
  38. package/esm/components/QCarousel/types.d.ts +9 -1
  39. package/esm/components/QCarousel/types.d.ts.map +1 -1
  40. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  41. package/esm/components/QCheckbox/QCheckbox.vue.js +9 -1
  42. package/esm/components/QCheckbox/index.d.ts +3 -0
  43. package/esm/components/QCheckbox/index.d.ts.map +1 -1
  44. package/esm/components/QCheckbox/types.d.ts +8 -0
  45. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  46. package/esm/components/QCollapsible/QCollapsible.d.ts +1 -0
  47. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  48. package/esm/components/QCollapsible/QCollapsible.vue.js +55 -47
  49. package/esm/components/QCollapsible/index.d.ts +6 -0
  50. package/esm/components/QCollapsible/index.d.ts.map +1 -1
  51. package/esm/components/QCollapsible/types.d.ts +9 -0
  52. package/esm/components/QCollapsible/types.d.ts.map +1 -1
  53. package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
  54. package/esm/components/QColorPicker/QColorPicker.vue.js +4 -1
  55. package/esm/components/QColorPicker/index.d.ts +3 -0
  56. package/esm/components/QColorPicker/index.d.ts.map +1 -1
  57. package/esm/components/QColorPicker/types.d.ts +7 -0
  58. package/esm/components/QColorPicker/types.d.ts.map +1 -1
  59. package/esm/components/QCombobox/QCombobox.d.ts +7 -0
  60. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  61. package/esm/components/QCombobox/QCombobox.vue.js +258 -235
  62. package/esm/components/QCombobox/constants.d.ts +1 -0
  63. package/esm/components/QCombobox/constants.d.ts.map +1 -1
  64. package/esm/components/QCombobox/constants.js +1 -0
  65. package/esm/components/QCombobox/index.d.ts +11 -0
  66. package/esm/components/QCombobox/index.d.ts.map +1 -1
  67. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +180 -0
  68. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  69. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +637 -542
  70. package/esm/components/QDateTimePicker/index.d.ts +90 -0
  71. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  72. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  73. package/esm/components/QDialog/QDialog.vue.js +2 -0
  74. package/esm/components/QDialog/types.d.ts +3 -1
  75. package/esm/components/QDialog/types.d.ts.map +1 -1
  76. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +3 -1
  77. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
  78. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +84 -27
  79. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +9 -2
  80. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  81. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +168 -135
  82. package/esm/components/QDropdownMenu/ids.d.ts +8 -0
  83. package/esm/components/QDropdownMenu/ids.d.ts.map +1 -0
  84. package/esm/components/QDropdownMenu/ids.js +6 -0
  85. package/esm/components/QDropdownMenu/index.d.ts +9 -3
  86. package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
  87. package/esm/components/QDropdownMenu/types.d.ts +3 -1
  88. package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
  89. package/esm/components/QField/QField.d.ts +2 -0
  90. package/esm/components/QField/QField.d.ts.map +1 -1
  91. package/esm/components/QField/QField.vue.js +68 -61
  92. package/esm/components/QField/ids.d.ts +15 -0
  93. package/esm/components/QField/ids.d.ts.map +1 -0
  94. package/esm/components/QField/ids.js +10 -0
  95. package/esm/components/QField/index.d.ts +2 -0
  96. package/esm/components/QField/index.d.ts.map +1 -1
  97. package/esm/components/QFileUpload/QFileUpload.d.ts +355 -0
  98. package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
  99. package/esm/components/QFileUpload/QFileUpload.vue.js +118 -88
  100. package/esm/components/QFileUpload/constants.d.ts +2 -0
  101. package/esm/components/QFileUpload/constants.d.ts.map +1 -1
  102. package/esm/components/QFileUpload/constants.js +3 -1
  103. package/esm/components/QFileUpload/index.d.ts +182 -0
  104. package/esm/components/QFileUpload/index.d.ts.map +1 -1
  105. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  106. package/esm/components/QIcon/QIconFont.vue.js +2 -1
  107. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  108. package/esm/components/QIcon/QIconImg.vue.js +1 -0
  109. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  110. package/esm/components/QInputGroup/QInputGroup.d.ts +5 -0
  111. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  112. package/esm/components/QInputGroup/QInputGroup.vue.js +48 -41
  113. package/esm/components/QInputGroup/index.d.ts +3 -0
  114. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  115. package/esm/components/QLabel/QLabel.d.ts.map +1 -1
  116. package/esm/components/QLabel/QLabel.vue.js +21 -19
  117. package/esm/components/QLabel/ids.d.ts +9 -0
  118. package/esm/components/QLabel/ids.d.ts.map +1 -0
  119. package/esm/components/QLabel/ids.js +6 -0
  120. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  121. package/esm/components/QLineLoader/QLineLoader.vue.js +15 -14
  122. package/esm/components/QList/QList.d.ts +3 -3
  123. package/esm/components/QList/QList.d.ts.map +1 -1
  124. package/esm/components/QList/QList.vue.js +135 -117
  125. package/esm/components/QList/QListItem.d.ts.map +1 -1
  126. package/esm/components/QList/QListItem.vue.js +54 -50
  127. package/esm/components/QList/context.d.ts +8 -0
  128. package/esm/components/QList/context.d.ts.map +1 -0
  129. package/esm/components/QList/context.js +4 -0
  130. package/esm/components/QMeter/QMeter.d.ts.map +1 -1
  131. package/esm/components/QMeter/QMeter.vue.js +38 -19
  132. package/esm/components/QMeter/index.d.ts +2 -10
  133. package/esm/components/QMeter/index.d.ts.map +1 -1
  134. package/esm/components/QMeter/types.d.ts +9 -1
  135. package/esm/components/QMeter/types.d.ts.map +1 -1
  136. package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
  137. package/esm/components/QObfuscation/QObfuscation.vue.js +42 -26
  138. package/esm/components/QObfuscation/index.d.ts.map +1 -1
  139. package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
  140. package/esm/components/QOverflow/QOverflow.vue.js +94 -73
  141. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  142. package/esm/components/QOverlay/QOverlay.vue.js +162 -132
  143. package/esm/components/QPasswordField/QPasswordField.d.ts +4 -0
  144. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  145. package/esm/components/QPasswordField/QPasswordField.vue.js +72 -66
  146. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts.map +1 -1
  147. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +4 -2
  148. package/esm/components/QPasswordField/index.d.ts +2 -0
  149. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  150. package/esm/components/QPasswordField/types.d.ts +4 -0
  151. package/esm/components/QPasswordField/types.d.ts.map +1 -1
  152. package/esm/components/QPhoneField/QPhoneField.d.ts +34 -3
  153. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  154. package/esm/components/QPhoneField/QPhoneField.vue.js +98 -102
  155. package/esm/components/QPhoneField/constants.d.ts +2 -1
  156. package/esm/components/QPhoneField/constants.d.ts.map +1 -1
  157. package/esm/components/QPhoneField/constants.js +1 -1
  158. package/esm/components/QPhoneField/index.d.ts +26 -8
  159. package/esm/components/QPhoneField/index.d.ts.map +1 -1
  160. package/esm/components/QPhoneField/types.d.ts +5 -2
  161. package/esm/components/QPhoneField/types.d.ts.map +1 -1
  162. package/esm/components/QPopover/QPopover.d.ts +1 -1
  163. package/esm/components/QPopover/index.d.ts +3 -3
  164. package/esm/components/QProgress/QProgress.d.ts.map +1 -1
  165. package/esm/components/QProgress/QProgress.vue.js +1 -1
  166. package/esm/components/QPropertyList/QPropertyList.vue.js +1 -1
  167. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  168. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  169. package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
  170. package/esm/components/QRadioGroup/QRadioButton.vue.js +1 -1
  171. package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
  172. package/esm/components/QRadioGroup/QRadioGroup.vue.js +53 -41
  173. package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -1
  174. package/esm/components/QSection/QSection.d.ts.map +1 -1
  175. package/esm/components/QSection/QSection.vue.js +3 -2
  176. package/esm/components/QSection/types.d.ts +3 -4
  177. package/esm/components/QSection/types.d.ts.map +1 -1
  178. package/esm/components/QSelect/QSelect.d.ts +6 -0
  179. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  180. package/esm/components/QSelect/QSelect.vue.js +405 -355
  181. package/esm/components/QSelect/constants.d.ts +2 -0
  182. package/esm/components/QSelect/constants.d.ts.map +1 -1
  183. package/esm/components/QSelect/constants.js +3 -1
  184. package/esm/components/QSelect/index.d.ts +8 -0
  185. package/esm/components/QSelect/index.d.ts.map +1 -1
  186. package/esm/components/QSidebar/QSidebarItem.d.ts +1 -0
  187. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  188. package/esm/components/QSidebar/QSidebarItem.vue.js +3 -0
  189. package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
  190. package/esm/components/QSidebar/QSidebarPanel.vue.js +93 -32
  191. package/esm/components/QSidebar/index.d.ts +3 -0
  192. package/esm/components/QSidebar/index.d.ts.map +1 -1
  193. package/esm/components/QSidebar/types.d.ts +20 -1
  194. package/esm/components/QSidebar/types.d.ts.map +1 -1
  195. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  196. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +16 -15
  197. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  198. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
  199. package/esm/components/QSteps/QSteps.d.ts +3 -2
  200. package/esm/components/QSteps/QSteps.d.ts.map +1 -1
  201. package/esm/components/QSteps/QSteps.vue.js +171 -152
  202. package/esm/components/QSteps/QStepsNav.d.ts +7 -0
  203. package/esm/components/QSteps/QStepsNav.d.ts.map +1 -1
  204. package/esm/components/QSteps/QStepsNav.vue.js +29 -15
  205. package/esm/components/QSteps/constants.d.ts +4 -2
  206. package/esm/components/QSteps/constants.d.ts.map +1 -1
  207. package/esm/components/QSteps/constants.js +2 -0
  208. package/esm/components/QSwitch/QSwitch.d.ts +2 -0
  209. package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
  210. package/esm/components/QSwitch/QSwitch.vue.js +12 -2
  211. package/esm/components/QSwitch/index.d.ts +4 -0
  212. package/esm/components/QSwitch/index.d.ts.map +1 -1
  213. package/esm/components/QSwitch/types.d.ts +8 -0
  214. package/esm/components/QSwitch/types.d.ts.map +1 -1
  215. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  216. package/esm/components/QTabs/QTab.vue.js +1 -0
  217. package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
  218. package/esm/components/QTextArea/QTextArea.vue.js +6 -2
  219. package/esm/components/QTextField/QTextField.d.ts +4 -0
  220. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  221. package/esm/components/QTextField/QTextField.vue.js +5 -3
  222. package/esm/components/QTextField/index.d.ts +2 -0
  223. package/esm/components/QTextField/index.d.ts.map +1 -1
  224. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  225. package/esm/components/QToast/QToast.d.ts +1 -0
  226. package/esm/components/QToast/QToast.d.ts.map +1 -1
  227. package/esm/components/QToast/QToast.vue.js +89 -85
  228. package/esm/components/QToast/index.d.ts +6 -0
  229. package/esm/components/QToast/index.d.ts.map +1 -1
  230. package/esm/components/QToast/types.d.ts +8 -0
  231. package/esm/components/QToast/types.d.ts.map +1 -1
  232. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  233. package/esm/components/QTooltip/QTooltip.vue.js +19 -11
  234. package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
  235. package/esm/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -1
  236. package/esm/index.d.ts.map +1 -1
  237. package/esm/utils/focus.d.ts +10 -0
  238. package/esm/utils/focus.d.ts.map +1 -1
  239. package/esm/utils/focus.js +5 -2
  240. package/esm/utils/loader.d.ts +19 -0
  241. package/esm/utils/loader.d.ts.map +1 -0
  242. package/esm/utils/loader.js +6 -0
  243. package/package.json +24 -23
  244. package/dist/ui.js +0 -1846
  245. package/dist/ui.min.js +0 -1846
@@ -1,12 +1,12 @@
1
1
  import { useId as e } from "../../composables/useId/index.js";
2
2
  import { DEFAULT_ICONS as t, DEFAULT_TEXTS as n } from "./constants.js";
3
3
  import { BreadcrumbsSymbol as r } from "./context.js";
4
- import { computed as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, provide as u, renderSlot as d, shallowRef as f, toRef as p, unref as m, useSlots as h } from "vue";
4
+ import { computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, provide as d, renderSlot as f, shallowRef as p, toRef as m, unref as h, useSlots as g } from "vue";
5
5
  //#region src/components/QBreadcrumbs/QBreadcrumbs.vue?vue&type=script&setup=true&lang.ts
6
- var g = ["id", "aria-label"], _ = {
6
+ var _ = ["id", "aria-label"], v = {
7
7
  class: "q-breadcrumbs__list",
8
8
  role: "list"
9
- }, v = /*@__PURE__*/ s({
9
+ }, y = /*@__PURE__*/ c({
10
10
  __name: "QBreadcrumbs",
11
11
  props: {
12
12
  id: {},
@@ -17,18 +17,18 @@ var g = ["id", "aria-label"], _ = {
17
17
  texts: { default: () => n }
18
18
  },
19
19
  setup(t) {
20
- let n = t, s = h(), v = e(p(n, "id")), y = i(() => s.separator), b = i(() => n.ariaLabel ?? n.texts.label), x = i(() => ["q-breadcrumbs", n.class]), S = f([]), C = i(() => Math.max(3, n.maxVisible)), w = i(() => S.value.length > C.value), T = i(() => w.value ? S.value.length - 2 - (C.value - 3) : 0);
21
- function E(e) {
22
- return S.value.findIndex((t) => t.id === e);
23
- }
20
+ let n = t, c = g(), y = e(m(n, "id")), b = i(() => c.separator), x = i(() => n.ariaLabel ?? n.texts.label), S = i(() => ["q-breadcrumbs", n.class]), C = p([]), w = i(() => Math.max(3, n.maxVisible)), T = i(() => C.value.length > w.value), E = i(() => T.value ? C.value.length - 2 - (w.value - 3) : 0);
24
21
  function D(e) {
25
- return e <= 0 || e >= S.value.length - 1 ? !1 : e - 1 < T.value;
22
+ return C.value.findIndex((t) => t.id === e);
26
23
  }
27
24
  function O(e) {
28
- S.value = [...S.value, e];
29
- let t = i(() => D(E(e.id))), n = i(() => t.value && E(e.id) === 1), r = i(() => {
30
- let t = E(e.id);
31
- return t !== -1 && t === S.value.length - 1;
25
+ return e <= 0 || e >= C.value.length - 1 ? !1 : e - 1 < E.value;
26
+ }
27
+ function k(e) {
28
+ C.value = [...C.value, e];
29
+ let t = i(() => O(D(e.id))), n = i(() => t.value && D(e.id) === 1), r = i(() => {
30
+ let t = D(e.id);
31
+ return t !== -1 && t === C.value.length - 1;
32
32
  });
33
33
  return {
34
34
  isVisible: i(() => !t.value),
@@ -37,32 +37,32 @@ var g = ["id", "aria-label"], _ = {
37
37
  showSeparator: i(() => (!t.value || n.value) && !r.value)
38
38
  };
39
39
  }
40
- function k(e) {
41
- S.value = S.value.filter((t) => t.id !== e);
40
+ function A(e) {
41
+ C.value = C.value.filter((t) => t.id !== e);
42
42
  }
43
- let A = i(() => T.value === 0 ? [] : S.value.slice(1, 1 + T.value).reverse().map((e) => ({
43
+ let j = i(() => E.value === 0 ? [] : C.value.slice(1, 1 + E.value).reverse().map((e) => ({
44
44
  key: e.id,
45
45
  label: e.label.value,
46
46
  icon: e.icon.value,
47
47
  disabled: e.disabled.value
48
48
  })));
49
- function j(e) {
50
- S.value.find((t) => t.id === e)?.triggerEl.value?.click();
49
+ function M(e) {
50
+ C.value.find((t) => t.id === e)?.triggerEl.value?.click();
51
51
  }
52
- return u(r, {
53
- register: O,
54
- unregister: k,
55
- collapsedItems: A,
56
- selectCollapsed: j,
57
- icons: p(n, "icons"),
58
- texts: p(n, "texts"),
59
- separatorSlot: y
60
- }), (e, t) => (l(), a("nav", {
61
- id: m(v),
62
- class: c(x.value),
63
- "aria-label": b.value
64
- }, [o("ol", _, [d(e.$slots, "default")])], 10, g));
52
+ return d(r, {
53
+ register: k,
54
+ unregister: A,
55
+ collapsedItems: j,
56
+ selectCollapsed: M,
57
+ icons: m(n, "icons"),
58
+ texts: m(n, "texts"),
59
+ separatorSlot: b
60
+ }), (e, t) => (u(), o("nav", {
61
+ id: h(y),
62
+ class: l(S.value),
63
+ "aria-label": x.value
64
+ }, [a(" eslint-disable-next-line vuejs-accessibility/no-redundant-roles -- Safari drops list semantics under list-style: none; the role restores them "), s("ol", v, [f(e.$slots, "default")])], 10, _));
65
65
  }
66
66
  });
67
67
  //#endregion
68
- export { v as default };
68
+ export { y as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton.vue"],"names":[],"mappings":"AAmEA;AAqRC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAY1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AA6MtC,iBAAS,cAAc;WAyIT,OAAO,IAA6B;;yBAbpB,GAAG;wBACJ,GAAG;;;;;;EAiB/B;AA6BD,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":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton.vue"],"names":[],"mappings":"AAuEA;AAqSC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAY1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAyNtC,iBAAS,cAAc;WAiJT,OAAO,IAA6B;;yBAbpB,GAAG;wBACJ,GAAG;;;;;;EAiB/B;AA8BD,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"}
@@ -5,20 +5,22 @@ import { QHelpPopover as i } from "../__internal__/QHelpPopover/index.js";
5
5
  import { QSpinnerLoader as a } from "../QSpinnerLoader/index.js";
6
6
  import { QTooltip as o } from "../QTooltip/index.js";
7
7
  import { describedHelpText as s, helpElementId as c, mergeDescribedBy as l, resolveHelp as u } from "../__internal__/QHelpPopover/resolveHelp.js";
8
- import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, h as b, mergeProps as x, normalizeStyle as ee, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toRef as D, unref as O, useAttrs as k, useTemplateRef as A, withCtx as j, withModifiers as M } from "vue";
8
+ import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, h as b, mergeProps as ee, normalizeStyle as x, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toRef as D, unref as O, useAttrs as k, useTemplateRef as te, withCtx as A, withModifiers as ne } from "vue";
9
9
  //#region src/components/QButton/QButton.vue?vue&type=script&setup=true&lang.ts
10
- var N = [
10
+ var j = [
11
11
  "id",
12
12
  "disabled",
13
13
  "tabindex",
14
+ "aria-disabled",
15
+ "aria-busy",
14
16
  "aria-describedby"
15
- ], P = {
17
+ ], M = {
16
18
  key: 0,
17
19
  class: "q-button__spinner"
18
- }, F = { class: "q-button__content" }, I = {
20
+ }, N = { class: "q-button__content" }, P = {
19
21
  key: 0,
20
22
  class: "q-button__append"
21
- }, L = ["onAnimationend"], R = ["id"], z = ["id"], B = /*@__PURE__*/ y({
23
+ }, F = ["onAnimationend"], I = ["id"], L = ["id"], R = /*@__PURE__*/ y({
22
24
  inheritAttrs: !1,
23
25
  __name: "QButton",
24
26
  props: {
@@ -45,28 +47,28 @@ var N = [
45
47
  },
46
48
  emits: ["click"],
47
49
  setup(t, { emit: n }) {
48
- let y = t, B = n, V = e(D(y, "id")), H = k(), U = f(() => typeof H["aria-describedby"] == "string" ? H["aria-describedby"] : void 0), W = A("buttonEl"), G = f(() => c(V.value)), K = f(() => u({
50
+ let y = t, R = n, z = e(D(y, "id")), B = k(), V = f(() => typeof B["aria-describedby"] == "string" ? B["aria-describedby"] : void 0), H = te("buttonEl"), U = f(() => c(z.value)), W = f(() => u({
49
51
  help: y.help,
50
52
  helpDisplay: y.helpDisplay
51
- })), q = f(() => s(K.value)), J = f(() => !!(K.value.popoverText || K.value.inlineText || K.value.tooltipText)), Y = (e, { slots: t }) => e.wrap ? b("span", { class: "q-button__root" }, [t.default?.(), t.help?.()]) : t.default?.()[0];
52
- Y.props = { wrap: Boolean };
53
- let X = f(() => K.value.inlineText || q.value ? G.value : void 0), Z = f(() => y.disabled || y.loading), Q = C([]), te = 0;
54
- function ne(e) {
53
+ })), G = f(() => s(W.value)), K = f(() => !!(W.value.popoverText || W.value.inlineText || W.value.tooltipText)), q = (e, { slots: t }) => e.wrap ? b("span", { class: "q-button__root" }, [t.default?.(), t.help?.()]) : t.default?.()[0];
54
+ q.props = { wrap: Boolean };
55
+ let J = f(() => W.value.inlineText || G.value ? U.value : void 0), Y = f(() => y.disabled || y.loading), X = C(!1), re = f(() => y.disabled || y.loading && !X.value), Z = C([]), ie = 0;
56
+ function Q(e) {
55
57
  let t = e.currentTarget.getBoundingClientRect(), n = Math.hypot(t.width, t.height) * 2, r = e.clientX !== 0 || e.clientY !== 0, i = e.clientX - t.left, a = e.clientY - t.top, o = r && i >= 0 && i <= t.width && a >= 0 && a <= t.height, s = o ? i : t.width / 2, c = o ? a : t.height / 2;
56
- Q.value.push({
57
- id: te++,
58
+ Z.value.push({
59
+ id: ie++,
58
60
  x: s - n / 2,
59
61
  y: c - n / 2,
60
62
  size: n
61
63
  });
62
64
  }
63
- function re(e) {
64
- Q.value = Q.value.filter((t) => t.id !== e);
65
+ function ae(e) {
66
+ Z.value = Z.value.filter((t) => t.id !== e);
65
67
  }
66
- function ie(e) {
67
- Z.value || (y.effect === "ripple" && ne(e), B("click", e));
68
+ function oe(e) {
69
+ Y.value || (y.effect === "ripple" && Q(e), R("click", e));
68
70
  }
69
- let { style: $ } = r(D(y, "color"), D(y, "surface")), ae = f(() => {
71
+ let { style: $ } = r(D(y, "color"), D(y, "surface")), se = f(() => {
70
72
  let e = y.size === "small" || y.size === "large" ? `q-button--${y.size}` : void 0, t = y.iconPos === "start" ? void 0 : `q-button--icon-${y.iconPos}`;
71
73
  return [
72
74
  "q-button",
@@ -83,7 +85,7 @@ var N = [
83
85
  },
84
86
  y.class
85
87
  ];
86
- }), oe = f(() => {
88
+ }), ce = f(() => {
87
89
  if ($.value) return {
88
90
  "--q-button-main-color": $.value.mainColor,
89
91
  "--q-button-main-color-rgb": $.value.mainColorRgb,
@@ -95,12 +97,12 @@ var N = [
95
97
  "--q-button-on-hover-color": $.value.onHoverColor
96
98
  };
97
99
  });
98
- return (e, t) => (S(), p(Y, { wrap: J.value }, {
99
- help: j(() => [
100
- K.value.popoverText ? (S(), p(O(i), {
100
+ return (e, t) => (S(), p(q, { wrap: K.value }, {
101
+ help: A(() => [
102
+ W.value.popoverText ? (S(), p(O(i), {
101
103
  key: 0,
102
104
  label: y.label,
103
- text: K.value.popoverText,
105
+ text: W.value.popoverText,
104
106
  icons: y.icons,
105
107
  texts: y.texts
106
108
  }, null, 8, [
@@ -109,58 +111,62 @@ var N = [
109
111
  "icons",
110
112
  "texts"
111
113
  ])) : m("v-if", !0),
112
- K.value.inlineText ? (S(), h("span", {
114
+ W.value.inlineText ? (S(), h("span", {
113
115
  key: 1,
114
- id: G.value,
116
+ id: U.value,
115
117
  class: "q-button__help"
116
- }, E(K.value.inlineText), 9, R)) : m("v-if", !0),
117
- q.value ? (S(), h("span", {
118
+ }, E(W.value.inlineText), 9, I)) : m("v-if", !0),
119
+ G.value ? (S(), h("span", {
118
120
  key: 2,
119
- id: G.value,
121
+ id: U.value,
120
122
  class: "q-sr-only"
121
- }, E(q.value), 9, z)) : m("v-if", !0),
122
- K.value.tooltipText && W.value ? (S(), p(O(o), {
123
+ }, E(G.value), 9, L)) : m("v-if", !0),
124
+ W.value.tooltipText && H.value ? (S(), p(O(o), {
123
125
  key: 3,
124
- anchor: W.value,
125
- text: K.value.tooltipText,
126
+ anchor: H.value,
127
+ text: W.value.tooltipText,
126
128
  html: !1
127
129
  }, null, 8, ["anchor", "text"])) : m("v-if", !0)
128
130
  ]),
129
- default: j(() => [g("button", x({
130
- id: O(V),
131
+ default: A(() => [g("button", ee({
132
+ id: O(z),
131
133
  ref_key: "buttonEl",
132
- ref: W,
134
+ ref: H,
133
135
  type: "button",
134
- class: ae.value,
135
- disabled: Z.value,
136
+ class: se.value,
137
+ disabled: re.value,
136
138
  tabindex: y.tabindex,
137
- style: oe.value
139
+ style: ce.value,
140
+ "aria-disabled": y.loading && !y.disabled || void 0,
141
+ "aria-busy": y.loading || void 0
138
142
  }, e.$attrs, {
139
- "aria-describedby": O(l)(X.value, U.value),
140
- onClick: M(ie, ["stop", "prevent"])
143
+ "aria-describedby": O(l)(J.value, V.value),
144
+ onFocus: t[0] ||= (e) => X.value = !0,
145
+ onBlur: t[1] ||= (e) => X.value = !1,
146
+ onClick: ne(oe, ["stop", "prevent"])
141
147
  }), [
142
- y.loading ? (S(), h("div", P, [v(O(a))])) : m("v-if", !0),
143
- g("span", F, [
148
+ y.loading ? (S(), h("div", M, [v(O(a))])) : m("v-if", !0),
149
+ g("span", N, [
144
150
  T(e.$slots, "default"),
145
151
  _(" " + E(y.label) + " ", 1),
146
- e.$slots.append ? (S(), h("span", I, [T(e.$slots, "append")])) : m("v-if", !0)
152
+ e.$slots.append ? (S(), h("span", P, [T(e.$slots, "append")])) : m("v-if", !0)
147
153
  ]),
148
- (S(!0), h(d, null, w(Q.value, (e) => (S(), h("span", {
154
+ (S(!0), h(d, null, w(Z.value, (e) => (S(), h("span", {
149
155
  key: e.id,
150
156
  class: "q-button__ripple",
151
- style: ee({
157
+ style: x({
152
158
  left: `${e.x}px`,
153
159
  top: `${e.y}px`,
154
160
  width: `${e.size}px`,
155
161
  height: `${e.size}px`
156
162
  }),
157
163
  "aria-hidden": "true",
158
- onAnimationend: (t) => re(e.id)
159
- }, null, 44, L))), 128))
160
- ], 16, N)]),
164
+ onAnimationend: (t) => ae(e.id)
165
+ }, null, 44, F))), 128))
166
+ ], 16, j)]),
161
167
  _: 3
162
168
  }, 8, ["wrap"]));
163
169
  }
164
170
  });
165
171
  //#endregion
166
- export { B as default };
172
+ export { R as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonGroup/QButtonGroup.vue"],"names":[],"mappings":"AAeA;AA8CC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAoB3C,iBAAS,cAAc;WAiCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,yTAOnB,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":"QButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonGroup/QButtonGroup.vue"],"names":[],"mappings":"AAeA;AA8CC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAoB3C,iBAAS,cAAc;WAgCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,yTAOnB,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 +1 @@
1
- {"version":3,"file":"QCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCard/QCard.vue"],"names":[],"mappings":"AAwEA;AAwJC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG,CAAA;AAmEpC,iBAAS,cAAc;WA0HT,OAAO,IAA6B;;wBAlBrB,GAAG;kCACO,GAAG;0CACK,GAAG;uBACtB,GAAG;0BACA,GAAG;yCACY,GAAG;iCACX,GAAG;yBACX,GAAG;wBACJ,GAAG;;;;EAe/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;6EAQnB,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":"QCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCard/QCard.vue"],"names":[],"mappings":"AA8EA;AAmMC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG,CAAA;AAwGpC,iBAAS,cAAc;WA6IT,OAAO,IAA6B;;wBAlBrB,GAAG;kCACO,GAAG;0CACK,GAAG;uBACtB,GAAG;0BACA,GAAG;yCACY,GAAG;iCACX,GAAG;yBACX,GAAG;wBACJ,GAAG;;;;EAe/B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;6EAQnB,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"}
@@ -7,21 +7,19 @@ var x = { class: "q-card__header" }, S = {
7
7
  key: 0,
8
8
  class: "q-card__header-content"
9
9
  }, C = { class: "q-card__header-text" }, w = {
10
- key: 0,
11
- class: "q-card__title"
12
- }, T = {
13
10
  key: 1,
14
11
  class: "q-card__subtitle"
15
- }, E = { class: "q-card__content" }, D = {
12
+ }, T = { class: "q-card__content" }, E = {
16
13
  key: 0,
17
14
  class: "q-card__footer"
18
- }, O = /*@__PURE__*/ u({
15
+ }, D = /*@__PURE__*/ u({
19
16
  __name: "QCard",
20
17
  props: {
21
18
  id: {},
22
19
  class: {},
23
20
  title: {},
24
21
  subtitle: {},
22
+ headingLevel: {},
25
23
  href: {},
26
24
  borderless: { type: Boolean },
27
25
  variant: { default: "default" },
@@ -31,30 +29,38 @@ var x = { class: "q-card__header" }, S = {
31
29
  loading: { type: Boolean }
32
30
  },
33
31
  setup(u) {
34
- let O = u, k = e(_(O, "id")), { style: A } = t("primary"), j = i(() => ({ "--q-card-tint-color-rgb": A.value?.tintColorRgb })), M = i(() => [
32
+ let D = u, O = e(_(D, "id")), { style: k } = t("primary"), A = i(() => ({ "--q-card-tint-color-rgb": k.value?.tintColorRgb })), j = i(() => [
35
33
  "q-card",
36
- O.width ? `q-card--${O.width}` : void 0,
37
- O.variant && O.variant !== "default" ? `q-card--${O.variant}` : void 0,
38
- O.elevation && O.elevation !== "none" ? `q-card--elevation-${O.elevation}` : void 0,
34
+ D.width ? `q-card--${D.width}` : void 0,
35
+ D.variant && D.variant !== "default" ? `q-card--${D.variant}` : void 0,
36
+ D.elevation && D.elevation !== "none" ? `q-card--elevation-${D.elevation}` : void 0,
39
37
  {
40
- "q-card--clickable": P.value,
41
- "q-card--loading": O.loading,
42
- "q-card--borderless": O.borderless,
43
- "q-card--disabled": O.disabled
38
+ "q-card--clickable": N.value,
39
+ "q-card--loading": D.loading,
40
+ "q-card--borderless": D.borderless,
41
+ "q-card--disabled": D.disabled
44
42
  },
45
- O.class
46
- ]), N = y(), P = i(() => !!N.onClick || O.href), F = i(() => O.disabled || O.loading);
47
- function I(e) {
48
- F.value && e.stopImmediatePropagation();
43
+ D.class
44
+ ]), M = y(), N = i(() => !!M.onClick || D.href), P = i(() => D.disabled || D.loading), F = i(() => !!M.onClick && !D.href), I = i(() => !F.value && D.headingLevel !== void 0 && D.headingLevel >= 1 && D.headingLevel <= 6 ? `h${D.headingLevel}` : "p");
45
+ function L(e) {
46
+ !F.value || e.target !== e.currentTarget || e.ctrlKey || e.altKey || e.metaKey || e.key !== "Enter" && e.key !== " " || (e.preventDefault(), e.currentTarget.click());
47
+ }
48
+ function R(e) {
49
+ P.value && e.stopImmediatePropagation();
49
50
  }
50
- return (e, t) => (p(), a(h(O.href ? "a" : "div"), {
51
- id: v(k),
52
- class: d(M.value),
53
- style: f(j.value),
54
- href: O.href && !F.value ? O.href : void 0,
55
- onClick: I
51
+ return (e, t) => (p(), a(h(D.href ? "a" : "div"), {
52
+ id: v(O),
53
+ class: d(j.value),
54
+ style: f(A.value),
55
+ href: D.href && !P.value ? D.href : void 0,
56
+ "aria-busy": D.loading || void 0,
57
+ role: F.value ? "button" : void 0,
58
+ tabindex: F.value ? 0 : void 0,
59
+ "aria-disabled": F.value && P.value ? "true" : void 0,
60
+ onClick: R,
61
+ onKeydown: L
56
62
  }, {
57
- default: b(() => [O.loading ? (p(), a(v(n), {
63
+ default: b(() => [D.loading ? (p(), a(v(n), {
58
64
  key: 0,
59
65
  size: 36
60
66
  })) : (p(), s(r, { key: 1 }, [
@@ -63,13 +69,19 @@ var x = { class: "q-card__header" }, S = {
63
69
  o(" HEADER: PREPEND "),
64
70
  m(e.$slots, "header.prepend"),
65
71
  o(" HEADER CONTENT "),
66
- e.$slots.title || O.title || e.$slots.subtitle || O.subtitle ? (p(), s("div", S, [
72
+ e.$slots.title || D.title || e.$slots.subtitle || D.subtitle ? (p(), s("div", S, [
67
73
  m(e.$slots, "header.content.prepend"),
68
74
  c("div", C, [
69
75
  o(" TITLE "),
70
- e.$slots.title || O.title ? (p(), s("p", w, [e.$slots.title ? m(e.$slots, "title", { key: 0 }) : (p(), s(r, { key: 1 }, [l(g(e.$props.title), 1)], 64))])) : o("v-if", !0),
76
+ e.$slots.title || D.title ? (p(), a(h(I.value), {
77
+ key: 0,
78
+ class: "q-card__title"
79
+ }, {
80
+ default: b(() => [e.$slots.title ? m(e.$slots, "title", { key: 0 }) : (p(), s(r, { key: 1 }, [l(g(e.$props.title), 1)], 64))]),
81
+ _: 3
82
+ })) : o("v-if", !0),
71
83
  o(" SUBTITLE "),
72
- e.$slots.subtitle || O.subtitle ? (p(), s("p", T, [e.$slots.subtitle ? m(e.$slots, "subtitle", { key: 0 }) : (p(), s(r, { key: 1 }, [l(g(e.$props.subtitle), 1)], 64))])) : o("v-if", !0)
84
+ e.$slots.subtitle || D.subtitle ? (p(), s("p", w, [e.$slots.subtitle ? m(e.$slots, "subtitle", { key: 0 }) : (p(), s(r, { key: 1 }, [l(g(e.$props.subtitle), 1)], 64))])) : o("v-if", !0)
73
85
  ]),
74
86
  m(e.$slots, "header.content.append")
75
87
  ])) : o("v-if", !0),
@@ -77,18 +89,22 @@ var x = { class: "q-card__header" }, S = {
77
89
  m(e.$slots, "header.append")
78
90
  ])]),
79
91
  o(" CONTENT "),
80
- c("div", E, [m(e.$slots, "default")]),
92
+ c("div", T, [m(e.$slots, "default")]),
81
93
  o(" FOOTER "),
82
- e.$slots.footer ? (p(), s("div", D, [m(e.$slots, "footer")])) : o("v-if", !0)
94
+ e.$slots.footer ? (p(), s("div", E, [m(e.$slots, "footer")])) : o("v-if", !0)
83
95
  ], 64))]),
84
96
  _: 3
85
- }, 8, [
97
+ }, 40, [
86
98
  "id",
87
99
  "class",
88
100
  "style",
89
- "href"
101
+ "href",
102
+ "aria-busy",
103
+ "role",
104
+ "tabindex",
105
+ "aria-disabled"
90
106
  ]));
91
107
  }
92
108
  });
93
109
  //#endregion
94
- export { O as default };
110
+ export { D as default };
@@ -15,6 +15,15 @@ export type QCardProps = QBaseComponentProps & {
15
15
  * @category Content
16
16
  */
17
17
  subtitle?: string;
18
+ /**
19
+ * The heading level of the title, so screen reader users can find the card by its
20
+ * heading. Choose the level that fits the page's heading outline. Unset, or outside 1–6,
21
+ * the title is a paragraph. A card with a click handler is a button, whose content is no
22
+ * heading, so its title stays a paragraph.
23
+ *
24
+ * @category Content
25
+ */
26
+ headingLevel?: number;
18
27
  /**
19
28
  * The card becomes an anchor with the href prop.
20
29
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCard/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,kBAAkB,GAAG,OAAO,CAAA;AAElF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE/D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAE5E,MAAM,MAAM,UAAU,GAAG,mBAAmB,GAAG;IAC9C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;IAEtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAE1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,UAAU,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCard/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,kBAAkB,GAAG,OAAO,CAAA;AAElF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE/D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAE5E,MAAM,MAAM,UAAU,GAAG,mBAAmB,GAAG;IAC9C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;IAEtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAE1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,UAAU,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
@@ -25,6 +25,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
25
25
  "onUpdate:currentSlide"?: ((value: number) => any) | undefined;
26
26
  }>, {
27
27
  wrap: boolean;
28
+ headingLevel: number;
28
29
  icons: typeof DEFAULT_ICONS;
29
30
  texts: typeof DEFAULT_TEXTS;
30
31
  slides: QCarouselSlide[];
@@ -1 +1 @@
1
- {"version":3,"file":"QCarousel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCarousel/QCarousel.vue"],"names":[],"mappings":"AAmJA;AA2gBC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAY1D,OAAO,KAAK,EAAkB,cAAc,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAKvE,KAAK,WAAW,GAAG,cAAc,CAAC;AAkXnC,KAAK,iBAAiB,GAAG;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyQT,OAAO,IAA6B;;uBAVtB,GAAG;;;;EAe9B;AA8BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;wFASnB,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":"QCarousel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCarousel/QCarousel.vue"],"names":[],"mappings":"AAqJA;AAmhBC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAY1D,OAAO,KAAK,EAAkB,cAAc,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAKvE,KAAK,WAAW,GAAG,cAAc,CAAC;AAyXnC,KAAK,iBAAiB,GAAG;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAgRT,OAAO,IAA6B;;uBAVtB,GAAG;;;;EAe9B;AA+BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;wFASnB,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"}