@sinequa/galactik 2.11.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.11.0",
3
+ "version": "2.12.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -0,0 +1 @@
1
+ export { __exportAll as t };
@@ -589,6 +589,23 @@ export declare class CommentsIcon {
589
589
  */
590
590
  export declare const CommentsIconComponent: typeof CommentsIcon;
591
591
  export type CommentsIconComponent = CommentsIcon;
592
+ export declare class CrownIcon {
593
+ class: import("@angular/core").InputSignal<string | undefined>;
594
+ classes: import("@angular/core").Signal<string>;
595
+ static ɵfac: i0.ɵɵFactoryDeclaration<CrownIcon, never>;
596
+ static ɵcmp: i0.ɵɵComponentDeclaration<CrownIcon, "crown, crown-icon, Crown, CrownIcon", never, {
597
+ "class": {
598
+ "alias": "class";
599
+ "required": false;
600
+ "isSignal": true;
601
+ };
602
+ }, {}, never, never, true, never>;
603
+ }
604
+ /**
605
+ * @deprecated Use CrownIcon instead.
606
+ */
607
+ export declare const CrownIconComponent: typeof CrownIcon;
608
+ export type CrownIconComponent = CrownIcon;
592
609
  export declare class DebugIcon {
593
610
  class: import("@angular/core").InputSignal<string | undefined>;
594
611
  classes: import("@angular/core").Signal<string>;
@@ -3029,6 +3046,34 @@ export declare class MenuComponent {
3029
3046
  * listener runs, `@angular/aria` has already closed it.
3030
3047
  */
3031
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;
3032
3077
  onClick(event: MouseEvent): void;
3033
3078
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
3034
3079
  static ɵdir: i0.ɵɵDirectiveDeclaration<MenuComponent, "Menu,menu", ["menu"], {
@@ -6589,6 +6634,11 @@ export declare class SearchInputSuggestionsComponent extends SearchInputBase {
6589
6634
  * still pointer, which would steal the keyboard's active row without any user gesture. `pointermove` only fires on a
6590
6635
  * real pointer move. Touch is ignored: a finger drag is a scroll, not a hover.
6591
6636
  *
6637
+ * It also keeps the keyboard's active option in view: when an arrow key lands on a row that is cut off by the edge of the
6638
+ * list, the list scrolls just enough to show it whole (`block: "nearest"`: a row already in view makes nothing move).
6639
+ * A row the pointer activated is skipped — the pointer is on it, and scrolling under a still pointer would make the list
6640
+ * crawl as the hover keeps changing the row under it.
6641
+ *
6592
6642
  * Nothing is activated until the pointer moves, so "Enter picks the first row" of a freshly opened popup is unchanged.
6593
6643
  * Disabled rows are ignored: hovering one leaves the current active row alone.
6594
6644
  *
@@ -6598,6 +6648,10 @@ export declare class SearchInputSuggestionsComponent extends SearchInputBase {
6598
6648
  */
6599
6649
  export declare class ListboxActivateOnHover {
6600
6650
  private readonly listbox;
6651
+ private readonly host;
6652
+ /** The id of the option the pointer last made active: that one is never scrolled to. */
6653
+ private hoveredId;
6654
+ constructor();
6601
6655
  protected onPointerMove(event: PointerEvent): void;
6602
6656
  static ɵfac: i0.ɵɵFactoryDeclaration<ListboxActivateOnHover, never>;
6603
6657
  static ɵdir: i0.ɵɵDirectiveDeclaration<ListboxActivateOnHover, "[ngListbox][activateOnHover]", never, {}, {}, never, never, true, never>;