@quidgest/ui 0.16.45 → 0.16.47
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 +23 -1
- package/dist/ui.css +53 -10
- package/dist/ui.esm.js +6345 -6323
- package/dist/ui.js +30 -30
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +446 -440
- package/dist/ui.scss +46 -8
- package/esm/components/QCheckbox/QCheckbox.d.ts +3 -0
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +49 -40
- package/esm/components/QCheckbox/index.d.ts +7 -0
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/types.d.ts +6 -0
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +18 -17
- package/esm/components/QLabel/QLabel.d.ts +2 -2
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +16 -17
- package/esm/components/QLabel/index.d.ts +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +40 -40
- package/esm/components/QRadioGroup/QRadioButton.d.ts +6 -2
- package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +39 -30
- package/esm/components/QRadioGroup/QRadioGroup.d.ts +1 -0
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +20 -18
- package/esm/components/QRadioGroup/index.d.ts +9 -1
- package/esm/components/QRadioGroup/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/types.d.ts +6 -0
- package/esm/components/QRadioGroup/types.d.ts.map +1 -1
- package/esm/symbols/dismissibleLayer.d.ts.map +1 -1
- package/esm/symbols/dismissibleLayer.js +1 -1
- package/esm/vendors/@vuepic/vue-datepicker/dist/vue-datepicker.js +3262 -3260
- package/package.json +2 -2
|
@@ -7,10 +7,10 @@ declare function __VLS_template(): {
|
|
|
7
7
|
append?(_: {}): any;
|
|
8
8
|
};
|
|
9
9
|
refs: {};
|
|
10
|
-
rootEl:
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
11
|
};
|
|
12
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<QLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<QLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
14
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
15
|
export default _default;
|
|
16
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/QLabel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/QLabel.vue"],"names":[],"mappings":"AAaA;AAoCC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAoB3C,iBAAS,cAAc;WAkCT,OAAO,IAA6B;;yBAZrB,GAAG;yBACH,GAAG;wBACJ,GAAG;;;;EAe9B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
inheritAttrs: !1,
|
|
1
|
+
import { defineComponent as t, computed as a, createElementBlock as n, openBlock as d, normalizeClass as c, renderSlot as l, createElementVNode as i, createTextVNode as p, toDisplayString as u } from "vue";
|
|
2
|
+
const f = ["id"], m = ["for"], q = /* @__PURE__ */ t({
|
|
4
3
|
__name: "QLabel",
|
|
5
4
|
props: {
|
|
6
5
|
id: {},
|
|
@@ -9,34 +8,34 @@ const m = ["id"], b = ["for"], h = /* @__PURE__ */ l({
|
|
|
9
8
|
required: { type: Boolean },
|
|
10
9
|
for: {}
|
|
11
10
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const e =
|
|
11
|
+
setup(s) {
|
|
12
|
+
const e = s, r = a(() => [
|
|
14
13
|
"q-label",
|
|
15
14
|
{
|
|
16
15
|
"q-label--required": e.required
|
|
17
16
|
},
|
|
18
17
|
e.class
|
|
19
18
|
]);
|
|
20
|
-
return (
|
|
19
|
+
return (o, _) => (d(), n("div", {
|
|
21
20
|
id: e.id,
|
|
22
|
-
class:
|
|
21
|
+
class: c(r.value)
|
|
23
22
|
}, [
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
l(o.$slots, "prepend"),
|
|
24
|
+
i("label", {
|
|
26
25
|
for: e.for
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
}, [
|
|
27
|
+
l(o.$slots, "default", {}, () => [
|
|
28
|
+
p(
|
|
29
|
+
u(e.label),
|
|
31
30
|
1
|
|
32
31
|
/* TEXT */
|
|
33
32
|
)
|
|
34
33
|
])
|
|
35
|
-
],
|
|
36
|
-
|
|
37
|
-
], 10,
|
|
34
|
+
], 8, m),
|
|
35
|
+
l(o.$slots, "append")
|
|
36
|
+
], 10, f));
|
|
38
37
|
}
|
|
39
38
|
});
|
|
40
39
|
export {
|
|
41
|
-
|
|
40
|
+
q as default
|
|
42
41
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const QLabel: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QLabelProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {},
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QLabelProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
3
3
|
P: {};
|
|
4
4
|
B: {};
|
|
5
5
|
D: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AA8DA;
|
|
1
|
+
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AA8DA;AAuhBC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,KAAK,WAAW,GAAG,aAAa,CAAC;AA0clC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6KT,OAAO,IAA6B;;yBAdpB,GAAG;;;;;;;;EAmBhC;AA+BD,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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as de, mergeModels as F, useModel as fe, computed as
|
|
1
|
+
import { defineComponent as de, mergeModels as F, useModel as fe, computed as u, reactive as I, watch as P, ref as _, nextTick as g, onMounted as ve, onBeforeUnmount as pe, createElementBlock as k, openBlock as c, Fragment as me, createBlock as b, createCommentVNode as y, Teleport as ye, createVNode as B, Transition as z, withCtx as L, normalizeClass as U, normalizeStyle as N, unref as T, createElementVNode as he, mergeProps as we, renderSlot as ge } from "vue";
|
|
2
2
|
import { QDismissibleLayer as ke } from "../QDismissibleLayer/index.js";
|
|
3
3
|
import { QRemoveScrollBar as Le } from "../QRemoveScrollBar/index.js";
|
|
4
4
|
import { FocusTrap as Ee } from "../../vendors/focus-trap-vue/dist/focus-trap-vue.esm-browser.js";
|
|
5
|
-
import { getSideFromPlacement as
|
|
5
|
+
import { getSideFromPlacement as _e, computePosition as be } from "../../composables/overlay.js";
|
|
6
6
|
import { useTheme as Be } from "../../composables/theme.js";
|
|
7
7
|
import { getElement as Te } from "../../utils/getElement.js";
|
|
8
8
|
const Ce = ["id"], xe = ["role"], Ae = /* @__PURE__ */ de({
|
|
@@ -38,17 +38,17 @@ const Ce = ["id"], xe = ["role"], Ae = /* @__PURE__ */ de({
|
|
|
38
38
|
}),
|
|
39
39
|
emits: /* @__PURE__ */ F(["enter", "leave"], ["update:modelValue"]),
|
|
40
40
|
setup(C, { emit: Q }) {
|
|
41
|
-
const t = C, x = Q, r = fe(C, "modelValue"), { class: W } = Be(), j =
|
|
41
|
+
const t = C, x = Q, r = fe(C, "modelValue"), { class: W } = Be(), j = u(() => [
|
|
42
42
|
"q-overlay",
|
|
43
|
-
`q-overlay--${
|
|
43
|
+
`q-overlay--${_e(o.placement)}`,
|
|
44
44
|
W.value,
|
|
45
45
|
{
|
|
46
|
-
"q-overlay--independent":
|
|
46
|
+
"q-overlay--independent": v.value,
|
|
47
47
|
"q-overlay--inverted": t.appearance === "inverted",
|
|
48
48
|
"q-overlay--center": t.centerVertically
|
|
49
49
|
},
|
|
50
50
|
t.class
|
|
51
|
-
]),
|
|
51
|
+
]), v = u(() => t.anchor === void 0), D = u(() => r.value && !t.nonModal), G = u(() => (r.value || o.animating) && t.scrollLock), H = u(() => !t.inline && (r.value || o.animating)), O = () => d.value ? d.value ?? void 0 : "#" + t.id, o = I({
|
|
52
52
|
animating: !1,
|
|
53
53
|
top: 0,
|
|
54
54
|
left: 0,
|
|
@@ -60,37 +60,37 @@ const Ce = ["id"], xe = ["role"], Ae = /* @__PURE__ */ de({
|
|
|
60
60
|
hidden: !0
|
|
61
61
|
});
|
|
62
62
|
P(r, te);
|
|
63
|
-
const J =
|
|
64
|
-
if (
|
|
65
|
-
const e =
|
|
63
|
+
const J = u(() => {
|
|
64
|
+
if (v.value) return;
|
|
65
|
+
const e = l(), s = t.width === "anchor", n = s ? e == null ? void 0 : e.getBoundingClientRect().width : void 0;
|
|
66
66
|
return {
|
|
67
67
|
top: `${o.top}px`,
|
|
68
68
|
left: `${o.left}px`,
|
|
69
69
|
width: n !== void 0 ? `${n}px` : void 0
|
|
70
70
|
};
|
|
71
|
-
}), K =
|
|
71
|
+
}), K = u(() => {
|
|
72
72
|
if (t.arrow)
|
|
73
73
|
return {
|
|
74
74
|
top: a.top !== void 0 ? `${a.top}px` : void 0,
|
|
75
75
|
left: a.left !== void 0 ? `${a.left}px` : void 0,
|
|
76
76
|
opacity: a.hidden ? 0 : 1
|
|
77
77
|
};
|
|
78
|
-
}), h =
|
|
78
|
+
}), h = _(null), S = _(null), d = _(null);
|
|
79
79
|
function i() {
|
|
80
|
-
const e =
|
|
81
|
-
if (!e || !
|
|
80
|
+
const e = l();
|
|
81
|
+
if (!e || !d.value)
|
|
82
82
|
return;
|
|
83
|
-
const
|
|
83
|
+
const s = {
|
|
84
84
|
placement: t.placement,
|
|
85
85
|
width: t.width,
|
|
86
86
|
offset: t.offset,
|
|
87
87
|
crossOffset: t.crossOffset,
|
|
88
88
|
arrow: t.arrow
|
|
89
|
-
}, n =
|
|
89
|
+
}, n = be(
|
|
90
90
|
e,
|
|
91
|
-
|
|
91
|
+
d.value,
|
|
92
92
|
(h == null ? void 0 : h.value) ?? void 0,
|
|
93
|
-
|
|
93
|
+
s
|
|
94
94
|
);
|
|
95
95
|
o.left = n.overlayCoords.x, o.top = n.overlayCoords.y, o.placement = n.placement, a.hidden = n.arrowCoords === void 0, n.arrowCoords && (a.top = n.arrowCoords.y, a.left = n.arrowCoords.x);
|
|
96
96
|
}
|
|
@@ -110,9 +110,9 @@ const Ce = ["id"], xe = ["role"], Ae = /* @__PURE__ */ de({
|
|
|
110
110
|
r.value = !0;
|
|
111
111
|
}, e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function f() {
|
|
114
114
|
if (p && M(), r.value = !1, t.anchor && t.trigger === "click") {
|
|
115
|
-
const e =
|
|
115
|
+
const e = l();
|
|
116
116
|
g(() => e == null ? void 0 : e.focus());
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -137,7 +137,7 @@ const Ce = ["id"], xe = ["role"], Ae = /* @__PURE__ */ de({
|
|
|
137
137
|
function V() {
|
|
138
138
|
o.animating = !1;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function l() {
|
|
141
141
|
return t.anchor ? Te(t.anchor) : null;
|
|
142
142
|
}
|
|
143
143
|
function ne(e) {
|
|
@@ -149,21 +149,21 @@ const Ce = ["id"], xe = ["role"], Ae = /* @__PURE__ */ de({
|
|
|
149
149
|
e.preventDefault();
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
|
-
let
|
|
153
|
-
e.defaultPrevented || e.detail.originalEvent.type === "pointerdown" && (
|
|
152
|
+
let s = !1;
|
|
153
|
+
e.defaultPrevented || e.detail.originalEvent.type === "pointerdown" && (s = !0);
|
|
154
154
|
const n = e.detail.originalEvent.target;
|
|
155
|
-
if ((A =
|
|
155
|
+
if ((A = l()) == null ? void 0 : A.contains(n)) {
|
|
156
156
|
e.preventDefault();
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
e.detail.originalEvent.type === "focusin" &&
|
|
159
|
+
e.detail.originalEvent.type === "focusin" && s && e.preventDefault();
|
|
160
160
|
}
|
|
161
161
|
function re() {
|
|
162
|
-
|
|
162
|
+
f();
|
|
163
163
|
}
|
|
164
164
|
let m;
|
|
165
165
|
function ae() {
|
|
166
|
-
const e =
|
|
166
|
+
const e = l();
|
|
167
167
|
if (e)
|
|
168
168
|
switch (m = new MutationObserver(i), m.observe(e, {
|
|
169
169
|
attributes: !1,
|
|
@@ -175,19 +175,19 @@ const Ce = ["id"], xe = ["role"], Ae = /* @__PURE__ */ de({
|
|
|
175
175
|
e.addEventListener("click", w);
|
|
176
176
|
break;
|
|
177
177
|
case "hover":
|
|
178
|
-
e.addEventListener("mouseenter", q), e.addEventListener("mouseleave",
|
|
178
|
+
e.addEventListener("mouseenter", q), e.addEventListener("mouseleave", f), e.addEventListener("focusin", w), e.addEventListener("focusout", f);
|
|
179
179
|
break;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
function ie() {
|
|
183
|
-
const e =
|
|
183
|
+
const e = l();
|
|
184
184
|
if (e)
|
|
185
185
|
switch (m == null || m.disconnect(), t.trigger) {
|
|
186
186
|
case "click":
|
|
187
187
|
e.removeEventListener("click", w);
|
|
188
188
|
break;
|
|
189
189
|
case "hover":
|
|
190
|
-
e.removeEventListener("mouseenter", q), e.removeEventListener("mouseleave",
|
|
190
|
+
e.removeEventListener("mouseenter", q), e.removeEventListener("mouseleave", f), e.removeEventListener("focusin", w), e.removeEventListener("focusout", f);
|
|
191
191
|
break;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
@@ -199,22 +199,22 @@ const Ce = ["id"], xe = ["role"], Ae = /* @__PURE__ */ de({
|
|
|
199
199
|
}
|
|
200
200
|
let E;
|
|
201
201
|
function $() {
|
|
202
|
-
|
|
202
|
+
l() ? (i(), E = window.setTimeout($, 100)) : f();
|
|
203
203
|
}
|
|
204
204
|
function ue() {
|
|
205
205
|
var e;
|
|
206
|
-
|
|
206
|
+
v.value || (le(), t.spy ? $() : i()), (v.value || t.trigger === "click") && ((e = S.value) == null || e.focus());
|
|
207
207
|
}
|
|
208
208
|
function ce() {
|
|
209
|
-
|
|
209
|
+
v.value || se(), t.spy && (clearTimeout(E), E = void 0);
|
|
210
210
|
}
|
|
211
211
|
return ve(() => {
|
|
212
212
|
g(ae);
|
|
213
|
-
}), pe(ie), (e,
|
|
213
|
+
}), pe(ie), (e, s) => (c(), k(
|
|
214
214
|
me,
|
|
215
215
|
null,
|
|
216
216
|
[
|
|
217
|
-
(c(),
|
|
217
|
+
(c(), b(ye, {
|
|
218
218
|
disabled: !H.value,
|
|
219
219
|
to: t.attach
|
|
220
220
|
}, [
|
|
@@ -254,7 +254,7 @@ const Ce = ["id"], xe = ["role"], Ae = /* @__PURE__ */ de({
|
|
|
254
254
|
key: 0,
|
|
255
255
|
id: t.id,
|
|
256
256
|
ref_key: "overlayContainerRef",
|
|
257
|
-
ref:
|
|
257
|
+
ref: d,
|
|
258
258
|
tabindex: "-1",
|
|
259
259
|
class: U(j.value),
|
|
260
260
|
style: N(J.value)
|
|
@@ -265,11 +265,11 @@ const Ce = ["id"], xe = ["role"], Ae = /* @__PURE__ */ de({
|
|
|
265
265
|
onPointerDownOutside: ne
|
|
266
266
|
}, {
|
|
267
267
|
default: L(() => [
|
|
268
|
-
|
|
268
|
+
d.value ? (c(), b(T(Ee), {
|
|
269
269
|
key: 0,
|
|
270
270
|
active: !t.nonModal && r.value && t.focusTrap,
|
|
271
|
-
"fallback-focus": O
|
|
272
|
-
"initial-focus": O
|
|
271
|
+
"fallback-focus": O,
|
|
272
|
+
"initial-focus": O,
|
|
273
273
|
"return-focus-on-deactivate": t.returnFocusOnDeactivate
|
|
274
274
|
}, {
|
|
275
275
|
default: L(() => [
|
|
@@ -299,7 +299,7 @@ const Ce = ["id"], xe = ["role"], Ae = /* @__PURE__ */ de({
|
|
|
299
299
|
]),
|
|
300
300
|
_: 3
|
|
301
301
|
/* FORWARDED */
|
|
302
|
-
}, 8, ["active", "
|
|
302
|
+
}, 8, ["active", "return-focus-on-deactivate"])) : y("v-if", !0)
|
|
303
303
|
]),
|
|
304
304
|
_: 3
|
|
305
305
|
/* FORWARDED */
|
|
@@ -310,7 +310,7 @@ const Ce = ["id"], xe = ["role"], Ae = /* @__PURE__ */ de({
|
|
|
310
310
|
/* FORWARDED */
|
|
311
311
|
}, 8, ["name"])
|
|
312
312
|
], 8, ["disabled", "to"])),
|
|
313
|
-
G.value ? (c(),
|
|
313
|
+
G.value ? (c(), b(T(Le), { key: 0 })) : y("v-if", !0)
|
|
314
314
|
],
|
|
315
315
|
64
|
|
316
316
|
/* STABLE_FRAGMENT */
|
|
@@ -5,7 +5,9 @@ declare function __VLS_template(): {
|
|
|
5
5
|
default?(_: {}): any;
|
|
6
6
|
default?(_: {}): any;
|
|
7
7
|
};
|
|
8
|
-
refs: {
|
|
8
|
+
refs: {
|
|
9
|
+
inputEl: HTMLInputElement;
|
|
10
|
+
};
|
|
9
11
|
rootEl: any;
|
|
10
12
|
};
|
|
11
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -13,7 +15,9 @@ declare const __VLS_component: import('vue').DefineComponent<QRadioButtonProps,
|
|
|
13
15
|
size: import('./types').QRadioButtonSize;
|
|
14
16
|
color: string;
|
|
15
17
|
labelPlacement: import('./types').QRadioButtonLabelPlacement;
|
|
16
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
19
|
+
inputEl: HTMLInputElement;
|
|
20
|
+
}, any>;
|
|
17
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
22
|
export default _default;
|
|
19
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QRadioButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QRadioButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioButton.vue"],"names":[],"mappings":"AA+BA;AAuGC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AA4DjD,iBAAS,cAAc;WAiFT,OAAO,IAA6B;;yBAbrB,GAAG;yBACF,GAAG;;;;;;EAiBhC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;OAQnB,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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QLabel as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { useGroupItem as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as v, toRef as y, useTemplateRef as g, computed as r, createBlock as C, openBlock as k, unref as t, withModifiers as i, normalizeClass as q, createSlots as B, withCtx as s, createElementVNode as R, renderSlot as d, createCommentVNode as h, mergeProps as w } from "vue";
|
|
2
|
+
import { QLabel as z } from "../QLabel/index.js";
|
|
3
|
+
import { useId as E } from "../../composables/uid.js";
|
|
4
|
+
import { useGroupItem as P } from "../../composables/useGroup/index.js";
|
|
5
|
+
const $ = ["id", "checked", "name", "value", "disabled"], G = /* @__PURE__ */ v({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "QRadioButton",
|
|
8
8
|
props: {
|
|
@@ -20,15 +20,15 @@ const P = ["id", "checked", "name", "value", "disabled"], w = /* @__PURE__ */ m(
|
|
|
20
20
|
readonly: { type: Boolean },
|
|
21
21
|
invalid: { type: Boolean }
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const e =
|
|
25
|
-
if (!
|
|
23
|
+
setup(u) {
|
|
24
|
+
const e = u, n = E(y(e, "id")), p = g("inputEl"), a = P(e.value);
|
|
25
|
+
if (!a)
|
|
26
26
|
throw new Error("QRadioButton must be used inside a QRadioGroup");
|
|
27
|
-
const
|
|
28
|
-
const
|
|
27
|
+
const c = r(() => e.labelPlacement === "start" ? "append" : "prepend"), m = r(() => {
|
|
28
|
+
const o = e.size !== "regular" ? `q-radio-button--${e.size}` : void 0, l = e.color !== "primary" ? `q-radio-button--${e.color}` : void 0;
|
|
29
29
|
return [
|
|
30
30
|
"q-radio-button",
|
|
31
|
-
|
|
31
|
+
o,
|
|
32
32
|
l,
|
|
33
33
|
{
|
|
34
34
|
"q-radio-button--readonly": e.readonly,
|
|
@@ -38,40 +38,49 @@ const P = ["id", "checked", "name", "value", "disabled"], w = /* @__PURE__ */ m(
|
|
|
38
38
|
e.class
|
|
39
39
|
];
|
|
40
40
|
});
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
function f() {
|
|
42
|
+
var o;
|
|
43
|
+
(o = p.value) == null || o.focus();
|
|
44
|
+
}
|
|
45
|
+
return (o, l) => (k(), C(t(z), {
|
|
46
|
+
for: t(n),
|
|
47
|
+
class: q(m.value),
|
|
48
|
+
label: e.label,
|
|
49
|
+
tabindex: "-1",
|
|
50
|
+
onMousedown: i(f, ["prevent"]),
|
|
51
|
+
onClick: t(a).toggle
|
|
52
|
+
}, B({
|
|
53
|
+
[c.value]: s(() => [
|
|
54
|
+
R("input", w({
|
|
55
|
+
id: t(n),
|
|
56
|
+
ref: "inputEl",
|
|
57
|
+
checked: t(a).isActive.value,
|
|
51
58
|
type: "radio",
|
|
52
59
|
class: "q-radio-button__input",
|
|
53
60
|
name: e.name,
|
|
54
|
-
value:
|
|
61
|
+
value: o.value,
|
|
55
62
|
disabled: e.readonly || e.disabled
|
|
56
|
-
},
|
|
63
|
+
}, o.$attrs, {
|
|
57
64
|
onChange: l[0] || (l[0] = //@ts-ignore
|
|
58
|
-
(...
|
|
59
|
-
|
|
60
|
-
|
|
65
|
+
(...b) => t(a).toggle && t(a).toggle(...b)),
|
|
66
|
+
onClick: l[1] || (l[1] = i(() => {
|
|
67
|
+
}, ["stop"]))
|
|
68
|
+
}), null, 16, $),
|
|
69
|
+
e.labelPlacement === "end" ? d(o.$slots, "default", { key: 0 }) : h("v-if", !0)
|
|
61
70
|
]),
|
|
62
71
|
_: 2
|
|
63
72
|
/* DYNAMIC */
|
|
64
73
|
}, [
|
|
65
74
|
e.labelPlacement === "start" ? {
|
|
66
75
|
name: "prepend",
|
|
67
|
-
fn:
|
|
68
|
-
|
|
76
|
+
fn: s(() => [
|
|
77
|
+
d(o.$slots, "default")
|
|
69
78
|
]),
|
|
70
79
|
key: "0"
|
|
71
80
|
} : void 0
|
|
72
|
-
]), 1032, ["for", "class", "label"]));
|
|
81
|
+
]), 1032, ["for", "class", "label", "onClick"]));
|
|
73
82
|
}
|
|
74
83
|
});
|
|
75
84
|
export {
|
|
76
|
-
|
|
85
|
+
G as default
|
|
77
86
|
};
|
|
@@ -19,6 +19,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
19
19
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
size: import('./types').QRadioButtonSize;
|
|
22
|
+
hasFocusOutline: boolean;
|
|
22
23
|
orientation: import('./types').QRadioButtonOrientation;
|
|
23
24
|
columns: number;
|
|
24
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QRadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioGroup.vue"],"names":[],"mappings":"AAuBA;
|
|
1
|
+
{"version":3,"file":"QRadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioGroup.vue"],"names":[],"mappings":"AAuBA;AA8GC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AAsErC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;yBAZrB,GAAG;wBACJ,GAAG;;;;EAgB9B;AAcD,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;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as g, mergeModels as q, useModel as b, watch as h, toRef as r, computed as d, createElementBlock as n, openBlock as l, normalizeClass as B, createBlock as _, createCommentVNode as u, createElementVNode as z, unref as a, mergeProps as k, renderSlot as c } from "vue";
|
|
2
2
|
import { QLabel as V } from "../QLabel/index.js";
|
|
3
3
|
import { provideDefaults as $ } from "../../composables/defaults.js";
|
|
4
|
-
import { useId as
|
|
4
|
+
import { useId as m } from "../../composables/uid.js";
|
|
5
5
|
import { useGroup as C } from "../../composables/useGroup/index.js";
|
|
6
6
|
const M = ["id"], Q = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "q-field__extras"
|
|
9
|
-
},
|
|
9
|
+
}, S = /* @__PURE__ */ g({
|
|
10
10
|
inheritAttrs: !1,
|
|
11
11
|
__name: "QRadioGroup",
|
|
12
12
|
props: /* @__PURE__ */ q({
|
|
@@ -21,24 +21,26 @@ const M = ["id"], Q = {
|
|
|
21
21
|
columns: { default: 1 },
|
|
22
22
|
disabled: { type: Boolean },
|
|
23
23
|
readonly: { type: Boolean },
|
|
24
|
-
invalid: { type: Boolean }
|
|
24
|
+
invalid: { type: Boolean },
|
|
25
|
+
hasFocusOutline: { type: Boolean, default: !0 }
|
|
25
26
|
}, {
|
|
26
27
|
modelValue: {},
|
|
27
28
|
modelModifiers: {}
|
|
28
29
|
}),
|
|
29
30
|
emits: ["update:modelValue"],
|
|
30
31
|
setup(t) {
|
|
31
|
-
const e = t,
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
const e = t, s = b(t, "modelValue"), { active: p } = C({ active: s, required: !0 });
|
|
33
|
+
h(p, (o) => {
|
|
34
|
+
s.value = o;
|
|
34
35
|
});
|
|
35
|
-
const
|
|
36
|
+
const i = m(r(e, "id")), f = m(r(e, "name")), v = d(() => [
|
|
36
37
|
"q-radio-group",
|
|
37
38
|
{
|
|
38
|
-
"q-radio-group--horizontal": e.orientation === "horizontal"
|
|
39
|
+
"q-radio-group--horizontal": e.orientation === "horizontal",
|
|
40
|
+
"q-radio-group--focus-style": e.hasFocusOutline
|
|
39
41
|
},
|
|
40
42
|
e.class
|
|
41
|
-
]),
|
|
43
|
+
]), y = d(() => e.columns > 1 ? {
|
|
42
44
|
"--q-radio-group-columns": e.columns
|
|
43
45
|
} : {
|
|
44
46
|
undefined: void 0
|
|
@@ -54,25 +56,25 @@ const M = ["id"], Q = {
|
|
|
54
56
|
}), (o, R) => (l(), n(
|
|
55
57
|
"div",
|
|
56
58
|
{
|
|
57
|
-
class:
|
|
59
|
+
class: B(v.value)
|
|
58
60
|
},
|
|
59
61
|
[
|
|
60
|
-
e.label ? (l(),
|
|
62
|
+
e.label ? (l(), _(a(V), {
|
|
61
63
|
key: 0,
|
|
62
|
-
for: a(
|
|
64
|
+
for: a(i),
|
|
63
65
|
label: e.label,
|
|
64
66
|
required: e.required
|
|
65
67
|
}, null, 8, ["for", "label", "required"])) : u("v-if", !0),
|
|
66
68
|
z("div", k({
|
|
67
|
-
id: a(
|
|
69
|
+
id: a(i),
|
|
68
70
|
class: ["q-radio-group__group", { "q-radio-group--grid": e.columns > 1 }],
|
|
69
71
|
role: "radiogroup",
|
|
70
|
-
style:
|
|
72
|
+
style: y.value
|
|
71
73
|
}, o.$attrs), [
|
|
72
|
-
|
|
74
|
+
c(o.$slots, "default")
|
|
73
75
|
], 16, M),
|
|
74
76
|
o.$slots.extras ? (l(), n("div", Q, [
|
|
75
|
-
|
|
77
|
+
c(o.$slots, "extras")
|
|
76
78
|
])) : u("v-if", !0)
|
|
77
79
|
],
|
|
78
80
|
2
|
|
@@ -81,5 +83,5 @@ const M = ["id"], Q = {
|
|
|
81
83
|
}
|
|
82
84
|
});
|
|
83
85
|
export {
|
|
84
|
-
|
|
86
|
+
S as default
|
|
85
87
|
};
|
|
@@ -3,7 +3,9 @@ declare const QRadioButton: {
|
|
|
3
3
|
size: import('./types').QRadioButtonSize;
|
|
4
4
|
color: string;
|
|
5
5
|
labelPlacement: import('./types').QRadioButtonLabelPlacement;
|
|
6
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
6
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
7
|
+
inputEl: HTMLInputElement;
|
|
8
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
7
9
|
P: {};
|
|
8
10
|
B: {};
|
|
9
11
|
D: {};
|
|
@@ -43,12 +45,14 @@ declare const QRadioGroup: {
|
|
|
43
45
|
disabled?: boolean;
|
|
44
46
|
readonly?: boolean;
|
|
45
47
|
invalid?: boolean;
|
|
48
|
+
hasFocusOutline?: boolean;
|
|
46
49
|
}> & Readonly<{
|
|
47
50
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
48
51
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
49
52
|
"update:modelValue": (value: any) => any;
|
|
50
53
|
}, import('vue').PublicProps, {
|
|
51
54
|
size: import('./types').QRadioButtonSize;
|
|
55
|
+
hasFocusOutline: boolean;
|
|
52
56
|
orientation: import('./types').QRadioButtonOrientation;
|
|
53
57
|
columns: number;
|
|
54
58
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -72,10 +76,12 @@ declare const QRadioGroup: {
|
|
|
72
76
|
disabled?: boolean;
|
|
73
77
|
readonly?: boolean;
|
|
74
78
|
invalid?: boolean;
|
|
79
|
+
hasFocusOutline?: boolean;
|
|
75
80
|
}> & Readonly<{
|
|
76
81
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
77
82
|
}>, {}, {}, {}, {}, {
|
|
78
83
|
size: import('./types').QRadioButtonSize;
|
|
84
|
+
hasFocusOutline: boolean;
|
|
79
85
|
orientation: import('./types').QRadioButtonOrientation;
|
|
80
86
|
columns: number;
|
|
81
87
|
}>;
|
|
@@ -96,12 +102,14 @@ declare const QRadioGroup: {
|
|
|
96
102
|
disabled?: boolean;
|
|
97
103
|
readonly?: boolean;
|
|
98
104
|
invalid?: boolean;
|
|
105
|
+
hasFocusOutline?: boolean;
|
|
99
106
|
}> & Readonly<{
|
|
100
107
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
101
108
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
102
109
|
"update:modelValue": (value: any) => any;
|
|
103
110
|
}, string, {
|
|
104
111
|
size: import('./types').QRadioButtonSize;
|
|
112
|
+
hasFocusOutline: boolean;
|
|
105
113
|
orientation: import('./types').QRadioButtonOrientation;
|
|
106
114
|
columns: number;
|
|
107
115
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiC,CAAA;AACnD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAA;AAGjD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,CAAA;AAGpC,cAAc,SAAS,CAAA"}
|
|
@@ -44,6 +44,12 @@ export type QRadioGroupProps = QLabelProps & {
|
|
|
44
44
|
* @category State
|
|
45
45
|
*/
|
|
46
46
|
invalid?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Indicates whether the control will have an outline when focused.
|
|
49
|
+
*
|
|
50
|
+
* @category Behavior
|
|
51
|
+
*/
|
|
52
|
+
hasFocusOutline?: boolean;
|
|
47
53
|
};
|
|
48
54
|
export type QRadioButtonLabelPlacement = 'start' | 'end';
|
|
49
55
|
export type QRadioButtonProps = QLabelProps & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,YAAY,CAAA;AAE/D,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAE5D,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAC5C;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,WAAW,CAAC,EAAE,uBAAuB,CAAA;IAErC;;;;OAIG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAA;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,YAAY,CAAA;AAE/D,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAE5D,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAC5C;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,WAAW,CAAC,EAAE,uBAAuB,CAAA;IAErC;;;;OAIG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAA;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG,KAAK,CAAA;AAExD,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG;IAC7C;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,cAAc,CAAC,EAAE,0BAA0B,CAAA;IAE3C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAA;IAEvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
|