@webitel/ui-sdk 25.10.70 → 25.10.72
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-CjvoevkY.js → install-DNvjuWQ0.js} +8779 -8779
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +193 -188
- package/dist/{vidstack-Bq6c3Bam-CWFzKZjp.js → vidstack-Bq6c3Bam-BsSUhxLm.js} +2 -2
- package/dist/{vidstack-D2pY00kU-Dciejh67.js → vidstack-D2pY00kU-uz5v89FQ.js} +2 -2
- package/dist/{vidstack-DDXt6fpN-BKvZvG7_.js → vidstack-DDXt6fpN-D-8VF1ea.js} +1 -1
- package/dist/{vidstack-D_-9AA6_-D8BoTZaT.js → vidstack-D_-9AA6_-Brg3sabu.js} +1 -1
- package/dist/{vidstack-DqAw8m9J-Dfgc_T0v.js → vidstack-DqAw8m9J-jtS1xul0.js} +1 -1
- package/dist/{vidstack-audio-ShtBWti0.js → vidstack-audio-DBPBBF2S.js} +2 -2
- package/dist/{vidstack-dash-_LMRaHVf.js → vidstack-dash-BnzWkd8U.js} +3 -3
- package/dist/{vidstack-google-cast-yIg-MfbM.js → vidstack-google-cast-CFMJUhjn.js} +3 -3
- package/dist/{vidstack-hls-DLyeImmL.js → vidstack-hls-Cl5nfSHW.js} +3 -3
- package/dist/{vidstack-video-Dp1ZjLt9.js → vidstack-video-Bf0QS0kJ.js} +2 -2
- package/dist/{vidstack-vimeo-I2_5Xgn3.js → vidstack-vimeo-CY0XizWQ.js} +3 -3
- package/dist/{vidstack-youtube-B68cnZDv.js → vidstack-youtube-DZAaEhDj.js} +2 -2
- package/package.json +1 -1
- package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-wfm.svg +47 -0
- package/src/components/wt-navigation-bar/assets/light/app-logo-light-wfm.svg +47 -0
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +5 -3
- package/src/components/wt-vidstack-player/components/layouts/video-layout.vue +11 -30
- package/src/components/wt-vidstack-player/components/panels/media-control-panel/components/buttons/play-button.vue +24 -3
- package/src/components/wt-vidstack-player/components/panels/media-control-panel/media-control-panel.vue +22 -9
- package/src/components/wt-vidstack-player/components/panels/screen-sharing-control-panel/screen-sharing-control-panel.vue +15 -42
- package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +6 -7
- package/src/components/wt-vidstack-player/types/ScreenshotStatus.ts +1 -0
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +10 -19
- package/src/modules/Userinfo/v2/stores/accessStore.ts +1 -1
- package/src/plugins/primevue/theme/extend/player/player.js +6 -1
- package/types/components/wt-navigation-bar/wt-navigation-bar.vue.d.ts +1 -1
- package/types/components/wt-vidstack-player/components/layouts/video-layout.vue.d.ts +6 -0
- package/types/components/wt-vidstack-player/components/panels/screen-sharing-control-panel/screen-sharing-control-panel.vue.d.ts +6 -0
- package/types/components/wt-vidstack-player/types/ScreenshotStatus.d.ts +1 -0
- package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +6 -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-DNvjuWQ0.js";
|
|
9
|
+
import { R as ri } from "./vidstack-DqAw8m9J-jtS1xul0.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-DNvjuWQ0.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-CFMJUhjn.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-DNvjuWQ0.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-DNvjuWQ0.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-DNvjuWQ0.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-DNvjuWQ0.js";
|
|
5
|
+
import { H as d, a as u } from "./vidstack-Bq6c3Bam-BsSUhxLm.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-DNvjuWQ0.js";
|
|
9
|
+
import { VideoProvider as $t } from "./vidstack-video-Bf0QS0kJ.js";
|
|
10
|
+
import { R as jt } from "./vidstack-DqAw8m9J-jtS1xul0.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-DNvjuWQ0.js";
|
|
9
|
+
import { R as wt } from "./vidstack-DqAw8m9J-jtS1xul0.js";
|
|
10
|
+
import { g as Mt, a as Dt, b as it, h as st, l as Nt, c as Pt } from "./vidstack-D2pY00kU-uz5v89FQ.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-DNvjuWQ0.js";
|
|
9
|
+
import { VideoProvider as yt } from "./vidstack-video-Bf0QS0kJ.js";
|
|
10
|
+
import { R as gt } from "./vidstack-DqAw8m9J-jtS1xul0.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-DNvjuWQ0.js";
|
|
9
|
+
import { H as z, a as B } from "./vidstack-Bq6c3Bam-BsSUhxLm.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-DNvjuWQ0.js";
|
|
9
|
+
import { R as me } from "./vidstack-DqAw8m9J-jtS1xul0.js";
|
|
10
|
+
import { E as we } from "./vidstack-DDXt6fpN-D-8VF1ea.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-DNvjuWQ0.js";
|
|
9
|
+
import { E as Z } from "./vidstack-DDXt6fpN-D-8VF1ea.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.72",
|
|
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",
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<svg width="80" height="16" viewBox="0 0 80 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_14446_7699)">
|
|
3
|
+
<path d="M65.8376 1C66.0624 1 66.2708 1.12287 66.3864 1.32367L70.4512 8.38056C70.6998 8.81212 71.3002 8.81212 71.5488 8.38056L75.6136 1.32367C75.7292 1.12287 75.9376 1 76.1624 1H78.36C78.7135 1 79 1.29848 79 1.66667V14.3333C79 14.7015 78.7135 15 78.36 15L75.8 15C75.4465 15 75.16 14.7015 75.16 14.3333V10.6579C75.16 9.98807 74.3181 9.73655 73.9773 10.3045L72.148 13.3533C72.031 13.5483 71.8259 13.6667 71.6053 13.6667H70.3947C70.1741 13.6667 69.969 13.5483 69.852 13.3533L68.0227 10.3045C67.6819 9.73655 66.84 9.98807 66.84 10.6579V14.3333C66.84 14.7015 66.5535 15 66.2 15H63.64C63.2865 15 63 14.7015 63 14.3333V1.66667C63 1.29848 63.2865 1 63.64 1H65.8376Z" fill="#EBEDF2"/>
|
|
4
|
+
<path d="M53.2353 14.3333C53.2353 14.7015 52.9193 15 52.5294 15H49.7059C49.316 15 49 14.7015 49 14.3333V1.66667C49 1.29848 49.316 1 49.7059 1H60.2941C60.684 1 61 1.29848 61 1.66667V3.66667C61 4.03486 60.684 4.33333 60.2941 4.33333H53.9412C53.5513 4.33333 53.2353 4.63181 53.2353 5V6.33333C53.2353 6.70152 53.5513 7 53.9412 7H58.8824C59.2722 7 59.5882 7.29848 59.5882 7.66667V9.66667C59.5882 10.0349 59.2722 10.3333 58.8824 10.3333H53.9412C53.5513 10.3333 53.2353 10.6318 53.2353 11V14.3333Z" fill="#EBEDF2"/>
|
|
5
|
+
<path d="M33.9341 1.46673C34.0181 1.18896 34.2659 1 34.5461 1H37.4539C37.7341 1 37.9819 1.18896 38.0659 1.46673L40.0046 7.87482C40.1928 8.49689 41.04 8.49721 41.2286 7.87529L43.1726 1.46626C43.2568 1.18873 43.5045 1 43.7845 1H46.3579C46.7937 1 47.1026 1.44164 46.9682 1.87231L43.0152 14.539C42.9294 14.8138 42.683 15 42.4049 15H39.2527C38.9769 15 38.7319 14.8167 38.6443 14.5449L36.6084 8.22269C36.413 7.61587 35.587 7.61587 35.3916 8.22269L33.3557 14.5449C33.2681 14.8167 33.0231 15 32.7473 15H29.5951C29.317 15 29.0706 14.8138 28.9848 14.539L25.0318 1.87231C24.8974 1.44164 25.2063 1 25.6421 1H28.2155C28.4956 1 28.7432 1.18873 28.8274 1.46626L30.7714 7.87529C30.96 8.49721 31.8072 8.49689 31.9954 7.87482L33.9341 1.46673Z" fill="#EBEDF2"/>
|
|
6
|
+
<path d="M8.31726 11.6156C7.13826 10.4515 7.13826 8.56412 8.31726 7.40002L8.5445 7.17566L10.9065 9.50781L8.5445 11.84L8.31726 11.6156Z" fill="#2AA012"/>
|
|
7
|
+
<path d="M1.58702 10.9072C0.804325 10.1344 0.804325 8.88145 1.58702 8.10864L2.53183 7.17578L4.89383 9.50794L2.53183 11.8401L1.58702 10.9072Z" fill="#A07112"/>
|
|
8
|
+
<path d="M17.0477 1.57961C16.265 0.806798 14.996 0.806798 14.2133 1.57961L13.2685 2.51247L15.6305 4.84462L17.9925 2.51247L17.0477 1.57961Z" fill="#3CE61A"/>
|
|
9
|
+
<path d="M11.0351 1.57961C10.2524 0.806798 8.98336 0.806798 8.20066 1.57961L7.25586 2.51247L9.61787 4.84462L11.9799 2.51247L11.0351 1.57961Z" fill="#E6A21A"/>
|
|
10
|
+
<path d="M8.54456 7.17578L10.9066 4.84363L13.2686 7.17578L10.9066 9.50794L8.54456 7.17578Z" fill="#30B814"/>
|
|
11
|
+
<path d="M2.53186 7.17578L4.89387 4.84363L7.25587 7.17578L4.89387 9.50794L2.53186 7.17578Z" fill="#B88114"/>
|
|
12
|
+
<path d="M10.9065 9.50781L13.2685 7.17566L15.6305 9.50781L13.2685 11.84L10.9065 9.50781Z" fill="#2AA112"/>
|
|
13
|
+
<path d="M17.9926 11.8398L20.3546 9.50769L22.7166 11.8398L20.3546 14.172L17.9926 11.8398Z" fill="#248A0F"/>
|
|
14
|
+
<path d="M8.54456 11.8398L10.9066 9.50769L13.2686 11.8398L10.9066 14.172L8.54456 11.8398Z" fill="#248A0F"/>
|
|
15
|
+
<path d="M2.53186 11.8398L4.89387 9.50769L7.25587 11.8398L4.89387 14.172L2.53186 11.8398Z" fill="#8A610F"/>
|
|
16
|
+
<path d="M20.3546 9.50781L22.7166 7.17566L25.0786 9.50781L22.7166 11.84L20.3546 9.50781Z" fill="#2AA112"/>
|
|
17
|
+
<path d="M10.9065 4.84375L13.2685 2.5116L15.6305 4.84375L13.2685 7.1759L10.9065 4.84375Z" fill="#36CF17"/>
|
|
18
|
+
<path d="M4.8938 4.84375L7.2558 2.5116L9.61781 4.84375L7.2558 7.1759L4.8938 4.84375Z" fill="#CF9117"/>
|
|
19
|
+
<path d="M13.2686 7.17578L15.6306 4.84363L17.9926 7.17578L15.6306 9.50794L13.2686 7.17578Z" fill="#30B814"/>
|
|
20
|
+
<path d="M15.6306 4.84375L17.9926 2.5116L20.3546 4.84375L17.9926 7.1759L15.6306 4.84375Z" fill="#36CE17"/>
|
|
21
|
+
<path d="M15.6306 9.50781L17.9926 7.17566L20.3546 9.50781L17.9926 11.84L15.6306 9.50781Z" fill="#2AA112"/>
|
|
22
|
+
<path d="M17.9926 7.17578L20.3546 4.84363L22.7166 7.17578L20.3546 9.50794L17.9926 7.17578Z" fill="#30B814"/>
|
|
23
|
+
<path d="M13.2686 11.8398L15.6306 9.50769L17.9926 11.8398L15.6306 14.172L13.2686 11.8398Z" fill="#248A0F"/>
|
|
24
|
+
<g filter="url(#filter0_d_14446_7699)">
|
|
25
|
+
<path d="M10.9066 14.1727L14.2134 10.9077C14.9961 10.1349 16.2651 10.1349 17.0478 10.9077L20.3546 14.1727H10.9066Z" fill="url(#paint0_linear_14446_7699)"/>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
<defs>
|
|
29
|
+
<filter id="filter0_d_14446_7699" x="8.90662" y="9.32812" width="13.448" height="7.84375" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
30
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
31
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
32
|
+
<feOffset dy="1"/>
|
|
33
|
+
<feGaussianBlur stdDeviation="1"/>
|
|
34
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
35
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
36
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_14446_7699"/>
|
|
37
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_14446_7699" result="shape"/>
|
|
38
|
+
</filter>
|
|
39
|
+
<linearGradient id="paint0_linear_14446_7699" x1="15.5356" y1="10.4041" x2="15.5356" y2="14.3619" gradientUnits="userSpaceOnUse">
|
|
40
|
+
<stop stop-color="white"/>
|
|
41
|
+
<stop offset="1" stop-color="#D0D0D0"/>
|
|
42
|
+
</linearGradient>
|
|
43
|
+
<clipPath id="clip0_14446_7699">
|
|
44
|
+
<rect width="80" height="16" fill="white"/>
|
|
45
|
+
</clipPath>
|
|
46
|
+
</defs>
|
|
47
|
+
</svg>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<svg width="80" height="16" viewBox="0 0 80 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_14446_7650)">
|
|
3
|
+
<path d="M65.8376 1C66.0624 1 66.2708 1.12287 66.3864 1.32367L70.4512 8.38056C70.6998 8.81212 71.3002 8.81212 71.5488 8.38056L75.6136 1.32367C75.7292 1.12287 75.9376 1 76.1624 1H78.36C78.7135 1 79 1.29848 79 1.66667V14.3333C79 14.7015 78.7135 15 78.36 15L75.8 15C75.4465 15 75.16 14.7015 75.16 14.3333V10.6579C75.16 9.98807 74.3181 9.73655 73.9773 10.3045L72.148 13.3533C72.031 13.5483 71.8259 13.6667 71.6053 13.6667H70.3947C70.1741 13.6667 69.969 13.5483 69.852 13.3533L68.0227 10.3045C67.6819 9.73655 66.84 9.98807 66.84 10.6579V14.3333C66.84 14.7015 66.5535 15 66.2 15H63.64C63.2865 15 63 14.7015 63 14.3333V1.66667C63 1.29848 63.2865 1 63.64 1H65.8376Z" fill="#313749"/>
|
|
4
|
+
<path d="M53.2353 14.3333C53.2353 14.7015 52.9193 15 52.5294 15H49.7059C49.316 15 49 14.7015 49 14.3333V1.66667C49 1.29848 49.316 1 49.7059 1H60.2941C60.684 1 61 1.29848 61 1.66667V3.66667C61 4.03486 60.684 4.33333 60.2941 4.33333H53.9412C53.5513 4.33333 53.2353 4.63181 53.2353 5V6.33333C53.2353 6.70152 53.5513 7 53.9412 7H58.8824C59.2722 7 59.5882 7.29848 59.5882 7.66667V9.66667C59.5882 10.0349 59.2722 10.3333 58.8824 10.3333H53.9412C53.5513 10.3333 53.2353 10.6318 53.2353 11V14.3333Z" fill="#313749"/>
|
|
5
|
+
<path d="M33.9341 1.46673C34.0181 1.18896 34.2659 1 34.5461 1H37.4539C37.7341 1 37.9819 1.18896 38.0659 1.46673L40.0046 7.87482C40.1928 8.49689 41.04 8.49721 41.2286 7.87529L43.1726 1.46626C43.2568 1.18873 43.5045 1 43.7845 1H46.3579C46.7937 1 47.1026 1.44164 46.9682 1.87231L43.0152 14.539C42.9294 14.8138 42.683 15 42.4049 15H39.2527C38.9769 15 38.7319 14.8167 38.6443 14.5449L36.6084 8.22269C36.413 7.61587 35.587 7.61587 35.3916 8.22269L33.3557 14.5449C33.2681 14.8167 33.0231 15 32.7473 15H29.5951C29.317 15 29.0706 14.8138 28.9848 14.539L25.0318 1.87231C24.8974 1.44164 25.2063 1 25.6421 1H28.2155C28.4956 1 28.7432 1.18873 28.8274 1.46626L30.7714 7.87529C30.96 8.49721 31.8072 8.49689 31.9954 7.87482L33.9341 1.46673Z" fill="#313749"/>
|
|
6
|
+
<path d="M8.31726 11.6156C7.13826 10.4515 7.13826 8.56412 8.31726 7.40002L8.5445 7.17566L10.9065 9.50781L8.5445 11.84L8.31726 11.6156Z" fill="#2AA012"/>
|
|
7
|
+
<path d="M1.58702 10.9072C0.804325 10.1344 0.804325 8.88145 1.58702 8.10864L2.53183 7.17578L4.89383 9.50794L2.53183 11.8401L1.58702 10.9072Z" fill="#A07112"/>
|
|
8
|
+
<path d="M17.0478 1.57961C16.2651 0.806798 14.9961 0.806798 14.2134 1.57961L13.2686 2.51247L15.6306 4.84462L17.9926 2.51247L17.0478 1.57961Z" fill="#3CE61A"/>
|
|
9
|
+
<path d="M11.0351 1.57961C10.2524 0.806798 8.98336 0.806798 8.20066 1.57961L7.25586 2.51247L9.61787 4.84462L11.9799 2.51247L11.0351 1.57961Z" fill="#E6A21A"/>
|
|
10
|
+
<path d="M8.54456 7.17578L10.9066 4.84363L13.2686 7.17578L10.9066 9.50794L8.54456 7.17578Z" fill="#30B814"/>
|
|
11
|
+
<path d="M2.53186 7.17578L4.89387 4.84363L7.25587 7.17578L4.89387 9.50794L2.53186 7.17578Z" fill="#B88114"/>
|
|
12
|
+
<path d="M10.9065 9.50781L13.2685 7.17566L15.6305 9.50781L13.2685 11.84L10.9065 9.50781Z" fill="#2AA112"/>
|
|
13
|
+
<path d="M17.9926 11.8398L20.3546 9.50769L22.7166 11.8398L20.3546 14.172L17.9926 11.8398Z" fill="#248A0F"/>
|
|
14
|
+
<path d="M8.54456 11.8398L10.9066 9.50769L13.2686 11.8398L10.9066 14.172L8.54456 11.8398Z" fill="#248A0F"/>
|
|
15
|
+
<path d="M2.53186 11.8398L4.89387 9.50769L7.25587 11.8398L4.89387 14.172L2.53186 11.8398Z" fill="#8A610F"/>
|
|
16
|
+
<path d="M20.3546 9.50781L22.7166 7.17566L25.0786 9.50781L22.7166 11.84L20.3546 9.50781Z" fill="#2AA112"/>
|
|
17
|
+
<path d="M10.9065 4.84375L13.2685 2.5116L15.6305 4.84375L13.2685 7.1759L10.9065 4.84375Z" fill="#36CF17"/>
|
|
18
|
+
<path d="M4.8938 4.84375L7.2558 2.5116L9.61781 4.84375L7.2558 7.1759L4.8938 4.84375Z" fill="#CF9117"/>
|
|
19
|
+
<path d="M13.2686 7.17578L15.6306 4.84363L17.9926 7.17578L15.6306 9.50794L13.2686 7.17578Z" fill="#30B814"/>
|
|
20
|
+
<path d="M15.6306 4.84375L17.9926 2.5116L20.3546 4.84375L17.9926 7.1759L15.6306 4.84375Z" fill="#36CE17"/>
|
|
21
|
+
<path d="M15.6306 9.50781L17.9926 7.17566L20.3546 9.50781L17.9926 11.84L15.6306 9.50781Z" fill="#2AA112"/>
|
|
22
|
+
<path d="M17.9926 7.17578L20.3546 4.84363L22.7166 7.17578L20.3546 9.50794L17.9926 7.17578Z" fill="#30B814"/>
|
|
23
|
+
<path d="M13.2686 11.8398L15.6306 9.50769L17.9926 11.8398L15.6306 14.172L13.2686 11.8398Z" fill="#248A0F"/>
|
|
24
|
+
<g filter="url(#filter0_d_14446_7650)">
|
|
25
|
+
<path d="M10.9066 14.1727L14.2134 10.9077C14.9961 10.1349 16.2651 10.1349 17.0478 10.9077L20.3546 14.1727H10.9066Z" fill="url(#paint0_linear_14446_7650)"/>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
<defs>
|
|
29
|
+
<filter id="filter0_d_14446_7650" x="8.90662" y="9.32812" width="13.448" height="7.84375" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
30
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
31
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
32
|
+
<feOffset dy="1"/>
|
|
33
|
+
<feGaussianBlur stdDeviation="1"/>
|
|
34
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
35
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
36
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_14446_7650"/>
|
|
37
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_14446_7650" result="shape"/>
|
|
38
|
+
</filter>
|
|
39
|
+
<linearGradient id="paint0_linear_14446_7650" x1="15.5356" y1="10.4041" x2="15.5356" y2="14.3619" gradientUnits="userSpaceOnUse">
|
|
40
|
+
<stop stop-color="white"/>
|
|
41
|
+
<stop offset="1" stop-color="#D0D0D0"/>
|
|
42
|
+
</linearGradient>
|
|
43
|
+
<clipPath id="clip0_14446_7650">
|
|
44
|
+
<rect width="80" height="16" fill="white"/>
|
|
45
|
+
</clipPath>
|
|
46
|
+
</defs>
|
|
47
|
+
</svg>
|
|
@@ -116,12 +116,14 @@ import AuditDark from './assets/dark/app-logo-dark-audit.svg';
|
|
|
116
116
|
import CrmDark from './assets/dark/app-logo-dark-crm.svg';
|
|
117
117
|
import HistoryDark from './assets/dark/app-logo-dark-history.svg';
|
|
118
118
|
import SupervisorDark from './assets/dark/app-logo-dark-supervisor.svg';
|
|
119
|
+
import WfmDark from './assets/dark/app-logo-dark-wfm.svg';
|
|
119
120
|
import WorkspaceDark from './assets/dark/app-logo-dark-workspace.svg';
|
|
120
121
|
import AdminLight from './assets/light/app-logo-light-admin.svg';
|
|
121
122
|
import AuditLight from './assets/light/app-logo-light-audit.svg';
|
|
122
123
|
import CrmLight from './assets/light/app-logo-light-crm.svg';
|
|
123
124
|
import HistoryLight from './assets/light/app-logo-light-history.svg';
|
|
124
125
|
import SupervisorLight from './assets/light/app-logo-light-supervisor.svg';
|
|
126
|
+
import WfmLight from './assets/light/app-logo-light-wfm.svg';
|
|
125
127
|
import WorkspaceLight from './assets/light/app-logo-light-workspace.svg';
|
|
126
128
|
import { WtNavigationBarNavItem } from './types/WtNavigationBar';
|
|
127
129
|
|
|
@@ -150,9 +152,9 @@ const appLogo = {
|
|
|
150
152
|
dark: CrmDark,
|
|
151
153
|
light: CrmLight,
|
|
152
154
|
},
|
|
153
|
-
[WebitelApplications.
|
|
154
|
-
dark:
|
|
155
|
-
light:
|
|
155
|
+
[WebitelApplications.WFM]: {
|
|
156
|
+
dark: WfmDark,
|
|
157
|
+
light: WfmLight,
|
|
156
158
|
},
|
|
157
159
|
};
|
|
158
160
|
|
|
@@ -17,7 +17,13 @@
|
|
|
17
17
|
</template>
|
|
18
18
|
|
|
19
19
|
<template v-if="props.mode === 'stream'">
|
|
20
|
-
<screen-sharing-control-panel
|
|
20
|
+
<screen-sharing-control-panel
|
|
21
|
+
:session="props.session"
|
|
22
|
+
:screenshot-status="props.screenshotStatus"
|
|
23
|
+
@close-session="emit('close-session')"
|
|
24
|
+
@make-screenshot="emit('make-screenshot')"
|
|
25
|
+
@toggle-record="emit('toggle-record')"
|
|
26
|
+
/>
|
|
21
27
|
</template>
|
|
22
28
|
</media-controls>
|
|
23
29
|
</template>
|
|
@@ -26,6 +32,7 @@
|
|
|
26
32
|
import {defineEmits, inject} from "vue";
|
|
27
33
|
|
|
28
34
|
import WtLoader from "../../../wt-loader/wt-loader.vue";
|
|
35
|
+
import {ScreenshotStatus} from "../../types/ScreenshotStatus";
|
|
29
36
|
import {WtVidstakPlayerControlsMode} from "../../types/WtVidstackPlayerControlsMode";
|
|
30
37
|
import {WtVidstackPlayerSession} from "../../types/WtVidstackPlayerSession";
|
|
31
38
|
import MediaControlPanel from "../panels/media-control-panel/media-control-panel.vue";
|
|
@@ -40,38 +47,28 @@ const props = defineProps<{
|
|
|
40
47
|
closable?: boolean;
|
|
41
48
|
mode: WtVidstakPlayerControlsMode;
|
|
42
49
|
session: WtVidstackPlayerSession
|
|
50
|
+
screenshotStatus: ScreenshotStatus
|
|
43
51
|
}>();
|
|
44
52
|
|
|
45
53
|
const emit = defineEmits<{
|
|
46
54
|
'close-player': [],
|
|
47
55
|
'close-session': [],
|
|
56
|
+
'make-screenshot': [],
|
|
57
|
+
'toggle-record': [],
|
|
48
58
|
}>();
|
|
49
59
|
</script>
|
|
50
60
|
|
|
51
61
|
<style scoped lang="scss">
|
|
52
62
|
.video-layout {
|
|
53
|
-
|
|
54
|
-
.video-display-panel {
|
|
55
|
-
:deep(.video-display-panel__controls) { // hide panel buttons
|
|
56
|
-
opacity: 0;
|
|
57
|
-
transition: all var(--transition) ease-out;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
63
|
&--sm {
|
|
62
64
|
border-radius: var(--p-player-wrapper-sm-border-radius);
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
&--md {
|
|
66
|
-
//border-radius: var(--p-player-wrapper-md-border-radius);
|
|
67
|
-
|
|
68
68
|
.media-control-panel {
|
|
69
|
-
margin: var(--p-player-control-bar-md-padding);
|
|
70
|
-
width: calc(100% - (var(--p-player-control-bar-md-padding) * 2));
|
|
71
69
|
border-radius: var(--p-player-control-bar-md-border-radius);
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
|
-
|
|
75
72
|
}
|
|
76
73
|
|
|
77
74
|
.controls {
|
|
@@ -90,22 +87,6 @@ const emit = defineEmits<{
|
|
|
90
87
|
display: flex;
|
|
91
88
|
align-items: center;
|
|
92
89
|
width: 100%;
|
|
93
|
-
opacity: 0;
|
|
94
|
-
transition: all var(--transition) ease-in-out;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
media-player[data-hocus] { // hover or focus within https://vidstack.io/docs/wc/player/components/core/player/?styling=css#player.attrs
|
|
98
|
-
.controls-group {
|
|
99
|
-
opacity: 1;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.video-display-panel {
|
|
103
|
-
background: var(--p-player-head-line-hover-background);
|
|
104
|
-
|
|
105
|
-
:deep(.video-display-panel__controls) { // show panel buttons on hover
|
|
106
|
-
opacity: 1;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
90
|
}
|
|
110
91
|
|
|
111
92
|
.wt-loader {
|
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<media-play-button class="play-button">
|
|
3
|
-
<wt-
|
|
4
|
-
|
|
3
|
+
<wt-button
|
|
4
|
+
:size="size"
|
|
5
|
+
variant="outlined"
|
|
6
|
+
color="secondary"
|
|
7
|
+
icon="play"
|
|
8
|
+
type="play"
|
|
9
|
+
rounded
|
|
10
|
+
contains-icon
|
|
11
|
+
class="play-button__play-icon"
|
|
12
|
+
/>
|
|
13
|
+
|
|
14
|
+
<wt-button
|
|
15
|
+
:size="size"
|
|
16
|
+
variant="outlined"
|
|
17
|
+
color="secondary"
|
|
18
|
+
icon="pause"
|
|
19
|
+
type="pause"
|
|
20
|
+
rounded
|
|
21
|
+
contains-icon
|
|
22
|
+
class="play-button__pause-icon"
|
|
23
|
+
/>
|
|
5
24
|
</media-play-button>
|
|
6
25
|
</template>
|
|
7
26
|
|
|
8
27
|
<script setup lang="ts">
|
|
9
|
-
import
|
|
28
|
+
import {inject} from "vue";
|
|
29
|
+
|
|
30
|
+
const {size} = inject('size');
|
|
10
31
|
</script>
|
|
11
32
|
|
|
12
33
|
<style scoped>
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
class="media-control-panel controls-group"
|
|
4
4
|
:class="`media-control-panel--${size}`"
|
|
5
5
|
>
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
<div class="media-control-panel__actions">
|
|
7
|
+
<play-button />
|
|
8
|
+
<time-slider />
|
|
9
|
+
<time-group />
|
|
10
|
+
</div>
|
|
9
11
|
</media-controls-group>
|
|
10
12
|
</template>
|
|
11
13
|
|
|
@@ -22,13 +24,24 @@ const { size } = inject('size');
|
|
|
22
24
|
|
|
23
25
|
<style scoped lang="scss">
|
|
24
26
|
.media-control-panel {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
gap: var(--p-player-control-bar-sm-gap);
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: center;
|
|
28
29
|
|
|
29
|
-
&--
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
&--sm {
|
|
31
|
+
.media-control-panel__actions {
|
|
32
|
+
border-top-left-radius: 0 !important;
|
|
33
|
+
border-top-right-radius: 0 !important;
|
|
34
|
+
gap: calc(var(--p-player-control-bar-sm-gap) * 2);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__actions {
|
|
39
|
+
width: 100%;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
background: var(--p-player-control-bar-background);
|
|
44
|
+
box-shadow: var(--elevation-10);
|
|
32
45
|
}
|
|
33
46
|
}
|
|
34
47
|
</style>
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<media-controls-group
|
|
2
|
+
<media-controls-group
|
|
3
|
+
class="screen-sharing-control-panel controls-group"
|
|
4
|
+
:class="`screen-sharing-control-panel--${size}`"
|
|
5
|
+
>
|
|
3
6
|
<div
|
|
4
7
|
class="screen-sharing-control-panel__actions"
|
|
5
8
|
>
|
|
@@ -10,7 +13,7 @@
|
|
|
10
13
|
color="secondary"
|
|
11
14
|
:size="size"
|
|
12
15
|
:icon="screenShotIcon"
|
|
13
|
-
@click="
|
|
16
|
+
@click="emit('make-screenshot')"
|
|
14
17
|
/>
|
|
15
18
|
|
|
16
19
|
<wt-button
|
|
@@ -20,7 +23,7 @@
|
|
|
20
23
|
color="secondary"
|
|
21
24
|
:size="size"
|
|
22
25
|
:icon="recordIcon"
|
|
23
|
-
@click="
|
|
26
|
+
@click="emit('toggle-record')"
|
|
24
27
|
/>
|
|
25
28
|
|
|
26
29
|
<wt-button
|
|
@@ -52,25 +55,28 @@
|
|
|
52
55
|
import convertDuration from '@webitel/ui-sdk/src/scripts/convertDuration';
|
|
53
56
|
import {computed, defineEmits, inject, onUnmounted, ref, watch} from 'vue';
|
|
54
57
|
|
|
58
|
+
import {ScreenshotStatus} from "../../../types/ScreenshotStatus";
|
|
55
59
|
import {WtVidstackPlayerSession} from "../../../types/WtVidstackPlayerSession";
|
|
56
60
|
|
|
57
|
-
type ScreenshotStatus = 'done' | 'error'
|
|
58
|
-
|
|
59
61
|
interface Props {
|
|
60
62
|
session: WtVidstackPlayerSession
|
|
63
|
+
screenshotStatus: ScreenshotStatus | null
|
|
61
64
|
}
|
|
65
|
+
|
|
62
66
|
const props = defineProps<Props>();
|
|
63
67
|
|
|
64
68
|
const emit = defineEmits<{
|
|
65
69
|
'close-session': [],
|
|
70
|
+
'make-screenshot': [],
|
|
71
|
+
'toggle-record': [],
|
|
66
72
|
}>()
|
|
67
73
|
|
|
68
74
|
const {size} = inject('size');
|
|
69
|
-
const screenshotStatus = ref<ScreenshotStatus | null>(null)
|
|
70
75
|
|
|
71
76
|
const recordIcon = computed(() => (props.session.recordings ? 'record-stop' : 'record-start'));
|
|
72
|
-
|
|
73
|
-
|
|
77
|
+
|
|
78
|
+
const screenShotIcon = computed(() => {
|
|
79
|
+
switch (props.screenshotStatus) {
|
|
74
80
|
case 'done':
|
|
75
81
|
return 'screenshot-done';
|
|
76
82
|
case 'error':
|
|
@@ -78,9 +84,7 @@ const getScreenshotIcon = (status?: ScreenshotStatus) => {
|
|
|
78
84
|
default:
|
|
79
85
|
return 'screenshot';
|
|
80
86
|
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
const screenShotIcon = computed(() => getScreenshotIcon(screenshotStatus.value));
|
|
87
|
+
});
|
|
84
88
|
const isRecording = computed(() => props.session.recordings);
|
|
85
89
|
|
|
86
90
|
const secondsElapsed = ref(0);
|
|
@@ -101,32 +105,7 @@ function stopTimer() {
|
|
|
101
105
|
}
|
|
102
106
|
}
|
|
103
107
|
|
|
104
|
-
const toggleRecordAction = () => {
|
|
105
|
-
if (isRecording.value) {
|
|
106
|
-
props.session.stopRecord();
|
|
107
|
-
} else {
|
|
108
|
-
props.session.startRecord();
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
const makeScreenshot = async () => {
|
|
113
|
-
try {
|
|
114
|
-
await props.session.screenshot()
|
|
115
|
-
changeScreenshotStatus('done')
|
|
116
|
-
} catch {
|
|
117
|
-
changeScreenshotStatus('error')
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
const changeScreenshotStatus = (status: ScreenshotStatus) => {
|
|
122
|
-
screenshotStatus.value = status;
|
|
123
|
-
setTimeout(() => {
|
|
124
|
-
screenshotStatus.value = null;
|
|
125
|
-
}, 2000);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
108
|
const closeSession = () => {
|
|
129
|
-
props.session.close()
|
|
130
109
|
emit('close-session')
|
|
131
110
|
};
|
|
132
111
|
|
|
@@ -152,8 +131,6 @@ watch(isRecording, (newVal) => {
|
|
|
152
131
|
justify-content: center;
|
|
153
132
|
|
|
154
133
|
&--sm {
|
|
155
|
-
padding: var(--p-player-control-bar-position-padding-sm);
|
|
156
|
-
|
|
157
134
|
.screen-sharing-control-panel__actions {
|
|
158
135
|
width: 100%;
|
|
159
136
|
border-top-left-radius: 0 !important;
|
|
@@ -167,8 +144,6 @@ watch(isRecording, (newVal) => {
|
|
|
167
144
|
}
|
|
168
145
|
|
|
169
146
|
&--md {
|
|
170
|
-
padding: var(--p-player-control-bar-position-padding-md);
|
|
171
|
-
|
|
172
147
|
.screen-sharing-control-panel__indicator {
|
|
173
148
|
right: var(--p-player-counter-position-padding-md);
|
|
174
149
|
bottom: var(--p-player-counter-position-padding-md);
|
|
@@ -176,8 +151,6 @@ watch(isRecording, (newVal) => {
|
|
|
176
151
|
}
|
|
177
152
|
|
|
178
153
|
&--lg {
|
|
179
|
-
padding: var(--p-player-control-bar-position-padding-lg);
|
|
180
|
-
|
|
181
154
|
.screen-sharing-control-panel__indicator {
|
|
182
155
|
right: var(--p-player-counter-position-padding-lg);
|
|
183
156
|
bottom: var(--p-player-counter-position-padding-lg);
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
</span>
|
|
16
16
|
</div>
|
|
17
17
|
<div class="video-display-panel__controls">
|
|
18
|
+
<fullscreen-button
|
|
19
|
+
@toggle="handleFullscreen"
|
|
20
|
+
/>
|
|
18
21
|
<toggle-button
|
|
19
22
|
v-if="size !== ComponentSize.LG"
|
|
20
|
-
primary-icon="
|
|
21
|
-
secondary-icon="
|
|
23
|
+
primary-icon="expand"
|
|
24
|
+
secondary-icon="collapse"
|
|
22
25
|
color="on-dark"
|
|
23
26
|
@toggle="handlePlayerSize"
|
|
24
27
|
/>
|
|
25
|
-
<fullscreen-button
|
|
26
|
-
@toggle="handleFullscreen"
|
|
27
|
-
/>
|
|
28
28
|
<wt-icon-btn
|
|
29
29
|
v-if="props.closable"
|
|
30
30
|
icon="close"
|
|
@@ -73,11 +73,10 @@ const handlePlayerSize = (value: boolean) => {
|
|
|
73
73
|
display: flex;
|
|
74
74
|
justify-content: space-between;
|
|
75
75
|
padding: var(--p-player-headline-sm-padding);
|
|
76
|
-
background: var(--p-player-head-line-background);
|
|
76
|
+
background: var(--p-player-head-line-hover-background);
|
|
77
77
|
color: var(--p-player-head-line-color);
|
|
78
78
|
transition: all var(--transition) ease-in-out;
|
|
79
79
|
backdrop-filter: blur(var(--p-player-head-line-blur));
|
|
80
|
-
opacity: 0;
|
|
81
80
|
|
|
82
81
|
&__title {
|
|
83
82
|
@extend %typo-body-1-bold;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ScreenshotStatus = 'done' | 'error';
|