@espri/vue-components 2.4.3 → 2.4.4
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/checkbox.css +1 -1
- package/dist/checkbox.es.js +23 -22
- package/dist/date-picker.css +1 -1
- package/dist/date-picker.es.js +25 -25
- package/dist/input-number.css +1 -1
- package/dist/input-number.es.js +22 -24
- package/dist/input-password.css +1 -1
- package/dist/input-password.es.js +18 -20
- package/dist/input-text.css +1 -1
- package/dist/input-text.es.js +17 -19
- package/dist/multi-select.css +1 -1
- package/dist/multi-select.es.js +10 -8
- package/dist/select.css +1 -1
- package/dist/select.es.js +21 -21
- package/dist/types/checkbox/interfaces/checkbox-props.interface.d.ts +4 -0
- package/dist/types/date-picker/interfaces/date-picker-props.interface.d.ts +4 -0
- package/dist/types/input-number/interfaces/input-number-props.interface.d.ts +1 -1
- package/dist/types/input-password/interfaces/input-password-props.interface.d.ts +1 -1
- package/dist/types/multi-select/interfaces/multi-select-props.interface.d.ts +4 -0
- package/dist/types/select/interfaces/select-props.interface.d.ts +5 -1
- package/package.json +2 -2
package/dist/checkbox.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.error[data-v-
|
|
1
|
+
.error[data-v-14fb5088]{color:var(--p-floatlabel-invalid-color, var(--p-red-600))}
|
package/dist/checkbox.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as V, computed as n, openBlock as i, createElementBlock as
|
|
2
|
-
import { Checkbox as
|
|
3
|
-
import { _ as
|
|
4
|
-
import './checkbox.css';const
|
|
1
|
+
import { defineComponent as V, computed as n, openBlock as i, createElementBlock as u, createElementVNode as d, createVNode as _, unref as s, normalizeClass as b, toDisplayString as c, createCommentVNode as C } from "vue";
|
|
2
|
+
import { Checkbox as h } from "primevue";
|
|
3
|
+
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
import './checkbox.css';const k = { class: "flex items-center gap-2" }, g = ["for"], y = { class: "error" }, E = /* @__PURE__ */ V({
|
|
5
5
|
__name: "checkbox",
|
|
6
6
|
props: {
|
|
7
7
|
label: {},
|
|
@@ -9,6 +9,7 @@ import './checkbox.css';const C = { class: "flex items-center gap-2" }, g = ["fo
|
|
|
9
9
|
trueValue: {},
|
|
10
10
|
falseValue: {},
|
|
11
11
|
class: {},
|
|
12
|
+
inputClass: {},
|
|
12
13
|
disabled: { type: Boolean },
|
|
13
14
|
required: { type: Boolean },
|
|
14
15
|
showError: { type: Boolean },
|
|
@@ -17,37 +18,37 @@ import './checkbox.css';const C = { class: "flex items-center gap-2" }, g = ["fo
|
|
|
17
18
|
},
|
|
18
19
|
emits: ["update:modelValue"],
|
|
19
20
|
setup(m, { emit: p }) {
|
|
20
|
-
const e = m, f = p,
|
|
21
|
+
const e = m, f = p, o = Math.random().toString(16).slice(2), t = n({
|
|
21
22
|
get() {
|
|
22
23
|
return e.modelValue;
|
|
23
24
|
},
|
|
24
|
-
set(
|
|
25
|
-
f("update:modelValue",
|
|
25
|
+
set(a) {
|
|
26
|
+
f("update:modelValue", a);
|
|
26
27
|
}
|
|
27
28
|
}), r = n(() => e.showError && e.rules?.find((l) => l?.$invalid && l?.$message)?.$message || "");
|
|
28
|
-
return (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
29
|
+
return (a, l) => (i(), u("div", null, [
|
|
30
|
+
d("div", k, [
|
|
31
|
+
_(s(h), {
|
|
32
|
+
modelValue: t.value,
|
|
33
|
+
"onUpdate:modelValue": l[0] || (l[0] = (v) => t.value = v),
|
|
34
|
+
"input-id": s(o),
|
|
35
|
+
"input-class": e.inputClass ? { [e.inputClass]: !0 } : void 0,
|
|
36
|
+
class: b(e.class),
|
|
36
37
|
invalid: !!r.value,
|
|
37
38
|
"false-value": e.falseValue,
|
|
38
39
|
"true-value": e.trueValue,
|
|
39
40
|
disabled: e.disabled,
|
|
40
41
|
binary: ""
|
|
41
|
-
}, null, 8, ["modelValue", "input-id", "invalid", "false-value", "true-value", "disabled"]),
|
|
42
|
-
e.label ? (i(),
|
|
42
|
+
}, null, 8, ["modelValue", "input-id", "input-class", "class", "invalid", "false-value", "true-value", "disabled"]),
|
|
43
|
+
e.label ? (i(), u("label", {
|
|
43
44
|
key: 0,
|
|
44
|
-
for:
|
|
45
|
-
}, c(e.label), 9, g)) :
|
|
45
|
+
for: s(o)
|
|
46
|
+
}, c(e.label), 9, g)) : C("", !0)
|
|
46
47
|
]),
|
|
47
|
-
|
|
48
|
-
]
|
|
48
|
+
d("small", y, c(r.value), 1)
|
|
49
|
+
]));
|
|
49
50
|
}
|
|
50
|
-
}), B = /* @__PURE__ */
|
|
51
|
+
}), B = /* @__PURE__ */ x(E, [["__scopeId", "data-v-14fb5088"]]), z = B;
|
|
51
52
|
export {
|
|
52
53
|
z as default
|
|
53
54
|
};
|
package/dist/date-picker.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.error[data-v-
|
|
1
|
+
.error[data-v-884590ec]{color:var(--p-floatlabel-invalid-color, var(--p-red-600))}
|
package/dist/date-picker.es.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Skeleton as B, FloatLabel as
|
|
3
|
-
import { _ as
|
|
4
|
-
import './date-picker.css';const w = ["for"], D = { key: 0 }, N = { class: "error" },
|
|
1
|
+
import { defineComponent as V, computed as n, openBlock as a, createElementBlock as i, createBlock as c, unref as t, withCtx as v, createVNode as h, normalizeClass as y, createElementVNode as u, createTextVNode as b, toDisplayString as m, createCommentVNode as g } from "vue";
|
|
2
|
+
import { Skeleton as B, FloatLabel as C, DatePicker as E } from "primevue";
|
|
3
|
+
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
import './date-picker.css';const w = ["for"], D = { key: 0 }, N = { class: "error" }, F = /* @__PURE__ */ V({
|
|
5
5
|
__name: "date-picker",
|
|
6
6
|
props: {
|
|
7
7
|
label: {},
|
|
8
8
|
modelValue: {},
|
|
9
9
|
class: {},
|
|
10
|
+
inputClass: {},
|
|
10
11
|
disabled: { type: Boolean },
|
|
11
12
|
required: { type: Boolean },
|
|
12
13
|
loading: { type: Boolean },
|
|
@@ -16,47 +17,46 @@ import './date-picker.css';const w = ["for"], D = { key: 0 }, N = { class: "erro
|
|
|
16
17
|
placeholder: {}
|
|
17
18
|
},
|
|
18
19
|
emits: ["update:modelValue"],
|
|
19
|
-
setup(
|
|
20
|
-
const e =
|
|
20
|
+
setup(p, { emit: f }) {
|
|
21
|
+
const e = p, _ = f, s = Math.random().toString(16).slice(2), r = n({
|
|
21
22
|
get() {
|
|
22
23
|
return e.modelValue;
|
|
23
24
|
},
|
|
24
25
|
set(o) {
|
|
25
|
-
|
|
26
|
+
_("update:modelValue", o);
|
|
26
27
|
}
|
|
27
28
|
}), d = n(() => e.showError && e.rules?.find((l) => l?.$invalid && l?.$message)?.$message || "");
|
|
28
|
-
return (o, l) => (a(), i("div",
|
|
29
|
-
|
|
30
|
-
}, [
|
|
31
|
-
e.loading ? (a(), m(t(B), {
|
|
29
|
+
return (o, l) => (a(), i("div", null, [
|
|
30
|
+
e.loading ? (a(), c(t(B), {
|
|
32
31
|
key: 0,
|
|
33
32
|
class: "skeleton-input mt-3"
|
|
34
|
-
})) : (a(),
|
|
33
|
+
})) : (a(), c(t(C), {
|
|
35
34
|
key: 1,
|
|
36
35
|
class: "mt-3"
|
|
37
36
|
}, {
|
|
38
|
-
default:
|
|
39
|
-
|
|
40
|
-
modelValue:
|
|
41
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
42
|
-
class:
|
|
37
|
+
default: v(() => [
|
|
38
|
+
h(t(E), {
|
|
39
|
+
modelValue: r.value,
|
|
40
|
+
"onUpdate:modelValue": l[0] || (l[0] = (k) => r.value = k),
|
|
41
|
+
class: y(["w-full", e.class]),
|
|
43
42
|
invalid: !!d.value,
|
|
44
43
|
disabled: e.disabled,
|
|
45
44
|
placeholder: e.placeholder,
|
|
46
|
-
"input-id": t(
|
|
47
|
-
"date-format": e.dateFormat || "dd/mm/yy"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
"input-id": t(s),
|
|
46
|
+
"date-format": e.dateFormat || "dd/mm/yy",
|
|
47
|
+
"input-class": e.inputClass
|
|
48
|
+
}, null, 8, ["modelValue", "class", "invalid", "disabled", "placeholder", "input-id", "date-format", "input-class"]),
|
|
49
|
+
u("label", { for: t(s) }, [
|
|
50
|
+
b(m(e.label), 1),
|
|
51
51
|
e.required ? (a(), i("span", D, " *")) : g("", !0)
|
|
52
52
|
], 8, w)
|
|
53
53
|
]),
|
|
54
54
|
_: 1
|
|
55
55
|
})),
|
|
56
|
-
u("small", N,
|
|
57
|
-
]
|
|
56
|
+
u("small", N, m(d.value), 1)
|
|
57
|
+
]));
|
|
58
58
|
}
|
|
59
|
-
}),
|
|
59
|
+
}), P = /* @__PURE__ */ x(F, [["__scopeId", "data-v-884590ec"]]), R = P;
|
|
60
60
|
export {
|
|
61
61
|
R as default
|
|
62
62
|
};
|
package/dist/input-number.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.error[data-v-
|
|
1
|
+
.error[data-v-62ab020d]{color:var(--p-floatlabel-invalid-color, var(--p-red-600))}
|
package/dist/input-number.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, computed as m, openBlock as i, createElementBlock as d, createBlock as u, unref as l, withCtx as _, createVNode as g, normalizeClass as V, createElementVNode as c, createTextVNode as v, toDisplayString as p, createCommentVNode as h } from "vue";
|
|
2
2
|
import { Skeleton as k, FloatLabel as B, InputNumber as C } from "primevue";
|
|
3
3
|
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
import './input-number.css';const E = ["for"], D = { key: 0 }, F = { class: "error" },
|
|
4
|
+
import './input-number.css';const E = ["for"], D = { key: 0 }, F = { class: "error" }, S = /* @__PURE__ */ y({
|
|
5
5
|
__name: "input-number",
|
|
6
6
|
props: {
|
|
7
7
|
label: {},
|
|
@@ -24,30 +24,28 @@ import './input-number.css';const E = ["for"], D = { key: 0 }, F = { class: "err
|
|
|
24
24
|
placeholder: {}
|
|
25
25
|
},
|
|
26
26
|
emits: ["update:modelValue"],
|
|
27
|
-
setup(
|
|
28
|
-
const e =
|
|
27
|
+
setup(f, { emit: x }) {
|
|
28
|
+
const e = f, a = x, n = Math.random().toString(16).slice(2), s = m({
|
|
29
29
|
get() {
|
|
30
|
-
return (e.modelValue || e.modelValue === 0) && (typeof e.min == "number" && e.modelValue < e.min || typeof e.max == "number" && e.modelValue > e.max) ? (
|
|
30
|
+
return (e.modelValue || e.modelValue === 0) && (typeof e.min == "number" && e.modelValue < e.min || typeof e.max == "number" && e.modelValue > e.max) ? (a("update:modelValue", null), null) : e.modelValue;
|
|
31
31
|
},
|
|
32
32
|
set(t) {
|
|
33
|
-
(t || t === 0) && (typeof e.min == "number" && t < e.min || typeof e.max == "number" && t > e.max) && (t = null),
|
|
33
|
+
(t || t === 0) && (typeof e.min == "number" && t < e.min || typeof e.max == "number" && t > e.max) && (t = null), a("update:modelValue", t);
|
|
34
34
|
}
|
|
35
|
-
}), r = m(() => e.showError && e.rules?.find((
|
|
36
|
-
return (t,
|
|
37
|
-
|
|
38
|
-
}, [
|
|
39
|
-
e.loading ? (a(), c(o(k), {
|
|
35
|
+
}), r = m(() => e.showError && e.rules?.find((o) => o?.$invalid && o?.$message)?.$message || "");
|
|
36
|
+
return (t, o) => (i(), d("div", null, [
|
|
37
|
+
e.loading ? (i(), u(l(k), {
|
|
40
38
|
key: 0,
|
|
41
39
|
class: "skeleton-input mt-3"
|
|
42
|
-
})) : (
|
|
40
|
+
})) : (i(), u(l(B), {
|
|
43
41
|
key: 1,
|
|
44
42
|
class: "mt-3"
|
|
45
43
|
}, {
|
|
46
|
-
default:
|
|
47
|
-
|
|
48
|
-
modelValue:
|
|
49
|
-
"onUpdate:modelValue":
|
|
50
|
-
class:
|
|
44
|
+
default: _(() => [
|
|
45
|
+
g(l(C), {
|
|
46
|
+
modelValue: s.value,
|
|
47
|
+
"onUpdate:modelValue": o[0] || (o[0] = (b) => s.value = b),
|
|
48
|
+
class: V(["w-full", e.class]),
|
|
51
49
|
min: e.min,
|
|
52
50
|
max: e.max,
|
|
53
51
|
mode: e.mode,
|
|
@@ -60,19 +58,19 @@ import './input-number.css';const E = ["for"], D = { key: 0 }, F = { class: "err
|
|
|
60
58
|
"input-class": e.inputClass,
|
|
61
59
|
disabled: e.disabled,
|
|
62
60
|
placeholder: e.placeholder,
|
|
63
|
-
"input-id":
|
|
61
|
+
"input-id": l(n)
|
|
64
62
|
}, null, 8, ["modelValue", "min", "max", "mode", "step", "min-fraction-digits", "max-fraction-digits", "currency", "suffix", "invalid", "class", "input-class", "disabled", "placeholder", "input-id"]),
|
|
65
|
-
|
|
66
|
-
v(
|
|
67
|
-
e.required ? (
|
|
63
|
+
c("label", { for: l(n) }, [
|
|
64
|
+
v(p(e.label), 1),
|
|
65
|
+
e.required ? (i(), d("span", D, " *")) : h("", !0)
|
|
68
66
|
], 8, E)
|
|
69
67
|
]),
|
|
70
68
|
_: 1
|
|
71
69
|
})),
|
|
72
|
-
|
|
73
|
-
]
|
|
70
|
+
c("small", F, p(r.value), 1)
|
|
71
|
+
]));
|
|
74
72
|
}
|
|
75
|
-
}),
|
|
73
|
+
}), T = /* @__PURE__ */ N(S, [["__scopeId", "data-v-62ab020d"]]), R = T;
|
|
76
74
|
export {
|
|
77
75
|
R as default
|
|
78
76
|
};
|
package/dist/input-password.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.error[data-v-
|
|
1
|
+
.error[data-v-8a4b20d3]{color:var(--p-floatlabel-invalid-color, var(--p-red-600))}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Skeleton as
|
|
1
|
+
import { defineComponent as h, computed as r, openBlock as o, createElementBlock as i, createBlock as p, unref as a, withCtx as k, createVNode as y, normalizeClass as w, createElementVNode as u, createTextVNode as V, toDisplayString as c, createCommentVNode as b } from "vue";
|
|
2
|
+
import { Skeleton as v, FloatLabel as B, Password as x } from "primevue";
|
|
3
3
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
import './input-password.css';const P = ["for"], E = { key: 0 }, N = { class: "error" },
|
|
4
|
+
import './input-password.css';const P = ["for"], E = { key: 0 }, N = { class: "error" }, F = /* @__PURE__ */ h({
|
|
5
5
|
__name: "input-password",
|
|
6
6
|
props: {
|
|
7
7
|
label: {},
|
|
@@ -19,30 +19,28 @@ import './input-password.css';const P = ["for"], E = { key: 0 }, N = { class: "e
|
|
|
19
19
|
displayPasswordToggle: { type: Boolean }
|
|
20
20
|
},
|
|
21
21
|
emits: ["update:modelValue"],
|
|
22
|
-
setup(
|
|
23
|
-
const e =
|
|
22
|
+
setup(m, { emit: g }) {
|
|
23
|
+
const e = m, f = g, t = Math.random().toString(16).slice(2), d = r({
|
|
24
24
|
get() {
|
|
25
25
|
return e.modelValue;
|
|
26
26
|
},
|
|
27
27
|
set(s) {
|
|
28
|
-
|
|
28
|
+
f("update:modelValue", s);
|
|
29
29
|
}
|
|
30
30
|
}), n = r(() => e.showError && e.rules?.find((l) => l?.$invalid && l?.$message)?.$message || "");
|
|
31
|
-
return (s, l) => (o(), i("div",
|
|
32
|
-
|
|
33
|
-
}, [
|
|
34
|
-
e.loading ? (o(), c(a(B), {
|
|
31
|
+
return (s, l) => (o(), i("div", null, [
|
|
32
|
+
e.loading ? (o(), p(a(v), {
|
|
35
33
|
key: 0,
|
|
36
34
|
class: "skeleton-input mt-3"
|
|
37
|
-
})) : (o(),
|
|
35
|
+
})) : (o(), p(a(B), {
|
|
38
36
|
key: 1,
|
|
39
37
|
class: "mt-3"
|
|
40
38
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
|
|
39
|
+
default: k(() => [
|
|
40
|
+
y(a(x), {
|
|
43
41
|
modelValue: d.value,
|
|
44
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
45
|
-
class:
|
|
42
|
+
"onUpdate:modelValue": l[0] || (l[0] = (_) => d.value = _),
|
|
43
|
+
class: w(["w-full", e.class]),
|
|
46
44
|
"input-class": e.inputClass,
|
|
47
45
|
invalid: !!n.value,
|
|
48
46
|
maxlength: e.maxlength,
|
|
@@ -53,16 +51,16 @@ import './input-password.css';const P = ["for"], E = { key: 0 }, N = { class: "e
|
|
|
53
51
|
"input-id": a(t)
|
|
54
52
|
}, null, 8, ["modelValue", "class", "input-class", "invalid", "maxlength", "feedback", "toggle-mask", "disabled", "placeholder", "input-id"]),
|
|
55
53
|
u("label", { for: a(t) }, [
|
|
56
|
-
V(
|
|
57
|
-
e.required ? (o(), i("span", E, " *")) :
|
|
54
|
+
V(c(e.label), 1),
|
|
55
|
+
e.required ? (o(), i("span", E, " *")) : b("", !0)
|
|
58
56
|
], 8, P)
|
|
59
57
|
]),
|
|
60
58
|
_: 1
|
|
61
59
|
})),
|
|
62
|
-
u("small", N,
|
|
63
|
-
]
|
|
60
|
+
u("small", N, c(n.value), 1)
|
|
61
|
+
]));
|
|
64
62
|
}
|
|
65
|
-
}),
|
|
63
|
+
}), I = /* @__PURE__ */ C(F, [["__scopeId", "data-v-8a4b20d3"]]), q = I;
|
|
66
64
|
export {
|
|
67
65
|
q as default
|
|
68
66
|
};
|
package/dist/input-text.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.error[data-v-
|
|
1
|
+
.error[data-v-40b19f93]{color:var(--p-floatlabel-invalid-color, var(--p-red-600))}
|
package/dist/input-text.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, computed as d, openBlock as o, createElementBlock as i, createBlock as u, unref as t, withCtx as V, createVNode as g, normalizeClass as v, createElementVNode as m, createTextVNode as b, toDisplayString as p, createCommentVNode as k } from "vue";
|
|
2
2
|
import { Skeleton as y, FloatLabel as B, InputText as E } from "primevue";
|
|
3
3
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
import './input-text.css';const w = ["for"], I = { key: 0 }, N = { class: "error" }, T = /* @__PURE__ */
|
|
4
|
+
import './input-text.css';const w = ["for"], I = { key: 0 }, N = { class: "error" }, T = /* @__PURE__ */ x({
|
|
5
5
|
__name: "input-text",
|
|
6
6
|
props: {
|
|
7
7
|
label: {},
|
|
@@ -16,37 +16,35 @@ import './input-text.css';const w = ["for"], I = { key: 0 }, N = { class: "error
|
|
|
16
16
|
placeholder: {}
|
|
17
17
|
},
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
|
-
setup(
|
|
20
|
-
const e =
|
|
19
|
+
setup(c, { emit: _ }) {
|
|
20
|
+
const e = c, f = _, n = Math.random().toString(16).slice(2), s = d({
|
|
21
21
|
get() {
|
|
22
22
|
return e.modelValue;
|
|
23
23
|
},
|
|
24
24
|
set(a) {
|
|
25
|
-
|
|
25
|
+
f("update:modelValue", a);
|
|
26
26
|
}
|
|
27
27
|
}), r = d(() => e.showError && e.rules?.find((l) => l?.$invalid && l?.$message)?.$message || "");
|
|
28
|
-
return (a, l) => (o(), i("div",
|
|
29
|
-
|
|
30
|
-
}, [
|
|
31
|
-
e.loading ? (o(), c(t(y), {
|
|
28
|
+
return (a, l) => (o(), i("div", null, [
|
|
29
|
+
e.loading ? (o(), u(t(y), {
|
|
32
30
|
key: 0,
|
|
33
31
|
class: "skeleton-input mt-3"
|
|
34
|
-
})) : (o(),
|
|
32
|
+
})) : (o(), u(t(B), {
|
|
35
33
|
key: 1,
|
|
36
34
|
class: "mt-3"
|
|
37
35
|
}, {
|
|
38
|
-
default:
|
|
39
|
-
|
|
40
|
-
modelValue:
|
|
41
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
42
|
-
class:
|
|
36
|
+
default: V(() => [
|
|
37
|
+
g(t(E), {
|
|
38
|
+
modelValue: s.value,
|
|
39
|
+
"onUpdate:modelValue": l[0] || (l[0] = (h) => s.value = h),
|
|
40
|
+
class: v(["w-full", e.class]),
|
|
43
41
|
invalid: !!r.value,
|
|
44
42
|
maxlength: e.maxlength,
|
|
45
43
|
disabled: e.disabled,
|
|
46
44
|
placeholder: e.placeholder,
|
|
47
|
-
"input-id": t(
|
|
45
|
+
"input-id": t(n)
|
|
48
46
|
}, null, 8, ["modelValue", "class", "invalid", "maxlength", "disabled", "placeholder", "input-id"]),
|
|
49
|
-
m("label", { for: t(
|
|
47
|
+
m("label", { for: t(n) }, [
|
|
50
48
|
b(p(e.label), 1),
|
|
51
49
|
e.required ? (o(), i("span", I, " *")) : k("", !0)
|
|
52
50
|
], 8, w)
|
|
@@ -54,9 +52,9 @@ import './input-text.css';const w = ["for"], I = { key: 0 }, N = { class: "error
|
|
|
54
52
|
_: 1
|
|
55
53
|
})),
|
|
56
54
|
m("small", N, p(r.value), 1)
|
|
57
|
-
]
|
|
55
|
+
]));
|
|
58
56
|
}
|
|
59
|
-
}),
|
|
57
|
+
}), S = /* @__PURE__ */ C(T, [["__scopeId", "data-v-40b19f93"]]), z = S;
|
|
60
58
|
export {
|
|
61
59
|
z as default
|
|
62
60
|
};
|
package/dist/multi-select.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.error[data-v-
|
|
1
|
+
.error[data-v-b8098681]{color:var(--p-floatlabel-invalid-color, var(--p-red-600))}
|
package/dist/multi-select.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as g, computed as c, openBlock as a, createElementBlock as m, normalizeClass as p, createBlock as u, unref as o, withCtx as v, createVNode as
|
|
2
|
-
import { Skeleton as
|
|
1
|
+
import { defineComponent as g, computed as c, openBlock as a, createElementBlock as m, normalizeClass as p, createBlock as u, unref as o, withCtx as v, createVNode as C, createElementVNode as f, createTextVNode as V, toDisplayString as h, createCommentVNode as _ } from "vue";
|
|
2
|
+
import { Skeleton as B, FloatLabel as M, MultiSelect as x } from "primevue";
|
|
3
3
|
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
import './multi-select.css';const S = ["for"], k = { key: 0 }, w = { class: "error" }, E = /* @__PURE__ */ g({
|
|
5
5
|
__name: "multi-select",
|
|
@@ -8,6 +8,7 @@ import './multi-select.css';const S = ["for"], k = { key: 0 }, w = { class: "err
|
|
|
8
8
|
options: {},
|
|
9
9
|
modelValue: {},
|
|
10
10
|
class: {},
|
|
11
|
+
inputClass: {},
|
|
11
12
|
disabled: { type: Boolean },
|
|
12
13
|
required: { type: Boolean },
|
|
13
14
|
showClear: { type: Boolean },
|
|
@@ -39,7 +40,7 @@ import './multi-select.css';const S = ["for"], k = { key: 0 }, w = { class: "err
|
|
|
39
40
|
return (i, l) => (a(), m("div", {
|
|
40
41
|
class: p(`field ${e.class || ""}`)
|
|
41
42
|
}, [
|
|
42
|
-
e.loading ? (a(), u(o(
|
|
43
|
+
e.loading ? (a(), u(o(B), {
|
|
43
44
|
key: 0,
|
|
44
45
|
class: "skeleton-input mt-3"
|
|
45
46
|
})) : (a(), u(o(M), {
|
|
@@ -47,7 +48,7 @@ import './multi-select.css';const S = ["for"], k = { key: 0 }, w = { class: "err
|
|
|
47
48
|
class: "mt-3"
|
|
48
49
|
}, {
|
|
49
50
|
default: v(() => [
|
|
50
|
-
|
|
51
|
+
C(o(x), {
|
|
51
52
|
modelValue: n.value,
|
|
52
53
|
"onUpdate:modelValue": l[0] || (l[0] = (t) => n.value = t),
|
|
53
54
|
options: e.options,
|
|
@@ -69,12 +70,13 @@ import './multi-select.css';const S = ["for"], k = { key: 0 }, w = { class: "err
|
|
|
69
70
|
"filter-match-mode": e.filterMatchMode,
|
|
70
71
|
"filter-fields": e.filterFields,
|
|
71
72
|
"input-id": o(r),
|
|
73
|
+
"input-class": e.inputClass,
|
|
72
74
|
onFilter: l[1] || (l[1] = (t) => s("filter", t)),
|
|
73
75
|
onSelectallChange: l[2] || (l[2] = (t) => s("selectall-change", t))
|
|
74
|
-
}, null, 8, ["modelValue", "options", "class", "invalid", "disabled", "placeholder", "show-clear", "max-selected-labels", "empty-message", "selection-limit", "selected-items-label", "reset-filter-on-clear", "filter", "filter-placeholder", "filter-locale", "filter-match-mode", "filter-fields", "input-id"]),
|
|
76
|
+
}, null, 8, ["modelValue", "options", "class", "invalid", "disabled", "placeholder", "show-clear", "max-selected-labels", "empty-message", "selection-limit", "selected-items-label", "reset-filter-on-clear", "filter", "filter-placeholder", "filter-locale", "filter-match-mode", "filter-fields", "input-id", "input-class"]),
|
|
75
77
|
f("label", { for: o(r) }, [
|
|
76
|
-
|
|
77
|
-
e.required ? (a(), m("span", k, " *")) :
|
|
78
|
+
V(h(e.label), 1),
|
|
79
|
+
e.required ? (a(), m("span", k, " *")) : _("", !0)
|
|
78
80
|
], 8, S)
|
|
79
81
|
]),
|
|
80
82
|
_: 1
|
|
@@ -82,7 +84,7 @@ import './multi-select.css';const S = ["for"], k = { key: 0 }, w = { class: "err
|
|
|
82
84
|
f("small", w, h(d.value), 1)
|
|
83
85
|
], 2));
|
|
84
86
|
}
|
|
85
|
-
}), F = /* @__PURE__ */ L(E, [["__scopeId", "data-v-
|
|
87
|
+
}), F = /* @__PURE__ */ L(E, [["__scopeId", "data-v-b8098681"]]), q = F;
|
|
86
88
|
export {
|
|
87
89
|
q as default
|
|
88
90
|
};
|
package/dist/select.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.error[data-v-
|
|
1
|
+
.error[data-v-310b2bf8]{color:var(--p-floatlabel-invalid-color, var(--p-red-600))}
|
package/dist/select.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Skeleton as
|
|
1
|
+
import { defineComponent as v, computed as i, openBlock as t, createElementBlock as d, createBlock as c, unref as o, withCtx as b, createVNode as V, normalizeClass as y, createElementVNode as p, createTextVNode as C, toDisplayString as u, createCommentVNode as g } from "vue";
|
|
2
|
+
import { Skeleton as k, FloatLabel as w, Select as B } from "primevue";
|
|
3
3
|
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
import './select.css';const E = ["for"], S = { key: 0 }, N = { class: "error" }, $ = /* @__PURE__ */
|
|
4
|
+
import './select.css';const E = ["for"], S = { key: 0 }, N = { class: "error" }, $ = /* @__PURE__ */ v({
|
|
5
5
|
__name: "select",
|
|
6
6
|
props: {
|
|
7
7
|
label: {},
|
|
@@ -15,54 +15,54 @@ import './select.css';const E = ["for"], S = { key: 0 }, N = { class: "error" },
|
|
|
15
15
|
placeholder: {},
|
|
16
16
|
style: {},
|
|
17
17
|
class: {},
|
|
18
|
+
inputClass: {},
|
|
18
19
|
loading: { type: Boolean },
|
|
19
20
|
modelValue: {}
|
|
20
21
|
},
|
|
21
22
|
emits: ["update:modelValue"],
|
|
22
|
-
setup(
|
|
23
|
-
const e =
|
|
23
|
+
setup(m, { emit: _ }) {
|
|
24
|
+
const e = m, f = _, s = Math.random().toString(16).slice(2), n = i({
|
|
24
25
|
get() {
|
|
25
26
|
return e.modelValue;
|
|
26
27
|
},
|
|
27
28
|
set(a) {
|
|
28
|
-
|
|
29
|
+
f("update:modelValue", a);
|
|
29
30
|
}
|
|
30
31
|
}), r = i(() => e.showError && e.rules?.find((l) => l?.$invalid && l?.$message)?.$message || "");
|
|
31
|
-
return (a, l) => (t(), d("div",
|
|
32
|
-
|
|
33
|
-
}, [
|
|
34
|
-
e.loading ? (t(), p(o(w), {
|
|
32
|
+
return (a, l) => (t(), d("div", null, [
|
|
33
|
+
e.loading ? (t(), c(o(k), {
|
|
35
34
|
key: 0,
|
|
36
35
|
class: "skeleton-input mt-3"
|
|
37
|
-
})) : (t(),
|
|
36
|
+
})) : (t(), c(o(w), {
|
|
38
37
|
key: 1,
|
|
39
38
|
class: "mt-3"
|
|
40
39
|
}, {
|
|
41
40
|
default: b(() => [
|
|
42
|
-
|
|
41
|
+
V(o(B), {
|
|
43
42
|
modelValue: n.value,
|
|
44
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
43
|
+
"onUpdate:modelValue": l[0] || (l[0] = (h) => n.value = h),
|
|
45
44
|
options: e.options,
|
|
46
45
|
"option-label": "label",
|
|
47
46
|
"option-value": "value",
|
|
48
|
-
class:
|
|
47
|
+
class: y(["w-full", e.class]),
|
|
48
|
+
"input-class": e.inputClass,
|
|
49
49
|
invalid: !!r.value,
|
|
50
50
|
disabled: e.disabled,
|
|
51
51
|
placeholder: e.placeholder,
|
|
52
52
|
"show-clear": e.showClear,
|
|
53
53
|
"input-id": o(s)
|
|
54
|
-
}, null, 8, ["modelValue", "options", "class", "invalid", "disabled", "placeholder", "show-clear", "input-id"]),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
e.required ? (t(), d("span", S, " *")) :
|
|
54
|
+
}, null, 8, ["modelValue", "options", "class", "input-class", "invalid", "disabled", "placeholder", "show-clear", "input-id"]),
|
|
55
|
+
p("label", { for: o(s) }, [
|
|
56
|
+
C(u(e.label), 1),
|
|
57
|
+
e.required ? (t(), d("span", S, " *")) : g("", !0)
|
|
58
58
|
], 8, E)
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
61
61
|
})),
|
|
62
|
-
|
|
63
|
-
]
|
|
62
|
+
p("small", N, u(r.value), 1)
|
|
63
|
+
]));
|
|
64
64
|
}
|
|
65
|
-
}), q = /* @__PURE__ */ x($, [["__scopeId", "data-v-
|
|
65
|
+
}), q = /* @__PURE__ */ x($, [["__scopeId", "data-v-310b2bf8"]]), F = q;
|
|
66
66
|
export {
|
|
67
67
|
F as default
|
|
68
68
|
};
|
|
@@ -59,10 +59,14 @@ export default interface EspriSelectProps {
|
|
|
59
59
|
* Class of the component.
|
|
60
60
|
*/
|
|
61
61
|
class?: any;
|
|
62
|
+
/**
|
|
63
|
+
* Optional CSS class applied to the input element.
|
|
64
|
+
*/
|
|
65
|
+
inputClass?: string;
|
|
62
66
|
/**
|
|
63
67
|
* Indicates if the input is in a loading state.
|
|
64
68
|
*/
|
|
65
|
-
loading
|
|
69
|
+
loading?: boolean;
|
|
66
70
|
/**
|
|
67
71
|
* Model value representing the current state of the input.
|
|
68
72
|
*/
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@espri/vue-components",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"description": "ESPRI Digital - Vue components library",
|
|
5
5
|
"author": "ESPRI Digital",
|
|
6
|
-
"homepage": "https://github.com/ESPRI-Digital/vue-
|
|
6
|
+
"homepage": "https://github.com/ESPRI-Digital/vue-components#readme",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|