@eagami/ui 5.78.0 → 5.80.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": "@eagami/ui",
3
- "version": "5.78.0",
3
+ "version": "5.80.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",
@@ -1030,6 +1030,8 @@ export declare class AutocompleteComponent extends LabelledFieldControlBase impl
1030
1030
  /** Maximum number of characters the input accepts (native `maxlength`). */
1031
1031
  readonly maxLength: import("@angular/core").InputSignal<number | undefined>;
1032
1032
  readonly maxResults: import("@angular/core").InputSignal<number>;
1033
+ /** Shows a clear button while the field has a value. */
1034
+ readonly clearable: import("@angular/core").InputSignal<boolean>;
1033
1035
  readonly emptyMessage: import("@angular/core").InputSignal<string | undefined>;
1034
1036
  readonly id: import("@angular/core").InputSignal<string>;
1035
1037
  readonly value: import("@angular/core").ModelSignal<string>;
@@ -1049,6 +1051,8 @@ export declare class AutocompleteComponent extends LabelledFieldControlBase impl
1049
1051
  private onChange;
1050
1052
  private onTouched;
1051
1053
  readonly isDisabled: import("@angular/core").Signal<boolean>;
1054
+ readonly showClear: import("@angular/core").Signal<boolean>;
1055
+ protected readonly clearLabel: import("@angular/core").Signal<string>;
1052
1056
  private readonly errorState;
1053
1057
  readonly errorText: import("@angular/core").Signal<string | null>;
1054
1058
  readonly hasError: import("@angular/core").Signal<boolean>;
@@ -1086,6 +1090,9 @@ export declare class AutocompleteComponent extends LabelledFieldControlBase impl
1086
1090
  handleKeydown(event: KeyboardEvent): void;
1087
1091
  /** Programmatically selects the given option, updating the value and closing the list. */
1088
1092
  selectOption(option: SelectOption): void;
1093
+ protected onClearMousedown(event: MouseEvent): void;
1094
+ /** Clears the current value and restores focus to the input. */
1095
+ clear(): void;
1089
1096
  /** Closes the suggestion list without changing the current value. */
1090
1097
  close(): void;
1091
1098
  /** Moves keyboard focus to the underlying text input. */
@@ -1138,6 +1145,11 @@ export declare class AutocompleteComponent extends LabelledFieldControlBase impl
1138
1145
  "required": false;
1139
1146
  "isSignal": true;
1140
1147
  };
1148
+ "clearable": {
1149
+ "alias": "clearable";
1150
+ "required": false;
1151
+ "isSignal": true;
1152
+ };
1141
1153
  "emptyMessage": {
1142
1154
  "alias": "emptyMessage";
1143
1155
  "required": false;
@@ -2571,9 +2583,10 @@ interface Rgb {
2571
2583
  export declare class ColorPickerComponent extends LabelledFieldControlBase implements ControlValueAccessor {
2572
2584
  protected readonly triggerEl: import("@angular/core").Signal<ElementRef<HTMLButtonElement> | undefined>;
2573
2585
  private readonly svAreaEl;
2586
+ private readonly valueInputEl;
2574
2587
  private readonly hueTrackEl;
2575
2588
  private readonly alphaTrackEl;
2576
- private readonly injector;
2589
+ private readonly popover;
2577
2590
  protected readonly i18n: EagamiI18nService;
2578
2591
  readonly placeholder: import("@angular/core").InputSignal<string | undefined>;
2579
2592
  readonly size: import("@angular/core").InputSignal<EaSize>;
@@ -2610,11 +2623,19 @@ export declare class ColorPickerComponent extends LabelledFieldControlBase imple
2610
2623
  readonly activeFormat: import("@angular/core").Signal<ColorPickerInputMode>;
2611
2624
  /** Whether the in-popover format toggle is shown (only when `format` is `all`). */
2612
2625
  readonly canToggleFormat: import("@angular/core").Signal<boolean>;
2613
- /** What the hex input shows. Kept separate from the canonical hex so the user
2614
- * can type a partial value (`#1`, `#12`, `#123`...) without each keystroke being
2615
- * expanded back into a 6-digit canonical form. */
2626
+ /** What the hex input shows, without the `#` the field draws in front of it.
2627
+ * Kept separate from the canonical hex so the user can type a partial value
2628
+ * (`1`, `12`, `123`...) without each keystroke being expanded back into a
2629
+ * 6-digit canonical form. */
2616
2630
  readonly hexInputValue: import("@angular/core").WritableSignal<string>;
2617
2631
  private readonly _formDisabled;
2632
+ /** Pointer type of the latest press on the trigger, read by the next `open()`. */
2633
+ private triggerPointerType;
2634
+ /** Where focus goes once the popover is on screen. A touch or pen open takes
2635
+ * the saturation area, so the on-screen keyboard does not rise over the
2636
+ * popover; any other open takes the value input. */
2637
+ private readonly pendingFocus;
2638
+ private readonly focusOnOpen;
2618
2639
  /** The last value this component emitted, so the value-sync effect can tell an
2619
2640
  * external `[(value)]` / reset change from its own commit and skip the echo. */
2620
2641
  private lastCommitted;
@@ -2710,8 +2731,8 @@ export declare class ColorPickerComponent extends LabelledFieldControlBase imple
2710
2731
  /**
2711
2732
  * Mirrors the user's literal text into `hexInputValue` and (if the text
2712
2733
  * parses) applies the new color silently, without rewriting the input.
2713
- * Without `refreshHex: false`, typing `#123` would parse, commit, and then
2714
- * snap the input back to `#112233` mid-keystroke, fighting the user's caret.
2734
+ * Without `refreshHex: false`, typing `123` would parse, commit, and then
2735
+ * snap the input back to `112233` mid-keystroke, fighting the user's caret.
2715
2736
  * Canonicalization happens only on blur via {@link onHexBlur}.
2716
2737
  */
2717
2738
  onHexInput(event: Event): void;
@@ -2723,6 +2744,7 @@ export declare class ColorPickerComponent extends LabelledFieldControlBase imple
2723
2744
  onAlphaInput(event: Event): void;
2724
2745
  pickFromScreen(): Promise<void>;
2725
2746
  selectPreset(hex: string): void;
2747
+ onTriggerPointerDown(event: PointerEvent): void;
2726
2748
  onTriggerKeydown(event: KeyboardEvent): void;
2727
2749
  onPopoverKeydown(event: KeyboardEvent): void;
2728
2750
  /** Called by `<ea-popover>` when the user clicks outside the picker. */
@@ -6491,7 +6513,7 @@ export declare class ProgressBarComponent {
6491
6513
  readonly indeterminate: import("@angular/core").InputSignal<boolean>;
6492
6514
  /**
6493
6515
  * Optional buffered position ahead of `value` (same scale as `value`),
6494
- * rendered as a secondary-colour segment behind the fill. Use for
6516
+ * rendered as a washed-out shade of the fill colour behind the fill. Use for
6495
6517
  * download/upload-then-process style progress.
6496
6518
  */
6497
6519
  readonly buffer: import("@angular/core").InputSignal<number | undefined>;