@abgov/angular-components 4.9.0 → 4.9.1-dev.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/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;
@@ -385,16 +401,17 @@ declare class GoabDatePicker extends GoabControlValueAccessor implements OnInit
385
401
  * @deprecated This property has no effect and will be removed in a future version
386
402
  */
387
403
  relative?: boolean;
404
+ width?: string;
388
405
  onChange: EventEmitter<GoabDatePickerOnChangeDetail>;
389
406
  formatValue(val: Date | string | null | undefined): string;
390
407
  _onChange(e: Event): void;
391
- constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
408
+ constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, renderer: Renderer2);
392
409
  ngOnInit(): void;
393
410
  setDisabledState(isDisabled: boolean): void;
394
411
  listenDisabledChange(isDisabled: boolean): void;
395
412
  writeValue(value: Date | null): void;
396
413
  static ɵfac: i0.ɵɵFactoryDeclaration<GoabDatePicker, never>;
397
- static ɵcmp: i0.ɵɵComponentDeclaration<GoabDatePicker, "goab-date-picker", never, { "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "type": { "alias": "type"; "required": false; }; "relative": { "alias": "relative"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
414
+ static ɵcmp: i0.ɵɵComponentDeclaration<GoabDatePicker, "goab-date-picker", never, { "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "type": { "alias": "type"; "required": false; }; "relative": { "alias": "relative"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
398
415
  }
399
416
 
400
417
  declare class GoabDetails extends GoabBaseComponent implements OnInit {
@@ -459,7 +476,7 @@ declare class GoabDropdown extends GoabControlValueAccessor implements OnInit {
459
476
  relative?: boolean;
460
477
  onChange: EventEmitter<GoabDropdownOnChangeDetail>;
461
478
  isReady: boolean;
462
- constructor(cdr: ChangeDetectorRef);
479
+ constructor(cdr: ChangeDetectorRef, renderer: Renderer2);
463
480
  ngOnInit(): void;
464
481
  _onChange(e: Event): void;
465
482
  static ɵfac: i0.ɵɵFactoryDeclaration<GoabDropdown, never>;
@@ -842,7 +859,7 @@ declare class GoabInput extends GoabControlValueAccessor implements OnInit {
842
859
  onChange: EventEmitter<GoabInputOnChangeDetail>;
843
860
  isReady: boolean;
844
861
  handleTrailingIconClick: boolean;
845
- constructor(cdr: ChangeDetectorRef);
862
+ constructor(cdr: ChangeDetectorRef, renderer: Renderer2);
846
863
  ngOnInit(): void;
847
864
  _onTrailingIconClick(_: Event): void;
848
865
  _onChange(e: Event): void;
@@ -1095,7 +1112,7 @@ declare class GoabRadioGroup extends GoabControlValueAccessor implements OnInit
1095
1112
  name?: string;
1096
1113
  orientation?: GoabRadioGroupOrientation;
1097
1114
  ariaLabel?: string;
1098
- constructor(cdr: ChangeDetectorRef);
1115
+ constructor(cdr: ChangeDetectorRef, renderer: Renderer2);
1099
1116
  ngOnInit(): void;
1100
1117
  onChange: EventEmitter<GoabRadioGroupOnChangeDetail>;
1101
1118
  _onChange(e: Event): void;
@@ -1284,7 +1301,7 @@ declare class GoabTextArea extends GoabControlValueAccessor implements OnInit {
1284
1301
  onKeyPress: EventEmitter<GoabTextAreaOnKeyPressDetail>;
1285
1302
  onBlur: EventEmitter<GoabTextAreaOnBlurDetail>;
1286
1303
  isReady: boolean;
1287
- constructor(cdr: ChangeDetectorRef);
1304
+ constructor(cdr: ChangeDetectorRef, renderer: Renderer2);
1288
1305
  ngOnInit(): void;
1289
1306
  _onChange(e: Event): void;
1290
1307
  _onKeyPress(e: Event): void;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/GovAlta/ui-components/issues"
6
6
  },
7
7
  "license": "Apache-2.0",
8
- "version": "4.9.0",
8
+ "version": "4.9.1-dev.2",
9
9
  "keywords": [
10
10
  "Goab",
11
11
  "ui-components",