ranui 0.1.9 → 0.1.10-alpha.1
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/_commonjs-dynamic-modules-DLbDWi6a.js +12 -0
- package/dist/arrow-down-C9jBUUt3.js +30 -0
- package/dist/assets/image/failImage.d.ts +2 -0
- package/dist/button.js +7 -0
- package/dist/checkbox.js +7 -0
- package/dist/colorpicker.js +13 -0
- package/dist/{colz-746223ab.js → colz-CRDozfZA.js} +1 -5
- package/dist/components/button/index.d.ts +7 -3
- package/dist/components/checkbox/index.d.ts +27 -0
- package/dist/components/colorpicker/index.d.ts +122 -0
- package/dist/components/content/index.d.ts +15 -0
- package/dist/components/input/index.d.ts +65 -41
- package/dist/components/message/index.d.ts +2 -0
- package/dist/components/option/index.d.ts +2 -1
- package/dist/components/player/index.d.ts +31 -6
- package/dist/components/popover/index.d.ts +39 -0
- package/dist/components/preview/docx.d.ts +1 -1
- package/dist/components/preview/index.d.ts +2 -0
- package/dist/components/preview/pptx/process_pptx.d.ts +1 -1
- package/dist/components/progress/index.d.ts +11 -5
- package/dist/components/radar/index.d.ts +1 -1
- package/dist/components/scratch/index.d.ts +5 -1
- package/dist/components/select/index.d.ts +15 -7
- package/dist/content.js +6 -0
- package/dist/docx-ajDUtnbM.js +3665 -0
- package/dist/global-DOfcrQ2N.js +4 -0
- package/dist/icon.js +6 -0
- package/dist/iconShadowless.js +6 -0
- package/dist/image.js +4 -0
- package/dist/index-0fvHQjmN.js +298 -0
- package/dist/{index-1b73beee.js → index-BLepXisd.js} +55 -90
- package/dist/{index-e2e5d725.js → index-BOoNI-Al.js} +113 -305
- package/dist/{index-2d16a084.js → index-BPBRPxND.js} +8 -10
- package/dist/{index-e03d23e7.js → index-BpOERe9M.js} +1 -1
- package/dist/index-Bv6Z6rIe.js +498 -0
- package/dist/index-ByJ7zZdQ.js +65641 -0
- package/dist/{index-b7790662.js → index-C1x9Popy.js} +1 -1
- package/dist/index-CCNK5H8T.js +103 -0
- package/dist/{index-458debf7.js → index-CD09p_mF.js} +7 -31
- package/dist/{index-1048a998.js → index-CFnsLnrb.js} +68 -19
- package/dist/{index-4443363f.js → index-CJZp9lE4.js} +29 -50
- package/dist/{index-57492b9b.js → index-CSnBqUsQ.js} +48 -1
- package/dist/index-CWWI8SHO.js +206 -0
- package/dist/{index-7b8840f9.js → index-CZlEoE62.js} +220 -1010
- package/dist/index-CbyMC6Yz.js +59 -0
- package/dist/index-CiBVH-oH.js +258 -0
- package/dist/{index-3cf72afd.js → index-DUMmFdJ7.js} +9 -23
- package/dist/{index-01b17e26.js → index-Du-Biu-I.js} +1 -1
- package/dist/index-EnzWG8R0.js +521 -0
- package/dist/index-F2RO3OU4.js +501 -0
- package/dist/{index-7216d6b0.js → index-GavQwMDL.js} +11 -29
- package/dist/{index-0d5b9435.js → index-suip9eAw.js} +2 -2
- package/dist/index.d.ts +18 -14
- package/dist/index.js +23 -19
- package/dist/info-circle-fill-CFeVMdci.js +4 -0
- package/dist/input.js +6 -0
- package/dist/inputShadowless.js +6 -0
- package/dist/jszip.min-Ca6PjkYs.js +2674 -0
- package/dist/message.js +5 -0
- package/dist/modal.js +4 -0
- package/dist/{components/option/index.js → option.js} +3 -6
- package/dist/{pdf-bdb7818a.js → pdf-B2a6ll8f.js} +1 -1
- package/dist/player.js +8 -0
- package/dist/popover.js +6 -0
- package/dist/preview.js +7 -0
- package/dist/progress.js +7 -0
- package/dist/radar.js +6 -0
- package/dist/select.js +10 -0
- package/dist/selectShadowless.js +10 -0
- package/dist/{umd/components/image → shadowless/icon}/index.d.ts +1 -0
- package/dist/{umd/components → shadowless}/input/index.d.ts +33 -8
- package/dist/{umd/components → shadowless}/select/index.d.ts +16 -12
- package/dist/shadowless/shadowless/index.js +14 -0
- package/dist/shadowless.d.ts +3 -0
- package/dist/skeleton.js +4 -0
- package/dist/sprite-CH2zLtZy.js +141 -0
- package/dist/style.css +1 -1
- package/dist/tab.js +6 -0
- package/dist/tabpane.js +4 -0
- package/dist/tsconfig.json +29 -0
- package/dist/umd/index.umd.cjs +21 -32
- package/dist/umd/shadowless/shadowless.umd.cjs +1 -0
- package/dist/umd/shadowless/style.css +1 -0
- package/dist/umd/style.css +1 -1
- package/dist/utils/color.d.ts +52 -0
- package/dist/utils/index.d.ts +9 -1
- package/dist/{index-7913ec46.js → utils-BMBEcoPj.js} +279 -162
- package/dist/vite.config.d.ts +1 -0
- package/package.json +61 -36
- package/readme.md +14 -14
- package/typings.d.ts +101 -0
- package/dist/components/button/index.js +0 -8
- package/dist/components/icon/index.js +0 -6
- package/dist/components/image/index.js +0 -4
- package/dist/components/input/index.js +0 -6
- package/dist/components/message/index.js +0 -4
- package/dist/components/modal/index.js +0 -4
- package/dist/components/player/index.js +0 -12
- package/dist/components/preview/index.js +0 -8
- package/dist/components/progress/index.js +0 -8
- package/dist/components/radar/index.js +0 -7
- package/dist/components/select/index.js +0 -11
- package/dist/components/skeleton/index.js +0 -4
- package/dist/components/tab/index.js +0 -7
- package/dist/components/tabpane/index.js +0 -4
- package/dist/docx-c5d02d8c.js +0 -21
- package/dist/index-73ce455b.js +0 -264
- package/dist/index-c14450a9.js +0 -662
- package/dist/info-circle-fill-90ec9aa9.js +0 -14
- package/dist/umd/build/config.d.ts +0 -3
- package/dist/umd/build/config.umd.d.ts +0 -2
- package/dist/umd/components/button/index.d.ts +0 -35
- package/dist/umd/components/form/index.d.ts +0 -2
- package/dist/umd/components/icon/index.d.ts +0 -2
- package/dist/umd/components/message/index.d.ts +0 -14
- package/dist/umd/components/modal/index.d.ts +0 -2
- package/dist/umd/components/option/index.d.ts +0 -2
- package/dist/umd/components/player/index.d.ts +0 -213
- package/dist/umd/components/preview/colz.d.ts +0 -72
- package/dist/umd/components/preview/docx.d.ts +0 -8
- package/dist/umd/components/preview/excel/excel.d.ts +0 -2
- package/dist/umd/components/preview/excel/index.d.ts +0 -1
- package/dist/umd/components/preview/excel/media.d.ts +0 -37
- package/dist/umd/components/preview/index.d.ts +0 -6
- package/dist/umd/components/preview/pdf.d.ts +0 -1
- package/dist/umd/components/preview/pptx/index.d.ts +0 -16
- package/dist/umd/components/preview/pptx/process_pptx.d.ts +0 -23
- package/dist/umd/components/preview/pptx/t_xml.d.ts +0 -1
- package/dist/umd/components/preview/pptx/worker.d.ts +0 -1
- package/dist/umd/components/progress/index.d.ts +0 -36
- package/dist/umd/components/radar/index.d.ts +0 -2
- package/dist/umd/components/scratch/index.d.ts +0 -19
- package/dist/umd/components/skeleton/index.d.ts +0 -2
- package/dist/umd/components/tab/index.d.ts +0 -408
- package/dist/umd/components/tabpane/index.d.ts +0 -352
- package/dist/umd/index.d.ts +0 -14
- package/dist/umd/playwright.config.d.ts +0 -9
- package/dist/umd/plugins/auto-import-file.d.ts +0 -0
- package/dist/umd/plugins/load-style.d.ts +0 -6
- package/dist/umd/plugins/load-svg.d.ts +0 -9
- package/dist/umd/tests/button.spec.d.ts +0 -1
- package/dist/umd/utils/image.d.ts +0 -32
- package/dist/umd/utils/index.d.ts +0 -64
- package/dist/umd/utils/math.d.ts +0 -26
- package/dist/umd/utils/tween.d.ts +0 -21
- package/dist/umd/vite.config.d.ts +0 -6
- package/dist/vendor-f71e6f68.js +0 -92126
- /package/dist/{add-user-b2bed3e7.js → add-user-BN1JlY7e.js} +0 -0
- /package/dist/{book-b11a68eb.js → book-nTEFXU2x.js} +0 -0
- /package/dist/{umd/build/config.es.d.ts → build/config.sha.d.ts} +0 -0
- /package/dist/{check-circle-fill-dc284144.js → check-circle-fill-B_pd8ZSs.js} +0 -0
- /package/dist/{check-circle-74bd09c3.js → check-circle-szyAJiap.js} +0 -0
- /package/dist/{close-20925345.js → close-CFnkhudp.js} +0 -0
- /package/dist/{close-circle-720c18be.js → close-circle-CwmuN2C6.js} +0 -0
- /package/dist/{close-circle-fill-238a66b1.js → close-circle-fill-jSqPPw9i.js} +0 -0
- /package/dist/{eye-5e742329.js → eye-D_mEt17f.js} +0 -0
- /package/dist/{eye-close-3874f1ae.js → eye-close-BVr3NJtg.js} +0 -0
- /package/dist/{home-c4a05e8b.js → home-BUQ4USMk.js} +0 -0
- /package/dist/{index-8e1e2573.js → index-CQTJoWhb.js} +0 -0
- /package/dist/{info-circle-5826decc.js → info-circle-COnL5bTJ.js} +0 -0
- /package/dist/{loading-09ca52df.js → loading-Dcc5RApI.js} +0 -0
- /package/dist/{lock-1d2487c9.js → lock-Cr7BnmWN.js} +0 -0
- /package/dist/{message-b2bfdea7.js → message-D36_Zo2l.js} +0 -0
- /package/dist/{power-off-6ade5a91.js → power-off-lQRbiBak.js} +0 -0
- /package/dist/{preview-b291aea8.js → preview-CJbz9GjO.js} +0 -0
- /package/dist/{setting-1e5ccb6d.js → setting-DemlgzVC.js} +0 -0
- /package/dist/{team-ca6a12e1.js → team-tl4NJXPC.js} +0 -0
- /package/dist/{unlock-f56086fd.js → unlock-CeU74z9n.js} +0 -0
- /package/dist/{user-5c01e665.js → user-B-eVXwuk.js} +0 -0
- /package/dist/{warning-circle-035e025c.js → warning-circle-DDUgEDIv.js} +0 -0
- /package/dist/{warning-circle-fill-d17c37c9.js → warning-circle-fill-lODUKz0i.js} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2
|
+
function getDefaultExportFromCjs(x) {
|
|
3
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
4
|
+
}
|
|
5
|
+
function commonjsRequire(path) {
|
|
6
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
commonjsRequire as a,
|
|
10
|
+
commonjsGlobal as c,
|
|
11
|
+
getDefaultExportFromCjs as g
|
|
12
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const str2Xml = (xmlStr, format = "text/xml") => {
|
|
2
|
+
if (window.DOMParser)
|
|
3
|
+
return new window.DOMParser().parseFromString(xmlStr, format).documentElement;
|
|
4
|
+
if (typeof window.ActiveXObject !== "undefined") {
|
|
5
|
+
const xmlDoc = new window.ActiveXObject("Microsoft.XMLDOM");
|
|
6
|
+
xmlDoc.async = "false";
|
|
7
|
+
xmlDoc.loadXML(xmlStr);
|
|
8
|
+
return xmlDoc;
|
|
9
|
+
}
|
|
10
|
+
return void 0;
|
|
11
|
+
};
|
|
12
|
+
const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
13
|
+
const v = glob[path];
|
|
14
|
+
if (v) {
|
|
15
|
+
return typeof v === "function" ? v() : Promise.resolve(v);
|
|
16
|
+
}
|
|
17
|
+
return new Promise((_, reject) => {
|
|
18
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path)));
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
const arrowDown = { "success": true, "_identification": true, "data": '<svg viewBox="0 0 1024 1024" width="200" height="200" version="1.1"\n fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>\n</svg>' };
|
|
22
|
+
const arrowDown$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
|
+
__proto__: null,
|
|
24
|
+
default: arrowDown
|
|
25
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
26
|
+
export {
|
|
27
|
+
__variableDynamicImportRuntimeHelper as _,
|
|
28
|
+
arrowDown$1 as a,
|
|
29
|
+
str2Xml as s
|
|
30
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const failImage = "\n data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==\n";
|
|
2
|
+
export default failImage;
|
package/dist/button.js
ADDED
package/dist/checkbox.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./utils-BMBEcoPj.js";
|
|
2
|
+
import "./index-CSnBqUsQ.js";
|
|
3
|
+
import { C, a } from "./index-EnzWG8R0.js";
|
|
4
|
+
import "./index-CWWI8SHO.js";
|
|
5
|
+
import "./index-CbyMC6Yz.js";
|
|
6
|
+
import "./index-CFnsLnrb.js";
|
|
7
|
+
import "./index-Bv6Z6rIe.js";
|
|
8
|
+
import "./option.js";
|
|
9
|
+
import "./index-CJZp9lE4.js";
|
|
10
|
+
export {
|
|
11
|
+
C as ColorPicker,
|
|
12
|
+
a as default
|
|
13
|
+
};
|
|
@@ -129,11 +129,7 @@ class Color {
|
|
|
129
129
|
}
|
|
130
130
|
const hexToRgb = function(hex) {
|
|
131
131
|
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
132
|
-
return result ? [
|
|
133
|
-
parseInt(result[1], 16),
|
|
134
|
-
parseInt(result[2], 16),
|
|
135
|
-
parseInt(result[3], 16)
|
|
136
|
-
] : null;
|
|
132
|
+
return result ? [parseInt(result[1], 16), parseInt(result[2], 16), parseInt(result[3], 16)] : null;
|
|
137
133
|
};
|
|
138
134
|
const getDarkColor = (color, level) => {
|
|
139
135
|
const rgbc = hexToRgb(color) || [];
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
|
|
2
|
+
declare const Button_base: {
|
|
3
|
+
new (): HTMLElement;
|
|
4
|
+
prototype: HTMLElement;
|
|
5
|
+
};
|
|
6
|
+
export declare class Button extends Button_base {
|
|
3
7
|
_btn: HTMLDivElement;
|
|
4
8
|
_btnContent: HTMLDivElement;
|
|
5
9
|
_iconElement?: HTMLElement;
|
|
@@ -19,7 +23,7 @@ export declare class Button extends HTMLElement {
|
|
|
19
23
|
get effect(): string;
|
|
20
24
|
set effect(value: string | null);
|
|
21
25
|
/**
|
|
22
|
-
* @description: 设置button的icon
|
|
26
|
+
* @description: 设置 button 的 icon
|
|
23
27
|
* @return {*}
|
|
24
28
|
*/
|
|
25
29
|
setIcon: () => void;
|
|
@@ -31,5 +35,5 @@ export declare class Button extends HTMLElement {
|
|
|
31
35
|
disconnectCallback(): void;
|
|
32
36
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
33
37
|
}
|
|
34
|
-
declare const _default: import(
|
|
38
|
+
declare const _default: import("@/utils/index").CustomErrorType;
|
|
35
39
|
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
interface Context {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const Checkbox_base: {
|
|
6
|
+
new (): HTMLElement;
|
|
7
|
+
prototype: HTMLElement;
|
|
8
|
+
};
|
|
9
|
+
export declare class Checkbox extends Checkbox_base {
|
|
10
|
+
checkInput: HTMLInputElement;
|
|
11
|
+
checkInner: HTMLSpanElement;
|
|
12
|
+
context: Context;
|
|
13
|
+
static get observedAttributes(): string[];
|
|
14
|
+
constructor();
|
|
15
|
+
get disabled(): string;
|
|
16
|
+
set disabled(value: string);
|
|
17
|
+
get checked(): string;
|
|
18
|
+
set checked(value: string);
|
|
19
|
+
updateChecked: () => void;
|
|
20
|
+
update: () => void;
|
|
21
|
+
onChange: () => void;
|
|
22
|
+
connectedCallback(): void;
|
|
23
|
+
disconnectCallback(): void;
|
|
24
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
25
|
+
}
|
|
26
|
+
declare const _default: import("@/utils/index").CustomErrorType;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import '@/components/popover';
|
|
2
|
+
import '@/components/content';
|
|
3
|
+
import '@/shadowless/input';
|
|
4
|
+
import '@/shadowless/select';
|
|
5
|
+
import '@/components/option';
|
|
6
|
+
import '@/components/progress';
|
|
7
|
+
import './index.less';
|
|
8
|
+
interface Context {
|
|
9
|
+
disabled: Signal<boolean>;
|
|
10
|
+
value: Signal<string>;
|
|
11
|
+
hue: Signal<number>;
|
|
12
|
+
saturation: Signal<number>;
|
|
13
|
+
lightness: Signal<number>;
|
|
14
|
+
transparency: Signal<number>;
|
|
15
|
+
}
|
|
16
|
+
interface RGBA {
|
|
17
|
+
r: number;
|
|
18
|
+
g: number;
|
|
19
|
+
b: number;
|
|
20
|
+
a: number;
|
|
21
|
+
}
|
|
22
|
+
interface Signal<T> {
|
|
23
|
+
getter: () => T;
|
|
24
|
+
setter: (newValue: T) => void;
|
|
25
|
+
}
|
|
26
|
+
declare const ColorPicker_base: {
|
|
27
|
+
new (): HTMLElement;
|
|
28
|
+
prototype: HTMLElement;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @description: 数据驱动视图,改变数据,即改变视图
|
|
32
|
+
* @return {*}
|
|
33
|
+
*/
|
|
34
|
+
export declare class ColorPicker extends ColorPicker_base {
|
|
35
|
+
colorpicker: HTMLDivElement;
|
|
36
|
+
colorpickerInner: HTMLDivElement;
|
|
37
|
+
context: Context;
|
|
38
|
+
popoverBlock: HTMLElement;
|
|
39
|
+
popoverContent: HTMLElement;
|
|
40
|
+
colorPickerInner?: HTMLDivElement;
|
|
41
|
+
colorPickerInnerContent?: HTMLDivElement;
|
|
42
|
+
colorPickerPanel?: HTMLDivElement;
|
|
43
|
+
colorPickerInputContainer?: HTMLDivElement;
|
|
44
|
+
colorPickerPanelDot?: HTMLDivElement;
|
|
45
|
+
colorPickerPanelSliderContainer?: HTMLDivElement;
|
|
46
|
+
colorPickerPanelSliderGroup?: HTMLDivElement;
|
|
47
|
+
colorPickerPanelSliderHue?: HTMLElement;
|
|
48
|
+
colorPickerPanelSliderAlpha?: HTMLElement;
|
|
49
|
+
colorPickerColorBlockInner?: HTMLDivElement;
|
|
50
|
+
colorPickerColorBlock?: HTMLDivElement;
|
|
51
|
+
colorPickerInnerContentSelect?: HTMLDivElement;
|
|
52
|
+
colorPickerPanelPalette?: HTMLDivElement;
|
|
53
|
+
colorPickerPanelSaturation?: HTMLDivElement;
|
|
54
|
+
colorPickerInputContainerSelect?: HTMLElement;
|
|
55
|
+
colorPickerInputContainerInputColor?: HTMLElement;
|
|
56
|
+
colorPickerInputContainerInputNumber?: HTMLElement;
|
|
57
|
+
colorPickerInputContainerSelectItem?: HTMLElement;
|
|
58
|
+
colorPickerPaletteSelect: boolean;
|
|
59
|
+
colorPickerPanelDotInner?: HTMLDivElement;
|
|
60
|
+
static get observedAttributes(): string[];
|
|
61
|
+
constructor();
|
|
62
|
+
get value(): string;
|
|
63
|
+
set value(value: string);
|
|
64
|
+
createContext: () => void;
|
|
65
|
+
/**
|
|
66
|
+
* @description: 0 - 360 色相 hue
|
|
67
|
+
* @param {*} Signal
|
|
68
|
+
* @return {*}
|
|
69
|
+
*/
|
|
70
|
+
createColorHue: () => Signal<number>;
|
|
71
|
+
/**
|
|
72
|
+
* @description: 0 - 100 饱和度 x
|
|
73
|
+
* @param {*} Signal
|
|
74
|
+
* @return {*}
|
|
75
|
+
*/
|
|
76
|
+
createColorSaturation: () => Signal<number>;
|
|
77
|
+
/**
|
|
78
|
+
* @description: 0 - 100 亮度 y
|
|
79
|
+
* @param {*} Signal
|
|
80
|
+
* @return {*}
|
|
81
|
+
*/
|
|
82
|
+
createColorLightness: () => Signal<number>;
|
|
83
|
+
/**
|
|
84
|
+
* @description: 0 - 100 透明度
|
|
85
|
+
* @param {*} Signal
|
|
86
|
+
* @return {*}
|
|
87
|
+
*/
|
|
88
|
+
createColorTransparency: () => Signal<number>;
|
|
89
|
+
createColorDisabled: () => Signal<boolean>;
|
|
90
|
+
createColorValueSignal: () => Signal<string>;
|
|
91
|
+
generateHue2rgb: () => string;
|
|
92
|
+
generateHsv2Rgb: () => string;
|
|
93
|
+
generateHsv2Rgba: () => RGBA;
|
|
94
|
+
generateHsv2RgbaValue: () => string;
|
|
95
|
+
generateColorPickerProgress: () => string;
|
|
96
|
+
updateColorValue: (value: string) => void;
|
|
97
|
+
updateColorPickerPanelSliderHueProgressPercent: (hue: number) => void;
|
|
98
|
+
updateColorPickerPanelSliderAlphaProgressPercent: (alpha: number) => void;
|
|
99
|
+
updateColorPickerPanelSliderAlphaProgressWrap: () => void;
|
|
100
|
+
updateColorPickerPanelSliderAlphaProgressDot: () => void;
|
|
101
|
+
updateColorPickerPanelSliderHueProgressDot: () => void;
|
|
102
|
+
updateColorPickerColorBlockInnerBackground: () => void;
|
|
103
|
+
updateColorPickerPanelSaturationBackground: () => void;
|
|
104
|
+
clickStop: (e: MouseEvent) => void;
|
|
105
|
+
changeColorPalettePositionByContext: () => void;
|
|
106
|
+
changeColorPalettePosition: (offsetX: number, offsetY: number) => void;
|
|
107
|
+
clickColorPalette: (e: MouseEvent) => void;
|
|
108
|
+
createColorPickerProgress: () => void;
|
|
109
|
+
changeColorPickerHue: (e: Event) => void;
|
|
110
|
+
changeColorPickerAlpha: (e: Event) => void;
|
|
111
|
+
createColorPickerSelect: () => void;
|
|
112
|
+
createColorPickerInput: () => void;
|
|
113
|
+
openColorPicker: () => void;
|
|
114
|
+
mouseMoveColorPickerPalette: (e: MouseEvent) => void;
|
|
115
|
+
mouseDownColorPickerPalette: (e: MouseEvent) => void;
|
|
116
|
+
mouseUpColorPickerPalette: (e: MouseEvent) => void;
|
|
117
|
+
connectedCallback(): void;
|
|
118
|
+
disconnectCallback(): void;
|
|
119
|
+
attributeChangedCallback(n: string, o: string, v: string): void;
|
|
120
|
+
}
|
|
121
|
+
declare const _default: import("@/utils/index").CustomErrorType;
|
|
122
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
declare const Content_base: {
|
|
3
|
+
new (): HTMLElement;
|
|
4
|
+
prototype: HTMLElement;
|
|
5
|
+
};
|
|
6
|
+
export declare class Content extends Content_base {
|
|
7
|
+
observer: MutationObserver;
|
|
8
|
+
constructor();
|
|
9
|
+
callback: (mutations: MutationRecord[], observer: MutationObserver) => void;
|
|
10
|
+
onChange: (mutation: MutationRecord) => void;
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
disconnectCallback(): void;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import("@/utils/index").CustomErrorType;
|
|
15
|
+
export default _default;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
declare const Input_base: {
|
|
2
|
+
new (): HTMLElement;
|
|
3
|
+
prototype: HTMLElement;
|
|
4
|
+
};
|
|
5
|
+
export declare class Input extends Input_base {
|
|
2
6
|
static get observedAttributes(): string[];
|
|
3
7
|
_input: HTMLDivElement;
|
|
4
8
|
_label: HTMLLabelElement | undefined;
|
|
@@ -6,168 +10,188 @@ export declare class Input extends HTMLElement {
|
|
|
6
10
|
_icon: HTMLElement | undefined;
|
|
7
11
|
constructor();
|
|
8
12
|
/**
|
|
9
|
-
* @description: 获取input的值
|
|
13
|
+
* @description: 获取 input 的值
|
|
10
14
|
* @return {String}
|
|
11
15
|
*/
|
|
12
|
-
get value(): string
|
|
16
|
+
get value(): string;
|
|
13
17
|
/**
|
|
14
|
-
* @description: 设置input的值
|
|
18
|
+
* @description: 设置 input 的值
|
|
15
19
|
* @param {String} value
|
|
16
20
|
*/
|
|
17
21
|
set value(value: string);
|
|
18
22
|
/**
|
|
19
|
-
* @description: 获取input的占位字符
|
|
23
|
+
* @description: 获取 input 的占位字符
|
|
20
24
|
* @return {String}
|
|
21
25
|
*/
|
|
22
|
-
get placeholder(): string
|
|
26
|
+
get placeholder(): string;
|
|
23
27
|
/**
|
|
24
|
-
* @description: 设置input的占位字符
|
|
28
|
+
* @description: 设置 input 的占位字符
|
|
25
29
|
* @param {String} value
|
|
26
30
|
*/
|
|
27
31
|
set placeholder(value: string);
|
|
28
32
|
/**
|
|
29
|
-
* @description: input是否为必选
|
|
33
|
+
* @description: input 是否为必选
|
|
30
34
|
* @return {String}
|
|
31
35
|
*/
|
|
32
|
-
get required(): string
|
|
36
|
+
get required(): string;
|
|
33
37
|
/**
|
|
34
|
-
* @description: 设置input是否为必选,除非设置成false,否则都是必填
|
|
38
|
+
* @description: 设置 input 是否为必选,除非设置成 false,否则都是必填
|
|
35
39
|
* @param {*} value
|
|
36
40
|
*/
|
|
37
41
|
set required(value: string);
|
|
38
42
|
/**
|
|
39
|
-
* @description: 获取input上disabled属性
|
|
43
|
+
* @description: 获取 input 上 disabled 属性
|
|
40
44
|
* @return {String | null}
|
|
41
45
|
*/
|
|
42
|
-
get disabled():
|
|
46
|
+
get disabled(): string;
|
|
43
47
|
/**
|
|
44
|
-
* @description: 设置input的disabled属性
|
|
48
|
+
* @description: 设置 input 的 disabled 属性
|
|
45
49
|
* @param {String} value
|
|
46
50
|
*/
|
|
47
51
|
set disabled(value: string);
|
|
48
52
|
/**
|
|
49
|
-
* @description: 获取类似于Metiral Design的输入体验。
|
|
53
|
+
* @description: 获取类似于 Metiral Design 的输入体验。
|
|
50
54
|
*/
|
|
51
55
|
get label(): string;
|
|
52
56
|
/**
|
|
53
|
-
* @description: 设置类似于Metiral Design的输入体验。
|
|
57
|
+
* @description: 设置类似于 Metiral Design 的输入体验。
|
|
54
58
|
*/
|
|
55
59
|
set label(value: string);
|
|
56
60
|
/**
|
|
57
|
-
* @description: 获取input框的状态
|
|
61
|
+
* @description: 获取 input 框的状态
|
|
58
62
|
*/
|
|
59
63
|
get status(): string;
|
|
60
64
|
/**
|
|
61
|
-
* @description: 设置input框的状态
|
|
65
|
+
* @description: 设置 input 框的状态
|
|
62
66
|
*/
|
|
63
67
|
set status(value: string);
|
|
64
68
|
/**
|
|
65
|
-
* @description: 与form组件联动时,收集的属性名
|
|
69
|
+
* @description: 与 form 组件联动时,收集的属性名
|
|
66
70
|
* @return {String}
|
|
67
71
|
*/
|
|
68
72
|
get name(): string;
|
|
69
73
|
/**
|
|
70
|
-
* @description: 设置name属性
|
|
74
|
+
* @description: 设置 name 属性
|
|
71
75
|
* @param {string} value
|
|
72
76
|
*/
|
|
73
77
|
set name(value: string);
|
|
74
78
|
/**
|
|
75
|
-
* @description: 当input类型为number类型时,可以获取min属性
|
|
79
|
+
* @description: 当 input 类型为 number 类型时,可以获取 min 属性
|
|
76
80
|
* @return {String}
|
|
77
81
|
*/
|
|
78
82
|
get min(): string;
|
|
79
83
|
/**
|
|
80
|
-
* @description: 当input类型为number类型时,设置min属性
|
|
84
|
+
* @description: 当 input 类型为 number 类型时,设置 min 属性
|
|
81
85
|
* @param {string} value
|
|
82
86
|
*/
|
|
83
87
|
set min(value: string);
|
|
84
88
|
/**
|
|
85
|
-
* @description: 当input类型为number类型时,可以获取max属性
|
|
89
|
+
* @description: 当 input 类型为 number 类型时,可以获取 max 属性
|
|
86
90
|
* @return {String}
|
|
87
91
|
*/
|
|
88
92
|
get max(): string;
|
|
89
93
|
/**
|
|
90
|
-
* @description: 当input类型为number类型时,设置max属性
|
|
94
|
+
* @description: 当 input 类型为 number 类型时,设置 max 属性
|
|
91
95
|
* @param {string} value
|
|
92
96
|
*/
|
|
93
97
|
set max(value: string);
|
|
94
98
|
/**
|
|
95
|
-
* @description: 当input类型为number类型时,可以获取step属性
|
|
99
|
+
* @description: 当 input 类型为 number 类型时,可以获取 step 属性
|
|
96
100
|
* @return {String}
|
|
97
101
|
*/
|
|
98
102
|
get step(): string;
|
|
99
103
|
/**
|
|
100
|
-
* @description: 当input类型为number类型时,设置step属性
|
|
104
|
+
* @description: 当 input 类型为 number 类型时,设置 step 属性
|
|
101
105
|
* @param {string} value
|
|
102
106
|
*/
|
|
103
107
|
set step(value: string);
|
|
104
108
|
/**
|
|
105
|
-
* @description: 获取一个icon
|
|
109
|
+
* @description: 获取一个 icon
|
|
106
110
|
* @return {String}
|
|
107
111
|
*/
|
|
108
|
-
get icon(): string
|
|
112
|
+
get icon(): string;
|
|
109
113
|
/**
|
|
110
|
-
* @description: 设置icon来表示标识
|
|
114
|
+
* @description: 设置 icon 来表示标识
|
|
111
115
|
* @param {string|null} value
|
|
112
116
|
*/
|
|
113
117
|
set icon(value: string);
|
|
114
118
|
/**
|
|
115
|
-
* @description:
|
|
119
|
+
* @description: 获取前面的 icon
|
|
120
|
+
* @return {String}
|
|
121
|
+
*/
|
|
122
|
+
get prefix(): string;
|
|
123
|
+
/**
|
|
124
|
+
* @description: 设置前面的 icon 来表示标识
|
|
125
|
+
* @param {string|null} value
|
|
126
|
+
*/
|
|
127
|
+
set prefix(value: string);
|
|
128
|
+
/**
|
|
129
|
+
* @description: 获取后面的 icon
|
|
130
|
+
* @return {String}
|
|
131
|
+
*/
|
|
132
|
+
get suffix(): string;
|
|
133
|
+
/**
|
|
134
|
+
* @description: 设置后面的 icon 来表示标识
|
|
135
|
+
* @param {string|null} value
|
|
136
|
+
*/
|
|
137
|
+
set suffix(value: string);
|
|
138
|
+
/**
|
|
139
|
+
* @description: 获取 input 的类型
|
|
116
140
|
* @return {string|null}
|
|
117
141
|
*/
|
|
118
|
-
get type(): string
|
|
142
|
+
get type(): string;
|
|
119
143
|
/**
|
|
120
|
-
* @description: 设置input的类型
|
|
144
|
+
* @description: 设置 input 的类型
|
|
121
145
|
* @param {string|null} value
|
|
122
146
|
*/
|
|
123
147
|
set type(value: string);
|
|
124
148
|
/**
|
|
125
|
-
* @description: 原生的input方法
|
|
149
|
+
* @description: 原生的 input 方法
|
|
126
150
|
* @param {Event} event
|
|
127
151
|
*/
|
|
128
152
|
customInput: (event: Event) => void;
|
|
129
153
|
/**
|
|
130
|
-
* @description: 增加change方法,同时兼容大小写的情况
|
|
154
|
+
* @description: 增加 change 方法,同时兼容大小写的情况
|
|
131
155
|
*/
|
|
132
156
|
customChange: () => void;
|
|
133
157
|
/**
|
|
134
|
-
* @description: 监听placeholder属性函数
|
|
158
|
+
* @description: 监听 placeholder 属性函数
|
|
135
159
|
* @param {string} name
|
|
136
160
|
* @param {string} value
|
|
137
161
|
*/
|
|
138
162
|
listenPlaceholder: (name: string, value: string) => void;
|
|
139
163
|
/**
|
|
140
|
-
* @description: 监听label属性函数
|
|
164
|
+
* @description: 监听 label 属性函数
|
|
141
165
|
* @param {string} name
|
|
142
166
|
* @param {string} value
|
|
143
167
|
*/
|
|
144
168
|
listenLabel: (name: string, value: string) => void;
|
|
145
169
|
/**
|
|
146
|
-
* @description: 监听type属性
|
|
170
|
+
* @description: 监听 type 属性
|
|
147
171
|
* @param {string} name
|
|
148
172
|
* @param {string} value
|
|
149
173
|
*/
|
|
150
174
|
listenType: (name: string, value: string) => void;
|
|
151
175
|
/**
|
|
152
|
-
* @description: 监听status属性
|
|
176
|
+
* @description: 监听 status 属性
|
|
153
177
|
* @param {string} name
|
|
154
178
|
* @param {string} value
|
|
155
179
|
*/
|
|
156
180
|
listenStatus: (name: string, value: string) => void;
|
|
157
181
|
/**
|
|
158
|
-
* @description: 监听disabled属性
|
|
182
|
+
* @description: 监听 disabled 属性
|
|
159
183
|
* @param {string} name
|
|
160
184
|
* @param {string} value
|
|
161
185
|
*/
|
|
162
186
|
listenDisabled: (name: string, value: string) => void;
|
|
163
187
|
/**
|
|
164
|
-
* @description: 监听icon属性
|
|
188
|
+
* @description: 监听 icon 属性
|
|
165
189
|
* @param {string} name
|
|
166
190
|
* @param {string} value
|
|
167
191
|
*/
|
|
168
192
|
listenIcon: (name: string, value: string, oldValue: string) => void;
|
|
169
193
|
/**
|
|
170
|
-
* @description: 处理icon属性的问题
|
|
194
|
+
* @description: 处理 icon 属性的问题
|
|
171
195
|
*/
|
|
172
196
|
dealIcon: () => void;
|
|
173
197
|
/**
|
|
@@ -181,5 +205,5 @@ export declare class Input extends HTMLElement {
|
|
|
181
205
|
disconnectCallback(): void;
|
|
182
206
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
183
207
|
}
|
|
184
|
-
declare const _default: import(
|
|
208
|
+
declare const _default: import("@/utils/index").CustomErrorType;
|
|
185
209
|
export default _default;
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import
|
|
3
|
-
import type { Progress } from '
|
|
2
|
+
import '@/assets/js/hls.js';
|
|
3
|
+
import type { Progress } from '@/components/progress';
|
|
4
|
+
import '@/components/select';
|
|
5
|
+
import './index.less';
|
|
6
|
+
type Callback = (...args: unknown[]) => unknown;
|
|
7
|
+
type EventName = string | symbol;
|
|
8
|
+
type EventItem = {
|
|
9
|
+
name?: string | symbol;
|
|
10
|
+
callback: Callback;
|
|
11
|
+
initialCallback?: Callback;
|
|
12
|
+
};
|
|
13
|
+
export declare class SHook {
|
|
14
|
+
private _events;
|
|
15
|
+
constructor();
|
|
16
|
+
tap: (eventName: EventName, eventItem: EventItem | Callback) => void;
|
|
17
|
+
call: (eventName: EventName, ...args: Array<unknown>) => void;
|
|
18
|
+
callSync: (eventName: EventName, ...args: Array<unknown>) => Promise<void>;
|
|
19
|
+
once: (eventName: EventName, eventItem: EventItem | Callback) => void;
|
|
20
|
+
off: (eventName: EventName, eventItem: EventItem | Callback) => void;
|
|
21
|
+
}
|
|
4
22
|
export interface HlsPlayer {
|
|
5
23
|
startLoad(): () => void;
|
|
6
24
|
off: (s: string, f: Function) => void;
|
|
@@ -19,7 +37,7 @@ export interface Level {
|
|
|
19
37
|
videoCodec: string;
|
|
20
38
|
}
|
|
21
39
|
export interface Context {
|
|
22
|
-
action:
|
|
40
|
+
action: SHook;
|
|
23
41
|
currentState: string;
|
|
24
42
|
duration: number;
|
|
25
43
|
currentTime: number;
|
|
@@ -31,7 +49,11 @@ export interface Context {
|
|
|
31
49
|
levelMap: Map<string, string>;
|
|
32
50
|
clarity: string;
|
|
33
51
|
}
|
|
34
|
-
|
|
52
|
+
declare const RanPlayer_base: {
|
|
53
|
+
new (): HTMLElement;
|
|
54
|
+
prototype: HTMLElement;
|
|
55
|
+
};
|
|
56
|
+
export declare class RanPlayer extends RanPlayer_base {
|
|
35
57
|
ctx: Context;
|
|
36
58
|
_player: HTMLDivElement;
|
|
37
59
|
_container: HTMLDivElement;
|
|
@@ -70,12 +92,14 @@ export declare class RanPlayer extends HTMLElement {
|
|
|
70
92
|
_hls?: HlsPlayer;
|
|
71
93
|
static get observedAttributes(): string[];
|
|
72
94
|
/**
|
|
73
|
-
* @description: 初始化view和video的全局上下文
|
|
95
|
+
* @description: 初始化 view 和 video 的全局上下文
|
|
74
96
|
* @return {*}
|
|
75
97
|
*/
|
|
76
98
|
constructor();
|
|
77
99
|
get src(): string;
|
|
78
100
|
set src(value: string);
|
|
101
|
+
get debug(): string;
|
|
102
|
+
set debug(value: string);
|
|
79
103
|
get volume(): string;
|
|
80
104
|
set volume(value: string);
|
|
81
105
|
get currentTime(): string;
|
|
@@ -94,6 +118,7 @@ export declare class RanPlayer extends HTMLElement {
|
|
|
94
118
|
* @return {*}
|
|
95
119
|
*/
|
|
96
120
|
updatePlayer: () => void;
|
|
121
|
+
hlsError: (event: unknown, data: unknown) => void;
|
|
97
122
|
change: (name: string, value: unknown) => void;
|
|
98
123
|
onCanplay: (e: Event) => void;
|
|
99
124
|
onCanplaythrough: (e: Event) => void;
|
|
@@ -180,7 +205,7 @@ export declare class RanPlayer extends HTMLElement {
|
|
|
180
205
|
*/
|
|
181
206
|
SpaceKeyDown: (e: KeyboardEvent) => void;
|
|
182
207
|
/**
|
|
183
|
-
* @description: 点击player-btn,触发的事件
|
|
208
|
+
* @description: 点击 player-btn,触发的事件
|
|
184
209
|
* @param {*} void
|
|
185
210
|
* @return {*}
|
|
186
211
|
*/
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import './index.less';
|
|
3
|
+
declare const Popover_base: {
|
|
4
|
+
new (): HTMLElement;
|
|
5
|
+
prototype: HTMLElement;
|
|
6
|
+
};
|
|
7
|
+
export declare class Popover extends Popover_base {
|
|
8
|
+
_slot: HTMLSlotElement;
|
|
9
|
+
popoverBlock: HTMLDivElement;
|
|
10
|
+
popoverContent?: HTMLDivElement;
|
|
11
|
+
popoverArrow?: HTMLDivElement;
|
|
12
|
+
popoverInner?: HTMLDivElement;
|
|
13
|
+
popoverInnerBlock?: HTMLDivElement;
|
|
14
|
+
removePopoverTimeId?: NodeJS.Timeout;
|
|
15
|
+
static get observedAttributes(): string[];
|
|
16
|
+
constructor();
|
|
17
|
+
get placement(): string;
|
|
18
|
+
set placement(value: string);
|
|
19
|
+
get arrow(): string;
|
|
20
|
+
set arrow(value: string);
|
|
21
|
+
get trigger(): string;
|
|
22
|
+
set trigger(value: string);
|
|
23
|
+
get getPopupContainerId(): string;
|
|
24
|
+
set getPopupContainerId(value: string);
|
|
25
|
+
createContent: (content: HTMLCollection) => void;
|
|
26
|
+
watchContent: (e: Event) => void;
|
|
27
|
+
placementPosition: () => void;
|
|
28
|
+
hoverPopover: () => void;
|
|
29
|
+
clickContent: (e: Event) => void;
|
|
30
|
+
clickPopover: (e: Event) => void;
|
|
31
|
+
clickRemovePopover: () => void;
|
|
32
|
+
popoverTrigger: () => void;
|
|
33
|
+
hoverRemovePopover: () => void;
|
|
34
|
+
connectedCallback(): void;
|
|
35
|
+
disconnectCallback(): void;
|
|
36
|
+
attributeChangedCallback(n: string, o: string, v: string): void;
|
|
37
|
+
}
|
|
38
|
+
declare const _default: import("@/utils/index").CustomErrorType;
|
|
39
|
+
export default _default;
|