@skyux/forms 10.0.0-alpha.1 → 10.0.0-alpha.3

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 (83) hide show
  1. package/documentation.json +5202 -3518
  2. package/esm2022/index.mjs +5 -1
  3. package/esm2022/lib/modules/character-counter/character-counter-indicator.component.mjs +7 -6
  4. package/esm2022/lib/modules/character-counter/character-counter-screen-reader.pipe.mjs +46 -0
  5. package/esm2022/lib/modules/character-counter/character-counter.directive.mjs +3 -3
  6. package/esm2022/lib/modules/character-counter/character-counter.module.mjs +8 -5
  7. package/esm2022/lib/modules/checkbox/checkbox-label-text-label.component.mjs +30 -0
  8. package/esm2022/lib/modules/checkbox/checkbox-label.component.mjs +5 -4
  9. package/esm2022/lib/modules/checkbox/checkbox.component.mjs +73 -20
  10. package/esm2022/lib/modules/checkbox/checkbox.module.mjs +44 -8
  11. package/esm2022/lib/modules/file-attachment/file-attachment-label.component.mjs +14 -6
  12. package/esm2022/lib/modules/file-attachment/file-attachment.component.mjs +16 -8
  13. package/esm2022/lib/modules/file-attachment/file-attachment.service.mjs +5 -6
  14. package/esm2022/lib/modules/file-attachment/file-attachments.module.mjs +4 -4
  15. package/esm2022/lib/modules/file-attachment/file-drop.component.mjs +6 -7
  16. package/esm2022/lib/modules/file-attachment/file-item.component.mjs +4 -4
  17. package/esm2022/lib/modules/file-attachment/file-item.service.mjs +3 -3
  18. package/esm2022/lib/modules/file-attachment/file-size.pipe.mjs +3 -3
  19. package/esm2022/lib/modules/file-attachment/types/file-drop-change.mjs +1 -1
  20. package/esm2022/lib/modules/form-error/form-error.component.mjs +30 -14
  21. package/esm2022/lib/modules/form-error/form-error.module.mjs +16 -0
  22. package/esm2022/lib/modules/form-error/form-errors-enabled-token.mjs +6 -0
  23. package/esm2022/lib/modules/form-error/form-errors.component.mjs +5 -5
  24. package/esm2022/lib/modules/form-error/form-errors.module.mjs +7 -6
  25. package/esm2022/lib/modules/input-box/input-box-adapter.service.mjs +3 -3
  26. package/esm2022/lib/modules/input-box/input-box-control.directive.mjs +3 -3
  27. package/esm2022/lib/modules/input-box/input-box-help-inline.component.mjs +5 -5
  28. package/esm2022/lib/modules/input-box/input-box-hint-text.pipe.mjs +23 -0
  29. package/esm2022/lib/modules/input-box/input-box-host.service.mjs +16 -4
  30. package/esm2022/lib/modules/input-box/input-box.component.mjs +32 -6
  31. package/esm2022/lib/modules/input-box/input-box.module.mjs +29 -12
  32. package/esm2022/lib/modules/radio/radio-group-id.service.mjs +3 -3
  33. package/esm2022/lib/modules/radio/radio-group.component.mjs +74 -10
  34. package/esm2022/lib/modules/radio/radio-label.component.mjs +3 -3
  35. package/esm2022/lib/modules/radio/radio.component.mjs +4 -4
  36. package/esm2022/lib/modules/radio/radio.module.mjs +43 -9
  37. package/esm2022/lib/modules/selection-box/selection-box-adapter.service.mjs +3 -3
  38. package/esm2022/lib/modules/selection-box/selection-box-description.component.mjs +3 -3
  39. package/esm2022/lib/modules/selection-box/selection-box-grid.component.mjs +3 -3
  40. package/esm2022/lib/modules/selection-box/selection-box-header.component.mjs +3 -3
  41. package/esm2022/lib/modules/selection-box/selection-box.component.mjs +3 -3
  42. package/esm2022/lib/modules/selection-box/selection-box.module.mjs +4 -4
  43. package/esm2022/lib/modules/shared/sky-forms-resources.module.mjs +8 -6
  44. package/esm2022/lib/modules/toggle-switch/toggle-switch-label.component.mjs +14 -6
  45. package/esm2022/lib/modules/toggle-switch/toggle-switch.component.mjs +40 -7
  46. package/esm2022/lib/modules/toggle-switch/toggle-switch.module.mjs +4 -4
  47. package/esm2022/testing/checkbox/checkbox-harness.mjs +40 -4
  48. package/esm2022/testing/checkbox/checkbox-label-text-label.harness.mjs +19 -0
  49. package/esm2022/testing/form-error/form-error-harness.mjs +5 -9
  50. package/esm2022/testing/form-error/form-errors-harness.mjs +15 -64
  51. package/esm2022/testing/input-box/input-box-harness.mjs +59 -2
  52. package/fesm2022/skyux-forms-testing.mjs +164 -109
  53. package/fesm2022/skyux-forms-testing.mjs.map +1 -1
  54. package/fesm2022/skyux-forms.mjs +665 -264
  55. package/fesm2022/skyux-forms.mjs.map +1 -1
  56. package/index.d.ts +4 -0
  57. package/lib/modules/character-counter/character-counter-screen-reader.pipe.d.ts +8 -0
  58. package/lib/modules/character-counter/character-counter.module.d.ts +3 -2
  59. package/lib/modules/checkbox/checkbox-label-text-label.component.d.ts +12 -0
  60. package/lib/modules/checkbox/checkbox-label.component.d.ts +1 -0
  61. package/lib/modules/checkbox/checkbox.component.d.ts +16 -4
  62. package/lib/modules/checkbox/checkbox.module.d.ts +9 -5
  63. package/lib/modules/file-attachment/file-attachment-label.component.d.ts +2 -0
  64. package/lib/modules/file-attachment/file-attachment.component.d.ts +11 -1
  65. package/lib/modules/file-attachment/types/file-drop-change.d.ts +2 -2
  66. package/lib/modules/form-error/form-error.component.d.ts +17 -3
  67. package/lib/modules/form-error/form-error.module.d.ts +7 -0
  68. package/lib/modules/form-error/form-errors-enabled-token.d.ts +5 -0
  69. package/lib/modules/form-error/form-errors.module.d.ts +2 -1
  70. package/lib/modules/input-box/input-box-hint-text.pipe.d.ts +10 -0
  71. package/lib/modules/input-box/input-box-host.service.d.ts +2 -0
  72. package/lib/modules/input-box/input-box.component.d.ts +6 -1
  73. package/lib/modules/input-box/input-box.module.d.ts +8 -5
  74. package/lib/modules/radio/radio-group.component.d.ts +19 -3
  75. package/lib/modules/radio/radio.module.d.ts +6 -3
  76. package/lib/modules/toggle-switch/toggle-switch-label.component.d.ts +2 -0
  77. package/lib/modules/toggle-switch/toggle-switch.component.d.ts +14 -2
  78. package/package.json +12 -12
  79. package/testing/checkbox/checkbox-harness.d.ts +8 -1
  80. package/testing/checkbox/checkbox-label-text-label.harness.d.ts +16 -0
  81. package/testing/form-error/form-error-harness.d.ts +4 -2
  82. package/testing/form-error/form-errors-harness.d.ts +10 -11
  83. package/testing/input-box/input-box-harness.d.ts +36 -1
@@ -32,6 +32,42 @@ export declare class SkyInputBoxHarness extends SkyComponentHarness {
32
32
  * handled by input box.
33
33
  */
34
34
  getCustomErrors(): Promise<SkyStatusIndicatorHarness[]>;
35
+ /**
36
+ * Whether the custom error is triggered.
37
+ */
38
+ hasCustomFormError(errorName: string): Promise<boolean>;
39
+ /**
40
+ * Whether the required field is empty.
41
+ */
42
+ hasRequiredError(): Promise<boolean>;
43
+ /**
44
+ * Whether the field has more characters than allowed.
45
+ */
46
+ hasMaxLengthError(): Promise<boolean>;
47
+ /**
48
+ * Whether the field has fewer characters than allowed.
49
+ */
50
+ hasMinLengthError(): Promise<boolean>;
51
+ /**
52
+ * Whether the field is set to an invalid email address.
53
+ */
54
+ hasEmailError(): Promise<boolean>;
55
+ /**
56
+ * Whether the field is set to an invalid URL.
57
+ */
58
+ hasUrlError(): Promise<boolean>;
59
+ /**
60
+ * Whether the field is set to an invalid date.
61
+ */
62
+ hasDateError(): Promise<boolean>;
63
+ /**
64
+ * Whether the field is set to an invalid phone number.
65
+ */
66
+ hasPhoneFieldError(): Promise<boolean>;
67
+ /**
68
+ * Whether the field is set to an invalid time.
69
+ */
70
+ hasTimeError(): Promise<boolean>;
35
71
  /**
36
72
  * Indicates whether the input box has disabled styles applied.
37
73
  */
@@ -51,7 +87,6 @@ export declare class SkyInputBoxHarness extends SkyComponentHarness {
51
87
  getHintText(): Promise<string>;
52
88
  /**
53
89
  * Indicates whether the input box has stacked styles applied.
54
- * @returns
55
90
  */
56
91
  getStacked(): Promise<boolean>;
57
92
  }