@espri/vue-components 2.4.2 → 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 -0
- package/dist/date-picker.es.js +62 -0
- package/dist/index.es.js +16 -154
- 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 -0
- package/dist/multi-select.es.js +90 -0
- 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/index.css +0 -1
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
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.error[data-v-884590ec]{color:var(--p-floatlabel-invalid-color, var(--p-red-600))}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
__name: "date-picker",
|
|
6
|
+
props: {
|
|
7
|
+
label: {},
|
|
8
|
+
modelValue: {},
|
|
9
|
+
class: {},
|
|
10
|
+
inputClass: {},
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
required: { type: Boolean },
|
|
13
|
+
loading: { type: Boolean },
|
|
14
|
+
showError: { type: Boolean },
|
|
15
|
+
rules: {},
|
|
16
|
+
dateFormat: {},
|
|
17
|
+
placeholder: {}
|
|
18
|
+
},
|
|
19
|
+
emits: ["update:modelValue"],
|
|
20
|
+
setup(p, { emit: f }) {
|
|
21
|
+
const e = p, _ = f, s = Math.random().toString(16).slice(2), r = n({
|
|
22
|
+
get() {
|
|
23
|
+
return e.modelValue;
|
|
24
|
+
},
|
|
25
|
+
set(o) {
|
|
26
|
+
_("update:modelValue", o);
|
|
27
|
+
}
|
|
28
|
+
}), d = n(() => e.showError && e.rules?.find((l) => l?.$invalid && l?.$message)?.$message || "");
|
|
29
|
+
return (o, l) => (a(), i("div", null, [
|
|
30
|
+
e.loading ? (a(), c(t(B), {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "skeleton-input mt-3"
|
|
33
|
+
})) : (a(), c(t(C), {
|
|
34
|
+
key: 1,
|
|
35
|
+
class: "mt-3"
|
|
36
|
+
}, {
|
|
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]),
|
|
42
|
+
invalid: !!d.value,
|
|
43
|
+
disabled: e.disabled,
|
|
44
|
+
placeholder: e.placeholder,
|
|
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
|
+
e.required ? (a(), i("span", D, " *")) : g("", !0)
|
|
52
|
+
], 8, w)
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
})),
|
|
56
|
+
u("small", N, m(d.value), 1)
|
|
57
|
+
]));
|
|
58
|
+
}
|
|
59
|
+
}), P = /* @__PURE__ */ x(F, [["__scopeId", "data-v-884590ec"]]), R = P;
|
|
60
|
+
export {
|
|
61
|
+
R as default
|
|
62
|
+
};
|
package/dist/index.es.js
CHANGED
|
@@ -1,156 +1,18 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as le } from "./virtual-keyboard.es.js";
|
|
10
|
-
import './index.css';const $ = ["for"], M = { key: 0 }, S = { class: "error" }, L = /* @__PURE__ */ _({
|
|
11
|
-
__name: "date-picker",
|
|
12
|
-
props: {
|
|
13
|
-
label: {},
|
|
14
|
-
modelValue: {},
|
|
15
|
-
class: {},
|
|
16
|
-
disabled: { type: Boolean },
|
|
17
|
-
required: { type: Boolean },
|
|
18
|
-
loading: { type: Boolean },
|
|
19
|
-
showError: { type: Boolean },
|
|
20
|
-
rules: {},
|
|
21
|
-
dateFormat: {},
|
|
22
|
-
placeholder: {}
|
|
23
|
-
},
|
|
24
|
-
emits: ["update:modelValue"],
|
|
25
|
-
setup(b, { emit: y }) {
|
|
26
|
-
const e = b, r = y, i = Math.random().toString(16).slice(2), d = c({
|
|
27
|
-
get() {
|
|
28
|
-
return e.modelValue;
|
|
29
|
-
},
|
|
30
|
-
set(o) {
|
|
31
|
-
r("update:modelValue", o);
|
|
32
|
-
}
|
|
33
|
-
}), n = c(() => e.showError && e.rules?.find((l) => l?.$invalid && l?.$message)?.$message || "");
|
|
34
|
-
return (o, l) => (a(), m("div", {
|
|
35
|
-
class: p(`field ${e.class || ""}`)
|
|
36
|
-
}, [
|
|
37
|
-
e.loading ? (a(), u(t(k), {
|
|
38
|
-
key: 0,
|
|
39
|
-
class: "skeleton-input mt-3"
|
|
40
|
-
})) : (a(), u(t(E), {
|
|
41
|
-
key: 1,
|
|
42
|
-
class: "mt-3"
|
|
43
|
-
}, {
|
|
44
|
-
default: v(() => [
|
|
45
|
-
V(t(w), {
|
|
46
|
-
modelValue: d.value,
|
|
47
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) => d.value = s),
|
|
48
|
-
class: p(["w-full", e.class]),
|
|
49
|
-
invalid: !!n.value,
|
|
50
|
-
disabled: e.disabled,
|
|
51
|
-
placeholder: e.placeholder,
|
|
52
|
-
"input-id": t(i),
|
|
53
|
-
"date-format": e.dateFormat || "dd/mm/yy"
|
|
54
|
-
}, null, 8, ["modelValue", "class", "invalid", "disabled", "placeholder", "input-id", "date-format"]),
|
|
55
|
-
f("label", { for: t(i) }, [
|
|
56
|
-
g(h(e.label), 1),
|
|
57
|
-
e.required ? (a(), m("span", M, " *")) : x("", !0)
|
|
58
|
-
], 8, $)
|
|
59
|
-
]),
|
|
60
|
-
_: 1
|
|
61
|
-
})),
|
|
62
|
-
f("small", S, h(n.value), 1)
|
|
63
|
-
], 2));
|
|
64
|
-
}
|
|
65
|
-
}), F = /* @__PURE__ */ B(L, [["__scopeId", "data-v-702f97d9"]]), U = F, I = ["for"], P = { key: 0 }, N = { class: "error" }, q = /* @__PURE__ */ _({
|
|
66
|
-
__name: "multi-select",
|
|
67
|
-
props: {
|
|
68
|
-
label: {},
|
|
69
|
-
options: {},
|
|
70
|
-
modelValue: {},
|
|
71
|
-
class: {},
|
|
72
|
-
disabled: { type: Boolean },
|
|
73
|
-
required: { type: Boolean },
|
|
74
|
-
showClear: { type: Boolean },
|
|
75
|
-
loading: { type: Boolean },
|
|
76
|
-
showError: { type: Boolean },
|
|
77
|
-
rules: {},
|
|
78
|
-
placeholder: {},
|
|
79
|
-
maxSelectedLabels: {},
|
|
80
|
-
selectionLimit: {},
|
|
81
|
-
emptyMessage: {},
|
|
82
|
-
selectedItemsLabel: {},
|
|
83
|
-
resetFilterOnClear: { type: Boolean },
|
|
84
|
-
filter: { type: Boolean },
|
|
85
|
-
filterPlaceholder: {},
|
|
86
|
-
filterLocale: {},
|
|
87
|
-
filterMatchMode: {},
|
|
88
|
-
filterFields: {}
|
|
89
|
-
},
|
|
90
|
-
emits: ["update:modelValue", "filter", "selectall-change"],
|
|
91
|
-
setup(b, { emit: y }) {
|
|
92
|
-
const e = b, r = y, i = Math.random().toString(16).slice(2), d = c({
|
|
93
|
-
get() {
|
|
94
|
-
return e.modelValue;
|
|
95
|
-
},
|
|
96
|
-
set(o) {
|
|
97
|
-
r("update:modelValue", o);
|
|
98
|
-
}
|
|
99
|
-
}), n = c(() => e.showError && e.rules?.find((l) => l?.$invalid && l?.$message)?.$message || "");
|
|
100
|
-
return (o, l) => (a(), m("div", {
|
|
101
|
-
class: p(`field ${e.class || ""}`)
|
|
102
|
-
}, [
|
|
103
|
-
e.loading ? (a(), u(t(k), {
|
|
104
|
-
key: 0,
|
|
105
|
-
class: "skeleton-input mt-3"
|
|
106
|
-
})) : (a(), u(t(E), {
|
|
107
|
-
key: 1,
|
|
108
|
-
class: "mt-3"
|
|
109
|
-
}, {
|
|
110
|
-
default: v(() => [
|
|
111
|
-
V(t(C), {
|
|
112
|
-
modelValue: d.value,
|
|
113
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) => d.value = s),
|
|
114
|
-
options: e.options,
|
|
115
|
-
"option-label": "label",
|
|
116
|
-
"option-value": "value",
|
|
117
|
-
class: p(["w-full", e.class]),
|
|
118
|
-
invalid: !!n.value,
|
|
119
|
-
disabled: e.disabled,
|
|
120
|
-
placeholder: e.placeholder,
|
|
121
|
-
"show-clear": e.showClear,
|
|
122
|
-
"max-selected-labels": e.maxSelectedLabels,
|
|
123
|
-
"empty-message": e.emptyMessage,
|
|
124
|
-
"selection-limit": e.selectionLimit,
|
|
125
|
-
"selected-items-label": e.selectedItemsLabel,
|
|
126
|
-
"reset-filter-on-clear": e.resetFilterOnClear,
|
|
127
|
-
filter: e.filter,
|
|
128
|
-
"filter-placeholder": e.filterPlaceholder,
|
|
129
|
-
"filter-locale": e.filterLocale,
|
|
130
|
-
"filter-match-mode": e.filterMatchMode,
|
|
131
|
-
"filter-fields": e.filterFields,
|
|
132
|
-
"input-id": t(i),
|
|
133
|
-
onFilter: l[1] || (l[1] = (s) => r("filter", s)),
|
|
134
|
-
onSelectallChange: l[2] || (l[2] = (s) => r("selectall-change", s))
|
|
135
|
-
}, 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"]),
|
|
136
|
-
f("label", { for: t(i) }, [
|
|
137
|
-
g(h(e.label), 1),
|
|
138
|
-
e.required ? (a(), m("span", P, " *")) : x("", !0)
|
|
139
|
-
], 8, I)
|
|
140
|
-
]),
|
|
141
|
-
_: 1
|
|
142
|
-
})),
|
|
143
|
-
f("small", N, h(n.value), 1)
|
|
144
|
-
], 2));
|
|
145
|
-
}
|
|
146
|
-
}), D = /* @__PURE__ */ B(q, [["__scopeId", "data-v-6cb5331a"]]), z = D;
|
|
1
|
+
import { default as t } from "./checkbox.es.js";
|
|
2
|
+
import { default as o } from "./date-picker.es.js";
|
|
3
|
+
import { default as s } from "./input-number.es.js";
|
|
4
|
+
import { default as u } from "./input-password.es.js";
|
|
5
|
+
import { default as i } from "./input-text.es.js";
|
|
6
|
+
import { default as x } from "./multi-select.es.js";
|
|
7
|
+
import { default as E } from "./select.es.js";
|
|
8
|
+
import { default as b } from "./virtual-keyboard.es.js";
|
|
147
9
|
export {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
10
|
+
t as EspriCheckbox,
|
|
11
|
+
o as EspriDatePicker,
|
|
12
|
+
s as EspriInputNumber,
|
|
13
|
+
u as EspriInputPassword,
|
|
14
|
+
i as EspriInputText,
|
|
15
|
+
x as EspriMultiSelect,
|
|
16
|
+
E as EspriSelect,
|
|
17
|
+
b as EspriVirtualKeyboard
|
|
156
18
|
};
|
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
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.error[data-v-b8098681]{color:var(--p-floatlabel-invalid-color, var(--p-red-600))}
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
import './multi-select.css';const S = ["for"], k = { key: 0 }, w = { class: "error" }, E = /* @__PURE__ */ g({
|
|
5
|
+
__name: "multi-select",
|
|
6
|
+
props: {
|
|
7
|
+
label: {},
|
|
8
|
+
options: {},
|
|
9
|
+
modelValue: {},
|
|
10
|
+
class: {},
|
|
11
|
+
inputClass: {},
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
required: { type: Boolean },
|
|
14
|
+
showClear: { type: Boolean },
|
|
15
|
+
loading: { type: Boolean },
|
|
16
|
+
showError: { type: Boolean },
|
|
17
|
+
rules: {},
|
|
18
|
+
placeholder: {},
|
|
19
|
+
maxSelectedLabels: {},
|
|
20
|
+
selectionLimit: {},
|
|
21
|
+
emptyMessage: {},
|
|
22
|
+
selectedItemsLabel: {},
|
|
23
|
+
resetFilterOnClear: { type: Boolean },
|
|
24
|
+
filter: { type: Boolean },
|
|
25
|
+
filterPlaceholder: {},
|
|
26
|
+
filterLocale: {},
|
|
27
|
+
filterMatchMode: {},
|
|
28
|
+
filterFields: {}
|
|
29
|
+
},
|
|
30
|
+
emits: ["update:modelValue", "filter", "selectall-change"],
|
|
31
|
+
setup(b, { emit: y }) {
|
|
32
|
+
const e = b, s = y, r = Math.random().toString(16).slice(2), n = c({
|
|
33
|
+
get() {
|
|
34
|
+
return e.modelValue;
|
|
35
|
+
},
|
|
36
|
+
set(i) {
|
|
37
|
+
s("update:modelValue", i);
|
|
38
|
+
}
|
|
39
|
+
}), d = c(() => e.showError && e.rules?.find((l) => l?.$invalid && l?.$message)?.$message || "");
|
|
40
|
+
return (i, l) => (a(), m("div", {
|
|
41
|
+
class: p(`field ${e.class || ""}`)
|
|
42
|
+
}, [
|
|
43
|
+
e.loading ? (a(), u(o(B), {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "skeleton-input mt-3"
|
|
46
|
+
})) : (a(), u(o(M), {
|
|
47
|
+
key: 1,
|
|
48
|
+
class: "mt-3"
|
|
49
|
+
}, {
|
|
50
|
+
default: v(() => [
|
|
51
|
+
C(o(x), {
|
|
52
|
+
modelValue: n.value,
|
|
53
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => n.value = t),
|
|
54
|
+
options: e.options,
|
|
55
|
+
"option-label": "label",
|
|
56
|
+
"option-value": "value",
|
|
57
|
+
class: p(["w-full", e.class]),
|
|
58
|
+
invalid: !!d.value,
|
|
59
|
+
disabled: e.disabled,
|
|
60
|
+
placeholder: e.placeholder,
|
|
61
|
+
"show-clear": e.showClear,
|
|
62
|
+
"max-selected-labels": e.maxSelectedLabels,
|
|
63
|
+
"empty-message": e.emptyMessage,
|
|
64
|
+
"selection-limit": e.selectionLimit,
|
|
65
|
+
"selected-items-label": e.selectedItemsLabel,
|
|
66
|
+
"reset-filter-on-clear": e.resetFilterOnClear,
|
|
67
|
+
filter: e.filter,
|
|
68
|
+
"filter-placeholder": e.filterPlaceholder,
|
|
69
|
+
"filter-locale": e.filterLocale,
|
|
70
|
+
"filter-match-mode": e.filterMatchMode,
|
|
71
|
+
"filter-fields": e.filterFields,
|
|
72
|
+
"input-id": o(r),
|
|
73
|
+
"input-class": e.inputClass,
|
|
74
|
+
onFilter: l[1] || (l[1] = (t) => s("filter", t)),
|
|
75
|
+
onSelectallChange: l[2] || (l[2] = (t) => s("selectall-change", t))
|
|
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"]),
|
|
77
|
+
f("label", { for: o(r) }, [
|
|
78
|
+
V(h(e.label), 1),
|
|
79
|
+
e.required ? (a(), m("span", k, " *")) : _("", !0)
|
|
80
|
+
], 8, S)
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})),
|
|
84
|
+
f("small", w, h(d.value), 1)
|
|
85
|
+
], 2));
|
|
86
|
+
}
|
|
87
|
+
}), F = /* @__PURE__ */ L(E, [["__scopeId", "data-v-b8098681"]]), q = F;
|
|
88
|
+
export {
|
|
89
|
+
q as default
|
|
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
|
},
|
package/dist/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.error[data-v-702f97d9],.error[data-v-6cb5331a]{color:var(--p-floatlabel-invalid-color, var(--p-red-600))}
|