@ardium-ui/ui 3.2.7 → 3.3.0-alpha.10

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.
Files changed (127) hide show
  1. package/esm2022/lib/_internal/boolean-component.mjs +1 -1
  2. package/esm2022/lib/_internal/focusable-component.mjs +6 -6
  3. package/esm2022/lib/_internal/form-field-component.mjs +33 -0
  4. package/esm2022/lib/_internal/item-storages/dropdown-item-storage.mjs +4 -1
  5. package/esm2022/lib/_internal/item-storages/simple-item-storage.mjs +5 -2
  6. package/esm2022/lib/_internal/ngmodel-component.mjs +61 -6
  7. package/esm2022/lib/_internal/public-api.mjs +2 -0
  8. package/esm2022/lib/_internal/selectable-list-component.mjs +10 -12
  9. package/esm2022/lib/checkbox/checkbox.component.mjs +2 -3
  10. package/esm2022/lib/checkbox-list/checkbox-list.component.mjs +2 -4
  11. package/esm2022/lib/file-inputs/file-input/file-input.component.mjs +3 -3
  12. package/esm2022/lib/file-inputs/file-input-base.mjs +3 -4
  13. package/esm2022/lib/form-field/error/error.component.mjs +17 -0
  14. package/esm2022/lib/form-field/error/error.directive.mjs +17 -0
  15. package/esm2022/lib/form-field/form-field.component.mjs +33 -0
  16. package/esm2022/lib/form-field/form-field.defaults.mjs +15 -0
  17. package/esm2022/lib/form-field/form-field.module.mjs +44 -0
  18. package/esm2022/lib/form-field/hint/hint.component.mjs +17 -0
  19. package/esm2022/lib/form-field/hint/hint.directive.mjs +30 -0
  20. package/esm2022/lib/form-field/horizontal-form-field.component.mjs +33 -0
  21. package/esm2022/lib/form-field/index.mjs +9 -0
  22. package/esm2022/lib/form-field/label/label.component.mjs +21 -0
  23. package/esm2022/lib/form-field-frame/form-field-frame.component.mjs +14 -7
  24. package/esm2022/lib/inputs/_simple-input-base.mjs +4 -4
  25. package/esm2022/lib/inputs/digit-input/digit-input.component.mjs +34 -10
  26. package/esm2022/lib/inputs/digit-input/digit-input.defaults.mjs +3 -3
  27. package/esm2022/lib/inputs/digit-input/digit-input.model.mjs +27 -13
  28. package/esm2022/lib/inputs/digit-input/digit-input.types.mjs +1 -1
  29. package/esm2022/lib/inputs/digit-input/digit-input.utils.mjs +1 -1
  30. package/esm2022/lib/inputs/hex-input/hex-input.component.mjs +13 -5
  31. package/esm2022/lib/inputs/hex-input/hex-input.defaults.mjs +3 -3
  32. package/esm2022/lib/inputs/input/input.component.mjs +12 -3
  33. package/esm2022/lib/inputs/number-input/number-input.component.mjs +15 -7
  34. package/esm2022/lib/inputs/number-input/number-input.defaults.mjs +3 -3
  35. package/esm2022/lib/inputs/password-input/password-input.component.mjs +15 -5
  36. package/esm2022/lib/inputs/password-input/password-input.defaults.mjs +3 -3
  37. package/esm2022/lib/inputs/simple-input/simple-input.component.mjs +12 -3
  38. package/esm2022/lib/inputs/simple-input/simple-input.defaults.mjs +3 -3
  39. package/esm2022/lib/radio/radio/radio.component.mjs +77 -6
  40. package/esm2022/lib/radio/radio/radio.defaults.mjs +3 -3
  41. package/esm2022/lib/radio/radio-group.component.mjs +3 -3
  42. package/esm2022/lib/segment/segment.component.mjs +26 -4
  43. package/esm2022/lib/select/select.component.mjs +16 -8
  44. package/esm2022/lib/select/select.defaults.mjs +3 -3
  45. package/esm2022/lib/slide-toggle/slide-toggle.component.mjs +1 -1
  46. package/esm2022/lib/slider/range-slider/range-slider.component.mjs +2 -1
  47. package/esm2022/lib/table/table.component.mjs +1 -1
  48. package/esm2022/lib/table-pagination/table-pagination.component.mjs +1 -1
  49. package/esm2022/public-api.mjs +3 -1
  50. package/fesm2022/ardium-ui-ui.mjs +545 -95
  51. package/fesm2022/ardium-ui-ui.mjs.map +1 -1
  52. package/lib/_internal/focusable-component.d.ts +3 -3
  53. package/lib/_internal/form-field-component.d.ts +20 -0
  54. package/lib/_internal/item-storages/simple-item-storage.d.ts +1 -0
  55. package/lib/_internal/ngmodel-component.d.ts +17 -3
  56. package/lib/_internal/public-api.d.ts +3 -0
  57. package/lib/_internal/selectable-list-component.d.ts +3 -4
  58. package/lib/checkbox/checkbox.component.d.ts +1 -2
  59. package/lib/checkbox-list/checkbox-list.component.d.ts +1 -2
  60. package/lib/file-inputs/file-input-base.d.ts +1 -2
  61. package/lib/form-field/error/error.component.d.ts +6 -0
  62. package/lib/form-field/error/error.directive.d.ts +5 -0
  63. package/lib/form-field/form-field.component.d.ts +19 -0
  64. package/lib/form-field/form-field.defaults.d.ts +8 -0
  65. package/lib/form-field/form-field.module.d.ts +14 -0
  66. package/lib/form-field/hint/hint.component.d.ts +6 -0
  67. package/lib/form-field/hint/hint.directive.d.ts +8 -0
  68. package/lib/form-field/horizontal-form-field.component.d.ts +19 -0
  69. package/lib/form-field/index.d.ts +8 -0
  70. package/lib/form-field/label/label.component.d.ts +8 -0
  71. package/lib/form-field-frame/form-field-frame.component.d.ts +4 -2
  72. package/lib/inputs/_simple-input-base.d.ts +3 -3
  73. package/lib/inputs/digit-input/digit-input.component.d.ts +9 -4
  74. package/lib/inputs/digit-input/digit-input.defaults.d.ts +2 -2
  75. package/lib/inputs/digit-input/digit-input.model.d.ts +4 -1
  76. package/lib/inputs/digit-input/digit-input.types.d.ts +1 -0
  77. package/lib/inputs/digit-input/digit-input.utils.d.ts +2 -0
  78. package/lib/inputs/hex-input/hex-input.component.d.ts +2 -2
  79. package/lib/inputs/hex-input/hex-input.defaults.d.ts +2 -2
  80. package/lib/inputs/number-input/number-input.component.d.ts +2 -2
  81. package/lib/inputs/number-input/number-input.defaults.d.ts +2 -2
  82. package/lib/inputs/password-input/password-input.component.d.ts +2 -2
  83. package/lib/inputs/password-input/password-input.defaults.d.ts +2 -2
  84. package/lib/radio/radio/radio.component.d.ts +41 -3
  85. package/lib/radio/radio/radio.defaults.d.ts +2 -2
  86. package/lib/radio/radio-group.component.d.ts +1 -2
  87. package/lib/select/select.component.d.ts +3 -4
  88. package/lib/select/select.defaults.d.ts +2 -2
  89. package/package.json +1 -1
  90. package/prebuilt-themes/default/chips.css.map +1 -1
  91. package/prebuilt-themes/default/core.css +3 -1
  92. package/prebuilt-themes/default/core.css.map +1 -1
  93. package/prebuilt-themes/default/form-field-frame.css +23 -6
  94. package/prebuilt-themes/default/form-field-frame.css.map +1 -1
  95. package/prebuilt-themes/default/form-field.css +98 -0
  96. package/prebuilt-themes/default/form-field.css.map +1 -0
  97. package/prebuilt-themes/default/inputs/color-input.css +0 -1
  98. package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
  99. package/prebuilt-themes/default/inputs/digit-input.css +72 -5
  100. package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
  101. package/prebuilt-themes/default/inputs/file-input.css +0 -6
  102. package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
  103. package/prebuilt-themes/default/inputs/hex-input.css +0 -1
  104. package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
  105. package/prebuilt-themes/default/inputs/input.css +0 -6
  106. package/prebuilt-themes/default/inputs/input.css.map +1 -1
  107. package/prebuilt-themes/default/inputs/number-input.css +33 -18
  108. package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
  109. package/prebuilt-themes/default/inputs/password-input.css +0 -1
  110. package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
  111. package/prebuilt-themes/default/inputs/search-bar.css +0 -1
  112. package/prebuilt-themes/default/inputs/search-bar.css.map +1 -1
  113. package/prebuilt-themes/default/inputs/simple-input.css +0 -6
  114. package/prebuilt-themes/default/inputs/simple-input.css.map +1 -1
  115. package/prebuilt-themes/default/segment.css +18 -1
  116. package/prebuilt-themes/default/segment.css.map +1 -1
  117. package/public-api.d.ts +2 -0
  118. package/themes/default/_mixins.scss +83 -64
  119. package/themes/default/core.scss +102 -99
  120. package/themes/default/form-field-frame.scss +79 -78
  121. package/themes/default/form-field.scss +100 -0
  122. package/themes/default/inputs/_shared.scss +50 -51
  123. package/themes/default/inputs/digit-input.scss +101 -56
  124. package/themes/default/inputs/file-input.scss +0 -6
  125. package/themes/default/inputs/input.scss +1 -7
  126. package/themes/default/inputs/number-input.scss +131 -121
  127. package/themes/default/inputs/simple-input.scss +1 -8
@@ -26,8 +26,8 @@ export declare abstract class _FocusableComponentBase extends _DisablableCompone
26
26
  /**
27
27
  * The component's overall tab index. If the component is disabled, it is always `-1`. Coercible into a number, defaults to `0`.
28
28
  */
29
- readonly tabIndex: import("@angular/core").Signal<any>;
30
- readonly _tabIndex: import("@angular/core").InputSignalWithTransform<any, number>;
29
+ readonly tabIndex: import("@angular/core").Signal<number>;
30
+ readonly _tabIndex: import("@angular/core").InputSignalWithTransform<number, any>;
31
31
  /**
32
32
  * The event emitter responsible for firing `focus` events.
33
33
  */
@@ -39,7 +39,7 @@ export declare abstract class _FocusableComponentBase extends _DisablableCompone
39
39
  /**
40
40
  * Whether the component is currently focused.
41
41
  */
42
- isFocused: boolean;
42
+ readonly isFocused: import("@angular/core").WritableSignal<boolean>;
43
43
  /**
44
44
  * Function to handle when an element is focused. Sets `isFocused` and fires the `focus` event.
45
45
  * @param event The focus event to emit.
@@ -0,0 +1,20 @@
1
+ import { ControlValueAccessor } from '@angular/forms';
2
+ import { _NgModelComponentBase, _NgModelComponentDefaults } from './ngmodel-component';
3
+ import * as i0 from "@angular/core";
4
+ export interface _FormFieldComponentDefaults extends _NgModelComponentDefaults {
5
+ required: boolean | undefined;
6
+ }
7
+ export declare const _formFieldComponentDefaults: _FormFieldComponentDefaults;
8
+ /**
9
+ * Common code for components which implement the ControlValueAccessor.
10
+ *
11
+ * **Warning**: `writeValue` function should be implemented on the child component!
12
+ */
13
+ export declare abstract class _FormFieldComponentBase extends _NgModelComponentBase implements ControlValueAccessor {
14
+ protected readonly _DEFAULTS: _FormFieldComponentDefaults;
15
+ readonly _required: import("@angular/core").InputSignalWithTransform<boolean | undefined, any>;
16
+ get required(): boolean;
17
+ readonly isSuccess: import("@angular/core").InputSignalWithTransform<boolean, any>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<_FormFieldComponentBase, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_FormFieldComponentBase, never, never, { "_required": { "alias": "required"; "required": false; "isSignal": true; }; "isSuccess": { "alias": "isSuccess"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
20
+ }
@@ -17,6 +17,7 @@ export interface SimpleItemStorageHost {
17
17
  readonly isValueRequired: Signal<boolean>;
18
18
  readonly maxSelectedItems: Signal<Nullable<number>>;
19
19
  readonly _componentId: string;
20
+ readonly _componentName: string;
20
21
  }
21
22
  export declare class SimpleItemStorage {
22
23
  private readonly _ardParentComp;
@@ -1,7 +1,9 @@
1
- import { ControlValueAccessor } from '@angular/forms';
1
+ import { Injector, OnDestroy, OnInit, Signal } from '@angular/core';
2
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
2
3
  import { _FocusableComponentBase, _FocusableComponentDefaults } from './focusable-component';
3
4
  import * as i0 from "@angular/core";
4
5
  export interface _NgModelComponentDefaults extends _FocusableComponentDefaults {
6
+ required: boolean | undefined;
5
7
  }
6
8
  export declare const _ngModelComponentDefaults: _NgModelComponentDefaults;
7
9
  /**
@@ -9,7 +11,7 @@ export declare const _ngModelComponentDefaults: _NgModelComponentDefaults;
9
11
  *
10
12
  * **Warning**: `writeValue` function should be implemented on the child component!
11
13
  */
12
- export declare abstract class _NgModelComponentBase extends _FocusableComponentBase implements ControlValueAccessor {
14
+ export declare abstract class _NgModelComponentBase extends _FocusableComponentBase implements ControlValueAccessor, OnInit, OnDestroy {
13
15
  protected readonly _DEFAULTS: _NgModelComponentDefaults;
14
16
  protected _onChangeRegistered: (_: any) => void;
15
17
  protected _onTouchedRegistered: () => void;
@@ -40,7 +42,19 @@ export declare abstract class _NgModelComponentBase extends _FocusableComponentB
40
42
  * @param v The new value to write.
41
43
  */
42
44
  protected abstract _emitChange(): void;
45
+ readonly wasTouched: import("@angular/core").WritableSignal<boolean>;
46
+ onFocus(event: FocusEvent): void;
47
+ private _shouldEmitTouched;
43
48
  onBlur(event: FocusEvent): void;
49
+ protected readonly _injector: Injector;
50
+ private _statusChangesSub?;
51
+ ngOnInit(): void;
52
+ protected _ngControl: NgControl | null;
53
+ readonly htmlId: import("@angular/core").InputSignal<string>;
54
+ readonly _hasError: import("@angular/core").InputSignalWithTransform<boolean | undefined, any>;
55
+ private readonly _hasErrorInControl;
56
+ readonly hasError: Signal<boolean>;
57
+ ngOnDestroy(): void;
44
58
  static ɵfac: i0.ɵɵFactoryDeclaration<_NgModelComponentBase, never>;
45
- static ɵdir: i0.ɵɵDirectiveDeclaration<_NgModelComponentBase, never, never, {}, {}, never, never, false, never>;
59
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_NgModelComponentBase, never, never, { "htmlId": { "alias": "htmlId"; "required": false; "isSignal": true; }; "_hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
46
60
  }
@@ -0,0 +1,3 @@
1
+ import { _FormFieldComponentBase } from './form-field-component';
2
+ export interface ArdFormFieldComponent extends _FormFieldComponentBase {
3
+ }
@@ -1,10 +1,10 @@
1
1
  import { ControlValueAccessor } from '@angular/forms';
2
2
  import { ArdOptionSimple, CompareWithFn, OptionContext } from '../types/item-storage.types';
3
3
  import { Nullable } from '../types/utility.types';
4
+ import { _FormFieldComponentBase, _FormFieldComponentDefaults } from './form-field-component';
4
5
  import { SimpleItemStorage, SimpleItemStorageHost } from './item-storages/simple-item-storage';
5
- import { _NgModelComponentBase, _NgModelComponentDefaults } from './ngmodel-component';
6
6
  import * as i0 from "@angular/core";
7
- export interface _SelectableListComponentDefaults extends _NgModelComponentDefaults {
7
+ export interface _SelectableListComponentDefaults extends _FormFieldComponentDefaults {
8
8
  valueFrom: string;
9
9
  labelFrom: string;
10
10
  disabledFrom: string;
@@ -15,10 +15,9 @@ export interface _SelectableListComponentDefaults extends _NgModelComponentDefau
15
15
  maxSelectedItems: Nullable<number>;
16
16
  }
17
17
  export declare const _selectableListComponentDefaults: _SelectableListComponentDefaults;
18
- export declare abstract class _SelectableListComponentBase extends _NgModelComponentBase implements ControlValueAccessor, SimpleItemStorageHost {
18
+ export declare abstract class _SelectableListComponentBase extends _FormFieldComponentBase implements ControlValueAccessor, SimpleItemStorageHost {
19
19
  protected readonly _DEFAULTS: _SelectableListComponentDefaults;
20
20
  readonly itemStorage: SimpleItemStorage;
21
- readonly htmlId: string;
22
21
  readonly element: HTMLElement;
23
22
  readonly DEFAULTS: _SelectableListComponentDefaults;
24
23
  abstract readonly _componentId: string;
@@ -7,7 +7,6 @@ import * as i0 from "@angular/core";
7
7
  export declare class ArdiumCheckboxComponent extends _BooleanComponentBase implements ControlValueAccessor {
8
8
  protected readonly _DEFAULTS: ArdCheckboxDefaults;
9
9
  constructor(defaults: ArdCheckboxDefaults);
10
- readonly htmlId: import("@angular/core").InputSignal<string>;
11
10
  readonly color: import("@angular/core").InputSignal<SimpleComponentColor>;
12
11
  readonly unselectedColor: import("@angular/core").InputSignal<SimpleComponentColor>;
13
12
  readonly ngClasses: import("@angular/core").Signal<string>;
@@ -15,5 +14,5 @@ export declare class ArdiumCheckboxComponent extends _BooleanComponentBase imple
15
14
  readonly state: import("@angular/core").ModelSignal<CheckboxState>;
16
15
  toggleState(): void;
17
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumCheckboxComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumCheckboxComponent, "ard-checkbox", never, { "htmlId": { "alias": "htmlId"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "unselectedColor": { "alias": "unselectedColor"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "state": "stateChange"; }, never, never, false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumCheckboxComponent, "ard-checkbox", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "unselectedColor": { "alias": "unselectedColor"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "state": "stateChange"; }, never, never, false, never>;
19
18
  }
@@ -10,7 +10,6 @@ import * as i0 from "@angular/core";
10
10
  export declare class ArdiumCheckboxListComponent extends _NgModelComponentBase implements SimpleItemStorageHost, AfterViewInit {
11
11
  protected readonly _DEFAULTS: ArdCheckboxListDefaults;
12
12
  constructor(defaults: ArdCheckboxListDefaults);
13
- readonly htmlId: import("@angular/core").InputSignal<string>;
14
13
  get _htmlIdHostAttribute(): string;
15
14
  readonly DEFAULTS: ArdCheckboxListDefaults;
16
15
  readonly multiselectable: import("@angular/core").WritableSignal<true>;
@@ -46,5 +45,5 @@ export declare class ArdiumCheckboxListComponent extends _NgModelComponentBase i
46
45
  unselectItem(v: ArdOptionSimple): void;
47
46
  toggleItem(v: ArdOptionSimple): void;
48
47
  static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumCheckboxListComponent, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumCheckboxListComponent, "ard-checkbox-list", never, { "htmlId": { "alias": "htmlId"; "required": false; "isSignal": true; }; "valueFrom": { "alias": "valueFrom"; "required": false; "isSignal": true; }; "labelFrom": { "alias": "labelFrom"; "required": false; "isSignal": true; }; "disabledFrom": { "alias": "disabledFrom"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "invertDisabled": { "alias": "invertDisabled"; "required": false; "isSignal": true; }; "maxSelectedItems": { "alias": "maxSelectedItems"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "changeEvent": "change"; }, never, never, false, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumCheckboxListComponent, "ard-checkbox-list", never, { "valueFrom": { "alias": "valueFrom"; "required": false; "isSignal": true; }; "labelFrom": { "alias": "labelFrom"; "required": false; "isSignal": true; }; "disabledFrom": { "alias": "disabledFrom"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "invertDisabled": { "alias": "invertDisabled"; "required": false; "isSignal": true; }; "maxSelectedItems": { "alias": "maxSelectedItems"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "changeEvent": "change"; }, never, never, false, never>;
50
49
  }
@@ -6,7 +6,6 @@ export declare abstract class _FileInputComponentBase extends _NgModelComponentB
6
6
  protected readonly _DEFAULTS: _FileInputBaseDefaults;
7
7
  abstract readonly componentId: string;
8
8
  readonly fileInputEl: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
9
- readonly htmlId: import("@angular/core").InputSignal<string>;
10
9
  readonly name: import("@angular/core").InputSignal<string>;
11
10
  ngOnInit(): void;
12
11
  protected _wasViewInit: boolean;
@@ -36,5 +35,5 @@ export declare abstract class _FileInputComponentBase extends _NgModelComponentB
36
35
  protected _countDragenterFiles(data: DataTransfer | null): number | null;
37
36
  protected _updateElementValue(): void;
38
37
  static ɵfac: i0.ɵɵFactoryDeclaration<_FileInputComponentBase, never>;
39
- static ɵdir: i0.ɵɵDirectiveDeclaration<_FileInputComponentBase, never, never, { "htmlId": { "alias": "htmlId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "blockAfterUpload": { "alias": "blockAfterUpload"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "changeEvent": "change"; "dragFilesEvent": "dragFiles"; }, never, never, false, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_FileInputComponentBase, never, never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "blockAfterUpload": { "alias": "blockAfterUpload"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "changeEvent": "change"; "dragFilesEvent": "dragFiles"; }, never, never, false, never>;
40
39
  }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./error.directive";
3
+ export declare class ArdiumErrorComponent {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumErrorComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumErrorComponent, "ard-error", never, {}, {}, never, ["*"], false, [{ directive: typeof i1.ArdiumErrorDirective; inputs: {}; outputs: {}; }]>;
6
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ArdiumErrorDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumErrorDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumErrorDirective, "[ard-error]", never, {}, {}, never, never, true, never>;
5
+ }
@@ -0,0 +1,19 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { _FormFieldComponentBase } from '../_internal/form-field-component';
3
+ import { ArdiumErrorDirective } from './error/error.directive';
4
+ import { ArdiumHintDirective } from './hint/hint.directive';
5
+ import { ArdiumLabelComponent } from './label/label.component';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ArdiumFormFieldComponent implements OnInit {
8
+ protected readonly _DEFAULTS: import("./form-field.defaults").ArdFormFieldDefaults;
9
+ readonly alignHintToLeftByDefault: boolean;
10
+ readonly control: import("@angular/core").Signal<_FormFieldComponentBase | undefined>;
11
+ readonly label: import("@angular/core").Signal<ArdiumLabelComponent | undefined>;
12
+ readonly hints: import("@angular/core").Signal<readonly ArdiumHintDirective[]>;
13
+ readonly errors: import("@angular/core").Signal<readonly ArdiumErrorDirective[]>;
14
+ readonly hasAnyError: import("@angular/core").Signal<boolean>;
15
+ readonly reserveHintLine: import("@angular/core").InputSignalWithTransform<boolean, any>;
16
+ ngOnInit(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumFormFieldComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumFormFieldComponent, "ard-form-field", never, { "reserveHintLine": { "alias": "reserveHintLine"; "required": false; "isSignal": true; }; }, {}, ["control", "label", "hints", "errors"], ["ard-label, [ard-label]", "*", "ard-error, [ard-error]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-hint[left], [ard-hint][left]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-hint[right], [ard-hint][right]"], false, never>;
19
+ }
@@ -0,0 +1,8 @@
1
+ import { InjectionToken, Provider } from '@angular/core';
2
+ import { SimpleOneAxisAlignment } from './../types/alignment.types';
3
+ export interface ArdFormFieldDefaults {
4
+ defaultHintAlign: SimpleOneAxisAlignment;
5
+ reserveHintLine: boolean;
6
+ }
7
+ export declare const ARD_FORM_FIELD_DEFAULTS: InjectionToken<ArdFormFieldDefaults>;
8
+ export declare function provideFormFieldDefaults(config: Partial<ArdFormFieldDefaults>): Provider;
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./form-field.component";
3
+ import * as i2 from "./horizontal-form-field.component";
4
+ import * as i3 from "./label/label.component";
5
+ import * as i4 from "./hint/hint.component";
6
+ import * as i5 from "./error/error.component";
7
+ import * as i6 from "@angular/common";
8
+ import * as i7 from "./hint/hint.directive";
9
+ import * as i8 from "./error/error.directive";
10
+ export declare class ArdiumFormFieldModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumFormFieldModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumFormFieldModule, [typeof i1.ArdiumFormFieldComponent, typeof i2.ArdiumHorizontalFormFieldComponent, typeof i3.ArdiumLabelComponent, typeof i4.ArdiumHintComponent, typeof i5.ArdiumErrorComponent], [typeof i6.CommonModule, typeof i7.ArdiumHintDirective, typeof i8.ArdiumErrorDirective], [typeof i1.ArdiumFormFieldComponent, typeof i2.ArdiumHorizontalFormFieldComponent, typeof i3.ArdiumLabelComponent, typeof i4.ArdiumHintComponent, typeof i5.ArdiumErrorComponent]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<ArdiumFormFieldModule>;
14
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./hint.directive";
3
+ export declare class ArdiumHintComponent {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumHintComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumHintComponent, "ard-hint", never, {}, {}, never, ["*"], false, [{ directive: typeof i1.ArdiumHintDirective; inputs: { "left": "left"; "right": "right"; }; outputs: {}; }]>;
6
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ArdiumHintDirective {
3
+ readonly left: import("@angular/core").InputSignalWithTransform<boolean, any>;
4
+ readonly right: import("@angular/core").InputSignalWithTransform<boolean, any>;
5
+ constructor();
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumHintDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumHintDirective, "[ard-hint]", never, { "left": { "alias": "left"; "required": false; "isSignal": true; }; "right": { "alias": "right"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,19 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { _FormFieldComponentBase } from '../_internal/form-field-component';
3
+ import { ArdiumErrorDirective } from './error/error.directive';
4
+ import { ArdiumHintDirective } from './hint/hint.directive';
5
+ import { ArdiumLabelComponent } from './label/label.component';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ArdiumHorizontalFormFieldComponent implements OnInit {
8
+ protected readonly _DEFAULTS: import("./form-field.defaults").ArdFormFieldDefaults;
9
+ readonly alignHintToLeftByDefault: boolean;
10
+ readonly control: import("@angular/core").Signal<_FormFieldComponentBase | undefined>;
11
+ readonly label: import("@angular/core").Signal<ArdiumLabelComponent | undefined>;
12
+ readonly hints: import("@angular/core").Signal<readonly ArdiumHintDirective[]>;
13
+ readonly errors: import("@angular/core").Signal<readonly ArdiumErrorDirective[]>;
14
+ readonly hasAnyError: import("@angular/core").Signal<boolean>;
15
+ readonly reserveHintLine: import("@angular/core").InputSignalWithTransform<boolean, any>;
16
+ ngOnInit(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumHorizontalFormFieldComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumHorizontalFormFieldComponent, "ard-horizontal-form-field", never, { "reserveHintLine": { "alias": "reserveHintLine"; "required": false; "isSignal": true; }; }, {}, ["control", "label", "hints", "errors"], ["ard-label, [ard-label]", "*", "ard-error, [ard-error]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-hint[left], [ard-hint][left]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-hint[right], [ard-hint][right]"], false, never>;
19
+ }
@@ -0,0 +1,8 @@
1
+ export * from './error/error.component';
2
+ export * from './error/error.directive';
3
+ export * from './form-field.component';
4
+ export * from './form-field.module';
5
+ export * from './hint/hint.component';
6
+ export * from './hint/hint.directive';
7
+ export * from './horizontal-form-field.component';
8
+ export * from './label/label.component';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ArdiumLabelComponent {
3
+ readonly required: import("@angular/core").InputSignalWithTransform<boolean, any>;
4
+ readonly optional: import("@angular/core").InputSignalWithTransform<boolean, any>;
5
+ constructor();
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumLabelComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumLabelComponent, "ard-label", never, { "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
8
+ }
@@ -8,7 +8,9 @@ import * as i0 from "@angular/core";
8
8
  export declare class ArdiumFormFieldFrameComponent extends _FocusableComponentBase {
9
9
  protected readonly _DEFAULTS: ArdFormFieldFrameDefaults;
10
10
  constructor(defaults: ArdFormFieldFrameDefaults);
11
- isFocused: boolean;
11
+ readonly hasError: import("@angular/core").InputSignalWithTransform<boolean, any>;
12
+ readonly isSuccess: import("@angular/core").InputSignalWithTransform<boolean, any>;
13
+ set _setIsFocused(v: boolean);
12
14
  /**
13
15
  * The appearance of the component, aka the styling.
14
16
  */
@@ -27,5 +29,5 @@ export declare class ArdiumFormFieldFrameComponent extends _FocusableComponentBa
27
29
  readonly prefixTemplate: import("@angular/core").Signal<ArdFormFieldPrefixTemplateDirective | undefined>;
28
30
  readonly suffixTemplate: import("@angular/core").Signal<ArdFormFieldSuffixTemplateDirective | undefined>;
29
31
  static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumFormFieldFrameComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumFormFieldFrameComponent, "ard-form-field-frame", never, { "isFocused": { "alias": "isFocused"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "prefixTemplateInput": { "alias": "prefixTemplate"; "required": false; "isSignal": true; }; "suffixTemplateInput": { "alias": "suffixTemplate"; "required": false; "isSignal": true; }; }, {}, ["prefixTemplate", "suffixTemplate"], ["*"], false, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumFormFieldFrameComponent, "ard-form-field-frame", never, { "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "isSuccess": { "alias": "isSuccess"; "required": false; "isSignal": true; }; "_setIsFocused": { "alias": "isFocused"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "prefixTemplateInput": { "alias": "prefixTemplate"; "required": false; "isSignal": true; }; "suffixTemplateInput": { "alias": "suffixTemplate"; "required": false; "isSignal": true; }; }, {}, ["prefixTemplate", "suffixTemplate"], ["*"], false, never>;
31
33
  }
@@ -1,11 +1,11 @@
1
1
  import { AfterViewInit, ElementRef } from '@angular/core';
2
- import { _NgModelComponentBase, _NgModelComponentDefaults } from '../_internal/ngmodel-component';
2
+ import { _FormFieldComponentBase, _FormFieldComponentDefaults } from '../_internal/form-field-component';
3
3
  import { SimpleOneAxisAlignment } from './../types/alignment.types';
4
4
  import { FormElementAppearance, FormElementVariant } from './../types/theming.types';
5
5
  import { Nullable } from './../types/utility.types';
6
6
  import { SimpleInputModel } from './input-utils';
7
7
  import * as i0 from "@angular/core";
8
- export interface _SimpleInputComponentDefaults extends _NgModelComponentDefaults {
8
+ export interface _SimpleInputComponentDefaults extends _FormFieldComponentDefaults {
9
9
  appearance: FormElementAppearance;
10
10
  variant: FormElementVariant;
11
11
  compact: boolean;
@@ -17,7 +17,7 @@ export interface _SimpleInputComponentDefaults extends _NgModelComponentDefaults
17
17
  maxLength: Nullable<number>;
18
18
  }
19
19
  export declare const _simpleInputComponentDefaults: _SimpleInputComponentDefaults;
20
- export declare abstract class _SimpleInputComponentBase extends _NgModelComponentBase implements AfterViewInit {
20
+ export declare abstract class _SimpleInputComponentBase extends _FormFieldComponentBase implements AfterViewInit {
21
21
  protected readonly _DEFAULTS: _SimpleInputComponentDefaults;
22
22
  readonly textInputEl: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
23
23
  protected readonly inputModel: SimpleInputModel;
@@ -1,12 +1,12 @@
1
- import { ElementRef } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { _NgModelComponentBase } from '../../_internal/ngmodel-component';
3
+ import { _FormFieldComponentBase } from '../../_internal/form-field-component';
4
4
  import { FormElementAppearance, FormElementVariant } from '../../types/theming.types';
5
5
  import { ArdDigitInputDefaults } from './digit-input.defaults';
6
6
  import { DigitInputConfig, DigitInputShape } from './digit-input.types';
7
7
  import { DigitInputModelHost } from './digit-input.utils';
8
8
  import * as i0 from "@angular/core";
9
- export declare class ArdiumDigitInputComponent extends _NgModelComponentBase implements ControlValueAccessor, DigitInputModelHost {
9
+ export declare class ArdiumDigitInputComponent extends _FormFieldComponentBase implements ControlValueAccessor, DigitInputModelHost, OnInit, AfterViewInit {
10
10
  protected readonly _DEFAULTS: ArdDigitInputDefaults;
11
11
  constructor(defaults: ArdDigitInputDefaults);
12
12
  readonly inputs: import("@angular/core").Signal<readonly ElementRef<HTMLInputElement>[]>;
@@ -20,10 +20,15 @@ export declare class ArdiumDigitInputComponent extends _NgModelComponentBase imp
20
20
  readonly configArrayData: import("@angular/core").Signal<import("./digit-input.utils").DigitInputConfigData[]>;
21
21
  private _oldConfigArrayDataLength;
22
22
  readonly configArrayDataEffect: import("@angular/core").EffectRef;
23
+ ngOnInit(): void;
23
24
  isInputEmpty(index: number): boolean;
25
+ private _valueBeforeViewInit?;
24
26
  writeValue(v: any): void;
25
27
  private _writeValue;
28
+ private _wasViewInit;
29
+ ngAfterViewInit(): void;
26
30
  readonly outputAsString: import("@angular/core").InputSignalWithTransform<boolean, any>;
31
+ readonly outputControlValueAccessorOnFinish: import("@angular/core").InputSignalWithTransform<boolean, any>;
27
32
  set value(v: string | (string | null)[] | null);
28
33
  readonly valueChange: import("@angular/core").OutputEmitterRef<string | (string | null)[] | null>;
29
34
  readonly stringValue: import("@angular/core").Signal<string>;
@@ -41,5 +46,5 @@ export declare class ArdiumDigitInputComponent extends _NgModelComponentBase imp
41
46
  protected _emitChange(): void;
42
47
  onKeydown(event: KeyboardEvent, index: number): void;
43
48
  static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumDigitInputComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumDigitInputComponent, "ard-digit-input", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; "outputAsString": { "alias": "outputAsString"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "finishedValue": "finishedValue"; "focusIndexEvent": "focusIndex"; "blurIndexEvent": "blurIndex"; }, never, never, false, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumDigitInputComponent, "ard-digit-input", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; "outputAsString": { "alias": "outputAsString"; "required": false; "isSignal": true; }; "outputControlValueAccessorOnFinish": { "alias": "outputControlValueAccessorOnFinish"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "finishedValue": "finishedValue"; "focusIndexEvent": "focusIndex"; "blurIndexEvent": "blurIndex"; }, never, never, false, never>;
45
50
  }
@@ -1,8 +1,8 @@
1
1
  import { InjectionToken, Provider } from '@angular/core';
2
- import { _NgModelComponentDefaults } from '../../_internal/ngmodel-component';
2
+ import { _FormFieldComponentDefaults } from '../../_internal/form-field-component';
3
3
  import { FormElementAppearance, FormElementVariant } from './../../types/theming.types';
4
4
  import { DigitInputShape } from './digit-input.types';
5
- export interface ArdDigitInputDefaults extends _NgModelComponentDefaults {
5
+ export interface ArdDigitInputDefaults extends _FormFieldComponentDefaults {
6
6
  appearance: FormElementAppearance;
7
7
  variant: FormElementVariant;
8
8
  shape: DigitInputShape;
@@ -16,7 +16,10 @@ export declare class DigitInputModel {
16
16
  private _updateInputElements;
17
17
  setConfig(config: DigitInputConfig): void;
18
18
  private _setConfig;
19
- validateInputAndSetValue(input: string, index: number): false | [boolean, string | null];
19
+ validateInputAndSetValue(input: string, index: number): null | {
20
+ wasChanged: boolean;
21
+ resultChar: string | null;
22
+ };
20
23
  validateValueAndUpdate(): void;
21
24
  private _validateSingleChar;
22
25
  }
@@ -19,6 +19,7 @@ export interface DigitInputAcceptObject {
19
19
  accept: string | RegExp | ((char: string, charsBefore: string) => boolean);
20
20
  transform?: TransformType | null;
21
21
  readonly?: boolean;
22
+ placeholder?: string;
22
23
  }
23
24
  export interface DigitInputStaticObject {
24
25
  static: string;
@@ -4,9 +4,11 @@ export interface DigitInputConfigData {
4
4
  char?: string;
5
5
  index?: number;
6
6
  readonly?: boolean;
7
+ placeholder?: string;
7
8
  }
8
9
  export interface DigitInputModelHost {
9
10
  readonly inputs: Signal<readonly ElementRef<HTMLInputElement>[]>;
11
+ readonly outputAsString: Signal<boolean>;
10
12
  }
11
13
  export declare const DigitInputConfigDataType: {
12
14
  readonly Input: "input";
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, ElementRef } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { _NgModelComponentBase } from '../../_internal/ngmodel-component';
3
+ import { _FormFieldComponentBase } from '../../_internal/form-field-component';
4
4
  import { FormElementAppearance, FormElementVariant } from '../../types/theming.types';
5
5
  import { Nullable } from '../../types/utility.types';
6
6
  import { CaseTransformerType } from '../input-types';
@@ -8,7 +8,7 @@ import { ArdHexInputDefaults } from './hex-input.defaults';
8
8
  import { ArdHexInputPlaceholderTemplateDirective, ArdHexInputPrefixTemplateDirective, ArdHexInputSuffixTemplateDirective } from './hex-input.directives';
9
9
  import { HexInputModel, HexInputModelHost } from './hex-input.model';
10
10
  import * as i0 from "@angular/core";
11
- export declare class ArdiumHexInputComponent extends _NgModelComponentBase implements ControlValueAccessor, HexInputModelHost, AfterViewInit {
11
+ export declare class ArdiumHexInputComponent extends _FormFieldComponentBase implements ControlValueAccessor, HexInputModelHost, AfterViewInit {
12
12
  protected readonly _DEFAULTS: ArdHexInputDefaults;
13
13
  constructor(defaults: ArdHexInputDefaults);
14
14
  readonly textInputEl: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
@@ -1,9 +1,9 @@
1
1
  import { InjectionToken, Provider } from '@angular/core';
2
- import { _NgModelComponentDefaults } from '../../_internal/ngmodel-component';
2
+ import { _FormFieldComponentDefaults } from '../../_internal/form-field-component';
3
3
  import { Nullable } from '../../types/utility.types';
4
4
  import { CaseTransformerType } from '../input-types';
5
5
  import { FormElementAppearance, FormElementVariant } from './../../types/theming.types';
6
- export interface ArdHexInputDefaults extends _NgModelComponentDefaults {
6
+ export interface ArdHexInputDefaults extends _FormFieldComponentDefaults {
7
7
  appearance: FormElementAppearance;
8
8
  variant: FormElementVariant;
9
9
  compact: boolean;
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, ElementRef } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { _NgModelComponentBase } from '../../_internal/ngmodel-component';
3
+ import { _FormFieldComponentBase } from '../../_internal/form-field-component';
4
4
  import { ButtonAppearance, ButtonVariant } from '../../buttons/general-button.types';
5
5
  import { OneAxisAlignment } from '../../types/alignment.types';
6
6
  import { FormElementAppearance, FormElementVariant } from '../../types/theming.types';
@@ -9,7 +9,7 @@ import { NumberInputModel, NumberInputModelHost } from '../input-utils';
9
9
  import { ArdNumberInputDefaults } from './number-input.defaults';
10
10
  import { ArdNumberInputPlaceholderTemplateDirective } from './number-input.directives';
11
11
  import * as i0 from "@angular/core";
12
- export declare class ArdiumNumberInputComponent extends _NgModelComponentBase implements ControlValueAccessor, NumberInputModelHost, AfterViewInit {
12
+ export declare class ArdiumNumberInputComponent extends _FormFieldComponentBase implements ControlValueAccessor, NumberInputModelHost, AfterViewInit {
13
13
  protected readonly _DEFAULTS: ArdNumberInputDefaults;
14
14
  constructor(defaults: ArdNumberInputDefaults);
15
15
  readonly inputEl: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
@@ -1,8 +1,8 @@
1
1
  import { InjectionToken, Provider } from '@angular/core';
2
- import { _NgModelComponentDefaults } from '../../_internal/ngmodel-component';
2
+ import { _FormFieldComponentDefaults } from '../../_internal/form-field-component';
3
3
  import { OneAxisAlignment } from './../../types/alignment.types';
4
4
  import { FormElementAppearance, FormElementVariant } from './../../types/theming.types';
5
- export interface ArdNumberInputDefaults extends _NgModelComponentDefaults {
5
+ export interface ArdNumberInputDefaults extends _FormFieldComponentDefaults {
6
6
  appearance: FormElementAppearance;
7
7
  variant: FormElementVariant;
8
8
  compact: boolean;
@@ -1,13 +1,13 @@
1
1
  import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { _NgModelComponentBase } from '../../_internal/ngmodel-component';
3
+ import { _FormFieldComponentBase } from '../../_internal/form-field-component';
4
4
  import { FormElementAppearance, FormElementVariant } from '../../types/theming.types';
5
5
  import { Nullable } from '../../types/utility.types';
6
6
  import { ArdPasswordInputDefaults } from './password-input.defaults';
7
7
  import { ArdPasswordInputPlaceholderTemplateDirective, ArdPasswordInputPrefixTemplateDirective, ArdPasswordInputRevealButtonTemplateDirective, ArdPasswordInputSuffixTemplateDirective } from './password-input.directives';
8
8
  import { PasswordInputRevealButtonContext } from './password-input.types';
9
9
  import * as i0 from "@angular/core";
10
- export declare class ArdiumPasswordInputComponent extends _NgModelComponentBase implements ControlValueAccessor, OnInit, OnDestroy {
10
+ export declare class ArdiumPasswordInputComponent extends _FormFieldComponentBase implements ControlValueAccessor, OnInit, OnDestroy {
11
11
  protected readonly _DEFAULTS: ArdPasswordInputDefaults;
12
12
  constructor(defaults: ArdPasswordInputDefaults);
13
13
  readonly textInputEl: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
@@ -1,8 +1,8 @@
1
1
  import { InjectionToken, Provider } from '@angular/core';
2
- import { _NgModelComponentDefaults } from '../../_internal/ngmodel-component';
2
+ import { _FormFieldComponentDefaults } from '../../_internal/form-field-component';
3
3
  import { FormElementAppearance, FormElementVariant } from './../../types/theming.types';
4
4
  import { Nullable } from './../../types/utility.types';
5
- export interface ArdPasswordInputDefaults extends _NgModelComponentDefaults {
5
+ export interface ArdPasswordInputDefaults extends _FormFieldComponentDefaults {
6
6
  appearance: FormElementAppearance;
7
7
  variant: FormElementVariant;
8
8
  compact: boolean;
@@ -1,13 +1,51 @@
1
1
  import { ChangeDetectorRef } from '@angular/core';
2
- import { _BooleanComponentBase } from '../../_internal/boolean-component';
2
+ import { _FocusableComponentBase } from '../../_internal/focusable-component';
3
3
  import { SimpleComponentColor } from '../../types/colors.types';
4
4
  import { ArdRadioDefaults } from './radio.defaults';
5
5
  import * as i0 from "@angular/core";
6
- export declare class ArdiumRadioComponent extends _BooleanComponentBase {
6
+ export declare class ArdiumRadioComponent extends _FocusableComponentBase {
7
7
  protected readonly _changeDetector: ChangeDetectorRef;
8
8
  protected readonly _DEFAULTS: ArdRadioDefaults;
9
9
  constructor(defaults: ArdRadioDefaults);
10
10
  readonly htmlId: import("@angular/core").InputSignal<string>;
11
+ /**
12
+ * Emits all select-state-related events.
13
+ */
14
+ protected _emitChange(): void;
15
+ /**
16
+ * The event emitter responsible for firing `select` events. Fired when the `selected` state is set to true.
17
+ */
18
+ readonly selectEvent: import("@angular/core").OutputEmitterRef<null>;
19
+ /**
20
+ * The event emitter responsible for firing `unselect` events. Fired when the `selected` state is set to false.
21
+ */
22
+ readonly unselectEvent: import("@angular/core").OutputEmitterRef<null>;
23
+ /**
24
+ * The event emitter responsible for firing `change` events. Fired when the `selected` state is changed.
25
+ */
26
+ readonly changeEvent: import("@angular/core").OutputEmitterRef<boolean>;
27
+ readonly selected: import("@angular/core").WritableSignal<boolean>;
28
+ /**
29
+ * The selection state of the component. Coercible into a boolean.
30
+ */
31
+ set _selected(v: any);
32
+ get _selectedHostAttribute(): boolean;
33
+ /**
34
+ * The event emitter responsible for firing `selectedChange` events. Fired when the `selected` state is changed.
35
+ */
36
+ readonly selectedChange: import("@angular/core").OutputEmitterRef<boolean>;
37
+ /**
38
+ * Toggles the selected state. Emits all appropriate events.
39
+ */
40
+ toggleSelected(): void;
41
+ /**
42
+ * Sets the state to "selected". Emits all appropriate events only if the state changes.
43
+ */
44
+ select(): void;
45
+ /**
46
+ * Sets the state to "unselected". Emits all appropriate events only if the state changes.
47
+ */
48
+ unselect(): void;
11
49
  readonly value: import("@angular/core").InputSignal<any>;
12
50
  readonly color: import("@angular/core").InputSignal<SimpleComponentColor>;
13
51
  readonly ngClasses: import("@angular/core").Signal<string>;
@@ -21,5 +59,5 @@ export declare class ArdiumRadioComponent extends _BooleanComponentBase {
21
59
  */
22
60
  markForCheck(): void;
23
61
  static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumRadioComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumRadioComponent, "ard-radio", never, { "htmlId": { "alias": "htmlId"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumRadioComponent, "ard-radio", never, { "htmlId": { "alias": "htmlId"; "required": false; "isSignal": true; }; "_selected": { "alias": "selected"; "required": false; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, { "selectEvent": "select"; "unselectEvent": "unselect"; "changeEvent": "change"; "selectedChange": "selectedChange"; }, never, ["*"], false, never>;
25
63
  }
@@ -1,7 +1,7 @@
1
1
  import { InjectionToken, Provider } from '@angular/core';
2
- import { _BooleanComponentDefaults } from '../../_internal/boolean-component';
2
+ import { _FocusableComponentDefaults } from '../../_internal/focusable-component';
3
3
  import { SimpleComponentColor } from './../../types/colors.types';
4
- export interface ArdRadioDefaults extends _BooleanComponentDefaults {
4
+ export interface ArdRadioDefaults extends _FocusableComponentDefaults {
5
5
  color: SimpleComponentColor;
6
6
  }
7
7
  export declare const ARD_RADIO_DEFAULTS: InjectionToken<ArdRadioDefaults>;