ranui 0.1.0-alpha → 0.1.1-alpha.12
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/LICENSE +21 -0
- package/dist/_commonjs-dynamic-modules-2ceabb0b.js +12 -0
- package/dist/add-user-d07564bd.js +4 -0
- package/dist/book-2a5a596c.js +4 -0
- package/dist/check-circle-2c986969.js +4 -0
- package/dist/check-circle-fill-62eaa796.js +4 -0
- package/dist/close-circle-2afb6e94.js +4 -0
- package/dist/close-circle-fill-b6906239.js +4 -0
- package/dist/close-ee3ba1d1.js +4 -0
- package/dist/colz-746223ab.js +241 -0
- package/dist/components/button/index.d.ts +331 -1
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/input/index.d.ts +435 -1
- package/dist/components/message/index.d.ts +8 -0
- package/dist/components/preview/colz.d.ts +72 -0
- package/dist/components/preview/docx.d.ts +8 -0
- package/dist/components/preview/excel/excel.d.ts +11 -0
- package/dist/components/preview/excel/index.d.ts +1 -0
- package/dist/components/preview/excel/media.d.ts +37 -0
- package/dist/components/preview/index.d.ts +2 -0
- package/dist/components/preview/pdf.d.ts +1 -0
- package/dist/components/preview/pptx/index.d.ts +16 -0
- package/dist/components/preview/pptx/process_pptx.d.ts +23 -0
- package/dist/components/preview/pptx/t_xml.d.ts +1 -0
- package/dist/components/preview/pptx/worker.d.ts +1 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/tabpane/index.d.ts +327 -0
- package/dist/components/tabs/index.d.ts +382 -1
- package/dist/components/video/index.d.ts +393 -0
- package/dist/docx-a71f9b36.js +2635 -0
- package/dist/eye-bd60afe1.js +4 -0
- package/dist/eye-close-bde3c1fc.js +4 -0
- package/dist/home-f824d8f4.js +4 -0
- package/dist/index-b14db636.js +23075 -0
- package/dist/index-d9a6fb36.js +1756 -0
- package/dist/index-eca1b437.js +85583 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +11 -676
- package/dist/index.umd.cjs +53 -2
- package/dist/info-circle-59333e1c.js +4 -0
- package/dist/info-circle-fill-3ab7660d.js +4 -0
- package/dist/jszip.min-97cf7c6a.js +2655 -0
- package/dist/loading-407d8249.js +4 -0
- package/dist/lock-6d20715b.js +4 -0
- package/dist/message-ee4fe153.js +4 -0
- package/dist/pdf-f6057747.js +112 -0
- package/dist/playwright.config.d.ts +11 -0
- package/dist/plugins/auto-import-file.d.ts +10 -0
- package/dist/plugins/load-style.d.ts +6 -0
- package/dist/plugins/load-svg.d.ts +9 -0
- package/dist/power-off-bbec6b5f.js +4 -0
- package/dist/preview-164a4944.js +4 -0
- package/dist/setting-735a1963.js +4 -0
- package/dist/style.css +1 -1
- package/dist/team-42573142.js +4 -0
- package/dist/tests/button.spec.d.ts +1 -0
- package/dist/unlock-ae33c6f7.js +4 -0
- package/dist/user-b7098183.js +4 -0
- package/dist/utils/index.d.ts +34 -4
- package/dist/vite.config.d.ts +2 -0
- package/dist/warning-circle-536d4749.js +4 -0
- package/dist/warning-circle-fill-e4be98bc.js +4 -0
- package/package.json +51 -17
- package/readme.md +71 -0
- package/.vitepress/config.ts +0 -26
- package/.vitepress/theme/index.ts +0 -9
- package/assets/image/failImage.ts +0 -4
- package/assets/svgs/check-circle.svg +0 -4
- package/assets/svgs/close-circle.svg +0 -4
- package/assets/svgs/eye-close.svg +0 -4
- package/assets/svgs/eye.svg +0 -4
- package/assets/svgs/info-circle.svg +0 -5
- package/assets/svgs/lock.svg +0 -4
- package/assets/svgs/unlock.svg +0 -4
- package/assets/svgs/user.svg +0 -3
- package/components/button/index.less +0 -95
- package/components/button/index.ts +0 -64
- package/components/form/index.ts +0 -36
- package/components/image/index.less +0 -0
- package/components/image/index.ts +0 -62
- package/components/input/index.less +0 -114
- package/components/input/index.ts +0 -367
- package/components/modal/index.less +0 -0
- package/components/modal/index.ts +0 -118
- package/components/tabPane/index.less +0 -0
- package/components/tabPane/index.ts +0 -71
- package/components/tabs/index.less +0 -47
- package/components/tabs/index.ts +0 -207
- package/dist/index.js.map +0 -1
- package/dist/index.umd.cjs.map +0 -1
- package/dist/typings.d.ts +0 -4
- package/docs/button/index.md +0 -25
- package/docs/image/index.md +0 -9
- package/docs/input/index.md +0 -146
- package/docs/tabs/index.md +0 -121
- package/index.html +0 -67
- package/index.md +0 -1
- package/index.ts +0 -6
- package/plugins/auto-import-file.ts +0 -59
- package/plugins/load-style.ts +0 -31
- package/tsconfig.json +0 -31
- package/typings.d.ts +0 -4
- package/utils/index.ts +0 -12
- package/vite.config.ts +0 -58
- /package/{components/form/index.less → dist/component.d.ts} +0 -0
- /package/dist/components/{tabPane → form}/index.d.ts +0 -0
|
@@ -1,2 +1,436 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare class CustomError {
|
|
2
|
+
message: string;
|
|
3
|
+
constructor(message?: string);
|
|
4
|
+
}
|
|
5
|
+
declare const _default: typeof CustomError | {
|
|
6
|
+
new (): {
|
|
7
|
+
_container: HTMLDivElement;
|
|
8
|
+
_label: HTMLLabelElement | undefined;
|
|
9
|
+
_input: HTMLInputElement;
|
|
10
|
+
_icon: HTMLElement | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* @description: 获取input的值
|
|
13
|
+
* @return {String}
|
|
14
|
+
*/
|
|
15
|
+
value: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* @description: 获取input的占位字符
|
|
18
|
+
* @return {String}
|
|
19
|
+
*/
|
|
20
|
+
placeholder: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* @description: input是否为必选
|
|
23
|
+
* @return {String}
|
|
24
|
+
*/
|
|
25
|
+
required: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* @description: 获取input上disabled属性
|
|
28
|
+
* @return {String | null}
|
|
29
|
+
*/
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @description: 获取类似于Metiral Design的输入体验。
|
|
33
|
+
*/
|
|
34
|
+
label: string;
|
|
35
|
+
/**
|
|
36
|
+
* @description: 获取input框的状态
|
|
37
|
+
*/
|
|
38
|
+
status: string;
|
|
39
|
+
/**
|
|
40
|
+
* @description: 与form组件联动时,收集的属性名
|
|
41
|
+
* @return {String}
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* @description: 当input类型为number类型时,可以获取min属性
|
|
46
|
+
* @return {String}
|
|
47
|
+
*/
|
|
48
|
+
min: string;
|
|
49
|
+
/**
|
|
50
|
+
* @description: 当input类型为number类型时,可以获取max属性
|
|
51
|
+
* @return {String}
|
|
52
|
+
*/
|
|
53
|
+
max: string;
|
|
54
|
+
/**
|
|
55
|
+
* @description: 当input类型为number类型时,可以获取step属性
|
|
56
|
+
* @return {String}
|
|
57
|
+
*/
|
|
58
|
+
step: string;
|
|
59
|
+
/**
|
|
60
|
+
* @description: 获取一个icon
|
|
61
|
+
* @return {String}
|
|
62
|
+
*/
|
|
63
|
+
icon: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* @description: 获取input的类型
|
|
66
|
+
* @return {string|null}
|
|
67
|
+
*/
|
|
68
|
+
type: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* @description: 原生的input方法
|
|
71
|
+
* @param {Event} event
|
|
72
|
+
*/
|
|
73
|
+
inputValue: (event: Event) => void;
|
|
74
|
+
/**
|
|
75
|
+
* @description: 增加change方法
|
|
76
|
+
*/
|
|
77
|
+
change: () => void;
|
|
78
|
+
/**
|
|
79
|
+
* @description: 增加focus方法
|
|
80
|
+
*/
|
|
81
|
+
focus: () => void;
|
|
82
|
+
/**
|
|
83
|
+
* @description: 监听placeholder属性函数
|
|
84
|
+
* @param {string} name
|
|
85
|
+
* @param {string} value
|
|
86
|
+
*/
|
|
87
|
+
listenPlaceholder(name: string, value: string): void;
|
|
88
|
+
/**
|
|
89
|
+
* @description: 监听label属性函数
|
|
90
|
+
* @param {string} name
|
|
91
|
+
* @param {string} value
|
|
92
|
+
*/
|
|
93
|
+
listenLabel(name: string, value: string): void;
|
|
94
|
+
/**
|
|
95
|
+
* @description: 监听type属性
|
|
96
|
+
* @param {string} name
|
|
97
|
+
* @param {string} value
|
|
98
|
+
*/
|
|
99
|
+
listenType(name: string, value: string): void;
|
|
100
|
+
/**
|
|
101
|
+
* @description: 监听status属性
|
|
102
|
+
* @param {string} name
|
|
103
|
+
* @param {string} value
|
|
104
|
+
*/
|
|
105
|
+
listenStatus(name: string, value: string): void;
|
|
106
|
+
/**
|
|
107
|
+
* @description: 监听disabled属性
|
|
108
|
+
* @param {string} name
|
|
109
|
+
* @param {string} value
|
|
110
|
+
*/
|
|
111
|
+
listenDisabled(name: string, value: string): void;
|
|
112
|
+
/**
|
|
113
|
+
* @description: 监听icon属性
|
|
114
|
+
* @param {string} name
|
|
115
|
+
* @param {string} value
|
|
116
|
+
*/
|
|
117
|
+
listenIcon(name: string, value: string, oldValue: string): void;
|
|
118
|
+
/**
|
|
119
|
+
* @description: 处理icon属性的问题
|
|
120
|
+
*/
|
|
121
|
+
dealIcon: () => void;
|
|
122
|
+
/**
|
|
123
|
+
* @description: 聚合监听事件
|
|
124
|
+
* @param {string} name
|
|
125
|
+
* @param {string} oldValue
|
|
126
|
+
* @param {string} newValue
|
|
127
|
+
*/
|
|
128
|
+
listenEvent(name: string, oldValue: string, newValue: string): void;
|
|
129
|
+
connectedCallback(): void;
|
|
130
|
+
disconnectCallback(): void;
|
|
131
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
132
|
+
accessKey: string;
|
|
133
|
+
readonly accessKeyLabel: string;
|
|
134
|
+
autocapitalize: string;
|
|
135
|
+
dir: string;
|
|
136
|
+
draggable: boolean;
|
|
137
|
+
hidden: boolean;
|
|
138
|
+
inert: boolean;
|
|
139
|
+
innerText: string;
|
|
140
|
+
lang: string;
|
|
141
|
+
readonly offsetHeight: number;
|
|
142
|
+
readonly offsetLeft: number;
|
|
143
|
+
readonly offsetParent: Element | null;
|
|
144
|
+
readonly offsetTop: number;
|
|
145
|
+
readonly offsetWidth: number;
|
|
146
|
+
outerText: string;
|
|
147
|
+
spellcheck: boolean;
|
|
148
|
+
title: string;
|
|
149
|
+
translate: boolean;
|
|
150
|
+
attachInternals(): ElementInternals;
|
|
151
|
+
click(): void;
|
|
152
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
153
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
154
|
+
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
155
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
156
|
+
readonly attributes: NamedNodeMap;
|
|
157
|
+
readonly classList: DOMTokenList;
|
|
158
|
+
className: string;
|
|
159
|
+
readonly clientHeight: number;
|
|
160
|
+
readonly clientLeft: number;
|
|
161
|
+
readonly clientTop: number;
|
|
162
|
+
readonly clientWidth: number;
|
|
163
|
+
id: string;
|
|
164
|
+
readonly localName: string;
|
|
165
|
+
readonly namespaceURI: string | null;
|
|
166
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
167
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
168
|
+
outerHTML: string;
|
|
169
|
+
readonly ownerDocument: Document;
|
|
170
|
+
readonly part: DOMTokenList;
|
|
171
|
+
readonly prefix: string | null;
|
|
172
|
+
readonly scrollHeight: number;
|
|
173
|
+
scrollLeft: number;
|
|
174
|
+
scrollTop: number;
|
|
175
|
+
readonly scrollWidth: number;
|
|
176
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
177
|
+
slot: string;
|
|
178
|
+
readonly tagName: string;
|
|
179
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
180
|
+
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
181
|
+
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
182
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
|
183
|
+
getAttribute(qualifiedName: string): string | null;
|
|
184
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
185
|
+
getAttributeNames(): string[];
|
|
186
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
|
187
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
188
|
+
getBoundingClientRect(): DOMRect;
|
|
189
|
+
getClientRects(): DOMRectList;
|
|
190
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
191
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
192
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
193
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
194
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
195
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
196
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
197
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
198
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
199
|
+
hasAttributes(): boolean;
|
|
200
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
201
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
202
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
203
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
204
|
+
matches(selectors: string): boolean;
|
|
205
|
+
releasePointerCapture(pointerId: number): void;
|
|
206
|
+
removeAttribute(qualifiedName: string): void;
|
|
207
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
208
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
209
|
+
requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
|
|
210
|
+
requestPointerLock(): void;
|
|
211
|
+
scroll(options?: ScrollToOptions | undefined): void;
|
|
212
|
+
scroll(x: number, y: number): void;
|
|
213
|
+
scrollBy(options?: ScrollToOptions | undefined): void;
|
|
214
|
+
scrollBy(x: number, y: number): void;
|
|
215
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
|
|
216
|
+
scrollTo(options?: ScrollToOptions | undefined): void;
|
|
217
|
+
scrollTo(x: number, y: number): void;
|
|
218
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
219
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
220
|
+
setAttributeNode(attr: Attr): Attr | null;
|
|
221
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
222
|
+
setPointerCapture(pointerId: number): void;
|
|
223
|
+
toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
|
|
224
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
225
|
+
readonly baseURI: string;
|
|
226
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
227
|
+
readonly firstChild: ChildNode | null;
|
|
228
|
+
readonly isConnected: boolean;
|
|
229
|
+
readonly lastChild: ChildNode | null;
|
|
230
|
+
readonly nextSibling: ChildNode | null;
|
|
231
|
+
readonly nodeName: string;
|
|
232
|
+
readonly nodeType: number;
|
|
233
|
+
nodeValue: string | null;
|
|
234
|
+
readonly parentElement: HTMLElement | null;
|
|
235
|
+
readonly parentNode: ParentNode | null;
|
|
236
|
+
readonly previousSibling: ChildNode | null;
|
|
237
|
+
textContent: string | null;
|
|
238
|
+
appendChild<T extends Node>(node: T): T;
|
|
239
|
+
cloneNode(deep?: boolean | undefined): Node;
|
|
240
|
+
compareDocumentPosition(other: Node): number;
|
|
241
|
+
contains(other: Node | null): boolean;
|
|
242
|
+
getRootNode(options?: GetRootNodeOptions | undefined): Node;
|
|
243
|
+
hasChildNodes(): boolean;
|
|
244
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
245
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
246
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
247
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
248
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
249
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
250
|
+
normalize(): void;
|
|
251
|
+
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
252
|
+
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
253
|
+
readonly ATTRIBUTE_NODE: number;
|
|
254
|
+
readonly CDATA_SECTION_NODE: number;
|
|
255
|
+
readonly COMMENT_NODE: number;
|
|
256
|
+
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
257
|
+
readonly DOCUMENT_NODE: number;
|
|
258
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
259
|
+
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
260
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
261
|
+
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
262
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
263
|
+
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
264
|
+
readonly DOCUMENT_TYPE_NODE: number;
|
|
265
|
+
readonly ELEMENT_NODE: number;
|
|
266
|
+
readonly ENTITY_NODE: number;
|
|
267
|
+
readonly ENTITY_REFERENCE_NODE: number;
|
|
268
|
+
readonly NOTATION_NODE: number;
|
|
269
|
+
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
270
|
+
readonly TEXT_NODE: number;
|
|
271
|
+
dispatchEvent(event: Event): boolean;
|
|
272
|
+
ariaAtomic: string | null;
|
|
273
|
+
ariaAutoComplete: string | null;
|
|
274
|
+
ariaBusy: string | null;
|
|
275
|
+
ariaChecked: string | null;
|
|
276
|
+
ariaColCount: string | null;
|
|
277
|
+
ariaColIndex: string | null;
|
|
278
|
+
ariaColSpan: string | null;
|
|
279
|
+
ariaCurrent: string | null;
|
|
280
|
+
ariaDisabled: string | null;
|
|
281
|
+
ariaExpanded: string | null;
|
|
282
|
+
ariaHasPopup: string | null;
|
|
283
|
+
ariaHidden: string | null;
|
|
284
|
+
ariaKeyShortcuts: string | null;
|
|
285
|
+
ariaLabel: string | null;
|
|
286
|
+
ariaLevel: string | null;
|
|
287
|
+
ariaLive: string | null;
|
|
288
|
+
ariaModal: string | null;
|
|
289
|
+
ariaMultiLine: string | null;
|
|
290
|
+
ariaMultiSelectable: string | null;
|
|
291
|
+
ariaOrientation: string | null;
|
|
292
|
+
ariaPlaceholder: string | null;
|
|
293
|
+
ariaPosInSet: string | null;
|
|
294
|
+
ariaPressed: string | null;
|
|
295
|
+
ariaReadOnly: string | null;
|
|
296
|
+
ariaRequired: string | null;
|
|
297
|
+
ariaRoleDescription: string | null;
|
|
298
|
+
ariaRowCount: string | null;
|
|
299
|
+
ariaRowIndex: string | null;
|
|
300
|
+
ariaRowSpan: string | null;
|
|
301
|
+
ariaSelected: string | null;
|
|
302
|
+
ariaSetSize: string | null;
|
|
303
|
+
ariaSort: string | null;
|
|
304
|
+
ariaValueMax: string | null;
|
|
305
|
+
ariaValueMin: string | null;
|
|
306
|
+
ariaValueNow: string | null;
|
|
307
|
+
ariaValueText: string | null;
|
|
308
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
309
|
+
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
310
|
+
after(...nodes: (string | Node)[]): void;
|
|
311
|
+
before(...nodes: (string | Node)[]): void;
|
|
312
|
+
remove(): void;
|
|
313
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
314
|
+
innerHTML: string;
|
|
315
|
+
readonly nextElementSibling: Element | null;
|
|
316
|
+
readonly previousElementSibling: Element | null;
|
|
317
|
+
readonly childElementCount: number;
|
|
318
|
+
readonly children: HTMLCollection;
|
|
319
|
+
readonly firstElementChild: Element | null;
|
|
320
|
+
readonly lastElementChild: Element | null;
|
|
321
|
+
append(...nodes: (string | Node)[]): void;
|
|
322
|
+
prepend(...nodes: (string | Node)[]): void;
|
|
323
|
+
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6] | null;
|
|
324
|
+
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7] | null;
|
|
325
|
+
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
326
|
+
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
|
327
|
+
querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
|
|
328
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
329
|
+
replaceChildren(...nodes: (string | Node)[]): void;
|
|
330
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
331
|
+
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
332
|
+
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
333
|
+
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
334
|
+
readonly style: CSSStyleDeclaration;
|
|
335
|
+
contentEditable: string;
|
|
336
|
+
enterKeyHint: string;
|
|
337
|
+
inputMode: string;
|
|
338
|
+
readonly isContentEditable: boolean;
|
|
339
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
340
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
341
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
342
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
343
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
344
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
345
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
346
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
347
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
348
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
349
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
350
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
351
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
352
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
353
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
354
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
355
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
356
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
357
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
358
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
359
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
360
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
361
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
362
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
363
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
364
|
+
onerror: OnErrorEventHandler;
|
|
365
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
366
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
367
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
368
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
369
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
370
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
371
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
372
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
373
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
374
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
375
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
376
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
377
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
378
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
379
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
380
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
381
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
382
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
383
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
384
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
385
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
386
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
387
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
388
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
389
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
390
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
391
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
392
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
393
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
394
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
395
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
396
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
397
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
398
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
399
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
400
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
401
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
402
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
403
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
404
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
405
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
406
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
407
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
408
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
409
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
410
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
411
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
412
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
413
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
414
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
415
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
416
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
417
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
418
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
419
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
420
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
421
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
422
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
423
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
424
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
425
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
426
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
427
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
428
|
+
autofocus: boolean;
|
|
429
|
+
readonly dataset: DOMStringMap;
|
|
430
|
+
nonce?: string | undefined;
|
|
431
|
+
tabIndex: number;
|
|
432
|
+
blur(): void;
|
|
433
|
+
};
|
|
434
|
+
readonly observedAttributes: string[];
|
|
435
|
+
};
|
|
2
436
|
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const message: {
|
|
2
|
+
info: (options: Ran.Prompt | string) => void;
|
|
3
|
+
success: (options: Ran.Prompt | string) => void;
|
|
4
|
+
error: (options: Ran.Prompt | string) => void;
|
|
5
|
+
warning: (options: Ran.Prompt | string) => void;
|
|
6
|
+
toast: (options: Ran.Prompt | string) => void;
|
|
7
|
+
} | undefined;
|
|
8
|
+
export default message;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
declare type ColorVal = (string | number)[];
|
|
2
|
+
export declare class Rgb {
|
|
3
|
+
r: string | number;
|
|
4
|
+
g: string | number;
|
|
5
|
+
b: string | number;
|
|
6
|
+
constructor(col: Array<string | number>);
|
|
7
|
+
toString(): string;
|
|
8
|
+
}
|
|
9
|
+
export declare class Rgba extends Rgb {
|
|
10
|
+
a: string | number;
|
|
11
|
+
constructor(col: Array<string | number>);
|
|
12
|
+
toString(): string;
|
|
13
|
+
}
|
|
14
|
+
export declare class Hsl {
|
|
15
|
+
h: string | number;
|
|
16
|
+
s: string | number;
|
|
17
|
+
l: string | number;
|
|
18
|
+
constructor(col: Array<string | number>);
|
|
19
|
+
toString(): string;
|
|
20
|
+
}
|
|
21
|
+
export declare class Hsla extends Hsl {
|
|
22
|
+
a: string | number;
|
|
23
|
+
constructor(col: Array<string | number>);
|
|
24
|
+
toString(): string;
|
|
25
|
+
}
|
|
26
|
+
export declare class Color {
|
|
27
|
+
r: string | number;
|
|
28
|
+
g: string | number;
|
|
29
|
+
b: string | number;
|
|
30
|
+
a: string | number;
|
|
31
|
+
rgb: Rgb;
|
|
32
|
+
rgba: Rgba;
|
|
33
|
+
hex: string;
|
|
34
|
+
hsl: Hsl;
|
|
35
|
+
hsla: Hsla;
|
|
36
|
+
h: string | number;
|
|
37
|
+
s: string | number;
|
|
38
|
+
l: string | number;
|
|
39
|
+
constructor(r: string | number | Array<string | number>, g?: string | number, b?: string | number, a?: string | number);
|
|
40
|
+
setHue(newHue: string | number): void;
|
|
41
|
+
setSat(newSat: string | number): void;
|
|
42
|
+
setLum(newLum: number): void;
|
|
43
|
+
setAlpha(newAlpha: string | number): void;
|
|
44
|
+
updateFromHsl(): void;
|
|
45
|
+
}
|
|
46
|
+
export declare const randomColor: () => Color;
|
|
47
|
+
export declare const hexToRgb: (hex: string) => RegExpExecArray | null | Array<number>;
|
|
48
|
+
export declare const getDarkColor: (color: string, level: number) => string;
|
|
49
|
+
export declare function getLightColor(color: string, level: number): string;
|
|
50
|
+
export declare const componentToHex: (c: string | number) => string;
|
|
51
|
+
export declare const rgbToHex: (r: string | number | Array<string | number>, g?: string | number, b?: string | number) => string;
|
|
52
|
+
export declare const rgbToHsl: (r: number | number[], g?: number, b?: number) => Array<number>;
|
|
53
|
+
export declare const hue2rgb: (p: number, q: number, t: number) => number;
|
|
54
|
+
export declare const hslToRgb: (h: number | string | number[], s: number | string, l: number | string) => Array<number>;
|
|
55
|
+
export declare const rgbToHsb: (r: number, g: number, b: number) => number[];
|
|
56
|
+
export declare const hsbToRgb: (h: number, s: number, v: number) => number[];
|
|
57
|
+
export declare const hsvToRgb: (h: number, s: number, v: number) => number[];
|
|
58
|
+
export declare const hsbToHsl: (h: any, s: any, b: any) => number[];
|
|
59
|
+
export declare const hsvToHsl: (h: any, s: any, b: any) => number[];
|
|
60
|
+
export declare class ColorScheme {
|
|
61
|
+
palette: Color[];
|
|
62
|
+
constructor(colorVal: (string | number)[], angleArray: number[]);
|
|
63
|
+
createFromColors(colorVal: (string | number)[]): Color[];
|
|
64
|
+
createFromAngles(colorVal: string | number | (string | number)[], angleArray: number[]): Color[];
|
|
65
|
+
static Compl(colorVal: ColorVal): ColorScheme;
|
|
66
|
+
static Triad(colorVal: ColorVal): ColorScheme;
|
|
67
|
+
static Tetrad(colorVal: ColorVal): ColorScheme;
|
|
68
|
+
static Analog(colorVal: ColorVal): ColorScheme;
|
|
69
|
+
static Split(colorVal: ColorVal): ColorScheme;
|
|
70
|
+
static Accent(colorVal: ColorVal): ColorScheme;
|
|
71
|
+
}
|
|
72
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface DocxOptions {
|
|
2
|
+
bodyContainer?: HTMLElement | null;
|
|
3
|
+
styleContainer?: HTMLElement;
|
|
4
|
+
buffer: Blob;
|
|
5
|
+
docxOptions?: Partial<Record<string, string | boolean>>;
|
|
6
|
+
}
|
|
7
|
+
export declare const renderDocx: (options: DocxOptions) => Promise<void> | undefined;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function getData(src: Blob | ArrayBuffer | Response, options: RequestExcelOption): Promise<unknown>;
|
|
2
|
+
interface RequestExcelOption {
|
|
3
|
+
responseType: XMLHttpRequestResponseType;
|
|
4
|
+
method: string;
|
|
5
|
+
withCredentials: boolean;
|
|
6
|
+
headers: Record<string, string>;
|
|
7
|
+
body: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function readExcelData(buffer: ArrayBuffer | string): Promise<unknown>;
|
|
10
|
+
export declare function transferExcelToSpreadSheet(workbook: any, options: any): any;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const renderExcel: (file: File, dom?: HTMLElement) => Promise<void>;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const renderPdf: (file: File, dom?: HTMLElement) => Promise<void>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
declare 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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function t_xml(S: string): Record<string, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|