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