@abgov/angular-components 4.2.2-alpha.4 → 4.2.2-alpha.6
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/components/index.mjs +2 -1
- package/esm2022/lib/components/input/input.mjs +12 -9
- package/esm2022/lib/components/input-number/input-number.mjs +247 -0
- package/fesm2022/abgov-angular-components.mjs +255 -8
- package/fesm2022/abgov-angular-components.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/input-number/input-number.d.ts +57 -0
- package/package.json +1 -1
|
@@ -37,6 +37,7 @@ export * from "./hero-banner/hero-banner";
|
|
|
37
37
|
export * from "./icon/icon";
|
|
38
38
|
export * from "./icon-button/icon-button";
|
|
39
39
|
export * from "./input/input";
|
|
40
|
+
export * from "./input-number/input-number";
|
|
40
41
|
export * from "./link/link";
|
|
41
42
|
export * from "./microsite-header/microsite-header";
|
|
42
43
|
export * from "./modal/modal";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { GoabIconType, GoabInputAutoCapitalize, GoaInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputType, Spacing } from "@abgov/ui-components-common";
|
|
2
|
+
import { EventEmitter, OnInit } from "@angular/core";
|
|
3
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GoabInputNumber implements ControlValueAccessor, OnInit {
|
|
6
|
+
type: GoabInputType;
|
|
7
|
+
name?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
debounce?: number;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
autoCapitalize?: GoabInputAutoCapitalize;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
leadingIcon?: GoabIconType;
|
|
14
|
+
trailingIcon?: GoabIconType;
|
|
15
|
+
variant?: string;
|
|
16
|
+
focused?: boolean;
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
error?: boolean;
|
|
19
|
+
width?: string;
|
|
20
|
+
prefix?: string;
|
|
21
|
+
suffix?: string;
|
|
22
|
+
testId?: string;
|
|
23
|
+
ariaLabel?: string;
|
|
24
|
+
maxLength?: number;
|
|
25
|
+
min?: string | number;
|
|
26
|
+
max?: string | number;
|
|
27
|
+
step?: number;
|
|
28
|
+
ariaLabelledBy?: string;
|
|
29
|
+
mt?: Spacing;
|
|
30
|
+
mr?: Spacing;
|
|
31
|
+
mb?: Spacing;
|
|
32
|
+
ml?: Spacing;
|
|
33
|
+
trailingIconAriaLabel?: string;
|
|
34
|
+
value: number | null;
|
|
35
|
+
onTrailingIconClick: EventEmitter<void>;
|
|
36
|
+
onFocus: EventEmitter<GoabInputOnFocusDetail>;
|
|
37
|
+
onBlur: EventEmitter<GoaInputOnBlurDetail>;
|
|
38
|
+
onKeyPress: EventEmitter<GoabInputOnKeyPressDetail>;
|
|
39
|
+
onChange: EventEmitter<GoabInputOnChangeDetail>;
|
|
40
|
+
handleTrailingIconClick: boolean;
|
|
41
|
+
ngOnInit(): void;
|
|
42
|
+
_onTrailingIconClick(_: Event): void;
|
|
43
|
+
_onChange(e: Event): void;
|
|
44
|
+
_onKeyPress(e: Event): void;
|
|
45
|
+
_onFocus(e: Event): void;
|
|
46
|
+
_onBlur(e: Event): void;
|
|
47
|
+
private fcChange?;
|
|
48
|
+
private fcTouched?;
|
|
49
|
+
touched: boolean;
|
|
50
|
+
markAsTouched(): void;
|
|
51
|
+
writeValue(value: number | null): void;
|
|
52
|
+
registerOnChange(fn: (value: number | null) => void): void;
|
|
53
|
+
registerOnTouched(fn: () => void): void;
|
|
54
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GoabInputNumber, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GoabInputNumber, "goab-input-number", never, { "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autoCapitalize": { "alias": "autoCapitalize"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "leadingIcon": { "alias": "leadingIcon"; "required": false; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "focused": { "alias": "focused"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "error": { "alias": "error"; "required": false; }; "width": { "alias": "width"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "mt": { "alias": "mt"; "required": false; }; "mr": { "alias": "mr"; "required": false; }; "mb": { "alias": "mb"; "required": false; }; "ml": { "alias": "ml"; "required": false; }; "trailingIconAriaLabel": { "alias": "trailingIconAriaLabel"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onTrailingIconClick": "onTrailingIconClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onKeyPress": "onKeyPress"; "onChange": "onChange"; }, never, ["*"], true, never>;
|
|
57
|
+
}
|