@ndwnu/design-system 13.1.0 → 13.1.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.
- 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 +57 -8
- 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 +26 -4
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;
|
|
@@ -1504,6 +1520,8 @@ declare class TagComponent {
|
|
|
1504
1520
|
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
1521
|
}
|
|
1506
1522
|
|
|
1523
|
+
type ToastType = 'info' | 'error';
|
|
1524
|
+
|
|
1507
1525
|
interface ToastDimensions {
|
|
1508
1526
|
width: number;
|
|
1509
1527
|
height: number;
|
|
@@ -1516,11 +1534,12 @@ declare class ToastComponent implements AfterViewInit {
|
|
|
1516
1534
|
duration: _angular_core.InputSignal<number>;
|
|
1517
1535
|
paused: _angular_core.InputSignal<boolean>;
|
|
1518
1536
|
showProgress: _angular_core.InputSignal<boolean>;
|
|
1537
|
+
type: _angular_core.InputSignal<ToastType>;
|
|
1519
1538
|
closed: _angular_core.OutputEmitterRef<void>;
|
|
1520
1539
|
elementDimensions: _angular_core.OutputEmitterRef<ToastDimensions>;
|
|
1521
1540
|
ngAfterViewInit(): void;
|
|
1522
1541
|
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>;
|
|
1542
|
+
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
1543
|
}
|
|
1525
1544
|
|
|
1526
1545
|
type ToastId = string;
|
|
@@ -1530,6 +1549,7 @@ interface ToastData {
|
|
|
1530
1549
|
duration: number;
|
|
1531
1550
|
remainingTime: number;
|
|
1532
1551
|
closeButtonLabel?: string;
|
|
1552
|
+
type: ToastType;
|
|
1533
1553
|
}
|
|
1534
1554
|
declare class ToastService {
|
|
1535
1555
|
#private;
|
|
@@ -1544,9 +1564,11 @@ declare class ToastService {
|
|
|
1544
1564
|
* Open a toast notification with the given message and optional duration.
|
|
1545
1565
|
* @param message The message to display in the toast.
|
|
1546
1566
|
* @param duration Optional duration in milliseconds for which the toast should be visible. Defaults to 5000ms.
|
|
1567
|
+
* @param closeButtonLabel
|
|
1568
|
+
* @param type The type of toast. Based on type the behavior and visuals of the toast will change.
|
|
1547
1569
|
* @returns The ID of the created toast. Can be used to close the toast.
|
|
1548
1570
|
*/
|
|
1549
|
-
open(message: string, duration?: number, closeButtonLabel?: string): ToastId;
|
|
1571
|
+
open(message: string, duration?: number, closeButtonLabel?: string, type?: ToastType): ToastId;
|
|
1550
1572
|
pause(): void;
|
|
1551
1573
|
resume(): void;
|
|
1552
1574
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastService, never>;
|
|
@@ -1577,5 +1599,5 @@ declare class TooltipDirective implements OnChanges, OnDestroy, OnInit {
|
|
|
1577
1599
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[ndwTooltip]", never, { "text": { "alias": "ndwTooltip"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1578
1600
|
}
|
|
1579
1601
|
|
|
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 };
|
|
1602
|
+
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 };
|
|
1603
|
+
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 };
|