@supermapgis/vue-iclient-leaflet 11.2.0 → 11.2.1
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/iclient-leaflet-vue.css +1 -1
- package/dist/iclient-leaflet-vue.js +29 -70
- package/dist/iclient-leaflet-vue.min.css +1 -1
- package/dist/iclient-leaflet-vue.min.js +6 -6
- package/lib/_lang/en.js +1 -1
- package/lib/_lang/index.js +7 -7
- package/lib/_lang/zh.js +1 -1
- package/lib/_mixin/WebMapBase.js +13 -13
- package/lib/_utils/RestService.js +2 -2
- package/lib/_utils/WebMapService.js +2 -2
- package/lib/_utils/iPortalDataService.js +2 -2
- package/lib/_utils/iServerRestService.js +6 -6
- package/lib/_utils/style/color/colorPalette.js +2 -2
- package/lib/_utils/style/theme/chart.js +2 -2
- package/lib/_utils/util.js +4 -4
- package/lib/border/index.js +6 -6
- package/lib/chart/index.js +22 -22
- package/lib/identify/index.js +11 -11
- package/lib/indicator/index.js +2 -2
- package/lib/liquid-fill/index.js +13 -13
- package/lib/marker/index.js +4 -4
- package/lib/popup/index.js +4 -4
- package/lib/progress/index.js +6 -6
- package/lib/slideshow/index.js +4 -4
- package/lib/text/index.js +2 -2
- package/lib/tile-layer/index.js +4 -4
- package/lib/time-line/index.js +2 -2
- package/lib/time-range/index.js +8 -8
- package/lib/time-slider/index.js +8 -8
- package/lib/video-player/index.js +9 -59
- package/lib/web-map/index.js +14 -14
- package/package.json +2 -2
- package/src/common/_lang/en.js +1 -1
- package/src/common/_lang/zh.js +1 -1
- package/src/common/video-player/VideoPlayer.vue +4 -41
- package/src/leaflet/package.json +2 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @supermapgis/vue-iclient.(https://iclient.supermap.io)
|
|
4
4
|
* Copyright© 2000 - 2024 SuperMap Software Co.Ltd
|
|
5
5
|
* license: Apache-2.0
|
|
6
|
-
* version: v11.2.
|
|
6
|
+
* version: v11.2.1
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -54403,25 +54403,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54403
54403
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Slideshow_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Slideshow_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
54404
54404
|
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Slideshow_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
54405
54405
|
|
|
54406
|
-
/***/ }),
|
|
54407
|
-
|
|
54408
|
-
/***/ "FPvL":
|
|
54409
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
54410
|
-
|
|
54411
|
-
"use strict";
|
|
54412
|
-
|
|
54413
|
-
// EXPORTS
|
|
54414
|
-
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ render; });
|
|
54415
|
-
__webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ staticRenderFns; });
|
|
54416
|
-
|
|
54417
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/common/video-player/VideoPlayer.vue?vue&type=template&id=58d254a0&
|
|
54418
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:['sm-component-video-player', {'sm-component-video-full-fill': _vm.isFullFill}]},[_c('video-player',{ref:"videoPlayer",staticClass:"sm-component-video-player__player sm-component-video-player__player--main",attrs:{"options":_vm.playerOptions,"playsinline":true,"data-autoplay":_vm.autoplay,"data-isLive":_vm.isRtmp,"data-popupplay":("" + (_vm.options.popupToPlay)),"events":['fullscreenchange']},on:{"play":function($event){return _vm.onPlayerPlay($event)},"ended":function($event){return _vm.onPlayerEnded($event)},"loadeddata":function($event){return _vm.onPlayerLoadeddata($event)},"ready":_vm.getPlayer,"fullscreenchange":_vm.onFullscreenchange}}),_vm._v(" "),(_vm.url)?_c('sm-modal',{class:{'sm-component-video-full-fill': _vm.isFullFill},attrs:{"wrapClassName":"sm-component-video-player-modal","footer":null,"width":"60%","maskClosable":false},model:{value:(_vm.modalVisible),callback:function ($$v) {_vm.modalVisible=$$v},expression:"modalVisible"}},[_c('video-player',{ref:"modalVideoPlayer",staticClass:"sm-component-video-player__player",attrs:{"options":_vm.modalPlayerOptions,"playsinline":true,"data-autoplay":_vm.autoplay,"data-isLive":_vm.isRtmp,"data-popupplay":("" + (_vm.options.popupToPlay))},on:{"play":function($event){return _vm.onModalPlayerPlay($event)},"loadeddata":function($event){return _vm.onModalPlayerLoadeddata($event)},"ready":_vm.getPlayer}})],1):_vm._e()],1)}
|
|
54419
|
-
var staticRenderFns = []
|
|
54420
|
-
|
|
54421
|
-
|
|
54422
|
-
// CONCATENATED MODULE: ./src/common/video-player/VideoPlayer.vue?vue&type=template&id=58d254a0&
|
|
54423
|
-
|
|
54424
|
-
|
|
54425
54406
|
/***/ }),
|
|
54426
54407
|
|
|
54427
54408
|
/***/ "FQGa":
|
|
@@ -71073,7 +71054,7 @@ var _default = exports.default = {
|
|
|
71073
71054
|
unavailableVideo: '此视频暂无法播放,请稍后再试',
|
|
71074
71055
|
mapNotLoaded: '关联的地图尚未加载完整,请稍后',
|
|
71075
71056
|
unassociatedMap: '您需要配置关联地图!',
|
|
71076
|
-
videojs: '请引入video.js插件: https://github.com/videojs/video.js
|
|
71057
|
+
videojs: '请引入video.js插件: https://github.com/videojs/video.js',
|
|
71077
71058
|
flvPlayer: '请引入flv相关插件: https://github.com/bilibili/flv.js, https://github.com/mister-ben/videojs-flvjs'
|
|
71078
71059
|
},
|
|
71079
71060
|
success: {
|
|
@@ -99342,7 +99323,7 @@ var _default2 = exports.default = {
|
|
|
99342
99323
|
|
|
99343
99324
|
"use strict";
|
|
99344
99325
|
__webpack_require__.r(__webpack_exports__);
|
|
99345
|
-
/* harmony import */ var
|
|
99326
|
+
/* harmony import */ var _VideoPlayer_vue_vue_type_template_id_3b748d66___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("WFGG");
|
|
99346
99327
|
/* harmony import */ var _VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Sacq");
|
|
99347
99328
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
99348
99329
|
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("KHd+");
|
|
@@ -99355,8 +99336,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
99355
99336
|
|
|
99356
99337
|
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
|
|
99357
99338
|
_VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
99358
|
-
|
|
99359
|
-
|
|
99339
|
+
_VideoPlayer_vue_vue_type_template_id_3b748d66___WEBPACK_IMPORTED_MODULE_0__[/* render */ "a"],
|
|
99340
|
+
_VideoPlayer_vue_vue_type_template_id_3b748d66___WEBPACK_IMPORTED_MODULE_0__[/* staticRenderFns */ "b"],
|
|
99360
99341
|
false,
|
|
99361
99342
|
null,
|
|
99362
99343
|
null,
|
|
@@ -101084,7 +101065,7 @@ var _default = exports.default = {
|
|
|
101084
101065
|
unavailableVideo: 'This video is temporarily unavailable, please try again later',
|
|
101085
101066
|
mapNotLoaded: 'The associated map has not been loaded yet, please wait for a second',
|
|
101086
101067
|
unassociatedMap: 'You need to configure the associated map!',
|
|
101087
|
-
videojs: 'Please import video.js plugin: https://github.com/videojs/video.js
|
|
101068
|
+
videojs: 'Please import video.js plugin: https://github.com/videojs/video.js',
|
|
101088
101069
|
flvPlayer: 'Please import flv related plugin: https://github.com/bilibili/flv.js, https://github.com/mister-ben/videojs-flvjs'
|
|
101089
101070
|
},
|
|
101090
101071
|
success: {
|
|
@@ -101499,6 +101480,25 @@ var core = module.exports = { version: '2.6.12' };
|
|
|
101499
101480
|
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
|
101500
101481
|
|
|
101501
101482
|
|
|
101483
|
+
/***/ }),
|
|
101484
|
+
|
|
101485
|
+
/***/ "WFGG":
|
|
101486
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
101487
|
+
|
|
101488
|
+
"use strict";
|
|
101489
|
+
|
|
101490
|
+
// EXPORTS
|
|
101491
|
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ render; });
|
|
101492
|
+
__webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ staticRenderFns; });
|
|
101493
|
+
|
|
101494
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/common/video-player/VideoPlayer.vue?vue&type=template&id=3b748d66&
|
|
101495
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:['sm-component-video-player', {'sm-component-video-full-fill': _vm.isFullFill}]},[_c('video-player',{ref:"videoPlayer",staticClass:"sm-component-video-player__player sm-component-video-player__player--main",attrs:{"options":_vm.playerOptions,"playsinline":true,"data-autoplay":_vm.autoplay,"data-popupplay":("" + (_vm.options.popupToPlay)),"events":['fullscreenchange']},on:{"play":function($event){return _vm.onPlayerPlay($event)},"ended":function($event){return _vm.onPlayerEnded($event)},"loadeddata":function($event){return _vm.onPlayerLoadeddata($event)},"ready":_vm.getPlayer,"fullscreenchange":_vm.onFullscreenchange}}),_vm._v(" "),(_vm.url)?_c('sm-modal',{class:{'sm-component-video-full-fill': _vm.isFullFill},attrs:{"wrapClassName":"sm-component-video-player-modal","footer":null,"width":"60%","maskClosable":false},model:{value:(_vm.modalVisible),callback:function ($$v) {_vm.modalVisible=$$v},expression:"modalVisible"}},[_c('video-player',{ref:"modalVideoPlayer",staticClass:"sm-component-video-player__player",attrs:{"options":_vm.modalPlayerOptions,"playsinline":true,"data-autoplay":_vm.autoplay,"data-popupplay":("" + (_vm.options.popupToPlay))},on:{"play":function($event){return _vm.onModalPlayerPlay($event)},"loadeddata":function($event){return _vm.onModalPlayerLoadeddata($event)},"ready":_vm.getPlayer}})],1):_vm._e()],1)}
|
|
101496
|
+
var staticRenderFns = []
|
|
101497
|
+
|
|
101498
|
+
|
|
101499
|
+
// CONCATENATED MODULE: ./src/common/video-player/VideoPlayer.vue?vue&type=template&id=3b748d66&
|
|
101500
|
+
|
|
101501
|
+
|
|
101502
101502
|
/***/ }),
|
|
101503
101503
|
|
|
101504
101504
|
/***/ "WFqU":
|
|
@@ -151404,8 +151404,6 @@ __webpack_require__("YJnY");
|
|
|
151404
151404
|
|
|
151405
151405
|
var _vueVideojs = __webpack_require__("nPXg");
|
|
151406
151406
|
|
|
151407
|
-
var _lodash = _interopRequireDefault(__webpack_require__("zT9C"));
|
|
151408
|
-
|
|
151409
151407
|
var _main = _interopRequireDefault(__webpack_require__("lGI3"));
|
|
151410
151408
|
|
|
151411
151409
|
var _index = _interopRequireDefault(__webpack_require__("NQEM"));
|
|
@@ -151448,7 +151446,6 @@ var SmVideoPlayer = /*#__PURE__*/function (_Vue) {
|
|
|
151448
151446
|
|
|
151449
151447
|
_proto.urlChanged = function urlChanged() {
|
|
151450
151448
|
this.handlePlayerOptions();
|
|
151451
|
-
this.replayRtmp();
|
|
151452
151449
|
};
|
|
151453
151450
|
|
|
151454
151451
|
_proto.playerOptionsChanged = function playerOptionsChanged() {
|
|
@@ -151483,9 +151480,6 @@ var SmVideoPlayer = /*#__PURE__*/function (_Vue) {
|
|
|
151483
151480
|
setTimeout(function () {
|
|
151484
151481
|
_this2.smPlayer = _this2.$refs.videoPlayer && _this2.$refs.videoPlayer.player;
|
|
151485
151482
|
_this2.modalVideoPlayer = _this2.$refs.modalVideoPlayer && _this2.$refs.modalVideoPlayer.player;
|
|
151486
|
-
setTimeout(function () {
|
|
151487
|
-
_this2.replayRtmp();
|
|
151488
|
-
});
|
|
151489
151483
|
var player = _this2.modalVisible ? _this2.modalVideoPlayer : _this2.smPlayer;
|
|
151490
151484
|
|
|
151491
151485
|
if (player) {
|
|
@@ -151500,27 +151494,6 @@ var SmVideoPlayer = /*#__PURE__*/function (_Vue) {
|
|
|
151500
151494
|
});
|
|
151501
151495
|
};
|
|
151502
151496
|
|
|
151503
|
-
_proto.replayRtmp = function replayRtmp(player) {
|
|
151504
|
-
var _this3 = this;
|
|
151505
|
-
|
|
151506
|
-
if (player === void 0) {
|
|
151507
|
-
player = this.player;
|
|
151508
|
-
}
|
|
151509
|
-
|
|
151510
|
-
if (this.isRtmp && player && player.el_) {
|
|
151511
|
-
player.one('play', function () {
|
|
151512
|
-
_this3.timer = setTimeout(function () {
|
|
151513
|
-
clearTimeout(_this3.timer);
|
|
151514
|
-
player.reset();
|
|
151515
|
-
player.src((0, _lodash.default)(_this3.playerOptions.sources));
|
|
151516
|
-
}, _this3.replayTime);
|
|
151517
|
-
});
|
|
151518
|
-
player.one('canplay', function () {
|
|
151519
|
-
clearTimeout(_this3.timer);
|
|
151520
|
-
});
|
|
151521
|
-
}
|
|
151522
|
-
};
|
|
151523
|
-
|
|
151524
151497
|
_proto.clearSrc = function clearSrc() {
|
|
151525
151498
|
if (this.playerOptions.sources) {
|
|
151526
151499
|
this.playerOptions.sources[0].src = '';
|
|
@@ -151586,7 +151559,7 @@ var SmVideoPlayer = /*#__PURE__*/function (_Vue) {
|
|
|
151586
151559
|
notSupportedMessage: this.$t('warning.unavailableVideo')
|
|
151587
151560
|
};
|
|
151588
151561
|
|
|
151589
|
-
if (
|
|
151562
|
+
if (this.url.includes('.flv')) {
|
|
151590
151563
|
commonOptions.techOrder = ['html5', 'flvjs'];
|
|
151591
151564
|
commonOptions.sources[0].type = 'video/x-flv';
|
|
151592
151565
|
}
|
|
@@ -151595,17 +151568,12 @@ var SmVideoPlayer = /*#__PURE__*/function (_Vue) {
|
|
|
151595
151568
|
commonOptions.sources[0].type = 'video/mp4';
|
|
151596
151569
|
}
|
|
151597
151570
|
|
|
151598
|
-
if (this.url.includes('rtmp')) {
|
|
151599
|
-
commonOptions.techOrder = ['flash', 'html5'];
|
|
151600
|
-
commonOptions.sources[0].type = 'rtmp/flv';
|
|
151601
|
-
}
|
|
151602
|
-
|
|
151603
151571
|
if (this.url.includes('.m3u8')) {
|
|
151604
151572
|
commonOptions.sources[0].type = 'application/x-mpegURL';
|
|
151605
151573
|
}
|
|
151606
151574
|
|
|
151607
151575
|
this.playerOptions = Object.assign({}, commonOptions, {
|
|
151608
|
-
autoplay:
|
|
151576
|
+
autoplay: options.autoplay
|
|
151609
151577
|
});
|
|
151610
151578
|
this.modalPlayerOptions = Object.assign({}, commonOptions, {
|
|
151611
151579
|
autoplay: true,
|
|
@@ -151688,7 +151656,7 @@ var SmVideoPlayer = /*#__PURE__*/function (_Vue) {
|
|
|
151688
151656
|
_proto.checkUrl = function checkUrl(url) {
|
|
151689
151657
|
var match;
|
|
151690
151658
|
|
|
151691
|
-
if (url === '' || !this.isMatchVideoUrl(url) || url.indexOf('ogg') < 0 && url.indexOf('mp4') < 0 && url.indexOf('webm') < 0 && url.indexOf('m3u8') < 0 && url.indexOf('flv') < 0
|
|
151659
|
+
if (url === '' || !this.isMatchVideoUrl(url) || url.indexOf('ogg') < 0 && url.indexOf('mp4') < 0 && url.indexOf('webm') < 0 && url.indexOf('m3u8') < 0 && url.indexOf('flv') < 0) {
|
|
151692
151660
|
match = false;
|
|
151693
151661
|
} else {
|
|
151694
151662
|
match = true;
|
|
@@ -151701,7 +151669,7 @@ var SmVideoPlayer = /*#__PURE__*/function (_Vue) {
|
|
|
151701
151669
|
if (!str) return false;
|
|
151702
151670
|
var isFilePath = this.isMatchFileUrl(str);
|
|
151703
151671
|
if (isFilePath) return true;
|
|
151704
|
-
var reg = new RegExp('(https?|http|file|ftp
|
|
151672
|
+
var reg = new RegExp('(https?|http|file|ftp)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]');
|
|
151705
151673
|
return reg.test(str);
|
|
151706
151674
|
};
|
|
151707
151675
|
|
|
@@ -151719,11 +151687,6 @@ var SmVideoPlayer = /*#__PURE__*/function (_Vue) {
|
|
|
151719
151687
|
};
|
|
151720
151688
|
|
|
151721
151689
|
(0, _createClass2.default)(SmVideoPlayer, [{
|
|
151722
|
-
key: "isRtmp",
|
|
151723
|
-
get: function get() {
|
|
151724
|
-
return this.checkUrl(this.url) && this.url.includes('rtmp://');
|
|
151725
|
-
}
|
|
151726
|
-
}, {
|
|
151727
151690
|
key: "isFlv",
|
|
151728
151691
|
get: function get() {
|
|
151729
151692
|
if (!_flv.default && this.checkUrl(this.url) && this.url.includes('.flv')) {
|
|
@@ -151758,10 +151721,6 @@ __decorate([(0, _vuePropertyDecorator.Prop)({
|
|
|
151758
151721
|
default: 'https://vjs.zencdn.net/swf/5.4.2/video-js.swf'
|
|
151759
151722
|
})], SmVideoPlayer.prototype, "swf", void 0);
|
|
151760
151723
|
|
|
151761
|
-
__decorate([(0, _vuePropertyDecorator.Prop)({
|
|
151762
|
-
default: 3000
|
|
151763
|
-
})], SmVideoPlayer.prototype, "replayTime", void 0);
|
|
151764
|
-
|
|
151765
151724
|
__decorate([(0, _vuePropertyDecorator.Prop)({
|
|
151766
151725
|
default: false
|
|
151767
151726
|
})], SmVideoPlayer.prototype, "isFullscreen", void 0);
|