ranui 0.1.9 → 0.1.10-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.zh-CN.md +190 -0
- package/dist/_commonjs-dynamic-modules-DLbDWi6a.js +12 -0
- package/dist/arrow-down-B_hCY3Wt.js +662 -0
- package/dist/button.js +7 -0
- package/dist/checkbox.js +7 -0
- package/dist/colorpicker.js +11 -0
- package/dist/{colz-746223ab.js → colz-DJZvo_8B.js} +4 -13
- package/dist/docx-CHkPTdGU.js +3665 -0
- package/dist/drop-4j4abxje.js +36 -0
- package/dist/icon.js +6 -0
- package/dist/iconShadowless.js +6 -0
- package/dist/image.js +4 -0
- package/dist/{index-4443363f.js → index-15M0olqa.js} +40 -68
- package/dist/index-1v568_nq.js +140 -0
- package/dist/index-B897keW5.js +279 -0
- package/dist/{index-e03d23e7.js → index-BZR0HaP2.js} +2 -5
- package/dist/{index-e2e5d725.js → index-B_GuEcTd.js} +1280 -2146
- package/dist/index-Bc2Bcl8D.js +63701 -0
- package/dist/index-C4Sv0T51.js +495 -0
- package/dist/{index-2d16a084.js → index-C6RcMHoH.js} +12 -22
- package/dist/index-C9z10IgG.js +103 -0
- package/dist/{index-3cf72afd.js → index-CFjEuvBW.js} +23 -45
- package/dist/{index-7b8840f9.js → index-CGEx9VOA.js} +1086 -2670
- package/dist/index-CGYfjKUV.js +72 -0
- package/dist/index-CVtBLEpV.js +712 -0
- package/dist/index-CiWwvEMM.js +511 -0
- package/dist/index-CtVOgBDk.js +659 -0
- package/dist/index-D4qUro5V.js +279 -0
- package/dist/index-D4y9c1Dj.js +310 -0
- package/dist/{index-b7790662.js → index-DAxs7Dd2.js} +6 -13
- package/dist/index-DC5EA657.js +91 -0
- package/dist/index-DJZmDHz-.js +146 -0
- package/dist/{index-0d5b9435.js → index-D_CA5VDZ.js} +11 -15
- package/dist/{index-01b17e26.js → index-KS2nvVcO.js} +2 -5
- package/dist/{index-1048a998.js → index-WfFw4LJT.js} +105 -62
- package/dist/{index-458debf7.js → index-mhFL9MJp.js} +15 -49
- package/dist/index.d.ts +211 -14
- package/dist/index.js +24 -24
- package/dist/info-circle-fill-CFeVMdci.js +4 -0
- package/dist/input.js +6 -0
- package/dist/inputShadowless.js +6 -0
- package/dist/jszip.min-Dhs3nUkD.js +2346 -0
- package/dist/katex-es-B5r5vt3m.js +14628 -0
- package/dist/loading-scene-BMc2wqKm.js +4 -0
- package/dist/loading.js +8 -0
- package/dist/math.js +7 -0
- package/dist/message.js +6 -0
- package/dist/modal.js +4 -0
- package/dist/{pdf-bdb7818a.js → pdf-Cx0VWKFo.js} +13 -8
- package/dist/player.js +8 -0
- package/dist/popover.js +8 -0
- package/dist/preview.js +7 -0
- package/dist/progress.js +7 -0
- package/dist/radar.js +6 -0
- package/dist/select.js +10 -0
- package/dist/{index-1b73beee.js → selectShadowless.js} +161 -165
- package/dist/shadowless.js +8 -0
- package/dist/skeleton.js +4 -0
- package/dist/sprite-CH2zLtZy.js +141 -0
- package/dist/style.css +1 -1
- package/dist/tab.js +6 -0
- package/dist/tabpane.js +4 -0
- package/dist/tsconfig.json +31 -0
- package/dist/typings.d.ts +211 -0
- package/dist/umd/index.umd.cjs +21 -32
- package/dist/umd/shadowless/shadowless.umd.cjs +1 -0
- package/dist/umd/shadowless/style.css +1 -0
- package/dist/umd/style.css +1 -1
- package/package.json +113 -69
- package/readme.md +38 -56
- package/typings.d.ts +211 -0
- package/dist/build/config.d.ts +0 -3
- package/dist/build/config.es.d.ts +0 -2
- package/dist/build/config.umd.d.ts +0 -2
- package/dist/components/button/index.d.ts +0 -35
- package/dist/components/button/index.js +0 -8
- package/dist/components/form/index.d.ts +0 -2
- package/dist/components/icon/index.d.ts +0 -2
- package/dist/components/icon/index.js +0 -6
- package/dist/components/image/index.d.ts +0 -2
- package/dist/components/image/index.js +0 -4
- package/dist/components/input/index.d.ts +0 -185
- package/dist/components/input/index.js +0 -6
- package/dist/components/message/index.d.ts +0 -14
- package/dist/components/message/index.js +0 -4
- package/dist/components/modal/index.d.ts +0 -2
- package/dist/components/modal/index.js +0 -4
- package/dist/components/option/index.d.ts +0 -2
- package/dist/components/option/index.js +0 -95
- package/dist/components/player/index.d.ts +0 -213
- package/dist/components/player/index.js +0 -12
- package/dist/components/preview/colz.d.ts +0 -72
- package/dist/components/preview/docx.d.ts +0 -8
- package/dist/components/preview/excel/excel.d.ts +0 -2
- package/dist/components/preview/excel/index.d.ts +0 -1
- package/dist/components/preview/excel/media.d.ts +0 -37
- package/dist/components/preview/index.d.ts +0 -6
- package/dist/components/preview/index.js +0 -8
- package/dist/components/preview/pdf.d.ts +0 -1
- package/dist/components/preview/pptx/index.d.ts +0 -16
- package/dist/components/preview/pptx/process_pptx.d.ts +0 -23
- package/dist/components/preview/pptx/t_xml.d.ts +0 -1
- package/dist/components/preview/pptx/worker.d.ts +0 -1
- package/dist/components/progress/index.d.ts +0 -36
- package/dist/components/progress/index.js +0 -8
- package/dist/components/radar/index.d.ts +0 -2
- package/dist/components/radar/index.js +0 -7
- package/dist/components/scratch/index.d.ts +0 -19
- package/dist/components/select/index.d.ts +0 -105
- package/dist/components/select/index.js +0 -11
- package/dist/components/skeleton/index.d.ts +0 -2
- package/dist/components/skeleton/index.js +0 -4
- package/dist/components/tab/index.d.ts +0 -408
- package/dist/components/tab/index.js +0 -7
- package/dist/components/tabpane/index.d.ts +0 -352
- package/dist/components/tabpane/index.js +0 -4
- package/dist/docx-c5d02d8c.js +0 -21
- package/dist/index-57492b9b.js +0 -48
- package/dist/index-7216d6b0.js +0 -175
- package/dist/index-73ce455b.js +0 -264
- package/dist/index-7913ec46.js +0 -239
- package/dist/index-c14450a9.js +0 -662
- package/dist/info-circle-fill-90ec9aa9.js +0 -14
- package/dist/playwright.config.d.ts +0 -9
- package/dist/plugins/auto-import-file.d.ts +0 -0
- package/dist/plugins/load-style.d.ts +0 -6
- package/dist/plugins/load-svg.d.ts +0 -9
- package/dist/tests/button.spec.d.ts +0 -1
- package/dist/umd/build/config.d.ts +0 -3
- package/dist/umd/build/config.es.d.ts +0 -2
- package/dist/umd/build/config.umd.d.ts +0 -2
- package/dist/umd/components/button/index.d.ts +0 -35
- package/dist/umd/components/form/index.d.ts +0 -2
- package/dist/umd/components/icon/index.d.ts +0 -2
- package/dist/umd/components/image/index.d.ts +0 -2
- package/dist/umd/components/input/index.d.ts +0 -185
- package/dist/umd/components/message/index.d.ts +0 -14
- package/dist/umd/components/modal/index.d.ts +0 -2
- package/dist/umd/components/option/index.d.ts +0 -2
- package/dist/umd/components/player/index.d.ts +0 -213
- package/dist/umd/components/preview/colz.d.ts +0 -72
- package/dist/umd/components/preview/docx.d.ts +0 -8
- package/dist/umd/components/preview/excel/excel.d.ts +0 -2
- package/dist/umd/components/preview/excel/index.d.ts +0 -1
- package/dist/umd/components/preview/excel/media.d.ts +0 -37
- package/dist/umd/components/preview/index.d.ts +0 -6
- package/dist/umd/components/preview/pdf.d.ts +0 -1
- package/dist/umd/components/preview/pptx/index.d.ts +0 -16
- package/dist/umd/components/preview/pptx/process_pptx.d.ts +0 -23
- package/dist/umd/components/preview/pptx/t_xml.d.ts +0 -1
- package/dist/umd/components/preview/pptx/worker.d.ts +0 -1
- package/dist/umd/components/progress/index.d.ts +0 -36
- package/dist/umd/components/radar/index.d.ts +0 -2
- package/dist/umd/components/scratch/index.d.ts +0 -19
- package/dist/umd/components/select/index.d.ts +0 -105
- package/dist/umd/components/skeleton/index.d.ts +0 -2
- package/dist/umd/components/tab/index.d.ts +0 -408
- package/dist/umd/components/tabpane/index.d.ts +0 -352
- package/dist/umd/index.d.ts +0 -14
- package/dist/umd/playwright.config.d.ts +0 -9
- package/dist/umd/plugins/auto-import-file.d.ts +0 -0
- package/dist/umd/plugins/load-style.d.ts +0 -6
- package/dist/umd/plugins/load-svg.d.ts +0 -9
- package/dist/umd/tests/button.spec.d.ts +0 -1
- package/dist/umd/utils/image.d.ts +0 -32
- package/dist/umd/utils/index.d.ts +0 -64
- package/dist/umd/utils/math.d.ts +0 -26
- package/dist/umd/utils/tween.d.ts +0 -21
- package/dist/umd/vite.config.d.ts +0 -6
- package/dist/utils/image.d.ts +0 -32
- package/dist/utils/index.d.ts +0 -64
- package/dist/utils/math.d.ts +0 -26
- package/dist/utils/tween.d.ts +0 -21
- package/dist/vendor-f71e6f68.js +0 -92126
- package/dist/vite.config.d.ts +0 -6
- /package/dist/{add-user-b2bed3e7.js → add-user-BN1JlY7e.js} +0 -0
- /package/dist/{book-b11a68eb.js → book-nTEFXU2x.js} +0 -0
- /package/dist/{check-circle-fill-dc284144.js → check-circle-fill-B_pd8ZSs.js} +0 -0
- /package/dist/{check-circle-74bd09c3.js → check-circle-szyAJiap.js} +0 -0
- /package/dist/{close-20925345.js → close-CFnkhudp.js} +0 -0
- /package/dist/{close-circle-720c18be.js → close-circle-CwmuN2C6.js} +0 -0
- /package/dist/{close-circle-fill-238a66b1.js → close-circle-fill-jSqPPw9i.js} +0 -0
- /package/dist/{eye-5e742329.js → eye-D_mEt17f.js} +0 -0
- /package/dist/{eye-close-3874f1ae.js → eye-close-BVr3NJtg.js} +0 -0
- /package/dist/{home-c4a05e8b.js → home-BUQ4USMk.js} +0 -0
- /package/dist/{index-8e1e2573.js → index-CQTJoWhb.js} +0 -0
- /package/dist/{info-circle-5826decc.js → info-circle-COnL5bTJ.js} +0 -0
- /package/dist/{loading-09ca52df.js → loading-Dcc5RApI.js} +0 -0
- /package/dist/{lock-1d2487c9.js → lock-Cr7BnmWN.js} +0 -0
- /package/dist/{message-b2bfdea7.js → message-D36_Zo2l.js} +0 -0
- /package/dist/{power-off-6ade5a91.js → power-off-lQRbiBak.js} +0 -0
- /package/dist/{preview-b291aea8.js → preview-CJbz9GjO.js} +0 -0
- /package/dist/{setting-1e5ccb6d.js → setting-DemlgzVC.js} +0 -0
- /package/dist/{team-ca6a12e1.js → team-tl4NJXPC.js} +0 -0
- /package/dist/{unlock-f56086fd.js → unlock-CeU74z9n.js} +0 -0
- /package/dist/{user-5c01e665.js → user-B-eVXwuk.js} +0 -0
- /package/dist/{warning-circle-035e025c.js → warning-circle-DDUgEDIv.js} +0 -0
- /package/dist/{warning-circle-fill-d17c37c9.js → warning-circle-fill-lODUKz0i.js} +0 -0
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
export declare class Input extends HTMLElement {
|
|
2
|
-
static get observedAttributes(): string[];
|
|
3
|
-
_input: HTMLDivElement;
|
|
4
|
-
_label: HTMLLabelElement | undefined;
|
|
5
|
-
_inputContent: HTMLInputElement;
|
|
6
|
-
_icon: HTMLElement | undefined;
|
|
7
|
-
constructor();
|
|
8
|
-
/**
|
|
9
|
-
* @description: 获取input的值
|
|
10
|
-
* @return {String}
|
|
11
|
-
*/
|
|
12
|
-
get value(): string | null;
|
|
13
|
-
/**
|
|
14
|
-
* @description: 设置input的值
|
|
15
|
-
* @param {String} value
|
|
16
|
-
*/
|
|
17
|
-
set value(value: string);
|
|
18
|
-
/**
|
|
19
|
-
* @description: 获取input的占位字符
|
|
20
|
-
* @return {String}
|
|
21
|
-
*/
|
|
22
|
-
get placeholder(): string | null;
|
|
23
|
-
/**
|
|
24
|
-
* @description: 设置input的占位字符
|
|
25
|
-
* @param {String} value
|
|
26
|
-
*/
|
|
27
|
-
set placeholder(value: string);
|
|
28
|
-
/**
|
|
29
|
-
* @description: input是否为必选
|
|
30
|
-
* @return {String}
|
|
31
|
-
*/
|
|
32
|
-
get required(): string | null;
|
|
33
|
-
/**
|
|
34
|
-
* @description: 设置input是否为必选,除非设置成false,否则都是必填
|
|
35
|
-
* @param {*} value
|
|
36
|
-
*/
|
|
37
|
-
set required(value: string);
|
|
38
|
-
/**
|
|
39
|
-
* @description: 获取input上disabled属性
|
|
40
|
-
* @return {String | null}
|
|
41
|
-
*/
|
|
42
|
-
get disabled(): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* @description: 设置input的disabled属性
|
|
45
|
-
* @param {String} value
|
|
46
|
-
*/
|
|
47
|
-
set disabled(value: string);
|
|
48
|
-
/**
|
|
49
|
-
* @description: 获取类似于Metiral Design的输入体验。
|
|
50
|
-
*/
|
|
51
|
-
get label(): string;
|
|
52
|
-
/**
|
|
53
|
-
* @description: 设置类似于Metiral Design的输入体验。
|
|
54
|
-
*/
|
|
55
|
-
set label(value: string);
|
|
56
|
-
/**
|
|
57
|
-
* @description: 获取input框的状态
|
|
58
|
-
*/
|
|
59
|
-
get status(): string;
|
|
60
|
-
/**
|
|
61
|
-
* @description: 设置input框的状态
|
|
62
|
-
*/
|
|
63
|
-
set status(value: string);
|
|
64
|
-
/**
|
|
65
|
-
* @description: 与form组件联动时,收集的属性名
|
|
66
|
-
* @return {String}
|
|
67
|
-
*/
|
|
68
|
-
get name(): string;
|
|
69
|
-
/**
|
|
70
|
-
* @description: 设置name属性
|
|
71
|
-
* @param {string} value
|
|
72
|
-
*/
|
|
73
|
-
set name(value: string);
|
|
74
|
-
/**
|
|
75
|
-
* @description: 当input类型为number类型时,可以获取min属性
|
|
76
|
-
* @return {String}
|
|
77
|
-
*/
|
|
78
|
-
get min(): string;
|
|
79
|
-
/**
|
|
80
|
-
* @description: 当input类型为number类型时,设置min属性
|
|
81
|
-
* @param {string} value
|
|
82
|
-
*/
|
|
83
|
-
set min(value: string);
|
|
84
|
-
/**
|
|
85
|
-
* @description: 当input类型为number类型时,可以获取max属性
|
|
86
|
-
* @return {String}
|
|
87
|
-
*/
|
|
88
|
-
get max(): string;
|
|
89
|
-
/**
|
|
90
|
-
* @description: 当input类型为number类型时,设置max属性
|
|
91
|
-
* @param {string} value
|
|
92
|
-
*/
|
|
93
|
-
set max(value: string);
|
|
94
|
-
/**
|
|
95
|
-
* @description: 当input类型为number类型时,可以获取step属性
|
|
96
|
-
* @return {String}
|
|
97
|
-
*/
|
|
98
|
-
get step(): string;
|
|
99
|
-
/**
|
|
100
|
-
* @description: 当input类型为number类型时,设置step属性
|
|
101
|
-
* @param {string} value
|
|
102
|
-
*/
|
|
103
|
-
set step(value: string);
|
|
104
|
-
/**
|
|
105
|
-
* @description: 获取一个icon
|
|
106
|
-
* @return {String}
|
|
107
|
-
*/
|
|
108
|
-
get icon(): string | null;
|
|
109
|
-
/**
|
|
110
|
-
* @description: 设置icon来表示标识
|
|
111
|
-
* @param {string|null} value
|
|
112
|
-
*/
|
|
113
|
-
set icon(value: string);
|
|
114
|
-
/**
|
|
115
|
-
* @description: 获取input的类型
|
|
116
|
-
* @return {string|null}
|
|
117
|
-
*/
|
|
118
|
-
get type(): string | null;
|
|
119
|
-
/**
|
|
120
|
-
* @description: 设置input的类型
|
|
121
|
-
* @param {string|null} value
|
|
122
|
-
*/
|
|
123
|
-
set type(value: string);
|
|
124
|
-
/**
|
|
125
|
-
* @description: 原生的input方法
|
|
126
|
-
* @param {Event} event
|
|
127
|
-
*/
|
|
128
|
-
customInput: (event: Event) => void;
|
|
129
|
-
/**
|
|
130
|
-
* @description: 增加change方法,同时兼容大小写的情况
|
|
131
|
-
*/
|
|
132
|
-
customChange: () => void;
|
|
133
|
-
/**
|
|
134
|
-
* @description: 监听placeholder属性函数
|
|
135
|
-
* @param {string} name
|
|
136
|
-
* @param {string} value
|
|
137
|
-
*/
|
|
138
|
-
listenPlaceholder: (name: string, value: string) => void;
|
|
139
|
-
/**
|
|
140
|
-
* @description: 监听label属性函数
|
|
141
|
-
* @param {string} name
|
|
142
|
-
* @param {string} value
|
|
143
|
-
*/
|
|
144
|
-
listenLabel: (name: string, value: string) => void;
|
|
145
|
-
/**
|
|
146
|
-
* @description: 监听type属性
|
|
147
|
-
* @param {string} name
|
|
148
|
-
* @param {string} value
|
|
149
|
-
*/
|
|
150
|
-
listenType: (name: string, value: string) => void;
|
|
151
|
-
/**
|
|
152
|
-
* @description: 监听status属性
|
|
153
|
-
* @param {string} name
|
|
154
|
-
* @param {string} value
|
|
155
|
-
*/
|
|
156
|
-
listenStatus: (name: string, value: string) => void;
|
|
157
|
-
/**
|
|
158
|
-
* @description: 监听disabled属性
|
|
159
|
-
* @param {string} name
|
|
160
|
-
* @param {string} value
|
|
161
|
-
*/
|
|
162
|
-
listenDisabled: (name: string, value: string) => void;
|
|
163
|
-
/**
|
|
164
|
-
* @description: 监听icon属性
|
|
165
|
-
* @param {string} name
|
|
166
|
-
* @param {string} value
|
|
167
|
-
*/
|
|
168
|
-
listenIcon: (name: string, value: string, oldValue: string) => void;
|
|
169
|
-
/**
|
|
170
|
-
* @description: 处理icon属性的问题
|
|
171
|
-
*/
|
|
172
|
-
dealIcon: () => void;
|
|
173
|
-
/**
|
|
174
|
-
* @description: 聚合监听事件
|
|
175
|
-
* @param {string} name
|
|
176
|
-
* @param {string} oldValue
|
|
177
|
-
* @param {string} newValue
|
|
178
|
-
*/
|
|
179
|
-
listenEvent: (name: string, oldValue: string, newValue: string) => void;
|
|
180
|
-
connectedCallback(): void;
|
|
181
|
-
disconnectCallback(): void;
|
|
182
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
183
|
-
}
|
|
184
|
-
declare const _default: import('../../utils/index').CustomErrorType;
|
|
185
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const message: {
|
|
2
|
-
info: (options: Ran.Prompt | string | undefined | null) => void;
|
|
3
|
-
success: (options: Ran.Prompt | string | undefined | null) => void;
|
|
4
|
-
error: (options: Ran.Prompt | string | undefined | null) => void;
|
|
5
|
-
warning: (options: Ran.Prompt | string | undefined | null) => void;
|
|
6
|
-
toast: (options: Ran.Prompt | string | undefined | null) => void;
|
|
7
|
-
} | {
|
|
8
|
-
info?: undefined;
|
|
9
|
-
success?: undefined;
|
|
10
|
-
error?: undefined;
|
|
11
|
-
warning?: undefined;
|
|
12
|
-
toast?: undefined;
|
|
13
|
-
};
|
|
14
|
-
export default message;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
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
|
-
};
|
|
7
|
-
import { c as createCustomError, i as isDisabled } from "../../index-57492b9b.js";
|
|
8
|
-
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 ranui-select-dropdown-down-in{0%{transform:scaleY(.8);transform-origin:100% 100%;opacity:0}to{transform:scaleY(1);transform-origin:100% 100%;opacity:1}}@keyframes ranui-select-dropdown-down-out{0%{transform:scaleY(1);transform-origin:100% 100%;opacity:1}to{transform:scaleY(.8);transform-origin:100% 100%;opacity:0}}@keyframes ranui-select-dropdown-up-in{0%{transform:scaleY(.8);transform-origin:0% 0%;opacity:0}to{transform:scaleY(1);transform-origin:0% 0%;opacity:1}}@keyframes ranui-select-dropdown-up-out{0%{transform:scaleY(1);transform-origin:0% 0%;opacity:1}to{transform:scaleY(.8);transform-origin:0% 0%;opacity:0}}.ran-select-dropdown-down-in{animation:ranui-select-dropdown-up-in .2s;animation-fill-mode:forwards}.ran-select-dropdown-down-out{animation:ranui-select-dropdown-up-out .2s;animation-fill-mode:forwards}.ran-select-dropdown-up-in{animation:ranui-select-dropdown-down-in .2s;animation-fill-mode:forwards}.ran-select-dropdown-up-out{animation:ranui-select-dropdown-down-out .2s;animation-fill-mode:forwards}.ranui-select-dropdown{position:absolute;transform-origin:var(--ran-x, 50%) var(--ran-y, 50%);box-sizing:border-box;margin:0;padding:4px;color:#000000e0;font-size:14px;list-style:none;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";z-index:1050;overflow:hidden;font-variant:initial;background:#ffffff;border-radius:8px;outline:none;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;cursor:pointer}.ranui-select-dropdown-option-item{position:relative;display:block;padding:5px 12px;color:#000000e0;font-weight:400;font-size:14px;transition:background .3s ease;border-radius:4px}.ranui-select-dropdown-option-item:hover{background-color:#0000000a}.ranui-select-dropdown-option-item-content{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#000000e0;font-size:14px;line-height:1.57142857;box-sizing:border-box;list-style:none;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:initial}.ranui-select-dropdown-option-active{background-color:#e6f7ff;font-weight:700}.ranui-select-dropdown-option-active:hover{background-color:#e6f7ff}\n';
|
|
9
|
-
const index$1 = "";
|
|
10
|
-
function Custom() {
|
|
11
|
-
if (typeof document !== "undefined" && !customElements.get("r-option")) {
|
|
12
|
-
class Option extends HTMLElement {
|
|
13
|
-
constructor() {
|
|
14
|
-
super();
|
|
15
|
-
__publicField(this, "_option");
|
|
16
|
-
__publicField(this, "_optionContent");
|
|
17
|
-
__publicField(this, "_shadowDom");
|
|
18
|
-
__publicField(this, "_slot");
|
|
19
|
-
this._slot = document.createElement("slot");
|
|
20
|
-
this._option = document.createElement("div");
|
|
21
|
-
this._option.setAttribute("class", "ran-option");
|
|
22
|
-
this._optionContent = document.createElement("div");
|
|
23
|
-
this._optionContent.setAttribute("class", "ran-option-content");
|
|
24
|
-
this._optionContent.appendChild(this._slot);
|
|
25
|
-
this._option.appendChild(this._optionContent);
|
|
26
|
-
const shadowRoot = this.attachShadow({ mode: "closed" });
|
|
27
|
-
const F7170EE498E0DD32CBDCB63FBA8F75CC = document.createElement("style");
|
|
28
|
-
F7170EE498E0DD32CBDCB63FBA8F75CC.textContent = f7170ee498e0dd32cbdcb63fba8f75cc;
|
|
29
|
-
shadowRoot.appendChild(F7170EE498E0DD32CBDCB63FBA8F75CC);
|
|
30
|
-
this._shadowDom = shadowRoot;
|
|
31
|
-
shadowRoot.appendChild(this._option);
|
|
32
|
-
}
|
|
33
|
-
static get observedAttributes() {
|
|
34
|
-
return ["disabled", "sheet", "value"];
|
|
35
|
-
}
|
|
36
|
-
get value() {
|
|
37
|
-
return this.getAttribute("value");
|
|
38
|
-
}
|
|
39
|
-
set value(value) {
|
|
40
|
-
this.setAttribute("value", value || "");
|
|
41
|
-
}
|
|
42
|
-
get sheet() {
|
|
43
|
-
return this.getAttribute("sheet");
|
|
44
|
-
}
|
|
45
|
-
set sheet(value) {
|
|
46
|
-
this.setAttribute("sheet", value || "");
|
|
47
|
-
}
|
|
48
|
-
get disabled() {
|
|
49
|
-
return isDisabled(this);
|
|
50
|
-
}
|
|
51
|
-
set disabled(value) {
|
|
52
|
-
if (!value || value === "false") {
|
|
53
|
-
this.removeAttribute("disabled");
|
|
54
|
-
} else {
|
|
55
|
-
this.setAttribute("disabled", "");
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
handlerExternalCss() {
|
|
59
|
-
if (this.sheet) {
|
|
60
|
-
try {
|
|
61
|
-
const sheet = new CSSStyleSheet();
|
|
62
|
-
sheet.insertRule(this.sheet);
|
|
63
|
-
this._shadowDom.adoptedStyleSheets = [sheet];
|
|
64
|
-
} catch (error) {
|
|
65
|
-
console.error(
|
|
66
|
-
`Failed to parse the rule in CSSStyleSheet: ${this.sheet}`
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
connectedCallback() {
|
|
72
|
-
}
|
|
73
|
-
disconnectCallback() {
|
|
74
|
-
}
|
|
75
|
-
attributeChangedCallback(name, oldValue, newValue) {
|
|
76
|
-
if (name === "disabled" && this._option) {
|
|
77
|
-
if (!newValue || newValue === "false") {
|
|
78
|
-
this._option.setAttribute("disabled", "");
|
|
79
|
-
} else {
|
|
80
|
-
this._option.removeAttribute("disabled");
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (name === "sheet" && this._shadowDom && oldValue !== newValue)
|
|
84
|
-
this.handlerExternalCss();
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return Option;
|
|
88
|
-
} else {
|
|
89
|
-
return createCustomError("document is undefined or r-option is exist");
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
const index = Custom();
|
|
93
|
-
export {
|
|
94
|
-
index as default
|
|
95
|
-
};
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { SyncHook } from 'ranuts';
|
|
3
|
-
import type { Progress } from '../progress';
|
|
4
|
-
export interface HlsPlayer {
|
|
5
|
-
startLoad(): () => void;
|
|
6
|
-
off: (s: string, f: Function) => void;
|
|
7
|
-
on: (s: string, f: Function) => void;
|
|
8
|
-
loadSource: (s: string) => void;
|
|
9
|
-
attachMedia: (v: HTMLVideoElement) => void;
|
|
10
|
-
destroy: () => void;
|
|
11
|
-
}
|
|
12
|
-
export interface Level {
|
|
13
|
-
audioCodec: string;
|
|
14
|
-
bitrate: number;
|
|
15
|
-
height: number;
|
|
16
|
-
width: number;
|
|
17
|
-
name: string;
|
|
18
|
-
url: string;
|
|
19
|
-
videoCodec: string;
|
|
20
|
-
}
|
|
21
|
-
export interface Context {
|
|
22
|
-
action: SyncHook;
|
|
23
|
-
currentState: string;
|
|
24
|
-
duration: number;
|
|
25
|
-
currentTime: number;
|
|
26
|
-
volume: number;
|
|
27
|
-
playbackRate: number;
|
|
28
|
-
fullScreen: boolean;
|
|
29
|
-
levels: Partial<Level>[];
|
|
30
|
-
url: string;
|
|
31
|
-
levelMap: Map<string, string>;
|
|
32
|
-
clarity: string;
|
|
33
|
-
}
|
|
34
|
-
export declare class RanPlayer extends HTMLElement {
|
|
35
|
-
ctx: Context;
|
|
36
|
-
_player: HTMLDivElement;
|
|
37
|
-
_container: HTMLDivElement;
|
|
38
|
-
_slot: HTMLSlotElement;
|
|
39
|
-
_playerController: HTMLDivElement;
|
|
40
|
-
_playerBtn: HTMLDivElement;
|
|
41
|
-
_progress: HTMLDivElement;
|
|
42
|
-
_progressDot: HTMLDivElement;
|
|
43
|
-
_progressWrap: HTMLDivElement;
|
|
44
|
-
_progressWrapValue: HTMLDivElement;
|
|
45
|
-
requestAnimationFrameId?: number;
|
|
46
|
-
moveProgress: {
|
|
47
|
-
percentage: number;
|
|
48
|
-
mouseDown: boolean;
|
|
49
|
-
};
|
|
50
|
-
_playerControllerBottom: HTMLDivElement;
|
|
51
|
-
_playerControllerBottomRight: HTMLDivElement;
|
|
52
|
-
_playerControllerBottomLeft: HTMLDivElement;
|
|
53
|
-
_playerControllerBottomPlayBtn: HTMLDivElement;
|
|
54
|
-
_playerControllerBottomTimeCurrent: HTMLDivElement;
|
|
55
|
-
_playerControllerBottomTimeDuration: HTMLDivElement;
|
|
56
|
-
_playerControllerBottomTimeDivide: HTMLDivElement;
|
|
57
|
-
_playControllerBottomClarity: HTMLElement;
|
|
58
|
-
_playControllerBottomSpeed: HTMLDivElement;
|
|
59
|
-
_playControllerBottomSpeedIcon: HTMLDivElement;
|
|
60
|
-
_playControllerBottomVolumeProgress: Progress;
|
|
61
|
-
_playControllerBottomRightFullScreen: HTMLDivElement;
|
|
62
|
-
_playControllerBottomVolume: HTMLDivElement;
|
|
63
|
-
_playControllerBottomSpeedPopover: HTMLElement;
|
|
64
|
-
controllerBarTimeId?: NodeJS.Timeout;
|
|
65
|
-
_playerTip: HTMLDivElement;
|
|
66
|
-
_playerTipTime: HTMLDivElement;
|
|
67
|
-
_playerTipText: HTMLDivElement;
|
|
68
|
-
_volume?: number;
|
|
69
|
-
_video?: HTMLVideoElement;
|
|
70
|
-
_hls?: HlsPlayer;
|
|
71
|
-
static get observedAttributes(): string[];
|
|
72
|
-
/**
|
|
73
|
-
* @description: 初始化view和video的全局上下文
|
|
74
|
-
* @return {*}
|
|
75
|
-
*/
|
|
76
|
-
constructor();
|
|
77
|
-
get src(): string;
|
|
78
|
-
set src(value: string);
|
|
79
|
-
get volume(): string;
|
|
80
|
-
set volume(value: string);
|
|
81
|
-
get currentTime(): string;
|
|
82
|
-
set currentTime(value: string);
|
|
83
|
-
get playbackRate(): string;
|
|
84
|
-
set playbackRate(value: string);
|
|
85
|
-
changeClarityToSetVideo: () => void;
|
|
86
|
-
changeClarity: (e: Event) => void;
|
|
87
|
-
createClaritySelect: () => void;
|
|
88
|
-
manifestLoaded: (type: string, data: {
|
|
89
|
-
levels: Level[];
|
|
90
|
-
url: string;
|
|
91
|
-
}) => void;
|
|
92
|
-
/**
|
|
93
|
-
* @description: 初始化 video 和更新 video 方法
|
|
94
|
-
* @return {*}
|
|
95
|
-
*/
|
|
96
|
-
updatePlayer: () => void;
|
|
97
|
-
change: (name: string, value: unknown) => void;
|
|
98
|
-
onCanplay: (e: Event) => void;
|
|
99
|
-
onCanplaythrough: (e: Event) => void;
|
|
100
|
-
onComplete: (e: Event) => void;
|
|
101
|
-
onDurationchange: (e: Event) => void;
|
|
102
|
-
onEmptied: (e: Event) => void;
|
|
103
|
-
onEnded: (e: Event) => void;
|
|
104
|
-
onError: (e: Event) => void;
|
|
105
|
-
onLoadedmetadata: (e: Event) => void;
|
|
106
|
-
onLoadstart: (e: Event) => void;
|
|
107
|
-
onProgress: (e: Event) => void;
|
|
108
|
-
onRatechange: (e: Event) => void;
|
|
109
|
-
onSeeked: (e: Event) => void;
|
|
110
|
-
onSeeking: (e: Event) => void;
|
|
111
|
-
onStalled: (e: Event) => void;
|
|
112
|
-
onSuspend: (e: Event) => void;
|
|
113
|
-
onLoadeddata: (e: Event) => void;
|
|
114
|
-
onTimeupdate: (e: Event) => void;
|
|
115
|
-
onVolumechange: (e: Event) => void;
|
|
116
|
-
onWaiting: (e: Event) => void;
|
|
117
|
-
onPlay: (e: Event) => void;
|
|
118
|
-
onPlaying: (e: Event) => void;
|
|
119
|
-
onPause: (e: Event) => void;
|
|
120
|
-
clearListenerEvent: () => void;
|
|
121
|
-
/**
|
|
122
|
-
* @description: 用户行为和 video 之间的交互
|
|
123
|
-
* @return {*}
|
|
124
|
-
*/
|
|
125
|
-
listenEvent: () => void;
|
|
126
|
-
showControllerBar: (e?: MouseEvent) => void;
|
|
127
|
-
/**
|
|
128
|
-
* @description: 进度条点击事件
|
|
129
|
-
* @param {MouseEvent} e
|
|
130
|
-
* @return {*}
|
|
131
|
-
*/
|
|
132
|
-
progressClick: (e: MouseEvent) => void;
|
|
133
|
-
/**
|
|
134
|
-
* @description: 进度条鼠标按下事件
|
|
135
|
-
* @param {MouseEvent} e
|
|
136
|
-
* @return {*}
|
|
137
|
-
*/
|
|
138
|
-
progressDotMouseDown: (e: MouseEvent) => void;
|
|
139
|
-
/**
|
|
140
|
-
* @description: 进度条鼠标移动事件
|
|
141
|
-
* @param {MouseEvent} e
|
|
142
|
-
* @return {*}
|
|
143
|
-
*/
|
|
144
|
-
progressDotMouseMove: (e: MouseEvent) => void;
|
|
145
|
-
/**
|
|
146
|
-
* @description: 进度条鼠标松开事件
|
|
147
|
-
* @param {MouseEvent} e
|
|
148
|
-
* @return {*}
|
|
149
|
-
*/
|
|
150
|
-
progressDotMouseUp: () => void;
|
|
151
|
-
/**
|
|
152
|
-
* @description: 更新页面样式
|
|
153
|
-
* @param {Function} fn
|
|
154
|
-
* @return {*}
|
|
155
|
-
*/
|
|
156
|
-
requestAnimationFrame: (fn: Function) => void;
|
|
157
|
-
/**
|
|
158
|
-
* @description: 取消页面动画
|
|
159
|
-
* @param {Function} fn
|
|
160
|
-
* @return {*}
|
|
161
|
-
*/
|
|
162
|
-
cancelAnimationFrame: () => void;
|
|
163
|
-
/**
|
|
164
|
-
* @description: 更新进度条
|
|
165
|
-
* @param {*} void
|
|
166
|
-
* @return {*}
|
|
167
|
-
*/
|
|
168
|
-
updateCurrentProgress: () => void;
|
|
169
|
-
changeAttribute: (k: string, o: string, n: string, attribute: string, callback: Function) => void;
|
|
170
|
-
/**
|
|
171
|
-
* @description: 点击整个视频时,触发的事件
|
|
172
|
-
* @param {*} void
|
|
173
|
-
* @return {*}
|
|
174
|
-
*/
|
|
175
|
-
dispatchClickPlayerContainerAction: (e: Event) => void;
|
|
176
|
-
/**
|
|
177
|
-
* @description: 空格事件
|
|
178
|
-
* @param {KeyboardEvent} e
|
|
179
|
-
* @return {*}
|
|
180
|
-
*/
|
|
181
|
-
SpaceKeyDown: (e: KeyboardEvent) => void;
|
|
182
|
-
/**
|
|
183
|
-
* @description: 点击player-btn,触发的事件
|
|
184
|
-
* @param {*} void
|
|
185
|
-
* @return {*}
|
|
186
|
-
*/
|
|
187
|
-
dispatchClickPlayerBtnAction: (e: Event) => void;
|
|
188
|
-
changeVolumeProgress: (e: Event) => void;
|
|
189
|
-
customRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
190
|
-
customExitFullscreen: () => Promise<void>;
|
|
191
|
-
openFullScreen: () => void;
|
|
192
|
-
changeSpeed: (e: Event) => void;
|
|
193
|
-
progressMouseEnter: (e: MouseEvent) => void;
|
|
194
|
-
progressMouseLeave: (e: MouseEvent) => void;
|
|
195
|
-
progressMouseMove: (e: MouseEvent) => void;
|
|
196
|
-
changePlayerVolume: () => void;
|
|
197
|
-
resize: () => void;
|
|
198
|
-
fullScreenChange: () => void;
|
|
199
|
-
getPlaybackRate: () => number;
|
|
200
|
-
setPlaybackRate: (n: number) => number;
|
|
201
|
-
setVolume: (n: number) => number;
|
|
202
|
-
getVolume: () => number;
|
|
203
|
-
setCurrentTime: (n: number) => number;
|
|
204
|
-
getCurrentTime: () => number;
|
|
205
|
-
getTotalTime: () => number;
|
|
206
|
-
play: (n?: number) => void;
|
|
207
|
-
pause: () => void;
|
|
208
|
-
connectedCallback(): void;
|
|
209
|
-
disconnectCallback(): void;
|
|
210
|
-
attributeChangedCallback(k: string, o: string, n: string): void;
|
|
211
|
-
}
|
|
212
|
-
declare const _default: typeof RanPlayer | undefined;
|
|
213
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "../../index-7913ec46.js";
|
|
2
|
-
import { R, a } from "../../index-e2e5d725.js";
|
|
3
|
-
import "../../index-1b73beee.js";
|
|
4
|
-
import "../../vendor-f71e6f68.js";
|
|
5
|
-
import "../../index-57492b9b.js";
|
|
6
|
-
import "../option/index.js";
|
|
7
|
-
import "../../index-7216d6b0.js";
|
|
8
|
-
import "../../index-1048a998.js";
|
|
9
|
-
export {
|
|
10
|
-
R as RanPlayer,
|
|
11
|
-
a as default
|
|
12
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
type ColorVal = (string | number)[];
|
|
2
|
-
export declare class Rgb {
|
|
3
|
-
r: string | number;
|
|
4
|
-
g: string | number;
|
|
5
|
-
b: string | number;
|
|
6
|
-
constructor(col: Array<string | number>);
|
|
7
|
-
toString(): string;
|
|
8
|
-
}
|
|
9
|
-
export declare class Rgba extends Rgb {
|
|
10
|
-
a: string | number;
|
|
11
|
-
constructor(col: Array<string | number>);
|
|
12
|
-
toString(): string;
|
|
13
|
-
}
|
|
14
|
-
export declare class Hsl {
|
|
15
|
-
h: string | number;
|
|
16
|
-
s: string | number;
|
|
17
|
-
l: string | number;
|
|
18
|
-
constructor(col: Array<string | number>);
|
|
19
|
-
toString(): string;
|
|
20
|
-
}
|
|
21
|
-
export declare class Hsla extends Hsl {
|
|
22
|
-
a: string | number;
|
|
23
|
-
constructor(col: Array<string | number>);
|
|
24
|
-
toString(): string;
|
|
25
|
-
}
|
|
26
|
-
export declare class Color {
|
|
27
|
-
r: string | number;
|
|
28
|
-
g: string | number;
|
|
29
|
-
b: string | number;
|
|
30
|
-
a: string | number;
|
|
31
|
-
rgb: Rgb;
|
|
32
|
-
rgba: Rgba;
|
|
33
|
-
hex: string;
|
|
34
|
-
hsl: Hsl;
|
|
35
|
-
hsla: Hsla;
|
|
36
|
-
h: string | number;
|
|
37
|
-
s: string | number;
|
|
38
|
-
l: string | number;
|
|
39
|
-
constructor(r: string | number | Array<string | number>, g?: string | number, b?: string | number, a?: string | number);
|
|
40
|
-
setHue(newHue: string | number): void;
|
|
41
|
-
setSat(newSat: string | number): void;
|
|
42
|
-
setLum(newLum: number): void;
|
|
43
|
-
setAlpha(newAlpha: string | number): void;
|
|
44
|
-
updateFromHsl(): void;
|
|
45
|
-
}
|
|
46
|
-
export declare const randomColor: () => Color;
|
|
47
|
-
export declare const hexToRgb: (hex: string) => RegExpExecArray | null | Array<number>;
|
|
48
|
-
export declare const getDarkColor: (color: string, level: number) => string;
|
|
49
|
-
export declare function getLightColor(color: string, level: number): string;
|
|
50
|
-
export declare const componentToHex: (c: string | number) => string;
|
|
51
|
-
export declare const rgbToHex: (r: string | number | Array<string | number>, g?: string | number, b?: string | number) => string;
|
|
52
|
-
export declare const rgbToHsl: (r: number | number[], g?: number, b?: number) => Array<number>;
|
|
53
|
-
export declare const hue2rgb: (p: number, q: number, t: number) => number;
|
|
54
|
-
export declare const hslToRgb: (h: number | string | number[], s: number | string, l: number | string) => Array<number>;
|
|
55
|
-
export declare const rgbToHsb: (r: number, g: number, b: number) => number[];
|
|
56
|
-
export declare const hsbToRgb: (h: number, s: number, v: number) => number[];
|
|
57
|
-
export declare const hsvToRgb: (h: number, s: number, v: number) => number[];
|
|
58
|
-
export declare const hsbToHsl: (h: any, s: any, b: any) => number[];
|
|
59
|
-
export declare const hsvToHsl: (h: any, s: any, b: any) => number[];
|
|
60
|
-
export declare class ColorScheme {
|
|
61
|
-
palette: Color[];
|
|
62
|
-
constructor(colorVal: (string | number)[], angleArray: number[]);
|
|
63
|
-
createFromColors(colorVal: (string | number)[]): Color[];
|
|
64
|
-
createFromAngles(colorVal: string | number | (string | number)[], angleArray: number[]): Color[];
|
|
65
|
-
static Compl(colorVal: ColorVal): ColorScheme;
|
|
66
|
-
static Triad(colorVal: ColorVal): ColorScheme;
|
|
67
|
-
static Tetrad(colorVal: ColorVal): ColorScheme;
|
|
68
|
-
static Analog(colorVal: ColorVal): ColorScheme;
|
|
69
|
-
static Split(colorVal: ColorVal): ColorScheme;
|
|
70
|
-
static Accent(colorVal: ColorVal): ColorScheme;
|
|
71
|
-
}
|
|
72
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface DocxOptions {
|
|
2
|
-
bodyContainer?: HTMLElement | null;
|
|
3
|
-
styleContainer?: HTMLElement;
|
|
4
|
-
buffer: Blob;
|
|
5
|
-
docxOptions?: Partial<Record<string, string | boolean>>;
|
|
6
|
-
}
|
|
7
|
-
export declare const renderDocx: (options: DocxOptions) => Promise<void> | undefined;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const renderExcel: (file: File, dom?: HTMLElement) => Promise<void>;
|