diginext-utils 2.1.23 → 2.1.25

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 (107) hide show
  1. package/dist/gameboi/index.d.ts +1 -1
  2. package/dist/gameboi/index.js +4 -4
  3. package/dist/gameboi/index.js.map +1 -1
  4. package/esm/gameboi/index.d.ts +1 -1
  5. package/esm/gameboi/index.js +4 -4
  6. package/esm/gameboi/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/dist/Checker.mjs +0 -29
  9. package/dist/EventDispatcher.mjs +0 -54
  10. package/dist/FileUpload.mjs +0 -62
  11. package/dist/Slug.mjs +0 -9
  12. package/dist/Timer-7b0c4e7c.d.ts +0 -11
  13. package/dist/Timer.mjs +0 -7
  14. package/dist/Validation.mjs +0 -35
  15. package/dist/array-c38eff4c.d.ts +0 -158
  16. package/dist/array.mjs +0 -49
  17. package/dist/browser-8d042ffe.d.ts +0 -22
  18. package/dist/camera-1a859d72.d.ts +0 -15
  19. package/dist/chunk-24DHBJAC.mjs +0 -35
  20. package/dist/chunk-32BJ2V3H.mjs +0 -195
  21. package/dist/chunk-32PJ3FML.mjs +0 -57
  22. package/dist/chunk-3OYOTSDB.mjs +0 -339
  23. package/dist/chunk-4CWVMQ53.mjs +0 -167
  24. package/dist/chunk-4VQ25N7H.mjs +0 -43
  25. package/dist/chunk-6OZHYD5H.mjs +0 -91
  26. package/dist/chunk-76AY2CWV.mjs +0 -22
  27. package/dist/chunk-7MK72U4O.mjs +0 -19
  28. package/dist/chunk-7SOQVGCL.mjs +0 -12
  29. package/dist/chunk-7XKT3AQX.mjs +0 -17
  30. package/dist/chunk-AT5ZUBQL.mjs +0 -151
  31. package/dist/chunk-CKILLYAP.mjs +0 -16
  32. package/dist/chunk-D5JDP7JB.mjs +0 -56
  33. package/dist/chunk-DEOVENCJ.mjs +0 -15
  34. package/dist/chunk-FILFH56Y.mjs +0 -21
  35. package/dist/chunk-FTXB3IBS.mjs +0 -20
  36. package/dist/chunk-GJMNV2OC.mjs +0 -35
  37. package/dist/chunk-GNJDIUYM.mjs +0 -40
  38. package/dist/chunk-HN4EHJ2H.mjs +0 -39
  39. package/dist/chunk-HTAKHCLC.mjs +0 -43
  40. package/dist/chunk-JAP2EUEW.mjs +0 -86
  41. package/dist/chunk-JFASFX5Y.mjs +0 -16
  42. package/dist/chunk-JIMOWRMS.mjs +0 -118
  43. package/dist/chunk-K4KENOE6.mjs +0 -20
  44. package/dist/chunk-LGBBKRBU.mjs +0 -40
  45. package/dist/chunk-PMJLVOEM.mjs +0 -25
  46. package/dist/chunk-PSVXSTS4.mjs +0 -51
  47. package/dist/chunk-SNYWQI35.mjs +0 -41
  48. package/dist/chunk-TV4YHUBU.mjs +0 -23
  49. package/dist/chunk-UHUY6K7N.mjs +0 -24
  50. package/dist/chunk-UZ7BFUDR.mjs +0 -258
  51. package/dist/chunk-YLZC36RI.mjs +0 -32
  52. package/dist/chunk-ZNIXVHZT.mjs +0 -24
  53. package/dist/color.mjs +0 -85
  54. package/dist/console/enableConsole.mjs +0 -9
  55. package/dist/console/index.mjs +0 -14
  56. package/dist/console/log.mjs +0 -19
  57. package/dist/createDir-220e0081.d.ts +0 -13
  58. package/dist/device/browser.mjs +0 -15
  59. package/dist/device/camera.mjs +0 -8
  60. package/dist/device/index.mjs +0 -15
  61. package/dist/device/os.mjs +0 -33
  62. package/dist/enableConsole-ddc24282.d.ts +0 -11
  63. package/dist/file/createDir.mjs +0 -7
  64. package/dist/file/fileMove.mjs +0 -7
  65. package/dist/file/findFilesByExt.mjs +0 -11
  66. package/dist/file/index.mjs +0 -17
  67. package/dist/fileMove-3a09e429.d.ts +0 -13
  68. package/dist/findFilesByExt-753e91d7.d.ts +0 -24
  69. package/dist/gameboi/index.mjs +0 -65
  70. package/dist/images/downloadByUrl.mjs +0 -53
  71. package/dist/images/index.mjs +0 -14
  72. package/dist/images/loadImage.mjs +0 -21
  73. package/dist/images/resize.mjs +0 -9
  74. package/dist/images/upload.mjs +0 -13
  75. package/dist/index-1e114d55.d.ts +0 -26
  76. package/dist/index-1f738e52.d.ts +0 -22
  77. package/dist/index-22309f0c.d.ts +0 -23
  78. package/dist/index-3eeb7834.d.ts +0 -90
  79. package/dist/index-6ae3c86b.d.ts +0 -63
  80. package/dist/index.mjs +0 -87
  81. package/dist/json.mjs +0 -29
  82. package/dist/math/diffDate.mjs +0 -9
  83. package/dist/math/index.mjs +0 -34
  84. package/dist/math/positiveNumber.mjs +0 -10
  85. package/dist/name/en.mjs +0 -9
  86. package/dist/name/index.mjs +0 -20
  87. package/dist/name/vi.mjs +0 -14
  88. package/dist/object-43aaaf92.d.ts +0 -80
  89. package/dist/object.mjs +0 -21
  90. package/dist/permission/index.mjs +0 -15
  91. package/dist/permission/requestCamera.mjs +0 -9
  92. package/dist/permission/requestDeviceOrientationControl.mjs +0 -10
  93. package/dist/requestCamera-32b7dfc7.d.ts +0 -14
  94. package/dist/requestDeviceOrientationControl-b6458660.d.ts +0 -11
  95. package/dist/response/index.mjs +0 -16
  96. package/dist/string/convertPathnameAndQuery.mjs +0 -28
  97. package/dist/string/formatNumber.mjs +0 -10
  98. package/dist/string/generatePassword.mjs +0 -10
  99. package/dist/string/generateUUID.mjs +0 -9
  100. package/dist/string/getTextBetweenCharByIndex.mjs +0 -22
  101. package/dist/string/index.mjs +0 -31
  102. package/dist/string/indexesOf.mjs +0 -7
  103. package/dist/string/makeDaySlug.mjs +0 -9
  104. package/dist/string/random.mjs +0 -23
  105. package/dist/string/trimNull.mjs +0 -9
  106. package/dist/string/url.mjs +0 -21
  107. package/dist/url-0da0be84.d.ts +0 -43
package/dist/color.mjs DELETED
@@ -1,85 +0,0 @@
1
- import "./chunk-4VQ25N7H.mjs";
2
-
3
- // src/color.ts
4
- var random = (hex = false) => {
5
- return (hex ? "#" : "") + Math.floor(Math.random() * 16777215).toString(16);
6
- };
7
- var pSBC = (p, c0, c1, l) => {
8
- let r, g, b, P, f, t, h, i = parseInt, m = Math.round, a = typeof c1 == "string";
9
- if (typeof p != "number" || p < -1 || p > 1 || typeof c0 != "string" || c0[0] != "r" && c0[0] != "#" || c1 && !a)
10
- return null;
11
- const pSBCr = (d) => {
12
- let n = d.length, x = { r: 0, g: 0, b: 0, a: 1 };
13
- if (n > 9) {
14
- [r, g, b, a] = d = d.split(","), n = d.length;
15
- if (n < 3 || n > 4)
16
- return null;
17
- x.r = i(r[3] == "a" ? r.slice(5) : r.slice(4)), x.g = i(g), x.b = i(b), x.a = a ? parseFloat(a.toString()) : -1;
18
- } else {
19
- if (n == 8 || n == 6 || n < 4)
20
- return null;
21
- if (n < 6)
22
- d = "#" + d[1] + d[1] + d[2] + d[2] + d[3] + d[3] + (n > 4 ? d[4] + d[4] : "");
23
- d = i(d.slice(1), 16);
24
- if (n == 9 || n == 5)
25
- x.r = d >> 24 & 255, x.g = d >> 16 & 255, x.b = d >> 8 & 255, x.a = m((d & 255) / 0.255) / 1e3;
26
- else
27
- x.r = d >> 16, x.g = d >> 8 & 255, x.b = d & 255, x.a = -1;
28
- }
29
- return x;
30
- };
31
- h = c0.length > 9, h = a ? c1.length > 9 ? true : c1 == "c" ? !h : false : h, f = pSBCr(c0), P = p < 0, t = c1 && c1 != "c" ? pSBCr(c1) : P ? { r: 0, g: 0, b: 0, a: -1 } : { r: 255, g: 255, b: 255, a: -1 }, p = P ? p * -1 : p, P = 1 - p;
32
- if (!f || !t || typeof f == "undefined")
33
- return null;
34
- else if (l)
35
- r = m(P * f.r + p * t.r), g = m(P * f.g + p * t.g), b = m(P * f.b + p * t.b);
36
- else
37
- r = m((P * f.r ** 2 + p * t.r ** 2) ** 0.5), g = m((P * f.g ** 2 + p * t.g ** 2) ** 0.5), b = m((P * f.b ** 2 + p * t.b ** 2) ** 0.5);
38
- a = f.a, t = t.a, f = a >= 0 || t >= 0, a = f ? a < 0 ? t : t < 0 ? a : a * P + t * p : 0;
39
- if (h)
40
- return "rgb" + (f ? "a(" : "(") + r + "," + g + "," + b + (f ? "," + m(a * 1e3) / 1e3 : "") + ")";
41
- else
42
- return "#" + (4294967296 + r * 16777216 + g * 65536 + b * 256 + (f ? m(a * 255) : 0)).toString(16).slice(1, f ? void 0 : -2);
43
- };
44
- var hexToRgb = (hex) => {
45
- var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
46
- return result ? {
47
- r: parseInt(result[1], 16),
48
- g: parseInt(result[2], 16),
49
- b: parseInt(result[3], 16)
50
- } : null;
51
- };
52
- var hexDarken = (hex, amount) => {
53
- return pSBC(-amount, hex);
54
- };
55
- var hexLighten = (hex, amount) => {
56
- return pSBC(amount, hex);
57
- };
58
- var RGBToHex = (rgb) => {
59
- return pSBC(0, rgb, "c", true);
60
- };
61
- var hexToVBColor = (rrggbb) => {
62
- rrggbb = rrggbb.replace("#", "");
63
- const bbggrr = rrggbb.substring(4, 2) + rrggbb.substring(2, 2) + rrggbb.substring(0, 2);
64
- return parseInt(bbggrr, 16);
65
- };
66
- var color = {
67
- random,
68
- pSBC,
69
- hexToRgb,
70
- hexDarken,
71
- hexLighten,
72
- RGBToHex,
73
- hexToVBColor
74
- };
75
- var color_default = color;
76
- export {
77
- RGBToHex,
78
- color_default as default,
79
- hexDarken,
80
- hexLighten,
81
- hexToRgb,
82
- hexToVBColor,
83
- pSBC,
84
- random
85
- };
@@ -1,9 +0,0 @@
1
- import {
2
- enableConsole,
3
- enableConsole_default
4
- } from "../chunk-76AY2CWV.mjs";
5
- import "../chunk-4VQ25N7H.mjs";
6
- export {
7
- enableConsole_default as default,
8
- enableConsole
9
- };
@@ -1,14 +0,0 @@
1
- import {
2
- console_default,
3
- disableConsole,
4
- removeConsole,
5
- showCredit
6
- } from "../chunk-24DHBJAC.mjs";
7
- import "../chunk-76AY2CWV.mjs";
8
- import "../chunk-4VQ25N7H.mjs";
9
- export {
10
- console_default as default,
11
- disableConsole,
12
- removeConsole,
13
- showCredit
14
- };
@@ -1,19 +0,0 @@
1
- import {
2
- log,
3
- logError,
4
- logFull,
5
- logRes,
6
- logSuccess,
7
- logWarn,
8
- log_default
9
- } from "../chunk-GNJDIUYM.mjs";
10
- import "../chunk-4VQ25N7H.mjs";
11
- export {
12
- log_default as default,
13
- log,
14
- logError,
15
- logFull,
16
- logRes,
17
- logSuccess,
18
- logWarn
19
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Create new directory
3
- */
4
- declare function createDir(path: string): true | undefined;
5
-
6
- declare const createDir$1_createDir: typeof createDir;
7
- declare namespace createDir$1 {
8
- export {
9
- createDir$1_createDir as createDir,
10
- };
11
- }
12
-
13
- export { createDir as a, createDir$1 as c };
@@ -1,15 +0,0 @@
1
- import {
2
- isFacebookWebview,
3
- isInAppWebview,
4
- isLandscape,
5
- isPotrait,
6
- ua
7
- } from "../chunk-PSVXSTS4.mjs";
8
- import "../chunk-4VQ25N7H.mjs";
9
- export {
10
- isFacebookWebview,
11
- isInAppWebview,
12
- isLandscape,
13
- isPotrait,
14
- ua
15
- };
@@ -1,8 +0,0 @@
1
- import {
2
- getWebcam
3
- } from "../chunk-AT5ZUBQL.mjs";
4
- import "../chunk-LGBBKRBU.mjs";
5
- import "../chunk-4VQ25N7H.mjs";
6
- export {
7
- getWebcam
8
- };
@@ -1,15 +0,0 @@
1
- import {
2
- checkOS,
3
- isAndroid,
4
- isIos,
5
- isMobile,
6
- isTablet
7
- } from "../chunk-32BJ2V3H.mjs";
8
- import "../chunk-4VQ25N7H.mjs";
9
- export {
10
- checkOS,
11
- isAndroid,
12
- isIos,
13
- isMobile,
14
- isTablet
15
- };
@@ -1,33 +0,0 @@
1
- import "../chunk-4VQ25N7H.mjs";
2
-
3
- // src/device/os.ts
4
- import os from "os";
5
- function getOS() {
6
- const osvar = os.platform();
7
- if (osvar == "darwin") {
8
- return "mac";
9
- } else if (osvar == "win32") {
10
- return "win";
11
- } else if (osvar == "linux") {
12
- return "linux";
13
- } else {
14
- return osvar;
15
- }
16
- }
17
- function isWin() {
18
- return os.platform() == "win32";
19
- }
20
- function isMac() {
21
- return os.platform() == "darwin";
22
- }
23
- function isLinux() {
24
- return os.platform() == "linux";
25
- }
26
- var os_default = { getOS, isWin, isMac, isLinux };
27
- export {
28
- os_default as default,
29
- getOS,
30
- isLinux,
31
- isMac,
32
- isWin
33
- };
@@ -1,11 +0,0 @@
1
- declare function enableConsole(): Console;
2
-
3
- declare const enableConsole$1_enableConsole: typeof enableConsole;
4
- declare namespace enableConsole$1 {
5
- export {
6
- enableConsole as default,
7
- enableConsole$1_enableConsole as enableConsole,
8
- };
9
- }
10
-
11
- export { enableConsole as a, enableConsole$1 as e };
@@ -1,7 +0,0 @@
1
- import {
2
- createDir
3
- } from "../chunk-TV4YHUBU.mjs";
4
- import "../chunk-4VQ25N7H.mjs";
5
- export {
6
- createDir
7
- };
@@ -1,7 +0,0 @@
1
- import {
2
- fileMove
3
- } from "../chunk-HN4EHJ2H.mjs";
4
- import "../chunk-4VQ25N7H.mjs";
5
- export {
6
- fileMove
7
- };
@@ -1,11 +0,0 @@
1
- import {
2
- findFileByExt,
3
- findFilesByExt_default,
4
- forEachFileByExt
5
- } from "../chunk-D5JDP7JB.mjs";
6
- import "../chunk-4VQ25N7H.mjs";
7
- export {
8
- findFilesByExt_default as default,
9
- findFileByExt,
10
- forEachFileByExt
11
- };
@@ -1,17 +0,0 @@
1
- import {
2
- createDir
3
- } from "../chunk-TV4YHUBU.mjs";
4
- import {
5
- fileMove
6
- } from "../chunk-HN4EHJ2H.mjs";
7
- import {
8
- findFilesByExt_default
9
- } from "../chunk-D5JDP7JB.mjs";
10
- import "../chunk-4VQ25N7H.mjs";
11
-
12
- // src/file/index.ts
13
- var xfile = { createDir, fileMove, ...findFilesByExt_default };
14
- var file_default = xfile;
15
- export {
16
- file_default as default
17
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Move file to another location.
3
- */
4
- declare function fileMove(oldPath: string, newPath: string, callback: any): void;
5
-
6
- declare const fileMove$1_fileMove: typeof fileMove;
7
- declare namespace fileMove$1 {
8
- export {
9
- fileMove$1_fileMove as fileMove,
10
- };
11
- }
12
-
13
- export { fileMove as a, fileMove$1 as f };
@@ -1,24 +0,0 @@
1
- /**
2
- * This is an alias of "findFileByExt()"
3
- */
4
- declare const forEachFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
5
- /**
6
- * This is an alias of "forEachFileByExt()"
7
- */
8
- declare const findFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
9
- declare const fileExt: {
10
- findFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
11
- forEachFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
12
- };
13
-
14
- declare const findFilesByExt_findFileByExt: typeof findFileByExt;
15
- declare const findFilesByExt_forEachFileByExt: typeof forEachFileByExt;
16
- declare namespace findFilesByExt {
17
- export {
18
- fileExt as default,
19
- findFilesByExt_findFileByExt as findFileByExt,
20
- findFilesByExt_forEachFileByExt as forEachFileByExt,
21
- };
22
- }
23
-
24
- export { fileExt as a, forEachFileByExt as b, findFileByExt as c, findFilesByExt as f };
@@ -1,65 +0,0 @@
1
- import {
2
- __privateAdd,
3
- __privateGet,
4
- __privateMethod,
5
- __privateSet
6
- } from "../chunk-4VQ25N7H.mjs";
7
-
8
- // src/gameboi/index.ts
9
- import EventEmitter from "events";
10
- var ___onConnect, ___onDisconnect, ___start, _time, _awake, awake_fn;
11
- var GameBoi = class extends EventEmitter {
12
- constructor() {
13
- super();
14
- __privateAdd(this, _awake);
15
- __privateAdd(this, ___onConnect, void 0);
16
- __privateAdd(this, ___onDisconnect, void 0);
17
- __privateAdd(this, ___start, void 0);
18
- __privateAdd(this, _time, +/* @__PURE__ */ new Date());
19
- __privateMethod(this, _awake, awake_fn).call(this);
20
- }
21
- onConnect(e) {
22
- const gp = navigator.getGamepads()[e.gamepad.index];
23
- console.log(`Gamepad connected at index ${gp.index}: ${gp.id}. It has ${gp.buttons.length} buttons and ${gp.axes.length} axes.`);
24
- __privateSet(this, _time, +/* @__PURE__ */ new Date());
25
- this.gameLoop();
26
- }
27
- onDisconnect() {
28
- console.log("onDisconnect");
29
- window.cancelAnimationFrame(__privateGet(this, ___start));
30
- }
31
- gameLoop() {
32
- const gamepads = navigator.getGamepads();
33
- if (!gamepads) {
34
- return;
35
- }
36
- const deltaTime = (+/* @__PURE__ */ new Date() - __privateGet(this, _time)) / 1e3;
37
- const item = gamepads[0];
38
- item.deltaTime = deltaTime;
39
- this.emit("update", item);
40
- __privateSet(this, _time, +/* @__PURE__ */ new Date());
41
- __privateSet(this, ___start, requestAnimationFrame(this.gameLoop.bind(this)));
42
- }
43
- dispose() {
44
- this.onDisconnect();
45
- window.removeEventListener("gamepadconnected", __privateGet(this, ___onConnect));
46
- window.removeEventListener("gamepaddisconnected", __privateGet(this, ___onDisconnect));
47
- }
48
- };
49
- ___onConnect = new WeakMap();
50
- ___onDisconnect = new WeakMap();
51
- ___start = new WeakMap();
52
- _time = new WeakMap();
53
- _awake = new WeakSet();
54
- awake_fn = function() {
55
- if (typeof window == "undefined")
56
- return;
57
- const scope = this;
58
- __privateSet(this, ___onConnect, this.onConnect.bind(this));
59
- window.addEventListener("gamepadconnected", __privateGet(this, ___onConnect));
60
- __privateSet(this, ___onDisconnect, this.onDisconnect.bind(this));
61
- window.addEventListener("gamepaddisconnected", __privateGet(this, ___onDisconnect));
62
- };
63
- export {
64
- GameBoi as default
65
- };
@@ -1,53 +0,0 @@
1
- import {
2
- makeSlug
3
- } from "../chunk-3OYOTSDB.mjs";
4
- import {
5
- isIos
6
- } from "../chunk-32BJ2V3H.mjs";
7
- import "../chunk-4VQ25N7H.mjs";
8
-
9
- // src/images/downloadByUrl.ts
10
- import { saveAs } from "file-saver";
11
- async function downloadByUrl(url, name, title) {
12
- return new Promise(async (resolve, reject) => {
13
- var _a, _b, _c, _d, _e;
14
- const blob = await fetch(url).then((r) => r.blob());
15
- if (!blob)
16
- reject(false);
17
- const fileExt = (_c = blob.type) == null ? void 0 : _c.substring(((_a = blob.type) == null ? void 0 : _a.indexOf("/")) + 1, (_b = blob.type) == null ? void 0 : _b.length);
18
- const fileName = `${name != null ? name : `image-${+/* @__PURE__ */ new Date()}`}.${fileExt}`;
19
- if (isIos()) {
20
- try {
21
- const file = new File([blob], fileName, { type: blob.type });
22
- const files = [file];
23
- if ((navigator == null ? void 0 : navigator.canShare) && (navigator == null ? void 0 : navigator.canShare({ files }))) {
24
- (_e = navigator == null ? void 0 : navigator.share) == null ? void 0 : _e.call(navigator, {
25
- files,
26
- title: (_d = title != null ? title : name) != null ? _d : fileName,
27
- text: title ? makeSlug(title) : name != null ? name : fileName
28
- }).then((e) => {
29
- resolve(true);
30
- }).catch((err) => {
31
- var _a2;
32
- if (((_a2 = err.message) == null ? void 0 : _a2.indexOf("cancellation")) >= 0) {
33
- return;
34
- }
35
- saveAs(url, fileName);
36
- resolve(true);
37
- });
38
- } else {
39
- saveAs(url, fileName);
40
- }
41
- } catch (error) {
42
- console.error(`downloadByUrl error`, error);
43
- reject(error);
44
- }
45
- } else {
46
- saveAs(url, fileName);
47
- resolve(true);
48
- }
49
- });
50
- }
51
- export {
52
- downloadByUrl as default
53
- };
@@ -1,14 +0,0 @@
1
- import {
2
- upload
3
- } from "../chunk-YLZC36RI.mjs";
4
- import "../chunk-32PJ3FML.mjs";
5
- import {
6
- resize
7
- } from "../chunk-GJMNV2OC.mjs";
8
- import "../chunk-GNJDIUYM.mjs";
9
- import "../chunk-JAP2EUEW.mjs";
10
- import "../chunk-4VQ25N7H.mjs";
11
- export {
12
- resize,
13
- upload
14
- };
@@ -1,21 +0,0 @@
1
- import "../chunk-4VQ25N7H.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 = resolve;
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-GJMNV2OC.mjs";
5
- import "../chunk-4VQ25N7H.mjs";
6
- export {
7
- resize_default as default,
8
- resize
9
- };
@@ -1,13 +0,0 @@
1
- import {
2
- upload,
3
- upload_default
4
- } from "../chunk-YLZC36RI.mjs";
5
- import "../chunk-32PJ3FML.mjs";
6
- import "../chunk-GJMNV2OC.mjs";
7
- import "../chunk-GNJDIUYM.mjs";
8
- import "../chunk-JAP2EUEW.mjs";
9
- import "../chunk-4VQ25N7H.mjs";
10
- export {
11
- upload_default as default,
12
- upload
13
- };
@@ -1,26 +0,0 @@
1
- import { a as enableConsole } from './enableConsole-ddc24282.js';
2
-
3
- declare const disableConsole: () => void;
4
- declare const removeConsole: () => void;
5
- declare const showCredit: () => void;
6
-
7
- declare const xconsole: {
8
- enableConsole: typeof enableConsole;
9
- disableConsole: () => void;
10
- removeConsole: () => void;
11
- showCredit: () => 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 };
@@ -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,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;
63
- getFileNameWithExtension: (url: string) => string;
64
- getFileExtension: (url: string) => string | null | 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 };