Commit 2b62863
fix(pivot-grid): fix pivot grid localization (#17246)
* Initial plan
* feat(pivot-grid): localize fullDate dimension display with shortDate format
When IgxPivotDateDimension is used with fullDate enabled and no
custom memberFunction, attach a locale-aware formatter that formats
leaf-level date values using {dateStyle: 'short'} via Intl.DateTimeFormat.
The formatter is added to a new optional IPivotDimension.formatter
property and applied in the row dimension rendering layer only,
so data keys, sorting, and filtering are unaffected.
Agent-Logs-Url: https://github.com/IgniteUI/igniteui-angular/sessions/0e38c414-30cb-4920-a7ea-3bc9882a866b
Co-authored-by: Hristo313 <57346540+Hristo313@users.noreply.github.com>
* chore: revert package-lock.json to original state
Agent-Logs-Url: https://github.com/IgniteUI/igniteui-angular/sessions/0e38c414-30cb-4920-a7ea-3bc9882a866b
Co-authored-by: Hristo313 <57346540+Hristo313@users.noreply.github.com>
* refactor(pivot-grid): improve readability of date formatter and test assertion
Agent-Logs-Url: https://github.com/IgniteUI/igniteui-angular/sessions/0e38c414-30cb-4920-a7ea-3bc9882a866b
Co-authored-by: Hristo313 <57346540+Hristo313@users.noreply.github.com>
* fix(pivot-grid): address review comments on formatter type safety and date parsing
Agent-Logs-Url: https://github.com/IgniteUI/igniteui-angular/sessions/fc2cee95-07d2-43e3-873c-8aafce84bc93
Co-authored-by: Hristo313 <57346540+Hristo313@users.noreply.github.com>
* refactor(pivot-grid): simplify formatter coercion to use nullish coalescing
Agent-Logs-Url: https://github.com/IgniteUI/igniteui-angular/sessions/fc2cee95-07d2-43e3-873c-8aafce84bc93
Co-authored-by: Hristo313 <57346540+Hristo313@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* fix(pivot-grid): widen formatter return type to string | null | undefined
Agent-Logs-Url: https://github.com/IgniteUI/igniteui-angular/sessions/3b0f8373-547b-4ca5-9b05-35e30e883bcb
Co-authored-by: Hristo313 <57346540+Hristo313@users.noreply.github.com>
* fix(pivot-grid): address remaining review comments on formatter and date dimension guards
Agent-Logs-Url: https://github.com/IgniteUI/igniteui-angular/sessions/4bfb1bbe-9cd9-4dd5-bc5a-ddb4c8c46b41
Co-authored-by: Hristo313 <57346540+Hristo313@users.noreply.github.com>
* feat(pivot-grid): apply formatter to column dimension headers in createColumnForDimension
Agent-Logs-Url: https://github.com/IgniteUI/igniteui-angular/sessions/87c1c6cd-af16-479a-abed-db7a37432579
Co-authored-by: Hristo313 <57346540+Hristo313@users.noreply.github.com>
* fix(pivot-grid): revert copilot fix line
* fix(pivot-grid): update with fixes
* fix(pivot-grid): update with fixes
* fix(pivot-grid): fix date dimension headers being one cycle behind on locale change and add CHANGELOG entry
Agent-Logs-Url: https://github.com/IgniteUI/igniteui-angular/sessions/6927bc1b-5a3d-48bc-a8ba-94843c57edca
Co-authored-by: Hristo313 <57346540+Hristo313@users.noreply.github.com>
* fix(pivot-grid): fix the locale change
* Changes before error encountered
Agent-Logs-Url: https://github.com/IgniteUI/igniteui-angular/sessions/1e9ee9c9-0e29-4027-a550-3b3af4814838
* fix(pivot-grid): revert package-lock.json changes
* fix(pivot-grid): add small fixes
* fix(pivot-grid): fix columns locale cycle behind
* fix(pivot-grid): revert pipes changes
* fix(pivot-grid): fix failing test build
* fix(pivot-grid): update with copilot suggestions
* fix(pivot-grid): fix copilot suggestions
* fix(pivot-grid): return old setupColumns logic
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Hristo313 <57346540+Hristo313@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Hristo Hristov <HHristov@infragistics.com>1 parent a7dd688 commit 2b62863
6 files changed
Lines changed: 92 additions & 14 deletions
File tree
- projects/igniteui-angular/grids
- core/src
- pivot-grid/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
218 | 221 | | |
219 | 222 | | |
220 | 223 | | |
| |||
Lines changed: 38 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| |||
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
145 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
146 | 154 | | |
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
150 | | - | |
151 | | - | |
| 158 | + | |
| 159 | + | |
152 | 160 | | |
153 | 161 | | |
154 | 162 | | |
| |||
159 | 167 | | |
160 | 168 | | |
161 | 169 | | |
162 | | - | |
163 | | - | |
| 170 | + | |
| 171 | + | |
164 | 172 | | |
165 | 173 | | |
166 | 174 | | |
| |||
171 | 179 | | |
172 | 180 | | |
173 | 181 | | |
174 | | - | |
175 | | - | |
| 182 | + | |
| 183 | + | |
176 | 184 | | |
177 | 185 | | |
178 | 186 | | |
| |||
182 | 190 | | |
183 | 191 | | |
184 | 192 | | |
185 | | - | |
| 193 | + | |
186 | 194 | | |
187 | | - | |
| 195 | + | |
188 | 196 | | |
189 | 197 | | |
190 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
191 | 218 | | |
192 | 219 | | |
193 | 220 | | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
146 | 162 | | |
147 | 163 | | |
148 | 164 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2495 | 2495 | | |
2496 | 2496 | | |
2497 | 2497 | | |
2498 | | - | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
2499 | 2502 | | |
2500 | 2503 | | |
2501 | 2504 | | |
| |||
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 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 | + | |
142 | 166 | | |
143 | 167 | | |
144 | 168 | | |
| |||
1241 | 1265 | | |
1242 | 1266 | | |
1243 | 1267 | | |
1244 | | - | |
| 1268 | + | |
| 1269 | + | |
1245 | 1270 | | |
1246 | 1271 | | |
1247 | 1272 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
187 | 191 | | |
188 | 192 | | |
189 | 193 | | |
| |||
0 commit comments