@quidgest/ui 0.13.2 → 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.
- package/dist/manifest/components.json +4 -0
- package/dist/ui.css +77 -0
- package/dist/ui.esm.js +1134 -912
- package/dist/ui.js +6 -6
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +96 -87
- package/dist/ui.scss +86 -4
- package/esm/components/QBadge/QBadge.d.ts +10 -35
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +19 -22
- package/esm/components/QBadge/index.d.ts +3 -139
- package/esm/components/QBadge/index.d.ts.map +1 -1
- package/esm/components/QBadge/types.d.ts +30 -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 +8 -50
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/index.d.ts +3 -197
- 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 +7 -21
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/index.d.ts +3 -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 +6 -33
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/index.d.ts +3 -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 +266 -144
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +52 -62
- package/esm/components/QCombobox/index.d.ts +3 -1075
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +92 -0
- package/esm/components/QCombobox/types.d.ts.map +1 -0
- package/esm/components/QCombobox/types.js +14 -0
- package/esm/components/QDialog/QDialog.d.ts +18 -93
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +45 -61
- package/esm/components/QDialog/index.d.ts +3 -267
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +82 -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 +15 -47
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/index.d.ts +3 -168
- 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.map +1 -1
- package/esm/components/QIcon/InlineSvg.js +6 -13
- package/esm/components/QIcon/QIcon.d.ts +3 -19
- 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 +2 -22
- 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 +3 -27
- 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 +4 -36
- 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 -156
- 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 +12 -42
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/index.d.ts +3 -153
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QInputGroup/types.d.ts +35 -0
- package/esm/components/QInputGroup/types.d.ts.map +1 -0
- package/esm/components/QLineLoader/QLineLoader.d.ts +2 -6
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/index.d.ts +3 -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 +11 -52
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QListItem.d.ts +10 -53
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +22 -28
- package/esm/components/QList/QListItemGroup.d.ts +7 -13
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QList/index.d.ts +7 -452
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +102 -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 +33 -118
- 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 +3 -339
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +88 -0
- package/esm/components/QOverlay/types.d.ts.map +1 -0
- package/esm/components/QPopover/QPopover.d.ts +17 -58
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +25 -24
- package/esm/components/QPopover/index.d.ts +3 -180
- package/esm/components/QPopover/index.d.ts.map +1 -1
- package/esm/components/QPopover/types.d.ts +44 -0
- package/esm/components/QPopover/types.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyList.d.ts +70 -0
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyList.vue.js +146 -0
- package/esm/components/QPropertyList/QPropertyList.vue2.js +4 -0
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +48 -0
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +72 -0
- package/esm/components/QPropertyList/QPropertyListGroup.vue2.js +4 -0
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts +53 -0
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +45 -0
- package/esm/components/QPropertyList/QPropertyListPanel.vue2.js +4 -0
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +29 -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 +13 -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 +101 -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 +25 -102
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +80 -91
- package/esm/components/QSelect/index.d.ts +3 -369
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +80 -0
- package/esm/components/QSelect/types.d.ts.map +1 -0
- package/esm/components/QSelect/types.js +14 -0
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +2 -14
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/index.d.ts +3 -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 +2 -10
- 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 +3 -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 +13 -61
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/index.d.ts +3 -229
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QTextField/types.d.ts +51 -0
- package/esm/components/QTextField/types.d.ts.map +1 -0
- package/esm/components/QThemeProvider/QThemeProvider.d.ts +6 -8
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QThemeProvider/index.d.ts +3 -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 +30 -94
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/index.d.ts +3 -279
- package/esm/components/QTooltip/index.d.ts.map +1 -1
- package/esm/components/QTooltip/types.d.ts +67 -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.js +3 -6
- package/esm/index.d.ts +4 -0
- package/esm/utils/color.js +1 -2
- package/esm/utils/setupPropsProxy.js +2 -4
- package/package.json +35 -36
|
@@ -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,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,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,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"}
|
|
@@ -1,83 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { QButtonProps } from '../QButton';
|
|
1
|
+
import { DialogButton } from './types';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
|
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
|
-
|
|
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;
|
|
1
|
+
{"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AAyDA;AAQC,OAAO,KAAK,EAAE,YAAY,EAAgB,MAAM,SAAS,CAAA;AA6D1D,iBAAS,cAAc;4BA6Nc,GAAG;yBACN,GAAG;2BACD,GAAG;EAGtC;AAmBD,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
|
|
2
|
-
import { QOverlay as
|
|
3
|
-
import { QButton as
|
|
4
|
-
import { QIcon as
|
|
5
|
-
import {
|
|
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 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
|
-
},
|
|
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: () => A },
|
|
34
18
|
dismissible: { type: Boolean },
|
|
35
19
|
html: { type: Boolean, default: !0 },
|
|
36
|
-
icon: { default: () =>
|
|
20
|
+
icon: { default: () => F },
|
|
37
21
|
id: { default: void 0 },
|
|
38
22
|
title: { default: "" },
|
|
39
23
|
class: { default: void 0 },
|
|
40
|
-
internals: { default: () => ({ icons:
|
|
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 =
|
|
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
|
-
|
|
33
|
+
p.value = !1;
|
|
50
34
|
}
|
|
51
35
|
function q(l) {
|
|
52
|
-
var
|
|
53
|
-
(
|
|
36
|
+
var d;
|
|
37
|
+
(d = l.action) == null || d.call(l), f();
|
|
54
38
|
}
|
|
55
|
-
return (l,
|
|
56
|
-
"model-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:
|
|
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(
|
|
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
|
-
})) :
|
|
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(), n("span",
|
|
85
|
+
e.icon ? (o(), n("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
|
-
|
|
95
|
+
a("div", $, [
|
|
112
96
|
e.html ? (o(), n("span", {
|
|
113
97
|
key: 0,
|
|
114
98
|
innerHTML: e.text
|
|
115
|
-
}, null, 8,
|
|
99
|
+
}, null, 8, z)) : (o(), n(
|
|
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
|
-
|
|
110
|
+
a("div", w, [
|
|
127
111
|
(o(!0), n(
|
|
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
|
};
|