@webitel/ui-sdk 1.0.25 → 1.0.26
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/ui-sdk.common.js +70 -22
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +70 -22
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/organisms/wt-player/wt-player.vue +35 -8
package/dist/ui-sdk.common.js
CHANGED
|
@@ -16423,12 +16423,12 @@ var wt_pagination_component = normalizeComponent(
|
|
|
16423
16423
|
)
|
|
16424
16424
|
|
|
16425
16425
|
/* harmony default export */ var wt_pagination = (wt_pagination_component.exports);
|
|
16426
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"62ff6119-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/organisms/wt-player/wt-player.vue?vue&type=template&id=
|
|
16427
|
-
var
|
|
16428
|
-
var
|
|
16426
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"62ff6119-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/organisms/wt-player/wt-player.vue?vue&type=template&id=2f960d01&
|
|
16427
|
+
var wt_playervue_type_template_id_2f960d01_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('aside',{staticClass:"wt-player"},[_c(_vm.playerType,_vm._g({ref:"player",tag:"component",staticClass:"wt-player__player",attrs:{"src":_vm.src,"autoplay":_vm.autoplay,"controls":""}},_vm.listeners)),_c('wt-icon-btn',{ref:"close-icon",staticClass:"wt-player__close-icon",attrs:{"icon":"close"},on:{"click":function($event){return _vm.$emit('close')}}})],1)}
|
|
16428
|
+
var wt_playervue_type_template_id_2f960d01_staticRenderFns = []
|
|
16429
16429
|
|
|
16430
16430
|
|
|
16431
|
-
// CONCATENATED MODULE: ./src/components/organisms/wt-player/wt-player.vue?vue&type=template&id=
|
|
16431
|
+
// CONCATENATED MODULE: ./src/components/organisms/wt-player/wt-player.vue?vue&type=template&id=2f960d01&
|
|
16432
16432
|
|
|
16433
16433
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
16434
16434
|
var es_string_replace = __webpack_require__("5319");
|
|
@@ -16441,6 +16441,11 @@ var plyr_min_default = /*#__PURE__*/__webpack_require__.n(plyr_min);
|
|
|
16441
16441
|
|
|
16442
16442
|
|
|
16443
16443
|
|
|
16444
|
+
|
|
16445
|
+
|
|
16446
|
+
|
|
16447
|
+
|
|
16448
|
+
//
|
|
16444
16449
|
//
|
|
16445
16450
|
//
|
|
16446
16451
|
//
|
|
@@ -16482,6 +16487,19 @@ var plyr_min_default = /*#__PURE__*/__webpack_require__.n(plyr_min);
|
|
|
16482
16487
|
return url.replace('/stream', '/download');
|
|
16483
16488
|
};
|
|
16484
16489
|
}
|
|
16490
|
+
},
|
|
16491
|
+
mime: {
|
|
16492
|
+
type: String,
|
|
16493
|
+
default: 'audio'
|
|
16494
|
+
},
|
|
16495
|
+
// plyr-specific options
|
|
16496
|
+
resetOnEnd: {
|
|
16497
|
+
type: Boolean,
|
|
16498
|
+
default: false
|
|
16499
|
+
},
|
|
16500
|
+
invertTime: {
|
|
16501
|
+
type: Boolean,
|
|
16502
|
+
default: true
|
|
16485
16503
|
}
|
|
16486
16504
|
},
|
|
16487
16505
|
data: function data() {
|
|
@@ -16503,24 +16521,54 @@ var plyr_min_default = /*#__PURE__*/__webpack_require__.n(plyr_min);
|
|
|
16503
16521
|
computed: {
|
|
16504
16522
|
listeners: function listeners() {
|
|
16505
16523
|
return _objectSpread2({}, this.$listeners);
|
|
16524
|
+
},
|
|
16525
|
+
playerType: function playerType() {
|
|
16526
|
+
return this.mime.includes('video') ? 'video' : 'audio';
|
|
16506
16527
|
}
|
|
16507
16528
|
},
|
|
16508
16529
|
methods: {
|
|
16509
16530
|
setupPlayer: function setupPlayer() {
|
|
16510
|
-
var
|
|
16511
|
-
|
|
16512
|
-
|
|
16513
|
-
|
|
16514
|
-
|
|
16515
|
-
|
|
16516
|
-
|
|
16517
|
-
|
|
16518
|
-
|
|
16519
|
-
|
|
16520
|
-
|
|
16521
|
-
|
|
16522
|
-
|
|
16523
|
-
|
|
16531
|
+
var _this = this;
|
|
16532
|
+
|
|
16533
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
16534
|
+
var baseURL, controls;
|
|
16535
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
16536
|
+
while (1) {
|
|
16537
|
+
switch (_context.prev = _context.next) {
|
|
16538
|
+
case 0:
|
|
16539
|
+
_context.next = 2;
|
|
16540
|
+
return _this.$nextTick();
|
|
16541
|
+
|
|
16542
|
+
case 2:
|
|
16543
|
+
// test is failing to render component if element is passed to Plyr as Vue $ref
|
|
16544
|
+
baseURL = _this.$baseURL || "/";
|
|
16545
|
+
if (_this.player) _this.player.destroy();
|
|
16546
|
+
controls = ['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'fullscreen'];
|
|
16547
|
+
if (_this.download) controls.push('download');
|
|
16548
|
+
_this.player = new plyr_min_default.a(_this.$refs.player, {
|
|
16549
|
+
// this.player = new Plyr('.wt-player__player', {
|
|
16550
|
+
autoplay: _this.autoplay,
|
|
16551
|
+
loadSprite: false,
|
|
16552
|
+
resetOnEnd: _this.resetOnEnd,
|
|
16553
|
+
invertTime: _this.invertTime,
|
|
16554
|
+
iconUrl: "".concat(baseURL, "img/plyr.svg"),
|
|
16555
|
+
controls: controls,
|
|
16556
|
+
loop: {
|
|
16557
|
+
active: _this.loop
|
|
16558
|
+
}
|
|
16559
|
+
});
|
|
16560
|
+
|
|
16561
|
+
_this.appendCloseIcon();
|
|
16562
|
+
|
|
16563
|
+
_this.$emit('initialized', _this.player);
|
|
16564
|
+
|
|
16565
|
+
case 9:
|
|
16566
|
+
case "end":
|
|
16567
|
+
return _context.stop();
|
|
16568
|
+
}
|
|
16569
|
+
}
|
|
16570
|
+
}, _callee);
|
|
16571
|
+
}))();
|
|
16524
16572
|
},
|
|
16525
16573
|
setupDownload: function setupDownload() {
|
|
16526
16574
|
if (!this.download) this.setupPlayer();else if (typeof this.download === 'string') {
|
|
@@ -16530,9 +16578,9 @@ var plyr_min_default = /*#__PURE__*/__webpack_require__.n(plyr_min);
|
|
|
16530
16578
|
}
|
|
16531
16579
|
},
|
|
16532
16580
|
appendCloseIcon: function appendCloseIcon() {
|
|
16533
|
-
var _this$$refs$
|
|
16581
|
+
var _this$$refs$player$pl, _this$$refs$player$pl2;
|
|
16534
16582
|
|
|
16535
|
-
var plyrControls = (_this$$refs$
|
|
16583
|
+
var plyrControls = (_this$$refs$player$pl = this.$refs.player.plyr) === null || _this$$refs$player$pl === void 0 ? void 0 : (_this$$refs$player$pl2 = _this$$refs$player$pl.elements) === null || _this$$refs$player$pl2 === void 0 ? void 0 : _this$$refs$player$pl2.controls;
|
|
16536
16584
|
var closeIcon = this.$refs['close-icon'].$el;
|
|
16537
16585
|
|
|
16538
16586
|
if (plyrControls) {
|
|
@@ -16557,8 +16605,8 @@ var wt_playervue_type_style_index_0_lang_scss_ = __webpack_require__("d6a7");
|
|
|
16557
16605
|
|
|
16558
16606
|
var wt_player_component = normalizeComponent(
|
|
16559
16607
|
wt_player_wt_playervue_type_script_lang_js_,
|
|
16560
|
-
|
|
16561
|
-
|
|
16608
|
+
wt_playervue_type_template_id_2f960d01_render,
|
|
16609
|
+
wt_playervue_type_template_id_2f960d01_staticRenderFns,
|
|
16562
16610
|
false,
|
|
16563
16611
|
null,
|
|
16564
16612
|
null,
|