@ezuikit/player-theme 1.0.1-alpha.0 → 1.0.1-alpha.2

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 CHANGED
@@ -1,12 +1,10 @@
1
1
  /*
2
- * @ezuikit/player-theme v1.0.1-alpha.0
3
- * Copyright (c) 2025-11-11 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v1.0.1-alpha.2
3
+ * Copyright (c) 2025-11-14 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
7
7
 
8
- Object.defineProperty(exports, '__esModule', { value: true });
9
-
10
8
  var EventEmitter = require('eventemitter3');
11
9
  var Picker = require('@skax/picker');
12
10
  var delegate = require('@skax/delegate');
@@ -9500,7 +9498,7 @@ const THEME_DEFAULT_OPTIONS = {
9500
9498
  zh,
9501
9499
  en
9502
9500
  };
9503
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '1.0.1-alpha.0';
9501
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '1.0.1-alpha.2';
9504
9502
 
9505
9503
  exports.Control = Control;
9506
9504
  exports.Fullscreen = Fullscreen;
@@ -9512,4 +9510,3 @@ exports.Rec = Rec;
9512
9510
  exports.Theme = Theme;
9513
9511
  exports.Utils = Utils;
9514
9512
  exports.Volume = Volume;
9515
- exports.default = Theme;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v1.0.1-alpha.0
3
- * Copyright (c) 2025-11-11 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v1.0.1-alpha.2
3
+ * Copyright (c) 2025-11-14 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import EventEmitter from 'eventemitter3';
@@ -9496,6 +9496,6 @@ const THEME_DEFAULT_OPTIONS = {
9496
9496
  zh,
9497
9497
  en
9498
9498
  };
9499
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '1.0.1-alpha.0';
9499
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '1.0.1-alpha.2';
9500
9500
 
9501
- export { Control, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume, Theme as default };
9501
+ export { Control, 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 v1.0.1-alpha.0
3
- * Copyright (c) 2025-11-11 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v1.0.1-alpha.2
3
+ * Copyright (c) 2025-11-14 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  (function (global, factory) {
@@ -1474,12 +1474,12 @@
1474
1474
  * Released under the MIT License.
1475
1475
  */
1476
1476
 
1477
- var dist$6;
1478
- var hasRequiredDist$6;
1477
+ var dist$8;
1478
+ var hasRequiredDist$8;
1479
1479
 
1480
- function requireDist$6 () {
1481
- if (hasRequiredDist$6) return dist$6;
1482
- hasRequiredDist$6 = 1;
1480
+ function requireDist$8 () {
1481
+ if (hasRequiredDist$8) return dist$8;
1482
+ hasRequiredDist$8 = 1;
1483
1483
 
1484
1484
  function _array_like_to_array(arr, len) {
1485
1485
  if (len == null || len > arr.length) len = arr.length;
@@ -2029,12 +2029,12 @@
2029
2029
  * ```
2030
2030
  */ Picker.VERSION = "1.1.2";
2031
2031
 
2032
- dist$6 = Picker;
2033
- return dist$6;
2032
+ dist$8 = Picker;
2033
+ return dist$8;
2034
2034
  }
2035
2035
 
2036
- var distExports$5 = requireDist$6();
2037
- var Picker = /*@__PURE__*/getDefaultExportFromCjs(distExports$5);
2036
+ var distExports$6 = requireDist$8();
2037
+ var Picker = /*@__PURE__*/getDefaultExportFromCjs(distExports$6);
2038
2038
 
2039
2039
  /*
2040
2040
  * delegate.js v4.0.0
@@ -2042,12 +2042,12 @@
2042
2042
  * Released under the MIT License.
2043
2043
  */
2044
2044
 
2045
- var dist$5;
2046
- var hasRequiredDist$5;
2045
+ var dist$7;
2046
+ var hasRequiredDist$7;
2047
2047
 
2048
- function requireDist$5 () {
2049
- if (hasRequiredDist$5) return dist$5;
2050
- hasRequiredDist$5 = 1;
2048
+ function requireDist$7 () {
2049
+ if (hasRequiredDist$7) return dist$7;
2050
+ hasRequiredDist$7 = 1;
2051
2051
 
2052
2052
  const DOCUMENT_NODE_TYPE = 9;
2053
2053
  /**
@@ -2160,12 +2160,12 @@
2160
2160
  };
2161
2161
  }
2162
2162
 
2163
- dist$5 = delegate;
2164
- return dist$5;
2163
+ dist$7 = delegate;
2164
+ return dist$7;
2165
2165
  }
2166
2166
 
2167
- var distExports$4 = requireDist$5();
2168
- var delegate = /*@__PURE__*/getDefaultExportFromCjs(distExports$4);
2167
+ var distExports$5 = requireDist$7();
2168
+ var delegate = /*@__PURE__*/getDefaultExportFromCjs(distExports$5);
2169
2169
 
2170
2170
  var cjs;
2171
2171
  var hasRequiredCjs;
@@ -2311,13 +2311,13 @@
2311
2311
  var cjsExports = requireCjs();
2312
2312
  var deepmerge = /*@__PURE__*/getDefaultExportFromCjs(cjsExports);
2313
2313
 
2314
- var dist$4 = {};
2314
+ var dist$6 = {};
2315
2315
 
2316
- var hasRequiredDist$4;
2316
+ var hasRequiredDist$6;
2317
2317
 
2318
- function requireDist$4 () {
2319
- if (hasRequiredDist$4) return dist$4;
2320
- hasRequiredDist$4 = 1;
2318
+ function requireDist$6 () {
2319
+ if (hasRequiredDist$6) return dist$6;
2320
+ hasRequiredDist$6 = 1;
2321
2321
 
2322
2322
  var getQuery = function(url) {
2323
2323
  var query = url.split("?")[1], obj = {};
@@ -2356,7 +2356,7 @@
2356
2356
  av1: 32
2357
2357
  };
2358
2358
 
2359
- dist$4.addVc = function(url, codecs) {
2359
+ dist$6.addVc = function(url, codecs) {
2360
2360
  void 0 === codecs && (codecs = [ "h264" ]);
2361
2361
  var vc = (codecs || [ "h264" ]).reduce(function(acc, key) {
2362
2362
  return key = key.toLowerCase(), acc + (__$codec$__[key] || 0);
@@ -2364,7 +2364,7 @@
2364
2364
  return query = (query || "").split("&").filter(function(item) {
2365
2365
  return !/^vc=\d?/.test(item);
2366
2366
  }).join("&"), host + "?" + (query += (query ? "&" : "") + "vc=" + vc);
2367
- }, dist$4.getQuery = getQuery, dist$4.getStaticPath = function(path, base) {
2367
+ }, dist$6.getQuery = getQuery, dist$6.getStaticPath = function(path, base) {
2368
2368
  void 0 === base && (base = "");
2369
2369
  var protocolReg = /^(https?:\/\/|^\/\/)/;
2370
2370
  if ("" === path || void 0 === path) return "";
@@ -2375,17 +2375,17 @@
2375
2375
  } catch (error) {
2376
2376
  return path;
2377
2377
  }
2378
- }, dist$4.isHttp = function(url) {
2378
+ }, dist$6.isHttp = function(url) {
2379
2379
  return /^http[s]?:\/\//.test(url);
2380
- }, dist$4.isMobile = function(agent) {
2380
+ }, dist$6.isMobile = function(agent) {
2381
2381
  var _navigator, _navigator1, _navigator2, _window;
2382
2382
  return /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone|Opera Mini)/i.test(null != agent ? agent : null == (_navigator = navigator) ? void 0 : _navigator.userAgent) || /Macintosh/i.test(null == (_navigator1 = navigator) ? void 0 : _navigator1.userAgent) && (null == (_navigator2 = navigator) ? void 0 : _navigator2.maxTouchPoints) > 1 || (null == (_window = window) ? void 0 : _window.__IS_MOBILE_SIMULATOR__);
2383
- }, dist$4.parseEzopenUrl = parseEzopenUrl, dist$4.pick = function(obj, keys) {
2383
+ }, dist$6.parseEzopenUrl = parseEzopenUrl, dist$6.pick = function(obj, keys) {
2384
2384
  return Object.entries(obj).reduce(function(acc, param) {
2385
2385
  var key = param[0], value = param[1];
2386
2386
  return keys.includes(key) && (acc[key] = value), acc;
2387
2387
  }, {});
2388
- }, dist$4.switchEzopenUrl = function(url, options) {
2388
+ }, dist$6.switchEzopenUrl = function(url, options) {
2389
2389
  var _ref = null != options ? options : {}, type = _ref.type, recType = _ref.recType, search = _ref.search, definition = _ref.definition, channelNo = _ref.channelNo, deviceSerial = _ref.deviceSerial, validateCode = _ref.validateCode, obj = parseEzopenUrl(url);
2390
2390
  if (search) {
2391
2391
  var ns = Object.assign({}, obj.searchParams, getQuery("?" + search.replace("?", "")));
@@ -2399,10 +2399,10 @@
2399
2399
  deviceSerial = deviceSerial || obj.deviceSerial, validateCode = null != validateCode ? validateCode : obj.validateCode,
2400
2400
  obj.protocol + "//" + (validateCode ? validateCode + "@" : "") + obj.hostname + "/" + deviceSerial + "/" + channelNo + ("rec" === type && recType ? "." + recType : "") + ("live" === type && "hd" === definition ? "." + definition : "") + "." + type + search;
2401
2401
  };
2402
- return dist$4;
2402
+ return dist$6;
2403
2403
  }
2404
2404
 
2405
- var distExports$3 = requireDist$4();
2405
+ var distExports$4 = requireDist$6();
2406
2406
 
2407
2407
  /**
2408
2408
  * 节流函数
@@ -2630,7 +2630,7 @@
2630
2630
  * ```ts
2631
2631
  * Utils.isMobile // true | false
2632
2632
  * ```
2633
- */ Utils.isMobile = distExports$3.isMobile();
2633
+ */ Utils.isMobile = distExports$4.isMobile();
2634
2634
 
2635
2635
  function _defineProperties$7(target, props) {
2636
2636
  for(var i = 0; i < props.length; i++){
@@ -4116,13 +4116,13 @@
4116
4116
  return Rec;
4117
4117
  }(Control);
4118
4118
 
4119
- var dist$3 = {exports: {}};
4119
+ var dist$5 = {exports: {}};
4120
4120
 
4121
- var hasRequiredDist$3;
4121
+ var hasRequiredDist$5;
4122
4122
 
4123
- function requireDist$3 () {
4124
- if (hasRequiredDist$3) return dist$3.exports;
4125
- hasRequiredDist$3 = 1;
4123
+ function requireDist$5 () {
4124
+ if (hasRequiredDist$5) return dist$5.exports;
4125
+ hasRequiredDist$5 = 1;
4126
4126
 
4127
4127
  var deepmerge = requireCjs();
4128
4128
 
@@ -4172,7 +4172,7 @@
4172
4172
  }, _proto.getCurrentTranslation = function() {
4173
4173
  return this._translations[this._locale];
4174
4174
  }, _proto.getVersion = function() {
4175
- return "2.0.0-beta.4";
4175
+ return "2.0.0";
4176
4176
  }, _proto._onChange = function() {
4177
4177
  return null == this.options.onChange ? void 0 : this.options.onChange.call(this.options, this);
4178
4178
  }, _proto._findChainValue = function(obj, path) {
@@ -4194,19 +4194,19 @@
4194
4194
  } ]), I18n;
4195
4195
  }();
4196
4196
 
4197
- I18n.VERSION = "2.0.0-beta.4", dist$3.exports = I18n;
4198
- return dist$3.exports;
4197
+ I18n.VERSION = "2.0.0", dist$5.exports = I18n;
4198
+ return dist$5.exports;
4199
4199
  }
4200
4200
 
4201
- var distExports$2 = requireDist$3();
4202
- var I18n = /*@__PURE__*/getDefaultExportFromCjs(distExports$2);
4201
+ var distExports$3 = requireDist$5();
4202
+ var I18n = /*@__PURE__*/getDefaultExportFromCjs(distExports$3);
4203
4203
 
4204
- var dist$2;
4205
- var hasRequiredDist$2;
4204
+ var dist$4;
4205
+ var hasRequiredDist$4;
4206
4206
 
4207
- function requireDist$2 () {
4208
- if (hasRequiredDist$2) return dist$2;
4209
- hasRequiredDist$2 = 1;
4207
+ function requireDist$4 () {
4208
+ if (hasRequiredDist$4) return dist$4;
4209
+ hasRequiredDist$4 = 1;
4210
4210
 
4211
4211
  var _$LoggerStyle$_ = {
4212
4212
  info: "",
@@ -4259,7 +4259,7 @@
4259
4259
  }, _proto.getOptions = function() {
4260
4260
  return this._options;
4261
4261
  }, _proto.getVersion = function() {
4262
- return "2.0.0-beta.1";
4262
+ return "2.0.0";
4263
4263
  }, LoggerCls;
4264
4264
  }();
4265
4265
 
@@ -4267,11 +4267,11 @@
4267
4267
  return (num = +num) < 10 && (num = "0" + num), num + "";
4268
4268
  }
4269
4269
 
4270
- LoggerCls.noop = function() {}, LoggerCls.VERSION = "2.0.0-beta.1";
4270
+ LoggerCls.noop = function() {}, LoggerCls.VERSION = "2.0.0";
4271
4271
 
4272
4272
  var __$list$__ = [ "info", "log", "warn", "error" ];
4273
4273
 
4274
- dist$2 = function(options) {
4274
+ dist$4 = function(options) {
4275
4275
  var logger = new LoggerCls(options);
4276
4276
  return new Proxy(logger, {
4277
4277
  get: function(target, prop) {
@@ -4290,11 +4290,11 @@
4290
4290
  }
4291
4291
  });
4292
4292
  };
4293
- return dist$2;
4293
+ return dist$4;
4294
4294
  }
4295
4295
 
4296
- var distExports$1 = requireDist$2();
4297
- var Logger = /*@__PURE__*/getDefaultExportFromCjs(distExports$1);
4296
+ var distExports$2 = requireDist$4();
4297
+ var Logger = /*@__PURE__*/getDefaultExportFromCjs(distExports$2);
4298
4298
 
4299
4299
  var zh = {
4300
4300
  391001: '取流地址或端口非法',
@@ -8033,6 +8033,99 @@
8033
8033
  return CapturePicture;
8034
8034
  }(Control);
8035
8035
 
8036
+ var dist$3 = {};
8037
+
8038
+ var hasRequiredDist$3;
8039
+
8040
+ function requireDist$3 () {
8041
+ if (hasRequiredDist$3) return dist$3;
8042
+ hasRequiredDist$3 = 1;
8043
+
8044
+ var getQuery = function(url) {
8045
+ var query = url.split("?")[1], obj = {};
8046
+ if (query) for (var vars = query.split("&"), i = 0; i < vars.length; i++) {
8047
+ var pair = vars[i].split("=");
8048
+ obj[pair[0]] = decodeURIComponent(pair[1]);
8049
+ }
8050
+ return obj;
8051
+ };
8052
+
8053
+ function parseEzopenUrl(url) {
8054
+ var obj = {};
8055
+ if (/^ezopen:\/\//.test(url)) {
8056
+ if (url.includes("@")) {
8057
+ var endIndex = url.indexOf("@"), startIndex = url.indexOf("//");
8058
+ obj.validateCode = url.substring(startIndex + 2, endIndex), url = url.replace(obj.validateCode + "@", "");
8059
+ }
8060
+ obj.protocol = url.split("//")[0], obj.search = url.split("?")[1] ? "?" + url.split("?")[1] : "",
8061
+ obj.hostname = url.split("/")[2], obj.origin = obj.protocol + "//" + obj.hostname,
8062
+ obj.pathname = url.split("?")[0].replace(obj.origin, ""), obj.href = url;
8063
+ var pathnames = obj.pathname.split("/"), lastPath = pathnames[2].split(".");
8064
+ return obj.deviceSerial = pathnames[1], obj.channelNo = lastPath[0], obj.type = lastPath[lastPath.length - 1],
8065
+ "live" === obj.type && (obj.definition = lastPath.length > 2 ? lastPath[1] : "sd"),
8066
+ "rec" === obj.type && pathnames[2] && (obj.recType = pathnames[2].includes(".cloud.") ? "cloud" : ""),
8067
+ obj.searchParams = getQuery(url), obj;
8068
+ }
8069
+ return {};
8070
+ }
8071
+
8072
+ var __$codec$__ = {
8073
+ h264: 1,
8074
+ h265: 2,
8075
+ h266: 4,
8076
+ vp8: 8,
8077
+ vp9: 16,
8078
+ av1: 32
8079
+ };
8080
+
8081
+ dist$3.addVc = function(url, codecs) {
8082
+ void 0 === codecs && (codecs = [ "h264" ]);
8083
+ var vc = (codecs || [ "h264" ]).reduce(function(acc, key) {
8084
+ return key = key.toLowerCase(), acc + (__$codec$__[key] || 0);
8085
+ }, 0), host = url.split("?")[0], query = url.split("?")[1];
8086
+ return query = (query || "").split("&").filter(function(item) {
8087
+ return !/^vc=\d?/.test(item);
8088
+ }).join("&"), host + "?" + (query += (query ? "&" : "") + "vc=" + vc);
8089
+ }, dist$3.getQuery = getQuery, dist$3.getStaticPath = function(path, base) {
8090
+ void 0 === base && (base = "");
8091
+ var protocolReg = /^(https?:\/\/|^\/\/)/;
8092
+ if ("" === path || void 0 === path) return "";
8093
+ if (protocolReg.test(path)) return path;
8094
+ path = path.replace(/\/+/g, "/"), base = protocolReg.test(base || "") ? base : window.location.href;
8095
+ try {
8096
+ return new URL(path, base).href;
8097
+ } catch (error) {
8098
+ return path;
8099
+ }
8100
+ }, dist$3.isHttp = function(url) {
8101
+ return /^http[s]?:\/\//.test(url);
8102
+ }, dist$3.isMobile = function(agent) {
8103
+ var _navigator, _navigator1, _navigator2, _window;
8104
+ return /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone|Opera Mini)/i.test(null != agent ? agent : null == (_navigator = navigator) ? void 0 : _navigator.userAgent) || /Macintosh/i.test(null == (_navigator1 = navigator) ? void 0 : _navigator1.userAgent) && (null == (_navigator2 = navigator) ? void 0 : _navigator2.maxTouchPoints) > 1 || (null == (_window = window) ? void 0 : _window.__IS_MOBILE_SIMULATOR__);
8105
+ }, dist$3.parseEzopenUrl = parseEzopenUrl, dist$3.pick = function(obj, keys) {
8106
+ return Object.entries(obj).reduce(function(acc, param) {
8107
+ var key = param[0], value = param[1];
8108
+ return keys.includes(key) && (acc[key] = value), acc;
8109
+ }, {});
8110
+ }, dist$3.switchEzopenUrl = function(url, options) {
8111
+ var _ref = null != options ? options : {}, type = _ref.type, recType = _ref.recType, search = _ref.search, definition = _ref.definition, channelNo = _ref.channelNo, deviceSerial = _ref.deviceSerial, validateCode = _ref.validateCode, obj = parseEzopenUrl(url);
8112
+ if (search) {
8113
+ var ns = Object.assign({}, obj.searchParams, getQuery("?" + search.replace("?", "")));
8114
+ search = Object.entries(ns).reduce(function(acc, param) {
8115
+ var key = param[0], value = param[1];
8116
+ return "" === value ? acc : acc += key + "=" + encodeURIComponent(value) + "&";
8117
+ }, "?").replace(/&$/, "");
8118
+ } else search = obj.search;
8119
+ return type = type || obj.type, recType = null != recType ? recType : obj.recType,
8120
+ definition = null != definition ? definition : obj.definition, channelNo = channelNo || obj.channelNo,
8121
+ deviceSerial = deviceSerial || obj.deviceSerial, validateCode = null != validateCode ? validateCode : obj.validateCode,
8122
+ obj.protocol + "//" + (validateCode ? validateCode + "@" : "") + obj.hostname + "/" + deviceSerial + "/" + channelNo + ("rec" === type && recType ? "." + recType : "") + ("live" === type && "hd" === definition ? "." + definition : "") + "." + type + search;
8123
+ };
8124
+ return dist$3;
8125
+ }
8126
+
8127
+ var distExports$1 = requireDist$3();
8128
+
8036
8129
  /*
8037
8130
  * @ezuikit/control-ptz v0.0.1
8038
8131
  * Copyright (c) 2025-11-11 Ezviz-OpenBiz
@@ -8572,7 +8665,7 @@
8572
8665
  }
8573
8666
  }
8574
8667
  constructor(container, options = {}){
8575
- super(container, options), this._isMobile = distExports$3.isMobile(), this._isRotate = false, this._clearTimer = null;
8668
+ super(container, options), this._isMobile = distExports$1.isMobile(), this._isRotate = false, this._clearTimer = null;
8576
8669
  this._$wrapper = document.createElement('div');
8577
8670
  this._$wrapper.className = PTZ_PREFIX + '-container-wrap';
8578
8671
  this._$directionCircleContainer = document.createElement('div');
@@ -10433,7 +10526,7 @@
10433
10526
  var _proto = DatePickerControl.prototype;
10434
10527
  _proto._render = function _render() {
10435
10528
  var _this = this;
10436
- if (distExports$3.isMobile()) {
10529
+ if (distExports$4.isMobile()) {
10437
10530
  var _this_locale;
10438
10531
  this.$container.innerHTML = '\n <span class="' + PREFIX_CLASS + '-mobile-date-filter" title="' + (((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_CALENDAR) || '') + '">\n <span class="' + PREFIX_CLASS + '-mobile-date-filter-value">' + this._getDateStr() + "</span>\n " + IconComponents.filter() + "\n <span>";
10439
10532
  } else {
@@ -10447,7 +10540,7 @@
10447
10540
  language: this.options.language === 'zh' ? 'zh-CN' : 'en-US',
10448
10541
  current: new Date(this._value + ' 00:00:00'),
10449
10542
  maxDate: this.options.maxDate || new Date(),
10450
- place: distExports$3.isMobile() ? 'bottom-left' : 'top-right',
10543
+ place: distExports$4.isMobile() ? 'bottom-left' : 'top-right',
10451
10544
  onChange: function(date) {
10452
10545
  if (date && _this._value !== DateTime.formate(date, 'YYYY-MM-DD')) {
10453
10546
  _this._value = DateTime.formate(date, 'YYYY-MM-DD');
@@ -10505,8 +10598,90 @@
10505
10598
  return DatePickerControl;
10506
10599
  }(Control);
10507
10600
 
10601
+ var dist$2 = {exports: {}};
10602
+
10508
10603
  var dist$1 = {exports: {}};
10509
10604
 
10605
+ var hasRequiredDist$2;
10606
+
10607
+ function requireDist$2 () {
10608
+ if (hasRequiredDist$2) return dist$1.exports;
10609
+ hasRequiredDist$2 = 1;
10610
+
10611
+ var deepmerge = requireCjs();
10612
+
10613
+ function _create_class(Constructor, protoProps, staticProps) {
10614
+ return protoProps && function(target, props) {
10615
+ for (var i = 0; i < props.length; i++) {
10616
+ var descriptor = props[i];
10617
+ descriptor.enumerable = descriptor.enumerable || false, descriptor.configurable = true,
10618
+ "value" in descriptor && (descriptor.writable = true), Object.defineProperty(target, descriptor.key, descriptor);
10619
+ }
10620
+ }(Constructor.prototype, protoProps), Constructor;
10621
+ }
10622
+
10623
+ var I18n = function() {
10624
+ function I18n(translations, options) {
10625
+ this._translations = {}, this._locale = null == options ? void 0 : options.defaultLocale,
10626
+ translations && (this._translations = translations, (null == options ? void 0 : options.defaultLocale) || (this._locale = Object.keys(translations)[0])),
10627
+ this.options = options || {};
10628
+ }
10629
+ var _proto = I18n.prototype;
10630
+ return _proto.t = function(scope, variables) {
10631
+ var value, translation = this._translations[this._locale];
10632
+ if (!translation) return "function" == typeof this.options.customizeMissing ? this.options.customizeMissing(scope, variables) : '[missing "' + this._locale + '" locale]';
10633
+ if ("string" == typeof scope && scope.includes(".") && !(scope in translation)) {
10634
+ var _this__findChainValue = this._findChainValue(translation, scope), v = _this__findChainValue[0];
10635
+ if (_this__findChainValue[1]) value = v; else {
10636
+ if (void 0 === (null == variables ? void 0 : variables.defaultvalue)) return "function" == typeof this.options.customizeMissing ? this.options.customizeMissing(scope, variables) : '[missing "' + this._locale + "." + scope + '" translation]';
10637
+ value = variables.defaultvalue;
10638
+ }
10639
+ } else if (scope in translation) value = translation[scope]; else {
10640
+ if (void 0 === (null == variables ? void 0 : variables.defaultvalue)) return "function" == typeof this.options.customizeMissing ? this.options.customizeMissing(scope, variables) : '[missing "' + this._locale + "." + scope + '" translation]';
10641
+ value = variables.defaultvalue;
10642
+ }
10643
+ return "string" == typeof value && variables && /\{\{\s*(\w+)\s*\}\}/.test(value) ? value.replace(/\{\{\s*(\w+)\s*\}\}/g, function(_, varName) {
10644
+ return String(variables[varName]) || "";
10645
+ }) : value;
10646
+ }, _proto.appendTranslations = function(translations) {
10647
+ this._translations = deepmerge(this._translations, translations, {
10648
+ clone: false
10649
+ }), this._locale || (this._locale = Object.keys(this._translations)[0]), this._onChange();
10650
+ }, _proto.switchLocale = function(locale) {
10651
+ locale in this._translations && (this._locale = locale, this._onChange());
10652
+ }, _proto.switchTranslation = function(locale) {
10653
+ this.switchLocale(locale);
10654
+ }, _proto.getCurrentLocale = function() {
10655
+ return this._locale;
10656
+ }, _proto.getCurrentTranslation = function() {
10657
+ return this._translations[this._locale];
10658
+ }, _proto.getVersion = function() {
10659
+ return "2.0.0-beta.4";
10660
+ }, _proto._onChange = function() {
10661
+ return null == this.options.onChange ? void 0 : this.options.onChange.call(this.options, this);
10662
+ }, _proto._findChainValue = function(obj, path) {
10663
+ for (var paths = path.split("."), translation = obj, i = 0; i < paths.length; i++) {
10664
+ if (!(paths[i] in translation)) return [ void 0, false ];
10665
+ if (translation = translation[paths[i]], i + 1 === paths.length) return [ translation[paths[i]], true ];
10666
+ }
10667
+ return [ void 0, false ];
10668
+ }, _create_class(I18n, [ {
10669
+ key: "locale",
10670
+ get: function() {
10671
+ return this._locale;
10672
+ }
10673
+ }, {
10674
+ key: "translations",
10675
+ get: function() {
10676
+ return this._translations;
10677
+ }
10678
+ } ]), I18n;
10679
+ }();
10680
+
10681
+ I18n.VERSION = "2.0.0-beta.4", dist$1.exports = I18n;
10682
+ return dist$1.exports;
10683
+ }
10684
+
10510
10685
  /**
10511
10686
  * drag scroll support move and touch
10512
10687
  *
@@ -10945,18 +11120,18 @@
10945
11120
  }
10946
11121
 
10947
11122
  /*
10948
- * @ezuikit/control-time-line v1.0.1-beta.14
10949
- * Copyright (c) 2025-11-11 Ezviz-OpenBiz
11123
+ * @ezuikit/control-time-line v1.0.1
11124
+ * Copyright (c) 2025-11-14 Ezviz-OpenBiz
10950
11125
  * Released under the MIT License.
10951
11126
  */
10952
11127
 
10953
11128
  var hasRequiredDist;
10954
11129
 
10955
11130
  function requireDist () {
10956
- if (hasRequiredDist) return dist$1.exports;
11131
+ if (hasRequiredDist) return dist$2.exports;
10957
11132
  hasRequiredDist = 1;
10958
11133
  (function (module, exports) {
10959
- Object.defineProperty(exports,"__esModule",{value:true});var deepmerge=requireCjs(),I18n=requireDist$3(),Picker=requireDist$6(),DragScroll=requireDist$1(),delegate=requireDist$5(),_$TIMELINE_LOCALES$_={zh:{title:"包含{{len}}段录像",foldTitle:"{{len}}个录像"},en:{title:"Includes {{len}} {{unit}}",foldTitle:"{{len}} {{unit}}"}};function _create_class$2(Constructor,protoProps,staticProps){return protoProps&&function(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false,descriptor.configurable=true,"value"in descriptor&&(descriptor.writable=true),Object.defineProperty(target,descriptor.key,descriptor);}}(Constructor.prototype,protoProps),Constructor}var _$BASE_TIME_LINE_DEFAULT_OPTIONS$_={current:new Date,language:"zh",timeSections:[],readOnly:false,className:"",timeWidth:0,width:"100%",
11134
+ Object.defineProperty(exports,"__esModule",{value:true});var deepmerge=requireCjs(),I18n=requireDist$2(),Picker=requireDist$8(),DragScroll=requireDist$1(),delegate=requireDist$7(),_$TIMELINE_LOCALES$_={zh:{title:"包含{{len}}段录像",foldTitle:"{{len}}个录像"},en:{title:"Includes {{len}} {{unit}}",foldTitle:"{{len}} {{unit}}"}};function _create_class$2(Constructor,protoProps,staticProps){return protoProps&&function(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false,descriptor.configurable=true,"value"in descriptor&&(descriptor.writable=true),Object.defineProperty(target,descriptor.key,descriptor);}}(Constructor.prototype,protoProps),Constructor}var _$BASE_TIME_LINE_DEFAULT_OPTIONS$_={current:new Date,language:"zh",timeSections:[],readOnly:false,className:"",timeWidth:0,width:"100%",
10960
11135
  // --------------------只支持初始化时,不支持动态变更 (不做对象冻结)--------------------
10961
11136
  timePointColor:"#1890ff",timeTextColor:"#FFF",timeScaleColor:"#FFF",timeSectionColor:"rgba(24, 144, 255, 0.5)",timeAxisBgColor:"#000",
10962
11137
  onChange:function(){},onDragStart:function(){},onDragging:function(){},onDragEnd:function(){},onDestroy:function(){}},BaseTimeLine=function(){function BaseTimeLine(container,options){if(this._current=new Date,
@@ -11192,7 +11367,7 @@
11192
11367
  // 加密图片不能加载或没有图片
11193
11368
  placeholder.classList.add("ez-time-line-item-cover-placeholder"),placeholder.innerHTML=""+_$TIMELINE_ICONS$__picture,null==(_img_parentNode=img.parentNode)||_img_parentNode.appendChild(placeholder),img.remove();}},_proto._onPickerClose=function(){this._picker&&(this._picker.open=false);},_proto._onClickItem=function(e){var _e_delegateTarget_getAttribute,_e_delegateTarget,index=null==(_e_delegateTarget=e.delegateTarget)||null==(_e_delegateTarget_getAttribute=_e_delegateTarget.getAttribute)?void 0:_e_delegateTarget_getAttribute.call(_e_delegateTarget,"data-index");this._picker&&(this._picker.open=false),null==this.options.onPickerSelect||this.options.onPickerSelect.call(this.options,this.timeSections[+index]);},_proto._onClickCoverFold=function(e){var _e_delegateTarget_parentElement_getAttribute,_e_delegateTarget_parentElement,_e_delegateTarget;e.preventDefault();var time=null==(_e_delegateTarget=e.delegateTarget)||null==(_e_delegateTarget_parentElement=_e_delegateTarget.parentElement)||null==(_e_delegateTarget_parentElement_getAttribute=_e_delegateTarget_parentElement.getAttribute)?void 0:_e_delegateTarget_parentElement_getAttribute.call(_e_delegateTarget_parentElement,"data-time"),moveX=Math.abs(this._moveStartX-e.clientX),moveY=Math.abs(this._moveStartY-e.clientY);
11194
11369
  // moveX >= 1 || moveY >= 1 用于判断是否移动
11195
- this._picker&&time&&!(moveX>=1||moveY>=1)&&(this._renderPickerContent(time),this._picker.open=true);},_proto._setImageScr=function(src){if(src){var query="x=1000&"+(this.options.coverQuery||"");return src+(src.includes("?")?"&":"?")+query}return ""},_proto._offsetYToTime=function(offsetY){var _this__dragScroll,y=offsetY;offsetY<60&&(
11370
+ this._picker&&time&&!(moveX>=1||moveY>=1)&&(this._renderPickerContent(time),this._picker.open=true);},_proto._setImageScr=function(src){if(src){var query="x=200&"+(this.options.coverQuery||"");return src+(src.includes("?")?"&":"?")+query}return ""},_proto._offsetYToTime=function(offsetY){var _this__dragScroll,y=offsetY;offsetY<60&&(
11196
11371
  // 60 是下限
11197
11372
  y=60,null==(_this__dragScroll=this._dragScroll)||_this__dragScroll.scrollToY(y));var second=86400-Math.floor((y-60)*this._scaleWidth);return [second,TimeLineUtil.subTime(Math.floor(second/3600))+":"+TimeLineUtil.subTime(Math.floor(second%3600/60))+":"+TimeLineUtil.subTime(second%60)]},_create_class$1(MobileTimeLine,[{key:"_scaleWidth",get:
11198
11373
  /**
@@ -11497,8 +11672,8 @@
11497
11672
  * const timeLine = new TimeLine(document.getElementById('container'), {})
11498
11673
  * ```
11499
11674
  */TimeLine.TIME_WIDTH=TIME_WIDTH;var index={MobileTimeLine:MobileTimeLine,TimeLine:TimeLine,BaseTimeLine:BaseTimeLine};exports.BaseTimeLine=BaseTimeLine,exports.MobileTimeLine=MobileTimeLine,exports.TimeLine=TimeLine,module.exports=index;
11500
- } (dist$1, dist$1.exports));
11501
- return dist$1.exports;
11675
+ } (dist$2, dist$2.exports));
11676
+ return dist$2.exports;
11502
11677
  }
11503
11678
 
11504
11679
  var distExports = requireDist();
@@ -11599,7 +11774,7 @@
11599
11774
  }
11600
11775
  }
11601
11776
  };
11602
- if (distExports$3.isMobile()) {
11777
+ if (distExports$4.isMobile()) {
11603
11778
  this.timeLineUtil = new distExports.MobileTimeLine(this.$container, _timeLineOptions);
11604
11779
  } else {
11605
11780
  this.timeLineUtil = new distExports.TimeLine(this.$container, _timeLineOptions);
@@ -11609,7 +11784,7 @@
11609
11784
  this.timeLineUtil.update(new Date());
11610
11785
  };
11611
11786
  _proto.setWidth = function setWidth(width) {
11612
- if (!distExports$3.isMobile()) this.timeLineUtil.resize(width);
11787
+ if (!distExports$4.isMobile()) this.timeLineUtil.resize(width);
11613
11788
  };
11614
11789
  _proto._renderAddReduce = function _renderAddReduce() {
11615
11790
  var _this = this;
@@ -12872,7 +13047,7 @@
12872
13047
  _this._initOptions(options);
12873
13048
  if (_this.options.type === 'ezopen') {
12874
13049
  var _this_urlInfo_searchParams, _this_urlInfo;
12875
- _this.urlInfo = distExports$3.parseEzopenUrl(_this.options.url);
13050
+ _this.urlInfo = distExports$4.parseEzopenUrl(_this.options.url);
12876
13051
  if ((_this_urlInfo = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams = _this_urlInfo.searchParams) == null ? void 0 : _this_urlInfo_searchParams.spaceId) {
12877
13052
  _this.options.spaceId = _this.urlInfo.searchParams.spaceId;
12878
13053
  }
@@ -13622,7 +13797,7 @@
13622
13797
  };
13623
13798
  _proto._getRecType = function _getRecType(url) {
13624
13799
  if (this.options.type === 'ezopen' && /^ezopen:\/\//.test(url)) {
13625
- var urlInfo = distExports$3.parseEzopenUrl(url);
13800
+ var urlInfo = distExports$4.parseEzopenUrl(url);
13626
13801
  if (urlInfo.type === 'rec') {
13627
13802
  var _urlInfo_searchParams;
13628
13803
  if (urlInfo.recType === 'cloud' && (urlInfo == null ? void 0 : (_urlInfo_searchParams = urlInfo.searchParams) == null ? void 0 : _urlInfo_searchParams.busType) === '7') {
@@ -14081,7 +14256,7 @@
14081
14256
  zh: zh,
14082
14257
  en: en
14083
14258
  };
14084
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '1.0.1-alpha.0';
14259
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '1.0.1-alpha.2';
14085
14260
 
14086
14261
  // 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
14087
14262
 
package/dist/style.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v1.0.1-alpha.0
3
- * Copyright (c) 2025-11-11 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v1.0.1-alpha.2
3
+ * Copyright (c) 2025-11-14 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  require("./style.css");
@@ -2543,5 +2543,5 @@ declare class Utils {
2543
2543
  static resizeObserver(node: Element, callback?: (entries: ResizeObserverEntry[], observer: ResizeObserver) => void): CleanUpResizeObserver;
2544
2544
  }
2545
2545
 
2546
- export { Control, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume, Theme as default };
2546
+ export { Control, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
2547
2547
  export type { CleanUpResizeObserver, CleanUpScreenOrientationFun, ControlItem, ControlOptions, FooterOptions, FullscreenOptions, HeaderOptions, IThemeData, IThemeDataItem, LoadingOptions, MessageOptions, PlayOptions, PosterOptions, RecOptions, ScreenOrientation, ThemeOptions, VolumeOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezuikit/player-theme",
3
- "version": "1.0.1-alpha.0",
3
+ "version": "1.0.1-alpha.2",
4
4
  "description": "player theme",
5
5
  "title": "theme",
6
6
  "main": "dist/index.js",
@@ -24,10 +24,10 @@
24
24
  "author": "Ezviz-OpenBiz",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
- "@ezuikit/utils-i18n": "2.0.0-beta.4",
28
- "@ezuikit/utils-logger": "2.0.0-beta.1",
29
- "@ezuikit/utils-tools": "2.0.0-beta.3",
30
- "@ezuikit/control-time-line": "1.0.1-beta.14",
27
+ "@ezuikit/utils-i18n": "2.0.0",
28
+ "@ezuikit/utils-logger": "2.0.0",
29
+ "@ezuikit/utils-tools": "2.0.0",
30
+ "@ezuikit/control-time-line": "1.0.1",
31
31
  "@juggle/resize-observer": "^3.4.0",
32
32
  "@skax/delegate": "4.0.0",
33
33
  "@skax/picker": "1.1.2",