@ndwnu/design-system 9.2.0 → 10.0.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.
- package/assets/images/map-button-icons.svg +84 -34
- package/fesm2022/ndwnu-design-system.mjs +443 -811
- package/fesm2022/ndwnu-design-system.mjs.map +1 -1
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +3 -5
- package/lib/components/breadcrumb-group/breadcrumb-group.component.d.ts +2 -1
- package/lib/components/form-field/autosuggest/autosuggest-add-option/autosuggest-add-option.component.d.ts +4 -6
- package/lib/components/form-field/autosuggest/autosuggest-option/autosuggest-option.component.d.ts +6 -17
- package/lib/components/form-field/autosuggest/autosuggest-option/index.d.ts +0 -1
- package/lib/components/form-field/autosuggest/autosuggest-panel/autosuggest-panel.component.d.ts +4 -35
- package/lib/components/form-field/autosuggest/autosuggest-panel/index.d.ts +1 -0
- package/lib/components/form-field/autosuggest/autosuggest.directive.d.ts +6 -68
- package/lib/components/form-field/autosuggest/index.d.ts +4 -4
- package/lib/components/form-field/form-field.model.d.ts +1 -0
- package/lib/components/form-field/radio-button/radio-button.component.d.ts +4 -3
- package/lib/components/form-field/radio-group/radio-group.component.d.ts +0 -2
- package/lib/components/index.d.ts +2 -0
- package/lib/components/list/list.component.d.ts +7 -2
- package/lib/components/list-item/list-item.component.d.ts +9 -3
- package/lib/components/map-button/map-button.component.d.ts +3 -3
- package/lib/components/map-button/map-button.model.d.ts +2 -2
- package/lib/components/map-display/map-display.component.d.ts +1 -1
- package/lib/components/map-legend/index.d.ts +2 -0
- package/lib/components/map-legend/map-legend-group/map-legend-group.component.d.ts +9 -0
- package/lib/components/map-legend/map-legend-option/map-legend-option.component.d.ts +7 -0
- package/lib/components/map-legend/map-legend.component.d.ts +17 -0
- package/lib/components/map-legend/map-legend.model.d.ts +33 -0
- package/lib/components/multi-select/multi-select.component.d.ts +2 -1
- package/lib/components/popover/popover-trigger.directive.d.ts +3 -1
- package/lib/components/router-breadcrumbs/router-breadcrumbs.component.d.ts +2 -11
- package/lib/components/tab-group/tab-group.component.d.ts +2 -1
- package/lib/components/table/ag-grid-theme.d.ts +2 -0
- package/lib/components/table/index.d.ts +1 -0
- package/lib/components/toast/toast-list/toast-list.component.d.ts +17 -0
- package/lib/components/toast/toast.component.d.ts +16 -17
- package/lib/components/toast/toast.service.d.ts +26 -7
- package/lib/models/index.d.ts +1 -1
- package/package.json +4 -2
- package/styles/base/_colors.scss +2 -0
- package/styles/base/_variables.scss +1 -0
- package/styles/components/_map.scss +114 -0
- package/styles/components/_table.scss +8 -0
- package/styles/components/index.scss +2 -0
- package/lib/components/form-field/autosuggest/autosuggest-option/autosuggest-option.model.d.ts +0 -5
- package/lib/components/form-field/autosuggest/autosuggest-option/base-autosuggest-option.component.d.ts +0 -26
- package/lib/models/image.model.d.ts +0 -4
|
@@ -1,12 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
type ToastId = string;
|
|
4
|
+
interface ToastData {
|
|
5
|
+
id: ToastId;
|
|
6
|
+
message: string;
|
|
7
|
+
duration: number;
|
|
8
|
+
remainingTime: number;
|
|
9
|
+
}
|
|
3
10
|
export declare class ToastService {
|
|
4
|
-
private
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
#private;
|
|
12
|
+
paused: Signal<boolean>;
|
|
13
|
+
get toasts(): Signal<ToastData[]>;
|
|
14
|
+
constructor();
|
|
15
|
+
/**
|
|
16
|
+
* Close a toast by its ID. If no ID is provided, all toasts will be closed.
|
|
17
|
+
*/
|
|
18
|
+
close(id?: string): void;
|
|
19
|
+
/**
|
|
20
|
+
* Open a toast notification with the given message and optional duration.
|
|
21
|
+
* @param message The message to display in the toast.
|
|
22
|
+
* @param duration Optional duration in milliseconds for which the toast should be visible. Defaults to 5000ms.
|
|
23
|
+
* @returns The ID of the created toast. Can be used to close the toast.
|
|
24
|
+
*/
|
|
25
|
+
open(message: string, duration?: number): `${string}-${string}-${string}-${string}-${string}`;
|
|
26
|
+
pause(): void;
|
|
27
|
+
resume(): void;
|
|
10
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
11
29
|
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
|
12
30
|
}
|
|
31
|
+
export {};
|
package/lib/models/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndwnu/design-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^19.0.0",
|
|
6
6
|
"@angular/cdk": "^19.0.0",
|
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
"@angular/core": "^19.0.0",
|
|
9
9
|
"@angular/forms": "^19.0.0",
|
|
10
10
|
"@angular/router": "^19.0.0",
|
|
11
|
-
"@ndwnu/core": "0.0.3-beta.
|
|
11
|
+
"@ndwnu/core": "0.0.3-beta.5",
|
|
12
12
|
"@storybook/addon-actions": "8.6.12",
|
|
13
13
|
"@storybook/angular": "8.6.12",
|
|
14
|
+
"ag-grid-angular": "^33.3.0",
|
|
15
|
+
"ag-grid-community": "^33.3.0",
|
|
14
16
|
"rxjs": "^7.8.0"
|
|
15
17
|
},
|
|
16
18
|
"sideEffects": false,
|
package/styles/base/_colors.scss
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
--_grey-300: 192, 5%, 82%;
|
|
9
9
|
--_grey-200: 204, 11%, 91%;
|
|
10
10
|
--_grey-100: 200, 16%, 96%;
|
|
11
|
+
--_grey-50: 0, 0%, 99%;
|
|
11
12
|
--_white: 0, 0%, 100%;
|
|
12
13
|
|
|
13
14
|
--ndw-color-grey-700: hsl(var(--_grey-700));
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
--ndw-color-grey-300: hsl(var(--_grey-300));
|
|
18
19
|
--ndw-color-grey-200: hsl(var(--_grey-200));
|
|
19
20
|
--ndw-color-grey-100: hsl(var(--_grey-100));
|
|
21
|
+
--ndw-color-grey-50: hsl(var(--_grey-50));
|
|
20
22
|
--ndw-color-white: hsl(var(--_white));
|
|
21
23
|
|
|
22
24
|
// Primary
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
--ndw-elevation-content: 0 0.125rem 0.125rem 0 hsla(var(--_grey-600), 0.05);
|
|
29
29
|
--ndw-elevation-dropdown: 0 0.25rem 1rem hsla(var(--_grey-600), 0.125);
|
|
30
30
|
--ndw-elevation-popover: 0 0.5rem 1.25rem hsla(var(--_grey-600), 0.125);
|
|
31
|
+
--ndw-elevation-toast: 0 0.75rem 1.25rem hsla(var(--_grey-600), 0.125);
|
|
31
32
|
--ndw-backdrop-color: var(--ndw-alpha-black-040);
|
|
32
33
|
|
|
33
34
|
/* Animation */
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
@use '../base/typography' as *;
|
|
2
|
+
|
|
3
|
+
.map-control {
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
|
|
9
|
+
height: 40px;
|
|
10
|
+
min-width: 40px;
|
|
11
|
+
line-height: 100%;
|
|
12
|
+
|
|
13
|
+
border: var(--ndw-border-size-sm) solid var(--ndw-color-grey-200);
|
|
14
|
+
border-radius: var(--ndw-border-radius-sm);
|
|
15
|
+
box-shadow: var(--ndw-elevation-content);
|
|
16
|
+
|
|
17
|
+
@include ndw-paragraph-bold-md;
|
|
18
|
+
color: var(--ndw-color-grey-500);
|
|
19
|
+
background-color: var(--ndw-color-white);
|
|
20
|
+
transition: var(--ndw-animation-speed-default);
|
|
21
|
+
will-change: background-color, color;
|
|
22
|
+
|
|
23
|
+
&:hover {
|
|
24
|
+
background-color: var(--ndw-color-grey-100);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.active {
|
|
28
|
+
color: var(--ndw-color-primary-500);
|
|
29
|
+
|
|
30
|
+
ndw-icon {
|
|
31
|
+
font-variation-settings: 'FILL' 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.map-control__chevron {
|
|
35
|
+
rotate: 180deg;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:disabled,
|
|
40
|
+
&.disabled {
|
|
41
|
+
pointer-events: none;
|
|
42
|
+
color: var(--ndw-color-grey-300);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.map-control__chevron {
|
|
46
|
+
pointer-events: none;
|
|
47
|
+
padding: 0.25rem;
|
|
48
|
+
color: var(--ndw-color-primary);
|
|
49
|
+
|
|
50
|
+
transition-property: rotate;
|
|
51
|
+
transition-duration: var(--ndw-animation-speed-fast);
|
|
52
|
+
transition-timing-function: ease-out;
|
|
53
|
+
transition-delay: 0s;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.content-wrapper:not(:empty) {
|
|
57
|
+
@include ndw-paragraph-bold-md;
|
|
58
|
+
line-height: 1rem;
|
|
59
|
+
padding-inline: var(--ndw-spacing-xs);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
> button {
|
|
63
|
+
@include ndw-paragraph-bold-md;
|
|
64
|
+
|
|
65
|
+
border: none;
|
|
66
|
+
background: none;
|
|
67
|
+
padding: var(--ndw-spacing-xs);
|
|
68
|
+
|
|
69
|
+
color: var(--ndw-color-grey-600);
|
|
70
|
+
font-size: var(--ndw-font-size-sm);
|
|
71
|
+
font-weight: var(--ndw-font-weight-bold);
|
|
72
|
+
|
|
73
|
+
&:after {
|
|
74
|
+
content: '';
|
|
75
|
+
position: absolute;
|
|
76
|
+
inset: 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.map-control-dropdown {
|
|
82
|
+
display: grid;
|
|
83
|
+
grid-template-rows: max-content 1fr;
|
|
84
|
+
padding: var(--ndw-spacing-2xs);
|
|
85
|
+
width: 226px;
|
|
86
|
+
|
|
87
|
+
border: var(--ndw-border-size-sm) solid var(--ndw-color-grey-200);
|
|
88
|
+
border-radius: var(--ndw-border-radius-sm);
|
|
89
|
+
box-shadow: var(--ndw-elevation-dropdown);
|
|
90
|
+
|
|
91
|
+
background-color: var(--ndw-color-white);
|
|
92
|
+
|
|
93
|
+
&:not(.fixed) {
|
|
94
|
+
max-height: 380px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
header {
|
|
98
|
+
display: flex;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: var(--ndw-spacing-xs);
|
|
102
|
+
padding: var(--ndw-spacing-xs) 0 var(--ndw-spacing-xs) var(--ndw-spacing-2xs);
|
|
103
|
+
|
|
104
|
+
h3 {
|
|
105
|
+
color: var(--ndw-color-grey-600);
|
|
106
|
+
margin-block: 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&__content {
|
|
111
|
+
flex: 1;
|
|
112
|
+
overflow-y: auto;
|
|
113
|
+
}
|
|
114
|
+
}
|
package/lib/components/form-field/autosuggest/autosuggest-option/autosuggest-option.model.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AutosuggestOptionComponent } from './autosuggest-option.component';
|
|
2
|
-
import { AutosuggestAddOptionComponent } from '../autosuggest-add-option';
|
|
3
|
-
export type AutosuggestOption<T = string> = T;
|
|
4
|
-
export type AutosuggestOptions<T = string> = AutosuggestOption<T>[];
|
|
5
|
-
export type AutosuggestOptionComponentType<T> = AutosuggestOptionComponent<T> | AutosuggestAddOptionComponent<T>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FocusableOption, FocusOrigin } from '@angular/cdk/a11y';
|
|
2
|
-
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
3
|
-
import { AutocompleteOptionSelectionChange } from './autosuggest-option.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare abstract class BaseAutosuggestOptionComponent<T> implements FocusableOption, OnDestroy {
|
|
6
|
-
readonly value: import("@angular/core").InputSignal<T | undefined>;
|
|
7
|
-
readonly selectionChange: EventEmitter<AutocompleteOptionSelectionChange<T>>;
|
|
8
|
-
protected _active: boolean;
|
|
9
|
-
protected _selected: boolean;
|
|
10
|
-
get active(): boolean;
|
|
11
|
-
get selected(): boolean;
|
|
12
|
-
private readonly element;
|
|
13
|
-
private readonly changeDetectorRef;
|
|
14
|
-
focus(_origin?: FocusOrigin, options?: FocusOptions): void;
|
|
15
|
-
setActiveStyles(): void;
|
|
16
|
-
setInactiveStyles(): void;
|
|
17
|
-
select(emitEvent?: boolean): void;
|
|
18
|
-
deselect(emitEvent?: boolean): void;
|
|
19
|
-
handleKeydown(event: KeyboardEvent): void;
|
|
20
|
-
selectViaInteraction(): void;
|
|
21
|
-
protected abstract emitSelectionChangeEvent(isUserInput?: boolean): void;
|
|
22
|
-
ngOnDestroy(): void;
|
|
23
|
-
protected getHostElement(): HTMLElement;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseAutosuggestOptionComponent<any>, never>;
|
|
25
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseAutosuggestOptionComponent<any>, never, never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
26
|
-
}
|