@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,299 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, input, computed, ViewEncapsulation } from '@angular/core';
|
|
3
|
+
import { WattIconComponent } from '@energinet/watt/icon';
|
|
4
|
+
|
|
5
|
+
//#region License
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*/
|
|
22
|
+
//#endregion
|
|
23
|
+
class WattEmptyStateExploreComponent {
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattEmptyStateExploreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: WattEmptyStateExploreComponent, isStandalone: true, selector: "watt-empty-state-explore", ngImport: i0, template: `
|
|
26
|
+
<svg viewBox="0 0 96 98" fill="none">
|
|
27
|
+
<path
|
|
28
|
+
fill="currentColor"
|
|
29
|
+
d="M59.4473 60.5798c-.2445.1864-.503.3517-.7317.5628a34.937 34.937 0 0 1-17.0602 8.5072 34.4744 34.4744 0 0 1-7.8055.591A35.139 35.139 0 0 1 1.4442 45.2255 33.1081 33.1081 0 0 1 .081 37.7788c-.663-10.7585 2.7613-20.015 10.3769-27.6464C15.4248 5.141 21.4574 2.0226 28.3747.656a33.4635 33.4635 0 0 1 7.6807-.6366c8.9962.3324 16.8105 3.5474 23.3356 9.7612 5.25 4.9932 8.5899 11.098 10.1007 18.1842a33.6296 33.6296 0 0 1 .6719 9.1457c-.5417 8.6262-3.7896 16.0818-9.7437 22.3665a6.0972 6.0972 0 0 0-.4045.5276l-.5681.5752Zm9.2494-25.4269c0-18.5657-15.0358-33.5928-33.5928-33.607C16.7263 1.5303 1.511 16.4255 1.511 35.1548c.0158 18.7803 15.2593 33.417 33.2921 33.57 18.3794.1583 33.8514-14.6806 33.8866-33.5718h.007Z"
|
|
30
|
+
/>
|
|
31
|
+
<path
|
|
32
|
+
fill="currentColor"
|
|
33
|
+
d="m59.4473 60.5797.5751-.5751c.2515-.1882.2586-.1935.4714.0211.5822.5909 1.159 1.1871 1.7377 1.7816l15.7447 16.1809 16.4183 16.8703c.4414.4537.8794.9058 1.3243 1.3595.1073.1108.2094.2251.2885.3096l-1.043 1.1203-35.7861-36.7587.2691-.3095ZM60.4444 35.8792h-1.4897c-.1196-6.3316-2.3199-11.8331-6.8083-16.3286-4.4884-4.4954-9.9864-6.7045-16.3427-6.8364v-1.4475c12.563-.3887 24.755 10.4508 24.6407 24.6125Z"
|
|
34
|
+
/>
|
|
35
|
+
</svg>
|
|
36
|
+
`, isInline: true });
|
|
37
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattEmptyStateExploreComponent, decorators: [{
|
|
39
|
+
type: Component,
|
|
40
|
+
args: [{
|
|
41
|
+
selector: 'watt-empty-state-explore',
|
|
42
|
+
template: `
|
|
43
|
+
<svg viewBox="0 0 96 98" fill="none">
|
|
44
|
+
<path
|
|
45
|
+
fill="currentColor"
|
|
46
|
+
d="M59.4473 60.5798c-.2445.1864-.503.3517-.7317.5628a34.937 34.937 0 0 1-17.0602 8.5072 34.4744 34.4744 0 0 1-7.8055.591A35.139 35.139 0 0 1 1.4442 45.2255 33.1081 33.1081 0 0 1 .081 37.7788c-.663-10.7585 2.7613-20.015 10.3769-27.6464C15.4248 5.141 21.4574 2.0226 28.3747.656a33.4635 33.4635 0 0 1 7.6807-.6366c8.9962.3324 16.8105 3.5474 23.3356 9.7612 5.25 4.9932 8.5899 11.098 10.1007 18.1842a33.6296 33.6296 0 0 1 .6719 9.1457c-.5417 8.6262-3.7896 16.0818-9.7437 22.3665a6.0972 6.0972 0 0 0-.4045.5276l-.5681.5752Zm9.2494-25.4269c0-18.5657-15.0358-33.5928-33.5928-33.607C16.7263 1.5303 1.511 16.4255 1.511 35.1548c.0158 18.7803 15.2593 33.417 33.2921 33.57 18.3794.1583 33.8514-14.6806 33.8866-33.5718h.007Z"
|
|
47
|
+
/>
|
|
48
|
+
<path
|
|
49
|
+
fill="currentColor"
|
|
50
|
+
d="m59.4473 60.5797.5751-.5751c.2515-.1882.2586-.1935.4714.0211.5822.5909 1.159 1.1871 1.7377 1.7816l15.7447 16.1809 16.4183 16.8703c.4414.4537.8794.9058 1.3243 1.3595.1073.1108.2094.2251.2885.3096l-1.043 1.1203-35.7861-36.7587.2691-.3095ZM60.4444 35.8792h-1.4897c-.1196-6.3316-2.3199-11.8331-6.8083-16.3286-4.4884-4.4954-9.9864-6.7045-16.3427-6.8364v-1.4475c12.563-.3887 24.755 10.4508 24.6407 24.6125Z"
|
|
51
|
+
/>
|
|
52
|
+
</svg>
|
|
53
|
+
`,
|
|
54
|
+
}]
|
|
55
|
+
}] });
|
|
56
|
+
|
|
57
|
+
//#region License
|
|
58
|
+
/**
|
|
59
|
+
* @license
|
|
60
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
61
|
+
*
|
|
62
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
63
|
+
* you may not use this file except in compliance with the License.
|
|
64
|
+
* You may obtain a copy of the License at
|
|
65
|
+
*
|
|
66
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
67
|
+
*
|
|
68
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
69
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
70
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
71
|
+
* See the License for the specific language governing permissions and
|
|
72
|
+
* limitations under the License.
|
|
73
|
+
*/
|
|
74
|
+
//#endregion
|
|
75
|
+
class WattEmptyStateNoResultsComponent {
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattEmptyStateNoResultsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
77
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: WattEmptyStateNoResultsComponent, isStandalone: true, selector: "watt-empty-state-no-results", ngImport: i0, template: `
|
|
78
|
+
<svg viewBox="0 0 128 128" fill="none">
|
|
79
|
+
<path
|
|
80
|
+
fill="currentColor"
|
|
81
|
+
fill-rule="evenodd"
|
|
82
|
+
d="M64 116c28.719 0 52-23.281 52-52S92.719 12 64 12 12 35.281 12 64s23.281 52 52 52Zm0 2c29.823 0 54-24.177 54-54S93.823 10 64 10 10 34.177 10 64s24.177 54 54 54Z"
|
|
83
|
+
clip-rule="evenodd"
|
|
84
|
+
/>
|
|
85
|
+
<path
|
|
86
|
+
fill="currentColor"
|
|
87
|
+
fill-rule="evenodd"
|
|
88
|
+
d="M63.91 65.91 42 87.82l-1.414-1.414 21.91-21.91L40 42l1.414-1.414L63.91 63.082l22.496-22.497L87.82 42 65.325 64.496l21.91 21.91-1.413 1.414-21.91-21.91Z"
|
|
89
|
+
clip-rule="evenodd"
|
|
90
|
+
/>
|
|
91
|
+
</svg>
|
|
92
|
+
`, isInline: true });
|
|
93
|
+
}
|
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattEmptyStateNoResultsComponent, decorators: [{
|
|
95
|
+
type: Component,
|
|
96
|
+
args: [{
|
|
97
|
+
selector: 'watt-empty-state-no-results',
|
|
98
|
+
template: `
|
|
99
|
+
<svg viewBox="0 0 128 128" fill="none">
|
|
100
|
+
<path
|
|
101
|
+
fill="currentColor"
|
|
102
|
+
fill-rule="evenodd"
|
|
103
|
+
d="M64 116c28.719 0 52-23.281 52-52S92.719 12 64 12 12 35.281 12 64s23.281 52 52 52Zm0 2c29.823 0 54-24.177 54-54S93.823 10 64 10 10 34.177 10 64s24.177 54 54 54Z"
|
|
104
|
+
clip-rule="evenodd"
|
|
105
|
+
/>
|
|
106
|
+
<path
|
|
107
|
+
fill="currentColor"
|
|
108
|
+
fill-rule="evenodd"
|
|
109
|
+
d="M63.91 65.91 42 87.82l-1.414-1.414 21.91-21.91L40 42l1.414-1.414L63.91 63.082l22.496-22.497L87.82 42 65.325 64.496l21.91 21.91-1.413 1.414-21.91-21.91Z"
|
|
110
|
+
clip-rule="evenodd"
|
|
111
|
+
/>
|
|
112
|
+
</svg>
|
|
113
|
+
`,
|
|
114
|
+
}]
|
|
115
|
+
}] });
|
|
116
|
+
|
|
117
|
+
//#region License
|
|
118
|
+
/**
|
|
119
|
+
* @license
|
|
120
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
121
|
+
*
|
|
122
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
123
|
+
* you may not use this file except in compliance with the License.
|
|
124
|
+
* You may obtain a copy of the License at
|
|
125
|
+
*
|
|
126
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
127
|
+
*
|
|
128
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
129
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
130
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
131
|
+
* See the License for the specific language governing permissions and
|
|
132
|
+
* limitations under the License.
|
|
133
|
+
*/
|
|
134
|
+
//#endregion
|
|
135
|
+
class WattEmptyStatePowerComponent {
|
|
136
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattEmptyStatePowerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
137
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: WattEmptyStatePowerComponent, isStandalone: true, selector: "watt-empty-state-power", ngImport: i0, template: `
|
|
138
|
+
<svg viewBox="0 0 96 116" fill="none">
|
|
139
|
+
<path
|
|
140
|
+
fill="currentColor"
|
|
141
|
+
d="M48.9 89.88v25.914c-.606.042-1.213.042-1.818 0v-25.91c-.507-.042-.963-.083-1.422-.117-5.211-.394-9.989-2.067-14.383-4.875-4.834-3.091-8.642-7.183-11.614-12.07a42.881 42.881 0 0 1-5.505-14.54 46.448 46.448 0 0 1-.788-8.755V38.27c-.24 0-.446-.027-.655-.027H0v-1.8h24.536c.01-.268.027-.479.027-.69v-30.8a4.936 4.936 0 0 1 9.87-.145v31.527c.403.125 26.458.152 27.06.032 0-.23.03-.476.03-.72V5.198c-.02-.717.1-1.432.352-2.105a4.944 4.944 0 0 1 9.437.922c.07.427.104.86.098 1.294V36.424c1.204.033 2.363 0 3.522.014 1.16.015 2.335 0 3.5 0h17.51c.058.595.062 1.194.01 1.789h-13.32c-.018.252-.05.459-.05.667 0 3.335-.01 6.67 0 10.005a49.34 49.34 0 0 1-.36 6.683c-1.251 9.34-4.857 17.585-11.488 24.388-4.212 4.32-9.242 7.369-15.123 8.916a30.233 30.233 0 0 1-6.253.95c-.137.004-.267.025-.459.044ZM15.216 47.344c-.018.105-.03.211-.036.317-.044 3.204.08 6.393.626 9.56a42.105 42.105 0 0 0 4.123 12.363c2.538 4.873 5.911 9.058 10.316 12.373 5.013 3.773 10.63 5.876 16.932 6.082a27.722 27.722 0 0 0 9.688-1.421c5.11-1.69 9.443-4.586 13.118-8.494 4.552-4.832 7.55-10.527 9.286-16.905a43.867 43.867 0 0 0 1.334-7.567c.181-2.012.173-4.025.169-6.045a2.075 2.075 0 0 0-.03-.24c-.374-.104-64.866-.133-65.526-.023Zm.035-9.071c-.12.585-.098 6.787.023 7.166.063.014.126.023.19.027H80.46c.07-.002.14-.01.209-.025a.122.122 0 0 0 .04-.027l.039-.04v-7.101H15.252Zm17.37-1.876V5.317a6.539 6.539 0 0 0-.031-.698A2.989 2.989 0 0 0 30.7 2.084a2.956 2.956 0 0 0-3.15.446c-.833.653-1.181 1.543-1.181 2.585v30.592c0 .227.02.454.033.71l6.22-.02Zm36.96.027V4.73a3.127 3.127 0 0 0-6.235.273v31.433c2.105.005 4.148.009 6.24-.002l-.005-.01Z"
|
|
142
|
+
/>
|
|
143
|
+
</svg>
|
|
144
|
+
`, isInline: true });
|
|
145
|
+
}
|
|
146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattEmptyStatePowerComponent, decorators: [{
|
|
147
|
+
type: Component,
|
|
148
|
+
args: [{
|
|
149
|
+
selector: 'watt-empty-state-power',
|
|
150
|
+
template: `
|
|
151
|
+
<svg viewBox="0 0 96 116" fill="none">
|
|
152
|
+
<path
|
|
153
|
+
fill="currentColor"
|
|
154
|
+
d="M48.9 89.88v25.914c-.606.042-1.213.042-1.818 0v-25.91c-.507-.042-.963-.083-1.422-.117-5.211-.394-9.989-2.067-14.383-4.875-4.834-3.091-8.642-7.183-11.614-12.07a42.881 42.881 0 0 1-5.505-14.54 46.448 46.448 0 0 1-.788-8.755V38.27c-.24 0-.446-.027-.655-.027H0v-1.8h24.536c.01-.268.027-.479.027-.69v-30.8a4.936 4.936 0 0 1 9.87-.145v31.527c.403.125 26.458.152 27.06.032 0-.23.03-.476.03-.72V5.198c-.02-.717.1-1.432.352-2.105a4.944 4.944 0 0 1 9.437.922c.07.427.104.86.098 1.294V36.424c1.204.033 2.363 0 3.522.014 1.16.015 2.335 0 3.5 0h17.51c.058.595.062 1.194.01 1.789h-13.32c-.018.252-.05.459-.05.667 0 3.335-.01 6.67 0 10.005a49.34 49.34 0 0 1-.36 6.683c-1.251 9.34-4.857 17.585-11.488 24.388-4.212 4.32-9.242 7.369-15.123 8.916a30.233 30.233 0 0 1-6.253.95c-.137.004-.267.025-.459.044ZM15.216 47.344c-.018.105-.03.211-.036.317-.044 3.204.08 6.393.626 9.56a42.105 42.105 0 0 0 4.123 12.363c2.538 4.873 5.911 9.058 10.316 12.373 5.013 3.773 10.63 5.876 16.932 6.082a27.722 27.722 0 0 0 9.688-1.421c5.11-1.69 9.443-4.586 13.118-8.494 4.552-4.832 7.55-10.527 9.286-16.905a43.867 43.867 0 0 0 1.334-7.567c.181-2.012.173-4.025.169-6.045a2.075 2.075 0 0 0-.03-.24c-.374-.104-64.866-.133-65.526-.023Zm.035-9.071c-.12.585-.098 6.787.023 7.166.063.014.126.023.19.027H80.46c.07-.002.14-.01.209-.025a.122.122 0 0 0 .04-.027l.039-.04v-7.101H15.252Zm17.37-1.876V5.317a6.539 6.539 0 0 0-.031-.698A2.989 2.989 0 0 0 30.7 2.084a2.956 2.956 0 0 0-3.15.446c-.833.653-1.181 1.543-1.181 2.585v30.592c0 .227.02.454.033.71l6.22-.02Zm36.96.027V4.73a3.127 3.127 0 0 0-6.235.273v31.433c2.105.005 4.148.009 6.24-.002l-.005-.01Z"
|
|
155
|
+
/>
|
|
156
|
+
</svg>
|
|
157
|
+
`,
|
|
158
|
+
}]
|
|
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
|
+
/**
|
|
180
|
+
* Usage:
|
|
181
|
+
* `import { WattEmptyStateComponent } from '@energinet-datahub/watt/empty-state';`
|
|
182
|
+
*/
|
|
183
|
+
class WattEmptyStateComponent {
|
|
184
|
+
icon = input();
|
|
185
|
+
size = input('large');
|
|
186
|
+
title = input('');
|
|
187
|
+
message = input('');
|
|
188
|
+
useHTML = input(false);
|
|
189
|
+
iconSize = computed(() => (this.size() === 'small' ? 'xl' : 'xxl'));
|
|
190
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattEmptyStateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
191
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: WattEmptyStateComponent, isStandalone: true, selector: "watt-empty-state", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, useHTML: { classPropertyName: "useHTML", publicName: "useHTML", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
192
|
+
@let name = icon();
|
|
193
|
+
@switch (name) {
|
|
194
|
+
@case ('custom-explore') {
|
|
195
|
+
<watt-icon [size]="iconSize()" class="watt-space-stack-l">
|
|
196
|
+
<watt-empty-state-explore />
|
|
197
|
+
</watt-icon>
|
|
198
|
+
}
|
|
199
|
+
@case ('custom-no-results') {
|
|
200
|
+
<watt-icon [size]="iconSize()" class="watt-space-stack-l">
|
|
201
|
+
<watt-empty-state-no-results />
|
|
202
|
+
</watt-icon>
|
|
203
|
+
}
|
|
204
|
+
@case ('custom-power') {
|
|
205
|
+
<watt-icon [size]="iconSize()" class="watt-space-stack-l">
|
|
206
|
+
<watt-empty-state-power />
|
|
207
|
+
</watt-icon>
|
|
208
|
+
}
|
|
209
|
+
@default {
|
|
210
|
+
<watt-icon [name]="name" [size]="iconSize()" class="watt-space-stack-l" />
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@if (size() === 'large') {
|
|
215
|
+
<h3>{{ title() }}</h3>
|
|
216
|
+
} @else {
|
|
217
|
+
<h5>{{ title() }}</h5>
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@if (useHTML()) {
|
|
221
|
+
<div [class.watt-text-s]="size() === 'small'" [innerHTML]="message()"></div>
|
|
222
|
+
} @else {
|
|
223
|
+
<p [class.watt-text-s]="size() === 'small'">{{ message() }}</p>
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
<ng-content />
|
|
227
|
+
`, isInline: true, styles: ["@use \"@energinet-datahub/watt/utils\" as watt;watt-empty-state{display:block;text-align:center;color:var(--watt-color-primary-dark)}watt-empty-state h3,watt-empty-state h5,watt-empty-state p{margin:0;white-space:pre-wrap}watt-empty-state watt-button{display:block;margin-top:var(--watt-space-m)}watt-empty-state watt-button:first-of-type{margin-top:var(--watt-space-l)}\n"], dependencies: [{ kind: "component", type: WattEmptyStateExploreComponent, selector: "watt-empty-state-explore" }, { kind: "component", type: WattEmptyStateNoResultsComponent, selector: "watt-empty-state-no-results" }, { kind: "component", type: WattEmptyStatePowerComponent, selector: "watt-empty-state-power" }, { kind: "component", type: WattIconComponent, selector: "watt-icon", inputs: ["name", "label", "size", "state"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
228
|
+
}
|
|
229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattEmptyStateComponent, decorators: [{
|
|
230
|
+
type: Component,
|
|
231
|
+
args: [{ selector: 'watt-empty-state', encapsulation: ViewEncapsulation.None, imports: [
|
|
232
|
+
WattEmptyStateExploreComponent,
|
|
233
|
+
WattEmptyStateNoResultsComponent,
|
|
234
|
+
WattEmptyStatePowerComponent,
|
|
235
|
+
WattIconComponent,
|
|
236
|
+
], template: `
|
|
237
|
+
@let name = icon();
|
|
238
|
+
@switch (name) {
|
|
239
|
+
@case ('custom-explore') {
|
|
240
|
+
<watt-icon [size]="iconSize()" class="watt-space-stack-l">
|
|
241
|
+
<watt-empty-state-explore />
|
|
242
|
+
</watt-icon>
|
|
243
|
+
}
|
|
244
|
+
@case ('custom-no-results') {
|
|
245
|
+
<watt-icon [size]="iconSize()" class="watt-space-stack-l">
|
|
246
|
+
<watt-empty-state-no-results />
|
|
247
|
+
</watt-icon>
|
|
248
|
+
}
|
|
249
|
+
@case ('custom-power') {
|
|
250
|
+
<watt-icon [size]="iconSize()" class="watt-space-stack-l">
|
|
251
|
+
<watt-empty-state-power />
|
|
252
|
+
</watt-icon>
|
|
253
|
+
}
|
|
254
|
+
@default {
|
|
255
|
+
<watt-icon [name]="name" [size]="iconSize()" class="watt-space-stack-l" />
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
@if (size() === 'large') {
|
|
260
|
+
<h3>{{ title() }}</h3>
|
|
261
|
+
} @else {
|
|
262
|
+
<h5>{{ title() }}</h5>
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@if (useHTML()) {
|
|
266
|
+
<div [class.watt-text-s]="size() === 'small'" [innerHTML]="message()"></div>
|
|
267
|
+
} @else {
|
|
268
|
+
<p [class.watt-text-s]="size() === 'small'">{{ message() }}</p>
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
<ng-content />
|
|
272
|
+
`, styles: ["@use \"@energinet-datahub/watt/utils\" as watt;watt-empty-state{display:block;text-align:center;color:var(--watt-color-primary-dark)}watt-empty-state h3,watt-empty-state h5,watt-empty-state p{margin:0;white-space:pre-wrap}watt-empty-state watt-button{display:block;margin-top:var(--watt-space-m)}watt-empty-state watt-button:first-of-type{margin-top:var(--watt-space-l)}\n"] }]
|
|
273
|
+
}] });
|
|
274
|
+
|
|
275
|
+
//#region License
|
|
276
|
+
/**
|
|
277
|
+
* @license
|
|
278
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
279
|
+
*
|
|
280
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
281
|
+
* you may not use this file except in compliance with the License.
|
|
282
|
+
* You may obtain a copy of the License at
|
|
283
|
+
*
|
|
284
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
285
|
+
*
|
|
286
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
287
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
288
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
289
|
+
* See the License for the specific language governing permissions and
|
|
290
|
+
* limitations under the License.
|
|
291
|
+
*/
|
|
292
|
+
//#endregion
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Generated bundle index. Do not edit.
|
|
296
|
+
*/
|
|
297
|
+
|
|
298
|
+
export { WattEmptyStateComponent, WattEmptyStateExploreComponent, WattEmptyStateNoResultsComponent, WattEmptyStatePowerComponent };
|
|
299
|
+
//# sourceMappingURL=energinet-watt-empty-state.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-empty-state.mjs","sources":["../../../libs/watt/package/empty-state/icons/explore.ts","../../../libs/watt/package/empty-state/icons/no-results.ts","../../../libs/watt/package/empty-state/icons/power.ts","../../../libs/watt/package/empty-state/watt-empty-state.component.ts","../../../libs/watt/package/empty-state/index.ts","../../../libs/watt/package/empty-state/energinet-watt-empty-state.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 { Component } from '@angular/core';\n\n@Component({\n selector: 'watt-empty-state-explore',\n template: `\n <svg viewBox=\"0 0 96 98\" fill=\"none\">\n <path\n fill=\"currentColor\"\n d=\"M59.4473 60.5798c-.2445.1864-.503.3517-.7317.5628a34.937 34.937 0 0 1-17.0602 8.5072 34.4744 34.4744 0 0 1-7.8055.591A35.139 35.139 0 0 1 1.4442 45.2255 33.1081 33.1081 0 0 1 .081 37.7788c-.663-10.7585 2.7613-20.015 10.3769-27.6464C15.4248 5.141 21.4574 2.0226 28.3747.656a33.4635 33.4635 0 0 1 7.6807-.6366c8.9962.3324 16.8105 3.5474 23.3356 9.7612 5.25 4.9932 8.5899 11.098 10.1007 18.1842a33.6296 33.6296 0 0 1 .6719 9.1457c-.5417 8.6262-3.7896 16.0818-9.7437 22.3665a6.0972 6.0972 0 0 0-.4045.5276l-.5681.5752Zm9.2494-25.4269c0-18.5657-15.0358-33.5928-33.5928-33.607C16.7263 1.5303 1.511 16.4255 1.511 35.1548c.0158 18.7803 15.2593 33.417 33.2921 33.57 18.3794.1583 33.8514-14.6806 33.8866-33.5718h.007Z\"\n />\n <path\n fill=\"currentColor\"\n d=\"m59.4473 60.5797.5751-.5751c.2515-.1882.2586-.1935.4714.0211.5822.5909 1.159 1.1871 1.7377 1.7816l15.7447 16.1809 16.4183 16.8703c.4414.4537.8794.9058 1.3243 1.3595.1073.1108.2094.2251.2885.3096l-1.043 1.1203-35.7861-36.7587.2691-.3095ZM60.4444 35.8792h-1.4897c-.1196-6.3316-2.3199-11.8331-6.8083-16.3286-4.4884-4.4954-9.9864-6.7045-16.3427-6.8364v-1.4475c12.563-.3887 24.755 10.4508 24.6407 24.6125Z\"\n />\n </svg>\n `,\n})\nexport class WattEmptyStateExploreComponent {}\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 } from '@angular/core';\n\n@Component({\n selector: 'watt-empty-state-no-results',\n template: `\n <svg viewBox=\"0 0 128 128\" fill=\"none\">\n <path\n fill=\"currentColor\"\n fill-rule=\"evenodd\"\n d=\"M64 116c28.719 0 52-23.281 52-52S92.719 12 64 12 12 35.281 12 64s23.281 52 52 52Zm0 2c29.823 0 54-24.177 54-54S93.823 10 64 10 10 34.177 10 64s24.177 54 54 54Z\"\n clip-rule=\"evenodd\"\n />\n <path\n fill=\"currentColor\"\n fill-rule=\"evenodd\"\n d=\"M63.91 65.91 42 87.82l-1.414-1.414 21.91-21.91L40 42l1.414-1.414L63.91 63.082l22.496-22.497L87.82 42 65.325 64.496l21.91 21.91-1.413 1.414-21.91-21.91Z\"\n clip-rule=\"evenodd\"\n />\n </svg>\n `,\n})\nexport class WattEmptyStateNoResultsComponent {}\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 } from '@angular/core';\n\n@Component({\n selector: 'watt-empty-state-power',\n template: `\n <svg viewBox=\"0 0 96 116\" fill=\"none\">\n <path\n fill=\"currentColor\"\n d=\"M48.9 89.88v25.914c-.606.042-1.213.042-1.818 0v-25.91c-.507-.042-.963-.083-1.422-.117-5.211-.394-9.989-2.067-14.383-4.875-4.834-3.091-8.642-7.183-11.614-12.07a42.881 42.881 0 0 1-5.505-14.54 46.448 46.448 0 0 1-.788-8.755V38.27c-.24 0-.446-.027-.655-.027H0v-1.8h24.536c.01-.268.027-.479.027-.69v-30.8a4.936 4.936 0 0 1 9.87-.145v31.527c.403.125 26.458.152 27.06.032 0-.23.03-.476.03-.72V5.198c-.02-.717.1-1.432.352-2.105a4.944 4.944 0 0 1 9.437.922c.07.427.104.86.098 1.294V36.424c1.204.033 2.363 0 3.522.014 1.16.015 2.335 0 3.5 0h17.51c.058.595.062 1.194.01 1.789h-13.32c-.018.252-.05.459-.05.667 0 3.335-.01 6.67 0 10.005a49.34 49.34 0 0 1-.36 6.683c-1.251 9.34-4.857 17.585-11.488 24.388-4.212 4.32-9.242 7.369-15.123 8.916a30.233 30.233 0 0 1-6.253.95c-.137.004-.267.025-.459.044ZM15.216 47.344c-.018.105-.03.211-.036.317-.044 3.204.08 6.393.626 9.56a42.105 42.105 0 0 0 4.123 12.363c2.538 4.873 5.911 9.058 10.316 12.373 5.013 3.773 10.63 5.876 16.932 6.082a27.722 27.722 0 0 0 9.688-1.421c5.11-1.69 9.443-4.586 13.118-8.494 4.552-4.832 7.55-10.527 9.286-16.905a43.867 43.867 0 0 0 1.334-7.567c.181-2.012.173-4.025.169-6.045a2.075 2.075 0 0 0-.03-.24c-.374-.104-64.866-.133-65.526-.023Zm.035-9.071c-.12.585-.098 6.787.023 7.166.063.014.126.023.19.027H80.46c.07-.002.14-.01.209-.025a.122.122 0 0 0 .04-.027l.039-.04v-7.101H15.252Zm17.37-1.876V5.317a6.539 6.539 0 0 0-.031-.698A2.989 2.989 0 0 0 30.7 2.084a2.956 2.956 0 0 0-3.15.446c-.833.653-1.181 1.543-1.181 2.585v30.592c0 .227.02.454.033.71l6.22-.02Zm36.96.027V4.73a3.127 3.127 0 0 0-6.235.273v31.433c2.105.005 4.148.009 6.24-.002l-.005-.01Z\"\n />\n </svg>\n `,\n})\nexport class WattEmptyStatePowerComponent {}\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, computed, input } from '@angular/core';\nimport { WattIcon, WattIconComponent, WattIconSize } from '@energinet/watt/icon';\nimport { WattEmptyStateExploreComponent } from './icons/explore';\nimport { WattEmptyStateNoResultsComponent } from './icons/no-results';\nimport { WattEmptyStatePowerComponent } from './icons/power';\n\n/**\n * Usage:\n * `import { WattEmptyStateComponent } from '@energinet-datahub/watt/empty-state';`\n */\n@Component({\n selector: 'watt-empty-state',\n encapsulation: ViewEncapsulation.None,\n imports: [\n WattEmptyStateExploreComponent,\n WattEmptyStateNoResultsComponent,\n WattEmptyStatePowerComponent,\n WattIconComponent,\n ],\n styles: `\n @use '@energinet-datahub/watt/utils' as watt;\n\n watt-empty-state {\n display: block;\n text-align: center;\n color: var(--watt-color-primary-dark);\n\n h3,\n h5,\n p {\n margin: 0;\n white-space: pre-wrap;\n }\n\n watt-button {\n display: block;\n margin-top: var(--watt-space-m);\n\n &:first-of-type {\n margin-top: var(--watt-space-l);\n }\n }\n }\n `,\n template: `\n @let name = icon();\n @switch (name) {\n @case ('custom-explore') {\n <watt-icon [size]=\"iconSize()\" class=\"watt-space-stack-l\">\n <watt-empty-state-explore />\n </watt-icon>\n }\n @case ('custom-no-results') {\n <watt-icon [size]=\"iconSize()\" class=\"watt-space-stack-l\">\n <watt-empty-state-no-results />\n </watt-icon>\n }\n @case ('custom-power') {\n <watt-icon [size]=\"iconSize()\" class=\"watt-space-stack-l\">\n <watt-empty-state-power />\n </watt-icon>\n }\n @default {\n <watt-icon [name]=\"name\" [size]=\"iconSize()\" class=\"watt-space-stack-l\" />\n }\n }\n\n @if (size() === 'large') {\n <h3>{{ title() }}</h3>\n } @else {\n <h5>{{ title() }}</h5>\n }\n\n @if (useHTML()) {\n <div [class.watt-text-s]=\"size() === 'small'\" [innerHTML]=\"message()\"></div>\n } @else {\n <p [class.watt-text-s]=\"size() === 'small'\">{{ message() }}</p>\n }\n\n <ng-content />\n `,\n})\nexport class WattEmptyStateComponent {\n icon = input<WattIcon | 'custom-power' | 'custom-explore' | 'custom-no-results'>();\n size = input<'small' | 'large'>('large');\n title = input('');\n message = input('');\n useHTML = input(false);\n iconSize = computed<WattIconSize>(() => (this.size() === 'small' ? 'xl' : 'xxl'));\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 { WattEmptyStateComponent } from './watt-empty-state.component';\nexport { WattEmptyStateExploreComponent } from './icons/explore';\nexport { WattEmptyStateNoResultsComponent } from './icons/no-results';\nexport { WattEmptyStatePowerComponent } from './icons/power';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;MAkBa,8BAA8B,CAAA;uGAA9B,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA9B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,8BAA8B,EAb/B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;;;;;;;;AAWT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;2FAEU,8BAA8B,EAAA,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B,gCAAgC;wBAChC,4BAA4B;wBAC5B,iBAAiB;qBAClB,EA0BS,QAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,sXAAA,CAAA,EAAA;;;AClGH;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, TemplateRef, Directive, contentChild, input, ViewEncapsulation, Component } from '@angular/core';
|
|
4
|
+
import * as i1 from '@angular/material/expansion';
|
|
5
|
+
import { MatExpansionModule } from '@angular/material/expansion';
|
|
6
|
+
|
|
7
|
+
//#region License
|
|
8
|
+
/**
|
|
9
|
+
* @license
|
|
10
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
11
|
+
*
|
|
12
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
13
|
+
* you may not use this file except in compliance with the License.
|
|
14
|
+
* You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
23
|
+
*/
|
|
24
|
+
//#endregion
|
|
25
|
+
class WattExpandableCardContentDirective {
|
|
26
|
+
templateRef = inject(TemplateRef);
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattExpandableCardContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
28
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: WattExpandableCardContentDirective, isStandalone: true, selector: "[wattExpandableCardContent]", ngImport: i0 });
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattExpandableCardContentDirective, decorators: [{
|
|
31
|
+
type: Directive,
|
|
32
|
+
args: [{
|
|
33
|
+
selector: '[wattExpandableCardContent]',
|
|
34
|
+
}]
|
|
35
|
+
}] });
|
|
36
|
+
/**
|
|
37
|
+
* Usage:
|
|
38
|
+
* `import { WATT_EXPANDABLE_CARD_COMPONENTS } from '@energinet-datahub/watt/expandable-card';`
|
|
39
|
+
*/
|
|
40
|
+
class WattExpandableCardComponent {
|
|
41
|
+
/**
|
|
42
|
+
* @ignore
|
|
43
|
+
*/
|
|
44
|
+
cardContent = contentChild(WattExpandableCardContentDirective);
|
|
45
|
+
/**
|
|
46
|
+
* @ignore
|
|
47
|
+
*/
|
|
48
|
+
containsNestedCard = contentChild(WattExpandableCardComponent);
|
|
49
|
+
/** Whether the card is expanded. */
|
|
50
|
+
expanded = input(false);
|
|
51
|
+
/** The position of the expansion indicator. */
|
|
52
|
+
togglePosition = input('after');
|
|
53
|
+
/** Whether the card is elevated or has solid border */
|
|
54
|
+
variant = input('elevation');
|
|
55
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattExpandableCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: WattExpandableCardComponent, isStandalone: true, selector: "watt-expandable-card", inputs: { expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, togglePosition: { classPropertyName: "togglePosition", publicName: "togglePosition", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "cardContent", first: true, predicate: WattExpandableCardContentDirective, descendants: true, isSignal: true }, { propertyName: "containsNestedCard", first: true, predicate: WattExpandableCardComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
57
|
+
<mat-expansion-panel
|
|
58
|
+
[togglePosition]="togglePosition()"
|
|
59
|
+
[expanded]="expanded()"
|
|
60
|
+
class="watt-expandable-card watt-{{ variant() }}"
|
|
61
|
+
[class.watt-expandable-card__parent]="containsNestedCard()"
|
|
62
|
+
>
|
|
63
|
+
<mat-expansion-panel-header>
|
|
64
|
+
<mat-panel-title>
|
|
65
|
+
<ng-content select="watt-badge" />
|
|
66
|
+
<ng-content select="watt-expandable-card-title" />
|
|
67
|
+
</mat-panel-title>
|
|
68
|
+
</mat-expansion-panel-header>
|
|
69
|
+
|
|
70
|
+
<ng-content />
|
|
71
|
+
|
|
72
|
+
@let _cardContent = cardContent();
|
|
73
|
+
|
|
74
|
+
@if (_cardContent) {
|
|
75
|
+
<ng-template matExpansionPanelContent>
|
|
76
|
+
<ng-container *ngTemplateOutlet="_cardContent.templateRef" />
|
|
77
|
+
</ng-template>
|
|
78
|
+
}
|
|
79
|
+
</mat-expansion-panel>
|
|
80
|
+
`, isInline: true, styles: ["watt-expandable-card{display:block}watt-expandable-card+watt-expandable-card{margin-top:var(--watt-space-m)}.watt-expandable-card.mat-expansion-panel{border-radius:4px!important}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-header{color:var(--watt-typography-headline-color);font-size:1rem;line-height:1.5rem;font-weight:600;text-transform:none;letter-spacing:0;height:var(--watt-space-xl);padding:0 var(--watt-space-m)}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:var(--watt-color-neutral-white)}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin-top:-6px;transform-origin:center 15px}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator:after{border-color:var(--watt-color-primary)}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-panel-header-title{margin-right:0}.watt-expandable-card.mat-expansion-panel .mat-expansion-indicator{margin-top:-6px;transform-origin:center 15px}.watt-expandable-card.mat-expansion-panel .mat-expansion-indicator:after{border-color:var(--watt-color-primary)}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-body{border-top:1px solid var(--watt-color-neutral-grey-300);padding:0 var(--watt-space-m)}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-header-title>watt-badge{margin-right:var(--watt-space-m)}.watt-expandable-card.mat-expansion-panel.watt-solid{border:1px solid var(--watt-color-neutral-grey-300);box-shadow:none}.watt-expandable-card.mat-expansion-panel.watt-expandable-card__parent .watt-expandable-card.mat-expansion-panel.watt-solid{border:none}.watt-expandable-card.mat-expansion-panel.watt-expandable-card__parent>.mat-expansion-panel-content>.mat-expansion-panel-body{border-top:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "component", type: i1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i1.MatExpansionPanelContent, selector: "ng-template[matExpansionPanelContent]" }], encapsulation: i0.ViewEncapsulation.None });
|
|
81
|
+
}
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattExpandableCardComponent, decorators: [{
|
|
83
|
+
type: Component,
|
|
84
|
+
args: [{ imports: [NgTemplateOutlet, MatExpansionModule], encapsulation: ViewEncapsulation.None, selector: 'watt-expandable-card', template: `
|
|
85
|
+
<mat-expansion-panel
|
|
86
|
+
[togglePosition]="togglePosition()"
|
|
87
|
+
[expanded]="expanded()"
|
|
88
|
+
class="watt-expandable-card watt-{{ variant() }}"
|
|
89
|
+
[class.watt-expandable-card__parent]="containsNestedCard()"
|
|
90
|
+
>
|
|
91
|
+
<mat-expansion-panel-header>
|
|
92
|
+
<mat-panel-title>
|
|
93
|
+
<ng-content select="watt-badge" />
|
|
94
|
+
<ng-content select="watt-expandable-card-title" />
|
|
95
|
+
</mat-panel-title>
|
|
96
|
+
</mat-expansion-panel-header>
|
|
97
|
+
|
|
98
|
+
<ng-content />
|
|
99
|
+
|
|
100
|
+
@let _cardContent = cardContent();
|
|
101
|
+
|
|
102
|
+
@if (_cardContent) {
|
|
103
|
+
<ng-template matExpansionPanelContent>
|
|
104
|
+
<ng-container *ngTemplateOutlet="_cardContent.templateRef" />
|
|
105
|
+
</ng-template>
|
|
106
|
+
}
|
|
107
|
+
</mat-expansion-panel>
|
|
108
|
+
`, styles: ["watt-expandable-card{display:block}watt-expandable-card+watt-expandable-card{margin-top:var(--watt-space-m)}.watt-expandable-card.mat-expansion-panel{border-radius:4px!important}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-header{color:var(--watt-typography-headline-color);font-size:1rem;line-height:1.5rem;font-weight:600;text-transform:none;letter-spacing:0;height:var(--watt-space-xl);padding:0 var(--watt-space-m)}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:var(--watt-color-neutral-white)}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin-top:-6px;transform-origin:center 15px}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator:after{border-color:var(--watt-color-primary)}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-panel-header-title{margin-right:0}.watt-expandable-card.mat-expansion-panel .mat-expansion-indicator{margin-top:-6px;transform-origin:center 15px}.watt-expandable-card.mat-expansion-panel .mat-expansion-indicator:after{border-color:var(--watt-color-primary)}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-body{border-top:1px solid var(--watt-color-neutral-grey-300);padding:0 var(--watt-space-m)}.watt-expandable-card.mat-expansion-panel .mat-expansion-panel-header-title>watt-badge{margin-right:var(--watt-space-m)}.watt-expandable-card.mat-expansion-panel.watt-solid{border:1px solid var(--watt-color-neutral-grey-300);box-shadow:none}.watt-expandable-card.mat-expansion-panel.watt-expandable-card__parent .watt-expandable-card.mat-expansion-panel.watt-solid{border:none}.watt-expandable-card.mat-expansion-panel.watt-expandable-card__parent>.mat-expansion-panel-content>.mat-expansion-panel-body{border-top:none}\n"] }]
|
|
109
|
+
}] });
|
|
110
|
+
class WattExpandableCardTitleComponent {
|
|
111
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattExpandableCardTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
112
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: WattExpandableCardTitleComponent, isStandalone: true, selector: "watt-expandable-card-title", ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
113
|
+
}
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattExpandableCardTitleComponent, decorators: [{
|
|
115
|
+
type: Component,
|
|
116
|
+
args: [{
|
|
117
|
+
selector: 'watt-expandable-card-title',
|
|
118
|
+
template: `<ng-content />`,
|
|
119
|
+
}]
|
|
120
|
+
}] });
|
|
121
|
+
|
|
122
|
+
//#region License
|
|
123
|
+
/**
|
|
124
|
+
* @license
|
|
125
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
126
|
+
*
|
|
127
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
128
|
+
* you may not use this file except in compliance with the License.
|
|
129
|
+
* You may obtain a copy of the License at
|
|
130
|
+
*
|
|
131
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
132
|
+
*
|
|
133
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
134
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
135
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
136
|
+
* See the License for the specific language governing permissions and
|
|
137
|
+
* limitations under the License.
|
|
138
|
+
*/
|
|
139
|
+
//#endregion
|
|
140
|
+
const WATT_EXPANDABLE_CARD_COMPONENTS = [
|
|
141
|
+
WattExpandableCardComponent,
|
|
142
|
+
WattExpandableCardTitleComponent,
|
|
143
|
+
WattExpandableCardContentDirective,
|
|
144
|
+
];
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Generated bundle index. Do not edit.
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
export { WATT_EXPANDABLE_CARD_COMPONENTS, WattExpandableCardComponent, WattExpandableCardContentDirective, WattExpandableCardTitleComponent };
|
|
151
|
+
//# sourceMappingURL=energinet-watt-expandable-card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-expandable-card.mjs","sources":["../../../libs/watt/package/expandable-card/watt-expandable-card.component.ts","../../../libs/watt/package/expandable-card/index.ts","../../../libs/watt/package/expandable-card/energinet-watt-expandable-card.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 { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n TemplateRef,\n ViewEncapsulation,\n inject,\n input,\n contentChild,\n} from '@angular/core';\nimport { MatAccordionTogglePosition, MatExpansionModule } from '@angular/material/expansion';\n\n@Directive({\n selector: '[wattExpandableCardContent]',\n})\nexport class WattExpandableCardContentDirective {\n templateRef = inject(TemplateRef);\n}\n\n/**\n * Usage:\n * `import { WATT_EXPANDABLE_CARD_COMPONENTS } from '@energinet-datahub/watt/expandable-card';`\n */\n@Component({\n imports: [NgTemplateOutlet, MatExpansionModule],\n encapsulation: ViewEncapsulation.None,\n selector: 'watt-expandable-card',\n styleUrl: './watt-expandable-card.component.scss',\n template: `\n <mat-expansion-panel\n [togglePosition]=\"togglePosition()\"\n [expanded]=\"expanded()\"\n class=\"watt-expandable-card watt-{{ variant() }}\"\n [class.watt-expandable-card__parent]=\"containsNestedCard()\"\n >\n <mat-expansion-panel-header>\n <mat-panel-title>\n <ng-content select=\"watt-badge\" />\n <ng-content select=\"watt-expandable-card-title\" />\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <ng-content />\n\n @let _cardContent = cardContent();\n\n @if (_cardContent) {\n <ng-template matExpansionPanelContent>\n <ng-container *ngTemplateOutlet=\"_cardContent.templateRef\" />\n </ng-template>\n }\n </mat-expansion-panel>\n `,\n})\nexport class WattExpandableCardComponent {\n /**\n * @ignore\n */\n cardContent = contentChild(WattExpandableCardContentDirective);\n\n /**\n * @ignore\n */\n containsNestedCard = contentChild(WattExpandableCardComponent);\n\n /** Whether the card is expanded. */\n expanded = input(false);\n\n /** The position of the expansion indicator. */\n togglePosition = input<MatAccordionTogglePosition>('after');\n\n /** Whether the card is elevated or has solid border */\n variant = input<'solid' | 'elevation'>('elevation');\n}\n\n@Component({\n selector: 'watt-expandable-card-title',\n template: `<ng-content />`,\n})\nexport class WattExpandableCardTitleComponent {}\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 {\n WattExpandableCardComponent,\n WattExpandableCardTitleComponent,\n WattExpandableCardContentDirective,\n} from './watt-expandable-card.component';\n\nconst WATT_EXPANDABLE_CARD_COMPONENTS = [\n WattExpandableCardComponent,\n WattExpandableCardTitleComponent,\n WattExpandableCardContentDirective,\n] as const;\n\nexport {\n WattExpandableCardComponent,\n WattExpandableCardTitleComponent,\n WattExpandableCardContentDirective,\n WATT_EXPANDABLE_CARD_COMPONENTS,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;MAgBa,kCAAkC,CAAA;AAC7C,IAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;uGADtB,kCAAkC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAlC,kCAAkC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAlC,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBAH9C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,6BAA6B;AACxC,iBAAA;;AAKD;;;AAGG;MAgCU,2BAA2B,CAAA;AACtC;;AAEG;AACH,IAAA,WAAW,GAAG,YAAY,CAAC,kCAAkC,CAAC;AAE9D;;AAEG;AACH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AA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAhC,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gCAAgC,sFAFjC,CAAgB,cAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;2FAEf,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAJ5C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,QAAQ,EAAE,CAAgB,cAAA,CAAA;AAC3B,iBAAA;;;AChGD;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAOA,MAAM,+BAA+B,GAAG;IACtC,2BAA2B;IAC3B,gCAAgC;IAChC,kCAAkC;;;AC3BpC;;AAEG;;;;"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Input, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/material/expansion';
|
|
4
|
+
import { MatExpansionModule } from '@angular/material/expansion';
|
|
5
|
+
import { WattButtonComponent } from '@energinet/watt/button';
|
|
6
|
+
|
|
7
|
+
//#region License
|
|
8
|
+
/**
|
|
9
|
+
* @license
|
|
10
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
11
|
+
*
|
|
12
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
13
|
+
* you may not use this file except in compliance with the License.
|
|
14
|
+
* You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
23
|
+
*/
|
|
24
|
+
//#endregion
|
|
25
|
+
/**
|
|
26
|
+
* Usage:
|
|
27
|
+
* `import { WattExpansionComponent } from '@energinet-datahub/watt/expansion';`
|
|
28
|
+
*/
|
|
29
|
+
class WattExpansionComponent {
|
|
30
|
+
openLabel = '';
|
|
31
|
+
closeLabel = '';
|
|
32
|
+
expanded = false;
|
|
33
|
+
/**
|
|
34
|
+
* @ignore
|
|
35
|
+
* @param matExpansionPanel
|
|
36
|
+
*/
|
|
37
|
+
onClose(matExpansionPanel) {
|
|
38
|
+
matExpansionPanel.close();
|
|
39
|
+
}
|
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattExpansionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: WattExpansionComponent, isStandalone: true, selector: "watt-expansion", inputs: { openLabel: "openLabel", closeLabel: "closeLabel", expanded: "expanded" }, ngImport: i0, template: "<!--\n@license\nCopyright 2020 Energinet DataHub A/S\n\nLicensed under the Apache License, Version 2.0 (the \"License2\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n<mat-expansion-panel hideToggle #expansion=\"matExpansionPanel\" [expanded]=\"expanded\">\n <mat-expansion-panel-header>\n <watt-button icon=\"plus\" aria-hidden=\"true\">{{ openLabel }}</watt-button>\n </mat-expansion-panel-header>\n\n <ng-content />\n\n <mat-action-row>\n <watt-button icon=\"minus\" (click)=\"onClose(expansion)\">{{ closeLabel }}</watt-button>\n </mat-action-row>\n</mat-expansion-panel>\n", styles: ["watt-expansion .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:none}watt-expansion mat-expansion-panel-header.mat-expansion-panel-header{padding:0;background:none!important}watt-expansion mat-expansion-panel-header.mat-expansion-panel-header .mat-content{justify-content:end}watt-expansion mat-expansion-panel-header.mat-expansion-panel-header button{opacity:1;transform:translateZ(0);transition:transform .25s ease-in-out}watt-expansion mat-action-row.mat-action-row{padding:16px 0;border:none}watt-expansion .mat-expanded mat-expansion-panel-header{overflow:hidden}watt-expansion .mat-expanded mat-expansion-panel-header button{transform:translate3d(0,100%,0)}watt-expansion watt-button watt-text-button button.watt-button:focus{outline:none}watt-expansion .mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}\n"], dependencies: [{ kind: "ngmodule", type: MatExpansionModule }, { kind: "component", type: i1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "directive", type: i1.MatExpansionPanelActionRow, selector: "mat-action-row" }, { kind: "component", type: i1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "component", type: WattButtonComponent, selector: "watt-button", inputs: ["icon", "variant", "type", "formId", "disabled", "loading"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattExpansionComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: 'watt-expansion', encapsulation: ViewEncapsulation.None, imports: [MatExpansionModule, WattButtonComponent], template: "<!--\n@license\nCopyright 2020 Energinet DataHub A/S\n\nLicensed under the Apache License, Version 2.0 (the \"License2\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n<mat-expansion-panel hideToggle #expansion=\"matExpansionPanel\" [expanded]=\"expanded\">\n <mat-expansion-panel-header>\n <watt-button icon=\"plus\" aria-hidden=\"true\">{{ openLabel }}</watt-button>\n </mat-expansion-panel-header>\n\n <ng-content />\n\n <mat-action-row>\n <watt-button icon=\"minus\" (click)=\"onClose(expansion)\">{{ closeLabel }}</watt-button>\n </mat-action-row>\n</mat-expansion-panel>\n", styles: ["watt-expansion .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:none}watt-expansion mat-expansion-panel-header.mat-expansion-panel-header{padding:0;background:none!important}watt-expansion mat-expansion-panel-header.mat-expansion-panel-header .mat-content{justify-content:end}watt-expansion mat-expansion-panel-header.mat-expansion-panel-header button{opacity:1;transform:translateZ(0);transition:transform .25s ease-in-out}watt-expansion mat-action-row.mat-action-row{padding:16px 0;border:none}watt-expansion .mat-expanded mat-expansion-panel-header{overflow:hidden}watt-expansion .mat-expanded mat-expansion-panel-header button{transform:translate3d(0,100%,0)}watt-expansion watt-button watt-text-button button.watt-button:focus{outline:none}watt-expansion .mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}\n"] }]
|
|
46
|
+
}], propDecorators: { openLabel: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], closeLabel: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}], expanded: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}] } });
|
|
53
|
+
|
|
54
|
+
//#region License
|
|
55
|
+
/**
|
|
56
|
+
* @license
|
|
57
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
58
|
+
*
|
|
59
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
60
|
+
* you may not use this file except in compliance with the License.
|
|
61
|
+
* You may obtain a copy of the License at
|
|
62
|
+
*
|
|
63
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
64
|
+
*
|
|
65
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
66
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
67
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
68
|
+
* See the License for the specific language governing permissions and
|
|
69
|
+
* limitations under the License.
|
|
70
|
+
*/
|
|
71
|
+
//#endregion
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Generated bundle index. Do not edit.
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
export { WattExpansionComponent };
|
|
78
|
+
//# sourceMappingURL=energinet-watt-expansion.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-expansion.mjs","sources":["../../../libs/watt/package/expansion/expansion.component.ts","../../../libs/watt/package/expansion/expansion.component.html","../../../libs/watt/package/expansion/index.ts","../../../libs/watt/package/expansion/energinet-watt-expansion.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 { Component, Input, ViewEncapsulation } from '@angular/core';\nimport { MatExpansionPanel, MatExpansionModule } from '@angular/material/expansion';\nimport { WattButtonComponent } from '@energinet/watt/button';\n\n/**\n * Usage:\n * `import { WattExpansionComponent } from '@energinet-datahub/watt/expansion';`\n */\n@Component({\n selector: 'watt-expansion',\n styleUrls: ['./expansion.component.scss'],\n templateUrl: './expansion.component.html',\n encapsulation: ViewEncapsulation.None,\n imports: [MatExpansionModule, WattButtonComponent],\n})\nexport class WattExpansionComponent {\n @Input() openLabel = '';\n @Input() closeLabel = '';\n @Input() expanded = false;\n\n /**\n * @ignore\n * @param matExpansionPanel\n */\n onClose(matExpansionPanel: MatExpansionPanel) {\n matExpansionPanel.close();\n }\n}\n","<!--\n@license\nCopyright 2020 Energinet DataHub A/S\n\nLicensed under the Apache License, Version 2.0 (the \"License2\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n<mat-expansion-panel hideToggle #expansion=\"matExpansionPanel\" [expanded]=\"expanded\">\n <mat-expansion-panel-header>\n <watt-button icon=\"plus\" aria-hidden=\"true\">{{ openLabel }}</watt-button>\n </mat-expansion-panel-header>\n\n <ng-content />\n\n <mat-action-row>\n <watt-button icon=\"minus\" (click)=\"onClose(expansion)\">{{ closeLabel }}</watt-button>\n </mat-action-row>\n</mat-expansion-panel>\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 { WattExpansionComponent } from './expansion.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAKA;;;AAGG;MAQU,sBAAsB,CAAA;IACxB,SA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