@ezuikit/player-theme 2.0.3-beta.2 → 2.1.0-beta.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/constant.js +2 -2
- package/dist/index.js +29 -25
- package/dist/index.mjs +29 -25
- package/dist/index.umd.js +29 -25
- package/dist/style.js +2 -2
- package/package.json +1 -1
package/dist/constant.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.0
|
|
3
|
-
* Copyright (c) 2025-12-
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.1
|
|
3
|
+
* Copyright (c) 2025-12-29 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -3186,7 +3186,14 @@ var en = {
|
|
|
3186
3186
|
{
|
|
3187
3187
|
iconId: 'volume',
|
|
3188
3188
|
part: 'left',
|
|
3189
|
-
defaultActive:
|
|
3189
|
+
defaultActive: 0,
|
|
3190
|
+
isrender: 1
|
|
3191
|
+
},
|
|
3192
|
+
{
|
|
3193
|
+
// flv 录制 2.1.0 新增
|
|
3194
|
+
iconId: 'record',
|
|
3195
|
+
part: 'left',
|
|
3196
|
+
defaultActive: 0,
|
|
3190
3197
|
isrender: 1
|
|
3191
3198
|
},
|
|
3192
3199
|
{
|
|
@@ -9630,7 +9637,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9630
9637
|
}
|
|
9631
9638
|
function _renderTheme(theme, data) {
|
|
9632
9639
|
return _async_to_generator$1(function() {
|
|
9633
|
-
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4,
|
|
9640
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1;
|
|
9634
9641
|
return _ts_generator$1(this, function(_state) {
|
|
9635
9642
|
switch(_state.label){
|
|
9636
9643
|
case 0:
|
|
@@ -9792,26 +9799,23 @@ function _renderTheme(theme, data) {
|
|
|
9792
9799
|
hasPtz = list.some(function(item) {
|
|
9793
9800
|
return item.iconId === 'ptz';
|
|
9794
9801
|
});
|
|
9795
|
-
if (
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
}
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
}
|
|
9813
|
-
if (Utils.isMobile && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions4.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
|
|
9814
|
-
theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
|
|
9802
|
+
if (hasPtz || _needTimeLine) {
|
|
9803
|
+
theme._mobileExtend = new MobileExtend(theme.$container);
|
|
9804
|
+
if (theme.options.dateOptions !== null && ((_theme_options_mobileExtendOptions1 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions1.controls.includes('date')) && _needTimeLine) {
|
|
9805
|
+
_renderDatePicker(theme, theme._mobileExtend.$topLeft, props);
|
|
9806
|
+
}
|
|
9807
|
+
if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions2 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions2.controls.includes('rec')) && _needTimeLine) {
|
|
9808
|
+
[].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (_filterThemeData_footer_btnList1 = (_filterThemeData_footer1 = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer1.btnList) != null ? _filterThemeData_footer_btnList1 : []).forEach(function(item) {
|
|
9809
|
+
var _theme__mobileExtend;
|
|
9810
|
+
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
9811
|
+
});
|
|
9812
|
+
}
|
|
9813
|
+
if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('timeLine')) && _needTimeLine) {
|
|
9814
|
+
_renderTimeLine(theme, theme._mobileExtend.$content, props);
|
|
9815
|
+
}
|
|
9816
|
+
if (Utils.isMobile && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions4.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
|
|
9817
|
+
theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
|
|
9818
|
+
}
|
|
9815
9819
|
}
|
|
9816
9820
|
}
|
|
9817
9821
|
theme.emit(EVENTS.control.mountedControls);
|
|
@@ -11384,7 +11388,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11384
11388
|
zh: zh,
|
|
11385
11389
|
en: en
|
|
11386
11390
|
};
|
|
11387
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0
|
|
11391
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.1';
|
|
11388
11392
|
|
|
11389
11393
|
exports.Control = Control;
|
|
11390
11394
|
exports.EVENTS = EVENTS;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.0
|
|
3
|
-
* Copyright (c) 2025-12-
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.1
|
|
3
|
+
* Copyright (c) 2025-12-29 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -3184,7 +3184,14 @@ var en = {
|
|
|
3184
3184
|
{
|
|
3185
3185
|
iconId: 'volume',
|
|
3186
3186
|
part: 'left',
|
|
3187
|
-
defaultActive:
|
|
3187
|
+
defaultActive: 0,
|
|
3188
|
+
isrender: 1
|
|
3189
|
+
},
|
|
3190
|
+
{
|
|
3191
|
+
// flv 录制 2.1.0 新增
|
|
3192
|
+
iconId: 'record',
|
|
3193
|
+
part: 'left',
|
|
3194
|
+
defaultActive: 0,
|
|
3188
3195
|
isrender: 1
|
|
3189
3196
|
},
|
|
3190
3197
|
{
|
|
@@ -9628,7 +9635,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9628
9635
|
}
|
|
9629
9636
|
function _renderTheme(theme, data) {
|
|
9630
9637
|
return _async_to_generator$1(function() {
|
|
9631
|
-
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4,
|
|
9638
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1;
|
|
9632
9639
|
return _ts_generator$1(this, function(_state) {
|
|
9633
9640
|
switch(_state.label){
|
|
9634
9641
|
case 0:
|
|
@@ -9790,26 +9797,23 @@ function _renderTheme(theme, data) {
|
|
|
9790
9797
|
hasPtz = list.some(function(item) {
|
|
9791
9798
|
return item.iconId === 'ptz';
|
|
9792
9799
|
});
|
|
9793
|
-
if (
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
}
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
}
|
|
9811
|
-
if (Utils.isMobile && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions4.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
|
|
9812
|
-
theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
|
|
9800
|
+
if (hasPtz || _needTimeLine) {
|
|
9801
|
+
theme._mobileExtend = new MobileExtend(theme.$container);
|
|
9802
|
+
if (theme.options.dateOptions !== null && ((_theme_options_mobileExtendOptions1 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions1.controls.includes('date')) && _needTimeLine) {
|
|
9803
|
+
_renderDatePicker(theme, theme._mobileExtend.$topLeft, props);
|
|
9804
|
+
}
|
|
9805
|
+
if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions2 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions2.controls.includes('rec')) && _needTimeLine) {
|
|
9806
|
+
[].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (_filterThemeData_footer_btnList1 = (_filterThemeData_footer1 = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer1.btnList) != null ? _filterThemeData_footer_btnList1 : []).forEach(function(item) {
|
|
9807
|
+
var _theme__mobileExtend;
|
|
9808
|
+
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
9809
|
+
});
|
|
9810
|
+
}
|
|
9811
|
+
if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('timeLine')) && _needTimeLine) {
|
|
9812
|
+
_renderTimeLine(theme, theme._mobileExtend.$content, props);
|
|
9813
|
+
}
|
|
9814
|
+
if (Utils.isMobile && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions4.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
|
|
9815
|
+
theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
|
|
9816
|
+
}
|
|
9813
9817
|
}
|
|
9814
9818
|
}
|
|
9815
9819
|
theme.emit(EVENTS.control.mountedControls);
|
|
@@ -11382,6 +11386,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11382
11386
|
zh: zh,
|
|
11383
11387
|
en: en
|
|
11384
11388
|
};
|
|
11385
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0
|
|
11389
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.1';
|
|
11386
11390
|
|
|
11387
11391
|
export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
|
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.0
|
|
3
|
-
* Copyright (c) 2025-12-
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.1
|
|
3
|
+
* Copyright (c) 2025-12-29 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -4814,7 +4814,14 @@
|
|
|
4814
4814
|
{
|
|
4815
4815
|
iconId: 'volume',
|
|
4816
4816
|
part: 'left',
|
|
4817
|
-
defaultActive:
|
|
4817
|
+
defaultActive: 0,
|
|
4818
|
+
isrender: 1
|
|
4819
|
+
},
|
|
4820
|
+
{
|
|
4821
|
+
// flv 录制 2.1.0 新增
|
|
4822
|
+
iconId: 'record',
|
|
4823
|
+
part: 'left',
|
|
4824
|
+
defaultActive: 0,
|
|
4818
4825
|
isrender: 1
|
|
4819
4826
|
},
|
|
4820
4827
|
{
|
|
@@ -12010,7 +12017,7 @@
|
|
|
12010
12017
|
}
|
|
12011
12018
|
function _renderTheme(theme, data) {
|
|
12012
12019
|
return _async_to_generator$1(function() {
|
|
12013
|
-
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4,
|
|
12020
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1;
|
|
12014
12021
|
return _ts_generator$1(this, function(_state) {
|
|
12015
12022
|
switch(_state.label){
|
|
12016
12023
|
case 0:
|
|
@@ -12172,26 +12179,23 @@
|
|
|
12172
12179
|
hasPtz = list.some(function(item) {
|
|
12173
12180
|
return item.iconId === 'ptz';
|
|
12174
12181
|
});
|
|
12175
|
-
if (
|
|
12176
|
-
|
|
12177
|
-
|
|
12178
|
-
|
|
12179
|
-
|
|
12180
|
-
|
|
12181
|
-
|
|
12182
|
-
|
|
12183
|
-
|
|
12184
|
-
|
|
12185
|
-
|
|
12186
|
-
|
|
12187
|
-
|
|
12188
|
-
}
|
|
12189
|
-
|
|
12190
|
-
|
|
12191
|
-
|
|
12192
|
-
}
|
|
12193
|
-
if (Utils.isMobile && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions4.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
|
|
12194
|
-
theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
|
|
12182
|
+
if (hasPtz || _needTimeLine) {
|
|
12183
|
+
theme._mobileExtend = new MobileExtend(theme.$container);
|
|
12184
|
+
if (theme.options.dateOptions !== null && ((_theme_options_mobileExtendOptions1 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions1.controls.includes('date')) && _needTimeLine) {
|
|
12185
|
+
_renderDatePicker(theme, theme._mobileExtend.$topLeft, props);
|
|
12186
|
+
}
|
|
12187
|
+
if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions2 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions2.controls.includes('rec')) && _needTimeLine) {
|
|
12188
|
+
[].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (_filterThemeData_footer_btnList1 = (_filterThemeData_footer1 = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer1.btnList) != null ? _filterThemeData_footer_btnList1 : []).forEach(function(item) {
|
|
12189
|
+
var _theme__mobileExtend;
|
|
12190
|
+
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
12191
|
+
});
|
|
12192
|
+
}
|
|
12193
|
+
if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('timeLine')) && _needTimeLine) {
|
|
12194
|
+
_renderTimeLine(theme, theme._mobileExtend.$content, props);
|
|
12195
|
+
}
|
|
12196
|
+
if (Utils.isMobile && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions4.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
|
|
12197
|
+
theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
|
|
12198
|
+
}
|
|
12195
12199
|
}
|
|
12196
12200
|
}
|
|
12197
12201
|
theme.emit(EVENTS.control.mountedControls);
|
|
@@ -13764,7 +13768,7 @@
|
|
|
13764
13768
|
zh: zh,
|
|
13765
13769
|
en: en
|
|
13766
13770
|
};
|
|
13767
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0
|
|
13771
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.1';
|
|
13768
13772
|
|
|
13769
13773
|
// 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
|
|
13770
13774
|
|
package/dist/style.js
CHANGED