ranui 0.1.10-alpha.12 → 0.1.10-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.zh-CN.md +1 -1
- package/dist/components/button/index.d.ts +0 -1
- package/dist/components/message/index.d.ts +0 -1
- package/dist/components/player/index.d.ts +0 -1
- package/dist/components/popover/index.d.ts +0 -1
- package/dist/components/preview/pptx/process_pptx.d.ts +0 -1
- package/dist/components/select/index.d.ts +0 -1
- package/dist/components/tab/index.d.ts +48 -50
- package/dist/components/tabpane/index.d.ts +49 -51
- package/dist/{index-Bc2Bcl8D.js → index-5xtGTetN.js} +4 -4
- package/dist/{index-B897keW5.js → index-CwWOKbhV.js} +1 -1
- package/dist/index.d.ts +14 -14
- package/dist/index.js +1 -1
- package/dist/preview.js +1 -1
- package/dist/shadowless/select/index.d.ts +0 -1
- package/dist/typings.d.ts +14 -14
- package/dist/umd/index.umd.cjs +2 -2
- package/package.json +2 -2
- package/readme.md +1 -2
- package/typings.d.ts +14 -14
package/README.zh-CN.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<a href="https://github.com/chaxus/ran"><img src="https://img.badgesize.io/https:/unpkg.com/ranui/dist/umd/shadowless/shadowless.umd.cjs?label=brotli&compression=brotli" alt="brotli"></a>
|
|
11
11
|
<a href="https://github.com/chaxus/ran"><img src="https://img.shields.io/badge/module%20formats-umd%2C%20esm-green.svg" alt="module formats: umd, esm"></a>
|
|
12
12
|
|
|
13
|
-
**中文** | [English](./
|
|
13
|
+
**中文** | [English](./readme.md)
|
|
14
14
|
|
|
15
15
|
## 特点
|
|
16
16
|
|
|
@@ -98,16 +98,11 @@ declare const _default: {
|
|
|
98
98
|
click(): void;
|
|
99
99
|
hidePopover(): void;
|
|
100
100
|
showPopover(): void;
|
|
101
|
-
togglePopover(force?: boolean
|
|
102
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions
|
|
103
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions
|
|
104
|
-
removeEventListener<
|
|
105
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions
|
|
106
|
-
mozRequestFullScreen: (options?: FullscreenOptions | undefined) => Promise<void>;
|
|
107
|
-
msRequestFullscreen: (options?: FullscreenOptions | undefined) => Promise<void>;
|
|
108
|
-
oRequestFullscreen: (options?: FullscreenOptions | undefined) => Promise<void>;
|
|
109
|
-
webkitRequestFullscreen: (options?: FullscreenOptions | undefined) => Promise<void>;
|
|
110
|
-
webkitEnterFullscreen: (options?: FullscreenOptions | undefined) => Promise<void>;
|
|
101
|
+
togglePopover(force?: boolean): boolean;
|
|
102
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
103
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
104
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
105
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
111
106
|
readonly attributes: NamedNodeMap;
|
|
112
107
|
readonly classList: DOMTokenList;
|
|
113
108
|
className: string;
|
|
@@ -132,10 +127,10 @@ declare const _default: {
|
|
|
132
127
|
slot: string;
|
|
133
128
|
readonly tagName: string;
|
|
134
129
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
135
|
-
checkVisibility(options?: CheckVisibilityOptions
|
|
136
|
-
closest<
|
|
137
|
-
closest<
|
|
138
|
-
closest<
|
|
130
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
131
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
132
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
133
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
139
134
|
closest<E extends Element = Element>(selectors: string): E | null;
|
|
140
135
|
computedStyleMap(): StylePropertyMapReadOnly;
|
|
141
136
|
getAttribute(qualifiedName: string): string | null;
|
|
@@ -146,10 +141,10 @@ declare const _default: {
|
|
|
146
141
|
getBoundingClientRect(): DOMRect;
|
|
147
142
|
getClientRects(): DOMRectList;
|
|
148
143
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
149
|
-
getElementsByTagName<
|
|
150
|
-
getElementsByTagName<
|
|
151
|
-
getElementsByTagName<
|
|
152
|
-
getElementsByTagName<
|
|
144
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
145
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
146
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
147
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
153
148
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
154
149
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
155
150
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
@@ -167,21 +162,22 @@ declare const _default: {
|
|
|
167
162
|
removeAttribute(qualifiedName: string): void;
|
|
168
163
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
169
164
|
removeAttributeNode(attr: Attr): Attr;
|
|
170
|
-
requestFullscreen(options?: FullscreenOptions
|
|
165
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
171
166
|
requestPointerLock(): void;
|
|
172
|
-
scroll(options?: ScrollToOptions
|
|
167
|
+
scroll(options?: ScrollToOptions): void;
|
|
173
168
|
scroll(x: number, y: number): void;
|
|
174
|
-
scrollBy(options?: ScrollToOptions
|
|
169
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
175
170
|
scrollBy(x: number, y: number): void;
|
|
176
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions
|
|
177
|
-
scrollTo(options?: ScrollToOptions
|
|
171
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
172
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
178
173
|
scrollTo(x: number, y: number): void;
|
|
179
174
|
setAttribute(qualifiedName: string, value: string): void;
|
|
180
175
|
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
181
176
|
setAttributeNode(attr: Attr): Attr | null;
|
|
182
177
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
178
|
+
setHTMLUnsafe(html: string): void;
|
|
183
179
|
setPointerCapture(pointerId: number): void;
|
|
184
|
-
toggleAttribute(qualifiedName: string, force?: boolean
|
|
180
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
185
181
|
webkitMatchesSelector(selectors: string): boolean;
|
|
186
182
|
readonly baseURI: string;
|
|
187
183
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
@@ -197,20 +193,20 @@ declare const _default: {
|
|
|
197
193
|
readonly previousSibling: ChildNode | null;
|
|
198
194
|
textContent: string | null;
|
|
199
195
|
appendChild<T extends Node>(node: T): T;
|
|
200
|
-
cloneNode(deep?: boolean
|
|
196
|
+
cloneNode(deep?: boolean): Node;
|
|
201
197
|
compareDocumentPosition(other: Node): number;
|
|
202
198
|
contains(other: Node | null): boolean;
|
|
203
|
-
getRootNode(options?: GetRootNodeOptions
|
|
199
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
204
200
|
hasChildNodes(): boolean;
|
|
205
|
-
insertBefore<
|
|
201
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
206
202
|
isDefaultNamespace(namespace: string | null): boolean;
|
|
207
203
|
isEqualNode(otherNode: Node | null): boolean;
|
|
208
204
|
isSameNode(otherNode: Node | null): boolean;
|
|
209
205
|
lookupNamespaceURI(prefix: string | null): string | null;
|
|
210
206
|
lookupPrefix(namespace: string | null): string | null;
|
|
211
207
|
normalize(): void;
|
|
212
|
-
removeChild<
|
|
213
|
-
replaceChild<
|
|
208
|
+
removeChild<T extends Node>(child: T): T;
|
|
209
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
214
210
|
readonly ELEMENT_NODE: 1;
|
|
215
211
|
readonly ATTRIBUTE_NODE: 2;
|
|
216
212
|
readonly TEXT_NODE: 3;
|
|
@@ -232,6 +228,8 @@ declare const _default: {
|
|
|
232
228
|
dispatchEvent(event: Event): boolean;
|
|
233
229
|
ariaAtomic: string | null;
|
|
234
230
|
ariaAutoComplete: string | null;
|
|
231
|
+
ariaBrailleLabel: string | null;
|
|
232
|
+
ariaBrailleRoleDescription: string | null;
|
|
235
233
|
ariaBusy: string | null;
|
|
236
234
|
ariaChecked: string | null;
|
|
237
235
|
ariaColCount: string | null;
|
|
@@ -269,12 +267,12 @@ declare const _default: {
|
|
|
269
267
|
ariaValueNow: string | null;
|
|
270
268
|
ariaValueText: string | null;
|
|
271
269
|
role: string | null;
|
|
272
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions
|
|
273
|
-
getAnimations(options?: GetAnimationsOptions
|
|
274
|
-
after(...nodes: (
|
|
275
|
-
before(...nodes: (
|
|
270
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
271
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
272
|
+
after(...nodes: (Node | string)[]): void;
|
|
273
|
+
before(...nodes: (Node | string)[]): void;
|
|
276
274
|
remove(): void;
|
|
277
|
-
replaceWith(...nodes: (
|
|
275
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
278
276
|
innerHTML: string;
|
|
279
277
|
readonly nextElementSibling: Element | null;
|
|
280
278
|
readonly previousElementSibling: Element | null;
|
|
@@ -282,19 +280,19 @@ declare const _default: {
|
|
|
282
280
|
readonly children: HTMLCollection;
|
|
283
281
|
readonly firstElementChild: Element | null;
|
|
284
282
|
readonly lastElementChild: Element | null;
|
|
285
|
-
append(...nodes: (
|
|
286
|
-
prepend(...nodes: (
|
|
287
|
-
querySelector<
|
|
288
|
-
querySelector<
|
|
289
|
-
querySelector<
|
|
290
|
-
querySelector<
|
|
291
|
-
querySelector<
|
|
292
|
-
querySelectorAll<
|
|
293
|
-
querySelectorAll<
|
|
294
|
-
querySelectorAll<
|
|
295
|
-
querySelectorAll<
|
|
296
|
-
querySelectorAll<
|
|
297
|
-
replaceChildren(...nodes: (
|
|
283
|
+
append(...nodes: (Node | string)[]): void;
|
|
284
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
285
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
286
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
287
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
288
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
289
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
290
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
291
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
292
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
293
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
294
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
295
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
298
296
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
299
297
|
readonly attributeStyleMap: StylePropertyMap;
|
|
300
298
|
readonly style: CSSStyleDeclaration;
|
|
@@ -365,7 +363,7 @@ declare const _default: {
|
|
|
365
363
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
366
364
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
367
365
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
368
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent
|
|
366
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
369
367
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
370
368
|
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
371
369
|
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
@@ -400,10 +398,10 @@ declare const _default: {
|
|
|
400
398
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
401
399
|
autofocus: boolean;
|
|
402
400
|
readonly dataset: DOMStringMap;
|
|
403
|
-
nonce?: string
|
|
401
|
+
nonce?: string;
|
|
404
402
|
tabIndex: number;
|
|
405
403
|
blur(): void;
|
|
406
|
-
focus(options?: FocusOptions
|
|
404
|
+
focus(options?: FocusOptions): void;
|
|
407
405
|
};
|
|
408
406
|
readonly observedAttributes: string[];
|
|
409
407
|
} | undefined;
|
|
@@ -4,7 +4,7 @@ interface ExtendParentNode {
|
|
|
4
4
|
declare const _default: {
|
|
5
5
|
new (): {
|
|
6
6
|
_div: HTMLElement;
|
|
7
|
-
parent: (ParentNode & ExtendParentNode) |
|
|
7
|
+
parent: (ParentNode & ExtendParentNode) | undefined | null;
|
|
8
8
|
label: string;
|
|
9
9
|
icon: string | null;
|
|
10
10
|
iconSize: string | null;
|
|
@@ -42,16 +42,11 @@ declare const _default: {
|
|
|
42
42
|
click(): void;
|
|
43
43
|
hidePopover(): void;
|
|
44
44
|
showPopover(): void;
|
|
45
|
-
togglePopover(force?: boolean
|
|
46
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions
|
|
47
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions
|
|
48
|
-
removeEventListener<
|
|
49
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions
|
|
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>;
|
|
45
|
+
togglePopover(force?: boolean): boolean;
|
|
46
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
47
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
48
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
49
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
55
50
|
readonly attributes: NamedNodeMap;
|
|
56
51
|
readonly classList: DOMTokenList;
|
|
57
52
|
className: string;
|
|
@@ -76,10 +71,10 @@ declare const _default: {
|
|
|
76
71
|
slot: string;
|
|
77
72
|
readonly tagName: string;
|
|
78
73
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
79
|
-
checkVisibility(options?: CheckVisibilityOptions
|
|
80
|
-
closest<
|
|
81
|
-
closest<
|
|
82
|
-
closest<
|
|
74
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
75
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
76
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
77
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
83
78
|
closest<E extends Element = Element>(selectors: string): E | null;
|
|
84
79
|
computedStyleMap(): StylePropertyMapReadOnly;
|
|
85
80
|
getAttribute(qualifiedName: string): string | null;
|
|
@@ -90,10 +85,10 @@ declare const _default: {
|
|
|
90
85
|
getBoundingClientRect(): DOMRect;
|
|
91
86
|
getClientRects(): DOMRectList;
|
|
92
87
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
93
|
-
getElementsByTagName<
|
|
94
|
-
getElementsByTagName<
|
|
95
|
-
getElementsByTagName<
|
|
96
|
-
getElementsByTagName<
|
|
88
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
89
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
90
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
91
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
97
92
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
98
93
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
99
94
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
@@ -111,21 +106,22 @@ declare const _default: {
|
|
|
111
106
|
removeAttribute(qualifiedName: string): void;
|
|
112
107
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
113
108
|
removeAttributeNode(attr: Attr): Attr;
|
|
114
|
-
requestFullscreen(options?: FullscreenOptions
|
|
109
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
115
110
|
requestPointerLock(): void;
|
|
116
|
-
scroll(options?: ScrollToOptions
|
|
111
|
+
scroll(options?: ScrollToOptions): void;
|
|
117
112
|
scroll(x: number, y: number): void;
|
|
118
|
-
scrollBy(options?: ScrollToOptions
|
|
113
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
119
114
|
scrollBy(x: number, y: number): void;
|
|
120
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions
|
|
121
|
-
scrollTo(options?: ScrollToOptions
|
|
115
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
116
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
122
117
|
scrollTo(x: number, y: number): void;
|
|
123
118
|
setAttribute(qualifiedName: string, value: string): void;
|
|
124
119
|
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
125
120
|
setAttributeNode(attr: Attr): Attr | null;
|
|
126
121
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
122
|
+
setHTMLUnsafe(html: string): void;
|
|
127
123
|
setPointerCapture(pointerId: number): void;
|
|
128
|
-
toggleAttribute(qualifiedName: string, force?: boolean
|
|
124
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
129
125
|
webkitMatchesSelector(selectors: string): boolean;
|
|
130
126
|
readonly baseURI: string;
|
|
131
127
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
@@ -141,20 +137,20 @@ declare const _default: {
|
|
|
141
137
|
readonly previousSibling: ChildNode | null;
|
|
142
138
|
textContent: string | null;
|
|
143
139
|
appendChild<T extends Node>(node: T): T;
|
|
144
|
-
cloneNode(deep?: boolean
|
|
140
|
+
cloneNode(deep?: boolean): Node;
|
|
145
141
|
compareDocumentPosition(other: Node): number;
|
|
146
142
|
contains(other: Node | null): boolean;
|
|
147
|
-
getRootNode(options?: GetRootNodeOptions
|
|
143
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
148
144
|
hasChildNodes(): boolean;
|
|
149
|
-
insertBefore<
|
|
145
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
150
146
|
isDefaultNamespace(namespace: string | null): boolean;
|
|
151
147
|
isEqualNode(otherNode: Node | null): boolean;
|
|
152
148
|
isSameNode(otherNode: Node | null): boolean;
|
|
153
149
|
lookupNamespaceURI(prefix: string | null): string | null;
|
|
154
150
|
lookupPrefix(namespace: string | null): string | null;
|
|
155
151
|
normalize(): void;
|
|
156
|
-
removeChild<
|
|
157
|
-
replaceChild<
|
|
152
|
+
removeChild<T extends Node>(child: T): T;
|
|
153
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
158
154
|
readonly ELEMENT_NODE: 1;
|
|
159
155
|
readonly ATTRIBUTE_NODE: 2;
|
|
160
156
|
readonly TEXT_NODE: 3;
|
|
@@ -176,6 +172,8 @@ declare const _default: {
|
|
|
176
172
|
dispatchEvent(event: Event): boolean;
|
|
177
173
|
ariaAtomic: string | null;
|
|
178
174
|
ariaAutoComplete: string | null;
|
|
175
|
+
ariaBrailleLabel: string | null;
|
|
176
|
+
ariaBrailleRoleDescription: string | null;
|
|
179
177
|
ariaBusy: string | null;
|
|
180
178
|
ariaChecked: string | null;
|
|
181
179
|
ariaColCount: string | null;
|
|
@@ -213,12 +211,12 @@ declare const _default: {
|
|
|
213
211
|
ariaValueNow: string | null;
|
|
214
212
|
ariaValueText: string | null;
|
|
215
213
|
role: string | null;
|
|
216
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions
|
|
217
|
-
getAnimations(options?: GetAnimationsOptions
|
|
218
|
-
after(...nodes: (
|
|
219
|
-
before(...nodes: (
|
|
214
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
215
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
216
|
+
after(...nodes: (Node | string)[]): void;
|
|
217
|
+
before(...nodes: (Node | string)[]): void;
|
|
220
218
|
remove(): void;
|
|
221
|
-
replaceWith(...nodes: (
|
|
219
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
222
220
|
innerHTML: string;
|
|
223
221
|
readonly nextElementSibling: Element | null;
|
|
224
222
|
readonly previousElementSibling: Element | null;
|
|
@@ -226,19 +224,19 @@ declare const _default: {
|
|
|
226
224
|
readonly children: HTMLCollection;
|
|
227
225
|
readonly firstElementChild: Element | null;
|
|
228
226
|
readonly lastElementChild: Element | null;
|
|
229
|
-
append(...nodes: (
|
|
230
|
-
prepend(...nodes: (
|
|
231
|
-
querySelector<
|
|
232
|
-
querySelector<
|
|
233
|
-
querySelector<
|
|
234
|
-
querySelector<
|
|
235
|
-
querySelector<
|
|
236
|
-
querySelectorAll<
|
|
237
|
-
querySelectorAll<
|
|
238
|
-
querySelectorAll<
|
|
239
|
-
querySelectorAll<
|
|
240
|
-
querySelectorAll<
|
|
241
|
-
replaceChildren(...nodes: (
|
|
227
|
+
append(...nodes: (Node | string)[]): void;
|
|
228
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
229
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
230
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
231
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
232
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
233
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
234
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
235
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
236
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
237
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
238
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
239
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
242
240
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
243
241
|
readonly attributeStyleMap: StylePropertyMap;
|
|
244
242
|
readonly style: CSSStyleDeclaration;
|
|
@@ -309,7 +307,7 @@ declare const _default: {
|
|
|
309
307
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
310
308
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
311
309
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
312
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent
|
|
310
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
313
311
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
314
312
|
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
315
313
|
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
@@ -344,10 +342,10 @@ declare const _default: {
|
|
|
344
342
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
345
343
|
autofocus: boolean;
|
|
346
344
|
readonly dataset: DOMStringMap;
|
|
347
|
-
nonce?: string
|
|
345
|
+
nonce?: string;
|
|
348
346
|
tabIndex: number;
|
|
349
347
|
blur(): void;
|
|
350
|
-
focus(options?: FocusOptions
|
|
348
|
+
focus(options?: FocusOptions): void;
|
|
351
349
|
};
|
|
352
350
|
readonly observedAttributes: string[];
|
|
353
351
|
} | undefined;
|
|
@@ -63176,7 +63176,7 @@ function transferColumns(excelSheet, spreadSheet, options) {
|
|
|
63176
63176
|
for (let i = 0; i < (excelSheet.columns || []).length; i++) {
|
|
63177
63177
|
spreadSheet.cols[i.toString()] = {};
|
|
63178
63178
|
if (excelSheet.columns[i].width) {
|
|
63179
|
-
spreadSheet.cols[i.toString()].width = excelSheet.columns[i].width * 6 + (options.widthOffset || 0);
|
|
63179
|
+
spreadSheet.cols[i.toString()].width = defaultColWidth$1 + excelSheet.columns[i].width * 6 + (options.widthOffset || 0);
|
|
63180
63180
|
} else {
|
|
63181
63181
|
spreadSheet.cols[i.toString()].width = defaultColWidth$1 + (options.widthOffset || 0);
|
|
63182
63182
|
}
|
|
@@ -63321,10 +63321,10 @@ function getStyle(cell) {
|
|
|
63321
63321
|
}
|
|
63322
63322
|
if (cell.style.alignment) {
|
|
63323
63323
|
if (cell.style.alignment.horizontal) {
|
|
63324
|
-
cell.style.align =
|
|
63324
|
+
cell.style.align = "middle";
|
|
63325
63325
|
}
|
|
63326
63326
|
if (cell.style.alignment.vertical) {
|
|
63327
|
-
cell.style.valign =
|
|
63327
|
+
cell.style.valign = "top";
|
|
63328
63328
|
}
|
|
63329
63329
|
}
|
|
63330
63330
|
if (cell.style.alignment && cell.style.alignment.wrapText) {
|
|
@@ -63378,7 +63378,7 @@ function transferExcelToSpreadSheet(workbook, options) {
|
|
|
63378
63378
|
(sheet._rows || []).forEach((row, spreadSheetRowIndex) => {
|
|
63379
63379
|
sheetData.rows[spreadSheetRowIndex] = { cells: {} };
|
|
63380
63380
|
if (row.height) {
|
|
63381
|
-
sheetData.rows[spreadSheetRowIndex].height = row.height + (options.heightOffset || 0);
|
|
63381
|
+
sheetData.rows[spreadSheetRowIndex].height = defaultRowHeight$1 + row.height + (options.heightOffset || 0);
|
|
63382
63382
|
} else {
|
|
63383
63383
|
sheetData.rows[spreadSheetRowIndex].height = defaultRowHeight$1 + (options.heightOffset || 0);
|
|
63384
63384
|
}
|
|
@@ -16,7 +16,7 @@ async function Custom() {
|
|
|
16
16
|
const { renderPptx } = await import("./index-CGEx9VOA.js");
|
|
17
17
|
const { renderDocx } = await import("./docx-CHkPTdGU.js");
|
|
18
18
|
const { renderPdf } = await import("./pdf-Cx0VWKFo.js");
|
|
19
|
-
const { renderExcel } = await import("./index-
|
|
19
|
+
const { renderExcel } = await import("./index-5xtGTetN.js");
|
|
20
20
|
const requestUrlToBuffer = (src, options) => {
|
|
21
21
|
if (typeof XMLHttpRequest === "undefined") {
|
|
22
22
|
throw new Error("XMLHttpRequest is not defined");
|
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ declare module '@/public/*';
|
|
|
28
28
|
declare module '@/components/*';
|
|
29
29
|
declare module '@/plugins/*';
|
|
30
30
|
|
|
31
|
-
declare namespace Ran {
|
|
31
|
+
export declare namespace Ran {
|
|
32
32
|
interface Prompt {
|
|
33
33
|
content: string;
|
|
34
34
|
duration?: number;
|
|
@@ -45,11 +45,11 @@ declare namespace Ran {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
interface Ranui {
|
|
48
|
+
export interface Ranui {
|
|
49
49
|
message: Partial<Ran.Message>;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
interface HlsPlayer {
|
|
52
|
+
export interface HlsPlayer {
|
|
53
53
|
off: (s: string, f: Function) => void;
|
|
54
54
|
on: (s: string, f: Function) => void;
|
|
55
55
|
loadSource: (s: string) => void;
|
|
@@ -58,7 +58,7 @@ interface HlsPlayer {
|
|
|
58
58
|
startLoad(): () => void;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
interface Hls {
|
|
61
|
+
export interface Hls {
|
|
62
62
|
Events: {
|
|
63
63
|
MANIFEST_LOADED: 'hlsManifestLoaded';
|
|
64
64
|
ERROR: 'error';
|
|
@@ -66,51 +66,51 @@ interface Hls {
|
|
|
66
66
|
isSupported: () => boolean;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
type HLS = Hls & (new () => HlsPlayer);
|
|
69
|
+
export type HLS = Hls & (new () => HlsPlayer);
|
|
70
70
|
|
|
71
|
-
interface Viewport {
|
|
71
|
+
export interface Viewport {
|
|
72
72
|
width: number;
|
|
73
73
|
height: number;
|
|
74
74
|
viewBox: Array<number>;
|
|
75
75
|
}
|
|
76
|
-
interface RenderContext {
|
|
76
|
+
export interface RenderContext {
|
|
77
77
|
canvasContext: CanvasRenderingContext2D | null;
|
|
78
78
|
transform: Array<number>;
|
|
79
79
|
viewport: Viewport;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
interface PDFPageProxy {
|
|
82
|
+
export interface PDFPageProxy {
|
|
83
83
|
pageNumber: number;
|
|
84
84
|
getViewport: () => Viewport;
|
|
85
85
|
render: (options: RenderContext) => void;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
interface PDFDocumentProxy {
|
|
88
|
+
export interface PDFDocumentProxy {
|
|
89
89
|
numPages: number;
|
|
90
90
|
getPage: (x: number) => Promise<PDFPageProxy>;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
interface HTMLElement {
|
|
93
|
+
export interface HTMLElement {
|
|
94
94
|
mozRequestFullScreen: (options?: FullscreenOptions) => Promise<void>;
|
|
95
95
|
msRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
96
96
|
oRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
97
97
|
webkitRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
98
98
|
webkitEnterFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
99
99
|
}
|
|
100
|
-
declare interface Document {
|
|
100
|
+
export declare interface Document {
|
|
101
101
|
msExitFullscreen: () => Promise<void>;
|
|
102
102
|
mozCancelFullScreen: () => Promise<void>;
|
|
103
103
|
oCancelFullScreen: () => Promise<void>;
|
|
104
104
|
webkitExitFullscreen: () => Promise<void>;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
interface MathJax {
|
|
107
|
+
export interface MathJax {
|
|
108
108
|
texReset: () => void;
|
|
109
109
|
getMetricsFor: (x: HTMLElement) => object;
|
|
110
110
|
tex2chtmlPromise: (x: string, y: object) => Promise<Element>;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
declare interface Window {
|
|
113
|
+
export declare interface Window {
|
|
114
114
|
ranui: Partial<Ranui>;
|
|
115
115
|
message: Partial<Ran.Message>;
|
|
116
116
|
MathJax: MathJax;
|
|
@@ -128,7 +128,7 @@ declare interface Window {
|
|
|
128
128
|
Hls: HLS;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
namespace JSX {
|
|
131
|
+
export namespace JSX {
|
|
132
132
|
interface IntrinsicElements {
|
|
133
133
|
'r-loading': any & {
|
|
134
134
|
name: NAME_AMP;
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { i as i2 } from "./index-D4qUro5V.js";
|
|
|
3
3
|
import { i as i3 } from "./index-KS2nvVcO.js";
|
|
4
4
|
import { i as i4 } from "./index-C4Sv0T51.js";
|
|
5
5
|
import { i as i5 } from "./index-D_CA5VDZ.js";
|
|
6
|
-
import { i as i6 } from "./index-
|
|
6
|
+
import { i as i6 } from "./index-CwWOKbhV.js";
|
|
7
7
|
import { i as i7 } from "./index-BZR0HaP2.js";
|
|
8
8
|
import { i as i8 } from "./index-DAxs7Dd2.js";
|
|
9
9
|
import { i as i9 } from "./index-CFjEuvBW.js";
|
package/dist/preview.js
CHANGED