@spectrum-web-components/reactive-controllers 1.9.0 → 1.9.1-nightly.20251028214328

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 ADDED
@@ -0,0 +1,391 @@
1
+ # Change Log
2
+
3
+ ## 1.9.1-nightly.20251028214328
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @spectrum-web-components/progress-circle@1.9.1-nightly.20251028214328
9
+
10
+ ## 1.9.0
11
+
12
+ ### Patch Changes
13
+
14
+ - [#5730](https://github.com/adobe/spectrum-web-components/pull/5730) [`7d23140`](https://github.com/adobe/spectrum-web-components/commit/7d23140c21f0006ddea8a5cf39478ff36acbfbb8) Thanks [@caseyisonit](https://github.com/caseyisonit)! - - **Fixed**: Accessibility and caching in `PendingStateController`.
15
+ - **Fixed**: Updated progress circle to use `role="presentation"` for better accessibility compliance
16
+ - **Fixed**: Improved aria-label caching logic to better handle dynamic label changes
17
+ - **Added**: Documentation noting the controller is primarily used by `<sp-button>` component
18
+ - **Fixed**: Enhanced caching mechanism to preserve user-set aria-labels during pending states
19
+
20
+ These changes improve accessibility compliance and aria-label management for components using the pending state controller.
21
+
22
+ - Updated dependencies [[`7d23140`](https://github.com/adobe/spectrum-web-components/commit/7d23140c21f0006ddea8a5cf39478ff36acbfbb8)]:
23
+ - @spectrum-web-components/progress-circle@1.9.0
24
+
25
+ ## 1.8.0
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies []:
30
+ - @spectrum-web-components/progress-circle@1.8.0
31
+
32
+ ## 1.7.0
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies []:
37
+ - @spectrum-web-components/progress-circle@1.7.0
38
+
39
+ ## 1.6.0
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies []:
44
+ - @spectrum-web-components/progress-circle@1.6.0
45
+
46
+ ## 1.5.0
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies []:
51
+ - @spectrum-web-components/progress-circle@1.5.0
52
+
53
+ ## 1.4.0
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies []:
58
+ - @spectrum-web-components/progress-circle@1.4.0
59
+
60
+ ## 1.3.0
61
+
62
+ ### Minor Changes
63
+
64
+ - [#5031](https://github.com/adobe/spectrum-web-components/pull/5031) [`ea38ef0`](https://github.com/adobe/spectrum-web-components/commit/ea38ef0db33b251a054d50abf5cffc04e32f579f) Thanks [@nikkimk](https://github.com/nikkimk)! - Used WAI ARIA Authoring Practices Guide (APG) to make accessibility improvements for `<sp-action-menu>`, `<sp-menu>`, and `<sp-picker>`, including:
65
+ - Numpad keys now work with `<sp-picker>` and `<sp-action-menu>` -`<sp-action-menu>`'s `<sp-menu-item>` elements can now be read by a screen reader ([#4556](https://github.com/adobe/spectrum-web-components/issues/4556))
66
+ - `<sp-menu-item>` href can now be clicked by a screen reader ([#4997](https://github.com/adobe/spectrum-web-components/issues/4997))
67
+ - Opening a `<sp-action-menu>`, `<sp-menu>`, and `<sp-picker>` with a keyboard now sets focus on an item within the menu. ([#4557](https://github.com/adobe/spectrum-web-components/issues/4557))
68
+
69
+ See the following APG examples for more information:
70
+ - [Navigation Menu Example](https://www.w3.org/WAI/ARIA/apg/patterns/menubar/examples/menubar-navigation/)
71
+ - [Editor Menubar Example](https://www.w3.org/WAI/ARIA/apg/patterns/menubar/examples/menubar-editor/)
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies []:
76
+ - @spectrum-web-components/progress-circle@1.3.0
77
+
78
+ All notable changes to this project will be documented in this file.
79
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
80
+
81
+ # [1.2.0](https://github.com/adobe/spectrum-web-components/compare/v1.1.2...v1.2.0) (2025-02-27)
82
+
83
+ ### Bug Fixes
84
+
85
+ - **action menu:** keyboard accessibility omnibus ([#5031](https://github.com/adobe/spectrum-web-components/issues/5031)) ([ea38ef0](https://github.com/adobe/spectrum-web-components/commit/ea38ef0db33b251a054d50abf5cffc04e32f579f)), closes [#4623](https://github.com/adobe/spectrum-web-components/issues/4623)
86
+
87
+ ### Features
88
+
89
+ - **reactive-controllers:** Migrate to Colorjs from Tinycolor ([#4713](https://github.com/adobe/spectrum-web-components/issues/4713)) ([9d740f0](https://github.com/adobe/spectrum-web-components/commit/9d740f0c830aa44273097181e761e9a92d3df4be))
90
+
91
+ ## [1.1.2](https://github.com/adobe/spectrum-web-components/compare/v1.1.1...v1.1.2) (2025-02-12)
92
+
93
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
94
+
95
+ ## [1.1.1](https://github.com/adobe/spectrum-web-components/compare/v1.1.0...v1.1.1) (2025-01-29)
96
+
97
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
98
+
99
+ # [1.1.0](https://github.com/adobe/spectrum-web-components/compare/v1.0.3...v1.1.0) (2025-01-29)
100
+
101
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
102
+
103
+ ## [1.0.3](https://github.com/adobe/spectrum-web-components/compare/v1.0.1...v1.0.3) (2024-12-09)
104
+
105
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
106
+
107
+ ## [1.0.1](https://github.com/adobe/spectrum-web-components/compare/v1.0.0...v1.0.1) (2024-11-11)
108
+
109
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
110
+
111
+ # [1.0.0](https://github.com/adobe/spectrum-web-components/compare/v0.49.0...v1.0.0) (2024-10-31)
112
+
113
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
114
+
115
+ # [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)
116
+
117
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
118
+
119
+ ## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)
120
+
121
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
122
+
123
+ # [0.48.0](https://github.com/adobe/spectrum-web-components/compare/v0.47.2...v0.48.0) (2024-09-17)
124
+
125
+ ### Features
126
+
127
+ - **reactive-controller:** new pending state controller ([#4605](https://github.com/adobe/spectrum-web-components/issues/4605)) ([68baf94](https://github.com/adobe/spectrum-web-components/commit/68baf94f257b9c7525253819a2ed3c8fa1b6c408))
128
+
129
+ ## [0.47.2](https://github.com/adobe/spectrum-web-components/compare/v0.47.1...v0.47.2) (2024-09-03)
130
+
131
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
132
+
133
+ ## [0.47.1](https://github.com/adobe/spectrum-web-components/compare/v0.47.0...v0.47.1) (2024-08-27)
134
+
135
+ ### Bug Fixes
136
+
137
+ - **reactive-controllers:** update focusable element's tab-index to 0 on accepting focus ([#4630](https://github.com/adobe/spectrum-web-components/issues/4630)) ([d359e84](https://github.com/adobe/spectrum-web-components/commit/d359e844fb00ff3a52f7f4346038aa8d5b620025))
138
+
139
+ # [0.47.0](https://github.com/adobe/spectrum-web-components/compare/v0.46.0...v0.47.0) (2024-08-20)
140
+
141
+ ### Features
142
+
143
+ - **breadcrumbs:** add Breadcrumbs component ([#4578](https://github.com/adobe/spectrum-web-components/issues/4578)) ([acd4b5e](https://github.com/adobe/spectrum-web-components/commit/acd4b5e4401dad8cf26b50ee5dcda80a28b62999))
144
+
145
+ # [0.46.0](https://github.com/adobe/spectrum-web-components/compare/v0.45.0...v0.46.0) (2024-08-08)
146
+
147
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
148
+
149
+ # [0.45.0](https://github.com/adobe/spectrum-web-components/compare/v0.44.0...v0.45.0) (2024-07-30)
150
+
151
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
152
+
153
+ # [0.44.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.44.0) (2024-07-15)
154
+
155
+ ### Features
156
+
157
+ - **action-bar:** support for action-menus ([#3780](https://github.com/adobe/spectrum-web-components/issues/3780)) ([4aff599](https://github.com/adobe/spectrum-web-components/commit/4aff5995f6a22eefae0dd8e580d743c27ceb2c2d))
158
+
159
+ # [0.43.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.43.0) (2024-06-11)
160
+
161
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
162
+
163
+ ## [0.42.5](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.42.5) (2024-05-24)
164
+
165
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
166
+
167
+ ## [0.42.4](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.4) (2024-05-14)
168
+
169
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
170
+
171
+ ## [0.42.3](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.3) (2024-05-01)
172
+
173
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
174
+
175
+ ## [0.42.2](https://github.com/adobe/spectrum-web-components/compare/v0.42.1...v0.42.2) (2024-04-03)
176
+
177
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
178
+
179
+ ## [0.42.1](https://github.com/adobe/spectrum-web-components/compare/v0.42.0...v0.42.1) (2024-04-02)
180
+
181
+ ### Bug Fixes
182
+
183
+ - **reactive-controllers:** add DependencyManagerController ([c7f7dea](https://github.com/adobe/spectrum-web-components/commit/c7f7dead131c9c2594a181ac62294683b6c7fd63))
184
+
185
+ # [0.42.0](https://github.com/adobe/spectrum-web-components/compare/v0.41.2...v0.42.0) (2024-03-19)
186
+
187
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
188
+
189
+ ## [0.41.2](https://github.com/adobe/spectrum-web-components/compare/v0.41.1...v0.41.2) (2024-03-05)
190
+
191
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
192
+
193
+ ## [0.41.1](https://github.com/adobe/spectrum-web-components/compare/v0.41.0...v0.41.1) (2024-02-22)
194
+
195
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
196
+
197
+ # [0.41.0](https://github.com/adobe/spectrum-web-components/compare/v0.40.5...v0.41.0) (2024-02-13)
198
+
199
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
200
+
201
+ ## [0.40.5](https://github.com/adobe/spectrum-web-components/compare/v0.40.4...v0.40.5) (2024-02-05)
202
+
203
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
204
+
205
+ ## [0.40.4](https://github.com/adobe/spectrum-web-components/compare/v0.40.3...v0.40.4) (2024-01-29)
206
+
207
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
208
+
209
+ ## [0.40.3](https://github.com/adobe/spectrum-web-components/compare/v0.40.2...v0.40.3) (2024-01-11)
210
+
211
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
212
+
213
+ ## [0.40.2](https://github.com/adobe/spectrum-web-components/compare/v0.40.1...v0.40.2) (2023-12-18)
214
+
215
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
216
+
217
+ ## [0.40.1](https://github.com/adobe/spectrum-web-components/compare/v0.40.0...v0.40.1) (2023-12-05)
218
+
219
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
220
+
221
+ # [0.40.0](https://github.com/adobe/spectrum-web-components/compare/v0.39.4...v0.40.0) (2023-11-16)
222
+
223
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
224
+
225
+ ## [0.39.4](https://github.com/adobe/spectrum-web-components/compare/v0.39.3...v0.39.4) (2023-11-02)
226
+
227
+ ### Bug Fixes
228
+
229
+ - support numeric IDs when resolving elements ([f62bf0d](https://github.com/adobe/spectrum-web-components/commit/f62bf0d24191ef47a4d7f9172c40570e052808a2))
230
+
231
+ ## [0.39.3](https://github.com/adobe/spectrum-web-components/compare/v0.39.2...v0.39.3) (2023-10-18)
232
+
233
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
234
+
235
+ ## [0.39.2](https://github.com/adobe/spectrum-web-components/compare/v0.39.1...v0.39.2) (2023-10-13)
236
+
237
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
238
+
239
+ ## [0.39.1](https://github.com/adobe/spectrum-web-components/compare/v0.39.0...v0.39.1) (2023-10-06)
240
+
241
+ ### Bug Fixes
242
+
243
+ - **grid:** grid focusgroup fix on mutationObserver ([#3684](https://github.com/adobe/spectrum-web-components/issues/3684)) ([5d47db5](https://github.com/adobe/spectrum-web-components/commit/5d47db52b99ccd1cc58d9044781f3f1e38744bd6))
244
+
245
+ # [0.39.0](https://github.com/adobe/spectrum-web-components/compare/v0.38.0...v0.39.0) (2023-09-25)
246
+
247
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
248
+
249
+ # [0.38.0](https://github.com/adobe/spectrum-web-components/compare/v0.37.0...v0.38.0) (2023-09-05)
250
+
251
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
252
+
253
+ # [0.37.0](https://github.com/adobe/spectrum-web-components/compare/v0.36.0...v0.37.0) (2023-08-18)
254
+
255
+ ### Features
256
+
257
+ - **overlay:** ship Overlay API v2 ([67b5d1b](https://github.com/adobe/spectrum-web-components/commit/67b5d1b02e88dcb5b0b79b5a6c5ead92ad1a5aca))
258
+
259
+ # [0.36.0](https://github.com/adobe/spectrum-web-components/compare/v0.35.0...v0.36.0) (2023-08-18)
260
+
261
+ ### Bug Fixes
262
+
263
+ - added default focus in focus group ([cd59f18](https://github.com/adobe/spectrum-web-components/commit/cd59f180afacaa719c01a8001bf8a656b4bbcb80))
264
+ - added Mutation Observer in the tags workflow ([3af1861](https://github.com/adobe/spectrum-web-components/commit/3af1861a09aa7eac6cd4eb0dbb7cce8ab057efec))
265
+ - **reactive-controllers:** functionality debugged ([f98013b](https://github.com/adobe/spectrum-web-components/commit/f98013bceced7e4d2759c698cdff7f9fe1d43c68))
266
+ - **reactive-controllers:** handleItemMutation ([d0e32a2](https://github.com/adobe/spectrum-web-components/commit/d0e32a255483c605bbbfc804f1c56c401b00ffe9))
267
+ - removed disabled property check ([816732f](https://github.com/adobe/spectrum-web-components/commit/816732f03fb271dbefe3ac7a0412cd5ec6479635))
268
+ - removed mutation controller from tags and added to focusgroup ([aaa1bc0](https://github.com/adobe/spectrum-web-components/commit/aaa1bc04437585a0d8f30e885e076868ecb1defa))
269
+ - **tags:** corner cases handled ([8ec6b6a](https://github.com/adobe/spectrum-web-components/commit/8ec6b6a0288629e1006b5d1c3ee17d162dd97d23))
270
+ - **tags:** delete functionality working ([60e6c2e](https://github.com/adobe/spectrum-web-components/commit/60e6c2e92e30c833d572d34ad6d41e94568a40d6))
271
+ - **tags:** documented the function ([f97c7a7](https://github.com/adobe/spectrum-web-components/commit/f97c7a77eb1dce32f8ec3202fe839dd0a9f0fdc8))
272
+ - **tags:** handled corner cases ([55a95b7](https://github.com/adobe/spectrum-web-components/commit/55a95b757baf89cab4261d50c2cf279471e7ef01))
273
+ - **tags:** performed the suggested changes ([6e3ef36](https://github.com/adobe/spectrum-web-components/commit/6e3ef36e8f423f08c2537eb2d075bec4118f2e86))
274
+ - **tags:** removed comment ([771dc0e](https://github.com/adobe/spectrum-web-components/commit/771dc0e63617e29c6777eb7bf3470c46ac9f7d17))
275
+ - **tags:** some extra chnages ([45f1a9d](https://github.com/adobe/spectrum-web-components/commit/45f1a9d846e8d717bdd3fae999639b2419d53fc3))
276
+ - **tags:** some minor chnages ([36886fc](https://github.com/adobe/spectrum-web-components/commit/36886fc1fabecf23f99c5f23e8a9eae718f981b1))
277
+ - **tags:** suggested changes done ([8aca49e](https://github.com/adobe/spectrum-web-components/commit/8aca49e5249af235f20cf83cfee156336b3ca76f))
278
+
279
+ # [0.35.0](https://github.com/adobe/spectrum-web-components/compare/v0.34.0...v0.35.0) (2023-07-31)
280
+
281
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
282
+
283
+ # [0.34.0](https://github.com/adobe/spectrum-web-components/compare/v0.33.2...v0.34.0) (2023-07-11)
284
+
285
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
286
+
287
+ ## [0.33.2](https://github.com/adobe/spectrum-web-components/compare/v0.33.1...v0.33.2) (2023-06-14)
288
+
289
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
290
+
291
+ # [0.33.0](https://github.com/adobe/spectrum-web-components/compare/v0.32.0...v0.33.0) (2023-06-08)
292
+
293
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
294
+
295
+ # [0.32.0](https://github.com/adobe/spectrum-web-components/compare/v0.31.0...v0.32.0) (2023-06-01)
296
+
297
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
298
+
299
+ # [0.31.0](https://github.com/adobe/spectrum-web-components/compare/v0.30.0...v0.31.0) (2023-05-17)
300
+
301
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
302
+
303
+ # 0.30.0 (2023-05-03)
304
+
305
+ ### Bug Fixes
306
+
307
+ - add Grid pattern ([341f493](https://github.com/adobe/spectrum-web-components/commit/341f4932087487be47bde355d1b0894886ed44ad))
308
+ - add support for Element Resolution ([d6a65d0](https://github.com/adobe/spectrum-web-components/commit/d6a65d0ce26da864729e707f62683585fe5e49c4))
309
+ - convert the langage resolution workflow to a Reactive Controller ([b7781db](https://github.com/adobe/spectrum-web-components/commit/b7781db820620688f97a40225fb17a10e7881178))
310
+ - ensure reactivity of resolved language ([5863a15](https://github.com/adobe/spectrum-web-components/commit/5863a155262d6ba6898f82bff49aed55a6eae4f4))
311
+ - leverage Color Controller to unify color interface across packages ([fb71690](https://github.com/adobe/spectrum-web-components/commit/fb7169066fd4f15aee594c463cc4cdbf7f550a5e))
312
+ - manage updated node types ([0517fc1](https://github.com/adobe/spectrum-web-components/commit/0517fc19536325332543f95f5ecc0d6cb0c786c5))
313
+ - **table:** add resize controller to TableBody for a11y reasons ([85dd406](https://github.com/adobe/spectrum-web-components/commit/85dd4066328afeacf978acc3fc9acd57436900a1))
314
+
315
+ ### Features
316
+
317
+ - add reactive controllers package ([d434e9d](https://github.com/adobe/spectrum-web-components/commit/d434e9df151991bac031a0e8c1bde10ebecb5047))
318
+ - include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251))
319
+ - modified .selected to make `<sp-action-group>` a controllable component ([#2006](https://github.com/adobe/spectrum-web-components/issues/2006)) ([4c69b25](https://github.com/adobe/spectrum-web-components/commit/4c69b251fdf09fe898ce98482881e647b857205d))
320
+ - **picker:** support responsive delivery of menu ([20031d1](https://github.com/adobe/spectrum-web-components/commit/20031d1b42b36cdaa129a25ee70eb2bcbcdbdb5e))
321
+
322
+ ## [0.3.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/reactive-controllers@0.3.4...@spectrum-web-components/reactive-controllers@0.3.5) (2023-01-09)
323
+
324
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
325
+
326
+ ## [0.3.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/reactive-controllers@0.3.3...@spectrum-web-components/reactive-controllers@0.3.4) (2022-11-21)
327
+
328
+ ### Bug Fixes
329
+
330
+ - add support for Element Resolution ([d6a65d0](https://github.com/adobe/spectrum-web-components/commit/d6a65d0ce26da864729e707f62683585fe5e49c4))
331
+
332
+ ## [0.3.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/reactive-controllers@0.3.2...@spectrum-web-components/reactive-controllers@0.3.3) (2022-11-14)
333
+
334
+ ### Bug Fixes
335
+
336
+ - ensure reactivity of resolved language ([5863a15](https://github.com/adobe/spectrum-web-components/commit/5863a155262d6ba6898f82bff49aed55a6eae4f4))
337
+
338
+ ## [0.3.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/reactive-controllers@0.3.1...@spectrum-web-components/reactive-controllers@0.3.2) (2022-10-28)
339
+
340
+ ### Bug Fixes
341
+
342
+ - manage updated node types ([0517fc1](https://github.com/adobe/spectrum-web-components/commit/0517fc19536325332543f95f5ecc0d6cb0c786c5))
343
+
344
+ ## [0.3.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/reactive-controllers@0.3.0...@spectrum-web-components/reactive-controllers@0.3.1) (2022-10-10)
345
+
346
+ ### Bug Fixes
347
+
348
+ - convert the langage resolution workflow to a Reactive Controller ([b7781db](https://github.com/adobe/spectrum-web-components/commit/b7781db820620688f97a40225fb17a10e7881178))
349
+ - leverage Color Controller to unify color interface across packages ([fb71690](https://github.com/adobe/spectrum-web-components/commit/fb7169066fd4f15aee594c463cc4cdbf7f550a5e))
350
+ - **table:** add resize controller to TableBody for a11y reasons ([85dd406](https://github.com/adobe/spectrum-web-components/commit/85dd4066328afeacf978acc3fc9acd57436900a1))
351
+
352
+ # [0.3.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/reactive-controllers@0.2.5...@spectrum-web-components/reactive-controllers@0.3.0) (2022-08-09)
353
+
354
+ ### Features
355
+
356
+ - include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251))
357
+
358
+ ## [0.2.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/reactive-controllers@0.2.4...@spectrum-web-components/reactive-controllers@0.2.5) (2022-08-04)
359
+
360
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
361
+
362
+ ## [0.2.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/reactive-controllers@0.2.3...@spectrum-web-components/reactive-controllers@0.2.4) (2022-06-07)
363
+
364
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
365
+
366
+ ## [0.2.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/reactive-controllers@0.2.2...@spectrum-web-components/reactive-controllers@0.2.3) (2022-05-12)
367
+
368
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
369
+
370
+ ## [0.2.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/reactive-controllers@0.2.1...@spectrum-web-components/reactive-controllers@0.2.2) (2022-03-08)
371
+
372
+ **Note:** Version bump only for package @spectrum-web-components/reactive-controllers
373
+
374
+ ## [0.2.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/reactive-controllers@0.2.0...@spectrum-web-components/reactive-controllers@0.2.1) (2022-03-04)
375
+
376
+ ### Bug Fixes
377
+
378
+ - add Grid pattern ([341f493](https://github.com/adobe/spectrum-web-components/commit/341f4932087487be47bde355d1b0894886ed44ad))
379
+
380
+ # [0.2.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/reactive-controllers@0.1.0...@spectrum-web-components/reactive-controllers@0.2.0) (2022-02-02)
381
+
382
+ ### Features
383
+
384
+ - **picker:** support responsive delivery of menu ([20031d1](https://github.com/adobe/spectrum-web-components/commit/20031d1b42b36cdaa129a25ee70eb2bcbcdbdb5e))
385
+
386
+ # 0.1.0 (2022-01-26)
387
+
388
+ ### Features
389
+
390
+ - add reactive controllers package ([d434e9d](https://github.com/adobe/spectrum-web-components/commit/d434e9df151991bac031a0e8c1bde10ebecb5047))
391
+ - modified .selected to make `<sp-action-group>` a controllable component ([#2006](https://github.com/adobe/spectrum-web-components/issues/2006)) ([4c69b25](https://github.com/adobe/spectrum-web-components/commit/4c69b251fdf09fe898ce98482881e647b857205d))
package/package.json CHANGED
@@ -1,101 +1,101 @@
1
1
  {
2
- "name": "@spectrum-web-components/reactive-controllers",
3
- "version": "1.9.0",
4
- "publishConfig": {
5
- "access": "public"
2
+ "name": "@spectrum-web-components/reactive-controllers",
3
+ "version": "1.9.1-nightly.20251028214328",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "ReactiveControllers for powering common UI patterns",
8
+ "license": "Apache-2.0",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/adobe/spectrum-web-components.git",
12
+ "directory": "1st-gen/tools/reactive-controllers"
13
+ },
14
+ "author": "Adobe",
15
+ "homepage": "https://opensource.adobe.com/spectrum-web-components/tools/reactive-controllers",
16
+ "bugs": {
17
+ "url": "https://github.com/adobe/spectrum-web-components/issues"
18
+ },
19
+ "main": "./src/index.js",
20
+ "module": "./src/index.js",
21
+ "type": "module",
22
+ "exports": {
23
+ ".": {
24
+ "development": "./src/index.dev.js",
25
+ "default": "./src/index.js"
6
26
  },
7
- "description": "ReactiveControllers for powering common UI patterns",
8
- "license": "Apache-2.0",
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/adobe/spectrum-web-components.git",
12
- "directory": "tools/reactive-controllers"
27
+ "./package.json": "./package.json",
28
+ "./src/ColorController.js": {
29
+ "development": "./src/ColorController.dev.js",
30
+ "default": "./src/ColorController.js"
13
31
  },
14
- "author": "Adobe",
15
- "homepage": "https://opensource.adobe.com/spectrum-web-components/tools/reactive-controllers",
16
- "bugs": {
17
- "url": "https://github.com/adobe/spectrum-web-components/issues"
32
+ "./src/DependencyManger.js": {
33
+ "development": "./src/DependencyManger.dev.js",
34
+ "default": "./src/DependencyManger.js"
18
35
  },
19
- "main": "./src/index.js",
20
- "module": "./src/index.js",
21
- "type": "module",
22
- "exports": {
23
- ".": {
24
- "development": "./src/index.dev.js",
25
- "default": "./src/index.js"
26
- },
27
- "./package.json": "./package.json",
28
- "./src/ColorController.js": {
29
- "development": "./src/ColorController.dev.js",
30
- "default": "./src/ColorController.js"
31
- },
32
- "./src/DependencyManger.js": {
33
- "development": "./src/DependencyManger.dev.js",
34
- "default": "./src/DependencyManger.js"
35
- },
36
- "./src/ElementResolution.js": {
37
- "development": "./src/ElementResolution.dev.js",
38
- "default": "./src/ElementResolution.js"
39
- },
40
- "./src/FocusGroup.js": {
41
- "development": "./src/FocusGroup.dev.js",
42
- "default": "./src/FocusGroup.js"
43
- },
44
- "./src/LanguageResolution.js": {
45
- "development": "./src/LanguageResolution.dev.js",
46
- "default": "./src/LanguageResolution.js"
47
- },
48
- "./src/MatchMedia.js": {
49
- "development": "./src/MatchMedia.dev.js",
50
- "default": "./src/MatchMedia.js"
51
- },
52
- "./src/PendingState.js": {
53
- "development": "./src/PendingState.dev.js",
54
- "default": "./src/PendingState.js"
55
- },
56
- "./src/RovingTabindex.js": {
57
- "development": "./src/RovingTabindex.dev.js",
58
- "default": "./src/RovingTabindex.js"
59
- },
60
- "./src/SystemContextResolution.js": {
61
- "development": "./src/SystemContextResolution.dev.js",
62
- "default": "./src/SystemContextResolution.js"
63
- },
64
- "./src/index.js": {
65
- "development": "./src/index.dev.js",
66
- "default": "./src/index.js"
67
- }
36
+ "./src/ElementResolution.js": {
37
+ "development": "./src/ElementResolution.dev.js",
38
+ "default": "./src/ElementResolution.js"
68
39
  },
69
- "scripts": {
70
- "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
40
+ "./src/FocusGroup.js": {
41
+ "development": "./src/FocusGroup.dev.js",
42
+ "default": "./src/FocusGroup.js"
71
43
  },
72
- "files": [
73
- "**/*.d.ts",
74
- "**/*.js",
75
- "**/*.js.map",
76
- "!stories/",
77
- "!test/"
78
- ],
79
- "keywords": [
80
- "design-system",
81
- "spectrum",
82
- "adobe",
83
- "adobe-spectrum",
84
- "web components",
85
- "web-components",
86
- "lit-element",
87
- "lit-html",
88
- "component",
89
- "css"
90
- ],
91
- "dependencies": {
92
- "@spectrum-web-components/progress-circle": "1.9.0",
93
- "colorjs.io": "0.5.2",
94
- "lit": "^2.5.0 || ^3.1.3"
44
+ "./src/LanguageResolution.js": {
45
+ "development": "./src/LanguageResolution.dev.js",
46
+ "default": "./src/LanguageResolution.js"
95
47
  },
96
- "types": "./src/index.d.ts",
97
- "customElements": "custom-elements.json",
98
- "sideEffects": [
99
- "./**/*.dev.js"
100
- ]
101
- }
48
+ "./src/MatchMedia.js": {
49
+ "development": "./src/MatchMedia.dev.js",
50
+ "default": "./src/MatchMedia.js"
51
+ },
52
+ "./src/PendingState.js": {
53
+ "development": "./src/PendingState.dev.js",
54
+ "default": "./src/PendingState.js"
55
+ },
56
+ "./src/RovingTabindex.js": {
57
+ "development": "./src/RovingTabindex.dev.js",
58
+ "default": "./src/RovingTabindex.js"
59
+ },
60
+ "./src/SystemContextResolution.js": {
61
+ "development": "./src/SystemContextResolution.dev.js",
62
+ "default": "./src/SystemContextResolution.js"
63
+ },
64
+ "./src/index.js": {
65
+ "development": "./src/index.dev.js",
66
+ "default": "./src/index.js"
67
+ }
68
+ },
69
+ "scripts": {
70
+ "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
71
+ },
72
+ "files": [
73
+ "**/*.d.ts",
74
+ "**/*.js",
75
+ "**/*.js.map",
76
+ "!stories/",
77
+ "!test/"
78
+ ],
79
+ "keywords": [
80
+ "design-system",
81
+ "spectrum",
82
+ "adobe",
83
+ "adobe-spectrum",
84
+ "web components",
85
+ "web-components",
86
+ "lit-element",
87
+ "lit-html",
88
+ "component",
89
+ "css"
90
+ ],
91
+ "dependencies": {
92
+ "@spectrum-web-components/progress-circle": "1.9.1-nightly.20251028214328",
93
+ "colorjs.io": "0.5.2",
94
+ "lit": "^2.5.0 || ^3.1.3"
95
+ },
96
+ "types": "./src/index.d.ts",
97
+ "customElements": "custom-elements.json",
98
+ "sideEffects": [
99
+ "./**/*.dev.js"
100
+ ]
101
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["PendingState.ts"],
4
- "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport '@spectrum-web-components/progress-circle/sp-progress-circle.js';\nimport { html, LitElement, ReactiveController, TemplateResult } from 'lit';\n\n/**\n * Renders a pending state visual element and manages the aria-label of the host element.\n * \n * Currently this is used by Button only since the host element is the interactive element that needs pending state. This pattern does not work for components where the interactive element that needs pending state is in the shadow DOM. i.e. Combobox and Picker.\n * \n * @TODO consider deprecating this controller since it is not used by any other component.\n */\nexport interface HostWithPendingState extends LitElement {\n pendingLabel?: string;\n pending: boolean;\n disabled: boolean;\n pendingStateController: PendingStateController<HostWithPendingState>;\n}\n\n/**\n * Represents a controller for managing the pending state of a reactive element.\n *\n * @template T - The type of the reactive element.\n */\nexport class PendingStateController<T extends HostWithPendingState>\n implements ReactiveController\n{\n /**\n * The host element that this controller is attached to.\n */\n public host: T;\n\n /**\n * Creates an instance of PendingStateController.\n * @param host - The host element that this controller is attached to.\n */\n constructor(host: T) {\n this.host = host;\n this.host.addController(this);\n }\n\n public cachedAriaLabel: string | null = null;\n /**\n * Renders the pending state UI.\n * @returns A TemplateResult representing the pending state UI.\n *\n * @TODO [SWC-1119, SWC-1255, SWC-459] Confirm the accessibility warning and a11y dom tree are accurate for the pending state in button, combobox, and picker components.\n */\n public renderPendingState(): TemplateResult {\n return this.host.pending\n ? html`\n <sp-progress-circle\n id=\"loader\"\n size=\"s\"\n indeterminate\n class=\"progress-circle\"\n role=\"presentation\"\n ></sp-progress-circle>\n `\n : html``;\n }\n\n /**\n * Updates the ARIA label of the host element based on the pending state.\n * Manages Cached Aria Label\n */\n private updateAriaLabel(): void {\n const { pending, disabled, pendingLabel } = this.host;\n const currentAriaLabel = this.host.getAttribute('aria-label');\n\n function shouldCacheAriaLabel(\n cached: string | null,\n current: string | null,\n pending: string | undefined\n ): boolean {\n return (\n (!cached && current !== pending) ||\n (cached !== current && current !== pending)\n );\n }\n\n // If the current `aria-label` is different from the pending label, cache it\n // or if the cached `aria-label` is different from the current `aria-label`, cache it\n if (\n shouldCacheAriaLabel(\n this.cachedAriaLabel,\n currentAriaLabel,\n pendingLabel\n )\n ) {\n this.cachedAriaLabel = currentAriaLabel;\n }\n\n if (pending && !disabled) {\n // Since it is pending, we set the aria-label to `pendingLabel` or \"Pending\"\n this.host.setAttribute('aria-label', pendingLabel || 'Pending');\n } else {\n // Restore the cached `aria-label` if it exists\n if (this.cachedAriaLabel) {\n this.host.setAttribute('aria-label', this.cachedAriaLabel);\n } else {\n this.host.removeAttribute('aria-label');\n }\n }\n }\n\n hostConnected(): void {\n if (!this.cachedAriaLabel)\n this.cachedAriaLabel = this.host.getAttribute('aria-label');\n this.updateAriaLabel();\n }\n\n hostUpdated(): void {\n this.updateAriaLabel();\n }\n}\n"],
4
+ "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport '@spectrum-web-components/progress-circle/sp-progress-circle.js';\nimport { html, LitElement, ReactiveController, TemplateResult } from 'lit';\n\n/**\n * Renders a pending state visual element and manages the aria-label of the host element.\n *\n * Currently this is used by Button only since the host element is the interactive element that needs pending state. This pattern does not work for components where the interactive element that needs pending state is in the shadow DOM. i.e. Combobox and Picker.\n *\n * @TODO consider deprecating this controller since it is not used by any other component.\n */\nexport interface HostWithPendingState extends LitElement {\n pendingLabel?: string;\n pending: boolean;\n disabled: boolean;\n pendingStateController: PendingStateController<HostWithPendingState>;\n}\n\n/**\n * Represents a controller for managing the pending state of a reactive element.\n *\n * @template T - The type of the reactive element.\n */\nexport class PendingStateController<T extends HostWithPendingState>\n implements ReactiveController\n{\n /**\n * The host element that this controller is attached to.\n */\n public host: T;\n\n /**\n * Creates an instance of PendingStateController.\n * @param host - The host element that this controller is attached to.\n */\n constructor(host: T) {\n this.host = host;\n this.host.addController(this);\n }\n\n public cachedAriaLabel: string | null = null;\n /**\n * Renders the pending state UI.\n * @returns A TemplateResult representing the pending state UI.\n *\n * @TODO [SWC-1119, SWC-1255, SWC-459] Confirm the accessibility warning and a11y dom tree are accurate for the pending state in button, combobox, and picker components.\n */\n public renderPendingState(): TemplateResult {\n return this.host.pending\n ? html`\n <sp-progress-circle\n id=\"loader\"\n size=\"s\"\n indeterminate\n class=\"progress-circle\"\n role=\"presentation\"\n ></sp-progress-circle>\n `\n : html``;\n }\n\n /**\n * Updates the ARIA label of the host element based on the pending state.\n * Manages Cached Aria Label\n */\n private updateAriaLabel(): void {\n const { pending, disabled, pendingLabel } = this.host;\n const currentAriaLabel = this.host.getAttribute('aria-label');\n\n function shouldCacheAriaLabel(\n cached: string | null,\n current: string | null,\n pending: string | undefined\n ): boolean {\n return (\n (!cached && current !== pending) ||\n (cached !== current && current !== pending)\n );\n }\n\n // If the current `aria-label` is different from the pending label, cache it\n // or if the cached `aria-label` is different from the current `aria-label`, cache it\n if (\n shouldCacheAriaLabel(\n this.cachedAriaLabel,\n currentAriaLabel,\n pendingLabel\n )\n ) {\n this.cachedAriaLabel = currentAriaLabel;\n }\n\n if (pending && !disabled) {\n // Since it is pending, we set the aria-label to `pendingLabel` or \"Pending\"\n this.host.setAttribute('aria-label', pendingLabel || 'Pending');\n } else {\n // Restore the cached `aria-label` if it exists\n if (this.cachedAriaLabel) {\n this.host.setAttribute('aria-label', this.cachedAriaLabel);\n } else {\n this.host.removeAttribute('aria-label');\n }\n }\n }\n\n hostConnected(): void {\n if (!this.cachedAriaLabel)\n this.cachedAriaLabel = this.host.getAttribute('aria-label');\n this.updateAriaLabel();\n }\n\n hostUpdated(): void {\n this.updateAriaLabel();\n }\n}\n"],
5
5
  "mappings": ";AAYA,OAAO;AACP,SAAS,YAA4D;AAqB9D,aAAM,uBAEb;AAAA;AAAA;AAAA;AAAA;AAAA,EAUI,YAAY,MAAS;AAKrB,SAAO,kBAAiC;AAJpC,SAAK,OAAO;AACZ,SAAK,KAAK,cAAc,IAAI;AAAA,EAChC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASO,qBAAqC;AACxC,WAAO,KAAK,KAAK,UACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBASA;AAAA,EACV;AAAA;AAAA;AAAA;AAAA;AAAA,EAMQ,kBAAwB;AAC5B,UAAM,EAAE,SAAS,UAAU,aAAa,IAAI,KAAK;AACjD,UAAM,mBAAmB,KAAK,KAAK,aAAa,YAAY;AAE5D,aAAS,qBACL,QACA,SACAA,UACO;AACP,aACK,CAAC,UAAU,YAAYA,YACvB,WAAW,WAAW,YAAYA;AAAA,IAE3C;AAIA,QACI;AAAA,MACI,KAAK;AAAA,MACL;AAAA,MACA;AAAA,IACJ,GACF;AACE,WAAK,kBAAkB;AAAA,IAC3B;AAEA,QAAI,WAAW,CAAC,UAAU;AAEtB,WAAK,KAAK,aAAa,cAAc,gBAAgB,SAAS;AAAA,IAClE,OAAO;AAEH,UAAI,KAAK,iBAAiB;AACtB,aAAK,KAAK,aAAa,cAAc,KAAK,eAAe;AAAA,MAC7D,OAAO;AACH,aAAK,KAAK,gBAAgB,YAAY;AAAA,MAC1C;AAAA,IACJ;AAAA,EACJ;AAAA,EAEA,gBAAsB;AAClB,QAAI,CAAC,KAAK;AACN,WAAK,kBAAkB,KAAK,KAAK,aAAa,YAAY;AAC9D,SAAK,gBAAgB;AAAA,EACzB;AAAA,EAEA,cAAoB;AAChB,SAAK,gBAAgB;AAAA,EACzB;AACJ;",
6
6
  "names": ["pending"]
7
7
  }