@thalassic/ui 22.19.0 → 22.19.2
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/fesm2022/thalassic-ui.mjs +441 -133
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/thalassic-ui.d.ts +194 -30
package/package.json
CHANGED
package/types/thalassic-ui.d.ts
CHANGED
|
@@ -1731,7 +1731,15 @@ declare class FormItem {
|
|
|
1731
1731
|
|
|
1732
1732
|
declare const FORM_ITEM_CONFIG: InjectionToken<FormItemConfig>;
|
|
1733
1733
|
|
|
1734
|
-
|
|
1734
|
+
/**
|
|
1735
|
+
* How the typed query narrows the option list.
|
|
1736
|
+
*
|
|
1737
|
+
* - `contains` — keep options whose label contains the query.
|
|
1738
|
+
* - `startsWith` — keep options whose label begins with the query.
|
|
1739
|
+
* - `none` — keep every option. The list is filtered elsewhere (a server answering the
|
|
1740
|
+
* query), and a second local pass could only drop rows that search returned.
|
|
1741
|
+
*/
|
|
1742
|
+
type autocompleteFilterMode = 'contains' | 'startsWith' | 'none';
|
|
1735
1743
|
|
|
1736
1744
|
declare class Autocomplete<T, V = unknown> extends AbstractSelect<T, V, V | null> {
|
|
1737
1745
|
private static _nextUniqueId;
|
|
@@ -1746,11 +1754,37 @@ declare class Autocomplete<T, V = unknown> extends AbstractSelect<T, V, V | null
|
|
|
1746
1754
|
readonly size: InputSignal<controlSize>;
|
|
1747
1755
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
1748
1756
|
readonly clearable: InputSignalWithTransform<boolean, unknown>;
|
|
1757
|
+
/**
|
|
1758
|
+
* How the typed query narrows the options. `none` hands that job over entirely — the list is
|
|
1759
|
+
* shown as given, which is what a list fetched per query needs.
|
|
1760
|
+
*/
|
|
1749
1761
|
readonly filterMode: InputSignal<autocompleteFilterMode>;
|
|
1762
|
+
/**
|
|
1763
|
+
* Whether a search is in flight. While raised the panel reports the loading state in place of
|
|
1764
|
+
* the empty message, so a list that has not arrived yet stops reading like one that came back
|
|
1765
|
+
* with nothing.
|
|
1766
|
+
*/
|
|
1767
|
+
readonly loading: InputSignalWithTransform<boolean, unknown>;
|
|
1768
|
+
/**
|
|
1769
|
+
* Characters the query must reach before it is emitted and before the panel shows options or
|
|
1770
|
+
* the empty message, so an empty field never asks for the whole collection. `0` places no
|
|
1771
|
+
* floor on it.
|
|
1772
|
+
*/
|
|
1773
|
+
readonly minQueryLength: InputSignalWithTransform<number, unknown>;
|
|
1750
1774
|
readonly emptyMessage: InputSignal<string>;
|
|
1775
|
+
readonly loadingMessage: InputSignal<string>;
|
|
1751
1776
|
readonly clearLabel: InputSignal<string>;
|
|
1752
1777
|
readonly virtualScroll: InputSignalWithTransform<boolean, unknown>;
|
|
1753
1778
|
readonly virtualScrollItemSize: InputSignalWithTransform<number, unknown>;
|
|
1779
|
+
/**
|
|
1780
|
+
* The field's text, emitted as it is typed — the hook for answering a query from a source the
|
|
1781
|
+
* control does not hold. A typed term is emitted once it reaches {@link minQueryLength}, and an
|
|
1782
|
+
* empty field is emitted however it was emptied (typing, the clear button, a search abandoned by
|
|
1783
|
+
* closing the panel), so a listener is never left holding results for a term the field no longer
|
|
1784
|
+
* shows. Restoring a committed selection's label emits nothing: the item is already chosen, and
|
|
1785
|
+
* searching for it again is noise. Any debouncing belongs to the listener.
|
|
1786
|
+
*/
|
|
1787
|
+
readonly queryChange: OutputEmitterRef<string>;
|
|
1754
1788
|
protected readonly hasValue: Signal<boolean>;
|
|
1755
1789
|
protected readonly selectedLabel: Signal<string>;
|
|
1756
1790
|
/**
|
|
@@ -1759,17 +1793,35 @@ declare class Autocomplete<T, V = unknown> extends AbstractSelect<T, V, V | null
|
|
|
1759
1793
|
* changes (a selection, a clear, or an external model update), so the field always reflects it.
|
|
1760
1794
|
*/
|
|
1761
1795
|
protected readonly query: WritableSignal<string>;
|
|
1796
|
+
/** Whether the query has yet to reach the length below which the control stays silent. */
|
|
1797
|
+
protected readonly belowMinQueryLength: Signal<boolean>;
|
|
1798
|
+
/**
|
|
1799
|
+
* Whether the panel has anything to put in its box: options, the loading state, or the empty
|
|
1800
|
+
* message. A query under {@link minQueryLength} produces none of the three, and an empty box is
|
|
1801
|
+
* worse than no box at all.
|
|
1802
|
+
*/
|
|
1803
|
+
protected readonly hasPanelContent: Signal<boolean>;
|
|
1804
|
+
/** Whether work is outstanding on the control: async validation, or a search in flight. */
|
|
1805
|
+
protected readonly busy: Signal<boolean>;
|
|
1762
1806
|
protected select(option: Option<V>): void;
|
|
1763
1807
|
protected isOptionSelected(option: Option<V>): boolean;
|
|
1764
1808
|
protected onInput(event: Event): void;
|
|
1765
1809
|
protected onKeydown(event: KeyboardEvent): void;
|
|
1766
1810
|
protected filterVisibleOptions(options: Option<V>[]): Option<V>[];
|
|
1811
|
+
protected hostStateClasses(): string[];
|
|
1767
1812
|
protected onClosed(): void;
|
|
1768
1813
|
protected clear(): void;
|
|
1769
1814
|
protected getInitialActiveIndex(): number;
|
|
1770
1815
|
protected commitActiveOption(option: Option<V>): void;
|
|
1816
|
+
/**
|
|
1817
|
+
* Writes the field's text, announcing it whenever the write leaves the field empty. An empty
|
|
1818
|
+
* field is the one state a listener cannot infer from silence — its last results answer a term
|
|
1819
|
+
* that is gone — so it is reported no matter which route emptied the field. A write that lands
|
|
1820
|
+
* on text, including a committed selection's restored label, says nothing on its own.
|
|
1821
|
+
*/
|
|
1822
|
+
private _setQuery;
|
|
1771
1823
|
static ɵfac: i0.ɵɵFactoryDeclaration<Autocomplete<any, any>, never>;
|
|
1772
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Autocomplete<any, any>, "tls-autocomplete", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
1824
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Autocomplete<any, any>, "tls-autocomplete", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "minQueryLength": { "alias": "minQueryLength"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "queryChange": "queryChange"; }, never, never, true, never>;
|
|
1773
1825
|
}
|
|
1774
1826
|
|
|
1775
1827
|
interface AutocompleteConfig {
|
|
@@ -1778,7 +1830,15 @@ interface AutocompleteConfig {
|
|
|
1778
1830
|
fluid: boolean;
|
|
1779
1831
|
clearable: boolean;
|
|
1780
1832
|
filterMode: autocompleteFilterMode;
|
|
1833
|
+
/** Shown in the panel when the query matched nothing, overridable for localization. */
|
|
1781
1834
|
emptyMessage: string;
|
|
1835
|
+
/** Shown in the panel while a search is in flight, overridable for localization. */
|
|
1836
|
+
loadingMessage: string;
|
|
1837
|
+
/**
|
|
1838
|
+
* Characters the query must reach before it is emitted and before the panel shows
|
|
1839
|
+
* anything. `0` places no floor on it.
|
|
1840
|
+
*/
|
|
1841
|
+
minQueryLength: number;
|
|
1782
1842
|
/** Accessible name for the clear button, overridable for localization. */
|
|
1783
1843
|
clearLabel: string;
|
|
1784
1844
|
/** Renders the panel through a virtual-scroll viewport, windowing the option list. */
|
|
@@ -4094,6 +4154,37 @@ declare const TOAST_CONFIG: InjectionToken<ToastConfig>;
|
|
|
4094
4154
|
type tooltipOrigin = 'cursor' | 'element';
|
|
4095
4155
|
type tooltipPosition = overlayPosition;
|
|
4096
4156
|
type tooltipColor = color;
|
|
4157
|
+
/**
|
|
4158
|
+
* What is asking for a tooltip. Each source is an independent reason to show one, so a tooltip
|
|
4159
|
+
* asked for by two of them at once survives either one ending.
|
|
4160
|
+
*/
|
|
4161
|
+
type tooltipSource = 'hover' | 'focus' | 'touch';
|
|
4162
|
+
/** A live reason to show a tooltip: which element, and what to put in it. */
|
|
4163
|
+
interface TooltipRequest {
|
|
4164
|
+
/** Element the tooltip is positioned against. */
|
|
4165
|
+
anchor: HTMLElement;
|
|
4166
|
+
/**
|
|
4167
|
+
* Element the tooltip describes through `aria-describedby`. It is the anchor itself unless the
|
|
4168
|
+
* anchor merely wraps the real control — a description is only announced on the element that
|
|
4169
|
+
* actually takes focus.
|
|
4170
|
+
*/
|
|
4171
|
+
describedElement: HTMLElement;
|
|
4172
|
+
content: string | TemplateRef<unknown>;
|
|
4173
|
+
data: unknown;
|
|
4174
|
+
/**
|
|
4175
|
+
* Cursor position the tooltip anchors to instead of the element, when the origin is `cursor`.
|
|
4176
|
+
* `null` when the request came from something without a pointer, such as keyboard focus.
|
|
4177
|
+
*/
|
|
4178
|
+
point: Point | null;
|
|
4179
|
+
}
|
|
4180
|
+
/**
|
|
4181
|
+
* A trigger as the shared tooltip overlay sees it. Holding the tooltip is exclusive: the owner is
|
|
4182
|
+
* told to let go before it is handed to anyone else, and its calls are ignored once it has.
|
|
4183
|
+
*/
|
|
4184
|
+
interface TooltipOwner {
|
|
4185
|
+
/** Gives up the visible tooltip, leaving the anchor as if the tooltip had been hidden. */
|
|
4186
|
+
releaseTooltip(): void;
|
|
4187
|
+
}
|
|
4097
4188
|
|
|
4098
4189
|
declare class Tooltip {
|
|
4099
4190
|
private static _counter;
|
|
@@ -4114,25 +4205,44 @@ declare class Tooltip {
|
|
|
4114
4205
|
static ɵcmp: i0.ɵɵComponentDeclaration<Tooltip, "tls-tooltip", never, { "content": { "alias": "content"; "required": true; "isSignal": true; }; "templateData": { "alias": "templateData"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": true; "isSignal": true; }; "arrow": { "alias": "arrow"; "required": true; "isSignal": true; }; "arrowPosition": { "alias": "arrowPosition"; "required": false; "isSignal": true; }; }, { "content": "contentChange"; "templateData": "templateDataChange"; "color": "colorChange"; "arrow": "arrowChange"; "arrowPosition": "arrowPositionChange"; }, never, never, true, never>;
|
|
4115
4206
|
}
|
|
4116
4207
|
|
|
4208
|
+
/**
|
|
4209
|
+
* Owns the one tooltip overlay every trigger shares. A single tooltip is visible at a time
|
|
4210
|
+
* across the page: opening one asks whoever holds the current tooltip to let go first, so a
|
|
4211
|
+
* hovered element and a focused element elsewhere cannot leave two bubbles on screen.
|
|
4212
|
+
*
|
|
4213
|
+
* Every call names the trigger making it and is ignored unless that trigger holds the visible
|
|
4214
|
+
* tooltip, so one tearing itself down can never close a tooltip that has since moved on.
|
|
4215
|
+
*/
|
|
4117
4216
|
declare class TooltipService {
|
|
4118
|
-
private _overlay;
|
|
4217
|
+
private readonly _overlay;
|
|
4218
|
+
private _owner;
|
|
4119
4219
|
private _overlayRef;
|
|
4120
4220
|
private _tooltipRef;
|
|
4221
|
+
private _positionStrategy;
|
|
4121
4222
|
private _positionSubscription;
|
|
4122
4223
|
/**
|
|
4123
4224
|
* Edge the visible tooltip settled on. The strategy applies its position while the portal is
|
|
4124
4225
|
* still attaching, so the first change arrives before there is a component to hand it to.
|
|
4125
4226
|
*/
|
|
4126
4227
|
private _arrowPosition;
|
|
4127
|
-
show(origin: FlexibleConnectedPositionStrategyOrigin, positions: ConnectedPosition[]): ComponentRef<Tooltip>;
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4228
|
+
show(owner: TooltipOwner, origin: FlexibleConnectedPositionStrategyOrigin, positions: ConnectedPosition[]): ComponentRef<Tooltip>;
|
|
4229
|
+
/** Re-anchors the visible tooltip, following a cursor it is bound to. */
|
|
4230
|
+
move(owner: TooltipOwner, point: Point): void;
|
|
4231
|
+
/**
|
|
4232
|
+
* Detaches the tooltip so Angular's `animate.leave` plays the exit animation, then disposes the
|
|
4233
|
+
* pane once that animation finishes. The pane is kept alive in the meantime so it is not torn
|
|
4234
|
+
* down mid-animation.
|
|
4235
|
+
*/
|
|
4236
|
+
hide(owner: TooltipOwner): void;
|
|
4237
|
+
dispose(owner: TooltipOwner): void;
|
|
4131
4238
|
/**
|
|
4132
4239
|
* Builds a strategy that reports where it settled, so the tooltip points its arrow at the
|
|
4133
4240
|
* position actually used rather than the one asked for.
|
|
4134
4241
|
*/
|
|
4135
4242
|
private _createPositionStrategy;
|
|
4243
|
+
/** Takes the tooltip back from its owner, so the next one starts from an empty stage. */
|
|
4244
|
+
private _releaseOwner;
|
|
4245
|
+
private _disposeOverlay;
|
|
4136
4246
|
/** Drops everything tied to the overlay that just went away. */
|
|
4137
4247
|
private _reset;
|
|
4138
4248
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipService, never>;
|
|
@@ -4143,13 +4253,17 @@ declare class TooltipService {
|
|
|
4143
4253
|
* Shared machinery behind every tooltip trigger: the appearance inputs, the overlay lifecycle,
|
|
4144
4254
|
* and the `aria-describedby` link. A subclass owns only *when* a tooltip opens and *which*
|
|
4145
4255
|
* element it anchors to — `[tlsTooltip]` binds its own host, `[tlsTooltipDelegate]` resolves an
|
|
4146
|
-
* item out of a delegated event — and
|
|
4256
|
+
* item out of a delegated event — and records or drops show requests accordingly.
|
|
4147
4257
|
*
|
|
4148
|
-
*
|
|
4149
|
-
*
|
|
4150
|
-
*
|
|
4258
|
+
* A tooltip can be asked for by a hover, by keyboard focus, and by a tap at the same time. Each
|
|
4259
|
+
* source is tracked on its own and the most recent one is the tooltip on screen, so an
|
|
4260
|
+
* interaction ending only takes back what it asked for: a pointer leaving an element that is
|
|
4261
|
+
* still focused does not dismiss the tooltip focus is entitled to (WCAG 1.4.13).
|
|
4262
|
+
*
|
|
4263
|
+
* The tooltip overlay itself is shared across the page, so opening one here closes any other
|
|
4264
|
+
* trigger's.
|
|
4151
4265
|
*/
|
|
4152
|
-
declare abstract class TooltipTrigger implements OnDestroy {
|
|
4266
|
+
declare abstract class TooltipTrigger implements TooltipOwner, OnDestroy {
|
|
4153
4267
|
protected readonly _tooltipService: TooltipService;
|
|
4154
4268
|
protected readonly _renderer: Renderer2;
|
|
4155
4269
|
protected readonly _config: _thalassic_ui.TooltipConfig;
|
|
@@ -4161,23 +4275,56 @@ declare abstract class TooltipTrigger implements OnDestroy {
|
|
|
4161
4275
|
readonly tooltipColor: InputSignal<tooltipColor>;
|
|
4162
4276
|
/** Points a small arrow at the anchor. Disable it for a plain bubble. */
|
|
4163
4277
|
readonly tooltipArrow: InputSignal<boolean>;
|
|
4278
|
+
/**
|
|
4279
|
+
* Live show requests, keyed by the source that made them and held in the order they arrived.
|
|
4280
|
+
* The last one in is the one on screen; emptying the map hides the tooltip.
|
|
4281
|
+
*/
|
|
4282
|
+
private readonly _requests;
|
|
4164
4283
|
/** Element the visible tooltip is anchored to, `null` while nothing is shown. */
|
|
4165
4284
|
private _anchor;
|
|
4285
|
+
private readonly _tooltipRef;
|
|
4166
4286
|
/** Id of the description the visible tooltip added, so only that one is taken back. */
|
|
4167
4287
|
private _describedById;
|
|
4288
|
+
/** Element that description was put on, which is not always the anchor. */
|
|
4289
|
+
private _describedElement;
|
|
4290
|
+
/** Teardown of the document listeners that only run while a tooltip is visible. */
|
|
4291
|
+
private _dismissListeners;
|
|
4168
4292
|
protected readonly _positions: Signal<ConnectedPosition[]>;
|
|
4293
|
+
constructor();
|
|
4169
4294
|
/** Anchor of the visible tooltip, for a subclass deciding whether an event concerns it. */
|
|
4170
4295
|
protected get anchor(): HTMLElement | null;
|
|
4171
|
-
/**
|
|
4172
|
-
|
|
4296
|
+
/** Gives up the shared tooltip, along with every reason this trigger was showing one. */
|
|
4297
|
+
releaseTooltip(): void;
|
|
4298
|
+
/** Records `source` as wanting the tooltip described by `request`, and shows it. */
|
|
4299
|
+
protected _show(source: tooltipSource, request: TooltipRequest): void;
|
|
4300
|
+
/** Takes back what `source` asked for, leaving a tooltip any other source still wants. */
|
|
4301
|
+
protected _hide(source: tooltipSource): void;
|
|
4302
|
+
/** Drops every reason at once — a dismissal, rather than the end of one interaction. */
|
|
4303
|
+
protected _hideAll(): void;
|
|
4304
|
+
/** Whether a tap is what is currently holding the tooltip on `anchor`, which another tap ends. */
|
|
4305
|
+
protected _isTapped(anchor: HTMLElement): boolean;
|
|
4306
|
+
/** Re-states the content of every live request, so an input changing reaches a visible tooltip. */
|
|
4307
|
+
protected _updateContent(content: string | TemplateRef<unknown>, data: unknown): void;
|
|
4308
|
+
/** Brings the tooltip in line with the requests: the newest one, or none at all. */
|
|
4309
|
+
private _present;
|
|
4310
|
+
private _open;
|
|
4311
|
+
private _close;
|
|
4312
|
+
private _applyContent;
|
|
4173
4313
|
/**
|
|
4174
|
-
*
|
|
4175
|
-
*
|
|
4314
|
+
* Links the described element to the tooltip, following focus as it moves between controls the
|
|
4315
|
+
* anchor wraps. A description identical to the accessible name would be announced twice; the
|
|
4316
|
+
* tooltip is purely visual then and the link is omitted.
|
|
4176
4317
|
*/
|
|
4177
|
-
|
|
4178
|
-
protected _hide(): void;
|
|
4318
|
+
private _describe;
|
|
4179
4319
|
/** Takes back only the description this trigger added, leaving the consumer's own intact. */
|
|
4180
4320
|
private _undescribe;
|
|
4321
|
+
private _latestRequest;
|
|
4322
|
+
/**
|
|
4323
|
+
* Binds the dismissals that belong to a visible tooltip and nothing else, so a page full of
|
|
4324
|
+
* triggers carries no document listeners for the tooltips it is not showing.
|
|
4325
|
+
*/
|
|
4326
|
+
private _listenWhileVisible;
|
|
4327
|
+
private _unlisten;
|
|
4181
4328
|
ngOnDestroy(): void;
|
|
4182
4329
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipTrigger, never>;
|
|
4183
4330
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipTrigger, never, never, { "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; "isSignal": true; }; "tooltipOrigin": { "alias": "tooltipOrigin"; "required": false; "isSignal": true; }; "tooltipPositions": { "alias": "tooltipPositions"; "required": false; "isSignal": true; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; "tooltipOffset": { "alias": "tooltipOffset"; "required": false; "isSignal": true; }; "tooltipColor": { "alias": "tooltipColor"; "required": false; "isSignal": true; }; "tooltipArrow": { "alias": "tooltipArrow"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -4187,12 +4334,13 @@ declare abstract class TooltipTrigger implements OnDestroy {
|
|
|
4187
4334
|
* Serves tooltips for a whole subtree from one instance. Any descendant carrying the content
|
|
4188
4335
|
* attribute (`data-tooltip` by default) gets a tooltip, without each one needing its own
|
|
4189
4336
|
* `[tlsTooltip]`. Events are delegated to this host, so a grid of hundreds of cells costs one
|
|
4190
|
-
* directive
|
|
4337
|
+
* directive and one set of listeners rather than one of each per cell.
|
|
4191
4338
|
*
|
|
4192
4339
|
* Interaction matches `[tlsTooltip]`: hover for mouse and pen, tap-to-toggle for touch, show
|
|
4193
4340
|
* on keyboard focus, dismiss on Escape without moving the pointer or focus (WCAG 1.4.13), and
|
|
4194
|
-
* `aria-describedby` linking the
|
|
4195
|
-
*
|
|
4341
|
+
* `aria-describedby` linking the visible tooltip to the item — or, when focus is inside a
|
|
4342
|
+
* composite item, to the control holding it — joining any description that element already
|
|
4343
|
+
* carries, and omitted entirely when its `aria-label` already says the same thing.
|
|
4196
4344
|
*
|
|
4197
4345
|
* Trade-off: content is a plain string read from an attribute when the tooltip opens, so a
|
|
4198
4346
|
* `TemplateRef` tooltip is not available here and an attribute change while the tooltip is
|
|
@@ -4223,28 +4371,33 @@ declare class TooltipDelegateDirective extends TooltipTrigger {
|
|
|
4223
4371
|
declare const DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE = "data-tooltip";
|
|
4224
4372
|
|
|
4225
4373
|
/**
|
|
4226
|
-
* Attaches a tooltip to the host element. Shows on hover and on
|
|
4227
|
-
*
|
|
4228
|
-
*
|
|
4229
|
-
*
|
|
4230
|
-
*
|
|
4374
|
+
* Attaches a tooltip to the host element. Shows on hover and on focus landing anywhere inside
|
|
4375
|
+
* the host — a host that only wraps its real control is served as well as one that is the
|
|
4376
|
+
* control — toggles on touch, and dismisses on Escape without moving the pointer or focus
|
|
4377
|
+
* (WCAG 1.4.13). While visible the tooltip is linked with `aria-describedby` to the element it
|
|
4378
|
+
* describes: the host, or the control inside it that holds focus, since a description is only
|
|
4379
|
+
* announced on the element that has it. The link joins any description that element already
|
|
4380
|
+
* carries rather than replacing it, and leaves that one behind when the tooltip hides.
|
|
4231
4381
|
*
|
|
4232
4382
|
* Interaction is driven by pointer events, branching on `pointerType`: mouse
|
|
4233
4383
|
* and pen get hover semantics, touch gets tap-to-toggle. A single stream avoids
|
|
4234
4384
|
* the synthesized mouse events browsers replay after a tap.
|
|
4235
4385
|
*
|
|
4386
|
+
* Content is live: a tooltip already on screen follows the input it was opened with.
|
|
4387
|
+
*
|
|
4236
4388
|
* Serving many elements at once costs one instance each; `[tlsTooltipDelegate]`
|
|
4237
4389
|
* serves a whole subtree from one instead.
|
|
4238
4390
|
*/
|
|
4239
4391
|
declare class TooltipDirective extends TooltipTrigger {
|
|
4240
|
-
private readonly
|
|
4392
|
+
private readonly _element;
|
|
4241
4393
|
readonly content: InputSignal<string | TemplateRef<unknown>>;
|
|
4242
4394
|
readonly data: InputSignal<unknown>;
|
|
4395
|
+
constructor();
|
|
4243
4396
|
protected onPointerEnter(event: PointerEvent): void;
|
|
4244
4397
|
protected onPointerMove(event: PointerEvent): void;
|
|
4245
4398
|
protected onPointerLeave(event: PointerEvent): void;
|
|
4246
|
-
protected
|
|
4247
|
-
protected
|
|
4399
|
+
protected onFocusIn(event: FocusEvent): void;
|
|
4400
|
+
protected onFocusOut(event: FocusEvent): void;
|
|
4248
4401
|
private _showHost;
|
|
4249
4402
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
4250
4403
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[tlsTooltip]", never, { "content": { "alias": "tlsTooltip"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -4539,6 +4692,12 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
|
|
|
4539
4692
|
* opens it from the ones that follow while it stays open.
|
|
4540
4693
|
*/
|
|
4541
4694
|
private _panelWasOpen;
|
|
4695
|
+
/**
|
|
4696
|
+
* Whether the virtualized viewport last rendered with nothing in it. Its height is sized to
|
|
4697
|
+
* the options, so an empty list collapses it to zero — and a measurement taken then would
|
|
4698
|
+
* describe a viewport that no longer exists once options arrive.
|
|
4699
|
+
*/
|
|
4700
|
+
private _viewportWasCollapsed;
|
|
4542
4701
|
/**
|
|
4543
4702
|
* Keeps the active option visible inside the scrolling panel. Focus stays on the
|
|
4544
4703
|
* trigger and only `aria-activedescendant` moves, so the browser never scrolls the
|
|
@@ -4611,6 +4770,11 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
|
|
|
4611
4770
|
protected abstract commitActiveOption(option: Option<V>): void;
|
|
4612
4771
|
/** Reset the control to its empty value. */
|
|
4613
4772
|
protected abstract clear(): void;
|
|
4773
|
+
/**
|
|
4774
|
+
* Host modifiers for states only one control has, listed alongside the shared ones. Read from
|
|
4775
|
+
* within the host-class computation, so signals a control reads here stay reactive.
|
|
4776
|
+
*/
|
|
4777
|
+
protected hostStateClasses(): string[];
|
|
4614
4778
|
/**
|
|
4615
4779
|
* Narrows the option list shown in the panel. The listbox controls show every option; an editable
|
|
4616
4780
|
* combobox overrides this to filter by the typed query.
|
|
@@ -4644,4 +4808,4 @@ declare abstract class QuerySyncDirective {
|
|
|
4644
4808
|
declare const provideThalassicUIConfig: (config?: tlsUiConfigProvider) => EnvironmentProviders;
|
|
4645
4809
|
|
|
4646
4810
|
export { ACTIVITY_HEATMAP_CONFIG, ALERT_CONFIG, AUTOCOMPLETE_CONFIG, ActivityHeatmap, Alert, AlertIcon, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ACTIVITY_HEATMAP_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_CONFIG, DEFAULT_CONFIRM_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_DRAWER_CONFIG, DEFAULT_FILE_INPUT_CONFIG, DEFAULT_FORM_CONTROL_CONFIG, DEFAULT_FORM_CONTROL_GROUP_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_HIGHLIGHT_CONFIG, DEFAULT_ICONS, DEFAULT_ICON_CONFIG, DEFAULT_IMAGE_COMPARE_CONFIG, DEFAULT_INFINITE_SCROLL_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_KBD_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_MARK_CONFIG, DEFAULT_MENU_CONFIG, DEFAULT_MULTI_SELECT_CONFIG, DEFAULT_ODOMETER_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PAGINATION_QUERY_SYNC_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_PROGRESS_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_RATING_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SLIDER_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEPPER_LABELS, DEFAULT_STEP_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TABS_QUERY_SYNC_CONFIG, DEFAULT_TAB_NAV_CONFIG, DEFAULT_TEXTAREA_CONFIG, DEFAULT_TOAST_CONFIG, DEFAULT_TOGGLE_BUTTON_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE, DEFAULT_VIRTUAL_SCROLL_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DateTimePicker, Dialog, DialogBody, DialogFooter, DialogHeader, DialogRef, DialogService, DialogTitleDirective, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, FORM_CONTROL, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileDropTargetDirective, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, HIGHLIGHT_CONFIG, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, INFINITE_SCROLL_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, InfiniteScroll, Input, InputDirective, InputNumber, KBD_CONFIG, Kbd, LOADER_CONFIG, Loader, MARK_CONFIG, MASK_TOKENS, MENU_CONFIG, MULTI_SELECT_CONFIG, Mark, MaskDirective, Menu, MenuItemComponent, MenuTriggerDirective, MultiSelect, ODOMETER_CONFIG, Odometer, PAGINATION_CONFIG, PAGINATION_QUERY_SYNC_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, PROGRESS_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PinInput, Popover, Progress, RADIO_BUTTON_CONFIG, RATING_CONFIG, RadioButton, Rating, SELECT_CONFIG, SKELETON_CONFIG, SLIDER_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, Slider, Splitter, SplitterPanel, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TAB_NAV_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, TabLinkDirective, TabNavDirective, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastOutlet, ToastService, ToggleButton, ToggleGroup, TooltipDelegateDirective, TooltipDirective, TooltipTrigger, VIRTUAL_SCROLL_CONFIG, ValueFormControl, VirtualScroll, acceptsFile, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, isTypeRejected, normalizeAccept, provideThalassicIcons, provideThalassicUIConfig, resolveActivityLevel };
|
|
4647
|
-
export type { ActivityHeatmapConfig, ActivityHeatmapDay, ActivityHeatmapEntry, ActivityHeatmapLabels, ActivityHeatmapMonth, ActivityHeatmapRow, ActivityHeatmapTotal, AlertConfig, AutocompleteConfig, BadgeConfig, BreadcrumbItem, BreadcrumbItemContext, BreadcrumbsConfig, ButtonConfig, CalendarConfig, CalendarDayContext, CalendarEvent, CalendarEventContext, CalendarLabels, CalendarRange, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, ConfirmConfig, ConfirmOptions, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, DrawerConfig, DrawerOpenConfig, FileInputConfig, FileInputDropZoneContext, FileInputFileContext, FormControlConfig, FormControlGroupConfig, FormItemConfig, FormItemLabelContext, HighlightConfig, HighlightSegment, IconConfig, ImageCompareConfig, InfiniteScrollConfig, InfiniteScrollLabels, InputConfig, InputNumberConfig, KbdConfig, LoaderConfig, MarkConfig, MaskResult, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MenuRenderBlock, MenuRenderEntry, MenuRenderGroup, MenuRenderSingle, MultiSelectConfig, OdometerConfig, OdometerToken, OverlayArrowPosition, PaginationConfig, PaginationLabels, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, ProgressConfig, RadioButtonConfig, RatingConfig, RatingLabels, RatingStarContext, SelectConfig, SkeletonConfig, SliderConfig, SplitterConfig, StepConfig, StepperConfig, StepperLabels, StepperSelectEvent, SwitchConfig, TabNavConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TabsQuerySyncConfig, TextareaConfig, ToastConfig, ToastOptions, ToastRef, ToastState, ToggleButtonConfig, ToggleGroupConfig, TooltipConfig, TrackBy, VirtualScrollConfig, VirtualScrollContext, acceptInput, alertColor, autocompleteFilterMode, badgeColor, badgePosition, badgeVariant, buttonColor, buttonType, buttonVariant, calendarCompact, calendarView, chipColor, chipSize, chipTemplateContext, chipVariant, color, confirmActionsAlign, confirmButton, confirmSize, controlSize, dateTimePickerMode, dialogFooterAlign, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, drawerDragState, drawerSide, drawerSize, errorTrigger, fileDragState, fileInputVariant, iconRegistry, iconRenderer, imageCompareOrientation, infiniteScrollState, labelPosition, loaderSize, menuItemRole, menuItemType, menuPosition, orientation, overlayArrowAlignment, overlayArrowSide, overlayPosition, paginationItem, pinInputType, progressActiveSegment, progressColor, radius, radiusValue, ratingColor, resolvedConfirmButton, size, sliderColor, splitterOrientation, stepperColor, stepperLabelPosition, stepperOrientation, stepperValue, switchColor, systemIcon, tabValue, tableColumnAlignment, tableColumnCollapse, tabsHeaderAlign, tabsHeaderPosition, tabsItemsAlign, tabsOrientation, tabsVariant, textareaResize, tlsUiConfigProvider, toastAction, toastColor, toastPosition, toastSeverity, toastStacking, toggleButtonColor, toggleButtonVariant, toggleGroupVariant, tooltipColor, tooltipOrigin, tooltipPosition };
|
|
4811
|
+
export type { ActivityHeatmapConfig, ActivityHeatmapDay, ActivityHeatmapEntry, ActivityHeatmapLabels, ActivityHeatmapMonth, ActivityHeatmapRow, ActivityHeatmapTotal, AlertConfig, AutocompleteConfig, BadgeConfig, BreadcrumbItem, BreadcrumbItemContext, BreadcrumbsConfig, ButtonConfig, CalendarConfig, CalendarDayContext, CalendarEvent, CalendarEventContext, CalendarLabels, CalendarRange, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, ConfirmConfig, ConfirmOptions, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, DrawerConfig, DrawerOpenConfig, FileInputConfig, FileInputDropZoneContext, FileInputFileContext, FormControlConfig, FormControlGroupConfig, FormItemConfig, FormItemLabelContext, HighlightConfig, HighlightSegment, IconConfig, ImageCompareConfig, InfiniteScrollConfig, InfiniteScrollLabels, InputConfig, InputNumberConfig, KbdConfig, LoaderConfig, MarkConfig, MaskResult, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MenuRenderBlock, MenuRenderEntry, MenuRenderGroup, MenuRenderSingle, MultiSelectConfig, OdometerConfig, OdometerToken, OverlayArrowPosition, PaginationConfig, PaginationLabels, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, ProgressConfig, RadioButtonConfig, RatingConfig, RatingLabels, RatingStarContext, SelectConfig, SkeletonConfig, SliderConfig, SplitterConfig, StepConfig, StepperConfig, StepperLabels, StepperSelectEvent, SwitchConfig, TabNavConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TabsQuerySyncConfig, TextareaConfig, ToastConfig, ToastOptions, ToastRef, ToastState, ToggleButtonConfig, ToggleGroupConfig, TooltipConfig, TooltipOwner, TooltipRequest, TrackBy, VirtualScrollConfig, VirtualScrollContext, acceptInput, alertColor, autocompleteFilterMode, badgeColor, badgePosition, badgeVariant, buttonColor, buttonType, buttonVariant, calendarCompact, calendarView, chipColor, chipSize, chipTemplateContext, chipVariant, color, confirmActionsAlign, confirmButton, confirmSize, controlSize, dateTimePickerMode, dialogFooterAlign, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, drawerDragState, drawerSide, drawerSize, errorTrigger, fileDragState, fileInputVariant, iconRegistry, iconRenderer, imageCompareOrientation, infiniteScrollState, labelPosition, loaderSize, menuItemRole, menuItemType, menuPosition, orientation, overlayArrowAlignment, overlayArrowSide, overlayPosition, paginationItem, pinInputType, progressActiveSegment, progressColor, radius, radiusValue, ratingColor, resolvedConfirmButton, size, sliderColor, splitterOrientation, stepperColor, stepperLabelPosition, stepperOrientation, stepperValue, switchColor, systemIcon, tabValue, tableColumnAlignment, tableColumnCollapse, tabsHeaderAlign, tabsHeaderPosition, tabsItemsAlign, tabsOrientation, tabsVariant, textareaResize, tlsUiConfigProvider, toastAction, toastColor, toastPosition, toastSeverity, toastStacking, toggleButtonColor, toggleButtonVariant, toggleGroupVariant, tooltipColor, tooltipOrigin, tooltipPosition, tooltipSource };
|