@skyux/forms 11.0.0-alpha.8 → 11.0.0-beta.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 (105) hide show
  1. package/documentation.json +4266 -4566
  2. package/esm2022/index.mjs +13 -12
  3. package/esm2022/lib/modules/character-counter/character-counter-indicator.component.mjs +5 -5
  4. package/esm2022/lib/modules/character-counter/character-counter-screen-reader.pipe.mjs +3 -3
  5. package/esm2022/lib/modules/character-counter/character-counter.directive.mjs +3 -3
  6. package/esm2022/lib/modules/character-counter/character-counter.module.mjs +4 -4
  7. package/esm2022/lib/modules/checkbox/checkbox-group.component.mjs +6 -6
  8. package/esm2022/lib/modules/checkbox/checkbox-label-text-label.component.mjs +5 -6
  9. package/esm2022/lib/modules/checkbox/checkbox-label.component.mjs +3 -3
  10. package/esm2022/lib/modules/checkbox/checkbox.component.mjs +6 -21
  11. package/esm2022/lib/modules/checkbox/checkbox.module.mjs +4 -4
  12. package/esm2022/lib/modules/field-group/field-group.component.mjs +5 -6
  13. package/esm2022/lib/modules/field-group/field-group.module.mjs +4 -4
  14. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment-change.mjs +2 -0
  15. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment-click.mjs +2 -0
  16. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment-join-ids.pipe.mjs +22 -0
  17. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment-label.component.mjs +31 -0
  18. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment.component.mjs +479 -0
  19. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment.module.mjs +24 -0
  20. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment.service.mjs +103 -0
  21. package/esm2022/lib/modules/file-attachment/file-attachments.module.mjs +12 -75
  22. package/esm2022/lib/modules/file-attachment/file-drop/file-drop-change.mjs +2 -0
  23. package/esm2022/lib/modules/file-attachment/file-drop/file-drop.component.mjs +329 -0
  24. package/esm2022/lib/modules/file-attachment/file-drop/file-drop.module.mjs +18 -0
  25. package/esm2022/lib/modules/file-attachment/file-drop/file-item.component.mjs +156 -0
  26. package/esm2022/lib/modules/file-attachment/file-drop/file-link.mjs +2 -0
  27. package/esm2022/lib/modules/file-attachment/shared/file-item-error-type.mjs +2 -0
  28. package/esm2022/lib/modules/file-attachment/shared/file-item.mjs +2 -0
  29. package/esm2022/lib/modules/file-attachment/shared/file-item.service.mjs +71 -0
  30. package/esm2022/lib/modules/file-attachment/shared/file-size.pipe.mjs +61 -0
  31. package/esm2022/lib/modules/file-attachment/shared/file-validate-function.mjs +2 -0
  32. package/esm2022/lib/modules/form-error/form-error.component.mjs +24 -24
  33. package/esm2022/lib/modules/form-error/form-error.module.mjs +4 -4
  34. package/esm2022/lib/modules/form-error/form-errors.component.mjs +18 -20
  35. package/esm2022/lib/modules/form-error/form-errors.module.mjs +4 -4
  36. package/esm2022/lib/modules/input-box/input-box-adapter.service.mjs +3 -3
  37. package/esm2022/lib/modules/input-box/input-box-control.directive.mjs +3 -3
  38. package/esm2022/lib/modules/input-box/input-box-hint-text.pipe.mjs +3 -3
  39. package/esm2022/lib/modules/input-box/input-box-host.service.mjs +21 -4
  40. package/esm2022/lib/modules/input-box/input-box.component.mjs +22 -27
  41. package/esm2022/lib/modules/input-box/input-box.module.mjs +4 -4
  42. package/esm2022/lib/modules/radio/radio-group-id.service.mjs +3 -3
  43. package/esm2022/lib/modules/radio/radio-group.component.mjs +6 -21
  44. package/esm2022/lib/modules/radio/radio-label.component.mjs +3 -3
  45. package/esm2022/lib/modules/radio/radio.component.mjs +6 -20
  46. package/esm2022/lib/modules/radio/radio.module.mjs +4 -4
  47. package/esm2022/lib/modules/required-state/required-state.directive.mjs +3 -3
  48. package/esm2022/lib/modules/selection-box/selection-box-adapter.service.mjs +3 -3
  49. package/esm2022/lib/modules/selection-box/selection-box-description.component.mjs +3 -3
  50. package/esm2022/lib/modules/selection-box/selection-box-grid.component.mjs +4 -4
  51. package/esm2022/lib/modules/selection-box/selection-box-header.component.mjs +3 -3
  52. package/esm2022/lib/modules/selection-box/selection-box.component.mjs +3 -3
  53. package/esm2022/lib/modules/selection-box/selection-box.module.mjs +4 -4
  54. package/esm2022/lib/modules/shared/sky-forms-resources.module.mjs +6 -8
  55. package/esm2022/lib/modules/toggle-switch/toggle-switch-label.component.mjs +3 -3
  56. package/esm2022/lib/modules/toggle-switch/toggle-switch.component.mjs +7 -21
  57. package/esm2022/lib/modules/toggle-switch/toggle-switch.module.mjs +4 -4
  58. package/esm2022/testing/checkbox/checkbox-harness.mjs +2 -6
  59. package/fesm2022/skyux-forms-testing.mjs +1 -5
  60. package/fesm2022/skyux-forms-testing.mjs.map +1 -1
  61. package/fesm2022/skyux-forms.mjs +394 -448
  62. package/fesm2022/skyux-forms.mjs.map +1 -1
  63. package/index.d.ts +21 -19
  64. package/lib/modules/checkbox/checkbox.component.d.ts +2 -4
  65. package/lib/modules/file-attachment/{types → file-attachment}/file-attachment-change.d.ts +1 -1
  66. package/lib/modules/file-attachment/{types → file-attachment}/file-attachment-click.d.ts +1 -1
  67. package/lib/modules/file-attachment/file-attachment/file-attachment-join-ids.pipe.d.ts +11 -0
  68. package/lib/modules/file-attachment/{file-attachment-label.component.d.ts → file-attachment/file-attachment-label.component.d.ts} +7 -5
  69. package/lib/modules/file-attachment/{file-attachment.component.d.ts → file-attachment/file-attachment.component.d.ts} +14 -14
  70. package/lib/modules/file-attachment/file-attachment/file-attachment.module.d.ts +9 -0
  71. package/lib/modules/file-attachment/{file-attachment.service.d.ts → file-attachment/file-attachment.service.d.ts} +2 -2
  72. package/lib/modules/file-attachment/file-attachments.module.d.ts +6 -15
  73. package/lib/modules/file-attachment/{types → file-drop}/file-drop-change.d.ts +1 -1
  74. package/lib/modules/file-attachment/{file-drop.component.d.ts → file-drop/file-drop.component.d.ts} +6 -8
  75. package/lib/modules/file-attachment/file-drop/file-drop.module.d.ts +9 -0
  76. package/lib/modules/file-attachment/{file-item.component.d.ts → file-drop/file-item.component.d.ts} +3 -3
  77. package/lib/modules/file-attachment/{file-size.pipe.d.ts → shared/file-size.pipe.d.ts} +2 -3
  78. package/lib/modules/form-error/form-errors.component.d.ts +9 -5
  79. package/lib/modules/input-box/input-box-host.service.d.ts +10 -1
  80. package/lib/modules/input-box/input-box.component.d.ts +1 -7
  81. package/lib/modules/radio/radio-group.component.d.ts +2 -4
  82. package/lib/modules/radio/radio.component.d.ts +2 -4
  83. package/lib/modules/toggle-switch/toggle-switch.component.d.ts +3 -5
  84. package/package.json +14 -14
  85. package/esm2022/lib/modules/file-attachment/file-attachment-label.component.mjs +0 -28
  86. package/esm2022/lib/modules/file-attachment/file-attachment.component.mjs +0 -475
  87. package/esm2022/lib/modules/file-attachment/file-attachment.service.mjs +0 -103
  88. package/esm2022/lib/modules/file-attachment/file-drop.component.mjs +0 -328
  89. package/esm2022/lib/modules/file-attachment/file-item-error-type.mjs +0 -2
  90. package/esm2022/lib/modules/file-attachment/file-item.component.mjs +0 -155
  91. package/esm2022/lib/modules/file-attachment/file-item.mjs +0 -2
  92. package/esm2022/lib/modules/file-attachment/file-item.service.mjs +0 -70
  93. package/esm2022/lib/modules/file-attachment/file-link.mjs +0 -2
  94. package/esm2022/lib/modules/file-attachment/file-size.pipe.mjs +0 -61
  95. package/esm2022/lib/modules/file-attachment/file-validate-function.mjs +0 -2
  96. package/esm2022/lib/modules/file-attachment/types/file-attachment-change.mjs +0 -2
  97. package/esm2022/lib/modules/file-attachment/types/file-attachment-click.mjs +0 -2
  98. package/esm2022/lib/modules/file-attachment/types/file-drop-change.mjs +0 -2
  99. package/esm2022/lib/modules/shared/form-field-label-text-required.service.mjs +0 -19
  100. package/lib/modules/shared/form-field-label-text-required.service.d.ts +0 -10
  101. /package/lib/modules/file-attachment/{file-link.d.ts → file-drop/file-link.d.ts} +0 -0
  102. /package/lib/modules/file-attachment/{file-item-error-type.d.ts → shared/file-item-error-type.d.ts} +0 -0
  103. /package/lib/modules/file-attachment/{file-item.d.ts → shared/file-item.d.ts} +0 -0
  104. /package/lib/modules/file-attachment/{file-item.service.d.ts → shared/file-item.service.d.ts} +0 -0
  105. /package/lib/modules/file-attachment/{file-validate-function.d.ts → shared/file-validate-function.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/forms",
3
- "version": "11.0.0-alpha.8",
3
+ "version": "11.0.0-beta.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -36,21 +36,21 @@
36
36
  }
37
37
  },
38
38
  "peerDependencies": {
39
- "@angular/cdk": "^18.1.2",
40
- "@angular/common": "^18.1.2",
41
- "@angular/core": "^18.1.2",
42
- "@angular/forms": "^18.1.2",
43
- "@angular/platform-browser": "^18.1.2",
44
- "@skyux-sdk/testing": "11.0.0-alpha.8",
45
- "@skyux/core": "11.0.0-alpha.8",
46
- "@skyux/help-inline": "11.0.0-alpha.8",
47
- "@skyux/i18n": "11.0.0-alpha.8",
48
- "@skyux/indicators": "11.0.0-alpha.8",
49
- "@skyux/popovers": "11.0.0-alpha.8",
50
- "@skyux/theme": "11.0.0-alpha.8"
39
+ "@angular/cdk": "^18.2.3",
40
+ "@angular/common": "^18.2.3",
41
+ "@angular/core": "^18.2.3",
42
+ "@angular/forms": "^18.2.3",
43
+ "@angular/platform-browser": "^18.2.3",
44
+ "@skyux-sdk/testing": "11.0.0-beta.0",
45
+ "@skyux/core": "11.0.0-beta.0",
46
+ "@skyux/help-inline": "11.0.0-beta.0",
47
+ "@skyux/i18n": "11.0.0-beta.0",
48
+ "@skyux/icon": "11.0.0-beta.0",
49
+ "@skyux/indicators": "11.0.0-beta.0",
50
+ "@skyux/popovers": "11.0.0-beta.0",
51
+ "@skyux/theme": "11.0.0-beta.0"
51
52
  },
52
53
  "dependencies": {
53
- "@skyux/icon": "11.0.0-alpha.8",
54
54
  "tslib": "^2.6.3"
55
55
  },
56
56
  "module": "fesm2022/skyux-forms.mjs",
@@ -1,28 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, ViewChild, inject, } from '@angular/core';
2
- import { SkyLogService } from '@skyux/core';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@skyux/core";
5
- /**
6
- * Displays a label above the file attachment element. To display a help button beside the label, include a help button
7
- * element, such as `sky-help-inline`, in the `sky-file-attachment-label` element and a `sky-control-help` CSS class on
8
- * that help button element.
9
- * @deprecated use the `labelText` input on the single file attachment component instead.
10
- */
11
- export class SkyFileAttachmentLabelComponent {
12
- constructor() {
13
- inject(SkyLogService).deprecated('SkyFileAttachmentLabelComponent', {
14
- deprecationMajorVersion: 9,
15
- replacementRecommendation: 'To add a label to single file attachment, use the `labelText` input on the `sky-file-attachment` component instead.',
16
- });
17
- }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SkyFileAttachmentLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
19
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: SkyFileAttachmentLabelComponent, selector: "sky-file-attachment-label", viewQueries: [{ propertyName: "labelContentId", first: true, predicate: ["labelContentId"], descendants: true }], ngImport: i0, template: "<span class=\"sky-control-label\"\n ><span skyId skyTrim #labelContentId=\"skyId\"><ng-content /></span\n ><span class=\"sky-control-help-container\"\n ><ng-content select=\".sky-control-help\" /></span\n></span>\n", styles: [":host-context(.sky-theme-modern) .sky-control-label{color:#686c73;font-size:13px}.sky-theme-modern .sky-control-label{color:#686c73;font-size:13px}\n"], dependencies: [{ kind: "directive", type: i1.λ2, selector: "[skyId]", exportAs: ["skyId"] }, { kind: "directive", type: i1.λ4, selector: "[skyTrim]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
20
- }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SkyFileAttachmentLabelComponent, decorators: [{
22
- type: Component,
23
- args: [{ selector: 'sky-file-attachment-label', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"sky-control-label\"\n ><span skyId skyTrim #labelContentId=\"skyId\"><ng-content /></span\n ><span class=\"sky-control-help-container\"\n ><ng-content select=\".sky-control-help\" /></span\n></span>\n", styles: [":host-context(.sky-theme-modern) .sky-control-label{color:#686c73;font-size:13px}.sky-theme-modern .sky-control-label{color:#686c73;font-size:13px}\n"] }]
24
- }], ctorParameters: () => [], propDecorators: { labelContentId: [{
25
- type: ViewChild,
26
- args: ['labelContentId']
27
- }] } });
28
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1hdHRhY2htZW50LWxhYmVsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9mb3Jtcy9zcmMvbGliL21vZHVsZXMvZmlsZS1hdHRhY2htZW50L2ZpbGUtYXR0YWNobWVudC1sYWJlbC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvZm9ybXMvc3JjL2xpYi9tb2R1bGVzL2ZpbGUtYXR0YWNobWVudC9maWxlLWF0dGFjaG1lbnQtbGFiZWwuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsU0FBUyxFQUNULE1BQU0sR0FDUCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sYUFBYSxDQUFDOzs7QUFFNUM7Ozs7O0dBS0c7QUFPSCxNQUFNLE9BQU8sK0JBQStCO0lBRzFDO1FBQ0UsTUFBTSxDQUFDLGFBQWEsQ0FBQyxDQUFDLFVBQVUsQ0FBQyxp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