@energinet/watt 0.0.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/LICENSE +201 -0
- package/badge/index.d.ts +17 -0
- package/badge/watt-badge.component.d.ts +15 -0
- package/breadcrumbs/index.d.ts +17 -0
- package/breadcrumbs/watt-breadcrumbs.component.d.ts +23 -0
- package/button/index.d.ts +17 -0
- package/button/watt-button.component.d.ts +20 -0
- package/card/index.d.ts +18 -0
- package/card/watt-card-title.component.d.ts +6 -0
- package/card/watt-card.component.d.ts +15 -0
- package/checkbox/index.d.ts +17 -0
- package/checkbox/watt-checkbox.component.d.ts +17 -0
- package/chip/index.d.ts +23 -0
- package/chip/watt-action-chip.component.d.ts +8 -0
- package/chip/watt-chip.component.d.ts +8 -0
- package/chip/watt-chip.directive.d.ts +16 -0
- package/chip/watt-date-chip.component.d.ts +29 -0
- package/chip/watt-date-range-chip.component.d.ts +50 -0
- package/chip/watt-filter-chip.component.d.ts +30 -0
- package/chip/watt-menu-chip.component.d.ts +30 -0
- package/clipboard/index.d.ts +18 -0
- package/clipboard/watt-clipboard-intl.service.d.ts +7 -0
- package/clipboard/watt-copy-to-clipboard.directive.d.ts +12 -0
- package/code/index.d.ts +18 -0
- package/code/watt-code.component.d.ts +32 -0
- package/code/watt-code.worker.token.d.ts +18 -0
- package/core/breakpoints/_breakpoints.import.scss +53 -0
- package/core/breakpoints/_include-media.scss +568 -0
- package/core/breakpoints/breakpoints-observer.d.ts +39 -0
- package/core/breakpoints/breakpoints.d.ts +29 -0
- package/core/breakpoints/index.d.ts +18 -0
- package/core/color/+storybook/storybook-colors-overview.component.scss +50 -0
- package/core/color/color-helper.service.d.ts +12 -0
- package/core/color/colors.d.ts +51 -0
- package/core/color/index.d.ts +18 -0
- package/core/date/dayjs.d.ts +22 -0
- package/core/date/index.d.ts +23 -0
- package/core/date/watt-danish-datetime.providers.d.ts +1 -0
- package/core/date/watt-date-adapter.d.ts +31 -0
- package/core/date/watt-date-range.d.ts +25 -0
- package/core/date/watt-date.pipe.d.ts +28 -0
- package/core/date/watt-format-date.d.ts +11 -0
- package/core/date/watt-locale.service.d.ts +13 -0
- package/core/styles/@energinet-datahub/watt/_index.scss +52 -0
- package/core/styles/@energinet-datahub/watt/_utils.scss +16 -0
- package/core/styles/@energinet-datahub/watt/theme/light-theme.scss +71 -0
- package/core/styles/@energinet-datahub/watt/theme/material-overwrites/datepicker.scss +69 -0
- package/core/styles/@energinet-datahub/watt/theme/material-overwrites/snack-bar.scss +26 -0
- package/core/styles/_box-sizing.scss +22 -0
- package/core/styles/_chips.scss +22 -0
- package/core/styles/_elevation.scss +18 -0
- package/core/styles/_hr.scss +20 -0
- package/core/styles/_table.scss +89 -0
- package/core/styles/_tokens.scss +134 -0
- package/core/styles/_tooltip.scss +64 -0
- package/core/styles/_variables.scss +106 -0
- package/core/styles/_vater.scss +69 -0
- package/core/styles/spacing/+storybook/storybook-spacing-overview.component.scss +25 -0
- package/core/styles/spacing/_baseline.scss +23 -0
- package/core/styles/spacing/_inline.scss +38 -0
- package/core/styles/spacing/_inset.scss +61 -0
- package/core/styles/spacing/_spacing.import.scss +113 -0
- package/core/styles/spacing/_stack.scss +38 -0
- package/core/styles/spacing/_variables.scss +14 -0
- package/core/styles/spacing/index.scss +18 -0
- package/core/styles/typography/+storybook/storybook-typography-overview.component.scss +78 -0
- package/core/styles/typography/_rem.scss +24 -0
- package/core/styles/typography/_typography.import.scss +195 -0
- package/core/styles/typography/index.scss +118 -0
- package/data/index.d.ts +20 -0
- package/data/watt-data-actions.component.d.ts +5 -0
- package/data/watt-data-filters.component.d.ts +5 -0
- package/data/watt-data-intl.service.d.ts +15 -0
- package/data/watt-data-table.component.d.ts +27 -0
- package/datetime-field/index.d.ts +17 -0
- package/datetime-field/watt-datetime-field.component.d.ts +39 -0
- package/description-list/index.d.ts +17 -0
- package/description-list/watt-description-list-item.component.d.ts +27 -0
- package/description-list/watt-description-list.component.d.ts +19 -0
- package/drawer/index.d.ts +21 -0
- package/drawer/watt-drawer-actions.component.d.ts +5 -0
- package/drawer/watt-drawer-content.component.d.ts +5 -0
- package/drawer/watt-drawer-heading.component.d.ts +5 -0
- package/drawer/watt-drawer-topbar.component.d.ts +5 -0
- package/drawer/watt-drawer.component.d.ts +61 -0
- package/dropdown/index.d.ts +19 -0
- package/dropdown/watt-dropdown-option.d.ts +22 -0
- package/dropdown/watt-dropdown-value.d.ts +17 -0
- package/dropdown/watt-dropdown.component.d.ts +195 -0
- package/empty-state/icons/explore.d.ts +5 -0
- package/empty-state/icons/no-results.d.ts +5 -0
- package/empty-state/icons/power.d.ts +5 -0
- package/empty-state/index.d.ts +20 -0
- package/empty-state/watt-empty-state.component.d.ts +16 -0
- package/expandable-card/index.d.ts +19 -0
- package/expandable-card/watt-expandable-card.component.d.ts +34 -0
- package/expansion/expansion.component.d.ts +18 -0
- package/expansion/index.d.ts +17 -0
- package/fesm2022/energinet-watt-badge.mjs +66 -0
- package/fesm2022/energinet-watt-badge.mjs.map +1 -0
- package/fesm2022/energinet-watt-breadcrumbs.mjs +116 -0
- package/fesm2022/energinet-watt-breadcrumbs.mjs.map +1 -0
- package/fesm2022/energinet-watt-button.mjs +120 -0
- package/fesm2022/energinet-watt-button.mjs.map +1 -0
- package/fesm2022/energinet-watt-card.mjs +117 -0
- package/fesm2022/energinet-watt-card.mjs.map +1 -0
- package/fesm2022/energinet-watt-checkbox.mjs +118 -0
- package/fesm2022/energinet-watt-checkbox.mjs.map +1 -0
- package/fesm2022/energinet-watt-chip.mjs +760 -0
- package/fesm2022/energinet-watt-chip.mjs.map +1 -0
- package/fesm2022/energinet-watt-clipboard.mjs +118 -0
- package/fesm2022/energinet-watt-clipboard.mjs.map +1 -0
- package/fesm2022/energinet-watt-code.mjs +119 -0
- package/fesm2022/energinet-watt-code.mjs.map +1 -0
- package/fesm2022/energinet-watt-core-breakpoints.mjs +100 -0
- package/fesm2022/energinet-watt-core-breakpoints.mjs.map +1 -0
- package/fesm2022/energinet-watt-core-color.mjs +127 -0
- package/fesm2022/energinet-watt-core-color.mjs.map +1 -0
- package/fesm2022/energinet-watt-core-date.mjs +260 -0
- package/fesm2022/energinet-watt-core-date.mjs.map +1 -0
- package/fesm2022/energinet-watt-data.mjs +286 -0
- package/fesm2022/energinet-watt-data.mjs.map +1 -0
- package/fesm2022/energinet-watt-datetime-field.mjs +233 -0
- package/fesm2022/energinet-watt-datetime-field.mjs.map +1 -0
- package/fesm2022/energinet-watt-description-list.mjs +130 -0
- package/fesm2022/energinet-watt-description-list.mjs.map +1 -0
- package/fesm2022/energinet-watt-drawer.mjs +271 -0
- package/fesm2022/energinet-watt-drawer.mjs.map +1 -0
- package/fesm2022/energinet-watt-dropdown.mjs +423 -0
- package/fesm2022/energinet-watt-dropdown.mjs.map +1 -0
- package/fesm2022/energinet-watt-empty-state.mjs +299 -0
- package/fesm2022/energinet-watt-empty-state.mjs.map +1 -0
- package/fesm2022/energinet-watt-expandable-card.mjs +151 -0
- package/fesm2022/energinet-watt-expandable-card.mjs.map +1 -0
- package/fesm2022/energinet-watt-expansion.mjs +78 -0
- package/fesm2022/energinet-watt-expansion.mjs.map +1 -0
- package/fesm2022/energinet-watt-field.mjs +249 -0
- package/fesm2022/energinet-watt-field.mjs.map +1 -0
- package/fesm2022/energinet-watt-icon-flags.mjs +376 -0
- package/fesm2022/energinet-watt-icon-flags.mjs.map +1 -0
- package/fesm2022/energinet-watt-icon.mjs +195 -0
- package/fesm2022/energinet-watt-icon.mjs.map +1 -0
- package/fesm2022/energinet-watt-modal.mjs +260 -0
- package/fesm2022/energinet-watt-modal.mjs.map +1 -0
- package/fesm2022/energinet-watt-paginator.mjs +164 -0
- package/fesm2022/energinet-watt-paginator.mjs.map +1 -0
- package/fesm2022/energinet-watt-phone-field.mjs +322 -0
- package/fesm2022/energinet-watt-phone-field.mjs.map +1 -0
- package/fesm2022/energinet-watt-picker-__shared.mjs +384 -0
- package/fesm2022/energinet-watt-picker-__shared.mjs.map +1 -0
- package/fesm2022/energinet-watt-picker-datepicker.mjs +430 -0
- package/fesm2022/energinet-watt-picker-datepicker.mjs.map +1 -0
- package/fesm2022/energinet-watt-picker-timepicker.mjs +394 -0
- package/fesm2022/energinet-watt-picker-timepicker.mjs.map +1 -0
- package/fesm2022/energinet-watt-progress-tracker.mjs +141 -0
- package/fesm2022/energinet-watt-progress-tracker.mjs.map +1 -0
- package/fesm2022/energinet-watt-query-params.mjs +95 -0
- package/fesm2022/energinet-watt-query-params.mjs.map +1 -0
- package/fesm2022/energinet-watt-radio.mjs +125 -0
- package/fesm2022/energinet-watt-radio.mjs.map +1 -0
- package/fesm2022/energinet-watt-search.mjs +126 -0
- package/fesm2022/energinet-watt-search.mjs.map +1 -0
- package/fesm2022/energinet-watt-shell.mjs +315 -0
- package/fesm2022/energinet-watt-shell.mjs.map +1 -0
- package/fesm2022/energinet-watt-slider.mjs +159 -0
- package/fesm2022/energinet-watt-slider.mjs.map +1 -0
- package/fesm2022/energinet-watt-spinner.mjs +72 -0
- package/fesm2022/energinet-watt-spinner.mjs.map +1 -0
- package/fesm2022/energinet-watt-stepper.mjs +185 -0
- package/fesm2022/energinet-watt-stepper.mjs.map +1 -0
- package/fesm2022/energinet-watt-table.mjs +423 -0
- package/fesm2022/energinet-watt-table.mjs.map +1 -0
- package/fesm2022/energinet-watt-tabs.mjs +254 -0
- package/fesm2022/energinet-watt-tabs.mjs.map +1 -0
- package/fesm2022/energinet-watt-text-field.mjs +316 -0
- package/fesm2022/energinet-watt-text-field.mjs.map +1 -0
- package/fesm2022/energinet-watt-textarea-field.mjs +136 -0
- package/fesm2022/energinet-watt-textarea-field.mjs.map +1 -0
- package/fesm2022/energinet-watt-toast.mjs +174 -0
- package/fesm2022/energinet-watt-toast.mjs.map +1 -0
- package/fesm2022/energinet-watt-tooltip.mjs +214 -0
- package/fesm2022/energinet-watt-tooltip.mjs.map +1 -0
- package/fesm2022/energinet-watt-utils-css.mjs +72 -0
- package/fesm2022/energinet-watt-utils-css.mjs.map +1 -0
- package/fesm2022/energinet-watt-utils-intersection-observer.mjs +83 -0
- package/fesm2022/energinet-watt-utils-intersection-observer.mjs.map +1 -0
- package/fesm2022/energinet-watt-utils-resize-observer.mjs +144 -0
- package/fesm2022/energinet-watt-utils-resize-observer.mjs.map +1 -0
- package/fesm2022/energinet-watt-validation-message.mjs +114 -0
- package/fesm2022/energinet-watt-validation-message.mjs.map +1 -0
- package/fesm2022/energinet-watt-validators.mjs +40 -0
- package/fesm2022/energinet-watt-validators.mjs.map +1 -0
- package/fesm2022/energinet-watt-vater.mjs +287 -0
- package/fesm2022/energinet-watt-vater.mjs.map +1 -0
- package/fesm2022/energinet-watt.mjs +47 -0
- package/fesm2022/energinet-watt.mjs.map +1 -0
- package/field/index.d.ts +20 -0
- package/field/watt-field-error.component.d.ts +5 -0
- package/field/watt-field-hint.component.d.ts +5 -0
- package/field/watt-field-intl.service.d.ts +8 -0
- package/field/watt-field.component.d.ts +42 -0
- package/icon/flags/index.d.ts +23 -0
- package/icon/flags/watt-flag-de.d.ts +5 -0
- package/icon/flags/watt-flag-dk.d.ts +5 -0
- package/icon/flags/watt-flag-fi.d.ts +5 -0
- package/icon/flags/watt-flag-no.d.ts +5 -0
- package/icon/flags/watt-flag-pl.d.ts +5 -0
- package/icon/flags/watt-flag-se.d.ts +5 -0
- package/icon/flags/watt-flag.d.ts +13 -0
- package/icon/icon.component.d.ts +20 -0
- package/icon/icons.d.ts +82 -0
- package/icon/index.d.ts +17 -0
- package/index.d.ts +33 -0
- package/modal/index.d.ts +18 -0
- package/modal/watt-modal.component.d.ts +86 -0
- package/modal/watt-modal.service.d.ts +62 -0
- package/package.json +237 -0
- package/paginator/index.d.ts +18 -0
- package/paginator/watt-paginator-intl.service.d.ts +14 -0
- package/paginator/watt-paginator.component.d.ts +53 -0
- package/phone-field/index.d.ts +18 -0
- package/phone-field/watt-phone-field-intl.service.d.ts +14 -0
- package/phone-field/watt-phone-field.component.d.ts +75 -0
- package/picker/__shared/index.d.ts +19 -0
- package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.d.ts +34 -0
- package/picker/__shared/watt-picker-base.d.ts +201 -0
- package/picker/__shared/watt-picker-value.d.ts +18 -0
- package/picker/datepicker/index.d.ts +19 -0
- package/picker/datepicker/watt-datepicker-intl.service.d.ts +7 -0
- package/picker/datepicker/watt-datepicker.component.d.ts +149 -0
- package/picker/timepicker/index.d.ts +17 -0
- package/picker/timepicker/maskito-time-range-mask.d.ts +18 -0
- package/picker/timepicker/watt-timepicker.component.d.ts +132 -0
- package/progress-tracker/index.d.ts +20 -0
- package/progress-tracker/watt-progress-tracker-step.component.d.ts +10 -0
- package/progress-tracker/watt-progress-tracker.component.d.ts +5 -0
- package/query-params/index.d.ts +17 -0
- package/query-params/watt-query-params.directive.d.ts +27 -0
- package/radio/index.d.ts +17 -0
- package/radio/watt-radio.component.d.ts +24 -0
- package/search/index.d.ts +17 -0
- package/search/watt-search.component.d.ts +31 -0
- package/shell/index.d.ts +18 -0
- package/shell/nav-list/index.d.ts +18 -0
- package/shell/nav-list/watt-expand-on-active-link.directive.d.ts +26 -0
- package/shell/nav-list/watt-nav-list-item.component.d.ts +16 -0
- package/shell/nav-list/watt-nav-list.component.d.ts +12 -0
- package/shell/shell.component.d.ts +28 -0
- package/slider/index.d.ts +17 -0
- package/slider/watt-slider.component.d.ts +57 -0
- package/spinner/index.d.ts +17 -0
- package/spinner/watt-spinner.component.d.ts +15 -0
- package/stepper/index.d.ts +18 -0
- package/stepper/watt-stepper-step.component.d.ts +34 -0
- package/stepper/watt-stepper.component.d.ts +40 -0
- package/table/index.d.ts +18 -0
- package/table/watt-table-data-source.d.ts +37 -0
- package/table/watt-table.component.d.ts +239 -0
- package/tabs/index.d.ts +26 -0
- package/tabs/watt-link-tab.component.d.ts +7 -0
- package/tabs/watt-link-tabs.component.d.ts +7 -0
- package/tabs/watt-tab.component.d.ts +26 -0
- package/tabs/watt-tabs-action.component.d.ts +5 -0
- package/tabs/watt-tabs.component.d.ts +36 -0
- package/text-field/index.d.ts +17 -0
- package/text-field/watt-text-field.component.d.ts +77 -0
- package/textarea-field/index.d.ts +17 -0
- package/textarea-field/watt-textarea-field.component.d.ts +27 -0
- package/toast/index.d.ts +19 -0
- package/toast/watt-toast.component.d.ts +47 -0
- package/toast/watt-toast.service.d.ts +13 -0
- package/tooltip/index.d.ts +17 -0
- package/tooltip/watt-tooltip.component.d.ts +47 -0
- package/tooltip/watt-tooltip.directive.d.ts +31 -0
- package/utils/css/css-custom-properties.service.d.ts +10 -0
- package/utils/css/index.d.ts +17 -0
- package/utils/intersection-observer/index.d.ts +17 -0
- package/utils/intersection-observer/watt-intersection-observer.service.d.ts +21 -0
- package/utils/resize-observer/index.d.ts +18 -0
- package/utils/resize-observer/watt-resize-observer.directive.d.ts +35 -0
- package/utils/resize-observer/watt-resize-observer.service.d.ts +39 -0
- package/validation-message/index.d.ts +17 -0
- package/validation-message/watt-validation-message.component.d.ts +50 -0
- package/validators/index.d.ts +17 -0
- package/validators/watt-range.validators.d.ts +23 -0
- package/vater/index.d.ts +20 -0
- package/vater/types.d.ts +21 -0
- package/vater/vater-flex.component.d.ts +19 -0
- package/vater/vater-spacer.component.d.ts +5 -0
- package/vater/vater-stack.component.d.ts +14 -0
- package/vater/vater-utility.directive.d.ts +16 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Copyright 2020 Energinet DataHub A/S
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License2");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
:host {
|
|
15
|
+
display: block;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.color-grid {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
max-width: 688px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
figure {
|
|
25
|
+
margin: 10px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.color-sample {
|
|
29
|
+
position: relative;
|
|
30
|
+
height: 150px;
|
|
31
|
+
width: 150px;
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
align-items: center;
|
|
35
|
+
text-align: center;
|
|
36
|
+
border: 1px solid var(--watt-color-neutral-grey-300);
|
|
37
|
+
|
|
38
|
+
&:hover:before {
|
|
39
|
+
position: absolute;
|
|
40
|
+
content: "Copy to clipboard";
|
|
41
|
+
width: 100%;
|
|
42
|
+
height: 100%;
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
align-items: center;
|
|
46
|
+
text-align: center;
|
|
47
|
+
background-color: var(--watt-color-primary-light);
|
|
48
|
+
color: var(--watt-color-primary-light-contrast);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WattCssCustomPropertiesService } from '@energinet/watt/utils/css';
|
|
2
|
+
import { WattColorType } from './colors';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WattColorHelperService {
|
|
5
|
+
private cssCustomPropertiesService;
|
|
6
|
+
private colorContrastSuffix;
|
|
7
|
+
constructor(cssCustomPropertiesService: WattCssCustomPropertiesService);
|
|
8
|
+
getColor(color: WattColorType): string;
|
|
9
|
+
getColorContrast(color: WattColorType): string;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattColorHelperService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WattColorHelperService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export declare const WattColor: {
|
|
18
|
+
primary: "--watt-color-primary";
|
|
19
|
+
primaryLight: "--watt-color-primary-light";
|
|
20
|
+
primaryDark: "--watt-color-primary-dark";
|
|
21
|
+
primaryDarker: "--watt-color-primary-darker";
|
|
22
|
+
primaryUltralight: "--watt-color-primary-ultralight";
|
|
23
|
+
secondary: "--watt-color-secondary";
|
|
24
|
+
secondaryLight: "--watt-color-secondary-light";
|
|
25
|
+
secondaryDark: "--watt-color-secondary-dark";
|
|
26
|
+
secondaryUltralight: "--watt-color-secondary-ultralight";
|
|
27
|
+
data1: "--watt-color-data-1";
|
|
28
|
+
data2: "--watt-color-data-2";
|
|
29
|
+
data3: "--watt-color-data-3";
|
|
30
|
+
black: "--watt-color-neutral-black";
|
|
31
|
+
white: "--watt-color-neutral-white";
|
|
32
|
+
grey50: "--watt-color-neutral-grey-50";
|
|
33
|
+
grey100: "--watt-color-neutral-grey-100";
|
|
34
|
+
grey200: "--watt-color-neutral-grey-200";
|
|
35
|
+
grey300: "--watt-color-neutral-grey-300";
|
|
36
|
+
grey400: "--watt-color-neutral-grey-400";
|
|
37
|
+
grey500: "--watt-color-neutral-grey-500";
|
|
38
|
+
grey600: "--watt-color-neutral-grey-600";
|
|
39
|
+
grey700: "--watt-color-neutral-grey-700";
|
|
40
|
+
grey800: "--watt-color-neutral-grey-800";
|
|
41
|
+
grey900: "--watt-color-neutral-grey-900";
|
|
42
|
+
danger: "--watt-color-state-danger";
|
|
43
|
+
dangerLight: "--watt-color-state-danger-light";
|
|
44
|
+
warning: "--watt-color-state-warning";
|
|
45
|
+
warningLight: "--watt-color-state-warning-light";
|
|
46
|
+
success: "--watt-color-state-success";
|
|
47
|
+
successLight: "--watt-color-state-success-light";
|
|
48
|
+
info: "--watt-color-state-info";
|
|
49
|
+
infoLight: "--watt-color-state-info-light";
|
|
50
|
+
};
|
|
51
|
+
export type WattColorType = keyof typeof WattColor;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export { WattColor } from './colors';
|
|
18
|
+
export { WattColorHelperService } from './color-helper.service';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import dayjs from 'dayjs';
|
|
18
|
+
import 'dayjs/plugin/customParseFormat';
|
|
19
|
+
import 'dayjs/plugin/utc';
|
|
20
|
+
import 'dayjs/plugin/timezone';
|
|
21
|
+
import 'dayjs/plugin/duration';
|
|
22
|
+
export { dayjs };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export { dayjs } from './dayjs';
|
|
18
|
+
export { danishDatetimeProviders } from './watt-danish-datetime.providers';
|
|
19
|
+
export { WattDateAdapter, WattSupportedLocales } from './watt-date-adapter';
|
|
20
|
+
export { type WattRange, type WattDateRange } from './watt-date-range';
|
|
21
|
+
export { WattDatePipe } from './watt-date.pipe';
|
|
22
|
+
export { wattFormatDate } from './watt-format-date';
|
|
23
|
+
export { WattLocaleService } from './watt-locale.service';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const danishDatetimeProviders: import("@angular/core").EnvironmentProviders;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { NativeDateAdapter } from '@angular/material/core';
|
|
18
|
+
export type WattSupportedLocales = 'da' | 'en';
|
|
19
|
+
export declare class WattDateAdapter extends NativeDateAdapter {
|
|
20
|
+
setActiveLocale(language: WattSupportedLocales): void;
|
|
21
|
+
/**
|
|
22
|
+
* This is necessary to remove the dots from the date (ordinals) for danish locale in the calendar view.
|
|
23
|
+
* due to `Intl.DateTimeFormat`
|
|
24
|
+
*/
|
|
25
|
+
getDateNames(): string[];
|
|
26
|
+
/**
|
|
27
|
+
* Our week starts on Monday
|
|
28
|
+
* @returns 0 for Sunday, 1 for Monday, etc.
|
|
29
|
+
*/
|
|
30
|
+
getFirstDayOfWeek(): number;
|
|
31
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export interface WattRange<T> {
|
|
18
|
+
start: T;
|
|
19
|
+
end: T | null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* This is included for legacy reasons, components should return Date objects instead of strings.
|
|
23
|
+
* @deprecated Avoid using strings as dates, use Date objects instead.
|
|
24
|
+
*/
|
|
25
|
+
export type WattDateRange = WattRange<string>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { PipeTransform } from '@angular/core';
|
|
18
|
+
import { WattRange } from './watt-date-range';
|
|
19
|
+
import { formatStrings } from './watt-format-date';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
export declare class WattDatePipe implements PipeTransform {
|
|
22
|
+
/**
|
|
23
|
+
* @param input WattDateRange or string in ISO 8601 format or unix timestamp number
|
|
24
|
+
*/
|
|
25
|
+
transform(input?: WattRange<Date> | WattRange<string> | Date | string | number | null, format?: keyof typeof formatStrings, timeZone?: string): string | null;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattDatePipe, never>;
|
|
27
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<WattDatePipe, "wattDate", true>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WattRange } from './watt-date-range';
|
|
2
|
+
export declare const formatStrings: {
|
|
3
|
+
monthYear: string;
|
|
4
|
+
short: string;
|
|
5
|
+
shortAbbr: string;
|
|
6
|
+
long: string;
|
|
7
|
+
longAbbr: string;
|
|
8
|
+
time: string;
|
|
9
|
+
longAbbrWithSeconds: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function wattFormatDate(input?: WattRange<Date> | WattRange<string> | Date | string | number | null, format?: keyof typeof formatStrings, timeZone?: string): string | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DateAdapter } from '@angular/material/core';
|
|
2
|
+
import { WattSupportedLocales } from './watt-date-adapter';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WattLocaleService {
|
|
5
|
+
private dateAdapter;
|
|
6
|
+
locale: import("@angular/core").WritableSignal<WattSupportedLocales>;
|
|
7
|
+
isDanish: import("@angular/core").Signal<boolean>;
|
|
8
|
+
isEnglish: import("@angular/core").Signal<boolean>;
|
|
9
|
+
constructor(dateAdapter: DateAdapter<unknown>);
|
|
10
|
+
setActiveLocale(locale: WattSupportedLocales): Promise<void>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattLocaleService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WattLocaleService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Copyright 2020 Energinet DataHub A/S
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License2");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
@use "./theme/light-theme.scss";
|
|
15
|
+
@use "./theme/material-overwrites/datepicker";
|
|
16
|
+
@use "./theme/material-overwrites/snack-bar";
|
|
17
|
+
|
|
18
|
+
@use "../../box-sizing";
|
|
19
|
+
@use "../../chips";
|
|
20
|
+
@use "../../elevation";
|
|
21
|
+
@use "../../hr";
|
|
22
|
+
@use "../../table";
|
|
23
|
+
@use "../../tokens";
|
|
24
|
+
@use "../../tooltip";
|
|
25
|
+
@use "../../variables";
|
|
26
|
+
@use "../../vater";
|
|
27
|
+
@use "../../spacing";
|
|
28
|
+
@use "../../typography";
|
|
29
|
+
|
|
30
|
+
html,
|
|
31
|
+
body {
|
|
32
|
+
height: 100%;
|
|
33
|
+
}
|
|
34
|
+
body {
|
|
35
|
+
margin: 0;
|
|
36
|
+
font-family: "Open Sans", sans-serif;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
input,
|
|
40
|
+
textarea {
|
|
41
|
+
font: inherit;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Fix dropdown overlay positioning
|
|
46
|
+
* We use the attribute selector to make sure we only target the dropdowns
|
|
47
|
+
* ex. time- and datepicker has other classes appended to the '.cdk-overlay-pane' element
|
|
48
|
+
* and therefore won't be hitted by this selector.
|
|
49
|
+
*/
|
|
50
|
+
.cdk-overlay-pane[class="cdk-overlay-pane"] {
|
|
51
|
+
transform: none !important;
|
|
52
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright 2020 Energinet DataHub A/S
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License2");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
@forward "../../../breakpoints/breakpoints.import";
|
|
15
|
+
@forward "../../typography/typography.import" as typography-*;
|
|
16
|
+
@forward "../../spacing/spacing.import" as space-*;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// Copyright 2020 Energinet DataHub A/S
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License2");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
@use "@angular/material" as mat;
|
|
15
|
+
@use "@angular/cdk";
|
|
16
|
+
|
|
17
|
+
$palette: (
|
|
18
|
+
"primary": var(--watt-color-primary),
|
|
19
|
+
"primary-light": var(--watt-color-primary-light),
|
|
20
|
+
"primary-dark": var(--watt-color-primary-dark),
|
|
21
|
+
"contrast": (
|
|
22
|
+
"primary": var(--watt-color-primary-contrast),
|
|
23
|
+
"primary-light": var(--watt-color-primary-light-contrast),
|
|
24
|
+
"primary-dark": var(--watt-color-primary-dark-contrast),
|
|
25
|
+
),
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
$watt-palette: mat.m2-define-palette($palette, "primary", "primary-light", "primary-dark");
|
|
29
|
+
|
|
30
|
+
$watt-typography: mat.m2-define-typography-config(
|
|
31
|
+
$font-family: "Open Sans, sans-serif",
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
$watt-theme: mat.m2-define-light-theme(
|
|
35
|
+
(
|
|
36
|
+
color: (
|
|
37
|
+
primary: $watt-palette,
|
|
38
|
+
accent: $watt-palette,
|
|
39
|
+
),
|
|
40
|
+
typography: $watt-typography,
|
|
41
|
+
)
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
@include cdk.a11y-visually-hidden();
|
|
45
|
+
|
|
46
|
+
@include mat.core();
|
|
47
|
+
|
|
48
|
+
@include mat.autocomplete-theme($watt-theme);
|
|
49
|
+
@include mat.badge-theme($watt-theme);
|
|
50
|
+
@include mat.button-theme($watt-theme);
|
|
51
|
+
@include mat.button-toggle-theme($watt-theme);
|
|
52
|
+
@include mat.card-theme($watt-theme);
|
|
53
|
+
@include mat.chips-theme($watt-theme);
|
|
54
|
+
@include mat.core-theme($watt-theme);
|
|
55
|
+
@include mat.datepicker-theme($watt-theme);
|
|
56
|
+
@include mat.dialog-theme($watt-theme);
|
|
57
|
+
@include mat.expansion-theme($watt-theme);
|
|
58
|
+
@include mat.form-field-theme($watt-theme);
|
|
59
|
+
@include mat.icon-theme($watt-theme);
|
|
60
|
+
@include mat.input-theme($watt-theme);
|
|
61
|
+
@include mat.select-theme($watt-theme);
|
|
62
|
+
@include mat.sidenav-theme($watt-theme);
|
|
63
|
+
@include mat.table-theme($watt-theme);
|
|
64
|
+
@include mat.tabs-theme($watt-theme);
|
|
65
|
+
@include mat.tooltip-theme($watt-theme);
|
|
66
|
+
@include mat.menu-theme($watt-theme);
|
|
67
|
+
@include mat.toolbar-theme($watt-theme);
|
|
68
|
+
@include mat.stepper-theme($watt-theme);
|
|
69
|
+
@include mat.divider-theme($watt-theme);
|
|
70
|
+
@include mat.slide-toggle-theme($watt-theme);
|
|
71
|
+
@include mat.progress-bar-theme($watt-theme);
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// Copyright 2020 Energinet DataHub A/S
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License2");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
@use "../../utils" as watt;
|
|
15
|
+
|
|
16
|
+
// The following selectors are taken from Material
|
|
17
|
+
|
|
18
|
+
.mat-calendar .mat-calendar-header {
|
|
19
|
+
margin-top: -10px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.mat-calendar-body-in-range {
|
|
23
|
+
--mat-datepicker-calendar-date-in-range-state-background-color: var(--watt-color-primary-light);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.mat-calendar-body-today:not(.mat-calendar-body-selected):not(
|
|
27
|
+
.mat-calendar-body-comparison-identical
|
|
28
|
+
) {
|
|
29
|
+
border-color: var(--watt-color-neutral-black);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Set styling on "todays date"
|
|
33
|
+
.cdk-program-focused
|
|
34
|
+
.mat-calendar-body-active
|
|
35
|
+
> .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(
|
|
36
|
+
.mat-calendar-body-comparison-identical
|
|
37
|
+
) {
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
color: var(--watt-color-neutral-black);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Set styling on "hover" on "todays date"
|
|
43
|
+
.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover
|
|
44
|
+
> .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(
|
|
45
|
+
.mat-calendar-body-comparison-identical
|
|
46
|
+
) {
|
|
47
|
+
background-color: var(--watt-color-primary);
|
|
48
|
+
color: var(--watt-color-neutral-white);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Set styling on dates when navigating with the keyboard
|
|
52
|
+
.cdk-keyboard-focused
|
|
53
|
+
.mat-calendar-body-active
|
|
54
|
+
> .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(
|
|
55
|
+
.mat-calendar-body-comparison-identical
|
|
56
|
+
) {
|
|
57
|
+
color: var(--watt-color-neutral-white);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.mat-calendar-next-button,
|
|
61
|
+
.mat-calendar-previous-button {
|
|
62
|
+
color: var(--watt-color-primary);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.mat-calendar-body-in-preview .mat-calendar-body-cell-preview {
|
|
66
|
+
background-color: var(--watt-color-secondary-light);
|
|
67
|
+
border-bottom: 1px solid var(--watt-color-secondary);
|
|
68
|
+
border-top: 1px solid var(--watt-color-secondary);
|
|
69
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright 2020 Energinet DataHub A/S
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License2");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
.mdc-snackbar.mat-mdc-snack-bar-container {
|
|
15
|
+
max-width: 704px;
|
|
16
|
+
margin-bottom: 30px;
|
|
17
|
+
|
|
18
|
+
.mdc-snackbar__label,
|
|
19
|
+
.mdc-snackbar__surface {
|
|
20
|
+
padding: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.mdc-snackbar__surface {
|
|
24
|
+
box-shadow: none;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Copyright 2020 Energinet DataHub A/S
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License2");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
html {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
*,
|
|
19
|
+
*:before,
|
|
20
|
+
*:after {
|
|
21
|
+
box-sizing: inherit;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Copyright 2020 Energinet DataHub A/S
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License2");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
@use "@energinet-datahub/watt/utils" as watt;
|
|
15
|
+
|
|
16
|
+
.watt-chip-label {
|
|
17
|
+
@include watt.typography-watt-label;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
background: var(--watt-color-state-info-light);
|
|
20
|
+
padding: 0 12px;
|
|
21
|
+
border-radius: 32px;
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Copyright 2020 Energinet DataHub A/S
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License2");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
.watt-elevation:not([class*="mat-elevation-z"]) {
|
|
15
|
+
box-shadow:
|
|
16
|
+
0px 1px 6px rgba(11, 60, 93, 0.12),
|
|
17
|
+
0px 4px 18px 3px rgba(46, 50, 52, 0.08);
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Copyright 2020 Energinet DataHub A/S
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License2");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
.watt-divider {
|
|
15
|
+
all: unset;
|
|
16
|
+
display: block;
|
|
17
|
+
border-top: 1px solid var(--watt-color-neutral-grey-300);
|
|
18
|
+
margin: var(--watt-space-m) 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|