@quidgest/ui 0.11.0 → 0.12.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 (200) hide show
  1. package/dist/manifest/components.json +24 -0
  2. package/dist/ui.css +5 -2
  3. package/dist/ui.esm.js +630 -600
  4. package/dist/ui.js +8 -5
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +146 -132
  7. package/dist/ui.scss +6 -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 +186 -0
  76. package/esm/components/QList/QList.vue2.js +4 -0
  77. package/esm/components/QList/QListItem.d.ts +82 -0
  78. package/esm/components/QList/QListItem.d.ts.map +1 -0
  79. package/esm/components/QList/QListItem.vue.js +75 -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 +46 -49
  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,110 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ /**
3
+ * The source URL of the SVG bundle.
4
+ */
5
+ src: {
6
+ type: StringConstructor;
7
+ required: true;
8
+ };
9
+ /**
10
+ * The ID of the SVG symbol to be rendered.
11
+ */
12
+ symbol: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ /**
17
+ * The title to be associated with the SVG.
18
+ */
19
+ title: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ /**
24
+ * A function to transform the source SVG element before rendering.
25
+ * If not provided, no transformation will be applied.
26
+ */
27
+ transformSource: {
28
+ type: FunctionConstructor;
29
+ default: undefined;
30
+ };
31
+ /**
32
+ * Determines whether to keep the existing SVG content visible during the loading of a new SVG.
33
+ * Set to `false` to hide content during loading.
34
+ */
35
+ keepDuringLoading: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ }, any, {
40
+ /** @type SVGElement */
41
+ svgElSource: SVGElement;
42
+ }, {}, {
43
+ copySvgAttrs(target: any, source: any): void;
44
+ copyComponentAttrs(target: any, source: any): void;
45
+ getSvgContent(svgEl: any): any;
46
+ /**
47
+ * Get svgElSource
48
+ * @param {string} src
49
+ */
50
+ getSource(src: string): Promise<void>;
51
+ /**
52
+ * Get the contents of the SVG
53
+ * @param {string} url
54
+ * @returns {PromiseWithState<Element>}
55
+ */
56
+ download(url: string): PromiseWithState<Element>;
57
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
58
+ loaded: (payload: any) => boolean;
59
+ unloaded: () => true;
60
+ error: (payload: any) => boolean;
61
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
62
+ /**
63
+ * The source URL of the SVG bundle.
64
+ */
65
+ src: {
66
+ type: StringConstructor;
67
+ required: true;
68
+ };
69
+ /**
70
+ * The ID of the SVG symbol to be rendered.
71
+ */
72
+ symbol: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ /**
77
+ * The title to be associated with the SVG.
78
+ */
79
+ title: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ };
83
+ /**
84
+ * A function to transform the source SVG element before rendering.
85
+ * If not provided, no transformation will be applied.
86
+ */
87
+ transformSource: {
88
+ type: FunctionConstructor;
89
+ default: undefined;
90
+ };
91
+ /**
92
+ * Determines whether to keep the existing SVG content visible during the loading of a new SVG.
93
+ * Set to `false` to hide content during loading.
94
+ */
95
+ keepDuringLoading: {
96
+ type: BooleanConstructor;
97
+ default: boolean;
98
+ };
99
+ }>> & {
100
+ onError?: ((payload?: any) => any) | undefined;
101
+ onLoaded?: ((payload?: any) => any) | undefined;
102
+ onUnloaded?: (() => any) | undefined;
103
+ }, {
104
+ symbol: string;
105
+ title: string;
106
+ transformSource: Function;
107
+ keepDuringLoading: boolean;
108
+ }, {}>;
109
+ export default _default;
110
+ //# sourceMappingURL=InlineSvg.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,139 @@
1
+ import { defineComponent as a, h as s } from "vue";
2
+ const o = {}, h = a({
3
+ name: "InlineSvg",
4
+ emits: {
5
+ loaded: (t) => typeof t == "object",
6
+ unloaded: () => !0,
7
+ error: (t) => typeof t == "object"
8
+ },
9
+ inheritAttrs: !1,
10
+ render() {
11
+ if (!this.svgElSource)
12
+ return null;
13
+ const t = this.getSvgContent(this.svgElSource);
14
+ if (!t)
15
+ return s("div", this.$attrs);
16
+ const e = {};
17
+ return this.copySvgAttrs(e, this.svgElSource), this.copySvgAttrs(e, t), this.copyComponentAttrs(e, this.$attrs), e.innerHTML = t.innerHTML, s("svg", e);
18
+ },
19
+ props: {
20
+ /**
21
+ * The source URL of the SVG bundle.
22
+ */
23
+ src: {
24
+ type: String,
25
+ required: !0
26
+ },
27
+ /**
28
+ * The ID of the SVG symbol to be rendered.
29
+ */
30
+ symbol: {
31
+ type: String,
32
+ default: ""
33
+ },
34
+ /**
35
+ * The title to be associated with the SVG.
36
+ */
37
+ title: {
38
+ type: String,
39
+ default: ""
40
+ },
41
+ /**
42
+ * A function to transform the source SVG element before rendering.
43
+ * If not provided, no transformation will be applied.
44
+ */
45
+ transformSource: {
46
+ type: Function,
47
+ default: void 0
48
+ },
49
+ /**
50
+ * Determines whether to keep the existing SVG content visible during the loading of a new SVG.
51
+ * Set to `false` to hide content during loading.
52
+ */
53
+ keepDuringLoading: {
54
+ type: Boolean,
55
+ default: !0
56
+ }
57
+ },
58
+ data() {
59
+ return {
60
+ /** @type SVGElement */
61
+ svgElSource: null
62
+ };
63
+ },
64
+ async mounted() {
65
+ await this.getSource(this.src);
66
+ },
67
+ methods: {
68
+ copySvgAttrs(t, e) {
69
+ const r = e.attributes;
70
+ if (r)
71
+ for (const n of r)
72
+ t[n.name] = n.value;
73
+ },
74
+ copyComponentAttrs(t, e) {
75
+ for (const [r, n] of Object.entries(e))
76
+ n !== !1 && n !== null && n !== void 0 && (t[r] = n);
77
+ },
78
+ getSvgContent(t) {
79
+ return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)), l(t, this.title)), t);
80
+ },
81
+ /**
82
+ * Get svgElSource
83
+ * @param {string} src
84
+ */
85
+ async getSource(t) {
86
+ try {
87
+ o[t] || (o[t] = u(this.download(t))), this.svgElSource && o[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
88
+ const e = await o[t];
89
+ this.svgElSource = e, await this.$nextTick(), this.$emit("loaded", this.$el);
90
+ } catch (e) {
91
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete o[t], this.$emit("error", e);
92
+ }
93
+ },
94
+ /**
95
+ * Get the contents of the SVG
96
+ * @param {string} url
97
+ * @returns {PromiseWithState<Element>}
98
+ */
99
+ async download(t) {
100
+ const e = await fetch(t);
101
+ if (!e.ok)
102
+ throw new Error("Error loading SVG");
103
+ 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");
106
+ return i;
107
+ }
108
+ },
109
+ watch: {
110
+ src(t) {
111
+ this.getSource(t);
112
+ }
113
+ },
114
+ expose: []
115
+ });
116
+ function l(t, e) {
117
+ const r = t.getElementsByTagName("title");
118
+ if (r.length)
119
+ r[0].textContent = e;
120
+ else {
121
+ const n = document.createElementNS("http://www.w3.org/2000/svg", "title");
122
+ n.textContent = e, t.insertBefore(n, t.firstChild);
123
+ }
124
+ }
125
+ function u(t) {
126
+ if (t.getIsPending)
127
+ return t;
128
+ let e = !0;
129
+ const r = t.then(
130
+ (n) => (e = !1, n),
131
+ (n) => {
132
+ throw e = !1, n;
133
+ }
134
+ );
135
+ return r.getIsPending = () => e, r;
136
+ }
137
+ export {
138
+ h as default
139
+ };
@@ -0,0 +1,50 @@
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
+ };
19
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Icon>, {
20
+ type: string;
21
+ size: undefined;
22
+ class: undefined;
23
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Icon>, {
24
+ type: string;
25
+ size: undefined;
26
+ class: undefined;
27
+ }>>>, {
28
+ size: number;
29
+ class: string | unknown[];
30
+ type: "img" | "svg" | "font";
31
+ }, {}>;
32
+ export default _default;
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToRuntimeProps<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
42
+ type __VLS_WithDefaults<P, D> = {
43
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
+ default: D[K];
45
+ }> : P[K];
46
+ };
47
+ type __VLS_Prettify<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
50
+ //# sourceMappingURL=QIcon.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIcon"],"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,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,36 @@
1
+ import { defineComponent as n, computed as t, openBlock as c, createBlock as r, resolveDynamicComponent as i, normalizeClass as a } from "vue";
2
+ import "./index.js";
3
+ import m from "./QIconImg.vue.js";
4
+ import p from "./QIconFont.vue.js";
5
+ import l from "./QIconSvg.vue.js";
6
+ const y = /* @__PURE__ */ n({
7
+ __name: "QIcon",
8
+ props: {
9
+ icon: {},
10
+ type: { default: "svg" },
11
+ size: { default: void 0 },
12
+ class: { default: void 0 }
13
+ },
14
+ setup(o) {
15
+ const e = o, s = t(() => {
16
+ switch (e.type) {
17
+ case "svg":
18
+ return l;
19
+ case "font":
20
+ return p;
21
+ case "img":
22
+ return m;
23
+ default:
24
+ return;
25
+ }
26
+ });
27
+ return (f, u) => (c(), r(i(s.value), {
28
+ class: a(e.class),
29
+ icon: e.icon,
30
+ size: e.size
31
+ }, null, 8, ["class", "icon", "size"]));
32
+ }
33
+ });
34
+ export {
35
+ y as default
36
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QIcon.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,57 @@
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
+ };
23
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QIconFontProps>, {
24
+ library: string;
25
+ variant: string;
26
+ size: undefined;
27
+ class: undefined;
28
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QIconFontProps>, {
29
+ library: string;
30
+ variant: string;
31
+ size: undefined;
32
+ class: undefined;
33
+ }>>>, {
34
+ size: number;
35
+ class: string | unknown[];
36
+ library: string;
37
+ variant: string;
38
+ }, {}>;
39
+ export default _default;
40
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
+ type __VLS_TypePropsToRuntimeProps<T> = {
42
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
43
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
44
+ } : {
45
+ type: import('vue').PropType<T[K]>;
46
+ required: true;
47
+ };
48
+ };
49
+ type __VLS_WithDefaults<P, D> = {
50
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
+ default: D[K];
52
+ }> : P[K];
53
+ };
54
+ type __VLS_Prettify<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};
57
+ //# sourceMappingURL=QIconFont.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont"],"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;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;;;;;;;;;;;;;;;;;AA8EF,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,29 @@
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({
3
+ __name: "QIconFont",
4
+ props: {
5
+ icon: {},
6
+ library: { default: "" },
7
+ variant: { default: "" },
8
+ size: { default: void 0 },
9
+ class: { default: void 0 }
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(() => ({
13
+ "font-size": n.size !== void 0 ? `${n.size}px` : void 0
14
+ }));
15
+ return (f, d) => (l(), c(
16
+ "i",
17
+ {
18
+ class: s(["q-icon", "q-icon__font", t.value, a.value, n.class]),
19
+ style: u(i.value)
20
+ },
21
+ null,
22
+ 6
23
+ /* CLASS, STYLE */
24
+ ));
25
+ }
26
+ });
27
+ export {
28
+ v as default
29
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QIconFont.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,38 @@
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
+ }>>>, {}, {}>;
28
+ export default _default;
29
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
+ type __VLS_TypePropsToRuntimeProps<T> = {
31
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
32
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
+ } : {
34
+ type: import('vue').PropType<T[K]>;
35
+ required: true;
36
+ };
37
+ };
38
+ //# sourceMappingURL=QIconImg.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QIconImg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconImg"],"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"}
@@ -0,0 +1,22 @@
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({
3
+ __name: "QIconImg",
4
+ props: {
5
+ icon: {},
6
+ size: {},
7
+ class: {}
8
+ },
9
+ setup(o) {
10
+ const e = o, s = c(() => ({
11
+ "font-size": e.size !== void 0 ? `${e.size}px` : void 0
12
+ }));
13
+ return (m, p) => (t(), i("img", {
14
+ src: e.icon,
15
+ class: l(["q-icon", "q-icon__img", e.class]),
16
+ style: r(s.value)
17
+ }, null, 14, a));
18
+ }
19
+ });
20
+ export {
21
+ u as default
22
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QIconImg.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,72 @@
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
+ }>, {
19
+ bundle: string;
20
+ size: undefined;
21
+ class: undefined;
22
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ loaded: (value: Element) => void;
24
+ 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
+ }>, {
43
+ bundle: string;
44
+ size: undefined;
45
+ class: undefined;
46
+ }>>> & {
47
+ onLoaded?: ((value: Element) => any) | undefined;
48
+ onUnloaded?: (() => any) | undefined;
49
+ }, {
50
+ size: number;
51
+ class: string | unknown[];
52
+ bundle: string;
53
+ }, {}>;
54
+ export default _default;
55
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
56
+ type __VLS_TypePropsToRuntimeProps<T> = {
57
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
58
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
59
+ } : {
60
+ type: import('vue').PropType<T[K]>;
61
+ required: true;
62
+ };
63
+ };
64
+ type __VLS_WithDefaults<P, D> = {
65
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
66
+ default: D[K];
67
+ }> : P[K];
68
+ };
69
+ type __VLS_Prettify<T> = {
70
+ [K in keyof T]: T[K];
71
+ } & {};
72
+ //# sourceMappingURL=QIconSvg.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QIconSvg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconSvg"],"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,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,34 @@
1
+ import { defineComponent as d, computed as a, openBlock as r, createBlock as u, unref as m, normalizeClass as f, normalizeStyle as p } from "vue";
2
+ import v from "./InlineSvg.js";
3
+ const b = /* @__PURE__ */ d({
4
+ __name: "QIconSvg",
5
+ props: {
6
+ icon: {},
7
+ bundle: { default: "" },
8
+ size: { default: void 0 },
9
+ class: { default: void 0 }
10
+ },
11
+ emits: ["loaded", "unloaded"],
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
15
+ }));
16
+ function c(n) {
17
+ o("loaded", n);
18
+ }
19
+ function i() {
20
+ o("unloaded");
21
+ }
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,
26
+ style: p(t.value),
27
+ onLoaded: c,
28
+ onUnloaded: i
29
+ }, null, 8, ["class", "src", "symbol", "style"]));
30
+ }
31
+ });
32
+ export {
33
+ b as default
34
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QIconSvg.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,8 @@
1
+ import { default as QIconSvg } from "./QIconSvg";
2
+ import { default as QIconImg } from "./QIconImg";
3
+ import { default as QIconFont } from "./QIconFont";
4
+ import { default as QIcon, Icon } from "./QIcon";
5
+
6
+ export { QIcon, QIconFont, QIconImg, QIconSvg };
7
+ export type { Icon };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,aAAa,CAAA;AAC/B,OAAO,SAAS,MAAM,iBAAiB,CAAA;AACvC,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AAGrC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAWvC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAA;AAG/C,YAAY,EAAE,IAAI,EAAE,CAAA"}
@@ -0,0 +1,15 @@
1
+ import m from "./QIcon.vue.js";
2
+ import r from "./QIconFont.vue.js";
3
+ import s from "./QIconImg.vue.js";
4
+ import f from "./QIconSvg.vue.js";
5
+ import { setupPropsProxy as o } from "../../utils/setupPropsProxy.js";
6
+ o(m);
7
+ o(r);
8
+ o(s);
9
+ o(f);
10
+ export {
11
+ m as QIcon,
12
+ r as QIconFont,
13
+ s as QIconImg,
14
+ f as QIconSvg
15
+ };