@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.umd.js
CHANGED
|
@@ -16432,12 +16432,12 @@ var wt_pagination_component = normalizeComponent(
|
|
|
16432
16432
|
)
|
|
16433
16433
|
|
|
16434
16434
|
/* harmony default export */ var wt_pagination = (wt_pagination_component.exports);
|
|
16435
|
-
// 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=
|
|
16436
|
-
var
|
|
16437
|
-
var
|
|
16435
|
+
// 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&
|
|
16436
|
+
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)}
|
|
16437
|
+
var wt_playervue_type_template_id_2f960d01_staticRenderFns = []
|
|
16438
16438
|
|
|
16439
16439
|
|
|
16440
|
-
// CONCATENATED MODULE: ./src/components/organisms/wt-player/wt-player.vue?vue&type=template&id=
|
|
16440
|
+
// CONCATENATED MODULE: ./src/components/organisms/wt-player/wt-player.vue?vue&type=template&id=2f960d01&
|
|
16441
16441
|
|
|
16442
16442
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
16443
16443
|
var es_string_replace = __webpack_require__("5319");
|
|
@@ -16450,6 +16450,11 @@ var plyr_min_default = /*#__PURE__*/__webpack_require__.n(plyr_min);
|
|
|
16450
16450
|
|
|
16451
16451
|
|
|
16452
16452
|
|
|
16453
|
+
|
|
16454
|
+
|
|
16455
|
+
|
|
16456
|
+
|
|
16457
|
+
//
|
|
16453
16458
|
//
|
|
16454
16459
|
//
|
|
16455
16460
|
//
|
|
@@ -16491,6 +16496,19 @@ var plyr_min_default = /*#__PURE__*/__webpack_require__.n(plyr_min);
|
|
|
16491
16496
|
return url.replace('/stream', '/download');
|
|
16492
16497
|
};
|
|
16493
16498
|
}
|
|
16499
|
+
},
|
|
16500
|
+
mime: {
|
|
16501
|
+
type: String,
|
|
16502
|
+
default: 'audio'
|
|
16503
|
+
},
|
|
16504
|
+
// plyr-specific options
|
|
16505
|
+
resetOnEnd: {
|
|
16506
|
+
type: Boolean,
|
|
16507
|
+
default: false
|
|
16508
|
+
},
|
|
16509
|
+
invertTime: {
|
|
16510
|
+
type: Boolean,
|
|
16511
|
+
default: true
|
|
16494
16512
|
}
|
|
16495
16513
|
},
|
|
16496
16514
|
data: function data() {
|
|
@@ -16512,24 +16530,54 @@ var plyr_min_default = /*#__PURE__*/__webpack_require__.n(plyr_min);
|
|
|
16512
16530
|
computed: {
|
|
16513
16531
|
listeners: function listeners() {
|
|
16514
16532
|
return _objectSpread2({}, this.$listeners);
|
|
16533
|
+
},
|
|
16534
|
+
playerType: function playerType() {
|
|
16535
|
+
return this.mime.includes('video') ? 'video' : 'audio';
|
|
16515
16536
|
}
|
|
16516
16537
|
},
|
|
16517
16538
|
methods: {
|
|
16518
16539
|
setupPlayer: function setupPlayer() {
|
|
16519
|
-
var
|
|
16520
|
-
|
|
16521
|
-
|
|
16522
|
-
|
|
16523
|
-
|
|
16524
|
-
|
|
16525
|
-
|
|
16526
|
-
|
|
16527
|
-
|
|
16528
|
-
|
|
16529
|
-
|
|
16530
|
-
|
|
16531
|
-
|
|
16532
|
-
|
|
16540
|
+
var _this = this;
|
|
16541
|
+
|
|
16542
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
16543
|
+
var baseURL, controls;
|
|
16544
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
16545
|
+
while (1) {
|
|
16546
|
+
switch (_context.prev = _context.next) {
|
|
16547
|
+
case 0:
|
|
16548
|
+
_context.next = 2;
|
|
16549
|
+
return _this.$nextTick();
|
|
16550
|
+
|
|
16551
|
+
case 2:
|
|
16552
|
+
// test is failing to render component if element is passed to Plyr as Vue $ref
|
|
16553
|
+
baseURL = _this.$baseURL || "/";
|
|
16554
|
+
if (_this.player) _this.player.destroy();
|
|
16555
|
+
controls = ['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'fullscreen'];
|
|
16556
|
+
if (_this.download) controls.push('download');
|
|
16557
|
+
_this.player = new plyr_min_default.a(_this.$refs.player, {
|
|
16558
|
+
// this.player = new Plyr('.wt-player__player', {
|
|
16559
|
+
autoplay: _this.autoplay,
|
|
16560
|
+
loadSprite: false,
|
|
16561
|
+
resetOnEnd: _this.resetOnEnd,
|
|
16562
|
+
invertTime: _this.invertTime,
|
|
16563
|
+
iconUrl: "".concat(baseURL, "img/plyr.svg"),
|
|
16564
|
+
controls: controls,
|
|
16565
|
+
loop: {
|
|
16566
|
+
active: _this.loop
|
|
16567
|
+
}
|
|
16568
|
+
});
|
|
16569
|
+
|
|
16570
|
+
_this.appendCloseIcon();
|
|
16571
|
+
|
|
16572
|
+
_this.$emit('initialized', _this.player);
|
|
16573
|
+
|
|
16574
|
+
case 9:
|
|
16575
|
+
case "end":
|
|
16576
|
+
return _context.stop();
|
|
16577
|
+
}
|
|
16578
|
+
}
|
|
16579
|
+
}, _callee);
|
|
16580
|
+
}))();
|
|
16533
16581
|
},
|
|
16534
16582
|
setupDownload: function setupDownload() {
|
|
16535
16583
|
if (!this.download) this.setupPlayer();else if (typeof this.download === 'string') {
|
|
@@ -16539,9 +16587,9 @@ var plyr_min_default = /*#__PURE__*/__webpack_require__.n(plyr_min);
|
|
|
16539
16587
|
}
|
|
16540
16588
|
},
|
|
16541
16589
|
appendCloseIcon: function appendCloseIcon() {
|
|
16542
|
-
var _this$$refs$
|
|
16590
|
+
var _this$$refs$player$pl, _this$$refs$player$pl2;
|
|
16543
16591
|
|
|
16544
|
-
var plyrControls = (_this$$refs$
|
|
16592
|
+
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;
|
|
16545
16593
|
var closeIcon = this.$refs['close-icon'].$el;
|
|
16546
16594
|
|
|
16547
16595
|
if (plyrControls) {
|
|
@@ -16566,8 +16614,8 @@ var wt_playervue_type_style_index_0_lang_scss_ = __webpack_require__("d6a7");
|
|
|
16566
16614
|
|
|
16567
16615
|
var wt_player_component = normalizeComponent(
|
|
16568
16616
|
wt_player_wt_playervue_type_script_lang_js_,
|
|
16569
|
-
|
|
16570
|
-
|
|
16617
|
+
wt_playervue_type_template_id_2f960d01_render,
|
|
16618
|
+
wt_playervue_type_template_id_2f960d01_staticRenderFns,
|
|
16571
16619
|
false,
|
|
16572
16620
|
null,
|
|
16573
16621
|
null,
|