@fangzhongya/utils 0.0.8-17 → 0.0.8-19
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/basic/array/index.d.ts +1 -1
- package/dist/basic/index.cjs +6 -6
- package/dist/basic/index.d.ts +12 -12
- package/dist/basic/index.js +5 -5
- package/dist/basic/object/index.cjs +4 -4
- package/dist/basic/object/index.d.ts +2 -2
- package/dist/basic/object/index.js +4 -4
- package/dist/basic/string/index.d.ts +2 -2
- package/dist/{chunk-2KTCFVJU.cjs → chunk-4X7AFGTV.cjs} +6 -2
- package/dist/chunk-C75LAFSJ.js +87 -0
- package/dist/{chunk-LD4UQLBZ.cjs → chunk-DBKEZO7Q.cjs} +2 -2
- package/dist/{chunk-3QULXBW6.js → chunk-DIDMCIXC.js} +5 -1
- package/dist/{chunk-MRL33SGT.cjs → chunk-EFZXTFG3.cjs} +5 -1
- package/dist/{chunk-2W7EPKCY.js → chunk-FQRX7MEM.js} +6 -6
- package/dist/{chunk-G3X2CJ7O.cjs → chunk-IY6PZ3L6.cjs} +5 -5
- package/dist/{chunk-YAKOXCW5.js → chunk-KLG6T6TF.js} +6 -6
- package/dist/{chunk-JLEIVV37.cjs → chunk-MVG6E6RR.cjs} +7 -7
- package/dist/{chunk-ZQX2TYQB.js → chunk-V3AYCU2W.js} +4 -4
- package/dist/chunk-VUSB2XY6.cjs +87 -0
- package/dist/{chunk-J3LLPNGV.js → chunk-XUL6LPTN.js} +5 -1
- package/dist/{chunk-T2CZQ3DH.js → chunk-Y3LBTRY4.js} +1 -1
- package/dist/{chunk-SYXWQKOO.cjs → chunk-ZLCUSADU.cjs} +5 -5
- package/dist/css/getCss.d.ts +6 -0
- package/dist/css/index.cjs +7 -6
- package/dist/css/index.js +8 -7
- package/dist/css/setCss.cjs +3 -2
- package/dist/css/setCss.d.ts +6 -0
- package/dist/css/setCss.js +2 -1
- package/dist/dom/getLocus.d.ts +2 -1
- package/dist/dom/getShiftEvent.cjs +7 -0
- package/dist/dom/getShiftEvent.d.ts +7 -0
- package/dist/dom/getShiftEvent.js +7 -0
- package/dist/dom/index.cjs +6 -2
- package/dist/dom/index.d.ts +1 -0
- package/dist/dom/index.js +6 -2
- package/dist/index-08db9cfb.d.ts +13 -0
- package/dist/{index-1072eba0.d.ts → index-a4e16593.d.ts} +3 -0
- package/dist/index.cjs +29 -28
- package/dist/index.d.ts +24 -23
- package/dist/index.js +32 -31
- package/dist/iss/index.d.ts +1 -1
- package/dist/judge/index.cjs +6 -6
- package/dist/judge/index.js +5 -5
- package/dist/judge/matchs.cjs +3 -3
- package/dist/judge/matchs.js +2 -2
- package/dist/name/getComponentNames.cjs +3 -3
- package/dist/name/getComponentNames.js +2 -2
- package/dist/name/getNames.cjs +3 -3
- package/dist/name/getNames.js +2 -2
- package/dist/name/index.cjs +7 -7
- package/dist/name/index.js +7 -7
- package/dist/urls/index.cjs +4 -4
- package/dist/urls/index.d.ts +1 -1
- package/dist/urls/index.js +4 -4
- package/package.json +108 -98
- package/dist/index-ff99ceb9.d.ts +0 -13
- package/dist/{chunk-LFCIAOVE.cjs → chunk-B4KPD7FQ.cjs} +3 -3
- package/dist/{chunk-UEY4U2E2.js → chunk-DGFMZBQN.js} +3 -3
- package/dist/{chunk-BWNLZJJG.js → chunk-EJWFLQF3.js} +3 -3
- package/dist/{chunk-T2QKEABG.js → chunk-FRGDQOX4.js} +3 -3
- package/dist/{chunk-PAJDTMC5.cjs → chunk-KRBTSMT2.cjs} +3 -3
- package/dist/{chunk-T22I7TJQ.cjs → chunk-NGQKVTCR.cjs} +3 -3
- package/dist/{chunk-5UV36ZIW.cjs → chunk-O6P3QI3B.cjs} +3 -3
- package/dist/{chunk-LPDYEUMB.cjs → chunk-RAPGCAN7.cjs} +3 -3
- package/dist/{chunk-MXLYIZIX.js → chunk-VRRDYCUH.js} +3 -3
- package/dist/{chunk-MYS6DR74.js → chunk-Y6WJLQX4.js} +3 -3
- package/dist/{index-09cd203a.d.ts → index-38b73962.d.ts} +1 -1
- package/dist/{index-3a64b513.d.ts → index-55a45fb2.d.ts} +2 -2
- package/dist/{index-f0634e14.d.ts → index-88882192.d.ts} +2 -2
- package/dist/{index-d5c8fe3d.d.ts → index-a5feaf9c.d.ts} +1 -1
- package/dist/{index-40f5ec9a.d.ts → index-f842d03d.d.ts} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { asyncMergeArray } from './asyncMergeArray.js';
|
|
2
2
|
export { duplicateRemoval } from './duplicateRemoval.js';
|
|
3
|
-
export { replaceAfter } from './replaceAfter.js';
|
|
4
3
|
export { toggleArray } from './toggleArray.js';
|
|
4
|
+
export { replaceAfter } from './replaceAfter.js';
|
|
5
5
|
export { isArray } from './isArray.js';
|
package/dist/basic/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-DBKEZO7Q.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
var _chunkV3FWFWP2cjs = require('../chunk-V3FWFWP2.cjs');
|
|
@@ -6,7 +6,8 @@ require('../chunk-J7S3KBHL.cjs');
|
|
|
6
6
|
require('../chunk-L7FSHU27.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkB4KPD7FQcjs = require('../chunk-B4KPD7FQ.cjs');
|
|
10
|
+
require('../chunk-D3SX7OUV.cjs');
|
|
10
11
|
require('../chunk-NRJPCN4J.cjs');
|
|
11
12
|
require('../chunk-3VYRYSWK.cjs');
|
|
12
13
|
|
|
@@ -17,18 +18,17 @@ require('../chunk-GD3OA7GU.cjs');
|
|
|
17
18
|
require('../chunk-LG7MY5KL.cjs');
|
|
18
19
|
require('../chunk-AXMOZZCM.cjs');
|
|
19
20
|
require('../chunk-UFYLVZNU.cjs');
|
|
20
|
-
require('../chunk-D3SX7OUV.cjs');
|
|
21
21
|
require('../chunk-3HXQ7TGV.cjs');
|
|
22
22
|
require('../chunk-JR6ZN6QD.cjs');
|
|
23
23
|
require('../chunk-PW7RP73J.cjs');
|
|
24
|
+
require('../chunk-UEVMS6QD.cjs');
|
|
25
|
+
require('../chunk-OQL4GIEJ.cjs');
|
|
24
26
|
require('../chunk-A5LHXE5X.cjs');
|
|
25
27
|
require('../chunk-MIC3W2VY.cjs');
|
|
26
28
|
require('../chunk-ISHLY7WM.cjs');
|
|
27
|
-
require('../chunk-UEVMS6QD.cjs');
|
|
28
|
-
require('../chunk-OQL4GIEJ.cjs');
|
|
29
29
|
require('../chunk-5AZGAKWR.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
exports.array = _chunkZDAU5XXVcjs.array_exports; exports.object =
|
|
34
|
+
exports.array = _chunkZDAU5XXVcjs.array_exports; exports.object = _chunkB4KPD7FQcjs.object_exports; exports.string = _chunkV3FWFWP2cjs.string_exports;
|
package/dist/basic/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export { i as array } from '../index-
|
|
2
|
-
export { i as
|
|
3
|
-
export { i as
|
|
1
|
+
export { i as array } from '../index-f842d03d.js';
|
|
2
|
+
export { i as object } from '../index-88882192.js';
|
|
3
|
+
export { i as string } from '../index-55a45fb2.js';
|
|
4
4
|
import './array/asyncMergeArray.js';
|
|
5
5
|
import './array/duplicateRemoval.js';
|
|
6
|
-
import './array/replaceAfter.js';
|
|
7
6
|
import './array/toggleArray.js';
|
|
7
|
+
import './array/replaceAfter.js';
|
|
8
8
|
import './array/isArray.js';
|
|
9
|
+
import './object/attrValueSort.js';
|
|
10
|
+
import './object/filterObject.js';
|
|
11
|
+
import './object/isObjectArray.js';
|
|
12
|
+
import './object/isObject.js';
|
|
13
|
+
import './object/mergeObject.js';
|
|
14
|
+
import './object/unmergeObject.js';
|
|
9
15
|
import './string/appearNum.js';
|
|
10
16
|
import './string/appearNumSeat.js';
|
|
11
|
-
import './string/firstUpper.js';
|
|
12
17
|
import './string/firstLower.js';
|
|
13
18
|
import './string/getStartSame.js';
|
|
14
|
-
import './string/
|
|
19
|
+
import './string/firstUpper.js';
|
|
15
20
|
import './string/splitUpper.js';
|
|
16
|
-
import './
|
|
17
|
-
import './object/filterObject.js';
|
|
18
|
-
import './object/isObject.js';
|
|
19
|
-
import './object/isObjectArray.js';
|
|
20
|
-
import './object/unmergeObject.js';
|
|
21
|
-
import './object/mergeObject.js';
|
|
21
|
+
import './string/getStartSames.js';
|
package/dist/basic/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-Y3LBTRY4.js";
|
|
2
2
|
import {
|
|
3
3
|
string_exports
|
|
4
4
|
} from "../chunk-P2CYIUCC.js";
|
|
@@ -6,7 +6,8 @@ import "../chunk-7DTHADVK.js";
|
|
|
6
6
|
import "../chunk-VKE5JARB.js";
|
|
7
7
|
import {
|
|
8
8
|
object_exports
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-DGFMZBQN.js";
|
|
10
|
+
import "../chunk-S42NGJ5W.js";
|
|
10
11
|
import "../chunk-RD4EP3M5.js";
|
|
11
12
|
import "../chunk-A6J46LQK.js";
|
|
12
13
|
import {
|
|
@@ -17,15 +18,14 @@ import "../chunk-ZVBCHJA5.js";
|
|
|
17
18
|
import "../chunk-GOH6G74S.js";
|
|
18
19
|
import "../chunk-GOJN3OQ4.js";
|
|
19
20
|
import "../chunk-T4BAVDTH.js";
|
|
20
|
-
import "../chunk-S42NGJ5W.js";
|
|
21
21
|
import "../chunk-SNABGVNO.js";
|
|
22
22
|
import "../chunk-DMZP4RPN.js";
|
|
23
23
|
import "../chunk-A276ZDLP.js";
|
|
24
|
+
import "../chunk-4OBNLDTJ.js";
|
|
25
|
+
import "../chunk-EWJJKQIO.js";
|
|
24
26
|
import "../chunk-GYE23WAN.js";
|
|
25
27
|
import "../chunk-MXY4W3K5.js";
|
|
26
28
|
import "../chunk-5PX3AFSC.js";
|
|
27
|
-
import "../chunk-4OBNLDTJ.js";
|
|
28
|
-
import "../chunk-EWJJKQIO.js";
|
|
29
29
|
import "../chunk-UICA3PK6.js";
|
|
30
30
|
export {
|
|
31
31
|
array_exports as array,
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-B4KPD7FQ.cjs');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkD3SX7OUVcjs = require('../../chunk-D3SX7OUV.cjs');
|
|
2
5
|
|
|
3
6
|
|
|
4
7
|
var _chunkNRJPCN4Jcjs = require('../../chunk-NRJPCN4J.cjs');
|
|
@@ -10,9 +13,6 @@ var _chunk3VYRYSWKcjs = require('../../chunk-3VYRYSWK.cjs');
|
|
|
10
13
|
var _chunkUFYLVZNUcjs = require('../../chunk-UFYLVZNU.cjs');
|
|
11
14
|
|
|
12
15
|
|
|
13
|
-
var _chunkD3SX7OUVcjs = require('../../chunk-D3SX7OUV.cjs');
|
|
14
|
-
|
|
15
|
-
|
|
16
16
|
var _chunkA5LHXE5Xcjs = require('../../chunk-A5LHXE5X.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { attrValueSort } from './attrValueSort.js';
|
|
2
2
|
export { filterObject } from './filterObject.js';
|
|
3
|
-
export { isObject } from './isObject.js';
|
|
4
3
|
export { isObjectArray } from './isObjectArray.js';
|
|
5
|
-
export {
|
|
4
|
+
export { isObject } from './isObject.js';
|
|
6
5
|
export { mergeObject } from './mergeObject.js';
|
|
6
|
+
export { unmergeObject } from './unmergeObject.js';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import "../../chunk-
|
|
1
|
+
import "../../chunk-DGFMZBQN.js";
|
|
2
|
+
import {
|
|
3
|
+
filterObject
|
|
4
|
+
} from "../../chunk-S42NGJ5W.js";
|
|
2
5
|
import {
|
|
3
6
|
mergeObject
|
|
4
7
|
} from "../../chunk-RD4EP3M5.js";
|
|
@@ -8,9 +11,6 @@ import {
|
|
|
8
11
|
import {
|
|
9
12
|
attrValueSort
|
|
10
13
|
} from "../../chunk-T4BAVDTH.js";
|
|
11
|
-
import {
|
|
12
|
-
filterObject
|
|
13
|
-
} from "../../chunk-S42NGJ5W.js";
|
|
14
14
|
import {
|
|
15
15
|
isObjectArray
|
|
16
16
|
} from "../../chunk-GYE23WAN.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { appearNum } from './appearNum.js';
|
|
2
2
|
export { appearNumSeat } from './appearNumSeat.js';
|
|
3
|
-
export { firstUpper } from './firstUpper.js';
|
|
4
3
|
export { firstLower } from './firstLower.js';
|
|
5
4
|
export { getStartSame } from './getStartSame.js';
|
|
6
|
-
export {
|
|
5
|
+
export { firstUpper } from './firstUpper.js';
|
|
7
6
|
export { splitUpper } from './splitUpper.js';
|
|
7
|
+
export { getStartSames } from './getStartSames.js';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true})
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkLTVXRDTDcjs = require('./chunk-LTVXRDTD.cjs');
|
|
4
|
+
|
|
5
|
+
// packages/css/setCss.ts
|
|
2
6
|
function setCss(elem, style, value) {
|
|
3
7
|
if (typeof style == "string") {
|
|
4
8
|
set(elem, style, value || "");
|
|
@@ -9,7 +13,7 @@ function setCss(elem, style, value) {
|
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
function set(elem, style, value) {
|
|
12
|
-
elem.style.setProperty(style, value);
|
|
16
|
+
elem.style.setProperty(_chunkLTVXRDTDcjs.humpToLine.call(void 0, style), value);
|
|
13
17
|
}
|
|
14
18
|
|
|
15
19
|
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// packages/dom/getShiftEvent.ts
|
|
2
|
+
var eventTypes = {
|
|
3
|
+
press: {
|
|
4
|
+
touch: "touchstart",
|
|
5
|
+
mouse: "mousedown"
|
|
6
|
+
},
|
|
7
|
+
shift: {
|
|
8
|
+
touch: "touchmove",
|
|
9
|
+
mouse: "mousemove"
|
|
10
|
+
},
|
|
11
|
+
release: {
|
|
12
|
+
touch: "touchend",
|
|
13
|
+
mouse: "mouseup"
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
function getShiftEvent(dom, press, shift, release, dom1 = document) {
|
|
17
|
+
foundEvent(
|
|
18
|
+
"press",
|
|
19
|
+
(e, t) => {
|
|
20
|
+
const is = press(e);
|
|
21
|
+
if (is) {
|
|
22
|
+
let scoll;
|
|
23
|
+
if (shift) {
|
|
24
|
+
scoll = foundEventCallback("shift", shift, dom1, t);
|
|
25
|
+
}
|
|
26
|
+
if (release) {
|
|
27
|
+
const rcoll = foundEventCallback(
|
|
28
|
+
"release",
|
|
29
|
+
(e1, t1) => {
|
|
30
|
+
release(e1, t1);
|
|
31
|
+
if (scoll) {
|
|
32
|
+
dom1.removeEventListener(
|
|
33
|
+
eventTypes.shift[t1],
|
|
34
|
+
scoll
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
dom1.removeEventListener(
|
|
38
|
+
eventTypes.release[t1],
|
|
39
|
+
rcoll
|
|
40
|
+
);
|
|
41
|
+
},
|
|
42
|
+
dom1,
|
|
43
|
+
t
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
dom
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
function foundEvent(eventType, c, dom = document, type) {
|
|
52
|
+
if (type != "mouse") {
|
|
53
|
+
dom.addEventListener(eventTypes[eventType].touch, (event) => {
|
|
54
|
+
const e = event;
|
|
55
|
+
const changedTouches = e.changedTouches[0];
|
|
56
|
+
c(changedTouches, "touch");
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
if (type != "touch") {
|
|
60
|
+
dom.addEventListener(eventTypes[eventType].mouse, (event) => {
|
|
61
|
+
const e = event;
|
|
62
|
+
c(e, "mouse");
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function foundEventCallback(eventType, c, dom = document, type) {
|
|
67
|
+
if (type == "touch") {
|
|
68
|
+
const eventCallback = (event) => {
|
|
69
|
+
const e = event;
|
|
70
|
+
const changedTouches = e.changedTouches[0];
|
|
71
|
+
c(changedTouches, "touch");
|
|
72
|
+
};
|
|
73
|
+
dom.addEventListener(eventTypes[eventType].touch, eventCallback);
|
|
74
|
+
return eventCallback;
|
|
75
|
+
} else {
|
|
76
|
+
const eventCallback = (event) => {
|
|
77
|
+
const e = event;
|
|
78
|
+
c(e, "mouse");
|
|
79
|
+
};
|
|
80
|
+
dom.addEventListener(eventTypes[eventType].mouse, eventCallback);
|
|
81
|
+
return eventCallback;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
getShiftEvent
|
|
87
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkV3FWFWP2cjs = require('./chunk-V3FWFWP2.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkB4KPD7FQcjs = require('./chunk-B4KPD7FQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkZDAU5XXVcjs = require('./chunk-ZDAU5XXV.cjs');
|
|
@@ -15,7 +15,7 @@ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
|
15
15
|
var basic_exports = {};
|
|
16
16
|
_chunk5AZGAKWRcjs.__export.call(void 0, basic_exports, {
|
|
17
17
|
array: () => _chunkZDAU5XXVcjs.array_exports,
|
|
18
|
-
object: () =>
|
|
18
|
+
object: () => _chunkB4KPD7FQcjs.object_exports,
|
|
19
19
|
string: () => _chunkV3FWFWP2cjs.string_exports
|
|
20
20
|
});
|
|
21
21
|
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLocus
|
|
3
3
|
} from "./chunk-Q63V2U5G.js";
|
|
4
|
+
import {
|
|
5
|
+
getShiftEvent
|
|
6
|
+
} from "./chunk-C75LAFSJ.js";
|
|
4
7
|
import {
|
|
5
8
|
__export
|
|
6
9
|
} from "./chunk-UICA3PK6.js";
|
|
@@ -8,7 +11,8 @@ import {
|
|
|
8
11
|
// packages/dom/index.ts
|
|
9
12
|
var dom_exports = {};
|
|
10
13
|
__export(dom_exports, {
|
|
11
|
-
getLocus: () => getLocus
|
|
14
|
+
getLocus: () => getLocus,
|
|
15
|
+
getShiftEvent: () => getShiftEvent
|
|
12
16
|
});
|
|
13
17
|
|
|
14
18
|
export {
|
|
@@ -3,12 +3,16 @@
|
|
|
3
3
|
var _chunk2OR4FUOAcjs = require('./chunk-2OR4FUOA.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
var _chunkVUSB2XY6cjs = require('./chunk-VUSB2XY6.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
6
9
|
var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
7
10
|
|
|
8
11
|
// packages/dom/index.ts
|
|
9
12
|
var dom_exports = {};
|
|
10
13
|
_chunk5AZGAKWRcjs.__export.call(void 0, dom_exports, {
|
|
11
|
-
getLocus: () => _chunk2OR4FUOAcjs.getLocus
|
|
14
|
+
getLocus: () => _chunk2OR4FUOAcjs.getLocus,
|
|
15
|
+
getShiftEvent: () => _chunkVUSB2XY6cjs.getShiftEvent
|
|
12
16
|
});
|
|
13
17
|
|
|
14
18
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getComponentNames
|
|
3
|
-
} from "./chunk-MXLYIZIX.js";
|
|
4
1
|
import {
|
|
5
2
|
getNames
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EJWFLQF3.js";
|
|
7
4
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
5
|
+
getComponentNames
|
|
6
|
+
} from "./chunk-VRRDYCUH.js";
|
|
10
7
|
import {
|
|
11
8
|
lineToSmallHump
|
|
12
9
|
} from "./chunk-AM67P3W7.js";
|
|
13
10
|
import {
|
|
14
11
|
lineToLargeHump
|
|
15
12
|
} from "./chunk-XCDKXZFR.js";
|
|
13
|
+
import {
|
|
14
|
+
humpToLine
|
|
15
|
+
} from "./chunk-J7CICTHH.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
18
|
} from "./chunk-UICA3PK6.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUGFSIZ5Pcjs = require('./chunk-UGFSIZ5P.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVY5VQ7WEcjs = require('./chunk-VY5VQ7WE.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkUGS2F6DKcjs = require('./chunk-UGS2F6DK.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk4X7AFGTVcjs = require('./chunk-4X7AFGTV.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
@@ -20,7 +20,7 @@ _chunk5AZGAKWRcjs.__export.call(void 0, css_exports, {
|
|
|
20
20
|
fetchUnitValue: () => _chunkUGFSIZ5Pcjs.fetchUnitValue,
|
|
21
21
|
getCss: () => _chunkUGS2F6DKcjs.getCss,
|
|
22
22
|
getPositionRelative: () => _chunkVY5VQ7WEcjs.getPositionRelative,
|
|
23
|
-
setCss: () =>
|
|
23
|
+
setCss: () => _chunk4X7AFGTVcjs.setCss
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getPositionRelative
|
|
3
|
-
} from "./chunk-MQHLAQQA.js";
|
|
4
|
-
import {
|
|
5
|
-
setCss
|
|
6
|
-
} from "./chunk-J3LLPNGV.js";
|
|
7
1
|
import {
|
|
8
2
|
fetchUnitValue
|
|
9
3
|
} from "./chunk-WX3JYE47.js";
|
|
4
|
+
import {
|
|
5
|
+
getPositionRelative
|
|
6
|
+
} from "./chunk-MQHLAQQA.js";
|
|
10
7
|
import {
|
|
11
8
|
getCss
|
|
12
9
|
} from "./chunk-5RZYHE3X.js";
|
|
10
|
+
import {
|
|
11
|
+
setCss
|
|
12
|
+
} from "./chunk-XUL6LPTN.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./chunk-UICA3PK6.js";
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkO6P3QI3Bcjs = require('./chunk-O6P3QI3B.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunkLTVXRDTDcjs = require('./chunk-LTVXRDTD.cjs');
|
|
6
|
+
var _chunkKRBTSMT2cjs = require('./chunk-KRBTSMT2.cjs');
|
|
10
7
|
|
|
11
8
|
|
|
12
9
|
var _chunkXHR36FJKcjs = require('./chunk-XHR36FJK.cjs');
|
|
@@ -15,13 +12,16 @@ var _chunkXHR36FJKcjs = require('./chunk-XHR36FJK.cjs');
|
|
|
15
12
|
var _chunkWI55O3IVcjs = require('./chunk-WI55O3IV.cjs');
|
|
16
13
|
|
|
17
14
|
|
|
15
|
+
var _chunkLTVXRDTDcjs = require('./chunk-LTVXRDTD.cjs');
|
|
16
|
+
|
|
17
|
+
|
|
18
18
|
var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
19
19
|
|
|
20
20
|
// packages/name/index.ts
|
|
21
21
|
var name_exports = {};
|
|
22
22
|
_chunk5AZGAKWRcjs.__export.call(void 0, name_exports, {
|
|
23
|
-
getComponentNames: () =>
|
|
24
|
-
getNames: () =>
|
|
23
|
+
getComponentNames: () => _chunkKRBTSMT2cjs.getComponentNames,
|
|
24
|
+
getNames: () => _chunkO6P3QI3Bcjs.getNames,
|
|
25
25
|
humpToLine: () => _chunkLTVXRDTDcjs.humpToLine,
|
|
26
26
|
lineToLargeHump: () => _chunkWI55O3IVcjs.lineToLargeHump,
|
|
27
27
|
lineToSmallHump: () => _chunkXHR36FJKcjs.lineToSmallHump
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
matchs
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
matchsEnd
|
|
6
|
-
} from "./chunk-YNOFNHEK.js";
|
|
3
|
+
} from "./chunk-FRGDQOX4.js";
|
|
7
4
|
import {
|
|
8
5
|
matchsStart
|
|
9
6
|
} from "./chunk-S6JRKYPY.js";
|
|
10
7
|
import {
|
|
11
8
|
matchsWhole
|
|
12
9
|
} from "./chunk-IRGCP7KH.js";
|
|
10
|
+
import {
|
|
11
|
+
matchsEnd
|
|
12
|
+
} from "./chunk-YNOFNHEK.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./chunk-UICA3PK6.js";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/dom/getShiftEvent.ts
|
|
2
|
+
var eventTypes = {
|
|
3
|
+
press: {
|
|
4
|
+
touch: "touchstart",
|
|
5
|
+
mouse: "mousedown"
|
|
6
|
+
},
|
|
7
|
+
shift: {
|
|
8
|
+
touch: "touchmove",
|
|
9
|
+
mouse: "mousemove"
|
|
10
|
+
},
|
|
11
|
+
release: {
|
|
12
|
+
touch: "touchend",
|
|
13
|
+
mouse: "mouseup"
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
function getShiftEvent(dom, press, shift, release, dom1 = document) {
|
|
17
|
+
foundEvent(
|
|
18
|
+
"press",
|
|
19
|
+
(e, t) => {
|
|
20
|
+
const is = press(e);
|
|
21
|
+
if (is) {
|
|
22
|
+
let scoll;
|
|
23
|
+
if (shift) {
|
|
24
|
+
scoll = foundEventCallback("shift", shift, dom1, t);
|
|
25
|
+
}
|
|
26
|
+
if (release) {
|
|
27
|
+
const rcoll = foundEventCallback(
|
|
28
|
+
"release",
|
|
29
|
+
(e1, t1) => {
|
|
30
|
+
release(e1, t1);
|
|
31
|
+
if (scoll) {
|
|
32
|
+
dom1.removeEventListener(
|
|
33
|
+
eventTypes.shift[t1],
|
|
34
|
+
scoll
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
dom1.removeEventListener(
|
|
38
|
+
eventTypes.release[t1],
|
|
39
|
+
rcoll
|
|
40
|
+
);
|
|
41
|
+
},
|
|
42
|
+
dom1,
|
|
43
|
+
t
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
dom
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
function foundEvent(eventType, c, dom = document, type) {
|
|
52
|
+
if (type != "mouse") {
|
|
53
|
+
dom.addEventListener(eventTypes[eventType].touch, (event) => {
|
|
54
|
+
const e = event;
|
|
55
|
+
const changedTouches = e.changedTouches[0];
|
|
56
|
+
c(changedTouches, "touch");
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
if (type != "touch") {
|
|
60
|
+
dom.addEventListener(eventTypes[eventType].mouse, (event) => {
|
|
61
|
+
const e = event;
|
|
62
|
+
c(e, "mouse");
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function foundEventCallback(eventType, c, dom = document, type) {
|
|
67
|
+
if (type == "touch") {
|
|
68
|
+
const eventCallback = (event) => {
|
|
69
|
+
const e = event;
|
|
70
|
+
const changedTouches = e.changedTouches[0];
|
|
71
|
+
c(changedTouches, "touch");
|
|
72
|
+
};
|
|
73
|
+
dom.addEventListener(eventTypes[eventType].touch, eventCallback);
|
|
74
|
+
return eventCallback;
|
|
75
|
+
} else {
|
|
76
|
+
const eventCallback = (event) => {
|
|
77
|
+
const e = event;
|
|
78
|
+
c(e, "mouse");
|
|
79
|
+
};
|
|
80
|
+
dom.addEventListener(eventTypes[eventType].mouse, eventCallback);
|
|
81
|
+
return eventCallback;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
exports.getShiftEvent = getShiftEvent;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
humpToLine
|
|
3
|
+
} from "./chunk-J7CICTHH.js";
|
|
4
|
+
|
|
1
5
|
// packages/css/setCss.ts
|
|
2
6
|
function setCss(elem, style, value) {
|
|
3
7
|
if (typeof style == "string") {
|
|
@@ -9,7 +13,7 @@ function setCss(elem, style, value) {
|
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
function set(elem, style, value) {
|
|
12
|
-
elem.style.setProperty(style, value);
|
|
16
|
+
elem.style.setProperty(humpToLine(style), value);
|
|
13
17
|
}
|
|
14
18
|
|
|
15
19
|
export {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkYGJOBIEOcjs = require('./chunk-YGJOBIEO.cjs');
|
|
3
|
+
var _chunkNGQKVTCRcjs = require('./chunk-NGQKVTCR.cjs');
|
|
7
4
|
|
|
8
5
|
|
|
9
6
|
var _chunkZZEFL2TEcjs = require('./chunk-ZZEFL2TE.cjs');
|
|
@@ -12,12 +9,15 @@ var _chunkZZEFL2TEcjs = require('./chunk-ZZEFL2TE.cjs');
|
|
|
12
9
|
var _chunk2BY5RQHUcjs = require('./chunk-2BY5RQHU.cjs');
|
|
13
10
|
|
|
14
11
|
|
|
12
|
+
var _chunkYGJOBIEOcjs = require('./chunk-YGJOBIEO.cjs');
|
|
13
|
+
|
|
14
|
+
|
|
15
15
|
var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
16
16
|
|
|
17
17
|
// packages/judge/index.ts
|
|
18
18
|
var judge_exports = {};
|
|
19
19
|
_chunk5AZGAKWRcjs.__export.call(void 0, judge_exports, {
|
|
20
|
-
matchs: () =>
|
|
20
|
+
matchs: () => _chunkNGQKVTCRcjs.matchs,
|
|
21
21
|
matchsEnd: () => _chunkYGJOBIEOcjs.matchsEnd,
|
|
22
22
|
matchsStart: () => _chunkZZEFL2TEcjs.matchsStart,
|
|
23
23
|
matchsWhole: () => _chunk2BY5RQHUcjs.matchsWhole
|
package/dist/css/getCss.d.ts
CHANGED
package/dist/css/index.cjs
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-IY6PZ3L6.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUGFSIZ5Pcjs = require('../chunk-UGFSIZ5P.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkVY5VQ7WEcjs = require('../chunk-VY5VQ7WE.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkUGS2F6DKcjs = require('../chunk-UGS2F6DK.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk4X7AFGTVcjs = require('../chunk-4X7AFGTV.cjs');
|
|
14
|
+
require('../chunk-LTVXRDTD.cjs');
|
|
14
15
|
require('../chunk-5AZGAKWR.cjs');
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
20
|
-
exports.fetchUnitValue = _chunkUGFSIZ5Pcjs.fetchUnitValue; exports.getCss = _chunkUGS2F6DKcjs.getCss; exports.getPositionRelative = _chunkVY5VQ7WEcjs.getPositionRelative; exports.setCss =
|
|
21
|
+
exports.fetchUnitValue = _chunkUGFSIZ5Pcjs.fetchUnitValue; exports.getCss = _chunkUGS2F6DKcjs.getCss; exports.getPositionRelative = _chunkVY5VQ7WEcjs.getPositionRelative; exports.setCss = _chunk4X7AFGTVcjs.setCss;
|