@quidgest/ui 0.14.18 → 0.14.20
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 +3 -0
- package/dist/ui.css +76 -26
- package/dist/ui.esm.js +5925 -5571
- package/dist/ui.js +16 -16
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +691 -666
- package/dist/ui.scss +80 -27
- package/esm/components/QBadge/QBadge.d.ts +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +42 -48
- package/esm/components/QBadge/index.d.ts +3 -3
- package/esm/components/QCombobox/QCombobox.d.ts +26 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +1 -0
- package/esm/components/QCombobox/index.d.ts +46 -3
- 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 +12 -10
- package/esm/components/QDateTimePicker/index.d.ts +6 -0
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts +1 -1
- package/esm/components/QDialog/index.d.ts +3 -3
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +2 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +13 -13
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +47 -39
- package/esm/components/QField/types.d.ts +6 -10
- package/esm/components/QField/types.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +15 -13
- package/esm/components/QFileUpload/index.d.ts +6 -0
- package/esm/components/QFileUpload/index.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +25 -17
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +9 -13
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +11 -15
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +15 -19
- package/esm/components/QIcon/types.d.ts +8 -4
- package/esm/components/QIcon/types.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts +2 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +40 -32
- package/esm/components/QInputGroup/index.d.ts +2 -0
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.d.ts +20 -0
- package/esm/components/QLabel/QLabel.d.ts.map +1 -0
- package/esm/components/QLabel/QLabel.vue.js +27 -0
- package/esm/components/QLabel/QLabel.vue2.js +4 -0
- package/esm/components/QLabel/index.d.ts +22 -0
- package/esm/components/QLabel/index.d.ts.map +1 -0
- package/esm/components/QLabel/index.js +6 -0
- package/esm/components/QLabel/types.d.ts +12 -0
- package/esm/components/QLabel/types.d.ts.map +1 -0
- package/esm/components/QList/QList.d.ts +2 -0
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +22 -21
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +22 -18
- package/esm/components/QList/index.d.ts +1 -0
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +4 -0
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.d.ts +14 -0
- package/esm/components/QMeter/QMeter.d.ts.map +1 -0
- package/esm/components/QMeter/QMeter.vue.js +60 -0
- package/esm/components/QMeter/QMeter.vue2.js +4 -0
- package/esm/components/QMeter/index.d.ts +29 -0
- package/esm/components/QMeter/index.d.ts.map +1 -0
- package/esm/components/QMeter/index.js +6 -0
- package/esm/components/QMeter/types.d.ts +20 -0
- package/esm/components/QMeter/types.d.ts.map +1 -0
- package/esm/components/QOverlay/index.d.ts +2 -0
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.d.ts +413 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -0
- package/esm/components/QPasswordField/QPasswordField.vue.js +162 -0
- package/esm/components/QPasswordField/QPasswordField.vue2.js +4 -0
- package/esm/components/QPasswordField/QPasswordFieldMessages.d.ts +4 -0
- package/esm/components/QPasswordField/QPasswordFieldMessages.d.ts.map +1 -0
- package/esm/components/QPasswordField/QPasswordFieldMessages.vue.js +28 -0
- package/esm/components/QPasswordField/QPasswordFieldMessages.vue2.js +4 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts +12 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts.map +1 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +97 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue2.js +4 -0
- package/esm/components/QPasswordField/constants.d.ts +9 -0
- package/esm/components/QPasswordField/constants.d.ts.map +1 -0
- package/esm/components/QPasswordField/constants.js +11 -0
- package/esm/components/QPasswordField/index.d.ts +264 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -0
- package/esm/components/QPasswordField/index.js +6 -0
- package/esm/components/QPasswordField/types.d.ts +100 -0
- package/esm/components/QPasswordField/types.d.ts.map +1 -0
- package/esm/components/QSelect/QSelect.d.ts +4 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +31 -29
- package/esm/components/QSelect/index.d.ts +8 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +10 -9
- package/esm/components/QTextArea/index.d.ts +6 -0
- package/esm/components/QTextArea/index.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.d.ts +2 -0
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +8 -6
- package/esm/components/QTextField/index.d.ts +9 -0
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/index.d.ts +3 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +51 -45
- package/esm/composables/useColorStyle/index.d.ts +11 -0
- package/esm/composables/useColorStyle/index.d.ts.map +1 -0
- package/esm/composables/useColorStyle/index.js +33 -0
- package/esm/composables/useColorStyle/types.d.ts +36 -0
- package/esm/composables/useColorStyle/types.d.ts.map +1 -0
- package/esm/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { defineComponent as u, ref as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class: "q-field__label"
|
|
5
|
-
}, b = ["for"], h = {
|
|
1
|
+
import { defineComponent as u, ref as m, computed as r, createElementBlock as o, openBlock as d, normalizeClass as q, createBlock as _, createCommentVNode as a, renderSlot as s, unref as v, withCtx as t, createElementVNode as b, mergeProps as y } from "vue";
|
|
2
|
+
import { QLabel as $ } from "../QLabel/index.js";
|
|
3
|
+
const k = ["id"], h = {
|
|
6
4
|
key: 0,
|
|
7
5
|
class: "q-field__prepend"
|
|
8
|
-
},
|
|
6
|
+
}, B = {
|
|
9
7
|
key: 1,
|
|
10
8
|
class: "q-field__append"
|
|
11
|
-
},
|
|
9
|
+
}, C = {
|
|
12
10
|
key: 1,
|
|
13
11
|
class: "q-field__extras"
|
|
14
|
-
},
|
|
12
|
+
}, N = /* @__PURE__ */ u({
|
|
15
13
|
inheritAttrs: !1,
|
|
16
14
|
__name: "QField",
|
|
17
15
|
props: {
|
|
@@ -22,59 +20,69 @@ const v = ["id"], $ = {
|
|
|
22
20
|
size: { default: "medium" },
|
|
23
21
|
readonly: { type: Boolean },
|
|
24
22
|
disabled: { type: Boolean },
|
|
25
|
-
required: { type: Boolean }
|
|
23
|
+
required: { type: Boolean },
|
|
24
|
+
invalid: { type: Boolean }
|
|
26
25
|
},
|
|
27
|
-
setup(n, { expose:
|
|
28
|
-
const e = n,
|
|
26
|
+
setup(n, { expose: p }) {
|
|
27
|
+
const e = n, i = m(null), f = r(() => e.required && !e.readonly && !e.disabled), c = r(() => [
|
|
29
28
|
"q-field",
|
|
30
29
|
`q-field--${e.size}`,
|
|
31
30
|
{
|
|
32
31
|
"q-field--readonly": e.readonly,
|
|
33
32
|
"q-field--disabled": e.disabled,
|
|
34
|
-
"q-field--required":
|
|
33
|
+
"q-field--required": f.value,
|
|
34
|
+
"q-field--invalid": e.invalid
|
|
35
35
|
},
|
|
36
36
|
e.class
|
|
37
37
|
]);
|
|
38
|
-
return
|
|
39
|
-
fieldRef:
|
|
40
|
-
}), (
|
|
38
|
+
return p({
|
|
39
|
+
fieldRef: i
|
|
40
|
+
}), (l, z) => (d(), o("div", {
|
|
41
41
|
id: e.id,
|
|
42
|
-
class:
|
|
42
|
+
class: q(c.value)
|
|
43
43
|
}, [
|
|
44
|
-
e.label ? (d(),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
e.label ? (d(), _(v($), {
|
|
45
|
+
key: 0,
|
|
46
|
+
class: "q-field__label",
|
|
47
|
+
label: e.label,
|
|
48
|
+
for: e.for
|
|
49
|
+
}, {
|
|
50
|
+
prepend: t(() => [
|
|
51
|
+
s(l.$slots, "label.prepend")
|
|
52
|
+
]),
|
|
53
|
+
append: t(() => [
|
|
54
|
+
s(l.$slots, "label.append")
|
|
55
|
+
]),
|
|
56
|
+
_: 3
|
|
57
|
+
/* FORWARDED */
|
|
58
|
+
}, 8, ["label", "for"])) : a("v-if", !0),
|
|
59
|
+
s(l.$slots, "control", {}, () => [
|
|
60
|
+
b(
|
|
53
61
|
"div",
|
|
54
62
|
y({
|
|
55
63
|
ref_key: "fieldRef",
|
|
56
|
-
ref:
|
|
64
|
+
ref: i,
|
|
57
65
|
class: "q-field__control"
|
|
58
|
-
},
|
|
66
|
+
}, l.$attrs),
|
|
59
67
|
[
|
|
60
|
-
|
|
61
|
-
l
|
|
62
|
-
])) :
|
|
63
|
-
l
|
|
64
|
-
|
|
65
|
-
l
|
|
66
|
-
])) :
|
|
68
|
+
l.$slots.prepend ? (d(), o("div", h, [
|
|
69
|
+
s(l.$slots, "prepend")
|
|
70
|
+
])) : a("v-if", !0),
|
|
71
|
+
s(l.$slots, "default"),
|
|
72
|
+
l.$slots.append ? (d(), o("div", B, [
|
|
73
|
+
s(l.$slots, "append")
|
|
74
|
+
])) : a("v-if", !0)
|
|
67
75
|
],
|
|
68
76
|
16
|
|
69
77
|
/* FULL_PROPS */
|
|
70
78
|
)
|
|
71
79
|
]),
|
|
72
|
-
|
|
73
|
-
l
|
|
74
|
-
])) :
|
|
75
|
-
], 10,
|
|
80
|
+
l.$slots.extras ? (d(), o("div", C, [
|
|
81
|
+
s(l.$slots, "extras")
|
|
82
|
+
])) : a("v-if", !0)
|
|
83
|
+
], 10, k));
|
|
76
84
|
}
|
|
77
85
|
});
|
|
78
86
|
export {
|
|
79
|
-
|
|
87
|
+
N as default
|
|
80
88
|
};
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QLabelProps } from '../QLabel';
|
|
2
2
|
export type QFieldSize = 'mini' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'block';
|
|
3
|
-
export type QFieldProps =
|
|
4
|
-
/**
|
|
5
|
-
* The label of the input.
|
|
6
|
-
*/
|
|
7
|
-
label?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The form field associated with the label.
|
|
10
|
-
*/
|
|
11
|
-
for?: string;
|
|
3
|
+
export type QFieldProps = QLabelProps & {
|
|
12
4
|
/**
|
|
13
5
|
* The size category of the field.
|
|
14
6
|
*/
|
|
@@ -26,5 +18,9 @@ export type QFieldProps = QBaseComponentProps & {
|
|
|
26
18
|
* to indicate that the field is required.
|
|
27
19
|
*/
|
|
28
20
|
required?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the input is invalid.
|
|
23
|
+
*/
|
|
24
|
+
invalid?: boolean;
|
|
29
25
|
};
|
|
30
26
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QField/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QField/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAE/F,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,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":"AAyFA;AAmOC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAYtD,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;WAsOT,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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as L, mergeModels as N, useModel as O, computed as d, ref as h, 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
|
|
1
|
+
import { defineComponent as L, mergeModels as N, useModel as O, computed as d, ref as h, 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 P } from "vue";
|
|
2
2
|
import { DEFAULT_TEXTS as $, DEFAULT_ICONS as H } from "./types.js";
|
|
3
3
|
import { QButton as b } from "../QButton/index.js";
|
|
4
4
|
import { QField as W } from "../QField/index.js";
|
|
@@ -33,6 +33,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
33
33
|
readonly: { type: Boolean },
|
|
34
34
|
disabled: { type: Boolean },
|
|
35
35
|
required: { type: Boolean },
|
|
36
|
+
invalid: { type: Boolean },
|
|
36
37
|
accept: {},
|
|
37
38
|
icons: { default: () => H },
|
|
38
39
|
texts: { default: () => $ }
|
|
@@ -49,16 +50,16 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
49
50
|
r.value = o ? URL.createObjectURL(l) : null;
|
|
50
51
|
});
|
|
51
52
|
const f = h(null);
|
|
52
|
-
function
|
|
53
|
+
function B() {
|
|
53
54
|
var l;
|
|
54
55
|
(l = f.value) == null || l.click();
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
+
function U(l) {
|
|
57
58
|
var C;
|
|
58
59
|
const o = l.target;
|
|
59
60
|
(C = o == null ? void 0 : o.files) != null && C[0] && (t.value = o.files[0]);
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
+
function V() {
|
|
62
63
|
t.value && J(t.value);
|
|
63
64
|
}
|
|
64
65
|
function D() {
|
|
@@ -90,7 +91,8 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
90
91
|
size: e.size,
|
|
91
92
|
readonly: e.readonly,
|
|
92
93
|
disabled: e.disabled,
|
|
93
|
-
required: e.required
|
|
94
|
+
required: e.required,
|
|
95
|
+
invalid: e.invalid
|
|
94
96
|
}, Z({
|
|
95
97
|
control: _(() => [
|
|
96
98
|
a(
|
|
@@ -111,11 +113,11 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
111
113
|
required: e.required,
|
|
112
114
|
readonly: e.readonly,
|
|
113
115
|
disabled: e.disabled
|
|
114
|
-
}, l.$attrs, { onChange:
|
|
116
|
+
}, l.$attrs, { onChange: U }), null, 16, K),
|
|
115
117
|
!t.value && p.value ? (n(), c("div", Y, [
|
|
116
118
|
s(
|
|
117
119
|
i(u),
|
|
118
|
-
m(
|
|
120
|
+
v(m(e.icons.upload)),
|
|
119
121
|
null,
|
|
120
122
|
16
|
|
121
123
|
/* FULL_PROPS */
|
|
@@ -129,7 +131,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
129
131
|
),
|
|
130
132
|
s(i(b), {
|
|
131
133
|
label: e.texts.chooseFile,
|
|
132
|
-
onClick:
|
|
134
|
+
onClick: B
|
|
133
135
|
}, null, 8, ["label"])
|
|
134
136
|
])) : t.value ? (n(), c("div", ee, [
|
|
135
137
|
a("div", le, [
|
|
@@ -169,12 +171,12 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
169
171
|
s(i(b), {
|
|
170
172
|
title: e.texts.download,
|
|
171
173
|
borderless: "",
|
|
172
|
-
onClick:
|
|
174
|
+
onClick: V
|
|
173
175
|
}, {
|
|
174
176
|
default: _(() => [
|
|
175
177
|
s(
|
|
176
178
|
i(u),
|
|
177
|
-
m(
|
|
179
|
+
v(m(e.icons.download)),
|
|
178
180
|
null,
|
|
179
181
|
16
|
|
180
182
|
/* FULL_PROPS */
|
|
@@ -191,7 +193,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
191
193
|
default: _(() => [
|
|
192
194
|
s(
|
|
193
195
|
i(u),
|
|
194
|
-
m(
|
|
196
|
+
v(m(e.icons.remove)),
|
|
195
197
|
null,
|
|
196
198
|
16
|
|
197
199
|
/* FULL_PROPS */
|
|
@@ -204,7 +206,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
204
206
|
])) : (n(), c("div", re, [
|
|
205
207
|
s(
|
|
206
208
|
i(u),
|
|
207
|
-
m(
|
|
209
|
+
v(m(e.icons.empty)),
|
|
208
210
|
null,
|
|
209
211
|
16
|
|
210
212
|
/* FULL_PROPS */
|
|
@@ -230,7 +232,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
230
232
|
]),
|
|
231
233
|
key: "0"
|
|
232
234
|
} : void 0
|
|
233
|
-
]), 1032, ["for", "label", "size", "readonly", "disabled", "required"]));
|
|
235
|
+
]), 1032, ["for", "label", "size", "readonly", "disabled", "required", "invalid"]));
|
|
234
236
|
}
|
|
235
237
|
});
|
|
236
238
|
export {
|
|
@@ -5,10 +5,12 @@ declare const QFileUpload: {
|
|
|
5
5
|
} & import('../../types/component').QBaseComponentProps & {
|
|
6
6
|
label?: string;
|
|
7
7
|
for?: string;
|
|
8
|
+
} & {
|
|
8
9
|
size?: import('..').QFieldSize;
|
|
9
10
|
readonly?: boolean;
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
required?: boolean;
|
|
13
|
+
invalid?: boolean;
|
|
12
14
|
} & {
|
|
13
15
|
accept?: string | string[];
|
|
14
16
|
icons?: typeof import('./types').DEFAULT_ICONS;
|
|
@@ -36,10 +38,12 @@ declare const QFileUpload: {
|
|
|
36
38
|
} & import('../../types/component').QBaseComponentProps & {
|
|
37
39
|
label?: string;
|
|
38
40
|
for?: string;
|
|
41
|
+
} & {
|
|
39
42
|
size?: import('..').QFieldSize;
|
|
40
43
|
readonly?: boolean;
|
|
41
44
|
disabled?: boolean;
|
|
42
45
|
required?: boolean;
|
|
46
|
+
invalid?: boolean;
|
|
43
47
|
} & {
|
|
44
48
|
accept?: string | string[];
|
|
45
49
|
icons?: typeof import('./types').DEFAULT_ICONS;
|
|
@@ -59,10 +63,12 @@ declare const QFileUpload: {
|
|
|
59
63
|
} & import('../../types/component').QBaseComponentProps & {
|
|
60
64
|
label?: string;
|
|
61
65
|
for?: string;
|
|
66
|
+
} & {
|
|
62
67
|
size?: import('..').QFieldSize;
|
|
63
68
|
readonly?: boolean;
|
|
64
69
|
disabled?: boolean;
|
|
65
70
|
required?: boolean;
|
|
71
|
+
invalid?: boolean;
|
|
66
72
|
} & {
|
|
67
73
|
accept?: string | string[];
|
|
68
74
|
icons?: typeof import('./types').DEFAULT_ICONS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAA;AAGjD,OAAO,EAAE,WAAW,EAAE,CAAA;AAGtB,YAAY,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIcon.vue"],"names":[],"mappings":"AAQA;
|
|
1
|
+
{"version":3,"file":"QIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIcon.vue"],"names":[],"mappings":"AAQA;AAwDC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;;;;AA4F1C,wBAQG"}
|
|
@@ -1,35 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QIconImg as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as s, computed as n, toRef as i, createBlock as a, openBlock as u, resolveDynamicComponent as d, normalizeStyle as m, normalizeClass as p } from "vue";
|
|
2
|
+
import { QIconImg as f, QIconFont as y, QIconSvg as v } from "./index.js";
|
|
3
|
+
import { useColorStyle as g } from "../../composables/useColorStyle/index.js";
|
|
4
|
+
const S = /* @__PURE__ */ s({
|
|
4
5
|
__name: "QIcon",
|
|
5
6
|
props: {
|
|
6
7
|
id: {},
|
|
7
8
|
class: {},
|
|
8
9
|
icon: {},
|
|
10
|
+
type: { default: "svg" },
|
|
9
11
|
size: {},
|
|
10
|
-
|
|
12
|
+
color: {}
|
|
11
13
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
switch (
|
|
14
|
+
setup(c) {
|
|
15
|
+
const o = c, t = n(() => {
|
|
16
|
+
switch (o.type) {
|
|
15
17
|
case "svg":
|
|
16
|
-
return
|
|
18
|
+
return v;
|
|
17
19
|
case "font":
|
|
18
|
-
return
|
|
20
|
+
return y;
|
|
19
21
|
case "img":
|
|
20
|
-
return
|
|
22
|
+
return f;
|
|
21
23
|
default:
|
|
22
24
|
return;
|
|
23
25
|
}
|
|
26
|
+
}), l = g(i(o, "color"), "bold"), r = n(() => {
|
|
27
|
+
var e;
|
|
28
|
+
return {
|
|
29
|
+
"font-size": o.size !== void 0 ? `${o.size}px` : void 0,
|
|
30
|
+
color: o.color !== void 0 && o.color !== "primary" ? (e = l.style.value) == null ? void 0 : e.backgroundColor : void 0
|
|
31
|
+
};
|
|
24
32
|
});
|
|
25
|
-
return (
|
|
26
|
-
id:
|
|
27
|
-
class:
|
|
28
|
-
icon:
|
|
29
|
-
|
|
30
|
-
}, null, 8, ["id", "class", "icon", "
|
|
33
|
+
return (e, z) => (u(), a(d(t.value), {
|
|
34
|
+
id: o.id,
|
|
35
|
+
class: p(o.class),
|
|
36
|
+
icon: o.icon,
|
|
37
|
+
style: m(r.value)
|
|
38
|
+
}, null, 8, ["id", "class", "icon", "style"]));
|
|
31
39
|
}
|
|
32
40
|
});
|
|
33
41
|
export {
|
|
34
|
-
|
|
42
|
+
S as default
|
|
35
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont.vue"],"names":[],"mappings":"AAMA;AA+BC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;;;;AAgE9C,wBAQG"}
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as t, computed as n, createElementBlock as e, openBlock as c, normalizeClass as l } from "vue";
|
|
2
|
+
const s = ["id"], d = /* @__PURE__ */ t({
|
|
3
3
|
__name: "QIconFont",
|
|
4
4
|
props: {
|
|
5
5
|
id: {},
|
|
6
6
|
class: {},
|
|
7
7
|
icon: {},
|
|
8
|
-
size: {},
|
|
9
8
|
library: { default: "" },
|
|
10
9
|
variant: {}
|
|
11
10
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class: u(["q-icon", "q-icon__font", r.value, t.value, n.class]),
|
|
19
|
-
style: l(o.value)
|
|
20
|
-
}, null, 14, d));
|
|
11
|
+
setup(a) {
|
|
12
|
+
const r = a, i = n(() => r.variant ? `${r.library}-${r.variant}` : r.library), o = n(() => r.library && r.icon ? `${r.library}-${r.icon}` : r.icon);
|
|
13
|
+
return (u, p) => (c(), e("i", {
|
|
14
|
+
id: r.id,
|
|
15
|
+
class: l(["q-icon", "q-icon__font", i.value, o.value, r.class])
|
|
16
|
+
}, null, 10, s));
|
|
21
17
|
}
|
|
22
18
|
});
|
|
23
19
|
export {
|
|
24
|
-
|
|
20
|
+
d as default
|
|
25
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QIconImg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconImg.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QIconImg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconImg.vue"],"names":[],"mappings":"AAMA;AAgBC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;;AA4C9C,wBAOG"}
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as n, createElementBlock as s, openBlock as e, normalizeClass as i } from "vue";
|
|
2
|
+
const t = ["id", "src"], m = /* @__PURE__ */ n({
|
|
3
3
|
__name: "QIconImg",
|
|
4
4
|
props: {
|
|
5
5
|
id: {},
|
|
6
6
|
class: {},
|
|
7
|
-
icon: {}
|
|
8
|
-
size: {}
|
|
7
|
+
icon: {}
|
|
9
8
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class: r(["q-icon", "q-icon__img", e.class]),
|
|
18
|
-
style: l(o.value)
|
|
19
|
-
}, null, 14, a));
|
|
9
|
+
setup(o) {
|
|
10
|
+
const c = o;
|
|
11
|
+
return (r, a) => (e(), s("img", {
|
|
12
|
+
id: c.id,
|
|
13
|
+
src: c.icon,
|
|
14
|
+
class: i(["q-icon", "q-icon__img", c.class])
|
|
15
|
+
}, null, 10, t));
|
|
20
16
|
}
|
|
21
17
|
});
|
|
22
18
|
export {
|
|
23
|
-
|
|
19
|
+
m as default
|
|
24
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QIconSvg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconSvg.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QIconSvg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconSvg.vue"],"names":[],"mappings":"AASA;AAwCC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;AA2F7C,wBASG"}
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as a, createBlock as i, openBlock as t, unref as r, normalizeClass as m } from "vue";
|
|
2
|
+
import u from "./InlineSvg.js";
|
|
3
|
+
const b = /* @__PURE__ */ a({
|
|
4
4
|
__name: "QIconSvg",
|
|
5
5
|
props: {
|
|
6
6
|
id: {},
|
|
7
7
|
class: {},
|
|
8
8
|
icon: {},
|
|
9
|
-
size: {},
|
|
10
9
|
bundle: { default: "" }
|
|
11
10
|
},
|
|
12
11
|
emits: ["loaded", "unloaded"],
|
|
13
|
-
setup(s, { emit:
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
function c(o) {
|
|
18
|
-
n("loaded", o);
|
|
12
|
+
setup(s, { emit: c }) {
|
|
13
|
+
const o = s, n = c;
|
|
14
|
+
function l(e) {
|
|
15
|
+
n("loaded", e);
|
|
19
16
|
}
|
|
20
17
|
function d() {
|
|
21
18
|
n("unloaded");
|
|
22
19
|
}
|
|
23
|
-
return (
|
|
24
|
-
id:
|
|
25
|
-
class:
|
|
26
|
-
src:
|
|
27
|
-
symbol:
|
|
28
|
-
|
|
29
|
-
onLoaded: c,
|
|
20
|
+
return (e, p) => (t(), i(r(u), {
|
|
21
|
+
id: o.id,
|
|
22
|
+
class: m(["q-icon", "q-icon__svg", o.class]),
|
|
23
|
+
src: o.bundle,
|
|
24
|
+
symbol: o.icon,
|
|
25
|
+
onLoaded: l,
|
|
30
26
|
onUnloaded: d
|
|
31
|
-
}, null, 8, ["id", "class", "src", "symbol"
|
|
27
|
+
}, null, 8, ["id", "class", "src", "symbol"]));
|
|
32
28
|
}
|
|
33
29
|
});
|
|
34
30
|
export {
|
|
35
|
-
|
|
31
|
+
b as default
|
|
36
32
|
};
|
|
@@ -7,16 +7,20 @@ export type QIconBaseProps = QBaseComponentProps & {
|
|
|
7
7
|
* - The identifier of the SVG.
|
|
8
8
|
*/
|
|
9
9
|
icon: string;
|
|
10
|
-
/**
|
|
11
|
-
* The size of the icon, in pixels.
|
|
12
|
-
*/
|
|
13
|
-
size?: number;
|
|
14
10
|
};
|
|
15
11
|
export type QIconProps = QIconBaseProps & {
|
|
16
12
|
/**
|
|
17
13
|
* The type of resource.
|
|
18
14
|
*/
|
|
19
15
|
type?: 'svg' | 'font' | 'img';
|
|
16
|
+
/**
|
|
17
|
+
* The size of the icon, in pixels.
|
|
18
|
+
*/
|
|
19
|
+
size?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Color value to control the icon's fill color.
|
|
22
|
+
*/
|
|
23
|
+
color?: string;
|
|
20
24
|
};
|
|
21
25
|
export type QIconFontProps = QIconBaseProps & {
|
|
22
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;IAE7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAA;AAE1C,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CACf,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":"AAsCA;AAmEC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAqBhD,iBAAS,cAAc;WA8GT,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"}
|