@eagami/ui 5.31.0 → 5.33.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/fesm2022/eagami-ui.mjs +74 -15
- package/fesm2022/eagami-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eagami-ui.d.ts +14 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eagami/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.33.0",
|
|
4
4
|
"description": "Lightweight, accessible, themeable Angular UI component library and icon set built on CSS custom properties",
|
|
5
5
|
"author": "Michal Wiraszka <michal@eagami.com>",
|
|
6
6
|
"license": "MIT",
|
package/types/eagami-ui.d.ts
CHANGED
|
@@ -1033,7 +1033,9 @@ type ButtonType = 'button' | 'submit' | 'reset';
|
|
|
1033
1033
|
/**
|
|
1034
1034
|
* Standard action button supporting primary, secondary, ghost, and danger
|
|
1035
1035
|
* variants. Includes a loading state that swaps the label for a spinner while
|
|
1036
|
-
* preserving the rendered width.
|
|
1036
|
+
* preserving the rendered width. Chrome is tunable per instance via
|
|
1037
|
+
* `--ea-button-padding` and `--ea-button-min-height`, which is how an
|
|
1038
|
+
* icon-only button comes down to little more than its glyph.
|
|
1037
1039
|
*/
|
|
1038
1040
|
declare class ButtonComponent {
|
|
1039
1041
|
readonly variant: _angular_core.InputSignal<ButtonVariant>;
|
|
@@ -3470,12 +3472,6 @@ declare class SkeletonComponent {
|
|
|
3470
3472
|
|
|
3471
3473
|
/** Visual size of the slider track and thumb. */
|
|
3472
3474
|
type SliderSize = EaSize;
|
|
3473
|
-
/**
|
|
3474
|
-
* Single-value range input controlled with pointer drag or full keyboard
|
|
3475
|
-
* navigation (arrows, PageUp/PageDown, Home/End). Supports configurable
|
|
3476
|
-
* `min`, `max`, and `step`, optional value display, and integrates with
|
|
3477
|
-
* Angular forms via `ControlValueAccessor`.
|
|
3478
|
-
*/
|
|
3479
3475
|
declare class SliderComponent implements ControlValueAccessor {
|
|
3480
3476
|
private readonly i18n;
|
|
3481
3477
|
readonly trackEl: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
@@ -3497,6 +3493,12 @@ declare class SliderComponent implements ControlValueAccessor {
|
|
|
3497
3493
|
readonly showValue: _angular_core.InputSignal<boolean>;
|
|
3498
3494
|
readonly showMinMaxLabels: _angular_core.InputSignal<boolean>;
|
|
3499
3495
|
readonly formatValue: _angular_core.InputSignal<(value: number) => string>;
|
|
3496
|
+
/**
|
|
3497
|
+
* Values the thumb is pulled onto while dragging, each drawn as a tick on
|
|
3498
|
+
* the track. The pull reaches a few pixels either side, so a marked value
|
|
3499
|
+
* can be landed exactly without hunting for it.
|
|
3500
|
+
*/
|
|
3501
|
+
readonly snapValues: _angular_core.InputSignal<readonly number[]>;
|
|
3500
3502
|
/** Group thousands with commas in displayed values (ignored when a custom `formatValue` is set). */
|
|
3501
3503
|
readonly groupThousands: _angular_core.InputSignal<boolean>;
|
|
3502
3504
|
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
@@ -3511,6 +3513,8 @@ declare class SliderComponent implements ControlValueAccessor {
|
|
|
3511
3513
|
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
3512
3514
|
readonly clampedValue: _angular_core.Signal<number>;
|
|
3513
3515
|
readonly percent: _angular_core.Signal<number>;
|
|
3516
|
+
/** Where each snap value's tick sits along the track. */
|
|
3517
|
+
readonly tickPercents: _angular_core.Signal<number[]>;
|
|
3514
3518
|
/** Formats a value for display, grouping thousands with commas unless a custom `formatValue` is set. */
|
|
3515
3519
|
protected formatDisplay(value: number): string;
|
|
3516
3520
|
private readonly errorState;
|
|
@@ -3534,9 +3538,11 @@ declare class SliderComponent implements ControlValueAccessor {
|
|
|
3534
3538
|
handlePointerUp(event: PointerEvent): void;
|
|
3535
3539
|
handleBlur(): void;
|
|
3536
3540
|
private updateFromPointer;
|
|
3541
|
+
/** The snap value within the magnet's reach of the pointer, if any. */
|
|
3542
|
+
private magnetTarget;
|
|
3537
3543
|
private commitValue;
|
|
3538
3544
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderComponent, never>;
|
|
3539
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SliderComponent, "ea-slider", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "errorMsg": { "alias": "errorMsg"; "required": false; "isSignal": true; }; "errorMessages": { "alias": "errorMessages"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showMinMaxLabels": { "alias": "showMinMaxLabels"; "required": false; "isSignal": true; }; "formatValue": { "alias": "formatValue"; "required": false; "isSignal": true; }; "groupThousands": { "alias": "groupThousands"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "changed": "changed"; }, never, never, true, never>;
|
|
3545
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SliderComponent, "ea-slider", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "errorMsg": { "alias": "errorMsg"; "required": false; "isSignal": true; }; "errorMessages": { "alias": "errorMessages"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showMinMaxLabels": { "alias": "showMinMaxLabels"; "required": false; "isSignal": true; }; "formatValue": { "alias": "formatValue"; "required": false; "isSignal": true; }; "snapValues": { "alias": "snapValues"; "required": false; "isSignal": true; }; "groupThousands": { "alias": "groupThousands"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "changed": "changed"; }, never, never, true, never>;
|
|
3540
3546
|
}
|
|
3541
3547
|
|
|
3542
3548
|
/** Visual size of the spinner. */
|