@ardium-ui/ui 3.3.0-alpha.4 → 3.3.0-alpha.5
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/esm2022/lib/_internal/form-field-component.mjs +4 -28
- package/esm2022/lib/_internal/ngmodel-component.mjs +43 -3
- package/esm2022/lib/_internal/selectable-list-component.mjs +1 -3
- package/esm2022/lib/checkbox/checkbox.component.mjs +2 -3
- package/esm2022/lib/checkbox-list/checkbox-list.component.mjs +2 -4
- package/esm2022/lib/file-inputs/file-input-base.mjs +3 -4
- package/esm2022/lib/radio/radio/radio.component.mjs +2 -4
- package/esm2022/lib/radio/radio-group.component.mjs +3 -3
- package/esm2022/lib/slider/range-slider/range-slider.component.mjs +2 -1
- package/esm2022/lib/table/table.component.mjs +1 -1
- package/fesm2022/ardium-ui-ui.mjs +48 -37
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/form-field-component.d.ts +3 -13
- package/lib/_internal/ngmodel-component.d.ts +13 -3
- package/lib/_internal/selectable-list-component.d.ts +0 -1
- package/lib/checkbox/checkbox.component.d.ts +1 -2
- package/lib/checkbox-list/checkbox-list.component.d.ts +1 -2
- package/lib/file-inputs/file-input-base.d.ts +1 -2
- package/lib/radio/radio/radio.component.d.ts +1 -2
- package/lib/radio/radio-group.component.d.ts +1 -2
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
2
|
import { _NgModelComponentBase, _NgModelComponentDefaults } from './ngmodel-component';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export interface _FormFieldComponentDefaults extends _NgModelComponentDefaults {
|
|
@@ -11,20 +10,11 @@ export declare const _formFieldComponentDefaults: _FormFieldComponentDefaults;
|
|
|
11
10
|
*
|
|
12
11
|
* **Warning**: `writeValue` function should be implemented on the child component!
|
|
13
12
|
*/
|
|
14
|
-
export declare abstract class _FormFieldComponentBase extends _NgModelComponentBase implements ControlValueAccessor
|
|
13
|
+
export declare abstract class _FormFieldComponentBase extends _NgModelComponentBase implements ControlValueAccessor {
|
|
15
14
|
protected readonly _DEFAULTS: _FormFieldComponentDefaults;
|
|
16
|
-
protected readonly _injector: Injector;
|
|
17
|
-
private _statusChangesSub?;
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
protected _ngControl: NgControl | null;
|
|
20
15
|
readonly _required: import("@angular/core").InputSignalWithTransform<boolean | undefined, any>;
|
|
21
16
|
get required(): boolean;
|
|
22
|
-
readonly htmlId: import("@angular/core").InputSignal<string>;
|
|
23
|
-
readonly _hasError: import("@angular/core").InputSignalWithTransform<boolean | undefined, any>;
|
|
24
|
-
private readonly _hasErrorInControl;
|
|
25
|
-
readonly hasError: import("@angular/core").Signal<boolean>;
|
|
26
17
|
readonly isSuccess: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
27
|
-
ngOnDestroy(): void;
|
|
28
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<_FormFieldComponentBase, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_FormFieldComponentBase, never, never, { "_required": { "alias": "required"; "required": false; "isSignal": true; }; "
|
|
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>;
|
|
30
20
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
@@ -10,7 +11,7 @@ export declare const _ngModelComponentDefaults: _NgModelComponentDefaults;
|
|
|
10
11
|
*
|
|
11
12
|
* **Warning**: `writeValue` function should be implemented on the child component!
|
|
12
13
|
*/
|
|
13
|
-
export declare abstract class _NgModelComponentBase extends _FocusableComponentBase implements ControlValueAccessor {
|
|
14
|
+
export declare abstract class _NgModelComponentBase extends _FocusableComponentBase implements ControlValueAccessor, OnInit, OnDestroy {
|
|
14
15
|
protected readonly _DEFAULTS: _NgModelComponentDefaults;
|
|
15
16
|
protected _onChangeRegistered: (_: any) => void;
|
|
16
17
|
protected _onTouchedRegistered: () => void;
|
|
@@ -42,6 +43,15 @@ export declare abstract class _NgModelComponentBase extends _FocusableComponentB
|
|
|
42
43
|
*/
|
|
43
44
|
protected abstract _emitChange(): void;
|
|
44
45
|
onBlur(event: FocusEvent): void;
|
|
46
|
+
protected readonly _injector: Injector;
|
|
47
|
+
private _statusChangesSub?;
|
|
48
|
+
ngOnInit(): void;
|
|
49
|
+
protected _ngControl: NgControl | null;
|
|
50
|
+
readonly htmlId: import("@angular/core").InputSignal<string>;
|
|
51
|
+
readonly _hasError: import("@angular/core").InputSignalWithTransform<boolean | undefined, any>;
|
|
52
|
+
private readonly _hasErrorInControl;
|
|
53
|
+
readonly hasError: Signal<boolean>;
|
|
54
|
+
ngOnDestroy(): void;
|
|
45
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<_NgModelComponentBase, never>;
|
|
46
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_NgModelComponentBase, never, never, {}, {}, never, never, false, never>;
|
|
56
|
+
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>;
|
|
47
57
|
}
|
|
@@ -18,7 +18,6 @@ export declare const _selectableListComponentDefaults: _SelectableListComponentD
|
|
|
18
18
|
export declare abstract class _SelectableListComponentBase extends _NgModelComponentBase 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, { "
|
|
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, { "
|
|
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, { "
|
|
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
|
}
|
|
@@ -7,7 +7,6 @@ export declare class ArdiumRadioComponent extends _BooleanComponentBase {
|
|
|
7
7
|
protected readonly _changeDetector: ChangeDetectorRef;
|
|
8
8
|
protected readonly _DEFAULTS: ArdRadioDefaults;
|
|
9
9
|
constructor(defaults: ArdRadioDefaults);
|
|
10
|
-
readonly htmlId: import("@angular/core").InputSignal<string>;
|
|
11
10
|
readonly value: import("@angular/core").InputSignal<any>;
|
|
12
11
|
readonly color: import("@angular/core").InputSignal<SimpleComponentColor>;
|
|
13
12
|
readonly ngClasses: import("@angular/core").Signal<string>;
|
|
@@ -21,5 +20,5 @@ export declare class ArdiumRadioComponent extends _BooleanComponentBase {
|
|
|
21
20
|
*/
|
|
22
21
|
markForCheck(): void;
|
|
23
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumRadioComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumRadioComponent, "ard-radio", never, { "
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumRadioComponent, "ard-radio", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
|
|
25
24
|
}
|
|
@@ -5,7 +5,6 @@ import { ArdiumRadioComponent } from './radio/radio.component';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ArdiumRadioGroupComponent extends _NgModelComponentBase implements AfterContentInit, OnDestroy {
|
|
7
7
|
private readonly _radios;
|
|
8
|
-
readonly htmlId: import("@angular/core").InputSignal<string>;
|
|
9
8
|
get _htmlIdHostAttribute(): string;
|
|
10
9
|
constructor();
|
|
11
10
|
get value(): any | undefined;
|
|
@@ -36,5 +35,5 @@ export declare class ArdiumRadioGroupComponent extends _NgModelComponentBase imp
|
|
|
36
35
|
ngOnDestroy(): void;
|
|
37
36
|
private _destroyChildSubscriptions;
|
|
38
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumRadioGroupComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumRadioGroupComponent, "ard-radio-group", never, { "
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumRadioGroupComponent, "ard-radio-group", never, { "value": { "alias": "value"; "required": false; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "changeEvent": "change"; "selected": "selectedChange"; }, ["_radios"], ["*"], false, never>;
|
|
40
39
|
}
|