ranui 0.1.10-alpha.4 → 0.1.10-alpha.6
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/button.js +1 -1
- package/dist/colorpicker.js +3 -3
- 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 +2 -3
- package/dist/components/tab/index.d.ts +53 -50
- package/dist/components/tabpane/index.d.ts +54 -51
- package/dist/{index-BafnazTJ.js → index-D4twPONc.js} +1 -1
- package/dist/{index-CCxIoCAT.js → index-D83djTVa.js} +11 -9
- package/dist/{index-BqWbyjm2.js → index-DHTzB_6b.js} +1 -1
- package/dist/{index-DEcHDJ1m.js → index-TlwIh-o2.js} +1 -1
- package/dist/{index-C1rSQlmc.js → index-lLO-8KJ1.js} +1 -1
- package/dist/{index-DUF6lQQS.js → index-oD-_YELB.js} +9 -6
- package/dist/{index-COa4RzeW.js → index-qvcQTV5_.js} +1 -1
- package/dist/index.js +6 -6
- package/dist/player.js +2 -2
- package/dist/popover.js +2 -2
- package/dist/progress.js +1 -1
- package/dist/select.js +2 -2
- package/dist/shadowless/select/index.d.ts +0 -1
- package/dist/shadowless.js +8 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.json +1 -0
- package/dist/typings.d.ts +100 -99
- package/dist/umd/index.umd.cjs +2 -2
- package/dist/umd/style.css +1 -1
- package/package.json +23 -23
- package/dist/shadowless/shadowless/index.js +0 -8
package/dist/button.js
CHANGED
package/dist/colorpicker.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./arrow-down-Beig7FXI.js";
|
|
2
2
|
import "./index-DC5EA657.js";
|
|
3
|
-
import { C, a } from "./index-
|
|
4
|
-
import "./index-
|
|
3
|
+
import { C, a } from "./index-oD-_YELB.js";
|
|
4
|
+
import "./index-TlwIh-o2.js";
|
|
5
5
|
import "./index-WfFw4LJT.js";
|
|
6
6
|
import "./selectShadowless.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-lLO-8KJ1.js";
|
|
8
8
|
export {
|
|
9
9
|
C as ColorPicker,
|
|
10
10
|
a as default
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import '@/components/select/option';
|
|
3
2
|
import '@/components/dropdown';
|
|
4
3
|
import '@/components/select/dropdown-item';
|
|
@@ -71,12 +70,12 @@ export declare class Select extends Select_base {
|
|
|
71
70
|
* @return {*}
|
|
72
71
|
*/
|
|
73
72
|
selectMouseDown: (e: Event) => void;
|
|
74
|
-
removeDropDownTimeId: () => void;
|
|
73
|
+
removeDropDownTimeId: (e: Event) => void;
|
|
75
74
|
/**
|
|
76
75
|
* @description: 焦点移除的情况,需要移除 select 下拉框
|
|
77
76
|
* @return {*}
|
|
78
77
|
*/
|
|
79
|
-
selectBlur: () => void;
|
|
78
|
+
selectBlur: (e: Event) => void;
|
|
80
79
|
/**
|
|
81
80
|
* @description: 选中一个选项的情况
|
|
82
81
|
* @param {MouseEvent} e
|
|
@@ -98,16 +98,16 @@ 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
|
|
107
|
-
msRequestFullscreen: (options?: FullscreenOptions
|
|
108
|
-
oRequestFullscreen: (options?: FullscreenOptions
|
|
109
|
-
webkitRequestFullscreen: (options?: FullscreenOptions
|
|
110
|
-
webkitEnterFullscreen: (options?: FullscreenOptions
|
|
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;
|
|
106
|
+
mozRequestFullScreen: (options?: FullscreenOptions) => Promise<void>;
|
|
107
|
+
msRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
108
|
+
oRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
109
|
+
webkitRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
110
|
+
webkitEnterFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
111
111
|
readonly attributes: NamedNodeMap;
|
|
112
112
|
readonly classList: DOMTokenList;
|
|
113
113
|
className: string;
|
|
@@ -132,10 +132,10 @@ declare const _default: {
|
|
|
132
132
|
slot: string;
|
|
133
133
|
readonly tagName: string;
|
|
134
134
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
135
|
-
checkVisibility(options?: CheckVisibilityOptions
|
|
136
|
-
closest<
|
|
137
|
-
closest<
|
|
138
|
-
closest<
|
|
135
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
136
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
137
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
138
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
139
139
|
closest<E extends Element = Element>(selectors: string): E | null;
|
|
140
140
|
computedStyleMap(): StylePropertyMapReadOnly;
|
|
141
141
|
getAttribute(qualifiedName: string): string | null;
|
|
@@ -146,10 +146,10 @@ declare const _default: {
|
|
|
146
146
|
getBoundingClientRect(): DOMRect;
|
|
147
147
|
getClientRects(): DOMRectList;
|
|
148
148
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
149
|
-
getElementsByTagName<
|
|
150
|
-
getElementsByTagName<
|
|
151
|
-
getElementsByTagName<
|
|
152
|
-
getElementsByTagName<
|
|
149
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
150
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
151
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
152
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
153
153
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
154
154
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
155
155
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
@@ -167,21 +167,22 @@ declare const _default: {
|
|
|
167
167
|
removeAttribute(qualifiedName: string): void;
|
|
168
168
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
169
169
|
removeAttributeNode(attr: Attr): Attr;
|
|
170
|
-
requestFullscreen(options?: FullscreenOptions
|
|
170
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
171
171
|
requestPointerLock(): void;
|
|
172
|
-
scroll(options?: ScrollToOptions
|
|
172
|
+
scroll(options?: ScrollToOptions): void;
|
|
173
173
|
scroll(x: number, y: number): void;
|
|
174
|
-
scrollBy(options?: ScrollToOptions
|
|
174
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
175
175
|
scrollBy(x: number, y: number): void;
|
|
176
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions
|
|
177
|
-
scrollTo(options?: ScrollToOptions
|
|
176
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
177
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
178
178
|
scrollTo(x: number, y: number): void;
|
|
179
179
|
setAttribute(qualifiedName: string, value: string): void;
|
|
180
180
|
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
181
181
|
setAttributeNode(attr: Attr): Attr | null;
|
|
182
182
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
183
|
+
setHTMLUnsafe(html: string): void;
|
|
183
184
|
setPointerCapture(pointerId: number): void;
|
|
184
|
-
toggleAttribute(qualifiedName: string, force?: boolean
|
|
185
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
185
186
|
webkitMatchesSelector(selectors: string): boolean;
|
|
186
187
|
readonly baseURI: string;
|
|
187
188
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
@@ -197,20 +198,20 @@ declare const _default: {
|
|
|
197
198
|
readonly previousSibling: ChildNode | null;
|
|
198
199
|
textContent: string | null;
|
|
199
200
|
appendChild<T extends Node>(node: T): T;
|
|
200
|
-
cloneNode(deep?: boolean
|
|
201
|
+
cloneNode(deep?: boolean): Node;
|
|
201
202
|
compareDocumentPosition(other: Node): number;
|
|
202
203
|
contains(other: Node | null): boolean;
|
|
203
|
-
getRootNode(options?: GetRootNodeOptions
|
|
204
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
204
205
|
hasChildNodes(): boolean;
|
|
205
|
-
insertBefore<
|
|
206
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
206
207
|
isDefaultNamespace(namespace: string | null): boolean;
|
|
207
208
|
isEqualNode(otherNode: Node | null): boolean;
|
|
208
209
|
isSameNode(otherNode: Node | null): boolean;
|
|
209
210
|
lookupNamespaceURI(prefix: string | null): string | null;
|
|
210
211
|
lookupPrefix(namespace: string | null): string | null;
|
|
211
212
|
normalize(): void;
|
|
212
|
-
removeChild<
|
|
213
|
-
replaceChild<
|
|
213
|
+
removeChild<T extends Node>(child: T): T;
|
|
214
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
214
215
|
readonly ELEMENT_NODE: 1;
|
|
215
216
|
readonly ATTRIBUTE_NODE: 2;
|
|
216
217
|
readonly TEXT_NODE: 3;
|
|
@@ -232,6 +233,8 @@ declare const _default: {
|
|
|
232
233
|
dispatchEvent(event: Event): boolean;
|
|
233
234
|
ariaAtomic: string | null;
|
|
234
235
|
ariaAutoComplete: string | null;
|
|
236
|
+
ariaBrailleLabel: string | null;
|
|
237
|
+
ariaBrailleRoleDescription: string | null;
|
|
235
238
|
ariaBusy: string | null;
|
|
236
239
|
ariaChecked: string | null;
|
|
237
240
|
ariaColCount: string | null;
|
|
@@ -269,12 +272,12 @@ declare const _default: {
|
|
|
269
272
|
ariaValueNow: string | null;
|
|
270
273
|
ariaValueText: string | null;
|
|
271
274
|
role: string | null;
|
|
272
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions
|
|
273
|
-
getAnimations(options?: GetAnimationsOptions
|
|
274
|
-
after(...nodes: (
|
|
275
|
-
before(...nodes: (
|
|
275
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
276
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
277
|
+
after(...nodes: (Node | string)[]): void;
|
|
278
|
+
before(...nodes: (Node | string)[]): void;
|
|
276
279
|
remove(): void;
|
|
277
|
-
replaceWith(...nodes: (
|
|
280
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
278
281
|
innerHTML: string;
|
|
279
282
|
readonly nextElementSibling: Element | null;
|
|
280
283
|
readonly previousElementSibling: Element | null;
|
|
@@ -282,19 +285,19 @@ declare const _default: {
|
|
|
282
285
|
readonly children: HTMLCollection;
|
|
283
286
|
readonly firstElementChild: Element | null;
|
|
284
287
|
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: (
|
|
288
|
+
append(...nodes: (Node | string)[]): void;
|
|
289
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
290
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
291
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
292
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
293
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
294
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
295
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
296
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
297
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
298
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
299
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
300
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
298
301
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
299
302
|
readonly attributeStyleMap: StylePropertyMap;
|
|
300
303
|
readonly style: CSSStyleDeclaration;
|
|
@@ -365,7 +368,7 @@ declare const _default: {
|
|
|
365
368
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
366
369
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
367
370
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
368
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent
|
|
371
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
369
372
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
370
373
|
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
371
374
|
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
@@ -400,10 +403,10 @@ declare const _default: {
|
|
|
400
403
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
401
404
|
autofocus: boolean;
|
|
402
405
|
readonly dataset: DOMStringMap;
|
|
403
|
-
nonce?: string
|
|
406
|
+
nonce?: string;
|
|
404
407
|
tabIndex: number;
|
|
405
408
|
blur(): void;
|
|
406
|
-
focus(options?: FocusOptions
|
|
409
|
+
focus(options?: FocusOptions): void;
|
|
407
410
|
};
|
|
408
411
|
readonly observedAttributes: string[];
|
|
409
412
|
} | 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,16 @@ 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
|
|
51
|
-
msRequestFullscreen: (options?: FullscreenOptions
|
|
52
|
-
oRequestFullscreen: (options?: FullscreenOptions
|
|
53
|
-
webkitRequestFullscreen: (options?: FullscreenOptions
|
|
54
|
-
webkitEnterFullscreen: (options?: FullscreenOptions
|
|
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;
|
|
50
|
+
mozRequestFullScreen: (options?: FullscreenOptions) => Promise<void>;
|
|
51
|
+
msRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
52
|
+
oRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
53
|
+
webkitRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
54
|
+
webkitEnterFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
55
55
|
readonly attributes: NamedNodeMap;
|
|
56
56
|
readonly classList: DOMTokenList;
|
|
57
57
|
className: string;
|
|
@@ -76,10 +76,10 @@ declare const _default: {
|
|
|
76
76
|
slot: string;
|
|
77
77
|
readonly tagName: string;
|
|
78
78
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
79
|
-
checkVisibility(options?: CheckVisibilityOptions
|
|
80
|
-
closest<
|
|
81
|
-
closest<
|
|
82
|
-
closest<
|
|
79
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
80
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
81
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
82
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
83
83
|
closest<E extends Element = Element>(selectors: string): E | null;
|
|
84
84
|
computedStyleMap(): StylePropertyMapReadOnly;
|
|
85
85
|
getAttribute(qualifiedName: string): string | null;
|
|
@@ -90,10 +90,10 @@ declare const _default: {
|
|
|
90
90
|
getBoundingClientRect(): DOMRect;
|
|
91
91
|
getClientRects(): DOMRectList;
|
|
92
92
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
93
|
-
getElementsByTagName<
|
|
94
|
-
getElementsByTagName<
|
|
95
|
-
getElementsByTagName<
|
|
96
|
-
getElementsByTagName<
|
|
93
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
94
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
95
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
96
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
97
97
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
98
98
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
99
99
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
@@ -111,21 +111,22 @@ declare const _default: {
|
|
|
111
111
|
removeAttribute(qualifiedName: string): void;
|
|
112
112
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
113
113
|
removeAttributeNode(attr: Attr): Attr;
|
|
114
|
-
requestFullscreen(options?: FullscreenOptions
|
|
114
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
115
115
|
requestPointerLock(): void;
|
|
116
|
-
scroll(options?: ScrollToOptions
|
|
116
|
+
scroll(options?: ScrollToOptions): void;
|
|
117
117
|
scroll(x: number, y: number): void;
|
|
118
|
-
scrollBy(options?: ScrollToOptions
|
|
118
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
119
119
|
scrollBy(x: number, y: number): void;
|
|
120
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions
|
|
121
|
-
scrollTo(options?: ScrollToOptions
|
|
120
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
121
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
122
122
|
scrollTo(x: number, y: number): void;
|
|
123
123
|
setAttribute(qualifiedName: string, value: string): void;
|
|
124
124
|
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
125
125
|
setAttributeNode(attr: Attr): Attr | null;
|
|
126
126
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
127
|
+
setHTMLUnsafe(html: string): void;
|
|
127
128
|
setPointerCapture(pointerId: number): void;
|
|
128
|
-
toggleAttribute(qualifiedName: string, force?: boolean
|
|
129
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
129
130
|
webkitMatchesSelector(selectors: string): boolean;
|
|
130
131
|
readonly baseURI: string;
|
|
131
132
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
@@ -141,20 +142,20 @@ declare const _default: {
|
|
|
141
142
|
readonly previousSibling: ChildNode | null;
|
|
142
143
|
textContent: string | null;
|
|
143
144
|
appendChild<T extends Node>(node: T): T;
|
|
144
|
-
cloneNode(deep?: boolean
|
|
145
|
+
cloneNode(deep?: boolean): Node;
|
|
145
146
|
compareDocumentPosition(other: Node): number;
|
|
146
147
|
contains(other: Node | null): boolean;
|
|
147
|
-
getRootNode(options?: GetRootNodeOptions
|
|
148
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
148
149
|
hasChildNodes(): boolean;
|
|
149
|
-
insertBefore<
|
|
150
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
150
151
|
isDefaultNamespace(namespace: string | null): boolean;
|
|
151
152
|
isEqualNode(otherNode: Node | null): boolean;
|
|
152
153
|
isSameNode(otherNode: Node | null): boolean;
|
|
153
154
|
lookupNamespaceURI(prefix: string | null): string | null;
|
|
154
155
|
lookupPrefix(namespace: string | null): string | null;
|
|
155
156
|
normalize(): void;
|
|
156
|
-
removeChild<
|
|
157
|
-
replaceChild<
|
|
157
|
+
removeChild<T extends Node>(child: T): T;
|
|
158
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
158
159
|
readonly ELEMENT_NODE: 1;
|
|
159
160
|
readonly ATTRIBUTE_NODE: 2;
|
|
160
161
|
readonly TEXT_NODE: 3;
|
|
@@ -176,6 +177,8 @@ declare const _default: {
|
|
|
176
177
|
dispatchEvent(event: Event): boolean;
|
|
177
178
|
ariaAtomic: string | null;
|
|
178
179
|
ariaAutoComplete: string | null;
|
|
180
|
+
ariaBrailleLabel: string | null;
|
|
181
|
+
ariaBrailleRoleDescription: string | null;
|
|
179
182
|
ariaBusy: string | null;
|
|
180
183
|
ariaChecked: string | null;
|
|
181
184
|
ariaColCount: string | null;
|
|
@@ -213,12 +216,12 @@ declare const _default: {
|
|
|
213
216
|
ariaValueNow: string | null;
|
|
214
217
|
ariaValueText: string | null;
|
|
215
218
|
role: string | null;
|
|
216
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions
|
|
217
|
-
getAnimations(options?: GetAnimationsOptions
|
|
218
|
-
after(...nodes: (
|
|
219
|
-
before(...nodes: (
|
|
219
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
220
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
221
|
+
after(...nodes: (Node | string)[]): void;
|
|
222
|
+
before(...nodes: (Node | string)[]): void;
|
|
220
223
|
remove(): void;
|
|
221
|
-
replaceWith(...nodes: (
|
|
224
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
222
225
|
innerHTML: string;
|
|
223
226
|
readonly nextElementSibling: Element | null;
|
|
224
227
|
readonly previousElementSibling: Element | null;
|
|
@@ -226,19 +229,19 @@ declare const _default: {
|
|
|
226
229
|
readonly children: HTMLCollection;
|
|
227
230
|
readonly firstElementChild: Element | null;
|
|
228
231
|
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: (
|
|
232
|
+
append(...nodes: (Node | string)[]): void;
|
|
233
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
234
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
235
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
236
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
237
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
238
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
239
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
240
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
241
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
242
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
243
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
244
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
242
245
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
243
246
|
readonly attributeStyleMap: StylePropertyMap;
|
|
244
247
|
readonly style: CSSStyleDeclaration;
|
|
@@ -309,7 +312,7 @@ declare const _default: {
|
|
|
309
312
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
310
313
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
311
314
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
312
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent
|
|
315
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
313
316
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
314
317
|
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
315
318
|
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
@@ -344,10 +347,10 @@ declare const _default: {
|
|
|
344
347
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
345
348
|
autofocus: boolean;
|
|
346
349
|
readonly dataset: DOMStringMap;
|
|
347
|
-
nonce?: string
|
|
350
|
+
nonce?: string;
|
|
348
351
|
tabIndex: number;
|
|
349
352
|
blur(): void;
|
|
350
|
-
focus(options?: FocusOptions
|
|
353
|
+
focus(options?: FocusOptions): void;
|
|
351
354
|
};
|
|
352
355
|
readonly observedAttributes: string[];
|
|
353
356
|
} | undefined;
|
|
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { b as currentDevice } from "./arrow-down-Beig7FXI.js";
|
|
5
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(
|
|
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([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%))}@media (min-width: 1024px){: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"]: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"]: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="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="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)}';
|
|
7
7
|
class Button extends HTMLElementSSR() {
|
|
8
8
|
constructor() {
|
|
9
9
|
super();
|
|
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { c as create, a as addClassToElement, r as removeClassToElement, i as isMobile, f as generateThrottle } from "./arrow-down-Beig7FXI.js";
|
|
5
5
|
import { c as createCustomError, i as isDisabled, H as HTMLElementSSR } from "./index-DC5EA657.js";
|
|
6
|
-
import "./index-
|
|
6
|
+
import "./index-qvcQTV5_.js";
|
|
7
7
|
import "./index-Ck9TOxFh.js";
|
|
8
8
|
import "./index-C4Sv0T51.js";
|
|
9
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}r-select{position:var(--ran-select, relative);width:var(--ran-select, 120px);height:var(--ran-select, 40px)}:host{position:var(--ran-select-host, relative);display:var(--ran-select-host, inline-block);cursor:var(--ran-select-host, pointer);height:var(--ran-select-host, 32px);outline:var(--ran-select-host, 0);-webkit-tap-highlight-color:var(--ran-select-host-highlight-color, transparent)}:host,:host(:focus),:host(:active){outline:var(--ran-select-host-focus-outline, 0);-webkit-tap-highlight-color:transparent}:host ::slotted(r-option){display:none}:host([disabled]){cursor:var(--ran-select-host-disabled-cursor, not-allowed);pointer-events:var(--ran-select-host-disabled-pointer-events, all);opacity:var(--ran-select-host-disabled-opacity, .6)}:host([type="text"])::part(selection){border:none}:host([type="text"])::part(icon){display:none}:host(:not([disabled]):hover) .select{cursor:var(--ran-select-host-hover-cursor, pointer)}:host(:not([disabled]):hover) .selection{border:var(--ran-select-host-selection-border, 1px solid #1890ff)}:host(:not([disabled]):hover) .selection-search{cursor:var(--ran-select-host-selection-search-cursor, pointer)}:host(:not([disabled]):hover) .selection-item{cursor:var(--ran-select-host-selection-item-cursor, pointer);color:var(--ran-select-host-selection-item-color, #bfbfbf)}:host(:not([disabled]):focus) .selection{border:var(--ran-select-host-selection-focus-border, 1px solid #1890ff)}:host(:not([disabled]):focus) .selection-search{cursor:var(--ran-select-host-selection-focus-search-cursor, pointer)}:host(:not([disabled]):focus) .selection-item{cursor:var(--ran-select-host-selection-focus-item-cursor, pointer);color:var(--ran-select-host-selection-focus-item-color, #bfbfbf)}:host .selection-search{display:var(--ran-select-host-selection-search-display, none)}:host([showSearch]:not([disabled])) .selection-search{cursor:var(--ran-select-host-showSearch-selection-search-cursor, text);display:var(--ran-select-host-showSearch-selection-search-display, block)}:host([showSearch]:not([disabled])) .selection-item{cursor:var(--ran-select-host-showSearch-selection-item-cursor, pointer)}:host([showSearch]:not([disabled]):focus) .selection-search{display:var(--ran-select-host-showSearch-selection-search-display, block);cursor:var(--ran-select-host-showSearch-selection-search-cursor, text);opacity:var(--ran-select-host-showSearch-selection-search-opacity, 1)}.ran-select{width:var(--ran-select-width, 100%);height:var(--ran-select-width, 100%);font-size:var(--ran-select-font-size, 14px);box-sizing:var(--ran-select-box-sizing, border-box);margin:var(--ran-select-margin, 0);padding:var(--ran-select-padding, 0);color:var(--ran-select-color, rgba(0, 0, 0, .88));line-height:var(--ran-select-line-height, 1.57142857);list-style:var(--ran-select-list-style, none);font-family:var(--ran-select-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");position:var(--ran-select-position, relative);display:var(--ran-select-display, inline-block)}.ran-select .selection{position:var(--ran-select-selection-position, relative);background-color:var(--ran-select-selection-background-color, #ffffff);border:var(--ran-select-selection-border, 1px solid #d9d9d9);transition:var(--ran-select-selection-transition, all .2s cubic-bezier(.645, .045, .355, 1));width:var(--ran-select-selection-width, 100%);height:var(--ran-select-selection-height, 100%);padding:var(--ran-select-selection-padding, 0 11px);box-sizing:var(--ran-select-selection-box-sizing, border-box);margin:var(--ran-select-selection-margin, 0);color:var(--ran-select-selection-color, rgba(0, 0, 0, .88));font-size:var(--ran-select-selection-font-size, 14px);line-height:var(--ran-select-selection-line-height, 1.57142857);list-style:var(--ran-select-selection-list-style, none);font-family:var(--ran-select-selection-font-family, inherit);display:var(--ran-select-selection-display, flex);border-radius:var(--ran-select-selection-border-radius, 6px)}.ran-select .selection-search{position:var(--ran-select-selection-search-position, absolute);opacity:var(--ran-select-selection-search-opacity, 0);top:var(--ran-select-selection-search-top, 0);left:var(--ran-select-selection-search-left, 0);height:var(--ran-select-selection-search-height, 100%);inset-inline-start:var(--ran-select-selection-search-inset-inline-start, 11px);inset-inline-end:var(--ran-select-selection-search-inset-inline-end, 11px);margin:var(--ran-select-selection-search-margin, 0);padding:var(--ran-select-selection-search-padding, 0);background:var(--ran-select-selection-search-background, transparent);border:var(--ran-select-selection-search-border, none);outline:var(--ran-select-selection-search-outline, none);-webkit-appearance:var(--ran-select-selection-search-appearance, none);-moz-appearance:var(--ran-select-selection-search-appearance, none);appearance:var(--ran-select-selection-search-appearance, none);font-family:var(--ran-select-selection-search-font-family, inherit);cursor:var(--ran-select-selection-search-cursor, not-allowed)}.ran-select .selection-search::-webkit-search-cancel-button{display:none;-webkit-appearance:none}.ran-select .selection-search::part(ran-input){border:none;padding:0;height:100%;outline:none}.ran-select .selection-search::part(ran-input):active{border:none;padding:0;height:100%;outline:none;border-color:transparent;box-shadow:none;border-right-width:0px}.ran-select .selection-item{position:var(--ran-select-selection-item-position, absolute);top:var(--ran-select-selection-item-top, 0);left:var(--ran-select-selection-item-left, 12px);margin:var(--ran-select-selection-item-margin, 0);padding:var(--ran-select-selection-item-padding, 0);background:var(--ran-select-selection-item-background, transparent);border:var(--ran-select-selection-item-border, none);outline:var(--ran-select-selection-item-outline, none);-webkit-appearance:var(--ran-select-selection-item-appearance, none);-moz-appearance:var(--ran-select-selection-item-appearance, none);appearance:var(--ran-select-selection-item-appearance, none);font-family:var(--ran-select-selection-item-font-family, inherit);height:var(--ran-select-selection-item-height, 100%);-webkit-user-select:var(--ran-select-selection-item-user-select, none);user-select:var(--ran-select-selection-item-user-select, none);overflow:var(--ran-select-selection-item-overflow, hidden);white-space:var(--ran-select-selection-item-white-space, nowrap);text-overflow:var(--ran-select-selection-item-text-overflow, ellipsis);cursor:var(--ran-select-selection-item-cursor, pointer)}.ran-select .selection-select{color:var(--ran-select-selection-select-color, rgba(0, 0, 0, .25))}.ran-select .selection .icon{display:var(--ran-select-selection-icon-display, flex);align-items:var(--ran-select-selection-icon-align-items, center);color:var(--ran-select-selection-icon-color, rgba(0, 0, 0, .25));font-style:var(--ran-select-selection-icon-font-style, normal);text-align:var(--ran-select-selection-icon-text-align, center);text-transform:var(--ran-select-selection-icon-text-transform, none);text-rendering:var(--ran-select-selection-icon-text-rendering, optimizeLegibility);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:var(--ran-select-selection-icon-position, absolute);top:var(--ran-select-selection-icon-top, 50%);inset-inline-start:var(--ran-select-selection-icon-inset-inline-start, auto);inset-inline-end:var(--ran-select-selection-icon-inset-inline-end, 8px);height:var(--ran-select-selection-icon-height, 12px);margin-top:var(--ran-select-selection-icon-margin-top, -3px);font-size:var(--ran-select-selection-icon-font-size, 12px);pointer-events:var(--ran-select-selection-icon-color, pointer-events)}';
|
|
@@ -84,7 +84,7 @@ function Custom$2() {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
Custom$2();
|
|
87
|
-
const less = '.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}.ranui-dropdown-option-item{position:var(--
|
|
87
|
+
const less = '.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}.ranui-dropdown-option-item{position:var(--ran-dropdown-option-item-position, relative);display:var(--ran-dropdown-option-item-display, block);padding:var(--ran-dropdown-option-item-padding, 5px 12px);color:var(--ran-dropdown-option-item-color, rgba(0, 0, 0, .88));font-weight:var(--ran-dropdown-option-item-font-weight, normal);font-size:var(--ran-dropdown-option-item-font-size, 14px);transition:var(--ran-dropdown-option-item-transition, background .3s ease);border-radius:var(--ran-dropdown-option-item-border-radius, 4px)}.ranui-dropdown-option-item:hover{background-color:var(--ran-dropdown-option-item-hover-background-color, rgba(0, 0, 0, .04))}.ranui-dropdown-option-item-content{text-align:var(--ran-dropdown-content-text-align, left);overflow:var(--ran-dropdown-content-overflow, hidden);white-space:var(--ran-dropdown-content-white-space, nowrap);text-overflow:var(--ran-dropdown-content-text-overflow, ellipsis);color:var(--ran-dropdown-content-color, rgba(0, 0, 0, .88));font-size:var(--ran-dropdown-content-font-size, 14px);line-height:var(--ran-dropdown-content-line-height, 1.57142857);box-sizing:var(--ran-dropdown-content-box-sizing, border-box);list-style:var(--ran-dropdown-content-list-style, none);font-family:var(--ran-dropdown-content-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-variant:var(--ran-dropdown-content-font-variant, initial)}.ranui-dropdown-option-active{background-color:var(--ran-dropdown-option-active-background-color, #e6f7ff);font-weight:var(--ran-dropdown-option-active-font-weight, bold)}.ranui-dropdown-option-active:hover{background-color:var(--ran-dropdown-option-active-hover-background-color, #e6f7ff)}';
|
|
88
88
|
class DropdownItem extends HTMLElementSSR() {
|
|
89
89
|
constructor() {
|
|
90
90
|
super();
|
|
@@ -255,12 +255,13 @@ class Select extends HTMLElementSSR() {
|
|
|
255
255
|
__publicField(this, "selectMouseDown", (e) => {
|
|
256
256
|
e.stopPropagation();
|
|
257
257
|
if (isDisabled(this)) return;
|
|
258
|
-
this.removeDropDownTimeId();
|
|
258
|
+
this.removeDropDownTimeId(e);
|
|
259
259
|
this.setSelectDropdownDisplayNone();
|
|
260
260
|
this.setSelectDropdownDisplayBlock();
|
|
261
261
|
this.placementPosition();
|
|
262
262
|
});
|
|
263
|
-
__publicField(this, "removeDropDownTimeId", () => {
|
|
263
|
+
__publicField(this, "removeDropDownTimeId", (e) => {
|
|
264
|
+
e.stopPropagation();
|
|
264
265
|
this._search.setAttribute("value", "");
|
|
265
266
|
if (this.trigger.includes("hover") && !isMobile()) {
|
|
266
267
|
clearTimeout(this.removeTimeId);
|
|
@@ -271,14 +272,15 @@ class Select extends HTMLElementSSR() {
|
|
|
271
272
|
* @description: 焦点移除的情况,需要移除 select 下拉框
|
|
272
273
|
* @return {*}
|
|
273
274
|
*/
|
|
274
|
-
__publicField(this, "selectBlur", () => {
|
|
275
|
+
__publicField(this, "selectBlur", (e) => {
|
|
276
|
+
e.stopPropagation();
|
|
275
277
|
if (this.removeTimeId) {
|
|
276
|
-
this.removeDropDownTimeId();
|
|
278
|
+
this.removeDropDownTimeId(e);
|
|
277
279
|
}
|
|
278
280
|
this.removeTimeId = setTimeout(() => {
|
|
279
|
-
this.removeDropDownTimeId();
|
|
281
|
+
this.removeDropDownTimeId(e);
|
|
280
282
|
this.setSelectDropdownDisplayNone();
|
|
281
|
-
},
|
|
283
|
+
}, 300);
|
|
282
284
|
});
|
|
283
285
|
/**
|
|
284
286
|
* @description: 选中一个选项的情况
|
|
@@ -308,7 +310,7 @@ class Select extends HTMLElementSSR() {
|
|
|
308
310
|
}
|
|
309
311
|
this.setSelectDropdownDisplayNone();
|
|
310
312
|
this.dispatchEvent(new CustomEvent("change", { detail: { value, label } }));
|
|
311
|
-
this.removeDropDownTimeId();
|
|
313
|
+
this.removeDropDownTimeId(e);
|
|
312
314
|
});
|
|
313
315
|
/**
|
|
314
316
|
* @description: 初始化创建选项下拉框
|
|
@@ -2,7 +2,7 @@ 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
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { d as createDocumentFragment, S as SyncHook, r as removeClassToElement, a as addClassToElement, t as timeFormat, e as range, f as generateThrottle } from "./arrow-down-Beig7FXI.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-D83djTVa.js";
|
|
6
6
|
import { H as HTMLElementSSR } from "./index-DC5EA657.js";
|
|
7
7
|
!function t(e) {
|
|
8
8
|
var r, i;
|
|
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { c as create, i as isMobile } from "./arrow-down-Beig7FXI.js";
|
|
5
5
|
import { c as createCustomError, H as HTMLElementSSR } from "./index-DC5EA657.js";
|
|
6
|
-
import "./index-
|
|
6
|
+
import "./index-qvcQTV5_.js";
|
|
7
7
|
const f7170ee498e0dd32cbdcb63fba8f75cc = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{display:var(--ran-popover-host-display, inline-block)}.ran-popover{box-sizing:var(--ran-popover-box-sizing, border-box);position:var(--ran-popover-position, relative);display:var(--ran-popover-display, inline-block);margin:var(--ran-popover-margin, 0);padding:var(--ran-popover-padding, 0)}.ran-popover-block{display:var(--ran-popover-block-display, inline-block)}";
|
|
8
8
|
const less = ".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{visibility:hidden;position:absolute}";
|
|
9
9
|
class Content extends HTMLElementSSR() {
|