@whitesev/domutils 1.9.2 → 1.9.3
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.md +58 -58
- package/dist/index.amd.js +40 -22
- package/dist/index.amd.js.map +1 -1
- package/dist/index.amd.min.js +1 -1
- package/dist/index.amd.min.js.map +1 -1
- package/dist/index.cjs.js +40 -22
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +40 -22
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.iife.js +40 -22
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.system.js +40 -22
- package/dist/index.system.js.map +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/dist/index.umd.js +40 -22
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/src/types/DOMUtilsCSSProperty.d.ts +36 -36
- package/dist/types/src/types/DOMUtilsEvent.d.ts +420 -420
- package/dist/types/src/types/WindowApi.d.ts +14 -14
- package/dist/types/src/types/env.d.ts +10 -10
- package/dist/types/src/types/global.d.ts +1 -1
- package/dist/types/src/types/gm.d.ts +2 -2
- package/index.ts +3 -3
- package/package.json +21 -22
- package/src/CommonUtils.ts +163 -163
- package/src/ElementAnimate.ts +290 -290
- package/src/ElementEvent.ts +1569 -1569
- package/src/ElementHandler.ts +43 -43
- package/src/ElementSelector.ts +307 -289
- package/src/ElementWait.ts +742 -742
- package/src/GlobalData.ts +5 -5
- package/src/OriginPrototype.ts +5 -5
- package/src/Utils.ts +388 -388
- package/src/WindowApi.ts +59 -59
- package/src/index.ts +2052 -2052
- package/src/types/DOMUtilsCSSProperty.d.ts +36 -36
- package/src/types/DOMUtilsEvent.d.ts +420 -420
- package/src/types/WindowApi.d.ts +14 -14
- package/src/types/env.d.ts +10 -10
- package/src/types/global.d.ts +1 -1
- package/src/types/gm.d.ts +2 -2
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 属性转驼峰
|
|
3
|
-
*/
|
|
4
|
-
export type DOMUtilsCamelToKebabCSSProperty<S extends string> = S extends `webkit${infer U}`
|
|
5
|
-
? `-${Lowercase<"webkit">}${U extends `${infer First}${infer Rest}`
|
|
6
|
-
? First extends Uppercase<First>
|
|
7
|
-
? `-${Uncapitalize<First>}${DOMUtilsCamelToKebabCSSProperty<Rest>}`
|
|
8
|
-
: `${First}${DOMUtilsCamelToKebabCSSProperty<Rest>}`
|
|
9
|
-
: U}`
|
|
10
|
-
: S extends `${infer T}${infer U}`
|
|
11
|
-
? U extends Uncapitalize<U>
|
|
12
|
-
? `${Uncapitalize<T>}${DOMUtilsCamelToKebabCSSProperty<U>}`
|
|
13
|
-
: `${Uncapitalize<T>}-${DOMUtilsCamelToKebabCSSProperty<U>}`
|
|
14
|
-
: S;
|
|
15
|
-
|
|
16
|
-
export type DOMUtilsCSSPropertyType = DOMUtilsCamelToKebabCSSProperty<
|
|
17
|
-
Extract<
|
|
18
|
-
keyof Omit<
|
|
19
|
-
CSSStyleDeclaration,
|
|
20
|
-
| "cssFloat"
|
|
21
|
-
| "cssText"
|
|
22
|
-
| "length"
|
|
23
|
-
| "parentRule"
|
|
24
|
-
| "getPropertyPriority"
|
|
25
|
-
| "getPropertyValue"
|
|
26
|
-
| "item"
|
|
27
|
-
| "removeProperty"
|
|
28
|
-
| "setProperty"
|
|
29
|
-
>,
|
|
30
|
-
string
|
|
31
|
-
>
|
|
32
|
-
>;
|
|
33
|
-
|
|
34
|
-
export type DOMUtilsCSSProperty = {
|
|
35
|
-
[P in DOMUtilsCSSPropertyType]: string | number;
|
|
36
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* 属性转驼峰
|
|
3
|
+
*/
|
|
4
|
+
export type DOMUtilsCamelToKebabCSSProperty<S extends string> = S extends `webkit${infer U}`
|
|
5
|
+
? `-${Lowercase<"webkit">}${U extends `${infer First}${infer Rest}`
|
|
6
|
+
? First extends Uppercase<First>
|
|
7
|
+
? `-${Uncapitalize<First>}${DOMUtilsCamelToKebabCSSProperty<Rest>}`
|
|
8
|
+
: `${First}${DOMUtilsCamelToKebabCSSProperty<Rest>}`
|
|
9
|
+
: U}`
|
|
10
|
+
: S extends `${infer T}${infer U}`
|
|
11
|
+
? U extends Uncapitalize<U>
|
|
12
|
+
? `${Uncapitalize<T>}${DOMUtilsCamelToKebabCSSProperty<U>}`
|
|
13
|
+
: `${Uncapitalize<T>}-${DOMUtilsCamelToKebabCSSProperty<U>}`
|
|
14
|
+
: S;
|
|
15
|
+
|
|
16
|
+
export type DOMUtilsCSSPropertyType = DOMUtilsCamelToKebabCSSProperty<
|
|
17
|
+
Extract<
|
|
18
|
+
keyof Omit<
|
|
19
|
+
CSSStyleDeclaration,
|
|
20
|
+
| "cssFloat"
|
|
21
|
+
| "cssText"
|
|
22
|
+
| "length"
|
|
23
|
+
| "parentRule"
|
|
24
|
+
| "getPropertyPriority"
|
|
25
|
+
| "getPropertyValue"
|
|
26
|
+
| "item"
|
|
27
|
+
| "removeProperty"
|
|
28
|
+
| "setProperty"
|
|
29
|
+
>,
|
|
30
|
+
string
|
|
31
|
+
>
|
|
32
|
+
>;
|
|
33
|
+
|
|
34
|
+
export type DOMUtilsCSSProperty = {
|
|
35
|
+
[P in DOMUtilsCSSPropertyType]: string | number;
|
|
36
|
+
};
|