@energinet/watt 4.3.14 → 4.3.16

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.
@@ -0,0 +1,63 @@
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 { WattSeparatorComponent } from '@energinet/watt/separator';`
25
+ */
26
+ class WattSeparatorComponent {
27
+ size = input('s', ...(ngDevMode ? [{ debugName: "size" }] : []));
28
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: WattSeparatorComponent, isStandalone: true, selector: "watt-separator", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "separator" }, properties: { "style.border-top-width": "size() === \"s\" ? \"1px\" : \"2px\"" } }, ngImport: i0, template: '', isInline: true, styles: [":host{display:block;width:100%;border-top-style:solid;border-top-color:var(--watt-color-neutral-grey-300)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
30
+ }
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattSeparatorComponent, decorators: [{
32
+ type: Component,
33
+ args: [{ selector: 'watt-separator', changeDetection: ChangeDetectionStrategy.OnPush, host: {
34
+ role: 'separator',
35
+ '[style.border-top-width]': 'size() === "s" ? "1px" : "2px"',
36
+ }, template: '', styles: [":host{display:block;width:100%;border-top-style:solid;border-top-color:var(--watt-color-neutral-grey-300)}\n"] }]
37
+ }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
38
+
39
+ //#region License
40
+ /**
41
+ * @license
42
+ * Copyright 2020 Energinet DataHub A/S
43
+ *
44
+ * Licensed under the Apache License, Version 2.0 (the "License2");
45
+ * you may not use this file except in compliance with the License.
46
+ * You may obtain a copy of the License at
47
+ *
48
+ * http://www.apache.org/licenses/LICENSE-2.0
49
+ *
50
+ * Unless required by applicable law or agreed to in writing, software
51
+ * distributed under the License is distributed on an "AS IS" BASIS,
52
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53
+ * See the License for the specific language governing permissions and
54
+ * limitations under the License.
55
+ */
56
+ //#endregion
57
+
58
+ /**
59
+ * Generated bundle index. Do not edit.
60
+ */
61
+
62
+ export { WattSeparatorComponent };
63
+ //# sourceMappingURL=energinet-watt-separator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"energinet-watt-separator.mjs","sources":["../../../libs/watt/package/separator/watt-separator.component.ts","../../../libs/watt/package/separator/index.ts","../../../libs/watt/package/separator/energinet-watt-separator.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\nexport type WattSeparatorSize = 's' | 'm';\n\n/**\n * Usage:\n * `import { WattSeparatorComponent } from '@energinet/watt/separator';`\n */\n@Component({\n selector: 'watt-separator',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'separator',\n '[style.border-top-width]': 'size() === \"s\" ? \"1px\" : \"2px\"',\n },\n template: '',\n styles: `\n :host {\n display: block;\n width: 100%;\n border-top-style: solid;\n border-top-color: var(--watt-color-neutral-grey-300);\n }\n `,\n})\nexport class WattSeparatorComponent {\n size = input<WattSeparatorSize>('s');\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 { WattSeparatorComponent, WattSeparatorSize } from './watt-separator.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAKA;;;AAGG;MAkBU,sBAAsB,CAAA;AACjC,IAAA,IAAI,GAAG,KAAK,CAAoB,GAAG,gDAAC;wGADzB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,4UAVvB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,8GAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAUD,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAjBlC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAAA,eAAA,EACT,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,IAAI,EAAE,WAAW;AACjB,wBAAA,0BAA0B,EAAE,gCAAgC;AAC7D,qBAAA,EAAA,QAAA,EACS,EAAE,EAAA,MAAA,EAAA,CAAA,8GAAA,CAAA,EAAA;;;ACjCd;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@energinet/watt",
4
- "version": "4.3.14",
4
+ "version": "4.3.16",
5
5
  "license": "Apache-2.0",
6
6
  "exports": {
7
7
  ".": {
@@ -131,6 +131,10 @@
131
131
  "types": "./segmented-buttons/index.d.ts",
132
132
  "default": "./fesm2022/energinet-watt-segmented-buttons.mjs"
133
133
  },
134
+ "./separator": {
135
+ "types": "./separator/index.d.ts",
136
+ "default": "./fesm2022/energinet-watt-separator.mjs"
137
+ },
134
138
  "./shell": {
135
139
  "types": "./shell/index.d.ts",
136
140
  "default": "./fesm2022/energinet-watt-shell.mjs"
@@ -0,0 +1,15 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ type WattSeparatorSize = 's' | 'm';
4
+ /**
5
+ * Usage:
6
+ * `import { WattSeparatorComponent } from '@energinet/watt/separator';`
7
+ */
8
+ declare class WattSeparatorComponent {
9
+ size: i0.InputSignal<WattSeparatorSize>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<WattSeparatorComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<WattSeparatorComponent, "watt-separator", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
12
+ }
13
+
14
+ export { WattSeparatorComponent };
15
+ export type { WattSeparatorSize };