@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,21 +1,20 @@
1
- import { QSpinnerLoader as e } from "../QSpinnerLoader/index.js";
2
- import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderSlot as d, resolveDynamicComponent as f, toDisplayString as p, unref as m, useAttrs as h, withCtx as g } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { QSpinnerLoader as t } from "../QSpinnerLoader/index.js";
3
+ import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, renderSlot as f, resolveDynamicComponent as p, toDisplayString as m, toRef as h, unref as g, useAttrs as _, withCtx as v } from "vue";
3
4
  //#region src/components/QCard/QCard.vue?vue&type=script&setup=true&lang.ts
4
- var _ = { class: "q-card__header" }, v = {
5
+ var y = { class: "q-card__header" }, b = {
5
6
  key: 0,
6
7
  class: "q-card__header-content"
7
- }, y = { class: "q-card__header-text" }, b = {
8
+ }, x = { class: "q-card__header-text" }, S = {
8
9
  key: 0,
9
- class: "q-card__title",
10
- role: "cell"
11
- }, x = {
10
+ class: "q-card__title"
11
+ }, C = {
12
12
  key: 1,
13
- class: "q-card__subtitle",
14
- role: "cell"
15
- }, S = { class: "q-card__content" }, C = {
13
+ class: "q-card__subtitle"
14
+ }, w = { class: "q-card__content" }, T = {
16
15
  key: 0,
17
16
  class: "q-card__footer"
18
- }, w = /*@__PURE__*/ c({
17
+ }, E = /*@__PURE__*/ l({
19
18
  __name: "QCard",
20
19
  props: {
21
20
  id: {},
@@ -30,55 +29,55 @@ var _ = { class: "q-card__header" }, v = {
30
29
  disabled: { type: Boolean },
31
30
  loading: { type: Boolean }
32
31
  },
33
- setup(c) {
34
- let w = c, T = n(() => [
32
+ setup(l) {
33
+ let E = l, D = e(h(E, "id")), O = r(() => [
35
34
  "q-card",
36
- w.width ? `q-card--${w.width}` : void 0,
37
- w.variant && w.variant !== "default" ? `q-card--${w.variant}` : void 0,
38
- w.elevation && w.elevation !== "none" ? `q-card--elevation-${w.elevation}` : void 0,
35
+ E.width ? `q-card--${E.width}` : void 0,
36
+ E.variant && E.variant !== "default" ? `q-card--${E.variant}` : void 0,
37
+ E.elevation && E.elevation !== "none" ? `q-card--elevation-${E.elevation}` : void 0,
39
38
  {
40
- "q-card--clickable": D.value,
41
- "q-card--loading": w.loading,
42
- "q-card--borderless": w.borderless,
43
- "q-card--disabled": w.disabled
39
+ "q-card--clickable": A.value,
40
+ "q-card--loading": E.loading,
41
+ "q-card--borderless": E.borderless,
42
+ "q-card--disabled": E.disabled
44
43
  },
45
- w.class
46
- ]), E = h(), D = n(() => !!E.onClick || w.href), O = n(() => w.disabled || w.loading);
47
- function k(e) {
48
- O.value && e.stopImmediatePropagation();
44
+ E.class
45
+ ]), k = _(), A = r(() => !!k.onClick || E.href), j = r(() => E.disabled || E.loading);
46
+ function M(e) {
47
+ j.value && e.stopImmediatePropagation();
49
48
  }
50
- return (n, c) => (u(), r(f(w.href ? "a" : "div"), {
51
- id: w.id,
52
- class: l(T.value),
53
- href: w.href && !O.value ? w.href : void 0,
54
- onClick: k
49
+ return (e, r) => (d(), i(p(E.href ? "a" : "div"), {
50
+ id: g(D),
51
+ class: u(O.value),
52
+ href: E.href && !j.value ? E.href : void 0,
53
+ onClick: M
55
54
  }, {
56
- default: g(() => [w.loading ? (u(), r(m(e), {
55
+ default: v(() => [E.loading ? (d(), i(g(t), {
57
56
  key: 0,
58
57
  size: 36
59
- })) : (u(), a(t, { key: 1 }, [
60
- i(" HEADER "),
61
- o("div", _, [d(n.$slots, "header", {}, () => [
62
- i(" HEADER: PREPEND "),
63
- d(n.$slots, "header.prepend"),
64
- i(" HEADER CONTENT "),
65
- n.$slots.title || w.title || n.$slots.subtitle || w.subtitle ? (u(), a("div", v, [
66
- d(n.$slots, "header.content.prepend"),
67
- o("div", y, [
68
- i(" TITLE "),
69
- n.$slots.title || w.title ? (u(), a("p", b, [n.$slots.title ? d(n.$slots, "title", { key: 0 }) : (u(), a(t, { key: 1 }, [s(p(n.$props.title), 1)], 64))])) : i("v-if", !0),
70
- i(" SUBTITLE "),
71
- n.$slots.subtitle || w.subtitle ? (u(), a("p", x, [n.$slots.subtitle ? d(n.$slots, "subtitle", { key: 0 }) : (u(), a(t, { key: 1 }, [s(p(n.$props.subtitle), 1)], 64))])) : i("v-if", !0)
58
+ })) : (d(), o(n, { key: 1 }, [
59
+ a(" HEADER "),
60
+ s("div", y, [f(e.$slots, "header", {}, () => [
61
+ a(" HEADER: PREPEND "),
62
+ f(e.$slots, "header.prepend"),
63
+ a(" HEADER CONTENT "),
64
+ e.$slots.title || E.title || e.$slots.subtitle || E.subtitle ? (d(), o("div", b, [
65
+ f(e.$slots, "header.content.prepend"),
66
+ s("div", x, [
67
+ a(" TITLE "),
68
+ e.$slots.title || E.title ? (d(), o("p", S, [e.$slots.title ? f(e.$slots, "title", { key: 0 }) : (d(), o(n, { key: 1 }, [c(m(e.$props.title), 1)], 64))])) : a("v-if", !0),
69
+ a(" SUBTITLE "),
70
+ e.$slots.subtitle || E.subtitle ? (d(), o("p", C, [e.$slots.subtitle ? f(e.$slots, "subtitle", { key: 0 }) : (d(), o(n, { key: 1 }, [c(m(e.$props.subtitle), 1)], 64))])) : a("v-if", !0)
72
71
  ]),
73
- d(n.$slots, "header.content.append")
74
- ])) : i("v-if", !0),
75
- i(" HEADER: APPEND "),
76
- d(n.$slots, "header.append")
72
+ f(e.$slots, "header.content.append")
73
+ ])) : a("v-if", !0),
74
+ a(" HEADER: APPEND "),
75
+ f(e.$slots, "header.append")
77
76
  ])]),
78
- i(" CONTENT "),
79
- o("div", S, [d(n.$slots, "default")]),
80
- i(" FOOTER "),
81
- n.$slots.footer ? (u(), a("div", C, [d(n.$slots, "footer")])) : i("v-if", !0)
77
+ a(" CONTENT "),
78
+ s("div", w, [f(e.$slots, "default")]),
79
+ a(" FOOTER "),
80
+ e.$slots.footer ? (d(), o("div", T, [f(e.$slots, "footer")])) : a("v-if", !0)
82
81
  ], 64))]),
83
82
  _: 3
84
83
  }, 8, [
@@ -89,4 +88,4 @@ var _ = { class: "q-card__header" }, v = {
89
88
  }
90
89
  });
91
90
  //#endregion
92
- export { w as default };
91
+ export { E as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QCarousel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCarousel/QCarousel.vue"],"names":[],"mappings":"AA+IA;AAueC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAS1D,OAAO,KAAK,EAAkB,cAAc,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAKvE,KAAK,WAAW,GAAG,cAAc,CAAC;AAqVnC,KAAK,iBAAiB,GAAG;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAqQT,OAAO,IAA6B;;uBAVtB,GAAG;;;;EAe9B;AA4BD,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":"AAmJA;AAifC,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;AAwVnC,KAAK,iBAAiB,GAAG;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyQT,OAAO,IAA6B;;uBAVtB,GAAG;;;;EAe9B;AA6BD,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,37 +1,38 @@
1
- import { QButton as e } from "../QButton/index.js";
2
- import { QIcon as t } from "../QIcon/index.js";
3
- import { DEFAULT_ICONS as n, DEFAULT_TEXTS as r } from "./constants.js";
4
- import { QSkeletonLoader as i } from "../QSkeletonLoader/index.js";
5
- import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onMounted as _, onUnmounted as v, openBlock as y, ref as b, renderList as x, renderSlot as S, toDisplayString as C, unref as w, useModel as T, watch as E, withCtx as D, withModifiers as O } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { QButton as t } from "../QButton/index.js";
3
+ import { QIcon as n } from "../QIcon/index.js";
4
+ import { DEFAULT_ICONS as r, DEFAULT_TEXTS as i } from "./constants.js";
5
+ import { QSkeletonLoader as a } from "../QSkeletonLoader/index.js";
6
+ import { Fragment as o, computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onMounted as v, onUnmounted as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, toRef as T, unref as E, useModel as D, watch as O, withCtx as k, withModifiers as A } from "vue";
6
7
  //#region src/components/QCarousel/QCarousel.vue?vue&type=script&setup=true&lang.ts
7
- var k = ["id"], A = {
8
+ var j = ["id"], M = {
8
9
  key: 0,
9
10
  class: "q-carousel__skeleton"
10
- }, j = { class: "q-carousel__skeleton-caption" }, M = {
11
+ }, ee = { class: "q-carousel__skeleton-caption" }, te = {
11
12
  key: 0,
12
13
  class: "q-carousel__skeleton-controls"
13
- }, ee = ["onClick"], te = ["src", "alt"], ne = {
14
+ }, ne = ["onClick"], re = ["src", "alt"], ie = {
14
15
  key: 1,
15
16
  class: "q-carousel__empty-container"
16
- }, re = {
17
+ }, ae = {
17
18
  key: 2,
18
19
  class: "q-carousel__caption-global"
19
- }, ie = {
20
+ }, oe = {
20
21
  key: 0,
21
22
  class: "q-carousel__title"
22
- }, ae = {
23
+ }, se = {
23
24
  key: 1,
24
25
  class: "q-carousel__subtitle"
25
- }, oe = {
26
+ }, N = {
26
27
  key: 3,
27
28
  class: "q-carousel__indicators"
28
- }, N = [
29
+ }, P = [
29
30
  "aria-label",
30
31
  "aria-current",
31
32
  "onClick"
32
- ], P = { class: "q-sr-only" }, F = { class: "q-sr-only" }, I = /*@__PURE__*/ d({
33
+ ], F = { class: "q-sr-only" }, I = { class: "q-sr-only" }, L = /*@__PURE__*/ f({
33
34
  __name: "QCarousel",
34
- props: /*@__PURE__*/ f({
35
+ props: /*@__PURE__*/ p({
35
36
  id: {},
36
37
  class: {},
37
38
  slides: { default: () => [] },
@@ -47,73 +48,73 @@ var k = ["id"], A = {
47
48
  },
48
49
  animationDuration: { default: 500 },
49
50
  loading: { type: Boolean },
50
- icons: { default: () => n },
51
- texts: { default: () => r }
51
+ icons: { default: () => r },
52
+ texts: { default: () => i }
52
53
  }, {
53
54
  currentSlide: { default: 0 },
54
55
  currentSlideModifiers: {}
55
56
  }),
56
- emits: /*@__PURE__*/ f([
57
+ emits: /*@__PURE__*/ p([
57
58
  "slide:before-change",
58
59
  "slide:after-change",
59
60
  "slide:click"
60
61
  ], ["update:currentSlide"]),
61
- setup(n, { emit: r }) {
62
- let d = n, f = r, I = T(n, "currentSlide"), L = b(0), R = !1, z = !1, B = 0, V = 0, H = b(0), U = b(0), W, G, K = o(() => ({
63
- transform: `translateX(-${L.value * 100}%)`,
64
- transition: R ? `transform ${d.animationDuration}ms cubic-bezier(0.4, 0, 0.2, 1)` : "none"
65
- })), q = o(() => ({
66
- "--q-carousel-progress-duration": `${d.autoCycleInterval}ms`,
67
- "--q-carousel-progress-width": `${H.value}%`
62
+ setup(r, { emit: i }) {
63
+ let f = r, p = i, L = D(r, "currentSlide"), R = e(T(f, "id")), z = x(0), B = !1, V = !1, H = 0, U = 0, W = x(0), G = x(0), K, q, ce = s(() => ({
64
+ transform: `translateX(-${z.value * 100}%)`,
65
+ transition: B ? `transform ${f.animationDuration}ms cubic-bezier(0.4, 0, 0.2, 1)` : "none"
66
+ })), le = s(() => ({
67
+ "--q-carousel-progress-duration": `${f.autoCycleInterval}ms`,
68
+ "--q-carousel-progress-width": `${W.value}%`
68
69
  }));
69
70
  function J(e) {
70
- if (e < 0 || e >= d.slides.length || e === L.value || R) return;
71
- let t = L.value, n = d.slides[t], r = d.slides[e];
72
- f("slide:before-change", r.id, n?.id), L.value = e, I.value = e, d.animationDuration > 0 ? (R = !0, setTimeout(() => {
73
- R = !1, f("slide:after-change", r.id, n?.id);
74
- }, d.animationDuration)) : m(() => {
75
- f("slide:after-change", r.id, n?.id);
71
+ if (e < 0 || e >= f.slides.length || e === z.value || B) return;
72
+ let t = z.value, n = f.slides[t], r = f.slides[e];
73
+ p("slide:before-change", r.id, n?.id), z.value = e, L.value = e, f.animationDuration > 0 ? (B = !0, setTimeout(() => {
74
+ B = !1, p("slide:after-change", r.id, n?.id);
75
+ }, f.animationDuration)) : h(() => {
76
+ p("slide:after-change", r.id, n?.id);
76
77
  });
77
78
  }
78
79
  function Y() {
79
- let e = L.value + 1;
80
- e >= d.slides.length ? d.wrap && J(0) : J(e);
80
+ let e = z.value + 1;
81
+ e >= f.slides.length ? f.wrap && J(0) : J(e);
81
82
  }
82
83
  function X() {
83
- let e = L.value - 1;
84
- e < 0 ? d.wrap && J(d.slides.length - 1) : J(e);
84
+ let e = z.value - 1;
85
+ e < 0 ? f.wrap && J(f.slides.length - 1) : J(e);
85
86
  }
86
- function se(e) {
87
+ function ue(e) {
87
88
  if (window.getSelection()?.toString().length) return;
88
- let t = d.slides[e];
89
- f("slide:click", t.id);
89
+ let t = f.slides[e];
90
+ p("slide:click", t.id);
90
91
  }
91
- function ce(e) {
92
+ function de(e) {
92
93
  let t = {};
93
94
  return e?.colorPlaceholder && (t["background-color"] = e.colorPlaceholder), t;
94
95
  }
95
- function le() {
96
- d.autoCycleInterval && (G = window.setInterval(() => {
97
- H.value = (Date.now() - U.value) / d.autoCycleInterval * 100;
96
+ function fe() {
97
+ f.autoCycleInterval && (q = window.setInterval(() => {
98
+ W.value = (Date.now() - G.value) / f.autoCycleInterval * 100;
98
99
  }, 50));
99
100
  }
100
101
  function Z() {
101
- !d.autoCycleInterval || d.slides.length <= 1 || (Q(), d.ride === "carousel" && !z && (U.value = Date.now(), le(), W = window.setTimeout(Y, d.autoCycleInterval)));
102
+ !f.autoCycleInterval || f.slides.length <= 1 || (Q(), f.ride === "carousel" && !V && (G.value = Date.now(), fe(), K = window.setTimeout(Y, f.autoCycleInterval)));
102
103
  }
103
104
  function Q() {
104
- W && window.clearTimeout(W), G && window.clearInterval(G), W = void 0, G = void 0, U.value = 0, H.value = 0;
105
+ K && window.clearTimeout(K), q && window.clearInterval(q), K = void 0, q = void 0, G.value = 0, W.value = 0;
105
106
  }
106
- function ue() {
107
+ function pe() {
107
108
  Q(), Z();
108
109
  }
109
- function de() {
110
- d.autoCyclePause === "hover" && (z = !0, Q());
110
+ function $() {
111
+ f.autoCyclePause === "hover" && (V = !0, Q());
111
112
  }
112
- function fe() {
113
- d.autoCyclePause === "hover" && (z = !1, Z());
113
+ function me() {
114
+ f.autoCyclePause === "hover" && (V = !1, Z());
114
115
  }
115
- function pe(e) {
116
- if (!R) switch (e.key) {
116
+ function he(e) {
117
+ if (!B) switch (e.key) {
117
118
  case "ArrowLeft":
118
119
  e.preventDefault(), X();
119
120
  break;
@@ -124,125 +125,128 @@ var k = ["id"], A = {
124
125
  e.preventDefault(), J(0);
125
126
  break;
126
127
  case "End":
127
- e.preventDefault(), J(d.slides.length - 1);
128
+ e.preventDefault(), J(f.slides.length - 1);
128
129
  break;
129
130
  }
130
131
  }
131
- function $(e) {
132
- R || (B = e.touches[0].clientX, Q());
132
+ function ge(e) {
133
+ B || (H = e.touches[0].clientX, Q());
133
134
  }
134
- function me(e) {
135
- R || (V = e.touches[0].clientX);
135
+ function _e(e) {
136
+ B || (U = e.touches[0].clientX);
136
137
  }
137
- function he() {
138
- if (R) return;
139
- let e = B - V;
140
- Math.abs(e) > d.swipeThreshold && (e > 0 ? Y() : X()), B = 0, V = 0, Z();
138
+ function ve() {
139
+ if (B) return;
140
+ let e = H - U;
141
+ Math.abs(e) > f.swipeThreshold && (e > 0 ? Y() : X()), H = 0, U = 0, Z();
141
142
  }
142
- function ge(e) {
143
- return d.texts.goToSlide.replace("{0}", `${e + 1}`);
143
+ function ye(e) {
144
+ return f.texts.goToSlide.replace("{0}", `${e + 1}`);
144
145
  }
145
- function _e(e) {
146
+ function be(e) {
146
147
  if (e.length === 0) {
147
- L.value = 0, I.value = 0, Q();
148
+ z.value = 0, L.value = 0, Q();
148
149
  return;
149
150
  }
150
- L.value >= e.length && J(0);
151
+ z.value >= e.length && J(0);
151
152
  }
152
- return E(() => d.slides, _e, {
153
+ return O(() => f.slides, be, {
153
154
  immediate: !0,
154
155
  deep: !0
155
- }), E(L, ue), E(I, (e) => {
156
- e !== L.value && J(e);
157
- }), _(Z), v(Q), (r, o) => (y(), c("div", {
158
- id: d.id,
159
- class: h(["q-carousel", d.class]),
156
+ }), O(z, pe), O(L, (e) => {
157
+ e !== z.value && J(e);
158
+ }), v(Z), y(Q), (e, i) => (b(), l("div", {
159
+ id: E(R),
160
+ class: g(["q-carousel", f.class]),
160
161
  tabindex: "0",
161
- onMouseenter: de,
162
- onMouseleave: fe,
163
- onKeydown: pe
164
- }, [s(" Skeleton Loader "), n.loading ? (y(), c("div", A, [
165
- s(" Image placeholder "),
166
- u(w(i), {
162
+ onMouseenter: $,
163
+ onMouseleave: me,
164
+ onKeydown: he
165
+ }, [c(" Skeleton Loader "), r.loading ? (b(), l("div", M, [
166
+ c(" Image placeholder "),
167
+ d(E(a), {
167
168
  width: "100%",
168
169
  height: "100%"
169
170
  }),
170
- s(" Overlay skeletons for text/captions "),
171
- l("div", j, [u(w(i), {
171
+ c(" Overlay skeletons for text/captions "),
172
+ u("div", ee, [d(E(a), {
172
173
  type: "text",
173
174
  width: "40%",
174
175
  height: "24px",
175
176
  class: "q-carousel__skeleton-title"
176
- }), u(w(i), {
177
+ }), d(E(a), {
177
178
  type: "text",
178
179
  width: "60%",
179
180
  height: "16px",
180
181
  class: "q-carousel__skeleton-subtitle"
181
182
  })]),
182
- s(" Controls "),
183
- d.showControls ? (y(), c("div", M, [u(w(i), {
183
+ c(" Controls "),
184
+ f.showControls ? (b(), l("div", te, [d(E(a), {
184
185
  type: "icon",
185
186
  width: "40px",
186
187
  height: "40px",
187
188
  class: "q-carousel__skeleton-control"
188
- }), u(w(i), {
189
+ }), d(E(a), {
189
190
  type: "icon",
190
191
  width: "40px",
191
192
  height: "40px",
192
193
  class: "q-carousel__skeleton-control"
193
- })])) : s("v-if", !0)
194
- ])) : (y(), c(a, { key: 1 }, [
195
- n.slides?.length ? (y(), c(a, { key: 0 }, [s(" Carousel Content "), l("div", {
194
+ })])) : c("v-if", !0)
195
+ ])) : (b(), l(o, { key: 1 }, [
196
+ r.slides?.length ? (b(), l(o, { key: 0 }, [c(" Carousel Content "), u("div", {
196
197
  class: "q-carousel__track",
197
- style: g(K.value),
198
- onTouchstart: $,
199
- onTouchmove: me,
200
- onTouchend: he
201
- }, [(y(!0), c(a, null, x(n.slides, (e, t) => (y(), c("div", {
198
+ style: _(ce.value),
199
+ onTouchstart: ge,
200
+ onTouchmove: _e,
201
+ onTouchend: ve
202
+ }, [(b(!0), l(o, null, S(r.slides, (e, t) => (b(), l("div", {
202
203
  key: e.id,
203
- class: h(["q-carousel__slide", { "q-carousel__slide--active": t === L.value }]),
204
- style: g(ce(e)),
205
- onClick: O(() => se(t), ["stop", "prevent"])
206
- }, [e.image ? (y(), c("img", {
204
+ class: g(["q-carousel__slide", { "q-carousel__slide--active": t === z.value }]),
205
+ style: _(de(e)),
206
+ onClick: A(() => ue(t), ["stop", "prevent"])
207
+ }, [e.image ? (b(), l("img", {
207
208
  key: 0,
208
209
  src: e.image,
209
210
  alt: e.title || `Slide ${t + 1}`,
210
211
  class: "q-carousel__image",
211
212
  decoding: "async",
212
213
  loading: "lazy"
213
- }, null, 8, te)) : s("v-if", !0)], 14, ee))), 128))], 36)], 64)) : (y(), c("div", ne, [S(r.$slots, "empty")])),
214
- s(" Captions (centered, above indicators) "),
215
- n.slides[L.value] ? (y(), c("div", re, [n.slides[L.value]?.title ? (y(), c("h2", ie, C(n.slides[L.value].title), 1)) : s("v-if", !0), n.slides[L.value]?.subtitle ? (y(), c("p", ae, C(n.slides[L.value].subtitle), 1)) : s("v-if", !0)])) : s("v-if", !0),
216
- s(" Indicators "),
217
- n.showIndicators && n.slides.length > 1 ? (y(), c("ol", oe, [(y(!0), c(a, null, x(n.slides, (e, t) => (y(), c("li", {
214
+ }, null, 8, re)) : c("v-if", !0)], 14, ne))), 128))], 36)], 64)) : (b(), l("div", ie, [C(e.$slots, "empty")])),
215
+ c(" Captions (centered, above indicators) "),
216
+ r.slides[z.value] ? (b(), l("div", ae, [r.slides[z.value]?.title ? (b(), l("h2", oe, w(r.slides[z.value].title), 1)) : c("v-if", !0), r.slides[z.value]?.subtitle ? (b(), l("p", se, w(r.slides[z.value].subtitle), 1)) : c("v-if", !0)])) : c("v-if", !0),
217
+ c(" Indicators "),
218
+ r.showIndicators && r.slides.length > 1 ? (b(), l("ol", N, [(b(!0), l(o, null, S(r.slides, (e, t) => (b(), l("li", {
218
219
  key: e.id,
219
- class: h(["q-carousel__indicator", { "q-carousel__indicator--active": t === L.value }]),
220
+ class: g(["q-carousel__indicator", { "q-carousel__indicator--active": t === z.value }]),
221
+ style: _(t === z.value ? le.value : {})
222
+ }, [u("button", {
223
+ type: "button",
224
+ class: "q-carousel__indicator-button",
220
225
  "data-testid": "carousel-indicator",
221
- style: g(t === L.value ? q.value : {}),
222
- "aria-label": ge(t),
223
- "aria-current": t === L.value,
226
+ "aria-label": ye(t),
227
+ "aria-current": t === z.value || void 0,
224
228
  onClick: () => J(t)
225
- }, null, 14, N))), 128))])) : s("v-if", !0),
226
- s(" Controls "),
227
- n.showControls && n.slides.length > 1 ? (y(), c(a, { key: 4 }, [u(w(e), {
229
+ }, null, 8, P)], 6))), 128))])) : c("v-if", !0),
230
+ c(" Controls "),
231
+ r.showControls && r.slides.length > 1 ? (b(), l(o, { key: 4 }, [d(E(t), {
228
232
  class: "q-carousel__control q-carousel__control--prev",
229
233
  "data-testid": "carousel-prev",
230
- "aria-label": n.texts.previousText,
234
+ "aria-label": r.texts.previousText,
231
235
  onClick: X
232
236
  }, {
233
- default: D(() => [u(w(t), p({ class: "q-carousel__control-icon q-carousel__control-icon--prev" }, d.icons.back), null, 16), l("span", P, C(n.texts.previousText), 1)]),
237
+ default: k(() => [d(E(n), m({ class: "q-carousel__control-icon q-carousel__control-icon--prev" }, f.icons.back), null, 16), u("span", F, w(r.texts.previousText), 1)]),
234
238
  _: 1
235
- }, 8, ["aria-label"]), u(w(e), {
239
+ }, 8, ["aria-label"]), d(E(t), {
236
240
  class: "q-carousel__control q-carousel__control--next",
237
241
  "data-testid": "carousel-next",
238
- "aria-label": n.texts.nextText,
242
+ "aria-label": r.texts.nextText,
239
243
  onClick: Y
240
244
  }, {
241
- default: D(() => [u(w(t), p({ class: "q-carousel__control-icon q-carousel__control-icon--next" }, d.icons.forward), null, 16), l("span", F, C(n.texts.nextText), 1)]),
245
+ default: k(() => [d(E(n), m({ class: "q-carousel__control-icon q-carousel__control-icon--next" }, f.icons.forward), null, 16), u("span", I, w(r.texts.nextText), 1)]),
242
246
  _: 1
243
- }, 8, ["aria-label"])], 64)) : s("v-if", !0)
244
- ], 64))], 42, k));
247
+ }, 8, ["aria-label"])], 64)) : c("v-if", !0)
248
+ ], 64))], 42, j));
245
249
  }
246
250
  });
247
251
  //#endregion
248
- export { I as default };
252
+ export { L as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AAmEA;AAwJC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAU3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAKvC,KAAK,WAAW,GAAG,cAAc,CAAC;AA0EnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA4HT,OAAO,IAA6B;;wBAdtB,GAAG;wBACF,GAAG;;;;;;;EAkB/B;AAiBD,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":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AAiEA;AAsJC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAU3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAKvC,KAAK,WAAW,GAAG,cAAc,CAAC;AA0EnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA0HT,OAAO,IAA6B;;wBAdtB,GAAG;wBACF,GAAG;;;;;;;EAkB/B;AAiBD,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,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 { DEFAULT_ICONS as n } from "./constants.js";
4
4
  import { QCheckboxLabel as r } from "./index.js";
5
5
  import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, defineComponent as u, mergeModels as d, mergeProps as f, normalizeClass as p, openBlock as m, renderSlot as h, toRef as g, unref as _, useModel as v, useTemplateRef as y, watch as b, withCtx as x, withKeys as S, withModifiers as C } from "vue";
@@ -9,11 +9,9 @@ var w = [
9
9
  "disabled",
10
10
  "readonly",
11
11
  "required",
12
- "aria-label",
13
12
  "aria-readonly"
14
13
  ], T = [
15
14
  "id",
16
- "aria-label",
17
15
  "aria-checked",
18
16
  "aria-required",
19
17
  "disabled",
@@ -47,7 +45,7 @@ var w = [
47
45
  }),
48
46
  emits: ["update:modelValue"],
49
47
  setup(n) {
50
- let u = n, d = v(n, "modelValue"), E = t(g(u, "id")), D = y("inputEl"), O = y("buttonEl"), k = i(() => [
48
+ let u = n, d = v(n, "modelValue"), E = e(g(u, "id")), D = y("inputEl"), O = y("buttonEl"), k = i(() => [
51
49
  "q-checkbox",
52
50
  u.size === "small" || u.size === "large" ? `q-checkbox--${u.size}` : void 0,
53
51
  `q-checkbox--${u.color}`,
@@ -69,7 +67,7 @@ var w = [
69
67
  }
70
68
  return b(d, (e) => {
71
69
  D.value && (D.value.checked = !!e);
72
- }), (t, i) => (m(), s("div", {
70
+ }), (e, i) => (m(), s("div", {
73
71
  class: p(k.value),
74
72
  onClick: C(A, ["prevent"]),
75
73
  onMousedown: C(j, ["prevent"])
@@ -79,9 +77,9 @@ var w = [
79
77
  for: _(E),
80
78
  label: u.label,
81
79
  required: u.required
82
- }, l({ _: 2 }, [t.$slots.extras ? {
80
+ }, l({ _: 2 }, [e.$slots.extras ? {
83
81
  name: "extras",
84
- fn: x(() => [h(t.$slots, "extras")]),
82
+ fn: x(() => [h(e.$slots, "extras")]),
85
83
  key: "0"
86
84
  } : void 0]), 1032, [
87
85
  "for",
@@ -97,7 +95,6 @@ var w = [
97
95
  disabled: u.disabled,
98
96
  readonly: u.readonly,
99
97
  required: u.required,
100
- "aria-label": u.label,
101
98
  "aria-readonly": u.readonly,
102
99
  tabindex: "-1",
103
100
  "aria-hidden": "true"
@@ -110,23 +107,22 @@ var w = [
110
107
  type: "button",
111
108
  class: "q-checkbox__input",
112
109
  "data-testid": "checkbox-button",
113
- "aria-label": u.label,
114
110
  "aria-checked": u.indeterminate ? "mixed" : d.value,
115
111
  "aria-required": u.required || void 0,
116
112
  disabled: u.disabled,
117
113
  readonly: u.readonly
118
- }, t.$attrs, {
114
+ }, e.$attrs, {
119
115
  onClick: C(A, ["stop", "prevent"]),
120
116
  onKeydown: [S(C(A, ["prevent"]), ["space"]), i[0] ||= S(C(() => {}, ["prevent"]), ["enter"])]
121
- }), [d.value || n.indeterminate ? (m(), a(_(e), f({ key: 0 }, d.value ? u.icons.checked : u.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : o("v-if", !0)], 16, T),
117
+ }), [d.value || n.indeterminate ? (m(), a(_(t), f({ key: 0 }, d.value ? u.icons.checked : u.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : o("v-if", !0)], 16, T),
122
118
  u.label && u.labelPlacement === "right" ? (m(), a(_(r), {
123
119
  key: 1,
124
120
  for: _(E),
125
121
  label: u.label,
126
122
  required: u.required
127
- }, l({ _: 2 }, [t.$slots.extras ? {
123
+ }, l({ _: 2 }, [e.$slots.extras ? {
128
124
  name: "extras",
129
- fn: x(() => [h(t.$slots, "extras")]),
125
+ fn: x(() => [h(e.$slots, "extras")]),
130
126
  key: "0"
131
127
  } : void 0]), 1032, [
132
128
  "for",
@@ -1 +1 @@
1
- {"version":3,"file":"QCollapsible.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/QCollapsible.vue"],"names":[],"mappings":"AAwEA;AA4IC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAS1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAK1C,KAAK,WAAW,GAAG,iBAAiB,CAAC;AAyDtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAuJT,OAAO,IAA6B;;sBAfvB,GAAG;sBAGH,GAAG;iCAFQ,GAAG;gCACJ,GAAG;0BAET,GAAG;yBACJ,GAAG;;;;EAehC;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;6EASnB,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":"QCollapsible.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/QCollapsible.vue"],"names":[],"mappings":"AAwEA;AAiJC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAY1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAK1C,KAAK,WAAW,GAAG,iBAAiB,CAAC;AA2DtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAuJT,OAAO,IAA6B;;sBAfvB,GAAG;sBAGH,GAAG;iCAFQ,GAAG;gCACJ,GAAG;0BAET,GAAG;yBACJ,GAAG;;;;EAehC;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;6EASnB,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"}