@quidgest/ui 0.16.44 → 0.16.46
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 +1 -1
- package/dist/ui.css +52 -10
- package/dist/ui.esm.js +6339 -6320
- package/dist/ui.js +30 -30
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +444 -438
- package/dist/ui.scss +46 -8
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +15 -14
- package/esm/components/QCheckbox/QCheckbox.d.ts +2 -0
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +50 -43
- package/esm/components/QCheckbox/index.d.ts +1 -0
- package/esm/components/QCheckbox/index.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/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.vue.js +4 -4
- package/esm/components/QRadioGroup/index.d.ts +3 -1
- package/esm/components/QRadioGroup/index.d.ts.map +1 -1
- package/esm/vendors/@vuepic/vue-datepicker/dist/vue-datepicker.js +3262 -3260
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, mergeModels as g, useModel as F, computed as t, ref as U, createBlock as w, openBlock as D, unref as n, normalizeClass as P, createSlots as E, withCtx as i, createVNode as s, createElementVNode as N, mergeProps as k, renderSlot as Q } from "vue";
|
|
2
2
|
import { DEFAULT_TEXTS as H, DEFAULT_ICONS as I } from "./constants.js";
|
|
3
3
|
import { QClearButton as Z } from "../__internal__/QClearButton/index.js";
|
|
4
4
|
import { QField as $ } from "../QField/index.js";
|
|
@@ -7,12 +7,12 @@ import L from "../../vendors/@vuepic/vue-datepicker/dist/vue-datepicker.js";
|
|
|
7
7
|
import { useMaska as R } from "../../composables/maska.js";
|
|
8
8
|
import { convertDatePatternToMask as X } from "../../utils/date/date.js";
|
|
9
9
|
import { isTimeOnlyFormat as j } from "../../utils/date/tokens.js";
|
|
10
|
-
import { formatUsesTime as
|
|
10
|
+
import { formatUsesTime as W, formatUsesSeconds as G, uses12HourFormat as J } from "../../utils/time.js";
|
|
11
11
|
import { useTheme as Y } from "../../composables/theme.js";
|
|
12
|
-
const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput", "onBlur", "onFocus", "onKeypress", "onKeydown", "onPaste"], ce = /* @__PURE__ */
|
|
12
|
+
const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput", "onBlur", "onFocus", "onKeypress", "onKeydown", "onPaste"], ce = /* @__PURE__ */ V({
|
|
13
13
|
inheritAttrs: !1,
|
|
14
14
|
__name: "QDateTimePicker",
|
|
15
|
-
props: /* @__PURE__ */
|
|
15
|
+
props: /* @__PURE__ */ g({
|
|
16
16
|
id: {},
|
|
17
17
|
class: {},
|
|
18
18
|
label: {},
|
|
@@ -41,8 +41,9 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
41
41
|
get: () => m.value,
|
|
42
42
|
set: (o) => m.value = o || void 0
|
|
43
43
|
}), v = t(() => r.value ? "format" : void 0), b = t(() => ({
|
|
44
|
-
closeOnAutoApply: e.closeOnSelect
|
|
45
|
-
|
|
44
|
+
closeOnAutoApply: e.closeOnSelect,
|
|
45
|
+
tabOutClosesMenu: !0
|
|
46
|
+
})), c = Y(), T = t(() => c.current.value.mode === "dark"), x = t(() => W(e.format)), h = t(() => G(e.format)), r = t(() => j(e.format)), _ = t(() => J(e.format)), q = t(() => f(e.minTime)), S = t(() => f(e.maxTime)), z = t(() => r.value ? e.icons.clock : e.icons.calendar), B = t(() => ({
|
|
46
47
|
mask: X(e.format),
|
|
47
48
|
tokens: {
|
|
48
49
|
// Default tokens
|
|
@@ -71,7 +72,7 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
71
72
|
eager: !0
|
|
72
73
|
// Show static characters before the user types them
|
|
73
74
|
})), p = U();
|
|
74
|
-
R(p,
|
|
75
|
+
R(p, B);
|
|
75
76
|
function f(o) {
|
|
76
77
|
if (!o) return;
|
|
77
78
|
const a = o.split(":");
|
|
@@ -94,7 +95,7 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
94
95
|
prepend: i(() => [
|
|
95
96
|
s(
|
|
96
97
|
n(K),
|
|
97
|
-
k({ class: "q-date-time-picker__input-icon" },
|
|
98
|
+
k({ class: "q-date-time-picker__input-icon" }, z.value),
|
|
98
99
|
null,
|
|
99
100
|
16
|
|
100
101
|
/* FULL_PROPS */
|
|
@@ -106,7 +107,7 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
106
107
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => u.value = l),
|
|
107
108
|
"model-type": v.value,
|
|
108
109
|
"min-time": q.value,
|
|
109
|
-
"max-time":
|
|
110
|
+
"max-time": S.value,
|
|
110
111
|
disabled: e.disabled,
|
|
111
112
|
readonly: e.readonly,
|
|
112
113
|
format: e.format,
|
|
@@ -120,12 +121,12 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
120
121
|
offset: 16,
|
|
121
122
|
dark: T.value,
|
|
122
123
|
ui: { menu: ["q-date-time-picker__menu", n(c).class.value] },
|
|
123
|
-
"text-input":
|
|
124
|
+
"text-input": { enterSubmit: !0 },
|
|
125
|
+
"auto-apply": e.closeOnSelect,
|
|
124
126
|
"hide-input-icon": "",
|
|
125
|
-
clearable: ""
|
|
126
|
-
"auto-apply": ""
|
|
127
|
+
clearable: ""
|
|
127
128
|
}, {
|
|
128
|
-
"dp-input": i(({ value: l, onInput: M, onBlur:
|
|
129
|
+
"dp-input": i(({ value: l, onInput: M, onBlur: A, onFocus: O, onKeypress: y, onPaste: C }) => [
|
|
129
130
|
N("input", k({
|
|
130
131
|
ref_key: "inputRef",
|
|
131
132
|
ref: p,
|
|
@@ -139,11 +140,11 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
139
140
|
required: e.required
|
|
140
141
|
}, o.$attrs, {
|
|
141
142
|
onInput: M,
|
|
142
|
-
onBlur:
|
|
143
|
-
onFocus:
|
|
143
|
+
onBlur: A,
|
|
144
|
+
onFocus: O,
|
|
144
145
|
onKeypress: y,
|
|
145
146
|
onKeydown: y,
|
|
146
|
-
onPaste:
|
|
147
|
+
onPaste: C
|
|
147
148
|
}), null, 16, ee)
|
|
148
149
|
]),
|
|
149
150
|
"clear-icon": i(({ clear: l }) => [
|
|
@@ -154,7 +155,7 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
154
155
|
]),
|
|
155
156
|
_: 1
|
|
156
157
|
/* STABLE */
|
|
157
|
-
}, 8, ["modelValue", "model-type", "min-time", "max-time", "disabled", "readonly", "format", "is24", "locale", "enable-time-picker", "enable-seconds", "time-picker", "config", "teleport", "dark", "ui"])
|
|
158
|
+
}, 8, ["modelValue", "model-type", "min-time", "max-time", "disabled", "readonly", "format", "is24", "locale", "enable-time-picker", "enable-seconds", "time-picker", "config", "teleport", "dark", "ui", "auto-apply"])
|
|
158
159
|
]),
|
|
159
160
|
_: 2
|
|
160
161
|
/* DYNAMIC */
|
|
@@ -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: {};
|
|
@@ -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
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as q, mergeModels as y, useModel as b, watch as B, toRef as r, computed as d, createElementBlock as n, openBlock as l, normalizeClass as _, createBlock as h, createCommentVNode as u, createElementVNode as z, unref as a, mergeProps as k, renderSlot as m } from "vue";
|
|
2
2
|
import { QLabel as V } from "../QLabel/index.js";
|
|
3
3
|
import { provideDefaults as $ } from "../../composables/defaults.js";
|
|
4
4
|
import { useId as c } from "../../composables/uid.js";
|
|
@@ -6,10 +6,10 @@ 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
|
-
}, x = /* @__PURE__ */
|
|
9
|
+
}, x = /* @__PURE__ */ q({
|
|
10
10
|
inheritAttrs: !1,
|
|
11
11
|
__name: "QRadioGroup",
|
|
12
|
-
props: /* @__PURE__ */
|
|
12
|
+
props: /* @__PURE__ */ y({
|
|
13
13
|
id: {},
|
|
14
14
|
class: {},
|
|
15
15
|
label: {},
|
|
@@ -28,7 +28,7 @@ const M = ["id"], Q = {
|
|
|
28
28
|
}),
|
|
29
29
|
emits: ["update:modelValue"],
|
|
30
30
|
setup(t) {
|
|
31
|
-
const e = t, i = b(t, "modelValue"), { active: p } = C({ active: i });
|
|
31
|
+
const e = t, i = b(t, "modelValue"), { active: p } = C({ active: i, required: !0 });
|
|
32
32
|
B(p, (o) => {
|
|
33
33
|
i.value = o;
|
|
34
34
|
});
|
|
@@ -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: {};
|
|
@@ -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"}
|