@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.
- package/dist/manifest/components.json +4 -0
- package/dist/ui.css +81 -0
- package/dist/ui.esm.js +1163 -935
- package/dist/ui.js +6 -6
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +110 -101
- package/dist/ui.scss +1059 -973
- package/esm/components/QBadge/QBadge.d.ts +16 -68
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +29 -32
- package/esm/components/QBadge/index.d.ts +2 -139
- package/esm/components/QBadge/index.d.ts.map +1 -1
- package/esm/components/QBadge/types.d.ts +29 -0
- package/esm/components/QBadge/types.d.ts.map +1 -0
- package/esm/components/QBadge/types.js +8 -0
- package/esm/components/QButton/QButton.d.ts +15 -80
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/index.d.ts +3 -198
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QButton/types.d.ts +47 -0
- package/esm/components/QButton/types.d.ts.map +1 -0
- package/esm/components/QButtonGroup/QButtonGroup.d.ts +11 -42
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/index.d.ts +2 -79
- package/esm/components/QButtonGroup/index.d.ts.map +1 -1
- package/esm/components/QButtonGroup/types.d.ts +19 -0
- package/esm/components/QButtonGroup/types.d.ts.map +1 -0
- package/esm/components/QButtonToggle/QButtonToggle.d.ts +16 -73
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/index.d.ts +2 -115
- package/esm/components/QButtonToggle/index.d.ts.map +1 -1
- package/esm/components/QButtonToggle/types.d.ts +32 -0
- package/esm/components/QButtonToggle/types.d.ts.map +1 -0
- package/esm/components/QCombobox/QCombobox.d.ts +445 -435
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +121 -126
- package/esm/components/QCombobox/index.d.ts +2 -1075
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +93 -0
- package/esm/components/QCombobox/types.d.ts.map +1 -0
- package/esm/components/QCombobox/types.js +16 -0
- package/esm/components/QDialog/QDialog.d.ts +23 -186
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +48 -64
- package/esm/components/QDialog/index.d.ts +3 -268
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +80 -0
- package/esm/components/QDialog/types.d.ts.map +1 -0
- package/esm/components/QDialog/types.js +23 -0
- package/esm/components/QField/QField.d.ts +22 -77
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/index.d.ts +3 -169
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QField/types.d.ts +37 -0
- package/esm/components/QField/types.d.ts.map +1 -0
- package/esm/components/QIcon/InlineSvg.d.ts +6 -6
- package/esm/components/QIcon/InlineSvg.d.ts.map +1 -1
- package/esm/components/QIcon/InlineSvg.js +6 -13
- package/esm/components/QIcon/QIcon.d.ts +4 -46
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +2 -2
- package/esm/components/QIcon/QIconFont.d.ts +3 -51
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +9 -9
- package/esm/components/QIcon/QIconImg.d.ts +2 -36
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +3 -3
- package/esm/components/QIcon/QIconSvg.d.ts +7 -65
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +9 -9
- package/esm/components/QIcon/index.d.ts +9 -157
- package/esm/components/QIcon/index.d.ts.map +1 -1
- package/esm/components/QIcon/types.d.ts +40 -0
- package/esm/components/QIcon/types.d.ts.map +1 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts +17 -74
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/index.d.ts +2 -153
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QInputGroup/types.d.ts +34 -0
- package/esm/components/QInputGroup/types.d.ts.map +1 -0
- package/esm/components/QLineLoader/QLineLoader.d.ts +3 -29
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/index.d.ts +2 -13
- package/esm/components/QLineLoader/index.d.ts.map +1 -1
- package/esm/components/QLineLoader/types.d.ts +7 -0
- package/esm/components/QLineLoader/types.d.ts.map +1 -0
- package/esm/components/QList/QList.d.ts +25 -116
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QListItem.d.ts +16 -84
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +25 -31
- package/esm/components/QList/QListItemGroup.d.ts +11 -34
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QList/index.d.ts +7 -453
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +100 -0
- package/esm/components/QList/types.d.ts.map +1 -0
- package/esm/components/QList/types.js +11 -0
- package/esm/components/QOverlay/QOverlay.d.ts +31 -234
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +1 -2
- package/esm/components/QOverlay/index.d.ts +2 -339
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +87 -0
- package/esm/components/QOverlay/types.d.ts.map +1 -0
- package/esm/components/QPopover/QPopover.d.ts +21 -120
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/index.d.ts +2 -180
- package/esm/components/QPopover/index.d.ts.map +1 -1
- package/esm/components/QPopover/types.d.ts +43 -0
- package/esm/components/QPopover/types.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyList.d.ts +42 -0
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyList.vue.js +145 -0
- package/esm/components/QPropertyList/QPropertyList.vue2.js +4 -0
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +11 -0
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +68 -0
- package/esm/components/QPropertyList/QPropertyListGroup.vue2.js +4 -0
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts +21 -0
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +43 -0
- package/esm/components/QPropertyList/QPropertyListPanel.vue2.js +4 -0
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +24 -0
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +64 -0
- package/esm/components/QPropertyList/QPropertyListRow.vue2.js +4 -0
- package/esm/components/QPropertyList/index.d.ts +12 -0
- package/esm/components/QPropertyList/index.d.ts.map +1 -0
- package/esm/components/QPropertyList/index.js +12 -0
- package/esm/components/QPropertyList/types.d.ts +137 -0
- package/esm/components/QPropertyList/types.d.ts.map +1 -0
- package/esm/components/QPropertyList/types.js +14 -0
- package/esm/components/QSelect/QSelect.d.ts +202 -227
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +140 -146
- package/esm/components/QSelect/index.d.ts +2 -369
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +81 -0
- package/esm/components/QSelect/types.d.ts.map +1 -0
- package/esm/components/QSelect/types.js +16 -0
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +3 -41
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +19 -19
- package/esm/components/QSkeletonLoader/index.d.ts +2 -31
- package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/types.d.ts +15 -0
- package/esm/components/QSkeletonLoader/types.d.ts.map +1 -0
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +3 -35
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
- package/esm/components/QSpinnerLoader/index.d.ts +2 -22
- package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/types.d.ts +11 -0
- package/esm/components/QSpinnerLoader/types.d.ts.map +1 -0
- package/esm/components/QTextField/QTextField.d.ts +103 -147
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/index.d.ts +2 -229
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QTextField/types.d.ts +50 -0
- package/esm/components/QTextField/types.d.ts.map +1 -0
- package/esm/components/QThemeProvider/QThemeProvider.d.ts +10 -17
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QThemeProvider/index.d.ts +2 -37
- package/esm/components/QThemeProvider/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/types.d.ts +7 -0
- package/esm/components/QThemeProvider/types.d.ts.map +1 -0
- package/esm/components/QTooltip/QTooltip.d.ts +28 -190
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/index.d.ts +2 -279
- package/esm/components/QTooltip/index.d.ts.map +1 -1
- package/esm/components/QTooltip/types.d.ts +66 -0
- package/esm/components/QTooltip/types.d.ts.map +1 -0
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +42 -37
- package/esm/composables/defaults.d.ts +0 -1
- package/esm/composables/defaults.js +3 -6
- package/esm/composables/theme.d.ts +0 -1
- package/esm/framework.d.ts +0 -1
- package/esm/index.d.ts +4 -0
- package/esm/templates/theme.d.ts +0 -1
- package/esm/utils/color.js +1 -2
- package/esm/utils/setupPropsProxy.d.ts +0 -1
- package/esm/utils/setupPropsProxy.js +2 -4
- package/esm/utils/theme.d.ts +0 -1
- package/package.json +40 -41
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/index.ts"],"names":[],"mappings":"
|
|
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,93 @@
|
|
|
1
|
+
import { Icon } from '../QIcon';
|
|
2
|
+
import { Primitive } from '../../types/primitive';
|
|
3
|
+
import { QFieldSize } from '../QField';
|
|
4
|
+
import { QListItemGroupProps, QListItemProps } from '../QList';
|
|
5
|
+
export type QComboboxProps = {
|
|
6
|
+
/**
|
|
7
|
+
* The field unique identifier.
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The placeholder text for the combobox.
|
|
12
|
+
*/
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The nature of the autocomplete and selection mechanism.
|
|
16
|
+
*/
|
|
17
|
+
selectionMode?: 'manual' | 'automatic';
|
|
18
|
+
/**
|
|
19
|
+
* The mode of the combobox filter.
|
|
20
|
+
*/
|
|
21
|
+
filterMode?: 'builtin' | 'manual';
|
|
22
|
+
/**
|
|
23
|
+
* The label of the input.
|
|
24
|
+
*/
|
|
25
|
+
label?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the value of the component can be cleared.
|
|
28
|
+
*/
|
|
29
|
+
clearable?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the field is readonly.
|
|
32
|
+
*/
|
|
33
|
+
readonly?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the field is disabled.
|
|
36
|
+
*/
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* If set to true, an asterisk (*) is displayed
|
|
40
|
+
* to indicate that the field is required.
|
|
41
|
+
*/
|
|
42
|
+
required?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the items of the list are being loaded.
|
|
45
|
+
*/
|
|
46
|
+
loading?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The list of available items for selection.
|
|
49
|
+
*/
|
|
50
|
+
items: (Omit<QListItemProps, 'value' | 'label'> & {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
})[];
|
|
53
|
+
/**
|
|
54
|
+
* The item groups used for organizing the available items.
|
|
55
|
+
*/
|
|
56
|
+
groups?: (QListItemGroupProps & {
|
|
57
|
+
id: string;
|
|
58
|
+
})[];
|
|
59
|
+
/**
|
|
60
|
+
* Property on each item that contains its value.
|
|
61
|
+
*/
|
|
62
|
+
itemValue?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Property on each item that contains its title.
|
|
65
|
+
*/
|
|
66
|
+
itemLabel?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The value to be used in comparisons,
|
|
69
|
+
* used to check if the field has a selected item.
|
|
70
|
+
*/
|
|
71
|
+
emptyValue?: Primitive;
|
|
72
|
+
/**
|
|
73
|
+
* The size category of the field.
|
|
74
|
+
*/
|
|
75
|
+
size?: QFieldSize;
|
|
76
|
+
/**
|
|
77
|
+
* Custom set of classes to apply to the component.
|
|
78
|
+
*/
|
|
79
|
+
class?: string | unknown[];
|
|
80
|
+
/**
|
|
81
|
+
* Custom icon configurations.
|
|
82
|
+
*/
|
|
83
|
+
icons?: typeof DEFAULT_ICONS;
|
|
84
|
+
/**
|
|
85
|
+
* Custom text configurations.
|
|
86
|
+
*/
|
|
87
|
+
texts?: typeof DEFAULT_TEXTS;
|
|
88
|
+
};
|
|
89
|
+
export declare const DEFAULT_TEXTS: Record<string, string>;
|
|
90
|
+
type IconKeys = 'chevron' | 'clear';
|
|
91
|
+
export declare const DEFAULT_ICONS: Record<IconKeys, Icon>;
|
|
92
|
+
export {};
|
|
93
|
+
//# 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,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAE7E,MAAM,MAAM,cAAc,GAAG;IAC5B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;IAEtC;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IAEjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,KAAK,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;QAGjD,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAClB,CAAC,EAAE,CAAA;IAEJ;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,mBAAmB,GAAG;QAC/B,EAAE,EAAE,MAAM,CAAA;KACV,CAAC,EAAE,CAAA;IAEJ;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIhD,CAAA;AAED,KAAK,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAGnC,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,CAOhD,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
noData: "No data available",
|
|
3
|
+
clearValue: "Clear value",
|
|
4
|
+
showOptions: "Show options"
|
|
5
|
+
}, a = {
|
|
6
|
+
chevron: {
|
|
7
|
+
icon: "chevron-down"
|
|
8
|
+
},
|
|
9
|
+
clear: {
|
|
10
|
+
icon: "close"
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
a as DEFAULT_ICONS,
|
|
15
|
+
o as DEFAULT_TEXTS
|
|
16
|
+
};
|
|
@@ -1,198 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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;
|
|
1
|
+
import { DialogButton, QDialogProps, DEFAULT_ICONS } from './types';
|
|
2
|
+
declare let __VLS_typeProps: QDialogProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: boolean;
|
|
5
|
+
} & typeof __VLS_typeProps;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
slots: {
|
|
8
|
+
"body.content"?(_: {}): any;
|
|
9
|
+
"body.icon"?(_: {}): any;
|
|
10
|
+
"body.append"?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
attrs: Partial<{}>;
|
|
55
14
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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;
|
|
79
|
-
};
|
|
80
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
81
|
-
modelValue: import('vue').PropType<boolean>;
|
|
82
|
-
class: {
|
|
83
|
-
type: import('vue').PropType<string | unknown[]>;
|
|
84
|
-
default: undefined;
|
|
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
|
-
default: string;
|
|
97
|
-
};
|
|
98
|
-
icon: {
|
|
99
|
-
type: import('vue').PropType<Icon>;
|
|
100
|
-
default: () => Icon;
|
|
101
|
-
};
|
|
102
|
-
internals: {
|
|
103
|
-
type: import('vue').PropType<Internals>;
|
|
104
|
-
default: () => {
|
|
105
|
-
icons: Record<string, Icon>;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
id: {
|
|
109
|
-
type: import('vue').PropType<string>;
|
|
110
|
-
default: undefined;
|
|
111
|
-
};
|
|
112
|
-
attach: {
|
|
113
|
-
type: import('vue').PropType<string>;
|
|
114
|
-
default: string;
|
|
115
|
-
};
|
|
116
|
-
inline: {
|
|
117
|
-
type: import('vue').PropType<boolean>;
|
|
118
|
-
};
|
|
119
|
-
backdropBlur: {
|
|
120
|
-
type: import('vue').PropType<boolean>;
|
|
121
|
-
default: boolean;
|
|
122
|
-
};
|
|
123
|
-
buttons: {
|
|
124
|
-
type: import('vue').PropType<DialogButton[]>;
|
|
125
|
-
default: () => DialogButton[];
|
|
126
|
-
};
|
|
127
|
-
dismissible: {
|
|
128
|
-
type: import('vue').PropType<boolean>;
|
|
129
|
-
};
|
|
130
|
-
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
131
|
-
modelValue: import('vue').PropType<boolean>;
|
|
132
|
-
class: {
|
|
133
|
-
type: import('vue').PropType<string | unknown[]>;
|
|
134
|
-
default: undefined;
|
|
135
|
-
};
|
|
136
|
-
html: {
|
|
137
|
-
type: import('vue').PropType<boolean>;
|
|
138
|
-
default: boolean;
|
|
139
|
-
};
|
|
140
|
-
title: {
|
|
141
|
-
type: import('vue').PropType<string>;
|
|
142
|
-
default: string;
|
|
143
|
-
};
|
|
144
|
-
text: {
|
|
145
|
-
type: import('vue').PropType<string>;
|
|
146
|
-
default: string;
|
|
147
|
-
};
|
|
148
|
-
icon: {
|
|
149
|
-
type: import('vue').PropType<Icon>;
|
|
150
|
-
default: () => Icon;
|
|
151
|
-
};
|
|
152
|
-
internals: {
|
|
153
|
-
type: import('vue').PropType<Internals>;
|
|
154
|
-
default: () => {
|
|
155
|
-
icons: Record<string, Icon>;
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
id: {
|
|
159
|
-
type: import('vue').PropType<string>;
|
|
160
|
-
default: undefined;
|
|
161
|
-
};
|
|
162
|
-
attach: {
|
|
163
|
-
type: import('vue').PropType<string>;
|
|
164
|
-
default: string;
|
|
165
|
-
};
|
|
166
|
-
inline: {
|
|
167
|
-
type: import('vue').PropType<boolean>;
|
|
168
|
-
};
|
|
169
|
-
backdropBlur: {
|
|
170
|
-
type: import('vue').PropType<boolean>;
|
|
171
|
-
default: boolean;
|
|
172
|
-
};
|
|
173
|
-
buttons: {
|
|
174
|
-
type: import('vue').PropType<DialogButton[]>;
|
|
175
|
-
default: () => DialogButton[];
|
|
176
|
-
};
|
|
177
|
-
dismissible: {
|
|
178
|
-
type: import('vue').PropType<boolean>;
|
|
179
|
-
};
|
|
180
|
-
}>>, {
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (modelValue: boolean) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
|
|
20
|
+
}>, {
|
|
181
21
|
class: string | unknown[];
|
|
182
22
|
html: boolean;
|
|
183
23
|
title: string;
|
|
184
24
|
text: string;
|
|
185
|
-
icon: Icon;
|
|
186
|
-
|
|
25
|
+
icon: import('../QIcon').Icon;
|
|
26
|
+
icons: typeof DEFAULT_ICONS;
|
|
187
27
|
id: string;
|
|
188
28
|
attach: string;
|
|
189
29
|
backdropBlur: boolean;
|
|
190
30
|
buttons: DialogButton[];
|
|
191
|
-
}, {}
|
|
192
|
-
|
|
193
|
-
"body.icon"?(_: {}): any;
|
|
194
|
-
"body.append"?(_: {}): any;
|
|
195
|
-
}>;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
196
33
|
export default _default;
|
|
197
34
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
198
35
|
new (): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AA8GC,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAKzD,OAAO,EAAiC,aAAa,EAAE,MAAM,SAAS,CAAA;AAIvE,QAAA,IAAI,eAAe,EAAG,YAAY,CAAC;AAiDnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,OAAO,eAAe,CAAC;AAI3B,iBAAS,cAAc;;gCAgIc,GAAG;6BACN,GAAG;+BACD,GAAG;;;WASzB,OAAO,IAA6B;EAEjD;AAkBD,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,59 +1,43 @@
|
|
|
1
|
-
import { defineComponent as T, mergeModels as D, useModel as L, computed as N, openBlock as o, createBlock as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useId as
|
|
6
|
-
|
|
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 d, Fragment as E, renderList as M, mergeProps as g } from "vue";
|
|
2
|
+
import { QButton as b } from "../QButton/index.js";
|
|
3
|
+
import { QIcon as _ } from "../QIcon/index.js";
|
|
4
|
+
import { QOverlay as x } from "../QOverlay/index.js";
|
|
5
|
+
import { useId as A } from "../../composables/uid.js";
|
|
6
|
+
import { DEFAULT_BUTTONS as F, DEFAULT_ICON as I, DEFAULT_ICONS as O } from "./types.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
|
-
},
|
|
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: () =>
|
|
17
|
+
buttons: { default: () => F },
|
|
34
18
|
dismissible: { type: Boolean },
|
|
35
19
|
html: { type: Boolean, default: !0 },
|
|
36
|
-
icon: { default: () =>
|
|
20
|
+
icon: { default: () => I },
|
|
37
21
|
id: { default: void 0 },
|
|
38
22
|
title: { default: "" },
|
|
39
23
|
class: { default: void 0 },
|
|
40
|
-
|
|
24
|
+
icons: { default: () => O }
|
|
41
25
|
}, {
|
|
42
26
|
modelValue: { type: Boolean },
|
|
43
27
|
modelModifiers: {}
|
|
44
28
|
}),
|
|
45
29
|
emits: ["update:modelValue"],
|
|
46
|
-
setup(
|
|
47
|
-
const e =
|
|
30
|
+
setup(m) {
|
|
31
|
+
const e = m, p = L(m, "modelValue"), B = A(e.id), C = N(() => ["q-dialog", e.class]);
|
|
48
32
|
function f() {
|
|
49
|
-
|
|
33
|
+
p.value = !1;
|
|
50
34
|
}
|
|
51
35
|
function q(l) {
|
|
52
|
-
var
|
|
53
|
-
(
|
|
36
|
+
var n;
|
|
37
|
+
(n = l.action) == null || n.call(l), f();
|
|
54
38
|
}
|
|
55
|
-
return (l,
|
|
56
|
-
"model-value":
|
|
39
|
+
return (l, n) => (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,30 +46,30 @@ const x = { class: "q-dialog__header" }, A = { class: "q-dialog__header-title" }
|
|
|
62
46
|
"scroll-lock": "",
|
|
63
47
|
persistent: ""
|
|
64
48
|
}, {
|
|
65
|
-
default:
|
|
66
|
-
|
|
49
|
+
default: r(() => [
|
|
50
|
+
a(
|
|
67
51
|
"div",
|
|
68
52
|
{
|
|
69
53
|
class: V(C.value)
|
|
70
54
|
},
|
|
71
55
|
[
|
|
72
|
-
|
|
73
|
-
|
|
56
|
+
a("div", Q, [
|
|
57
|
+
a(
|
|
74
58
|
"span",
|
|
75
|
-
|
|
59
|
+
S,
|
|
76
60
|
y(e.title),
|
|
77
61
|
1
|
|
78
62
|
/* TEXT */
|
|
79
63
|
),
|
|
80
|
-
e.dismissible ? (o(),
|
|
64
|
+
e.dismissible ? (o(), s(t(b), {
|
|
81
65
|
key: 0,
|
|
82
66
|
"b-style": "tertiary",
|
|
83
67
|
onClick: f
|
|
84
68
|
}, {
|
|
85
|
-
default:
|
|
69
|
+
default: r(() => [
|
|
86
70
|
k(
|
|
87
|
-
t(
|
|
88
|
-
h(v(e.
|
|
71
|
+
t(_),
|
|
72
|
+
h(v(e.icons.close)),
|
|
89
73
|
null,
|
|
90
74
|
16
|
|
91
75
|
/* FULL_PROPS */
|
|
@@ -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
|
-
})) :
|
|
80
|
+
})) : c("v-if", !0)
|
|
97
81
|
]),
|
|
98
82
|
u(l.$slots, "body.content", {}, () => [
|
|
99
|
-
|
|
83
|
+
a("div", U, [
|
|
100
84
|
u(l.$slots, "body.icon", {}, () => [
|
|
101
|
-
e.icon ? (o(),
|
|
85
|
+
e.icon ? (o(), d("span", P, [
|
|
102
86
|
k(
|
|
103
|
-
t(
|
|
87
|
+
t(_),
|
|
104
88
|
h(v(e.icon)),
|
|
105
89
|
null,
|
|
106
90
|
16
|
|
107
91
|
/* FULL_PROPS */
|
|
108
92
|
)
|
|
109
|
-
])) :
|
|
93
|
+
])) : c("v-if", !0)
|
|
110
94
|
]),
|
|
111
|
-
|
|
112
|
-
e.html ? (o(),
|
|
95
|
+
a("div", $, [
|
|
96
|
+
e.html ? (o(), d("span", {
|
|
113
97
|
key: 0,
|
|
114
98
|
innerHTML: e.text
|
|
115
|
-
}, null, 8,
|
|
99
|
+
}, null, 8, z)) : (o(), d(
|
|
116
100
|
"span",
|
|
117
|
-
|
|
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
|
-
|
|
127
|
-
(o(!0),
|
|
110
|
+
a("div", w, [
|
|
111
|
+
(o(!0), d(
|
|
128
112
|
E,
|
|
129
113
|
null,
|
|
130
|
-
M(e.buttons, (
|
|
131
|
-
key:
|
|
132
|
-
onClick: () => q(
|
|
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:
|
|
135
|
-
|
|
136
|
-
t(
|
|
137
|
-
|
|
118
|
+
default: r(() => [
|
|
119
|
+
i.icon ? (o(), s(
|
|
120
|
+
t(_),
|
|
121
|
+
g({
|
|
138
122
|
key: 0,
|
|
139
123
|
ref_for: !0
|
|
140
|
-
},
|
|
124
|
+
}, i.icon),
|
|
141
125
|
null,
|
|
142
126
|
16
|
|
143
127
|
/* FULL_PROPS */
|
|
144
|
-
)) :
|
|
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
|
-
|
|
148
|
+
X as default
|
|
165
149
|
};
|