@zyzgroup/core-web 0.0.35 → 0.0.37
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/better.css +1 -1
- package/dist/standard.css +51 -0
- package/dist/zyzgroup_core_web.iife.js +19 -19
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +2575 -2541
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +19 -19
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +4 -3
- package/types/fetch.d.ts +20 -14
- package/types/fetch.d.ts.map +1 -1
- package/types/ui/balmui.d.ts +1 -0
- package/types/ui/balmui.d.ts.map +1 -0
- package/types/ui/weui.d.ts +1 -0
- package/types/ui/weui.d.ts.map +1 -0
- package/types/url.d.ts +11 -12
- package/types/url.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zyzgroup/core-web",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.37",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"browser": {
|
|
7
7
|
"fs": false,
|
|
@@ -26,14 +26,15 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/hammerjs": "^2.0.45",
|
|
28
28
|
"@types/node": "^20.7.1",
|
|
29
|
-
"@zyzgroup/core-common": "
|
|
29
|
+
"@zyzgroup/core-common": "workspace:^",
|
|
30
30
|
"hammerjs": "^2.0.8",
|
|
31
31
|
"konva": "^9.2.2",
|
|
32
32
|
"pako": "^2.1.0",
|
|
33
33
|
"raphael": "^2.3.0",
|
|
34
34
|
"rimraf": "^5.0.5",
|
|
35
35
|
"typescript": "^5.2.2",
|
|
36
|
-
"uzip": "^0.20201231.0"
|
|
36
|
+
"uzip": "^0.20201231.0",
|
|
37
|
+
"weui.js": "^1.2.21"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
40
|
"three": "^0.162.0"
|
package/types/fetch.d.ts
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
export function createXMLHttpRequest(): any;
|
|
2
|
-
export function
|
|
3
|
-
url:
|
|
4
|
-
data: string | FormData
|
|
1
|
+
export declare function createXMLHttpRequest(): any;
|
|
2
|
+
export declare function getFormSubmitData(oFormElement: HTMLFormElement): {
|
|
3
|
+
url: string;
|
|
4
|
+
data: string | FormData;
|
|
5
5
|
boundary: string;
|
|
6
|
-
}
|
|
7
|
-
export function ajax(
|
|
8
|
-
method
|
|
9
|
-
url:
|
|
10
|
-
data?: string |
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
};
|
|
7
|
+
export declare function ajax(options: {
|
|
8
|
+
method: string;
|
|
9
|
+
url: string;
|
|
10
|
+
data?: string | Record<string, string> | FormData;
|
|
11
|
+
headers?: Record<string, string>;
|
|
12
|
+
responseType?: "json" | "" | "arraybuffer" | "blob" | "document" | "text";
|
|
13
|
+
timeout?: number;
|
|
14
|
+
boundary?: string;
|
|
15
|
+
progress?: (percentage: number) => void;
|
|
16
|
+
load?: (e: any) => void;
|
|
17
|
+
loadstart?: (e: any) => void;
|
|
18
|
+
loadend?: (e: any) => void;
|
|
19
|
+
abort?: (e: any) => void;
|
|
20
|
+
}): Promise<unknown>;
|
|
21
|
+
export declare function ifWebFileHasChanged(sURL: string, fCallback: (nLastModif: Date, nLastVisit: number) => void): void;
|
|
16
22
|
//# sourceMappingURL=fetch.d.ts.map
|
package/types/fetch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../src/fetch.
|
|
1
|
+
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../src/fetch.ts"],"names":[],"mappings":"AAOA,wBAAgB,oBAAoB,QAwBnC;AAoDD,wBAAgB,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"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=weui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"weui.d.ts","sourceRoot":"","sources":["../../src/ui/weui.js"],"names":[],"mappings":""}
|
package/types/url.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare function getURL(url?: string): {
|
|
|
10
10
|
search: string;
|
|
11
11
|
hash: string;
|
|
12
12
|
};
|
|
13
|
-
export declare function parseURL(url
|
|
13
|
+
export declare function parseURL(url?: string): {
|
|
14
14
|
href: string;
|
|
15
15
|
protocol: string;
|
|
16
16
|
host: string;
|
|
@@ -20,16 +20,15 @@ export declare function parseURL(url: string): {
|
|
|
20
20
|
search: string;
|
|
21
21
|
hash: string;
|
|
22
22
|
};
|
|
23
|
-
export declare function trimUrlHash(href?: string): string;
|
|
24
|
-
export declare function parseUrlParams(str: string): Record<string, string>;
|
|
25
23
|
export declare function isURL(string: string): boolean;
|
|
26
|
-
export declare function
|
|
27
|
-
export declare function
|
|
28
|
-
export declare function
|
|
29
|
-
export declare function
|
|
30
|
-
export declare
|
|
31
|
-
export declare function
|
|
32
|
-
export declare function
|
|
33
|
-
export declare function
|
|
34
|
-
export declare function
|
|
24
|
+
export declare function trimURLHash(href?: string): string;
|
|
25
|
+
export declare function searchStringToRecord(str?: string): Record<string, string>;
|
|
26
|
+
export declare function searchStringToRecord2(query: string | string[][] | Record<string, string> | URLSearchParams): Record<string, string>;
|
|
27
|
+
export declare function recordToSearchString(params: Record<string, string>): string;
|
|
28
|
+
export declare function recordToSearchString2(params: Record<string, string>): string;
|
|
29
|
+
export declare function formDataToSearchString(fd: FormData): string;
|
|
30
|
+
export declare function appendURLSearchString(url: string, search: string): string;
|
|
31
|
+
export declare function onURLChange(cb: (href: string) => any): void;
|
|
32
|
+
export declare function onHashChange(cb: (hash: string) => any): void;
|
|
33
|
+
export declare function onHistoryChange(cb: (e: PopStateEvent) => any): void;
|
|
35
34
|
//# sourceMappingURL=url.d.ts.map
|
package/types/url.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../src/url.ts"],"names":[],"mappings":"AAqBA,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,UAK1C;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,UAOnD;AAkBD,wBAAgB,MAAM,CAAC,GAAG,SAAuB;;;;;;;;;EAMhD;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../src/url.ts"],"names":[],"mappings":"AAqBA,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,UAK1C;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,UAOnD;AAkBD,wBAAgB,MAAM,CAAC,GAAG,SAAuB;;;;;;;;;EAMhD;AAED,wBAAgB,QAAQ,CAAC,GAAG,SAAuB;;;;;;;;;EAkBlD;AAED,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,WAGnC;AAED,wBAAgB,WAAW,CAAC,IAAI,SAAuB,UAMtD;AAMD,wBAAgB,oBAAoB,CAAC,GAAG,SAAkB,0BAazD;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,eAAe,0BAStE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UASlE;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAEnE;AAQD,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,QAAQ,UAYlD;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAMhE;AAED,wBAAgB,WAAW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