@quidgest/ui 0.13.3 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/dist/manifest/components.json +4 -0
  2. package/dist/ui.css +77 -0
  3. package/dist/ui.esm.js +1129 -908
  4. package/dist/ui.js +6 -6
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +94 -85
  7. package/dist/ui.scss +86 -4
  8. package/esm/components/QBadge/QBadge.d.ts +10 -35
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  10. package/esm/components/QBadge/QBadge.vue.js +19 -22
  11. package/esm/components/QBadge/index.d.ts +3 -139
  12. package/esm/components/QBadge/index.d.ts.map +1 -1
  13. package/esm/components/QBadge/types.d.ts +30 -0
  14. package/esm/components/QBadge/types.d.ts.map +1 -0
  15. package/esm/components/QBadge/types.js +8 -0
  16. package/esm/components/QButton/QButton.d.ts +8 -50
  17. package/esm/components/QButton/QButton.d.ts.map +1 -1
  18. package/esm/components/QButton/index.d.ts +3 -197
  19. package/esm/components/QButton/index.d.ts.map +1 -1
  20. package/esm/components/QButton/types.d.ts +47 -0
  21. package/esm/components/QButton/types.d.ts.map +1 -0
  22. package/esm/components/QButtonGroup/QButtonGroup.d.ts +7 -21
  23. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  24. package/esm/components/QButtonGroup/index.d.ts +3 -79
  25. package/esm/components/QButtonGroup/index.d.ts.map +1 -1
  26. package/esm/components/QButtonGroup/types.d.ts +19 -0
  27. package/esm/components/QButtonGroup/types.d.ts.map +1 -0
  28. package/esm/components/QButtonToggle/QButtonToggle.d.ts +6 -33
  29. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  30. package/esm/components/QButtonToggle/index.d.ts +3 -115
  31. package/esm/components/QButtonToggle/index.d.ts.map +1 -1
  32. package/esm/components/QButtonToggle/types.d.ts +32 -0
  33. package/esm/components/QButtonToggle/types.d.ts.map +1 -0
  34. package/esm/components/QCombobox/QCombobox.d.ts +266 -144
  35. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  36. package/esm/components/QCombobox/QCombobox.vue.js +52 -62
  37. package/esm/components/QCombobox/index.d.ts +3 -1075
  38. package/esm/components/QCombobox/index.d.ts.map +1 -1
  39. package/esm/components/QCombobox/types.d.ts +92 -0
  40. package/esm/components/QCombobox/types.d.ts.map +1 -0
  41. package/esm/components/QCombobox/types.js +14 -0
  42. package/esm/components/QDialog/QDialog.d.ts +18 -93
  43. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  44. package/esm/components/QDialog/QDialog.vue.js +45 -61
  45. package/esm/components/QDialog/index.d.ts +3 -267
  46. package/esm/components/QDialog/index.d.ts.map +1 -1
  47. package/esm/components/QDialog/types.d.ts +82 -0
  48. package/esm/components/QDialog/types.d.ts.map +1 -0
  49. package/esm/components/QDialog/types.js +23 -0
  50. package/esm/components/QField/QField.d.ts +15 -47
  51. package/esm/components/QField/QField.d.ts.map +1 -1
  52. package/esm/components/QField/index.d.ts +3 -168
  53. package/esm/components/QField/index.d.ts.map +1 -1
  54. package/esm/components/QField/types.d.ts +37 -0
  55. package/esm/components/QField/types.d.ts.map +1 -0
  56. package/esm/components/QIcon/InlineSvg.d.ts.map +1 -1
  57. package/esm/components/QIcon/InlineSvg.js +6 -13
  58. package/esm/components/QIcon/QIcon.d.ts +3 -19
  59. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  60. package/esm/components/QIcon/QIcon.vue.js +2 -2
  61. package/esm/components/QIcon/QIconFont.d.ts +2 -22
  62. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  63. package/esm/components/QIcon/QIconFont.vue.js +9 -9
  64. package/esm/components/QIcon/QIconImg.d.ts +3 -27
  65. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  66. package/esm/components/QIcon/QIconImg.vue.js +3 -3
  67. package/esm/components/QIcon/QIconSvg.d.ts +4 -36
  68. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  69. package/esm/components/QIcon/QIconSvg.vue.js +9 -9
  70. package/esm/components/QIcon/index.d.ts +9 -156
  71. package/esm/components/QIcon/index.d.ts.map +1 -1
  72. package/esm/components/QIcon/types.d.ts +40 -0
  73. package/esm/components/QIcon/types.d.ts.map +1 -0
  74. package/esm/components/QInputGroup/QInputGroup.d.ts +12 -42
  75. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  76. package/esm/components/QInputGroup/index.d.ts +3 -153
  77. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  78. package/esm/components/QInputGroup/types.d.ts +35 -0
  79. package/esm/components/QInputGroup/types.d.ts.map +1 -0
  80. package/esm/components/QLineLoader/QLineLoader.d.ts +2 -6
  81. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  82. package/esm/components/QLineLoader/index.d.ts +3 -13
  83. package/esm/components/QLineLoader/index.d.ts.map +1 -1
  84. package/esm/components/QLineLoader/types.d.ts +7 -0
  85. package/esm/components/QLineLoader/types.d.ts.map +1 -0
  86. package/esm/components/QList/QList.d.ts +11 -52
  87. package/esm/components/QList/QList.d.ts.map +1 -1
  88. package/esm/components/QList/QListItem.d.ts +10 -53
  89. package/esm/components/QList/QListItem.d.ts.map +1 -1
  90. package/esm/components/QList/QListItem.vue.js +22 -28
  91. package/esm/components/QList/QListItemGroup.d.ts +7 -13
  92. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  93. package/esm/components/QList/index.d.ts +7 -452
  94. package/esm/components/QList/index.d.ts.map +1 -1
  95. package/esm/components/QList/types.d.ts +102 -0
  96. package/esm/components/QList/types.d.ts.map +1 -0
  97. package/esm/components/QList/types.js +11 -0
  98. package/esm/components/QOverlay/QOverlay.d.ts +33 -118
  99. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  100. package/esm/components/QOverlay/QOverlay.vue.js +1 -2
  101. package/esm/components/QOverlay/index.d.ts +3 -339
  102. package/esm/components/QOverlay/index.d.ts.map +1 -1
  103. package/esm/components/QOverlay/types.d.ts +88 -0
  104. package/esm/components/QOverlay/types.d.ts.map +1 -0
  105. package/esm/components/QPopover/QPopover.d.ts +17 -58
  106. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  107. package/esm/components/QPopover/index.d.ts +3 -180
  108. package/esm/components/QPopover/index.d.ts.map +1 -1
  109. package/esm/components/QPopover/types.d.ts +44 -0
  110. package/esm/components/QPopover/types.d.ts.map +1 -0
  111. package/esm/components/QPropertyList/QPropertyList.d.ts +70 -0
  112. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -0
  113. package/esm/components/QPropertyList/QPropertyList.vue.js +146 -0
  114. package/esm/components/QPropertyList/QPropertyList.vue2.js +4 -0
  115. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +48 -0
  116. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -0
  117. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +72 -0
  118. package/esm/components/QPropertyList/QPropertyListGroup.vue2.js +4 -0
  119. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +53 -0
  120. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -0
  121. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +45 -0
  122. package/esm/components/QPropertyList/QPropertyListPanel.vue2.js +4 -0
  123. package/esm/components/QPropertyList/QPropertyListRow.d.ts +29 -0
  124. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -0
  125. package/esm/components/QPropertyList/QPropertyListRow.vue.js +64 -0
  126. package/esm/components/QPropertyList/QPropertyListRow.vue2.js +4 -0
  127. package/esm/components/QPropertyList/index.d.ts +13 -0
  128. package/esm/components/QPropertyList/index.d.ts.map +1 -0
  129. package/esm/components/QPropertyList/index.js +12 -0
  130. package/esm/components/QPropertyList/types.d.ts +101 -0
  131. package/esm/components/QPropertyList/types.d.ts.map +1 -0
  132. package/esm/components/QPropertyList/types.js +14 -0
  133. package/esm/components/QSelect/QSelect.d.ts +25 -102
  134. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  135. package/esm/components/QSelect/QSelect.vue.js +80 -91
  136. package/esm/components/QSelect/index.d.ts +3 -369
  137. package/esm/components/QSelect/index.d.ts.map +1 -1
  138. package/esm/components/QSelect/types.d.ts +80 -0
  139. package/esm/components/QSelect/types.d.ts.map +1 -0
  140. package/esm/components/QSelect/types.js +14 -0
  141. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +2 -14
  142. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  143. package/esm/components/QSkeletonLoader/index.d.ts +3 -31
  144. package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
  145. package/esm/components/QSkeletonLoader/types.d.ts +15 -0
  146. package/esm/components/QSkeletonLoader/types.d.ts.map +1 -0
  147. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +2 -10
  148. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  149. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
  150. package/esm/components/QSpinnerLoader/index.d.ts +3 -22
  151. package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
  152. package/esm/components/QSpinnerLoader/types.d.ts +11 -0
  153. package/esm/components/QSpinnerLoader/types.d.ts.map +1 -0
  154. package/esm/components/QTextField/QTextField.d.ts +13 -61
  155. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  156. package/esm/components/QTextField/index.d.ts +3 -229
  157. package/esm/components/QTextField/index.d.ts.map +1 -1
  158. package/esm/components/QTextField/types.d.ts +51 -0
  159. package/esm/components/QTextField/types.d.ts.map +1 -0
  160. package/esm/components/QThemeProvider/QThemeProvider.d.ts +6 -8
  161. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  162. package/esm/components/QThemeProvider/index.d.ts +3 -37
  163. package/esm/components/QThemeProvider/index.d.ts.map +1 -1
  164. package/esm/components/QThemeProvider/types.d.ts +7 -0
  165. package/esm/components/QThemeProvider/types.d.ts.map +1 -0
  166. package/esm/components/QTooltip/QTooltip.d.ts +30 -94
  167. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  168. package/esm/components/QTooltip/index.d.ts +3 -279
  169. package/esm/components/QTooltip/index.d.ts.map +1 -1
  170. package/esm/components/QTooltip/types.d.ts +67 -0
  171. package/esm/components/QTooltip/types.d.ts.map +1 -0
  172. package/esm/components/index.d.ts +1 -0
  173. package/esm/components/index.d.ts.map +1 -1
  174. package/esm/components/index.js +42 -37
  175. package/esm/composables/defaults.js +3 -6
  176. package/esm/index.d.ts +4 -0
  177. package/esm/utils/color.js +1 -2
  178. package/esm/utils/setupPropsProxy.js +2 -4
  179. package/package.json +35 -36
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmD,CAAA;AAGlE,OAAO,EAAE,SAAS,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/index.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,iBAAiB,CAAA;AAKxC,QAAA,MAAM,SAAS,EAAkC,OAAO,UAAU,CAAA;AAGlE,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -0,0 +1,92 @@
1
+ import { Icon } from '../QIcon';
2
+ import { Primitive } from '../../types/primitive';
3
+ import { QFieldSize } from '../QField';
4
+ import { QListItemGroupProps, QListItemProps } from '../QList';
5
+
6
+ export type QComboboxProps = {
7
+ /**
8
+ * The field unique identifier.
9
+ */
10
+ id?: string;
11
+ /**
12
+ * The placeholder text for the combobox.
13
+ */
14
+ placeholder?: string;
15
+ /**
16
+ * The nature of the autocomplete and selection mechanism.
17
+ */
18
+ selectionMode?: 'manual' | 'automatic';
19
+ /**
20
+ * The mode of the combobox filter.
21
+ */
22
+ filterMode?: 'builtin' | 'manual';
23
+ /**
24
+ * The label of the input.
25
+ */
26
+ label?: string;
27
+ /**
28
+ * Whether the value of the component can be cleared.
29
+ */
30
+ clearable?: boolean;
31
+ /**
32
+ * Whether the field is readonly.
33
+ */
34
+ readonly?: boolean;
35
+ /**
36
+ * Whether the field is disabled.
37
+ */
38
+ disabled?: boolean;
39
+ /**
40
+ * If set to true, an asterisk (*) is displayed
41
+ * to indicate that the field is required.
42
+ */
43
+ required?: boolean;
44
+ /**
45
+ * Whether the items of the list are being loaded.
46
+ */
47
+ loading?: boolean;
48
+ /**
49
+ * The list of available items for selection.
50
+ */
51
+ items: (Omit<QListItemProps, 'value' | 'label'> & {
52
+ [key: string]: any;
53
+ })[];
54
+ /**
55
+ * The item groups used for organizing the available items.
56
+ */
57
+ groups?: (QListItemGroupProps & {
58
+ id: string;
59
+ })[];
60
+ /**
61
+ * Property on each item that contains its value.
62
+ */
63
+ itemValue?: string;
64
+ /**
65
+ * Property on each item that contains its title.
66
+ */
67
+ itemLabel?: string;
68
+ /**
69
+ * The value to be used in comparisons,
70
+ * used to check if the field has a selected item.
71
+ */
72
+ emptyValue?: Primitive;
73
+ /**
74
+ * The size category of the field.
75
+ */
76
+ size?: QFieldSize;
77
+ /**
78
+ * Custom set of classes to apply to the component.
79
+ */
80
+ class?: string | unknown[];
81
+ /**
82
+ * The internal elements of the component.
83
+ */
84
+ internals?: Internals;
85
+ };
86
+ export declare const DEFAULT_TEXTS: Record<string, string>;
87
+ export declare const DEFAULT_ICONS: Record<string, Icon>;
88
+ export type Internals = {
89
+ icons: typeof DEFAULT_ICONS;
90
+ texts: typeof DEFAULT_TEXTS;
91
+ };
92
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO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,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAGD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAEhD,CAAA;AAGD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAO9C,CAAA;AAGD,MAAM,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,OAAO,aAAa,CAAA;IAC3B,KAAK,EAAE,OAAO,aAAa,CAAA;CAC3B,CAAA"}
@@ -0,0 +1,14 @@
1
+ const o = {
2
+ noData: "No data available"
3
+ }, a = {
4
+ chevron: {
5
+ icon: "chevron-down"
6
+ },
7
+ clear: {
8
+ icon: "close"
9
+ }
10
+ };
11
+ export {
12
+ a as DEFAULT_ICONS,
13
+ o as DEFAULT_TEXTS
14
+ };
@@ -1,83 +1,11 @@
1
- import { Icon } from '../QIcon';
2
- import { QButtonProps } from '../QButton';
1
+ import { DialogButton } from './types';
3
2
 
4
- export type QDialogProps = {
5
- /**
6
- * The text of the dialog window.
7
- */
8
- text?: string;
9
- /**
10
- * The DOM element the tooltip should be teleported to.
11
- * Defaults to the body of the document.
12
- */
13
- attach?: string;
14
- /**
15
- * Whether to disable teleport.
16
- * If enabled, the prop `attach` is ignored.
17
- */
18
- inline?: boolean;
19
- /**
20
- * Applies a backdrop blur effect behind the dialog window.
21
- */
22
- backdropBlur?: boolean;
23
- /**
24
- * The buttons to interact with the dialog window.
25
- */
26
- buttons?: DialogButton[];
27
- /**
28
- * True if the dialog window can be closed, false otherwise
29
- */
30
- dismissible?: boolean;
31
- /**
32
- * Whether the window's content is treated as HTML.
33
- */
34
- html?: boolean;
35
- /**
36
- * The icon of the dialog window.
37
- */
38
- icon?: Icon;
39
- /**
40
- * The dialog window unique identifier.
41
- */
42
- id?: string;
43
- /**
44
- * The title of the dialog window
45
- */
46
- title?: string;
47
- /**
48
- * Custom set of classes to apply to the component.
49
- */
50
- class?: string | unknown[];
51
- /**
52
- * The internal elements of the component.
53
- */
54
- internals?: Internals;
55
- };
56
- export type DialogButton = {
57
- /**
58
- * The id of the button.
59
- */
60
- id: string;
61
- /**
62
- * The icon of the button.
63
- */
64
- icon?: Icon;
65
- /**
66
- * The action that the button performs when clicked.
67
- */
68
- action?: {
69
- (): void;
70
- };
71
- /**
72
- * The generic button props.
73
- */
74
- props: QButtonProps;
75
- };
76
- declare const DEFAULT_ICONS: Record<string, Icon>;
77
- type Internals = {
78
- icons: typeof DEFAULT_ICONS;
3
+ declare function __VLS_template(): {
4
+ "body.content"?(_: {}): any;
5
+ "body.icon"?(_: {}): any;
6
+ "body.append"?(_: {}): any;
79
7
  };
80
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
8
+ declare const __VLS_component: import('vue').DefineComponent<{
81
9
  modelValue: import('vue').PropType<boolean>;
82
10
  class: {
83
11
  type: import('vue').PropType<string | unknown[]>;
@@ -96,13 +24,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
96
24
  default: string;
97
25
  };
98
26
  icon: {
99
- type: import('vue').PropType<Icon>;
100
- default: () => Icon;
27
+ type: import('vue').PropType<import('../QIcon').Icon>;
28
+ default: () => import('../QIcon').Icon;
101
29
  };
102
30
  internals: {
103
- type: import('vue').PropType<Internals>;
31
+ type: import('vue').PropType<import('./types').Internals>;
104
32
  default: () => {
105
- icons: Record<string, Icon>;
33
+ icons: Record<string, import('../QIcon').Icon>;
106
34
  };
107
35
  };
108
36
  id: {
@@ -146,13 +74,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
146
74
  default: string;
147
75
  };
148
76
  icon: {
149
- type: import('vue').PropType<Icon>;
150
- default: () => Icon;
77
+ type: import('vue').PropType<import('../QIcon').Icon>;
78
+ default: () => import('../QIcon').Icon;
151
79
  };
152
80
  internals: {
153
- type: import('vue').PropType<Internals>;
81
+ type: import('vue').PropType<import('./types').Internals>;
154
82
  default: () => {
155
- icons: Record<string, Icon>;
83
+ icons: Record<string, import('../QIcon').Icon>;
156
84
  };
157
85
  };
158
86
  id: {
@@ -182,17 +110,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
182
110
  html: boolean;
183
111
  title: string;
184
112
  text: string;
185
- icon: Icon;
186
- internals: Internals;
113
+ icon: import('../QIcon').Icon;
114
+ internals: import('./types').Internals;
187
115
  id: string;
188
116
  attach: string;
189
117
  backdropBlur: boolean;
190
118
  buttons: DialogButton[];
191
- }, {}>, {
192
- "body.content"?(_: {}): any;
193
- "body.icon"?(_: {}): any;
194
- "body.append"?(_: {}): any;
195
- }>;
119
+ }, {}>;
120
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
196
121
  export default _default;
197
122
  type __VLS_WithTemplateSlots<T, S> = T & {
198
123
  new (): {
@@ -1 +1 @@
1
- {"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AAyDA;AAYC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,MAAM,MAAM,YAAY,GAAG;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;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,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX;;OAEG;IACH,EAAE,CAAC,E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,QAAA,MAAM,eAAe;gBA3PT,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAA/B,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoQzC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAUxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1,59 +1,43 @@
1
- import { defineComponent as T, mergeModels as D, useModel as L, computed as N, openBlock as o, createBlock as a, unref as t, withCtx as d, createElementVNode as i, normalizeClass as V, toDisplayString as y, createVNode as k, normalizeProps as h, guardReactiveProps as v, createCommentVNode as r, renderSlot as u, createElementBlock as n, Fragment as E, renderList as M, mergeProps as b } from "vue";
2
- import { QOverlay as O } from "../QOverlay/index.js";
3
- import { QButton as g } from "../QButton/index.js";
4
- import { QIcon as p } from "../QIcon/index.js";
5
- import { useId as S } from "../../composables/uid.js";
6
- const x = { class: "q-dialog__header" }, A = { class: "q-dialog__header-title" }, F = { class: "q-dialog__body" }, I = {
1
+ import { defineComponent as T, mergeModels as D, useModel as L, computed as N, openBlock as o, createBlock as s, unref as t, withCtx as r, createElementVNode as a, normalizeClass as V, toDisplayString as y, createVNode as k, normalizeProps as h, guardReactiveProps as v, createCommentVNode as c, renderSlot as u, createElementBlock as n, Fragment as E, renderList as M, mergeProps as g } from "vue";
2
+ import { QOverlay as x } from "../QOverlay/index.js";
3
+ import { QButton as b } from "../QButton/index.js";
4
+ import { QIcon as _ } from "../QIcon/index.js";
5
+ import { DEFAULT_BUTTONS as A, DEFAULT_ICON as F, DEFAULT_ICONS as I } from "./types.js";
6
+ import { useId as O } from "../../composables/uid.js";
7
+ const Q = { class: "q-dialog__header" }, S = { class: "q-dialog__header-title" }, U = { class: "q-dialog__body" }, P = {
7
8
  key: 0,
8
9
  class: "q-dialog__body-icon"
9
- }, Q = { class: "q-dialog__body-text" }, U = ["innerHTML"], P = { key: 1 }, $ = { class: "q-dialog__body-actions" }, z = [
10
- {
11
- id: "button",
12
- icon: {
13
- icon: "check"
14
- },
15
- props: {
16
- bStyle: "primary",
17
- label: "Ok"
18
- }
19
- }
20
- ], H = {
21
- icon: "check-circle-outline"
22
- }, w = {
23
- close: {
24
- icon: "close"
25
- }
26
- }, W = /* @__PURE__ */ T({
10
+ }, $ = { class: "q-dialog__body-text" }, z = ["innerHTML"], H = { key: 1 }, w = { class: "q-dialog__body-actions" }, X = /* @__PURE__ */ T({
27
11
  __name: "QDialog",
28
12
  props: /* @__PURE__ */ D({
29
13
  text: { default: "" },
30
14
  attach: { default: "body" },
31
15
  inline: { type: Boolean },
32
16
  backdropBlur: { type: Boolean, default: !0 },
33
- buttons: { default: () => z },
17
+ buttons: { default: () => A },
34
18
  dismissible: { type: Boolean },
35
19
  html: { type: Boolean, default: !0 },
36
- icon: { default: () => H },
20
+ icon: { default: () => F },
37
21
  id: { default: void 0 },
38
22
  title: { default: "" },
39
23
  class: { default: void 0 },
40
- internals: { default: () => ({ icons: w }) }
24
+ internals: { default: () => ({ icons: I }) }
41
25
  }, {
42
26
  modelValue: { type: Boolean },
43
27
  modelModifiers: {}
44
28
  }),
45
29
  emits: ["update:modelValue"],
46
- setup(_) {
47
- const e = _, m = L(_, "modelValue"), B = S(e.id), C = N(() => ["q-dialog", e.class]);
30
+ setup(m) {
31
+ const e = m, p = L(m, "modelValue"), B = O(e.id), C = N(() => ["q-dialog", e.class]);
48
32
  function f() {
49
- m.value = !1;
33
+ p.value = !1;
50
34
  }
51
35
  function q(l) {
52
- var c;
53
- (c = l.action) == null || c.call(l), f();
36
+ var d;
37
+ (d = l.action) == null || d.call(l), f();
54
38
  }
55
- return (l, c) => (o(), a(t(O), {
56
- "model-value": m.value,
39
+ return (l, d) => (o(), s(t(x), {
40
+ "model-value": p.value,
57
41
  id: t(B),
58
42
  inline: e.inline,
59
43
  attach: e.attach,
@@ -62,29 +46,29 @@ const x = { class: "q-dialog__header" }, A = { class: "q-dialog__header-title" }
62
46
  "scroll-lock": "",
63
47
  persistent: ""
64
48
  }, {
65
- default: d(() => [
66
- i(
49
+ default: r(() => [
50
+ a(
67
51
  "div",
68
52
  {
69
53
  class: V(C.value)
70
54
  },
71
55
  [
72
- i("div", x, [
73
- i(
56
+ a("div", Q, [
57
+ a(
74
58
  "span",
75
- A,
59
+ S,
76
60
  y(e.title),
77
61
  1
78
62
  /* TEXT */
79
63
  ),
80
- e.dismissible ? (o(), a(t(g), {
64
+ e.dismissible ? (o(), s(t(b), {
81
65
  key: 0,
82
66
  "b-style": "tertiary",
83
67
  onClick: f
84
68
  }, {
85
- default: d(() => [
69
+ default: r(() => [
86
70
  k(
87
- t(p),
71
+ t(_),
88
72
  h(v(e.internals.icons.close)),
89
73
  null,
90
74
  16
@@ -93,28 +77,28 @@ const x = { class: "q-dialog__header" }, A = { class: "q-dialog__header-title" }
93
77
  ]),
94
78
  _: 1
95
79
  /* STABLE */
96
- })) : r("v-if", !0)
80
+ })) : c("v-if", !0)
97
81
  ]),
98
82
  u(l.$slots, "body.content", {}, () => [
99
- i("div", F, [
83
+ a("div", U, [
100
84
  u(l.$slots, "body.icon", {}, () => [
101
- e.icon ? (o(), n("span", I, [
85
+ e.icon ? (o(), n("span", P, [
102
86
  k(
103
- t(p),
87
+ t(_),
104
88
  h(v(e.icon)),
105
89
  null,
106
90
  16
107
91
  /* FULL_PROPS */
108
92
  )
109
- ])) : r("v-if", !0)
93
+ ])) : c("v-if", !0)
110
94
  ]),
111
- i("div", Q, [
95
+ a("div", $, [
112
96
  e.html ? (o(), n("span", {
113
97
  key: 0,
114
98
  innerHTML: e.text
115
- }, null, 8, U)) : (o(), n(
99
+ }, null, 8, z)) : (o(), n(
116
100
  "span",
117
- P,
101
+ H,
118
102
  y(e.text),
119
103
  1
120
104
  /* TEXT */
@@ -123,25 +107,25 @@ const x = { class: "q-dialog__header" }, A = { class: "q-dialog__header-title" }
123
107
  u(l.$slots, "body.append")
124
108
  ])
125
109
  ]),
126
- i("div", $, [
110
+ a("div", w, [
127
111
  (o(!0), n(
128
112
  E,
129
113
  null,
130
- M(e.buttons, (s) => (o(), a(t(g), b({ ref_for: !0 }, s.props, {
131
- key: s.id,
132
- onClick: () => q(s)
114
+ M(e.buttons, (i) => (o(), s(t(b), g({ ref_for: !0 }, i.props, {
115
+ key: i.id,
116
+ onClick: () => q(i)
133
117
  }), {
134
- default: d(() => [
135
- s.icon ? (o(), a(
136
- t(p),
137
- b({
118
+ default: r(() => [
119
+ i.icon ? (o(), s(
120
+ t(_),
121
+ g({
138
122
  key: 0,
139
123
  ref_for: !0
140
- }, s.icon),
124
+ }, i.icon),
141
125
  null,
142
126
  16
143
127
  /* FULL_PROPS */
144
- )) : r("v-if", !0)
128
+ )) : c("v-if", !0)
145
129
  ]),
146
130
  _: 2
147
131
  /* DYNAMIC */
@@ -161,5 +145,5 @@ const x = { class: "q-dialog__header" }, A = { class: "q-dialog__header-title" }
161
145
  }
162
146
  });
163
147
  export {
164
- W as default
148
+ X as default
165
149
  };