@ardium-ui/ui 3.3.0-alpha1 → 3.3.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/esm2022/lib/_internal/focusable-component.mjs +5 -5
- package/esm2022/lib/_internal/form-field-component.mjs +5 -27
- package/esm2022/lib/_internal/item-storages/simple-item-storage.mjs +5 -2
- package/esm2022/lib/_internal/ngmodel-component.mjs +57 -5
- package/esm2022/lib/_internal/selectable-list-component.mjs +10 -12
- 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/file-input.component.mjs +3 -3
- package/esm2022/lib/file-inputs/file-input-base.mjs +3 -4
- package/esm2022/lib/form-field/form-field.component.mjs +7 -10
- package/esm2022/lib/form-field/form-field.defaults.mjs +2 -1
- package/esm2022/lib/form-field/form-field.module.mjs +25 -4
- package/esm2022/lib/form-field/horizontal-form-field.component.mjs +33 -0
- package/esm2022/lib/form-field/index.mjs +2 -1
- package/esm2022/lib/form-field-frame/form-field-frame.component.mjs +12 -7
- package/esm2022/lib/inputs/digit-input/digit-input.component.mjs +20 -9
- package/esm2022/lib/inputs/digit-input/digit-input.model.mjs +51 -28
- package/esm2022/lib/inputs/digit-input/digit-input.types.mjs +1 -1
- package/esm2022/lib/inputs/digit-input/digit-input.utils.mjs +1 -1
- package/esm2022/lib/inputs/hex-input/hex-input.component.mjs +3 -3
- package/esm2022/lib/inputs/input/input.component.mjs +3 -3
- package/esm2022/lib/inputs/number-input/number-input.component.mjs +3 -3
- package/esm2022/lib/inputs/password-input/password-input.component.mjs +3 -3
- package/esm2022/lib/inputs/simple-input/simple-input.component.mjs +3 -3
- package/esm2022/lib/radio/radio/radio.component.mjs +77 -6
- package/esm2022/lib/radio/radio/radio.defaults.mjs +3 -3
- package/esm2022/lib/radio/radio-group.component.mjs +3 -3
- package/esm2022/lib/segment/segment.component.mjs +26 -4
- package/esm2022/lib/select/select.component.mjs +4 -4
- 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 +321 -122
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/focusable-component.d.ts +1 -1
- package/lib/_internal/form-field-component.d.ts +4 -13
- package/lib/_internal/item-storages/simple-item-storage.d.ts +1 -0
- package/lib/_internal/ngmodel-component.d.ts +16 -3
- package/lib/_internal/selectable-list-component.d.ts +3 -4
- 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/form-field/form-field.component.d.ts +3 -3
- package/lib/form-field/form-field.defaults.d.ts +1 -0
- package/lib/form-field/form-field.module.d.ts +8 -7
- package/lib/form-field/horizontal-form-field.component.d.ts +19 -0
- package/lib/form-field/index.d.ts +1 -0
- package/lib/form-field-frame/form-field-frame.component.d.ts +3 -2
- package/lib/inputs/digit-input/digit-input.component.d.ts +5 -2
- package/lib/inputs/digit-input/digit-input.model.d.ts +0 -1
- package/lib/inputs/digit-input/digit-input.types.d.ts +1 -1
- package/lib/inputs/digit-input/digit-input.utils.d.ts +1 -0
- package/lib/radio/radio/radio.component.d.ts +41 -3
- package/lib/radio/radio/radio.defaults.d.ts +2 -2
- package/lib/radio/radio-group.component.d.ts +1 -2
- package/package.json +1 -1
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/core.css +2 -0
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/form-field-frame.css +10 -4
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +74 -9
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +14 -3
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +0 -5
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +0 -5
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +6 -3
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/simple-input.css +0 -5
- package/prebuilt-themes/default/inputs/simple-input.css.map +1 -1
- package/prebuilt-themes/default/segment.css +6 -3
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/themes/default/_mixins.scss +6 -4
- package/themes/default/core.scss +3 -0
- package/themes/default/form-field-frame.scss +5 -1
- package/themes/default/form-field.scss +63 -2
- package/themes/default/inputs/digit-input.scss +11 -0
- package/themes/default/inputs/file-input.scss +0 -6
- package/themes/default/inputs/input.scss +1 -7
- package/themes/default/inputs/simple-input.scss +1 -8
|
@@ -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.
|
|
@@ -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,19 +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
|
|
23
|
-
readonly _hasError: import("@angular/core").InputSignalWithTransform<boolean | undefined, any>;
|
|
24
|
-
private readonly _hasErrorInControl;
|
|
25
|
-
readonly hasError: import("@angular/core").Signal<boolean>;
|
|
26
|
-
ngOnDestroy(): void;
|
|
17
|
+
readonly isSuccess: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
27
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<_FormFieldComponentBase, never>;
|
|
28
|
-
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>;
|
|
29
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,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;
|
|
@@ -41,7 +42,19 @@ export declare abstract class _NgModelComponentBase extends _FocusableComponentB
|
|
|
41
42
|
* @param v The new value to write.
|
|
42
43
|
*/
|
|
43
44
|
protected abstract _emitChange(): void;
|
|
45
|
+
readonly wasTouched: import("@angular/core").WritableSignal<boolean>;
|
|
46
|
+
onFocus(event: FocusEvent): void;
|
|
47
|
+
private _shouldEmitTouched;
|
|
44
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;
|
|
45
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<_NgModelComponentBase, never>;
|
|
46
|
-
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>;
|
|
47
60
|
}
|
|
@@ -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
|
|
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
|
|
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, { "
|
|
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
|
}
|
|
@@ -6,14 +6,14 @@ import { ArdiumLabelComponent } from './label/label.component';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ArdiumFormFieldComponent implements OnInit {
|
|
8
8
|
protected readonly _DEFAULTS: import("./form-field.defaults").ArdFormFieldDefaults;
|
|
9
|
-
readonly
|
|
9
|
+
readonly alignHintToLeftByDefault: boolean;
|
|
10
10
|
readonly control: import("@angular/core").Signal<_FormFieldComponentBase | undefined>;
|
|
11
|
-
readonly controlId: import("@angular/core").Signal<string | undefined>;
|
|
12
11
|
readonly label: import("@angular/core").Signal<ArdiumLabelComponent | undefined>;
|
|
13
12
|
readonly hints: import("@angular/core").Signal<readonly ArdiumHintDirective[]>;
|
|
14
13
|
readonly errors: import("@angular/core").Signal<readonly ArdiumErrorDirective[]>;
|
|
15
14
|
readonly hasAnyError: import("@angular/core").Signal<boolean>;
|
|
15
|
+
readonly reserveHintLine: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
16
16
|
ngOnInit(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumFormFieldComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumFormFieldComponent, "ard-form-field", never, {}, {}, ["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>;
|
|
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
19
|
}
|
|
@@ -2,6 +2,7 @@ import { InjectionToken, Provider } from '@angular/core';
|
|
|
2
2
|
import { SimpleOneAxisAlignment } from './../types/alignment.types';
|
|
3
3
|
export interface ArdFormFieldDefaults {
|
|
4
4
|
defaultHintAlign: SimpleOneAxisAlignment;
|
|
5
|
+
reserveHintLine: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare const ARD_FORM_FIELD_DEFAULTS: InjectionToken<ArdFormFieldDefaults>;
|
|
7
8
|
export declare function provideFormFieldDefaults(config: Partial<ArdFormFieldDefaults>): Provider;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./form-field.component";
|
|
3
|
-
import * as i2 from "./
|
|
4
|
-
import * as i3 from "./
|
|
5
|
-
import * as i4 from "./
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "./
|
|
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";
|
|
9
10
|
export declare class ArdiumFormFieldModule {
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumFormFieldModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumFormFieldModule, [typeof i1.ArdiumFormFieldComponent, typeof i2.
|
|
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]>;
|
|
12
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<ArdiumFormFieldModule>;
|
|
13
14
|
}
|
|
@@ -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
|
+
}
|
|
@@ -9,7 +9,8 @@ export declare class ArdiumFormFieldFrameComponent extends _FocusableComponentBa
|
|
|
9
9
|
protected readonly _DEFAULTS: ArdFormFieldFrameDefaults;
|
|
10
10
|
constructor(defaults: ArdFormFieldFrameDefaults);
|
|
11
11
|
readonly hasError: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
12
|
-
|
|
12
|
+
readonly isSuccess: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
13
|
+
set _setIsFocused(v: boolean);
|
|
13
14
|
/**
|
|
14
15
|
* The appearance of the component, aka the styling.
|
|
15
16
|
*/
|
|
@@ -28,5 +29,5 @@ export declare class ArdiumFormFieldFrameComponent extends _FocusableComponentBa
|
|
|
28
29
|
readonly prefixTemplate: import("@angular/core").Signal<ArdFormFieldPrefixTemplateDirective | undefined>;
|
|
29
30
|
readonly suffixTemplate: import("@angular/core").Signal<ArdFormFieldSuffixTemplateDirective | undefined>;
|
|
30
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumFormFieldFrameComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumFormFieldFrameComponent, "ard-form-field-frame", never, { "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "
|
|
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>;
|
|
32
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { _FormFieldComponentBase } from '../../_internal/form-field-component';
|
|
4
4
|
import { FormElementAppearance, FormElementVariant } from '../../types/theming.types';
|
|
@@ -6,7 +6,7 @@ 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 _FormFieldComponentBase implements ControlValueAccessor, DigitInputModelHost, OnInit {
|
|
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>[]>;
|
|
@@ -22,8 +22,11 @@ export declare class ArdiumDigitInputComponent extends _FormFieldComponentBase i
|
|
|
22
22
|
readonly configArrayDataEffect: import("@angular/core").EffectRef;
|
|
23
23
|
ngOnInit(): void;
|
|
24
24
|
isInputEmpty(index: number): boolean;
|
|
25
|
+
private _valueBeforeViewInit?;
|
|
25
26
|
writeValue(v: any): void;
|
|
26
27
|
private _writeValue;
|
|
28
|
+
private _wasViewInit;
|
|
29
|
+
ngAfterViewInit(): void;
|
|
27
30
|
readonly outputAsString: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
28
31
|
readonly outputControlValueAccessorOnFinish: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
29
32
|
set value(v: string | (string | null)[] | null);
|
|
@@ -5,7 +5,6 @@ export declare class DigitInputModel {
|
|
|
5
5
|
constructor(_ardHost: DigitInputModelHost);
|
|
6
6
|
private readonly _configArray;
|
|
7
7
|
readonly configArrayData: import("@angular/core").Signal<DigitInputConfigData[]>;
|
|
8
|
-
private readonly _configArrayNoStatics;
|
|
9
8
|
readonly isConfigDefined: import("@angular/core").Signal<boolean>;
|
|
10
9
|
readonly value: import("@angular/core").WritableSignal<(string | null)[] | null>;
|
|
11
10
|
readonly stringValue: import("@angular/core").Signal<string>;
|
|
@@ -17,7 +17,7 @@ export declare const DigitInputPrimitiveOption: {
|
|
|
17
17
|
export type DigitInputPrimitiveOption = (typeof DigitInputPrimitiveOption)[keyof typeof DigitInputPrimitiveOption];
|
|
18
18
|
export interface DigitInputAcceptObject {
|
|
19
19
|
accept: string | RegExp | ((char: string, charsBefore: string) => boolean);
|
|
20
|
-
transform?: TransformType | null;
|
|
20
|
+
transform?: TransformType | ((char: string) => string) | null;
|
|
21
21
|
readonly?: boolean;
|
|
22
22
|
placeholder?: string;
|
|
23
23
|
}
|
|
@@ -8,6 +8,7 @@ export interface DigitInputConfigData {
|
|
|
8
8
|
}
|
|
9
9
|
export interface DigitInputModelHost {
|
|
10
10
|
readonly inputs: Signal<readonly ElementRef<HTMLInputElement>[]>;
|
|
11
|
+
readonly outputAsString: Signal<boolean>;
|
|
11
12
|
}
|
|
12
13
|
export declare const DigitInputConfigDataType: {
|
|
13
14
|
readonly Input: "input";
|
|
@@ -1,13 +1,51 @@
|
|
|
1
1
|
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import {
|
|
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
|
|
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 {
|
|
2
|
+
import { _FocusableComponentDefaults } from '../../_internal/focusable-component';
|
|
3
3
|
import { SimpleComponentColor } from './../../types/colors.types';
|
|
4
|
-
export interface ArdRadioDefaults extends
|
|
4
|
+
export interface ArdRadioDefaults extends _FocusableComponentDefaults {
|
|
5
5
|
color: SimpleComponentColor;
|
|
6
6
|
}
|
|
7
7
|
export declare const ARD_RADIO_DEFAULTS: InjectionToken<ArdRadioDefaults>;
|
|
@@ -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
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/chips.scss","../../../../projects/ui/src/themes/default/_mixins.scss","../../../../projects/ui/src/themes/_variables.scss","../../../../projects/ui/src/themes/default/_coloring.scss","../../../../projects/ui/src/themes/default/_clear-button.scss"],"names":[],"mappings":"AAMA;
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/chips.scss","../../../../projects/ui/src/themes/default/_mixins.scss","../../../../projects/ui/src/themes/_variables.scss","../../../../projects/ui/src/themes/default/_coloring.scss","../../../../projects/ui/src/themes/default/_clear-button.scss"],"names":[],"mappings":"AAMA;ECgEE;ED3DA;EACA,OEJM;EFKN,YEbG;EFcH;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AGtBA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AClIF;EACE,QFkCgB;EEjChB,OFiCgB;EEhChB;;AAGF;EACE;EACA;EACA,OFGK;EEFL,OFyBgB;EExBhB,QFwBgB;EEvBhB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAGF;EH3BF;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EGoBI;;AAGF;EACE;EACA;EACA;EACA;;AAEA;EACE;EH7CN;EACA;EACA;EG6CM;;AAKF;EACE;;AAKF;EACE;;AAKF;EACE;;AHIN;EAEE;;AAEF;EACE;;AAEF;EACE;;ADrDF;EACE;;AAEF;ECrBA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EDcE,YE9BM;EF+BN;;AAGF;EACE;EACA;EACA;;AAIE;EACE;;AAIF;EACE;;AAIJ;EClDF;EACA;EACA;;ADmDI;EACE;;AAKN;EACE;EACA;EACA;;AAEA;EACE,kBE/DC;EFgED,OE7DE;EF8DF,YACE;;AAIF;EACE;EACA;;AAIN;EAEE;EACA;EACA;EACA;EACA;;AAEA;EACE,YACE;;AAGF;EACE;EACA;;AAIA;EACE;;AAIF;EACE;;AAIJ;EACE;;AAEA;EACE;;AAIA;EACE;;AAIF;EACE;;AAOR;EACE;EACA;;AAKJ;EACE;EACA;;AAEA;EACE;EACA;;AAEF;EACE;;AAEA;EACE;;AAIN;EACE;EACA;;AAEA;EACE;EACA;;AAEF;EACE;;AAEA;EACE;;AAKN;EACE;EACA;;AAEA;EACE;;AAGF;EACE;EACA;;AAEF;EACE;EACA;;;AAMJ;EACE;EACA;;AAEA;EACE","file":"chips.css"}
|
|
@@ -78,6 +78,8 @@
|
|
|
78
78
|
--ard-simple-shadow3: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14),
|
|
79
79
|
0px 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
80
80
|
--ard-spinner-color: rgba(0, 0, 0, 50%);
|
|
81
|
+
--ard-horizontal-form-field-label-width: 12rem;
|
|
82
|
+
--ard-horizontal-form-field-label-align: flex-start;
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
.ard-disabled {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/core.scss"],"names":[],"mappings":"AAEQ;AACA;AAER;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EAEA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;AAAA;EAEA;AAAA;EAEA;AAAA;EAGA;;;AAGF;EACE","file":"core.css"}
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/core.scss"],"names":[],"mappings":"AAEQ;AACA;AAER;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EAEA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;AAAA;EAEA;AAAA;EAEA;AAAA;EAGA;EAEA;EACA;;;AAGF;EACE","file":"core.css"}
|
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
}
|
|
18
18
|
.ard-form-field-frame .ard-form-field-content-container {
|
|
19
19
|
flex-grow: 1;
|
|
20
|
-
min-height:
|
|
20
|
+
min-height: inherit;
|
|
21
|
+
}
|
|
22
|
+
.ard-form-field-frame .ard-form-field-content-container > * {
|
|
23
|
+
min-height: inherit;
|
|
21
24
|
}
|
|
22
25
|
.ard-form-field-frame .ard-form-field-prefix-container,
|
|
23
26
|
.ard-form-field-frame .ard-form-field-suffix-container {
|
|
@@ -45,6 +48,9 @@
|
|
|
45
48
|
.ard-form-field-frame.ard-appearance-outlined.ard-focused {
|
|
46
49
|
--ard-appearance-border-color: var(--ard-border-dark);
|
|
47
50
|
}
|
|
51
|
+
.ard-form-field-frame.ard-appearance-outlined.ard-is-success {
|
|
52
|
+
--ard-appearance-border-color: rgb(var(--ard-success-500));
|
|
53
|
+
}
|
|
48
54
|
.ard-form-field-frame.ard-appearance-outlined.ard-has-error {
|
|
49
55
|
--ard-appearance-background: rgb(var(--ard-danger-50));
|
|
50
56
|
--ard-appearance-border-color: rgb(var(--ard-danger-500));
|
|
@@ -53,6 +59,9 @@
|
|
|
53
59
|
--ard-appearance-background: var(--ard-bg-filled);
|
|
54
60
|
--ard-appearance-border: none;
|
|
55
61
|
}
|
|
62
|
+
.ard-form-field-frame.ard-appearance-filled.ard-is-success {
|
|
63
|
+
--ard-appearance-background: rgb(var(--ard-success-50));
|
|
64
|
+
}
|
|
56
65
|
.ard-form-field-frame.ard-appearance-filled.ard-has-error {
|
|
57
66
|
--ard-appearance-background: rgb(var(--ard-danger-50));
|
|
58
67
|
}
|
|
@@ -60,9 +69,6 @@
|
|
|
60
69
|
--ard-appearance-background: transparent;
|
|
61
70
|
--ard-appearance-border: none;
|
|
62
71
|
}
|
|
63
|
-
.ard-form-field-frame.ard-appearance-transparent.ard-has-error {
|
|
64
|
-
--ard-appearance-border: 1px solid rgba(var(--ard-danger-500), 0.1);
|
|
65
|
-
}
|
|
66
72
|
.ard-form-field-frame.ard-variant-rounded, .ard-form-field-frame.ard-variant-semirounded {
|
|
67
73
|
--ard-variant-border-radius: 8px;
|
|
68
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/form-field-frame.scss","../../../../projects/ui/src/themes/default/_mixins.scss","../../../../projects/ui/src/themes/_variables.scss"],"names":[],"mappings":"AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/form-field-frame.scss","../../../../projects/ui/src/themes/default/_mixins.scss","../../../../projects/ui/src/themes/_variables.scss"],"names":[],"mappings":"AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ECwDA;EDtBA;EACA;EACA;;AAlCA;EACE;EACA;;AAEA;EACE;;AAGJ;AAAA;EAEE;EACA;EACA;EACA;;AAEF;EACE;;AAEF;EACE;;AAIF;EACE;EACA;EACA;;ACNF;EACE;EACA;EACA;;AAEA;EACE;;AAEF;EACE;;AAEF;EACE;EACA;;AAGJ;EACE;EACA;;AAEA;EACE;;AAEF;EACE;;AAGJ;EACE;EACA;;AAOF;EAEE;;AAEF;EACE;;AAEF;EACE;;AD5BF;EACE,YEnDM;EFoDN;EACA;;AAIA;EACE;;AAIF;EACE;;;AAIN;EACE;EACA;;AAGE;EACE","file":"form-field-frame.css"}
|
|
@@ -1,33 +1,98 @@
|
|
|
1
|
-
|
|
1
|
+
ard-form-field,
|
|
2
|
+
ard-horizontal-form-field {
|
|
3
|
+
display: block;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.ard-form-field,
|
|
8
|
+
.ard-horizontal-form-field {
|
|
2
9
|
display: flex;
|
|
3
10
|
flex-direction: column;
|
|
4
11
|
}
|
|
5
|
-
.ard-form-field .ard-label
|
|
12
|
+
.ard-form-field .ard-label,
|
|
13
|
+
.ard-horizontal-form-field .ard-label {
|
|
6
14
|
padding: 0.25rem 0 0.125rem 0.125rem;
|
|
7
15
|
font-size: 0.9375rem;
|
|
8
16
|
font-weight: 500;
|
|
9
17
|
}
|
|
10
|
-
.ard-form-field .ard-form-field__hints
|
|
18
|
+
.ard-form-field .ard-form-field__hints,
|
|
19
|
+
.ard-horizontal-form-field .ard-form-field__hints {
|
|
11
20
|
padding: 0.125rem 0 0.25rem 0.125rem;
|
|
21
|
+
font-size: 0.8125rem;
|
|
22
|
+
line-height: 1.1;
|
|
12
23
|
}
|
|
13
|
-
.ard-form-field .ard-form-field__hints-
|
|
24
|
+
.ard-form-field .ard-form-field__hints.ard-form-field__reserve-hint-line,
|
|
25
|
+
.ard-horizontal-form-field .ard-form-field__hints.ard-form-field__reserve-hint-line {
|
|
26
|
+
box-sizing: content-box;
|
|
27
|
+
min-height: 1.1em;
|
|
28
|
+
}
|
|
29
|
+
.ard-form-field .ard-form-field__hints-right > *,
|
|
30
|
+
.ard-horizontal-form-field .ard-form-field__hints-right > * {
|
|
14
31
|
padding-left: 0.25rem;
|
|
15
32
|
}
|
|
16
33
|
.ard-form-field .ard-hint,
|
|
17
|
-
.ard-form-field .ard-error
|
|
18
|
-
|
|
34
|
+
.ard-form-field .ard-error,
|
|
35
|
+
.ard-horizontal-form-field .ard-hint,
|
|
36
|
+
.ard-horizontal-form-field .ard-error {
|
|
37
|
+
font-size: 1em;
|
|
19
38
|
line-height: 1.1;
|
|
20
39
|
display: block;
|
|
21
40
|
height: 1.1em;
|
|
22
41
|
}
|
|
23
|
-
.ard-form-field .ard-hint
|
|
42
|
+
.ard-form-field .ard-hint,
|
|
43
|
+
.ard-horizontal-form-field .ard-hint {
|
|
24
44
|
color: var(--ard-text2);
|
|
25
45
|
}
|
|
26
|
-
.ard-form-field .ard-error
|
|
46
|
+
.ard-form-field .ard-error,
|
|
47
|
+
.ard-horizontal-form-field .ard-error {
|
|
27
48
|
color: rgb(var(--ard-danger-700));
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
animation: errorAppear 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
28
51
|
}
|
|
29
|
-
.ard-form-field.ard-form-field__with-error .ard-label
|
|
52
|
+
.ard-form-field.ard-form-field__with-error .ard-label,
|
|
53
|
+
.ard-horizontal-form-field.ard-form-field__with-error .ard-label {
|
|
30
54
|
color: rgb(var(--ard-danger-700));
|
|
31
55
|
}
|
|
56
|
+
.ard-form-field.ard-form-field__is-success .ard-label,
|
|
57
|
+
.ard-horizontal-form-field.ard-form-field__is-success .ard-label {
|
|
58
|
+
color: rgb(var(--ard-success-700));
|
|
59
|
+
}
|
|
60
|
+
.ard-form-field.ard-form-field__control-disabled .ard-label,
|
|
61
|
+
.ard-horizontal-form-field.ard-form-field__control-disabled .ard-label {
|
|
62
|
+
opacity: 40%;
|
|
63
|
+
}
|
|
64
|
+
.ard-form-field.ard-form-field__control-disabled .ard-form-field__hints,
|
|
65
|
+
.ard-horizontal-form-field.ard-form-field__control-disabled .ard-form-field__hints {
|
|
66
|
+
opacity: 50%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ard-horizontal-form-field {
|
|
70
|
+
align-items: flex-start;
|
|
71
|
+
justify-content: stretch;
|
|
72
|
+
flex-direction: row;
|
|
73
|
+
gap: 0.5rem;
|
|
74
|
+
}
|
|
75
|
+
.ard-horizontal-form-field .ard-form-field__label-container {
|
|
76
|
+
width: var(--ard-horizontal-form-field-label-width, 12rem);
|
|
77
|
+
height: 2.3125rem;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: var(--ard-horizontal-form-field-label-align, flex-start);
|
|
81
|
+
}
|
|
82
|
+
.ard-horizontal-form-field .ard-form-field__non-label {
|
|
83
|
+
flex-grow: 1;
|
|
84
|
+
}
|
|
85
|
+
.ard-horizontal-form-field:has(.ard-form-field__input .ard-compact) .ard-form-field__label-container {
|
|
86
|
+
height: 1.5625rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@keyframes errorAppear {
|
|
90
|
+
from {
|
|
91
|
+
height: 0;
|
|
92
|
+
}
|
|
93
|
+
to {
|
|
94
|
+
height: 1.1em;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
32
97
|
|
|
33
98
|
/*# sourceMappingURL=form-field.css.map */
|