@tedi-design-system/angular 6.2.0-rc.9 → 6.3.0-rc.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 (42) hide show
  1. package/README.md +26 -1
  2. package/community/components/cards/accordion/accordion/accordion.component.d.ts +3 -0
  3. package/community/components/cards/accordion/accordion/accordion.component.d.ts.map +1 -1
  4. package/community/components/cards/accordion/accordion-item/accordion-item.component.d.ts +5 -3
  5. package/community/components/cards/accordion/accordion-item/accordion-item.component.d.ts.map +1 -1
  6. package/community/components/cards/accordion/accordion-item-content/accordion-item-content.component.d.ts +1 -0
  7. package/community/components/cards/accordion/accordion-item-content/accordion-item-content.component.d.ts.map +1 -1
  8. package/community/components/cards/accordion/accordion-item-header/accordion-item-header.component.d.ts +10 -2
  9. package/community/components/cards/accordion/accordion-item-header/accordion-item-header.component.d.ts.map +1 -1
  10. package/community/components/form/file-dropzone/file.service.d.ts.map +1 -1
  11. package/community/components/form/input/input.component.d.ts +3 -0
  12. package/community/components/form/input/input.component.d.ts.map +1 -1
  13. package/fesm2022/tedi-design-system-angular-community.mjs +50 -30
  14. package/fesm2022/tedi-design-system-angular-community.mjs.map +1 -1
  15. package/fesm2022/tedi-design-system-angular-tedi.mjs +452 -24
  16. package/fesm2022/tedi-design-system-angular-tedi.mjs.map +1 -1
  17. package/index.css +1 -1
  18. package/package.json +10 -10
  19. package/tedi/components/cards/accordion/accordion/accordion.component.d.ts +14 -0
  20. package/tedi/components/cards/accordion/accordion/accordion.component.d.ts.map +1 -0
  21. package/tedi/components/cards/accordion/accordion-item/accordion-item.component.d.ts +90 -0
  22. package/tedi/components/cards/accordion/accordion-item/accordion-item.component.d.ts.map +1 -0
  23. package/tedi/components/cards/accordion/index.d.ts +3 -0
  24. package/tedi/components/cards/accordion/index.d.ts.map +1 -0
  25. package/tedi/components/cards/index.d.ts +2 -0
  26. package/tedi/components/cards/index.d.ts.map +1 -0
  27. package/tedi/components/form/form-field/form-field-control.d.ts +31 -0
  28. package/tedi/components/form/form-field/form-field-control.d.ts.map +1 -0
  29. package/tedi/components/form/form-field/form-field.component.d.ts +57 -0
  30. package/tedi/components/form/form-field/form-field.component.d.ts.map +1 -0
  31. package/tedi/components/form/index.d.ts +2 -0
  32. package/tedi/components/form/index.d.ts.map +1 -1
  33. package/tedi/components/form/text-field/text-field.component.d.ts +38 -0
  34. package/tedi/components/form/text-field/text-field.component.d.ts.map +1 -0
  35. package/tedi/components/index.d.ts +1 -0
  36. package/tedi/components/index.d.ts.map +1 -1
  37. package/tedi/components/loader/spinner/spinner.component.d.ts +3 -0
  38. package/tedi/components/loader/spinner/spinner.component.d.ts.map +1 -1
  39. package/tedi/components/tags/index.d.ts +1 -0
  40. package/tedi/components/tags/index.d.ts.map +1 -1
  41. package/tedi/components/tags/status-badge/status-badge.component.d.ts +55 -0
  42. package/tedi/components/tags/status-badge/status-badge.component.d.ts.map +1 -0
package/README.md CHANGED
@@ -30,9 +30,34 @@ To view and develop components in isolation, start Storybook for Angular:
30
30
  npm run start
31
31
  ```
32
32
 
33
+ ## Angular Version Support
34
+
35
+ The library supports the three latest Angular major versions. Angular releases a new major every 6 months and deprecates versions after 18 months. See the [Angular release schedule](https://angular.dev/reference/releases) for upcoming dates.
36
+
37
+ **Currently supported: Angular 19, 20, 21**
38
+
39
+ CI runs build and test jobs against all supported versions using a matrix strategy. The base version (used for `npm ci`) is determined by `devDependencies` in `package.json` — the other versions are installed on top via `ng update`.
40
+
41
+ ### Adding a new Angular version
42
+
43
+ When a new Angular major is released (e.g. v22):
44
+
45
+ 1. **`package.json`** — add `|| ^22.0.0` to every Angular peer dependency and `ngx-float-ui`
46
+ 2. **`.github/workflows/angular-test-and-lint.yml`** — add `22` to the `angular-version` matrix in the `build` and `test` jobs
47
+ 3. **`.github/workflows/angular-release.yml`** — add `22` to the `angular-version` matrix in the `test` job
48
+
49
+ ### Dropping a deprecated Angular version
50
+
51
+ When an Angular major reaches end-of-life (e.g. v19):
52
+
53
+ 1. **`package.json`** — remove `^19.0.0 ||` from every Angular peer dependency and `ngx-float-ui`
54
+ 2. **`.github/workflows/angular-test-and-lint.yml`** — remove `19` from the `angular-version` matrix in the `build` and `test` jobs
55
+ 3. **`.github/workflows/angular-release.yml`** — remove `19` from the `angular-version` matrix in the `test` job
56
+ 4. Bump `devDependencies` to the new minimum supported Angular version so the library is always built and developed against a supported release
57
+
33
58
  ## Contributing
34
59
 
35
- Check the [wiki](https://github.com/TEDI-Design-System/general) for component guidelines and coding standards.
60
+ Check the [wiki](https://github.com/TEDI-Design-System/general) for component guidelines and coding standards.
36
61
  Report issues or contribute via [GitHub Issues](https://github.com/TEDI-Design-System/angular/issues).
37
62
 
38
63
  ---
@@ -1,6 +1,9 @@
1
1
  import { OnInit } from "@angular/core";
2
2
  import { AccordionItemComponent } from "../accordion-item/accordion-item.component";
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * @deprecated Use Accordion from TEDI-ready instead. This component will be removed from future versions.
6
+ */
4
7
  export declare class AccordionComponent implements OnInit {
5
8
  /**
6
9
  * id-s of items that should be opened by default.
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.component.d.ts","sourceRoot":"","sources":["../../../../../../community/components/cards/accordion/accordion/accordion.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;;AAEpF,qBAQa,kBAAmB,YAAW,MAAM;IAC/C;;OAEG;IACH,gBAAgB,4DAAqB;IACrC;;;OAGG;IACH,UAAU,+CAAyB;IAEnC,cAAc,oEAEX;IAEH,OAAO,CAAC,SAAS,CAAiB;;IA8BlC,OAAO,CAAC,oBAAoB;IAS5B,QAAQ;yCAtDG,kBAAkB;2CAAlB,kBAAkB;CAyD9B"}
1
+ {"version":3,"file":"accordion.component.d.ts","sourceRoot":"","sources":["../../../../../../community/components/cards/accordion/accordion/accordion.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;;AAEpF;;GAEG;AACH,qBAQa,kBAAmB,YAAW,MAAM;IAC/C;;OAEG;IACH,gBAAgB,4DAAqB;IACrC;;;OAGG;IACH,UAAU,+CAAyB;IAEnC,cAAc,oEAEX;IAEH,OAAO,CAAC,SAAS,CAAiB;;IA8BlC,OAAO,CAAC,oBAAoB;IAS5B,QAAQ;yCAtDG,kBAAkB;2CAAlB,kBAAkB;CAyD9B"}
@@ -3,18 +3,20 @@ export declare class AccordionItemComponent {
3
3
  /**
4
4
  * Accordion item id
5
5
  */
6
- id: import("@angular/core").InputSignal<string>;
6
+ id: import("@angular/core").InputSignal<string | undefined>;
7
7
  /**
8
8
  * Whether accordion item is selected
9
9
  */
10
10
  selected: import("@angular/core").InputSignal<boolean>;
11
- opened: import("@angular/core").WritableSignal<boolean>;
11
+ opened: import("@angular/core").ModelSignal<boolean>;
12
+ private idGenerator;
13
+ private itemId;
12
14
  headerId: import("@angular/core").Signal<string>;
13
15
  contentId: import("@angular/core").Signal<string>;
14
16
  open(): void;
15
17
  close(): void;
16
18
  toggle(): void;
17
19
  static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "tedi-accordion-item", never, { "id": { "alias": "id"; "required": true; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "tedi-accordion-item", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; }, { "opened": "openedChange"; }, never, ["*"], true, never>;
19
21
  }
20
22
  //# sourceMappingURL=accordion-item.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accordion-item.component.d.ts","sourceRoot":"","sources":["../../../../../../community/components/cards/accordion/accordion-item/accordion-item.component.ts"],"names":[],"mappings":";AAUA,qBAYa,sBAAsB;IACjC;;OAEG;IACH,EAAE,8CAA4B;IAC9B;;OAEG;IACH,QAAQ,+CAAyB;IAEjC,MAAM,kDAA0B;IAEhC,QAAQ,yCAEL;IACH,SAAS,yCAEN;IAEH,IAAI;IAIJ,KAAK;IAIL,MAAM;yCA3BK,sBAAsB;2CAAtB,sBAAsB;CA8BlC"}
1
+ {"version":3,"file":"accordion-item.component.d.ts","sourceRoot":"","sources":["../../../../../../community/components/cards/accordion/accordion-item/accordion-item.component.ts"],"names":[],"mappings":";AAYA,qBAYa,sBAAsB;IACjC;;OAEG;IACH,EAAE,0DAAmB;IACrB;;OAEG;IACH,QAAQ,+CAAyB;IAEjC,MAAM,+CAAyB;IAE/B,OAAO,CAAC,WAAW,CAAwB;IAE3C,OAAO,CAAC,MAAM,CAEZ;IAEF,QAAQ,yCAEL;IACH,SAAS,yCAEN;IAEH,IAAI;IAIJ,KAAK;IAIL,MAAM;yCAjCK,sBAAsB;2CAAtB,sBAAsB;CAoClC"}
@@ -6,6 +6,7 @@ export declare class AccordionItemContentComponent {
6
6
  accordionItem: AccordionItemComponent;
7
7
  headerId: import("@angular/core").Signal<string>;
8
8
  contentId: import("@angular/core").Signal<string>;
9
+ opened: import("@angular/core").ModelSignal<boolean>;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemContentComponent, never>;
10
11
  static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemContentComponent, "tedi-accordion-item-content", never, { "background": { "alias": "background"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
11
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"accordion-item-content.component.d.ts","sourceRoot":"","sources":["../../../../../../community/components/cards/accordion/accordion-item-content/accordion-item-content.component.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;;AAEpF,qBAYa,6BAA6B;IACxC,UAAU,8DAAuB;IAEjC,aAAa,yBAAkC;IAC/C,QAAQ,yCAA+B;IACvC,SAAS,yCAAgC;yCAL9B,6BAA6B;2CAA7B,6BAA6B;CAMzC"}
1
+ {"version":3,"file":"accordion-item-content.component.d.ts","sourceRoot":"","sources":["../../../../../../community/components/cards/accordion/accordion-item-content/accordion-item-content.component.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;;AAEpF,qBAYa,6BAA6B;IACxC,UAAU,8DAAuB;IAEjC,aAAa,yBAAkC;IAC/C,QAAQ,yCAA+B;IACvC,SAAS,yCAAgC;IACzC,MAAM,+CAA6B;yCANxB,6BAA6B;2CAA7B,6BAA6B;CAOzC"}
@@ -29,14 +29,22 @@ export declare class AccordionItemHeaderComponent {
29
29
  * Color of the indicator arrow
30
30
  */
31
31
  indicatorColor: import("@angular/core").InputSignal<IconColor | undefined>;
32
+ /**
33
+ * Whether indicator is displayed before or after the main content
34
+ */
35
+ indicatorPosition: import("@angular/core").InputSignal<"start" | "end">;
36
+ /**
37
+ * Whether header is clickable
38
+ */
39
+ clickable: import("@angular/core").InputSignal<boolean>;
32
40
  accordionItem: AccordionItemComponent;
33
- opened: import("@angular/core").WritableSignal<boolean>;
41
+ opened: import("@angular/core").ModelSignal<boolean>;
34
42
  headerId: import("@angular/core").Signal<string>;
35
43
  contentId: import("@angular/core").Signal<string>;
36
44
  toggleButtonText: import("@angular/core").Signal<string | undefined>;
37
45
  indicatorIconColor: import("@angular/core").Signal<IconColor>;
38
46
  toggle(): void;
39
47
  static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemHeaderComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemHeaderComponent, "tedi-accordion-item-header", never, { "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "openText": { "alias": "openText"; "required": false; "isSignal": true; }; "closeText": { "alias": "closeText"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "background": { "alias": "background"; "required": false; "isSignal": true; }; "indicatorColor": { "alias": "indicatorColor"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[tedi-accordion-header-end]"], true, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemHeaderComponent, "tedi-accordion-item-header", never, { "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "openText": { "alias": "openText"; "required": false; "isSignal": true; }; "closeText": { "alias": "closeText"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "background": { "alias": "background"; "required": false; "isSignal": true; }; "indicatorColor": { "alias": "indicatorColor"; "required": false; "isSignal": true; }; "indicatorPosition": { "alias": "indicatorPosition"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[tedi-accordion-header-end]"], true, never>;
41
49
  }
42
50
  //# sourceMappingURL=accordion-item-header.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accordion-item-header.component.d.ts","sourceRoot":"","sources":["../../../../../../community/components/cards/accordion/accordion-item-header/accordion-item-header.component.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAEL,iBAAiB,EAClB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,SAAS,EAAkC,MAAM,kCAAkC,CAAC;;AAI7F,qBAYa,4BAA4B;IACvC;;;OAGG;IACH,SAAS,+CAAyB;IAClC;;OAEG;IACH,QAAQ,0DAAmB;IAC3B;;OAEG;IACH,SAAS,0DAAmB;IAC5B;;OAEG;IACH,OAAO,qEAA8B;IACrC;;OAEG;IACH,UAAU,8DAAuB;IACjC;;OAEG;IACH,cAAc,6DAAsB;IAEpC,aAAa,yBAAkC;IAC/C,MAAM,kDAA6B;IACnC,QAAQ,yCAA+B;IACvC,SAAS,yCAAgC;IAEzC,gBAAgB,qDAKb;IAEH,kBAAkB,4CAOf;IAEH,MAAM;yCAhDK,4BAA4B;2CAA5B,4BAA4B;CAmDxC"}
1
+ {"version":3,"file":"accordion-item-header.component.d.ts","sourceRoot":"","sources":["../../../../../../community/components/cards/accordion/accordion-item-header/accordion-item-header.component.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAEL,iBAAiB,EAClB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,SAAS,EAGV,MAAM,kCAAkC,CAAC;;AAK1C,qBAiBa,4BAA4B;IACvC;;;OAGG;IACH,SAAS,+CAAyB;IAClC;;OAEG;IACH,QAAQ,0DAAmB;IAC3B;;OAEG;IACH,SAAS,0DAAmB;IAC5B;;OAEG;IACH,OAAO,qEAA8B;IACrC;;OAEG;IACH,UAAU,8DAAuB;IACjC;;OAEG;IACH,cAAc,6DAAsB;IACpC;;OAEG;IACH,iBAAiB,uDAAiC;IAClD;;OAEG;IACH,SAAS,+CAAe;IAExB,aAAa,yBAAkC;IAC/C,MAAM,+CAA6B;IACnC,QAAQ,yCAA+B;IACvC,SAAS,yCAAgC;IAEzC,gBAAgB,qDAKb;IAEH,kBAAkB,4CAOf;IAEH,MAAM;yCAxDK,4BAA4B;2CAA5B,4BAA4B;CA2DxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"file.service.d.ts","sourceRoot":"","sources":["../../../../../community/components/form/file-dropzone/file.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,EAAU,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;;AAEtD,qBACa,WAAW;IACtB,IAAI,wBAAgD;IAEpD,SAAS,CAAC,MAAM,yDAA8B;IAE9C,IAAI,KAAK,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC,CAElC;IAEY,QAAQ,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAkC7D,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,YAAY,EAAE;IAgBxD,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YAQhD,iBAAiB;IA2B/B,OAAO,CAAC,SAAS;yCA9FN,WAAW;6CAAX,WAAW;CAuGvB"}
1
+ {"version":3,"file":"file.service.d.ts","sourceRoot":"","sources":["../../../../../community/components/form/file-dropzone/file.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,EAAU,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;;AAEtD,qBACa,WAAW;IACtB,IAAI,wBAAgD;IAEpD,SAAS,CAAC,MAAM,yDAA8B;IAE9C,IAAI,KAAK,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC,CAElC;IAEY,QAAQ,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAkC7D,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,YAAY,EAAE;IAgBxD,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YAQhD,iBAAiB;IA2B/B,OAAO,CAAC,SAAS;yCA9FN,WAAW;6CAAX,WAAW;CAqGvB"}
@@ -1,6 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export type InputSize = "small" | "default";
3
3
  export type InputState = "valid" | "error" | "default";
4
+ /**
5
+ * @deprecated Use TextField from TEDI-ready instead. This component will be removed from future versions.
6
+ */
4
7
  export declare class InputComponent {
5
8
  /**
6
9
  * Size of the input.
@@ -1 +1 @@
1
- {"version":3,"file":"input.component.d.ts","sourceRoot":"","sources":["../../../../../community/components/form/input/input.component.ts"],"names":[],"mappings":";AAQA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;AAEvD,qBAYa,cAAc;IACzB;;;OAGG;IACH,IAAI,iDAA+B;IAEnC;;;OAGG;IACH,KAAK,kDAAgC;IAErC,eAAe,yCAKZ;yCAlBQ,cAAc;2CAAd,cAAc;CAmB1B"}
1
+ {"version":3,"file":"input.component.d.ts","sourceRoot":"","sources":["../../../../../community/components/form/input/input.component.ts"],"names":[],"mappings":";AAQA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;AAEvD;;GAEG;AACH,qBAYa,cAAc;IACzB;;;OAGG;IACH,IAAI,iDAA+B;IAEnC;;;OAGG;IACH,KAAK,kDAAgC;IAErC,eAAe,yCAKZ;yCAlBQ,cAAc;2CAAd,cAAc;CAmB1B"}