@ardium-ui/ui 3.3.0-alpha.5 → 3.3.0-alpha.7

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.
@@ -40,7 +40,6 @@ export declare abstract class _FocusableComponentBase extends _DisablableCompone
40
40
  * Whether the component is currently focused.
41
41
  */
42
42
  readonly isFocused: import("@angular/core").WritableSignal<boolean>;
43
- readonly wasTouched: import("@angular/core").WritableSignal<boolean>;
44
43
  /**
45
44
  * Function to handle when an element is focused. Sets `isFocused` and fires the `focus` event.
46
45
  * @param event The focus event to emit.
@@ -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;
@@ -42,6 +42,9 @@ export declare abstract class _NgModelComponentBase extends _FocusableComponentB
42
42
  * @param v The new value to write.
43
43
  */
44
44
  protected abstract _emitChange(): void;
45
+ readonly wasTouched: import("@angular/core").WritableSignal<boolean>;
46
+ onFocus(event: FocusEvent): void;
47
+ private _shouldEmitTouched;
45
48
  onBlur(event: FocusEvent): void;
46
49
  protected readonly _injector: Injector;
47
50
  private _statusChangesSub?;
@@ -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,7 +15,7 @@ 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
21
  readonly element: HTMLElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ardium-ui/ui",
3
- "version": "3.3.0-alpha.5",
3
+ "version": "3.3.0-alpha.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",