@webitel/ui-sdk 25.10.85 → 25.10.87
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/{install-DT1loSQP.js → install-B4vWq9GQ.js} +1690 -1681
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +20 -20
- package/dist/{vidstack-Bq6c3Bam-CT0QVGdU.js → vidstack-Bq6c3Bam-Dt91l1hv.js} +2 -2
- package/dist/{vidstack-D2pY00kU-D128mPYz.js → vidstack-D2pY00kU-CAgSlCu-.js} +2 -2
- package/dist/{vidstack-DDXt6fpN-BMmKAmUw.js → vidstack-DDXt6fpN-hiGqsvbr.js} +1 -1
- package/dist/{vidstack-D_-9AA6_-3Ch9lmVZ.js → vidstack-D_-9AA6_-he5f8Zza.js} +1 -1
- package/dist/{vidstack-DqAw8m9J-hBJS-_DS.js → vidstack-DqAw8m9J-DHNsgwAI.js} +1 -1
- package/dist/{vidstack-audio-COPxNGJz.js → vidstack-audio-CmP4y3iO.js} +2 -2
- package/dist/{vidstack-dash-D2VW6ZxJ.js → vidstack-dash-9VXqSKEY.js} +3 -3
- package/dist/{vidstack-google-cast-13Au1UP5.js → vidstack-google-cast-CbsgguoY.js} +3 -3
- package/dist/{vidstack-hls-Y4Gacmaa.js → vidstack-hls-CTPMuz0x.js} +3 -3
- package/dist/{vidstack-video-CIlabfzY.js → vidstack-video-DtrrV9zJ.js} +2 -2
- package/dist/{vidstack-vimeo-BFnMoReU.js → vidstack-vimeo-CV9EDsve.js} +3 -3
- package/dist/{vidstack-youtube-mkMAQkkV.js → vidstack-youtube-BIX9nr1p.js} +2 -2
- package/package.json +1 -1
- package/src/components/wt-vidstack-player/components/layouts/video-layout.vue +2 -0
- package/src/components/wt-vidstack-player/components/panels/screen-sharing-control-panel/screen-sharing-control-panel.vue +7 -1
- package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +32 -4
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +2 -0
- package/src/enums/WtObject/WtObject.ts +3 -0
- package/src/locale/en/en.js +1 -1
- package/src/modules/Userinfo/v2/enums/ScopeClass/ScopeClass.ts +7 -0
- package/src/modules/Userinfo/v2/mappings/mappings.ts +14 -0
- package/types/components/wt-vidstack-player/components/layouts/video-layout.vue.d.ts +1 -0
- package/types/components/wt-vidstack-player/components/panels/screen-sharing-control-panel/screen-sharing-control-panel.vue.d.ts +1 -0
- package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +1 -0
- package/types/enums/WtObject/WtObject.d.ts +3 -0
- package/types/modules/Userinfo/v2/enums/ScopeClass/ScopeClass.d.ts +7 -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 M = (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 { y as Yt, x as ut, z as j, A as Zt, b as ti, E as nt, e as lt, B as _, C as ii, F as ei, d as si, G as ai, l as rt, H as dt, D as ni, L as Y, J as Z } from "./install-
|
|
9
|
-
import { R as ri } from "./vidstack-DqAw8m9J-
|
|
8
|
+
import { y as Yt, x as ut, z as j, A as Zt, b as ti, E as nt, e as lt, B as _, C as ii, F as ei, d as si, G as ai, l as rt, H as dt, D as ni, L as Y, J as Z } from "./install-B4vWq9GQ.js";
|
|
9
|
+
import { R as ri } from "./vidstack-DqAw8m9J-DHNsgwAI.js";
|
|
10
10
|
let q = null, z = [], J = [];
|
|
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, h as A, S as O, C as D, d as R, m as M } from "./install-
|
|
8
|
+
import { l as b, h as A, S as O, C as D, d as R, m as M } from "./install-B4vWq9GQ.js";
|
|
9
9
|
function G() {
|
|
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-
|
|
97
|
+
return new (await import("./vidstack-google-cast-CbsgguoY.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 w = (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) => w(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 { J as M, l as f, e as A, d as P, R as O, b as S } from "./install-
|
|
8
|
+
import { J as M, l as f, e as A, d as P, R as O, b as S } from "./install-B4vWq9GQ.js";
|
|
9
9
|
var r, o, b, m;
|
|
10
10
|
class W {
|
|
11
11
|
constructor(t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as d, a as i, I as l, e as m } from "./install-
|
|
1
|
+
import { c as d, a as i, I as l, e as m } from "./install-B4vWq9GQ.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 c = (i, t, s) => t.has(i) || l("Cannot " + s);
|
|
5
5
|
var r = (i, t, s) => (c(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) => (c(i, t, "write to private field"), f ? f.call(i, s) : t.set(i, s), s), m = (i, t, s) => (c(i, t, "access private method"), s);
|
|
6
|
-
import { j as p, t as u } from "./install-
|
|
6
|
+
import { j as p, t as u } from "./install-B4vWq9GQ.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-
|
|
5
|
-
import { H as d, a as u } from "./vidstack-Bq6c3Bam-
|
|
4
|
+
import { s as p } from "./install-B4vWq9GQ.js";
|
|
5
|
+
import { H as d, a as u } from "./vidstack-Bq6c3Bam-Dt91l1hv.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 { o as Et, b as _, p as Lt, d as At, Q as z, l as J, e as Dt, D as N, f as xt, g as O, T as Mt, L as q, q as Ct, r as Nt, t as Rt, h as Ft, j as Z, k as Pt, m as qt, n as _t } from "./install-
|
|
9
|
-
import { VideoProvider as $t } from "./vidstack-video-
|
|
10
|
-
import { R as jt } from "./vidstack-DqAw8m9J-
|
|
8
|
+
import { o as Et, b as _, p as Lt, d as At, Q as z, l as J, e as Dt, D as N, f as xt, g as O, T as Mt, L as q, q as Ct, r as Nt, t as Rt, h as Ft, j as Z, k as Pt, m as qt, n as _t } from "./install-B4vWq9GQ.js";
|
|
9
|
+
import { VideoProvider as $t } from "./vidstack-video-DtrrV9zJ.js";
|
|
10
|
+
import { R as jt } from "./vidstack-DqAw8m9J-DHNsgwAI.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 W = (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) || W("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) ? W("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 { y as St, K as L, U as Z, x as At, D as tt, d as V, l as et, e as It, V as bt, L as Rt } from "./install-
|
|
9
|
-
import { R as wt } from "./vidstack-DqAw8m9J-
|
|
10
|
-
import { g as Mt, a as Dt, b as it, h as st, l as Nt, c as Pt } from "./vidstack-D2pY00kU-
|
|
8
|
+
import { y as St, K as L, U as Z, x as At, D as tt, d as V, l as et, e as It, V as bt, L as Rt } from "./install-B4vWq9GQ.js";
|
|
9
|
+
import { R as wt } from "./vidstack-DqAw8m9J-DHNsgwAI.js";
|
|
10
|
+
import { g as Mt, a as Dt, b as it, h as st, l as Nt, c as Pt } from "./vidstack-D2pY00kU-CAgSlCu-.js";
|
|
11
11
|
var g, _, at;
|
|
12
12
|
class _t {
|
|
13
13
|
constructor(t) {
|
|
@@ -5,9 +5,9 @@ var N = (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) || N("Cannot " + i);
|
|
7
7
|
var e = (n, t, i) => (R(n, t, "read from private field"), i ? i.call(n) : t.get(n)), p = (n, t, i) => t.has(n) ? N("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, i), f = (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, p as at, d as O, Q as V, l as j, e as dt, D as x, f as ut, T as ct, g as k, L as $, h as lt, j as q, k as pt, m as ft, n as vt } from "./install-
|
|
9
|
-
import { VideoProvider as yt } from "./vidstack-video-
|
|
10
|
-
import { R as gt } from "./vidstack-DqAw8m9J-
|
|
8
|
+
import { i as ht, b as C, p as at, d as O, Q as V, l as j, e as dt, D as x, f as ut, T as ct, g as k, L as $, h as lt, j as q, k as pt, m as ft, n as vt } from "./install-B4vWq9GQ.js";
|
|
9
|
+
import { VideoProvider as yt } from "./vidstack-video-DtrrV9zJ.js";
|
|
10
|
+
import { R as gt } from "./vidstack-DqAw8m9J-DHNsgwAI.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 m = (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, u as V, v as A, w as q, x as C, l as F, D as Y, E as _, T as j, g as v } from "./install-
|
|
9
|
-
import { H as z, a as B } from "./vidstack-Bq6c3Bam-
|
|
8
|
+
import { s as U, u as V, v as A, w as q, x as C, l as F, D as Y, E as _, T as j, g as v } from "./install-B4vWq9GQ.js";
|
|
9
|
+
import { H as z, a as B } from "./vidstack-Bq6c3Bam-Dt91l1hv.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 { y as fe, J as U, K as C, p as pe, e as q, d as Q, b as ye, M as _, L as R, l as be, N as ke, T as ve, Q as J } from "./install-
|
|
9
|
-
import { R as me } from "./vidstack-DqAw8m9J-
|
|
10
|
-
import { E as we } from "./vidstack-DDXt6fpN-
|
|
8
|
+
import { y as fe, J as U, K as C, p as pe, e as q, d as Q, b as ye, M as _, L as R, l as be, N as ke, T as ve, Q as J } from "./install-B4vWq9GQ.js";
|
|
9
|
+
import { R as me } from "./vidstack-DqAw8m9J-DHNsgwAI.js";
|
|
10
|
+
import { E as we } from "./vidstack-DDXt6fpN-hiGqsvbr.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 N = (r, n, e) => n in r ? K(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e;
|
|
6
6
|
var T = (r, n, e) => N(r, typeof n != "symbol" ? n + "" : n, e), R = (r, n, e) => n.has(r) || B("Cannot " + e);
|
|
7
7
|
var s = (r, n, e) => (R(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) => (R(r, n, "write to private field"), t ? t.call(r, e) : n.set(r, e), e), o = (r, n, e) => (R(r, n, "access private method"), e);
|
|
8
|
-
import { y as q, J as z, p as A, e as G, b as H, M as Q, K as C, O as W, t as $, P as X } from "./install-
|
|
9
|
-
import { E as Z } from "./vidstack-DDXt6fpN-
|
|
8
|
+
import { y as q, J as z, p as A, e as G, b as H, M as Q, K as C, O as W, t as $, P as X } from "./install-B4vWq9GQ.js";
|
|
9
|
+
import { E as Z } from "./vidstack-DDXt6fpN-hiGqsvbr.js";
|
|
10
10
|
import { resolveYouTubeVideoId as ee } from "./vidstack-Dm1xEU9Q-qSXq3AI-.js";
|
|
11
11
|
const b = {
|
|
12
12
|
Ended: 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.10.
|
|
3
|
+
"version": "25.10.87",
|
|
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",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
<screen-sharing-control-panel
|
|
21
21
|
:session="props.session"
|
|
22
22
|
:screenshot-status="props.screenshotStatus"
|
|
23
|
+
:screenshot-is-loading="screenshotIsLoading"
|
|
23
24
|
@close-session="emit('close-session')"
|
|
24
25
|
@make-screenshot="emit('make-screenshot')"
|
|
25
26
|
@toggle-record="emit('toggle-record')"
|
|
@@ -48,6 +49,7 @@ const props = defineProps<{
|
|
|
48
49
|
mode: WtVidstakPlayerControlsMode;
|
|
49
50
|
session: WtVidstackPlayerSession
|
|
50
51
|
screenshotStatus: ScreenshotStatus
|
|
52
|
+
screenshotIsLoading: boolean
|
|
51
53
|
}>();
|
|
52
54
|
|
|
53
55
|
const emit = defineEmits<{
|
|
@@ -11,9 +11,10 @@
|
|
|
11
11
|
contains-icon
|
|
12
12
|
variant="outlined"
|
|
13
13
|
color="secondary"
|
|
14
|
+
:loading="props.screenshotIsLoading"
|
|
14
15
|
:size="size"
|
|
15
16
|
:icon="screenShotIcon"
|
|
16
|
-
@click="
|
|
17
|
+
@click="makeScreenshot"
|
|
17
18
|
/>
|
|
18
19
|
|
|
19
20
|
<wt-button
|
|
@@ -61,6 +62,7 @@ import {WtVidstackPlayerSession} from "../../../types/WtVidstackPlayerSession";
|
|
|
61
62
|
interface Props {
|
|
62
63
|
session: WtVidstackPlayerSession
|
|
63
64
|
screenshotStatus: ScreenshotStatus | null
|
|
65
|
+
screenshotIsLoading: boolean
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
const props = defineProps<Props>();
|
|
@@ -109,6 +111,10 @@ const closeSession = () => {
|
|
|
109
111
|
emit('close-session')
|
|
110
112
|
};
|
|
111
113
|
|
|
114
|
+
const makeScreenshot = () => {
|
|
115
|
+
emit('make-screenshot')
|
|
116
|
+
};
|
|
117
|
+
|
|
112
118
|
onUnmounted(() => {
|
|
113
119
|
stopTimer();
|
|
114
120
|
});
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
@toggle="handleFullscreen"
|
|
22
22
|
/>
|
|
23
23
|
<toggle-button
|
|
24
|
-
v-if="size !== ComponentSize.LG"
|
|
25
24
|
primary-icon="expand"
|
|
26
25
|
secondary-icon="collapse"
|
|
27
26
|
color="on-dark"
|
|
@@ -58,12 +57,41 @@ const emit = defineEmits<{
|
|
|
58
57
|
'close': [],
|
|
59
58
|
}>();
|
|
60
59
|
|
|
60
|
+
/**
|
|
61
|
+
* @author: Oleksandr Palonnyi
|
|
62
|
+
*
|
|
63
|
+
* [WTEL-7993](https://webitel.atlassian.net/browse/WTEL-7993)
|
|
64
|
+
*
|
|
65
|
+
* For the future: implement fullscreen state to separate it from LG size.
|
|
66
|
+
*
|
|
67
|
+
* Link with discussions - https://github.com/webitel/webitel-ui-sdk/pull/873#discussion_r2478239881
|
|
68
|
+
* */
|
|
61
69
|
const handleFullscreen = (value: boolean) => {
|
|
62
|
-
|
|
70
|
+
if (value) {
|
|
71
|
+
if (size.value !== ComponentSize.LG) {
|
|
72
|
+
changeSize(ComponentSize.LG)
|
|
73
|
+
}
|
|
74
|
+
} else if (size.value === ComponentSize.LG) {
|
|
75
|
+
exitFullscreen()
|
|
76
|
+
changeSize(ComponentSize.SM)
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const handlePlayerSize = () => {
|
|
81
|
+
if (size.value === ComponentSize.SM) {
|
|
82
|
+
changeSize(ComponentSize.MD)
|
|
83
|
+
} else if (size.value === ComponentSize.MD) {
|
|
84
|
+
changeSize(ComponentSize.SM)
|
|
85
|
+
} else if (size.value === ComponentSize.LG) {
|
|
86
|
+
exitFullscreen()
|
|
87
|
+
changeSize(ComponentSize.MD)
|
|
88
|
+
}
|
|
63
89
|
}
|
|
64
90
|
|
|
65
|
-
const
|
|
66
|
-
|
|
91
|
+
const exitFullscreen = () => {
|
|
92
|
+
if (document.fullscreenElement) {
|
|
93
|
+
document.exitFullscreen()
|
|
94
|
+
}
|
|
67
95
|
}
|
|
68
96
|
|
|
69
97
|
const handleKeyUp = (event) => {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
:username="props.username"
|
|
25
25
|
:session="props.session"
|
|
26
26
|
:screenshot-status="props.screenshotStatus"
|
|
27
|
+
:screenshot-is-loading="screenshotIsLoading"
|
|
27
28
|
:mode="mode"
|
|
28
29
|
@close-player="emit('close')"
|
|
29
30
|
@close-session="emit('close-session')"
|
|
@@ -69,6 +70,7 @@ interface Props {
|
|
|
69
70
|
mode: WtVidstakPlayerControlsMode;
|
|
70
71
|
session?: WtVidstackPlayerSession
|
|
71
72
|
screenshotStatus: ScreenshotStatus
|
|
73
|
+
screenshotIsLoading: boolean
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -59,6 +59,9 @@ export const WtObject = {
|
|
|
59
59
|
AuditForm: 'auditForm',
|
|
60
60
|
AuditRating: 'auditRating',
|
|
61
61
|
QuickReply: 'quickReply',
|
|
62
|
+
ListNumber: 'listNumber',
|
|
63
|
+
AgentWorkingCondition: 'agentWorkingCondition',
|
|
64
|
+
FilePolicy: 'filePolicy',
|
|
62
65
|
} as const;
|
|
63
66
|
|
|
64
67
|
export type WtObject = (typeof WtObject)[keyof typeof WtObject];
|
package/src/locale/en/en.js
CHANGED
|
@@ -127,7 +127,7 @@ export default deepmerge({
|
|
|
127
127
|
contact: 'Contact | Contacts',
|
|
128
128
|
column: 'Column | Columns',
|
|
129
129
|
notification: 'Notification | Notifications',
|
|
130
|
-
screencast: '
|
|
130
|
+
screencast: 'Screen recordings',
|
|
131
131
|
extension: 'Extension',
|
|
132
132
|
password: 'Password',
|
|
133
133
|
number: 'Number',
|
|
@@ -44,6 +44,13 @@ export const ScopeClass = {
|
|
|
44
44
|
CaseComments: 'case_comments',
|
|
45
45
|
AuditForm: 'cc_audit_form',
|
|
46
46
|
AuditRating: 'rating',
|
|
47
|
+
PauseTemplates: 'pause_templates',
|
|
48
|
+
ShiftTemplates: 'shift_templates',
|
|
49
|
+
WorkingConditions: 'working_conditions',
|
|
50
|
+
AgentWorkingConditions: 'agent_working_conditions',
|
|
51
|
+
ListNumber: 'cc_list_number',
|
|
52
|
+
CaseLookups: 'case_lookups',
|
|
53
|
+
FilesPolicy: 'files_policy',
|
|
47
54
|
Custom: 'custom',
|
|
48
55
|
} as const;
|
|
49
56
|
|
|
@@ -67,6 +67,20 @@ export const mapScopeClassToWtObjects: Record<ScopeClass, WtObject[]> = {
|
|
|
67
67
|
[ScopeClass.CaseComments]: [WtObject.CaseComment],
|
|
68
68
|
[ScopeClass.AuditForm]: [WtObject.AuditForm],
|
|
69
69
|
[ScopeClass.AuditRating]: [WtObject.AuditRating],
|
|
70
|
+
[ScopeClass.PauseTemplates]: [WtObject.PauseTemplate],
|
|
71
|
+
[ScopeClass.ShiftTemplates]: [WtObject.ShiftTemplate],
|
|
72
|
+
[ScopeClass.WorkingConditions]: [WtObject.WorkingCondition],
|
|
73
|
+
[ScopeClass.AgentWorkingConditions]: [WtObject.AgentWorkingCondition],
|
|
74
|
+
[ScopeClass.ListNumber]: [WtObject.ListNumber],
|
|
75
|
+
[ScopeClass.CaseLookups]: [
|
|
76
|
+
WtObject.Slas,
|
|
77
|
+
WtObject.ServiceCatalog,
|
|
78
|
+
WtObject.Priorities,
|
|
79
|
+
WtObject.Status,
|
|
80
|
+
WtObject.Source,
|
|
81
|
+
WtObject.CloseReasonGroup,
|
|
82
|
+
],
|
|
83
|
+
[ScopeClass.FilesPolicy]: [WtObject.FilePolicy],
|
|
70
84
|
[ScopeClass.Custom]: [WtObject.CustomLookup],
|
|
71
85
|
};
|
|
72
86
|
|
|
@@ -8,6 +8,7 @@ type __VLS_Props = {
|
|
|
8
8
|
mode: WtVidstakPlayerControlsMode;
|
|
9
9
|
session: WtVidstackPlayerSession;
|
|
10
10
|
screenshotStatus: ScreenshotStatus;
|
|
11
|
+
screenshotIsLoading: boolean;
|
|
11
12
|
};
|
|
12
13
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
14
|
"close-session": () => any;
|
|
@@ -3,6 +3,7 @@ import { WtVidstackPlayerSession } from "../../../types/WtVidstackPlayerSession"
|
|
|
3
3
|
interface Props {
|
|
4
4
|
session: WtVidstackPlayerSession;
|
|
5
5
|
screenshotStatus: ScreenshotStatus | null;
|
|
6
|
+
screenshotIsLoading: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
9
|
"close-session": () => any;
|
|
@@ -18,6 +18,7 @@ interface Props {
|
|
|
18
18
|
mode: WtVidstakPlayerControlsMode;
|
|
19
19
|
session?: WtVidstackPlayerSession;
|
|
20
20
|
screenshotStatus: ScreenshotStatus;
|
|
21
|
+
screenshotIsLoading: boolean;
|
|
21
22
|
}
|
|
22
23
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
24
|
close: () => any;
|
|
@@ -59,5 +59,8 @@ export declare const WtObject: {
|
|
|
59
59
|
readonly AuditForm: "auditForm";
|
|
60
60
|
readonly AuditRating: "auditRating";
|
|
61
61
|
readonly QuickReply: "quickReply";
|
|
62
|
+
readonly ListNumber: "listNumber";
|
|
63
|
+
readonly AgentWorkingCondition: "agentWorkingCondition";
|
|
64
|
+
readonly FilePolicy: "filePolicy";
|
|
62
65
|
};
|
|
63
66
|
export type WtObject = (typeof WtObject)[keyof typeof WtObject];
|
|
@@ -43,6 +43,13 @@ export declare const ScopeClass: {
|
|
|
43
43
|
readonly CaseComments: "case_comments";
|
|
44
44
|
readonly AuditForm: "cc_audit_form";
|
|
45
45
|
readonly AuditRating: "rating";
|
|
46
|
+
readonly PauseTemplates: "pause_templates";
|
|
47
|
+
readonly ShiftTemplates: "shift_templates";
|
|
48
|
+
readonly WorkingConditions: "working_conditions";
|
|
49
|
+
readonly AgentWorkingConditions: "agent_working_conditions";
|
|
50
|
+
readonly ListNumber: "cc_list_number";
|
|
51
|
+
readonly CaseLookups: "case_lookups";
|
|
52
|
+
readonly FilesPolicy: "files_policy";
|
|
46
53
|
readonly Custom: "custom";
|
|
47
54
|
};
|
|
48
55
|
export type ScopeClass = (typeof ScopeClass)[keyof typeof ScopeClass];
|