@quidgest/ui 0.13.2 → 0.14.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 (180) hide show
  1. package/dist/manifest/components.json +4 -0
  2. package/dist/ui.css +77 -0
  3. package/dist/ui.esm.js +1134 -912
  4. package/dist/ui.js +6 -6
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +96 -87
  7. package/dist/ui.scss +86 -4
  8. package/esm/components/QBadge/QBadge.d.ts +10 -35
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  10. package/esm/components/QBadge/QBadge.vue.js +19 -22
  11. package/esm/components/QBadge/index.d.ts +3 -139
  12. package/esm/components/QBadge/index.d.ts.map +1 -1
  13. package/esm/components/QBadge/types.d.ts +30 -0
  14. package/esm/components/QBadge/types.d.ts.map +1 -0
  15. package/esm/components/QBadge/types.js +8 -0
  16. package/esm/components/QButton/QButton.d.ts +8 -50
  17. package/esm/components/QButton/QButton.d.ts.map +1 -1
  18. package/esm/components/QButton/index.d.ts +3 -197
  19. package/esm/components/QButton/index.d.ts.map +1 -1
  20. package/esm/components/QButton/types.d.ts +47 -0
  21. package/esm/components/QButton/types.d.ts.map +1 -0
  22. package/esm/components/QButtonGroup/QButtonGroup.d.ts +7 -21
  23. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  24. package/esm/components/QButtonGroup/index.d.ts +3 -79
  25. package/esm/components/QButtonGroup/index.d.ts.map +1 -1
  26. package/esm/components/QButtonGroup/types.d.ts +19 -0
  27. package/esm/components/QButtonGroup/types.d.ts.map +1 -0
  28. package/esm/components/QButtonToggle/QButtonToggle.d.ts +6 -33
  29. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  30. package/esm/components/QButtonToggle/index.d.ts +3 -115
  31. package/esm/components/QButtonToggle/index.d.ts.map +1 -1
  32. package/esm/components/QButtonToggle/types.d.ts +32 -0
  33. package/esm/components/QButtonToggle/types.d.ts.map +1 -0
  34. package/esm/components/QCombobox/QCombobox.d.ts +266 -144
  35. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  36. package/esm/components/QCombobox/QCombobox.vue.js +52 -62
  37. package/esm/components/QCombobox/index.d.ts +3 -1075
  38. package/esm/components/QCombobox/index.d.ts.map +1 -1
  39. package/esm/components/QCombobox/types.d.ts +92 -0
  40. package/esm/components/QCombobox/types.d.ts.map +1 -0
  41. package/esm/components/QCombobox/types.js +14 -0
  42. package/esm/components/QDialog/QDialog.d.ts +18 -93
  43. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  44. package/esm/components/QDialog/QDialog.vue.js +45 -61
  45. package/esm/components/QDialog/index.d.ts +3 -267
  46. package/esm/components/QDialog/index.d.ts.map +1 -1
  47. package/esm/components/QDialog/types.d.ts +82 -0
  48. package/esm/components/QDialog/types.d.ts.map +1 -0
  49. package/esm/components/QDialog/types.js +23 -0
  50. package/esm/components/QField/QField.d.ts +15 -47
  51. package/esm/components/QField/QField.d.ts.map +1 -1
  52. package/esm/components/QField/index.d.ts +3 -168
  53. package/esm/components/QField/index.d.ts.map +1 -1
  54. package/esm/components/QField/types.d.ts +37 -0
  55. package/esm/components/QField/types.d.ts.map +1 -0
  56. package/esm/components/QIcon/InlineSvg.d.ts.map +1 -1
  57. package/esm/components/QIcon/InlineSvg.js +6 -13
  58. package/esm/components/QIcon/QIcon.d.ts +3 -19
  59. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  60. package/esm/components/QIcon/QIcon.vue.js +2 -2
  61. package/esm/components/QIcon/QIconFont.d.ts +2 -22
  62. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  63. package/esm/components/QIcon/QIconFont.vue.js +9 -9
  64. package/esm/components/QIcon/QIconImg.d.ts +3 -27
  65. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  66. package/esm/components/QIcon/QIconImg.vue.js +3 -3
  67. package/esm/components/QIcon/QIconSvg.d.ts +4 -36
  68. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  69. package/esm/components/QIcon/QIconSvg.vue.js +9 -9
  70. package/esm/components/QIcon/index.d.ts +9 -156
  71. package/esm/components/QIcon/index.d.ts.map +1 -1
  72. package/esm/components/QIcon/types.d.ts +40 -0
  73. package/esm/components/QIcon/types.d.ts.map +1 -0
  74. package/esm/components/QInputGroup/QInputGroup.d.ts +12 -42
  75. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  76. package/esm/components/QInputGroup/index.d.ts +3 -153
  77. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  78. package/esm/components/QInputGroup/types.d.ts +35 -0
  79. package/esm/components/QInputGroup/types.d.ts.map +1 -0
  80. package/esm/components/QLineLoader/QLineLoader.d.ts +2 -6
  81. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  82. package/esm/components/QLineLoader/index.d.ts +3 -13
  83. package/esm/components/QLineLoader/index.d.ts.map +1 -1
  84. package/esm/components/QLineLoader/types.d.ts +7 -0
  85. package/esm/components/QLineLoader/types.d.ts.map +1 -0
  86. package/esm/components/QList/QList.d.ts +11 -52
  87. package/esm/components/QList/QList.d.ts.map +1 -1
  88. package/esm/components/QList/QListItem.d.ts +10 -53
  89. package/esm/components/QList/QListItem.d.ts.map +1 -1
  90. package/esm/components/QList/QListItem.vue.js +22 -28
  91. package/esm/components/QList/QListItemGroup.d.ts +7 -13
  92. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  93. package/esm/components/QList/index.d.ts +7 -452
  94. package/esm/components/QList/index.d.ts.map +1 -1
  95. package/esm/components/QList/types.d.ts +102 -0
  96. package/esm/components/QList/types.d.ts.map +1 -0
  97. package/esm/components/QList/types.js +11 -0
  98. package/esm/components/QOverlay/QOverlay.d.ts +33 -118
  99. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  100. package/esm/components/QOverlay/QOverlay.vue.js +1 -2
  101. package/esm/components/QOverlay/index.d.ts +3 -339
  102. package/esm/components/QOverlay/index.d.ts.map +1 -1
  103. package/esm/components/QOverlay/types.d.ts +88 -0
  104. package/esm/components/QOverlay/types.d.ts.map +1 -0
  105. package/esm/components/QPopover/QPopover.d.ts +17 -58
  106. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  107. package/esm/components/QPopover/QPopover.vue.js +25 -24
  108. package/esm/components/QPopover/index.d.ts +3 -180
  109. package/esm/components/QPopover/index.d.ts.map +1 -1
  110. package/esm/components/QPopover/types.d.ts +44 -0
  111. package/esm/components/QPopover/types.d.ts.map +1 -0
  112. package/esm/components/QPropertyList/QPropertyList.d.ts +70 -0
  113. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -0
  114. package/esm/components/QPropertyList/QPropertyList.vue.js +146 -0
  115. package/esm/components/QPropertyList/QPropertyList.vue2.js +4 -0
  116. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +48 -0
  117. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -0
  118. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +72 -0
  119. package/esm/components/QPropertyList/QPropertyListGroup.vue2.js +4 -0
  120. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +53 -0
  121. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -0
  122. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +45 -0
  123. package/esm/components/QPropertyList/QPropertyListPanel.vue2.js +4 -0
  124. package/esm/components/QPropertyList/QPropertyListRow.d.ts +29 -0
  125. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -0
  126. package/esm/components/QPropertyList/QPropertyListRow.vue.js +64 -0
  127. package/esm/components/QPropertyList/QPropertyListRow.vue2.js +4 -0
  128. package/esm/components/QPropertyList/index.d.ts +13 -0
  129. package/esm/components/QPropertyList/index.d.ts.map +1 -0
  130. package/esm/components/QPropertyList/index.js +12 -0
  131. package/esm/components/QPropertyList/types.d.ts +101 -0
  132. package/esm/components/QPropertyList/types.d.ts.map +1 -0
  133. package/esm/components/QPropertyList/types.js +14 -0
  134. package/esm/components/QSelect/QSelect.d.ts +25 -102
  135. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  136. package/esm/components/QSelect/QSelect.vue.js +80 -91
  137. package/esm/components/QSelect/index.d.ts +3 -369
  138. package/esm/components/QSelect/index.d.ts.map +1 -1
  139. package/esm/components/QSelect/types.d.ts +80 -0
  140. package/esm/components/QSelect/types.d.ts.map +1 -0
  141. package/esm/components/QSelect/types.js +14 -0
  142. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +2 -14
  143. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  144. package/esm/components/QSkeletonLoader/index.d.ts +3 -31
  145. package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
  146. package/esm/components/QSkeletonLoader/types.d.ts +15 -0
  147. package/esm/components/QSkeletonLoader/types.d.ts.map +1 -0
  148. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +2 -10
  149. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  150. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
  151. package/esm/components/QSpinnerLoader/index.d.ts +3 -22
  152. package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
  153. package/esm/components/QSpinnerLoader/types.d.ts +11 -0
  154. package/esm/components/QSpinnerLoader/types.d.ts.map +1 -0
  155. package/esm/components/QTextField/QTextField.d.ts +13 -61
  156. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  157. package/esm/components/QTextField/index.d.ts +3 -229
  158. package/esm/components/QTextField/index.d.ts.map +1 -1
  159. package/esm/components/QTextField/types.d.ts +51 -0
  160. package/esm/components/QTextField/types.d.ts.map +1 -0
  161. package/esm/components/QThemeProvider/QThemeProvider.d.ts +6 -8
  162. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  163. package/esm/components/QThemeProvider/index.d.ts +3 -37
  164. package/esm/components/QThemeProvider/index.d.ts.map +1 -1
  165. package/esm/components/QThemeProvider/types.d.ts +7 -0
  166. package/esm/components/QThemeProvider/types.d.ts.map +1 -0
  167. package/esm/components/QTooltip/QTooltip.d.ts +30 -94
  168. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  169. package/esm/components/QTooltip/index.d.ts +3 -279
  170. package/esm/components/QTooltip/index.d.ts.map +1 -1
  171. package/esm/components/QTooltip/types.d.ts +67 -0
  172. package/esm/components/QTooltip/types.d.ts.map +1 -0
  173. package/esm/components/index.d.ts +1 -0
  174. package/esm/components/index.d.ts.map +1 -1
  175. package/esm/components/index.js +42 -37
  176. package/esm/composables/defaults.js +3 -6
  177. package/esm/index.d.ts +4 -0
  178. package/esm/utils/color.js +1 -2
  179. package/esm/utils/setupPropsProxy.js +2 -4
  180. package/package.json +35 -36
@@ -0,0 +1,37 @@
1
+ export type QFieldSize = 'mini' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'block';
2
+ export type QFieldProps = {
3
+ /**
4
+ * The field unique identifier.
5
+ */
6
+ id?: string;
7
+ /**
8
+ * The label of the input.
9
+ */
10
+ label?: string;
11
+ /**
12
+ * The form field associated with the label.
13
+ */
14
+ for?: string;
15
+ /**
16
+ * The size category of the field.
17
+ */
18
+ size?: QFieldSize;
19
+ /**
20
+ * Whether the input is readonly.
21
+ */
22
+ readonly?: boolean;
23
+ /**
24
+ * Whether the input is disabled.
25
+ */
26
+ disabled?: boolean;
27
+ /**
28
+ * If set to true, an asterisk (*) is displayed
29
+ * to indicate that the field is required.
30
+ */
31
+ required?: boolean;
32
+ /**
33
+ * Custom set of classes to apply to the component.
34
+ */
35
+ class?: string | unknown[];
36
+ };
37
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QField/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAE/F,MAAM,MAAM,WAAW,GAAG;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"InlineSvg.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/InlineSvg.js"],"names":[],"mappings":";IAoCE;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;;IASF,uBAAuB;iBAAb,UAAU;;;;;IAwCrB;;;OAGG;mBADQ,MAAM;IAoCjB;;;;OAIG;kBAFQ,MAAM;;;;;;IA7HjB;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG"}
1
+ {"version":3,"file":"InlineSvg.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/InlineSvg.js"],"names":[],"mappings":";IAoCE;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;;IASF,uBAAuB;iBAAb,UAAU;;;;;IAwCrB;;;OAGG;mBADQ,MAAM;IAoCjB;;;;OAIG;kBAFQ,MAAM,GACJ,gBAAgB,CAAC,OAAO,CAAC;;;;;;IA9HtC;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG"}
@@ -8,11 +8,9 @@ const o = {}, h = a({
8
8
  },
9
9
  inheritAttrs: !1,
10
10
  render() {
11
- if (!this.svgElSource)
12
- return null;
11
+ if (!this.svgElSource) return null;
13
12
  const t = this.getSvgContent(this.svgElSource);
14
- if (!t)
15
- return s("div", this.$attrs);
13
+ if (!t) return s("div", this.$attrs);
16
14
  const e = {};
17
15
  return this.copySvgAttrs(e, this.svgElSource), this.copySvgAttrs(e, t), this.copyComponentAttrs(e, this.$attrs), e.innerHTML = t.innerHTML, s("svg", e);
18
16
  },
@@ -67,9 +65,7 @@ const o = {}, h = a({
67
65
  methods: {
68
66
  copySvgAttrs(t, e) {
69
67
  const r = e.attributes;
70
- if (r)
71
- for (const n of r)
72
- t[n.name] = n.value;
68
+ if (r) for (const n of r) t[n.name] = n.value;
73
69
  },
74
70
  copyComponentAttrs(t, e) {
75
71
  for (const [r, n] of Object.entries(e))
@@ -98,11 +94,9 @@ const o = {}, h = a({
98
94
  */
99
95
  async download(t) {
100
96
  const e = await fetch(t);
101
- if (!e.ok)
102
- throw new Error("Error loading SVG");
97
+ if (!e.ok) throw new Error("Error loading SVG");
103
98
  const r = await e.text(), i = new DOMParser().parseFromString(r, "text/xml").getElementsByTagName("svg")[0];
104
- if (!i)
105
- throw new Error("Loaded file is not a valid SVG");
99
+ if (!i) throw new Error("Loaded file is not a valid SVG");
106
100
  return i;
107
101
  }
108
102
  },
@@ -123,8 +117,7 @@ function l(t, e) {
123
117
  }
124
118
  }
125
119
  function u(t) {
126
- if (t.getIsPending)
127
- return t;
120
+ if (t.getIsPending) return t;
128
121
  let e = !0;
129
122
  const r = t.then(
130
123
  (n) => (e = !1, n),
@@ -1,21 +1,5 @@
1
- export type Icon = {
2
- /**
3
- * The identifier of the icon.
4
- */
5
- icon: string;
6
- /**
7
- * The type of resource.
8
- */
9
- type?: 'svg' | 'font' | 'img';
10
- /**
11
- * The size of the icon, in pixels.
12
- */
13
- size?: number;
14
- /**
15
- * Custom set of classes to apply to the component.
16
- */
17
- class?: string | unknown[];
18
- };
1
+ import { Icon } from './types';
2
+
19
3
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Icon>, {
20
4
  type: string;
21
5
  size: undefined;
@@ -27,7 +11,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
27
11
  }>>>, {
28
12
  size: number;
29
13
  class: string | unknown[];
30
- type: "img" | "svg" | "font";
14
+ type: "svg" | "font" | "img";
31
15
  }, {}>;
32
16
  export default _default;
33
17
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1 +1 @@
1
- {"version":3,"file":"QIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIcon.vue"],"names":[],"mappings":"AAOA;AAQC,MAAM,MAAM,IAAI,GAAG;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;IAE7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;;;;;;;;;;;;;;AAsEF,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,CAA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C,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"}
@@ -4,9 +4,9 @@ const _ = /* @__PURE__ */ c({
4
4
  __name: "QIcon",
5
5
  props: {
6
6
  icon: {},
7
- type: { default: "svg" },
8
7
  size: { default: void 0 },
9
- class: { default: void 0 }
8
+ class: { default: void 0 },
9
+ type: { default: "svg" }
10
10
  },
11
11
  setup(o) {
12
12
  const e = o, n = s(() => {
@@ -1,25 +1,5 @@
1
- export type QIconFontProps = {
2
- /**
3
- * The classname containing the content of the font icon.
4
- */
5
- icon: string;
6
- /**
7
- * The name of the icon library.
8
- */
9
- library?: string;
10
- /**
11
- * The icon variant.
12
- */
13
- variant?: string;
14
- /**
15
- * The size of the icon, in pixels.
16
- */
17
- size?: number;
18
- /**
19
- * Custom set of classes to apply to the component.
20
- */
21
- class?: string | unknown[];
22
- };
1
+ import { QIconFontProps } from './types';
2
+
23
3
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QIconFontProps>, {
24
4
  library: string;
25
5
  variant: string;
@@ -1 +1 @@
1
- {"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont.vue"],"names":[],"mappings":"AAMA;AAKC,MAAM,MAAM,cAAc,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG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ACH,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"}
@@ -1,22 +1,22 @@
1
- import { defineComponent as o, computed as r, openBlock as l, createElementBlock as c, normalizeClass as s, normalizeStyle as u } from "vue";
2
- const v = /* @__PURE__ */ o({
1
+ import { defineComponent as t, computed as e, openBlock as l, createElementBlock as c, normalizeClass as s, normalizeStyle as u } from "vue";
2
+ const v = /* @__PURE__ */ t({
3
3
  __name: "QIconFont",
4
4
  props: {
5
5
  icon: {},
6
- library: { default: "" },
7
- variant: { default: "" },
8
6
  size: { default: void 0 },
9
- class: { default: void 0 }
7
+ class: { default: void 0 },
8
+ library: { default: "" },
9
+ variant: { default: "" }
10
10
  },
11
- setup(e) {
12
- const n = e, t = r(() => n.variant ? `${n.library}-${n.variant}` : n.library), a = r(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), i = r(() => ({
11
+ setup(r) {
12
+ const n = r, a = e(() => n.variant ? `${n.library}-${n.variant}` : n.library), i = e(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), o = e(() => ({
13
13
  "font-size": n.size !== void 0 ? `${n.size}px` : void 0
14
14
  }));
15
15
  return (f, d) => (l(), c(
16
16
  "i",
17
17
  {
18
- class: s(["q-icon", "q-icon__font", t.value, a.value, n.class]),
19
- style: u(i.value)
18
+ class: s(["q-icon", "q-icon__font", a.value, i.value, n.class]),
19
+ style: u(o.value)
20
20
  },
21
21
  null,
22
22
  6
@@ -1,30 +1,6 @@
1
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
- /**
3
- * The URL of the image to be used as the icon.
4
- */
5
- icon: string;
6
- /**
7
- * The size of the icon, in pixels.
8
- */
9
- size?: number | undefined;
10
- /**
11
- * Custom set of classes to apply to the component.
12
- */
13
- class?: string | unknown[] | undefined;
14
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
15
- /**
16
- * The URL of the image to be used as the icon.
17
- */
18
- icon: string;
19
- /**
20
- * The size of the icon, in pixels.
21
- */
22
- size?: number | undefined;
23
- /**
24
- * Custom set of classes to apply to the component.
25
- */
26
- class?: string | unknown[] | undefined;
27
- }>>>, {}, {}>;
1
+ import { QIconGenericProps } from './types';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<QIconGenericProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<QIconGenericProps>>>, {}, {}>;
28
4
  export default _default;
29
5
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
6
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1 +1 @@
1
- {"version":3,"file":"QIconImg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconImg.vue"],"names":[],"mappings":"AAMA;;IA8FE;;OAEG;UACG,MAAM;IAEZ;;OAEG;;IAGH;;OAEG;;;IAZH;;OAEG;UACG,MAAM;IAEZ;;OAEG;;IAGH;;OAEG;;;AAlBL,wBAqBG;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"}
1
+ {"version":3,"file":"QIconImg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconImg.vue"],"names":[],"mappings":"AAMA;AAGC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;;AAwDjD,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"}
@@ -1,5 +1,5 @@
1
- import { defineComponent as n, computed as c, openBlock as t, createElementBlock as i, normalizeClass as l, normalizeStyle as r } from "vue";
2
- const a = ["src"], u = /* @__PURE__ */ n({
1
+ import { defineComponent as c, computed as n, openBlock as t, createElementBlock as i, normalizeClass as l, normalizeStyle as r } from "vue";
2
+ const a = ["src"], u = /* @__PURE__ */ c({
3
3
  __name: "QIconImg",
4
4
  props: {
5
5
  icon: {},
@@ -7,7 +7,7 @@ const a = ["src"], u = /* @__PURE__ */ n({
7
7
  class: {}
8
8
  },
9
9
  setup(o) {
10
- const e = o, s = c(() => ({
10
+ const e = o, s = n(() => ({
11
11
  "font-size": e.size !== void 0 ? `${e.size}px` : void 0
12
12
  }));
13
13
  return (m, p) => (t(), i("img", {
@@ -1,45 +1,13 @@
1
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- /**
3
- * The identifier of the SVG.
4
- */
5
- icon: string;
6
- /**
7
- * The name of the SVG bundle.
8
- */
9
- bundle?: string | undefined;
10
- /**
11
- * The size of the icon, in pixels.
12
- */
13
- size?: number | undefined;
14
- /**
15
- * Custom set of classes to apply to the component.
16
- */
17
- class?: string | unknown[] | undefined;
18
- }>, {
1
+ import { QIconSvgProps } from './types';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QIconSvgProps>, {
19
4
  bundle: string;
20
5
  size: undefined;
21
6
  class: undefined;
22
7
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
8
  loaded: (value: Element) => void;
24
9
  unloaded: () => void;
25
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
26
- /**
27
- * The identifier of the SVG.
28
- */
29
- icon: string;
30
- /**
31
- * The name of the SVG bundle.
32
- */
33
- bundle?: string | undefined;
34
- /**
35
- * The size of the icon, in pixels.
36
- */
37
- size?: number | undefined;
38
- /**
39
- * Custom set of classes to apply to the component.
40
- */
41
- class?: string | unknown[] | undefined;
42
- }>, {
10
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QIconSvgProps>, {
43
11
  bundle: string;
44
12
  size: undefined;
45
13
  class: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"QIconSvg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconSvg.vue"],"names":[],"mappings":"AASA;;IAgJG;;OAEG;UACG,MAAM;IAEZ;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;IAjBH;;OAEG;UACG,MAAM;IAEZ;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;UAJI,MAAM;WAKL,MAAM,GAAG,OAAO,EAAE;YAVjB,MAAM;;AAdlB,wBA2BG;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,QA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I;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"}
@@ -4,25 +4,25 @@ const b = /* @__PURE__ */ d({
4
4
  __name: "QIconSvg",
5
5
  props: {
6
6
  icon: {},
7
- bundle: { default: "" },
8
7
  size: { default: void 0 },
9
- class: { default: void 0 }
8
+ class: { default: void 0 },
9
+ bundle: { default: "" }
10
10
  },
11
11
  emits: ["loaded", "unloaded"],
12
12
  setup(s, { emit: l }) {
13
- const e = s, o = l, t = a(() => ({
14
- "font-size": e.size !== void 0 ? `${e.size}px` : void 0
13
+ const o = s, e = l, t = a(() => ({
14
+ "font-size": o.size !== void 0 ? `${o.size}px` : void 0
15
15
  }));
16
16
  function c(n) {
17
- o("loaded", n);
17
+ e("loaded", n);
18
18
  }
19
19
  function i() {
20
- o("unloaded");
20
+ e("unloaded");
21
21
  }
22
22
  return (n, _) => (r(), u(m(v), {
23
- class: f(["q-icon", "q-icon__svg", e.class]),
24
- src: e.bundle,
25
- symbol: e.icon,
23
+ class: f(["q-icon", "q-icon__svg", o.class]),
24
+ src: o.bundle,
25
+ symbol: o.icon,
26
26
  style: p(t.value),
27
27
  onLoaded: c,
28
28
  onUnloaded: i
@@ -1,160 +1,13 @@
1
- import { Icon } from './QIcon';
1
+ import { default as _QIcon } from './QIcon';
2
+ import { default as _QIconFont } from './QIconFont';
3
+ import { default as _QIconImg } from './QIconImg';
4
+ import { default as _QIconSvg } from './QIconSvg';
5
+ import { Icon } from './types';
2
6
 
3
- declare const QIcon: import('vue').DefineComponent<{
4
- size: {
5
- type: import('vue').PropType<number>;
6
- default: undefined;
7
- };
8
- class: {
9
- type: import('vue').PropType<string | unknown[]>;
10
- default: undefined;
11
- };
12
- type: {
13
- type: import('vue').PropType<"img" | "svg" | "font">;
14
- default: string;
15
- };
16
- icon: {
17
- type: import('vue').PropType<string>;
18
- required: true;
19
- };
20
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
- size: {
22
- type: import('vue').PropType<number>;
23
- default: undefined;
24
- };
25
- class: {
26
- type: import('vue').PropType<string | unknown[]>;
27
- default: undefined;
28
- };
29
- type: {
30
- type: import('vue').PropType<"img" | "svg" | "font">;
31
- default: string;
32
- };
33
- icon: {
34
- type: import('vue').PropType<string>;
35
- required: true;
36
- };
37
- }>>, {
38
- size: number;
39
- class: string | unknown[];
40
- type: "img" | "svg" | "font";
41
- }, {}>;
42
- declare const QIconFont: import('vue').DefineComponent<{
43
- size: {
44
- type: import('vue').PropType<number>;
45
- default: undefined;
46
- };
47
- class: {
48
- type: import('vue').PropType<string | unknown[]>;
49
- default: undefined;
50
- };
51
- icon: {
52
- type: import('vue').PropType<string>;
53
- required: true;
54
- };
55
- library: {
56
- type: import('vue').PropType<string>;
57
- default: string;
58
- };
59
- variant: {
60
- type: import('vue').PropType<string>;
61
- default: string;
62
- };
63
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
64
- size: {
65
- type: import('vue').PropType<number>;
66
- default: undefined;
67
- };
68
- class: {
69
- type: import('vue').PropType<string | unknown[]>;
70
- default: undefined;
71
- };
72
- icon: {
73
- type: import('vue').PropType<string>;
74
- required: true;
75
- };
76
- library: {
77
- type: import('vue').PropType<string>;
78
- default: string;
79
- };
80
- variant: {
81
- type: import('vue').PropType<string>;
82
- default: string;
83
- };
84
- }>>, {
85
- size: number;
86
- class: string | unknown[];
87
- library: string;
88
- variant: string;
89
- }, {}>;
90
- declare const QIconImg: import('vue').DefineComponent<{
91
- icon: {
92
- type: import('vue').PropType<string>;
93
- required: true;
94
- };
95
- size: {
96
- type: import('vue').PropType<number>;
97
- };
98
- class: {
99
- type: import('vue').PropType<string | unknown[]>;
100
- };
101
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
102
- icon: {
103
- type: import('vue').PropType<string>;
104
- required: true;
105
- };
106
- size: {
107
- type: import('vue').PropType<number>;
108
- };
109
- class: {
110
- type: import('vue').PropType<string | unknown[]>;
111
- };
112
- }>>, {}, {}>;
113
- declare const QIconSvg: import('vue').DefineComponent<{
114
- size: {
115
- type: import('vue').PropType<number>;
116
- default: undefined;
117
- };
118
- class: {
119
- type: import('vue').PropType<string | unknown[]>;
120
- default: undefined;
121
- };
122
- icon: {
123
- type: import('vue').PropType<string>;
124
- required: true;
125
- };
126
- bundle: {
127
- type: import('vue').PropType<string>;
128
- default: string;
129
- };
130
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
131
- loaded: (value: Element) => void;
132
- unloaded: () => void;
133
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
134
- size: {
135
- type: import('vue').PropType<number>;
136
- default: undefined;
137
- };
138
- class: {
139
- type: import('vue').PropType<string | unknown[]>;
140
- default: undefined;
141
- };
142
- icon: {
143
- type: import('vue').PropType<string>;
144
- required: true;
145
- };
146
- bundle: {
147
- type: import('vue').PropType<string>;
148
- default: string;
149
- };
150
- }>> & {
151
- onLoaded?: ((value: Element) => any) | undefined;
152
- onUnloaded?: (() => any) | undefined;
153
- }, {
154
- size: number;
155
- class: string | unknown[];
156
- bundle: string;
157
- }, {}>;
7
+ declare const QIcon: typeof _QIcon;
8
+ declare const QIconFont: typeof _QIconFont;
9
+ declare const QIconImg: typeof _QIconImg;
10
+ declare const QIconSvg: typeof _QIconSvg;
158
11
  export { QIcon, QIconFont, QIconImg, QIconSvg };
159
12
  export type { Icon };
160
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAKvC,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA2C,CAAA;AACtD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAmD,CAAA;AAClE,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;YAAiD,CAAA;AAC/D,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAiD,CAAA;AAG/D,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAA;AAG/C,YAAY,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/index.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,aAAa,CAAA;AAChC,OAAO,UAAU,MAAM,iBAAiB,CAAA;AACxC,OAAO,SAAS,MAAM,gBAAgB,CAAA;AACtC,OAAO,SAAS,MAAM,gBAAgB,CAAA;AAGtC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAKnC,QAAA,MAAM,KAAK,EAA8B,OAAO,MAAM,CAAA;AACtD,QAAA,MAAM,SAAS,EAAkC,OAAO,UAAU,CAAA;AAClE,QAAA,MAAM,QAAQ,EAAiC,OAAO,SAAS,CAAA;AAC/D,QAAA,MAAM,QAAQ,EAAiC,OAAO,SAAS,CAAA;AAG/D,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAA;AAG/C,YAAY,EAAE,IAAI,EAAE,CAAA"}
@@ -0,0 +1,40 @@
1
+ export type QIconGenericProps = {
2
+ /**
3
+ * Can be:
4
+ * - The classname containing the content of the font icon.
5
+ * - The URL of the image to be used as the icon.
6
+ * - The identifier of the SVG.
7
+ */
8
+ icon: string;
9
+ /**
10
+ * The size of the icon, in pixels.
11
+ */
12
+ size?: number;
13
+ /**
14
+ * Custom set of classes to apply to the component.
15
+ */
16
+ class?: string | unknown[];
17
+ };
18
+ export type Icon = QIconGenericProps & {
19
+ /**
20
+ * The type of resource.
21
+ */
22
+ type?: 'svg' | 'font' | 'img';
23
+ };
24
+ export type QIconFontProps = QIconGenericProps & {
25
+ /**
26
+ * The name of the icon library.
27
+ */
28
+ library?: string;
29
+ /**
30
+ * The icon variant.
31
+ */
32
+ variant?: string;
33
+ };
34
+ export type QIconSvgProps = QIconGenericProps & {
35
+ /**
36
+ * The name of the SVG bundle.
37
+ */
38
+ bundle?: string;
39
+ };
40
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC/B;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,IAAI,GAAG,iBAAiB,GAAG;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG;IAChD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG;IAC/C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CACf,CAAA"}