@quidgest/ui 0.11.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/dist/manifest/components.json +24 -0
  2. package/dist/ui.css +27 -2
  3. package/dist/ui.esm.js +700 -654
  4. package/dist/ui.js +8 -5
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +147 -133
  7. package/dist/ui.scss +28 -3
  8. package/esm/components/QButton/QButton.d.ts +92 -0
  9. package/esm/components/QButton/QButton.d.ts.map +1 -0
  10. package/esm/components/QButton/QButton.vue.js +87 -0
  11. package/esm/components/QButton/QButton.vue2.js +4 -0
  12. package/esm/components/QButton/index.d.ts +4 -0
  13. package/esm/components/QButton/index.d.ts.map +1 -0
  14. package/esm/components/QButtonGroup/QButtonGroup.d.ts +51 -0
  15. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -0
  16. package/esm/components/QButtonGroup/QButtonGroup.vue.js +41 -0
  17. package/esm/components/QButtonGroup/QButtonGroup.vue2.js +4 -0
  18. package/esm/components/QButtonGroup/index.d.ts +4 -0
  19. package/esm/components/QButtonGroup/index.d.ts.map +1 -0
  20. package/esm/components/QButtonToggle/QButtonToggle.d.ts +81 -0
  21. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -0
  22. package/esm/components/QButtonToggle/QButtonToggle.vue.js +58 -0
  23. package/esm/components/QButtonToggle/QButtonToggle.vue2.js +4 -0
  24. package/esm/components/QButtonToggle/index.d.ts +4 -0
  25. package/esm/components/QButtonToggle/index.d.ts.map +1 -0
  26. package/esm/components/QCombobox/QCombobox.d.ts +524 -0
  27. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -0
  28. package/esm/components/QCombobox/QCombobox.vue.js +381 -0
  29. package/esm/components/QCombobox/QCombobox.vue2.js +4 -0
  30. package/esm/components/QCombobox/index.d.ts +4 -0
  31. package/esm/components/QCombobox/index.d.ts.map +1 -0
  32. package/esm/components/QField/QField.d.ts +89 -0
  33. package/esm/components/QField/QField.d.ts.map +1 -0
  34. package/esm/components/QField/QField.vue.js +81 -0
  35. package/esm/components/QField/QField.vue2.js +4 -0
  36. package/esm/components/QField/index.d.ts +5 -0
  37. package/esm/components/QField/index.d.ts.map +1 -0
  38. package/esm/components/QField/index.js +6 -0
  39. package/esm/components/QIcon/InlineSvg.d.ts +110 -0
  40. package/esm/components/QIcon/InlineSvg.d.ts.map +1 -0
  41. package/esm/components/QIcon/InlineSvg.js +139 -0
  42. package/esm/components/QIcon/QIcon.d.ts +50 -0
  43. package/esm/components/QIcon/QIcon.d.ts.map +1 -0
  44. package/esm/components/QIcon/QIcon.vue.js +36 -0
  45. package/esm/components/QIcon/QIcon.vue2.js +4 -0
  46. package/esm/components/QIcon/QIconFont.d.ts +57 -0
  47. package/esm/components/QIcon/QIconFont.d.ts.map +1 -0
  48. package/esm/components/QIcon/QIconFont.vue.js +29 -0
  49. package/esm/components/QIcon/QIconFont.vue2.js +4 -0
  50. package/esm/components/QIcon/QIconImg.d.ts +38 -0
  51. package/esm/components/QIcon/QIconImg.d.ts.map +1 -0
  52. package/esm/components/QIcon/QIconImg.vue.js +22 -0
  53. package/esm/components/QIcon/QIconImg.vue2.js +4 -0
  54. package/esm/components/QIcon/QIconSvg.d.ts +72 -0
  55. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -0
  56. package/esm/components/QIcon/QIconSvg.vue.js +34 -0
  57. package/esm/components/QIcon/QIconSvg.vue2.js +4 -0
  58. package/esm/components/QIcon/index.d.ts +8 -0
  59. package/esm/components/QIcon/index.d.ts.map +1 -0
  60. package/esm/components/QIcon/index.js +15 -0
  61. package/esm/components/QInputGroup/QInputGroup.d.ts +85 -0
  62. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -0
  63. package/esm/components/QInputGroup/QInputGroup.vue.js +79 -0
  64. package/esm/components/QInputGroup/QInputGroup.vue2.js +4 -0
  65. package/esm/components/QInputGroup/index.d.ts +4 -0
  66. package/esm/components/QInputGroup/index.d.ts.map +1 -0
  67. package/esm/components/QLineLoader/QLineLoader.d.ts +32 -0
  68. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -0
  69. package/esm/components/QLineLoader/QLineLoader.vue.js +22 -0
  70. package/esm/components/QLineLoader/QLineLoader.vue2.js +4 -0
  71. package/esm/components/QLineLoader/index.d.ts +4 -0
  72. package/esm/components/QLineLoader/index.d.ts.map +1 -0
  73. package/esm/components/QList/QList.d.ts +159 -0
  74. package/esm/components/QList/QList.d.ts.map +1 -0
  75. package/esm/components/QList/QList.vue.js +187 -0
  76. package/esm/components/QList/QList.vue2.js +4 -0
  77. package/esm/components/QList/QListItem.d.ts +89 -0
  78. package/esm/components/QList/QListItem.d.ts.map +1 -0
  79. package/esm/components/QList/QListItem.vue.js +102 -0
  80. package/esm/components/QList/QListItem.vue2.js +4 -0
  81. package/esm/components/QList/QListItemGroup.d.ts +43 -0
  82. package/esm/components/QList/QListItemGroup.d.ts.map +1 -0
  83. package/esm/components/QList/QListItemGroup.vue.js +29 -0
  84. package/esm/components/QList/QListItemGroup.vue2.js +4 -0
  85. package/esm/components/QList/index.d.ts +7 -0
  86. package/esm/components/QList/index.d.ts.map +1 -0
  87. package/esm/components/QList/index.js +12 -0
  88. package/esm/components/QOverlay/QOverlay.d.ts +236 -0
  89. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -0
  90. package/esm/components/QOverlay/QOverlay.vue.js +250 -0
  91. package/esm/components/QOverlay/QOverlay.vue2.js +4 -0
  92. package/esm/components/QOverlay/index.d.ts +4 -0
  93. package/esm/components/QOverlay/index.d.ts.map +1 -0
  94. package/esm/components/QOverlay/index.js +6 -0
  95. package/esm/components/QPopover/QPopover.d.ts +132 -0
  96. package/esm/components/QPopover/QPopover.d.ts.map +1 -0
  97. package/esm/components/QPopover/QPopover.vue.js +71 -0
  98. package/esm/components/QPopover/QPopover.vue2.js +4 -0
  99. package/esm/components/QPopover/index.d.ts +4 -0
  100. package/esm/components/QPopover/index.d.ts.map +1 -0
  101. package/esm/components/QSelect/QSelect.d.ts +265 -0
  102. package/esm/components/QSelect/QSelect.d.ts.map +1 -0
  103. package/esm/components/QSelect/QSelect.vue.js +317 -0
  104. package/esm/components/QSelect/QSelect.vue2.js +4 -0
  105. package/esm/components/QSelect/index.d.ts +4 -0
  106. package/esm/components/QSelect/index.d.ts.map +1 -0
  107. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +46 -0
  108. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -0
  109. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +39 -0
  110. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue2.js +4 -0
  111. package/esm/components/QSkeletonLoader/index.d.ts +4 -0
  112. package/esm/components/QSkeletonLoader/index.d.ts.map +1 -0
  113. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +39 -0
  114. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -0
  115. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +26 -0
  116. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue2.js +4 -0
  117. package/esm/components/QSpinnerLoader/index.d.ts +4 -0
  118. package/esm/components/QSpinnerLoader/index.d.ts.map +1 -0
  119. package/esm/components/QSpinnerLoader/index.js +6 -0
  120. package/esm/components/QTextField/QTextField.d.ts +162 -0
  121. package/esm/components/QTextField/QTextField.d.ts.map +1 -0
  122. package/esm/components/QTextField/QTextField.vue.js +99 -0
  123. package/esm/components/QTextField/QTextField.vue2.js +4 -0
  124. package/esm/components/QTextField/index.d.ts +4 -0
  125. package/esm/components/QTextField/index.d.ts.map +1 -0
  126. package/esm/components/QTextField/index.js +6 -0
  127. package/esm/components/QThemeProvider/QThemeProvider.d.ts +25 -0
  128. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -0
  129. package/esm/components/QThemeProvider/QThemeProvider.vue.js +24 -0
  130. package/esm/components/QThemeProvider/QThemeProvider.vue2.js +4 -0
  131. package/esm/components/QThemeProvider/index.d.ts +4 -0
  132. package/esm/components/QThemeProvider/index.d.ts.map +1 -0
  133. package/esm/components/QTooltip/QTooltip.d.ts +189 -0
  134. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -0
  135. package/esm/components/QTooltip/QTooltip.vue.js +74 -0
  136. package/esm/components/QTooltip/QTooltip.vue2.js +4 -0
  137. package/esm/components/QTooltip/index.d.ts +4 -0
  138. package/esm/components/QTooltip/index.d.ts.map +1 -0
  139. package/esm/components/index.d.ts +18 -0
  140. package/esm/components/index.d.ts.map +1 -0
  141. package/esm/components/index.js +46 -0
  142. package/esm/composables/defaults.d.ts +25 -0
  143. package/esm/composables/defaults.d.ts.map +1 -0
  144. package/esm/composables/defaults.js +33 -0
  145. package/esm/composables/index.d.ts +2 -0
  146. package/esm/composables/index.d.ts.map +1 -0
  147. package/esm/composables/overlay.d.ts +116 -0
  148. package/esm/composables/overlay.d.ts.map +1 -0
  149. package/esm/composables/overlay.js +142 -0
  150. package/esm/composables/theme.d.ts +18 -0
  151. package/esm/composables/theme.d.ts.map +1 -0
  152. package/esm/composables/theme.js +20 -0
  153. package/esm/composables/uid.d.ts +8 -0
  154. package/esm/composables/uid.d.ts.map +1 -0
  155. package/esm/composables/uid.js +7 -0
  156. package/esm/framework.d.ts +29 -0
  157. package/esm/framework.d.ts.map +1 -0
  158. package/esm/framework.js +47 -0
  159. package/esm/index.d.ts +35 -0
  160. package/esm/index.d.ts.map +1 -0
  161. package/esm/index.js +12 -0
  162. package/esm/templates/index.d.ts +2 -0
  163. package/esm/templates/index.d.ts.map +1 -0
  164. package/esm/templates/index.js +5 -0
  165. package/esm/templates/theme.d.ts +5 -0
  166. package/esm/templates/theme.d.ts.map +1 -0
  167. package/esm/templates/theme.js +67 -0
  168. package/esm/types/primitive.d.ts +2 -0
  169. package/esm/types/primitive.d.ts.map +1 -0
  170. package/esm/utils/color.d.ts +105 -0
  171. package/esm/utils/color.d.ts.map +1 -0
  172. package/esm/utils/color.js +14 -0
  173. package/esm/utils/getCurrentInstance.d.ts +2 -0
  174. package/esm/utils/getCurrentInstance.d.ts.map +1 -0
  175. package/esm/utils/getElement.d.ts +6 -0
  176. package/esm/utils/getElement.d.ts.map +1 -0
  177. package/esm/utils/getElement.js +6 -0
  178. package/esm/utils/isEmpty.d.ts +2 -0
  179. package/esm/utils/isEmpty.d.ts.map +1 -0
  180. package/esm/utils/isEmpty.js +6 -0
  181. package/esm/utils/isObject.d.ts +2 -0
  182. package/esm/utils/isObject.d.ts.map +1 -0
  183. package/esm/utils/isObject.js +6 -0
  184. package/esm/utils/merge.d.ts +2 -0
  185. package/esm/utils/merge.d.ts.map +1 -0
  186. package/esm/utils/merge.js +21 -0
  187. package/esm/utils/setupPropsProxy.d.ts +12 -0
  188. package/esm/utils/setupPropsProxy.d.ts.map +1 -0
  189. package/esm/utils/setupPropsProxy.js +32 -0
  190. package/esm/utils/string.d.ts +7 -0
  191. package/esm/utils/string.d.ts.map +1 -0
  192. package/esm/utils/string.js +6 -0
  193. package/esm/utils/theme.d.ts +22 -0
  194. package/esm/utils/theme.d.ts.map +1 -0
  195. package/esm/utils/theme.js +40 -0
  196. package/package.json +48 -50
  197. package/dist/index.d.ts +0 -4076
  198. package/dist/ui.esm.js.map +0 -1
  199. package/dist/ui.js.map +0 -1
  200. package/dist/ui.min.js.map +0 -1
@@ -0,0 +1,85 @@
1
+ import { QFieldSize } from '../QField';
2
+ import { Icon } from '../QIcon';
3
+
4
+ export type QInputGroupProps = {
5
+ /**
6
+ * The field unique identifier.
7
+ */
8
+ id?: string;
9
+ /**
10
+ * The label of the field.
11
+ */
12
+ label?: string;
13
+ /**
14
+ * If set to true, an asterisk (*) is displayed
15
+ * to indicate that the field is required.
16
+ */
17
+ required?: boolean;
18
+ /**
19
+ * An icon to add at the start of the field group.
20
+ */
21
+ prependIcon?: Icon;
22
+ /**
23
+ * An icon to add at the end of the field group.
24
+ */
25
+ appendIcon?: Icon;
26
+ /**
27
+ * The size category of the field.
28
+ */
29
+ size?: QFieldSize;
30
+ /**
31
+ * Custom set of classes to apply to the component.
32
+ */
33
+ class?: string | unknown[];
34
+ };
35
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QInputGroupProps>, {
36
+ id: undefined;
37
+ label: string;
38
+ prependIcon: undefined;
39
+ appendIcon: undefined;
40
+ size: string;
41
+ class: undefined;
42
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QInputGroupProps>, {
43
+ id: undefined;
44
+ label: string;
45
+ prependIcon: undefined;
46
+ appendIcon: undefined;
47
+ size: string;
48
+ class: undefined;
49
+ }>>>, {
50
+ size: QFieldSize;
51
+ class: string | unknown[];
52
+ label: string;
53
+ id: string;
54
+ prependIcon: Icon;
55
+ appendIcon: Icon;
56
+ }, {}>, {
57
+ prepend?(_: {}): any;
58
+ default?(_: {}): any;
59
+ append?(_: {}): any;
60
+ extras?(_: {}): any;
61
+ }>;
62
+ export default _default;
63
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
64
+ type __VLS_TypePropsToRuntimeProps<T> = {
65
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
66
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
67
+ } : {
68
+ type: import('vue').PropType<T[K]>;
69
+ required: true;
70
+ };
71
+ };
72
+ type __VLS_WithDefaults<P, D> = {
73
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
74
+ default: D[K];
75
+ }> : P[K];
76
+ };
77
+ type __VLS_Prettify<T> = {
78
+ [K in keyof T]: T[K];
79
+ } & {};
80
+ type __VLS_WithTemplateSlots<T, S> = T & {
81
+ new (): {
82
+ $slots: S;
83
+ };
84
+ };
85
+ //# sourceMappingURL=QInputGroup.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QInputGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/QInputGroup.vue"],"names":[],"mappings":"AA+BA;AAUC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAA;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2MF,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,79 @@
1
+ import { defineComponent as f, openBlock as s, createBlock as m, unref as n, normalizeClass as _, createSlots as v, withCtx as a, createElementBlock as r, createVNode as d, normalizeProps as l, guardReactiveProps as i, createCommentVNode as p, renderSlot as t } from "vue";
2
+ import "../QField/index.js";
3
+ import "../QIcon/index.js";
4
+ import { provideDefaults as k } from "../../composables/defaults.js";
5
+ import I from "../QField/QField.vue.js";
6
+ import u from "../QIcon/QIcon.vue.js";
7
+ const $ = {
8
+ key: 0,
9
+ class: "q-input-group__prepend"
10
+ }, q = { key: 0 }, z = {
11
+ key: 1,
12
+ class: "q-input-group__append"
13
+ }, h = { key: 0 }, Q = /* @__PURE__ */ f({
14
+ __name: "QInputGroup",
15
+ props: {
16
+ id: { default: void 0 },
17
+ label: { default: "" },
18
+ required: { type: Boolean },
19
+ prependIcon: { default: void 0 },
20
+ appendIcon: { default: void 0 },
21
+ size: { default: "large" },
22
+ class: { default: void 0 }
23
+ },
24
+ setup(c) {
25
+ const e = c;
26
+ return k({
27
+ QField: {
28
+ size: "block"
29
+ }
30
+ }), (o, y) => (s(), m(n(I), {
31
+ id: e.id,
32
+ class: _(["q-input-group", e.class]),
33
+ label: e.label,
34
+ required: e.required,
35
+ size: e.size
36
+ }, v({
37
+ default: a(() => [
38
+ o.$slots.prepend || e.prependIcon ? (s(), r("div", $, [
39
+ e.prependIcon ? (s(), r("span", q, [
40
+ d(
41
+ n(u),
42
+ l(i(e.prependIcon)),
43
+ null,
44
+ 16
45
+ /* FULL_PROPS */
46
+ )
47
+ ])) : p("v-if", !0),
48
+ t(o.$slots, "prepend")
49
+ ])) : p("v-if", !0),
50
+ t(o.$slots, "default"),
51
+ o.$slots.append || e.appendIcon ? (s(), r("div", z, [
52
+ e.appendIcon ? (s(), r("span", h, [
53
+ d(
54
+ n(u),
55
+ l(i(e.appendIcon)),
56
+ null,
57
+ 16
58
+ /* FULL_PROPS */
59
+ )
60
+ ])) : p("v-if", !0),
61
+ t(o.$slots, "append")
62
+ ])) : p("v-if", !0)
63
+ ]),
64
+ _: 2
65
+ /* DYNAMIC */
66
+ }, [
67
+ o.$slots.extras ? {
68
+ name: "extras",
69
+ fn: a(() => [
70
+ t(o.$slots, "extras")
71
+ ]),
72
+ key: "0"
73
+ } : void 0
74
+ ]), 1032, ["id", "class", "label", "required", "size"]));
75
+ }
76
+ });
77
+ export {
78
+ Q as default
79
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QInputGroup.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { default as QInputGroup } from './QInputGroup';
2
+
3
+ export { QInputGroup };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,mBAAmB,CAAA;AAQ3C,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -0,0 +1,32 @@
1
+ export type QLineLoaderProps = {
2
+ /**
3
+ * Custom set of classes to apply to the component.
4
+ */
5
+ class?: string | unknown[];
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QLineLoaderProps>, {
8
+ class: undefined;
9
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QLineLoaderProps>, {
10
+ class: undefined;
11
+ }>>>, {
12
+ class: string | unknown[];
13
+ }, {}>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
24
+ type __VLS_WithDefaults<P, D> = {
25
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
26
+ default: D[K];
27
+ }> : P[K];
28
+ };
29
+ type __VLS_Prettify<T> = {
30
+ [K in keyof T]: T[K];
31
+ } & {};
32
+ //# sourceMappingURL=QLineLoader.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QLineLoader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLineLoader/QLineLoader.vue"],"names":[],"mappings":"AAGA;AAEC,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;;;;;;;;AAmDF,wBAMG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { defineComponent as n, openBlock as s, createElementBlock as a, normalizeClass as l } from "vue";
2
+ const p = /* @__PURE__ */ n({
3
+ __name: "QLineLoader",
4
+ props: {
5
+ class: { default: void 0 }
6
+ },
7
+ setup(e) {
8
+ const o = e;
9
+ return (r, t) => (s(), a(
10
+ "div",
11
+ {
12
+ class: l(["q-line-loader", o.class])
13
+ },
14
+ null,
15
+ 2
16
+ /* CLASS */
17
+ ));
18
+ }
19
+ });
20
+ export {
21
+ p as default
22
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QLineLoader.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { default as QLineLoader } from './QLineLoader';
2
+
3
+ export { QLineLoader };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QLineLoader/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,mBAAmB,CAAA;AAQ3C,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -0,0 +1,159 @@
1
+ import { Primitive } from '../../types/primitive';
2
+ import { QListItemGroupProps, QListItemProps } from '.';
3
+
4
+ type Item = Omit<QListItemProps, 'value' | 'label'> & {
5
+ [key: string]: any;
6
+ };
7
+ type Group = QListItemGroupProps & {
8
+ /**
9
+ * Whether the entire item group is disabled.
10
+ */
11
+ disabled?: boolean;
12
+ };
13
+ export type QListProps = {
14
+ /**
15
+ * The value of the currently highlighted item.
16
+ */
17
+ highlighted?: Primitive;
18
+ /**
19
+ * The list of available items for selection.
20
+ */
21
+ items: Item[];
22
+ /**
23
+ * The item groups used for organizing the available items.
24
+ */
25
+ groups?: Group[];
26
+ /**
27
+ * The property of each item object that holds its value.
28
+ */
29
+ itemValue?: string;
30
+ /**
31
+ * The property of each item object that holds its title.
32
+ */
33
+ itemLabel?: string;
34
+ /**
35
+ * Indicates whether the list is disabled.
36
+ */
37
+ disabled?: boolean;
38
+ /**
39
+ * Custom set of classes to apply to the component.
40
+ */
41
+ class?: string | unknown[];
42
+ };
43
+ /**
44
+ * Focuses on the HTML element at the specified index among the child elements.
45
+ *
46
+ * If the index is out of bounds or the element is inaccessible, no action is taken.
47
+ *
48
+ * @param itemIdx - The index of the HTML element to focus on.
49
+ */
50
+ declare function focusItem(itemIdx: number, preventScroll?: boolean): void;
51
+ declare function getItem(idx: number): HTMLElement | undefined;
52
+ /**
53
+ * Retrieves the index of the first focusable item among the child elements.
54
+ *
55
+ * If no focusable item is found, it returns -1.
56
+ *
57
+ * @returns The index of the first focusable item or -1 if no focusable item is found.
58
+ */
59
+ declare function getFirstFocusableItemIndex(): number;
60
+ /**
61
+ * Retrieves the index of the last focusable item among the child elements.
62
+ *
63
+ * If no focusable item is found, it returns -1.
64
+ *
65
+ * @returns The index of the last focusable item or -1 if no focusable item is found.
66
+ */
67
+ declare function getLastFocusableItemIndex(): number;
68
+ /**
69
+ * Retrieves the index of the adjacent focusable item based on the specified direction.
70
+ *
71
+ * If the direction is 'next', the function finds the index of the next focusable item.
72
+ * If the direction is 'prev', the function finds the index of the previous focusable item.
73
+ *
74
+ * @param direction - The direction in which to find the adjacent item ('next' or 'prev').
75
+ * @returns The index of the adjacent focusable item or the index of the active item if at the edge.
76
+ */
77
+ declare function getAdjacentItemIndex(idx: number, direction: 'next' | 'prev'): number;
78
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
79
+ modelValue: import('vue').PropType<any>;
80
+ class: {
81
+ type: import('vue').PropType<string | unknown[]>;
82
+ default: undefined;
83
+ };
84
+ disabled: {
85
+ type: import('vue').PropType<boolean>;
86
+ };
87
+ highlighted: {
88
+ type: import('vue').PropType<Primitive>;
89
+ default: undefined;
90
+ };
91
+ items: {
92
+ type: import('vue').PropType<Item[]>;
93
+ required: true;
94
+ };
95
+ groups: {
96
+ type: import('vue').PropType<Group[]>;
97
+ default: () => never[];
98
+ };
99
+ itemValue: {
100
+ type: import('vue').PropType<string>;
101
+ default: string;
102
+ };
103
+ itemLabel: {
104
+ type: import('vue').PropType<string>;
105
+ default: string;
106
+ };
107
+ }, {
108
+ focusItem: typeof focusItem;
109
+ getItem: typeof getItem;
110
+ getAdjacentItemIndex: typeof getAdjacentItemIndex;
111
+ getFirstFocusableItemIndex: typeof getFirstFocusableItemIndex;
112
+ getLastFocusableItemIndex: typeof getLastFocusableItemIndex;
113
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
114
+ modelValue: import('vue').PropType<any>;
115
+ class: {
116
+ type: import('vue').PropType<string | unknown[]>;
117
+ default: undefined;
118
+ };
119
+ disabled: {
120
+ type: import('vue').PropType<boolean>;
121
+ };
122
+ highlighted: {
123
+ type: import('vue').PropType<Primitive>;
124
+ default: undefined;
125
+ };
126
+ items: {
127
+ type: import('vue').PropType<Item[]>;
128
+ required: true;
129
+ };
130
+ groups: {
131
+ type: import('vue').PropType<Group[]>;
132
+ default: () => never[];
133
+ };
134
+ itemValue: {
135
+ type: import('vue').PropType<string>;
136
+ default: string;
137
+ };
138
+ itemLabel: {
139
+ type: import('vue').PropType<string>;
140
+ default: string;
141
+ };
142
+ }>>, {
143
+ class: string | unknown[];
144
+ highlighted: Primitive;
145
+ groups: Group[];
146
+ itemValue: string;
147
+ itemLabel: string;
148
+ }, {}>, {
149
+ item?(_: {
150
+ item: Item;
151
+ }): any;
152
+ }>;
153
+ export default _default;
154
+ type __VLS_WithTemplateSlots<T, S> = T & {
155
+ new (): {
156
+ $slots: S;
157
+ };
158
+ };
159
+ //# sourceMappingURL=QList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AAmCA;AAMC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAElD,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAO7D,KAAK,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;IAGpD,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAClB,CAAA;AAED,KAAK,KAAK,GAAG,mBAAmB,GAAG;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IAEvB;;OAEG;IACH,KAAK,EAAE,IAAI,EAAE,CAAA;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;AA+ID;;;;;;GAMG;AACH,iBAAS,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,GAAE,OAAe,GAAG,IAAI,CAGxE;AAmBD,iBAAS,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAIrD;AAaD;;;;;;GAMG;AACH,iBAAS,0BAA0B,IAAI,MAAM,CAO5C;AAED;;;;;;GAMG;AACH,iBAAS,yBAAyB,IAAI,MAAM,CAO3C;AAoCD;;;;;;;;GAQG;AACH,iBAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAuB7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoLF,wBAAwG;AAUxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,187 @@
1
+ import { defineComponent as U, mergeModels as $, useModel as H, ref as k, computed as y, openBlock as r, createBlock as p, resolveDynamicComponent as K, normalizeClass as N, withCtx as g, createElementBlock as w, Fragment as _, renderList as A, unref as S, renderSlot as R } from "vue";
2
+ import "./index.js";
3
+ import z from "./QListItemGroup.vue.js";
4
+ import G from "./QListItem.vue.js";
5
+ const X = /* @__PURE__ */ U({
6
+ __name: "QList",
7
+ props: /* @__PURE__ */ $({
8
+ highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
9
+ items: {},
10
+ groups: { default: () => [] },
11
+ itemValue: { default: "key" },
12
+ itemLabel: { default: "label" },
13
+ disabled: { type: Boolean },
14
+ class: { default: void 0 }
15
+ }, {
16
+ modelValue: {
17
+ type: [String, Number, Boolean, Symbol]
18
+ },
19
+ modelModifiers: {}
20
+ }),
21
+ emits: ["update:modelValue"],
22
+ setup(v, { expose: V }) {
23
+ const o = v, a = H(v, "modelValue"), c = k(!1), F = y(() => d.value.length > 1 ? "div" : "ul"), d = y(() => o.groups.length ? o.groups.filter(
24
+ (e) => o.items.some((t) => t.group === e.id)
25
+ ) : [{ id: "", title: "" }]), f = k(null);
26
+ function M(e) {
27
+ a.value = e;
28
+ }
29
+ function B() {
30
+ c.value = !0;
31
+ }
32
+ function D() {
33
+ c.value = !1;
34
+ }
35
+ function E(e) {
36
+ var n;
37
+ if ((n = f.value) != null && n.contains(e.relatedTarget))
38
+ return;
39
+ let t;
40
+ a.value ? t = o.items.findIndex((T) => T[o.itemValue] === a.value) : t = m();
41
+ const l = c.value;
42
+ i(t, l);
43
+ }
44
+ function L(e) {
45
+ switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), e.key) {
46
+ case "ArrowDown":
47
+ u("next");
48
+ break;
49
+ case "ArrowUp":
50
+ u("prev");
51
+ break;
52
+ case "Home":
53
+ u("first");
54
+ break;
55
+ case "End":
56
+ u("last");
57
+ break;
58
+ }
59
+ }
60
+ function u(e) {
61
+ switch (e) {
62
+ case "next":
63
+ case "prev":
64
+ i(q(e));
65
+ break;
66
+ case "first":
67
+ i(m());
68
+ break;
69
+ case "last":
70
+ i(h());
71
+ break;
72
+ }
73
+ }
74
+ function i(e, t = !1) {
75
+ var n;
76
+ (n = s()[e]) == null || n.focus({ preventScroll: t });
77
+ }
78
+ function s() {
79
+ var t;
80
+ const e = (t = f.value) == null ? void 0 : t.querySelectorAll("li");
81
+ return e ? Array.from(e) : [];
82
+ }
83
+ function C(e) {
84
+ return s()[e];
85
+ }
86
+ function j() {
87
+ return s().indexOf(document.activeElement);
88
+ }
89
+ function m() {
90
+ const e = s(), t = e.find((l) => b(l));
91
+ return t ? e.indexOf(t) : -1;
92
+ }
93
+ function h() {
94
+ const e = s(), t = [...e].reverse().find((l) => b(l));
95
+ return t ? e.indexOf(t) : -1;
96
+ }
97
+ function I(e, t, l) {
98
+ return t === "prev" && e === 0 || t === "next" && e === l.length - 1;
99
+ }
100
+ function q(e) {
101
+ const t = j();
102
+ return x(t, e);
103
+ }
104
+ function x(e, t) {
105
+ const l = s();
106
+ if (I(e, t, l))
107
+ return e;
108
+ let n = e + (t === "next" ? 1 : -1);
109
+ for (; !b(l[n]); ) {
110
+ if (I(n, t, l))
111
+ return e;
112
+ n += t === "next" ? 1 : -1;
113
+ }
114
+ return n;
115
+ }
116
+ function b(e) {
117
+ return e.tabIndex === -2;
118
+ }
119
+ function O(e) {
120
+ return e ? o.items.filter((t) => t.group === e) : o.items;
121
+ }
122
+ return V({
123
+ focusItem: i,
124
+ getItem: C,
125
+ getAdjacentItemIndex: x,
126
+ getFirstFocusableItemIndex: m,
127
+ getLastFocusableItemIndex: h
128
+ }), (e, t) => (r(), p(K(F.value), {
129
+ ref_key: "listRef",
130
+ ref: f,
131
+ class: N(["q-list", { "q-list--disabled": o.disabled }, o.class]),
132
+ role: "listbox",
133
+ tabindex: o.disabled ? -1 : 0,
134
+ onFocus: E,
135
+ onMousedown: B,
136
+ onMouseup: D,
137
+ onKeydown: L
138
+ }, {
139
+ default: g(() => [
140
+ (r(!0), w(
141
+ _,
142
+ null,
143
+ A(d.value, (l) => (r(), p(S(z), {
144
+ key: l.id,
145
+ id: l.id,
146
+ title: d.value.length === 1 ? void 0 : l.title
147
+ }, {
148
+ default: g(() => [
149
+ (r(!0), w(
150
+ _,
151
+ null,
152
+ A(O(l.id), (n) => (r(), p(S(G), {
153
+ key: n[o.itemValue],
154
+ value: n[o.itemValue],
155
+ label: n[o.itemLabel],
156
+ description: n.description,
157
+ icon: n.icon,
158
+ disabled: o.disabled || l.disabled || n.disabled,
159
+ highlighted: o.highlighted === n[o.itemValue],
160
+ selected: a.value === n[o.itemValue],
161
+ onSelect: M
162
+ }, {
163
+ default: g(() => [
164
+ R(e.$slots, "item", { item: n })
165
+ ]),
166
+ _: 2
167
+ /* DYNAMIC */
168
+ }, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))),
169
+ 128
170
+ /* KEYED_FRAGMENT */
171
+ ))
172
+ ]),
173
+ _: 2
174
+ /* DYNAMIC */
175
+ }, 1032, ["id", "title"]))),
176
+ 128
177
+ /* KEYED_FRAGMENT */
178
+ ))
179
+ ]),
180
+ _: 3
181
+ /* FORWARDED */
182
+ }, 40, ["class", "tabindex"]));
183
+ }
184
+ });
185
+ export {
186
+ X as default
187
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QList.vue.js";
2
+ export {
3
+ f as default
4
+ };