ranui 0.1.6 → 0.1.8
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/add-user-b2bed3e7.js +4 -0
- package/dist/book-b11a68eb.js +4 -0
- package/dist/build/config.d.ts +3 -0
- package/dist/check-circle-74bd09c3.js +4 -0
- package/dist/check-circle-fill-dc284144.js +4 -0
- package/dist/close-20925345.js +4 -0
- package/dist/close-circle-720c18be.js +4 -0
- package/dist/close-circle-fill-238a66b1.js +4 -0
- package/dist/components/button/index.js +4 -2
- package/dist/components/icon/index.js +3 -1
- package/dist/components/image/index.js +1 -1
- package/dist/components/input/index.js +2 -2
- package/dist/components/message/index.d.ts +12 -6
- package/dist/components/message/index.js +1 -2
- package/dist/components/modal/index.js +4 -0
- package/dist/components/option/index.d.ts +2 -0
- package/dist/components/option/index.js +95 -0
- package/dist/components/{video → player}/index.d.ts +198 -87
- package/dist/components/player/index.js +11 -0
- package/dist/components/preview/excel/excel.d.ts +0 -9
- package/dist/components/preview/index.d.ts +4 -0
- package/dist/components/preview/index.js +5 -4
- package/dist/components/progress/index.d.ts +36 -0
- package/dist/components/progress/index.js +8 -0
- package/dist/components/radar/index.js +4 -2
- package/dist/components/select/index.d.ts +101 -0
- package/dist/components/select/index.js +11 -0
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/tab/index.js +4 -2
- package/dist/components/tabpane/index.js +1 -1
- package/dist/docx-c5d02d8c.js +21 -0
- package/dist/eye-5e742329.js +4 -0
- package/dist/eye-close-3874f1ae.js +4 -0
- package/dist/home-c4a05e8b.js +4 -0
- package/dist/index-0e7229ea.js +328 -0
- package/dist/index-183517e7.js +265 -0
- package/dist/index-48653b79.js +162 -0
- package/dist/index-4d873a42.js +195 -0
- package/dist/index-57492b9b.js +48 -0
- package/dist/index-5975bbc0.js +126 -0
- package/dist/{index-64d03ac1.js → index-7b8840f9.js} +1 -4
- package/dist/index-7f513a14.js +175 -0
- package/dist/index-8e1e2573.js +19 -0
- package/dist/index-a1a53af6.js +354 -0
- package/dist/index-a216f328.js +662 -0
- package/dist/index-a43b144f.js +232 -0
- package/dist/index-aea75a9f.js +78 -0
- package/dist/index-b2be6bef.js +10423 -0
- package/dist/index-b90299ca.js +43 -0
- package/dist/index-d2d69b06.js +225 -0
- package/dist/index-ecaed5cc.js +439 -0
- package/dist/index-f6d6982d.js +516 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +23 -13
- package/dist/info-circle-5826decc.js +4 -0
- package/dist/info-circle-fill-90ec9aa9.js +14 -0
- package/dist/loading-09ca52df.js +4 -0
- package/dist/lock-1d2487c9.js +4 -0
- package/dist/message-b2bfdea7.js +4 -0
- package/dist/{pdf-6e38f826.js → pdf-bdb7818a.js} +1 -2
- package/dist/playwright.config.d.ts +0 -2
- package/dist/power-off-6ade5a91.js +4 -0
- package/dist/preview-b291aea8.js +4 -0
- package/dist/setting-1e5ccb6d.js +4 -0
- package/dist/style.css +1 -1
- package/dist/team-ca6a12e1.js +4 -0
- package/dist/umd/build/config.d.ts +3 -0
- package/dist/umd/components/message/index.d.ts +12 -6
- package/dist/umd/components/option/index.d.ts +2 -0
- package/dist/umd/components/{video → player}/index.d.ts +198 -87
- package/dist/umd/components/preview/excel/excel.d.ts +0 -9
- package/dist/umd/components/preview/index.d.ts +4 -0
- package/dist/umd/components/progress/index.d.ts +36 -0
- package/dist/umd/components/select/index.d.ts +101 -0
- package/dist/umd/index.d.ts +4 -0
- package/dist/umd/index.umd.cjs +26 -8
- package/dist/umd/playwright.config.d.ts +0 -2
- package/dist/umd/style.css +1 -1
- package/dist/umd/utils/image.d.ts +32 -0
- package/dist/umd/utils/index.d.ts +41 -32
- package/dist/umd/utils/math.d.ts +26 -0
- package/dist/umd/utils/tween.d.ts +21 -0
- package/dist/unlock-f56086fd.js +4 -0
- package/dist/user-5c01e665.js +4 -0
- package/dist/utils/image.d.ts +32 -0
- package/dist/utils/index.d.ts +41 -32
- package/dist/utils/math.d.ts +26 -0
- package/dist/utils/tween.d.ts +21 -0
- package/dist/{index-a55c2dff.js → vendor-f71e6f68.js} +7771 -1268
- package/dist/warning-circle-035e025c.js +4 -0
- package/dist/warning-circle-fill-d17c37c9.js +4 -0
- package/package.json +38 -6
- package/readme.md +2 -3
- package/dist/_commonjs-dynamic-modules-2ceabb0b.js +0 -12
- package/dist/add-user-d07564bd.js +0 -4
- package/dist/assets/image/failImage.d.ts +0 -2
- package/dist/base-bcc748a2.js +0 -1
- package/dist/book-2a5a596c.js +0 -4
- package/dist/check-circle-2c986969.js +0 -4
- package/dist/check-circle-fill-62eaa796.js +0 -4
- package/dist/close-circle-2afb6e94.js +0 -4
- package/dist/close-circle-fill-b6906239.js +0 -4
- package/dist/close-ee3ba1d1.js +0 -4
- package/dist/docx-5262a8f1.js +0 -2635
- package/dist/eye-bd60afe1.js +0 -4
- package/dist/eye-close-bde3c1fc.js +0 -4
- package/dist/home-f824d8f4.js +0 -4
- package/dist/index-00913cab.js +0 -43
- package/dist/index-07c8e518.js +0 -327
- package/dist/index-105ed089.js +0 -127
- package/dist/index-2243317e.js +0 -155
- package/dist/index-441da303.js +0 -196
- package/dist/index-4459fbd0.js +0 -108
- package/dist/index-57d3be68.js +0 -450
- package/dist/index-a7db1b7b.js +0 -175
- package/dist/index-b580f377.js +0 -78
- package/dist/index-b99ac79f.js +0 -353
- package/dist/index-c558bde2.js +0 -218
- package/dist/info-circle-59333e1c.js +0 -4
- package/dist/info-circle-fill-3ab7660d.js +0 -4
- package/dist/jszip.min-97cf7c6a.js +0 -2655
- package/dist/loading-407d8249.js +0 -4
- package/dist/lock-6d20715b.js +0 -4
- package/dist/message-ee4fe153.js +0 -4
- package/dist/power-off-bbec6b5f.js +0 -4
- package/dist/preview-164a4944.js +0 -4
- package/dist/setting-735a1963.js +0 -4
- package/dist/team-42573142.js +0 -4
- package/dist/umd/assets/image/failImage.d.ts +0 -2
- package/dist/unlock-ae33c6f7.js +0 -4
- package/dist/user-b7098183.js +0 -4
- package/dist/warning-circle-536d4749.js +0 -4
- package/dist/warning-circle-fill-e4be98bc.js +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const addUser = { "success": true, "_identification": true, "data": '<svg t="1667110768583" class="icon" viewBox="0 0 1024 1024" version="1.1"\n xmlns="http://www.w3.org/2000/svg" p-id="8046" width="200" height="200">\n <path\n d="M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h0.1c3 0 4.4-3.6 2.2-5.6-30.8-27.6-65.6-49.7-103.7-65.8-0.4-0.2-0.8-0.3-1.2-0.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-0.4 0.2-0.8 0.3-1.2 0.5-44.7 18.9-84.8 46-119.3 80.6-34.5 34.5-61.5 74.7-80.4 119.5C147.9 794.5 138 841 137 888.8c-0.1 4.5 3.5 8.2 8 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1 2.5 1.5 5.5 1.7 8.1 0.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4-32.4-32.5-50.3-75.7-50.3-121.6 0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4c32.4 32.5 50.3 75.7 50.3 121.6 0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"\n p-id="8047"></path>\n</svg>' };
|
|
2
|
+
export {
|
|
3
|
+
addUser as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const book = { "success": true, "_identification": true, "data": '<svg t="1667110830636" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8464" width="200" height="200"><path d="M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32z m-260 72h96v209.9L621.5 312 572 347.4V136z m220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3 5.1 7.2 15.1 8.9 22.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z" p-id="8465"></path></svg>' };
|
|
2
|
+
export {
|
|
3
|
+
book as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const checkCircle = { "success": true, "_identification": true, "data": '<svg t="1667483538687" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8683" width="200" height="200"><path d="M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8c12.7 17.7 39 17.7 51.7 0l210.6-292c3.9-5.3 0.1-12.7-6.4-12.7z" p-id="8684"></path><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" p-id="8685"></path></svg>' };
|
|
2
|
+
export {
|
|
3
|
+
checkCircle as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const checkCircleFill = { "success": true, "_identification": true, "data": '<svg t="1667965185400" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8572" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m193.5 301.7l-210.6 292c-12.7 17.7-39 17.7-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" p-id="8573"></path></svg>' };
|
|
2
|
+
export {
|
|
3
|
+
checkCircleFill as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const close = { "success": true, "_identification": true, "data": '<svg t="1688378016663" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2608" width="128" height="128"><path d="M568 515.008l254.016-255.008q12-11.008 12-27.488t-11.488-28-28-11.488-27.488 12l-255.008 254.016-255.008-254.016q-11.008-12-27.488-12t-28 11.488-11.488 28 12 27.488l254.016 255.008-254.016 255.008q-12 11.008-12 27.488t11.488 28 28 11.488 27.488-12l255.008-255.008 255.008 255.008q11.008 12 27.488 12t28-11.488 11.488-28-12-27.488z" p-id="2609" ></path></svg>' };
|
|
2
|
+
export {
|
|
3
|
+
close as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const closeCircle = { "success": true, "_identification": true, "data": '<svg t="1667483596224" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8848" width="200" height="200"><path d="M685.4 354.8c0-4.4-3.6-8-8-8l-66 0.3L512 465.6l-99.3-118.4-66.1-0.3c-4.4 0-8 3.5-8 8 0 1.9 0.7 3.7 1.9 5.2l130.1 155L340.5 670c-1.2 1.5-1.9 3.3-1.9 5.2 0 4.4 3.6 8 8 8l66.1-0.3L512 564.4l99.3 118.4 66 0.3c4.4 0 8-3.5 8-8 0-1.9-0.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z" p-id="8849"></path><path d="M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" p-id="8850"></path></svg>' };
|
|
2
|
+
export {
|
|
3
|
+
closeCircle as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const closeCircleFill = { "success": true, "_identification": true, "data": '<svg t="1667965220951" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8711" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m165.4 618.2l-66-0.3L512 563.4l-99.3 118.4-66.1 0.3c-4.4 0-8-3.5-8-8 0-1.9 0.7-3.7 1.9-5.2l130.1-155L340.5 359c-1.2-1.5-1.9-3.3-1.9-5.2 0-4.4 3.6-8 8-8l66.1 0.3L512 464.6l99.3-118.4 66-0.3c4.4 0 8 3.5 8 8 0 1.9-0.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" p-id="8712"></path></svg>' };
|
|
2
|
+
export {
|
|
3
|
+
closeCircleFill as default
|
|
4
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { a } from "../../index-
|
|
2
|
-
import "../../index-
|
|
1
|
+
import { a } from "../../index-4d873a42.js";
|
|
2
|
+
import "../../index-d2d69b06.js";
|
|
3
|
+
import "../../index-57492b9b.js";
|
|
4
|
+
import "../../vendor-f71e6f68.js";
|
|
3
5
|
export {
|
|
4
6
|
a as default
|
|
5
7
|
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
declare const message: {
|
|
2
|
-
info: (options: Ran.Prompt | string) => void;
|
|
3
|
-
success: (options: Ran.Prompt | string) => void;
|
|
4
|
-
error: (options: Ran.Prompt | string) => void;
|
|
5
|
-
warning: (options: Ran.Prompt | string) => void;
|
|
6
|
-
toast: (options: Ran.Prompt | string) => void;
|
|
7
|
-
} |
|
|
2
|
+
info: (options: Ran.Prompt | string | undefined | null) => void;
|
|
3
|
+
success: (options: Ran.Prompt | string | undefined | null) => void;
|
|
4
|
+
error: (options: Ran.Prompt | string | undefined | null) => void;
|
|
5
|
+
warning: (options: Ran.Prompt | string | undefined | null) => void;
|
|
6
|
+
toast: (options: Ran.Prompt | string | undefined | null) => void;
|
|
7
|
+
} | {
|
|
8
|
+
info?: undefined;
|
|
9
|
+
success?: undefined;
|
|
10
|
+
error?: undefined;
|
|
11
|
+
warning?: undefined;
|
|
12
|
+
toast?: undefined;
|
|
13
|
+
};
|
|
8
14
|
export default message;
|
|
@@ -0,0 +1,95 @@
|
|
|
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 { c as createCustomError, i as isDisabled } from "../../index-57492b9b.js";
|
|
8
|
+
const f7170ee498e0dd32cbdcb63fba8f75cc = '@keyframes ranui-select-dropdown-down-in{0%{transform:scaleY(.8);transform-origin:100% 100%;opacity:0}to{transform:scaleY(1);transform-origin:100% 100%;opacity:1}}@keyframes ranui-select-dropdown-down-out{0%{transform:scaleY(1);transform-origin:100% 100%;opacity:1}to{transform:scaleY(.8);transform-origin:100% 100%;opacity:0}}@keyframes ranui-select-dropdown-up-in{0%{transform:scaleY(.8);transform-origin:0% 0%;opacity:0}to{transform:scaleY(1);transform-origin:0% 0%;opacity:1}}@keyframes ranui-select-dropdown-up-out{0%{transform:scaleY(1);transform-origin:0% 0%;opacity:1}to{transform:scaleY(.8);transform-origin:0% 0%;opacity:0}}.ran-select-dropdown-down-in{animation:ranui-select-dropdown-up-in .2s;animation-fill-mode:forwards}.ran-select-dropdown-down-out{animation:ranui-select-dropdown-up-out .2s;animation-fill-mode:forwards}.ran-select-dropdown-up-in{animation:ranui-select-dropdown-down-in .2s;animation-fill-mode:forwards}.ran-select-dropdown-up-out{animation:ranui-select-dropdown-down-out .2s;animation-fill-mode:forwards}.ranui-select-dropdown{position:absolute;transform-origin:var(--ran-x, 50%) var(--ran-y, 50%);box-sizing:border-box;margin:0;padding:4px;color:#000000e0;font-size:14px;list-style:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";z-index:1050;overflow:hidden;font-variant:initial;background:#ffffff;border-radius:8px;outline:none;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;cursor:pointer}.ranui-select-dropdown-option-item{position:relative;display:block;padding:5px 12px;color:#000000e0;font-weight:400;font-size:14px;transition:background .3s ease;border-radius:4px}.ranui-select-dropdown-option-item:hover{background-color:#0000000a}.ranui-select-dropdown-option-item-content{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#000000e0;font-size:14px;line-height:1.57142857;box-sizing:border-box;list-style:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-variant:initial}.ranui-select-dropdown-option-active{background-color:#e6f7ff;font-weight:700}.ranui-select-dropdown-option-active:hover{background-color:#e6f7ff}\n';
|
|
9
|
+
const index$1 = "";
|
|
10
|
+
function Custom() {
|
|
11
|
+
if (typeof document !== "undefined" && !customElements.get("r-option")) {
|
|
12
|
+
class Option extends HTMLElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
__publicField(this, "_option");
|
|
16
|
+
__publicField(this, "_optionContent");
|
|
17
|
+
__publicField(this, "_shadowDom");
|
|
18
|
+
__publicField(this, "_slot");
|
|
19
|
+
this._slot = document.createElement("slot");
|
|
20
|
+
this._option = document.createElement("div");
|
|
21
|
+
this._option.setAttribute("class", "ran-option");
|
|
22
|
+
this._optionContent = document.createElement("div");
|
|
23
|
+
this._optionContent.setAttribute("class", "ran-option-content");
|
|
24
|
+
this._optionContent.appendChild(this._slot);
|
|
25
|
+
this._option.appendChild(this._optionContent);
|
|
26
|
+
const shadowRoot = this.attachShadow({ mode: "closed" });
|
|
27
|
+
const F7170EE498E0DD32CBDCB63FBA8F75CC = document.createElement("style");
|
|
28
|
+
F7170EE498E0DD32CBDCB63FBA8F75CC.textContent = f7170ee498e0dd32cbdcb63fba8f75cc;
|
|
29
|
+
shadowRoot.appendChild(F7170EE498E0DD32CBDCB63FBA8F75CC);
|
|
30
|
+
this._shadowDom = shadowRoot;
|
|
31
|
+
shadowRoot.appendChild(this._option);
|
|
32
|
+
}
|
|
33
|
+
static get observedAttributes() {
|
|
34
|
+
return ["disabled", "sheet", "value"];
|
|
35
|
+
}
|
|
36
|
+
get value() {
|
|
37
|
+
return this.getAttribute("value");
|
|
38
|
+
}
|
|
39
|
+
set value(value) {
|
|
40
|
+
this.setAttribute("value", value || "");
|
|
41
|
+
}
|
|
42
|
+
get sheet() {
|
|
43
|
+
return this.getAttribute("sheet");
|
|
44
|
+
}
|
|
45
|
+
set sheet(value) {
|
|
46
|
+
this.setAttribute("sheet", value || "");
|
|
47
|
+
}
|
|
48
|
+
get disabled() {
|
|
49
|
+
return isDisabled(this);
|
|
50
|
+
}
|
|
51
|
+
set disabled(value) {
|
|
52
|
+
if (!value || value === "false") {
|
|
53
|
+
this.removeAttribute("disabled");
|
|
54
|
+
} else {
|
|
55
|
+
this.setAttribute("disabled", "");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
handlerExternalCss() {
|
|
59
|
+
if (this.sheet) {
|
|
60
|
+
try {
|
|
61
|
+
const sheet = new CSSStyleSheet();
|
|
62
|
+
sheet.insertRule(this.sheet);
|
|
63
|
+
this._shadowDom.adoptedStyleSheets = [sheet];
|
|
64
|
+
} catch (error) {
|
|
65
|
+
console.error(
|
|
66
|
+
`Failed to parse the rule in CSSStyleSheet: ${this.sheet}`
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
connectedCallback() {
|
|
72
|
+
}
|
|
73
|
+
disconnectCallback() {
|
|
74
|
+
}
|
|
75
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
76
|
+
if (name === "disabled" && this._option) {
|
|
77
|
+
if (!newValue || newValue === "false") {
|
|
78
|
+
this._option.setAttribute("disabled", "");
|
|
79
|
+
} else {
|
|
80
|
+
this._option.removeAttribute("disabled");
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (name === "sheet" && this._shadowDom && oldValue !== newValue)
|
|
84
|
+
this.handlerExternalCss();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return Option;
|
|
88
|
+
} else {
|
|
89
|
+
return createCustomError("document is undefined or r-option is exist");
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const index = Custom();
|
|
93
|
+
export {
|
|
94
|
+
index as default
|
|
95
|
+
};
|
|
@@ -1,94 +1,201 @@
|
|
|
1
|
+
import { SyncHook } from 'ranuts';
|
|
2
|
+
import type { Progress } from '../progress';
|
|
3
|
+
export interface HlsPlayer {
|
|
4
|
+
startLoad(): () => void;
|
|
5
|
+
off: (s: string, f: Function) => void;
|
|
6
|
+
on: (s: string, f: Function) => void;
|
|
7
|
+
loadSource: (s: string) => void;
|
|
8
|
+
attachMedia: (v: HTMLVideoElement) => void;
|
|
9
|
+
destroy: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface Level {
|
|
12
|
+
audioCodec: string;
|
|
13
|
+
bitrate: number;
|
|
14
|
+
height: number;
|
|
15
|
+
width: number;
|
|
16
|
+
name: string;
|
|
17
|
+
url: string;
|
|
18
|
+
videoCodec: string;
|
|
19
|
+
}
|
|
20
|
+
export interface Context {
|
|
21
|
+
action: SyncHook;
|
|
22
|
+
currentState: string;
|
|
23
|
+
duration: number;
|
|
24
|
+
currentTime: number;
|
|
25
|
+
volume: number;
|
|
26
|
+
playbackRate: number;
|
|
27
|
+
fullScreen: boolean;
|
|
28
|
+
levels: Partial<Level>[];
|
|
29
|
+
url: string;
|
|
30
|
+
levelMap: Map<string, string>;
|
|
31
|
+
clarity: string;
|
|
32
|
+
}
|
|
1
33
|
declare const _default: {
|
|
2
|
-
new (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
34
|
+
new (): {
|
|
35
|
+
ctx: Context;
|
|
36
|
+
_player: HTMLDivElement;
|
|
37
|
+
_container: HTMLDivElement;
|
|
6
38
|
_slot: HTMLSlotElement;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
39
|
+
_playerController: HTMLDivElement;
|
|
40
|
+
_playerBtn: HTMLDivElement;
|
|
41
|
+
_progress: HTMLDivElement;
|
|
42
|
+
_progressDot: HTMLDivElement;
|
|
43
|
+
_progressWrap: HTMLDivElement;
|
|
44
|
+
_progressWrapValue: HTMLDivElement;
|
|
45
|
+
requestAnimationFrameId?: number | undefined;
|
|
46
|
+
moveProgress: {
|
|
47
|
+
percentage: number;
|
|
48
|
+
mouseDown: boolean;
|
|
49
|
+
};
|
|
50
|
+
_playerControllerBottom: HTMLDivElement;
|
|
51
|
+
_playerControllerBottomRight: HTMLDivElement;
|
|
52
|
+
_playerControllerBottomLeft: HTMLDivElement;
|
|
53
|
+
_playerControllerBottomPlayBtn: HTMLDivElement;
|
|
54
|
+
_playerControllerBottomTimeCurrent: HTMLDivElement;
|
|
55
|
+
_playerControllerBottomTimeDuration: HTMLDivElement;
|
|
56
|
+
_playerControllerBottomTimeDivide: HTMLDivElement;
|
|
57
|
+
_playControllerBottomClarity: HTMLElement;
|
|
58
|
+
_playControllerBottomSpeed: HTMLDivElement;
|
|
59
|
+
_playControllerBottomSpeedIcon: HTMLDivElement;
|
|
60
|
+
_playControllerBottomVolumeProgress: Progress;
|
|
61
|
+
_playControllerBottomRightFullScreen: HTMLDivElement;
|
|
62
|
+
_playControllerBottomVolume: HTMLDivElement;
|
|
63
|
+
_playControllerBottomSpeedPopover: HTMLElement;
|
|
64
|
+
controllerBarTimeId?: NodeJS.Timeout | undefined;
|
|
65
|
+
_playerTip: HTMLDivElement;
|
|
66
|
+
_playerTipTime: HTMLDivElement;
|
|
67
|
+
_playerTipText: HTMLDivElement;
|
|
68
|
+
_volume?: number | undefined;
|
|
69
|
+
_video?: HTMLVideoElement | undefined;
|
|
70
|
+
_hls?: HlsPlayer | undefined;
|
|
71
|
+
src: string;
|
|
72
|
+
volume: string;
|
|
73
|
+
currentTime: string;
|
|
74
|
+
playbackRate: string;
|
|
75
|
+
changeClarityToSetVideo: () => void;
|
|
76
|
+
changeClarity: (e: Event) => void;
|
|
77
|
+
createClaritySelect: () => void;
|
|
78
|
+
manifestLoaded: (type: string, data: {
|
|
79
|
+
levels: Level[];
|
|
80
|
+
url: string;
|
|
81
|
+
}) => void;
|
|
82
|
+
/**
|
|
83
|
+
* @description: 初始化 video 和更新 video 方法
|
|
84
|
+
* @return {*}
|
|
85
|
+
*/
|
|
86
|
+
updatePlayer: () => void;
|
|
87
|
+
change: (name: string, value: unknown) => void;
|
|
88
|
+
onCanplay: (e: Event) => void;
|
|
89
|
+
onCanplaythrough: (e: Event) => void;
|
|
90
|
+
onComplete: (e: Event) => void;
|
|
91
|
+
onDurationchange: (e: Event) => void;
|
|
92
|
+
onEmptied: (e: Event) => void;
|
|
93
|
+
onEnded: (e: Event) => void;
|
|
94
|
+
onError: (e: Event) => void;
|
|
95
|
+
onLoadedmetadata: (e: Event) => void;
|
|
96
|
+
onLoadstart: (e: Event) => void;
|
|
97
|
+
onProgress: (e: Event) => void;
|
|
98
|
+
onRatechange: (e: Event) => void;
|
|
99
|
+
onSeeked: (e: Event) => void;
|
|
100
|
+
onSeeking: (e: Event) => void;
|
|
101
|
+
onStalled: (e: Event) => void;
|
|
102
|
+
onSuspend: (e: Event) => void;
|
|
103
|
+
onLoadeddata: (e: Event) => void;
|
|
104
|
+
onTimeupdate: (e: Event) => void;
|
|
105
|
+
onVolumechange: (e: Event) => void;
|
|
106
|
+
onWaiting: (e: Event) => void;
|
|
107
|
+
onPlay: (e: Event) => void;
|
|
108
|
+
onPlaying: (e: Event) => void;
|
|
109
|
+
onPause: (e: Event) => void;
|
|
110
|
+
clearListenerEvent: () => void;
|
|
111
|
+
/**
|
|
112
|
+
* @description: 用户行为和 video 之间的交互
|
|
113
|
+
* @return {*}
|
|
114
|
+
*/
|
|
115
|
+
listenEvent: () => void;
|
|
116
|
+
showControllerBar: (e?: MouseEvent | undefined) => void;
|
|
117
|
+
/**
|
|
118
|
+
* @description: 进度条点击事件
|
|
119
|
+
* @param {MouseEvent} e
|
|
120
|
+
* @return {*}
|
|
121
|
+
*/
|
|
122
|
+
progressClick: (e: MouseEvent) => void;
|
|
123
|
+
/**
|
|
124
|
+
* @description: 进度条鼠标按下事件
|
|
125
|
+
* @param {MouseEvent} e
|
|
126
|
+
* @return {*}
|
|
127
|
+
*/
|
|
128
|
+
progressDotMouseDown: (e: MouseEvent) => void;
|
|
129
|
+
/**
|
|
130
|
+
* @description: 进度条鼠标移动事件
|
|
131
|
+
* @param {MouseEvent} e
|
|
132
|
+
* @return {*}
|
|
133
|
+
*/
|
|
134
|
+
progressDotMouseMove: (e: MouseEvent) => void;
|
|
135
|
+
/**
|
|
136
|
+
* @description: 进度条鼠标松开事件
|
|
137
|
+
* @param {MouseEvent} e
|
|
138
|
+
* @return {*}
|
|
139
|
+
*/
|
|
140
|
+
progressDotMouseUp: () => void;
|
|
141
|
+
/**
|
|
142
|
+
* @description: 更新页面样式
|
|
143
|
+
* @param {Function} fn
|
|
144
|
+
* @return {*}
|
|
145
|
+
*/
|
|
146
|
+
requestAnimationFrame: (fn: Function) => void;
|
|
147
|
+
/**
|
|
148
|
+
* @description: 取消页面动画
|
|
149
|
+
* @param {Function} fn
|
|
150
|
+
* @return {*}
|
|
151
|
+
*/
|
|
152
|
+
cancelAnimationFrame: () => void;
|
|
153
|
+
/**
|
|
154
|
+
* @description: 更新进度条
|
|
155
|
+
* @param {*} void
|
|
156
|
+
* @return {*}
|
|
157
|
+
*/
|
|
158
|
+
updateCurrentProgress: () => void;
|
|
159
|
+
changeAttribute: (k: string, o: string, n: string, attribute: string, callback: Function) => void;
|
|
160
|
+
/**
|
|
161
|
+
* @description: 点击整个视频时,触发的事件
|
|
162
|
+
* @param {*} void
|
|
163
|
+
* @return {*}
|
|
164
|
+
*/
|
|
165
|
+
dispatchClickPlayerContainerAction: (e: Event) => void;
|
|
166
|
+
/**
|
|
167
|
+
* @description: 空格事件
|
|
168
|
+
* @param {KeyboardEvent} e
|
|
169
|
+
* @return {*}
|
|
170
|
+
*/
|
|
171
|
+
SpaceKeyDown: (e: KeyboardEvent) => void;
|
|
172
|
+
/**
|
|
173
|
+
* @description: 点击player-btn,触发的事件
|
|
174
|
+
* @param {*} void
|
|
175
|
+
* @return {*}
|
|
176
|
+
*/
|
|
177
|
+
dispatchClickPlayerBtnAction: (e: Event) => void;
|
|
178
|
+
changeVolumeProgress: (e: Event) => void;
|
|
179
|
+
openFullScreen: () => void;
|
|
180
|
+
changeSpeed: (e: Event) => void;
|
|
181
|
+
progressMouseEnter: (e: MouseEvent) => void;
|
|
182
|
+
progressMouseLeave: (e: MouseEvent) => void;
|
|
183
|
+
progressMouseMove: (e: MouseEvent) => void;
|
|
184
|
+
changePlayerVolume: () => void;
|
|
185
|
+
resize: () => void;
|
|
186
|
+
fullScreenChange: () => void;
|
|
187
|
+
getPlaybackRate: () => number;
|
|
188
|
+
setPlaybackRate: (n: number) => number;
|
|
189
|
+
setVolume: (n: number) => number;
|
|
190
|
+
getVolume: () => number;
|
|
191
|
+
setCurrentTime: (n: number) => number;
|
|
192
|
+
getCurrentTime: () => number;
|
|
193
|
+
getTotalTime: () => number;
|
|
194
|
+
play: (n?: number | undefined) => void;
|
|
195
|
+
pause: () => void;
|
|
25
196
|
connectedCallback(): void;
|
|
26
197
|
disconnectCallback(): void;
|
|
27
|
-
attributeChangedCallback(
|
|
28
|
-
disablePictureInPicture: boolean;
|
|
29
|
-
height: number;
|
|
30
|
-
onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
31
|
-
onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
32
|
-
playsInline: boolean;
|
|
33
|
-
poster: string;
|
|
34
|
-
readonly videoHeight: number;
|
|
35
|
-
readonly videoWidth: number;
|
|
36
|
-
width: number;
|
|
37
|
-
cancelVideoFrameCallback(handle: number): void;
|
|
38
|
-
getVideoPlaybackQuality(): VideoPlaybackQuality;
|
|
39
|
-
requestPictureInPicture(): Promise<PictureInPictureWindow>;
|
|
40
|
-
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
|
|
41
|
-
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
42
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
43
|
-
removeEventListener<K_1 extends keyof HTMLVideoElementEventMap>(type: K_1, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
44
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
45
|
-
autoplay: boolean;
|
|
46
|
-
readonly buffered: TimeRanges;
|
|
47
|
-
controls: boolean;
|
|
48
|
-
crossOrigin: string | null;
|
|
49
|
-
readonly currentSrc: string;
|
|
50
|
-
currentTime: number;
|
|
51
|
-
defaultMuted: boolean;
|
|
52
|
-
defaultPlaybackRate: number;
|
|
53
|
-
disableRemotePlayback: boolean;
|
|
54
|
-
readonly duration: number;
|
|
55
|
-
readonly ended: boolean;
|
|
56
|
-
readonly error: MediaError | null;
|
|
57
|
-
loop: boolean;
|
|
58
|
-
readonly mediaKeys: MediaKeys | null;
|
|
59
|
-
muted: boolean;
|
|
60
|
-
readonly networkState: number;
|
|
61
|
-
onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
|
|
62
|
-
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
|
|
63
|
-
readonly paused: boolean;
|
|
64
|
-
playbackRate: number;
|
|
65
|
-
readonly played: TimeRanges;
|
|
66
|
-
preload: "" | "metadata" | "none" | "auto";
|
|
67
|
-
preservesPitch: boolean;
|
|
68
|
-
readonly readyState: number;
|
|
69
|
-
readonly remote: RemotePlayback;
|
|
70
|
-
readonly seekable: TimeRanges;
|
|
71
|
-
readonly seeking: boolean;
|
|
72
|
-
src: string;
|
|
73
|
-
srcObject: MediaProvider | null;
|
|
74
|
-
readonly textTracks: TextTrackList;
|
|
75
|
-
volume: number;
|
|
76
|
-
addTextTrack(kind: TextTrackKind, label?: string | undefined, language?: string | undefined): TextTrack;
|
|
77
|
-
canPlayType(type: string): CanPlayTypeResult;
|
|
78
|
-
fastSeek(time: number): void;
|
|
79
|
-
load(): void;
|
|
80
|
-
pause(): void;
|
|
81
|
-
play(): Promise<void>;
|
|
82
|
-
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
|
|
83
|
-
readonly NETWORK_EMPTY: 0;
|
|
84
|
-
readonly NETWORK_IDLE: 1;
|
|
85
|
-
readonly NETWORK_LOADING: 2;
|
|
86
|
-
readonly NETWORK_NO_SOURCE: 3;
|
|
87
|
-
readonly HAVE_NOTHING: 0;
|
|
88
|
-
readonly HAVE_METADATA: 1;
|
|
89
|
-
readonly HAVE_CURRENT_DATA: 2;
|
|
90
|
-
readonly HAVE_FUTURE_DATA: 3;
|
|
91
|
-
readonly HAVE_ENOUGH_DATA: 4;
|
|
198
|
+
attributeChangedCallback(k: string, o: string, n: string): void;
|
|
92
199
|
accessKey: string;
|
|
93
200
|
readonly accessKeyLabel: string;
|
|
94
201
|
autocapitalize: string;
|
|
@@ -113,6 +220,10 @@ declare const _default: {
|
|
|
113
220
|
hidePopover(): void;
|
|
114
221
|
showPopover(): void;
|
|
115
222
|
togglePopover(force?: boolean | undefined): void;
|
|
223
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
224
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
225
|
+
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
226
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
116
227
|
readonly attributes: NamedNodeMap;
|
|
117
228
|
readonly classList: DOMTokenList;
|
|
118
229
|
className: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../../index-d2d69b06.js";
|
|
2
|
+
import { a } from "../../index-b2be6bef.js";
|
|
3
|
+
import "../../index-f6d6982d.js";
|
|
4
|
+
import "../../vendor-f71e6f68.js";
|
|
5
|
+
import "../../index-57492b9b.js";
|
|
6
|
+
import "../option/index.js";
|
|
7
|
+
import "../../index-7f513a14.js";
|
|
8
|
+
import "../../index-ecaed5cc.js";
|
|
9
|
+
export {
|
|
10
|
+
a as default
|
|
11
|
+
};
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
export declare function getData(src: Blob | ArrayBuffer | Response, options: RequestExcelOption): Promise<unknown>;
|
|
2
|
-
interface RequestExcelOption {
|
|
3
|
-
responseType: XMLHttpRequestResponseType;
|
|
4
|
-
method: string;
|
|
5
|
-
withCredentials: boolean;
|
|
6
|
-
headers: Record<string, string>;
|
|
7
|
-
body: string;
|
|
8
|
-
}
|
|
9
1
|
export declare function readExcelData(buffer: ArrayBuffer | string): Promise<unknown>;
|
|
10
2
|
export declare function transferExcelToSpreadSheet(workbook: any, options: any): any;
|
|
11
|
-
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { a } from "../../index-
|
|
2
|
-
import "../../index-
|
|
3
|
-
import "../../
|
|
4
|
-
import "../../index-
|
|
1
|
+
import { a } from "../../index-183517e7.js";
|
|
2
|
+
import "../../index-d2d69b06.js";
|
|
3
|
+
import "../../index-7f513a14.js";
|
|
4
|
+
import "../../index-48653b79.js";
|
|
5
|
+
import "../../vendor-f71e6f68.js";
|
|
5
6
|
export {
|
|
6
7
|
a as default
|
|
7
8
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare class Progress extends HTMLElement {
|
|
2
|
+
_progress: HTMLDivElement;
|
|
3
|
+
_progressWrap: HTMLDivElement;
|
|
4
|
+
_progressWrapValue: HTMLDivElement;
|
|
5
|
+
_progressDot: HTMLDivElement;
|
|
6
|
+
moveProgress: {
|
|
7
|
+
mouseDown: boolean;
|
|
8
|
+
};
|
|
9
|
+
constructor();
|
|
10
|
+
static get observedAttributes(): string[];
|
|
11
|
+
get percent(): number;
|
|
12
|
+
set percent(value: number);
|
|
13
|
+
get total(): number;
|
|
14
|
+
set total(value: string);
|
|
15
|
+
get type(): string;
|
|
16
|
+
set type(value: string);
|
|
17
|
+
get animation(): string;
|
|
18
|
+
set animation(value: string);
|
|
19
|
+
get dot(): string;
|
|
20
|
+
set dot(value: string);
|
|
21
|
+
progressClick: (e: MouseEvent) => void;
|
|
22
|
+
progressDotMouseDown: () => void;
|
|
23
|
+
progressDotMouseMove: (e: MouseEvent) => void;
|
|
24
|
+
progressDotMouseUp: (e: MouseEvent) => void;
|
|
25
|
+
change: () => void;
|
|
26
|
+
appendProgressDot: () => void;
|
|
27
|
+
updateCurrentProgress: () => void;
|
|
28
|
+
dragEvent: () => void;
|
|
29
|
+
createProgress: () => void;
|
|
30
|
+
private resize;
|
|
31
|
+
connectedCallback(): void;
|
|
32
|
+
disconnectCallback(): void;
|
|
33
|
+
attributeChangedCallback(k: string, o: string, n: string): void;
|
|
34
|
+
}
|
|
35
|
+
declare const _default: import('../../utils/index').CustomErrorType | undefined;
|
|
36
|
+
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { a } from "../../index-
|
|
2
|
-
import "../../index-
|
|
1
|
+
import { a } from "../../index-a1a53af6.js";
|
|
2
|
+
import "../../index-d2d69b06.js";
|
|
3
|
+
import "../../index-57492b9b.js";
|
|
4
|
+
import "../../vendor-f71e6f68.js";
|
|
3
5
|
export {
|
|
4
6
|
a as default
|
|
5
7
|
};
|