openproject-primer_view_components 0.82.1 → 0.83.0

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 (78) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/app/assets/javascripts/primer_view_components.js +1 -1
  4. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  5. data/app/assets/styles/primer_view_components.css +1 -1
  6. data/app/assets/styles/primer_view_components.css.map +1 -1
  7. data/app/components/primer/alpha/action_bar_element.js +68 -77
  8. data/app/components/primer/alpha/action_bar_element.ts +48 -70
  9. data/app/components/primer/alpha/action_list.js +1 -1
  10. data/app/components/primer/alpha/action_list.ts +1 -1
  11. data/app/components/primer/alpha/action_menu/action_menu_element.js +1 -1
  12. data/app/components/primer/alpha/action_menu/action_menu_element.ts +1 -1
  13. data/app/components/primer/alpha/action_menu/menu.rb +5 -1
  14. data/app/components/primer/alpha/action_menu/primary_menu.rb +4 -0
  15. data/app/components/primer/alpha/action_menu/sub_menu.rb +4 -0
  16. data/app/components/primer/alpha/dialog.css +1 -1
  17. data/app/components/primer/alpha/dialog.css.json +2 -1
  18. data/app/components/primer/alpha/dialog.css.map +1 -1
  19. data/app/components/primer/alpha/dialog.pcss +12 -0
  20. data/app/components/primer/alpha/layout.rb +6 -2
  21. data/app/components/primer/alpha/overlay.rb +14 -1
  22. data/app/components/primer/alpha/segmented_control.js +1 -1
  23. data/app/components/primer/alpha/segmented_control.ts +1 -1
  24. data/app/components/primer/alpha/select_panel_element.js +3 -1
  25. data/app/components/primer/alpha/select_panel_element.ts +4 -1
  26. data/app/components/primer/alpha/toggle_switch.js +1 -1
  27. data/app/components/primer/alpha/toggle_switch.rb +3 -0
  28. data/app/components/primer/alpha/toggle_switch.ts +1 -1
  29. data/app/components/primer/alpha/tool_tip.js +1 -1
  30. data/app/components/primer/alpha/tool_tip.ts +1 -1
  31. data/app/components/primer/alpha/tree_view/tree_view.js +1 -1
  32. data/app/components/primer/alpha/tree_view/tree_view.ts +1 -1
  33. data/app/components/primer/alpha/tree_view/tree_view_icon_pair_element.js +1 -1
  34. data/app/components/primer/alpha/tree_view/tree_view_icon_pair_element.ts +1 -1
  35. data/app/components/primer/alpha/tree_view/tree_view_include_fragment_element.js +1 -1
  36. data/app/components/primer/alpha/tree_view/tree_view_include_fragment_element.ts +1 -1
  37. data/app/components/primer/alpha/tree_view/tree_view_sub_tree_node_element.js +25 -2
  38. data/app/components/primer/alpha/tree_view/tree_view_sub_tree_node_element.ts +27 -1
  39. data/app/components/primer/alpha/x_banner.js +1 -1
  40. data/app/components/primer/alpha/x_banner.ts +1 -1
  41. data/app/components/primer/beta/auto_complete/no_result_item.rb +23 -13
  42. data/app/components/primer/beta/blankslate.css +1 -1
  43. data/app/components/primer/beta/blankslate.css.json +1 -0
  44. data/app/components/primer/beta/blankslate.css.map +1 -1
  45. data/app/components/primer/beta/blankslate.pcss +5 -0
  46. data/app/components/primer/beta/blankslate.rb +1 -0
  47. data/app/components/primer/beta/details_toggle_element.js +1 -1
  48. data/app/components/primer/beta/details_toggle_element.ts +1 -1
  49. data/app/components/primer/beta/nav_list.js +1 -1
  50. data/app/components/primer/beta/nav_list.ts +1 -1
  51. data/app/components/primer/beta/nav_list_group_element.js +1 -1
  52. data/app/components/primer/beta/nav_list_group_element.ts +1 -1
  53. data/app/components/primer/dialog_helper.js +24 -9
  54. data/app/components/primer/dialog_helper.ts +24 -12
  55. data/app/components/primer/scrollable_region.js +1 -1
  56. data/app/components/primer/scrollable_region.ts +1 -1
  57. data/app/lib/primer/forms/primer_multi_input.js +1 -1
  58. data/app/lib/primer/forms/primer_multi_input.ts +1 -1
  59. data/app/lib/primer/forms/primer_text_area.js +1 -1
  60. data/app/lib/primer/forms/primer_text_area.ts +1 -1
  61. data/app/lib/primer/forms/primer_text_field.js +1 -1
  62. data/app/lib/primer/forms/primer_text_field.ts +1 -1
  63. data/app/lib/primer/forms/toggle_switch_input.js +1 -1
  64. data/app/lib/primer/forms/toggle_switch_input.ts +1 -1
  65. data/lib/primer/view_components/version.rb +2 -2
  66. data/previews/primer/alpha/action_menu_preview/sub_menus.html.erb +2 -2
  67. data/previews/primer/alpha/action_menu_preview.rb +35 -1
  68. data/previews/primer/beta/button_preview/summary_as_button.html.erb +0 -1
  69. data/previews/primer/beta/truncate_preview/advanced_multiple_items.html.erb +32 -0
  70. data/previews/primer/beta/truncate_preview/max_widths.html.erb +22 -0
  71. data/previews/primer/beta/truncate_preview/multiple_items.html.erb +14 -0
  72. data/previews/primer/beta/truncate_preview.rb +3 -26
  73. data/static/arguments.json +38 -1
  74. data/static/classes.json +3 -0
  75. data/static/constants.json +17 -0
  76. data/static/info_arch.json +77 -58
  77. data/static/previews.json +13 -0
  78. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9dd4c54817c82ee59983fbaab3c7aa8af717d8ad80cba8ff1b3ae758ad00177
4
- data.tar.gz: bccd643db8bd0aca42577f2608d08a23aaeb63de26f56ae388aa14bdc2fd58c6
3
+ metadata.gz: 8888ad1335eafe6e375bb2f6d17585b0a7b644d96e3601627727cad9398ed24b
4
+ data.tar.gz: 463067eaa47fd9d7b37dd5d3c11116abc9c8979cb08e886e609cf0dc20f52d81
5
5
  SHA512:
6
- metadata.gz: ff9a343816b3b35cfedcae80d7734dbe1192395159f6b339435e5c591b96ebb44a77bcbc9250363767b6cd551f08b6aa6c874905d631c956509c00c115ac1bbb
7
- data.tar.gz: a0ee32926c50378c595af4f693d148f3762cab820a0262c2334145d12ba7902a2c9e3eb59138d3fd48a5a34966634ba4add428dcbdc0514e616b4f70c0b49f59
6
+ metadata.gz: '0358def269863b914b235889bcb3340a16c05706a0963f2ba3a04c837fa4ed60d03b87be40c2f021fc4d428591926d57a8e6ea468b4046094d37fffe0bd56ff4'
7
+ data.tar.gz: 6a7b50fdfddc91e4acb4d06e6afa31809ff340fb9189ed7295ffeaca9c0068a3131fbf367f36569204d2151a97d32ebd3571a3953c52ea61b68c897b794c40d4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.83.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#3938](https://github.com/primer/view_components/pull/3938) [`b7f61e2`](https://github.com/opf/primer_view_components/commit/b7f61e2a2403bf714e0f34975cb83174e5a8b517) Thanks [@acbreton](https://github.com/acbreton)! - Change `ToggleSwitch` ViewComponent `type` to `button`
8
+
9
+ ### Patch Changes
10
+
11
+ - [#3952](https://github.com/primer/view_components/pull/3952) [`02c89a5`](https://github.com/opf/primer_view_components/commit/02c89a5ddcf029c252ea6f1b51e5e12cfe71f891) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Performance improvements to `ActionBarElement`:
12
+ - Replaced the `#eachItem` / `ItemType` abstraction with a two-pass read-then-write loop that snapshots all element geometry before mutating the DOM, eliminating forced synchronous reflow.
13
+ - Cached the `#menuItems` `NodeListOf` query across each update pass instead of re-querying per item.
14
+ - Simplified `#firstItem` to a one-liner using `Array.find`.
15
+ - Coalesces rapid resize/intersection events via `requestAnimationFrame` so at most one layout pass runs per frame.
16
+ - `update()` remains the public entry point (coalescing scheduler); actual layout work is in the private `#performUpdate()`.
17
+ - `overflow: visible` is always applied in `connectedCallback` (no popover feature-detection gate), preserving the original behavior for CSS/tooltip positioning.
18
+
19
+ - [#3945](https://github.com/primer/view_components/pull/3945) [`983cc29`](https://github.com/opf/primer_view_components/commit/983cc290b199169181545a5518459640c2c212cf) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Blankslate: Add `text-wrap: balance` to heading and description
20
+
21
+ - [#3950](https://github.com/primer/view_components/pull/3950) [`ca926de`](https://github.com/opf/primer_view_components/commit/ca926de90555a130cbc8dc1b427261417759bfd7) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Defer `--dialog-scrollgutter` computation in `DialogHelperElement` to the moment a dialog is first opened, avoiding a forced synchronous layout reflow during page load.
22
+
23
+ - [#3955](https://github.com/primer/view_components/pull/3955) [`ed8bf4a`](https://github.com/opf/primer_view_components/commit/ed8bf4a6e8198473e3e3b004eb36256504b80035) Thanks [@TylerJDev](https://github.com/TylerJDev)! - ActionMenu: Add fullscreen option to ActionMenu
24
+
25
+ - [#3912](https://github.com/primer/view_components/pull/3912) [`1597a74`](https://github.com/opf/primer_view_components/commit/1597a742f693963db74f62721688bdc254d81ad1) Thanks [@llastflowers](https://github.com/llastflowers)! - Remove newline in file to revert accidental visual regression of Button
26
+
27
+ - [#3961](https://github.com/primer/view_components/pull/3961) [`16a2d75`](https://github.com/opf/primer_view_components/commit/16a2d7547f9a527248fa303a21303a0df3d71ddd) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Tooltip: Fix tooltip overflow on narrow viewports by capping max-width to viewport width.
28
+
29
+ - [#3940](https://github.com/primer/view_components/pull/3940) [`b585532`](https://github.com/opf/primer_view_components/commit/b5855325cfac72e9ce34ad88a7c0e1b1c14bcb94) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Dialog: Fixes issue in `dialog_helper.ts` where focus could be lost
30
+
31
+ - [#3894](https://github.com/primer/view_components/pull/3894) [`4ddf815`](https://github.com/opf/primer_view_components/commit/4ddf815475c5da1c588f12a024c48defc621a719) Thanks [@francinelucca](https://github.com/francinelucca)! - chore(treeview): add treeitem role to shadow dom node
32
+
33
+ - [#3919](https://github.com/primer/view_components/pull/3919) [`e060f4d`](https://github.com/opf/primer_view_components/commit/e060f4da7cf02d88477f9791fd1ed778b51dfa43) Thanks [@francinelucca](https://github.com/francinelucca)! - Chore: add custom "invokerClicked" selectpanel event
34
+
35
+ - [#3957](https://github.com/primer/view_components/pull/3957) [`3baaad2`](https://github.com/opf/primer_view_components/commit/3baaad2b69e973988a611eb2fa14e57c7057afb2) Thanks [@francinelucca](https://github.com/francinelucca)! - chore(AutoComplete): fix NoResultItem contrast ratio
36
+
37
+ - [#3930](https://github.com/primer/view_components/pull/3930) [`0ebf631`](https://github.com/opf/primer_view_components/commit/0ebf631648bb4e0a6ccdce2437fa91290636301c) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Update Catalyst to version 1.8.0 and hard-code controller/custom-element names via their @controller('...') decorators to allow for better minification
38
+
3
39
  ## 0.82.1
4
40
 
5
41
  ### Patch Changes