@quidgest/ui 0.12.2 → 0.13.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 +2 -0
- package/dist/ui.css +161 -0
- package/dist/ui.esm.js +1017 -808
- package/dist/ui.js +6 -6
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +120 -102
- package/dist/ui.scss +117 -1
- package/esm/components/QBadge/QBadge.d.ts +72 -0
- package/esm/components/QBadge/QBadge.d.ts.map +1 -0
- package/esm/components/QBadge/QBadge.vue.js +87 -0
- package/esm/components/QBadge/QBadge.vue2.js +4 -0
- package/esm/components/QBadge/index.d.ts +119 -0
- package/esm/components/QBadge/index.d.ts.map +1 -0
- package/esm/components/QBadge/index.js +6 -0
- package/esm/components/QButton/index.d.ts +3 -0
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +10 -10
- package/esm/components/QCombobox/index.d.ts +30 -30
- package/esm/components/QDialog/QDialog.d.ts +180 -0
- package/esm/components/QDialog/QDialog.d.ts.map +1 -0
- package/esm/components/QDialog/QDialog.vue.js +146 -0
- package/esm/components/QDialog/QDialog.vue2.js +4 -0
- package/esm/components/QDialog/index.d.ts +237 -0
- package/esm/components/QDialog/index.d.ts.map +1 -0
- package/esm/components/QDialog/index.js +6 -0
- package/esm/components/QList/index.d.ts +16 -16
- package/esm/components/QTextField/QTextField.d.ts +5 -5
- package/esm/components/QTextField/index.d.ts +11 -11
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +43 -39
- package/esm/index.d.ts +2 -0
- package/esm/utils/color.d.ts +7 -1
- package/esm/utils/color.d.ts.map +1 -1
- package/esm/utils/color.js +54 -9
- package/package.json +1 -1
|
@@ -96,8 +96,8 @@ declare const QCombobox: {
|
|
|
96
96
|
class: string | unknown[];
|
|
97
97
|
type: string;
|
|
98
98
|
label: string;
|
|
99
|
-
id: string;
|
|
100
99
|
role: string;
|
|
100
|
+
id: string;
|
|
101
101
|
maxLength: number;
|
|
102
102
|
placeholder: string;
|
|
103
103
|
}> & Omit<{
|
|
@@ -108,9 +108,9 @@ declare const QCombobox: {
|
|
|
108
108
|
readonly class?: string | unknown[] | undefined;
|
|
109
109
|
readonly disabled?: boolean | undefined;
|
|
110
110
|
readonly required?: boolean | undefined;
|
|
111
|
+
readonly role?: string | undefined;
|
|
111
112
|
readonly modelValue?: string | undefined;
|
|
112
113
|
readonly id?: string | undefined;
|
|
113
|
-
readonly role?: string | undefined;
|
|
114
114
|
readonly maxLength?: number | undefined;
|
|
115
115
|
readonly readonly?: boolean | undefined;
|
|
116
116
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -137,11 +137,11 @@ declare const QCombobox: {
|
|
|
137
137
|
required: {
|
|
138
138
|
type: import('vue').PropType<boolean>;
|
|
139
139
|
};
|
|
140
|
-
|
|
140
|
+
role: {
|
|
141
141
|
type: import('vue').PropType<string>;
|
|
142
142
|
default: undefined;
|
|
143
143
|
};
|
|
144
|
-
|
|
144
|
+
id: {
|
|
145
145
|
type: import('vue').PropType<string>;
|
|
146
146
|
default: undefined;
|
|
147
147
|
};
|
|
@@ -156,7 +156,7 @@ declare const QCombobox: {
|
|
|
156
156
|
readonly: {
|
|
157
157
|
type: import('vue').PropType<boolean>;
|
|
158
158
|
};
|
|
159
|
-
}>>, "size" | "class" | "type" | "label" | "
|
|
159
|
+
}>>, "size" | "class" | "type" | "label" | "role" | "id" | "maxLength" | "placeholder">;
|
|
160
160
|
$attrs: {
|
|
161
161
|
[x: string]: unknown;
|
|
162
162
|
};
|
|
@@ -194,11 +194,11 @@ declare const QCombobox: {
|
|
|
194
194
|
required: {
|
|
195
195
|
type: import('vue').PropType<boolean>;
|
|
196
196
|
};
|
|
197
|
-
|
|
197
|
+
role: {
|
|
198
198
|
type: import('vue').PropType<string>;
|
|
199
199
|
default: undefined;
|
|
200
200
|
};
|
|
201
|
-
|
|
201
|
+
id: {
|
|
202
202
|
type: import('vue').PropType<string>;
|
|
203
203
|
default: undefined;
|
|
204
204
|
};
|
|
@@ -221,8 +221,8 @@ declare const QCombobox: {
|
|
|
221
221
|
class: string | unknown[];
|
|
222
222
|
type: string;
|
|
223
223
|
label: string;
|
|
224
|
-
id: string;
|
|
225
224
|
role: string;
|
|
225
|
+
id: string;
|
|
226
226
|
maxLength: number;
|
|
227
227
|
placeholder: string;
|
|
228
228
|
}, {}, string, {}> & {
|
|
@@ -269,11 +269,11 @@ declare const QCombobox: {
|
|
|
269
269
|
required: {
|
|
270
270
|
type: import('vue').PropType<boolean>;
|
|
271
271
|
};
|
|
272
|
-
|
|
272
|
+
role: {
|
|
273
273
|
type: import('vue').PropType<string>;
|
|
274
274
|
default: undefined;
|
|
275
275
|
};
|
|
276
|
-
|
|
276
|
+
id: {
|
|
277
277
|
type: import('vue').PropType<string>;
|
|
278
278
|
default: undefined;
|
|
279
279
|
};
|
|
@@ -515,8 +515,8 @@ declare const QCombobox: {
|
|
|
515
515
|
class: string | unknown[];
|
|
516
516
|
type: string;
|
|
517
517
|
label: string;
|
|
518
|
-
id: string;
|
|
519
518
|
role: string;
|
|
519
|
+
id: string;
|
|
520
520
|
maxLength: number;
|
|
521
521
|
placeholder: string;
|
|
522
522
|
}> & Omit<{
|
|
@@ -527,9 +527,9 @@ declare const QCombobox: {
|
|
|
527
527
|
readonly class?: string | unknown[] | undefined;
|
|
528
528
|
readonly disabled?: boolean | undefined;
|
|
529
529
|
readonly required?: boolean | undefined;
|
|
530
|
+
readonly role?: string | undefined;
|
|
530
531
|
readonly modelValue?: string | undefined;
|
|
531
532
|
readonly id?: string | undefined;
|
|
532
|
-
readonly role?: string | undefined;
|
|
533
533
|
readonly maxLength?: number | undefined;
|
|
534
534
|
readonly readonly?: boolean | undefined;
|
|
535
535
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -556,11 +556,11 @@ declare const QCombobox: {
|
|
|
556
556
|
required: {
|
|
557
557
|
type: import('vue').PropType<boolean>;
|
|
558
558
|
};
|
|
559
|
-
|
|
559
|
+
role: {
|
|
560
560
|
type: import('vue').PropType<string>;
|
|
561
561
|
default: undefined;
|
|
562
562
|
};
|
|
563
|
-
|
|
563
|
+
id: {
|
|
564
564
|
type: import('vue').PropType<string>;
|
|
565
565
|
default: undefined;
|
|
566
566
|
};
|
|
@@ -575,7 +575,7 @@ declare const QCombobox: {
|
|
|
575
575
|
readonly: {
|
|
576
576
|
type: import('vue').PropType<boolean>;
|
|
577
577
|
};
|
|
578
|
-
}>>, "size" | "class" | "type" | "label" | "
|
|
578
|
+
}>>, "size" | "class" | "type" | "label" | "role" | "id" | "maxLength" | "placeholder">;
|
|
579
579
|
$attrs: {
|
|
580
580
|
[x: string]: unknown;
|
|
581
581
|
};
|
|
@@ -613,11 +613,11 @@ declare const QCombobox: {
|
|
|
613
613
|
required: {
|
|
614
614
|
type: import('vue').PropType<boolean>;
|
|
615
615
|
};
|
|
616
|
-
|
|
616
|
+
role: {
|
|
617
617
|
type: import('vue').PropType<string>;
|
|
618
618
|
default: undefined;
|
|
619
619
|
};
|
|
620
|
-
|
|
620
|
+
id: {
|
|
621
621
|
type: import('vue').PropType<string>;
|
|
622
622
|
default: undefined;
|
|
623
623
|
};
|
|
@@ -640,8 +640,8 @@ declare const QCombobox: {
|
|
|
640
640
|
class: string | unknown[];
|
|
641
641
|
type: string;
|
|
642
642
|
label: string;
|
|
643
|
-
id: string;
|
|
644
643
|
role: string;
|
|
644
|
+
id: string;
|
|
645
645
|
maxLength: number;
|
|
646
646
|
placeholder: string;
|
|
647
647
|
}, {}, string, {}> & {
|
|
@@ -688,11 +688,11 @@ declare const QCombobox: {
|
|
|
688
688
|
required: {
|
|
689
689
|
type: import('vue').PropType<boolean>;
|
|
690
690
|
};
|
|
691
|
-
|
|
691
|
+
role: {
|
|
692
692
|
type: import('vue').PropType<string>;
|
|
693
693
|
default: undefined;
|
|
694
694
|
};
|
|
695
|
-
|
|
695
|
+
id: {
|
|
696
696
|
type: import('vue').PropType<string>;
|
|
697
697
|
default: undefined;
|
|
698
698
|
};
|
|
@@ -838,8 +838,8 @@ declare const QCombobox: {
|
|
|
838
838
|
class: string | unknown[];
|
|
839
839
|
type: string;
|
|
840
840
|
label: string;
|
|
841
|
-
id: string;
|
|
842
841
|
role: string;
|
|
842
|
+
id: string;
|
|
843
843
|
maxLength: number;
|
|
844
844
|
placeholder: string;
|
|
845
845
|
}> & Omit<{
|
|
@@ -850,9 +850,9 @@ declare const QCombobox: {
|
|
|
850
850
|
readonly class?: string | unknown[] | undefined;
|
|
851
851
|
readonly disabled?: boolean | undefined;
|
|
852
852
|
readonly required?: boolean | undefined;
|
|
853
|
+
readonly role?: string | undefined;
|
|
853
854
|
readonly modelValue?: string | undefined;
|
|
854
855
|
readonly id?: string | undefined;
|
|
855
|
-
readonly role?: string | undefined;
|
|
856
856
|
readonly maxLength?: number | undefined;
|
|
857
857
|
readonly readonly?: boolean | undefined;
|
|
858
858
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -879,11 +879,11 @@ declare const QCombobox: {
|
|
|
879
879
|
required: {
|
|
880
880
|
type: import('vue').PropType<boolean>;
|
|
881
881
|
};
|
|
882
|
-
|
|
882
|
+
role: {
|
|
883
883
|
type: import('vue').PropType<string>;
|
|
884
884
|
default: undefined;
|
|
885
885
|
};
|
|
886
|
-
|
|
886
|
+
id: {
|
|
887
887
|
type: import('vue').PropType<string>;
|
|
888
888
|
default: undefined;
|
|
889
889
|
};
|
|
@@ -898,7 +898,7 @@ declare const QCombobox: {
|
|
|
898
898
|
readonly: {
|
|
899
899
|
type: import('vue').PropType<boolean>;
|
|
900
900
|
};
|
|
901
|
-
}>>, "size" | "class" | "type" | "label" | "
|
|
901
|
+
}>>, "size" | "class" | "type" | "label" | "role" | "id" | "maxLength" | "placeholder">;
|
|
902
902
|
$attrs: {
|
|
903
903
|
[x: string]: unknown;
|
|
904
904
|
};
|
|
@@ -936,11 +936,11 @@ declare const QCombobox: {
|
|
|
936
936
|
required: {
|
|
937
937
|
type: import('vue').PropType<boolean>;
|
|
938
938
|
};
|
|
939
|
-
|
|
939
|
+
role: {
|
|
940
940
|
type: import('vue').PropType<string>;
|
|
941
941
|
default: undefined;
|
|
942
942
|
};
|
|
943
|
-
|
|
943
|
+
id: {
|
|
944
944
|
type: import('vue').PropType<string>;
|
|
945
945
|
default: undefined;
|
|
946
946
|
};
|
|
@@ -963,8 +963,8 @@ declare const QCombobox: {
|
|
|
963
963
|
class: string | unknown[];
|
|
964
964
|
type: string;
|
|
965
965
|
label: string;
|
|
966
|
-
id: string;
|
|
967
966
|
role: string;
|
|
967
|
+
id: string;
|
|
968
968
|
maxLength: number;
|
|
969
969
|
placeholder: string;
|
|
970
970
|
}, {}, string, {}> & {
|
|
@@ -1011,11 +1011,11 @@ declare const QCombobox: {
|
|
|
1011
1011
|
required: {
|
|
1012
1012
|
type: import('vue').PropType<boolean>;
|
|
1013
1013
|
};
|
|
1014
|
-
|
|
1014
|
+
role: {
|
|
1015
1015
|
type: import('vue').PropType<string>;
|
|
1016
1016
|
default: undefined;
|
|
1017
1017
|
};
|
|
1018
|
-
|
|
1018
|
+
id: {
|
|
1019
1019
|
type: import('vue').PropType<string>;
|
|
1020
1020
|
default: undefined;
|
|
1021
1021
|
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { Icon } from '../QIcon';
|
|
2
|
+
import { QButtonProps } from '../QButton';
|
|
3
|
+
|
|
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
|
+
export type DialogButton = QButtonProps & {
|
|
53
|
+
/**
|
|
54
|
+
* The id of the button
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* The icon of the button
|
|
59
|
+
*/
|
|
60
|
+
icon?: Icon;
|
|
61
|
+
/**
|
|
62
|
+
* The action that the button performs when clicked
|
|
63
|
+
*/
|
|
64
|
+
action?: {
|
|
65
|
+
(): void;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
69
|
+
modelValue: import('vue').PropType<boolean>;
|
|
70
|
+
class: {
|
|
71
|
+
type: import('vue').PropType<string | unknown[]>;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
html: {
|
|
75
|
+
type: import('vue').PropType<boolean>;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
title: {
|
|
79
|
+
type: import('vue').PropType<string>;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
text: {
|
|
83
|
+
type: import('vue').PropType<string>;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
icon: {
|
|
87
|
+
type: import('vue').PropType<Icon>;
|
|
88
|
+
default: () => Icon;
|
|
89
|
+
};
|
|
90
|
+
id: {
|
|
91
|
+
type: import('vue').PropType<string>;
|
|
92
|
+
default: undefined;
|
|
93
|
+
};
|
|
94
|
+
attach: {
|
|
95
|
+
type: import('vue').PropType<string>;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
inline: {
|
|
99
|
+
type: import('vue').PropType<boolean>;
|
|
100
|
+
};
|
|
101
|
+
backdropBlur: {
|
|
102
|
+
type: import('vue').PropType<boolean>;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
buttons: {
|
|
106
|
+
type: import('vue').PropType<DialogButton[]>;
|
|
107
|
+
default: () => DialogButton[];
|
|
108
|
+
};
|
|
109
|
+
dismissible: {
|
|
110
|
+
type: import('vue').PropType<boolean>;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
113
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
114
|
+
modelValue: import('vue').PropType<boolean>;
|
|
115
|
+
class: {
|
|
116
|
+
type: import('vue').PropType<string | unknown[]>;
|
|
117
|
+
default: undefined;
|
|
118
|
+
};
|
|
119
|
+
html: {
|
|
120
|
+
type: import('vue').PropType<boolean>;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
title: {
|
|
124
|
+
type: import('vue').PropType<string>;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
text: {
|
|
128
|
+
type: import('vue').PropType<string>;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
icon: {
|
|
132
|
+
type: import('vue').PropType<Icon>;
|
|
133
|
+
default: () => Icon;
|
|
134
|
+
};
|
|
135
|
+
id: {
|
|
136
|
+
type: import('vue').PropType<string>;
|
|
137
|
+
default: undefined;
|
|
138
|
+
};
|
|
139
|
+
attach: {
|
|
140
|
+
type: import('vue').PropType<string>;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
inline: {
|
|
144
|
+
type: import('vue').PropType<boolean>;
|
|
145
|
+
};
|
|
146
|
+
backdropBlur: {
|
|
147
|
+
type: import('vue').PropType<boolean>;
|
|
148
|
+
default: boolean;
|
|
149
|
+
};
|
|
150
|
+
buttons: {
|
|
151
|
+
type: import('vue').PropType<DialogButton[]>;
|
|
152
|
+
default: () => DialogButton[];
|
|
153
|
+
};
|
|
154
|
+
dismissible: {
|
|
155
|
+
type: import('vue').PropType<boolean>;
|
|
156
|
+
default: boolean;
|
|
157
|
+
};
|
|
158
|
+
}>>, {
|
|
159
|
+
class: string | unknown[];
|
|
160
|
+
html: boolean;
|
|
161
|
+
title: string;
|
|
162
|
+
text: string;
|
|
163
|
+
icon: Icon;
|
|
164
|
+
id: string;
|
|
165
|
+
attach: string;
|
|
166
|
+
backdropBlur: boolean;
|
|
167
|
+
buttons: DialogButton[];
|
|
168
|
+
dismissible: boolean;
|
|
169
|
+
}, {}>, {
|
|
170
|
+
"body.content"?(_: {}): any;
|
|
171
|
+
"body.icon"?(_: {}): any;
|
|
172
|
+
"body.append"?(_: {}): any;
|
|
173
|
+
}>;
|
|
174
|
+
export default _default;
|
|
175
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
176
|
+
new (): {
|
|
177
|
+
$slots: S;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
//# sourceMappingURL=QDialog.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AAwDA;AAWC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,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,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;AAKD,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX;;OAEG;IACH,MAAM,CAAC,EAAE;QAAE,IAAI,IAAI,CAAA;KAAE,CAAA;CACrB,CAAA;;gBA2DU,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAA/B,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAmON,GAAG;yBACN,GAAG;2BACD,GAAG;;AA7QvC,wBA6SI;AASJ,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { defineComponent as B, mergeModels as C, useModel as q, openBlock as o, createBlock as n, unref as l, withCtx as c, createElementVNode as i, toDisplayString as y, createVNode as h, createCommentVNode as r, renderSlot as u, createElementBlock as s, normalizeProps as T, guardReactiveProps as V, Fragment as D, renderList as L, mergeProps as k } from "vue";
|
|
2
|
+
import { QOverlay as M } from "../QOverlay/index.js";
|
|
3
|
+
import { QButton as v } from "../QButton/index.js";
|
|
4
|
+
import { QIcon as _ } from "../QIcon/index.js";
|
|
5
|
+
import { useId as N } from "../../composables/uid.js";
|
|
6
|
+
const O = { class: "q-dialog" }, x = { class: "q-dialog__header" }, E = { class: "q-dialog__header-title" }, Q = { class: "q-dialog__body" }, S = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "q-dialog__body-icon"
|
|
9
|
+
}, A = { class: "q-dialog__body-text" }, F = ["innerHTML"], I = { key: 1 }, P = { class: "q-dialog__body-actions" }, U = [
|
|
10
|
+
{
|
|
11
|
+
id: "button",
|
|
12
|
+
bStyle: "primary",
|
|
13
|
+
label: "Ok",
|
|
14
|
+
icon: {
|
|
15
|
+
icon: "check"
|
|
16
|
+
},
|
|
17
|
+
iconOnRight: !1,
|
|
18
|
+
action: void 0
|
|
19
|
+
}
|
|
20
|
+
], $ = {
|
|
21
|
+
icon: "check-circle-outline",
|
|
22
|
+
type: "svg"
|
|
23
|
+
}, G = /* @__PURE__ */ B({
|
|
24
|
+
__name: "QDialog",
|
|
25
|
+
props: /* @__PURE__ */ C({
|
|
26
|
+
text: { default: "" },
|
|
27
|
+
attach: { default: "body" },
|
|
28
|
+
inline: { type: Boolean },
|
|
29
|
+
backdropBlur: { type: Boolean, default: !0 },
|
|
30
|
+
buttons: { default: () => U },
|
|
31
|
+
dismissible: { type: Boolean, default: !1 },
|
|
32
|
+
html: { type: Boolean, default: !0 },
|
|
33
|
+
icon: { default: () => $ },
|
|
34
|
+
id: { default: void 0 },
|
|
35
|
+
title: { default: "" },
|
|
36
|
+
class: { default: void 0 }
|
|
37
|
+
}, {
|
|
38
|
+
modelValue: { type: Boolean },
|
|
39
|
+
modelModifiers: {}
|
|
40
|
+
}),
|
|
41
|
+
emits: ["update:modelValue"],
|
|
42
|
+
setup(f) {
|
|
43
|
+
const e = f, m = q(f, "modelValue"), g = N(e.id);
|
|
44
|
+
function p() {
|
|
45
|
+
m.value = !1;
|
|
46
|
+
}
|
|
47
|
+
function b(t) {
|
|
48
|
+
var d;
|
|
49
|
+
(d = t.action) == null || d.call(t), p();
|
|
50
|
+
}
|
|
51
|
+
return (t, d) => (o(), n(l(M), {
|
|
52
|
+
"model-value": m.value,
|
|
53
|
+
id: l(g),
|
|
54
|
+
inline: e.inline,
|
|
55
|
+
attach: e.attach,
|
|
56
|
+
"backdrop-blur": e.backdropBlur,
|
|
57
|
+
"scroll-lock": "",
|
|
58
|
+
persistent: ""
|
|
59
|
+
}, {
|
|
60
|
+
default: c(() => [
|
|
61
|
+
i("div", O, [
|
|
62
|
+
i("div", x, [
|
|
63
|
+
i(
|
|
64
|
+
"span",
|
|
65
|
+
E,
|
|
66
|
+
y(e.title),
|
|
67
|
+
1
|
|
68
|
+
/* TEXT */
|
|
69
|
+
),
|
|
70
|
+
e.dismissible ? (o(), n(l(v), {
|
|
71
|
+
key: 0,
|
|
72
|
+
"b-style": "tertiary",
|
|
73
|
+
onClick: p
|
|
74
|
+
}, {
|
|
75
|
+
default: c(() => [
|
|
76
|
+
h(l(_), { icon: "close" })
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
/* STABLE */
|
|
80
|
+
})) : r("v-if", !0)
|
|
81
|
+
]),
|
|
82
|
+
u(t.$slots, "body.content", {}, () => [
|
|
83
|
+
i("div", Q, [
|
|
84
|
+
u(t.$slots, "body.icon", {}, () => [
|
|
85
|
+
e.icon ? (o(), s("span", S, [
|
|
86
|
+
h(
|
|
87
|
+
l(_),
|
|
88
|
+
T(V(e.icon)),
|
|
89
|
+
null,
|
|
90
|
+
16
|
|
91
|
+
/* FULL_PROPS */
|
|
92
|
+
)
|
|
93
|
+
])) : r("v-if", !0)
|
|
94
|
+
]),
|
|
95
|
+
i("div", A, [
|
|
96
|
+
e.html ? (o(), s("span", {
|
|
97
|
+
key: 0,
|
|
98
|
+
innerHTML: e.text
|
|
99
|
+
}, null, 8, F)) : (o(), s(
|
|
100
|
+
"span",
|
|
101
|
+
I,
|
|
102
|
+
y(e.text),
|
|
103
|
+
1
|
|
104
|
+
/* TEXT */
|
|
105
|
+
))
|
|
106
|
+
]),
|
|
107
|
+
u(t.$slots, "body.append")
|
|
108
|
+
])
|
|
109
|
+
]),
|
|
110
|
+
i("div", P, [
|
|
111
|
+
(o(!0), s(
|
|
112
|
+
D,
|
|
113
|
+
null,
|
|
114
|
+
L(e.buttons, (a) => (o(), n(l(v), k({ ref_for: !0 }, a, {
|
|
115
|
+
key: a.id,
|
|
116
|
+
onClick: () => b(a)
|
|
117
|
+
}), {
|
|
118
|
+
default: c(() => [
|
|
119
|
+
a.icon ? (o(), n(
|
|
120
|
+
l(_),
|
|
121
|
+
k({
|
|
122
|
+
key: 0,
|
|
123
|
+
ref_for: !0
|
|
124
|
+
}, a.icon),
|
|
125
|
+
null,
|
|
126
|
+
16
|
|
127
|
+
/* FULL_PROPS */
|
|
128
|
+
)) : r("v-if", !0)
|
|
129
|
+
]),
|
|
130
|
+
_: 2
|
|
131
|
+
/* DYNAMIC */
|
|
132
|
+
}, 1040, ["onClick"]))),
|
|
133
|
+
128
|
|
134
|
+
/* KEYED_FRAGMENT */
|
|
135
|
+
))
|
|
136
|
+
])
|
|
137
|
+
])
|
|
138
|
+
]),
|
|
139
|
+
_: 3
|
|
140
|
+
/* FORWARDED */
|
|
141
|
+
}, 8, ["model-value", "id", "inline", "attach", "backdrop-blur"]));
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
export {
|
|
145
|
+
G as default
|
|
146
|
+
};
|