@sinequa/galactik 2.10.0 → 2.12.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
|
@@ -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>;
|
|
@@ -2714,8 +2731,13 @@ export declare class TooltipContentDirective {
|
|
|
2714
2731
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipContentDirective, "[tooltip-content], [tooltipContent]", never, {}, {}, never, never, true, never>;
|
|
2715
2732
|
}
|
|
2716
2733
|
/**
|
|
2717
|
-
* A tooltip on any element: shown on hover and on keyboard focus, hidden on `Escape`, on blur, on scroll
|
|
2718
|
-
* the host is pressed. The pointer can move onto the tooltip without closing it.
|
|
2734
|
+
* 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
|
|
2735
|
+
* anywhere outside it and as soon as the host is pressed. The pointer can move onto the tooltip without closing it.
|
|
2736
|
+
*
|
|
2737
|
+
* - **Touch.** A touch screen has no hover and no keyboard focus, and a tap does not open it (the pretend `mouseenter` that
|
|
2738
|
+
* follows a tap is ignored): open the tooltip yourself, with a button that calls `show()`
|
|
2739
|
+
* (`#tip="tooltip"`, then `(click)="tip.isOpen() ? tip.hide() : tip.show()"`). The tooltip then closes by itself at the next
|
|
2740
|
+
* tap elsewhere — that button toggles it, so its own tap never closes and reopens it.
|
|
2719
2741
|
*
|
|
2720
2742
|
* - **Accessibility.** The tooltip is a `role="tooltip"` element and the host gets `aria-describedby` pointing at it
|
|
2721
2743
|
* **while it is open** (the id is added to an existing `aria-describedby`, and removed again). A tooltip *describes*:
|
|
@@ -2808,7 +2830,10 @@ export declare class TooltipDirective {
|
|
|
2808
2830
|
protected onLeave(): void;
|
|
2809
2831
|
protected onFocusIn(): void;
|
|
2810
2832
|
protected onFocusOut(): void;
|
|
2811
|
-
|
|
2833
|
+
/** What the host last felt: `touch`, `pen` or `mouse`. Undefined until a pointer event came, as in a keyboard-only session. */
|
|
2834
|
+
protected pointerType: string | undefined;
|
|
2835
|
+
protected onPointerType(event: PointerEvent): void;
|
|
2836
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
2812
2837
|
protected onClick(): void;
|
|
2813
2838
|
private scheduleShow;
|
|
2814
2839
|
private scheduleHide;
|
|
@@ -3757,6 +3782,9 @@ export declare class AutocompleteComponent<TOption, TSelected = TOption> {
|
|
|
3757
3782
|
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
3758
3783
|
/** Accessible name of the field when there is no `fieldLabel` (a visible label names it already). Default: the placeholder. */
|
|
3759
3784
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
3785
|
+
/** Accessible names of the button that puts the on-screen keyboard away, and brings it back (landscape tablet only). Pass them translated. */
|
|
3786
|
+
readonly hideKeyboardLabel: import("@angular/core").InputSignal<string>;
|
|
3787
|
+
readonly keyboardLabel: import("@angular/core").InputSignal<string>;
|
|
3760
3788
|
readonly noResultsText: import("@angular/core").InputSignal<string>;
|
|
3761
3789
|
readonly searchingText: import("@angular/core").InputSignal<string>;
|
|
3762
3790
|
readonly errorText: import("@angular/core").InputSignal<string>;
|
|
@@ -3812,6 +3840,11 @@ export declare class AutocompleteComponent<TOption, TSelected = TOption> {
|
|
|
3812
3840
|
protected readonly inline: import("@angular/core").Signal<boolean>;
|
|
3813
3841
|
/** The field box: an input group that grows with its chips (`inline`), or the bare wrapper of the select-trigger input. */
|
|
3814
3842
|
protected readonly fieldClass: import("@angular/core").Signal<string>;
|
|
3843
|
+
/**
|
|
3844
|
+
* The keyboard button: after the text in the flow (`inline`), or overlaid left of the chevron — an `<input>` cannot contain it, and
|
|
3845
|
+
* in the flow it would sit outside the box, past the `w-full` of the field.
|
|
3846
|
+
*/
|
|
3847
|
+
protected readonly keyboardClass: import("@angular/core").Signal<string>;
|
|
3815
3848
|
/** The typed text: the input-group's control (`inline`), or the select-trigger-styled input. */
|
|
3816
3849
|
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">;
|
|
3817
3850
|
/** The chevron / spinner: after the text in the flow (`inline`), or overlaid at the end of the trigger. */
|
|
@@ -3965,6 +3998,16 @@ export declare class AutocompleteComponent<TOption, TSelected = TOption> {
|
|
|
3965
3998
|
"required": false;
|
|
3966
3999
|
"isSignal": true;
|
|
3967
4000
|
};
|
|
4001
|
+
"hideKeyboardLabel": {
|
|
4002
|
+
"alias": "hideKeyboardLabel";
|
|
4003
|
+
"required": false;
|
|
4004
|
+
"isSignal": true;
|
|
4005
|
+
};
|
|
4006
|
+
"keyboardLabel": {
|
|
4007
|
+
"alias": "keyboardLabel";
|
|
4008
|
+
"required": false;
|
|
4009
|
+
"isSignal": true;
|
|
4010
|
+
};
|
|
3968
4011
|
"noResultsText": {
|
|
3969
4012
|
"alias": "noResultsText";
|
|
3970
4013
|
"required": false;
|
|
@@ -4615,6 +4658,8 @@ export declare class ListItemAvatarDirective {
|
|
|
4615
4658
|
* même phrase, reliée par `aria-describedby`, porte l'annonce.
|
|
4616
4659
|
*/
|
|
4617
4660
|
export declare class ListItemActionComponent {
|
|
4661
|
+
/** `false` while the page is driven with a finger: the visible "Press Del" line is then not rendered. */
|
|
4662
|
+
protected readonly keyboardAvailable: import("@angular/core").Signal<boolean>;
|
|
4618
4663
|
/**
|
|
4619
4664
|
* Libellé de l'action, rendu dans l'infobulle des voyants (directive `tooltip`) et non en `aria-label` :
|
|
4620
4665
|
* l'icône est masquée aux technologies d'assistance, qui atteignent l'action par le raccourci `Suppr`
|
|
@@ -6183,6 +6228,49 @@ declare const inputCounterVariants: (props?: ({
|
|
|
6183
6228
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6184
6229
|
type InputWrapVariants = VariantProps<typeof inputWrapVariants>;
|
|
6185
6230
|
type InputCounterVariants = VariantProps<typeof inputCounterVariants>;
|
|
6231
|
+
/**
|
|
6232
|
+
* Lets the user put the on-screen keyboard of a tablet away to see the popup of a field.
|
|
6233
|
+
*
|
|
6234
|
+
* 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
|
|
6235
|
+
* 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
|
|
6236
|
+
* ({@link applicable}), the host offers a button that {@link toggle}s the keyboard: put away, the field keeps the focus and its popup
|
|
6237
|
+
* stays open (`inputmode="none"`); the same button brings the keyboard back. The field starts again with its keyboard each time it
|
|
6238
|
+
* takes the focus.
|
|
6239
|
+
*
|
|
6240
|
+
* Inert elsewhere (a mouse, a phone held upright, a laptop). A hardware keyboard types in the field all the same, `inputmode` being a
|
|
6241
|
+
* request for the on-screen one only.
|
|
6242
|
+
*
|
|
6243
|
+
* ⚠️ iOS only reads a new `inputmode` at a focus taken from inside the gesture: {@link hide} and {@link show} change it and move the
|
|
6244
|
+
* focus synchronously, never through a signal that would only reach the DOM at the next change detection. The button must not take the
|
|
6245
|
+
* focus from the field either, or the field blurs, and the keyboard with it, before the tap is read: bind `(mousedown)` on it with
|
|
6246
|
+
* `preventDefault()`.
|
|
6247
|
+
*
|
|
6248
|
+
* @example
|
|
6249
|
+
* ```html
|
|
6250
|
+
* <input virtualKeyboard #vk="virtualKeyboard" type="search" />
|
|
6251
|
+
* @if (vk.applicable()) {
|
|
6252
|
+
* <button type="button" (mousedown)="$event.preventDefault()" (click)="vk.toggle()">Keyboard</button>
|
|
6253
|
+
* }
|
|
6254
|
+
* ```
|
|
6255
|
+
*/
|
|
6256
|
+
export declare class VirtualKeyboardDirective {
|
|
6257
|
+
private readonly input;
|
|
6258
|
+
private readonly breakpoints;
|
|
6259
|
+
/** The user put the keyboard away. Back to false when the field loses the focus. */
|
|
6260
|
+
protected readonly away: import("@angular/core").WritableSignal<boolean>;
|
|
6261
|
+
/** The device and its orientation call for the button: a finger, and a landscape screen. */
|
|
6262
|
+
readonly applicable: import("@angular/core").Signal<boolean>;
|
|
6263
|
+
/** The keyboard is put away right now: the button then brings it back. */
|
|
6264
|
+
readonly hidden: import("@angular/core").Signal<boolean>;
|
|
6265
|
+
/** Puts the keyboard away and keeps the focus. Call it from the tap itself (see the note above). */
|
|
6266
|
+
hide(): void;
|
|
6267
|
+
/** Brings the keyboard back. Call it from the tap itself (see the note above). */
|
|
6268
|
+
show(): void;
|
|
6269
|
+
toggle(): void;
|
|
6270
|
+
private refocus;
|
|
6271
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VirtualKeyboardDirective, never>;
|
|
6272
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<VirtualKeyboardDirective, "input[virtualKeyboard]", ["virtualKeyboard"], {}, {}, never, never, true, never>;
|
|
6273
|
+
}
|
|
6186
6274
|
/**
|
|
6187
6275
|
* Textarea wrapper — the vertical flex that holds the native control and an
|
|
6188
6276
|
* optional counter. Like `InputComponent`, it drives the focus / disabled /
|
|
@@ -6365,6 +6453,9 @@ declare abstract class SearchInputBase implements FormValueControl<string> {
|
|
|
6365
6453
|
* `"shift+/"` annonçait un raccourci inopérant en QWERTY US.
|
|
6366
6454
|
*/
|
|
6367
6455
|
hotkey: import("@angular/core").InputSignal<string | undefined>;
|
|
6456
|
+
/** Accessible names of the button that puts the on-screen keyboard away, and brings it back (landscape tablet only). Pass them translated. */
|
|
6457
|
+
hideKeyboardLabel: import("@angular/core").InputSignal<string>;
|
|
6458
|
+
keyboardLabel: import("@angular/core").InputSignal<string>;
|
|
6368
6459
|
/** Accessible name of the clear button. Nothing in the library translates: pass it translated. */
|
|
6369
6460
|
clearLabel: import("@angular/core").InputSignal<string>;
|
|
6370
6461
|
class: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -6432,6 +6523,16 @@ declare abstract class SearchInputBase implements FormValueControl<string> {
|
|
|
6432
6523
|
"required": false;
|
|
6433
6524
|
"isSignal": true;
|
|
6434
6525
|
};
|
|
6526
|
+
"hideKeyboardLabel": {
|
|
6527
|
+
"alias": "hideKeyboardLabel";
|
|
6528
|
+
"required": false;
|
|
6529
|
+
"isSignal": true;
|
|
6530
|
+
};
|
|
6531
|
+
"keyboardLabel": {
|
|
6532
|
+
"alias": "keyboardLabel";
|
|
6533
|
+
"required": false;
|
|
6534
|
+
"isSignal": true;
|
|
6535
|
+
};
|
|
6435
6536
|
"clearLabel": {
|
|
6436
6537
|
"alias": "clearLabel";
|
|
6437
6538
|
"required": false;
|
|
@@ -6505,6 +6606,11 @@ export declare class SearchInputSuggestionsComponent extends SearchInputBase {
|
|
|
6505
6606
|
* still pointer, which would steal the keyboard's active row without any user gesture. `pointermove` only fires on a
|
|
6506
6607
|
* real pointer move. Touch is ignored: a finger drag is a scroll, not a hover.
|
|
6507
6608
|
*
|
|
6609
|
+
* 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
|
|
6610
|
+
* list, the list scrolls just enough to show it whole (`block: "nearest"`: a row already in view makes nothing move).
|
|
6611
|
+
* A row the pointer activated is skipped — the pointer is on it, and scrolling under a still pointer would make the list
|
|
6612
|
+
* crawl as the hover keeps changing the row under it.
|
|
6613
|
+
*
|
|
6508
6614
|
* Nothing is activated until the pointer moves, so "Enter picks the first row" of a freshly opened popup is unchanged.
|
|
6509
6615
|
* Disabled rows are ignored: hovering one leaves the current active row alone.
|
|
6510
6616
|
*
|
|
@@ -6514,6 +6620,10 @@ export declare class SearchInputSuggestionsComponent extends SearchInputBase {
|
|
|
6514
6620
|
*/
|
|
6515
6621
|
export declare class ListboxActivateOnHover {
|
|
6516
6622
|
private readonly listbox;
|
|
6623
|
+
private readonly host;
|
|
6624
|
+
/** The id of the option the pointer last made active: that one is never scrolled to. */
|
|
6625
|
+
private hoveredId;
|
|
6626
|
+
constructor();
|
|
6517
6627
|
protected onPointerMove(event: PointerEvent): void;
|
|
6518
6628
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListboxActivateOnHover, never>;
|
|
6519
6629
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ListboxActivateOnHover, "[ngListbox][activateOnHover]", never, {}, {}, never, never, true, never>;
|
|
@@ -6558,6 +6668,9 @@ declare abstract class SearchBarBase implements FormValueControl<string> {
|
|
|
6558
6668
|
* it is read: the `<input>`, this host being an unknown element with no role of its own.
|
|
6559
6669
|
*/
|
|
6560
6670
|
ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
6671
|
+
/** Accessible names of the button that puts the on-screen keyboard away, and brings it back (landscape tablet only). Pass them translated. */
|
|
6672
|
+
hideKeyboardLabel: import("@angular/core").InputSignal<string>;
|
|
6673
|
+
keyboardLabel: import("@angular/core").InputSignal<string>;
|
|
6561
6674
|
/** Accessible name of the clear button. Nothing in the library translates: pass it translated. */
|
|
6562
6675
|
clearLabel: import("@angular/core").InputSignal<string>;
|
|
6563
6676
|
/** Accessible name of the send button. Nothing in the library translates: pass it translated. */
|
|
@@ -6635,6 +6748,16 @@ declare abstract class SearchBarBase implements FormValueControl<string> {
|
|
|
6635
6748
|
"required": false;
|
|
6636
6749
|
"isSignal": true;
|
|
6637
6750
|
};
|
|
6751
|
+
"hideKeyboardLabel": {
|
|
6752
|
+
"alias": "hideKeyboardLabel";
|
|
6753
|
+
"required": false;
|
|
6754
|
+
"isSignal": true;
|
|
6755
|
+
};
|
|
6756
|
+
"keyboardLabel": {
|
|
6757
|
+
"alias": "keyboardLabel";
|
|
6758
|
+
"required": false;
|
|
6759
|
+
"isSignal": true;
|
|
6760
|
+
};
|
|
6638
6761
|
"clearLabel": {
|
|
6639
6762
|
"alias": "clearLabel";
|
|
6640
6763
|
"required": false;
|
|
@@ -8482,25 +8605,206 @@ export declare class SortableItemDirective<T = unknown> {
|
|
|
8482
8605
|
};
|
|
8483
8606
|
}, {}, never, never, true, never>;
|
|
8484
8607
|
}
|
|
8608
|
+
/** Colour of the layer a swipe reveals. Tokens only — see CONTRIBUTING §5.4. */
|
|
8609
|
+
type SwipeActionTone = "error" | "success" | "warning" | "accent";
|
|
8610
|
+
/**
|
|
8611
|
+
* `<SwipeAction>` — the touch equivalent of a hover-only row action: drag a row sideways to reveal an
|
|
8612
|
+
* action, release past the threshold to trigger it (the iOS Mail gesture).
|
|
8613
|
+
*
|
|
8614
|
+
* - Drag to the **left** reveals the `end` action (`[swipeActionEnd]` slot, `(swipedEnd)`): the
|
|
8615
|
+
* destructive one, by convention.
|
|
8616
|
+
* - Drag to the **right** reveals the `start` action (`[swipeActionStart]` slot, `(swipedStart)`).
|
|
8617
|
+
* - A direction without its `*Enabled` input switched on does not move at all.
|
|
8618
|
+
*
|
|
8619
|
+
* Only a finger or a pen drives it (`pointerType !== "mouse"`): with a mouse the row keeps its regular
|
|
8620
|
+
* hover actions, and text selection by dragging is untouched. A vertical drag is left to the browser
|
|
8621
|
+
* (`touch-action: pan-y`), so the list still scrolls.
|
|
8622
|
+
*
|
|
8623
|
+
* **A swipe is a shortcut, never the only way**: the same action must stay reachable by a visible
|
|
8624
|
+
* button, because a hidden gesture is invisible to a screen reader and to a switch user.
|
|
8625
|
+
*
|
|
8626
|
+
* @example
|
|
8627
|
+
* ```html
|
|
8628
|
+
* <SwipeAction endEnabled startEnabled (swipedEnd)="remove(item)" (swipedStart)="favorite(item)">
|
|
8629
|
+
* <span swipeActionEnd><XMarkIcon /> Delete</span>
|
|
8630
|
+
* <span swipeActionStart><StarIcon /> Favorite</span>
|
|
8631
|
+
* <button (click)="open(item)">{{ item.title }}</button>
|
|
8632
|
+
* </SwipeAction>
|
|
8633
|
+
* ```
|
|
8634
|
+
*/
|
|
8635
|
+
export declare class SwipeActionComponent {
|
|
8636
|
+
readonly class: import("@angular/core").InputSignal<string | undefined>;
|
|
8637
|
+
/** Classes of the layer that slides — the row's own layout (`flex …`), hover colours, background. */
|
|
8638
|
+
readonly contentClass: import("@angular/core").InputSignal<string | undefined>;
|
|
8639
|
+
/** Whether a drag to the right (reveals the `start` slot) is allowed. */
|
|
8640
|
+
readonly startEnabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
8641
|
+
/** Whether a drag to the left (reveals the `end` slot) is allowed. */
|
|
8642
|
+
readonly endEnabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
8643
|
+
readonly startTone: import("@angular/core").InputSignal<SwipeActionTone>;
|
|
8644
|
+
readonly endTone: import("@angular/core").InputSignal<SwipeActionTone>;
|
|
8645
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
8646
|
+
/** Distance, in px, past which releasing triggers the action. */
|
|
8647
|
+
readonly threshold: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
8648
|
+
/** Emitted when the row is released past the threshold after a drag to the right. */
|
|
8649
|
+
readonly swipedStart: import("@angular/core").OutputEmitterRef<void>;
|
|
8650
|
+
/** Emitted when the row is released past the threshold after a drag to the left. */
|
|
8651
|
+
readonly swipedEnd: import("@angular/core").OutputEmitterRef<void>;
|
|
8652
|
+
protected readonly enabled: import("@angular/core").Signal<boolean>;
|
|
8653
|
+
protected readonly contentClasses: import("@angular/core").Signal<string>;
|
|
8654
|
+
protected readonly hostClass: import("@angular/core").Signal<string>;
|
|
8655
|
+
protected readonly startClass: import("@angular/core").Signal<string>;
|
|
8656
|
+
protected readonly endClass: import("@angular/core").Signal<string>;
|
|
8657
|
+
protected readonly offset: import("@angular/core").WritableSignal<number>;
|
|
8658
|
+
protected readonly dragging: import("@angular/core").WritableSignal<boolean>;
|
|
8659
|
+
/** The revealed layers are exactly as wide as the space the drag has freed. */
|
|
8660
|
+
protected readonly startWidth: import("@angular/core").Signal<number>;
|
|
8661
|
+
protected readonly endWidth: import("@angular/core").Signal<number>;
|
|
8662
|
+
/** Past the threshold: a release now triggers the action. */
|
|
8663
|
+
protected readonly startArmed: import("@angular/core").Signal<boolean>;
|
|
8664
|
+
protected readonly endArmed: import("@angular/core").Signal<boolean>;
|
|
8665
|
+
private readonly host;
|
|
8666
|
+
private readonly destroyRef;
|
|
8667
|
+
private gesture;
|
|
8668
|
+
private swallowClick;
|
|
8669
|
+
constructor();
|
|
8670
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
8671
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
8672
|
+
protected onPointerUp(event: PointerEvent): void;
|
|
8673
|
+
protected onPointerCancel(): void;
|
|
8674
|
+
/** Only the enabled directions move, and never further than the row is wide. */
|
|
8675
|
+
private clamp;
|
|
8676
|
+
private swallowNextClick;
|
|
8677
|
+
private stopSwallowingClick;
|
|
8678
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwipeActionComponent, never>;
|
|
8679
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwipeActionComponent, "swipe-action, SwipeAction", never, {
|
|
8680
|
+
"class": {
|
|
8681
|
+
"alias": "class";
|
|
8682
|
+
"required": false;
|
|
8683
|
+
"isSignal": true;
|
|
8684
|
+
};
|
|
8685
|
+
"contentClass": {
|
|
8686
|
+
"alias": "contentClass";
|
|
8687
|
+
"required": false;
|
|
8688
|
+
"isSignal": true;
|
|
8689
|
+
};
|
|
8690
|
+
"startEnabled": {
|
|
8691
|
+
"alias": "startEnabled";
|
|
8692
|
+
"required": false;
|
|
8693
|
+
"isSignal": true;
|
|
8694
|
+
};
|
|
8695
|
+
"endEnabled": {
|
|
8696
|
+
"alias": "endEnabled";
|
|
8697
|
+
"required": false;
|
|
8698
|
+
"isSignal": true;
|
|
8699
|
+
};
|
|
8700
|
+
"startTone": {
|
|
8701
|
+
"alias": "startTone";
|
|
8702
|
+
"required": false;
|
|
8703
|
+
"isSignal": true;
|
|
8704
|
+
};
|
|
8705
|
+
"endTone": {
|
|
8706
|
+
"alias": "endTone";
|
|
8707
|
+
"required": false;
|
|
8708
|
+
"isSignal": true;
|
|
8709
|
+
};
|
|
8710
|
+
"disabled": {
|
|
8711
|
+
"alias": "disabled";
|
|
8712
|
+
"required": false;
|
|
8713
|
+
"isSignal": true;
|
|
8714
|
+
};
|
|
8715
|
+
"threshold": {
|
|
8716
|
+
"alias": "threshold";
|
|
8717
|
+
"required": false;
|
|
8718
|
+
"isSignal": true;
|
|
8719
|
+
};
|
|
8720
|
+
}, {
|
|
8721
|
+
"swipedStart": "swipedStart";
|
|
8722
|
+
"swipedEnd": "swipedEnd";
|
|
8723
|
+
}, never, ["[swipeActionStart]", "[swipeActionEnd]", "*"], true, never>;
|
|
8724
|
+
}
|
|
8485
8725
|
/**
|
|
8486
|
-
* Observes viewport breakpoints.
|
|
8726
|
+
* Observes viewport breakpoints and the input capabilities of the device.
|
|
8487
8727
|
*
|
|
8488
|
-
*
|
|
8489
|
-
* `
|
|
8490
|
-
*
|
|
8728
|
+
* - `isMobile`: the viewport is narrower than the `md` breakpoint (768px).
|
|
8729
|
+
* - `isTouch`: the primary pointer is a finger (`(pointer: coarse)`), i.e. phones AND tablets, whatever
|
|
8730
|
+
* their width. Use it — not `isMobile` — whenever the question is "can the user hover?": hover-only
|
|
8731
|
+
* actions, 44px targets, keyboard hints.
|
|
8732
|
+
* - `isLandscape`: the viewport is wider than tall.
|
|
8733
|
+
*
|
|
8734
|
+
* The signals are safe to read from the first change-detection pass onwards: the viewport is measured
|
|
8735
|
+
* in the constructor, not after a render.
|
|
8491
8736
|
*
|
|
8492
8737
|
* @example
|
|
8493
8738
|
* ```ts
|
|
8494
8739
|
* private readonly breakpoints = inject(BreakpointObserverService);
|
|
8495
8740
|
* protected readonly placement = computed(() => (this.breakpoints.isMobile() ? "bottom" : "left"));
|
|
8741
|
+
* protected readonly buttonSize = computed(() => (this.breakpoints.isTouch() ? "lg" : "sm"));
|
|
8496
8742
|
* ```
|
|
8497
8743
|
*/
|
|
8498
8744
|
export declare class BreakpointObserverService {
|
|
8499
|
-
|
|
8500
|
-
readonly
|
|
8745
|
+
readonly isMobile: Signal<boolean>;
|
|
8746
|
+
readonly isTouch: Signal<boolean>;
|
|
8747
|
+
readonly isLandscape: Signal<boolean>;
|
|
8501
8748
|
constructor();
|
|
8502
|
-
private readonly handleChange;
|
|
8503
8749
|
static ɵfac: i0.ɵɵFactoryDeclaration<BreakpointObserverService, never>;
|
|
8504
8750
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
8505
8751
|
}
|
|
8506
|
-
|
|
8752
|
+
/** How the user is driving the page right now: with a mouse, with a finger or a pen, or with the keyboard. */
|
|
8753
|
+
type InputModality = "pointer" | "touch" | "keyboard";
|
|
8754
|
+
/**
|
|
8755
|
+
* 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.
|
|
8756
|
+
*
|
|
8757
|
+
* 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
|
|
8758
|
+
* only clutters the screen and, in a narrow popover, gets clipped. The ring is the keyboard user's position marker (WCAG 2.4.7),
|
|
8759
|
+
* 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`.
|
|
8760
|
+
*
|
|
8761
|
+
* - Starts as `touch` when the primary pointer is a finger (`(pointer: coarse)`), `pointer` otherwise.
|
|
8762
|
+
* - A `pointerdown` of a finger or a pen sets `touch`, of a mouse sets `pointer`.
|
|
8763
|
+
* - A navigation key (`Tab`, arrows, `Home`, `End`, `PageUp`, `PageDown`, `Escape`) or a key pressed with `Ctrl`, `Cmd` or `Option` sets `keyboard`.
|
|
8764
|
+
* - It writes `data-input-modality` on `<html>` (a hook for your own CSS) and, while `touch`, sets `--stroke-focus: transparent` on it.
|
|
8765
|
+
*
|
|
8766
|
+
* Install it with {@link provideInputModality}: the listeners must exist before the first tap, not from the first injection.
|
|
8767
|
+
*
|
|
8768
|
+
* @example
|
|
8769
|
+
* ```ts
|
|
8770
|
+
* providers: [provideInputModality()]
|
|
8771
|
+
* ```
|
|
8772
|
+
*/
|
|
8773
|
+
export declare class InputModalityService {
|
|
8774
|
+
private readonly current;
|
|
8775
|
+
/** The way the page is driven right now. */
|
|
8776
|
+
readonly modality: Signal<InputModality>;
|
|
8777
|
+
constructor();
|
|
8778
|
+
private set;
|
|
8779
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputModalityService, never>;
|
|
8780
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
8781
|
+
}
|
|
8782
|
+
/**
|
|
8783
|
+
* How the page is driven, as a signal — or nothing at all when the application did not call {@link provideInputModality}.
|
|
8784
|
+
*
|
|
8785
|
+
* A component reads it through {@link injectKeyboardAvailable} rather than by injecting {@link InputModalityService}: injecting the
|
|
8786
|
+
* service creates it, and with it the listeners and the hidden focus rings, which an application that did not ask for them must not
|
|
8787
|
+
* get from a list row.
|
|
8788
|
+
*/
|
|
8789
|
+
export declare const INPUT_MODALITY: InjectionToken<Signal<InputModality>>;
|
|
8790
|
+
/**
|
|
8791
|
+
* Whether a keyboard is worth advertising: `false` while the page is driven with a finger (`touch`), `true` otherwise — and `true` when
|
|
8792
|
+
* the application has no {@link provideInputModality}, where nothing says a keyboard is absent. Use it for what only a keyboard can do:
|
|
8793
|
+
* 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
|
|
8794
|
+
* text, read through `aria-describedby`), so they can go.
|
|
8795
|
+
*
|
|
8796
|
+
* Must be called within an injection context.
|
|
8797
|
+
*/
|
|
8798
|
+
export declare function injectKeyboardAvailable(): Signal<boolean>;
|
|
8799
|
+
/**
|
|
8800
|
+
* Starts the {@link InputModalityService}, which hides the focus rings of a touch screen until a navigation key is pressed.
|
|
8801
|
+
*
|
|
8802
|
+
* Eager, like the keyboard shortcuts: its listeners have to be there before the first tap.
|
|
8803
|
+
*
|
|
8804
|
+
* @example
|
|
8805
|
+
* ```ts
|
|
8806
|
+
* bootstrapApplication(App, { providers: [provideInputModality()] });
|
|
8807
|
+
* ```
|
|
8808
|
+
*/
|
|
8809
|
+
export declare function provideInputModality(): EnvironmentProviders;
|
|
8810
|
+
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 };
|