@skyux/forms 11.0.0-alpha.8 → 11.0.0-alpha.9

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 (68) hide show
  1. package/documentation.json +3835 -4255
  2. package/esm2022/index.mjs +14 -11
  3. package/esm2022/lib/modules/checkbox/checkbox.component.mjs +19 -25
  4. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment-change.mjs +2 -0
  5. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment-click.mjs +2 -0
  6. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment-label.component.mjs +32 -0
  7. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment.component.mjs +485 -0
  8. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment.module.mjs +24 -0
  9. package/esm2022/lib/modules/file-attachment/file-attachment/file-attachment.service.mjs +103 -0
  10. package/esm2022/lib/modules/file-attachment/file-attachments.module.mjs +10 -73
  11. package/esm2022/lib/modules/file-attachment/file-drop/file-drop-change.mjs +2 -0
  12. package/esm2022/lib/modules/file-attachment/file-drop/file-drop.component.mjs +336 -0
  13. package/esm2022/lib/modules/file-attachment/file-drop/file-drop.module.mjs +18 -0
  14. package/esm2022/lib/modules/file-attachment/file-drop/file-item.component.mjs +163 -0
  15. package/esm2022/lib/modules/file-attachment/file-drop/file-link.mjs +2 -0
  16. package/esm2022/lib/modules/file-attachment/shared/file-item-error-type.mjs +2 -0
  17. package/esm2022/lib/modules/file-attachment/shared/file-item.mjs +2 -0
  18. package/esm2022/lib/modules/file-attachment/shared/file-item.service.mjs +71 -0
  19. package/esm2022/lib/modules/file-attachment/shared/file-size.pipe.mjs +61 -0
  20. package/esm2022/lib/modules/file-attachment/shared/file-validate-function.mjs +2 -0
  21. package/esm2022/lib/modules/input-box/input-box.component.mjs +18 -23
  22. package/esm2022/lib/modules/radio/radio-group.component.mjs +16 -23
  23. package/esm2022/lib/modules/radio/radio.component.mjs +15 -22
  24. package/esm2022/lib/modules/shared/form-field-label-text-required.directive.mjs +37 -0
  25. package/esm2022/lib/modules/shared/form-field-label-text-required.service.mjs +6 -4
  26. package/esm2022/lib/modules/toggle-switch/toggle-switch.component.mjs +14 -21
  27. package/fesm2022/skyux-forms.mjs +264 -269
  28. package/fesm2022/skyux-forms.mjs.map +1 -1
  29. package/index.d.ts +21 -18
  30. package/lib/modules/checkbox/checkbox.component.d.ts +4 -5
  31. package/lib/modules/file-attachment/{types → file-attachment}/file-attachment-change.d.ts +1 -1
  32. package/lib/modules/file-attachment/{types → file-attachment}/file-attachment-click.d.ts +1 -1
  33. package/lib/modules/file-attachment/{file-attachment-label.component.d.ts → file-attachment/file-attachment-label.component.d.ts} +7 -5
  34. package/lib/modules/file-attachment/{file-attachment.component.d.ts → file-attachment/file-attachment.component.d.ts} +8 -8
  35. package/lib/modules/file-attachment/file-attachment/file-attachment.module.d.ts +9 -0
  36. package/lib/modules/file-attachment/{file-attachment.service.d.ts → file-attachment/file-attachment.service.d.ts} +2 -2
  37. package/lib/modules/file-attachment/file-attachments.module.d.ts +6 -15
  38. package/lib/modules/file-attachment/{types → file-drop}/file-drop-change.d.ts +1 -1
  39. package/lib/modules/file-attachment/{file-drop.component.d.ts → file-drop/file-drop.component.d.ts} +7 -8
  40. package/lib/modules/file-attachment/file-drop/file-drop.module.d.ts +9 -0
  41. package/lib/modules/file-attachment/{file-item.component.d.ts → file-drop/file-item.component.d.ts} +3 -3
  42. package/lib/modules/file-attachment/{file-size.pipe.d.ts → shared/file-size.pipe.d.ts} +2 -3
  43. package/lib/modules/input-box/input-box.component.d.ts +2 -3
  44. package/lib/modules/radio/radio-group.component.d.ts +4 -5
  45. package/lib/modules/radio/radio.component.d.ts +4 -5
  46. package/lib/modules/shared/form-field-label-text-required.directive.d.ts +14 -0
  47. package/lib/modules/shared/form-field-label-text-required.service.d.ts +2 -1
  48. package/lib/modules/toggle-switch/toggle-switch.component.d.ts +4 -5
  49. package/package.json +9 -9
  50. package/esm2022/lib/modules/file-attachment/file-attachment-label.component.mjs +0 -28
  51. package/esm2022/lib/modules/file-attachment/file-attachment.component.mjs +0 -475
  52. package/esm2022/lib/modules/file-attachment/file-attachment.service.mjs +0 -103
  53. package/esm2022/lib/modules/file-attachment/file-drop.component.mjs +0 -328
  54. package/esm2022/lib/modules/file-attachment/file-item-error-type.mjs +0 -2
  55. package/esm2022/lib/modules/file-attachment/file-item.component.mjs +0 -155
  56. package/esm2022/lib/modules/file-attachment/file-item.mjs +0 -2
  57. package/esm2022/lib/modules/file-attachment/file-item.service.mjs +0 -70
  58. package/esm2022/lib/modules/file-attachment/file-link.mjs +0 -2
  59. package/esm2022/lib/modules/file-attachment/file-size.pipe.mjs +0 -61
  60. package/esm2022/lib/modules/file-attachment/file-validate-function.mjs +0 -2
  61. package/esm2022/lib/modules/file-attachment/types/file-attachment-change.mjs +0 -2
  62. package/esm2022/lib/modules/file-attachment/types/file-attachment-click.mjs +0 -2
  63. package/esm2022/lib/modules/file-attachment/types/file-drop-change.mjs +0 -2
  64. /package/lib/modules/file-attachment/{file-link.d.ts → file-drop/file-link.d.ts} +0 -0
  65. /package/lib/modules/file-attachment/{file-item-error-type.d.ts → shared/file-item-error-type.d.ts} +0 -0
  66. /package/lib/modules/file-attachment/{file-item.d.ts → shared/file-item.d.ts} +0 -0
  67. /package/lib/modules/file-attachment/{file-item.service.d.ts → shared/file-item.service.d.ts} +0 -0
  68. /package/lib/modules/file-attachment/{file-validate-function.d.ts → shared/file-validate-function.d.ts} +0 -0
@@ -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: () => [], propD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