@ndwnu/design-system 13.1.0 → 13.2.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/CLAUDE.md +1525 -0
- package/assets/images/flags/de.svg +1 -0
- package/assets/images/flags/en.svg +1 -0
- package/assets/images/flags/fr.svg +1 -0
- package/assets/images/flags/nl.svg +1 -0
- package/fesm2022/ndwnu-design-system.mjs +71 -18
- package/fesm2022/ndwnu-design-system.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/components/_datepicker.scss +13 -0
- package/types/ndwnu-design-system.d.ts +30 -7
package/package.json
CHANGED
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
mat-calendar {
|
|
26
26
|
--range-preview-border: var(--ndw-border-size-sm) dashed var(--ndw-color-secondary-300);
|
|
27
27
|
|
|
28
|
+
.mat-calendar-body-label {
|
|
29
|
+
visibility: hidden;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
tr:has(.mat-calendar-body-label):not(:has(.mat-calendar-body-cell)) {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
28
36
|
.ndw-date-selected > :first-child {
|
|
29
37
|
background-color: var(--ndw-color-secondary-400) !important;
|
|
30
38
|
color: var(--ndw-color-white) !important;
|
|
@@ -95,6 +103,11 @@ ndw-calendar.show-week-numbers {
|
|
|
95
103
|
|
|
96
104
|
padding-left: 1rem;
|
|
97
105
|
|
|
106
|
+
.mat-calendar-body {
|
|
107
|
+
min-height: calc(6 * var(--mat-datepicker-calendar-date-state-layer-height, 42px));
|
|
108
|
+
vertical-align: top;
|
|
109
|
+
}
|
|
110
|
+
|
|
98
111
|
thead {
|
|
99
112
|
tr::before {
|
|
100
113
|
content: '';
|
|
@@ -972,6 +972,22 @@ declare class KeyValueListComponent extends CoreKeyValueListComponent {
|
|
|
972
972
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<KeyValueListComponent, "ndw-key-value-list", never, {}, {}, never, never, true, never>;
|
|
973
973
|
}
|
|
974
974
|
|
|
975
|
+
type Language = 'NL' | 'EN' | 'FR' | 'DE';
|
|
976
|
+
type LanguageLabelDisplay = 'flag-only' | 'abbreviation' | 'full';
|
|
977
|
+
declare const LANGUAGE_FLAGS: Record<Language, string>;
|
|
978
|
+
declare const LANGUAGE_LABELS: Record<Language, string>;
|
|
979
|
+
|
|
980
|
+
declare class LanguageSwitcherComponent {
|
|
981
|
+
readonly languages: _angular_core.InputSignal<Language[]>;
|
|
982
|
+
readonly selected: _angular_core.ModelSignal<Language>;
|
|
983
|
+
readonly displayMode: _angular_core.InputSignal<LanguageLabelDisplay>;
|
|
984
|
+
flagSrc(lang: string): string;
|
|
985
|
+
labelFor(lang: string): string;
|
|
986
|
+
selectLanguage(lang: Language): void;
|
|
987
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LanguageSwitcherComponent, never>;
|
|
988
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LanguageSwitcherComponent, "ndw-language-switcher", never, { "languages": { "alias": "languages"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "displayMode": { "alias": "displayMode"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, never, never, true, never>;
|
|
989
|
+
}
|
|
990
|
+
|
|
975
991
|
interface SubMenuItem {
|
|
976
992
|
label: string;
|
|
977
993
|
active?: boolean;
|
|
@@ -1035,16 +1051,16 @@ declare class LoaderComponent {
|
|
|
1035
1051
|
|
|
1036
1052
|
declare class MapButtonComponent {
|
|
1037
1053
|
#private;
|
|
1038
|
-
readonly icon: _angular_core.InputSignal<"search" | "polygon" | "direction" | "gps" | "high-res" | "layers" | "zoom-in" | "zoom-out" | "mail" | "add-traffic-sign" | "add-zone" | "download" | "hectometer" | "low-res" | "zoom-to-content">;
|
|
1054
|
+
readonly icon: _angular_core.InputSignal<"search" | "polygon" | "direction" | "gps" | "high-res" | "layers" | "zoom-in" | "zoom-out" | "mail" | "add-traffic-sign" | "add-zone" | "download" | "hectometer" | "low-res" | "zoom-to-content" | undefined>;
|
|
1039
1055
|
readonly active: _angular_core.InputSignal<boolean>;
|
|
1040
1056
|
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
1041
1057
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
1042
1058
|
readonly clicked: _angular_core.OutputEmitterRef<void>;
|
|
1043
|
-
protected readonly buttonIcon: _angular_core.Signal<string>;
|
|
1059
|
+
protected readonly buttonIcon: _angular_core.Signal<string | undefined>;
|
|
1044
1060
|
protected readonly svgIcon: _angular_core.Signal<string | undefined>;
|
|
1045
1061
|
protected readonly iconLabel: _angular_core.Signal<string>;
|
|
1046
1062
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MapButtonComponent, never>;
|
|
1047
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MapButtonComponent, "ndw-map-button", never, { "icon": { "alias": "icon"; "required":
|
|
1063
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MapButtonComponent, "ndw-map-button", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
1048
1064
|
}
|
|
1049
1065
|
|
|
1050
1066
|
declare const fontMapButtonIcons: readonly ["direction", "gps", "high-res", "layers", "polygon", "search", "zoom-in", "zoom-out", "mail"];
|
|
@@ -1059,6 +1075,7 @@ interface MapDisplayOption {
|
|
|
1059
1075
|
name: string;
|
|
1060
1076
|
active?: boolean;
|
|
1061
1077
|
imageLink?: string;
|
|
1078
|
+
icon?: string;
|
|
1062
1079
|
description?: string;
|
|
1063
1080
|
[key: string]: unknown;
|
|
1064
1081
|
}
|
|
@@ -1504,6 +1521,8 @@ declare class TagComponent {
|
|
|
1504
1521
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TagComponent, "ndw-tag", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "suffixAriaLabel": { "alias": "suffixAriaLabel"; "required": false; "isSignal": true; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
1505
1522
|
}
|
|
1506
1523
|
|
|
1524
|
+
type ToastType = 'info' | 'error';
|
|
1525
|
+
|
|
1507
1526
|
interface ToastDimensions {
|
|
1508
1527
|
width: number;
|
|
1509
1528
|
height: number;
|
|
@@ -1516,11 +1535,12 @@ declare class ToastComponent implements AfterViewInit {
|
|
|
1516
1535
|
duration: _angular_core.InputSignal<number>;
|
|
1517
1536
|
paused: _angular_core.InputSignal<boolean>;
|
|
1518
1537
|
showProgress: _angular_core.InputSignal<boolean>;
|
|
1538
|
+
type: _angular_core.InputSignal<ToastType>;
|
|
1519
1539
|
closed: _angular_core.OutputEmitterRef<void>;
|
|
1520
1540
|
elementDimensions: _angular_core.OutputEmitterRef<ToastDimensions>;
|
|
1521
1541
|
ngAfterViewInit(): void;
|
|
1522
1542
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastComponent, never>;
|
|
1523
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastComponent, "ndw-toast", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "closeButtonLabel": { "alias": "closeButtonLabel"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "paused": { "alias": "paused"; "required": false; "isSignal": true; }; "showProgress": { "alias": "showProgress"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "elementDimensions": "elementDimensions"; }, never, never, true, never>;
|
|
1543
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastComponent, "ndw-toast", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "closeButtonLabel": { "alias": "closeButtonLabel"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "paused": { "alias": "paused"; "required": false; "isSignal": true; }; "showProgress": { "alias": "showProgress"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "elementDimensions": "elementDimensions"; }, never, never, true, never>;
|
|
1524
1544
|
}
|
|
1525
1545
|
|
|
1526
1546
|
type ToastId = string;
|
|
@@ -1530,6 +1550,7 @@ interface ToastData {
|
|
|
1530
1550
|
duration: number;
|
|
1531
1551
|
remainingTime: number;
|
|
1532
1552
|
closeButtonLabel?: string;
|
|
1553
|
+
type: ToastType;
|
|
1533
1554
|
}
|
|
1534
1555
|
declare class ToastService {
|
|
1535
1556
|
#private;
|
|
@@ -1544,9 +1565,11 @@ declare class ToastService {
|
|
|
1544
1565
|
* Open a toast notification with the given message and optional duration.
|
|
1545
1566
|
* @param message The message to display in the toast.
|
|
1546
1567
|
* @param duration Optional duration in milliseconds for which the toast should be visible. Defaults to 5000ms.
|
|
1568
|
+
* @param closeButtonLabel
|
|
1569
|
+
* @param type The type of toast. Based on type the behavior and visuals of the toast will change.
|
|
1547
1570
|
* @returns The ID of the created toast. Can be used to close the toast.
|
|
1548
1571
|
*/
|
|
1549
|
-
open(message: string, duration?: number, closeButtonLabel?: string): ToastId;
|
|
1572
|
+
open(message: string, duration?: number, closeButtonLabel?: string, type?: ToastType): ToastId;
|
|
1550
1573
|
pause(): void;
|
|
1551
1574
|
resume(): void;
|
|
1552
1575
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastService, never>;
|
|
@@ -1577,5 +1600,5 @@ declare class TooltipDirective implements OnChanges, OnDestroy, OnInit {
|
|
|
1577
1600
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[ndwTooltip]", never, { "text": { "alias": "ndwTooltip"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1578
1601
|
}
|
|
1579
1602
|
|
|
1580
|
-
export { AccordionComponent, AccordionService, AlertComponent, AutoGrowDirective, AutosuggestAddOptionComponent, AutosuggestDirective, AutosuggestOptionComponent, AutosuggestPanelComponent, AvatarComponent, BROWSER_STORAGE, BadgeComponent, BannerComponent, BaseTourService, BreadcrumbComponent, BreadcrumbGroupComponent, ButtonDirective, CARD_COMPONENTS, CARD_ID_TOKEN, CalendarComponent, CardComponent, CardContentComponent, CardFooterComponent, CardHeaderComponent, CheckboxComponent, CheckboxGroupComponent, CollapsibleComponent, DEFAULT_BACKGROUNDS, DashboardCardComponent, DatepickerComponent, DropdownComponent, EditBarActionsComponent, EditBarComponent, EditBarMessageComponent, ErrorComponent, FavoriteComponent, FileUploadComponent, FormFieldComponent, FormFieldElement, GuidedTourService, HoverableListItemComponent, IconComponent, InfoComponent, InputButtonComponent, InputDirective, InputIconComponent, KeyValueListComponent, LayoutBannersComponent, LayoutComponent, ListComponent, ListItemComponent, LoaderComponent, MAP_BACKGROUNDS, MAP_BACKGROUND_IMAGES, MAP_LAYERS, MAP_LAYER_IMAGES, MODAL_COMPONENTS, MainNavigationComponent, MapButtonComponent, MapDisplayComponent, MapDisplayOptionComponent, MapLegendComponent, MarkdownEditorComponent, MarkdownParserComponent, MaxCharDirective, ModalComponent, ModalContentComponent, ModalFooterComponent, ModalHeaderComponent, ModalService, MonthInputComponent, MultiSelectComponent, OptionComponent, OptionGroupComponent, PillComponent, PopoverTriggerDirective, RadioButtonComponent, RadioGroupComponent, RouterBreadcrumbsComponent, SplitterComponent, SummaryCardActionComponent, SummaryCardActionsComponent, SummaryCardComponent, SummaryCardContentComponent, SummaryCardHeaderComponent, SummaryCardSubtitleComponent, SummaryCardTagComponent, SummaryCardTagsComponent, SwitcherComponent, TabComponent, TabGroupComponent, TagComponent, ToastComponent, ToastService, TooltipComponent, TooltipDirective, backButton, cancelButton, defaultStepOptions, elementIsHidden, finishButton, fontMapButtonIcons, formatStepWithImage, makeButton, mapButtonIcons, ndwAgGridTheme, nextButton, svgMapButtonIcons };
|
|
1581
|
-
export type { AlertType, AreaMapLegendOption, AvatarColor, AvatarStatus, BannerType, BaseMapLegendOption, CheckType, CheckboxData, CircleMapLegendOption, DatepickerMode, DisplayOptionDirection, DisplayOptionType, EditBarPosition, EditBarWidth, Environment, FileUploadText, HoverableListItemAction, IconMapLegendOption, ImageMapLegendOption, LineMapLegendOption, MapBackgroundOption, MapBackgrounds, MapButtonIcon, MapDisplayOption, MapLegendOption, MapLegendOptionGroup, MapLegendOptionType, MapLegendViewMode, MenuItem, ModalSize, NdwStepOptions, OptionGroupMode, PolygonMapLegendOption, PopoverPosition, RequiredElement, SelectAllText, ShepherdButton, StepImage, SubMenuItem, SummaryActionsView, SwitcherOption, SwitcherValue, Theme, ToastDimensions, TourOptions };
|
|
1603
|
+
export { AccordionComponent, AccordionService, AlertComponent, AutoGrowDirective, AutosuggestAddOptionComponent, AutosuggestDirective, AutosuggestOptionComponent, AutosuggestPanelComponent, AvatarComponent, BROWSER_STORAGE, BadgeComponent, BannerComponent, BaseTourService, BreadcrumbComponent, BreadcrumbGroupComponent, ButtonDirective, CARD_COMPONENTS, CARD_ID_TOKEN, CalendarComponent, CardComponent, CardContentComponent, CardFooterComponent, CardHeaderComponent, CheckboxComponent, CheckboxGroupComponent, CollapsibleComponent, DEFAULT_BACKGROUNDS, DashboardCardComponent, DatepickerComponent, DropdownComponent, EditBarActionsComponent, EditBarComponent, EditBarMessageComponent, ErrorComponent, FavoriteComponent, FileUploadComponent, FormFieldComponent, FormFieldElement, GuidedTourService, HoverableListItemComponent, IconComponent, InfoComponent, InputButtonComponent, InputDirective, InputIconComponent, KeyValueListComponent, LANGUAGE_FLAGS, LANGUAGE_LABELS, LanguageSwitcherComponent, LayoutBannersComponent, LayoutComponent, ListComponent, ListItemComponent, LoaderComponent, MAP_BACKGROUNDS, MAP_BACKGROUND_IMAGES, MAP_LAYERS, MAP_LAYER_IMAGES, MODAL_COMPONENTS, MainNavigationComponent, MapButtonComponent, MapDisplayComponent, MapDisplayOptionComponent, MapLegendComponent, MarkdownEditorComponent, MarkdownParserComponent, MaxCharDirective, ModalComponent, ModalContentComponent, ModalFooterComponent, ModalHeaderComponent, ModalService, MonthInputComponent, MultiSelectComponent, OptionComponent, OptionGroupComponent, PillComponent, PopoverTriggerDirective, RadioButtonComponent, RadioGroupComponent, RouterBreadcrumbsComponent, SplitterComponent, SummaryCardActionComponent, SummaryCardActionsComponent, SummaryCardComponent, SummaryCardContentComponent, SummaryCardHeaderComponent, SummaryCardSubtitleComponent, SummaryCardTagComponent, SummaryCardTagsComponent, SwitcherComponent, TabComponent, TabGroupComponent, TagComponent, ToastComponent, ToastService, TooltipComponent, TooltipDirective, backButton, cancelButton, defaultStepOptions, elementIsHidden, finishButton, fontMapButtonIcons, formatStepWithImage, makeButton, mapButtonIcons, ndwAgGridTheme, nextButton, svgMapButtonIcons };
|
|
1604
|
+
export type { AlertType, AreaMapLegendOption, AvatarColor, AvatarStatus, BannerType, BaseMapLegendOption, CheckType, CheckboxData, CircleMapLegendOption, DatepickerMode, DisplayOptionDirection, DisplayOptionType, EditBarPosition, EditBarWidth, Environment, FileUploadText, HoverableListItemAction, IconMapLegendOption, ImageMapLegendOption, Language, LanguageLabelDisplay, LineMapLegendOption, MapBackgroundOption, MapBackgrounds, MapButtonIcon, MapDisplayOption, MapLegendOption, MapLegendOptionGroup, MapLegendOptionType, MapLegendViewMode, MenuItem, ModalSize, NdwStepOptions, OptionGroupMode, PolygonMapLegendOption, PopoverPosition, RequiredElement, SelectAllText, ShepherdButton, StepImage, SubMenuItem, SummaryActionsView, SwitcherOption, SwitcherValue, Theme, ToastDimensions, TourOptions };
|