@fangzhongya/utils 0.0.7 → 0.0.8-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.
Files changed (179) hide show
  1. package/LICENSE +25 -25
  2. package/README.md +5 -3
  3. package/dist/basic/array/asyncMergeArray.cjs +7 -0
  4. package/dist/basic/array/asyncMergeArray.d.ts +9 -0
  5. package/dist/basic/array/asyncMergeArray.js +7 -0
  6. package/dist/basic/array/duplicateRemoval.cjs +7 -0
  7. package/dist/basic/array/duplicateRemoval.d.ts +9 -0
  8. package/dist/basic/array/duplicateRemoval.js +7 -0
  9. package/dist/basic/array/index.cjs +15 -3
  10. package/dist/basic/array/index.d.ts +3 -0
  11. package/dist/basic/array/index.js +14 -2
  12. package/dist/basic/array/replaceAfter.cjs +7 -0
  13. package/dist/basic/array/replaceAfter.d.ts +10 -0
  14. package/dist/basic/array/replaceAfter.js +7 -0
  15. package/dist/basic/array/toggleArray.cjs +2 -2
  16. package/dist/basic/array/toggleArray.d.ts +4 -7
  17. package/dist/basic/array/toggleArray.js +1 -1
  18. package/dist/basic/index.cjs +16 -11
  19. package/dist/basic/index.d.ts +13 -8
  20. package/dist/basic/index.js +15 -10
  21. package/dist/basic/object/index.cjs +7 -3
  22. package/dist/basic/object/index.d.ts +2 -1
  23. package/dist/basic/object/index.js +7 -3
  24. package/dist/basic/object/isObject.cjs +2 -3
  25. package/dist/basic/object/isObject.js +1 -2
  26. package/dist/basic/object/isObjectArray.cjs +9 -0
  27. package/dist/basic/object/isObjectArray.d.ts +8 -0
  28. package/dist/basic/object/isObjectArray.js +9 -0
  29. package/dist/basic/string/index.cjs +8 -4
  30. package/dist/basic/string/index.d.ts +3 -2
  31. package/dist/basic/string/index.js +10 -6
  32. package/dist/basic/string/splitUpper.cjs +7 -0
  33. package/dist/basic/string/splitUpper.d.ts +8 -0
  34. package/dist/basic/string/splitUpper.js +7 -0
  35. package/dist/{chunk-O6GUK5PL.cjs → chunk-27WA7EI2.cjs} +2 -2
  36. package/dist/chunk-2SOGI5PH.js +40 -0
  37. package/dist/{chunk-G3AKL6ST.js → chunk-2W7EPKCY.js} +6 -6
  38. package/dist/chunk-3ERQHPTD.cjs +13 -0
  39. package/dist/chunk-3NFJ3TZL.js +32 -0
  40. package/dist/chunk-43VE3KXL.cjs +27 -0
  41. package/dist/{chunk-XZDG4EDX.js → chunk-4TVFBKXC.js} +5 -5
  42. package/dist/{chunk-R7G5MSGO.cjs → chunk-5JCMM6YG.cjs} +6 -2
  43. package/dist/chunk-5RZYHE3X.js +16 -0
  44. package/dist/{chunk-N6OX2U6W.cjs → chunk-5U2ZV4MK.cjs} +6 -2
  45. package/dist/{chunk-IMCJXCTH.cjs → chunk-5UV36ZIW.cjs} +4 -4
  46. package/dist/chunk-6A6EAFGL.cjs +13 -0
  47. package/dist/{chunk-MWVRSPS5.js → chunk-6MGCPTRE.js} +9 -5
  48. package/dist/{chunk-P3YVE7JK.cjs → chunk-77SI5VSS.cjs} +5 -2
  49. package/dist/chunk-7B2HWFLC.cjs +20 -0
  50. package/dist/chunk-AM67P3W7.js +15 -0
  51. package/dist/{chunk-LFC6RYSS.js → chunk-AWC672JW.js} +13 -0
  52. package/dist/chunk-AXAVKIR3.cjs +20 -0
  53. package/dist/{chunk-3BKSZA3U.cjs → chunk-AXMOZZCM.cjs} +4 -3
  54. package/dist/chunk-BDJORZRC.js +13 -0
  55. package/dist/{chunk-VHMUSGCJ.js → chunk-BWNLZJJG.js} +4 -4
  56. package/dist/{chunk-MAIGGOA4.js → chunk-C5A37VUQ.js} +5 -1
  57. package/dist/{chunk-DILKJQYV.cjs → chunk-CP2ZSRMU.cjs} +1 -1
  58. package/dist/chunk-FP5ETUFZ.cjs +21 -0
  59. package/dist/chunk-GD3OA7GU.cjs +18 -0
  60. package/dist/chunk-GOH6G74S.js +17 -0
  61. package/dist/{chunk-HULCI3SJ.js → chunk-GOJN3OQ4.js} +4 -3
  62. package/dist/chunk-HCEAYQHS.cjs +40 -0
  63. package/dist/{chunk-YK7WI6H7.cjs → chunk-IRKWYW5B.cjs} +13 -0
  64. package/dist/chunk-ISSZY3JI.cjs +24 -0
  65. package/dist/chunk-JLEIVV37.cjs +32 -0
  66. package/dist/chunk-LG7MY5KL.cjs +17 -0
  67. package/dist/chunk-LPDYEUMB.cjs +48 -0
  68. package/dist/chunk-MIC3W2VY.cjs +8 -0
  69. package/dist/{chunk-FESWCW7T.js → chunk-MXLYIZIX.js} +4 -4
  70. package/dist/chunk-MXY4W3K5.js +8 -0
  71. package/dist/{chunk-L45SIOB3.js → chunk-MYS6DR74.js} +22 -6
  72. package/dist/chunk-O2RP4UZQ.cjs +45 -0
  73. package/dist/chunk-P3HC3D2H.cjs +32 -0
  74. package/dist/{chunk-JSU6KHXP.cjs → chunk-PAJDTMC5.cjs} +6 -6
  75. package/dist/{chunk-HRECTLZO.js → chunk-QIK5MQUL.js} +7 -3
  76. package/dist/chunk-QKLVFB74.js +45 -0
  77. package/dist/chunk-QLBOPNV4.cjs +15 -0
  78. package/dist/chunk-RFUD3TOQ.cjs +30 -0
  79. package/dist/chunk-RU4PMJQS.js +21 -0
  80. package/dist/chunk-RWKZ6ZKW.js +20 -0
  81. package/dist/chunk-SRR2GWC7.js +15 -0
  82. package/dist/{chunk-AS3WKQP7.js → chunk-TP5BP64T.js} +5 -2
  83. package/dist/chunk-UCZBNN4I.cjs +19 -0
  84. package/dist/chunk-UGS2F6DK.cjs +16 -0
  85. package/dist/chunk-UOADEBDH.js +13 -0
  86. package/dist/chunk-VNVG4BJ4.cjs +23 -0
  87. package/dist/{chunk-3OME5O5G.cjs → chunk-WI55O3IV.cjs} +2 -2
  88. package/dist/{chunk-G6FL4SSB.js → chunk-XBZX5YZW.js} +1 -1
  89. package/dist/{chunk-2PY55D6T.js → chunk-XCDKXZFR.js} +3 -3
  90. package/dist/chunk-XCTPS2CO.js +20 -0
  91. package/dist/{chunk-2B742V22.cjs → chunk-XHR36FJK.cjs} +2 -6
  92. package/dist/chunk-XQB2HUHZ.js +23 -0
  93. package/dist/{chunk-ZEXHP7HI.js → chunk-YWL2IWBT.js} +1 -1
  94. package/dist/chunk-YYWENXJO.js +27 -0
  95. package/dist/chunk-Z6NS6N32.js +19 -0
  96. package/dist/chunk-ZJHRAMCL.js +30 -0
  97. package/dist/{chunk-62JF75OY.cjs → chunk-ZMG2MHGS.cjs} +7 -3
  98. package/dist/chunk-ZVBCHJA5.js +18 -0
  99. package/dist/css/fetchUnitValue.cjs +7 -0
  100. package/dist/css/fetchUnitValue.d.ts +10 -0
  101. package/dist/css/fetchUnitValue.js +7 -0
  102. package/dist/css/getCss.cjs +7 -0
  103. package/dist/css/getCss.d.ts +3 -0
  104. package/dist/css/getCss.js +7 -0
  105. package/dist/css/index.cjs +12 -0
  106. package/dist/css/index.d.ts +2 -0
  107. package/dist/css/index.js +12 -0
  108. package/dist/{index-24872dab.d.ts → index-09cd203a.d.ts} +3 -0
  109. package/dist/index-2c4dacd2.d.ts +13 -0
  110. package/dist/{index-f8e894a2.d.ts → index-39c0a1ca.d.ts} +5 -2
  111. package/dist/index-42672b09.d.ts +36 -0
  112. package/dist/index-84b0c6c3.d.ts +13 -0
  113. package/dist/index-b16b81dc.d.ts +22 -0
  114. package/dist/index-c661bc0a.d.ts +13 -0
  115. package/dist/{index-8473d4b5.d.ts → index-fab49d44.d.ts} +4 -1
  116. package/dist/index.cjs +46 -25
  117. package/dist/index.d.ts +30 -15
  118. package/dist/index.js +46 -25
  119. package/dist/iss/index.cjs +7 -3
  120. package/dist/iss/index.d.ts +1 -0
  121. package/dist/iss/index.js +8 -4
  122. package/dist/load/getSynch.cjs +7 -0
  123. package/dist/load/getSynch.d.ts +8 -0
  124. package/dist/load/getSynch.js +7 -0
  125. package/dist/load/index.cjs +12 -0
  126. package/dist/load/index.d.ts +2 -0
  127. package/dist/load/index.js +12 -0
  128. package/dist/load/loadScript.cjs +7 -0
  129. package/dist/load/loadScript.d.ts +3 -0
  130. package/dist/load/loadScript.js +7 -0
  131. package/dist/name/getComponentNames.cjs +5 -5
  132. package/dist/name/getComponentNames.js +4 -4
  133. package/dist/name/getNames.cjs +5 -5
  134. package/dist/name/getNames.js +4 -4
  135. package/dist/name/index.cjs +7 -7
  136. package/dist/name/index.d.ts +2 -2
  137. package/dist/name/index.js +8 -8
  138. package/dist/name/lineToLargeHump.cjs +3 -3
  139. package/dist/name/lineToLargeHump.js +2 -2
  140. package/dist/name/lineToSmallHump.cjs +4 -3
  141. package/dist/name/lineToSmallHump.d.ts +1 -1
  142. package/dist/name/lineToSmallHump.js +3 -2
  143. package/dist/urls/getImportUrl.cjs +2 -2
  144. package/dist/urls/getImportUrl.js +1 -1
  145. package/dist/urls/getImportUrlSuffix.cjs +3 -3
  146. package/dist/urls/getImportUrlSuffix.js +2 -2
  147. package/dist/urls/getNewFileName.cjs +8 -0
  148. package/dist/urls/getNewFileName.d.ts +8 -0
  149. package/dist/urls/getNewFileName.js +8 -0
  150. package/dist/urls/getReplaceImportUrl.cjs +8 -0
  151. package/dist/urls/getReplaceImportUrl.d.ts +9 -0
  152. package/dist/urls/getReplaceImportUrl.js +8 -0
  153. package/dist/urls/getSuffix.cjs +7 -0
  154. package/dist/urls/getSuffix.d.ts +8 -0
  155. package/dist/urls/getSuffix.js +7 -0
  156. package/dist/urls/getUrlCatalogue.cjs +2 -2
  157. package/dist/urls/getUrlCatalogue.js +1 -1
  158. package/dist/urls/getUrlCatalogueLast.cjs +7 -0
  159. package/dist/urls/getUrlCatalogueLast.d.ts +8 -0
  160. package/dist/urls/getUrlCatalogueLast.js +7 -0
  161. package/dist/urls/getUrlCatalogueObj.cjs +2 -2
  162. package/dist/urls/getUrlCatalogueObj.d.ts +4 -3
  163. package/dist/urls/getUrlCatalogueObj.js +1 -1
  164. package/dist/urls/index.cjs +22 -6
  165. package/dist/urls/index.d.ts +5 -1
  166. package/dist/urls/index.js +23 -7
  167. package/package.json +308 -233
  168. package/dist/chunk-3VG3A2GM.cjs +0 -24
  169. package/dist/chunk-6ADW34CB.cjs +0 -32
  170. package/dist/chunk-ETPPNXJN.cjs +0 -20
  171. package/dist/chunk-O3RJ5M35.js +0 -19
  172. package/dist/chunk-UL24YTNH.cjs +0 -32
  173. package/dist/chunk-WO6JQRTD.js +0 -16
  174. package/dist/chunk-XRGLFTH2.cjs +0 -16
  175. package/dist/chunk-YMC5G5SU.js +0 -20
  176. package/dist/index-cee90650.d.ts +0 -22
  177. package/dist/index-dfd59fc4.d.ts +0 -13
  178. package/dist/index-ee246de3.d.ts +0 -13
  179. package/dist/{index-dddef964.d.ts → index-f6ea5a6a.d.ts} +2 -2
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  getComponentNames
3
- } from "./chunk-FESWCW7T.js";
3
+ } from "./chunk-MXLYIZIX.js";
4
4
  import {
5
5
  getNames
6
- } from "./chunk-VHMUSGCJ.js";
6
+ } from "./chunk-BWNLZJJG.js";
7
7
  import {
8
8
  humpToLine
9
9
  } from "./chunk-J7CICTHH.js";
10
- import {
11
- lineToLargeHump
12
- } from "./chunk-2PY55D6T.js";
13
10
  import {
14
11
  lineToSmallHump
15
- } from "./chunk-O3RJ5M35.js";
12
+ } from "./chunk-AM67P3W7.js";
13
+ import {
14
+ lineToLargeHump
15
+ } from "./chunk-XCDKXZFR.js";
16
16
  import {
17
17
  __export
18
18
  } from "./chunk-UICA3PK6.js";
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/urls/getUrlCatalogueLast.ts
2
+ function getUrlCatalogueLast(str) {
3
+ const reg = /(\\|\/)([^\\|\/]+)(\\|\/)?(([^\\|\/]+)(\.[a-z|A-Z]+))?$/g;
4
+ const arr = reg.exec(str);
5
+ if (arr && arr.length > 0) {
6
+ return arr[2];
7
+ }
8
+ return "";
9
+ }
10
+
11
+
12
+
13
+ exports.getUrlCatalogueLast = getUrlCatalogueLast;
@@ -0,0 +1,32 @@
1
+ import {
2
+ asyncMergeArray
3
+ } from "./chunk-XQB2HUHZ.js";
4
+ import {
5
+ duplicateRemoval
6
+ } from "./chunk-ZVBCHJA5.js";
7
+ import {
8
+ replaceAfter
9
+ } from "./chunk-GOH6G74S.js";
10
+ import {
11
+ toggleArray
12
+ } from "./chunk-GOJN3OQ4.js";
13
+ import {
14
+ isArray
15
+ } from "./chunk-5PX3AFSC.js";
16
+ import {
17
+ __export
18
+ } from "./chunk-UICA3PK6.js";
19
+
20
+ // packages/basic/array/index.ts
21
+ var array_exports = {};
22
+ __export(array_exports, {
23
+ asyncMergeArray: () => asyncMergeArray,
24
+ duplicateRemoval: () => duplicateRemoval,
25
+ isArray: () => isArray,
26
+ replaceAfter: () => replaceAfter,
27
+ toggleArray: () => toggleArray
28
+ });
29
+
30
+ export {
31
+ array_exports
32
+ };
@@ -0,0 +1,27 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk77SI5VSScjs = require('./chunk-77SI5VSS.cjs');
4
+
5
+ // packages/urls/getNewFileName.ts
6
+ function getNewFileName(url) {
7
+ const obj = _chunk77SI5VSScjs.getUrlCatalogueObj.call(void 0, 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
+
26
+
27
+ exports.getNewFileName = getNewFileName;
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  string_exports
3
- } from "./chunk-MWVRSPS5.js";
4
- import {
5
- object_exports
6
- } from "./chunk-MAIGGOA4.js";
3
+ } from "./chunk-6MGCPTRE.js";
7
4
  import {
8
5
  array_exports
9
- } from "./chunk-YMC5G5SU.js";
6
+ } from "./chunk-3NFJ3TZL.js";
7
+ import {
8
+ object_exports
9
+ } from "./chunk-C5A37VUQ.js";
10
10
  import {
11
11
  __export
12
12
  } from "./chunk-UICA3PK6.js";
@@ -6,7 +6,10 @@ var _chunkNRJPCN4Jcjs = require('./chunk-NRJPCN4J.cjs');
6
6
  var _chunk3VYRYSWKcjs = require('./chunk-3VYRYSWK.cjs');
7
7
 
8
8
 
9
- var _chunkXRGLFTH2cjs = require('./chunk-XRGLFTH2.cjs');
9
+ var _chunkQLBOPNV4cjs = require('./chunk-QLBOPNV4.cjs');
10
+
11
+
12
+ var _chunkMIC3W2VYcjs = require('./chunk-MIC3W2VY.cjs');
10
13
 
11
14
 
12
15
  var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
@@ -14,7 +17,8 @@ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
14
17
  // packages/basic/object/index.ts
15
18
  var object_exports = {};
16
19
  _chunk5AZGAKWRcjs.__export.call(void 0, object_exports, {
17
- isObject: () => _chunkXRGLFTH2cjs.isObject,
20
+ isObject: () => _chunkMIC3W2VYcjs.isObject,
21
+ isObjectArray: () => _chunkQLBOPNV4cjs.isObjectArray,
18
22
  mergeObject: () => _chunkNRJPCN4Jcjs.mergeObject,
19
23
  unmergeObject: () => _chunk3VYRYSWKcjs.unmergeObject
20
24
  });
@@ -0,0 +1,16 @@
1
+ // 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
+ export {
15
+ getCss
16
+ };
@@ -1,18 +1,22 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXRGLFTH2cjs = require('./chunk-XRGLFTH2.cjs');
3
+ var _chunkQLBOPNV4cjs = require('./chunk-QLBOPNV4.cjs');
4
4
 
5
5
 
6
6
  var _chunkISHLY7WMcjs = require('./chunk-ISHLY7WM.cjs');
7
7
 
8
8
 
9
+ var _chunkMIC3W2VYcjs = require('./chunk-MIC3W2VY.cjs');
10
+
11
+
9
12
  var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
10
13
 
11
14
  // packages/iss/index.ts
12
15
  var iss_exports = {};
13
16
  _chunk5AZGAKWRcjs.__export.call(void 0, iss_exports, {
14
17
  isArray: () => _chunkISHLY7WMcjs.isArray,
15
- isObject: () => _chunkXRGLFTH2cjs.isObject
18
+ isObject: () => _chunkMIC3W2VYcjs.isObject,
19
+ isObjectArray: () => _chunkQLBOPNV4cjs.isObjectArray
16
20
  });
17
21
 
18
22
 
@@ -3,16 +3,16 @@
3
3
  var _chunkLTVXRDTDcjs = require('./chunk-LTVXRDTD.cjs');
4
4
 
5
5
 
6
- var _chunk3OME5O5Gcjs = require('./chunk-3OME5O5G.cjs');
6
+ var _chunkXHR36FJKcjs = require('./chunk-XHR36FJK.cjs');
7
7
 
8
8
 
9
- var _chunk2B742V22cjs = require('./chunk-2B742V22.cjs');
9
+ var _chunkWI55O3IVcjs = require('./chunk-WI55O3IV.cjs');
10
10
 
11
11
  // packages/name/getNames.ts
12
12
  function getNames(name) {
13
13
  const line = _chunkLTVXRDTDcjs.humpToLine.call(void 0, name);
14
- const upper = _chunk3OME5O5Gcjs.lineToLargeHump.call(void 0, line);
15
- const lower = _chunk2B742V22cjs.lineToSmallHump.call(void 0, upper);
14
+ const upper = _chunkWI55O3IVcjs.lineToLargeHump.call(void 0, line);
15
+ const lower = _chunkXHR36FJKcjs.lineToSmallHump.call(void 0, upper);
16
16
  return [line, upper, lower];
17
17
  }
18
18
 
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/urls/getSuffix.ts
2
+ function getSuffix(url) {
3
+ const reg = /\.([a-z|A-Z]+)$/;
4
+ const regs = reg.exec(url);
5
+ if (regs && regs.length > 0) {
6
+ return regs[1];
7
+ }
8
+ return "";
9
+ }
10
+
11
+
12
+
13
+ exports.getSuffix = getSuffix;
@@ -1,3 +1,6 @@
1
+ import {
2
+ splitUpper
3
+ } from "./chunk-Z6NS6N32.js";
1
4
  import {
2
5
  getStartSame
3
6
  } from "./chunk-7DTHADVK.js";
@@ -8,14 +11,14 @@ import {
8
11
  appearNumSeat
9
12
  } from "./chunk-DMZP4RPN.js";
10
13
  import {
11
- getStartSames
12
- } from "./chunk-A276ZDLP.js";
14
+ firstLower
15
+ } from "./chunk-4OBNLDTJ.js";
13
16
  import {
14
17
  firstUpper
15
18
  } from "./chunk-EWJJKQIO.js";
16
19
  import {
17
- firstLower
18
- } from "./chunk-4OBNLDTJ.js";
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,18 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// 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,20 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkO2RP4UZQcjs = require('./chunk-O2RP4UZQ.cjs');
4
+
5
+
6
+ var _chunkUGS2F6DKcjs = require('./chunk-UGS2F6DK.cjs');
7
+
8
+
9
+ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
10
+
11
+ // packages/css/index.ts
12
+ var css_exports = {};
13
+ _chunk5AZGAKWRcjs.__export.call(void 0, css_exports, {
14
+ fetchUnitValue: () => _chunkO2RP4UZQcjs.fetchUnitValue,
15
+ getCss: () => _chunkUGS2F6DKcjs.getCss
16
+ });
17
+
18
+
19
+
20
+ exports.css_exports = css_exports;
@@ -0,0 +1,15 @@
1
+ import {
2
+ lineToLargeHump
3
+ } from "./chunk-XCDKXZFR.js";
4
+ import {
5
+ firstLower
6
+ } from "./chunk-4OBNLDTJ.js";
7
+
8
+ // packages/name/lineToSmallHump.ts
9
+ function lineToSmallHump(name) {
10
+ return firstLower(lineToLargeHump(name));
11
+ }
12
+
13
+ export {
14
+ lineToSmallHump
15
+ };
@@ -5,6 +5,19 @@ import {
5
5
  // packages/urls/getImportUrl.ts
6
6
  function getImportUrl(url, imp) {
7
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(
14
+ 0,
15
+ regs.index + 1
16
+ );
17
+ arr[1] = a + arr[1];
18
+ arr[2] = a + arr[2];
19
+ }
20
+ }
8
21
  const l = arr[1].split(/\\|\//).length - 1;
9
22
  let ds = ["./"];
10
23
  if (l > 0) {
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkHCEAYQHScjs = require('./chunk-HCEAYQHS.cjs');
4
+
5
+
6
+ var _chunkFP5ETUFZcjs = require('./chunk-FP5ETUFZ.cjs');
7
+
8
+
9
+ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
10
+
11
+ // packages/load/index.ts
12
+ var load_exports = {};
13
+ _chunk5AZGAKWRcjs.__export.call(void 0, load_exports, {
14
+ getSynch: () => _chunkHCEAYQHScjs.getSynch,
15
+ loadScript: () => _chunkFP5ETUFZcjs.loadScript
16
+ });
17
+
18
+
19
+
20
+ exports.load_exports = load_exports;
@@ -1,13 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/array/toggleArray.ts
2
2
  function toggleArray(arr, obj, id) {
3
- let varr = [];
3
+ const varr = [];
4
4
  let is = true;
5
5
  for (let index = 0; index < arr.length; index++) {
6
6
  const element = arr[index];
7
- if (element[id] === obj[id]) {
7
+ const vs = obj;
8
+ if (element[id] === vs[id]) {
8
9
  is = false;
9
10
  } else {
10
- varr.push(element);
11
+ varr.push(arr[index]);
11
12
  }
12
13
  }
13
14
  if (is) {
@@ -0,0 +1,13 @@
1
+ // packages/urls/getUrlCatalogueLast.ts
2
+ function getUrlCatalogueLast(str) {
3
+ const reg = /(\\|\/)([^\\|\/]+)(\\|\/)?(([^\\|\/]+)(\.[a-z|A-Z]+))?$/g;
4
+ const arr = reg.exec(str);
5
+ if (arr && arr.length > 0) {
6
+ return arr[2];
7
+ }
8
+ return "";
9
+ }
10
+
11
+ export {
12
+ getUrlCatalogueLast
13
+ };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  humpToLine
3
3
  } from "./chunk-J7CICTHH.js";
4
- import {
5
- lineToLargeHump
6
- } from "./chunk-2PY55D6T.js";
7
4
  import {
8
5
  lineToSmallHump
9
- } from "./chunk-O3RJ5M35.js";
6
+ } from "./chunk-AM67P3W7.js";
7
+ import {
8
+ lineToLargeHump
9
+ } from "./chunk-XCDKXZFR.js";
10
10
 
11
11
  // packages/name/getNames.ts
12
12
  function getNames(name) {
@@ -4,9 +4,12 @@ import {
4
4
  import {
5
5
  unmergeObject
6
6
  } from "./chunk-A6J46LQK.js";
7
+ import {
8
+ isObjectArray
9
+ } from "./chunk-SRR2GWC7.js";
7
10
  import {
8
11
  isObject
9
- } from "./chunk-WO6JQRTD.js";
12
+ } from "./chunk-MXY4W3K5.js";
10
13
  import {
11
14
  __export
12
15
  } from "./chunk-UICA3PK6.js";
@@ -15,6 +18,7 @@ import {
15
18
  var object_exports = {};
16
19
  __export(object_exports, {
17
20
  isObject: () => isObject,
21
+ isObjectArray: () => isObjectArray,
18
22
  mergeObject: () => mergeObject,
19
23
  unmergeObject: () => unmergeObject
20
24
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// 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,21 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/load/loadScript.ts
2
+ function loadScript(src, div) {
3
+ return new Promise((resolve) => {
4
+ const dom = document.createElement("script");
5
+ dom.src = src;
6
+ dom.type = "text/javascript";
7
+ dom.async = true;
8
+ dom.onload = () => {
9
+ resolve(void 0);
10
+ };
11
+ if (div) {
12
+ div.appendChild(dom);
13
+ } else {
14
+ document.body.appendChild(dom);
15
+ }
16
+ });
17
+ }
18
+
19
+
20
+
21
+ exports.loadScript = loadScript;
@@ -0,0 +1,18 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/array/duplicateRemoval.ts
2
+ function duplicateRemoval(arr, key) {
3
+ const ks = [];
4
+ const arrs = [];
5
+ for (let index = 0; index < arr.length; index++) {
6
+ const element = arr[index];
7
+ const v = element[key];
8
+ if (!ks.includes(v)) {
9
+ ks.push(v);
10
+ arrs.push(arr[index]);
11
+ }
12
+ }
13
+ return arrs;
14
+ }
15
+
16
+
17
+
18
+ exports.duplicateRemoval = duplicateRemoval;
@@ -0,0 +1,17 @@
1
+ // 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
+ export {
16
+ replaceAfter
17
+ };
@@ -1,13 +1,14 @@
1
1
  // packages/basic/array/toggleArray.ts
2
2
  function toggleArray(arr, obj, id) {
3
- let varr = [];
3
+ const varr = [];
4
4
  let is = true;
5
5
  for (let index = 0; index < arr.length; index++) {
6
6
  const element = arr[index];
7
- if (element[id] === obj[id]) {
7
+ const vs = obj;
8
+ if (element[id] === vs[id]) {
8
9
  is = false;
9
10
  } else {
10
- varr.push(element);
11
+ varr.push(arr[index]);
11
12
  }
12
13
  }
13
14
  if (is) {
@@ -0,0 +1,40 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/load/getSynch.ts
2
+ function getSynch() {
3
+ const synchLoads = [];
4
+ let adds = [];
5
+ let is = true;
6
+ let value;
7
+ const setLoad = (v) => {
8
+ v[0](...v[1]).then((v2) => {
9
+ adds = [];
10
+ value = v2;
11
+ for (; synchLoads.length > 0; ) {
12
+ const c = synchLoads.shift();
13
+ if (c) {
14
+ c(value);
15
+ }
16
+ }
17
+ }).catch(() => {
18
+ adds.shift();
19
+ if (adds.length > 0) {
20
+ setLoad(adds[0]);
21
+ }
22
+ });
23
+ };
24
+ return (callback, add, ...arr) => {
25
+ if (value) {
26
+ callback(value);
27
+ } else {
28
+ synchLoads.push(callback);
29
+ adds.push([add, arr]);
30
+ if (is) {
31
+ is = null;
32
+ setLoad(adds[0]);
33
+ }
34
+ }
35
+ };
36
+ }
37
+
38
+
39
+
40
+ exports.getSynch = getSynch;
@@ -5,6 +5,19 @@ var _chunkPW7RP73Jcjs = require('./chunk-PW7RP73J.cjs');
5
5
  // packages/urls/getImportUrl.ts
6
6
  function getImportUrl(url, imp) {
7
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(
14
+ 0,
15
+ regs.index + 1
16
+ );
17
+ arr[1] = a + arr[1];
18
+ arr[2] = a + arr[2];
19
+ }
20
+ }
8
21
  const l = arr[1].split(/\\|\//).length - 1;
9
22
  let ds = ["./"];
10
23
  if (l > 0) {
@@ -0,0 +1,24 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkZMG2MHGScjs = require('./chunk-ZMG2MHGS.cjs');
4
+
5
+
6
+ var _chunkP3HC3D2Hcjs = require('./chunk-P3HC3D2H.cjs');
7
+
8
+
9
+ var _chunk5JCMM6YGcjs = require('./chunk-5JCMM6YG.cjs');
10
+
11
+
12
+ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
13
+
14
+ // packages/basic/index.ts
15
+ var basic_exports = {};
16
+ _chunk5AZGAKWRcjs.__export.call(void 0, basic_exports, {
17
+ array: () => _chunkP3HC3D2Hcjs.array_exports,
18
+ object: () => _chunk5JCMM6YGcjs.object_exports,
19
+ string: () => _chunkZMG2MHGScjs.string_exports
20
+ });
21
+
22
+
23
+
24
+ exports.basic_exports = basic_exports;
@@ -0,0 +1,32 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkPAJDTMC5cjs = require('./chunk-PAJDTMC5.cjs');
4
+
5
+
6
+ var _chunk5UV36ZIWcjs = require('./chunk-5UV36ZIW.cjs');
7
+
8
+
9
+ var _chunkLTVXRDTDcjs = require('./chunk-LTVXRDTD.cjs');
10
+
11
+
12
+ var _chunkXHR36FJKcjs = require('./chunk-XHR36FJK.cjs');
13
+
14
+
15
+ var _chunkWI55O3IVcjs = require('./chunk-WI55O3IV.cjs');
16
+
17
+
18
+ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
19
+
20
+ // packages/name/index.ts
21
+ var name_exports = {};
22
+ _chunk5AZGAKWRcjs.__export.call(void 0, name_exports, {
23
+ getComponentNames: () => _chunkPAJDTMC5cjs.getComponentNames,
24
+ getNames: () => _chunk5UV36ZIWcjs.getNames,
25
+ humpToLine: () => _chunkLTVXRDTDcjs.humpToLine,
26
+ lineToLargeHump: () => _chunkWI55O3IVcjs.lineToLargeHump,
27
+ lineToSmallHump: () => _chunkXHR36FJKcjs.lineToSmallHump
28
+ });
29
+
30
+
31
+
32
+ exports.name_exports = name_exports;
@@ -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;