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,352 +0,0 @@
1
- interface ExtendParentNode {
2
- updateAttribute: (key: string, attribute: string, value?: string | null) => void;
3
- }
4
- declare const _default: {
5
- new (): {
6
- _div: HTMLElement;
7
- parent: (ParentNode & ExtendParentNode) | null | undefined;
8
- label: string;
9
- icon: string | null;
10
- iconSize: string | null;
11
- key: string | null;
12
- disabled: string | null;
13
- effect: string | null;
14
- onClick(e: Event): void;
15
- /**
16
- * @description: 在页面元素都加载完毕后,设置 tab 上的图标
17
- */
18
- initAttribute: () => void;
19
- connectedCallback(): void;
20
- disconnectCallback(): void;
21
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
22
- accessKey: string;
23
- readonly accessKeyLabel: string;
24
- autocapitalize: string;
25
- dir: string;
26
- draggable: boolean;
27
- hidden: boolean;
28
- inert: boolean;
29
- innerText: string;
30
- lang: string;
31
- readonly offsetHeight: number;
32
- readonly offsetLeft: number;
33
- readonly offsetParent: Element | null;
34
- readonly offsetTop: number;
35
- readonly offsetWidth: number;
36
- outerText: string;
37
- popover: string | null;
38
- spellcheck: boolean;
39
- title: string;
40
- translate: boolean;
41
- attachInternals(): ElementInternals;
42
- click(): void;
43
- hidePopover(): void;
44
- showPopover(): void;
45
- togglePopover(force?: boolean | undefined): void;
46
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
47
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
48
- removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
49
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
50
- mozRequestFullScreen: (options?: FullscreenOptions | undefined) => Promise<void>;
51
- msRequestFullscreen: (options?: FullscreenOptions | undefined) => Promise<void>;
52
- oRequestFullscreen: (options?: FullscreenOptions | undefined) => Promise<void>;
53
- webkitRequestFullscreen: (options?: FullscreenOptions | undefined) => Promise<void>;
54
- webkitEnterFullscreen: (options?: FullscreenOptions | undefined) => Promise<void>;
55
- readonly attributes: NamedNodeMap;
56
- readonly classList: DOMTokenList;
57
- className: string;
58
- readonly clientHeight: number;
59
- readonly clientLeft: number;
60
- readonly clientTop: number;
61
- readonly clientWidth: number;
62
- id: string;
63
- readonly localName: string;
64
- readonly namespaceURI: string | null;
65
- onfullscreenchange: ((this: Element, ev: Event) => any) | null;
66
- onfullscreenerror: ((this: Element, ev: Event) => any) | null;
67
- outerHTML: string;
68
- readonly ownerDocument: Document;
69
- readonly part: DOMTokenList;
70
- readonly prefix: string | null;
71
- readonly scrollHeight: number;
72
- scrollLeft: number;
73
- scrollTop: number;
74
- readonly scrollWidth: number;
75
- readonly shadowRoot: ShadowRoot | null;
76
- slot: string;
77
- readonly tagName: string;
78
- attachShadow(init: ShadowRootInit): ShadowRoot;
79
- checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
80
- closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
81
- closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
82
- closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
83
- closest<E extends Element = Element>(selectors: string): E | null;
84
- computedStyleMap(): StylePropertyMapReadOnly;
85
- getAttribute(qualifiedName: string): string | null;
86
- getAttributeNS(namespace: string | null, localName: string): string | null;
87
- getAttributeNames(): string[];
88
- getAttributeNode(qualifiedName: string): Attr | null;
89
- getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
90
- getBoundingClientRect(): DOMRect;
91
- getClientRects(): DOMRectList;
92
- getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
93
- getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
94
- getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
95
- getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
96
- getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
97
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
98
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
99
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
100
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
101
- getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
102
- hasAttribute(qualifiedName: string): boolean;
103
- hasAttributeNS(namespace: string | null, localName: string): boolean;
104
- hasAttributes(): boolean;
105
- hasPointerCapture(pointerId: number): boolean;
106
- insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
107
- insertAdjacentHTML(position: InsertPosition, text: string): void;
108
- insertAdjacentText(where: InsertPosition, data: string): void;
109
- matches(selectors: string): boolean;
110
- releasePointerCapture(pointerId: number): void;
111
- removeAttribute(qualifiedName: string): void;
112
- removeAttributeNS(namespace: string | null, localName: string): void;
113
- removeAttributeNode(attr: Attr): Attr;
114
- requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
115
- requestPointerLock(): void;
116
- scroll(options?: ScrollToOptions | undefined): void;
117
- scroll(x: number, y: number): void;
118
- scrollBy(options?: ScrollToOptions | undefined): void;
119
- scrollBy(x: number, y: number): void;
120
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
121
- scrollTo(options?: ScrollToOptions | undefined): void;
122
- scrollTo(x: number, y: number): void;
123
- setAttribute(qualifiedName: string, value: string): void;
124
- setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
125
- setAttributeNode(attr: Attr): Attr | null;
126
- setAttributeNodeNS(attr: Attr): Attr | null;
127
- setPointerCapture(pointerId: number): void;
128
- toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
129
- webkitMatchesSelector(selectors: string): boolean;
130
- readonly baseURI: string;
131
- readonly childNodes: NodeListOf<ChildNode>;
132
- readonly firstChild: ChildNode | null;
133
- readonly isConnected: boolean;
134
- readonly lastChild: ChildNode | null;
135
- readonly nextSibling: ChildNode | null;
136
- readonly nodeName: string;
137
- readonly nodeType: number;
138
- nodeValue: string | null;
139
- readonly parentElement: HTMLElement | null;
140
- readonly parentNode: ParentNode | null;
141
- readonly previousSibling: ChildNode | null;
142
- textContent: string | null;
143
- appendChild<T extends Node>(node: T): T;
144
- cloneNode(deep?: boolean | undefined): Node;
145
- compareDocumentPosition(other: Node): number;
146
- contains(other: Node | null): boolean;
147
- getRootNode(options?: GetRootNodeOptions | undefined): Node;
148
- hasChildNodes(): boolean;
149
- insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
150
- isDefaultNamespace(namespace: string | null): boolean;
151
- isEqualNode(otherNode: Node | null): boolean;
152
- isSameNode(otherNode: Node | null): boolean;
153
- lookupNamespaceURI(prefix: string | null): string | null;
154
- lookupPrefix(namespace: string | null): string | null;
155
- normalize(): void;
156
- removeChild<T_2 extends Node>(child: T_2): T_2;
157
- replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
158
- readonly ELEMENT_NODE: 1;
159
- readonly ATTRIBUTE_NODE: 2;
160
- readonly TEXT_NODE: 3;
161
- readonly CDATA_SECTION_NODE: 4;
162
- readonly ENTITY_REFERENCE_NODE: 5;
163
- readonly ENTITY_NODE: 6;
164
- readonly PROCESSING_INSTRUCTION_NODE: 7;
165
- readonly COMMENT_NODE: 8;
166
- readonly DOCUMENT_NODE: 9;
167
- readonly DOCUMENT_TYPE_NODE: 10;
168
- readonly DOCUMENT_FRAGMENT_NODE: 11;
169
- readonly NOTATION_NODE: 12;
170
- readonly DOCUMENT_POSITION_DISCONNECTED: 1;
171
- readonly DOCUMENT_POSITION_PRECEDING: 2;
172
- readonly DOCUMENT_POSITION_FOLLOWING: 4;
173
- readonly DOCUMENT_POSITION_CONTAINS: 8;
174
- readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
175
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
176
- dispatchEvent(event: Event): boolean;
177
- ariaAtomic: string | null;
178
- ariaAutoComplete: string | null;
179
- ariaBusy: string | null;
180
- ariaChecked: string | null;
181
- ariaColCount: string | null;
182
- ariaColIndex: string | null;
183
- ariaColSpan: string | null;
184
- ariaCurrent: string | null;
185
- ariaDisabled: string | null;
186
- ariaExpanded: string | null;
187
- ariaHasPopup: string | null;
188
- ariaHidden: string | null;
189
- ariaInvalid: string | null;
190
- ariaKeyShortcuts: string | null;
191
- ariaLabel: string | null;
192
- ariaLevel: string | null;
193
- ariaLive: string | null;
194
- ariaModal: string | null;
195
- ariaMultiLine: string | null;
196
- ariaMultiSelectable: string | null;
197
- ariaOrientation: string | null;
198
- ariaPlaceholder: string | null;
199
- ariaPosInSet: string | null;
200
- ariaPressed: string | null;
201
- ariaReadOnly: string | null;
202
- ariaRequired: string | null;
203
- ariaRoleDescription: string | null;
204
- ariaRowCount: string | null;
205
- ariaRowIndex: string | null;
206
- ariaRowSpan: string | null;
207
- ariaSelected: string | null;
208
- ariaSetSize: string | null;
209
- ariaSort: string | null;
210
- ariaValueMax: string | null;
211
- ariaValueMin: string | null;
212
- ariaValueNow: string | null;
213
- ariaValueText: string | null;
214
- role: string | null;
215
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
216
- getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
217
- after(...nodes: (string | Node)[]): void;
218
- before(...nodes: (string | Node)[]): void;
219
- remove(): void;
220
- replaceWith(...nodes: (string | Node)[]): void;
221
- innerHTML: string;
222
- readonly nextElementSibling: Element | null;
223
- readonly previousElementSibling: Element | null;
224
- readonly childElementCount: number;
225
- readonly children: HTMLCollection;
226
- readonly firstElementChild: Element | null;
227
- readonly lastElementChild: Element | null;
228
- append(...nodes: (string | Node)[]): void;
229
- prepend(...nodes: (string | Node)[]): void;
230
- querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
231
- querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
232
- querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
233
- querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
234
- querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
235
- querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
236
- querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
237
- querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
238
- querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
239
- querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
240
- replaceChildren(...nodes: (string | Node)[]): void;
241
- readonly assignedSlot: HTMLSlotElement | null;
242
- readonly attributeStyleMap: StylePropertyMap;
243
- readonly style: CSSStyleDeclaration;
244
- contentEditable: string;
245
- enterKeyHint: string;
246
- inputMode: string;
247
- readonly isContentEditable: boolean;
248
- onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
249
- onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
250
- onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
251
- onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
252
- onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
253
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
254
- onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
255
- onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
256
- oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
257
- oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
258
- oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
259
- onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
260
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
261
- onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
262
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
263
- oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
264
- oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
265
- oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
266
- ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
267
- ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
268
- ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
269
- ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
270
- ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
271
- ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
272
- ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
273
- ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
274
- ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
275
- onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
276
- onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
277
- onerror: OnErrorEventHandler;
278
- onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
279
- onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
280
- ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
281
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
282
- oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
283
- onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
284
- onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
285
- onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
286
- onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
287
- onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
288
- onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
289
- onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
290
- onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
291
- onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
292
- onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
293
- onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
294
- onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
295
- onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
296
- onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
297
- onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
298
- onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
299
- onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
300
- onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
301
- onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
302
- onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
303
- onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
304
- onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
305
- onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
306
- onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
307
- onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
308
- onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
309
- onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
310
- onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
311
- onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
312
- onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
313
- onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
314
- onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
315
- onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
316
- onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
317
- onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
318
- onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
319
- onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
320
- onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
321
- onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
322
- onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
323
- onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
324
- onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
325
- onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
326
- ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
327
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
328
- ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
329
- ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
330
- ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
331
- ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
332
- ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
333
- ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
334
- ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
335
- ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
336
- onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
337
- onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
338
- onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
339
- onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
340
- onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
341
- onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
342
- onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
343
- autofocus: boolean;
344
- readonly dataset: DOMStringMap;
345
- nonce?: string | undefined;
346
- tabIndex: number;
347
- blur(): void;
348
- focus(options?: FocusOptions | undefined): void;
349
- };
350
- readonly observedAttributes: string[];
351
- } | undefined;
352
- export default _default;
@@ -1,4 +0,0 @@
1
- import { a } from "../../index-b7790662.js";
2
- export {
3
- a as default
4
- };
@@ -1,21 +0,0 @@
1
- import { d as docxPreview_minExports } from "./vendor-f71e6f68.js";
2
- const renderDocx = (options) => {
3
- if (typeof window !== "undefined") {
4
- const { bodyContainer, styleContainer, buffer, docxOptions = {} } = options;
5
- const defaultOptions = {
6
- className: "docx"
7
- // ignoreLastRenderedPageBreak: false,
8
- };
9
- const configuration = Object.assign({}, defaultOptions, docxOptions);
10
- if (bodyContainer) {
11
- return docxPreview_minExports.renderAsync(buffer, bodyContainer, styleContainer, configuration);
12
- } else {
13
- const contain = document.createElement("div");
14
- document.body.appendChild(contain);
15
- return docxPreview_minExports.renderAsync(buffer, contain, styleContainer, configuration);
16
- }
17
- }
18
- };
19
- export {
20
- renderDocx
21
- };
@@ -1,48 +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) => {
4
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- return value;
6
- };
7
- const falseList = [false, "false", null, void 0];
8
- const isDisabled = (element) => {
9
- const status = element.hasAttribute("disabled");
10
- const value = element.getAttribute("disabled");
11
- if (status && !falseList.includes(value))
12
- return true;
13
- return false;
14
- };
15
- const removeClassToElementChild = (parent, deleteClass) => {
16
- const pre = parent.querySelectorAll(`.${deleteClass}`);
17
- if (pre.length > 0) {
18
- pre.forEach((item) => item.classList.remove(deleteClass));
19
- }
20
- };
21
- const loadScript = (src) => {
22
- return new Promise((resolve, reject) => {
23
- const script = document.createElement("script");
24
- script.src = src;
25
- script.onload = function() {
26
- resolve({ success: true });
27
- };
28
- script.onerror = function(error) {
29
- reject({ success: false, error });
30
- };
31
- document.body.append(script);
32
- });
33
- };
34
- function createCustomError(msg) {
35
- return class CustomError {
36
- constructor(message = msg) {
37
- __publicField(this, "message");
38
- this.message = message;
39
- }
40
- };
41
- }
42
- export {
43
- createCustomError as c,
44
- falseList as f,
45
- isDisabled as i,
46
- loadScript as l,
47
- removeClassToElementChild as r
48
- };
@@ -1,175 +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) => {
4
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- return value;
6
- };
7
- import { s as str2Xml } from "./index-7913ec46.js";
8
- const __variableDynamicImportRuntimeHelper = (glob, path) => {
9
- const v = glob[path];
10
- if (v) {
11
- return typeof v === "function" ? v() : Promise.resolve(v);
12
- }
13
- return new Promise((_, reject) => {
14
- (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path)));
15
- });
16
- };
17
- 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{display:inline-flex}:host .ran-icon{display:flex}:host([spin]){animation-name:rotate;animation-duration:1.4s;animation-timing-function:linear;animation-iteration-count:infinite}@keyframes rotate{to{transform:rotate(360deg)}}\n";
18
- const X_LINKS_NS = "http://www.w3.org/1999/xlink";
19
- const X_LINK_HREF = "xlink:href";
20
- function Custom() {
21
- if (typeof window !== "undefined" && !customElements.get("r-icon")) {
22
- class CustomElement extends HTMLElement {
23
- constructor() {
24
- super();
25
- __publicField(this, "_icon");
26
- __publicField(this, "_div");
27
- /**
28
- * @description: 本地加载icon
29
- */
30
- __publicField(this, "loadLocal", () => {
31
- return new Promise((resolve, reject) => {
32
- __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../assets/icons/add-user.svg": () => import("./add-user-b2bed3e7.js"), "../../assets/icons/arrow-down.svg": () => import("./info-circle-fill-90ec9aa9.js").then((n) => n.a), "../../assets/icons/book.svg": () => import("./book-b11a68eb.js"), "../../assets/icons/check-circle-fill.svg": () => import("./check-circle-fill-dc284144.js"), "../../assets/icons/check-circle.svg": () => import("./check-circle-74bd09c3.js"), "../../assets/icons/close-circle-fill.svg": () => import("./close-circle-fill-238a66b1.js"), "../../assets/icons/close-circle.svg": () => import("./close-circle-720c18be.js"), "../../assets/icons/close.svg": () => import("./close-20925345.js"), "../../assets/icons/eye-close.svg": () => import("./eye-close-3874f1ae.js"), "../../assets/icons/eye.svg": () => import("./eye-5e742329.js"), "../../assets/icons/home.svg": () => import("./home-c4a05e8b.js"), "../../assets/icons/info-circle-fill.svg": () => import("./info-circle-fill-90ec9aa9.js").then((n) => n.i), "../../assets/icons/info-circle.svg": () => import("./info-circle-5826decc.js"), "../../assets/icons/loading.svg": () => import("./loading-09ca52df.js"), "../../assets/icons/lock.svg": () => import("./lock-1d2487c9.js"), "../../assets/icons/message.svg": () => import("./message-b2bfdea7.js"), "../../assets/icons/power-off.svg": () => import("./power-off-6ade5a91.js"), "../../assets/icons/preview.svg": () => import("./preview-b291aea8.js"), "../../assets/icons/setting.svg": () => import("./setting-1e5ccb6d.js"), "../../assets/icons/team.svg": () => import("./team-ca6a12e1.js"), "../../assets/icons/unlock.svg": () => import("./unlock-f56086fd.js"), "../../assets/icons/user.svg": () => import("./user-5c01e665.js"), "../../assets/icons/warning-circle-fill.svg": () => import("./warning-circle-fill-d17c37c9.js"), "../../assets/icons/warning-circle.svg": () => import("./warning-circle-035e025c.js") }), `../../assets/icons/${this.name}.svg`).then((result) => {
33
- if (result && result.default && result.default._identification) {
34
- const { data } = result.default;
35
- this._icon && this._div.removeChild(this._icon);
36
- this._icon = str2Xml(data, "image/svg+xml");
37
- if (this._icon) {
38
- this._div.appendChild(this._icon);
39
- this.setSize();
40
- this.setColor();
41
- resolve();
42
- }
43
- } else {
44
- this.loadNs();
45
- reject(
46
- `
47
- couldn't be loaded by r-icon, message: ${this.name} icon is undefined`
48
- );
49
- }
50
- }).catch((error) => {
51
- this.loadNs();
52
- });
53
- });
54
- });
55
- /**
56
- * @description: NS加载icon
57
- */
58
- __publicField(this, "loadNs", () => {
59
- if (this._icon && this._div) {
60
- this._div.removeChild(this._icon);
61
- }
62
- this._icon = document.createElement("svg");
63
- this._icon.setAttribute("class", "icon");
64
- this._icon.setAttribute("viewBox", "0 0 1024 1024");
65
- this._icon.setAttribute("width", "100");
66
- this._icon.setAttribute("height", "100");
67
- const use = document.createElementNS(X_LINKS_NS, "use");
68
- use.setAttributeNS(
69
- X_LINKS_NS,
70
- X_LINK_HREF,
71
- `../../assets/iconfont/icon.svg#icon-${this.name}`
72
- );
73
- this._icon.appendChild(use);
74
- this._div.appendChild(this._icon);
75
- });
76
- /**
77
- * @description: 根据name属性加载对应的svg
78
- */
79
- __publicField(this, "setIcon", async () => {
80
- if (this.name) {
81
- this.loadLocal();
82
- }
83
- });
84
- /**
85
- * @description: 设置icon的大小
86
- */
87
- __publicField(this, "setSize", () => {
88
- if (this._icon && this.size) {
89
- this._icon.setAttribute("width", this.size);
90
- this._icon.setAttribute("height", this.size);
91
- }
92
- });
93
- /**
94
- * @description: 设置icon的颜色
95
- */
96
- __publicField(this, "setColor", () => {
97
- if (this._icon) {
98
- this.color ? this._icon.setAttribute("fill", this.color) : this._icon.setAttribute("fill", "currentColor");
99
- }
100
- });
101
- /**
102
- * @description: 设置是否旋转和旋转的速度
103
- */
104
- __publicField(this, "setSpin", () => {
105
- if (this.spin) {
106
- this.style.setProperty("animation-duration", `${this.spin}s`);
107
- }
108
- });
109
- this._div = document.createElement("div");
110
- this._div.setAttribute("class", "ran-icon");
111
- const shadowRoot = this.attachShadow({ mode: "closed" });
112
- const F7170EE498E0DD32CBDCB63FBA8F75CC = document.createElement("style");
113
- F7170EE498E0DD32CBDCB63FBA8F75CC.textContent = f7170ee498e0dd32cbdcb63fba8f75cc;
114
- shadowRoot.appendChild(F7170EE498E0DD32CBDCB63FBA8F75CC);
115
- shadowRoot.appendChild(this._div);
116
- }
117
- static get observedAttributes() {
118
- return ["name", "size", "color", "spin"];
119
- }
120
- get name() {
121
- return this.getAttribute("name");
122
- }
123
- set name(value) {
124
- if (value)
125
- this.setAttribute("name", value);
126
- }
127
- get size() {
128
- return this.getAttribute("size");
129
- }
130
- set size(value) {
131
- if (value)
132
- this.setAttribute("size", value);
133
- }
134
- get color() {
135
- return this.getAttribute("color");
136
- }
137
- set color(value) {
138
- if (value)
139
- this.setAttribute("color", value);
140
- }
141
- get spin() {
142
- return this.getAttribute("spin");
143
- }
144
- set spin(value) {
145
- if (value != null)
146
- this.setAttribute("spin", value);
147
- }
148
- connectedCallback() {
149
- this.setIcon();
150
- }
151
- attributeChangedCallback(name, oldValue, newValue) {
152
- if (newValue !== oldValue) {
153
- if (name === "name")
154
- this.setIcon();
155
- if (name === "size")
156
- this.setSize();
157
- if (name === "color")
158
- this.setColor();
159
- if (name === "spin")
160
- this.setSpin();
161
- }
162
- }
163
- }
164
- customElements.define("r-icon", CustomElement);
165
- }
166
- }
167
- const index = Custom();
168
- const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
169
- __proto__: null,
170
- default: index
171
- }, Symbol.toStringTag, { value: "Module" }));
172
- export {
173
- index as a,
174
- index$1 as i
175
- };