diginext-utils 2.0.33 → 2.0.36

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 (359) hide show
  1. package/dist/Checker.d.ts +3 -4
  2. package/dist/Checker.js +32 -52
  3. package/dist/Checker.js.map +1 -0
  4. package/dist/EventDispatcher.d.ts +3 -3
  5. package/dist/EventDispatcher.js +52 -77
  6. package/dist/EventDispatcher.js.map +1 -0
  7. package/dist/FileUpload.d.ts +3 -3
  8. package/dist/FileUpload.js +65 -85
  9. package/dist/FileUpload.js.map +1 -0
  10. package/dist/Slug.d.ts +3 -4
  11. package/dist/Slug.js +334 -354
  12. package/dist/Slug.js.map +1 -0
  13. package/dist/Timer.d.ts +4 -1
  14. package/dist/Timer.js +9 -33
  15. package/dist/Timer.js.map +1 -0
  16. package/dist/Validation.d.ts +2 -3
  17. package/dist/Validation.js +39 -56
  18. package/dist/Validation.js.map +1 -0
  19. package/dist/array.d.ts +113 -1
  20. package/dist/array.js +297 -277
  21. package/dist/array.js.map +1 -0
  22. package/dist/color.d.ts +8 -9
  23. package/dist/color.js +89 -106
  24. package/dist/color.js.map +1 -0
  25. package/dist/console/enableConsole.d.ts +2 -1
  26. package/dist/console/enableConsole.js +14 -42
  27. package/dist/console/enableConsole.js.map +1 -0
  28. package/dist/console/index.d.ts +11 -2
  29. package/dist/console/index.js +18 -61
  30. package/dist/console/index.js.map +1 -0
  31. package/dist/console/log.d.ts +8 -9
  32. package/dist/console/log.js +45 -75
  33. package/dist/console/log.js.map +1 -0
  34. package/dist/device/browser.d.ts +5 -1
  35. package/dist/device/browser.js +38 -66
  36. package/dist/device/browser.js.map +1 -0
  37. package/dist/device/camera.d.ts +7 -1
  38. package/dist/device/camera.js +172 -190
  39. package/dist/device/camera.js.map +1 -0
  40. package/dist/device/index.d.ts +5 -1
  41. package/dist/device/index.js +225 -210
  42. package/dist/device/index.js.map +1 -0
  43. package/dist/device/os.d.ts +6 -7
  44. package/dist/device/os.js +38 -65
  45. package/dist/device/os.js.map +1 -0
  46. package/dist/file/createDir.d.ts +5 -1
  47. package/dist/file/createDir.js +16 -37
  48. package/dist/file/createDir.js.map +1 -0
  49. package/dist/file/fileMove.d.ts +4 -1
  50. package/dist/file/fileMove.js +33 -53
  51. package/dist/file/fileMove.js.map +1 -0
  52. package/dist/file/findFilesByExt.d.ts +13 -1
  53. package/dist/file/findFilesByExt.js +50 -69
  54. package/dist/file/findFilesByExt.js.map +1 -0
  55. package/dist/file/index.d.ts +4 -6
  56. package/dist/file/index.js +11 -106
  57. package/dist/file/index.js.map +1 -0
  58. package/dist/images/index.d.ts +2 -2
  59. package/dist/images/index.js +9 -132
  60. package/dist/images/index.js.map +1 -0
  61. package/dist/images/loadImage.d.ts +1 -3
  62. package/dist/images/loadImage.js +18 -42
  63. package/dist/images/loadImage.js.map +1 -0
  64. package/dist/images/resize.d.ts +2 -3
  65. package/dist/images/resize.js +38 -64
  66. package/dist/images/resize.js.map +1 -0
  67. package/dist/images/upload.d.ts +3 -4
  68. package/dist/images/upload.js +27 -132
  69. package/dist/images/upload.js.map +1 -0
  70. package/dist/index.d.ts +19 -30
  71. package/dist/index.js +63 -1353
  72. package/dist/index.js.map +1 -0
  73. package/dist/json.d.ts +3 -4
  74. package/dist/json.js +32 -52
  75. package/dist/json.js.map +1 -0
  76. package/dist/math/diffDate.d.ts +2 -3
  77. package/dist/math/diffDate.js +14 -36
  78. package/dist/math/diffDate.js.map +1 -0
  79. package/dist/math/index.d.ts +30 -3
  80. package/dist/math/index.js +93 -160
  81. package/dist/math/index.js.map +1 -0
  82. package/dist/math/positiveNumber.d.ts +2 -3
  83. package/dist/math/positiveNumber.js +17 -56
  84. package/dist/math/positiveNumber.js.map +1 -0
  85. package/dist/name/en.d.ts +3 -4
  86. package/dist/name/en.js +26 -44
  87. package/dist/name/en.js.map +1 -0
  88. package/dist/name/index.d.ts +12 -3
  89. package/dist/name/index.js +13 -88
  90. package/dist/name/index.js.map +1 -0
  91. package/dist/name/vi.d.ts +3 -4
  92. package/dist/name/vi.js +28 -66
  93. package/dist/name/vi.js.map +1 -0
  94. package/dist/object.d.ts +59 -1
  95. package/dist/object.js +80 -105
  96. package/dist/object.js.map +1 -0
  97. package/dist/permission/index.d.ts +2 -3
  98. package/dist/permission/index.js +7 -231
  99. package/dist/permission/index.js.map +1 -0
  100. package/dist/permission/requestCamera.d.ts +5 -1
  101. package/dist/permission/requestCamera.js +43 -54
  102. package/dist/permission/requestCamera.js.map +1 -0
  103. package/dist/permission/requestDeviceOrientationControl.d.ts +2 -1
  104. package/dist/permission/requestDeviceOrientationControl.js +39 -206
  105. package/dist/permission/requestDeviceOrientationControl.js.map +1 -0
  106. package/dist/response/index.d.ts +6 -7
  107. package/dist/response/index.js +52 -97
  108. package/dist/response/index.js.map +1 -0
  109. package/dist/string/formatNumber.d.ts +2 -3
  110. package/dist/string/formatNumber.js +15 -56
  111. package/dist/string/formatNumber.js.map +1 -0
  112. package/dist/string/generatePassword.d.ts +2 -3
  113. package/dist/string/generatePassword.js +24 -55
  114. package/dist/string/generatePassword.js.map +1 -0
  115. package/dist/string/generateUUID.d.ts +2 -3
  116. package/dist/string/generateUUID.js +37 -40
  117. package/dist/string/generateUUID.js.map +1 -0
  118. package/dist/string/index.d.ts +65 -6
  119. package/dist/string/index.js +161 -316
  120. package/dist/string/index.js.map +1 -0
  121. package/dist/string/makeDaySlug.d.ts +3 -4
  122. package/dist/string/makeDaySlug.js +23 -47
  123. package/dist/string/makeDaySlug.js.map +1 -0
  124. package/dist/string/random.d.ts +8 -9
  125. package/dist/string/random.js +25 -56
  126. package/dist/string/random.js.map +1 -0
  127. package/dist/string/trimNull.d.ts +2 -3
  128. package/dist/string/trimNull.js +21 -49
  129. package/dist/string/trimNull.js.map +1 -0
  130. package/dist/string/url.d.ts +36 -1
  131. package/dist/string/url.js +107 -126
  132. package/dist/string/url.js.map +1 -0
  133. package/esm/Checker.d.ts +8 -0
  134. package/esm/Checker.js +28 -0
  135. package/esm/Checker.js.map +1 -0
  136. package/esm/EventDispatcher.d.ts +13 -0
  137. package/esm/EventDispatcher.js +49 -0
  138. package/esm/EventDispatcher.js.map +1 -0
  139. package/esm/FileUpload.d.ts +12 -0
  140. package/esm/FileUpload.js +62 -0
  141. package/esm/FileUpload.js.map +1 -0
  142. package/esm/Slug.d.ts +9 -0
  143. package/esm/Slug.js +330 -0
  144. package/esm/Slug.js.map +1 -0
  145. package/esm/Timer.d.ts +4 -0
  146. package/esm/Timer.js +7 -0
  147. package/esm/Timer.js.map +1 -0
  148. package/esm/Validation.d.ts +5 -0
  149. package/esm/Validation.js +37 -0
  150. package/esm/Validation.js.map +1 -0
  151. package/esm/array.d.ts +113 -0
  152. package/esm/array.js +275 -0
  153. package/esm/array.js.map +1 -0
  154. package/esm/color.d.ts +23 -0
  155. package/esm/color.js +80 -0
  156. package/esm/color.js.map +1 -0
  157. package/esm/console/enableConsole.d.ts +2 -0
  158. package/esm/console/enableConsole.js +7 -0
  159. package/esm/console/enableConsole.js.map +1 -0
  160. package/esm/console/index.d.ts +11 -0
  161. package/esm/console/index.js +13 -0
  162. package/esm/console/index.js.map +1 -0
  163. package/esm/console/log.d.ts +15 -0
  164. package/esm/console/log.js +33 -0
  165. package/esm/console/log.js.map +1 -0
  166. package/esm/device/browser.d.ts +5 -0
  167. package/esm/device/browser.js +30 -0
  168. package/esm/device/browser.js.map +1 -0
  169. package/esm/device/camera.d.ts +7 -0
  170. package/esm/device/camera.js +168 -0
  171. package/esm/device/camera.js.map +1 -0
  172. package/esm/device/index.d.ts +5 -0
  173. package/esm/device/index.js +217 -0
  174. package/esm/device/index.js.map +1 -0
  175. package/esm/device/os.d.ts +11 -0
  176. package/esm/device/os.js +28 -0
  177. package/esm/device/os.js.map +1 -0
  178. package/esm/file/createDir.d.ts +5 -0
  179. package/esm/file/createDir.js +13 -0
  180. package/esm/file/createDir.js.map +1 -0
  181. package/esm/file/fileMove.d.ts +4 -0
  182. package/esm/file/fileMove.js +29 -0
  183. package/esm/file/fileMove.js.map +1 -0
  184. package/esm/file/findFilesByExt.d.ts +13 -0
  185. package/esm/file/findFilesByExt.js +46 -0
  186. package/esm/file/findFilesByExt.js.map +1 -0
  187. package/esm/file/index.d.ts +9 -0
  188. package/esm/file/index.js +6 -0
  189. package/esm/file/index.js.map +1 -0
  190. package/esm/images/index.d.ts +2 -0
  191. package/esm/images/index.js +4 -0
  192. package/esm/images/index.js.map +1 -0
  193. package/esm/images/loadImage.d.ts +1 -0
  194. package/esm/images/loadImage.js +15 -0
  195. package/esm/images/loadImage.js.map +1 -0
  196. package/esm/images/resize.d.ts +2 -0
  197. package/esm/images/resize.js +31 -0
  198. package/esm/images/resize.js.map +1 -0
  199. package/esm/images/upload.d.ts +10 -0
  200. package/esm/images/upload.js +20 -0
  201. package/esm/images/upload.js.map +1 -0
  202. package/esm/index.d.ts +37 -0
  203. package/esm/index.js +38 -0
  204. package/esm/index.js.map +1 -0
  205. package/esm/json.d.ts +8 -0
  206. package/esm/json.js +28 -0
  207. package/esm/json.js.map +1 -0
  208. package/esm/math/diffDate.d.ts +5 -0
  209. package/esm/math/diffDate.js +10 -0
  210. package/esm/math/diffDate.js.map +1 -0
  211. package/esm/math/index.d.ts +30 -0
  212. package/esm/math/index.js +78 -0
  213. package/esm/math/index.js.map +1 -0
  214. package/esm/math/positiveNumber.d.ts +2 -0
  215. package/esm/math/positiveNumber.js +13 -0
  216. package/esm/math/positiveNumber.js.map +1 -0
  217. package/esm/name/en.d.ts +5 -0
  218. package/esm/name/en.js +22 -0
  219. package/esm/name/en.js.map +1 -0
  220. package/esm/name/index.d.ts +12 -0
  221. package/esm/name/index.js +6 -0
  222. package/esm/name/index.js.map +1 -0
  223. package/esm/name/vi.d.ts +5 -0
  224. package/esm/name/vi.js +24 -0
  225. package/esm/name/vi.js.map +1 -0
  226. package/{dist/object-43aaaf92.d.ts → esm/object.d.ts} +9 -30
  227. package/esm/object.js +70 -0
  228. package/esm/object.js.map +1 -0
  229. package/esm/permission/index.d.ts +8 -0
  230. package/esm/permission/index.js +5 -0
  231. package/esm/permission/index.js.map +1 -0
  232. package/esm/permission/requestCamera.d.ts +5 -0
  233. package/esm/permission/requestCamera.js +39 -0
  234. package/esm/permission/requestCamera.js.map +1 -0
  235. package/esm/permission/requestDeviceOrientationControl.d.ts +2 -0
  236. package/esm/permission/requestDeviceOrientationControl.js +35 -0
  237. package/esm/permission/requestDeviceOrientationControl.js.map +1 -0
  238. package/esm/response/index.d.ts +49 -0
  239. package/esm/response/index.js +46 -0
  240. package/esm/response/index.js.map +1 -0
  241. package/esm/string/formatNumber.d.ts +6 -0
  242. package/esm/string/formatNumber.js +11 -0
  243. package/esm/string/formatNumber.js.map +1 -0
  244. package/esm/string/generatePassword.d.ts +9 -0
  245. package/esm/string/generatePassword.js +20 -0
  246. package/esm/string/generatePassword.js.map +1 -0
  247. package/esm/string/generateUUID.d.ts +2 -0
  248. package/esm/string/generateUUID.js +33 -0
  249. package/esm/string/generateUUID.js.map +1 -0
  250. package/esm/string/index.d.ts +65 -0
  251. package/esm/string/index.js +150 -0
  252. package/esm/string/index.js.map +1 -0
  253. package/esm/string/makeDaySlug.d.ts +31 -0
  254. package/esm/string/makeDaySlug.js +16 -0
  255. package/esm/string/makeDaySlug.js.map +1 -0
  256. package/esm/string/random.d.ts +14 -0
  257. package/esm/string/random.js +20 -0
  258. package/esm/string/random.js.map +1 -0
  259. package/esm/string/trimNull.d.ts +2 -0
  260. package/esm/string/trimNull.js +14 -0
  261. package/esm/string/trimNull.js.map +1 -0
  262. package/esm/string/url.d.ts +36 -0
  263. package/esm/string/url.js +97 -0
  264. package/esm/string/url.js.map +1 -0
  265. package/package.json +1 -1
  266. package/src/console/index.ts +2 -2
  267. package/src/string/url.ts +2 -2
  268. package/dist/Checker.mjs +0 -29
  269. package/dist/EventDispatcher.mjs +0 -54
  270. package/dist/FileUpload.mjs +0 -62
  271. package/dist/Slug.mjs +0 -331
  272. package/dist/Timer-7b0c4e7c.d.ts +0 -11
  273. package/dist/Timer.mjs +0 -7
  274. package/dist/Validation.mjs +0 -35
  275. package/dist/array-dc599632.d.ts +0 -158
  276. package/dist/array.mjs +0 -49
  277. package/dist/browser-8d042ffe.d.ts +0 -22
  278. package/dist/camera-1a859d72.d.ts +0 -15
  279. package/dist/chunk-5NTK5JAI.mjs +0 -57
  280. package/dist/chunk-5UEMANWE.mjs +0 -91
  281. package/dist/chunk-5ZOWNKSD.mjs +0 -166
  282. package/dist/chunk-6GNGTFNC.mjs +0 -118
  283. package/dist/chunk-7MK72U4O.mjs +0 -19
  284. package/dist/chunk-7XKT3AQX.mjs +0 -17
  285. package/dist/chunk-7ZCEZM7K.mjs +0 -41
  286. package/dist/chunk-AMBWJGSW.mjs +0 -151
  287. package/dist/chunk-C7S43KGB.mjs +0 -15
  288. package/dist/chunk-CJM7T7ON.mjs +0 -24
  289. package/dist/chunk-CKILLYAP.mjs +0 -16
  290. package/dist/chunk-DX7MUT3M.mjs +0 -51
  291. package/dist/chunk-EGUJQ5VF.mjs +0 -32
  292. package/dist/chunk-ETEIHDWU.mjs +0 -25
  293. package/dist/chunk-FJXSVGL7.mjs +0 -22
  294. package/dist/chunk-GJCAEOND.mjs +0 -20
  295. package/dist/chunk-GNJDIUYM.mjs +0 -40
  296. package/dist/chunk-IA7GINWD.mjs +0 -39
  297. package/dist/chunk-JEI7BOXY.mjs +0 -21
  298. package/dist/chunk-K4KENOE6.mjs +0 -20
  299. package/dist/chunk-KMERW6KS.mjs +0 -34
  300. package/dist/chunk-KPO3RH5G.mjs +0 -27
  301. package/dist/chunk-KWG5LYNK.mjs +0 -100
  302. package/dist/chunk-NUTQDHLQ.mjs +0 -40
  303. package/dist/chunk-O64XUDAH.mjs +0 -35
  304. package/dist/chunk-OYRPWQUA.mjs +0 -257
  305. package/dist/chunk-PNZ4KGXL.mjs +0 -56
  306. package/dist/chunk-QZYX26HT.mjs +0 -24
  307. package/dist/chunk-RDGP2CKM.mjs +0 -195
  308. package/dist/chunk-VFG5VU6S.mjs +0 -12
  309. package/dist/chunk-X3IMFCZG.mjs +0 -23
  310. package/dist/chunk-ZHNGZMRD.mjs +0 -17
  311. package/dist/color.mjs +0 -78
  312. package/dist/console/enableConsole.mjs +0 -9
  313. package/dist/console/index.mjs +0 -14
  314. package/dist/console/log.mjs +0 -19
  315. package/dist/createDir-220e0081.d.ts +0 -13
  316. package/dist/device/browser.mjs +0 -15
  317. package/dist/device/camera.mjs +0 -8
  318. package/dist/device/index.mjs +0 -15
  319. package/dist/device/os.mjs +0 -33
  320. package/dist/enableConsole-ddc24282.d.ts +0 -11
  321. package/dist/file/createDir.mjs +0 -7
  322. package/dist/file/fileMove.mjs +0 -7
  323. package/dist/file/findFilesByExt.mjs +0 -11
  324. package/dist/file/index.mjs +0 -17
  325. package/dist/fileMove-3a09e429.d.ts +0 -13
  326. package/dist/findFilesByExt-753e91d7.d.ts +0 -24
  327. package/dist/images/index.mjs +0 -15
  328. package/dist/images/loadImage.mjs +0 -21
  329. package/dist/images/resize.mjs +0 -9
  330. package/dist/images/upload.mjs +0 -14
  331. package/dist/index-1f738e52.d.ts +0 -22
  332. package/dist/index-22309f0c.d.ts +0 -23
  333. package/dist/index-6ae3c86b.d.ts +0 -63
  334. package/dist/index-c8fffc86.d.ts +0 -90
  335. package/dist/index-d652ed2c.d.ts +0 -26
  336. package/dist/index.mjs +0 -87
  337. package/dist/json.mjs +0 -29
  338. package/dist/math/diffDate.mjs +0 -9
  339. package/dist/math/index.mjs +0 -34
  340. package/dist/math/positiveNumber.mjs +0 -10
  341. package/dist/name/en.mjs +0 -9
  342. package/dist/name/index.mjs +0 -20
  343. package/dist/name/vi.mjs +0 -14
  344. package/dist/object.mjs +0 -21
  345. package/dist/permission/index.mjs +0 -15
  346. package/dist/permission/requestCamera.mjs +0 -9
  347. package/dist/permission/requestDeviceOrientationControl.mjs +0 -10
  348. package/dist/requestCamera-32b7dfc7.d.ts +0 -14
  349. package/dist/requestDeviceOrientationControl-b6458660.d.ts +0 -11
  350. package/dist/response/index.mjs +0 -16
  351. package/dist/string/formatNumber.mjs +0 -10
  352. package/dist/string/generatePassword.mjs +0 -10
  353. package/dist/string/generateUUID.mjs +0 -9
  354. package/dist/string/index.mjs +0 -31
  355. package/dist/string/makeDaySlug.mjs +0 -9
  356. package/dist/string/random.mjs +0 -19
  357. package/dist/string/trimNull.mjs +0 -9
  358. package/dist/string/url.mjs +0 -22
  359. package/dist/url-60657387.d.ts +0 -57
@@ -1,21 +0,0 @@
1
- import "../chunk-ZHNGZMRD.mjs";
2
-
3
- // src/images/loadImage.ts
4
- async function loadImage(list) {
5
- if (!(list == null ? void 0 : list.length))
6
- return;
7
- return await Promise.all(
8
- list.map((url) => {
9
- return new Promise((resolve, reject) => {
10
- const img = new Image();
11
- img.onload = resolve;
12
- img.onerror = reject;
13
- img.src = url;
14
- return;
15
- });
16
- })
17
- );
18
- }
19
- export {
20
- loadImage as default
21
- };
@@ -1,9 +0,0 @@
1
- import {
2
- resize,
3
- resize_default
4
- } from "../chunk-KMERW6KS.mjs";
5
- import "../chunk-ZHNGZMRD.mjs";
6
- export {
7
- resize_default as default,
8
- resize
9
- };
@@ -1,14 +0,0 @@
1
- import {
2
- upload,
3
- upload_default
4
- } from "../chunk-EGUJQ5VF.mjs";
5
- import "../chunk-5NTK5JAI.mjs";
6
- import "../chunk-KMERW6KS.mjs";
7
- import "../chunk-GNJDIUYM.mjs";
8
- import "../chunk-KWG5LYNK.mjs";
9
- import "../chunk-5UEMANWE.mjs";
10
- import "../chunk-ZHNGZMRD.mjs";
11
- export {
12
- upload_default as default,
13
- upload
14
- };
@@ -1,22 +0,0 @@
1
- declare const isIos: () => boolean | null;
2
- declare const isAndroid: () => boolean | null;
3
- declare const isTablet: () => boolean | null;
4
- declare const isMobile: () => boolean | null;
5
- declare const checkOS: () => any;
6
-
7
- declare const device_checkOS: typeof checkOS;
8
- declare const device_isAndroid: typeof isAndroid;
9
- declare const device_isIos: typeof isIos;
10
- declare const device_isMobile: typeof isMobile;
11
- declare const device_isTablet: typeof isTablet;
12
- declare namespace device {
13
- export {
14
- device_checkOS as checkOS,
15
- device_isAndroid as isAndroid,
16
- device_isIos as isIos,
17
- device_isMobile as isMobile,
18
- device_isTablet as isTablet,
19
- };
20
- }
21
-
22
- export { isAndroid as a, isTablet as b, isMobile as c, device as d, checkOS as e, isIos as i };
@@ -1,23 +0,0 @@
1
- import NameEN, { generateName } from './name/en.js';
2
- import NameVI from './name/vi.js';
3
-
4
- declare const xname: {
5
- NameEN: {
6
- generateName: typeof generateName;
7
- };
8
- NameVI: {
9
- generateName: (useGender?: boolean, male?: boolean) => any;
10
- };
11
- };
12
-
13
- declare const xname$1_NameEN: typeof NameEN;
14
- declare const xname$1_NameVI: typeof NameVI;
15
- declare namespace xname$1 {
16
- export {
17
- xname$1_NameEN as NameEN,
18
- xname$1_NameVI as NameVI,
19
- xname as default,
20
- };
21
- }
22
-
23
- export { xname as a, xname$1 as x };
@@ -1,63 +0,0 @@
1
- import diffDate from './math/diffDate.js';
2
- import positiveNumber from './math/positiveNumber.js';
3
-
4
- declare const randRound: (number: number) => number;
5
- declare const rand: (number: number) => number;
6
- declare const randHalt: (number: number) => number;
7
- declare const randInt: (low: number, high: number) => number;
8
- declare const randFloat: (low: number, high: number) => number;
9
- declare const degToRad: (degrees: number) => number;
10
- declare const radToDeg: (radians: number) => number;
11
- declare const clamp: (value: number, min: number, max: number) => number;
12
- declare const degBetweenPoints360: (cx: number, cy: number, ex: number, ey: number) => number;
13
- declare const degBetweenPoints: (cx: number, cy: number, ex: number, ey: number) => number;
14
- declare const angleBetweenPoints: (cx: number, cy: number, ex: number, ey: number) => number;
15
- declare const distance2Point: (x1: number, y1: number, x2: number, y2: number) => number;
16
-
17
- declare const xmath: {
18
- rand: (number: number) => number;
19
- randRound: (number: number) => number;
20
- randHalt: (number: number) => number;
21
- randInt: (low: number, high: number) => number;
22
- randFloat: (low: number, high: number) => number;
23
- degToRad: (degrees: number) => number;
24
- radToDeg: (radians: number) => number;
25
- degBetweenPoints360: (cx: number, cy: number, ex: number, ey: number) => number;
26
- degBetweenPoints: (cx: number, cy: number, ex: number, ey: number) => number;
27
- angleBetweenPoints: (cx: number, cy: number, ex: number, ey: number) => number;
28
- distance2Point: (x1: number, y1: number, x2: number, y2: number) => number;
29
- diffDate: typeof diffDate;
30
- positiveNumber: typeof positiveNumber;
31
- };
32
-
33
- declare const math_angleBetweenPoints: typeof angleBetweenPoints;
34
- declare const math_clamp: typeof clamp;
35
- declare const math_degBetweenPoints: typeof degBetweenPoints;
36
- declare const math_degBetweenPoints360: typeof degBetweenPoints360;
37
- declare const math_degToRad: typeof degToRad;
38
- declare const math_distance2Point: typeof distance2Point;
39
- declare const math_radToDeg: typeof radToDeg;
40
- declare const math_rand: typeof rand;
41
- declare const math_randFloat: typeof randFloat;
42
- declare const math_randHalt: typeof randHalt;
43
- declare const math_randInt: typeof randInt;
44
- declare const math_randRound: typeof randRound;
45
- declare namespace math {
46
- export {
47
- math_angleBetweenPoints as angleBetweenPoints,
48
- math_clamp as clamp,
49
- xmath as default,
50
- math_degBetweenPoints as degBetweenPoints,
51
- math_degBetweenPoints360 as degBetweenPoints360,
52
- math_degToRad as degToRad,
53
- math_distance2Point as distance2Point,
54
- math_radToDeg as radToDeg,
55
- math_rand as rand,
56
- math_randFloat as randFloat,
57
- math_randHalt as randHalt,
58
- math_randInt as randInt,
59
- math_randRound as randRound,
60
- };
61
- }
62
-
63
- export { rand as a, randHalt as b, randInt as c, randFloat as d, degToRad as e, radToDeg as f, clamp as g, degBetweenPoints360 as h, degBetweenPoints as i, angleBetweenPoints as j, distance2Point as k, math as m, randRound as r, xmath as x };
@@ -1,90 +0,0 @@
1
- import { makeDaySlug } from './string/makeDaySlug.js';
2
- import generateUUID from './string/generateUUID.js';
3
- import formatNumber from './string/formatNumber.js';
4
- import generatePassword from './string/generatePassword.js';
5
- import trimNull from './string/trimNull.js';
6
-
7
- /**
8
- * Get string between str1 and str2 from text
9
- */
10
- declare const getBetween: (text: string, str1: string, str2?: string) => string;
11
- /**
12
- * Convert object to string
13
- */
14
- declare const makeString: (object?: any) => string;
15
- /**
16
- * toUpperCase
17
- */
18
- declare const toUpperCase: (str?: string) => string;
19
- /**
20
- * toLowerCase
21
- */
22
- declare const toLowerCase: (str?: string) => string;
23
- /**
24
- * toLowerCase
25
- * @param {*} str
26
- * @return {string}
27
- */
28
- declare const titleize: (str?: string) => string;
29
- /**
30
- * Convert only first charater to UpperCase
31
- */
32
- declare const capitalize: (str: string | any, lowercaseRest?: number) => any;
33
- /**
34
- * Convert first character from every single words to UpperCase
35
- */
36
- declare const capitalizeName: (str: string) => string;
37
- declare const clearUnicodeCharacters: (s: string, opt?: {
38
- [key: string]: any;
39
- }) => string;
40
-
41
- declare const xstring: {
42
- getBetween: (text: string, str1: string, str2?: string) => string;
43
- makeString: (object?: any) => string;
44
- makeDaySlug: typeof makeDaySlug;
45
- toUpperCase: (str?: string) => string;
46
- toLowerCase: (str?: string) => string;
47
- titleize: (str?: string) => string;
48
- capitalize: (str: string | any, lowercaseRest?: number) => any;
49
- capitalizeName: (str: string) => string;
50
- clearUnicodeCharacters: (s: string, opt?: {
51
- [key: string]: any;
52
- }) => string;
53
- generateUUID: typeof generateUUID;
54
- randAllCharacterByLength: (length?: number) => string;
55
- randomStringByLength: (length: number, str?: string) => string;
56
- formatNumber: typeof formatNumber;
57
- generatePassword: typeof generatePassword;
58
- trimNull: typeof trimNull;
59
- addQueryParam: (_url: string, key: string, value: any) => string;
60
- getUrlParams: (parameter: string, staticURL?: string | undefined, decode?: boolean) => string | false | undefined;
61
- isLink: (str: string) => boolean;
62
- getFileNameWithoutExtension: (url: string) => string | undefined;
63
- getFileNameWithExtension: (url: string) => string;
64
- getFileExtension: (url: string) => string | undefined;
65
- isImage: (url: string) => boolean;
66
- };
67
-
68
- declare const string_capitalize: typeof capitalize;
69
- declare const string_capitalizeName: typeof capitalizeName;
70
- declare const string_clearUnicodeCharacters: typeof clearUnicodeCharacters;
71
- declare const string_getBetween: typeof getBetween;
72
- declare const string_makeString: typeof makeString;
73
- declare const string_titleize: typeof titleize;
74
- declare const string_toLowerCase: typeof toLowerCase;
75
- declare const string_toUpperCase: typeof toUpperCase;
76
- declare namespace string {
77
- export {
78
- string_capitalize as capitalize,
79
- string_capitalizeName as capitalizeName,
80
- string_clearUnicodeCharacters as clearUnicodeCharacters,
81
- xstring as default,
82
- string_getBetween as getBetween,
83
- string_makeString as makeString,
84
- string_titleize as titleize,
85
- string_toLowerCase as toLowerCase,
86
- string_toUpperCase as toUpperCase,
87
- };
88
- }
89
-
90
- export { toLowerCase as a, titleize as b, capitalize as c, capitalizeName as d, clearUnicodeCharacters as e, getBetween as g, makeString as m, string as s, toUpperCase as t, xstring as x };
@@ -1,26 +0,0 @@
1
- import { a as enableConsole } from './enableConsole-ddc24282.js';
2
-
3
- declare const disableConsole: (params: any) => void;
4
- declare const removeConsole: (params: any) => void;
5
- declare const showCredit: (params: any) => void;
6
-
7
- declare const xconsole: {
8
- enableConsole: typeof enableConsole;
9
- disableConsole: (params: any) => void;
10
- removeConsole: (params: any) => void;
11
- showCredit: (params: any) => void;
12
- };
13
-
14
- declare const console_disableConsole: typeof disableConsole;
15
- declare const console_removeConsole: typeof removeConsole;
16
- declare const console_showCredit: typeof showCredit;
17
- declare namespace console {
18
- export {
19
- xconsole as default,
20
- console_disableConsole as disableConsole,
21
- console_removeConsole as removeConsole,
22
- console_showCredit as showCredit,
23
- };
24
- }
25
-
26
- export { console as c, disableConsole as d, removeConsole as r, showCredit as s, xconsole as x };
package/dist/index.mjs DELETED
@@ -1,87 +0,0 @@
1
- import {
2
- name_exports
3
- } from "./chunk-CJM7T7ON.mjs";
4
- import "./chunk-K4KENOE6.mjs";
5
- import "./chunk-ETEIHDWU.mjs";
6
- import {
7
- string_exports
8
- } from "./chunk-5ZOWNKSD.mjs";
9
- import "./chunk-7XKT3AQX.mjs";
10
- import "./chunk-7MK72U4O.mjs";
11
- import "./chunk-C7S43KGB.mjs";
12
- import "./chunk-QZYX26HT.mjs";
13
- import "./chunk-KPO3RH5G.mjs";
14
- import "./chunk-CKILLYAP.mjs";
15
- import {
16
- requestDeviceOrientationControl_exports
17
- } from "./chunk-7ZCEZM7K.mjs";
18
- import {
19
- device_exports
20
- } from "./chunk-RDGP2CKM.mjs";
21
- import {
22
- createDir_exports
23
- } from "./chunk-X3IMFCZG.mjs";
24
- import {
25
- fileMove_exports
26
- } from "./chunk-IA7GINWD.mjs";
27
- import {
28
- findFilesByExt_exports
29
- } from "./chunk-PNZ4KGXL.mjs";
30
- import {
31
- url_exports
32
- } from "./chunk-KWG5LYNK.mjs";
33
- import {
34
- Timer_exports
35
- } from "./chunk-GJCAEOND.mjs";
36
- import {
37
- console_exports
38
- } from "./chunk-O64XUDAH.mjs";
39
- import {
40
- enableConsole_exports
41
- } from "./chunk-FJXSVGL7.mjs";
42
- import {
43
- browser_exports
44
- } from "./chunk-DX7MUT3M.mjs";
45
- import {
46
- camera_exports
47
- } from "./chunk-AMBWJGSW.mjs";
48
- import {
49
- requestCamera_exports
50
- } from "./chunk-NUTQDHLQ.mjs";
51
- import {
52
- array_exports
53
- } from "./chunk-OYRPWQUA.mjs";
54
- import {
55
- math_exports
56
- } from "./chunk-6GNGTFNC.mjs";
57
- import "./chunk-VFG5VU6S.mjs";
58
- import "./chunk-JEI7BOXY.mjs";
59
- import {
60
- object_exports
61
- } from "./chunk-5UEMANWE.mjs";
62
- import "./chunk-ZHNGZMRD.mjs";
63
-
64
- // src/index.ts
65
- var utils = {
66
- xname: name_exports,
67
- array: array_exports,
68
- device: device_exports,
69
- console: console_exports,
70
- browser: browser_exports,
71
- camera: camera_exports,
72
- math: math_exports,
73
- object: object_exports,
74
- string: string_exports,
75
- url: url_exports,
76
- createDir: createDir_exports,
77
- fileMove: fileMove_exports,
78
- findFilesByExt: findFilesByExt_exports,
79
- Timer: Timer_exports,
80
- requestCamera: requestCamera_exports,
81
- requestDeviceOrientationControl: requestDeviceOrientationControl_exports,
82
- enableConsole: enableConsole_exports
83
- };
84
- var src_default = utils;
85
- export {
86
- src_default as default
87
- };
package/dist/json.mjs DELETED
@@ -1,29 +0,0 @@
1
- import "./chunk-ZHNGZMRD.mjs";
2
-
3
- // src/json.ts
4
- var isValid = (content) => {
5
- if (typeof content == "object") {
6
- try {
7
- content = JSON.stringify(content);
8
- } catch (err) {
9
- return false;
10
- }
11
- }
12
- if (typeof content == "string") {
13
- try {
14
- content = JSON.parse(content);
15
- } catch (err) {
16
- return false;
17
- }
18
- }
19
- if (typeof content != "object") {
20
- return false;
21
- }
22
- return true;
23
- };
24
- var xjson = { isValid };
25
- var json_default = xjson;
26
- export {
27
- json_default as default,
28
- isValid
29
- };
@@ -1,9 +0,0 @@
1
- import {
2
- diffDate,
3
- diffDate_default
4
- } from "../chunk-VFG5VU6S.mjs";
5
- import "../chunk-ZHNGZMRD.mjs";
6
- export {
7
- diffDate_default as default,
8
- diffDate
9
- };
@@ -1,34 +0,0 @@
1
- import {
2
- angleBetweenPoints,
3
- clamp,
4
- degBetweenPoints,
5
- degBetweenPoints360,
6
- degToRad,
7
- distance2Point,
8
- math_default,
9
- radToDeg,
10
- rand,
11
- randFloat,
12
- randHalt,
13
- randInt,
14
- randRound
15
- } from "../chunk-6GNGTFNC.mjs";
16
- import "../chunk-VFG5VU6S.mjs";
17
- import "../chunk-JEI7BOXY.mjs";
18
- import "../chunk-5UEMANWE.mjs";
19
- import "../chunk-ZHNGZMRD.mjs";
20
- export {
21
- angleBetweenPoints,
22
- clamp,
23
- math_default as default,
24
- degBetweenPoints,
25
- degBetweenPoints360,
26
- degToRad,
27
- distance2Point,
28
- radToDeg,
29
- rand,
30
- randFloat,
31
- randHalt,
32
- randInt,
33
- randRound
34
- };
@@ -1,10 +0,0 @@
1
- import {
2
- positiveNumber,
3
- positiveNumber_default
4
- } from "../chunk-JEI7BOXY.mjs";
5
- import "../chunk-5UEMANWE.mjs";
6
- import "../chunk-ZHNGZMRD.mjs";
7
- export {
8
- positiveNumber_default as default,
9
- positiveNumber
10
- };
package/dist/name/en.mjs DELETED
@@ -1,9 +0,0 @@
1
- import {
2
- en_default,
3
- generateName
4
- } from "../chunk-K4KENOE6.mjs";
5
- import "../chunk-ZHNGZMRD.mjs";
6
- export {
7
- en_default as default,
8
- generateName
9
- };
@@ -1,20 +0,0 @@
1
- import {
2
- name_default
3
- } from "../chunk-CJM7T7ON.mjs";
4
- import {
5
- en_default
6
- } from "../chunk-K4KENOE6.mjs";
7
- import {
8
- vi_default
9
- } from "../chunk-ETEIHDWU.mjs";
10
- import "../chunk-OYRPWQUA.mjs";
11
- import "../chunk-6GNGTFNC.mjs";
12
- import "../chunk-VFG5VU6S.mjs";
13
- import "../chunk-JEI7BOXY.mjs";
14
- import "../chunk-5UEMANWE.mjs";
15
- import "../chunk-ZHNGZMRD.mjs";
16
- export {
17
- en_default as NameEN,
18
- vi_default as NameVI,
19
- name_default as default
20
- };
package/dist/name/vi.mjs DELETED
@@ -1,14 +0,0 @@
1
- import {
2
- generateName,
3
- vi_default
4
- } from "../chunk-ETEIHDWU.mjs";
5
- import "../chunk-OYRPWQUA.mjs";
6
- import "../chunk-6GNGTFNC.mjs";
7
- import "../chunk-VFG5VU6S.mjs";
8
- import "../chunk-JEI7BOXY.mjs";
9
- import "../chunk-5UEMANWE.mjs";
10
- import "../chunk-ZHNGZMRD.mjs";
11
- export {
12
- vi_default as default,
13
- generateName
14
- };
package/dist/object.mjs DELETED
@@ -1,21 +0,0 @@
1
- import {
2
- isNull,
3
- iterate,
4
- objectToArray,
5
- object_default,
6
- toArray,
7
- toBool,
8
- toFloat,
9
- toInt
10
- } from "./chunk-5UEMANWE.mjs";
11
- import "./chunk-ZHNGZMRD.mjs";
12
- export {
13
- object_default as default,
14
- isNull,
15
- iterate,
16
- objectToArray,
17
- toArray,
18
- toBool,
19
- toFloat,
20
- toInt
21
- };
@@ -1,15 +0,0 @@
1
- import {
2
- requestDeviceOrientationControl
3
- } from "../chunk-7ZCEZM7K.mjs";
4
- import "../chunk-RDGP2CKM.mjs";
5
- import {
6
- requestCamera
7
- } from "../chunk-NUTQDHLQ.mjs";
8
- import "../chunk-ZHNGZMRD.mjs";
9
-
10
- // src/permission/index.ts
11
- var permission = { requestCamera, requestDeviceOrientationControl };
12
- var permission_default = permission;
13
- export {
14
- permission_default as default
15
- };
@@ -1,9 +0,0 @@
1
- import {
2
- requestCamera,
3
- requestCamera_default
4
- } from "../chunk-NUTQDHLQ.mjs";
5
- import "../chunk-ZHNGZMRD.mjs";
6
- export {
7
- requestCamera_default as default,
8
- requestCamera
9
- };
@@ -1,10 +0,0 @@
1
- import {
2
- requestDeviceOrientationControl,
3
- requestDeviceOrientationControl_default
4
- } from "../chunk-7ZCEZM7K.mjs";
5
- import "../chunk-RDGP2CKM.mjs";
6
- import "../chunk-ZHNGZMRD.mjs";
7
- export {
8
- requestDeviceOrientationControl_default as default,
9
- requestDeviceOrientationControl
10
- };
@@ -1,14 +0,0 @@
1
- declare const requestCamera: ({ audio, video }: {
2
- audio?: boolean | undefined;
3
- video?: boolean | undefined;
4
- }) => false | Promise<unknown>;
5
-
6
- declare const requestCamera$1_requestCamera: typeof requestCamera;
7
- declare namespace requestCamera$1 {
8
- export {
9
- requestCamera as default,
10
- requestCamera$1_requestCamera as requestCamera,
11
- };
12
- }
13
-
14
- export { requestCamera as a, requestCamera$1 as r };
@@ -1,11 +0,0 @@
1
- declare const requestDeviceOrientationControl: () => false | Promise<unknown>;
2
-
3
- declare const requestDeviceOrientationControl$1_requestDeviceOrientationControl: typeof requestDeviceOrientationControl;
4
- declare namespace requestDeviceOrientationControl$1 {
5
- export {
6
- requestDeviceOrientationControl as default,
7
- requestDeviceOrientationControl$1_requestDeviceOrientationControl as requestDeviceOrientationControl,
8
- };
9
- }
10
-
11
- export { requestDeviceOrientationControl as a, requestDeviceOrientationControl$1 as r };
@@ -1,16 +0,0 @@
1
- import {
2
- Response,
3
- getFailedResponse,
4
- getResponse,
5
- getSuccessResponse,
6
- response_default
7
- } from "../chunk-5NTK5JAI.mjs";
8
- import "../chunk-GNJDIUYM.mjs";
9
- import "../chunk-ZHNGZMRD.mjs";
10
- export {
11
- Response,
12
- response_default as default,
13
- getFailedResponse,
14
- getResponse,
15
- getSuccessResponse
16
- };
@@ -1,10 +0,0 @@
1
- import {
2
- formatNumber,
3
- formatNumber_default
4
- } from "../chunk-C7S43KGB.mjs";
5
- import "../chunk-5UEMANWE.mjs";
6
- import "../chunk-ZHNGZMRD.mjs";
7
- export {
8
- formatNumber_default as default,
9
- formatNumber
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- generatePassword,
3
- generatePassword_default
4
- } from "../chunk-QZYX26HT.mjs";
5
- import "../chunk-KPO3RH5G.mjs";
6
- import "../chunk-ZHNGZMRD.mjs";
7
- export {
8
- generatePassword_default as default,
9
- generatePassword
10
- };
@@ -1,9 +0,0 @@
1
- import {
2
- generateUUID,
3
- generateUUID_default
4
- } from "../chunk-CKILLYAP.mjs";
5
- import "../chunk-ZHNGZMRD.mjs";
6
- export {
7
- generateUUID_default as default,
8
- generateUUID
9
- };
@@ -1,31 +0,0 @@
1
- import {
2
- capitalize,
3
- capitalizeName,
4
- clearUnicodeCharacters,
5
- getBetween,
6
- makeString,
7
- string_default,
8
- titleize,
9
- toLowerCase,
10
- toUpperCase
11
- } from "../chunk-5ZOWNKSD.mjs";
12
- import "../chunk-7XKT3AQX.mjs";
13
- import "../chunk-7MK72U4O.mjs";
14
- import "../chunk-C7S43KGB.mjs";
15
- import "../chunk-QZYX26HT.mjs";
16
- import "../chunk-KPO3RH5G.mjs";
17
- import "../chunk-CKILLYAP.mjs";
18
- import "../chunk-KWG5LYNK.mjs";
19
- import "../chunk-5UEMANWE.mjs";
20
- import "../chunk-ZHNGZMRD.mjs";
21
- export {
22
- capitalize,
23
- capitalizeName,
24
- clearUnicodeCharacters,
25
- string_default as default,
26
- getBetween,
27
- makeString,
28
- titleize,
29
- toLowerCase,
30
- toUpperCase
31
- };