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