@absoluteui/helpers 0.0.0-stage → 0.13.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 (221) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +5 -0
  3. package/README.md +47 -2
  4. package/SECURITY.md +102 -0
  5. package/dist/array/compare.d.ts +8 -0
  6. package/dist/array/compare.js +2 -0
  7. package/dist/array/index.d.ts +328 -0
  8. package/dist/array/index.js +2 -0
  9. package/dist/array/tree.d.ts +48 -0
  10. package/dist/array/tree.js +2 -0
  11. package/dist/async/batch.d.ts +103 -0
  12. package/dist/async/batch.js +2 -0
  13. package/dist/async/concurrency.d.ts +92 -0
  14. package/dist/async/concurrency.js +2 -0
  15. package/dist/async/control.d.ts +77 -0
  16. package/dist/async/control.js +2 -0
  17. package/dist/async/index.d.ts +8 -0
  18. package/dist/async/index.js +2 -0
  19. package/dist/async/signal.d.ts +95 -0
  20. package/dist/async/signal.js +2 -0
  21. package/dist/boolean/index.d.ts +83 -0
  22. package/dist/boolean/index.js +2 -0
  23. package/dist/business-calendar/days.d.ts +397 -0
  24. package/dist/business-calendar/days.js +2 -0
  25. package/dist/business-calendar/describe.d.ts +45 -0
  26. package/dist/business-calendar/describe.js +2 -0
  27. package/dist/business-calendar/engine.d.ts +305 -0
  28. package/dist/business-calendar/engine.js +2 -0
  29. package/dist/business-calendar/hours.d.ts +96 -0
  30. package/dist/business-calendar/hours.js +2 -0
  31. package/dist/business-calendar/index.d.ts +29 -0
  32. package/dist/business-calendar/index.js +2 -0
  33. package/dist/business-calendar/internal.d.ts +44 -0
  34. package/dist/business-calendar/internal.js +2 -0
  35. package/dist/business-calendar/rules.d.ts +260 -0
  36. package/dist/business-calendar/rules.js +2 -0
  37. package/dist/color/index.d.ts +200 -0
  38. package/dist/color/index.js +2 -0
  39. package/dist/color/named.d.ts +4 -0
  40. package/dist/color/named.js +2 -0
  41. package/dist/compare/index.d.ts +186 -0
  42. package/dist/compare/index.js +2 -0
  43. package/dist/convert/index.d.ts +152 -0
  44. package/dist/convert/index.js +2 -0
  45. package/dist/csv/index.d.ts +6 -0
  46. package/dist/csv/index.js +2 -0
  47. package/dist/csv/parse.d.ts +85 -0
  48. package/dist/csv/parse.js +12 -0
  49. package/dist/csv/stringify.d.ts +48 -0
  50. package/dist/csv/stringify.js +5 -0
  51. package/dist/date/calendar.d.ts +339 -0
  52. package/dist/date/calendar.js +2 -0
  53. package/dist/date/format.d.ts +66 -0
  54. package/dist/date/format.js +2 -0
  55. package/dist/date/index.d.ts +26 -0
  56. package/dist/date/index.js +2 -0
  57. package/dist/date/intervals.d.ts +110 -0
  58. package/dist/date/intervals.js +2 -0
  59. package/dist/date/intl-cache.d.ts +10 -0
  60. package/dist/date/intl-cache.js +2 -0
  61. package/dist/date/locale.d.ts +58 -0
  62. package/dist/date/locale.js +2 -0
  63. package/dist/date/plain-date.d.ts +105 -0
  64. package/dist/date/plain-date.js +2 -0
  65. package/dist/date/plain-time.d.ts +121 -0
  66. package/dist/date/plain-time.js +2 -0
  67. package/dist/date/zone.d.ts +121 -0
  68. package/dist/date/zone.js +2 -0
  69. package/dist/decimal/index.d.ts +149 -0
  70. package/dist/decimal/index.js +2 -0
  71. package/dist/ds/avl.d.ts +50 -0
  72. package/dist/ds/avl.js +2 -0
  73. package/dist/ds/bitset.d.ts +46 -0
  74. package/dist/ds/bitset.js +2 -0
  75. package/dist/ds/bloom.d.ts +41 -0
  76. package/dist/ds/bloom.js +2 -0
  77. package/dist/ds/caches.d.ts +141 -0
  78. package/dist/ds/caches.js +2 -0
  79. package/dist/ds/disjoint-set.d.ts +38 -0
  80. package/dist/ds/disjoint-set.js +2 -0
  81. package/dist/ds/emitter.d.ts +53 -0
  82. package/dist/ds/emitter.js +2 -0
  83. package/dist/ds/graph.d.ts +84 -0
  84. package/dist/ds/graph.js +2 -0
  85. package/dist/ds/heap.d.ts +49 -0
  86. package/dist/ds/heap.js +2 -0
  87. package/dist/ds/index.d.ts +20 -0
  88. package/dist/ds/index.js +2 -0
  89. package/dist/ds/internal.d.ts +19 -0
  90. package/dist/ds/internal.js +2 -0
  91. package/dist/ds/interval-tree.d.ts +49 -0
  92. package/dist/ds/interval-tree.js +2 -0
  93. package/dist/ds/linked-list.d.ts +54 -0
  94. package/dist/ds/linked-list.js +2 -0
  95. package/dist/ds/maps.d.ts +89 -0
  96. package/dist/ds/maps.js +2 -0
  97. package/dist/ds/ring.d.ts +99 -0
  98. package/dist/ds/ring.js +2 -0
  99. package/dist/ds/sorted.d.ts +104 -0
  100. package/dist/ds/sorted.js +2 -0
  101. package/dist/ds/stack.d.ts +28 -0
  102. package/dist/ds/stack.js +2 -0
  103. package/dist/ds/trie.d.ts +84 -0
  104. package/dist/ds/trie.js +2 -0
  105. package/dist/duration/index.d.ts +146 -0
  106. package/dist/duration/index.js +2 -0
  107. package/dist/encoding/index.d.ts +144 -0
  108. package/dist/encoding/index.js +2 -0
  109. package/dist/error/index.d.ts +316 -0
  110. package/dist/error/index.js +2 -0
  111. package/dist/fn/index.d.ts +129 -0
  112. package/dist/fn/index.js +2 -0
  113. package/dist/fn/memo.d.ts +46 -0
  114. package/dist/fn/memo.js +2 -0
  115. package/dist/fn/timing.d.ts +64 -0
  116. package/dist/fn/timing.js +2 -0
  117. package/dist/http/headers.d.ts +160 -0
  118. package/dist/http/headers.js +2 -0
  119. package/dist/http/index.d.ts +10 -0
  120. package/dist/http/index.js +2 -0
  121. package/dist/http/problem.d.ts +37 -0
  122. package/dist/http/problem.js +2 -0
  123. package/dist/http/response.d.ts +43 -0
  124. package/dist/http/response.js +2 -0
  125. package/dist/http/status.d.ts +169 -0
  126. package/dist/http/status.js +2 -0
  127. package/dist/index.d.ts +34 -0
  128. package/dist/index.js +2 -0
  129. package/dist/internal/keys.d.ts +6 -0
  130. package/dist/internal/keys.js +2 -0
  131. package/dist/is/index.d.ts +219 -0
  132. package/dist/is/index.js +2 -0
  133. package/dist/json/index.d.ts +9 -0
  134. package/dist/json/index.js +2 -0
  135. package/dist/json/internal.d.ts +12 -0
  136. package/dist/json/internal.js +2 -0
  137. package/dist/json/ndjson.d.ts +28 -0
  138. package/dist/json/ndjson.js +4 -0
  139. package/dist/json/parse.d.ts +45 -0
  140. package/dist/json/parse.js +2 -0
  141. package/dist/json/patch.d.ts +62 -0
  142. package/dist/json/patch.js +2 -0
  143. package/dist/json/pointer.d.ts +43 -0
  144. package/dist/json/pointer.js +2 -0
  145. package/dist/json/stringify.d.ts +42 -0
  146. package/dist/json/stringify.js +2 -0
  147. package/dist/linq/enumerable.d.ts +208 -0
  148. package/dist/linq/enumerable.js +2 -0
  149. package/dist/linq/index.d.ts +6 -0
  150. package/dist/linq/index.js +2 -0
  151. package/dist/linq/operators.d.ts +503 -0
  152. package/dist/linq/operators.js +2 -0
  153. package/dist/number/core.d.ts +164 -0
  154. package/dist/number/core.js +2 -0
  155. package/dist/number/format.d.ts +80 -0
  156. package/dist/number/format.js +2 -0
  157. package/dist/number/index.d.ts +12 -0
  158. package/dist/number/index.js +2 -0
  159. package/dist/number/internal.d.ts +18 -0
  160. package/dist/number/internal.js +2 -0
  161. package/dist/number/parse.d.ts +45 -0
  162. package/dist/number/parse.js +2 -0
  163. package/dist/number/words.d.ts +19 -0
  164. package/dist/number/words.js +2 -0
  165. package/dist/object/basic.d.ts +130 -0
  166. package/dist/object/basic.js +2 -0
  167. package/dist/object/deep.d.ts +90 -0
  168. package/dist/object/deep.js +2 -0
  169. package/dist/object/diff.d.ts +57 -0
  170. package/dist/object/diff.js +2 -0
  171. package/dist/object/index.d.ts +8 -0
  172. package/dist/object/index.js +2 -0
  173. package/dist/object/internal.d.ts +21 -0
  174. package/dist/object/internal.js +2 -0
  175. package/dist/object/path.d.ts +17 -0
  176. package/dist/object/path.js +2 -0
  177. package/dist/random/core.d.ts +14 -0
  178. package/dist/random/core.js +2 -0
  179. package/dist/random/index.d.ts +167 -0
  180. package/dist/random/index.js +2 -0
  181. package/dist/random/seeded.d.ts +27 -0
  182. package/dist/random/seeded.js +2 -0
  183. package/dist/sanitize/index.d.ts +8 -0
  184. package/dist/sanitize/index.js +2 -0
  185. package/dist/sanitize/pii.d.ts +48 -0
  186. package/dist/sanitize/pii.js +2 -0
  187. package/dist/sanitize/records.d.ts +100 -0
  188. package/dist/sanitize/records.js +2 -0
  189. package/dist/sanitize/text.d.ts +101 -0
  190. package/dist/sanitize/text.js +2 -0
  191. package/dist/set/index.d.ts +162 -0
  192. package/dist/set/index.js +2 -0
  193. package/dist/stats/index.d.ts +190 -0
  194. package/dist/stats/index.js +2 -0
  195. package/dist/string/index.d.ts +494 -0
  196. package/dist/string/index.js +8 -0
  197. package/dist/string/internal.d.ts +33 -0
  198. package/dist/string/internal.js +2 -0
  199. package/dist/string/words.d.ts +14 -0
  200. package/dist/string/words.js +2 -0
  201. package/dist/timezone/index.d.ts +76 -0
  202. package/dist/timezone/index.js +2 -0
  203. package/dist/url/index.d.ts +178 -0
  204. package/dist/url/index.js +2 -0
  205. package/dist/validate/builders.d.ts +6 -0
  206. package/dist/validate/builders.js +2 -0
  207. package/dist/validate/formats.d.ts +237 -0
  208. package/dist/validate/formats.js +2 -0
  209. package/dist/validate/index.d.ts +13 -0
  210. package/dist/validate/index.js +2 -0
  211. package/dist/validate/schema.d.ts +220 -0
  212. package/dist/validate/schema.js +2 -0
  213. package/dist/zip/index.d.ts +8 -0
  214. package/dist/zip/index.js +2 -0
  215. package/dist/zip/internal.d.ts +69 -0
  216. package/dist/zip/internal.js +2 -0
  217. package/dist/zip/reader.d.ts +56 -0
  218. package/dist/zip/reader.js +2 -0
  219. package/dist/zip/writer.d.ts +65 -0
  220. package/dist/zip/writer.js +2 -0
  221. package/package.json +150 -4
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,5 @@
1
+ AbsoluteUI
2
+ Copyright 2026 Kasadara Technology Solutions Pvt Ltd
3
+
4
+ This product includes software developed by Kasadara Technology Solutions Pvt Ltd
5
+ (https://aui.kasadara.com/).
package/README.md CHANGED
@@ -1,3 +1,48 @@
1
- # Temporary Holding Version
1
+ # @absoluteui/helpers
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Pure, zero-dependency helper functions and data structures for browsers, Node.js, workers, and server rendering. Each module is its own tree-shakeable subpath import with no side effects, and works on plain data, so results serialize cleanly.
4
+
5
+ ## What's in the package
6
+
7
+ - **`@absoluteui/helpers/array`**: Grouping, chunking, sorting, searching, pagination, immutable edits, and tree building for arrays.
8
+ - **`@absoluteui/helpers/async`**: Abortable sleep, timeouts, retry with backoff, concurrency limits, batching, and polling.
9
+ - **`@absoluteui/helpers/boolean`**: Lenient boolean parsing, logic operators, and accessible labels.
10
+ - **`@absoluteui/helpers/business-calendar`**: Weekends, holidays, business days, business hours, SLA deadlines, and business-day differences.
11
+ - **`@absoluteui/helpers/color`**: Colour parsing and conversion (hex, rgb, hsl, oklch) and WCAG contrast checks.
12
+ - **`@absoluteui/helpers/compare`**: Comparers, natural ordering, equality, range checks, coalescing, and pattern matching.
13
+ - **`@absoluteui/helpers/convert`**: Strict conversions that return undefined instead of NaN or Invalid Date.
14
+ - **`@absoluteui/helpers/csv`**: RFC 4180 CSV parsing (including streaming) and generation with formula-injection protection.
15
+ - **`@absoluteui/helpers/date`**: Date-only values, calendar arithmetic, fiscal periods, weeks, intervals, formatting, and parsing.
16
+ - **`@absoluteui/helpers/decimal`**: Exact fixed-point decimal arithmetic for money, with rounding modes and allocation.
17
+ - **`@absoluteui/helpers/ds`**: Data structures: queues, heaps, caches, sorted maps, tries, graphs, interval trees, and more.
18
+ - **`@absoluteui/helpers/duration`**: ISO 8601 durations: parsing, arithmetic, and spoken-friendly formatting.
19
+ - **`@absoluteui/helpers/encoding`**: UTF-8, Base64, Base64URL, hex, data URLs, and CRC-32/Adler-32/FNV-1a checksums.
20
+ - **`@absoluteui/helpers/error`**: Error classes with stable codes, Result values, safe serialization, and field-error maps for forms.
21
+ - **`@absoluteui/helpers/fn`**: Debounce, throttle, memoize, once, pipe, and compose.
22
+ - **`@absoluteui/helpers/http`**: Status reason phrases and messages for every status, failure categories, Problem Details (RFC 9457), header parsers, and response validation.
23
+ - **`@absoluteui/helpers/is`**: Type guards and assertion functions.
24
+ - **`@absoluteui/helpers/json`**: Safe JSON parsing with limits, canonical output, JSON Pointer, JSON Patch, Merge Patch, and NDJSON.
25
+ - **`@absoluteui/helpers/linq`**: Lazy LINQ: pipeable operators and a fluent Enumerable with the .NET surface.
26
+ - **`@absoluteui/helpers/number`**: Exact rounding, clamping, percentages, locale-aware parsing and formatting, bytes, ordinals, and number words.
27
+ - **`@absoluteui/helpers/object`**: Pick, omit, deep get/set/merge/clone/equal, diff and patch, flatten and unflatten, all prototype-pollution safe.
28
+ - **`@absoluteui/helpers/random`**: Crypto-backed random numbers, picks, shuffles, UUID v4/v7, IDs, passwords, and a seeded generator for tests.
29
+ - **`@absoluteui/helpers/sanitize`**: Record cleanup, file-name sanitizing, invisible-character removal, PII masking, and redaction.
30
+ - **`@absoluteui/helpers/set`**: Union, intersection, difference, and relations for arrays and Sets, with key selectors.
31
+ - **`@absoluteui/helpers/stats`**: Mean, median, percentiles, deviation, histograms, correlation, and regression.
32
+ - **`@absoluteui/helpers/string`**: Case conversion, grapheme-safe truncation, slugs, masking, templates, fuzzy search, and escaping.
33
+ - **`@absoluteui/helpers/timezone`**: IANA time-zone conversion, offsets, and explicit daylight-saving gap and overlap handling.
34
+ - **`@absoluteui/helpers/url`**: Query strings, URL joining, scheme allow-lists, same-origin checks, and open-redirect protection.
35
+ - **`@absoluteui/helpers/validate`**: Format validators (email, IBAN, card, phone, postal code, and more) and a small typed schema validator.
36
+ - **`@absoluteui/helpers/zip`**: Streaming ZIP writer and reader with zip-slip and zip-bomb protection.
37
+
38
+ ## Browser support
39
+
40
+ Chrome 116, Edge 116, Firefox 125, Safari (macOS) 17, Safari (iOS and iPadOS) 18.3, or later. Details: [Browser support](https://aui.kasadara.com/docs/quality/browser-support/).
41
+
42
+ ## Documentation
43
+
44
+ Full documentation: [aui.kasadara.com/docs/api/helpers/](https://aui.kasadara.com/docs/api/helpers/)
45
+
46
+ ## License
47
+
48
+ Licensed under the [Apache License 2.0](https://aui.kasadara.com/license/). Copyright (c) 2026 Kasadara Technology Solutions Pvt Ltd; see the LICENSE and NOTICE files in this package. AbsoluteUI is open source, Kasadara's contribution to the open-source community; the source is at https://github.com/Kasadara-Technology-Solutions-Pvt-Ltd/AbsoluteUI. Report vulnerabilities as described in the [Security Policy](https://aui.kasadara.com/security/).
package/SECURITY.md ADDED
@@ -0,0 +1,102 @@
1
+ # Security Policy
2
+
3
+ **Effective date:** 24 November 2026
4
+
5
+ AbsoluteUI is licensed under the [Apache License 2.0](LICENSE). Security fixes are delivered through official AbsoluteUI releases. This policy describes how to report vulnerabilities and which versions receive fixes.
6
+
7
+ ---
8
+
9
+ ## Supported Versions
10
+
11
+ | Version | Security fixes | Bug fixes |
12
+ |---|---|---|
13
+ | Latest `0.x` minor (currently `0.13`, before `1.0`), latest patch | Yes | Yes |
14
+ | Older `0.x` minors and patches | No. Upgrade to the latest `0.x` minor. | No |
15
+ | Latest major (`1.x`), latest minor | Yes | Yes |
16
+ | Latest major (`1.x`), older minors | No. Upgrade to the latest minor. | No |
17
+ | Last `0.x` minor after `1.0` is released | Yes, for 12 months after the `1.0` release | No |
18
+ | Older majors | No | No |
19
+
20
+ End-of-support dates for each major version are announced at least 6 months in advance on https://aui.kasadara.com.
21
+
22
+ The current release line is `0.13`. Until `1.0`, security fixes ship as patch releases of the latest `0.x` minor; always use the latest one.
23
+
24
+ ## Reporting a Vulnerability
25
+
26
+ **Do not report security vulnerabilities through public issues, discussions, or social media.**
27
+
28
+ Report privately through either channel:
29
+
30
+ - **GitHub (preferred):** open a private vulnerability report at https://github.com/Kasadara-Technology-Solutions-Pvt-Ltd/AbsoluteUI/security/advisories/new (the **Report a vulnerability** button on the repository's **Security** tab). Only you and the AbsoluteUI maintainers can see it, and we can work on the fix and the advisory with you there.
31
+ - **Email:** security@kasadara.com
32
+
33
+ The email contact is also published in `/.well-known/security.txt` on each AbsoluteUI website.
34
+
35
+ Include, where possible:
36
+
37
+ - affected package(s) and version(s);
38
+ - affected component(s);
39
+ - vulnerability type (for example XSS, CSP bypass, sanitizer bypass, or information exposure);
40
+ - steps to reproduce or a minimal proof of concept;
41
+ - browser(s) and version(s) used;
42
+ - impact assessment;
43
+ - any known workaround.
44
+
45
+ Do not include real personal data or production credentials in reports.
46
+
47
+ ## Response Process
48
+
49
+ | Stage | Target |
50
+ |---|---|
51
+ | Acknowledgement of report | Within 3 business days |
52
+ | Initial triage and severity assessment (CVSS v3.1 or later) | Within 10 business days |
53
+ | Status updates to reporter | At least every 14 days until resolution |
54
+ | Fix release: Critical/High | Target 30 days from triage |
55
+ | Fix release: Medium/Low | Next scheduled release |
56
+
57
+ Targets are objectives, not guarantees. See Section 7 (Disclaimer of Warranty) of the [license](LICENSE).
58
+
59
+ ## Coordinated Disclosure
60
+
61
+ - We ask reporters to keep vulnerability details confidential until a fixed release and advisory are published, or until 90 days after the report, whichever comes first, unless both parties agree otherwise.
62
+ - We will credit reporters in the advisory unless they request anonymity.
63
+ - We will request a CVE identifier for qualifying vulnerabilities through GitHub, which is a CVE Numbering Authority.
64
+
65
+ ## Security Advisories
66
+
67
+ Advisories are published as GitHub security advisories at https://github.com/Kasadara-Technology-Solutions-Pvt-Ltd/AbsoluteUI/security/advisories and at https://aui.kasadara.com/advisory/. They include:
68
+
69
+ - affected packages and versions;
70
+ - fixed versions;
71
+ - CVSS severity and vector;
72
+ - description and impact;
73
+ - workarounds, where available;
74
+ - CVE identifier, where assigned;
75
+ - reporter credit.
76
+
77
+ ## Scope
78
+
79
+ **In scope:** the published packages `@absoluteui/core`, `@absoluteui/components`, `@absoluteui/theme`, `@absoluteui/icons`, `@absoluteui/utilities`, `@absoluteui/helpers`, and `@absoluteui/angular`, and the website https://aui.kasadara.com with its documentation (/docs/) and Theme Designer (/designer/) sections, also served at https://absoluteui.kasadara.com (the former addresses https://aui-docs.kasadara.com and https://aui-designer.kasadara.com only redirect to it).
80
+
81
+ **Out of scope:**
82
+
83
+ - vulnerabilities in consuming applications that do not originate in AbsoluteUI code;
84
+ - use of AbsoluteUI configurations explicitly documented as unsafe (for example consumer-allowlisted HTML elements or attributes; see the [security guide](https://aui.kasadara.com/docs/getting-started/security/));
85
+ - issues that only affect browsers outside the published supported-browser matrix;
86
+ - modified copies of AbsoluteUI, unless the issue is also present in an unmodified official release;
87
+ - findings from automated scanners without a demonstrated impact.
88
+
89
+ ## Safe Harbor
90
+
91
+ We will not pursue legal action against researchers who, in good faith:
92
+
93
+ - follow this policy;
94
+ - avoid privacy violations, data destruction, and service disruption;
95
+ - test only against their own installations and data;
96
+ - give us reasonable time to remediate before disclosure.
97
+
98
+ Analysis performed solely to identify and report a vulnerability under this policy is authorized for that purpose.
99
+
100
+ ## Contact
101
+
102
+ Kasadara Technology Solutions Pvt Ltd, 25, Avinashi Rd, TNHB Colony, Indira Nagar, Civil Aerodrome Post, Coimbatore, Tamil Nadu 641014, India. Security reports: security@kasadara.com. Other legal matters: legalops@kasadara.com.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Internal value ordering shared by `sortBy`, `topN`, `binarySearch`, and the `*By` aggregates.
3
+ * Nullish, `NaN`, and invalid dates are "empty" and sort together; other types order by a fixed type rank.
4
+ */
5
+ /** True for values that sort as empty (nullish, `NaN`, invalid `Date`). */
6
+ export declare function isEmptyKey(v: unknown): boolean;
7
+ /** Total order over mixed values; strings compare by UTF-16 code units unless a collator is given. */
8
+ export declare function compareNatural(a: unknown, b: unknown, collator?: Intl.Collator): number;
@@ -0,0 +1,2 @@
1
+ /*! AbsoluteUI @absoluteui/helpers v0.13.1 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
2
+ function s(n){if(n==null)return 0;switch(typeof n){case"boolean":return 1;case"number":return Number.isNaN(n)?0:2;case"bigint":return 2;case"string":return 3;default:return n instanceof Date?Number.isNaN(n.getTime())?0:4:5}}function o(n){return s(n)===0}function c(n,e,a){const r=s(n),i=s(e);if(r!==i)return r-i;switch(r){case 0:case 5:return 0;case 3:return a?a.compare(n,e):n===e?0:n<e?-1:1;case 4:return n.getTime()-e.getTime();default:{const t=n,u=e;return t===u?0:t<u?-1:t>u?1:0}}}export{c as compareNatural,o as isEmptyKey};