@ezuikit/player-theme 2.0.1-beta.1 → 2.0.1-beta.3
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/index.js +57 -182
- package/dist/index.mjs +58 -183
- package/dist/index.umd.js +290 -2753
- package/dist/style.css +1 -1
- package/dist/style.js +2 -2
- package/dist/types/index.d.ts +66 -42
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.0.1-beta.
|
|
3
|
-
* Copyright (c) 2025-12-
|
|
2
|
+
* @ezuikit/player-theme v2.0.1-beta.3
|
|
3
|
+
* Copyright (c) 2025-12-04 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -44,7 +44,8 @@ var THEME_PROPS = [
|
|
|
44
44
|
'speed',
|
|
45
45
|
'urlInfo',
|
|
46
46
|
'videoLevelList',
|
|
47
|
-
'videoLevel'
|
|
47
|
+
'videoLevel',
|
|
48
|
+
'recMonth'
|
|
48
49
|
];
|
|
49
50
|
/**
|
|
50
51
|
* 当移动端 picker 控件打开时需要关闭动画(定时器)
|
|
@@ -190,8 +191,9 @@ var EVENTS = {
|
|
|
190
191
|
/** 全局全屏控件销毁 */ globalFullscreenDestroy: 'Control.globalFullscreenDestroy',
|
|
191
192
|
/** 日期面板展示隐藏变换 */ datePanelOpenChange: 'Control.datePanelOpenChange',
|
|
192
193
|
/** 日期改变 */ dateChange: 'Control.dateChange',
|
|
194
|
+
/** 日期改变 */ dateMonthChange: 'Control.dateMonthChange',
|
|
193
195
|
/** 日期销毁 */ dateDestroy: 'Control.datePanelDestroy',
|
|
194
|
-
/**
|
|
196
|
+
/** 时间轴拖动结束 */ timeLineChange: 'Control.timeLineChange',
|
|
195
197
|
/** 时间轴图片列表面板 */ timeLinePanelOpenChange: 'Control.timeLinePanelOpenChange',
|
|
196
198
|
/** 时间轴控件销毁 */ timeLineDestroy: 'Control.timeLineDestroy',
|
|
197
199
|
/** 主题控件挂载前 切换新的主题也会触发,如果想首次获取需要在 onInitializing 回调中进行监听 */ beforeMountControls: 'Control.beforeMountControls',
|
|
@@ -202,7 +204,7 @@ var EVENTS = {
|
|
|
202
204
|
/** 加载控件销毁 */ loadingDestroy: 'Control.loadingDestroy',
|
|
203
205
|
/** 消息控件销毁 */ messageDestroy: 'Control.messageDestroy',
|
|
204
206
|
/** 播放器内容区域销毁 */ contentDestroy: 'Control.contentDestroy',
|
|
205
|
-
contentRerender: 'Control.contentRerender'
|
|
207
|
+
/** 播放器内容区域重新渲染 */ contentRerender: 'Control.contentRerender'
|
|
206
208
|
},
|
|
207
209
|
/**
|
|
208
210
|
* 主题控件相关
|
|
@@ -4155,6 +4157,11 @@ function debounce(func, wait) {
|
|
|
4155
4157
|
(_theme_zoomUtil1 = theme.zoomUtil) == null ? void 0 : (_theme_zoomUtil_setTransform1 = _theme_zoomUtil1.setTransform) == null ? void 0 : _theme_zoomUtil_setTransform1.call(_theme_zoomUtil1, false);
|
|
4156
4158
|
}
|
|
4157
4159
|
});
|
|
4160
|
+
// 日期选择器
|
|
4161
|
+
theme == null ? void 0 : theme.on(EVENTS.control.dateMonthChange, function(dates) {
|
|
4162
|
+
var _theme_controls_dateControl_emit, _theme_controls_dateControl, _theme_controls;
|
|
4163
|
+
(_theme_controls = theme.controls) == null ? void 0 : (_theme_controls_dateControl = _theme_controls.dateControl) == null ? void 0 : (_theme_controls_dateControl_emit = _theme_controls_dateControl.emit) == null ? void 0 : _theme_controls_dateControl_emit.call(_theme_controls_dateControl, EVENTS.control.dateMonthChange, dates);
|
|
4164
|
+
});
|
|
4158
4165
|
}
|
|
4159
4166
|
/**
|
|
4160
4167
|
* 控件向主题发现通信消息 control.on -> theme.emit ,仅用来转发控件的事件
|
|
@@ -4353,10 +4360,10 @@ function debounce(func, wait) {
|
|
|
4353
4360
|
theme.emit(EVENTS.control.timeLineChange, date);
|
|
4354
4361
|
});
|
|
4355
4362
|
theme.controls.timeLineControl.on(EVENTS.control.timeLinePanelOpenChange, function(open) {
|
|
4356
|
-
var _theme_controls_dateControl;
|
|
4357
|
-
if ((
|
|
4358
|
-
var
|
|
4359
|
-
(
|
|
4363
|
+
var _theme_controls_dateControl, _theme_controls;
|
|
4364
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : (_theme_controls_dateControl = _theme_controls.dateControl) == null ? void 0 : _theme_controls_dateControl.datePicker) {
|
|
4365
|
+
var _theme_controls_dateControl_datePicker, _theme_controls_dateControl1, _theme_controls1;
|
|
4366
|
+
(_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_dateControl1 = _theme_controls1.dateControl) == null ? void 0 : (_theme_controls_dateControl_datePicker = _theme_controls_dateControl1.datePicker) == null ? void 0 : _theme_controls_dateControl_datePicker.hide();
|
|
4360
4367
|
}
|
|
4361
4368
|
theme.emit(EVENTS.control.timeLinePanelOpenChange, open);
|
|
4362
4369
|
});
|
|
@@ -8593,153 +8600,6 @@ var SPEED_DEFAULT_OPTIONS = {
|
|
|
8593
8600
|
return Speed;
|
|
8594
8601
|
}(Select);
|
|
8595
8602
|
|
|
8596
|
-
/**
|
|
8597
|
-
* @description 时间操作
|
|
8598
|
-
*/ var DateTime = /*#__PURE__*/ function() {
|
|
8599
|
-
function DateTime() {}
|
|
8600
|
-
/**
|
|
8601
|
-
* @description 时间格式化
|
|
8602
|
-
* @param {Date | number | string} date
|
|
8603
|
-
* @param {string} formatType 格式 'YYYY-MM-DD hh:mm:ss' 或 'YYYYMMDDhhmmss' 或 'YYYY/MM/DD hh:mm:ss' 或 'hh:mm:ss' 或 'YYYYMMDDThhmmssZ'
|
|
8604
|
-
* @param {number} timeZone 时区偏移量 默认 0
|
|
8605
|
-
*/ DateTime.formate = function formate(date, formatType, timeZone) {
|
|
8606
|
-
if (timeZone === void 0) timeZone = 0;
|
|
8607
|
-
var dateTime = date;
|
|
8608
|
-
if (typeof date === 'string') {
|
|
8609
|
-
dateTime = DateTime.strToDate(date);
|
|
8610
|
-
} else if (typeof date === 'number') {
|
|
8611
|
-
dateTime = new Date(date);
|
|
8612
|
-
}
|
|
8613
|
-
dateTime = new Date(dateTime.getTime() - timeZone * 3600 * 1000);
|
|
8614
|
-
var year = dateTime.getFullYear();
|
|
8615
|
-
var month = String(dateTime.getMonth() + 1).padStart(2, '0');
|
|
8616
|
-
var day = String(dateTime.getDate()).padStart(2, '0');
|
|
8617
|
-
var hours = String(dateTime.getHours()).padStart(2, '0');
|
|
8618
|
-
var minutes = String(dateTime.getMinutes()).padStart(2, '0');
|
|
8619
|
-
var seconds = String(dateTime.getSeconds()).padStart(2, '0');
|
|
8620
|
-
switch(formatType){
|
|
8621
|
-
case 'YYYY-MM-DD hh:mm:ss':
|
|
8622
|
-
return year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds;
|
|
8623
|
-
case 'YYYYMMDDhhmmss':
|
|
8624
|
-
return "" + year + month + day + hours + minutes + seconds;
|
|
8625
|
-
case 'YYYY/MM/DD hh:mm:ss':
|
|
8626
|
-
return year + "/" + month + "/" + day + " " + hours + ":" + minutes + ":" + seconds;
|
|
8627
|
-
case 'YYYYMMDDThhmmssZ':
|
|
8628
|
-
return "" + year + month + day + "T" + hours + minutes + seconds + "Z";
|
|
8629
|
-
case 'YYYY/MM/DD':
|
|
8630
|
-
return year + "/" + month + "/" + day;
|
|
8631
|
-
case 'YYYYMMDD':
|
|
8632
|
-
return "" + year + month + day;
|
|
8633
|
-
case 'YYYY-MM-DD':
|
|
8634
|
-
return year + "-" + month + "-" + day;
|
|
8635
|
-
case 'YYYY':
|
|
8636
|
-
return "" + year;
|
|
8637
|
-
case 'MM':
|
|
8638
|
-
return "" + month;
|
|
8639
|
-
case 'DD':
|
|
8640
|
-
return "" + day;
|
|
8641
|
-
case 'hh:mm:ss':
|
|
8642
|
-
return hours + ":" + minutes + ":" + seconds;
|
|
8643
|
-
case 'hh':
|
|
8644
|
-
return "" + hours;
|
|
8645
|
-
case 'mm':
|
|
8646
|
-
return "" + minutes;
|
|
8647
|
-
case 'ss':
|
|
8648
|
-
return "" + seconds;
|
|
8649
|
-
default:
|
|
8650
|
-
throw new Error('Unsupported format type');
|
|
8651
|
-
}
|
|
8652
|
-
};
|
|
8653
|
-
/**
|
|
8654
|
-
* @description 对比两个时间的差值
|
|
8655
|
-
* @param {Date | string | number} date1
|
|
8656
|
-
* @param {Date | string | number} date2
|
|
8657
|
-
* @param {"year" | "month" | "day" | "hour" | "minute" | "second"} diffType
|
|
8658
|
-
*/ DateTime.diff = function diff(date1, date2, diffType) {
|
|
8659
|
-
/** @type {Date} */ var dateTime1 = date1;
|
|
8660
|
-
if (typeof date1 === 'string') {
|
|
8661
|
-
dateTime1 = DateTime.strToDate(date1);
|
|
8662
|
-
} else if (typeof date1 === 'number') {
|
|
8663
|
-
dateTime1 = new Date(date1);
|
|
8664
|
-
}
|
|
8665
|
-
/** @type {Date} */ var dateTime2 = date2;
|
|
8666
|
-
if (typeof date2 === 'string') {
|
|
8667
|
-
dateTime1 = DateTime.strToDate(date2);
|
|
8668
|
-
} else if (typeof date2 === 'number') {
|
|
8669
|
-
dateTime1 = new Date(date2);
|
|
8670
|
-
}
|
|
8671
|
-
var diffSecond = dateTime1.getTime() - dateTime2.getTime();
|
|
8672
|
-
// diff
|
|
8673
|
-
switch(diffType){
|
|
8674
|
-
case 'year':
|
|
8675
|
-
return dateTime1.getFullYear() - dateTime2.getFullYear();
|
|
8676
|
-
case 'month':
|
|
8677
|
-
// 计算总月份差
|
|
8678
|
-
// eslint-disable-next-line no-case-declarations
|
|
8679
|
-
var months = (dateTime1.getFullYear() - dateTime2.getFullYear()) * 12 + (dateTime1.getMonth() - dateTime2.getMonth());
|
|
8680
|
-
// 如果结束日的日期小于开始日的日期,则减去一个月
|
|
8681
|
-
if (dateTime1.getDate() < dateTime2.getDate()) {
|
|
8682
|
-
months--;
|
|
8683
|
-
}
|
|
8684
|
-
return months;
|
|
8685
|
-
case 'day':
|
|
8686
|
-
return diffSecond / 60 / 60 / 24;
|
|
8687
|
-
case 'hour':
|
|
8688
|
-
return diffSecond / 60 / 60;
|
|
8689
|
-
case 'minute':
|
|
8690
|
-
return diffSecond / 60;
|
|
8691
|
-
case 'second':
|
|
8692
|
-
return diffSecond;
|
|
8693
|
-
default:
|
|
8694
|
-
throw new Error('Unsupported diff type');
|
|
8695
|
-
}
|
|
8696
|
-
};
|
|
8697
|
-
DateTime.now = function now() {
|
|
8698
|
-
return Date.now();
|
|
8699
|
-
};
|
|
8700
|
-
/**
|
|
8701
|
-
*
|
|
8702
|
-
* @param {string} str 日期, 2025-04-10 10:10:10 或 2025/04/10 10:10:10 或 20250410101010 或 20250410T101010Z 或 秒 或 毫秒
|
|
8703
|
-
* @example
|
|
8704
|
-
* DateTime.strToDate("2025/04/10 10:10:10") // Date
|
|
8705
|
-
* DateTime.strToDate("2025-04-10 10:10:10") // Date
|
|
8706
|
-
* DateTime.strToDate("20250410101010") // Date
|
|
8707
|
-
* DateTime.strToDate("20250410T101010Z") // Date
|
|
8708
|
-
*/ DateTime.strToDate = function strToDate(str) {
|
|
8709
|
-
var time = (str + '').replace(/-/gi, '').replace(/:/gi, '').replace(/\//gi, '').replace(/ /gi, '').replace(/T|Z/gi, '');
|
|
8710
|
-
// 兼容
|
|
8711
|
-
if ((str + '').length === 10) {
|
|
8712
|
-
// 时间戳 秒
|
|
8713
|
-
return new Date(+str);
|
|
8714
|
-
} else if ((str + '').length === 13) {
|
|
8715
|
-
// 时间戳 毫秒
|
|
8716
|
-
return new Date(+str);
|
|
8717
|
-
}
|
|
8718
|
-
var year = time.slice(0, 4);
|
|
8719
|
-
var month = time.slice(4, 6);
|
|
8720
|
-
var day = time.slice(6, 8);
|
|
8721
|
-
var hour = time.slice(8, 10);
|
|
8722
|
-
var minute = time.slice(10, 12);
|
|
8723
|
-
var second = time.slice(12, 14);
|
|
8724
|
-
return new Date(year + '/' + month + '/' + day + ' ' + hour + ':' + minute + ':' + second);
|
|
8725
|
-
};
|
|
8726
|
-
/**
|
|
8727
|
-
* @description 补充十位
|
|
8728
|
-
* @param {number} num
|
|
8729
|
-
* @returns {string}
|
|
8730
|
-
* @example
|
|
8731
|
-
* DateTime.padStart(1) // "01"
|
|
8732
|
-
* DateTime.padStart(33) // "33"
|
|
8733
|
-
*/ DateTime.padStart = function padStart(num) {
|
|
8734
|
-
if (num < 10) {
|
|
8735
|
-
return '0' + num;
|
|
8736
|
-
} else {
|
|
8737
|
-
return num + '';
|
|
8738
|
-
}
|
|
8739
|
-
};
|
|
8740
|
-
return DateTime;
|
|
8741
|
-
}();
|
|
8742
|
-
|
|
8743
8603
|
function _extends$5() {
|
|
8744
8604
|
_extends$5 = Object.assign || function(target) {
|
|
8745
8605
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -8790,13 +8650,19 @@ function _set_prototype_of$6(o, p) {
|
|
|
8790
8650
|
classNameSuffix: 'date'
|
|
8791
8651
|
})) || this;
|
|
8792
8652
|
_this.options = options;
|
|
8793
|
-
_this._value = DateTime.
|
|
8653
|
+
_this._value = require$$1.DateTime.format(((_this_options_props = _this.options.props) == null ? void 0 : (_this_options_props_urlInfo = _this_options_props.urlInfo) == null ? void 0 : (_this_options_props_urlInfo_searchParams = _this_options_props_urlInfo.searchParams) == null ? void 0 : _this_options_props_urlInfo_searchParams.begin) || new Date(), 'YYYY-MM-DD');
|
|
8794
8654
|
_this._render();
|
|
8655
|
+
// 日期上的点
|
|
8656
|
+
_this.on(EVENTS.control.dateMonthChange, function(dates) {
|
|
8657
|
+
var _this_datePicker_updateBadges, _this_datePicker;
|
|
8658
|
+
(_this_datePicker = _this.datePicker) == null ? void 0 : (_this_datePicker_updateBadges = _this_datePicker.updateBadges) == null ? void 0 : _this_datePicker_updateBadges.call(_this_datePicker, dates);
|
|
8659
|
+
});
|
|
8795
8660
|
return _this;
|
|
8796
8661
|
}
|
|
8797
8662
|
var _proto = DatePickerControl.prototype;
|
|
8798
8663
|
_proto._render = function _render() {
|
|
8799
8664
|
var _this = this;
|
|
8665
|
+
var _this_options_props;
|
|
8800
8666
|
var isMobile1 = require$$1.isMobile();
|
|
8801
8667
|
if (isMobile1) {
|
|
8802
8668
|
var _this_locale;
|
|
@@ -8807,7 +8673,7 @@ function _set_prototype_of$6(o, p) {
|
|
|
8807
8673
|
title: (_this_locale1 = this.locale) == null ? void 0 : _this_locale1.BTN_CALENDAR
|
|
8808
8674
|
});
|
|
8809
8675
|
}
|
|
8810
|
-
this.
|
|
8676
|
+
this.datePicker = new controlDatePicker.DatePicker(this.$container, {
|
|
8811
8677
|
isMobile: isMobile1,
|
|
8812
8678
|
getPopupContainer: function() {
|
|
8813
8679
|
return _this.$container;
|
|
@@ -8817,7 +8683,7 @@ function _set_prototype_of$6(o, p) {
|
|
|
8817
8683
|
0,
|
|
8818
8684
|
-10
|
|
8819
8685
|
],
|
|
8820
|
-
badges: this.options.
|
|
8686
|
+
badges: ((_this_options_props = this.options.props) == null ? void 0 : _this_options_props.recMonth) || [],
|
|
8821
8687
|
language: this.options.language === 'zh' ? 'zh' : 'en',
|
|
8822
8688
|
current: new Date(this._value + ' 00:00:00'),
|
|
8823
8689
|
disabledDate: function(date) {
|
|
@@ -8825,8 +8691,8 @@ function _set_prototype_of$6(o, p) {
|
|
|
8825
8691
|
},
|
|
8826
8692
|
placement: 'tr',
|
|
8827
8693
|
onOk: function(date, mode) {
|
|
8828
|
-
if (date && _this._value !== DateTime.
|
|
8829
|
-
_this._value = DateTime.
|
|
8694
|
+
if (date && _this._value !== require$$1.DateTime.format(date, 'YYYY-MM-DD') && isMobile1) {
|
|
8695
|
+
_this._value = require$$1.DateTime.format(date, 'YYYY-MM-DD');
|
|
8830
8696
|
_this.options.onChange == null ? void 0 : _this.options.onChange.call(_this.options, date);
|
|
8831
8697
|
_this.emit(EVENTS.control.dateChange, date);
|
|
8832
8698
|
if (date && _this.$container.querySelector("." + PREFIX_CLASS + "-mobile-date-filter-value")) {
|
|
@@ -8834,19 +8700,16 @@ function _set_prototype_of$6(o, p) {
|
|
|
8834
8700
|
}
|
|
8835
8701
|
}
|
|
8836
8702
|
},
|
|
8837
|
-
onChange: function(date) {
|
|
8838
|
-
if (date && _this._value !== DateTime.
|
|
8839
|
-
_this._value = DateTime.
|
|
8703
|
+
onChange: function(date, mode) {
|
|
8704
|
+
if (date && _this._value !== require$$1.DateTime.format(date, 'YYYY-MM-DD') && !isMobile1 && mode === 'date') {
|
|
8705
|
+
_this._value = require$$1.DateTime.format(date, 'YYYY-MM-DD');
|
|
8840
8706
|
_this.options.onChange == null ? void 0 : _this.options.onChange.call(_this.options, date);
|
|
8841
8707
|
_this.emit(EVENTS.control.dateChange, date);
|
|
8842
|
-
if (date && _this.$container.querySelector("." + PREFIX_CLASS + "-mobile-date-filter-value")) {
|
|
8843
|
-
_this.$container.querySelector("." + PREFIX_CLASS + "-mobile-date-filter-value").innerHTML = _this._getDateStr();
|
|
8844
|
-
}
|
|
8845
8708
|
}
|
|
8846
8709
|
},
|
|
8847
8710
|
onOpenChange: function(open) {
|
|
8848
|
-
_this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.
|
|
8849
|
-
_this.emit(EVENTS.control.datePanelOpenChange, open, _this.
|
|
8711
|
+
_this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.datePicker.current);
|
|
8712
|
+
_this.emit(EVENTS.control.datePanelOpenChange, open, _this.datePicker.current);
|
|
8850
8713
|
}
|
|
8851
8714
|
});
|
|
8852
8715
|
};
|
|
@@ -8856,27 +8719,27 @@ function _set_prototype_of$6(o, p) {
|
|
|
8856
8719
|
* @param change 是否触发 onChange 事件
|
|
8857
8720
|
*/ _proto.setDate = function setDate(date, change) {
|
|
8858
8721
|
if (change === void 0) change = true;
|
|
8859
|
-
var
|
|
8860
|
-
(
|
|
8861
|
-
if (date && !change && this._value !== DateTime.
|
|
8862
|
-
this._value = DateTime.
|
|
8722
|
+
var _this_datePicker;
|
|
8723
|
+
(_this_datePicker = this.datePicker) == null ? void 0 : _this_datePicker.setCurrent(date, change);
|
|
8724
|
+
if (date && !change && this._value !== require$$1.DateTime.format(date, 'YYYY-MM-DD')) {
|
|
8725
|
+
this._value = require$$1.DateTime.format(date, 'YYYY-MM-DD');
|
|
8863
8726
|
if (date && this.$container.querySelector("." + PREFIX_CLASS + "-mobile-date-filter-value")) {
|
|
8864
8727
|
this.$container.querySelector("." + PREFIX_CLASS + "-mobile-date-filter-value").innerHTML = this._getDateStr();
|
|
8865
8728
|
}
|
|
8866
8729
|
}
|
|
8867
8730
|
};
|
|
8868
8731
|
_proto.reset = function reset() {
|
|
8869
|
-
if (this.
|
|
8732
|
+
if (this.datePicker) this.datePicker.open = false;
|
|
8870
8733
|
Control.prototype.reset.call(this);
|
|
8871
8734
|
};
|
|
8872
8735
|
/**
|
|
8873
8736
|
* 销毁控件
|
|
8874
8737
|
* @override
|
|
8875
8738
|
*/ _proto.destroy = function destroy() {
|
|
8876
|
-
if (this.
|
|
8877
|
-
this.
|
|
8739
|
+
if (this.datePicker) {
|
|
8740
|
+
this.datePicker.destroy();
|
|
8878
8741
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
8879
|
-
this.
|
|
8742
|
+
this.datePicker = null;
|
|
8880
8743
|
}
|
|
8881
8744
|
Control.prototype.destroy.call(this);
|
|
8882
8745
|
};
|
|
@@ -9959,8 +9822,7 @@ var _renderDatePicker = function(theme, container, props) {
|
|
|
9959
9822
|
return container;
|
|
9960
9823
|
},
|
|
9961
9824
|
language: theme.options.language,
|
|
9962
|
-
locales: theme.i18n.translations
|
|
9963
|
-
staticPath: theme.options.staticPath
|
|
9825
|
+
locales: theme.i18n.translations
|
|
9964
9826
|
}, ((_theme_options = theme.options) == null ? void 0 : _theme_options["dateOptions"]) || {}, {
|
|
9965
9827
|
props: props
|
|
9966
9828
|
}));
|
|
@@ -10259,7 +10121,20 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10259
10121
|
*/ _this._footerMoreControl = null, /** 头部控件 @since 0.0.1 @private */ _this._header = null, /** 低部控件 @since 0.0.1 @private */ _this._footer = null, /** 回放底部时间轴 @since 0.0.1 @private */ _this._recFooter = null, /**
|
|
10260
10122
|
* 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
|
|
10261
10123
|
* @private
|
|
10262
|
-
*/ _this._mobileExtend = null, /** @since 0.0.1 @private */ _this._interactiveResult = null, /** @since 0.0.1 @private */ _this._themeData = null, _this._fullscreen = null, _this.zoomUtil = null, /** 清除屏幕旋转 */ _this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ _this._cleanUpResizeObserver = null, /** 容器的宽 */ _this._width = 0, /** 容器的高 */ _this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ _this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ _this._orientationAngle = 0, /** 是否播放中 @private */ _this._playing = false, /** 加载中 */ _this._loading = false, /** 音量 */ _this._volume = 0, /** 静音 */ _this._muted = false, /** 电子放大倍数 @private */ _this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ _this._zooming = false, /** 录制中 @private */ _this._recording = false, /** 对讲中 @private */ _this._talking = false, /** 倍速 @private */ _this._speed = 1, /** 自定清晰度 @private */ _this._videoLevelAuto = false, /** 清晰度列表 */ _this.videoLevelList = [], /** 回放片段列表 */ _this.recordList = [], /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */ _this._resizeOverflowTimer = null,
|
|
10124
|
+
*/ _this._mobileExtend = null, /** @since 0.0.1 @private */ _this._interactiveResult = null, /** @since 0.0.1 @private */ _this._themeData = null, _this._fullscreen = null, _this.zoomUtil = null, /** 清除屏幕旋转 */ _this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ _this._cleanUpResizeObserver = null, /** 容器的宽 */ _this._width = 0, /** 容器的高 */ _this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ _this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ _this._orientationAngle = 0, /** 是否播放中 @private */ _this._playing = false, /** 加载中 */ _this._loading = false, /** 音量 */ _this._volume = 0, /** 静音 */ _this._muted = false, /** 电子放大倍数 @private */ _this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ _this._zooming = false, /** 录制中 @private */ _this._recording = false, /** 对讲中 @private */ _this._talking = false, /** 倍速 @private */ _this._speed = 1, /** 自定清晰度 @private */ _this._videoLevelAuto = false, /** 清晰度列表 */ _this.videoLevelList = [], /** 回放片段列表 */ _this.recordList = [], /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */ _this._resizeOverflowTimer = null, // /**
|
|
10125
|
+
// * 记录回放的月份
|
|
10126
|
+
// *
|
|
10127
|
+
// * key: {序列号}_{通道号}_{rec | cloud | cloudRecord} 比如:BC7799091_1_rec BC7799091_1_cloud BC7799091_1_cloudRecord
|
|
10128
|
+
// *
|
|
10129
|
+
// * value: 月份列表 比如 ["2025-12-01", "2025-12-02"]
|
|
10130
|
+
// * @private
|
|
10131
|
+
// */
|
|
10132
|
+
// _recMonthObj: Record<string, string[]> = {};
|
|
10133
|
+
/**
|
|
10134
|
+
* 录像回放的月份列表 @private
|
|
10135
|
+
*/ _this.recMonth = [
|
|
10136
|
+
'2025-12-01'
|
|
10137
|
+
], /** 清理 header/footer 动画 定时器 @private */ _this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ _this.destroyed = false, /** 播放地址信息 */ _this.urlInfo = null, _this.scaleMode = 0;
|
|
10263
10138
|
_this._initOptions(options);
|
|
10264
10139
|
if (_this.options.type === 'ezopen') {
|
|
10265
10140
|
var _this_urlInfo_searchParams, _this_urlInfo;
|
|
@@ -10269,7 +10144,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10269
10144
|
}
|
|
10270
10145
|
if (_this.urlInfo.type === 'rec') {
|
|
10271
10146
|
var _this_urlInfo_searchParams1, _this_urlInfo1, _this_urlInfo_searchParams2, _this_urlInfo2;
|
|
10272
|
-
_this._seekDate = ((_this_urlInfo1 = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams1 = _this_urlInfo1.searchParams) == null ? void 0 : _this_urlInfo_searchParams1.begin) ? DateTime.
|
|
10147
|
+
_this._seekDate = ((_this_urlInfo1 = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams1 = _this_urlInfo1.searchParams) == null ? void 0 : _this_urlInfo_searchParams1.begin) ? require$$1.DateTime.toDate((_this_urlInfo2 = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams2 = _this_urlInfo2.searchParams) == null ? void 0 : _this_urlInfo_searchParams2.begin) : require$$1.DateTime.toDate(require$$1.DateTime.format(new Date(), 'YYYY/MM/DD') + ' 00:00:00');
|
|
10273
10148
|
}
|
|
10274
10149
|
}
|
|
10275
10150
|
_this._getRecType(_this.options.url);
|
|
@@ -11481,7 +11356,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11481
11356
|
zh: zh,
|
|
11482
11357
|
en: en
|
|
11483
11358
|
};
|
|
11484
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0.1-beta.
|
|
11359
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0.1-beta.3';
|
|
11485
11360
|
|
|
11486
11361
|
exports.Control = Control;
|
|
11487
11362
|
exports.Fullscreen = Fullscreen;
|