@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,287 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { HostBinding, Input, Directive, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
//#region License
|
|
5
|
+
/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
//#endregion
|
|
22
|
+
/* eslint-disable @angular-eslint/no-input-rename */
|
|
23
|
+
class VaterUtilityDirective {
|
|
24
|
+
/** Stretch the element to fill the available space in one or both directions. */
|
|
25
|
+
fill;
|
|
26
|
+
/** Position the element absolute with the provided inset value. */
|
|
27
|
+
inset;
|
|
28
|
+
center;
|
|
29
|
+
get _class() {
|
|
30
|
+
return [this.fill, this.inset].filter(Boolean);
|
|
31
|
+
}
|
|
32
|
+
get _center() {
|
|
33
|
+
return this.center === '';
|
|
34
|
+
}
|
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: VaterUtilityDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
36
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.1", type: VaterUtilityDirective, isStandalone: true, selector: "[vater]", inputs: { fill: ["fill", "fill", (value) => `vater-fill-${value}`], inset: ["inset", "inset", (value) => `vater-inset-${value}`], center: "center" }, host: { properties: { "class": "this._class", "class.vater-center": "this._center" } }, ngImport: i0 });
|
|
37
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: VaterUtilityDirective, decorators: [{
|
|
39
|
+
type: Directive,
|
|
40
|
+
args: [{
|
|
41
|
+
selector: '[vater]',
|
|
42
|
+
}]
|
|
43
|
+
}], propDecorators: { fill: [{
|
|
44
|
+
type: Input,
|
|
45
|
+
args: [{ transform: (value) => `vater-fill-${value}` }]
|
|
46
|
+
}], inset: [{
|
|
47
|
+
type: Input,
|
|
48
|
+
args: [{ transform: (value) => `vater-inset-${value}` }]
|
|
49
|
+
}], center: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], _class: [{
|
|
52
|
+
type: HostBinding,
|
|
53
|
+
args: ['class']
|
|
54
|
+
}], _center: [{
|
|
55
|
+
type: HostBinding,
|
|
56
|
+
args: ['class.vater-center']
|
|
57
|
+
}] } });
|
|
58
|
+
|
|
59
|
+
//#region License
|
|
60
|
+
/**
|
|
61
|
+
* @license
|
|
62
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
63
|
+
*
|
|
64
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
65
|
+
* you may not use this file except in compliance with the License.
|
|
66
|
+
* You may obtain a copy of the License at
|
|
67
|
+
*
|
|
68
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
69
|
+
*
|
|
70
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
71
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
72
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
73
|
+
* See the License for the specific language governing permissions and
|
|
74
|
+
* limitations under the License.
|
|
75
|
+
*/
|
|
76
|
+
//#endregion
|
|
77
|
+
class VaterFlexComponent {
|
|
78
|
+
direction = 'column';
|
|
79
|
+
grow = '1';
|
|
80
|
+
shrink = '1';
|
|
81
|
+
basis = 'auto';
|
|
82
|
+
gap;
|
|
83
|
+
justify;
|
|
84
|
+
wrap = 'nowrap';
|
|
85
|
+
scrollable;
|
|
86
|
+
offset;
|
|
87
|
+
get _offset() {
|
|
88
|
+
if (!this.offset)
|
|
89
|
+
return undefined;
|
|
90
|
+
switch (this.direction) {
|
|
91
|
+
case 'column':
|
|
92
|
+
return `var(--watt-space-${this.offset}) 0`;
|
|
93
|
+
case 'row':
|
|
94
|
+
return `0 var(--watt-space-${this.offset})`;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
get _gap() {
|
|
98
|
+
return this.gap ? `var(--watt-space-${this.gap})` : undefined;
|
|
99
|
+
}
|
|
100
|
+
get _overflow() {
|
|
101
|
+
return this.scrollable === '' ? 'auto' : undefined;
|
|
102
|
+
}
|
|
103
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: VaterFlexComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
104
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: VaterFlexComponent, isStandalone: true, selector: "vater-flex, [vater-flex]", inputs: { direction: "direction", grow: "grow", shrink: "shrink", basis: "basis", gap: "gap", justify: "justify", wrap: "wrap", scrollable: "scrollable", offset: "offset" }, host: { properties: { "style.flex-direction": "this.direction", "style.--grow": "this.grow", "style.--shrink": "this.shrink", "style.--basis": "this.basis", "style.justify-content": "this.justify", "style.flex-wrap": "this.wrap", "style.padding": "this._offset", "style.gap": "this._gap", "style.overflow": "this._overflow" } }, hostDirectives: [{ directive: VaterUtilityDirective, inputs: ["fill", "fill"] }], ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["vater-flex,[vater-flex]{display:flex;line-height:normal}vater-flex>*,[vater-flex]>*{flex:var(--grow) var(--shrink) var(--basis)}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
105
|
+
}
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: VaterFlexComponent, decorators: [{
|
|
107
|
+
type: Component,
|
|
108
|
+
args: [{ selector: 'vater-flex, [vater-flex]', encapsulation: ViewEncapsulation.None, hostDirectives: [
|
|
109
|
+
{
|
|
110
|
+
directive: VaterUtilityDirective,
|
|
111
|
+
inputs: ['fill'],
|
|
112
|
+
},
|
|
113
|
+
], template: `<ng-content />`, styles: ["vater-flex,[vater-flex]{display:flex;line-height:normal}vater-flex>*,[vater-flex]>*{flex:var(--grow) var(--shrink) var(--basis)}\n"] }]
|
|
114
|
+
}], propDecorators: { direction: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}, {
|
|
117
|
+
type: HostBinding,
|
|
118
|
+
args: ['style.flex-direction']
|
|
119
|
+
}], grow: [{
|
|
120
|
+
type: Input
|
|
121
|
+
}, {
|
|
122
|
+
type: HostBinding,
|
|
123
|
+
args: ['style.--grow']
|
|
124
|
+
}], shrink: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}, {
|
|
127
|
+
type: HostBinding,
|
|
128
|
+
args: ['style.--shrink']
|
|
129
|
+
}], basis: [{
|
|
130
|
+
type: Input
|
|
131
|
+
}, {
|
|
132
|
+
type: HostBinding,
|
|
133
|
+
args: ['style.--basis']
|
|
134
|
+
}], gap: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], justify: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}, {
|
|
139
|
+
type: HostBinding,
|
|
140
|
+
args: ['style.justify-content']
|
|
141
|
+
}], wrap: [{
|
|
142
|
+
type: Input
|
|
143
|
+
}, {
|
|
144
|
+
type: HostBinding,
|
|
145
|
+
args: ['style.flex-wrap']
|
|
146
|
+
}], scrollable: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], offset: [{
|
|
149
|
+
type: Input
|
|
150
|
+
}], _offset: [{
|
|
151
|
+
type: HostBinding,
|
|
152
|
+
args: ['style.padding']
|
|
153
|
+
}], _gap: [{
|
|
154
|
+
type: HostBinding,
|
|
155
|
+
args: ['style.gap']
|
|
156
|
+
}], _overflow: [{
|
|
157
|
+
type: HostBinding,
|
|
158
|
+
args: ['style.overflow']
|
|
159
|
+
}] } });
|
|
160
|
+
|
|
161
|
+
//#region License
|
|
162
|
+
/**
|
|
163
|
+
* @license
|
|
164
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
165
|
+
*
|
|
166
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
167
|
+
* you may not use this file except in compliance with the License.
|
|
168
|
+
* You may obtain a copy of the License at
|
|
169
|
+
*
|
|
170
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
171
|
+
*
|
|
172
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
173
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
174
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
175
|
+
* See the License for the specific language governing permissions and
|
|
176
|
+
* limitations under the License.
|
|
177
|
+
*/
|
|
178
|
+
//#endregion
|
|
179
|
+
class VaterSpacerComponent {
|
|
180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: VaterSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
181
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: VaterSpacerComponent, isStandalone: true, selector: "vater-spacer, [vater-spacer]", ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["vater-spacer,[vater-spacer]{flex:1;align-self:stretch}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
182
|
+
}
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: VaterSpacerComponent, decorators: [{
|
|
184
|
+
type: Component,
|
|
185
|
+
args: [{ selector: 'vater-spacer, [vater-spacer]', encapsulation: ViewEncapsulation.None, template: `<ng-content />`, styles: ["vater-spacer,[vater-spacer]{flex:1;align-self:stretch}\n"] }]
|
|
186
|
+
}] });
|
|
187
|
+
|
|
188
|
+
//#region License
|
|
189
|
+
/**
|
|
190
|
+
* @license
|
|
191
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
192
|
+
*
|
|
193
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
194
|
+
* you may not use this file except in compliance with the License.
|
|
195
|
+
* You may obtain a copy of the License at
|
|
196
|
+
*
|
|
197
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
198
|
+
*
|
|
199
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
200
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
201
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
202
|
+
* See the License for the specific language governing permissions and
|
|
203
|
+
* limitations under the License.
|
|
204
|
+
*/
|
|
205
|
+
//#endregion
|
|
206
|
+
class VaterStackComponent {
|
|
207
|
+
align = 'center';
|
|
208
|
+
direction = 'column';
|
|
209
|
+
gap;
|
|
210
|
+
justify;
|
|
211
|
+
offset;
|
|
212
|
+
get _offset() {
|
|
213
|
+
if (!this.offset)
|
|
214
|
+
return undefined;
|
|
215
|
+
switch (this.direction) {
|
|
216
|
+
case 'column':
|
|
217
|
+
return `var(--watt-space-${this.offset}) 0`;
|
|
218
|
+
case 'row':
|
|
219
|
+
return `0 var(--watt-space-${this.offset})`;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
get _gap() {
|
|
223
|
+
return this.gap ? `var(--watt-space-${this.gap})` : undefined;
|
|
224
|
+
}
|
|
225
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: VaterStackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
226
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: VaterStackComponent, isStandalone: true, selector: "vater-stack, [vater-stack]", inputs: { align: "align", direction: "direction", gap: "gap", justify: "justify", offset: "offset" }, host: { properties: { "style.align-items": "this.align", "style.flex-direction": "this.direction", "style.justify-content": "this.justify", "style.padding": "this._offset", "style.gap": "this._gap" } }, hostDirectives: [{ directive: VaterUtilityDirective, inputs: ["fill", "fill"] }], ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["vater-stack,[vater-stack]{display:flex;line-height:normal}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
227
|
+
}
|
|
228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: VaterStackComponent, decorators: [{
|
|
229
|
+
type: Component,
|
|
230
|
+
args: [{ selector: 'vater-stack, [vater-stack]', encapsulation: ViewEncapsulation.None, hostDirectives: [
|
|
231
|
+
{
|
|
232
|
+
directive: VaterUtilityDirective,
|
|
233
|
+
inputs: ['fill'],
|
|
234
|
+
},
|
|
235
|
+
], template: `<ng-content />`, styles: ["vater-stack,[vater-stack]{display:flex;line-height:normal}\n"] }]
|
|
236
|
+
}], propDecorators: { align: [{
|
|
237
|
+
type: Input
|
|
238
|
+
}, {
|
|
239
|
+
type: HostBinding,
|
|
240
|
+
args: ['style.align-items']
|
|
241
|
+
}], direction: [{
|
|
242
|
+
type: Input
|
|
243
|
+
}, {
|
|
244
|
+
type: HostBinding,
|
|
245
|
+
args: ['style.flex-direction']
|
|
246
|
+
}], gap: [{
|
|
247
|
+
type: Input
|
|
248
|
+
}], justify: [{
|
|
249
|
+
type: Input
|
|
250
|
+
}, {
|
|
251
|
+
type: HostBinding,
|
|
252
|
+
args: ['style.justify-content']
|
|
253
|
+
}], offset: [{
|
|
254
|
+
type: Input
|
|
255
|
+
}], _offset: [{
|
|
256
|
+
type: HostBinding,
|
|
257
|
+
args: ['style.padding']
|
|
258
|
+
}], _gap: [{
|
|
259
|
+
type: HostBinding,
|
|
260
|
+
args: ['style.gap']
|
|
261
|
+
}] } });
|
|
262
|
+
|
|
263
|
+
//#region License
|
|
264
|
+
/**
|
|
265
|
+
* @license
|
|
266
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
267
|
+
*
|
|
268
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
269
|
+
* you may not use this file except in compliance with the License.
|
|
270
|
+
* You may obtain a copy of the License at
|
|
271
|
+
*
|
|
272
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
273
|
+
*
|
|
274
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
275
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
276
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
277
|
+
* See the License for the specific language governing permissions and
|
|
278
|
+
* limitations under the License.
|
|
279
|
+
*/
|
|
280
|
+
//#endregion
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Generated bundle index. Do not edit.
|
|
284
|
+
*/
|
|
285
|
+
|
|
286
|
+
export { VaterFlexComponent, VaterSpacerComponent, VaterStackComponent, VaterUtilityDirective };
|
|
287
|
+
//# sourceMappingURL=energinet-watt-vater.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-vater.mjs","sources":["../../../libs/watt/package/vater/vater-utility.directive.ts","../../../libs/watt/package/vater/vater-flex.component.ts","../../../libs/watt/package/vater/vater-spacer.component.ts","../../../libs/watt/package/vater/vater-stack.component.ts","../../../libs/watt/package/vater/index.ts","../../../libs/watt/package/vater/energinet-watt-vater.ts"],"sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Directive, HostBinding, Input } from '@angular/core';\n\nexport type Fill = 'horizontal' | 'vertical' | 'both';\nexport type Inset = '0' | 'xs' | 's' | 'm' | 'ml' | 'l' | 'xl';\n\n/* eslint-disable @angular-eslint/no-input-rename */\n@Directive({\n selector: '[vater]',\n})\nexport class VaterUtilityDirective {\n /** Stretch the element to fill the available space in one or both directions. */\n @Input({ transform: (value: Fill) => `vater-fill-${value}` })\n fill?: Fill;\n\n /** Position the element absolute with the provided inset value. */\n @Input({ transform: (value: Inset) => `vater-inset-${value}` })\n inset?: Inset;\n\n @Input()\n center?: string;\n\n @HostBinding('class')\n get _class() {\n return [this.fill, this.inset].filter(Boolean);\n }\n\n @HostBinding('class.vater-center')\n get _center() {\n return this.center === '';\n }\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';\nimport { Direction, Spacing, Justify, Wrap } from './types';\nimport { VaterUtilityDirective } from './vater-utility.directive';\n\n@Component({\n selector: 'vater-flex, [vater-flex]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterUtilityDirective,\n inputs: ['fill'],\n },\n ],\n styles: [\n `\n vater-flex,\n [vater-flex] {\n display: flex;\n line-height: normal;\n }\n\n vater-flex > *,\n [vater-flex] > * {\n flex: var(--grow) var(--shrink) var(--basis);\n }\n `,\n ],\n template: `<ng-content />`,\n})\nexport class VaterFlexComponent {\n @Input()\n @HostBinding('style.flex-direction')\n direction: Direction = 'column';\n\n @Input()\n @HostBinding('style.--grow')\n grow = '1';\n\n @Input()\n @HostBinding('style.--shrink')\n shrink = '1';\n\n @Input()\n @HostBinding('style.--basis')\n basis = 'auto';\n\n @Input()\n gap?: Spacing;\n\n @Input()\n @HostBinding('style.justify-content')\n justify?: Justify;\n\n @Input()\n @HostBinding('style.flex-wrap')\n wrap?: Wrap = 'nowrap';\n\n @Input()\n scrollable?: string;\n\n @Input()\n offset?: Spacing;\n\n @HostBinding('style.padding')\n get _offset() {\n if (!this.offset) return undefined;\n switch (this.direction) {\n case 'column':\n return `var(--watt-space-${this.offset}) 0`;\n case 'row':\n return `0 var(--watt-space-${this.offset})`;\n }\n }\n\n @HostBinding('style.gap')\n get _gap() {\n return this.gap ? `var(--watt-space-${this.gap})` : undefined;\n }\n\n @HostBinding('style.overflow')\n get _overflow() {\n return this.scrollable === '' ? 'auto' : undefined;\n }\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'vater-spacer, [vater-spacer]',\n encapsulation: ViewEncapsulation.None,\n styles: [\n `\n vater-spacer,\n [vater-spacer] {\n flex: 1;\n align-self: stretch;\n }\n `,\n ],\n template: `<ng-content />`,\n})\nexport class VaterSpacerComponent {}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';\n\nimport { Align, Direction, Spacing, Justify } from './types';\nimport { VaterUtilityDirective } from './vater-utility.directive';\n\n@Component({\n selector: 'vater-stack, [vater-stack]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterUtilityDirective,\n inputs: ['fill'],\n },\n ],\n styles: [\n `\n vater-stack,\n [vater-stack] {\n display: flex;\n line-height: normal;\n }\n `,\n ],\n template: `<ng-content />`,\n})\nexport class VaterStackComponent {\n @Input()\n @HostBinding('style.align-items')\n align: Align = 'center';\n\n @Input()\n @HostBinding('style.flex-direction')\n direction: Direction = 'column';\n\n @Input()\n gap?: Spacing;\n\n @Input()\n @HostBinding('style.justify-content')\n justify?: Justify;\n\n @Input()\n offset?: Spacing;\n\n @HostBinding('style.padding')\n get _offset() {\n if (!this.offset) return undefined;\n switch (this.direction) {\n case 'column':\n return `var(--watt-space-${this.offset}) 0`;\n case 'row':\n return `0 var(--watt-space-${this.offset})`;\n }\n }\n\n @HostBinding('style.gap')\n get _gap() {\n return this.gap ? `var(--watt-space-${this.gap})` : undefined;\n }\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { VaterFlexComponent } from './vater-flex.component';\nexport { VaterSpacerComponent } from './vater-spacer.component';\nexport { VaterStackComponent } from './vater-stack.component';\nexport { VaterUtilityDirective } from './vater-utility.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAMA;MAIa,qBAAqB,CAAA;;AAGhC,IAAA,IAAI;;AAIJ,IAAA,KAAK;AAGL,IAAA,MAAM;AAEN,IAAA,IACI,MAAM,GAAA;AACR,QAAA,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;;AAGhD,I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A,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAEf,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBApB/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,4BAA4B,EACvB,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACrB,cAAA,EAAA;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,qBAAqB;4BAChC,MAAM,EAAE,CAAC,MAAM,CAAC;AACjB,yBAAA;AACF,qBAAA,EAAA,QAAA,EAUS,CAAgB,cAAA,CAAA,EAAA,MAAA,EAAA,CAAA,8DAAA,CAAA,EAAA;8BAK1B,KAAK,EAAA,CAAA;sBAFJ;;sBACA,WAAW;uBAAC,mBAAmB;gBAKhC,SAAS,EAAA,CAAA;sBAFR;;sBACA,WAAW;uBAAC,sBAAsB;gBAInC,GAAG,EAAA,CAAA;sBADF;gBAKD,OAAO,EAAA,CAAA;sBAFN;;sBACA,WAAW;uBAAC,uBAAuB;gBAIpC,MAAM,EAAA,CAAA;sBADL;gBAIG,OAAO,EAAA,CAAA;sBADV,WAAW;uBAAC,eAAe;gBAYxB,IAAI,EAAA,CAAA;sBADP,WAAW;uBAAC,WAAW;;;ACzE1B;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//#region License
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
//#endregion
|
|
19
|
+
/**
|
|
20
|
+
* @license
|
|
21
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
22
|
+
*
|
|
23
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
24
|
+
* you may not use this file except in compliance with the License.
|
|
25
|
+
* You may obtain a copy of the License at
|
|
26
|
+
*
|
|
27
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
28
|
+
*
|
|
29
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
30
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
31
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
32
|
+
* See the License for the specific language governing permissions and
|
|
33
|
+
* limitations under the License.
|
|
34
|
+
*/
|
|
35
|
+
// primary entry-point which is empty. All components should
|
|
36
|
+
// be imported through their individual entry-points. This file is needed to
|
|
37
|
+
// satisfy the "ng_package" rule which also requires a primary entry-point.
|
|
38
|
+
// Workaround for: https://github.com/microsoft/rushstack/issues/2806.
|
|
39
|
+
// This is a private export that can be removed at any time.
|
|
40
|
+
const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Generated bundle index. Do not edit.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
export { ɵɵtsModuleIndicatorApiExtractorWorkaround };
|
|
47
|
+
//# sourceMappingURL=energinet-watt.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt.mjs","sources":["../../../libs/watt/package/index.ts","../../../libs/watt/package/energinet-watt.ts"],"sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// primary entry-point which is empty. All components should\n// be imported through their individual entry-points. This file is needed to\n// satisfy the \"ng_package\" rule which also requires a primary entry-point.\n\n// Workaround for: https://github.com/microsoft/rushstack/issues/2806.\n// This is a private export that can be removed at any time.\nexport const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AACA;;;;;;;;;;;;;;;AAeG;AAEH;AACA;AACA;AAEA;AACA;AACO,MAAM,yCAAyC,GAAG;;ACzCzD;;AAEG;;;;"}
|
package/field/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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 { WattFieldComponent } from './watt-field.component';
|
|
18
|
+
export { WattFieldErrorComponent } from './watt-field-error.component';
|
|
19
|
+
export { WattFieldHintComponent } from './watt-field-hint.component';
|
|
20
|
+
export { WattFieldIntlService } from './watt-field-intl.service';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattFieldErrorComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattFieldErrorComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattFieldErrorComponent, "watt-field-error", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattFieldHintComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattFieldHintComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattFieldHintComponent, "watt-field-hint", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class WattFieldIntlService {
|
|
4
|
+
readonly changes: Subject<void>;
|
|
5
|
+
required: string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattFieldIntlService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WattFieldIntlService>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { ElementRef } from '@angular/core';
|
|
18
|
+
import { FormControl, ValidationErrors } from '@angular/forms';
|
|
19
|
+
import { WattFieldIntlService } from './watt-field-intl.service';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
export declare class WattFieldComponent {
|
|
22
|
+
intl: WattFieldIntlService;
|
|
23
|
+
control: import("@angular/core").InputSignal<FormControl<any> | null>;
|
|
24
|
+
label: import("@angular/core").InputSignal<string | undefined>;
|
|
25
|
+
id: import("@angular/core").InputSignal<string | undefined>;
|
|
26
|
+
chipMode: import("@angular/core").InputSignal<boolean>;
|
|
27
|
+
tooltip: import("@angular/core").InputSignal<string | undefined>;
|
|
28
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
29
|
+
anchorName: import("@angular/core").InputSignal<string | undefined>;
|
|
30
|
+
value: import("@angular/core").WritableSignal<string>;
|
|
31
|
+
filler: import("@angular/core").Signal<string>;
|
|
32
|
+
ghost: import("@angular/core").Signal<string>;
|
|
33
|
+
unlabelled: import("@angular/core").Signal<boolean>;
|
|
34
|
+
errors: import("@angular/core").WritableSignal<ValidationErrors | null>;
|
|
35
|
+
isRequired: import("@angular/core").WritableSignal<boolean>;
|
|
36
|
+
isEmpty: import("@angular/core").Signal<any>;
|
|
37
|
+
wrapper: import("@angular/core").Signal<ElementRef<any>>;
|
|
38
|
+
constructor();
|
|
39
|
+
isRequiredControl(control: FormControl): boolean;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattFieldComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattFieldComponent, "watt-field", never, { "control": { "alias": "control"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "chipMode": { "alias": "chipMode"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "anchorName": { "alias": "anchorName"; "required": false; "isSignal": true; }; }, {}, never, ["*", "watt-field-descriptor", "[popover]", "watt-field-hint", "watt-field-error"], true, never>;
|
|
42
|
+
}
|
|
@@ -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 { WattFlagComponent } from './watt-flag';
|
|
18
|
+
export { WattFlagDenmarkComponent } from './watt-flag-dk';
|
|
19
|
+
export { WattFlagFinlandComponent } from './watt-flag-fi';
|
|
20
|
+
export { WattFlagGermanyComponent } from './watt-flag-de';
|
|
21
|
+
export { WattFlagNorwayComponent } from './watt-flag-no';
|
|
22
|
+
export { WattFlagPolandComponent } from './watt-flag-pl';
|
|
23
|
+
export { WattFlagSwedenComponent } from './watt-flag-se';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattFlagGermanyComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattFlagGermanyComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattFlagGermanyComponent, "watt-flag-de", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattFlagDenmarkComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattFlagDenmarkComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattFlagDenmarkComponent, "watt-flag-dk", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattFlagFinlandComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattFlagFinlandComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattFlagFinlandComponent, "watt-flag-fi", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattFlagNorwayComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattFlagNorwayComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattFlagNorwayComponent, "watt-flag-no", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattFlagPolandComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattFlagPolandComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattFlagPolandComponent, "watt-flag-pl", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattFlagSwedenComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattFlagSwedenComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattFlagSwedenComponent, "watt-flag-se", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CountryCode } from 'libphonenumber-js';
|
|
2
|
+
import { WattIconSize } from '@energinet/watt/icon';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WattFlagComponent {
|
|
5
|
+
/** Country code of the flag. */
|
|
6
|
+
country: import("@angular/core").InputSignal<CountryCode>;
|
|
7
|
+
/** Accessible label for the icon. */
|
|
8
|
+
label: import("@angular/core").InputSignal<string | undefined>;
|
|
9
|
+
/** Size of the icon. */
|
|
10
|
+
size: import("@angular/core").InputSignal<WattIconSize>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattFlagComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattFlagComponent, "watt-flag", never, { "country": { "alias": "country"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { WattIconMap } from './icons';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type WattIcon = keyof typeof WattIconMap;
|
|
4
|
+
export type WattIconSize = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
5
|
+
export type WattIconState = 'default' | 'success' | 'danger' | 'warning' | 'info';
|
|
6
|
+
export declare class WattIconComponent {
|
|
7
|
+
/** Name of an icon within the font set. */
|
|
8
|
+
name: import("@angular/core").InputSignal<"search" | "remove" | "edit" | "redo" | "undo" | "close" | "cancel" | "settings" | "email" | "link" | "payments" | "menu" | "logout" | "help" | "refresh" | "language" | "info" | "feedback" | "download" | "print" | "preview" | "power" | "notifications" | "success" | "danger" | "warning" | "filter" | "plus" | "minus" | "removeForever" | "checkmark" | "user" | "contentCopy" | "date" | "time" | "markEmailUnread" | "openInNew" | "monetization" | "forwardMessage" | "moreVertical" | "login" | "alternateEmail" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "save" | "upload" | "fileDownload" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | undefined>;
|
|
9
|
+
/** Accessible label for the icon. */
|
|
10
|
+
label: import("@angular/core").InputSignal<string | undefined>;
|
|
11
|
+
/** Size of the icon. */
|
|
12
|
+
size: import("@angular/core").InputSignal<WattIconSize>;
|
|
13
|
+
/** Color the icon to match a chosen state. */
|
|
14
|
+
state: import("@angular/core").InputSignal<WattIconState | undefined>;
|
|
15
|
+
icon: import("@angular/core").Signal<string | null>;
|
|
16
|
+
computedState: import("@angular/core").Signal<WattIconState>;
|
|
17
|
+
classNames: import("@angular/core").Signal<string>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattIconComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattIconComponent, "watt-icon", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
20
|
+
}
|