@omicronenergy/oscd-ui 0.0.12 → 0.0.13

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.13](https://github.com/OMICRONEnergyOSS/oscd-ui/compare/oscd-ui-v0.0.12...oscd-ui-v0.0.13) (2026-06-08)
4
+
5
+
6
+ ### Features
7
+
8
+ * added DataSet icon to scl-icons ([ba9e8ba](https://github.com/OMICRONEnergyOSS/oscd-ui/commit/ba9e8bab297b73cefb03dbab793920b1d90fee3f))
9
+ * moved menu story out of overrides directly into OscdMenu.stories ([0cdff23](https://github.com/OMICRONEnergyOSS/oscd-ui/commit/0cdff23b6e7e90b8ec87922f151a241269d34825))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * add import dropped by bad merge ([42766cd](https://github.com/OMICRONEnergyOSS/oscd-ui/commit/42766cd72af6cd1e0f2d6b28a0dd3f3c1077022b))
15
+
3
16
  ## [0.0.12](https://github.com/OMICRONEnergyOSS/oscd-ui/compare/oscd-ui-v0.0.11...oscd-ui-v0.0.12) (2026-04-15)
4
17
 
5
18
 
@@ -1,51 +1,18 @@
1
- import type { StoryObj } from '@storybook/web-components-vite';
1
+ import type { Meta, StoryObj } from '@storybook/web-components-vite';
2
2
  import './oscd-menu.js';
3
- import { OscdMenu } from './OscdMenu.js';
4
- declare const _default: {
5
- title: import("storybook/internal/csf").ComponentTitle;
6
- id?: import("storybook/internal/csf").ComponentId;
7
- includeStories?: RegExp | string[];
8
- excludeStories?: RegExp | string[];
9
- component?: string | undefined;
10
- subcomponents?: Record<string, string> | undefined;
11
- play?: import("storybook/internal/csf").PlayFunction<import("@storybook/web-components-vite").WebComponentsRenderer, OscdMenu & {
12
- textContent: string;
13
- }> | undefined;
14
- globals?: import("storybook/internal/csf").Globals | undefined;
15
- decorators?: import("storybook/internal/csf").DecoratorFunction<import("@storybook/web-components-vite").WebComponentsRenderer, OscdMenu & {
16
- textContent: string;
17
- }> | import("storybook/internal/csf").DecoratorFunction<import("@storybook/web-components-vite").WebComponentsRenderer, OscdMenu & {
18
- textContent: string;
19
- }>[] | undefined;
20
- parameters?: import("@storybook/web-components-vite").Parameters | undefined;
21
- args?: Partial<OscdMenu & {
22
- textContent: string;
23
- }> | undefined;
24
- argTypes?: Partial<import("@storybook/web-components-vite").ArgTypes<OscdMenu & {
25
- textContent: string;
26
- }>> | undefined;
27
- loaders?: import("storybook/internal/csf").LoaderFunction<import("@storybook/web-components-vite").WebComponentsRenderer, OscdMenu & {
28
- textContent: string;
29
- }> | import("storybook/internal/csf").LoaderFunction<import("@storybook/web-components-vite").WebComponentsRenderer, OscdMenu & {
30
- textContent: string;
31
- }>[] | undefined;
32
- beforeEach?: import("storybook/internal/csf").BeforeEach<import("@storybook/web-components-vite").WebComponentsRenderer, OscdMenu & {
33
- textContent: string;
34
- }> | import("storybook/internal/csf").BeforeEach<import("@storybook/web-components-vite").WebComponentsRenderer, OscdMenu & {
35
- textContent: string;
36
- }>[] | undefined;
37
- afterEach?: import("storybook/internal/csf").AfterEach<import("@storybook/web-components-vite").WebComponentsRenderer, OscdMenu & {
38
- textContent: string;
39
- }> | import("storybook/internal/csf").AfterEach<import("@storybook/web-components-vite").WebComponentsRenderer, OscdMenu & {
40
- textContent: string;
41
- }>[] | undefined;
42
- render?: import("storybook/internal/csf").ArgsStoryFn<import("@storybook/web-components-vite").WebComponentsRenderer, OscdMenu & {
43
- textContent: string;
44
- }> | undefined;
45
- tags: import("storybook/internal/csf").Tag[];
46
- mount?: ((context: import("storybook/internal/csf").StoryContext<import("@storybook/web-components-vite").WebComponentsRenderer, OscdMenu & {
47
- textContent: string;
48
- }>) => () => Promise<import("storybook/internal/csf").Canvas>) | undefined;
49
- };
50
- export default _default;
51
- export declare const Default: StoryObj;
3
+ import './oscd-menu-item.js';
4
+ import '../list/oscd-list-item.js';
5
+ import '../icon/oscd-icon.js';
6
+ import '../button/oscd-filled-button.js';
7
+ declare const meta: Meta;
8
+ export default meta;
9
+ type Story = StoryObj;
10
+ /**
11
+ * Default menu with interactive items and a button anchor.
12
+ */
13
+ export declare const Default: Story;
14
+ /**
15
+ * Menu consisting of oscd-list-items (non-interactive items which serve as group
16
+ * headings) and standards oscd-menu-items.
17
+ */
18
+ export declare const MenuWithMixedItems: Story;
@@ -1,20 +1,112 @@
1
- /*
2
- * GENERATED SOURCE FILE. DO NOT MODIFY.
3
- * Modifications will be overwritten.
4
- * To prevent this file from being overwritten, remove this comment entirely.
5
- */
1
+ import { html } from 'lit';
2
+ import { useArgs } from 'storybook/preview-api';
3
+ import { action } from 'storybook/actions';
6
4
  import './oscd-menu.js';
7
- import { getStorybookMeta } from '@/utils/storybook/getStorybookMeta.js';
8
- const { args, argTypes, meta } = getStorybookMeta({
9
- tagName: 'oscd-menu',
10
- });
11
- export default {
5
+ import './oscd-menu-item.js';
6
+ import '../list/oscd-list-item.js';
7
+ import '../icon/oscd-icon.js';
8
+ import '../button/oscd-filled-button.js';
9
+ import { OscdMenu } from './OscdMenu.js';
10
+ import { OscdMenuItem } from './OscdMenuItem.js';
11
+ import { OscdListItem } from '../list/OscdListItem.js';
12
+ import { OscdIcon } from '../icon/OscdIcon.js';
13
+ import { OscdFilledButton } from '../button/OscdFilledButton.js';
14
+ import { scopedWcDecorator } from '@/utils/storybook/scopedWcDecorator.js';
15
+ const meta = {
12
16
  title: 'Menus / Menu',
13
17
  tags: ['autodocs'],
14
- ...meta,
18
+ decorators: [scopedWcDecorator],
19
+ parameters: {
20
+ layout: 'centered',
21
+ scopedElements: {
22
+ 'oscd-menu': OscdMenu,
23
+ 'oscd-menu-item': OscdMenuItem,
24
+ 'oscd-list-item': OscdListItem,
25
+ 'oscd-icon': OscdIcon,
26
+ 'oscd-filled-button': OscdFilledButton,
27
+ },
28
+ },
29
+ argTypes: {
30
+ open: { control: { type: 'boolean' } },
31
+ },
15
32
  };
33
+ export default meta;
34
+ /**
35
+ * Default menu with interactive items and a button anchor.
36
+ */
16
37
  export const Default = {
17
- argTypes,
18
- args,
38
+ args: { open: false },
39
+ render: argz => {
40
+ const [_, updateArgs] = useArgs();
41
+ return html `
42
+ <div style="position: relative;">
43
+ <oscd-filled-button
44
+ id="menu-button"
45
+ @click=${() => updateArgs({ open: !argz['open'] })}
46
+ >
47
+ Open Menu
48
+ </oscd-filled-button>
49
+ <oscd-menu
50
+ anchor="menu-button"
51
+ ?open=${argz['open']}
52
+ @closed=${() => updateArgs({ open: false })}
53
+ >
54
+ <oscd-menu-item>Option 1</oscd-menu-item>
55
+ <oscd-menu-item>Option 2</oscd-menu-item>
56
+ <oscd-menu-item>Option 3</oscd-menu-item>
57
+ <oscd-menu-item>Option 4</oscd-menu-item>
58
+ <oscd-menu-item>Option 5</oscd-menu-item>
59
+ </oscd-menu>
60
+ </div>
61
+ `;
62
+ },
63
+ };
64
+ /**
65
+ * Menu consisting of oscd-list-items (non-interactive items which serve as group
66
+ * headings) and standards oscd-menu-items.
67
+ */
68
+ export const MenuWithMixedItems = {
69
+ args: { open: false },
70
+ render: argz => {
71
+ const [_, updateArgs] = useArgs();
72
+ return html `
73
+ <div style="position: relative;">
74
+ <oscd-filled-button
75
+ id="ctx-anchor-1"
76
+ @click=${() => updateArgs({ open: !argz['open'] })}
77
+ >
78
+ Open Context Menu
79
+ </oscd-filled-button>
80
+ <oscd-menu
81
+ anchor="ctx-anchor-1"
82
+ ?open=${argz['open']}
83
+ @closed=${() => updateArgs({ open: false })}
84
+ >
85
+ <oscd-list-item type="text">
86
+ <oscd-icon slot="start">developer_board</oscd-icon>
87
+ <div slot="headline">Headline</div>
88
+ <div slot="supporting-text">non-interactive Item</div>
89
+ </oscd-list-item>
90
+
91
+ <li divider role="separator"></li>
92
+
93
+ <oscd-menu-item @click=${() => action('rotate')('clicked')}>
94
+ <oscd-icon slot="start">rotate_right</oscd-icon>
95
+ <div slot="headline">Menu Item 1</div>
96
+ </oscd-menu-item>
97
+
98
+ <oscd-menu-item @click=${() => action('flip')('clicked')}>
99
+ <oscd-icon slot="start">flip</oscd-icon>
100
+ <div slot="headline">Menu Item 2</div>
101
+ </oscd-menu-item>
102
+
103
+ <oscd-menu-item @click=${() => action('delete')('clicked')}>
104
+ <oscd-icon slot="start">delete</oscd-icon>
105
+ <div slot="headline">Menu Item 3</div>
106
+ </oscd-menu-item>
107
+ </oscd-menu>
108
+ </div>
109
+ `;
110
+ },
19
111
  };
20
112
  //# sourceMappingURL=OscdMenu.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OscdMenu.stories.js","sourceRoot":"","sources":["../../menu/OscdMenu.stories.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,gBAAgB,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,gBAAgB,CAAW;IAC1D,OAAO,EAAE,WAAW;CACrB,CAAC,CAAC;AAEH,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,GAAG,IAAI;CACR,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAa;IAC/B,QAAQ;IACR,IAAI;CACL,CAAC","sourcesContent":["/*\n * GENERATED SOURCE FILE. DO NOT MODIFY.\n * Modifications will be overwritten.\n * To prevent this file from being overwritten, remove this comment entirely.\n */\n\nimport type { StoryObj } from '@storybook/web-components-vite';\nimport './oscd-menu.js';\nimport { OscdMenu } from './OscdMenu.js';\nimport { getStorybookMeta } from '@/utils/storybook/getStorybookMeta.js';\n\nconst { args, argTypes, meta } = getStorybookMeta<OscdMenu>({\n tagName: 'oscd-menu',\n});\n\nexport default {\n title: 'Menus / Menu',\n tags: ['autodocs'],\n ...meta,\n};\n\nexport const Default: StoryObj = {\n argTypes,\n args,\n};\n"]}
1
+ {"version":3,"file":"OscdMenu.stories.js","sourceRoot":"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QACb,MAAM,CAAC,CAAC,EAAE,UAAU,CAAC,GAAG,OAAO,EAAE,CAAC;QAElC,OAAO,IAAI,CAAA;;;;mBAII,GAAG,EAAE,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;kBAM1C,IAAI,CAAC,MAAM,CAAC;oBACV,GAAG,EAAE,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;;;;;;;;KAShD,CAAC;IACJ,CAAC;CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAU;IACvC,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;IACrB,MAAM,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,CAAC,CAAC,EAAE,UAAU,CAAC,GAAG,OAAO,EAAE,CAAC;QAElC,OAAO,IAAI,CAAA;;;;mBAII,GAAG,EAAE,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;;;;;;kBAM1C,IAAI,CAAC,MAAM,CAAC;oBACV,GAAG,EAAE,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;;;;;;;;;mCAUlB,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC;;;;;mCAKjC,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC;;;;;mCAK/B,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC;;;;;;KAM/D,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["import { html } from 'lit';\nimport type { Meta, StoryObj } from '@storybook/web-components-vite';\nimport { useArgs } from 'storybook/preview-api';\nimport { action } from 'storybook/actions';\n\nimport './oscd-menu.js';\nimport './oscd-menu-item.js';\nimport '../list/oscd-list-item.js';\nimport '../icon/oscd-icon.js';\nimport '../button/oscd-filled-button.js';\n\nimport { OscdMenu } from './OscdMenu.js';\nimport { OscdMenuItem } from './OscdMenuItem.js';\nimport { OscdListItem } from '../list/OscdListItem.js';\nimport { OscdIcon } from '../icon/OscdIcon.js';\nimport { OscdFilledButton } from '../button/OscdFilledButton.js';\nimport { scopedWcDecorator } from '@/utils/storybook/scopedWcDecorator.js';\n\nconst meta: Meta = {\n title: 'Menus / Menu',\n tags: ['autodocs'],\n decorators: [scopedWcDecorator],\n parameters: {\n layout: 'centered',\n scopedElements: {\n 'oscd-menu': OscdMenu,\n 'oscd-menu-item': OscdMenuItem,\n 'oscd-list-item': OscdListItem,\n 'oscd-icon': OscdIcon,\n 'oscd-filled-button': OscdFilledButton,\n },\n },\n argTypes: {\n open: { control: { type: 'boolean' } },\n },\n};\n\nexport default meta;\ntype Story = StoryObj;\n\n/**\n * Default menu with interactive items and a button anchor.\n */\nexport const Default: Story = {\n args: { open: false },\n render: argz => {\n const [_, updateArgs] = useArgs();\n\n return html`\n <div style=\"position: relative;\">\n <oscd-filled-button\n id=\"menu-button\"\n @click=${() => updateArgs({ open: !argz['open'] })}\n >\n Open Menu\n </oscd-filled-button>\n <oscd-menu\n anchor=\"menu-button\"\n ?open=${argz['open']}\n @closed=${() => updateArgs({ open: false })}\n >\n <oscd-menu-item>Option 1</oscd-menu-item>\n <oscd-menu-item>Option 2</oscd-menu-item>\n <oscd-menu-item>Option 3</oscd-menu-item>\n <oscd-menu-item>Option 4</oscd-menu-item>\n <oscd-menu-item>Option 5</oscd-menu-item>\n </oscd-menu>\n </div>\n `;\n },\n};\n\n/**\n * Menu consisting of oscd-list-items (non-interactive items which serve as group\n * headings) and standards oscd-menu-items.\n */\nexport const MenuWithMixedItems: Story = {\n args: { open: false },\n render: argz => {\n const [_, updateArgs] = useArgs();\n\n return html`\n <div style=\"position: relative;\">\n <oscd-filled-button\n id=\"ctx-anchor-1\"\n @click=${() => updateArgs({ open: !argz['open'] })}\n >\n Open Context Menu\n </oscd-filled-button>\n <oscd-menu\n anchor=\"ctx-anchor-1\"\n ?open=${argz['open']}\n @closed=${() => updateArgs({ open: false })}\n >\n <oscd-list-item type=\"text\">\n <oscd-icon slot=\"start\">developer_board</oscd-icon>\n <div slot=\"headline\">Headline</div>\n <div slot=\"supporting-text\">non-interactive Item</div>\n </oscd-list-item>\n\n <li divider role=\"separator\"></li>\n\n <oscd-menu-item @click=${() => action('rotate')('clicked')}>\n <oscd-icon slot=\"start\">rotate_right</oscd-icon>\n <div slot=\"headline\">Menu Item 1</div>\n </oscd-menu-item>\n\n <oscd-menu-item @click=${() => action('flip')('clicked')}>\n <oscd-icon slot=\"start\">flip</oscd-icon>\n <div slot=\"headline\">Menu Item 2</div>\n </oscd-menu-item>\n\n <oscd-menu-item @click=${() => action('delete')('clicked')}>\n <oscd-icon slot=\"start\">delete</oscd-icon>\n <div slot=\"headline\">Menu Item 3</div>\n </oscd-menu-item>\n </oscd-menu>\n </div>\n `;\n },\n};\n"]}
@@ -25,6 +25,7 @@ export const SCL_ICONS = {
25
25
  gooseIcon: icons.gooseIcon,
26
26
  reportIcon: icons.reportIcon,
27
27
  smvIcon: icons.smvIcon,
28
+ dataSetIcon: icons.dataSetIcon,
28
29
  logIcon: icons.logIcon,
29
30
  inputIcon: icons.inputIcon,
30
31
  clientIcon: icons.clientIcon,
@@ -1 +1 @@
1
- {"version":3,"file":"OscdSclIcon.js","sourceRoot":"","sources":["../../scl-icon/OscdSclIcon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAC1D,OAAO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EH,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE;YAC3B,aAAa,EAAE,IAAI;YACnB,OAAO,EAAE,IAAI;YACb,SAAS,EAAE,IAAI;SAChB,CAAC,CAAC;IACL,CAAC;IAEQ,oBAAoB;QAC3B,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAC7B,IAAI,CAAC,SAAS,EAAE,UAAU,EAAE,CAAC;IAC/B,CAAC;IAEO,WAAW;QACjB,MAAM,OAAO,GAAG,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAChD,IAAI,OAAO,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;YAC3B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;YACrB,IAAI,CAAC,aAAa,EAAE,CAAC;QACvB,CAAC;IACH,CAAC;IAEQ,MAAM;QACb,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,8DAA8D;YAC9D,OAAO,IAAI,CAAA,SAAS,IAAI,CAAC,KAAK,SAAS,CAAC;QAC1C,CAAC;QACD,OAAO,IAAI,CAAA,cAAc,GAAG,cAAc,CAAC;IAC7C,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2025 Omicron Energy GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { html, LitElement, svg, SVGTemplateResult } from 'lit';\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js';\nimport * as compare from './internal/icons/compare.js';\nimport * as icons from './internal/icons/icons.js';\nimport * as iedIcons from './internal/icons/ied-icons.js';\nimport * as lnode from './internal/icons/lnode.js';\nimport { OscdIcon } from '../icon/OscdIcon.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-scl-icon': OscdSclIcon;\n }\n}\n\nexport const SCL_ICONS: Record<string, SVGTemplateResult> = {\n // From compare.ts\n elementIcon: compare.elementIcon,\n attributeIcon: compare.attributeIcon,\n contentIcon: compare.contentIcon,\n\n // From icons.ts\n editIcon: icons.editIcon,\n gooseIcon: icons.gooseIcon,\n reportIcon: icons.reportIcon,\n smvIcon: icons.smvIcon,\n logIcon: icons.logIcon,\n inputIcon: icons.inputIcon,\n clientIcon: icons.clientIcon,\n disconnect: icons.disconnect,\n networkConfigIcon: icons.networkConfigIcon,\n zeroLineIcon: icons.zeroLineIcon,\n voltageLevelIcon: icons.voltageLevelIcon,\n bayIcon: icons.bayIcon,\n disconnectorIcon: icons.disconnectorIcon,\n circuitBreakerIcon: icons.circuitBreakerIcon,\n currentTransformerIcon: icons.currentTransformerIcon,\n voltageTransformerIcon: icons.voltageTransformerIcon,\n earthSwitchIcon: icons.earthSwitchIcon,\n generalConductingEquipmentIcon: icons.generalConductingEquipmentIcon,\n connectivityNodeIcon: icons.connectivityNodeIcon,\n powerTransformerTwoWindingIcon: icons.powerTransformerTwoWindingIcon,\n openSCDIcon: icons.openSCDIcon,\n sizableSmvIcon: icons.sizableSmvIcon,\n sizableGooseIcon: icons.sizableGooseIcon,\n substationIcon: icons.substationIcon,\n lineIcon: icons.lineIcon,\n processIcon: icons.processIcon,\n transformerWindingIcon: icons.transformerWindingIcon,\n\n // From ied-icons.ts\n accessPointIcon: iedIcons.accessPointIcon,\n serverIcon: iedIcons.serverIcon,\n logicalDeviceIcon: iedIcons.logicalDeviceIcon,\n\n // From lnode.ts\n systemLogicalNode: lnode.systemLogicalNode,\n automationLogicalNode: lnode.automationLogicalNode,\n controlLogicalNode: lnode.controlLogicalNode,\n functionalLogicalNode: lnode.functionalLogicalNode,\n generalLogicalNode: lnode.generalLogicalNode,\n interfacingLogicalNode: lnode.interfacingLogicalNode,\n nonElectricalLogicalNode: lnode.nonElectricalLogicalNode,\n measurementLogicalNode: lnode.measurementLogicalNode,\n protectionLogicalNode: lnode.protectionLogicalNode,\n qualityLogicalNode: lnode.qualityLogicalNode,\n protectionRelatedLogicalNode: lnode.protectionRelatedLogicalNode,\n supervisionLogicalNode: lnode.supervisionLogicalNode,\n transformerLogicalNode: lnode.transformerLogicalNode,\n switchgearLogicalNode: lnode.switchgearLogicalNode,\n powerTransformerLogicalNode: lnode.powerTransformerLogicalNode,\n furtherPowerSystemEquipmentLogicalNode:\n lnode.furtherPowerSystemEquipmentLogicalNode,\n ...Object.keys(icons.pathsSVG).reduce(\n (acc, key) => {\n acc[key] = pathToSvg(key as iconType);\n return acc;\n },\n {} as Record<string, SVGTemplateResult>,\n ),\n};\n\nexport type iconType =\n | 'action'\n | 'dAIcon'\n | 'dOIcon'\n | 'enumIcon'\n | 'info'\n | 'warning'\n | 'error'\n | 'reset'\n | 'reportIcon'\n | 'smvIcon'\n | 'gooseIcon'\n | 'lNIcon'\n | 'logIcon';\n\nexport type iconProperty = {\n width: number;\n height: number;\n};\n\nexport const dataTypeTemplateIcons: Partial<Record<string, SVGTemplateResult>> =\n {\n DAType: pathToSvg('dAIcon'),\n DOType: pathToSvg('dOIcon'),\n EnumType: pathToSvg('enumIcon'),\n LNodeType: pathToSvg('lNIcon'),\n };\n\nexport const iconColors: { [key: string]: string } = {\n info: '--cyan',\n warning: '--yellow',\n error: '--red',\n action: '--blue',\n};\n\nexport function pathToSvg(type: iconType): SVGTemplateResult {\n return svg`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"24\"\n viewBox=\"0 0 26.5 24\"\n width=\"24\"\n >\n ${icons.pathsSVG[type]}\n </svg> `;\n}\n\n// export function getFilterIcon(\n// type: iconType,\n// state: boolean,\n// ): SVGTemplateResult {\n// if (type === 'reset') {\n// return svg``;\n// }\n// const height = iconProperties[type]?.height ?? 24;\n// const width = iconProperties[type]?.width ?? 24;\n// return svg`<svg\n// slot=\"${state ? 'onIcon' : 'offIcon'}\"\n// xmlns=\"http://www.w3.org/2000/svg\"\n// height=\"${height}\"\n// viewBox=\"0 0 ${width} ${height}\"\n// width=\"${width}\"\n// >\n// ${icons.pathsSVG[type]}\n// </svg> `;\n// }\n\n/**\n * Returns an SVG template result for the given icon name.\n * @param name - The name of the icon to retrieve\n * @returns The SVG template result, or undefined if the icon doesn't exist\n */\nexport function toSVG(name: string): SVGTemplateResult | undefined {\n return SCL_ICONS[name];\n}\n\n/**\n * @tagname oscd-scl-icon\n * @summary SCL icon component.\n * @final\n * @suppress {visibility}\n */\nexport class OscdSclIcon extends ScopedElementsMixin(LitElement) {\n static get scopedElements() {\n return {\n 'oscd-icon': OscdIcon,\n };\n }\n\n private _name = '';\n private _observer?: MutationObserver;\n\n // Read the text node (ligature-like API)\n override connectedCallback() {\n super.connectedCallback();\n this._updateName();\n\n // Observe changes to text content\n this._observer = new MutationObserver(() => {\n this._updateName();\n });\n\n this._observer.observe(this, {\n characterData: true,\n subtree: true,\n childList: true,\n });\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n this._observer?.disconnect();\n }\n\n private _updateName() {\n const newName = (this.textContent || '').trim();\n if (newName !== this._name) {\n this._name = newName;\n this.requestUpdate();\n }\n }\n\n override render() {\n const svg = toSVG(this._name);\n if (!svg) {\n // Fallback: render the name for debugging (or a default icon)\n return html`<span>${this._name}</span>`;\n }\n return html`<oscd-icon>${svg}</oscd-icon>`;\n }\n}\n"]}
1
+ {"version":3,"file":"OscdSclIcon.js","sourceRoot":"","sources":["../../scl-icon/OscdSclIcon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAC1D,OAAO,KAAK,KAAK,MAAM,2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C,CAAC,CAAC;QAEH,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE;YAC3B,aAAa,EAAE,IAAI;YACnB,OAAO,EAAE,IAAI;YACb,SAAS,EAAE,IAAI;SAChB,CAAC,CAAC;IACL,CAAC;IAEQ,oBAAoB;QAC3B,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAC7B,IAAI,CAAC,SAAS,EAAE,UAAU,EAAE,CAAC;IAC/B,CAAC;IAEO,WAAW;QACjB,MAAM,OAAO,GAAG,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAChD,IAAI,OAAO,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;YAC3B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;YACrB,IAAI,CAAC,aAAa,EAAE,CAAC;QACvB,CAAC;IACH,CAAC;IAEQ,MAAM;QACb,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,8DAA8D;YAC9D,OAAO,IAAI,CAAA,SAAS,IAAI,CAAC,KAAK,SAAS,CAAC;QAC1C,CAAC;QACD,OAAO,IAAI,CAAA,cAAc,GAAG,cAAc,CAAC;IAC7C,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2025 Omicron Energy GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { html, LitElement, svg, SVGTemplateResult } from 'lit';\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js';\nimport * as compare from './internal/icons/compare.js';\nimport * as icons from './internal/icons/icons.js';\nimport * as iedIcons from './internal/icons/ied-icons.js';\nimport * as lnode from './internal/icons/lnode.js';\nimport { OscdIcon } from '../icon/OscdIcon.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-scl-icon': OscdSclIcon;\n }\n}\n\nexport const SCL_ICONS: Record<string, SVGTemplateResult> = {\n // From compare.ts\n elementIcon: compare.elementIcon,\n attributeIcon: compare.attributeIcon,\n contentIcon: compare.contentIcon,\n\n // From icons.ts\n editIcon: icons.editIcon,\n gooseIcon: icons.gooseIcon,\n reportIcon: icons.reportIcon,\n smvIcon: icons.smvIcon,\n dataSetIcon: icons.dataSetIcon,\n logIcon: icons.logIcon,\n inputIcon: icons.inputIcon,\n clientIcon: icons.clientIcon,\n disconnect: icons.disconnect,\n networkConfigIcon: icons.networkConfigIcon,\n zeroLineIcon: icons.zeroLineIcon,\n voltageLevelIcon: icons.voltageLevelIcon,\n bayIcon: icons.bayIcon,\n disconnectorIcon: icons.disconnectorIcon,\n circuitBreakerIcon: icons.circuitBreakerIcon,\n currentTransformerIcon: icons.currentTransformerIcon,\n voltageTransformerIcon: icons.voltageTransformerIcon,\n earthSwitchIcon: icons.earthSwitchIcon,\n generalConductingEquipmentIcon: icons.generalConductingEquipmentIcon,\n connectivityNodeIcon: icons.connectivityNodeIcon,\n powerTransformerTwoWindingIcon: icons.powerTransformerTwoWindingIcon,\n openSCDIcon: icons.openSCDIcon,\n sizableSmvIcon: icons.sizableSmvIcon,\n sizableGooseIcon: icons.sizableGooseIcon,\n substationIcon: icons.substationIcon,\n lineIcon: icons.lineIcon,\n processIcon: icons.processIcon,\n transformerWindingIcon: icons.transformerWindingIcon,\n\n // From ied-icons.ts\n accessPointIcon: iedIcons.accessPointIcon,\n serverIcon: iedIcons.serverIcon,\n logicalDeviceIcon: iedIcons.logicalDeviceIcon,\n\n // From lnode.ts\n systemLogicalNode: lnode.systemLogicalNode,\n automationLogicalNode: lnode.automationLogicalNode,\n controlLogicalNode: lnode.controlLogicalNode,\n functionalLogicalNode: lnode.functionalLogicalNode,\n generalLogicalNode: lnode.generalLogicalNode,\n interfacingLogicalNode: lnode.interfacingLogicalNode,\n nonElectricalLogicalNode: lnode.nonElectricalLogicalNode,\n measurementLogicalNode: lnode.measurementLogicalNode,\n protectionLogicalNode: lnode.protectionLogicalNode,\n qualityLogicalNode: lnode.qualityLogicalNode,\n protectionRelatedLogicalNode: lnode.protectionRelatedLogicalNode,\n supervisionLogicalNode: lnode.supervisionLogicalNode,\n transformerLogicalNode: lnode.transformerLogicalNode,\n switchgearLogicalNode: lnode.switchgearLogicalNode,\n powerTransformerLogicalNode: lnode.powerTransformerLogicalNode,\n furtherPowerSystemEquipmentLogicalNode:\n lnode.furtherPowerSystemEquipmentLogicalNode,\n ...Object.keys(icons.pathsSVG).reduce(\n (acc, key) => {\n acc[key] = pathToSvg(key as iconType);\n return acc;\n },\n {} as Record<string, SVGTemplateResult>,\n ),\n};\n\nexport type iconType =\n | 'action'\n | 'dAIcon'\n | 'dOIcon'\n | 'enumIcon'\n | 'info'\n | 'warning'\n | 'error'\n | 'reset'\n | 'reportIcon'\n | 'smvIcon'\n | 'gooseIcon'\n | 'lNIcon'\n | 'logIcon';\n\nexport type iconProperty = {\n width: number;\n height: number;\n};\n\nexport const dataTypeTemplateIcons: Partial<Record<string, SVGTemplateResult>> =\n {\n DAType: pathToSvg('dAIcon'),\n DOType: pathToSvg('dOIcon'),\n EnumType: pathToSvg('enumIcon'),\n LNodeType: pathToSvg('lNIcon'),\n };\n\nexport const iconColors: { [key: string]: string } = {\n info: '--cyan',\n warning: '--yellow',\n error: '--red',\n action: '--blue',\n};\n\nexport function pathToSvg(type: iconType): SVGTemplateResult {\n return svg`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"24\"\n viewBox=\"0 0 26.5 24\"\n width=\"24\"\n >\n ${icons.pathsSVG[type]}\n </svg> `;\n}\n\n// export function getFilterIcon(\n// type: iconType,\n// state: boolean,\n// ): SVGTemplateResult {\n// if (type === 'reset') {\n// return svg``;\n// }\n// const height = iconProperties[type]?.height ?? 24;\n// const width = iconProperties[type]?.width ?? 24;\n// return svg`<svg\n// slot=\"${state ? 'onIcon' : 'offIcon'}\"\n// xmlns=\"http://www.w3.org/2000/svg\"\n// height=\"${height}\"\n// viewBox=\"0 0 ${width} ${height}\"\n// width=\"${width}\"\n// >\n// ${icons.pathsSVG[type]}\n// </svg> `;\n// }\n\n/**\n * Returns an SVG template result for the given icon name.\n * @param name - The name of the icon to retrieve\n * @returns The SVG template result, or undefined if the icon doesn't exist\n */\nexport function toSVG(name: string): SVGTemplateResult | undefined {\n return SCL_ICONS[name];\n}\n\n/**\n * @tagname oscd-scl-icon\n * @summary SCL icon component.\n * @final\n * @suppress {visibility}\n */\nexport class OscdSclIcon extends ScopedElementsMixin(LitElement) {\n static get scopedElements() {\n return {\n 'oscd-icon': OscdIcon,\n };\n }\n\n private _name = '';\n private _observer?: MutationObserver;\n\n // Read the text node (ligature-like API)\n override connectedCallback() {\n super.connectedCallback();\n this._updateName();\n\n // Observe changes to text content\n this._observer = new MutationObserver(() => {\n this._updateName();\n });\n\n this._observer.observe(this, {\n characterData: true,\n subtree: true,\n childList: true,\n });\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n this._observer?.disconnect();\n }\n\n private _updateName() {\n const newName = (this.textContent || '').trim();\n if (newName !== this._name) {\n this._name = newName;\n this.requestUpdate();\n }\n }\n\n override render() {\n const svg = toSVG(this._name);\n if (!svg) {\n // Fallback: render the name for debugging (or a default icon)\n return html`<span>${this._name}</span>`;\n }\n return html`<oscd-icon>${svg}</oscd-icon>`;\n }\n}\n"]}
@@ -12,12 +12,14 @@ export declare const pathsSVG: {
12
12
  lNIcon: import("lit-html").TemplateResult<2>;
13
13
  logIcon: import("lit-html").TemplateResult<2>;
14
14
  reportIcon: import("lit-html").TemplateResult<2>;
15
+ dataSetIcon: import("lit-html").TemplateResult<2>;
15
16
  smvIcon: import("lit-html").TemplateResult<2>;
16
17
  reset: import("lit-html").TemplateResult<2>;
17
18
  };
18
19
  export declare const gooseIcon: import("lit-html").TemplateResult<2>;
19
20
  export declare const reportIcon: import("lit-html").TemplateResult<2>;
20
21
  export declare const smvIcon: import("lit-html").TemplateResult<2>;
22
+ export declare const dataSetIcon: import("lit-html").TemplateResult<2>;
21
23
  export declare const logIcon: import("lit-html").TemplateResult<2>;
22
24
  export declare const controlBlockIcons: Partial<Record<string, SVGTemplateResult>>;
23
25
  export declare const inputIcon: import("lit-html").TemplateResult<2>;
@@ -26,12 +26,14 @@ export const pathsSVG = {
26
26
  lNIcon: svg `<path stroke="currentColor" stroke-width="1.89" fill="none" d="m4.2 0.945h18.1c1.8 0 3.25 1.45 3.25 3.25v11.6c0 1.8-1.45 3.25-3.25 3.25h-18.1c-1.8 0-3.25-1.45-3.25-3.25v-11.6c0-1.8 1.45-3.25 3.25-3.25z"/><path fill="currentColor" d="m5.71 15v-10h1.75v8.39h4.47v1.62z"/><path fill="currentColor" d="m18.2 15-3.63-7.71q0.107 1.12 0.107 1.8v5.9h-1.55v-10h1.99l3.69 7.77q-0.107-1.07-0.107-1.95v-5.82h1.55v10z"/>`,
27
27
  logIcon: svg `<path fill="currentColor" d="M9,7H11V15H15V17H9V7M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z" />`,
28
28
  reportIcon: svg `<path fill="currentColor" d="M9,7H13A2,2 0 0,1 15,9V11C15,11.84 14.5,12.55 13.76,12.85L15,17H13L11.8,13H11V17H9V7M11,9V11H13V9H11M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12C4,16.41 7.58,20 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z" />`,
29
+ dataSetIcon: svg `<path fill="currentColor" d="M9,7H12.5A3.5,3.5 0 0,1 16,10.5V13.5A3.5,3.5 0 0,1 12.5,17H9V7M11,9V15H12.5A1.5,1.5 0 0,0 14,13.5V10.5A1.5,1.5 0 0,0 12.5,9H11M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12C4,16.41 7.58,20 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z" />`,
29
30
  smvIcon: svg `<path fill="currentColor" d="M11,7H15V9H11V11H13A2,2 0 0,1 15,13V15A2,2 0 0,1 13,17H9V15H13V13H11A2,2 0 0,1 9,11V9A2,2 0 0,1 11,7M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z" />`,
30
31
  reset: svg ``,
31
32
  };
32
33
  export const gooseIcon = svg `<svg style="width:24px;height:24px" viewBox="0 0 24 24">${pathsSVG['gooseIcon']}</svg>`;
33
34
  export const reportIcon = svg `<svg style="width:24px;height:24px" viewBox="0 0 24 24">${pathsSVG['reportIcon']}</svg>`;
34
35
  export const smvIcon = svg `<svg style="width:24px;height:24px" viewBox="0 0 24 24">${pathsSVG['smvIcon']}</svg>`;
36
+ export const dataSetIcon = svg `<svg style="width:24px;height:24px" viewBox="0 0 24 24">${pathsSVG['dataSetIcon']}</svg>`;
35
37
  export const logIcon = svg `<svg style="width:24px;height:24px" viewBox="0 0 24 24">${pathsSVG['logIcon']}</svg>`;
36
38
  export const controlBlockIcons = {
37
39
  ReportControl: reportIcon,
@@ -1 +1 @@
1
- {"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../../scl-icon/internal/icons/icons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAE7C,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAA;;;;;;;;;;;OAWpB,CAAC;AAER,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM,EAAE,GAAG,CAAA;;;+FAGkF;IAC7F,MAAM,EAAE,GAAG,CAAA,kvBAAkvB;IAC7vB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,cAAc,GAAG,GAAG,CAAA;;;SAGxB,CAAC;AAEV,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;OAE5B,CAAC;AAER,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;OAsB1B,CAAC;AAER,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;OAmBpB,CAAC;AAER,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;OAmBvB,CAAC;AAER,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;OAuBlC,CAAC","sourcesContent":["import { svg, SVGTemplateResult } from 'lit';\n\nexport const editIcon = svg`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 25 25\"\n>\n <path\n d=\"M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z\"\n stroke=\"currentColor\"\n fill=\"transparent\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n</svg>`;\n\nexport const pathsSVG = {\n action: svg`<path d=\"M0 0h24v24H0z\" fill=\"none\"></path><path d=\"M13 3c-4.97 0-9\n 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7\n 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0\n 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z\" fill=\"currentColor\"></path>`,\n dAIcon: svg`<path fill=\"currentColor\" d=\"m4.2 0c-2.31 0-4.2 1.89-4.2 4.2v11.6c0 2.31 1.89 4.2 4.2 4.2h18.1c2.31 0 4.2-1.89 4.2-4.2v-11.6c0-2.31-1.89-4.2-4.2-4.2zm0 1.89h18.1c1.29 0 2.3 1.01 2.3 2.3v11.6c0 1.29-1.01 2.31-2.3 2.31h-18.1c-1.29 0-2.3-1.01-2.3-2.31v-11.6c0-1.29 1.01-2.3 2.3-2.3z\"/><path stroke=\"none\" fill=\"currentColor\" d=\"m12.5 9.94q0 1.55-0.509 2.71-0.503 1.15-1.43 1.76-0.923 0.611-2.12 0.611h-3.37v-10h3.02q2.11 0 3.26 1.28 1.15 1.27 1.15 3.65zm-1.76 0q0-1.61-0.698-2.46-0.698-0.852-1.99-0.852h-1.24v6.77h1.48q1.12 0 1.79-0.931 0.663-0.931 0.663-2.53z\"/><path stroke=\"none\" fill=\"currentColor\" d=\"m19.7 15-0.74-2.56h-3.18l-0.74 2.56h-1.75l3.04-10h2.06l3.03 10zm-1.13-4.13-0.823-2.88-0.379-1.46q-0.0947 0.412-0.178 0.739-0.0829 0.327-1.02 3.59z\"/>`,\n dOIcon: svg`<path fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.89\" d=\"m4.2 0.945h18.1c1.8 0 3.25 1.45 3.25 3.25v11.6c0 1.8-1.45 3.25-3.25 3.25h-18.1c-1.8 0-3.25-1.45-3.25-3.25v-11.6c0-1.8 1.45-3.25 3.25-3.25z\"/><path stroke=\"none\" fill=\"currentColor\" d=\"m12.1 9.94q0 1.55-0.509 2.71-0.503 1.15-1.43 1.76-0.923 0.611-2.12 0.611h-3.37v-10h3.02q2.11 0 3.26 1.28 1.15 1.27 1.15 3.65zm-1.76 0q0-1.61-0.698-2.46-0.698-0.852-1.99-0.852h-1.24v6.77h1.48q1.12 0 1.79-0.931 0.663-0.931 0.663-2.53z\"/><path stroke=\"none\" fill=\"currentColor\" d=\"m21.6 9.97q0 1.56-0.515 2.75-0.515 1.19-1.47 1.82-0.959 0.625-2.24 0.625-1.97 0-3.08-1.39-1.11-1.39-1.11-3.81 0-2.41 1.11-3.76t3.1-1.35 3.1 1.36q1.12 1.36 1.12 3.74zm-1.78 0q0-1.62-0.639-2.54-0.639-0.923-1.79-0.923-1.17 0-1.81 0.916-0.639 0.909-0.639 2.54 0 1.65 0.651 2.6 0.657 0.945 1.79 0.945 1.17 0 1.81-0.923 0.639-0.923 0.639-2.62z\"/>`,\n enumIcon: svg`<path fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.89\" d=\"m4.2 0.945h18.1c1.8 0 3.25 1.45 3.25 3.25v11.6c0 1.8-1.45 3.25-3.25 3.25h-18.1c-1.8 0-3.25-1.45-3.25-3.25v-11.6c0-1.8 1.45-3.25 3.25-3.25z\"/><path d=\"m5.37 15v-10h6.56v1.62h-4.81v2.51h4.45v1.62h-4.45v2.64h5.06v1.62z\"/><path d=\"m18.5 15-3.63-7.71q0.107 1.12 0.107 1.8v5.9h-1.55v-10h1.99l3.69 7.77q-0.107-1.07-0.107-1.95v-5.82h1.55v10z\"/>`,\n info: svg`<path d=\"M0 0h24v24H0z\" fill=\"none\"></path><path d=\"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z\" fill=\"currentColor\"></path>`,\n warning: svg`<path d=\"M0 0h24v24H0z\" fill=\"none\"></path><path d=\"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\" fill=\"currentColor\"></path>`,\n error: svg`<path d=\"M0 0h24v24H0V0z\" fill=\"none\"></path><path d=\"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM19 14.9L14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1v5.8z\" fill=\"currentColor\"></path><path d=\"M11 7h2v7h-2z\" fill=\"currentColor\"></path><circle cx=\"12\" cy=\"16\" r=\"1\" fill=\"currentColor\"></circle>`,\n gooseIcon: svg`<path fill=\"currentColor\" d=\"M11,7H15V9H11V15H13V11H15V15A2,2 0 0,1 13,17H11A2,2 0 0,1 9,15V9A2,2 0 0,1 11,7M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />`,\n lNIcon: svg`<path stroke=\"currentColor\" stroke-width=\"1.89\" fill=\"none\" d=\"m4.2 0.945h18.1c1.8 0 3.25 1.45 3.25 3.25v11.6c0 1.8-1.45 3.25-3.25 3.25h-18.1c-1.8 0-3.25-1.45-3.25-3.25v-11.6c0-1.8 1.45-3.25 3.25-3.25z\"/><path fill=\"currentColor\" d=\"m5.71 15v-10h1.75v8.39h4.47v1.62z\"/><path fill=\"currentColor\" d=\"m18.2 15-3.63-7.71q0.107 1.12 0.107 1.8v5.9h-1.55v-10h1.99l3.69 7.77q-0.107-1.07-0.107-1.95v-5.82h1.55v10z\"/>`,\n logIcon: svg`<path fill=\"currentColor\" d=\"M9,7H11V15H15V17H9V7M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />`,\n reportIcon: svg`<path fill=\"currentColor\" d=\"M9,7H13A2,2 0 0,1 15,9V11C15,11.84 14.5,12.55 13.76,12.85L15,17H13L11.8,13H11V17H9V7M11,9V11H13V9H11M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12C4,16.41 7.58,20 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />`,\n smvIcon: svg`<path fill=\"currentColor\" d=\"M11,7H15V9H11V11H13A2,2 0 0,1 15,13V15A2,2 0 0,1 13,17H9V15H13V13H11A2,2 0 0,1 9,11V9A2,2 0 0,1 11,7M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />`,\n reset: svg``,\n};\n\nexport const gooseIcon = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">${pathsSVG['gooseIcon']}</svg>`;\n\nexport const reportIcon = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">${pathsSVG['reportIcon']}</svg>`;\n\nexport const smvIcon = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">${pathsSVG['smvIcon']}</svg>`;\n\nexport const logIcon = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">${pathsSVG['logIcon']}</svg>`;\n\nexport const controlBlockIcons: Partial<Record<string, SVGTemplateResult>> = {\n ReportControl: reportIcon,\n LogControl: logIcon,\n GSEControl: gooseIcon,\n SampledValueControl: smvIcon,\n};\n\nexport const inputIcon = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">\n<path fill=\"currentColor\" d=\"M14,12L10,8V11H2V13H10V16M20,18V6C20,4.89 19.1,4 18,4H6A2,2 0 0,0 4,6V9H6V6H18V18H6V15H4V18A2,2 0 0,0 6,20H18A2,2 0 0,0 20,18Z\" />\n</svg>`;\n\nexport const clientIcon = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">\n<path fill=\"currentColor\" d=\"M21,14V4H3V14H21M21,2A2,2 0 0,1 23,4V16A2,2 0 0,1 21,18H14L16,21V22H8V21L10,18H3C1.89,18 1,17.1 1,16V4C1,2.89 1.89,2 3,2H21M4,5H15V10H4V5M16,5H20V7H16V5M20,8V13H16V8H20M4,11H9V13H4V11M10,11H15V13H10V11Z\" />\n</svg>`;\n\nexport const disconnect = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">\n<path fill=\"currentColor\" d=\"M4,1C2.89,1 2,1.89 2,3V7C2,8.11 2.89,9 4,9H1V11H13V9H10C11.11,9 12,8.11 12,7V3C12,1.89 11.11,1 10,1H4M4,3H10V7H4V3M14,13C12.89,13 12,13.89 12,15V19C12,20.11 12.89,21 14,21H11V23H23V21H20C21.11,21 22,20.11 22,19V15C22,13.89 21.11,13 20,13H14M3.88,13.46L2.46,14.88L4.59,17L2.46,19.12L3.88,20.54L6,18.41L8.12,20.54L9.54,19.12L7.41,17L9.54,14.88L8.12,13.46L6,15.59L3.88,13.46M14,15H20V19H14V15Z\" />\n</svg>`;\n\nexport const networkConfigIcon = svg`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n slot=\"icon\"\n width=\"25px\"\n height=\"25px\"\n style=\"margin-bottom:0px;\"\n>\n <rect\n width=\"8\"\n height=\"8\"\n x=\"8.5\"\n y=\"2\"\n rx=\"1\"\n ry=\"1\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n <rect\n width=\"8\"\n height=\"8\"\n x=\"2.5\"\n y=\"15\"\n rx=\"1\"\n ry=\"1\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n <rect\n width=\"8\"\n height=\"8\"\n x=\"15\"\n y=\"15\"\n rx=\"1\"\n ry=\"1\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n\n <line\n x1=\"2\"\n y1=\"12.5\"\n x2=\"23\"\n y2=\"12.5\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-width=\"1.5\"\n />\n <line\n x1=\"12.5\"\n y1=\"10\"\n x2=\"12.5\"\n y2=\"12.5\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n <line\n x1=\"6.5\"\n y1=\"12.5\"\n x2=\"6.5\"\n y2=\"15\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n <line\n x1=\"19\"\n y1=\"12.5\"\n x2=\"19\"\n y2=\"15\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n</svg>`;\n\nexport const zeroLineIcon = svg`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n slot=\"icon\"\n viewBox=\"0 0 25 25\"\n>\n <path\n d=\"M 2 9 L 12.5 2 L 23 9 L 21 9 L 21 21 L 4 21 L 4 9 Z\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M 11 7 L 17.5 7 L 13.5 11 L 16.5 11 L 10 19 L 11.5 13 L 8.5 13 Z \"\n fill=\"currentColor\"\n />\n</svg>`;\n\nexport const voltageLevelIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: currentColor;\n opacity: 0;\n }\n </style>\n </defs>\n <path\n class=\"cls-1\"\n d=\"M11.13,20.06L3.63,6.93c-.27-.48-.11-1.09.37-1.36h0c.48-.27,1.09-.11,1.36.37l6.64,11.61,6.64-11.61c.27-.48.88-.65,1.36-.37h0c.48.27.65.88.37,1.36l-7.5,13.13c-.38.67-1.35.67-1.74,0Z\"\n />\n <rect class=\"cls-2\" width=\"24\" height=\"24\" />\n</svg>`;\n\nexport const bayIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n stroke-width: 0px;\n }\n </style>\n </defs>\n <path\n class=\"cls-1\"\n d=\"M7.75,8c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.5h-1.25c0,.84.52,1.55,1.25,1.85v8.65h1.5v-8.65c.73-.3,1.25-1.01,1.25-1.85h-1.25v-1.5Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M12.75,8c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.5h-1.25c0,.84.52,1.55,1.25,1.85v8.65h1.5v-8.65c.73-.3,1.25-1.01,1.25-1.85h-1.25v-1.5Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M17.75,8c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.5h-1.25c0,.84.52,1.55,1.25,1.85v8.65h1.5v-8.65c.73-.3,1.25-1.01,1.25-1.85h-1.25v-1.5Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M20,4H4c-1.1,0-2,.9-2,2v4c0,1.1.9,2,2,2v-6h16v6c1.1,0,2-.9,2-2v-4c0-1.1-.9-2-2-2Z\"\n />\n</svg>`;\n\nexport const disconnectorIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: #fff;\n opacity: 0;\n }\n </style>\n </defs>\n <g>\n <path\n class=\"cls-1\"\n d=\"M12.71,15.29l-6.79-6.79c-.39-.39-1.02-.39-1.41,0-.39.39-.39,1.02,0,1.41l6.5,6.5v4.59c0,.55.45,1,1,1s1-.45,1-1v-5c0-.13-.03-.26-.08-.38-.05-.12-.12-.23-.22-.33Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M14,6h-1v-3c0-.55-.45-1-1-1s-1,.45-1,1v3h-1c-.55,0-1,.45-1,1s.45,1,1,1h4c.55,0,1-.45,1-1s-.45-1-1-1Z\"\n />\n </g>\n <rect class=\"cls-2\" width=\"24\" height=\"24\" />\n</svg>`;\n\nexport const circuitBreakerIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: #fff;\n opacity: 0;\n }\n </style>\n </defs>\n <g>\n <path\n class=\"cls-1\"\n d=\"M12.71,15.29l-6.79-6.79c-.39-.39-1.02-.39-1.41,0-.39.39-.39,1.02,0,1.41l6.5,6.5v4.59c0,.55.45,1,1,1s1-.45,1-1v-5c0-.13-.03-.26-.08-.38-.05-.12-.12-.23-.22-.33Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M13.41,7l1.29-1.29c.39-.39.39-1.02,0-1.41s-1.02-.39-1.41,0l-1.29,1.29-1.29-1.29c-.39-.39-1.02-.39-1.41,0s-.39,1.02,0,1.41l1.29,1.29-1.29,1.29c-.39.39-.39,1.02,0,1.41.2.2.45.29.71.29s.51-.1.71-.29l1.29-1.29,1.29,1.29c.2.2.45.29.71.29s.51-.1.71-.29c.39-.39.39-1.02,0-1.41l-1.29-1.29Z\"\n />\n </g>\n <rect class=\"cls-2\" width=\"24\" height=\"24\" />\n</svg>`;\n\nexport const currentTransformerIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: #fff;\n opacity: 0;\n }\n </style>\n </defs>\n <path\n class=\"cls-1\"\n d=\"M19,12c0-3.53-2.61-6.43-6-6.92v-2.08c0-.55-.45-1-1-1s-1,.45-1,1v2.08c-3.39.49-6,3.39-6,6.92s2.61,6.43,6,6.92v2.08c0,.55.45,1,1,1s1-.45,1-1v-2.08c3.39-.49,6-3.39,6-6.92ZM7,12c0-2.42,1.72-4.44,4-4.9v9.8c-2.28-.46-4-2.48-4-4.9ZM13,16.9V7.1c2.28.46,4,2.48,4,4.9s-1.72,4.44-4,4.9Z\"\n />\n <rect class=\"cls-2\" width=\"24\" height=\"24\" />\n</svg>`;\n\nexport const voltageTransformerIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: #fff;\n opacity: 0;\n }\n </style>\n </defs>\n <path\n class=\"cls-1\"\n d=\"M17,10c0-2.42-1.72-4.44-4-4.9v-2.1s0-1-1-1-1,1-1,1v2.1c-2.28.46-4,2.48-4,4.9,0,.71.15,1.39.42,2-.27.61-.42,1.29-.42,2,0,2.42,1.72,4.44,4,4.9v1.1h-1c-.55,0-1,.45-1,1s.45,1,1,1h4c.55,0,1-.45,1-1s-.45-1-1-1h-1v-1.1c2.28-.46,4-2.48,4-4.9,0-.71-.15-1.39-.42-2,.27-.61.42-1.29.42-2ZM12,7c1.66,0,3,1.34,3,3,0,0,0,.01,0,.02-.84-.63-1.87-1.02-3-1.02s-2.16.39-3,1.02c0,0,0-.01,0-.02,0-1.66,1.34-3,3-3ZM14.22,12c-.55.61-1.34,1-2.22,1s-1.67-.39-2.22-1c.55-.61,1.34-1,2.22-1s1.67.39,2.22,1ZM12,17c-1.66,0-3-1.34-3-3,0,0,0-.01,0-.02.84.63,1.87,1.02,3,1.02s2.16-.39,3-1.02c0,0,0,.01,0,.02,0,1.66-1.34,3-3,3Z\"\n />\n <rect class=\"cls-2\" width=\"24\" height=\"24\" />\n</svg>`;\n\nexport const earthSwitchIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: #fff;\n opacity: 0;\n }\n </style>\n </defs>\n <g>\n <path\n class=\"cls-1\"\n d=\"M13,20h-2c-.55,0-1,.45-1,1s.45,1,1,1h2c.55,0,1-.45,1-1s-.45-1-1-1Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M15,16h-2v-5c0-.13-.03-.26-.08-.38-.05-.12-.12-.23-.22-.33L5.91,3.5c-.39-.39-1.02-.39-1.41,0-.39.39-.39,1.02,0,1.41l6.5,6.5v4.59h-2c-.55,0-1,.45-1,1s.45,1,1,1h6c.55,0,1-.45,1-1s-.45-1-1-1Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M10,4h4c.55,0,1-.45,1-1s-.45-1-1-1h-4c-.55,0-1,.45-1,1s.45,1,1,1Z\"\n />\n </g>\n <rect class=\"cls-2\" width=\"24\" height=\"24\" />\n</svg>`;\n\nexport const generalConductingEquipmentIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n stroke-width: 0px;\n }\n </style>\n </defs>\n <path\n class=\"cls-1\"\n d=\"M20.41,3.59c-.78-.78-2.05-.78-2.83,0-.59.59-.73,1.47-.43,2.19l-1.49,1.49c-1.02-.79-2.29-1.27-3.67-1.27-3.31,0-6,2.69-6,6,0,1.38.48,2.66,1.27,3.67l-1.49,1.49c-.73-.31-1.6-.17-2.19.43-.78.78-.78,2.05,0,2.83.78.78,2.05.78,2.83,0,.59-.59.73-1.47.43-2.19l1.49-1.49c1.02.79,2.29,1.27,3.67,1.27,3.31,0,6-2.69,6-6,0-1.38-.48-2.66-1.27-3.67l1.49-1.49c.73.31,1.6.17,2.19-.43.78-.78.78-2.05,0-2.83ZM12,16c-2.21,0-4-1.79-4-4s1.79-4,4-4,4,1.79,4,4-1.79,4-4,4Z\"\n />\n</svg>`;\n\nexport const connectivityNodeIcon = svg`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n>\n <circle\n stroke=\"currentColor\"\n fill=\"currentColor\"\n stroke-width=\"1\"\n cx=\"12.5\"\n cy=\"12.5\"\n r=\"5\"\n />\n</svg>`;\n\nexport const powerTransformerTwoWindingIcon = svg`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 25 25\"\n>\n <line\n x1=\"12.5\"\n y1=\"2\"\n x2=\"12.5\"\n y2=\"5\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n <circle\n cx=\"12.5\"\n cy=\"10\"\n r=\"5\"\n stroke=\"currentColor\"\n fill=\"transparent\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n <circle\n cx=\"12.5\"\n cy=\"15\"\n r=\"5\"\n stroke=\"currentColor\"\n fill=\"transparent\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n <line\n x1=\"12.5\"\n y1=\"20\"\n x2=\"12.5\"\n y2=\"23\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n</svg>`;\n\nexport const openSCDIcon = svg` <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n style=\"width:100px;height:100px\"\n viewBox=\"0 0 25 25\"\n>\n <path\n d=\"M 2 9 L 12.5 2 L 23 9 L 21 9 L 21 21 L 4 21 L 4 9 Z\"\n fill=\"#eee8d5\"\n stroke=\"#6c71c4\"\n stroke-width=\"2\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M 11 7 L 17.5 7 L 13.5 11 L 16.5 11 L 10 19 L 11.5 13 L 8.5 13 Z \"\n fill=\"#2aa198\"\n />\n</svg>`;\n\nexport const sizableSmvIcon = svg`\n <svg viewBox=\"0 0 24 24\">\n <path fill=\"currentColor\" d=\"M11,7H15V9H11V11H13A2,2 0 0,1 15,13V15A2,2 0 0,1 13,17H9V15H13V13H11A2,2 0 0,1 9,11V9A2,2 0 0,1 11,7M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />\n </svg>`;\n\nexport const sizableGooseIcon = svg`<svg viewBox=\"0 0 24 24\">\n<path fill=\"currentColor\" d=\"M11,7H15V9H11V15H13V11H15V15A2,2 0 0,1 13,17H11A2,2 0 0,1 9,15V9A2,2 0 0,1 11,7M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />\n</svg>`;\n\nexport const substationIcon = svg`<svg id=\"Laag_1\" data-name=\"Laag 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n<defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1, .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: currentColor;\n opacity: 0;\n }\n </style>\n</defs>\n<g>\n <path class=\"cls-1\" d=\"M19.3,7.94l-6-5.14c-.75-.64-1.85-.65-2.6,0l-6,5.14c-.44.38-.7.93-.7,1.52v9.54c0,1.1.9,2,2,2h12c1.1,0,2-.9,2-2v-9.54c0-.58-.25-1.14-.7-1.52ZM18,19H6v-9.54l6-5.14,6,5.14v9.54Z\"/>\n <path class=\"cls-1\" d=\"M11.57,7.74l-3,5c-.09.15-.09.35,0,.5.09.16.26.25.44.25h2v3.5c0,.22.15.42.37.48.04.01.09.02.13.02.17,0,.34-.09.43-.24l3-5c.09-.15.09-.35,0-.5-.09-.16-.26-.25-.44-.25h-2v-3.5c0-.22-.15-.42-.37-.48-.22-.06-.45.03-.56.22Z\"/>\n</g>\n<rect class=\"cls-2\" y=\"0\" width=\"24\" height=\"24\"/>\n</svg>`;\n\nexport const lineIcon = svg`<svg id=\"Laag_1\" data-name=\"Laag 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n<defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1, .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: currentColor;\n opacity: 0;\n }\n </style>\n</defs>\n<path class=\"cls-1\" d=\"M14.39,11.93l-1.39.58v-1.84l2.15-.89c.51-.21.75-.8.54-1.31-.21-.51-.8-.75-1.31-.54l-1.39.58V3c0-.55-.45-1-1-1s-1,.45-1,1v6.33l-2.15.89c-.51.21-.75.8-.54,1.31.21.51.8.75,1.31.54l1.39-.58v1.84l-2.15.89c-.51.21-.75.8-.54,1.31.21.51.8.75,1.31.54l1.39-.58v5.5c0,.55.45,1,1,1s1-.45,1-1v-6.33l2.15-.89c.51-.21.75-.8.54-1.31-.21-.51-.8-.75-1.31-.54Z\"/>\n<rect class=\"cls-2\" width=\"24\" height=\"24\"/>\n</svg>`;\n\nexport const processIcon = svg`<svg id=\"Laag_1\" data-name=\"Laag 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n<defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1, .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: currentColor;\n opacity: 0;\n }\n </style>\n</defs>\n<path class=\"cls-1\" d=\"M18.71,15.29c-.39-.39-1.02-.39-1.41,0s-.39,1.02,0,1.41l.29.29h-5.59c0-1.1-.9-2-2-2h-2c-1.01,0-1.84.76-1.97,1.74-.61-.34-1.03-.99-1.03-1.74,0-1.1.9-2,2-2h5c0,1.1.9,2,2,2h2c1.1,0,2-.9,2-2v-.14c1.72-.45,3-2,3-3.86,0-2.21-1.79-4-4-4h-5c0-1.1-.9-2-2-2h-2c-1.1,0-2,.9-2,2h-2c-.55,0-1,.45-1,1s.45,1,1,1h2c0,1.1.9,2,2,2h2c1.1,0,2-.9,2-2h5c1.1,0,2,.9,2,2,0,.75-.42,1.39-1.03,1.74-.13-.98-.96-1.74-1.97-1.74h-2c-1.1,0-2,.9-2,2h-5c-2.21,0-4,1.79-4,4,0,1.86,1.28,3.41,3,3.86v.14c0,1.1.9,2,2,2h2c1.1,0,2-.9,2-2h5.59l-.29.29c-.39.39-.39,1.02,0,1.41.2.2.45.29.71.29s.51-.1.71-.29l2-2c.39-.39.39-1.02,0-1.41l-2-2ZM8,7v-2h2v2s-2,0-2,0ZM14,11h2v2s-2,0-2,0v-2ZM8,19v-2h2v2s-2,0-2,0Z\"/>\n<rect class=\"cls-2\" y=\"0\" width=\"24\" height=\"24\"/>\n</svg>`;\n\nexport const transformerWindingIcon = svg`<svg id=\"Laag_1\" data-name=\"Laag 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n<defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1, .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: currentColor;\n opacity: 0;\n }\n </style>\n</defs>\n<g>\n <path class=\"cls-1\" d=\"M19,20h-2c-1.21,0-2.18-1.09-1.97-2.34.16-.98,1.09-1.66,2.08-1.66h-.11c.55,0,1-.45,1-1s-.42-.96-.95-.99c.04,0,.08-.01.12-.01h-.17c-1.21,0-2.18-1.09-1.97-2.34.16-.98,1.09-1.66,2.08-1.66h-.11c.55,0,1-.45,1-1s-.42-.96-.95-.99c.04,0,.08-.01.12-.01h-.17c-1.21,0-2.18-1.09-1.97-2.34.16-.98,1.09-1.66,2.08-1.66h1.89c.55,0,1-.45,1-1s-.45-1-1-1h-1.83c-2.09,0-3.95,1.53-4.15,3.61-.13,1.37.44,2.59,1.38,3.41-.76.64-1.28,1.55-1.38,2.59-.13,1.37.44,2.59,1.38,3.41-.76.64-1.28,1.55-1.38,2.59-.23,2.39,1.64,4.39,3.98,4.39h2c.55,0,1-.45,1-1s-.45-1-1-1Z\"/>\n <path class=\"cls-1\" d=\"M10.98,6.39c.23-2.39-1.64-4.39-3.98-4.39h-2c-.55,0-1,.45-1,1s.45,1,1,1h2c1.21,0,2.18,1.09,1.97,2.34-.16.98-1.09,1.66-2.08,1.66h.11c-.55,0-1,.45-1,1s.42.96.95.99c-.04,0-.08.01-.12.01h.17c1.21,0,2.18,1.09,1.97,2.34-.16.98-1.09,1.66-2.08,1.66h.11c-.55,0-1,.45-1,1,0,.28.11.53.29.71.17.17.4.27.65.28h0s.03.01.05.01c1.21,0,2.18,1.09,1.97,2.34-.16.98-1.09,1.66-2.08,1.66h-1.89c-.55,0-1,.45-1,1s.45,1,1,1h1.83c2.09,0,3.95-1.53,4.15-3.61.13-1.37-.44-2.59-1.38-3.41.76-.64,1.28-1.55,1.38-2.59.13-1.37-.44-2.59-1.38-3.41.76-.64,1.28-1.55,1.38-2.59Z\"/>\n <path class=\"cls-1\" d=\"M6.83,16h.17s-.03,0-.05-.01c-.04,0-.08.01-.12.01Z\"/>\n</g>\n<rect class=\"cls-2\" width=\"24\" height=\"24\"/>\n</svg>`;\n"]}
1
+ {"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../../scl-icon/internal/icons/icons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAE7C,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAA;;;;;;;;;;;OAWpB,CAAC;AAER,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM,EAAE,GAAG,CAAA;;;+FAGkF;IAC7F,MAAM,EAAE,GAAG,CAAA,kvBAAkvB;IAC7vB,MAAM,EAAE,GAAG,CAAA,m2BAAm2B;IAC92B,QAAQ,EAAE,GAAG,CAAA,iZAAiZ;IAC9Z,IAAI,EAAE,GAAG,CAAA,uOAAuO;IAChP,OAAO,EAAE,GAAG,CAAA,qIAAqI;IACjJ,KAAK,EAAE,GAAG,CAAA,qTAAqT;IAC/T,SAAS,EAAE,GAAG,CAAA,iQAAiQ;IAC/Q,MAAM,EAAE,GAAG,CAAA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GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;OAsB1B,CAAC;AAER,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;OAmBpB,CAAC;AAER,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;OAmBvB,CAAC;AAER,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;OAuBlC,CAAC","sourcesContent":["import { svg, SVGTemplateResult } from 'lit';\n\nexport const editIcon = svg`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 25 25\"\n>\n <path\n d=\"M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z\"\n stroke=\"currentColor\"\n fill=\"transparent\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n</svg>`;\n\nexport const pathsSVG = {\n action: svg`<path d=\"M0 0h24v24H0z\" fill=\"none\"></path><path d=\"M13 3c-4.97 0-9\n 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7\n 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0\n 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z\" fill=\"currentColor\"></path>`,\n dAIcon: svg`<path fill=\"currentColor\" d=\"m4.2 0c-2.31 0-4.2 1.89-4.2 4.2v11.6c0 2.31 1.89 4.2 4.2 4.2h18.1c2.31 0 4.2-1.89 4.2-4.2v-11.6c0-2.31-1.89-4.2-4.2-4.2zm0 1.89h18.1c1.29 0 2.3 1.01 2.3 2.3v11.6c0 1.29-1.01 2.31-2.3 2.31h-18.1c-1.29 0-2.3-1.01-2.3-2.31v-11.6c0-1.29 1.01-2.3 2.3-2.3z\"/><path stroke=\"none\" fill=\"currentColor\" d=\"m12.5 9.94q0 1.55-0.509 2.71-0.503 1.15-1.43 1.76-0.923 0.611-2.12 0.611h-3.37v-10h3.02q2.11 0 3.26 1.28 1.15 1.27 1.15 3.65zm-1.76 0q0-1.61-0.698-2.46-0.698-0.852-1.99-0.852h-1.24v6.77h1.48q1.12 0 1.79-0.931 0.663-0.931 0.663-2.53z\"/><path stroke=\"none\" fill=\"currentColor\" d=\"m19.7 15-0.74-2.56h-3.18l-0.74 2.56h-1.75l3.04-10h2.06l3.03 10zm-1.13-4.13-0.823-2.88-0.379-1.46q-0.0947 0.412-0.178 0.739-0.0829 0.327-1.02 3.59z\"/>`,\n dOIcon: svg`<path fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.89\" d=\"m4.2 0.945h18.1c1.8 0 3.25 1.45 3.25 3.25v11.6c0 1.8-1.45 3.25-3.25 3.25h-18.1c-1.8 0-3.25-1.45-3.25-3.25v-11.6c0-1.8 1.45-3.25 3.25-3.25z\"/><path stroke=\"none\" fill=\"currentColor\" d=\"m12.1 9.94q0 1.55-0.509 2.71-0.503 1.15-1.43 1.76-0.923 0.611-2.12 0.611h-3.37v-10h3.02q2.11 0 3.26 1.28 1.15 1.27 1.15 3.65zm-1.76 0q0-1.61-0.698-2.46-0.698-0.852-1.99-0.852h-1.24v6.77h1.48q1.12 0 1.79-0.931 0.663-0.931 0.663-2.53z\"/><path stroke=\"none\" fill=\"currentColor\" d=\"m21.6 9.97q0 1.56-0.515 2.75-0.515 1.19-1.47 1.82-0.959 0.625-2.24 0.625-1.97 0-3.08-1.39-1.11-1.39-1.11-3.81 0-2.41 1.11-3.76t3.1-1.35 3.1 1.36q1.12 1.36 1.12 3.74zm-1.78 0q0-1.62-0.639-2.54-0.639-0.923-1.79-0.923-1.17 0-1.81 0.916-0.639 0.909-0.639 2.54 0 1.65 0.651 2.6 0.657 0.945 1.79 0.945 1.17 0 1.81-0.923 0.639-0.923 0.639-2.62z\"/>`,\n enumIcon: svg`<path fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.89\" d=\"m4.2 0.945h18.1c1.8 0 3.25 1.45 3.25 3.25v11.6c0 1.8-1.45 3.25-3.25 3.25h-18.1c-1.8 0-3.25-1.45-3.25-3.25v-11.6c0-1.8 1.45-3.25 3.25-3.25z\"/><path d=\"m5.37 15v-10h6.56v1.62h-4.81v2.51h4.45v1.62h-4.45v2.64h5.06v1.62z\"/><path d=\"m18.5 15-3.63-7.71q0.107 1.12 0.107 1.8v5.9h-1.55v-10h1.99l3.69 7.77q-0.107-1.07-0.107-1.95v-5.82h1.55v10z\"/>`,\n info: svg`<path d=\"M0 0h24v24H0z\" fill=\"none\"></path><path d=\"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z\" fill=\"currentColor\"></path>`,\n warning: svg`<path d=\"M0 0h24v24H0z\" fill=\"none\"></path><path d=\"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\" fill=\"currentColor\"></path>`,\n error: svg`<path d=\"M0 0h24v24H0V0z\" fill=\"none\"></path><path d=\"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM19 14.9L14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1v5.8z\" fill=\"currentColor\"></path><path d=\"M11 7h2v7h-2z\" fill=\"currentColor\"></path><circle cx=\"12\" cy=\"16\" r=\"1\" fill=\"currentColor\"></circle>`,\n gooseIcon: svg`<path fill=\"currentColor\" d=\"M11,7H15V9H11V15H13V11H15V15A2,2 0 0,1 13,17H11A2,2 0 0,1 9,15V9A2,2 0 0,1 11,7M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />`,\n lNIcon: svg`<path stroke=\"currentColor\" stroke-width=\"1.89\" fill=\"none\" d=\"m4.2 0.945h18.1c1.8 0 3.25 1.45 3.25 3.25v11.6c0 1.8-1.45 3.25-3.25 3.25h-18.1c-1.8 0-3.25-1.45-3.25-3.25v-11.6c0-1.8 1.45-3.25 3.25-3.25z\"/><path fill=\"currentColor\" d=\"m5.71 15v-10h1.75v8.39h4.47v1.62z\"/><path fill=\"currentColor\" d=\"m18.2 15-3.63-7.71q0.107 1.12 0.107 1.8v5.9h-1.55v-10h1.99l3.69 7.77q-0.107-1.07-0.107-1.95v-5.82h1.55v10z\"/>`,\n logIcon: svg`<path fill=\"currentColor\" d=\"M9,7H11V15H15V17H9V7M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />`,\n reportIcon: svg`<path fill=\"currentColor\" d=\"M9,7H13A2,2 0 0,1 15,9V11C15,11.84 14.5,12.55 13.76,12.85L15,17H13L11.8,13H11V17H9V7M11,9V11H13V9H11M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12C4,16.41 7.58,20 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />`,\n dataSetIcon: svg`<path fill=\"currentColor\" d=\"M9,7H12.5A3.5,3.5 0 0,1 16,10.5V13.5A3.5,3.5 0 0,1 12.5,17H9V7M11,9V15H12.5A1.5,1.5 0 0,0 14,13.5V10.5A1.5,1.5 0 0,0 12.5,9H11M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12C4,16.41 7.58,20 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />`,\n smvIcon: svg`<path fill=\"currentColor\" d=\"M11,7H15V9H11V11H13A2,2 0 0,1 15,13V15A2,2 0 0,1 13,17H9V15H13V13H11A2,2 0 0,1 9,11V9A2,2 0 0,1 11,7M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />`,\n reset: svg``,\n};\n\nexport const gooseIcon = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">${pathsSVG['gooseIcon']}</svg>`;\n\nexport const reportIcon = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">${pathsSVG['reportIcon']}</svg>`;\n\nexport const smvIcon = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">${pathsSVG['smvIcon']}</svg>`;\n\nexport const dataSetIcon = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">${pathsSVG['dataSetIcon']}</svg>`;\n\nexport const logIcon = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">${pathsSVG['logIcon']}</svg>`;\n\nexport const controlBlockIcons: Partial<Record<string, SVGTemplateResult>> = {\n ReportControl: reportIcon,\n LogControl: logIcon,\n GSEControl: gooseIcon,\n SampledValueControl: smvIcon,\n};\n\nexport const inputIcon = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">\n<path fill=\"currentColor\" d=\"M14,12L10,8V11H2V13H10V16M20,18V6C20,4.89 19.1,4 18,4H6A2,2 0 0,0 4,6V9H6V6H18V18H6V15H4V18A2,2 0 0,0 6,20H18A2,2 0 0,0 20,18Z\" />\n</svg>`;\n\nexport const clientIcon = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">\n<path fill=\"currentColor\" d=\"M21,14V4H3V14H21M21,2A2,2 0 0,1 23,4V16A2,2 0 0,1 21,18H14L16,21V22H8V21L10,18H3C1.89,18 1,17.1 1,16V4C1,2.89 1.89,2 3,2H21M4,5H15V10H4V5M16,5H20V7H16V5M20,8V13H16V8H20M4,11H9V13H4V11M10,11H15V13H10V11Z\" />\n</svg>`;\n\nexport const disconnect = svg`<svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">\n<path fill=\"currentColor\" d=\"M4,1C2.89,1 2,1.89 2,3V7C2,8.11 2.89,9 4,9H1V11H13V9H10C11.11,9 12,8.11 12,7V3C12,1.89 11.11,1 10,1H4M4,3H10V7H4V3M14,13C12.89,13 12,13.89 12,15V19C12,20.11 12.89,21 14,21H11V23H23V21H20C21.11,21 22,20.11 22,19V15C22,13.89 21.11,13 20,13H14M3.88,13.46L2.46,14.88L4.59,17L2.46,19.12L3.88,20.54L6,18.41L8.12,20.54L9.54,19.12L7.41,17L9.54,14.88L8.12,13.46L6,15.59L3.88,13.46M14,15H20V19H14V15Z\" />\n</svg>`;\n\nexport const networkConfigIcon = svg`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n slot=\"icon\"\n width=\"25px\"\n height=\"25px\"\n style=\"margin-bottom:0px;\"\n>\n <rect\n width=\"8\"\n height=\"8\"\n x=\"8.5\"\n y=\"2\"\n rx=\"1\"\n ry=\"1\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n <rect\n width=\"8\"\n height=\"8\"\n x=\"2.5\"\n y=\"15\"\n rx=\"1\"\n ry=\"1\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n <rect\n width=\"8\"\n height=\"8\"\n x=\"15\"\n y=\"15\"\n rx=\"1\"\n ry=\"1\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n\n <line\n x1=\"2\"\n y1=\"12.5\"\n x2=\"23\"\n y2=\"12.5\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-width=\"1.5\"\n />\n <line\n x1=\"12.5\"\n y1=\"10\"\n x2=\"12.5\"\n y2=\"12.5\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n <line\n x1=\"6.5\"\n y1=\"12.5\"\n x2=\"6.5\"\n y2=\"15\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n <line\n x1=\"19\"\n y1=\"12.5\"\n x2=\"19\"\n y2=\"15\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n</svg>`;\n\nexport const zeroLineIcon = svg`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n slot=\"icon\"\n viewBox=\"0 0 25 25\"\n>\n <path\n d=\"M 2 9 L 12.5 2 L 23 9 L 21 9 L 21 21 L 4 21 L 4 9 Z\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M 11 7 L 17.5 7 L 13.5 11 L 16.5 11 L 10 19 L 11.5 13 L 8.5 13 Z \"\n fill=\"currentColor\"\n />\n</svg>`;\n\nexport const voltageLevelIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: currentColor;\n opacity: 0;\n }\n </style>\n </defs>\n <path\n class=\"cls-1\"\n d=\"M11.13,20.06L3.63,6.93c-.27-.48-.11-1.09.37-1.36h0c.48-.27,1.09-.11,1.36.37l6.64,11.61,6.64-11.61c.27-.48.88-.65,1.36-.37h0c.48.27.65.88.37,1.36l-7.5,13.13c-.38.67-1.35.67-1.74,0Z\"\n />\n <rect class=\"cls-2\" width=\"24\" height=\"24\" />\n</svg>`;\n\nexport const bayIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n stroke-width: 0px;\n }\n </style>\n </defs>\n <path\n class=\"cls-1\"\n d=\"M7.75,8c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.5h-1.25c0,.84.52,1.55,1.25,1.85v8.65h1.5v-8.65c.73-.3,1.25-1.01,1.25-1.85h-1.25v-1.5Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M12.75,8c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.5h-1.25c0,.84.52,1.55,1.25,1.85v8.65h1.5v-8.65c.73-.3,1.25-1.01,1.25-1.85h-1.25v-1.5Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M17.75,8c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.5h-1.25c0,.84.52,1.55,1.25,1.85v8.65h1.5v-8.65c.73-.3,1.25-1.01,1.25-1.85h-1.25v-1.5Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M20,4H4c-1.1,0-2,.9-2,2v4c0,1.1.9,2,2,2v-6h16v6c1.1,0,2-.9,2-2v-4c0-1.1-.9-2-2-2Z\"\n />\n</svg>`;\n\nexport const disconnectorIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: #fff;\n opacity: 0;\n }\n </style>\n </defs>\n <g>\n <path\n class=\"cls-1\"\n d=\"M12.71,15.29l-6.79-6.79c-.39-.39-1.02-.39-1.41,0-.39.39-.39,1.02,0,1.41l6.5,6.5v4.59c0,.55.45,1,1,1s1-.45,1-1v-5c0-.13-.03-.26-.08-.38-.05-.12-.12-.23-.22-.33Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M14,6h-1v-3c0-.55-.45-1-1-1s-1,.45-1,1v3h-1c-.55,0-1,.45-1,1s.45,1,1,1h4c.55,0,1-.45,1-1s-.45-1-1-1Z\"\n />\n </g>\n <rect class=\"cls-2\" width=\"24\" height=\"24\" />\n</svg>`;\n\nexport const circuitBreakerIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: #fff;\n opacity: 0;\n }\n </style>\n </defs>\n <g>\n <path\n class=\"cls-1\"\n d=\"M12.71,15.29l-6.79-6.79c-.39-.39-1.02-.39-1.41,0-.39.39-.39,1.02,0,1.41l6.5,6.5v4.59c0,.55.45,1,1,1s1-.45,1-1v-5c0-.13-.03-.26-.08-.38-.05-.12-.12-.23-.22-.33Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M13.41,7l1.29-1.29c.39-.39.39-1.02,0-1.41s-1.02-.39-1.41,0l-1.29,1.29-1.29-1.29c-.39-.39-1.02-.39-1.41,0s-.39,1.02,0,1.41l1.29,1.29-1.29,1.29c-.39.39-.39,1.02,0,1.41.2.2.45.29.71.29s.51-.1.71-.29l1.29-1.29,1.29,1.29c.2.2.45.29.71.29s.51-.1.71-.29c.39-.39.39-1.02,0-1.41l-1.29-1.29Z\"\n />\n </g>\n <rect class=\"cls-2\" width=\"24\" height=\"24\" />\n</svg>`;\n\nexport const currentTransformerIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: #fff;\n opacity: 0;\n }\n </style>\n </defs>\n <path\n class=\"cls-1\"\n d=\"M19,12c0-3.53-2.61-6.43-6-6.92v-2.08c0-.55-.45-1-1-1s-1,.45-1,1v2.08c-3.39.49-6,3.39-6,6.92s2.61,6.43,6,6.92v2.08c0,.55.45,1,1,1s1-.45,1-1v-2.08c3.39-.49,6-3.39,6-6.92ZM7,12c0-2.42,1.72-4.44,4-4.9v9.8c-2.28-.46-4-2.48-4-4.9ZM13,16.9V7.1c2.28.46,4,2.48,4,4.9s-1.72,4.44-4,4.9Z\"\n />\n <rect class=\"cls-2\" width=\"24\" height=\"24\" />\n</svg>`;\n\nexport const voltageTransformerIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: #fff;\n opacity: 0;\n }\n </style>\n </defs>\n <path\n class=\"cls-1\"\n d=\"M17,10c0-2.42-1.72-4.44-4-4.9v-2.1s0-1-1-1-1,1-1,1v2.1c-2.28.46-4,2.48-4,4.9,0,.71.15,1.39.42,2-.27.61-.42,1.29-.42,2,0,2.42,1.72,4.44,4,4.9v1.1h-1c-.55,0-1,.45-1,1s.45,1,1,1h4c.55,0,1-.45,1-1s-.45-1-1-1h-1v-1.1c2.28-.46,4-2.48,4-4.9,0-.71-.15-1.39-.42-2,.27-.61.42-1.29.42-2ZM12,7c1.66,0,3,1.34,3,3,0,0,0,.01,0,.02-.84-.63-1.87-1.02-3-1.02s-2.16.39-3,1.02c0,0,0-.01,0-.02,0-1.66,1.34-3,3-3ZM14.22,12c-.55.61-1.34,1-2.22,1s-1.67-.39-2.22-1c.55-.61,1.34-1,2.22-1s1.67.39,2.22,1ZM12,17c-1.66,0-3-1.34-3-3,0,0,0-.01,0-.02.84.63,1.87,1.02,3,1.02s2.16-.39,3-1.02c0,0,0,.01,0,.02,0,1.66-1.34,3-3,3Z\"\n />\n <rect class=\"cls-2\" width=\"24\" height=\"24\" />\n</svg>`;\n\nexport const earthSwitchIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: #fff;\n opacity: 0;\n }\n </style>\n </defs>\n <g>\n <path\n class=\"cls-1\"\n d=\"M13,20h-2c-.55,0-1,.45-1,1s.45,1,1,1h2c.55,0,1-.45,1-1s-.45-1-1-1Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M15,16h-2v-5c0-.13-.03-.26-.08-.38-.05-.12-.12-.23-.22-.33L5.91,3.5c-.39-.39-1.02-.39-1.41,0-.39.39-.39,1.02,0,1.41l6.5,6.5v4.59h-2c-.55,0-1,.45-1,1s.45,1,1,1h6c.55,0,1-.45,1-1s-.45-1-1-1Z\"\n />\n <path\n class=\"cls-1\"\n d=\"M10,4h4c.55,0,1-.45,1-1s-.45-1-1-1h-4c-.55,0-1,.45-1,1s.45,1,1,1Z\"\n />\n </g>\n <rect class=\"cls-2\" width=\"24\" height=\"24\" />\n</svg>`;\n\nexport const generalConductingEquipmentIcon = svg`<svg\n id=\"Laag_1\"\n data-name=\"Laag 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n>\n <defs>\n <style>\n .cls-1 {\n fill: currentColor;\n stroke-width: 0px;\n }\n </style>\n </defs>\n <path\n class=\"cls-1\"\n d=\"M20.41,3.59c-.78-.78-2.05-.78-2.83,0-.59.59-.73,1.47-.43,2.19l-1.49,1.49c-1.02-.79-2.29-1.27-3.67-1.27-3.31,0-6,2.69-6,6,0,1.38.48,2.66,1.27,3.67l-1.49,1.49c-.73-.31-1.6-.17-2.19.43-.78.78-.78,2.05,0,2.83.78.78,2.05.78,2.83,0,.59-.59.73-1.47.43-2.19l1.49-1.49c1.02.79,2.29,1.27,3.67,1.27,3.31,0,6-2.69,6-6,0-1.38-.48-2.66-1.27-3.67l1.49-1.49c.73.31,1.6.17,2.19-.43.78-.78.78-2.05,0-2.83ZM12,16c-2.21,0-4-1.79-4-4s1.79-4,4-4,4,1.79,4,4-1.79,4-4,4Z\"\n />\n</svg>`;\n\nexport const connectivityNodeIcon = svg`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n>\n <circle\n stroke=\"currentColor\"\n fill=\"currentColor\"\n stroke-width=\"1\"\n cx=\"12.5\"\n cy=\"12.5\"\n r=\"5\"\n />\n</svg>`;\n\nexport const powerTransformerTwoWindingIcon = svg`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 25 25\"\n>\n <line\n x1=\"12.5\"\n y1=\"2\"\n x2=\"12.5\"\n y2=\"5\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n <circle\n cx=\"12.5\"\n cy=\"10\"\n r=\"5\"\n stroke=\"currentColor\"\n fill=\"transparent\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n <circle\n cx=\"12.5\"\n cy=\"15\"\n r=\"5\"\n stroke=\"currentColor\"\n fill=\"transparent\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n <line\n x1=\"12.5\"\n y1=\"20\"\n x2=\"12.5\"\n y2=\"23\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n</svg>`;\n\nexport const openSCDIcon = svg` <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n style=\"width:100px;height:100px\"\n viewBox=\"0 0 25 25\"\n>\n <path\n d=\"M 2 9 L 12.5 2 L 23 9 L 21 9 L 21 21 L 4 21 L 4 9 Z\"\n fill=\"#eee8d5\"\n stroke=\"#6c71c4\"\n stroke-width=\"2\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M 11 7 L 17.5 7 L 13.5 11 L 16.5 11 L 10 19 L 11.5 13 L 8.5 13 Z \"\n fill=\"#2aa198\"\n />\n</svg>`;\n\nexport const sizableSmvIcon = svg`\n <svg viewBox=\"0 0 24 24\">\n <path fill=\"currentColor\" d=\"M11,7H15V9H11V11H13A2,2 0 0,1 15,13V15A2,2 0 0,1 13,17H9V15H13V13H11A2,2 0 0,1 9,11V9A2,2 0 0,1 11,7M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />\n </svg>`;\n\nexport const sizableGooseIcon = svg`<svg viewBox=\"0 0 24 24\">\n<path fill=\"currentColor\" d=\"M11,7H15V9H11V15H13V11H15V15A2,2 0 0,1 13,17H11A2,2 0 0,1 9,15V9A2,2 0 0,1 11,7M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />\n</svg>`;\n\nexport const substationIcon = svg`<svg id=\"Laag_1\" data-name=\"Laag 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n<defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1, .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: currentColor;\n opacity: 0;\n }\n </style>\n</defs>\n<g>\n <path class=\"cls-1\" d=\"M19.3,7.94l-6-5.14c-.75-.64-1.85-.65-2.6,0l-6,5.14c-.44.38-.7.93-.7,1.52v9.54c0,1.1.9,2,2,2h12c1.1,0,2-.9,2-2v-9.54c0-.58-.25-1.14-.7-1.52ZM18,19H6v-9.54l6-5.14,6,5.14v9.54Z\"/>\n <path class=\"cls-1\" d=\"M11.57,7.74l-3,5c-.09.15-.09.35,0,.5.09.16.26.25.44.25h2v3.5c0,.22.15.42.37.48.04.01.09.02.13.02.17,0,.34-.09.43-.24l3-5c.09-.15.09-.35,0-.5-.09-.16-.26-.25-.44-.25h-2v-3.5c0-.22-.15-.42-.37-.48-.22-.06-.45.03-.56.22Z\"/>\n</g>\n<rect class=\"cls-2\" y=\"0\" width=\"24\" height=\"24\"/>\n</svg>`;\n\nexport const lineIcon = svg`<svg id=\"Laag_1\" data-name=\"Laag 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n<defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1, .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: currentColor;\n opacity: 0;\n }\n </style>\n</defs>\n<path class=\"cls-1\" d=\"M14.39,11.93l-1.39.58v-1.84l2.15-.89c.51-.21.75-.8.54-1.31-.21-.51-.8-.75-1.31-.54l-1.39.58V3c0-.55-.45-1-1-1s-1,.45-1,1v6.33l-2.15.89c-.51.21-.75.8-.54,1.31.21.51.8.75,1.31.54l1.39-.58v1.84l-2.15.89c-.51.21-.75.8-.54,1.31.21.51.8.75,1.31.54l1.39-.58v5.5c0,.55.45,1,1,1s1-.45,1-1v-6.33l2.15-.89c.51-.21.75-.8.54-1.31-.21-.51-.8-.75-1.31-.54Z\"/>\n<rect class=\"cls-2\" width=\"24\" height=\"24\"/>\n</svg>`;\n\nexport const processIcon = svg`<svg id=\"Laag_1\" data-name=\"Laag 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n<defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1, .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: currentColor;\n opacity: 0;\n }\n </style>\n</defs>\n<path class=\"cls-1\" d=\"M18.71,15.29c-.39-.39-1.02-.39-1.41,0s-.39,1.02,0,1.41l.29.29h-5.59c0-1.1-.9-2-2-2h-2c-1.01,0-1.84.76-1.97,1.74-.61-.34-1.03-.99-1.03-1.74,0-1.1.9-2,2-2h5c0,1.1.9,2,2,2h2c1.1,0,2-.9,2-2v-.14c1.72-.45,3-2,3-3.86,0-2.21-1.79-4-4-4h-5c0-1.1-.9-2-2-2h-2c-1.1,0-2,.9-2,2h-2c-.55,0-1,.45-1,1s.45,1,1,1h2c0,1.1.9,2,2,2h2c1.1,0,2-.9,2-2h5c1.1,0,2,.9,2,2,0,.75-.42,1.39-1.03,1.74-.13-.98-.96-1.74-1.97-1.74h-2c-1.1,0-2,.9-2,2h-5c-2.21,0-4,1.79-4,4,0,1.86,1.28,3.41,3,3.86v.14c0,1.1.9,2,2,2h2c1.1,0,2-.9,2-2h5.59l-.29.29c-.39.39-.39,1.02,0,1.41.2.2.45.29.71.29s.51-.1.71-.29l2-2c.39-.39.39-1.02,0-1.41l-2-2ZM8,7v-2h2v2s-2,0-2,0ZM14,11h2v2s-2,0-2,0v-2ZM8,19v-2h2v2s-2,0-2,0Z\"/>\n<rect class=\"cls-2\" y=\"0\" width=\"24\" height=\"24\"/>\n</svg>`;\n\nexport const transformerWindingIcon = svg`<svg id=\"Laag_1\" data-name=\"Laag 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n<defs>\n <style>\n .cls-1 {\n fill: currentColor;\n }\n\n .cls-1, .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: currentColor;\n opacity: 0;\n }\n </style>\n</defs>\n<g>\n <path class=\"cls-1\" d=\"M19,20h-2c-1.21,0-2.18-1.09-1.97-2.34.16-.98,1.09-1.66,2.08-1.66h-.11c.55,0,1-.45,1-1s-.42-.96-.95-.99c.04,0,.08-.01.12-.01h-.17c-1.21,0-2.18-1.09-1.97-2.34.16-.98,1.09-1.66,2.08-1.66h-.11c.55,0,1-.45,1-1s-.42-.96-.95-.99c.04,0,.08-.01.12-.01h-.17c-1.21,0-2.18-1.09-1.97-2.34.16-.98,1.09-1.66,2.08-1.66h1.89c.55,0,1-.45,1-1s-.45-1-1-1h-1.83c-2.09,0-3.95,1.53-4.15,3.61-.13,1.37.44,2.59,1.38,3.41-.76.64-1.28,1.55-1.38,2.59-.13,1.37.44,2.59,1.38,3.41-.76.64-1.28,1.55-1.38,2.59-.23,2.39,1.64,4.39,3.98,4.39h2c.55,0,1-.45,1-1s-.45-1-1-1Z\"/>\n <path class=\"cls-1\" d=\"M10.98,6.39c.23-2.39-1.64-4.39-3.98-4.39h-2c-.55,0-1,.45-1,1s.45,1,1,1h2c1.21,0,2.18,1.09,1.97,2.34-.16.98-1.09,1.66-2.08,1.66h.11c-.55,0-1,.45-1,1s.42.96.95.99c-.04,0-.08.01-.12.01h.17c1.21,0,2.18,1.09,1.97,2.34-.16.98-1.09,1.66-2.08,1.66h.11c-.55,0-1,.45-1,1,0,.28.11.53.29.71.17.17.4.27.65.28h0s.03.01.05.01c1.21,0,2.18,1.09,1.97,2.34-.16.98-1.09,1.66-2.08,1.66h-1.89c-.55,0-1,.45-1,1s.45,1,1,1h1.83c2.09,0,3.95-1.53,4.15-3.61.13-1.37-.44-2.59-1.38-3.41.76-.64,1.28-1.55,1.38-2.59.13-1.37-.44-2.59-1.38-3.41.76-.64,1.28-1.55,1.38-2.59Z\"/>\n <path class=\"cls-1\" d=\"M6.83,16h.17s-.03,0-.05-.01c-.04,0-.08.01-.12.01Z\"/>\n</g>\n<rect class=\"cls-2\" width=\"24\" height=\"24\"/>\n</svg>`;\n"]}
@@ -3,7 +3,7 @@ import '../labs/card/oscd-elevated-card.js';
3
3
  import { getStorybookMeta } from '@/utils/storybook/getStorybookMeta.js';
4
4
  import { html } from 'lit';
5
5
  import { sampleDoc } from './storybook-utils.js';
6
- import { action } from 'storybook/actions';
6
+ import { action } from 'storybook/internal/actions';
7
7
  const { args, argTypes, meta, template } = getStorybookMeta({
8
8
  tagName: 'oscd-selection-list',
9
9
  });
@@ -1 +1 @@
1
- {"version":3,"file":"oscd-selection-list.stories.js","sourceRoot":"","s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EAAE,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,SAAS,EAAE;YAC/D,CAAC,CAAC,EAAE,CAAC;KACR,CAAC,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAa;IACpC,QAAQ,EAAE;QACR,GAAG,QAAQ;KACZ;IACD,IAAI,EAAE;QACJ,GAAG,IAAI;QACP,CAAC,QAAQ,CAAC,EAAE,YAAY,EAAE;QAC1B,UAAU,EAAE,KAAK;KAClB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAa;IACnC,QAAQ,EAAE;QACR,GAAG,QAAQ;KACZ;IACD,IAAI,EAAE;QACJ,GAAG,IAAI;QACP,WAAW,EAAE,IAAI;QACjB,CAAC,QAAQ,CAAC,EAAE,YAAY,EAAE;QAC1B,UAAU,EAAE,KAAK;KAClB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAa;IACtD,QAAQ,EAAE;QACR,GAAG,QAAQ;KACZ;IACD,IAAI,EAAE;QACJ,GAAG,IAAI;QACP,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC;QAC9B,UAAU,EAAE,IAAI;KACjB;CACF,CAAC","sourcesContent":["import type { StoryObj } from '@storybook/web-components-vite';\nimport './oscd-selection-list.js';\nimport '../labs/card/oscd-elevated-card.js';\nimport {\n OscdSelectionList,\n SelectionListChangeDetail,\n} from './OscdSelectionList.js';\nimport { getStorybookMeta } from '@/utils/storybook/getStorybookMeta.js';\nimport { html } from 'lit';\nimport { sampleDoc } from './storybook-utils.js';\nimport { action } from 'storybook/actions';\n\nconst { args, argTypes, meta, template } = getStorybookMeta<OscdSelectionList>({\n tagName: 'oscd-selection-list',\n});\n\nexport default {\n title: 'Lists/Selection List',\n tags: ['autodocs'],\n ...meta,\n render: (argz: typeof args & { itemCount?: number }) => {\n return html` <style>\n oscd-elevated-card {\n --md-elevated-card-container-color: var(--md-sys-color-surface);\n }\n oscd-selection-list {\n padding: 7px;\n }\n </style>\n <oscd-elevated-card\n @selection-list-change=${(\n customEvent: CustomEvent<SelectionListChangeDetail>,\n ) => {\n action('selection-list-change')(\n customEvent.detail.selectedElements.map(el =>\n new XMLSerializer().serializeToString(el),\n ),\n );\n }}\n >\n ${template(argz)}\n </oscd-elevated-card>`;\n },\n};\n\nconst getListItems = (includeSupportingText?: boolean) => {\n return Array.from(sampleDoc.querySelectorAll('GSEControl')).map(element => ({\n headline: element.getAttribute('name') ?? 'unknown',\n attachedElement: element,\n ...(includeSupportingText\n ? { supportingText: element.getAttribute('desc') ?? undefined }\n : {}),\n }));\n};\n\nexport const SingleSelect: StoryObj = {\n argTypes: {\n ...argTypes,\n },\n args: {\n ...args,\n ['.items']: getListItems(),\n filterable: false,\n },\n};\n\nexport const MultiSelect: StoryObj = {\n argTypes: {\n ...argTypes,\n },\n args: {\n ...args,\n multiselect: true,\n ['.items']: getListItems(),\n filterable: false,\n },\n};\n\nexport const SingleSelectWithSupportingText: StoryObj = {\n argTypes: {\n ...argTypes,\n },\n args: {\n ...args,\n ['.items']: getListItems(true),\n filterable: true,\n },\n};\n"]}
1
+ {"version":3,"file":"oscd-selection-list.stories.js","sourceRoot":"","sources":["../../selection-list/oscd-selection-list.stories.ts"],"names":[],"mappings":"AACA,OAAO,0BAA0B,CAAC;AAClC,OAAO,oCAAoC,CAAC;AAK5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAAoB;IAC7E,OAAO,EAAE,qBAAqB;CAC/B,CAAC,CAAC;AAEH,eAAe;IACb,KAAK,EAAE,sBAAsB;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C,QAAQ,CAAC,EAAE,YAAY,EAAE;QAC1B,UAAU,EAAE,KAAK;KAClB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAa;IACtD,QAAQ,EAAE;QACR,GAAG,QAAQ;KACZ;IACD,IAAI,EAAE;QACJ,GAAG,IAAI;QACP,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC;QAC9B,UAAU,EAAE,IAAI;KACjB;CACF,CAAC","sourcesContent":["import type { StoryObj } from '@storybook/web-components-vite';\nimport './oscd-selection-list.js';\nimport '../labs/card/oscd-elevated-card.js';\nimport {\n OscdSelectionList,\n SelectionListChangeDetail,\n} from './OscdSelectionList.js';\nimport { getStorybookMeta } from '@/utils/storybook/getStorybookMeta.js';\nimport { html } from 'lit';\nimport { sampleDoc } from './storybook-utils.js';\nimport { action } from 'storybook/internal/actions';\n\nconst { args, argTypes, meta, template } = getStorybookMeta<OscdSelectionList>({\n tagName: 'oscd-selection-list',\n});\n\nexport default {\n title: 'Lists/Selection List',\n tags: ['autodocs'],\n ...meta,\n render: (argz: typeof args & { itemCount?: number }) => {\n return html` <style>\n oscd-elevated-card {\n --md-elevated-card-container-color: var(--md-sys-color-surface);\n }\n oscd-selection-list {\n padding: 7px;\n }\n </style>\n <oscd-elevated-card\n @selection-list-change=${(\n customEvent: CustomEvent<SelectionListChangeDetail>,\n ) => {\n action('selection-list-change')(\n customEvent.detail.selectedElements.map(el =>\n new XMLSerializer().serializeToString(el),\n ),\n );\n }}\n >\n ${template(argz)}\n </oscd-elevated-card>`;\n },\n};\n\nconst getListItems = (includeSupportingText?: boolean) => {\n return Array.from(sampleDoc.querySelectorAll('GSEControl')).map(element => ({\n headline: element.getAttribute('name') ?? 'unknown',\n attachedElement: element,\n ...(includeSupportingText\n ? { supportingText: element.getAttribute('desc') ?? undefined }\n : {}),\n }));\n};\n\nexport const SingleSelect: StoryObj = {\n argTypes: {\n ...argTypes,\n },\n args: {\n ...args,\n ['.items']: getListItems(),\n filterable: false,\n },\n};\n\nexport const MultiSelect: StoryObj = {\n argTypes: {\n ...argTypes,\n },\n args: {\n ...args,\n multiselect: true,\n ['.items']: getListItems(),\n filterable: false,\n },\n};\n\nexport const SingleSelectWithSupportingText: StoryObj = {\n argTypes: {\n ...argTypes,\n },\n args: {\n ...args,\n ['.items']: getListItems(true),\n filterable: true,\n },\n};\n"]}
@@ -1,4 +1,3 @@
1
1
  import { StorybookOverrides } from './story-overrides.js';
2
2
  import '../../../menu/oscd-menu-item.js';
3
- import '../../../button/oscd-filled-button.js';
4
3
  export declare const menuOverrides: StorybookOverrides;
@@ -1,43 +1,7 @@
1
1
  import { html } from 'lit';
2
2
  import { getStorybookHelpers } from '../getStorybookHelpers.js';
3
- import { useArgs } from 'storybook/preview-api';
4
3
  import '../../../menu/oscd-menu-item.js';
5
- import '../../../button/oscd-filled-button.js';
6
4
  export const menuOverrides = {
7
- 'oscd-menu': {
8
- args: {
9
- anchor: 'menu-button',
10
- //explicitly set to undefined to avoid empty space being set (which breaks the menu)
11
- 'anchor-corner': undefined,
12
- 'menu-corner': undefined,
13
- open: false, // Default state of the menu
14
- },
15
- meta: {
16
- render: argz => {
17
- const [_, updateArgs] = useArgs();
18
- const { template } = getStorybookHelpers('oscd-menu');
19
- return html `
20
- <div style="position: relative;">
21
- ${template({
22
- ...argz,
23
- '[@closed]': () => {
24
- argz['open'] = false;
25
- },
26
- }, html `<oscd-menu-item value="1">Option 1</oscd-menu-item>
27
- <oscd-menu-item value="2">Option 2</oscd-menu-item>
28
- <oscd-menu-item value="2">Option 3</oscd-menu-item>
29
- <oscd-menu-item value="2">Option 4</oscd-menu-item>
30
- <oscd-menu-item value="2">Option 5</oscd-menu-item>`)}
31
- <oscd-filled-button
32
- id="menu-button"
33
- @click=${() => updateArgs({ open: !argz.open })}
34
- >Open Menu</oscd-filled-button
35
- >
36
- </div>
37
- `;
38
- },
39
- },
40
- },
41
5
  'oscd-menu-item': {
42
6
  args: {
43
7
  textContent: 'Menu Item',
@@ -1 +1 @@
1
- {"version":3,"file":"menu-overrides.js","sourceRoot":"","sources":["../../../../utils/storybook/story-overrides/menu-overrides.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,iCAAiC,CAAC;AACzC,OAAO,uCAAuC,CAAC;AAK/C,MAAM,CAAC,MAAM,aAAa,GAAuB;IAC/C,WAAW,EAAE;QACX,IAAI,EAAE;YACJ,MAAM,EAAE,aAAa;YACrB,oFAAoF;YACpF,eAAe,EAAE,SAAS;YAC1B,aAAa,EAAE,SAAS;YACxB,IAAI,EAAE,KAAK,EAAE,4BAA4B;SAC1C;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,IAAI,CAAC,EAAE;gBACb,MAAM,CAAC,CAAC,EAAE,UAAU,CAAC,GAAG,OAAO,EAAE,CAAC;gBAClC,MAAM,EAAE,QAAQ,EAAE,GAAG,mBAAmB,CAAW,WAAW,CAAC,CAAC;gBAChE,OAAO,IAAI,CAAA;;cAEL,QAAQ,CACR;oBACE,GAAG,IAAI;oBACP,WAAW,EAAE,GAAG,EAAE;wBAChB,IAAI,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;oBACvB,CAAC;iBACF,EACD,IAAI,CAAA;;;;oEAIkD,CACvD;;;uBAGU,GAAG,EAAE,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;;;;SAIpD,CAAC;YACJ,CAAC;SACF;KACF;IAED,gBAAgB,EAAE;QAChB,IAAI,EAAE;YACJ,WAAW,EAAE,WAAW;SACzB;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;gBACnC,MAAM,EAAE,QAAQ,EAAE,GAChB,mBAAmB,CAAe,gBAAgB,CAAC,CAAC;gBACtD,OAAO,IAAI,CAAA;;;;;;;YAOP,QAAQ,CACR,IAAI,EACJ,IAAI,CAAA,GAAG,WAAW,mCAAmC,CACtD;SACF,CAAC;YACJ,CAAC;SACF;KACF;IAED,eAAe,EAAE;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,UAAU;SACxB;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;gBACnC,MAAM,EAAE,QAAQ,EAAE,GAAG,mBAAmB,CAAc,eAAe,CAAC,CAAC;gBACvE,OAAO,IAAI,CAAA;YACP,QAAQ,CACR,IAAI,EACJ,IAAI,CAAA;kEACkD,CACvD;SACF,CAAC;YACJ,CAAC;SACF;KACF;CACF,CAAC","sourcesContent":["import { StorybookOverrides } from './story-overrides.js';\nimport { html } from 'lit';\nimport { getStorybookHelpers } from '../getStorybookHelpers.js';\n\nimport { useArgs } from 'storybook/preview-api';\n\nimport '../../../menu/oscd-menu-item.js';\nimport '../../../button/oscd-filled-button.js';\nimport { OscdMenu } from '@/menu/OscdMenu.js';\nimport { OscdMenuItem } from '../../../menu/oscd-menu-item.js';\nimport { OscdSubMenu } from '@/menu/OscdSubMenu.js';\n\nexport const menuOverrides: StorybookOverrides = {\n 'oscd-menu': {\n args: {\n anchor: 'menu-button',\n //explicitly set to undefined to avoid empty space being set (which breaks the menu)\n 'anchor-corner': undefined,\n 'menu-corner': undefined,\n open: false, // Default state of the menu\n },\n meta: {\n render: argz => {\n const [_, updateArgs] = useArgs();\n const { template } = getStorybookHelpers<OscdMenu>('oscd-menu');\n return html`\n <div style=\"position: relative;\">\n ${template(\n {\n ...argz,\n '[@closed]': () => {\n argz['open'] = false;\n },\n },\n html`<oscd-menu-item value=\"1\">Option 1</oscd-menu-item>\n <oscd-menu-item value=\"2\">Option 2</oscd-menu-item>\n <oscd-menu-item value=\"2\">Option 3</oscd-menu-item>\n <oscd-menu-item value=\"2\">Option 4</oscd-menu-item>\n <oscd-menu-item value=\"2\">Option 5</oscd-menu-item>`,\n )}\n <oscd-filled-button\n id=\"menu-button\"\n @click=${() => updateArgs({ open: !argz.open })}\n >Open Menu</oscd-filled-button\n >\n </div>\n `;\n },\n },\n },\n\n 'oscd-menu-item': {\n args: {\n textContent: 'Menu Item',\n },\n meta: {\n render: ({ textContent, ...argz }) => {\n const { template } =\n getStorybookHelpers<OscdMenuItem>('oscd-menu-item');\n return html`\n <style>\n oscd-menu-item {\n --md-elevation-level: 3;\n }\n </style>\n\n ${template(\n argz,\n html`${textContent}<oscd-elevation></oscd-elevation>`,\n )}\n `;\n },\n },\n },\n\n 'oscd-sub-menu': {\n args: {\n textContent: 'Sub Menu',\n },\n meta: {\n render: ({ textContent, ...argz }) => {\n const { template } = getStorybookHelpers<OscdSubMenu>('oscd-sub-menu');\n return html`\n ${template(\n argz,\n html`<oscd-menu-item value=\"1\">Option 1</oscd-menu-item>\n <oscd-menu-item value=\"2\">Option 2</oscd-menu-item>`,\n )}\n `;\n },\n },\n },\n};\n"]}
1
+ {"version":3,"file":"menu-overrides.js","sourceRoot":"","sources":["../../../../utils/storybook/story-overrides/menu-overrides.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,iCAAiC,CAAC;AAIzC,MAAM,CAAC,MAAM,aAAa,GAAuB;IAC/C,gBAAgB,EAAE;QAChB,IAAI,EAAE;YACJ,WAAW,EAAE,WAAW;SACzB;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;gBACnC,MAAM,EAAE,QAAQ,EAAE,GAChB,mBAAmB,CAAe,gBAAgB,CAAC,CAAC;gBACtD,OAAO,IAAI,CAAA;;;;;;;YAOP,QAAQ,CACR,IAAI,EACJ,IAAI,CAAA,GAAG,WAAW,mCAAmC,CACtD;SACF,CAAC;YACJ,CAAC;SACF;KACF;IAED,eAAe,EAAE;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,UAAU;SACxB;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;gBACnC,MAAM,EAAE,QAAQ,EAAE,GAAG,mBAAmB,CAAc,eAAe,CAAC,CAAC;gBACvE,OAAO,IAAI,CAAA;YACP,QAAQ,CACR,IAAI,EACJ,IAAI,CAAA;kEACkD,CACvD;SACF,CAAC;YACJ,CAAC;SACF;KACF;CACF,CAAC","sourcesContent":["import { StorybookOverrides } from './story-overrides.js';\nimport { html } from 'lit';\nimport { getStorybookHelpers } from '../getStorybookHelpers.js';\n\nimport '../../../menu/oscd-menu-item.js';\nimport { OscdMenuItem } from '../../../menu/oscd-menu-item.js';\nimport { OscdSubMenu } from '@/menu/OscdSubMenu.js';\n\nexport const menuOverrides: StorybookOverrides = {\n 'oscd-menu-item': {\n args: {\n textContent: 'Menu Item',\n },\n meta: {\n render: ({ textContent, ...argz }) => {\n const { template } =\n getStorybookHelpers<OscdMenuItem>('oscd-menu-item');\n return html`\n <style>\n oscd-menu-item {\n --md-elevation-level: 3;\n }\n </style>\n\n ${template(\n argz,\n html`${textContent}<oscd-elevation></oscd-elevation>`,\n )}\n `;\n },\n },\n },\n\n 'oscd-sub-menu': {\n args: {\n textContent: 'Sub Menu',\n },\n meta: {\n render: ({ textContent, ...argz }) => {\n const { template } = getStorybookHelpers<OscdSubMenu>('oscd-sub-menu');\n return html`\n ${template(\n argz,\n html`<oscd-menu-item value=\"1\">Option 1</oscd-menu-item>\n <oscd-menu-item value=\"2\">Option 2</oscd-menu-item>`,\n )}\n `;\n },\n },\n },\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omicronenergy/oscd-ui",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "UI Web Components set for OpenSCD",
5
5
  "type": "module",
6
6
  "scripts": {