@ndwnu/design-system 1.0.3 → 1.0.4

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 (56) hide show
  1. package/components/alert/alert.component.d.ts +13 -0
  2. package/components/alert/alert.model.d.ts +6 -0
  3. package/components/alert/index.d.ts +2 -0
  4. package/components/breadcrumb/breadcrumb.component.d.ts +8 -0
  5. package/components/breadcrumb/index.d.ts +1 -0
  6. package/components/breadcrumb-group/breadcrumb-group.component.d.ts +7 -0
  7. package/components/breadcrumb-group/index.d.ts +1 -0
  8. package/components/dropdown/dropdown.component.d.ts +1 -1
  9. package/components/form-field/checkbox/checkbox.component.d.ts +1 -2
  10. package/components/form-field/input/input.directive.d.ts +6 -0
  11. package/components/form-field/radio-button/radio-button.component.d.ts +7 -4
  12. package/components/form-field/radio-group/radio-group.component.d.ts +9 -1
  13. package/components/icon/icon.component.d.ts +9 -6
  14. package/components/icon/index.d.ts +0 -2
  15. package/components/index.d.ts +5 -2
  16. package/components/main-navigation/main-navigation.model.d.ts +1 -0
  17. package/components/main-navigation-menu/main-navigation-menu.component.d.ts +1 -3
  18. package/components/router-breadcrumbs/index.d.ts +1 -0
  19. package/components/router-breadcrumbs/router-breadcrumbs.component.d.ts +15 -0
  20. package/core/styles/ndw-styles.scss +154 -102
  21. package/core/styles/nwb-styles.scss +116 -96
  22. package/esm2022/components/alert/alert.component.mjs +34 -0
  23. package/esm2022/components/alert/alert.model.mjs +8 -0
  24. package/esm2022/components/alert/index.mjs +3 -0
  25. package/esm2022/components/badge/badge.component.mjs +2 -2
  26. package/esm2022/components/breadcrumb/breadcrumb.component.mjs +15 -0
  27. package/esm2022/components/breadcrumb/index.mjs +2 -0
  28. package/esm2022/components/breadcrumb-group/breadcrumb-group.component.mjs +21 -0
  29. package/esm2022/components/breadcrumb-group/index.mjs +2 -0
  30. package/esm2022/components/collapsible/collapsible.component.mjs +3 -3
  31. package/esm2022/components/dropdown/dropdown.component.mjs +4 -4
  32. package/esm2022/components/form-field/checkbox/checkbox.component.mjs +4 -11
  33. package/esm2022/components/form-field/error/error.component.mjs +3 -3
  34. package/esm2022/components/form-field/form-field.component.mjs +5 -5
  35. package/esm2022/components/form-field/info/info.component.mjs +2 -2
  36. package/esm2022/components/form-field/input/input.directive.mjs +33 -2
  37. package/esm2022/components/form-field/radio-button/radio-button.component.mjs +28 -10
  38. package/esm2022/components/form-field/radio-group/radio-group.component.mjs +45 -5
  39. package/esm2022/components/icon/icon.component.mjs +31 -16
  40. package/esm2022/components/icon/index.mjs +1 -3
  41. package/esm2022/components/index.mjs +6 -3
  42. package/esm2022/components/main-navigation/main-navigation.component.mjs +3 -3
  43. package/esm2022/components/main-navigation/main-navigation.model.mjs +1 -1
  44. package/esm2022/components/main-navigation-menu/main-navigation-menu.component.mjs +4 -8
  45. package/esm2022/components/router-breadcrumbs/index.mjs +2 -0
  46. package/esm2022/components/router-breadcrumbs/router-breadcrumbs.component.mjs +37 -0
  47. package/esm2022/components/tab/tab.component.mjs +2 -2
  48. package/esm2022/components/tooltip/tooltip.component.mjs +2 -2
  49. package/fesm2022/ndwnu-design-system.mjs +326 -160
  50. package/fesm2022/ndwnu-design-system.mjs.map +1 -1
  51. package/package.json +4 -7
  52. package/assets/icons/icons.json +0 -878
  53. package/components/icon/icon.model.d.ts +0 -5
  54. package/components/icon/icon.service.d.ts +0 -9
  55. package/esm2022/components/icon/icon.model.mjs +0 -2
  56. package/esm2022/components/icon/icon.service.mjs +0 -26
@@ -1,5 +0,0 @@
1
- export interface Icon {
2
- name: string;
3
- svg?: string;
4
- url?: string;
5
- }
@@ -1,9 +0,0 @@
1
- import { Icon } from './icon.model';
2
- import * as i0 from "@angular/core";
3
- export declare class IconService {
4
- private icons;
5
- getIcon(name: string): Icon;
6
- setIcons(icons: Icon[]): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
9
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25kdy9zcmMvY29tcG9uZW50cy9pY29uL2ljb24ubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSWNvbiB7XG4gIG5hbWU6IHN0cmluZztcbiAgc3ZnPzogc3RyaW5nO1xuICB1cmw/OiBzdHJpbmc7XG59XG4iXX0=
@@ -1,26 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class IconService {
4
- constructor() {
5
- this.icons = [];
6
- }
7
- getIcon(name) {
8
- const icon = this.icons.find((icon) => icon.name === name);
9
- if (!icon) {
10
- throw new Error(`Icon ${name} not found`);
11
- }
12
- return icon;
13
- }
14
- setIcons(icons) {
15
- this.icons = icons;
16
- }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: IconService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
18
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: IconService, providedIn: 'root' }); }
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: IconService, decorators: [{
21
- type: Injectable,
22
- args: [{
23
- providedIn: 'root',
24
- }]
25
- }] });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmR3L3NyYy9jb21wb25lbnRzL2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