@quidgest/ui 0.26.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 (247) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/json/api.json +487 -155
  3. package/dist/manifest/components.json +3 -0
  4. package/dist/ui.css +1017 -142
  5. package/dist/ui.esm.js +988 -939
  6. package/dist/ui.js +1229 -1183
  7. package/dist/ui.min.css +1 -1
  8. package/dist/ui.min.js +1229 -1183
  9. package/dist/ui.scss +1267 -158
  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.map +1 -1
  152. package/esm/components/QSection/QSection.vue.js +19 -18
  153. package/esm/components/QSelect/QSelect.d.ts +6 -4
  154. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  155. package/esm/components/QSelect/QSelect.vue.js +129 -124
  156. package/esm/components/QSelect/index.d.ts +3 -2
  157. package/esm/components/QSelect/index.d.ts.map +1 -1
  158. package/esm/components/QSidebar/QSidebar.d.ts +1 -1
  159. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  160. package/esm/components/QSidebar/QSidebar.vue.js +68 -67
  161. package/esm/components/QSidebar/QSidebarItem.d.ts +1 -1
  162. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  163. package/esm/components/QSidebar/QSidebarItem.vue.js +8 -8
  164. package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
  165. package/esm/components/QSidebar/QSidebarPanel.vue.js +40 -36
  166. package/esm/components/QSidebar/context.d.ts +1 -1
  167. package/esm/components/QSidebar/context.d.ts.map +1 -1
  168. package/esm/components/QSidebar/types.d.ts +8 -0
  169. package/esm/components/QSidebar/types.d.ts.map +1 -1
  170. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  171. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +15 -14
  172. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  173. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
  174. package/esm/components/QSteps/QStepHeader.d.ts +58 -0
  175. package/esm/components/QSteps/QStepHeader.d.ts.map +1 -0
  176. package/esm/components/QSteps/QStepHeader.vue.js +49 -0
  177. package/esm/components/QSteps/QStepHeader2.vue.js +5 -0
  178. package/esm/components/QSteps/QSteps.d.ts +269 -0
  179. package/esm/components/QSteps/QSteps.d.ts.map +1 -0
  180. package/esm/components/QSteps/QSteps.vue.js +260 -0
  181. package/esm/components/QSteps/QSteps2.vue.js +5 -0
  182. package/esm/components/QSteps/QStepsNav.d.ts +59 -0
  183. package/esm/components/QSteps/QStepsNav.d.ts.map +1 -0
  184. package/esm/components/QSteps/QStepsNav.vue.js +42 -0
  185. package/esm/components/QSteps/QStepsNav2.vue.js +5 -0
  186. package/esm/components/QSteps/constants.d.ts +28 -0
  187. package/esm/components/QSteps/constants.d.ts.map +1 -0
  188. package/esm/components/QSteps/constants.js +16 -0
  189. package/esm/components/QSteps/index.d.ts +228 -0
  190. package/esm/components/QSteps/index.d.ts.map +1 -0
  191. package/esm/components/QSteps/index.js +6 -0
  192. package/esm/components/QSteps/types.d.ts +190 -0
  193. package/esm/components/QSteps/types.d.ts.map +1 -0
  194. package/esm/components/QSwitch/QSwitch.vue.js +3 -3
  195. package/esm/components/QTabs/QTab.d.ts +1 -1
  196. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  197. package/esm/components/QTabs/QTab.vue.js +10 -12
  198. package/esm/components/QTabs/QTabs.d.ts +1 -1
  199. package/esm/components/QTabs/QTabs.d.ts.map +1 -1
  200. package/esm/components/QTabs/QTabs.vue.js +108 -107
  201. package/esm/components/QTabs/context.d.ts +1 -1
  202. package/esm/components/QTabs/context.d.ts.map +1 -1
  203. package/esm/components/QTabs/types.d.ts +1 -1
  204. package/esm/components/QTextArea/QTextArea.d.ts +1 -1
  205. package/esm/components/QTextArea/index.d.ts +3 -3
  206. package/esm/components/QThemeProvider/QThemeProvider.vue.js +3 -3
  207. package/esm/components/QToast/QToast.d.ts +2 -1
  208. package/esm/components/QToast/QToast.d.ts.map +1 -1
  209. package/esm/components/QToast/QToast.vue.js +95 -78
  210. package/esm/components/QToast/QToaster.d.ts.map +1 -1
  211. package/esm/components/QToast/QToaster.vue.js +20 -19
  212. package/esm/components/QToast/constants.d.ts +3 -0
  213. package/esm/components/QToast/constants.d.ts.map +1 -1
  214. package/esm/components/QToast/constants.js +2 -2
  215. package/esm/components/QToast/index.d.ts +6 -0
  216. package/esm/components/QToast/index.d.ts.map +1 -1
  217. package/esm/components/QToast/types.d.ts +7 -1
  218. package/esm/components/QToast/types.d.ts.map +1 -1
  219. package/esm/components/QToggle/QToggle.d.ts.map +1 -1
  220. package/esm/components/QToggle/QToggle.vue.js +52 -15
  221. package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
  222. package/esm/components/QToggleGroup/QToggleGroup.vue.js +21 -20
  223. package/esm/components/QTooltip/QTooltip.vue.js +5 -5
  224. package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
  225. package/esm/components/__internal__/QChevron/QChevron.vue.js +16 -15
  226. package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
  227. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +19 -18
  228. package/esm/components/index.d.ts +2 -0
  229. package/esm/components/index.d.ts.map +1 -1
  230. package/esm/components/index.js +108 -103
  231. package/esm/composables/useColor/index.d.ts +2 -0
  232. package/esm/composables/useColor/index.d.ts.map +1 -1
  233. package/esm/composables/useColor/index.js +49 -39
  234. package/esm/composables/useColor/types.d.ts +15 -0
  235. package/esm/composables/useColor/types.d.ts.map +1 -1
  236. package/esm/index.d.ts +3 -0
  237. package/esm/utils/color/contrast.d.ts +20 -0
  238. package/esm/utils/color/contrast.d.ts.map +1 -1
  239. package/esm/utils/color/contrast.js +24 -13
  240. package/esm/utils/color/merge.js +8 -8
  241. package/esm/utils/index.js +56 -54
  242. package/package.json +12 -6
  243. package/esm/components/QIcon/InlineSvg.d.ts +0 -110
  244. package/esm/components/QIcon/InlineSvg.d.ts.map +0 -1
  245. package/esm/components/QIcon/InlineSvg.js +0 -95
  246. package/esm/utils/time.d.ts +0 -36
  247. package/esm/utils/time.d.ts.map +0 -1
@@ -1,8 +1,9 @@
1
- import { useColor as e } from "../../composables/useColor/index.js";
2
- import { QIconFont as t, QIconImg as n, QIconSvg as r } from "./index.js";
3
- import { computed as i, createBlock as a, defineComponent as o, normalizeClass as s, normalizeStyle as c, openBlock as l, resolveDynamicComponent as u, toRef as d } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { useColor as t } from "../../composables/useColor/index.js";
3
+ import { QIconFont as n, QIconImg as r, QIconSvg as i } from "./index.js";
4
+ import { computed as a, createBlock as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, openBlock as u, resolveDynamicComponent as d, toRef as f, unref as p } from "vue";
4
5
  //#region src/components/QIcon/QIcon.vue?vue&type=script&setup=true&lang.ts
5
- var f = /*@__PURE__*/ o({
6
+ var m = /*@__PURE__*/ s({
6
7
  __name: "QIcon",
7
8
  props: {
8
9
  id: {},
@@ -12,28 +13,28 @@ var f = /*@__PURE__*/ o({
12
13
  color: {},
13
14
  type: { default: "svg" }
14
15
  },
15
- setup(o) {
16
- let f = o, p = i(() => {
17
- switch (f.type) {
18
- case "svg": return r;
19
- case "font": return t;
20
- case "img": return n;
16
+ setup(s) {
17
+ let m = s, h = e(f(m, "id")), g = a(() => {
18
+ switch (m.type) {
19
+ case "svg": return i;
20
+ case "font": return n;
21
+ case "img": return r;
21
22
  default: return;
22
23
  }
23
- }), { style: m } = e(d(f, "color")), h = i(() => {
24
- let e = f.size === void 0 ? void 0 : `${f.size}rem`, t = f.type === "font";
24
+ }), { style: _ } = t(f(m, "color")), v = a(() => {
25
+ let e = m.size === void 0 ? void 0 : `${m.size}rem`, t = m.type === "font";
25
26
  return {
26
27
  width: t ? void 0 : e,
27
28
  height: t ? void 0 : e,
28
29
  "font-size": t ? e : void 0,
29
- color: f.color !== void 0 && f.color !== "primary" ? m.value?.mainColor : void 0
30
+ color: m.color !== void 0 && m.color !== "primary" ? _.value?.mainColor : void 0
30
31
  };
31
32
  });
32
- return (e, t) => (l(), a(u(p.value), {
33
- id: f.id,
34
- class: s(f.class),
35
- icon: f.icon,
36
- style: c(h.value)
33
+ return (e, t) => (u(), o(d(g.value), {
34
+ id: p(h),
35
+ class: c(m.class),
36
+ icon: m.icon,
37
+ style: l(v.value)
37
38
  }, null, 8, [
38
39
  "id",
39
40
  "class",
@@ -43,4 +44,4 @@ var f = /*@__PURE__*/ o({
43
44
  }
44
45
  });
45
46
  //#endregion
46
- export { f as default };
47
+ export { m as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont.vue"],"names":[],"mappings":"AAMA;AA+BC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;;;;AAgExC,wBAQG"}
1
+ {"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont.vue"],"names":[],"mappings":"AAMA;AAuCC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;;;;AAmExC,wBAQG"}
@@ -1,6 +1,7 @@
1
- import { computed as e, createElementBlock as t, defineComponent as n, normalizeClass as r, openBlock as i } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { computed as t, createElementBlock as n, defineComponent as r, normalizeClass as i, openBlock as a, toRef as o, unref as s } from "vue";
2
3
  //#region src/components/QIcon/QIconFont.vue?vue&type=script&setup=true&lang.ts
3
- var a = ["id"], o = /*@__PURE__*/ n({
4
+ var c = ["id"], l = /*@__PURE__*/ r({
4
5
  __name: "QIconFont",
5
6
  props: {
6
7
  id: {},
@@ -9,19 +10,19 @@ var a = ["id"], o = /*@__PURE__*/ n({
9
10
  variant: {},
10
11
  library: { default: "" }
11
12
  },
12
- setup(n) {
13
- let o = n, s = e(() => o.variant ? `${o.library}-${o.variant}` : o.library), c = e(() => o.library && o.icon ? `${o.library}-${o.icon}` : o.icon);
14
- return (e, n) => (i(), t("i", {
15
- id: o.id,
16
- class: r([
13
+ setup(r) {
14
+ let l = r, u = e(o(l, "id")), d = t(() => l.variant ? `${l.library}-${l.variant}` : l.library), f = t(() => l.library && l.icon ? `${l.library}-${l.icon}` : l.icon);
15
+ return (e, t) => (a(), n("i", {
16
+ id: s(u),
17
+ class: i([
17
18
  "q-icon",
18
19
  "q-icon__font",
19
- s.value,
20
- c.value,
21
- o.class
20
+ d.value,
21
+ f.value,
22
+ l.class
22
23
  ])
23
- }, null, 10, a));
24
+ }, null, 10, c));
24
25
  }
25
26
  });
26
27
  //#endregion
27
- export { o as default };
28
+ export { l as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QIconImg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconImg.vue"],"names":[],"mappings":"AAMA;AAgBC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;;AA4CxC,wBAOG"}
1
+ {"version":3,"file":"QIconImg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconImg.vue"],"names":[],"mappings":"AAMA;AA2BC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;;AAkDxC,wBAOG"}
@@ -1,24 +1,25 @@
1
- import { createElementBlock as e, defineComponent as t, normalizeClass as n, openBlock as r } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { createElementBlock as t, defineComponent as n, normalizeClass as r, openBlock as i, toRef as a, unref as o } from "vue";
2
3
  //#region src/components/QIcon/QIconImg.vue?vue&type=script&setup=true&lang.ts
3
- var i = ["id", "src"], a = /*@__PURE__*/ t({
4
+ var s = ["id", "src"], c = /*@__PURE__*/ n({
4
5
  __name: "QIconImg",
5
6
  props: {
6
7
  id: {},
7
8
  class: {},
8
9
  icon: {}
9
10
  },
10
- setup(t) {
11
- let a = t;
12
- return (t, o) => (r(), e("img", {
13
- id: a.id,
14
- src: a.icon,
15
- class: n([
11
+ setup(n) {
12
+ let c = n, l = e(a(c, "id"));
13
+ return (e, n) => (i(), t("img", {
14
+ id: o(l),
15
+ src: c.icon,
16
+ class: r([
16
17
  "q-icon",
17
18
  "q-icon__img",
18
- a.class
19
+ c.class
19
20
  ])
20
- }, null, 10, i));
21
+ }, null, 10, s));
21
22
  }
22
23
  });
23
24
  //#endregion
24
- export { a as default };
25
+ export { c as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QIconSvg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconSvg.vue"],"names":[],"mappings":"AASA;AAwCC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;;;;;;;AA2FvC,wBASG"}
1
+ {"version":3,"file":"QIconSvg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconSvg.vue"],"names":[],"mappings":"AASA;AAmDC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;;;;;;;AAiGvC,wBASG"}
@@ -1,7 +1,8 @@
1
- import e from "./InlineSvg.js";
2
- import { createBlock as t, defineComponent as n, normalizeClass as r, openBlock as i, unref as a } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import t from "./QSvgSymbol2.vue.js";
3
+ import { createBlock as n, defineComponent as r, normalizeClass as i, openBlock as a, toRef as o, unref as s } from "vue";
3
4
  //#region src/components/QIcon/QIconSvg.vue?vue&type=script&setup=true&lang.ts
4
- var o = /*@__PURE__*/ n({
5
+ var c = /*@__PURE__*/ r({
5
6
  __name: "QIconSvg",
6
7
  props: {
7
8
  id: {},
@@ -10,25 +11,25 @@ var o = /*@__PURE__*/ n({
10
11
  bundle: { default: "" }
11
12
  },
12
13
  emits: ["loaded", "unloaded"],
13
- setup(n, { emit: o }) {
14
- let s = n, c = o;
15
- function l(e) {
16
- c("loaded", e);
14
+ setup(r, { emit: c }) {
15
+ let l = r, u = c, d = e(o(l, "id"));
16
+ function f(e) {
17
+ u("loaded", e);
17
18
  }
18
- function u() {
19
- c("unloaded");
19
+ function p() {
20
+ u("unloaded");
20
21
  }
21
- return (n, o) => (i(), t(a(e), {
22
- id: s.id,
23
- class: r([
22
+ return (e, r) => (a(), n(t, {
23
+ id: s(d),
24
+ class: i([
24
25
  "q-icon",
25
26
  "q-icon__svg",
26
- s.class
27
+ l.class
27
28
  ]),
28
- src: s.bundle,
29
- symbol: s.icon,
30
- onLoaded: l,
31
- onUnloaded: u
29
+ src: l.bundle,
30
+ symbol: l.icon,
31
+ onLoaded: f,
32
+ onUnloaded: p
32
33
  }, null, 8, [
33
34
  "id",
34
35
  "class",
@@ -38,4 +39,4 @@ var o = /*@__PURE__*/ n({
38
39
  }
39
40
  });
40
41
  //#endregion
41
- export { o as default };
42
+ export { c as default };
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Props for QSvgSymbol.
3
+ * `id` and `class` stay fallthrough attributes so they can be copied onto the rendered SVG.
4
+ */
5
+ type QSvgSymbolProps = {
6
+ /**
7
+ * The source URL of the SVG bundle.
8
+ *
9
+ * @category Configuration
10
+ */
11
+ src: string;
12
+ /**
13
+ * The ID of the SVG symbol to be rendered.
14
+ *
15
+ * @category Identification
16
+ */
17
+ symbol?: string;
18
+ /**
19
+ * The title to be associated with the SVG.
20
+ *
21
+ * @category Accessibility
22
+ */
23
+ title?: string;
24
+ /**
25
+ * A function to transform the source SVG element before rendering.
26
+ * If not provided, no transformation will be applied.
27
+ *
28
+ * @category Behavior
29
+ */
30
+ transformSource?: (svg: SVGElement) => SVGElement;
31
+ /**
32
+ * Determines whether to keep the existing SVG content visible during the loading of a new SVG.
33
+ * Set to `false` to hide content during loading.
34
+ *
35
+ * @category Behavior
36
+ */
37
+ keepDuringLoading?: boolean;
38
+ };
39
+ declare const _default: import('vue').DefineComponent<QSvgSymbolProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
40
+ unloaded: () => any;
41
+ loaded: (value: Element) => any;
42
+ error: (error: unknown) => any;
43
+ }, string, import('vue').PublicProps, Readonly<QSvgSymbolProps> & Readonly<{
44
+ onUnloaded?: (() => any) | undefined;
45
+ onLoaded?: ((value: Element) => any) | undefined;
46
+ onError?: ((error: unknown) => any) | undefined;
47
+ }>, {
48
+ symbol: string;
49
+ title: string;
50
+ transformSource: (svg: SVGElement) => SVGElement;
51
+ keepDuringLoading: boolean;
52
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
53
+ export default _default;
54
+ //# sourceMappingURL=QSvgSymbol.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QSvgSymbol.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QSvgSymbol.vue"],"names":[],"mappings":"AASA;AAuRC;;;GAGG;AACH,KAAK,eAAe,GAAG;IACtB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;OAKG;IACH,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,UAAU,CAAA;IAEjD;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA;;;;;;;;;;YAxBS,MAAM;WAOP,MAAM;qBAQI,CAAC,GAAG,EAAE,UAAU,KAAK,UAAU;uBAQ7B,OAAO;;AA8Q7B,wBAQG"}
@@ -0,0 +1,88 @@
1
+ import { computed as e, createCommentVNode as t, createElementBlock as n, defineComponent as r, getCurrentInstance as i, mergeProps as a, nextTick as o, normalizeProps as s, onMounted as c, openBlock as l, ref as u, unref as d, useAttrs as f, watch as p } from "vue";
2
+ //#region src/components/QIcon/QSvgSymbol.vue?vue&type=script&setup=true&lang.ts
3
+ var m = ["innerHTML"], h = /*@__PURE__*/ r({
4
+ name: "QSvgSymbol",
5
+ inheritAttrs: !1,
6
+ __name: "QSvgSymbol",
7
+ props: {
8
+ src: {},
9
+ symbol: { default: "" },
10
+ title: { default: "" },
11
+ transformSource: {
12
+ type: Function,
13
+ default: void 0
14
+ },
15
+ keepDuringLoading: {
16
+ type: Boolean,
17
+ default: !0
18
+ }
19
+ },
20
+ emits: [
21
+ "loaded",
22
+ "unloaded",
23
+ "error"
24
+ ],
25
+ setup(r, { emit: h }) {
26
+ let g = r, _ = h, v = {}, y = f(), b = i(), x = u(null);
27
+ function S(e) {
28
+ let t = e;
29
+ if (g.symbol) {
30
+ let n = e.getElementById(g.symbol);
31
+ if (!n) return null;
32
+ t = n;
33
+ }
34
+ return g.transformSource && (t = g.transformSource(t.cloneNode(!0))), g.title && (g.transformSource || (t = t.cloneNode(!0)), A(t, g.title)), t;
35
+ }
36
+ let C = e(() => x.value ? S(x.value) : null), w = e(() => x.value !== null && C.value === null), T = e(() => {
37
+ if (!x.value || !C.value) return {};
38
+ let e = {};
39
+ return D(e, x.value), D(e, C.value), O(e, y), y.id || delete e.id, e;
40
+ });
41
+ async function E(e) {
42
+ try {
43
+ v[e] || (v[e] = j(k(e))), x.value && v[e].getIsPending() && !g.keepDuringLoading && (x.value = null, _("unloaded")), x.value = await v[e], await o();
44
+ let t = b?.proxy?.$el;
45
+ t instanceof Element && _("loaded", t);
46
+ } catch (t) {
47
+ x.value && (x.value = null, _("unloaded")), delete v[e], _("error", t);
48
+ }
49
+ }
50
+ c(() => {
51
+ E(g.src);
52
+ }), p(() => g.src, (e) => {
53
+ E(e);
54
+ });
55
+ function D(e, t) {
56
+ let n = t.attributes;
57
+ if (n) for (let t of n) e[t.name] = t.value;
58
+ }
59
+ function O(e, t) {
60
+ for (let [n, r] of Object.entries(t)) r !== !1 && r != null && (e[n] = r);
61
+ }
62
+ async function k(e) {
63
+ let t = await fetch(e);
64
+ if (!t.ok) throw Error("Error loading SVG");
65
+ let n = await t.text(), r = new DOMParser().parseFromString(n, "text/xml").getElementsByTagName("svg")[0];
66
+ if (!r) throw Error("Loaded file is not a valid SVG");
67
+ return r;
68
+ }
69
+ function A(e, t) {
70
+ let n = e.getElementsByTagName("title");
71
+ if (n.length) n[0].textContent = t;
72
+ else {
73
+ let n = document.createElementNS("http://www.w3.org/2000/svg", "title");
74
+ n.textContent = t, e.insertBefore(n, e.firstChild);
75
+ }
76
+ }
77
+ function j(e) {
78
+ if (e.getIsPending) return e;
79
+ let t = !0, n = e.then((e) => (t = !1, e), (e) => {
80
+ throw t = !1, e;
81
+ });
82
+ return n.getIsPending = () => t, n;
83
+ }
84
+ return (e, r) => w.value ? (l(), n("div", s(a({ key: 0 }, d(y))), null, 16)) : C.value ? (l(), n("svg", a({ key: 1 }, T.value, { innerHTML: C.value.innerHTML }), null, 16, m)) : t("v-if", !0);
85
+ }
86
+ });
87
+ //#endregion
88
+ export { h as default };
@@ -0,0 +1,5 @@
1
+ import e from "./QSvgSymbol.vue.js";
2
+ //#region src/components/QIcon/QSvgSymbol.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QInputGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/QInputGroup.vue"],"names":[],"mappings":"AA2CA;AAoFC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAA;AA8B1C,iBAAS,cAAc;WA2HT,OAAO,IAA6B;;iCAhBb,GAAG;gCACJ,GAAG;yBACT,GAAG;yBACH,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA2DyrkB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EA3C90kB;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+BoskB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OArB70kB,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":"QInputGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/QInputGroup.vue"],"names":[],"mappings":"AA2CA;AAwFC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAA;AAgC1C,iBAAS,cAAc;WA2HT,OAAO,IAA6B;;iCAhBb,GAAG;gCACJ,GAAG;yBACT,GAAG;yBACH,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4Do+jB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EA5CznkB;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+B++jB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OArBxnkB,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,15 +1,16 @@
1
1
  import { provideDefaults as e } from "../../composables/defaults.js";
2
- import { QIcon as t } from "../QIcon/index.js";
3
- import { QField as n } from "../QField/index.js";
4
- import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createSlots as s, createVNode as c, defineComponent as l, guardReactiveProps as u, normalizeClass as d, normalizeProps as f, openBlock as p, renderSlot as m, unref as h, useTemplateRef as g, withCtx as _ } from "vue";
2
+ import { useId as t } from "../../composables/useId/index.js";
3
+ import { QIcon as n } from "../QIcon/index.js";
4
+ import { QField as r } from "../QField/index.js";
5
+ import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createSlots as c, createVNode as l, defineComponent as u, guardReactiveProps as d, normalizeClass as f, normalizeProps as p, openBlock as m, renderSlot as h, toRef as g, unref as _, useTemplateRef as v, withCtx as y } from "vue";
5
6
  //#region src/components/QInputGroup/QInputGroup.vue?vue&type=script&setup=true&lang.ts
6
- var v = {
7
+ var b = {
7
8
  key: 0,
8
9
  class: "q-input-group__prepend"
9
- }, y = { key: 0 }, b = {
10
+ }, x = { key: 0 }, S = {
10
11
  key: 1,
11
12
  class: "q-input-group__append"
12
- }, x = { key: 0 }, S = /*@__PURE__*/ l({
13
+ }, C = { key: 0 }, w = /*@__PURE__*/ u({
13
14
  __name: "QInputGroup",
14
15
  props: {
15
16
  id: {},
@@ -25,34 +26,34 @@ var v = {
25
26
  prependIcon: {},
26
27
  appendIcon: {}
27
28
  },
28
- setup(l, { expose: S }) {
29
- let C = l;
29
+ setup(u, { expose: w }) {
30
+ let T = u, E = t(g(T, "id"));
30
31
  e({ QField: { size: "block" } });
31
- let w = g("field");
32
- return S({ fieldRef: r(() => w.value?.fieldRef) }), (e, r) => (p(), i(h(n), {
33
- id: C.id,
32
+ let D = v("field");
33
+ return w({ fieldRef: i(() => D.value?.fieldRef) }), (e, t) => (m(), a(_(r), {
34
+ id: _(E),
34
35
  ref: "field",
35
- class: d(["q-input-group", C.class]),
36
- for: C.for,
37
- label: C.label,
38
- "label-position": C.labelPosition,
39
- required: C.required,
40
- size: C.size,
41
- readonly: C.readonly,
42
- disabled: C.disabled,
43
- invalid: C.invalid
44
- }, s({
45
- "label.prepend": _(() => [m(e.$slots, "label.prepend")]),
46
- "label.append": _(() => [m(e.$slots, "label.append")]),
47
- default: _(() => [
48
- e.$slots.prepend || C.prependIcon ? (p(), o("div", v, [C.prependIcon ? (p(), o("span", y, [c(h(t), f(u(C.prependIcon)), null, 16)])) : a("v-if", !0), m(e.$slots, "prepend")])) : a("v-if", !0),
49
- m(e.$slots, "default"),
50
- e.$slots.append || C.appendIcon ? (p(), o("div", b, [C.appendIcon ? (p(), o("span", x, [c(h(t), f(u(C.appendIcon)), null, 16)])) : a("v-if", !0), m(e.$slots, "append")])) : a("v-if", !0)
36
+ class: f(["q-input-group", T.class]),
37
+ for: T.for,
38
+ label: T.label,
39
+ "label-position": T.labelPosition,
40
+ required: T.required,
41
+ size: T.size,
42
+ readonly: T.readonly,
43
+ disabled: T.disabled,
44
+ invalid: T.invalid
45
+ }, c({
46
+ "label.prepend": y(() => [h(e.$slots, "label.prepend")]),
47
+ "label.append": y(() => [h(e.$slots, "label.append")]),
48
+ default: y(() => [
49
+ e.$slots.prepend || T.prependIcon ? (m(), s("div", b, [T.prependIcon ? (m(), s("span", x, [l(_(n), p(d(T.prependIcon)), null, 16)])) : o("v-if", !0), h(e.$slots, "prepend")])) : o("v-if", !0),
50
+ h(e.$slots, "default"),
51
+ e.$slots.append || T.appendIcon ? (m(), s("div", S, [T.appendIcon ? (m(), s("span", C, [l(_(n), p(d(T.appendIcon)), null, 16)])) : o("v-if", !0), h(e.$slots, "append")])) : o("v-if", !0)
51
52
  ]),
52
53
  _: 2
53
54
  }, [e.$slots.extras ? {
54
55
  name: "extras",
55
- fn: _(() => [m(e.$slots, "extras")]),
56
+ fn: y(() => [h(e.$slots, "extras")]),
56
57
  key: "0"
57
58
  } : void 0]), 1032, [
58
59
  "id",
@@ -69,4 +70,4 @@ var v = {
69
70
  }
70
71
  });
71
72
  //#endregion
72
- export { S as default };
73
+ export { w as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/QLabel.vue"],"names":[],"mappings":"AAiBA;AA6CC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAA;AAmBrC,iBAAS,cAAc;WAkDT,OAAO,IAA6B;;yBAbrB,GAAG;yBACH,GAAG;yBACH,GAAG;wBACJ,GAAG;;;;EAe9B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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":"QLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/QLabel.vue"],"names":[],"mappings":"AAiBA;AAqDC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAA;AAqBrC,iBAAS,cAAc;WAkDT,OAAO,IAA6B;;yBAbrB,GAAG;yBACH,GAAG;yBACH,GAAG;wBACJ,GAAG;;;;EAe9B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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,7 +1,8 @@
1
- import { QRequiredIndicator as e } from "../__internal__/QRequiredIndicator/index.js";
2
- import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createTextVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, renderSlot as l, toDisplayString as u, unref as d } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { QRequiredIndicator as t } from "../__internal__/QRequiredIndicator/index.js";
3
+ import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createTextVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderSlot as u, toDisplayString as d, toRef as f, unref as p } from "vue";
3
4
  //#region src/components/QLabel/QLabel.vue?vue&type=script&setup=true&lang.ts
4
- var f = ["id"], p = ["for"], m = /*@__PURE__*/ o({
5
+ var m = ["id"], h = ["for"], g = /*@__PURE__*/ s({
5
6
  __name: "QLabel",
6
7
  props: {
7
8
  id: {},
@@ -11,26 +12,26 @@ var f = ["id"], p = ["for"], m = /*@__PURE__*/ o({
11
12
  for: {},
12
13
  labelPosition: {}
13
14
  },
14
- setup(o) {
15
- let m = o, h = t(() => [
15
+ setup(s) {
16
+ let g = s, _ = e(f(g, "id")), v = n(() => [
16
17
  "q-label",
17
- m.labelPosition ? `q-label--${m.labelPosition}` : "",
18
- { "q-label--required": m.required },
19
- m.class
18
+ g.labelPosition ? `q-label--${g.labelPosition}` : "",
19
+ { "q-label--required": g.required },
20
+ g.class
20
21
  ]);
21
- return (t, o) => (c(), i("div", {
22
- id: m.id,
23
- class: s(h.value)
22
+ return (e, n) => (l(), a("div", {
23
+ id: p(_),
24
+ class: c(v.value)
24
25
  }, [
25
- l(t.$slots, "prepend"),
26
- m.label || t.$slots.default ? (c(), i("label", {
26
+ u(e.$slots, "prepend"),
27
+ g.label || e.$slots.default ? (l(), a("label", {
27
28
  key: 0,
28
- for: m.for
29
- }, [l(t.$slots, "default", {}, () => [a(u(m.label), 1)])], 8, p)) : l(t.$slots, "default", { key: 1 }),
30
- l(t.$slots, "append"),
31
- m.required ? (c(), n(d(e), { key: 2 })) : r("v-if", !0)
32
- ], 10, f));
29
+ for: g.for
30
+ }, [u(e.$slots, "default", {}, () => [o(d(g.label), 1)])], 8, h)) : u(e.$slots, "default", { key: 1 }),
31
+ u(e.$slots, "append"),
32
+ g.required ? (l(), r(p(t), { key: 2 })) : i("v-if", !0)
33
+ ], 10, m));
33
34
  }
34
35
  });
35
36
  //#endregion
36
- export { m as default };
37
+ export { g as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QLineLoader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLineLoader/QLineLoader.vue"],"names":[],"mappings":"AAMA;AA8BC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAA;;AA2D1C,wBAOG"}
1
+ {"version":3,"file":"QLineLoader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLineLoader/QLineLoader.vue"],"names":[],"mappings":"AAMA;AAsCC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAA;;AA8D1C,wBAOG"}
@@ -1,6 +1,7 @@
1
- import { computed as e, createElementBlock as t, defineComponent as n, normalizeClass as r, normalizeStyle as i, openBlock as a } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { computed as t, createElementBlock as n, defineComponent as r, normalizeClass as i, normalizeStyle as a, openBlock as o, toRef as s, unref as c } from "vue";
2
3
  //#region src/components/QLineLoader/QLineLoader.vue?vue&type=script&setup=true&lang.ts
3
- var o = ["id"], s = /*@__PURE__*/ n({
4
+ var l = ["id"], u = /*@__PURE__*/ r({
4
5
  __name: "QLineLoader",
5
6
  props: {
6
7
  id: {},
@@ -8,20 +9,20 @@ var o = ["id"], s = /*@__PURE__*/ n({
8
9
  height: {},
9
10
  rounded: { type: Boolean }
10
11
  },
11
- setup(n) {
12
- let s = n, c = e(() => {
13
- if (s.height !== void 0) return { "--q-line-loader-height": `${Math.min(12, Math.max(4, s.height))}px` };
12
+ setup(r) {
13
+ let u = r, d = e(s(u, "id")), f = t(() => {
14
+ if (u.height !== void 0) return { "--q-line-loader-height": `${Math.min(12, Math.max(4, u.height))}px` };
14
15
  });
15
- return (e, n) => (a(), t("div", {
16
- id: s.id,
17
- class: r([
16
+ return (e, t) => (o(), n("div", {
17
+ id: c(d),
18
+ class: i([
18
19
  "q-line-loader",
19
- { "q-line-loader--rounded": s.rounded },
20
- s.class
20
+ { "q-line-loader--rounded": u.rounded },
21
+ u.class
21
22
  ]),
22
- style: i(c.value)
23
- }, null, 14, o));
23
+ style: a(f.value)
24
+ }, null, 14, l));
24
25
  }
25
26
  });
26
27
  //#endregion
27
- export { s as default };
28
+ export { u as default };
@@ -46,7 +46,7 @@ declare function __VLS_template(): {
46
46
  }): any;
47
47
  };
48
48
  refs: {
49
- listRef: unknown;
49
+ listRef: HTMLDivElement;
50
50
  listItemsRef: (({
51
51
  $: import('vue').ComponentInternalInstance;
52
52
  $data: {};
@@ -125,7 +125,7 @@ declare function __VLS_template(): {
125
125
  };
126
126
  }) | null)[];
127
127
  };
128
- rootEl: any;
128
+ rootEl: HTMLDivElement;
129
129
  };
130
130
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
131
131
  declare const __VLS_component: import('vue').DefineComponent<QListProps, {
@@ -148,7 +148,7 @@ declare const __VLS_component: import('vue').DefineComponent<QListProps, {
148
148
  itemValue: string;
149
149
  itemLabel: string;
150
150
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
151
- listRef: unknown;
151
+ listRef: HTMLDivElement;
152
152
  listItemsRef: (({
153
153
  $: import('vue').ComponentInternalInstance;
154
154
  $data: {};
@@ -226,7 +226,7 @@ declare const __VLS_component: import('vue').DefineComponent<QListProps, {
226
226
  append?(_: {}): any;
227
227
  };
228
228
  }) | null)[];
229
- }, any>;
229
+ }, HTMLDivElement>;
230
230
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
231
231
  export default _default;
232
232
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AAiDA;AA4cC,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,GAAG,CAAA;AA8OvD,iBAAS,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAIrD;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,IAAI,MAAM,CAIpC;AAED;;;;;;GAMG;AACH,iBAAS,0BAA0B,IAAI,MAAM,CAO5C;AAED;;;;;;GAMG;AACH,iBAAS,yBAAyB,IAAI,MAAM,CAO3C;AAmCD;;;;;;;;GAQG;AACH,iBAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAuB7E;AA0DF,iBAAS,cAAc;WAgJT,OAAO,IAA6B;;yBAdpB,GAAG;;;;YACN,GAAG;;;;YACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA1FpB,GAAG,8CACW,GAAG,yBAA0B,GAAE,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;EA0GrG;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAnIF,GAAG,8CACW,GAAG,yBAA0B,GAAE,6DAAmC,GAAG;;;;;;;;;;;;;;;;OA6IpG,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":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AAiDA;AA+cC,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,GAAG,CAAA;AA+OvD,iBAAS,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAIrD;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,IAAI,MAAM,CAIpC;AAED;;;;;;GAMG;AACH,iBAAS,0BAA0B,IAAI,MAAM,CAO5C;AAED;;;;;;GAMG;AACH,iBAAS,yBAAyB,IAAI,MAAM,CAO3C;AAmCD;;;;;;;;GAQG;AACH,iBAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAuB7E;AA0DF,iBAAS,cAAc;WAoHT,OAAO,IAA6B;;yBAdrB,GAAG;;;;YACL,GAAG;;;;YACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAjE8D,GAAG,8CACtF,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;EAiFtF;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA1GgF,GAAG,8CACtF,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;kBAoHrF,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"}