ranui 0.1.10-alpha.1 → 0.1.10-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.
Files changed (98) hide show
  1. package/dist/{arrow-down-C9jBUUt3.js → arrow-down-D4qr4m33.js} +2 -2
  2. package/dist/button.js +2 -2
  3. package/dist/checkbox.js +2 -2
  4. package/dist/colorpicker.js +4 -4
  5. package/dist/{docx-ajDUtnbM.js → docx-CChZ5Ycr.js} +1 -1
  6. package/dist/{global-DOfcrQ2N.js → global-DOOKQmNv.js} +1 -1
  7. package/dist/icon.js +3 -3
  8. package/dist/iconShadowless.js +3 -3
  9. package/dist/index-01Qfd9QI.js +207 -0
  10. package/dist/{index-BPBRPxND.js → index-B2yRe66F.js} +1 -1
  11. package/dist/{index-DUMmFdJ7.js → index-B4bfIbdI.js} +1 -1
  12. package/dist/{index-CD09p_mF.js → index-BF8tJ6rR.js} +1 -1
  13. package/dist/{index-CZlEoE62.js → index-BHmWrPCW.js} +4 -2
  14. package/dist/{index-BOoNI-Al.js → index-ByBbFhvo.js} +12 -20
  15. package/dist/{index-CCNK5H8T.js → index-C-p_Wpit.js} +1 -1
  16. package/dist/{index-0fvHQjmN.js → index-C6wPL-2Y.js} +4 -4
  17. package/dist/{index-F2RO3OU4.js → index-Cbp6LrE5.js} +1 -1
  18. package/dist/{index-Bv6Z6rIe.js → index-Cr9AYoGT.js} +2 -2
  19. package/dist/{index-CiBVH-oH.js → index-DLB8VOy7.js} +45 -22
  20. package/dist/{index-EnzWG8R0.js → index-DRWOSfdF.js} +4 -4
  21. package/dist/{index-CJZp9lE4.js → index-DRi1ylHx.js} +1 -1
  22. package/dist/{index-ByJ7zZdQ.js → index-Dapt713u.js} +28 -45
  23. package/dist/{index-GavQwMDL.js → index-DqtzBqPN.js} +3 -3
  24. package/dist/{index-BLepXisd.js → index-DsIUhdNt.js} +3 -3
  25. package/dist/{index-suip9eAw.js → index-DytfjwBV.js} +1 -1
  26. package/dist/index.js +15 -13
  27. package/dist/input.js +1 -1
  28. package/dist/{jszip.min-Ca6PjkYs.js → jszip.min-DD9Dc6z4.js} +3 -3
  29. package/dist/loading.js +6 -0
  30. package/dist/message.js +2 -2
  31. package/dist/{pdf-B2a6ll8f.js → pdf-DpNqCylD.js} +11 -3
  32. package/dist/player.js +3 -3
  33. package/dist/preview.js +4 -4
  34. package/dist/progress.js +2 -2
  35. package/dist/radar.js +2 -2
  36. package/dist/select.js +4 -4
  37. package/dist/selectShadowless.js +3 -3
  38. package/dist/shadowless/shadowless/index.js +3 -3
  39. package/dist/style.css +1 -1
  40. package/dist/tab.js +2 -2
  41. package/dist/umd/index.umd.cjs +6 -6
  42. package/dist/umd/shadowless/shadowless.umd.cjs +1 -1
  43. package/dist/umd/style.css +1 -1
  44. package/dist/{utils-BMBEcoPj.js → utils-74Icp-PI.js} +206 -21
  45. package/package.json +26 -21
  46. package/readme.md +4 -0
  47. package/dist/assets/image/failImage.d.ts +0 -2
  48. package/dist/build/config.d.ts +0 -3
  49. package/dist/build/config.es.d.ts +0 -2
  50. package/dist/build/config.sha.d.ts +0 -2
  51. package/dist/build/config.umd.d.ts +0 -2
  52. package/dist/components/button/index.d.ts +0 -39
  53. package/dist/components/checkbox/index.d.ts +0 -27
  54. package/dist/components/colorpicker/index.d.ts +0 -122
  55. package/dist/components/content/index.d.ts +0 -15
  56. package/dist/components/form/index.d.ts +0 -2
  57. package/dist/components/icon/index.d.ts +0 -2
  58. package/dist/components/image/index.d.ts +0 -2
  59. package/dist/components/input/index.d.ts +0 -209
  60. package/dist/components/message/index.d.ts +0 -16
  61. package/dist/components/modal/index.d.ts +0 -2
  62. package/dist/components/option/index.d.ts +0 -3
  63. package/dist/components/player/index.d.ts +0 -238
  64. package/dist/components/popover/index.d.ts +0 -39
  65. package/dist/components/preview/colz.d.ts +0 -72
  66. package/dist/components/preview/docx.d.ts +0 -8
  67. package/dist/components/preview/excel/excel.d.ts +0 -2
  68. package/dist/components/preview/excel/index.d.ts +0 -1
  69. package/dist/components/preview/excel/media.d.ts +0 -37
  70. package/dist/components/preview/index.d.ts +0 -8
  71. package/dist/components/preview/pdf.d.ts +0 -1
  72. package/dist/components/preview/pptx/index.d.ts +0 -16
  73. package/dist/components/preview/pptx/process_pptx.d.ts +0 -23
  74. package/dist/components/preview/pptx/t_xml.d.ts +0 -1
  75. package/dist/components/preview/pptx/worker.d.ts +0 -1
  76. package/dist/components/progress/index.d.ts +0 -42
  77. package/dist/components/radar/index.d.ts +0 -2
  78. package/dist/components/scratch/index.d.ts +0 -23
  79. package/dist/components/select/index.d.ts +0 -113
  80. package/dist/components/skeleton/index.d.ts +0 -2
  81. package/dist/components/tab/index.d.ts +0 -408
  82. package/dist/components/tabpane/index.d.ts +0 -352
  83. package/dist/index.d.ts +0 -18
  84. package/dist/playwright.config.d.ts +0 -9
  85. package/dist/plugins/auto-import-file.d.ts +0 -0
  86. package/dist/plugins/load-style.d.ts +0 -6
  87. package/dist/plugins/load-svg.d.ts +0 -9
  88. package/dist/shadowless/icon/index.d.ts +0 -3
  89. package/dist/shadowless/input/index.d.ts +0 -210
  90. package/dist/shadowless/select/index.d.ts +0 -109
  91. package/dist/shadowless.d.ts +0 -3
  92. package/dist/tests/button.spec.d.ts +0 -1
  93. package/dist/utils/color.d.ts +0 -52
  94. package/dist/utils/image.d.ts +0 -32
  95. package/dist/utils/index.d.ts +0 -72
  96. package/dist/utils/math.d.ts +0 -26
  97. package/dist/utils/tween.d.ts +0 -21
  98. package/dist/vite.config.d.ts +0 -7
package/dist/icon.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./arrow-down-C9jBUUt3.js";
2
- import { a } from "./index-0fvHQjmN.js";
3
- import "./utils-BMBEcoPj.js";
1
+ import "./arrow-down-D4qr4m33.js";
2
+ import { a } from "./index-C6wPL-2Y.js";
3
+ import "./utils-74Icp-PI.js";
4
4
  export {
5
5
  a as default
6
6
  };
@@ -1,6 +1,6 @@
1
- import "./arrow-down-C9jBUUt3.js";
2
- import "./utils-BMBEcoPj.js";
3
- import { a } from "./index-GavQwMDL.js";
1
+ import "./arrow-down-D4qr4m33.js";
2
+ import "./utils-74Icp-PI.js";
3
+ import { a } from "./index-DqtzBqPN.js";
4
4
  export {
5
5
  a as default
6
6
  };
@@ -0,0 +1,207 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
7
+ import { H as HTMLElementSSR, c as createCustomError } from "./index-CSnBqUsQ.js";
8
+ class Loading extends HTMLElementSSR() {
9
+ constructor() {
10
+ super();
11
+ __publicField(this, "contain");
12
+ __publicField(this, "rotateLoading", () => {
13
+ const loading = document.createElement("div");
14
+ loading.setAttribute(
15
+ "class",
16
+ "rotate"
17
+ /* ROTATE */
18
+ );
19
+ this.contain.appendChild(loading);
20
+ });
21
+ __publicField(this, "stretchLoading", () => {
22
+ const loading = document.createElement("div");
23
+ loading.setAttribute(
24
+ "class",
25
+ "stretch"
26
+ /* STRETCH */
27
+ );
28
+ const arr = [1, 2, 3, 4, 5];
29
+ arr.forEach((i) => {
30
+ const rect = document.createElement("div");
31
+ rect.setAttribute("class", `rect${i}`);
32
+ loading.appendChild(rect);
33
+ });
34
+ this.contain.appendChild(loading);
35
+ });
36
+ __publicField(this, "doubleBounceLoading", () => {
37
+ const loading = document.createElement("div");
38
+ loading.setAttribute(
39
+ "class",
40
+ "double-bounce"
41
+ /* DOUBLE_BOUNCE */
42
+ );
43
+ const arr = [1, 2];
44
+ arr.forEach((i) => {
45
+ const rect = document.createElement("div");
46
+ rect.setAttribute("class", `double-bounce${i}`);
47
+ loading.appendChild(rect);
48
+ });
49
+ this.contain.appendChild(loading);
50
+ });
51
+ __publicField(this, "cubeLoading", () => {
52
+ const loading = document.createElement("div");
53
+ loading.setAttribute(
54
+ "class",
55
+ "cube"
56
+ /* CUBE */
57
+ );
58
+ const arr = [1, 2];
59
+ arr.forEach((i) => {
60
+ const rect = document.createElement("div");
61
+ rect.setAttribute("class", `cube${i}`);
62
+ loading.appendChild(rect);
63
+ });
64
+ this.contain.appendChild(loading);
65
+ });
66
+ __publicField(this, "dotLoading", () => {
67
+ const loading = document.createElement("div");
68
+ loading.setAttribute(
69
+ "class",
70
+ "dot"
71
+ /* DOT */
72
+ );
73
+ const arr = [1, 2];
74
+ arr.forEach((i) => {
75
+ const rect = document.createElement("div");
76
+ rect.setAttribute("class", `dot${i}`);
77
+ loading.appendChild(rect);
78
+ });
79
+ this.contain.appendChild(loading);
80
+ });
81
+ __publicField(this, "tripleBounceLoading", () => {
82
+ const loading = document.createElement("div");
83
+ loading.setAttribute(
84
+ "class",
85
+ "triple-bounce"
86
+ /* TRIPLE_BOUNCE */
87
+ );
88
+ const arr = [1, 2, 3];
89
+ arr.forEach((i) => {
90
+ const rect = document.createElement("div");
91
+ rect.setAttribute("class", `triple-bounce${i}`);
92
+ loading.appendChild(rect);
93
+ });
94
+ this.contain.appendChild(loading);
95
+ });
96
+ __publicField(this, "scaleOutLoading", () => {
97
+ const loading = document.createElement("div");
98
+ loading.setAttribute("class", "scale-out");
99
+ this.contain.appendChild(loading);
100
+ });
101
+ __publicField(this, "circleLoading", () => {
102
+ const loading = document.createElement("div");
103
+ loading.setAttribute("class", "circle");
104
+ [
105
+ [1, 2, 3, 4],
106
+ [1, 2, 3, 4],
107
+ [1, 2, 3, 4]
108
+ ].forEach((i, index2) => {
109
+ const container = document.createElement("div");
110
+ container.setAttribute("class", `circle-container container${index2 + 1}`);
111
+ i.forEach((j) => {
112
+ const rect = document.createElement("div");
113
+ rect.setAttribute("class", `circle${j}`);
114
+ container.appendChild(rect);
115
+ });
116
+ loading.appendChild(container);
117
+ });
118
+ this.contain.appendChild(loading);
119
+ });
120
+ __publicField(this, "createLoading", () => {
121
+ this.contain.innerHTML = "";
122
+ const NAME_MAP = {
123
+ [
124
+ "stretch"
125
+ /* STRETCH */
126
+ ]: this.stretchLoading,
127
+ [
128
+ "rotate"
129
+ /* ROTATE */
130
+ ]: this.rotateLoading,
131
+ [
132
+ "double-bounce"
133
+ /* DOUBLE_BOUNCE */
134
+ ]: this.doubleBounceLoading,
135
+ [
136
+ "cube"
137
+ /* CUBE */
138
+ ]: this.cubeLoading,
139
+ [
140
+ "dot"
141
+ /* DOT */
142
+ ]: this.dotLoading,
143
+ [
144
+ "triple-bounce"
145
+ /* TRIPLE_BOUNCE */
146
+ ]: this.tripleBounceLoading,
147
+ [
148
+ "scale-out"
149
+ /* SCALE_OUT */
150
+ ]: this.scaleOutLoading,
151
+ [
152
+ "circle"
153
+ /* CIRCLE */
154
+ ]: this.circleLoading
155
+ };
156
+ const handler = NAME_MAP[this.name];
157
+ handler && handler();
158
+ if (this.contains(this.contain))
159
+ return;
160
+ this.appendChild(this.contain);
161
+ });
162
+ this.contain = document.createElement("div");
163
+ this.contain.setAttribute("class", "ran-loading");
164
+ }
165
+ static get observedAttributes() {
166
+ return ["name"];
167
+ }
168
+ get name() {
169
+ const name = this.getAttribute("name") || "";
170
+ if (!name)
171
+ return "circle";
172
+ return name;
173
+ }
174
+ set name(value) {
175
+ this.setAttribute("name", value || "");
176
+ }
177
+ connectedCallback() {
178
+ }
179
+ disconnectCallback() {
180
+ }
181
+ attributeChangedCallback(k, o, n) {
182
+ if (o !== n) {
183
+ if (k === "name") {
184
+ this.createLoading();
185
+ }
186
+ }
187
+ }
188
+ }
189
+ function Custom() {
190
+ if (typeof document !== "undefined" && !customElements.get("r-loading")) {
191
+ customElements.define("r-loading", Loading);
192
+ return Loading;
193
+ } else {
194
+ return createCustomError("document is undefined or r-loading is exist");
195
+ }
196
+ }
197
+ const index = Custom();
198
+ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
199
+ __proto__: null,
200
+ Loading,
201
+ default: index
202
+ }, Symbol.toStringTag, { value: "Module" }));
203
+ export {
204
+ Loading as L,
205
+ index as a,
206
+ index$1 as i
207
+ };
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { c as currentDevice } from "./utils-BMBEcoPj.js";
7
+ import { c as currentDevice } from "./utils-74Icp-PI.js";
8
8
  import { H as HTMLElementSSR, i as isDisabled, f as falseList, c as createCustomError } from "./index-CSnBqUsQ.js";
9
9
  const f7170ee498e0dd32cbdcb63fba8f75cc = '.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{position:var(--ran-btn-position, relative);display:var(--ran-btn-display, inline-block);background-image:var(--ran-btn-background-image, none);box-shadow:var(--ran-btn-box-shadow, 0 2px #00000004);cursor:var(--ran-btn-cursor, pointer);-webkit-user-select:var(--ran-btn-user-select, none);user-select:var(--ran-btn-user-select, none);touch-action:var(--ran-btn-touch-action, manipulation);overflow:var(--ran-btn-overflow, hidden);pointer-events:var(--ran-btn-pointer-events, auto)}:host .ran-btn{position:relative;display:inline-block;background-image:none;cursor:pointer;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;user-select:none;touch-action:manipulation;background:#fff}:host,:host(:active),:host(:focus){outline:0;-webkit-tap-highlight-color:transparent}:host .ran-btn,:host(:active) .ran-btn,:host(:focus) .ran-btn{outline:0}:host(:not([disabled]):hover) .ran-btn-content{border-color:var(--ran-btn-content-hover-border-color, #1890ff);color:var(--ran-btn-content-hover-color, #1890ff)}:host([type="primary"]) .ran-btn-content{background-color:var(--ran-btn-content-background-color, #1890ff);border-color:var(--ran-btn-content-border-color, #1890ff);color:var(--ran-btn-content-color, #fff)}:host([type="primary"]:not([disabled])) .ran-btn:after{background-image:var(--ran-btn-after-background-image, radial-gradient(circle, #fff 10%, transparent 10.01%))}:host([type="primary"]:not([disabled]):hover) .ran-btn-content{background-color:var(--ran-btn-content-hover-background-color, #40a9ff);color:var(--ran-btn-content-hover-color, #fff)}:host([type="warning"]) .ran-btn-content{border-color:#ff4d4f;background-color:#ff4d4f;color:#fff}:host([type="warning"]:not([disabled])) .ran-btn:after{background-image:radial-gradient(circle,#fff 10%,transparent 10.01%)}:host([type="warning"]:not([disabled]):hover) .ran-btn-content{border-color:#ff4d4f;background-color:#ff4d4f;color:#fff}:host([type="text"]) .ran-btn-content{border:none}:host([disabled]){cursor:not-allowed;pointer-events:all;opacity:.6}:host([disabled]) .ran-btn{cursor:not-allowed;pointer-events:all;opacity:.6}:host(:not([disabled]):active) .ran-btn:after{transform:translate(-50%,-50%) scale(0);opacity:.3;transition:0s}@media (min-width: 1024px){:host(:not([disabled],[effect])) .ran-btn:after{content:"";display:block;position:absolute;width:100%;height:100%;left:var(--ran-x, 0);top:var(--ran-y, 0);pointer-events:none;background-image:radial-gradient(circle,#1890ff 10%,transparent 10.01%);background-repeat:no-repeat;background-position:50%;transform:translate(-50%,-50%) scale(10);opacity:0;transition:transform .3s,opacity .8s}}:host .slot{display:block}.ran-btn-content{display:flex;justify-content:space-between;align-items:center;padding:4px 15px;border:1px solid transparent;border-radius:2px;border-color:#d9d9d9;color:#000000d9;line-height:22px;font-size:14px;font-weight:400;white-space:nowrap;text-align:center}.ran-btn-content .icon{margin-right:2px}';
10
10
  class Button extends HTMLElementSSR() {
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { b as createDocumentFragment, a as addClassToElement } from "./utils-BMBEcoPj.js";
7
+ import { b as createDocumentFragment, a as addClassToElement } from "./utils-74Icp-PI.js";
8
8
  import { i as isDisabled, r as removeClassToElementChild } from "./index-CSnBqUsQ.js";
9
9
  const f7170ee498e0dd32cbdcb63fba8f75cc = '.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}.ran-tab ::slotted(r-tab){box-sizing:border-box;width:100%;height:100%;padding:10px;flex-shrink:0;overflow:auto;text-align:start}.ran-tab-header{position:relative;overflow:hidden;scroll-behavior:smooth}.ran-tab-header-nav{display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center}.ran-tab-header-nav::-webkit-scrollbar{display:none}.ran-tab-header-nav-item{flex-shrink:0}.ran-tab-header-nav .active{color:var(--active-color, #1890ff)}.ran-tab-header-line{position:absolute;width:0;margin-top:-2px;height:2px;border-radius:2px;background:var(--line-color, #1890ff);transition:.2s}.ran-tab-content{overflow:hidden}.ran-tab-content-wrap{display:flex;width:100%;height:100%;transition:.2s}:host([type="line"]) .ran-tab-header-nav-item{border:solid 1px transparent}:host([type="line"]) .ran-tab-header-nav .active{color:var(--line-color, #1890ff);border:solid 1px transparent;border-color:var(--border-color, rgba(0, 0, 0, .2)) var(--border-color, rgba(0, 0, 0, .2)) transparent;border-radius:var(--border-radius, .25em) var(--border-radius, .25em) 0 0}:host([type="line"]) .ran-tab-header-line{transition:none;visibility:hidden}:host([type="line"]) .ran-tab-header-line:after,:host([type="line"]) .ran-tab-header-line:before{content:"";position:absolute;visibility:visible;width:9999px;height:1px;bottom:0;background:var(--border-color, rgba(0, 0, 0, .2))}:host([type="line"]) .ran-tab-header-line:after{left:100%}:host([type="line"]) .ran-tab-header-line:before{right:100%}:host([align="center"]) .ran-tab-header-nav{justify-content:center}:host([align="center"]) .ran-tab-header-line{left:50%}:host([align="end"]) .ran-tab-header-nav{justify-content:flex-end}';
10
10
  function CustomElement() {
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { g as getPixelRatio } from "./utils-BMBEcoPj.js";
7
+ import { g as getPixelRatio } from "./utils-74Icp-PI.js";
8
8
  import { c as createCustomError } from "./index-CSnBqUsQ.js";
9
9
  const f7170ee498e0dd32cbdcb63fba8f75cc = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}.ran-radar{position:relative;width:100%;height:100%;display:block}";
10
10
  const BACKGROUND_COLOR = "rgba(0,0,0,0)";
@@ -10554,7 +10554,7 @@ function processPptx(setOnMessage, postMessage2) {
10554
10554
  });
10555
10555
  async function processPPTX(data) {
10556
10556
  var _a;
10557
- const jsZip = await import("./jszip.min-Ca6PjkYs.js").then((n) => n.j);
10557
+ const jsZip = await import("./jszip.min-DD9Dc6z4.js").then((n) => n.j);
10558
10558
  const zip = await jsZip.loadAsync(data);
10559
10559
  const dateBefore = Date.now();
10560
10560
  if (zip.file("docProps/thumbnail.jpeg")) {
@@ -17520,7 +17520,7 @@ const newSvg = (parentSelector, width, height) => {
17520
17520
  };
17521
17521
  const renderPptx = (options) => {
17522
17522
  if (typeof window !== "undefined") {
17523
- const { pptx, resultElement, thumbElement } = options;
17523
+ const { pptx, resultElement, thumbElement, onError, onLoad } = options;
17524
17524
  const wrapper = document.createElement("div");
17525
17525
  wrapper.setAttribute("class", "r-preview-pptx-main");
17526
17526
  resultElement.innerHTML = "";
@@ -17550,6 +17550,7 @@ const renderPptx = (options) => {
17550
17550
  case "Done":
17551
17551
  isDone = true;
17552
17552
  processCharts(msg.data.charts);
17553
+ onLoad && onLoad({ success: true, data: msg });
17553
17554
  resolve(msg.data.time);
17554
17555
  break;
17555
17556
  case "WARN":
@@ -17558,6 +17559,7 @@ const renderPptx = (options) => {
17558
17559
  case "ERROR":
17559
17560
  isDone = true;
17560
17561
  console.error("PPTX processing error: ", msg.data);
17562
+ onError && onError({ success: false, data: msg });
17561
17563
  reject(new Error(msg.data));
17562
17564
  break;
17563
17565
  }
@@ -4,8 +4,8 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
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-BMBEcoPj.js";
8
- import "./index-BLepXisd.js";
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";
9
9
  import { H as HTMLElementSSR } from "./index-CSnBqUsQ.js";
10
10
  !function t(e) {
11
11
  var r, i;
@@ -124,7 +124,7 @@ import { H as HTMLElementSSR } from "./index-CSnBqUsQ.js";
124
124
  var r4 = Object.prototype.toString.call(t3).slice(8, -1);
125
125
  return "Object" === r4 && t3.constructor && (r4 = t3.constructor.name), "Map" === r4 || "Set" === r4 ? Array.from(t3) : "Arguments" === r4 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r4) ? g(t3, e3) : void 0;
126
126
  }
127
- }(t2)) || e2 && t2 && "number" == typeof t2.length) {
127
+ }(t2)) || e2) {
128
128
  r3 && (t2 = r3);
129
129
  var i3 = 0;
130
130
  return function() {
@@ -802,27 +802,18 @@ import { H as HTMLElementSSR } from "./index-CSnBqUsQ.js";
802
802
  if (16 !== t2.byteLength)
803
803
  throw new RangeError("Invalid system id");
804
804
  var i3, n2, a2;
805
- if (e2) {
806
- i3 = 1, n2 = new Uint8Array(16 * e2.length);
807
- for (var s2 = 0; s2 < e2.length; s2++) {
808
- var o2 = e2[s2];
809
- if (16 !== o2.byteLength)
810
- throw new RangeError("Invalid key");
811
- n2.set(o2, 16 * s2);
812
- }
813
- } else
814
- i3 = 0, n2 = new Uint8Array();
805
+ i3 = 0, n2 = new Uint8Array();
815
806
  i3 > 0 ? (a2 = new Uint8Array(4), e2.length > 0 && new DataView(a2.buffer).setUint32(0, e2.length, false)) : a2 = new Uint8Array();
816
807
  var l2 = new Uint8Array(4);
817
808
  return r3 && r3.byteLength > 0 && new DataView(l2.buffer).setUint32(0, r3.byteLength, false), function(t3) {
818
809
  for (var e3 = arguments.length, r4 = new Array(e3 > 1 ? e3 - 1 : 0), i4 = 1; i4 < e3; i4++)
819
810
  r4[i4 - 1] = arguments[i4];
820
- for (var n3 = r4.length, a3 = 8, s3 = n3; s3--; )
821
- a3 += r4[s3].byteLength;
822
- var o3 = new Uint8Array(a3);
823
- for (o3[0] = a3 >> 24 & 255, o3[1] = a3 >> 16 & 255, o3[2] = a3 >> 8 & 255, o3[3] = 255 & a3, o3.set(t3, 4), s3 = 0, a3 = 8; s3 < n3; s3++)
824
- o3.set(r4[s3], a3), a3 += r4[s3].byteLength;
825
- return o3;
811
+ for (var n3 = r4.length, a3 = 8, s2 = n3; s2--; )
812
+ a3 += r4[s2].byteLength;
813
+ var o2 = new Uint8Array(a3);
814
+ for (o2[0] = a3 >> 24 & 255, o2[1] = a3 >> 16 & 255, o2[2] = a3 >> 8 & 255, o2[3] = 255 & a3, o2.set(t3, 4), s2 = 0, a3 = 8; s2 < n3; s2++)
815
+ o2.set(r4[s2], a3), a3 += r4[s2].byteLength;
816
+ return o2;
826
817
  }([112, 115, 115, 104], new Uint8Array([i3, 0, 0, 0]), t2, a2, n2, l2, r3 || new Uint8Array());
827
818
  }
828
819
  var Bt = {}, Gt = function() {
@@ -4432,7 +4423,7 @@ import { H as HTMLElementSSR } from "./index-CSnBqUsQ.js";
4432
4423
  return i3 ? Math.round(n2) : n2;
4433
4424
  }
4434
4425
  function Bi(t2, e2) {
4435
- return void 0 === e2 && (e2 = false), Ui(t2, 1e3, 1 / 9e4, e2);
4426
+ return Ui(t2, 1e3, 1 / 9e4, e2);
4436
4427
  }
4437
4428
  Ni.types = void 0, Ni.HDLR_TYPES = void 0, Ni.STTS = void 0, Ni.STSC = void 0, Ni.STCO = void 0, Ni.STSZ = void 0, Ni.VMHD = void 0, Ni.SMHD = void 0, Ni.STSD = void 0, Ni.FTYP = void 0, Ni.DINF = void 0;
4438
4429
  var Gi = null, Ki = null, Hi = function() {
@@ -9436,6 +9427,7 @@ class RanPlayer extends HTMLElementSSR() {
9436
9427
  __publicField(this, "updatePlayer", () => {
9437
9428
  var _a;
9438
9429
  const { Hls } = window;
9430
+ this.innerHTML = "";
9439
9431
  if (!this.contains(this._player))
9440
9432
  this.appendChild(this._player);
9441
9433
  if (this._hls) {
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { a as addClassToElement, r as removeClassToElement } from "./utils-BMBEcoPj.js";
7
+ import { a as addClassToElement, r as removeClassToElement } from "./utils-74Icp-PI.js";
8
8
  import { H as HTMLElementSSR, f as falseList, c as createCustomError } from "./index-CSnBqUsQ.js";
9
9
  class Checkbox extends HTMLElementSSR() {
10
10
  constructor() {
@@ -4,8 +4,8 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { _ as __variableDynamicImportRuntimeHelper, s as str2Xml } from "./arrow-down-C9jBUUt3.js";
8
- import "./utils-BMBEcoPj.js";
7
+ import { _ as __variableDynamicImportRuntimeHelper, s as str2Xml } from "./arrow-down-D4qr4m33.js";
8
+ import "./utils-74Icp-PI.js";
9
9
  const f7170ee498e0dd32cbdcb63fba8f75cc = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{display:inline-flex}:host([spin]){animation-name:rotate;animation-duration:1.4s;animation-timing-function:linear;animation-iteration-count:infinite}.ran-icon{display:flex;align-items:center;justify-content:center}@keyframes rotate{to{transform:rotate(360deg)}}";
10
10
  const X_LINKS_NS = "http://www.w3.org/1999/xlink";
11
11
  const X_LINK_HREF = "xlink:href";
@@ -21,7 +21,7 @@ function Custom() {
21
21
  */
22
22
  __publicField(this, "loadLocal", () => {
23
23
  return new Promise((resolve, reject) => {
24
- __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../assets/icons/add-user.svg": () => import("./add-user-BN1JlY7e.js"), "../../assets/icons/arrow-down.svg": () => import("./arrow-down-C9jBUUt3.js").then((n) => n.a), "../../assets/icons/book.svg": () => import("./book-nTEFXU2x.js"), "../../assets/icons/check-circle-fill.svg": () => import("./check-circle-fill-B_pd8ZSs.js"), "../../assets/icons/check-circle.svg": () => import("./check-circle-szyAJiap.js"), "../../assets/icons/close-circle-fill.svg": () => import("./close-circle-fill-jSqPPw9i.js"), "../../assets/icons/close-circle.svg": () => import("./close-circle-CwmuN2C6.js"), "../../assets/icons/close.svg": () => import("./close-CFnkhudp.js"), "../../assets/icons/eye-close.svg": () => import("./eye-close-BVr3NJtg.js"), "../../assets/icons/eye.svg": () => import("./eye-D_mEt17f.js"), "../../assets/icons/home.svg": () => import("./home-BUQ4USMk.js"), "../../assets/icons/info-circle-fill.svg": () => import("./info-circle-fill-CFeVMdci.js"), "../../assets/icons/info-circle.svg": () => import("./info-circle-COnL5bTJ.js"), "../../assets/icons/loading.svg": () => import("./loading-Dcc5RApI.js"), "../../assets/icons/lock.svg": () => import("./lock-Cr7BnmWN.js"), "../../assets/icons/message.svg": () => import("./message-D36_Zo2l.js"), "../../assets/icons/power-off.svg": () => import("./power-off-lQRbiBak.js"), "../../assets/icons/preview.svg": () => import("./preview-CJbz9GjO.js"), "../../assets/icons/setting.svg": () => import("./setting-DemlgzVC.js"), "../../assets/icons/sprite.svg": () => import("./sprite-CH2zLtZy.js"), "../../assets/icons/team.svg": () => import("./team-tl4NJXPC.js"), "../../assets/icons/unlock.svg": () => import("./unlock-CeU74z9n.js"), "../../assets/icons/user.svg": () => import("./user-B-eVXwuk.js"), "../../assets/icons/warning-circle-fill.svg": () => import("./warning-circle-fill-lODUKz0i.js"), "../../assets/icons/warning-circle.svg": () => import("./warning-circle-DDUgEDIv.js") }), `../../assets/icons/${this.name}.svg`).then((result) => {
24
+ __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../assets/icons/add-user.svg": () => import("./add-user-BN1JlY7e.js"), "../../assets/icons/arrow-down.svg": () => import("./arrow-down-D4qr4m33.js").then((n) => n.a), "../../assets/icons/book.svg": () => import("./book-nTEFXU2x.js"), "../../assets/icons/check-circle-fill.svg": () => import("./check-circle-fill-B_pd8ZSs.js"), "../../assets/icons/check-circle.svg": () => import("./check-circle-szyAJiap.js"), "../../assets/icons/close-circle-fill.svg": () => import("./close-circle-fill-jSqPPw9i.js"), "../../assets/icons/close-circle.svg": () => import("./close-circle-CwmuN2C6.js"), "../../assets/icons/close.svg": () => import("./close-CFnkhudp.js"), "../../assets/icons/eye-close.svg": () => import("./eye-close-BVr3NJtg.js"), "../../assets/icons/eye.svg": () => import("./eye-D_mEt17f.js"), "../../assets/icons/home.svg": () => import("./home-BUQ4USMk.js"), "../../assets/icons/info-circle-fill.svg": () => import("./info-circle-fill-CFeVMdci.js"), "../../assets/icons/info-circle.svg": () => import("./info-circle-COnL5bTJ.js"), "../../assets/icons/loading.svg": () => import("./loading-Dcc5RApI.js"), "../../assets/icons/lock.svg": () => import("./lock-Cr7BnmWN.js"), "../../assets/icons/message.svg": () => import("./message-D36_Zo2l.js"), "../../assets/icons/power-off.svg": () => import("./power-off-lQRbiBak.js"), "../../assets/icons/preview.svg": () => import("./preview-CJbz9GjO.js"), "../../assets/icons/setting.svg": () => import("./setting-DemlgzVC.js"), "../../assets/icons/sprite.svg": () => import("./sprite-CH2zLtZy.js"), "../../assets/icons/team.svg": () => import("./team-tl4NJXPC.js"), "../../assets/icons/unlock.svg": () => import("./unlock-CeU74z9n.js"), "../../assets/icons/user.svg": () => import("./user-B-eVXwuk.js"), "../../assets/icons/warning-circle-fill.svg": () => import("./warning-circle-fill-lODUKz0i.js"), "../../assets/icons/warning-circle.svg": () => import("./warning-circle-DDUgEDIv.js") }), `../../assets/icons/${this.name}.svg`, 5).then((result) => {
25
25
  if (result && result.default && result.default._identification) {
26
26
  const { data } = result.default;
27
27
  this._icon && this._div.removeChild(this._icon);
@@ -161,7 +161,7 @@ function Custom() {
161
161
  */
162
162
  __publicField(this, "loadLocal", () => {
163
163
  return new Promise((resolve, reject) => {
164
- __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../assets/icons/add-user.svg": () => import("./add-user-BN1JlY7e.js"), "../../assets/icons/arrow-down.svg": () => import("./arrow-down-C9jBUUt3.js").then((n) => n.a), "../../assets/icons/book.svg": () => import("./book-nTEFXU2x.js"), "../../assets/icons/check-circle-fill.svg": () => import("./check-circle-fill-B_pd8ZSs.js"), "../../assets/icons/check-circle.svg": () => import("./check-circle-szyAJiap.js"), "../../assets/icons/close-circle-fill.svg": () => import("./close-circle-fill-jSqPPw9i.js"), "../../assets/icons/close-circle.svg": () => import("./close-circle-CwmuN2C6.js"), "../../assets/icons/close.svg": () => import("./close-CFnkhudp.js"), "../../assets/icons/eye-close.svg": () => import("./eye-close-BVr3NJtg.js"), "../../assets/icons/eye.svg": () => import("./eye-D_mEt17f.js"), "../../assets/icons/home.svg": () => import("./home-BUQ4USMk.js"), "../../assets/icons/info-circle-fill.svg": () => import("./info-circle-fill-CFeVMdci.js"), "../../assets/icons/info-circle.svg": () => import("./info-circle-COnL5bTJ.js"), "../../assets/icons/loading.svg": () => import("./loading-Dcc5RApI.js"), "../../assets/icons/lock.svg": () => import("./lock-Cr7BnmWN.js"), "../../assets/icons/message.svg": () => import("./message-D36_Zo2l.js"), "../../assets/icons/power-off.svg": () => import("./power-off-lQRbiBak.js"), "../../assets/icons/preview.svg": () => import("./preview-CJbz9GjO.js"), "../../assets/icons/setting.svg": () => import("./setting-DemlgzVC.js"), "../../assets/icons/sprite.svg": () => import("./sprite-CH2zLtZy.js"), "../../assets/icons/team.svg": () => import("./team-tl4NJXPC.js"), "../../assets/icons/unlock.svg": () => import("./unlock-CeU74z9n.js"), "../../assets/icons/user.svg": () => import("./user-B-eVXwuk.js"), "../../assets/icons/warning-circle-fill.svg": () => import("./warning-circle-fill-lODUKz0i.js"), "../../assets/icons/warning-circle.svg": () => import("./warning-circle-DDUgEDIv.js") }), `../../assets/icons/${this.name}.svg`).then((result) => {
164
+ __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../assets/icons/add-user.svg": () => import("./add-user-BN1JlY7e.js"), "../../assets/icons/arrow-down.svg": () => import("./arrow-down-D4qr4m33.js").then((n) => n.a), "../../assets/icons/book.svg": () => import("./book-nTEFXU2x.js"), "../../assets/icons/check-circle-fill.svg": () => import("./check-circle-fill-B_pd8ZSs.js"), "../../assets/icons/check-circle.svg": () => import("./check-circle-szyAJiap.js"), "../../assets/icons/close-circle-fill.svg": () => import("./close-circle-fill-jSqPPw9i.js"), "../../assets/icons/close-circle.svg": () => import("./close-circle-CwmuN2C6.js"), "../../assets/icons/close.svg": () => import("./close-CFnkhudp.js"), "../../assets/icons/eye-close.svg": () => import("./eye-close-BVr3NJtg.js"), "../../assets/icons/eye.svg": () => import("./eye-D_mEt17f.js"), "../../assets/icons/home.svg": () => import("./home-BUQ4USMk.js"), "../../assets/icons/info-circle-fill.svg": () => import("./info-circle-fill-CFeVMdci.js"), "../../assets/icons/info-circle.svg": () => import("./info-circle-COnL5bTJ.js"), "../../assets/icons/loading.svg": () => import("./loading-Dcc5RApI.js"), "../../assets/icons/lock.svg": () => import("./lock-Cr7BnmWN.js"), "../../assets/icons/message.svg": () => import("./message-D36_Zo2l.js"), "../../assets/icons/power-off.svg": () => import("./power-off-lQRbiBak.js"), "../../assets/icons/preview.svg": () => import("./preview-CJbz9GjO.js"), "../../assets/icons/setting.svg": () => import("./setting-DemlgzVC.js"), "../../assets/icons/sprite.svg": () => import("./sprite-CH2zLtZy.js"), "../../assets/icons/team.svg": () => import("./team-tl4NJXPC.js"), "../../assets/icons/unlock.svg": () => import("./unlock-CeU74z9n.js"), "../../assets/icons/user.svg": () => import("./user-B-eVXwuk.js"), "../../assets/icons/warning-circle-fill.svg": () => import("./warning-circle-fill-lODUKz0i.js"), "../../assets/icons/warning-circle.svg": () => import("./warning-circle-DDUgEDIv.js") }), `../../assets/icons/${this.name}.svg`, 5).then((result) => {
165
165
  if (result && result.default && result.default._identification) {
166
166
  const { data } = result.default;
167
167
  this._icon && this._div.removeChild(this._icon);
@@ -194,7 +194,7 @@ class Input extends HTMLElementSSR() {
194
194
  "icon",
195
195
  "value",
196
196
  "status",
197
- // error warning
197
+ // error warning normal
198
198
  "prefix",
199
199
  // 前缀
200
200
  "suffix",
@@ -4,10 +4,10 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { a as addClassToElement, r as removeClassToElement, i as isMobile, d as generateThrottle } from "./utils-BMBEcoPj.js";
7
+ import { a as addClassToElement, r as removeClassToElement, i as isMobile, d as generateThrottle } from "./utils-74Icp-PI.js";
8
8
  import { H as HTMLElementSSR, i as isDisabled, c as createCustomError } from "./index-CSnBqUsQ.js";
9
9
  import "./option.js";
10
- import "./index-GavQwMDL.js";
10
+ import "./index-DqtzBqPN.js";
11
11
  import "./index-CFnsLnrb.js";
12
12
  const placementDirection = {
13
13
  bottom: {