@skyux/forms 5.5.0-beta.0 → 5.6.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.
Files changed (62) hide show
  1. package/bundles/skyux-forms.umd.js +400 -400
  2. package/documentation.json +235 -237
  3. package/esm2015/lib/modules/character-counter/character-counter-indicator.component.js.map +1 -1
  4. package/esm2015/lib/modules/character-counter/character-counter.directive.js.map +1 -1
  5. package/esm2015/lib/modules/character-counter/character-counter.module.js +2 -2
  6. package/esm2015/lib/modules/character-counter/character-counter.module.js.map +1 -1
  7. package/esm2015/lib/modules/checkbox/checkbox-required-validator.directive.js.map +1 -1
  8. package/esm2015/lib/modules/checkbox/checkbox.component.js +2 -2
  9. package/esm2015/lib/modules/checkbox/checkbox.component.js.map +1 -1
  10. package/esm2015/lib/modules/checkbox/checkbox.module.js +1 -1
  11. package/esm2015/lib/modules/checkbox/checkbox.module.js.map +1 -1
  12. package/esm2015/lib/modules/file-attachment/file-attachment-label.component.js +1 -1
  13. package/esm2015/lib/modules/file-attachment/file-attachment-label.component.js.map +1 -1
  14. package/esm2015/lib/modules/file-attachment/file-attachment.component.js +4 -4
  15. package/esm2015/lib/modules/file-attachment/file-attachment.component.js.map +1 -1
  16. package/esm2015/lib/modules/file-attachment/file-attachment.service.js +6 -6
  17. package/esm2015/lib/modules/file-attachment/file-attachment.service.js.map +1 -1
  18. package/esm2015/lib/modules/file-attachment/file-attachments.module.js +3 -3
  19. package/esm2015/lib/modules/file-attachment/file-attachments.module.js.map +1 -1
  20. package/esm2015/lib/modules/file-attachment/file-drop.component.js +7 -8
  21. package/esm2015/lib/modules/file-attachment/file-drop.component.js.map +1 -1
  22. package/esm2015/lib/modules/file-attachment/file-item.component.js +5 -3
  23. package/esm2015/lib/modules/file-attachment/file-item.component.js.map +1 -1
  24. package/esm2015/lib/modules/file-attachment/file-item.service.js +5 -5
  25. package/esm2015/lib/modules/file-attachment/file-item.service.js.map +1 -1
  26. package/esm2015/lib/modules/file-attachment/file-size.pipe.js +5 -6
  27. package/esm2015/lib/modules/file-attachment/file-size.pipe.js.map +1 -1
  28. package/esm2015/lib/modules/input-box/input-box-host.service.js.map +1 -1
  29. package/esm2015/lib/modules/input-box/input-box.component.js.map +1 -1
  30. package/esm2015/lib/modules/input-box/input-box.module.js +1 -1
  31. package/esm2015/lib/modules/input-box/input-box.module.js.map +1 -1
  32. package/esm2015/lib/modules/radio/radio-group.component.js +1 -1
  33. package/esm2015/lib/modules/radio/radio-group.component.js.map +1 -1
  34. package/esm2015/lib/modules/radio/radio.component.js +1 -1
  35. package/esm2015/lib/modules/radio/radio.component.js.map +1 -1
  36. package/esm2015/lib/modules/radio/radio.module.js +2 -2
  37. package/esm2015/lib/modules/radio/radio.module.js.map +1 -1
  38. package/esm2015/lib/modules/selection-box/selection-box-adapter.service.js.map +1 -1
  39. package/esm2015/lib/modules/selection-box/selection-box-grid.component.js +2 -2
  40. package/esm2015/lib/modules/selection-box/selection-box-grid.component.js.map +1 -1
  41. package/esm2015/lib/modules/selection-box/selection-box.component.js.map +1 -1
  42. package/esm2015/lib/modules/selection-box/selection-box.module.js +1 -1
  43. package/esm2015/lib/modules/selection-box/selection-box.module.js.map +1 -1
  44. package/esm2015/lib/modules/shared/sky-forms-resources.module.js +1 -1
  45. package/esm2015/lib/modules/shared/sky-forms-resources.module.js.map +1 -1
  46. package/esm2015/lib/modules/toggle-switch/toggle-switch.component.js +1 -1
  47. package/esm2015/lib/modules/toggle-switch/toggle-switch.component.js.map +1 -1
  48. package/esm2015/lib/modules/toggle-switch/toggle-switch.module.js +2 -2
  49. package/esm2015/lib/modules/toggle-switch/toggle-switch.module.js.map +1 -1
  50. package/esm2015/testing/checkbox-fixture.js.map +1 -1
  51. package/fesm2015/skyux-forms-testing.js.map +1 -1
  52. package/fesm2015/skyux-forms.js +117 -117
  53. package/fesm2015/skyux-forms.js.map +1 -1
  54. package/lib/modules/checkbox/checkbox.component.d.ts +2 -2
  55. package/lib/modules/file-attachment/file-attachment.component.d.ts +3 -3
  56. package/lib/modules/file-attachment/file-drop.component.d.ts +2 -2
  57. package/lib/modules/file-attachment/file-item.component.d.ts +2 -2
  58. package/lib/modules/file-attachment/file-size.pipe.d.ts +1 -1
  59. package/lib/modules/input-box/input-box-host.service.d.ts +1 -1
  60. package/lib/modules/radio/radio-group.component.d.ts +1 -1
  61. package/lib/modules/selection-box/selection-box-grid.component.d.ts +1 -1
  62. package/package.json +15 -12
@@ -1,9 +1,9 @@
1
1
  import * as i1 from '@angular/common';
2
2
  import { CommonModule, DecimalPipe } from '@angular/common';
3
+ import * as i0 from '@angular/core';
4
+ import { NgModule, Component, ChangeDetectionStrategy, Directive, Input, forwardRef, EventEmitter, Self, Optional, Output, Injectable, ViewChild, ContentChildren, Pipe, ViewEncapsulation, ContentChild, HostListener, ElementRef } from '@angular/core';
3
5
  import * as i4 from '@angular/forms';
4
6
  import { NG_VALIDATORS, FormsModule, ReactiveFormsModule, CheckboxRequiredValidator, FormControlDirective, FormControlName, NgModel, NG_VALUE_ACCESSOR } from '@angular/forms';
5
- import * as i0 from '@angular/core';
6
- import { NgModule, Component, ChangeDetectionStrategy, Directive, Input, EventEmitter, Self, Optional, Output, forwardRef, Injectable, ViewChild, ContentChildren, Pipe, ViewEncapsulation, ContentChild, HostListener, ElementRef } from '@angular/core';
7
7
  import * as i2 from '@skyux/i18n';
8
8
  import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
9
9
  import * as i2$1 from '@skyux/indicators';
@@ -257,6 +257,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
257
257
  class SkyCheckboxChange {
258
258
  }
259
259
 
260
+ /**
261
+ * Specifies a label for the checkbox.
262
+ */
263
+ class SkyCheckboxLabelComponent {
264
+ }
265
+ SkyCheckboxLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyCheckboxLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
266
+ SkyCheckboxLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyCheckboxLabelComponent, selector: "sky-checkbox-label", ngImport: i0, template: "<span class=\"sky-switch-label\">\n <ng-content></ng-content>\n</span>\n" });
267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyCheckboxLabelComponent, decorators: [{
268
+ type: Component,
269
+ args: [{
270
+ selector: 'sky-checkbox-label',
271
+ templateUrl: './checkbox-label.component.html',
272
+ }]
273
+ }] });
274
+
275
+ // tslint:disable:no-forward-ref
276
+ const SKY_CHECKBOX_REQUIRED_VALIDATOR = {
277
+ provide: NG_VALIDATORS,
278
+ useExisting: forwardRef(() => SkyCheckboxRequiredValidatorDirective),
279
+ multi: true,
280
+ };
281
+ // tslint:enable
282
+ /**
283
+ * Validator support for the `required` input on `sky-checkbox`.
284
+ * Angular's `CheckboxRequiredValidator` only works with `input type=checkbox`. This directive
285
+ * extends the angular validator to work with `sky-checkbox` tags.
286
+ * This is based on Angular Material's similar implementation:
287
+ * https://github.com/angular/components/blob/a415b52ead2ec202ba37edb7d7866b29dd790394/src/material/checkbox/checkbox-required-validator.ts
288
+ * @internal
289
+ */
290
+ class SkyCheckboxRequiredValidatorDirective extends CheckboxRequiredValidator {
291
+ }
292
+ SkyCheckboxRequiredValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyCheckboxRequiredValidatorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
293
+ SkyCheckboxRequiredValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SkyCheckboxRequiredValidatorDirective, selector: "sky-checkbox[required][formControlName],\n sky-checkbox[required][formControl], sky-checkbox[required][ngModel]", providers: [SKY_CHECKBOX_REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });
294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyCheckboxRequiredValidatorDirective, decorators: [{
295
+ type: Directive,
296
+ args: [{
297
+ // eslint-disable-next-line @angular-eslint/directive-selector
298
+ selector: `sky-checkbox[required][formControlName],
299
+ sky-checkbox[required][formControl], sky-checkbox[required][ngModel]`,
300
+ providers: [SKY_CHECKBOX_REQUIRED_VALIDATOR],
301
+ }]
302
+ }] });
303
+
260
304
  // Need to add the following to classes which contain static methods.
261
305
  // See: https://github.com/ng-packagr/ng-packagr/issues/641
262
306
  // @dynamic
@@ -389,7 +433,7 @@ class SkyCheckboxComponent {
389
433
  /**
390
434
  * Indicates whether the input is required for form validation.
391
435
  * When you set this property to `true`, the component adds `aria-required` and `required`
392
- * attributes to the input element so that forms display an invalid state until the input element
436
+ * attributes to the input element so that forms display an invalid state until the input element
393
437
  * is complete.
394
438
  * @default false
395
439
  */
@@ -460,7 +504,7 @@ class SkyCheckboxComponent {
460
504
  this.onTouched();
461
505
  }
462
506
  _emitChangeEvent() {
463
- let event = new SkyCheckboxChange();
507
+ const event = new SkyCheckboxChange();
464
508
  event.source = this;
465
509
  event.checked = this._checked;
466
510
  this._controlValueAccessorChangeFn(this._checked);
@@ -514,50 +558,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
514
558
  type: Output
515
559
  }] } });
516
560
 
517
- /**
518
- * Specifies a label for the checkbox.
519
- */
520
- class SkyCheckboxLabelComponent {
521
- }
522
- SkyCheckboxLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyCheckboxLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
523
- SkyCheckboxLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyCheckboxLabelComponent, selector: "sky-checkbox-label", ngImport: i0, template: "<span class=\"sky-switch-label\">\n <ng-content></ng-content>\n</span>\n" });
524
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyCheckboxLabelComponent, decorators: [{
525
- type: Component,
526
- args: [{
527
- selector: 'sky-checkbox-label',
528
- templateUrl: './checkbox-label.component.html',
529
- }]
530
- }] });
531
-
532
- // tslint:disable:no-forward-ref
533
- const SKY_CHECKBOX_REQUIRED_VALIDATOR = {
534
- provide: NG_VALIDATORS,
535
- useExisting: forwardRef(() => SkyCheckboxRequiredValidatorDirective),
536
- multi: true,
537
- };
538
- // tslint:enable
539
- /**
540
- * Validator support for the `required` input on `sky-checkbox`.
541
- * Angular's `CheckboxRequiredValidator` only works with `input type=checkbox`. This directive
542
- * extends the angular validator to work with `sky-checkbox` tags.
543
- * This is based on Angular Material's similar implementation:
544
- * https://github.com/angular/components/blob/a415b52ead2ec202ba37edb7d7866b29dd790394/src/material/checkbox/checkbox-required-validator.ts
545
- * @internal
546
- */
547
- class SkyCheckboxRequiredValidatorDirective extends CheckboxRequiredValidator {
548
- }
549
- SkyCheckboxRequiredValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyCheckboxRequiredValidatorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
550
- SkyCheckboxRequiredValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SkyCheckboxRequiredValidatorDirective, selector: "sky-checkbox[required][formControlName],\n sky-checkbox[required][formControl], sky-checkbox[required][ngModel]", providers: [SKY_CHECKBOX_REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });
551
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyCheckboxRequiredValidatorDirective, decorators: [{
552
- type: Directive,
553
- args: [{
554
- // eslint-disable-next-line @angular-eslint/directive-selector
555
- selector: `sky-checkbox[required][formControlName],
556
- sky-checkbox[required][formControl], sky-checkbox[required][ngModel]`,
557
- providers: [SKY_CHECKBOX_REQUIRED_VALIDATOR],
558
- }]
559
- }] });
560
-
561
561
  class SkyCheckboxModule {
562
562
  }
563
563
  SkyCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -606,9 +606,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
606
606
  */
607
607
  class SkyFileAttachmentService {
608
608
  checkFiles(files, minFileSize, maxFileSize, acceptedTypes, validateFn) {
609
- let fileResults = [];
609
+ const fileResults = [];
610
610
  for (let index = 0; index < files.length; index++) {
611
- let fileItem = {
611
+ const fileItem = {
612
612
  file: files.item(index),
613
613
  };
614
614
  if (fileItem.file.size < minFileSize) {
@@ -627,8 +627,8 @@ class SkyFileAttachmentService {
627
627
  fileResults.push(fileItem);
628
628
  }
629
629
  else if (validateFn) {
630
- let errorParam = validateFn(fileItem);
631
- if (!!errorParam) {
630
+ const errorParam = validateFn(fileItem);
631
+ if (errorParam) {
632
632
  fileItem.errorType = 'validate';
633
633
  fileItem.errorParam = errorParam;
634
634
  }
@@ -661,8 +661,8 @@ class SkyFileAttachmentService {
661
661
  if (!fileType) {
662
662
  return true;
663
663
  }
664
- let acceptedTypesUpper = acceptedTypes.toUpperCase();
665
- let typeArray = acceptedTypesUpper.split(',');
664
+ const acceptedTypesUpper = acceptedTypes.toUpperCase();
665
+ const typeArray = acceptedTypesUpper.split(',');
666
666
  return !this.fileTypeInArray(typeArray, fileType.toUpperCase());
667
667
  }
668
668
  fileTypeInArray(typeArray, fileType) {
@@ -698,7 +698,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
698
698
  */
699
699
  class SkyFileItemService {
700
700
  isFile(fileItem) {
701
- let file = fileItem.file;
701
+ const file = fileItem.file;
702
702
  /* tslint:disable */
703
703
  return (file &&
704
704
  file !== undefined &&
@@ -708,8 +708,8 @@ class SkyFileItemService {
708
708
  /* tslint:enable */
709
709
  }
710
710
  isImage(fileItem) {
711
- let fileTypeUpper = this.getFileTypeUpper(fileItem), slashIndex;
712
- slashIndex = fileTypeUpper.indexOf('/');
711
+ const fileTypeUpper = this.getFileTypeUpper(fileItem);
712
+ const slashIndex = fileTypeUpper.indexOf('/');
713
713
  if (slashIndex >= 0) {
714
714
  switch (fileTypeUpper.substr(fileTypeUpper.indexOf('/') + 1)) {
715
715
  case 'BMP':
@@ -728,7 +728,7 @@ class SkyFileItemService {
728
728
  /* istanbul ignore else */
729
729
  /* sanity check */
730
730
  if (fileItem) {
731
- let file = fileItem.file;
731
+ const file = fileItem.file;
732
732
  if (file) {
733
733
  /* istanbul ignore next */
734
734
  name = file.name || '';
@@ -746,7 +746,7 @@ class SkyFileItemService {
746
746
  /* istanbul ignore else */
747
747
  /* sanity check */
748
748
  if (fileItem) {
749
- let file = fileItem.file;
749
+ const file = fileItem.file;
750
750
  if (file) {
751
751
  fileType = file.type || '';
752
752
  }
@@ -796,7 +796,7 @@ class SkyFileAttachmentComponent {
796
796
  /**
797
797
  * Indicates whether the input is required for form validation.
798
798
  * When you set this property to `true`, the component adds `aria-required` and `required`
799
- * attributes to the input element so that forms display an invalid state until the input element
799
+ * attributes to the input element so that forms display an invalid state until the input element
800
800
  * is complete.
801
801
  */
802
802
  this.required = false;
@@ -955,7 +955,7 @@ class SkyFileAttachmentComponent {
955
955
  getFileName(truncate = true) {
956
956
  if (this.value) {
957
957
  // tslint:disable-next-line: max-line-length
958
- let dropName = this.fileItemService.isFile(this.value) && this.value.file.name
958
+ const dropName = this.fileItemService.isFile(this.value) && this.value.file.name
959
959
  ? this.value.file.name
960
960
  : this.value.url;
961
961
  if (truncate && dropName.length > 26) {
@@ -1023,8 +1023,8 @@ class SkyFileAttachmentComponent {
1023
1023
  }
1024
1024
  handleFiles(files) {
1025
1025
  // tslint:disable-next-line: max-line-length
1026
- let processedFiles = this.fileAttachmentService.checkFiles(files, this.minFileSize, this.maxFileSize, this.acceptedTypes, this.validateFn);
1027
- for (let file of processedFiles) {
1026
+ const processedFiles = this.fileAttachmentService.checkFiles(files, this.minFileSize, this.maxFileSize, this.acceptedTypes, this.validateFn);
1027
+ for (const file of processedFiles) {
1028
1028
  if (file.errorType) {
1029
1029
  this.emitFileChangeEvent(file);
1030
1030
  }
@@ -1237,18 +1237,17 @@ class SkyFileDropComponent {
1237
1237
  reader.readAsDataURL(file.file);
1238
1238
  }
1239
1239
  handleFiles(files) {
1240
- let validFileArray = [];
1241
- let rejectedFileArray = [];
1242
- let totalFiles = files.length;
1243
- let fileDrop = this;
1240
+ const validFileArray = [];
1241
+ const rejectedFileArray = [];
1242
+ const totalFiles = files.length;
1244
1243
  // tslint:disable-next-line: max-line-length
1245
- let processedFiles = this.fileAttachmentService.checkFiles(files, this.minFileSize, this.maxFileSize, this.acceptedTypes, this.validateFn);
1246
- for (let file of processedFiles) {
1244
+ const processedFiles = this.fileAttachmentService.checkFiles(files, this.minFileSize, this.maxFileSize, this.acceptedTypes, this.validateFn);
1245
+ for (const file of processedFiles) {
1247
1246
  if (file.errorType) {
1248
1247
  this.filesRejected(file, validFileArray, rejectedFileArray, totalFiles);
1249
1248
  }
1250
1249
  else {
1251
- this.loadFile(fileDrop, file, validFileArray, rejectedFileArray, totalFiles);
1250
+ this.loadFile(this, file, validFileArray, rejectedFileArray, totalFiles);
1252
1251
  }
1253
1252
  }
1254
1253
  }
@@ -1301,7 +1300,7 @@ class SkyFileSizePipe {
1301
1300
  this.resourcesService = resourcesService;
1302
1301
  }
1303
1302
  transform(input) {
1304
- let decimalPlaces = 0, dividend = 1, formattedSize, roundedSize, template;
1303
+ let decimalPlaces = 0, dividend = 1, template;
1305
1304
  /* tslint:disable */
1306
1305
  if (input === null || input === undefined) {
1307
1306
  return '';
@@ -1327,10 +1326,9 @@ class SkyFileSizePipe {
1327
1326
  dividend = 1e9;
1328
1327
  decimalPlaces = 1;
1329
1328
  }
1330
- roundedSize =
1331
- Math.floor(input / (dividend / Math.pow(10, decimalPlaces))) /
1332
- Math.pow(10, decimalPlaces);
1333
- formattedSize = this.decimalPipe.transform(roundedSize, '.0-3');
1329
+ const roundedSize = Math.floor(input / (dividend / Math.pow(10, decimalPlaces))) /
1330
+ Math.pow(10, decimalPlaces);
1331
+ const formattedSize = this.decimalPipe.transform(roundedSize, '.0-3');
1334
1332
  return this.getString(template, formattedSize);
1335
1333
  }
1336
1334
  getString(key, ...args) {
@@ -1368,9 +1366,11 @@ class SkyFileItemComponent {
1368
1366
  return this.fileItem.url;
1369
1367
  }
1370
1368
  ngDoCheck() {
1371
- let changes = this.differ.diff(this.fileItem);
1369
+ const changes = this.differ.diff(this.fileItem);
1372
1370
  if (changes) {
1373
- let cls, extensionUpper = this.fileItemService.getFileExtensionUpper(this.fileItem), fileTypeUpper;
1371
+ let cls;
1372
+ const extensionUpper = this.fileItemService.getFileExtensionUpper(this.fileItem);
1373
+ let fileTypeUpper;
1374
1374
  switch (extensionUpper) {
1375
1375
  case '.PDF':
1376
1376
  cls = 'pdf';
@@ -1914,30 +1914,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1914
1914
  type: Output
1915
1915
  }] } });
1916
1916
 
1917
- /**
1918
- * Specifies a label for the radio button.
1919
- */
1920
- class SkyRadioLabelComponent {
1921
- // When clicking on a checkbox label, Angular registers two click events.
1922
- // This handler ignores all events except for those that deal
1923
- // with the checkbox input explicitly.
1924
- onClick(event) {
1925
- event.stopPropagation();
1926
- }
1927
- }
1928
- SkyRadioLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyRadioLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1929
- SkyRadioLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyRadioLabelComponent, selector: "sky-radio-label", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0, template: "<span class=\"sky-switch-label\">\n <ng-content></ng-content>\n</span>\n" });
1930
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyRadioLabelComponent, decorators: [{
1931
- type: Component,
1932
- args: [{
1933
- selector: 'sky-radio-label',
1934
- templateUrl: './radio-label.component.html',
1935
- }]
1936
- }], propDecorators: { onClick: [{
1937
- type: HostListener,
1938
- args: ['click', ['$event']]
1939
- }] } });
1940
-
1941
1917
  let nextUniqueId = 0;
1942
1918
  /**
1943
1919
  * Organizes radio buttons into a group. It is required for radio
@@ -1952,7 +1928,7 @@ class SkyRadioGroupComponent {
1952
1928
  /**
1953
1929
  * Indicates whether the input is required for form validation.
1954
1930
  * When you set this property to `true`, the component adds `aria-required` and `required`
1955
- * attributes to the input element so that forms display an invalid state until the input element
1931
+ * attributes to the input element so that forms display an invalid state until the input element
1956
1932
  * is complete.
1957
1933
  * @default false
1958
1934
  */
@@ -2153,6 +2129,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
2153
2129
  args: [SkyRadioComponent, { descendants: true }]
2154
2130
  }] } });
2155
2131
 
2132
+ /**
2133
+ * Specifies a label for the radio button.
2134
+ */
2135
+ class SkyRadioLabelComponent {
2136
+ // When clicking on a checkbox label, Angular registers two click events.
2137
+ // This handler ignores all events except for those that deal
2138
+ // with the checkbox input explicitly.
2139
+ onClick(event) {
2140
+ event.stopPropagation();
2141
+ }
2142
+ }
2143
+ SkyRadioLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyRadioLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2144
+ SkyRadioLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyRadioLabelComponent, selector: "sky-radio-label", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0, template: "<span class=\"sky-switch-label\">\n <ng-content></ng-content>\n</span>\n" });
2145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyRadioLabelComponent, decorators: [{
2146
+ type: Component,
2147
+ args: [{
2148
+ selector: 'sky-radio-label',
2149
+ templateUrl: './radio-label.component.html',
2150
+ }]
2151
+ }], propDecorators: { onClick: [{
2152
+ type: HostListener,
2153
+ args: ['click', ['$event']]
2154
+ }] } });
2155
+
2156
2156
  class SkyRadioModule {
2157
2157
  }
2158
2158
  SkyRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -2308,21 +2308,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
2308
2308
  }]
2309
2309
  }] });
2310
2310
 
2311
- /**
2312
- * Specifies the header to display in a selection box.
2313
- */
2314
- class SkySelectionBoxHeaderComponent {
2315
- }
2316
- SkySelectionBoxHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySelectionBoxHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2317
- SkySelectionBoxHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySelectionBoxHeaderComponent, selector: "sky-selection-box-header", ngImport: i0, template: "<ng-content></ng-content>\n" });
2318
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySelectionBoxHeaderComponent, decorators: [{
2319
- type: Component,
2320
- args: [{
2321
- selector: 'sky-selection-box-header',
2322
- templateUrl: './selection-box-header.component.html',
2323
- }]
2324
- }] });
2325
-
2326
2311
  /**
2327
2312
  * Creates a button to present users with a choice or question before proceeding with a one-time process.
2328
2313
  */
@@ -2542,6 +2527,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
2542
2527
  args: ['window:resize']
2543
2528
  }] } });
2544
2529
 
2530
+ /**
2531
+ * Specifies the header to display in a selection box.
2532
+ */
2533
+ class SkySelectionBoxHeaderComponent {
2534
+ }
2535
+ SkySelectionBoxHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySelectionBoxHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2536
+ SkySelectionBoxHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySelectionBoxHeaderComponent, selector: "sky-selection-box-header", ngImport: i0, template: "<ng-content></ng-content>\n" });
2537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySelectionBoxHeaderComponent, decorators: [{
2538
+ type: Component,
2539
+ args: [{
2540
+ selector: 'sky-selection-box-header',
2541
+ templateUrl: './selection-box-header.component.html',
2542
+ }]
2543
+ }] });
2544
+
2545
2545
  class SkySelectionBoxModule {
2546
2546
  }
2547
2547
  SkySelectionBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySelectionBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });