@ndwnu/design-system 1.0.0 → 1.0.2

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 (36) hide show
  1. package/components/collapsible/collapsible.component.d.ts +1 -1
  2. package/components/dropdown/dropdown-trigger.directive.d.ts +1 -1
  3. package/components/form-field/form-field.component.d.ts +2 -3
  4. package/components/form-field/input/input.directive.d.ts +1 -0
  5. package/core/styles/ndw-styles.scss +88 -0
  6. package/core/styles/nwb-styles.scss +88 -0
  7. package/esm2022/components/accordion/accordion.component.mjs +3 -3
  8. package/esm2022/components/accordion/accordion.service.mjs +3 -3
  9. package/esm2022/components/badge/badge.component.mjs +4 -4
  10. package/esm2022/components/button/button.directive.mjs +3 -3
  11. package/esm2022/components/card/card.component.mjs +3 -3
  12. package/esm2022/components/collapsible/collapsible.animation.mjs +14 -24
  13. package/esm2022/components/collapsible/collapsible.component.mjs +5 -5
  14. package/esm2022/components/dropdown/dropdown-trigger.directive.mjs +11 -15
  15. package/esm2022/components/dropdown/dropdown.component.mjs +3 -3
  16. package/esm2022/components/form-field/checkbox/checkbox.component.mjs +3 -3
  17. package/esm2022/components/form-field/checkbox-group/checkbox-group.component.mjs +3 -3
  18. package/esm2022/components/form-field/error/error.component.mjs +3 -3
  19. package/esm2022/components/form-field/form-field.component.mjs +11 -10
  20. package/esm2022/components/form-field/info/info.component.mjs +3 -3
  21. package/esm2022/components/form-field/input/input.directive.mjs +10 -8
  22. package/esm2022/components/form-field/radio-button/radio-button.component.mjs +3 -3
  23. package/esm2022/components/form-field/radio-group/radio-group.component.mjs +3 -3
  24. package/esm2022/components/icon/icon.component.mjs +3 -3
  25. package/esm2022/components/icon/icon.service.mjs +3 -3
  26. package/esm2022/components/main-navigation/main-navigation.component.mjs +3 -3
  27. package/esm2022/components/main-navigation-menu/main-navigation-menu.component.mjs +3 -3
  28. package/esm2022/components/modal/modal-trigger.directive.mjs +3 -3
  29. package/esm2022/components/pill/pill.component.mjs +3 -3
  30. package/esm2022/components/tab/tab.component.mjs +3 -3
  31. package/esm2022/components/tab-group/tab-group.component.mjs +3 -3
  32. package/esm2022/components/tooltip/tooltip.component.mjs +4 -4
  33. package/esm2022/components/tooltip/tooltip.directive.mjs +3 -3
  34. package/fesm2022/ndwnu-design-system.mjs +111 -123
  35. package/fesm2022/ndwnu-design-system.mjs.map +1 -1
  36. package/package.json +5 -5
@@ -6,7 +6,7 @@ export declare class CollapsibleComponent {
6
6
  expanded: import("@angular/core").ModelSignal<boolean>;
7
7
  private readonly accordionService;
8
8
  get expandedClass(): boolean;
9
- animationState: import("@angular/core").Signal<"in" | "out">;
9
+ animationState: import("@angular/core").Signal<"open" | "closed">;
10
10
  onClick(): void;
11
11
  onKeydown(event: KeyboardEvent): void;
12
12
  private toggle;
@@ -5,7 +5,6 @@ export declare class DropdownTriggerDirective implements OnDestroy {
5
5
  toggleOnClick: import("@angular/core").InputSignal<boolean>;
6
6
  isOpen: import("@angular/core").ModelSignal<boolean>;
7
7
  toggle(): void;
8
- trapFocus(): void;
9
8
  private destroyRef;
10
9
  private elementRef;
11
10
  private overlay;
@@ -15,6 +14,7 @@ export declare class DropdownTriggerDirective implements OnDestroy {
15
14
  constructor();
16
15
  ngOnDestroy(): void;
17
16
  private open;
17
+ private trapFocus;
18
18
  private closeOverlayOnEscapeKey;
19
19
  private closeOverlayOnBackdropClick;
20
20
  private close;
@@ -1,9 +1,8 @@
1
- import { OnChanges } from '@angular/core';
2
1
  import { CheckboxComponent } from './checkbox';
3
2
  import { InputDirective } from './input';
4
3
  import { RadioGroupComponent } from './radio-group';
5
4
  import * as i0 from "@angular/core";
6
- export declare class FormFieldComponent implements OnChanges {
5
+ export declare class FormFieldComponent {
7
6
  input: import("@angular/core").Signal<InputDirective | undefined>;
8
7
  radioGroup: import("@angular/core").Signal<RadioGroupComponent | undefined>;
9
8
  checkboxes: import("@angular/core").Signal<readonly CheckboxComponent[]>;
@@ -17,7 +16,7 @@ export declare class FormFieldComponent implements OnChanges {
17
16
  inputSuffix: import("@angular/core").Signal<string | undefined>;
18
17
  uuid: `${string}-${string}-${string}-${string}-${string}`;
19
18
  constructor();
20
- ngOnChanges(): void;
19
+ clearInput(): void;
21
20
  private addInputTypeBasedClass;
22
21
  private setInputDisabledState;
23
22
  private setInputErrorState;
@@ -5,6 +5,7 @@ export declare class InputDirective implements OnInit {
5
5
  set error(error: boolean);
6
6
  set id(id: string);
7
7
  private readonly elementRef;
8
+ private readonly destroyRef;
8
9
  get element(): HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
9
10
  ngOnInit(): void;
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<InputDirective, never>;
@@ -20,6 +20,94 @@
20
20
  --ndw-text-primary: var(--ndw-color-primary);
21
21
  }
22
22
 
23
+ .cdk-overlay-container, .cdk-global-overlay-wrapper {
24
+ pointer-events: none;
25
+ top: 0;
26
+ left: 0;
27
+ height: 100%;
28
+ width: 100%;
29
+ }
30
+
31
+ .cdk-overlay-container {
32
+ position: fixed;
33
+ z-index: 1000;
34
+ }
35
+
36
+ .cdk-overlay-container:empty {
37
+ display: none;
38
+ }
39
+
40
+ .cdk-global-overlay-wrapper {
41
+ display: flex;
42
+ position: absolute;
43
+ z-index: 1000;
44
+ }
45
+
46
+ .cdk-overlay-pane {
47
+ position: absolute;
48
+ pointer-events: auto;
49
+ box-sizing: border-box;
50
+ z-index: 1000;
51
+ display: flex;
52
+ max-width: 100%;
53
+ max-height: 100%;
54
+ }
55
+
56
+ .cdk-overlay-backdrop {
57
+ position: absolute;
58
+ top: 0;
59
+ bottom: 0;
60
+ left: 0;
61
+ right: 0;
62
+ z-index: 1000;
63
+ pointer-events: auto;
64
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
65
+ transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
66
+ opacity: 0;
67
+ }
68
+
69
+ .cdk-overlay-backdrop.cdk-overlay-backdrop-showing {
70
+ opacity: 1;
71
+ }
72
+
73
+ .cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing {
74
+ opacity: 0.6;
75
+ }
76
+
77
+ .cdk-overlay-dark-backdrop {
78
+ background: rgba(0, 0, 0, 0.32);
79
+ }
80
+
81
+ .cdk-overlay-transparent-backdrop {
82
+ transition: visibility 1ms linear, opacity 1ms linear;
83
+ visibility: hidden;
84
+ opacity: 1;
85
+ }
86
+
87
+ .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing {
88
+ opacity: 0;
89
+ visibility: visible;
90
+ }
91
+
92
+ .cdk-overlay-backdrop-noop-animation {
93
+ transition: none;
94
+ }
95
+
96
+ .cdk-overlay-connected-position-bounding-box {
97
+ position: absolute;
98
+ z-index: 1000;
99
+ display: flex;
100
+ flex-direction: column;
101
+ min-width: 1px;
102
+ min-height: 1px;
103
+ }
104
+
105
+ .cdk-global-scrollblock {
106
+ position: fixed;
107
+ width: 100%;
108
+ overflow-y: scroll;
109
+ }
110
+
23
111
  :root {
24
112
  /* Colors */
25
113
  --_grey: 0, 0%;
@@ -20,6 +20,94 @@
20
20
  --ndw-text-primary: var(--ndw-color-grey-600);
21
21
  }
22
22
 
23
+ .cdk-overlay-container, .cdk-global-overlay-wrapper {
24
+ pointer-events: none;
25
+ top: 0;
26
+ left: 0;
27
+ height: 100%;
28
+ width: 100%;
29
+ }
30
+
31
+ .cdk-overlay-container {
32
+ position: fixed;
33
+ z-index: 1000;
34
+ }
35
+
36
+ .cdk-overlay-container:empty {
37
+ display: none;
38
+ }
39
+
40
+ .cdk-global-overlay-wrapper {
41
+ display: flex;
42
+ position: absolute;
43
+ z-index: 1000;
44
+ }
45
+
46
+ .cdk-overlay-pane {
47
+ position: absolute;
48
+ pointer-events: auto;
49
+ box-sizing: border-box;
50
+ z-index: 1000;
51
+ display: flex;
52
+ max-width: 100%;
53
+ max-height: 100%;
54
+ }
55
+
56
+ .cdk-overlay-backdrop {
57
+ position: absolute;
58
+ top: 0;
59
+ bottom: 0;
60
+ left: 0;
61
+ right: 0;
62
+ z-index: 1000;
63
+ pointer-events: auto;
64
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
65
+ transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
66
+ opacity: 0;
67
+ }
68
+
69
+ .cdk-overlay-backdrop.cdk-overlay-backdrop-showing {
70
+ opacity: 1;
71
+ }
72
+
73
+ .cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing {
74
+ opacity: 0.6;
75
+ }
76
+
77
+ .cdk-overlay-dark-backdrop {
78
+ background: rgba(0, 0, 0, 0.32);
79
+ }
80
+
81
+ .cdk-overlay-transparent-backdrop {
82
+ transition: visibility 1ms linear, opacity 1ms linear;
83
+ visibility: hidden;
84
+ opacity: 1;
85
+ }
86
+
87
+ .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing {
88
+ opacity: 0;
89
+ visibility: visible;
90
+ }
91
+
92
+ .cdk-overlay-backdrop-noop-animation {
93
+ transition: none;
94
+ }
95
+
96
+ .cdk-overlay-connected-position-bounding-box {
97
+ position: absolute;
98
+ z-index: 1000;
99
+ display: flex;
100
+ flex-direction: column;
101
+ min-width: 1px;
102
+ min-height: 1px;
103
+ }
104
+
105
+ .cdk-global-scrollblock {
106
+ position: fixed;
107
+ width: 100%;
108
+ overflow-y: scroll;
109
+ }
110
+
23
111
  :root {
24
112
  /* Colors */
25
113
  --_grey: 0, 0%;
@@ -18,10 +18,10 @@ export class AccordionComponent {
18
18
  });
19
19
  });
20
20
  }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: AccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "17.3.0", type: AccordionComponent, isStandalone: true, selector: "ndw-accordion", inputs: { collapseOthers: { classPropertyName: "collapseOthers", publicName: "collapseOthers", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "collapsibles", predicate: CollapsibleComponent, isSignal: true }], ngImport: i0, template: "<ng-content />\n", styles: [""] }); }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: AccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.0.1", type: AccordionComponent, isStandalone: true, selector: "ndw-accordion", inputs: { collapseOthers: { classPropertyName: "collapseOthers", publicName: "collapseOthers", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "collapsibles", predicate: CollapsibleComponent, isSignal: true }], ngImport: i0, template: "<ng-content />\n", styles: [""] }); }
23
23
  }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: AccordionComponent, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: AccordionComponent, decorators: [{
25
25
  type: Component,
26
26
  args: [{ selector: 'ndw-accordion', standalone: true, imports: [], template: "<ng-content />\n" }]
27
27
  }] });
@@ -8,10 +8,10 @@ export class AccordionService {
8
8
  setExpandedCollapsible(index) {
9
9
  this.expanded$.next(index);
10
10
  }
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: AccordionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
12
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: AccordionService, providedIn: 'root' }); }
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: AccordionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
12
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: AccordionService, providedIn: 'root' }); }
13
13
  }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: AccordionService, decorators: [{
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: AccordionService, decorators: [{
15
15
  type: Injectable,
16
16
  args: [{
17
17
  providedIn: 'root',