@sinequa/galactik 2.9.0 → 2.11.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinequa/galactik",
3
- "version": "2.9.0",
3
+ "version": "2.11.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -538,6 +538,23 @@ export declare class CogIcon {
538
538
  */
539
539
  export declare const CogIconComponent: typeof CogIcon;
540
540
  export type CogIconComponent = CogIcon;
541
+ export declare class CollapseIcon {
542
+ class: import("@angular/core").InputSignal<string | undefined>;
543
+ classes: import("@angular/core").Signal<string>;
544
+ static ɵfac: i0.ɵɵFactoryDeclaration<CollapseIcon, never>;
545
+ static ɵcmp: i0.ɵɵComponentDeclaration<CollapseIcon, "collapse, collapse-icon, Collapse, CollapseIcon", never, {
546
+ "class": {
547
+ "alias": "class";
548
+ "required": false;
549
+ "isSignal": true;
550
+ };
551
+ }, {}, never, never, true, never>;
552
+ }
553
+ /**
554
+ * @deprecated Use CollapseIcon instead.
555
+ */
556
+ export declare const CollapseIconComponent: typeof CollapseIcon;
557
+ export type CollapseIconComponent = CollapseIcon;
541
558
  export declare class CommentIcon {
542
559
  class: import("@angular/core").InputSignal<string | undefined>;
543
560
  classes: import("@angular/core").Signal<string>;
@@ -697,6 +714,23 @@ export declare class EnvelopeIcon {
697
714
  */
698
715
  export declare const EnvelopeIconComponent: typeof EnvelopeIcon;
699
716
  export type EnvelopeIconComponent = EnvelopeIcon;
717
+ export declare class ExpandIcon {
718
+ class: import("@angular/core").InputSignal<string | undefined>;
719
+ classes: import("@angular/core").Signal<string>;
720
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExpandIcon, never>;
721
+ static ɵcmp: i0.ɵɵComponentDeclaration<ExpandIcon, "expand, expand-icon, Expand, ExpandIcon", never, {
722
+ "class": {
723
+ "alias": "class";
724
+ "required": false;
725
+ "isSignal": true;
726
+ };
727
+ }, {}, never, never, true, never>;
728
+ }
729
+ /**
730
+ * @deprecated Use ExpandIcon instead.
731
+ */
732
+ export declare const ExpandIconComponent: typeof ExpandIcon;
733
+ export type ExpandIconComponent = ExpandIcon;
700
734
  export declare class ExternalLinkIcon {
701
735
  class: import("@angular/core").InputSignal<string | undefined>;
702
736
  classes: import("@angular/core").Signal<string>;
@@ -2680,8 +2714,13 @@ export declare class TooltipContentDirective {
2680
2714
  static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipContentDirective, "[tooltip-content], [tooltipContent]", never, {}, {}, never, never, true, never>;
2681
2715
  }
2682
2716
  /**
2683
- * A tooltip on any element: shown on hover and on keyboard focus, hidden on `Escape`, on blur, on scroll and as soon as
2684
- * the host is pressed. The pointer can move onto the tooltip without closing it.
2717
+ * A tooltip on any element: shown on hover and on keyboard focus, hidden on `Escape`, on blur, on scroll, on a click or a tap
2718
+ * anywhere outside it and as soon as the host is pressed. The pointer can move onto the tooltip without closing it.
2719
+ *
2720
+ * - **Touch.** A touch screen has no hover and no keyboard focus, and a tap does not open it (the pretend `mouseenter` that
2721
+ * follows a tap is ignored): open the tooltip yourself, with a button that calls `show()`
2722
+ * (`#tip="tooltip"`, then `(click)="tip.isOpen() ? tip.hide() : tip.show()"`). The tooltip then closes by itself at the next
2723
+ * tap elsewhere — that button toggles it, so its own tap never closes and reopens it.
2685
2724
  *
2686
2725
  * - **Accessibility.** The tooltip is a `role="tooltip"` element and the host gets `aria-describedby` pointing at it
2687
2726
  * **while it is open** (the id is added to an existing `aria-describedby`, and removed again). A tooltip *describes*:
@@ -2774,7 +2813,10 @@ export declare class TooltipDirective {
2774
2813
  protected onLeave(): void;
2775
2814
  protected onFocusIn(): void;
2776
2815
  protected onFocusOut(): void;
2777
- protected onPointerDown(): void;
2816
+ /** What the host last felt: `touch`, `pen` or `mouse`. Undefined until a pointer event came, as in a keyboard-only session. */
2817
+ protected pointerType: string | undefined;
2818
+ protected onPointerType(event: PointerEvent): void;
2819
+ protected onPointerDown(event: PointerEvent): void;
2778
2820
  protected onClick(): void;
2779
2821
  private scheduleShow;
2780
2822
  private scheduleHide;
@@ -3723,6 +3765,9 @@ export declare class AutocompleteComponent<TOption, TSelected = TOption> {
3723
3765
  readonly placeholder: import("@angular/core").InputSignal<string>;
3724
3766
  /** Accessible name of the field when there is no `fieldLabel` (a visible label names it already). Default: the placeholder. */
3725
3767
  readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
3768
+ /** Accessible names of the button that puts the on-screen keyboard away, and brings it back (landscape tablet only). Pass them translated. */
3769
+ readonly hideKeyboardLabel: import("@angular/core").InputSignal<string>;
3770
+ readonly keyboardLabel: import("@angular/core").InputSignal<string>;
3726
3771
  readonly noResultsText: import("@angular/core").InputSignal<string>;
3727
3772
  readonly searchingText: import("@angular/core").InputSignal<string>;
3728
3773
  readonly errorText: import("@angular/core").InputSignal<string>;
@@ -3778,6 +3823,11 @@ export declare class AutocompleteComponent<TOption, TSelected = TOption> {
3778
3823
  protected readonly inline: import("@angular/core").Signal<boolean>;
3779
3824
  /** The field box: an input group that grows with its chips (`inline`), or the bare wrapper of the select-trigger input. */
3780
3825
  protected readonly fieldClass: import("@angular/core").Signal<string>;
3826
+ /**
3827
+ * The keyboard button: after the text in the flow (`inline`), or overlaid left of the chevron — an `<input>` cannot contain it, and
3828
+ * in the flow it would sit outside the box, past the `w-full` of the field.
3829
+ */
3830
+ protected readonly keyboardClass: import("@angular/core").Signal<string>;
3781
3831
  /** The typed text: the input-group's control (`inline`), or the select-trigger-styled input. */
3782
3832
  protected readonly inputClass: import("@angular/core").Signal<"select-trigger w-full cursor-text! pe-(--spacing-2xl)! placeholder:text-(--font-primary-muted)" | "input-control min-w-24 flex-1">;
3783
3833
  /** The chevron / spinner: after the text in the flow (`inline`), or overlaid at the end of the trigger. */
@@ -3931,6 +3981,16 @@ export declare class AutocompleteComponent<TOption, TSelected = TOption> {
3931
3981
  "required": false;
3932
3982
  "isSignal": true;
3933
3983
  };
3984
+ "hideKeyboardLabel": {
3985
+ "alias": "hideKeyboardLabel";
3986
+ "required": false;
3987
+ "isSignal": true;
3988
+ };
3989
+ "keyboardLabel": {
3990
+ "alias": "keyboardLabel";
3991
+ "required": false;
3992
+ "isSignal": true;
3993
+ };
3934
3994
  "noResultsText": {
3935
3995
  "alias": "noResultsText";
3936
3996
  "required": false;
@@ -4581,6 +4641,8 @@ export declare class ListItemAvatarDirective {
4581
4641
  * même phrase, reliée par `aria-describedby`, porte l'annonce.
4582
4642
  */
4583
4643
  export declare class ListItemActionComponent {
4644
+ /** `false` while the page is driven with a finger: the visible "Press Del" line is then not rendered. */
4645
+ protected readonly keyboardAvailable: import("@angular/core").Signal<boolean>;
4584
4646
  /**
4585
4647
  * Libellé de l'action, rendu dans l'infobulle des voyants (directive `tooltip`) et non en `aria-label` :
4586
4648
  * l'icône est masquée aux technologies d'assistance, qui atteignent l'action par le raccourci `Suppr`
@@ -6149,6 +6211,49 @@ declare const inputCounterVariants: (props?: ({
6149
6211
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6150
6212
  type InputWrapVariants = VariantProps<typeof inputWrapVariants>;
6151
6213
  type InputCounterVariants = VariantProps<typeof inputCounterVariants>;
6214
+ /**
6215
+ * Lets the user put the on-screen keyboard of a tablet away to see the popup of a field.
6216
+ *
6217
+ * The keyboard opens as it always does. But in landscape the keyboard of an iPad takes half of the screen, and a field that opens a
6218
+ * popup (suggestions, options) is left with a sliver to show it in. While the page is driven with a finger and the screen is landscape
6219
+ * ({@link applicable}), the host offers a button that {@link toggle}s the keyboard: put away, the field keeps the focus and its popup
6220
+ * stays open (`inputmode="none"`); the same button brings the keyboard back. The field starts again with its keyboard each time it
6221
+ * takes the focus.
6222
+ *
6223
+ * Inert elsewhere (a mouse, a phone held upright, a laptop). A hardware keyboard types in the field all the same, `inputmode` being a
6224
+ * request for the on-screen one only.
6225
+ *
6226
+ * ⚠️ iOS only reads a new `inputmode` at a focus taken from inside the gesture: {@link hide} and {@link show} change it and move the
6227
+ * focus synchronously, never through a signal that would only reach the DOM at the next change detection. The button must not take the
6228
+ * focus from the field either, or the field blurs, and the keyboard with it, before the tap is read: bind `(mousedown)` on it with
6229
+ * `preventDefault()`.
6230
+ *
6231
+ * @example
6232
+ * ```html
6233
+ * <input virtualKeyboard #vk="virtualKeyboard" type="search" />
6234
+ * @if (vk.applicable()) {
6235
+ * <button type="button" (mousedown)="$event.preventDefault()" (click)="vk.toggle()">Keyboard</button>
6236
+ * }
6237
+ * ```
6238
+ */
6239
+ export declare class VirtualKeyboardDirective {
6240
+ private readonly input;
6241
+ private readonly breakpoints;
6242
+ /** The user put the keyboard away. Back to false when the field loses the focus. */
6243
+ protected readonly away: import("@angular/core").WritableSignal<boolean>;
6244
+ /** The device and its orientation call for the button: a finger, and a landscape screen. */
6245
+ readonly applicable: import("@angular/core").Signal<boolean>;
6246
+ /** The keyboard is put away right now: the button then brings it back. */
6247
+ readonly hidden: import("@angular/core").Signal<boolean>;
6248
+ /** Puts the keyboard away and keeps the focus. Call it from the tap itself (see the note above). */
6249
+ hide(): void;
6250
+ /** Brings the keyboard back. Call it from the tap itself (see the note above). */
6251
+ show(): void;
6252
+ toggle(): void;
6253
+ private refocus;
6254
+ static ɵfac: i0.ɵɵFactoryDeclaration<VirtualKeyboardDirective, never>;
6255
+ static ɵdir: i0.ɵɵDirectiveDeclaration<VirtualKeyboardDirective, "input[virtualKeyboard]", ["virtualKeyboard"], {}, {}, never, never, true, never>;
6256
+ }
6152
6257
  /**
6153
6258
  * Textarea wrapper — the vertical flex that holds the native control and an
6154
6259
  * optional counter. Like `InputComponent`, it drives the focus / disabled /
@@ -6331,6 +6436,9 @@ declare abstract class SearchInputBase implements FormValueControl<string> {
6331
6436
  * `"shift+/"` annonçait un raccourci inopérant en QWERTY US.
6332
6437
  */
6333
6438
  hotkey: import("@angular/core").InputSignal<string | undefined>;
6439
+ /** Accessible names of the button that puts the on-screen keyboard away, and brings it back (landscape tablet only). Pass them translated. */
6440
+ hideKeyboardLabel: import("@angular/core").InputSignal<string>;
6441
+ keyboardLabel: import("@angular/core").InputSignal<string>;
6334
6442
  /** Accessible name of the clear button. Nothing in the library translates: pass it translated. */
6335
6443
  clearLabel: import("@angular/core").InputSignal<string>;
6336
6444
  class: import("@angular/core").InputSignal<string | undefined>;
@@ -6398,6 +6506,16 @@ declare abstract class SearchInputBase implements FormValueControl<string> {
6398
6506
  "required": false;
6399
6507
  "isSignal": true;
6400
6508
  };
6509
+ "hideKeyboardLabel": {
6510
+ "alias": "hideKeyboardLabel";
6511
+ "required": false;
6512
+ "isSignal": true;
6513
+ };
6514
+ "keyboardLabel": {
6515
+ "alias": "keyboardLabel";
6516
+ "required": false;
6517
+ "isSignal": true;
6518
+ };
6401
6519
  "clearLabel": {
6402
6520
  "alias": "clearLabel";
6403
6521
  "required": false;
@@ -6524,6 +6642,9 @@ declare abstract class SearchBarBase implements FormValueControl<string> {
6524
6642
  * it is read: the `<input>`, this host being an unknown element with no role of its own.
6525
6643
  */
6526
6644
  ariaLabel: import("@angular/core").InputSignal<string | undefined>;
6645
+ /** Accessible names of the button that puts the on-screen keyboard away, and brings it back (landscape tablet only). Pass them translated. */
6646
+ hideKeyboardLabel: import("@angular/core").InputSignal<string>;
6647
+ keyboardLabel: import("@angular/core").InputSignal<string>;
6527
6648
  /** Accessible name of the clear button. Nothing in the library translates: pass it translated. */
6528
6649
  clearLabel: import("@angular/core").InputSignal<string>;
6529
6650
  /** Accessible name of the send button. Nothing in the library translates: pass it translated. */
@@ -6601,6 +6722,16 @@ declare abstract class SearchBarBase implements FormValueControl<string> {
6601
6722
  "required": false;
6602
6723
  "isSignal": true;
6603
6724
  };
6725
+ "hideKeyboardLabel": {
6726
+ "alias": "hideKeyboardLabel";
6727
+ "required": false;
6728
+ "isSignal": true;
6729
+ };
6730
+ "keyboardLabel": {
6731
+ "alias": "keyboardLabel";
6732
+ "required": false;
6733
+ "isSignal": true;
6734
+ };
6604
6735
  "clearLabel": {
6605
6736
  "alias": "clearLabel";
6606
6737
  "required": false;
@@ -8448,25 +8579,206 @@ export declare class SortableItemDirective<T = unknown> {
8448
8579
  };
8449
8580
  }, {}, never, never, true, never>;
8450
8581
  }
8582
+ /** Colour of the layer a swipe reveals. Tokens only — see CONTRIBUTING §5.4. */
8583
+ type SwipeActionTone = "error" | "success" | "warning" | "accent";
8584
+ /**
8585
+ * `<SwipeAction>` — the touch equivalent of a hover-only row action: drag a row sideways to reveal an
8586
+ * action, release past the threshold to trigger it (the iOS Mail gesture).
8587
+ *
8588
+ * - Drag to the **left** reveals the `end` action (`[swipeActionEnd]` slot, `(swipedEnd)`): the
8589
+ * destructive one, by convention.
8590
+ * - Drag to the **right** reveals the `start` action (`[swipeActionStart]` slot, `(swipedStart)`).
8591
+ * - A direction without its `*Enabled` input switched on does not move at all.
8592
+ *
8593
+ * Only a finger or a pen drives it (`pointerType !== "mouse"`): with a mouse the row keeps its regular
8594
+ * hover actions, and text selection by dragging is untouched. A vertical drag is left to the browser
8595
+ * (`touch-action: pan-y`), so the list still scrolls.
8596
+ *
8597
+ * **A swipe is a shortcut, never the only way**: the same action must stay reachable by a visible
8598
+ * button, because a hidden gesture is invisible to a screen reader and to a switch user.
8599
+ *
8600
+ * @example
8601
+ * ```html
8602
+ * <SwipeAction endEnabled startEnabled (swipedEnd)="remove(item)" (swipedStart)="favorite(item)">
8603
+ * <span swipeActionEnd><XMarkIcon /> Delete</span>
8604
+ * <span swipeActionStart><StarIcon /> Favorite</span>
8605
+ * <button (click)="open(item)">{{ item.title }}</button>
8606
+ * </SwipeAction>
8607
+ * ```
8608
+ */
8609
+ export declare class SwipeActionComponent {
8610
+ readonly class: import("@angular/core").InputSignal<string | undefined>;
8611
+ /** Classes of the layer that slides — the row's own layout (`flex …`), hover colours, background. */
8612
+ readonly contentClass: import("@angular/core").InputSignal<string | undefined>;
8613
+ /** Whether a drag to the right (reveals the `start` slot) is allowed. */
8614
+ readonly startEnabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
8615
+ /** Whether a drag to the left (reveals the `end` slot) is allowed. */
8616
+ readonly endEnabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
8617
+ readonly startTone: import("@angular/core").InputSignal<SwipeActionTone>;
8618
+ readonly endTone: import("@angular/core").InputSignal<SwipeActionTone>;
8619
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
8620
+ /** Distance, in px, past which releasing triggers the action. */
8621
+ readonly threshold: import("@angular/core").InputSignalWithTransform<number, unknown>;
8622
+ /** Emitted when the row is released past the threshold after a drag to the right. */
8623
+ readonly swipedStart: import("@angular/core").OutputEmitterRef<void>;
8624
+ /** Emitted when the row is released past the threshold after a drag to the left. */
8625
+ readonly swipedEnd: import("@angular/core").OutputEmitterRef<void>;
8626
+ protected readonly enabled: import("@angular/core").Signal<boolean>;
8627
+ protected readonly contentClasses: import("@angular/core").Signal<string>;
8628
+ protected readonly hostClass: import("@angular/core").Signal<string>;
8629
+ protected readonly startClass: import("@angular/core").Signal<string>;
8630
+ protected readonly endClass: import("@angular/core").Signal<string>;
8631
+ protected readonly offset: import("@angular/core").WritableSignal<number>;
8632
+ protected readonly dragging: import("@angular/core").WritableSignal<boolean>;
8633
+ /** The revealed layers are exactly as wide as the space the drag has freed. */
8634
+ protected readonly startWidth: import("@angular/core").Signal<number>;
8635
+ protected readonly endWidth: import("@angular/core").Signal<number>;
8636
+ /** Past the threshold: a release now triggers the action. */
8637
+ protected readonly startArmed: import("@angular/core").Signal<boolean>;
8638
+ protected readonly endArmed: import("@angular/core").Signal<boolean>;
8639
+ private readonly host;
8640
+ private readonly destroyRef;
8641
+ private gesture;
8642
+ private swallowClick;
8643
+ constructor();
8644
+ protected onPointerDown(event: PointerEvent): void;
8645
+ protected onPointerMove(event: PointerEvent): void;
8646
+ protected onPointerUp(event: PointerEvent): void;
8647
+ protected onPointerCancel(): void;
8648
+ /** Only the enabled directions move, and never further than the row is wide. */
8649
+ private clamp;
8650
+ private swallowNextClick;
8651
+ private stopSwallowingClick;
8652
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwipeActionComponent, never>;
8653
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwipeActionComponent, "swipe-action, SwipeAction", never, {
8654
+ "class": {
8655
+ "alias": "class";
8656
+ "required": false;
8657
+ "isSignal": true;
8658
+ };
8659
+ "contentClass": {
8660
+ "alias": "contentClass";
8661
+ "required": false;
8662
+ "isSignal": true;
8663
+ };
8664
+ "startEnabled": {
8665
+ "alias": "startEnabled";
8666
+ "required": false;
8667
+ "isSignal": true;
8668
+ };
8669
+ "endEnabled": {
8670
+ "alias": "endEnabled";
8671
+ "required": false;
8672
+ "isSignal": true;
8673
+ };
8674
+ "startTone": {
8675
+ "alias": "startTone";
8676
+ "required": false;
8677
+ "isSignal": true;
8678
+ };
8679
+ "endTone": {
8680
+ "alias": "endTone";
8681
+ "required": false;
8682
+ "isSignal": true;
8683
+ };
8684
+ "disabled": {
8685
+ "alias": "disabled";
8686
+ "required": false;
8687
+ "isSignal": true;
8688
+ };
8689
+ "threshold": {
8690
+ "alias": "threshold";
8691
+ "required": false;
8692
+ "isSignal": true;
8693
+ };
8694
+ }, {
8695
+ "swipedStart": "swipedStart";
8696
+ "swipedEnd": "swipedEnd";
8697
+ }, never, ["[swipeActionStart]", "[swipeActionEnd]", "*"], true, never>;
8698
+ }
8451
8699
  /**
8452
- * Observes viewport breakpoints.
8700
+ * Observes viewport breakpoints and the input capabilities of the device.
8701
+ *
8702
+ * - `isMobile`: the viewport is narrower than the `md` breakpoint (768px).
8703
+ * - `isTouch`: the primary pointer is a finger (`(pointer: coarse)`), i.e. phones AND tablets, whatever
8704
+ * their width. Use it — not `isMobile` — whenever the question is "can the user hover?": hover-only
8705
+ * actions, 44px targets, keyboard hints.
8706
+ * - `isLandscape`: the viewport is wider than tall.
8453
8707
  *
8454
- * Currently it only answers one question — is the viewport mobile-sized, i.e. narrower than the
8455
- * `md` breakpoint (768px). The `isMobile` signal is safe to read from the first change-detection
8456
- * pass onwards: the viewport is measured in the constructor, not after a render.
8708
+ * The signals are safe to read from the first change-detection pass onwards: the viewport is measured
8709
+ * in the constructor, not after a render.
8457
8710
  *
8458
8711
  * @example
8459
8712
  * ```ts
8460
8713
  * private readonly breakpoints = inject(BreakpointObserverService);
8461
8714
  * protected readonly placement = computed(() => (this.breakpoints.isMobile() ? "bottom" : "left"));
8715
+ * protected readonly buttonSize = computed(() => (this.breakpoints.isTouch() ? "lg" : "sm"));
8462
8716
  * ```
8463
8717
  */
8464
8718
  export declare class BreakpointObserverService {
8465
- private readonly _isMobile;
8466
- readonly isMobile: import("@angular/core").Signal<boolean>;
8719
+ readonly isMobile: Signal<boolean>;
8720
+ readonly isTouch: Signal<boolean>;
8721
+ readonly isLandscape: Signal<boolean>;
8467
8722
  constructor();
8468
- private readonly handleChange;
8469
8723
  static ɵfac: i0.ɵɵFactoryDeclaration<BreakpointObserverService, never>;
8470
8724
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
8471
8725
  }
8472
- export { type AutocompleteLoader, type AutocompleteOptionContext, type AutocompleteTagContext, type AvatarVariants, type BadgeVariants, type BulletVariants, type ButtonVariants, type CallOptions, type Callable, type CheckboxRootVariants, type DialogEvent, type DialogInterface, type DialogRef, type DialogResult, PopoverDirective as DropdownDirective, type FloatingPanelOptions, type InputCounterVariants, type InputWrapVariants, type KbdVariants, type LinkIconVariants, type LinkVariants, type ListItemVariants, type MenuPanelVariants, type ModalLabel, type ModalVariants, type RadioRootVariants, type ResizableDirection, type ResizableGroupVariants, type ResizableHandleAria, type ResizableHandleVariants, type ResizablePanelGroupLike, type SearchBarVariants, type SelectChevronVariants, type SelectOptionContext, type SelectOptionVariants, type SelectTriggerVariants, type SelectWrapVariants, type SheetVariants, type SidebarInsetVariants, type SidebarRef, type SidebarVariants, type SwitchRootVariants, type TagVariants, type TextareaWrapVariants, type ToggleGroupVariants, type ToggleVariants, type TooltipEvent, type TooltipOptions, type TooltipPanelState, type TooltipPosition, type TooltipVariants, type TreeItemVariants };
8726
+ /** How the user is driving the page right now: with a mouse, with a finger or a pen, or with the keyboard. */
8727
+ type InputModality = "pointer" | "touch" | "keyboard";
8728
+ /**
8729
+ * Tells whether the user is driving the page with a finger, a mouse or the keyboard, and hides the focus rings while it is a finger.
8730
+ *
8731
+ * A tap on a field gives it the focus, and `:focus-visible` then draws a ring that means nothing to someone who has no keyboard — it
8732
+ * only clutters the screen and, in a narrow popover, gets clipped. The ring is the keyboard user's position marker (WCAG 2.4.7),
8733
+ * so it comes back as soon as a navigation key is pressed — a tablet with a keyboard attached gets its rings at the first `Tab`.
8734
+ *
8735
+ * - Starts as `touch` when the primary pointer is a finger (`(pointer: coarse)`), `pointer` otherwise.
8736
+ * - A `pointerdown` of a finger or a pen sets `touch`, of a mouse sets `pointer`.
8737
+ * - A navigation key (`Tab`, arrows, `Home`, `End`, `PageUp`, `PageDown`, `Escape`) or a key pressed with `Ctrl`, `Cmd` or `Option` sets `keyboard`.
8738
+ * - It writes `data-input-modality` on `<html>` (a hook for your own CSS) and, while `touch`, sets `--stroke-focus: transparent` on it.
8739
+ *
8740
+ * Install it with {@link provideInputModality}: the listeners must exist before the first tap, not from the first injection.
8741
+ *
8742
+ * @example
8743
+ * ```ts
8744
+ * providers: [provideInputModality()]
8745
+ * ```
8746
+ */
8747
+ export declare class InputModalityService {
8748
+ private readonly current;
8749
+ /** The way the page is driven right now. */
8750
+ readonly modality: Signal<InputModality>;
8751
+ constructor();
8752
+ private set;
8753
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputModalityService, never>;
8754
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
8755
+ }
8756
+ /**
8757
+ * How the page is driven, as a signal — or nothing at all when the application did not call {@link provideInputModality}.
8758
+ *
8759
+ * A component reads it through {@link injectKeyboardAvailable} rather than by injecting {@link InputModalityService}: injecting the
8760
+ * service creates it, and with it the listeners and the hidden focus rings, which an application that did not ask for them must not
8761
+ * get from a list row.
8762
+ */
8763
+ export declare const INPUT_MODALITY: InjectionToken<Signal<InputModality>>;
8764
+ /**
8765
+ * Whether a keyboard is worth advertising: `false` while the page is driven with a finger (`touch`), `true` otherwise — and `true` when
8766
+ * the application has no {@link provideInputModality}, where nothing says a keyboard is absent. Use it for what only a keyboard can do:
8767
+ * the "↑ ↓ to navigate" line of a list, the "Press Del to delete" under a row. A screen reader needs none of these lines (it has its own
8768
+ * text, read through `aria-describedby`), so they can go.
8769
+ *
8770
+ * Must be called within an injection context.
8771
+ */
8772
+ export declare function injectKeyboardAvailable(): Signal<boolean>;
8773
+ /**
8774
+ * Starts the {@link InputModalityService}, which hides the focus rings of a touch screen until a navigation key is pressed.
8775
+ *
8776
+ * Eager, like the keyboard shortcuts: its listeners have to be there before the first tap.
8777
+ *
8778
+ * @example
8779
+ * ```ts
8780
+ * bootstrapApplication(App, { providers: [provideInputModality()] });
8781
+ * ```
8782
+ */
8783
+ export declare function provideInputModality(): EnvironmentProviders;
8784
+ export { type AutocompleteLoader, type AutocompleteOptionContext, type AutocompleteTagContext, type AvatarVariants, type BadgeVariants, type BulletVariants, type ButtonVariants, type CallOptions, type Callable, type CheckboxRootVariants, type DialogEvent, type DialogInterface, type DialogRef, type DialogResult, PopoverDirective as DropdownDirective, type FloatingPanelOptions, type InputCounterVariants, type InputModality, type InputWrapVariants, type KbdVariants, type LinkIconVariants, type LinkVariants, type ListItemVariants, type MenuPanelVariants, type ModalLabel, type ModalVariants, type RadioRootVariants, type ResizableDirection, type ResizableGroupVariants, type ResizableHandleAria, type ResizableHandleVariants, type ResizablePanelGroupLike, type SearchBarVariants, type SelectChevronVariants, type SelectOptionContext, type SelectOptionVariants, type SelectTriggerVariants, type SelectWrapVariants, type SheetVariants, type SidebarInsetVariants, type SidebarRef, type SidebarVariants, type SwipeActionTone, type SwitchRootVariants, type TagVariants, type TextareaWrapVariants, type ToggleGroupVariants, type ToggleVariants, type TooltipEvent, type TooltipOptions, type TooltipPanelState, type TooltipPosition, type TooltipVariants, type TreeItemVariants };