@fangzhongya/utils 0.0.8-50 → 0.0.8-52

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.
Files changed (50) hide show
  1. package/dist/basic/array/index.cjs +4 -4
  2. package/dist/basic/array/index.js +4 -4
  3. package/dist/basic/index.cjs +14 -14
  4. package/dist/basic/index.js +14 -14
  5. package/dist/basic/object/index.cjs +4 -4
  6. package/dist/basic/object/index.js +4 -4
  7. package/dist/{chunk-SRMXMAFO.cjs → chunk-52AKASSW.cjs} +5 -5
  8. package/dist/{chunk-B4CE4K4W.js → chunk-BS7SGQQF.js} +1 -1
  9. package/dist/{chunk-APSYRNFU.js → chunk-GDIY4LK6.js} +4 -0
  10. package/dist/{chunk-NVNNBCS7.js → chunk-JF7Q2GVI.js} +4 -4
  11. package/dist/{chunk-MMGEI3PX.cjs → chunk-MELI3AL3.cjs} +5 -5
  12. package/dist/{chunk-7KMW3ZX4.cjs → chunk-MZTYUPEZ.cjs} +4 -0
  13. package/dist/chunk-OJFV3426.js +17 -0
  14. package/dist/{chunk-RQRBSTSX.cjs → chunk-OXCXVMDG.cjs} +8 -8
  15. package/dist/chunk-PTLVJ5OL.cjs +17 -0
  16. package/dist/{chunk-E5FTKWGB.js → chunk-QZFHQ7ZP.js} +8 -8
  17. package/dist/css/getPrentCorres.cjs +7 -0
  18. package/dist/css/getPrentCorres.d.ts +7 -0
  19. package/dist/css/getPrentCorres.js +7 -0
  20. package/dist/css/index.cjs +6 -2
  21. package/dist/css/index.d.ts +1 -0
  22. package/dist/css/index.js +5 -1
  23. package/dist/dom/getShiftEvent.cjs +2 -2
  24. package/dist/dom/getShiftEvent.d.ts +2 -2
  25. package/dist/dom/getShiftEvent.js +1 -1
  26. package/dist/dom/index.cjs +3 -3
  27. package/dist/dom/index.js +2 -2
  28. package/dist/{index-b5d07d0c.d.ts → index-a42d3b8b.d.ts} +3 -0
  29. package/dist/index.cjs +31 -30
  30. package/dist/index.d.ts +2 -1
  31. package/dist/index.js +30 -29
  32. package/dist/load/index.cjs +3 -3
  33. package/dist/load/index.js +4 -4
  34. package/dist/name/getComponentNames.cjs +1 -1
  35. package/dist/name/getComponentNames.js +1 -1
  36. package/dist/name/getNames.cjs +1 -1
  37. package/dist/name/getNames.js +1 -1
  38. package/dist/name/index.cjs +2 -2
  39. package/dist/name/index.js +2 -2
  40. package/dist/urls/index.cjs +10 -10
  41. package/dist/urls/index.js +13 -13
  42. package/package.json +6 -1
  43. package/dist/{chunk-TYRSVKNE.js → chunk-6DB3NTQU.js} +3 -3
  44. package/dist/{chunk-AXAVKIR3.cjs → chunk-AW3EGUGB.cjs} +2 -2
  45. package/dist/{chunk-4O7YOSS7.cjs → chunk-GCGKPIAQ.cjs} +3 -3
  46. package/dist/{chunk-E75NHLNL.js → chunk-GLCOC7XA.js} +3 -3
  47. package/dist/{chunk-3FHREK6X.js → chunk-KPTUKLT3.js} +12 -12
  48. package/dist/{chunk-EDTINHGX.cjs → chunk-OA7HNGAO.cjs} +9 -9
  49. package/dist/{chunk-XCTPS2CO.js → chunk-PN4OFZGM.js} +3 -3
  50. package/dist/{chunk-BYKL65GO.cjs → chunk-T2HIMPZ2.cjs} +3 -3
@@ -1,4 +1,7 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-4O7YOSS7.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-GCGKPIAQ.cjs');
2
+
3
+
4
+ var _chunkGD3OA7GUcjs = require('../../chunk-GD3OA7GU.cjs');
2
5
 
3
6
 
4
7
  var _chunkLG7MY5KLcjs = require('../../chunk-LG7MY5KL.cjs');
@@ -10,9 +13,6 @@ var _chunkAXMOZZCMcjs = require('../../chunk-AXMOZZCM.cjs');
10
13
  var _chunkTCMJPIRMcjs = require('../../chunk-TCMJPIRM.cjs');
11
14
 
12
15
 
13
- var _chunkGD3OA7GUcjs = require('../../chunk-GD3OA7GU.cjs');
14
-
15
-
16
16
  var _chunkISHLY7WMcjs = require('../../chunk-ISHLY7WM.cjs');
17
17
  require('../../chunk-5AZGAKWR.cjs');
18
18
 
@@ -1,4 +1,7 @@
1
- import "../../chunk-E75NHLNL.js";
1
+ import "../../chunk-GLCOC7XA.js";
2
+ import {
3
+ duplicateRemoval
4
+ } from "../../chunk-ZVBCHJA5.js";
2
5
  import {
3
6
  replaceAfter
4
7
  } from "../../chunk-GOH6G74S.js";
@@ -8,9 +11,6 @@ import {
8
11
  import {
9
12
  asyncMergeArray
10
13
  } from "../../chunk-Q6FMBSK4.js";
11
- import {
12
- duplicateRemoval
13
- } from "../../chunk-ZVBCHJA5.js";
14
14
  import {
15
15
  isArray
16
16
  } from "../../chunk-5PX3AFSC.js";
@@ -1,29 +1,29 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-MMGEI3PX.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-MELI3AL3.cjs');
2
2
 
3
3
 
4
- var _chunkBYKL65GOcjs = require('../chunk-BYKL65GO.cjs');
4
+ var _chunkV3FWFWP2cjs = require('../chunk-V3FWFWP2.cjs');
5
+ require('../chunk-J7S3KBHL.cjs');
6
+ require('../chunk-L7FSHU27.cjs');
7
+
8
+
9
+ var _chunkT2HIMPZ2cjs = require('../chunk-T2HIMPZ2.cjs');
10
+ require('../chunk-7AIT4XSD.cjs');
5
11
  require('../chunk-GOUC2DFA.cjs');
6
12
  require('../chunk-NRJPCN4J.cjs');
7
13
  require('../chunk-IIKQHLKT.cjs');
8
14
  require('../chunk-3VYRYSWK.cjs');
9
15
 
10
16
 
11
- var _chunkV3FWFWP2cjs = require('../chunk-V3FWFWP2.cjs');
12
- require('../chunk-J7S3KBHL.cjs');
13
- require('../chunk-L7FSHU27.cjs');
17
+ var _chunkGCGKPIAQcjs = require('../chunk-GCGKPIAQ.cjs');
18
+ require('../chunk-GD3OA7GU.cjs');
19
+ require('../chunk-LG7MY5KL.cjs');
20
+ require('../chunk-AXMOZZCM.cjs');
14
21
  require('../chunk-UFYLVZNU.cjs');
15
22
  require('../chunk-J2GSJKCY.cjs');
16
23
  require('../chunk-D3SX7OUV.cjs');
17
- require('../chunk-7AIT4XSD.cjs');
18
-
19
-
20
- var _chunk4O7YOSS7cjs = require('../chunk-4O7YOSS7.cjs');
21
- require('../chunk-LG7MY5KL.cjs');
22
- require('../chunk-AXMOZZCM.cjs');
23
- require('../chunk-TCMJPIRM.cjs');
24
- require('../chunk-GD3OA7GU.cjs');
25
24
  require('../chunk-3HXQ7TGV.cjs');
26
25
  require('../chunk-JR6ZN6QD.cjs');
26
+ require('../chunk-TCMJPIRM.cjs');
27
27
  require('../chunk-PW7RP73J.cjs');
28
28
  require('../chunk-UEVMS6QD.cjs');
29
29
  require('../chunk-OQL4GIEJ.cjs');
@@ -35,4 +35,4 @@ require('../chunk-5AZGAKWR.cjs');
35
35
 
36
36
 
37
37
 
38
- exports.array = _chunk4O7YOSS7cjs.array_exports; exports.object = _chunkBYKL65GOcjs.object_exports; exports.string = _chunkV3FWFWP2cjs.string_exports;
38
+ exports.array = _chunkGCGKPIAQcjs.array_exports; exports.object = _chunkT2HIMPZ2cjs.object_exports; exports.string = _chunkV3FWFWP2cjs.string_exports;
@@ -1,29 +1,29 @@
1
- import "../chunk-NVNNBCS7.js";
2
- import {
3
- object_exports
4
- } from "../chunk-TYRSVKNE.js";
5
- import "../chunk-3IR2ABRO.js";
6
- import "../chunk-RD4EP3M5.js";
7
- import "../chunk-3LWFUVER.js";
8
- import "../chunk-A6J46LQK.js";
1
+ import "../chunk-JF7Q2GVI.js";
9
2
  import {
10
3
  string_exports
11
4
  } from "../chunk-P2CYIUCC.js";
12
5
  import "../chunk-7DTHADVK.js";
13
6
  import "../chunk-VKE5JARB.js";
14
- import "../chunk-T4BAVDTH.js";
15
- import "../chunk-WPW3M5AP.js";
16
- import "../chunk-S42NGJ5W.js";
7
+ import {
8
+ object_exports
9
+ } from "../chunk-6DB3NTQU.js";
17
10
  import "../chunk-ZEAT23CI.js";
11
+ import "../chunk-3IR2ABRO.js";
12
+ import "../chunk-RD4EP3M5.js";
13
+ import "../chunk-3LWFUVER.js";
14
+ import "../chunk-A6J46LQK.js";
18
15
  import {
19
16
  array_exports
20
- } from "../chunk-E75NHLNL.js";
17
+ } from "../chunk-GLCOC7XA.js";
18
+ import "../chunk-ZVBCHJA5.js";
21
19
  import "../chunk-GOH6G74S.js";
22
20
  import "../chunk-GOJN3OQ4.js";
23
- import "../chunk-Q6FMBSK4.js";
24
- import "../chunk-ZVBCHJA5.js";
21
+ import "../chunk-T4BAVDTH.js";
22
+ import "../chunk-WPW3M5AP.js";
23
+ import "../chunk-S42NGJ5W.js";
25
24
  import "../chunk-SNABGVNO.js";
26
25
  import "../chunk-DMZP4RPN.js";
26
+ import "../chunk-Q6FMBSK4.js";
27
27
  import "../chunk-A276ZDLP.js";
28
28
  import "../chunk-4OBNLDTJ.js";
29
29
  import "../chunk-EWJJKQIO.js";
@@ -1,4 +1,7 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-BYKL65GO.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-T2HIMPZ2.cjs');
2
+
3
+
4
+ var _chunk7AIT4XSDcjs = require('../../chunk-7AIT4XSD.cjs');
2
5
 
3
6
 
4
7
  var _chunkGOUC2DFAcjs = require('../../chunk-GOUC2DFA.cjs');
@@ -22,9 +25,6 @@ var _chunkJ2GSJKCYcjs = require('../../chunk-J2GSJKCY.cjs');
22
25
  var _chunkD3SX7OUVcjs = require('../../chunk-D3SX7OUV.cjs');
23
26
 
24
27
 
25
- var _chunk7AIT4XSDcjs = require('../../chunk-7AIT4XSD.cjs');
26
-
27
-
28
28
  var _chunkA5LHXE5Xcjs = require('../../chunk-A5LHXE5X.cjs');
29
29
 
30
30
 
@@ -1,4 +1,7 @@
1
- import "../../chunk-TYRSVKNE.js";
1
+ import "../../chunk-6DB3NTQU.js";
2
+ import {
3
+ getSort
4
+ } from "../../chunk-ZEAT23CI.js";
2
5
  import {
3
6
  hasOwn
4
7
  } from "../../chunk-3IR2ABRO.js";
@@ -20,9 +23,6 @@ import {
20
23
  import {
21
24
  filterObject
22
25
  } from "../../chunk-S42NGJ5W.js";
23
- import {
24
- getSort
25
- } from "../../chunk-ZEAT23CI.js";
26
26
  import {
27
27
  isObjectArray
28
28
  } from "../../chunk-GYE23WAN.js";
@@ -6,7 +6,7 @@ var _chunk2OR4FUOAcjs = require('./chunk-2OR4FUOA.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkRQRBSTSXcjs = require('./chunk-RQRBSTSX.cjs');
9
+ var _chunkOXCXVMDGcjs = require('./chunk-OXCXVMDG.cjs');
10
10
 
11
11
 
12
12
  var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
@@ -14,11 +14,11 @@ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
14
14
  // packages/dom/index.ts
15
15
  var dom_exports = {};
16
16
  _chunk5AZGAKWRcjs.__export.call(void 0, dom_exports, {
17
- foundEvent: () => _chunkRQRBSTSXcjs.foundEvent,
18
- foundEventCallback: () => _chunkRQRBSTSXcjs.foundEventCallback,
17
+ foundEvent: () => _chunkOXCXVMDGcjs.foundEvent,
18
+ foundEventCallback: () => _chunkOXCXVMDGcjs.foundEventCallback,
19
19
  getLocus: () => _chunk2OR4FUOAcjs.getLocus,
20
- pressEvent: () => _chunkRQRBSTSXcjs.pressEvent,
21
- shiftEvent: () => _chunkRQRBSTSXcjs.shiftEvent
20
+ pressEvent: () => _chunkOXCXVMDGcjs.pressEvent,
21
+ shiftEvent: () => _chunkOXCXVMDGcjs.shiftEvent
22
22
  });
23
23
 
24
24
 
@@ -6,7 +6,7 @@ import {
6
6
  foundEventCallback,
7
7
  pressEvent,
8
8
  shiftEvent
9
- } from "./chunk-E5FTKWGB.js";
9
+ } from "./chunk-QZFHQ7ZP.js";
10
10
  import {
11
11
  __export
12
12
  } from "./chunk-UICA3PK6.js";
@@ -10,6 +10,9 @@ import {
10
10
  import {
11
11
  getCss
12
12
  } from "./chunk-5RZYHE3X.js";
13
+ import {
14
+ getPrentCorres
15
+ } from "./chunk-OJFV3426.js";
13
16
  import {
14
17
  getSVG
15
18
  } from "./chunk-WIYZQNGO.js";
@@ -27,6 +30,7 @@ __export(css_exports, {
27
30
  getAttrObj: () => getAttrObj,
28
31
  getCss: () => getCss,
29
32
  getPositionRelative: () => getPositionRelative,
33
+ getPrentCorres: () => getPrentCorres,
30
34
  getSVG: () => getSVG,
31
35
  setCss: () => setCss
32
36
  });
@@ -1,12 +1,12 @@
1
- import {
2
- object_exports
3
- } from "./chunk-TYRSVKNE.js";
4
1
  import {
5
2
  string_exports
6
3
  } from "./chunk-P2CYIUCC.js";
4
+ import {
5
+ object_exports
6
+ } from "./chunk-6DB3NTQU.js";
7
7
  import {
8
8
  array_exports
9
- } from "./chunk-E75NHLNL.js";
9
+ } from "./chunk-GLCOC7XA.js";
10
10
  import {
11
11
  __export
12
12
  } from "./chunk-UICA3PK6.js";
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBYKL65GOcjs = require('./chunk-BYKL65GO.cjs');
3
+ var _chunkV3FWFWP2cjs = require('./chunk-V3FWFWP2.cjs');
4
4
 
5
5
 
6
- var _chunkV3FWFWP2cjs = require('./chunk-V3FWFWP2.cjs');
6
+ var _chunkT2HIMPZ2cjs = require('./chunk-T2HIMPZ2.cjs');
7
7
 
8
8
 
9
- var _chunk4O7YOSS7cjs = require('./chunk-4O7YOSS7.cjs');
9
+ var _chunkGCGKPIAQcjs = require('./chunk-GCGKPIAQ.cjs');
10
10
 
11
11
 
12
12
  var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
@@ -14,8 +14,8 @@ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
14
14
  // packages/basic/index.ts
15
15
  var basic_exports = {};
16
16
  _chunk5AZGAKWRcjs.__export.call(void 0, basic_exports, {
17
- array: () => _chunk4O7YOSS7cjs.array_exports,
18
- object: () => _chunkBYKL65GOcjs.object_exports,
17
+ array: () => _chunkGCGKPIAQcjs.array_exports,
18
+ object: () => _chunkT2HIMPZ2cjs.object_exports,
19
19
  string: () => _chunkV3FWFWP2cjs.string_exports
20
20
  });
21
21
 
@@ -12,6 +12,9 @@ var _chunkVY5VQ7WEcjs = require('./chunk-VY5VQ7WE.cjs');
12
12
  var _chunkUGS2F6DKcjs = require('./chunk-UGS2F6DK.cjs');
13
13
 
14
14
 
15
+ var _chunkPTLVJ5OLcjs = require('./chunk-PTLVJ5OL.cjs');
16
+
17
+
15
18
  var _chunkGFAUQTB2cjs = require('./chunk-GFAUQTB2.cjs');
16
19
 
17
20
 
@@ -27,6 +30,7 @@ _chunk5AZGAKWRcjs.__export.call(void 0, css_exports, {
27
30
  getAttrObj: () => _chunkTE3XNGF4cjs.getAttrObj,
28
31
  getCss: () => _chunkUGS2F6DKcjs.getCss,
29
32
  getPositionRelative: () => _chunkVY5VQ7WEcjs.getPositionRelative,
33
+ getPrentCorres: () => _chunkPTLVJ5OLcjs.getPrentCorres,
30
34
  getSVG: () => _chunkGFAUQTB2cjs.getSVG,
31
35
  setCss: () => _chunk4X7AFGTVcjs.setCss
32
36
  });
@@ -0,0 +1,17 @@
1
+ // packages/css/getPrentCorres.ts
2
+ function getPrentCorres(el, is) {
3
+ if (is(el)) {
4
+ return el;
5
+ } else {
6
+ const fel = el.parentElement;
7
+ if (fel) {
8
+ return getPrentCorres(fel, is);
9
+ } else {
10
+ return;
11
+ }
12
+ }
13
+ }
14
+
15
+ export {
16
+ getPrentCorres
17
+ };
@@ -16,8 +16,8 @@ var eventTypes = {
16
16
  function pressEvent(dom, press, shift, release, dom1 = document) {
17
17
  foundEvent(
18
18
  "press",
19
- (e, t) => {
20
- const is = press(e);
19
+ (e, t, te) => {
20
+ const is = press(e, t, te);
21
21
  if (is) {
22
22
  let scoll;
23
23
  if (shift) {
@@ -26,8 +26,8 @@ function pressEvent(dom, press, shift, release, dom1 = document) {
26
26
  if (release) {
27
27
  const rcoll = foundEventCallback(
28
28
  "release",
29
- (e1, t1) => {
30
- release(e1, t1);
29
+ (e1, t1, te1) => {
30
+ release(e1, t1, te1);
31
31
  if (scoll) {
32
32
  dom1.removeEventListener(
33
33
  eventTypes.shift[t1],
@@ -56,8 +56,8 @@ function shiftEvent(t, dom1, shift, release, is = true) {
56
56
  if (release) {
57
57
  const rcoll = foundEventCallback(
58
58
  "release",
59
- (e1, t1) => {
60
- release(e1, t1);
59
+ (e1, t1, te) => {
60
+ release(e1, t1, te);
61
61
  if (is) {
62
62
  if (scoll) {
63
63
  dom1.removeEventListener(eventTypes.shift[t1], scoll);
@@ -75,7 +75,7 @@ function foundEvent(eventType, c, dom = document, type) {
75
75
  dom.addEventListener(eventTypes[eventType].touch, (event) => {
76
76
  const e = event;
77
77
  const changedTouches = e.changedTouches[0];
78
- c(changedTouches, "touch");
78
+ c(changedTouches, "touch", e);
79
79
  });
80
80
  }
81
81
  if (type != "touch") {
@@ -90,7 +90,7 @@ function foundEventCallback(eventType, c, dom = document, type) {
90
90
  const eventCallback = (event) => {
91
91
  const e = event;
92
92
  const changedTouches = e.changedTouches[0];
93
- c(changedTouches, "touch");
93
+ c(changedTouches, "touch", e);
94
94
  };
95
95
  dom.addEventListener(eventTypes[eventType].touch, eventCallback);
96
96
  return eventCallback;
@@ -0,0 +1,17 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/css/getPrentCorres.ts
2
+ function getPrentCorres(el, is) {
3
+ if (is(el)) {
4
+ return el;
5
+ } else {
6
+ const fel = el.parentElement;
7
+ if (fel) {
8
+ return getPrentCorres(fel, is);
9
+ } else {
10
+ return;
11
+ }
12
+ }
13
+ }
14
+
15
+
16
+
17
+ exports.getPrentCorres = getPrentCorres;
@@ -16,8 +16,8 @@ var eventTypes = {
16
16
  function pressEvent(dom, press, shift, release, dom1 = document) {
17
17
  foundEvent(
18
18
  "press",
19
- (e, t) => {
20
- const is = press(e);
19
+ (e, t, te) => {
20
+ const is = press(e, t, te);
21
21
  if (is) {
22
22
  let scoll;
23
23
  if (shift) {
@@ -26,8 +26,8 @@ function pressEvent(dom, press, shift, release, dom1 = document) {
26
26
  if (release) {
27
27
  const rcoll = foundEventCallback(
28
28
  "release",
29
- (e1, t1) => {
30
- release(e1, t1);
29
+ (e1, t1, te1) => {
30
+ release(e1, t1, te1);
31
31
  if (scoll) {
32
32
  dom1.removeEventListener(
33
33
  eventTypes.shift[t1],
@@ -56,8 +56,8 @@ function shiftEvent(t, dom1, shift, release, is = true) {
56
56
  if (release) {
57
57
  const rcoll = foundEventCallback(
58
58
  "release",
59
- (e1, t1) => {
60
- release(e1, t1);
59
+ (e1, t1, te) => {
60
+ release(e1, t1, te);
61
61
  if (is) {
62
62
  if (scoll) {
63
63
  dom1.removeEventListener(eventTypes.shift[t1], scoll);
@@ -75,7 +75,7 @@ function foundEvent(eventType, c, dom = document, type) {
75
75
  dom.addEventListener(eventTypes[eventType].touch, (event) => {
76
76
  const e = event;
77
77
  const changedTouches = e.changedTouches[0];
78
- c(changedTouches, "touch");
78
+ c(changedTouches, "touch", e);
79
79
  });
80
80
  }
81
81
  if (type != "touch") {
@@ -90,7 +90,7 @@ function foundEventCallback(eventType, c, dom = document, type) {
90
90
  const eventCallback = (event) => {
91
91
  const e = event;
92
92
  const changedTouches = e.changedTouches[0];
93
- c(changedTouches, "touch");
93
+ c(changedTouches, "touch", e);
94
94
  };
95
95
  dom.addEventListener(eventTypes[eventType].touch, eventCallback);
96
96
  return eventCallback;
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkPTLVJ5OLcjs = require('../chunk-PTLVJ5OL.cjs');
4
+ require('../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.getPrentCorres = _chunkPTLVJ5OLcjs.getPrentCorres;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 获取当前元素或者匹配父类元素
3
+ * @param el
4
+ */
5
+ declare function getPrentCorres(el: HTMLElement, is: (el: HTMLElement) => boolean): HTMLElement | undefined;
6
+
7
+ export { getPrentCorres };
@@ -0,0 +1,7 @@
1
+ import {
2
+ getPrentCorres
3
+ } from "../chunk-OJFV3426.js";
4
+ import "../chunk-UICA3PK6.js";
5
+ export {
6
+ getPrentCorres
7
+ };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-7KMW3ZX4.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-MZTYUPEZ.cjs');
2
2
 
3
3
 
4
4
  var _chunk4X7AFGTVcjs = require('../chunk-4X7AFGTV.cjs');
@@ -14,6 +14,9 @@ var _chunkVY5VQ7WEcjs = require('../chunk-VY5VQ7WE.cjs');
14
14
  var _chunkUGS2F6DKcjs = require('../chunk-UGS2F6DK.cjs');
15
15
 
16
16
 
17
+ var _chunkPTLVJ5OLcjs = require('../chunk-PTLVJ5OL.cjs');
18
+
19
+
17
20
  var _chunkGFAUQTB2cjs = require('../chunk-GFAUQTB2.cjs');
18
21
 
19
22
 
@@ -26,4 +29,5 @@ require('../chunk-5AZGAKWR.cjs');
26
29
 
27
30
 
28
31
 
29
- exports.fetchUnitValue = _chunkUGFSIZ5Pcjs.fetchUnitValue; exports.getAttrObj = _chunkTE3XNGF4cjs.getAttrObj; exports.getCss = _chunkUGS2F6DKcjs.getCss; exports.getPositionRelative = _chunkVY5VQ7WEcjs.getPositionRelative; exports.getSVG = _chunkGFAUQTB2cjs.getSVG; exports.setCss = _chunk4X7AFGTVcjs.setCss;
32
+
33
+ exports.fetchUnitValue = _chunkUGFSIZ5Pcjs.fetchUnitValue; exports.getAttrObj = _chunkTE3XNGF4cjs.getAttrObj; exports.getCss = _chunkUGS2F6DKcjs.getCss; exports.getPositionRelative = _chunkVY5VQ7WEcjs.getPositionRelative; exports.getPrentCorres = _chunkPTLVJ5OLcjs.getPrentCorres; exports.getSVG = _chunkGFAUQTB2cjs.getSVG; exports.setCss = _chunk4X7AFGTVcjs.setCss;
@@ -2,5 +2,6 @@ export { fetchUnitValue } from './fetchUnitValue.js';
2
2
  export { getAttrObj } from './getAttrObj.js';
3
3
  export { getCss } from './getCss.js';
4
4
  export { getPositionRelative } from './getPositionRelative.js';
5
+ export { getPrentCorres } from './getPrentCorres.js';
5
6
  export { getSVG } from './getSVG.js';
6
7
  export { setCss } from './setCss.js';
package/dist/css/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "../chunk-APSYRNFU.js";
1
+ import "../chunk-GDIY4LK6.js";
2
2
  import {
3
3
  setCss
4
4
  } from "../chunk-XUL6LPTN.js";
@@ -12,6 +12,9 @@ import {
12
12
  import {
13
13
  getCss
14
14
  } from "../chunk-5RZYHE3X.js";
15
+ import {
16
+ getPrentCorres
17
+ } from "../chunk-OJFV3426.js";
15
18
  import {
16
19
  getSVG
17
20
  } from "../chunk-WIYZQNGO.js";
@@ -24,6 +27,7 @@ export {
24
27
  getAttrObj,
25
28
  getCss,
26
29
  getPositionRelative,
30
+ getPrentCorres,
27
31
  getSVG,
28
32
  setCss
29
33
  };
@@ -3,11 +3,11 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkRQRBSTSXcjs = require('../chunk-RQRBSTSX.cjs');
6
+ var _chunkOXCXVMDGcjs = require('../chunk-OXCXVMDG.cjs');
7
7
  require('../chunk-5AZGAKWR.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
- exports.foundEvent = _chunkRQRBSTSXcjs.foundEvent; exports.foundEventCallback = _chunkRQRBSTSXcjs.foundEventCallback; exports.pressEvent = _chunkRQRBSTSXcjs.pressEvent; exports.shiftEvent = _chunkRQRBSTSXcjs.shiftEvent;
13
+ exports.foundEvent = _chunkOXCXVMDGcjs.foundEvent; exports.foundEventCallback = _chunkOXCXVMDGcjs.foundEventCallback; exports.pressEvent = _chunkOXCXVMDGcjs.pressEvent; exports.shiftEvent = _chunkOXCXVMDGcjs.shiftEvent;
@@ -1,6 +1,6 @@
1
1
  type SeatEvent = MouseEvent | Touch;
2
2
  type Type = 'touch' | 'mouse';
3
- type Callback = (e: SeatEvent, t: Type) => void;
3
+ type Callback = (e: SeatEvent, t: Type, te?: TouchEvent) => void;
4
4
  type Dom = HTMLElement | Document;
5
5
  declare const eventTypes: {
6
6
  press: {
@@ -17,7 +17,7 @@ declare const eventTypes: {
17
17
  };
18
18
  };
19
19
  type EventTypeKey = keyof typeof eventTypes;
20
- declare function pressEvent(dom: HTMLElement, press: (e: SeatEvent) => any, shift?: Callback, release?: Callback, dom1?: Dom): void;
20
+ declare function pressEvent(dom: HTMLElement, press: (e: SeatEvent, t?: Type, te?: TouchEvent) => any, shift?: Callback, release?: Callback, dom1?: Dom): void;
21
21
  declare function shiftEvent(t: Type, dom1: Dom, shift?: Callback, release?: Callback, is?: boolean): void;
22
22
  declare function foundEvent(eventType: EventTypeKey, c: Callback, dom?: Dom, type?: Type): void;
23
23
  declare function foundEventCallback(eventType: EventTypeKey, c: Callback, dom?: Dom, type?: Type): (event: Event) => void;
@@ -3,7 +3,7 @@ import {
3
3
  foundEventCallback,
4
4
  pressEvent,
5
5
  shiftEvent
6
- } from "../chunk-E5FTKWGB.js";
6
+ } from "../chunk-QZFHQ7ZP.js";
7
7
  import "../chunk-UICA3PK6.js";
8
8
  export {
9
9
  foundEvent,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-SRMXMAFO.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-52AKASSW.cjs');
2
2
 
3
3
 
4
4
  var _chunk2OR4FUOAcjs = require('../chunk-2OR4FUOA.cjs');
@@ -7,7 +7,7 @@ var _chunk2OR4FUOAcjs = require('../chunk-2OR4FUOA.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkRQRBSTSXcjs = require('../chunk-RQRBSTSX.cjs');
10
+ var _chunkOXCXVMDGcjs = require('../chunk-OXCXVMDG.cjs');
11
11
  require('../chunk-5AZGAKWR.cjs');
12
12
 
13
13
 
@@ -15,4 +15,4 @@ require('../chunk-5AZGAKWR.cjs');
15
15
 
16
16
 
17
17
 
18
- exports.foundEvent = _chunkRQRBSTSXcjs.foundEvent; exports.foundEventCallback = _chunkRQRBSTSXcjs.foundEventCallback; exports.getLocus = _chunk2OR4FUOAcjs.getLocus; exports.pressEvent = _chunkRQRBSTSXcjs.pressEvent; exports.shiftEvent = _chunkRQRBSTSXcjs.shiftEvent;
18
+ exports.foundEvent = _chunkOXCXVMDGcjs.foundEvent; exports.foundEventCallback = _chunkOXCXVMDGcjs.foundEventCallback; exports.getLocus = _chunk2OR4FUOAcjs.getLocus; exports.pressEvent = _chunkOXCXVMDGcjs.pressEvent; exports.shiftEvent = _chunkOXCXVMDGcjs.shiftEvent;
package/dist/dom/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "../chunk-B4CE4K4W.js";
1
+ import "../chunk-BS7SGQQF.js";
2
2
  import {
3
3
  getLocus
4
4
  } from "../chunk-Q63V2U5G.js";
@@ -7,7 +7,7 @@ import {
7
7
  foundEventCallback,
8
8
  pressEvent,
9
9
  shiftEvent
10
- } from "../chunk-E5FTKWGB.js";
10
+ } from "../chunk-QZFHQ7ZP.js";
11
11
  import "../chunk-UICA3PK6.js";
12
12
  export {
13
13
  foundEvent,
@@ -2,6 +2,7 @@ import { fetchUnitValue } from './css/fetchUnitValue.js';
2
2
  import { getAttrObj } from './css/getAttrObj.js';
3
3
  import { getCss } from './css/getCss.js';
4
4
  import { getPositionRelative } from './css/getPositionRelative.js';
5
+ import { getPrentCorres } from './css/getPrentCorres.js';
5
6
  import { getSVG } from './css/getSVG.js';
6
7
  import { setCss } from './css/setCss.js';
7
8
 
@@ -9,6 +10,7 @@ declare const index_fetchUnitValue: typeof fetchUnitValue;
9
10
  declare const index_getAttrObj: typeof getAttrObj;
10
11
  declare const index_getCss: typeof getCss;
11
12
  declare const index_getPositionRelative: typeof getPositionRelative;
13
+ declare const index_getPrentCorres: typeof getPrentCorres;
12
14
  declare const index_getSVG: typeof getSVG;
13
15
  declare const index_setCss: typeof setCss;
14
16
  declare namespace index {
@@ -17,6 +19,7 @@ declare namespace index {
17
19
  index_getAttrObj as getAttrObj,
18
20
  index_getCss as getCss,
19
21
  index_getPositionRelative as getPositionRelative,
22
+ index_getPrentCorres as getPrentCorres,
20
23
  index_getSVG as getSVG,
21
24
  index_setCss as setCss,
22
25
  };