ranui 0.1.10-alpha.2 → 0.1.10-alpha.4
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/dist/{utils-74Icp-PI.js → arrow-down-Beig7FXI.js} +139 -28
- package/dist/assets/image/failImage.d.ts +2 -0
- package/dist/build/config.d.ts +3 -0
- package/dist/build/config.es.d.ts +2 -0
- package/dist/build/config.sha.d.ts +2 -0
- package/dist/build/config.umd.d.ts +2 -0
- package/dist/button.js +3 -3
- package/dist/checkbox.js +3 -3
- package/dist/colorpicker.js +7 -9
- package/dist/{colz-CRDozfZA.js → colz-DJZvo_8B.js} +3 -8
- package/dist/components/button/index.d.ts +39 -0
- package/dist/components/checkbox/index.d.ts +27 -0
- package/dist/components/colorpicker/index.d.ts +120 -0
- package/dist/components/dropdown/index.d.ts +28 -0
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/input/index.d.ts +209 -0
- package/dist/components/loading/index.d.ts +77 -0
- package/dist/components/math/index.d.ts +17 -0
- package/dist/components/message/index.d.ts +16 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/player/index.d.ts +238 -0
- package/dist/components/popover/content/index.d.ts +16 -0
- package/dist/components/popover/index.d.ts +59 -0
- package/dist/components/preview/colz.d.ts +72 -0
- package/dist/components/preview/constant.d.ts +5 -0
- package/dist/components/preview/docx.d.ts +8 -0
- package/dist/components/preview/excel/excel.d.ts +2 -0
- package/dist/components/preview/excel/index.d.ts +2 -0
- package/dist/components/preview/excel/media.d.ts +37 -0
- package/dist/components/preview/index.d.ts +3 -0
- package/dist/components/preview/pdf.d.ts +2 -0
- package/dist/components/preview/pptx/index.d.ts +19 -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/preview/types.d.ts +10 -0
- package/dist/components/progress/index.d.ts +41 -0
- package/dist/components/radar/index.d.ts +2 -0
- package/dist/components/scratch/index.d.ts +23 -0
- package/dist/components/select/dropdown-item/index.d.ts +23 -0
- package/dist/components/select/index.d.ts +115 -0
- package/dist/components/select/option/index.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/tab/index.d.ts +410 -0
- package/dist/components/tabpane/index.d.ts +354 -0
- package/dist/{docx-CChZ5Ycr.js → docx-CHkPTdGU.js} +1 -1
- package/dist/drop-4j4abxje.js +36 -0
- package/dist/icon.js +3 -3
- package/dist/iconShadowless.js +3 -3
- package/dist/image.js +1 -1
- package/dist/{index-BpOERe9M.js → index-BZR0HaP2.js} +1 -4
- package/dist/{index-B2yRe66F.js → index-BafnazTJ.js} +9 -17
- package/dist/{index-Dapt713u.js → index-Bl6-5Hp8.js} +2438 -4361
- package/dist/{index-ByBbFhvo.js → index-BqWbyjm2.js} +1165 -1831
- package/dist/{index-DqtzBqPN.js → index-C0Xh8vJ3.js} +12 -23
- package/dist/{index-DRi1ylHx.js → index-C1rSQlmc.js} +16 -23
- package/dist/{index-Cbp6LrE5.js → index-C4Sv0T51.js} +6 -12
- package/dist/index-CCxIoCAT.js +657 -0
- package/dist/{index-BHmWrPCW.js → index-CGEx9VOA.js} +866 -1662
- package/dist/{index-C-p_Wpit.js → index-CILRcFIV.js} +3 -6
- package/dist/index-COa4RzeW.js +105 -0
- package/dist/{index-B4bfIbdI.js → index-CWNtaUwu.js} +17 -25
- package/dist/{index-DytfjwBV.js → index-CjSKJE6S.js} +11 -15
- package/dist/{index-C6wPL-2Y.js → index-Ck9TOxFh.js} +22 -41
- package/dist/{index-BF8tJ6rR.js → index-CryFK9u4.js} +11 -21
- package/dist/{index-C1x9Popy.js → index-DAxs7Dd2.js} +5 -12
- package/dist/index-DBecKjmY.js +279 -0
- package/dist/{index-CSnBqUsQ.js → index-DC5EA657.js} +2 -6
- package/dist/index-DEcHDJ1m.js +306 -0
- package/dist/index-DL-1C2RQ.js +496 -0
- package/dist/index-DN-kAx-A.js +72 -0
- package/dist/{index-DRWOSfdF.js → index-DUF6lQQS.js} +15 -28
- package/dist/{index-Du-Biu-I.js → index-KS2nvVcO.js} +1 -4
- package/dist/{index-CFnsLnrb.js → index-WfFw4LJT.js} +42 -48
- package/dist/index.d.ts +231 -0
- package/dist/index.js +20 -26
- package/dist/input.js +2 -2
- package/dist/inputShadowless.js +2 -2
- package/dist/{jszip.min-DD9Dc6z4.js → jszip.min-Dhs3nUkD.js} +699 -1027
- package/dist/katex-es-B5r5vt3m.js +14628 -0
- package/dist/loading-scene-BMc2wqKm.js +4 -0
- package/dist/loading.js +4 -2
- package/dist/math.js +7 -0
- package/dist/message.js +3 -2
- package/dist/{pdf-DpNqCylD.js → pdf-Cx0VWKFo.js} +2 -5
- package/dist/player.js +4 -4
- package/dist/playwright.config.d.ts +9 -0
- package/dist/plugins/auto-import-file.d.ts +0 -0
- package/dist/plugins/load-style.d.ts +6 -0
- package/dist/plugins/load-svg.d.ts +9 -0
- package/dist/popover.js +4 -2
- package/dist/preview.js +4 -4
- package/dist/progress.js +3 -3
- package/dist/radar.js +3 -3
- package/dist/select.js +6 -6
- package/dist/selectShadowless.js +562 -8
- package/dist/shadowless/icon/index.d.ts +3 -0
- package/dist/shadowless/input/index.d.ts +210 -0
- package/dist/shadowless/select/index.d.ts +109 -0
- package/dist/shadowless/select/option/index.d.ts +2 -0
- package/dist/shadowless/shadowless/index.js +3 -9
- package/dist/shadowless.d.ts +3 -0
- package/dist/skeleton.js +1 -1
- package/dist/style.css +1 -1
- package/dist/tab.js +3 -3
- package/dist/tabpane.js +1 -1
- package/dist/tests/button.spec.d.ts +1 -0
- package/dist/tsconfig.json +3 -2
- package/dist/typings.d.ts +211 -0
- package/dist/umd/index.umd.cjs +9 -9
- package/dist/umd/shadowless/shadowless.umd.cjs +1 -1
- package/dist/umd/shadowless/style.css +1 -1
- package/dist/umd/style.css +1 -1
- package/dist/utils/color.d.ts +52 -0
- package/dist/utils/image.d.ts +32 -0
- package/dist/utils/index.d.ts +72 -0
- package/dist/utils/math.d.ts +26 -0
- package/dist/utils/tween.d.ts +21 -0
- package/dist/vite.config.d.ts +7 -0
- package/package.json +47 -38
- package/readme.md +7 -48
- package/typings.d.ts +113 -2
- package/dist/arrow-down-D4qr4m33.js +0 -30
- package/dist/content.js +0 -6
- package/dist/global-DOOKQmNv.js +0 -4
- package/dist/index-01Qfd9QI.js +0 -207
- package/dist/index-CWWI8SHO.js +0 -206
- package/dist/index-CbyMC6Yz.js +0 -59
- package/dist/index-Cr9AYoGT.js +0 -498
- package/dist/index-DLB8VOy7.js +0 -281
- package/dist/index-DsIUhdNt.js +0 -533
- package/dist/option.js +0 -92
|
@@ -0,0 +1,354 @@
|
|
|
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): boolean;
|
|
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
|
+
ariaDescription: string | null;
|
|
186
|
+
ariaDisabled: string | null;
|
|
187
|
+
ariaExpanded: string | null;
|
|
188
|
+
ariaHasPopup: string | null;
|
|
189
|
+
ariaHidden: string | null;
|
|
190
|
+
ariaInvalid: string | null;
|
|
191
|
+
ariaKeyShortcuts: string | null;
|
|
192
|
+
ariaLabel: string | null;
|
|
193
|
+
ariaLevel: string | null;
|
|
194
|
+
ariaLive: string | null;
|
|
195
|
+
ariaModal: string | null;
|
|
196
|
+
ariaMultiLine: string | null;
|
|
197
|
+
ariaMultiSelectable: string | null;
|
|
198
|
+
ariaOrientation: string | null;
|
|
199
|
+
ariaPlaceholder: string | null;
|
|
200
|
+
ariaPosInSet: string | null;
|
|
201
|
+
ariaPressed: string | null;
|
|
202
|
+
ariaReadOnly: string | null;
|
|
203
|
+
ariaRequired: string | null;
|
|
204
|
+
ariaRoleDescription: string | null;
|
|
205
|
+
ariaRowCount: string | null;
|
|
206
|
+
ariaRowIndex: string | null;
|
|
207
|
+
ariaRowSpan: string | null;
|
|
208
|
+
ariaSelected: string | null;
|
|
209
|
+
ariaSetSize: string | null;
|
|
210
|
+
ariaSort: string | null;
|
|
211
|
+
ariaValueMax: string | null;
|
|
212
|
+
ariaValueMin: string | null;
|
|
213
|
+
ariaValueNow: string | null;
|
|
214
|
+
ariaValueText: string | null;
|
|
215
|
+
role: string | null;
|
|
216
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
217
|
+
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
218
|
+
after(...nodes: (string | Node)[]): void;
|
|
219
|
+
before(...nodes: (string | Node)[]): void;
|
|
220
|
+
remove(): void;
|
|
221
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
222
|
+
innerHTML: string;
|
|
223
|
+
readonly nextElementSibling: Element | null;
|
|
224
|
+
readonly previousElementSibling: Element | null;
|
|
225
|
+
readonly childElementCount: number;
|
|
226
|
+
readonly children: HTMLCollection;
|
|
227
|
+
readonly firstElementChild: Element | null;
|
|
228
|
+
readonly lastElementChild: Element | null;
|
|
229
|
+
append(...nodes: (string | Node)[]): void;
|
|
230
|
+
prepend(...nodes: (string | Node)[]): void;
|
|
231
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
232
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
233
|
+
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
234
|
+
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
235
|
+
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
236
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
237
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
238
|
+
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
239
|
+
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
240
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
241
|
+
replaceChildren(...nodes: (string | Node)[]): void;
|
|
242
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
243
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
244
|
+
readonly style: CSSStyleDeclaration;
|
|
245
|
+
contentEditable: string;
|
|
246
|
+
enterKeyHint: string;
|
|
247
|
+
inputMode: string;
|
|
248
|
+
readonly isContentEditable: boolean;
|
|
249
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
250
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
251
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
252
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
253
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
254
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
255
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
256
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
257
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
258
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
259
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
260
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
261
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
262
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
263
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
264
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
265
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
266
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
267
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
268
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
269
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
270
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
271
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
272
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
273
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
274
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
275
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
276
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
277
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
278
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
279
|
+
onerror: OnErrorEventHandler;
|
|
280
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
281
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
282
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
283
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
284
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
285
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
286
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
287
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
288
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
289
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
290
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
291
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
292
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
293
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
294
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
295
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
296
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
297
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
298
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
299
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
300
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
301
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
302
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
303
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
304
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
305
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
306
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
307
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
308
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
309
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
310
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
311
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
312
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
313
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
314
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
315
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
316
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
317
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
318
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
319
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
320
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
321
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
322
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
323
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
324
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
325
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
326
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
327
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
328
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
329
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
330
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
331
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
332
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
333
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
334
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
335
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
336
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
337
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
338
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
339
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
340
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
341
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
342
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
343
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
344
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
345
|
+
autofocus: boolean;
|
|
346
|
+
readonly dataset: DOMStringMap;
|
|
347
|
+
nonce?: string | undefined;
|
|
348
|
+
tabIndex: number;
|
|
349
|
+
blur(): void;
|
|
350
|
+
focus(options?: FocusOptions | undefined): void;
|
|
351
|
+
};
|
|
352
|
+
readonly observedAttributes: string[];
|
|
353
|
+
} | undefined;
|
|
354
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as JSZip } from "./jszip.min-
|
|
1
|
+
import { J as JSZip } from "./jszip.min-Dhs3nUkD.js";
|
|
2
2
|
var RelationshipTypes;
|
|
3
3
|
(function(RelationshipTypes2) {
|
|
4
4
|
RelationshipTypes2["OfficeDocument"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const str2Xml = (xmlStr, format = "text/xml") => {
|
|
2
|
+
if (window.DOMParser) return new window.DOMParser().parseFromString(xmlStr, format).documentElement;
|
|
3
|
+
if (typeof window.ActiveXObject !== "undefined") {
|
|
4
|
+
const xmlDoc = new window.ActiveXObject("Microsoft.XMLDOM");
|
|
5
|
+
xmlDoc.async = "false";
|
|
6
|
+
xmlDoc.loadXML(xmlStr);
|
|
7
|
+
return xmlDoc;
|
|
8
|
+
}
|
|
9
|
+
return void 0;
|
|
10
|
+
};
|
|
11
|
+
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
12
|
+
const v = glob[path];
|
|
13
|
+
if (v) {
|
|
14
|
+
return typeof v === "function" ? v() : Promise.resolve(v);
|
|
15
|
+
}
|
|
16
|
+
return new Promise((_, reject) => {
|
|
17
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
18
|
+
reject.bind(
|
|
19
|
+
null,
|
|
20
|
+
new Error(
|
|
21
|
+
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
|
22
|
+
)
|
|
23
|
+
)
|
|
24
|
+
);
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const drop = { "success": true, "_identification": true, "data": '<svg>\n <filter id="liquid">\n <feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur"></feGaussianBlur>\n <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7" result="liquid"></feColorMatrix>\n </filter>\n </svg>\n' };
|
|
28
|
+
const drop$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29
|
+
__proto__: null,
|
|
30
|
+
default: drop
|
|
31
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
32
|
+
export {
|
|
33
|
+
__variableDynamicImportRuntimeHelper as _,
|
|
34
|
+
drop$1 as d,
|
|
35
|
+
str2Xml as s
|
|
36
|
+
};
|
package/dist/icon.js
CHANGED
package/dist/iconShadowless.js
CHANGED
package/dist/image.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
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
|
-
};
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
4
|
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}@keyframes skeleton{0%{transform:translate(-37.5%)}to{transform:translate(37.5%)}}.ran-skeleton{position:relative;z-index:0;overflow:hidden;background:0 0;width:100%;height:16px;background:#0000000f;border-radius:4px}.ran-skeleton:after{position:absolute;top:0;inset-inline-end:-150%;bottom:0;inset-inline-start:-150%;background:linear-gradient(90deg,#0000000f 25%,#00000026 37%,#0000000f 63%);animation-name:skeleton;animation-duration:1.4s;animation-timing-function:ease;animation-iteration-count:infinite;content:""}';
|
|
8
5
|
function Skeleton() {
|
|
9
6
|
if (typeof window !== "undefined" && !customElements.get("r-skeleton")) {
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
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
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
import { c as currentDevice } from "./utils-74Icp-PI.js";
|
|
8
|
-
import { H as HTMLElementSSR, i as isDisabled, f as falseList, c as createCustomError } from "./index-CSnBqUsQ.js";
|
|
9
|
-
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{position:var(--ran-btn-position, relative);display:var(--ran-btn-display, inline-block);background-image:var(--ran-btn-background-image, none);box-shadow:var(--ran-btn-box-shadow, 0 2px #00000004);cursor:var(--ran-btn-cursor, pointer);-webkit-user-select:var(--ran-btn-user-select, none);user-select:var(--ran-btn-user-select, none);touch-action:var(--ran-btn-touch-action, manipulation);overflow:var(--ran-btn-overflow, hidden);pointer-events:var(--ran-btn-pointer-events, auto)}:host .ran-btn{position:relative;display:inline-block;background-image:none;cursor:pointer;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;user-select:none;touch-action:manipulation;background:#fff}:host,:host(:active),:host(:focus){outline:0;-webkit-tap-highlight-color:transparent}:host .ran-btn,:host(:active) .ran-btn,:host(:focus) .ran-btn{outline:0}:host(:not([disabled]):hover) .ran-btn-content{border-color:var(--ran-btn-content-hover-border-color, #1890ff);color:var(--ran-btn-content-hover-color, #1890ff)}:host([type="primary"]) .ran-btn-content{background-color:var(--ran-btn-content-background-color, #1890ff);border-color:var(--ran-btn-content-border-color, #1890ff);color:var(--ran-btn-content-color, #fff)}:host([type="primary"]:not([disabled])) .ran-btn:after{background-image:var(--ran-btn-after-background-image, radial-gradient(circle, #fff 10%, transparent 10.01%))}:host([type="primary"]:not([disabled]):hover) .ran-btn-content{background-color:var(--ran-btn-content-hover-background-color, #40a9ff);color:var(--ran-btn-content-hover-color, #fff)}:host([type="warning"]) .ran-btn-content{border-color:#ff4d4f;background-color:#ff4d4f;color:#fff}:host([type="warning"]:not([disabled])) .ran-btn:after{background-image:radial-gradient(circle,#fff 10%,transparent 10.01%)}:host([type="warning"]:not([disabled]):hover) .ran-btn-content{border-color:#ff4d4f;background-color:#ff4d4f;color:#fff}:host([type="text"]) .ran-btn-content{border:none}:host([disabled]){cursor:not-allowed;pointer-events:all;opacity:.6}:host([disabled]) .ran-btn{cursor:not-allowed;pointer-events:all;opacity:.6}:host(:not([disabled]):active) .ran-btn:after{transform:translate(-50%,-50%) scale(0);opacity:.3;transition:0s}@media (min-width: 1024px){:host(:not([disabled],[effect])) .ran-btn:after{content:"";display:block;position:absolute;width:100%;height:100%;left:var(--ran-x, 0);top:var(--ran-y, 0);pointer-events:none;background-image:radial-gradient(circle,#1890ff 10%,transparent 10.01%);background-repeat:no-repeat;background-position:50%;transform:translate(-50%,-50%) scale(10);opacity:0;transition:transform .3s,opacity .8s}}:host .slot{display:block}.ran-btn-content{display:flex;justify-content:space-between;align-items:center;padding:4px 15px;border:1px solid transparent;border-radius:2px;border-color:#d9d9d9;color:#000000d9;line-height:22px;font-size:14px;font-weight:400;white-space:nowrap;text-align:center}.ran-btn-content .icon{margin-right:2px}';
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
+
import { b as currentDevice } from "./arrow-down-Beig7FXI.js";
|
|
5
|
+
import { H as HTMLElementSSR, i as isDisabled, f as falseList, c as createCustomError } from "./index-DC5EA657.js";
|
|
6
|
+
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{position:var(--ran-btn-position, relative);display:var(--ran-btn-display, inline-block);background-image:var(--ran-btn-background-image, none);box-shadow:var(--ran-btn-box-shadow, 0 2px #00000004);cursor:var(--ran-btn-cursor, pointer);-webkit-user-select:var(--ran-btn-user-select, none);user-select:var(--ran-btn-user-select, none);touch-action:var(--ran-btn-touch-action, manipulation);overflow:var(--ran-btn-overflow, hidden);pointer-events:var(--ran-btn-pointer-events, auto)}:host .ran-btn{position:var(--ran-btn-contain-position, relative);display:var(--ran-btn-contain-display, inline-block);background-image:var(--ran-btn-contain-background-image, none);cursor:var(--ran-btn-contain-cursor, pointer);transition:var(--ran-btn-contain-transition, all .3s cubic-bezier(.645, .045, .355, 1));-webkit-user-select:var(--ran-btn-contain-user-select, none);user-select:var(--ran-btn-contain-user-select, none);touch-action:var(--ran-btn-contain-touch-action, manipulation);background:var(--ran-btn-contain-background, #fff)}:host,:host(:active),:host(:focus){outline:0;-webkit-tap-highlight-color:transparent}:host .ran-btn,:host(:active) .ran-btn,:host(:focus) .ran-btn{outline:var(--ran-btn-contain-outline, 0)}:host(:not([disabled]):hover) .ran-btn-content{border-color:var(--ran-btn-content-hover-border-color, #1890ff);color:var(--ran-btn-content-hover-color, #1890ff)}:host([type="primary"]) .ran-btn-content{background-color:var(--ran-btn-content-background-color, #1890ff);border-color:var(--ran-btn-content-border-color, #1890ff);color:var(--ran-btn-content-color, #fff)}:host([type="primary"]:not([disabled])) .ran-btn:after{background-image:var(--ran-btn-after-background-image, radial-gradient(circle, #fff 10%, transparent 10.01%))}:host([type="primary"]:not([disabled]):hover) .ran-btn-content{background-color:var(--ran-btn-content-hover-background-color, #40a9ff);color:var(--ran-btn-content-hover-color, #fff)}:host([type="warning"]) .ran-btn-content{border-color:var(--ran-btn-content-warning-border-color, #ff4d4f);background-color:var(--ran-btn-content-warning-background-color, #ff4d4f);color:var(--ran-btn-content-warning-color, #fff)}:host([type="warning"]:not([disabled])) .ran-btn:after{background-image:var(--ran-btn-after-background-image, radial-gradient(circle, #fff 10%, transparent 10.01%))}:host([type="warning"]:not([disabled]):hover) .ran-btn-content{border-color:var(--ran-btn-content-warning-border-color, #ff4d4f);background-color:var(--ran-btn-content-warning-background-color, #ff4d4f);color:var(--ran-btn-content-warning-color, #fff)}:host([type="text"]) .ran-btn-content{border:var(--ran-btn-content-text-border, none)}:host([disabled]){cursor:var(--ran-btn-disabled-cursor, not-allowed);pointer-events:var(--ran-btn-disabled-pointer-events, all);opacity:var(--ran-btn-disabled-opacity, .6)}:host([disabled]) .ran-btn{cursor:var(--ran-btn-disabled-container-cursor, not-allowed);pointer-events:var(--ran-btn-disabled-container-pointer-events, all);opacity:var(--ran-btn-disabled-container-opacity, .6)}:host(:not([disabled]):active) .ran-btn:after{transform:var(--ran-btn-after-transform, translate(-50%, -50%) scale(0));opacity:var(--ran-btn-after-opacity, .3);transition:var(--ran-btn-after-transition, 0s)}@media (min-width: 1024px){:host(:not([disabled],[effect])) .ran-btn:after{content:"";display:block;position:absolute;width:100%;height:100%;left:var(--ran-x, 0);top:var(--ran-y, 0);pointer-events:none;background-image:radial-gradient(circle,#1890ff 10%,transparent 10.01%);background-repeat:no-repeat;background-position:50%;transform:translate(-50%,-50%) scale(10);opacity:0;transition:transform .3s,opacity .8s}}:host .slot{display:var(--ran-btn-slot-display, block)}.ran-btn-content{display:var(--ran-btn-content-display, flex);justify-content:var(--ran-btn-content-display, space-between);align-items:var(--ran-btn-content-align-items, center);padding:var(--ran-btn-content-padding, 4px 15px);border:var(--ran-btn-content-border, 1px solid transparent);border-radius:var(--ran-btn-content-border-radius, 2px);border-color:var(--ran-btn-content-border-color, #d9d9d9);color:var(--ran-btn-content-color, #000000d9);line-height:var(--ran-btn-content-line-height, 22px);font-size:var(--ran-btn-content-font-size, 14px);font-weight:var(--ran-btn-content-font-weight, 400);white-space:var(--ran-btn-content-white-space, nowrap);text-align:var(--ran-btn-content-text-align, center)}.ran-btn-content .icon{margin-right:var(--ran-btn-icon-margin-right, 2px)}';
|
|
10
7
|
class Button extends HTMLElementSSR() {
|
|
11
8
|
constructor() {
|
|
12
9
|
super();
|
|
@@ -41,8 +38,7 @@ class Button extends HTMLElementSSR() {
|
|
|
41
38
|
}
|
|
42
39
|
});
|
|
43
40
|
__publicField(this, "mousedown", (event) => {
|
|
44
|
-
if (currentDevice() !== "pc")
|
|
45
|
-
return;
|
|
41
|
+
if (currentDevice() !== "pc") return;
|
|
46
42
|
if (!this.disabled || this.disabled === "false") {
|
|
47
43
|
this.debounceMouseEvent();
|
|
48
44
|
const { left, top } = this.getBoundingClientRect();
|
|
@@ -51,10 +47,8 @@ class Button extends HTMLElementSSR() {
|
|
|
51
47
|
}
|
|
52
48
|
});
|
|
53
49
|
__publicField(this, "mouseup", (event) => {
|
|
54
|
-
if (currentDevice() !== "pc")
|
|
55
|
-
|
|
56
|
-
if (this.debounceTimeId)
|
|
57
|
-
return;
|
|
50
|
+
if (currentDevice() !== "pc") return;
|
|
51
|
+
if (this.debounceTimeId) return;
|
|
58
52
|
this.debounceTimeId = setTimeout(() => {
|
|
59
53
|
this._btn.style.removeProperty("--ran-x");
|
|
60
54
|
this._btn.style.removeProperty("--ran-y");
|
|
@@ -166,12 +160,10 @@ class Button extends HTMLElementSSR() {
|
|
|
166
160
|
this._btnContent.removeAttribute("disabled");
|
|
167
161
|
}
|
|
168
162
|
}
|
|
169
|
-
if (name === "icon" && this._btnContent && oldValue !== newValue)
|
|
170
|
-
this.setIcon();
|
|
163
|
+
if (name === "icon" && this._btnContent && oldValue !== newValue) this.setIcon();
|
|
171
164
|
if (name === "iconSize" && this._btnContent && oldValue !== newValue)
|
|
172
165
|
this._btnContent.setAttribute("iconSize", newValue);
|
|
173
|
-
if (name === "sheet" && this._shadowDom && oldValue !== newValue)
|
|
174
|
-
this.handlerExternalCss();
|
|
166
|
+
if (name === "sheet" && this._shadowDom && oldValue !== newValue) this.handlerExternalCss();
|
|
175
167
|
}
|
|
176
168
|
}
|
|
177
169
|
function Custom() {
|