@rzl-zone/utils-js 3.4.0 → 3.5.1

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/LICENSE.md +1 -1
  2. package/README.md +94 -45
  3. package/dist/assertions/index.cjs +41 -1
  4. package/dist/assertions/index.d.ts +11 -2
  5. package/dist/assertions/index.js +14 -1
  6. package/dist/chunk-2CQX5CBG.js +262 -1
  7. package/dist/chunk-2IOOEY45.cjs +30 -1
  8. package/dist/chunk-2WA36TC5.cjs +189 -0
  9. package/dist/chunk-3IBQ5MOM.js +16 -1
  10. package/dist/chunk-3VA554KW.js +34 -1
  11. package/dist/chunk-5757UBXJ.cjs +157 -1
  12. package/dist/chunk-5IGC6PBH.js +33 -1
  13. package/dist/chunk-5KJFVIQT.cjs +65 -1
  14. package/dist/chunk-6JFCSH7J.js +35 -1
  15. package/dist/chunk-6JFZL7YE.cjs +24 -1
  16. package/dist/chunk-7ODAAXX5.cjs +397 -1
  17. package/dist/chunk-BAV5T2E3.cjs +15 -1
  18. package/dist/chunk-CAH33WOQ.cjs +36 -1
  19. package/dist/chunk-CDCERIZ2.js +177 -0
  20. package/dist/chunk-CKTLUNWX.js +22 -1
  21. package/dist/chunk-CMW2TBOQ.js +567 -1
  22. package/dist/chunk-D3ENH7H6.cjs +101 -1
  23. package/dist/chunk-DEZZUYE2.js +152 -1
  24. package/dist/chunk-DVMHRLKP.cjs +16 -1
  25. package/dist/chunk-DWF2R5GD.cjs +225 -1
  26. package/dist/chunk-E55EQK2U.cjs +18 -1
  27. package/dist/chunk-E74U6CYP.cjs +18 -1
  28. package/dist/chunk-EL6A35UR.cjs +64 -1
  29. package/dist/chunk-F6IPNNSJ.cjs +554 -1
  30. package/dist/chunk-FJZGG54N.cjs +267 -1
  31. package/dist/chunk-FWCKOJZM.js +542 -1
  32. package/dist/chunk-FWHNWL2P.cjs +419 -1
  33. package/dist/chunk-GGEADHZO.js +90 -1
  34. package/dist/chunk-GQR4R5WY.js +31 -1
  35. package/dist/chunk-H66AC7GK.cjs +93 -1
  36. package/dist/chunk-HQWOFR56.cjs +33 -1
  37. package/dist/chunk-HYRQMTRH.cjs +24 -1
  38. package/dist/chunk-IRFL4MAX.js +63 -1
  39. package/dist/chunk-IVL7CKVH.cjs +37 -1
  40. package/dist/chunk-IZPBKKPO.js +16 -1
  41. package/dist/chunk-JBQMXC5I.cjs +106 -1
  42. package/dist/chunk-JEQEF5WD.js +95 -1
  43. package/dist/chunk-JMJQCN74.js +370 -1
  44. package/dist/chunk-KHO2SBNA.cjs +16 -1
  45. package/dist/chunk-KVAL5PAG.cjs +26 -1
  46. package/dist/chunk-L5RDAVVH.js +14 -1
  47. package/dist/chunk-LS6U7FAY.cjs +110 -1
  48. package/dist/chunk-NBZWMBO6.js +101 -1
  49. package/dist/chunk-NRF6LWBC.cjs +56 -1
  50. package/dist/chunk-OI5XKNZO.js +53 -1
  51. package/dist/chunk-ONZFBJVW.js +14 -1
  52. package/dist/chunk-OYTYSY7G.js +106 -1
  53. package/dist/chunk-PET42Z7W.js +119 -1
  54. package/dist/chunk-PZQ6I4JJ.cjs +605 -1
  55. package/dist/chunk-QBKAEVYG.js +113 -1
  56. package/dist/chunk-QNKGP5DY.js +14 -1
  57. package/dist/chunk-RIPKY4RU.js +417 -1
  58. package/dist/chunk-RZW35UN5.cjs +116 -1
  59. package/dist/chunk-SBFNXGTJ.js +220 -1
  60. package/dist/chunk-SBKGWRS5.js +22 -1
  61. package/dist/chunk-SIM77PU4.js +59 -1
  62. package/dist/chunk-T2T7K3KR.js +28 -1
  63. package/dist/chunk-T7PU2V7X.cjs +123 -1
  64. package/dist/chunk-UDA26MCU.cjs +16 -1
  65. package/dist/chunk-V45XJKHW.cjs +18 -1
  66. package/dist/chunk-VJDDGRIK.cjs +16 -1
  67. package/dist/chunk-W2WNBUDE.js +16 -1
  68. package/dist/chunk-WVSPXFTY.js +14 -1
  69. package/dist/chunk-XABCB3Y7.cjs +582 -1
  70. package/dist/chunk-XEDXFSGI.js +24 -1
  71. package/dist/chunk-YKPSRP5G.js +571 -1
  72. package/dist/chunk-YWHHVDT4.js +13 -1
  73. package/dist/chunk-ZETAZZLD.cjs +38 -1
  74. package/dist/conversions/index.cjs +104 -1
  75. package/dist/conversions/index.d.ts +10 -1
  76. package/dist/conversions/index.js +25 -1
  77. package/dist/events/index.cjs +32 -1
  78. package/dist/events/index.d.ts +10 -1
  79. package/dist/events/index.js +13 -1
  80. package/dist/formatters/index.cjs +62 -1
  81. package/dist/formatters/index.d.ts +10 -1
  82. package/dist/formatters/index.js +19 -1
  83. package/dist/generators/index.cjs +38 -1
  84. package/dist/generators/index.d.ts +10 -1
  85. package/dist/generators/index.js +15 -1
  86. package/dist/index.d.ts +39 -12
  87. package/dist/{isPlainObject-CEPWPiXh.d.ts → isPlainObject-FWmcJF6k.d.ts} +13 -4
  88. package/dist/next/index.cjs +218 -1
  89. package/dist/next/index.d.ts +10 -1
  90. package/dist/next/index.js +213 -1
  91. package/dist/next/server/index.cjs +43 -1
  92. package/dist/next/server/index.d.ts +10 -1
  93. package/dist/next/server/index.js +41 -1
  94. package/dist/operations/index.cjs +33 -1
  95. package/dist/operations/index.d.ts +10 -1
  96. package/dist/operations/index.js +18 -1
  97. package/dist/parsers/index.cjs +18 -1
  98. package/dist/parsers/index.d.ts +10 -1
  99. package/dist/parsers/index.js +11 -1
  100. package/dist/predicates/index.cjs +299 -1
  101. package/dist/predicates/index.d.ts +13 -4
  102. package/dist/predicates/index.js +24 -1
  103. package/dist/promises/index.cjs +25 -1
  104. package/dist/promises/index.d.ts +10 -1
  105. package/dist/promises/index.js +14 -1
  106. package/dist/rzl-utils.global.js +25 -1
  107. package/dist/strings/index.cjs +82 -1
  108. package/dist/strings/index.d.ts +10 -1
  109. package/dist/strings/index.js +15 -1
  110. package/dist/tailwind/index.cjs +43 -1
  111. package/dist/tailwind/index.d.ts +10 -1
  112. package/dist/tailwind/index.js +12 -1
  113. package/dist/urls/index.cjs +51 -1
  114. package/dist/urls/index.d.ts +10 -1
  115. package/dist/urls/index.js +24 -1
  116. package/package.json +60 -179
  117. package/dist/chunk-JYQTCICM.js +0 -1
  118. package/dist/chunk-YLA3DURS.cjs +0 -1
@@ -1 +1,104 @@
1
- "use strict";var e=require("../chunk-F6IPNNSJ.cjs");require("../chunk-CAH33WOQ.cjs");var r=require("../chunk-NRF6LWBC.cjs");require("../chunk-HQWOFR56.cjs");var t=require("../chunk-5KJFVIQT.cjs");require("../chunk-V45XJKHW.cjs"),require("../chunk-E55EQK2U.cjs"),require("../chunk-HYRQMTRH.cjs");var n=require("../chunk-FJZGG54N.cjs");require("../chunk-JBQMXC5I.cjs"),require("../chunk-ZETAZZLD.cjs"),require("../chunk-6JFZL7YE.cjs"),require("../chunk-BAV5T2E3.cjs");var o=require("../chunk-T7PU2V7X.cjs");require("../chunk-UDA26MCU.cjs"),require("../chunk-PZQ6I4JJ.cjs"),Object.defineProperty(exports,"convertType",{enumerable:!0,get:function(){return e.convertType}}),Object.defineProperty(exports,"dedupeArray",{enumerable:!0,get:function(){return e.dedupeArray}}),Object.defineProperty(exports,"removeObjectPaths",{enumerable:!0,get:function(){return e.removeObjectPaths}}),Object.defineProperty(exports,"toBooleanContent",{enumerable:!0,get:function(){return e.toBooleanContent}}),Object.defineProperty(exports,"toBooleanContentDeep",{enumerable:!0,get:function(){return e.toBooleanContentDeep}}),Object.defineProperty(exports,"toBooleanExplicit",{enumerable:!0,get:function(){return e.toBooleanExplicit}}),Object.defineProperty(exports,"toBooleanLoose",{enumerable:!0,get:function(){return e.toBooleanLoose}}),Object.defineProperty(exports,"toNumberArrayUnRecursive",{enumerable:!0,get:function(){return e.toNumberArrayUnRecursive}}),Object.defineProperty(exports,"toNumberDeep",{enumerable:!0,get:function(){return e.toNumberDeep}}),Object.defineProperty(exports,"toStringDeep",{enumerable:!0,get:function(){return e.toStringDeep}}),Object.defineProperty(exports,"toStringDeepForce",{enumerable:!0,get:function(){return e.toStringDeepForce}}),Object.defineProperty(exports,"filterNilArray",{enumerable:!0,get:function(){return r.filterNilArray}}),Object.defineProperty(exports,"toStringArrayUnRecursive",{enumerable:!0,get:function(){return r.toStringArrayUnRecursive}}),Object.defineProperty(exports,"parseCurrencyString",{enumerable:!0,get:function(){return t.parseCurrencyString}}),Object.defineProperty(exports,"cleanParsedData",{enumerable:!0,get:function(){return n.cleanParsedData}}),Object.defineProperty(exports,"extractDigits",{enumerable:!0,get:function(){return n.extractDigits}}),Object.defineProperty(exports,"parseCustomDate",{enumerable:!0,get:function(){return n.parseCustomDate}}),Object.defineProperty(exports,"safeJsonParse",{enumerable:!0,get:function(){return n.safeJsonParse}}),Object.defineProperty(exports,"safeStableStringify",{enumerable:!0,get:function(){return o.safeStableStringify}});
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ 'use strict';
11
+
12
+ var chunkF6IPNNSJ_cjs = require('../chunk-F6IPNNSJ.cjs');
13
+ require('../chunk-CAH33WOQ.cjs');
14
+ var chunkNRF6LWBC_cjs = require('../chunk-NRF6LWBC.cjs');
15
+ require('../chunk-HQWOFR56.cjs');
16
+ var chunk5KJFVIQT_cjs = require('../chunk-5KJFVIQT.cjs');
17
+ require('../chunk-V45XJKHW.cjs');
18
+ require('../chunk-E55EQK2U.cjs');
19
+ require('../chunk-HYRQMTRH.cjs');
20
+ var chunkFJZGG54N_cjs = require('../chunk-FJZGG54N.cjs');
21
+ require('../chunk-JBQMXC5I.cjs');
22
+ require('../chunk-ZETAZZLD.cjs');
23
+ require('../chunk-6JFZL7YE.cjs');
24
+ require('../chunk-BAV5T2E3.cjs');
25
+ var chunkT7PU2V7X_cjs = require('../chunk-T7PU2V7X.cjs');
26
+ require('../chunk-UDA26MCU.cjs');
27
+ require('../chunk-PZQ6I4JJ.cjs');
28
+
29
+ Object.defineProperty(exports, "convertType", {
30
+ enumerable: true,
31
+ get: function () { return chunkF6IPNNSJ_cjs.convertType; }
32
+ });
33
+ Object.defineProperty(exports, "dedupeArray", {
34
+ enumerable: true,
35
+ get: function () { return chunkF6IPNNSJ_cjs.dedupeArray; }
36
+ });
37
+ Object.defineProperty(exports, "removeObjectPaths", {
38
+ enumerable: true,
39
+ get: function () { return chunkF6IPNNSJ_cjs.removeObjectPaths; }
40
+ });
41
+ Object.defineProperty(exports, "toBooleanContent", {
42
+ enumerable: true,
43
+ get: function () { return chunkF6IPNNSJ_cjs.toBooleanContent; }
44
+ });
45
+ Object.defineProperty(exports, "toBooleanContentDeep", {
46
+ enumerable: true,
47
+ get: function () { return chunkF6IPNNSJ_cjs.toBooleanContentDeep; }
48
+ });
49
+ Object.defineProperty(exports, "toBooleanExplicit", {
50
+ enumerable: true,
51
+ get: function () { return chunkF6IPNNSJ_cjs.toBooleanExplicit; }
52
+ });
53
+ Object.defineProperty(exports, "toBooleanLoose", {
54
+ enumerable: true,
55
+ get: function () { return chunkF6IPNNSJ_cjs.toBooleanLoose; }
56
+ });
57
+ Object.defineProperty(exports, "toNumberArrayUnRecursive", {
58
+ enumerable: true,
59
+ get: function () { return chunkF6IPNNSJ_cjs.toNumberArrayUnRecursive; }
60
+ });
61
+ Object.defineProperty(exports, "toNumberDeep", {
62
+ enumerable: true,
63
+ get: function () { return chunkF6IPNNSJ_cjs.toNumberDeep; }
64
+ });
65
+ Object.defineProperty(exports, "toStringDeep", {
66
+ enumerable: true,
67
+ get: function () { return chunkF6IPNNSJ_cjs.toStringDeep; }
68
+ });
69
+ Object.defineProperty(exports, "toStringDeepForce", {
70
+ enumerable: true,
71
+ get: function () { return chunkF6IPNNSJ_cjs.toStringDeepForce; }
72
+ });
73
+ Object.defineProperty(exports, "filterNilArray", {
74
+ enumerable: true,
75
+ get: function () { return chunkNRF6LWBC_cjs.filterNilArray; }
76
+ });
77
+ Object.defineProperty(exports, "toStringArrayUnRecursive", {
78
+ enumerable: true,
79
+ get: function () { return chunkNRF6LWBC_cjs.toStringArrayUnRecursive; }
80
+ });
81
+ Object.defineProperty(exports, "parseCurrencyString", {
82
+ enumerable: true,
83
+ get: function () { return chunk5KJFVIQT_cjs.parseCurrencyString; }
84
+ });
85
+ Object.defineProperty(exports, "cleanParsedData", {
86
+ enumerable: true,
87
+ get: function () { return chunkFJZGG54N_cjs.cleanParsedData; }
88
+ });
89
+ Object.defineProperty(exports, "extractDigits", {
90
+ enumerable: true,
91
+ get: function () { return chunkFJZGG54N_cjs.extractDigits; }
92
+ });
93
+ Object.defineProperty(exports, "parseCustomDate", {
94
+ enumerable: true,
95
+ get: function () { return chunkFJZGG54N_cjs.parseCustomDate; }
96
+ });
97
+ Object.defineProperty(exports, "safeJsonParse", {
98
+ enumerable: true,
99
+ get: function () { return chunkFJZGG54N_cjs.safeJsonParse; }
100
+ });
101
+ Object.defineProperty(exports, "safeStableStringify", {
102
+ enumerable: true,
103
+ get: function () { return chunkT7PU2V7X_cjs.safeStableStringify; }
104
+ });
@@ -1,3 +1,12 @@
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
1
10
  import{Nullish,KeepNull,KeepUndef,AnyFunction,NormalizeEmptyArraysRecursive,RemoveEmptyArrayElements,FixNeverArrayRecursive,IfNotExtends,IfExtends,IsAny,NumberRangeUnion,Prettify,OrArr,Extends,AndArr,TypedArray,WebApiObjects,IntlObjects}from'@rzl-zone/ts-types-plus';type NormalizeInputToNumberArrayUnRecursive<T>=T extends string|bigint|boolean|number|Nullish?T:HasNonNumberLikeNonNullish<T>;
2
11
  /** Detects whether `T` contains any number-like type (`string | number | bigint`).
3
12
  *
@@ -1627,4 +1636,4 @@ declare function toStringDeep(input?:null|undefined,options?:ToStringDeepOptions
1627
1636
  * toStringDeepForce([1, "a", { b: 2 }], false);
1628
1637
  * // ➔ [1, "a", { b: 2 }]
1629
1638
  */
1630
- declare function toStringDeepForce<T>(value:unknown,forceToString:false|"stringOrNumber"|"primitives"|"all"):T;export{cleanParsedData,convertType,dedupeArray,extractDigits,filterNilArray,parseCurrencyString,parseCustomDate,removeObjectPaths,safeJsonParse,safeStableStringify,toBooleanContent,toBooleanContentDeep,toBooleanExplicit,toBooleanLoose,toNumberArrayUnRecursive,toNumberDeep,toStringArrayUnRecursive,toStringDeep,toStringDeepForce};
1639
+ declare function toStringDeepForce<T>(value:unknown,forceToString:false|"stringOrNumber"|"primitives"|"all"):T;export{cleanParsedData,convertType,dedupeArray,extractDigits,filterNilArray,parseCurrencyString,parseCustomDate,removeObjectPaths,safeJsonParse,safeStableStringify,toBooleanContent,toBooleanContentDeep,toBooleanExplicit,toBooleanLoose,toNumberArrayUnRecursive,toNumberDeep,toStringArrayUnRecursive,toStringDeep,toStringDeepForce};
@@ -1 +1,25 @@
1
- export{convertType,dedupeArray,removeObjectPaths,toBooleanContent,toBooleanContentDeep,toBooleanExplicit,toBooleanLoose,toNumberArrayUnRecursive,toNumberDeep,toStringDeep,toStringDeepForce}from"../chunk-FWCKOJZM.js";import"../chunk-5IGC6PBH.js";export{filterNilArray,toStringArrayUnRecursive}from"../chunk-OI5XKNZO.js";import"../chunk-GQR4R5WY.js";export{parseCurrencyString}from"../chunk-IRFL4MAX.js";import"../chunk-3IBQ5MOM.js";import"../chunk-W2WNBUDE.js";import"../chunk-SBKGWRS5.js";export{cleanParsedData,extractDigits,parseCustomDate,safeJsonParse}from"../chunk-2CQX5CBG.js";import"../chunk-NBZWMBO6.js";import"../chunk-6JFCSH7J.js";import"../chunk-CKTLUNWX.js";import"../chunk-YWHHVDT4.js";export{safeStableStringify}from"../chunk-PET42Z7W.js";import"../chunk-QNKGP5DY.js";import"../chunk-CMW2TBOQ.js";
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ export { convertType, dedupeArray, removeObjectPaths, toBooleanContent, toBooleanContentDeep, toBooleanExplicit, toBooleanLoose, toNumberArrayUnRecursive, toNumberDeep, toStringDeep, toStringDeepForce } from '../chunk-FWCKOJZM.js';
11
+ import '../chunk-5IGC6PBH.js';
12
+ export { filterNilArray, toStringArrayUnRecursive } from '../chunk-OI5XKNZO.js';
13
+ import '../chunk-GQR4R5WY.js';
14
+ export { parseCurrencyString } from '../chunk-IRFL4MAX.js';
15
+ import '../chunk-3IBQ5MOM.js';
16
+ import '../chunk-W2WNBUDE.js';
17
+ import '../chunk-SBKGWRS5.js';
18
+ export { cleanParsedData, extractDigits, parseCustomDate, safeJsonParse } from '../chunk-2CQX5CBG.js';
19
+ import '../chunk-NBZWMBO6.js';
20
+ import '../chunk-6JFCSH7J.js';
21
+ import '../chunk-CKTLUNWX.js';
22
+ import '../chunk-YWHHVDT4.js';
23
+ export { safeStableStringify } from '../chunk-PET42Z7W.js';
24
+ import '../chunk-QNKGP5DY.js';
25
+ import '../chunk-CMW2TBOQ.js';
@@ -1 +1,32 @@
1
- "use strict";var e=require("../chunk-EL6A35UR.cjs");require("../chunk-VJDDGRIK.cjs"),require("../chunk-HYRQMTRH.cjs"),require("../chunk-PZQ6I4JJ.cjs"),Object.defineProperty(exports,"disableUserInteraction",{enumerable:!0,get:function(){return e.disableUserInteraction}}),Object.defineProperty(exports,"enableUserInteraction",{enumerable:!0,get:function(){return e.enableUserInteraction}}),Object.defineProperty(exports,"removeElementFocus",{enumerable:!0,get:function(){return e.removeElementFocus}}),Object.defineProperty(exports,"scrollToTop",{enumerable:!0,get:function(){return e.scrollToTop}});
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ 'use strict';
11
+
12
+ var chunkEL6A35UR_cjs = require('../chunk-EL6A35UR.cjs');
13
+ require('../chunk-VJDDGRIK.cjs');
14
+ require('../chunk-HYRQMTRH.cjs');
15
+ require('../chunk-PZQ6I4JJ.cjs');
16
+
17
+ Object.defineProperty(exports, "disableUserInteraction", {
18
+ enumerable: true,
19
+ get: function () { return chunkEL6A35UR_cjs.disableUserInteraction; }
20
+ });
21
+ Object.defineProperty(exports, "enableUserInteraction", {
22
+ enumerable: true,
23
+ get: function () { return chunkEL6A35UR_cjs.enableUserInteraction; }
24
+ });
25
+ Object.defineProperty(exports, "removeElementFocus", {
26
+ enumerable: true,
27
+ get: function () { return chunkEL6A35UR_cjs.removeElementFocus; }
28
+ });
29
+ Object.defineProperty(exports, "scrollToTop", {
30
+ enumerable: true,
31
+ get: function () { return chunkEL6A35UR_cjs.scrollToTop; }
32
+ });
@@ -1,3 +1,12 @@
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
1
10
  /** ----------------------------------------------------------
2
11
  * * ***Utility: `disableUserInteraction`.***
3
12
  * ----------------------------------------------------------
@@ -124,4 +133,4 @@ timeout?:number|undefined;};
124
133
  * scrollToTop({ behavior: "fly", timeout: 123.55 });
125
134
  * // ➔ Fallback: behavior="smooth", timeout=123
126
135
  */
127
- declare const scrollToTop:(options?:ScrollToTopOptions)=>void;export{disableUserInteraction,enableUserInteraction,removeElementFocus,scrollToTop};
136
+ declare const scrollToTop:(options?:ScrollToTopOptions)=>void;export{disableUserInteraction,enableUserInteraction,removeElementFocus,scrollToTop};
@@ -1 +1,13 @@
1
- export{disableUserInteraction,enableUserInteraction,removeElementFocus,scrollToTop}from"../chunk-SIM77PU4.js";import"../chunk-L5RDAVVH.js";import"../chunk-SBKGWRS5.js";import"../chunk-CMW2TBOQ.js";
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ export { disableUserInteraction, enableUserInteraction, removeElementFocus, scrollToTop } from '../chunk-SIM77PU4.js';
11
+ import '../chunk-L5RDAVVH.js';
12
+ import '../chunk-SBKGWRS5.js';
13
+ import '../chunk-CMW2TBOQ.js';
@@ -1 +1,62 @@
1
- "use strict";var e=require("../chunk-XABCB3Y7.cjs");require("../chunk-2IOOEY45.cjs"),require("../chunk-5KJFVIQT.cjs"),require("../chunk-V45XJKHW.cjs"),require("../chunk-DVMHRLKP.cjs"),require("../chunk-E55EQK2U.cjs"),require("../chunk-HYRQMTRH.cjs"),require("../chunk-T7PU2V7X.cjs"),require("../chunk-UDA26MCU.cjs"),require("../chunk-PZQ6I4JJ.cjs"),Object.defineProperty(exports,"censorEmail",{enumerable:!0,get:function(){return e.censorEmail}}),Object.defineProperty(exports,"chunkString",{enumerable:!0,get:function(){return e.chunkString}}),Object.defineProperty(exports,"formatCurrency",{enumerable:!0,get:function(){return e.formatCurrency}}),Object.defineProperty(exports,"formatDateFns",{enumerable:!0,get:function(){return e.formatDateFns}}),Object.defineProperty(exports,"formatDateIntl",{enumerable:!0,get:function(){return e.formatDateIntl}}),Object.defineProperty(exports,"formatDateTime",{enumerable:!0,get:function(){return e.formatDateTime}}),Object.defineProperty(exports,"formatNumber",{enumerable:!0,get:function(){return e.formatNumber}}),Object.defineProperty(exports,"formatPhoneNumber",{enumerable:!0,get:function(){return e.formatPhoneNumber}}),Object.defineProperty(exports,"getGMTOffset",{enumerable:!0,get:function(){return e.getGMTOffset}}),Object.defineProperty(exports,"truncateString",{enumerable:!0,get:function(){return e.truncateString}});
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ 'use strict';
11
+
12
+ var chunkXABCB3Y7_cjs = require('../chunk-XABCB3Y7.cjs');
13
+ require('../chunk-2IOOEY45.cjs');
14
+ require('../chunk-5KJFVIQT.cjs');
15
+ require('../chunk-V45XJKHW.cjs');
16
+ require('../chunk-DVMHRLKP.cjs');
17
+ require('../chunk-E55EQK2U.cjs');
18
+ require('../chunk-HYRQMTRH.cjs');
19
+ require('../chunk-T7PU2V7X.cjs');
20
+ require('../chunk-UDA26MCU.cjs');
21
+ require('../chunk-PZQ6I4JJ.cjs');
22
+
23
+ Object.defineProperty(exports, "censorEmail", {
24
+ enumerable: true,
25
+ get: function () { return chunkXABCB3Y7_cjs.censorEmail; }
26
+ });
27
+ Object.defineProperty(exports, "chunkString", {
28
+ enumerable: true,
29
+ get: function () { return chunkXABCB3Y7_cjs.chunkString; }
30
+ });
31
+ Object.defineProperty(exports, "formatCurrency", {
32
+ enumerable: true,
33
+ get: function () { return chunkXABCB3Y7_cjs.formatCurrency; }
34
+ });
35
+ Object.defineProperty(exports, "formatDateFns", {
36
+ enumerable: true,
37
+ get: function () { return chunkXABCB3Y7_cjs.formatDateFns; }
38
+ });
39
+ Object.defineProperty(exports, "formatDateIntl", {
40
+ enumerable: true,
41
+ get: function () { return chunkXABCB3Y7_cjs.formatDateIntl; }
42
+ });
43
+ Object.defineProperty(exports, "formatDateTime", {
44
+ enumerable: true,
45
+ get: function () { return chunkXABCB3Y7_cjs.formatDateTime; }
46
+ });
47
+ Object.defineProperty(exports, "formatNumber", {
48
+ enumerable: true,
49
+ get: function () { return chunkXABCB3Y7_cjs.formatNumber; }
50
+ });
51
+ Object.defineProperty(exports, "formatPhoneNumber", {
52
+ enumerable: true,
53
+ get: function () { return chunkXABCB3Y7_cjs.formatPhoneNumber; }
54
+ });
55
+ Object.defineProperty(exports, "getGMTOffset", {
56
+ enumerable: true,
57
+ get: function () { return chunkXABCB3Y7_cjs.getGMTOffset; }
58
+ });
59
+ Object.defineProperty(exports, "truncateString", {
60
+ enumerable: true,
61
+ get: function () { return chunkXABCB3Y7_cjs.truncateString; }
62
+ });
@@ -1,3 +1,12 @@
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
1
10
  import{NumberFormat,CountryCode}from'libphonenumber-js';import{OverrideTypes,ExtractStrict,Prettify,OmitStrict,AnyString}from'@rzl-zone/ts-types-plus';import{FormatOptions,Locale}from'date-fns';type NegativeFormatOptionCustom={
2
11
  /** Custom formatter function for the final formatted negative string.
3
12
  * If provided, it ***OVERRIDES*** style & space entirely. */
@@ -2103,4 +2112,4 @@ declare const formatDateTime:(date:string|Date|null|undefined,format?:string)=>s
2103
2112
  * getGMTOffset(123);
2104
2113
  * // ➔ "0"
2105
2114
  */
2106
- declare const getGMTOffset:(date?:string|Date|null)=>string;export{censorEmail,chunkString,formatCurrency,formatDateFns,formatDateIntl,formatDateTime,formatNumber,formatPhoneNumber,getGMTOffset,truncateString};
2115
+ declare const getGMTOffset:(date?:string|Date|null)=>string;export{censorEmail,chunkString,formatCurrency,formatDateFns,formatDateIntl,formatDateTime,formatNumber,formatPhoneNumber,getGMTOffset,truncateString};
@@ -1 +1,19 @@
1
- export{censorEmail,chunkString,formatCurrency,formatDateFns,formatDateIntl,formatDateTime,formatNumber,formatPhoneNumber,getGMTOffset,truncateString}from"../chunk-YKPSRP5G.js";import"../chunk-T2T7K3KR.js";import"../chunk-IRFL4MAX.js";import"../chunk-3IBQ5MOM.js";import"../chunk-WVSPXFTY.js";import"../chunk-W2WNBUDE.js";import"../chunk-SBKGWRS5.js";import"../chunk-PET42Z7W.js";import"../chunk-QNKGP5DY.js";import"../chunk-CMW2TBOQ.js";
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ export { censorEmail, chunkString, formatCurrency, formatDateFns, formatDateIntl, formatDateTime, formatNumber, formatPhoneNumber, getGMTOffset, truncateString } from '../chunk-YKPSRP5G.js';
11
+ import '../chunk-T2T7K3KR.js';
12
+ import '../chunk-IRFL4MAX.js';
13
+ import '../chunk-3IBQ5MOM.js';
14
+ import '../chunk-WVSPXFTY.js';
15
+ import '../chunk-W2WNBUDE.js';
16
+ import '../chunk-SBKGWRS5.js';
17
+ import '../chunk-PET42Z7W.js';
18
+ import '../chunk-QNKGP5DY.js';
19
+ import '../chunk-CMW2TBOQ.js';
@@ -1 +1,38 @@
1
- "use strict";var e=require("../chunk-5757UBXJ.cjs");require("../chunk-DVMHRLKP.cjs");var r=require("../chunk-BAV5T2E3.cjs");require("../chunk-T7PU2V7X.cjs"),require("../chunk-UDA26MCU.cjs"),require("../chunk-PZQ6I4JJ.cjs"),Object.defineProperty(exports,"getRandomItem",{enumerable:!0,get:function(){return e.getRandomItem}}),Object.defineProperty(exports,"randomInt",{enumerable:!0,get:function(){return e.randomInt}}),Object.defineProperty(exports,"randomIntByLength",{enumerable:!0,get:function(){return e.randomIntByLength}}),Object.defineProperty(exports,"randomStr",{enumerable:!0,get:function(){return e.randomStr}}),Object.defineProperty(exports,"noop",{enumerable:!0,get:function(){return r.noop}});
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ 'use strict';
11
+
12
+ var chunk5757UBXJ_cjs = require('../chunk-5757UBXJ.cjs');
13
+ require('../chunk-DVMHRLKP.cjs');
14
+ var chunkBAV5T2E3_cjs = require('../chunk-BAV5T2E3.cjs');
15
+ require('../chunk-T7PU2V7X.cjs');
16
+ require('../chunk-UDA26MCU.cjs');
17
+ require('../chunk-PZQ6I4JJ.cjs');
18
+
19
+ Object.defineProperty(exports, "getRandomItem", {
20
+ enumerable: true,
21
+ get: function () { return chunk5757UBXJ_cjs.getRandomItem; }
22
+ });
23
+ Object.defineProperty(exports, "randomInt", {
24
+ enumerable: true,
25
+ get: function () { return chunk5757UBXJ_cjs.randomInt; }
26
+ });
27
+ Object.defineProperty(exports, "randomIntByLength", {
28
+ enumerable: true,
29
+ get: function () { return chunk5757UBXJ_cjs.randomIntByLength; }
30
+ });
31
+ Object.defineProperty(exports, "randomStr", {
32
+ enumerable: true,
33
+ get: function () { return chunk5757UBXJ_cjs.randomStr; }
34
+ });
35
+ Object.defineProperty(exports, "noop", {
36
+ enumerable: true,
37
+ get: function () { return chunkBAV5T2E3_cjs.noop; }
38
+ });
@@ -1,3 +1,12 @@
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
1
10
  import{NullToUndefined,FixNeverArrayRecursive,IfNonEmptyArray,Extends}from'@rzl-zone/ts-types-plus';
2
11
  /** ---------------------------------
3
12
  * * ***Utility: `getRandomItem`.***
@@ -181,4 +190,4 @@ declare const randomStr:(options?:OptionsRandomStr)=>string;
181
190
  * callback();
182
191
  * // ➔ undefined
183
192
  */
184
- declare const noop:()=>void;export{getRandomItem,noop,randomInt,randomIntByLength,randomStr};
193
+ declare const noop:()=>void;export{getRandomItem,noop,randomInt,randomIntByLength,randomStr};
@@ -1 +1,15 @@
1
- export{getRandomItem,randomInt,randomIntByLength,randomStr}from"../chunk-DEZZUYE2.js";import"../chunk-WVSPXFTY.js";export{noop}from"../chunk-YWHHVDT4.js";import"../chunk-PET42Z7W.js";import"../chunk-QNKGP5DY.js";import"../chunk-CMW2TBOQ.js";
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ export { getRandomItem, randomInt, randomIntByLength, randomStr } from '../chunk-DEZZUYE2.js';
11
+ import '../chunk-WVSPXFTY.js';
12
+ export { noop } from '../chunk-YWHHVDT4.js';
13
+ import '../chunk-PET42Z7W.js';
14
+ import '../chunk-QNKGP5DY.js';
15
+ import '../chunk-CMW2TBOQ.js';
package/dist/index.d.ts CHANGED
@@ -1,13 +1,40 @@
1
- /// <reference path="./urls/index.d.ts" />
2
- /// <reference path="./tailwind/index.d.ts" />
3
- /// <reference path="./strings/index.d.ts" />
4
- /// <reference path="./promises/index.d.ts" />
5
- /// <reference path="./predicates/index.d.ts" />
6
- /// <reference path="./parsers/index.d.ts" />
7
- /// <reference path="./operations/index.d.ts" />
8
- /// <reference path="./next/index.d.ts" />
9
- /// <reference path="./generators/index.d.ts" />
10
- /// <reference path="./formatters/index.d.ts" />
11
- /// <reference path="./events/index.d.ts" />
12
- /// <reference path="./conversions/index.d.ts" />
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ //! References Paths:
13
11
  /// <reference path="./assertions/index.d.ts" />
12
+ /// <reference path="./conversions/index.d.ts" />
13
+ /// <reference path="./events/index.d.ts" />
14
+ /// <reference path="./formatters/index.d.ts" />
15
+ /// <reference path="./generators/index.d.ts" />
16
+ /// <reference path="./next/index.d.ts" />
17
+ /// <reference path="./next/server/index.d.ts" />
18
+ /// <reference path="./operations/index.d.ts" />
19
+ /// <reference path="./parsers/index.d.ts" />
20
+ /// <reference path="./predicates/index.d.ts" />
21
+ /// <reference path="./promises/index.d.ts" />
22
+ /// <reference path="./strings/index.d.ts" />
23
+ /// <reference path="./tailwind/index.d.ts" />
24
+ /// <reference path="./urls/index.d.ts" />
25
+
26
+ //! Exported Types:
27
+ export * from "./assertions/index";
28
+ export * from "./conversions/index";
29
+ export * from "./events/index";
30
+ export * from "./formatters/index";
31
+ export * from "./generators/index";
32
+ export * from "./next/index";
33
+ export * from "./next/server/index";
34
+ export * from "./operations/index";
35
+ export * from "./parsers/index";
36
+ export * from "./predicates/index";
37
+ export * from "./promises/index";
38
+ export * from "./strings/index";
39
+ export * from "./tailwind/index";
40
+ export * from "./urls/index";
@@ -1,3 +1,12 @@
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
1
10
  import{NonPlainObject}from'@rzl-zone/ts-types-plus';
2
11
  /** ---------------------------------------------------------------------------
3
12
  * * ***Type Options for {@link getPreciseType | `getPreciseType`}.***
@@ -101,7 +110,7 @@ includeNaN?:boolean;};
101
110
  * isNumber("42");
102
111
  * // ➔ false
103
112
  */
104
- declare const isNumber:(value:unknown,options?:IsNumberOptions)=>value is number;type HasKeys<T>=keyof T extends never?false:true;
113
+ declare const isNumber:(value:unknown,options?:IsNumberOptions)=>value is number;type IsHasKeysObject<T>=keyof T extends never?false:true;
105
114
  /** ----------------------------------------------------------
106
115
  * * ***Utility type: `IsPlainObjectResult`.***
107
116
  * ----------------------------------------------------------
@@ -110,7 +119,7 @@ declare const isNumber:(value:unknown,options?:IsNumberOptions)=>value is number
110
119
  * - If `T` is `unknown`, the resulting type is `Record<PropertyKey, unknown> & T`.
111
120
  * - If `T` is an object:
112
121
  * - If it is a non-plain object (class instance, built-in object, etc.), the result is `never`.
113
- * - If it has no keys (`HasKeys<T>` checked by **{@link HasKeys}** is false), the result is `Record<PropertyKey, unknown> & T`.
122
+ * - If it has no keys (`IsHasKeysObject<T>` checked by **{@link IsHasKeysObject}** is false), the result is `Record<PropertyKey, unknown> & T`.
114
123
  * - Otherwise, the result is `T` itself.
115
124
  * - For any other types, the result is `never`.
116
125
  * @template T - The input type to be asserted as a plain object.
@@ -126,7 +135,7 @@ declare const isNumber:(value:unknown,options?:IsNumberOptions)=>value is number
126
135
  * // ➔ never
127
136
  * ```
128
137
  */
129
- type IsPlainObjectResult<T>=unknown extends T?Record<PropertyKey,unknown>& T:T extends object?T extends NonPlainObject?never:HasKeys<T>extends false?Record<PropertyKey,unknown>& T:T:Extract<T,Record<PropertyKey,unknown>>;
138
+ type IsPlainObjectResult<T>=unknown extends T?Record<PropertyKey,unknown>& T:T extends object?T extends NonPlainObject?never:IsHasKeysObject<T>extends false?Record<PropertyKey,unknown>& T:T:Extract<T,Record<PropertyKey,unknown>>;
130
139
  /** ----------------------------------------------------------
131
140
  * * ***Type guard: `isPlainObject`.***
132
141
  * ----------------------------------------------------------
@@ -166,4 +175,4 @@ type IsPlainObjectResult<T>=unknown extends T?Record<PropertyKey,unknown>& T:T e
166
175
  * isPlainObject(new String("x"));
167
176
  * // ➔ false
168
177
  */
169
- declare function isPlainObject<T>(value:T):value is IsPlainObjectResult<T>;declare function isPlainObject<T>(value:T):value is NonNullable<Extract<T,Record<PropertyKey,unknown>>>;export{type GetPreciseTypeOptions as G,type IsNumberOptions as I,type IsPlainObjectResult as a,isPlainObject as b,getPreciseType as g,isNumber as i};
178
+ declare function isPlainObject<T>(value:T):value is IsPlainObjectResult<T>;declare function isPlainObject<T>(value:T):value is NonNullable<Extract<T,Record<PropertyKey,unknown>>>;export{type GetPreciseTypeOptions as G,type IsNumberOptions as I,type IsPlainObjectResult as a,isPlainObject as b,type IsHasKeysObject as c,getPreciseType as g,isNumber as i};