@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,13 +1,14 @@
1
- import { QOverlay as e } from "../QOverlay/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, mergeModels as l, normalizeClass as u, openBlock as d, renderSlot as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, useModel as g, withCtx as _ } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { QOverlay as t } from "../QOverlay/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, mergeModels as u, normalizeClass as d, openBlock as f, renderSlot as p, resolveDynamicComponent as m, toDisplayString as h, toRef as g, unref as _, useAttrs as v, useModel as y, useSlots as b, withCtx as x } from "vue";
3
4
  //#region src/components/QPopover/QPopover.vue?vue&type=script&setup=true&lang.ts
4
- var v = { class: "q-popover__content" }, y = {
5
+ var S = { class: "q-popover__content" }, C = {
5
6
  key: 0,
6
7
  class: "q-popover__header"
7
- }, b = ["innerHTML"], x = { key: 1 }, S = /*@__PURE__*/ c({
8
+ }, w = ["innerHTML"], T = { key: 1 }, E = /*@__PURE__*/ l({
8
9
  inheritAttrs: !1,
9
10
  __name: "QPopover",
10
- props: /*@__PURE__*/ l({
11
+ props: /*@__PURE__*/ u({
11
12
  id: {},
12
13
  class: {},
13
14
  anchor: {},
@@ -31,37 +32,59 @@ var v = { class: "q-popover__content" }, y = {
31
32
  modelModifiers: {}
32
33
  }),
33
34
  emits: ["update:modelValue"],
34
- setup(c) {
35
- let l = c, S = g(c, "modelValue"), C = n(() => l.headingLevel >= 1 && l.headingLevel <= 6 ? "h" + l.headingLevel : "div");
36
- return (n, c) => (d(), r(h(e), {
37
- id: l.id,
38
- modelValue: S.value,
39
- "onUpdate:modelValue": c[0] ||= (e) => S.value = e,
40
- class: u(["q-popover", l.class]),
35
+ setup(l) {
36
+ let u = l, E = y(l, "modelValue"), D = e(g(u, "id")), O = b(), k = v(), A = r(() => `${D.value}_title`), j = r(() => u.headingLevel >= 1 && u.headingLevel <= 6 ? "h" + u.headingLevel : "div");
37
+ function M() {
38
+ return !!u.title && !O.header;
39
+ }
40
+ function N() {
41
+ if (M()) return A.value;
42
+ if (u.title) return;
43
+ let e = k["aria-labelledby"];
44
+ return typeof e == "string" && e ? e : void 0;
45
+ }
46
+ function P() {
47
+ if (M()) return;
48
+ if (u.title) return u.title;
49
+ let e = k["aria-label"];
50
+ return typeof e == "string" && e ? e : void 0;
51
+ }
52
+ return (e, r) => (f(), i(_(t), {
53
+ id: _(D),
54
+ modelValue: E.value,
55
+ "onUpdate:modelValue": r[0] ||= (e) => E.value = e,
56
+ class: d(["q-popover", u.class]),
57
+ "aria-labelledby": N(),
58
+ "aria-label": P(),
41
59
  trigger: "click",
42
- anchor: l.anchor,
43
- arrow: l.arrow,
44
- attach: l.attach,
45
- inline: l.inline,
46
- disabled: l.disabled,
47
- placement: l.placement
60
+ anchor: u.anchor,
61
+ arrow: u.arrow,
62
+ attach: u.attach,
63
+ inline: u.inline,
64
+ disabled: u.disabled,
65
+ placement: u.placement
48
66
  }, {
49
- default: _(() => [o("div", v, [l.title || n.$slots.header ? (d(), a("div", y, [n.$slots.header ? f(n.$slots, "header", { key: 0 }) : (d(), a(t, { key: 1 }, [
50
- f(n.$slots, "header.prepend"),
51
- (d(), r(p(C.value), { class: "q-popover__title" }, {
52
- default: _(() => [s(m(l.title), 1)]),
67
+ default: x(() => [s("div", S, [u.title || e.$slots.header ? (f(), o("div", C, [e.$slots.header ? p(e.$slots, "header", { key: 0 }) : (f(), o(n, { key: 1 }, [
68
+ p(e.$slots, "header.prepend"),
69
+ (f(), i(m(j.value), {
70
+ id: A.value,
71
+ class: "q-popover__title"
72
+ }, {
73
+ default: x(() => [c(h(u.title), 1)]),
53
74
  _: 1
54
- })),
55
- f(n.$slots, "header.append")
56
- ], 64))])) : i("v-if", !0), f(n.$slots, "default", {}, () => [l.text ? (d(), a(t, { key: 0 }, [l.html ? (d(), a("span", {
75
+ }, 8, ["id"])),
76
+ p(e.$slots, "header.append")
77
+ ], 64))])) : a("v-if", !0), p(e.$slots, "default", {}, () => [u.text ? (f(), o(n, { key: 0 }, [u.html ? (f(), o("span", {
57
78
  key: 0,
58
- innerHTML: l.text
59
- }, null, 8, b)) : (d(), a("span", x, m(l.text), 1))], 64)) : i("v-if", !0)])])]),
79
+ innerHTML: u.text
80
+ }, null, 8, w)) : (f(), o("span", T, h(u.text), 1))], 64)) : a("v-if", !0)])])]),
60
81
  _: 3
61
82
  }, 8, [
62
83
  "id",
63
84
  "modelValue",
64
85
  "class",
86
+ "aria-labelledby",
87
+ "aria-label",
65
88
  "anchor",
66
89
  "arrow",
67
90
  "attach",
@@ -72,4 +95,4 @@ var v = { class: "q-popover__content" }, y = {
72
95
  }
73
96
  });
74
97
  //#endregion
75
- export { S as default };
98
+ export { E as default };
@@ -1,5 +1,5 @@
1
- import { useColor as e } from "../../composables/useColor/index.js";
2
- import { useId as t } from "../../composables/useId/index.js";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { useColor as t } from "../../composables/useColor/index.js";
3
3
  import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, mergeModels as s, mergeProps as c, nextTick as l, normalizeClass as u, normalizeStyle as d, openBlock as f, ref as p, toDisplayString as m, toRef as h, unref as g, useModel as _, watch as v } from "vue";
4
4
  //#region src/components/QProgress/QProgress.vue?vue&type=script&setup=true&lang.ts
5
5
  var y = ["id"], b = [
@@ -58,7 +58,7 @@ var y = ["id"], b = [
58
58
  }),
59
59
  emits: ["update:modelValue"],
60
60
  setup(o) {
61
- let s = o, E = _(o, "modelValue"), { style: D } = e(h(s, "color")), O = t(h(s, "id")), k = n(() => Number.isFinite(s.min) ? s.min < s.max ? s.min : s.max : 0), A = n(() => Number.isFinite(s.max) ? s.max > s.min ? s.max : s.min === s.max ? s.max + 1 : s.min : k.value + 1), j = n(() => Number.isNaN(E.value) ? 0 : E.value < k.value ? k.value : E.value > A.value ? A.value : E.value), M = n(() => Number(((j.value - k.value) / (A.value - k.value) * 100).toFixed(2))), N = n(() => ["q-progress", s.class]), P = n(() => ["q-progress__bar", { "q-progress__bar--mini": s.mini }]), F = n(() => ["q-progress__fill", {
61
+ let s = o, E = _(o, "modelValue"), { style: D } = t(h(s, "color")), O = e(h(s, "id")), k = n(() => Number.isFinite(s.min) ? s.min < s.max ? s.min : s.max : 0), A = n(() => Number.isFinite(s.max) ? s.max > s.min ? s.max : s.min === s.max ? s.max + 1 : s.min : k.value + 1), j = n(() => Number.isNaN(E.value) ? 0 : E.value < k.value ? k.value : E.value > A.value ? A.value : E.value), M = n(() => Number(((j.value - k.value) / (A.value - k.value) * 100).toFixed(2))), N = n(() => ["q-progress", s.class]), P = n(() => ["q-progress__bar", { "q-progress__bar--mini": s.mini }]), F = n(() => ["q-progress__fill", {
62
62
  "q-progress__fill--striped": s.striped,
63
63
  "q-progress__fill--animated": s.animated && M.value < 100
64
64
  }]), I = n(() => ({ width: `${M.value}%` })), L = n(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"QPropertyList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyList.vue"],"names":[],"mappings":"AAyDA;AA2NC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAM1D,OAAO,KAAK,EAAE,kBAAkB,EAA2B,kBAAkB,EAAE,MAAM,GAAG,CAAA;AAiKzF,iBAAS,cAAc;WAiIT,OAAO,IAA6B;;;UAbqC,GAAG;;;;;;;;;;YAE9D,GAAG;;;;;;EAgB9B;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;kBAUnB,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":"QPropertyList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyList.vue"],"names":[],"mappings":"AA+DA;AAyPC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAS1D,OAAO,KAAK,EAAE,kBAAkB,EAA2B,kBAAkB,EAAE,MAAM,GAAG,CAAA;AAsLzF,iBAAS,cAAc;WA8IT,OAAO,IAA6B;;;UAbqC,GAAG;;;;;;;;;;YAE9D,GAAG;;;;;;EAgB9B;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;kBAUnB,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,8 +1,9 @@
1
- import { DEFAULT_ICONS as e, DEFAULT_TEXTS as t } from "./constants.js";
2
- import { QPropertyListGroup as n, QPropertyListPanel as r, QPropertyListRow as i } from "./index.js";
3
- import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, defineComponent as d, nextTick as f, normalizeClass as p, openBlock as m, ref as h, renderList as g, renderSlot as _, unref as v, watch as y, withCtx as b } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { DEFAULT_ICONS as t, DEFAULT_TEXTS as n } from "./constants.js";
3
+ import { QPropertyListGroup as r, QPropertyListPanel as i, QPropertyListRow as a } from "./index.js";
4
+ import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, defineComponent as f, nextTick as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, toRef as b, unref as x, watch as S, withCtx as C } from "vue";
4
5
  //#region src/components/QPropertyList/QPropertyList.vue?vue&type=script&setup=true&lang.ts
5
- var x = ["id"], S = { class: "q-property-list__table" }, C = /*@__PURE__*/ d({
6
+ var w = ["id"], T = { class: "q-property-list__table" }, E = { class: "q-property-list__header" }, D = { scope: "col" }, O = { class: "q-sr-only" }, k = { scope: "col" }, A = { class: "q-sr-only" }, j = /*@__PURE__*/ f({
6
7
  __name: "QPropertyList",
7
8
  props: {
8
9
  id: {},
@@ -14,78 +15,87 @@ var x = ["id"], S = { class: "q-property-list__table" }, C = /*@__PURE__*/ d({
14
15
  noPanel: { type: Boolean },
15
16
  noToggle: { type: Boolean },
16
17
  readonly: { type: Boolean },
17
- icons: { default: () => e },
18
- texts: { default: () => t }
18
+ icons: { default: () => t },
19
+ texts: { default: () => n }
19
20
  },
20
21
  emits: ["field-change", "select-field"],
21
- setup(e, { emit: t }) {
22
- let d = e, C = t, w = h(d.groups.map((e) => e.id)), T = h(void 0), E = h(null), D = o(() => d.groups.length ? d.groups.filter((e) => d.fields.some((t) => t.group === e.id)) : [{
22
+ setup(t, { emit: n }) {
23
+ let f = t, j = n, M = e(b(f, "id")), N = g([]);
24
+ S(() => f.groups.map((e) => e.id), (e, t) => {
25
+ let n = new Set(e);
26
+ N.value = N.value.filter((e) => n.has(e));
27
+ let r = new Set(t ?? []);
28
+ for (let t of e) !r.has(t) && !N.value.includes(t) && N.value.push(t);
29
+ }, { immediate: !0 });
30
+ let P = g(void 0), F = g(null), I = s(() => f.groups.length ? f.groups.filter((e) => f.fields.some((t) => t.group === e.id)) : [{
23
31
  id: "",
24
32
  title: ""
25
- }]), O = o(() => [
33
+ }]), L = s(() => [
26
34
  "q-property-list",
27
35
  {
28
- "q-property-list--side-panel": d.panelPosition === "right",
29
- "q-property-list--block": d.block
36
+ "q-property-list--side-panel": f.panelPosition === "right",
37
+ "q-property-list--block": f.block
30
38
  },
31
- d.class
39
+ f.class
32
40
  ]);
33
- function k() {
34
- E.value?.contains(document.activeElement) || (T.value = void 0);
41
+ function R() {
42
+ F.value?.contains(document.activeElement) || (P.value = void 0);
35
43
  }
36
- function A(e) {
37
- return e ? d.fields.filter((t) => t.group === e) : d.fields;
44
+ function z(e) {
45
+ return e ? f.fields.filter((t) => t.group === e) : f.fields;
38
46
  }
39
- function j(e) {
40
- let t = w.value.indexOf(e);
41
- t === -1 ? w.value.push(e) : w.value.splice(t, 1);
47
+ function B(e, t) {
48
+ let n = N.value.includes(e);
49
+ t && !n ? N.value.push(e) : !t && n && (N.value = N.value.filter((t) => t !== e));
42
50
  }
43
- function M(e) {
44
- return [{ "q-property-list__row--selected": T.value?.id === e.id }];
51
+ function V(e) {
52
+ return [{ "q-property-list__row--selected": P.value?.id === e.id }];
45
53
  }
46
- function N(e) {
47
- T.value = e, C("select-field", T.value.id);
54
+ function H(e) {
55
+ P.value = e, j("select-field", P.value.id);
48
56
  }
49
- function P(e, t) {
50
- d.readonly || (e.props.readonly ?? !1) || C("field-change", e, t);
57
+ function U(e, t) {
58
+ f.readonly || (e.props.readonly ?? !1) || j("field-change", e, t);
51
59
  }
52
- function F() {
53
- if (!E.value) return;
54
- let e = E.value.offsetWidth;
55
- E.value.style.minWidth = `${e}px`;
60
+ function W() {
61
+ if (!F.value) return;
62
+ let e = F.value.offsetWidth;
63
+ F.value.style.minWidth = `${e}px`;
56
64
  }
57
- return y(() => d.block, async (e) => {
58
- await f(), e ? E.value?.removeAttribute("style") : F();
59
- }, { immediate: !0 }), (e, t) => (m(), l("div", {
60
- id: d.id,
65
+ return S(() => f.block, async (e) => {
66
+ await p(), e ? F.value?.removeAttribute("style") : W();
67
+ }, { immediate: !0 }), (e, t) => (h(), u("div", {
68
+ id: x(M),
61
69
  ref_key: "componentRoot",
62
- ref: E,
70
+ ref: F,
63
71
  tabindex: "0",
64
- class: p(O.value),
65
- onFocusout: k
66
- }, [u("table", S, [t[0] ||= u("thead", { class: "q-property-list__header" }, [u("tr", null, [u("th", { colspan: "2" })])], -1), u("tbody", null, [(m(!0), l(a, null, g(D.value, (t) => (m(), l(a, { key: t.id }, [t.title ? (m(), s(v(n), {
72
+ class: m(L.value),
73
+ onFocusout: R
74
+ }, [d("table", T, [d("thead", E, [d("tr", null, [d("th", D, [d("span", O, y(f.texts.property), 1)]), d("th", k, [d("span", A, y(f.texts.value), 1)])])]), d("tbody", null, [(h(!0), u(o, null, _(I.value, (t) => (h(), u(o, { key: t.id }, [t.title ? (h(), c(x(r), {
67
75
  key: 0,
68
76
  "data-key": t.id,
69
77
  title: t.title,
70
- icons: d.icons,
71
- "no-toggle": d.noToggle,
72
- onClick: () => j(t.id ?? "")
78
+ icons: f.icons,
79
+ "no-toggle": f.noToggle,
80
+ open: N.value.includes(t.id ?? ""),
81
+ "onUpdate:open": (e) => B(t.id ?? "", e)
73
82
  }, null, 8, [
74
83
  "data-key",
75
84
  "title",
76
85
  "icons",
77
86
  "no-toggle",
78
- "onClick"
79
- ])) : c("v-if", !0), t.id === "" || w.value.includes(t.id ?? "") ? (m(!0), l(a, { key: 1 }, g(A(t.id), (t) => (m(), s(v(i), {
87
+ "open",
88
+ "onUpdate:open"
89
+ ])) : l("v-if", !0), t.id === "" || N.value.includes(t.id ?? "") ? (h(!0), u(o, { key: 1 }, _(z(t.id), (t) => (h(), c(x(a), {
80
90
  key: t.id,
81
- class: p(M(t)),
91
+ class: m(V(t)),
82
92
  field: t,
83
93
  "model-value": t.props.modelValue,
84
- readonly: d.readonly,
85
- onFocus: N,
86
- onFieldChange: (e) => P(t, e)
94
+ readonly: f.readonly,
95
+ onFocus: H,
96
+ onFieldChange: (e) => U(t, e)
87
97
  }, {
88
- default: b(() => [_(e.$slots, t.id, { field: t })]),
98
+ default: C(() => [v(e.$slots, t.id, { field: t })]),
89
99
  _: 2
90
100
  }, 1032, [
91
101
  "class",
@@ -93,18 +103,18 @@ var x = ["id"], S = { class: "q-property-list__table" }, C = /*@__PURE__*/ d({
93
103
  "model-value",
94
104
  "readonly",
95
105
  "onFieldChange"
96
- ]))), 128)) : c("v-if", !0)], 64))), 128))])]), d.noPanel ? c("v-if", !0) : (m(), s(v(r), {
106
+ ]))), 128)) : l("v-if", !0)], 64))), 128))])]), f.noPanel ? l("v-if", !0) : (h(), c(x(i), {
97
107
  key: 0,
98
- field: T.value,
99
- texts: d.texts
108
+ field: P.value,
109
+ texts: f.texts
100
110
  }, {
101
- default: b(() => [T.value ? _(e.$slots, "panel", {
111
+ default: C(() => [P.value ? v(e.$slots, "panel", {
102
112
  key: 0,
103
- field: T.value
104
- }) : c("v-if", !0)]),
113
+ field: P.value
114
+ }) : l("v-if", !0)]),
105
115
  _: 3
106
- }, 8, ["field", "texts"]))], 42, x));
116
+ }, 8, ["field", "texts"]))], 42, w));
107
117
  }
108
118
  });
109
119
  //#endregion
110
- export { C as default };
120
+ export { j as default };
@@ -1,9 +1,13 @@
1
1
  import { DEFAULT_ICONS } from './constants';
2
2
  import { QPropertyListGroupProps } from '.';
3
- declare const _default: import('vue').DefineComponent<QPropertyListGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
4
- click: () => any;
5
- }, string, import('vue').PublicProps, Readonly<QPropertyListGroupProps> & Readonly<{
6
- onClick?: (() => any) | undefined;
3
+ type __VLS_Props = QPropertyListGroupProps;
4
+ type __VLS_PublicProps = {
5
+ 'open'?: boolean;
6
+ } & __VLS_Props;
7
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:open": (value: boolean) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
7
11
  }>, {
8
12
  icons: typeof DEFAULT_ICONS;
9
13
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableRowElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"QPropertyListGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListGroup.vue"],"names":[],"mappings":"AAsBA;AAwEC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAU3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAA;;;;;;;;AA6HjD,wBASG"}
1
+ {"version":3,"file":"QPropertyListGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListGroup.vue"],"names":[],"mappings":"AAsBA;AAoEC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAU3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAA;AAKhD,KAAK,WAAW,GAAG,uBAAuB,CAAC;AAiC5C,KAAK,iBAAiB,GAAG;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,WAAW,CAAC;;;;;;;;AA6FhB,wBASG"}
@@ -1,47 +1,50 @@
1
- import { QButton as e } from "../QButton/index.js";
2
- import { QIcon as t } from "../QIcon/index.js";
3
- import { useId as n } from "../../composables/useId/index.js";
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
4
  import { DEFAULT_ICONS as r } from "./constants.js";
5
- import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, normalizeClass as p, normalizeProps as m, openBlock as h, ref as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
5
+ import { Fragment as i, computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeModels as p, normalizeClass as m, normalizeProps as h, openBlock as g, toDisplayString as _, toRef as v, unref as y, useModel as b, withCtx as x } from "vue";
6
6
  //#region src/components/QPropertyList/QPropertyListGroup.vue?vue&type=script&setup=true&lang.ts
7
- var b = ["id", "aria-labelledby"], x = ["id"], S = { class: "q-property-list-group__content" }, C = /*@__PURE__*/ d({
7
+ var S = ["id"], C = { colspan: "2" }, w = { class: "q-property-list-group__content" }, T = /*@__PURE__*/ d({
8
8
  __name: "QPropertyListGroup",
9
- props: {
9
+ props: /*@__PURE__*/ p({
10
10
  id: {},
11
11
  class: {},
12
12
  title: {},
13
13
  noToggle: { type: Boolean },
14
14
  icons: { default: () => r },
15
15
  texts: {}
16
- },
17
- emits: ["click"],
18
- setup(r, { emit: d }) {
19
- let C = r, w = d, T = g(!0), E = n(), D = i(() => T.value ? C.icons.open : C.icons.close), O = i(() => [
16
+ }, {
17
+ open: {
18
+ type: Boolean,
19
+ default: !0
20
+ },
21
+ openModifiers: {}
22
+ }),
23
+ emits: ["update:open"],
24
+ setup(r) {
25
+ let d = r, p = b(r, "open"), T = e(v(d, "id")), E = a(() => p.value ? d.icons.open : d.icons.close), D = a(() => [
20
26
  "q-property-list-group",
21
- { "q-property-list-group--no-toggle": C.noToggle },
22
- C.class
27
+ { "q-property-list-group--no-toggle": d.noToggle },
28
+ d.class
23
29
  ]);
24
- function k() {
25
- C.noToggle || (T.value = !T.value, w("click"));
30
+ function O() {
31
+ d.noToggle || (p.value = !p.value);
26
32
  }
27
- return (n, r) => (h(), s("tr", {
28
- id: C.id,
29
- class: p(O.value),
30
- role: "group",
31
- "aria-labelledby": v(E),
32
- onClick: k
33
- }, [c("td", {
34
- id: v(E),
35
- colspan: "2"
36
- }, [c("div", S, [C.noToggle ? o("v-if", !0) : (h(), a(v(e), {
33
+ return (e, r) => (g(), s("tr", {
34
+ id: y(T),
35
+ class: m(D.value),
36
+ onClick: O
37
+ }, [c("td", C, [c("div", w, [d.noToggle ? (g(), s(i, { key: 1 }, [l(_(d.title), 1)], 64)) : (g(), o(y(t), {
37
38
  key: 0,
38
39
  variant: "text",
39
- onClick: k
40
+ label: d.title,
41
+ "aria-expanded": p.value,
42
+ onClick: O
40
43
  }, {
41
- default: y(() => [u(v(t), m(f(D.value)), null, 16)]),
44
+ default: x(() => [u(y(n), h(f(E.value)), null, 16)]),
42
45
  _: 1
43
- })), l(" " + _(C.title), 1)])], 8, x)], 10, b));
46
+ }, 8, ["label", "aria-expanded"]))])])], 10, S));
44
47
  }
45
48
  });
46
49
  //#endregion
47
- export { C as default };
50
+ export { T as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QPropertyListPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListPanel.vue"],"names":[],"mappings":"AAiBA;AAgCC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAA;AAYjD,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;wFAQnB,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":"QPropertyListPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListPanel.vue"],"names":[],"mappings":"AAiBA;AAwCC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAM3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAA;AAiBjD,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;wFAQnB,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,25 +1,26 @@
1
- import { DEFAULT_TEXTS as e } from "./constants.js";
2
- import { createElementBlock as t, createElementVNode as n, defineComponent as r, normalizeClass as i, openBlock as a, renderSlot as o, toDisplayString as s } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { DEFAULT_TEXTS as t } from "./constants.js";
3
+ import { createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s, toDisplayString as c, toRef as l, unref as u } from "vue";
3
4
  //#region src/components/QPropertyList/QPropertyListPanel.vue?vue&type=script&setup=true&lang.ts
4
- var c = ["id"], l = { class: "q-property-list-panel__label" }, u = { class: "q-property-list-panel__description" }, d = {
5
+ var d = ["id"], f = { class: "q-property-list-panel__label" }, p = { class: "q-property-list-panel__description" }, m = {
5
6
  key: 1,
6
7
  class: "q-property-list-panel__empty"
7
- }, f = /*@__PURE__*/ r({
8
+ }, h = /*@__PURE__*/ i({
8
9
  __name: "QPropertyListPanel",
9
10
  props: {
10
11
  id: {},
11
12
  class: {},
12
13
  field: {},
13
14
  icons: {},
14
- texts: { default: () => e }
15
+ texts: { default: () => t }
15
16
  },
16
- setup(e) {
17
- let r = e;
18
- return (e, f) => (a(), t("div", {
19
- id: r.id,
20
- class: i(["q-property-list-panel", r.class])
21
- }, [r.field ? o(e.$slots, "default", { key: 0 }, () => [n("div", l, s(r.field.label), 1), n("div", u, s(r.field.description), 1)]) : (a(), t("div", d, s(r.texts.emptyMessage), 1))], 10, c));
17
+ setup(t) {
18
+ let i = t, h = e(l(i, "id"));
19
+ return (e, t) => (o(), n("div", {
20
+ id: u(h),
21
+ class: a(["q-property-list-panel", i.class])
22
+ }, [i.field ? s(e.$slots, "default", { key: 0 }, () => [r("div", f, c(i.field.label), 1), r("div", p, c(i.field.description), 1)]) : (o(), n("div", m, c(i.texts.emptyMessage), 1))], 10, d));
22
23
  }
23
24
  });
24
25
  //#endregion
25
- export { f as default };
26
+ export { h as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QPropertyListRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListRow.vue"],"names":[],"mappings":"AAgCA;AAyGC,OAAO,KAAK,EAAE,kBAAkB,EAAyB,MAAM,GAAG,CAAA;yBAKjD,CAAC,eACL,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA6K1D,mBAAmB,CAAC;;;;;qBA9Gf,CAAC;;;;;oBA8GgF,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBArCkB,GAAG;;UAuCzB;YA3KD,OAAO,SAAS,kBAAkB,GAAG,IAAI;YACzC,cAAc,SAAS,OAAO,GAAG,IAAI;sDA0KA;OAG/B,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAvLxE,wBAuL2E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"QPropertyListRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListRow.vue"],"names":[],"mappings":"AAgCA;AAqKC,OAAO,KAAK,EAAE,kBAAkB,EAAyB,MAAM,GAAG,CAAA;yBAKjD,CAAC,eACL,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA0O1D,mBAAmB,CAAC;;;;;qBA/Gf,CAAC;;;;;oBA+GgF,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBAtCkB,GAAG;;UAwCzB;YAxOD,OAAO,SAAS,kBAAkB,GAAG,IAAI;YACzC,cAAc,SAAS,OAAO,GAAG,IAAI;sDAuOA;OAG/B,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AApPxE,wBAoP2E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -19,30 +19,55 @@ var y = ["id", "data-group"], b = {
19
19
  }),
20
20
  emits: /*@__PURE__*/ l(["focus", "field-change"], ["update:modelValue"]),
21
21
  setup(c, { emit: l }) {
22
- let x = c, S = l, C = _(c, "modelValue"), w = n(() => ["q-property-list__row", x.class]), T = n(() => ["q-property-list__cell", "q-property-list__cell-label"]), E = n(() => x.readonly || (x.field.props.readonly ?? !1)), D = n(() => x.required || !!x.field.props?.required), O = e(h(x, "id")), k = n(() => ({
23
- id: O.value,
22
+ let x = c, S = l, C = _(c, "modelValue"), w = /* @__PURE__ */ new Set([
23
+ "QTextField",
24
+ "QTextArea",
25
+ "QSelect",
26
+ "QCombobox",
27
+ "QColorPicker",
28
+ "QPasswordField",
29
+ "QPhoneField",
30
+ "QDateTimePicker"
31
+ ]);
32
+ function T(e) {
33
+ return e.split("-").filter((e) => e.length > 0).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
34
+ }
35
+ function E(e) {
36
+ let t = "";
37
+ if (typeof e == "string") t = e;
38
+ else if (typeof e == "object" && e) {
39
+ let n = e;
40
+ t = n.name || n.__name || "";
41
+ }
42
+ return T(t);
43
+ }
44
+ let D = n(() => ["q-property-list__row", x.class]), O = n(() => ["q-property-list__cell", "q-property-list__cell-label"]), k = n(() => x.readonly || (x.field.props.readonly ?? !1)), A = n(() => x.required || !!x.field.props?.required), j = e(h(x, "id")), M = n(() => {
45
+ let e = x.field.props.id;
46
+ return typeof e == "string" && e ? e : `${j.value}_field`;
47
+ }), N = n(() => w.has(E(x.field.component)) ? `${M.value}_input` : M.value), P = n(() => ({
24
48
  ...x.field.props,
25
- readonly: E.value,
26
- required: D.value
49
+ id: M.value,
50
+ readonly: k.value,
51
+ required: A.value
27
52
  }));
28
- function A() {
53
+ function F() {
29
54
  S("focus", x.field);
30
55
  }
31
- function j(e) {
56
+ function I(e) {
32
57
  C.value = e, S("field-change", e);
33
58
  }
34
59
  return (e, n) => (f(), a("tr", {
35
- id: x.id,
36
- class: d(w.value),
60
+ id: g(j),
61
+ class: d(D.value),
37
62
  "data-group": x.field.group,
38
- onFocusin: A
63
+ onFocusin: F
39
64
  }, [o("td", {
40
- class: d(T.value),
41
- onClick: v(A, ["prevent", "stop"])
65
+ class: d(O.value),
66
+ onClick: v(F, ["prevent", "stop"])
42
67
  }, [s(g(t), {
43
- for: g(O),
68
+ for: N.value,
44
69
  label: x.field.label,
45
- required: D.value,
70
+ required: A.value,
46
71
  onClick: n[0] ||= v(() => {}, ["stop"])
47
72
  }, null, 8, [
48
73
  "for",
@@ -50,10 +75,10 @@ var y = ["id", "data-group"], b = {
50
75
  "required"
51
76
  ])], 2), o("td", {
52
77
  class: "q-property-list__cell",
53
- onClick: v(A, ["prevent", "stop"])
54
- }, [p(e.$slots, "default", {}, () => [x.field.component ? (f(), a("div", b, [(f(), r(m(x.field.component), u(k.value, {
78
+ onClick: v(F, ["prevent", "stop"])
79
+ }, [p(e.$slots, "default", {}, () => [x.field.component ? (f(), a("div", b, [(f(), r(m(x.field.component), u(P.value, {
55
80
  modelValue: C.value,
56
- "onUpdate:modelValue": [n[1] ||= (e) => C.value = e, j]
81
+ "onUpdate:modelValue": [n[1] ||= (e) => C.value = e, I]
57
82
  }), null, 16, ["modelValue"]))])) : i("v-if", !0)])])], 42, y));
58
83
  }
59
84
  });
@@ -1,5 +1,7 @@
1
1
  export declare const DEFAULT_TEXTS: {
2
2
  emptyMessage: string;
3
+ property: string;
4
+ value: string;
3
5
  };
4
6
  export declare const DEFAULT_ICONS: {
5
7
  open: {
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;CAEQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;;;;CAOY,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;;CAIQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;;;;CAOY,CAAA"}
@@ -1,5 +1,9 @@
1
1
  //#region src/components/QPropertyList/constants.ts
2
- var e = { emptyMessage: "Select a field to view details." }, t = {
2
+ var e = {
3
+ emptyMessage: "Select a field to view details.",
4
+ property: "Property",
5
+ value: "Value"
6
+ }, t = {
3
7
  open: { icon: "minus-box" },
4
8
  close: { icon: "plus-box" }
5
9
  };
@@ -94,10 +94,22 @@ declare const QPropertyListRow: <T>(__VLS_props: NonNullable<Awaited<typeof __VL
94
94
  }>) => import('vue').VNode & {
95
95
  __ctx?: Awaited<typeof __VLS_setup>;
96
96
  };
97
- declare const QPropertyListGroup: import('vue').DefineComponent<import('./types').QPropertyListGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
98
- click: () => any;
99
- }, string, import('vue').PublicProps, Readonly<import('./types').QPropertyListGroupProps> & Readonly<{
100
- onClick?: (() => any) | undefined;
97
+ declare const QPropertyListGroup: import('vue').DefineComponent<{
98
+ open?: boolean;
99
+ } & import('../..').QBaseComponentProps & Omit<import('./types').QPropertyListGroup, "id"> & {
100
+ noToggle?: boolean;
101
+ icons?: typeof import('./constants').DEFAULT_ICONS;
102
+ texts?: typeof import('./constants').DEFAULT_TEXTS;
103
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
104
+ "update:open": (value: boolean) => any;
105
+ }, string, import('vue').PublicProps, Readonly<{
106
+ open?: boolean;
107
+ } & import('../..').QBaseComponentProps & Omit<import('./types').QPropertyListGroup, "id"> & {
108
+ noToggle?: boolean;
109
+ icons?: typeof import('./constants').DEFAULT_ICONS;
110
+ texts?: typeof import('./constants').DEFAULT_TEXTS;
111
+ }> & Readonly<{
112
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
101
113
  }>, {
102
114
  icons: typeof import('./constants').DEFAULT_ICONS;
103
115
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableRowElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/index.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkC,CAAA;AACrD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;2BASwhR,KAAK;;;;;;;;;cAA4J,KAAK;SAAiB,CAAC;CAT3qR,CAAA;AAC3D,QAAA,MAAM,kBAAkB;;;;;;6FAAuC,CAAA;AAC/D,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;EAAuC,CAAA;AAG/D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAA;AAGlF,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/index.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkC,CAAA;AACrD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;2BASymY,KAAK;;;;;;;;;cAA4J,KAAK;SAAiB,CAAC;CAT5vY,CAAA;AAC3D,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;6FAAuC,CAAA;AAC/D,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;EAAuC,CAAA;AAG/D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAA;AAGlF,cAAc,SAAS,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSection/QSection.vue"],"names":[],"mappings":"AAkBA;AAgDC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AA8BvC,iBAAS,cAAc;WAwCT,OAAO,IAA6B;;iCAZb,GAAG;gCACJ,GAAG;yBACV,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;wFAQnB,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":"QSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSection/QSection.vue"],"names":[],"mappings":"AAkBA;AAwDC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAgCvC,iBAAS,cAAc;WAwCT,OAAO,IAA6B;;iCAZb,GAAG;gCACJ,GAAG;yBACV,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;wFAQnB,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"}