ranui 0.1.10-alpha.7 → 0.2.0-alpha.0
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 +369 -0
- 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-DukaD6uL.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-Ch67dWa_.js +302 -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 +88 -0
- package/dist/components/dropdown/index.d.ts +32 -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 +25 -0
- package/dist/components/input/index.d.ts +229 -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 +39 -0
- package/dist/components/player/index.d.ts +277 -0
- package/dist/components/popover/content/index.d.ts +12 -0
- package/dist/components/popover/index.d.ts +95 -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 +135 -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-C5362qTy.js +82 -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-DmoEnao5.js +165 -0
- package/dist/icon.js +4 -4
- package/dist/{index-KS2nvVcO.js → image-6GayFDqX.js} +58 -71
- package/dist/image.js +3 -2
- package/dist/index.cjs +35 -0
- package/dist/index.d.ts +277 -116
- package/dist/index.iife.js +306 -0
- package/dist/index.js +78 -38
- package/dist/input-DoraIb3x.js +198 -0
- package/dist/input.js +2 -3
- package/dist/katex-es-Bpesphgp.js +23682 -0
- package/dist/katex-es-Cnq5Pk8K.cjs +261 -0
- package/dist/link-BW-gvrpN.js +77 -0
- package/dist/link.js +6 -0
- package/dist/loading-Mko22ncl.js +206 -0
- package/dist/loading.js +4 -6
- package/dist/math-B5PpSnFR.js +52 -0
- package/dist/math.js +2 -4
- package/dist/message-CQENvkoi.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-CvfmwWUa.js +13536 -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-BCvHwLZb.js +213 -0
- package/dist/popover.js +3 -5
- package/dist/progress-BWkNf2J5.js +123 -0
- package/dist/progress.js +3 -5
- package/dist/radar-CWsawt2g.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-BmhCUTLb.js +433 -0
- package/dist/select.js +3 -8
- package/dist/signal-XHfNsQNW.js +57 -0
- package/dist/skeleton-DPv9nFhL.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-C9swK-hm.js +185 -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 +9 -9
- package/dist/typings.d.ts +163 -116
- 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 +326 -0
- package/docs/DESIGN.md +182 -0
- package/docs/style-tokens-public.md +880 -0
- package/package.json +138 -74
- package/typings.d.ts +163 -116
- package/dist/_commonjs-dynamic-modules-DLbDWi6a.js +0 -12
- package/dist/add-user-BN1JlY7e.js +0 -4
- package/dist/arrow-down-Beig7FXI.js +0 -652
- 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-BZR0HaP2.js +0 -40
- package/dist/index-Bl6-5Hp8.js +0 -63701
- package/dist/index-C0Xh8vJ3.js +0 -146
- package/dist/index-C4Sv0T51.js +0 -495
- package/dist/index-CGEx9VOA.js +0 -17106
- package/dist/index-CILRcFIV.js +0 -100
- package/dist/index-CQTJoWhb.js +0 -19
- package/dist/index-CWNtaUwu.js +0 -308
- package/dist/index-CjSKJE6S.js +0 -158
- package/dist/index-Ck9TOxFh.js +0 -279
- package/dist/index-CryFK9u4.js +0 -320
- package/dist/index-D4twPONc.js +0 -187
- package/dist/index-D83djTVa.js +0 -659
- package/dist/index-DAxs7Dd2.js +0 -119
- package/dist/index-DBecKjmY.js +0 -279
- package/dist/index-DC5EA657.js +0 -91
- package/dist/index-DHTzB_6b.js +0 -9575
- package/dist/index-DL-1C2RQ.js +0 -496
- package/dist/index-DN-kAx-A.js +0 -72
- package/dist/index-TlwIh-o2.js +0 -306
- package/dist/index-WfFw4LJT.js +0 -490
- package/dist/index-lLO-8KJ1.js +0 -204
- package/dist/index-oD-_YELB.js +0 -511
- package/dist/index-qvcQTV5_.js +0 -105
- 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 -176
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,123 @@
|
|
|
1
|
+
export { setTheme, getTheme, setThemeToken, clearThemeToken, setThemeTokens, initTheme } from '@/utils/theme';
|
|
2
|
+
export type { RanThemeName, ThemeTarget, ThemeTokenMap } from '@/utils/theme';
|
|
3
|
+
export { Button } from '@/components/button';
|
|
4
|
+
export { Icon, registerIcon, registerIcons } from '@/components/icon';
|
|
5
|
+
export { ImageElement } from '@/components/image';
|
|
6
|
+
export { Input } from '@/components/input';
|
|
7
|
+
export { CustomMessage } from '@/components/message';
|
|
8
|
+
export { Skeleton } from '@/components/skeleton';
|
|
9
|
+
export { TabPane } from '@/components/tabpane';
|
|
10
|
+
export { Tabs } from '@/components/tab';
|
|
11
|
+
export { RadarChart } from '@/components/radar';
|
|
12
|
+
export { default as RanPlayer } from '@/components/player';
|
|
13
|
+
export { default as RanModal } from '@/components/modal';
|
|
14
|
+
export { Select } from '@/components/select';
|
|
15
|
+
export { Progress } from '@/components/progress';
|
|
16
|
+
export { default as RanCheckbox } from '@/components/checkbox';
|
|
17
|
+
export { default as RanColorPicker } from '@/components/colorpicker';
|
|
18
|
+
export { ICON_NAME_AMP, Loading } from '@/components/loading';
|
|
19
|
+
export { Math } from '@/components/math';
|
|
20
|
+
export { PLACEMENT_TYPE, Popover } from '@/components/popover';
|
|
21
|
+
export type { PlacementDirection } from '@/components/popover';
|
|
22
|
+
export { ARROW_TYPE, Dropdown } from '@/components/dropdown';
|
|
23
|
+
export { Form } from '@/components/form';
|
|
24
|
+
export { Card } from '@/components/card';
|
|
25
|
+
export { Section } from '@/components/section';
|
|
26
|
+
export { Router } from '@/components/router';
|
|
27
|
+
export { Route } from '@/components/route';
|
|
28
|
+
export { Link } from '@/components/link';
|
|
29
|
+
export { RouterCore, createRouter, useRouter, enableMpaViewTransitions, setSSGPath, clearSSGPath, getSSGPath, } from '@/utils/router';
|
|
30
|
+
export type { RouterConfig, RouteConfig, RouteLocation, NavigationGuard, RouteChangeHandler, ViewTransitionMode, PageSwapEvent, PageRevealEvent, } from '@/utils/router';
|
|
31
|
+
export { renderStaticPage, generateStaticPages } from '@/utils/ssg';
|
|
32
|
+
export type { SSGPage } from '@/utils/ssg';
|
|
33
|
+
export { I18nCore, createI18n, useI18n } from '@/utils/i18n';
|
|
34
|
+
export type { I18nConfig, MessageDict, LocaleMessages, TranslateParams, LocaleChangeHandler } from '@/utils/i18n';
|
|
35
|
+
import '@/components/button';
|
|
36
|
+
import '@/components/icon';
|
|
37
|
+
import '@/components/image';
|
|
38
|
+
import '@/components/input';
|
|
39
|
+
import '@/components/message';
|
|
40
|
+
import '@/components/skeleton';
|
|
41
|
+
import '@/components/tabpane';
|
|
42
|
+
import '@/components/tab';
|
|
43
|
+
import '@/components/radar';
|
|
44
|
+
import '@/components/player';
|
|
45
|
+
import '@/components/modal';
|
|
46
|
+
import '@/components/select';
|
|
47
|
+
import '@/components/progress';
|
|
48
|
+
import '@/components/checkbox';
|
|
49
|
+
import '@/components/colorpicker';
|
|
50
|
+
import '@/components/loading';
|
|
51
|
+
import '@/components/math';
|
|
52
|
+
import '@/components/popover';
|
|
53
|
+
import '@/components/dropdown';
|
|
54
|
+
import '@/components/form';
|
|
55
|
+
import '@/components/scratch';
|
|
56
|
+
import '@/components/card';
|
|
57
|
+
import '@/components/section';
|
|
58
|
+
import '@/components/router';
|
|
59
|
+
import '@/components/route';
|
|
60
|
+
import '@/components/link';
|
|
61
|
+
import type { Button as TButton } from '@/components/button';
|
|
62
|
+
import type { Icon as TIcon } from '@/components/icon';
|
|
63
|
+
import type { ImageElement as TImage } from '@/components/image';
|
|
64
|
+
import type { Input as TInput } from '@/components/input';
|
|
65
|
+
import type { CustomMessage as TMessage } from '@/components/message';
|
|
66
|
+
import type { Skeleton as TSkeleton } from '@/components/skeleton';
|
|
67
|
+
import type { TabPane as TTabPane } from '@/components/tabpane';
|
|
68
|
+
import type { Tabs as TTabs } from '@/components/tab';
|
|
69
|
+
import type { RadarChart as TRadar } from '@/components/radar';
|
|
70
|
+
import type { RanPlayer as TPlayer } from '@/components/player';
|
|
71
|
+
import type TModal from '@/components/modal';
|
|
72
|
+
import type { Select as TSelect } from '@/components/select';
|
|
73
|
+
import type { Progress as TProgress } from '@/components/progress';
|
|
74
|
+
import type TCheckbox from '@/components/checkbox';
|
|
75
|
+
import type TColorPicker from '@/components/colorpicker';
|
|
76
|
+
import type { Loading as TLoading } from '@/components/loading';
|
|
77
|
+
import type { Math as TMath } from '@/components/math';
|
|
78
|
+
import type { Popover as TPopover } from '@/components/popover';
|
|
79
|
+
import type { Dropdown as TDropdown } from '@/components/dropdown';
|
|
80
|
+
import type { Form as TForm } from '@/components/form';
|
|
81
|
+
import type { Card as TCard } from '@/components/card';
|
|
82
|
+
import type { Section as TSection } from '@/components/section';
|
|
83
|
+
import type { Router as TRouter } from '@/components/router';
|
|
84
|
+
import type { Route as TRoute } from '@/components/route';
|
|
85
|
+
import type { Link as TLink } from '@/components/link';
|
|
86
|
+
declare global {
|
|
87
|
+
interface HTMLElementTagNameMap {
|
|
88
|
+
'r-button': TButton;
|
|
89
|
+
'r-icon': TIcon;
|
|
90
|
+
'r-img': TImage;
|
|
91
|
+
'r-input': TInput;
|
|
92
|
+
'r-message': TMessage;
|
|
93
|
+
'r-skeleton': TSkeleton;
|
|
94
|
+
'r-tab': TTabPane;
|
|
95
|
+
'r-tabs': TTabs;
|
|
96
|
+
'r-radar': TRadar;
|
|
97
|
+
'r-player': TPlayer;
|
|
98
|
+
'r-modal': TModal;
|
|
99
|
+
'r-select': TSelect;
|
|
100
|
+
'r-progress': TProgress;
|
|
101
|
+
'r-checkbox': TCheckbox;
|
|
102
|
+
'r-colorpicker': TColorPicker;
|
|
103
|
+
'r-loading': TLoading;
|
|
104
|
+
'r-math': TMath;
|
|
105
|
+
'r-popover': TPopover;
|
|
106
|
+
'r-dropdown': TDropdown;
|
|
107
|
+
'r-form': TForm;
|
|
108
|
+
'r-card': TCard;
|
|
109
|
+
'r-section': TSection;
|
|
110
|
+
'r-router': TRouter;
|
|
111
|
+
'r-route': TRoute;
|
|
112
|
+
'r-link': TLink;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
/// <reference types="vite/client" />
|
|
1
116
|
declare module '*.less';
|
|
2
117
|
declare module '*.less?inline';
|
|
3
118
|
declare module '*.ts';
|
|
4
119
|
declare module '*.svg';
|
|
5
|
-
declare module '
|
|
6
|
-
declare module 'exceljs/*';
|
|
120
|
+
declare module '*.svg?raw';
|
|
7
121
|
declare module '@/assets/*';
|
|
8
122
|
declare module '@/public/*';
|
|
9
123
|
declare module '@/components/*';
|
|
@@ -14,8 +128,12 @@ declare namespace Ran {
|
|
|
14
128
|
content: string;
|
|
15
129
|
duration?: number;
|
|
16
130
|
close?: () => void;
|
|
131
|
+
top?: number | string;
|
|
132
|
+
zIndex?: number | string;
|
|
133
|
+
getContainer?: () => HTMLElement | null;
|
|
17
134
|
}
|
|
18
|
-
|
|
135
|
+
|
|
136
|
+
type Hint = (options: Prompt | string | undefined | null) => void;
|
|
19
137
|
|
|
20
138
|
interface Message {
|
|
21
139
|
info: Hint;
|
|
@@ -91,123 +209,166 @@ interface MathJax {
|
|
|
91
209
|
tex2chtmlPromise: (x: string, y: object) => Promise<Element>;
|
|
92
210
|
}
|
|
93
211
|
|
|
94
|
-
declare
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
pdfjsLib: {
|
|
102
|
-
GlobalWorkerOptions: {
|
|
103
|
-
workerSrc: string;
|
|
212
|
+
declare global {
|
|
213
|
+
interface Window {
|
|
214
|
+
ranui: Partial<Ranui>;
|
|
215
|
+
message: Partial<Ran.Message>;
|
|
216
|
+
MathJax: MathJax;
|
|
217
|
+
katex: {
|
|
218
|
+
render: (x: string, y: HTMLElement, z: object) => void;
|
|
104
219
|
};
|
|
105
|
-
|
|
106
|
-
|
|
220
|
+
pdfjsLib: {
|
|
221
|
+
GlobalWorkerOptions: {
|
|
222
|
+
workerSrc: string;
|
|
223
|
+
};
|
|
224
|
+
getDocument: (x: string | ArrayBuffer) => {
|
|
225
|
+
promise: Promise<PDFDocumentProxy>;
|
|
226
|
+
};
|
|
107
227
|
};
|
|
108
|
-
}
|
|
109
|
-
Hls: HLS;
|
|
228
|
+
}
|
|
110
229
|
}
|
|
111
230
|
|
|
112
|
-
|
|
113
|
-
|
|
231
|
+
enum ICON_NAME_AMP {
|
|
232
|
+
DOUBLE_BOUNCE = 'double-bounce',
|
|
233
|
+
ROTATE = 'rotate',
|
|
234
|
+
STRETCH = 'stretch',
|
|
235
|
+
CUBE = 'cube',
|
|
236
|
+
DOT = 'dot',
|
|
237
|
+
TRIPLE_BOUNCE = 'triple-bounce',
|
|
238
|
+
SCALE_OUT = 'scale-out',
|
|
239
|
+
CIRCLE = 'circle',
|
|
240
|
+
CIRCLE_LINE = 'circle-line',
|
|
241
|
+
SQUARE = 'square',
|
|
242
|
+
PULSE = 'pulse',
|
|
243
|
+
SOLAR = 'solar',
|
|
244
|
+
CUBE_FOLD = 'cube-fold',
|
|
245
|
+
CIRCLE_FOLD = 'circle-fold',
|
|
246
|
+
CUBE_GRID = 'cube-grid',
|
|
247
|
+
CIRCLE_TURN = 'circle-turn',
|
|
248
|
+
CIRCLE_ROTATE = 'circle-rotate',
|
|
249
|
+
CIRCLE_SPIN = 'circle-spin',
|
|
250
|
+
DOT_BAR = 'dot-bar',
|
|
251
|
+
DOT_CIRCLE = 'dot-circle',
|
|
252
|
+
LINE = 'line',
|
|
253
|
+
DOT_PULSE = 'dot-pulse',
|
|
254
|
+
LINE_SCALE = 'line-scale',
|
|
255
|
+
TEXT = 'text',
|
|
256
|
+
CUBE_DIM = 'cube-dim',
|
|
257
|
+
DOT_LINE = 'dot-line',
|
|
258
|
+
ARC = 'arc',
|
|
259
|
+
DROP = 'drop',
|
|
260
|
+
PACMAN = 'pacman',
|
|
261
|
+
}
|
|
262
|
+
interface BaseIntrinsicElements {
|
|
263
|
+
'r-loading': any & {
|
|
264
|
+
name: ICON_NAME_AMP;
|
|
265
|
+
};
|
|
266
|
+
'r-math': any & {
|
|
267
|
+
latex: string;
|
|
268
|
+
};
|
|
269
|
+
'r-button': any & {
|
|
270
|
+
sheet: string;
|
|
271
|
+
disabled: boolean | string;
|
|
272
|
+
iconSize: string;
|
|
273
|
+
icon: string;
|
|
274
|
+
effect: boolean | string;
|
|
275
|
+
};
|
|
276
|
+
'r-checkbox': any & {
|
|
277
|
+
disabled: boolean | string;
|
|
278
|
+
checked: boolean | string;
|
|
279
|
+
};
|
|
280
|
+
'r-img': any & {
|
|
281
|
+
fallback: string;
|
|
282
|
+
src: string;
|
|
283
|
+
};
|
|
284
|
+
'r-input': any & {
|
|
285
|
+
value: string;
|
|
286
|
+
placeholder: string;
|
|
287
|
+
label: string;
|
|
288
|
+
status: string;
|
|
289
|
+
name: string;
|
|
290
|
+
icon: string;
|
|
291
|
+
prefix: string;
|
|
292
|
+
suffix: string;
|
|
293
|
+
type: string;
|
|
294
|
+
required: boolean | string;
|
|
295
|
+
disabled: boolean | string;
|
|
296
|
+
min: number | string;
|
|
297
|
+
max: number | string;
|
|
298
|
+
step: number | string;
|
|
299
|
+
};
|
|
300
|
+
'r-player': any & {
|
|
301
|
+
src: string;
|
|
302
|
+
debug: boolean | string;
|
|
303
|
+
volume: number | string;
|
|
304
|
+
currentTime: number | string;
|
|
305
|
+
playbackRate: number | string;
|
|
306
|
+
};
|
|
307
|
+
'r-popover': any & {
|
|
308
|
+
placement: string;
|
|
309
|
+
trigger: string;
|
|
310
|
+
getPopupContainerId: string;
|
|
311
|
+
arrow: boolean | string;
|
|
312
|
+
closePopover: () => void;
|
|
313
|
+
};
|
|
314
|
+
'r-content': any;
|
|
315
|
+
'r-preview': any & {
|
|
316
|
+
src: string;
|
|
317
|
+
closeable: boolean | string;
|
|
318
|
+
};
|
|
319
|
+
'r-progress': any & {
|
|
320
|
+
percent: number | string;
|
|
321
|
+
total: number | string;
|
|
322
|
+
type: string;
|
|
323
|
+
animation: string;
|
|
324
|
+
dot: boolean | string;
|
|
325
|
+
};
|
|
326
|
+
'r-radar': any & {
|
|
327
|
+
abilitys: string;
|
|
328
|
+
colorPolygon?: string;
|
|
329
|
+
colorLine?: string;
|
|
330
|
+
fillColor?: string;
|
|
331
|
+
strokeColor?: string;
|
|
332
|
+
};
|
|
333
|
+
'r-select': any & {
|
|
334
|
+
value: string;
|
|
335
|
+
defaultValue?: string;
|
|
336
|
+
showSearch?: boolean | string;
|
|
337
|
+
type?: string;
|
|
338
|
+
placement?: string;
|
|
339
|
+
sheet?: string;
|
|
340
|
+
getPopupContainerId?: string;
|
|
341
|
+
dropdownclass?: string;
|
|
342
|
+
trigger?: string;
|
|
343
|
+
disabled?: boolean | string;
|
|
344
|
+
};
|
|
345
|
+
'r-skeleton': any;
|
|
346
|
+
'r-tab': any & {
|
|
347
|
+
label: string;
|
|
348
|
+
icon: string;
|
|
349
|
+
iconSize: string;
|
|
350
|
+
key: string;
|
|
351
|
+
disabled: boolean | string;
|
|
352
|
+
effect: boolean | string;
|
|
353
|
+
};
|
|
354
|
+
'r-tabs': any & {
|
|
355
|
+
align: string;
|
|
356
|
+
type: string;
|
|
357
|
+
active: string;
|
|
358
|
+
effect: string;
|
|
359
|
+
};
|
|
360
|
+
'r-icon': any & {
|
|
361
|
+
name?: string;
|
|
362
|
+
size?: string;
|
|
363
|
+
color?: string;
|
|
364
|
+
};
|
|
365
|
+
}
|
|
114
366
|
namespace JSX {
|
|
115
|
-
interface IntrinsicElements {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
};
|
|
122
|
-
'r-button': any & {
|
|
123
|
-
sheet: string;
|
|
124
|
-
disabled: boolean | string;
|
|
125
|
-
iconSize: string;
|
|
126
|
-
icon: string;
|
|
127
|
-
effect: boolean | string;
|
|
128
|
-
};
|
|
129
|
-
'r-checkbox': any & {
|
|
130
|
-
disabled: boolean | string;
|
|
131
|
-
checked: boolean | string;
|
|
132
|
-
};
|
|
133
|
-
'r-img': any & {
|
|
134
|
-
fallback: string;
|
|
135
|
-
src: string;
|
|
136
|
-
};
|
|
137
|
-
'r-input': any & {
|
|
138
|
-
value: string;
|
|
139
|
-
placeholder: string;
|
|
140
|
-
label: string;
|
|
141
|
-
status: string;
|
|
142
|
-
name: string;
|
|
143
|
-
icon: string;
|
|
144
|
-
prefix: string;
|
|
145
|
-
suffix: string;
|
|
146
|
-
type: string;
|
|
147
|
-
required: boolean | string;
|
|
148
|
-
disabled: boolean | string;
|
|
149
|
-
min: number | string;
|
|
150
|
-
max: number | string;
|
|
151
|
-
step: number | string;
|
|
152
|
-
};
|
|
153
|
-
'r-player': any & {
|
|
154
|
-
src: string;
|
|
155
|
-
debug: boolean | string;
|
|
156
|
-
volume: number | string;
|
|
157
|
-
currentTime: number | string;
|
|
158
|
-
playbackRate: number | string;
|
|
159
|
-
};
|
|
160
|
-
'r-popover': any & {
|
|
161
|
-
placement: string;
|
|
162
|
-
trigger: string;
|
|
163
|
-
getPopupContainerId: string;
|
|
164
|
-
arrow: boolean | string;
|
|
165
|
-
};
|
|
166
|
-
'r-preview': any & {
|
|
167
|
-
src: string;
|
|
168
|
-
closeable: boolean | string;
|
|
169
|
-
};
|
|
170
|
-
'r-progress': any & {
|
|
171
|
-
percent: number | string;
|
|
172
|
-
total: number | string;
|
|
173
|
-
type: string;
|
|
174
|
-
animation: string;
|
|
175
|
-
dot: boolean | string;
|
|
176
|
-
};
|
|
177
|
-
'r-radar': any & {
|
|
178
|
-
abilitys: string;
|
|
179
|
-
colorPolygon?: string;
|
|
180
|
-
colorLine?: string;
|
|
181
|
-
fillColor?: string;
|
|
182
|
-
strokeColor?: string;
|
|
183
|
-
};
|
|
184
|
-
'r-select': any & {
|
|
185
|
-
value: string;
|
|
186
|
-
defaultValue?: string;
|
|
187
|
-
showSearch?: boolean | string;
|
|
188
|
-
type?: string;
|
|
189
|
-
placement?: string;
|
|
190
|
-
sheet?: string;
|
|
191
|
-
getPopupContainerId?: string;
|
|
192
|
-
dropdownclass?: string;
|
|
193
|
-
trigger?: string;
|
|
194
|
-
trigger?: string;
|
|
195
|
-
disabled?: boolean | string;
|
|
196
|
-
};
|
|
197
|
-
'r-skeleton': any;
|
|
198
|
-
'r-tab': any & {
|
|
199
|
-
label: string;
|
|
200
|
-
icon: string;
|
|
201
|
-
iconSize: string;
|
|
202
|
-
key: string;
|
|
203
|
-
disabled: boolean | string;
|
|
204
|
-
effect: boolean | string;
|
|
205
|
-
};
|
|
206
|
-
'r-tabs': any & {
|
|
207
|
-
align: string;
|
|
208
|
-
type: string;
|
|
209
|
-
active: string;
|
|
210
|
-
effect: string;
|
|
211
|
-
};
|
|
367
|
+
interface IntrinsicElements extends BaseIntrinsicElements {}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
namespace React {
|
|
371
|
+
namespace JSX {
|
|
372
|
+
interface IntrinsicElements extends BaseIntrinsicElements {}
|
|
212
373
|
}
|
|
213
374
|
}
|