@lilydesignsystem/angular-headless 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -3775,17 +3775,6 @@ export declare class ContentsListItem {
|
|
|
3775
3775
|
};
|
|
3776
3776
|
}, {}, never, ["*"], true, never>;
|
|
3777
3777
|
}
|
|
3778
|
-
/**
|
|
3779
|
-
* Which section is current: the last whose top has passed the activation line
|
|
3780
|
-
* (`tops` are each section's top relative to the scroller; `offset` is the line).
|
|
3781
|
-
* At the bottom of the scroll range the last section wins (a short last section
|
|
3782
|
-
* never reaches the line); before the first section, the first.
|
|
3783
|
-
*/
|
|
3784
|
-
declare function activeSectionIndex(tops: number[], offset: number, atBottom: boolean): number;
|
|
3785
|
-
/** The in-page `<a href="#id">` links inside `nav`. */
|
|
3786
|
-
declare function contentsLinks(nav: Element): HTMLAnchorElement[];
|
|
3787
|
-
declare function contentsLinkId(link: Element): string;
|
|
3788
|
-
declare function contentsTarget(link: Element, doc: Document): HTMLElement | null;
|
|
3789
3778
|
export type ScrollspyOptions = {
|
|
3790
3779
|
/** Activation line, px below the top of `root`. */
|
|
3791
3780
|
offset?: number;
|
|
@@ -3796,12 +3785,6 @@ export type ScrollspyOptions = {
|
|
|
3796
3785
|
/** Called once per change, with the section id. */
|
|
3797
3786
|
onChange?: (id: string) => void;
|
|
3798
3787
|
};
|
|
3799
|
-
/**
|
|
3800
|
-
* Mark the link of the section in view with `aria-current` and `data-active`
|
|
3801
|
-
* (and its enclosing `<li>`s with `data-descendant-active`). Returns a function
|
|
3802
|
-
* that stops listening.
|
|
3803
|
-
*/
|
|
3804
|
-
declare function startScrollspy(nav: HTMLElement, options?: ScrollspyOptions): () => void;
|
|
3805
3788
|
/**
|
|
3806
3789
|
* ContentsNav — a navigation landmark for a table of contents.
|
|
3807
3790
|
*
|
|
@@ -3951,6 +3934,124 @@ export declare class ContextualHelp {
|
|
|
3951
3934
|
};
|
|
3952
3935
|
}, {}, never, ["*"], true, never>;
|
|
3953
3936
|
}
|
|
3937
|
+
/**
|
|
3938
|
+
* ConvertDiv — a group that converts a value from one unit into another, such as dollars into euros or miles into kilometres
|
|
3939
|
+
*
|
|
3940
|
+
* A headless part of ConvertDiv: a plain <div> with the base class and projected content; role="group" named by the required `label` input.
|
|
3941
|
+
*/
|
|
3942
|
+
export declare class ConvertDiv {
|
|
3943
|
+
readonly className: import("@angular/core").InputSignal<string>;
|
|
3944
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
3945
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConvertDiv, never>;
|
|
3946
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConvertDiv, "lily-convert-div", never, {
|
|
3947
|
+
"className": {
|
|
3948
|
+
"alias": "className";
|
|
3949
|
+
"required": false;
|
|
3950
|
+
"isSignal": true;
|
|
3951
|
+
};
|
|
3952
|
+
"label": {
|
|
3953
|
+
"alias": "label";
|
|
3954
|
+
"required": true;
|
|
3955
|
+
"isSignal": true;
|
|
3956
|
+
};
|
|
3957
|
+
}, {}, never, ["*"], true, never>;
|
|
3958
|
+
}
|
|
3959
|
+
/**
|
|
3960
|
+
* ConvertFromDiv — the source side of a conversion, holding the value and unit to convert from
|
|
3961
|
+
*
|
|
3962
|
+
* A headless part of ConvertDiv: a plain <div> with the base class and projected content.
|
|
3963
|
+
*/
|
|
3964
|
+
export declare class ConvertFromDiv {
|
|
3965
|
+
readonly className: import("@angular/core").InputSignal<string>;
|
|
3966
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConvertFromDiv, never>;
|
|
3967
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConvertFromDiv, "lily-convert-from-div", never, {
|
|
3968
|
+
"className": {
|
|
3969
|
+
"alias": "className";
|
|
3970
|
+
"required": false;
|
|
3971
|
+
"isSignal": true;
|
|
3972
|
+
};
|
|
3973
|
+
}, {}, never, ["*"], true, never>;
|
|
3974
|
+
}
|
|
3975
|
+
/**
|
|
3976
|
+
* ConvertFromUnitDiv — the unit to convert from, such as a select box of currencies or lengths
|
|
3977
|
+
*
|
|
3978
|
+
* A headless part of ConvertDiv: a plain <div> with the base class and projected content.
|
|
3979
|
+
*/
|
|
3980
|
+
export declare class ConvertFromUnitDiv {
|
|
3981
|
+
readonly className: import("@angular/core").InputSignal<string>;
|
|
3982
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConvertFromUnitDiv, never>;
|
|
3983
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConvertFromUnitDiv, "lily-convert-from-unit-div", never, {
|
|
3984
|
+
"className": {
|
|
3985
|
+
"alias": "className";
|
|
3986
|
+
"required": false;
|
|
3987
|
+
"isSignal": true;
|
|
3988
|
+
};
|
|
3989
|
+
}, {}, never, ["*"], true, never>;
|
|
3990
|
+
}
|
|
3991
|
+
/**
|
|
3992
|
+
* ConvertFromValueDiv — the value to convert from, such as a text input holding the number of dollars
|
|
3993
|
+
*
|
|
3994
|
+
* A headless part of ConvertDiv: a plain <div> with the base class and projected content.
|
|
3995
|
+
*/
|
|
3996
|
+
export declare class ConvertFromValueDiv {
|
|
3997
|
+
readonly className: import("@angular/core").InputSignal<string>;
|
|
3998
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConvertFromValueDiv, never>;
|
|
3999
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConvertFromValueDiv, "lily-convert-from-value-div", never, {
|
|
4000
|
+
"className": {
|
|
4001
|
+
"alias": "className";
|
|
4002
|
+
"required": false;
|
|
4003
|
+
"isSignal": true;
|
|
4004
|
+
};
|
|
4005
|
+
}, {}, never, ["*"], true, never>;
|
|
4006
|
+
}
|
|
4007
|
+
/**
|
|
4008
|
+
* ConvertIntoDiv — the target side of a conversion, holding the value and unit to convert into
|
|
4009
|
+
*
|
|
4010
|
+
* A headless part of ConvertDiv: a plain <div> with the base class and projected content.
|
|
4011
|
+
*/
|
|
4012
|
+
export declare class ConvertIntoDiv {
|
|
4013
|
+
readonly className: import("@angular/core").InputSignal<string>;
|
|
4014
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConvertIntoDiv, never>;
|
|
4015
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConvertIntoDiv, "lily-convert-into-div", never, {
|
|
4016
|
+
"className": {
|
|
4017
|
+
"alias": "className";
|
|
4018
|
+
"required": false;
|
|
4019
|
+
"isSignal": true;
|
|
4020
|
+
};
|
|
4021
|
+
}, {}, never, ["*"], true, never>;
|
|
4022
|
+
}
|
|
4023
|
+
/**
|
|
4024
|
+
* ConvertIntoUnitDiv — the unit to convert into, such as a select box of currencies or lengths
|
|
4025
|
+
*
|
|
4026
|
+
* A headless part of ConvertDiv: a plain <div> with the base class and projected content.
|
|
4027
|
+
*/
|
|
4028
|
+
export declare class ConvertIntoUnitDiv {
|
|
4029
|
+
readonly className: import("@angular/core").InputSignal<string>;
|
|
4030
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConvertIntoUnitDiv, never>;
|
|
4031
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConvertIntoUnitDiv, "lily-convert-into-unit-div", never, {
|
|
4032
|
+
"className": {
|
|
4033
|
+
"alias": "className";
|
|
4034
|
+
"required": false;
|
|
4035
|
+
"isSignal": true;
|
|
4036
|
+
};
|
|
4037
|
+
}, {}, never, ["*"], true, never>;
|
|
4038
|
+
}
|
|
4039
|
+
/**
|
|
4040
|
+
* ConvertIntoValueDiv — the converted value, such as a text input showing the number of euros
|
|
4041
|
+
*
|
|
4042
|
+
* A headless part of ConvertDiv: a plain <div> with the base class and projected content.
|
|
4043
|
+
*/
|
|
4044
|
+
export declare class ConvertIntoValueDiv {
|
|
4045
|
+
readonly className: import("@angular/core").InputSignal<string>;
|
|
4046
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConvertIntoValueDiv, never>;
|
|
4047
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConvertIntoValueDiv, "lily-convert-into-value-div", never, {
|
|
4048
|
+
"className": {
|
|
4049
|
+
"alias": "className";
|
|
4050
|
+
"required": false;
|
|
4051
|
+
"isSignal": true;
|
|
4052
|
+
};
|
|
4053
|
+
}, {}, never, ["*"], true, never>;
|
|
4054
|
+
}
|
|
3954
4055
|
/**
|
|
3955
4056
|
* CurrencyInput — a locale-aware currency input with automatic formatting, symbols, separators
|
|
3956
4057
|
*
|
|
@@ -10588,10 +10689,6 @@ export interface TruncateMiddleOptions {
|
|
|
10588
10689
|
/** Clusters kept at the end for "fixed-end" and "min-end". Ignored by "even". */
|
|
10589
10690
|
end?: number;
|
|
10590
10691
|
}
|
|
10591
|
-
/** Split into user-perceived characters. */
|
|
10592
|
-
declare function splitGraphemes(text: string): string[];
|
|
10593
|
-
/** The text shortened to fit `maxWidth`, or unchanged when it already fits. */
|
|
10594
|
-
declare function truncateMiddle(text: string, options: TruncateMiddleOptions): string;
|
|
10595
10692
|
/**
|
|
10596
10693
|
* MiddleTruncation — a string shortened in the middle to fit its width, keeping the start and the end.
|
|
10597
10694
|
*
|
|
@@ -18539,37 +18636,16 @@ export interface WheelOption {
|
|
|
18539
18636
|
disabled?: boolean;
|
|
18540
18637
|
}
|
|
18541
18638
|
export type WheelMoveKey = "ArrowUp" | "ArrowDown" | "Home" | "End" | "PageUp" | "PageDown";
|
|
18542
|
-
declare const WHEEL_MOVE_KEYS: readonly string[];
|
|
18543
18639
|
export interface WheelMoveOptions {
|
|
18544
18640
|
/** Arrow keys wrap from the last enabled option to the first and back. Default false. */
|
|
18545
18641
|
loop?: boolean;
|
|
18546
18642
|
/** Enabled options PageUp / PageDown move by. Default 5. */
|
|
18547
18643
|
pageSize?: number;
|
|
18548
18644
|
}
|
|
18549
|
-
/**
|
|
18550
|
-
* The index to select after `key`, or -1 when no option can be selected. `current` is the selected index, or -1 for none.
|
|
18551
|
-
* With nothing selected, ArrowDown / PageDown / Home choose the first enabled option and ArrowUp / PageUp / End the last.
|
|
18552
|
-
*/
|
|
18553
|
-
declare function nextWheelIndex(options: readonly WheelOption[], current: number, key: WheelMoveKey, move?: WheelMoveOptions): number;
|
|
18554
|
-
declare const WHEEL_TYPEAHEAD_RESET_MS = 700;
|
|
18555
18645
|
export interface WheelTypeahead {
|
|
18556
18646
|
prefix: string;
|
|
18557
18647
|
at: number;
|
|
18558
18648
|
}
|
|
18559
|
-
/** The prefix after `key` at time `now`: it grows while presses are within the reset time, else starts over. */
|
|
18560
|
-
declare function nextWheelPrefix(previous: WheelTypeahead, key: string, now: number, resetMs?: number): WheelTypeahead;
|
|
18561
|
-
/** Whether a key press is a type-ahead character: one printable character other than space, no Ctrl, Alt or Meta. */
|
|
18562
|
-
declare function isWheelTypeaheadKey(event: {
|
|
18563
|
-
key: string;
|
|
18564
|
-
ctrlKey?: boolean;
|
|
18565
|
-
altKey?: boolean;
|
|
18566
|
-
metaKey?: boolean;
|
|
18567
|
-
}): boolean;
|
|
18568
|
-
/**
|
|
18569
|
-
* The enabled option to move to for the typed `prefix`, or -1. Searches from the option after `current` and wraps; a prefix of one
|
|
18570
|
-
* repeated letter ("ss") counts as that single letter, so pressing it again steps through the options that start with it.
|
|
18571
|
-
*/
|
|
18572
|
-
declare function wheelTypeaheadIndex(options: readonly WheelOption[], current: number, prefix: string): number;
|
|
18573
18649
|
/**
|
|
18574
18650
|
* WheelPicker — a vertical single-select listbox where the selection follows the cursor.
|
|
18575
18651
|
*
|