@imaginario27/air-ui-utils 1.2.0 → 1.2.2
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.
- package/CHANGELOG.md +203 -0
- package/package.json +7 -7
- package/utils/numbers.ts +30 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this package are documented in this file.
|
|
4
|
+
|
|
5
|
+
Historical releases were reconstructed from git history (GitHub repository) and npm publish dates.
|
|
6
|
+
Future releases will include detailed entries generated with Changesets.
|
|
7
|
+
|
|
8
|
+
## 1.2.0 - 2026-03-18
|
|
9
|
+
|
|
10
|
+
Release type: minor.
|
|
11
|
+
Commits found in range: 1.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
1. update dependencies and improve toggles ([a119bf4](https://github.com/imaginario27/air-ui/commit/a119bf4396147b8e24652682ada438744416c0b1))
|
|
16
|
+
|
|
17
|
+
- Package: @imaginario27/air-ui-utils.
|
|
18
|
+
|
|
19
|
+
## 1.1.1 - 2026-02-18
|
|
20
|
+
|
|
21
|
+
Release type: minor.
|
|
22
|
+
Commits found in range: 1.
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
1. Improves breadcrumbs, fixes tab styling issues and adds new functionalities to tabs an tables. ([6f35018](https://github.com/imaginario27/air-ui/commit/6f35018388a750e726ce95570c77d6b9c05deb8f))
|
|
27
|
+
|
|
28
|
+
- Package: @imaginario27/air-ui-utils.
|
|
29
|
+
|
|
30
|
+
## 1.0.14 - 2026-02-09
|
|
31
|
+
|
|
32
|
+
Release type: patch.
|
|
33
|
+
Commits found in range: 1.
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
|
|
37
|
+
1. add transitions to dropdowns and modals ([9c837a5](https://github.com/imaginario27/air-ui/commit/9c837a567265118b6607e9633632ed8e7a216fad))
|
|
38
|
+
|
|
39
|
+
- Package: @imaginario27/air-ui-utils.
|
|
40
|
+
|
|
41
|
+
## 1.0.13 - 2026-02-06
|
|
42
|
+
|
|
43
|
+
Release type: patch.
|
|
44
|
+
Commits found in range: 1.
|
|
45
|
+
|
|
46
|
+
### Added
|
|
47
|
+
|
|
48
|
+
1. adds missing utils docs pages and fixes general issues ([3f31a47](https://github.com/imaginario27/air-ui/commit/3f31a477d1bb1c04b2065b940093cfa59c6089ae))
|
|
49
|
+
|
|
50
|
+
- Package: @imaginario27/air-ui-utils.
|
|
51
|
+
|
|
52
|
+
## 1.0.12 - 2026-02-05
|
|
53
|
+
|
|
54
|
+
Release type: patch.
|
|
55
|
+
Commits found in range: 0.
|
|
56
|
+
|
|
57
|
+
### Changed
|
|
58
|
+
|
|
59
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
60
|
+
|
|
61
|
+
- Package: @imaginario27/air-ui-utils.
|
|
62
|
+
|
|
63
|
+
## 1.0.11 - 2026-02-04
|
|
64
|
+
|
|
65
|
+
Release type: patch.
|
|
66
|
+
Commits found in range: 1.
|
|
67
|
+
|
|
68
|
+
### Fixed
|
|
69
|
+
|
|
70
|
+
1. removes export depedencies and jsPDF + bumps package versions ([9139e12](https://github.com/imaginario27/air-ui/commit/9139e1221a00638c4cdb8021006c7276d2ccaed5))
|
|
71
|
+
|
|
72
|
+
- Package: @imaginario27/air-ui-utils.
|
|
73
|
+
|
|
74
|
+
## 1.0.10 - 2026-02-02
|
|
75
|
+
|
|
76
|
+
Release type: patch.
|
|
77
|
+
Commits found in range: 0.
|
|
78
|
+
|
|
79
|
+
### Changed
|
|
80
|
+
|
|
81
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
82
|
+
|
|
83
|
+
- Package: @imaginario27/air-ui-utils.
|
|
84
|
+
|
|
85
|
+
## 1.0.9 - 2026-02-02
|
|
86
|
+
|
|
87
|
+
Release type: patch.
|
|
88
|
+
Commits found in range: 1.
|
|
89
|
+
|
|
90
|
+
### Added
|
|
91
|
+
|
|
92
|
+
1. Add utils docs pages + Updates components props ([6f65f04](https://github.com/imaginario27/air-ui/commit/6f65f044b0ccc85dcc00f3ba6735232ce957a02b))
|
|
93
|
+
|
|
94
|
+
- Package: @imaginario27/air-ui-utils.
|
|
95
|
+
|
|
96
|
+
## 1.0.8 - 2026-01-31
|
|
97
|
+
|
|
98
|
+
Release type: patch.
|
|
99
|
+
Commits found in range: 4.
|
|
100
|
+
|
|
101
|
+
### Added
|
|
102
|
+
|
|
103
|
+
1. Replaces the Nuxt MDI icon module with Nuxt Icon module ([b3343f1](https://github.com/imaginario27/air-ui/commit/b3343f152ee8726f4312059428bec15097b64ce8))
|
|
104
|
+
2. improve getting started pages and UI components ([999f965](https://github.com/imaginario27/air-ui/commit/999f9654e821630af762593dc712d47a46913e35))
|
|
105
|
+
|
|
106
|
+
### Fixed
|
|
107
|
+
|
|
108
|
+
1. Fixes packages bump version ([7fe0732](https://github.com/imaginario27/air-ui/commit/7fe0732ec573c05b08c687f802c7c4e5c3a78c24))
|
|
109
|
+
|
|
110
|
+
### Changed
|
|
111
|
+
|
|
112
|
+
1. Bumps package version ([0eaefbc](https://github.com/imaginario27/air-ui/commit/0eaefbcbe5fe8cbcf3b6297a80873687a631258b))
|
|
113
|
+
|
|
114
|
+
- Package: @imaginario27/air-ui-utils.
|
|
115
|
+
|
|
116
|
+
## 1.0.7 - 2025-12-10
|
|
117
|
+
|
|
118
|
+
Release type: patch.
|
|
119
|
+
Commits found in range: 0.
|
|
120
|
+
|
|
121
|
+
### Changed
|
|
122
|
+
|
|
123
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
124
|
+
|
|
125
|
+
- Package: @imaginario27/air-ui-utils.
|
|
126
|
+
|
|
127
|
+
## 1.0.6 - 2025-12-10
|
|
128
|
+
|
|
129
|
+
Release type: patch.
|
|
130
|
+
Commits found in range: 0.
|
|
131
|
+
|
|
132
|
+
### Changed
|
|
133
|
+
|
|
134
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
135
|
+
|
|
136
|
+
- Package: @imaginario27/air-ui-utils.
|
|
137
|
+
|
|
138
|
+
## 1.0.5 - 2025-12-09
|
|
139
|
+
|
|
140
|
+
Release type: patch.
|
|
141
|
+
Commits found in range: 0.
|
|
142
|
+
|
|
143
|
+
### Changed
|
|
144
|
+
|
|
145
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
146
|
+
|
|
147
|
+
- Package: @imaginario27/air-ui-utils.
|
|
148
|
+
|
|
149
|
+
## 1.0.4 - 2025-12-09
|
|
150
|
+
|
|
151
|
+
Release type: patch.
|
|
152
|
+
Commits found in range: 0.
|
|
153
|
+
|
|
154
|
+
### Changed
|
|
155
|
+
|
|
156
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
157
|
+
|
|
158
|
+
- Package: @imaginario27/air-ui-utils.
|
|
159
|
+
|
|
160
|
+
## 1.0.3 - 2025-12-09
|
|
161
|
+
|
|
162
|
+
Release type: patch.
|
|
163
|
+
Commits found in range: 0.
|
|
164
|
+
|
|
165
|
+
### Changed
|
|
166
|
+
|
|
167
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
168
|
+
|
|
169
|
+
- Package: @imaginario27/air-ui-utils.
|
|
170
|
+
|
|
171
|
+
## 1.0.2 - 2025-12-07
|
|
172
|
+
|
|
173
|
+
Release type: patch.
|
|
174
|
+
Commits found in range: 0.
|
|
175
|
+
|
|
176
|
+
### Changed
|
|
177
|
+
|
|
178
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
179
|
+
|
|
180
|
+
- Package: @imaginario27/air-ui-utils.
|
|
181
|
+
|
|
182
|
+
## 1.0.1 - 2025-12-07
|
|
183
|
+
|
|
184
|
+
Release type: patch.
|
|
185
|
+
Commits found in range: 1.
|
|
186
|
+
|
|
187
|
+
### Changed
|
|
188
|
+
|
|
189
|
+
1. Init ([f153db6](https://github.com/imaginario27/air-ui/commit/f153db6d125daee38fd029ac4bcdb81190893024))
|
|
190
|
+
|
|
191
|
+
- Package: @imaginario27/air-ui-utils.
|
|
192
|
+
|
|
193
|
+
## 1.0.0 - 2025-12-05
|
|
194
|
+
|
|
195
|
+
Release type: initial.
|
|
196
|
+
Commits found in range: 0.
|
|
197
|
+
|
|
198
|
+
### Changed
|
|
199
|
+
|
|
200
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
201
|
+
|
|
202
|
+
- Package: @imaginario27/air-ui-utils.
|
|
203
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imaginario27/air-ui-utils",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"author": "imaginario27",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://air-ui.netlify.app/",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"typecheck": "vue-tsc --noEmit -p tsconfig.typecheck.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"nuxt": "4.
|
|
25
|
-
"vue": "3.5.
|
|
26
|
-
"vue-router": "5.0.
|
|
24
|
+
"nuxt": "4.4.2",
|
|
25
|
+
"vue": "3.5.30",
|
|
26
|
+
"vue-router": "5.0.4"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@nuxt/test-utils": "4.0.0",
|
|
30
|
-
"@vitest/coverage-v8": "4.0
|
|
31
|
-
"happy-dom": "20.
|
|
30
|
+
"@vitest/coverage-v8": "4.1.0",
|
|
31
|
+
"happy-dom": "20.8.4",
|
|
32
32
|
"prettier": "3.8.1",
|
|
33
33
|
"ts-node": "10.9.2",
|
|
34
34
|
"typescript": "5.9.3",
|
|
35
|
-
"vitest": "4.0
|
|
35
|
+
"vitest": "4.1.0"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/utils/numbers.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a number into a string with thousands separators using Intl locale rules.
|
|
3
|
+
*
|
|
4
|
+
* @param value - Number to format
|
|
5
|
+
* @param locale - Optional locale (default: 'es-ES')
|
|
6
|
+
* @returns Formatted string with thousands separators
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* formatNumberWithThousands(1234567)
|
|
10
|
+
* // "1.234.567"
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* formatNumberWithThousands(1234567.89, 'en-US')
|
|
14
|
+
* // "1,234,567.89"
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* formatNumberWithThousands(1234.56, 'de-DE')
|
|
18
|
+
* // "1.234,56"
|
|
19
|
+
*/
|
|
20
|
+
export const formatNumberWithThousands = (
|
|
21
|
+
value: number,
|
|
22
|
+
locale: string = 'en-GB'
|
|
23
|
+
): string => {
|
|
24
|
+
if (!Number.isFinite(value)) return 'Not a valid number'
|
|
25
|
+
|
|
26
|
+
return value.toLocaleString(locale, {
|
|
27
|
+
minimumFractionDigits: 0,
|
|
28
|
+
maximumFractionDigits: 20
|
|
29
|
+
})
|
|
30
|
+
}
|