ranui 0.1.10-alpha.9 → 0.2.0-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/README.md +397 -0
- package/README.zh-CN.md +216 -37
- package/dist/assets/image/failImage.d.ts +2 -0
- package/dist/bin/generate-component-api.d.ts +1 -0
- package/dist/bin/generate-style-docs.d.ts +1 -0
- package/dist/build/config.bundle.d.ts +2 -0
- package/dist/build/config.d.ts +3 -0
- package/dist/build/config.es.d.ts +2 -0
- package/dist/build/config.umd.d.ts +1 -0
- package/dist/builder.d.ts +11 -0
- package/dist/builder.js +39 -0
- package/dist/button-BstLjXNe.js +117 -0
- package/dist/button.js +3 -5
- package/dist/card-DQUJoDUQ.js +60 -0
- package/dist/card.js +5 -0
- package/dist/checkbox-iHZQb-yQ.js +94 -0
- package/dist/checkbox.js +3 -5
- package/dist/colorpicker-CGh8pRqo.js +315 -0
- package/dist/colorpicker.js +3 -9
- package/dist/components/button/index.d.ts +44 -0
- package/dist/components/card/index.d.ts +21 -0
- package/dist/components/checkbox/index.d.ts +35 -0
- package/dist/components/colorpicker/index.d.ts +99 -0
- package/dist/components/dropdown/index.d.ts +30 -0
- package/dist/components/form/index.d.ts +15 -0
- package/dist/components/icon/index.d.ts +58 -0
- package/dist/components/image/index.d.ts +31 -0
- package/dist/components/input/index.d.ts +222 -0
- package/dist/components/link/index.d.ts +21 -0
- package/dist/components/loading/index.d.ts +76 -0
- package/dist/components/math/index.d.ts +16 -0
- package/dist/components/message/container.d.ts +8 -0
- package/dist/components/message/index.d.ts +32 -0
- package/dist/components/modal/index.d.ts +100 -0
- package/dist/components/player/core/constants.d.ts +5 -0
- package/dist/components/player/core/controller.d.ts +33 -0
- package/dist/components/player/core/events.d.ts +10 -0
- package/dist/components/player/core/fullscreen.d.ts +5 -0
- package/dist/components/player/core/levels.d.ts +20 -0
- package/dist/components/player/core/media.d.ts +50 -0
- package/dist/components/player/core/playback.d.ts +14 -0
- package/dist/components/player/core/progress.d.ts +2 -0
- package/dist/components/player/core/state.d.ts +27 -0
- package/dist/components/player/core/view.d.ts +38 -0
- package/dist/components/player/index.d.ts +276 -0
- package/dist/components/popover/content/index.d.ts +12 -0
- package/dist/components/popover/index.d.ts +93 -0
- package/dist/components/progress/index.d.ts +40 -0
- package/dist/components/radar/index.d.ts +52 -0
- package/dist/components/route/index.d.ts +26 -0
- package/dist/components/router/index.d.ts +24 -0
- package/dist/components/scratch/index.d.ts +19 -0
- package/dist/components/section/index.d.ts +23 -0
- package/dist/components/select/dropdown-item/index.d.ts +21 -0
- package/dist/components/select/index.d.ts +150 -0
- package/dist/components/select/option/index.d.ts +19 -0
- package/dist/components/skeleton/index.d.ts +13 -0
- package/dist/components/tab/index.d.ts +58 -0
- package/dist/components/tabpane/index.d.ts +33 -0
- package/dist/demo/i18n.d.ts +4 -0
- package/dist/demo/index.d.ts +3 -0
- package/dist/demo/register-icons.d.ts +1 -0
- package/dist/dropdown-RqHMRhFE.js +76 -0
- package/dist/dropdown.js +6 -0
- package/dist/events-C59wGdni.js +30 -0
- package/dist/factory-BdsO0dEW.js +165 -0
- package/dist/form-05Lxxl3D.js +44 -0
- package/dist/form.js +5 -0
- package/dist/icon-Blm7AbyY.js +167 -0
- package/dist/icon.js +4 -4
- package/dist/{index-KS2nvVcO.js → image-DKm6z7YQ.js} +60 -71
- package/dist/image.js +3 -2
- package/dist/index.cjs +35 -0
- package/dist/index.d.ts +277 -114
- package/dist/index.iife.js +306 -0
- package/dist/index.js +78 -38
- package/dist/input-Dskw1bAl.js +186 -0
- package/dist/input.js +2 -3
- package/dist/katex-es-BTpuCxxV.cjs +261 -0
- package/dist/katex-es-CKRwcaiU.js +23682 -0
- package/dist/link-BW-gvrpN.js +77 -0
- package/dist/link.js +6 -0
- package/dist/loading-C4QUpm70.js +206 -0
- package/dist/loading.js +4 -6
- package/dist/math-Dv4nXSoI.js +52 -0
- package/dist/math.js +2 -4
- package/dist/message-De5e1txT.js +137 -0
- package/dist/message.js +3 -4
- package/dist/mocks-CMGoftIc.js +179 -0
- package/dist/modal-DruDj3AB.js +350 -0
- package/dist/modal.js +3 -2
- package/dist/player-CqTAmg_E.js +13534 -0
- package/dist/player.js +3 -6
- package/dist/playwright.config.d.ts +2 -0
- package/dist/plugins/load-svg.d.ts +9 -0
- package/dist/popover-BY32HNMl.js +206 -0
- package/dist/popover.js +3 -5
- package/dist/progress-gZo0knzu.js +123 -0
- package/dist/progress.js +3 -5
- package/dist/radar-19P5Mtld.js +181 -0
- package/dist/radar.js +3 -4
- package/dist/ranui.css +1 -0
- package/dist/route-BY_E6-2C.js +88 -0
- package/dist/route.js +6 -0
- package/dist/router-BDcv4F-2.js +79 -0
- package/dist/router.js +6 -0
- package/dist/scratch-Dbd9G6Q6.js +60 -0
- package/dist/scratch.js +4 -0
- package/dist/section-CNTvgdQ-.js +63 -0
- package/dist/section.js +5 -0
- package/dist/select-BVdUtQX5.js +454 -0
- package/dist/select.js +3 -8
- package/dist/signal-XHfNsQNW.js +57 -0
- package/dist/skeleton-BAdJ6vyA.js +32 -0
- package/dist/skeleton.js +3 -2
- package/dist/ssg.js +21 -0
- package/dist/ssr-DSGwPtEd.js +34 -0
- package/dist/ssr-stream.d.ts +1 -0
- package/dist/ssr-stream.js +87 -0
- package/dist/ssr.d.ts +1 -0
- package/dist/ssr.js +7 -0
- package/dist/style.d.ts +1 -0
- package/dist/style.js +0 -0
- package/dist/tab-DH2owP2V.js +184 -0
- package/dist/tab.js +3 -4
- package/dist/tabpane-B_M-Jokw.js +87 -0
- package/dist/tabpane.js +3 -2
- package/dist/test/e2e/button.spec.d.ts +1 -0
- package/dist/test/e2e/checkbox.spec.d.ts +1 -0
- package/dist/test/e2e/helpers.d.ts +13 -0
- package/dist/test/e2e/icon.spec.d.ts +1 -0
- package/dist/test/e2e/image.spec.d.ts +1 -0
- package/dist/test/e2e/input.spec.d.ts +1 -0
- package/dist/test/e2e/loading.spec.d.ts +1 -0
- package/dist/test/e2e/message.spec.d.ts +1 -0
- package/dist/test/e2e/modal.spec.d.ts +1 -0
- package/dist/test/e2e/popover.spec.d.ts +1 -0
- package/dist/test/e2e/progress.spec.d.ts +1 -0
- package/dist/test/e2e/radar.spec.d.ts +1 -0
- package/dist/test/e2e/select.spec.d.ts +1 -0
- package/dist/test/e2e/skeleton.spec.d.ts +1 -0
- package/dist/test/e2e/tab.spec.d.ts +1 -0
- package/dist/test/e2e/visual/colorpicker.spec.d.ts +1 -0
- package/dist/test/e2e/visual/components.spec.d.ts +1 -0
- package/dist/test/e2e/visual/player.spec.d.ts +1 -0
- package/dist/test/integration/composition.test.d.ts +23 -0
- package/dist/test/setup.d.ts +0 -0
- package/dist/test/ssr/builder.core.ssr.test.d.ts +1 -0
- package/dist/test/ssr/builder.factory.ssr.test.d.ts +1 -0
- package/dist/test/ssr/builder.mocks.test.d.ts +1 -0
- package/dist/test/ssr/components/button.test.d.ts +1 -0
- package/dist/test/ssr/css-vars.test.d.ts +1 -0
- package/dist/test/ssr/registry.test.d.ts +1 -0
- package/dist/test/ssr/router.ssg.test.d.ts +2 -0
- package/dist/test/ssr/snapshots/button.test.d.ts +1 -0
- package/dist/test/ssr/stream.test.d.ts +2 -0
- package/dist/test/ssr/theme.tokens.ssr.test.d.ts +1 -0
- package/dist/test/unit/builder.core.browser.test.d.ts +1 -0
- package/dist/test/unit/builder.escape.test.d.ts +1 -0
- package/dist/test/unit/builder.selectors.test.d.ts +1 -0
- package/dist/test/unit/button.contract.test.d.ts +1 -0
- package/dist/test/unit/card.contract.test.d.ts +1 -0
- package/dist/test/unit/checkbox.contract.test.d.ts +1 -0
- package/dist/test/unit/colorpicker.color.utils.test.d.ts +1 -0
- package/dist/test/unit/colorpicker.contract.test.d.ts +1 -0
- package/dist/test/unit/colorpicker.methods.test.d.ts +1 -0
- package/dist/test/unit/component.helpers.test.d.ts +1 -0
- package/dist/test/unit/dropdown-item.contract.test.d.ts +1 -0
- package/dist/test/unit/dropdown.contract.test.d.ts +1 -0
- package/dist/test/unit/form.contract.test.d.ts +1 -0
- package/dist/test/unit/helpers/component.d.ts +3 -0
- package/dist/test/unit/helpers/dom.d.ts +2 -0
- package/dist/test/unit/icon.contract.test.d.ts +1 -0
- package/dist/test/unit/image.contract.test.d.ts +1 -0
- package/dist/test/unit/input.contract.test.d.ts +1 -0
- package/dist/test/unit/link.contract.test.d.ts +1 -0
- package/dist/test/unit/loading.contract.test.d.ts +1 -0
- package/dist/test/unit/math.contract.test.d.ts +1 -0
- package/dist/test/unit/message.component.test.d.ts +1 -0
- package/dist/test/unit/message.container.test.d.ts +1 -0
- package/dist/test/unit/modal.contract.test.d.ts +1 -0
- package/dist/test/unit/option.contract.test.d.ts +1 -0
- package/dist/test/unit/package-exports.source.test.d.ts +1 -0
- package/dist/test/unit/player-controls.test.d.ts +1 -0
- package/dist/test/unit/player-core.test.d.ts +1 -0
- package/dist/test/unit/player-event-handlers.test.d.ts +1 -0
- package/dist/test/unit/player-events.test.d.ts +1 -0
- package/dist/test/unit/player-fullscreen.test.d.ts +1 -0
- package/dist/test/unit/player-interactions.test.d.ts +1 -0
- package/dist/test/unit/player-levels.test.d.ts +1 -0
- package/dist/test/unit/player-media.test.d.ts +1 -0
- package/dist/test/unit/player-playback.test.d.ts +1 -0
- package/dist/test/unit/player.contract.test.d.ts +1 -0
- package/dist/test/unit/popover-accessibility.test.d.ts +1 -0
- package/dist/test/unit/popover.contract.test.d.ts +2 -0
- package/dist/test/unit/progress.contract.test.d.ts +1 -0
- package/dist/test/unit/radar.contract.test.d.ts +1 -0
- package/dist/test/unit/route.contract.test.d.ts +1 -0
- package/dist/test/unit/router.contract.test.d.ts +2 -0
- package/dist/test/unit/scratch.contract.test.d.ts +1 -0
- package/dist/test/unit/select-accessibility.test.d.ts +1 -0
- package/dist/test/unit/select-option.contract.test.d.ts +1 -0
- package/dist/test/unit/select.contract.test.d.ts +1 -0
- package/dist/test/unit/skeleton.contract.test.d.ts +1 -0
- package/dist/test/unit/ssr.test.d.ts +1 -0
- package/dist/test/unit/tab.contract.test.d.ts +2 -0
- package/dist/test/unit/theme.semantic-tokens.test.d.ts +1 -0
- package/dist/test/unit/theme.skin-tokens.test.d.ts +1 -0
- package/dist/test/unit/utils.dom.test.d.ts +1 -0
- package/dist/test/unit/utils.error.test.d.ts +1 -0
- package/dist/test/unit/utils.i18n.test.d.ts +1 -0
- package/dist/test/unit/utils.image.test.d.ts +1 -0
- package/dist/test/unit/utils.math.test.d.ts +1 -0
- package/dist/test/unit/utils.router.test.d.ts +1 -0
- package/dist/test/unit/utils.signal.test.d.ts +1 -0
- package/dist/test/unit/utils.ssr-stream.test.d.ts +1 -0
- package/dist/test/unit/utils.style.test.d.ts +1 -0
- package/dist/test/unit/utils.theme.test.d.ts +1 -0
- package/dist/test/unit/utils.tween.test.d.ts +1 -0
- package/dist/tsconfig.json +8 -8
- package/dist/typings.d.ts +163 -114
- package/dist/utils/builder/core.d.ts +70 -0
- package/dist/utils/builder/env.d.ts +1 -0
- package/dist/utils/builder/escape.d.ts +2 -0
- package/dist/utils/builder/events.d.ts +55 -0
- package/dist/utils/builder/factory.d.ts +18 -0
- package/dist/utils/builder/index.d.ts +9 -0
- package/dist/utils/builder/mocks.d.ts +62 -0
- package/dist/utils/builder/selectors.d.ts +4 -0
- package/dist/utils/builder/signal.d.ts +87 -0
- package/dist/utils/color.d.ts +52 -0
- package/dist/utils/component.d.ts +16 -0
- package/dist/utils/dom.d.ts +39 -0
- package/dist/utils/error.d.ts +6 -0
- package/dist/utils/i18n/index.d.ts +53 -0
- package/dist/utils/i18n.js +88 -0
- package/dist/utils/image.d.ts +39 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/math.d.ts +26 -0
- package/dist/utils/router/index.d.ts +128 -0
- package/dist/utils/router.js +197 -0
- package/dist/utils/ssg.d.ts +49 -0
- package/dist/utils/ssr-registry.d.ts +8 -0
- package/dist/utils/ssr-stream.d.ts +23 -0
- package/dist/utils/ssr.d.ts +17 -0
- package/dist/utils/style.d.ts +12 -0
- package/dist/utils/theme.d.ts +9 -0
- package/dist/utils/tween.d.ts +21 -0
- package/dist/utils/video.d.ts +40 -0
- package/dist/utils-D4pPF77E.js +689 -0
- package/dist/vite.config.d.ts +6 -0
- package/dist/vitest.config.d.ts +2 -0
- package/dist/vitest.config.ssr.d.ts +2 -0
- package/docs/COMPONENTS.md +324 -0
- package/docs/DESIGN.md +198 -0
- package/docs/style-tokens-public.md +880 -0
- package/package.json +137 -78
- package/typings.d.ts +163 -114
- package/dist/_commonjs-dynamic-modules-DLbDWi6a.js +0 -12
- package/dist/add-user-BN1JlY7e.js +0 -4
- package/dist/arrow-down-B_hCY3Wt.js +0 -662
- package/dist/book-nTEFXU2x.js +0 -4
- package/dist/check-circle-fill-B_pd8ZSs.js +0 -4
- package/dist/check-circle-szyAJiap.js +0 -4
- package/dist/close-CFnkhudp.js +0 -4
- package/dist/close-circle-CwmuN2C6.js +0 -4
- package/dist/close-circle-fill-jSqPPw9i.js +0 -4
- package/dist/colz-DJZvo_8B.js +0 -232
- package/dist/docx-CHkPTdGU.js +0 -3665
- package/dist/drop-4j4abxje.js +0 -36
- package/dist/eye-D_mEt17f.js +0 -4
- package/dist/eye-close-BVr3NJtg.js +0 -4
- package/dist/home-BUQ4USMk.js +0 -4
- package/dist/iconShadowless.js +0 -6
- package/dist/index-15M0olqa.js +0 -204
- package/dist/index-1v568_nq.js +0 -140
- package/dist/index-B897keW5.js +0 -279
- package/dist/index-BZR0HaP2.js +0 -40
- package/dist/index-B_GuEcTd.js +0 -9575
- package/dist/index-Bc2Bcl8D.js +0 -63701
- package/dist/index-C4Sv0T51.js +0 -495
- package/dist/index-C6RcMHoH.js +0 -187
- package/dist/index-C9z10IgG.js +0 -103
- package/dist/index-CFjEuvBW.js +0 -308
- package/dist/index-CGEx9VOA.js +0 -17106
- package/dist/index-CGYfjKUV.js +0 -72
- package/dist/index-CQTJoWhb.js +0 -19
- package/dist/index-CiWwvEMM.js +0 -511
- package/dist/index-CkM9ENTf.js +0 -496
- package/dist/index-CtVOgBDk.js +0 -659
- package/dist/index-D4qUro5V.js +0 -279
- package/dist/index-D4y9c1Dj.js +0 -310
- package/dist/index-DAxs7Dd2.js +0 -119
- package/dist/index-DC5EA657.js +0 -91
- package/dist/index-DJZmDHz-.js +0 -146
- package/dist/index-D_CA5VDZ.js +0 -158
- package/dist/index-WfFw4LJT.js +0 -490
- package/dist/index-mhFL9MJp.js +0 -320
- package/dist/info-circle-COnL5bTJ.js +0 -4
- package/dist/info-circle-fill-CFeVMdci.js +0 -4
- package/dist/inputShadowless.js +0 -6
- package/dist/jszip.min-Dhs3nUkD.js +0 -2346
- package/dist/katex-es-B5r5vt3m.js +0 -14628
- package/dist/loading-Dcc5RApI.js +0 -4
- package/dist/loading-scene-BMc2wqKm.js +0 -4
- package/dist/lock-Cr7BnmWN.js +0 -4
- package/dist/message-D36_Zo2l.js +0 -4
- package/dist/pdf-Cx0VWKFo.js +0 -118
- package/dist/power-off-lQRbiBak.js +0 -4
- package/dist/preview-CJbz9GjO.js +0 -4
- package/dist/preview.js +0 -7
- package/dist/selectShadowless.js +0 -564
- package/dist/setting-DemlgzVC.js +0 -4
- package/dist/shadowless.js +0 -8
- package/dist/sprite-CH2zLtZy.js +0 -141
- package/dist/style.css +0 -1
- package/dist/team-tl4NJXPC.js +0 -4
- package/dist/umd/index.umd.cjs +0 -60
- package/dist/umd/shadowless/shadowless.umd.cjs +0 -1
- package/dist/umd/shadowless/style.css +0 -1
- package/dist/umd/style.css +0 -1
- package/dist/unlock-CeU74z9n.js +0 -4
- package/dist/user-B-eVXwuk.js +0 -4
- package/dist/warning-circle-DDUgEDIv.js +0 -4
- package/dist/warning-circle-fill-lODUKz0i.js +0 -4
- package/readme.md +0 -195
package/dist/drop-4j4abxje.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const str2Xml = (xmlStr, format = "text/xml") => {
|
|
2
|
-
if (window.DOMParser) return new window.DOMParser().parseFromString(xmlStr, format).documentElement;
|
|
3
|
-
if (typeof window.ActiveXObject !== "undefined") {
|
|
4
|
-
const xmlDoc = new window.ActiveXObject("Microsoft.XMLDOM");
|
|
5
|
-
xmlDoc.async = "false";
|
|
6
|
-
xmlDoc.loadXML(xmlStr);
|
|
7
|
-
return xmlDoc;
|
|
8
|
-
}
|
|
9
|
-
return void 0;
|
|
10
|
-
};
|
|
11
|
-
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
12
|
-
const v = glob[path];
|
|
13
|
-
if (v) {
|
|
14
|
-
return typeof v === "function" ? v() : Promise.resolve(v);
|
|
15
|
-
}
|
|
16
|
-
return new Promise((_, reject) => {
|
|
17
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
18
|
-
reject.bind(
|
|
19
|
-
null,
|
|
20
|
-
new Error(
|
|
21
|
-
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
|
22
|
-
)
|
|
23
|
-
)
|
|
24
|
-
);
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const drop = { "success": true, "_identification": true, "data": '<svg>\n <filter id="liquid">\n <feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur"></feGaussianBlur>\n <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7" result="liquid"></feColorMatrix>\n </filter>\n </svg>\n' };
|
|
28
|
-
const drop$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29
|
-
__proto__: null,
|
|
30
|
-
default: drop
|
|
31
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
32
|
-
export {
|
|
33
|
-
__variableDynamicImportRuntimeHelper as _,
|
|
34
|
-
drop$1 as d,
|
|
35
|
-
str2Xml as s
|
|
36
|
-
};
|
package/dist/eye-D_mEt17f.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const eye = { "success": true, "_identification": true, "data": '<svg t="1665473580103" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7625" width="200" height="200">\n <path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3-7.7 16.2-7.7 35.2 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766z" p-id="7626"></path>\n <path d="M508 336c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176z m0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" p-id="7627"></path>\n</svg>' };
|
|
2
|
-
export {
|
|
3
|
-
eye as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const eyeClose = { "success": true, "_identification": true, "data": '<svg t="1665473540543" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7485" width="200" height="200">\n <path d="M942.3 486.4l-0.1-0.1-0.1-0.1c-36.4-76.7-80-138.7-130.7-186L760.7 351c43.7 40.2 81.5 93.7 114.1 160.9C791.5 684.2 673.4 766 512 766c-51.3 0-98.3-8.3-141.2-25.1l-54.7 54.7C374.6 823.8 439.8 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0.1-51.3zM878.3 154.2l-42.4-42.4c-3.1-3.1-8.2-3.1-11.3 0L707.8 228.5C649.4 200.2 584.2 186 512 186c-192.2 0-335.4 100.5-430.2 300.3v0.1c-7.7 16.2-7.7 35.2 0 51.5 36.4 76.7 80 138.7 130.7 186.1L111.8 824.5c-3.1 3.1-3.1 8.2 0 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0l712.8-712.8c3.1-3 3.1-8.1 0-11.2zM398.9 537.4c-1.9-8.2-2.9-16.7-2.9-25.4 0-61.9 50.1-112 112-112 8.7 0 17.3 1 25.4 2.9L398.9 537.4z m184.5-184.5C560.5 342.1 535 336 508 336c-97.2 0-176 78.8-176 176 0 27 6.1 52.5 16.9 75.4L263.3 673c-43.7-40.2-81.5-93.7-114.1-160.9C232.6 339.8 350.7 258 512 258c51.3 0 98.3 8.3 141.2 25.1l-69.8 69.8z" p-id="7486"></path>\n <path d="M508 624c-6.4 0-12.7-0.5-18.8-1.6l-51.1 51.1c21.4 9.3 45.1 14.4 69.9 14.4 97.2 0 176-78.8 176-176 0-24.8-5.1-48.5-14.4-69.9l-51.1 51.1c1 6.1 1.6 12.4 1.6 18.8C620 573.9 569.9 624 508 624z" p-id="7487"></path>\n</svg>' };
|
|
2
|
-
export {
|
|
3
|
-
eyeClose as default
|
|
4
|
-
};
|
package/dist/home-BUQ4USMk.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const home = { "success": true, "_identification": true, "data": '<svg t="1667486325771" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8988" width="200" height="200"><path d="M946.5 505L560.1 118.8l-25.9-25.9c-12.3-12.2-32.1-12.2-44.4 0L77.5 505c-12.3 12.3-18.9 28.6-18.8 46 0.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8 12.1-12.1 18.7-28.2 18.7-45.3 0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204z m217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z" p-id="8989"></path></svg>' };
|
|
2
|
-
export {
|
|
3
|
-
home as default
|
|
4
|
-
};
|
package/dist/iconShadowless.js
DELETED
package/dist/index-15M0olqa.js
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
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) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { p as perToNum } from "./arrow-down-B_hCY3Wt.js";
|
|
5
|
-
import { H as HTMLElementSSR, c as createCustomError } from "./index-DC5EA657.js";
|
|
6
|
-
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:active,:host:focus{outline:0;-webkit-tap-highlight-color:transparent}.ran-progress{position:var(--ran-progress-position, relative);cursor:var(--ran-progress-cursor, pointer);width:var(--ran-progress-width, 100%);height:var(--ran-progress-height, 100%)}.ran-progress:active,.ran-progress:focus{outline:0;-webkit-tap-highlight-color:transparent}.ran-progress-wrap{width:var(--ran-progress-wrap-width, 100%);height:var(--ran-progress-wrap-height, 8px);border-radius:var(--ran-progress-wrap-border-radius, 20px);background:var(--ran-progress-wrap-background, #5b5b5b);position:var(--ran-progress-wrap-position, relative);overflow:var(--ran-progress-wrap-overflow, hidden)}.ran-progress-wrap-value{position:var(--ran-progress-wrap-value-position, absolute);top:var(--ran-progress-wrap-value-top, 0);left:var(--ran-progress-wrap-value-left, 0);height:var(--ran-progress-wrap-value-height, 100%);width:var(--ran-progress-wrap-value-width, 100%);transform:var(--ran-progress-wrap-value-transform, scaleX(0));transform-origin:var(--ran-progress-wrap-value-transform-origin, 0 0);will-change:var(--ran-progress-wrap-value-will-change, transform);background:var(--ran-progress-wrap-value-background, linear-gradient(90deg, #0bc8bb 2.42%, #00d297 98.79%));border-radius:var(--ran-progress-wrap-value-border-radius, 20px)}.ran-progress-dot{position:var(--ran-progress-dot-position, absolute);top:var(--ran-progress-dot-top, -5px);left:var(--ran-progress-dot-left, -9px);border-radius:var(--ran-progress-dot-border-radius, 50%);width:var(--ran-progress-dot-width, 18px);height:var(--ran-progress-dot-height, 18px);background:var(--ran-progress-dot-background, linear-gradient(90deg, #0bc8bb 2.42%, #00d297 98.79%));cursor:var(--ran-progress-dot-cursor, pointer)}";
|
|
7
|
-
const attributes = ["percent", "type", "total", "dot"];
|
|
8
|
-
class Progress extends HTMLElementSSR() {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
__publicField(this, "_progress");
|
|
12
|
-
__publicField(this, "_progressWrap");
|
|
13
|
-
__publicField(this, "_progressWrapValue");
|
|
14
|
-
__publicField(this, "_progressDot");
|
|
15
|
-
__publicField(this, "moveProgress");
|
|
16
|
-
__publicField(this, "_shadowDom");
|
|
17
|
-
__publicField(this, "progressClick", (e) => {
|
|
18
|
-
const rect = this._progress.getBoundingClientRect();
|
|
19
|
-
const offsetX = e.clientX - rect.left;
|
|
20
|
-
const percentage = Math.min(1, Math.max(0, offsetX / this._progress.offsetWidth));
|
|
21
|
-
this.percent = `${percentage * Number(this.total)}`;
|
|
22
|
-
this._progressWrapValue.style.setProperty("transform", `scaleX(${percentage})`);
|
|
23
|
-
this._progressDot.style.setProperty("transform", `translateX(${percentage * this._progress.offsetWidth}px)`);
|
|
24
|
-
this.change();
|
|
25
|
-
});
|
|
26
|
-
__publicField(this, "progressDotMouseDown", () => {
|
|
27
|
-
this.moveProgress.mouseDown = true;
|
|
28
|
-
});
|
|
29
|
-
__publicField(this, "progressDotMouseMove", (e) => {
|
|
30
|
-
if (!this.moveProgress.mouseDown) return;
|
|
31
|
-
const rect = this._progress.getBoundingClientRect();
|
|
32
|
-
const offsetX = e.clientX - rect.left;
|
|
33
|
-
const percentage = Math.min(1, Math.max(0, offsetX / this._progress.offsetWidth));
|
|
34
|
-
this.percent = `${percentage * Number(this.total)}`;
|
|
35
|
-
this._progressWrapValue.style.setProperty("transform", `scaleX(${percentage})`);
|
|
36
|
-
this._progressDot.style.setProperty("transform", `translateX(${percentage * this._progress.offsetWidth}px)`);
|
|
37
|
-
this.change();
|
|
38
|
-
});
|
|
39
|
-
__publicField(this, "progressDotMouseUp", (e) => {
|
|
40
|
-
if (!this.moveProgress.mouseDown) return;
|
|
41
|
-
this.moveProgress.mouseDown = false;
|
|
42
|
-
});
|
|
43
|
-
__publicField(this, "change", () => {
|
|
44
|
-
this.dispatchEvent(
|
|
45
|
-
new CustomEvent("change", {
|
|
46
|
-
detail: {
|
|
47
|
-
value: this.percent,
|
|
48
|
-
percent: this.percent,
|
|
49
|
-
total: this.total
|
|
50
|
-
}
|
|
51
|
-
})
|
|
52
|
-
);
|
|
53
|
-
});
|
|
54
|
-
__publicField(this, "appendProgressDot", () => {
|
|
55
|
-
if (this.dot === "true" && !this._progress.contains(this._progressDot)) {
|
|
56
|
-
this._progress.appendChild(this._progressDot);
|
|
57
|
-
}
|
|
58
|
-
if (this.dot === "false" && this._progress.contains(this._progressDot)) {
|
|
59
|
-
this._progress.removeChild(this._progressDot);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
__publicField(this, "updateCurrentProgress", () => {
|
|
63
|
-
const percent = Number(this.percent) / Number(this.total);
|
|
64
|
-
this._progressWrapValue.style.setProperty("transform", `scaleX(${percent})`);
|
|
65
|
-
this._progressDot.style.setProperty("transform", `translateX(${percent * this._progress.offsetWidth}px)`);
|
|
66
|
-
});
|
|
67
|
-
__publicField(this, "dragEvent", () => {
|
|
68
|
-
if (this.type !== "drag") return;
|
|
69
|
-
this._progress.addEventListener("click", this.progressClick);
|
|
70
|
-
this._progressDot.addEventListener("mousedown", this.progressDotMouseDown);
|
|
71
|
-
document.addEventListener("mousemove", this.progressDotMouseMove);
|
|
72
|
-
document.addEventListener("mouseup", this.progressDotMouseUp);
|
|
73
|
-
});
|
|
74
|
-
__publicField(this, "resize", () => {
|
|
75
|
-
this.updateCurrentProgress();
|
|
76
|
-
});
|
|
77
|
-
this._progress = document.createElement("div");
|
|
78
|
-
this._progress.setAttribute("class", "ran-progress");
|
|
79
|
-
this._progress.setAttribute("role", "progressbar");
|
|
80
|
-
this._progressWrap = document.createElement("div");
|
|
81
|
-
this._progressWrap.setAttribute("class", "ran-progress-wrap");
|
|
82
|
-
this._progress.appendChild(this._progressWrap);
|
|
83
|
-
this._progressWrapValue = document.createElement("div");
|
|
84
|
-
this._progressWrapValue.setAttribute("class", "ran-progress-wrap-value");
|
|
85
|
-
this._progressWrap.appendChild(this._progressWrapValue);
|
|
86
|
-
this._progressDot = document.createElement("div");
|
|
87
|
-
this._progressDot.setAttribute("class", "ran-progress-dot");
|
|
88
|
-
this.moveProgress = {
|
|
89
|
-
mouseDown: false
|
|
90
|
-
};
|
|
91
|
-
this._progress.appendChild(this._progressDot);
|
|
92
|
-
const shadowRoot = this.attachShadow({ mode: "closed" });
|
|
93
|
-
const F7170EE498E0DD32CBDCB63FBA8F75CC = document.createElement("style");
|
|
94
|
-
F7170EE498E0DD32CBDCB63FBA8F75CC.textContent = f7170ee498e0dd32cbdcb63fba8f75cc;
|
|
95
|
-
shadowRoot.appendChild(F7170EE498E0DD32CBDCB63FBA8F75CC);
|
|
96
|
-
this._shadowDom = shadowRoot;
|
|
97
|
-
shadowRoot.appendChild(this._progress);
|
|
98
|
-
}
|
|
99
|
-
static get observedAttributes() {
|
|
100
|
-
return attributes;
|
|
101
|
-
}
|
|
102
|
-
get percent() {
|
|
103
|
-
const percent = this.getAttribute("percent") || "";
|
|
104
|
-
const num = perToNum(percent);
|
|
105
|
-
if (Number(num) > Number(this.total)) {
|
|
106
|
-
console.error("percent must be < total");
|
|
107
|
-
return this.total;
|
|
108
|
-
}
|
|
109
|
-
return `${perToNum(percent)}`;
|
|
110
|
-
}
|
|
111
|
-
set percent(value) {
|
|
112
|
-
this.setAttribute("percent", `${value || 0}`);
|
|
113
|
-
this.setAttribute("aria-valuenow", `${value || 0}`);
|
|
114
|
-
}
|
|
115
|
-
get total() {
|
|
116
|
-
const total = this.getAttribute("total");
|
|
117
|
-
if (!total) return "1";
|
|
118
|
-
return `${perToNum(total)}`;
|
|
119
|
-
}
|
|
120
|
-
set total(value) {
|
|
121
|
-
this.setAttribute("total", value || "");
|
|
122
|
-
}
|
|
123
|
-
get type() {
|
|
124
|
-
const result = ["primary", "drag"];
|
|
125
|
-
const type = this.getAttribute("type") || "";
|
|
126
|
-
if (result.includes(type)) {
|
|
127
|
-
return type;
|
|
128
|
-
} else {
|
|
129
|
-
return "primary";
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
set type(value) {
|
|
133
|
-
this.setAttribute("type", value || "primary");
|
|
134
|
-
}
|
|
135
|
-
get animation() {
|
|
136
|
-
const result = ["play", "pause"];
|
|
137
|
-
const animation = this.getAttribute("animation") || "";
|
|
138
|
-
if (result.includes(animation)) {
|
|
139
|
-
return animation;
|
|
140
|
-
} else {
|
|
141
|
-
return "pause";
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
set animation(value) {
|
|
145
|
-
this.setAttribute("animation", value || "pause");
|
|
146
|
-
}
|
|
147
|
-
get dot() {
|
|
148
|
-
const result = ["true", "false"];
|
|
149
|
-
const dot = this.getAttribute("dot") || "";
|
|
150
|
-
if (result.includes(dot)) {
|
|
151
|
-
return dot;
|
|
152
|
-
} else {
|
|
153
|
-
return "true";
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
set dot(value) {
|
|
157
|
-
this.setAttribute("dot", value || "true");
|
|
158
|
-
}
|
|
159
|
-
connectedCallback() {
|
|
160
|
-
const type = this.getAttribute("type");
|
|
161
|
-
if (!type) {
|
|
162
|
-
this.setAttribute("type", "primary");
|
|
163
|
-
}
|
|
164
|
-
this.dragEvent();
|
|
165
|
-
this.updateCurrentProgress();
|
|
166
|
-
window.addEventListener("resize", this.resize);
|
|
167
|
-
}
|
|
168
|
-
disconnectCallback() {
|
|
169
|
-
this._progress.removeEventListener("click", this.progressClick);
|
|
170
|
-
this._progressDot.removeEventListener("mousedown", this.progressDotMouseDown);
|
|
171
|
-
document.removeEventListener("mousemove", this.progressDotMouseMove);
|
|
172
|
-
document.removeEventListener("mouseup", this.progressDotMouseUp);
|
|
173
|
-
window.removeEventListener("resize", this.resize);
|
|
174
|
-
}
|
|
175
|
-
attributeChangedCallback(k, o, n) {
|
|
176
|
-
if (o !== n) {
|
|
177
|
-
if (k === "dot") {
|
|
178
|
-
this.appendProgressDot();
|
|
179
|
-
}
|
|
180
|
-
if (k === "percent") {
|
|
181
|
-
this.updateCurrentProgress();
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
function Custom() {
|
|
187
|
-
if (typeof document !== "undefined" && !customElements.get("r-progress")) {
|
|
188
|
-
Progress && customElements.define("r-progress", Progress);
|
|
189
|
-
return Progress;
|
|
190
|
-
} else {
|
|
191
|
-
return createCustomError("document is undefined or r-progress is exist");
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
const index = Custom();
|
|
195
|
-
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
196
|
-
__proto__: null,
|
|
197
|
-
Progress,
|
|
198
|
-
default: index
|
|
199
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
200
|
-
export {
|
|
201
|
-
Progress as P,
|
|
202
|
-
index as a,
|
|
203
|
-
index$1 as i
|
|
204
|
-
};
|
package/dist/index-1v568_nq.js
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
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) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { c as create, a as addClassToElement, r as removeClassToElement } from "./arrow-down-B_hCY3Wt.js";
|
|
5
|
-
import { H as HTMLElementSSR, f as falseList, c as createCustomError } from "./index-DC5EA657.js";
|
|
6
|
-
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-checkbox-host-position, relative);display:var(--ran-checkbox-host-display, block);margin:var(--ran-checkbox-host-margin, 0);padding:var(--ran-checkbox-host-padding, 0);box-sizing:var(--ran-checkbox-host-box-sizing, border-box);list-style:var(--ran-checkbox-host-list-style, none)}:host([disabled]){opacity:var(--ran-checkbox-disabled-opacity, .6)}:host([disabled]) .ran-checkbox-input{cursor:var(--ran-checkbox-disabled-cursor, not-allowed);pointer-events:var(--ran-checkbox-disabled-pointer-events, all)}:host([disabled]) .ran-checkbox-inner{background-color:var(--ran-checkbox-checked-background-color, #d9d9d9);border:1px solid #d9d9d9}:host([disabled]) .ran-checkbox-inner:after{cursor:not-allowed;pointer-events:none;opacity:var(--ran-checkbox-checked-after-opacity, 1)}:host([disabled]) .ran-checkbox-checked .ran-checkbox-inner{background-color:var(--ran-checkbox-checked-background-color, #d9d9d9)}:host([disabled]) .ran-checkbox-checked .ran-checkbox-inner:after{opacity:var(--ran-checkbox-checked-after-opacity, 0)}.ran-checkbox{position:var(--ran-checkbox-position, relative);display:var(--ran-checkbox-display, block);box-sizing:var(--ran-checkbox-box-sizing, border-box);margin:var(--ran-checkbox-margin, 0);width:var(--ran-checkbox-width, 16px);height:var(--ran-checkbox-height, 16px);padding:var(--ran-checkbox-padding, 0);color:var(--ran-checkbox-color, rgba(0, 0, 0, .88));font-size:var(--ran-checkbox-font-size, 14px);line-height:var(--ran-checkbox-line-height, 1);list-style:var(--ran-checkbox-list-style, none);font-family:var(--ran-checkbox-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");white-space:var(--ran-checkbox-white-space, nowrap);cursor:var(--ran-checkbox-cursor, pointer);border-radius:var(--ran-checkbox-border-radius, 4px)}.ran-checkbox-input{position:var(--ran-checkbox-input-position, absolute);inset:var(--ran-checkbox-input-inset, 0);z-index:var(--ran-checkbox-input-z-index, 1);cursor:var(--ran-checkbox-input-cursor, pointer);opacity:var(--ran-checkbox-input-opacity, 0);margin:var(--ran-checkbox-input-margin, 0)}.ran-checkbox-inner{box-sizing:var(--ran-checkbox-inner-box-sizing, border-box);display:var(--ran-checkbox-inner-display, block);width:var(--ran-checkbox-inner-width, 16px);height:var(--ran-checkbox-inner-height, 16px);direction:var(--ran-checkbox-inner-direction, ltr);background-color:var(--ran-checkbox-inner-background-color, #fff);border:var(--ran-checkbox-inner-border, 1px solid #d9d9d9);border-radius:var(--ran-checkbox-inner-border-radius, 4px);border-collapse:var(--ran-checkbox-inner-border-collapse, separate)}.ran-checkbox-inner:after{box-sizing:var(--ran-checkbox-inner-after-box-sizing, border-box);position:var(--ran-checkbox-inner-after-position, absolute);top:var(--ran-checkbox-inner-after-top, 50%);inset-inline-start:var(--ran-checkbox-inner-after-inset-inline-start, 25%);display:var(--ran-checkbox-inner-after-display, table);width:var(--ran-checkbox-inner-after-width, calc(16px / 14 * 5));height:var(--ran-checkbox-inner-after-height, calc(16px / 14 * 8));border:var(--ran-checkbox-inner-after-border, 2px solid #fff);border-top:var(--ran-checkbox-inner-after-border-top, 0);border-inline-start:var(--ran-checkbox-inner-after-border-inline-start, 0);opacity:var(--ran-checkbox-inner-after-opacity, 0);content:var(--ran-checkbox-inner-after-content, "");transition:var(--ran-checkbox-inner-after-transition, all .1s cubic-bezier(.71, -.46, .88, .6), opacity .1s);transform:var(--ran-checkbox-inner-after-transform, rotate(45deg) scale(1) translate(-50%, -50%))}.ran-checkbox-checked .ran-checkbox-inner{background-color:var(--ran-checkbox-checked-background-color, #1677ff);border:var(--ran-checkbox-checked-border, 1px solid #1677ff)}.ran-checkbox-checked .ran-checkbox-inner:after{opacity:var(--ran-checkbox-checked-after-opacity, 1)}';
|
|
7
|
-
class Checkbox extends HTMLElementSSR() {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
__publicField(this, "checkInput");
|
|
11
|
-
__publicField(this, "checkInner");
|
|
12
|
-
__publicField(this, "context");
|
|
13
|
-
__publicField(this, "container");
|
|
14
|
-
__publicField(this, "_shadowDom");
|
|
15
|
-
__publicField(this, "updateChecked", () => {
|
|
16
|
-
const { checked } = this.context;
|
|
17
|
-
if (checked) {
|
|
18
|
-
this.setAttribute("checked", "true");
|
|
19
|
-
this.setAttribute("value", "true");
|
|
20
|
-
addClassToElement(this.container, "ran-checkbox-checked");
|
|
21
|
-
} else {
|
|
22
|
-
this.setAttribute("checked", "false");
|
|
23
|
-
this.setAttribute("value", "false");
|
|
24
|
-
removeClassToElement(this.container, "ran-checkbox-checked");
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
__publicField(this, "update", () => {
|
|
28
|
-
this.updateChecked();
|
|
29
|
-
});
|
|
30
|
-
__publicField(this, "onChange", () => {
|
|
31
|
-
if (falseList.includes(this.disabled)) return;
|
|
32
|
-
if (this.hasAttribute("disabled")) return;
|
|
33
|
-
const { checked } = this.context;
|
|
34
|
-
this.context.checked = !checked;
|
|
35
|
-
this.dispatchEvent(
|
|
36
|
-
new CustomEvent("change", {
|
|
37
|
-
detail: {
|
|
38
|
-
checked: this.context.checked
|
|
39
|
-
}
|
|
40
|
-
})
|
|
41
|
-
);
|
|
42
|
-
this.update();
|
|
43
|
-
});
|
|
44
|
-
this.checkInput = document.createElement("input");
|
|
45
|
-
this.checkInput.setAttribute("class", "ran-checkbox-input");
|
|
46
|
-
this.checkInput.setAttribute("type", "checkbox");
|
|
47
|
-
this.checkInner = document.createElement("span");
|
|
48
|
-
this.checkInner.setAttribute("class", "ran-checkbox-inner");
|
|
49
|
-
this.container = create("div").setAttribute("class", "ran-checkbox").addChild([this.checkInput, this.checkInner]).element;
|
|
50
|
-
const shadowRoot = this.attachShadow({ mode: "closed" });
|
|
51
|
-
const F7170EE498E0DD32CBDCB63FBA8F75CC = document.createElement("style");
|
|
52
|
-
F7170EE498E0DD32CBDCB63FBA8F75CC.textContent = f7170ee498e0dd32cbdcb63fba8f75cc;
|
|
53
|
-
shadowRoot.appendChild(F7170EE498E0DD32CBDCB63FBA8F75CC);
|
|
54
|
-
this._shadowDom = shadowRoot;
|
|
55
|
-
shadowRoot.appendChild(this.container);
|
|
56
|
-
this.context = {
|
|
57
|
-
checked: false
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
static get observedAttributes() {
|
|
61
|
-
return ["disabled", "checked", "value"];
|
|
62
|
-
}
|
|
63
|
-
get disabled() {
|
|
64
|
-
return this.getAttribute("disabled") || "";
|
|
65
|
-
}
|
|
66
|
-
set disabled(value) {
|
|
67
|
-
this.setAttribute("disabled", value);
|
|
68
|
-
}
|
|
69
|
-
get value() {
|
|
70
|
-
const checked = this.getAttribute("value");
|
|
71
|
-
if (falseList.includes(checked)) {
|
|
72
|
-
this.context.checked = false;
|
|
73
|
-
}
|
|
74
|
-
return `${this.context.checked}`;
|
|
75
|
-
}
|
|
76
|
-
set value(value) {
|
|
77
|
-
if (falseList.includes(value)) {
|
|
78
|
-
this.setAttribute("value", "false");
|
|
79
|
-
this.context.checked = false;
|
|
80
|
-
} else {
|
|
81
|
-
this.setAttribute("value", "true");
|
|
82
|
-
this.context.checked = true;
|
|
83
|
-
}
|
|
84
|
-
this.updateChecked();
|
|
85
|
-
}
|
|
86
|
-
get checked() {
|
|
87
|
-
const checked = this.getAttribute("checked");
|
|
88
|
-
if (falseList.includes(checked)) {
|
|
89
|
-
this.context.checked = false;
|
|
90
|
-
}
|
|
91
|
-
return `${this.context.checked}`;
|
|
92
|
-
}
|
|
93
|
-
set checked(value) {
|
|
94
|
-
if (falseList.includes(value)) {
|
|
95
|
-
this.setAttribute("checked", "false");
|
|
96
|
-
this.context.checked = false;
|
|
97
|
-
} else {
|
|
98
|
-
this.setAttribute("checked", "true");
|
|
99
|
-
this.context.checked = true;
|
|
100
|
-
}
|
|
101
|
-
this.updateChecked();
|
|
102
|
-
}
|
|
103
|
-
connectedCallback() {
|
|
104
|
-
this.addEventListener("click", this.onChange);
|
|
105
|
-
}
|
|
106
|
-
disconnectCallback() {
|
|
107
|
-
this.removeEventListener("click", this.onChange);
|
|
108
|
-
}
|
|
109
|
-
attributeChangedCallback(name, oldValue, newValue) {
|
|
110
|
-
if (oldValue !== newValue) {
|
|
111
|
-
if (name === "checked") {
|
|
112
|
-
this.checked = newValue;
|
|
113
|
-
this.value = newValue;
|
|
114
|
-
}
|
|
115
|
-
if (name === "value") {
|
|
116
|
-
this.checked = newValue;
|
|
117
|
-
this.value = newValue;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
function Custom() {
|
|
123
|
-
if (typeof document !== "undefined" && !customElements.get("r-checkbox")) {
|
|
124
|
-
customElements.define("r-checkbox", Checkbox);
|
|
125
|
-
return Checkbox;
|
|
126
|
-
} else {
|
|
127
|
-
return createCustomError("document is undefined or r-checkbox is exist");
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
const index = Custom();
|
|
131
|
-
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
132
|
-
__proto__: null,
|
|
133
|
-
Checkbox,
|
|
134
|
-
default: index
|
|
135
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
136
|
-
export {
|
|
137
|
-
Checkbox as C,
|
|
138
|
-
index as a,
|
|
139
|
-
index$1 as i
|
|
140
|
-
};
|