@quidgest/ui 0.13.3 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/dist/manifest/components.json +4 -0
  2. package/dist/ui.css +81 -0
  3. package/dist/ui.esm.js +1163 -935
  4. package/dist/ui.js +6 -6
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +110 -101
  7. package/dist/ui.scss +1059 -973
  8. package/esm/components/QBadge/QBadge.d.ts +16 -68
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  10. package/esm/components/QBadge/QBadge.vue.js +29 -32
  11. package/esm/components/QBadge/index.d.ts +2 -139
  12. package/esm/components/QBadge/index.d.ts.map +1 -1
  13. package/esm/components/QBadge/types.d.ts +29 -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 +15 -80
  17. package/esm/components/QButton/QButton.d.ts.map +1 -1
  18. package/esm/components/QButton/index.d.ts +3 -198
  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 +11 -42
  23. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  24. package/esm/components/QButtonGroup/index.d.ts +2 -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 +16 -73
  29. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  30. package/esm/components/QButtonToggle/index.d.ts +2 -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 +445 -435
  35. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  36. package/esm/components/QCombobox/QCombobox.vue.js +121 -126
  37. package/esm/components/QCombobox/index.d.ts +2 -1075
  38. package/esm/components/QCombobox/index.d.ts.map +1 -1
  39. package/esm/components/QCombobox/types.d.ts +93 -0
  40. package/esm/components/QCombobox/types.d.ts.map +1 -0
  41. package/esm/components/QCombobox/types.js +16 -0
  42. package/esm/components/QDialog/QDialog.d.ts +23 -186
  43. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  44. package/esm/components/QDialog/QDialog.vue.js +48 -64
  45. package/esm/components/QDialog/index.d.ts +3 -268
  46. package/esm/components/QDialog/index.d.ts.map +1 -1
  47. package/esm/components/QDialog/types.d.ts +80 -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 +22 -77
  51. package/esm/components/QField/QField.d.ts.map +1 -1
  52. package/esm/components/QField/index.d.ts +3 -169
  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 +6 -6
  57. package/esm/components/QIcon/InlineSvg.d.ts.map +1 -1
  58. package/esm/components/QIcon/InlineSvg.js +6 -13
  59. package/esm/components/QIcon/QIcon.d.ts +4 -46
  60. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  61. package/esm/components/QIcon/QIcon.vue.js +2 -2
  62. package/esm/components/QIcon/QIconFont.d.ts +3 -51
  63. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  64. package/esm/components/QIcon/QIconFont.vue.js +9 -9
  65. package/esm/components/QIcon/QIconImg.d.ts +2 -36
  66. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  67. package/esm/components/QIcon/QIconImg.vue.js +3 -3
  68. package/esm/components/QIcon/QIconSvg.d.ts +7 -65
  69. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  70. package/esm/components/QIcon/QIconSvg.vue.js +9 -9
  71. package/esm/components/QIcon/index.d.ts +9 -157
  72. package/esm/components/QIcon/index.d.ts.map +1 -1
  73. package/esm/components/QIcon/types.d.ts +40 -0
  74. package/esm/components/QIcon/types.d.ts.map +1 -0
  75. package/esm/components/QInputGroup/QInputGroup.d.ts +17 -74
  76. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  77. package/esm/components/QInputGroup/index.d.ts +2 -153
  78. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  79. package/esm/components/QInputGroup/types.d.ts +34 -0
  80. package/esm/components/QInputGroup/types.d.ts.map +1 -0
  81. package/esm/components/QLineLoader/QLineLoader.d.ts +3 -29
  82. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  83. package/esm/components/QLineLoader/index.d.ts +2 -13
  84. package/esm/components/QLineLoader/index.d.ts.map +1 -1
  85. package/esm/components/QLineLoader/types.d.ts +7 -0
  86. package/esm/components/QLineLoader/types.d.ts.map +1 -0
  87. package/esm/components/QList/QList.d.ts +25 -116
  88. package/esm/components/QList/QList.d.ts.map +1 -1
  89. package/esm/components/QList/QListItem.d.ts +16 -84
  90. package/esm/components/QList/QListItem.d.ts.map +1 -1
  91. package/esm/components/QList/QListItem.vue.js +25 -31
  92. package/esm/components/QList/QListItemGroup.d.ts +11 -34
  93. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  94. package/esm/components/QList/index.d.ts +7 -453
  95. package/esm/components/QList/index.d.ts.map +1 -1
  96. package/esm/components/QList/types.d.ts +100 -0
  97. package/esm/components/QList/types.d.ts.map +1 -0
  98. package/esm/components/QList/types.js +11 -0
  99. package/esm/components/QOverlay/QOverlay.d.ts +31 -234
  100. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  101. package/esm/components/QOverlay/QOverlay.vue.js +1 -2
  102. package/esm/components/QOverlay/index.d.ts +2 -339
  103. package/esm/components/QOverlay/index.d.ts.map +1 -1
  104. package/esm/components/QOverlay/types.d.ts +87 -0
  105. package/esm/components/QOverlay/types.d.ts.map +1 -0
  106. package/esm/components/QPopover/QPopover.d.ts +21 -120
  107. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  108. package/esm/components/QPopover/index.d.ts +2 -180
  109. package/esm/components/QPopover/index.d.ts.map +1 -1
  110. package/esm/components/QPopover/types.d.ts +43 -0
  111. package/esm/components/QPopover/types.d.ts.map +1 -0
  112. package/esm/components/QPropertyList/QPropertyList.d.ts +42 -0
  113. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -0
  114. package/esm/components/QPropertyList/QPropertyList.vue.js +145 -0
  115. package/esm/components/QPropertyList/QPropertyList.vue2.js +4 -0
  116. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +11 -0
  117. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -0
  118. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +68 -0
  119. package/esm/components/QPropertyList/QPropertyListGroup.vue2.js +4 -0
  120. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +21 -0
  121. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -0
  122. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +43 -0
  123. package/esm/components/QPropertyList/QPropertyListPanel.vue2.js +4 -0
  124. package/esm/components/QPropertyList/QPropertyListRow.d.ts +24 -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 +12 -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 +137 -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 +202 -227
  135. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  136. package/esm/components/QSelect/QSelect.vue.js +140 -146
  137. package/esm/components/QSelect/index.d.ts +2 -369
  138. package/esm/components/QSelect/index.d.ts.map +1 -1
  139. package/esm/components/QSelect/types.d.ts +81 -0
  140. package/esm/components/QSelect/types.d.ts.map +1 -0
  141. package/esm/components/QSelect/types.js +16 -0
  142. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +3 -41
  143. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  144. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +19 -19
  145. package/esm/components/QSkeletonLoader/index.d.ts +2 -31
  146. package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
  147. package/esm/components/QSkeletonLoader/types.d.ts +15 -0
  148. package/esm/components/QSkeletonLoader/types.d.ts.map +1 -0
  149. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +3 -35
  150. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  151. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
  152. package/esm/components/QSpinnerLoader/index.d.ts +2 -22
  153. package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
  154. package/esm/components/QSpinnerLoader/types.d.ts +11 -0
  155. package/esm/components/QSpinnerLoader/types.d.ts.map +1 -0
  156. package/esm/components/QTextField/QTextField.d.ts +103 -147
  157. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  158. package/esm/components/QTextField/index.d.ts +2 -229
  159. package/esm/components/QTextField/index.d.ts.map +1 -1
  160. package/esm/components/QTextField/types.d.ts +50 -0
  161. package/esm/components/QTextField/types.d.ts.map +1 -0
  162. package/esm/components/QThemeProvider/QThemeProvider.d.ts +10 -17
  163. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  164. package/esm/components/QThemeProvider/index.d.ts +2 -37
  165. package/esm/components/QThemeProvider/index.d.ts.map +1 -1
  166. package/esm/components/QThemeProvider/types.d.ts +7 -0
  167. package/esm/components/QThemeProvider/types.d.ts.map +1 -0
  168. package/esm/components/QTooltip/QTooltip.d.ts +28 -190
  169. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  170. package/esm/components/QTooltip/index.d.ts +2 -279
  171. package/esm/components/QTooltip/index.d.ts.map +1 -1
  172. package/esm/components/QTooltip/types.d.ts +66 -0
  173. package/esm/components/QTooltip/types.d.ts.map +1 -0
  174. package/esm/components/index.d.ts +1 -0
  175. package/esm/components/index.d.ts.map +1 -1
  176. package/esm/components/index.js +42 -37
  177. package/esm/composables/defaults.d.ts +0 -1
  178. package/esm/composables/defaults.js +3 -6
  179. package/esm/composables/theme.d.ts +0 -1
  180. package/esm/framework.d.ts +0 -1
  181. package/esm/index.d.ts +4 -0
  182. package/esm/templates/theme.d.ts +0 -1
  183. package/esm/utils/color.js +1 -2
  184. package/esm/utils/setupPropsProxy.d.ts +0 -1
  185. package/esm/utils/setupPropsProxy.js +2 -4
  186. package/esm/utils/theme.d.ts +0 -1
  187. package/package.json +40 -41
@@ -0,0 +1,87 @@
1
+ import { Appearance, Placement, Trigger } from '../../composables/overlay';
2
+ import { Selector } from '../../utils/getElement';
3
+ export type QOverlayProps = {
4
+ /**
5
+ * The DOM element the overlay should be anchored to.
6
+ */
7
+ anchor?: Selector;
8
+ /**
9
+ * The appearance of the overlay.
10
+ * 'regular' uses body text color for background and body background color for text.
11
+ * 'inverted' matches body color scheme.
12
+ */
13
+ appearance?: Appearance;
14
+ /**
15
+ * Whether the overlay has an arrow pointing to the target.
16
+ */
17
+ arrow?: boolean;
18
+ /**
19
+ * The DOM element the overlay should be teleported to.
20
+ * Defaults to the body of the document.
21
+ */
22
+ attach?: string;
23
+ /**
24
+ * Whether to disable teleport.
25
+ * If enabled, the prop `attach` is ignored.
26
+ */
27
+ inline?: boolean;
28
+ /**
29
+ * Applies a backdrop blur effect behind the overlay.
30
+ */
31
+ backdropBlur?: boolean;
32
+ /**
33
+ * Custom set of classes to apply to the dialog's underlay.
34
+ */
35
+ backdropClass?: string | unknown[];
36
+ /**
37
+ * The delay in milliseconds before showing the overlay.
38
+ */
39
+ delay?: number;
40
+ /**
41
+ * Whether elements outside of the overlay can be interacted with.
42
+ * Should be used with care and only in certain components, such as comboboxes,
43
+ * with proper handling of the `focusout` event.
44
+ */
45
+ nonModal?: boolean;
46
+ /**
47
+ * Whether to prevent scrolling while the overlay is open.
48
+ */
49
+ scrollLock?: boolean;
50
+ /**
51
+ * Offset the overlay in the given amount of pixels.
52
+ */
53
+ offset?: number;
54
+ /**
55
+ * If enabled, deactivation of the element will not occur upon clicking outside
56
+ * or pressing the escape key.
57
+ */
58
+ persistent?: boolean;
59
+ /**
60
+ * The placement of the overlay.
61
+ */
62
+ placement?: Placement;
63
+ /**
64
+ * Whether to spy on the real-time position of the anchor,
65
+ * to keep the position of the overlay up-to-date at all times.
66
+ */
67
+ spy?: boolean;
68
+ /**
69
+ * The name of the transition to apply.
70
+ */
71
+ transition?: string;
72
+ /**
73
+ * The method to trigger the overlay.
74
+ */
75
+ trigger?: Trigger;
76
+ /**
77
+ * The width of the overlay.
78
+ * Either is automatic, based on the overlay content,
79
+ * or matches the overlay's anchor.
80
+ */
81
+ width?: 'auto' | 'anchor';
82
+ /**
83
+ * Custom set of classes to apply to the component.
84
+ */
85
+ class?: string | unknown[];
86
+ };
87
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC3E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAElD,MAAM,MAAM,aAAa,GAAG;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAA;IAEjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAElC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA"}
@@ -1,128 +1,29 @@
1
- import { Placement } from '../../composables/overlay';
2
- import { Selector } from '../../utils/getElement';
3
-
4
- export type QPopoverProps = {
5
- /**
6
- * The DOM element the popover should be anchored to.
7
- */
8
- anchor: Selector;
9
- /**
10
- * Whether the popover has an arrow pointing to the target.
11
- */
12
- arrow?: boolean;
13
- /**
14
- * The DOM element the popover should be teleported to.
15
- * Defaults to the body of the document.
16
- */
17
- attach?: string;
18
- /**
19
- * Whether to disable teleport.
20
- * If enabled, the prop `attach` is ignored.
21
- */
22
- inline?: boolean;
23
- /**
24
- * Whether the popover is disabled.
25
- */
26
- disabled?: boolean;
27
- /**
28
- * Whether the popover's content is treated as HTML.
29
- */
30
- html?: boolean;
31
- /**
32
- * The placement of the popover.
33
- */
34
- placement?: Placement;
35
- /**
36
- * The text of the popover.
37
- */
38
- text: string;
39
- /**
40
- * The title of the popover.
41
- */
42
- title?: string;
1
+ import { QPopoverProps } from './types';
2
+ declare let __VLS_typeProps: QPopoverProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: boolean;
5
+ } & typeof __VLS_typeProps;
6
+ declare function __VLS_template(): {
7
+ slots: {
8
+ header?(_: {}): any;
9
+ body?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ attrs: Partial<{}>;
43
13
  };
44
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
45
- modelValue: import('vue').PropType<boolean>;
46
- anchor: {
47
- type: import('vue').PropType<Selector>;
48
- required: true;
49
- };
50
- html: {
51
- type: import('vue').PropType<boolean>;
52
- default: boolean;
53
- };
54
- title: {
55
- type: import('vue').PropType<string>;
56
- default: string;
57
- };
58
- text: {
59
- type: import('vue').PropType<string>;
60
- required: true;
61
- };
62
- disabled: {
63
- type: import('vue').PropType<boolean>;
64
- };
65
- placement: {
66
- type: import('vue').PropType<Placement>;
67
- default: string;
68
- };
69
- arrow: {
70
- type: import('vue').PropType<boolean>;
71
- default: boolean;
72
- };
73
- attach: {
74
- type: import('vue').PropType<string>;
75
- default: string;
76
- };
77
- inline: {
78
- type: import('vue').PropType<boolean>;
79
- };
80
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
81
- modelValue: import('vue').PropType<boolean>;
82
- anchor: {
83
- type: import('vue').PropType<Selector>;
84
- required: true;
85
- };
86
- html: {
87
- type: import('vue').PropType<boolean>;
88
- default: boolean;
89
- };
90
- title: {
91
- type: import('vue').PropType<string>;
92
- default: string;
93
- };
94
- text: {
95
- type: import('vue').PropType<string>;
96
- required: true;
97
- };
98
- disabled: {
99
- type: import('vue').PropType<boolean>;
100
- };
101
- placement: {
102
- type: import('vue').PropType<Placement>;
103
- default: string;
104
- };
105
- arrow: {
106
- type: import('vue').PropType<boolean>;
107
- default: boolean;
108
- };
109
- attach: {
110
- type: import('vue').PropType<string>;
111
- default: string;
112
- };
113
- inline: {
114
- type: import('vue').PropType<boolean>;
115
- };
116
- }>>, {
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "update:modelValue": (modelValue: boolean) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
+ "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
19
+ }>, {
117
20
  html: boolean;
118
21
  title: string;
119
- placement: Placement;
120
22
  arrow: boolean;
121
23
  attach: string;
122
- }, {}>, {
123
- header?(_: {}): any;
124
- body?(_: {}): any;
125
- }>;
24
+ placement: import('../../composables/overlay').Placement;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
126
27
  export default _default;
127
28
  type __VLS_WithTemplateSlots<T, S> = T & {
128
29
  new (): {
@@ -1 +1 @@
1
- {"version":3,"file":"QPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/QPopover.vue"],"names":[],"mappings":"AA4BA;AAMC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAElD,MAAM,MAAM,aAAa,GAAG;IAC3B;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAA;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgKF,wBAAwG;AAUxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"QPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/QPopover.vue"],"names":[],"mappings":"AAwDC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAI7C,QAAA,IAAI,eAAe,EAAG,aAAa,CAAC;AA4BpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,OAAO,eAAe,CAAC;AAI3B,iBAAS,cAAc;;wBAqDK,GAAG;sBACL,GAAG;;;WASf,OAAO,IAA6B;EAEjD;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,182 +1,4 @@
1
- declare const QPopover: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
3
- modelValue: import('vue').PropType<boolean>;
4
- anchor: {
5
- type: import('vue').PropType<import('../../utils/getElement').Selector>;
6
- required: true;
7
- };
8
- html: {
9
- type: import('vue').PropType<boolean>;
10
- default: boolean;
11
- };
12
- title: {
13
- type: import('vue').PropType<string>;
14
- default: string;
15
- };
16
- text: {
17
- type: import('vue').PropType<string>;
18
- required: true;
19
- };
20
- disabled: {
21
- type: import('vue').PropType<boolean>;
22
- };
23
- placement: {
24
- type: import('vue').PropType<import('../../composables/overlay').Placement>;
25
- default: string;
26
- };
27
- arrow: {
28
- type: import('vue').PropType<boolean>;
29
- default: boolean;
30
- };
31
- attach: {
32
- type: import('vue').PropType<string>;
33
- default: string;
34
- };
35
- inline: {
36
- type: import('vue').PropType<boolean>;
37
- };
38
- }>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
39
- modelValue: import('vue').PropType<boolean>;
40
- anchor: {
41
- type: import('vue').PropType<import('../../utils/getElement').Selector>;
42
- required: true;
43
- };
44
- html: {
45
- type: import('vue').PropType<boolean>;
46
- default: boolean;
47
- };
48
- title: {
49
- type: import('vue').PropType<string>;
50
- default: string;
51
- };
52
- text: {
53
- type: import('vue').PropType<string>;
54
- required: true;
55
- };
56
- disabled: {
57
- type: import('vue').PropType<boolean>;
58
- };
59
- placement: {
60
- type: import('vue').PropType<import('../../composables/overlay').Placement>;
61
- default: string;
62
- };
63
- arrow: {
64
- type: import('vue').PropType<boolean>;
65
- default: boolean;
66
- };
67
- attach: {
68
- type: import('vue').PropType<string>;
69
- default: string;
70
- };
71
- inline: {
72
- type: import('vue').PropType<boolean>;
73
- };
74
- }>>, {
75
- html: boolean;
76
- title: string;
77
- placement: import('../../composables/overlay').Placement;
78
- arrow: boolean;
79
- attach: string;
80
- }, true, {}, {}, {
81
- P: {};
82
- B: {};
83
- D: {};
84
- C: {};
85
- M: {};
86
- Defaults: {};
87
- }, Readonly<import('vue').ExtractPropTypes<{
88
- modelValue: import('vue').PropType<boolean>;
89
- anchor: {
90
- type: import('vue').PropType<import('../../utils/getElement').Selector>;
91
- required: true;
92
- };
93
- html: {
94
- type: import('vue').PropType<boolean>;
95
- default: boolean;
96
- };
97
- title: {
98
- type: import('vue').PropType<string>;
99
- default: string;
100
- };
101
- text: {
102
- type: import('vue').PropType<string>;
103
- required: true;
104
- };
105
- disabled: {
106
- type: import('vue').PropType<boolean>;
107
- };
108
- placement: {
109
- type: import('vue').PropType<import('../../composables/overlay').Placement>;
110
- default: string;
111
- };
112
- arrow: {
113
- type: import('vue').PropType<boolean>;
114
- default: boolean;
115
- };
116
- attach: {
117
- type: import('vue').PropType<string>;
118
- default: string;
119
- };
120
- inline: {
121
- type: import('vue').PropType<boolean>;
122
- };
123
- }>>, {}, {}, {}, {}, {
124
- html: boolean;
125
- title: string;
126
- placement: import('../../composables/overlay').Placement;
127
- arrow: boolean;
128
- attach: string;
129
- }>;
130
- __isFragment?: undefined;
131
- __isTeleport?: undefined;
132
- __isSuspense?: undefined;
133
- } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
134
- modelValue: import('vue').PropType<boolean>;
135
- anchor: {
136
- type: import('vue').PropType<import('../../utils/getElement').Selector>;
137
- required: true;
138
- };
139
- html: {
140
- type: import('vue').PropType<boolean>;
141
- default: boolean;
142
- };
143
- title: {
144
- type: import('vue').PropType<string>;
145
- default: string;
146
- };
147
- text: {
148
- type: import('vue').PropType<string>;
149
- required: true;
150
- };
151
- disabled: {
152
- type: import('vue').PropType<boolean>;
153
- };
154
- placement: {
155
- type: import('vue').PropType<import('../../composables/overlay').Placement>;
156
- default: string;
157
- };
158
- arrow: {
159
- type: import('vue').PropType<boolean>;
160
- default: boolean;
161
- };
162
- attach: {
163
- type: import('vue').PropType<string>;
164
- default: string;
165
- };
166
- inline: {
167
- type: import('vue').PropType<boolean>;
168
- };
169
- }>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
170
- html: boolean;
171
- title: string;
172
- placement: import('../../composables/overlay').Placement;
173
- arrow: boolean;
174
- attach: string;
175
- }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
176
- $slots: {
177
- header?(_: {}): any;
178
- body?(_: {}): any;
179
- };
180
- });
1
+ import { default as _QPopover } from './QPopover';
2
+ declare const QPopover: typeof _QPopover;
181
3
  export { QPopover };
182
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiD,CAAA;AAG/D,OAAO,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/index.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,gBAAgB,CAAA;AAKtC,QAAA,MAAM,QAAQ,EAAiC,OAAO,SAAS,CAAA;AAG/D,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,43 @@
1
+ import { Placement } from '../../composables/overlay';
2
+ import { Selector } from '../../utils/getElement';
3
+ export type QPopoverProps = {
4
+ /**
5
+ * The DOM element the popover should be anchored to.
6
+ */
7
+ anchor: Selector;
8
+ /**
9
+ * Whether the popover has an arrow pointing to the target.
10
+ */
11
+ arrow?: boolean;
12
+ /**
13
+ * The DOM element the popover should be teleported to.
14
+ * Defaults to the body of the document.
15
+ */
16
+ attach?: string;
17
+ /**
18
+ * Whether to disable teleport.
19
+ * If enabled, the prop `attach` is ignored.
20
+ */
21
+ inline?: boolean;
22
+ /**
23
+ * Whether the popover is disabled.
24
+ */
25
+ disabled?: boolean;
26
+ /**
27
+ * Whether the popover's content is treated as HTML.
28
+ */
29
+ html?: boolean;
30
+ /**
31
+ * The placement of the popover.
32
+ */
33
+ placement?: Placement;
34
+ /**
35
+ * The text of the popover.
36
+ */
37
+ text: string;
38
+ /**
39
+ * The title of the popover.
40
+ */
41
+ title?: string;
42
+ };
43
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAElD,MAAM,MAAM,aAAa,GAAG;IAC3B;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAA;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA"}
@@ -0,0 +1,42 @@
1
+ import { QPropertyListField, QPropertyListGroupProps, QPropertyListProps, DEFAULT_ICONS, DEFAULT_TEXTS } from './types';
2
+ declare function __VLS_template(): {
3
+ slots: Partial<Record<string, (_: {
4
+ field: QPropertyListField;
5
+ }) => any>> & {
6
+ panel?(_: {
7
+ field: {
8
+ id: string;
9
+ group?: string | undefined;
10
+ label: string;
11
+ description?: string | undefined;
12
+ component: ((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[];
13
+ props: Record<string, unknown>;
14
+ };
15
+ }): any;
16
+ };
17
+ refs: {
18
+ componentRoot: HTMLDivElement;
19
+ };
20
+ attrs: Partial<{}>;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<QPropertyListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
24
+ "field-change": (field: QPropertyListField) => any;
25
+ }, string, import('vue').PublicProps, Readonly<QPropertyListProps> & Readonly<{
26
+ "onField-change"?: ((field: QPropertyListField) => any) | undefined;
27
+ }>, {
28
+ class: string | unknown[];
29
+ icons: typeof DEFAULT_ICONS;
30
+ groups: QPropertyListGroupProps[];
31
+ texts: typeof DEFAULT_TEXTS;
32
+ fields: QPropertyListField[];
33
+ panelPosition: import('./types').PanelPosition;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
42
+ //# sourceMappingURL=QPropertyList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QPropertyList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyList.vue"],"names":[],"mappings":"AAkMC,OAAO,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAI9F,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AA8IvD,iBAAS,cAAc;;;UAyH+D,GAAG;;;;;;;;;;YAE7D,GAAG;;;;;WAUjB,OAAO,IAA6B;EAEjD;AAyBD,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"}
@@ -0,0 +1,145 @@
1
+ import { defineComponent as w, ref as d, computed as g, openBlock as s, createElementBlock as u, normalizeClass as v, createElementVNode as i, Fragment as p, renderList as _, createBlock as c, unref as f, createCommentVNode as y, withCtx as h, renderSlot as F } from "vue";
2
+ import { QPropertyListGroup as G, QPropertyListRow as Q, QPropertyListPanel as S } from "./index.js";
3
+ import { DEFAULT_ICONS as A, DEFAULT_TEXTS as N } from "./types.js";
4
+ const O = { class: "q-property-list__table" }, $ = /* @__PURE__ */ w({
5
+ __name: "QPropertyList",
6
+ props: {
7
+ fields: { default: () => [] },
8
+ noPanel: { type: Boolean },
9
+ noToggle: { type: Boolean },
10
+ panelPosition: { default: "bottom" },
11
+ groups: { default: () => [] },
12
+ class: { default: void 0 },
13
+ readonly: { type: Boolean },
14
+ icons: { default: () => A },
15
+ texts: { default: () => N }
16
+ },
17
+ emits: ["field-change"],
18
+ setup(k, { emit: P }) {
19
+ const t = k, x = P, a = d(t.groups.map((e) => e.id)), r = d(void 0), m = d(null), C = g(() => t.groups.length ? t.groups.filter(
20
+ (e) => t.fields.some((o) => o.group === e.id)
21
+ ) : [{ id: "", title: "" }]), L = g(() => [
22
+ t.class,
23
+ {
24
+ "q-property-list--side-panel": t.panelPosition === "right"
25
+ }
26
+ ]);
27
+ function T() {
28
+ var e;
29
+ (e = m.value) != null && e.contains(document.activeElement) || (r.value = void 0);
30
+ }
31
+ function q(e) {
32
+ return e ? t.fields.filter((o) => o.group === e) : t.fields;
33
+ }
34
+ function B(e) {
35
+ const o = a.value.indexOf(e);
36
+ o === -1 ? a.value.push(e) : a.value.splice(o, 1);
37
+ }
38
+ function E(e) {
39
+ var n;
40
+ const o = e.group && !a.value.includes(e.group), l = ((n = r.value) == null ? void 0 : n.id) === e.id;
41
+ return [
42
+ {
43
+ "q-property-list__row--closed": o,
44
+ "q-property-list__row--selected": l
45
+ }
46
+ ];
47
+ }
48
+ function R(e) {
49
+ r.value = e;
50
+ }
51
+ function b(e, o) {
52
+ t.readonly || (e.props.readonly ?? !1) || (e.props.modelValue = o, x("field-change", e));
53
+ }
54
+ return (e, o) => (s(), u(
55
+ "div",
56
+ {
57
+ tabindex: "0",
58
+ class: v(["q-property-list", L.value]),
59
+ ref_key: "componentRoot",
60
+ ref: m,
61
+ onFocusout: T
62
+ },
63
+ [
64
+ i("table", O, [
65
+ o[0] || (o[0] = i(
66
+ "thead",
67
+ { class: "q-property-list__header" },
68
+ [
69
+ i("tr", null, [
70
+ i("th", { colspan: "2" })
71
+ ])
72
+ ],
73
+ -1
74
+ /* HOISTED */
75
+ )),
76
+ i("tbody", null, [
77
+ (s(!0), u(
78
+ p,
79
+ null,
80
+ _(C.value, (l) => (s(), u(
81
+ p,
82
+ {
83
+ key: l.id
84
+ },
85
+ [
86
+ l.title ? (s(), c(f(G), {
87
+ key: 0,
88
+ id: l.id,
89
+ title: l.title,
90
+ icons: t.icons,
91
+ "no-toggle": t.noToggle,
92
+ onToggleGroup: B
93
+ }, null, 8, ["id", "title", "icons", "no-toggle"])) : y("v-if", !0),
94
+ (s(!0), u(
95
+ p,
96
+ null,
97
+ _(q(l.id), (n) => (s(), c(f(Q), {
98
+ key: n.id,
99
+ class: v(E(n)),
100
+ field: n,
101
+ readonly: t.readonly,
102
+ onFocus: R,
103
+ onFieldChange: b
104
+ }, {
105
+ default: h(() => [
106
+ F(e.$slots, n.id, { field: n })
107
+ ]),
108
+ _: 2
109
+ /* DYNAMIC */
110
+ }, 1032, ["class", "field", "readonly"]))),
111
+ 128
112
+ /* KEYED_FRAGMENT */
113
+ ))
114
+ ],
115
+ 64
116
+ /* STABLE_FRAGMENT */
117
+ ))),
118
+ 128
119
+ /* KEYED_FRAGMENT */
120
+ ))
121
+ ])
122
+ ]),
123
+ t.noPanel ? y("v-if", !0) : (s(), c(f(S), {
124
+ key: 0,
125
+ field: r.value,
126
+ texts: t.texts
127
+ }, {
128
+ default: h(() => [
129
+ r.value ? F(e.$slots, "panel", {
130
+ key: 0,
131
+ field: r.value
132
+ }) : y("v-if", !0)
133
+ ]),
134
+ _: 3
135
+ /* FORWARDED */
136
+ }, 8, ["field", "texts"]))
137
+ ],
138
+ 34
139
+ /* CLASS, NEED_HYDRATION */
140
+ ));
141
+ }
142
+ });
143
+ export {
144
+ $ as default
145
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QPropertyList.vue.js";
2
+ export {
3
+ f as default
4
+ };