@sinequa/galactik 2.12.0 → 2.12.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinequa/galactik",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -3046,6 +3046,34 @@ export declare class MenuComponent {
3046
3046
  * listener runs, `@angular/aria` has already closed it.
3047
3047
  */
3048
3048
  onEscape(): void;
3049
+ /**
3050
+ * Tab / Shift+Tab inside the open menu closes it and puts the focus back on its trigger (WAI-ARIA APG, Menu pattern).
3051
+ *
3052
+ * `focusout` alone is not enough: an item may hold a tab stop of its own (a link), so Tab walks through the menu
3053
+ * before leaving it, and the last Tab hands the focus to the browser (a null `relatedTarget`, which `onFocusOut`
3054
+ * cannot tell from an alt-tab).
3055
+ *
3056
+ * - Tab: the key is not cancelled, so the browser carries on from the trigger to the element after it, as it would
3057
+ * have if the menu had never been in the way.
3058
+ * - Shift+Tab: the trigger is the element right before the menu, so the key stops there. Left to the browser it
3059
+ * would step over the trigger to the element before it.
3060
+ */
3061
+ onTab(event: Event): void;
3062
+ /**
3063
+ * Closes the menu when the focus moves to another element of the page by other means than Tab (a pointer press, a
3064
+ * script).
3065
+ *
3066
+ * A native `popover="auto"` only closes on an outside click or Escape. The submenus are DOM descendants of this host,
3067
+ * so `contains` tells an inside move from a real exit.
3068
+ *
3069
+ * Left open on purpose:
3070
+ * - a null `relatedTarget`: the focus went outside the document (browser chrome, another window), so the menu survives an alt-tab;
3071
+ * - the trigger: a pointer press on it blurs the menu first, and closing there would let the native `popovertarget`
3072
+ * click reopen it right after.
3073
+ */
3074
+ onFocusOut(event: FocusEvent): void;
3075
+ /** The button wired to this menu through `popovertarget`, if any. */
3076
+ private trigger;
3049
3077
  onClick(event: MouseEvent): void;
3050
3078
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
3051
3079
  static ɵdir: i0.ɵɵDirectiveDeclaration<MenuComponent, "Menu,menu", ["menu"], {