@rzl-zone/utils-js 3.7.1 → 3.8.0

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 (118) hide show
  1. package/README.md +23 -0
  2. package/dist/assertions/index.cjs +1 -1
  3. package/dist/assertions/index.d.ts +8 -8
  4. package/dist/assertions/index.js +1 -1
  5. package/dist/chunk-2VO2CBTU.js +1 -1
  6. package/dist/{chunk-KTQLDIIT.cjs → chunk-3JD53UUH.cjs} +15 -5
  7. package/dist/chunk-3KTD3QDI.js +1 -1
  8. package/dist/chunk-4ACKNPL5.js +1 -1
  9. package/dist/chunk-4ZOXSUXB.js +1 -1
  10. package/dist/{chunk-6PKW4WCT.js → chunk-5IKZ3JDV.js} +20 -8
  11. package/dist/chunk-5NN4ZDE2.cjs +1 -1
  12. package/dist/{chunk-OS5OT5JA.cjs → chunk-5PF7KRCP.cjs} +25 -9
  13. package/dist/{chunk-66WLOZOD.cjs → chunk-6NORJBI6.cjs} +7 -5
  14. package/dist/chunk-6RFNZ2ZZ.cjs +1 -1
  15. package/dist/{chunk-TDPYR5JY.js → chunk-6VA4F6VR.js} +15 -5
  16. package/dist/chunk-6WMB5AJR.js +1 -1
  17. package/dist/chunk-7QQV66RX.cjs +1 -1
  18. package/dist/chunk-7WBMA2VE.cjs +1 -1
  19. package/dist/chunk-7ZNEUWYP.js +1 -1
  20. package/dist/chunk-A3YI6Y2P.js +1 -1
  21. package/dist/{chunk-RMJC3B5P.cjs → chunk-A4H7474O.cjs} +7 -4
  22. package/dist/chunk-AKKM6MOX.cjs +1 -1
  23. package/dist/chunk-ATLFMKAF.cjs +1 -1
  24. package/dist/chunk-B4SDEBN7.cjs +1 -1
  25. package/dist/chunk-B6UIKBHR.cjs +1 -1
  26. package/dist/chunk-BAV5T2E3.cjs +1 -1
  27. package/dist/chunk-BYUT376O.cjs +1 -1
  28. package/dist/chunk-CKUEZF4R.cjs +1 -1
  29. package/dist/chunk-DPLL67OT.js +1 -1
  30. package/dist/chunk-DVMHRLKP.cjs +1 -1
  31. package/dist/chunk-EK7FSI7F.cjs +1 -1
  32. package/dist/chunk-F3WBQKRI.cjs +1 -1
  33. package/dist/chunk-FI76UZRF.js +1 -1
  34. package/dist/chunk-GAJBF6DR.js +1 -1
  35. package/dist/{chunk-K3SONK25.cjs → chunk-HKJZ7K2K.cjs} +165 -14
  36. package/dist/{chunk-QUITZ3GP.js → chunk-I3IXLEEG.js} +25 -9
  37. package/dist/{chunk-VNADVWSJ.js → chunk-JIROTDOU.js} +4 -2
  38. package/dist/chunk-JY4HLZ4W.js +1 -1
  39. package/dist/chunk-K63WO3XA.cjs +1 -1
  40. package/dist/chunk-KHO2SBNA.cjs +1 -1
  41. package/dist/chunk-KPCDDYTZ.js +1 -1
  42. package/dist/{chunk-XFTUHS4Y.js → chunk-KVZ3HL2B.js} +7 -5
  43. package/dist/chunk-L5RDAVVH.js +1 -1
  44. package/dist/chunk-LEX4TQW2.js +1 -1
  45. package/dist/chunk-LIU4S3JA.cjs +1 -1
  46. package/dist/{chunk-R3PBF6F7.cjs → chunk-LVFTN6DK.cjs} +29 -17
  47. package/dist/chunk-NREACG6M.cjs +1 -1
  48. package/dist/chunk-OFBFGFVH.js +1 -1
  49. package/dist/chunk-ONZFBJVW.js +1 -1
  50. package/dist/{chunk-D53CE4BT.js → chunk-P3ST4UZA.js} +6 -3
  51. package/dist/{chunk-WNO3EPYT.js → chunk-PW2VMJLT.js} +4 -2
  52. package/dist/chunk-PZQC3FZY.js +1 -1
  53. package/dist/chunk-QAPYHLHC.cjs +1 -1
  54. package/dist/chunk-QNKGP5DY.js +1 -1
  55. package/dist/{chunk-2CQI36UD.cjs → chunk-RJYWBVGD.cjs} +4 -2
  56. package/dist/{chunk-3LEWQV3R.js → chunk-RRJIRXHS.js} +5 -5
  57. package/dist/{chunk-BG3AS5BU.cjs → chunk-SGCN4ED4.cjs} +4 -2
  58. package/dist/chunk-SLP24LUV.js +302 -0
  59. package/dist/chunk-SZJ7OI4S.js +1 -1
  60. package/dist/chunk-TDYGYHSH.js +1 -1
  61. package/dist/chunk-TFDXRT6D.cjs +1 -1
  62. package/dist/chunk-U5VR4TJN.js +1 -1
  63. package/dist/chunk-UDA26MCU.cjs +1 -1
  64. package/dist/chunk-UKAUXY2U.cjs +1 -1
  65. package/dist/chunk-VCVND6CH.js +1 -1
  66. package/dist/chunk-VJDDGRIK.cjs +1 -1
  67. package/dist/chunk-VJVCXEH7.cjs +1 -1
  68. package/dist/chunk-WVSPXFTY.js +1 -1
  69. package/dist/chunk-YC7AK3KX.cjs +1 -1
  70. package/dist/chunk-YGB2BQPB.cjs +1 -1
  71. package/dist/chunk-YS27V6LS.js +1 -1
  72. package/dist/chunk-YWHHVDT4.js +1 -1
  73. package/dist/chunk-ZN53RM3R.js +1 -1
  74. package/dist/{chunk-KIYALQQF.cjs → chunk-ZW3VYES4.cjs} +5 -5
  75. package/dist/conversions/index.cjs +18 -18
  76. package/dist/conversions/index.d.ts +10 -12
  77. package/dist/conversions/index.js +3 -3
  78. package/dist/events/index.cjs +1 -1
  79. package/dist/events/index.d.ts +9 -9
  80. package/dist/events/index.js +1 -1
  81. package/dist/formatters/index.cjs +12 -12
  82. package/dist/formatters/index.d.ts +19 -24
  83. package/dist/formatters/index.js +2 -2
  84. package/dist/generators/index.cjs +10 -6
  85. package/dist/generators/index.d.ts +155 -26
  86. package/dist/generators/index.js +2 -2
  87. package/dist/index.d.ts +1 -1
  88. package/dist/{isPlainObject-FWmcJF6k.d.ts → isPlainObject-BTPjv6zB.d.ts} +2 -2
  89. package/dist/next/index.cjs +11 -9
  90. package/dist/next/index.d.ts +11 -11
  91. package/dist/next/index.js +5 -3
  92. package/dist/next/server/index.cjs +1 -1
  93. package/dist/next/server/index.d.ts +4 -4
  94. package/dist/next/server/index.js +1 -1
  95. package/dist/operations/index.cjs +6 -6
  96. package/dist/operations/index.d.ts +8 -9
  97. package/dist/operations/index.js +3 -3
  98. package/dist/parsers/index.cjs +1 -1
  99. package/dist/parsers/index.d.ts +1 -1
  100. package/dist/parsers/index.js +1 -1
  101. package/dist/predicates/index.cjs +1 -1
  102. package/dist/predicates/index.d.ts +15 -28
  103. package/dist/predicates/index.js +1 -1
  104. package/dist/promises/index.cjs +4 -4
  105. package/dist/promises/index.d.ts +6 -7
  106. package/dist/promises/index.js +2 -2
  107. package/dist/rzl-utils.global.js +2 -2
  108. package/dist/strings/index.cjs +1 -1
  109. package/dist/strings/index.d.ts +1 -1
  110. package/dist/strings/index.js +1 -1
  111. package/dist/tailwind/index.cjs +10 -10
  112. package/dist/tailwind/index.d.ts +18 -18
  113. package/dist/tailwind/index.js +2 -2
  114. package/dist/urls/index.cjs +9 -9
  115. package/dist/urls/index.d.ts +9 -10
  116. package/dist/urls/index.js +3 -3
  117. package/package.json +1 -1
  118. package/dist/chunk-ABA2ZSBQ.js +0 -152
@@ -2,14 +2,14 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.7.1.
5
+ * Version: 3.8.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
10
  'use strict';
11
11
 
12
- var chunkKTQLDIIT_cjs = require('../chunk-KTQLDIIT.cjs');
12
+ var chunk3JD53UUH_cjs = require('../chunk-3JD53UUH.cjs');
13
13
  require('../chunk-TFDXRT6D.cjs');
14
14
  var chunkAKKM6MOX_cjs = require('../chunk-AKKM6MOX.cjs');
15
15
  require('../chunk-UKAUXY2U.cjs');
@@ -17,7 +17,7 @@ var chunkEK7FSI7F_cjs = require('../chunk-EK7FSI7F.cjs');
17
17
  require('../chunk-B4SDEBN7.cjs');
18
18
  require('../chunk-NREACG6M.cjs');
19
19
  require('../chunk-K63WO3XA.cjs');
20
- var chunk66WLOZOD_cjs = require('../chunk-66WLOZOD.cjs');
20
+ var chunk6NORJBI6_cjs = require('../chunk-6NORJBI6.cjs');
21
21
  require('../chunk-7QQV66RX.cjs');
22
22
  require('../chunk-ATLFMKAF.cjs');
23
23
  require('../chunk-7WBMA2VE.cjs');
@@ -28,47 +28,47 @@ require('../chunk-F3WBQKRI.cjs');
28
28
 
29
29
  Object.defineProperty(exports, "convertType", {
30
30
  enumerable: true,
31
- get: function () { return chunkKTQLDIIT_cjs.convertType; }
31
+ get: function () { return chunk3JD53UUH_cjs.convertType; }
32
32
  });
33
33
  Object.defineProperty(exports, "dedupeArray", {
34
34
  enumerable: true,
35
- get: function () { return chunkKTQLDIIT_cjs.dedupeArray; }
35
+ get: function () { return chunk3JD53UUH_cjs.dedupeArray; }
36
36
  });
37
37
  Object.defineProperty(exports, "removeObjectPaths", {
38
38
  enumerable: true,
39
- get: function () { return chunkKTQLDIIT_cjs.removeObjectPaths; }
39
+ get: function () { return chunk3JD53UUH_cjs.removeObjectPaths; }
40
40
  });
41
41
  Object.defineProperty(exports, "toBooleanContent", {
42
42
  enumerable: true,
43
- get: function () { return chunkKTQLDIIT_cjs.toBooleanContent; }
43
+ get: function () { return chunk3JD53UUH_cjs.toBooleanContent; }
44
44
  });
45
45
  Object.defineProperty(exports, "toBooleanContentDeep", {
46
46
  enumerable: true,
47
- get: function () { return chunkKTQLDIIT_cjs.toBooleanContentDeep; }
47
+ get: function () { return chunk3JD53UUH_cjs.toBooleanContentDeep; }
48
48
  });
49
49
  Object.defineProperty(exports, "toBooleanExplicit", {
50
50
  enumerable: true,
51
- get: function () { return chunkKTQLDIIT_cjs.toBooleanExplicit; }
51
+ get: function () { return chunk3JD53UUH_cjs.toBooleanExplicit; }
52
52
  });
53
53
  Object.defineProperty(exports, "toBooleanLoose", {
54
54
  enumerable: true,
55
- get: function () { return chunkKTQLDIIT_cjs.toBooleanLoose; }
55
+ get: function () { return chunk3JD53UUH_cjs.toBooleanLoose; }
56
56
  });
57
57
  Object.defineProperty(exports, "toNumberArrayUnRecursive", {
58
58
  enumerable: true,
59
- get: function () { return chunkKTQLDIIT_cjs.toNumberArrayUnRecursive; }
59
+ get: function () { return chunk3JD53UUH_cjs.toNumberArrayUnRecursive; }
60
60
  });
61
61
  Object.defineProperty(exports, "toNumberDeep", {
62
62
  enumerable: true,
63
- get: function () { return chunkKTQLDIIT_cjs.toNumberDeep; }
63
+ get: function () { return chunk3JD53UUH_cjs.toNumberDeep; }
64
64
  });
65
65
  Object.defineProperty(exports, "toStringDeep", {
66
66
  enumerable: true,
67
- get: function () { return chunkKTQLDIIT_cjs.toStringDeep; }
67
+ get: function () { return chunk3JD53UUH_cjs.toStringDeep; }
68
68
  });
69
69
  Object.defineProperty(exports, "toStringDeepForce", {
70
70
  enumerable: true,
71
- get: function () { return chunkKTQLDIIT_cjs.toStringDeepForce; }
71
+ get: function () { return chunk3JD53UUH_cjs.toStringDeepForce; }
72
72
  });
73
73
  Object.defineProperty(exports, "filterNilArray", {
74
74
  enumerable: true,
@@ -84,19 +84,19 @@ Object.defineProperty(exports, "parseCurrencyString", {
84
84
  });
85
85
  Object.defineProperty(exports, "cleanParsedData", {
86
86
  enumerable: true,
87
- get: function () { return chunk66WLOZOD_cjs.cleanParsedData; }
87
+ get: function () { return chunk6NORJBI6_cjs.cleanParsedData; }
88
88
  });
89
89
  Object.defineProperty(exports, "extractDigits", {
90
90
  enumerable: true,
91
- get: function () { return chunk66WLOZOD_cjs.extractDigits; }
91
+ get: function () { return chunk6NORJBI6_cjs.extractDigits; }
92
92
  });
93
93
  Object.defineProperty(exports, "parseCustomDate", {
94
94
  enumerable: true,
95
- get: function () { return chunk66WLOZOD_cjs.parseCustomDate; }
95
+ get: function () { return chunk6NORJBI6_cjs.parseCustomDate; }
96
96
  });
97
97
  Object.defineProperty(exports, "safeJsonParse", {
98
98
  enumerable: true,
99
- get: function () { return chunk66WLOZOD_cjs.safeJsonParse; }
99
+ get: function () { return chunk6NORJBI6_cjs.safeJsonParse; }
100
100
  });
101
101
  Object.defineProperty(exports, "safeStableStringify", {
102
102
  enumerable: true,
@@ -2,7 +2,7 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.7.1.
5
+ * Version: 3.8.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
@@ -72,7 +72,7 @@ removeInvalidValueNumber?:T;};
72
72
  * - Other values ➔ coerced into `undefined`.
73
73
  * - Invalid values can be **removed** (`removeInvalidValueNumber: true`) or **kept** (`false`).
74
74
  * - **ℹ️ Note:**
75
- * - _For recursive / nested arrays, use **{@link toNumberDeep | `toNumberDeep`}** instead._
75
+ * - _For recursive / nested arrays, use ***`toNumberDeep` utility function*** instead._
76
76
  * @template T - Element type of the input array.
77
77
  * @template R - Whether invalid values should be removed (`true`) or kept (`false`).
78
78
  * @param {Array<T> | readonly T[] | null | undefined} [array] - The array to convert, returns `undefined` if not an array.
@@ -154,7 +154,7 @@ removeInvalidValue?:T;};
154
154
  * - Other unsupported types will be converted to `undefined` (and removed
155
155
  * if `removeInvalidValue=true`).
156
156
  * - **ℹ️ Note:**
157
- * - _For recursive / nested arrays, use **{@link toStringDeep | `toStringDeep`}** instead._
157
+ * - _For recursive / nested arrays, use ***`toStringDeep` utility function*** instead._
158
158
  * @template T - Element type of the input array.
159
159
  * @template R - Whether invalid values should be removed (`true`) or kept (`false`).
160
160
  * @param {Array<string | number | bigint | boolean | null | undefined> | null | undefined} [array] - The array to convert, returns `undefined` if not an array.
@@ -220,7 +220,7 @@ flatten?:Fl;};
220
220
  * @param {unknown[]} inputArray - The array to deduplicate, can be deeply nested and contain any mix of types.
221
221
  * @param {DedupeArrayOptions<ForceToString, Flattening>|undefined} [options] - Options to control string conversion.
222
222
  * @returns {DedupeResult<ForceToString, Flattening>} Deduplicated array with optional transformations.
223
- * @throws {TypeError} If the input is not an array, or options is not an object, or if `forceToString` is invalid.
223
+ * @throws **{@link TypeError | `TypeError`}** if the input is not an array, or options is not an object, or if `forceToString` is invalid.
224
224
  * @example
225
225
  * ```ts
226
226
  * dedupeArray(["apple", "banana", "apple"]);
@@ -430,7 +430,7 @@ includeIndeterminate?:boolean;};
430
430
  * @param {ToBooleanExplicitOptions["trimString"]} [options.trimString=true] - Whether to trim whitespace before comparison, default: `true`.
431
431
  * @param {ToBooleanExplicitOptions["includeIndeterminate"]} [options.includeIndeterminate=false] - If `true`, the string `"indeterminate"` is considered a truthy value, defaults to `false`.
432
432
  * @returns {boolean} Return `true` if the value matches a truthy representation, otherwise `false`.
433
- * @throws {TypeError} Throws if any option provided is not a boolean.
433
+ * @throws **{@link TypeError | `TypeError`}** if any option provided is not a boolean.
434
434
  * @example
435
435
  * toBooleanExplicit(1);
436
436
  * // ➔ true
@@ -703,7 +703,7 @@ checkSymbols?:boolean;};
703
703
  * @param {*} data - The parsed JSON data.
704
704
  * @param {ParseParsedDataOptions} [options] - The cleaning options.
705
705
  * @returns {T | null | undefined} The cleaned data.
706
- * - ***⚠️ Notice:*** _If data is JSON string, we recommend use **{@link safeJsonParse | `safeJsonParse`}** for more safe._
706
+ * - ***⚠️ Notice:*** _If data is JSON string, we recommend use ***`safeJsonParse` utility function*** for more safe._
707
707
  * - ***⚠️ Note:*** _If using **`convertDates`** **options**, result may contain Date objects, you may need type assertions in strict TypeScript settings._
708
708
  * @example
709
709
  * ```ts
@@ -728,7 +728,7 @@ declare const cleanParsedData:<T=unknown>(data:T,options?:ParseParsedDataOptions
728
728
  * @param {string} dateString - Date string to parse.
729
729
  * @param {string} format - Date format to match.
730
730
  * @returns {Date | null} Returns a `Date` object if valid, otherwise `null`.
731
- * @throws {TypeError} Throw an type-error if `dateString` **(first parameter)** and `format` **(second parameter)** is not a string or empty-string.
731
+ * @throws **{@link TypeError | `TypeError`}** if `dateString` **(first parameter)** and `format` **(second parameter)** is not a string or empty-string.
732
732
  * @example
733
733
  * // Valid: European format (DD/MM/YYYY)
734
734
  * const date1 = parseCustomDate("03/09/2025", "DD/MM/YYYY");
@@ -797,7 +797,7 @@ type SafeJsonParseResult<TData,T>=IfNotExtends<T,NonJsonParsableType>extends tru
797
797
  * @param {ParseParsedDataOptions} [options] - Options to clean, convert types, enable strict mode,
798
798
  * support custom date formats, enable logging, or handle errors via callback.
799
799
  * @returns {SafeJsonParseResult<TData, TInput>} Parsed and optionally cleaned result, or `null`/`undefined`.
800
- * @throws {TypeError} If `options` is provided but not a valid object.
800
+ * @throws **{@link TypeError | `TypeError`}** if `options` is provided but not a valid object.
801
801
  * @example
802
802
  * 1. ***Basic parse with number & boolean conversion:***
803
803
  * ```ts
@@ -1038,8 +1038,7 @@ type ResultRemoveObjectPaths<T,K extends readonly ConfigRemoveObjectPaths<T>[]>=
1038
1038
  * @returns {Partial<T>}
1039
1039
  * - A new object with specified keys removed if `deepClone` is `true`.
1040
1040
  * - The *same mutated object* if `deepClone` is `false`.
1041
- * @throws {TypeError}
1042
- * - If `keysToDelete` is not an array of `{ key, deep? }` objects.
1041
+ * @throws **{@link TypeError | `TypeError`}** if `keysToDelete` is not an array of `{ key, deep? }` objects.
1043
1042
  * @example
1044
1043
  * // Shallow deletion
1045
1044
  * removeObjectPaths(
@@ -1199,8 +1198,7 @@ keepUndefined?:boolean;};
1199
1198
  * - `pretty` (boolean) – Whether to pretty-print JSON output with 2-space indentation, default: `false`.
1200
1199
  * @returns {string}
1201
1200
  * A stable JSON string representation of the input value.
1202
- * @throws {TypeError}
1203
- * Throws if `sortKeys`, `sortArray`, or `pretty` are not strictly boolean.
1201
+ * @throws **{@link TypeError | `TypeError`}** if `sortKeys`, `sortArray`, or `pretty` are not strictly boolean.
1204
1202
  * @example
1205
1203
  * ```ts
1206
1204
  * // Basic object key sorting
@@ -2,12 +2,12 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.7.1.
5
+ * Version: 3.8.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
- export { convertType, dedupeArray, removeObjectPaths, toBooleanContent, toBooleanContentDeep, toBooleanExplicit, toBooleanLoose, toNumberArrayUnRecursive, toNumberDeep, toStringDeep, toStringDeepForce } from '../chunk-TDPYR5JY.js';
10
+ export { convertType, dedupeArray, removeObjectPaths, toBooleanContent, toBooleanContentDeep, toBooleanExplicit, toBooleanLoose, toNumberArrayUnRecursive, toNumberDeep, toStringDeep, toStringDeepForce } from '../chunk-6VA4F6VR.js';
11
11
  import '../chunk-ZN53RM3R.js';
12
12
  export { filterNilArray, toStringArrayUnRecursive } from '../chunk-TDYGYHSH.js';
13
13
  import '../chunk-PZQC3FZY.js';
@@ -15,7 +15,7 @@ export { parseCurrencyString } from '../chunk-DPLL67OT.js';
15
15
  import '../chunk-7ZNEUWYP.js';
16
16
  import '../chunk-JY4HLZ4W.js';
17
17
  import '../chunk-FI76UZRF.js';
18
- export { cleanParsedData, extractDigits, parseCustomDate, safeJsonParse } from '../chunk-XFTUHS4Y.js';
18
+ export { cleanParsedData, extractDigits, parseCustomDate, safeJsonParse } from '../chunk-KVZ3HL2B.js';
19
19
  import '../chunk-SZJ7OI4S.js';
20
20
  import '../chunk-VCVND6CH.js';
21
21
  import '../chunk-6WMB5AJR.js';
@@ -2,7 +2,7 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.7.1.
5
+ * Version: 3.8.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
@@ -2,7 +2,7 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.7.1.
5
+ * Version: 3.8.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
@@ -25,8 +25,8 @@
25
25
  * - Throws `TypeError` if the `className` parameter is not a string.
26
26
  * @defaultValue `"on_processing"`
27
27
  * @param {string} [className="on_processing"] - The CSS class to add, defaults to `"on_processing"`.
28
- * @returns {void} Does not return anything.
29
- * @throws {TypeError} If `className` is not a string.
28
+ * @returns {void} Does not return anything (void).
29
+ * @throws **{@link TypeError | `TypeError`}** if `className` is not a string.
30
30
  * @example
31
31
  * * ***Example in your code:***
32
32
  * ```ts
@@ -69,8 +69,8 @@ declare const disableUserInteraction:(className?:string)=>void;
69
69
  * - Throws `TypeError` if the `className` parameter is not a string.
70
70
  * @defaultValue `"on_processing"`
71
71
  * @param {string} [className="on_processing"] - The CSS class to remove, defaults to `"on_processing"`.
72
- * @returns {void} Does not return anything.
73
- * @throws {TypeError} If `className` is not a string.
72
+ * @returns {void} Does not return anything (void).
73
+ * @throws **{@link TypeError | `TypeError`}** if `className` is not a string.
74
74
  * @example
75
75
  * * ***Example in your code:***
76
76
  * ```ts
@@ -100,10 +100,10 @@ declare const enableUserInteraction:(className?:string)=>void;
100
100
  * ----------------------------------------------------------
101
101
  * **Removes focus from the currently active element in the document.**
102
102
  * - **Features**:
103
- * - This function works **only in browser environments**.
104
- * - If an element is focused, it will lose focus by calling `blur()`.
103
+ * - This function works **only in browser environments** ***(safely no-ops in server environments)***.
104
+ * - If an element is focused, it will lose focus by calling `HTMLElement.blur()`.
105
105
  * - If no element is focused or the active element is not an `HTMLElement`, nothing happens.
106
- * @returns {void} Does not return anything.
106
+ * @returns {void} Does not return anything (void).
107
107
  * @example
108
108
  * removeElementFocus(); // ➔ Removes focus from the currently active element
109
109
  */
@@ -153,7 +153,7 @@ timeout?:number|undefined;};
153
153
  * - Non-integer number are truncated to an integer.
154
154
  * - Force to `2147483647` if number is larger than `2147483647`.
155
155
  * - Default force to `1` if `missing`, `NaN`, `invalid`, or `less-than` `1`.
156
- * @returns {void} Does not return anything, only scrolling to top.
156
+ * @returns {void} Does not return anything, only scrolling to top (void).
157
157
  * @example
158
158
  * // ✅ Valid options value:
159
159
  * scrollToTop();
@@ -2,7 +2,7 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.7.1.
5
+ * Version: 3.8.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
@@ -2,14 +2,14 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.7.1.
5
+ * Version: 3.8.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
10
  'use strict';
11
11
 
12
- var chunkOS5OT5JA_cjs = require('../chunk-OS5OT5JA.cjs');
12
+ var chunk5PF7KRCP_cjs = require('../chunk-5PF7KRCP.cjs');
13
13
  require('../chunk-B6UIKBHR.cjs');
14
14
  require('../chunk-EK7FSI7F.cjs');
15
15
  require('../chunk-B4SDEBN7.cjs');
@@ -22,41 +22,41 @@ require('../chunk-F3WBQKRI.cjs');
22
22
 
23
23
  Object.defineProperty(exports, "censorEmail", {
24
24
  enumerable: true,
25
- get: function () { return chunkOS5OT5JA_cjs.censorEmail; }
25
+ get: function () { return chunk5PF7KRCP_cjs.censorEmail; }
26
26
  });
27
27
  Object.defineProperty(exports, "chunkString", {
28
28
  enumerable: true,
29
- get: function () { return chunkOS5OT5JA_cjs.chunkString; }
29
+ get: function () { return chunk5PF7KRCP_cjs.chunkString; }
30
30
  });
31
31
  Object.defineProperty(exports, "formatCurrency", {
32
32
  enumerable: true,
33
- get: function () { return chunkOS5OT5JA_cjs.formatCurrency; }
33
+ get: function () { return chunk5PF7KRCP_cjs.formatCurrency; }
34
34
  });
35
35
  Object.defineProperty(exports, "formatDateFns", {
36
36
  enumerable: true,
37
- get: function () { return chunkOS5OT5JA_cjs.formatDateFns; }
37
+ get: function () { return chunk5PF7KRCP_cjs.formatDateFns; }
38
38
  });
39
39
  Object.defineProperty(exports, "formatDateIntl", {
40
40
  enumerable: true,
41
- get: function () { return chunkOS5OT5JA_cjs.formatDateIntl; }
41
+ get: function () { return chunk5PF7KRCP_cjs.formatDateIntl; }
42
42
  });
43
43
  Object.defineProperty(exports, "formatDateTime", {
44
44
  enumerable: true,
45
- get: function () { return chunkOS5OT5JA_cjs.formatDateTime; }
45
+ get: function () { return chunk5PF7KRCP_cjs.formatDateTime; }
46
46
  });
47
47
  Object.defineProperty(exports, "formatNumber", {
48
48
  enumerable: true,
49
- get: function () { return chunkOS5OT5JA_cjs.formatNumber; }
49
+ get: function () { return chunk5PF7KRCP_cjs.formatNumber; }
50
50
  });
51
51
  Object.defineProperty(exports, "formatPhoneNumber", {
52
52
  enumerable: true,
53
- get: function () { return chunkOS5OT5JA_cjs.formatPhoneNumber; }
53
+ get: function () { return chunk5PF7KRCP_cjs.formatPhoneNumber; }
54
54
  });
55
55
  Object.defineProperty(exports, "getGMTOffset", {
56
56
  enumerable: true,
57
- get: function () { return chunkOS5OT5JA_cjs.getGMTOffset; }
57
+ get: function () { return chunk5PF7KRCP_cjs.getGMTOffset; }
58
58
  });
59
59
  Object.defineProperty(exports, "truncateString", {
60
60
  enumerable: true,
61
- get: function () { return chunkOS5OT5JA_cjs.truncateString; }
61
+ get: function () { return chunk5PF7KRCP_cjs.truncateString; }
62
62
  });
@@ -2,7 +2,7 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.7.1.
5
+ * Version: 3.8.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
@@ -148,7 +148,7 @@ indianFormat?:boolean;};
148
148
  * - `"CHF 12'345.60"` ***(Swiss)***.
149
149
  * - `"1,23,456.78"` ***(Indian)***.
150
150
  * - Auto extracts numeric value with smart multi-locale parsing
151
- * via ***{@link parseCurrencyString | `parseCurrencyString`}***.
151
+ * via ***`parseCurrencyString` utility function***.
152
152
  * - Strong type checks & clear errors for misconfigured options.
153
153
  * - **Handles:**
154
154
  * - Thousands separators: `.`, `,`, `'`, ` `.
@@ -228,8 +228,7 @@ indianFormat?:boolean;};
228
228
  * - `"Rp 15.000,10.-"`.
229
229
  * - `"15'000.10 USD"`.
230
230
  * - `"12,34,567.89"`.
231
- * @throws {TypeError}
232
- * ***Will throw TypeError If:***
231
+ * @throws **{@link TypeError | `TypeError`}** ***If:***
233
232
  * - The `value` is not string or number.
234
233
  * - Cannot parse to valid number.
235
234
  * - Options have invalid types.
@@ -379,8 +378,7 @@ declare const formatCurrency:(value:string|number,options?:FormatCurrencyOptions
379
378
  * @param {string} [separator=","] - The thousands separator to use, examples: `","` ***(default)***, `"."`, `" "`, etc.
380
379
  * @returns {string} The formatted string with thousands separators and
381
380
  * appropriate decimal separator.
382
- * @throws {TypeError} If `value` is not a string or number,
383
- * or `separator` is not a string.
381
+ * @throws **{@link TypeError | `TypeError`}** if `value` is not a string or number, or `separator` is not a string.
384
382
  * @example
385
383
  * formatNumber(1000000);
386
384
  * // ➔ "1,000,000"
@@ -1118,8 +1116,8 @@ takeNumberOnly:true;}>;
1118
1116
  * - **E.164 compliance:**
1119
1117
  * - Optional leading `+` is recommended but **not required**.
1120
1118
  * - If Without leading `+`, you must passing `defaultCountry`.
1121
- * @throws {TypeError} If `value` is not string, number, null or undefined.
1122
- * @throws {TypeError} If `options` is not an object or contains wrong types.
1119
+ * @throws **{@link TypeError | `TypeError`}** if `value` is not string, number, null or undefined.
1120
+ * @throws **{@link TypeError | `TypeError`}** if `options` is not an object or contains wrong types.
1123
1121
  * @param {ValueFormatPhoneNumber} value
1124
1122
  * ***Phone number to format, accepts:***
1125
1123
  * - `string` (recommended to preserve leading zeros).
@@ -1243,8 +1241,8 @@ declare function formatPhoneNumber(value:ValueFormatPhoneNumber,options?:FormatP
1243
1241
  * - **E.164 compliance:**
1244
1242
  * - Optional leading `+` is recommended but **not required**.
1245
1243
  * - If Without leading `+`, you must passing `defaultCountry`.
1246
- * @throws {TypeError} If `value` is not string, number, null or undefined.
1247
- * @throws {TypeError} If `options` is not an object or contains wrong types.
1244
+ * @throws **{@link TypeError | `TypeError`}** if `value` is not string, number, null or undefined.
1245
+ * @throws **{@link TypeError | `TypeError`}** if `options` is not an object or contains wrong types.
1248
1246
  * @param {ValueFormatPhoneNumber} value
1249
1247
  * Phone number to format. Accepts:
1250
1248
  * - `string` (recommended to preserve leading zeros)
@@ -1299,8 +1297,8 @@ declare function formatPhoneNumber(value:ValueFormatPhoneNumber,options?:FormatP
1299
1297
  * - **E.164 compliance:**
1300
1298
  * - Optional leading `+` is recommended but **not required**.
1301
1299
  * - If Without leading `+`, you must passing `defaultCountry`.
1302
- * @throws {TypeError} If `value` is not string, number, null or undefined.
1303
- * @throws {TypeError} If `options` is not an object or contains wrong types.
1300
+ * @throws **{@link TypeError | `TypeError`}** if `value` is not string, number, null or undefined.
1301
+ * @throws **{@link TypeError | `TypeError`}** if `options` is not an object or contains wrong types.
1304
1302
  * @param {ValueFormatPhoneNumber} value
1305
1303
  * Phone number to format. Accepts:
1306
1304
  * - `string` (recommended to preserve leading zeros).
@@ -1359,8 +1357,8 @@ declare function formatPhoneNumber(value:ValueFormatPhoneNumber,options?:FormatP
1359
1357
  * - **E.164 compliance:**
1360
1358
  * - Optional leading `+` is recommended but **not required**.
1361
1359
  * - If Without leading `+`, you must passing `defaultCountry`.
1362
- * @throws {TypeError} If `value` is not string, number, null or undefined.
1363
- * @throws {TypeError} If `options` is not an object or contains wrong types.
1360
+ * @throws **{@link TypeError | `TypeError`}** if `value` is not string, number, null or undefined.
1361
+ * @throws **{@link TypeError | `TypeError`}** if `options` is not an object or contains wrong types.
1364
1362
  * @param {ValueFormatPhoneNumber} value
1365
1363
  * Phone number to format. Accepts:
1366
1364
  * - `string` (recommended to preserve leading zeros).
@@ -1475,8 +1473,8 @@ declare function formatPhoneNumber(value:ValueFormatPhoneNumber,options?:FormatP
1475
1473
  * - **E.164 compliance:**
1476
1474
  * - Optional leading `+` is recommended but **not required**.
1477
1475
  * - If Without leading `+`, you must passing `defaultCountry`.
1478
- * @throws {TypeError} If `value` is not string, number, null or undefined.
1479
- * @throws {TypeError} If `options` is not an object or contains wrong types.
1476
+ * @throws **{@link TypeError | `TypeError`}** if `value` is not string, number, null or undefined.
1477
+ * @throws **{@link TypeError | `TypeError`}** if `options` is not an object or contains wrong types.
1480
1478
  * @param {ValueFormatPhoneNumber} value
1481
1479
  * Phone number to format. Accepts:
1482
1480
  * - `string` (recommended to preserve leading zeros)
@@ -1554,8 +1552,8 @@ declare function formatPhoneNumber(value:ValueFormatPhoneNumber,options?:FormatP
1554
1552
  * - **E.164 compliance:**
1555
1553
  * - Optional leading `+` is recommended but **not required**.
1556
1554
  * - If Without leading `+`, you must passing `defaultCountry`.
1557
- * @throws {TypeError} If `value` is not string, number, null or undefined.
1558
- * @throws {TypeError} If `options` is not an object or contains wrong types.
1555
+ * @throws **{@link TypeError | `TypeError`}** if `value` is not string, number, null or undefined.
1556
+ * @throws **{@link TypeError | `TypeError`}** if `options` is not an object or contains wrong types.
1559
1557
  * @param {ValueFormatPhoneNumber} value
1560
1558
  * Phone number to format. Accepts:
1561
1559
  * - `string` (recommended to preserve leading zeros).
@@ -1699,7 +1697,7 @@ mode?:"random"|"fixed";};
1699
1697
  * @param {string | null | undefined} email - The email address to censor.
1700
1698
  * @param {CensorEmailOptions} [options={}] - Options object for mode.
1701
1699
  * @returns {string} The censored email, or an empty string if input is invalid.
1702
- * @throws {TypeError} If `options` is not a plain object or `mode` is invalid.
1700
+ * @throws **{@link TypeError | `TypeError`}** if `options` is not a plain object or `mode` is invalid.
1703
1701
  * @example
1704
1702
  * // Fixed mode (default, deterministic)
1705
1703
  * censorEmail("john.doe@gmail.com");
@@ -1821,11 +1819,8 @@ trim?:boolean;};
1821
1819
  * - `length` (number, default 10): Maximum length of the truncated string.
1822
1820
  * - `ending` (string, default `"..."`): String to append if truncation occurs.
1823
1821
  * - `trim` (boolean, default `true`): Whether to trim the input before truncation.
1824
- * @returns {string} The truncated string with optional trimming and ending.
1825
- * Returns `""` if input is empty or length < 1.
1826
- * @throws {TypeError} If `options.length` is not a finite number,
1827
- * or if `options.ending` is not a string,
1828
- * or if `options.trim` is not a boolean.
1822
+ * @returns {string} The truncated string with optional trimming and ending, returns `""` if input is empty or length < 1.
1823
+ * @throws **{@link TypeError | `TypeError`}** if `options.length` is not a finite number, or if `options.ending` is not a string, or if `options.trim` is not a boolean.
1829
1824
  * @example
1830
1825
  * truncateString("hello world", { length: 5 });
1831
1826
  * // ➔ "hello..."
@@ -2,12 +2,12 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.7.1.
5
+ * Version: 3.8.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
- export { censorEmail, chunkString, formatCurrency, formatDateFns, formatDateIntl, formatDateTime, formatNumber, formatPhoneNumber, getGMTOffset, truncateString } from '../chunk-QUITZ3GP.js';
10
+ export { censorEmail, chunkString, formatCurrency, formatDateFns, formatDateIntl, formatDateTime, formatNumber, formatPhoneNumber, getGMTOffset, truncateString } from '../chunk-I3IXLEEG.js';
11
11
  import '../chunk-OFBFGFVH.js';
12
12
  import '../chunk-DPLL67OT.js';
13
13
  import '../chunk-7ZNEUWYP.js';
@@ -2,14 +2,14 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.7.1.
5
+ * Version: 3.8.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
10
  'use strict';
11
11
 
12
- var chunkK3SONK25_cjs = require('../chunk-K3SONK25.cjs');
12
+ var chunkHKJZ7K2K_cjs = require('../chunk-HKJZ7K2K.cjs');
13
13
  require('../chunk-DVMHRLKP.cjs');
14
14
  var chunkBAV5T2E3_cjs = require('../chunk-BAV5T2E3.cjs');
15
15
  require('../chunk-YC7AK3KX.cjs');
@@ -18,19 +18,23 @@ require('../chunk-F3WBQKRI.cjs');
18
18
 
19
19
  Object.defineProperty(exports, "getRandomItem", {
20
20
  enumerable: true,
21
- get: function () { return chunkK3SONK25_cjs.getRandomItem; }
21
+ get: function () { return chunkHKJZ7K2K_cjs.getRandomItem; }
22
22
  });
23
23
  Object.defineProperty(exports, "randomInt", {
24
24
  enumerable: true,
25
- get: function () { return chunkK3SONK25_cjs.randomInt; }
25
+ get: function () { return chunkHKJZ7K2K_cjs.randomInt; }
26
26
  });
27
27
  Object.defineProperty(exports, "randomIntByLength", {
28
28
  enumerable: true,
29
- get: function () { return chunkK3SONK25_cjs.randomIntByLength; }
29
+ get: function () { return chunkHKJZ7K2K_cjs.randomIntByLength; }
30
30
  });
31
31
  Object.defineProperty(exports, "randomStr", {
32
32
  enumerable: true,
33
- get: function () { return chunkK3SONK25_cjs.randomStr; }
33
+ get: function () { return chunkHKJZ7K2K_cjs.randomStr; }
34
+ });
35
+ Object.defineProperty(exports, "randomUUID", {
36
+ enumerable: true,
37
+ get: function () { return chunkHKJZ7K2K_cjs.randomUUID; }
34
38
  });
35
39
  Object.defineProperty(exports, "noop", {
36
40
  enumerable: true,