@quidgest/ui 0.14.10 → 0.14.12

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 (245) hide show
  1. package/dist/manifest/components.json +2 -0
  2. package/dist/ui.css +95 -39
  3. package/dist/ui.esm.js +1931 -1578
  4. package/dist/ui.js +29 -29
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +181 -158
  7. package/dist/ui.scss +83 -40
  8. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  9. package/esm/components/QAccordion/QAccordion.vue.js +2 -2
  10. package/esm/components/QAccordion/index.d.ts +33 -2
  11. package/esm/components/QAccordion/index.d.ts.map +1 -1
  12. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  13. package/esm/components/QBadge/QBadge.vue.js +7 -7
  14. package/esm/components/QBadge/index.d.ts +39 -2
  15. package/esm/components/QBadge/index.d.ts.map +1 -1
  16. package/esm/components/QBadge/types.d.ts.map +1 -1
  17. package/esm/components/QButton/QButton.d.ts +0 -2
  18. package/esm/components/QButton/QButton.d.ts.map +1 -1
  19. package/esm/components/QButton/QButton.vue.js +18 -18
  20. package/esm/components/QButton/index.d.ts +36 -2
  21. package/esm/components/QButton/index.d.ts.map +1 -1
  22. package/esm/components/QButtonGroup/QButtonGroup.d.ts +1 -3
  23. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  24. package/esm/components/QButtonGroup/QButtonGroup.vue.js +7 -7
  25. package/esm/components/QButtonGroup/index.d.ts +17 -2
  26. package/esm/components/QButtonGroup/index.d.ts.map +1 -1
  27. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  28. package/esm/components/QButtonToggle/QButtonToggle.vue.js +1 -1
  29. package/esm/components/QButtonToggle/index.d.ts +31 -2
  30. package/esm/components/QButtonToggle/index.d.ts.map +1 -1
  31. package/esm/components/QCard/QCard.d.ts +4 -9
  32. package/esm/components/QCard/QCard.d.ts.map +1 -1
  33. package/esm/components/QCard/QCard.vue.js +34 -34
  34. package/esm/components/QCard/index.d.ts +34 -2
  35. package/esm/components/QCard/index.d.ts.map +1 -1
  36. package/esm/components/QCheckbox/QCheckbox.d.ts +0 -3
  37. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  38. package/esm/components/QCheckbox/QCheckbox.vue.js +19 -19
  39. package/esm/components/QCheckbox/QCheckboxLabel.d.ts +1 -3
  40. package/esm/components/QCheckbox/QCheckboxLabel.d.ts.map +1 -1
  41. package/esm/components/QCheckbox/QCheckboxLabel.vue.js +7 -7
  42. package/esm/components/QCheckbox/index.d.ts +79 -2
  43. package/esm/components/QCheckbox/index.d.ts.map +1 -1
  44. package/esm/components/QCheckbox/types.d.ts +8 -4
  45. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  46. package/esm/components/QCollapsible/QCollapsible.d.ts +2 -3
  47. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  48. package/esm/components/QCollapsible/QCollapsible.vue.js +54 -60
  49. package/esm/components/QCollapsible/index.d.ts +47 -2
  50. package/esm/components/QCollapsible/index.d.ts.map +1 -1
  51. package/esm/components/QCollapsible/types.d.ts +5 -4
  52. package/esm/components/QCollapsible/types.d.ts.map +1 -1
  53. package/esm/components/QCollapsible/types.js +4 -5
  54. package/esm/components/QColorPicker/QColorPicker.d.ts +34 -0
  55. package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -0
  56. package/esm/components/QColorPicker/QColorPicker.vue.js +97 -0
  57. package/esm/components/QColorPicker/QColorPicker.vue2.js +4 -0
  58. package/esm/components/QColorPicker/index.d.ts +48 -0
  59. package/esm/components/QColorPicker/index.d.ts.map +1 -0
  60. package/esm/components/QColorPicker/index.js +6 -0
  61. package/esm/components/QColorPicker/types.d.ts +44 -0
  62. package/esm/components/QColorPicker/types.d.ts.map +1 -0
  63. package/esm/components/QColorPicker/types.js +6 -0
  64. package/esm/components/QCombobox/QCombobox.d.ts +686 -81
  65. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  66. package/esm/components/QCombobox/QCombobox.vue.js +156 -174
  67. package/esm/components/QCombobox/index.d.ts +1395 -2
  68. package/esm/components/QCombobox/index.d.ts.map +1 -1
  69. package/esm/components/QCombobox/types.d.ts +14 -6
  70. package/esm/components/QCombobox/types.d.ts.map +1 -1
  71. package/esm/components/QCombobox/types.js +9 -11
  72. package/esm/components/QDialog/QDialog.d.ts +3 -7
  73. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  74. package/esm/components/QDialog/QDialog.vue.js +33 -33
  75. package/esm/components/QDialog/index.d.ts +56 -2
  76. package/esm/components/QDialog/index.d.ts.map +1 -1
  77. package/esm/components/QDialog/types.d.ts +5 -3
  78. package/esm/components/QDialog/types.d.ts.map +1 -1
  79. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +16 -0
  80. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -0
  81. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +38 -0
  82. package/esm/components/QDropdownMenu/QDropdownMenu.vue2.js +4 -0
  83. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +369 -0
  84. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -0
  85. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +153 -0
  86. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue2.js +4 -0
  87. package/esm/components/QDropdownMenu/index.d.ts +14 -0
  88. package/esm/components/QDropdownMenu/index.d.ts.map +1 -0
  89. package/esm/components/QDropdownMenu/index.js +6 -0
  90. package/esm/components/QDropdownMenu/types.d.ts +96 -0
  91. package/esm/components/QDropdownMenu/types.d.ts.map +1 -0
  92. package/esm/components/QDropdownMenu/types.js +8 -0
  93. package/esm/components/QField/QField.d.ts +5 -7
  94. package/esm/components/QField/QField.d.ts.map +1 -1
  95. package/esm/components/QField/QField.vue.js +25 -25
  96. package/esm/components/QField/index.d.ts +37 -2
  97. package/esm/components/QField/index.d.ts.map +1 -1
  98. package/esm/components/QIcon/QIcon.d.ts +0 -2
  99. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  100. package/esm/components/QIcon/QIcon.vue.js +8 -8
  101. package/esm/components/QIcon/QIconFont.d.ts +0 -3
  102. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  103. package/esm/components/QIcon/QIconFont.vue.js +10 -10
  104. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  105. package/esm/components/QIcon/QIconImg.vue.js +4 -4
  106. package/esm/components/QIcon/QIconSvg.d.ts +0 -2
  107. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  108. package/esm/components/QIcon/QIconSvg.vue.js +10 -10
  109. package/esm/components/QIcon/index.d.ts +16 -8
  110. package/esm/components/QIcon/index.d.ts.map +1 -1
  111. package/esm/components/QInputGroup/QInputGroup.d.ts +0 -5
  112. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  113. package/esm/components/QInputGroup/QInputGroup.vue.js +24 -24
  114. package/esm/components/QInputGroup/index.d.ts +26 -2
  115. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  116. package/esm/components/QLineLoader/QLineLoader.d.ts +1 -3
  117. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  118. package/esm/components/QLineLoader/QLineLoader.vue.js +3 -3
  119. package/esm/components/QLineLoader/index.d.ts +1 -2
  120. package/esm/components/QLineLoader/index.d.ts.map +1 -1
  121. package/esm/components/QList/QList.d.ts +138 -3
  122. package/esm/components/QList/QList.d.ts.map +1 -1
  123. package/esm/components/QList/QList.vue.js +117 -99
  124. package/esm/components/QList/QListItem.d.ts +2 -2
  125. package/esm/components/QList/QListItem.d.ts.map +1 -1
  126. package/esm/components/QList/QListItem.vue.js +39 -37
  127. package/esm/components/QList/QListItemGroup.d.ts +1 -3
  128. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  129. package/esm/components/QList/QListItemGroup.vue.js +6 -6
  130. package/esm/components/QList/index.d.ts +189 -6
  131. package/esm/components/QList/index.d.ts.map +1 -1
  132. package/esm/components/QList/types.d.ts +8 -10
  133. package/esm/components/QList/types.d.ts.map +1 -1
  134. package/esm/components/QOverlay/QOverlay.d.ts +5 -4
  135. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  136. package/esm/components/QOverlay/QOverlay.vue.js +151 -136
  137. package/esm/components/QOverlay/index.d.ts +78 -2
  138. package/esm/components/QOverlay/index.d.ts.map +1 -1
  139. package/esm/components/QOverlay/types.d.ts +4 -0
  140. package/esm/components/QOverlay/types.d.ts.map +1 -1
  141. package/esm/components/QPopover/QPopover.d.ts +0 -1
  142. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  143. package/esm/components/QPopover/QPopover.vue.js +6 -6
  144. package/esm/components/QPopover/index.d.ts +49 -2
  145. package/esm/components/QPopover/index.d.ts.map +1 -1
  146. package/esm/components/QPropertyList/QPropertyList.d.ts +8 -5
  147. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  148. package/esm/components/QPropertyList/QPropertyList.vue.js +42 -41
  149. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +0 -1
  150. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  151. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +9 -9
  152. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +0 -1
  153. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
  154. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +9 -9
  155. package/esm/components/QPropertyList/QPropertyListRow.d.ts +15 -18
  156. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  157. package/esm/components/QPropertyList/QPropertyListRow.vue.js +59 -54
  158. package/esm/components/QPropertyList/index.d.ts +117 -8
  159. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  160. package/esm/components/QPropertyList/types.d.ts +8 -4
  161. package/esm/components/QPropertyList/types.d.ts.map +1 -1
  162. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts +0 -2
  163. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -1
  164. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +11 -11
  165. package/esm/components/QRemoveScrollBar/index.d.ts +23 -2
  166. package/esm/components/QRemoveScrollBar/index.d.ts.map +1 -1
  167. package/esm/components/QSelect/QSelect.d.ts +313 -28
  168. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  169. package/esm/components/QSelect/QSelect.vue.js +112 -129
  170. package/esm/components/QSelect/index.d.ts +314 -2
  171. package/esm/components/QSelect/index.d.ts.map +1 -1
  172. package/esm/components/QSelect/types.d.ts +13 -5
  173. package/esm/components/QSelect/types.d.ts.map +1 -1
  174. package/esm/components/QSelect/types.js +9 -11
  175. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -5
  176. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  177. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +13 -13
  178. package/esm/components/QSkeletonLoader/index.d.ts +1 -2
  179. package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
  180. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +0 -1
  181. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  182. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +8 -8
  183. package/esm/components/QSpinnerLoader/index.d.ts +3 -2
  184. package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
  185. package/esm/components/QTextField/QTextField.d.ts +79 -22
  186. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  187. package/esm/components/QTextField/QTextField.vue.js +18 -18
  188. package/esm/components/QTextField/index.d.ts +122 -2
  189. package/esm/components/QTextField/index.d.ts.map +1 -1
  190. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  191. package/esm/components/QThemeProvider/QThemeProvider.vue.js +9 -8
  192. package/esm/components/QThemeProvider/index.d.ts +17 -2
  193. package/esm/components/QThemeProvider/index.d.ts.map +1 -1
  194. package/esm/components/QThemeProvider/types.d.ts +1 -1
  195. package/esm/components/QTooltip/QTooltip.d.ts +0 -4
  196. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  197. package/esm/components/QTooltip/QTooltip.vue.js +17 -17
  198. package/esm/components/QTooltip/index.d.ts +62 -2
  199. package/esm/components/QTooltip/index.d.ts.map +1 -1
  200. package/esm/components/__internal__/QChevron/QChevron.d.ts +14 -0
  201. package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -0
  202. package/esm/components/__internal__/QChevron/QChevron.vue.js +23 -0
  203. package/esm/components/__internal__/QChevron/QChevron.vue2.js +4 -0
  204. package/esm/components/__internal__/QChevron/index.d.ts +13 -0
  205. package/esm/components/__internal__/QChevron/index.d.ts.map +1 -0
  206. package/esm/components/__internal__/QChevron/index.js +6 -0
  207. package/esm/components/__internal__/QChevron/types.d.ts +16 -0
  208. package/esm/components/__internal__/QChevron/types.d.ts.map +1 -0
  209. package/esm/components/__internal__/QChevron/types.js +8 -0
  210. package/esm/components/__internal__/QClearButton/QClearButton.d.ts +11 -0
  211. package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -0
  212. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +39 -0
  213. package/esm/components/__internal__/QClearButton/QClearButton.vue2.js +4 -0
  214. package/esm/components/__internal__/QClearButton/index.d.ts +12 -0
  215. package/esm/components/__internal__/QClearButton/index.d.ts.map +1 -0
  216. package/esm/components/__internal__/QClearButton/index.js +6 -0
  217. package/esm/components/__internal__/QClearButton/types.d.ts +23 -0
  218. package/esm/components/__internal__/QClearButton/types.d.ts.map +1 -0
  219. package/esm/components/__internal__/QClearButton/types.js +11 -0
  220. package/esm/components/index.d.ts +2 -0
  221. package/esm/components/index.d.ts.map +1 -1
  222. package/esm/components/index.js +48 -44
  223. package/esm/composables/group.js +5 -5
  224. package/esm/composables/overlay.d.ts +4 -0
  225. package/esm/composables/overlay.d.ts.map +1 -1
  226. package/esm/composables/overlay.js +69 -62
  227. package/esm/composables/theme.d.ts +54 -6
  228. package/esm/composables/theme.d.ts.map +1 -1
  229. package/esm/composables/theme.js +10 -12
  230. package/esm/framework.d.ts +17 -20
  231. package/esm/framework.d.ts.map +1 -1
  232. package/esm/framework.js +22 -25
  233. package/esm/index.d.ts +2 -0
  234. package/esm/templates/theme.js +16 -16
  235. package/esm/utils/color.d.ts +2 -1
  236. package/esm/utils/color.d.ts.map +1 -1
  237. package/esm/utils/color.js +19 -19
  238. package/esm/utils/setupPropsProxy.d.ts +22 -9
  239. package/esm/utils/setupPropsProxy.d.ts.map +1 -1
  240. package/esm/utils/setupPropsProxy.js +22 -22
  241. package/esm/utils/theme.d.ts +13 -1
  242. package/esm/utils/theme.d.ts.map +1 -1
  243. package/esm/utils/theme.js +40 -24
  244. package/package.json +19 -54
  245. /package/{LICENSE.md → LICENSE} +0 -0
@@ -44,10 +44,80 @@ declare function __VLS_template(): {
44
44
  slots: {
45
45
  item?(_: {
46
46
  item: import('./types').Item;
47
+ element: HTMLLIElement | undefined;
48
+ }): any;
49
+ 'item.append'?(_: {
50
+ item: import('./types').Item;
51
+ element: HTMLLIElement | undefined;
47
52
  }): any;
48
53
  };
49
54
  refs: {
50
55
  listRef: unknown;
56
+ listItemsRef: (({
57
+ $: import('vue').ComponentInternalInstance;
58
+ $data: {};
59
+ $props: {
60
+ readonly value: Primitive;
61
+ readonly label: string;
62
+ readonly icon?: import('..').Icon | undefined;
63
+ readonly selected?: boolean | undefined;
64
+ readonly highlighted?: boolean | undefined;
65
+ readonly disabled?: boolean | undefined;
66
+ readonly description?: string | undefined;
67
+ readonly icons?: typeof import('./types').DEFAULT_ICONS | undefined;
68
+ readonly onSelect?: ((value: Primitive) => any) | undefined;
69
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
70
+ $attrs: {
71
+ [x: string]: unknown;
72
+ };
73
+ $refs: {
74
+ [x: string]: unknown;
75
+ };
76
+ $slots: Readonly<{
77
+ [name: string]: import('vue').Slot<any> | undefined;
78
+ }>;
79
+ $root: import('vue').ComponentPublicInstance | null;
80
+ $parent: import('vue').ComponentPublicInstance | null;
81
+ $host: Element | null;
82
+ $emit: (event: "select", value: Primitive) => void;
83
+ $el: HTMLLIElement;
84
+ $options: import('vue').ComponentOptionsBase<Readonly<import('./types').QListItemProps> & Readonly<{
85
+ onSelect?: ((value: Primitive) => any) | undefined;
86
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
87
+ select: (value: Primitive) => any;
88
+ }, string, {
89
+ icons: typeof import('./types').DEFAULT_ICONS;
90
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
91
+ beforeCreate?: (() => void) | (() => void)[];
92
+ created?: (() => void) | (() => void)[];
93
+ beforeMount?: (() => void) | (() => void)[];
94
+ mounted?: (() => void) | (() => void)[];
95
+ beforeUpdate?: (() => void) | (() => void)[];
96
+ updated?: (() => void) | (() => void)[];
97
+ activated?: (() => void) | (() => void)[];
98
+ deactivated?: (() => void) | (() => void)[];
99
+ beforeDestroy?: (() => void) | (() => void)[];
100
+ beforeUnmount?: (() => void) | (() => void)[];
101
+ destroyed?: (() => void) | (() => void)[];
102
+ unmounted?: (() => void) | (() => void)[];
103
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
104
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
105
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
106
+ };
107
+ $forceUpdate: () => void;
108
+ $nextTick: typeof import('vue').nextTick;
109
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
110
+ } & Readonly<{
111
+ icons: typeof import('./types').DEFAULT_ICONS;
112
+ }> & Omit<Readonly<import('./types').QListItemProps> & Readonly<{
113
+ onSelect?: ((value: Primitive) => any) | undefined;
114
+ }>, "icons"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
115
+ $slots: {
116
+ prepend?(_: {}): any;
117
+ default?(_: {}): any;
118
+ append?(_: {}): any;
119
+ };
120
+ }) | null)[];
51
121
  };
52
122
  rootEl: any;
53
123
  };
@@ -63,12 +133,77 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
63
133
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
64
134
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
65
135
  }>, {
66
- class: string | unknown[];
67
- highlighted: Primitive;
68
136
  groups: Group[];
69
137
  itemValue: string;
70
138
  itemLabel: string;
71
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
139
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
140
+ listRef: unknown;
141
+ listItemsRef: (({
142
+ $: import('vue').ComponentInternalInstance;
143
+ $data: {};
144
+ $props: {
145
+ readonly value: Primitive;
146
+ readonly label: string;
147
+ readonly icon?: import('..').Icon | undefined;
148
+ readonly selected?: boolean | undefined;
149
+ readonly highlighted?: boolean | undefined;
150
+ readonly disabled?: boolean | undefined;
151
+ readonly description?: string | undefined;
152
+ readonly icons?: typeof import('./types').DEFAULT_ICONS | undefined;
153
+ readonly onSelect?: ((value: Primitive) => any) | undefined;
154
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
155
+ $attrs: {
156
+ [x: string]: unknown;
157
+ };
158
+ $refs: {
159
+ [x: string]: unknown;
160
+ };
161
+ $slots: Readonly<{
162
+ [name: string]: import('vue').Slot<any> | undefined;
163
+ }>;
164
+ $root: import('vue').ComponentPublicInstance | null;
165
+ $parent: import('vue').ComponentPublicInstance | null;
166
+ $host: Element | null;
167
+ $emit: (event: "select", value: Primitive) => void;
168
+ $el: HTMLLIElement;
169
+ $options: import('vue').ComponentOptionsBase<Readonly<import('./types').QListItemProps> & Readonly<{
170
+ onSelect?: ((value: Primitive) => any) | undefined;
171
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
172
+ select: (value: Primitive) => any;
173
+ }, string, {
174
+ icons: typeof import('./types').DEFAULT_ICONS;
175
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
176
+ beforeCreate?: (() => void) | (() => void)[];
177
+ created?: (() => void) | (() => void)[];
178
+ beforeMount?: (() => void) | (() => void)[];
179
+ mounted?: (() => void) | (() => void)[];
180
+ beforeUpdate?: (() => void) | (() => void)[];
181
+ updated?: (() => void) | (() => void)[];
182
+ activated?: (() => void) | (() => void)[];
183
+ deactivated?: (() => void) | (() => void)[];
184
+ beforeDestroy?: (() => void) | (() => void)[];
185
+ beforeUnmount?: (() => void) | (() => void)[];
186
+ destroyed?: (() => void) | (() => void)[];
187
+ unmounted?: (() => void) | (() => void)[];
188
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
189
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
190
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
191
+ };
192
+ $forceUpdate: () => void;
193
+ $nextTick: typeof import('vue').nextTick;
194
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
195
+ } & Readonly<{
196
+ icons: typeof import('./types').DEFAULT_ICONS;
197
+ }> & Omit<Readonly<import('./types').QListItemProps> & Readonly<{
198
+ onSelect?: ((value: Primitive) => any) | undefined;
199
+ }>, "icons"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
200
+ $slots: {
201
+ prepend?(_: {}): any;
202
+ default?(_: {}): any;
203
+ append?(_: {}): any;
204
+ };
205
+ }) | null)[];
206
+ }, any>;
72
207
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
73
208
  export default _default;
74
209
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AAmCA;AA0XC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAQnD,KAAK,WAAW,GAAG,UAAU,CAAC;AA8I7B;;;;;;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;AA4DF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA8HT,OAAO,IAA6B;;;;YATvB,GAAG;;;;;;EAc7B;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;6EAUnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AA0CA;AA+XC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAMlD,KAAK,WAAW,GAAG,UAAU,CAAC;AA6I9B;;;;;;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;AAmCD;;;;;;;;GAQG;AACH,iBAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAuB7E;AAsDF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAgIT,OAAO,IAA6B;;;;;YAbvB,GAAG;;;;YACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAxBU,GAAG,8CAGzC,GAAG,yBAA0B,GAAE,6DAC1C,GACA;;;;;;;;;;;;;;EAoCC;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAjE4B,GAAG,8CAGzC,GAAG,yBAA0B,GAAE,6DAC1C,GACA;;;;;;;;;;;;OAuEE,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,15 +1,15 @@
1
- import { defineComponent as T, mergeModels as U, useModel as G, ref as k, computed as y, openBlock as a, createBlock as p, resolveDynamicComponent as H, normalizeClass as K, withCtx as g, createElementBlock as w, Fragment as A, renderList as S, unref as V, renderSlot as N } from "vue";
2
- import { QListItemGroup as R, QListItem as z } from "./index.js";
3
- const P = /* @__PURE__ */ T({
1
+ import { defineComponent as H, mergeModels as K, useModel as N, ref as k, computed as F, createBlock as x, openBlock as d, resolveDynamicComponent as z, normalizeClass as J, withCtx as b, createElementBlock as B, Fragment as L, renderList as M, unref as _, renderSlot as D } from "vue";
2
+ import { QListItemGroup as P, QListItem as W } from "./index.js";
3
+ const Z = /* @__PURE__ */ H({
4
4
  __name: "QList",
5
- props: /* @__PURE__ */ U({
6
- highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
5
+ props: /* @__PURE__ */ K({
6
+ highlighted: { type: [String, Number, Boolean, Symbol] },
7
7
  items: {},
8
8
  groups: { default: () => [] },
9
9
  itemValue: { default: "key" },
10
10
  itemLabel: { default: "label" },
11
11
  disabled: { type: Boolean },
12
- class: { default: void 0 },
12
+ class: {},
13
13
  selectable: { type: Boolean }
14
14
  }, {
15
15
  modelValue: {
@@ -18,150 +18,168 @@ const P = /* @__PURE__ */ T({
18
18
  modelModifiers: {}
19
19
  }),
20
20
  emits: ["update:modelValue"],
21
- setup(v, { expose: F }) {
22
- const s = v, r = G(v, "modelValue"), c = k(!1), B = y(() => d.value.length > 1 ? "div" : "ul"), d = y(() => s.groups.length ? s.groups.filter(
23
- (e) => s.items.some((t) => t.group === e.id)
24
- ) : [{ id: "", title: "" }]), f = k(null);
25
- function L(e) {
26
- r.value = e;
27
- }
28
- function M() {
29
- c.value = !0;
30
- }
31
- function D() {
32
- c.value = !1;
33
- }
34
- function _(e) {
35
- var n;
36
- if ((n = f.value) != null && n.contains(e.relatedTarget))
21
+ setup(y, { expose: E }) {
22
+ const l = y, f = N(y, "modelValue"), p = k(!1), C = F(() => a.value.length > 1 ? "div" : "ul"), a = F(() => l.groups.length ? l.groups.filter(
23
+ (e) => l.items.some((t) => t.group === e.id)
24
+ ) : [{ id: "", title: "" }]), g = k(null), v = k(null);
25
+ function R(e) {
26
+ f.value = e;
27
+ }
28
+ function $() {
29
+ p.value = !0;
30
+ }
31
+ function q() {
32
+ p.value = !1;
33
+ }
34
+ function O(e) {
35
+ var s;
36
+ if ((s = g.value) != null && s.contains(e.relatedTarget))
37
37
  return;
38
38
  let t;
39
- r.value ? t = s.items.findIndex((Q) => Q[s.itemValue] === r.value) : t = m();
40
- const l = c.value;
41
- i(t, l);
39
+ f.value ? t = l.items.findIndex((o) => o[l.itemValue] === f.value) : t = h();
40
+ const n = p.value;
41
+ i(t, n);
42
42
  }
43
- function E(e) {
43
+ function Q(e) {
44
44
  switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), e.key) {
45
45
  case "ArrowDown":
46
- u("next");
46
+ m("next");
47
47
  break;
48
48
  case "ArrowUp":
49
- u("prev");
49
+ m("prev");
50
50
  break;
51
51
  case "Home":
52
- u("first");
52
+ m("first");
53
53
  break;
54
54
  case "End":
55
- u("last");
55
+ m("last");
56
56
  break;
57
57
  }
58
58
  }
59
- function u(e) {
59
+ function m(e) {
60
60
  switch (e) {
61
61
  case "next":
62
62
  case "prev":
63
- i(q(e));
63
+ i(j(e));
64
64
  break;
65
65
  case "first":
66
- i(m());
66
+ i(h());
67
67
  break;
68
68
  case "last":
69
- i(h());
69
+ i(w());
70
70
  break;
71
71
  }
72
72
  }
73
73
  function i(e, t = !1) {
74
- var n;
75
- (n = o()[e]) == null || n.focus({ preventScroll: t });
74
+ var s;
75
+ (s = r()[e]) == null || s.focus({ preventScroll: t });
76
76
  }
77
- function o() {
77
+ function r() {
78
78
  var t;
79
- const e = (t = f.value) == null ? void 0 : t.querySelectorAll("li");
79
+ const e = (t = g.value) == null ? void 0 : t.querySelectorAll("li");
80
80
  return e ? Array.from(e) : [];
81
81
  }
82
- function C(e) {
83
- return o()[e];
82
+ function T(e) {
83
+ return r()[e];
84
84
  }
85
- function j() {
86
- return o().indexOf(document.activeElement);
85
+ function U() {
86
+ return r().indexOf(document.activeElement);
87
87
  }
88
- function m() {
89
- const e = o(), t = e.find((l) => b(l));
88
+ function h() {
89
+ const e = r(), t = e.find((n) => I(n));
90
90
  return t ? e.indexOf(t) : -1;
91
91
  }
92
- function h() {
93
- const e = o(), t = [...e].reverse().find((l) => b(l));
92
+ function w() {
93
+ const e = r(), t = [...e].reverse().find((n) => I(n));
94
94
  return t ? e.indexOf(t) : -1;
95
95
  }
96
- function I(e, t, l) {
97
- return t === "prev" && e === 0 || t === "next" && e === l.length - 1;
96
+ function A(e, t, n) {
97
+ return t === "prev" && e <= 0 || t === "next" && e === n.length - 1;
98
98
  }
99
- function q(e) {
100
- const t = j();
101
- return x(t, e);
99
+ function j(e) {
100
+ const t = U();
101
+ return S(t, e);
102
102
  }
103
- function x(e, t) {
104
- const l = o();
105
- if (I(e, t, l))
103
+ function S(e, t) {
104
+ const n = r();
105
+ if (A(e, t, n))
106
106
  return e;
107
- let n = e + (t === "next" ? 1 : -1);
108
- for (; !b(l[n]); ) {
109
- if (I(n, t, l))
107
+ let s = e + (t === "next" ? 1 : -1);
108
+ for (; !I(n[s]); ) {
109
+ if (A(s, t, n))
110
110
  return e;
111
- n += t === "next" ? 1 : -1;
111
+ s += t === "next" ? 1 : -1;
112
112
  }
113
- return n;
113
+ return s;
114
114
  }
115
- function b(e) {
115
+ function I(e) {
116
116
  return e.tabIndex === -2;
117
117
  }
118
- function O(e) {
119
- return e ? s.items.filter((t) => t.group === e) : s.items;
118
+ function G(e) {
119
+ return e ? l.items.filter((t) => t.group === e) : l.items;
120
120
  }
121
- return F({
121
+ return E({
122
122
  focusItem: i,
123
- getItem: C,
124
- getAdjacentItemIndex: x,
125
- getFirstFocusableItemIndex: m,
126
- getLastFocusableItemIndex: h
127
- }), (e, t) => (a(), p(H(B.value), {
123
+ getItem: T,
124
+ getAdjacentItemIndex: S,
125
+ getFirstFocusableItemIndex: h,
126
+ getLastFocusableItemIndex: w
127
+ }), (e, t) => (d(), x(z(C.value), {
128
128
  ref_key: "listRef",
129
- ref: f,
130
- class: K(["q-list", { "q-list--disabled": s.disabled }, s.class]),
129
+ ref: g,
130
+ class: J(["q-list", { "q-list--disabled": l.disabled }, l.class]),
131
131
  role: "listbox",
132
- tabindex: s.disabled ? -1 : 0,
133
- onFocus: _,
134
- onMousedown: M,
135
- onMouseup: D,
136
- onKeydown: E
132
+ tabindex: l.disabled ? -1 : 0,
133
+ onFocus: O,
134
+ onMousedown: $,
135
+ onMouseup: q,
136
+ onKeydown: Q
137
137
  }, {
138
- default: g(() => [
139
- (a(!0), w(
140
- A,
138
+ default: b(() => [
139
+ (d(!0), B(
140
+ L,
141
141
  null,
142
- S(d.value, (l) => (a(), p(V(R), {
143
- id: l.id,
144
- key: l.id,
145
- title: d.value.length === 1 ? void 0 : l.title
142
+ M(a.value, (n, s) => (d(), x(_(P), {
143
+ id: n.id,
144
+ key: n.id,
145
+ title: a.value.length === 1 ? void 0 : n.title
146
146
  }, {
147
- default: g(() => [
148
- (a(!0), w(
149
- A,
147
+ default: b(() => [
148
+ (d(!0), B(
149
+ L,
150
150
  null,
151
- S(O(l.id), (n) => (a(), p(V(z), {
152
- key: n[s.itemValue],
153
- value: n[s.itemValue],
154
- label: n[s.itemLabel],
155
- description: n.description,
156
- icon: n.icon,
157
- disabled: s.disabled || l.disabled || n.disabled,
158
- highlighted: s.highlighted === n[s.itemValue],
159
- selected: e.selectable && r.value === n[s.itemValue],
160
- onSelect: L
151
+ M(G(n.id), (o, V) => (d(), x(_(W), {
152
+ key: o[l.itemValue],
153
+ ref_for: !0,
154
+ ref_key: "listItemsRef",
155
+ ref: v,
156
+ value: o[l.itemValue],
157
+ label: o[l.itemLabel],
158
+ description: o.description,
159
+ icon: o.icon,
160
+ disabled: l.disabled || n.disabled || o.disabled,
161
+ highlighted: l.highlighted === o[l.itemValue],
162
+ selected: e.selectable && f.value === o[l.itemValue],
163
+ onSelect: R
161
164
  }, {
162
- default: g(() => [
163
- N(e.$slots, "item", { item: n })
164
- ]),
165
+ append: b(() => {
166
+ var u, c;
167
+ return [
168
+ D(e.$slots, "item.append", {
169
+ item: o,
170
+ element: (c = (u = v.value) == null ? void 0 : u[V + s * a.value.length]) == null ? void 0 : c.$el
171
+ })
172
+ ];
173
+ }),
174
+ default: b(() => {
175
+ var u, c;
176
+ return [
177
+ D(e.$slots, "item", {
178
+ item: o,
179
+ element: (c = (u = v.value) == null ? void 0 : u[V + s * a.value.length]) == null ? void 0 : c.$el
180
+ })
181
+ ];
182
+ }),
165
183
  _: 2
166
184
  /* DYNAMIC */
167
185
  }, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))),
@@ -182,5 +200,5 @@ const P = /* @__PURE__ */ T({
182
200
  }
183
201
  });
184
202
  export {
185
- P as default
203
+ Z as default
186
204
  };
@@ -3,7 +3,9 @@ import { Primitive } from '../../types/primitive';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
5
5
  slots: {
6
+ prepend?(_: {}): any;
6
7
  default?(_: {}): any;
8
+ append?(_: {}): any;
7
9
  };
8
10
  refs: {};
9
11
  rootEl: HTMLLIElement;
@@ -14,8 +16,6 @@ declare const __VLS_component: import('vue').DefineComponent<QListItemProps, {},
14
16
  }, string, import('vue').PublicProps, Readonly<QListItemProps> & Readonly<{
15
17
  onSelect?: ((value: Primitive) => any) | undefined;
16
18
  }>, {
17
- icon: import('../QIcon').Icon;
18
- description: string;
19
19
  icons: typeof DEFAULT_ICONS;
20
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
21
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AA4CA;AAyFC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAGlD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AA4CxC,iBAAS,cAAc;WA+ET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;uFASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AA8CA;AAyFC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAGlD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAkCxC,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;yBAZrB,GAAG;yBACH,GAAG;wBACH,GAAG;;;;EAe/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;uFASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,37 +1,37 @@
1
- import { defineComponent as y, openBlock as i, createElementBlock as d, unref as o, normalizeClass as k, withModifiers as v, createElementVNode as l, renderSlot as g, createBlock as c, normalizeProps as r, mergeProps as m, createCommentVNode as s, createTextVNode as q, toDisplayString as p, createVNode as B, guardReactiveProps as N } from "vue";
2
- import { QIcon as a } from "../QIcon/index.js";
1
+ import { defineComponent as k, createElementBlock as c, openBlock as i, withModifiers as v, normalizeClass as g, unref as o, renderSlot as n, createElementVNode as s, createCommentVNode as a, createBlock as r, createTextVNode as q, normalizeProps as p, mergeProps as m, toDisplayString as u, createVNode as B, guardReactiveProps as N } from "vue";
2
+ import { QIcon as d } from "../QIcon/index.js";
3
3
  import { DEFAULT_ICONS as S } from "./types.js";
4
4
  import { useId as C } from "../../composables/uid.js";
5
- const x = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], D = { class: "q-list-item__container" }, E = { class: "q-list-item__content" }, I = {
5
+ const D = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], E = { class: "q-list-item__container" }, I = { class: "q-list-item__content" }, P = {
6
6
  key: 0,
7
7
  class: "q-list-item__description"
8
- }, P = { class: "q-list-item__check-container" }, L = /* @__PURE__ */ y({
8
+ }, V = { class: "q-list-item__check-container" }, K = /* @__PURE__ */ k({
9
9
  __name: "QListItem",
10
10
  props: {
11
11
  value: { type: [String, Number, Boolean, Symbol] },
12
12
  label: {},
13
- icon: { default: void 0 },
13
+ icon: {},
14
14
  selected: { type: Boolean },
15
15
  highlighted: { type: Boolean },
16
16
  disabled: { type: Boolean },
17
- description: { default: void 0 },
17
+ description: {},
18
18
  icons: { default: () => S }
19
19
  },
20
20
  emits: ["select"],
21
- setup(u, { emit: f }) {
22
- const e = u, _ = f, h = C();
23
- function n() {
24
- e.disabled || _("select", e.value);
21
+ setup(_, { emit: f }) {
22
+ const e = _, h = f, b = C();
23
+ function l() {
24
+ e.disabled || h("select", e.value);
25
25
  }
26
- function b(t) {
27
- t.key === "Tab" && n(), (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), n());
26
+ function y(t) {
27
+ t.key === "Tab" && l(), (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), l());
28
28
  }
29
- return (t, V) => (i(), d("li", {
30
- id: o(h),
29
+ return (t, w) => (i(), c("li", {
30
+ id: o(b),
31
31
  "data-key": e.value,
32
32
  role: "option",
33
33
  tabindex: e.disabled ? void 0 : -2,
34
- class: k([
34
+ class: g([
35
35
  "q-list-item",
36
36
  {
37
37
  "q-list-item--disabled": e.disabled,
@@ -41,55 +41,57 @@ const x = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], D = { c
41
41
  ]),
42
42
  "aria-label": e.label,
43
43
  "aria-selected": e.disabled ? void 0 : e.selected,
44
- onKeydown: b,
45
- onClick: v(n, ["stop", "prevent"])
44
+ onKeydown: y,
45
+ onClick: v(l, ["stop", "prevent"])
46
46
  }, [
47
- l("div", D, [
48
- l("div", E, [
49
- g(t.$slots, "default", {}, () => [
50
- e.icon ? (i(), c(
51
- o(a),
52
- r(m({ key: 0 }, e.icon)),
47
+ n(t.$slots, "prepend"),
48
+ s("div", E, [
49
+ s("div", I, [
50
+ n(t.$slots, "default", {}, () => [
51
+ e.icon ? (i(), r(
52
+ o(d),
53
+ p(m({ key: 0 }, e.icon)),
53
54
  null,
54
55
  16
55
56
  /* FULL_PROPS */
56
- )) : s("v-if", !0),
57
+ )) : a("v-if", !0),
57
58
  q(
58
- " " + p(e.label),
59
+ " " + u(e.label),
59
60
  1
60
61
  /* TEXT */
61
62
  )
62
63
  ])
63
64
  ]),
64
- e.description ? (i(), d("div", I, [
65
+ e.description ? (i(), c("div", P, [
65
66
  B(
66
- o(a),
67
- r(N(e.icons.description)),
67
+ o(d),
68
+ p(N(e.icons.description)),
68
69
  null,
69
70
  16
70
71
  /* FULL_PROPS */
71
72
  ),
72
- l(
73
+ s(
73
74
  "span",
74
75
  null,
75
- p(e.description),
76
+ u(e.description),
76
77
  1
77
78
  /* TEXT */
78
79
  )
79
- ])) : s("v-if", !0)
80
+ ])) : a("v-if", !0)
80
81
  ]),
81
- l("div", P, [
82
- e.selected ? (i(), c(
83
- o(a),
82
+ n(t.$slots, "append"),
83
+ s("div", V, [
84
+ e.selected ? (i(), r(
85
+ o(d),
84
86
  m({ key: 0 }, e.icons.check, { class: "q-list-item__check" }),
85
87
  null,
86
88
  16
87
89
  /* FULL_PROPS */
88
- )) : s("v-if", !0)
90
+ )) : a("v-if", !0)
89
91
  ])
90
- ], 42, x));
92
+ ], 42, D));
91
93
  }
92
94
  });
93
95
  export {
94
- L as default
96
+ K as default
95
97
  };
@@ -8,9 +8,7 @@ declare function __VLS_template(): {
8
8
  rootEl: HTMLUListElement;
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<QListItemGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QListItemGroupProps> & Readonly<{}>, {
12
- title: string;
13
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLUListElement>;
11
+ declare const __VLS_component: import('vue').DefineComponent<QListItemGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QListItemGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLUListElement>;
14
12
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
13
  export default _default;
16
14
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"QListItemGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItemGroup.vue"],"names":[],"mappings":"AAgBA;AAiCC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAsBnD,iBAAS,cAAc;WAwCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;0FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QListItemGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItemGroup.vue"],"names":[],"mappings":"AAgBA;AA+BC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAYnD,iBAAS,cAAc;WAmCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+TAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}