@webitel/ui-sdk 26.2.12 → 26.2.13

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.
Files changed (54) hide show
  1. package/dist/{install-mdAUQvwW.js → install-Bz5xCw3_.js} +21489 -19139
  2. package/dist/{plyr-Dl9mhRpy.js → plyr-DrCXX54g.js} +1 -1
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.js +1 -1
  5. package/dist/ui-sdk.umd.cjs +802 -264
  6. package/dist/{vidstack-Bq6c3Bam-BZCmReL3.js → vidstack-Bq6c3Bam-B7cxzEP8.js} +2 -2
  7. package/dist/{vidstack-D2pY00kU-BYytRjCF.js → vidstack-D2pY00kU-g2aAQYXG.js} +2 -2
  8. package/dist/{vidstack-DDXt6fpN-BkCEpqiv.js → vidstack-DDXt6fpN-BhyQ95X9.js} +1 -1
  9. package/dist/{vidstack-D_-9AA6_-CuVZBenS.js → vidstack-D_-9AA6_-B5H5LlZ_.js} +1 -1
  10. package/dist/{vidstack-DqAw8m9J-DfB8IrWr.js → vidstack-DqAw8m9J-BjxYoxKC.js} +1 -1
  11. package/dist/{vidstack-audio-zdkPu0oA.js → vidstack-audio-CdaspgKJ.js} +2 -2
  12. package/dist/{vidstack-dash-DTg8gRm7.js → vidstack-dash-CyF2xpLm.js} +3 -3
  13. package/dist/{vidstack-google-cast-l7o6QV0q.js → vidstack-google-cast-BPD9Sm36.js} +3 -3
  14. package/dist/{vidstack-hls-BwVfbStc.js → vidstack-hls-CvrjEqso.js} +3 -3
  15. package/dist/{vidstack-video-C6v9_v4c.js → vidstack-video-CDJVFZPt.js} +2 -2
  16. package/dist/{vidstack-vimeo-Cy5Loo_h.js → vidstack-vimeo-B3AMYq9Z.js} +3 -3
  17. package/dist/{vidstack-youtube-DtQ6OT2A.js → vidstack-youtube-CLo-FbfO.js} +2 -2
  18. package/dist/{vuex.esm-bundler-HOJpxpZD.js → vuex.esm-bundler-DPqy4wnP.js} +1 -1
  19. package/package.json +2 -2
  20. package/src/components/index.js +12 -0
  21. package/src/components/wt-input-number/wt-input-number.vue +168 -0
  22. package/src/components/wt-input-text/wt-input-text.vue +147 -0
  23. package/src/components/wt-message/wt-message.vue +40 -0
  24. package/src/components/wt-password/wt-password.vue +145 -0
  25. package/src/composables/index.ts +1 -0
  26. package/src/composables/useInputControl/useInputControl.ts +15 -0
  27. package/src/enums/MessageColor/MessageColor.ts +10 -0
  28. package/src/enums/MessageVariant/MessageVariant.ts +7 -0
  29. package/src/enums/index.ts +4 -0
  30. package/src/plugins/primevue/primevue.plugin.js +10 -0
  31. package/src/plugins/primevue/theme/components/components.js +10 -0
  32. package/src/plugins/primevue/theme/components/input-group/input-group.js +8 -0
  33. package/src/plugins/primevue/theme/components/input-number/input-number.js +8 -0
  34. package/src/plugins/primevue/theme/components/input-text/input-text.js +8 -0
  35. package/src/plugins/primevue/theme/components/message/message.js +37 -0
  36. package/src/plugins/primevue/theme/components/password/password.js +14 -0
  37. package/types/components/index.d.ts +9 -1
  38. package/types/components/wt-input-number/wt-input-number.vue.d.ts +59 -0
  39. package/types/components/wt-input-text/wt-input-text.vue.d.ts +49 -0
  40. package/types/components/wt-message/wt-message.vue.d.ts +23 -0
  41. package/types/components/wt-password/wt-password.vue.d.ts +45 -0
  42. package/types/components/wt-player/wt-player.vue.d.ts +1 -1
  43. package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +1 -1
  44. package/types/composables/index.d.ts +1 -0
  45. package/types/composables/useInputControl/useInputControl.d.ts +4 -0
  46. package/types/enums/MessageColor/MessageColor.d.ts +9 -0
  47. package/types/enums/MessageVariant/MessageVariant.d.ts +6 -0
  48. package/types/enums/index.d.ts +3 -1
  49. package/types/plugins/primevue/theme/components/components.d.ts +10 -0
  50. package/types/plugins/primevue/theme/components/input-group/input-group.d.ts +24 -0
  51. package/types/plugins/primevue/theme/components/input-number/input-number.d.ts +39 -0
  52. package/types/plugins/primevue/theme/components/input-text/input-text.d.ts +70 -0
  53. package/types/plugins/primevue/theme/components/message/message.d.ts +351 -0
  54. package/types/plugins/primevue/theme/components/password/password.d.ts +57 -0
@@ -5,8 +5,8 @@ var ot = (n) => {
5
5
  var Xt = (n, t, s) => t in n ? Qt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[t] = s;
6
6
  var N = (n, t, s) => Xt(n, typeof t != "symbol" ? t + "" : t, s), X = (n, t, s) => t.has(n) || ot("Cannot " + s);
7
7
  var i = (n, t, s) => (X(n, t, "read from private field"), s ? s.call(n) : t.get(n)), d = (n, t, s) => t.has(n) ? ot("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, s), c = (n, t, s, r) => (X(n, t, "write to private field"), r ? r.call(n, s) : t.set(n, s), s), a = (n, t, s) => (X(n, t, "access private method"), s);
8
- import { A as Yt, z as ut, B as j, C as Zt, b as ti, E as nt, e as lt, F as _, G as ii, H as ei, f as si, J as ai, l as rt, K as dt, D as ni, L as Y, M as Z } from "./install-mdAUQvwW.js";
9
- import { R as ri } from "./vidstack-DqAw8m9J-DfB8IrWr.js";
8
+ import { A as Yt, z as ut, B as j, C as Zt, b as ti, E as nt, e as lt, F as _, G as ii, H as ei, f as si, J as ai, l as rt, K as dt, D as ni, L as Y, M as Z } from "./install-Bz5xCw3_.js";
9
+ import { R as ri } from "./vidstack-DqAw8m9J-BjxYoxKC.js";
10
10
  let q = null, K = [], z = [];
11
11
  function ht() {
12
12
  return q ?? (q = new AudioContext());
@@ -5,7 +5,7 @@ var w = (t) => {
5
5
  var P = (t, e, a) => e in t ? _(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
6
6
  var u = (t, e, a) => P(t, typeof e != "symbol" ? e + "" : e, a), C = (t, e, a) => e.has(t) || w("Cannot " + a);
7
7
  var c = (t, e, a) => (C(t, e, "read from private field"), a ? a.call(t) : e.get(t)), m = (t, e, a) => e.has(t) ? w("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, a), y = (t, e, a, o) => (C(t, e, "write to private field"), o ? o.call(t, a) : e.set(t, a), a), s = (t, e, a) => (C(t, e, "access private method"), a);
8
- import { l as b, k as A, V as O, G as D, f as R, o as G } from "./install-mdAUQvwW.js";
8
+ import { l as b, k as A, V as O, G as D, f as R, o as G } from "./install-Bz5xCw3_.js";
9
9
  function M() {
10
10
  return "https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";
11
11
  }
@@ -94,7 +94,7 @@ class F {
94
94
  async load(e) {
95
95
  if (!c(this, n))
96
96
  throw Error("[vidstack] google cast player was not initialized");
97
- return new (await import("./vidstack-google-cast-l7o6QV0q.js")).GoogleCastProvider(c(this, n), e);
97
+ return new (await import("./vidstack-google-cast-BPD9Sm36.js")).GoogleCastProvider(c(this, n), e);
98
98
  }
99
99
  }
100
100
  n = new WeakMap(), r = new WeakSet(), S = async function(e) {
@@ -5,7 +5,7 @@ var g = (s) => {
5
5
  var M = (s, t, i) => t in s ? y(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
6
6
  var c = (s, t, i) => M(s, typeof t != "symbol" ? t + "" : t, i), h = (s, t, i) => t.has(s) || g("Cannot " + i);
7
7
  var e = (s, t, i) => (h(s, t, "read from private field"), i ? i.call(s) : t.get(s)), l = (s, t, i) => t.has(s) ? g("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, i), p = (s, t, i, a) => (h(s, t, "write to private field"), a ? a.call(s, i) : t.set(s, i), i), u = (s, t, i) => (h(s, t, "access private method"), i);
8
- import { M as w, l as f, e as A, f as P, U as O, b as S } from "./install-mdAUQvwW.js";
8
+ import { M as w, l as f, e as A, f as P, U as O, b as S } from "./install-Bz5xCw3_.js";
9
9
  var r, o, b, m;
10
10
  class J {
11
11
  constructor(t) {
@@ -1,4 +1,4 @@
1
- import { c as d, a as i, I as l, e as m } from "./install-mdAUQvwW.js";
1
+ import { c as d, a as i, I as l, e as m } from "./install-Bz5xCw3_.js";
2
2
  const p = /* @__PURE__ */ i(
3
3
  '<svg viewBox="0 0 32 32" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"></svg>'
4
4
  );
@@ -3,7 +3,7 @@ var l = (i) => {
3
3
  };
4
4
  var m = (i, t, s) => t.has(i) || l("Cannot " + s);
5
5
  var r = (i, t, s) => (m(i, t, "read from private field"), s ? s.call(i) : t.get(i)), e = (i, t, s) => t.has(i) ? l("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), h = (i, t, s, f) => (m(i, t, "write to private field"), f ? f.call(i, s) : t.set(i, s), s), c = (i, t, s) => (m(i, t, "access private method"), s);
6
- import { m as p, v as u } from "./install-mdAUQvwW.js";
6
+ import { m as p, v as u } from "./install-Bz5xCw3_.js";
7
7
  var o, a, n, d;
8
8
  class F {
9
9
  constructor(t) {
@@ -1,8 +1,8 @@
1
1
  var a = Object.defineProperty;
2
2
  var o = (i, e, t) => e in i ? a(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
3
  var r = (i, e, t) => o(i, typeof e != "symbol" ? e + "" : e, t);
4
- import { s as p } from "./install-mdAUQvwW.js";
5
- import { H as d, a as u } from "./vidstack-Bq6c3Bam-BZCmReL3.js";
4
+ import { s as p } from "./install-Bz5xCw3_.js";
5
+ import { H as d, a as u } from "./vidstack-Bq6c3Bam-B7cxzEP8.js";
6
6
  class n extends d {
7
7
  constructor(t, s) {
8
8
  super(t, s);
@@ -5,9 +5,9 @@ var Y = (n) => {
5
5
  var wt = (n, t, e) => t in n ? vt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
6
6
  var I = (n, t, e) => wt(n, typeof t != "symbol" ? t + "" : t, e), b = (n, t, e) => t.has(n) || Y("Cannot " + e);
7
7
  var i = (n, t, e) => (b(n, t, "read from private field"), e ? e.call(n) : t.get(n)), f = (n, t, e) => t.has(n) ? Y("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, e), p = (n, t, e, r) => (b(n, t, "write to private field"), r ? r.call(n, e) : t.set(n, e), e), h = (n, t, e) => (b(n, t, "access private method"), e);
8
- import { r as Et, b as _, d as Lt, f as At, Q as z, l as J, e as Dt, D as N, h as xt, j as O, T as Mt, L as q, t as Ct, u as Nt, v as Rt, k as Ft, m as Z, n as Pt, o as qt, q as _t } from "./install-mdAUQvwW.js";
9
- import { VideoProvider as $t } from "./vidstack-video-C6v9_v4c.js";
10
- import { R as jt } from "./vidstack-DqAw8m9J-DfB8IrWr.js";
8
+ import { r as Et, b as _, d as Lt, f as At, Q as z, l as J, e as Dt, D as N, h as xt, j as O, T as Mt, L as q, t as Ct, u as Nt, v as Rt, k as Ft, m as Z, n as Pt, o as qt, q as _t } from "./install-Bz5xCw3_.js";
9
+ import { VideoProvider as $t } from "./vidstack-video-CDJVFZPt.js";
10
+ import { R as jt } from "./vidstack-DqAw8m9J-BjxYoxKC.js";
11
11
  function W(n) {
12
12
  try {
13
13
  return new Intl.DisplayNames(navigator.languages, { type: "language" }).of(n) ?? null;
@@ -5,9 +5,9 @@ var Q = (d) => {
5
5
  var vt = (d, t, s) => t in d ? Lt(d, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : d[t] = s;
6
6
  var G = (d, t, s) => vt(d, typeof t != "symbol" ? t + "" : t, s), O = (d, t, s) => t.has(d) || Q("Cannot " + s);
7
7
  var e = (d, t, s) => (O(d, t, "read from private field"), s ? s.call(d) : t.get(d)), T = (d, t, s) => t.has(d) ? Q("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(d) : t.set(d, s), l = (d, t, s, i) => (O(d, t, "write to private field"), i ? i.call(d, s) : t.set(d, s), s), r = (d, t, s) => (O(d, t, "access private method"), s);
8
- import { A as St, N as L, W as Z, z as At, D as tt, f as V, l as et, e as It, X as bt, L as Rt } from "./install-mdAUQvwW.js";
9
- import { R as wt } from "./vidstack-DqAw8m9J-DfB8IrWr.js";
10
- import { g as Mt, a as Dt, b as it, h as st, l as Nt, c as Pt } from "./vidstack-D2pY00kU-BYytRjCF.js";
8
+ import { A as St, N as L, W as Z, z as At, D as tt, f as V, l as et, e as It, X as bt, L as Rt } from "./install-Bz5xCw3_.js";
9
+ import { R as wt } from "./vidstack-DqAw8m9J-BjxYoxKC.js";
10
+ import { g as Mt, a as Dt, b as it, h as st, l as Nt, c as Pt } from "./vidstack-D2pY00kU-g2aAQYXG.js";
11
11
  var g, _, at;
12
12
  class _t {
13
13
  constructor(t) {
@@ -5,9 +5,9 @@ var q = (n) => {
5
5
  var ot = (n, t, i) => t in n ? rt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[t] = i;
6
6
  var _ = (n, t, i) => ot(n, typeof t != "symbol" ? t + "" : t, i), R = (n, t, i) => t.has(n) || q("Cannot " + i);
7
7
  var e = (n, t, i) => (R(n, t, "read from private field"), i ? i.call(n) : t.get(n)), f = (n, t, i) => t.has(n) ? q("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, i), p = (n, t, i, s) => (R(n, t, "write to private field"), s ? s.call(n, i) : t.set(n, i), i), a = (n, t, i) => (R(n, t, "access private method"), i);
8
- import { i as ht, b as C, d as at, f as O, Q as N, l as V, e as dt, D as x, h as ut, T as ct, j, L as $, k as lt, m as k, n as ft, o as pt, q as vt } from "./install-mdAUQvwW.js";
9
- import { VideoProvider as yt } from "./vidstack-video-C6v9_v4c.js";
10
- import { R as gt } from "./vidstack-DqAw8m9J-DfB8IrWr.js";
8
+ import { i as ht, b as C, d as at, f as O, Q as N, l as V, e as dt, D as x, h as ut, T as ct, j, L as $, k as lt, m as k, n as ft, o as pt, q as vt } from "./install-Bz5xCw3_.js";
9
+ import { VideoProvider as yt } from "./vidstack-video-CDJVFZPt.js";
10
+ import { R as gt } from "./vidstack-DqAw8m9J-BjxYoxKC.js";
11
11
  const Lt = (n) => ut(n);
12
12
  var T, h, o, D, b, r, E, M, U, F, Q, K, W, B, J, X, Y, z, G, Z, tt;
13
13
  class St {
@@ -5,8 +5,8 @@ var b = (i) => {
5
5
  var N = (i, t, e) => t in i ? $(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
6
6
  var y = (i, t, e) => N(i, typeof t != "symbol" ? t + "" : t, e), E = (i, t, e) => t.has(i) || b("Cannot " + e);
7
7
  var s = (i, t, e) => (E(i, t, "read from private field"), e ? e.call(i) : t.get(i)), r = (i, t, e) => t.has(i) ? b("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), c = (i, t, e, n) => (E(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), p = (i, t, e) => (E(i, t, "access private method"), e);
8
- import { s as U, w as V, x as A, y as j, z as C, l as q, D as z, E as F, T as Y, j as v } from "./install-mdAUQvwW.js";
9
- import { H as _, a as B } from "./vidstack-Bq6c3Bam-BZCmReL3.js";
8
+ import { s as U, w as V, x as A, y as j, z as C, l as q, D as z, E as F, T as Y, j as v } from "./install-Bz5xCw3_.js";
9
+ import { H as _, a as B } from "./vidstack-Bq6c3Bam-B7cxzEP8.js";
10
10
  var P, f, k, D, H;
11
11
  class G {
12
12
  constructor(t, e) {
@@ -5,9 +5,9 @@ var N = (r) => {
5
5
  var de = (r, c, e) => c in r ? ue(r, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[c] = e;
6
6
  var b = (r, c, e) => de(r, typeof c != "symbol" ? c + "" : c, e), S = (r, c, e) => c.has(r) || N("Cannot " + e);
7
7
  var t = (r, c, e) => (S(r, c, "read from private field"), e ? e.call(r) : c.get(r)), f = (r, c, e) => c.has(r) ? N("Cannot add the same private member more than once") : c instanceof WeakSet ? c.add(r) : c.set(r, e), u = (r, c, e, i) => (S(r, c, "write to private field"), i ? i.call(r, e) : c.set(r, e), e), o = (r, c, e) => (S(r, c, "access private method"), e);
8
- import { A as fe, M as U, N as C, d as pe, e as q, f as Q, b as ye, O as _, L as R, l as be, P as ke, T as ve, Q as W } from "./install-mdAUQvwW.js";
9
- import { R as me } from "./vidstack-DqAw8m9J-DfB8IrWr.js";
10
- import { E as we } from "./vidstack-DDXt6fpN-BkCEpqiv.js";
8
+ import { A as fe, M as U, N as C, d as pe, e as q, f as Q, b as ye, O as _, L as R, l as be, P as ke, T as ve, Q as W } from "./install-Bz5xCw3_.js";
9
+ import { R as me } from "./vidstack-DqAw8m9J-BjxYoxKC.js";
10
+ import { E as we } from "./vidstack-DDXt6fpN-BhyQ95X9.js";
11
11
  import { resolveVimeoVideoId as Pe, getVimeoVideoInfo as Te } from "./vidstack-krOAtKMi-B4IZWKdc.js";
12
12
  const Ce = [
13
13
  "bufferend",
@@ -5,8 +5,8 @@ var B = (r) => {
5
5
  var q = (r, n, e) => n in r ? A(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e;
6
6
  var T = (r, n, e) => q(r, typeof n != "symbol" ? n + "" : n, e), M = (r, n, e) => n.has(r) || B("Cannot " + e);
7
7
  var s = (r, n, e) => (M(r, n, "read from private field"), e ? e.call(r) : n.get(r)), p = (r, n, e) => n.has(r) ? B("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(r) : n.set(r, e), l = (r, n, e, t) => (M(r, n, "write to private field"), t ? t.call(r, e) : n.set(r, e), e), o = (r, n, e) => (M(r, n, "access private method"), e);
8
- import { A as z, M as G, d as H, e as J, b as K, O as Q, N as C, R as W, v as $, S as X } from "./install-mdAUQvwW.js";
9
- import { E as Z } from "./vidstack-DDXt6fpN-BkCEpqiv.js";
8
+ import { A as z, M as G, d as H, e as J, b as K, O as Q, N as C, R as W, v as $, S as X } from "./install-Bz5xCw3_.js";
9
+ import { E as Z } from "./vidstack-DDXt6fpN-BhyQ95X9.js";
10
10
  import { resolveYouTubeVideoId as ee } from "./vidstack-Dm1xEU9Q-qSXq3AI-.js";
11
11
  const b = {
12
12
  Ended: 0,
@@ -1,4 +1,4 @@
1
- import { p as d } from "./install-mdAUQvwW.js";
1
+ import { p as d } from "./install-Bz5xCw3_.js";
2
2
  import { inject as lt, effectScope as dt, reactive as vt, watch as J, computed as pt } from "vue";
3
3
  function ht() {
4
4
  return W().__VUE_DEVTOOLS_GLOBAL_HOOK__;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.2.12",
3
+ "version": "26.2.13",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
@@ -56,7 +56,7 @@
56
56
  "@vuepic/vue-datepicker": "^4.5.1",
57
57
  "@vueuse/components": "^13.0.0",
58
58
  "@webitel/api-services": "^0.0.105",
59
- "@webitel/styleguide": "^26.2.2",
59
+ "@webitel/styleguide": "^26.2.4",
60
60
  "autosize": "^6.0.1",
61
61
  "axios": "^1.8.3",
62
62
  "clipboard-copy": "^4.0.1",
@@ -38,18 +38,22 @@ import WtImage from './wt-image/wt-image.vue';
38
38
  import WtIndicator from './wt-indicator/wt-indicator.vue';
39
39
  import WtInput from './wt-input/wt-input.vue';
40
40
  import WtInputInfo from './wt-input-info/wt-input-info.vue';
41
+ import WtInputNumber from './wt-input-number/wt-input-number.vue';
42
+ import WtInputText from './wt-input-text/wt-input-text.vue';
41
43
  import WtIntersectionObserver from './wt-intersection-observer/wt-intersection-observer.vue';
42
44
  import WtItemLink from './wt-item-link/wt-item-link.vue';
43
45
  import WtLabel from './wt-label/wt-label.vue';
44
46
  import WtLoadBar from './wt-load-bar/wt-load-bar.vue';
45
47
  import WtLoader from './wt-loader/wt-loader.vue';
46
48
  import WtLogo from './wt-logo/wt-logo.vue';
49
+ import WtMessage from './wt-message/wt-message.vue';
47
50
  import WtNavigationBar from './wt-navigation-bar/wt-navigation-bar.vue';
48
51
  import WtNotification from './wt-notification/wt-notification.vue';
49
52
  import WtNotificationsBar from './wt-notifications-bar/wt-notifications-bar.vue';
50
53
  import WtPageHeader from './wt-page-header/wt-page-header.vue';
51
54
  import WtPageWrapper from './wt-page-wrapper/wt-page-wrapper.vue';
52
55
  import WtPagination from './wt-pagination/wt-pagination.vue';
56
+ import WtPassword from './wt-password/wt-password.vue';
53
57
  import WtPlayer from './wt-player/wt-player.vue';
54
58
  import WtPopover from './wt-popover/wt-popover.vue';
55
59
  import WtPopup from './wt-popup/wt-popup.vue';
@@ -86,6 +90,10 @@ const Components = {
86
90
  WtIcon,
87
91
  WtIndicator,
88
92
  WtInputInfo,
93
+ WtInputNumber,
94
+ WtInputText,
95
+ WtPassword,
96
+ WtMessage,
89
97
  WtButton,
90
98
  WtChip,
91
99
  WtConfirmDialog,
@@ -189,12 +197,15 @@ export {
189
197
  WtIndicator,
190
198
  WtInput,
191
199
  WtInputInfo,
200
+ WtInputNumber,
201
+ WtInputText,
192
202
  WtIntersectionObserver,
193
203
  WtItemLink,
194
204
  WtLabel,
195
205
  WtLoadBar,
196
206
  WtLoader,
197
207
  WtLogo,
208
+ WtMessage,
198
209
  WtNavigationBar,
199
210
  WtNavigationMenu,
200
211
  WtNotification,
@@ -202,6 +213,7 @@ export {
202
213
  WtPageHeader,
203
214
  WtPageWrapper,
204
215
  WtPagination,
216
+ WtPassword,
205
217
  WtPlayer,
206
218
  WtPopover,
207
219
  WtPopup,
@@ -0,0 +1,168 @@
1
+ <template>
2
+ <div class="wt-input-number">
3
+ <wt-label
4
+ v-if="hasLabel"
5
+ :disabled="disabled"
6
+ :for="inputId"
7
+ :invalid="invalid"
8
+ >
9
+ <slot
10
+ name="label"
11
+ v-bind="{ label }"
12
+ >
13
+ {{ requiredLabel }}
14
+ </slot>
15
+ </wt-label>
16
+ <p-input-group>
17
+ <p-input-group-addon
18
+ v-if="$slots.prefix"
19
+ class="wt-input-number__addon"
20
+ >
21
+ <slot name="prefix" />
22
+ </p-input-group-addon>
23
+ <p-input-number
24
+ :id="inputId"
25
+ ref="inputNumber"
26
+ v-model="model"
27
+ :disabled="disabled"
28
+ :invalid="invalid"
29
+ :min="min"
30
+ :max="max"
31
+ :step="step"
32
+ :min-fraction-digits="minFractionDigits"
33
+ :max-fraction-digits="maxFractionDigits"
34
+ :placeholder="placeholder || label"
35
+ :show-buttons="showButtons"
36
+ input-class="wt-input-number__input"
37
+ v-bind="$attrs"
38
+ @keyup="handleKeyup"
39
+ >
40
+ <template #incrementbuttonicon>
41
+ <wt-icon
42
+ :size="ComponentSize.SM"
43
+ :disabled="disabled"
44
+ icon="arrow-up"
45
+ />
46
+ </template>
47
+ <template #decrementbuttonicon>
48
+ <wt-icon
49
+ :size="ComponentSize.SM"
50
+ :disabled="disabled"
51
+ icon="arrow-down"
52
+ />
53
+ </template>
54
+ </p-input-number>
55
+ <p-input-group-addon
56
+ v-if="$slots.suffix"
57
+ class="wt-input-number__addon"
58
+ >
59
+ <slot name="suffix" />
60
+ </p-input-group-addon>
61
+ </p-input-group>
62
+ <wt-message
63
+ v-if="isValidation && validationText"
64
+ :color="getMessageColor"
65
+ :variant="MessageVariant.SIMPLE"
66
+ :size="ComponentSize.SM"
67
+ >
68
+ {{ validationText }}
69
+ </wt-message>
70
+ </div>
71
+ </template>
72
+
73
+ <script setup lang="ts">
74
+ import type { RegleFieldStatus } from '@regle/core';
75
+ import type { InputNumberProps } from 'primevue';
76
+ import { computed, defineModel, toRefs, useSlots, useTemplateRef } from 'vue';
77
+
78
+ import { useInputControl } from '../../composables';
79
+ import { ComponentSize, MessageColor,MessageVariant } from '../../enums';
80
+ import { useValidation } from '../../mixins/validationMixin/useValidation';
81
+
82
+ interface WtInputNumberProps extends /* @vue-ignore */ InputNumberProps {
83
+ label?: string;
84
+ placeholder?: string;
85
+ disabled?: boolean;
86
+ required?: boolean;
87
+ min?: number;
88
+ max?: number;
89
+ step?: number;
90
+ minFractionDigits?: number;
91
+ maxFractionDigits?: number;
92
+ showButtons?: boolean;
93
+ v?: Record<string, unknown>;
94
+ regleValidation?: RegleFieldStatus<number>;
95
+ customValidators?: unknown[];
96
+ }
97
+
98
+ const props = withDefaults(defineProps<WtInputNumberProps>(), {
99
+ label: '',
100
+ placeholder: '',
101
+ disabled: false,
102
+ required: false,
103
+ min: undefined,
104
+ max: undefined,
105
+ step: 1,
106
+ minFractionDigits: undefined,
107
+ maxFractionDigits: undefined,
108
+ showButtons: true,
109
+ v: null,
110
+ regleValidation: null,
111
+ customValidators: () => [],
112
+ });
113
+
114
+ const model = defineModel<number | null>({ default: null });
115
+
116
+ const inputNumber = useTemplateRef('inputNumber');
117
+
118
+ const inputId = `input-number-${Math.random().toString(36).slice(2, 11)}`;
119
+
120
+ const slots = useSlots();
121
+
122
+ const { v, customValidators, regleValidation } = toRefs(props);
123
+
124
+ const {
125
+ isValidation,
126
+ invalid,
127
+ validationText,
128
+ } = useValidation({
129
+ v,
130
+ customValidators,
131
+ regleValidation,
132
+ });
133
+
134
+ const {
135
+ focus,
136
+ handleKeyup
137
+ } = useInputControl(inputNumber);
138
+
139
+ const hasLabel = computed(() => {
140
+ return props.label || slots.label;
141
+ });
142
+
143
+ const requiredLabel = computed(() => {
144
+ return props.required ? `${props.label}*` : props.label;
145
+ });
146
+
147
+ const getMessageColor = computed(() => {
148
+ return invalid.value ? MessageColor.ERROR : MessageColor.SECONDARY;
149
+ });
150
+
151
+ defineExpose({
152
+ focus,
153
+ });
154
+ </script>
155
+
156
+ <style lang="scss" scoped>
157
+ @use '../../css/styleguide/styleguide' as *;
158
+
159
+ .wt-input-number__addon {
160
+ @extend %typo-body-1;
161
+ @include wt-placeholder;
162
+ }
163
+
164
+ :deep(.wt-input-number__input) {
165
+ @extend %typo-body-1;
166
+ @include wt-placeholder;
167
+ }
168
+ </style>
@@ -0,0 +1,147 @@
1
+ <template>
2
+ <div class="wt-input-text">
3
+ <wt-label
4
+ v-if="hasLabel"
5
+ :disabled="disabled"
6
+ :for="inputId"
7
+ :invalid="invalid"
8
+ >
9
+ <slot
10
+ name="label"
11
+ v-bind="{ label }"
12
+ >
13
+ {{ requiredLabel }}
14
+ </slot>
15
+ </wt-label>
16
+ <p-input-group>
17
+ <p-input-group-addon
18
+ v-if="$slots.prefix"
19
+ class="wt-input-text__addon"
20
+ >
21
+ <slot name="prefix" />
22
+ </p-input-group-addon>
23
+ <p-input-text
24
+ :id="inputId"
25
+ ref="inputText"
26
+ :model-value="model"
27
+ :disabled="disabled"
28
+ :invalid="invalid"
29
+ :placeholder="placeholder || label"
30
+ class="wt-input-text__input"
31
+ v-bind="$attrs"
32
+ @update:model-value="inputHandler"
33
+ @keyup="handleKeyup"
34
+ />
35
+ <p-input-group-addon
36
+ v-if="$slots.suffix"
37
+ class="wt-input-text__addon"
38
+ >
39
+ <slot name="suffix" />
40
+ </p-input-group-addon>
41
+ </p-input-group>
42
+ <wt-message
43
+ v-if="isValidation && validationText"
44
+ :color="getMessageColor"
45
+ :variant="MessageVariant.SIMPLE"
46
+ :size="ComponentSize.SM"
47
+ >
48
+ {{ validationText }}
49
+ </wt-message>
50
+ </div>
51
+ </template>
52
+
53
+ <script setup lang="ts">
54
+ import type { RegleFieldStatus } from '@regle/core';
55
+ import type { InputTextProps } from 'primevue';
56
+ import { computed, defineModel, toRefs, useSlots, useTemplateRef } from 'vue';
57
+
58
+ import { useInputControl } from '../../composables';
59
+ import { ComponentSize,MessageColor, MessageVariant } from '../../enums';
60
+ import { useValidation } from '../../mixins/validationMixin/useValidation';
61
+
62
+ interface WtInputTextProps extends /* @vue-ignore */ InputTextProps {
63
+ label?: string;
64
+ placeholder?: string;
65
+ disabled?: boolean;
66
+ required?: boolean;
67
+ preventTrim?: boolean;
68
+ v?: Record<string, unknown>;
69
+ regleValidation?: RegleFieldStatus<string>;
70
+ customValidators?: unknown[];
71
+ }
72
+
73
+ const props = withDefaults(defineProps<WtInputTextProps>(), {
74
+ label: '',
75
+ placeholder: '',
76
+ disabled: false,
77
+ required: false,
78
+ preventTrim: false,
79
+ v: null,
80
+ regleValidation: null,
81
+ customValidators: () => [],
82
+ });
83
+
84
+ const model = defineModel<string>({ default: '' });
85
+
86
+ const inputText = useTemplateRef('inputText');
87
+
88
+ const inputId = `input-text-${Math.random().toString(36).slice(2, 11)}`;
89
+
90
+ const emit = defineEmits(['update:modelValue']);
91
+
92
+ const slots = useSlots();
93
+
94
+ const { v, customValidators, regleValidation } = toRefs(props);
95
+
96
+ const {
97
+ isValidation,
98
+ invalid,
99
+ validationText,
100
+ } = useValidation({
101
+ v,
102
+ customValidators,
103
+ regleValidation,
104
+ });
105
+
106
+ const {
107
+ focus,
108
+ handleKeyup
109
+ } = useInputControl(inputText);
110
+
111
+ const hasLabel = computed(() => {
112
+ return props.label || slots.label;
113
+ });
114
+
115
+ const requiredLabel = computed(() => {
116
+ return props.required ? `${props.label}*` : props.label;
117
+ });
118
+
119
+ const inputHandler = (value) => {
120
+ const handledValue = props.preventTrim
121
+ ? value
122
+ : value.trim();
123
+ emit('update:modelValue', handledValue);
124
+ }
125
+
126
+ const getMessageColor = computed(() => {
127
+ return invalid.value ? MessageColor.ERROR : MessageColor.SECONDARY;
128
+ });
129
+
130
+ defineExpose({
131
+ focus,
132
+ });
133
+ </script>
134
+
135
+ <style lang="scss" scoped>
136
+ @use '../../css/styleguide/styleguide' as *;
137
+
138
+ .wt-input-text__addon {
139
+ @extend %typo-body-1;
140
+ @include wt-placeholder;
141
+ }
142
+
143
+ :deep(.wt-input-text__input) {
144
+ @extend %typo-body-1;
145
+ @include wt-placeholder;
146
+ }
147
+ </style>
@@ -0,0 +1,40 @@
1
+ <template>
2
+ <p-message
3
+ :severity="color"
4
+ :variant="variant"
5
+ :size="primevueSizeMap[size]"
6
+ v-bind="$attrs"
7
+ >
8
+ <slot />
9
+ <template #closeicon>
10
+ <wt-icon
11
+ icon="close"
12
+ :size="ComponentSize.SM"
13
+ />
14
+ </template>
15
+ </p-message>
16
+ </template>
17
+
18
+ <script setup lang="ts">
19
+ import type { MessageProps } from 'primevue';
20
+
21
+ import { ComponentSize,MessageColor, MessageVariant } from '../../enums';
22
+
23
+ interface WtMessageProps extends /* @vue-ignore */ MessageProps {
24
+ color?: MessageColor;
25
+ variant?: MessageVariant;
26
+ size?: ComponentSize;
27
+ }
28
+
29
+ withDefaults(defineProps<WtMessageProps>(), {
30
+ color: MessageColor.SECONDARY,
31
+ variant: MessageVariant.FILLED,
32
+ size: ComponentSize.MD,
33
+ });
34
+
35
+ const primevueSizeMap = {
36
+ [ComponentSize.SM]: 'small',
37
+ [ComponentSize.MD]: 'normal',
38
+ [ComponentSize.LG]: 'large',
39
+ }
40
+ </script>