@quidgest/ui 0.28.0 → 0.29.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 (203) hide show
  1. package/CHANGELOG.md +51 -8
  2. package/README.md +19 -0
  3. package/dist/json/api.json +1517 -86
  4. package/dist/manifest/components.json +0 -1
  5. package/dist/ui.css +59 -68
  6. package/dist/ui.esm.js +1031 -1043
  7. package/dist/ui.js +1000 -1013
  8. package/dist/ui.min.css +1 -1
  9. package/dist/ui.min.js +1000 -1013
  10. package/dist/ui.scss +83 -27
  11. package/esm/components/QAccordion/QAccordion.d.ts +3 -3
  12. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  13. package/esm/components/QAccordion/QAccordion.vue.js +33 -30
  14. package/esm/components/QAccordion/QAccordionItem.d.ts +4 -1
  15. package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -1
  16. package/esm/components/QAccordion/QAccordionItem.vue.js +37 -6
  17. package/esm/components/QAccordion/index.d.ts +20 -11
  18. package/esm/components/QAccordion/index.d.ts.map +1 -1
  19. package/esm/components/QAvatar/QAvatar.d.ts.map +1 -1
  20. package/esm/components/QAvatar/QAvatar.vue.js +19 -12
  21. package/esm/components/QAvatar/types.d.ts +2 -1
  22. package/esm/components/QAvatar/types.d.ts.map +1 -1
  23. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  24. package/esm/components/QBadge/QBadge.vue.js +36 -37
  25. package/esm/components/QButtonGroup/QButtonGroup.vue.js +18 -18
  26. package/esm/components/QCarousel/QCarousel.d.ts +1 -1
  27. package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
  28. package/esm/components/QCarousel/QCarousel.vue.js +99 -95
  29. package/esm/components/QCarousel/constants.d.ts +1 -0
  30. package/esm/components/QCarousel/constants.d.ts.map +1 -1
  31. package/esm/components/QCarousel/constants.js +2 -1
  32. package/esm/components/QCarousel/index.d.ts +3 -3
  33. package/esm/components/QCheckbox/QCheckbox.d.ts +0 -2
  34. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  35. package/esm/components/QCheckbox/QCheckbox.vue.js +33 -36
  36. package/esm/components/QCheckbox/index.d.ts +0 -1
  37. package/esm/components/QCheckbox/index.d.ts.map +1 -1
  38. package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
  39. package/esm/components/QColorPicker/QColorPicker.vue.js +1 -2
  40. package/esm/components/QCombobox/QCombobox.d.ts +9 -0
  41. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  42. package/esm/components/QCombobox/QCombobox.vue.js +142 -134
  43. package/esm/components/QCombobox/index.d.ts +10 -0
  44. package/esm/components/QCombobox/index.d.ts.map +1 -1
  45. package/esm/components/QCombobox/types.d.ts +8 -0
  46. package/esm/components/QCombobox/types.d.ts.map +1 -1
  47. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  48. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +199 -219
  49. package/esm/components/QDialog/QDialog.d.ts +1 -1
  50. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  51. package/esm/components/QDialog/QDialog.vue.js +4 -4
  52. package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
  53. package/esm/components/QDialog/index.d.ts +6 -6
  54. package/esm/components/QDialog/types.d.ts +3 -3
  55. package/esm/components/QDialog/types.d.ts.map +1 -1
  56. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +8 -0
  57. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  58. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +136 -124
  59. package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
  60. package/esm/components/QFileUpload/QFileUpload.vue.js +82 -79
  61. package/esm/components/QFocusWrap/QFocusWrap.d.ts.map +1 -1
  62. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  63. package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -1
  64. package/esm/components/QIcon/QSvgSymbol.vue.js +31 -31
  65. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  66. package/esm/components/QInputGroup/QInputGroup.vue.js +67 -41
  67. package/esm/components/QInputGroup/types.d.ts +15 -1
  68. package/esm/components/QInputGroup/types.d.ts.map +1 -1
  69. package/esm/components/QList/QList.d.ts +6 -0
  70. package/esm/components/QList/QList.d.ts.map +1 -1
  71. package/esm/components/QList/QList.vue.js +4 -1
  72. package/esm/components/QList/QListItem.d.ts +6 -2
  73. package/esm/components/QList/QListItem.d.ts.map +1 -1
  74. package/esm/components/QList/QListItem.vue.js +54 -41
  75. package/esm/components/QList/index.d.ts +6 -1
  76. package/esm/components/QList/index.d.ts.map +1 -1
  77. package/esm/components/QList/types.d.ts +16 -0
  78. package/esm/components/QList/types.d.ts.map +1 -1
  79. package/esm/components/QOverflow/QOverflow.d.ts +6 -1
  80. package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
  81. package/esm/components/QOverflow/QOverflow.vue.js +90 -95
  82. package/esm/components/QOverflow/index.d.ts +3 -3
  83. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  84. package/esm/components/QOverlay/QOverlay.vue.js +125 -117
  85. package/esm/components/QOverlay/types.d.ts +9 -2
  86. package/esm/components/QOverlay/types.d.ts.map +1 -1
  87. package/esm/components/QPasswordField/QPasswordField.d.ts +1 -0
  88. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  89. package/esm/components/QPasswordField/QPasswordField.vue.js +5 -0
  90. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +1 -0
  91. package/esm/components/QPasswordField/index.d.ts +6 -0
  92. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  93. package/esm/components/QPasswordField/types.d.ts +10 -0
  94. package/esm/components/QPasswordField/types.d.ts.map +1 -1
  95. package/esm/components/QPhoneField/QPhoneField.d.ts +184 -18
  96. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  97. package/esm/components/QPhoneField/index.d.ts +92 -9
  98. package/esm/components/QPhoneField/index.d.ts.map +1 -1
  99. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  100. package/esm/components/QPropertyList/QPropertyList.vue.js +62 -60
  101. package/esm/components/QPropertyList/QPropertyListRow.vue.js +2 -2
  102. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  103. package/esm/components/QRadioGroup/QRadioButton.vue.js +2 -2
  104. package/esm/components/QRadioGroup/QRadioGroup.vue.js +46 -46
  105. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -1
  106. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +7 -7
  107. package/esm/components/QRemoveScrollBar/utils/gap.d.ts +0 -6
  108. package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -1
  109. package/esm/components/QRemoveScrollBar/utils/gap.js +12 -18
  110. package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts +11 -0
  111. package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts.map +1 -1
  112. package/esm/components/QRemoveScrollBar/utils/stylesheet.js +5 -5
  113. package/esm/components/QSelect/QSelect.d.ts +157 -0
  114. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  115. package/esm/components/QSelect/QSelect.vue.js +240 -212
  116. package/esm/components/QSelect/index.d.ts +84 -0
  117. package/esm/components/QSelect/index.d.ts.map +1 -1
  118. package/esm/components/QSelect/types.d.ts +8 -0
  119. package/esm/components/QSelect/types.d.ts.map +1 -1
  120. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  121. package/esm/components/QSidebar/QSidebar.vue.js +1 -2
  122. package/esm/components/QSidebar/QSidebarAnchor.vue.js +1 -1
  123. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  124. package/esm/components/QSidebar/QSidebarItem.vue.js +1 -1
  125. package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
  126. package/esm/components/QSidebar/QSidebarPanel.vue.js +5 -5
  127. package/esm/components/QSidebar/context.d.ts +3 -3
  128. package/esm/components/QSidebar/context.d.ts.map +1 -1
  129. package/esm/components/QSteps/QSteps.d.ts +4 -4
  130. package/esm/components/QSteps/QSteps.d.ts.map +1 -1
  131. package/esm/components/QSteps/QSteps.vue.js +9 -15
  132. package/esm/components/QSteps/index.d.ts +2 -2
  133. package/esm/components/QSteps/types.d.ts +2 -1
  134. package/esm/components/QSteps/types.d.ts.map +1 -1
  135. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  136. package/esm/components/QTabs/QTab.vue.js +2 -2
  137. package/esm/components/QTabs/QTabs.d.ts +4 -4
  138. package/esm/components/QTabs/QTabs.d.ts.map +1 -1
  139. package/esm/components/QTabs/QTabs.vue.js +86 -85
  140. package/esm/components/QTabs/context.d.ts +3 -3
  141. package/esm/components/QTabs/context.d.ts.map +1 -1
  142. package/esm/components/QTabs/index.d.ts +2 -2
  143. package/esm/components/QTextArea/QTextArea.d.ts +1 -1
  144. package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
  145. package/esm/components/QTextArea/QTextArea.vue.js +25 -24
  146. package/esm/components/QTextArea/index.d.ts +3 -3
  147. package/esm/components/QToast/QToast.d.ts.map +1 -1
  148. package/esm/components/QToast/QToast.vue.js +7 -4
  149. package/esm/components/QToast/QToaster.d.ts.map +1 -1
  150. package/esm/components/QToast/types.d.ts +3 -3
  151. package/esm/components/QToggleGroup/QToggleGroup.d.ts +3 -3
  152. package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
  153. package/esm/components/QToggleGroup/QToggleGroup.vue.js +34 -31
  154. package/esm/components/QToggleGroup/index.d.ts +8 -8
  155. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  156. package/esm/components/QTooltip/QTooltip.vue.js +1 -1
  157. package/esm/composables/defaults.d.ts +10 -0
  158. package/esm/composables/defaults.d.ts.map +1 -1
  159. package/esm/composables/defaults.js +8 -5
  160. package/esm/composables/useDialog/_internal.js +8 -11
  161. package/esm/composables/useDialog/index.js +1 -2
  162. package/esm/composables/useDialog/types.d.ts.map +1 -1
  163. package/esm/composables/useDropZone/index.d.ts +1 -11
  164. package/esm/composables/useDropZone/index.d.ts.map +1 -1
  165. package/esm/composables/useDropZone/index.js +23 -26
  166. package/esm/composables/useGroup/index.d.ts.map +1 -1
  167. package/esm/composables/useGroup/index.js +15 -15
  168. package/esm/composables/useOverlayScope/index.d.ts +29 -0
  169. package/esm/composables/useOverlayScope/index.d.ts.map +1 -0
  170. package/esm/composables/useOverlayScope/index.js +23 -0
  171. package/esm/composables/useTextareaAutosize/index.d.ts +3 -1
  172. package/esm/composables/useTextareaAutosize/index.d.ts.map +1 -1
  173. package/esm/composables/useTextareaAutosize/index.js +6 -6
  174. package/esm/composables/useToast/_internal.js +10 -15
  175. package/esm/composables/useToast/index.js +1 -2
  176. package/esm/composables/useToast/types.d.ts.map +1 -1
  177. package/esm/framework.js +14 -12
  178. package/esm/index.d.ts +1 -2
  179. package/esm/index.d.ts.map +1 -1
  180. package/esm/symbols/overlayScope.d.ts +4 -0
  181. package/esm/symbols/overlayScope.d.ts.map +1 -0
  182. package/esm/symbols/overlayScope.js +4 -0
  183. package/esm/types/component.d.ts +8 -0
  184. package/esm/types/component.d.ts.map +1 -1
  185. package/esm/types/index.d.ts +1 -1
  186. package/esm/types/index.d.ts.map +1 -1
  187. package/esm/utils/color/parse.d.ts.map +1 -1
  188. package/esm/utils/color/parse.js +3 -10
  189. package/esm/utils/date.d.ts +35 -13
  190. package/esm/utils/date.d.ts.map +1 -1
  191. package/esm/utils/date.js +313 -253
  192. package/esm/utils/mask.d.ts +1 -0
  193. package/esm/utils/mask.d.ts.map +1 -1
  194. package/esm/utils/mask.js +42 -100
  195. package/esm/utils/overlay.d.ts +13 -1
  196. package/esm/utils/overlay.d.ts.map +1 -1
  197. package/esm/utils/overlay.js +55 -41
  198. package/esm/utils/safeTriangle.d.ts.map +1 -1
  199. package/esm/utils/safeTriangle.js +2 -2
  200. package/esm/utils/setupPropsProxy.d.ts +3 -1
  201. package/esm/utils/setupPropsProxy.d.ts.map +1 -1
  202. package/esm/utils/setupPropsProxy.js +2 -2
  203. package/package.json +9 -6
@@ -1,12 +1,12 @@
1
- import { provideDefaults as e } from "../../composables/defaults.js";
2
- import { useGroup as t } from "../../composables/useGroup/index.js";
3
- import { useId as n } from "../../composables/useId/index.js";
4
- import { QButtonGroup as r } from "../QButtonGroup/index.js";
5
- import { createBlock as i, defineComponent as a, mergeModels as o, normalizeClass as s, openBlock as c, renderSlot as l, toRef as u, unref as d, useModel as f, watch as p, withCtx as m } from "vue";
1
+ import { booleanDefault as e, provideDefaults as t } from "../../composables/defaults.js";
2
+ import { useGroup as n } from "../../composables/useGroup/index.js";
3
+ import { useId as r } from "../../composables/useId/index.js";
4
+ import { QButtonGroup as i } from "../QButtonGroup/index.js";
5
+ import { createBlock as a, defineComponent as o, mergeModels as s, normalizeClass as c, openBlock as l, renderSlot as u, toRef as d, unref as f, useModel as p, watch as m, withCtx as h } from "vue";
6
6
  //#region src/components/QToggleGroup/QToggleGroup.vue?vue&type=script&setup=true&lang.ts
7
- var h = /*@__PURE__*/ a({
7
+ var g = /*@__PURE__*/ o({
8
8
  __name: "QToggleGroup",
9
- props: /*@__PURE__*/ o({
9
+ props: /*@__PURE__*/ s({
10
10
  id: {},
11
11
  class: {},
12
12
  block: { type: Boolean },
@@ -17,34 +17,37 @@ var h = /*@__PURE__*/ a({
17
17
  multiple: { type: Boolean },
18
18
  required: { type: Boolean }
19
19
  }, {
20
- modelValue: { type: [
21
- String,
22
- Number,
23
- Boolean,
24
- Symbol,
25
- Array
26
- ] },
20
+ modelValue: {
21
+ type: [
22
+ String,
23
+ Number,
24
+ Boolean,
25
+ Symbol,
26
+ Array
27
+ ],
28
+ default: void 0
29
+ },
27
30
  modelModifiers: {}
28
31
  }),
29
32
  emits: ["update:modelValue"],
30
- setup(a) {
31
- let o = a, h = f(a, "modelValue"), g = n(u(o, "id")), { active: _ } = t({
32
- active: h,
33
- required: u(o, "required"),
34
- multiple: u(o, "multiple")
33
+ setup(o) {
34
+ let s = o, g = p(o, "modelValue"), _ = r(d(s, "id")), { active: v } = n({
35
+ active: g,
36
+ required: d(s, "required"),
37
+ multiple: d(s, "multiple")
35
38
  });
36
- return p(_, (e) => {
37
- h.value = e;
38
- }), e({ QToggleGroupItem: {
39
- disabled: u(o, "disabled"),
40
- borderless: u(o, "borderless")
41
- } }), (e, t) => (c(), i(d(r), {
42
- id: d(g),
43
- class: s(o.class),
44
- block: o.block,
45
- elevated: o.elevated
39
+ return m(v, (e) => {
40
+ g.value = e;
41
+ }), t({ QToggleGroupItem: {
42
+ disabled: e(() => s.disabled),
43
+ borderless: e(() => s.borderless)
44
+ } }), (e, t) => (l(), a(f(i), {
45
+ id: f(_),
46
+ class: c(s.class),
47
+ block: s.block,
48
+ elevated: s.elevated
46
49
  }, {
47
- default: m(() => [l(e.$slots, "default")]),
50
+ default: h(() => [u(e.$slots, "default")]),
48
51
  _: 3
49
52
  }, 8, [
50
53
  "id",
@@ -55,4 +58,4 @@ var h = /*@__PURE__*/ a({
55
58
  }
56
59
  });
57
60
  //#endregion
58
- export { h as default };
61
+ export { g as default };
@@ -1,6 +1,6 @@
1
1
  declare const QToggleGroup: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
- modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[];
3
+ modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[] | undefined;
4
4
  } & import('../..').QBaseComponentProps & {
5
5
  block?: boolean;
6
6
  borderless?: boolean;
@@ -11,9 +11,9 @@ declare const QToggleGroup: {
11
11
  multiple?: boolean;
12
12
  required?: boolean;
13
13
  }> & Readonly<{
14
- "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any) | undefined;
14
+ "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[] | undefined) => any) | undefined;
15
15
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
- "update:modelValue": (value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any;
16
+ "update:modelValue": (value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[] | undefined) => any;
17
17
  }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
18
18
  P: {};
19
19
  B: {};
@@ -22,7 +22,7 @@ declare const QToggleGroup: {
22
22
  M: {};
23
23
  Defaults: {};
24
24
  }, Readonly<{
25
- modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[];
25
+ modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[] | undefined;
26
26
  } & import('../..').QBaseComponentProps & {
27
27
  block?: boolean;
28
28
  borderless?: boolean;
@@ -33,13 +33,13 @@ declare const QToggleGroup: {
33
33
  multiple?: boolean;
34
34
  required?: boolean;
35
35
  }> & Readonly<{
36
- "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any) | undefined;
36
+ "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[] | undefined) => any) | undefined;
37
37
  }>, {}, {}, {}, {}, {}>;
38
38
  __isFragment?: never;
39
39
  __isTeleport?: never;
40
40
  __isSuspense?: never;
41
41
  } & import('vue').ComponentOptionsBase<Readonly<{
42
- modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[];
42
+ modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[] | undefined;
43
43
  } & import('../..').QBaseComponentProps & {
44
44
  block?: boolean;
45
45
  borderless?: boolean;
@@ -50,9 +50,9 @@ declare const QToggleGroup: {
50
50
  multiple?: boolean;
51
51
  required?: boolean;
52
52
  }> & Readonly<{
53
- "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any) | undefined;
53
+ "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[] | undefined) => any) | undefined;
54
54
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
55
- "update:modelValue": (value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any;
55
+ "update:modelValue": (value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[] | undefined) => any;
56
56
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
57
57
  $slots: {
58
58
  default?(_: {}): any;
@@ -1 +1 @@
1
- {"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"AAsCA;AAuHC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAOtC,KAAK,WAAW,GAAG,aAAa,CAAC;AAuElC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;;;;;YAXtB,GAAG;yBACD,GAAG;;;;EAehC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"AAoCA;AAsHC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAOtC,KAAK,WAAW,GAAG,aAAa,CAAC;AAwElC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;;;;;YAXtB,GAAG;yBACD,GAAG;;;;EAehC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -48,7 +48,7 @@ var T = { class: "q-tooltip__content" }, E = ["innerHTML"], D = /*@__PURE__*/ d(
48
48
  }
49
49
  g(M);
50
50
  function N(e, t) {
51
- t && j(), e && D && A();
51
+ t && n(t)?.removeAttribute("aria-describedby"), e && D.value && A();
52
52
  }
53
53
  return C(() => f.anchor, N), (e, n) => (_(), s(i, null, [v(e.$slots, "anchor", { props: { "aria-describedby": x(O) } }), u(x(r), {
54
54
  id: x(O),
@@ -11,6 +11,16 @@ export declare function useDefaults(): ComputedRef<QComponentDefaults | undefine
11
11
  * @param defaults - The default values to be provided or updated.
12
12
  */
13
13
  export declare function provideDefaults(defaults: MaybeRefOrGetter<QDefaults>): void;
14
+ /**
15
+ * Passes a boolean prop down with {@link provideDefaults}: `true` when it is set, `undefined`
16
+ * otherwise. `toRef(props, 'disabled')` would pass `false` when the prop is not set, since Vue
17
+ * casts a missing boolean prop to `false`, and that `false` would override the children's own
18
+ * default and the one the app sets for them.
19
+ *
20
+ * @param flag - Reads the boolean prop.
21
+ * @returns The value to pass in the defaults.
22
+ */
23
+ export declare function booleanDefault(flag: () => boolean | undefined): ComputedRef<true | undefined>;
14
24
  /**
15
25
  * Function to inject default values using the Vue.js `inject` function.
16
26
  * It retrieves the default values from the specified symbol and ensures
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/composables/defaults.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAOxD,eAAO,MAAM,eAAe,eAAe,CAAA;AAE3C,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,kBAAkB,CAAC,CAAA;AAEnE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjE,wBAAgB,WAAW,IAAI,WAAW,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAgBzE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,gBAAgB,CAAC,SAAS,CAAC,GAAG,IAAI,CAY3E;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAAC,SAAS,CAAC,CAMvD"}
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/composables/defaults.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAOxD,eAAO,MAAM,eAAe,eAAe,CAAA;AAE3C,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,kBAAkB,CAAC,CAAA;AAEnE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjE,wBAAgB,WAAW,IAAI,WAAW,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAezE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,gBAAgB,CAAC,SAAS,CAAC,GAAG,IAAI,CAY3E;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC,IAAI,GAAG,SAAS,CAAC,CAE7F;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAAC,SAAS,CAAC,CAMvD"}
@@ -8,18 +8,21 @@ function l() {
8
8
  if (!e) throw Error("[Quidgest UI] useDefaults must be called from inside a setup function");
9
9
  let i = e.type.name ?? e.type.__name;
10
10
  if (!i) throw Error("[Quidgest UI] Could not determine component name");
11
- let a = d(), o = a.value?.Global, s = a.value?.[i];
12
- return n(() => t(o, s));
11
+ let a = f();
12
+ return n(() => t(a.value?.Global, a.value?.[i]));
13
13
  }
14
14
  function u(r) {
15
15
  if (e(r)) return;
16
- let i = d(), l = o(s(r));
16
+ let i = f(), l = o(s(r));
17
17
  a(c, n(() => e(l.value) ? i.value : t(i.value, l.value)));
18
18
  }
19
- function d() {
19
+ function d(e) {
20
+ return n(() => e() || void 0);
21
+ }
22
+ function f() {
20
23
  let e = i(c, void 0);
21
24
  if (!e) throw Error("[Quidgest UI] Could not find defaults instance");
22
25
  return e;
23
26
  }
24
27
  //#endregion
25
- export { c as DEFAULTS_SYMBOL, d as injectDefaults, u as provideDefaults, l as useDefaults };
28
+ export { c as DEFAULTS_SYMBOL, d as booleanDefault, f as injectDefaults, u as provideDefaults, l as useDefaults };
@@ -2,10 +2,8 @@ import { inject as e, ref as t } from "vue";
2
2
  //#region src/composables/useDialog/_internal.ts
3
3
  var n = Symbol.for("q-dialog");
4
4
  function r(e, t) {
5
- let n = e.dialogs.value[t];
6
- if (!n) return;
7
- let r = e.pendingByKey.get(n.entryKey);
8
- r && !r.settled && (r.reject(/* @__PURE__ */ Error("Dialog removed before it was ready")), e.pendingByKey.delete(n.entryKey)), (n.handlers?.onLeave?.() ?? !0) && e.dialogs.value.splice(t, 1);
5
+ let n = e.dialogs.value[t], r = e.pendingByKey.get(n.entryKey);
6
+ r && (r.reject(/* @__PURE__ */ Error("Dialog removed before it was ready")), e.pendingByKey.delete(n.entryKey)), (n.handlers?.onLeave?.() ?? !0) && e.dialogs.value.splice(t, 1);
9
7
  }
10
8
  function i(e, t) {
11
9
  return e.dialogs.value.some((e) => e.id === t || e.props.id === t);
@@ -14,7 +12,7 @@ function a(e, t) {
14
12
  let n = e.dialogs.value.findIndex((e) => e.props.id === t && e.id === void 0);
15
13
  if (n === -1) return;
16
14
  let r = e.dialogs.value[n], i = e.pendingByKey.get(r.entryKey);
17
- i && !i.settled && (i.reject(/* @__PURE__ */ Error("Dialog canceled")), e.pendingByKey.delete(r.entryKey)), e.dialogs.value.splice(n, 1);
15
+ i && (i.reject(/* @__PURE__ */ Error("Dialog canceled")), e.pendingByKey.delete(r.entryKey)), e.dialogs.value.splice(n, 1);
18
16
  }
19
17
  function o() {
20
18
  let e = t([]), n = /* @__PURE__ */ new Map(), r = 0, i = 0;
@@ -23,11 +21,11 @@ function o() {
23
21
  if (!i) return;
24
22
  i.id = r;
25
23
  let a = n.get(t);
26
- !a || a.settled || (a.settled = !0, a.resolve(r), n.delete(t), i.handlers?.onEnter?.());
24
+ a && (a.resolve(r), n.delete(t), i.handlers?.onEnter?.());
27
25
  }
28
26
  function o(t, n) {
29
27
  let r = e.value.find((e) => e.entryKey === t);
30
- !r || r.id === n || (r.id = n);
28
+ r && (r.id = n);
31
29
  }
32
30
  function s() {
33
31
  return `dialog-${++r}`;
@@ -40,10 +38,9 @@ function o() {
40
38
  i++;
41
39
  }
42
40
  function u() {
43
- if (i = Math.max(0, i - 1), !(i > 0)) {
44
- for (let [, e] of n) e.settled || e.reject(/* @__PURE__ */ Error("Dialog provider unmounted before the dialog was ready"));
45
- n.clear(), e.value = [];
46
- }
41
+ i--;
42
+ for (let [, e] of n) e.reject(/* @__PURE__ */ Error("Dialog provider unmounted before the dialog was ready"));
43
+ n.clear(), e.value = [];
47
44
  }
48
45
  return {
49
46
  dialogs: e,
@@ -13,8 +13,7 @@ function a() {
13
13
  let a = s();
14
14
  c.set(a, {
15
15
  resolve: t,
16
- reject: i,
17
- settled: !1
16
+ reject: i
18
17
  }), o.value.push({
19
18
  entryKey: a,
20
19
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AA+EnG;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,EAAE,YAAY,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC1B,CAAA;AAeD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;;;OAIG;IACH,OAAO,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAA;IAEnC;;;;;OAKG;IACH,SAAS,EAAE,CACV,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,cAAc,EACxB,QAAQ,CAAC,EAAE,eAAe,KACtB,OAAO,CAAC,MAAM,CAAC,CAAA;IAEpB;;;OAGG;IACH,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAElC;;;OAGG;IACH,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AA8EnG;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,EAAE,YAAY,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC1B,CAAA;AAeD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;;;OAIG;IACH,OAAO,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAA;IAEnC;;;;;OAKG;IACH,SAAS,EAAE,CACV,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,cAAc,EACxB,QAAQ,CAAC,EAAE,eAAe,KACtB,OAAO,CAAC,MAAM,CAAC,CAAA;IAEpB;;;OAGG;IACH,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAElC;;;OAGG;IACH,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC,CAAA"}
@@ -2,30 +2,20 @@ import { MaybeRef, Ref } from 'vue';
2
2
  interface DropZoneOptions {
3
3
  /** Callback fired when valid files are dropped */
4
4
  onDrop?: (files: File[]) => void;
5
- /** Callback fired when files are dragged over the drop zone */
6
- onDragOver?: (event: DragEvent) => void;
7
- /** Callback fired when files are dragged out of the drop zone */
8
- onDragLeave?: (event: DragEvent) => void;
9
5
  /** Array of accepted MIME types or file patterns (e.g., 'image/*', '.pdf') */
10
6
  accept?: MaybeRef<string[]>;
11
7
  /** Whether to allow multiple files to be dropped */
12
8
  multiple?: MaybeRef<boolean>;
13
- /** Maximum allowed file size in bytes */
14
- maxSize?: number;
15
9
  /** Whether the drop zone is enabled */
16
10
  enabled?: MaybeRef<boolean>;
17
11
  }
18
12
  interface UseDropZoneReturn {
19
13
  /** Whether files are currently being dragged over the drop zone */
20
14
  isOverDropZone: Ref<boolean>;
21
- /** Whether the currently dragged files match the accepted types */
15
+ /** Whether the zone would take the currently dragged files: their count and types fit */
22
16
  isValid: Ref<boolean>;
23
17
  /** Whether the drop zone is currently enabled */
24
18
  isEnabled: Ref<boolean>;
25
- /** Function to enable the drop zone */
26
- enable: () => void;
27
- /** Function to disable the drop zone */
28
- disable: () => void;
29
19
  }
30
20
  /**
31
21
  * Vue composable for handling file drag and drop with validation
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDropZone/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAKxC,UAAU,eAAe;IACxB,kDAAkD;IAClD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IAChC,+DAA+D;IAC/D,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;IACvC,iEAAiE;IACjE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;IACxC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;IAC3B,oDAAoD;IACpD,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC5B,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uCAAuC;IACvC,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;CAC3B;AAED,UAAU,iBAAiB;IAC1B,mEAAmE;IACnE,cAAc,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAC5B,mEAAmE;IACnE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACrB,iDAAiD;IACjD,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACvB,uCAAuC;IACvC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,wCAAwC;IACxC,OAAO,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAC1B,UAAU,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EACnC,OAAO,GAAE,eAAoB,GAC3B,iBAAiB,CAmJnB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDropZone/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAKxC,UAAU,eAAe;IACxB,kDAAkD;IAClD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IAChC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;IAC3B,oDAAoD;IACpD,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC5B,uCAAuC;IACvC,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;CAC3B;AAED,UAAU,iBAAiB;IAC1B,mEAAmE;IACnE,cAAc,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAC5B,yFAAyF;IACzF,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACrB,iDAAiD;IACjD,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAC1B,UAAU,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EACnC,OAAO,GAAE,eAAoB,GAC3B,iBAAiB,CAwInB"}
@@ -1,43 +1,40 @@
1
1
  import { isRef as e, onMounted as t, onUnmounted as n, ref as r, unref as i, watch as a } from "vue";
2
2
  //#region src/composables/useDropZone/index.ts
3
3
  function o(o, s = {}) {
4
- let { onDrop: c, onDragOver: l, onDragLeave: u, accept: d = [], multiple: f, maxSize: p, enabled: m = !0 } = s, h = 0, g = r(!1), _ = r(!1), v = r(i(m)), y = (e) => {
5
- let t = i(d);
4
+ let { onDrop: c, accept: l = [], multiple: u, enabled: d = !0 } = s, f = 0, p = r(!1), m = r(!1), h = r(i(d)), g = (e) => {
5
+ let t = i(l);
6
6
  return t.length === 0 || t.some((t) => e.match(t));
7
- }, b = (e) => !(p && e.size > p || !y(e.type)), x = () => {
8
- h = 0, g.value = !1, _.value = !1;
9
- }, S = (e) => {
10
- if (!v.value) return;
11
- e.preventDefault(), x();
7
+ }, _ = (e) => g(e.type), v = () => {
8
+ f = 0, p.value = !1, m.value = !1;
9
+ }, y = (e) => {
10
+ let t = Array.from(e.dataTransfer?.items || []).filter((e) => e.kind === "file");
11
+ return !i(u) && t.length > 1 ? !1 : t.some((e) => g(e.type));
12
+ }, b = (e) => {
13
+ if (e.preventDefault(), !h.value) return;
14
+ v();
12
15
  let t = Array.from(e.dataTransfer?.files || []);
13
- if (!i(f) && t.length > 1) return;
14
- let n = t.filter(b);
16
+ if (!i(u) && t.length > 1) return;
17
+ let n = t.filter(_);
15
18
  n.length && c && c(n);
19
+ }, x = (e) => {
20
+ e.preventDefault(), h.value && (m.value = y(e), f++, f === 1 && (p.value = !0));
21
+ }, S = (e) => {
22
+ h.value && (e.preventDefault(), f--, f === 0 && (p.value = !1, m.value = !1));
16
23
  }, C = (e) => {
17
- v.value && (e.preventDefault(), _.value = Array.from(e.dataTransfer?.items || []).map((e) => e.type).some(y), h++, h === 1 && (g.value = !0, l?.(e)));
18
- }, w = (e) => {
19
- v.value && (e.preventDefault(), h--, h === 0 && (g.value = !1, _.value = !1, u?.(e)));
20
- }, T = (e) => {
21
- v.value && e.preventDefault();
24
+ e.preventDefault(), (!h.value || !m.value) && e.dataTransfer && (e.dataTransfer.dropEffect = "none");
22
25
  };
23
26
  return s.enabled && e(s.enabled) && a(s.enabled, (e) => {
24
- v.value = e, e || x();
27
+ h.value = e, e || v();
25
28
  }), t(() => {
26
29
  let e = o.value;
27
- e && (e.addEventListener("drop", S), e.addEventListener("dragenter", C), e.addEventListener("dragleave", w), e.addEventListener("dragover", T));
30
+ e && (e.addEventListener("drop", b), e.addEventListener("dragenter", x), e.addEventListener("dragleave", S), e.addEventListener("dragover", C));
28
31
  }), n(() => {
29
32
  let e = o.value;
30
- e && (e.removeEventListener("drop", S), e.removeEventListener("dragenter", C), e.removeEventListener("dragleave", w), e.removeEventListener("dragover", T));
33
+ e && (e.removeEventListener("drop", b), e.removeEventListener("dragenter", x), e.removeEventListener("dragleave", S), e.removeEventListener("dragover", C));
31
34
  }), {
32
- isOverDropZone: g,
33
- isValid: _,
34
- isEnabled: v,
35
- enable: () => {
36
- v.value = !0;
37
- },
38
- disable: () => {
39
- v.value = !1, x();
40
- }
35
+ isOverDropZone: p,
36
+ isValid: m,
37
+ isEnabled: h
41
38
  };
42
39
  }
43
40
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useGroup/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAKnE,qDAAqD;AACrD,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAyB,CAAA;AAE/E,KAAK,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,SAAS,CAAA;AAEpC;;;GAGG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAE5B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAEtB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;IAElB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CA2C9D;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,aAAa,GAAG,SAAS,CA+DhF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useGroup/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAKnE,qDAAqD;AACrD,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAyB,CAAA;AAE/E,KAAK,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,SAAS,CAAA;AAEpC;;;GAGG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAE5B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAEtB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;IAElB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CA2B9D;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,aAAa,GAAG,SAAS,CA4DhF"}
@@ -3,14 +3,14 @@ import { computed as e, inject as t, isRef as n, provide as r, ref as i, unref a
3
3
  var s = Symbol.for("q-group");
4
4
  function c(t) {
5
5
  let c = {
6
- active: i(u(t)),
6
+ active: i(u(a(t.active), a(t.multiple))),
7
7
  multiple: e(() => a(t.multiple) || !1),
8
8
  required: e(() => a(t.required) || !1)
9
9
  };
10
10
  return n(t.active) && o(t.active, (e) => {
11
11
  c.active.value = e;
12
12
  }), o(() => c.multiple.value, (e) => {
13
- e ? c.active.value ? c.active.value = [c.active.value] : c.active.value = [] : Array.isArray(c.active.value) && c.active.value.length === 1 ? c.active.value = c.active.value[0] : c.active.value = void 0;
13
+ c.active.value = u(c.active.value, e);
14
14
  }), r(s, c), c;
15
15
  }
16
16
  function l(n) {
@@ -21,27 +21,27 @@ function l(n) {
21
21
  return Array.isArray(r.active.value) ? r.active.value?.includes(e) : r.active.value === e;
22
22
  });
23
23
  return o(() => a(n), (e, t) => {
24
- if (!(t === void 0 || e === t)) {
25
- if (Array.isArray(r.active.value)) {
26
- let n = r.active.value.indexOf(t);
27
- if (n === -1) return;
28
- let i = [...r.active.value];
29
- i[n] = e, r.active.value = i;
30
- return;
31
- }
32
- r.active.value === t && (r.active.value = e);
24
+ if (Array.isArray(r.active.value)) {
25
+ let n = r.active.value.indexOf(t);
26
+ if (n === -1) return;
27
+ let i = [...r.active.value];
28
+ i[n] = e, r.active.value = i;
29
+ return;
33
30
  }
31
+ r.active.value === t && (r.active.value = e);
34
32
  }), {
35
33
  isActive: i,
36
34
  toggle: () => {
37
35
  let e = a(n);
38
- Array.isArray(r.active.value) ? i.value ? (!r.required?.value || r.active.value.length > 1) && (r.active.value = r.active.value?.filter((t) => t !== e)) : r.active.value = [...r.active.value, e] : r.active.value === e ? r.required?.value || (r.active.value = void 0) : r.active.value = e;
36
+ if (r.multiple.value) {
37
+ let t = u(r.active.value, !0);
38
+ t.includes(e) ? (!r.required?.value || t.length > 1) && (r.active.value = t.filter((t) => t !== e)) : r.active.value = [...t, e];
39
+ } else r.active.value === e ? r.required?.value || (r.active.value = void 0) : r.active.value = e;
39
40
  }
40
41
  };
41
42
  }
42
- function u(e) {
43
- let t = a(e.multiple), n = a(e.active);
44
- return t ? Array.isArray(n) ? n : n === void 0 ? [] : [n] : Array.isArray(n) ? n.length === 1 ? n[0] : void 0 : n;
43
+ function u(e, t) {
44
+ return t ? Array.isArray(e) ? e : e == null ? [] : [e] : Array.isArray(e) ? e.length === 1 ? e[0] : void 0 : e;
45
45
  }
46
46
  //#endregion
47
47
  export { s as GroupSymbol, c as useGroup, l as useGroupItem };
@@ -0,0 +1,29 @@
1
+ import { Ref } from 'vue';
2
+ export type QOverlayScope = {
3
+ /**
4
+ * Adds the element of an open overlay to the scope, and to every scope around it.
5
+ *
6
+ * @param element - The overlay's root element.
7
+ * @returns A function that removes the element again.
8
+ */
9
+ register(element: HTMLElement): () => void;
10
+ };
11
+ /**
12
+ * Makes the overlays opened by the components inside this one part of it. Overlays are
13
+ * teleported out of the component's element, so `contains` on that element misses them, and
14
+ * their events never reach it. Only overlays rendered inside the component register, so a
15
+ * dialog or menu the app opens elsewhere stays outside.
16
+ *
17
+ * @param onFocusOut - Called for each `focusout` inside an open overlay of the scope.
18
+ * @returns `contains`, which tells whether a node is inside an open overlay of the scope.
19
+ */
20
+ export declare function provideOverlayScope(onFocusOut: (event: FocusEvent) => void): {
21
+ contains: (node: Node) => boolean;
22
+ };
23
+ /**
24
+ * Registers an overlay with the nearest overlay scope while its element exists.
25
+ *
26
+ * @param element - The overlay's root element, `null` while the overlay is closed.
27
+ */
28
+ export declare function useOverlayScopeItem(element: Readonly<Ref<HTMLElement | null>>): void;
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useOverlayScope/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAK9B,MAAM,MAAM,aAAa,GAAG;IAC3B;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,IAAI,CAAA;CAC1C,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;qBAoBxD,IAAI;EAEtB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,QAiB7E"}
@@ -0,0 +1,23 @@
1
+ import { OverlayScopeKey as e } from "../../symbols/overlayScope.js";
2
+ import { inject as t, onBeforeUnmount as n, provide as r, watch as i } from "vue";
3
+ //#region src/composables/useOverlayScope/index.ts
4
+ function a(n) {
5
+ let i = t(e, null), a = /* @__PURE__ */ new Set();
6
+ return r(e, { register(e) {
7
+ a.add(e), e.addEventListener("focusout", n);
8
+ let t = i?.register(e);
9
+ return () => {
10
+ a.delete(e), e.removeEventListener("focusout", n), t?.();
11
+ };
12
+ } }), { contains: (e) => [...a].some((t) => t.contains(e)) };
13
+ }
14
+ function o(r) {
15
+ let a = t(e, null);
16
+ if (!a) return;
17
+ let o;
18
+ i(r, (e) => {
19
+ o?.(), o = e ? a.register(e) : void 0;
20
+ }, { immediate: !0 }), n(() => o?.());
21
+ }
22
+ //#endregion
23
+ export { a as provideOverlayScope, o as useOverlayScopeItem };
@@ -1,6 +1,8 @@
1
- import { ComputedRef } from 'vue';
1
+ import { ComputedRef, WatchSource } from 'vue';
2
2
  interface UseTextareaAutosizeOptions {
3
3
  element: ComputedRef<HTMLTextAreaElement | undefined>;
4
+ /** The text in the textarea. The textarea resizes after it changes, typed or set from code. */
5
+ value?: WatchSource<string | undefined>;
4
6
  styleProp?: 'height' | 'minHeight';
5
7
  }
6
8
  export declare function useTextareaAutosize(options: UseTextareaAutosizeOptions): {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useTextareaAutosize/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,KAAK,CAAA;AAE7C,UAAU,0BAA0B;IACnC,OAAO,EAAE,WAAW,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAA;IACrD,SAAS,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAClC;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B;;;EA+BtE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useTextareaAutosize/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,KAAK,CAAA;AAE/D,UAAU,0BAA0B;IACnC,OAAO,EAAE,WAAW,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAA;IACrD,+FAA+F;IAC/F,KAAK,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACvC,SAAS,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAClC;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B;;;EA+BtE"}
@@ -1,17 +1,17 @@
1
1
  import { watch as e } from "vue";
2
2
  //#region src/composables/useTextareaAutosize/index.ts
3
3
  function t(t) {
4
- let { element: n, styleProp: r = "height" } = t, i = () => {
4
+ let { element: n, value: r, styleProp: i = "height" } = t, a = () => {
5
5
  let e = n.value;
6
6
  if (!e) return;
7
- e.style[r] = "auto";
7
+ e.style[i] = "auto";
8
8
  let t = e.scrollHeight;
9
- e.style[r] = `${t}px`;
10
- }, a = e(n, i), o = e(() => n.value?.value, i);
9
+ e.style[i] = `${t}px`;
10
+ }, o = e(n, a), s = r ? e(r, a, { flush: "post" }) : () => {};
11
11
  return {
12
- triggerResize: i,
12
+ triggerResize: a,
13
13
  stop: () => {
14
- a(), o();
14
+ o(), s();
15
15
  }
16
16
  };
17
17
  }
@@ -2,20 +2,15 @@ import { inject as e, ref as t } from "vue";
2
2
  //#region src/composables/useToast/_internal.ts
3
3
  var n = Symbol.for("q-toast");
4
4
  function r(e, t, n) {
5
- let r = e.get(t);
6
- if (!r || r.settled) {
7
- e.delete(t);
8
- return;
9
- }
10
- r.reject(n), e.delete(t);
5
+ e.get(t)?.reject(n), e.delete(t);
11
6
  }
12
7
  function i(e, t) {
13
- for (let [, n] of e) n.settled || n.reject(t);
8
+ for (let [, n] of e) n.reject(t);
14
9
  e.clear();
15
10
  }
16
11
  function a(e, t) {
17
12
  let n = e.toasts.value[t];
18
- n && (r(e.pendingByKey, n.entryKey, /* @__PURE__ */ Error("Toast removed before it was ready")), e.toasts.value.splice(t, 1), e.flushQueue());
13
+ r(e.pendingByKey, n.entryKey, /* @__PURE__ */ Error("Toast removed before it was ready")), e.toasts.value.splice(t, 1), e.flushQueue();
19
14
  }
20
15
  function o(e, t) {
21
16
  let n = e.toasts.value.findIndex((e) => e.id === t);
@@ -87,21 +82,21 @@ function u() {
87
82
  if (!i) return;
88
83
  i.id = n;
89
84
  let a = r.get(t);
90
- !a || a.settled || (a.settled = !0, a.resolve(n), r.delete(t));
85
+ a && (a.resolve(n), r.delete(t));
91
86
  }
92
87
  function p(t, n) {
93
88
  let r = e.value.find((e) => e.entryKey === t);
94
- !r || r.id === n || (r.id = n);
89
+ r && (r.id = n);
95
90
  }
96
91
  function m(t, r) {
97
92
  let i = e.value.find((e) => e.entryKey === t) ?? n.value.find((e) => e.entryKey === t);
98
93
  i && (i.remainingTimeout = r);
99
94
  }
100
95
  function h(t) {
101
- let r = e.value.find((e) => e.entryKey === t) ?? n.value.find((e) => e.entryKey === t);
102
- if (!r || r.remainingTimeout === void 0) return;
103
- let i = r.remainingTimeout;
104
- return delete r.remainingTimeout, i;
96
+ let n = e.value.find((e) => e.entryKey === t);
97
+ if (!n || n.remainingTimeout === void 0) return;
98
+ let r = n.remainingTimeout;
99
+ return delete n.remainingTimeout, r;
105
100
  }
106
101
  function g(t) {
107
102
  let n = e.value.find((e) => e.entryKey === t);
@@ -118,7 +113,7 @@ function u() {
118
113
  s++;
119
114
  }
120
115
  function b() {
121
- s = Math.max(0, s - 1), !(s > 0) && (i(r, /* @__PURE__ */ Error("QToaster unmounted before the toast was ready")), e.value = [], n.value = []);
116
+ s--, i(r, /* @__PURE__ */ Error("QToaster unmounted before the toast was ready")), e.value = [], n.value = [];
122
117
  }
123
118
  return {
124
119
  toasts: e,
@@ -11,8 +11,7 @@ function a() {
11
11
  let r = s();
12
12
  l.set(r, {
13
13
  resolve: t,
14
- reject: n,
15
- settled: !1
14
+ reject: n
16
15
  }), c({
17
16
  entryKey: r,
18
17
  props: e