ranui 0.1.9 → 0.1.10-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/README.zh-CN.md +190 -0
  2. package/dist/_commonjs-dynamic-modules-DLbDWi6a.js +12 -0
  3. package/dist/arrow-down-B_hCY3Wt.js +662 -0
  4. package/dist/button.js +7 -0
  5. package/dist/checkbox.js +7 -0
  6. package/dist/colorpicker.js +11 -0
  7. package/dist/{colz-746223ab.js → colz-DJZvo_8B.js} +4 -13
  8. package/dist/docx-CHkPTdGU.js +3665 -0
  9. package/dist/drop-4j4abxje.js +36 -0
  10. package/dist/icon.js +6 -0
  11. package/dist/iconShadowless.js +6 -0
  12. package/dist/image.js +4 -0
  13. package/dist/{index-4443363f.js → index-15M0olqa.js} +40 -68
  14. package/dist/index-1v568_nq.js +140 -0
  15. package/dist/index-B897keW5.js +279 -0
  16. package/dist/{index-e03d23e7.js → index-BZR0HaP2.js} +2 -5
  17. package/dist/{index-e2e5d725.js → index-B_GuEcTd.js} +1280 -2146
  18. package/dist/index-Bc2Bcl8D.js +63701 -0
  19. package/dist/index-C4Sv0T51.js +495 -0
  20. package/dist/{index-2d16a084.js → index-C6RcMHoH.js} +12 -22
  21. package/dist/index-C9z10IgG.js +103 -0
  22. package/dist/{index-3cf72afd.js → index-CFjEuvBW.js} +23 -45
  23. package/dist/{index-7b8840f9.js → index-CGEx9VOA.js} +1086 -2670
  24. package/dist/index-CGYfjKUV.js +72 -0
  25. package/dist/index-CVtBLEpV.js +712 -0
  26. package/dist/index-CiWwvEMM.js +511 -0
  27. package/dist/index-CtVOgBDk.js +659 -0
  28. package/dist/index-D4qUro5V.js +279 -0
  29. package/dist/index-D4y9c1Dj.js +310 -0
  30. package/dist/{index-b7790662.js → index-DAxs7Dd2.js} +6 -13
  31. package/dist/index-DC5EA657.js +91 -0
  32. package/dist/index-DJZmDHz-.js +146 -0
  33. package/dist/{index-0d5b9435.js → index-D_CA5VDZ.js} +11 -15
  34. package/dist/{index-01b17e26.js → index-KS2nvVcO.js} +2 -5
  35. package/dist/{index-1048a998.js → index-WfFw4LJT.js} +105 -62
  36. package/dist/{index-458debf7.js → index-mhFL9MJp.js} +15 -49
  37. package/dist/index.d.ts +211 -14
  38. package/dist/index.js +24 -24
  39. package/dist/info-circle-fill-CFeVMdci.js +4 -0
  40. package/dist/input.js +6 -0
  41. package/dist/inputShadowless.js +6 -0
  42. package/dist/jszip.min-Dhs3nUkD.js +2346 -0
  43. package/dist/katex-es-B5r5vt3m.js +14628 -0
  44. package/dist/loading-scene-BMc2wqKm.js +4 -0
  45. package/dist/loading.js +8 -0
  46. package/dist/math.js +7 -0
  47. package/dist/message.js +6 -0
  48. package/dist/modal.js +4 -0
  49. package/dist/{pdf-bdb7818a.js → pdf-Cx0VWKFo.js} +13 -8
  50. package/dist/player.js +8 -0
  51. package/dist/popover.js +8 -0
  52. package/dist/preview.js +7 -0
  53. package/dist/progress.js +7 -0
  54. package/dist/radar.js +6 -0
  55. package/dist/select.js +10 -0
  56. package/dist/{index-1b73beee.js → selectShadowless.js} +161 -165
  57. package/dist/shadowless.js +8 -0
  58. package/dist/skeleton.js +4 -0
  59. package/dist/sprite-CH2zLtZy.js +141 -0
  60. package/dist/style.css +1 -1
  61. package/dist/tab.js +6 -0
  62. package/dist/tabpane.js +4 -0
  63. package/dist/tsconfig.json +31 -0
  64. package/dist/typings.d.ts +211 -0
  65. package/dist/umd/index.umd.cjs +21 -32
  66. package/dist/umd/shadowless/shadowless.umd.cjs +1 -0
  67. package/dist/umd/shadowless/style.css +1 -0
  68. package/dist/umd/style.css +1 -1
  69. package/package.json +113 -69
  70. package/readme.md +38 -56
  71. package/typings.d.ts +211 -0
  72. package/dist/build/config.d.ts +0 -3
  73. package/dist/build/config.es.d.ts +0 -2
  74. package/dist/build/config.umd.d.ts +0 -2
  75. package/dist/components/button/index.d.ts +0 -35
  76. package/dist/components/button/index.js +0 -8
  77. package/dist/components/form/index.d.ts +0 -2
  78. package/dist/components/icon/index.d.ts +0 -2
  79. package/dist/components/icon/index.js +0 -6
  80. package/dist/components/image/index.d.ts +0 -2
  81. package/dist/components/image/index.js +0 -4
  82. package/dist/components/input/index.d.ts +0 -185
  83. package/dist/components/input/index.js +0 -6
  84. package/dist/components/message/index.d.ts +0 -14
  85. package/dist/components/message/index.js +0 -4
  86. package/dist/components/modal/index.d.ts +0 -2
  87. package/dist/components/modal/index.js +0 -4
  88. package/dist/components/option/index.d.ts +0 -2
  89. package/dist/components/option/index.js +0 -95
  90. package/dist/components/player/index.d.ts +0 -213
  91. package/dist/components/player/index.js +0 -12
  92. package/dist/components/preview/colz.d.ts +0 -72
  93. package/dist/components/preview/docx.d.ts +0 -8
  94. package/dist/components/preview/excel/excel.d.ts +0 -2
  95. package/dist/components/preview/excel/index.d.ts +0 -1
  96. package/dist/components/preview/excel/media.d.ts +0 -37
  97. package/dist/components/preview/index.d.ts +0 -6
  98. package/dist/components/preview/index.js +0 -8
  99. package/dist/components/preview/pdf.d.ts +0 -1
  100. package/dist/components/preview/pptx/index.d.ts +0 -16
  101. package/dist/components/preview/pptx/process_pptx.d.ts +0 -23
  102. package/dist/components/preview/pptx/t_xml.d.ts +0 -1
  103. package/dist/components/preview/pptx/worker.d.ts +0 -1
  104. package/dist/components/progress/index.d.ts +0 -36
  105. package/dist/components/progress/index.js +0 -8
  106. package/dist/components/radar/index.d.ts +0 -2
  107. package/dist/components/radar/index.js +0 -7
  108. package/dist/components/scratch/index.d.ts +0 -19
  109. package/dist/components/select/index.d.ts +0 -105
  110. package/dist/components/select/index.js +0 -11
  111. package/dist/components/skeleton/index.d.ts +0 -2
  112. package/dist/components/skeleton/index.js +0 -4
  113. package/dist/components/tab/index.d.ts +0 -408
  114. package/dist/components/tab/index.js +0 -7
  115. package/dist/components/tabpane/index.d.ts +0 -352
  116. package/dist/components/tabpane/index.js +0 -4
  117. package/dist/docx-c5d02d8c.js +0 -21
  118. package/dist/index-57492b9b.js +0 -48
  119. package/dist/index-7216d6b0.js +0 -175
  120. package/dist/index-73ce455b.js +0 -264
  121. package/dist/index-7913ec46.js +0 -239
  122. package/dist/index-c14450a9.js +0 -662
  123. package/dist/info-circle-fill-90ec9aa9.js +0 -14
  124. package/dist/playwright.config.d.ts +0 -9
  125. package/dist/plugins/auto-import-file.d.ts +0 -0
  126. package/dist/plugins/load-style.d.ts +0 -6
  127. package/dist/plugins/load-svg.d.ts +0 -9
  128. package/dist/tests/button.spec.d.ts +0 -1
  129. package/dist/umd/build/config.d.ts +0 -3
  130. package/dist/umd/build/config.es.d.ts +0 -2
  131. package/dist/umd/build/config.umd.d.ts +0 -2
  132. package/dist/umd/components/button/index.d.ts +0 -35
  133. package/dist/umd/components/form/index.d.ts +0 -2
  134. package/dist/umd/components/icon/index.d.ts +0 -2
  135. package/dist/umd/components/image/index.d.ts +0 -2
  136. package/dist/umd/components/input/index.d.ts +0 -185
  137. package/dist/umd/components/message/index.d.ts +0 -14
  138. package/dist/umd/components/modal/index.d.ts +0 -2
  139. package/dist/umd/components/option/index.d.ts +0 -2
  140. package/dist/umd/components/player/index.d.ts +0 -213
  141. package/dist/umd/components/preview/colz.d.ts +0 -72
  142. package/dist/umd/components/preview/docx.d.ts +0 -8
  143. package/dist/umd/components/preview/excel/excel.d.ts +0 -2
  144. package/dist/umd/components/preview/excel/index.d.ts +0 -1
  145. package/dist/umd/components/preview/excel/media.d.ts +0 -37
  146. package/dist/umd/components/preview/index.d.ts +0 -6
  147. package/dist/umd/components/preview/pdf.d.ts +0 -1
  148. package/dist/umd/components/preview/pptx/index.d.ts +0 -16
  149. package/dist/umd/components/preview/pptx/process_pptx.d.ts +0 -23
  150. package/dist/umd/components/preview/pptx/t_xml.d.ts +0 -1
  151. package/dist/umd/components/preview/pptx/worker.d.ts +0 -1
  152. package/dist/umd/components/progress/index.d.ts +0 -36
  153. package/dist/umd/components/radar/index.d.ts +0 -2
  154. package/dist/umd/components/scratch/index.d.ts +0 -19
  155. package/dist/umd/components/select/index.d.ts +0 -105
  156. package/dist/umd/components/skeleton/index.d.ts +0 -2
  157. package/dist/umd/components/tab/index.d.ts +0 -408
  158. package/dist/umd/components/tabpane/index.d.ts +0 -352
  159. package/dist/umd/index.d.ts +0 -14
  160. package/dist/umd/playwright.config.d.ts +0 -9
  161. package/dist/umd/plugins/auto-import-file.d.ts +0 -0
  162. package/dist/umd/plugins/load-style.d.ts +0 -6
  163. package/dist/umd/plugins/load-svg.d.ts +0 -9
  164. package/dist/umd/tests/button.spec.d.ts +0 -1
  165. package/dist/umd/utils/image.d.ts +0 -32
  166. package/dist/umd/utils/index.d.ts +0 -64
  167. package/dist/umd/utils/math.d.ts +0 -26
  168. package/dist/umd/utils/tween.d.ts +0 -21
  169. package/dist/umd/vite.config.d.ts +0 -6
  170. package/dist/utils/image.d.ts +0 -32
  171. package/dist/utils/index.d.ts +0 -64
  172. package/dist/utils/math.d.ts +0 -26
  173. package/dist/utils/tween.d.ts +0 -21
  174. package/dist/vendor-f71e6f68.js +0 -92126
  175. package/dist/vite.config.d.ts +0 -6
  176. /package/dist/{add-user-b2bed3e7.js → add-user-BN1JlY7e.js} +0 -0
  177. /package/dist/{book-b11a68eb.js → book-nTEFXU2x.js} +0 -0
  178. /package/dist/{check-circle-fill-dc284144.js → check-circle-fill-B_pd8ZSs.js} +0 -0
  179. /package/dist/{check-circle-74bd09c3.js → check-circle-szyAJiap.js} +0 -0
  180. /package/dist/{close-20925345.js → close-CFnkhudp.js} +0 -0
  181. /package/dist/{close-circle-720c18be.js → close-circle-CwmuN2C6.js} +0 -0
  182. /package/dist/{close-circle-fill-238a66b1.js → close-circle-fill-jSqPPw9i.js} +0 -0
  183. /package/dist/{eye-5e742329.js → eye-D_mEt17f.js} +0 -0
  184. /package/dist/{eye-close-3874f1ae.js → eye-close-BVr3NJtg.js} +0 -0
  185. /package/dist/{home-c4a05e8b.js → home-BUQ4USMk.js} +0 -0
  186. /package/dist/{index-8e1e2573.js → index-CQTJoWhb.js} +0 -0
  187. /package/dist/{info-circle-5826decc.js → info-circle-COnL5bTJ.js} +0 -0
  188. /package/dist/{loading-09ca52df.js → loading-Dcc5RApI.js} +0 -0
  189. /package/dist/{lock-1d2487c9.js → lock-Cr7BnmWN.js} +0 -0
  190. /package/dist/{message-b2bfdea7.js → message-D36_Zo2l.js} +0 -0
  191. /package/dist/{power-off-6ade5a91.js → power-off-lQRbiBak.js} +0 -0
  192. /package/dist/{preview-b291aea8.js → preview-CJbz9GjO.js} +0 -0
  193. /package/dist/{setting-1e5ccb6d.js → setting-DemlgzVC.js} +0 -0
  194. /package/dist/{team-ca6a12e1.js → team-tl4NJXPC.js} +0 -0
  195. /package/dist/{unlock-f56086fd.js → unlock-CeU74z9n.js} +0 -0
  196. /package/dist/{user-5c01e665.js → user-B-eVXwuk.js} +0 -0
  197. /package/dist/{warning-circle-035e025c.js → warning-circle-DDUgEDIv.js} +0 -0
  198. /package/dist/{warning-circle-fill-d17c37c9.js → warning-circle-fill-lODUKz0i.js} +0 -0
@@ -1,37 +0,0 @@
1
- interface Tl {
2
- nativeCol: number;
3
- nativeColOff: number;
4
- nativeRow: number;
5
- nativeRowOff: number;
6
- }
7
- interface Range {
8
- tl: Tl;
9
- br: Tl;
10
- }
11
- export interface Media {
12
- [x: string]: any;
13
- imageId: number;
14
- range: Range;
15
- type: string;
16
- buffer: ArrayBuffer | string;
17
- }
18
- export interface Sheet {
19
- name: string;
20
- _media: Array<Media>;
21
- _columns: Array<{
22
- width: number;
23
- height: number;
24
- }>;
25
- _rows: Array<{
26
- width: number;
27
- height: number;
28
- }>;
29
- }
30
- export declare function renderImage(ctx: CanvasRenderingContext2D, medias: Partial<Media>, sheet: Sheet, offset: {
31
- scroll: {
32
- x: number;
33
- y: number;
34
- };
35
- }): void;
36
- export declare function clearCache(): void;
37
- export {};
@@ -1,6 +0,0 @@
1
- export interface BaseReturn {
2
- success: boolean;
3
- message?: string;
4
- }
5
- declare const _default: Promise<void>;
6
- export default _default;
@@ -1,8 +0,0 @@
1
- import { a } from "../../index-73ce455b.js";
2
- import "../../index-7913ec46.js";
3
- import "../../index-7216d6b0.js";
4
- import "../../index-0d5b9435.js";
5
- import "../../vendor-f71e6f68.js";
6
- export {
7
- a as default
8
- };
@@ -1 +0,0 @@
1
- export declare const renderPdf: (file: File, dom?: HTMLElement) => Promise<void>;
@@ -1,16 +0,0 @@
1
- export interface Msg<T = string> {
2
- type: string;
3
- data: T extends 'slide' | 'pptx-thumb' | 'globalCSS' ? string : any;
4
- }
5
- interface Options {
6
- pptx: ArrayBuffer | string;
7
- resultElement: HTMLElement;
8
- thumbElement?: HTMLElement;
9
- }
10
- /**
11
- * @param {ArrayBuffer} pptx
12
- * @param {Element|String} resultElement
13
- * @param {Element|String} [thumbElement]
14
- */
15
- export declare const renderPptx: (options: Options) => Promise<any> | undefined;
16
- export {};
@@ -1,23 +0,0 @@
1
- /// <reference types="node" />
2
- import type { Msg } from '../../preview/pptx';
3
- interface InputByType {
4
- base64: string;
5
- string: string;
6
- text: string;
7
- binarystring: string;
8
- array: number[];
9
- uint8array: Uint8Array;
10
- arraybuffer: ArrayBuffer;
11
- blob: Blob;
12
- stream: NodeJS.ReadableStream;
13
- }
14
- type InputFileFormat = InputByType[keyof InputByType] | Promise<InputByType[keyof InputByType]>;
15
- export default function processPptx(setOnMessage: {
16
- (func: (x: Msg<string>) => void): void;
17
- (func: any): void;
18
- (x: (e: {
19
- type: string;
20
- data: InputFileFormat;
21
- }) => Promise<void>): void;
22
- }, postMessage: (x: Msg) => void): void;
23
- export {};
@@ -1 +0,0 @@
1
- export default function t_xml(S: string): Record<string, any>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,36 +0,0 @@
1
- export declare class Progress extends HTMLElement {
2
- _progress: HTMLDivElement;
3
- _progressWrap: HTMLDivElement;
4
- _progressWrapValue: HTMLDivElement;
5
- _progressDot: HTMLDivElement;
6
- moveProgress: {
7
- mouseDown: boolean;
8
- };
9
- constructor();
10
- static get observedAttributes(): string[];
11
- get percent(): number;
12
- set percent(value: number);
13
- get total(): number;
14
- set total(value: string);
15
- get type(): string;
16
- set type(value: string);
17
- get animation(): string;
18
- set animation(value: string);
19
- get dot(): string;
20
- set dot(value: string);
21
- progressClick: (e: MouseEvent) => void;
22
- progressDotMouseDown: () => void;
23
- progressDotMouseMove: (e: MouseEvent) => void;
24
- progressDotMouseUp: (e: MouseEvent) => void;
25
- change: () => void;
26
- appendProgressDot: () => void;
27
- updateCurrentProgress: () => void;
28
- dragEvent: () => void;
29
- createProgress: () => void;
30
- private resize;
31
- connectedCallback(): void;
32
- disconnectCallback(): void;
33
- attributeChangedCallback(k: string, o: string, n: string): void;
34
- }
35
- declare const _default: import('../../utils/index').CustomErrorType | undefined;
36
- export default _default;
@@ -1,8 +0,0 @@
1
- import "../../index-7913ec46.js";
2
- import "../../index-57492b9b.js";
3
- import { P, a } from "../../index-4443363f.js";
4
- import "../../vendor-f71e6f68.js";
5
- export {
6
- P as Progress,
7
- a as default
8
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import('../../utils/index').CustomErrorType;
2
- export default _default;
@@ -1,7 +0,0 @@
1
- import { a } from "../../index-458debf7.js";
2
- import "../../index-7913ec46.js";
3
- import "../../index-57492b9b.js";
4
- import "../../vendor-f71e6f68.js";
5
- export {
6
- a as default
7
- };
@@ -1,19 +0,0 @@
1
- declare class ScratchTicket extends HTMLElement {
2
- scratchTicketContainer: HTMLDivElement;
3
- scratchTicket: HTMLCanvasElement;
4
- state: {
5
- touchStart: boolean;
6
- scratchArea: number;
7
- };
8
- scratchAward: HTMLDivElement;
9
- static get observedAttributes(): string[];
10
- constructor();
11
- touchStartScratch: (e: TouchEvent) => void;
12
- touchMoveScratch: (e: TouchEvent) => void;
13
- touchEndScratch: () => void;
14
- drawScratchTicket: () => void;
15
- connectedCallback(): void;
16
- disconnectCallback(): void;
17
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
18
- }
19
- export default ScratchTicket;
@@ -1,105 +0,0 @@
1
- /// <reference types="node" />
2
- import type { Input } from '../input';
3
- interface Option {
4
- label: string | number;
5
- value: string | number;
6
- }
7
- export declare class Select extends HTMLElement {
8
- removeTimeId?: NodeJS.Timeout;
9
- _slot: HTMLSlotElement;
10
- _shadowDom: ShadowRoot;
11
- _select: HTMLDivElement;
12
- _selection: HTMLDivElement;
13
- _search: Input;
14
- _icon: HTMLElement;
15
- _selectDropdown?: HTMLDivElement;
16
- _selectionDropdown?: HTMLDivElement;
17
- _selectDropDownInTimeId?: NodeJS.Timeout;
18
- _selectDropDownOutTimeId?: NodeJS.Timeout;
19
- _optionList: Option[];
20
- _optionLabelMapValue: Map<string, string>;
21
- _optionValueMapLabel: Map<string, string>;
22
- _activeOption?: HTMLElement;
23
- _text: HTMLSpanElement;
24
- _selector: HTMLDivElement;
25
- onSearch: any;
26
- static get observedAttributes(): string[];
27
- constructor();
28
- get value(): string;
29
- set value(value: string);
30
- get defaultValue(): string;
31
- set defaultValue(value: string);
32
- get showSearch(): string;
33
- set showSearch(value: string);
34
- get type(): string;
35
- set type(value: string);
36
- get placement(): string;
37
- set placement(value: string);
38
- get sheet(): string;
39
- set sheet(value: string);
40
- get getPopupContainerId(): string;
41
- set getPopupContainerId(value: string);
42
- get dropdownclass(): string;
43
- set dropdownclass(value: string);
44
- get action(): string;
45
- set action(value: string);
46
- get disabled(): boolean;
47
- set disabled(value: boolean | string | undefined | null);
48
- handlerExternalCss(): void;
49
- /**
50
- * @description: 移除 select dropdown
51
- * @return {*}
52
- */
53
- setSelectDropdownDisplayNone: () => void;
54
- /**
55
- * @description: 添加 select dropdown
56
- * @return {*}
57
- */
58
- setSelectDropdownDisplayBlock: () => void;
59
- placementPosition: () => void;
60
- /**
61
- * @description: 设置下拉框
62
- * @return {*}
63
- */
64
- selectMouseDown: () => void;
65
- removeDropDownTimeId: () => void;
66
- /**
67
- * @description: 焦点移除的情况,需要移除select 下拉框
68
- * @return {*}
69
- */
70
- selectBlur: () => void;
71
- /**
72
- * @description: 选中一个选项的情况
73
- * @param {MouseEvent} e
74
- * @return {*}
75
- */
76
- clickOption: (e: MouseEvent) => void;
77
- /**
78
- * @description: 初始化创建选项下拉框
79
- * @return {*}
80
- */
81
- createOption: () => void;
82
- /**
83
- * @description: 移除选项下拉框
84
- * @return {*}
85
- */
86
- removeSelectDropdown: () => void;
87
- /**
88
- * @description: 当select中有option元素的时候,给dropdown添加元素
89
- * @return {*}
90
- */
91
- addOptionToSlot: () => void;
92
- createSelectDropdownContent: (options?: Option[]) => void;
93
- setDefaultValue: () => void;
94
- changeSearch: (e: Event) => void;
95
- setShowSearch: () => void;
96
- removeShowSearch: () => void;
97
- listenSlotChange: () => void;
98
- removeListenSlotChange: () => void;
99
- listenActionEvent: () => void;
100
- connectedCallback(): void;
101
- disconnectCallback(): void;
102
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
103
- }
104
- declare const _default: import('../../utils/index').CustomErrorType;
105
- export default _default;
@@ -1,11 +0,0 @@
1
- import { S, a } from "../../index-1b73beee.js";
2
- import "../../index-7913ec46.js";
3
- import "../../index-57492b9b.js";
4
- import "../option/index.js";
5
- import "../../index-7216d6b0.js";
6
- import "../../index-1048a998.js";
7
- import "../../vendor-f71e6f68.js";
8
- export {
9
- S as Select,
10
- a as default
11
- };
@@ -1,2 +0,0 @@
1
- declare const _default: void;
2
- export default _default;
@@ -1,4 +0,0 @@
1
- import { a } from "../../index-e03d23e7.js";
2
- export {
3
- a as default
4
- };