@ardium-ui/ui 5.0.0-alpha.4 → 5.0.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/fesm2022/ardium-ui-ui.mjs +67 -15
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/form-field/form-field-base.d.ts +4 -1
- package/lib/form-field/form-field.component.d.ts +1 -1
- package/lib/form-field/form-field.module.d.ts +5 -4
- package/lib/form-field/hint-error/hint-error.component.d.ts +6 -0
- package/lib/form-field/hint-error/hint-error.directive.d.ts +8 -0
- package/lib/form-field/horizontal-form-field.component.d.ts +1 -1
- package/lib/form-field/index.d.ts +2 -0
- package/package.json +1 -1
- package/prebuilt-themes/default/form-field.css +7 -2
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/themes/default/form-field.scss +4 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SimpleOneAxisAlignment } from '../types/alignment.types';
|
|
2
2
|
import { ArdiumErrorDirective } from './error/error.directive';
|
|
3
3
|
import { ArdFormFieldControl } from './form-field-child.token';
|
|
4
|
+
import { ArdiumHintErrorDirective } from './hint-error/hint-error.directive';
|
|
4
5
|
import { ArdiumHintDirective } from './hint/hint.directive';
|
|
5
6
|
import { ArdiumLabelComponent } from './label/label.component';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
@@ -16,9 +17,11 @@ export declare abstract class _FormFieldBase {
|
|
|
16
17
|
readonly label: import("@angular/core").Signal<ArdiumLabelComponent | undefined>;
|
|
17
18
|
readonly hints: import("@angular/core").Signal<readonly ArdiumHintDirective[]>;
|
|
18
19
|
readonly errors: import("@angular/core").Signal<readonly ArdiumErrorDirective[]>;
|
|
20
|
+
readonly hintErrors: import("@angular/core").Signal<readonly ArdiumHintErrorDirective[]>;
|
|
21
|
+
readonly hasAnyHint: import("@angular/core").Signal<boolean>;
|
|
19
22
|
readonly hasAnyError: import("@angular/core").Signal<boolean>;
|
|
20
23
|
readonly reserveHintLine: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
21
24
|
ngOnInit(): void;
|
|
22
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<_FormFieldBase, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_FormFieldBase, never, never, { "defaultHintAlign": { "alias": "defaultHintAlign"; "required": false; "isSignal": true; }; "reserveHintLine": { "alias": "reserveHintLine"; "required": false; "isSignal": true; }; }, {}, ["control", "label", "hints", "errors"], never, true, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_FormFieldBase, never, never, { "defaultHintAlign": { "alias": "defaultHintAlign"; "required": false; "isSignal": true; }; "reserveHintLine": { "alias": "reserveHintLine"; "required": false; "isSignal": true; }; }, {}, ["control", "label", "hints", "errors", "hintErrors"], never, true, never>;
|
|
24
27
|
}
|
|
@@ -3,5 +3,5 @@ import { _FormFieldBase } from './form-field-base';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ArdiumFormFieldComponent extends _FormFieldBase implements OnInit {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumFormFieldComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumFormFieldComponent, "ard-form-field", never, {}, {}, never, ["ard-label, [ard-label]", "*", "ard-error[left], [ard-error][left]", "ard-error[right], [ard-error][right]", "ard-hint[left], [ard-hint][left]", "ard-hint[right], [ard-hint][right]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-error:not([left]):not([right]), [ard-error]:not([left]):not([right])"], false, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumFormFieldComponent, "ard-form-field", never, {}, {}, never, ["ard-label, [ard-label]", "*", "ard-error[left], [ard-error][left]", "ard-error[right], [ard-error][right]", "ard-hint[left], [ard-hint][left]", "ard-hint[right], [ard-hint][right]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-error:not([left]):not([right]), [ard-error]:not([left]):not([right])", "ard-hint-error:not([left]):not([right]), [ard-hint-error]:not([left]):not([right])", "ard-hint-error[left], [ard-hint-error][left]", "ard-hint-error[right], [ard-hint-error][right]"], false, never>;
|
|
7
7
|
}
|
|
@@ -5,11 +5,12 @@ import * as i3 from "./form-field-native-inputs";
|
|
|
5
5
|
import * as i4 from "./label/label.component";
|
|
6
6
|
import * as i5 from "./hint/hint.component";
|
|
7
7
|
import * as i6 from "./error/error.component";
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "./
|
|
8
|
+
import * as i7 from "./hint-error/hint-error.component";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
10
|
+
import * as i9 from "./hint/hint.directive";
|
|
11
|
+
import * as i10 from "./error/error.directive";
|
|
11
12
|
export declare class ArdiumFormFieldModule {
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumFormFieldModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumFormFieldModule, [typeof i1.ArdiumFormFieldComponent, typeof i2.ArdiumHorizontalFormFieldComponent, typeof i3.ArdiumFormFieldNativeInputAdapterDirective, typeof i4.ArdiumLabelComponent, typeof i5.ArdiumHintComponent, typeof i6.ArdiumErrorComponent], [typeof
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumFormFieldModule, [typeof i1.ArdiumFormFieldComponent, typeof i2.ArdiumHorizontalFormFieldComponent, typeof i3.ArdiumFormFieldNativeInputAdapterDirective, typeof i4.ArdiumLabelComponent, typeof i5.ArdiumHintComponent, typeof i6.ArdiumErrorComponent, typeof i7.ArdiumHintErrorComponent], [typeof i8.CommonModule, typeof i9.ArdiumHintDirective, typeof i10.ArdiumErrorDirective], [typeof i1.ArdiumFormFieldComponent, typeof i2.ArdiumHorizontalFormFieldComponent, typeof i3.ArdiumFormFieldNativeInputAdapterDirective, typeof i4.ArdiumLabelComponent, typeof i5.ArdiumHintComponent, typeof i6.ArdiumErrorComponent, typeof i7.ArdiumHintErrorComponent]>;
|
|
14
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<ArdiumFormFieldModule>;
|
|
15
16
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./hint-error.directive";
|
|
3
|
+
export declare class ArdiumHintErrorComponent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumHintErrorComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumHintErrorComponent, "ard-hint-error", never, {}, {}, never, ["*"], false, [{ directive: typeof i1.ArdiumHintErrorDirective; inputs: { "left": "left"; "right": "right"; }; outputs: {}; }]>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ArdiumHintErrorDirective {
|
|
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<ArdiumHintErrorDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumHintErrorDirective, "[ard-hint-error]", never, { "left": { "alias": "left"; "required": false; "isSignal": true; }; "right": { "alias": "right"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -3,5 +3,5 @@ import { _FormFieldBase } from './form-field-base';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ArdiumHorizontalFormFieldComponent extends _FormFieldBase implements OnInit {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumHorizontalFormFieldComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumHorizontalFormFieldComponent, "ard-horizontal-form-field", never, {}, {}, never, ["ard-label, [ard-label]", "*", "ard-error[left], [ard-error][left]", "ard-error[right], [ard-error][right]", "ard-hint[left], [ard-hint][left]", "ard-hint[right], [ard-hint][right]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-error:not([left]):not([right]), [ard-error]:not([left]):not([right])"], false, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumHorizontalFormFieldComponent, "ard-horizontal-form-field", never, {}, {}, never, ["ard-label, [ard-label]", "*", "ard-error[left], [ard-error][left]", "ard-error[right], [ard-error][right]", "ard-hint[left], [ard-hint][left]", "ard-hint[right], [ard-hint][right]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-error:not([left]):not([right]), [ard-error]:not([left]):not([right])", "ard-hint-error:not([left]):not([right]), [ard-hint-error]:not([left]):not([right])", "ard-hint-error[left], [ard-hint-error][left]", "ard-hint-error[right], [ard-hint-error][right]"], false, never>;
|
|
7
7
|
}
|
|
@@ -3,6 +3,8 @@ export * from './error/error.directive';
|
|
|
3
3
|
export * from './form-field-native-inputs';
|
|
4
4
|
export * from './form-field.component';
|
|
5
5
|
export * from './form-field.module';
|
|
6
|
+
export * from './hint-error/hint-error.component';
|
|
7
|
+
export * from './hint-error/hint-error.directive';
|
|
6
8
|
export * from './hint/hint.component';
|
|
7
9
|
export * from './hint/hint.directive';
|
|
8
10
|
export * from './horizontal-form-field.component';
|
package/package.json
CHANGED
|
@@ -58,10 +58,15 @@ ard-horizontal-form-field {
|
|
|
58
58
|
.ard-horizontal-form-field .ard-hint {
|
|
59
59
|
color: var(--ard-text2);
|
|
60
60
|
}
|
|
61
|
-
.ard-form-field .ard-error,
|
|
62
|
-
.ard-
|
|
61
|
+
.ard-form-field .ard-error:not(.ard-hint-error),
|
|
62
|
+
.ard-form-field .ard-form-field__errors .ard-hint-error,
|
|
63
|
+
.ard-horizontal-form-field .ard-error:not(.ard-hint-error),
|
|
64
|
+
.ard-horizontal-form-field .ard-form-field__errors .ard-hint-error {
|
|
63
65
|
color: rgb(var(--ard-danger-700));
|
|
64
66
|
overflow: hidden;
|
|
67
|
+
}
|
|
68
|
+
.ard-form-field .ard-error:not(.ard-hint-error),
|
|
69
|
+
.ard-horizontal-form-field .ard-error:not(.ard-hint-error) {
|
|
65
70
|
animation: errorAppear 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
66
71
|
}
|
|
67
72
|
.ard-form-field.ard-form-field__with-error .ard-label,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/form-field.scss","../../../../projects/ui/src/themes/_variables.scss"],"names":[],"mappings":"AAEA;AAAA;EAEE;EACA;;;AAGF;AAAA;EAEE;EACA;;AAEA;AAAA;EACE;EACA;EACA;;AAGE;AAAA;EACE;EACA;EACA;EACA;;AAIF;AAAA;EACE;EACA;EACA;;AAIN;AAAA;EACE;EACA;EACA;;AAEA;AAAA;EACE;EACA;;AAKF;AAAA;AAAA;AAAA;EACE;;AAGJ;AAAA;AAAA;AAAA;EAEE;EACA;EACA;EACA;;AAEF;AAAA;EACE,OClDI;;ADoDN;AAAA;
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/form-field.scss","../../../../projects/ui/src/themes/_variables.scss"],"names":[],"mappings":"AAEA;AAAA;EAEE;EACA;;;AAGF;AAAA;EAEE;EACA;;AAEA;AAAA;EACE;EACA;EACA;;AAGE;AAAA;EACE;EACA;EACA;EACA;;AAIF;AAAA;EACE;EACA;EACA;;AAIN;AAAA;EACE;EACA;EACA;;AAEA;AAAA;EACE;EACA;;AAKF;AAAA;AAAA;AAAA;EACE;;AAGJ;AAAA;AAAA;AAAA;EAEE;EACA;EACA;EACA;;AAEF;AAAA;EACE,OClDI;;ADoDN;AAAA;AAAA;AAAA;EAEE,OCkBQ;EDjBR;;AAEF;AAAA;EACE;;AAIA;AAAA;EACE,OCSM;;ADLR;AAAA;EACE,OC8BO;;AD1BT;AAAA;EACE;;AAEF;AAAA;EACE;;;AAIN;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA,QCvDgB;EDwDhB;EACA;EACA;;AAEF;EACE;;AAIA;EACE,QCjEsB;;;ADsE5B;EACE;IACE;;EAEF;IACE","file":"form-field.css"}
|
|
@@ -58,9 +58,12 @@ ard-horizontal-form-field {
|
|
|
58
58
|
.ard-hint {
|
|
59
59
|
color: ARD.$text2;
|
|
60
60
|
}
|
|
61
|
-
.ard-error
|
|
61
|
+
.ard-error:not(.ard-hint-error),
|
|
62
|
+
.ard-form-field__errors .ard-hint-error {
|
|
62
63
|
color: ARD.$danger700;
|
|
63
64
|
overflow: hidden;
|
|
65
|
+
}
|
|
66
|
+
.ard-error:not(.ard-hint-error) {
|
|
64
67
|
animation: errorAppear 0.25s ARD.$timing-fn forwards;
|
|
65
68
|
}
|
|
66
69
|
|