ranui 0.1.10-alpha.2 → 0.1.10-alpha.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.
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { b as createDocumentFragment, S as SyncHook, r as removeClassToElement, a as addClassToElement, t as timeFormat, e as range, d as generateThrottle } from "./utils-74Icp-PI.js";
8
- import "./index-DsIUhdNt.js";
8
+ import "./index-Clz--qLc.js";
9
9
  import { H as HTMLElementSSR } from "./index-CSnBqUsQ.js";
10
10
  !function t(e) {
11
11
  var r, i;
@@ -9393,7 +9393,7 @@ class RanPlayer extends HTMLElementSSR() {
9393
9393
  select.setAttribute("value", this.ctx.clarity || "Auto");
9394
9394
  select.appendChild(Fragment);
9395
9395
  select.setAttribute("type", "text");
9396
- select.setAttribute("action", "hover,click");
9396
+ select.setAttribute("trigger", "hover,click");
9397
9397
  select.setAttribute("placement", "top");
9398
9398
  const id = this._player.getAttribute("id");
9399
9399
  id && select.setAttribute("getPopupContainerId", id);
@@ -10046,7 +10046,7 @@ class RanPlayer extends HTMLElementSSR() {
10046
10046
  this._playControllerBottomSpeed.setAttribute("class", "ran-player-controller-bottom-right-speed");
10047
10047
  this._playControllerBottomSpeedPopover = document.createElement("r-select");
10048
10048
  this._playControllerBottomSpeedPopover.setAttribute("value", "1");
10049
- this._playControllerBottomSpeedPopover.setAttribute("action", "hover,click");
10049
+ this._playControllerBottomSpeedPopover.setAttribute("trigger", "hover,click");
10050
10050
  this._playControllerBottomSpeedPopover.setAttribute("type", "text");
10051
10051
  this._playControllerBottomSpeedPopover.setAttribute("placement", "top");
10052
10052
  const id = this._player.getAttribute("id");
@@ -87,7 +87,7 @@ class Select extends HTMLElementSSR() {
87
87
  this._selectionDropdown.style.setProperty("--ran-x", `${top + window.scrollX}`);
88
88
  this._selectionDropdown.style.setProperty("--ran-y", `${left + window.scrollY}`);
89
89
  let selectTop = bottom + window.scrollY;
90
- let selectLeft = left + window.scrollX;
90
+ const selectLeft = left + window.scrollX;
91
91
  this._selectionDropdown.style.setProperty("width", `${width}px`);
92
92
  if (this.placement === "top") {
93
93
  selectTop = top + window.scrollY - this._selectionDropdown.clientHeight;
@@ -98,7 +98,6 @@ class Select extends HTMLElementSSR() {
98
98
  } else {
99
99
  selectTop = root.getBoundingClientRect().height;
100
100
  }
101
- selectLeft = 0;
102
101
  }
103
102
  this._selectionDropdown.style.setProperty("inset", `${selectTop}px auto auto ${selectLeft}px`);
104
103
  });
package/dist/index.js CHANGED
@@ -9,9 +9,9 @@ import { i as i7 } from "./index-BpOERe9M.js";
9
9
  import { i as i8 } from "./index-C1x9Popy.js";
10
10
  import { i as i9 } from "./index-B4bfIbdI.js";
11
11
  import { i as i10 } from "./index-BF8tJ6rR.js";
12
- import { i as i11 } from "./index-ByBbFhvo.js";
12
+ import { i as i11 } from "./index-37dSJkCy.js";
13
13
  import { i as i12 } from "./index-CQTJoWhb.js";
14
- import { i as i13 } from "./index-DsIUhdNt.js";
14
+ import { i as i13 } from "./index-Clz--qLc.js";
15
15
  import { i as i14 } from "./index-DRi1ylHx.js";
16
16
  import { i as i15 } from "./index-C-p_Wpit.js";
17
17
  import { i as i16 } from "./index-DRWOSfdF.js";
package/dist/player.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./utils-74Icp-PI.js";
2
- import { R, a } from "./index-ByBbFhvo.js";
3
- import "./index-DsIUhdNt.js";
2
+ import { R, a } from "./index-37dSJkCy.js";
3
+ import "./index-Clz--qLc.js";
4
4
  import "./index-CSnBqUsQ.js";
5
5
  export {
6
6
  R as RanPlayer,
package/dist/select.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S, a } from "./index-DsIUhdNt.js";
1
+ import { S, a } from "./index-Clz--qLc.js";
2
2
  import "./utils-74Icp-PI.js";
3
3
  import "./index-CSnBqUsQ.js";
4
4
  import "./option.js";