@quidgest/ui 0.15.1 → 0.15.3
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 +150 -76
- package/dist/ui.esm.js +3852 -3696
- package/dist/ui.js +9 -9
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +711 -704
- package/dist/ui.scss +130 -38
- package/esm/components/QCombobox/QCombobox.d.ts +16 -8
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +1 -1
- package/esm/components/QCombobox/index.d.ts +28 -14
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +1 -1
- package/esm/components/QDateTimePicker/index.d.ts +3 -0
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +11 -10
- package/esm/components/QFileUpload/QFileUpload.vue.js +1 -1
- package/esm/components/QFileUpload/index.d.ts +3 -0
- package/esm/components/QFileUpload/index.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +1 -1
- package/esm/components/QLabel/QLabel.d.ts +1 -0
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +28 -13
- package/esm/components/QLabel/index.d.ts +1 -0
- package/esm/components/QLabel/index.d.ts.map +1 -1
- package/esm/components/QLabel/types.d.ts +5 -0
- package/esm/components/QLabel/types.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.vue.js +14 -13
- package/esm/components/QMeter/index.d.ts +2 -0
- package/esm/components/QMeter/index.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +95 -90
- package/esm/components/QOverlay/index.d.ts +3 -0
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +4 -0
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.d.ts +8 -4
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +14 -13
- package/esm/components/QPasswordField/index.d.ts +4 -2
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts +2 -0
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +36 -26
- package/esm/components/QPopover/index.d.ts +2 -0
- package/esm/components/QPopover/index.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +23 -23
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +6 -2
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +20 -20
- package/esm/components/QPropertyList/index.d.ts +9 -2
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.d.ts +24 -0
- package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -0
- package/esm/components/QRadioGroup/QRadioButton.vue.js +78 -0
- package/esm/components/QRadioGroup/QRadioButton.vue2.js +4 -0
- package/esm/components/QRadioGroup/QRadioGroup.d.ts +32 -0
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -0
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +79 -0
- package/esm/components/QRadioGroup/QRadioGroup.vue2.js +4 -0
- package/esm/components/QRadioGroup/index.d.ts +108 -0
- package/esm/components/QRadioGroup/index.d.ts.map +1 -0
- package/esm/components/QRadioGroup/index.js +8 -0
- package/esm/components/QRadioGroup/types.d.ts +65 -0
- package/esm/components/QRadioGroup/types.d.ts.map +1 -0
- package/esm/components/QSelect/QSelect.d.ts +2 -2
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +28 -28
- package/esm/components/QSelect/index.d.ts +4 -1
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +1 -1
- package/esm/components/QTextArea/index.d.ts +3 -0
- package/esm/components/QTextArea/index.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.d.ts +2 -2
- package/esm/components/QTextField/QTextField.vue.js +1 -1
- package/esm/components/QTextField/index.d.ts +4 -1
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +34 -31
- package/esm/composables/group.d.ts.map +1 -1
- package/esm/composables/group.js +1 -1
- package/esm/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/QPopover.vue"],"names":[],"mappings":"AA+
|
|
1
|
+
{"version":3,"file":"QPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/QPopover.vue"],"names":[],"mappings":"AAoCA;AA+DC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAuBlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAwFT,OAAO,IAA6B;;wBAbtB,GAAG;kCACO,GAAG;iCACJ,GAAG;yBACX,GAAG;;;;EAe/B;AAYD,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
|
|
2
|
-
import { QOverlay as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as c, mergeModels as m, useModel as u, createBlock as h, openBlock as o, unref as f, normalizeClass as y, withCtx as v, createElementBlock as l, createCommentVNode as d, renderSlot as a, Fragment as _, createElementVNode as k, toDisplayString as i } from "vue";
|
|
2
|
+
import { QOverlay as B } from "../QOverlay/index.js";
|
|
3
|
+
const V = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "q-popover__header"
|
|
6
|
-
},
|
|
6
|
+
}, $ = { class: "q-popover__title" }, b = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "q-popover__body"
|
|
9
|
-
},
|
|
9
|
+
}, g = ["innerHTML"], w = { key: 1 }, C = /* @__PURE__ */ c({
|
|
10
10
|
inheritAttrs: !1,
|
|
11
11
|
__name: "QPopover",
|
|
12
12
|
props: /* @__PURE__ */ m({
|
|
@@ -26,12 +26,12 @@ const B = {
|
|
|
26
26
|
modelModifiers: {}
|
|
27
27
|
}),
|
|
28
28
|
emits: ["update:modelValue"],
|
|
29
|
-
setup(
|
|
30
|
-
const e =
|
|
31
|
-
return (
|
|
29
|
+
setup(s) {
|
|
30
|
+
const e = s, r = u(s, "modelValue");
|
|
31
|
+
return (t, n) => (o(), h(f(B), {
|
|
32
32
|
id: e.id,
|
|
33
33
|
modelValue: r.value,
|
|
34
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
34
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => r.value = p),
|
|
35
35
|
class: y(["q-popover", e.class]),
|
|
36
36
|
trigger: "click",
|
|
37
37
|
anchor: e.anchor,
|
|
@@ -41,30 +41,40 @@ const B = {
|
|
|
41
41
|
disabled: e.disabled,
|
|
42
42
|
placement: e.placement
|
|
43
43
|
}, {
|
|
44
|
-
default:
|
|
45
|
-
e.title ||
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
default: v(() => [
|
|
45
|
+
e.title || t.$slots.header ? (o(), l("div", V, [
|
|
46
|
+
t.$slots.header ? a(t.$slots, "header", { key: 0 }) : (o(), l(
|
|
47
|
+
_,
|
|
48
|
+
{ key: 1 },
|
|
49
|
+
[
|
|
50
|
+
a(t.$slots, "header.prepend"),
|
|
51
|
+
k(
|
|
52
|
+
"h4",
|
|
53
|
+
$,
|
|
54
|
+
i(e.title),
|
|
55
|
+
1
|
|
56
|
+
/* TEXT */
|
|
57
|
+
),
|
|
58
|
+
a(t.$slots, "header.append")
|
|
59
|
+
],
|
|
60
|
+
64
|
|
61
|
+
/* STABLE_FRAGMENT */
|
|
62
|
+
))
|
|
63
|
+
])) : d("v-if", !0),
|
|
64
|
+
e.text || t.$slots.default ? (o(), l("div", b, [
|
|
65
|
+
a(t.$slots, "default", {}, () => [
|
|
66
|
+
e.html ? (o(), l("span", {
|
|
57
67
|
key: 0,
|
|
58
68
|
innerHTML: e.text
|
|
59
|
-
}, null, 8,
|
|
69
|
+
}, null, 8, g)) : (o(), l(
|
|
60
70
|
"span",
|
|
61
|
-
|
|
71
|
+
w,
|
|
62
72
|
i(e.text),
|
|
63
73
|
1
|
|
64
74
|
/* TEXT */
|
|
65
75
|
))
|
|
66
76
|
])
|
|
67
|
-
])) :
|
|
77
|
+
])) : d("v-if", !0)
|
|
68
78
|
]),
|
|
69
79
|
_: 3
|
|
70
80
|
/* FORWARDED */
|
|
@@ -72,5 +82,5 @@ const B = {
|
|
|
72
82
|
}
|
|
73
83
|
});
|
|
74
84
|
export {
|
|
75
|
-
|
|
85
|
+
C as default
|
|
76
86
|
};
|
|
@@ -74,6 +74,8 @@ declare const QPopover: {
|
|
|
74
74
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
75
75
|
$slots: {
|
|
76
76
|
header?(_: {}): any;
|
|
77
|
+
'header.prepend'?(_: {}): any;
|
|
78
|
+
'header.append'?(_: {}): any;
|
|
77
79
|
default?(_: {}): any;
|
|
78
80
|
};
|
|
79
81
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QPropertyListGroup as
|
|
3
|
-
import { DEFAULT_TEXTS as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as G, ref as c, computed as g, watch as Q, nextTick as S, createElementBlock as d, openBlock as i, normalizeClass as h, createElementVNode as a, createBlock as p, createCommentVNode as f, Fragment as y, renderList as _, unref as m, withCtx as k, renderSlot as C } from "vue";
|
|
2
|
+
import { QPropertyListGroup as N, QPropertyListRow as O, QPropertyListPanel as V } from "./index.js";
|
|
3
|
+
import { DEFAULT_TEXTS as $, DEFAULT_ICONS as D } from "./types.js";
|
|
4
|
+
const U = ["id"], W = { class: "q-property-list__table" }, j = /* @__PURE__ */ G({
|
|
5
5
|
__name: "QPropertyList",
|
|
6
6
|
props: {
|
|
7
7
|
id: {},
|
|
@@ -13,12 +13,12 @@ const D = ["id"], W = { class: "q-property-list__table" }, j = /* @__PURE__ */ A
|
|
|
13
13
|
block: { type: Boolean },
|
|
14
14
|
noPanel: { type: Boolean },
|
|
15
15
|
noToggle: { type: Boolean },
|
|
16
|
-
icons: { default: () =>
|
|
17
|
-
texts: { default: () =>
|
|
16
|
+
icons: { default: () => D },
|
|
17
|
+
texts: { default: () => $ }
|
|
18
18
|
},
|
|
19
19
|
emits: ["field-change", "select-field"],
|
|
20
|
-
setup(
|
|
21
|
-
const t =
|
|
20
|
+
setup(F, { emit: b }) {
|
|
21
|
+
const t = F, v = b, u = c(t.groups.map((e) => e.id)), s = c(void 0), r = c(null), x = g(() => t.groups.length ? t.groups.filter(
|
|
22
22
|
(e) => t.fields.some((o) => o.group === e.id)
|
|
23
23
|
) : [{ id: "", title: "" }]), w = g(() => [
|
|
24
24
|
"q-property-list",
|
|
@@ -60,11 +60,11 @@ const D = ["id"], W = { class: "q-property-list__table" }, j = /* @__PURE__ */ A
|
|
|
60
60
|
function R(e, o) {
|
|
61
61
|
t.readonly || (e.props.readonly ?? !1) || v("field-change", e, o);
|
|
62
62
|
}
|
|
63
|
-
return
|
|
63
|
+
return Q(
|
|
64
64
|
() => t.block,
|
|
65
65
|
async (e) => {
|
|
66
66
|
var o;
|
|
67
|
-
await
|
|
67
|
+
await S(), e ? (o = r.value) == null || o.removeAttribute("style") : P();
|
|
68
68
|
},
|
|
69
69
|
{ immediate: !0 }
|
|
70
70
|
), (e, o) => (i(), d("div", {
|
|
@@ -72,7 +72,7 @@ const D = ["id"], W = { class: "q-property-list__table" }, j = /* @__PURE__ */ A
|
|
|
72
72
|
ref_key: "componentRoot",
|
|
73
73
|
ref: r,
|
|
74
74
|
tabindex: "0",
|
|
75
|
-
class:
|
|
75
|
+
class: h(w.value),
|
|
76
76
|
onFocusout: q
|
|
77
77
|
}, [
|
|
78
78
|
a("table", W, [
|
|
@@ -91,13 +91,13 @@ const D = ["id"], W = { class: "q-property-list__table" }, j = /* @__PURE__ */ A
|
|
|
91
91
|
(i(!0), d(
|
|
92
92
|
y,
|
|
93
93
|
null,
|
|
94
|
-
|
|
94
|
+
_(x.value, (n) => (i(), d(
|
|
95
95
|
y,
|
|
96
96
|
{
|
|
97
97
|
key: n.id
|
|
98
98
|
},
|
|
99
99
|
[
|
|
100
|
-
n.title ? (i(), p(m(
|
|
100
|
+
n.title ? (i(), p(m(N), {
|
|
101
101
|
key: 0,
|
|
102
102
|
"data-key": n.id,
|
|
103
103
|
title: n.title,
|
|
@@ -108,21 +108,21 @@ const D = ["id"], W = { class: "q-property-list__table" }, j = /* @__PURE__ */ A
|
|
|
108
108
|
(i(!0), d(
|
|
109
109
|
y,
|
|
110
110
|
null,
|
|
111
|
-
|
|
111
|
+
_(B(n.id), (l) => (i(), p(m(O), {
|
|
112
112
|
key: l.id,
|
|
113
|
-
class:
|
|
113
|
+
class: h(T(l)),
|
|
114
114
|
field: l,
|
|
115
115
|
"model-value": l.props.modelValue,
|
|
116
116
|
readonly: t.readonly,
|
|
117
117
|
onFocus: E,
|
|
118
|
-
|
|
118
|
+
onFieldChange: (A) => R(l, A)
|
|
119
119
|
}, {
|
|
120
|
-
default:
|
|
121
|
-
|
|
120
|
+
default: k(() => [
|
|
121
|
+
C(e.$slots, l.id, { field: l })
|
|
122
122
|
]),
|
|
123
123
|
_: 2
|
|
124
124
|
/* DYNAMIC */
|
|
125
|
-
}, 1032, ["class", "field", "model-value", "readonly", "
|
|
125
|
+
}, 1032, ["class", "field", "model-value", "readonly", "onFieldChange"]))),
|
|
126
126
|
128
|
|
127
127
|
/* KEYED_FRAGMENT */
|
|
128
128
|
))
|
|
@@ -135,13 +135,13 @@ const D = ["id"], W = { class: "q-property-list__table" }, j = /* @__PURE__ */ A
|
|
|
135
135
|
))
|
|
136
136
|
])
|
|
137
137
|
]),
|
|
138
|
-
t.noPanel ? f("v-if", !0) : (i(), p(m(
|
|
138
|
+
t.noPanel ? f("v-if", !0) : (i(), p(m(V), {
|
|
139
139
|
key: 0,
|
|
140
140
|
field: s.value,
|
|
141
141
|
texts: t.texts
|
|
142
142
|
}, {
|
|
143
|
-
default:
|
|
144
|
-
s.value ?
|
|
143
|
+
default: k(() => [
|
|
144
|
+
s.value ? C(e.$slots, "panel", {
|
|
145
145
|
key: 0,
|
|
146
146
|
field: s.value
|
|
147
147
|
}) : f("v-if", !0)
|
|
@@ -149,7 +149,7 @@ const D = ["id"], W = { class: "q-property-list__table" }, j = /* @__PURE__ */ A
|
|
|
149
149
|
_: 3
|
|
150
150
|
/* FORWARDED */
|
|
151
151
|
}, 8, ["field", "texts"]))
|
|
152
|
-
], 42,
|
|
152
|
+
], 42, U));
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
export {
|
|
@@ -3,7 +3,8 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
4
|
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
5
5
|
readonly onFocus?: ((field: QPropertyListField) => any) | undefined;
|
|
6
|
-
|
|
6
|
+
readonly "onField-change"?: ((value: unknown) => any) | undefined;
|
|
7
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onUpdate:modelValue" | "onField-change"> & ({
|
|
7
8
|
modelValue?: T;
|
|
8
9
|
} & import('../../types/component').QBaseComponentProps & {
|
|
9
10
|
field: QPropertyListField;
|
|
@@ -14,7 +15,10 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
14
15
|
slots: {
|
|
15
16
|
default?(_: {}): any;
|
|
16
17
|
};
|
|
17
|
-
emit:
|
|
18
|
+
emit: {
|
|
19
|
+
(e: "focus", field: QPropertyListField): void;
|
|
20
|
+
(e: "field-change", value: unknown): void;
|
|
21
|
+
} & ((evt: "update:modelValue", value: T) => void);
|
|
18
22
|
}>) => import('vue').VNode & {
|
|
19
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QPropertyListRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListRow.vue"],"names":[],"mappings":"AA4BA;
|
|
1
|
+
{"version":3,"file":"QPropertyListRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListRow.vue"],"names":[],"mappings":"AA4BA;AAuFC,OAAO,KAAK,EAAE,kBAAkB,EAAyB,MAAM,SAAS,CAAA;yBAKvD,CAAC,eACL,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAsJ1D,mBAAmB,CAAC;;;;;qBAzFf,CAAC;;;;oBAyFgF,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBAlCkB,GAAG;;UAoCzB;YApJD,OAAO,SAAS,kBAAkB,GAAG,IAAI;YACzC,cAAc,SAAS,OAAO,GAAG,IAAI;sDAmJA;OAG/B,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAhKxE,wBAgK2E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, mergeModels as p, useModel as k, computed as o, createElementBlock as c, openBlock as r, normalizeClass as u, createElementVNode as n, withModifiers as m, toDisplayString as h, renderSlot as B, createCommentVNode as M, createBlock as b, resolveDynamicComponent as P, mergeProps as w } from "vue";
|
|
2
2
|
const D = ["id", "data-group"], E = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "q-property-list-field__container"
|
|
5
|
-
}, N = /* @__PURE__ */
|
|
5
|
+
}, N = /* @__PURE__ */ V({
|
|
6
6
|
__name: "QPropertyListRow",
|
|
7
|
-
props: /* @__PURE__ */
|
|
7
|
+
props: /* @__PURE__ */ p({
|
|
8
8
|
id: {},
|
|
9
9
|
class: {},
|
|
10
10
|
field: {},
|
|
@@ -13,9 +13,9 @@ const D = ["id", "data-group"], E = {
|
|
|
13
13
|
modelValue: {},
|
|
14
14
|
modelModifiers: {}
|
|
15
15
|
}),
|
|
16
|
-
emits: /* @__PURE__ */
|
|
17
|
-
setup(
|
|
18
|
-
const e =
|
|
16
|
+
emits: /* @__PURE__ */ p(["focus", "field-change"], ["update:modelValue"]),
|
|
17
|
+
setup(i, { emit: f }) {
|
|
18
|
+
const e = i, a = f, t = k(i, "modelValue"), _ = o(() => ["q-property-list__row", e.class]), y = o(() => {
|
|
19
19
|
var l;
|
|
20
20
|
return [
|
|
21
21
|
"q-property-list__cell",
|
|
@@ -24,33 +24,33 @@ const D = ["id", "data-group"], E = {
|
|
|
24
24
|
"q-property-list__cell--required": (l = e.field.props) == null ? void 0 : l.required
|
|
25
25
|
}
|
|
26
26
|
];
|
|
27
|
-
}), v = o(() => e.readonly || (e.field.props.readonly ?? !1)),
|
|
27
|
+
}), v = o(() => e.readonly || (e.field.props.readonly ?? !1)), g = o(() => ({
|
|
28
28
|
...e.field.props,
|
|
29
29
|
readonly: v.value
|
|
30
30
|
}));
|
|
31
31
|
function s() {
|
|
32
|
-
|
|
32
|
+
a("focus", e.field);
|
|
33
33
|
}
|
|
34
34
|
function q(l) {
|
|
35
|
-
t.value = l;
|
|
35
|
+
t.value = l, a("field-change", l);
|
|
36
36
|
}
|
|
37
|
-
return (l,
|
|
37
|
+
return (l, d) => (r(), c("tr", {
|
|
38
38
|
id: e.id,
|
|
39
|
-
class:
|
|
39
|
+
class: u(_.value),
|
|
40
40
|
"data-group": e.field.group,
|
|
41
41
|
onFocusin: s
|
|
42
42
|
}, [
|
|
43
43
|
n(
|
|
44
44
|
"td",
|
|
45
45
|
{
|
|
46
|
-
class:
|
|
47
|
-
onClick:
|
|
46
|
+
class: u(y.value),
|
|
47
|
+
onClick: m(s, ["prevent", "stop"])
|
|
48
48
|
},
|
|
49
49
|
[
|
|
50
50
|
n(
|
|
51
51
|
"div",
|
|
52
52
|
null,
|
|
53
|
-
|
|
53
|
+
h(e.field.label),
|
|
54
54
|
1
|
|
55
55
|
/* TEXT */
|
|
56
56
|
)
|
|
@@ -60,18 +60,18 @@ const D = ["id", "data-group"], E = {
|
|
|
60
60
|
),
|
|
61
61
|
n("td", {
|
|
62
62
|
class: "q-property-list__cell",
|
|
63
|
-
onClick:
|
|
63
|
+
onClick: m(s, ["prevent", "stop"])
|
|
64
64
|
}, [
|
|
65
|
-
|
|
66
|
-
e.field.component ? (r(),
|
|
67
|
-
(r(),
|
|
65
|
+
B(l.$slots, "default", {}, () => [
|
|
66
|
+
e.field.component ? (r(), c("div", E, [
|
|
67
|
+
(r(), b(P(e.field.component), w(g.value, {
|
|
68
68
|
modelValue: t.value,
|
|
69
69
|
"onUpdate:modelValue": [
|
|
70
|
-
|
|
70
|
+
d[0] || (d[0] = (C) => t.value = C),
|
|
71
71
|
q
|
|
72
72
|
]
|
|
73
73
|
}), null, 16, ["modelValue"]))
|
|
74
|
-
])) :
|
|
74
|
+
])) : M("v-if", !0)
|
|
75
75
|
])
|
|
76
76
|
])
|
|
77
77
|
], 42, D));
|
|
@@ -67,11 +67,15 @@ declare const QPropertyListRow: <T>(__VLS_props: NonNullable<Awaited<typeof __VL
|
|
|
67
67
|
default?(_: {}): any;
|
|
68
68
|
};
|
|
69
69
|
attrs: any;
|
|
70
|
-
emit:
|
|
70
|
+
emit: {
|
|
71
|
+
(e: "focus", field: import('./types').QPropertyListField): void;
|
|
72
|
+
(e: "field-change", value: unknown): void;
|
|
73
|
+
} & ((evt: "update:modelValue", value: T) => void);
|
|
71
74
|
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
72
75
|
props: {
|
|
73
76
|
readonly onFocus?: ((field: import('./types').QPropertyListField) => any) | undefined;
|
|
74
77
|
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
78
|
+
readonly "onField-change"?: ((value: unknown) => any) | undefined;
|
|
75
79
|
modelValue?: T | undefined;
|
|
76
80
|
id?: string | undefined;
|
|
77
81
|
class?: string | unknown[] | undefined;
|
|
@@ -83,7 +87,10 @@ declare const QPropertyListRow: <T>(__VLS_props: NonNullable<Awaited<typeof __VL
|
|
|
83
87
|
slots: {
|
|
84
88
|
default?(_: {}): any;
|
|
85
89
|
};
|
|
86
|
-
emit:
|
|
90
|
+
emit: {
|
|
91
|
+
(e: "focus", field: import('./types').QPropertyListField): void;
|
|
92
|
+
(e: "field-change", value: unknown): void;
|
|
93
|
+
} & ((evt: "update:modelValue", value: T) => void);
|
|
87
94
|
}>) => import('vue').VNode & {
|
|
88
95
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
89
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACX,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,MAAM,SAAS,CAAA;AAKhB,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkC,CAAA;AACrD,QAAA,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACX,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,MAAM,SAAS,CAAA;AAKhB,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkC,CAAA;AACrD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;2BAcisN,KAAK;;;;;;;;;cAA4J,KAAK;SAAiB,CAAC;CAdp1N,CAAA;AAC3D,QAAA,MAAM,kBAAkB;;;;;;6FAAuC,CAAA;AAC/D,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;EAAuC,CAAA;AAG/D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAA;AAGlF,YAAY,EACX,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { QRadioButtonProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<QRadioButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QRadioButtonProps> & Readonly<{}>, {
|
|
13
|
+
size: import('./types').QRadioButtonSize;
|
|
14
|
+
color: string;
|
|
15
|
+
labelPlacement: import('./types').QRadioButtonLabelPlacement;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=QRadioButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QRadioButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioButton.vue"],"names":[],"mappings":"AA2BA;AA0FC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAmDjD,iBAAS,cAAc;WAiET,OAAO,IAA6B;;yBAZrB,GAAG;yBACH,GAAG;;;;EAgB/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6EAOnB,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"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineComponent as m, computed as r, createBlock as b, openBlock as f, unref as o, normalizeClass as v, createSlots as y, withCtx as d, createElementVNode as g, renderSlot as i, createCommentVNode as q, mergeProps as B } from "vue";
|
|
2
|
+
import { QLabel as h } from "../QLabel/index.js";
|
|
3
|
+
import { useGroupItem as C } from "../../composables/group.js";
|
|
4
|
+
import { useId as k } from "../../composables/uid.js";
|
|
5
|
+
const z = ["id", "checked", "name", "value", "disabled"], w = /* @__PURE__ */ m({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "QRadioButton",
|
|
8
|
+
props: {
|
|
9
|
+
id: {},
|
|
10
|
+
class: {},
|
|
11
|
+
label: {},
|
|
12
|
+
for: {},
|
|
13
|
+
required: { type: Boolean },
|
|
14
|
+
labelPlacement: { default: "end" },
|
|
15
|
+
disabled: { type: Boolean },
|
|
16
|
+
readonly: { type: Boolean },
|
|
17
|
+
color: { default: "primary" },
|
|
18
|
+
value: {},
|
|
19
|
+
size: { default: "regular" },
|
|
20
|
+
invalid: { type: Boolean },
|
|
21
|
+
name: {}
|
|
22
|
+
},
|
|
23
|
+
setup(s) {
|
|
24
|
+
const e = s, n = k(e.id), t = C(e.value);
|
|
25
|
+
if (!t)
|
|
26
|
+
throw new Error("QRadioButton must be used inside a QRadioGroup");
|
|
27
|
+
const u = r(() => e.labelPlacement === "start" ? "append" : "prepend"), p = r(() => {
|
|
28
|
+
const a = e.size !== "regular" ? `q-radio-button--${e.size}` : void 0, l = e.color !== "primary" ? `q-radio-button--${e.color}` : void 0;
|
|
29
|
+
return [
|
|
30
|
+
"q-radio-button",
|
|
31
|
+
a,
|
|
32
|
+
l,
|
|
33
|
+
{
|
|
34
|
+
"q-radio-button--readonly": e.readonly,
|
|
35
|
+
"q-radio-button--disabled": e.disabled,
|
|
36
|
+
"q-radio-button--invalid": e.invalid
|
|
37
|
+
},
|
|
38
|
+
e.class
|
|
39
|
+
];
|
|
40
|
+
});
|
|
41
|
+
return (a, l) => (f(), b(o(h), {
|
|
42
|
+
for: o(n),
|
|
43
|
+
class: v(p.value),
|
|
44
|
+
label: e.label
|
|
45
|
+
}, y({
|
|
46
|
+
[u.value]: d(() => [
|
|
47
|
+
g("input", B({
|
|
48
|
+
id: o(n),
|
|
49
|
+
checked: o(t).isActive.value,
|
|
50
|
+
tabindex: "0",
|
|
51
|
+
type: "radio",
|
|
52
|
+
"aria-hidden": "true",
|
|
53
|
+
class: "q-radio-button__input",
|
|
54
|
+
name: e.name,
|
|
55
|
+
value: a.value,
|
|
56
|
+
disabled: e.readonly || e.disabled
|
|
57
|
+
}, a.$attrs, {
|
|
58
|
+
onChange: l[0] || (l[0] = //@ts-ignore
|
|
59
|
+
(...c) => o(t).toggle && o(t).toggle(...c))
|
|
60
|
+
}), null, 16, z),
|
|
61
|
+
e.labelPlacement === "end" ? i(a.$slots, "default", { key: 0 }) : q("v-if", !0)
|
|
62
|
+
]),
|
|
63
|
+
_: 2
|
|
64
|
+
/* DYNAMIC */
|
|
65
|
+
}, [
|
|
66
|
+
e.labelPlacement === "start" ? {
|
|
67
|
+
name: "prepend",
|
|
68
|
+
fn: d(() => [
|
|
69
|
+
i(a.$slots, "default")
|
|
70
|
+
]),
|
|
71
|
+
key: "0"
|
|
72
|
+
} : void 0
|
|
73
|
+
]), 1032, ["for", "class", "label"]));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
w as default
|
|
78
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Primitive } from '../../types/primitive';
|
|
2
|
+
import { QRadioGroupProps } from './types';
|
|
3
|
+
type __VLS_Props = QRadioGroupProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue?: Primitive;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
extras?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (value: Primitive) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((value: Primitive) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
size: import('./types').QRadioButtonSize;
|
|
23
|
+
orientation: import('./types').QRadioButtonOrientation;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=QRadioGroup.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QRadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioGroup.vue"],"names":[],"mappings":"AAsBA;AA8FC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AAoDrC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAqDT,OAAO,IAA6B;;yBAZrB,GAAG;wBACJ,GAAG;;;;EAgB9B;AAaD,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"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent as b, mergeModels as y, useModel as g, watch as B, computed as d, toRef as r, createElementBlock as n, openBlock as a, normalizeClass as q, createBlock as _, createCommentVNode as u, createElementVNode as h, unref as l, mergeProps as z, renderSlot as m } from "vue";
|
|
2
|
+
import { QLabel as k } from "../QLabel/index.js";
|
|
3
|
+
import { provideDefaults as V } from "../../composables/defaults.js";
|
|
4
|
+
import { useGroup as $ } from "../../composables/group.js";
|
|
5
|
+
import { useId as c } from "../../composables/uid.js";
|
|
6
|
+
const C = ["id"], M = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "q-field__extras"
|
|
9
|
+
}, w = /* @__PURE__ */ b({
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
__name: "QRadioGroup",
|
|
12
|
+
props: /* @__PURE__ */ y({
|
|
13
|
+
id: {},
|
|
14
|
+
class: {},
|
|
15
|
+
label: {},
|
|
16
|
+
for: {},
|
|
17
|
+
required: { type: Boolean },
|
|
18
|
+
orientation: { default: "vertical" },
|
|
19
|
+
disabled: { type: Boolean },
|
|
20
|
+
readonly: { type: Boolean },
|
|
21
|
+
size: { default: "regular" },
|
|
22
|
+
invalid: { type: Boolean },
|
|
23
|
+
name: {}
|
|
24
|
+
}, {
|
|
25
|
+
modelValue: { type: [String, Number, Boolean, Symbol] },
|
|
26
|
+
modelModifiers: {}
|
|
27
|
+
}),
|
|
28
|
+
emits: ["update:modelValue"],
|
|
29
|
+
setup(t) {
|
|
30
|
+
const e = t, i = g(t, "modelValue"), { active: p } = $({ active: i });
|
|
31
|
+
B(p, (o) => {
|
|
32
|
+
i.value = o;
|
|
33
|
+
});
|
|
34
|
+
const s = c(e.id), f = d(() => c(e.name)), v = d(() => [
|
|
35
|
+
"q-radio-group",
|
|
36
|
+
{
|
|
37
|
+
"q-radio-group--horizontal": e.orientation === "horizontal"
|
|
38
|
+
},
|
|
39
|
+
e.class
|
|
40
|
+
]);
|
|
41
|
+
return V({
|
|
42
|
+
QRadioButton: {
|
|
43
|
+
size: r(e, "size"),
|
|
44
|
+
disabled: r(e, "disabled"),
|
|
45
|
+
readonly: r(e, "readonly"),
|
|
46
|
+
invalid: r(e, "invalid"),
|
|
47
|
+
name: f
|
|
48
|
+
}
|
|
49
|
+
}), (o, N) => (a(), n(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
class: q(v.value)
|
|
53
|
+
},
|
|
54
|
+
[
|
|
55
|
+
e.label ? (a(), _(l(k), {
|
|
56
|
+
key: 0,
|
|
57
|
+
for: l(s),
|
|
58
|
+
label: e.label,
|
|
59
|
+
required: e.required
|
|
60
|
+
}, null, 8, ["for", "label", "required"])) : u("v-if", !0),
|
|
61
|
+
h("div", z({
|
|
62
|
+
id: l(s),
|
|
63
|
+
class: "q-radio-group__group",
|
|
64
|
+
role: "radiogroup"
|
|
65
|
+
}, o.$attrs), [
|
|
66
|
+
m(o.$slots, "default")
|
|
67
|
+
], 16, C),
|
|
68
|
+
o.$slots.extras ? (a(), n("div", M, [
|
|
69
|
+
m(o.$slots, "extras")
|
|
70
|
+
])) : u("v-if", !0)
|
|
71
|
+
],
|
|
72
|
+
2
|
|
73
|
+
/* CLASS */
|
|
74
|
+
));
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
w as default
|
|
79
|
+
};
|