@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,17 @@
|
|
|
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 { WattDateTimeField } from './watt-datetime-field.component';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class WattDateTimeField implements ControlValueAccessor {
|
|
4
|
+
private locale;
|
|
5
|
+
private static instance;
|
|
6
|
+
private instance;
|
|
7
|
+
protected anchorName: string;
|
|
8
|
+
/** Converts date from outer FormControl to format of inner FormControl. */
|
|
9
|
+
protected modelToView: (value: Date | null, format?: string) => string;
|
|
10
|
+
/** Converts value of inner FormControl to type of outer FormControl. */
|
|
11
|
+
protected viewToModel: (value: string) => Date | null;
|
|
12
|
+
private calendar;
|
|
13
|
+
protected control: FormControl<string>;
|
|
14
|
+
private valueChanges;
|
|
15
|
+
/** Set the label text for `watt-field`. */
|
|
16
|
+
label: import("@angular/core").InputSignal<string>;
|
|
17
|
+
/** The minimum selectable date. */
|
|
18
|
+
min: import("@angular/core").InputSignal<Date | undefined>;
|
|
19
|
+
/** The maximum selectable date. */
|
|
20
|
+
max: import("@angular/core").InputSignal<Date | undefined>;
|
|
21
|
+
/** When true, seconds will be set to 59 and milliseconds to 999. Otherwise, both are 0. */
|
|
22
|
+
inclusive: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
/** Emits when the selected date has changed. */
|
|
24
|
+
dateChange: import("@angular/core").OutputRef<Date | null>;
|
|
25
|
+
/** Emits when the field loses focus. */
|
|
26
|
+
blur: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
27
|
+
protected selected: import("@angular/core").WritableSignal<Date | null>;
|
|
28
|
+
protected placeholder: import("@angular/core").Signal<"dd-mm-åååå, tt:mm" | "dd-mm-yyyy, hh:mm">;
|
|
29
|
+
protected mask: import("@angular/core").Signal<Required<import("@maskito/core").MaskitoOptions>>;
|
|
30
|
+
protected handleBlur: (picker: HTMLElement, event: FocusEvent) => void;
|
|
31
|
+
protected handleSelectedChange: (field: HTMLInputElement, picker: HTMLDivElement, date: Date) => void;
|
|
32
|
+
constructor();
|
|
33
|
+
writeValue: (value: Date | null) => void;
|
|
34
|
+
setDisabledState: (x: boolean) => void;
|
|
35
|
+
registerOnTouched: (fn: () => void) => import("@angular/core").OutputRefSubscription;
|
|
36
|
+
registerOnChange: (fn: (value: Date | null) => void) => import("rxjs").Subscription;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattDateTimeField, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattDateTimeField, "watt-datetime-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "inclusive": { "alias": "inclusive"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; "blur": "blur"; }, never, ["*", "watt-field-error", "watt-field-hint"], true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { WattDescriptionListComponent, WattDescriptionListItemComponent, } from './watt-description-list.component';
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { TemplateRef } from '@angular/core';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
19
|
+
import * as i1 from "@angular/common";
|
|
20
|
+
export declare class WattDescriptionListItemComponent<T> {
|
|
21
|
+
templateRef: import("@angular/core").Signal<TemplateRef<unknown>>;
|
|
22
|
+
label: import("@angular/core").InputSignal<string>;
|
|
23
|
+
value: import("@angular/core").InputSignal<T | null>;
|
|
24
|
+
forceNewRow: import("@angular/core").InputSignal<boolean>;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattDescriptionListItemComponent<any>, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattDescriptionListItemComponent<any>, "watt-description-list-item", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "forceNewRow": { "alias": "forceNewRow"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NgClass; inputs: {}; outputs: {}; }]>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WattDescriptionListItemComponent } from './watt-description-list-item.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
/**
|
|
5
|
+
* Usage:
|
|
6
|
+
* `import { WattDescriptionListComponent } from '@energinet-datahub/watt/description-list';`
|
|
7
|
+
*/
|
|
8
|
+
declare class WattDescriptionListComponent<T> {
|
|
9
|
+
private ngClass;
|
|
10
|
+
descriptionItems: import("@angular/core").Signal<readonly WattDescriptionListItemComponent<T>[]>;
|
|
11
|
+
variant: import("@angular/core").InputSignal<"flow" | "stack">;
|
|
12
|
+
descriptionVariant: import("@angular/core").Signal<string>;
|
|
13
|
+
groupsPerRow: import("@angular/core").InputSignal<number>;
|
|
14
|
+
itemSeparators: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
constructor();
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattDescriptionListComponent<any>, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattDescriptionListComponent<any>, "watt-description-list", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "groupsPerRow": { "alias": "groupsPerRow"; "required": false; "isSignal": true; }; "itemSeparators": { "alias": "itemSeparators"; "required": false; "isSignal": true; }; }, {}, ["descriptionItems"], never, true, [{ directive: typeof i1.NgClass; inputs: {}; outputs: {}; }]>;
|
|
18
|
+
}
|
|
19
|
+
export { WattDescriptionListItemComponent, WattDescriptionListComponent };
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { WattDrawerTopbarComponent } from './watt-drawer-topbar.component';
|
|
18
|
+
export { WattDrawerActionsComponent } from './watt-drawer-actions.component';
|
|
19
|
+
export { WattDrawerContentComponent } from './watt-drawer-content.component';
|
|
20
|
+
export { WattDrawerHeadingComponent } from './watt-drawer-heading.component';
|
|
21
|
+
export { WattDrawerComponent, WATT_DRAWER, WattDrawerSize } from './watt-drawer.component';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattDrawerActionsComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattDrawerActionsComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattDrawerActionsComponent, "watt-drawer-actions", never, {}, {}, never, ["watt-button"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattDrawerContentComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattDrawerContentComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattDrawerContentComponent, "watt-drawer-content", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattDrawerHeadingComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattDrawerHeadingComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattDrawerHeadingComponent, "watt-drawer-heading", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattDrawerTopbarComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattDrawerTopbarComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattDrawerTopbarComponent, "watt-drawer-topbar", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { OnDestroy } from '@angular/core';
|
|
18
|
+
import { WattDrawerTopbarComponent } from './watt-drawer-topbar.component';
|
|
19
|
+
import * as i0 from "@angular/core";
|
|
20
|
+
export type WattDrawerSize = 'small' | 'normal' | 'large';
|
|
21
|
+
export declare class WattDrawerComponent implements OnDestroy {
|
|
22
|
+
private elementRef;
|
|
23
|
+
private overlayContainer;
|
|
24
|
+
private cdkTrapFocus;
|
|
25
|
+
private bypassClickCheck;
|
|
26
|
+
private writableIsOpen;
|
|
27
|
+
private static currentDrawer?;
|
|
28
|
+
/** Used to adjust drawer size to best fit the content. */
|
|
29
|
+
size: import("@angular/core").InputSignal<WattDrawerSize>;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the drawer should open automatically. If `key` is provided and
|
|
32
|
+
* `autoOpen` is true, the drawer will open every time the key changes.
|
|
33
|
+
*/
|
|
34
|
+
autoOpen: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
35
|
+
/**
|
|
36
|
+
* Used to track the current drawer when reusing the same drawer instance to
|
|
37
|
+
* render different content. This is required when interactions outside the
|
|
38
|
+
* drawer should result in updating the drawer's content instead of closing it.
|
|
39
|
+
*/
|
|
40
|
+
key: import("@angular/core").InputSignal<unknown>;
|
|
41
|
+
/** Whether the drawer should show a loading state. */
|
|
42
|
+
loading: import("@angular/core").InputSignal<boolean>;
|
|
43
|
+
/** Emits whenever the drawer is fully closed. */
|
|
44
|
+
closed: import("@angular/core").OutputEmitterRef<void>;
|
|
45
|
+
/** Whether the drawer is open. */
|
|
46
|
+
isOpen: import("@angular/core").Signal<boolean>;
|
|
47
|
+
constructor();
|
|
48
|
+
/** @ignore */
|
|
49
|
+
handleDocumentClick(event: MouseEvent): void;
|
|
50
|
+
/** @ignore */
|
|
51
|
+
handleEscKeyPressed(): void;
|
|
52
|
+
/** @ignore */
|
|
53
|
+
ngOnDestroy(): void;
|
|
54
|
+
/** Opens the drawer. Subsequent calls are ignored while the drawer is opened. */
|
|
55
|
+
open(): void;
|
|
56
|
+
/** Closes the drawer. */
|
|
57
|
+
close(): void;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattDrawerComponent, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattDrawerComponent, "watt-drawer", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "autoOpen": { "alias": "autoOpen"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["watt-drawer-topbar", "watt-drawer-heading", "watt-drawer-actions", "watt-drawer-content"], true, never>;
|
|
60
|
+
}
|
|
61
|
+
export declare const WATT_DRAWER: (typeof WattDrawerTopbarComponent)[];
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { WattDropdownComponent } from './watt-dropdown.component';
|
|
18
|
+
export { type WattDropdownOption, type WattDropdownOptions } from './watt-dropdown-option';
|
|
19
|
+
export { type WattDropdownValue } from './watt-dropdown-value';
|
|
@@ -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
|
+
export interface WattDropdownOption {
|
|
18
|
+
value: string;
|
|
19
|
+
displayValue: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export type WattDropdownOptions = WattDropdownOption[];
|
|
@@ -0,0 +1,17 @@
|
|
|
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 type WattDropdownValue = string | string[] | null;
|
|
@@ -0,0 +1,195 @@
|
|
|
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 { OnInit } from '@angular/core';
|
|
18
|
+
import { ControlValueAccessor, FormControl, UntypedFormControl } from '@angular/forms';
|
|
19
|
+
import { MatSelect } from '@angular/material/select';
|
|
20
|
+
import { ReplaySubject } from 'rxjs';
|
|
21
|
+
import type { WattDropdownOptions } from './watt-dropdown-option';
|
|
22
|
+
import type { WattDropdownValue } from './watt-dropdown-value';
|
|
23
|
+
import * as i0 from "@angular/core";
|
|
24
|
+
export declare class WattDropdownComponent implements ControlValueAccessor, OnInit {
|
|
25
|
+
private parentControlDirective;
|
|
26
|
+
/**
|
|
27
|
+
* @ignore
|
|
28
|
+
*/
|
|
29
|
+
private _destroyRef;
|
|
30
|
+
/**
|
|
31
|
+
* @ignore
|
|
32
|
+
*/
|
|
33
|
+
parentControl: FormControl | null;
|
|
34
|
+
/**
|
|
35
|
+
* @ignore
|
|
36
|
+
*/
|
|
37
|
+
private validateParent?;
|
|
38
|
+
/**
|
|
39
|
+
* @ignore
|
|
40
|
+
*/
|
|
41
|
+
private validateParentAsync?;
|
|
42
|
+
/**
|
|
43
|
+
* @ignore
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
isDisabled: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* @ignore
|
|
49
|
+
*/
|
|
50
|
+
matSelectControl: FormControl<string | string[] | null | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* Control for the MatSelect filter keyword
|
|
53
|
+
*
|
|
54
|
+
* @ignore
|
|
55
|
+
*/
|
|
56
|
+
filterControl: UntypedFormControl;
|
|
57
|
+
/**
|
|
58
|
+
* List of options filtered by search keyword
|
|
59
|
+
*
|
|
60
|
+
* @ignore
|
|
61
|
+
*/
|
|
62
|
+
filteredOptions$: ReplaySubject<WattDropdownOptions>;
|
|
63
|
+
/**
|
|
64
|
+
* @ignore
|
|
65
|
+
*/
|
|
66
|
+
emDash: string;
|
|
67
|
+
/**
|
|
68
|
+
* @ignore
|
|
69
|
+
*/
|
|
70
|
+
isToggleAllChecked: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* @ignore
|
|
73
|
+
*/
|
|
74
|
+
isToggleAllIndeterminate: boolean;
|
|
75
|
+
_options: WattDropdownOptions;
|
|
76
|
+
/**
|
|
77
|
+
* @ignore
|
|
78
|
+
*/
|
|
79
|
+
get showTriggerValue(): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* @ignore
|
|
82
|
+
*/
|
|
83
|
+
get showChipLabel(): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* @ignore
|
|
86
|
+
*/
|
|
87
|
+
matSelect?: MatSelect;
|
|
88
|
+
hideSearch: boolean;
|
|
89
|
+
panelWidth: null | 'auto';
|
|
90
|
+
getCustomTrigger?: (value: string | string[]) => string;
|
|
91
|
+
/**
|
|
92
|
+
* Set the mode of the dropdown.
|
|
93
|
+
*/
|
|
94
|
+
chipMode: boolean;
|
|
95
|
+
get chipModeClass(): boolean;
|
|
96
|
+
disableSelectedMode: boolean;
|
|
97
|
+
sortDirection: 'asc' | 'desc' | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Sets the options for the dropdown.
|
|
100
|
+
*/
|
|
101
|
+
set options(options: WattDropdownOptions);
|
|
102
|
+
get options(): WattDropdownOptions;
|
|
103
|
+
/**
|
|
104
|
+
* Sets support for selecting multiple dropdown options.
|
|
105
|
+
*/
|
|
106
|
+
multiple: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Sets support for hiding the reset option in "single" select mode.
|
|
109
|
+
*/
|
|
110
|
+
showResetOption: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Sets the placeholder for the dropdown.
|
|
113
|
+
*/
|
|
114
|
+
placeholder: string;
|
|
115
|
+
/**
|
|
116
|
+
* Sets the label for the dropdown.
|
|
117
|
+
*/
|
|
118
|
+
label: string;
|
|
119
|
+
/**
|
|
120
|
+
* Label to be shown when no options are found after filtering.
|
|
121
|
+
*
|
|
122
|
+
* Note: The label is visible in "multiple" mode only.
|
|
123
|
+
*/
|
|
124
|
+
noOptionsFoundLabel: string;
|
|
125
|
+
constructor();
|
|
126
|
+
/**
|
|
127
|
+
* @ignore
|
|
128
|
+
*/
|
|
129
|
+
ngOnInit(): void;
|
|
130
|
+
/**
|
|
131
|
+
* @ignore
|
|
132
|
+
*/
|
|
133
|
+
writeValue(value: WattDropdownValue): void;
|
|
134
|
+
/**
|
|
135
|
+
* @ignore
|
|
136
|
+
*/
|
|
137
|
+
registerOnChange(onChangeFn: (value: WattDropdownValue) => void): void;
|
|
138
|
+
/**
|
|
139
|
+
* @ignore
|
|
140
|
+
*/
|
|
141
|
+
registerOnTouched(onTouchFn: () => void): void;
|
|
142
|
+
/**
|
|
143
|
+
* @ignore
|
|
144
|
+
*/
|
|
145
|
+
setDisabledState(shouldDisable: boolean): void;
|
|
146
|
+
/**
|
|
147
|
+
* @ignore
|
|
148
|
+
*/
|
|
149
|
+
onToggleAll(toggleAllState: boolean): void;
|
|
150
|
+
sortOptions(options: WattDropdownOptions): WattDropdownOptions;
|
|
151
|
+
/**
|
|
152
|
+
* @ignore
|
|
153
|
+
*/
|
|
154
|
+
private listenForFilterFieldValueChanges;
|
|
155
|
+
/**
|
|
156
|
+
* @ignore
|
|
157
|
+
*/
|
|
158
|
+
private changeParentValue;
|
|
159
|
+
/**
|
|
160
|
+
* @ignore
|
|
161
|
+
*/
|
|
162
|
+
private markParentControlAsTouched;
|
|
163
|
+
/**
|
|
164
|
+
* @ignore
|
|
165
|
+
*
|
|
166
|
+
* Store the parent control, its validators and async validators in properties
|
|
167
|
+
* of this component.
|
|
168
|
+
*/
|
|
169
|
+
private initializePropertiesFromParent;
|
|
170
|
+
/**
|
|
171
|
+
* @ignore
|
|
172
|
+
*
|
|
173
|
+
* Inherit validators from parent form control.
|
|
174
|
+
*/
|
|
175
|
+
private bindParentValidatorsToControl;
|
|
176
|
+
/**
|
|
177
|
+
* @ignore
|
|
178
|
+
*
|
|
179
|
+
* Emit values to the parent form control when our form control's value
|
|
180
|
+
* changes.
|
|
181
|
+
*
|
|
182
|
+
* Reflect parent validation errors in our form control.
|
|
183
|
+
*/
|
|
184
|
+
private bindControlToParent;
|
|
185
|
+
/**
|
|
186
|
+
* @ignore
|
|
187
|
+
*/
|
|
188
|
+
private filterOptions;
|
|
189
|
+
/**
|
|
190
|
+
* @ignore
|
|
191
|
+
*/
|
|
192
|
+
private determineToggleAllCheckboxState;
|
|
193
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattDropdownComponent, never>;
|
|
194
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattDropdownComponent, "watt-dropdown", never, { "hideSearch": { "alias": "hideSearch"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "getCustomTrigger": { "alias": "getCustomTrigger"; "required": false; }; "chipMode": { "alias": "chipMode"; "required": false; }; "disableSelectedMode": { "alias": "disableSelectedMode"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "showResetOption": { "alias": "showResetOption"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "noOptionsFoundLabel": { "alias": "noOptionsFoundLabel"; "required": false; }; }, {}, never, ["*", "watt-field-hint", "watt-field-error"], true, never>;
|
|
195
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattEmptyStateExploreComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattEmptyStateExploreComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattEmptyStateExploreComponent, "watt-empty-state-explore", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattEmptyStateNoResultsComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattEmptyStateNoResultsComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattEmptyStateNoResultsComponent, "watt-empty-state-no-results", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WattEmptyStatePowerComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattEmptyStatePowerComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattEmptyStatePowerComponent, "watt-empty-state-power", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -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 { WattEmptyStateComponent } from './watt-empty-state.component';
|
|
18
|
+
export { WattEmptyStateExploreComponent } from './icons/explore';
|
|
19
|
+
export { WattEmptyStateNoResultsComponent } from './icons/no-results';
|
|
20
|
+
export { WattEmptyStatePowerComponent } from './icons/power';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WattIconSize } from '@energinet/watt/icon';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Usage:
|
|
5
|
+
* `import { WattEmptyStateComponent } from '@energinet-datahub/watt/empty-state';`
|
|
6
|
+
*/
|
|
7
|
+
export declare class WattEmptyStateComponent {
|
|
8
|
+
icon: import("@angular/core").InputSignal<"search" | "filter" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "close" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "time" | "email" | "markEmailUnread" | "link" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "menu" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "danger" | "warning" | "success" | "info" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "print" | "preview" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "custom-power" | "custom-explore" | "custom-no-results" | undefined>;
|
|
9
|
+
size: import("@angular/core").InputSignal<"small" | "large">;
|
|
10
|
+
title: import("@angular/core").InputSignal<string>;
|
|
11
|
+
message: import("@angular/core").InputSignal<string>;
|
|
12
|
+
useHTML: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
iconSize: import("@angular/core").Signal<WattIconSize>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattEmptyStateComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattEmptyStateComponent, "watt-empty-state", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "useHTML": { "alias": "useHTML"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { WattExpandableCardComponent, WattExpandableCardTitleComponent, WattExpandableCardContentDirective } from './watt-expandable-card.component';
|
|
18
|
+
declare const WATT_EXPANDABLE_CARD_COMPONENTS: readonly [typeof WattExpandableCardComponent, typeof WattExpandableCardTitleComponent, typeof WattExpandableCardContentDirective];
|
|
19
|
+
export { WattExpandableCardComponent, WattExpandableCardTitleComponent, WattExpandableCardContentDirective, WATT_EXPANDABLE_CARD_COMPONENTS, };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { MatAccordionTogglePosition } from '@angular/material/expansion';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WattExpandableCardContentDirective {
|
|
5
|
+
templateRef: TemplateRef<any>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattExpandableCardContentDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WattExpandableCardContentDirective, "[wattExpandableCardContent]", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Usage:
|
|
11
|
+
* `import { WATT_EXPANDABLE_CARD_COMPONENTS } from '@energinet-datahub/watt/expandable-card';`
|
|
12
|
+
*/
|
|
13
|
+
export declare class WattExpandableCardComponent {
|
|
14
|
+
/**
|
|
15
|
+
* @ignore
|
|
16
|
+
*/
|
|
17
|
+
cardContent: import("@angular/core").Signal<WattExpandableCardContentDirective | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* @ignore
|
|
20
|
+
*/
|
|
21
|
+
containsNestedCard: import("@angular/core").Signal<WattExpandableCardComponent | undefined>;
|
|
22
|
+
/** Whether the card is expanded. */
|
|
23
|
+
expanded: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
/** The position of the expansion indicator. */
|
|
25
|
+
togglePosition: import("@angular/core").InputSignal<MatAccordionTogglePosition>;
|
|
26
|
+
/** Whether the card is elevated or has solid border */
|
|
27
|
+
variant: import("@angular/core").InputSignal<"solid" | "elevation">;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattExpandableCardComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattExpandableCardComponent, "watt-expandable-card", never, { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "togglePosition": { "alias": "togglePosition"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, ["cardContent", "containsNestedCard"], ["watt-badge", "watt-expandable-card-title", "*"], true, never>;
|
|
30
|
+
}
|
|
31
|
+
export declare class WattExpandableCardTitleComponent {
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattExpandableCardTitleComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattExpandableCardTitleComponent, "watt-expandable-card-title", never, {}, {}, never, ["*"], true, never>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MatExpansionPanel } from '@angular/material/expansion';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Usage:
|
|
5
|
+
* `import { WattExpansionComponent } from '@energinet-datahub/watt/expansion';`
|
|
6
|
+
*/
|
|
7
|
+
export declare class WattExpansionComponent {
|
|
8
|
+
openLabel: string;
|
|
9
|
+
closeLabel: string;
|
|
10
|
+
expanded: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @ignore
|
|
13
|
+
* @param matExpansionPanel
|
|
14
|
+
*/
|
|
15
|
+
onClose(matExpansionPanel: MatExpansionPanel): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattExpansionComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattExpansionComponent, "watt-expansion", never, { "openLabel": { "alias": "openLabel"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
18
|
+
}
|