ranui 0.1.10-alpha.19 → 0.1.10-alpha.22
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/{_commonjs-dynamic-modules-DLbDWi6a.js → _commonjs-dynamic-modules-HhqG7SJg.js} +2 -2
- package/dist/button.js +2 -2
- package/dist/checkbox.js +2 -2
- package/dist/colorpicker.js +5 -5
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/colorpicker/index.d.ts +4 -4
- package/dist/components/dropdown/index.d.ts +7 -1
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/loading/index.d.ts +2 -3
- package/dist/components/math/index.d.ts +0 -1
- package/dist/components/message/index.d.ts +9 -7
- package/dist/components/player/index.d.ts +17 -4
- package/dist/components/popover/content/index.d.ts +1 -1
- package/dist/components/popover/index.d.ts +37 -5
- package/dist/components/preview/pdf.d.ts +32 -0
- package/dist/components/progress/index.d.ts +1 -1
- package/dist/components/scratch/index.d.ts +2 -4
- package/dist/components/select/dropdown-item/index.d.ts +1 -1
- package/dist/components/tab/index.d.ts +19 -8
- package/dist/components/tabpane/index.d.ts +19 -8
- package/dist/{docx-VUApAnRr.js → docx-D5t6JtVt.js} +2 -14
- package/dist/icon.js +3 -3
- package/dist/iconShadowless.js +3 -3
- package/dist/image.js +1 -1
- package/dist/{index-CBApz0IY.js → index-7MlTN57l.js} +5 -5
- package/dist/{index-KS2nvVcO.js → index-BEm1a2pr.js} +1 -1
- package/dist/{index-BZR0HaP2.js → index-Bb55l8nf.js} +0 -6
- package/dist/{index-DzITmPGZ.js → index-Bc9aILQK.js} +39 -41
- package/dist/{index-DILUjTXZ.js → index-BmnyRPna.js} +270 -30
- package/dist/{index-D5ucMSCz.js → index-BpQdR7OI.js} +8 -8
- package/dist/index-C1GmV3sK.js +66910 -0
- package/dist/{index-B1Krwj3R.js → index-CCeFXABq.js} +3 -3
- package/dist/{index-C4Sv0T51.js → index-CNfwWf6v.js} +5 -6
- package/dist/{index-RzDJf-H8.js → index-CRwHr_Ni.js} +10 -12
- package/dist/{index-Co9E57uv.js → index-CVkJ_Xlh.js} +54 -68
- package/dist/index-CaDng6Eh.js +156 -0
- package/dist/{index-ChCDonf3.js → index-CfBxNU7C.js} +3 -3
- package/dist/{index-C9ZeUM1l.js → index-D6jtmsDd.js} +3 -3
- package/dist/{index-BtvTF9Dy.js → index-D7zBysHY.js} +3 -5
- package/dist/{index-DpNvpcjW.js → index-DWvhcjaL.js} +12 -15
- package/dist/{index-DU1-Vrso.js → index-DeWbkpnF.js} +2 -3
- package/dist/{index-BKc8CN7b.js → index-DpC9OSc5.js} +2 -2
- package/dist/{index-DmVCN-bN.js → index-choegwoI.js} +1 -1
- package/dist/{index-WfFw4LJT.js → index-n4EhE9Y5.js} +1 -1
- package/dist/index-y4nNx1Bs.js +103 -0
- package/dist/index.d.ts +144 -101
- package/dist/index.js +31 -33
- package/dist/info-circle-fill-DjI8gXS3.js +14 -0
- package/dist/input.js +2 -1
- package/dist/inputShadowless.js +1 -1
- package/dist/jszip.min--o3_SgQz.js +2904 -0
- package/dist/{katex-es-DoRbtDCO.js → katex-es-B7keY1LJ.js} +7513 -2110
- package/dist/loading.js +3 -3
- package/dist/math.js +2 -2
- package/dist/message.js +3 -3
- package/dist/{drop-4j4abxje.js → more-DUNz_fmw.js} +6 -0
- package/dist/player.js +3 -3
- package/dist/{arrow-down-BfP__spA.js → plus-DD2f41KU.js} +197 -209
- package/dist/popover.js +6 -5
- package/dist/preview.js +272 -5
- package/dist/progress.js +2 -2
- package/dist/radar.js +2 -2
- package/dist/{style.css → ranui.css} +1 -1
- package/dist/search-BWdfjyP8.js +4 -0
- package/dist/select.js +5 -5
- package/dist/selectShadowless.js +6 -10
- package/dist/shadowless/select/index.d.ts +1 -1
- package/dist/shadowless.js +2 -2
- package/dist/skeleton.js +1 -1
- package/dist/sort-DWqiUONr.js +4 -0
- package/dist/tab.js +2 -2
- package/dist/tsconfig.json +1 -1
- package/dist/typings.d.ts +143 -99
- package/dist/umd/{style.css → index.css} +1 -1
- package/dist/umd/index.umd.cjs +1 -60
- package/dist/umd/shadowless/shadowless.umd.cjs +1 -1
- package/dist/utils/image.d.ts +8 -1
- package/dist/utils/math.d.ts +3 -3
- package/dist/without-content-CdJw7vHM.js +4 -0
- package/package.json +36 -34
- package/typings.d.ts +143 -99
- package/dist/index-BG_RPA3S.js +0 -279
- package/dist/index-Ba501-HG.js +0 -58847
- package/dist/index-BlB9DoHg.js +0 -279
- package/dist/index-x2z6Vm2E.js +0 -103
- package/dist/info-circle-fill-CFeVMdci.js +0 -4
- package/dist/jszip.min-BIf20mgf.js +0 -2898
- /package/dist/umd/shadowless/{style.css → shadowless.css} +0 -0
package/dist/{_commonjs-dynamic-modules-DLbDWi6a.js → _commonjs-dynamic-modules-HhqG7SJg.js}
RENAMED
|
@@ -6,7 +6,7 @@ function commonjsRequire(path) {
|
|
|
6
6
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
commonjsGlobal as a,
|
|
10
|
+
commonjsRequire as c,
|
|
11
11
|
getDefaultExportFromCjs as g
|
|
12
12
|
};
|
package/dist/button.js
CHANGED
package/dist/checkbox.js
CHANGED
package/dist/colorpicker.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./plus-DD2f41KU.js";
|
|
2
2
|
import "./index-DC5EA657.js";
|
|
3
|
-
import { C, a } from "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./index-
|
|
3
|
+
import { C, a } from "./index-BpQdR7OI.js";
|
|
4
|
+
import "./index-BmnyRPna.js";
|
|
5
|
+
import "./index-n4EhE9Y5.js";
|
|
6
6
|
import "./selectShadowless.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-CfBxNU7C.js";
|
|
8
8
|
export {
|
|
9
9
|
C as ColorPicker,
|
|
10
10
|
a as default
|
|
@@ -27,7 +27,7 @@ export declare class Button extends Button_base {
|
|
|
27
27
|
*/
|
|
28
28
|
setIcon: () => void;
|
|
29
29
|
mousedown: (event: MouseEvent) => void;
|
|
30
|
-
mouseup: (
|
|
30
|
+
mouseup: () => void;
|
|
31
31
|
debounceMouseEvent: () => void;
|
|
32
32
|
handlerExternalCss: () => void;
|
|
33
33
|
connectedCallback(): void;
|
|
@@ -3,7 +3,7 @@ import '@/shadowless/input';
|
|
|
3
3
|
import '@/shadowless/select';
|
|
4
4
|
import '@/components/progress';
|
|
5
5
|
import './index.less';
|
|
6
|
-
interface Context {
|
|
6
|
+
export interface Context {
|
|
7
7
|
disabled: Signal<boolean>;
|
|
8
8
|
value: Signal<string>;
|
|
9
9
|
hue: Signal<number>;
|
|
@@ -11,13 +11,13 @@ interface Context {
|
|
|
11
11
|
lightness: Signal<number>;
|
|
12
12
|
transparency: Signal<number>;
|
|
13
13
|
}
|
|
14
|
-
interface RGBA {
|
|
14
|
+
export interface RGBA {
|
|
15
15
|
r: number;
|
|
16
16
|
g: number;
|
|
17
17
|
b: number;
|
|
18
18
|
a: number;
|
|
19
19
|
}
|
|
20
|
-
interface Signal<T> {
|
|
20
|
+
export interface Signal<T> {
|
|
21
21
|
getter: () => T;
|
|
22
22
|
setter: (newValue: T) => void;
|
|
23
23
|
}
|
|
@@ -111,7 +111,7 @@ export declare class ColorPicker extends ColorPicker_base {
|
|
|
111
111
|
openColorPicker: () => void;
|
|
112
112
|
mouseMoveColorPickerPalette: (e: MouseEvent) => void;
|
|
113
113
|
mouseDownColorPickerPalette: (e: MouseEvent) => void;
|
|
114
|
-
mouseUpColorPickerPalette: (
|
|
114
|
+
mouseUpColorPickerPalette: () => void;
|
|
115
115
|
connectedCallback(): void;
|
|
116
116
|
disconnectCallback(): void;
|
|
117
117
|
attributeChangedCallback(n: string, o: string, v: string): void;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { Chain } from 'ranuts/utils';
|
|
2
|
+
export declare enum ARROW_TYPE {
|
|
3
|
+
TOP = "top",
|
|
4
|
+
BOTTOM = "bottom",
|
|
5
|
+
LEFT = "left",
|
|
6
|
+
RIGHT = "right"
|
|
7
|
+
}
|
|
2
8
|
declare const Dropdown_base: {
|
|
3
9
|
new (): HTMLElement;
|
|
4
10
|
prototype: HTMLElement;
|
|
@@ -22,7 +28,7 @@ export declare class Dropdown extends Dropdown_base {
|
|
|
22
28
|
stopPropagation: (e: Event) => void;
|
|
23
29
|
connectedCallback(): void;
|
|
24
30
|
disconnectedCallback(): void;
|
|
25
|
-
attributeChangedCallback(name: string,
|
|
31
|
+
attributeChangedCallback(name: string, _: string, newValue: string): void;
|
|
26
32
|
}
|
|
27
33
|
declare const _default: import("@/utils/index").CustomErrorType;
|
|
28
34
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum ICON_NAME_AMP {
|
|
2
2
|
DOUBLE_BOUNCE = "double-bounce",
|
|
3
3
|
ROTATE = "rotate",
|
|
4
4
|
STRETCH = "stretch",
|
|
@@ -37,7 +37,7 @@ export declare class Loading extends Loading_base {
|
|
|
37
37
|
contain: HTMLDivElement;
|
|
38
38
|
static get observedAttributes(): string[];
|
|
39
39
|
constructor();
|
|
40
|
-
get name():
|
|
40
|
+
get name(): ICON_NAME_AMP;
|
|
41
41
|
set name(value: string);
|
|
42
42
|
rotateLoading: () => void;
|
|
43
43
|
stretchLoading: () => void;
|
|
@@ -70,7 +70,6 @@ export declare class Loading extends Loading_base {
|
|
|
70
70
|
pacmanLoading: () => void;
|
|
71
71
|
createLoading: () => void;
|
|
72
72
|
connectedCallback(): void;
|
|
73
|
-
disconnectCallback(): void;
|
|
74
73
|
attributeChangedCallback(k: string, o: string, n: string): void;
|
|
75
74
|
}
|
|
76
75
|
declare const _default: import("@/utils/index").CustomErrorType;
|
|
@@ -10,7 +10,6 @@ export declare class Math extends Math_base {
|
|
|
10
10
|
set latex(value: string);
|
|
11
11
|
render(): void;
|
|
12
12
|
connectedCallback(): void;
|
|
13
|
-
disconnectCallback(): void;
|
|
14
13
|
attributeChangedCallback(k: string, o: string, n: string): void;
|
|
15
14
|
}
|
|
16
15
|
declare const _default: Promise<import("@/utils/index").CustomErrorType>;
|
|
@@ -5,11 +5,13 @@ declare const message: {
|
|
|
5
5
|
error: (options: Ran.Prompt | string | undefined | null) => void;
|
|
6
6
|
warning: (options: Ran.Prompt | string | undefined | null) => void;
|
|
7
7
|
toast: (options: Ran.Prompt | string | undefined | null) => void;
|
|
8
|
-
} |
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
8
|
+
} | null;
|
|
9
|
+
declare global {
|
|
10
|
+
interface Window {
|
|
11
|
+
message: Ran.Message;
|
|
12
|
+
ranui: {
|
|
13
|
+
message?: Ran.Message;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
15
17
|
export default message;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SyncHook } from 'ranuts/utils';
|
|
1
2
|
import '@/assets/js/hls.js';
|
|
2
3
|
import type { Progress } from '@/components/progress';
|
|
3
4
|
import '@/components/select';
|
|
@@ -36,7 +37,7 @@ export interface Level {
|
|
|
36
37
|
videoCodec: string;
|
|
37
38
|
}
|
|
38
39
|
export interface Context {
|
|
39
|
-
action:
|
|
40
|
+
action: SyncHook;
|
|
40
41
|
currentState: string;
|
|
41
42
|
duration: number;
|
|
42
43
|
currentTime: number;
|
|
@@ -48,6 +49,19 @@ export interface Context {
|
|
|
48
49
|
levelMap: Map<string, string>;
|
|
49
50
|
clarity: string;
|
|
50
51
|
}
|
|
52
|
+
interface Hls {
|
|
53
|
+
Events: {
|
|
54
|
+
MANIFEST_LOADED: 'hlsManifestLoaded';
|
|
55
|
+
ERROR: 'error';
|
|
56
|
+
};
|
|
57
|
+
isSupported: () => boolean;
|
|
58
|
+
}
|
|
59
|
+
type HLS = Hls & (new () => HlsPlayer);
|
|
60
|
+
declare global {
|
|
61
|
+
interface Window {
|
|
62
|
+
Hls: HLS;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
51
65
|
declare const RanPlayer_base: {
|
|
52
66
|
new (): HTMLElement;
|
|
53
67
|
prototype: HTMLElement;
|
|
@@ -159,7 +173,7 @@ export declare class RanPlayer extends RanPlayer_base {
|
|
|
159
173
|
* @param {MouseEvent} e
|
|
160
174
|
* @return {*}
|
|
161
175
|
*/
|
|
162
|
-
progressDotMouseDown: (
|
|
176
|
+
progressDotMouseDown: () => void;
|
|
163
177
|
/**
|
|
164
178
|
* @description: 进度条鼠标移动事件
|
|
165
179
|
* @param {MouseEvent} e
|
|
@@ -210,7 +224,7 @@ export declare class RanPlayer extends RanPlayer_base {
|
|
|
210
224
|
*/
|
|
211
225
|
dispatchClickPlayerBtnAction: (e: Event) => void;
|
|
212
226
|
changeVolumeProgress: (e: Event) => void;
|
|
213
|
-
customRequestFullscreen: (
|
|
227
|
+
customRequestFullscreen: () => Promise<void>;
|
|
214
228
|
customExitFullscreen: () => Promise<void>;
|
|
215
229
|
openFullScreen: () => void;
|
|
216
230
|
changeSpeed: (e: Event) => void;
|
|
@@ -231,7 +245,6 @@ export declare class RanPlayer extends RanPlayer_base {
|
|
|
231
245
|
pause: () => void;
|
|
232
246
|
connectedCallback(): void;
|
|
233
247
|
disconnectCallback(): void;
|
|
234
|
-
attributeChangedCallback(k: string, o: string, n: string): void;
|
|
235
248
|
}
|
|
236
249
|
declare const _default: typeof RanPlayer | undefined;
|
|
237
250
|
export default _default;
|
|
@@ -7,7 +7,7 @@ export declare class Content extends Content_base {
|
|
|
7
7
|
_shadowDom: ShadowRoot;
|
|
8
8
|
_slot: HTMLSlotElement;
|
|
9
9
|
constructor();
|
|
10
|
-
callback: (mutations: MutationRecord[]
|
|
10
|
+
callback: (mutations: MutationRecord[]) => void;
|
|
11
11
|
onChange: (mutation: MutationRecord) => void;
|
|
12
12
|
connectedCallback(): void;
|
|
13
13
|
disconnectCallback(): void;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import '@/components/popover/content';
|
|
2
2
|
import '@/components/dropdown';
|
|
3
|
+
export type PlacementDirection = Record<string, Record<string, string>>;
|
|
4
|
+
export declare enum PLACEMENT_TYPE {
|
|
5
|
+
TOP = "top",
|
|
6
|
+
BOTTOM = "bottom",
|
|
7
|
+
LEFT = "left",
|
|
8
|
+
RIGHT = "right"
|
|
9
|
+
}
|
|
3
10
|
declare const Popover_base: {
|
|
4
11
|
new (): HTMLElement;
|
|
5
12
|
prototype: HTMLElement;
|
|
@@ -15,6 +22,7 @@ export declare class Popover extends Popover_base {
|
|
|
15
22
|
dropDownOutTimeId?: NodeJS.Timeout;
|
|
16
23
|
removeTimeId?: NodeJS.Timeout;
|
|
17
24
|
static get observedAttributes(): string[];
|
|
25
|
+
readonly closePopover: () => void;
|
|
18
26
|
constructor();
|
|
19
27
|
get placement(): string;
|
|
20
28
|
set placement(value: string);
|
|
@@ -25,32 +33,56 @@ export declare class Popover extends Popover_base {
|
|
|
25
33
|
get getPopupContainerId(): string;
|
|
26
34
|
set getPopupContainerId(value: string);
|
|
27
35
|
stopPropagation: (e: Event) => void;
|
|
36
|
+
/**
|
|
37
|
+
* @description: 创建下拉框
|
|
38
|
+
* @param {HTMLCollection} content
|
|
39
|
+
* @return {*}
|
|
40
|
+
*/
|
|
28
41
|
createContent: (content: HTMLCollection) => void;
|
|
42
|
+
/**
|
|
43
|
+
* @description: 观察内容变化
|
|
44
|
+
* @param {Event} e
|
|
45
|
+
* @return {*}
|
|
46
|
+
*/
|
|
29
47
|
watchContent: (e: Event) => void;
|
|
30
48
|
/**
|
|
31
49
|
* @description: 焦点移除的情况,需要移除下拉框
|
|
32
50
|
* @return {*}
|
|
33
51
|
*/
|
|
34
|
-
blur: () => void
|
|
35
|
-
|
|
52
|
+
blur: import("lodash").DebouncedFunc<() => void>;
|
|
53
|
+
/**
|
|
54
|
+
* @description: 移除下拉框
|
|
55
|
+
* @return {*}
|
|
56
|
+
*/
|
|
57
|
+
removeDropDownTimeId: import("lodash").DebouncedFunc<() => void>;
|
|
36
58
|
/**
|
|
37
59
|
* @description: 添加 dropdown
|
|
38
60
|
* @return {*}
|
|
39
61
|
*/
|
|
40
|
-
setDropdownDisplayBlock: () => void
|
|
62
|
+
setDropdownDisplayBlock: import("lodash").DebouncedFunc<() => void>;
|
|
41
63
|
/**
|
|
42
64
|
* @description: 移除 select dropdown
|
|
43
65
|
* @return {*}
|
|
44
66
|
*/
|
|
45
|
-
setDropdownDisplayNone: () => void
|
|
67
|
+
setDropdownDisplayNone: import("lodash").DebouncedFunc<() => void>;
|
|
68
|
+
/**
|
|
69
|
+
* @description: 设置 popover 位置
|
|
70
|
+
* @param {*} void
|
|
71
|
+
* @return {*}
|
|
72
|
+
*/
|
|
46
73
|
placementPosition: () => void;
|
|
74
|
+
/**
|
|
75
|
+
* @description: 鼠标移入
|
|
76
|
+
* @param {Event} e
|
|
77
|
+
* @return {*}
|
|
78
|
+
*/
|
|
47
79
|
hoverPopover: (e: Event) => void;
|
|
48
80
|
clickContent: (e: Event) => void;
|
|
49
81
|
clickPopover: (e: Event) => void;
|
|
50
82
|
clickRemovePopover: (e: Event) => void;
|
|
51
83
|
popoverTrigger: () => void;
|
|
52
84
|
hoverRemovePopover: (e: Event) => void;
|
|
53
|
-
changePlacement: () => void
|
|
85
|
+
changePlacement: import("lodash").DebouncedFunc<() => void>;
|
|
54
86
|
connectedCallback(): void;
|
|
55
87
|
disconnectCallback(): void;
|
|
56
88
|
attributeChangedCallback(n: string, o: string, v: string): void;
|
|
@@ -1,2 +1,34 @@
|
|
|
1
1
|
import type { RenderOptions } from '@/components/preview/types';
|
|
2
|
+
interface Viewport {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
viewBox: Array<number>;
|
|
6
|
+
}
|
|
7
|
+
interface RenderContext {
|
|
8
|
+
canvasContext: CanvasRenderingContext2D | null;
|
|
9
|
+
transform: Array<number>;
|
|
10
|
+
viewport: Viewport;
|
|
11
|
+
}
|
|
12
|
+
interface PDFPageProxy {
|
|
13
|
+
pageNumber: number;
|
|
14
|
+
getViewport: () => Viewport;
|
|
15
|
+
render: (options: RenderContext) => void;
|
|
16
|
+
}
|
|
17
|
+
interface PDFDocumentProxy {
|
|
18
|
+
numPages: number;
|
|
19
|
+
getPage: (x: number) => Promise<PDFPageProxy>;
|
|
20
|
+
}
|
|
21
|
+
declare global {
|
|
22
|
+
interface Window {
|
|
23
|
+
pdfjsLib: {
|
|
24
|
+
GlobalWorkerOptions: {
|
|
25
|
+
workerSrc: string;
|
|
26
|
+
};
|
|
27
|
+
getDocument: (x: string | ArrayBuffer) => {
|
|
28
|
+
promise: Promise<PDFDocumentProxy>;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
2
33
|
export declare const renderPdf: (file: File, options: RenderOptions) => Promise<void>;
|
|
34
|
+
export {};
|
|
@@ -26,7 +26,7 @@ declare class Progress extends Progress_base {
|
|
|
26
26
|
progressClick: (e: MouseEvent) => void;
|
|
27
27
|
progressDotMouseDown: () => void;
|
|
28
28
|
progressDotMouseMove: (e: MouseEvent) => void;
|
|
29
|
-
progressDotMouseUp: (
|
|
29
|
+
progressDotMouseUp: () => void;
|
|
30
30
|
change: () => void;
|
|
31
31
|
appendProgressDot: () => void;
|
|
32
32
|
updateCurrentProgress: () => void;
|
|
@@ -13,11 +13,9 @@ declare class ScratchTicket extends ScratchTicket_base {
|
|
|
13
13
|
static get observedAttributes(): string[];
|
|
14
14
|
constructor();
|
|
15
15
|
touchStartScratch: (e: TouchEvent) => void;
|
|
16
|
-
touchMoveScratch: (
|
|
16
|
+
touchMoveScratch: () => void;
|
|
17
17
|
touchEndScratch: () => void;
|
|
18
18
|
drawScratchTicket: () => void;
|
|
19
|
-
|
|
20
|
-
disconnectCallback(): void;
|
|
21
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
19
|
+
attributeChangedCallback(): void;
|
|
22
20
|
}
|
|
23
21
|
export default ScratchTicket;
|
|
@@ -17,7 +17,7 @@ export declare class DropdownItem extends DropdownItem_base {
|
|
|
17
17
|
get title(): string;
|
|
18
18
|
set title(value: string);
|
|
19
19
|
connectedCallback(): void;
|
|
20
|
-
attributeChangedCallback(name: string,
|
|
20
|
+
attributeChangedCallback(name: string, _: string, newValue: string): void;
|
|
21
21
|
}
|
|
22
22
|
declare const _default: import("@/utils/index").CustomErrorType;
|
|
23
23
|
export default _default;
|
|
@@ -94,11 +94,12 @@ declare const _default: {
|
|
|
94
94
|
spellcheck: boolean;
|
|
95
95
|
title: string;
|
|
96
96
|
translate: boolean;
|
|
97
|
+
writingSuggestions: string;
|
|
97
98
|
attachInternals(): ElementInternals;
|
|
98
99
|
click(): void;
|
|
99
100
|
hidePopover(): void;
|
|
100
101
|
showPopover(): void;
|
|
101
|
-
togglePopover(
|
|
102
|
+
togglePopover(options?: boolean): boolean;
|
|
102
103
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
103
104
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
104
105
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -109,20 +110,24 @@ declare const _default: {
|
|
|
109
110
|
webkitRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
110
111
|
webkitEnterFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
111
112
|
readonly attributes: NamedNodeMap;
|
|
112
|
-
|
|
113
|
+
get classList(): DOMTokenList;
|
|
114
|
+
set classList(value: string);
|
|
113
115
|
className: string;
|
|
114
116
|
readonly clientHeight: number;
|
|
115
117
|
readonly clientLeft: number;
|
|
116
118
|
readonly clientTop: number;
|
|
117
119
|
readonly clientWidth: number;
|
|
120
|
+
readonly currentCSSZoom: number;
|
|
118
121
|
id: string;
|
|
122
|
+
innerHTML: string;
|
|
119
123
|
readonly localName: string;
|
|
120
124
|
readonly namespaceURI: string | null;
|
|
121
125
|
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
122
126
|
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
123
127
|
outerHTML: string;
|
|
124
128
|
readonly ownerDocument: Document;
|
|
125
|
-
|
|
129
|
+
get part(): DOMTokenList;
|
|
130
|
+
set part(value: string);
|
|
126
131
|
readonly prefix: string | null;
|
|
127
132
|
readonly scrollHeight: number;
|
|
128
133
|
scrollLeft: number;
|
|
@@ -155,12 +160,13 @@ declare const _default: {
|
|
|
155
160
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
156
161
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
157
162
|
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
163
|
+
getHTML(options?: GetHTMLOptions): string;
|
|
158
164
|
hasAttribute(qualifiedName: string): boolean;
|
|
159
165
|
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
160
166
|
hasAttributes(): boolean;
|
|
161
167
|
hasPointerCapture(pointerId: number): boolean;
|
|
162
168
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
163
|
-
insertAdjacentHTML(position: InsertPosition,
|
|
169
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
164
170
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
165
171
|
matches(selectors: string): boolean;
|
|
166
172
|
releasePointerCapture(pointerId: number): void;
|
|
@@ -168,7 +174,7 @@ declare const _default: {
|
|
|
168
174
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
169
175
|
removeAttributeNode(attr: Attr): Attr;
|
|
170
176
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
171
|
-
requestPointerLock(): void
|
|
177
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
172
178
|
scroll(options?: ScrollToOptions): void;
|
|
173
179
|
scroll(x: number, y: number): void;
|
|
174
180
|
scrollBy(options?: ScrollToOptions): void;
|
|
@@ -198,7 +204,7 @@ declare const _default: {
|
|
|
198
204
|
readonly previousSibling: ChildNode | null;
|
|
199
205
|
textContent: string | null;
|
|
200
206
|
appendChild<T extends Node>(node: T): T;
|
|
201
|
-
cloneNode(
|
|
207
|
+
cloneNode(subtree?: boolean): Node;
|
|
202
208
|
compareDocumentPosition(other: Node): number;
|
|
203
209
|
contains(other: Node | null): boolean;
|
|
204
210
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
@@ -239,6 +245,7 @@ declare const _default: {
|
|
|
239
245
|
ariaChecked: string | null;
|
|
240
246
|
ariaColCount: string | null;
|
|
241
247
|
ariaColIndex: string | null;
|
|
248
|
+
ariaColIndexText: string | null;
|
|
242
249
|
ariaColSpan: string | null;
|
|
243
250
|
ariaCurrent: string | null;
|
|
244
251
|
ariaDescription: string | null;
|
|
@@ -259,10 +266,12 @@ declare const _default: {
|
|
|
259
266
|
ariaPosInSet: string | null;
|
|
260
267
|
ariaPressed: string | null;
|
|
261
268
|
ariaReadOnly: string | null;
|
|
269
|
+
ariaRelevant: string | null;
|
|
262
270
|
ariaRequired: string | null;
|
|
263
271
|
ariaRoleDescription: string | null;
|
|
264
272
|
ariaRowCount: string | null;
|
|
265
273
|
ariaRowIndex: string | null;
|
|
274
|
+
ariaRowIndexText: string | null;
|
|
266
275
|
ariaRowSpan: string | null;
|
|
267
276
|
ariaSelected: string | null;
|
|
268
277
|
ariaSetSize: string | null;
|
|
@@ -278,7 +287,6 @@ declare const _default: {
|
|
|
278
287
|
before(...nodes: (Node | string)[]): void;
|
|
279
288
|
remove(): void;
|
|
280
289
|
replaceWith(...nodes: (Node | string)[]): void;
|
|
281
|
-
innerHTML: string;
|
|
282
290
|
readonly nextElementSibling: Element | null;
|
|
283
291
|
readonly previousElementSibling: Element | null;
|
|
284
292
|
readonly childElementCount: number;
|
|
@@ -300,7 +308,8 @@ declare const _default: {
|
|
|
300
308
|
replaceChildren(...nodes: (Node | string)[]): void;
|
|
301
309
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
302
310
|
readonly attributeStyleMap: StylePropertyMap;
|
|
303
|
-
|
|
311
|
+
get style(): CSSStyleDeclaration;
|
|
312
|
+
set style(cssText: string);
|
|
304
313
|
contentEditable: string;
|
|
305
314
|
enterKeyHint: string;
|
|
306
315
|
inputMode: string;
|
|
@@ -320,7 +329,9 @@ declare const _default: {
|
|
|
320
329
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
321
330
|
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
322
331
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
332
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
323
333
|
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
334
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
324
335
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
325
336
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
326
337
|
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -38,11 +38,12 @@ declare const _default: {
|
|
|
38
38
|
spellcheck: boolean;
|
|
39
39
|
title: string;
|
|
40
40
|
translate: boolean;
|
|
41
|
+
writingSuggestions: string;
|
|
41
42
|
attachInternals(): ElementInternals;
|
|
42
43
|
click(): void;
|
|
43
44
|
hidePopover(): void;
|
|
44
45
|
showPopover(): void;
|
|
45
|
-
togglePopover(
|
|
46
|
+
togglePopover(options?: boolean): boolean;
|
|
46
47
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
47
48
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
48
49
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -53,20 +54,24 @@ declare const _default: {
|
|
|
53
54
|
webkitRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
54
55
|
webkitEnterFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
55
56
|
readonly attributes: NamedNodeMap;
|
|
56
|
-
|
|
57
|
+
get classList(): DOMTokenList;
|
|
58
|
+
set classList(value: string);
|
|
57
59
|
className: string;
|
|
58
60
|
readonly clientHeight: number;
|
|
59
61
|
readonly clientLeft: number;
|
|
60
62
|
readonly clientTop: number;
|
|
61
63
|
readonly clientWidth: number;
|
|
64
|
+
readonly currentCSSZoom: number;
|
|
62
65
|
id: string;
|
|
66
|
+
innerHTML: string;
|
|
63
67
|
readonly localName: string;
|
|
64
68
|
readonly namespaceURI: string | null;
|
|
65
69
|
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
66
70
|
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
67
71
|
outerHTML: string;
|
|
68
72
|
readonly ownerDocument: Document;
|
|
69
|
-
|
|
73
|
+
get part(): DOMTokenList;
|
|
74
|
+
set part(value: string);
|
|
70
75
|
readonly prefix: string | null;
|
|
71
76
|
readonly scrollHeight: number;
|
|
72
77
|
scrollLeft: number;
|
|
@@ -99,12 +104,13 @@ declare const _default: {
|
|
|
99
104
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
100
105
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
101
106
|
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
107
|
+
getHTML(options?: GetHTMLOptions): string;
|
|
102
108
|
hasAttribute(qualifiedName: string): boolean;
|
|
103
109
|
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
104
110
|
hasAttributes(): boolean;
|
|
105
111
|
hasPointerCapture(pointerId: number): boolean;
|
|
106
112
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
107
|
-
insertAdjacentHTML(position: InsertPosition,
|
|
113
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
108
114
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
109
115
|
matches(selectors: string): boolean;
|
|
110
116
|
releasePointerCapture(pointerId: number): void;
|
|
@@ -112,7 +118,7 @@ declare const _default: {
|
|
|
112
118
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
113
119
|
removeAttributeNode(attr: Attr): Attr;
|
|
114
120
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
115
|
-
requestPointerLock(): void
|
|
121
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
116
122
|
scroll(options?: ScrollToOptions): void;
|
|
117
123
|
scroll(x: number, y: number): void;
|
|
118
124
|
scrollBy(options?: ScrollToOptions): void;
|
|
@@ -142,7 +148,7 @@ declare const _default: {
|
|
|
142
148
|
readonly previousSibling: ChildNode | null;
|
|
143
149
|
textContent: string | null;
|
|
144
150
|
appendChild<T extends Node>(node: T): T;
|
|
145
|
-
cloneNode(
|
|
151
|
+
cloneNode(subtree?: boolean): Node;
|
|
146
152
|
compareDocumentPosition(other: Node): number;
|
|
147
153
|
contains(other: Node | null): boolean;
|
|
148
154
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
@@ -183,6 +189,7 @@ declare const _default: {
|
|
|
183
189
|
ariaChecked: string | null;
|
|
184
190
|
ariaColCount: string | null;
|
|
185
191
|
ariaColIndex: string | null;
|
|
192
|
+
ariaColIndexText: string | null;
|
|
186
193
|
ariaColSpan: string | null;
|
|
187
194
|
ariaCurrent: string | null;
|
|
188
195
|
ariaDescription: string | null;
|
|
@@ -203,10 +210,12 @@ declare const _default: {
|
|
|
203
210
|
ariaPosInSet: string | null;
|
|
204
211
|
ariaPressed: string | null;
|
|
205
212
|
ariaReadOnly: string | null;
|
|
213
|
+
ariaRelevant: string | null;
|
|
206
214
|
ariaRequired: string | null;
|
|
207
215
|
ariaRoleDescription: string | null;
|
|
208
216
|
ariaRowCount: string | null;
|
|
209
217
|
ariaRowIndex: string | null;
|
|
218
|
+
ariaRowIndexText: string | null;
|
|
210
219
|
ariaRowSpan: string | null;
|
|
211
220
|
ariaSelected: string | null;
|
|
212
221
|
ariaSetSize: string | null;
|
|
@@ -222,7 +231,6 @@ declare const _default: {
|
|
|
222
231
|
before(...nodes: (Node | string)[]): void;
|
|
223
232
|
remove(): void;
|
|
224
233
|
replaceWith(...nodes: (Node | string)[]): void;
|
|
225
|
-
innerHTML: string;
|
|
226
234
|
readonly nextElementSibling: Element | null;
|
|
227
235
|
readonly previousElementSibling: Element | null;
|
|
228
236
|
readonly childElementCount: number;
|
|
@@ -244,7 +252,8 @@ declare const _default: {
|
|
|
244
252
|
replaceChildren(...nodes: (Node | string)[]): void;
|
|
245
253
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
246
254
|
readonly attributeStyleMap: StylePropertyMap;
|
|
247
|
-
|
|
255
|
+
get style(): CSSStyleDeclaration;
|
|
256
|
+
set style(cssText: string);
|
|
248
257
|
contentEditable: string;
|
|
249
258
|
enterKeyHint: string;
|
|
250
259
|
inputMode: string;
|
|
@@ -264,7 +273,9 @@ declare const _default: {
|
|
|
264
273
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
265
274
|
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
266
275
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
276
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
267
277
|
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
278
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
268
279
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
269
280
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
270
281
|
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|