@imaginario27/air-ui-utils 1.2.2 → 1.2.3
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 +226 -203
- package/package.json +1 -1
- package/utils/counters.ts +2 -0
- package/utils/data.ts +2 -1
- package/utils/formValidation.ts +11 -1
- package/utils/pages.ts +2 -0
- package/models/constants/app.ts +0 -8
- package/models/constants/form.ts +0 -22
- package/models/constants/notifications.ts +0 -4
- package/models/enums/counters.ts +0 -4
- package/models/enums/pages.ts +0 -4
- package/models/types/pdfExportTable.ts +0 -6
- package/models/types/selects.ts +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,203 +1,226 @@
|
|
|
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.
|
|
9
|
-
|
|
10
|
-
Release type:
|
|
11
|
-
Commits found in range: 1.
|
|
12
|
-
|
|
13
|
-
###
|
|
14
|
-
|
|
15
|
-
1.
|
|
16
|
-
|
|
17
|
-
- Package: @imaginario27/air-ui-utils.
|
|
18
|
-
|
|
19
|
-
## 1.
|
|
20
|
-
|
|
21
|
-
Release type:
|
|
22
|
-
Commits found in range:
|
|
23
|
-
|
|
24
|
-
### Added
|
|
25
|
-
|
|
26
|
-
1.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
1.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
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.2 - 2026-04-07
|
|
9
|
+
|
|
10
|
+
Release type: patch.
|
|
11
|
+
Commits found in range: 1.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
1. add formatNumberWithThousands number util ([1c66034](https://github.com/imaginario27/air-ui/commit/1c660343c4718947e43c5393af2dc079f0ed176a))
|
|
16
|
+
|
|
17
|
+
- Package: @imaginario27/air-ui-utils.
|
|
18
|
+
|
|
19
|
+
## 1.2.1 - 2026-03-21
|
|
20
|
+
|
|
21
|
+
Release type: patch.
|
|
22
|
+
Commits found in range: 2.
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
1. update package versions ([c5a01a1](https://github.com/imaginario27/air-ui/commit/c5a01a186b047bceca41d6cf50d1f9da4e1aa15e))
|
|
27
|
+
2. add new TagsField and RulesField components + component fixes ([c8c125e](https://github.com/imaginario27/air-ui/commit/c8c125eb110eedc16f29706778578514bc28eb4f))
|
|
28
|
+
|
|
29
|
+
- Package: @imaginario27/air-ui-utils.
|
|
30
|
+
|
|
31
|
+
## 1.2.0 - 2026-03-18
|
|
32
|
+
|
|
33
|
+
Release type: minor.
|
|
34
|
+
Commits found in range: 1.
|
|
35
|
+
|
|
36
|
+
### Changed
|
|
37
|
+
|
|
38
|
+
1. update dependencies and improve toggles ([a119bf4](https://github.com/imaginario27/air-ui/commit/a119bf4396147b8e24652682ada438744416c0b1))
|
|
39
|
+
|
|
40
|
+
- Package: @imaginario27/air-ui-utils.
|
|
41
|
+
|
|
42
|
+
## 1.1.1 - 2026-02-18
|
|
43
|
+
|
|
44
|
+
Release type: minor.
|
|
45
|
+
Commits found in range: 1.
|
|
46
|
+
|
|
47
|
+
### Added
|
|
48
|
+
|
|
49
|
+
1. Improves breadcrumbs, fixes tab styling issues and adds new functionalities to tabs an tables. ([6f35018](https://github.com/imaginario27/air-ui/commit/6f35018388a750e726ce95570c77d6b9c05deb8f))
|
|
50
|
+
|
|
51
|
+
- Package: @imaginario27/air-ui-utils.
|
|
52
|
+
|
|
53
|
+
## 1.0.14 - 2026-02-09
|
|
54
|
+
|
|
55
|
+
Release type: patch.
|
|
56
|
+
Commits found in range: 1.
|
|
57
|
+
|
|
58
|
+
### Added
|
|
59
|
+
|
|
60
|
+
1. add transitions to dropdowns and modals ([9c837a5](https://github.com/imaginario27/air-ui/commit/9c837a567265118b6607e9633632ed8e7a216fad))
|
|
61
|
+
|
|
62
|
+
- Package: @imaginario27/air-ui-utils.
|
|
63
|
+
|
|
64
|
+
## 1.0.13 - 2026-02-06
|
|
65
|
+
|
|
66
|
+
Release type: patch.
|
|
67
|
+
Commits found in range: 1.
|
|
68
|
+
|
|
69
|
+
### Added
|
|
70
|
+
|
|
71
|
+
1. adds missing utils docs pages and fixes general issues ([3f31a47](https://github.com/imaginario27/air-ui/commit/3f31a477d1bb1c04b2065b940093cfa59c6089ae))
|
|
72
|
+
|
|
73
|
+
- Package: @imaginario27/air-ui-utils.
|
|
74
|
+
|
|
75
|
+
## 1.0.12 - 2026-02-05
|
|
76
|
+
|
|
77
|
+
Release type: patch.
|
|
78
|
+
Commits found in range: 0.
|
|
79
|
+
|
|
80
|
+
### Changed
|
|
81
|
+
|
|
82
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
83
|
+
|
|
84
|
+
- Package: @imaginario27/air-ui-utils.
|
|
85
|
+
|
|
86
|
+
## 1.0.11 - 2026-02-04
|
|
87
|
+
|
|
88
|
+
Release type: patch.
|
|
89
|
+
Commits found in range: 1.
|
|
90
|
+
|
|
91
|
+
### Fixed
|
|
92
|
+
|
|
93
|
+
1. removes export depedencies and jsPDF + bumps package versions ([9139e12](https://github.com/imaginario27/air-ui/commit/9139e1221a00638c4cdb8021006c7276d2ccaed5))
|
|
94
|
+
|
|
95
|
+
- Package: @imaginario27/air-ui-utils.
|
|
96
|
+
|
|
97
|
+
## 1.0.10 - 2026-02-02
|
|
98
|
+
|
|
99
|
+
Release type: patch.
|
|
100
|
+
Commits found in range: 0.
|
|
101
|
+
|
|
102
|
+
### Changed
|
|
103
|
+
|
|
104
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
105
|
+
|
|
106
|
+
- Package: @imaginario27/air-ui-utils.
|
|
107
|
+
|
|
108
|
+
## 1.0.9 - 2026-02-02
|
|
109
|
+
|
|
110
|
+
Release type: patch.
|
|
111
|
+
Commits found in range: 1.
|
|
112
|
+
|
|
113
|
+
### Added
|
|
114
|
+
|
|
115
|
+
1. Add utils docs pages + Updates components props ([6f65f04](https://github.com/imaginario27/air-ui/commit/6f65f044b0ccc85dcc00f3ba6735232ce957a02b))
|
|
116
|
+
|
|
117
|
+
- Package: @imaginario27/air-ui-utils.
|
|
118
|
+
|
|
119
|
+
## 1.0.8 - 2026-01-31
|
|
120
|
+
|
|
121
|
+
Release type: patch.
|
|
122
|
+
Commits found in range: 4.
|
|
123
|
+
|
|
124
|
+
### Added
|
|
125
|
+
|
|
126
|
+
1. Replaces the Nuxt MDI icon module with Nuxt Icon module ([b3343f1](https://github.com/imaginario27/air-ui/commit/b3343f152ee8726f4312059428bec15097b64ce8))
|
|
127
|
+
2. improve getting started pages and UI components ([999f965](https://github.com/imaginario27/air-ui/commit/999f9654e821630af762593dc712d47a46913e35))
|
|
128
|
+
|
|
129
|
+
### Fixed
|
|
130
|
+
|
|
131
|
+
1. Fixes packages bump version ([7fe0732](https://github.com/imaginario27/air-ui/commit/7fe0732ec573c05b08c687f802c7c4e5c3a78c24))
|
|
132
|
+
|
|
133
|
+
### Changed
|
|
134
|
+
|
|
135
|
+
1. Bumps package version ([0eaefbc](https://github.com/imaginario27/air-ui/commit/0eaefbcbe5fe8cbcf3b6297a80873687a631258b))
|
|
136
|
+
|
|
137
|
+
- Package: @imaginario27/air-ui-utils.
|
|
138
|
+
|
|
139
|
+
## 1.0.7 - 2025-12-10
|
|
140
|
+
|
|
141
|
+
Release type: patch.
|
|
142
|
+
Commits found in range: 0.
|
|
143
|
+
|
|
144
|
+
### Changed
|
|
145
|
+
|
|
146
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
147
|
+
|
|
148
|
+
- Package: @imaginario27/air-ui-utils.
|
|
149
|
+
|
|
150
|
+
## 1.0.6 - 2025-12-10
|
|
151
|
+
|
|
152
|
+
Release type: patch.
|
|
153
|
+
Commits found in range: 0.
|
|
154
|
+
|
|
155
|
+
### Changed
|
|
156
|
+
|
|
157
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
158
|
+
|
|
159
|
+
- Package: @imaginario27/air-ui-utils.
|
|
160
|
+
|
|
161
|
+
## 1.0.5 - 2025-12-09
|
|
162
|
+
|
|
163
|
+
Release type: patch.
|
|
164
|
+
Commits found in range: 0.
|
|
165
|
+
|
|
166
|
+
### Changed
|
|
167
|
+
|
|
168
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
169
|
+
|
|
170
|
+
- Package: @imaginario27/air-ui-utils.
|
|
171
|
+
|
|
172
|
+
## 1.0.4 - 2025-12-09
|
|
173
|
+
|
|
174
|
+
Release type: patch.
|
|
175
|
+
Commits found in range: 0.
|
|
176
|
+
|
|
177
|
+
### Changed
|
|
178
|
+
|
|
179
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
180
|
+
|
|
181
|
+
- Package: @imaginario27/air-ui-utils.
|
|
182
|
+
|
|
183
|
+
## 1.0.3 - 2025-12-09
|
|
184
|
+
|
|
185
|
+
Release type: patch.
|
|
186
|
+
Commits found in range: 0.
|
|
187
|
+
|
|
188
|
+
### Changed
|
|
189
|
+
|
|
190
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
191
|
+
|
|
192
|
+
- Package: @imaginario27/air-ui-utils.
|
|
193
|
+
|
|
194
|
+
## 1.0.2 - 2025-12-07
|
|
195
|
+
|
|
196
|
+
Release type: patch.
|
|
197
|
+
Commits found in range: 0.
|
|
198
|
+
|
|
199
|
+
### Changed
|
|
200
|
+
|
|
201
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
202
|
+
|
|
203
|
+
- Package: @imaginario27/air-ui-utils.
|
|
204
|
+
|
|
205
|
+
## 1.0.1 - 2025-12-07
|
|
206
|
+
|
|
207
|
+
Release type: patch.
|
|
208
|
+
Commits found in range: 1.
|
|
209
|
+
|
|
210
|
+
### Changed
|
|
211
|
+
|
|
212
|
+
1. Init ([f153db6](https://github.com/imaginario27/air-ui/commit/f153db6d125daee38fd029ac4bcdb81190893024))
|
|
213
|
+
|
|
214
|
+
- Package: @imaginario27/air-ui-utils.
|
|
215
|
+
|
|
216
|
+
## 1.0.0 - 2025-12-05
|
|
217
|
+
|
|
218
|
+
Release type: initial.
|
|
219
|
+
Commits found in range: 0.
|
|
220
|
+
|
|
221
|
+
### Changed
|
|
222
|
+
|
|
223
|
+
1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
|
|
224
|
+
|
|
225
|
+
- Package: @imaginario27/air-ui-utils.
|
|
226
|
+
|
package/package.json
CHANGED
package/utils/counters.ts
CHANGED
package/utils/data.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { SelectOption } from '../../air-ui-ds/models/types/selects'
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Creates a delay for a specified number of milliseconds.
|
|
3
5
|
*
|
|
@@ -42,7 +44,6 @@ export function getPaginatedData<T>(
|
|
|
42
44
|
return result.slice(start, end)
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
|
|
46
47
|
/**
|
|
47
48
|
* Converts an array of objects into SelectOption[] by mapping specified keys or transformation functions.
|
|
48
49
|
*
|
package/utils/formValidation.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
import { FieldError } from '../models/constants/form'
|
|
3
2
|
import type {
|
|
4
3
|
ArrayValidator,
|
|
5
4
|
CreateRulesFieldValidatorOptions,
|
|
@@ -7,6 +6,17 @@ import type {
|
|
|
7
6
|
RuleValidationValue,
|
|
8
7
|
} from '../models/types/formValidation'
|
|
9
8
|
|
|
9
|
+
// Centralized error messages for form validation
|
|
10
|
+
const FieldError = {
|
|
11
|
+
REQUIRED_FIELD: 'This field is required.',
|
|
12
|
+
REQUIRED_EMAIL: 'Email is required.',
|
|
13
|
+
INVALID_EMAIL: 'Invalid email address.',
|
|
14
|
+
REQUIRED_OPTION: 'Please select an option.',
|
|
15
|
+
INVALID_DATE_RANGE: 'Start date must be before or equal to end date',
|
|
16
|
+
PASSWORDS_DO_NOT_MATCH: 'Passwords do not match.',
|
|
17
|
+
INVALID_URL: 'Invalid URL.',
|
|
18
|
+
}
|
|
19
|
+
|
|
10
20
|
/**
|
|
11
21
|
* Validates a field value to ensure it is not empty, null, or undefined.
|
|
12
22
|
*
|
package/utils/pages.ts
CHANGED
package/models/constants/app.ts
DELETED
package/models/constants/form.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export const FieldMaxLength = {
|
|
3
|
-
FULLNAME: 80,
|
|
4
|
-
LASTNAME: 80,
|
|
5
|
-
EMAIL: 254,
|
|
6
|
-
PHONE: 15,
|
|
7
|
-
SUBJECT: 100,
|
|
8
|
-
MESSAGE: 500,
|
|
9
|
-
PASSWORD: 64,
|
|
10
|
-
SEARCH: 80,
|
|
11
|
-
DESCRIPTION: 400,
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const FieldError = {
|
|
15
|
-
REQUIRED_FIELD: 'This field is required.',
|
|
16
|
-
REQUIRED_EMAIL: 'Email is required.',
|
|
17
|
-
INVALID_EMAIL: 'Invalid email address.',
|
|
18
|
-
REQUIRED_OPTION: 'Please select an option.',
|
|
19
|
-
INVALID_DATE_RANGE: 'Start date must be before or equal to end date',
|
|
20
|
-
PASSWORDS_DO_NOT_MATCH: 'Passwords do not match.',
|
|
21
|
-
INVALID_URL: 'Invalid URL.',
|
|
22
|
-
}
|
package/models/enums/counters.ts
DELETED
package/models/enums/pages.ts
DELETED
package/models/types/selects.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface SelectOption {
|
|
2
|
-
id?: string | number
|
|
3
|
-
value: string | number
|
|
4
|
-
text?: string
|
|
5
|
-
icon?: any
|
|
6
|
-
customIcon?: string
|
|
7
|
-
userDisplayName?: string
|
|
8
|
-
userProfileImg?: string
|
|
9
|
-
imgUrl?: string
|
|
10
|
-
alt?: string
|
|
11
|
-
helpText?: string
|
|
12
|
-
to?: string
|
|
13
|
-
isExternal?: boolean
|
|
14
|
-
}
|