@abgov/angular-components 4.9.0-alpha.3 → 4.9.1-dev.1
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/index.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ declare abstract class GoabBaseComponent {
|
|
|
73
73
|
static ɵcmp: i0.ɵɵComponentDeclaration<GoabBaseComponent, "ng-component", never, { "mt": { "alias": "mt"; "required": false; }; "mb": { "alias": "mb"; "required": false; }; "ml": { "alias": "ml"; "required": false; }; "mr": { "alias": "mr"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, {}, never, never, true, never>;
|
|
74
74
|
}
|
|
75
75
|
declare abstract class GoabControlValueAccessor extends GoabBaseComponent implements ControlValueAccessor {
|
|
76
|
+
protected renderer: Renderer2;
|
|
76
77
|
id?: string;
|
|
77
78
|
disabled?: boolean;
|
|
78
79
|
error?: boolean;
|
|
@@ -92,6 +93,20 @@ declare abstract class GoabControlValueAccessor extends GoabBaseComponent implem
|
|
|
92
93
|
* it triggers the `fcTouched` callback (if defined) and sets the `touched` property to `true`.
|
|
93
94
|
*/
|
|
94
95
|
markAsTouched(): void;
|
|
96
|
+
/**
|
|
97
|
+
* Reference to the native GOA web component element.
|
|
98
|
+
* Child templates should declare `#goaComponentRef` on the `goa-*` element.
|
|
99
|
+
* The base class captures it here so children don't need their own ViewChild.
|
|
100
|
+
*/
|
|
101
|
+
protected goaComponentRef?: ElementRef;
|
|
102
|
+
constructor(renderer: Renderer2);
|
|
103
|
+
/**
|
|
104
|
+
* Convert an arbitrary value into a string for DOM attribute assignment.
|
|
105
|
+
* Child classes can override when they need special formatting.
|
|
106
|
+
* @param value The value to convert
|
|
107
|
+
* @returns string representation or empty string for nullish/empty
|
|
108
|
+
*/
|
|
109
|
+
protected convertValueToString(value: unknown): string;
|
|
95
110
|
/**
|
|
96
111
|
* Writes a new value to the form control.
|
|
97
112
|
* @param {unknown} value - The value to write.
|
|
@@ -273,13 +288,13 @@ declare class GoabCardImage implements OnInit {
|
|
|
273
288
|
declare class GoabCheckbox extends GoabControlValueAccessor implements OnInit {
|
|
274
289
|
private cdr;
|
|
275
290
|
isReady: boolean;
|
|
276
|
-
constructor(cdr: ChangeDetectorRef);
|
|
291
|
+
constructor(cdr: ChangeDetectorRef, renderer: Renderer2);
|
|
277
292
|
ngOnInit(): void;
|
|
278
293
|
name?: string;
|
|
279
294
|
checked?: boolean;
|
|
280
295
|
indeterminate?: boolean;
|
|
281
296
|
text?: string;
|
|
282
|
-
value?: string | number | boolean;
|
|
297
|
+
value?: string | number | boolean | null;
|
|
283
298
|
ariaLabel?: string;
|
|
284
299
|
description: string | TemplateRef<any>;
|
|
285
300
|
reveal?: TemplateRef<any>;
|
|
@@ -289,6 +304,7 @@ declare class GoabCheckbox extends GoabControlValueAccessor implements OnInit {
|
|
|
289
304
|
getDescriptionAsString(): string;
|
|
290
305
|
getDescriptionAsTemplate(): TemplateRef<any> | null;
|
|
291
306
|
_onChange(e: Event): void;
|
|
307
|
+
writeValue(value: string | number | boolean | null): void;
|
|
292
308
|
static ɵfac: i0.ɵɵFactoryDeclaration<GoabCheckbox, never>;
|
|
293
309
|
static ɵcmp: i0.ɵɵComponentDeclaration<GoabCheckbox, "goab-checkbox", never, { "name": { "alias": "name"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "text": { "alias": "text"; "required": false; }; "value": { "alias": "value"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "description": { "alias": "description"; "required": false; }; "reveal": { "alias": "reveal"; "required": false; }; "revealArialLabel": { "alias": "revealArialLabel"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; }, { "onChange": "onChange"; }, never, ["*"], true, never>;
|
|
294
310
|
static ngAcceptInputType_checked: unknown;
|
|
@@ -301,7 +317,7 @@ declare class GoabCheckboxList extends GoabControlValueAccessor implements OnIni
|
|
|
301
317
|
name: string;
|
|
302
318
|
maxWidth?: string;
|
|
303
319
|
value?: string[];
|
|
304
|
-
constructor(cdr: ChangeDetectorRef);
|
|
320
|
+
constructor(cdr: ChangeDetectorRef, renderer: Renderer2);
|
|
305
321
|
ngOnInit(): void;
|
|
306
322
|
onChange: EventEmitter<GoabCheckboxListOnChangeDetail>;
|
|
307
323
|
_onChange(e: Event): void;
|
|
@@ -388,7 +404,7 @@ declare class GoabDatePicker extends GoabControlValueAccessor implements OnInit
|
|
|
388
404
|
onChange: EventEmitter<GoabDatePickerOnChangeDetail>;
|
|
389
405
|
formatValue(val: Date | string | null | undefined): string;
|
|
390
406
|
_onChange(e: Event): void;
|
|
391
|
-
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
|
|
407
|
+
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, renderer: Renderer2);
|
|
392
408
|
ngOnInit(): void;
|
|
393
409
|
setDisabledState(isDisabled: boolean): void;
|
|
394
410
|
listenDisabledChange(isDisabled: boolean): void;
|
|
@@ -459,7 +475,7 @@ declare class GoabDropdown extends GoabControlValueAccessor implements OnInit {
|
|
|
459
475
|
relative?: boolean;
|
|
460
476
|
onChange: EventEmitter<GoabDropdownOnChangeDetail>;
|
|
461
477
|
isReady: boolean;
|
|
462
|
-
constructor(cdr: ChangeDetectorRef);
|
|
478
|
+
constructor(cdr: ChangeDetectorRef, renderer: Renderer2);
|
|
463
479
|
ngOnInit(): void;
|
|
464
480
|
_onChange(e: Event): void;
|
|
465
481
|
static ɵfac: i0.ɵɵFactoryDeclaration<GoabDropdown, never>;
|
|
@@ -842,7 +858,7 @@ declare class GoabInput extends GoabControlValueAccessor implements OnInit {
|
|
|
842
858
|
onChange: EventEmitter<GoabInputOnChangeDetail>;
|
|
843
859
|
isReady: boolean;
|
|
844
860
|
handleTrailingIconClick: boolean;
|
|
845
|
-
constructor(cdr: ChangeDetectorRef);
|
|
861
|
+
constructor(cdr: ChangeDetectorRef, renderer: Renderer2);
|
|
846
862
|
ngOnInit(): void;
|
|
847
863
|
_onTrailingIconClick(_: Event): void;
|
|
848
864
|
_onChange(e: Event): void;
|
|
@@ -1095,7 +1111,7 @@ declare class GoabRadioGroup extends GoabControlValueAccessor implements OnInit
|
|
|
1095
1111
|
name?: string;
|
|
1096
1112
|
orientation?: GoabRadioGroupOrientation;
|
|
1097
1113
|
ariaLabel?: string;
|
|
1098
|
-
constructor(cdr: ChangeDetectorRef);
|
|
1114
|
+
constructor(cdr: ChangeDetectorRef, renderer: Renderer2);
|
|
1099
1115
|
ngOnInit(): void;
|
|
1100
1116
|
onChange: EventEmitter<GoabRadioGroupOnChangeDetail>;
|
|
1101
1117
|
_onChange(e: Event): void;
|
|
@@ -1284,7 +1300,7 @@ declare class GoabTextArea extends GoabControlValueAccessor implements OnInit {
|
|
|
1284
1300
|
onKeyPress: EventEmitter<GoabTextAreaOnKeyPressDetail>;
|
|
1285
1301
|
onBlur: EventEmitter<GoabTextAreaOnBlurDetail>;
|
|
1286
1302
|
isReady: boolean;
|
|
1287
|
-
constructor(cdr: ChangeDetectorRef);
|
|
1303
|
+
constructor(cdr: ChangeDetectorRef, renderer: Renderer2);
|
|
1288
1304
|
ngOnInit(): void;
|
|
1289
1305
|
_onChange(e: Event): void;
|
|
1290
1306
|
_onKeyPress(e: Event): void;
|