@fangzhongya/utils 0.0.8-1 → 0.0.8-4

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 (99) hide show
  1. package/dist/basic/array/index.cjs +9 -5
  2. package/dist/basic/array/index.d.ts +1 -0
  3. package/dist/basic/array/index.js +8 -4
  4. package/dist/basic/array/replaceAfter.cjs +7 -0
  5. package/dist/basic/array/replaceAfter.d.ts +10 -0
  6. package/dist/basic/array/replaceAfter.js +7 -0
  7. package/dist/basic/index.cjs +12 -10
  8. package/dist/basic/index.d.ts +8 -6
  9. package/dist/basic/index.js +11 -9
  10. package/dist/basic/object/index.d.ts +1 -1
  11. package/dist/basic/string/index.cjs +9 -5
  12. package/dist/basic/string/index.d.ts +3 -2
  13. package/dist/basic/string/index.js +9 -5
  14. package/dist/basic/string/splitUpper.cjs +7 -0
  15. package/dist/basic/string/splitUpper.d.ts +8 -0
  16. package/dist/basic/string/splitUpper.js +7 -0
  17. package/dist/chunk-2SOGI5PH.js +40 -0
  18. package/dist/{chunk-LHSOIOCS.cjs → chunk-36NQW7GX.cjs} +9 -1
  19. package/dist/{chunk-HZLFOTLG.js → chunk-3NFJ3TZL.js} +7 -3
  20. package/dist/chunk-43VE3KXL.cjs +27 -0
  21. package/dist/{chunk-46Y4IUS6.js → chunk-5CVTPMX4.js} +4 -4
  22. package/dist/chunk-5RZYHE3X.js +16 -0
  23. package/dist/chunk-6WSP6FLZ.cjs +8 -0
  24. package/dist/{chunk-P3YVE7JK.cjs → chunk-77SI5VSS.cjs} +5 -2
  25. package/dist/chunk-7IXRH3MU.js +8 -0
  26. package/dist/{chunk-7LMEBJPQ.js → chunk-7KXJO4NI.js} +9 -1
  27. package/dist/{chunk-4LZUU2JU.cjs → chunk-AW3EGUGB.cjs} +4 -0
  28. package/dist/{chunk-DILKJQYV.cjs → chunk-CP2ZSRMU.cjs} +1 -1
  29. package/dist/{chunk-ASN2EUM7.cjs → chunk-FQC2SXR4.cjs} +8 -4
  30. package/dist/chunk-GOH6G74S.js +17 -0
  31. package/dist/chunk-HCEAYQHS.cjs +40 -0
  32. package/dist/{chunk-H2LFD53G.js → chunk-JLGEGDYZ.js} +8 -4
  33. package/dist/{chunk-ZLCUSADU.cjs → chunk-L6DY4GCH.cjs} +5 -5
  34. package/dist/chunk-LG7MY5KL.cjs +17 -0
  35. package/dist/{chunk-V3AYCU2W.js → chunk-NSG7ZMXT.js} +4 -4
  36. package/dist/{chunk-YC2ZW3TX.cjs → chunk-P3HC3D2H.cjs} +7 -3
  37. package/dist/{chunk-UH5FBLCV.js → chunk-PN4OFZGM.js} +4 -0
  38. package/dist/{chunk-3BGPFW3U.cjs → chunk-RAPGCAN7.cjs} +17 -9
  39. package/dist/chunk-RFUD3TOQ.cjs +30 -0
  40. package/dist/{chunk-AS3WKQP7.js → chunk-TP5BP64T.js} +5 -2
  41. package/dist/chunk-UCZBNN4I.cjs +19 -0
  42. package/dist/chunk-UGS2F6DK.cjs +16 -0
  43. package/dist/{chunk-E344BLWD.cjs → chunk-UR7F73LZ.cjs} +5 -5
  44. package/dist/{chunk-QODMZOIX.js → chunk-Y6WJLQX4.js} +19 -11
  45. package/dist/{chunk-ZEXHP7HI.js → chunk-YWL2IWBT.js} +1 -1
  46. package/dist/chunk-YYWENXJO.js +27 -0
  47. package/dist/chunk-Z6NS6N32.js +19 -0
  48. package/dist/chunk-ZJHRAMCL.js +30 -0
  49. package/dist/css/getCss.cjs +7 -0
  50. package/dist/css/getCss.d.ts +3 -0
  51. package/dist/css/getCss.js +7 -0
  52. package/dist/css/index.cjs +10 -2
  53. package/dist/css/index.d.ts +2 -0
  54. package/dist/css/index.js +10 -2
  55. package/dist/css/setCss.cjs +7 -0
  56. package/dist/css/setCss.d.ts +3 -0
  57. package/dist/css/setCss.js +7 -0
  58. package/dist/index-1626b626.d.ts +13 -0
  59. package/dist/{index-08b507f8.d.ts → index-52d58bd9.d.ts} +5 -2
  60. package/dist/{index-8b70f9ee.d.ts → index-82b62caf.d.ts} +6 -0
  61. package/dist/{index-136bb93b.d.ts → index-84b0c6c3.d.ts} +3 -0
  62. package/dist/{index-b61bcc84.d.ts → index-b16b81dc.d.ts} +3 -0
  63. package/dist/{index-a7638ef2.d.ts → index-ea8a32cb.d.ts} +7 -1
  64. package/dist/index.cjs +35 -28
  65. package/dist/index.d.ts +24 -17
  66. package/dist/index.js +34 -27
  67. package/dist/judge/index.cjs +6 -6
  68. package/dist/judge/index.d.ts +1 -1
  69. package/dist/judge/index.js +5 -5
  70. package/dist/judge/matchs.cjs +3 -3
  71. package/dist/judge/matchs.js +2 -2
  72. package/dist/load/getSynch.cjs +7 -0
  73. package/dist/load/getSynch.d.ts +8 -0
  74. package/dist/load/getSynch.js +7 -0
  75. package/dist/load/index.cjs +6 -2
  76. package/dist/load/index.d.ts +1 -0
  77. package/dist/load/index.js +5 -1
  78. package/dist/name/index.d.ts +2 -2
  79. package/dist/urls/getNewFileName.cjs +8 -0
  80. package/dist/urls/getNewFileName.d.ts +8 -0
  81. package/dist/urls/getNewFileName.js +8 -0
  82. package/dist/urls/getReplaceImportUrl.cjs +8 -0
  83. package/dist/urls/getReplaceImportUrl.d.ts +9 -0
  84. package/dist/urls/getReplaceImportUrl.js +8 -0
  85. package/dist/urls/getUrlCatalogue.cjs +2 -2
  86. package/dist/urls/getUrlCatalogue.js +1 -1
  87. package/dist/urls/getUrlCatalogueObj.cjs +2 -2
  88. package/dist/urls/getUrlCatalogueObj.d.ts +1 -0
  89. package/dist/urls/getUrlCatalogueObj.js +1 -1
  90. package/dist/urls/index.cjs +17 -9
  91. package/dist/urls/index.d.ts +3 -1
  92. package/dist/urls/index.js +20 -12
  93. package/package.json +92 -57
  94. package/dist/index-6a62d537.d.ts +0 -13
  95. package/dist/{chunk-FRGDQOX4.js → chunk-33X65PQS.js} +3 -3
  96. package/dist/{chunk-NGQKVTCR.cjs → chunk-3YUI42XN.cjs} +3 -3
  97. package/dist/{index-110fd300.d.ts → index-445fe401.d.ts} +1 -1
  98. package/dist/{index-48710eab.d.ts → index-f9cc2ca2.d.ts} +2 -2
  99. package/dist/{index-c07fa6d2.d.ts → index-fab49d44.d.ts} +1 -1
@@ -1,21 +1,24 @@
1
1
  import {
2
2
  getStartSame
3
3
  } from "./chunk-7DTHADVK.js";
4
+ import {
5
+ splitUpper
6
+ } from "./chunk-Z6NS6N32.js";
4
7
  import {
5
8
  appearNum
6
9
  } from "./chunk-SNABGVNO.js";
7
10
  import {
8
11
  appearNumSeat
9
12
  } from "./chunk-DMZP4RPN.js";
10
- import {
11
- getStartSames
12
- } from "./chunk-A276ZDLP.js";
13
13
  import {
14
14
  firstLower
15
15
  } from "./chunk-4OBNLDTJ.js";
16
16
  import {
17
17
  firstUpper
18
18
  } from "./chunk-EWJJKQIO.js";
19
+ import {
20
+ getStartSames
21
+ } from "./chunk-A276ZDLP.js";
19
22
  import {
20
23
  __export
21
24
  } from "./chunk-UICA3PK6.js";
@@ -28,7 +31,8 @@ __export(string_exports, {
28
31
  firstLower: () => firstLower,
29
32
  firstUpper: () => firstUpper,
30
33
  getStartSame: () => getStartSame,
31
- getStartSames: () => getStartSames
34
+ getStartSames: () => getStartSames,
35
+ splitUpper: () => splitUpper
32
36
  });
33
37
 
34
38
  export {
@@ -1,9 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNGQKVTCRcjs = require('./chunk-NGQKVTCR.cjs');
4
-
5
-
6
- var _chunkZZEFL2TEcjs = require('./chunk-ZZEFL2TE.cjs');
3
+ var _chunk3YUI42XNcjs = require('./chunk-3YUI42XN.cjs');
7
4
 
8
5
 
9
6
  var _chunk2BY5RQHUcjs = require('./chunk-2BY5RQHU.cjs');
@@ -12,12 +9,15 @@ var _chunk2BY5RQHUcjs = require('./chunk-2BY5RQHU.cjs');
12
9
  var _chunkYGJOBIEOcjs = require('./chunk-YGJOBIEO.cjs');
13
10
 
14
11
 
12
+ var _chunkZZEFL2TEcjs = require('./chunk-ZZEFL2TE.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: () => _chunkNGQKVTCRcjs.matchs,
20
+ matchs: () => _chunk3YUI42XNcjs.matchs,
21
21
  matchsEnd: () => _chunkYGJOBIEOcjs.matchsEnd,
22
22
  matchsStart: () => _chunkZZEFL2TEcjs.matchsStart,
23
23
  matchsWhole: () => _chunk2BY5RQHUcjs.matchsWhole
@@ -0,0 +1,17 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/array/replaceAfter.ts
2
+ function replaceAfter(arr, obj, id) {
3
+ const varr = [];
4
+ for (let index = 0; index < arr.length; index++) {
5
+ const element = arr[index];
6
+ const vs = obj;
7
+ if (element[id] !== vs[id]) {
8
+ varr.push(arr[index]);
9
+ }
10
+ }
11
+ varr.push(obj);
12
+ return varr;
13
+ }
14
+
15
+
16
+
17
+ exports.replaceAfter = replaceAfter;
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  matchs
3
- } from "./chunk-FRGDQOX4.js";
4
- import {
5
- matchsStart
6
- } from "./chunk-S6JRKYPY.js";
3
+ } from "./chunk-33X65PQS.js";
7
4
  import {
8
5
  matchsWhole
9
6
  } from "./chunk-IRGCP7KH.js";
10
7
  import {
11
8
  matchsEnd
12
9
  } from "./chunk-YNOFNHEK.js";
10
+ import {
11
+ matchsStart
12
+ } from "./chunk-S6JRKYPY.js";
13
13
  import {
14
14
  __export
15
15
  } from "./chunk-UICA3PK6.js";
@@ -1,14 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkAXMOZZCMcjs = require('./chunk-AXMOZZCM.cjs');
4
-
5
-
6
3
  var _chunkVNVG4BJ4cjs = require('./chunk-VNVG4BJ4.cjs');
7
4
 
8
5
 
9
6
  var _chunkGD3OA7GUcjs = require('./chunk-GD3OA7GU.cjs');
10
7
 
11
8
 
9
+ var _chunkLG7MY5KLcjs = require('./chunk-LG7MY5KL.cjs');
10
+
11
+
12
+ var _chunkAXMOZZCMcjs = require('./chunk-AXMOZZCM.cjs');
13
+
14
+
12
15
  var _chunkISHLY7WMcjs = require('./chunk-ISHLY7WM.cjs');
13
16
 
14
17
 
@@ -20,6 +23,7 @@ _chunk5AZGAKWRcjs.__export.call(void 0, array_exports, {
20
23
  asyncMergeArray: () => _chunkVNVG4BJ4cjs.asyncMergeArray,
21
24
  duplicateRemoval: () => _chunkGD3OA7GUcjs.duplicateRemoval,
22
25
  isArray: () => _chunkISHLY7WMcjs.isArray,
26
+ replaceAfter: () => _chunkLG7MY5KLcjs.replaceAfter,
23
27
  toggleArray: () => _chunkAXMOZZCMcjs.toggleArray
24
28
  });
25
29
 
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  loadScript
3
3
  } from "./chunk-RU4PMJQS.js";
4
+ import {
5
+ getSynch
6
+ } from "./chunk-2SOGI5PH.js";
4
7
  import {
5
8
  __export
6
9
  } from "./chunk-UICA3PK6.js";
@@ -8,6 +11,7 @@ import {
8
11
  // packages/load/index.ts
9
12
  var load_exports = {};
10
13
  __export(load_exports, {
14
+ getSynch: () => getSynch,
11
15
  loadScript: () => loadScript
12
16
  });
13
17
 
@@ -1,24 +1,30 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkDILKJQYVcjs = require('./chunk-DILKJQYV.cjs');
3
+ var _chunk27WA7EI2cjs = require('./chunk-27WA7EI2.cjs');
4
4
 
5
5
 
6
- var _chunk3ERQHPTDcjs = require('./chunk-3ERQHPTD.cjs');
6
+ var _chunk43VE3KXLcjs = require('./chunk-43VE3KXL.cjs');
7
7
 
8
8
 
9
- var _chunkP3YVE7JKcjs = require('./chunk-P3YVE7JK.cjs');
9
+ var _chunkRFUD3TOQcjs = require('./chunk-RFUD3TOQ.cjs');
10
10
 
11
11
 
12
- var _chunk27WA7EI2cjs = require('./chunk-27WA7EI2.cjs');
12
+ var _chunk6RIGEV6Gcjs = require('./chunk-6RIGEV6G.cjs');
13
13
 
14
14
 
15
- var _chunkIRKWYW5Bcjs = require('./chunk-IRKWYW5B.cjs');
15
+ var _chunk6A6EAFGLcjs = require('./chunk-6A6EAFGL.cjs');
16
16
 
17
17
 
18
- var _chunk6RIGEV6Gcjs = require('./chunk-6RIGEV6G.cjs');
18
+ var _chunkCP2ZSRMUcjs = require('./chunk-CP2ZSRMU.cjs');
19
19
 
20
20
 
21
- var _chunk6A6EAFGLcjs = require('./chunk-6A6EAFGL.cjs');
21
+ var _chunk3ERQHPTDcjs = require('./chunk-3ERQHPTD.cjs');
22
+
23
+
24
+ var _chunk77SI5VSScjs = require('./chunk-77SI5VSS.cjs');
25
+
26
+
27
+ var _chunkIRKWYW5Bcjs = require('./chunk-IRKWYW5B.cjs');
22
28
 
23
29
 
24
30
  var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
@@ -28,11 +34,13 @@ var urls_exports = {};
28
34
  _chunk5AZGAKWRcjs.__export.call(void 0, urls_exports, {
29
35
  getImportUrl: () => _chunkIRKWYW5Bcjs.getImportUrl,
30
36
  getImportUrlSuffix: () => _chunk27WA7EI2cjs.getImportUrlSuffix,
37
+ getNewFileName: () => _chunk43VE3KXLcjs.getNewFileName,
38
+ getReplaceImportUrl: () => _chunkRFUD3TOQcjs.getReplaceImportUrl,
31
39
  getReplaceUrl: () => _chunk6RIGEV6Gcjs.getReplaceUrl,
32
40
  getSuffix: () => _chunk6A6EAFGLcjs.getSuffix,
33
- getUrlCatalogue: () => _chunkDILKJQYVcjs.getUrlCatalogue,
41
+ getUrlCatalogue: () => _chunkCP2ZSRMUcjs.getUrlCatalogue,
34
42
  getUrlCatalogueLast: () => _chunk3ERQHPTDcjs.getUrlCatalogueLast,
35
- getUrlCatalogueObj: () => _chunkP3YVE7JKcjs.getUrlCatalogueObj
43
+ getUrlCatalogueObj: () => _chunk77SI5VSScjs.getUrlCatalogueObj
36
44
  });
37
45
 
38
46
 
@@ -0,0 +1,30 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkPW7RP73Jcjs = require('./chunk-PW7RP73J.cjs');
4
+
5
+ // packages/urls/getReplaceImportUrl.ts
6
+ function getReplaceImportUrl(url, imp) {
7
+ const arr = _chunkPW7RP73Jcjs.getStartSames.call(void 0, url, imp);
8
+ const ts = arr[0];
9
+ if (!/[\\|\/]$/.test(ts)) {
10
+ const regs = ts.match(/[\\|\/]([^\\|\/]*)$/);
11
+ if (regs && regs.length > 0) {
12
+ const a = regs[1];
13
+ arr[0] = ts.substring(0, (regs.index || 0) + 1);
14
+ arr[1] = a + arr[1];
15
+ }
16
+ }
17
+ const l = arr[1].split(/\\|\//).length - 1;
18
+ let ds = ["./"];
19
+ if (l > 0) {
20
+ ds = [];
21
+ for (let index = 0; index < l; index++) {
22
+ ds.push("../");
23
+ }
24
+ }
25
+ return ds.join("");
26
+ }
27
+
28
+
29
+
30
+ exports.getReplaceImportUrl = getReplaceImportUrl;
@@ -1,18 +1,21 @@
1
1
  // packages/urls/getUrlCatalogueObj.ts
2
2
  function getUrlCatalogueObj(str) {
3
- const reg = /(\\|\/)([^\\|\/]+)(\.[a-z|A-Z]+)$/g;
3
+ const reg = /(\\|\/)([^\\|\/]+)\.([a-z|A-Z]+)$/g;
4
4
  const ml = str.replace(reg, "");
5
5
  let name = "";
6
6
  let suffix = "";
7
+ let apart = "";
7
8
  const arr = reg.exec(str);
8
9
  if (arr) {
10
+ apart = arr[1];
9
11
  name = arr[2];
10
12
  suffix = arr[3];
11
13
  }
12
14
  return {
13
15
  catalogue: ml,
14
16
  name,
15
- suffix
17
+ suffix,
18
+ apart
16
19
  };
17
20
  }
18
21
 
@@ -0,0 +1,19 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/string/splitUpper.ts
2
+ function splitUpper(name) {
3
+ let reg = /(([A-Z])([^A-Z]*))/g;
4
+ let result;
5
+ let arr = [];
6
+ let i = 0;
7
+ while ((result = reg.exec(name)) !== null) {
8
+ if (i == 0 && result.index != 0) {
9
+ arr.push(name.substring(0, result.index));
10
+ }
11
+ i++;
12
+ arr.push(result[1].toLowerCase());
13
+ }
14
+ return arr;
15
+ }
16
+
17
+
18
+
19
+ exports.splitUpper = splitUpper;
@@ -0,0 +1,16 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/css/getCss.ts
2
+ function getStyles(elem) {
3
+ var view = elem.ownerDocument.defaultView;
4
+ if (!view || !view.opener) {
5
+ view = window;
6
+ }
7
+ return view.getComputedStyle(elem);
8
+ }
9
+ function getCss(elem, style) {
10
+ const styles = getStyles(elem);
11
+ return styles.getPropertyValue(style) || styles[style];
12
+ }
13
+
14
+
15
+
16
+ exports.getCss = getCss;
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkASN2EUM7cjs = require('./chunk-ASN2EUM7.cjs');
3
+ var _chunkFQC2SXR4cjs = require('./chunk-FQC2SXR4.cjs');
4
4
 
5
5
 
6
- var _chunkPB6FN2XCcjs = require('./chunk-PB6FN2XC.cjs');
6
+ var _chunkP3HC3D2Hcjs = require('./chunk-P3HC3D2H.cjs');
7
7
 
8
8
 
9
- var _chunkYC2ZW3TXcjs = require('./chunk-YC2ZW3TX.cjs');
9
+ var _chunkPB6FN2XCcjs = require('./chunk-PB6FN2XC.cjs');
10
10
 
11
11
 
12
12
  var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
@@ -14,9 +14,9 @@ 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: () => _chunkYC2ZW3TXcjs.array_exports,
17
+ array: () => _chunkP3HC3D2Hcjs.array_exports,
18
18
  object: () => _chunkPB6FN2XCcjs.object_exports,
19
- string: () => _chunkASN2EUM7cjs.string_exports
19
+ string: () => _chunkFQC2SXR4cjs.string_exports
20
20
  });
21
21
 
22
22
 
@@ -1,24 +1,30 @@
1
- import {
2
- getUrlCatalogue
3
- } from "./chunk-ZEXHP7HI.js";
4
- import {
5
- getUrlCatalogueLast
6
- } from "./chunk-BDJORZRC.js";
7
- import {
8
- getUrlCatalogueObj
9
- } from "./chunk-AS3WKQP7.js";
10
1
  import {
11
2
  getImportUrlSuffix
12
3
  } from "./chunk-XBZX5YZW.js";
13
4
  import {
14
- getImportUrl
15
- } from "./chunk-AWC672JW.js";
5
+ getNewFileName
6
+ } from "./chunk-YYWENXJO.js";
7
+ import {
8
+ getReplaceImportUrl
9
+ } from "./chunk-ZJHRAMCL.js";
16
10
  import {
17
11
  getReplaceUrl
18
12
  } from "./chunk-ZRZ5HATA.js";
19
13
  import {
20
14
  getSuffix
21
15
  } from "./chunk-UOADEBDH.js";
16
+ import {
17
+ getUrlCatalogue
18
+ } from "./chunk-YWL2IWBT.js";
19
+ import {
20
+ getUrlCatalogueLast
21
+ } from "./chunk-BDJORZRC.js";
22
+ import {
23
+ getUrlCatalogueObj
24
+ } from "./chunk-TP5BP64T.js";
25
+ import {
26
+ getImportUrl
27
+ } from "./chunk-AWC672JW.js";
22
28
  import {
23
29
  __export
24
30
  } from "./chunk-UICA3PK6.js";
@@ -28,6 +34,8 @@ var urls_exports = {};
28
34
  __export(urls_exports, {
29
35
  getImportUrl: () => getImportUrl,
30
36
  getImportUrlSuffix: () => getImportUrlSuffix,
37
+ getNewFileName: () => getNewFileName,
38
+ getReplaceImportUrl: () => getReplaceImportUrl,
31
39
  getReplaceUrl: () => getReplaceUrl,
32
40
  getSuffix: () => getSuffix,
33
41
  getUrlCatalogue: () => getUrlCatalogue,
@@ -1,6 +1,6 @@
1
1
  // packages/urls/getUrlCatalogue.ts
2
2
  function getUrlCatalogue(str) {
3
- const reg = /((\\|\/)([^\\|\/]+)(\.[a-z|A-Z]+))$/g;
3
+ const reg = /((\\|\/)([^\\|\/]+)(\.[a-z|A-Z]+))?$/g;
4
4
  return str.replace(reg, "");
5
5
  }
6
6
 
@@ -0,0 +1,27 @@
1
+ import {
2
+ getUrlCatalogueObj
3
+ } from "./chunk-TP5BP64T.js";
4
+
5
+ // packages/urls/getNewFileName.ts
6
+ function getNewFileName(url) {
7
+ const obj = getUrlCatalogueObj(url);
8
+ let wb = obj.name;
9
+ if (wb) {
10
+ const reg = /([0-9]+)$/g;
11
+ const regs = reg.exec(wb);
12
+ if (regs && regs.length > 0) {
13
+ const sl = Number(regs[1]) + 1;
14
+ const reg1 = new RegExp(regs[1] + "$");
15
+ wb = wb.replace(reg1, (sl + "").padStart(regs[1].length, "0"));
16
+ } else {
17
+ wb = wb + "1";
18
+ }
19
+ return obj.catalogue + obj.apart + wb + "." + obj.suffix;
20
+ } else {
21
+ return "";
22
+ }
23
+ }
24
+
25
+ export {
26
+ getNewFileName
27
+ };
@@ -0,0 +1,19 @@
1
+ // packages/basic/string/splitUpper.ts
2
+ function splitUpper(name) {
3
+ let reg = /(([A-Z])([^A-Z]*))/g;
4
+ let result;
5
+ let arr = [];
6
+ let i = 0;
7
+ while ((result = reg.exec(name)) !== null) {
8
+ if (i == 0 && result.index != 0) {
9
+ arr.push(name.substring(0, result.index));
10
+ }
11
+ i++;
12
+ arr.push(result[1].toLowerCase());
13
+ }
14
+ return arr;
15
+ }
16
+
17
+ export {
18
+ splitUpper
19
+ };
@@ -0,0 +1,30 @@
1
+ import {
2
+ getStartSames
3
+ } from "./chunk-A276ZDLP.js";
4
+
5
+ // packages/urls/getReplaceImportUrl.ts
6
+ function getReplaceImportUrl(url, imp) {
7
+ const arr = getStartSames(url, imp);
8
+ const ts = arr[0];
9
+ if (!/[\\|\/]$/.test(ts)) {
10
+ const regs = ts.match(/[\\|\/]([^\\|\/]*)$/);
11
+ if (regs && regs.length > 0) {
12
+ const a = regs[1];
13
+ arr[0] = ts.substring(0, (regs.index || 0) + 1);
14
+ arr[1] = a + arr[1];
15
+ }
16
+ }
17
+ const l = arr[1].split(/\\|\//).length - 1;
18
+ let ds = ["./"];
19
+ if (l > 0) {
20
+ ds = [];
21
+ for (let index = 0; index < l; index++) {
22
+ ds.push("../");
23
+ }
24
+ }
25
+ return ds.join("");
26
+ }
27
+
28
+ export {
29
+ getReplaceImportUrl
30
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkUGS2F6DKcjs = require('../chunk-UGS2F6DK.cjs');
4
+ require('../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.getCss = _chunkUGS2F6DKcjs.getCss;
@@ -0,0 +1,3 @@
1
+ declare function getCss(elem: HTMLDivElement, style: string): any;
2
+
3
+ export { getCss };
@@ -0,0 +1,7 @@
1
+ import {
2
+ getCss
3
+ } from "../chunk-5RZYHE3X.js";
4
+ import "../chunk-UICA3PK6.js";
5
+ export {
6
+ getCss
7
+ };
@@ -1,8 +1,16 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-LHSOIOCS.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-36NQW7GX.cjs');
2
2
 
3
3
 
4
4
  var _chunkO2RP4UZQcjs = require('../chunk-O2RP4UZQ.cjs');
5
+
6
+
7
+ var _chunkUGS2F6DKcjs = require('../chunk-UGS2F6DK.cjs');
8
+
9
+
10
+ var _chunk6WSP6FLZcjs = require('../chunk-6WSP6FLZ.cjs');
5
11
  require('../chunk-5AZGAKWR.cjs');
6
12
 
7
13
 
8
- exports.fetchUnitValue = _chunkO2RP4UZQcjs.fetchUnitValue;
14
+
15
+
16
+ exports.fetchUnitValue = _chunkO2RP4UZQcjs.fetchUnitValue; exports.getCss = _chunkUGS2F6DKcjs.getCss; exports.setCss = _chunk6WSP6FLZcjs.setCss;
@@ -1 +1,3 @@
1
1
  export { fetchUnitValue } from './fetchUnitValue.js';
2
+ export { getCss } from './getCss.js';
3
+ export { setCss } from './setCss.js';
package/dist/css/index.js CHANGED
@@ -1,8 +1,16 @@
1
- import "../chunk-7LMEBJPQ.js";
1
+ import "../chunk-7KXJO4NI.js";
2
2
  import {
3
3
  fetchUnitValue
4
4
  } from "../chunk-QKLVFB74.js";
5
+ import {
6
+ getCss
7
+ } from "../chunk-5RZYHE3X.js";
8
+ import {
9
+ setCss
10
+ } from "../chunk-7IXRH3MU.js";
5
11
  import "../chunk-UICA3PK6.js";
6
12
  export {
7
- fetchUnitValue
13
+ fetchUnitValue,
14
+ getCss,
15
+ setCss
8
16
  };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk6WSP6FLZcjs = require('../chunk-6WSP6FLZ.cjs');
4
+ require('../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.setCss = _chunk6WSP6FLZcjs.setCss;
@@ -0,0 +1,3 @@
1
+ declare function setCss(elem: HTMLDivElement, style: string, value: string): void;
2
+
3
+ export { setCss };
@@ -0,0 +1,7 @@
1
+ import {
2
+ setCss
3
+ } from "../chunk-7IXRH3MU.js";
4
+ import "../chunk-UICA3PK6.js";
5
+ export {
6
+ setCss
7
+ };
@@ -0,0 +1,13 @@
1
+ import { i as index$1 } from './index-b16b81dc.js';
2
+ import { i as index$2 } from './index-fab49d44.js';
3
+ import { i as index$3 } from './index-52d58bd9.js';
4
+
5
+ declare namespace index {
6
+ export {
7
+ index$1 as array,
8
+ index$2 as object,
9
+ index$3 as string,
10
+ };
11
+ }
12
+
13
+ export { index as i };
@@ -1,9 +1,10 @@
1
1
  import { appearNumSeat } from './basic/string/appearNumSeat.js';
2
- import { firstLower } from './basic/string/firstLower.js';
3
2
  import { appearNum } from './basic/string/appearNum.js';
4
3
  import { firstUpper } from './basic/string/firstUpper.js';
5
- import { getStartSame } from './basic/string/getStartSame.js';
4
+ import { firstLower } from './basic/string/firstLower.js';
6
5
  import { getStartSames } from './basic/string/getStartSames.js';
6
+ import { getStartSame } from './basic/string/getStartSame.js';
7
+ import { splitUpper } from './basic/string/splitUpper.js';
7
8
 
8
9
  declare const index_appearNum: typeof appearNum;
9
10
  declare const index_appearNumSeat: typeof appearNumSeat;
@@ -11,6 +12,7 @@ declare const index_firstLower: typeof firstLower;
11
12
  declare const index_firstUpper: typeof firstUpper;
12
13
  declare const index_getStartSame: typeof getStartSame;
13
14
  declare const index_getStartSames: typeof getStartSames;
15
+ declare const index_splitUpper: typeof splitUpper;
14
16
  declare namespace index {
15
17
  export {
16
18
  index_appearNum as appearNum,
@@ -19,6 +21,7 @@ declare namespace index {
19
21
  index_firstUpper as firstUpper,
20
22
  index_getStartSame as getStartSame,
21
23
  index_getStartSames as getStartSames,
24
+ index_splitUpper as splitUpper,
22
25
  };
23
26
  }
24
27
 
@@ -1,9 +1,15 @@
1
1
  import { fetchUnitValue } from './css/fetchUnitValue.js';
2
+ import { getCss } from './css/getCss.js';
3
+ import { setCss } from './css/setCss.js';
2
4
 
3
5
  declare const index_fetchUnitValue: typeof fetchUnitValue;
6
+ declare const index_getCss: typeof getCss;
7
+ declare const index_setCss: typeof setCss;
4
8
  declare namespace index {
5
9
  export {
6
10
  index_fetchUnitValue as fetchUnitValue,
11
+ index_getCss as getCss,
12
+ index_setCss as setCss,
7
13
  };
8
14
  }
9
15
 
@@ -1,8 +1,11 @@
1
+ import { getSynch } from './load/getSynch.js';
1
2
  import { loadScript } from './load/loadScript.js';
2
3
 
4
+ declare const index_getSynch: typeof getSynch;
3
5
  declare const index_loadScript: typeof loadScript;
4
6
  declare namespace index {
5
7
  export {
8
+ index_getSynch as getSynch,
6
9
  index_loadScript as loadScript,
7
10
  };
8
11
  }
@@ -1,17 +1,20 @@
1
1
  import { asyncMergeArray } from './basic/array/asyncMergeArray.js';
2
2
  import { duplicateRemoval } from './basic/array/duplicateRemoval.js';
3
3
  import { isArray } from './basic/array/isArray.js';
4
+ import { replaceAfter } from './basic/array/replaceAfter.js';
4
5
  import { toggleArray } from './basic/array/toggleArray.js';
5
6
 
6
7
  declare const index_asyncMergeArray: typeof asyncMergeArray;
7
8
  declare const index_duplicateRemoval: typeof duplicateRemoval;
8
9
  declare const index_isArray: typeof isArray;
10
+ declare const index_replaceAfter: typeof replaceAfter;
9
11
  declare const index_toggleArray: typeof toggleArray;
10
12
  declare namespace index {
11
13
  export {
12
14
  index_asyncMergeArray as asyncMergeArray,
13
15
  index_duplicateRemoval as duplicateRemoval,
14
16
  index_isArray as isArray,
17
+ index_replaceAfter as replaceAfter,
15
18
  index_toggleArray as toggleArray,
16
19
  };
17
20
  }