@energinet/watt 4.3.46 → 4.3.47
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/core/styles/_vater.scss +0 -18
- package/fesm2022/energinet-watt-description-list.mjs +2 -2
- package/fesm2022/energinet-watt-description-list.mjs.map +1 -1
- package/fesm2022/energinet-watt-skeleton.mjs +71 -0
- package/fesm2022/energinet-watt-skeleton.mjs.map +1 -0
- package/package.json +5 -1
- package/types/energinet-watt-skeleton.d.ts +18 -0
package/core/styles/_vater.scss
CHANGED
|
@@ -61,24 +61,6 @@
|
|
|
61
61
|
height: 100%;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
vater-grid > *,
|
|
65
|
-
[vater-grid] > *,
|
|
66
|
-
vater-grid > .vater-fragment > *,
|
|
67
|
-
[vater-grid] > .vater-fragment > * {
|
|
68
|
-
&.vater-fill-horizontal {
|
|
69
|
-
grid-column: 1 / -1;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&.vater-fill-vertical {
|
|
73
|
-
grid-row: 1 / -1;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&.vater-fill-both {
|
|
77
|
-
grid-row: 1 / -1;
|
|
78
|
-
grid-column: 1 / -1;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
64
|
:not(
|
|
83
65
|
vater-stack,
|
|
84
66
|
[vater-stack],
|
|
@@ -78,7 +78,7 @@ class WattDescriptionListComponent {
|
|
|
78
78
|
@for (item of descriptionItems(); track item) {
|
|
79
79
|
<ng-container *ngTemplateOutlet="item.templateRef()" />
|
|
80
80
|
}
|
|
81
|
-
</dl>`, isInline: true, styles: ["watt-description-list{display:block}watt-description-list.watt-description-list-flow dl{display:grid;gap:var(--watt-space-ml);grid-template-columns:repeat(var(--watt-description-list-groups-per-row, 3),1fr)}watt-description-list.watt-description-list-flow dl dd{margin:0}watt-description-list.watt-description-list-flow dl .force-new-row{grid-column-start:1}watt-description-list.watt-description-list-inline-flow dl{display:flex;gap:var(--watt-space-ml)}watt-description-list.watt-description-list-inline-flow dl dd{margin:0}watt-description-list.watt-description-list-inline-flow dl div{display:flex;gap:var(--watt-space-xs);width:max-content}watt-description-list.watt-description-list-stack dl{display:grid;gap:var(--watt-space-m);grid-template-columns:1fr}watt-description-list.watt-description-list-stack dl dd{margin:0;flex:1}watt-description-list.watt-description-list-stack dl dt{width:240px}watt-description-list.watt-description-list-stack dl div{display:flex;align-items:baseline}watt-description-list.watt-description-list-stack.item-separators dl div{border-bottom:1px solid var(--watt-color-neutral-grey-300);padding-bottom:var(--watt-space-m)}watt-description-list.watt-description-list-compact dl{display:grid;gap:var(--watt-space-m) var(--watt-space-l);grid-template-columns:max-content auto}watt-description-list.watt-description-list-compact dl dd{margin:0}watt-description-list.watt-description-list-compact dl div{display:contents}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
81
|
+
</dl>`, isInline: true, styles: ["watt-description-list{display:block}watt-description-list.watt-description-list-flow dl{display:grid;gap:var(--watt-space-ml);grid-template-columns:repeat(var(--watt-description-list-groups-per-row, 3),1fr)}watt-description-list.watt-description-list-flow dl dd{margin:0}watt-description-list.watt-description-list-flow dl .force-new-row{grid-column-start:1}watt-description-list.watt-description-list-inline-flow dl{display:flex;column-gap:var(--watt-space-ml);row-gap:var(--watt-space-xs);flex-wrap:wrap}watt-description-list.watt-description-list-inline-flow dl dd{margin:0}watt-description-list.watt-description-list-inline-flow dl div{display:flex;gap:var(--watt-space-xs);width:max-content}watt-description-list.watt-description-list-stack dl{display:grid;gap:var(--watt-space-m);grid-template-columns:1fr}watt-description-list.watt-description-list-stack dl dd{margin:0;flex:1}watt-description-list.watt-description-list-stack dl dt{width:240px}watt-description-list.watt-description-list-stack dl div{display:flex;align-items:baseline}watt-description-list.watt-description-list-stack.item-separators dl div{border-bottom:1px solid var(--watt-color-neutral-grey-300);padding-bottom:var(--watt-space-m)}watt-description-list.watt-description-list-compact dl{display:grid;gap:var(--watt-space-m) var(--watt-space-l);grid-template-columns:max-content auto}watt-description-list.watt-description-list-compact dl dd{margin:0}watt-description-list.watt-description-list-compact dl div{display:contents}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
82
82
|
}
|
|
83
83
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: WattDescriptionListComponent, decorators: [{
|
|
84
84
|
type: Component,
|
|
@@ -90,7 +90,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
90
90
|
'[style.--watt-description-list-groups-per-row]': 'groupsPerRow()',
|
|
91
91
|
'[class]': 'descriptionVariant()',
|
|
92
92
|
'[class.item-separators]': 'itemSeparators()',
|
|
93
|
-
}, styles: ["watt-description-list{display:block}watt-description-list.watt-description-list-flow dl{display:grid;gap:var(--watt-space-ml);grid-template-columns:repeat(var(--watt-description-list-groups-per-row, 3),1fr)}watt-description-list.watt-description-list-flow dl dd{margin:0}watt-description-list.watt-description-list-flow dl .force-new-row{grid-column-start:1}watt-description-list.watt-description-list-inline-flow dl{display:flex;gap:var(--watt-space-ml)}watt-description-list.watt-description-list-inline-flow dl dd{margin:0}watt-description-list.watt-description-list-inline-flow dl div{display:flex;gap:var(--watt-space-xs);width:max-content}watt-description-list.watt-description-list-stack dl{display:grid;gap:var(--watt-space-m);grid-template-columns:1fr}watt-description-list.watt-description-list-stack dl dd{margin:0;flex:1}watt-description-list.watt-description-list-stack dl dt{width:240px}watt-description-list.watt-description-list-stack dl div{display:flex;align-items:baseline}watt-description-list.watt-description-list-stack.item-separators dl div{border-bottom:1px solid var(--watt-color-neutral-grey-300);padding-bottom:var(--watt-space-m)}watt-description-list.watt-description-list-compact dl{display:grid;gap:var(--watt-space-m) var(--watt-space-l);grid-template-columns:max-content auto}watt-description-list.watt-description-list-compact dl dd{margin:0}watt-description-list.watt-description-list-compact dl div{display:contents}\n"] }]
|
|
93
|
+
}, styles: ["watt-description-list{display:block}watt-description-list.watt-description-list-flow dl{display:grid;gap:var(--watt-space-ml);grid-template-columns:repeat(var(--watt-description-list-groups-per-row, 3),1fr)}watt-description-list.watt-description-list-flow dl dd{margin:0}watt-description-list.watt-description-list-flow dl .force-new-row{grid-column-start:1}watt-description-list.watt-description-list-inline-flow dl{display:flex;column-gap:var(--watt-space-ml);row-gap:var(--watt-space-xs);flex-wrap:wrap}watt-description-list.watt-description-list-inline-flow dl dd{margin:0}watt-description-list.watt-description-list-inline-flow dl div{display:flex;gap:var(--watt-space-xs);width:max-content}watt-description-list.watt-description-list-stack dl{display:grid;gap:var(--watt-space-m);grid-template-columns:1fr}watt-description-list.watt-description-list-stack dl dd{margin:0;flex:1}watt-description-list.watt-description-list-stack dl dt{width:240px}watt-description-list.watt-description-list-stack dl div{display:flex;align-items:baseline}watt-description-list.watt-description-list-stack.item-separators dl div{border-bottom:1px solid var(--watt-color-neutral-grey-300);padding-bottom:var(--watt-space-m)}watt-description-list.watt-description-list-compact dl{display:grid;gap:var(--watt-space-m) var(--watt-space-l);grid-template-columns:max-content auto}watt-description-list.watt-description-list-compact dl dd{margin:0}watt-description-list.watt-description-list-compact dl div{display:contents}\n"] }]
|
|
94
94
|
}], propDecorators: { descriptionItems: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => WattDescriptionListItemComponent), { isSignal: true }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], groupsPerRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupsPerRow", required: false }] }], itemSeparators: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSeparators", required: false }] }] } });
|
|
95
95
|
const WATT_DESCRIPTION_LIST = [
|
|
96
96
|
WattDescriptionListComponent,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"energinet-watt-description-list.mjs","sources":["../../../libs/watt/package/description-list/watt-description-list-item.component.ts","../../../libs/watt/package/description-list/watt-description-list.component.ts","../../../libs/watt/package/description-list/index.ts","../../../libs/watt/package/description-list/energinet-watt-description-list.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 { ChangeDetectionStrategy, Component, input, TemplateRef, viewChild } from '@angular/core';\n\n@Component({\n selector: 'watt-description-list-item',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-template #templateRef\n ><div [class.force-new-row]=\"forceNewRow()\">\n <dt class=\"watt-label watt-on-light--high-emphasis\">{{ label() }}</dt>\n <dd class=\"watt-text-s\">{{ value() }}<ng-content /></dd></div\n ></ng-template>`,\n})\nexport class WattDescriptionListItemComponent<T> {\n templateRef = viewChild.required<TemplateRef<unknown | null>>('templateRef');\n\n label = input<string>('');\n value = input<T | null>(null);\n forceNewRow = input(false);\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, contentChildren, input, ViewEncapsulation } from '@angular/core';\n\nimport { WattDescriptionListItemComponent } from './watt-description-list-item.component';\n/**\n * Usage:\n * `import { WattDescriptionListComponent } from '@energinet/watt/description-list';`\n */\n@Component({\n encapsulation: ViewEncapsulation.None,\n selector: 'watt-description-list',\n styleUrls: ['./watt-description-list.component.scss'],\n imports: [NgTemplateOutlet],\n template: `<dl>\n @for (item of descriptionItems(); track item) {\n <ng-container *ngTemplateOutlet=\"item.templateRef()\" />\n }\n </dl>`,\n host: {\n '[style.--watt-description-list-groups-per-row]': 'groupsPerRow()',\n '[class]': 'descriptionVariant()',\n '[class.item-separators]': 'itemSeparators()',\n },\n})\nclass WattDescriptionListComponent<T> {\n descriptionItems = contentChildren(WattDescriptionListItemComponent<T>);\n\n variant = input<'flow' | 'inline-flow' | 'stack' | 'compact'>('flow');\n groupsPerRow = input<number>(3);\n itemSeparators = input(true);\n\n descriptionVariant = computed(() => `watt-description-list-${this.variant()}`);\n}\n\nexport { WattDescriptionListItemComponent, WattDescriptionListComponent };\nexport const WATT_DESCRIPTION_LIST = [\n WattDescriptionListComponent,\n WattDescriptionListItemComponent,\n] as const;\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 {\n WattDescriptionListComponent,\n WattDescriptionListItemComponent,\n WATT_DESCRIPTION_LIST,\n} from './watt-description-list.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"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IAAA,EAAA,MAAA,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"energinet-watt-description-list.mjs","sources":["../../../libs/watt/package/description-list/watt-description-list-item.component.ts","../../../libs/watt/package/description-list/watt-description-list.component.ts","../../../libs/watt/package/description-list/index.ts","../../../libs/watt/package/description-list/energinet-watt-description-list.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 { ChangeDetectionStrategy, Component, input, TemplateRef, viewChild } from '@angular/core';\n\n@Component({\n selector: 'watt-description-list-item',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-template #templateRef\n ><div [class.force-new-row]=\"forceNewRow()\">\n <dt class=\"watt-label watt-on-light--high-emphasis\">{{ label() }}</dt>\n <dd class=\"watt-text-s\">{{ value() }}<ng-content /></dd></div\n ></ng-template>`,\n})\nexport class WattDescriptionListItemComponent<T> {\n templateRef = viewChild.required<TemplateRef<unknown | null>>('templateRef');\n\n label = input<string>('');\n value = input<T | null>(null);\n forceNewRow = input(false);\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, contentChildren, input, ViewEncapsulation } from '@angular/core';\n\nimport { WattDescriptionListItemComponent } from './watt-description-list-item.component';\n/**\n * Usage:\n * `import { WattDescriptionListComponent } from '@energinet/watt/description-list';`\n */\n@Component({\n encapsulation: ViewEncapsulation.None,\n selector: 'watt-description-list',\n styleUrls: ['./watt-description-list.component.scss'],\n imports: [NgTemplateOutlet],\n template: `<dl>\n @for (item of descriptionItems(); track item) {\n <ng-container *ngTemplateOutlet=\"item.templateRef()\" />\n }\n </dl>`,\n host: {\n '[style.--watt-description-list-groups-per-row]': 'groupsPerRow()',\n '[class]': 'descriptionVariant()',\n '[class.item-separators]': 'itemSeparators()',\n },\n})\nclass WattDescriptionListComponent<T> {\n descriptionItems = contentChildren(WattDescriptionListItemComponent<T>);\n\n variant = input<'flow' | 'inline-flow' | 'stack' | 'compact'>('flow');\n groupsPerRow = input<number>(3);\n itemSeparators = input(true);\n\n descriptionVariant = computed(() => `watt-description-list-${this.variant()}`);\n}\n\nexport { WattDescriptionListItemComponent, WattDescriptionListComponent };\nexport const WATT_DESCRIPTION_LIST = [\n WattDescriptionListComponent,\n WattDescriptionListItemComponent,\n] as const;\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 {\n WattDescriptionListComponent,\n WattDescriptionListItemComponent,\n WATT_DESCRIPTION_LIST,\n} from './watt-description-list.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;AACA;;;;;;;;;;;;;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AAUjE,MAAM,qBAAqB,GAAG;IACnC,4BAA4B;IAC5B,gCAAgC;;;ACvDlC;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
//#region License
|
|
5
|
+
/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
//#endregion
|
|
22
|
+
/**
|
|
23
|
+
* Usage:
|
|
24
|
+
* `import { WattSkeletonComponent } from '@energinet/watt/skeleton';`
|
|
25
|
+
*/
|
|
26
|
+
class WattSkeletonComponent {
|
|
27
|
+
/** Width of the skeleton line. Accepts any valid CSS value, e.g. '100%', '200px'. */
|
|
28
|
+
width = input('100%', ...(ngDevMode ? [{ debugName: "width" }] : []));
|
|
29
|
+
/** Height of the skeleton line. Accepts any valid CSS value, e.g. '1em', '16px'. */
|
|
30
|
+
height = input('1em', ...(ngDevMode ? [{ debugName: "height" }] : []));
|
|
31
|
+
/** Border radius of the skeleton line. Accepts any valid CSS value, e.g. '4px', '50%'. */
|
|
32
|
+
borderRadius = input('4px', ...(ngDevMode ? [{ debugName: "borderRadius" }] : []));
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: WattSkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
34
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.6", type: WattSkeletonComponent, isStandalone: true, selector: "watt-skeleton", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, borderRadius: { classPropertyName: "borderRadius", publicName: "borderRadius", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true", "role": "presentation" }, properties: { "style.width": "width()", "style.height": "height()", "style.border-radius": "borderRadius()" } }, ngImport: i0, template: '', isInline: true, styles: [":host{display:block;animation:watt-skeleton-shine 1.6s infinite linear;background-color:var(--watt-color-neutral-grey-200);background-size:200% 100%;background-image:linear-gradient(90deg,var(--watt-color-neutral-grey-300) 0%,var(--watt-color-neutral-grey-200) 25%,var(--watt-color-neutral-grey-300) 50%)}@media(prefers-reduced-motion:reduce){:host{animation:none;background-position:0 0}}@keyframes watt-skeleton-shine{0%{background-position:100% 0}to{background-position:-100% 0}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: WattSkeletonComponent, decorators: [{
|
|
37
|
+
type: Component,
|
|
38
|
+
args: [{ selector: 'watt-skeleton', changeDetection: ChangeDetectionStrategy.OnPush, template: '', host: {
|
|
39
|
+
'[style.width]': 'width()',
|
|
40
|
+
'[style.height]': 'height()',
|
|
41
|
+
'[style.border-radius]': 'borderRadius()',
|
|
42
|
+
'aria-hidden': 'true',
|
|
43
|
+
role: 'presentation',
|
|
44
|
+
}, styles: [":host{display:block;animation:watt-skeleton-shine 1.6s infinite linear;background-color:var(--watt-color-neutral-grey-200);background-size:200% 100%;background-image:linear-gradient(90deg,var(--watt-color-neutral-grey-300) 0%,var(--watt-color-neutral-grey-200) 25%,var(--watt-color-neutral-grey-300) 50%)}@media(prefers-reduced-motion:reduce){:host{animation:none;background-position:0 0}}@keyframes watt-skeleton-shine{0%{background-position:100% 0}to{background-position:-100% 0}}\n"] }]
|
|
45
|
+
}], propDecorators: { width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], borderRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderRadius", required: false }] }] } });
|
|
46
|
+
|
|
47
|
+
//#region License
|
|
48
|
+
/**
|
|
49
|
+
* @license
|
|
50
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
51
|
+
*
|
|
52
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
53
|
+
* you may not use this file except in compliance with the License.
|
|
54
|
+
* You may obtain a copy of the License at
|
|
55
|
+
*
|
|
56
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
57
|
+
*
|
|
58
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
59
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
60
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
61
|
+
* See the License for the specific language governing permissions and
|
|
62
|
+
* limitations under the License.
|
|
63
|
+
*/
|
|
64
|
+
//#endregion
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Generated bundle index. Do not edit.
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
export { WattSkeletonComponent };
|
|
71
|
+
//# sourceMappingURL=energinet-watt-skeleton.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-skeleton.mjs","sources":["../../../libs/watt/package/skeleton/watt-skeleton.component.ts","../../../libs/watt/package/skeleton/index.ts","../../../libs/watt/package/skeleton/energinet-watt-skeleton.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 { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n/**\n * Usage:\n * `import { WattSkeletonComponent } from '@energinet/watt/skeleton';`\n */\n@Component({\n selector: 'watt-skeleton',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['./watt-skeleton.component.scss'],\n template: '',\n host: {\n '[style.width]': 'width()',\n '[style.height]': 'height()',\n '[style.border-radius]': 'borderRadius()',\n 'aria-hidden': 'true',\n role: 'presentation',\n },\n})\nexport class WattSkeletonComponent {\n /** Width of the skeleton line. Accepts any valid CSS value, e.g. '100%', '200px'. */\n width = input<string>('100%');\n\n /** Height of the skeleton line. Accepts any valid CSS value, e.g. '1em', '16px'. */\n height = input<string>('1em');\n\n /** Border radius of the skeleton line. Accepts any valid CSS value, e.g. '4px', '50%'. */\n borderRadius = input<string>('4px');\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 { WattSkeletonComponent } from './watt-skeleton.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],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|
"license": "Apache-2.0",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -171,6 +171,10 @@
|
|
|
171
171
|
"types": "./types/energinet-watt-shell.d.ts",
|
|
172
172
|
"default": "./fesm2022/energinet-watt-shell.mjs"
|
|
173
173
|
},
|
|
174
|
+
"./skeleton": {
|
|
175
|
+
"types": "./types/energinet-watt-skeleton.d.ts",
|
|
176
|
+
"default": "./fesm2022/energinet-watt-skeleton.mjs"
|
|
177
|
+
},
|
|
174
178
|
"./slide-toggle": {
|
|
175
179
|
"types": "./types/energinet-watt-slide-toggle.d.ts",
|
|
176
180
|
"default": "./fesm2022/energinet-watt-slide-toggle.mjs"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Usage:
|
|
5
|
+
* `import { WattSkeletonComponent } from '@energinet/watt/skeleton';`
|
|
6
|
+
*/
|
|
7
|
+
declare class WattSkeletonComponent {
|
|
8
|
+
/** Width of the skeleton line. Accepts any valid CSS value, e.g. '100%', '200px'. */
|
|
9
|
+
width: _angular_core.InputSignal<string>;
|
|
10
|
+
/** Height of the skeleton line. Accepts any valid CSS value, e.g. '1em', '16px'. */
|
|
11
|
+
height: _angular_core.InputSignal<string>;
|
|
12
|
+
/** Border radius of the skeleton line. Accepts any valid CSS value, e.g. '4px', '50%'. */
|
|
13
|
+
borderRadius: _angular_core.InputSignal<string>;
|
|
14
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WattSkeletonComponent, never>;
|
|
15
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WattSkeletonComponent, "watt-skeleton", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "borderRadius": { "alias": "borderRadius"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { WattSkeletonComponent };
|