@ezuikit/player-theme 3.1.0-beta.3 → 3.1.0-beta.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.0-beta.3
3
- * Copyright (c) 2026-07-03 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.0-beta.4
3
+ * Copyright (c) 2026-07-06 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  /**
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.0-beta.3
3
- * Copyright (c) 2026-07-03 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.0-beta.4
3
+ * Copyright (c) 2026-07-06 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
@@ -4674,13 +4674,13 @@ function debounce(func, wait) {
4674
4674
  theme.emit(EVENTS.control.timeLineDestroy);
4675
4675
  });
4676
4676
  // this.emit("TimeLine.onSectionIconClick", result)
4677
- theme.controls.timeLineControl.on("TimeLine.onSectionIconClick", function(result) {
4677
+ theme.controls.timeLineControl.on('TimeLine.onSectionIconClick', function(result) {
4678
4678
  var _theme_controls;
4679
4679
  if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.recListControl) {
4680
4680
  var _theme_controls_recListControl, _theme_controls1;
4681
- (_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_recListControl = _theme_controls1.recListControl) == null ? void 0 : _theme_controls_recListControl.emit("TimeLine.onSectionIconClick", result);
4681
+ (_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_recListControl = _theme_controls1.recListControl) == null ? void 0 : _theme_controls_recListControl.emit('TimeLine.onSectionIconClick', result);
4682
4682
  }
4683
- theme.emit("TimeLine.onSectionIconClick", result);
4683
+ theme.emit('TimeLine.onSectionIconClick', result);
4684
4684
  });
4685
4685
  }
4686
4686
  // 日历控件
@@ -7454,6 +7454,8 @@ function _set_prototype_of$c(o, p) {
7454
7454
  showMask: false,
7455
7455
  title: (_this_locale = _this.locale) == null ? void 0 : _this_locale.BTN_REC_LIST_TITLE
7456
7456
  }, options, {
7457
+ showEventFilter: false,
7458
+ showCardTypeIcon: false,
7457
7459
  onCardClick: function(section, index, sections) {
7458
7460
  _this.emit(EVENTS.control.recListCardClick, section, index, sections);
7459
7461
  },
@@ -7467,12 +7469,11 @@ function _set_prototype_of$c(o, p) {
7467
7469
  }));
7468
7470
  _this.on(EVENTS.setAllDayRecTimes, function(records) {
7469
7471
  var // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
7470
- _this__modal, _this__modal1;
7472
+ _this__modal;
7471
7473
  _this.disabled = records.length === 0;
7472
7474
  _this.records = records;
7473
7475
  (_this__modal = _this._modal) == null ? void 0 : _this__modal.setSections(records);
7474
- var _this__options_showEventFilter;
7475
- (_this__modal1 = _this._modal) == null ? void 0 : _this__modal1.showEventFilter((_this__options_showEventFilter = _this._options.showEventFilter) != null ? _this__options_showEventFilter : true);
7476
+ // this._modal?.showEventFilter(this._options.showEventFilter ?? true);
7476
7477
  });
7477
7478
  _this.on(EVENTS.getOSDTime, function(time) {
7478
7479
  if (time) {
@@ -7481,18 +7482,18 @@ function _set_prototype_of$c(o, p) {
7481
7482
  (_this__modal = _this._modal) == null ? void 0 : (_this__modal_setActiveTime = _this__modal.setActiveTime) == null ? void 0 : _this__modal_setActiveTime.call(_this__modal, _currentTime);
7482
7483
  }
7483
7484
  });
7484
- _this.on("TimeLine.onSectionIconClick", function(result) {
7485
+ _this.on('TimeLine.onSectionIconClick', function(result) {
7485
7486
  var // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
7486
- _this__modal, _this__modal1, // this._options.rootContainer
7487
- _this__modal2, _this__modal3, _this__modal4;
7487
+ _this__modal, // this._modal?.showEventFilter(false);
7488
+ // this._options.rootContainer
7489
+ _this__modal1, _this__modal2;
7488
7490
  var list = _this.records.slice(result.index || 0, result.index + result.count);
7489
7491
  var $rootContainer = _this._options.rootContainer;
7490
7492
  var width = $rootContainer.clientWidth;
7491
7493
  var rect = $rootContainer.getBoundingClientRect();
7492
7494
  (_this__modal = _this._modal) == null ? void 0 : _this__modal.setSections(list);
7493
- (_this__modal1 = _this._modal) == null ? void 0 : _this__modal1.showEventFilter(false);
7494
- (_this__modal2 = _this._modal) == null ? void 0 : _this__modal2.open();
7495
- if (!((_this__modal3 = _this._modal) == null ? void 0 : _this__modal3.isVisible)) (_this__modal4 = _this._modal) == null ? void 0 : _this__modal4.setPosition(width + rect.x, rect.y);
7495
+ (_this__modal1 = _this._modal) == null ? void 0 : _this__modal1.open();
7496
+ (_this__modal2 = _this._modal) == null ? void 0 : _this__modal2.setPosition(width + rect.x, rect.y);
7496
7497
  });
7497
7498
  _this.on(EVENTS.recListChange, function(open) {
7498
7499
  _this._panelOpen = open;
@@ -7528,19 +7529,18 @@ function _set_prototype_of$c(o, p) {
7528
7529
  this.active = this._panelOpen;
7529
7530
  if (this.active) {
7530
7531
  var // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
7531
- _this__modal, _this__modal1, // this._options.rootContainer
7532
- _this__modal2, _this__modal3, _this__modal4;
7532
+ _this__modal, // this._options.rootContainer
7533
+ _this__modal1, _this__modal2;
7533
7534
  var $rootContainer = this._options.rootContainer;
7534
7535
  var width = $rootContainer.clientWidth;
7535
7536
  var rect = $rootContainer.getBoundingClientRect();
7536
7537
  (_this__modal = this._modal) == null ? void 0 : _this__modal.setSections(this.records);
7537
- var _this__options_showEventFilter;
7538
- (_this__modal1 = this._modal) == null ? void 0 : _this__modal1.showEventFilter((_this__options_showEventFilter = this._options.showEventFilter) != null ? _this__options_showEventFilter : true);
7539
- (_this__modal2 = this._modal) == null ? void 0 : _this__modal2.open();
7540
- if (!((_this__modal3 = this._modal) == null ? void 0 : _this__modal3.isVisible)) (_this__modal4 = this._modal) == null ? void 0 : _this__modal4.setPosition(width + rect.x, rect.y);
7538
+ // this._modal?.showEventFilter(this._options.showEventFilter ?? true);
7539
+ (_this__modal1 = this._modal) == null ? void 0 : _this__modal1.open();
7540
+ (_this__modal2 = this._modal) == null ? void 0 : _this__modal2.setPosition(width + rect.x, rect.y);
7541
7541
  } else {
7542
- var _this__modal5;
7543
- (_this__modal5 = this._modal) == null ? void 0 : _this__modal5.close();
7542
+ var _this__modal3;
7543
+ (_this__modal3 = this._modal) == null ? void 0 : _this__modal3.close();
7544
7544
  }
7545
7545
  this.emit(EVENTS.control.recListChange, this._panelOpen);
7546
7546
  };
@@ -8637,7 +8637,7 @@ function _set_prototype_of$5(o, p) {
8637
8637
  }
8638
8638
  },
8639
8639
  onSectionIconClick: function(result) {
8640
- _this.emit("TimeLine.onSectionIconClick", result);
8640
+ _this.emit('TimeLine.onSectionIconClick', result);
8641
8641
  }
8642
8642
  });
8643
8643
  if (utilsTools.isMobile()) {
@@ -11268,7 +11268,7 @@ var THEME_DEFAULT_OPTIONS = {
11268
11268
  zh: zh,
11269
11269
  en: en
11270
11270
  };
11271
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.0-beta.3';
11271
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.0-beta.4';
11272
11272
 
11273
11273
  exports.Control = Control;
11274
11274
  exports.EVENTS = EVENTS;
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.0-beta.3
3
- * Copyright (c) 2026-07-03 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.0-beta.4
3
+ * Copyright (c) 2026-07-06 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import EventEmitter from 'eventemitter3';
@@ -4672,13 +4672,13 @@ function debounce(func, wait) {
4672
4672
  theme.emit(EVENTS.control.timeLineDestroy);
4673
4673
  });
4674
4674
  // this.emit("TimeLine.onSectionIconClick", result)
4675
- theme.controls.timeLineControl.on("TimeLine.onSectionIconClick", function(result) {
4675
+ theme.controls.timeLineControl.on('TimeLine.onSectionIconClick', function(result) {
4676
4676
  var _theme_controls;
4677
4677
  if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.recListControl) {
4678
4678
  var _theme_controls_recListControl, _theme_controls1;
4679
- (_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_recListControl = _theme_controls1.recListControl) == null ? void 0 : _theme_controls_recListControl.emit("TimeLine.onSectionIconClick", result);
4679
+ (_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_recListControl = _theme_controls1.recListControl) == null ? void 0 : _theme_controls_recListControl.emit('TimeLine.onSectionIconClick', result);
4680
4680
  }
4681
- theme.emit("TimeLine.onSectionIconClick", result);
4681
+ theme.emit('TimeLine.onSectionIconClick', result);
4682
4682
  });
4683
4683
  }
4684
4684
  // 日历控件
@@ -7452,6 +7452,8 @@ function _set_prototype_of$c(o, p) {
7452
7452
  showMask: false,
7453
7453
  title: (_this_locale = _this.locale) == null ? void 0 : _this_locale.BTN_REC_LIST_TITLE
7454
7454
  }, options, {
7455
+ showEventFilter: false,
7456
+ showCardTypeIcon: false,
7455
7457
  onCardClick: function(section, index, sections) {
7456
7458
  _this.emit(EVENTS.control.recListCardClick, section, index, sections);
7457
7459
  },
@@ -7465,12 +7467,11 @@ function _set_prototype_of$c(o, p) {
7465
7467
  }));
7466
7468
  _this.on(EVENTS.setAllDayRecTimes, function(records) {
7467
7469
  var // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
7468
- _this__modal, _this__modal1;
7470
+ _this__modal;
7469
7471
  _this.disabled = records.length === 0;
7470
7472
  _this.records = records;
7471
7473
  (_this__modal = _this._modal) == null ? void 0 : _this__modal.setSections(records);
7472
- var _this__options_showEventFilter;
7473
- (_this__modal1 = _this._modal) == null ? void 0 : _this__modal1.showEventFilter((_this__options_showEventFilter = _this._options.showEventFilter) != null ? _this__options_showEventFilter : true);
7474
+ // this._modal?.showEventFilter(this._options.showEventFilter ?? true);
7474
7475
  });
7475
7476
  _this.on(EVENTS.getOSDTime, function(time) {
7476
7477
  if (time) {
@@ -7479,18 +7480,18 @@ function _set_prototype_of$c(o, p) {
7479
7480
  (_this__modal = _this._modal) == null ? void 0 : (_this__modal_setActiveTime = _this__modal.setActiveTime) == null ? void 0 : _this__modal_setActiveTime.call(_this__modal, _currentTime);
7480
7481
  }
7481
7482
  });
7482
- _this.on("TimeLine.onSectionIconClick", function(result) {
7483
+ _this.on('TimeLine.onSectionIconClick', function(result) {
7483
7484
  var // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
7484
- _this__modal, _this__modal1, // this._options.rootContainer
7485
- _this__modal2, _this__modal3, _this__modal4;
7485
+ _this__modal, // this._modal?.showEventFilter(false);
7486
+ // this._options.rootContainer
7487
+ _this__modal1, _this__modal2;
7486
7488
  var list = _this.records.slice(result.index || 0, result.index + result.count);
7487
7489
  var $rootContainer = _this._options.rootContainer;
7488
7490
  var width = $rootContainer.clientWidth;
7489
7491
  var rect = $rootContainer.getBoundingClientRect();
7490
7492
  (_this__modal = _this._modal) == null ? void 0 : _this__modal.setSections(list);
7491
- (_this__modal1 = _this._modal) == null ? void 0 : _this__modal1.showEventFilter(false);
7492
- (_this__modal2 = _this._modal) == null ? void 0 : _this__modal2.open();
7493
- if (!((_this__modal3 = _this._modal) == null ? void 0 : _this__modal3.isVisible)) (_this__modal4 = _this._modal) == null ? void 0 : _this__modal4.setPosition(width + rect.x, rect.y);
7493
+ (_this__modal1 = _this._modal) == null ? void 0 : _this__modal1.open();
7494
+ (_this__modal2 = _this._modal) == null ? void 0 : _this__modal2.setPosition(width + rect.x, rect.y);
7494
7495
  });
7495
7496
  _this.on(EVENTS.recListChange, function(open) {
7496
7497
  _this._panelOpen = open;
@@ -7526,19 +7527,18 @@ function _set_prototype_of$c(o, p) {
7526
7527
  this.active = this._panelOpen;
7527
7528
  if (this.active) {
7528
7529
  var // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
7529
- _this__modal, _this__modal1, // this._options.rootContainer
7530
- _this__modal2, _this__modal3, _this__modal4;
7530
+ _this__modal, // this._options.rootContainer
7531
+ _this__modal1, _this__modal2;
7531
7532
  var $rootContainer = this._options.rootContainer;
7532
7533
  var width = $rootContainer.clientWidth;
7533
7534
  var rect = $rootContainer.getBoundingClientRect();
7534
7535
  (_this__modal = this._modal) == null ? void 0 : _this__modal.setSections(this.records);
7535
- var _this__options_showEventFilter;
7536
- (_this__modal1 = this._modal) == null ? void 0 : _this__modal1.showEventFilter((_this__options_showEventFilter = this._options.showEventFilter) != null ? _this__options_showEventFilter : true);
7537
- (_this__modal2 = this._modal) == null ? void 0 : _this__modal2.open();
7538
- if (!((_this__modal3 = this._modal) == null ? void 0 : _this__modal3.isVisible)) (_this__modal4 = this._modal) == null ? void 0 : _this__modal4.setPosition(width + rect.x, rect.y);
7536
+ // this._modal?.showEventFilter(this._options.showEventFilter ?? true);
7537
+ (_this__modal1 = this._modal) == null ? void 0 : _this__modal1.open();
7538
+ (_this__modal2 = this._modal) == null ? void 0 : _this__modal2.setPosition(width + rect.x, rect.y);
7539
7539
  } else {
7540
- var _this__modal5;
7541
- (_this__modal5 = this._modal) == null ? void 0 : _this__modal5.close();
7540
+ var _this__modal3;
7541
+ (_this__modal3 = this._modal) == null ? void 0 : _this__modal3.close();
7542
7542
  }
7543
7543
  this.emit(EVENTS.control.recListChange, this._panelOpen);
7544
7544
  };
@@ -8635,7 +8635,7 @@ function _set_prototype_of$5(o, p) {
8635
8635
  }
8636
8636
  },
8637
8637
  onSectionIconClick: function(result) {
8638
- _this.emit("TimeLine.onSectionIconClick", result);
8638
+ _this.emit('TimeLine.onSectionIconClick', result);
8639
8639
  }
8640
8640
  });
8641
8641
  if (isMobile()) {
@@ -11266,6 +11266,6 @@ var THEME_DEFAULT_OPTIONS = {
11266
11266
  zh: zh,
11267
11267
  en: en
11268
11268
  };
11269
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.0-beta.3';
11269
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.0-beta.4';
11270
11270
 
11271
11271
  export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };