@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 CHANGED
@@ -1 +1 @@
1
- .error[data-v-14fb5088]{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 u, createElementVNode as d, createVNode as _, unref as s, normalizeClass as b, toDisplayString as c, createCommentVNode as C } from "vue";
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__ */ V({
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: p }) {
21
- const e = m, f = p, o = Math.random().toString(16).slice(2), t = n({
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
- f("update:modelValue", a);
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", null, [
30
- d("div", k, [
31
- _(s(h), {
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] = (v) => t.value = v),
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: b(e.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
- }, c(e.label), 9, g)) : C("", !0)
49
+ }, p(e.label), 9, g)) : C("", !0)
47
50
  ]),
48
- d("small", y, c(r.value), 1)
49
- ]));
51
+ c("small", y, p(r.value), 1)
52
+ ], 2));
50
53
  }
51
- }), B = /* @__PURE__ */ x(E, [["__scopeId", "data-v-14fb5088"]]), z = B;
54
+ }), B = /* @__PURE__ */ x(E, [["__scopeId", "data-v-a6305979"]]), z = B;
52
55
  export {
53
56
  z as default
54
57
  };
@@ -1 +1 @@
1
- .error[data-v-884590ec]{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,13 +1,14 @@
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({
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(p, { emit: f }) {
21
- const e = p, _ = f, s = Math.random().toString(16).slice(2), r = n({
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
- _("update:modelValue", o);
27
+ k("update:modelValue", o);
27
28
  }
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), {
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
- })) : (a(), c(t(C), {
36
+ })) : (t(), p(l(B), {
34
37
  key: 1,
35
38
  class: "mt-3"
36
39
  }, {
37
- default: v(() => [
38
- h(t(E), {
40
+ default: h(() => [
41
+ y(l(w), {
39
42
  modelValue: r.value,
40
- "onUpdate:modelValue": l[0] || (l[0] = (k) => r.value = k),
41
- class: y(["w-full", e.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": t(s),
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: t(s) }, [
52
+ u("label", { for: l(s) }, [
50
53
  b(m(e.label), 1),
51
- e.required ? (a(), i("span", D, " *")) : g("", !0)
52
- ], 8, w)
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__ */ x(F, [["__scopeId", "data-v-884590ec"]]), R = P;
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-62ab020d]{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
- 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
- import { Skeleton as k, FloatLabel as B, InputNumber as C } from "primevue";
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__ */ y({
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(f, { emit: x }) {
28
- const e = f, a = x, n = Math.random().toString(16).slice(2), s = m({
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) ? (a("update:modelValue", null), null) : e.modelValue;
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), a("update:modelValue", t);
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((o) => o?.$invalid && o?.$message)?.$message || "");
36
- return (t, o) => (i(), d("div", null, [
37
- e.loading ? (i(), u(l(k), {
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
- })) : (i(), u(l(B), {
43
+ })) : (a(), c(o(k), {
41
44
  key: 1,
42
45
  class: "mt-3"
43
46
  }, {
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]),
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": l(n)
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
- c("label", { for: l(n) }, [
64
- v(p(e.label), 1),
65
- e.required ? (i(), d("span", D, " *")) : h("", !0)
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
- c("small", F, p(r.value), 1)
71
- ]));
73
+ p("small", F, f(r.value), 1)
74
+ ], 2));
72
75
  }
73
- }), T = /* @__PURE__ */ N(S, [["__scopeId", "data-v-62ab020d"]]), R = T;
76
+ }), T = /* @__PURE__ */ N(S, [["__scopeId", "data-v-171e4e6f"]]), R = T;
74
77
  export {
75
78
  R as default
76
79
  };
@@ -1 +1 @@
1
- .error[data-v-8a4b20d3]{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 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";
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__ */ h({
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(m, { emit: g }) {
23
- const e = m, f = g, t = Math.random().toString(16).slice(2), d = r({
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(s) {
28
- f("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", null, [
32
- e.loading ? (o(), p(a(v), {
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
- })) : (o(), p(a(B), {
38
+ })) : (s(), c(a(b), {
36
39
  key: 1,
37
40
  class: "mt-3"
38
41
  }, {
39
- default: k(() => [
42
+ default: w(() => [
40
43
  y(a(x), {
41
- modelValue: d.value,
42
- "onUpdate:modelValue": l[0] || (l[0] = (_) => d.value = _),
43
- class: w(["w-full", e.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: !!n.value,
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(c(e.label), 1),
55
- e.required ? (o(), i("span", E, " *")) : b("", !0)
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, c(n.value), 1)
61
- ]));
63
+ u("small", N, m(d.value), 1)
64
+ ], 2));
62
65
  }
63
- }), I = /* @__PURE__ */ C(F, [["__scopeId", "data-v-8a4b20d3"]]), q = I;
66
+ }), I = /* @__PURE__ */ C(F, [["__scopeId", "data-v-612c6f61"]]), q = I;
64
67
  export {
65
68
  q as default
66
69
  };
@@ -1 +1 @@
1
- .error[data-v-40b19f93]{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 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
- 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__ */ x({
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(c, { emit: _ }) {
20
- const e = c, f = _, n = Math.random().toString(16).slice(2), s = d({
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(a) {
25
- f("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", null, [
29
- e.loading ? (o(), u(t(y), {
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
- })) : (o(), u(t(B), {
35
+ })) : (a(), u(t(B), {
33
36
  key: 1,
34
37
  class: "mt-3"
35
38
  }, {
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]),
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(n)
48
+ "input-id": t(s)
46
49
  }, null, 8, ["modelValue", "class", "invalid", "maxlength", "disabled", "placeholder", "input-id"]),
47
- m("label", { for: t(n) }, [
48
- b(p(e.label), 1),
49
- e.required ? (o(), i("span", I, " *")) : k("", !0)
50
- ], 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)
51
54
  ]),
52
55
  _: 1
53
56
  })),
54
- m("small", N, p(r.value), 1)
55
- ]));
57
+ c("small", N, m(r.value), 1)
58
+ ], 2));
56
59
  }
57
- }), S = /* @__PURE__ */ C(T, [["__scopeId", "data-v-40b19f93"]]), z = S;
60
+ }), S = /* @__PURE__ */ w(T, [["__scopeId", "data-v-aa4b79b9"]]), z = S;
58
61
  export {
59
62
  z as default
60
63
  };
@@ -1 +1 @@
1
- .error[data-v-b8098681]{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,7 +1,7 @@
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({
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) => (a(), m("div", {
41
- class: p(`field ${e.class || ""}`)
41
+ return (i, l) => (o(), m("div", {
42
+ class: p(e.wrapperClass)
42
43
  }, [
43
- e.loading ? (a(), u(o(B), {
44
+ e.loading ? (o(), u(a(w), {
44
45
  key: 0,
45
46
  class: "skeleton-input mt-3"
46
- })) : (a(), u(o(M), {
47
+ })) : (o(), u(a(B), {
47
48
  key: 1,
48
49
  class: "mt-3"
49
50
  }, {
50
- default: v(() => [
51
- C(o(x), {
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": o(r),
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: o(r) }, [
78
+ f("label", { for: a(r) }, [
78
79
  V(h(e.label), 1),
79
- e.required ? (a(), m("span", k, " *")) : _("", !0)
80
- ], 8, S)
80
+ e.required ? (o(), m("span", S, " *")) : _("", !0)
81
+ ], 8, L)
81
82
  ]),
82
83
  _: 1
83
84
  })),
84
- f("small", w, h(d.value), 1)
85
+ f("small", k, h(d.value), 1)
85
86
  ], 2));
86
87
  }
87
- }), F = /* @__PURE__ */ L(E, [["__scopeId", "data-v-b8098681"]]), q = F;
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-310b2bf8]{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,7 +1,7 @@
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";
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__ */ v({
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(m, { emit: _ }) {
24
- const e = m, f = _, 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({
25
26
  get() {
26
27
  return e.modelValue;
27
28
  },
28
- set(a) {
29
- f("update:modelValue", a);
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 (a, l) => (t(), d("div", null, [
33
- e.loading ? (t(), c(o(k), {
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
- })) : (t(), c(o(w), {
39
+ })) : (a(), c(o(k), {
37
40
  key: 1,
38
41
  class: "mt-3"
39
42
  }, {
40
- default: b(() => [
41
- V(o(B), {
43
+ default: C(() => [
44
+ b(o(B), {
42
45
  modelValue: n.value,
43
- "onUpdate:modelValue": l[0] || (l[0] = (h) => n.value = h),
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: y(["w-full", e.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
- p("label", { for: o(s) }, [
56
- C(u(e.label), 1),
57
- e.required ? (t(), d("span", S, " *")) : g("", !0)
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
- p("small", N, u(r.value), 1)
63
- ]));
65
+ u("small", N, m(r.value), 1)
66
+ ], 2));
64
67
  }
65
- }), q = /* @__PURE__ */ x($, [["__scopeId", "data-v-310b2bf8"]]), F = q;
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
  */
@@ -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
  */
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@espri/vue-components",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "description": "ESPRI Digital - Vue components library",
5
5
  "author": "ESPRI Digital",
6
6
  "homepage": "https://github.com/ESPRI-Digital/vue-components#readme",