@quidgest/ui 0.16.65 → 0.16.67
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 +226 -1
- package/dist/ui.css +14 -0
- package/dist/ui.esm.js +35 -10
- package/dist/ui.js +5 -5
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +154 -154
- package/dist/ui.scss +15 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +4 -3
- package/esm/components/QCheckbox/QCheckboxLabel.vue.js +7 -6
- package/esm/components/QCheckbox/index.d.ts +3 -0
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +28 -4
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +6 -5
- package/esm/components/QCombobox/index.d.ts +49 -7
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +23 -21
- 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 +1 -0
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +23 -20
- package/esm/components/QField/index.d.ts +3 -0
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +18 -16
- package/esm/components/QFileUpload/index.d.ts +3 -0
- package/esm/components/QFileUpload/index.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +27 -25
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +15 -13
- package/esm/components/QLabel/types.d.ts +12 -0
- package/esm/components/QLabel/types.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.vue.js +8 -7
- package/esm/components/QMeter/index.d.ts +2 -0
- package/esm/components/QMeter/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.d.ts +14 -2
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +5 -4
- package/esm/components/QPasswordField/index.d.ts +7 -1
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +13 -12
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +8 -7
- package/esm/components/QRadioGroup/index.d.ts +3 -0
- package/esm/components/QRadioGroup/index.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +8 -2
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +9 -7
- package/esm/components/QSelect/index.d.ts +7 -1
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +15 -14
- package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +21 -19
- 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 +8 -2
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +28 -26
- package/esm/components/QTextField/index.d.ts +7 -1
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as c, useTemplateRef as
|
|
2
|
-
import { QLabel as
|
|
1
|
+
import { defineComponent as c, useTemplateRef as b, computed as a, createElementBlock as i, openBlock as o, normalizeClass as q, createBlock as m, createCommentVNode as d, renderSlot as s, unref as v, withCtx as t, createElementVNode as _, mergeProps as $ } from "vue";
|
|
2
|
+
import { QLabel as y } from "../QLabel/index.js";
|
|
3
3
|
const h = ["id"], k = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "q-field__prepend"
|
|
@@ -9,7 +9,7 @@ const h = ["id"], k = {
|
|
|
9
9
|
}, C = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "q-field__extras"
|
|
12
|
-
},
|
|
12
|
+
}, E = /* @__PURE__ */ c({
|
|
13
13
|
inheritAttrs: !1,
|
|
14
14
|
__name: "QField",
|
|
15
15
|
props: {
|
|
@@ -18,15 +18,17 @@ const h = ["id"], k = {
|
|
|
18
18
|
label: {},
|
|
19
19
|
required: { type: Boolean },
|
|
20
20
|
for: {},
|
|
21
|
+
labelPosition: { default: "topleft" },
|
|
21
22
|
size: { default: "medium" },
|
|
22
23
|
readonly: { type: Boolean },
|
|
23
24
|
disabled: { type: Boolean },
|
|
24
25
|
invalid: { type: Boolean }
|
|
25
26
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const e =
|
|
27
|
+
setup(r, { expose: n }) {
|
|
28
|
+
const e = r, p = b("field"), f = a(() => e.required && !e.readonly && !e.disabled), u = a(() => [
|
|
28
29
|
"q-field",
|
|
29
30
|
`q-field--${e.size}`,
|
|
31
|
+
`q-field--label-${e.labelPosition}`,
|
|
30
32
|
{
|
|
31
33
|
"q-field--readonly": e.readonly,
|
|
32
34
|
"q-field--disabled": e.disabled,
|
|
@@ -37,52 +39,53 @@ const h = ["id"], k = {
|
|
|
37
39
|
]);
|
|
38
40
|
return n({
|
|
39
41
|
fieldRef: p
|
|
40
|
-
}), (l,
|
|
42
|
+
}), (l, P) => (o(), i("div", {
|
|
41
43
|
id: e.id,
|
|
42
|
-
class:
|
|
44
|
+
class: q(u.value)
|
|
43
45
|
}, [
|
|
44
|
-
e.label ? (
|
|
46
|
+
e.label ? (o(), m(v(y), {
|
|
45
47
|
key: 0,
|
|
46
48
|
class: "q-field__label",
|
|
47
49
|
label: e.label,
|
|
50
|
+
"label-position": e.labelPosition,
|
|
48
51
|
for: e.for,
|
|
49
52
|
required: e.required
|
|
50
53
|
}, {
|
|
51
|
-
prepend:
|
|
54
|
+
prepend: t(() => [
|
|
52
55
|
s(l.$slots, "label.prepend")
|
|
53
56
|
]),
|
|
54
|
-
append:
|
|
57
|
+
append: t(() => [
|
|
55
58
|
s(l.$slots, "label.append")
|
|
56
59
|
]),
|
|
57
60
|
_: 3
|
|
58
61
|
/* FORWARDED */
|
|
59
|
-
}, 8, ["label", "for", "required"])) :
|
|
62
|
+
}, 8, ["label", "label-position", "for", "required"])) : d("v-if", !0),
|
|
60
63
|
s(l.$slots, "control", {}, () => [
|
|
61
|
-
|
|
64
|
+
_(
|
|
62
65
|
"div",
|
|
63
|
-
|
|
66
|
+
$({
|
|
64
67
|
ref: "field",
|
|
65
68
|
class: "q-field__control"
|
|
66
69
|
}, l.$attrs),
|
|
67
70
|
[
|
|
68
|
-
l.$slots.prepend ? (
|
|
71
|
+
l.$slots.prepend ? (o(), i("div", k, [
|
|
69
72
|
s(l.$slots, "prepend")
|
|
70
|
-
])) :
|
|
73
|
+
])) : d("v-if", !0),
|
|
71
74
|
s(l.$slots, "default"),
|
|
72
|
-
l.$slots.append ? (
|
|
75
|
+
l.$slots.append ? (o(), i("div", B, [
|
|
73
76
|
s(l.$slots, "append")
|
|
74
|
-
])) :
|
|
77
|
+
])) : d("v-if", !0)
|
|
75
78
|
],
|
|
76
79
|
16
|
|
77
80
|
/* FULL_PROPS */
|
|
78
81
|
)
|
|
79
82
|
]),
|
|
80
|
-
l.$slots.extras ? (
|
|
83
|
+
l.$slots.extras ? (o(), i("div", C, [
|
|
81
84
|
s(l.$slots, "extras")
|
|
82
|
-
])) :
|
|
85
|
+
])) : d("v-if", !0)
|
|
83
86
|
], 10, h));
|
|
84
87
|
}
|
|
85
88
|
});
|
|
86
89
|
export {
|
|
87
|
-
|
|
90
|
+
E as default
|
|
88
91
|
};
|
|
@@ -3,6 +3,7 @@ declare const QField: {
|
|
|
3
3
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
4
4
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
5
5
|
size: import('./types').QFieldSize;
|
|
6
|
+
labelPosition: import('..').QLabelPosition;
|
|
6
7
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
7
8
|
field: HTMLDivElement;
|
|
8
9
|
}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -16,6 +17,7 @@ declare const QField: {
|
|
|
16
17
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
17
18
|
}, {}, {}, {}, {
|
|
18
19
|
size: import('./types').QFieldSize;
|
|
20
|
+
labelPosition: import('..').QLabelPosition;
|
|
19
21
|
}>;
|
|
20
22
|
__isFragment?: never;
|
|
21
23
|
__isTeleport?: never;
|
|
@@ -24,6 +26,7 @@ declare const QField: {
|
|
|
24
26
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
25
27
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
26
28
|
size: import('./types').QFieldSize;
|
|
29
|
+
labelPosition: import('..').QLabelPosition;
|
|
27
30
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
28
31
|
$slots: {
|
|
29
32
|
'label.prepend'?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,cAAc,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QFileUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/QFileUpload.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QFileUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/QFileUpload.vue"],"names":[],"mappings":"AA0FA;AAoOC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAY1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAM/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AA2HrC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,IAAI,CAAC;CACjB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAwOT,OAAO,IAA6B;;wBAbrB,GAAG;;;;;;;EAkB/B;AAyBD,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,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as L, mergeModels as N, useModel as O, toRef as
|
|
1
|
+
import { defineComponent as L, mergeModels as N, useModel as O, toRef as P, computed as d, ref as b, watch as T, createBlock as w, openBlock as n, unref as i, createSlots as Z, withCtx as _, createElementVNode as a, normalizeClass as Q, createElementBlock as c, mergeProps as F, createVNode as s, normalizeProps as v, guardReactiveProps as m, toDisplayString as y, createCommentVNode as j, createTextVNode as M, renderSlot as $ } from "vue";
|
|
2
2
|
import { DEFAULT_TEXTS as H, DEFAULT_ICONS as W } from "./constants.js";
|
|
3
|
-
import { QButton as
|
|
3
|
+
import { QButton as h } from "../QButton/index.js";
|
|
4
4
|
import { QField as X } from "../QField/index.js";
|
|
5
5
|
import { QIcon as u } from "../QIcon/index.js";
|
|
6
6
|
import { useId as G } from "../../composables/uid.js";
|
|
@@ -21,7 +21,7 @@ const Y = ["id", "accept", "required", "readonly", "disabled"], ee = {
|
|
|
21
21
|
}, de = {
|
|
22
22
|
key: 2,
|
|
23
23
|
class: "q-file-input__empty-container"
|
|
24
|
-
},
|
|
24
|
+
}, be = /* @__PURE__ */ L({
|
|
25
25
|
inheritAttrs: !1,
|
|
26
26
|
__name: "QFileUpload",
|
|
27
27
|
props: /* @__PURE__ */ N({
|
|
@@ -30,6 +30,7 @@ const Y = ["id", "accept", "required", "readonly", "disabled"], ee = {
|
|
|
30
30
|
label: {},
|
|
31
31
|
required: { type: Boolean },
|
|
32
32
|
for: {},
|
|
33
|
+
labelPosition: {},
|
|
33
34
|
size: { default: "large" },
|
|
34
35
|
readonly: { type: Boolean },
|
|
35
36
|
disabled: { type: Boolean },
|
|
@@ -43,13 +44,13 @@ const Y = ["id", "accept", "required", "readonly", "disabled"], ee = {
|
|
|
43
44
|
}),
|
|
44
45
|
emits: ["update:modelValue"],
|
|
45
46
|
setup(q) {
|
|
46
|
-
const e = q, t = O(q, "modelValue"), k = G(
|
|
47
|
-
|
|
47
|
+
const e = q, t = O(q, "modelValue"), k = G(P(e, "id")), p = d(() => !e.readonly && !e.disabled), r = b(null);
|
|
48
|
+
T(t, (l) => {
|
|
48
49
|
r.value && URL.revokeObjectURL(r.value);
|
|
49
50
|
const o = l && l.type.startsWith("image/");
|
|
50
51
|
r.value = o ? URL.createObjectURL(l) : null;
|
|
51
52
|
});
|
|
52
|
-
const f =
|
|
53
|
+
const f = b(null);
|
|
53
54
|
function B() {
|
|
54
55
|
var l;
|
|
55
56
|
(l = f.value) == null || l.click();
|
|
@@ -70,7 +71,7 @@ const Y = ["id", "accept", "required", "readonly", "disabled"], ee = {
|
|
|
70
71
|
const o = l == null ? void 0 : l[0];
|
|
71
72
|
o && (t.value = o);
|
|
72
73
|
}
|
|
73
|
-
const g =
|
|
74
|
+
const g = b(null), x = d(() => Array.isArray(e.accept) ? e.accept : e.accept ? e.accept.split(",").map((l) => l.trim()) : []), I = d(() => {
|
|
74
75
|
var l;
|
|
75
76
|
return (l = x.value) == null ? void 0 : l.join(",");
|
|
76
77
|
}), S = d(() => p.value && !t.value), { isOverDropZone: z, isValid: A } = J(g, {
|
|
@@ -88,19 +89,20 @@ const Y = ["id", "accept", "required", "readonly", "disabled"], ee = {
|
|
|
88
89
|
return (l, o) => (n(), w(i(X), {
|
|
89
90
|
for: i(k),
|
|
90
91
|
label: e.label,
|
|
92
|
+
"label-position": e.labelPosition,
|
|
91
93
|
size: e.size,
|
|
92
94
|
readonly: e.readonly,
|
|
93
95
|
disabled: e.disabled,
|
|
94
96
|
required: e.required,
|
|
95
97
|
invalid: e.invalid
|
|
96
|
-
},
|
|
98
|
+
}, Z({
|
|
97
99
|
control: _(() => [
|
|
98
100
|
a(
|
|
99
101
|
"div",
|
|
100
102
|
{
|
|
101
103
|
ref_key: "dropZoneRef",
|
|
102
104
|
ref: g,
|
|
103
|
-
class:
|
|
105
|
+
class: Q(E.value)
|
|
104
106
|
},
|
|
105
107
|
[
|
|
106
108
|
a("input", F({
|
|
@@ -129,7 +131,7 @@ const Y = ["id", "accept", "required", "readonly", "disabled"], ee = {
|
|
|
129
131
|
1
|
|
130
132
|
/* TEXT */
|
|
131
133
|
),
|
|
132
|
-
s(i(
|
|
134
|
+
s(i(h), {
|
|
133
135
|
label: e.texts.chooseFile,
|
|
134
136
|
onClick: B
|
|
135
137
|
}, null, 8, ["label"])
|
|
@@ -168,7 +170,7 @@ const Y = ["id", "accept", "required", "readonly", "disabled"], ee = {
|
|
|
168
170
|
])
|
|
169
171
|
]),
|
|
170
172
|
p.value ? (n(), c("div", re, [
|
|
171
|
-
s(i(
|
|
173
|
+
s(i(h), {
|
|
172
174
|
title: e.texts.download,
|
|
173
175
|
borderless: "",
|
|
174
176
|
onClick: U
|
|
@@ -185,7 +187,7 @@ const Y = ["id", "accept", "required", "readonly", "disabled"], ee = {
|
|
|
185
187
|
_: 1
|
|
186
188
|
/* STABLE */
|
|
187
189
|
}, 8, ["title"]),
|
|
188
|
-
s(i(
|
|
190
|
+
s(i(h), {
|
|
189
191
|
title: e.texts.remove,
|
|
190
192
|
borderless: "",
|
|
191
193
|
onClick: V
|
|
@@ -202,7 +204,7 @@ const Y = ["id", "accept", "required", "readonly", "disabled"], ee = {
|
|
|
202
204
|
_: 1
|
|
203
205
|
/* STABLE */
|
|
204
206
|
}, 8, ["title"])
|
|
205
|
-
])) :
|
|
207
|
+
])) : j("v-if", !0)
|
|
206
208
|
])) : (n(), c("div", de, [
|
|
207
209
|
s(
|
|
208
210
|
i(u),
|
|
@@ -211,7 +213,7 @@ const Y = ["id", "accept", "required", "readonly", "disabled"], ee = {
|
|
|
211
213
|
16
|
|
212
214
|
/* FULL_PROPS */
|
|
213
215
|
),
|
|
214
|
-
|
|
216
|
+
M(
|
|
215
217
|
" " + y(e.texts.empty),
|
|
216
218
|
1
|
|
217
219
|
/* TEXT */
|
|
@@ -232,9 +234,9 @@ const Y = ["id", "accept", "required", "readonly", "disabled"], ee = {
|
|
|
232
234
|
]),
|
|
233
235
|
key: "0"
|
|
234
236
|
} : void 0
|
|
235
|
-
]), 1032, ["for", "label", "size", "readonly", "disabled", "required", "invalid"]));
|
|
237
|
+
]), 1032, ["for", "label", "label-position", "size", "readonly", "disabled", "required", "invalid"]));
|
|
236
238
|
}
|
|
237
239
|
});
|
|
238
240
|
export {
|
|
239
|
-
|
|
241
|
+
be as default
|
|
240
242
|
};
|
|
@@ -5,6 +5,7 @@ declare const QFileUpload: {
|
|
|
5
5
|
label?: string;
|
|
6
6
|
required?: boolean;
|
|
7
7
|
for?: string;
|
|
8
|
+
labelPosition?: import('..').QLabelPosition;
|
|
8
9
|
} & {
|
|
9
10
|
size?: import('..').QFieldSize;
|
|
10
11
|
readonly?: boolean;
|
|
@@ -39,6 +40,7 @@ declare const QFileUpload: {
|
|
|
39
40
|
label?: string;
|
|
40
41
|
required?: boolean;
|
|
41
42
|
for?: string;
|
|
43
|
+
labelPosition?: import('..').QLabelPosition;
|
|
42
44
|
} & {
|
|
43
45
|
size?: import('..').QFieldSize;
|
|
44
46
|
readonly?: boolean;
|
|
@@ -65,6 +67,7 @@ declare const QFileUpload: {
|
|
|
65
67
|
label?: string;
|
|
66
68
|
required?: boolean;
|
|
67
69
|
for?: string;
|
|
70
|
+
labelPosition?: import('..').QLabelPosition;
|
|
68
71
|
} & {
|
|
69
72
|
size?: import('..').QFieldSize;
|
|
70
73
|
readonly?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAA;AAGjD,OAAO,EAAE,WAAW,EAAE,CAAA;AAGtB,cAAc,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QInputGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/QInputGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QInputGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/QInputGroup.vue"],"names":[],"mappings":"AAuCA;AAoEC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAqBhD,iBAAS,cAAc;WAgHT,OAAO,IAA6B;;iCAfb,GAAG;gCACJ,GAAG;yBACT,GAAG;yBACH,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;EAe/B;AAWD,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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, createBlock as m, openBlock as
|
|
1
|
+
import { defineComponent as f, createBlock as m, openBlock as l, unref as r, normalizeClass as b, createSlots as v, withCtx as p, createElementBlock as s, createCommentVNode as a, renderSlot as n, createVNode as i, normalizeProps as t, guardReactiveProps as d } from "vue";
|
|
2
2
|
import { QField as y } from "../QField/index.js";
|
|
3
3
|
import { QIcon as u } from "../QIcon/index.js";
|
|
4
4
|
import { provideDefaults as I } from "../../composables/defaults.js";
|
|
@@ -8,7 +8,7 @@ const _ = {
|
|
|
8
8
|
}, k = { key: 0 }, $ = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "q-input-group__append"
|
|
11
|
-
}, q = { key: 0 },
|
|
11
|
+
}, q = { key: 0 }, P = /* @__PURE__ */ f({
|
|
12
12
|
__name: "QInputGroup",
|
|
13
13
|
props: {
|
|
14
14
|
id: {},
|
|
@@ -16,6 +16,7 @@ const _ = {
|
|
|
16
16
|
label: {},
|
|
17
17
|
required: { type: Boolean },
|
|
18
18
|
for: {},
|
|
19
|
+
labelPosition: {},
|
|
19
20
|
size: { default: "large" },
|
|
20
21
|
readonly: { type: Boolean },
|
|
21
22
|
disabled: { type: Boolean },
|
|
@@ -29,60 +30,61 @@ const _ = {
|
|
|
29
30
|
QField: {
|
|
30
31
|
size: "block"
|
|
31
32
|
}
|
|
32
|
-
}), (o, z) => (
|
|
33
|
+
}), (o, z) => (l(), m(r(y), {
|
|
33
34
|
id: e.id,
|
|
34
|
-
class:
|
|
35
|
+
class: b(["q-input-group", e.class]),
|
|
35
36
|
label: e.label,
|
|
37
|
+
"label-position": e.labelPosition,
|
|
36
38
|
required: e.required,
|
|
37
39
|
size: e.size,
|
|
38
40
|
invalid: e.invalid
|
|
39
|
-
},
|
|
40
|
-
"label.prepend":
|
|
41
|
+
}, v({
|
|
42
|
+
"label.prepend": p(() => [
|
|
41
43
|
n(o.$slots, "label.prepend")
|
|
42
44
|
]),
|
|
43
|
-
"label.append":
|
|
45
|
+
"label.append": p(() => [
|
|
44
46
|
n(o.$slots, "label.append")
|
|
45
47
|
]),
|
|
46
|
-
default:
|
|
47
|
-
o.$slots.prepend || e.prependIcon ? (
|
|
48
|
-
e.prependIcon ? (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
t(
|
|
48
|
+
default: p(() => [
|
|
49
|
+
o.$slots.prepend || e.prependIcon ? (l(), s("div", _, [
|
|
50
|
+
e.prependIcon ? (l(), s("span", k, [
|
|
51
|
+
i(
|
|
52
|
+
r(u),
|
|
53
|
+
t(d(e.prependIcon)),
|
|
52
54
|
null,
|
|
53
55
|
16
|
|
54
56
|
/* FULL_PROPS */
|
|
55
57
|
)
|
|
56
|
-
])) :
|
|
58
|
+
])) : a("v-if", !0),
|
|
57
59
|
n(o.$slots, "prepend")
|
|
58
|
-
])) :
|
|
60
|
+
])) : a("v-if", !0),
|
|
59
61
|
n(o.$slots, "default"),
|
|
60
|
-
o.$slots.append || e.appendIcon ? (
|
|
61
|
-
e.appendIcon ? (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
t(
|
|
62
|
+
o.$slots.append || e.appendIcon ? (l(), s("div", $, [
|
|
63
|
+
e.appendIcon ? (l(), s("span", q, [
|
|
64
|
+
i(
|
|
65
|
+
r(u),
|
|
66
|
+
t(d(e.appendIcon)),
|
|
65
67
|
null,
|
|
66
68
|
16
|
|
67
69
|
/* FULL_PROPS */
|
|
68
70
|
)
|
|
69
|
-
])) :
|
|
71
|
+
])) : a("v-if", !0),
|
|
70
72
|
n(o.$slots, "append")
|
|
71
|
-
])) :
|
|
73
|
+
])) : a("v-if", !0)
|
|
72
74
|
]),
|
|
73
75
|
_: 2
|
|
74
76
|
/* DYNAMIC */
|
|
75
77
|
}, [
|
|
76
78
|
o.$slots.extras ? {
|
|
77
79
|
name: "extras",
|
|
78
|
-
fn:
|
|
80
|
+
fn: p(() => [
|
|
79
81
|
n(o.$slots, "extras")
|
|
80
82
|
]),
|
|
81
83
|
key: "0"
|
|
82
84
|
} : void 0
|
|
83
|
-
]), 1032, ["id", "class", "label", "required", "size", "invalid"]));
|
|
85
|
+
]), 1032, ["id", "class", "label", "label-position", "required", "size", "invalid"]));
|
|
84
86
|
}
|
|
85
87
|
});
|
|
86
88
|
export {
|
|
87
|
-
|
|
89
|
+
P as default
|
|
88
90
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/QLabel.vue"],"names":[],"mappings":"AAaA;
|
|
1
|
+
{"version":3,"file":"QLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/QLabel.vue"],"names":[],"mappings":"AAaA;AAmCC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAmB3C,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,39 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as a, computed as r, createElementBlock as n, openBlock as i, normalizeClass as d, renderSlot as o, createElementVNode as c, createTextVNode as p, toDisplayString as b } from "vue";
|
|
2
|
+
const u = ["id"], f = ["for"], q = /* @__PURE__ */ a({
|
|
3
3
|
__name: "QLabel",
|
|
4
4
|
props: {
|
|
5
5
|
id: {},
|
|
6
6
|
class: {},
|
|
7
7
|
label: {},
|
|
8
8
|
required: { type: Boolean },
|
|
9
|
-
for: {}
|
|
9
|
+
for: {},
|
|
10
|
+
labelPosition: {}
|
|
10
11
|
},
|
|
11
12
|
setup(s) {
|
|
12
|
-
const e = s,
|
|
13
|
+
const e = s, t = r(() => [
|
|
13
14
|
"q-label",
|
|
15
|
+
e.labelPosition ? `q-label--${e.labelPosition}` : "",
|
|
14
16
|
{
|
|
15
17
|
"q-label--required": e.required
|
|
16
18
|
},
|
|
17
19
|
e.class
|
|
18
20
|
]);
|
|
19
|
-
return (
|
|
21
|
+
return (l, m) => (i(), n("div", {
|
|
20
22
|
id: e.id,
|
|
21
|
-
class:
|
|
23
|
+
class: d(t.value)
|
|
22
24
|
}, [
|
|
23
|
-
l
|
|
24
|
-
|
|
25
|
+
o(l.$slots, "prepend"),
|
|
26
|
+
c("label", {
|
|
25
27
|
for: e.for
|
|
26
28
|
}, [
|
|
27
|
-
l
|
|
29
|
+
o(l.$slots, "default", {}, () => [
|
|
28
30
|
p(
|
|
29
|
-
|
|
31
|
+
b(e.label),
|
|
30
32
|
1
|
|
31
33
|
/* TEXT */
|
|
32
34
|
)
|
|
33
35
|
])
|
|
34
|
-
], 8,
|
|
35
|
-
l
|
|
36
|
-
], 10,
|
|
36
|
+
], 8, f),
|
|
37
|
+
o(l.$slots, "append")
|
|
38
|
+
], 10, u));
|
|
37
39
|
}
|
|
38
40
|
});
|
|
39
41
|
export {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { QBaseComponentProps } from '../../types/component';
|
|
2
|
+
export type QLabelPosition = 'left' | 'center' | 'right' | 'topleft' | 'topright';
|
|
2
3
|
export type QLabelProps = QBaseComponentProps & {
|
|
3
4
|
/**
|
|
4
5
|
* The label of the input.
|
|
@@ -19,5 +20,16 @@ export type QLabelProps = QBaseComponentProps & {
|
|
|
19
20
|
* @category Accessibility
|
|
20
21
|
*/
|
|
21
22
|
for?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Position of the label relative to the input field.
|
|
25
|
+
* - 'left': Label appears to the left of the input
|
|
26
|
+
* - 'center': Label appears above the input, centered
|
|
27
|
+
* - 'right': Label appears to the right of the input
|
|
28
|
+
* - 'topleft': Label appears above the input, aligned to the left
|
|
29
|
+
* - 'topright': Label appears above the input, aligned to the right
|
|
30
|
+
*
|
|
31
|
+
* @category Presentation
|
|
32
|
+
*/
|
|
33
|
+
labelPosition?: QLabelPosition;
|
|
22
34
|
};
|
|
23
35
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;AAEjF,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,cAAc,CAAA;CAC9B,CAAA"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, mergeModels as v, useModel as f, computed as t, toRef as p, createElementBlock as h, openBlock as q, normalizeClass as x, createElementVNode as o, createVNode as n, unref as u, normalizeStyle as y } from "vue";
|
|
2
2
|
import { QLabel as c } from "../QLabel/index.js";
|
|
3
3
|
import { useColor as L } from "../../composables/useColor/index.js";
|
|
4
|
-
const M = ["id"], C = { class: "q-meter__labels" }, V = { class: "q-meter__track" }, B = /* @__PURE__ */
|
|
4
|
+
const M = ["id"], C = { class: "q-meter__labels" }, V = { class: "q-meter__track" }, B = /* @__PURE__ */ b({
|
|
5
5
|
__name: "QMeter",
|
|
6
|
-
props: /* @__PURE__ */
|
|
6
|
+
props: /* @__PURE__ */ v({
|
|
7
7
|
id: {},
|
|
8
8
|
class: {},
|
|
9
9
|
label: {},
|
|
10
10
|
required: { type: Boolean },
|
|
11
11
|
for: {},
|
|
12
|
+
labelPosition: {},
|
|
12
13
|
valueLabel: {},
|
|
13
14
|
color: {},
|
|
14
15
|
max: { default: 100 }
|
|
@@ -18,11 +19,11 @@ const M = ["id"], C = { class: "q-meter__labels" }, V = { class: "q-meter__track
|
|
|
18
19
|
}),
|
|
19
20
|
emits: ["update:modelValue"],
|
|
20
21
|
setup(r) {
|
|
21
|
-
const e = r, s = f(r, "modelValue"),
|
|
22
|
+
const e = r, s = f(r, "modelValue"), i = t(() => s.value / e.max * 100), { style: m } = L(p(e, "color")), d = t(() => {
|
|
22
23
|
var a;
|
|
23
24
|
return {
|
|
24
|
-
width: `${Math.max(0, Math.min(
|
|
25
|
-
backgroundColor: (a =
|
|
25
|
+
width: `${Math.max(0, Math.min(i.value, 100))}%`,
|
|
26
|
+
backgroundColor: (a = m.value) == null ? void 0 : a.mainColor
|
|
26
27
|
};
|
|
27
28
|
}), _ = t(() => {
|
|
28
29
|
var l;
|
|
@@ -46,7 +47,7 @@ const M = ["id"], C = { class: "q-meter__labels" }, V = { class: "q-meter__track
|
|
|
46
47
|
"div",
|
|
47
48
|
{
|
|
48
49
|
class: "q-meter__fill",
|
|
49
|
-
style: y(
|
|
50
|
+
style: y(d.value)
|
|
50
51
|
},
|
|
51
52
|
null,
|
|
52
53
|
4
|
|
@@ -4,6 +4,7 @@ declare const QMeter: import('vue').DefineComponent<{
|
|
|
4
4
|
label?: string;
|
|
5
5
|
required?: boolean;
|
|
6
6
|
for?: string;
|
|
7
|
+
labelPosition?: import('..').QLabelPosition;
|
|
7
8
|
} & {
|
|
8
9
|
valueLabel?: string | ((value: number, max: number) => string);
|
|
9
10
|
color?: string;
|
|
@@ -16,6 +17,7 @@ declare const QMeter: import('vue').DefineComponent<{
|
|
|
16
17
|
label?: string;
|
|
17
18
|
required?: boolean;
|
|
18
19
|
for?: string;
|
|
20
|
+
labelPosition?: import('..').QLabelPosition;
|
|
19
21
|
} & {
|
|
20
22
|
valueLabel?: string | ((value: number, max: number) => string);
|
|
21
23
|
color?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;wFAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,cAAc,SAAS,CAAA"}
|