@skyux/forms 5.0.2 → 5.5.0

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 (207) hide show
  1. package/README.md +6 -4
  2. package/bundles/skyux-forms.umd.js +114 -114
  3. package/documentation.json +1412 -961
  4. package/esm2015/index.js +43 -0
  5. package/esm2015/index.js.map +1 -0
  6. package/esm2015/lib/modules/character-counter/character-counter-indicator.component.js +37 -0
  7. package/esm2015/lib/modules/character-counter/character-counter-indicator.component.js.map +1 -0
  8. package/esm2015/lib/modules/character-counter/character-counter.directive.js +83 -0
  9. package/esm2015/lib/modules/character-counter/character-counter.directive.js.map +1 -0
  10. package/esm2015/lib/modules/character-counter/character-counter.module.js +46 -0
  11. package/esm2015/lib/modules/character-counter/character-counter.module.js.map +1 -0
  12. package/esm2015/lib/modules/checkbox/checkbox-change.js +6 -0
  13. package/esm2015/lib/modules/checkbox/checkbox-change.js.map +1 -0
  14. package/esm2015/lib/modules/checkbox/checkbox-label.component.js +17 -0
  15. package/esm2015/lib/modules/checkbox/checkbox-label.component.js.map +1 -0
  16. package/esm2015/lib/modules/checkbox/checkbox-required-validator.directive.js +32 -0
  17. package/esm2015/lib/modules/checkbox/checkbox-required-validator.directive.js.map +1 -0
  18. package/esm2015/lib/modules/checkbox/checkbox.component.js +240 -0
  19. package/esm2015/lib/modules/checkbox/checkbox.component.js.map +1 -0
  20. package/esm2015/lib/modules/checkbox/checkbox.module.js +34 -0
  21. package/esm2015/lib/modules/checkbox/checkbox.module.js.map +1 -0
  22. package/esm2015/lib/modules/file-attachment/file-attachment-label.component.js +19 -0
  23. package/esm2015/lib/modules/file-attachment/file-attachment-label.component.js.map +1 -0
  24. package/esm2015/lib/modules/file-attachment/file-attachment.component.js +331 -0
  25. package/esm2015/lib/modules/file-attachment/file-attachment.component.js.map +1 -0
  26. package/esm2015/lib/modules/file-attachment/file-attachment.service.js +94 -0
  27. package/esm2015/lib/modules/file-attachment/file-attachment.service.js.map +1 -0
  28. package/esm2015/lib/modules/file-attachment/file-attachments.module.js +68 -0
  29. package/esm2015/lib/modules/file-attachment/file-attachments.module.js.map +1 -0
  30. package/esm2015/lib/modules/file-attachment/file-drop.component.js +223 -0
  31. package/esm2015/lib/modules/file-attachment/file-drop.component.js.map +1 -0
  32. package/esm2015/lib/modules/file-attachment/file-item-error-type.js +2 -0
  33. package/esm2015/lib/modules/file-attachment/file-item-error-type.js.map +1 -0
  34. package/esm2015/lib/modules/file-attachment/file-item.component.js +114 -0
  35. package/esm2015/lib/modules/file-attachment/file-item.component.js.map +1 -0
  36. package/esm2015/lib/modules/file-attachment/file-item.js +2 -0
  37. package/esm2015/lib/modules/file-attachment/file-item.js.map +1 -0
  38. package/esm2015/lib/modules/file-attachment/file-item.service.js +72 -0
  39. package/esm2015/lib/modules/file-attachment/file-item.service.js.map +1 -0
  40. package/esm2015/lib/modules/file-attachment/file-link.js +2 -0
  41. package/esm2015/lib/modules/file-attachment/file-link.js.map +1 -0
  42. package/esm2015/lib/modules/file-attachment/file-size.pipe.js +61 -0
  43. package/esm2015/lib/modules/file-attachment/file-size.pipe.js.map +1 -0
  44. package/esm2015/lib/modules/file-attachment/types/file-attachment-change.js +2 -0
  45. package/esm2015/lib/modules/file-attachment/types/file-attachment-change.js.map +1 -0
  46. package/esm2015/lib/modules/file-attachment/types/file-attachment-click.js +2 -0
  47. package/esm2015/lib/modules/file-attachment/types/file-attachment-click.js.map +1 -0
  48. package/esm2015/lib/modules/file-attachment/types/file-drop-change.js +2 -0
  49. package/esm2015/lib/modules/file-attachment/types/file-drop-change.js.map +1 -0
  50. package/esm2015/lib/modules/input-box/input-box-adapter.service.js +35 -0
  51. package/esm2015/lib/modules/input-box/input-box-adapter.service.js.map +1 -0
  52. package/esm2015/lib/modules/input-box/input-box-host.service.js +19 -0
  53. package/esm2015/lib/modules/input-box/input-box-host.service.js.map +1 -0
  54. package/esm2015/lib/modules/input-box/input-box-populate-args.js +2 -0
  55. package/esm2015/lib/modules/input-box/input-box-populate-args.js.map +1 -0
  56. package/esm2015/{modules → lib/modules}/input-box/input-box.component.js +5 -5
  57. package/esm2015/lib/modules/input-box/input-box.component.js.map +1 -0
  58. package/esm2015/lib/modules/input-box/input-box.module.js +19 -0
  59. package/esm2015/lib/modules/input-box/input-box.module.js.map +1 -0
  60. package/esm2015/lib/modules/radio/radio-group.component.js +223 -0
  61. package/esm2015/lib/modules/radio/radio-group.component.js.map +1 -0
  62. package/esm2015/lib/modules/radio/radio-label.component.js +26 -0
  63. package/esm2015/lib/modules/radio/radio-label.component.js.map +1 -0
  64. package/esm2015/lib/modules/radio/radio.component.js +262 -0
  65. package/esm2015/lib/modules/radio/radio.component.js.map +1 -0
  66. package/esm2015/lib/modules/radio/radio.module.js +28 -0
  67. package/esm2015/lib/modules/radio/radio.module.js.map +1 -0
  68. package/esm2015/lib/modules/radio/types/radio-change.js +2 -0
  69. package/esm2015/lib/modules/radio/types/radio-change.js.map +1 -0
  70. package/esm2015/lib/modules/selection-box/selection-box-adapter.service.js +124 -0
  71. package/esm2015/lib/modules/selection-box/selection-box-adapter.service.js.map +1 -0
  72. package/esm2015/lib/modules/selection-box/selection-box-description.component.js +17 -0
  73. package/esm2015/lib/modules/selection-box/selection-box-description.component.js.map +1 -0
  74. package/esm2015/lib/modules/selection-box/selection-box-grid.component.js +132 -0
  75. package/esm2015/lib/modules/selection-box/selection-box-grid.component.js.map +1 -0
  76. package/esm2015/lib/modules/selection-box/selection-box-header.component.js +17 -0
  77. package/esm2015/lib/modules/selection-box/selection-box-header.component.js.map +1 -0
  78. package/esm2015/lib/modules/selection-box/selection-box.component.js +107 -0
  79. package/esm2015/lib/modules/selection-box/selection-box.component.js.map +1 -0
  80. package/esm2015/lib/modules/selection-box/selection-box.module.js +40 -0
  81. package/esm2015/lib/modules/selection-box/selection-box.module.js.map +1 -0
  82. package/esm2015/lib/modules/selection-box/types/selection-box-grid-align-items-type.js +2 -0
  83. package/esm2015/lib/modules/selection-box/types/selection-box-grid-align-items-type.js.map +1 -0
  84. package/esm2015/lib/modules/selection-box/types/selection-box-grid-align-items.js +2 -0
  85. package/esm2015/lib/modules/selection-box/types/selection-box-grid-align-items.js.map +1 -0
  86. package/esm2015/lib/modules/shared/forms-utility.js +26 -0
  87. package/esm2015/lib/modules/shared/forms-utility.js.map +1 -0
  88. package/esm2015/lib/modules/shared/sky-forms-resources.module.js +89 -0
  89. package/esm2015/lib/modules/shared/sky-forms-resources.module.js.map +1 -0
  90. package/esm2015/lib/modules/toggle-switch/toggle-switch-label.component.js +18 -0
  91. package/esm2015/lib/modules/toggle-switch/toggle-switch-label.component.js.map +1 -0
  92. package/esm2015/lib/modules/toggle-switch/toggle-switch.component.js +158 -0
  93. package/esm2015/lib/modules/toggle-switch/toggle-switch.component.js.map +1 -0
  94. package/esm2015/lib/modules/toggle-switch/toggle-switch.module.js +20 -0
  95. package/esm2015/lib/modules/toggle-switch/toggle-switch.module.js.map +1 -0
  96. package/esm2015/lib/modules/toggle-switch/types/toggle-switch-change.js +2 -0
  97. package/esm2015/lib/modules/toggle-switch/types/toggle-switch-change.js.map +1 -0
  98. package/esm2015/skyux-forms.js +2 -2
  99. package/esm2015/skyux-forms.js.map +1 -0
  100. package/esm2015/testing/checkbox-fixture.js +1 -1
  101. package/esm2015/testing/checkbox-fixture.js.map +1 -0
  102. package/esm2015/testing/public-api.js +1 -1
  103. package/esm2015/testing/public-api.js.map +1 -0
  104. package/esm2015/testing/skyux-forms-testing.js +1 -1
  105. package/esm2015/testing/skyux-forms-testing.js.map +1 -0
  106. package/fesm2015/skyux-forms-testing.js.map +1 -1
  107. package/fesm2015/skyux-forms.js +145 -145
  108. package/fesm2015/skyux-forms.js.map +1 -1
  109. package/index.d.ts +40 -0
  110. package/{modules → lib/modules}/character-counter/character-counter-indicator.component.d.ts +0 -0
  111. package/{modules → lib/modules}/character-counter/character-counter.directive.d.ts +0 -0
  112. package/{modules → lib/modules}/character-counter/character-counter.module.d.ts +0 -0
  113. package/{modules → lib/modules}/checkbox/checkbox-change.d.ts +0 -0
  114. package/{modules → lib/modules}/checkbox/checkbox-label.component.d.ts +0 -0
  115. package/{modules → lib/modules}/checkbox/checkbox-required-validator.directive.d.ts +0 -0
  116. package/{modules → lib/modules}/checkbox/checkbox.component.d.ts +3 -3
  117. package/{modules → lib/modules}/checkbox/checkbox.module.d.ts +0 -0
  118. package/{modules → lib/modules}/file-attachment/file-attachment-label.component.d.ts +0 -0
  119. package/{modules → lib/modules}/file-attachment/file-attachment.component.d.ts +0 -0
  120. package/{modules → lib/modules}/file-attachment/file-attachment.service.d.ts +0 -0
  121. package/{modules → lib/modules}/file-attachment/file-attachments.module.d.ts +0 -0
  122. package/{modules → lib/modules}/file-attachment/file-drop.component.d.ts +0 -0
  123. package/{modules → lib/modules}/file-attachment/file-item-error-type.d.ts +0 -0
  124. package/{modules → lib/modules}/file-attachment/file-item.component.d.ts +0 -0
  125. package/{modules → lib/modules}/file-attachment/file-item.d.ts +0 -0
  126. package/{modules → lib/modules}/file-attachment/file-item.service.d.ts +0 -0
  127. package/{modules → lib/modules}/file-attachment/file-link.d.ts +0 -0
  128. package/{modules → lib/modules}/file-attachment/file-size.pipe.d.ts +0 -0
  129. package/{modules → lib/modules}/file-attachment/types/file-attachment-change.d.ts +0 -0
  130. package/{modules → lib/modules}/file-attachment/types/file-attachment-click.d.ts +0 -0
  131. package/{modules → lib/modules}/file-attachment/types/file-drop-change.d.ts +0 -0
  132. package/{modules → lib/modules}/input-box/input-box-adapter.service.d.ts +0 -0
  133. package/{modules → lib/modules}/input-box/input-box-host.service.d.ts +0 -0
  134. package/{modules → lib/modules}/input-box/input-box-populate-args.d.ts +0 -0
  135. package/{modules → lib/modules}/input-box/input-box.component.d.ts +0 -0
  136. package/{modules → lib/modules}/input-box/input-box.module.d.ts +0 -0
  137. package/{modules → lib/modules}/radio/radio-group.component.d.ts +2 -2
  138. package/{modules → lib/modules}/radio/radio-label.component.d.ts +0 -0
  139. package/{modules → lib/modules}/radio/radio.component.d.ts +0 -0
  140. package/{modules → lib/modules}/radio/radio.module.d.ts +0 -0
  141. package/{modules → lib/modules}/radio/types/radio-change.d.ts +0 -0
  142. package/{modules → lib/modules}/selection-box/selection-box-adapter.service.d.ts +0 -0
  143. package/{modules → lib/modules}/selection-box/selection-box-description.component.d.ts +0 -0
  144. package/{modules → lib/modules}/selection-box/selection-box-grid.component.d.ts +0 -0
  145. package/{modules → lib/modules}/selection-box/selection-box-header.component.d.ts +0 -0
  146. package/{modules → lib/modules}/selection-box/selection-box.component.d.ts +0 -0
  147. package/{modules → lib/modules}/selection-box/selection-box.module.d.ts +0 -0
  148. package/{modules → lib/modules}/selection-box/types/selection-box-grid-align-items-type.d.ts +0 -0
  149. package/{modules → lib/modules}/selection-box/types/selection-box-grid-align-items.d.ts +0 -0
  150. package/{modules → lib/modules}/shared/forms-utility.d.ts +0 -0
  151. package/{modules → lib/modules}/shared/sky-forms-resources.module.d.ts +0 -0
  152. package/{modules → lib/modules}/toggle-switch/toggle-switch-label.component.d.ts +0 -0
  153. package/{modules → lib/modules}/toggle-switch/toggle-switch.component.d.ts +0 -0
  154. package/{modules → lib/modules}/toggle-switch/toggle-switch.module.d.ts +0 -0
  155. package/{modules → lib/modules}/toggle-switch/types/toggle-switch-change.d.ts +0 -0
  156. package/package.json +21 -7
  157. package/skyux-forms.d.ts +1 -1
  158. package/LICENSE +0 -21
  159. package/bundles/skyux-forms-testing.umd.js.map +0 -1
  160. package/bundles/skyux-forms.umd.js.map +0 -1
  161. package/esm2015/modules/character-counter/character-counter-indicator.component.js +0 -37
  162. package/esm2015/modules/character-counter/character-counter.directive.js +0 -82
  163. package/esm2015/modules/character-counter/character-counter.module.js +0 -46
  164. package/esm2015/modules/checkbox/checkbox-change.js +0 -6
  165. package/esm2015/modules/checkbox/checkbox-label.component.js +0 -17
  166. package/esm2015/modules/checkbox/checkbox-required-validator.directive.js +0 -32
  167. package/esm2015/modules/checkbox/checkbox.component.js +0 -239
  168. package/esm2015/modules/checkbox/checkbox.module.js +0 -34
  169. package/esm2015/modules/file-attachment/file-attachment-label.component.js +0 -19
  170. package/esm2015/modules/file-attachment/file-attachment.component.js +0 -328
  171. package/esm2015/modules/file-attachment/file-attachment.service.js +0 -94
  172. package/esm2015/modules/file-attachment/file-attachments.module.js +0 -68
  173. package/esm2015/modules/file-attachment/file-drop.component.js +0 -223
  174. package/esm2015/modules/file-attachment/file-item-error-type.js +0 -2
  175. package/esm2015/modules/file-attachment/file-item.component.js +0 -113
  176. package/esm2015/modules/file-attachment/file-item.js +0 -2
  177. package/esm2015/modules/file-attachment/file-item.service.js +0 -72
  178. package/esm2015/modules/file-attachment/file-link.js +0 -2
  179. package/esm2015/modules/file-attachment/file-size.pipe.js +0 -59
  180. package/esm2015/modules/file-attachment/types/file-attachment-change.js +0 -2
  181. package/esm2015/modules/file-attachment/types/file-attachment-click.js +0 -2
  182. package/esm2015/modules/file-attachment/types/file-drop-change.js +0 -2
  183. package/esm2015/modules/input-box/input-box-adapter.service.js +0 -35
  184. package/esm2015/modules/input-box/input-box-host.service.js +0 -19
  185. package/esm2015/modules/input-box/input-box-populate-args.js +0 -2
  186. package/esm2015/modules/input-box/input-box.module.js +0 -19
  187. package/esm2015/modules/radio/radio-group.component.js +0 -222
  188. package/esm2015/modules/radio/radio-label.component.js +0 -26
  189. package/esm2015/modules/radio/radio.component.js +0 -262
  190. package/esm2015/modules/radio/radio.module.js +0 -28
  191. package/esm2015/modules/radio/types/radio-change.js +0 -2
  192. package/esm2015/modules/selection-box/selection-box-adapter.service.js +0 -124
  193. package/esm2015/modules/selection-box/selection-box-description.component.js +0 -17
  194. package/esm2015/modules/selection-box/selection-box-grid.component.js +0 -129
  195. package/esm2015/modules/selection-box/selection-box-header.component.js +0 -17
  196. package/esm2015/modules/selection-box/selection-box.component.js +0 -106
  197. package/esm2015/modules/selection-box/selection-box.module.js +0 -40
  198. package/esm2015/modules/selection-box/types/selection-box-grid-align-items-type.js +0 -2
  199. package/esm2015/modules/selection-box/types/selection-box-grid-align-items.js +0 -2
  200. package/esm2015/modules/shared/forms-utility.js +0 -26
  201. package/esm2015/modules/shared/sky-forms-resources.module.js +0 -89
  202. package/esm2015/modules/toggle-switch/toggle-switch-label.component.js +0 -18
  203. package/esm2015/modules/toggle-switch/toggle-switch.component.js +0 -158
  204. package/esm2015/modules/toggle-switch/toggle-switch.module.js +0 -20
  205. package/esm2015/modules/toggle-switch/types/toggle-switch-change.js +0 -2
  206. package/esm2015/public-api.js +0 -43
  207. package/public-api.d.ts +0 -40
package/index.d.ts ADDED
@@ -0,0 +1,40 @@
1
+ export * from './lib/modules/character-counter/character-counter.module';
2
+ export * from './lib/modules/checkbox/checkbox-change';
3
+ export * from './lib/modules/checkbox/checkbox.module';
4
+ export * from './lib/modules/file-attachment/types/file-attachment-change';
5
+ export * from './lib/modules/file-attachment/types/file-attachment-click';
6
+ export * from './lib/modules/file-attachment/types/file-drop-change';
7
+ export * from './lib/modules/file-attachment/file-attachments.module';
8
+ export * from './lib/modules/file-attachment/file-item';
9
+ export * from './lib/modules/file-attachment/file-item-error-type';
10
+ export * from './lib/modules/file-attachment/file-link';
11
+ export * from './lib/modules/file-attachment/file-size.pipe';
12
+ export * from './lib/modules/input-box/input-box.module';
13
+ export * from './lib/modules/input-box/input-box-host.service';
14
+ export * from './lib/modules/input-box/input-box-populate-args';
15
+ export * from './lib/modules/radio/types/radio-change';
16
+ export * from './lib/modules/radio/radio.module';
17
+ export * from './lib/modules/selection-box/types/selection-box-grid-align-items';
18
+ export * from './lib/modules/selection-box/types/selection-box-grid-align-items-type';
19
+ export * from './lib/modules/selection-box/selection-box.module';
20
+ export * from './lib/modules/toggle-switch/types/toggle-switch-change';
21
+ export * from './lib/modules/toggle-switch/toggle-switch.module';
22
+ export { SkyCharacterCounterIndicatorComponent as λ1 } from './lib/modules/character-counter/character-counter-indicator.component';
23
+ export { SkyCharacterCounterInputDirective as λ2 } from './lib/modules/character-counter/character-counter.directive';
24
+ export { SkyCheckboxComponent as λ3 } from './lib/modules/checkbox/checkbox.component';
25
+ export { SkyCheckboxLabelComponent as λ4 } from './lib/modules/checkbox/checkbox-label.component';
26
+ export { SkyCheckboxRequiredValidatorDirective as λ5 } from './lib/modules/checkbox/checkbox-required-validator.directive';
27
+ export { SkyFileAttachmentLabelComponent as λ6 } from './lib/modules/file-attachment/file-attachment-label.component';
28
+ export { SkyFileAttachmentComponent as λ7 } from './lib/modules/file-attachment/file-attachment.component';
29
+ export { SkyFileDropComponent as λ8 } from './lib/modules/file-attachment/file-drop.component';
30
+ export { SkyFileItemComponent as λ9 } from './lib/modules/file-attachment/file-item.component';
31
+ export { SkyInputBoxComponent as λ10 } from './lib/modules/input-box/input-box.component';
32
+ export { SkyRadioGroupComponent as λ11 } from './lib/modules/radio/radio-group.component';
33
+ export { SkyRadioLabelComponent as λ12 } from './lib/modules/radio/radio-label.component';
34
+ export { SkyRadioComponent as λ13 } from './lib/modules/radio/radio.component';
35
+ export { SkySelectionBoxDescriptionComponent as λ14 } from './lib/modules/selection-box/selection-box-description.component';
36
+ export { SkySelectionBoxGridComponent as λ15 } from './lib/modules/selection-box/selection-box-grid.component';
37
+ export { SkySelectionBoxHeaderComponent as λ16 } from './lib/modules/selection-box/selection-box-header.component';
38
+ export { SkySelectionBoxComponent as λ17 } from './lib/modules/selection-box/selection-box.component';
39
+ export { SkyToggleSwitchLabelComponent as λ18 } from './lib/modules/toggle-switch/toggle-switch-label.component';
40
+ export { SkyToggleSwitchComponent as λ19 } from './lib/modules/toggle-switch/toggle-switch.component';
@@ -61,9 +61,9 @@ export declare class SkyCheckboxComponent implements ControlValueAccessor, OnIni
61
61
  * Specifies a type to set the background color after users select a checkbox where the
62
62
  * `icon` property displays an icon in place of the checkbox. The valid options correspond to
63
63
  * [the label component's](https://developer.blackbaud.com/skyux/components/label)
64
- * label types. `'info'` creates a blue background, `'success'` creates a green
65
- * background, `'warning'` creates an orange background, and `'danger'` creates a red background.
66
- * @default 'info'
64
+ * label types. `"info"` creates a blue background, `"success"` creates a green
65
+ * background, `"warning"` creates an orange background, and `"danger"` creates a red background.
66
+ * @default "info"
67
67
  */
68
68
  set checkboxType(value: string);
69
69
  get checkboxType(): string;
@@ -26,7 +26,7 @@ export declare class SkyRadioGroupComponent implements AfterContentInit, AfterVi
26
26
  ariaLabel: string;
27
27
  /**
28
28
  * Indicates whether to disable the input.
29
- * @default "false"
29
+ * @default false
30
30
  */
31
31
  set disabled(value: boolean);
32
32
  get disabled(): boolean;
@@ -43,7 +43,7 @@ export declare class SkyRadioGroupComponent implements AfterContentInit, AfterVi
43
43
  * When you set this property to `true`, the component adds `aria-required` and `required`
44
44
  * attributes to the input element so that forms display an invalid state until the input element
45
45
  * is complete.
46
- * @default "false"
46
+ * @default false
47
47
  */
48
48
  required: boolean;
49
49
  /**
File without changes
package/package.json CHANGED
@@ -1,17 +1,31 @@
1
1
  {
2
2
  "name": "@skyux/forms",
3
- "version": "5.0.2",
3
+ "version": "5.5.0",
4
4
  "peerDependencies": {
5
- "@angular/common": "^12.2.13",
6
- "@angular/core": "^12.2.13",
7
- "@angular/forms": "^12.2.13",
8
- "@skyux/i18n": "^5.0.0",
9
- "@skyux/indicators": "^5.0.2",
10
- "@skyux/theme": "^5.0.3"
5
+ "@angular/common": "^12.2.16",
6
+ "@angular/core": "^12.2.16",
7
+ "@angular/forms": "^12.2.16",
8
+ "@skyux/i18n": "5.5.0",
9
+ "@skyux/indicators": "5.5.0",
10
+ "@skyux/theme": "5.5.0"
11
11
  },
12
12
  "dependencies": {
13
13
  "tslib": "^2.3.1"
14
14
  },
15
+ "author": "Blackbaud, Inc.",
16
+ "keywords": [
17
+ "blackbaud",
18
+ "skyux"
19
+ ],
20
+ "license": "MIT",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/blackbaud/skyux.git"
24
+ },
25
+ "bugs": {
26
+ "url": "https://github.com/blackbaud/skyux/issues"
27
+ },
28
+ "homepage": "https://github.com/blackbaud/skyux#readme",
15
29
  "main": "bundles/skyux-forms.umd.js",
16
30
  "module": "fesm2015/skyux-forms.js",
17
31
  "es2015": "fesm2015/skyux-forms.js",
package/skyux-forms.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  /// <amd-module name="@skyux/forms" />
5
- export * from './public-api';
5
+ export * from './index';
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2020 Blackbaud
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1 +0,0 @@
1
- {"version":3,"file":"skyux-forms-testing.umd.js","sources":["../../../projects/forms/testing/src/checkbox-fixture.ts","../../../projects/forms/testing/src/skyux-forms-testing.ts"],"sourcesContent":["import { ComponentFixture } from '@angular/core/testing';\n\nimport { DebugElement } from '@angular/core';\n\nimport { By } from '@angular/platform-browser';\n\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX checkbox component.\n */\nexport class SkyCheckboxFixture {\n private debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-checkbox'\n );\n }\n\n /**\n * A flag indicating whether the checkbox is currently selected.\n */\n public get selected(): boolean {\n return this.getCheckboxInputEl().nativeElement.checked;\n }\n\n /**\n * The checkbox's label\n */\n public get labelText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(By.css('label.sky-checkbox-wrapper'))\n );\n }\n\n /**\n * The checkbox's icon type\n */\n public get iconType(): string {\n const classList = this.debugEl.query(By.css('.fa.sky-icon')).nativeElement\n .classList;\n\n for (let i = 0, n = classList.length; i < n; i++) {\n const cls = classList.item(i);\n\n if (cls.indexOf('fa-') === 0) {\n return cls.substr(3);\n }\n }\n }\n\n /**\n * The checkbox's type.\n */\n public get checkboxType(): string {\n const classList = this.getCheckboxBoxEl().nativeElement.classList;\n\n if (classList.contains('sky-switch-control-danger')) {\n return 'danger';\n }\n\n if (classList.contains('sky-switch-control-info')) {\n return 'info';\n }\n\n if (classList.contains('sky-switch-control-success')) {\n return 'success';\n }\n\n if (classList.contains('sky-switch-control-warning')) {\n return 'warning';\n }\n\n return undefined;\n }\n\n /**\n * A flag indicating whether the checkbox is currently disabled.\n */\n public get disabled(): boolean {\n return this.getCheckboxInputEl().nativeElement.disabled;\n }\n\n /**\n * Selects the checkbox.\n */\n public select(): void {\n if (!this.selected) {\n this.clickCheckboxLabelEl();\n }\n }\n\n /**\n * Deselects the checkbox.\n */\n public deselect(): void {\n if (this.selected) {\n this.clickCheckboxLabelEl();\n }\n }\n\n private clickCheckboxLabelEl(): void {\n this.debugEl\n .query(By.css('label.sky-checkbox-wrapper'))\n .nativeElement.click();\n }\n\n private getCheckboxInputEl(): DebugElement {\n return this.debugEl.query(By.css('.sky-checkbox-wrapper input'));\n }\n\n private getCheckboxBoxEl(): DebugElement {\n return this.debugEl.query(By.css('label.sky-checkbox-wrapper span'));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["SkyAppTestUtility","By"],"mappings":";;;;;;IAQA;;;;QAME,4BAAY,OAA8B,EAAE,SAAiB;YAC3D,IAAI,CAAC,OAAO,GAAGA,yBAAiB,CAAC,uBAAuB,CACtD,OAAO,EACP,SAAS,EACT,cAAc,CACf,CAAC;SACH;QAKD,sBAAW,wCAAQ;;;;iBAAnB;gBACE,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC;aACxD;;;WAAA;QAKD,sBAAW,yCAAS;;;;iBAApB;gBACE,OAAOA,yBAAiB,CAAC,OAAO,CAC9B,IAAI,CAAC,OAAO,CAAC,KAAK,CAACC,kBAAE,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC,CACzD,CAAC;aACH;;;WAAA;QAKD,sBAAW,wCAAQ;;;;iBAAnB;gBACE,IAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAACA,kBAAE,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,aAAa;qBACvE,SAAS,CAAC;gBAEb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;oBAChD,IAAM,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;oBAE9B,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;wBAC5B,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;qBACtB;iBACF;aACF;;;WAAA;QAKD,sBAAW,4CAAY;;;;iBAAvB;gBACE,IAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC,aAAa,CAAC,SAAS,CAAC;gBAElE,IAAI,SAAS,CAAC,QAAQ,CAAC,2BAA2B,CAAC,EAAE;oBACnD,OAAO,QAAQ,CAAC;iBACjB;gBAED,IAAI,SAAS,CAAC,QAAQ,CAAC,yBAAyB,CAAC,EAAE;oBACjD,OAAO,MAAM,CAAC;iBACf;gBAED,IAAI,SAAS,CAAC,QAAQ,CAAC,4BAA4B,CAAC,EAAE;oBACpD,OAAO,SAAS,CAAC;iBAClB;gBAED,IAAI,SAAS,CAAC,QAAQ,CAAC,4BAA4B,CAAC,EAAE;oBACpD,OAAO,SAAS,CAAC;iBAClB;gBAED,OAAO,SAAS,CAAC;aAClB;;;WAAA;QAKD,sBAAW,wCAAQ;;;;iBAAnB;gBACE,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC;aACzD;;;WAAA;;;;QAKM,mCAAM,GAAN;YACL,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAClB,IAAI,CAAC,oBAAoB,EAAE,CAAC;aAC7B;SACF;;;;QAKM,qCAAQ,GAAR;YACL,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,IAAI,CAAC,oBAAoB,EAAE,CAAC;aAC7B;SACF;QAEO,iDAAoB,GAApB;YACN,IAAI,CAAC,OAAO;iBACT,KAAK,CAACA,kBAAE,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;iBAC3C,aAAa,CAAC,KAAK,EAAE,CAAC;SAC1B;QAEO,+CAAkB,GAAlB;YACN,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAACA,kBAAE,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC,CAAC;SAClE;QAEO,6CAAgB,GAAhB;YACN,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAACA,kBAAE,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC,CAAC;SACtE;iCACF;KAAA;;ICrHD;;;;;;;;;;;;"}