@ongov/ontario-design-system-component-library-angular 4.2.0 → 4.3.0-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/dist/component-library/esm2020/lib/stencil-generated/components.mjs +17 -17
- package/dist/component-library/fesm2015/angular-component-library.mjs +16 -16
- package/dist/component-library/fesm2015/angular-component-library.mjs.map +1 -1
- package/dist/component-library/fesm2020/angular-component-library.mjs +16 -16
- package/dist/component-library/fesm2020/angular-component-library.mjs.map +1 -1
- package/dist/component-library/lib/stencil-generated/components.d.ts +29 -4
- package/package.json +4 -4
- package/projects/component-library/src/lib/stencil-generated/components.ts +28 -4
|
@@ -91,7 +91,7 @@ export declare class OntarioCheckboxes {
|
|
|
91
91
|
protected el: HTMLElement;
|
|
92
92
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
93
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<OntarioCheckboxes, never>;
|
|
94
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OntarioCheckboxes, "ontario-checkboxes", never, { "caption": "caption"; "customOnBlur": "customOnBlur"; "customOnChange": "customOnChange"; "customOnFocus": "customOnFocus"; "hintExpander": "hintExpander"; "hintText": "hintText"; "language": "language"; "name": "name"; "options": "options"; "required": "required"; }, {}, never, ["*"], false, never>;
|
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OntarioCheckboxes, "ontario-checkboxes", never, { "caption": "caption"; "customOnBlur": "customOnBlur"; "customOnChange": "customOnChange"; "customOnFocus": "customOnFocus"; "errorMessage": "errorMessage"; "hintExpander": "hintExpander"; "hintText": "hintText"; "language": "language"; "name": "name"; "options": "options"; "required": "required"; }, {}, never, ["*"], false, never>;
|
|
95
95
|
}
|
|
96
96
|
export declare interface OntarioCheckboxes extends Components.OntarioCheckboxes {
|
|
97
97
|
/**
|
|
@@ -106,6 +106,12 @@ export declare interface OntarioCheckboxes extends Components.OntarioCheckboxes
|
|
|
106
106
|
* Emitted when a keyboard input event occurs when a checkbox option has gained focus.
|
|
107
107
|
*/
|
|
108
108
|
checkboxOnFocus: EventEmitter<CustomEvent<IOntarioCheckboxesInputFocusBlurEvent>>;
|
|
109
|
+
/**
|
|
110
|
+
* Emitted when an error message is reported to the component.
|
|
111
|
+
*/
|
|
112
|
+
inputErrorOccurred: EventEmitter<CustomEvent<{
|
|
113
|
+
errorMessage: string;
|
|
114
|
+
}>>;
|
|
109
115
|
}
|
|
110
116
|
export declare class OntarioCriticalAlert {
|
|
111
117
|
protected z: NgZone;
|
|
@@ -159,7 +165,7 @@ export declare class OntarioDropdownList {
|
|
|
159
165
|
protected el: HTMLElement;
|
|
160
166
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
161
167
|
static ɵfac: i0.ɵɵFactoryDeclaration<OntarioDropdownList, never>;
|
|
162
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OntarioDropdownList, "ontario-dropdown-list", never, { "caption": "caption"; "customOnBlur": "customOnBlur"; "customOnChange": "customOnChange"; "customOnFocus": "customOnFocus"; "elementId": "elementId"; "hintExpander": "hintExpander"; "hintText": "hintText"; "isEmptyStartOption": "isEmptyStartOption"; "language": "language"; "name": "name"; "options": "options"; "required": "required"; }, {}, never, ["*"], false, never>;
|
|
168
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OntarioDropdownList, "ontario-dropdown-list", never, { "caption": "caption"; "customOnBlur": "customOnBlur"; "customOnChange": "customOnChange"; "customOnFocus": "customOnFocus"; "elementId": "elementId"; "errorMessage": "errorMessage"; "hintExpander": "hintExpander"; "hintText": "hintText"; "isEmptyStartOption": "isEmptyStartOption"; "language": "language"; "name": "name"; "options": "options"; "required": "required"; }, {}, never, ["*"], false, never>;
|
|
163
169
|
}
|
|
164
170
|
export declare interface OntarioDropdownList extends Components.OntarioDropdownList {
|
|
165
171
|
/**
|
|
@@ -174,6 +180,12 @@ export declare interface OntarioDropdownList extends Components.OntarioDropdownL
|
|
|
174
180
|
* Emitted when a keyboard input event occurs when a dropdown list has gained focus.
|
|
175
181
|
*/
|
|
176
182
|
dropdownOnFocus: EventEmitter<CustomEvent<IOntarioDropdownListInputFocusBlurEvent>>;
|
|
183
|
+
/**
|
|
184
|
+
* Emitted when an error message is reported to the component.
|
|
185
|
+
*/
|
|
186
|
+
inputErrorOccurred: EventEmitter<CustomEvent<{
|
|
187
|
+
errorMessage: string;
|
|
188
|
+
}>>;
|
|
177
189
|
}
|
|
178
190
|
export declare class OntarioFieldset {
|
|
179
191
|
protected z: NgZone;
|
|
@@ -1304,7 +1316,7 @@ export declare class OntarioRadioButtons {
|
|
|
1304
1316
|
protected el: HTMLElement;
|
|
1305
1317
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
1306
1318
|
static ɵfac: i0.ɵɵFactoryDeclaration<OntarioRadioButtons, never>;
|
|
1307
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OntarioRadioButtons, "ontario-radio-buttons", never, { "caption": "caption"; "customOnBlur": "customOnBlur"; "customOnChange": "customOnChange"; "customOnFocus": "customOnFocus"; "hintExpander": "hintExpander"; "hintText": "hintText"; "language": "language"; "name": "name"; "options": "options"; "required": "required"; }, {}, never, ["*"], false, never>;
|
|
1319
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OntarioRadioButtons, "ontario-radio-buttons", never, { "caption": "caption"; "customOnBlur": "customOnBlur"; "customOnChange": "customOnChange"; "customOnFocus": "customOnFocus"; "errorMessage": "errorMessage"; "hintExpander": "hintExpander"; "hintText": "hintText"; "language": "language"; "name": "name"; "options": "options"; "required": "required"; }, {}, never, ["*"], false, never>;
|
|
1308
1320
|
}
|
|
1309
1321
|
export declare interface OntarioRadioButtons extends Components.OntarioRadioButtons {
|
|
1310
1322
|
/**
|
|
@@ -1319,6 +1331,12 @@ export declare interface OntarioRadioButtons extends Components.OntarioRadioButt
|
|
|
1319
1331
|
* Emitted when a keyboard input event occurs when a radio option has gained focus.
|
|
1320
1332
|
*/
|
|
1321
1333
|
radioOnFocus: EventEmitter<CustomEvent<IOntarioRadioButtonsInputFocusBlurEvent>>;
|
|
1334
|
+
/**
|
|
1335
|
+
* Emitted when an error message is reported to the component.
|
|
1336
|
+
*/
|
|
1337
|
+
inputErrorOccurred: EventEmitter<CustomEvent<{
|
|
1338
|
+
errorMessage: string;
|
|
1339
|
+
}>>;
|
|
1322
1340
|
}
|
|
1323
1341
|
export declare class OntarioStepIndicator {
|
|
1324
1342
|
protected z: NgZone;
|
|
@@ -1343,7 +1361,7 @@ export declare class OntarioTextarea {
|
|
|
1343
1361
|
protected el: HTMLElement;
|
|
1344
1362
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
1345
1363
|
static ɵfac: i0.ɵɵFactoryDeclaration<OntarioTextarea, never>;
|
|
1346
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OntarioTextarea, "ontario-textarea", never, { "caption": "caption"; "customOnBlur": "customOnBlur"; "customOnChange": "customOnChange"; "customOnFocus": "customOnFocus"; "customOnInput": "customOnInput"; "elementId": "elementId"; "hintExpander": "hintExpander"; "hintText": "hintText"; "language": "language"; "name": "name"; "required": "required"; "value": "value"; }, {}, never, ["*"], false, never>;
|
|
1364
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OntarioTextarea, "ontario-textarea", never, { "caption": "caption"; "customOnBlur": "customOnBlur"; "customOnChange": "customOnChange"; "customOnFocus": "customOnFocus"; "customOnInput": "customOnInput"; "elementId": "elementId"; "errorMessage": "errorMessage"; "hintExpander": "hintExpander"; "hintText": "hintText"; "language": "language"; "name": "name"; "required": "required"; "value": "value"; }, {}, never, ["*"], false, never>;
|
|
1347
1365
|
}
|
|
1348
1366
|
export declare interface OntarioTextarea extends Components.OntarioTextarea {
|
|
1349
1367
|
/**
|
|
@@ -1362,4 +1380,11 @@ export declare interface OntarioTextarea extends Components.OntarioTextarea {
|
|
|
1362
1380
|
* Emitted when a keyboard input event occurs when an input has gained focus.
|
|
1363
1381
|
*/
|
|
1364
1382
|
inputOnFocus: EventEmitter<CustomEvent<IOntarioTextareaInputFocusBlurEvent>>;
|
|
1383
|
+
/**
|
|
1384
|
+
* Emitted when an error message is reported to the component.
|
|
1385
|
+
*/
|
|
1386
|
+
inputErrorOccurred: EventEmitter<CustomEvent<{
|
|
1387
|
+
inputId: string;
|
|
1388
|
+
errorMessage: string;
|
|
1389
|
+
}>>;
|
|
1365
1390
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ongov/ontario-design-system-component-library-angular",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0-alpha.2",
|
|
4
4
|
"description": "Angular specific wrapper for ontario-design-system-component-library",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"@angular/platform-browser": "^15.2.9",
|
|
43
43
|
"@angular/platform-browser-dynamic": "^15.2.9",
|
|
44
44
|
"@angular/router": "^15.2.9",
|
|
45
|
-
"@ongov/ontario-design-system-component-library": "4.
|
|
46
|
-
"@ongov/ontario-design-system-global-styles": "4.
|
|
45
|
+
"@ongov/ontario-design-system-component-library": "4.3.0-alpha.2",
|
|
46
|
+
"@ongov/ontario-design-system-global-styles": "4.3.0-alpha.1",
|
|
47
47
|
"copyfiles": "^2.4.1",
|
|
48
48
|
"rxjs": "~7.8.0",
|
|
49
49
|
"tslib": "^2.3.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"ng-packagr": "^15.2.2",
|
|
62
62
|
"typescript": "~4.9.4"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "5b915851b8223b9bfa05b70e4be5035cafb1b911"
|
|
65
65
|
}
|
|
@@ -192,6 +192,7 @@ export declare interface OntarioCardCollection extends Components.OntarioCardCol
|
|
|
192
192
|
'customOnBlur',
|
|
193
193
|
'customOnChange',
|
|
194
194
|
'customOnFocus',
|
|
195
|
+
'errorMessage',
|
|
195
196
|
'hintExpander',
|
|
196
197
|
'hintText',
|
|
197
198
|
'language',
|
|
@@ -210,6 +211,7 @@ export declare interface OntarioCardCollection extends Components.OntarioCardCol
|
|
|
210
211
|
'customOnBlur',
|
|
211
212
|
'customOnChange',
|
|
212
213
|
'customOnFocus',
|
|
214
|
+
'errorMessage',
|
|
213
215
|
'hintExpander',
|
|
214
216
|
'hintText',
|
|
215
217
|
'language',
|
|
@@ -223,7 +225,7 @@ export class OntarioCheckboxes {
|
|
|
223
225
|
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
224
226
|
c.detach();
|
|
225
227
|
this.el = r.nativeElement;
|
|
226
|
-
proxyOutputs(this, this.el, ['checkboxOnChange', 'checkboxOnBlur', 'checkboxOnFocus']);
|
|
228
|
+
proxyOutputs(this, this.el, ['checkboxOnChange', 'checkboxOnBlur', 'checkboxOnFocus', 'inputErrorOccurred']);
|
|
227
229
|
}
|
|
228
230
|
}
|
|
229
231
|
|
|
@@ -243,6 +245,10 @@ export declare interface OntarioCheckboxes extends Components.OntarioCheckboxes
|
|
|
243
245
|
* Emitted when a keyboard input event occurs when a checkbox option has gained focus.
|
|
244
246
|
*/
|
|
245
247
|
checkboxOnFocus: EventEmitter<CustomEvent<IOntarioCheckboxesInputFocusBlurEvent>>;
|
|
248
|
+
/**
|
|
249
|
+
* Emitted when an error message is reported to the component.
|
|
250
|
+
*/
|
|
251
|
+
inputErrorOccurred: EventEmitter<CustomEvent<{ errorMessage: string }>>;
|
|
246
252
|
}
|
|
247
253
|
|
|
248
254
|
@ProxyCmp({
|
|
@@ -336,6 +342,7 @@ export declare interface OntarioDateInput extends Components.OntarioDateInput {
|
|
|
336
342
|
'customOnChange',
|
|
337
343
|
'customOnFocus',
|
|
338
344
|
'elementId',
|
|
345
|
+
'errorMessage',
|
|
339
346
|
'hintExpander',
|
|
340
347
|
'hintText',
|
|
341
348
|
'isEmptyStartOption',
|
|
@@ -356,6 +363,7 @@ export declare interface OntarioDateInput extends Components.OntarioDateInput {
|
|
|
356
363
|
'customOnChange',
|
|
357
364
|
'customOnFocus',
|
|
358
365
|
'elementId',
|
|
366
|
+
'errorMessage',
|
|
359
367
|
'hintExpander',
|
|
360
368
|
'hintText',
|
|
361
369
|
'isEmptyStartOption',
|
|
@@ -370,7 +378,7 @@ export class OntarioDropdownList {
|
|
|
370
378
|
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
371
379
|
c.detach();
|
|
372
380
|
this.el = r.nativeElement;
|
|
373
|
-
proxyOutputs(this, this.el, ['dropdownOnChange', 'dropdownOnBlur', 'dropdownOnFocus']);
|
|
381
|
+
proxyOutputs(this, this.el, ['dropdownOnChange', 'dropdownOnBlur', 'dropdownOnFocus', 'inputErrorOccurred']);
|
|
374
382
|
}
|
|
375
383
|
}
|
|
376
384
|
|
|
@@ -390,6 +398,10 @@ export declare interface OntarioDropdownList extends Components.OntarioDropdownL
|
|
|
390
398
|
* Emitted when a keyboard input event occurs when a dropdown list has gained focus.
|
|
391
399
|
*/
|
|
392
400
|
dropdownOnFocus: EventEmitter<CustomEvent<IOntarioDropdownListInputFocusBlurEvent>>;
|
|
401
|
+
/**
|
|
402
|
+
* Emitted when an error message is reported to the component.
|
|
403
|
+
*/
|
|
404
|
+
inputErrorOccurred: EventEmitter<CustomEvent<{ errorMessage: string }>>;
|
|
393
405
|
}
|
|
394
406
|
|
|
395
407
|
@ProxyCmp({
|
|
@@ -2937,6 +2949,7 @@ export declare interface OntarioPageAlert extends Components.OntarioPageAlert {}
|
|
|
2937
2949
|
'customOnBlur',
|
|
2938
2950
|
'customOnChange',
|
|
2939
2951
|
'customOnFocus',
|
|
2952
|
+
'errorMessage',
|
|
2940
2953
|
'hintExpander',
|
|
2941
2954
|
'hintText',
|
|
2942
2955
|
'language',
|
|
@@ -2955,6 +2968,7 @@ export declare interface OntarioPageAlert extends Components.OntarioPageAlert {}
|
|
|
2955
2968
|
'customOnBlur',
|
|
2956
2969
|
'customOnChange',
|
|
2957
2970
|
'customOnFocus',
|
|
2971
|
+
'errorMessage',
|
|
2958
2972
|
'hintExpander',
|
|
2959
2973
|
'hintText',
|
|
2960
2974
|
'language',
|
|
@@ -2968,7 +2982,7 @@ export class OntarioRadioButtons {
|
|
|
2968
2982
|
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
2969
2983
|
c.detach();
|
|
2970
2984
|
this.el = r.nativeElement;
|
|
2971
|
-
proxyOutputs(this, this.el, ['radioOnChange', 'radioOnBlur', 'radioOnFocus']);
|
|
2985
|
+
proxyOutputs(this, this.el, ['radioOnChange', 'radioOnBlur', 'radioOnFocus', 'inputErrorOccurred']);
|
|
2972
2986
|
}
|
|
2973
2987
|
}
|
|
2974
2988
|
|
|
@@ -2988,6 +3002,10 @@ export declare interface OntarioRadioButtons extends Components.OntarioRadioButt
|
|
|
2988
3002
|
* Emitted when a keyboard input event occurs when a radio option has gained focus.
|
|
2989
3003
|
*/
|
|
2990
3004
|
radioOnFocus: EventEmitter<CustomEvent<IOntarioRadioButtonsInputFocusBlurEvent>>;
|
|
3005
|
+
/**
|
|
3006
|
+
* Emitted when an error message is reported to the component.
|
|
3007
|
+
*/
|
|
3008
|
+
inputErrorOccurred: EventEmitter<CustomEvent<{ errorMessage: string }>>;
|
|
2991
3009
|
}
|
|
2992
3010
|
|
|
2993
3011
|
@ProxyCmp({
|
|
@@ -3054,6 +3072,7 @@ export declare interface OntarioTable extends Components.OntarioTable {}
|
|
|
3054
3072
|
'customOnFocus',
|
|
3055
3073
|
'customOnInput',
|
|
3056
3074
|
'elementId',
|
|
3075
|
+
'errorMessage',
|
|
3057
3076
|
'hintExpander',
|
|
3058
3077
|
'hintText',
|
|
3059
3078
|
'language',
|
|
@@ -3074,6 +3093,7 @@ export declare interface OntarioTable extends Components.OntarioTable {}
|
|
|
3074
3093
|
'customOnFocus',
|
|
3075
3094
|
'customOnInput',
|
|
3076
3095
|
'elementId',
|
|
3096
|
+
'errorMessage',
|
|
3077
3097
|
'hintExpander',
|
|
3078
3098
|
'hintText',
|
|
3079
3099
|
'language',
|
|
@@ -3087,7 +3107,7 @@ export class OntarioTextarea {
|
|
|
3087
3107
|
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
3088
3108
|
c.detach();
|
|
3089
3109
|
this.el = r.nativeElement;
|
|
3090
|
-
proxyOutputs(this, this.el, ['inputOnInput', 'inputOnChange', 'inputOnBlur', 'inputOnFocus']);
|
|
3110
|
+
proxyOutputs(this, this.el, ['inputOnInput', 'inputOnChange', 'inputOnBlur', 'inputOnFocus', 'inputErrorOccurred']);
|
|
3091
3111
|
}
|
|
3092
3112
|
}
|
|
3093
3113
|
|
|
@@ -3112,4 +3132,8 @@ export declare interface OntarioTextarea extends Components.OntarioTextarea {
|
|
|
3112
3132
|
* Emitted when a keyboard input event occurs when an input has gained focus.
|
|
3113
3133
|
*/
|
|
3114
3134
|
inputOnFocus: EventEmitter<CustomEvent<IOntarioTextareaInputFocusBlurEvent>>;
|
|
3135
|
+
/**
|
|
3136
|
+
* Emitted when an error message is reported to the component.
|
|
3137
|
+
*/
|
|
3138
|
+
inputErrorOccurred: EventEmitter<CustomEvent<{ inputId: string; errorMessage: string }>>;
|
|
3115
3139
|
}
|