@quidgest/ui 0.25.0 → 0.27.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 (257) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/json/api.json +501 -156
  3. package/dist/manifest/components.json +3 -0
  4. package/dist/ui.css +1030 -138
  5. package/dist/ui.esm.js +989 -937
  6. package/dist/ui.js +1230 -1181
  7. package/dist/ui.min.css +1 -1
  8. package/dist/ui.min.js +1230 -1181
  9. package/dist/ui.scss +1301 -168
  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 +88 -0
  92. package/esm/components/QIcon/QSvgSymbol2.vue.js +5 -0
  93. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  94. package/esm/components/QInputGroup/QInputGroup.vue.js +30 -29
  95. package/esm/components/QLabel/QLabel.d.ts.map +1 -1
  96. package/esm/components/QLabel/QLabel.vue.js +20 -19
  97. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  98. package/esm/components/QLineLoader/QLineLoader.vue.js +14 -13
  99. package/esm/components/QList/QList.d.ts +4 -4
  100. package/esm/components/QList/QList.d.ts.map +1 -1
  101. package/esm/components/QList/QList.vue.js +135 -135
  102. package/esm/components/QList/QListItem.d.ts.map +1 -1
  103. package/esm/components/QList/QListItem.vue.js +42 -40
  104. package/esm/components/QList/QListItemGroup.d.ts +1 -1
  105. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  106. package/esm/components/QList/index.d.ts +2 -2
  107. package/esm/components/QList/types.d.ts +6 -0
  108. package/esm/components/QList/types.d.ts.map +1 -1
  109. package/esm/components/QMeter/QMeter.d.ts.map +1 -1
  110. package/esm/components/QMeter/QMeter.vue.js +20 -19
  111. package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
  112. package/esm/components/QObfuscation/QObfuscation.vue.js +53 -53
  113. package/esm/components/QOverflow/QOverflow.d.ts +1 -1
  114. package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
  115. package/esm/components/QOverflow/QOverflow.vue.js +10 -10
  116. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  117. package/esm/components/QOverlay/QOverlay.vue.js +139 -138
  118. package/esm/components/QPasswordField/QPasswordField.d.ts +2 -0
  119. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  120. package/esm/components/QPasswordField/QPasswordField.vue.js +63 -60
  121. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +1 -1
  122. package/esm/components/QPasswordField/constants.d.ts +4 -0
  123. package/esm/components/QPasswordField/constants.d.ts.map +1 -1
  124. package/esm/components/QPasswordField/constants.js +4 -1
  125. package/esm/components/QPasswordField/index.d.ts +6 -0
  126. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  127. package/esm/components/QPasswordField/types.d.ts +7 -1
  128. package/esm/components/QPasswordField/types.d.ts.map +1 -1
  129. package/esm/components/QPhoneField/QPhoneField.d.ts +7 -5
  130. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  131. package/esm/components/QPhoneField/QPhoneField.vue.js +88 -88
  132. package/esm/components/QPhoneField/index.d.ts +3 -2
  133. package/esm/components/QPhoneField/index.d.ts.map +1 -1
  134. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  135. package/esm/components/QPopover/QPopover.vue.js +51 -28
  136. package/esm/components/QProgress/QProgress.vue.js +3 -3
  137. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  138. package/esm/components/QPropertyList/QPropertyList.vue.js +65 -55
  139. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +8 -4
  140. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  141. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +31 -28
  142. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
  143. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +13 -12
  144. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  145. package/esm/components/QPropertyList/QPropertyListRow.vue.js +41 -16
  146. package/esm/components/QPropertyList/constants.d.ts +2 -0
  147. package/esm/components/QPropertyList/constants.d.ts.map +1 -1
  148. package/esm/components/QPropertyList/constants.js +5 -1
  149. package/esm/components/QPropertyList/index.d.ts +16 -4
  150. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  151. package/esm/components/QSection/QSection.d.ts +2 -0
  152. package/esm/components/QSection/QSection.d.ts.map +1 -1
  153. package/esm/components/QSection/QSection.vue.js +19 -14
  154. package/esm/components/QSection/index.d.ts +2 -0
  155. package/esm/components/QSection/index.d.ts.map +1 -1
  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 -113
  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/QTextArea.d.ts.map +1 -1
  209. package/esm/components/QTextArea/QTextArea.vue.js +9 -7
  210. package/esm/components/QTextArea/index.d.ts +3 -3
  211. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  212. package/esm/components/QTextField/QTextField.vue.js +11 -9
  213. package/esm/components/QThemeProvider/QThemeProvider.vue.js +3 -3
  214. package/esm/components/QToast/QToast.d.ts +2 -1
  215. package/esm/components/QToast/QToast.d.ts.map +1 -1
  216. package/esm/components/QToast/QToast.vue.js +95 -78
  217. package/esm/components/QToast/QToaster.d.ts.map +1 -1
  218. package/esm/components/QToast/QToaster.vue.js +20 -19
  219. package/esm/components/QToast/constants.d.ts +3 -0
  220. package/esm/components/QToast/constants.d.ts.map +1 -1
  221. package/esm/components/QToast/constants.js +2 -2
  222. package/esm/components/QToast/index.d.ts +6 -0
  223. package/esm/components/QToast/index.d.ts.map +1 -1
  224. package/esm/components/QToast/types.d.ts +7 -1
  225. package/esm/components/QToast/types.d.ts.map +1 -1
  226. package/esm/components/QToggle/QToggle.d.ts.map +1 -1
  227. package/esm/components/QToggle/QToggle.vue.js +52 -15
  228. package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
  229. package/esm/components/QToggleGroup/QToggleGroup.vue.js +21 -20
  230. package/esm/components/QTooltip/QTooltip.vue.js +5 -5
  231. package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
  232. package/esm/components/__internal__/QChevron/QChevron.vue.js +16 -15
  233. package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
  234. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +19 -18
  235. package/esm/components/index.d.ts +2 -0
  236. package/esm/components/index.d.ts.map +1 -1
  237. package/esm/components/index.js +108 -103
  238. package/esm/composables/useColor/index.d.ts +2 -0
  239. package/esm/composables/useColor/index.d.ts.map +1 -1
  240. package/esm/composables/useColor/index.js +49 -39
  241. package/esm/composables/useColor/types.d.ts +15 -0
  242. package/esm/composables/useColor/types.d.ts.map +1 -1
  243. package/esm/composables/useEnabledSelection/index.d.ts +33 -0
  244. package/esm/composables/useEnabledSelection/index.d.ts.map +1 -0
  245. package/esm/composables/useEnabledSelection/index.js +15 -0
  246. package/esm/index.d.ts +3 -0
  247. package/esm/utils/color/contrast.d.ts +20 -0
  248. package/esm/utils/color/contrast.d.ts.map +1 -1
  249. package/esm/utils/color/contrast.js +24 -13
  250. package/esm/utils/color/merge.js +8 -8
  251. package/esm/utils/index.js +56 -54
  252. package/package.json +12 -6
  253. package/esm/components/QIcon/InlineSvg.d.ts +0 -110
  254. package/esm/components/QIcon/InlineSvg.d.ts.map +0 -1
  255. package/esm/components/QIcon/InlineSvg.js +0 -95
  256. package/esm/utils/time.d.ts +0 -36
  257. package/esm/utils/time.d.ts.map +0 -1
@@ -1,15 +1,17 @@
1
1
  import { provideDefaults as e } from "../../composables/defaults.js";
2
2
  import { useGroup as t } from "../../composables/useGroup/index.js";
3
- import { QOverflow as n } from "../QOverflow/index.js";
4
- import { TabsSymbol as r } from "./context.js";
5
- import { computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, mergeModels as u, nextTick as d, normalizeClass as f, normalizeStyle as p, onBeforeUnmount as m, openBlock as h, provide as g, ref as _, renderSlot as v, shallowRef as y, toRef as b, unref as x, useModel as S, useTemplateRef as C, watch as w, withCtx as T } from "vue";
3
+ import { useId as n } from "../../composables/useId/index.js";
4
+ import { QOverflow as r } from "../QOverflow/index.js";
5
+ import { useEnabledSelection as i } from "../../composables/useEnabledSelection/index.js";
6
+ import { TabsSymbol as a } from "./context.js";
7
+ import { computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeModels as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, openBlock as _, provide as v, ref as y, renderSlot as b, shallowRef as x, toRef as S, unref as C, useModel as w, useTemplateRef as T, watch as E, withCtx as D } from "vue";
6
8
  //#region src/components/QTabs/QTabs.vue?vue&type=script&setup=true&lang.ts
7
- var E = ["id"], D = {
9
+ var O = ["id"], k = {
8
10
  ref: "tabListHost",
9
11
  class: "q-tabs__list"
10
- }, O = { class: "q-tabs__panels" }, k = /*@__PURE__*/ l({
12
+ }, A = { class: "q-tabs__panels" }, j = /*@__PURE__*/ d({
11
13
  __name: "QTabs",
12
- props: /*@__PURE__*/ u({
14
+ props: /*@__PURE__*/ f({
13
15
  id: {},
14
16
  class: {},
15
17
  direction: { default: "horizontal" },
@@ -21,188 +23,181 @@ var E = ["id"], D = {
21
23
  modelModifiers: {}
22
24
  }),
23
25
  emits: ["update:modelValue"],
24
- setup(l) {
25
- let u = l, k = S(l, "modelValue"), A = C("tabListHost"), j = C("overflowRef"), M = i(() => j.value?.contentEl ?? null), N = y([]), P = _({
26
+ setup(d) {
27
+ let f = d, j = w(d, "modelValue"), M = n(S(f, "id")), N = T("tabListHost"), P = T("overflowRef"), F = o(() => P.value?.contentEl ?? null), I = x([]), L = y({
26
28
  width: "0",
27
29
  height: "0",
28
30
  transform: "translate(0, 0)",
29
31
  opacity: "0"
30
- }), F = _(!1), I = null, { active: L } = t({
31
- active: k,
32
+ }), R = y(!1), z = null, { active: B } = t({
33
+ active: j,
32
34
  required: !0
33
35
  });
34
- w(L, (e) => {
35
- k.value = e;
36
- }), e({ QTab: { disabled: b(u, "disabled") } });
37
- let R = i(() => [
36
+ E(B, (e) => {
37
+ j.value = e;
38
+ }), e({ QTab: { disabled: S(f, "disabled") } });
39
+ let V = o(() => [
38
40
  "q-tabs",
39
- `q-tabs--${u.direction}`,
40
- `q-tabs--${u.variant}`,
41
- `q-tabs--align-${u.align}`,
42
- F.value ? "q-tabs--indicator-ready" : void 0,
43
- u.class
41
+ `q-tabs--${f.direction}`,
42
+ `q-tabs--${f.variant}`,
43
+ `q-tabs--align-${f.align}`,
44
+ R.value ? "q-tabs--indicator-ready" : void 0,
45
+ f.class
44
46
  ]);
45
- function z() {
46
- let e = M.value;
47
- e && (e.setAttribute("role", "tablist"), e.setAttribute("aria-orientation", u.direction));
47
+ function H() {
48
+ let e = F.value;
49
+ e && (e.setAttribute("role", "tablist"), e.setAttribute("aria-orientation", f.direction));
48
50
  }
49
- function B(e) {
51
+ function U(e) {
50
52
  let t = e.tabRef.value;
51
53
  return t ? "$el" in t ? t.$el : t : null;
52
54
  }
53
- function V() {
54
- F.value = !1, P.value = {
55
- ...P.value,
55
+ function W() {
56
+ R.value = !1, L.value = {
57
+ ...L.value,
56
58
  opacity: "0",
57
59
  width: "0",
58
60
  height: "0"
59
61
  };
60
62
  }
61
- function H() {
62
- if (u.variant !== "line" || !k.value) {
63
- V();
63
+ function G() {
64
+ if (f.variant !== "line" || !j.value) {
65
+ W();
64
66
  return;
65
67
  }
66
- let e = N.value.find((e) => e.value === k.value);
68
+ let e = I.value.find((e) => e.value === j.value);
67
69
  if (!e) {
68
- V();
70
+ W();
69
71
  return;
70
72
  }
71
- let t = B(e);
73
+ let t = U(e);
72
74
  if (!t) {
73
- V();
75
+ W();
74
76
  return;
75
77
  }
76
- let n = u.direction === "horizontal", r = F.value;
77
- n ? P.value = {
78
+ let n = f.direction === "horizontal", r = R.value;
79
+ n ? L.value = {
78
80
  width: `${t.offsetWidth}px`,
79
81
  height: "var(--q-tabs-indicator-thickness)",
80
82
  transform: `translate(${t.offsetLeft}px, 0)`,
81
83
  opacity: "1"
82
- } : P.value = {
84
+ } : L.value = {
83
85
  width: "var(--q-tabs-indicator-thickness)",
84
86
  height: `${t.offsetHeight}px`,
85
87
  transform: `translate(0, ${t.offsetTop}px)`,
86
88
  opacity: "1"
87
- }, r || d(() => {
88
- P.value.opacity === "1" && (F.value = !0);
89
+ }, r || p(() => {
90
+ L.value.opacity === "1" && (R.value = !0);
89
91
  });
90
92
  }
91
- function U() {
92
- if (!k.value) return;
93
- let e = N.value.find((e) => e.value === k.value);
93
+ function K() {
94
+ if (!j.value) return;
95
+ let e = I.value.find((e) => e.value === j.value);
94
96
  if (!e) return;
95
- let t = B(e);
96
- t && j.value?.scrollElementIntoView(t);
97
+ let t = U(e);
98
+ t && P.value?.scrollElementIntoView(t);
97
99
  }
98
- function W() {
99
- if (u.variant !== "line") {
100
- I?.disconnect();
100
+ function q() {
101
+ if (f.variant !== "line") {
102
+ z?.disconnect();
101
103
  return;
102
104
  }
103
- I ? I.disconnect() : I = new ResizeObserver(() => {
104
- H();
105
+ z ? z.disconnect() : z = new ResizeObserver(() => {
106
+ G();
105
107
  });
106
- let e = A.value;
107
- e && I.observe(e);
108
- for (let e of N.value) {
109
- let t = B(e);
110
- t && I.observe(t);
108
+ let e = N.value;
109
+ e && z.observe(e);
110
+ for (let e of I.value) {
111
+ let t = U(e);
112
+ t && z.observe(t);
111
113
  }
112
114
  }
113
- function G() {
114
- return N.value.filter((e) => !x(e.disabled));
115
- }
116
- function K() {
117
- let e = G();
118
- e.length && (e.some((e) => e.value === k.value) || (k.value = e[0].value));
119
- }
120
- let q;
121
- function J() {
122
- q ||= d(() => {
123
- q = void 0, K();
115
+ let { enabledItems: J, ensureSelection: Y } = i(() => I.value, j), X;
116
+ function Z() {
117
+ X ||= p(() => {
118
+ X = void 0, Y();
124
119
  });
125
120
  }
126
- function Y(e) {
127
- if (N.value = [...N.value, e], !k.value) {
128
- K();
121
+ function Q(e) {
122
+ if (I.value = [...I.value, e], !j.value) {
123
+ Y();
129
124
  return;
130
125
  }
131
- J();
126
+ Z();
132
127
  }
133
- function X(e) {
134
- N.value = N.value.filter((t) => t.value !== e);
128
+ function $(e) {
129
+ I.value = I.value.filter((t) => t.value !== e);
135
130
  }
136
- function Z(e, t) {
131
+ function ee(e, t) {
137
132
  if (e === t) return;
138
- let n = N.value.findIndex((t) => t.value === e);
133
+ let n = I.value.findIndex((t) => t.value === e);
139
134
  if (n !== -1) {
140
- if (N.value = N.value.map((e, r) => r === n ? {
135
+ if (I.value = I.value.map((e, r) => r === n ? {
141
136
  ...e,
142
137
  value: t
143
- } : e), k.value === e || k.value === t) {
144
- k.value = t;
138
+ } : e), j.value === e || j.value === t) {
139
+ j.value = t;
145
140
  return;
146
141
  }
147
- K();
142
+ Y();
148
143
  }
149
144
  }
150
- function Q(e, t) {
151
- let n = G();
145
+ function te(e, t) {
146
+ let n = J.value;
152
147
  if (!n.length) return;
153
148
  let r = n.findIndex((t) => t.value === e), i = n[r === -1 ? 0 : (r + t + n.length) % n.length];
154
149
  i.select(), i.focus();
155
150
  }
156
- function $() {
157
- let e = G()[0];
151
+ function ne() {
152
+ let e = J.value[0];
158
153
  e && (e.select(), e.focus());
159
154
  }
160
- function ee() {
161
- let e = G(), t = e[e.length - 1];
155
+ function re() {
156
+ let e = J.value, t = e[e.length - 1];
162
157
  t && (t.select(), t.focus());
163
158
  }
164
- return w(() => N.value.map((e) => [e.value, x(e.disabled)]), () => J()), w(() => [
165
- k.value,
166
- N.value.length,
167
- u.direction,
168
- u.variant,
169
- u.align
170
- ], () => d(() => {
171
- H(), U();
172
- }), { immediate: !0 }), w(() => [N.value.length, u.variant], () => d(W), { immediate: !0 }), w(() => [M.value, u.direction], () => z(), {
159
+ return E(() => I.value.map((e) => [e.value, C(e.disabled)]), () => Z()), E(() => [
160
+ j.value,
161
+ I.value.length,
162
+ f.direction,
163
+ f.variant,
164
+ f.align
165
+ ], () => p(() => {
166
+ G(), K();
167
+ }), { immediate: !0 }), E(() => [I.value.length, f.variant], () => p(q), { immediate: !0 }), E(() => [F.value, f.direction], () => H(), {
173
168
  immediate: !0,
174
169
  flush: "post"
175
- }), m(() => {
176
- I?.disconnect(), I = null;
177
- }), g(r, {
178
- tabListEl: M,
179
- direction: i(() => u.direction),
180
- register: Y,
181
- unregister: X,
182
- updateValue: Z,
183
- focusAdjacent: Q,
184
- focusFirst: $,
185
- focusLast: ee
186
- }), (e, t) => (h(), o("div", {
187
- id: u.id,
188
- class: f(R.value)
189
- }, [s("div", D, [c(x(n), {
170
+ }), g(() => {
171
+ z?.disconnect(), z = null;
172
+ }), v(a, {
173
+ tabListEl: F,
174
+ direction: o(() => f.direction),
175
+ register: Q,
176
+ unregister: $,
177
+ updateValue: ee,
178
+ focusAdjacent: te,
179
+ focusFirst: ne,
180
+ focusLast: re
181
+ }), (e, t) => (_(), c("div", {
182
+ id: C(M),
183
+ class: m(V.value)
184
+ }, [l("div", k, [u(C(r), {
190
185
  ref_key: "overflowRef",
191
- ref: j,
186
+ ref: P,
192
187
  class: "q-tabs__overflow",
193
- direction: u.direction,
188
+ direction: f.direction,
194
189
  "scroll-mode": "item",
195
190
  "content-class": "q-tabs__tablist"
196
191
  }, {
197
- default: T(() => [u.variant === "line" ? (h(), o("div", {
192
+ default: D(() => [f.variant === "line" ? (_(), c("div", {
198
193
  key: 0,
199
194
  class: "q-tabs__indicator",
200
195
  "aria-hidden": "true",
201
- style: p(P.value)
202
- }, null, 4)) : a("v-if", !0)]),
196
+ style: h(L.value)
197
+ }, null, 4)) : s("v-if", !0)]),
203
198
  _: 1
204
- }, 8, ["direction"])], 512), s("div", O, [v(e.$slots, "default")])], 10, E));
199
+ }, 8, ["direction"])], 512), l("div", A, [b(e.$slots, "default")])], 10, O));
205
200
  }
206
201
  });
207
202
  //#endregion
208
- export { k as default };
203
+ export { j as default };
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef, InjectionKey, Ref } from 'vue';
2
- import { QTabsDirection } from './types';
2
+ import { QTabsDirection } from '.';
3
3
  /**
4
4
  * Metadata registered by each {@link QTab} with its parent {@link QTabs}.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;OAEG;IACH,MAAM,EAAE,GAAG,CAAC;QAAE,GAAG,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,WAAW,GAAG,IAAI,CAAC,CAAA;IAEvD;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IAC1B;;;;;OAKG;IACH,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAElC;;;;OAIG;IACH,SAAS,EAAE,WAAW,CAAC,cAAc,CAAC,CAAA;IAEtC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAEzC;;;;OAIG;IACH,UAAU,EAAE,CAAC,KA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AAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAEzC;;;;OAIG;IACH,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEnC;;;;;OAKG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAEzD;;;;;OAKG;IACH,aAAa,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAE5D;;OAEG;IACH,UAAU,EAAE,MAAM,IAAI,CAAA;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CAAoB,CAAA"}
@@ -79,7 +79,7 @@ export type QTabProps = QBaseComponentProps & {
79
79
  *
80
80
  * The asterisk is decorative (`aria-hidden`); {@link QRequiredIndicator}
81
81
  * with `announce` exposes the state to assistive tech via `.q-sr-only`
82
- * (from `texts.required`) and hosts may also set `aria-required`.
82
+ * (from `texts.required`). `aria-required` is not set: it is not allowed on `role="tab"`.
83
83
  *
84
84
  * @category Presentation
85
85
  */
@@ -23,8 +23,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
23
23
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
24
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
25
25
  }>, {
26
- wrap: "soft" | "hard" | "off";
27
26
  resize: "none" | "both" | "horizontal" | "vertical";
27
+ wrap: "soft" | "hard" | "off";
28
28
  rows: number;
29
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
30
30
  textareaRef: HTMLTextAreaElement;
@@ -1 +1 @@
1
- {"version":3,"file":"QTextArea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextArea/QTextArea.vue"],"names":[],"mappings":"AAiDA;AA4HC,OAAO,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BAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -49,13 +49,14 @@ var C = [
49
49
  }
50
50
  });
51
51
  b(w, (e) => T.value = e, { immediate: !0 });
52
- let E = e(g(c, "id")), D = r(() => c.readonly || c.disabled ? void 0 : c.placeholder), O = r(() => ({ input: c.autosize ? A : null })), k = p(), { triggerResize: A, stop: j } = n({
53
- element: r(() => c.autosize ? k.value : void 0),
52
+ let E = e(g(c, "id")), D = r(() => c.readonly || c.disabled ? void 0 : c.placeholder), O = r(() => `${E.value}_input`), k = r(() => ({ input: c.autosize ? j : null })), A = p(), { triggerResize: j, stop: M } = n({
53
+ element: r(() => c.autosize ? A.value : void 0),
54
54
  styleProp: "minHeight"
55
55
  });
56
- return d(j), (e, n) => (f(), i(_(t), {
56
+ return d(M), (e, n) => (f(), i(_(t), {
57
+ id: _(E),
57
58
  class: u(["q-text-area", c.class]),
58
- for: _(E),
59
+ for: O.value,
59
60
  label: c.label,
60
61
  "label-position": c.labelPosition,
61
62
  size: c.size,
@@ -66,9 +67,9 @@ var C = [
66
67
  "label.prepend": x(() => [m(e.$slots, "label.prepend")]),
67
68
  "label.append": x(() => [m(e.$slots, "label.append")]),
68
69
  default: x(() => [S(a("textarea", l({
69
- id: _(E),
70
+ id: O.value,
70
71
  ref_key: "textareaRef",
71
- ref: k,
72
+ ref: A,
72
73
  "onUpdate:modelValue": n[0] ||= (e) => T.value = e,
73
74
  class: "q-text-area__input",
74
75
  required: c.required,
@@ -80,7 +81,7 @@ var C = [
80
81
  cols: c.cols,
81
82
  resize: c.resize,
82
83
  wrap: c.wrap
83
- }, e.$attrs, h(O.value, !0)), null, 16, C), [[y, T.value]])]),
84
+ }, e.$attrs, h(k.value, !0)), null, 16, C), [[y, T.value]])]),
84
85
  _: 2
85
86
  }, [
86
87
  e.$slots.prepend ? {
@@ -99,6 +100,7 @@ var C = [
99
100
  key: "2"
100
101
  } : void 0
101
102
  ]), 1032, [
103
+ "id",
102
104
  "class",
103
105
  "for",
104
106
  "label",
@@ -25,8 +25,8 @@ declare const QTextArea: {
25
25
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
26
  "update:modelValue": (value: string) => any;
27
27
  }, import('vue').PublicProps, {
28
- wrap: "soft" | "hard" | "off";
29
28
  resize: "none" | "both" | "horizontal" | "vertical";
29
+ wrap: "soft" | "hard" | "off";
30
30
  rows: number;
31
31
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
32
32
  textareaRef: HTMLTextAreaElement;
@@ -61,8 +61,8 @@ declare const QTextArea: {
61
61
  }> & Readonly<{
62
62
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
63
63
  }>, {}, {}, {}, {}, {
64
- wrap: "soft" | "hard" | "off";
65
64
  resize: "none" | "both" | "horizontal" | "vertical";
65
+ wrap: "soft" | "hard" | "off";
66
66
  rows: number;
67
67
  }>;
68
68
  __isFragment?: never;
@@ -94,8 +94,8 @@ declare const QTextArea: {
94
94
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
95
95
  "update:modelValue": (value: string) => any;
96
96
  }, string, {
97
- wrap: "soft" | "hard" | "off";
98
97
  resize: "none" | "both" | "horizontal" | "vertical";
98
+ wrap: "soft" | "hard" | "off";
99
99
  rows: number;
100
100
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
101
101
  $slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AAqDA;AAsIC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAKxC,KAAK,WAAW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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAoE8nd,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;EAlDnxd;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+Byod,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;OArBlxd,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"}
@@ -44,17 +44,18 @@ var S = [
44
44
  }
45
45
  });
46
46
  y(E, (e) => D.value = e, { immediate: !0 });
47
- let O = e(m(w, "id")), k = _("field"), A = _("input"), j = r(() => w.readonly || w.disabled ? void 0 : w.placeholder), M = r(() => w.clearable && !w.readonly && !w.disabled), N = r(() => M.value && E.value);
48
- function P(e) {
49
- M.value && (E.value = "", T("click:clear", e));
47
+ let O = e(m(w, "id")), k = _("field"), A = _("input"), j = r(() => `${O.value}_input`), M = r(() => w.readonly || w.disabled ? void 0 : w.placeholder), N = r(() => w.clearable && !w.readonly && !w.disabled), P = r(() => N.value && E.value);
48
+ function F(e) {
49
+ N.value && (E.value = "", T("click:clear", e));
50
50
  }
51
51
  return l({
52
52
  fieldRef: r(() => k.value?.fieldRef),
53
53
  inputRef: A
54
54
  }), (e, r) => (f(), i(h(t), {
55
+ id: h(O),
55
56
  ref: "field",
56
57
  class: d(["q-text-field", w.class]),
57
- for: h(O),
58
+ for: j.value,
58
59
  label: w.label,
59
60
  "label-position": w.labelPosition,
60
61
  size: w.size,
@@ -66,14 +67,14 @@ var S = [
66
67
  "label.prepend": b(() => [p(e.$slots, "label.prepend")]),
67
68
  "label.append": b(() => [p(e.$slots, "label.append")]),
68
69
  default: b(() => [x(o("input", u({
69
- id: h(O),
70
+ id: j.value,
70
71
  ref: "input",
71
72
  "onUpdate:modelValue": r[0] ||= (e) => D.value = e,
72
73
  class: "q-text-field__input",
73
74
  type: w.type,
74
75
  maxlength: w.maxLength,
75
76
  required: w.required,
76
- placeholder: j.value,
77
+ placeholder: M.value,
77
78
  readonly: w.readonly,
78
79
  disabled: w.disabled
79
80
  }, e.$attrs), null, 16, S), [[v, D.value]])]),
@@ -84,13 +85,13 @@ var S = [
84
85
  fn: b(() => [p(e.$slots, "prepend")]),
85
86
  key: "0"
86
87
  } : void 0,
87
- e.$slots.append || N.value ? {
88
+ e.$slots.append || P.value ? {
88
89
  name: "append",
89
- fn: b(() => [p(e.$slots, "append"), N.value ? (f(), i(h(n), {
90
+ fn: b(() => [p(e.$slots, "append"), P.value ? (f(), i(h(n), {
90
91
  key: 0,
91
92
  "data-testid": "q-text-field__clear-button",
92
93
  texts: w.texts,
93
- onClick: P
94
+ onClick: F
94
95
  }, null, 8, ["texts"])) : a("v-if", !0)]),
95
96
  key: "1"
96
97
  } : void 0,
@@ -100,6 +101,7 @@ var S = [
100
101
  key: "2"
101
102
  } : void 0
102
103
  ]), 1032, [
104
+ "id",
103
105
  "class",
104
106
  "for",
105
107
  "label",
@@ -1,5 +1,5 @@
1
- import { provideTheme as e } from "../../composables/theme.js";
2
- import { useId as t } from "../../composables/useId/index.js";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { provideTheme as t } from "../../composables/theme.js";
3
3
  import { createElementBlock as n, defineComponent as r, normalizeClass as i, onBeforeUnmount as a, openBlock as o, renderSlot as s, toRef as c, unref as l, watchEffect as u } from "vue";
4
4
  //#region src/components/QThemeProvider/QThemeProvider.vue?vue&type=script&setup=true&lang.ts
5
5
  var d = ["id"], f = /*@__PURE__*/ r({
@@ -10,7 +10,7 @@ var d = ["id"], f = /*@__PURE__*/ r({
10
10
  theme: {}
11
11
  },
12
12
  setup(r) {
13
- let f = r, { class: p, css: m } = e(c(f, "theme")), h = t(c(f, "id")), g = null, _ = null;
13
+ let f = r, { class: p, css: m } = t(c(f, "theme")), h = e(c(f, "id")), g = null, _ = null;
14
14
  return u(() => {
15
15
  if (m.value) {
16
16
  let e = p.value;
@@ -1,4 +1,4 @@
1
- import { DEFAULT_ICONS } from './constants';
1
+ import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
2
2
  import { QToastProps } from '.';
3
3
  type __VLS_Props = QToastProps & {};
4
4
  declare function __VLS_template(): {
@@ -23,6 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
23
23
  color: string;
24
24
  elevation: import('..').QCardElevation;
25
25
  icons: typeof DEFAULT_ICONS;
26
+ texts: typeof DEFAULT_TEXTS;
26
27
  entryKey: string;
27
28
  timeout: number;
28
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"QToast.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToast.vue"],"names":[],"mappings":"AAwEA;AA0PC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAc3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAA;AAMpC,KAAK,WAAW,GAAG,WAAW,GAAG,EAG9B,CAAC;AAiKL,iBAAS,cAAc;WAqOT,OAAO,IAA6B;;iCAdZ,GAAG;gCACJ,GAAG;yBACV,GAAG;yBAEH,GAAG;yBADH,GAAG;;;;EAgBhC;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;cAnaN,MAAM;;6EA4anB,CAAC;wBACkB,uBA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