@abgov/angular-components 4.7.0 → 4.7.1-alpha.2
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/input/input.mjs +70 -4
- package/esm2022/lib/components/input-number/input-number.mjs +70 -4
- package/esm2022/lib/components/tooltip/tooltip.mjs +29 -5
- package/fesm2022/abgov-angular-components.mjs +160 -7
- package/fesm2022/abgov-angular-components.mjs.map +1 -1
- package/lib/components/input/input.d.ts +8 -2
- package/lib/components/input-number/input-number.d.ts +8 -2
- package/lib/components/tooltip/tooltip.d.ts +4 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GoabIconType, GoabInputAutoCapitalize, GoabInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputType } from "@abgov/ui-components-common";
|
|
2
|
-
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
import { EventEmitter, OnInit, TemplateRef } from "@angular/core";
|
|
3
3
|
import { GoabControlValueAccessor } from "../base.component";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export interface IgnoreMe {
|
|
@@ -28,6 +28,8 @@ export declare class GoabInput extends GoabControlValueAccessor implements OnIni
|
|
|
28
28
|
ariaLabelledBy?: string;
|
|
29
29
|
trailingIconAriaLabel?: string;
|
|
30
30
|
textAlign?: "left" | "right";
|
|
31
|
+
leadingContent: string | TemplateRef<any>;
|
|
32
|
+
trailingContent: string | TemplateRef<any>;
|
|
31
33
|
onTrailingIconClick: EventEmitter<any>;
|
|
32
34
|
onFocus: EventEmitter<GoabInputOnFocusDetail>;
|
|
33
35
|
onBlur: EventEmitter<GoabInputOnBlurDetail>;
|
|
@@ -40,8 +42,12 @@ export declare class GoabInput extends GoabControlValueAccessor implements OnIni
|
|
|
40
42
|
_onKeyPress(e: Event): void;
|
|
41
43
|
_onFocus(e: Event): void;
|
|
42
44
|
_onBlur(e: Event): void;
|
|
45
|
+
getLeadingContentAsString(): string;
|
|
46
|
+
getLeadingContentAsTemplate(): TemplateRef<any> | null;
|
|
47
|
+
getTrailingContentAsString(): string;
|
|
48
|
+
getTrailingContentAsTemplate(): TemplateRef<any> | null;
|
|
43
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<GoabInput, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GoabInput, "goab-input", never, { "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "autoCapitalize": { "alias": "autoCapitalize"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "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; }; "width": { "alias": "width"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "suffix": { "alias": "suffix"; "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; }; "trailingIconAriaLabel": { "alias": "trailingIconAriaLabel"; "required": false; }; "textAlign": { "alias": "textAlign"; "required": false; }; }, { "onTrailingIconClick": "onTrailingIconClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onKeyPress": "onKeyPress"; "onChange": "onChange"; }, never, ["*"], true, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GoabInput, "goab-input", never, { "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "autoCapitalize": { "alias": "autoCapitalize"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "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; }; "width": { "alias": "width"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "suffix": { "alias": "suffix"; "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; }; "trailingIconAriaLabel": { "alias": "trailingIconAriaLabel"; "required": false; }; "textAlign": { "alias": "textAlign"; "required": false; }; "leadingContent": { "alias": "leadingContent"; "required": false; }; "trailingContent": { "alias": "trailingContent"; "required": false; }; }, { "onTrailingIconClick": "onTrailingIconClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onKeyPress": "onKeyPress"; "onChange": "onChange"; }, never, ["*"], true, never>;
|
|
45
51
|
static ngAcceptInputType_debounce: unknown;
|
|
46
52
|
static ngAcceptInputType_focused: unknown;
|
|
47
53
|
static ngAcceptInputType_readonly: unknown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GoabIconType, GoabInputAutoCapitalize, GoabInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputType, Spacing } from "@abgov/ui-components-common";
|
|
2
|
-
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
import { EventEmitter, OnInit, TemplateRef } from "@angular/core";
|
|
3
3
|
import { ControlValueAccessor } from "@angular/forms";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class GoabInputNumber implements ControlValueAccessor, OnInit {
|
|
@@ -33,6 +33,8 @@ export declare class GoabInputNumber implements ControlValueAccessor, OnInit {
|
|
|
33
33
|
trailingIconAriaLabel?: string;
|
|
34
34
|
textAlign?: "left" | "right";
|
|
35
35
|
value: number | null;
|
|
36
|
+
leadingContent: string | TemplateRef<any>;
|
|
37
|
+
trailingContent: string | TemplateRef<any>;
|
|
36
38
|
onTrailingIconClick: EventEmitter<void>;
|
|
37
39
|
onFocus: EventEmitter<GoabInputOnFocusDetail>;
|
|
38
40
|
onBlur: EventEmitter<GoabInputOnBlurDetail>;
|
|
@@ -53,8 +55,12 @@ export declare class GoabInputNumber implements ControlValueAccessor, OnInit {
|
|
|
53
55
|
registerOnChange(fn: (value: number | null) => void): void;
|
|
54
56
|
registerOnTouched(fn: () => void): void;
|
|
55
57
|
setDisabledState?(isDisabled: boolean): void;
|
|
58
|
+
getLeadingContentAsString(): string;
|
|
59
|
+
getLeadingContentAsTemplate(): TemplateRef<any> | null;
|
|
60
|
+
getTrailingContentAsString(): string;
|
|
61
|
+
getTrailingContentAsTemplate(): TemplateRef<any> | null;
|
|
56
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<GoabInputNumber, never>;
|
|
57
|
-
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; }; "textAlign": { "alias": "textAlign"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onTrailingIconClick": "onTrailingIconClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onKeyPress": "onKeyPress"; "onChange": "onChange"; }, never, ["*"], true, never>;
|
|
63
|
+
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; }; "textAlign": { "alias": "textAlign"; "required": false; }; "value": { "alias": "value"; "required": false; }; "leadingContent": { "alias": "leadingContent"; "required": false; }; "trailingContent": { "alias": "trailingContent"; "required": false; }; }, { "onTrailingIconClick": "onTrailingIconClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onKeyPress": "onKeyPress"; "onChange": "onChange"; }, never, ["*"], true, never>;
|
|
58
64
|
static ngAcceptInputType_debounce: unknown;
|
|
59
65
|
static ngAcceptInputType_disabled: unknown;
|
|
60
66
|
static ngAcceptInputType_focused: unknown;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { GoabTooltipHorizontalAlignment, GoabTooltipPosition } from "@abgov/ui-components-common";
|
|
2
|
+
import { TemplateRef } from "@angular/core";
|
|
2
3
|
import { GoabBaseComponent } from "../base.component";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class GoabTooltip extends GoabBaseComponent {
|
|
5
6
|
position?: GoabTooltipPosition;
|
|
6
|
-
content?: string
|
|
7
|
+
content?: string | TemplateRef<unknown>;
|
|
7
8
|
hAlign?: GoabTooltipHorizontalAlignment;
|
|
9
|
+
getContentAsString(): string;
|
|
10
|
+
getContentAsTemplate(): TemplateRef<unknown> | null;
|
|
8
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<GoabTooltip, never>;
|
|
9
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<GoabTooltip, "goab-tooltip", never, { "position": { "alias": "position"; "required": false; }; "content": { "alias": "content"; "required": false; }; "hAlign": { "alias": "hAlign"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
10
13
|
}
|