openproject-primer_view_components 0.69.2 → 0.69.4

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.
@@ -379,8 +379,10 @@ _ActionMenuElement_handleToggleEvent = function _ActionMenuElement_handleToggleE
379
379
  // desirable
380
380
  __classPrivateFieldGet(this, _ActionMenuElement_focusZoneStack, "f").pop(subMenu);
381
381
  const item = __classPrivateFieldGet(this, _ActionMenuElement_instances, "m", _ActionMenuElement_itemForSubMenu).call(this, subMenu);
382
- if (item)
382
+ const openPopover = document.querySelector(':popover-open');
383
+ if (item && !openPopover) {
383
384
  item.focus();
385
+ }
384
386
  }
385
387
  };
386
388
  _ActionMenuElement_handleInvokerActivated = function _ActionMenuElement_handleInvokerActivated(event) {
@@ -360,7 +360,10 @@ export class ActionMenuElement extends HTMLElement {
360
360
  // desirable
361
361
  this.#focusZoneStack.pop(subMenu)
362
362
  const item = this.#itemForSubMenu(subMenu)
363
- if (item) item.focus()
363
+ const openPopover = document.querySelector(':popover-open')
364
+ if (item && !openPopover) {
365
+ item.focus()
366
+ }
364
367
  }
365
368
  }
366
369
 
data/config/routes.rb ADDED
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ Primer::ViewComponents::Engine.routes.draw do
4
+ get "/auto_complete", to: "auto_complete_test#index", as: :autocomplete_index
5
+ get "/auto_complete_no_results", to: "auto_complete_test#no_results", as: :autocomplete_no_results
6
+
7
+ resources :toggle_switch, only: [:create]
8
+ resources :nav_list_items, only: [:index]
9
+ resources :multi, only: [:create]
10
+ resources :select_panel_items, only: [:index]
11
+
12
+ resources :tree_view_items, only: [:index]
13
+ get "/tree_view_items/async_alpha", to: "tree_view_items#async_alpha", as: :tree_view_items_async_alpha
14
+
15
+ # generic form submission path
16
+ post "/form_handler", to: "form_handler#form_action", as: :generic_form_submission
17
+
18
+ post "/example_check/accepted", to: "auto_check#accepted", as: :example_check_accepted
19
+ post "/example_check/ok", to: "auto_check#ok", as: :example_check_ok
20
+ post "/example_check/error", to: "auto_check#error", as: :example_check_error
21
+ post "/example_check/random", to: "auto_check#random", as: :example_check_random
22
+
23
+ get "/action_menu/landing_page", to: "action_menu#landing", as: :action_menu_landing
24
+ post "/action_menu/form_action", to: "action_menu#form_action", as: :action_menu_form_action
25
+ get "/action_menu/deferred", to: "action_menu#deferred", as: :action_menu_deferred
26
+ get "/action_menu/deferred_preload", to: "action_menu#deferred_preload", as: :action_menu_deferred_preload
27
+
28
+ get "/include_fragment/deferred", to: "include_fragment#deferred", as: :include_fragment_deferred
29
+ end
@@ -6,7 +6,7 @@ module Primer
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 69
9
- PATCH = 2
9
+ PATCH = 4
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH].join(".")
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openproject-primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.69.2
4
+ version: 0.69.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-06-05 00:00:00.000000000 Z
12
+ date: 2025-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -850,6 +850,7 @@ files:
850
850
  - app/views/primer/view_components/select_panel_items/index.html.erb
851
851
  - app/views/primer/view_components/tree_view_items/async_alpha.html_fragment.erb
852
852
  - app/views/primer/view_components/tree_view_items/index.html_fragment.erb
853
+ - config/routes.rb
853
854
  - lib/postcss_mixins/activeIndicatorLine.pcss
854
855
  - lib/postcss_mixins/clearfix.pcss
855
856
  - lib/postcss_mixins/focusBoxShadowInset.pcss