@eagami/ui 5.71.1 → 5.71.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/README.md +1 -0
- package/fesm2022/eagami-ui.mjs +3 -3
- package/fesm2022/eagami-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eagami-ui.d.ts +26 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eagami/ui",
|
|
3
|
-
"version": "5.71.
|
|
3
|
+
"version": "5.71.2",
|
|
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
|
@@ -7,10 +7,12 @@ import { AbstractControl, ControlValueAccessor } from "@angular/forms";
|
|
|
7
7
|
* - `'change'`: once the user changes the field and leaves it, or submits the
|
|
8
8
|
* form. A field the user tabs past stays quiet, and a new error waits until
|
|
9
9
|
* focus leaves the field.
|
|
10
|
+
* - `'blur'`: as soon as the user leaves the field, even unchanged, while a new
|
|
11
|
+
* error still waits until focus leaves the field.
|
|
10
12
|
* - `'touch'`: as soon as the user leaves the field, even unchanged, and live
|
|
11
13
|
* while they edit it after that.
|
|
12
14
|
*/
|
|
13
|
-
type EaShowErrorsOn = 'change' | 'touch';
|
|
15
|
+
type EaShowErrorsOn = 'change' | 'blur' | 'touch';
|
|
14
16
|
/**
|
|
15
17
|
* App-wide defaults for form components, set through
|
|
16
18
|
* `provideEagamiUi({ forms })`. A form component's own `showErrorsOn` input
|
|
@@ -950,7 +952,7 @@ export declare class AutocompleteComponent implements ControlValueAccessor {
|
|
|
950
952
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
951
953
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
952
954
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
953
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
955
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
954
956
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
955
957
|
readonly minLength: import("@angular/core").InputSignal<number>;
|
|
956
958
|
/** Maximum number of characters the input accepts (native `maxlength`). */
|
|
@@ -2200,7 +2202,7 @@ export declare class CheckboxComponent implements ControlValueAccessor {
|
|
|
2200
2202
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
2201
2203
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
2202
2204
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
2203
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
2205
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
2204
2206
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
2205
2207
|
readonly size: import("@angular/core").InputSignal<EaSize>;
|
|
2206
2208
|
/**
|
|
@@ -2590,7 +2592,7 @@ export declare class ColorPickerComponent implements ControlValueAccessor {
|
|
|
2590
2592
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
2591
2593
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
2592
2594
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
2593
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
2595
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
2594
2596
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
2595
2597
|
/** Whether to show the alpha slider. When `false` the emitted value always has alpha = 1. */
|
|
2596
2598
|
readonly showAlpha: import("@angular/core").InputSignal<boolean>;
|
|
@@ -3618,7 +3620,7 @@ export declare class CodeInputComponent implements ControlValueAccessor {
|
|
|
3618
3620
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
3619
3621
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
3620
3622
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
3621
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
3623
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
3622
3624
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
3623
3625
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
3624
3626
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
@@ -3807,7 +3809,7 @@ export declare class DatePickerComponent implements ControlValueAccessor {
|
|
|
3807
3809
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
3808
3810
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
3809
3811
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
3810
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
3812
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
3811
3813
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
3812
3814
|
readonly minDate: import("@angular/core").InputSignal<Date | null>;
|
|
3813
3815
|
readonly maxDate: import("@angular/core").InputSignal<Date | null>;
|
|
@@ -4479,7 +4481,7 @@ export declare class DropdownComponent implements ControlValueAccessor {
|
|
|
4479
4481
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
4480
4482
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
4481
4483
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
4482
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
4484
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
4483
4485
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
4484
4486
|
readonly id: import("@angular/core").InputSignal<string>;
|
|
4485
4487
|
readonly value: import("@angular/core").ModelSignal<string>;
|
|
@@ -4886,7 +4888,7 @@ export declare class FormFieldComponent {
|
|
|
4886
4888
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
4887
4889
|
/** Per-validator-key message overrides for the projected form control (e.g. `{ required: '...' }`). */
|
|
4888
4890
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
4889
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
4891
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
4890
4892
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
4891
4893
|
/** Marks the field as required. */
|
|
4892
4894
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
@@ -4999,10 +5001,10 @@ interface ControlErrorState {
|
|
|
4999
5001
|
* form, so nothing is flagged mid-edit, and a field the user only passed
|
|
5000
5002
|
* through, leaving it without changing it, stays quiet until they change it or
|
|
5001
5003
|
* the form is submitted, so tabbing past an empty required field never flags
|
|
5002
|
-
* it. `'
|
|
5003
|
-
* as it is typed and clears the moment it is
|
|
5004
|
-
* pointer press moving focus away waits until
|
|
5005
|
-
* in
|
|
5004
|
+
* it. `'blur'` drops the second hold and `'touch'` drops both. A message
|
|
5005
|
+
* already showing follows the value as it is typed and clears the moment it is
|
|
5006
|
+
* fixed. A message revealed by a pointer press moving focus away waits until
|
|
5007
|
+
* that press has landed its click, in every mode. The control arrives as a signal
|
|
5006
5008
|
* so callers decide how it is resolved: from the host's own `NgControl` (CVA
|
|
5007
5009
|
* components) or from projected content (`<ea-form-field>`).
|
|
5008
5010
|
*/
|
|
@@ -5078,7 +5080,7 @@ export declare class FileUploaderComponent implements ControlValueAccessor {
|
|
|
5078
5080
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
5079
5081
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
5080
5082
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
5081
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
5083
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
5082
5084
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
5083
5085
|
readonly size: import("@angular/core").InputSignal<EaSize>;
|
|
5084
5086
|
/**
|
|
@@ -5399,7 +5401,7 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
5399
5401
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
5400
5402
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
5401
5403
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
5402
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
5404
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
5403
5405
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
5404
5406
|
/** Disables the field. */
|
|
5405
5407
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
@@ -6149,7 +6151,7 @@ export declare class MultiSelectComponent implements ControlValueAccessor {
|
|
|
6149
6151
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
6150
6152
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
6151
6153
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
6152
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
6154
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
6153
6155
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
6154
6156
|
/** Toggle the search input at the top of the popover. */
|
|
6155
6157
|
readonly searchable: import("@angular/core").InputSignal<boolean>;
|
|
@@ -6480,7 +6482,7 @@ export declare class NumberInputComponent implements ControlValueAccessor {
|
|
|
6480
6482
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
6481
6483
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
6482
6484
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
6483
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
6485
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
6484
6486
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
6485
6487
|
/** Disables the field. */
|
|
6486
6488
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
@@ -7091,7 +7093,7 @@ export declare class RadioGroupComponent implements ControlValueAccessor {
|
|
|
7091
7093
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
7092
7094
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
7093
7095
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
7094
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
7096
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
7095
7097
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
7096
7098
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
7097
7099
|
/** Space-separated ids of the elements whose text names the group, such as a label outside the component. */
|
|
@@ -7283,7 +7285,7 @@ export declare class RangeSliderComponent implements ControlValueAccessor {
|
|
|
7283
7285
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
7284
7286
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
7285
7287
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
7286
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
7288
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
7287
7289
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
7288
7290
|
readonly min: import("@angular/core").InputSignal<number>;
|
|
7289
7291
|
readonly max: import("@angular/core").InputSignal<number>;
|
|
@@ -7504,7 +7506,7 @@ export declare class RatingComponent implements ControlValueAccessor {
|
|
|
7504
7506
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
7505
7507
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
7506
7508
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
7507
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
7509
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
7508
7510
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
7509
7511
|
readonly size: import("@angular/core").InputSignal<EaSize>;
|
|
7510
7512
|
readonly min: import("@angular/core").InputSignal<number>;
|
|
@@ -7704,7 +7706,7 @@ export declare class SegmentedComponent implements ControlValueAccessor {
|
|
|
7704
7706
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
7705
7707
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
7706
7708
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
7707
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
7709
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
7708
7710
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
7709
7711
|
readonly size: import("@angular/core").InputSignal<EaSize>;
|
|
7710
7712
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
@@ -7893,7 +7895,7 @@ export declare class SliderComponent implements ControlValueAccessor {
|
|
|
7893
7895
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
7894
7896
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
7895
7897
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
7896
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
7898
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
7897
7899
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
7898
7900
|
/** Force the error-state styling without binding `errorMsg`. Lets consumers
|
|
7899
7901
|
* render the error text themselves (e.g. above the slider in a form layout)
|
|
@@ -8433,7 +8435,7 @@ export declare class SwitchComponent implements ControlValueAccessor {
|
|
|
8433
8435
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
8434
8436
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
8435
8437
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
8436
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
8438
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
8437
8439
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
8438
8440
|
readonly size: import("@angular/core").InputSignal<EaSize>;
|
|
8439
8441
|
/**
|
|
@@ -8998,7 +9000,7 @@ export declare class TextareaComponent implements ControlValueAccessor {
|
|
|
8998
9000
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
8999
9001
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
9000
9002
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
9001
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
9003
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
9002
9004
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
9003
9005
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
9004
9006
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
@@ -9241,7 +9243,7 @@ export declare class TimePickerComponent implements ControlValueAccessor {
|
|
|
9241
9243
|
readonly errorMsg: import("@angular/core").InputSignal<string | undefined>;
|
|
9242
9244
|
/** Per-validator-key message overrides for a bound form control (e.g. `{ required: '...' }`). */
|
|
9243
9245
|
readonly errorMessages: import("@angular/core").InputSignal<Partial<Record<string, string | null>> | undefined>;
|
|
9244
|
-
/** When the error shows: `'change'` once the user changes the field and leaves it, `'
|
|
9246
|
+
/** When the error shows: `'change'` once the user changes the field and leaves it, `'blur'` once they leave it, even unchanged, `'touch'` the same but live while they edit; unset follows the app-wide `forms` option of `provideEagamiUi`. */
|
|
9245
9247
|
readonly showErrorsOn: import("@angular/core").InputSignal<EaShowErrorsOn | undefined>;
|
|
9246
9248
|
/** Display format for the trigger label. Wire value is always 24h. */
|
|
9247
9249
|
readonly format: import("@angular/core").InputSignal<TimePickerFormat>;
|