@quidgest/ui 0.16.52 → 0.16.54
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/json/api.json +35 -32
- package/dist/ui.esm.js +5125 -5134
- package/dist/ui.js +8 -8
- package/dist/ui.min.js +32 -32
- package/dist/ui.scss +2 -2
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts +1 -0
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +24 -22
- package/esm/components/QBadgeIndicator/index.d.ts +3 -0
- package/esm/components/QBadgeIndicator/index.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/types.d.ts +7 -0
- package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts +4 -13
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +71 -78
- package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/esm/components/QDialog/QDialogProvider.vue.js +16 -17
- package/esm/components/QDialog/index.d.ts +10 -85
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +6 -0
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QIcon/InlineSvg.js +8 -8
- package/esm/components/QOverlay/QOverlay.d.ts +4 -9
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +156 -158
- package/esm/components/QOverlay/index.d.ts +10 -93
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +6 -0
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +14 -13
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +44 -46
- package/esm/composables/useDialog/index.d.ts +1 -0
- package/esm/composables/useDialog/index.d.ts.map +1 -1
- package/esm/composables/useDialog/index.js +11 -11
- package/package.json +1 -1
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DEFAULT_ICONS as
|
|
3
|
-
import { QButton as
|
|
1
|
+
import { defineComponent as A, ref as h, computed as k, createBlock as c, openBlock as t, unref as a, normalizeClass as g, withCtx as p, createElementVNode as B, createElementBlock as i, createCommentVNode as s, renderSlot as n, toDisplayString as v, createVNode as m, normalizeProps as V, guardReactiveProps as b, createTextVNode as L, Fragment as U, renderList as w, mergeProps as $ } from "vue";
|
|
2
|
+
import { DEFAULT_ICONS as E, DEFAULT_BUTTONS as Q, DEFAULT_ICON as M } from "./constants.js";
|
|
3
|
+
import { QButton as q } from "../QButton/index.js";
|
|
4
4
|
import { QIcon as f } from "../QIcon/index.js";
|
|
5
|
-
import { QOverlay as
|
|
6
|
-
import { QTextField as
|
|
7
|
-
const
|
|
5
|
+
import { QOverlay as S } from "../QOverlay/index.js";
|
|
6
|
+
import { QTextField as W } from "../QTextField/index.js";
|
|
7
|
+
const I = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "q-dialog__header"
|
|
10
|
-
},
|
|
10
|
+
}, P = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "q-dialog__header-title"
|
|
13
|
-
},
|
|
13
|
+
}, H = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "q-dialog__body"
|
|
16
|
-
},
|
|
16
|
+
}, x = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "q-dialog__body-icon"
|
|
19
|
-
},
|
|
19
|
+
}, R = { class: "q-dialog__body-text" }, j = ["innerHTML"], G = { key: 1 }, J = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "q-dialog__input"
|
|
22
|
-
},
|
|
22
|
+
}, K = {
|
|
23
23
|
key: 2,
|
|
24
24
|
class: "q-dialog__footer"
|
|
25
|
-
},
|
|
25
|
+
}, X = {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "q-dialog__footer-buttons"
|
|
28
|
-
},
|
|
28
|
+
}, ae = /* @__PURE__ */ A({
|
|
29
29
|
__name: "QDialog",
|
|
30
|
-
props:
|
|
30
|
+
props: {
|
|
31
31
|
id: {},
|
|
32
32
|
class: {},
|
|
33
|
+
modelValue: { type: Boolean },
|
|
33
34
|
title: {},
|
|
34
35
|
text: {},
|
|
35
|
-
icon: { default: () =>
|
|
36
|
-
buttons: { default: () =>
|
|
36
|
+
icon: { default: () => M },
|
|
37
|
+
buttons: { default: () => Q },
|
|
37
38
|
backdropBlur: { type: Boolean, default: !0 },
|
|
38
39
|
size: { default: "small" },
|
|
39
40
|
centerVertically: { type: Boolean },
|
|
@@ -47,36 +48,29 @@ const R = {
|
|
|
47
48
|
dismissible: { type: Boolean },
|
|
48
49
|
html: { type: Boolean, default: !0 },
|
|
49
50
|
input: {},
|
|
50
|
-
icons: { default: () =>
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const e = _, h = D, v = U(_, "modelValue"), u = B(""), d = B(""), O = V(() => ["q-dialog", e.class]), L = V(() => `q-overlay--${e.size}`);
|
|
58
|
-
function k() {
|
|
59
|
-
v.value = !1;
|
|
51
|
+
icons: { default: () => E }
|
|
52
|
+
},
|
|
53
|
+
emits: ["update:modelValue"],
|
|
54
|
+
setup(C, { emit: F }) {
|
|
55
|
+
const e = C, T = F, u = h(""), r = h(""), D = k(() => ["q-dialog", e.class]), O = k(() => `q-overlay--${e.size}`);
|
|
56
|
+
function _() {
|
|
57
|
+
y(!1);
|
|
60
58
|
}
|
|
61
59
|
function N(o) {
|
|
62
|
-
var
|
|
60
|
+
var d, l;
|
|
63
61
|
if (o.action) {
|
|
64
|
-
if ((
|
|
62
|
+
if ((d = e.input) != null && d.validator && (r.value = e.input.validator(a(u)), a(r)))
|
|
65
63
|
return;
|
|
66
64
|
(l = o.action) == null || l.call(o, a(u));
|
|
67
65
|
}
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
function z() {
|
|
71
|
-
h("enter");
|
|
66
|
+
_();
|
|
72
67
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
68
|
+
function y(o) {
|
|
69
|
+
T("update:modelValue", o);
|
|
75
70
|
}
|
|
76
|
-
return (o,
|
|
71
|
+
return (o, d) => (t(), c(a(S), {
|
|
77
72
|
id: e.id,
|
|
78
|
-
|
|
79
|
-
"onUpdate:modelValue": n[1] || (n[1] = (l) => v.value = l),
|
|
73
|
+
"model-value": e.modelValue,
|
|
80
74
|
"backdrop-class": "q-dialog__underlay",
|
|
81
75
|
"scroll-lock": "",
|
|
82
76
|
persistent: "",
|
|
@@ -89,72 +83,71 @@ const R = {
|
|
|
89
83
|
"focus-within-on-activate": e.focusWithinOnActivate,
|
|
90
84
|
"closing-focus": e.closingFocus,
|
|
91
85
|
"return-focus-on-deactivate": e.returnFocusOnDeactivate,
|
|
92
|
-
class:
|
|
93
|
-
|
|
94
|
-
onLeave: A
|
|
86
|
+
class: g(O.value),
|
|
87
|
+
"onUpdate:modelValue": y
|
|
95
88
|
}, {
|
|
96
89
|
default: p(() => [
|
|
97
|
-
|
|
90
|
+
B(
|
|
98
91
|
"div",
|
|
99
92
|
{
|
|
100
|
-
class:
|
|
93
|
+
class: g(D.value)
|
|
101
94
|
},
|
|
102
95
|
[
|
|
103
|
-
e.title || o.$slots.header || o.$slots["header.prepend"] || o.$slots["header.append"] ? (t(), i("div",
|
|
104
|
-
|
|
105
|
-
|
|
96
|
+
e.title || o.$slots.header || o.$slots["header.prepend"] || o.$slots["header.append"] ? (t(), i("div", I, [
|
|
97
|
+
n(o.$slots, "header", {}, () => [
|
|
98
|
+
n(o.$slots, "header.prepend"),
|
|
106
99
|
e.title ? (t(), i(
|
|
107
100
|
"span",
|
|
108
|
-
|
|
109
|
-
|
|
101
|
+
P,
|
|
102
|
+
v(e.title),
|
|
110
103
|
1
|
|
111
104
|
/* TEXT */
|
|
112
105
|
)) : s("v-if", !0),
|
|
113
|
-
|
|
106
|
+
n(o.$slots, "header.append")
|
|
114
107
|
])
|
|
115
108
|
])) : s("v-if", !0),
|
|
116
|
-
e.icon || e.text || o.$slots.body ? (t(), i("div",
|
|
117
|
-
|
|
109
|
+
e.icon || e.text || o.$slots.body ? (t(), i("div", H, [
|
|
110
|
+
n(o.$slots, "body", {}, () => {
|
|
118
111
|
var l;
|
|
119
112
|
return [
|
|
120
|
-
|
|
121
|
-
e.icon ? (t(), i("span",
|
|
122
|
-
|
|
113
|
+
n(o.$slots, "body.icon", {}, () => [
|
|
114
|
+
e.icon ? (t(), i("span", x, [
|
|
115
|
+
m(
|
|
123
116
|
a(f),
|
|
124
|
-
|
|
117
|
+
V(b(e.icon)),
|
|
125
118
|
null,
|
|
126
119
|
16
|
|
127
120
|
/* FULL_PROPS */
|
|
128
121
|
)
|
|
129
122
|
])) : s("v-if", !0)
|
|
130
123
|
]),
|
|
131
|
-
|
|
124
|
+
B("div", R, [
|
|
132
125
|
e.html ? (t(), i("div", {
|
|
133
126
|
key: 0,
|
|
134
127
|
innerHTML: e.text
|
|
135
|
-
}, null, 8,
|
|
128
|
+
}, null, 8, j)) : (t(), i(
|
|
136
129
|
"div",
|
|
137
|
-
|
|
138
|
-
|
|
130
|
+
G,
|
|
131
|
+
v(e.text),
|
|
139
132
|
1
|
|
140
133
|
/* TEXT */
|
|
141
134
|
))
|
|
142
135
|
]),
|
|
143
|
-
e.input ? (t(), i("div",
|
|
144
|
-
|
|
136
|
+
e.input ? (t(), i("div", J, [
|
|
137
|
+
m(a(W), {
|
|
145
138
|
modelValue: u.value,
|
|
146
|
-
"onUpdate:modelValue":
|
|
147
|
-
invalid: !!
|
|
139
|
+
"onUpdate:modelValue": d[0] || (d[0] = (z) => u.value = z),
|
|
140
|
+
invalid: !!r.value,
|
|
148
141
|
placeholder: (l = e.input) == null ? void 0 : l.placeholder,
|
|
149
142
|
size: "block"
|
|
150
143
|
}, {
|
|
151
144
|
extras: p(() => [
|
|
152
|
-
|
|
145
|
+
r.value ? (t(), c(a(f), {
|
|
153
146
|
key: 0,
|
|
154
147
|
icon: "exclamation-sign"
|
|
155
148
|
})) : s("v-if", !0),
|
|
156
|
-
|
|
157
|
-
" " +
|
|
149
|
+
L(
|
|
150
|
+
" " + v(r.value),
|
|
158
151
|
1
|
|
159
152
|
/* TEXT */
|
|
160
153
|
)
|
|
@@ -163,23 +156,23 @@ const R = {
|
|
|
163
156
|
/* STABLE */
|
|
164
157
|
}, 8, ["modelValue", "invalid", "placeholder"])
|
|
165
158
|
])) : s("v-if", !0),
|
|
166
|
-
|
|
159
|
+
n(o.$slots, "body.append")
|
|
167
160
|
];
|
|
168
161
|
})
|
|
169
162
|
])) : s("v-if", !0),
|
|
170
|
-
e.buttons || o.$slots["footer.append"] ? (t(), i("div",
|
|
171
|
-
e.buttons ? (t(), i("span",
|
|
163
|
+
e.buttons || o.$slots["footer.append"] ? (t(), i("div", K, [
|
|
164
|
+
e.buttons ? (t(), i("span", X, [
|
|
172
165
|
(t(!0), i(
|
|
173
|
-
|
|
166
|
+
U,
|
|
174
167
|
null,
|
|
175
|
-
|
|
168
|
+
w(e.buttons, (l) => (t(), c(a(q), $({ ref_for: !0 }, l.props, {
|
|
176
169
|
key: l.id,
|
|
177
170
|
onClick: () => N(l)
|
|
178
171
|
}), {
|
|
179
172
|
default: p(() => [
|
|
180
173
|
l.icon ? (t(), c(
|
|
181
174
|
a(f),
|
|
182
|
-
|
|
175
|
+
$({
|
|
183
176
|
key: 0,
|
|
184
177
|
ref_for: !0
|
|
185
178
|
}, l.icon),
|
|
@@ -195,18 +188,18 @@ const R = {
|
|
|
195
188
|
/* KEYED_FRAGMENT */
|
|
196
189
|
))
|
|
197
190
|
])) : s("v-if", !0),
|
|
198
|
-
|
|
191
|
+
n(o.$slots, "footer.append")
|
|
199
192
|
])) : s("v-if", !0),
|
|
200
|
-
e.dismissible ? (t(), c(a(
|
|
193
|
+
e.dismissible ? (t(), c(a(q), {
|
|
201
194
|
key: 3,
|
|
202
195
|
class: "q-dialog__close",
|
|
203
196
|
variant: "text",
|
|
204
|
-
onClick:
|
|
197
|
+
onClick: _
|
|
205
198
|
}, {
|
|
206
199
|
default: p(() => [
|
|
207
|
-
|
|
200
|
+
m(
|
|
208
201
|
a(f),
|
|
209
|
-
|
|
202
|
+
V(b(e.icons.close)),
|
|
210
203
|
null,
|
|
211
204
|
16
|
|
212
205
|
/* FULL_PROPS */
|
|
@@ -222,9 +215,9 @@ const R = {
|
|
|
222
215
|
]),
|
|
223
216
|
_: 3
|
|
224
217
|
/* FORWARDED */
|
|
225
|
-
}, 8, ["id", "
|
|
218
|
+
}, 8, ["id", "model-value", "inline", "attach", "backdrop-blur", "center-vertically", "focus-wrap", "initial-focus", "focus-within-on-activate", "closing-focus", "return-focus-on-deactivate", "class"]));
|
|
226
219
|
}
|
|
227
220
|
});
|
|
228
221
|
export {
|
|
229
|
-
|
|
222
|
+
ae as default
|
|
230
223
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDialogProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialogProvider.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QDialogProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialogProvider.vue"],"names":[],"mappings":"AASA;AAgDC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;;;;;;AAmFpD,wBAOG"}
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QDialog as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
const x = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as f, createElementBlock as d, openBlock as r, Fragment as _, renderList as g, unref as t, createBlock as k, mergeProps as v } from "vue";
|
|
2
|
+
import { QDialog as B } from "./index.js";
|
|
3
|
+
import { useDialog as D } from "../../composables/useDialog/index.js";
|
|
4
|
+
const x = /* @__PURE__ */ f({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "QDialogProvider",
|
|
7
7
|
props: {
|
|
8
8
|
inline: { type: Boolean }
|
|
9
9
|
},
|
|
10
10
|
emits: ["leave"],
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
function
|
|
14
|
-
s(e),
|
|
11
|
+
setup(i, { emit: l }) {
|
|
12
|
+
const a = i, m = l, { dialogs: p, removeDialog: s } = D();
|
|
13
|
+
function u(e, n) {
|
|
14
|
+
n || (s(e), m("leave", e));
|
|
15
15
|
}
|
|
16
|
-
return (e,
|
|
17
|
-
|
|
16
|
+
return (e, n) => (r(!0), d(
|
|
17
|
+
_,
|
|
18
18
|
null,
|
|
19
|
-
|
|
20
|
-
key:
|
|
19
|
+
g(t(p), (o) => (r(), k(t(B), v({
|
|
20
|
+
key: o.id,
|
|
21
21
|
ref_for: !0
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}), null, 16, ["inline", "onLeave"]))),
|
|
22
|
+
}, o.props, {
|
|
23
|
+
inline: a.inline,
|
|
24
|
+
"onUpdate:modelValue": (c) => u(o.id, c)
|
|
25
|
+
}), null, 16, ["inline", "onUpdate:modelValue"]))),
|
|
27
26
|
128
|
|
28
27
|
/* KEYED_FRAGMENT */
|
|
29
28
|
));
|
|
@@ -1,34 +1,8 @@
|
|
|
1
1
|
declare const QDialog: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
-
modelValue?: boolean;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
text?: string;
|
|
7
|
-
icon?: import('..').Icon;
|
|
8
|
-
buttons?: import('./types').DialogButton[];
|
|
9
|
-
backdropBlur?: boolean;
|
|
10
|
-
size?: import('./types').QDialogSize;
|
|
11
|
-
centerVertically?: boolean;
|
|
12
|
-
attach?: string;
|
|
13
|
-
inline?: boolean;
|
|
14
|
-
focusWrap?: boolean;
|
|
15
|
-
initialFocus?: HTMLElement | string | null;
|
|
16
|
-
focusWithinOnActivate?: boolean;
|
|
17
|
-
closingFocus?: HTMLElement | string;
|
|
18
|
-
returnFocusOnDeactivate?: boolean;
|
|
19
|
-
dismissible?: boolean;
|
|
20
|
-
html?: boolean;
|
|
21
|
-
input?: import('./types').QDialogInputOption;
|
|
22
|
-
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
23
|
-
}> & Readonly<{
|
|
24
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
25
|
-
onEnter?: (() => any) | undefined;
|
|
26
|
-
onLeave?: (() => any) | undefined;
|
|
27
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
-
"update:modelValue": (value: boolean) => any;
|
|
29
|
-
} & {
|
|
30
|
-
enter: () => any;
|
|
31
|
-
leave: () => any;
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QDialogProps> & Readonly<{
|
|
3
|
+
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
4
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
"update:modelValue": (val: boolean) => any;
|
|
32
6
|
}, import('vue').PublicProps, {
|
|
33
7
|
size: import('./types').QDialogSize;
|
|
34
8
|
html: boolean;
|
|
@@ -47,31 +21,8 @@ declare const QDialog: {
|
|
|
47
21
|
C: {};
|
|
48
22
|
M: {};
|
|
49
23
|
Defaults: {};
|
|
50
|
-
}, Readonly<{
|
|
51
|
-
modelValue?: boolean;
|
|
52
|
-
} & import('../../types/component').QBaseComponentProps & {
|
|
53
|
-
title?: string;
|
|
54
|
-
text?: string;
|
|
55
|
-
icon?: import('..').Icon;
|
|
56
|
-
buttons?: import('./types').DialogButton[];
|
|
57
|
-
backdropBlur?: boolean;
|
|
58
|
-
size?: import('./types').QDialogSize;
|
|
59
|
-
centerVertically?: boolean;
|
|
60
|
-
attach?: string;
|
|
61
|
-
inline?: boolean;
|
|
62
|
-
focusWrap?: boolean;
|
|
63
|
-
initialFocus?: HTMLElement | string | null;
|
|
64
|
-
focusWithinOnActivate?: boolean;
|
|
65
|
-
closingFocus?: HTMLElement | string;
|
|
66
|
-
returnFocusOnDeactivate?: boolean;
|
|
67
|
-
dismissible?: boolean;
|
|
68
|
-
html?: boolean;
|
|
69
|
-
input?: import('./types').QDialogInputOption;
|
|
70
|
-
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
71
|
-
}> & Readonly<{
|
|
72
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
73
|
-
onEnter?: (() => any) | undefined;
|
|
74
|
-
onLeave?: (() => any) | undefined;
|
|
24
|
+
}, Readonly<import('./types').QDialogProps> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
75
26
|
}>, {}, {}, {}, {}, {
|
|
76
27
|
size: import('./types').QDialogSize;
|
|
77
28
|
html: boolean;
|
|
@@ -87,36 +38,10 @@ declare const QDialog: {
|
|
|
87
38
|
__isFragment?: never;
|
|
88
39
|
__isTeleport?: never;
|
|
89
40
|
__isSuspense?: never;
|
|
90
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
91
|
-
modelValue?: boolean;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
text?: string;
|
|
95
|
-
icon?: import('..').Icon;
|
|
96
|
-
buttons?: import('./types').DialogButton[];
|
|
97
|
-
backdropBlur?: boolean;
|
|
98
|
-
size?: import('./types').QDialogSize;
|
|
99
|
-
centerVertically?: boolean;
|
|
100
|
-
attach?: string;
|
|
101
|
-
inline?: boolean;
|
|
102
|
-
focusWrap?: boolean;
|
|
103
|
-
initialFocus?: HTMLElement | string | null;
|
|
104
|
-
focusWithinOnActivate?: boolean;
|
|
105
|
-
closingFocus?: HTMLElement | string;
|
|
106
|
-
returnFocusOnDeactivate?: boolean;
|
|
107
|
-
dismissible?: boolean;
|
|
108
|
-
html?: boolean;
|
|
109
|
-
input?: import('./types').QDialogInputOption;
|
|
110
|
-
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
111
|
-
}> & Readonly<{
|
|
112
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
113
|
-
onEnter?: (() => any) | undefined;
|
|
114
|
-
onLeave?: (() => any) | undefined;
|
|
115
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
116
|
-
"update:modelValue": (value: boolean) => any;
|
|
117
|
-
} & {
|
|
118
|
-
enter: () => any;
|
|
119
|
-
leave: () => any;
|
|
41
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types').QDialogProps> & Readonly<{
|
|
42
|
+
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
43
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
44
|
+
"update:modelValue": (val: boolean) => any;
|
|
120
45
|
}, string, {
|
|
121
46
|
size: import('./types').QDialogSize;
|
|
122
47
|
html: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAA;AACzC,QAAA,MAAM,eAAe;;;;kFAAoC,CAAA;AAGzD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAA;AAGnC,cAAc,SAAS,CAAA"}
|
|
@@ -4,6 +4,12 @@ import { Icon } from '../QIcon';
|
|
|
4
4
|
import { DEFAULT_ICONS } from './constants';
|
|
5
5
|
export type QDialogSize = 'small' | 'medium' | 'large' | 'xlarge';
|
|
6
6
|
export type QDialogProps = QBaseComponentProps & {
|
|
7
|
+
/**
|
|
8
|
+
* The value of the selected item.
|
|
9
|
+
*
|
|
10
|
+
* @category Content
|
|
11
|
+
*/
|
|
12
|
+
modelValue?: boolean;
|
|
7
13
|
/**
|
|
8
14
|
* The title of the dialog window.
|
|
9
15
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEjE,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG;IAChD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX;;;;OAIG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IAExB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,CAAA;IAElB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAE1B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,C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CAAC,EAAE,OAAO,CAAA;IAEjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAA;IAE1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX;;OAEG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAA;IAEnC;;OAEG;IACH,KAAK,EAAE,YAAY,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;CACjD,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IAClC;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as a, h as s } from "vue";
|
|
2
|
-
const
|
|
2
|
+
const i = {}, h = a({
|
|
3
3
|
name: "InlineSvg",
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
props: {
|
|
@@ -78,11 +78,11 @@ const o = {}, h = a({
|
|
|
78
78
|
*/
|
|
79
79
|
async getSource(t) {
|
|
80
80
|
try {
|
|
81
|
-
|
|
82
|
-
const e = await
|
|
81
|
+
i[t] || (i[t] = u(this.download(t))), this.svgElSource && i[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
82
|
+
const e = await i[t];
|
|
83
83
|
this.svgElSource = e, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
84
84
|
} catch (e) {
|
|
85
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
85
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete i[t], this.$emit("error", e);
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
/**
|
|
@@ -93,9 +93,9 @@ const o = {}, h = a({
|
|
|
93
93
|
async download(t) {
|
|
94
94
|
const e = await fetch(t);
|
|
95
95
|
if (!e.ok) throw new Error("Error loading SVG");
|
|
96
|
-
const r = await e.text(),
|
|
97
|
-
if (!
|
|
98
|
-
return
|
|
96
|
+
const r = await e.text(), o = new DOMParser().parseFromString(r, "text/xml").getElementsByTagName("svg")[0];
|
|
97
|
+
if (!o) throw new Error("Loaded file is not a valid SVG");
|
|
98
|
+
return o;
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
render() {
|
|
@@ -103,7 +103,7 @@ const o = {}, h = a({
|
|
|
103
103
|
const t = this.getSvgContent(this.svgElSource);
|
|
104
104
|
if (!t) return s("div", this.$attrs);
|
|
105
105
|
const e = {};
|
|
106
|
-
return this.copySvgAttrs(e, this.svgElSource), this.copySvgAttrs(e, t), this.copyComponentAttrs(e, this.$attrs), e.innerHTML = t.innerHTML, s("svg", e);
|
|
106
|
+
return this.copySvgAttrs(e, this.svgElSource), this.copySvgAttrs(e, t), this.copyComponentAttrs(e, this.$attrs), e.innerHTML = t.innerHTML, this.$attrs.id || delete e.id, s("svg", e);
|
|
107
107
|
},
|
|
108
108
|
expose: []
|
|
109
109
|
});
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { QOverlayProps } from './types';
|
|
2
|
-
type __VLS_Props = QOverlayProps;
|
|
3
|
-
type __VLS_PublicProps = {
|
|
4
|
-
modelValue?: boolean;
|
|
5
|
-
} & __VLS_Props;
|
|
6
2
|
declare function __VLS_template(): {
|
|
7
3
|
attrs: Partial<{}>;
|
|
8
4
|
slots: {
|
|
@@ -16,13 +12,12 @@ declare function __VLS_template(): {
|
|
|
16
12
|
rootEl: any;
|
|
17
13
|
};
|
|
18
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
20
|
-
"update:modelValue": (
|
|
21
|
-
} & {
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<QOverlayProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
|
+
"update:modelValue": (val: boolean) => any;
|
|
22
17
|
enter: () => any;
|
|
23
18
|
leave: () => any;
|
|
24
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
25
|
-
"onUpdate:modelValue"?: ((
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<QOverlayProps> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
26
21
|
onEnter?: (() => any) | undefined;
|
|
27
22
|
onLeave?: (() => any) | undefined;
|
|
28
23
|
}>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AAgEA;
|
|
1
|
+
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AAgEA;AAyhBC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAgd7C,iBAAS,cAAc;WAgLT,OAAO,IAA6B;;yBAdpB,GAAG;;;;;;;;EAmBhC;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;OASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|